MCPcopy Index your code
hub / github.com/ChinaSiro/claude-code-sourcemap / RNz

Function RNz

package/cli.js:2079–2079  ·  view source on GitHub ↗
(q,K,_)

Source from the content-addressed store, hash-verified

2077`))||"no stack trace available"}class Ol4{constructor(q,K,_={}){var z,Y;if(_=Object.assign({},_),this[Zy6]=(z=_.interceptors)!==null&&z!==void 0?z:[],delete _.interceptors,this[Gy6]=(Y=_.interceptor_providers)!==null&&Y!==void 0?Y:[],delete _.interceptor_providers,this[Zy6].length>0&&this[Gy6].length>0)throw Error("Both interceptors and interceptor_providers were passed as options to the client constructor. Only one of these is allowed.");if(this[Do]=_.callInvocationTransformer,delete _.callInvocationTransformer,_.channelOverride)this[km]=_.channelOverride;else if(_.channelFactoryOverride){let $=_.channelFactoryOverride;delete _.channelFactoryOverride,this[km]=$(q,K,_)}else this[km]=new ckz.ChannelImplementation(q,K,_)}close(){this[km].close()}getChannel(){return this[km]}waitForReady(q,K){let _=(z)=>{if(z){K(Error("Failed to connect before the deadline"));return}let Y;try{Y=this[km].getConnectivityState(!0)}catch($){K(Error("The channel has been closed"));return}if(Y===lkz.ConnectivityState.READY)K();else try{this[km].watchConnectivityState(Y,q,_)}catch($){K(Error("The channel has been closed"))}};setImmediate(_)}checkOptionalUnaryResponseArguments(q,K,_){if(Kd1(q))return{metadata:new fy6.Metadata,options:{},callback:q};else if(Kd1(K))if(q instanceof fy6.Metadata)return{metadata:q,options:{},callback:K};else return{metadata:new fy6.Metadata,options:q,callback:K};else{if(!(q instanceof fy6.Metadata&&K instanceof Object&&Kd1(_)))throw Error("Incorrect arguments passed");return{metadata:q,options:K,callback:_}}}makeUnaryRequest(q,K,_,z,Y,$,A){var O,w;let j=this.checkOptionalUnaryResponseArguments(Y,$,A),H={path:q,requestStream:!1,responseStream:!1,requestSerialize:K,responseDeserialize:_},J={argument:z,metadata:j.metadata,call:new qQ.ClientUnaryCallImpl,channel:this[km],methodDefinition:H,callOptions:j.options,callback:j.callback};if(this[Do])J=this[Do](J);let M=J.call,X={clientInterceptors:this[Zy6],clientInterceptorProviders:this[Gy6],callInterceptors:(O=J.callOptions.interceptors)!==null&&O!==void 0?O:[],callInterceptorProviders:(w=J.callOptions.interceptor_providers)!==null&&w!==void 0?w:[]},P=(0,qh8.getInterceptingCall)(X,J.methodDefinition,J.callOptions,J.channel);M.call=P;let W=null,D=!1,f=Error();return P.start(J.metadata,{onReceiveMetadata:(G)=>{M.emit("metadata",G)},onReceiveMessage(G){if(W!==null)P.cancelWithStatus(f46.Status.UNIMPLEMENTED,"Too many responses received");W=G},onReceiveStatus(G){if(D)return;if(D=!0,G.code===f46.Status.OK)if(W===null){let Z=Ty6(f);J.callback((0,qQ.callErrorFromStatus)({code:f46.Status.UNIMPLEMENTED,details:"No message received",metadata:G.metadata},Z))}else J.callback(null,W);else{let Z=Ty6(f);J.callback((0,qQ.callErrorFromStatus)(G,Z))}f=null,M.emit("status",G)}}),P.sendMessage(z),P.halfClose(),M}makeClientStreamRequest(q,K,_,z,Y,$){var A,O;let w=this.checkOptionalUnaryResponseArguments(z,Y,$),j={path:q,requestStream:!0,responseStream:!1,requestSerialize:K,responseDeserialize:_},H={metadata:w.metadata,call:new qQ.ClientWritableStreamImpl(K),channel:this[km],methodDefinition:j,callOptions:w.options,callback:w.callback};if(this[Do])H=this[Do](H);let J=H.call,M={clientInterceptors:this[Zy6],clientInterceptorProviders:this[Gy6],callInterceptors:(A=H.callOptions.interceptors)!==null&&A!==void 0?A:[],callInterceptorProviders:(O=H.callOptions.interceptor_providers)!==null&&O!==void 0?O:[]},X=(0,qh8.getInterceptingCall)(M,H.methodDefinition,H.callOptions,H.channel);J.call=X;let P=null,W=!1,D=Error();return X.start(H.metadata,{onReceiveMetadata:(f)=>{J.emit("metadata",f)},onReceiveMessage(f){if(P!==null)X.cancelWithStatus(f46.Status.UNIMPLEMENTED,"Too many responses received");P=f,X.startRead()},onReceiveStatus(f){if(W)return;if(W=!0,f.code===f46.Status.OK)if(P===null){let G=Ty6(D);H.callback((0,qQ.callErrorFromStatus)({code:f46.Status.UNIMPLEMENTED,details:"No message received",metadata:f.metadata},G))}else H.callback(null,P);else{let G=Ty6(D);H.callback((0,qQ.callErrorFromStatus)(f,G))}D=null,J.emit("status",f)}}),J}checkMetadataAndOptions(q,K){let _,z;if(q instanceof fy6.Metadata)if(_=q,K)z=K;else z={};else{if(q)z=q;else z={};_=new fy6.Metadata}return{metadata:_,options:z}}makeServerStreamRequest(q,K,_,z,Y,$){var A,O;let w=this.checkMetadataAndOptions(Y,$),j={path:q,requestStream:!1,responseStream:!0,requestSerialize:K,responseDeserialize:_},H={argument:z,metadata:w.metadata,call:new qQ.ClientReadableStreamImpl(_),channel:this[km],methodDefinition:j,callOptions:w.options};if(this[Do])H=this[Do](H);let J=H.call,M={clientInterceptors:this[Zy6],clientInterceptorProviders:this[Gy6],callInterceptors:(A=H.callOptions.interceptors)!==null&&A!==void 0?A:[],callInterceptorProviders:(O=H.callOptions.interceptor_providers)!==null&&O!==void 0?O:[]},X=(0,qh8.getInterceptingCall)(M,H.methodDefinition,H.callOptions,H.channel);J.call=X;let P=!1,W=Error();return X.start(H.metadata,{onReceiveMetadata(D){J.emit("metadata",D)},onReceiveMessage(D){J.push(D)},onReceiveStatus(D){if(P)return;if(P=!0,J.push(null),D.code!==f46.Status.OK){let f=Ty6(W);J.emit("error",(0,qQ.callErrorFromStatus)(D,f))}W=null,J.emit("status",D)}}),X.sendMessage(z),X.halfClose(),J}makeBidiStreamRequest(q,K,_,z,Y){var $,A;let O=this.checkMetadataAndOptions(z,Y),w={path:q,requestStream:!0,responseStream:!0,requestSerialize:K,responseDeserialize:_},j={metadata:O.metadata,call:new qQ.ClientDuplexStreamImpl(K,_),channel:this[km],methodDefinition:w,callOptions:O.options};if(this[Do])j=this[Do](j);let H=j.call,J={clientInterceptors:this[Zy6],clientInterceptorProviders:this[Gy6],callInterceptors:($=j.callOptions.interceptors)!==null&&$!==void 0?$:[],callInterceptorProviders:(A=j.callOptions.interceptor_providers)!==null&&A!==void 0?A:[]},M=(0,qh8.getInterceptingCall)(J,j.methodDefinition,j.callOptions,j.channel);H.call=M;let X=!1,P=Error();return M.start(j.metadata,{onReceiveMetadata(W){H.emit("metadata",W)},onReceiveMessage(W){H.push(W)},onReceiveStatus(W){if(X)return;if(X=!0,H.push(null),W.code!==f46.Status.OK){let D=Ty6(P);H.emit("error",(0,qQ.callErrorFromStatus)(W,D))}P=null,H.emit("status",W)}}),H}}wl4.Client=Ol4});var Kh8=m((Jl4)=>{Object.defineProperty(Jl4,"__esModule",{value:!0});Jl4.makeClientConstructor=Hl4;Jl4.loadPackageDefinition=okz;var Bs6=_d1(),nkz={unary:Bs6.Client.prototype.makeUnaryRequest,server_stream:Bs6.Client.prototype.makeServerStreamRequest,client_stream:Bs6.Client.prototype.makeClientStreamRequest,bidi:Bs6.Client.prototype.makeBidiStreamRequest};function Yd1(q){return["__proto__","prototype","constructor"].includes(q)}function Hl4(q,K,_){if(!_)_={};class z extends Bs6.Client{}return Object.keys(q).forEach((Y)=>{if(Yd1(Y))return;let $=q[Y],A;if(typeof Y==="string"&&Y.charAt(0)==="$")throw Error("Method names cannot start with $");if($.requestStream)if($.responseStream)A="bidi";else A="client_stream";else if($.responseStream)A="server_stream";else A="unary";let{requestSerialize:O,responseDeserialize:w}=$,j=ikz(nkz[A],$.path,O,w);if(z.prototype[Y]=j,Object.assign(z.prototype[Y],$),$.originalName&&!Yd1($.originalName))z.prototype[$.originalName]=z.prototype[Y]}),z.service=q,z.serviceName=K,z}function ikz(q,K,_,z){return function(...Y){return q.call(this,K,_,z,...Y)}}function rkz(q){return"format"in q}function okz(q){let K={};for(let _ in q)if(Object.prototype.hasOwnProperty.call(q,_)){let z=q[_],Y=_.split(".");if(Y.some((O)=>Yd1(O)))continue;let $=Y[Y.length-1],A=K;for(let O of Y.slice(0,-1)){if(!A[O])A[O]={};A=A[O]}if(rkz(z))A[$]=z;else A[$]=Hl4(z,$,{})}return K}});var ml4=m((_LO,ul4)=>{var tkz=1/0,ekz="[object Symbol]",qVz=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,KVz=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zh8="\\ud800-\\udfff",Gl4="\\u0300-\\u036f\\ufe20-\\ufe23",Tl4="\\u20d0-\\u20f0",vl4="\\u2700-\\u27bf",kl4="a-z\\xdf-\\xf6\\xf8-\\xff",_Vz="\\xac\\xb1\\xd7\\xf7",zVz="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",YVz="\\u2000-\\u206f",$Vz=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Vl4="A-Z\\xc0-\\xd6\\xd8-\\xde",Nl4="\\ufe0e\\ufe0f",yl4=_Vz+zVz+YVz+$Vz,Ad1="['’]",AVz="["+zh8+"]",Ml4="["+yl4+"]",_h8="["+Gl4+Tl4+"]",El4="\\d+",OVz="["+vl4+"]",Ll4="["+kl4+"]",Rl4="[^"+zh8+yl4+El4+vl4+kl4+Vl4+"]",$d1="\\ud83c[\\udffb-\\udfff]",wVz="(?:"+_h8+"|"+$d1+")",hl4="[^"+zh8+"]",Od1="(?:\\ud83c[\\udde6-\\uddff]){2}",wd1="[\\ud800-\\udbff][\\udc00-\\udfff]",vy6="["+Vl4+"]",Sl4="\\u200d",Xl4="(?:"+Ll4+"|"+Rl4+")",jVz="(?:"+vy6+"|"+Rl4+")",Pl4="(?:"+Ad1+"(?:d|ll|m|re|s|t|ve))?",Wl4="(?:"+Ad1+"(?:D|LL|M|RE|S|T|VE))?",Cl4=wVz+"?",bl4="["+Nl4+"]?",HVz="(?:"+Sl4+"(?:"+[hl4,Od1,wd1].join("|")+")"+bl4+Cl4+")*",xl4=bl4+Cl4+HVz,JVz="(?:"+[OVz,Od1,wd1].join("|")+")"+xl4,MVz="(?:"+[hl4+_h8+"?",_h8,Od1,wd1,AVz].join("|")+")",XVz=RegExp(Ad1,"g"),PVz=RegExp(_h8,"g"),WVz=RegExp($d1+"(?="+$d1+")|"+MVz+xl4,"g"),DVz=RegExp([vy6+"?"+Ll4+"+"+Pl4+"(?="+[Ml4,vy6,"$"].join("|")+")",jVz+"+"+Wl4+"(?="+[Ml4,vy6+Xl4,"$"].join("|")+")",vy6+"?"+Xl4+"+"+Pl4,vy6+"+"+Wl4,El4,JVz].join("|"),"g"),fVz=RegExp("["+Sl4+zh8+Gl4+Tl4+Nl4+"]"),ZVz=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,GVz={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},TVz=typeof global=="object"&&global&&global.Object===Object&&global,vVz=typeof self=="object"&&self&&self.Object===Object&&self,kVz=TVz||vVz||Function("return this")();function VVz(q,K,_,z){var Y=-1,$=q?q.length:0;if(z&&$)_=q[++Y];while(++Y<$)_=K(_,q[Y],Y,q);return _}function NVz(q){return q.split("")}function yVz(q){return q.match(qVz)||[]}function EVz(q){return function(K){return q==null?void 0:q[K]}}var LVz=EVz(GVz);function Il4(q){return fVz.test(q)}function RVz(q){return ZVz.test(q)}function hVz(q){return Il4(q)?SVz(q):NVz(q)}function SVz(q){return q.match(WVz)||[]}function CVz(q){return q.match(DVz)||[]}var bVz=Object.prototype,xVz=bVz.toString,Dl4=kVz.Symbol,fl4=Dl4?Dl4.prototype:void 0,Zl4=fl4?fl4.toString:void 0;function IVz(q,K,_){var z=-1,Y=q.length;if(K<0)K=-K>Y?0:Y+K;if(_=_>Y?Y:_,_<0)_+=Y;Y=K>_?0:_-K>>>0,K>>>=0;var $=Array(Y);while(++z<Y)$[z]=q[z+K];return $}function uVz(q){if(typeof q=="string")return q;if(FVz(q))return Zl4?Zl4.call(q):"";var K=q+"";return K=="0"&&1/q==-tkz?"-0":K}function mVz(q,K,_){var z=q.length;return _=_===void 0?z:_,!K&&_>=z?q:IVz(q,K,_)}function pVz(q){return function(K){K=Yh8(K);var _=Il4(K)?hVz(K):void 0,z=_?_[0]:K.charAt(0),Y=_?mVz(_,1).join(""):K.slice(1);return z[q]()+Y}}function BVz(q){return function(K){return VVz(lVz(dVz(K).replace(XVz,"")),q,"")}}function gVz(q){return!!q&&typeof q=="object"}function FVz(q){return typeof q=="symbol"||gVz(q)&&xVz.call(q)==ekz}function Yh8(q){return q==null?"":uVz(q)}var UVz=BVz(function(q,K,_){return K=K.toLowerCase(),q+(_?QVz(K):K)});function QVz(q){return cVz(Yh8(q).toLowerCase())}function dVz(q){return q=Yh8(q),q&&q.replace(KVz,LVz).replace(PVz,"")}var cVz=pVz("toUpperCase");function lVz(q,K,_){if(q=Yh8(q),K=_?void 0:K,K===void 0)return RVz(q)?CVz(q):yVz(q);return q.match(K)||[]}ul4.exports=UVz});var Bl4=m((zLO,pl4)=>{pl4.exports=jd1;function jd1(q,K){if(typeof q==="string")K=q,q=void 0;var _=[];function z($){if(typeof $!=="string"){var A=Y();if(jd1.verbose)console.log("codegen: "+A);if(A="return "+A,$){var O=Object.keys($),w=Array(O.length+1),j=Array(O.length),H=0;while(H<O.length)w[H]=O[H],j[H]=$[O[H++]];return w[H]=A,Function.apply(null,w).apply(null,j)}return Function(A)()}var J=Array(arguments.length-1),M=0;while(M<J.length)J[M]=arguments[++M];if(M=0,$=$.replace(/%([%dfijs])/g,function(P,W){var D=J[M++];switch(W){case"d":case"f":return String(Number(D));case"i":return String(Math.floor(D));case"j":return JSON.stringify(D);case"s":return String(D)}return"%"}),M!==J.length)throw Error("parameter count mismatch");return _.push($),z}function Y($){return"function "+($||K||"")+"("+(q&&q.join(",")||"")+`){
2078 `+_.join(`
2079 `)+`
2080}`}return z.toString=Y,z}jd1.verbose=!1});var Fl4=m((YLO,gl4)=>{gl4.exports=gs6;var nVz=rU1(),iVz=sU1(),Hd1=iVz("fs");function gs6(q,K,_){if(typeof K==="function")_=K,K={};else if(!K)K={};if(!_)return nVz(gs6,this,q,K);if(!K.xhr&&Hd1&&Hd1.readFile)return Hd1.readFile(q,function(Y,$){return Y&&typeof XMLHttpRequest<"u"?gs6.xhr(q,K,_):Y?_(Y):_(null,K.binary?$:$.toString("utf8"))});return gs6.xhr(q,K,_)}gs6.xhr=function(K,_,z){var Y=new XMLHttpRequest;if(Y.onreadystatechange=function(){if(Y.readyState!==4)return;if(Y.status!==0&&Y.status!==200)return z(Error("status "+Y.status));if(_.binary){var A=Y.response;if(!A){A=[];for(var O=0;O<Y.responseText.length;++O)A.push(Y.responseText.charCodeAt(O)&255)}return z(null,typeof Uint8Array<"u"?new Uint8Array(A):A)}return z(null,Y.responseText)},_.binary){if("overrideMimeType"in Y)Y.overrideMimeType("text/plain; charset=x-user-defined");Y.responseType="arraybuffer"}Y.open("GET",K),Y.send()}});var dl4=m((Ql4)=>{var Md1=Ql4,Ul4=Md1.isAbsolute=function(K){return/^(?:\/|\w+:)/.test(K)},Jd1=Md1.normalize=function(K){K=K.replace(/\\/g,"/").replace(/\/{2,}/g,"/");var _=K.split("/"),z=Ul4(K),Y="";if(z)Y=_.shift()+"/";for(var $=0;$<_.length;)if(_[$]==="..")if($>0&&_[$-1]!=="..")_.splice(--$,2);else if(z)_.splice($,1);else++$;else if(_[$]===".")_.splice($,1);else++$;return Y+_.join("/")};Md1.resolve=function(K,_,z){if(!z)_=Jd1(_);if(Ul4(_))return _;if(!z)K=Jd1(K);return(K=K.replace(/(?:\/|^)[^/]+$/,"")).length?Jd1(K+"/"+_):_}});var Vy6=m((ALO,nl4)=>{nl4.exports=gY;var $h8=G46();((gY.prototype=Object.create($h8.prototype)).constructor=gY).className="Namespace";var Xd1=Z46(),Ah8=kD(),rVz=P26(),M26,ky6,X26;gY.fromJSON=function(K,_){return new gY(K,_.options).addJSON(_.nested)};function cl4(q,K){if(!(q&&q.length))return;var _={};for(var z=0;z<q.length;++z)_[q[z].name]=q[z].toJSON(K);return _}gY.arrayToJSON=cl4;gY.isReservedId=function(K,_){if(K){for(var z=0;z<K.length;++z)if(typeof K[z]!=="string"&&K[z][0]<=_&&K[z][1]>_)return!0}return!1};gY.isReservedName=function(K,_){if(K){for(var z=0;z<K.length;++z)if(K[z]===_)return!0}return!1};function gY(q,K){$h8.call(this,q,K),this.nested=void 0,this._nestedArray=null,this._lookupCache={},this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0}function ll4(q){q._nestedArray=null,q._lookupCache={};var K=q;while(K=K.parent)K._lookupCache={};return q}Object.defineProperty(gY.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=Ah8.toArray(this.nested))}});gY.prototype.toJSON=function(K){return Ah8.toObject(["options",this.options,"nested",cl4(this.nestedArray,K)])};gY.prototype.addJSON=function(K){var _=this;if(K)for(var z=Object.keys(K),Y=0,$;Y<z.length;++Y)$=K[z[Y]],_.add(($.fields!==void 0?M26.fromJSON:$.values!==void 0?X26.fromJSON:$.methods!==void 0?ky6.fromJSON:$.id!==void 0?Xd1.fromJSON:gY.fromJSON)(z[Y],$));return this};gY.prototype.get=function(K){return this.nested&&this.nested[K]||null};gY.prototype.getEnum=function(K){if(this.nested&&this.nested[K]instanceof X26)return this.nested[K].values;throw Error("no such enum: "+K)};gY.prototype.add=function(K){if(!(K instanceof Xd1&&K.extend!==void 0||K instanceof M26||K instanceof rVz||K instanceof X26||K instanceof ky6||K instanceof gY))throw TypeError("object must be a valid nested object");if(!this.nested)this.nested={};else{var _=this.get(K.name);if(_)if(_ instanceof gY&&K instanceof gY&&!(_ instanceof M26||_ instanceof ky6)){var z=_.nestedArray;for(var Y=0;Y<z.length;++Y)K.add(z[Y]);if(this.remove(_),!this.nested)this.nested={};K.setOptions(_.options,!0)}else throw Error("duplicate name '"+K.name+"' in "+this)}if(this.nested[K.name]=K,!(this instanceof M26||this instanceof ky6||this instanceof X26||this instanceof Xd1)){if(!K._edition)K._edition=K._defaultEdition}this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0;var $=this;while($=$.parent)$._needsRecursiveFeatureResolution=!0,$._needsRecursiveResolve=!0;return K.onAdd(this),ll4(this)};gY.prototype.remove=function(K){if(!(K instanceof $h8))throw TypeError("object must be a ReflectionObject");if(K.parent!==this)throw Error(K+" is not a member of "+this);if(delete this.nested[K.name],!Object.keys(this.nested).length)this.nested=void 0;return K.onRemove(this),ll4(this)};gY.prototype.define=function(K,_){if(Ah8.isString(K))K=K.split(".");else if(!Array.isArray(K))throw TypeError("illegal path");if(K&&K.length&&K[0]==="")throw Error("path must be relative");var z=this;while(K.length>0){var Y=K.shift();if(z.nested&&z.nested[Y]){if(z=z.nested[Y],!(z instanceof gY))throw Error("path conflicts with non-namespace objects")}else z.add(z=new gY(Y))}if(_)z.addJSON(_);return z};gY.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var K=this.nestedArray,_=0;this.resolve();while(_<K.length)if(K[_]instanceof gY)K[_++].resolveAll();else K[_++].resolve();return this._needsRecursiveResolve=!1,this};gY.prototype._resolveFeaturesRecursive=function(K){if(!this._needsRecursiveFeatureResolution)return this;return this._needsRecursiveFeatureResolution=!1,K=this._edition||K,$h8.prototype._resolveFeaturesRecursive.call(this,K),this.nestedArray.forEach((_)=>{_._resolveFeaturesRecursive(K)}),this};gY.prototype.lookup=function(K,_,z){if(typeof _==="boolean")z=_,_=void 0;else if(_&&!Array.isArray(_))_=[_];if(Ah8.isString(K)&&K.length){if(K===".")return this.root;K=K.split(".")}else if(!K.length)return this;var Y=K.join(".");if(K[0]==="")return this.root.lookup(K.slice(1),_);var $=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+Y];if($&&(!_||_.indexOf($.constructor)>-1))return $;if($=this._lookupImpl(K,Y),$&&(!_||_.indexOf($.constructor)>-1))return $;if(z)return null;var A=this;while(A.parent){if($=A.parent._lookupImpl(K,Y),$&&(!_||_.indexOf($.constructor)>-1))return $;A=A.parent}return null};gY.prototype._lookupImpl=function(K,_){if(Object.prototype.hasOwnProperty.call(this._lookupCache,_))return this._lookupCache[_];var z=this.get(K[0]),Y=null;if(z){if(K.length===1)Y=z;else if(z instanceof gY)K=K.slice(1),Y=z._lookupImpl(K,K.join("."))}else for(var $=0;$<this.nestedArray.length;++$)if(this._nestedArray[$]instanceof gY&&(z=this._nestedArray[$]._lookupImpl(K,_)))Y=z;return this._lookupCache[_]=Y,Y};gY.prototype.lookupType=function(K){var _=this.lookup(K,[M26]);if(!_)throw Error("no such type: "+K);return _};gY.prototype.lookupEnum=function(K){var _=this.lookup(K,[X26]);if(!_)throw Error("no such Enum '"+K+"' in "+this);return _};gY.prototype.lookupTypeOrEnum=function(K){var _=this.lookup(K,[M26,X26]);if(!_)throw Error("no such Type or Enum '"+K+"' in "+this);return _};gY.prototype.lookupService=function(K){var _=this.lookup(K,[ky6]);if(!_)throw Error("no such Service '"+K+"' in "+this);return _};gY._configure=function(q,K,_){M26=q,ky6=K,X26=_}});var Oh8=m((OLO,il4)=>{il4.exports=fo;var Pd1=Z46();((fo.prototype=Object.create(Pd1.prototype)).constructor=fo).className="MapField";var oVz=W26(),Fs6=kD();function fo(q,K,_,z,Y,$){if(Pd1.call(this,q,K,z,void 0,void 0,Y,$),!Fs6.isString(_))throw TypeError("keyType must be a string");this.keyType=_,this.resolvedKeyType=null,this.map=!0}fo.fromJSON=function(K,_){return new fo(K,_.id,_.keyType,_.type,_.options,_.comment)};fo.prototype.toJSON=function(K){var _=K?Boolean(K.keepComments):!1;return Fs6.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",_?this.comment:void 0])};fo.prototype.resolve=function(){if(this.resolved)return this;if(oVz.mapKey[this.keyType]===void 0)throw Error("invalid key type: "+this.keyType);return Pd1.prototype.resolve.call(this)};fo.d=function(K,_,z){if(typeof z==="function")z=Fs6.decorateType(z).name;else if(z&&typeof z==="object")z=Fs6.decorateEnum(z).name;return function($,A){Fs6.decorateType($.constructor).add(new fo(A,K,_,z))}}});var wh8=m((wLO,rl4)=>{rl4.exports=D26;var Wd1=G46();((D26.prototype=Object.create(Wd1.prototype)).constructor=D26).className="Method";var Ny6=kD();function D26(q,K,_,z,Y,$,A,O,w){if(Ny6.isObject(Y))A=Y,Y=$=void 0;else if(Ny6.isObject($))A=$,$=void 0;if(!(K===void 0||Ny6.isString(K)))throw TypeError("type must be a string");if(!Ny6.isString(_))throw TypeError("requestType must be a string");if(!Ny6.isString(z))throw TypeError("responseType must be a string");Wd1.call(this,q,A),this.type=K||"rpc",this.requestType=_,this.requestStream=Y?!0:void 0,this.responseType=z,this.responseStream=$?!0:void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=O,this.parsedOptions=w}D26.fromJSON=function(K,_){return new D26(K,_.type,_.requestType,_.responseType,_.requestStream,_.responseStream,_.options,_.comment,_.parsedOptions)};D26.prototype.toJSON=function(K){var _=K?Boolean(K.keepComments):!1;return Ny6.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",_?this.comment:void 0,"parsedOptions",this.parsedOptions])};D26.prototype.resolve=function(){if(this.resolved)return this;return this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),Wd1.prototype.resolve.call(this)}});var jh8=m((jLO,al4)=>{al4.exports=FL;var Zo=Vy6();((FL.prototype=Object.create(Zo.prototype)).constructor=FL).className="Service";var Dd1=wh8(),Us6=kD(),aVz=jQ1();function FL(q,K){Zo.call(this,q,K),this.methods={},this._methodsArray=null}FL.fromJSON=function(K,_){var z=new FL(K,_.options);if(_.methods)for(var Y=Object.keys(_.methods),$=0;$<Y.length;++$)z.add(Dd1.fromJSON(Y[$],_.methods[Y[$]]));if(_.nested)z.addJSON(_.nested);if(_.edition)z._edition=_.edition;return z.comment=_.comment,z._defaultEdition="proto3",z};FL.prototype.toJSON=function(K){var _=Zo.prototype.toJSON.call(this,K),z=K?Boolean(K.keepComments):!1;return Us6.toObject(["edition",this._editionToJSON(),"options",_&&_.options||void 0,"methods",Zo.arrayToJSON(this.methodsArray,K)||{},"nested",_&&_.nested||void 0,"comment",z?this.comment:void 0])};Object.defineProperty(FL.prototype,"methodsArray",{get:function(){return this._methodsArray||(this._methodsArray=Us6.toArray(this.methods))}});function ol4(q){return q._methodsArray=null,q}FL.prototype.get=function(K){return this.methods[K]||Zo.prototype.get.call(this,K)};FL.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;Zo.prototype.resolve.call(this);var K=this.methodsArray;for(var _=0;_<K.length;++_)K[_].resolve();return this};FL.prototype._resolveFeaturesRecursive=function(K){if(!this._needsRecursiveFeatureResolution)return this;return K=this._edition||K,Zo.prototype._resolveFeaturesRecursive.call(this,K),this.methodsArray.forEach((_)=>{_._resolveFeaturesRecursive(K)}),this};FL.prototype.add=function(K){if(this.get(K.name))throw Error("duplicate name '"+K.name+"' in "+this);if(K instanceof Dd1)return this.methods[K.name]=K,K.parent=this,ol4(this);return Zo.prototype.add.call(this,K)};FL.prototype.remove=function(K){if(K instanceof Dd1){if(this.methods[K.name]!==K)throw Error(K+" is not a member of "+this);return delete this.methods[K.name],K.parent=null,ol4(this)}return Zo.prototype.remove.call(this,K)};FL.prototype.create=function(K,_,z){var Y=new aVz.Service(K,_,z);for(var $=0,A;$<this.methodsArray.length;++$){var O=Us6.lcFirst((A=this._methodsArray[$]).resolve().name).replace(/[^$\w_]/g,"");Y[O]=Us6.codegen(["r","c"],Us6.isReserved(O)?O+"_":O)("return this.rpcCall(m,q,s,r,c)")({m:A,q:A.resolvedRequestType.ctor,s:A.resolvedResponseType.ctor})}return Y}});var Hh8=m((HLO,sl4)=>{sl4.exports=KQ;var sVz=aU();function KQ(q){if(q)for(var K=Object.keys(q),_=0;_<K.length;++_)this[K[_]]=q[K[_]]}KQ.create=function(K){return this.$type.create(K)};KQ.encode=function(K,_){return this.$type.encode(K,_)};KQ.encodeDelimited=function(K,_){return this.$type.encodeDelimited(K,_)};KQ.decode=function(K){return this.$type.decode(K)};KQ.decodeDelimited=function(K){return this.$type.decodeDelimited(K)};KQ.verify=function(K){return this.$type.verify(K)};KQ.fromObject=function(K){return this.$type.fromObject(K)};KQ.toObject=function(K,_){return this.$type.toObject(K,_)};KQ.prototype.toJSON=function(){return this.$type.toObject(this,sVz.toJSONOptions)}});var fd1=m((JLO,el4)=>{el4.exports=qNz;var tVz=Vm(),Go=W26(),tl4=kD();function eVz(q){return"missing required '"+q.name+"'"}function qNz(q){var K=tl4.codegen(["r","l","e"],q.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(q.fieldsArray.filter(function(O){return O.map}).length?",k,value":""))("while(r.pos<c){")("var t=r.uint32()")("if(t===e)")("break")("switch(t>>>3){"),_=0;for(;_<q.fieldsArray.length;++_){var z=q._fieldsArray[_].resolve(),Y=z.resolvedType instanceof tVz?"int32":z.type,$="m"+tl4.safeProp(z.name);if(K("case %i: {",z.id),z.map){if(K("if(%s===util.emptyObject)",$)("%s={}",$)("var c2 = r.uint32()+r.pos"),Go.defaults[z.keyType]!==void 0)K("k=%j",Go.defaults[z.keyType]);else K("k=null");if(Go.defaults[Y]!==void 0)K("value=%j",Go.defaults[Y]);else K("value=null");if(K("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break",z.keyType)("case 2:"),Go.basic[Y]===void 0)K("value=types[%i].decode(r,r.uint32())",_);else K("value=r.%s()",Y);if(K("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),Go.long[z.keyType]!==void 0)K('%s[typeof k==="object"?util.longToHash(k):k]=value',$);else K("%s[k]=value",$)}else if(z.repeated){if(K("if(!(%s&&%s.length))",$,$)("%s=[]",$),Go.packed[Y]!==void 0)K("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",$,Y)("}else");if(Go.basic[Y]===void 0)K(z.delimited?"%s.push(types[%i].decode(r,undefined,((t&~7)|4)))":"%s.push(types[%i].decode(r,r.uint32()))",$,_);else K("%s.push(r.%s())",$,Y)}else if(Go.basic[Y]===void 0)K(z.delimited?"%s=types[%i].decode(r,undefined,((t&~7)|4))":"%s=types[%i].decode(r,r.uint32())",$,_);else K("%s=r.%s()",$,Y);K("break")("}")}K("default:")("r.skipType(t&7)")("break")("}")("}");for(_=0;_<q._fieldsArray.length;++_){var A=q._fieldsArray[_];if(A.required)K("if(!m.hasOwnProperty(%j))",A.name)("throw util.ProtocolError(%j,{instance:m})",eVz(A))}return K("return m")}});var Td1=m((MLO,qn4)=>{qn4.exports=zNz;var KNz=Vm(),Zd1=kD();function Yb(q,K){return q.name+": "+K+(q.repeated&&K!=="array"?"[]":q.map&&K!=="object"?"{k:"+q.keyType+"}":"")+" expected"}function Gd1(q,K,_,z){if(K.resolvedType)if(K.resolvedType instanceof KNz){q("switch(%s){",z)("default:")("return%j",Yb(K,"enum value"));for(var Y=Object.keys(K.resolvedType.values),$=0;$<Y.length;++$)q("case %i:",K.resolvedType.values[Y[$]]);q("break")("}")}else q("{")("var e=types[%i].verify(%s);",_,z)("if(e)")("return%j+e",K.name+".")("}");else switch(K.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":q("if(!util.isInteger(%s))",z)("return%j",Yb(K,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":q("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",z,z,z,z)("return%j",Yb(K,"integer|Long"));break;case"float":case"double":q('if(typeof %s!=="number")',z)("return%j",Yb(K,"number"));break;case"bool":q('if(typeof %s!=="boolean")',z)("return%j",Yb(K,"boolean"));break;case"string":q("if(!util.isString(%s))",z)("return%j",Yb(K,"string"));break;case"bytes":q('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',z,z,z)("return%j",Yb(K,"buffer"));break}return q}function _Nz(q,K,_){switch(K.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":q("if(!util.key32Re.test(%s))",_)("return%j",Yb(K,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":q("if(!util.key64Re.test(%s))",_)("return%j",Yb(K,"integer|Long key"));break;case"bool":q("if(!util.key2Re.test(%s))",_)("return%j",Yb(K,"boolean key"));break}return q}function zNz(q){var K=Zd1.codegen(["m"],q.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),_=q.oneofsArray,z={};if(_.length)K("var p={}");for(var Y=0;Y<q.fieldsArray.length;++Y){var $=q._fieldsArray[Y].resolve(),A="m"+Zd1.safeProp($.name);if($.optional)K("if(%s!=null&&m.hasOwnProperty(%j)){",A,$.name);if($.map)K("if(!util.isObject(%s))",A)("return%j",Yb($,"object"))("var k=Object.keys(%s)",A)("for(var i=0;i<k.length;++i){"),_Nz(K,$,"k[i]"),Gd1(K,$,Y,A+"[k[i]]")("}");else if($.repeated)K("if(!Array.isArray(%s))",A)("return%j",Yb($,"array"))("for(var i=0;i<%s.length;++i){",A),Gd1(K,$,Y,A+"[i]")("}");else{if($.partOf){var O=Zd1.safeProp($.partOf.name);if(z[$.partOf.name]===1)K("if(p%s===1)",O)("return%j",$.partOf.name+": multiple values");z[$.partOf.name]=1,K("p%s=1",O)}Gd1(K,$,Y,A)}if($.optional)K("}")}return K("return null")}});var Vd1=m((_n4)=>{var Kn4=_n4,Qs6=Vm(),_Q=kD();function vd1(q,K,_,z){var Y=!1;if(K.resolvedType)if(K.resolvedType instanceof Qs6){q("switch(d%s){",z);for(var $=K.resolvedType.values,A=Object.keys($),O=0;O<A.length;++O){if($[A[O]]===K.typeDefault&&!Y){if(q("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}',z,z,z),!K.repeated)q("break");Y=!0}q("case%j:",A[O])("case %i:",$[A[O]])("m%s=%j",z,$[A[O]])("break")}q("}")}else q('if(typeof d%s!=="object")',z)("throw TypeError(%j)",K.fullName+": object expected")("m%s=types[%i].fromObject(d%s)",z,_,z);else{var w=!1;switch(K.type){case"double":case"float":q("m%s=Number(d%s)",z,z);break;case"uint32":case"fixed32":q("m%s=d%s>>>0",z,z);break;case"int32":case"sint32":case"sfixed32":q("m%s=d%s|0",z,z);break;case"uint64":w=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":q("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",z,z,w)('else if(typeof d%s==="string")',z)("m%s=parseInt(d%s,10)",z,z)('else if(typeof d%s==="number")',z)("m%s=d%s",z,z)('else if(typeof d%s==="object")',z)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",z,z,z,w?"true":"");break;case"bytes":q('if(typeof d%s==="string")',z)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",z,z,z)("else if(d%s.length >= 0)",z)("m%s=d%s",z,z);break;case"string":q("m%s=String(d%s)",z,z);break;case"bool":q("m%s=Boolean(d%s)",z,z);break}}return q}Kn4.fromObject=function(K){var _=K.fieldsArray,z=_Q.codegen(["d"],K.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!_.length)return z("return new this.ctor");z("var m=new this.ctor");for(var Y=0;Y<_.length;++Y){var $=_[Y].resolve(),A=_Q.safeProp($.name);if($.map)z("if(d%s){",A)('if(typeof d%s!=="object")',A)("throw TypeError(%j)",$.fullName+": object expected")("m%s={}",A)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",A),vd1(z,$,Y,A+"[ks[i]]")("}")("}");else if($.repeated)z("if(d%s){",A)("if(!Array.isArray(d%s))",A)("throw TypeError(%j)",$.fullName+": array expected")("m%s=[]",A)("for(var i=0;i<d%s.length;++i){",A),vd1(z,$,Y,A+"[i]")("}")("}");else{if(!($.resolvedType instanceof Qs6))z("if(d%s!=null){",A);if(vd1(z,$,Y,A),!($.resolvedType instanceof Qs6))z("}")}}return z("return m")};function kd1(q,K,_,z){if(K.resolvedType)if(K.resolvedType instanceof Qs6)q("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",z,_,z,z,_,z,z);else q("d%s=types[%i].toObject(m%s,o)",z,_,z);else{var Y=!1;switch(K.type){case"double":case"float":q("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",z,z,z,z);break;case"uint64":Y=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":q('if(typeof m%s==="number")',z)("d%s=o.longs===String?String(m%s):m%s",z,z,z)("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",z,z,z,z,Y?"true":"",z);break;case"bytes":q("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",z,z,z,z,z);break;default:q("d%s=m%s",z,z);break}}return q}Kn4.toObject=function(K){var _=K.fieldsArray.slice().sort(_Q.compareFieldsById);if(!_.length)return _Q.codegen()("return {}");var z=_Q.codegen(["m","o"],K.name+"$toObject")("if(!o)")("o={}")("var d={}"),Y=[],$=[],A=[],O=0;for(;O<_.length;++O)if(!_[O].partOf)(_[O].resolve().repeated?Y:_[O].map?$:A).push(_[O]);if(Y.length){z("if(o.arrays||o.defaults){");for(O=0;O<Y.length;++O)z("d%s=[]",_Q.safeProp(Y[O].name));z("}")}if($.length){z("if(o.objects||o.defaults){");for(O=0;O<$.length;++O)z("d%s={}",_Q.safeProp($[O].name));z("}")}if(A.length){z("if(o.defaults){");for(O=0;O<A.length;++O){var w=A[O],j=_Q.safeProp(w.name);if(w.resolvedType instanceof Qs6)z("d%s=o.enums===String?%j:%j",j,w.resolvedType.valuesById[w.typeDefault],w.typeDefault);else if(w.long)z("if(util.Long){")("var n=new util.Long(%i,%i,%j)",w.typeDefault.low,w.typeDefault.high,w.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",j)("}else")("d%s=o.longs===String?%j:%i",j,w.typeDefault.toString(),w.typeDefault.toNumber());else if(w.bytes){var H="["+Array.prototype.slice.call(w.typeDefault).join(",")+"]";z("if(o.bytes===String)d%s=%j",j,String.fromCharCode.apply(String,w.typeDefault))("else{")("d%s=%s",j,H)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",j,j)("}")}else z("d%s=%j",j,w.typeDefault)}z("}")}var J=!1;for(O=0;O<_.length;++O){var w=_[O],M=K._fieldsArray.indexOf(w),j=_Q.safeProp(w.name);if(w.map){if(!J)J=!0,z("var ks2");z("if(m%s&&(ks2=Object.keys(m%s)).length){",j,j)("d%s={}",j)("for(var j=0;j<ks2.length;++j){"),kd1(z,w,M,j+"[ks2[j]]")("}")}else if(w.repeated)z("if(m%s&&m%s.length){",j,j)("d%s=[]",j)("for(var j=0;j<m%s.length;++j){",j),kd1(z,w,M,j+"[j]")("}");else if(z("if(m%s!=null&&m.hasOwnProperty(%j)){",j,w.name),kd1(z,w,M,j),w.partOf)z("if(o.oneofs)")("d%s=%j",_Q.safeProp(w.partOf.name),w.name);z("}")}return z("return d")}});var Nd1=m((zn4)=>{var YNz=zn4,$Nz=Hh8();YNz[".google.protobuf.Any"]={fromObject:function(q){if(q&&q["@type"]){var K=q["@type"].substring(q["@type"].lastIndexOf("/")+1),_=this.lookup(K);if(_){var z=q["@type"].charAt(0)==="."?q["@type"].slice(1):q["@type"];if(z.indexOf("/")===-1)z="/"+z;return this.create({type_url:z,value:_.encode(_.fromObject(q)).finish()})}}return this.fromObject(q)},toObject:function(q,K){var _="type.googleapis.com/",z="",Y="";if(K&&K.json&&q.type_url&&q.value){Y=q.type_url.substring(q.type_url.lastIndexOf("/")+1),z=q.type_url.substring(0,q.type_url.lastIndexOf("/")+1);var $=this.lookup(Y);if($)q=$.decode(q.value)}if(!(q instanceof this.ctor)&&q instanceof $Nz){var A=q.$type.toObject(q,K),O=q.$type.fullName[0]==="."?q.$type.fullName.slice(1):q.$type.fullName;if(z==="")z=_;return Y=z+O,A["@type"]=Y,A}return this.toObject(q,K)}}});var Xh8=m((WLO,$n4)=>{$n4.exports=Tw;var $b=Vy6();((Tw.prototype=Object.create($b.prototype)).constructor=Tw).className="Type";var ANz=Vm(),Ld1=P26(),Jh8=Z46(),ONz=Oh8(),wNz=jh8(),yd1=Hh8(),Ed1=SR8(),jNz=RR8(),QG=kD(),HNz=Rd1(),JNz=fd1(),MNz=Td1(),Yn4=Vd1(),XNz=Nd1();function Tw(q,K){$b.call(this,q,K),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}Object.defineProperties(Tw.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var q=Object.keys(this.fields),K=0;K<q.length;++K){var _=this.fields[q[K]],z=_.id;if(this._fieldsById[z])throw Error("duplicate id "+z+" in "+this);this._fieldsById[z]=_}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=QG.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=QG.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=Tw.generateConstructor(this)())},set:function(q){var K=q.prototype;if(!(K instanceof yd1))(q.prototype=new yd1).constructor=q,QG.merge(q.prototype,K);q.$type=q.prototype.$type=this,QG.merge(q,yd1,!0),this._ctor=q;var _=0;for(;_<this.fieldsArray.length;++_)this._fieldsArray[_].resolve();var z={};for(_=0;_<this.oneofsArray.length;++_)z[this._oneofsArray[_].resolve().name]={get:QG.oneOfGetter(this._oneofsArray[_].oneof),set:QG.oneOfSetter(this._oneofsArray[_].oneof)};if(_)Object.defineProperties(q.prototype,z)}}});Tw.generateConstructor=function(K){var _=QG.codegen(["p"],K.name);for(var z=0,Y;z<K.fieldsArray.length;++z)if((Y=K._fieldsArray[z]).map)_("this%s={}",QG.safeProp(Y.name));else if(Y.repeated)_("this%s=[]",QG.safeProp(Y.name));return _("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]")};function Mh8(q){return q._fieldsById=q._fieldsArray=q._oneofsArray=null,delete q.encode,delete q.decode,delete q.verify,q}Tw.fromJSON=function(K,_){var z=new Tw(K,_.options);z.extensions=_.extensions,z.reserved=_.reserved;var Y=Object.keys(_.fields),$=0;for(;$<Y.length;++$)z.add((typeof _.fields[Y[$]].keyType<"u"?ONz.fromJSON:Jh8.fromJSON)(Y[$],_.fields[Y[$]]));if(_.oneofs)for(Y=Object.keys(_.oneofs),$=0;$<Y.length;++$)z.add(Ld1.fromJSON(Y[$],_.oneofs[Y[$]]));if(_.nested)for(Y=Object.keys(_.nested),$=0;$<Y.length;++$){var A=_.nested[Y[$]];z.add((A.id!==void 0?Jh8.fromJSON:A.fields!==void 0?Tw.fromJSON:A.values!==void 0?ANz.fromJSON:A.methods!==void 0?wNz.fromJSON:$b.fromJSON)(Y[$],A))}if(_.extensions&&_.extensions.length)z.extensions=_.extensions;if(_.reserved&&_.reserved.length)z.reserved=_.reserved;if(_.group)z.group=!0;if(_.comment)z.comment=_.comment;if(_.edition)z._edition=_.edition;return z._defaultEdition="proto3",z};Tw.prototype.toJSON=function(K){var _=$b.prototype.toJSON.call(this,K),z=K?Boolean(K.keepComments):!1;return QG.toObject(["edition",this._editionToJSON(),"options",_&&_.options||void 0,"oneofs",$b.arrayToJSON(this.oneofsArray,K),"fields",$b.arrayToJSON(this.fieldsArray.filter(function(Y){return!Y.declaringField}),K)||{},"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",z?this.comment:void 0])};Tw.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;$b.prototype.resolveAll.call(this);var K=this.oneofsArray;z=0;while(z<K.length)K[z++].resolve();var _=this.fieldsArray,z=0;while(z<_.length)_[z++].resolve();return this};Tw.prototype._resolveFeaturesRecursive=function(K){if(!this._needsRecursiveFeatureResolution)return this;return K=this._edition||K,$b.prototype._resolveFeaturesRecursive.call(this,K),this.oneofsArray.forEach((_)=>{_._resolveFeatures(K)}),this.fieldsArray.forEach((_)=>{_._resolveFeatures(K)}),this};Tw.prototype.get=function(K){return this.fields[K]||this.oneofs&&this.oneofs[K]||this.nested&&this.nested[K]||null};Tw.prototype.add=function(K){if(this.get(K.name))throw Error("duplicate name '"+K.name+"' in "+this);if(K instanceof Jh8&&K.extend===void 0){if(this._fieldsById?this._fieldsById[K.id]:this.fieldsById[K.id])throw Error("duplicate id "+K.id+" in "+this);if(this.isReservedId(K.id))throw Error("id "+K.id+" is reserved in "+this);if(this.isReservedName(K.name))throw Error("name '"+K.name+"' is reserved in "+this);if(K.parent)K.parent.remove(K);return this.fields[K.name]=K,K.message=this,K.onAdd(this),Mh8(this)}if(K instanceof Ld1){if(!this.oneofs)this.oneofs={};return this.oneofs[K.name]=K,K.onAdd(this),Mh8(this)}return $b.prototype.add.call(this,K)};Tw.prototype.remove=function(K){if(K instanceof Jh8&&K.extend===void 0){if(!this.fields||this.fields[K.name]!==K)throw Error(K+" is not a member of "+this);return delete this.fields[K.name],K.parent=null,K.onRemove(this),Mh8(this)}if(K instanceof Ld1){if(!this.oneofs||this.oneofs[K.name]!==K)throw Error(K+" is not a member of "+this);return delete this.oneofs[K.name],K.parent=null,K.onRemove(this),Mh8(this)}return $b.prototype.remove.call(this,K)};Tw.prototype.isReservedId=function(K){return $b.isReservedId(this.reserved,K)};Tw.prototype.isReservedName=function(K){return $b.isReservedName(this.reserved,K)};Tw.prototype.create=function(K){return new this.ctor(K)};Tw.prototype.setup=function(){var K=this.fullName,_=[];for(var z=0;z<this.fieldsArray.length;++z)_.push(this._fieldsArray[z].resolve().resolvedType);this.encode=HNz(this)({Writer:jNz,types:_,util:QG}),this.decode=JNz(this)({Reader:Ed1,types:_,util:QG}),this.verify=MNz(this)({types:_,util:QG}),this.fromObject=Yn4.fromObject(this)({types:_,util:QG}),this.toObject=Yn4.toObject(this)({types:_,util:QG});var Y=XNz[K];if(Y){var $=Object.create(this);$.fromObject=this.fromObject,this.fromObject=Y.fromObject.bind($),$.toObject=this.toObject,this.toObject=Y.toObject.bind($)}return this};Tw.prototype.encode=function(K,_){return this.setup().encode(K,_)};Tw.prototype.encodeDelimited=function(K,_){return this.encode(K,_&&_.len?_.fork():_).ldelim()};Tw.prototype.decode=function(K,_){return this.setup().decode(K,_)};Tw.prototype.decodeDelimited=function(K){if(!(K instanceof Ed1))K=Ed1.create(K);return this.decode(K,K.uint32())};Tw.prototype.verify=function(K){return this.setup().verify(K)};Tw.prototype.fromObject=function(K){return this.setup().fromObject(K)};Tw.prototype.toObject=function(K,_){return this.setup().toObject(K,_)};Tw.d=function(K){return function(z){QG.decorateType(z,K)}}});var fh8=m((DLO,wn4)=>{wn4.exports=UL;var Dh8=Vy6();((UL.prototype=Object.create(Dh8.prototype)).constructor=UL).className="Root";var Ph8=Z46(),hd1=Vm(),PNz=P26(),T46=kD(),Sd1,Cd1,ds6;function UL(q){Dh8.call(this,"",q),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}UL.fromJSON=function(K,_){if(!_)_=new UL;if(K.options)_.setOptions(K.options);return _.addJSON(K.nested).resolveAll()};UL.prototype.resolvePath=T46.path.resolve;UL.prototype.fetch=T46.fetch;function On4(){}UL.prototype.load=function q(K,_,z){if(typeof _==="function")z=_,_=void 0;var Y=this;if(!z)return T46.asPromise(q,Y,K,_);var $=z===On4;function A(X,P){if(!z)return;if($)throw X;if(P)P.resolveAll();var W=z;z=null,W(X,P)}function O(X){var P=X.lastIndexOf("google/protobuf/");if(P>-1){var W=X.substring(P);if(W in ds6)return W}return null}function w(X,P){try{if(T46.isString(P)&&P.charAt(0)==="{")P=JSON.parse(P);if(!T46.isString(P))Y.setOptions(P.options).addJSON(P.nested);else{Cd1.filename=X;var W=Cd1(P,Y,_),D,f=0;if(W.imports){for(;f<W.imports.length;++f)if(D=O(W.imports[f])||Y.resolvePath(X,W.imports[f]))j(D)}if(W.weakImports){for(f=0;f<W.weakImports.length;++f)if(D=O(W.weakImports[f])||Y.resolvePath(X,W.weakImports[f]))j(D,!0)}}}catch(G){A(G)}if(!$&&!H)A(null,Y)}function j(X,P){if(X=O(X)||X,Y.files.indexOf(X)>-1)return;if(Y.files.push(X),X in ds6){if($)w(X,ds6[X]);else++H,setTimeout(function(){--H,w(X,ds6[X])});return}if($){var W;try{W=T46.fs.readFileSync(X).toString("utf8")}catch(D){if(!P)A(D);return}w(X,W)}else++H,Y.fetch(X,function(D,f){if(--H,!z)return;if(D){if(!P)A(D);else if(!H)A(null,Y);return}w(X,f)})}var H=0;if(T46.isString(K))K=[K];for(var J=0,M;J<K.length;++J)if(M=Y.resolvePath("",K[J]))j(M);if($)return Y.resolveAll(),Y;if(!H)A(null,Y);return Y};UL.prototype.loadSync=function(K,_){if(!T46.isNode)throw Error("not supported");return this.load(K,_,On4)};UL.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map(function(K){return"'extend "+K.extend+"' in "+K.parent.fullName}).join(", "));return Dh8.prototype.resolveAll.call(this)};var Wh8=/^[A-Z]/;function An4(q,K){var _=K.parent.lookup(K.extend);if(_){var z=new Ph8(K.fullName,K.id,K.type,K.rule,void 0,K.options);if(_.get(z.name))return!0;return z.declaringField=K,K.extensionField=z,_.add(z),!0}return!1}UL.prototype._handleAdd=function(K){if(K instanceof Ph8){if(K.extend!==void 0&&!K.extensionField){if(!An4(this,K))this.deferred.push(K)}}else if(K instanceof hd1){if(Wh8.test(K.name))K.parent[K.name]=K.values}else if(!(K instanceof PNz)){if(K instanceof Sd1)for(var _=0;_<this.deferred.length;)if(An4(this,this.deferred[_]))this.deferred.splice(_,1);else++_;for(var z=0;z<K.nestedArray.length;++z)this._handleAdd(K._nestedArray[z]);if(Wh8.test(K.name))K.parent[K.name]=K}if(K instanceof Sd1||K instanceof hd1||K instanceof Ph8)this._fullyQualifiedObjects[K.fullName]=K};UL.prototype._handleRemove=function(K){if(K instanceof Ph8){if(K.extend!==void 0)if(K.extensionField)K.extensionField.parent.remove(K.extensionField),K.extensionField=null;else{var _=this.deferred.indexOf(K);if(_>-1)this.deferred.splice(_,1)}}else if(K instanceof hd1){if(Wh8.test(K.name))delete K.parent[K.name]}else if(K instanceof Dh8){for(var z=0;z<K.nestedArray.length;++z)this._handleRemove(K._nestedArray[z]);if(Wh8.test(K.name))delete K.parent[K.name]}delete this._fullyQualifiedObjects[K.fullName]};UL._configure=function(q,K,_){Sd1=q,Cd1=K,ds6=_}});var kD=m((fLO,Hn4)=>{var ZM=Hn4.exports=aU(),jn4=HQ1(),bd1,xd1;ZM.codegen=Bl4();ZM.fetch=Fl4();ZM.path=dl4();ZM.fs=ZM.inquire("fs");ZM.toArray=function(K){if(K){var _=Object.keys(K),z=Array(_.length),Y=0;while(Y<_.length)z[Y]=K[_[Y++]];return z}return[]};ZM.toObject=function(K){var _={},z=0;while(z<K.length){var Y=K[z++],$=K[z++];if($!==void 0)_[Y]=$}return _};var WNz=/\\/g,DNz=/"/g;ZM.isReserved=function(K){return/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/.test(K)};ZM.safeProp=function(K){if(!/^[$\w_]+$/.test(K)||ZM.isReserved(K))return'["'+K.replace(WNz,"\\\\").replace(DNz,"\\\"")+'"]';return"."+K};ZM.ucFirst=function(K){return K.charAt(0).toUpperCase()+K.substring(1)};var fNz=/_([a-z])/g;ZM.camelCase=function(K){return K.substring(0,1)+K.substring(1).replace(fNz,function(_,z){return z.toUpperCase()})};ZM.compareFieldsById=function(K,_){return K.id-_.id};ZM.decorateType=function(K,_){if(K.$type){if(_&&K.$type.name!==_)ZM.decorateRoot.remove(K.$type),K.$type.name=_,ZM.decorateRoot.add(K.$type);return K.$type}if(!bd1)bd1=Xh8();var z=new bd1(_||K.name);return ZM.decorateRoot.add(z),z.ctor=K,Object.defineProperty(K,"$type",{value:z,enumerable:!1}),Object.defineProperty(K.prototype,"$type",{value:z,enumerable:!1}),z};var ZNz=0;ZM.decorateEnum=function(K){if(K.$type)return K.$type;if(!xd1)xd1=Vm();var _=new xd1("Enum"+ZNz++,K);return ZM.decorateRoot.add(_),Object.defineProperty(K,"$type",{value:_,enumerable:!1}),_};ZM.setProperty=function(K,_,z,Y){function $(A,O,w){var j=O.shift();if(j==="__proto__"||j==="prototype")return A;if(O.length>0)A[j]=$(A[j]||{},O,w);else{var H=A[j];if(H&&Y)return A;if(H)w=[].concat(H).concat(w);A[j]=w}return A}if(typeof K!=="object")throw TypeError("dst must be an object");if(!_)throw TypeError("path must be specified");return _=_.split("."),$(K,_,z)};Object.defineProperty(ZM,"decorateRoot",{get:function(){return jn4.decorated||(jn4.decorated=new(fh8()))}})});var W26=m((Jn4)=>{var cs6=Jn4,GNz=kD(),TNz=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function ls6(q,K){var _=0,z={};K|=0;while(_<q.length)z[TNz[_+K]]=q[_++];return z}cs6.basic=ls6([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]);cs6.defaults=ls6([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",GNz.emptyArray,null]);cs6.long=ls6([0,0,0,1,1],7);cs6.mapKey=ls6([0,0,0,5,5,0,0,0,1,1,0,2],2);cs6.packed=ls6([1,5,0,0,0,5,5,0,0,0,1,1,0])});var Z46=m((GLO,Xn4)=>{Xn4.exports=VD;var is6=G46();((VD.prototype=Object.create(is6.prototype)).constructor=VD).className="Field";var Mn4=Vm(),Id1=W26(),bX=kD(),ns6,vNz=/^required|optional|repeated$/;VD.fromJSON=function(K,_){var z=new VD(K,_.id,_.type,_.rule,_.extend,_.options,_.comment);if(_.edition)z._edition=_.edition;return z._defaultEdition="proto3",z};function VD(q,K,_,z,Y,$,A){if(bX.isObject(z))A=Y,$=z,z=Y=void 0;else if(bX.isObject(Y))A=$,$=Y,Y=void 0;if(is6.call(this,q,$),!bX.isInteger(K)||K<0)throw TypeError("id must be a non-negative integer");if(!bX.isString(_))throw TypeError("type must be a string");if(z!==void 0&&!vNz.test(z=z.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(Y!==void 0&&!bX.isString(Y))throw TypeError("extend must be a string");if(z==="proto3_optional")z="optional";this.rule=z&&z!=="optional"?z:void 0,this.type=_,this.id=K,this.extend=Y||void 0,this.repeated=z==="repeated",this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=bX.Long?Id1.long[_]!==void 0:!1,this.bytes=_==="bytes",this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=A}Object.defineProperty(VD.prototype,"required",{get:function(){return this._features.field_presence==="LEGACY_REQUIRED"}});Object.defineProperty(VD.prototype,"optional",{get:function(){return!this.required}});Object.defineProperty(VD.prototype,"delimited",{get:function(){return this.resolvedType instanceof ns6&&this._features.message_encoding==="DELIMITED"}});Object.defineProperty(VD.prototype,"packed",{get:function(){return this._features.repeated_field_encoding==="PACKED"}});Object.defineProperty(VD.prototype,"hasPresence",{get:function(){if(this.repeated||this.map)return!1;return this.partOf||this.declaringField||this.extensionField||this._features.field_presence!=="IMPLICIT"}});VD.prototype.setOption=function(K,_,z){return is6.prototype.setOption.call(this,K,_,z)};VD.prototype.toJSON=function(K){var _=K?Boolean(K.keepComments):!1;return bX.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",_?this.comment:void 0])};VD.prototype.resolve=function(){if(this.resolved)return this;if((this.typeDefault=Id1.defaults[this.type])===void 0)if(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof ns6)this.typeDefault=null;else this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]];else if(this.options&&this.options.proto3_optional)this.typeDefault=null;if(this.options&&this.options.default!=null){if(this.typeDefault=this.options.default,this.resolvedType instanceof Mn4&&typeof this.typeDefault==="string")this.typeDefault=this.resolvedType.values[this.typeDefault]}if(this.options){if(this.options.packed!==void 0&&this.resolvedType&&!(this.resolvedType instanceof Mn4))delete this.options.packed;if(!Object.keys(this.options).length)this.options=void 0}if(this.long){if(this.typeDefault=bX.Long.fromNumber(this.typeDefault,this.type.charAt(0)==="u"),Object.freeze)Object.freeze(this.typeDefault)}else if(this.bytes&&typeof this.typeDefault==="string"){var K;if(bX.base64.test(this.typeDefault))bX.base64.decode(this.typeDefault,K=bX.newBuffer(bX.base64.length(this.typeDefault)),0);else bX.utf8.write(this.typeDefault,K=bX.newBuffer(bX.utf8.length(this.typeDefault)),0);this.typeDefault=K}if(this.map)this.defaultValue=bX.emptyObject;else if(this.repeated)this.defaultValue=bX.emptyArray;else this.defaultValue=this.typeDefault;if(this.parent instanceof ns6)this.parent.ctor.prototype[this.name]=this.defaultValue;return is6.prototype.resolve.call(this)};VD.prototype._inferLegacyProtoFeatures=function(K){if(K!=="proto2"&&K!=="proto3")return{};var _={};if(this.rule==="required")_.field_presence="LEGACY_REQUIRED";if(this.parent&&Id1.defaults[this.type]===void 0){var z=this.parent.get(this.type.split(".").pop());if(z&&z instanceof ns6&&z.group)_.message_encoding="DELIMITED"}if(this.getOption("packed")===!0)_.repeated_field_encoding="PACKED";else if(this.getOption("packed")===!1)_.repeated_field_encoding="EXPANDED";return _};VD.prototype._resolveFeatures=function(K){return is6.prototype._resolveFeatures.call(this,this._edition||K)};VD.d=function(K,_,z,Y){if(typeof _==="function")_=bX.decorateType(_).name;else if(_&&typeof _==="object")_=bX.decorateEnum(_).name;return function(A,O){bX.decorateType(A.constructor).add(new VD(O,K,_,z,{default:Y}))}};VD._configure=function(K){ns6=K}});var P26=m((TLO,Dn4)=>{Dn4.exports=QL;var Gh8=G46();((QL.prototype=Object.create(Gh8.prototype)).constructor=QL).className="OneOf";var Pn4=Z46(),Zh8=kD();function QL(q,K,_,z){if(!Array.isArray(K))_=K,K=void 0;if(Gh8.call(this,q,_),!(K===void 0||Array.isArray(K)))throw TypeError("fieldNames must be an Array");this.oneof=K||[],this.fieldsArray=[],this.comment=z}QL.fromJSON=function(K,_){return new QL(K,_.oneof,_.options,_.comment)};QL.prototype.toJSON=function(K){var _=K?Boolean(K.keepComments):!1;return Zh8.toObject(["options",this.options,"oneof",this.oneof,"comment",_?this.comment:void 0])};function Wn4(q){if(q.parent){for(var K=0;K<q.fieldsArray.length;++K)if(!q.fieldsArray[K].parent)q.parent.add(q.fieldsArray[K])}}QL.prototype.add=function(K){if(!(K instanceof Pn4))throw TypeError("field must be a Field");if(K.parent&&K.parent!==this.parent)K.parent.remove(K);return this.oneof.push(K.name),this.fieldsArray.push(K),K.partOf=this,Wn4(this),this};QL.prototype.remove=function(K){if(!(K instanceof Pn4))throw TypeError("field must be a Field");var _=this.fieldsArray.indexOf(K);if(_<0)throw Error(K+" is not a member of "+this);if(this.fieldsArray.splice(_,1),_=this.oneof.indexOf(K.name),_>-1)this.oneof.splice(_,1);return K.partOf=null,this};QL.prototype.onAdd=function(K){Gh8.prototype.onAdd.call(this,K);var _=this;for(var z=0;z<this.oneof.length;++z){var Y=K.get(this.oneof[z]);if(Y&&!Y.partOf)Y.partOf=_,_.fieldsArray.push(Y)}Wn4(this)};QL.prototype.onRemove=function(K){for(var _=0,z;_<this.fieldsArray.length;++_)if((z=this.fieldsArray[_]).parent)z.parent.remove(z);Gh8.prototype.onRemove.call(this,K)};Object.defineProperty(QL.prototype,"isProto3Optional",{get:function(){if(this.fieldsArray==null||this.fieldsArray.length!==1)return!1;var q=this.fieldsArray[0];return q.options!=null&&q.options.proto3_optional===!0}});QL.d=function(){var K=Array(arguments.length),_=0;while(_<arguments.length)K[_]=arguments[_++];return function(Y,$){Zh8.decorateType(Y.constructor).add(new QL($,K)),Object.defineProperty(Y,$,{get:Zh8.oneOfGetter(K),set:Zh8.oneOfSetter(K)})}}});var G46=m((vLO,fn4)=>{fn4.exports=y0;y0.className="ReflectionObject";var kNz=P26(),rs6=kD(),Th8,VNz={enum_type:"OPEN",field_presence:"EXPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY"},NNz={enum_type:"CLOSED",field_presence:"EXPLICIT",json_format:"LEGACY_BEST_EFFORT",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"EXPANDED",utf8_validation:"NONE"},yNz={enum_type:"OPEN",field_presence:"IMPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY"};function y0(q,K){if(!rs6.isString(q))throw TypeError("name must be a string");if(K&&!rs6.isObject(K))throw TypeError("options must be an object");this.options=K,this.parsedOptions=null,this.name=q,this._edition=null,this._defaultEdition="proto2",this._features={},this._featuresResolved=!1,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}Object.defineProperties(y0.prototype,{root:{get:function(){var q=this;while(q.parent!==null)q=q.parent;return q}},fullName:{get:function(){var q=[this.name],K=this.parent;while(K)q.unshift(K.name),K=K.parent;return q.join(".")}}});y0.prototype.toJSON=function(){throw Error()};y0.prototype.onAdd=function(K){if(this.parent&&this.parent!==K)this.parent.remove(this);this.parent=K,this.resolved=!1;var _=K.root;if(_ instanceof Th8)_._handleAdd(this)};y0.prototype.onRemove=function(K){var _=K.root;if(_ instanceof Th8)_._handleRemove(this);this.parent=null,this.resolved=!1};y0.prototype.resolve=function(){if(this.resolved)return this;if(this.root instanceof Th8)this.resolved=!0;return this};y0.prototype._resolveFeaturesRecursive=function(K){return this._resolveFeatures(this._edition||K)};y0.prototype._resolveFeatures=function(K){if(this._featuresResolved)return;var _={};if(!K)throw Error("Unknown edition for "+this.fullName);var z=Object.assign(this.options?Object.assign({},this.options.features):{},this._inferLegacyProtoFeatures(K));if(this._edition){if(K==="proto2")_=Object.assign({},NNz);else if(K==="proto3")_=Object.assign({},yNz);else if(K==="2023")_=Object.assign({},VNz);else throw Error("Unknown edition: "+K);this._features=Object.assign(_,z||{}),this._featuresResolved=!0;return}if(this.partOf instanceof kNz){var Y=Object.assign({},this.partOf._features);this._features=Object.assign(Y,z||{})}else if(this.declaringField);else if(this.parent){var $=Object.assign({},this.parent._features);this._features=Object.assign($,z||{})}else throw Error("Unable to find a parent for "+this.fullName);if(this.extensionField)this.extensionField._features=this._features;this._featuresResolved=!0};y0.prototype._inferLegacyProtoFeatures=function(){return{}};y0.prototype.getOption=function(K){if(this.options)return this.options[K];return};y0.prototype.setOption=function(K,_,z){if(!this.options)this.options={};if(/^features\./.test(K))rs6.setProperty(this.options,K,_,z);else if(!z||this.options[K]===void 0){if(this.getOption(K)!==_)this.resolved=!1;this.options[K]=_}return this};y0.prototype.setParsedOption=function(K,_,z){if(!this.parsedOptions)this.parsedOptions=[];var Y=this.parsedOptions;if(z){var $=Y.find(function(w){return Object.prototype.hasOwnProperty.call(w,K)});if($){var A=$[K];rs6.setProperty(A,z,_)}else $={},$[K]=rs6.setProperty({},z,_),Y.push($)}else{var O={};O[K]=_,Y.push(O)}return this};y0.prototype.setOptions=function(K,_){if(K)for(var z=Object.keys(K),Y=0;Y<z.length;++Y)this.setOption(z[Y],K[z[Y]],_);return this};y0.prototype.toString=function(){var K=this.constructor.className,_=this.fullName;if(_.length)return K+" "+_;return K};y0.prototype._editionToJSON=function(){if(!this._edition||this._edition==="proto3")return;return this._edition};y0._configure=function(q){Th8=q}});var Vm=m((kLO,Gn4)=>{Gn4.exports=Nm;var ud1=G46();((Nm.prototype=Object.create(ud1.prototype)).constructor=Nm).className="Enum";var Zn4=Vy6(),vh8=kD();function Nm(q,K,_,z,Y,$){if(ud1.call(this,q,_),K&&typeof K!=="object")throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=z,this.comments=Y||{},this.valuesOptions=$,this._valuesFeatures={},this.reserved=void 0,K){for(var A=Object.keys(K),O=0;O<A.length;++O)if(typeof K[A[O]]==="number")this.valuesById[this.values[A[O]]=K[A[O]]]=A[O]}}Nm.prototype._resolveFeatures=function(K){return K=this._edition||K,ud1.prototype._resolveFeatures.call(this,K),Object.keys(this.values).forEach((_)=>{var z=Object.assign({},this._features);this._valuesFeatures[_]=Object.assign(z,this.valuesOptions&&this.valuesOptions[_]&&this.valuesOptions[_].features)}),this};Nm.fromJSON=function(K,_){var z=new Nm(K,_.values,_.options,_.comment,_.comments);if(z.reserved=_.reserved,_.edition)z._edition=_.edition;return z._defaultEdition="proto3",z};Nm.prototype.toJSON=function(K){var _=K?Boolean(K.keepComments):!1;return vh8.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",_?this.comment:void 0,"comments",_?this.comments:void 0])};Nm.prototype.add=function(K,_,z,Y){if(!vh8.isString(K))throw TypeError("name must be a string");if(!vh8.isInteger(_))throw TypeError("id must be an integer");if(this.values[K]!==void 0)throw Error("duplicate name '"+K+"' in "+this);if(this.isReservedId(_))throw Error("id "+_+" is reserved in "+this);if(this.isReservedName(K))throw Error("name '"+K+"' is reserved in "+this);if(this.valuesById[_]!==void 0){if(!(this.options&&this.options.allow_alias))throw Error("duplicate id "+_+" in "+this);this.values[K]=_}else this.valuesById[this.values[K]=_]=K;if(Y){if(this.valuesOptions===void 0)this.valuesOptions={};this.valuesOptions[K]=Y||null}return this.comments[K]=z||null,this};Nm.prototype.remove=function(K){if(!vh8.isString(K))throw TypeError("name must be a string");var _=this.values[K];if(_==null)throw Error("name '"+K+"' does not exist in "+this);if(delete this.valuesById[_],delete this.values[K],delete this.comments[K],this.valuesOptions)delete this.valuesOptions[K];return this};Nm.prototype.isReservedId=function(K){return Zn4.isReservedId(this.reserved,K)};Nm.prototype.isReservedName=function(K){return Zn4.isReservedName(this.reserved,K)}});var Rd1=m((VLO,vn4)=>{vn4.exports=LNz;var ENz=Vm(),md1=W26(),pd1=kD();function Tn4(q,K,_,z){return K.delimited?q("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",_,z,(K.id<<3|3)>>>0,(K.id<<3|4)>>>0):q("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",_,z,(K.id<<3|2)>>>0)}function LNz(q){var K=pd1.codegen(["m","w"],q.name+"$encode")("if(!w)")("w=Writer.create()"),_,z,Y=q.fieldsArray.slice().sort(pd1.compareFieldsById);for(var _=0;_<Y.length;++_){var $=Y[_].resolve(),A=q._fieldsArray.indexOf($),O=$.resolvedType instanceof ENz?"int32":$.type,w=md1.basic[O];if(z="m"+pd1.safeProp($.name),$.map){if(K("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",z,$.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",z)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",($.id<<3|2)>>>0,8|md1.mapKey[$.keyType],$.keyType),w===void 0)K("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",A,z);else K(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|w,O,z);K("}")("}")}else if($.repeated){if(K("if(%s!=null&&%s.length){",z,z),$.packed&&md1.packed[O]!==void 0)K("w.uint32(%i).fork()",($.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",z)("w.%s(%s[i])",O,z)("w.ldelim()");else if(K("for(var i=0;i<%s.length;++i)",z),w===void 0)Tn4(K,$,A,z+"[i]");else K("w.uint32(%i).%s(%s[i])",($.id<<3|w)>>>0,O,z);K("}")}else{if($.optional)K("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",z,$.name);if(w===void 0)Tn4(K,$,A,z);else K("w.uint32(%i).%s(%s)",($.id<<3|w)>>>0,O,z)}}return K("return w")}});var Vn4=m((NLO,kn4)=>{var FY=kn4.exports=JQ1();FY.build="light";function RNz(q,K,_){if(typeof K==="function")_=K,K=new FY.Root;else if(!K)K=new FY.Root;return K.load(q,_)}FY.load=RNz;function hNz(q,K){if(!K)K=new FY.Root;return K.loadSync(q)}FY.loadSync=hNz;FY.encoder=Rd1();FY.decoder=fd1();FY.verifier=Td1();FY.converter=Vd1();FY.ReflectionObject=G46();FY.Namespace=Vy6();FY.Root=fh8();FY.Enum=Vm();FY.Type=Xh8();FY.Field=Z46();FY.OneOf=P26();FY.MapField=Oh8();FY.Service=jh8();FY.Method=wh8();FY.Message=Hh8();FY.wrappers=Nd1();FY.types=W26();FY.util=kD();FY.ReflectionObject._configure(FY.Root);FY.Namespace._configure(FY.Type,FY.Service,FY.Enum);FY.Root._configure(FY.Type);FY.Field._configure(FY.Type)});var gd1=m((yLO,En4)=>{En4.exports=yn4;var Bd1=/[\s{}=;:[\],'"()<>]/g,SNz=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,CNz=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,bNz=/^ *[*/]+ */,xNz=/^\s*\*?\/*/,INz=/\n/g,uNz=/\s/,mNz=/\\(.?)/g,pNz={"0":"\x00",r:"\r",n:`
2081`,t:"\t"};function Nn4(q){return q.replace(mNz,function(K,_){switch(_){case"\\":case"":return _;default:return pNz[_]||""}})}yn4.unescape=Nn4;function yn4(q,K){q=q.toString();var _=0,z=q.length,Y=1,$=0,A={},O=[],w=null;function j(T){return Error("illegal "+T+" (line "+Y+")")}function H(){var T=w==="'"?CNz:SNz;T.lastIndex=_-1;var v=T.exec(q);if(!v)throw j("string");return _=T.lastIndex,D(w),w=null,Nn4(v[1])}function J(T){return q.charAt(T)}function M(T,v,V){var E={type:q.charAt(T++),lineEmpty:!1,leading:V},S;if(K)S=2;else S=3;var R=T-S,x;do if(--R<0||(x=q.charAt(R))===`
2082`){E.lineEmpty=!0;break}while(x===" "||x==="\t");var I=q.substring(T,v).split(INz);for(var B=0;B<I.length;++B)I[B]=I[B].replace(K?xNz:bNz,"").trim();E.text=I.join(`

Callers

nothing calls this directly

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected