@visulima/task-runner 1.0.0-alpha.14 → 1.0.0-alpha.16

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.
Files changed (30) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/index.d.ts +191 -3
  3. package/dist/index.js +1 -1
  4. package/dist/packem_chunks/index.js +30 -10
  5. package/dist/packem_shared/{FileAccessTracker-DSNf03JW.js → FileAccessTracker-IG-Z0Ijw.js} +4 -4
  6. package/dist/packem_shared/HttpRemoteCache-D3Z6b_FO.js +1 -0
  7. package/dist/packem_shared/TaskOrchestrator-F_NrcUYn.js +2 -0
  8. package/dist/packem_shared/TrackedTaskExecutor-BiK0Coso.js +2 -0
  9. package/dist/packem_shared/collectNodeModulesBinDirs-JaeFLP9l.js +1 -0
  10. package/dist/packem_shared/createTaskGraph-D6nPDd4s.js +1 -0
  11. package/dist/packem_shared/defaultTaskRunner-CjaCnt_W.js +2 -0
  12. package/dist/packem_shared/{expandArguments-4mab7-Ds.js → expandArguments-D7qvc6Rp.js} +1 -1
  13. package/dist/packem_shared/{expandTokensInString-Cyx0qSFA.js → expandTokensInString-DVSFEdWu.js} +1 -1
  14. package/dist/packem_shared/{parseCommands-b1K2vIxj.js → parseCommands-BHsXoUCd.js} +1 -1
  15. package/dist/packem_shared/{resolveCacheMode-DXe7i-tj.js → resolveCacheMode-DEDFC-kM.js} +1 -1
  16. package/dist/packem_shared/runConcurrentFallback-SvS4ElEX.js +3 -0
  17. package/dist/packem_shared/runConcurrently-ebFf3uYs.js +1 -0
  18. package/dist/packem_shared/runTeardown-CiJJeWVf.js +1 -0
  19. package/dist/packem_shared/shell-quote-BhmqDUL1.js +1 -0
  20. package/index.js +556 -729
  21. package/package.json +12 -14
  22. package/dist/packem_shared/HttpRemoteCache-Ch-_9ejF.js +0 -1
  23. package/dist/packem_shared/TaskOrchestrator-CXeojk7n.js +0 -2
  24. package/dist/packem_shared/TrackedTaskExecutor-D3-LNT_d.js +0 -2
  25. package/dist/packem_shared/createTaskGraph-CEYYI-DL.js +0 -1
  26. package/dist/packem_shared/defaultTaskRunner-Byi0zsgh.js +0 -2
  27. package/dist/packem_shared/runConcurrentFallback-Dpqxuyv-.js +0 -3
  28. package/dist/packem_shared/runConcurrently-DYbMGyGv.js +0 -1
  29. package/dist/packem_shared/runTeardown-DBBpBAyb.js +0 -1
  30. package/dist/packem_shared/shell-quote-CksLqyXK.js +0 -1
@@ -1,11 +1,31 @@
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(`
1
+ import __cjs_mod__ from "node:module"; // -- packem CommonJS require shim --
2
+ const require = __cjs_mod__.createRequire(import.meta.url);
3
+ var Hr=Object.defineProperty;var g=(w,s)=>Hr(w,"name",{value:s,configurable:!0});function Kr(w,s){for(var y=0;y<s.length;y++){const f=s[y];if(typeof f!="string"&&!Array.isArray(f))for(const v in f)v!=="default"&&!(v in w)&&(w[v]=f[v])}return Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})}g(Kr,"_mergeNamespaces");var Gr=Object.defineProperty,ve=g((w,s)=>Gr(w,"name",{value:s,configurable:!0}),"t"),de=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fr(w){return w&&w.__esModule&&Object.prototype.hasOwnProperty.call(w,"default")?w.default:w}g(Fr,"getDefaultExportFromCjs");ve(Fr,"getDefaultExportFromCjs");function Xr(w){return w&&Object.prototype.hasOwnProperty.call(w,"default")?w.default:w}g(Xr,"getDefaultExportFromNamespaceIfPresent");ve(Xr,"getDefaultExportFromNamespaceIfPresent");function Yr(w){return w&&Object.prototype.hasOwnProperty.call(w,"default")&&Object.keys(w).length===1?w.default:w}g(Yr,"getDefaultExportFromNamespaceIfNotNamed");ve(Yr,"getDefaultExportFromNamespaceIfNotNamed");function Qr(w){if(Object.prototype.hasOwnProperty.call(w,"__esModule"))return w;var s=w.default;if(typeof s=="function"){var y=ve(g(function f(){var v=!1;try{v=this instanceof f}catch{}return v?Reflect.construct(s,arguments,this.constructor):s.apply(this,arguments)},"a"),"a");y.prototype=s.prototype}else y={};return Object.defineProperty(y,"__esModule",{value:!0}),Object.keys(w).forEach(function(f){var v=Object.getOwnPropertyDescriptor(w,f);Object.defineProperty(y,f,v.get?v:{enumerable:!0,get:ve(function(){return w[f]},"get")})}),y}g(Qr,"getAugmentedNamespace");ve(Qr,"getAugmentedNamespace");var Se={exports:{}},Te={exports:{}},Pe={},Re={},xe,Jt;function Ir(){if(Jt)return xe;Jt=1;var w=Object.defineProperty,s=g((f,v)=>w(f,"name",{value:v,configurable:!0}),"n");xe=y;function y(f,v){for(var p=new Array(arguments.length-1),n=0,r=2,u=!0;r<arguments.length;)p[n++]=arguments[r++];return new Promise(s(function(o,e){p[n]=s(function(c){if(u)if(u=!1,c)e(c);else{for(var i=new Array(arguments.length-1),t=0;t<i.length;)i[t++]=arguments[t];o.apply(null,i)}},"callback");try{f.apply(v||null,p)}catch(c){u&&(u=!1,e(c))}},"executor"))}return g(y,"asPromise"),s(y,"asPromise"),xe}g(Ir,"requireAspromise");var qe={},Vt;function ei(){return Vt||(Vt=1,(function(w){var s=Object.defineProperty,y=g((c,i)=>s(c,"name",{value:i,configurable:!0}),"c"),f=w;f.length=y(function(c){var i=c.length;if(!i)return 0;for(;i>0&&c.charAt(i-1)==="=";)--i;return Math.floor(i*3/4)},"length");for(var v=new Array(64),p=new Array(123),n=0;n<64;)p[v[n]=n<26?n+65:n<52?n+71:n<62?n-4:n-59|43]=n++;p[45]=62,p[95]=63,f.encode=y(function(c,i,t){for(var a=null,h=[],m=0,b=0,S;i<t;){var d=c[i++];switch(b){case 0:h[m++]=v[d>>2],S=(d&3)<<4,b=1;break;case 1:h[m++]=v[S|d>>4],S=(d&15)<<2,b=2;break;case 2:h[m++]=v[S|d>>6],h[m++]=v[d&63],b=0;break}m>8191&&((a||(a=[])).push(String.fromCharCode.apply(String,h)),m=0)}return b&&(h[m++]=v[S],h[m++]=61,b===1&&(h[m++]=61)),a?(m&&a.push(String.fromCharCode.apply(String,h.slice(0,m))),a.join("")):String.fromCharCode.apply(String,h.slice(0,m))},"encode");var r="invalid encoding";f.decode=y(function(c,i,t){for(var a=t,h=0,m,b=0;b<c.length;){var S=c.charCodeAt(b++);if(S===61&&h>1)break;if((S=p[S])===void 0)throw Error(r);switch(h){case 0:m=S,h=1;break;case 1:i[t++]=m<<2|(S&48)>>4,m=S,h=2;break;case 2:i[t++]=(m&15)<<4|(S&60)>>2,m=S,h=3;break;case 3:i[t++]=(m&3)<<6|S,h=0;break}}if(h===1)throw Error(r);return t-a},"decode");var u=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,o=/[-_]/,e=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2}(?:==)?|[A-Za-z0-9_-]{3}=?)?$/;f.test=y(function(c){return u.test(c)||o.test(c)&&e.test(c)},"test")})(qe)),qe}g(ei,"requireBase64");var Be,Ut;function ti(){if(Ut)return Be;Ut=1;var w=Object.defineProperty,s=g((f,v)=>w(f,"name",{value:v,configurable:!0}),"r");Be=y;function y(){this._listeners={}}return g(y,"EventEmitter"),s(y,"EventEmitter"),y.prototype.on=s(function(f,v,p){return(this._listeners[f]||(this._listeners[f]=[])).push({fn:v,ctx:p||this}),this},"on"),y.prototype.off=s(function(f,v){if(f===void 0)this._listeners={};else if(v===void 0)this._listeners[f]=[];else for(var p=this._listeners[f],n=0;n<p.length;)p[n].fn===v?p.splice(n,1):++n;return this},"off"),y.prototype.emit=s(function(f){var v=this._listeners[f];if(v){for(var p=[],n=1;n<arguments.length;)p.push(arguments[n++]);for(n=0;n<v.length;)v[n].fn.apply(v[n++].ctx,p)}return this},"emit"),Be}g(ti,"requireEventemitter");var Fe,$t;function ri(){if($t)return Fe;$t=1;var w=Object.defineProperty,s=g((r,u)=>w(r,"name",{value:u,configurable:!0}),"F");Fe=y(y);function y(r){return typeof Float32Array<"u"?(function(){var u=new Float32Array([-0]),o=new Uint8Array(u.buffer),e=o[3]===128;function c(h,m,b){u[0]=h,m[b]=o[0],m[b+1]=o[1],m[b+2]=o[2],m[b+3]=o[3]}g(c,"E"),s(c,"writeFloat_f32_cpy");function i(h,m,b){u[0]=h,m[b]=o[3],m[b+1]=o[2],m[b+2]=o[1],m[b+3]=o[0]}g(i,"_"),s(i,"writeFloat_f32_rev"),r.writeFloatLE=e?c:i,r.writeFloatBE=e?i:c;function t(h,m){return o[0]=h[m],o[1]=h[m+1],o[2]=h[m+2],o[3]=h[m+3],u[0]}g(t,"d"),s(t,"readFloat_f32_cpy");function a(h,m){return o[3]=h[m],o[2]=h[m+1],o[1]=h[m+2],o[0]=h[m+3],u[0]}g(a,"c"),s(a,"readFloat_f32_rev"),r.readFloatLE=e?t:a,r.readFloatBE=e?a:t})():(function(){function u(e,c,i,t){var a=c<0?1:0;if(a&&(c=-c),c===0)e(1/c>0?0:2147483648,i,t);else if(isNaN(c))e(2143289344,i,t);else if(c>34028234663852886e22)e((a<<31|2139095040)>>>0,i,t);else if(c<11754943508222875e-54)e((a<<31|Math.round(c/1401298464324817e-60))>>>0,i,t);else{var h=Math.floor(Math.log(c)/Math.LN2),m=Math.round(c*Math.pow(2,-h)*8388608)&8388607;e((a<<31|h+127<<23|m)>>>0,i,t)}}g(u,"t"),s(u,"writeFloat_ieee754"),r.writeFloatLE=u.bind(null,f),r.writeFloatBE=u.bind(null,v);function o(e,c,i){var t=e(c,i),a=(t>>31)*2+1,h=t>>>23&255,m=t&8388607;return h===255?m?NaN:a*(1/0):h===0?a*1401298464324817e-60*m:a*Math.pow(2,h-150)*(m+8388608)}g(o,"n"),s(o,"readFloat_ieee754"),r.readFloatLE=o.bind(null,p),r.readFloatBE=o.bind(null,n)})(),typeof Float64Array<"u"?(function(){var u=new Float64Array([-0]),o=new Uint8Array(u.buffer),e=o[7]===128;function c(h,m,b){u[0]=h,m[b]=o[0],m[b+1]=o[1],m[b+2]=o[2],m[b+3]=o[3],m[b+4]=o[4],m[b+5]=o[5],m[b+6]=o[6],m[b+7]=o[7]}g(c,"E"),s(c,"writeDouble_f64_cpy");function i(h,m,b){u[0]=h,m[b]=o[7],m[b+1]=o[6],m[b+2]=o[5],m[b+3]=o[4],m[b+4]=o[3],m[b+5]=o[2],m[b+6]=o[1],m[b+7]=o[0]}g(i,"_"),s(i,"writeDouble_f64_rev"),r.writeDoubleLE=e?c:i,r.writeDoubleBE=e?i:c;function t(h,m){return o[0]=h[m],o[1]=h[m+1],o[2]=h[m+2],o[3]=h[m+3],o[4]=h[m+4],o[5]=h[m+5],o[6]=h[m+6],o[7]=h[m+7],u[0]}g(t,"d"),s(t,"readDouble_f64_cpy");function a(h,m){return o[7]=h[m],o[6]=h[m+1],o[5]=h[m+2],o[4]=h[m+3],o[3]=h[m+4],o[2]=h[m+5],o[1]=h[m+6],o[0]=h[m+7],u[0]}g(a,"c"),s(a,"readDouble_f64_rev"),r.readDoubleLE=e?t:a,r.readDoubleBE=e?a:t})():(function(){function u(e,c,i,t,a,h){var m=t<0?1:0;if(m&&(t=-t),t===0)e(0,a,h+c),e(1/t>0?0:2147483648,a,h+i);else if(isNaN(t))e(0,a,h+c),e(2146959360,a,h+i);else if(t>17976931348623157e292)e(0,a,h+c),e((m<<31|2146435072)>>>0,a,h+i);else{var b;if(t<22250738585072014e-324)b=t/5e-324,e(b>>>0,a,h+c),e((m<<31|b/4294967296)>>>0,a,h+i);else{var S=Math.floor(Math.log(t)/Math.LN2);S===1024&&(S=1023),b=t*Math.pow(2,-S),e(b*4503599627370496>>>0,a,h+c),e((m<<31|S+1023<<20|b*1048576&1048575)>>>0,a,h+i)}}}g(u,"t"),s(u,"writeDouble_ieee754"),r.writeDoubleLE=u.bind(null,f,0,4),r.writeDoubleBE=u.bind(null,v,4,0);function o(e,c,i,t,a){var h=e(t,a+c),m=e(t,a+i),b=(m>>31)*2+1,S=m>>>20&2047,d=4294967296*(m&1048575)+h;return S===2047?d?NaN:b*(1/0):S===0?b*5e-324*d:b*Math.pow(2,S-1075)*(d+4503599627370496)}g(o,"n"),s(o,"readDouble_ieee754"),r.readDoubleLE=o.bind(null,p,0,4),r.readDoubleBE=o.bind(null,n,4,0)})(),r}g(y,"factory"),s(y,"factory");function f(r,u,o){u[o]=r&255,u[o+1]=r>>>8&255,u[o+2]=r>>>16&255,u[o+3]=r>>>24}g(f,"writeUintLE"),s(f,"writeUintLE");function v(r,u,o){u[o]=r>>>24,u[o+1]=r>>>16&255,u[o+2]=r>>>8&255,u[o+3]=r&255}g(v,"writeUintBE"),s(v,"writeUintBE");function p(r,u){return(r[u]|r[u+1]<<8|r[u+2]<<16|r[u+3]<<24)>>>0}g(p,"readUintLE"),s(p,"readUintLE");function n(r,u){return(r[u]<<24|r[u+1]<<16|r[u+2]<<8|r[u+3])>>>0}return g(n,"readUintBE"),s(n,"readUintBE"),Fe}g(ri,"requireFloat");function zt(w){throw new Error('Could not dynamically require "'+w+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}g(zt,"commonjsRequire");var Ie,Zt;function ii(){if(Zt)return Ie;Zt=1;var w=Object.defineProperty,s=g((f,v)=>w(f,"name",{value:v,configurable:!0}),"t");Ie=y;function y(f){try{if(typeof zt!="function")return null;var v=zt(f);return v&&(v.length||Object.keys(v).length)?v:null}catch{return null}}return g(y,"inquire"),s(y,"inquire"),Ie}g(ii,"requireInquire");var Le={},Wt;function ni(){return Wt||(Wt=1,(function(w){var s=Object.defineProperty,y=g((n,r)=>s(n,"name",{value:r,configurable:!0}),"l"),f=w,v="�";f.length=y(function(n){for(var r=0,u=0,o=0;o<n.length;++o)u=n.charCodeAt(o),u<128?r+=1:u<2048?r+=2:(u&64512)===55296&&(n.charCodeAt(o+1)&64512)===56320?(++o,r+=4):r+=3;return r},"utf8_length");function p(n,r,u,o){for(var e=r;e<u;){var c=n[e++];if(c<=127)o+=String.fromCharCode(c);else if(c>=192&&c<224){var i=(c&31)<<6|n[e++]&63;o+=i>=128?String.fromCharCode(i):v}else if(c>=224&&c<240){var t=(c&15)<<12|(n[e++]&63)<<6|n[e++]&63;o+=t>=2048?String.fromCharCode(t):v}else if(c>=240){var a=(c&7)<<18|(n[e++]&63)<<12|(n[e++]&63)<<6|n[e++]&63;a<65536||a>1114111?o+=v:(a-=65536,o+=String.fromCharCode(55296+(a>>10)),o+=String.fromCharCode(56320+(a&1023)))}}return o}g(p,"utf8_read_js"),y(p,"utf8_read_js"),f.read=y(function(n,r,u){if(u-r<1)return"";for(var o="",e=r,c,i,t,a,h,m,b,S;e+7<u;e+=8){if(c=n[e],i=n[e+1],t=n[e+2],a=n[e+3],h=n[e+4],m=n[e+5],b=n[e+6],S=n[e+7],(c|i|t|a|h|m|b|S)&128)return p(n,e,u,o);o+=String.fromCharCode(c,i,t,a,h,m,b,S)}for(;e<u;++e){if(c=n[e],c&128)return p(n,e,u,o);o+=String.fromCharCode(c)}return o},"utf8_read_ascii"),f.write=y(function(n,r,u){for(var o=u,e,c,i=0;i<n.length;++i)e=n.charCodeAt(i),e<128?r[u++]=e:e<2048?(r[u++]=e>>6|192,r[u++]=e&63|128):(e&64512)===55296&&((c=n.charCodeAt(i+1))&64512)===56320?(e=65536+((e&1023)<<10)+(c&1023),++i,r[u++]=e>>18|240,r[u++]=e>>12&63|128,r[u++]=e>>6&63|128,r[u++]=e&63|128):(r[u++]=e>>12|224,r[u++]=e>>6&63|128,r[u++]=e&63|128);return u-o},"utf8_write")})(Le)),Le}g(ni,"requireUtf8");var De,Ht;function oi(){if(Ht)return De;Ht=1;var w=Object.defineProperty,s=g((f,v)=>w(f,"name",{value:v,configurable:!0}),"l");De=y;function y(f,v,p){var n=p||8192,r=n>>>1,u=null,o=n;return s(function(e){if(e<1||e>r)return f(e);o+e>n&&(u=f(n),o=0);var c=v.call(u,o,o+=e);return o&7&&(o=(o|7)+1),c},"pool_alloc")}return g(y,"pool"),s(y,"pool"),De}g(oi,"requirePool");var Ce,Kt;function si(){if(Kt)return Ce;Kt=1;var w=Object.defineProperty,s=g((r,u)=>w(r,"name",{value:u,configurable:!0}),"r");Ce=f;var y=fe();function f(r,u){this.lo=r>>>0,this.hi=u>>>0}g(f,"LongBits"),s(f,"LongBits");var v=f.zero=new f(0,0);v.toNumber=function(){return 0},v.zzEncode=v.zzDecode=function(){return this},v.length=function(){return 1};var p=f.zeroHash="\0\0\0\0\0\0\0\0";f.fromNumber=s(function(r){if(r===0)return v;var u=r<0;u&&(r=-r);var o=r>>>0,e=(r-o)/4294967296>>>0;return u&&(e=~e>>>0,o=~o>>>0,++o>4294967295&&(o=0,++e>4294967295&&(e=0))),new f(o,e)},"fromNumber"),f.from=s(function(r){if(typeof r=="number")return f.fromNumber(r);if(y.isString(r))if(y.Long)r=y.Long.fromString(r);else return f.fromNumber(parseInt(r,10));return r.low||r.high?new f(r.low>>>0,r.high>>>0):v},"from"),f.prototype.toNumber=s(function(r){if(!r&&this.hi>>>31){var u=~this.lo+1>>>0,o=~this.hi>>>0;return u||(o=o+1>>>0),-(u+o*4294967296)}return this.lo+this.hi*4294967296},"toNumber"),f.prototype.toLong=s(function(r){return y.Long?new y.Long(this.lo|0,this.hi|0,!!r):{low:this.lo|0,high:this.hi|0,unsigned:!!r}},"toLong");var n=String.prototype.charCodeAt;return f.fromHash=s(function(r){return r===p?v:new f((n.call(r,0)|n.call(r,1)<<8|n.call(r,2)<<16|n.call(r,3)<<24)>>>0,(n.call(r,4)|n.call(r,5)<<8|n.call(r,6)<<16|n.call(r,7)<<24)>>>0)},"fromHash"),f.prototype.toHash=s(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"),f.prototype.zzEncode=s(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"),f.prototype.zzDecode=s(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"),f.prototype.length=s(function(){var r=this.lo,u=(this.lo>>>28|this.hi<<4)>>>0,o=this.hi>>>24;return o===0?u===0?r<16384?r<128?1:2:r<2097152?3:4:u<16384?u<128?5:6:u<2097152?7:8:o<128?9:10},"length"),Ce}g(si,"requireLongbits");var we={exports:{}},ai=we.exports,Gt;function ui(){return Gt||(Gt=1,(function(w,s){var y=Object.defineProperty,f=g((v,p)=>y(v,"name",{value:p,configurable:!0}),"h");(function(v,p){function n(r){return r.default||r}g(n,"r"),f(n,"preferDefault"),p(s),w.exports=n(s)})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:ai,function(v){Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;/**
4
+ * @license
5
+ * Copyright 2009 The Closure Library Authors
6
+ * Copyright 2020 Daniel Wirtz / The long.js Authors.
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * SPDX-License-Identifier: Apache-2.0
21
+ */var p=null;try{p=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function n(l,O,x){this.low=l|0,this.high=O|0,this.unsigned=!!x}g(n,"r"),f(n,"Long"),Object.defineProperty(n.prototype,"__isLong__",{value:!0});function r(l){return(l&&l.__isLong__)===!0}g(r,"g"),f(r,"isLong");function u(l){var O=Math.clz32(l&-l);return l?31-O:O}g(u,"R"),f(u,"ctz32"),n.isLong=r;var o={},e={};function c(l,O){var x,q,C;return O?(l>>>=0,(C=0<=l&&l<256)&&(q=e[l],q)?q:(x=t(l,0,!0),C&&(e[l]=x),x)):(l|=0,(C=-128<=l&&l<128)&&(q=o[l],q)?q:(x=t(l,l<0?-1:0,!1),C&&(o[l]=x),x))}g(c,"T"),f(c,"fromInt"),n.fromInt=c;function i(l,O){if(isNaN(l))return O?L:I;if(O){if(l<0)return L;if(l>=_)return B}else{if(l<=-R)return z;if(l+1>=R)return $}return l<0?i(-l,O).neg():t(l%d|0,l/d|0,O)}g(i,"I"),f(i,"fromNumber"),n.fromNumber=i;function t(l,O,x){return new n(l,O,x)}g(t,"f"),f(t,"fromBits"),n.fromBits=t;var a=Math.pow;function h(l,O,x){if(l.length===0)throw Error("empty string");if(typeof O=="number"?(x=O,O=!1):O=!!O,l==="NaN"||l==="Infinity"||l==="+Infinity"||l==="-Infinity")return O?L:I;if(x=x||10,x<2||36<x)throw RangeError("radix");var q;if((q=l.indexOf("-"))>0)throw Error("interior hyphen");if(q===0)return h(l.substring(1),O,x).neg();for(var C=i(a(x,8)),M=I,D=0;D<l.length;D+=8){var V=Math.min(8,l.length-D),U=parseInt(l.substring(D,D+V),x);if(V<8){var Z=i(a(x,V));M=M.mul(Z).add(i(U))}else M=M.mul(C),M=M.add(i(U))}return M.unsigned=O,M}g(h,"M"),f(h,"fromString"),n.fromString=h;function m(l,O){return typeof l=="number"?i(l,O):typeof l=="string"?h(l,O):t(l.low,l.high,typeof O=="boolean"?O:l.unsigned)}g(m,"v"),f(m,"fromValue"),n.fromValue=m;var b=65536,S=1<<24,d=b*b,_=d*d,R=_/2,P=c(S),I=c(0);n.ZERO=I;var L=c(0,!0);n.UZERO=L;var W=c(1);n.ONE=W;var te=c(1,!0);n.UONE=te;var J=c(-1);n.NEG_ONE=J;var $=t(-1,2147483647,!1);n.MAX_VALUE=$;var B=t(-1,-1,!0);n.MAX_UNSIGNED_VALUE=B;var z=t(0,-2147483648,!1);n.MIN_VALUE=z;var j=n.prototype;j.toInt=f(function(){return this.unsigned?this.low>>>0:this.low},"toInt"),j.toNumber=f(function(){return this.unsigned?(this.high>>>0)*d+(this.low>>>0):this.high*d+(this.low>>>0)},"toNumber"),j.toString=f(function(l){if(l=l||10,l<2||36<l)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative())if(this.eq(z)){var O=i(l),x=this.div(O),q=x.mul(O).sub(this);return x.toString(l)+q.toInt().toString(l)}else return"-"+this.neg().toString(l);for(var C=i(a(l,6),this.unsigned),M=this,D="";;){var V=M.div(C),U=M.sub(V.mul(C)).toInt()>>>0,Z=U.toString(l);if(M=V,M.isZero())return Z+D;for(;Z.length<6;)Z="0"+Z;D=""+Z+D}},"toString"),j.getHighBits=f(function(){return this.high},"getHighBits"),j.getHighBitsUnsigned=f(function(){return this.high>>>0},"getHighBitsUnsigned"),j.getLowBits=f(function(){return this.low},"getLowBits"),j.getLowBitsUnsigned=f(function(){return this.low>>>0},"getLowBitsUnsigned"),j.getNumBitsAbs=f(function(){if(this.isNegative())return this.eq(z)?64:this.neg().getNumBitsAbs();for(var l=this.high!=0?this.high:this.low,O=31;O>0&&(l&1<<O)==0;O--);return this.high!=0?O+33:O+1},"getNumBitsAbs"),j.isSafeInteger=f(function(){var l=this.high>>21;return l?this.unsigned?!1:l===-1&&!(this.low===0&&this.high===-2097152):!0},"isSafeInteger"),j.isZero=f(function(){return this.high===0&&this.low===0},"isZero"),j.eqz=j.isZero,j.isNegative=f(function(){return!this.unsigned&&this.high<0},"isNegative"),j.isPositive=f(function(){return this.unsigned||this.high>=0},"isPositive"),j.isOdd=f(function(){return(this.low&1)===1},"isOdd"),j.isEven=f(function(){return(this.low&1)===0},"isEven"),j.equals=f(function(l){return r(l)||(l=m(l)),this.unsigned!==l.unsigned&&this.high>>>31===1&&l.high>>>31===1?!1:this.high===l.high&&this.low===l.low},"equals"),j.eq=j.equals,j.notEquals=f(function(l){return!this.eq(l)},"notEquals"),j.neq=j.notEquals,j.ne=j.notEquals,j.lessThan=f(function(l){return this.comp(l)<0},"lessThan"),j.lt=j.lessThan,j.lessThanOrEqual=f(function(l){return this.comp(l)<=0},"lessThanOrEqual"),j.lte=j.lessThanOrEqual,j.le=j.lessThanOrEqual,j.greaterThan=f(function(l){return this.comp(l)>0},"greaterThan"),j.gt=j.greaterThan,j.greaterThanOrEqual=f(function(l){return this.comp(l)>=0},"greaterThanOrEqual"),j.gte=j.greaterThanOrEqual,j.ge=j.greaterThanOrEqual,j.compare=f(function(l){if(r(l)||(l=m(l)),this.eq(l))return 0;var O=this.isNegative(),x=l.isNegative();return O&&!x?-1:!O&&x?1:this.unsigned?l.high>>>0>this.high>>>0||l.high===this.high&&l.low>>>0>this.low>>>0?-1:1:this.sub(l).isNegative()?-1:1},"compare"),j.comp=j.compare,j.negate=f(function(){return!this.unsigned&&this.eq(z)?z:this.not().add(W)},"negate"),j.neg=j.negate,j.add=f(function(l){r(l)||(l=m(l));var O=this.high>>>16,x=this.high&65535,q=this.low>>>16,C=this.low&65535,M=l.high>>>16,D=l.high&65535,V=l.low>>>16,U=l.low&65535,Z=0,X=0,Y=0,F=0;return F+=C+U,Y+=F>>>16,F&=65535,Y+=q+V,X+=Y>>>16,Y&=65535,X+=x+D,Z+=X>>>16,X&=65535,Z+=O+M,Z&=65535,t(Y<<16|F,Z<<16|X,this.unsigned)},"add"),j.subtract=f(function(l){return r(l)||(l=m(l)),this.add(l.neg())},"subtract"),j.sub=j.subtract,j.multiply=f(function(l){if(this.isZero())return this;if(r(l)||(l=m(l)),p){var O=p.mul(this.low,this.high,l.low,l.high);return t(O,p.get_high(),this.unsigned)}if(l.isZero())return this.unsigned?L:I;if(this.eq(z))return l.isOdd()?z:I;if(l.eq(z))return this.isOdd()?z:I;if(this.isNegative())return l.isNegative()?this.neg().mul(l.neg()):this.neg().mul(l).neg();if(l.isNegative())return this.mul(l.neg()).neg();if(this.lt(P)&&l.lt(P))return i(this.toNumber()*l.toNumber(),this.unsigned);var x=this.high>>>16,q=this.high&65535,C=this.low>>>16,M=this.low&65535,D=l.high>>>16,V=l.high&65535,U=l.low>>>16,Z=l.low&65535,X=0,Y=0,F=0,oe=0;return oe+=M*Z,F+=oe>>>16,oe&=65535,F+=C*Z,Y+=F>>>16,F&=65535,F+=M*U,Y+=F>>>16,F&=65535,Y+=q*Z,X+=Y>>>16,Y&=65535,Y+=C*U,X+=Y>>>16,Y&=65535,Y+=M*V,X+=Y>>>16,Y&=65535,X+=x*Z+q*U+C*V+M*D,X&=65535,t(F<<16|oe,X<<16|Y,this.unsigned)},"multiply"),j.mul=j.multiply,j.divide=f(function(l){if(r(l)||(l=m(l)),l.isZero())throw Error("division by zero");if(p){if(!this.unsigned&&this.high===-2147483648&&l.low===-1&&l.high===-1)return this;var O=(this.unsigned?p.div_u:p.div_s)(this.low,this.high,l.low,l.high);return t(O,p.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?L:I;var x,q,C;if(this.unsigned){if(l.unsigned||(l=l.toUnsigned()),l.gt(this))return L;if(l.gt(this.shru(1)))return te;C=L}else{if(this.eq(z)){if(l.eq(W)||l.eq(J))return z;if(l.eq(z))return W;var M=this.shr(1);return x=M.div(l).shl(1),x.eq(I)?l.isNegative()?W:J:(q=this.sub(l.mul(x)),C=x.add(q.div(l)),C)}else if(l.eq(z))return this.unsigned?L:I;if(this.isNegative())return l.isNegative()?this.neg().div(l.neg()):this.neg().div(l).neg();if(l.isNegative())return this.div(l.neg()).neg();C=I}for(q=this;q.gte(l);){x=Math.max(1,Math.floor(q.toNumber()/l.toNumber()));for(var D=Math.ceil(Math.log(x)/Math.LN2),V=D<=48?1:a(2,D-48),U=i(x),Z=U.mul(l);Z.isNegative()||Z.gt(q);)x-=V,U=i(x,this.unsigned),Z=U.mul(l);U.isZero()&&(U=W),C=C.add(U),q=q.sub(Z)}return C},"divide"),j.div=j.divide,j.modulo=f(function(l){if(r(l)||(l=m(l)),p){var O=(this.unsigned?p.rem_u:p.rem_s)(this.low,this.high,l.low,l.high);return t(O,p.get_high(),this.unsigned)}return this.sub(this.div(l).mul(l))},"modulo"),j.mod=j.modulo,j.rem=j.modulo,j.not=f(function(){return t(~this.low,~this.high,this.unsigned)},"not"),j.countLeadingZeros=f(function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},"countLeadingZeros"),j.clz=j.countLeadingZeros,j.countTrailingZeros=f(function(){return this.low?u(this.low):u(this.high)+32},"countTrailingZeros"),j.ctz=j.countTrailingZeros,j.and=f(function(l){return r(l)||(l=m(l)),t(this.low&l.low,this.high&l.high,this.unsigned)},"and"),j.or=f(function(l){return r(l)||(l=m(l)),t(this.low|l.low,this.high|l.high,this.unsigned)},"or"),j.xor=f(function(l){return r(l)||(l=m(l)),t(this.low^l.low,this.high^l.high,this.unsigned)},"xor"),j.shiftLeft=f(function(l){return r(l)&&(l=l.toInt()),(l&=63)===0?this:l<32?t(this.low<<l,this.high<<l|this.low>>>32-l,this.unsigned):t(0,this.low<<l-32,this.unsigned)},"shiftLeft"),j.shl=j.shiftLeft,j.shiftRight=f(function(l){return r(l)&&(l=l.toInt()),(l&=63)===0?this:l<32?t(this.low>>>l|this.high<<32-l,this.high>>l,this.unsigned):t(this.high>>l-32,this.high>=0?0:-1,this.unsigned)},"shiftRight"),j.shr=j.shiftRight,j.shiftRightUnsigned=f(function(l){return r(l)&&(l=l.toInt()),(l&=63)===0?this:l<32?t(this.low>>>l|this.high<<32-l,this.high>>>l,this.unsigned):l===32?t(this.high,0,this.unsigned):t(this.high>>>l-32,0,this.unsigned)},"shiftRightUnsigned"),j.shru=j.shiftRightUnsigned,j.shr_u=j.shiftRightUnsigned,j.rotateLeft=f(function(l){var O;return r(l)&&(l=l.toInt()),(l&=63)===0?this:l===32?t(this.high,this.low,this.unsigned):l<32?(O=32-l,t(this.low<<l|this.high>>>O,this.high<<l|this.low>>>O,this.unsigned)):(l-=32,O=32-l,t(this.high<<l|this.low>>>O,this.low<<l|this.high>>>O,this.unsigned))},"rotateLeft"),j.rotl=j.rotateLeft,j.rotateRight=f(function(l){var O;return r(l)&&(l=l.toInt()),(l&=63)===0?this:l===32?t(this.high,this.low,this.unsigned):l<32?(O=32-l,t(this.high<<O|this.low>>>l,this.low<<O|this.high>>>l,this.unsigned)):(l-=32,O=32-l,t(this.low<<O|this.high>>>l,this.high<<O|this.low>>>l,this.unsigned))},"rotateRight"),j.rotr=j.rotateRight,j.toSigned=f(function(){return this.unsigned?t(this.low,this.high,!1):this},"toSigned"),j.toUnsigned=f(function(){return this.unsigned?this:t(this.low,this.high,!0)},"toUnsigned"),j.toBytes=f(function(l){return l?this.toBytesLE():this.toBytesBE()},"toBytes"),j.toBytesLE=f(function(){var l=this.high,O=this.low;return[O&255,O>>>8&255,O>>>16&255,O>>>24,l&255,l>>>8&255,l>>>16&255,l>>>24]},"toBytesLE"),j.toBytesBE=f(function(){var l=this.high,O=this.low;return[l>>>24,l>>>16&255,l>>>8&255,l&255,O>>>24,O>>>16&255,O>>>8&255,O&255]},"toBytesBE"),n.fromBytes=f(function(l,O,x){return x?n.fromBytesLE(l,O):n.fromBytesBE(l,O)},"fromBytes"),n.fromBytesLE=f(function(l,O){return new n(l[0]|l[1]<<8|l[2]<<16|l[3]<<24,l[4]|l[5]<<8|l[6]<<16|l[7]<<24,O)},"fromBytesLE"),n.fromBytesBE=f(function(l,O){return new n(l[4]<<24|l[5]<<16|l[6]<<8|l[7],l[0]<<24|l[1]<<16|l[2]<<8|l[3],O)},"fromBytesBE"),typeof BigInt=="function"&&(n.fromBigInt=f(function(l,O){var x=Number(BigInt.asIntN(32,l)),q=Number(BigInt.asIntN(32,l>>BigInt(32)));return t(x,q,O)},"fromBigInt"),n.fromValue=f(function(l,O){return typeof l=="bigint"?n.fromBigInt(l,O):m(l,O)},"fromValueWithBigInt"),j.toBigInt=f(function(){var l=BigInt(this.low>>>0),O=BigInt(this.unsigned?this.high>>>0:this.high);return O<<BigInt(32)|l},"toBigInt")),v.default=n})})(we,we.exports)),we.exports}g(ui,"requireUmd");var Xt;function fe(){return Xt||(Xt=1,(function(w){var s=Object.defineProperty,y=g((n,r)=>s(n,"name",{value:r,configurable:!0}),"o"),f=w;f.asPromise=Ir(),f.base64=ei(),f.EventEmitter=ti(),f.float=ri(),f.inquire=ii(),f.utf8=ni(),f.pool=oi(),f.LongBits=si(),f.isNode=!!(typeof de<"u"&&de&&de.process&&de.process.versions&&de.process.versions.node),f.global=f.isNode&&de||typeof window<"u"&&window||typeof self<"u"&&self||Re,f.emptyArray=Object.freeze?Object.freeze([]):[],f.emptyObject=Object.freeze?Object.freeze({}):{},f.isInteger=Number.isInteger||y(function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n},"isInteger"),f.isString=y(function(n){return typeof n=="string"||n instanceof String},"isString"),f.isObject=y(function(n){return n&&typeof n=="object"},"isObject"),f.isset=f.isSet=y(function(n,r){var u=n[r];return u!=null&&n.hasOwnProperty(r)?typeof u!="object"||(Array.isArray(u)?u.length:Object.keys(u).length)>0:!1},"isSet"),f.Buffer=(function(){try{var n=f.global.Buffer;return n.prototype.utf8Write?n:null}catch{return null}})(),f._Buffer_from=null,f._Buffer_allocUnsafe=null,f.newBuffer=y(function(n){return typeof n=="number"?f.Buffer?f._Buffer_allocUnsafe(n):new f.Array(n):f.Buffer?f._Buffer_from(n):typeof Uint8Array>"u"?n:new Uint8Array(n)},"newBuffer"),f.Array=typeof Uint8Array<"u"?Uint8Array:Array,f.Long=f.global.dcodeIO&&f.global.dcodeIO.Long||f.global.Long||(function(){try{var n=ui();return n&&n.isLong?n:null}catch{return null}})(),f.key2Re=/^(?:true|false|0|1)$/,f.key32Re=/^-?(?:0|[1-9][0-9]*)$/,f.key64Re=/^(?:[\x00-\xff]{8}|-?(?:0|[1-9][0-9]*))$/,f.longToHash=y(function(n){return n?f.LongBits.from(n).toHash():f.LongBits.zeroHash},"longToHash"),f.longFromHash=y(function(n,r){var u=f.LongBits.fromHash(n);return f.Long?f.Long.fromBits(u.lo,u.hi,r):u.toNumber(!!r)},"longFromHash"),f.longFromKey=y(function(n,r){return f.key64Re.test(n)&&!f.key32Re.test(n)?f.longFromHash(n,r):n},"longFromKey"),f.boolFromKey=y(function(n){return n==="true"||n==="1"},"boolFromKey");function v(n,r,u){for(var o=Object.keys(r),e=0;e<o.length;++e)(n[o[e]]===void 0||!u)&&o[e]!=="__proto__"&&(n[o[e]]=r[o[e]]);return n}g(v,"merge"),y(v,"merge"),f.merge=v,f.nestingLimit=32,f.recursionLimit=100,f.makeProp=y(function(n,r,u){Object.prototype.hasOwnProperty.call(n,r)||Object.defineProperty(n,r,{enumerable:u===void 0?!0:u,configurable:!0,writable:!0})},"makeProp"),f.lcFirst=y(function(n){return n.charAt(0).toLowerCase()+n.substring(1)},"lcFirst");function p(n){function r(u,o){if(!(this instanceof r))return new r(u,o);Object.defineProperty(this,"message",{get:y(function(){return u},"get")}),Error.captureStackTrace?Error.captureStackTrace(this,r):Object.defineProperty(this,"stack",{value:new Error().stack||""}),o&&v(this,o)}return g(r,"e"),y(r,"CustomError"),r.prototype=Object.create(Error.prototype,{constructor:{value:r,writable:!0,enumerable:!1,configurable:!0},name:{get:y(function(){return n},"get"),set:void 0,enumerable:!1,configurable:!0},toString:{value:y(function(){return this.name+": "+this.message},"value"),writable:!0,enumerable:!1,configurable:!0}}),r}g(p,"newError"),y(p,"newError"),f.newError=p,f.ProtocolError=p("ProtocolError"),f.oneOfGetter=y(function(n){for(var r={},u=0;u<n.length;++u)r[n[u]]=1;return function(){for(var o=Object.keys(this),e=o.length-1;e>-1;--e)if(r[o[e]]===1&&this[o[e]]!==void 0&&this[o[e]]!==null)return o[e]}},"getOneOf"),f.oneOfSetter=y(function(n){return function(r){for(var u=0;u<n.length;++u)n[u]!==r&&delete this[n[u]]}},"setOneOf"),f.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},f._configure=function(){var n=f.Buffer;if(!n){f._Buffer_from=f._Buffer_allocUnsafe=null;return}f._Buffer_from=n.from!==Uint8Array.from&&n.from||y(function(r,u){return new n(r,u)},"Buffer_from"),f._Buffer_allocUnsafe=n.allocUnsafe||y(function(r){return new n(r)},"Buffer_allocUnsafe")}})(Re)),Re}g(fe,"requireMinimal");var Me,Yt;function _t(){if(Yt)return Me;Yt=1;var w=Object.defineProperty,s=g((d,_)=>w(d,"name",{value:_,configurable:!0}),"n");Me=e;var y=fe(),f,v=y.LongBits,p=y.base64,n=y.utf8;function r(d,_,R){this.fn=d,this.len=_,this.next=void 0,this.val=R}g(r,"Op"),s(r,"Op");function u(){}g(u,"noop"),s(u,"noop");function o(d){this.head=d.head,this.tail=d.tail,this.len=d.len,this.next=d.states}g(o,"State"),s(o,"State");function e(){this.len=0,this.head=new r(u,0,0),this.tail=this.head,this.states=null}g(e,"Writer"),s(e,"Writer");var c=s(function(){return y.Buffer?s(function(){return(e.create=s(function(){return new f},"create_buffer"))()},"create_buffer_setup"):s(function(){return new e},"create_array")},"create");e.create=c(),e.alloc=s(function(d){return new y.Array(d)},"alloc"),y.Array!==Array&&(e.alloc=y.pool(e.alloc,y.Array.prototype.subarray)),e.prototype._push=s(function(d,_,R){return this.tail=this.tail.next=new r(d,_,R),this.len+=_,this},"push");function i(d,_,R){_[R]=d&255}g(i,"writeByte"),s(i,"writeByte");function t(d,_,R){for(var P=0;P<d.length;)_[R++]=d.charCodeAt(P++)}g(t,"writeStringAscii"),s(t,"writeStringAscii");function a(d,_,R){for(;d>127;)_[R++]=d&127|128,d>>>=7;_[R]=d}g(a,"writeVarint32"),s(a,"writeVarint32");function h(d,_){this.len=d,this.next=void 0,this.val=_}g(h,"VarintOp"),s(h,"VarintOp"),h.prototype=Object.create(r.prototype),h.prototype.fn=a,e.prototype.uint32=s(function(d){return this.len+=(this.tail=this.tail.next=new h((d=d>>>0)<128?1:d<16384?2:d<2097152?3:d<268435456?4:5,d)).len,this},"write_uint32"),e.prototype.int32=s(function(d){return d<0?this._push(m,10,v.fromNumber(d)):this.uint32(d)},"write_int32"),e.prototype.sint32=s(function(d){return this.uint32((d<<1^d>>31)>>>0)},"write_sint32");function m(d,_,R){for(;d.hi;)_[R++]=d.lo&127|128,d.lo=(d.lo>>>7|d.hi<<25)>>>0,d.hi>>>=7;for(;d.lo>127;)_[R++]=d.lo&127|128,d.lo=d.lo>>>7;_[R++]=d.lo}g(m,"writeVarint64"),s(m,"writeVarint64"),e.prototype.uint64=s(function(d){var _=v.from(d);return this._push(m,_.length(),_)},"write_uint64"),e.prototype.int64=e.prototype.uint64,e.prototype.sint64=s(function(d){var _=v.from(d).zzEncode();return this._push(m,_.length(),_)},"write_sint64"),e.prototype.bool=s(function(d){return this._push(i,1,d?1:0)},"write_bool");function b(d,_,R){_[R]=d&255,_[R+1]=d>>>8&255,_[R+2]=d>>>16&255,_[R+3]=d>>>24}g(b,"writeFixed32"),s(b,"writeFixed32"),e.prototype.fixed32=s(function(d){return this._push(b,4,d>>>0)},"write_fixed32"),e.prototype.sfixed32=e.prototype.fixed32,e.prototype.fixed64=s(function(d){var _=v.from(d);return this._push(b,4,_.lo)._push(b,4,_.hi)},"write_fixed64"),e.prototype.sfixed64=e.prototype.fixed64,e.prototype.float=s(function(d){return this._push(y.float.writeFloatLE,4,d)},"write_float"),e.prototype.double=s(function(d){return this._push(y.float.writeDoubleLE,8,d)},"write_double");var S=y.Array.prototype.set?s(function(d,_,R){_.set(d,R)},"writeBytes_set"):s(function(d,_,R){for(var P=0;P<d.length;++P)_[R+P]=d[P]},"writeBytes_for");return e.prototype.bytes=s(function(d){var _=d.length>>>0;if(!_)return this._push(i,1,0);if(y.isString(d)){var R=e.alloc(_=p.length(d));p.decode(d,R,0),d=R}return this.uint32(_)._push(S,_,d)},"write_bytes"),e.prototype.raw=s(function(d){var _=d.length>>>0;return _?this._push(S,_,d):this},"write_raw"),e.prototype.string=s(function(d){var _=n.length(d);return _?this.uint32(_)._push(_===d.length?t:n.write,_,d):this._push(i,1,0)},"write_string"),e.prototype.fork=s(function(){return this.states=new o(this),this.head=this.tail=new r(u,0,0),this.len=0,this},"fork"),e.prototype.reset=s(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(u,0,0),this.len=0),this},"reset"),e.prototype.ldelim=s(function(){var d=this.head,_=this.tail,R=this.len;return this.reset().uint32(R),R&&(this.tail.next=d.next,this.tail=_,this.len+=R),this},"ldelim"),e.prototype.finish=s(function(){return this.finishInto(this.constructor.alloc(this.len),0)},"finish"),e.prototype.finishInto=s(function(d,_){_===void 0&&(_=0);for(var R=this.head.next,P=_;R;)R.fn(R.val,d,P),P+=R.len,R=R.next;return d},"finishInto"),e._configure=function(d){f=d,e.create=c(),f._configure()},Me}g(_t,"requireWriter");var Je,Qt;function fi(){if(Qt)return Je;Qt=1;var w=Object.defineProperty,s=g((r,u)=>w(r,"name",{value:u,configurable:!0}),"i");Je=v;var y=_t();(v.prototype=Object.create(y.prototype)).constructor=v;var f=fe();function v(){y.call(this)}g(v,"BufferWriter"),s(v,"BufferWriter"),v._configure=function(){v.alloc=f._Buffer_allocUnsafe,v.writeBytesBuffer=f.Buffer&&f.Buffer.prototype instanceof Uint8Array&&f.Buffer.prototype.set.name==="set"?s(function(r,u,o){u.set(r,o)},"writeBytesBuffer_set"):s(function(r,u,o){if(r.copy)r.copy(u,o,0,r.length);else for(var e=0;e<r.length;)u[o++]=r[e++]},"writeBytesBuffer_copy")},v.prototype.bytes=s(function(r){f.isString(r)&&(r=f._Buffer_from(r,"base64"));var u=r.length>>>0;return this.uint32(u),u&&this._push(v.writeBytesBuffer,u,r),this},"write_bytes_buffer"),v.prototype.raw=s(function(r){var u=r.length>>>0;return u?this._push(v.writeBytesBuffer,u,r):this},"write_raw_buffer");function p(r,u,o){for(var e=0;e<r.length;)u[o++]=r.charCodeAt(e++)}g(p,"writeStringBufferAscii"),s(p,"writeStringBufferAscii");function n(r,u,o){r.length<40?f.utf8.write(r,u,o):u.utf8Write?u.utf8Write(r,o):u.write(r,o)}return g(n,"writeStringBuffer"),s(n,"writeStringBuffer"),v.prototype.string=s(function(r){var u=f.Buffer.byteLength(r);return this.uint32(u),u&&this._push(u===r.length&&u<40?p:n,u,r),this},"write_string_buffer"),v._configure(),Je}g(fi,"requireWriter_buffer");var Ve,er;function wt(){if(er)return Ve;er=1;var w=Object.defineProperty,s=g((t,a)=>w(t,"name",{value:a,configurable:!0}),"o");Ve=r;var y=fe(),f,v=y.LongBits,p=y.utf8;function n(t,a){return RangeError("index out of range: "+t.pos+" + "+(a||1)+" > "+t.len)}g(n,"indexOutOfRange"),s(n,"indexOutOfRange");function r(t){this.buf=t,this.pos=0,this.len=t.length}g(r,"Reader"),s(r,"Reader");var u=typeof Uint8Array<"u"?s(function(t){if(t instanceof Uint8Array||Array.isArray(t))return new r(t);throw Error("illegal buffer")},"create_typed_array"):s(function(t){if(Array.isArray(t))return new r(t);throw Error("illegal buffer")},"create_array"),o=s(function(){return y.Buffer?s(function(t){return(r.create=s(function(a){return y.Buffer.isBuffer(a)?new f(a):u(a)},"create_buffer"))(t)},"create_buffer_setup"):u},"create");r.create=o(),r.prototype._slice=y.Array.prototype.subarray||y.Array.prototype.slice,r.prototype.raw=s(function(t,a){return Array.isArray(this.buf)?this.buf.slice(t,a):t===a?new this.buf.constructor(0):this._slice.call(this.buf,t,a)},"read_raw"),r.prototype.uint32=s(function(){var t=this.buf,a=this.pos,h=(t[a]&127)>>>0;if(t[a++]<128)return this.pos=a,h;if(h=(h|(t[a]&127)<<7)>>>0,t[a++]<128)return this.pos=a,h;if(h=(h|(t[a]&127)<<14)>>>0,t[a++]<128)return this.pos=a,h;if(h=(h|(t[a]&127)<<21)>>>0,t[a++]<128)return this.pos=a,h;if(h=(h|(t[a]&15)<<28)>>>0,t[a++]<128)return this.pos=a,h;for(var m=0;m<5;++m){if(a>=this.len)throw this.pos=a,n(this);if(t[a++]<128)return this.pos=a,h}throw this.pos=a,Error("invalid varint encoding")},"read_uint32"),r.prototype.tag=s(function(){var t=this.buf,a=this.pos,h=(t[a]&127)>>>0;if(t[a++]<128)return this.pos=a,h;if(h=(h|(t[a]&127)<<7)>>>0,t[a++]<128)return this.pos=a,h;if(h=(h|(t[a]&127)<<14)>>>0,t[a++]<128)return this.pos=a,h;if(h=(h|(t[a]&127)<<21)>>>0,t[a++]<128)return this.pos=a,h;if(h=(h|(t[a]&15)<<28)>>>0,t[a]<128&&(t[a]&112)===0)return this.pos=a+1,h;throw this.pos=a+1,Error("invalid tag encoding")},"read_tag"),r.prototype.int32=s(function(){return this.uint32()|0},"read_int32"),r.prototype.sint32=s(function(){var t=this.uint32();return t>>>1^-(t&1)|0},"read_sint32");function e(){var t=new v(0,0),a=0;if(this.len-this.pos>4){for(;a<4;++a)if(t.lo=(t.lo|(this.buf[this.pos]&127)<<a*7)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(this.buf[this.pos]&127)<<28)>>>0,t.hi=(t.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return t;a=0}else{for(;a<3;++a){if(this.pos>=this.len)throw n(this);if(t.lo=(t.lo|(this.buf[this.pos]&127)<<a*7)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(this.buf[this.pos++]&127)<<a*7)>>>0,t}if(this.len-this.pos>4){for(;a<5;++a)if(t.hi=(t.hi|(this.buf[this.pos]&127)<<a*7+3)>>>0,this.buf[this.pos++]<128)return t}else for(;a<5;++a){if(this.pos>=this.len)throw n(this);if(t.hi=(t.hi|(this.buf[this.pos]&127)<<a*7+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}g(e,"readLongVarint"),s(e,"readLongVarint"),r.prototype.bool=s(function(){for(var t=!1,a,h=0;h<10;++h){if(this.pos>=this.len)throw n(this);if(a=this.buf[this.pos++],a&127&&(t=!0),a<128)return t}throw Error("invalid varint encoding")},"read_bool");function c(t,a){return(t[a-4]|t[a-3]<<8|t[a-2]<<16|t[a-1]<<24)>>>0}g(c,"readFixed32_end"),s(c,"readFixed32_end"),r.prototype.fixed32=s(function(){if(this.pos+4>this.len)throw n(this,4);return c(this.buf,this.pos+=4)},"read_fixed32"),r.prototype.sfixed32=s(function(){if(this.pos+4>this.len)throw n(this,4);return c(this.buf,this.pos+=4)|0},"read_sfixed32");function i(){if(this.pos+8>this.len)throw n(this,8);return new v(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}return g(i,"readFixed64"),s(i,"readFixed64"),r.prototype.float=s(function(){if(this.pos+4>this.len)throw n(this,4);var t=y.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},"read_float"),r.prototype.double=s(function(){if(this.pos+8>this.len)throw n(this,4);var t=y.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},"read_double"),r.prototype.bytes=s(function(){var t=this.uint32(),a=this.pos,h=this.pos+t;if(h>this.len)throw n(this,t);return this.pos=h,this.raw(a,h)},"read_bytes"),r.prototype.string=s(function(){var t=this.uint32(),a=this.pos,h=this.pos+t;if(h>this.len)throw n(this,t);return this.pos=h,p.read(this.buf,a,h)},"read_string"),r.prototype.skip=s(function(t){if(typeof t=="number"){if(this.pos+t>this.len)throw n(this,t);this.pos+=t}else do if(this.pos>=this.len)throw n(this);while(this.buf[this.pos++]&128);return this},"skip"),r.recursionLimit=y.recursionLimit,r.prototype.skipType=function(t,a,h){if(a===void 0&&(a=0),a>r.recursionLimit)throw Error("max depth exceeded");if(h===0)throw Error("illegal tag: field number 0");switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;;){var m=this.tag(),b=m>>>3;if(t=m&7,!b)throw Error("illegal tag: field number 0");if(t===4){if(h!==void 0&&b!==h)throw Error("invalid end group tag");break}this.skipType(t,a+1,b)}break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},r._configure=function(t){f=t,r.create=o(),f._configure();var a=y.Long?"toLong":"toNumber";y.merge(r.prototype,{int64:s(function(){return e.call(this)[a](!1)},"read_int64"),uint64:s(function(){return e.call(this)[a](!0)},"read_uint64"),sint64:s(function(){return e.call(this).zzDecode()[a](!1)},"read_sint64"),fixed64:s(function(){return i.call(this)[a](!0)},"read_fixed64"),sfixed64:s(function(){return i.call(this)[a](!1)},"read_sfixed64")})},Ve}g(wt,"requireReader");var Ue,tr;function li(){if(tr)return Ue;tr=1;var w=Object.defineProperty,s=g((p,n)=>w(p,"name",{value:n,configurable:!0}),"o");Ue=v;var y=wt();(v.prototype=Object.create(y.prototype)).constructor=v;var f=fe();function v(p){y.call(this,p)}return g(v,"BufferReader"),s(v,"BufferReader"),v._configure=function(){f.Buffer&&(v.prototype._slice=f.Buffer.prototype.slice)},v.prototype.raw=s(function(p,n){return p===n?f.Buffer.alloc(0):this._slice.call(this.buf,p,n)},"read_raw_buffer"),v.prototype.string=s(function(){var p=this.uint32(),n=this.pos,r=this.pos+p;if(r>this.len)throw RangeError("index out of range: "+this.pos+" + "+p+" > "+this.len);return this.pos=r,this.buf.utf8Slice?this.buf.utf8Slice(n,r):this.buf.toString("utf-8",n,r)},"read_string_buffer"),v._configure(),Ue}g(li,"requireReader_buffer");var $e={},ze,rr;function hi(){if(rr)return ze;rr=1;var w=Object.defineProperty,s=g((v,p)=>w(v,"name",{value:p,configurable:!0}),"u");ze=f;var y=fe();(f.prototype=Object.create(y.EventEmitter.prototype)).constructor=f;function f(v,p,n){if(typeof v!="function")throw TypeError("rpcImpl must be a function");y.EventEmitter.call(this),this.rpcImpl=v,this.requestDelimited=!!p,this.responseDelimited=!!n}return g(f,"Service"),s(f,"Service"),f.prototype.rpcCall=s(g(function v(p,n,r,u,o){if(!u)throw TypeError("request must be specified");var e=this;if(!o)return y.asPromise(v,e,p,n,r,u);if(!e.rpcImpl){setTimeout(function(){o(Error("already ended"))},0);return}try{return e.rpcImpl(p,n[e.requestDelimited?"encodeDelimited":"encode"](u).finish(),s(function(c,i){if(c)return e.emit("error",c,p),o(c);if(i===null){e.end(!0);return}if(!(i instanceof r))try{i=r[e.responseDelimited?"decodeDelimited":"decode"](i)}catch(t){return e.emit("error",t,p),o(t)}return e.emit("data",i,p),o(null,i)},"rpcCallback"))}catch(c){e.emit("error",c,p),setTimeout(function(){o(c)},0);return}},"i"),"rpcCall"),f.prototype.end=s(function(v){return this.rpcImpl&&(v||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this},"end"),ze}g(hi,"requireService$1");var ir;function Lr(){return ir||(ir=1,(function(w){var s=w;s.Service=hi()})($e)),$e}g(Lr,"requireRpc");var Ze,nr;function Dr(){return nr||(nr=1,Ze={}),Ze}g(Dr,"requireRoots");var or;function ci(){return or||(or=1,(function(w){var s=Object.defineProperty,y=g((p,n)=>s(p,"name",{value:n,configurable:!0}),"r"),f=w;f.build="minimal",f.Writer=_t(),f.BufferWriter=fi(),f.Reader=wt(),f.BufferReader=li(),f.util=fe(),f.rpc=Lr(),f.roots=Dr(),f.configure=v;function v(){f.util._configure(),f.Writer._configure(f.BufferWriter),f.Reader._configure(f.BufferReader)}g(v,"configure"),y(v,"configure"),v()})(Pe)),Pe}g(ci,"requireIndexMinimal");var We={},He={exports:{}},Ke={},sr;function Cr(){return sr||(sr=1,(function(w){var s=w;s.numberRe=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,s.typeRefRe=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/,s.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)$/,s.unsafePropertyRe=/^(?:__proto__|prototype|constructor)$/})(Ke)),Ke}g(Cr,"requirePatterns");var Ge,ar;function pi(){if(ar)return Ge;ar=1;var w=Object.defineProperty,s=g((n,r)=>w(n,"name",{value:r,configurable:!0}),"i");Ge=v;var y=Cr(),f=y.reservedRe;function v(n,r){typeof n=="string"&&(r=n,n=void 0);var u=[];function o(c){if(typeof c!="string"){var i=e();if(v.verbose&&console.log("codegen: "+i),i="return "+i,c){for(var t=Object.keys(c),a=new Array(t.length+1),h=new Array(t.length),m=0;m<t.length;)a[m]=t[m],h[m]=c[t[m++]];return a[m]=i,Function.apply(null,a).apply(null,h)}return Function(i)()}for(var b=new Array(arguments.length-1),S=0;S<b.length;)b[S]=arguments[++S];if(S=0,c=c.replace(/%([%dfijs])/g,s(function(d,_){var R=b[S++];switch(_){case"d":case"f":return String(Number(R));case"i":return String(Math.floor(R));case"j":return JSON.stringify(R);case"s":return String(R)}return"%"},"replace")),S!==b.length)throw Error("parameter count mismatch");return u.push(c),o}g(o,"v"),s(o,"Codegen");function e(c){return"function "+p(c||r)+"("+(n&&n.join(",")||"")+`){
22
+ `+u.join(`
3
23
  `)+`
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};
24
+ }`}return g(e,"f"),s(e,"toString"),o.toString=e,o}g(v,"codegen"),s(v,"codegen"),v.verbose=!1;function p(n){return!n||(n=String(n).replace(/[^\w$]/g,""),!n)?"":(/^\d/.test(n)&&(n="_"+n),f.test(n)?n+"_":n)}return g(p,"safeFunctionName"),s(p,"safeFunctionName"),Ge}g(pi,"requireCodegen");var Xe,ur;function Mr(){if(ur)return Xe;ur=1;var w=null;try{w=require("fs"),(!w||!w.readFile||!w.readFileSync)&&(w=null)}catch{}return Xe=w,Xe}g(Mr,"requireFs");var Ye,fr;function di(){if(fr)return Ye;fr=1;var w=Object.defineProperty,s=g((p,n)=>w(p,"name",{value:n,configurable:!0}),"i");Ye=v;var y=Ir(),f=Mr();function v(p,n,r){return typeof n=="function"?(r=n,n={}):n||(n={}),r?!n.xhr&&f&&f.readFile?f.readFile(p,s(function(u,o){return u&&typeof XMLHttpRequest<"u"?v.xhr(p,n,r):u?r(u):r(null,n.binary?o:o.toString("utf8"))},"fetchReadFileCallback")):v.xhr(p,n,r):y(v,this,p,n)}return g(v,"fetch"),s(v,"fetch"),v.xhr=s(function(p,n,r){var u=new XMLHttpRequest;u.onreadystatechange=s(function(){if(u.readyState===4){if(u.status!==0&&u.status!==200)return r(Error("status "+u.status));if(n.binary){var o=u.response;if(!o){o=[];for(var e=0;e<u.responseText.length;++e)o.push(u.responseText.charCodeAt(e)&255)}return r(null,typeof Uint8Array<"u"?new Uint8Array(o):o)}return r(null,u.responseText)}},"fetchOnReadyStateChange"),n.binary&&("overrideMimeType"in u&&u.overrideMimeType("text/plain; charset=x-user-defined"),u.responseType="arraybuffer"),u.open("GET",p),u.send()},"fetch_xhr"),Ye}g(di,"requireFetch");var Qe={},lr;function vi(){return lr||(lr=1,(function(w){var s=Object.defineProperty,y=g((n,r)=>s(n,"name",{value:r,configurable:!0}),"t"),f=w,v=f.isAbsolute=y(function(n){return/^(?:\/|\w+:|\\\\\w+)/.test(n)},"isAbsolute"),p=f.normalize=y(function(n){var r=n.substring(0,2),u="";r==="\\\\"&&(u=r,n=n.substring(2)),n=n.replace(/\\/g,"/").replace(/\/{2,}/g,"/");var o=n.split("/"),e=v(n),c="";e&&(c=o.shift()+"/");for(var i=0;i<o.length;)o[i]===".."?i>0&&o[i-1]!==".."?o.splice(--i,2):e?o.splice(i,1):++i:o[i]==="."?o.splice(i,1):++i;return u+c+o.join("/")},"normalize");f.resolve=y(function(n,r,u){return u||(r=p(r)),v(r)?r:(u||(n=p(n)),(n=n.replace(/(?:\/|^)[^/]+$/,"")).length?p(n+"/"+r):r)},"resolve")})(Qe)),Qe}g(vi,"requirePath");var et,hr;function Oe(){if(hr)return et;hr=1;var w=Object.defineProperty,s=g((i,t)=>w(i,"name",{value:t,configurable:!0}),"i");et=e;var y=pe();((e.prototype=Object.create(y.prototype)).constructor=e).className="Namespace";var f=ce(),v=ee(),p=ye(),n,r,u;e.fromJSON=s(function(i,t,a){if(a===void 0&&(a=0),a>v.recursionLimit)throw Error("max depth exceeded");return new e(i,t.options).addJSON(t.nested,a)},"fromJSON");function o(i,t){if(i&&i.length){for(var a={},h=0;h<i.length;++h)a[i[h].name]=i[h].toJSON(t);return a}}g(o,"arrayToJSON"),s(o,"arrayToJSON"),e.arrayToJSON=o,e.isReservedId=s(function(i,t){if(i){for(var a=0;a<i.length;++a)if(typeof i[a]!="string"&&i[a][0]<=t&&i[a][1]>t)return!0}return!1},"isReservedId"),e.isReservedName=s(function(i,t){if(i){for(var a=0;a<i.length;++a)if(i[a]===t)return!0}return!1},"isReservedName");function e(i,t){y.call(this,i,t),this.nested=void 0,this._nestedArray=null,this._lookupCache=Object.create(null),this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0}g(e,"Namespace"),s(e,"Namespace");function c(i){i._nestedArray=null,i._lookupCache=Object.create(null);for(var t=i;t=t.parent;)t._lookupCache=Object.create(null);return i}return g(c,"clearCache"),s(c,"clearCache"),Object.defineProperty(e.prototype,"nestedArray",{get:s(function(){return this._nestedArray||(this._nestedArray=v.toArray(this.nested))},"get")}),e.prototype.toJSON=s(function(i){return v.toObject(["options",this.options,"nested",o(this.nestedArray,i)])},"toJSON"),e.prototype.addJSON=s(function(i,t){if(t===void 0&&(t=0),t>v.recursionLimit)throw Error("max depth exceeded");var a=this;if(i)for(var h=Object.keys(i),m=0,b;m<h.length;++m)b=i[h[m]],a.add((b.fields!==void 0?n.fromJSON:b.values!==void 0?u.fromJSON:b.methods!==void 0?r.fromJSON:b.id!==void 0?f.fromJSON:e.fromJSON)(h[m],b,t+1));return this},"addJSON"),e.prototype.get=s(function(i){return this.nested&&Object.prototype.hasOwnProperty.call(this.nested,i)?this.nested[i]:null},"get"),e.prototype.getEnum=s(function(i){if(this.nested&&Object.prototype.hasOwnProperty.call(this.nested,i)&&this.nested[i]instanceof u)return this.nested[i].values;throw Error("no such enum: "+i)},"getEnum"),e.prototype.add=s(function(i){if(!(i instanceof f&&i.extend!==void 0||i instanceof n||i instanceof p||i instanceof u||i instanceof r||i instanceof e))throw TypeError("object must be a valid nested object");if(i.name==="__proto__")return this;if(!this.nested)this.nested={};else{var t=this.get(i.name);if(t)if(t instanceof e&&i instanceof e&&!(t instanceof n||t instanceof r)){for(var a=t.nestedArray,h=0;h<a.length;++h)i.add(a[h]);this.remove(t),this.nested||(this.nested={}),i.setOptions(t.options,!0)}else throw Error("duplicate name '"+i.name+"' in "+this)}this.nested[i.name]=i,this instanceof n||this instanceof r||this instanceof u||this instanceof f||i._edition||(i._edition=i._defaultEdition),this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0;for(var m=this;m=m.parent;)m._needsRecursiveFeatureResolution=!0,m._needsRecursiveResolve=!0;return i.onAdd(this),c(this)},"add"),e.prototype.remove=s(function(i){if(!(i instanceof y))throw TypeError("object must be a ReflectionObject");if(i.parent!==this)throw Error(i+" is not a member of "+this);return delete this.nested[i.name],Object.keys(this.nested).length||(this.nested=void 0),i.onRemove(this),c(this)},"remove"),e.prototype.define=s(function(i,t){if(v.isString(i))i=i.split(".");else if(!Array.isArray(i))throw TypeError("illegal path");if(i&&i.length&&i[0]==="")throw Error("path must be relative");if(i.length>v.recursionLimit)throw Error("max depth exceeded");for(var a=this;i.length>0;){var h=i.shift();if(a.nested&&a.nested[h]){if(a=a.nested[h],!(a instanceof e))throw Error("path conflicts with non-namespace objects")}else a.add(a=new e(h))}return t&&a.addJSON(t),a},"define"),e.prototype.resolveAll=s(function(){if(!this._needsRecursiveResolve)return this;this._needsRecursiveFeatureResolution&&this._resolveFeaturesRecursive(this._edition);var i=this.nestedArray,t=0;for(this.resolve();t<i.length;)i[t]instanceof e?i[t++].resolveAll():i[t++].resolve();return this._needsRecursiveResolve=!1,this},"resolveAll"),e.prototype._resolveFeaturesRecursive=s(function(i){return this._needsRecursiveFeatureResolution?(this._needsRecursiveFeatureResolution=!1,i=this._edition||i,y.prototype._resolveFeaturesRecursive.call(this,i),this.nestedArray.forEach(t=>{t._resolveFeaturesRecursive(i)}),this):this},"_resolveFeaturesRecursive"),e.prototype.lookup=s(function(i,t,a){if(typeof t=="boolean"?(a=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),v.isString(i)&&i.length){if(i===".")return this.root;i=i.split(".")}else if(!i.length)return this;var h=i.join(".");if(i[0]==="")return this.root.lookup(i.slice(1),t);var m=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+h];if(m&&(!t||t.indexOf(m.constructor)>-1)||(m=this._lookupImpl(i,h),m&&(!t||t.indexOf(m.constructor)>-1)))return m;if(a)return null;for(var b=this;b.parent;){if(m=b.parent._lookupImpl(i,h),m&&(!t||t.indexOf(m.constructor)>-1))return m;b=b.parent}return null},"lookup"),e.prototype._lookupImpl=s(function(i,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var a=this.get(i[0]),h=null;if(a)i.length===1?h=a:a instanceof e&&(i=i.slice(1),h=a._lookupImpl(i,i.join(".")));else for(var m=0;m<this.nestedArray.length;++m)if(this._nestedArray[m]instanceof e&&(a=this._nestedArray[m]._lookupImpl(i,t))){h=a;break}return this._lookupCache[t]=h,h},"lookup"),e.prototype.lookupType=s(function(i){var t=this.lookup(i,[n]);if(!t)throw Error("no such type: "+i);return t},"lookupType"),e.prototype.lookupEnum=s(function(i){var t=this.lookup(i,[u]);if(!t)throw Error("no such Enum '"+i+"' in "+this);return t},"lookupEnum"),e.prototype.lookupTypeOrEnum=s(function(i){var t=this.lookup(i,[n,u]);if(!t)throw Error("no such Type or Enum '"+i+"' in "+this);return t},"lookupTypeOrEnum"),e.prototype.lookupService=s(function(i){var t=this.lookup(i,[r]);if(!t)throw Error("no such Service '"+i+"' in "+this);return t},"lookupService"),e._configure=function(i,t,a){n=i,r=t,u=a},et}g(Oe,"requireNamespace");var tt,cr;function Ot(){if(cr)return tt;cr=1;var w=Object.defineProperty,s=g((n,r)=>w(n,"name",{value:r,configurable:!0}),"i");tt=p;var y=ce();((p.prototype=Object.create(y.prototype)).constructor=p).className="MapField";var f=he(),v=ee();function p(n,r,u,o,e,c){if(y.call(this,n,r,o,void 0,void 0,e,c),!v.isString(u))throw TypeError("keyType must be a string");this.keyType=u,this.resolvedKeyType=null,this.map=!0}return g(p,"MapField"),s(p,"MapField"),p.fromJSON=s(function(n,r){return new p(n,r.id,r.keyType,r.type,r.options,r.comment)},"fromJSON"),p.prototype.toJSON=s(function(n){var r=n?!!n.keepComments:!1;return v.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",r?this.comment:void 0])},"toJSON"),p.prototype.resolve=s(function(){if(this.resolved)return this;if(f.mapKey[this.keyType]===void 0)throw Error("invalid key type: "+this.keyType);return y.prototype.resolve.call(this)},"resolve"),p.d=s(function(n,r,u){return typeof u=="function"?u=v.decorateType(u).name:u&&typeof u=="object"&&(u=v.decorateEnum(u).name),s(function(o,e){v.decorateType(o.constructor).add(new p(e,n,r,u))},"mapFieldDecorator")},"decorateMapField"),tt}g(Ot,"requireMapfield");var rt,pr;function jt(){if(pr)return rt;pr=1;var w=Object.defineProperty,s=g((p,n)=>w(p,"name",{value:n,configurable:!0}),"i");rt=v;var y=pe();((v.prototype=Object.create(y.prototype)).constructor=v).className="Method";var f=ee();function v(p,n,r,u,o,e,c,i,t){if(f.isObject(o)?(c=o,o=e=void 0):f.isObject(e)&&(c=e,e=void 0),!(n===void 0||f.isString(n)))throw TypeError("type must be a string");if(!f.isString(r))throw TypeError("requestType must be a string");if(!f.isString(u))throw TypeError("responseType must be a string");y.call(this,p,c),this.type=n||"rpc",this.requestType=r,this.requestStream=o?!0:void 0,this.responseType=u,this.responseStream=e?!0:void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=i,this.parsedOptions=t}return g(v,"Method"),s(v,"Method"),v.fromJSON=s(function(p,n){return new v(p,n.type,n.requestType,n.responseType,n.requestStream,n.responseStream,n.options,n.comment,n.parsedOptions)},"fromJSON"),v.prototype.toJSON=s(function(p){var n=p?!!p.keepComments:!1;return f.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",n?this.comment:void 0,"parsedOptions",this.parsedOptions])},"toJSON"),v.prototype.resolve=s(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"),rt}g(jt,"requireMethod");var it,dr;function kt(){if(dr)return it;dr=1;var w=Object.defineProperty,s=g((o,e)=>w(o,"name",{value:e,configurable:!0}),"o");it=r;var y=Oe();((r.prototype=Object.create(y.prototype)).constructor=r).className="Service";var f=jt(),v=ee(),p=Lr(),n=v.patterns.reservedRe;function r(o,e){y.call(this,o,e),this.methods={},this._methodsArray=null}g(r,"Service"),s(r,"Service"),r.fromJSON=s(function(o,e,c){if(c===void 0&&(c=0),c>v.recursionLimit)throw Error("max depth exceeded");var i=new r(o,e.options);if(e.methods)for(var t=Object.keys(e.methods),a=0;a<t.length;++a)i.add(f.fromJSON(t[a],e.methods[t[a]]));return e.nested&&i.addJSON(e.nested,c),e.edition&&(i._edition=e.edition),i.comment=e.comment,i._defaultEdition="proto3",i},"fromJSON"),r.prototype.toJSON=s(function(o){var e=y.prototype.toJSON.call(this,o),c=o?!!o.keepComments:!1;return v.toObject(["edition",this._editionToJSON(),"options",e&&e.options||void 0,"methods",y.arrayToJSON(this.methodsArray,o)||{},"nested",e&&e.nested||void 0,"comment",c?this.comment:void 0])},"toJSON"),Object.defineProperty(r.prototype,"methodsArray",{get:s(function(){return this._methodsArray||(this._methodsArray=v.toArray(this.methods))},"get")});function u(o){return o._methodsArray=null,o}return g(u,"clearCache"),s(u,"clearCache"),r.prototype.get=s(function(o){return Object.prototype.hasOwnProperty.call(this.methods,o)?this.methods[o]:y.prototype.get.call(this,o)},"get"),r.prototype.resolveAll=s(function(){if(!this._needsRecursiveResolve)return this;y.prototype.resolve.call(this);for(var o=this.methodsArray,e=0;e<o.length;++e)o[e].resolve();return this},"resolveAll"),r.prototype._resolveFeaturesRecursive=s(function(o){return this._needsRecursiveFeatureResolution?(o=this._edition||o,y.prototype._resolveFeaturesRecursive.call(this,o),this.methodsArray.forEach(e=>{e._resolveFeaturesRecursive(o)}),this):this},"_resolveFeaturesRecursive"),r.prototype.add=s(function(o){if(this.get(o.name))throw Error("duplicate name '"+o.name+"' in "+this);return o instanceof f?o.name==="__proto__"?this:(this.methods[o.name]=o,o.parent=this,u(this)):y.prototype.add.call(this,o)},"add"),r.prototype.remove=s(function(o){if(o instanceof f){if(this.methods[o.name]!==o)throw Error(o+" is not a member of "+this);return delete this.methods[o.name],o.parent=null,u(this)}return y.prototype.remove.call(this,o)},"remove"),r.prototype.create=s(function(o,e,c){for(var i=new p.Service(o,e,c),t=0,a;t<this.methodsArray.length;++t){var h=v.lcFirst((a=this._methodsArray[t]).resolve().name).replace(/[^$\w_]/g,"");i[h]=v.codegen(["r","c"],n.test(h)?h+"_":h)("return this.rpcCall(m,q,s,r,c)")({m:a,q:a.resolvedRequestType.ctor,s:a.resolvedResponseType.ctor})}return i},"create"),it}g(kt,"requireService");var nt,vr;function Et(){if(vr)return nt;vr=1;var w=Object.defineProperty,s=g((v,p)=>w(v,"name",{value:p,configurable:!0}),"i");nt=f;var y=fe();function f(v){if(v)for(var p=Object.keys(v),n=0;n<p.length;++n)v[p[n]]!=null&&p[n]!=="__proto__"&&(this[p[n]]=v[p[n]])}return g(f,"Message"),s(f,"Message"),f.create=s(function(v){return this.$type.create(v)},"create"),f.encode=s(function(v,p){return this.$type.encode(v,p)},"encode"),f.encodeDelimited=s(function(v,p){return this.$type.encodeDelimited(v,p)},"encodeDelimited"),f.decode=s(function(v){return this.$type.decode(v)},"decode"),f.decodeDelimited=s(function(v){return this.$type.decodeDelimited(v)},"decodeDelimited"),f.verify=s(function(v){return this.$type.verify(v)},"verify"),f.fromObject=s(function(v){return this.$type.fromObject(v)},"fromObject"),f.toObject=s(function(v,p){return this.$type.toObject(v,p)},"toObject"),f.prototype.toJSON=s(function(){return this.$type.toObject(this,y.toJSONOptions)},"toJSON"),nt}g(Et,"requireMessage");var ot,yr;function Jr(){if(yr)return ot;yr=1;var w=Object.defineProperty,s=g((r,u)=>w(r,"name",{value:u,configurable:!0}),"t");ot=n;var y=ue(),f=he(),v=ee();function p(r){return"missing required '"+r.name+"'"}g(p,"missing"),s(p,"missing");function n(r){for(var u=!1,o=!1,e=0;e<r.fieldsArray.length;++e){var c=r._fieldsArray[e];c.map&&(u=!0),!c.repeated&&!c.map&&!c.hasPresence&&(o=!0)}var i=v.codegen(["r","l","z","q","g"],r.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("if(q===undefined)q=0")("if(q>Reader.recursionLimit)")('throw Error("max depth exceeded")')("var c=l===undefined?r.len:r.pos+l,m=g||new C"+(u?",k,v":o?",v":""))("while(r.pos<c){")("var s=r.pos")("var t=r.tag()")("if(t===z){")("z=undefined")("break")("}");for(r.fieldsArray.length&&i("var u=t&7")("switch(t>>>=3){"),e=0;e<r.fieldsArray.length;++e){var t=r._fieldsArray[e].resolve(),a=t.resolvedType instanceof y?"int32":t.type,h="m"+v.safeProp(t.name);if(t.map){i("case %i:{",t.id)("if(u!==2)")("break")("if(%s===util.emptyObject)",h)("%s={}",h)("var c2=r.uint32()+r.pos"),f.defaults[t.keyType]!==void 0?i("k=%j",f.defaults[t.keyType]):i("k=null"),f.defaults[a]!==void 0?i("v=%j",f.defaults[a]):i("v=null"),i("while(r.pos<c2){")("var t2=r.tag()")("u=t2&7")("switch(t2>>>=3){")("case 1:")("if(u!==%i)",f.mapKey[t.keyType])("break")("k=r.%s()",t.keyType)("continue")("case 2:")("if(u!==%i)",f.basic[a]===void 0?2:f.basic[a])("break"),f.basic[a]===void 0?i("v=types[%i].decode(r,r.uint32(),undefined,q+1)",e):i("v=r.%s()",a),i("continue")("}")("r.skipType(u,q,t2)")("}");var m=f.basic[a]===void 0?"v||new types["+e+"].ctor":"v";f.long[t.keyType]!==void 0?i('%s[typeof k==="object"?util.longToHash(k):k]=%s',h,m):(t.keyType==="string"&&i('if(k==="__proto__")')("util.makeProp(%s,k)",h),i("%s[k]=%s",h,m))}else t.repeated?(i("case %i:",t.id)("{"),f.packed[a]!==void 0&&i("if(u===2){")("if(!(%s&&%s.length))",h,h)("%s=[]",h)("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",h,a)("continue")("}"),i("if(u!==%i)",f.basic[a]===void 0?t.delimited?3:2:f.basic[a])("break")("if(!(%s&&%s.length))",h,h)("%s=[]",h),f.basic[a]===void 0?t.delimited?i("%s.push(types[%i].decode(r,undefined,%i,q+1))",h,e,t.id*8+4):i("%s.push(types[%i].decode(r,r.uint32(),undefined,q+1))",h,e):i("%s.push(r.%s())",h,a)):f.basic[a]===void 0?(i("case %i:{",t.id)("if(u!==%i)",t.delimited?3:2)("break"),t.delimited?i("%s=types[%i].decode(r,undefined,%i,q+1,%s)",h,e,t.id*8+4,h):i("%s=types[%i].decode(r,r.uint32(),undefined,q+1,%s)",h,e,h)):t.hasPresence?i("case %i:{",t.id)("if(u!==%i)",f.basic[a])("break")("%s=r.%s()",h,a):(i("case %i:{",t.id)("if(u!==%i)",f.basic[a])("break"),t.resolvedType instanceof y&&t.typeDefault!==0?i("if((v=r.%s())!==%j)",a,t.typeDefault):a==="string"||a==="bytes"?i("if((v=r.%s()).length)",a):f.long[a]!==void 0?i('if(typeof(v=r.%s())==="object"?v.low||v.high:v!==0)',a):i(a==="double"||a==="float"?"if((v=r.%s())!==0)":"if(v=r.%s())",a),i("%s=v",h)("else")("delete %s",h));t.partOf&&i("m%s=%j",v.safeProp(t.partOf.name),t.name),i("continue")("}")}for(e&&i("}"),i("r.skipType(%s,q,t)",e?"u":"t&7")('util.makeProp(m,"$unknowns",false);')("(m.$unknowns||(m.$unknowns=[])).push(r.raw(s,r.pos))")("}")("if(z!==undefined)")('throw Error("missing end group")'),e=0;e<r._fieldsArray.length;++e){var b=r._fieldsArray[e];b.required&&i("if(!m.hasOwnProperty(%j))",b.name)("throw util.ProtocolError(%j,{instance:m})",p(b))}return i("return m")}return g(n,"decoder"),s(n,"decoder"),ot}g(Jr,"requireDecoder");var st,mr;function Vr(){if(mr)return st;mr=1;var w=Object.defineProperty,s=g((u,o)=>w(u,"name",{value:o,configurable:!0}),"u");st=r;var y=ue(),f=ee();function v(u,o){return u.name+": "+o+(u.repeated&&o!=="array"?"[]":u.map&&o!=="object"?"{k:"+u.keyType+"}":"")+" expected"}g(v,"invalid"),s(v,"invalid");function p(u,o,e,c){if(o.resolvedType)if(o.resolvedType instanceof y){u("switch(%s){",c)("default:")("return%j",v(o,"enum value"));for(var i=Object.keys(o.resolvedType.values),t=0;t<i.length;++t)u("case %i:",o.resolvedType.values[i[t]]);u("break")("}")}else u("{")("var e=types[%i].verify(%s,q+1);",e,c)("if(e)")("return%j+e",o.name+".")("}");else switch(o.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":u("if(!util.isInteger(%s))",c)("return%j",v(o,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":u("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",c,c,c,c)("return%j",v(o,"integer|Long"));break;case"float":case"double":u('if(typeof %s!=="number")',c)("return%j",v(o,"number"));break;case"bool":u('if(typeof %s!=="boolean")',c)("return%j",v(o,"boolean"));break;case"string":u("if(!util.isString(%s))",c)("return%j",v(o,"string"));break;case"bytes":u('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',c,c,c)("return%j",v(o,"buffer"));break}return u}g(p,"genVerifyValue"),s(p,"genVerifyValue");function n(u,o,e){switch(o.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":u("if(!util.key32Re.test(%s))",e)("return%j",v(o,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":u("if(!util.key64Re.test(%s))",e)("return%j",v(o,"integer|Long key"));break;case"bool":u("if(!util.key2Re.test(%s))",e)("return%j",v(o,"boolean key"));break}return u}g(n,"genVerifyKey"),s(n,"genVerifyKey");function r(u){var o=f.codegen(["m","q"],u.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected")("if(q===undefined)q=0")("if(q>util.recursionLimit)")("return%j","max depth exceeded"),e=u.oneofsArray,c={};e.length&&o("var p={}");for(var i=0;i<u.fieldsArray.length;++i){var t=u._fieldsArray[i].resolve(),a="m"+f.safeProp(t.name);if(t.optional&&o("if(%s!=null&&m.hasOwnProperty(%j)){",a,t.name),t.map)o("if(!util.isObject(%s))",a)("return%j",v(t,"object"))("var k=Object.keys(%s)",a)("for(var i=0;i<k.length;++i){"),n(o,t,"k[i]"),p(o,t,i,a+"[k[i]]")("}");else if(t.repeated)o("if(!Array.isArray(%s))",a)("return%j",v(t,"array"))("for(var i=0;i<%s.length;++i){",a),p(o,t,i,a+"[i]")("}");else{if(t.partOf){var h=f.safeProp(t.partOf.name);c[t.partOf.name]===1&&o("if(p%s===1)",h)("return%j",t.partOf.name+": multiple values"),c[t.partOf.name]=1,o("p%s=1",h)}p(o,t,i,a)}t.optional&&o("}")}return o("return null")}return g(r,"verifier"),s(r,"verifier"),st}g(Vr,"requireVerifier");var at={},gr;function Ur(){return gr||(gr=1,(function(w){var s=Object.defineProperty,y=g((o,e)=>s(o,"name",{value:e,configurable:!0}),"m"),f=w,v=ue(),p=he(),n=ee();function r(o,e,c,i){var t=!1;if(e.resolvedType)if(e.resolvedType instanceof v){o("switch(d%s){",i);for(var a=e.resolvedType.values,h=Object.keys(a),m=0;m<h.length;++m)a[h[m]]===e.typeDefault&&!t&&(o("default:")('if(typeof d%s==="number"){m%s=d%s;break}',i,i,i),e.repeated||o("break"),t=!0),o("case%j:",h[m])("case %i:",a[h[m]])("m%s=%j",i,a[h[m]])("break");o("}")}else o('if(typeof d%s!=="object")',i)("throw TypeError(%j)",e.fullName+": object expected")("m%s=types[%i].fromObject(d%s,q+1)",i,c,i);else{var b=!1;switch(e.type){case"double":case"float":o("m%s=Number(d%s)",i,i);break;case"uint32":case"fixed32":o("m%s=d%s>>>0",i,i);break;case"int32":case"sint32":case"sfixed32":o("m%s=d%s|0",i,i);break;case"uint64":b=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":o("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",i,i,b)('else if(typeof d%s==="string")',i)("m%s=parseInt(d%s,10)",i,i)('else if(typeof d%s==="number")',i)("m%s=d%s",i,i)('else if(typeof d%s==="object")',i)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",i,i,i,b?"true":"");break;case"bytes":o('if(typeof d%s==="string")',i)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",i,i,i)("else if(d%s.length>=0)",i)("m%s=d%s",i,i);break;case"string":o("m%s=String(d%s)",i,i);break;case"bool":o("m%s=Boolean(d%s)",i,i);break}}return o}g(r,"genValuePartial_fromObject"),y(r,"genValuePartial_fromObject"),f.fromObject=y(function(o){var e=o.fieldsArray,c=n.codegen(["d","q"],o.name+"$fromObject")("if(d instanceof C)")("return d")("if(q===undefined)q=0")("if(q>util.recursionLimit)")('throw Error("max depth exceeded")');if(!e.length)return c("return new C");c("var m=new C");for(var i=0;i<e.length;++i){var t=e[i].resolve(),a=n.safeProp(t.name),h=!t.hasPresence&&!t.repeated&&!t.map&&(t.resolvedType instanceof v||p.basic[t.type]!==void 0);t.map?(c("if(d%s){",a)('if(typeof d%s!=="object")',a)("throw TypeError(%j)",t.fullName+": object expected")("m%s={}",a)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",a),c('if(ks[i]==="__proto__")')("util.makeProp(m%s,ks[i])",a),r(c,t,i,a+"[ks[i]]")("}")("}")):t.repeated?(c("if(d%s){",a)("if(!Array.isArray(d%s))",a)("throw TypeError(%j)",t.fullName+": array expected")("m%s=Array(d%s.length)",a,a)("for(var i=0;i<d%s.length;++i){",a),r(c,t,i,a+"[i]")("}")("}")):(t.resolvedType instanceof v||c("if(d%s!=null){",a),h&&(t.resolvedType instanceof v?c('if(d%s!==%j&&(typeof d%s!=="string"||types[%i].values[d%s]!==%j)){',a,t.typeDefault,a,i,a,t.typeDefault):t.type==="string"?c('if(typeof d%s!=="string"||d%s.length){',a,a):t.type==="bytes"?c("if(d%s.length){",a):t.type==="bool"?c("if(d%s){",a):p.long[t.type]!==void 0?c('if(typeof d%s==="object"?d%s.low||d%s.high:Number(d%s)!==0){',a,a,a,a):c("if(Number(d%s)!==0){",a)),r(c,t,i,a),h&&c("}"),t.resolvedType instanceof v||c("}"))}return c("return m")},"fromObject");function u(o,e,c,i,t){if(t||(t=i),e.resolvedType)e.resolvedType instanceof v?o("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",i,c,t,t,c,t,t):o("d%s=types[%i].toObject(m%s,o)",i,c,t);else{var a=!1;switch(e.type){case"double":case"float":o("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",i,t,t,t);break;case"uint64":a=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":o('if(typeof m%s==="number")',t)("d%s=o.longs===String?String(m%s):m%s",i,t,t)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",i,t,t,t,a?"true":"",t);break;case"bytes":o("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",i,t,t,t,t);break;default:o("d%s=m%s",i,t);break}}return o}g(u,"genValuePartial_toObject"),y(u,"genValuePartial_toObject"),f.toObject=y(function(o){var e=o.fieldsArray.slice().sort(n.compareFieldsById);if(!e.length)return n.codegen()("return {}");for(var c=n.codegen(["m","o"],o.name+"$toObject")("if(!o)")("o={}")("var d={}"),i=[],t=[],a=[],h=0;h<e.length;++h)e[h].partOf||(e[h].resolve().repeated?i:e[h].map?t:a).push(e[h]);if(i.length){for(c("if(o.arrays||o.defaults){"),h=0;h<i.length;++h)c("d%s=[]",n.safeProp(i[h].name));c("}")}if(t.length){for(c("if(o.objects||o.defaults){"),h=0;h<t.length;++h)c("d%s={}",n.safeProp(t[h].name));c("}")}if(a.length){for(c("if(o.defaults){"),h=0;h<a.length;++h){var m=a[h],b=n.safeProp(m.name);if(m.resolvedType instanceof v)c("d%s=o.enums===String?%j:%j",b,m.resolvedType.valuesById[m.typeDefault],m.typeDefault);else if(m.long)c("if(util.Long){")("var n=new util.Long(%i,%i,%j)",m.typeDefault.low,m.typeDefault.high,m.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",b)("}else")("d%s=o.longs===String?%j:%i",b,m.typeDefault.toString(),m.typeDefault.toNumber());else if(m.bytes){var S=Array.prototype.slice.call(m.typeDefault);c("if(o.bytes===String)d%s=%j",b,String.fromCharCode.apply(String,m.typeDefault))("else{")("d%s=%j",b,S)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",b,b)("}")}else c("d%s=%j",b,m.typeDefault)}c("}")}var d=!1;for(h=0;h<e.length;++h){var m=e[h],_=o._fieldsArray.indexOf(m),b=n.safeProp(m.name);if(m.map){d||(d=!0,c("var ks2")),c("if(m%s&&(ks2=Object.keys(m%s)).length){",b,b)("d%s={}",b);var R=p.long[m.keyType]!==void 0,P=b+"[ks2[j]]";c("for(var j=0;j<ks2.length;++j){"),R&&c("var k2=util.longFromKey(ks2[j],%j).toString()",m.keyType==="uint64"||m.keyType==="fixed64"),c('if(ks2[j]==="__proto__")')("util.makeProp(d%s,ks2[j])",b),u(c,m,_,R?b+"[k2]":P,P)("}")}else m.repeated?(c("if(m%s&&m%s.length){",b,b)("d%s=Array(m%s.length)",b,b)("for(var j=0;j<m%s.length;++j){",b),u(c,m,_,b+"[j]")("}")):(c("if(m%s!=null&&m.hasOwnProperty(%j)){",b,m.name),u(c,m,_,b),m.partOf&&c("if(o.oneofs)")("d%s=%j",n.safeProp(m.partOf.name),m.name));c("}")}return c("return d")},"toObject")})(at)),at}g(Ur,"requireConverter");var ut={},br;function $r(){return br||(br=1,(function(w){var s=Object.defineProperty,y=g((p,n)=>s(p,"name",{value:n,configurable:!0}),"l"),f=w,v=Et();f[".google.protobuf.Any"]={fromObject:y(function(p,n){if(p&&p["@type"]){var r=p["@type"].substring(p["@type"].lastIndexOf("/")+1),u=this.lookup(r);if(u){var o=p["@type"].charAt(0)==="."?p["@type"].slice(1):p["@type"];o.indexOf("/")===-1&&(o="/"+o);var e=n===void 0?1:n+1;return this.create({type_url:o,value:u.encode(u.fromObject(p,e)).finish()})}}return this.fromObject(p,n)},"fromObject"),toObject:y(function(p,n){var r="type.googleapis.com/",u="",o="";if(n&&n.json&&p.type_url&&p.value){o=p.type_url.substring(p.type_url.lastIndexOf("/")+1),u=p.type_url.substring(0,p.type_url.lastIndexOf("/")+1);var e=this.lookup(o);e&&(p=e.decode(p.value))}if(!(p instanceof this.ctor)&&p instanceof v){var c=p.$type.toObject(p,n),i=p.$type.fullName[0]==="."?p.$type.fullName.slice(1):p.$type.fullName;return u===""&&(u=r),o=u+i,c["@type"]=o,c}return this.toObject(p,n)},"toObject")}})(ut)),ut}g($r,"requireWrappers");var ft,_r;function Rt(){if(_r)return ft;_r=1;var w=Object.defineProperty,s=g((d,_)=>w(d,"name",{value:_,configurable:!0}),"s");ft=b;var y=Oe();((b.prototype=Object.create(y.prototype)).constructor=b).className="Type";var f=ue(),v=ye(),p=ce(),n=Ot(),r=kt(),u=Et(),o=wt(),e=_t(),c=ee(),i=zr(),t=Jr(),a=Vr(),h=Ur(),m=$r();function b(d,_){d=d.replace(/\W/g,""),y.call(this,d,_),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(b,"Type"),s(b,"Type"),Object.defineProperties(b.prototype,{fieldsById:{get:s(function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var d=Object.keys(this.fields),_=0;_<d.length;++_){var R=this.fields[d[_]],P=R.id;if(this._fieldsById[P])throw Error("duplicate id "+P+" in "+this);this._fieldsById[P]=R}return this._fieldsById},"get")},fieldsArray:{get:s(function(){return this._fieldsArray||(this._fieldsArray=c.toArray(this.fields))},"get")},oneofsArray:{get:s(function(){return this._oneofsArray||(this._oneofsArray=c.toArray(this.oneofs))},"get")},ctor:{get:s(function(){return this._ctor||(this.ctor=b.generateConstructor(this)())},"get"),set:s(function(d){var _=d.prototype;_ instanceof u||((d.prototype=new u).constructor=d,c.merge(d.prototype,_)),d.$type=d.prototype.$type=this,c.merge(d,u,!0),this._ctor=d,delete this.decode,delete this.fromObject;for(var R=0,P;R<this.fieldsArray.length;++R)P=this._fieldsArray[R].resolve(),d.prototype[P.name]=P.defaultValue;var I={};for(R=0;R<this.oneofsArray.length;++R)I[this._oneofsArray[R].resolve().name]={get:c.oneOfGetter(this._oneofsArray[R].oneof),set:c.oneOfSetter(this._oneofsArray[R].oneof)};R&&Object.defineProperties(d.prototype,I)},"set")}}),b.generateConstructor=s(function(d){for(var _=c.codegen(["p"],d.name),R=0,P;R<d.fieldsArray.length;++R)(P=d._fieldsArray[R]).map?_("this%s={}",c.safeProp(P.name)):P.repeated&&_("this%s=[]",c.safeProp(P.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 S(d){return d._fieldsById=d._fieldsArray=d._oneofsArray=null,delete d.encode,delete d.decode,delete d.verify,d}return g(S,"clearCache"),s(S,"clearCache"),b.fromJSON=s(function(d,_,R){if(R===void 0&&(R=0),R>c.nestingLimit)throw Error("max depth exceeded");var P=new b(d,_.options);P.extensions=_.extensions,P.reserved=_.reserved;for(var I=Object.keys(_.fields),L=0;L<I.length;++L)P.add((typeof _.fields[I[L]].keyType<"u"?n.fromJSON:p.fromJSON)(I[L],_.fields[I[L]]));if(_.oneofs)for(I=Object.keys(_.oneofs),L=0;L<I.length;++L)P.add(v.fromJSON(I[L],_.oneofs[I[L]]));if(_.nested)for(I=Object.keys(_.nested),L=0;L<I.length;++L){var W=_.nested[I[L]];P.add((W.id!==void 0?p.fromJSON:W.fields!==void 0?b.fromJSON:W.values!==void 0?f.fromJSON:W.methods!==void 0?r.fromJSON:y.fromJSON)(I[L],W,R+1))}return _.extensions&&_.extensions.length&&(P.extensions=_.extensions),_.reserved&&_.reserved.length&&(P.reserved=_.reserved),_.group&&(P.group=!0),_.comment&&(P.comment=_.comment),_.edition&&(P._edition=_.edition),P._defaultEdition="proto3",P},"fromJSON"),b.prototype.toJSON=s(function(d){var _=y.prototype.toJSON.call(this,d),R=d?!!d.keepComments:!1;return c.toObject(["edition",this._editionToJSON(),"options",_&&_.options||void 0,"oneofs",y.arrayToJSON(this.oneofsArray,d),"fields",y.arrayToJSON(this.fieldsArray.filter(function(P){return!P.declaringField}),d)||{},"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",R?this.comment:void 0])},"toJSON"),b.prototype.resolveAll=s(function(){if(!this._needsRecursiveResolve)return this;y.prototype.resolveAll.call(this);var d=this.oneofsArray;for(R=0;R<d.length;)d[R++].resolve();for(var _=this.fieldsArray,R=0;R<_.length;)_[R++].resolve();return this},"resolveAll"),b.prototype._resolveFeaturesRecursive=s(function(d){return this._needsRecursiveFeatureResolution?(d=this._edition||d,y.prototype._resolveFeaturesRecursive.call(this,d),this.oneofsArray.forEach(_=>{_._resolveFeatures(d)}),this.fieldsArray.forEach(_=>{_._resolveFeatures(d)}),this):this},"_resolveFeaturesRecursive"),b.prototype.get=s(function(d){return Object.prototype.hasOwnProperty.call(this.fields,d)?this.fields[d]:this.oneofs&&Object.prototype.hasOwnProperty.call(this.oneofs,d)?this.oneofs[d]:this.nested&&Object.prototype.hasOwnProperty.call(this.nested,d)?this.nested[d]:null},"get"),b.prototype.add=s(function(d){if(this.get(d.name))throw Error("duplicate name '"+d.name+"' in "+this);if(d instanceof p&&d.extend===void 0){if(this._fieldsById?this._fieldsById[d.id]:this.fieldsById[d.id])throw Error("duplicate id "+d.id+" in "+this);if(this.isReservedId(d.id))throw Error("id "+d.id+" is reserved in "+this);if(this.isReservedName(d.name))throw Error("name '"+d.name+"' is reserved in "+this);return d.name==="__proto__"?this:(d.parent&&d.parent.remove(d),this.fields[d.name]=d,d.message=this,d.onAdd(this),S(this))}return d instanceof v?d.name==="__proto__"?this:(this.oneofs||(this.oneofs={}),this.oneofs[d.name]=d,d.onAdd(this),S(this)):y.prototype.add.call(this,d)},"add"),b.prototype.remove=s(function(d){if(d instanceof p&&d.extend===void 0){if(!this.fields||this.fields[d.name]!==d)throw Error(d+" is not a member of "+this);return delete this.fields[d.name],d.parent=null,d.onRemove(this),S(this)}if(d instanceof v){if(!this.oneofs||this.oneofs[d.name]!==d)throw Error(d+" is not a member of "+this);return delete this.oneofs[d.name],d.parent=null,d.onRemove(this),S(this)}return y.prototype.remove.call(this,d)},"remove"),b.prototype.isReservedId=s(function(d){return y.isReservedId(this.reserved,d)},"isReservedId"),b.prototype.isReservedName=s(function(d){return y.isReservedName(this.reserved,d)},"isReservedName"),b.prototype.create=s(function(d){return new this.ctor(d)},"create"),b.prototype.setup=s(function(){for(var d=this.fullName,_=[],R=0;R<this.fieldsArray.length;++R)_.push(this._fieldsArray[R].resolve().resolvedType);this.encode=i(this)({Writer:e,types:_,util:c}),this.decode=t(this)({Reader:o,types:_,util:c,C:this.ctor}),this.verify=a(this)({types:_,util:c}),this.fromObject=h.fromObject(this)({types:_,util:c,C:this.ctor}),this.toObject=h.toObject(this)({types:_,util:c});var P=m[d];if(P){var I=Object.create(this);I._ctor=this.ctor,I.fromObject=this.fromObject,this.fromObject=P.fromObject.bind(I),I.toObject=this.toObject,this.toObject=P.toObject.bind(I)}return this},"setup"),b.prototype.encode=s(function(d,_){return this.setup().encode(d,_)},"encode_setup"),b.prototype.encodeDelimited=s(function(d,_){return this.encode(d,_&&_.len?_.fork():_).ldelim()},"encodeDelimited"),b.prototype.decode=s(function(d,_){return this.setup().decode.apply(this,arguments)},"decode_setup"),b.prototype.decodeDelimited=s(function(d){return d instanceof o||(d=o.create(d)),this.decode(d,d.uint32())},"decodeDelimited"),b.prototype.verify=s(function(d){return this.setup().verify.apply(this,arguments)},"verify_setup"),b.prototype.fromObject=s(function(d){return this.setup().fromObject.apply(this,arguments)},"fromObject"),b.prototype.toObject=s(function(d,_){return this.setup().toObject(d,_)},"toObject"),b.prototype.getTypeUrl=s(function(d){d===void 0&&(d="type.googleapis.com");var _=this.fullName;return d+"/"+(_.charAt(0)==="."?_.substring(1):_)},"getTypeUrl"),b.d=s(function(d){return s(function(_){c.decorateType(_,d)},"typeDecorator")},"decorateType"),ft}g(Rt,"requireType");var lt,wr;function At(){if(wr)return lt;wr=1;var w=Object.defineProperty,s=g((a,h)=>w(a,"name",{value:h,configurable:!0}),"o");lt=e;var y=Oe();((e.prototype=Object.create(y.prototype)).constructor=e).className="Root";var f=ce(),v=ue(),p=ye(),n=ee(),r,u,o;function e(a){y.call(this,"",a),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}g(e,"Root"),s(e,"Root"),e.fromJSON=s(function(a,h,m){if(m===void 0&&(m=0),m>n.recursionLimit)throw Error("max depth exceeded");return h||(h=new e),a.options&&h.setOptions(a.options),h.addJSON(a.nested,m).resolveAll()},"fromJSON"),e.prototype.resolvePath=n.path.resolve,e.prototype.fetch=n.fetch;function c(){}g(c,"SYNC"),s(c,"SYNC"),e.prototype.load=s(g(function a(h,m,b){typeof m=="function"&&(b=m,m=void 0);var S=this;if(!b)return n.asPromise(a,S,h,m);var d=b===c;function _(J,$){if(b){if(d)throw J;$&&$.resolveAll();var B=b;b=null,B(J,$)}}g(_,"p"),s(_,"finish");function R(J){var $=J.lastIndexOf("google/protobuf/");if($>-1){var B=J.substring($);if(Object.prototype.hasOwnProperty.call(o,B))return B}return Object.prototype.hasOwnProperty.call(o,J)?J:null}g(R,"y"),s(R,"getBundledFileName");function P(J,$){try{if(n.isString($)&&$.charAt(0)==="{"&&($=JSON.parse($)),!n.isString($))S.setOptions($.options).addJSON($.nested);else{u.filename=J;var B=u($,S,m),z,j=0;if(B.imports)for(;j<B.imports.length;++j)(z=R(B.imports[j])||S.resolvePath(J,B.imports[j]))&&I(z);if(B.weakImports)for(j=0;j<B.weakImports.length;++j)(z=R(B.weakImports[j])||S.resolvePath(J,B.weakImports[j]))&&I(z,!0)}}catch(l){_(l)}!d&&!L&&_(null,S)}g(P,"v"),s(P,"process");function I(J,$){if(J=R(J)||J,!(S.files.indexOf(J)>-1)){if(S.files.push(J),Object.prototype.hasOwnProperty.call(o,J)){d?P(J,o[J]):(++L,setTimeout(function(){--L,P(J,o[J])}));return}if(d){var B;try{B=n.fs.readFileSync(J).toString("utf8")}catch(z){$||_(z);return}P(J,B)}else++L,S.fetch(J,function(z,j){if(--L,!!b){if(z){$?L||_(null,S):_(z);return}P(J,j)}})}}g(I,"O"),s(I,"fetch");var L=0;n.isString(h)&&(h=[h]);for(var W=0,te;W<h.length;++W)(te=S.resolvePath("",h[W]))&&I(te);return d?(S.resolveAll(),S):(L||_(null,S),S)},"u"),"load"),e.prototype.loadSync=s(function(a,h){if(!n.isNode)throw Error("not supported");return this.load(a,h,c)},"loadSync"),e.prototype.resolveAll=s(function(){if(!this._needsRecursiveResolve)return this;if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map(function(a){return"'extend "+a.extend+"' in "+a.parent.fullName}).join(", "));return y.prototype.resolveAll.call(this)},"resolveAll");var i=/^[A-Z]/;function t(a,h){var m=h.parent.lookup(h.extend);if(m){var b=new f(h.fullName,h.id,h.type,h.rule,void 0,h.options);return m.get(b.name)||(b.declaringField=h,h.extensionField=b,m.add(b)),!0}return!1}return g(t,"tryHandleExtension"),s(t,"tryHandleExtension"),e.prototype._handleAdd=s(function(a){if(a instanceof f)a.extend!==void 0&&!a.extensionField&&(t(this,a)||this.deferred.push(a));else if(a instanceof v)i.test(a.name)&&(a.parent[a.name]=a.values);else if(!(a instanceof p)){if(a instanceof r)for(var h=0;h<this.deferred.length;)t(this,this.deferred[h])?this.deferred.splice(h,1):++h;for(var m=0;m<a.nestedArray.length;++m)this._handleAdd(a._nestedArray[m]);i.test(a.name)&&(a.parent[a.name]=a)}(a instanceof r||a instanceof v||a instanceof f)&&(this._fullyQualifiedObjects[a.fullName]=a)},"_handleAdd"),e.prototype._handleRemove=s(function(a){if(a instanceof f){if(a.extend!==void 0)if(a.extensionField)a.extensionField.parent.remove(a.extensionField),a.extensionField=null;else{var h=this.deferred.indexOf(a);h>-1&&this.deferred.splice(h,1)}}else if(a instanceof v)i.test(a.name)&&delete a.parent[a.name];else if(a instanceof y){for(var m=0;m<a.nestedArray.length;++m)this._handleRemove(a._nestedArray[m]);i.test(a.name)&&delete a.parent[a.name]}delete this._fullyQualifiedObjects[a.fullName]},"_handleRemove"),e._configure=function(a,h,m){r=a,u=h,o=m},lt}g(At,"requireRoot");var Or;function ee(){if(Or)return He.exports;Or=1;var w=Object.defineProperty,s=g((e,c)=>w(e,"name",{value:c,configurable:!0}),"n"),y=He.exports=fe(),f=Dr(),v,p;y.codegen=pi(),y.fetch=di(),y.path=vi(),y.patterns=Cr();var n=y.patterns.reservedRe,r=y.patterns.unsafePropertyRe;y.fs=Mr(),y.toArray=s(function(e){if(e){for(var c=Object.keys(e),i=new Array(c.length),t=0;t<c.length;)i[t]=e[c[t++]];return i}return[]},"toArray"),y.toObject=s(function(e){for(var c={},i=0;i<e.length;){var t=e[i++],a=e[i++];a!==void 0&&(c[t]=a)}return c},"toObject"),y.isReserved=s(function(e){return n.test(e)},"isReserved"),y.safeProp=s(function(e){return!/^[$\w_]+$/.test(e)||n.test(e)?"["+JSON.stringify(e)+"]":"."+e},"safeProp"),y.ucFirst=s(function(e){return e.charAt(0).toUpperCase()+e.substring(1)},"ucFirst");var u=/_([a-z])/g;y.camelCase=s(function(e){return e.substring(0,1)+e.substring(1).replace(u,function(c,i){return i.toUpperCase()})},"camelCase"),y.compareFieldsById=s(function(e,c){return e.id-c.id},"compareFieldsById"),y.decorateType=s(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;v||(v=Rt());var i=new v(c||e.name);return y.decorateRoot.add(i),i.ctor=e,Object.defineProperty(e,"$type",{value:i,enumerable:!1}),Object.defineProperty(e.prototype,"$type",{value:i,enumerable:!1}),i},"decorateType");var o=0;return y.decorateEnum=s(function(e){if(e.$type)return e.$type;p||(p=ue());var c=new p("Enum"+o++,e);return y.decorateRoot.add(c),Object.defineProperty(e,"$type",{value:c,enumerable:!1}),c},"decorateEnum"),y.setProperty=s(function(e,c,i,t){function a(h,m,b){var S=m.shift();if(r.test(S))return h;if(m.length>0)h[S]=a(h[S]||{},m,b);else{var d=h[S];if(d&&t)return h;d&&(b=[].concat(d).concat(b)),h[S]=b}return h}if(g(a,"a"),s(a,"setProp"),typeof e!="object")throw TypeError("dst must be an object");if(!c)throw TypeError("path must be specified");if(c=c.split("."),c.length>y.recursionLimit)throw Error("max depth exceeded");return a(e,c,i)},"setProperty"),Object.defineProperty(y,"decorateRoot",{get:s(function(){return f.decorated||(f.decorated=new(At()))},"get")}),He.exports}g(ee,"requireUtil");var jr;function he(){return jr||(jr=1,(function(w){var s=Object.defineProperty,y=g((r,u)=>s(r,"name",{value:u,configurable:!0}),"r"),f=w,v=ee(),p=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function n(r,u){var o=0,e=Object.create(null);for(u|=0;o<r.length;)e[p[o+u]]=r[o++];return e}g(n,"bake"),y(n,"bake"),f.basic=n([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),f.defaults=n([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",v.emptyArray,null]),f.long=n([0,0,0,1,1],7),f.mapKey=n([0,0,0,5,5,0,0,0,1,1,0,2],2),f.packed=n([1,5,0,0,0,5,5,0,0,0,1,1,0])})(We)),We}g(he,"requireTypes");var ht,kr;function ce(){if(kr)return ht;kr=1;var w=Object.defineProperty,s=g((o,e)=>w(o,"name",{value:e,configurable:!0}),"s");ht=u;var y=pe();((u.prototype=Object.create(y.prototype)).constructor=u).className="Field";var f=ue(),v=he(),p=ee(),n,r=/^required|optional|repeated$/;u.fromJSON=s(function(o,e){var c=new u(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 u(o,e,c,i,t,a,h){if(p.isObject(i)?(h=t,a=i,i=t=void 0):p.isObject(t)&&(h=a,a=t,t=void 0),y.call(this,o,a),!p.isInteger(e)||e<0)throw TypeError("id must be a non-negative integer");if(!p.isString(c))throw TypeError("type must be a string");if(i!==void 0&&!r.test(i=i.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(t!==void 0&&!p.isString(t))throw TypeError("extend must be a string");i==="proto3_optional"&&(i="optional"),this.rule=i&&i!=="optional"?i:void 0,this.type=c,this.id=e,this.extend=t||void 0,this.repeated=i==="repeated",this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=p.Long?v.long[c]!==void 0:!1,this.bytes=c==="bytes",this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=h}return g(u,"Field"),s(u,"Field"),Object.defineProperty(u.prototype,"required",{get:s(function(){return this._features.field_presence==="LEGACY_REQUIRED"},"get")}),Object.defineProperty(u.prototype,"optional",{get:s(function(){return!this.required},"get")}),Object.defineProperty(u.prototype,"delimited",{get:s(function(){return this.resolvedType instanceof n&&this._features.message_encoding==="DELIMITED"},"get")}),Object.defineProperty(u.prototype,"packed",{get:s(function(){return this._features.repeated_field_encoding==="PACKED"},"get")}),Object.defineProperty(u.prototype,"hasPresence",{get:s(function(){return this.repeated||this.map?!1:this.partOf||this.declaringField||this.extensionField||this._features.field_presence!=="IMPLICIT"},"get")}),u.prototype.setOption=s(function(o,e,c){return y.prototype.setOption.call(this,o,e,c)},"setOption"),u.prototype.toJSON=s(function(o){var e=o?!!o.keepComments:!1;return p.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"),u.prototype.resolve=s(function(){if(this.resolved)return this;if((this.typeDefault=v.defaults[this.type])===void 0?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof n?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 f&&typeof this.typeDefault=="string"&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(this.options.packed!==void 0&&this.resolvedType&&!(this.resolvedType instanceof f)&&delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=p.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;p.base64.test(this.typeDefault)?p.base64.decode(this.typeDefault,o=p.newBuffer(p.base64.length(this.typeDefault)),0):p.utf8.write(this.typeDefault,o=p.newBuffer(p.utf8.length(this.typeDefault)),0),this.typeDefault=o}return this.map?this.defaultValue=p.emptyObject:this.repeated?this.defaultValue=p.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof n&&this.parent._ctor&&(this.parent._ctor.prototype[this.name]=this.defaultValue),y.prototype.resolve.call(this)},"resolve"),u.prototype._inferLegacyProtoFeatures=s(function(o){if(o!=="proto2"&&o!=="proto3")return{};var e={};if(this.rule==="required"&&(e.field_presence="LEGACY_REQUIRED"),this.parent&&v.defaults[this.type]===void 0){var c=this.parent.get(this.type.split(".").pop());c&&c instanceof n&&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"),u.prototype._resolveFeatures=s(function(o){return y.prototype._resolveFeatures.call(this,this._edition||o)},"_resolveFeatures"),u.d=s(function(o,e,c,i){return typeof e=="function"?e=p.decorateType(e).name:e&&typeof e=="object"&&(e=p.decorateEnum(e).name),s(function(t,a){p.decorateType(t.constructor).add(new u(a,o,e,c,{default:i}))},"fieldDecorator")},"decorateField"),u._configure=s(function(o){n=o},"configure"),ht}g(ce,"requireField");var ct,Er;function ye(){if(Er)return ct;Er=1;var w=Object.defineProperty,s=g((r,u)=>w(r,"name",{value:u,configurable:!0}),"o");ct=p;var y=pe();((p.prototype=Object.create(y.prototype)).constructor=p).className="OneOf";var f=ce(),v=ee();function p(r,u,o,e){if(Array.isArray(u)||(o=u,u=void 0),y.call(this,r,o),!(u===void 0||Array.isArray(u)))throw TypeError("fieldNames must be an Array");this.oneof=u||[],this.fieldsArray=[],this.comment=e}g(p,"OneOf"),s(p,"OneOf"),p.fromJSON=s(function(r,u){return new p(r,u.oneof,u.options,u.comment)},"fromJSON"),p.prototype.toJSON=s(function(r){var u=r?!!r.keepComments:!1;return v.toObject(["options",this.options,"oneof",this.oneof,"comment",u?this.comment:void 0])},"toJSON");function n(r){if(r.parent)for(var u=0;u<r.fieldsArray.length;++u)r.fieldsArray[u].parent||r.parent.add(r.fieldsArray[u])}return g(n,"addFieldsToParent"),s(n,"addFieldsToParent"),p.prototype.add=s(function(r){if(!(r instanceof f))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,n(this),this},"add"),p.prototype.remove=s(function(r){if(!(r instanceof f))throw TypeError("field must be a Field");var u=this.fieldsArray.indexOf(r);if(u<0)throw Error(r+" is not a member of "+this);return this.fieldsArray.splice(u,1),u=this.oneof.indexOf(r.name),u>-1&&this.oneof.splice(u,1),r.partOf=null,this},"remove"),p.prototype.onAdd=s(function(r){y.prototype.onAdd.call(this,r);for(var u=this,o=0;o<this.oneof.length;++o){var e=r.get(this.oneof[o]);e&&!e.partOf&&(e.partOf=u,u.fieldsArray.push(e))}n(this)},"onAdd"),p.prototype.onRemove=s(function(r){for(var u=0,o;u<this.fieldsArray.length;++u)(o=this.fieldsArray[u]).parent&&o.parent.remove(o);y.prototype.onRemove.call(this,r)},"onRemove"),Object.defineProperty(p.prototype,"isProto3Optional",{get:s(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")}),p.d=s(function(){for(var r=new Array(arguments.length),u=0;u<arguments.length;)r[u]=arguments[u++];return s(function(o,e){v.decorateType(o.constructor).add(new p(e,r)),Object.defineProperty(o,e,{get:v.oneOfGetter(r),set:v.oneOfSetter(r)})},"oneOfDecorator")},"decorateOneOf"),ct}g(ye,"requireOneof");var pt,Rr;function pe(){if(Rr)return pt;Rr=1;var w=Object.defineProperty,s=g((e,c)=>w(e,"name",{value:c,configurable:!0}),"s");pt=o,o.className="ReflectionObject";const y=ye();var f=ee(),v,p={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"},n={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"},u={enum_type:"OPEN",field_presence:"IMPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY",enforce_naming_style:"STYLE_LEGACY",default_symbol_visibility:"EXPORT_ALL"};function o(e,c){if(!f.isString(e))throw TypeError("name must be a string");if(c&&!f.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"),s(o,"ReflectionObject"),Object.defineProperties(o.prototype,{root:{get:s(function(){for(var e=this;e.parent!==null;)e=e.parent;return e},"get")},fullName:{get:s(function(){for(var e=[this.name],c=this.parent;c;)e.unshift(c.name),c=c.parent;return e.join(".")},"get")}}),o.prototype.toJSON=s(function(){throw Error()},"toJSON"),o.prototype.onAdd=s(function(e){this.parent&&this.parent!==e&&this.parent.remove(this),this.parent=e,this.resolved=!1;var c=e.root;c instanceof v&&c._handleAdd(this)},"onAdd"),o.prototype.onRemove=s(function(e){var c=e.root;c instanceof v&&c._handleRemove(this),this.parent=null,this.resolved=!1},"onRemove"),o.prototype.resolve=s(function(){return this.resolved?this:(this.root instanceof v&&(this.resolved=!0),this)},"resolve"),o.prototype._resolveFeaturesRecursive=s(function(e){return this._resolveFeatures(this._edition||e)},"_resolveFeaturesRecursive"),o.prototype._resolveFeatures=s(function(e){if(!this._featuresResolved){var c={};if(!e)throw new Error("Unknown edition for "+this.fullName);var i=Object.assign(this.options?Object.assign({},this.options.features):{},this._inferLegacyProtoFeatures(e));if(this._edition){if(e==="proto2")c=Object.assign({},r);else if(e==="proto3")c=Object.assign({},u);else if(e==="2023")c=Object.assign({},n);else if(e==="2024")c=Object.assign({},p);else throw new Error("Unknown edition: "+e);this._features=Object.assign(c,i||{})}else if(this.partOf instanceof y){var t=Object.assign({},this.partOf._features);this._features=Object.assign(t,i||{})}else if(!this.declaringField)if(this.parent){var a=Object.assign({},this.parent._features);this._features=Object.assign(a,i||{})}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=s(function(){return{}},"_inferLegacyProtoFeatures"),o.prototype.getOption=s(function(e){if(this.options)return this.options[e]},"getOption"),o.prototype.setOption=s(function(e,c,i){return e==="__proto__"?this:(this.options||(this.options={}),/^features\./.test(e)?f.setProperty(this.options,e,c,i):(!i||this.options[e]===void 0)&&(this.getOption(e)!==c&&(this.resolved=!1),this.options[e]=c),this)},"setOption"),o.prototype.setParsedOption=s(function(e,c,i){if(e==="__proto__")return this;this.parsedOptions||(this.parsedOptions=[]);var t=this.parsedOptions;if(i){var a=t.find(function(b){return Object.prototype.hasOwnProperty.call(b,e)});if(a){var h=a[e];f.setProperty(h,i,c)}else a={},a[e]=f.setProperty({},i,c),t.push(a)}else{var m={};m[e]=c,t.push(m)}return this},"setParsedOption"),o.prototype.setOptions=s(function(e,c){if(e)for(var i=Object.keys(e),t=0;t<i.length;++t)this.setOption(i[t],e[i[t]],c);return this},"setOptions"),o.prototype.toString=s(function(){var e=this.constructor.className,c=this.fullName;return c.length?e+" "+c:e},"toString"),o.prototype._editionToJSON=s(function(){if(!(!this._edition||this._edition==="proto3"))return this._edition},"_editionToJSON"),o._configure=function(e){v=e},pt}g(pe,"requireObject");var dt,Ar;function ue(){if(Ar)return dt;Ar=1;var w=Object.defineProperty,s=g((n,r)=>w(n,"name",{value:r,configurable:!0}),"r");dt=p;var y=pe();((p.prototype=Object.create(y.prototype)).constructor=p).className="Enum";var f=Oe(),v=ee();function p(n,r,u,o,e,c){if(y.call(this,n,u),r&&typeof r!="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,r)for(var i=Object.keys(r),t=0;t<i.length;++t)i[t]!=="__proto__"&&typeof r[i[t]]=="number"&&(this.valuesById[this.values[i[t]]=r[i[t]]]=i[t])}return g(p,"Enum"),s(p,"Enum"),p.prototype._resolveFeatures=s(function(n){return n=this._edition||n,y.prototype._resolveFeatures.call(this,n),Object.keys(this.values).forEach(r=>{var u=Object.assign({},this._features);this._valuesFeatures[r]=Object.assign(u,this.valuesOptions&&this.valuesOptions[r]&&this.valuesOptions[r].features)}),this},"_resolveFeatures"),p.fromJSON=s(function(n,r){var u=new p(n,r.values,r.options,r.comment,r.comments,r.valuesOptions);return u.reserved=r.reserved,r.edition&&(u._edition=r.edition),u._defaultEdition="proto3",u},"fromJSON"),p.prototype.toJSON=s(function(n){var r=n?!!n.keepComments:!1;return v.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"),p.prototype.add=s(function(n,r,u,o){if(!v.isString(n))throw TypeError("name must be a string");if(!v.isInteger(r))throw TypeError("id must be an integer");if(n==="__proto__")return this;if(this.values[n]!==void 0)throw Error("duplicate name '"+n+"' in "+this);if(this.isReservedId(r))throw Error("id "+r+" is reserved in "+this);if(this.isReservedName(n))throw Error("name '"+n+"' 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[n]=r}else this.valuesById[this.values[n]=r]=n;return o&&(this.valuesOptions===void 0&&(this.valuesOptions={}),this.valuesOptions[n]=o||null),this.comments[n]=u||null,this},"add"),p.prototype.remove=s(function(n){if(!v.isString(n))throw TypeError("name must be a string");var r=this.values[n];if(r==null)throw Error("name '"+n+"' does not exist in "+this);return delete this.valuesById[r],delete this.values[n],delete this.comments[n],this.valuesOptions&&delete this.valuesOptions[n],this},"remove"),p.prototype.isReservedId=s(function(n){return f.isReservedId(this.reserved,n)},"isReservedId"),p.prototype.isReservedName=s(function(n){return f.isReservedName(this.reserved,n)},"isReservedName"),dt}g(ue,"require_enum");var vt,Nr;function zr(){if(Nr)return vt;Nr=1;var w=Object.defineProperty,s=g((r,u)=>w(r,"name",{value:u,configurable:!0}),"a");vt=n;var y=ue(),f=he(),v=ee();function p(r,u,o,e){return u.delimited?r("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",o,e,(u.id<<3|3)>>>0,(u.id<<3|4)>>>0):r("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",o,e,(u.id<<3|2)>>>0)}g(p,"genTypePartial"),s(p,"genTypePartial");function n(r){for(var u=v.codegen(["m","w"],r.name+"$encode")("if(!w)")("w=Writer.create()"),c,o,e=r.fieldsArray.slice().sort(v.compareFieldsById),c=0;c<e.length;++c){var i=e[c].resolve(),t=r._fieldsArray.indexOf(i),a=i.resolvedType instanceof y?"int32":i.type,h=f.basic[a];o="m"+v.safeProp(i.name),i.map?(u("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",o,i.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",o),i.keyType==="bool"?u("w.uint32(%i).fork().uint32(%i).bool(util.boolFromKey(ks[i]))",(i.id<<3|2)>>>0,8|f.mapKey[i.keyType]):f.long[i.keyType]!==void 0?u("w.uint32(%i).fork().uint32(%i).%s(util.longFromKey(ks[i],%j))",(i.id<<3|2)>>>0,8|f.mapKey[i.keyType],i.keyType,i.keyType==="uint64"||i.keyType==="fixed64"):u("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(i.id<<3|2)>>>0,8|f.mapKey[i.keyType],i.keyType),h===void 0?u("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",t,o):u(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|h,a,o),u("}")("}")):i.repeated?(u("if(%s!=null&&%s.length){",o,o),i.packed&&f.packed[a]!==void 0?u("w.uint32(%i).fork()",(i.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",o)("w.%s(%s[i])",a,o)("w.ldelim()"):(u("for(var i=0;i<%s.length;++i)",o),h===void 0?p(u,i,t,o+"[i]"):u("w.uint32(%i).%s(%s[i])",(i.id<<3|h)>>>0,a,o)),u("}")):(i.required||u("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",o,i.name),h===void 0?p(u,i,t,o):u("w.uint32(%i).%s(%s)",(i.id<<3|h)>>>0,a,o))}return u('if(m.$unknowns!=null&&Object.hasOwnProperty.call(m,"$unknowns"))')("for(var i=0;i<m.$unknowns.length;++i)")("w.raw(m.$unknowns[i])")("return w")}return g(n,"encoder"),s(n,"encoder"),vt}g(zr,"requireEncoder");var Sr;function yi(){if(Sr)return Te.exports;Sr=1;var w=Object.defineProperty,s=g((p,n)=>w(p,"name",{value:n,configurable:!0}),"i"),y=Te.exports=ci();y.build="light";function f(p,n,r){return typeof n=="function"?(r=n,n=new y.Root):n||(n=new y.Root),n.load(p,r)}g(f,"load"),s(f,"load"),y.load=f;function v(p,n){return n||(n=new y.Root),n.loadSync(p)}return g(v,"loadSync"),s(v,"loadSync"),y.loadSync=v,y.encoder=zr(),y.decoder=Jr(),y.verifier=Vr(),y.converter=Ur(),y.ReflectionObject=pe(),y.Namespace=Oe(),y.Root=At(),y.Enum=ue(),y.Type=Rt(),y.Field=ce(),y.OneOf=ye(),y.MapField=Ot(),y.Service=kt(),y.Method=jt(),y.Message=Et(),y.wrappers=$r(),y.types=he(),y.util=ee(),y.ReflectionObject._configure(y.Root),y.Namespace._configure(y.Type,y.Service,y.Enum),y.Root._configure(y.Type),y.Field._configure(y.Type),Te.exports}g(yi,"requireIndexLight");var yt,Tr;function Zr(){if(Tr)return yt;Tr=1;var w=Object.defineProperty,s=g((t,a)=>w(t,"name",{value:a,configurable:!0}),"l");yt=i;var y=/[\s{}=;:[\],'"()<>]/g,f=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,v=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,p=/^ *[*/]+ */,n=/^\s*\*?\/*/,r=/\n/g,u=/\s/,o=/\\(.?)/g,e={0:"\0",r:"\r",n:`
25
+ `,t:" "};function c(t){return t.replace(o,function(a,h){switch(h){case"\\":case"":return h;default:return e[h]||""}})}g(c,"unescape"),s(c,"unescape"),i.unescape=c;function i(t,a){t=t.toString();var h=0,m=t.length,b=1,S=0,d={},_=[],R=null;function P(O){return Error("illegal "+O+" (line "+b+")")}g(P,"k"),s(P,"illegal");function I(){var O=R==="'"?v:f;O.lastIndex=h-1;var x=O.exec(t);if(!x)throw P("string");return h=O.lastIndex,B(R),R=null,c(x[1])}g(I,"D"),s(I,"readString");function L(O){return t.charAt(O)}g(L,"a"),s(L,"charAt");function W(O,x,q){var C={type:t.charAt(O++),lineEmpty:!1,leading:q},M;a?M=2:M=3;var D=O-M,V;do if(--D<0||(V=t.charAt(D))===`
26
+ `){C.lineEmpty=!0;break}while(V===" "||V===" ");for(var U=t.substring(O,x).split(r),Z=0;Z<U.length;++Z)U[Z]=U[Z].replace(a?n:p,"").trim();C.text=U.join(`
27
+ `).trim(),d[b]=C,S=b}g(W,"b"),s(W,"setComment");function te(O){var x=J(O),q=t.substring(O,x),C=/^\s*\/\//.test(q);return C}g(te,"C"),s(te,"isDoubleSlashCommentLine");function J(O){for(var x=O;x<m&&L(x)!==`
28
+ `;)x++;return x}g(J,"y"),s(J,"findEndOfLine");function $(){if(_.length>0)return _.shift();if(R)return I();var O,x,q,C,M,D,V=h===0;do{if(h===m)return null;for(O=!1;u.test(q=L(h));)if(q===`
29
+ `&&(V=!0,++b),++h===m)return null;if(L(h)==="/"){if(++h===m)throw P("comment");if(L(h)==="/")if(a){if(C=h,M=!1,te(h-1)){M=!0;do{if(h=J(h),h===m||(h++,!V))break;D=te(h),D&&b++}while(D)}else h=Math.min(m,J(h)+1);M&&(W(C,h,V),V=!0),b++,O=!0}else{for(M=L(C=h+1)==="/";L(++h)!==`
30
+ `;)if(h===m)return null;++h,M&&(W(C,h-1,V),V=!0),++b,O=!0}else if((q=L(h))==="*"){C=h+1,M=a||L(C)==="*";do{if(q===`
31
+ `&&++b,++h===m)throw P("comment");x=q,q=L(h)}while(x!=="*"||q!=="/");++h,M&&(W(C,h-2,V),V=!0),O=!0}else return"/"}}while(O);var U=h;y.lastIndex=0;var Z=y.test(L(U++));if(!Z)for(;U<m&&!y.test(L(U));)++U;var X=t.substring(h,h=U);return(X==='"'||X==="'")&&(R=X),X}g($,"R"),s($,"next");function B(O){_.push(O)}g(B,"E"),s(B,"push");function z(){if(!_.length){var O=$();if(O===null)return null;B(O)}return _[0]}g(z,"A"),s(z,"peek");function j(O,x){var q=z(),C=q===O;if(C)return $(),!0;if(!x)throw P("token '"+q+"', '"+O+"' expected");return!1}g(j,"I"),s(j,"skip");function l(O){var x=null,q;return O===void 0?(q=d[b-1],delete d[b-1],q&&(a||q.type==="*"||q.lineEmpty)&&(x=q.leading?q.text:null)):(S<O&&z(),q=d[O],delete d[O],q&&!q.lineEmpty&&(a||q.type==="/")&&(x=q.leading?null:q.text)),x}return g(l,"O"),s(l,"cmnt"),Object.defineProperty({next:$,peek:z,push:B,skip:j,cmnt:l},"line",{get:s(function(){return b},"get")})}return g(i,"tokenize"),s(i,"tokenize"),yt}g(Zr,"requireTokenize");var mt,Pr;function mi(){if(Pr)return mt;Pr=1;var w=Object.defineProperty,s=g((L,W)=>w(L,"name",{value:W,configurable:!0}),"u");mt=I,I.filename=null,I.defaults={keepCase:!1};var y=Zr(),f=At(),v=Rt(),p=ce(),n=Ot(),r=ye(),u=ue(),o=kt(),e=jt(),c=pe(),i=he(),t=ee(),a=/^[1-9][0-9]*$/,h=/^-?[1-9][0-9]*$/,m=/^0[x][0-9a-fA-F]+$/,b=/^-?0[x][0-9a-fA-F]+$/,S=/^0[0-7]+$/,d=/^-?0[0-7]+$/,_=t.patterns.numberRe,R=/^[a-zA-Z_][a-zA-Z_0-9]*$/,P=t.patterns.typeRefRe;function I(L,W,te){W instanceof f||(te=W,W=new f),te||(te=I.defaults);var J=te.preferTrailingComment||!1,$=y(L,te.alternateCommentMode||!1),B=$.next,z=$.push,j=$.peek,l=$.skip,O=$.cmnt,x=!0,q,C,M,D="proto2",V=W,U=[],Z={},X=te.keepCase?function(E){return E}:t.camelCase;function Y(){U.forEach(E=>{E._edition=D,Object.keys(Z).forEach(k=>{E.getOption(k)===void 0&&E.setOption(k,Z[k],!0)})})}g(Y,"D"),s(Y,"resolveFileFeatures");function F(E,k,A){var N=I.filename;return A||(I.filename=null),Error("illegal "+(k||"token")+" '"+E+"' ("+(N?N+", ":"")+"line "+$.line+")")}g(F,"f"),s(F,"illegal");function oe(){var E=[],k;do{if((k=B())!=='"'&&k!=="'")throw F(k);E.push(B()),l(k),k=j()}while(k==='"'||k==="'");return E.join("")}g(oe,"R"),s(oe,"readString");function je(E){var k=B();switch(k){case"'":case'"':return z(k),oe();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return Nt(k,!0)}catch{if(E&&P.test(k))return k;throw F(k,"value")}}g(je,"Z"),s(je,"readValue");function me(E,k){var A,N;do if(k&&((A=j())==='"'||A==="'")){var T=oe();if(E.push(T),D>=2023)throw F(T,"id")}else try{E.push([N=le(B()),l("to",!0)?le(B()):N])}catch(K){if(k&&P.test(A)&&D>=2023)E.push(A);else throw K}while(l(",",!0));var H={options:void 0};H.setOption=function(K,G){this.options===void 0&&(this.options={}),this.options[K]=G},se(H,s(function(K){if(K==="option")ae(H,K),l(";");else throw F(K)},"parseRange_block"),s(function(){_e(H)},"parseRange_line"))}g(me,"M"),s(me,"readRanges");function Nt(E,k){var A=1;switch(E.charAt(0)==="-"&&(A=-1,E=E.substring(1)),E){case"inf":case"INF":case"Inf":return A*(1/0);case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(a.test(E))return A*parseInt(E,10);if(m.test(E))return A*parseInt(E,16);if(S.test(E))return A*parseInt(E,8);if(_.test(E))return A*parseFloat(E);throw F(E,"number",k)}g(Nt,"H"),s(Nt,"parseNumber");function le(E,k){switch(E){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!k&&E.charAt(0)==="-")throw F(E,"id");if(h.test(E))return parseInt(E,10);if(b.test(E))return parseInt(E,16);if(d.test(E))return parseInt(E,8);throw F(E,"id")}g(le,"I"),s(le,"parseId");function St(){if(q!==void 0)throw F("package");if(q=B(),!P.test(q))throw F(q,"name");V=V.define(q),l(";")}g(St,"J"),s(St,"parsePackage");function Tt(){var E=j(),k;switch(E){case"option":if(D<"2024")throw F("option");B(),oe(),l(";");return;case"weak":k=M||(M=[]),B();break;case"public":B();default:k=C||(C=[]);break}E=oe(),l(";"),k.push(E)}g(Tt,"Q"),s(Tt,"parseImport");function Pt(){if(l("="),D=oe(),D<2023)throw F(D,"syntax");l(";")}g(Pt,"Y"),s(Pt,"parseSyntax");function xt(){if(l("="),D=oe(),!["2023","2024"].includes(D))throw F(D,"edition");l(";")}g(xt,"j"),s(xt,"parseEdition");function ge(E,k,A){switch(A===void 0&&(A=0),k){case"option":return ae(E,k),l(";"),!0;case"message":return be(E,k,A+1),!0;case"enum":return Ae(E,k),!0;case"export":case"local":return D<"2024"||(k=B(),k==="export"||k==="local")||k!=="message"&&k!=="enum"?!1:ge(E,k,A);case"service":return Dt(E,k,A+1),!0;case"extend":return Mt(E,k,A),!0}return!1}g(ge,"A"),s(ge,"parseCommon");function se(E,k,A){var N=$.line;if(E&&(typeof E.comment!="string"&&(E.comment=O()),E.filename=I.filename),l("{",!0)){for(var T;(T=B())!=="}";)k(T);l(";",!0)}else A&&A(),l(";"),E&&(typeof E.comment!="string"||J)&&(E.comment=O(N)||E.comment)}g(se,"v"),s(se,"ifBlock");function be(E,k,A){if(A===void 0&&(A=0),A>t.nestingLimit)throw Error("max depth exceeded");if(!R.test(k=B()))throw F(k,"type name");var N=new v(k);se(N,s(function(T){if(!ge(N,T,A))switch(T){case";":break;case"map":Bt(N);break;case"required":if(D!=="proto2")throw F(T);case"repeated":ne(N,T,void 0,A+1);break;case"optional":if(D==="proto3")ne(N,"proto3_optional",void 0,A+1);else{if(D!=="proto2")throw F(T);ne(N,"optional",void 0,A+1)}break;case"oneof":Ft(N,T,A+1);break;case"extensions":me(N.extensions||(N.extensions=[]));break;case"reserved":me(N.reserved||(N.reserved=[]),!0);break;default:if(D==="proto2"||!P.test(T))throw F(T);z(T),ne(N,"optional",void 0,A+1);break}},"parseType_block")),E.add(N),E===V&&U.push(N)}g(be,"C"),s(be,"parseType");function ne(E,k,A,N){var T=B();if(T==="group"){qt(E,k,A,N);return}for(;T.endsWith(".")||j().startsWith(".");)T+=B();if(!P.test(T))throw F(T,"type");var H=B();if(!R.test(H))throw F(H,"name");H=X(H),l("=");var K=new p(H,le(B()),T,k,A);if(se(K,s(function(ie){if(ie==="option")ae(K,ie),l(";");else throw F(ie)},"parseField_block"),s(function(){_e(K)},"parseField_line")),k==="proto3_optional"){var G=new r("_"+H);K.setOption("proto3_optional",!0),G.add(K),E.add(G)}else E.add(K);E===V&&U.push(K)}g(ne,"h"),s(ne,"parseField");function qt(E,k,A,N){if(N===void 0&&(N=0),N>t.nestingLimit)throw Error("max depth exceeded");if(D>=2023)throw F("group");var T=B();if(!R.test(T))throw F(T,"name");var H=t.lcFirst(T);T===H&&(T=t.ucFirst(T)),l("=");var K=le(B()),G=new v(T);G.group=!0;var ie=new p(H,K,T,k,A);ie.filename=I.filename,se(G,s(function(Q){switch(Q){case";":break;case"option":ae(G,Q),l(";");break;case"required":case"repeated":ne(G,Q,void 0,N+1);break;case"optional":D==="proto3"?ne(G,"proto3_optional",void 0,N+1):ne(G,"optional",void 0,N+1);break;case"message":be(G,Q,N+1);break;case"enum":Ae(G,Q);break;case"reserved":me(G.reserved||(G.reserved=[]),!0);break;case"export":case"local":if(D<"2024")throw F(Q);switch(Q=B(),Q){case"message":be(G,Q,N+1);break;case"enum":be(G,Q,N+1);break;default:throw F(Q)}break;default:throw F(Q)}},"parseGroup_block")),E.add(G).add(ie),E===V&&(U.push(G),U.push(ie))}g(qt,"k"),s(qt,"parseGroup");function Bt(E){l("<");var k=B();if(i.mapKey[k]===void 0)throw F(k,"type");l(",");var A=B();if(!P.test(A))throw F(A,"type");l(">");var N=B();if(!R.test(N))throw F(N,"name");l("=");var T=new n(X(N),le(B()),k,A);se(T,s(function(H){if(H==="option")ae(T,H),l(";");else throw F(H)},"parseMapField_block"),s(function(){_e(T)},"parseMapField_line")),E.add(T)}g(Bt,"ee"),s(Bt,"parseMapField");function Ft(E,k,A){if(!R.test(k=B()))throw F(k,"name");var N=new r(X(k));se(N,s(function(T){T==="option"?(ae(N,T),l(";")):(z(T),ne(N,"optional",void 0,A))},"parseOneOf_block")),E.add(N)}g(Ft,"re"),s(Ft,"parseOneOf");function Ae(E,k){if(!R.test(k=B()))throw F(k,"name");var A=new u(k);se(A,s(function(N){switch(N){case";":break;case"option":ae(A,N),l(";");break;case"reserved":me(A.reserved||(A.reserved=[]),!0),A.reserved===void 0&&(A.reserved=[]);break;default:It(A,N)}},"parseEnum_block")),E.add(A),E===V&&U.push(A)}g(Ae,"K"),s(Ae,"parseEnum");function It(E,k){if(!R.test(k))throw F(k,"name");l("=");var A=le(B(),!0),N={options:void 0};N.getOption=function(T){return this.options[T]},N.setOption=function(T,H){c.prototype.setOption.call(N,T,H)},N.setParsedOption=function(){},se(N,s(function(T){if(T==="option")ae(N,T),l(";");else throw F(T)},"parseEnumValue_block"),s(function(){_e(N)},"parseEnumValue_line")),E.add(k,A,N.comment,N.parsedOptions||N.options)}g(It,"ie"),s(It,"parseEnumValue");function ae(E,k){var A,N,T=!0;for(k==="option"&&(k=B());k!=="=";){if(k==="("){var H=B();l(")"),k="("+H+")"}if(T){if(T=!1,k.includes(".")&&!k.includes("(")){var K=k.split(".");A=K[0]+".",k=K[1];continue}A=k}else N=N?N+=k:k;k=B()}var G=N?A.concat(N):A,ie=Ne(E,G);N=N&&N[0]==="."?N.slice(1):N,A=A&&A[A.length-1]==="."?A.slice(0,-1):A,Lt(E,A,ie,N)}g(ae,"b"),s(ae,"parseOption");function Ne(E,k,A){if(A===void 0&&(A=0),A>t.recursionLimit)throw Error("max depth exceeded");if(l("{",!0)){for(var N={};!l("}",!0);){if(!R.test(re=B()))throw F(re,"name");if(re===null)throw F(re,"end of input");var T,H=re;if(l(":",!0),j()==="{")T=Ne(E,k+"."+re,A+1);else if(j()==="["){T=[];var K;if(l("[",!0)&&!l("]",!0)){do K=je(!0),T.push(K);while(l(",",!0));l("]"),typeof K<"u"&&ke(E,k+"."+re,K)}}else T=je(!0),ke(E,k+"."+re,T);var G=N[H];G&&(T=[].concat(G).concat(T)),H!=="__proto__"&&(N[H]=T),l(",",!0),l(";",!0)}return N}var ie=je(!0);return ke(E,k,ie),ie}g(Ne,"U"),s(Ne,"parseOptionValue");function ke(E,k,A){if(V===E&&/^features\./.test(k)){Z[k]=A;return}E.setOption&&E.setOption(k,A)}g(ke,"B"),s(ke,"setOption");function Lt(E,k,A,N){E.setParsedOption&&E.setParsedOption(k,A,N)}g(Lt,"ae"),s(Lt,"setParsedOption");function _e(E){if(l("[",!0)){do ae(E,"option");while(l(",",!0));l("]")}return E}g(_e,"L"),s(_e,"parseInlineOptions");function Dt(E,k,A){if(A===void 0&&(A=0),A>t.recursionLimit)throw Error("max depth exceeded");if(!R.test(k=B()))throw F(k,"service name");var N=new o(k);se(N,s(function(T){if(!ge(N,T,A)&&T!==";")if(T==="rpc")Ct(N,T);else throw F(T)},"parseService_block")),E.add(N),E===V&&U.push(N)}g(Dt,"te"),s(Dt,"parseService");function Ct(E,k){var A=O(),N=k;if(!R.test(k=B()))throw F(k,"name");var T=k,H,K,G,ie;if(l("("),l("stream",!0)&&(K=!0),!P.test(k=B())||(H=k,l(")"),l("returns"),l("("),l("stream",!0)&&(ie=!0),!P.test(k=B())))throw F(k);G=k,l(")");var Q=new e(T,N,H,G,K,ie);Q.comment=A,se(Q,s(function(Ee){if(Ee!==";")if(Ee==="option")ae(Q,Ee),l(";");else throw F(Ee)},"parseMethod_block")),E.add(Q)}g(Ct,"se"),s(Ct,"parseMethod");function Mt(E,k,A){if(!P.test(k=B()))throw F(k,"reference");var N=k;se(null,s(function(T){switch(T){case"required":case"repeated":ne(E,T,N,A+1);break;case"optional":D==="proto3"?ne(E,"proto3_optional",N,A+1):ne(E,"optional",N,A+1);break;default:if(D==="proto2"||!P.test(T))throw F(T);z(T),ne(E,"optional",N,A+1);break}},"parseExtension_block"))}g(Mt,"ne"),s(Mt,"parseExtension");for(var re;(re=B())!==null;)switch(re){case";":break;case"package":if(!x)throw F(re);St();break;case"import":Tt();break;case"syntax":if(!x)throw F(re);Pt();break;case"edition":if(!x)throw F(re);xt();break;case"option":ae(V,re),l(";",!0);break;default:if(ge(V,re,0)){x=!1;continue}throw F(re)}return Y(),I.filename=null,{package:q,imports:C,weakImports:M,root:W}}return g(I,"parse"),s(I,"parse"),mt}g(mi,"requireParse");var gt,xr;function gi(){if(xr)return gt;xr=1;var w=Object.defineProperty,s=g((p,n)=>w(p,"name",{value:n,configurable:!0}),"t");gt=f;var y=/\/|\./;function f(p,n){y.test(p)||(p="google/protobuf/"+p+".proto",n={nested:{google:{nested:{protobuf:{nested:n}}}}}),f[p]=n}g(f,"common"),s(f,"common"),f("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}});var v;return f("duration",{Duration:v={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),f("timestamp",{Timestamp:v}),f("empty",{Empty:{fields:{}}}),f("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}}}}),f("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}}}}),f("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),f.get=s(function(p){return f[p]||null},"get"),gt}g(gi,"requireCommon");var qr;function bi(){if(qr)return Se.exports;qr=1;var w=Se.exports=yi();return w.build="full",w.tokenize=Zr(),w.parse=mi(),w.common=gi(),w.Root._configure(w.Type,w.parse,w.common),Se.exports}g(bi,"requireSrc");var bt,Br;function _i(){return Br||(Br=1,bt=bi()),bt}g(_i,"requireProtobufjs");var Wr=_i();const wi=Fr(Wr),ji=Kr({__proto__:null,default:wi},[Wr]);export{ji as i};