System.register([],function(l,V){var A,g,d,R,c,G,Z,b,I,E,n,S,X,B,F,o,U,a,m,C,e,h,W,J,u,Y,t,Q,N,y,i,s,p,k,K,T,L,x,r,M,H,z,f,D,v,w,j,O,P,_,q,$,ll,Vl,Al,gl,dl,Rl,cl,Gl,Zl,bl,Il,El,nl,Sl,Xl,Bl,Fl,ol,Ul,al,ml,Cl,el,hl,Wl,Jl,ul,Yl,tl,Ql,Nl,yl,il,sl,pl,kl,Kl,Tl,Ll,xl,rl,Ml,Hl,zl,fl,Dl,vl,wl,jl,Ol,Pl,_l,ql,$l,lV,VV,AV,gV,dV,RV,cV,GV,ZV,bV,IV;function EV(l,V){return null!==l&&"object"==typeof l&&"$typeName"in l&&"string"==typeof l.$typeName&&(void 0===V||V.typeName===l.$typeName)}function nV(){let l=0,V=0;for(let g=0;g<28;g+=7){let A=this.buf[this.pos++];if(l|=(127&A)<>4,!(128&A))return this.assertBounds(),[l,V];for(let g=3;g<=31;g+=7){let A=this.buf[this.pos++];if(V|=(127&A)<>>R,d=!(g>>>7==0&&0==V),c=255&(d?128|g:g);if(A.push(c),!d)return}const g=l>>>28&15|(7&V)<<4,d=!!(V>>3);if(A.push(255&(d?128|g:g)),d){for(let l=3;l<31;l+=7){const g=V>>>l,d=!(g>>>7==0),R=255&(d?128|g:g);if(A.push(R),!d)return}A.push(V>>>31&1)}}function XV(l){const V="-"===l[0];V&&(l=l.slice(1));const A=1e6;let d=0,R=0;function c(V,c){const G=Number(l.slice(V,c));R*=A,d=d*A+G,d>=g&&(R+=d/g|0,d%=g)}return c(-24,-18),c(-18,-12),c(-12,-6),c(-6),V?oV(d,R):FV(d,R)}function BV(l,V){if(({lo:l,hi:V}=function(l,V){return{lo:l>>>0,hi:V>>>0}}(l,V)),V<=2097151)return String(g*V+l);const A=16777215&(l>>>24|V<<8),R=V>>16&65535;let c=(16777215&l)+6777216*A+6710656*R,G=A+8147497*R,Z=2*R;const b=1e7;return c>=b&&(G+=Math.floor(c/b),c%=b),G>=b&&(Z+=Math.floor(G/b),G%=b),Z.toString()+d(G)+d(c)}function FV(l,V){return{lo:0|l,hi:0|V}}function oV(l,V){return V=~V,l?l=1+~l:V+=1,FV(l,V)}function UV(l,V){if(l>=0){for(;l>127;)V.push(127&l|128),l>>>=7;V.push(l)}else{for(let A=0;A<9;A++)V.push(127&l|128),l>>=7;V.push(1)}}function aV(){let l=this.buf[this.pos++],V=127&l;if(!(128&l))return this.assertBounds(),V;if(l=this.buf[this.pos++],V|=(127&l)<<7,!(128&l))return this.assertBounds(),V;if(l=this.buf[this.pos++],V|=(127&l)<<14,!(128&l))return this.assertBounds(),V;if(l=this.buf[this.pos++],V|=(127&l)<<21,!(128&l))return this.assertBounds(),V;l=this.buf[this.pos++],V|=(15&l)<<28;for(let A=5;128&l&&A<10;A++)l=this.buf[this.pos++];if(128&l)throw new Error("invalid varint");return this.assertBounds(),V>>>0}function mV(){const l=new DataView(new ArrayBuffer(8));if("function"==typeof BigInt&&"function"==typeof l.getBigInt64&&"function"==typeof l.getBigUint64&&"function"==typeof l.setBigInt64&&"function"==typeof l.setBigUint64&&(globalThis.Deno||"object"!=typeof process||"1"!=={}.BUF_BIGINT_DISABLE)){const V=BigInt("-9223372036854775808"),A=BigInt("9223372036854775807"),g=BigInt("0"),d=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(l){const g="bigint"==typeof l?l:BigInt(l);if(g>A||gd||V(l.setInt32(0,V,!0),l.setInt32(4,A,!0),l.getBigInt64(0,!0)),uDec:(V,A)=>(l.setInt32(0,V,!0),l.setInt32(4,A,!0),l.getBigUint64(0,!0))}}return{zero:"0",supported:!1,parse:l=>("string"!=typeof l&&(l=l.toString()),CV(l),l),uParse:l=>("string"!=typeof l&&(l=l.toString()),eV(l),l),enc:l=>("string"!=typeof l&&(l=l.toString()),CV(l),XV(l)),uEnc:l=>("string"!=typeof l&&(l=l.toString()),eV(l),XV(l)),dec:(l,V)=>function(l,V){let A=FV(l,V);const g=2147483648&A.hi;g&&(A=oV(A.lo,A.hi));const d=BV(A.lo,A.hi);return g?"-"+d:d}(l,V),uDec:(l,V)=>BV(l,V)}}function CV(l){if(!/^-?[0-9]+$/.test(l))throw new Error("invalid int64: "+l)}function eV(l){if(!/^[0-9]+$/.test(l))throw new Error("invalid uint64: "+l)}function hV(l,V){switch(l){case A.STRING:return"";case A.BOOL:return!1;case A.DOUBLE:case A.FLOAT:return 0;case A.INT64:case A.UINT64:case A.SFIXED64:case A.FIXED64:case A.SINT64:return V?"0":R.zero;case A.BYTES:return new Uint8Array(0);default:return 0}}function WV(l,V){const A=l[V.localName].case;return void 0===A?A:V.fields.find(l=>l.localName===A)}function JV(l,V){const g=V.localName;if(V.oneof)return l[V.oneof.localName].case===g;if(V.presence!=c)return void 0!==l[g]&&Object.prototype.hasOwnProperty.call(l,g);switch(V.fieldKind){case"list":return l[g].length>0;case"map":return Object.keys(l[g]).length>0;case"scalar":return!function(l,V){switch(l){case A.BOOL:return!1===V;case A.STRING:return""===V;case A.BYTES:return V instanceof Uint8Array&&!V.byteLength;default:return 0==V}}(V.scalar,l[g]);case"enum":return l[g]!==V.enum.values[0].number}throw new Error("message field with implicit presence")}function uV(l,V){return Object.prototype.hasOwnProperty.call(l,V)&&void 0!==l[V]}function YV(l,V){if(V.oneof){const A=l[V.oneof.localName];return A.case===V.localName?A.value:void 0}return l[V.localName]}function tV(l,V,A){V.oneof?l[V.oneof.localName]={case:V.localName,value:A}:l[V.localName]=A}function QV(l){return null!==l&&"object"==typeof l&&!Array.isArray(l)}function NV(l,V){var A,g,d,R;if(QV(l)&&G in l&&"add"in l&&"field"in l&&"function"==typeof l.field){if(void 0!==V){const c=V,G=l.field();return c.listKind==G.listKind&&c.scalar===G.scalar&&(null===(A=c.message)||void 0===A?void 0:A.typeName)===(null===(g=G.message)||void 0===g?void 0:g.typeName)&&(null===(d=c.enum)||void 0===d?void 0:d.typeName)===(null===(R=G.enum)||void 0===R?void 0:R.typeName)}return!0}return!1}function yV(l,V){var A,g,d,R;if(QV(l)&&G in l&&"has"in l&&"field"in l&&"function"==typeof l.field){if(void 0!==V){const c=V,G=l.field();return c.mapKey===G.mapKey&&c.mapKind==G.mapKind&&c.scalar===G.scalar&&(null===(A=c.message)||void 0===A?void 0:A.typeName)===(null===(g=G.message)||void 0===g?void 0:g.typeName)&&(null===(d=c.enum)||void 0===d?void 0:d.typeName)===(null===(R=G.enum)||void 0===R?void 0:R.typeName)}return!0}return!1}function iV(l,V){return QV(l)&&G in l&&"desc"in l&&QV(l.desc)&&"message"===l.desc.kind&&(void 0===V||l.desc.typeName==V.typeName)}function sV(l){const V=l.fields[0];return pV(l.typeName)&&void 0!==V&&"scalar"==V.fieldKind&&"value"==V.name&&1==V.number}function pV(l){return l.startsWith("google.protobuf.")&&["DoubleValue","FloatValue","Int64Value","UInt64Value","Int32Value","UInt32Value","BoolValue","StringValue","BytesValue"].includes(l.substring(16))}function kV(l,V){if(EV(V,l))return V;const A=function(l){let V;if(function(l){switch(l.file.edition){case Z:return!1;case b:return!0;default:return l.fields.some(l=>l.presence!=I&&"message"!=l.fieldKind&&!l.oneof)}}(l)){const A=n.get(l);let g,d;if(A)({prototype:g,members:d}=A);else{g={},d=new Set;for(const V of l.members)"oneof"!=V.kind&&("scalar"!=V.fieldKind&&"enum"!=V.fieldKind||V.presence!=I&&(d.add(V),g[V.localName]=HV(V)));n.set(l,{prototype:g,members:d})}V=Object.create(g),V.$typeName=l.typeName;for(const R of l.members)if(!d.has(R)){if("field"==R.kind){if("message"==R.fieldKind)continue;if(("scalar"==R.fieldKind||"enum"==R.fieldKind)&&R.presence!=I)continue}V[R.localName]=HV(R)}}else{V={$typeName:l.typeName};for(const A of l.members)"oneof"!=A.kind&&A.presence!=I||(V[A.localName]=HV(A))}return V}(l);return void 0!==V&&function(l,V,A){for(const g of l.members){let l,d=A[g.localName];if(null!=d){if("oneof"==g.kind){const V=WV(A,g);if(!V)continue;l=V,d=YV(A,V)}else l=g;switch(l.fieldKind){case"message":d=xV(l,d);break;case"scalar":d=KV(l,d);break;case"list":d=LV(l,d);break;case"map":d=TV(l,d)}tV(V,l,d)}}}(l,A,V),A}function KV(l,V){return l.scalar==A.BYTES?rV(V):V}function TV(l,V){if(QV(V)){if(l.scalar==A.BYTES)return MV(V,rV);if("message"==l.mapKind)return MV(V,V=>xV(l,V))}return V}function LV(l,V){if(Array.isArray(V)){if(l.scalar==A.BYTES)return V.map(rV);if("message"==l.listKind)return V.map(V=>xV(l,V))}return V}function xV(l,V){if("message"==l.fieldKind&&!l.oneof&&sV(l.message))return KV(l.message.fields[0],V);if(QV(V)){if("google.protobuf.Struct"==l.message.typeName&&"google.protobuf.Value"!==l.parent.typeName)return V;if(!EV(V,l.message))return kV(l.message,V)}return V}function rV(l){return Array.isArray(l)?new Uint8Array(l):l}function MV(l,V){const A={};for(const g of Object.entries(l))A[g[0]]=V(g[1]);return A}function HV(l){if("oneof"==l.kind)return{case:void 0};if("list"==l.fieldKind)return[];if("map"==l.fieldKind)return{};if("message"==l.fieldKind)return E;const V=l.getDefaultValue();return void 0!==V?"scalar"==l.fieldKind&&l.longAsString?V.toString():V:"scalar"==l.fieldKind?hV(l.scalar,l.longAsString):l.enum.values[0].number}function zV(){if(null==globalThis[B]){const l=new globalThis.TextEncoder,V=new globalThis.TextDecoder;let A;globalThis[B]={encodeUtf8:V=>l.encode(V),decodeUtf8:(l,g)=>g?(void 0===A&&(A=new globalThis.TextDecoder("utf-8",{fatal:!0})),A.decode(l)):V.decode(l),checkUtf8(l){try{return!0}catch(V){return!1}}}}return globalThis[B]}function fV(l){if("string"==typeof l)l=Number(l);else if("number"!=typeof l)throw new Error("invalid int32: "+typeof l);if(!Number.isInteger(l)||l>2147483647||l<-2147483648)throw new Error("invalid int32: "+l)}function DV(l){if("string"==typeof l)l=Number(l);else if("number"!=typeof l)throw new Error("invalid uint32: "+typeof l);if(!Number.isInteger(l)||l>4294967295||l<0)throw new Error("invalid uint32: "+l)}function vV(l,V){const A="list"==l.fieldKind?NV(V,l):"map"==l.fieldKind?yV(V,l):jV(l,V);if(!0===A)return;let g;switch(l.fieldKind){case"list":g=`expected ${$V(l)}, got ${_V(V)}`;break;case"map":g=`expected ${lA(l)}, got ${_V(V)}`;break;default:g=PV(l,V,A)}return new X(l,g)}function wV(l,V,A){const g=jV(l,A);if(!0!==g)return new X(l,`list item #${V+1}: ${PV(l,A,g)}`)}function jV(l,V){return void 0!==l.scalar?OV(V,l.scalar):void 0!==l.enum?l.enum.open?Number.isInteger(V):l.enum.values.some(l=>l.number===V):iV(V,l.message)}function OV(l,V){switch(V){case A.DOUBLE:return"number"==typeof l;case A.FLOAT:return"number"==typeof l&&(!(!Number.isNaN(l)&&Number.isFinite(l))||!(l>34028234663852886e22||l<-34028234663852886e22)||`${l.toFixed()} out of range`);case A.INT32:case A.SFIXED32:case A.SINT32:return!("number"!=typeof l||!Number.isInteger(l))&&(!(l>2147483647||l<-2147483648)||`${l.toFixed()} out of range`);case A.FIXED32:case A.UINT32:return!("number"!=typeof l||!Number.isInteger(l))&&(!(l>4294967295||l<0)||`${l.toFixed()} out of range`);case A.BOOL:return"boolean"==typeof l;case A.STRING:return"string"==typeof l&&(zV().checkUtf8(l)||"invalid UTF8");case A.BYTES:return l instanceof Uint8Array;case A.INT64:case A.SFIXED64:case A.SINT64:if("bigint"==typeof l||"number"==typeof l||"string"==typeof l&&l.length>0)try{return R.parse(l),!0}catch(g){return`${l} out of range`}return!1;case A.FIXED64:case A.UINT64:if("bigint"==typeof l||"number"==typeof l||"string"==typeof l&&l.length>0)try{return R.uParse(l),!0}catch(g){return`${l} out of range`}return!1}}function PV(l,V,g){return g="string"==typeof g?`: ${g}`:`, got ${_V(V)}`,void 0!==l.scalar?`expected ${function(l){switch(l){case A.STRING:return"string";case A.BOOL:return"boolean";case A.INT64:case A.SINT64:case A.SFIXED64:return"bigint (int64)";case A.UINT64:case A.FIXED64:return"bigint (uint64)";case A.BYTES:return"Uint8Array";case A.DOUBLE:return"number (float64)";case A.FLOAT:return"number (float32)";case A.FIXED32:case A.UINT32:return"number (uint32)";case A.INT32:case A.SFIXED32:case A.SINT32:return"number (int32)"}}(l.scalar)}`+g:void 0!==l.enum?`expected ${l.enum.toString()}`+g:`expected ${qV(l.message)}`+g}function _V(l){switch(typeof l){case"object":return null===l?"null":l instanceof Uint8Array?`Uint8Array(${l.length})`:Array.isArray(l)?`Array(${l.length})`:NV(l)?$V(l.field()):yV(l)?lA(l.field()):iV(l)?qV(l.desc):EV(l)?`message ${l.$typeName}`:"object";case"string":return l.length>30?"string":`"${l.split('"').join('\\"')}"`;case"boolean":case"number":return String(l);case"bigint":return String(l)+"n";default:return typeof l}}function qV(l){return`ReflectMessage (${l.typeName})`}function $V(l){switch(l.listKind){case"message":return`ReflectList (${l.message.toString()})`;case"enum":return`ReflectList (${l.enum.toString()})`;case"scalar":return`ReflectList (${A[l.scalar]})`}}function lA(l){switch(l.mapKind){case"message":return`ReflectMap (${A[l.mapKey]}, ${l.message.toString()})`;case"enum":return`ReflectMap (${A[l.mapKey]}, ${l.enum.toString()})`;case"scalar":return`ReflectMap (${A[l.mapKey]}, ${A[l.scalar]})`}}function VA(l,V,A=!0){return new a(l,V,A)}function AA(l,V){if(V.parent.typeName!==l.$typeName)throw new X(V,`cannot use ${V.toString()} with message ${l.$typeName}`,"ForeignFieldError")}function gA(l,V){return iV(V)?pV(V.message.$typeName)&&!l.oneof&&"message"==l.fieldKind?V.message.value:"google.protobuf.Struct"==V.desc.typeName&&"google.protobuf.Value"!=l.parent.typeName?SA(V.message):V.message:V}function dA(l,V,A){return void 0!==V&&(sV(l.message)&&!l.oneof&&"message"==l.fieldKind?V={$typeName:l.message.typeName,value:IA(l.message.fields[0],V)}:"google.protobuf.Struct"==l.message.typeName&&"google.protobuf.Value"!=l.parent.typeName&&QV(V)&&(V=nA(V))),new a(l.message,V,A)}function RA(l,V){return"message"==l.listKind?gA(l,V):EA(l,V)}function cA(l,V,A){return"message"==l.listKind?dA(l,V,A):IA(l,V)}function GA(l,V,A){return"message"==l.mapKind?dA(l,V,A):V}function ZA(l){return"string"==typeof l||"number"==typeof l?l:String(l)}function bA(l,V){switch(V){case A.STRING:return l;case A.INT32:case A.FIXED32:case A.UINT32:case A.SFIXED32:case A.SINT32:{const V=Number.parseInt(l);if(Number.isFinite(V))return V;break}case A.BOOL:switch(l){case"true":return!0;case"false":return!1}break;case A.UINT64:case A.FIXED64:try{return R.uParse(l)}catch(g){}break;default:try{return R.parse(l)}catch(d){}}return l}function IA(l,V){switch(l.scalar){case A.INT64:case A.SFIXED64:case A.SINT64:"longAsString"in l&&l.longAsString&&"string"==typeof V&&(V=R.parse(V));break;case A.FIXED64:case A.UINT64:"longAsString"in l&&l.longAsString&&"string"==typeof V&&(V=R.uParse(V))}return V}function EA(l,V){switch(l.scalar){case A.INT64:case A.SFIXED64:case A.SINT64:"longAsString"in l&&l.longAsString?V=String(V):"string"!=typeof V&&"number"!=typeof V||(V=R.parse(V));break;case A.FIXED64:case A.UINT64:"longAsString"in l&&l.longAsString?V=String(V):"string"!=typeof V&&"number"!=typeof V||(V=R.uParse(V))}return V}function nA(l){const V={$typeName:"google.protobuf.Struct",fields:{}};if(QV(l))for(const[A,g]of Object.entries(l))V.fields[A]=BA(g);return V}function SA(l){const V={};for(const[A,g]of Object.entries(l.fields))V[A]=XA(g);return V}function XA(l){switch(l.kind.case){case"structValue":return SA(l.kind.value);case"listValue":return l.kind.value.values.map(XA);case"nullValue":case void 0:return null;default:return l.kind.value}}function BA(l){const V={$typeName:"google.protobuf.Value",kind:{case:void 0}};switch(typeof l){case"number":V.kind={case:"numberValue",value:l};break;case"string":V.kind={case:"stringValue",value:l};break;case"boolean":V.kind={case:"boolValue",value:l};break;case"object":if(null===l)V.kind={case:"nullValue",value:0};else if(Array.isArray(l)){const A={$typeName:"google.protobuf.ListValue",values:[]};if(Array.isArray(l))for(const V of l)A.values.push(BA(V));V.kind={case:"listValue",value:A}}else V.kind={case:"structValue",value:nA(l)}}return V}function FA(l){const V=function(){if(!W){W=[];const l=oA("std");for(let V=0;V>4,G=g,c=2;break;case 2:d[R++]=(15&G)<<4|(60&g)>>2,G=g,c=3;break;case 3:d[R++]=(3&G)<<6|g,c=0}}if(1==c)throw Error("invalid base64 string");return d.subarray(0,R)}function oA(l){return e||(e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),h=e.slice(0,-2).concat("-","_")),"url"==l?h:e}function UA(l){let V=!1;const A=[];for(let g=0;g=l){const V=this.tail.substring(0,l);return this.tail=this.tail.substring(l),V}return!1}};for(;A.next();)if("\\"===A.c){if(A.next())switch(A.c){case"\\":V.push(A.c.charCodeAt(0));break;case"b":V.push(8);break;case"f":V.push(12);break;case"n":V.push(10);break;case"r":V.push(13);break;case"t":V.push(9);break;case"v":V.push(11);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{const l=A.c,g=A.take(2);if(!1===g)return!1;const d=parseInt(l+g,8);if(Number.isNaN(d))return!1;V.push(d);break}case"x":{const l=A.c,g=A.take(2);if(!1===g)return!1;const d=parseInt(l+g,16);if(Number.isNaN(d))return!1;V.push(d);break}case"u":{const l=A.c,g=A.take(4);if(!1===g)return!1;const d=parseInt(l+g,16);if(Number.isNaN(d))return!1;const R=new Uint8Array(4);new DataView(R.buffer).setInt32(0,d,!0),V.push(R[0],R[1],R[2],R[3]);break}case"U":{const l=A.c,g=A.take(8);if(!1===g)return!1;const d=R.uEnc(l+g),c=new Uint8Array(8),G=new DataView(c.buffer);G.setInt32(0,d.lo,!0),G.setInt32(4,d.hi,!0),V.push(c[0],c[1],c[2],c[3],c[4],c[5],c[6],c[7]);break}}}else V.push(A.c.charCodeAt(0));return new Uint8Array(V)}(V);if(!1===g)throw new Error(`cannot parse ${A[l]} default value: ${V}`);return g}case A.INT64:case A.SFIXED64:case A.SINT64:return R.parse(V);case A.UINT64:case A.FIXED64:return R.uParse(V);case A.DOUBLE:case A.FLOAT:switch(V){case"inf":return Number.POSITIVE_INFINITY;case"-inf":return Number.NEGATIVE_INFINITY;case"nan":return NaN;default:return parseFloat(V)}case A.BOOL:return"true"===V;case A.INT32:case A.UINT32:case A.SINT32:case A.FIXED32:case A.SFIXED32:return parseInt(V,10)}}function*eA(l){switch(l.kind){case"file":for(const V of l.messages)yield V,yield*eA(V);yield*l.enums,yield*l.services,yield*l.extensions;break;case"message":for(const V of l.nestedMessages)yield V,yield*eA(V);yield*l.nestedEnums,yield*l.nestedExtensions}}function hA(...l){const V=function(){const l=new Map,V=new Map,A=new Map;return{kind:"registry",types:l,extendees:V,[Symbol.iterator]:()=>l.values(),get files(){return A.values()},addFile(l,V,g){if(A.set(l.proto.name,l),!V)for(const A of eA(l))this.add(A);if(g)for(const A of l.dependencies)this.addFile(A,V,g)},add(A){if("extension"==A.kind){let l=V.get(A.extendee.typeName);l||V.set(A.extendee.typeName,l=new Map),l.set(A.number,A)}l.set(A.typeName,A)},get:V=>l.get(V),getFile:l=>A.get(l),getMessage(V){const A=l.get(V);return"message"==(null==A?void 0:A.kind)?A:void 0},getEnum(V){const A=l.get(V);return"enum"==(null==A?void 0:A.kind)?A:void 0},getExtension(V){const A=l.get(V);return"extension"==(null==A?void 0:A.kind)?A:void 0},getExtensionFor(l,A){var g;return null===(g=V.get(l.typeName))||void 0===g?void 0:g.get(A)},getService(V){const A=l.get(V);return"service"==(null==A?void 0:A.kind)?A:void 0}}}();if(!l.length)return V;if("$typeName"in l[0]&&"google.protobuf.FileDescriptorSet"==l[0].$typeName){for(const A of l[0].file)WA(A,V);return V}if("$typeName"in l[0]){const g=l[0],d=l[1],R=new Set;function c(l){const A=[];for(const g of l.dependency){if(null!=V.getFile(g))continue;if(R.has(g))continue;const c=d(g);if(!c)throw new Error(`Unable to resolve ${g}, imported by ${l.name}`);"kind"in c?V.addFile(c,!1,!0):(R.add(c.name),A.push(c))}return A.concat(...A.map(c))}for(const G of[g,...c(g)].reverse())WA(G,V)}else for(const Z of l)for(const b of Z.files)V.addFile(b);return V}function WA(l,V){var A,g;const d={kind:"file",proto:l,deprecated:null!==(g=null===(A=l.options)||void 0===A?void 0:A.deprecated)&&void 0!==g&&g,edition:iA(l),name:l.name.replace(/\.proto$/,""),dependencies:sA(l,V),enums:[],messages:[],extensions:[],services:[],toString:()=>`file ${l.name}`},R=new Map,c={get:l=>R.get(l),add(l){var V;MA(!0===(null===(V=l.proto.options)||void 0===V?void 0:V.mapEntry)),R.set(l.typeName,l)}};for(const G of l.enumType)YA(G,d,void 0,V);for(const G of l.messageType)tA(G,d,void 0,V,c);for(const G of l.service)QA(G,d,V);JA(d,V);for(const G of R.values())uA(G,V,c);for(const G of d.messages)uA(G,V,c),JA(G,V);V.addFile(d,!0)}function JA(l,V){switch(l.kind){case"file":for(const A of l.proto.extension){const g=yA(A,l,V);l.extensions.push(g),V.add(g)}break;case"message":for(const A of l.proto.extension){const g=yA(A,l,V);l.nestedExtensions.push(g),V.add(g)}for(const A of l.nestedMessages)JA(A,V)}}function uA(l,V,A){const g=l.proto.oneofDecl.map(V=>function(l,V){return{kind:"oneof",proto:l,deprecated:!1,parent:V,fields:[],name:l.name,localName:aA(UA(l.name)),toString(){return`oneof ${V.typeName}.${this.name}`}}}(V,l)),d=new Set;for(const R of l.proto.field){const c=KA(R,g),G=yA(R,l,V,c,A);l.fields.push(G),l.field[G.localName]=G,void 0===c?l.members.push(G):(c.fields.push(G),d.has(c)||(d.add(c),l.members.push(c)))}for(const R of g.filter(l=>d.has(l)))l.oneofs.push(R);for(const R of l.nestedMessages)uA(R,V,A)}function YA(l,V,A,g){var d,R,c,G,Z;const b=function(l,V){const A=((g=l).substring(0,1)+g.substring(1).replace(/[A-Z]/g,l=>"_"+l)).toLowerCase()+"_";var g;for(const d of V){if(!d.name.toLowerCase().startsWith(A))return;const l=d.name.substring(A.length);if(0==l.length)return;if(/^\d/.test(l))return}return A}(l.name,l.value),I={kind:"enum",proto:l,deprecated:null!==(R=null===(d=l.options)||void 0===d?void 0:d.deprecated)&&void 0!==R&&R,file:V,parent:A,open:!0,name:l.name,typeName:pA(l,A,V),value:{},values:[],sharedPrefix:b,toString(){return`enum ${this.typeName}`}};I.open=function(l){var V;return z==rA("enumType",{proto:l.proto,parent:null!==(V=l.parent)&&void 0!==V?V:l.file})}(I),g.add(I);for(const E of l.value){const l=E.name;I.values.push(I.value[E.number]={kind:"enum_value",proto:E,deprecated:null!==(G=null===(c=E.options)||void 0===c?void 0:c.deprecated)&&void 0!==G&&G,parent:I,name:l,localName:aA(null==b?l:l.substring(b.length)),number:E.number,toString:()=>`enum value ${I.typeName}.${l}`})}(null!==(Z=null==A?void 0:A.nestedEnums)&&void 0!==Z?Z:V.enums).push(I)}function tA(l,V,A,g,d){var R,c,G,Z;const b={kind:"message",proto:l,deprecated:null!==(c=null===(R=l.options)||void 0===R?void 0:R.deprecated)&&void 0!==c&&c,file:V,parent:A,name:l.name,typeName:pA(l,A,V),fields:[],field:{},oneofs:[],members:[],nestedEnums:[],nestedMessages:[],nestedExtensions:[],toString(){return`message ${this.typeName}`}};!0===(null===(G=l.options)||void 0===G?void 0:G.mapEntry)?d.add(b):((null!==(Z=null==A?void 0:A.nestedMessages)&&void 0!==Z?Z:V.messages).push(b),g.add(b));for(const I of l.enumType)YA(I,V,b,g);for(const I of l.nestedType)tA(I,V,b,g,d)}function QA(l,V,A){var g,d;const R={kind:"service",proto:l,deprecated:null!==(d=null===(g=l.options)||void 0===g?void 0:g.deprecated)&&void 0!==d&&d,file:V,name:l.name,typeName:pA(l,void 0,V),methods:[],method:{},toString(){return`service ${this.typeName}`}};V.services.push(R),A.add(R);for(const c of l.method){const l=NA(c,R,A);R.methods.push(l),R.method[l.localName]=l}}function NA(l,V,A){var g,d,R,c;let G;G=l.clientStreaming&&l.serverStreaming?"bidi_streaming":l.clientStreaming?"client_streaming":l.serverStreaming?"server_streaming":"unary";const Z=A.getMessage(kA(l.inputType)),b=A.getMessage(kA(l.outputType));MA(Z,`invalid MethodDescriptorProto: input_type ${l.inputType} not found`),MA(b,`invalid MethodDescriptorProto: output_type ${l.inputType} not found`);const I=l.name;return{kind:"rpc",proto:l,deprecated:null!==(d=null===(g=l.options)||void 0===g?void 0:g.deprecated)&&void 0!==d&&d,parent:V,name:I,localName:aA(I.length?aA(I[0].toLowerCase()+I.substring(1)):I),methodKind:G,input:Z,output:b,idempotency:null!==(c=null===(R=l.options)||void 0===R?void 0:R.idempotencyLevel)&&void 0!==c?c:T,toString:()=>`rpc ${V.typeName}.${I}`}}function yA(l,V,g,d,R){var c,G,Z;const b=void 0===R,I={kind:"field",proto:l,deprecated:null!==(G=null===(c=l.options)||void 0===c?void 0:c.deprecated)&&void 0!==G&&G,name:l.name,number:l.number,scalar:void 0,message:void 0,enum:void 0,presence:TA(l,d,b,V),utf8Validation:xA(l,V),listKind:void 0,mapKind:void 0,mapKey:void 0,delimitedEncoding:void 0,packed:void 0,longAsString:!1,getDefaultValue:void 0};if(b){const A="file"==V.kind?V:V.file,d="file"==V.kind?void 0:V,R=pA(l,d,A);I.kind="extension",I.file=A,I.parent=d,I.oneof=void 0,I.typeName=R,I.jsonName=`[${R}]`,I.toString=()=>`extension ${R}`;const c=g.getMessage(kA(l.extendee));MA(c,`invalid FieldDescriptorProto: extendee ${l.extendee} not found`),I.extendee=c}else{const A=V;MA("message"==A.kind),I.parent=A,I.oneof=d,I.localName=d?UA(l.name):aA(UA(l.name)),I.jsonName=l.jsonName,I.toString=()=>`field ${A.typeName}.${l.name}`}const E=l.label,n=l.type,S=null===(Z=l.options)||void 0===Z?void 0:Z.jstype;if(E===p){const d=n==y?null==R?void 0:R.get(kA(l.typeName)):void 0;if(d){I.fieldKind="map";const{key:l,value:V}=function(l){const V=l.fields.find(l=>1===l.number),g=l.fields.find(l=>2===l.number);return MA(V&&"scalar"==V.fieldKind&&V.scalar!=A.BYTES&&V.scalar!=A.FLOAT&&V.scalar!=A.DOUBLE&&g&&"list"!=g.fieldKind&&"map"!=g.fieldKind),{key:V,value:g}}(d);return I.mapKey=l.scalar,I.mapKind=V.fieldKind,I.message=V.message,I.delimitedEncoding=!1,I.enum=V.enum,I.scalar=V.scalar,I}switch(I.fieldKind="list",n){case y:case N:I.listKind="message",I.message=g.getMessage(kA(l.typeName)),MA(I.message),I.delimitedEncoding=LA(l,V);break;case s:I.listKind="enum",I.enum=g.getEnum(kA(l.typeName)),MA(I.enum);break;default:I.listKind="scalar",I.scalar=n,I.longAsString=S==K}return I.packed=function(l,V){if(l.label!=p)return!1;switch(l.type){case Q:case i:case N:case y:return!1}const A=l.options;return A&&uV(A,"packed")?A.packed:M==rA("repeatedFieldEncoding",{proto:l,parent:V})}(l,V),I}switch(n){case y:case N:I.fieldKind="message",I.message=g.getMessage(kA(l.typeName)),MA(I.message,`invalid FieldDescriptorProto: type_name ${l.typeName} not found`),I.delimitedEncoding=LA(l,V),I.getDefaultValue=()=>{};break;case s:{const V=g.getEnum(kA(l.typeName));MA(void 0!==V,`invalid FieldDescriptorProto: type_name ${l.typeName} not found`),I.fieldKind="enum",I.enum=g.getEnum(kA(l.typeName)),I.getDefaultValue=()=>uV(l,"defaultValue")?function(l,V){const A=l.values.find(l=>l.name===V);if(!A)throw new Error(`cannot parse ${l} default value: ${V}`);return A.number}(V,l.defaultValue):void 0;break}default:I.fieldKind="scalar",I.scalar=n,I.longAsString=S==K,I.getDefaultValue=()=>uV(l,"defaultValue")?CA(n,l.defaultValue):void 0}return I}function iA(l){switch(l.syntax){case"":case"proto2":return u;case"proto3":return Y;case"editions":if(l.edition===t)return D;if(l.edition in v)return l.edition;throw new Error(`${l.name}: unsupported edition`);default:throw new Error(`${l.name}: unsupported syntax "${l.syntax}"`)}}function sA(l,V){return l.dependency.map(A=>{const g=V.getFile(A);if(!g)throw new Error(`Cannot find ${A}, imported by ${l.name}`);return g})}function pA(l,V,A){let g;return g=V?`${V.typeName}.${l.name}`:A.proto.package.length>0?`${A.proto.package}.${l.name}`:`${l.name}`,g}function kA(l){return l.startsWith(".")?l.substring(1):l}function KA(l,V){if(!uV(l,"oneofIndex"))return;if(l.proto3Optional)return;const A=V[l.oneofIndex];return MA(A,`invalid FieldDescriptorProto: oneof #${l.oneofIndex} for field #${l.number} not found`),A}function TA(l,V,A,g){if(l.label==k)return r;if(l.label==p)return x;if(V||l.proto3Optional)return L;if(A)return L;const d=rA("fieldPresence",{proto:l,parent:g});return d!=x||l.type!=y&&l.type!=N?d:L}function LA(l,V){return l.type==N||H==rA("messageEncoding",{proto:l,parent:V})}function xA(l,V){return f==rA("utf8Validation",{proto:l,parent:V})}function rA(l,V){var A,g;const d=null===(A=V.proto.options)||void 0===A?void 0:A.features;if(d){const V=d[l];if(0!=V)return V}if("kind"in V){if("message"==V.kind)return rA(l,null!==(g=V.parent)&&void 0!==g?g:V.file);const A=v[V.edition];if(!A)throw new Error(`feature default for edition ${V.edition} not found`);return A[l]}return rA(l,V.parent)}function MA(l,V){if(!l)throw new Error(V)}function HA(l){const V=(A=l,Object.assign(Object.create({syntax:"",edition:0}),Object.assign(Object.assign({$typeName:"google.protobuf.FileDescriptorProto",dependency:[],publicDependency:[],weakDependency:[],optionDependency:[],service:[],extension:[]},A),{messageType:A.messageType.map(zA),enumType:A.enumType.map(vA)})));var A;return V.messageType.forEach(mA),hA(V,()=>{}).getFile(V.name)}function zA(l){var V,A,g,d,R,c,G,Z;return Object.assign(Object.create({visibility:0}),{$typeName:"google.protobuf.DescriptorProto",name:l.name,field:null!==(A=null===(V=l.field)||void 0===V?void 0:V.map(fA))&&void 0!==A?A:[],extension:[],nestedType:null!==(d=null===(g=l.nestedType)||void 0===g?void 0:g.map(zA))&&void 0!==d?d:[],enumType:null!==(c=null===(R=l.enumType)||void 0===R?void 0:R.map(vA))&&void 0!==c?c:[],extensionRange:null!==(Z=null===(G=l.extensionRange)||void 0===G?void 0:G.map(l=>Object.assign({$typeName:"google.protobuf.DescriptorProto.ExtensionRange"},l)))&&void 0!==Z?Z:[],oneofDecl:[],reservedRange:[],reservedName:[]})}function fA(l){return Object.assign(Object.create({label:1,typeName:"",extendee:"",defaultValue:"",oneofIndex:0,jsonName:"",proto3Optional:!1}),Object.assign(Object.assign({$typeName:"google.protobuf.FieldDescriptorProto"},l),{options:l.options?DA(l.options):void 0}))}function DA(l){var V,A,g;return Object.assign(Object.create({ctype:0,packed:!1,jstype:0,lazy:!1,unverifiedLazy:!1,deprecated:!1,weak:!1,debugRedact:!1,retention:0}),Object.assign(Object.assign({$typeName:"google.protobuf.FieldOptions"},l),{targets:null!==(V=l.targets)&&void 0!==V?V:[],editionDefaults:null!==(g=null===(A=l.editionDefaults)||void 0===A?void 0:A.map(l=>Object.assign({$typeName:"google.protobuf.FieldOptions.EditionDefault"},l)))&&void 0!==g?g:[],uninterpretedOption:[]}))}function vA(l){return Object.assign(Object.create({visibility:0}),{$typeName:"google.protobuf.EnumDescriptorProto",name:l.name,reservedName:[],reservedRange:[],value:l.value.map(l=>Object.assign({$typeName:"google.protobuf.EnumValueDescriptorProto"},l))})}function wA(l,V,...A){return A.reduce((l,V)=>l.nestedMessages[V],l.messages[V])}function jA(l,V,A){const g=VA(l,void 0,!1);return OA(g,new o(V),function(l){return l?Object.assign(Object.assign({},Bl),l):Bl}(A),!1,V.byteLength),g.message}function OA(l,V,A,g,d){var R;const c=g?V.len:V.pos+d;let G,Z;const b=null!==(R=l.getUnknown())&&void 0!==R?R:[];for(;V.pos0&&l.setUnknown(b)}function PA(l,V,g,d,R){var c;switch(g.fieldKind){case"scalar":l.set(g,qA(V,g.scalar,g.utf8Validation));break;case"enum":const G=qA(V,A.INT32);if(g.enum.open)l.set(g,G);else if(g.enum.values.some(l=>l.number===G))l.set(g,G);else if(R.readUnknownFields){const V=[];UV(G,V);const A=null!==(c=l.getUnknown())&&void 0!==c?c:[];A.push({no:g.number,wireType:d,data:new Uint8Array(V)}),l.setUnknown(A)}break;case"message":l.set(g,_A(V,R,g,l.get(g)));break;case"list":!function(l,V,g,d){var R;const c=g.field();if("message"===c.listKind)return void g.add(_A(l,d,c));const G=null!==(R=c.scalar)&&void 0!==R?R:A.INT32;if(V!=F.LengthDelimited||G==A.STRING||G==A.BYTES)return void g.add(qA(l,G,c.utf8Validation));const Z=l.uint32()+l.pos;for(;l.posl.proto.name))&&void 0!==A?A:[],hA(g,l=>null==V?void 0:V.find(V=>V.proto.name===l)).getFile(g.name)}function lg(l,V,...A){if(A.length>0)throw new Error;return l.services[V]}return l({A:function(l){switch(l.typeName){case"google.protobuf.Any":case"google.protobuf.Timestamp":case"google.protobuf.Duration":case"google.protobuf.FieldMask":case"google.protobuf.Struct":case"google.protobuf.Value":case"google.protobuf.ListValue":return!0;default:return sV(l)}},C:_V,M:hV,O:function(l){return l instanceof Error&&S.includes(l.name)&&"field"in l&&"function"==typeof l.field},S:vV,_:UA,b:function(l,V="std"){const A=oA(V),g="std"==V;let d,R="",c=0,G=0;for(let Z=0;Z>2],G=(3&d)<<4,c=1;break;case 1:R+=A[G|d>>4],G=(15&d)<<2,c=2;break;case 2:R+=A[G|d>>6],R+=A[63&d],c=0}return c&&(R+=A[G],g&&(R+="=",1==c&&(R+="="))),R},h:PA,j:sV,k:kV,m:jA,v:function(l){return l.replace(/[A-Z]/g,l=>"_"+l.toLowerCase())},x:VA,y:FA,P:void 0,E:void 0,g:void 0,u:void 0}),{setters:[],execute:function(){!function(l){l[l.DOUBLE=1]="DOUBLE",l[l.FLOAT=2]="FLOAT",l[l.INT64=3]="INT64",l[l.UINT64=4]="UINT64",l[l.INT32=5]="INT32",l[l.FIXED64=6]="FIXED64",l[l.FIXED32=7]="FIXED32",l[l.BOOL=8]="BOOL",l[l.STRING=9]="STRING",l[l.BYTES=12]="BYTES",l[l.UINT32=13]="UINT32",l[l.SFIXED32=15]="SFIXED32",l[l.SFIXED64=16]="SFIXED64",l[l.SINT32=17]="SINT32",l[l.SINT64=18]="SINT64"}(A||l("P",A={})),g=4294967296,d=l=>{const V=String(l);return"0000000".slice(V.length)+V},l("N",R=mV()),c=2,G=Symbol.for("reflect unsafe local"),Z=999,b=998,I=2,E=Symbol(),n=new WeakMap,S=["FieldValueInvalidError","FieldListRangeError","ForeignFieldError"],l("D",X=class extends Error{constructor(l,V,A="FieldValueInvalidError"){super(V),this.name=A,this.field=()=>l}}),B=Symbol.for("@bufbuild/protobuf/text-encoding"),function(l){l[l.Varint=0]="Varint",l[l.Bit64=1]="Bit64",l[l.LengthDelimited=2]="LengthDelimited",l[l.StartGroup=3]="StartGroup",l[l.EndGroup=4]="EndGroup",l[l.Bit32=5]="Bit32"}(F||l("E",F={})),l("T",class{constructor(l=zV().encodeUtf8){this.encodeUtf8=l,this.stack=[],this.chunks=[],this.buf=[]}finish(){this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]);let l=0;for(let g=0;g>>0)}raw(l){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(l),this}uint32(l){for(DV(l);l>127;)this.buf.push(127&l|128),l>>>=7;return this.buf.push(l),this}int32(l){return fV(l),UV(l,this.buf),this}bool(l){return this.buf.push(l?1:0),this}bytes(l){return this.uint32(l.byteLength),this.raw(l)}string(l){let V=this.encodeUtf8(l);return this.uint32(V.byteLength),this.raw(V)}float(l){!function(l){if("string"==typeof l){const V=l;if(l=Number(l),Number.isNaN(l)&&"NaN"!==V)throw new Error("invalid float32: "+V)}else if("number"!=typeof l)throw new Error("invalid float32: "+typeof l);if(Number.isFinite(l)&&(l>34028234663852886e22||l<-34028234663852886e22))throw new Error("invalid float32: "+l)}(l);let V=new Uint8Array(4);return new DataView(V.buffer).setFloat32(0,l,!0),this.raw(V)}double(l){let V=new Uint8Array(8);return new DataView(V.buffer).setFloat64(0,l,!0),this.raw(V)}fixed32(l){DV(l);let V=new Uint8Array(4);return new DataView(V.buffer).setUint32(0,l,!0),this.raw(V)}sfixed32(l){fV(l);let V=new Uint8Array(4);return new DataView(V.buffer).setInt32(0,l,!0),this.raw(V)}sint32(l){return fV(l),UV(l=(l<<1^l>>31)>>>0,this.buf),this}sfixed64(l){let V=new Uint8Array(8),A=new DataView(V.buffer),g=R.enc(l);return A.setInt32(0,g.lo,!0),A.setInt32(4,g.hi,!0),this.raw(V)}fixed64(l){let V=new Uint8Array(8),A=new DataView(V.buffer),g=R.uEnc(l);return A.setInt32(0,g.lo,!0),A.setInt32(4,g.hi,!0),this.raw(V)}int64(l){let V=R.enc(l);return SV(V.lo,V.hi,this.buf),this}sint64(l){const V=R.enc(l),A=V.hi>>31;return SV(V.lo<<1^A,(V.hi<<1|V.lo>>>31)^A,this.buf),this}uint64(l){const V=R.uEnc(l);return SV(V.lo,V.hi,this.buf),this}}),l("w",o=class{constructor(l,V=zV().decodeUtf8){this.decodeUtf8=V,this.varint64=nV,this.uint32=aV,this.buf=l,this.len=l.length,this.pos=0,this.view=new DataView(l.buffer,l.byteOffset,l.byteLength)}tag(){const l=this.pos,V=this.uint32(),A=this.pos-l;if(A>5||5==A&&this.buf[this.pos-1]>15)throw new Error("illegal tag: varint overflows uint32");const g=V>>>3,d=7&V;if(g<=0||d>5)throw new Error("illegal tag: field no "+g+" wire type "+d);return[g,d]}skip(l,V){let A=this.pos;switch(l){case F.Varint:for(;128&this.buf[this.pos++];);break;case F.Bit64:this.pos+=4;case F.Bit32:this.pos+=4;break;case F.LengthDelimited:let A=this.uint32();this.pos+=A;break;case F.StartGroup:for(;;){const[l,A]=this.tag();if(A===F.EndGroup){if(void 0!==V&&l!==V)throw new Error("invalid end group tag");break}this.skip(A,l)}break;default:throw new Error("cant skip wire type "+l)}return this.assertBounds(),this.buf.subarray(A,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return 0|this.uint32()}sint32(){let l=this.uint32();return l>>>1^-(1&l)}int64(){return R.dec(...this.varint64())}uint64(){return R.uDec(...this.varint64())}sint64(){let[l,V]=this.varint64(),A=-(1&l);return l=(l>>>1|(1&V)<<31)^A,V=V>>>1^A,R.dec(l,V)}bool(){let[l,V]=this.varint64();return 0!==l||0!==V}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return R.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return R.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let l=this.uint32(),V=this.pos;return this.pos+=l,this.assertBounds(),this.buf.subarray(V,V+l)}string(l){return this.decodeUtf8(this.bytes(),l)}}),U=new WeakMap,a=class{get sortedFields(){const l=U.get(this.desc);if(l)return l;const V=this.desc.fields.concat().sort((l,V)=>l.number-V.number);return U.set(this.desc,V),V}constructor(l,V,A=!0){this.lists=new Map,this.maps=new Map,this.check=A,this.desc=l,this.message=this[G]=null!=V?V:kV(l),this.fields=l.fields,this.oneofs=l.oneofs,this.members=l.members}findNumber(l){return this._fieldsByNumber||(this._fieldsByNumber=new Map(this.desc.fields.map(l=>[l.number,l]))),this._fieldsByNumber.get(l)}oneofCase(l){return AA(this.message,l),WV(this.message,l)}isSet(l){return AA(this.message,l),JV(this.message,l)}clear(l){AA(this.message,l),function(l,V){const A=V.localName;if(V.oneof){const g=V.oneof.localName;l[g].case===A&&(l[g]={case:void 0})}else if(V.presence!=c)delete l[A];else switch(V.fieldKind){case"map":l[A]={};break;case"list":l[A]=[];break;case"enum":l[A]=V.enum.values[0].number;break;case"scalar":l[A]=hV(V.scalar,V.longAsString)}}(this.message,l)}get(l){AA(this.message,l);const V=YV(this.message,l);switch(l.fieldKind){case"list":let A=this.lists.get(l);return A&&A[G]===V||this.lists.set(l,A=new m(l,V,this.check)),A;case"map":let g=this.maps.get(l);return g&&g[G]===V||this.maps.set(l,g=new C(l,V,this.check)),g;case"message":return dA(l,V,this.check);case"scalar":return void 0===V?hV(l.scalar,!1):IA(l,V);case"enum":return null!=V?V:l.enum.values[0].number}}set(l,V){if(AA(this.message,l),this.check){const A=vV(l,V);if(A)throw A}let A;A="message"==l.fieldKind?gA(l,V):yV(V)||NV(V)?V[G]:EA(l,V),tV(this.message,l,A)}getUnknown(){return this.message.$unknown}setUnknown(l){this.message.$unknown=l}},m=class{field(){return this._field}get size(){return this._arr.length}constructor(l,V,A){this._field=l,this._arr=this[G]=V,this.check=A}get(l){const V=this._arr[l];return void 0===V?void 0:cA(this._field,V,this.check)}set(l,V){if(l<0||l>=this._arr.length)throw new X(this._field,`list item #${l+1}: out of range`);if(this.check){const A=wV(this._field,l,V);if(A)throw A}this._arr[l]=RA(this._field,V)}add(l){if(this.check){const V=wV(this._field,this._arr.length,l);if(V)throw V}this._arr.push(RA(this._field,l))}clear(){this._arr.splice(0,this._arr.length)}[Symbol.iterator](){return this.values()}keys(){return this._arr.keys()}*values(){for(const l of this._arr)yield cA(this._field,l,this.check)}*entries(){for(let l=0;l