@visulima/task-runner 1.0.0-alpha.10 → 1.0.0-alpha.11

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.
@@ -1,11 +1,11 @@
1
- var Fe=Object.defineProperty;var g=(w,n)=>Fe(w,"name",{value:n,configurable:!0});function _mergeNamespaces(w,n){for(var y=0;y<n.length;y++){const p=n[y];if(typeof p!="string"&&!Array.isArray(p))for(const m in p)m!=="default"&&!(m in w)&&(w[m]=p[m])}return Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})}g(_mergeNamespaces,"_mergeNamespaces");var u=Object.defineProperty,t=g((w,n)=>u(w,"name",{value:n,configurable:!0}),"t"),commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(w){return w&&w.__esModule&&Object.prototype.hasOwnProperty.call(w,"default")?w.default:w}g(getDefaultExportFromCjs,"getDefaultExportFromCjs");t(getDefaultExportFromCjs,"getDefaultExportFromCjs");function getDefaultExportFromNamespaceIfPresent(w){return w&&Object.prototype.hasOwnProperty.call(w,"default")?w.default:w}g(getDefaultExportFromNamespaceIfPresent,"getDefaultExportFromNamespaceIfPresent");t(getDefaultExportFromNamespaceIfPresent,"getDefaultExportFromNamespaceIfPresent");function getDefaultExportFromNamespaceIfNotNamed(w){return w&&Object.prototype.hasOwnProperty.call(w,"default")&&Object.keys(w).length===1?w.default:w}g(getDefaultExportFromNamespaceIfNotNamed,"getDefaultExportFromNamespaceIfNotNamed");t(getDefaultExportFromNamespaceIfNotNamed,"getDefaultExportFromNamespaceIfNotNamed");function getAugmentedNamespace(w){if(Object.prototype.hasOwnProperty.call(w,"__esModule"))return w;var n=w.default;if(typeof n=="function"){var y=t(g(function p(){var m=!1;try{m=this instanceof p}catch{}return m?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)},"a"),"a");y.prototype=n.prototype}else y={};return Object.defineProperty(y,"__esModule",{value:!0}),Object.keys(w).forEach(function(p){var m=Object.getOwnPropertyDescriptor(w,p);Object.defineProperty(y,p,m.get?m:{enumerable:!0,get:t(function(){return w[p]},"get")})}),y}g(getAugmentedNamespace,"getAugmentedNamespace");t(getAugmentedNamespace,"getAugmentedNamespace");var src={exports:{}},indexLight={exports:{}},indexMinimal={},minimal={},aspromise,hasRequiredAspromise;function requireAspromise(){if(hasRequiredAspromise)return aspromise;hasRequiredAspromise=1;var w=Object.defineProperty,n=g((p,m)=>w(p,"name",{value:m,configurable:!0}),"n");aspromise=y;function y(p,m){for(var h=new Array(arguments.length-1),a=0,s=2,i=!0;s<arguments.length;)h[a++]=arguments[s++];return new Promise(n(function(o,e){h[a]=n(function(c){if(i)if(i=!1,c)e(c);else{for(var l=new Array(arguments.length-1),f=0;f<l.length;)l[f++]=arguments[f];o.apply(null,l)}},"callback");try{p.apply(m||null,h)}catch(c){i&&(i=!1,e(c))}},"executor"))}return g(y,"asPromise"),n(y,"asPromise"),aspromise}g(requireAspromise,"requireAspromise");var base64={},hasRequiredBase64;function requireBase64(){return hasRequiredBase64||(hasRequiredBase64=1,(function(w){var n=Object.defineProperty,y=g((i,o)=>n(i,"name",{value:o,configurable:!0}),"v"),p=w;p.length=y(function(i){var o=i.length;if(!o)return 0;for(var e=0;--o%4>1&&i.charAt(o)==="=";)++e;return Math.ceil(i.length*3)/4-e},"length");for(var m=new Array(64),h=new Array(123),a=0;a<64;)h[m[a]=a<26?a+65:a<52?a+71:a<62?a-4:a-59|43]=a++;p.encode=y(function(i,o,e){for(var c=null,l=[],f=0,d=0,v;o<e;){var _=i[o++];switch(d){case 0:l[f++]=m[_>>2],v=(_&3)<<4,d=1;break;case 1:l[f++]=m[v|_>>4],v=(_&15)<<2,d=2;break;case 2:l[f++]=m[v|_>>6],l[f++]=m[_&63],d=0;break}f>8191&&((c||(c=[])).push(String.fromCharCode.apply(String,l)),f=0)}return d&&(l[f++]=m[v],l[f++]=61,d===1&&(l[f++]=61)),c?(f&&c.push(String.fromCharCode.apply(String,l.slice(0,f))),c.join("")):String.fromCharCode.apply(String,l.slice(0,f))},"encode");var s="invalid encoding";p.decode=y(function(i,o,e){for(var c=e,l=0,f,d=0;d<i.length;){var v=i.charCodeAt(d++);if(v===61&&l>1)break;if((v=h[v])===void 0)throw Error(s);switch(l){case 0:f=v,l=1;break;case 1:o[e++]=f<<2|(v&48)>>4,f=v,l=2;break;case 2:o[e++]=(f&15)<<4|(v&60)>>2,f=v,l=3;break;case 3:o[e++]=(f&3)<<6|v,l=0;break}}if(l===1)throw Error(s);return e-c},"decode"),p.test=y(function(i){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(i)},"test")})(base64)),base64}g(requireBase64,"requireBase64");var eventemitter,hasRequiredEventemitter;function requireEventemitter(){if(hasRequiredEventemitter)return eventemitter;hasRequiredEventemitter=1;var w=Object.defineProperty,n=g((p,m)=>w(p,"name",{value:m,configurable:!0}),"r");eventemitter=y;function y(){this._listeners={}}return g(y,"EventEmitter"),n(y,"EventEmitter"),y.prototype.on=n(function(p,m,h){return(this._listeners[p]||(this._listeners[p]=[])).push({fn:m,ctx:h||this}),this},"on"),y.prototype.off=n(function(p,m){if(p===void 0)this._listeners={};else if(m===void 0)this._listeners[p]=[];else for(var h=this._listeners[p],a=0;a<h.length;)h[a].fn===m?h.splice(a,1):++a;return this},"off"),y.prototype.emit=n(function(p){var m=this._listeners[p];if(m){for(var h=[],a=1;a<arguments.length;)h.push(arguments[a++]);for(a=0;a<m.length;)m[a].fn.apply(m[a++].ctx,h)}return this},"emit"),eventemitter}g(requireEventemitter,"requireEventemitter");var float,hasRequiredFloat;function requireFloat(){if(hasRequiredFloat)return float;hasRequiredFloat=1;var w=Object.defineProperty,n=g((s,i)=>w(s,"name",{value:i,configurable:!0}),"F");float=y(y);function y(s){return typeof Float32Array<"u"?(function(){var i=new Float32Array([-0]),o=new Uint8Array(i.buffer),e=o[3]===128;function c(v,_,j){i[0]=v,_[j]=o[0],_[j+1]=o[1],_[j+2]=o[2],_[j+3]=o[3]}g(c,"E"),n(c,"writeFloat_f32_cpy");function l(v,_,j){i[0]=v,_[j]=o[3],_[j+1]=o[2],_[j+2]=o[1],_[j+3]=o[0]}g(l,"_"),n(l,"writeFloat_f32_rev"),s.writeFloatLE=e?c:l,s.writeFloatBE=e?l:c;function f(v,_){return o[0]=v[_],o[1]=v[_+1],o[2]=v[_+2],o[3]=v[_+3],i[0]}g(f,"d"),n(f,"readFloat_f32_cpy");function d(v,_){return o[3]=v[_],o[2]=v[_+1],o[1]=v[_+2],o[0]=v[_+3],i[0]}g(d,"c"),n(d,"readFloat_f32_rev"),s.readFloatLE=e?f:d,s.readFloatBE=e?d:f})():(function(){function i(e,c,l,f){var d=c<0?1:0;if(d&&(c=-c),c===0)e(1/c>0?0:2147483648,l,f);else if(isNaN(c))e(2143289344,l,f);else if(c>34028234663852886e22)e((d<<31|2139095040)>>>0,l,f);else if(c<11754943508222875e-54)e((d<<31|Math.round(c/1401298464324817e-60))>>>0,l,f);else{var v=Math.floor(Math.log(c)/Math.LN2),_=Math.round(c*Math.pow(2,-v)*8388608)&8388607;e((d<<31|v+127<<23|_)>>>0,l,f)}}g(i,"t"),n(i,"writeFloat_ieee754"),s.writeFloatLE=i.bind(null,p),s.writeFloatBE=i.bind(null,m);function o(e,c,l){var f=e(c,l),d=(f>>31)*2+1,v=f>>>23&255,_=f&8388607;return v===255?_?NaN:d*(1/0):v===0?d*1401298464324817e-60*_:d*Math.pow(2,v-150)*(_+8388608)}g(o,"n"),n(o,"readFloat_ieee754"),s.readFloatLE=o.bind(null,h),s.readFloatBE=o.bind(null,a)})(),typeof Float64Array<"u"?(function(){var i=new Float64Array([-0]),o=new Uint8Array(i.buffer),e=o[7]===128;function c(v,_,j){i[0]=v,_[j]=o[0],_[j+1]=o[1],_[j+2]=o[2],_[j+3]=o[3],_[j+4]=o[4],_[j+5]=o[5],_[j+6]=o[6],_[j+7]=o[7]}g(c,"E"),n(c,"writeDouble_f64_cpy");function l(v,_,j){i[0]=v,_[j]=o[7],_[j+1]=o[6],_[j+2]=o[5],_[j+3]=o[4],_[j+4]=o[3],_[j+5]=o[2],_[j+6]=o[1],_[j+7]=o[0]}g(l,"_"),n(l,"writeDouble_f64_rev"),s.writeDoubleLE=e?c:l,s.writeDoubleBE=e?l:c;function f(v,_){return o[0]=v[_],o[1]=v[_+1],o[2]=v[_+2],o[3]=v[_+3],o[4]=v[_+4],o[5]=v[_+5],o[6]=v[_+6],o[7]=v[_+7],i[0]}g(f,"d"),n(f,"readDouble_f64_cpy");function d(v,_){return o[7]=v[_],o[6]=v[_+1],o[5]=v[_+2],o[4]=v[_+3],o[3]=v[_+4],o[2]=v[_+5],o[1]=v[_+6],o[0]=v[_+7],i[0]}g(d,"c"),n(d,"readDouble_f64_rev"),s.readDoubleLE=e?f:d,s.readDoubleBE=e?d:f})():(function(){function i(e,c,l,f,d,v){var _=f<0?1:0;if(_&&(f=-f),f===0)e(0,d,v+c),e(1/f>0?0:2147483648,d,v+l);else if(isNaN(f))e(0,d,v+c),e(2146959360,d,v+l);else if(f>17976931348623157e292)e(0,d,v+c),e((_<<31|2146435072)>>>0,d,v+l);else{var j;if(f<22250738585072014e-324)j=f/5e-324,e(j>>>0,d,v+c),e((_<<31|j/4294967296)>>>0,d,v+l);else{var O=Math.floor(Math.log(f)/Math.LN2);O===1024&&(O=1023),j=f*Math.pow(2,-O),e(j*4503599627370496>>>0,d,v+c),e((_<<31|O+1023<<20|j*1048576&1048575)>>>0,d,v+l)}}}g(i,"t"),n(i,"writeDouble_ieee754"),s.writeDoubleLE=i.bind(null,p,0,4),s.writeDoubleBE=i.bind(null,m,4,0);function o(e,c,l,f,d){var v=e(f,d+c),_=e(f,d+l),j=(_>>31)*2+1,O=_>>>20&2047,b=4294967296*(_&1048575)+v;return O===2047?b?NaN:j*(1/0):O===0?j*5e-324*b:j*Math.pow(2,O-1075)*(b+4503599627370496)}g(o,"n"),n(o,"readDouble_ieee754"),s.readDoubleLE=o.bind(null,h,0,4),s.readDoubleBE=o.bind(null,a,4,0)})(),s}g(y,"factory"),n(y,"factory");function p(s,i,o){i[o]=s&255,i[o+1]=s>>>8&255,i[o+2]=s>>>16&255,i[o+3]=s>>>24}g(p,"writeUintLE"),n(p,"writeUintLE");function m(s,i,o){i[o]=s>>>24,i[o+1]=s>>>16&255,i[o+2]=s>>>8&255,i[o+3]=s&255}g(m,"writeUintBE"),n(m,"writeUintBE");function h(s,i){return(s[i]|s[i+1]<<8|s[i+2]<<16|s[i+3]<<24)>>>0}g(h,"readUintLE"),n(h,"readUintLE");function a(s,i){return(s[i]<<24|s[i+1]<<16|s[i+2]<<8|s[i+3])>>>0}return g(a,"readUintBE"),n(a,"readUintBE"),float}g(requireFloat,"requireFloat");var inquire_1,hasRequiredInquire;function requireInquire(){if(hasRequiredInquire)return inquire_1;hasRequiredInquire=1;var u=Object.defineProperty,r=g((w,n)=>u(w,"name",{value:n,configurable:!0}),"r");inquire_1=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(w){}return null}return g(inquire,"inquire"),r(inquire,"inquire"),inquire_1}g(requireInquire,"requireInquire");var utf8={},hasRequiredUtf8;function requireUtf8(){return hasRequiredUtf8||(hasRequiredUtf8=1,(function(w){var n=Object.defineProperty,y=g((m,h)=>n(m,"name",{value:h,configurable:!0}),"a"),p=w;p.length=y(function(m){for(var h=0,a=0,s=0;s<m.length;++s)a=m.charCodeAt(s),a<128?h+=1:a<2048?h+=2:(a&64512)===55296&&(m.charCodeAt(s+1)&64512)===56320?(++s,h+=4):h+=3;return h},"utf8_length"),p.read=y(function(m,h,a){var s=a-h;if(s<1)return"";for(var i=null,o=[],e=0,c;h<a;)c=m[h++],c<128?o[e++]=c:c>191&&c<224?o[e++]=(c&31)<<6|m[h++]&63:c>239&&c<365?(c=((c&7)<<18|(m[h++]&63)<<12|(m[h++]&63)<<6|m[h++]&63)-65536,o[e++]=55296+(c>>10),o[e++]=56320+(c&1023)):o[e++]=(c&15)<<12|(m[h++]&63)<<6|m[h++]&63,e>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,o)),e=0);return i?(e&&i.push(String.fromCharCode.apply(String,o.slice(0,e))),i.join("")):String.fromCharCode.apply(String,o.slice(0,e))},"utf8_read"),p.write=y(function(m,h,a){for(var s=a,i,o,e=0;e<m.length;++e)i=m.charCodeAt(e),i<128?h[a++]=i:i<2048?(h[a++]=i>>6|192,h[a++]=i&63|128):(i&64512)===55296&&((o=m.charCodeAt(e+1))&64512)===56320?(i=65536+((i&1023)<<10)+(o&1023),++e,h[a++]=i>>18|240,h[a++]=i>>12&63|128,h[a++]=i>>6&63|128,h[a++]=i&63|128):(h[a++]=i>>12|224,h[a++]=i>>6&63|128,h[a++]=i&63|128);return a-s},"utf8_write")})(utf8)),utf8}g(requireUtf8,"requireUtf8");var pool_1,hasRequiredPool;function requirePool(){if(hasRequiredPool)return pool_1;hasRequiredPool=1;var w=Object.defineProperty,n=g((p,m)=>w(p,"name",{value:m,configurable:!0}),"l");pool_1=y;function y(p,m,h){var a=h||8192,s=a>>>1,i=null,o=a;return n(function(e){if(e<1||e>s)return p(e);o+e>a&&(i=p(a),o=0);var c=m.call(i,o,o+=e);return o&7&&(o=(o|7)+1),c},"pool_alloc")}return g(y,"pool"),n(y,"pool"),pool_1}g(requirePool,"requirePool");var longbits,hasRequiredLongbits;function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=1;var w=Object.defineProperty,n=g((s,i)=>w(s,"name",{value:i,configurable:!0}),"r");longbits=p;var y=requireMinimal();function p(s,i){this.lo=s>>>0,this.hi=i>>>0}g(p,"LongBits"),n(p,"LongBits");var m=p.zero=new p(0,0);m.toNumber=function(){return 0},m.zzEncode=m.zzDecode=function(){return this},m.length=function(){return 1};var h=p.zeroHash="\0\0\0\0\0\0\0\0";p.fromNumber=n(function(s){if(s===0)return m;var i=s<0;i&&(s=-s);var o=s>>>0,e=(s-o)/4294967296>>>0;return i&&(e=~e>>>0,o=~o>>>0,++o>4294967295&&(o=0,++e>4294967295&&(e=0))),new p(o,e)},"fromNumber"),p.from=n(function(s){if(typeof s=="number")return p.fromNumber(s);if(y.isString(s))if(y.Long)s=y.Long.fromString(s);else return p.fromNumber(parseInt(s,10));return s.low||s.high?new p(s.low>>>0,s.high>>>0):m},"from"),p.prototype.toNumber=n(function(s){if(!s&&this.hi>>>31){var i=~this.lo+1>>>0,o=~this.hi>>>0;return i||(o=o+1>>>0),-(i+o*4294967296)}return this.lo+this.hi*4294967296},"toNumber"),p.prototype.toLong=n(function(s){return y.Long?new y.Long(this.lo|0,this.hi|0,!!s):{low:this.lo|0,high:this.hi|0,unsigned:!!s}},"toLong");var a=String.prototype.charCodeAt;return p.fromHash=n(function(s){return s===h?m:new p((a.call(s,0)|a.call(s,1)<<8|a.call(s,2)<<16|a.call(s,3)<<24)>>>0,(a.call(s,4)|a.call(s,5)<<8|a.call(s,6)<<16|a.call(s,7)<<24)>>>0)},"fromHash"),p.prototype.toHash=n(function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},"toHash"),p.prototype.zzEncode=n(function(){var s=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^s)>>>0,this.lo=(this.lo<<1^s)>>>0,this},"zzEncode"),p.prototype.zzDecode=n(function(){var s=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^s)>>>0,this.hi=(this.hi>>>1^s)>>>0,this},"zzDecode"),p.prototype.length=n(function(){var s=this.lo,i=(this.lo>>>28|this.hi<<4)>>>0,o=this.hi>>>24;return o===0?i===0?s<16384?s<128?1:2:s<2097152?3:4:i<16384?i<128?5:6:i<2097152?7:8:o<128?9:10},"length"),longbits}g(requireLongbits,"requireLongbits");var hasRequiredMinimal;function requireMinimal(){return hasRequiredMinimal||(hasRequiredMinimal=1,(function(w){var n=Object.defineProperty,y=g((a,s)=>n(a,"name",{value:s,configurable:!0}),"o"),p=w;p.asPromise=requireAspromise(),p.base64=requireBase64(),p.EventEmitter=requireEventemitter(),p.float=requireFloat(),p.inquire=requireInquire(),p.utf8=requireUtf8(),p.pool=requirePool(),p.LongBits=requireLongbits(),p.isNode=!!(typeof commonjsGlobal<"u"&&commonjsGlobal&&commonjsGlobal.process&&commonjsGlobal.process.versions&&commonjsGlobal.process.versions.node),p.global=p.isNode&&commonjsGlobal||typeof window<"u"&&window||typeof self<"u"&&self||minimal,p.emptyArray=Object.freeze?Object.freeze([]):[],p.emptyObject=Object.freeze?Object.freeze({}):{},p.isInteger=Number.isInteger||y(function(a){return typeof a=="number"&&isFinite(a)&&Math.floor(a)===a},"isInteger"),p.isString=y(function(a){return typeof a=="string"||a instanceof String},"isString"),p.isObject=y(function(a){return a&&typeof a=="object"},"isObject"),p.isset=p.isSet=y(function(a,s){var i=a[s];return i!=null&&a.hasOwnProperty(s)?typeof i!="object"||(Array.isArray(i)?i.length:Object.keys(i).length)>0:!1},"isSet"),p.Buffer=(function(){try{var a=p.inquire("buffer").Buffer;return a.prototype.utf8Write?a:null}catch{return null}})(),p._Buffer_from=null,p._Buffer_allocUnsafe=null,p.newBuffer=y(function(a){return typeof a=="number"?p.Buffer?p._Buffer_allocUnsafe(a):new p.Array(a):p.Buffer?p._Buffer_from(a):typeof Uint8Array>"u"?a:new Uint8Array(a)},"newBuffer"),p.Array=typeof Uint8Array<"u"?Uint8Array:Array,p.Long=p.global.dcodeIO&&p.global.dcodeIO.Long||p.global.Long||p.inquire("long"),p.key2Re=/^true|false|0|1$/,p.key32Re=/^-?(?:0|[1-9][0-9]*)$/,p.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,p.longToHash=y(function(a){return a?p.LongBits.from(a).toHash():p.LongBits.zeroHash},"longToHash"),p.longFromHash=y(function(a,s){var i=p.LongBits.fromHash(a);return p.Long?p.Long.fromBits(i.lo,i.hi,s):i.toNumber(!!s)},"longFromHash");function m(a,s,i){for(var o=Object.keys(s),e=0;e<o.length;++e)(a[o[e]]===void 0||!i)&&(a[o[e]]=s[o[e]]);return a}g(m,"merge"),y(m,"merge"),p.merge=m,p.lcFirst=y(function(a){return a.charAt(0).toLowerCase()+a.substring(1)},"lcFirst");function h(a){function s(i,o){if(!(this instanceof s))return new s(i,o);Object.defineProperty(this,"message",{get:y(function(){return i},"get")}),Error.captureStackTrace?Error.captureStackTrace(this,s):Object.defineProperty(this,"stack",{value:new Error().stack||""}),o&&m(this,o)}return g(s,"e"),y(s,"CustomError"),s.prototype=Object.create(Error.prototype,{constructor:{value:s,writable:!0,enumerable:!1,configurable:!0},name:{get:y(function(){return a},"get"),set:void 0,enumerable:!1,configurable:!0},toString:{value:y(function(){return this.name+": "+this.message},"value"),writable:!0,enumerable:!1,configurable:!0}}),s}g(h,"newError"),y(h,"newError"),p.newError=h,p.ProtocolError=h("ProtocolError"),p.oneOfGetter=y(function(a){for(var s={},i=0;i<a.length;++i)s[a[i]]=1;return function(){for(var o=Object.keys(this),e=o.length-1;e>-1;--e)if(s[o[e]]===1&&this[o[e]]!==void 0&&this[o[e]]!==null)return o[e]}},"getOneOf"),p.oneOfSetter=y(function(a){return function(s){for(var i=0;i<a.length;++i)a[i]!==s&&delete this[a[i]]}},"setOneOf"),p.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},p._configure=function(){var a=p.Buffer;if(!a){p._Buffer_from=p._Buffer_allocUnsafe=null;return}p._Buffer_from=a.from!==Uint8Array.from&&a.from||y(function(s,i){return new a(s,i)},"Buffer_from"),p._Buffer_allocUnsafe=a.allocUnsafe||y(function(s){return new a(s)},"Buffer_allocUnsafe")}})(minimal)),minimal}g(requireMinimal,"requireMinimal");var writer,hasRequiredWriter;function requireWriter(){if(hasRequiredWriter)return writer;hasRequiredWriter=1;var w=Object.defineProperty,n=g((O,b)=>w(O,"name",{value:b,configurable:!0}),"n");writer=e;var y=requireMinimal(),p,m=y.LongBits,h=y.base64,a=y.utf8;function s(O,b,q){this.fn=O,this.len=b,this.next=void 0,this.val=q}g(s,"Op"),n(s,"Op");function i(){}g(i,"noop"),n(i,"noop");function o(O){this.head=O.head,this.tail=O.tail,this.len=O.len,this.next=O.states}g(o,"State"),n(o,"State");function e(){this.len=0,this.head=new s(i,0,0),this.tail=this.head,this.states=null}g(e,"Writer"),n(e,"Writer");var c=n(function(){return y.Buffer?n(function(){return(e.create=n(function(){return new p},"create_buffer"))()},"create_buffer_setup"):n(function(){return new e},"create_array")},"create");e.create=c(),e.alloc=n(function(O){return new y.Array(O)},"alloc"),y.Array!==Array&&(e.alloc=y.pool(e.alloc,y.Array.prototype.subarray)),e.prototype._push=n(function(O,b,q){return this.tail=this.tail.next=new s(O,b,q),this.len+=b,this},"push");function l(O,b,q){b[q]=O&255}g(l,"writeByte"),n(l,"writeByte");function f(O,b,q){for(;O>127;)b[q++]=O&127|128,O>>>=7;b[q]=O}g(f,"writeVarint32"),n(f,"writeVarint32");function d(O,b){this.len=O,this.next=void 0,this.val=b}g(d,"VarintOp"),n(d,"VarintOp"),d.prototype=Object.create(s.prototype),d.prototype.fn=f,e.prototype.uint32=n(function(O){return this.len+=(this.tail=this.tail.next=new d((O=O>>>0)<128?1:O<16384?2:O<2097152?3:O<268435456?4:5,O)).len,this},"write_uint32"),e.prototype.int32=n(function(O){return O<0?this._push(v,10,m.fromNumber(O)):this.uint32(O)},"write_int32"),e.prototype.sint32=n(function(O){return this.uint32((O<<1^O>>31)>>>0)},"write_sint32");function v(O,b,q){for(;O.hi;)b[q++]=O.lo&127|128,O.lo=(O.lo>>>7|O.hi<<25)>>>0,O.hi>>>=7;for(;O.lo>127;)b[q++]=O.lo&127|128,O.lo=O.lo>>>7;b[q++]=O.lo}g(v,"writeVarint64"),n(v,"writeVarint64"),e.prototype.uint64=n(function(O){var b=m.from(O);return this._push(v,b.length(),b)},"write_uint64"),e.prototype.int64=e.prototype.uint64,e.prototype.sint64=n(function(O){var b=m.from(O).zzEncode();return this._push(v,b.length(),b)},"write_sint64"),e.prototype.bool=n(function(O){return this._push(l,1,O?1:0)},"write_bool");function _(O,b,q){b[q]=O&255,b[q+1]=O>>>8&255,b[q+2]=O>>>16&255,b[q+3]=O>>>24}g(_,"writeFixed32"),n(_,"writeFixed32"),e.prototype.fixed32=n(function(O){return this._push(_,4,O>>>0)},"write_fixed32"),e.prototype.sfixed32=e.prototype.fixed32,e.prototype.fixed64=n(function(O){var b=m.from(O);return this._push(_,4,b.lo)._push(_,4,b.hi)},"write_fixed64"),e.prototype.sfixed64=e.prototype.fixed64,e.prototype.float=n(function(O){return this._push(y.float.writeFloatLE,4,O)},"write_float"),e.prototype.double=n(function(O){return this._push(y.float.writeDoubleLE,8,O)},"write_double");var j=y.Array.prototype.set?n(function(O,b,q){b.set(O,q)},"writeBytes_set"):n(function(O,b,q){for(var S=0;S<O.length;++S)b[q+S]=O[S]},"writeBytes_for");return e.prototype.bytes=n(function(O){var b=O.length>>>0;if(!b)return this._push(l,1,0);if(y.isString(O)){var q=e.alloc(b=h.length(O));h.decode(O,q,0),O=q}return this.uint32(b)._push(j,b,O)},"write_bytes"),e.prototype.string=n(function(O){var b=a.length(O);return b?this.uint32(b)._push(a.write,b,O):this._push(l,1,0)},"write_string"),e.prototype.fork=n(function(){return this.states=new o(this),this.head=this.tail=new s(i,0,0),this.len=0,this},"fork"),e.prototype.reset=n(function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new s(i,0,0),this.len=0),this},"reset"),e.prototype.ldelim=n(function(){var O=this.head,b=this.tail,q=this.len;return this.reset().uint32(q),q&&(this.tail.next=O.next,this.tail=b,this.len+=q),this},"ldelim"),e.prototype.finish=n(function(){for(var O=this.head.next,b=this.constructor.alloc(this.len),q=0;O;)O.fn(O.val,b,q),q+=O.len,O=O.next;return b},"finish"),e._configure=function(O){p=O,e.create=c(),p._configure()},writer}g(requireWriter,"requireWriter");var writer_buffer,hasRequiredWriter_buffer;function requireWriter_buffer(){if(hasRequiredWriter_buffer)return writer_buffer;hasRequiredWriter_buffer=1;var w=Object.defineProperty,n=g((a,s)=>w(a,"name",{value:s,configurable:!0}),"i");writer_buffer=m;var y=requireWriter();(m.prototype=Object.create(y.prototype)).constructor=m;var p=requireMinimal();function m(){y.call(this)}g(m,"BufferWriter"),n(m,"BufferWriter"),m._configure=function(){m.alloc=p._Buffer_allocUnsafe,m.writeBytesBuffer=p.Buffer&&p.Buffer.prototype instanceof Uint8Array&&p.Buffer.prototype.set.name==="set"?n(function(a,s,i){s.set(a,i)},"writeBytesBuffer_set"):n(function(a,s,i){if(a.copy)a.copy(s,i,0,a.length);else for(var o=0;o<a.length;)s[i++]=a[o++]},"writeBytesBuffer_copy")},m.prototype.bytes=n(function(a){p.isString(a)&&(a=p._Buffer_from(a,"base64"));var s=a.length>>>0;return this.uint32(s),s&&this._push(m.writeBytesBuffer,s,a),this},"write_bytes_buffer");function h(a,s,i){a.length<40?p.utf8.write(a,s,i):s.utf8Write?s.utf8Write(a,i):s.write(a,i)}return g(h,"writeStringBuffer"),n(h,"writeStringBuffer"),m.prototype.string=n(function(a){var s=p.Buffer.byteLength(a);return this.uint32(s),s&&this._push(h,s,a),this},"write_string_buffer"),m._configure(),writer_buffer}g(requireWriter_buffer,"requireWriter_buffer");var reader,hasRequiredReader;function requireReader(){if(hasRequiredReader)return reader;hasRequiredReader=1;var w=Object.defineProperty,n=g((f,d)=>w(f,"name",{value:d,configurable:!0}),"s");reader=s;var y=requireMinimal(),p,m=y.LongBits,h=y.utf8;function a(f,d){return RangeError("index out of range: "+f.pos+" + "+(d||1)+" > "+f.len)}g(a,"indexOutOfRange"),n(a,"indexOutOfRange");function s(f){this.buf=f,this.pos=0,this.len=f.length}g(s,"Reader"),n(s,"Reader");var i=typeof Uint8Array<"u"?n(function(f){if(f instanceof Uint8Array||Array.isArray(f))return new s(f);throw Error("illegal buffer")},"create_typed_array"):n(function(f){if(Array.isArray(f))return new s(f);throw Error("illegal buffer")},"create_array"),o=n(function(){return y.Buffer?n(function(f){return(s.create=n(function(d){return y.Buffer.isBuffer(d)?new p(d):i(d)},"create_buffer"))(f)},"create_buffer_setup"):i},"create");s.create=o(),s.prototype._slice=y.Array.prototype.subarray||y.Array.prototype.slice,s.prototype.uint32=n((function(){var f=4294967295;return n(function(){if(f=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(f=(f|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(f=(f|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(f=(f|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(f=(f|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return f;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return f},"read_uint32")}),"read_uint32_setup")(),s.prototype.int32=n(function(){return this.uint32()|0},"read_int32"),s.prototype.sint32=n(function(){var f=this.uint32();return f>>>1^-(f&1)|0},"read_sint32");function e(){var f=new m(0,0),d=0;if(this.len-this.pos>4){for(;d<4;++d)if(f.lo=(f.lo|(this.buf[this.pos]&127)<<d*7)>>>0,this.buf[this.pos++]<128)return f;if(f.lo=(f.lo|(this.buf[this.pos]&127)<<28)>>>0,f.hi=(f.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return f;d=0}else{for(;d<3;++d){if(this.pos>=this.len)throw a(this);if(f.lo=(f.lo|(this.buf[this.pos]&127)<<d*7)>>>0,this.buf[this.pos++]<128)return f}return f.lo=(f.lo|(this.buf[this.pos++]&127)<<d*7)>>>0,f}if(this.len-this.pos>4){for(;d<5;++d)if(f.hi=(f.hi|(this.buf[this.pos]&127)<<d*7+3)>>>0,this.buf[this.pos++]<128)return f}else for(;d<5;++d){if(this.pos>=this.len)throw a(this);if(f.hi=(f.hi|(this.buf[this.pos]&127)<<d*7+3)>>>0,this.buf[this.pos++]<128)return f}throw Error("invalid varint encoding")}g(e,"readLongVarint"),n(e,"readLongVarint"),s.prototype.bool=n(function(){return this.uint32()!==0},"read_bool");function c(f,d){return(f[d-4]|f[d-3]<<8|f[d-2]<<16|f[d-1]<<24)>>>0}g(c,"readFixed32_end"),n(c,"readFixed32_end"),s.prototype.fixed32=n(function(){if(this.pos+4>this.len)throw a(this,4);return c(this.buf,this.pos+=4)},"read_fixed32"),s.prototype.sfixed32=n(function(){if(this.pos+4>this.len)throw a(this,4);return c(this.buf,this.pos+=4)|0},"read_sfixed32");function l(){if(this.pos+8>this.len)throw a(this,8);return new m(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}return g(l,"readFixed64"),n(l,"readFixed64"),s.prototype.float=n(function(){if(this.pos+4>this.len)throw a(this,4);var f=y.float.readFloatLE(this.buf,this.pos);return this.pos+=4,f},"read_float"),s.prototype.double=n(function(){if(this.pos+8>this.len)throw a(this,4);var f=y.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,f},"read_double"),s.prototype.bytes=n(function(){var f=this.uint32(),d=this.pos,v=this.pos+f;if(v>this.len)throw a(this,f);if(this.pos+=f,Array.isArray(this.buf))return this.buf.slice(d,v);if(d===v){var _=y.Buffer;return _?_.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,d,v)},"read_bytes"),s.prototype.string=n(function(){var f=this.bytes();return h.read(f,0,f.length)},"read_string"),s.prototype.skip=n(function(f){if(typeof f=="number"){if(this.pos+f>this.len)throw a(this,f);this.pos+=f}else do if(this.pos>=this.len)throw a(this);while(this.buf[this.pos++]&128);return this},"skip"),s.prototype.skipType=function(f){switch(f){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(f=this.uint32()&7)!==4;)this.skipType(f);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+f+" at offset "+this.pos)}return this},s._configure=function(f){p=f,s.create=o(),p._configure();var d=y.Long?"toLong":"toNumber";y.merge(s.prototype,{int64:n(function(){return e.call(this)[d](!1)},"read_int64"),uint64:n(function(){return e.call(this)[d](!0)},"read_uint64"),sint64:n(function(){return e.call(this).zzDecode()[d](!1)},"read_sint64"),fixed64:n(function(){return l.call(this)[d](!0)},"read_fixed64"),sfixed64:n(function(){return l.call(this)[d](!1)},"read_sfixed64")})},reader}g(requireReader,"requireReader");var reader_buffer,hasRequiredReader_buffer;function requireReader_buffer(){if(hasRequiredReader_buffer)return reader_buffer;hasRequiredReader_buffer=1;var w=Object.defineProperty,n=g((h,a)=>w(h,"name",{value:a,configurable:!0}),"i");reader_buffer=m;var y=requireReader();(m.prototype=Object.create(y.prototype)).constructor=m;var p=requireMinimal();function m(h){y.call(this,h)}return g(m,"BufferReader"),n(m,"BufferReader"),m._configure=function(){p.Buffer&&(m.prototype._slice=p.Buffer.prototype.slice)},m.prototype.string=n(function(){var h=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+h,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+h,this.len))},"read_string_buffer"),m._configure(),reader_buffer}g(requireReader_buffer,"requireReader_buffer");var rpc={},service$1,hasRequiredService$1;function requireService$1(){if(hasRequiredService$1)return service$1;hasRequiredService$1=1;var w=Object.defineProperty,n=g((m,h)=>w(m,"name",{value:h,configurable:!0}),"u");service$1=p;var y=requireMinimal();(p.prototype=Object.create(y.EventEmitter.prototype)).constructor=p;function p(m,h,a){if(typeof m!="function")throw TypeError("rpcImpl must be a function");y.EventEmitter.call(this),this.rpcImpl=m,this.requestDelimited=!!h,this.responseDelimited=!!a}return g(p,"Service"),n(p,"Service"),p.prototype.rpcCall=n(g(function m(h,a,s,i,o){if(!i)throw TypeError("request must be specified");var e=this;if(!o)return y.asPromise(m,e,h,a,s,i);if(!e.rpcImpl){setTimeout(function(){o(Error("already ended"))},0);return}try{return e.rpcImpl(h,a[e.requestDelimited?"encodeDelimited":"encode"](i).finish(),n(function(c,l){if(c)return e.emit("error",c,h),o(c);if(l===null){e.end(!0);return}if(!(l instanceof s))try{l=s[e.responseDelimited?"decodeDelimited":"decode"](l)}catch(f){return e.emit("error",f,h),o(f)}return e.emit("data",l,h),o(null,l)},"rpcCallback"))}catch(c){e.emit("error",c,h),setTimeout(function(){o(c)},0);return}},"i"),"rpcCall"),p.prototype.end=n(function(m){return this.rpcImpl&&(m||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this},"end"),service$1}g(requireService$1,"requireService$1");var hasRequiredRpc;function requireRpc(){return hasRequiredRpc||(hasRequiredRpc=1,(function(w){var n=w;n.Service=requireService$1()})(rpc)),rpc}g(requireRpc,"requireRpc");var roots,hasRequiredRoots;function requireRoots(){return hasRequiredRoots||(hasRequiredRoots=1,roots={}),roots}g(requireRoots,"requireRoots");var hasRequiredIndexMinimal;function requireIndexMinimal(){return hasRequiredIndexMinimal||(hasRequiredIndexMinimal=1,(function(w){var n=Object.defineProperty,y=g((h,a)=>n(h,"name",{value:a,configurable:!0}),"r"),p=w;p.build="minimal",p.Writer=requireWriter(),p.BufferWriter=requireWriter_buffer(),p.Reader=requireReader(),p.BufferReader=requireReader_buffer(),p.util=requireMinimal(),p.rpc=requireRpc(),p.roots=requireRoots(),p.configure=m;function m(){p.util._configure(),p.Writer._configure(p.BufferWriter),p.Reader._configure(p.BufferReader)}g(m,"configure"),y(m,"configure"),m()})(indexMinimal)),indexMinimal}g(requireIndexMinimal,"requireIndexMinimal");var types={},util={exports:{}},codegen_1,hasRequiredCodegen;function requireCodegen(){if(hasRequiredCodegen)return codegen_1;hasRequiredCodegen=1;var w=Object.defineProperty,n=g((p,m)=>w(p,"name",{value:m,configurable:!0}),"u");codegen_1=y;function y(p,m){typeof p=="string"&&(m=p,p=void 0);var h=[];function a(i){if(typeof i!="string"){var o=s();if(y.verbose&&console.log("codegen: "+o),o="return "+o,i){for(var e=Object.keys(i),c=new Array(e.length+1),l=new Array(e.length),f=0;f<e.length;)c[f]=e[f],l[f]=i[e[f++]];return c[f]=o,Function.apply(null,c).apply(null,l)}return Function(o)()}for(var d=new Array(arguments.length-1),v=0;v<d.length;)d[v]=arguments[++v];if(v=0,i=i.replace(/%([%dfijs])/g,n(function(_,j){var O=d[v++];switch(j){case"d":case"f":return String(Number(O));case"i":return String(Math.floor(O));case"j":return JSON.stringify(O);case"s":return String(O)}return"%"},"replace")),v!==d.length)throw Error("parameter count mismatch");return h.push(i),a}g(a,"d"),n(a,"Codegen");function s(i){return"function "+(i||m||"")+"("+(p&&p.join(",")||"")+`){
2
- `+h.join(`
1
+ var zr=Object.defineProperty;var v=(b,i)=>zr(b,"name",{value:i,configurable:!0});function Ur(b,i){for(var d=0;d<i.length;d++){const l=i[d];if(typeof l!="string"&&!Array.isArray(l))for(const h in l)h!=="default"&&!(h in b)&&(b[h]=l[h])}return Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})}v(Ur,"_mergeNamespaces");var Wr=Object.defineProperty,ce=v((b,i)=>Wr(b,"name",{value:i,configurable:!0}),"t"),le=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pr(b){return b&&b.__esModule&&Object.prototype.hasOwnProperty.call(b,"default")?b.default:b}v(Pr,"getDefaultExportFromCjs");ce(Pr,"getDefaultExportFromCjs");function Hr(b){return b&&Object.prototype.hasOwnProperty.call(b,"default")?b.default:b}v(Hr,"getDefaultExportFromNamespaceIfPresent");ce(Hr,"getDefaultExportFromNamespaceIfPresent");function Gr(b){return b&&Object.prototype.hasOwnProperty.call(b,"default")&&Object.keys(b).length===1?b.default:b}v(Gr,"getDefaultExportFromNamespaceIfNotNamed");ce(Gr,"getDefaultExportFromNamespaceIfNotNamed");function Xr(b){if(Object.prototype.hasOwnProperty.call(b,"__esModule"))return b;var i=b.default;if(typeof i=="function"){var d=ce(v(function l(){var h=!1;try{h=this instanceof l}catch{}return h?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)},"a"),"a");d.prototype=i.prototype}else d={};return Object.defineProperty(d,"__esModule",{value:!0}),Object.keys(b).forEach(function(l){var h=Object.getOwnPropertyDescriptor(b,l);Object.defineProperty(d,l,h.get?h:{enumerable:!0,get:ce(function(){return b[l]},"get")})}),d}v(Xr,"getAugmentedNamespace");ce(Xr,"getAugmentedNamespace");var Ae={exports:{}},Se={exports:{}},Ne={},ke={},Te,Ct;function xr(){if(Ct)return Te;Ct=1;var b=Object.defineProperty,i=v((l,h)=>b(l,"name",{value:h,configurable:!0}),"n");Te=d;function d(l,h){for(var c=new Array(arguments.length-1),o=0,r=2,n=!0;r<arguments.length;)c[o++]=arguments[r++];return new Promise(i(function(t,e){c[o]=i(function(u){if(n)if(n=!1,u)e(u);else{for(var a=new Array(arguments.length-1),s=0;s<a.length;)a[s++]=arguments[s];t.apply(null,a)}},"callback");try{l.apply(h||null,c)}catch(u){n&&(n=!1,e(u))}},"executor"))}return v(d,"asPromise"),i(d,"asPromise"),Te}v(xr,"requireAspromise");var Pe={},Jt;function Yr(){return Jt||(Jt=1,(function(b){var i=Object.defineProperty,d=v((n,t)=>i(n,"name",{value:t,configurable:!0}),"v"),l=b;l.length=d(function(n){var t=n.length;if(!t)return 0;for(var e=0;--t%4>1&&n.charAt(t)==="=";)++e;return Math.ceil(n.length*3)/4-e},"length");for(var h=new Array(64),c=new Array(123),o=0;o<64;)c[h[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;l.encode=d(function(n,t,e){for(var u=null,a=[],s=0,f=0,p;t<e;){var m=n[t++];switch(f){case 0:a[s++]=h[m>>2],p=(m&3)<<4,f=1;break;case 1:a[s++]=h[p|m>>4],p=(m&15)<<2,f=2;break;case 2:a[s++]=h[p|m>>6],a[s++]=h[m&63],f=0;break}s>8191&&((u||(u=[])).push(String.fromCharCode.apply(String,a)),s=0)}return f&&(a[s++]=h[p],a[s++]=61,f===1&&(a[s++]=61)),u?(s&&u.push(String.fromCharCode.apply(String,a.slice(0,s))),u.join("")):String.fromCharCode.apply(String,a.slice(0,s))},"encode");var r="invalid encoding";l.decode=d(function(n,t,e){for(var u=e,a=0,s,f=0;f<n.length;){var p=n.charCodeAt(f++);if(p===61&&a>1)break;if((p=c[p])===void 0)throw Error(r);switch(a){case 0:s=p,a=1;break;case 1:t[e++]=s<<2|(p&48)>>4,s=p,a=2;break;case 2:t[e++]=(s&15)<<4|(p&60)>>2,s=p,a=3;break;case 3:t[e++]=(s&3)<<6|p,a=0;break}}if(a===1)throw Error(r);return e-u},"decode"),l.test=d(function(n){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(n)},"test")})(Pe)),Pe}v(Yr,"requireBase64");var xe,Mt;function Kr(){if(Mt)return xe;Mt=1;var b=Object.defineProperty,i=v((l,h)=>b(l,"name",{value:h,configurable:!0}),"r");xe=d;function d(){this._listeners={}}return v(d,"EventEmitter"),i(d,"EventEmitter"),d.prototype.on=i(function(l,h,c){return(this._listeners[l]||(this._listeners[l]=[])).push({fn:h,ctx:c||this}),this},"on"),d.prototype.off=i(function(l,h){if(l===void 0)this._listeners={};else if(h===void 0)this._listeners[l]=[];else for(var c=this._listeners[l],o=0;o<c.length;)c[o].fn===h?c.splice(o,1):++o;return this},"off"),d.prototype.emit=i(function(l){var h=this._listeners[l];if(h){for(var c=[],o=1;o<arguments.length;)c.push(arguments[o++]);for(o=0;o<h.length;)h[o].fn.apply(h[o++].ctx,c)}return this},"emit"),xe}v(Kr,"requireEventemitter");var Fe,Vt;function Zr(){if(Vt)return Fe;Vt=1;var b=Object.defineProperty,i=v((r,n)=>b(r,"name",{value:n,configurable:!0}),"F");Fe=d(d);function d(r){return typeof Float32Array<"u"?(function(){var n=new Float32Array([-0]),t=new Uint8Array(n.buffer),e=t[3]===128;function u(p,m,O){n[0]=p,m[O]=t[0],m[O+1]=t[1],m[O+2]=t[2],m[O+3]=t[3]}v(u,"E"),i(u,"writeFloat_f32_cpy");function a(p,m,O){n[0]=p,m[O]=t[3],m[O+1]=t[2],m[O+2]=t[1],m[O+3]=t[0]}v(a,"_"),i(a,"writeFloat_f32_rev"),r.writeFloatLE=e?u:a,r.writeFloatBE=e?a:u;function s(p,m){return t[0]=p[m],t[1]=p[m+1],t[2]=p[m+2],t[3]=p[m+3],n[0]}v(s,"d"),i(s,"readFloat_f32_cpy");function f(p,m){return t[3]=p[m],t[2]=p[m+1],t[1]=p[m+2],t[0]=p[m+3],n[0]}v(f,"c"),i(f,"readFloat_f32_rev"),r.readFloatLE=e?s:f,r.readFloatBE=e?f:s})():(function(){function n(e,u,a,s){var f=u<0?1:0;if(f&&(u=-u),u===0)e(1/u>0?0:2147483648,a,s);else if(isNaN(u))e(2143289344,a,s);else if(u>34028234663852886e22)e((f<<31|2139095040)>>>0,a,s);else if(u<11754943508222875e-54)e((f<<31|Math.round(u/1401298464324817e-60))>>>0,a,s);else{var p=Math.floor(Math.log(u)/Math.LN2),m=Math.round(u*Math.pow(2,-p)*8388608)&8388607;e((f<<31|p+127<<23|m)>>>0,a,s)}}v(n,"t"),i(n,"writeFloat_ieee754"),r.writeFloatLE=n.bind(null,l),r.writeFloatBE=n.bind(null,h);function t(e,u,a){var s=e(u,a),f=(s>>31)*2+1,p=s>>>23&255,m=s&8388607;return p===255?m?NaN:f*(1/0):p===0?f*1401298464324817e-60*m:f*Math.pow(2,p-150)*(m+8388608)}v(t,"n"),i(t,"readFloat_ieee754"),r.readFloatLE=t.bind(null,c),r.readFloatBE=t.bind(null,o)})(),typeof Float64Array<"u"?(function(){var n=new Float64Array([-0]),t=new Uint8Array(n.buffer),e=t[7]===128;function u(p,m,O){n[0]=p,m[O]=t[0],m[O+1]=t[1],m[O+2]=t[2],m[O+3]=t[3],m[O+4]=t[4],m[O+5]=t[5],m[O+6]=t[6],m[O+7]=t[7]}v(u,"E"),i(u,"writeDouble_f64_cpy");function a(p,m,O){n[0]=p,m[O]=t[7],m[O+1]=t[6],m[O+2]=t[5],m[O+3]=t[4],m[O+4]=t[3],m[O+5]=t[2],m[O+6]=t[1],m[O+7]=t[0]}v(a,"_"),i(a,"writeDouble_f64_rev"),r.writeDoubleLE=e?u:a,r.writeDoubleBE=e?a:u;function s(p,m){return t[0]=p[m],t[1]=p[m+1],t[2]=p[m+2],t[3]=p[m+3],t[4]=p[m+4],t[5]=p[m+5],t[6]=p[m+6],t[7]=p[m+7],n[0]}v(s,"d"),i(s,"readDouble_f64_cpy");function f(p,m){return t[7]=p[m],t[6]=p[m+1],t[5]=p[m+2],t[4]=p[m+3],t[3]=p[m+4],t[2]=p[m+5],t[1]=p[m+6],t[0]=p[m+7],n[0]}v(f,"c"),i(f,"readDouble_f64_rev"),r.readDoubleLE=e?s:f,r.readDoubleBE=e?f:s})():(function(){function n(e,u,a,s,f,p){var m=s<0?1:0;if(m&&(s=-s),s===0)e(0,f,p+u),e(1/s>0?0:2147483648,f,p+a);else if(isNaN(s))e(0,f,p+u),e(2146959360,f,p+a);else if(s>17976931348623157e292)e(0,f,p+u),e((m<<31|2146435072)>>>0,f,p+a);else{var O;if(s<22250738585072014e-324)O=s/5e-324,e(O>>>0,f,p+u),e((m<<31|O/4294967296)>>>0,f,p+a);else{var g=Math.floor(Math.log(s)/Math.LN2);g===1024&&(g=1023),O=s*Math.pow(2,-g),e(O*4503599627370496>>>0,f,p+u),e((m<<31|g+1023<<20|O*1048576&1048575)>>>0,f,p+a)}}}v(n,"t"),i(n,"writeDouble_ieee754"),r.writeDoubleLE=n.bind(null,l,0,4),r.writeDoubleBE=n.bind(null,h,4,0);function t(e,u,a,s,f){var p=e(s,f+u),m=e(s,f+a),O=(m>>31)*2+1,g=m>>>20&2047,y=4294967296*(m&1048575)+p;return g===2047?y?NaN:O*(1/0):g===0?O*5e-324*y:O*Math.pow(2,g-1075)*(y+4503599627370496)}v(t,"n"),i(t,"readDouble_ieee754"),r.readDoubleLE=t.bind(null,c,0,4),r.readDoubleBE=t.bind(null,o,4,0)})(),r}v(d,"factory"),i(d,"factory");function l(r,n,t){n[t]=r&255,n[t+1]=r>>>8&255,n[t+2]=r>>>16&255,n[t+3]=r>>>24}v(l,"writeUintLE"),i(l,"writeUintLE");function h(r,n,t){n[t]=r>>>24,n[t+1]=r>>>16&255,n[t+2]=r>>>8&255,n[t+3]=r&255}v(h,"writeUintBE"),i(h,"writeUintBE");function c(r,n){return(r[n]|r[n+1]<<8|r[n+2]<<16|r[n+3]<<24)>>>0}v(c,"readUintLE"),i(c,"readUintLE");function o(r,n){return(r[n]<<24|r[n+1]<<16|r[n+2]<<8|r[n+3])>>>0}return v(o,"readUintBE"),i(o,"readUintBE"),Fe}v(Zr,"requireFloat");function $t(b){throw new Error('Could not dynamically require "'+b+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}v($t,"commonjsRequire");var qe,zt;function Fr(){if(zt)return qe;zt=1;var b=Object.defineProperty,i=v((l,h)=>b(l,"name",{value:h,configurable:!0}),"t");qe=d;function d(l){try{if(typeof $t!="function")return null;var h=$t(l);return h&&(h.length||Object.keys(h).length)?h:null}catch{return null}}return v(d,"inquire"),i(d,"inquire"),qe}v(Fr,"requireInquire");var Ie={},Ut;function Qr(){return Ut||(Ut=1,(function(b){var i=Object.defineProperty,d=v((c,o)=>i(c,"name",{value:o,configurable:!0}),"d"),l=b,h="�";l.length=d(function(c){for(var o=0,r=0,n=0;n<c.length;++n)r=c.charCodeAt(n),r<128?o+=1:r<2048?o+=2:(r&64512)===55296&&(c.charCodeAt(n+1)&64512)===56320?(++n,o+=4):o+=3;return o},"utf8_length"),l.read=d(function(c,o,r){if(r-o<1)return"";for(var n="",t=o;t<r;){var e=c[t++];if(e<=127)n+=String.fromCharCode(e);else if(e>=192&&e<224){var u=(e&31)<<6|c[t++]&63;n+=u>=128?String.fromCharCode(u):h}else if(e>=224&&e<240){var a=(e&15)<<12|(c[t++]&63)<<6|c[t++]&63;n+=a>=2048?String.fromCharCode(a):h}else if(e>=240){var s=(e&7)<<18|(c[t++]&63)<<12|(c[t++]&63)<<6|c[t++]&63;s<65536||s>1114111?n+=h:(s-=65536,n+=String.fromCharCode(55296+(s>>10)),n+=String.fromCharCode(56320+(s&1023)))}}return n},"utf8_read"),l.write=d(function(c,o,r){for(var n=r,t,e,u=0;u<c.length;++u)t=c.charCodeAt(u),t<128?o[r++]=t:t<2048?(o[r++]=t>>6|192,o[r++]=t&63|128):(t&64512)===55296&&((e=c.charCodeAt(u+1))&64512)===56320?(t=65536+((t&1023)<<10)+(e&1023),++u,o[r++]=t>>18|240,o[r++]=t>>12&63|128,o[r++]=t>>6&63|128,o[r++]=t&63|128):(o[r++]=t>>12|224,o[r++]=t>>6&63|128,o[r++]=t&63|128);return r-n},"utf8_write")})(Ie)),Ie}v(Qr,"requireUtf8");var Le,Wt;function ei(){if(Wt)return Le;Wt=1;var b=Object.defineProperty,i=v((l,h)=>b(l,"name",{value:h,configurable:!0}),"l");Le=d;function d(l,h,c){var o=c||8192,r=o>>>1,n=null,t=o;return i(function(e){if(e<1||e>r)return l(e);t+e>o&&(n=l(o),t=0);var u=h.call(n,t,t+=e);return t&7&&(t=(t|7)+1),u},"pool_alloc")}return v(d,"pool"),i(d,"pool"),Le}v(ei,"requirePool");var Be,Ht;function ti(){if(Ht)return Be;Ht=1;var b=Object.defineProperty,i=v((r,n)=>b(r,"name",{value:n,configurable:!0}),"r");Be=l;var d=ne();function l(r,n){this.lo=r>>>0,this.hi=n>>>0}v(l,"LongBits"),i(l,"LongBits");var h=l.zero=new l(0,0);h.toNumber=function(){return 0},h.zzEncode=h.zzDecode=function(){return this},h.length=function(){return 1};var c=l.zeroHash="\0\0\0\0\0\0\0\0";l.fromNumber=i(function(r){if(r===0)return h;var n=r<0;n&&(r=-r);var t=r>>>0,e=(r-t)/4294967296>>>0;return n&&(e=~e>>>0,t=~t>>>0,++t>4294967295&&(t=0,++e>4294967295&&(e=0))),new l(t,e)},"fromNumber"),l.from=i(function(r){if(typeof r=="number")return l.fromNumber(r);if(d.isString(r))if(d.Long)r=d.Long.fromString(r);else return l.fromNumber(parseInt(r,10));return r.low||r.high?new l(r.low>>>0,r.high>>>0):h},"from"),l.prototype.toNumber=i(function(r){if(!r&&this.hi>>>31){var n=~this.lo+1>>>0,t=~this.hi>>>0;return n||(t=t+1>>>0),-(n+t*4294967296)}return this.lo+this.hi*4294967296},"toNumber"),l.prototype.toLong=i(function(r){return d.Long?new d.Long(this.lo|0,this.hi|0,!!r):{low:this.lo|0,high:this.hi|0,unsigned:!!r}},"toLong");var o=String.prototype.charCodeAt;return l.fromHash=i(function(r){return r===c?h:new l((o.call(r,0)|o.call(r,1)<<8|o.call(r,2)<<16|o.call(r,3)<<24)>>>0,(o.call(r,4)|o.call(r,5)<<8|o.call(r,6)<<16|o.call(r,7)<<24)>>>0)},"fromHash"),l.prototype.toHash=i(function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},"toHash"),l.prototype.zzEncode=i(function(){var r=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^r)>>>0,this.lo=(this.lo<<1^r)>>>0,this},"zzEncode"),l.prototype.zzDecode=i(function(){var r=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^r)>>>0,this.hi=(this.hi>>>1^r)>>>0,this},"zzDecode"),l.prototype.length=i(function(){var r=this.lo,n=(this.lo>>>28|this.hi<<4)>>>0,t=this.hi>>>24;return t===0?n===0?r<16384?r<128?1:2:r<2097152?3:4:n<16384?n<128?5:6:n<2097152?7:8:t<128?9:10},"length"),Be}v(ti,"requireLongbits");var Gt;function ne(){return Gt||(Gt=1,(function(b){var i=Object.defineProperty,d=v((o,r)=>i(o,"name",{value:r,configurable:!0}),"o"),l=b;l.asPromise=xr(),l.base64=Yr(),l.EventEmitter=Kr(),l.float=Zr(),l.inquire=Fr(),l.utf8=Qr(),l.pool=ei(),l.LongBits=ti(),l.isNode=!!(typeof le<"u"&&le&&le.process&&le.process.versions&&le.process.versions.node),l.global=l.isNode&&le||typeof window<"u"&&window||typeof self<"u"&&self||ke,l.emptyArray=Object.freeze?Object.freeze([]):[],l.emptyObject=Object.freeze?Object.freeze({}):{},l.isInteger=Number.isInteger||d(function(o){return typeof o=="number"&&isFinite(o)&&Math.floor(o)===o},"isInteger"),l.isString=d(function(o){return typeof o=="string"||o instanceof String},"isString"),l.isObject=d(function(o){return o&&typeof o=="object"},"isObject"),l.isset=l.isSet=d(function(o,r){var n=o[r];return n!=null&&o.hasOwnProperty(r)?typeof n!="object"||(Array.isArray(n)?n.length:Object.keys(n).length)>0:!1},"isSet"),l.Buffer=(function(){try{var o=l.inquire("buffer").Buffer;return o.prototype.utf8Write?o:null}catch{return null}})(),l._Buffer_from=null,l._Buffer_allocUnsafe=null,l.newBuffer=d(function(o){return typeof o=="number"?l.Buffer?l._Buffer_allocUnsafe(o):new l.Array(o):l.Buffer?l._Buffer_from(o):typeof Uint8Array>"u"?o:new Uint8Array(o)},"newBuffer"),l.Array=typeof Uint8Array<"u"?Uint8Array:Array,l.Long=l.global.dcodeIO&&l.global.dcodeIO.Long||l.global.Long||l.inquire("long"),l.key2Re=/^true|false|0|1$/,l.key32Re=/^-?(?:0|[1-9][0-9]*)$/,l.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,l.longToHash=d(function(o){return o?l.LongBits.from(o).toHash():l.LongBits.zeroHash},"longToHash"),l.longFromHash=d(function(o,r){var n=l.LongBits.fromHash(o);return l.Long?l.Long.fromBits(n.lo,n.hi,r):n.toNumber(!!r)},"longFromHash");function h(o,r,n){for(var t=Object.keys(r),e=0;e<t.length;++e)(o[t[e]]===void 0||!n)&&t[e]!=="__proto__"&&(o[t[e]]=r[t[e]]);return o}v(h,"merge"),d(h,"merge"),l.merge=h,l.recursionLimit=100,l.makeProp=d(function(o,r){Object.defineProperty(o,r,{enumerable:!0,configurable:!0,writable:!0})},"makeProp"),l.lcFirst=d(function(o){return o.charAt(0).toLowerCase()+o.substring(1)},"lcFirst");function c(o){function r(n,t){if(!(this instanceof r))return new r(n,t);Object.defineProperty(this,"message",{get:d(function(){return n},"get")}),Error.captureStackTrace?Error.captureStackTrace(this,r):Object.defineProperty(this,"stack",{value:new Error().stack||""}),t&&h(this,t)}return v(r,"e"),d(r,"CustomError"),r.prototype=Object.create(Error.prototype,{constructor:{value:r,writable:!0,enumerable:!1,configurable:!0},name:{get:d(function(){return o},"get"),set:void 0,enumerable:!1,configurable:!0},toString:{value:d(function(){return this.name+": "+this.message},"value"),writable:!0,enumerable:!1,configurable:!0}}),r}v(c,"newError"),d(c,"newError"),l.newError=c,l.ProtocolError=c("ProtocolError"),l.oneOfGetter=d(function(o){for(var r={},n=0;n<o.length;++n)r[o[n]]=1;return function(){for(var t=Object.keys(this),e=t.length-1;e>-1;--e)if(r[t[e]]===1&&this[t[e]]!==void 0&&this[t[e]]!==null)return t[e]}},"getOneOf"),l.oneOfSetter=d(function(o){return function(r){for(var n=0;n<o.length;++n)o[n]!==r&&delete this[o[n]]}},"setOneOf"),l.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},l._configure=function(){var o=l.Buffer;if(!o){l._Buffer_from=l._Buffer_allocUnsafe=null;return}l._Buffer_from=o.from!==Uint8Array.from&&o.from||d(function(r,n){return new o(r,n)},"Buffer_from"),l._Buffer_allocUnsafe=o.allocUnsafe||d(function(r){return new o(r)},"Buffer_allocUnsafe")}})(ke)),ke}v(ne,"requireMinimal");var De,Xt;function mt(){if(Xt)return De;Xt=1;var b=Object.defineProperty,i=v((g,y)=>b(g,"name",{value:y,configurable:!0}),"n");De=e;var d=ne(),l,h=d.LongBits,c=d.base64,o=d.utf8;function r(g,y,_){this.fn=g,this.len=y,this.next=void 0,this.val=_}v(r,"Op"),i(r,"Op");function n(){}v(n,"noop"),i(n,"noop");function t(g){this.head=g.head,this.tail=g.tail,this.len=g.len,this.next=g.states}v(t,"State"),i(t,"State");function e(){this.len=0,this.head=new r(n,0,0),this.tail=this.head,this.states=null}v(e,"Writer"),i(e,"Writer");var u=i(function(){return d.Buffer?i(function(){return(e.create=i(function(){return new l},"create_buffer"))()},"create_buffer_setup"):i(function(){return new e},"create_array")},"create");e.create=u(),e.alloc=i(function(g){return new d.Array(g)},"alloc"),d.Array!==Array&&(e.alloc=d.pool(e.alloc,d.Array.prototype.subarray)),e.prototype._push=i(function(g,y,_){return this.tail=this.tail.next=new r(g,y,_),this.len+=y,this},"push");function a(g,y,_){y[_]=g&255}v(a,"writeByte"),i(a,"writeByte");function s(g,y,_){for(;g>127;)y[_++]=g&127|128,g>>>=7;y[_]=g}v(s,"writeVarint32"),i(s,"writeVarint32");function f(g,y){this.len=g,this.next=void 0,this.val=y}v(f,"VarintOp"),i(f,"VarintOp"),f.prototype=Object.create(r.prototype),f.prototype.fn=s,e.prototype.uint32=i(function(g){return this.len+=(this.tail=this.tail.next=new f((g=g>>>0)<128?1:g<16384?2:g<2097152?3:g<268435456?4:5,g)).len,this},"write_uint32"),e.prototype.int32=i(function(g){return g<0?this._push(p,10,h.fromNumber(g)):this.uint32(g)},"write_int32"),e.prototype.sint32=i(function(g){return this.uint32((g<<1^g>>31)>>>0)},"write_sint32");function p(g,y,_){for(;g.hi;)y[_++]=g.lo&127|128,g.lo=(g.lo>>>7|g.hi<<25)>>>0,g.hi>>>=7;for(;g.lo>127;)y[_++]=g.lo&127|128,g.lo=g.lo>>>7;y[_++]=g.lo}v(p,"writeVarint64"),i(p,"writeVarint64"),e.prototype.uint64=i(function(g){var y=h.from(g);return this._push(p,y.length(),y)},"write_uint64"),e.prototype.int64=e.prototype.uint64,e.prototype.sint64=i(function(g){var y=h.from(g).zzEncode();return this._push(p,y.length(),y)},"write_sint64"),e.prototype.bool=i(function(g){return this._push(a,1,g?1:0)},"write_bool");function m(g,y,_){y[_]=g&255,y[_+1]=g>>>8&255,y[_+2]=g>>>16&255,y[_+3]=g>>>24}v(m,"writeFixed32"),i(m,"writeFixed32"),e.prototype.fixed32=i(function(g){return this._push(m,4,g>>>0)},"write_fixed32"),e.prototype.sfixed32=e.prototype.fixed32,e.prototype.fixed64=i(function(g){var y=h.from(g);return this._push(m,4,y.lo)._push(m,4,y.hi)},"write_fixed64"),e.prototype.sfixed64=e.prototype.fixed64,e.prototype.float=i(function(g){return this._push(d.float.writeFloatLE,4,g)},"write_float"),e.prototype.double=i(function(g){return this._push(d.float.writeDoubleLE,8,g)},"write_double");var O=d.Array.prototype.set?i(function(g,y,_){y.set(g,_)},"writeBytes_set"):i(function(g,y,_){for(var E=0;E<g.length;++E)y[_+E]=g[E]},"writeBytes_for");return e.prototype.bytes=i(function(g){var y=g.length>>>0;if(!y)return this._push(a,1,0);if(d.isString(g)){var _=e.alloc(y=c.length(g));c.decode(g,_,0),g=_}return this.uint32(y)._push(O,y,g)},"write_bytes"),e.prototype.string=i(function(g){var y=o.length(g);return y?this.uint32(y)._push(o.write,y,g):this._push(a,1,0)},"write_string"),e.prototype.fork=i(function(){return this.states=new t(this),this.head=this.tail=new r(n,0,0),this.len=0,this},"fork"),e.prototype.reset=i(function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new r(n,0,0),this.len=0),this},"reset"),e.prototype.ldelim=i(function(){var g=this.head,y=this.tail,_=this.len;return this.reset().uint32(_),_&&(this.tail.next=g.next,this.tail=y,this.len+=_),this},"ldelim"),e.prototype.finish=i(function(){for(var g=this.head.next,y=this.constructor.alloc(this.len),_=0;g;)g.fn(g.val,y,_),_+=g.len,g=g.next;return y},"finish"),e._configure=function(g){l=g,e.create=u(),l._configure()},De}v(mt,"requireWriter");var Ce,Yt;function ri(){if(Yt)return Ce;Yt=1;var b=Object.defineProperty,i=v((o,r)=>b(o,"name",{value:r,configurable:!0}),"i");Ce=h;var d=mt();(h.prototype=Object.create(d.prototype)).constructor=h;var l=ne();function h(){d.call(this)}v(h,"BufferWriter"),i(h,"BufferWriter"),h._configure=function(){h.alloc=l._Buffer_allocUnsafe,h.writeBytesBuffer=l.Buffer&&l.Buffer.prototype instanceof Uint8Array&&l.Buffer.prototype.set.name==="set"?i(function(o,r,n){r.set(o,n)},"writeBytesBuffer_set"):i(function(o,r,n){if(o.copy)o.copy(r,n,0,o.length);else for(var t=0;t<o.length;)r[n++]=o[t++]},"writeBytesBuffer_copy")},h.prototype.bytes=i(function(o){l.isString(o)&&(o=l._Buffer_from(o,"base64"));var r=o.length>>>0;return this.uint32(r),r&&this._push(h.writeBytesBuffer,r,o),this},"write_bytes_buffer");function c(o,r,n){o.length<40?l.utf8.write(o,r,n):r.utf8Write?r.utf8Write(o,n):r.write(o,n)}return v(c,"writeStringBuffer"),i(c,"writeStringBuffer"),h.prototype.string=i(function(o){var r=l.Buffer.byteLength(o);return this.uint32(r),r&&this._push(c,r,o),this},"write_string_buffer"),h._configure(),Ce}v(ri,"requireWriter_buffer");var Je,Kt;function gt(){if(Kt)return Je;Kt=1;var b=Object.defineProperty,i=v((s,f)=>b(s,"name",{value:f,configurable:!0}),"s");Je=r;var d=ne(),l,h=d.LongBits,c=d.utf8;function o(s,f){return RangeError("index out of range: "+s.pos+" + "+(f||1)+" > "+s.len)}v(o,"indexOutOfRange"),i(o,"indexOutOfRange");function r(s){this.buf=s,this.pos=0,this.len=s.length}v(r,"Reader"),i(r,"Reader");var n=typeof Uint8Array<"u"?i(function(s){if(s instanceof Uint8Array||Array.isArray(s))return new r(s);throw Error("illegal buffer")},"create_typed_array"):i(function(s){if(Array.isArray(s))return new r(s);throw Error("illegal buffer")},"create_array"),t=i(function(){return d.Buffer?i(function(s){return(r.create=i(function(f){return d.Buffer.isBuffer(f)?new l(f):n(f)},"create_buffer"))(s)},"create_buffer_setup"):n},"create");r.create=t(),r.prototype._slice=d.Array.prototype.subarray||d.Array.prototype.slice,r.prototype.uint32=i((function(){var s=4294967295;return i(function(){if(s=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(s=(s|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(s=(s|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(s=(s|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(s=(s|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return s;if((this.pos+=5)>this.len)throw this.pos=this.len,o(this,10);return s},"read_uint32")}),"read_uint32_setup")(),r.prototype.int32=i(function(){return this.uint32()|0},"read_int32"),r.prototype.sint32=i(function(){var s=this.uint32();return s>>>1^-(s&1)|0},"read_sint32");function e(){var s=new h(0,0),f=0;if(this.len-this.pos>4){for(;f<4;++f)if(s.lo=(s.lo|(this.buf[this.pos]&127)<<f*7)>>>0,this.buf[this.pos++]<128)return s;if(s.lo=(s.lo|(this.buf[this.pos]&127)<<28)>>>0,s.hi=(s.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return s;f=0}else{for(;f<3;++f){if(this.pos>=this.len)throw o(this);if(s.lo=(s.lo|(this.buf[this.pos]&127)<<f*7)>>>0,this.buf[this.pos++]<128)return s}return s.lo=(s.lo|(this.buf[this.pos++]&127)<<f*7)>>>0,s}if(this.len-this.pos>4){for(;f<5;++f)if(s.hi=(s.hi|(this.buf[this.pos]&127)<<f*7+3)>>>0,this.buf[this.pos++]<128)return s}else for(;f<5;++f){if(this.pos>=this.len)throw o(this);if(s.hi=(s.hi|(this.buf[this.pos]&127)<<f*7+3)>>>0,this.buf[this.pos++]<128)return s}throw Error("invalid varint encoding")}v(e,"readLongVarint"),i(e,"readLongVarint"),r.prototype.bool=i(function(){return this.uint32()!==0},"read_bool");function u(s,f){return(s[f-4]|s[f-3]<<8|s[f-2]<<16|s[f-1]<<24)>>>0}v(u,"readFixed32_end"),i(u,"readFixed32_end"),r.prototype.fixed32=i(function(){if(this.pos+4>this.len)throw o(this,4);return u(this.buf,this.pos+=4)},"read_fixed32"),r.prototype.sfixed32=i(function(){if(this.pos+4>this.len)throw o(this,4);return u(this.buf,this.pos+=4)|0},"read_sfixed32");function a(){if(this.pos+8>this.len)throw o(this,8);return new h(u(this.buf,this.pos+=4),u(this.buf,this.pos+=4))}return v(a,"readFixed64"),i(a,"readFixed64"),r.prototype.float=i(function(){if(this.pos+4>this.len)throw o(this,4);var s=d.float.readFloatLE(this.buf,this.pos);return this.pos+=4,s},"read_float"),r.prototype.double=i(function(){if(this.pos+8>this.len)throw o(this,4);var s=d.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,s},"read_double"),r.prototype.bytes=i(function(){var s=this.uint32(),f=this.pos,p=this.pos+s;if(p>this.len)throw o(this,s);if(this.pos+=s,Array.isArray(this.buf))return this.buf.slice(f,p);if(f===p){var m=d.Buffer;return m?m.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,f,p)},"read_bytes"),r.prototype.string=i(function(){var s=this.bytes();return c.read(s,0,s.length)},"read_string"),r.prototype.skip=i(function(s){if(typeof s=="number"){if(this.pos+s>this.len)throw o(this,s);this.pos+=s}else do if(this.pos>=this.len)throw o(this);while(this.buf[this.pos++]&128);return this},"skip"),r.recursionLimit=d.recursionLimit,r.prototype.skipType=function(s,f){if(f===void 0&&(f=0),f>r.recursionLimit)throw Error("maximum nesting depth exceeded");switch(s){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(s=this.uint32()&7)!==4;)this.skipType(s,f+1);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+s+" at offset "+this.pos)}return this},r._configure=function(s){l=s,r.create=t(),l._configure();var f=d.Long?"toLong":"toNumber";d.merge(r.prototype,{int64:i(function(){return e.call(this)[f](!1)},"read_int64"),uint64:i(function(){return e.call(this)[f](!0)},"read_uint64"),sint64:i(function(){return e.call(this).zzDecode()[f](!1)},"read_sint64"),fixed64:i(function(){return a.call(this)[f](!0)},"read_fixed64"),sfixed64:i(function(){return a.call(this)[f](!1)},"read_sfixed64")})},Je}v(gt,"requireReader");var Me,Zt;function ii(){if(Zt)return Me;Zt=1;var b=Object.defineProperty,i=v((c,o)=>b(c,"name",{value:o,configurable:!0}),"i");Me=h;var d=gt();(h.prototype=Object.create(d.prototype)).constructor=h;var l=ne();function h(c){d.call(this,c)}return v(h,"BufferReader"),i(h,"BufferReader"),h._configure=function(){l.Buffer&&(h.prototype._slice=l.Buffer.prototype.slice)},h.prototype.string=i(function(){var c=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+c,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+c,this.len))},"read_string_buffer"),h._configure(),Me}v(ii,"requireReader_buffer");var Ve={},$e,Qt;function ni(){if(Qt)return $e;Qt=1;var b=Object.defineProperty,i=v((h,c)=>b(h,"name",{value:c,configurable:!0}),"u");$e=l;var d=ne();(l.prototype=Object.create(d.EventEmitter.prototype)).constructor=l;function l(h,c,o){if(typeof h!="function")throw TypeError("rpcImpl must be a function");d.EventEmitter.call(this),this.rpcImpl=h,this.requestDelimited=!!c,this.responseDelimited=!!o}return v(l,"Service"),i(l,"Service"),l.prototype.rpcCall=i(v(function h(c,o,r,n,t){if(!n)throw TypeError("request must be specified");var e=this;if(!t)return d.asPromise(h,e,c,o,r,n);if(!e.rpcImpl){setTimeout(function(){t(Error("already ended"))},0);return}try{return e.rpcImpl(c,o[e.requestDelimited?"encodeDelimited":"encode"](n).finish(),i(function(u,a){if(u)return e.emit("error",u,c),t(u);if(a===null){e.end(!0);return}if(!(a instanceof r))try{a=r[e.responseDelimited?"decodeDelimited":"decode"](a)}catch(s){return e.emit("error",s,c),t(s)}return e.emit("data",a,c),t(null,a)},"rpcCallback"))}catch(u){e.emit("error",u,c),setTimeout(function(){t(u)},0);return}},"i"),"rpcCall"),l.prototype.end=i(function(h){return this.rpcImpl&&(h||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this},"end"),$e}v(ni,"requireService$1");var er;function qr(){return er||(er=1,(function(b){var i=b;i.Service=ni()})(Ve)),Ve}v(qr,"requireRpc");var ze,tr;function Ir(){return tr||(tr=1,ze={}),ze}v(Ir,"requireRoots");var rr;function oi(){return rr||(rr=1,(function(b){var i=Object.defineProperty,d=v((c,o)=>i(c,"name",{value:o,configurable:!0}),"r"),l=b;l.build="minimal",l.Writer=mt(),l.BufferWriter=ri(),l.Reader=gt(),l.BufferReader=ii(),l.util=ne(),l.rpc=qr(),l.roots=Ir(),l.configure=h;function h(){l.util._configure(),l.Writer._configure(l.BufferWriter),l.Reader._configure(l.BufferReader)}v(h,"configure"),d(h,"configure"),h()})(Ne)),Ne}v(oi,"requireIndexMinimal");var Ue={},We={exports:{}},He={},ir;function Lr(){return ir||(ir=1,(function(b){var i=b;i.numberRe=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,i.typeRefRe=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/,i.reservedRe=/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/,i.unsafePropertyRe=/^(?:__proto__|prototype|constructor)$/})(He)),He}v(Lr,"requirePatterns");var Ge,nr;function si(){if(nr)return Ge;nr=1;var b=Object.defineProperty,i=v((o,r)=>b(o,"name",{value:r,configurable:!0}),"i");Ge=h;var d=Lr(),l=d.reservedRe;function h(o,r){typeof o=="string"&&(r=o,o=void 0);var n=[];function t(u){if(typeof u!="string"){var a=e();if(h.verbose&&console.log("codegen: "+a),a="return "+a,u){for(var s=Object.keys(u),f=new Array(s.length+1),p=new Array(s.length),m=0;m<s.length;)f[m]=s[m],p[m]=u[s[m++]];return f[m]=a,Function.apply(null,f).apply(null,p)}return Function(a)()}for(var O=new Array(arguments.length-1),g=0;g<O.length;)O[g]=arguments[++g];if(g=0,u=u.replace(/%([%dfijs])/g,i(function(y,_){var E=O[g++];switch(_){case"d":case"f":return String(Number(E));case"i":return String(Math.floor(E));case"j":return JSON.stringify(E);case"s":return String(E)}return"%"},"replace")),g!==O.length)throw Error("parameter count mismatch");return n.push(u),t}v(t,"v"),i(t,"Codegen");function e(u){return"function "+c(u||r)+"("+(o&&o.join(",")||"")+`){
2
+ `+n.join(`
3
3
  `)+`
4
- }`}return g(s,"y"),n(s,"toString"),a.toString=s,a}return g(y,"codegen"),n(y,"codegen"),y.verbose=!1,codegen_1}g(requireCodegen,"requireCodegen");var fetch_1,hasRequiredFetch;function requireFetch(){if(hasRequiredFetch)return fetch_1;hasRequiredFetch=1;var w=Object.defineProperty,n=g((a,s)=>w(a,"name",{value:s,configurable:!0}),"i");fetch_1=h;var y=requireAspromise(),p=requireInquire(),m=p("fs");function h(a,s,i){return typeof s=="function"?(i=s,s={}):s||(s={}),i?!s.xhr&&m&&m.readFile?m.readFile(a,n(function(o,e){return o&&typeof XMLHttpRequest<"u"?h.xhr(a,s,i):o?i(o):i(null,s.binary?e:e.toString("utf8"))},"fetchReadFileCallback")):h.xhr(a,s,i):y(h,this,a,s)}return g(h,"fetch"),n(h,"fetch"),h.xhr=n(function(a,s,i){var o=new XMLHttpRequest;o.onreadystatechange=n(function(){if(o.readyState===4){if(o.status!==0&&o.status!==200)return i(Error("status "+o.status));if(s.binary){var e=o.response;if(!e){e=[];for(var c=0;c<o.responseText.length;++c)e.push(o.responseText.charCodeAt(c)&255)}return i(null,typeof Uint8Array<"u"?new Uint8Array(e):e)}return i(null,o.responseText)}},"fetchOnReadyStateChange"),s.binary&&("overrideMimeType"in o&&o.overrideMimeType("text/plain; charset=x-user-defined"),o.responseType="arraybuffer"),o.open("GET",a),o.send()},"fetch_xhr"),fetch_1}g(requireFetch,"requireFetch");var path={},hasRequiredPath;function requirePath(){return hasRequiredPath||(hasRequiredPath=1,(function(w){var n=Object.defineProperty,y=g((a,s)=>n(a,"name",{value:s,configurable:!0}),"o"),p=w,m=p.isAbsolute=y(function(a){return/^(?:\/|\w+:)/.test(a)},"isAbsolute"),h=p.normalize=y(function(a){a=a.replace(/\\/g,"/").replace(/\/{2,}/g,"/");var s=a.split("/"),i=m(a),o="";i&&(o=s.shift()+"/");for(var e=0;e<s.length;)s[e]===".."?e>0&&s[e-1]!==".."?s.splice(--e,2):i?s.splice(e,1):++e:s[e]==="."?s.splice(e,1):++e;return o+s.join("/")},"normalize");p.resolve=y(function(a,s,i){return i||(s=h(s)),m(s)?s:(i||(a=h(a)),(a=a.replace(/(?:\/|^)[^/]+$/,"")).length?h(a+"/"+s):s)},"resolve")})(path)),path}g(requirePath,"requirePath");var namespace,hasRequiredNamespace;function requireNamespace(){if(hasRequiredNamespace)return namespace;hasRequiredNamespace=1;var w=Object.defineProperty,n=g((l,f)=>w(l,"name",{value:f,configurable:!0}),"i");namespace=e;var y=requireObject();((e.prototype=Object.create(y.prototype)).constructor=e).className="Namespace";var p=requireField(),m=requireUtil(),h=requireOneof(),a,s,i;e.fromJSON=n(function(l,f){return new e(l,f.options).addJSON(f.nested)},"fromJSON");function o(l,f){if(l&&l.length){for(var d={},v=0;v<l.length;++v)d[l[v].name]=l[v].toJSON(f);return d}}g(o,"arrayToJSON"),n(o,"arrayToJSON"),e.arrayToJSON=o,e.isReservedId=n(function(l,f){if(l){for(var d=0;d<l.length;++d)if(typeof l[d]!="string"&&l[d][0]<=f&&l[d][1]>f)return!0}return!1},"isReservedId"),e.isReservedName=n(function(l,f){if(l){for(var d=0;d<l.length;++d)if(l[d]===f)return!0}return!1},"isReservedName");function e(l,f){y.call(this,l,f),this.nested=void 0,this._nestedArray=null,this._lookupCache={},this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0}g(e,"Namespace"),n(e,"Namespace");function c(l){l._nestedArray=null,l._lookupCache={};for(var f=l;f=f.parent;)f._lookupCache={};return l}return g(c,"clearCache"),n(c,"clearCache"),Object.defineProperty(e.prototype,"nestedArray",{get:n(function(){return this._nestedArray||(this._nestedArray=m.toArray(this.nested))},"get")}),e.prototype.toJSON=n(function(l){return m.toObject(["options",this.options,"nested",o(this.nestedArray,l)])},"toJSON"),e.prototype.addJSON=n(function(l){var f=this;if(l)for(var d=Object.keys(l),v=0,_;v<d.length;++v)_=l[d[v]],f.add((_.fields!==void 0?a.fromJSON:_.values!==void 0?i.fromJSON:_.methods!==void 0?s.fromJSON:_.id!==void 0?p.fromJSON:e.fromJSON)(d[v],_));return this},"addJSON"),e.prototype.get=n(function(l){return this.nested&&this.nested[l]||null},"get"),e.prototype.getEnum=n(function(l){if(this.nested&&this.nested[l]instanceof i)return this.nested[l].values;throw Error("no such enum: "+l)},"getEnum"),e.prototype.add=n(function(l){if(!(l instanceof p&&l.extend!==void 0||l instanceof a||l instanceof h||l instanceof i||l instanceof s||l instanceof e))throw TypeError("object must be a valid nested object");if(!this.nested)this.nested={};else{var f=this.get(l.name);if(f)if(f instanceof e&&l instanceof e&&!(f instanceof a||f instanceof s)){for(var d=f.nestedArray,v=0;v<d.length;++v)l.add(d[v]);this.remove(f),this.nested||(this.nested={}),l.setOptions(f.options,!0)}else throw Error("duplicate name '"+l.name+"' in "+this)}this.nested[l.name]=l,this instanceof a||this instanceof s||this instanceof i||this instanceof p||l._edition||(l._edition=l._defaultEdition),this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0;for(var _=this;_=_.parent;)_._needsRecursiveFeatureResolution=!0,_._needsRecursiveResolve=!0;return l.onAdd(this),c(this)},"add"),e.prototype.remove=n(function(l){if(!(l instanceof y))throw TypeError("object must be a ReflectionObject");if(l.parent!==this)throw Error(l+" is not a member of "+this);return delete this.nested[l.name],Object.keys(this.nested).length||(this.nested=void 0),l.onRemove(this),c(this)},"remove"),e.prototype.define=n(function(l,f){if(m.isString(l))l=l.split(".");else if(!Array.isArray(l))throw TypeError("illegal path");if(l&&l.length&&l[0]==="")throw Error("path must be relative");for(var d=this;l.length>0;){var v=l.shift();if(d.nested&&d.nested[v]){if(d=d.nested[v],!(d instanceof e))throw Error("path conflicts with non-namespace objects")}else d.add(d=new e(v))}return f&&d.addJSON(f),d},"define"),e.prototype.resolveAll=n(function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var l=this.nestedArray,f=0;for(this.resolve();f<l.length;)l[f]instanceof e?l[f++].resolveAll():l[f++].resolve();return this._needsRecursiveResolve=!1,this},"resolveAll"),e.prototype._resolveFeaturesRecursive=n(function(l){return this._needsRecursiveFeatureResolution?(this._needsRecursiveFeatureResolution=!1,l=this._edition||l,y.prototype._resolveFeaturesRecursive.call(this,l),this.nestedArray.forEach(f=>{f._resolveFeaturesRecursive(l)}),this):this},"_resolveFeaturesRecursive"),e.prototype.lookup=n(function(l,f,d){if(typeof f=="boolean"?(d=f,f=void 0):f&&!Array.isArray(f)&&(f=[f]),m.isString(l)&&l.length){if(l===".")return this.root;l=l.split(".")}else if(!l.length)return this;var v=l.join(".");if(l[0]==="")return this.root.lookup(l.slice(1),f);var _=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+v];if(_&&(!f||f.indexOf(_.constructor)>-1)||(_=this._lookupImpl(l,v),_&&(!f||f.indexOf(_.constructor)>-1)))return _;if(d)return null;for(var j=this;j.parent;){if(_=j.parent._lookupImpl(l,v),_&&(!f||f.indexOf(_.constructor)>-1))return _;j=j.parent}return null},"lookup"),e.prototype._lookupImpl=n(function(l,f){if(Object.prototype.hasOwnProperty.call(this._lookupCache,f))return this._lookupCache[f];var d=this.get(l[0]),v=null;if(d)l.length===1?v=d:d instanceof e&&(l=l.slice(1),v=d._lookupImpl(l,l.join(".")));else for(var _=0;_<this.nestedArray.length;++_)this._nestedArray[_]instanceof e&&(d=this._nestedArray[_]._lookupImpl(l,f))&&(v=d);return this._lookupCache[f]=v,v},"lookup"),e.prototype.lookupType=n(function(l){var f=this.lookup(l,[a]);if(!f)throw Error("no such type: "+l);return f},"lookupType"),e.prototype.lookupEnum=n(function(l){var f=this.lookup(l,[i]);if(!f)throw Error("no such Enum '"+l+"' in "+this);return f},"lookupEnum"),e.prototype.lookupTypeOrEnum=n(function(l){var f=this.lookup(l,[a,i]);if(!f)throw Error("no such Type or Enum '"+l+"' in "+this);return f},"lookupTypeOrEnum"),e.prototype.lookupService=n(function(l){var f=this.lookup(l,[s]);if(!f)throw Error("no such Service '"+l+"' in "+this);return f},"lookupService"),e._configure=function(l,f,d){a=l,s=f,i=d},namespace}g(requireNamespace,"requireNamespace");var mapfield,hasRequiredMapfield;function requireMapfield(){if(hasRequiredMapfield)return mapfield;hasRequiredMapfield=1;var w=Object.defineProperty,n=g((a,s)=>w(a,"name",{value:s,configurable:!0}),"i");mapfield=h;var y=requireField();((h.prototype=Object.create(y.prototype)).constructor=h).className="MapField";var p=requireTypes(),m=requireUtil();function h(a,s,i,o,e,c){if(y.call(this,a,s,o,void 0,void 0,e,c),!m.isString(i))throw TypeError("keyType must be a string");this.keyType=i,this.resolvedKeyType=null,this.map=!0}return g(h,"MapField"),n(h,"MapField"),h.fromJSON=n(function(a,s){return new h(a,s.id,s.keyType,s.type,s.options,s.comment)},"fromJSON"),h.prototype.toJSON=n(function(a){var s=a?!!a.keepComments:!1;return m.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",s?this.comment:void 0])},"toJSON"),h.prototype.resolve=n(function(){if(this.resolved)return this;if(p.mapKey[this.keyType]===void 0)throw Error("invalid key type: "+this.keyType);return y.prototype.resolve.call(this)},"resolve"),h.d=n(function(a,s,i){return typeof i=="function"?i=m.decorateType(i).name:i&&typeof i=="object"&&(i=m.decorateEnum(i).name),n(function(o,e){m.decorateType(o.constructor).add(new h(e,a,s,i))},"mapFieldDecorator")},"decorateMapField"),mapfield}g(requireMapfield,"requireMapfield");var method,hasRequiredMethod;function requireMethod(){if(hasRequiredMethod)return method;hasRequiredMethod=1;var w=Object.defineProperty,n=g((h,a)=>w(h,"name",{value:a,configurable:!0}),"i");method=m;var y=requireObject();((m.prototype=Object.create(y.prototype)).constructor=m).className="Method";var p=requireUtil();function m(h,a,s,i,o,e,c,l,f){if(p.isObject(o)?(c=o,o=e=void 0):p.isObject(e)&&(c=e,e=void 0),!(a===void 0||p.isString(a)))throw TypeError("type must be a string");if(!p.isString(s))throw TypeError("requestType must be a string");if(!p.isString(i))throw TypeError("responseType must be a string");y.call(this,h,c),this.type=a||"rpc",this.requestType=s,this.requestStream=o?!0:void 0,this.responseType=i,this.responseStream=e?!0:void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=l,this.parsedOptions=f}return g(m,"Method"),n(m,"Method"),m.fromJSON=n(function(h,a){return new m(h,a.type,a.requestType,a.responseType,a.requestStream,a.responseStream,a.options,a.comment,a.parsedOptions)},"fromJSON"),m.prototype.toJSON=n(function(h){var a=h?!!h.keepComments:!1;return p.toObject(["type",this.type!=="rpc"&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",a?this.comment:void 0,"parsedOptions",this.parsedOptions])},"toJSON"),m.prototype.resolve=n(function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),y.prototype.resolve.call(this))},"resolve"),method}g(requireMethod,"requireMethod");var service,hasRequiredService;function requireService(){if(hasRequiredService)return service;hasRequiredService=1;var w=Object.defineProperty,n=g((i,o)=>w(i,"name",{value:o,configurable:!0}),"o");service=a;var y=requireNamespace();((a.prototype=Object.create(y.prototype)).constructor=a).className="Service";var p=requireMethod(),m=requireUtil(),h=requireRpc();function a(i,o){y.call(this,i,o),this.methods={},this._methodsArray=null}g(a,"Service"),n(a,"Service"),a.fromJSON=n(function(i,o){var e=new a(i,o.options);if(o.methods)for(var c=Object.keys(o.methods),l=0;l<c.length;++l)e.add(p.fromJSON(c[l],o.methods[c[l]]));return o.nested&&e.addJSON(o.nested),o.edition&&(e._edition=o.edition),e.comment=o.comment,e._defaultEdition="proto3",e},"fromJSON"),a.prototype.toJSON=n(function(i){var o=y.prototype.toJSON.call(this,i),e=i?!!i.keepComments:!1;return m.toObject(["edition",this._editionToJSON(),"options",o&&o.options||void 0,"methods",y.arrayToJSON(this.methodsArray,i)||{},"nested",o&&o.nested||void 0,"comment",e?this.comment:void 0])},"toJSON"),Object.defineProperty(a.prototype,"methodsArray",{get:n(function(){return this._methodsArray||(this._methodsArray=m.toArray(this.methods))},"get")});function s(i){return i._methodsArray=null,i}return g(s,"clearCache"),n(s,"clearCache"),a.prototype.get=n(function(i){return this.methods[i]||y.prototype.get.call(this,i)},"get"),a.prototype.resolveAll=n(function(){if(!this._needsRecursiveResolve)return this;y.prototype.resolve.call(this);for(var i=this.methodsArray,o=0;o<i.length;++o)i[o].resolve();return this},"resolveAll"),a.prototype._resolveFeaturesRecursive=n(function(i){return this._needsRecursiveFeatureResolution?(i=this._edition||i,y.prototype._resolveFeaturesRecursive.call(this,i),this.methodsArray.forEach(o=>{o._resolveFeaturesRecursive(i)}),this):this},"_resolveFeaturesRecursive"),a.prototype.add=n(function(i){if(this.get(i.name))throw Error("duplicate name '"+i.name+"' in "+this);return i instanceof p?(this.methods[i.name]=i,i.parent=this,s(this)):y.prototype.add.call(this,i)},"add"),a.prototype.remove=n(function(i){if(i instanceof p){if(this.methods[i.name]!==i)throw Error(i+" is not a member of "+this);return delete this.methods[i.name],i.parent=null,s(this)}return y.prototype.remove.call(this,i)},"remove"),a.prototype.create=n(function(i,o,e){for(var c=new h.Service(i,o,e),l=0,f;l<this.methodsArray.length;++l){var d=m.lcFirst((f=this._methodsArray[l]).resolve().name).replace(/[^$\w_]/g,"");c[d]=m.codegen(["r","c"],m.isReserved(d)?d+"_":d)("return this.rpcCall(m,q,s,r,c)")({m:f,q:f.resolvedRequestType.ctor,s:f.resolvedResponseType.ctor})}return c},"create"),service}g(requireService,"requireService");var message,hasRequiredMessage;function requireMessage(){if(hasRequiredMessage)return message;hasRequiredMessage=1;var w=Object.defineProperty,n=g((m,h)=>w(m,"name",{value:h,configurable:!0}),"i");message=p;var y=requireMinimal();function p(m){if(m)for(var h=Object.keys(m),a=0;a<h.length;++a){var s=h[a];s!=="__proto__"&&(this[s]=m[s])}}return g(p,"Message"),n(p,"Message"),p.create=n(function(m){return this.$type.create(m)},"create"),p.encode=n(function(m,h){return this.$type.encode(m,h)},"encode"),p.encodeDelimited=n(function(m,h){return this.$type.encodeDelimited(m,h)},"encodeDelimited"),p.decode=n(function(m){return this.$type.decode(m)},"decode"),p.decodeDelimited=n(function(m){return this.$type.decodeDelimited(m)},"decodeDelimited"),p.verify=n(function(m){return this.$type.verify(m)},"verify"),p.fromObject=n(function(m){return this.$type.fromObject(m)},"fromObject"),p.toObject=n(function(m,h){return this.$type.toObject(m,h)},"toObject"),p.prototype.toJSON=n(function(){return this.$type.toObject(this,y.toJSONOptions)},"toJSON"),message}g(requireMessage,"requireMessage");var decoder_1,hasRequiredDecoder;function requireDecoder(){if(hasRequiredDecoder)return decoder_1;hasRequiredDecoder=1;var w=Object.defineProperty,n=g((s,i)=>w(s,"name",{value:i,configurable:!0}),"t");decoder_1=a;var y=require_enum(),p=requireTypes(),m=requireUtil();function h(s){return"missing required '"+s.name+"'"}g(h,"missing"),n(h,"missing");function a(s){for(var i=m.codegen(["r","l","e"],s.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(s.fieldsArray.filter(function(d){return d.map}).length?",k,value":""))("while(r.pos<c){")("var t=r.uint32()")("if(t===e)")("break")("switch(t>>>3){"),o=0;o<s.fieldsArray.length;++o){var e=s._fieldsArray[o].resolve(),c=e.resolvedType instanceof y?"int32":e.type,l="m"+m.safeProp(e.name);i("case %i: {",e.id),e.map?(i("if(%s===util.emptyObject)",l)("%s={}",l)("var c2 = r.uint32()+r.pos"),p.defaults[e.keyType]!==void 0?i("k=%j",p.defaults[e.keyType]):i("k=null"),p.defaults[c]!==void 0?i("value=%j",p.defaults[c]):i("value=null"),i("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break",e.keyType)("case 2:"),p.basic[c]===void 0?i("value=types[%i].decode(r,r.uint32())",o):i("value=r.%s()",c),i("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),p.long[e.keyType]!==void 0?i('%s[typeof k==="object"?util.longToHash(k):k]=value',l):i("%s[k]=value",l)):e.repeated?(i("if(!(%s&&%s.length))",l,l)("%s=[]",l),p.packed[c]!==void 0&&i("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",l,c)("}else"),p.basic[c]===void 0?i(e.delimited?"%s.push(types[%i].decode(r,undefined,((t&~7)|4)))":"%s.push(types[%i].decode(r,r.uint32()))",l,o):i("%s.push(r.%s())",l,c)):p.basic[c]===void 0?i(e.delimited?"%s=types[%i].decode(r,undefined,((t&~7)|4))":"%s=types[%i].decode(r,r.uint32())",l,o):i("%s=r.%s()",l,c),i("break")("}")}for(i("default:")("r.skipType(t&7)")("break")("}")("}"),o=0;o<s._fieldsArray.length;++o){var f=s._fieldsArray[o];f.required&&i("if(!m.hasOwnProperty(%j))",f.name)("throw util.ProtocolError(%j,{instance:m})",h(f))}return i("return m")}return g(a,"decoder"),n(a,"decoder"),decoder_1}g(requireDecoder,"requireDecoder");var verifier_1,hasRequiredVerifier;function requireVerifier(){if(hasRequiredVerifier)return verifier_1;hasRequiredVerifier=1;var w=Object.defineProperty,n=g((i,o)=>w(i,"name",{value:o,configurable:!0}),"u");verifier_1=s;var y=require_enum(),p=requireUtil();function m(i,o){return i.name+": "+o+(i.repeated&&o!=="array"?"[]":i.map&&o!=="object"?"{k:"+i.keyType+"}":"")+" expected"}g(m,"invalid"),n(m,"invalid");function h(i,o,e,c){if(o.resolvedType)if(o.resolvedType instanceof y){i("switch(%s){",c)("default:")("return%j",m(o,"enum value"));for(var l=Object.keys(o.resolvedType.values),f=0;f<l.length;++f)i("case %i:",o.resolvedType.values[l[f]]);i("break")("}")}else i("{")("var e=types[%i].verify(%s);",e,c)("if(e)")("return%j+e",o.name+".")("}");else switch(o.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":i("if(!util.isInteger(%s))",c)("return%j",m(o,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":i("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",c,c,c,c)("return%j",m(o,"integer|Long"));break;case"float":case"double":i('if(typeof %s!=="number")',c)("return%j",m(o,"number"));break;case"bool":i('if(typeof %s!=="boolean")',c)("return%j",m(o,"boolean"));break;case"string":i("if(!util.isString(%s))",c)("return%j",m(o,"string"));break;case"bytes":i('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',c,c,c)("return%j",m(o,"buffer"));break}return i}g(h,"genVerifyValue"),n(h,"genVerifyValue");function a(i,o,e){switch(o.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":i("if(!util.key32Re.test(%s))",e)("return%j",m(o,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":i("if(!util.key64Re.test(%s))",e)("return%j",m(o,"integer|Long key"));break;case"bool":i("if(!util.key2Re.test(%s))",e)("return%j",m(o,"boolean key"));break}return i}g(a,"genVerifyKey"),n(a,"genVerifyKey");function s(i){var o=p.codegen(["m"],i.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),e=i.oneofsArray,c={};e.length&&o("var p={}");for(var l=0;l<i.fieldsArray.length;++l){var f=i._fieldsArray[l].resolve(),d="m"+p.safeProp(f.name);if(f.optional&&o("if(%s!=null&&m.hasOwnProperty(%j)){",d,f.name),f.map)o("if(!util.isObject(%s))",d)("return%j",m(f,"object"))("var k=Object.keys(%s)",d)("for(var i=0;i<k.length;++i){"),a(o,f,"k[i]"),h(o,f,l,d+"[k[i]]")("}");else if(f.repeated)o("if(!Array.isArray(%s))",d)("return%j",m(f,"array"))("for(var i=0;i<%s.length;++i){",d),h(o,f,l,d+"[i]")("}");else{if(f.partOf){var v=p.safeProp(f.partOf.name);c[f.partOf.name]===1&&o("if(p%s===1)",v)("return%j",f.partOf.name+": multiple values"),c[f.partOf.name]=1,o("p%s=1",v)}h(o,f,l,d)}f.optional&&o("}")}return o("return null")}return g(s,"verifier"),n(s,"verifier"),verifier_1}g(requireVerifier,"requireVerifier");var converter={},hasRequiredConverter;function requireConverter(){return hasRequiredConverter||(hasRequiredConverter=1,(function(w){var n=Object.defineProperty,y=g((i,o)=>n(i,"name",{value:o,configurable:!0}),"m"),p=w,m=require_enum(),h=requireUtil();function a(i,o,e,c){var l=!1;if(o.resolvedType)if(o.resolvedType instanceof m){i("switch(d%s){",c);for(var f=o.resolvedType.values,d=Object.keys(f),v=0;v<d.length;++v)f[d[v]]===o.typeDefault&&!l&&(i("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}',c,c,c),o.repeated||i("break"),l=!0),i("case%j:",d[v])("case %i:",f[d[v]])("m%s=%j",c,f[d[v]])("break");i("}")}else i('if(typeof d%s!=="object")',c)("throw TypeError(%j)",o.fullName+": object expected")("m%s=types[%i].fromObject(d%s)",c,e,c);else{var _=!1;switch(o.type){case"double":case"float":i("m%s=Number(d%s)",c,c);break;case"uint32":case"fixed32":i("m%s=d%s>>>0",c,c);break;case"int32":case"sint32":case"sfixed32":i("m%s=d%s|0",c,c);break;case"uint64":_=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":i("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",c,c,_)('else if(typeof d%s==="string")',c)("m%s=parseInt(d%s,10)",c,c)('else if(typeof d%s==="number")',c)("m%s=d%s",c,c)('else if(typeof d%s==="object")',c)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",c,c,c,_?"true":"");break;case"bytes":i('if(typeof d%s==="string")',c)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",c,c,c)("else if(d%s.length >= 0)",c)("m%s=d%s",c,c);break;case"string":i("m%s=String(d%s)",c,c);break;case"bool":i("m%s=Boolean(d%s)",c,c);break}}return i}g(a,"genValuePartial_fromObject"),y(a,"genValuePartial_fromObject"),p.fromObject=y(function(i){var o=i.fieldsArray,e=h.codegen(["d"],i.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!o.length)return e("return new this.ctor");e("var m=new this.ctor");for(var c=0;c<o.length;++c){var l=o[c].resolve(),f=h.safeProp(l.name);l.map?(e("if(d%s){",f)('if(typeof d%s!=="object")',f)("throw TypeError(%j)",l.fullName+": object expected")("m%s={}",f)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",f),a(e,l,c,f+"[ks[i]]")("}")("}")):l.repeated?(e("if(d%s){",f)("if(!Array.isArray(d%s))",f)("throw TypeError(%j)",l.fullName+": array expected")("m%s=[]",f)("for(var i=0;i<d%s.length;++i){",f),a(e,l,c,f+"[i]")("}")("}")):(l.resolvedType instanceof m||e("if(d%s!=null){",f),a(e,l,c,f),l.resolvedType instanceof m||e("}"))}return e("return m")},"fromObject");function s(i,o,e,c){if(o.resolvedType)o.resolvedType instanceof m?i("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",c,e,c,c,e,c,c):i("d%s=types[%i].toObject(m%s,o)",c,e,c);else{var l=!1;switch(o.type){case"double":case"float":i("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",c,c,c,c);break;case"uint64":l=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":i('if(typeof m%s==="number")',c)("d%s=o.longs===String?String(m%s):m%s",c,c,c)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",c,c,c,c,l?"true":"",c);break;case"bytes":i("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",c,c,c,c,c);break;default:i("d%s=m%s",c,c);break}}return i}g(s,"genValuePartial_toObject"),y(s,"genValuePartial_toObject"),p.toObject=y(function(i){var o=i.fieldsArray.slice().sort(h.compareFieldsById);if(!o.length)return h.codegen()("return {}");for(var e=h.codegen(["m","o"],i.name+"$toObject")("if(!o)")("o={}")("var d={}"),c=[],l=[],f=[],d=0;d<o.length;++d)o[d].partOf||(o[d].resolve().repeated?c:o[d].map?l:f).push(o[d]);if(c.length){for(e("if(o.arrays||o.defaults){"),d=0;d<c.length;++d)e("d%s=[]",h.safeProp(c[d].name));e("}")}if(l.length){for(e("if(o.objects||o.defaults){"),d=0;d<l.length;++d)e("d%s={}",h.safeProp(l[d].name));e("}")}if(f.length){for(e("if(o.defaults){"),d=0;d<f.length;++d){var v=f[d],_=h.safeProp(v.name);if(v.resolvedType instanceof m)e("d%s=o.enums===String?%j:%j",_,v.resolvedType.valuesById[v.typeDefault],v.typeDefault);else if(v.long)e("if(util.Long){")("var n=new util.Long(%i,%i,%j)",v.typeDefault.low,v.typeDefault.high,v.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",_)("}else")("d%s=o.longs===String?%j:%i",_,v.typeDefault.toString(),v.typeDefault.toNumber());else if(v.bytes){var j="["+Array.prototype.slice.call(v.typeDefault).join(",")+"]";e("if(o.bytes===String)d%s=%j",_,String.fromCharCode.apply(String,v.typeDefault))("else{")("d%s=%s",_,j)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",_,_)("}")}else e("d%s=%j",_,v.typeDefault)}e("}")}var O=!1;for(d=0;d<o.length;++d){var v=o[d],b=i._fieldsArray.indexOf(v),_=h.safeProp(v.name);v.map?(O||(O=!0,e("var ks2")),e("if(m%s&&(ks2=Object.keys(m%s)).length){",_,_)("d%s={}",_)("for(var j=0;j<ks2.length;++j){"),s(e,v,b,_+"[ks2[j]]")("}")):v.repeated?(e("if(m%s&&m%s.length){",_,_)("d%s=[]",_)("for(var j=0;j<m%s.length;++j){",_),s(e,v,b,_+"[j]")("}")):(e("if(m%s!=null&&m.hasOwnProperty(%j)){",_,v.name),s(e,v,b,_),v.partOf&&e("if(o.oneofs)")("d%s=%j",h.safeProp(v.partOf.name),v.name)),e("}")}return e("return d")},"toObject")})(converter)),converter}g(requireConverter,"requireConverter");var wrappers={},hasRequiredWrappers;function requireWrappers(){return hasRequiredWrappers||(hasRequiredWrappers=1,(function(w){var n=Object.defineProperty,y=g((h,a)=>n(h,"name",{value:a,configurable:!0}),"l"),p=w,m=requireMessage();p[".google.protobuf.Any"]={fromObject:y(function(h){if(h&&h["@type"]){var a=h["@type"].substring(h["@type"].lastIndexOf("/")+1),s=this.lookup(a);if(s){var i=h["@type"].charAt(0)==="."?h["@type"].slice(1):h["@type"];return i.indexOf("/")===-1&&(i="/"+i),this.create({type_url:i,value:s.encode(s.fromObject(h)).finish()})}}return this.fromObject(h)},"fromObject"),toObject:y(function(h,a){var s="type.googleapis.com/",i="",o="";if(a&&a.json&&h.type_url&&h.value){o=h.type_url.substring(h.type_url.lastIndexOf("/")+1),i=h.type_url.substring(0,h.type_url.lastIndexOf("/")+1);var e=this.lookup(o);e&&(h=e.decode(h.value))}if(!(h instanceof this.ctor)&&h instanceof m){var c=h.$type.toObject(h,a),l=h.$type.fullName[0]==="."?h.$type.fullName.slice(1):h.$type.fullName;return i===""&&(i=s),o=i+l,c["@type"]=o,c}return this.toObject(h,a)},"toObject")}})(wrappers)),wrappers}g(requireWrappers,"requireWrappers");var type,hasRequiredType;function requireType(){if(hasRequiredType)return type;hasRequiredType=1;var w=Object.defineProperty,n=g((b,q)=>w(b,"name",{value:q,configurable:!0}),"s");type=j;var y=requireNamespace();((j.prototype=Object.create(y.prototype)).constructor=j).className="Type";var p=require_enum(),m=requireOneof(),h=requireField(),a=requireMapfield(),s=requireService(),i=requireMessage(),o=requireReader(),e=requireWriter(),c=requireUtil(),l=requireEncoder(),f=requireDecoder(),d=requireVerifier(),v=requireConverter(),_=requireWrappers();function j(b,q){b=b.replace(/\W/g,""),y.call(this,b,q),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}g(j,"Type"),n(j,"Type"),Object.defineProperties(j.prototype,{fieldsById:{get:n(function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var b=Object.keys(this.fields),q=0;q<b.length;++q){var S=this.fields[b[q]],x=S.id;if(this._fieldsById[x])throw Error("duplicate id "+x+" in "+this);this._fieldsById[x]=S}return this._fieldsById},"get")},fieldsArray:{get:n(function(){return this._fieldsArray||(this._fieldsArray=c.toArray(this.fields))},"get")},oneofsArray:{get:n(function(){return this._oneofsArray||(this._oneofsArray=c.toArray(this.oneofs))},"get")},ctor:{get:n(function(){return this._ctor||(this.ctor=j.generateConstructor(this)())},"get"),set:n(function(b){var q=b.prototype;q instanceof i||((b.prototype=new i).constructor=b,c.merge(b.prototype,q)),b.$type=b.prototype.$type=this,c.merge(b,i,!0),this._ctor=b;for(var S=0;S<this.fieldsArray.length;++S)this._fieldsArray[S].resolve();var x={};for(S=0;S<this.oneofsArray.length;++S)x[this._oneofsArray[S].resolve().name]={get:c.oneOfGetter(this._oneofsArray[S].oneof),set:c.oneOfSetter(this._oneofsArray[S].oneof)};S&&Object.defineProperties(b.prototype,x)},"set")}}),j.generateConstructor=n(function(b){for(var q=c.codegen(["p"],b.name),S=0,x;S<b.fieldsArray.length;++S)(x=b._fieldsArray[S]).map?q("this%s={}",c.safeProp(x.name)):x.repeated&&q("this%s=[]",c.safeProp(x.name));return q("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]")},"generateConstructor");function O(b){return b._fieldsById=b._fieldsArray=b._oneofsArray=null,delete b.encode,delete b.decode,delete b.verify,b}return g(O,"clearCache"),n(O,"clearCache"),j.fromJSON=n(function(b,q){var S=new j(b,q.options);S.extensions=q.extensions,S.reserved=q.reserved;for(var x=Object.keys(q.fields),I=0;I<x.length;++I)S.add((typeof q.fields[x[I]].keyType<"u"?a.fromJSON:h.fromJSON)(x[I],q.fields[x[I]]));if(q.oneofs)for(x=Object.keys(q.oneofs),I=0;I<x.length;++I)S.add(m.fromJSON(x[I],q.oneofs[x[I]]));if(q.nested)for(x=Object.keys(q.nested),I=0;I<x.length;++I){var V=q.nested[x[I]];S.add((V.id!==void 0?h.fromJSON:V.fields!==void 0?j.fromJSON:V.values!==void 0?p.fromJSON:V.methods!==void 0?s.fromJSON:y.fromJSON)(x[I],V))}return q.extensions&&q.extensions.length&&(S.extensions=q.extensions),q.reserved&&q.reserved.length&&(S.reserved=q.reserved),q.group&&(S.group=!0),q.comment&&(S.comment=q.comment),q.edition&&(S._edition=q.edition),S._defaultEdition="proto3",S},"fromJSON"),j.prototype.toJSON=n(function(b){var q=y.prototype.toJSON.call(this,b),S=b?!!b.keepComments:!1;return c.toObject(["edition",this._editionToJSON(),"options",q&&q.options||void 0,"oneofs",y.arrayToJSON(this.oneofsArray,b),"fields",y.arrayToJSON(this.fieldsArray.filter(function(x){return!x.declaringField}),b)||{},"extensions",this.extensions&&this.extensions.length?this.extensions:void 0,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"group",this.group||void 0,"nested",q&&q.nested||void 0,"comment",S?this.comment:void 0])},"toJSON"),j.prototype.resolveAll=n(function(){if(!this._needsRecursiveResolve)return this;y.prototype.resolveAll.call(this);var b=this.oneofsArray;for(S=0;S<b.length;)b[S++].resolve();for(var q=this.fieldsArray,S=0;S<q.length;)q[S++].resolve();return this},"resolveAll"),j.prototype._resolveFeaturesRecursive=n(function(b){return this._needsRecursiveFeatureResolution?(b=this._edition||b,y.prototype._resolveFeaturesRecursive.call(this,b),this.oneofsArray.forEach(q=>{q._resolveFeatures(b)}),this.fieldsArray.forEach(q=>{q._resolveFeatures(b)}),this):this},"_resolveFeaturesRecursive"),j.prototype.get=n(function(b){return this.fields[b]||this.oneofs&&this.oneofs[b]||this.nested&&this.nested[b]||null},"get"),j.prototype.add=n(function(b){if(this.get(b.name))throw Error("duplicate name '"+b.name+"' in "+this);if(b instanceof h&&b.extend===void 0){if(this._fieldsById?this._fieldsById[b.id]:this.fieldsById[b.id])throw Error("duplicate id "+b.id+" in "+this);if(this.isReservedId(b.id))throw Error("id "+b.id+" is reserved in "+this);if(this.isReservedName(b.name))throw Error("name '"+b.name+"' is reserved in "+this);return b.parent&&b.parent.remove(b),this.fields[b.name]=b,b.message=this,b.onAdd(this),O(this)}return b instanceof m?(this.oneofs||(this.oneofs={}),this.oneofs[b.name]=b,b.onAdd(this),O(this)):y.prototype.add.call(this,b)},"add"),j.prototype.remove=n(function(b){if(b instanceof h&&b.extend===void 0){if(!this.fields||this.fields[b.name]!==b)throw Error(b+" is not a member of "+this);return delete this.fields[b.name],b.parent=null,b.onRemove(this),O(this)}if(b instanceof m){if(!this.oneofs||this.oneofs[b.name]!==b)throw Error(b+" is not a member of "+this);return delete this.oneofs[b.name],b.parent=null,b.onRemove(this),O(this)}return y.prototype.remove.call(this,b)},"remove"),j.prototype.isReservedId=n(function(b){return y.isReservedId(this.reserved,b)},"isReservedId"),j.prototype.isReservedName=n(function(b){return y.isReservedName(this.reserved,b)},"isReservedName"),j.prototype.create=n(function(b){return new this.ctor(b)},"create"),j.prototype.setup=n(function(){for(var b=this.fullName,q=[],S=0;S<this.fieldsArray.length;++S)q.push(this._fieldsArray[S].resolve().resolvedType);this.encode=l(this)({Writer:e,types:q,util:c}),this.decode=f(this)({Reader:o,types:q,util:c}),this.verify=d(this)({types:q,util:c}),this.fromObject=v.fromObject(this)({types:q,util:c}),this.toObject=v.toObject(this)({types:q,util:c});var x=_[b];if(x){var I=Object.create(this);I.fromObject=this.fromObject,this.fromObject=x.fromObject.bind(I),I.toObject=this.toObject,this.toObject=x.toObject.bind(I)}return this},"setup"),j.prototype.encode=n(function(b,q){return this.setup().encode(b,q)},"encode_setup"),j.prototype.encodeDelimited=n(function(b,q){return this.encode(b,q&&q.len?q.fork():q).ldelim()},"encodeDelimited"),j.prototype.decode=n(function(b,q){return this.setup().decode(b,q)},"decode_setup"),j.prototype.decodeDelimited=n(function(b){return b instanceof o||(b=o.create(b)),this.decode(b,b.uint32())},"decodeDelimited"),j.prototype.verify=n(function(b){return this.setup().verify(b)},"verify_setup"),j.prototype.fromObject=n(function(b){return this.setup().fromObject(b)},"fromObject"),j.prototype.toObject=n(function(b,q){return this.setup().toObject(b,q)},"toObject"),j.d=n(function(b){return n(function(q){c.decorateType(q,b)},"typeDecorator")},"decorateType"),type}g(requireType,"requireType");var root,hasRequiredRoot;function requireRoot(){if(hasRequiredRoot)return root;hasRequiredRoot=1;var w=Object.defineProperty,n=g((d,v)=>w(d,"name",{value:v,configurable:!0}),"u");root=e;var y=requireNamespace();((e.prototype=Object.create(y.prototype)).constructor=e).className="Root";var p=requireField(),m=require_enum(),h=requireOneof(),a=requireUtil(),s,i,o;function e(d){y.call(this,"",d),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}g(e,"Root"),n(e,"Root"),e.fromJSON=n(function(d,v){return v||(v=new e),d.options&&v.setOptions(d.options),v.addJSON(d.nested).resolveAll()},"fromJSON"),e.prototype.resolvePath=a.path.resolve,e.prototype.fetch=a.fetch;function c(){}g(c,"SYNC"),n(c,"SYNC"),e.prototype.load=n(g(function d(v,_,j){typeof _=="function"&&(j=_,_=void 0);var O=this;if(!j)return a.asPromise(d,O,v,_);var b=j===c;function q(C,J){if(j){if(b)throw C;J&&J.resolveAll();var N=j;j=null,N(C,J)}}g(q,"h"),n(q,"finish");function S(C){var J=C.lastIndexOf("google/protobuf/");if(J>-1){var N=C.substring(J);if(N in o)return N}return null}g(S,"y"),n(S,"getBundledFileName");function x(C,J){try{if(a.isString(J)&&J.charAt(0)==="{"&&(J=JSON.parse(J)),!a.isString(J))O.setOptions(J.options).addJSON(J.nested);else{i.filename=C;var N=i(J,O,_),G,W=0;if(N.imports)for(;W<N.imports.length;++W)(G=S(N.imports[W])||O.resolvePath(C,N.imports[W]))&&I(G);if(N.weakImports)for(W=0;W<N.weakImports.length;++W)(G=S(N.weakImports[W])||O.resolvePath(C,N.weakImports[W]))&&I(G,!0)}}catch(T){q(T)}!b&&!V&&q(null,O)}g(x,"v"),n(x,"process");function I(C,J){if(C=S(C)||C,!(O.files.indexOf(C)>-1)){if(O.files.push(C),C in o){b?x(C,o[C]):(++V,setTimeout(function(){--V,x(C,o[C])}));return}if(b){var N;try{N=a.fs.readFileSync(C).toString("utf8")}catch(G){J||q(G);return}x(C,N)}else++V,O.fetch(C,function(G,W){if(--V,!!j){if(G){J?V||q(null,O):q(G);return}x(C,W)}})}}g(I,"x"),n(I,"fetch");var V=0;a.isString(v)&&(v=[v]);for(var K=0,Q;K<v.length;++K)(Q=O.resolvePath("",v[K]))&&I(Q);return b?(O.resolveAll(),O):(V||q(null,O),O)},"o"),"load"),e.prototype.loadSync=n(function(d,v){if(!a.isNode)throw Error("not supported");return this.load(d,v,c)},"loadSync"),e.prototype.resolveAll=n(function(){if(!this._needsRecursiveResolve)return this;if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map(function(d){return"'extend "+d.extend+"' in "+d.parent.fullName}).join(", "));return y.prototype.resolveAll.call(this)},"resolveAll");var l=/^[A-Z]/;function f(d,v){var _=v.parent.lookup(v.extend);if(_){var j=new p(v.fullName,v.id,v.type,v.rule,void 0,v.options);return _.get(j.name)||(j.declaringField=v,v.extensionField=j,_.add(j)),!0}return!1}return g(f,"tryHandleExtension"),n(f,"tryHandleExtension"),e.prototype._handleAdd=n(function(d){if(d instanceof p)d.extend!==void 0&&!d.extensionField&&(f(this,d)||this.deferred.push(d));else if(d instanceof m)l.test(d.name)&&(d.parent[d.name]=d.values);else if(!(d instanceof h)){if(d instanceof s)for(var v=0;v<this.deferred.length;)f(this,this.deferred[v])?this.deferred.splice(v,1):++v;for(var _=0;_<d.nestedArray.length;++_)this._handleAdd(d._nestedArray[_]);l.test(d.name)&&(d.parent[d.name]=d)}(d instanceof s||d instanceof m||d instanceof p)&&(this._fullyQualifiedObjects[d.fullName]=d)},"_handleAdd"),e.prototype._handleRemove=n(function(d){if(d instanceof p){if(d.extend!==void 0)if(d.extensionField)d.extensionField.parent.remove(d.extensionField),d.extensionField=null;else{var v=this.deferred.indexOf(d);v>-1&&this.deferred.splice(v,1)}}else if(d instanceof m)l.test(d.name)&&delete d.parent[d.name];else if(d instanceof y){for(var _=0;_<d.nestedArray.length;++_)this._handleRemove(d._nestedArray[_]);l.test(d.name)&&delete d.parent[d.name]}delete this._fullyQualifiedObjects[d.fullName]},"_handleRemove"),e._configure=function(d,v,_){s=d,i=v,o=_},root}g(requireRoot,"requireRoot");var hasRequiredUtil;function requireUtil(){if(hasRequiredUtil)return util.exports;hasRequiredUtil=1;var w=Object.defineProperty,n=g((e,c)=>w(e,"name",{value:c,configurable:!0}),"n"),y=util.exports=requireMinimal(),p=requireRoots(),m,h;y.codegen=requireCodegen(),y.fetch=requireFetch(),y.path=requirePath(),y.fs=y.inquire("fs"),y.toArray=n(function(e){if(e){for(var c=Object.keys(e),l=new Array(c.length),f=0;f<c.length;)l[f]=e[c[f++]];return l}return[]},"toArray"),y.toObject=n(function(e){for(var c={},l=0;l<e.length;){var f=e[l++],d=e[l++];d!==void 0&&(c[f]=d)}return c},"toObject");var a=/\\/g,s=/"/g;y.isReserved=n(function(e){return/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/.test(e)},"isReserved"),y.safeProp=n(function(e){return!/^[$\w_]+$/.test(e)||y.isReserved(e)?'["'+e.replace(a,"\\\\").replace(s,'\\"')+'"]':"."+e},"safeProp"),y.ucFirst=n(function(e){return e.charAt(0).toUpperCase()+e.substring(1)},"ucFirst");var i=/_([a-z])/g;y.camelCase=n(function(e){return e.substring(0,1)+e.substring(1).replace(i,function(c,l){return l.toUpperCase()})},"camelCase"),y.compareFieldsById=n(function(e,c){return e.id-c.id},"compareFieldsById"),y.decorateType=n(function(e,c){if(e.$type)return c&&e.$type.name!==c&&(y.decorateRoot.remove(e.$type),e.$type.name=c,y.decorateRoot.add(e.$type)),e.$type;m||(m=requireType());var l=new m(c||e.name);return y.decorateRoot.add(l),l.ctor=e,Object.defineProperty(e,"$type",{value:l,enumerable:!1}),Object.defineProperty(e.prototype,"$type",{value:l,enumerable:!1}),l},"decorateType");var o=0;return y.decorateEnum=n(function(e){if(e.$type)return e.$type;h||(h=require_enum());var c=new h("Enum"+o++,e);return y.decorateRoot.add(c),Object.defineProperty(e,"$type",{value:c,enumerable:!1}),c},"decorateEnum"),y.setProperty=n(function(e,c,l,f){function d(v,_,j){var O=_.shift();if(O==="__proto__"||O==="prototype")return v;if(_.length>0)v[O]=d(v[O]||{},_,j);else{var b=v[O];if(b&&f)return v;b&&(j=[].concat(b).concat(j)),v[O]=j}return v}if(g(d,"c"),n(d,"setProp"),typeof e!="object")throw TypeError("dst must be an object");if(!c)throw TypeError("path must be specified");return c=c.split("."),d(e,c,l)},"setProperty"),Object.defineProperty(y,"decorateRoot",{get:n(function(){return p.decorated||(p.decorated=new(requireRoot()))},"get")}),util.exports}g(requireUtil,"requireUtil");var hasRequiredTypes;function requireTypes(){return hasRequiredTypes||(hasRequiredTypes=1,(function(w){var n=Object.defineProperty,y=g((s,i)=>n(s,"name",{value:i,configurable:!0}),"r"),p=w,m=requireUtil(),h=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function a(s,i){var o=0,e={};for(i|=0;o<s.length;)e[h[o+i]]=s[o++];return e}g(a,"bake"),y(a,"bake"),p.basic=a([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),p.defaults=a([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",m.emptyArray,null]),p.long=a([0,0,0,1,1],7),p.mapKey=a([0,0,0,5,5,0,0,0,1,1,0,2],2),p.packed=a([1,5,0,0,0,5,5,0,0,0,1,1,0])})(types)),types}g(requireTypes,"requireTypes");var field,hasRequiredField;function requireField(){if(hasRequiredField)return field;hasRequiredField=1;var w=Object.defineProperty,n=g((o,e)=>w(o,"name",{value:e,configurable:!0}),"s");field=i;var y=requireObject();((i.prototype=Object.create(y.prototype)).constructor=i).className="Field";var p=require_enum(),m=requireTypes(),h=requireUtil(),a,s=/^required|optional|repeated$/;i.fromJSON=n(function(o,e){var c=new i(o,e.id,e.type,e.rule,e.extend,e.options,e.comment);return e.edition&&(c._edition=e.edition),c._defaultEdition="proto3",c},"fromJSON");function i(o,e,c,l,f,d,v){if(h.isObject(l)?(v=f,d=l,l=f=void 0):h.isObject(f)&&(v=d,d=f,f=void 0),y.call(this,o,d),!h.isInteger(e)||e<0)throw TypeError("id must be a non-negative integer");if(!h.isString(c))throw TypeError("type must be a string");if(l!==void 0&&!s.test(l=l.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(f!==void 0&&!h.isString(f))throw TypeError("extend must be a string");l==="proto3_optional"&&(l="optional"),this.rule=l&&l!=="optional"?l:void 0,this.type=c,this.id=e,this.extend=f||void 0,this.repeated=l==="repeated",this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=h.Long?m.long[c]!==void 0:!1,this.bytes=c==="bytes",this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=v}return g(i,"Field"),n(i,"Field"),Object.defineProperty(i.prototype,"required",{get:n(function(){return this._features.field_presence==="LEGACY_REQUIRED"},"get")}),Object.defineProperty(i.prototype,"optional",{get:n(function(){return!this.required},"get")}),Object.defineProperty(i.prototype,"delimited",{get:n(function(){return this.resolvedType instanceof a&&this._features.message_encoding==="DELIMITED"},"get")}),Object.defineProperty(i.prototype,"packed",{get:n(function(){return this._features.repeated_field_encoding==="PACKED"},"get")}),Object.defineProperty(i.prototype,"hasPresence",{get:n(function(){return this.repeated||this.map?!1:this.partOf||this.declaringField||this.extensionField||this._features.field_presence!=="IMPLICIT"},"get")}),i.prototype.setOption=n(function(o,e,c){return y.prototype.setOption.call(this,o,e,c)},"setOption"),i.prototype.toJSON=n(function(o){var e=o?!!o.keepComments:!1;return h.toObject(["edition",this._editionToJSON(),"rule",this.rule!=="optional"&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",e?this.comment:void 0])},"toJSON"),i.prototype.resolve=n(function(){if(this.resolved)return this;if((this.typeDefault=m.defaults[this.type])===void 0?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof a?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&this.options.default!=null&&(this.typeDefault=this.options.default,this.resolvedType instanceof p&&typeof this.typeDefault=="string"&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(this.options.packed!==void 0&&this.resolvedType&&!(this.resolvedType instanceof p)&&delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=h.Long.fromNumber(this.typeDefault,this.type.charAt(0)==="u"),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&typeof this.typeDefault=="string"){var o;h.base64.test(this.typeDefault)?h.base64.decode(this.typeDefault,o=h.newBuffer(h.base64.length(this.typeDefault)),0):h.utf8.write(this.typeDefault,o=h.newBuffer(h.utf8.length(this.typeDefault)),0),this.typeDefault=o}return this.map?this.defaultValue=h.emptyObject:this.repeated?this.defaultValue=h.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof a&&(this.parent.ctor.prototype[this.name]=this.defaultValue),y.prototype.resolve.call(this)},"resolve"),i.prototype._inferLegacyProtoFeatures=n(function(o){if(o!=="proto2"&&o!=="proto3")return{};var e={};if(this.rule==="required"&&(e.field_presence="LEGACY_REQUIRED"),this.parent&&m.defaults[this.type]===void 0){var c=this.parent.get(this.type.split(".").pop());c&&c instanceof a&&c.group&&(e.message_encoding="DELIMITED")}return this.getOption("packed")===!0?e.repeated_field_encoding="PACKED":this.getOption("packed")===!1&&(e.repeated_field_encoding="EXPANDED"),e},"_inferLegacyProtoFeatures"),i.prototype._resolveFeatures=n(function(o){return y.prototype._resolveFeatures.call(this,this._edition||o)},"_resolveFeatures"),i.d=n(function(o,e,c,l){return typeof e=="function"?e=h.decorateType(e).name:e&&typeof e=="object"&&(e=h.decorateEnum(e).name),n(function(f,d){h.decorateType(f.constructor).add(new i(d,o,e,c,{default:l}))},"fieldDecorator")},"decorateField"),i._configure=n(function(o){a=o},"configure"),field}g(requireField,"requireField");var oneof,hasRequiredOneof;function requireOneof(){if(hasRequiredOneof)return oneof;hasRequiredOneof=1;var w=Object.defineProperty,n=g((s,i)=>w(s,"name",{value:i,configurable:!0}),"o");oneof=h;var y=requireObject();((h.prototype=Object.create(y.prototype)).constructor=h).className="OneOf";var p=requireField(),m=requireUtil();function h(s,i,o,e){if(Array.isArray(i)||(o=i,i=void 0),y.call(this,s,o),!(i===void 0||Array.isArray(i)))throw TypeError("fieldNames must be an Array");this.oneof=i||[],this.fieldsArray=[],this.comment=e}g(h,"OneOf"),n(h,"OneOf"),h.fromJSON=n(function(s,i){return new h(s,i.oneof,i.options,i.comment)},"fromJSON"),h.prototype.toJSON=n(function(s){var i=s?!!s.keepComments:!1;return m.toObject(["options",this.options,"oneof",this.oneof,"comment",i?this.comment:void 0])},"toJSON");function a(s){if(s.parent)for(var i=0;i<s.fieldsArray.length;++i)s.fieldsArray[i].parent||s.parent.add(s.fieldsArray[i])}return g(a,"addFieldsToParent"),n(a,"addFieldsToParent"),h.prototype.add=n(function(s){if(!(s instanceof p))throw TypeError("field must be a Field");return s.parent&&s.parent!==this.parent&&s.parent.remove(s),this.oneof.push(s.name),this.fieldsArray.push(s),s.partOf=this,a(this),this},"add"),h.prototype.remove=n(function(s){if(!(s instanceof p))throw TypeError("field must be a Field");var i=this.fieldsArray.indexOf(s);if(i<0)throw Error(s+" is not a member of "+this);return this.fieldsArray.splice(i,1),i=this.oneof.indexOf(s.name),i>-1&&this.oneof.splice(i,1),s.partOf=null,this},"remove"),h.prototype.onAdd=n(function(s){y.prototype.onAdd.call(this,s);for(var i=this,o=0;o<this.oneof.length;++o){var e=s.get(this.oneof[o]);e&&!e.partOf&&(e.partOf=i,i.fieldsArray.push(e))}a(this)},"onAdd"),h.prototype.onRemove=n(function(s){for(var i=0,o;i<this.fieldsArray.length;++i)(o=this.fieldsArray[i]).parent&&o.parent.remove(o);y.prototype.onRemove.call(this,s)},"onRemove"),Object.defineProperty(h.prototype,"isProto3Optional",{get:n(function(){if(this.fieldsArray==null||this.fieldsArray.length!==1)return!1;var s=this.fieldsArray[0];return s.options!=null&&s.options.proto3_optional===!0},"get")}),h.d=n(function(){for(var s=new Array(arguments.length),i=0;i<arguments.length;)s[i]=arguments[i++];return n(function(o,e){m.decorateType(o.constructor).add(new h(e,s)),Object.defineProperty(o,e,{get:m.oneOfGetter(s),set:m.oneOfSetter(s)})},"oneOfDecorator")},"decorateOneOf"),oneof}g(requireOneof,"requireOneof");var object,hasRequiredObject;function requireObject(){if(hasRequiredObject)return object;hasRequiredObject=1;var w=Object.defineProperty,n=g((e,c)=>w(e,"name",{value:c,configurable:!0}),"s");object=o,o.className="ReflectionObject";const y=requireOneof();var p=requireUtil(),m,h={enum_type:"OPEN",field_presence:"EXPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY",enforce_naming_style:"STYLE2024",default_symbol_visibility:"EXPORT_TOP_LEVEL"},a={enum_type:"OPEN",field_presence:"EXPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY",enforce_naming_style:"STYLE_LEGACY",default_symbol_visibility:"EXPORT_ALL"},s={enum_type:"CLOSED",field_presence:"EXPLICIT",json_format:"LEGACY_BEST_EFFORT",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"EXPANDED",utf8_validation:"NONE",enforce_naming_style:"STYLE_LEGACY",default_symbol_visibility:"EXPORT_ALL"},i={enum_type:"OPEN",field_presence:"IMPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY",enforce_naming_style:"STYLE_LEGACY",default_symbol_visibility:"EXPORT_ALL"};function o(e,c){if(!p.isString(e))throw TypeError("name must be a string");if(c&&!p.isObject(c))throw TypeError("options must be an object");this.options=c,this.parsedOptions=null,this.name=e,this._edition=null,this._defaultEdition="proto2",this._features={},this._featuresResolved=!1,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}return g(o,"ReflectionObject"),n(o,"ReflectionObject"),Object.defineProperties(o.prototype,{root:{get:n(function(){for(var e=this;e.parent!==null;)e=e.parent;return e},"get")},fullName:{get:n(function(){for(var e=[this.name],c=this.parent;c;)e.unshift(c.name),c=c.parent;return e.join(".")},"get")}}),o.prototype.toJSON=n(function(){throw Error()},"toJSON"),o.prototype.onAdd=n(function(e){this.parent&&this.parent!==e&&this.parent.remove(this),this.parent=e,this.resolved=!1;var c=e.root;c instanceof m&&c._handleAdd(this)},"onAdd"),o.prototype.onRemove=n(function(e){var c=e.root;c instanceof m&&c._handleRemove(this),this.parent=null,this.resolved=!1},"onRemove"),o.prototype.resolve=n(function(){return this.resolved?this:(this.root instanceof m&&(this.resolved=!0),this)},"resolve"),o.prototype._resolveFeaturesRecursive=n(function(e){return this._resolveFeatures(this._edition||e)},"_resolveFeaturesRecursive"),o.prototype._resolveFeatures=n(function(e){if(!this._featuresResolved){var c={};if(!e)throw new Error("Unknown edition for "+this.fullName);var l=Object.assign(this.options?Object.assign({},this.options.features):{},this._inferLegacyProtoFeatures(e));if(this._edition){if(e==="proto2")c=Object.assign({},s);else if(e==="proto3")c=Object.assign({},i);else if(e==="2023")c=Object.assign({},a);else if(e==="2024")c=Object.assign({},h);else throw new Error("Unknown edition: "+e);this._features=Object.assign(c,l||{}),this._featuresResolved=!0;return}if(this.partOf instanceof y){var f=Object.assign({},this.partOf._features);this._features=Object.assign(f,l||{})}else if(!this.declaringField)if(this.parent){var d=Object.assign({},this.parent._features);this._features=Object.assign(d,l||{})}else throw new Error("Unable to find a parent for "+this.fullName);this.extensionField&&(this.extensionField._features=this._features),this._featuresResolved=!0}},"_resolveFeatures"),o.prototype._inferLegacyProtoFeatures=n(function(){return{}},"_inferLegacyProtoFeatures"),o.prototype.getOption=n(function(e){if(this.options)return this.options[e]},"getOption"),o.prototype.setOption=n(function(e,c,l){return this.options||(this.options={}),/^features\./.test(e)?p.setProperty(this.options,e,c,l):(!l||this.options[e]===void 0)&&(this.getOption(e)!==c&&(this.resolved=!1),this.options[e]=c),this},"setOption"),o.prototype.setParsedOption=n(function(e,c,l){this.parsedOptions||(this.parsedOptions=[]);var f=this.parsedOptions;if(l){var d=f.find(function(j){return Object.prototype.hasOwnProperty.call(j,e)});if(d){var v=d[e];p.setProperty(v,l,c)}else d={},d[e]=p.setProperty({},l,c),f.push(d)}else{var _={};_[e]=c,f.push(_)}return this},"setParsedOption"),o.prototype.setOptions=n(function(e,c){if(e)for(var l=Object.keys(e),f=0;f<l.length;++f)this.setOption(l[f],e[l[f]],c);return this},"setOptions"),o.prototype.toString=n(function(){var e=this.constructor.className,c=this.fullName;return c.length?e+" "+c:e},"toString"),o.prototype._editionToJSON=n(function(){if(!(!this._edition||this._edition==="proto3"))return this._edition},"_editionToJSON"),o._configure=function(e){m=e},object}g(requireObject,"requireObject");var _enum,hasRequired_enum;function require_enum(){if(hasRequired_enum)return _enum;hasRequired_enum=1;var w=Object.defineProperty,n=g((a,s)=>w(a,"name",{value:s,configurable:!0}),"r");_enum=h;var y=requireObject();((h.prototype=Object.create(y.prototype)).constructor=h).className="Enum";var p=requireNamespace(),m=requireUtil();function h(a,s,i,o,e,c){if(y.call(this,a,i),s&&typeof s!="object")throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=o,this.comments=e||{},this.valuesOptions=c,this._valuesFeatures={},this.reserved=void 0,s)for(var l=Object.keys(s),f=0;f<l.length;++f)typeof s[l[f]]=="number"&&(this.valuesById[this.values[l[f]]=s[l[f]]]=l[f])}return g(h,"Enum"),n(h,"Enum"),h.prototype._resolveFeatures=n(function(a){return a=this._edition||a,y.prototype._resolveFeatures.call(this,a),Object.keys(this.values).forEach(s=>{var i=Object.assign({},this._features);this._valuesFeatures[s]=Object.assign(i,this.valuesOptions&&this.valuesOptions[s]&&this.valuesOptions[s].features)}),this},"_resolveFeatures"),h.fromJSON=n(function(a,s){var i=new h(a,s.values,s.options,s.comment,s.comments);return i.reserved=s.reserved,s.edition&&(i._edition=s.edition),i._defaultEdition="proto3",i},"fromJSON"),h.prototype.toJSON=n(function(a){var s=a?!!a.keepComments:!1;return m.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",s?this.comment:void 0,"comments",s?this.comments:void 0])},"toJSON"),h.prototype.add=n(function(a,s,i,o){if(!m.isString(a))throw TypeError("name must be a string");if(!m.isInteger(s))throw TypeError("id must be an integer");if(this.values[a]!==void 0)throw Error("duplicate name '"+a+"' in "+this);if(this.isReservedId(s))throw Error("id "+s+" is reserved in "+this);if(this.isReservedName(a))throw Error("name '"+a+"' is reserved in "+this);if(this.valuesById[s]!==void 0){if(!(this.options&&this.options.allow_alias))throw Error("duplicate id "+s+" in "+this);this.values[a]=s}else this.valuesById[this.values[a]=s]=a;return o&&(this.valuesOptions===void 0&&(this.valuesOptions={}),this.valuesOptions[a]=o||null),this.comments[a]=i||null,this},"add"),h.prototype.remove=n(function(a){if(!m.isString(a))throw TypeError("name must be a string");var s=this.values[a];if(s==null)throw Error("name '"+a+"' does not exist in "+this);return delete this.valuesById[s],delete this.values[a],delete this.comments[a],this.valuesOptions&&delete this.valuesOptions[a],this},"remove"),h.prototype.isReservedId=n(function(a){return p.isReservedId(this.reserved,a)},"isReservedId"),h.prototype.isReservedName=n(function(a){return p.isReservedName(this.reserved,a)},"isReservedName"),_enum}g(require_enum,"require_enum");var encoder_1,hasRequiredEncoder;function requireEncoder(){if(hasRequiredEncoder)return encoder_1;hasRequiredEncoder=1;var w=Object.defineProperty,n=g((s,i)=>w(s,"name",{value:i,configurable:!0}),"o");encoder_1=a;var y=require_enum(),p=requireTypes(),m=requireUtil();function h(s,i,o,e){return i.delimited?s("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",o,e,(i.id<<3|3)>>>0,(i.id<<3|4)>>>0):s("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",o,e,(i.id<<3|2)>>>0)}g(h,"genTypePartial"),n(h,"genTypePartial");function a(s){for(var i=m.codegen(["m","w"],s.name+"$encode")("if(!w)")("w=Writer.create()"),c,o,e=s.fieldsArray.slice().sort(m.compareFieldsById),c=0;c<e.length;++c){var l=e[c].resolve(),f=s._fieldsArray.indexOf(l),d=l.resolvedType instanceof y?"int32":l.type,v=p.basic[d];o="m"+m.safeProp(l.name),l.map?(i("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",o,l.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",o)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(l.id<<3|2)>>>0,8|p.mapKey[l.keyType],l.keyType),v===void 0?i("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",f,o):i(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|v,d,o),i("}")("}")):l.repeated?(i("if(%s!=null&&%s.length){",o,o),l.packed&&p.packed[d]!==void 0?i("w.uint32(%i).fork()",(l.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",o)("w.%s(%s[i])",d,o)("w.ldelim()"):(i("for(var i=0;i<%s.length;++i)",o),v===void 0?h(i,l,f,o+"[i]"):i("w.uint32(%i).%s(%s[i])",(l.id<<3|v)>>>0,d,o)),i("}")):(l.optional&&i("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",o,l.name),v===void 0?h(i,l,f,o):i("w.uint32(%i).%s(%s)",(l.id<<3|v)>>>0,d,o))}return i("return w")}return g(a,"encoder"),n(a,"encoder"),encoder_1}g(requireEncoder,"requireEncoder");var hasRequiredIndexLight;function requireIndexLight(){if(hasRequiredIndexLight)return indexLight.exports;hasRequiredIndexLight=1;var w=Object.defineProperty,n=g((h,a)=>w(h,"name",{value:a,configurable:!0}),"i"),y=indexLight.exports=requireIndexMinimal();y.build="light";function p(h,a,s){return typeof a=="function"?(s=a,a=new y.Root):a||(a=new y.Root),a.load(h,s)}g(p,"load"),n(p,"load"),y.load=p;function m(h,a){return a||(a=new y.Root),a.loadSync(h)}return g(m,"loadSync"),n(m,"loadSync"),y.loadSync=m,y.encoder=requireEncoder(),y.decoder=requireDecoder(),y.verifier=requireVerifier(),y.converter=requireConverter(),y.ReflectionObject=requireObject(),y.Namespace=requireNamespace(),y.Root=requireRoot(),y.Enum=require_enum(),y.Type=requireType(),y.Field=requireField(),y.OneOf=requireOneof(),y.MapField=requireMapfield(),y.Service=requireService(),y.Method=requireMethod(),y.Message=requireMessage(),y.wrappers=requireWrappers(),y.types=requireTypes(),y.util=requireUtil(),y.ReflectionObject._configure(y.Root),y.Namespace._configure(y.Type,y.Service,y.Enum),y.Root._configure(y.Type),y.Field._configure(y.Type),indexLight.exports}g(requireIndexLight,"requireIndexLight");var tokenize_1,hasRequiredTokenize;function requireTokenize(){if(hasRequiredTokenize)return tokenize_1;hasRequiredTokenize=1;var w=Object.defineProperty,n=g((f,d)=>w(f,"name",{value:d,configurable:!0}),"l");tokenize_1=l;var y=/[\s{}=;:[\],'"()<>]/g,p=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,m=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,h=/^ *[*/]+ */,a=/^\s*\*?\/*/,s=/\n/g,i=/\s/,o=/\\(.?)/g,e={0:"\0",r:"\r",n:`
5
- `,t:" "};function c(f){return f.replace(o,function(d,v){switch(v){case"\\":case"":return v;default:return e[v]||""}})}g(c,"unescape"),n(c,"unescape"),l.unescape=c;function l(f,d){f=f.toString();var v=0,_=f.length,j=1,O=0,b={},q=[],S=null;function x(L){return Error("illegal "+L+" (line "+j+")")}g(x,"k"),n(x,"illegal");function I(){var L=S==="'"?m:p;L.lastIndex=v-1;var U=L.exec(f);if(!U)throw x("string");return v=L.lastIndex,N(S),S=null,c(U[1])}g(I,"D"),n(I,"readString");function V(L){return f.charAt(L)}g(V,"f"),n(V,"charAt");function K(L,U,D){var H={type:f.charAt(L++),lineEmpty:!1,leading:D},Z;d?Z=2:Z=3;var M=L-Z,X;do if(--M<0||(X=f.charAt(M))===`
6
- `){H.lineEmpty=!0;break}while(X===" "||X===" ");for(var re=f.substring(L,U).split(s),ee=0;ee<re.length;++ee)re[ee]=re[ee].replace(d?a:h,"").trim();H.text=re.join(`
7
- `).trim(),b[j]=H,O=j}g(K,"x"),n(K,"setComment");function Q(L){var U=C(L),D=f.substring(L,U),H=/^\s*\/\//.test(D);return H}g(Q,"S"),n(Q,"isDoubleSlashCommentLine");function C(L){for(var U=L;U<_&&V(U)!==`
8
- `;)U++;return U}g(C,"b"),n(C,"findEndOfLine");function J(){if(q.length>0)return q.shift();if(S)return I();var L,U,D,H,Z,M=v===0;do{if(v===_)return null;for(L=!1;i.test(D=V(v));)if(D===`
9
- `&&(M=!0,++j),++v===_)return null;if(V(v)==="/"){if(++v===_)throw x("comment");if(V(v)==="/")if(d){if(H=v,Z=!1,Q(v-1)){Z=!0;do if(v=C(v),v===_||(v++,!M))break;while(Q(v))}else v=Math.min(_,C(v)+1);Z&&(K(H,v,M),M=!0),j++,L=!0}else{for(Z=V(H=v+1)==="/";V(++v)!==`
10
- `;)if(v===_)return null;++v,Z&&(K(H,v-1,M),M=!0),++j,L=!0}else if((D=V(v))==="*"){H=v+1,Z=d||V(H)==="*";do{if(D===`
11
- `&&++j,++v===_)throw x("comment");U=D,D=V(v)}while(U!=="*"||D!=="/");++v,Z&&(K(H,v-2,M),M=!0),L=!0}else return"/"}}while(L);var X=v;y.lastIndex=0;var re=y.test(V(X++));if(!re)for(;X<_&&!y.test(V(X));)++X;var ee=f.substring(v,v=X);return(ee==='"'||ee==="'")&&(S=ee),ee}g(J,"y"),n(J,"next");function N(L){q.push(L)}g(N,"R"),n(N,"push");function G(){if(!q.length){var L=J();if(L===null)return null;N(L)}return q[0]}g(G,"E"),n(G,"peek");function W(L,U){var D=G(),H=D===L;if(H)return J(),!0;if(!U)throw x("token '"+D+"', '"+L+"' expected");return!1}g(W,"O"),n(W,"skip");function T(L){var U=null,D;return L===void 0?(D=b[j-1],delete b[j-1],D&&(d||D.type==="*"||D.lineEmpty)&&(U=D.leading?D.text:null)):(O<L&&G(),D=b[L],delete b[L],D&&!D.lineEmpty&&(d||D.type==="/")&&(U=D.leading?null:D.text)),U}return g(T,"C"),n(T,"cmnt"),Object.defineProperty({next:J,peek:G,push:N,skip:W,cmnt:T},"line",{get:n(function(){return j},"get")})}return g(l,"tokenize"),n(l,"tokenize"),tokenize_1}g(requireTokenize,"requireTokenize");var parse_1,hasRequiredParse;function requireParse(){if(hasRequiredParse)return parse_1;hasRequiredParse=1;var w=Object.defineProperty,n=g((V,K)=>w(V,"name",{value:K,configurable:!0}),"u");parse_1=I,I.filename=null,I.defaults={keepCase:!1};var y=requireTokenize(),p=requireRoot(),m=requireType(),h=requireField(),a=requireMapfield(),s=requireOneof(),i=require_enum(),o=requireService(),e=requireMethod(),c=requireObject(),l=requireTypes(),f=requireUtil(),d=/^[1-9][0-9]*$/,v=/^-?[1-9][0-9]*$/,_=/^0[x][0-9a-fA-F]+$/,j=/^-?0[x][0-9a-fA-F]+$/,O=/^0[0-7]+$/,b=/^-?0[0-7]+$/,q=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,S=/^[a-zA-Z_][a-zA-Z_0-9]*$/,x=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/;function I(V,K,Q){K instanceof p||(Q=K,K=new p),Q||(Q=I.defaults);var C=Q.preferTrailingComment||!1,J=y(V,Q.alternateCommentMode||!1),N=J.next,G=J.push,W=J.peek,T=J.skip,L=J.cmnt,U=!0,D,H,Z,M="proto2",X=K,re=[],ee={},ve=Q.keepCase?function(k){return k}:f.camelCase;function be(){re.forEach(k=>{k._edition=M,Object.keys(ee).forEach(R=>{k.getOption(R)===void 0&&k.setOption(R,ee[R],!0)})})}g(be,"X"),n(be,"resolveFileFeatures");function F(k,R,E){var A=I.filename;return E||(I.filename=null),Error("illegal "+(R||"token")+" '"+k+"' ("+(A?A+", ":"")+"line "+J.line+")")}g(F,"n"),n(F,"illegal");function oe(){var k=[],R;do{if((R=N())!=='"'&&R!=="'")throw F(R);k.push(N()),T(R),R=W()}while(R==='"'||R==="'");return k.join("")}g(oe,"q"),n(oe,"readString");function ce(k){var R=N();switch(R){case"'":case'"':return G(R),oe();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return _e(R,!0)}catch{if(k&&x.test(R))return R;throw F(R,"value")}}g(ce,"V"),n(ce,"readValue");function ae(k,R){var E,A;do if(R&&((E=W())==='"'||E==="'")){var B=oe();if(k.push(B),M>=2023)throw F(B,"id")}else try{k.push([A=se(N()),T("to",!0)?se(N()):A])}catch(z){if(R&&x.test(E)&&M>=2023)k.push(E);else throw z}while(T(",",!0));var P={options:void 0};P.setOption=function(z,$){this.options===void 0&&(this.options={}),this.options[z]=$},ie(P,n(function(z){if(z==="option")ne(P,z),T(";");else throw F(z)},"parseRange_block"),n(function(){le(P)},"parseRange_line"))}g(ae,"A"),n(ae,"readRanges");function _e(k,R){var E=1;switch(k.charAt(0)==="-"&&(E=-1,k=k.substring(1)),k){case"inf":case"INF":case"Inf":return E*(1/0);case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(d.test(k))return E*parseInt(k,10);if(_.test(k))return E*parseInt(k,16);if(O.test(k))return E*parseInt(k,8);if(q.test(k))return E*parseFloat(k);throw F(k,"number",R)}g(_e,"D"),n(_e,"parseNumber");function se(k,R){switch(k){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!R&&k.charAt(0)==="-")throw F(k,"id");if(v.test(k))return parseInt(k,10);if(j.test(k))return parseInt(k,16);if(b.test(k))return parseInt(k,8);throw F(k,"id")}g(se,"E"),n(se,"parseId");function Oe(){if(D!==void 0)throw F("package");if(D=N(),!x.test(D))throw F(D,"name");X=X.define(D),T(";")}g(Oe,"H"),n(Oe,"parsePackage");function we(){var k=W(),R;switch(k){case"option":if(M<"2024")throw F("option");N(),oe(),T(";");return;case"weak":R=Z||(Z=[]),N();break;case"public":N();default:R=H||(H=[]);break}k=oe(),T(";"),R.push(k)}g(we,"J"),n(we,"parseImport");function qe(){if(T("="),M=oe(),M<2023)throw F(M,"syntax");T(";")}g(qe,"Q"),n(qe,"parseSyntax");function Re(){if(T("="),M=oe(),!["2023","2024"].includes(M))throw F(M,"edition");T(";")}g(Re,"Y"),n(Re,"parseEdition");function ue(k,R){switch(R){case"option":return ne(k,R),T(";"),!0;case"message":return fe(k,R),!0;case"enum":return ye(k,R),!0;case"export":case"local":return M<"2024"||(R=N(),R==="export"||R==="local")||R!=="message"&&R!=="enum"?!1:ue(k,R);case"service":return Ne(k,R),!0;case"extend":return xe(k,R),!0}return!1}g(ue,"N"),n(ue,"parseCommon");function ie(k,R,E){var A=J.line;if(k&&(typeof k.comment!="string"&&(k.comment=L()),k.filename=I.filename),T("{",!0)){for(var B;(B=N())!=="}";)R(B);T(";",!0)}else E&&E(),T(";"),k&&(typeof k.comment!="string"||C)&&(k.comment=L(A)||k.comment)}g(ie,"w"),n(ie,"ifBlock");function fe(k,R){if(!S.test(R=N()))throw F(R,"type name");var E=new m(R);ie(E,n(function(A){if(!ue(E,A))switch(A){case"map":ke(E);break;case"required":if(M!=="proto2")throw F(A);case"repeated":te(E,A);break;case"optional":if(M==="proto3")te(E,"proto3_optional");else{if(M!=="proto2")throw F(A);te(E,"optional")}break;case"oneof":Ee(E,A);break;case"extensions":ae(E.extensions||(E.extensions=[]));break;case"reserved":ae(E.reserved||(E.reserved=[]),!0);break;default:if(M==="proto2"||!x.test(A))throw F(A);G(A),te(E,"optional");break}},"parseType_block")),k.add(E),k===X&&re.push(E)}g(fe,"T"),n(fe,"parseType");function te(k,R,E){var A=N();if(A==="group"){je(k,R);return}for(;A.endsWith(".")||W().startsWith(".");)A+=N();if(!x.test(A))throw F(A,"type");var B=N();if(!S.test(B))throw F(B,"name");B=ve(B),T("=");var P=new h(B,se(N()),A,R,E);if(ie(P,n(function($){if($==="option")ne(P,$),T(";");else throw F($)},"parseField_block"),n(function(){le(P)},"parseField_line")),R==="proto3_optional"){var z=new s("_"+B);P.setOption("proto3_optional",!0),z.add(P),k.add(z)}else k.add(P);k===X&&re.push(P)}g(te,"m"),n(te,"parseField");function je(k,R){if(M>=2023)throw F("group");var E=N();if(!S.test(E))throw F(E,"name");var A=f.lcFirst(E);E===A&&(E=f.ucFirst(E)),T("=");var B=se(N()),P=new m(E);P.group=!0;var z=new h(A,B,E,R);z.filename=I.filename,ie(P,n(function($){switch($){case"option":ne(P,$),T(";");break;case"required":case"repeated":te(P,$);break;case"optional":M==="proto3"?te(P,"proto3_optional"):te(P,"optional");break;case"message":fe(P,$);break;case"enum":ye(P,$);break;case"reserved":ae(P.reserved||(P.reserved=[]),!0);break;case"export":case"local":if(M<"2024")throw F($);switch($=N(),$){case"message":fe(P,$);break;case"enum":fe(P,$);break;default:throw F($)}break;default:throw F($)}},"parseGroup_block")),k.add(P).add(z)}g(je,"j"),n(je,"parseGroup");function ke(k){T("<");var R=N();if(l.mapKey[R]===void 0)throw F(R,"type");T(",");var E=N();if(!x.test(E))throw F(E,"type");T(">");var A=N();if(!S.test(A))throw F(A,"name");T("=");var B=new a(ve(A),se(N()),R,E);ie(B,n(function(P){if(P==="option")ne(B,P),T(";");else throw F(P)},"parseMapField_block"),n(function(){le(B)},"parseMapField_line")),k.add(B)}g(ke,"k"),n(ke,"parseMapField");function Ee(k,R){if(!S.test(R=N()))throw F(R,"name");var E=new s(ve(R));ie(E,n(function(A){A==="option"?(ne(E,A),T(";")):(G(A),te(E,"optional"))},"parseOneOf_block")),k.add(E)}g(Ee,"ee"),n(Ee,"parseOneOf");function ye(k,R){if(!S.test(R=N()))throw F(R,"name");var E=new i(R);ie(E,n(function(A){switch(A){case"option":ne(E,A),T(";");break;case"reserved":ae(E.reserved||(E.reserved=[]),!0),E.reserved===void 0&&(E.reserved=[]);break;default:Ae(E,A)}},"parseEnum_block")),k.add(E),k===X&&re.push(E)}g(ye,"B"),n(ye,"parseEnum");function Ae(k,R){if(!S.test(R))throw F(R,"name");T("=");var E=se(N(),!0),A={options:void 0};A.getOption=function(B){return this.options[B]},A.setOption=function(B,P){c.prototype.setOption.call(A,B,P)},A.setParsedOption=function(){},ie(A,n(function(B){if(B==="option")ne(A,B),T(";");else throw F(B)},"parseEnumValue_block"),n(function(){le(A)},"parseEnumValue_line")),k.add(R,E,A.comment,A.parsedOptions||A.options)}g(Ae,"re"),n(Ae,"parseEnumValue");function ne(k,R){var E,A,B=!0;for(R==="option"&&(R=N());R!=="=";){if(R==="("){var P=N();T(")"),R="("+P+")"}if(B){if(B=!1,R.includes(".")&&!R.includes("(")){var z=R.split(".");E=z[0]+".",R=z[1];continue}E=R}else A=A?A+=R:R;R=N()}var $=A?E.concat(A):E,de=me(k,$);A=A&&A[0]==="."?A.slice(1):A,E=E&&E[E.length-1]==="."?E.slice(0,-1):E,Se(k,E,de,A)}g(ne,"v"),n(ne,"parseOption");function me(k,R){if(T("{",!0)){for(var E={};!T("}",!0);){if(!S.test(Y=N()))throw F(Y,"name");if(Y===null)throw F(Y,"end of input");var A,B=Y;if(T(":",!0),W()==="{")A=me(k,R+"."+Y);else if(W()==="["){A=[];var P;if(T("[",!0)){do P=ce(!0),A.push(P);while(T(",",!0));T("]"),typeof P<"u"&&pe(k,R+"."+Y,P)}}else A=ce(!0),pe(k,R+"."+Y,A);var z=E[B];z&&(A=[].concat(z).concat(A)),E[B]=A,T(",",!0),T(";",!0)}return E}var $=ce(!0);return pe(k,R,$),$}g(me,"K"),n(me,"parseOptionValue");function pe(k,R,E){if(X===k&&/^features\./.test(R)){ee[R]=E;return}k.setOption&&k.setOption(R,E)}g(pe,"G"),n(pe,"setOption");function Se(k,R,E,A){k.setParsedOption&&k.setParsedOption(R,E,A)}g(Se,"ie"),n(Se,"setParsedOption");function le(k){if(T("[",!0)){do ne(k,"option");while(T(",",!0));T("]")}return k}g(le,"M"),n(le,"parseInlineOptions");function Ne(k,R){if(!S.test(R=N()))throw F(R,"service name");var E=new o(R);ie(E,n(function(A){if(!ue(E,A))if(A==="rpc")Te(E,A);else throw F(A)},"parseService_block")),k.add(E),k===X&&re.push(E)}g(Ne,"te"),n(Ne,"parseService");function Te(k,R){var E=L(),A=R;if(!S.test(R=N()))throw F(R,"name");var B=R,P,z,$,de;if(T("("),T("stream",!0)&&(z=!0),!x.test(R=N())||(P=R,T(")"),T("returns"),T("("),T("stream",!0)&&(de=!0),!x.test(R=N())))throw F(R);$=R,T(")");var he=new e(B,A,P,$,z,de);he.comment=E,ie(he,n(function(ge){if(ge==="option")ne(he,ge),T(";");else throw F(ge)},"parseMethod_block")),k.add(he)}g(Te,"ae"),n(Te,"parseMethod");function xe(k,R){if(!x.test(R=N()))throw F(R,"reference");var E=R;ie(null,n(function(A){switch(A){case"required":case"repeated":te(k,A,E);break;case"optional":M==="proto3"?te(k,"proto3_optional",E):te(k,"optional",E);break;default:if(M==="proto2"||!x.test(A))throw F(A);G(A),te(k,"optional",E);break}},"parseExtension_block"))}g(xe,"se"),n(xe,"parseExtension");for(var Y;(Y=N())!==null;)switch(Y){case"package":if(!U)throw F(Y);Oe();break;case"import":if(!U)throw F(Y);we();break;case"syntax":if(!U)throw F(Y);qe();break;case"edition":if(!U)throw F(Y);Re();break;case"option":ne(X,Y),T(";",!0);break;default:if(ue(X,Y)){U=!1;continue}throw F(Y)}return be(),I.filename=null,{package:D,imports:H,weakImports:Z,root:K}}return g(I,"parse"),n(I,"parse"),parse_1}g(requireParse,"requireParse");var common_1,hasRequiredCommon;function requireCommon(){if(hasRequiredCommon)return common_1;hasRequiredCommon=1;var w=Object.defineProperty,n=g((h,a)=>w(h,"name",{value:a,configurable:!0}),"t");common_1=p;var y=/\/|\./;function p(h,a){y.test(h)||(h="google/protobuf/"+h+".proto",a={nested:{google:{nested:{protobuf:{nested:a}}}}}),p[h]=a}g(p,"common"),n(p,"common"),p("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}});var m;return p("duration",{Duration:m={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),p("timestamp",{Timestamp:m}),p("empty",{Empty:{fields:{}}}),p("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),p("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),p("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),p.get=n(function(h){return p[h]||null},"get"),common_1}g(requireCommon,"requireCommon");var hasRequiredSrc;function requireSrc(){if(hasRequiredSrc)return src.exports;hasRequiredSrc=1;var w=src.exports=requireIndexLight();return w.build="full",w.tokenize=requireTokenize(),w.parse=requireParse(),w.common=requireCommon(),w.Root._configure(w.Type,w.parse,w.common),src.exports}g(requireSrc,"requireSrc");var protobufjs,hasRequiredProtobufjs;function requireProtobufjs(){return hasRequiredProtobufjs||(hasRequiredProtobufjs=1,protobufjs=requireSrc()),protobufjs}g(requireProtobufjs,"requireProtobufjs");var protobufjsExports=requireProtobufjs();const index=getDefaultExportFromCjs(protobufjsExports),index$1=_mergeNamespaces({__proto__:null,default:index},[protobufjsExports]);export{index$1 as i};
4
+ }`}return v(e,"f"),i(e,"toString"),t.toString=e,t}v(h,"codegen"),i(h,"codegen"),h.verbose=!1;function c(o){return!o||(o=String(o).replace(/[^\w$]/g,""),!o)?"":(/^\d/.test(o)&&(o="_"+o),l.test(o)?o+"_":o)}return v(c,"safeFunctionName"),i(c,"safeFunctionName"),Ge}v(si,"requireCodegen");var Xe,or;function ai(){if(or)return Xe;or=1;var b=Object.defineProperty,i=v((o,r)=>b(o,"name",{value:r,configurable:!0}),"i");Xe=c;var d=xr(),l=Fr(),h=l("fs");function c(o,r,n){return typeof r=="function"?(n=r,r={}):r||(r={}),n?!r.xhr&&h&&h.readFile?h.readFile(o,i(function(t,e){return t&&typeof XMLHttpRequest<"u"?c.xhr(o,r,n):t?n(t):n(null,r.binary?e:e.toString("utf8"))},"fetchReadFileCallback")):c.xhr(o,r,n):d(c,this,o,r)}return v(c,"fetch"),i(c,"fetch"),c.xhr=i(function(o,r,n){var t=new XMLHttpRequest;t.onreadystatechange=i(function(){if(t.readyState===4){if(t.status!==0&&t.status!==200)return n(Error("status "+t.status));if(r.binary){var e=t.response;if(!e){e=[];for(var u=0;u<t.responseText.length;++u)e.push(t.responseText.charCodeAt(u)&255)}return n(null,typeof Uint8Array<"u"?new Uint8Array(e):e)}return n(null,t.responseText)}},"fetchOnReadyStateChange"),r.binary&&("overrideMimeType"in t&&t.overrideMimeType("text/plain; charset=x-user-defined"),t.responseType="arraybuffer"),t.open("GET",o),t.send()},"fetch_xhr"),Xe}v(ai,"requireFetch");var Ye={},sr;function ui(){return sr||(sr=1,(function(b){var i=Object.defineProperty,d=v((o,r)=>i(o,"name",{value:r,configurable:!0}),"t"),l=b,h=l.isAbsolute=d(function(o){return/^(?:\/|\w+:|\\\\\w+)/.test(o)},"isAbsolute"),c=l.normalize=d(function(o){var r=o.substring(0,2),n="";r==="\\\\"&&(n=r,o=o.substring(2)),o=o.replace(/\\/g,"/").replace(/\/{2,}/g,"/");var t=o.split("/"),e=h(o),u="";e&&(u=t.shift()+"/");for(var a=0;a<t.length;)t[a]===".."?a>0&&t[a-1]!==".."?t.splice(--a,2):e?t.splice(a,1):++a:t[a]==="."?t.splice(a,1):++a;return n+u+t.join("/")},"normalize");l.resolve=d(function(o,r,n){return n||(r=c(r)),h(r)?r:(n||(o=c(o)),(o=o.replace(/(?:\/|^)[^/]+$/,"")).length?c(o+"/"+r):r)},"resolve")})(Ye)),Ye}v(ui,"requirePath");var Ke,ar;function ge(){if(ar)return Ke;ar=1;var b=Object.defineProperty,i=v((a,s)=>b(a,"name",{value:s,configurable:!0}),"i");Ke=e;var d=fe();((e.prototype=Object.create(d.prototype)).constructor=e).className="Namespace";var l=ue(),h=H(),c=de(),o,r,n;e.fromJSON=i(function(a,s){return new e(a,s.options).addJSON(s.nested)},"fromJSON");function t(a,s){if(a&&a.length){for(var f={},p=0;p<a.length;++p)f[a[p].name]=a[p].toJSON(s);return f}}v(t,"arrayToJSON"),i(t,"arrayToJSON"),e.arrayToJSON=t,e.isReservedId=i(function(a,s){if(a){for(var f=0;f<a.length;++f)if(typeof a[f]!="string"&&a[f][0]<=s&&a[f][1]>s)return!0}return!1},"isReservedId"),e.isReservedName=i(function(a,s){if(a){for(var f=0;f<a.length;++f)if(a[f]===s)return!0}return!1},"isReservedName");function e(a,s){d.call(this,a,s),this.nested=void 0,this._nestedArray=null,this._lookupCache=Object.create(null),this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0}v(e,"Namespace"),i(e,"Namespace");function u(a){a._nestedArray=null,a._lookupCache=Object.create(null);for(var s=a;s=s.parent;)s._lookupCache=Object.create(null);return a}return v(u,"clearCache"),i(u,"clearCache"),Object.defineProperty(e.prototype,"nestedArray",{get:i(function(){return this._nestedArray||(this._nestedArray=h.toArray(this.nested))},"get")}),e.prototype.toJSON=i(function(a){return h.toObject(["options",this.options,"nested",t(this.nestedArray,a)])},"toJSON"),e.prototype.addJSON=i(function(a){var s=this;if(a)for(var f=Object.keys(a),p=0,m;p<f.length;++p)m=a[f[p]],s.add((m.fields!==void 0?o.fromJSON:m.values!==void 0?n.fromJSON:m.methods!==void 0?r.fromJSON:m.id!==void 0?l.fromJSON:e.fromJSON)(f[p],m));return this},"addJSON"),e.prototype.get=i(function(a){return this.nested&&Object.prototype.hasOwnProperty.call(this.nested,a)?this.nested[a]:null},"get"),e.prototype.getEnum=i(function(a){if(this.nested&&Object.prototype.hasOwnProperty.call(this.nested,a)&&this.nested[a]instanceof n)return this.nested[a].values;throw Error("no such enum: "+a)},"getEnum"),e.prototype.add=i(function(a){if(!(a instanceof l&&a.extend!==void 0||a instanceof o||a instanceof c||a instanceof n||a instanceof r||a instanceof e))throw TypeError("object must be a valid nested object");if(a.name==="__proto__")return this;if(!this.nested)this.nested={};else{var s=this.get(a.name);if(s)if(s instanceof e&&a instanceof e&&!(s instanceof o||s instanceof r)){for(var f=s.nestedArray,p=0;p<f.length;++p)a.add(f[p]);this.remove(s),this.nested||(this.nested={}),a.setOptions(s.options,!0)}else throw Error("duplicate name '"+a.name+"' in "+this)}this.nested[a.name]=a,this instanceof o||this instanceof r||this instanceof n||this instanceof l||a._edition||(a._edition=a._defaultEdition),this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0;for(var m=this;m=m.parent;)m._needsRecursiveFeatureResolution=!0,m._needsRecursiveResolve=!0;return a.onAdd(this),u(this)},"add"),e.prototype.remove=i(function(a){if(!(a instanceof d))throw TypeError("object must be a ReflectionObject");if(a.parent!==this)throw Error(a+" is not a member of "+this);return delete this.nested[a.name],Object.keys(this.nested).length||(this.nested=void 0),a.onRemove(this),u(this)},"remove"),e.prototype.define=i(function(a,s){if(h.isString(a))a=a.split(".");else if(!Array.isArray(a))throw TypeError("illegal path");if(a&&a.length&&a[0]==="")throw Error("path must be relative");for(var f=this;a.length>0;){var p=a.shift();if(f.nested&&f.nested[p]){if(f=f.nested[p],!(f instanceof e))throw Error("path conflicts with non-namespace objects")}else f.add(f=new e(p))}return s&&f.addJSON(s),f},"define"),e.prototype.resolveAll=i(function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var a=this.nestedArray,s=0;for(this.resolve();s<a.length;)a[s]instanceof e?a[s++].resolveAll():a[s++].resolve();return this._needsRecursiveResolve=!1,this},"resolveAll"),e.prototype._resolveFeaturesRecursive=i(function(a){return this._needsRecursiveFeatureResolution?(this._needsRecursiveFeatureResolution=!1,a=this._edition||a,d.prototype._resolveFeaturesRecursive.call(this,a),this.nestedArray.forEach(s=>{s._resolveFeaturesRecursive(a)}),this):this},"_resolveFeaturesRecursive"),e.prototype.lookup=i(function(a,s,f){if(typeof s=="boolean"?(f=s,s=void 0):s&&!Array.isArray(s)&&(s=[s]),h.isString(a)&&a.length){if(a===".")return this.root;a=a.split(".")}else if(!a.length)return this;var p=a.join(".");if(a[0]==="")return this.root.lookup(a.slice(1),s);var m=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+p];if(m&&(!s||s.indexOf(m.constructor)>-1)||(m=this._lookupImpl(a,p),m&&(!s||s.indexOf(m.constructor)>-1)))return m;if(f)return null;for(var O=this;O.parent;){if(m=O.parent._lookupImpl(a,p),m&&(!s||s.indexOf(m.constructor)>-1))return m;O=O.parent}return null},"lookup"),e.prototype._lookupImpl=i(function(a,s){if(Object.prototype.hasOwnProperty.call(this._lookupCache,s))return this._lookupCache[s];var f=this.get(a[0]),p=null;if(f)a.length===1?p=f:f instanceof e&&(a=a.slice(1),p=f._lookupImpl(a,a.join(".")));else for(var m=0;m<this.nestedArray.length;++m)this._nestedArray[m]instanceof e&&(f=this._nestedArray[m]._lookupImpl(a,s))&&(p=f);return this._lookupCache[s]=p,p},"lookup"),e.prototype.lookupType=i(function(a){var s=this.lookup(a,[o]);if(!s)throw Error("no such type: "+a);return s},"lookupType"),e.prototype.lookupEnum=i(function(a){var s=this.lookup(a,[n]);if(!s)throw Error("no such Enum '"+a+"' in "+this);return s},"lookupEnum"),e.prototype.lookupTypeOrEnum=i(function(a){var s=this.lookup(a,[o,n]);if(!s)throw Error("no such Type or Enum '"+a+"' in "+this);return s},"lookupTypeOrEnum"),e.prototype.lookupService=i(function(a){var s=this.lookup(a,[r]);if(!s)throw Error("no such Service '"+a+"' in "+this);return s},"lookupService"),e._configure=function(a,s,f){o=a,r=s,n=f},Ke}v(ge,"requireNamespace");var Ze,ur;function bt(){if(ur)return Ze;ur=1;var b=Object.defineProperty,i=v((o,r)=>b(o,"name",{value:r,configurable:!0}),"i");Ze=c;var d=ue();((c.prototype=Object.create(d.prototype)).constructor=c).className="MapField";var l=pe(),h=H();function c(o,r,n,t,e,u){if(d.call(this,o,r,t,void 0,void 0,e,u),!h.isString(n))throw TypeError("keyType must be a string");this.keyType=n,this.resolvedKeyType=null,this.map=!0}return v(c,"MapField"),i(c,"MapField"),c.fromJSON=i(function(o,r){return new c(o,r.id,r.keyType,r.type,r.options,r.comment)},"fromJSON"),c.prototype.toJSON=i(function(o){var r=o?!!o.keepComments:!1;return h.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",r?this.comment:void 0])},"toJSON"),c.prototype.resolve=i(function(){if(this.resolved)return this;if(l.mapKey[this.keyType]===void 0)throw Error("invalid key type: "+this.keyType);return d.prototype.resolve.call(this)},"resolve"),c.d=i(function(o,r,n){return typeof n=="function"?n=h.decorateType(n).name:n&&typeof n=="object"&&(n=h.decorateEnum(n).name),i(function(t,e){h.decorateType(t.constructor).add(new c(e,o,r,n))},"mapFieldDecorator")},"decorateMapField"),Ze}v(bt,"requireMapfield");var Qe,fr;function _t(){if(fr)return Qe;fr=1;var b=Object.defineProperty,i=v((c,o)=>b(c,"name",{value:o,configurable:!0}),"i");Qe=h;var d=fe();((h.prototype=Object.create(d.prototype)).constructor=h).className="Method";var l=H();function h(c,o,r,n,t,e,u,a,s){if(l.isObject(t)?(u=t,t=e=void 0):l.isObject(e)&&(u=e,e=void 0),!(o===void 0||l.isString(o)))throw TypeError("type must be a string");if(!l.isString(r))throw TypeError("requestType must be a string");if(!l.isString(n))throw TypeError("responseType must be a string");d.call(this,c,u),this.type=o||"rpc",this.requestType=r,this.requestStream=t?!0:void 0,this.responseType=n,this.responseStream=e?!0:void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=a,this.parsedOptions=s}return v(h,"Method"),i(h,"Method"),h.fromJSON=i(function(c,o){return new h(c,o.type,o.requestType,o.responseType,o.requestStream,o.responseStream,o.options,o.comment,o.parsedOptions)},"fromJSON"),h.prototype.toJSON=i(function(c){var o=c?!!c.keepComments:!1;return l.toObject(["type",this.type!=="rpc"&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",o?this.comment:void 0,"parsedOptions",this.parsedOptions])},"toJSON"),h.prototype.resolve=i(function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),d.prototype.resolve.call(this))},"resolve"),Qe}v(_t,"requireMethod");var et,lr;function Ot(){if(lr)return et;lr=1;var b=Object.defineProperty,i=v((t,e)=>b(t,"name",{value:e,configurable:!0}),"o");et=r;var d=ge();((r.prototype=Object.create(d.prototype)).constructor=r).className="Service";var l=_t(),h=H(),c=qr(),o=h.patterns.reservedRe;function r(t,e){d.call(this,t,e),this.methods={},this._methodsArray=null}v(r,"Service"),i(r,"Service"),r.fromJSON=i(function(t,e){var u=new r(t,e.options);if(e.methods)for(var a=Object.keys(e.methods),s=0;s<a.length;++s)u.add(l.fromJSON(a[s],e.methods[a[s]]));return e.nested&&u.addJSON(e.nested),e.edition&&(u._edition=e.edition),u.comment=e.comment,u._defaultEdition="proto3",u},"fromJSON"),r.prototype.toJSON=i(function(t){var e=d.prototype.toJSON.call(this,t),u=t?!!t.keepComments:!1;return h.toObject(["edition",this._editionToJSON(),"options",e&&e.options||void 0,"methods",d.arrayToJSON(this.methodsArray,t)||{},"nested",e&&e.nested||void 0,"comment",u?this.comment:void 0])},"toJSON"),Object.defineProperty(r.prototype,"methodsArray",{get:i(function(){return this._methodsArray||(this._methodsArray=h.toArray(this.methods))},"get")});function n(t){return t._methodsArray=null,t}return v(n,"clearCache"),i(n,"clearCache"),r.prototype.get=i(function(t){return Object.prototype.hasOwnProperty.call(this.methods,t)?this.methods[t]:d.prototype.get.call(this,t)},"get"),r.prototype.resolveAll=i(function(){if(!this._needsRecursiveResolve)return this;d.prototype.resolve.call(this);for(var t=this.methodsArray,e=0;e<t.length;++e)t[e].resolve();return this},"resolveAll"),r.prototype._resolveFeaturesRecursive=i(function(t){return this._needsRecursiveFeatureResolution?(t=this._edition||t,d.prototype._resolveFeaturesRecursive.call(this,t),this.methodsArray.forEach(e=>{e._resolveFeaturesRecursive(t)}),this):this},"_resolveFeaturesRecursive"),r.prototype.add=i(function(t){if(this.get(t.name))throw Error("duplicate name '"+t.name+"' in "+this);return t instanceof l?t.name==="__proto__"?this:(this.methods[t.name]=t,t.parent=this,n(this)):d.prototype.add.call(this,t)},"add"),r.prototype.remove=i(function(t){if(t instanceof l){if(this.methods[t.name]!==t)throw Error(t+" is not a member of "+this);return delete this.methods[t.name],t.parent=null,n(this)}return d.prototype.remove.call(this,t)},"remove"),r.prototype.create=i(function(t,e,u){for(var a=new c.Service(t,e,u),s=0,f;s<this.methodsArray.length;++s){var p=h.lcFirst((f=this._methodsArray[s]).resolve().name).replace(/[^$\w_]/g,"");a[p]=h.codegen(["r","c"],o.test(p)?p+"_":p)("return this.rpcCall(m,q,s,r,c)")({m:f,q:f.resolvedRequestType.ctor,s:f.resolvedResponseType.ctor})}return a},"create"),et}v(Ot,"requireService");var tt,cr;function wt(){if(cr)return tt;cr=1;var b=Object.defineProperty,i=v((h,c)=>b(h,"name",{value:c,configurable:!0}),"i");tt=l;var d=ne();function l(h){if(h)for(var c=Object.keys(h),o=0;o<c.length;++o){var r=c[o];r!=="__proto__"&&(this[r]=h[r])}}return v(l,"Message"),i(l,"Message"),l.create=i(function(h){return this.$type.create(h)},"create"),l.encode=i(function(h,c){return this.$type.encode(h,c)},"encode"),l.encodeDelimited=i(function(h,c){return this.$type.encodeDelimited(h,c)},"encodeDelimited"),l.decode=i(function(h){return this.$type.decode(h)},"decode"),l.decodeDelimited=i(function(h){return this.$type.decodeDelimited(h)},"decodeDelimited"),l.verify=i(function(h){return this.$type.verify(h)},"verify"),l.fromObject=i(function(h){return this.$type.fromObject(h)},"fromObject"),l.toObject=i(function(h,c){return this.$type.toObject(h,c)},"toObject"),l.prototype.toJSON=i(function(){return this.$type.toObject(this,d.toJSONOptions)},"toJSON"),tt}v(wt,"requireMessage");var rt,pr;function Br(){if(pr)return rt;pr=1;var b=Object.defineProperty,i=v((r,n)=>b(r,"name",{value:n,configurable:!0}),"t");rt=o;var d=ie(),l=pe(),h=H();function c(r){return"missing required '"+r.name+"'"}v(c,"missing"),i(c,"missing");function o(r){for(var n=h.codegen(["r","l","e","n"],r.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("if(n===undefined)n=0")("if(n>Reader.recursionLimit)")('throw Error("maximum nesting depth exceeded")')("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(r.fieldsArray.filter(function(f){return f.map}).length?",k,value":""))("while(r.pos<c){")("var t=r.uint32()")("if(t===e)")("break")("switch(t>>>3){"),t=0;t<r.fieldsArray.length;++t){var e=r._fieldsArray[t].resolve(),u=e.resolvedType instanceof d?"int32":e.type,a="m"+h.safeProp(e.name);n("case %i: {",e.id),e.map?(n("if(%s===util.emptyObject)",a)("%s={}",a)("var c2 = r.uint32()+r.pos"),l.defaults[e.keyType]!==void 0?n("k=%j",l.defaults[e.keyType]):n("k=null"),l.defaults[u]!==void 0?n("value=%j",l.defaults[u]):n("value=null"),n("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break",e.keyType)("case 2:"),l.basic[u]===void 0?n("value=types[%i].decode(r,r.uint32(),undefined,n+1)",t):n("value=r.%s()",u),n("break")("default:")("r.skipType(tag2&7,n)")("break")("}")("}"),l.long[e.keyType]!==void 0?n('%s[typeof k==="object"?util.longToHash(k):k]=value',a):(e.keyType==="string"&&n('if(k==="__proto__")')("util.makeProp(%s,k)",a),n("%s[k]=value",a))):e.repeated?(n("if(!(%s&&%s.length))",a,a)("%s=[]",a),l.packed[u]!==void 0&&n("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",a,u)("}else"),l.basic[u]===void 0?n(e.delimited?"%s.push(types[%i].decode(r,undefined,((t&~7)|4),n+1))":"%s.push(types[%i].decode(r,r.uint32(),undefined,n+1))",a,t):n("%s.push(r.%s())",a,u)):l.basic[u]===void 0?n(e.delimited?"%s=types[%i].decode(r,undefined,((t&~7)|4),n+1)":"%s=types[%i].decode(r,r.uint32(),undefined,n+1)",a,t):n("%s=r.%s()",a,u),n("break")("}")}for(n("default:")("r.skipType(t&7,n)")("break")("}")("}"),t=0;t<r._fieldsArray.length;++t){var s=r._fieldsArray[t];s.required&&n("if(!m.hasOwnProperty(%j))",s.name)("throw util.ProtocolError(%j,{instance:m})",c(s))}return n("return m")}return v(o,"decoder"),i(o,"decoder"),rt}v(Br,"requireDecoder");var it,dr;function Dr(){if(dr)return it;dr=1;var b=Object.defineProperty,i=v((n,t)=>b(n,"name",{value:t,configurable:!0}),"u");it=r;var d=ie(),l=H();function h(n,t){return n.name+": "+t+(n.repeated&&t!=="array"?"[]":n.map&&t!=="object"?"{k:"+n.keyType+"}":"")+" expected"}v(h,"invalid"),i(h,"invalid");function c(n,t,e,u){if(t.resolvedType)if(t.resolvedType instanceof d){n("switch(%s){",u)("default:")("return%j",h(t,"enum value"));for(var a=Object.keys(t.resolvedType.values),s=0;s<a.length;++s)n("case %i:",t.resolvedType.values[a[s]]);n("break")("}")}else n("{")("var e=types[%i].verify(%s,n+1);",e,u)("if(e)")("return%j+e",t.name+".")("}");else switch(t.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":n("if(!util.isInteger(%s))",u)("return%j",h(t,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":n("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",u,u,u,u)("return%j",h(t,"integer|Long"));break;case"float":case"double":n('if(typeof %s!=="number")',u)("return%j",h(t,"number"));break;case"bool":n('if(typeof %s!=="boolean")',u)("return%j",h(t,"boolean"));break;case"string":n("if(!util.isString(%s))",u)("return%j",h(t,"string"));break;case"bytes":n('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',u,u,u)("return%j",h(t,"buffer"));break}return n}v(c,"genVerifyValue"),i(c,"genVerifyValue");function o(n,t,e){switch(t.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":n("if(!util.key32Re.test(%s))",e)("return%j",h(t,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":n("if(!util.key64Re.test(%s))",e)("return%j",h(t,"integer|Long key"));break;case"bool":n("if(!util.key2Re.test(%s))",e)("return%j",h(t,"boolean key"));break}return n}v(o,"genVerifyKey"),i(o,"genVerifyKey");function r(n){var t=l.codegen(["m","n"],n.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected")("if(n===undefined)n=0")("if(n>util.recursionLimit)")("return%j","maximum nesting depth exceeded"),e=n.oneofsArray,u={};e.length&&t("var p={}");for(var a=0;a<n.fieldsArray.length;++a){var s=n._fieldsArray[a].resolve(),f="m"+l.safeProp(s.name);if(s.optional&&t("if(%s!=null&&m.hasOwnProperty(%j)){",f,s.name),s.map)t("if(!util.isObject(%s))",f)("return%j",h(s,"object"))("var k=Object.keys(%s)",f)("for(var i=0;i<k.length;++i){"),o(t,s,"k[i]"),c(t,s,a,f+"[k[i]]")("}");else if(s.repeated)t("if(!Array.isArray(%s))",f)("return%j",h(s,"array"))("for(var i=0;i<%s.length;++i){",f),c(t,s,a,f+"[i]")("}");else{if(s.partOf){var p=l.safeProp(s.partOf.name);u[s.partOf.name]===1&&t("if(p%s===1)",p)("return%j",s.partOf.name+": multiple values"),u[s.partOf.name]=1,t("p%s=1",p)}c(t,s,a,f)}s.optional&&t("}")}return t("return null")}return v(r,"verifier"),i(r,"verifier"),it}v(Dr,"requireVerifier");var nt={},hr;function Cr(){return hr||(hr=1,(function(b){var i=Object.defineProperty,d=v((n,t)=>i(n,"name",{value:t,configurable:!0}),"m"),l=b,h=ie(),c=H();function o(n,t,e,u){var a=!1;if(t.resolvedType)if(t.resolvedType instanceof h){n("switch(d%s){",u);for(var s=t.resolvedType.values,f=Object.keys(s),p=0;p<f.length;++p)s[f[p]]===t.typeDefault&&!a&&(n("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}',u,u,u),t.repeated||n("break"),a=!0),n("case%j:",f[p])("case %i:",s[f[p]])("m%s=%j",u,s[f[p]])("break");n("}")}else n('if(typeof d%s!=="object")',u)("throw TypeError(%j)",t.fullName+": object expected")("m%s=types[%i].fromObject(d%s,n+1)",u,e,u);else{var m=!1;switch(t.type){case"double":case"float":n("m%s=Number(d%s)",u,u);break;case"uint32":case"fixed32":n("m%s=d%s>>>0",u,u);break;case"int32":case"sint32":case"sfixed32":n("m%s=d%s|0",u,u);break;case"uint64":m=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":n("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",u,u,m)('else if(typeof d%s==="string")',u)("m%s=parseInt(d%s,10)",u,u)('else if(typeof d%s==="number")',u)("m%s=d%s",u,u)('else if(typeof d%s==="object")',u)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",u,u,u,m?"true":"");break;case"bytes":n('if(typeof d%s==="string")',u)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",u,u,u)("else if(d%s.length >= 0)",u)("m%s=d%s",u,u);break;case"string":n("m%s=String(d%s)",u,u);break;case"bool":n("m%s=Boolean(d%s)",u,u);break}}return n}v(o,"genValuePartial_fromObject"),d(o,"genValuePartial_fromObject"),l.fromObject=d(function(n){var t=n.fieldsArray,e=c.codegen(["d","n"],n.name+"$fromObject")("if(d instanceof this.ctor)")("return d")("if(n===undefined)n=0")("if(n>util.recursionLimit)")('throw Error("maximum nesting depth exceeded")');if(!t.length)return e("return new this.ctor");e("var m=new this.ctor");for(var u=0;u<t.length;++u){var a=t[u].resolve(),s=c.safeProp(a.name);a.map?(e("if(d%s){",s)('if(typeof d%s!=="object")',s)("throw TypeError(%j)",a.fullName+": object expected")("m%s={}",s)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",s),e('if(ks[i]==="__proto__")')("util.makeProp(m%s,ks[i])",s),o(e,a,u,s+"[ks[i]]")("}")("}")):a.repeated?(e("if(d%s){",s)("if(!Array.isArray(d%s))",s)("throw TypeError(%j)",a.fullName+": array expected")("m%s=[]",s)("for(var i=0;i<d%s.length;++i){",s),o(e,a,u,s+"[i]")("}")("}")):(a.resolvedType instanceof h||e("if(d%s!=null){",s),o(e,a,u,s),a.resolvedType instanceof h||e("}"))}return e("return m")},"fromObject");function r(n,t,e,u){if(t.resolvedType)t.resolvedType instanceof h?n("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",u,e,u,u,e,u,u):n("d%s=types[%i].toObject(m%s,o)",u,e,u);else{var a=!1;switch(t.type){case"double":case"float":n("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",u,u,u,u);break;case"uint64":a=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":n('if(typeof m%s==="number")',u)("d%s=o.longs===String?String(m%s):m%s",u,u,u)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",u,u,u,u,a?"true":"",u);break;case"bytes":n("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",u,u,u,u,u);break;default:n("d%s=m%s",u,u);break}}return n}v(r,"genValuePartial_toObject"),d(r,"genValuePartial_toObject"),l.toObject=d(function(n){var t=n.fieldsArray.slice().sort(c.compareFieldsById);if(!t.length)return c.codegen()("return {}");for(var e=c.codegen(["m","o"],n.name+"$toObject")("if(!o)")("o={}")("var d={}"),u=[],a=[],s=[],f=0;f<t.length;++f)t[f].partOf||(t[f].resolve().repeated?u:t[f].map?a:s).push(t[f]);if(u.length){for(e("if(o.arrays||o.defaults){"),f=0;f<u.length;++f)e("d%s=[]",c.safeProp(u[f].name));e("}")}if(a.length){for(e("if(o.objects||o.defaults){"),f=0;f<a.length;++f)e("d%s={}",c.safeProp(a[f].name));e("}")}if(s.length){for(e("if(o.defaults){"),f=0;f<s.length;++f){var p=s[f],m=c.safeProp(p.name);if(p.resolvedType instanceof h)e("d%s=o.enums===String?%j:%j",m,p.resolvedType.valuesById[p.typeDefault],p.typeDefault);else if(p.long)e("if(util.Long){")("var n=new util.Long(%i,%i,%j)",p.typeDefault.low,p.typeDefault.high,p.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",m)("}else")("d%s=o.longs===String?%j:%i",m,p.typeDefault.toString(),p.typeDefault.toNumber());else if(p.bytes){var O=Array.prototype.slice.call(p.typeDefault);e("if(o.bytes===String)d%s=%j",m,String.fromCharCode.apply(String,p.typeDefault))("else{")("d%s=%j",m,O)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",m,m)("}")}else e("d%s=%j",m,p.typeDefault)}e("}")}var g=!1;for(f=0;f<t.length;++f){var p=t[f],y=n._fieldsArray.indexOf(p),m=c.safeProp(p.name);p.map?(g||(g=!0,e("var ks2")),e("if(m%s&&(ks2=Object.keys(m%s)).length){",m,m)("d%s={}",m)("for(var j=0;j<ks2.length;++j){"),e('if(ks2[j]==="__proto__")')("util.makeProp(d%s,ks2[j])",m),r(e,p,y,m+"[ks2[j]]")("}")):p.repeated?(e("if(m%s&&m%s.length){",m,m)("d%s=[]",m)("for(var j=0;j<m%s.length;++j){",m),r(e,p,y,m+"[j]")("}")):(e("if(m%s!=null&&m.hasOwnProperty(%j)){",m,p.name),r(e,p,y,m),p.partOf&&e("if(o.oneofs)")("d%s=%j",c.safeProp(p.partOf.name),p.name)),e("}")}return e("return d")},"toObject")})(nt)),nt}v(Cr,"requireConverter");var ot={},vr;function Jr(){return vr||(vr=1,(function(b){var i=Object.defineProperty,d=v((c,o)=>i(c,"name",{value:o,configurable:!0}),"l"),l=b,h=wt();l[".google.protobuf.Any"]={fromObject:d(function(c,o){if(c&&c["@type"]){var r=c["@type"].substring(c["@type"].lastIndexOf("/")+1),n=this.lookup(r);if(n){var t=c["@type"].charAt(0)==="."?c["@type"].slice(1):c["@type"];t.indexOf("/")===-1&&(t="/"+t);var e=o===void 0?1:o+1;return this.create({type_url:t,value:n.encode(n.fromObject(c,e)).finish()})}}return this.fromObject(c,o)},"fromObject"),toObject:d(function(c,o){var r="type.googleapis.com/",n="",t="";if(o&&o.json&&c.type_url&&c.value){t=c.type_url.substring(c.type_url.lastIndexOf("/")+1),n=c.type_url.substring(0,c.type_url.lastIndexOf("/")+1);var e=this.lookup(t);e&&(c=e.decode(c.value))}if(!(c instanceof this.ctor)&&c instanceof h){var u=c.$type.toObject(c,o),a=c.$type.fullName[0]==="."?c.$type.fullName.slice(1):c.$type.fullName;return n===""&&(n=r),t=n+a,u["@type"]=t,u}return this.toObject(c,o)},"toObject")}})(ot)),ot}v(Jr,"requireWrappers");var st,yr;function jt(){if(yr)return st;yr=1;var b=Object.defineProperty,i=v((y,_)=>b(y,"name",{value:_,configurable:!0}),"s");st=O;var d=ge();((O.prototype=Object.create(d.prototype)).constructor=O).className="Type";var l=ie(),h=de(),c=ue(),o=bt(),r=Ot(),n=wt(),t=gt(),e=mt(),u=H(),a=Mr(),s=Br(),f=Dr(),p=Cr(),m=Jr();function O(y,_){y=y.replace(/\W/g,""),d.call(this,y,_),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}v(O,"Type"),i(O,"Type"),Object.defineProperties(O.prototype,{fieldsById:{get:i(function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var y=Object.keys(this.fields),_=0;_<y.length;++_){var E=this.fields[y[_]],S=E.id;if(this._fieldsById[S])throw Error("duplicate id "+S+" in "+this);this._fieldsById[S]=E}return this._fieldsById},"get")},fieldsArray:{get:i(function(){return this._fieldsArray||(this._fieldsArray=u.toArray(this.fields))},"get")},oneofsArray:{get:i(function(){return this._oneofsArray||(this._oneofsArray=u.toArray(this.oneofs))},"get")},ctor:{get:i(function(){return this._ctor||(this.ctor=O.generateConstructor(this)())},"get"),set:i(function(y){var _=y.prototype;_ instanceof n||((y.prototype=new n).constructor=y,u.merge(y.prototype,_)),y.$type=y.prototype.$type=this,u.merge(y,n,!0),this._ctor=y;for(var E=0;E<this.fieldsArray.length;++E)this._fieldsArray[E].resolve();var S={};for(E=0;E<this.oneofsArray.length;++E)S[this._oneofsArray[E].resolve().name]={get:u.oneOfGetter(this._oneofsArray[E].oneof),set:u.oneOfSetter(this._oneofsArray[E].oneof)};E&&Object.defineProperties(y.prototype,S)},"set")}}),O.generateConstructor=i(function(y){for(var _=u.codegen(["p"],y.name),E=0,S;E<y.fieldsArray.length;++E)(S=y._fieldsArray[E]).map?_("this%s={}",u.safeProp(S.name)):S.repeated&&_("this%s=[]",u.safeProp(S.name));return _('if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null&&ks[i]!=="__proto__")')("this[ks[i]]=p[ks[i]]")},"generateConstructor");function g(y){return y._fieldsById=y._fieldsArray=y._oneofsArray=null,delete y.encode,delete y.decode,delete y.verify,y}return v(g,"clearCache"),i(g,"clearCache"),O.fromJSON=i(function(y,_){var E=new O(y,_.options);E.extensions=_.extensions,E.reserved=_.reserved;for(var S=Object.keys(_.fields),x=0;x<S.length;++x)E.add((typeof _.fields[S[x]].keyType<"u"?o.fromJSON:c.fromJSON)(S[x],_.fields[S[x]]));if(_.oneofs)for(S=Object.keys(_.oneofs),x=0;x<S.length;++x)E.add(h.fromJSON(S[x],_.oneofs[S[x]]));if(_.nested)for(S=Object.keys(_.nested),x=0;x<S.length;++x){var D=_.nested[S[x]];E.add((D.id!==void 0?c.fromJSON:D.fields!==void 0?O.fromJSON:D.values!==void 0?l.fromJSON:D.methods!==void 0?r.fromJSON:d.fromJSON)(S[x],D))}return _.extensions&&_.extensions.length&&(E.extensions=_.extensions),_.reserved&&_.reserved.length&&(E.reserved=_.reserved),_.group&&(E.group=!0),_.comment&&(E.comment=_.comment),_.edition&&(E._edition=_.edition),E._defaultEdition="proto3",E},"fromJSON"),O.prototype.toJSON=i(function(y){var _=d.prototype.toJSON.call(this,y),E=y?!!y.keepComments:!1;return u.toObject(["edition",this._editionToJSON(),"options",_&&_.options||void 0,"oneofs",d.arrayToJSON(this.oneofsArray,y),"fields",d.arrayToJSON(this.fieldsArray.filter(function(S){return!S.declaringField}),y)||{},"extensions",this.extensions&&this.extensions.length?this.extensions:void 0,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"group",this.group||void 0,"nested",_&&_.nested||void 0,"comment",E?this.comment:void 0])},"toJSON"),O.prototype.resolveAll=i(function(){if(!this._needsRecursiveResolve)return this;d.prototype.resolveAll.call(this);var y=this.oneofsArray;for(E=0;E<y.length;)y[E++].resolve();for(var _=this.fieldsArray,E=0;E<_.length;)_[E++].resolve();return this},"resolveAll"),O.prototype._resolveFeaturesRecursive=i(function(y){return this._needsRecursiveFeatureResolution?(y=this._edition||y,d.prototype._resolveFeaturesRecursive.call(this,y),this.oneofsArray.forEach(_=>{_._resolveFeatures(y)}),this.fieldsArray.forEach(_=>{_._resolveFeatures(y)}),this):this},"_resolveFeaturesRecursive"),O.prototype.get=i(function(y){return Object.prototype.hasOwnProperty.call(this.fields,y)?this.fields[y]:this.oneofs&&Object.prototype.hasOwnProperty.call(this.oneofs,y)?this.oneofs[y]:this.nested&&Object.prototype.hasOwnProperty.call(this.nested,y)?this.nested[y]:null},"get"),O.prototype.add=i(function(y){if(this.get(y.name))throw Error("duplicate name '"+y.name+"' in "+this);if(y instanceof c&&y.extend===void 0){if(this._fieldsById?this._fieldsById[y.id]:this.fieldsById[y.id])throw Error("duplicate id "+y.id+" in "+this);if(this.isReservedId(y.id))throw Error("id "+y.id+" is reserved in "+this);if(this.isReservedName(y.name))throw Error("name '"+y.name+"' is reserved in "+this);return y.name==="__proto__"?this:(y.parent&&y.parent.remove(y),this.fields[y.name]=y,y.message=this,y.onAdd(this),g(this))}return y instanceof h?y.name==="__proto__"?this:(this.oneofs||(this.oneofs={}),this.oneofs[y.name]=y,y.onAdd(this),g(this)):d.prototype.add.call(this,y)},"add"),O.prototype.remove=i(function(y){if(y instanceof c&&y.extend===void 0){if(!this.fields||this.fields[y.name]!==y)throw Error(y+" is not a member of "+this);return delete this.fields[y.name],y.parent=null,y.onRemove(this),g(this)}if(y instanceof h){if(!this.oneofs||this.oneofs[y.name]!==y)throw Error(y+" is not a member of "+this);return delete this.oneofs[y.name],y.parent=null,y.onRemove(this),g(this)}return d.prototype.remove.call(this,y)},"remove"),O.prototype.isReservedId=i(function(y){return d.isReservedId(this.reserved,y)},"isReservedId"),O.prototype.isReservedName=i(function(y){return d.isReservedName(this.reserved,y)},"isReservedName"),O.prototype.create=i(function(y){return new this.ctor(y)},"create"),O.prototype.setup=i(function(){for(var y=this.fullName,_=[],E=0;E<this.fieldsArray.length;++E)_.push(this._fieldsArray[E].resolve().resolvedType);this.encode=a(this)({Writer:e,types:_,util:u}),this.decode=s(this)({Reader:t,types:_,util:u}),this.verify=f(this)({types:_,util:u}),this.fromObject=p.fromObject(this)({types:_,util:u}),this.toObject=p.toObject(this)({types:_,util:u});var S=m[y];if(S){var x=Object.create(this);x.fromObject=this.fromObject,this.fromObject=S.fromObject.bind(x),x.toObject=this.toObject,this.toObject=S.toObject.bind(x)}return this},"setup"),O.prototype.encode=i(function(y,_){return this.setup().encode(y,_)},"encode_setup"),O.prototype.encodeDelimited=i(function(y,_){return this.encode(y,_&&_.len?_.fork():_).ldelim()},"encodeDelimited"),O.prototype.decode=i(function(y,_,E,S){return this.setup().decode(y,_,E,S)},"decode_setup"),O.prototype.decodeDelimited=i(function(y){return y instanceof t||(y=t.create(y)),this.decode(y,y.uint32())},"decodeDelimited"),O.prototype.verify=i(function(y,_){return this.setup().verify(y,_)},"verify_setup"),O.prototype.fromObject=i(function(y,_){return this.setup().fromObject(y,_)},"fromObject"),O.prototype.toObject=i(function(y,_){return this.setup().toObject(y,_)},"toObject"),O.d=i(function(y){return i(function(_){u.decorateType(_,y)},"typeDecorator")},"decorateType"),st}v(jt,"requireType");var at,mr;function kt(){if(mr)return at;mr=1;var b=Object.defineProperty,i=v((f,p)=>b(f,"name",{value:p,configurable:!0}),"u");at=e;var d=ge();((e.prototype=Object.create(d.prototype)).constructor=e).className="Root";var l=ue(),h=ie(),c=de(),o=H(),r,n,t;function e(f){d.call(this,"",f),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}v(e,"Root"),i(e,"Root"),e.fromJSON=i(function(f,p){return p||(p=new e),f.options&&p.setOptions(f.options),p.addJSON(f.nested).resolveAll()},"fromJSON"),e.prototype.resolvePath=o.path.resolve,e.prototype.fetch=o.fetch;function u(){}v(u,"SYNC"),i(u,"SYNC"),e.prototype.load=i(v(function f(p,m,O){typeof m=="function"&&(O=m,m=void 0);var g=this;if(!O)return o.asPromise(f,g,p,m);var y=O===u;function _(L,B){if(O){if(y)throw L;B&&B.resolveAll();var A=O;O=null,A(L,B)}}v(_,"h"),i(_,"finish");function E(L){var B=L.lastIndexOf("google/protobuf/");if(B>-1){var A=L.substring(B);if(A in t)return A}return null}v(E,"y"),i(E,"getBundledFileName");function S(L,B){try{if(o.isString(B)&&B.charAt(0)==="{"&&(B=JSON.parse(B)),!o.isString(B))g.setOptions(B.options).addJSON(B.nested);else{n.filename=L;var A=n(B,g,m),U,z=0;if(A.imports)for(;z<A.imports.length;++z)(U=E(A.imports[z])||g.resolvePath(L,A.imports[z]))&&x(U);if(A.weakImports)for(z=0;z<A.weakImports.length;++z)(U=E(A.weakImports[z])||g.resolvePath(L,A.weakImports[z]))&&x(U,!0)}}catch(N){_(N)}!y&&!D&&_(null,g)}v(S,"v"),i(S,"process");function x(L,B){if(L=E(L)||L,!(g.files.indexOf(L)>-1)){if(g.files.push(L),L in t){y?S(L,t[L]):(++D,setTimeout(function(){--D,S(L,t[L])}));return}if(y){var A;try{A=o.fs.readFileSync(L).toString("utf8")}catch(U){B||_(U);return}S(L,A)}else++D,g.fetch(L,function(U,z){if(--D,!!O){if(U){B?D||_(null,g):_(U);return}S(L,z)}})}}v(x,"x"),i(x,"fetch");var D=0;o.isString(p)&&(p=[p]);for(var G=0,Z;G<p.length;++G)(Z=g.resolvePath("",p[G]))&&x(Z);return y?(g.resolveAll(),g):(D||_(null,g),g)},"o"),"load"),e.prototype.loadSync=i(function(f,p){if(!o.isNode)throw Error("not supported");return this.load(f,p,u)},"loadSync"),e.prototype.resolveAll=i(function(){if(!this._needsRecursiveResolve)return this;if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map(function(f){return"'extend "+f.extend+"' in "+f.parent.fullName}).join(", "));return d.prototype.resolveAll.call(this)},"resolveAll");var a=/^[A-Z]/;function s(f,p){var m=p.parent.lookup(p.extend);if(m){var O=new l(p.fullName,p.id,p.type,p.rule,void 0,p.options);return m.get(O.name)||(O.declaringField=p,p.extensionField=O,m.add(O)),!0}return!1}return v(s,"tryHandleExtension"),i(s,"tryHandleExtension"),e.prototype._handleAdd=i(function(f){if(f instanceof l)f.extend!==void 0&&!f.extensionField&&(s(this,f)||this.deferred.push(f));else if(f instanceof h)a.test(f.name)&&(f.parent[f.name]=f.values);else if(!(f instanceof c)){if(f instanceof r)for(var p=0;p<this.deferred.length;)s(this,this.deferred[p])?this.deferred.splice(p,1):++p;for(var m=0;m<f.nestedArray.length;++m)this._handleAdd(f._nestedArray[m]);a.test(f.name)&&(f.parent[f.name]=f)}(f instanceof r||f instanceof h||f instanceof l)&&(this._fullyQualifiedObjects[f.fullName]=f)},"_handleAdd"),e.prototype._handleRemove=i(function(f){if(f instanceof l){if(f.extend!==void 0)if(f.extensionField)f.extensionField.parent.remove(f.extensionField),f.extensionField=null;else{var p=this.deferred.indexOf(f);p>-1&&this.deferred.splice(p,1)}}else if(f instanceof h)a.test(f.name)&&delete f.parent[f.name];else if(f instanceof d){for(var m=0;m<f.nestedArray.length;++m)this._handleRemove(f._nestedArray[m]);a.test(f.name)&&delete f.parent[f.name]}delete this._fullyQualifiedObjects[f.fullName]},"_handleRemove"),e._configure=function(f,p,m){r=f,n=p,t=m},at}v(kt,"requireRoot");var gr;function H(){if(gr)return We.exports;gr=1;var b=Object.defineProperty,i=v((e,u)=>b(e,"name",{value:u,configurable:!0}),"n"),d=We.exports=ne(),l=Ir(),h,c;d.codegen=si(),d.fetch=ai(),d.path=ui(),d.patterns=Lr();var o=d.patterns.reservedRe,r=d.patterns.unsafePropertyRe;d.fs=d.inquire("fs"),d.toArray=i(function(e){if(e){for(var u=Object.keys(e),a=new Array(u.length),s=0;s<u.length;)a[s]=e[u[s++]];return a}return[]},"toArray"),d.toObject=i(function(e){for(var u={},a=0;a<e.length;){var s=e[a++],f=e[a++];f!==void 0&&(u[s]=f)}return u},"toObject"),d.isReserved=i(function(e){return o.test(e)},"isReserved"),d.safeProp=i(function(e){return!/^[$\w_]+$/.test(e)||o.test(e)?"["+JSON.stringify(e)+"]":"."+e},"safeProp"),d.ucFirst=i(function(e){return e.charAt(0).toUpperCase()+e.substring(1)},"ucFirst");var n=/_([a-z])/g;d.camelCase=i(function(e){return e.substring(0,1)+e.substring(1).replace(n,function(u,a){return a.toUpperCase()})},"camelCase"),d.compareFieldsById=i(function(e,u){return e.id-u.id},"compareFieldsById"),d.decorateType=i(function(e,u){if(e.$type)return u&&e.$type.name!==u&&(d.decorateRoot.remove(e.$type),e.$type.name=u,d.decorateRoot.add(e.$type)),e.$type;h||(h=jt());var a=new h(u||e.name);return d.decorateRoot.add(a),a.ctor=e,Object.defineProperty(e,"$type",{value:a,enumerable:!1}),Object.defineProperty(e.prototype,"$type",{value:a,enumerable:!1}),a},"decorateType");var t=0;return d.decorateEnum=i(function(e){if(e.$type)return e.$type;c||(c=ie());var u=new c("Enum"+t++,e);return d.decorateRoot.add(u),Object.defineProperty(e,"$type",{value:u,enumerable:!1}),u},"decorateEnum"),d.setProperty=i(function(e,u,a,s){function f(p,m,O){var g=m.shift();if(r.test(g))return p;if(m.length>0)p[g]=f(p[g]||{},m,O);else{var y=p[g];if(y&&s)return p;y&&(O=[].concat(y).concat(O)),p[g]=O}return p}if(v(f,"a"),i(f,"setProp"),typeof e!="object")throw TypeError("dst must be an object");if(!u)throw TypeError("path must be specified");return u=u.split("."),f(e,u,a)},"setProperty"),Object.defineProperty(d,"decorateRoot",{get:i(function(){return l.decorated||(l.decorated=new(kt()))},"get")}),We.exports}v(H,"requireUtil");var br;function pe(){return br||(br=1,(function(b){var i=Object.defineProperty,d=v((r,n)=>i(r,"name",{value:n,configurable:!0}),"r"),l=b,h=H(),c=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function o(r,n){var t=0,e=Object.create(null);for(n|=0;t<r.length;)e[c[t+n]]=r[t++];return e}v(o,"bake"),d(o,"bake"),l.basic=o([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),l.defaults=o([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",h.emptyArray,null]),l.long=o([0,0,0,1,1],7),l.mapKey=o([0,0,0,5,5,0,0,0,1,1,0,2],2),l.packed=o([1,5,0,0,0,5,5,0,0,0,1,1,0])})(Ue)),Ue}v(pe,"requireTypes");var ut,_r;function ue(){if(_r)return ut;_r=1;var b=Object.defineProperty,i=v((t,e)=>b(t,"name",{value:e,configurable:!0}),"s");ut=n;var d=fe();((n.prototype=Object.create(d.prototype)).constructor=n).className="Field";var l=ie(),h=pe(),c=H(),o,r=/^required|optional|repeated$/;n.fromJSON=i(function(t,e){var u=new n(t,e.id,e.type,e.rule,e.extend,e.options,e.comment);return e.edition&&(u._edition=e.edition),u._defaultEdition="proto3",u},"fromJSON");function n(t,e,u,a,s,f,p){if(c.isObject(a)?(p=s,f=a,a=s=void 0):c.isObject(s)&&(p=f,f=s,s=void 0),d.call(this,t,f),!c.isInteger(e)||e<0)throw TypeError("id must be a non-negative integer");if(!c.isString(u))throw TypeError("type must be a string");if(a!==void 0&&!r.test(a=a.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(s!==void 0&&!c.isString(s))throw TypeError("extend must be a string");a==="proto3_optional"&&(a="optional"),this.rule=a&&a!=="optional"?a:void 0,this.type=u,this.id=e,this.extend=s||void 0,this.repeated=a==="repeated",this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=c.Long?h.long[u]!==void 0:!1,this.bytes=u==="bytes",this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=p}return v(n,"Field"),i(n,"Field"),Object.defineProperty(n.prototype,"required",{get:i(function(){return this._features.field_presence==="LEGACY_REQUIRED"},"get")}),Object.defineProperty(n.prototype,"optional",{get:i(function(){return!this.required},"get")}),Object.defineProperty(n.prototype,"delimited",{get:i(function(){return this.resolvedType instanceof o&&this._features.message_encoding==="DELIMITED"},"get")}),Object.defineProperty(n.prototype,"packed",{get:i(function(){return this._features.repeated_field_encoding==="PACKED"},"get")}),Object.defineProperty(n.prototype,"hasPresence",{get:i(function(){return this.repeated||this.map?!1:this.partOf||this.declaringField||this.extensionField||this._features.field_presence!=="IMPLICIT"},"get")}),n.prototype.setOption=i(function(t,e,u){return d.prototype.setOption.call(this,t,e,u)},"setOption"),n.prototype.toJSON=i(function(t){var e=t?!!t.keepComments:!1;return c.toObject(["edition",this._editionToJSON(),"rule",this.rule!=="optional"&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",e?this.comment:void 0])},"toJSON"),n.prototype.resolve=i(function(){if(this.resolved)return this;if((this.typeDefault=h.defaults[this.type])===void 0?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof o?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&this.options.default!=null&&(this.typeDefault=this.options.default,this.resolvedType instanceof l&&typeof this.typeDefault=="string"&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(this.options.packed!==void 0&&this.resolvedType&&!(this.resolvedType instanceof l)&&delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=c.Long.fromNumber(this.typeDefault,this.type.charAt(0)==="u"),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&typeof this.typeDefault=="string"){var t;c.base64.test(this.typeDefault)?c.base64.decode(this.typeDefault,t=c.newBuffer(c.base64.length(this.typeDefault)),0):c.utf8.write(this.typeDefault,t=c.newBuffer(c.utf8.length(this.typeDefault)),0),this.typeDefault=t}return this.map?this.defaultValue=c.emptyObject:this.repeated?this.defaultValue=c.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof o&&(this.parent.ctor.prototype[this.name]=this.defaultValue),d.prototype.resolve.call(this)},"resolve"),n.prototype._inferLegacyProtoFeatures=i(function(t){if(t!=="proto2"&&t!=="proto3")return{};var e={};if(this.rule==="required"&&(e.field_presence="LEGACY_REQUIRED"),this.parent&&h.defaults[this.type]===void 0){var u=this.parent.get(this.type.split(".").pop());u&&u instanceof o&&u.group&&(e.message_encoding="DELIMITED")}return this.getOption("packed")===!0?e.repeated_field_encoding="PACKED":this.getOption("packed")===!1&&(e.repeated_field_encoding="EXPANDED"),e},"_inferLegacyProtoFeatures"),n.prototype._resolveFeatures=i(function(t){return d.prototype._resolveFeatures.call(this,this._edition||t)},"_resolveFeatures"),n.d=i(function(t,e,u,a){return typeof e=="function"?e=c.decorateType(e).name:e&&typeof e=="object"&&(e=c.decorateEnum(e).name),i(function(s,f){c.decorateType(s.constructor).add(new n(f,t,e,u,{default:a}))},"fieldDecorator")},"decorateField"),n._configure=i(function(t){o=t},"configure"),ut}v(ue,"requireField");var ft,Or;function de(){if(Or)return ft;Or=1;var b=Object.defineProperty,i=v((r,n)=>b(r,"name",{value:n,configurable:!0}),"o");ft=c;var d=fe();((c.prototype=Object.create(d.prototype)).constructor=c).className="OneOf";var l=ue(),h=H();function c(r,n,t,e){if(Array.isArray(n)||(t=n,n=void 0),d.call(this,r,t),!(n===void 0||Array.isArray(n)))throw TypeError("fieldNames must be an Array");this.oneof=n||[],this.fieldsArray=[],this.comment=e}v(c,"OneOf"),i(c,"OneOf"),c.fromJSON=i(function(r,n){return new c(r,n.oneof,n.options,n.comment)},"fromJSON"),c.prototype.toJSON=i(function(r){var n=r?!!r.keepComments:!1;return h.toObject(["options",this.options,"oneof",this.oneof,"comment",n?this.comment:void 0])},"toJSON");function o(r){if(r.parent)for(var n=0;n<r.fieldsArray.length;++n)r.fieldsArray[n].parent||r.parent.add(r.fieldsArray[n])}return v(o,"addFieldsToParent"),i(o,"addFieldsToParent"),c.prototype.add=i(function(r){if(!(r instanceof l))throw TypeError("field must be a Field");return r.parent&&r.parent!==this.parent&&r.parent.remove(r),this.oneof.push(r.name),this.fieldsArray.push(r),r.partOf=this,o(this),this},"add"),c.prototype.remove=i(function(r){if(!(r instanceof l))throw TypeError("field must be a Field");var n=this.fieldsArray.indexOf(r);if(n<0)throw Error(r+" is not a member of "+this);return this.fieldsArray.splice(n,1),n=this.oneof.indexOf(r.name),n>-1&&this.oneof.splice(n,1),r.partOf=null,this},"remove"),c.prototype.onAdd=i(function(r){d.prototype.onAdd.call(this,r);for(var n=this,t=0;t<this.oneof.length;++t){var e=r.get(this.oneof[t]);e&&!e.partOf&&(e.partOf=n,n.fieldsArray.push(e))}o(this)},"onAdd"),c.prototype.onRemove=i(function(r){for(var n=0,t;n<this.fieldsArray.length;++n)(t=this.fieldsArray[n]).parent&&t.parent.remove(t);d.prototype.onRemove.call(this,r)},"onRemove"),Object.defineProperty(c.prototype,"isProto3Optional",{get:i(function(){if(this.fieldsArray==null||this.fieldsArray.length!==1)return!1;var r=this.fieldsArray[0];return r.options!=null&&r.options.proto3_optional===!0},"get")}),c.d=i(function(){for(var r=new Array(arguments.length),n=0;n<arguments.length;)r[n]=arguments[n++];return i(function(t,e){h.decorateType(t.constructor).add(new c(e,r)),Object.defineProperty(t,e,{get:h.oneOfGetter(r),set:h.oneOfSetter(r)})},"oneOfDecorator")},"decorateOneOf"),ft}v(de,"requireOneof");var lt,wr;function fe(){if(wr)return lt;wr=1;var b=Object.defineProperty,i=v((e,u)=>b(e,"name",{value:u,configurable:!0}),"s");lt=t,t.className="ReflectionObject";const d=de();var l=H(),h,c={enum_type:"OPEN",field_presence:"EXPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY",enforce_naming_style:"STYLE2024",default_symbol_visibility:"EXPORT_TOP_LEVEL"},o={enum_type:"OPEN",field_presence:"EXPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY",enforce_naming_style:"STYLE_LEGACY",default_symbol_visibility:"EXPORT_ALL"},r={enum_type:"CLOSED",field_presence:"EXPLICIT",json_format:"LEGACY_BEST_EFFORT",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"EXPANDED",utf8_validation:"NONE",enforce_naming_style:"STYLE_LEGACY",default_symbol_visibility:"EXPORT_ALL"},n={enum_type:"OPEN",field_presence:"IMPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY",enforce_naming_style:"STYLE_LEGACY",default_symbol_visibility:"EXPORT_ALL"};function t(e,u){if(!l.isString(e))throw TypeError("name must be a string");if(u&&!l.isObject(u))throw TypeError("options must be an object");this.options=u,this.parsedOptions=null,this.name=e,this._edition=null,this._defaultEdition="proto2",this._features={},this._featuresResolved=!1,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}return v(t,"ReflectionObject"),i(t,"ReflectionObject"),Object.defineProperties(t.prototype,{root:{get:i(function(){for(var e=this;e.parent!==null;)e=e.parent;return e},"get")},fullName:{get:i(function(){for(var e=[this.name],u=this.parent;u;)e.unshift(u.name),u=u.parent;return e.join(".")},"get")}}),t.prototype.toJSON=i(function(){throw Error()},"toJSON"),t.prototype.onAdd=i(function(e){this.parent&&this.parent!==e&&this.parent.remove(this),this.parent=e,this.resolved=!1;var u=e.root;u instanceof h&&u._handleAdd(this)},"onAdd"),t.prototype.onRemove=i(function(e){var u=e.root;u instanceof h&&u._handleRemove(this),this.parent=null,this.resolved=!1},"onRemove"),t.prototype.resolve=i(function(){return this.resolved?this:(this.root instanceof h&&(this.resolved=!0),this)},"resolve"),t.prototype._resolveFeaturesRecursive=i(function(e){return this._resolveFeatures(this._edition||e)},"_resolveFeaturesRecursive"),t.prototype._resolveFeatures=i(function(e){if(!this._featuresResolved){var u={};if(!e)throw new Error("Unknown edition for "+this.fullName);var a=Object.assign(this.options?Object.assign({},this.options.features):{},this._inferLegacyProtoFeatures(e));if(this._edition){if(e==="proto2")u=Object.assign({},r);else if(e==="proto3")u=Object.assign({},n);else if(e==="2023")u=Object.assign({},o);else if(e==="2024")u=Object.assign({},c);else throw new Error("Unknown edition: "+e);this._features=Object.assign(u,a||{}),this._featuresResolved=!0;return}if(this.partOf instanceof d){var s=Object.assign({},this.partOf._features);this._features=Object.assign(s,a||{})}else if(!this.declaringField)if(this.parent){var f=Object.assign({},this.parent._features);this._features=Object.assign(f,a||{})}else throw new Error("Unable to find a parent for "+this.fullName);this.extensionField&&(this.extensionField._features=this._features),this._featuresResolved=!0}},"_resolveFeatures"),t.prototype._inferLegacyProtoFeatures=i(function(){return{}},"_inferLegacyProtoFeatures"),t.prototype.getOption=i(function(e){if(this.options)return this.options[e]},"getOption"),t.prototype.setOption=i(function(e,u,a){return e==="__proto__"?this:(this.options||(this.options={}),/^features\./.test(e)?l.setProperty(this.options,e,u,a):(!a||this.options[e]===void 0)&&(this.getOption(e)!==u&&(this.resolved=!1),this.options[e]=u),this)},"setOption"),t.prototype.setParsedOption=i(function(e,u,a){if(e==="__proto__")return this;this.parsedOptions||(this.parsedOptions=[]);var s=this.parsedOptions;if(a){var f=s.find(function(O){return Object.prototype.hasOwnProperty.call(O,e)});if(f){var p=f[e];l.setProperty(p,a,u)}else f={},f[e]=l.setProperty({},a,u),s.push(f)}else{var m={};m[e]=u,s.push(m)}return this},"setParsedOption"),t.prototype.setOptions=i(function(e,u){if(e)for(var a=Object.keys(e),s=0;s<a.length;++s)this.setOption(a[s],e[a[s]],u);return this},"setOptions"),t.prototype.toString=i(function(){var e=this.constructor.className,u=this.fullName;return u.length?e+" "+u:e},"toString"),t.prototype._editionToJSON=i(function(){if(!(!this._edition||this._edition==="proto3"))return this._edition},"_editionToJSON"),t._configure=function(e){h=e},lt}v(fe,"requireObject");var ct,jr;function ie(){if(jr)return ct;jr=1;var b=Object.defineProperty,i=v((o,r)=>b(o,"name",{value:r,configurable:!0}),"r");ct=c;var d=fe();((c.prototype=Object.create(d.prototype)).constructor=c).className="Enum";var l=ge(),h=H();function c(o,r,n,t,e,u){if(d.call(this,o,n),r&&typeof r!="object")throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=t,this.comments=e||{},this.valuesOptions=u,this._valuesFeatures={},this.reserved=void 0,r)for(var a=Object.keys(r),s=0;s<a.length;++s)a[s]!=="__proto__"&&typeof r[a[s]]=="number"&&(this.valuesById[this.values[a[s]]=r[a[s]]]=a[s])}return v(c,"Enum"),i(c,"Enum"),c.prototype._resolveFeatures=i(function(o){return o=this._edition||o,d.prototype._resolveFeatures.call(this,o),Object.keys(this.values).forEach(r=>{var n=Object.assign({},this._features);this._valuesFeatures[r]=Object.assign(n,this.valuesOptions&&this.valuesOptions[r]&&this.valuesOptions[r].features)}),this},"_resolveFeatures"),c.fromJSON=i(function(o,r){var n=new c(o,r.values,r.options,r.comment,r.comments);return n.reserved=r.reserved,r.edition&&(n._edition=r.edition),n._defaultEdition="proto3",n},"fromJSON"),c.prototype.toJSON=i(function(o){var r=o?!!o.keepComments:!1;return h.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",r?this.comment:void 0,"comments",r?this.comments:void 0])},"toJSON"),c.prototype.add=i(function(o,r,n,t){if(!h.isString(o))throw TypeError("name must be a string");if(!h.isInteger(r))throw TypeError("id must be an integer");if(o==="__proto__")return this;if(this.values[o]!==void 0)throw Error("duplicate name '"+o+"' in "+this);if(this.isReservedId(r))throw Error("id "+r+" is reserved in "+this);if(this.isReservedName(o))throw Error("name '"+o+"' is reserved in "+this);if(this.valuesById[r]!==void 0){if(!(this.options&&this.options.allow_alias))throw Error("duplicate id "+r+" in "+this);this.values[o]=r}else this.valuesById[this.values[o]=r]=o;return t&&(this.valuesOptions===void 0&&(this.valuesOptions={}),this.valuesOptions[o]=t||null),this.comments[o]=n||null,this},"add"),c.prototype.remove=i(function(o){if(!h.isString(o))throw TypeError("name must be a string");var r=this.values[o];if(r==null)throw Error("name '"+o+"' does not exist in "+this);return delete this.valuesById[r],delete this.values[o],delete this.comments[o],this.valuesOptions&&delete this.valuesOptions[o],this},"remove"),c.prototype.isReservedId=i(function(o){return l.isReservedId(this.reserved,o)},"isReservedId"),c.prototype.isReservedName=i(function(o){return l.isReservedName(this.reserved,o)},"isReservedName"),ct}v(ie,"require_enum");var pt,kr;function Mr(){if(kr)return pt;kr=1;var b=Object.defineProperty,i=v((r,n)=>b(r,"name",{value:n,configurable:!0}),"o");pt=o;var d=ie(),l=pe(),h=H();function c(r,n,t,e){return n.delimited?r("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",t,e,(n.id<<3|3)>>>0,(n.id<<3|4)>>>0):r("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",t,e,(n.id<<3|2)>>>0)}v(c,"genTypePartial"),i(c,"genTypePartial");function o(r){for(var n=h.codegen(["m","w"],r.name+"$encode")("if(!w)")("w=Writer.create()"),u,t,e=r.fieldsArray.slice().sort(h.compareFieldsById),u=0;u<e.length;++u){var a=e[u].resolve(),s=r._fieldsArray.indexOf(a),f=a.resolvedType instanceof d?"int32":a.type,p=l.basic[f];t="m"+h.safeProp(a.name),a.map?(n("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",t,a.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",t)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(a.id<<3|2)>>>0,8|l.mapKey[a.keyType],a.keyType),p===void 0?n("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",s,t):n(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|p,f,t),n("}")("}")):a.repeated?(n("if(%s!=null&&%s.length){",t,t),a.packed&&l.packed[f]!==void 0?n("w.uint32(%i).fork()",(a.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",t)("w.%s(%s[i])",f,t)("w.ldelim()"):(n("for(var i=0;i<%s.length;++i)",t),p===void 0?c(n,a,s,t+"[i]"):n("w.uint32(%i).%s(%s[i])",(a.id<<3|p)>>>0,f,t)),n("}")):(a.optional&&n("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",t,a.name),p===void 0?c(n,a,s,t):n("w.uint32(%i).%s(%s)",(a.id<<3|p)>>>0,f,t))}return n("return w")}return v(o,"encoder"),i(o,"encoder"),pt}v(Mr,"requireEncoder");var Rr;function fi(){if(Rr)return Se.exports;Rr=1;var b=Object.defineProperty,i=v((c,o)=>b(c,"name",{value:o,configurable:!0}),"i"),d=Se.exports=oi();d.build="light";function l(c,o,r){return typeof o=="function"?(r=o,o=new d.Root):o||(o=new d.Root),o.load(c,r)}v(l,"load"),i(l,"load"),d.load=l;function h(c,o){return o||(o=new d.Root),o.loadSync(c)}return v(h,"loadSync"),i(h,"loadSync"),d.loadSync=h,d.encoder=Mr(),d.decoder=Br(),d.verifier=Dr(),d.converter=Cr(),d.ReflectionObject=fe(),d.Namespace=ge(),d.Root=kt(),d.Enum=ie(),d.Type=jt(),d.Field=ue(),d.OneOf=de(),d.MapField=bt(),d.Service=Ot(),d.Method=_t(),d.Message=wt(),d.wrappers=Jr(),d.types=pe(),d.util=H(),d.ReflectionObject._configure(d.Root),d.Namespace._configure(d.Type,d.Service,d.Enum),d.Root._configure(d.Type),d.Field._configure(d.Type),Se.exports}v(fi,"requireIndexLight");var dt,Er;function Vr(){if(Er)return dt;Er=1;var b=Object.defineProperty,i=v((s,f)=>b(s,"name",{value:f,configurable:!0}),"l");dt=a;var d=/[\s{}=;:[\],'"()<>]/g,l=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,h=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,c=/^ *[*/]+ */,o=/^\s*\*?\/*/,r=/\n/g,n=/\s/,t=/\\(.?)/g,e={0:"\0",r:"\r",n:`
5
+ `,t:" "};function u(s){return s.replace(t,function(f,p){switch(p){case"\\":case"":return p;default:return e[p]||""}})}v(u,"unescape"),i(u,"unescape"),a.unescape=u;function a(s,f){s=s.toString();var p=0,m=s.length,O=1,g=0,y={},_=[],E=null;function S(F){return Error("illegal "+F+" (line "+O+")")}v(S,"k"),i(S,"illegal");function x(){var F=E==="'"?h:l;F.lastIndex=p-1;var M=F.exec(s);if(!M)throw S("string");return p=F.lastIndex,A(E),E=null,u(M[1])}v(x,"D"),i(x,"readString");function D(F){return s.charAt(F)}v(D,"a"),i(D,"charAt");function G(F,M,I){var W={type:s.charAt(F++),lineEmpty:!1,leading:I},K;f?K=2:K=3;var C=F-K,V;do if(--C<0||(V=s.charAt(C))===`
6
+ `){W.lineEmpty=!0;break}while(V===" "||V===" ");for(var X=s.substring(F,M).split(r),re=0;re<X.length;++re)X[re]=X[re].replace(f?o:c,"").trim();W.text=X.join(`
7
+ `).trim(),y[O]=W,g=O}v(G,"b"),i(G,"setComment");function Z(F){var M=L(F),I=s.substring(F,M),W=/^\s*\/\//.test(I);return W}v(Z,"C"),i(Z,"isDoubleSlashCommentLine");function L(F){for(var M=F;M<m&&D(M)!==`
8
+ `;)M++;return M}v(L,"y"),i(L,"findEndOfLine");function B(){if(_.length>0)return _.shift();if(E)return x();var F,M,I,W,K,C,V=p===0;do{if(p===m)return null;for(F=!1;n.test(I=D(p));)if(I===`
9
+ `&&(V=!0,++O),++p===m)return null;if(D(p)==="/"){if(++p===m)throw S("comment");if(D(p)==="/")if(f){if(W=p,K=!1,Z(p-1)){K=!0;do{if(p=L(p),p===m||(p++,!V))break;C=Z(p),C&&O++}while(C)}else p=Math.min(m,L(p)+1);K&&(G(W,p,V),V=!0),O++,F=!0}else{for(K=D(W=p+1)==="/";D(++p)!==`
10
+ `;)if(p===m)return null;++p,K&&(G(W,p-1,V),V=!0),++O,F=!0}else if((I=D(p))==="*"){W=p+1,K=f||D(W)==="*";do{if(I===`
11
+ `&&++O,++p===m)throw S("comment");M=I,I=D(p)}while(M!=="*"||I!=="/");++p,K&&(G(W,p-2,V),V=!0),F=!0}else return"/"}}while(F);var X=p;d.lastIndex=0;var re=d.test(D(X++));if(!re)for(;X<m&&!d.test(D(X));)++X;var oe=s.substring(p,p=X);return(oe==='"'||oe==="'")&&(E=oe),oe}v(B,"R"),i(B,"next");function A(F){_.push(F)}v(A,"E"),i(A,"push");function U(){if(!_.length){var F=B();if(F===null)return null;A(F)}return _[0]}v(U,"A"),i(U,"peek");function z(F,M){var I=U(),W=I===F;if(W)return B(),!0;if(!M)throw S("token '"+I+"', '"+F+"' expected");return!1}v(z,"I"),i(z,"skip");function N(F){var M=null,I;return F===void 0?(I=y[O-1],delete y[O-1],I&&(f||I.type==="*"||I.lineEmpty)&&(M=I.leading?I.text:null)):(g<F&&U(),I=y[F],delete y[F],I&&!I.lineEmpty&&(f||I.type==="/")&&(M=I.leading?null:I.text)),M}return v(N,"O"),i(N,"cmnt"),Object.defineProperty({next:B,peek:U,push:A,skip:z,cmnt:N},"line",{get:i(function(){return O},"get")})}return v(a,"tokenize"),i(a,"tokenize"),dt}v(Vr,"requireTokenize");var ht,Ar;function li(){if(Ar)return ht;Ar=1;var b=Object.defineProperty,i=v((D,G)=>b(D,"name",{value:G,configurable:!0}),"u");ht=x,x.filename=null,x.defaults={keepCase:!1};var d=Vr(),l=kt(),h=jt(),c=ue(),o=bt(),r=de(),n=ie(),t=Ot(),e=_t(),u=fe(),a=pe(),s=H(),f=/^[1-9][0-9]*$/,p=/^-?[1-9][0-9]*$/,m=/^0[x][0-9a-fA-F]+$/,O=/^-?0[x][0-9a-fA-F]+$/,g=/^0[0-7]+$/,y=/^-?0[0-7]+$/,_=s.patterns.numberRe,E=/^[a-zA-Z_][a-zA-Z_0-9]*$/,S=s.patterns.typeRefRe;function x(D,G,Z){G instanceof l||(Z=G,G=new l),Z||(Z=x.defaults);var L=Z.preferTrailingComment||!1,B=d(D,Z.alternateCommentMode||!1),A=B.next,U=B.push,z=B.peek,N=B.skip,F=B.cmnt,M=!0,I,W,K,C="proto2",V=G,X=[],re={},oe=Z.keepCase?function(j){return j}:s.camelCase;function Rt(){X.forEach(j=>{j._edition=C,Object.keys(re).forEach(w=>{j.getOption(w)===void 0&&j.setOption(w,re[w],!0)})})}v(Rt,"X"),i(Rt,"resolveFileFeatures");function T(j,w,k){var R=x.filename;return k||(x.filename=null),Error("illegal "+(w||"token")+" '"+j+"' ("+(R?R+", ":"")+"line "+B.line+")")}v(T,"n"),i(T,"illegal");function se(){var j=[],w;do{if((w=A())!=='"'&&w!=="'")throw T(w);j.push(A()),N(w),w=z()}while(w==='"'||w==="'");return j.join("")}v(se,"q"),i(se,"readString");function be(j){var w=A();switch(w){case"'":case'"':return U(w),se();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return Et(w,!0)}catch{if(j&&S.test(w))return w;throw T(w,"value")}}v(be,"W"),i(be,"readValue");function he(j,w){var k,R;do if(w&&((k=z())==='"'||k==="'")){var q=se();if(j.push(q),C>=2023)throw T(q,"id")}else try{j.push([R=ae(A()),N("to",!0)?ae(A()):R])}catch($){if(w&&S.test(k)&&C>=2023)j.push(k);else throw $}while(N(",",!0));var P={options:void 0};P.setOption=function($,J){this.options===void 0&&(this.options={}),this.options[$]=J},ee(P,i(function($){if($==="option")te(P,$),N(";");else throw T($)},"parseRange_block"),i(function(){me(P)},"parseRange_line"))}v(he,"N"),i(he,"readRanges");function Et(j,w){var k=1;switch(j.charAt(0)==="-"&&(k=-1,j=j.substring(1)),j){case"inf":case"INF":case"Inf":return k*(1/0);case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(f.test(j))return k*parseInt(j,10);if(m.test(j))return k*parseInt(j,16);if(g.test(j))return k*parseInt(j,8);if(_.test(j))return k*parseFloat(j);throw T(j,"number",w)}v(Et,"D"),i(Et,"parseNumber");function ae(j,w){switch(j){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!w&&j.charAt(0)==="-")throw T(j,"id");if(p.test(j))return parseInt(j,10);if(O.test(j))return parseInt(j,16);if(y.test(j))return parseInt(j,8);throw T(j,"id")}v(ae,"F"),i(ae,"parseId");function At(){if(I!==void 0)throw T("package");if(I=A(),!S.test(I))throw T(I,"name");V=V.define(I),N(";")}v(At,"H"),i(At,"parsePackage");function St(){var j=z(),w;switch(j){case"option":if(C<"2024")throw T("option");A(),se(),N(";");return;case"weak":w=K||(K=[]),A();break;case"public":A();default:w=W||(W=[]);break}j=se(),N(";"),w.push(j)}v(St,"J"),i(St,"parseImport");function Nt(){if(N("="),C=se(),C<2023)throw T(C,"syntax");N(";")}v(Nt,"Q"),i(Nt,"parseSyntax");function Tt(){if(N("="),C=se(),!["2023","2024"].includes(C))throw T(C,"edition");N(";")}v(Tt,"Y"),i(Tt,"parseEdition");function ve(j,w){switch(w){case"option":return te(j,w),N(";"),!0;case"message":return ye(j,w),!0;case"enum":return Re(j,w),!0;case"export":case"local":return C<"2024"||(w=A(),w==="export"||w==="local")||w!=="message"&&w!=="enum"?!1:ve(j,w);case"service":return Lt(j,w),!0;case"extend":return Dt(j,w),!0}return!1}v(ve,"T"),i(ve,"parseCommon");function ee(j,w,k){var R=B.line;if(j&&(typeof j.comment!="string"&&(j.comment=F()),j.filename=x.filename),N("{",!0)){for(var q;(q=A())!=="}";)w(q);N(";",!0)}else k&&k(),N(";"),j&&(typeof j.comment!="string"||L)&&(j.comment=F(R)||j.comment)}v(ee,"w"),i(ee,"ifBlock");function ye(j,w){if(!E.test(w=A()))throw T(w,"type name");var k=new h(w);ee(k,i(function(R){if(!ve(k,R))switch(R){case";":break;case"map":xt(k);break;case"required":if(C!=="proto2")throw T(R);case"repeated":Q(k,R);break;case"optional":if(C==="proto3")Q(k,"proto3_optional");else{if(C!=="proto2")throw T(R);Q(k,"optional")}break;case"oneof":Ft(k,R);break;case"extensions":he(k.extensions||(k.extensions=[]));break;case"reserved":he(k.reserved||(k.reserved=[]),!0);break;default:if(C==="proto2"||!S.test(R))throw T(R);U(R),Q(k,"optional");break}},"parseType_block")),j.add(k),j===V&&X.push(k)}v(ye,"M"),i(ye,"parseType");function Q(j,w,k){var R=A();if(R==="group"){Pt(j,w);return}for(;R.endsWith(".")||z().startsWith(".");)R+=A();if(!S.test(R))throw T(R,"type");var q=A();if(!E.test(q))throw T(q,"name");q=oe(q),N("=");var P=new c(q,ae(A()),R,w,k);if(ee(P,i(function(J){if(J==="option")te(P,J),N(";");else throw T(J)},"parseField_block"),i(function(){me(P)},"parseField_line")),w==="proto3_optional"){var $=new r("_"+q);P.setOption("proto3_optional",!0),$.add(P),j.add($)}else j.add(P);j===V&&X.push(P)}v(Q,"m"),i(Q,"parseField");function Pt(j,w){if(C>=2023)throw T("group");var k=A();if(!E.test(k))throw T(k,"name");var R=s.lcFirst(k);k===R&&(k=s.ucFirst(k)),N("=");var q=ae(A()),P=new h(k);P.group=!0;var $=new c(R,q,k,w);$.filename=x.filename,ee(P,i(function(J){switch(J){case";":break;case"option":te(P,J),N(";");break;case"required":case"repeated":Q(P,J);break;case"optional":C==="proto3"?Q(P,"proto3_optional"):Q(P,"optional");break;case"message":ye(P,J);break;case"enum":Re(P,J);break;case"reserved":he(P.reserved||(P.reserved=[]),!0);break;case"export":case"local":if(C<"2024")throw T(J);switch(J=A(),J){case"message":ye(P,J);break;case"enum":ye(P,J);break;default:throw T(J)}break;default:throw T(J)}},"parseGroup_block")),j.add(P).add($)}v(Pt,"j"),i(Pt,"parseGroup");function xt(j){N("<");var w=A();if(a.mapKey[w]===void 0)throw T(w,"type");N(",");var k=A();if(!S.test(k))throw T(k,"type");N(">");var R=A();if(!E.test(R))throw T(R,"name");N("=");var q=new o(oe(R),ae(A()),w,k);ee(q,i(function(P){if(P==="option")te(q,P),N(";");else throw T(P)},"parseMapField_block"),i(function(){me(q)},"parseMapField_line")),j.add(q)}v(xt,"k"),i(xt,"parseMapField");function Ft(j,w){if(!E.test(w=A()))throw T(w,"name");var k=new r(oe(w));ee(k,i(function(R){R==="option"?(te(k,R),N(";")):(U(R),Q(k,"optional"))},"parseOneOf_block")),j.add(k)}v(Ft,"ee"),i(Ft,"parseOneOf");function Re(j,w){if(!E.test(w=A()))throw T(w,"name");var k=new n(w);ee(k,i(function(R){switch(R){case";":break;case"option":te(k,R),N(";");break;case"reserved":he(k.reserved||(k.reserved=[]),!0),k.reserved===void 0&&(k.reserved=[]);break;default:qt(k,R)}},"parseEnum_block")),j.add(k),j===V&&X.push(k)}v(Re,"B"),i(Re,"parseEnum");function qt(j,w){if(!E.test(w))throw T(w,"name");N("=");var k=ae(A(),!0),R={options:void 0};R.getOption=function(q){return this.options[q]},R.setOption=function(q,P){u.prototype.setOption.call(R,q,P)},R.setParsedOption=function(){},ee(R,i(function(q){if(q==="option")te(R,q),N(";");else throw T(q)},"parseEnumValue_block"),i(function(){me(R)},"parseEnumValue_line")),j.add(w,k,R.comment,R.parsedOptions||R.options)}v(qt,"re"),i(qt,"parseEnumValue");function te(j,w){var k,R,q=!0;for(w==="option"&&(w=A());w!=="=";){if(w==="("){var P=A();N(")"),w="("+P+")"}if(q){if(q=!1,w.includes(".")&&!w.includes("(")){var $=w.split(".");k=$[0]+".",w=$[1];continue}k=w}else R=R?R+=w:w;w=A()}var J=R?k.concat(R):k,Oe=Ee(j,J);R=R&&R[0]==="."?R.slice(1):R,k=k&&k[k.length-1]==="."?k.slice(0,-1):k,It(j,k,Oe,R)}v(te,"v"),i(te,"parseOption");function Ee(j,w){if(N("{",!0)){for(var k={};!N("}",!0);){if(!E.test(Y=A()))throw T(Y,"name");if(Y===null)throw T(Y,"end of input");var R,q=Y;if(N(":",!0),z()==="{")R=Ee(j,w+"."+Y);else if(z()==="["){R=[];var P;if(N("[",!0)&&!N("]",!0)){do P=be(!0),R.push(P);while(N(",",!0));N("]"),typeof P<"u"&&_e(j,w+"."+Y,P)}}else R=be(!0),_e(j,w+"."+Y,R);var $=k[q];$&&(R=[].concat($).concat(R)),q!=="__proto__"&&(k[q]=R),N(",",!0),N(";",!0)}return k}var J=be(!0);return _e(j,w,J),J}v(Ee,"K"),i(Ee,"parseOptionValue");function _e(j,w,k){if(V===j&&/^features\./.test(w)){re[w]=k;return}j.setOption&&j.setOption(w,k)}v(_e,"Z"),i(_e,"setOption");function It(j,w,k,R){j.setParsedOption&&j.setParsedOption(w,k,R)}v(It,"ie"),i(It,"setParsedOption");function me(j){if(N("[",!0)){do te(j,"option");while(N(",",!0));N("]")}return j}v(me,"A"),i(me,"parseInlineOptions");function Lt(j,w){if(!E.test(w=A()))throw T(w,"service name");var k=new t(w);ee(k,i(function(R){if(!ve(k,R)&&R!==";")if(R==="rpc")Bt(k,R);else throw T(R)},"parseService_block")),j.add(k),j===V&&X.push(k)}v(Lt,"te"),i(Lt,"parseService");function Bt(j,w){var k=F(),R=w;if(!E.test(w=A()))throw T(w,"name");var q=w,P,$,J,Oe;if(N("("),N("stream",!0)&&($=!0),!S.test(w=A())||(P=w,N(")"),N("returns"),N("("),N("stream",!0)&&(Oe=!0),!S.test(w=A())))throw T(w);J=w,N(")");var we=new e(q,R,P,J,$,Oe);we.comment=k,ee(we,i(function(je){if(je!==";")if(je==="option")te(we,je),N(";");else throw T(je)},"parseMethod_block")),j.add(we)}v(Bt,"ae"),i(Bt,"parseMethod");function Dt(j,w){if(!S.test(w=A()))throw T(w,"reference");var k=w;ee(null,i(function(R){switch(R){case"required":case"repeated":Q(j,R,k);break;case"optional":C==="proto3"?Q(j,"proto3_optional",k):Q(j,"optional",k);break;default:if(C==="proto2"||!S.test(R))throw T(R);U(R),Q(j,"optional",k);break}},"parseExtension_block"))}v(Dt,"se"),i(Dt,"parseExtension");for(var Y;(Y=A())!==null;)switch(Y){case";":break;case"package":if(!M)throw T(Y);At();break;case"import":St();break;case"syntax":if(!M)throw T(Y);Nt();break;case"edition":if(!M)throw T(Y);Tt();break;case"option":te(V,Y),N(";",!0);break;default:if(ve(V,Y)){M=!1;continue}throw T(Y)}return Rt(),x.filename=null,{package:I,imports:W,weakImports:K,root:G}}return v(x,"parse"),i(x,"parse"),ht}v(li,"requireParse");var vt,Sr;function ci(){if(Sr)return vt;Sr=1;var b=Object.defineProperty,i=v((c,o)=>b(c,"name",{value:o,configurable:!0}),"t");vt=l;var d=/\/|\./;function l(c,o){d.test(c)||(c="google/protobuf/"+c+".proto",o={nested:{google:{nested:{protobuf:{nested:o}}}}}),l[c]=o}v(l,"common"),i(l,"common"),l("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}});var h;return l("duration",{Duration:h={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),l("timestamp",{Timestamp:h}),l("empty",{Empty:{fields:{}}}),l("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),l("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),l("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),l.get=i(function(c){return l[c]||null},"get"),vt}v(ci,"requireCommon");var Nr;function pi(){if(Nr)return Ae.exports;Nr=1;var b=Ae.exports=fi();return b.build="full",b.tokenize=Vr(),b.parse=li(),b.common=ci(),b.Root._configure(b.Type,b.parse,b.common),Ae.exports}v(pi,"requireSrc");var yt,Tr;function di(){return Tr||(Tr=1,yt=pi()),yt}v(di,"requireProtobufjs");var $r=di();const hi=Pr($r),yi=Ur({__proto__:null,default:hi},[$r]);export{yi as i};