@code0-tech/tucana 0.0.75 → 0.0.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aquila.cjs.js +1 -1
- package/dist/aquila.es.js +67 -151
- package/dist/pb/_generated/sagittarius.module_pb.d.ts +6 -0
- package/dist/pb/_generated/shared.flow_pb.d.ts +37 -6
- package/dist/pb/_generated/shared.module_pb.d.ts +8 -0
- package/dist/pb/aquila.d.ts +0 -2
- package/dist/pb/sagittarius.d.ts +0 -2
- package/dist/pb/shared.d.ts +0 -1
- package/dist/{rpc-interceptor-az_TTCBK.js → rpc-interceptor-d3qh7P9n.js} +10 -10
- package/dist/{rpc-interceptor-DOeBkZHU.cjs → rpc-interceptor-giFADd4b.cjs} +1 -1
- package/dist/sagittarius.cjs.js +1 -1
- package/dist/sagittarius.es.js +121 -203
- package/dist/shared.cjs.js +1 -1
- package/dist/shared.es.js +4 -4
- package/dist/{shared.flow_pb-C4ewDq2u.js → shared.flow_pb-DdVuFKPW.js} +179 -117
- package/dist/{shared.flow_pb-DrDw61IF.cjs → shared.flow_pb-clFvPGyv.cjs} +1 -1
- package/dist/shared.function_pb-C8cj-NCz.cjs +2 -0
- package/dist/{shared.function_pb-e1jkWYE_.js → shared.function_pb-Caz-4jvi.js} +1131 -1131
- package/dist/{shared.runtime_usage_pb-DqB5DUDk.cjs → shared.runtime_status_pb-BEEvFfe8.cjs} +1 -1
- package/dist/{shared.runtime_usage_pb-DDUhVHjA.js → shared.runtime_status_pb-D7hH22xO.js} +24 -50
- package/dist/velorum.cjs.js +1 -1
- package/dist/velorum.es.js +3 -3
- package/package.json +1 -1
- package/dist/pb/_generated/aquila.runtime_usage_pb.client.d.ts +0 -27
- package/dist/pb/_generated/aquila.runtime_usage_pb.d.ts +0 -46
- package/dist/pb/_generated/sagittarius.runtime_usage_pb.client.d.ts +0 -27
- package/dist/pb/_generated/sagittarius.runtime_usage_pb.d.ts +0 -51
- package/dist/pb/_generated/shared.runtime_usage_pb.d.ts +0 -25
- package/dist/shared.function_pb-BErnwHWO.cjs +0 -2
|
@@ -1,5 +1,186 @@
|
|
|
1
|
+
//#region node_modules/@protobuf-ts/runtime/build/es2015/binary-format-contract.js
|
|
2
|
+
var e;
|
|
3
|
+
(function(e) {
|
|
4
|
+
e.symbol = Symbol.for("protobuf-ts/unknown"), e.onRead = (n, r, i, a, o) => {
|
|
5
|
+
(t(r) ? r[e.symbol] : r[e.symbol] = []).push({
|
|
6
|
+
no: i,
|
|
7
|
+
wireType: a,
|
|
8
|
+
data: o
|
|
9
|
+
});
|
|
10
|
+
}, e.onWrite = (t, n, r) => {
|
|
11
|
+
for (let { no: t, wireType: i, data: a } of e.list(n)) r.tag(t, i).raw(a);
|
|
12
|
+
}, e.list = (n, r) => {
|
|
13
|
+
if (t(n)) {
|
|
14
|
+
let t = n[e.symbol];
|
|
15
|
+
return r ? t.filter((e) => e.no == r) : t;
|
|
16
|
+
}
|
|
17
|
+
return [];
|
|
18
|
+
}, e.last = (t, n) => e.list(t, n).slice(-1)[0];
|
|
19
|
+
let t = (t) => t && Array.isArray(t[e.symbol]);
|
|
20
|
+
})(e ||= {});
|
|
21
|
+
var t;
|
|
22
|
+
(function(e) {
|
|
23
|
+
e[e.Varint = 0] = "Varint", e[e.Bit64 = 1] = "Bit64", e[e.LengthDelimited = 2] = "LengthDelimited", e[e.StartGroup = 3] = "StartGroup", e[e.EndGroup = 4] = "EndGroup", e[e.Bit32 = 5] = "Bit32";
|
|
24
|
+
})(t ||= {});
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region node_modules/@protobuf-ts/runtime/build/es2015/message-type-contract.js
|
|
27
|
+
var n = Symbol.for("protobuf-ts/message-type");
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region node_modules/@protobuf-ts/runtime/build/es2015/lower-camel-case.js
|
|
30
|
+
function r(e) {
|
|
31
|
+
let t = !1, n = [];
|
|
32
|
+
for (let r = 0; r < e.length; r++) {
|
|
33
|
+
let i = e.charAt(r);
|
|
34
|
+
i == "_" ? t = !0 : /\d/.test(i) ? (n.push(i), t = !0) : t ? (n.push(i.toUpperCase()), t = !1) : r == 0 ? n.push(i.toLowerCase()) : n.push(i);
|
|
35
|
+
}
|
|
36
|
+
return n.join("");
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region node_modules/@protobuf-ts/runtime/build/es2015/reflection-info.js
|
|
40
|
+
var i;
|
|
41
|
+
(function(e) {
|
|
42
|
+
e[e.DOUBLE = 1] = "DOUBLE", e[e.FLOAT = 2] = "FLOAT", e[e.INT64 = 3] = "INT64", e[e.UINT64 = 4] = "UINT64", e[e.INT32 = 5] = "INT32", e[e.FIXED64 = 6] = "FIXED64", e[e.FIXED32 = 7] = "FIXED32", e[e.BOOL = 8] = "BOOL", e[e.STRING = 9] = "STRING", e[e.BYTES = 12] = "BYTES", e[e.UINT32 = 13] = "UINT32", e[e.SFIXED32 = 15] = "SFIXED32", e[e.SFIXED64 = 16] = "SFIXED64", e[e.SINT32 = 17] = "SINT32", e[e.SINT64 = 18] = "SINT64";
|
|
43
|
+
})(i ||= {});
|
|
44
|
+
var a;
|
|
45
|
+
(function(e) {
|
|
46
|
+
e[e.BIGINT = 0] = "BIGINT", e[e.STRING = 1] = "STRING", e[e.NUMBER = 2] = "NUMBER";
|
|
47
|
+
})(a ||= {});
|
|
48
|
+
var o;
|
|
49
|
+
(function(e) {
|
|
50
|
+
e[e.NO = 0] = "NO", e[e.PACKED = 1] = "PACKED", e[e.UNPACKED = 2] = "UNPACKED";
|
|
51
|
+
})(o ||= {});
|
|
52
|
+
function s(e) {
|
|
53
|
+
return e.localName = e.localName ?? r(e.name), e.jsonName = e.jsonName ?? r(e.name), e.repeat = e.repeat ?? o.NO, e.opt = e.opt ?? (e.repeat || e.oneof ? !1 : e.kind == "message"), e;
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region node_modules/@protobuf-ts/runtime/build/es2015/oneof.js
|
|
57
|
+
function c(e) {
|
|
58
|
+
if (typeof e != "object" || !e || !e.hasOwnProperty("oneofKind")) return !1;
|
|
59
|
+
switch (typeof e.oneofKind) {
|
|
60
|
+
case "string": return e[e.oneofKind] === void 0 ? !1 : Object.keys(e).length == 2;
|
|
61
|
+
case "undefined": return Object.keys(e).length == 1;
|
|
62
|
+
default: return !1;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region node_modules/@protobuf-ts/runtime/build/es2015/reflection-type-check.js
|
|
67
|
+
var l = class {
|
|
68
|
+
constructor(e) {
|
|
69
|
+
this.fields = e.fields ?? [];
|
|
70
|
+
}
|
|
71
|
+
prepare() {
|
|
72
|
+
if (this.data) return;
|
|
73
|
+
let e = [], t = [], n = [];
|
|
74
|
+
for (let r of this.fields) if (r.oneof) n.includes(r.oneof) || (n.push(r.oneof), e.push(r.oneof), t.push(r.oneof));
|
|
75
|
+
else switch (t.push(r.localName), r.kind) {
|
|
76
|
+
case "scalar":
|
|
77
|
+
case "enum":
|
|
78
|
+
(!r.opt || r.repeat) && e.push(r.localName);
|
|
79
|
+
break;
|
|
80
|
+
case "message":
|
|
81
|
+
r.repeat && e.push(r.localName);
|
|
82
|
+
break;
|
|
83
|
+
case "map":
|
|
84
|
+
e.push(r.localName);
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
this.data = {
|
|
88
|
+
req: e,
|
|
89
|
+
known: t,
|
|
90
|
+
oneofs: Object.values(n)
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
is(e, t, n = !1) {
|
|
94
|
+
if (t < 0) return !0;
|
|
95
|
+
if (typeof e != "object" || !e) return !1;
|
|
96
|
+
this.prepare();
|
|
97
|
+
let r = Object.keys(e), i = this.data;
|
|
98
|
+
if (r.length < i.req.length || i.req.some((e) => !r.includes(e)) || !n && r.some((e) => !i.known.includes(e))) return !1;
|
|
99
|
+
if (t < 1) return !0;
|
|
100
|
+
for (let r of i.oneofs) {
|
|
101
|
+
let i = e[r];
|
|
102
|
+
if (!c(i)) return !1;
|
|
103
|
+
if (i.oneofKind === void 0) continue;
|
|
104
|
+
let a = this.fields.find((e) => e.localName === i.oneofKind);
|
|
105
|
+
if (!a || !this.field(i[i.oneofKind], a, n, t)) return !1;
|
|
106
|
+
}
|
|
107
|
+
for (let r of this.fields) if (r.oneof === void 0 && !this.field(e[r.localName], r, n, t)) return !1;
|
|
108
|
+
return !0;
|
|
109
|
+
}
|
|
110
|
+
field(e, t, n, r) {
|
|
111
|
+
let a = t.repeat;
|
|
112
|
+
switch (t.kind) {
|
|
113
|
+
case "scalar": return e === void 0 ? t.opt : a ? this.scalars(e, t.T, r, t.L) : this.scalar(e, t.T, t.L);
|
|
114
|
+
case "enum": return e === void 0 ? t.opt : a ? this.scalars(e, i.INT32, r) : this.scalar(e, i.INT32);
|
|
115
|
+
case "message": return e === void 0 ? !0 : a ? this.messages(e, t.T(), n, r) : this.message(e, t.T(), n, r);
|
|
116
|
+
case "map":
|
|
117
|
+
if (typeof e != "object" || !e) return !1;
|
|
118
|
+
if (r < 2) return !0;
|
|
119
|
+
if (!this.mapKeys(e, t.K, r)) return !1;
|
|
120
|
+
switch (t.V.kind) {
|
|
121
|
+
case "scalar": return this.scalars(Object.values(e), t.V.T, r, t.V.L);
|
|
122
|
+
case "enum": return this.scalars(Object.values(e), i.INT32, r);
|
|
123
|
+
case "message": return this.messages(Object.values(e), t.V.T(), n, r);
|
|
124
|
+
}
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
return !0;
|
|
128
|
+
}
|
|
129
|
+
message(e, t, n, r) {
|
|
130
|
+
return n ? t.isAssignable(e, r) : t.is(e, r);
|
|
131
|
+
}
|
|
132
|
+
messages(e, t, n, r) {
|
|
133
|
+
if (!Array.isArray(e)) return !1;
|
|
134
|
+
if (r < 2) return !0;
|
|
135
|
+
if (n) {
|
|
136
|
+
for (let n = 0; n < e.length && n < r; n++) if (!t.isAssignable(e[n], r - 1)) return !1;
|
|
137
|
+
} else for (let n = 0; n < e.length && n < r; n++) if (!t.is(e[n], r - 1)) return !1;
|
|
138
|
+
return !0;
|
|
139
|
+
}
|
|
140
|
+
scalar(e, t, n) {
|
|
141
|
+
let r = typeof e;
|
|
142
|
+
switch (t) {
|
|
143
|
+
case i.UINT64:
|
|
144
|
+
case i.FIXED64:
|
|
145
|
+
case i.INT64:
|
|
146
|
+
case i.SFIXED64:
|
|
147
|
+
case i.SINT64: switch (n) {
|
|
148
|
+
case a.BIGINT: return r == "bigint";
|
|
149
|
+
case a.NUMBER: return r == "number" && !isNaN(e);
|
|
150
|
+
default: return r == "string";
|
|
151
|
+
}
|
|
152
|
+
case i.BOOL: return r == "boolean";
|
|
153
|
+
case i.STRING: return r == "string";
|
|
154
|
+
case i.BYTES: return e instanceof Uint8Array;
|
|
155
|
+
case i.DOUBLE:
|
|
156
|
+
case i.FLOAT: return r == "number" && !isNaN(e);
|
|
157
|
+
default: return r == "number" && Number.isInteger(e);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
scalars(e, t, n, r) {
|
|
161
|
+
if (!Array.isArray(e)) return !1;
|
|
162
|
+
if (n < 2) return !0;
|
|
163
|
+
if (Array.isArray(e)) {
|
|
164
|
+
for (let i = 0; i < e.length && i < n; i++) if (!this.scalar(e[i], t, r)) return !1;
|
|
165
|
+
}
|
|
166
|
+
return !0;
|
|
167
|
+
}
|
|
168
|
+
mapKeys(e, t, n) {
|
|
169
|
+
let r = Object.keys(e);
|
|
170
|
+
switch (t) {
|
|
171
|
+
case i.INT32:
|
|
172
|
+
case i.FIXED32:
|
|
173
|
+
case i.SFIXED32:
|
|
174
|
+
case i.SINT32:
|
|
175
|
+
case i.UINT32: return this.scalars(r.slice(0, n).map((e) => parseInt(e)), t, n);
|
|
176
|
+
case i.BOOL: return this.scalars(r.slice(0, n).map((e) => e == "true" ? !0 : e == "false" ? !1 : e), t, n);
|
|
177
|
+
default: return this.scalars(r, t, n, a.STRING);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
//#endregion
|
|
1
182
|
//#region node_modules/@protobuf-ts/runtime/build/es2015/json-typings.js
|
|
2
|
-
function
|
|
183
|
+
function u(e) {
|
|
3
184
|
let t = typeof e;
|
|
4
185
|
if (t == "object") {
|
|
5
186
|
if (Array.isArray(e)) return "array";
|
|
@@ -7,88 +188,63 @@ function e(e) {
|
|
|
7
188
|
}
|
|
8
189
|
return t;
|
|
9
190
|
}
|
|
10
|
-
function
|
|
191
|
+
function d(e) {
|
|
11
192
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
12
193
|
}
|
|
13
194
|
//#endregion
|
|
14
195
|
//#region node_modules/@protobuf-ts/runtime/build/es2015/base64.js
|
|
15
|
-
var
|
|
16
|
-
for (let e = 0; e <
|
|
17
|
-
|
|
18
|
-
function
|
|
196
|
+
var f = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""), p = [];
|
|
197
|
+
for (let e = 0; e < f.length; e++) p[f[e].charCodeAt(0)] = e;
|
|
198
|
+
p[45] = f.indexOf("+"), p[95] = f.indexOf("/");
|
|
199
|
+
function ee(e) {
|
|
19
200
|
let t = e.length * 3 / 4;
|
|
20
201
|
e[e.length - 2] == "=" ? t -= 2 : e[e.length - 1] == "=" && --t;
|
|
21
|
-
let n = new Uint8Array(t),
|
|
202
|
+
let n = new Uint8Array(t), r = 0, i = 0, a, o = 0;
|
|
22
203
|
for (let t = 0; t < e.length; t++) {
|
|
23
|
-
if (
|
|
24
|
-
case "=":
|
|
204
|
+
if (a = p[e.charCodeAt(t)], a === void 0) switch (e[t]) {
|
|
205
|
+
case "=": i = 0;
|
|
25
206
|
case "\n":
|
|
26
207
|
case "\r":
|
|
27
208
|
case " ":
|
|
28
209
|
case " ": continue;
|
|
29
210
|
default: throw Error("invalid base64 string.");
|
|
30
211
|
}
|
|
31
|
-
switch (
|
|
212
|
+
switch (i) {
|
|
32
213
|
case 0:
|
|
33
|
-
|
|
214
|
+
o = a, i = 1;
|
|
34
215
|
break;
|
|
35
216
|
case 1:
|
|
36
|
-
n[
|
|
217
|
+
n[r++] = o << 2 | (a & 48) >> 4, o = a, i = 2;
|
|
37
218
|
break;
|
|
38
219
|
case 2:
|
|
39
|
-
n[
|
|
220
|
+
n[r++] = (o & 15) << 4 | (a & 60) >> 2, o = a, i = 3;
|
|
40
221
|
break;
|
|
41
222
|
case 3:
|
|
42
|
-
n[
|
|
223
|
+
n[r++] = (o & 3) << 6 | a, i = 0;
|
|
43
224
|
break;
|
|
44
225
|
}
|
|
45
226
|
}
|
|
46
|
-
if (
|
|
47
|
-
return n.subarray(0,
|
|
227
|
+
if (i == 1) throw Error("invalid base64 string.");
|
|
228
|
+
return n.subarray(0, r);
|
|
48
229
|
}
|
|
49
|
-
function
|
|
50
|
-
let t = "",
|
|
51
|
-
for (let
|
|
230
|
+
function te(e) {
|
|
231
|
+
let t = "", n = 0, r, i = 0;
|
|
232
|
+
for (let a = 0; a < e.length; a++) switch (r = e[a], n) {
|
|
52
233
|
case 0:
|
|
53
|
-
t +=
|
|
234
|
+
t += f[r >> 2], i = (r & 3) << 4, n = 1;
|
|
54
235
|
break;
|
|
55
236
|
case 1:
|
|
56
|
-
t +=
|
|
237
|
+
t += f[i | r >> 4], i = (r & 15) << 2, n = 2;
|
|
57
238
|
break;
|
|
58
239
|
case 2:
|
|
59
|
-
t +=
|
|
240
|
+
t += f[i | r >> 6], t += f[r & 63], n = 0;
|
|
60
241
|
break;
|
|
61
242
|
}
|
|
62
|
-
return
|
|
243
|
+
return n && (t += f[i], t += "=", n == 1 && (t += "=")), t;
|
|
63
244
|
}
|
|
64
245
|
//#endregion
|
|
65
|
-
//#region node_modules/@protobuf-ts/runtime/build/es2015/binary-format-contract.js
|
|
66
|
-
var o;
|
|
67
|
-
(function(e) {
|
|
68
|
-
e.symbol = Symbol.for("protobuf-ts/unknown"), e.onRead = (n, r, i, a, o) => {
|
|
69
|
-
(t(r) ? r[e.symbol] : r[e.symbol] = []).push({
|
|
70
|
-
no: i,
|
|
71
|
-
wireType: a,
|
|
72
|
-
data: o
|
|
73
|
-
});
|
|
74
|
-
}, e.onWrite = (t, n, r) => {
|
|
75
|
-
for (let { no: t, wireType: i, data: a } of e.list(n)) r.tag(t, i).raw(a);
|
|
76
|
-
}, e.list = (n, r) => {
|
|
77
|
-
if (t(n)) {
|
|
78
|
-
let t = n[e.symbol];
|
|
79
|
-
return r ? t.filter((e) => e.no == r) : t;
|
|
80
|
-
}
|
|
81
|
-
return [];
|
|
82
|
-
}, e.last = (t, n) => e.list(t, n).slice(-1)[0];
|
|
83
|
-
let t = (t) => t && Array.isArray(t[e.symbol]);
|
|
84
|
-
})(o ||= {});
|
|
85
|
-
var s;
|
|
86
|
-
(function(e) {
|
|
87
|
-
e[e.Varint = 0] = "Varint", e[e.Bit64 = 1] = "Bit64", e[e.LengthDelimited = 2] = "LengthDelimited", e[e.StartGroup = 3] = "StartGroup", e[e.EndGroup = 4] = "EndGroup", e[e.Bit32 = 5] = "Bit32";
|
|
88
|
-
})(s ||= {});
|
|
89
|
-
//#endregion
|
|
90
246
|
//#region node_modules/@protobuf-ts/runtime/build/es2015/goog-varint.js
|
|
91
|
-
function
|
|
247
|
+
function ne() {
|
|
92
248
|
let e = 0, t = 0;
|
|
93
249
|
for (let n = 0; n < 28; n += 7) {
|
|
94
250
|
let r = this.buf[this.pos++];
|
|
@@ -102,7 +258,7 @@ function c() {
|
|
|
102
258
|
}
|
|
103
259
|
throw Error("invalid varint");
|
|
104
260
|
}
|
|
105
|
-
function
|
|
261
|
+
function m(e, t, n) {
|
|
106
262
|
for (let r = 0; r < 28; r += 7) {
|
|
107
263
|
let i = e >>> r, a = !(!(i >>> 7) && t == 0), o = (a ? i | 128 : i) & 255;
|
|
108
264
|
if (n.push(o), !a) return;
|
|
@@ -116,14 +272,14 @@ function l(e, t, n) {
|
|
|
116
272
|
n.push(t >>> 31 & 1);
|
|
117
273
|
}
|
|
118
274
|
}
|
|
119
|
-
var
|
|
120
|
-
function
|
|
275
|
+
var h = 65536 * 65536;
|
|
276
|
+
function g(e) {
|
|
121
277
|
let t = e[0] == "-";
|
|
122
278
|
t && (e = e.slice(1));
|
|
123
279
|
let n = 1e6, r = 0, i = 0;
|
|
124
280
|
function a(t, a) {
|
|
125
281
|
let o = Number(e.slice(t, a));
|
|
126
|
-
i *= n, r = r * n + o, r >=
|
|
282
|
+
i *= n, r = r * n + o, r >= h && (i += r / h | 0, r %= h);
|
|
127
283
|
}
|
|
128
284
|
return a(-24, -18), a(-18, -12), a(-12, -6), a(-6), [
|
|
129
285
|
t,
|
|
@@ -131,8 +287,8 @@ function d(e) {
|
|
|
131
287
|
i
|
|
132
288
|
];
|
|
133
289
|
}
|
|
134
|
-
function
|
|
135
|
-
if (t >>> 0 <= 2097151) return "" + (
|
|
290
|
+
function _(e, t) {
|
|
291
|
+
if (t >>> 0 <= 2097151) return "" + (h * t + (e >>> 0));
|
|
136
292
|
let n = e & 16777215, r = (e >>> 24 | t << 8) >>> 0 & 16777215, i = t >> 16 & 65535, a = n + r * 6777216 + i * 6710656, o = r + i * 8147497, s = i * 2, c = 1e7;
|
|
137
293
|
a >= c && (o += Math.floor(a / c), a %= c), o >= c && (s += Math.floor(o / c), o %= c);
|
|
138
294
|
function l(e, t) {
|
|
@@ -141,7 +297,7 @@ function f(e, t) {
|
|
|
141
297
|
}
|
|
142
298
|
return l(s, 0) + l(o, s) + l(a, 1);
|
|
143
299
|
}
|
|
144
|
-
function
|
|
300
|
+
function re(e, t) {
|
|
145
301
|
if (e >= 0) {
|
|
146
302
|
for (; e > 127;) t.push(e & 127 | 128), e >>>= 7;
|
|
147
303
|
t.push(e);
|
|
@@ -150,7 +306,7 @@ function p(e, t) {
|
|
|
150
306
|
t.push(1);
|
|
151
307
|
}
|
|
152
308
|
}
|
|
153
|
-
function
|
|
309
|
+
function ie() {
|
|
154
310
|
let e = this.buf[this.pos++], t = e & 127;
|
|
155
311
|
if (!(e & 128) || (e = this.buf[this.pos++], t |= (e & 127) << 7, !(e & 128)) || (e = this.buf[this.pos++], t |= (e & 127) << 14, !(e & 128)) || (e = this.buf[this.pos++], t |= (e & 127) << 21, !(e & 128))) return this.assertBounds(), t;
|
|
156
312
|
e = this.buf[this.pos++], t |= (e & 15) << 28;
|
|
@@ -160,10 +316,10 @@ function ee() {
|
|
|
160
316
|
}
|
|
161
317
|
//#endregion
|
|
162
318
|
//#region node_modules/@protobuf-ts/runtime/build/es2015/pb-long.js
|
|
163
|
-
var
|
|
164
|
-
function
|
|
319
|
+
var v;
|
|
320
|
+
function ae() {
|
|
165
321
|
let e = /* @__PURE__ */ new DataView(/* @__PURE__ */ new ArrayBuffer(8));
|
|
166
|
-
|
|
322
|
+
v = globalThis.BigInt !== void 0 && typeof e.getBigInt64 == "function" && typeof e.getBigUint64 == "function" && typeof e.setBigInt64 == "function" && typeof e.setBigUint64 == "function" ? {
|
|
167
323
|
MIN: BigInt("-9223372036854775808"),
|
|
168
324
|
MAX: BigInt("9223372036854775807"),
|
|
169
325
|
UMIN: BigInt("0"),
|
|
@@ -172,11 +328,11 @@ function te() {
|
|
|
172
328
|
V: e
|
|
173
329
|
} : void 0;
|
|
174
330
|
}
|
|
175
|
-
|
|
176
|
-
function
|
|
331
|
+
ae();
|
|
332
|
+
function oe(e) {
|
|
177
333
|
if (!e) throw Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support");
|
|
178
334
|
}
|
|
179
|
-
var
|
|
335
|
+
var y = /^-?[0-9]+$/, b = 4294967296, x = 2147483648, S = class {
|
|
180
336
|
constructor(e, t) {
|
|
181
337
|
this.lo = e | 0, this.hi = t | 0;
|
|
182
338
|
}
|
|
@@ -184,493 +340,135 @@ var g = /^-?[0-9]+$/, _ = 4294967296, v = 2147483648, y = class {
|
|
|
184
340
|
return this.lo == 0 && this.hi == 0;
|
|
185
341
|
}
|
|
186
342
|
toNumber() {
|
|
187
|
-
let e = this.hi *
|
|
343
|
+
let e = this.hi * b + (this.lo >>> 0);
|
|
188
344
|
if (!Number.isSafeInteger(e)) throw Error("cannot convert to safe number");
|
|
189
345
|
return e;
|
|
190
346
|
}
|
|
191
|
-
},
|
|
347
|
+
}, C = class e extends S {
|
|
192
348
|
static from(t) {
|
|
193
|
-
if (
|
|
349
|
+
if (v) switch (typeof t) {
|
|
194
350
|
case "string":
|
|
195
351
|
if (t == "0") return this.ZERO;
|
|
196
352
|
if (t == "") throw Error("string is no integer");
|
|
197
|
-
t =
|
|
353
|
+
t = v.C(t);
|
|
198
354
|
case "number":
|
|
199
355
|
if (t === 0) return this.ZERO;
|
|
200
|
-
t =
|
|
356
|
+
t = v.C(t);
|
|
201
357
|
case "bigint":
|
|
202
358
|
if (!t) return this.ZERO;
|
|
203
|
-
if (t <
|
|
204
|
-
if (t >
|
|
205
|
-
return
|
|
359
|
+
if (t < v.UMIN) throw Error("signed value for ulong");
|
|
360
|
+
if (t > v.UMAX) throw Error("ulong too large");
|
|
361
|
+
return v.V.setBigUint64(0, t, !0), new e(v.V.getInt32(0, !0), v.V.getInt32(4, !0));
|
|
206
362
|
}
|
|
207
363
|
else switch (typeof t) {
|
|
208
364
|
case "string":
|
|
209
365
|
if (t == "0") return this.ZERO;
|
|
210
|
-
if (t = t.trim(), !
|
|
211
|
-
let [n, r, i] =
|
|
366
|
+
if (t = t.trim(), !y.test(t)) throw Error("string is no integer");
|
|
367
|
+
let [n, r, i] = g(t);
|
|
212
368
|
if (n) throw Error("signed value for ulong");
|
|
213
369
|
return new e(r, i);
|
|
214
370
|
case "number":
|
|
215
371
|
if (t == 0) return this.ZERO;
|
|
216
372
|
if (!Number.isSafeInteger(t)) throw Error("number is no integer");
|
|
217
373
|
if (t < 0) throw Error("signed value for ulong");
|
|
218
|
-
return new e(t, t /
|
|
374
|
+
return new e(t, t / b);
|
|
219
375
|
}
|
|
220
376
|
throw Error("unknown value " + typeof t);
|
|
221
377
|
}
|
|
222
378
|
toString() {
|
|
223
|
-
return
|
|
379
|
+
return v ? this.toBigInt().toString() : _(this.lo, this.hi);
|
|
224
380
|
}
|
|
225
381
|
toBigInt() {
|
|
226
|
-
return
|
|
382
|
+
return oe(v), v.V.setInt32(0, this.lo, !0), v.V.setInt32(4, this.hi, !0), v.V.getBigUint64(0, !0);
|
|
227
383
|
}
|
|
228
384
|
};
|
|
229
|
-
|
|
230
|
-
var
|
|
385
|
+
C.ZERO = new C(0, 0);
|
|
386
|
+
var w = class e extends S {
|
|
231
387
|
static from(t) {
|
|
232
|
-
if (
|
|
388
|
+
if (v) switch (typeof t) {
|
|
233
389
|
case "string":
|
|
234
390
|
if (t == "0") return this.ZERO;
|
|
235
391
|
if (t == "") throw Error("string is no integer");
|
|
236
|
-
t =
|
|
392
|
+
t = v.C(t);
|
|
237
393
|
case "number":
|
|
238
394
|
if (t === 0) return this.ZERO;
|
|
239
|
-
t =
|
|
395
|
+
t = v.C(t);
|
|
240
396
|
case "bigint":
|
|
241
397
|
if (!t) return this.ZERO;
|
|
242
|
-
if (t <
|
|
243
|
-
if (t >
|
|
244
|
-
return
|
|
398
|
+
if (t < v.MIN) throw Error("signed long too small");
|
|
399
|
+
if (t > v.MAX) throw Error("signed long too large");
|
|
400
|
+
return v.V.setBigInt64(0, t, !0), new e(v.V.getInt32(0, !0), v.V.getInt32(4, !0));
|
|
245
401
|
}
|
|
246
402
|
else switch (typeof t) {
|
|
247
403
|
case "string":
|
|
248
404
|
if (t == "0") return this.ZERO;
|
|
249
|
-
if (t = t.trim(), !
|
|
250
|
-
let [n, r, i] =
|
|
405
|
+
if (t = t.trim(), !y.test(t)) throw Error("string is no integer");
|
|
406
|
+
let [n, r, i] = g(t);
|
|
251
407
|
if (n) {
|
|
252
|
-
if (i >
|
|
253
|
-
} else if (i >=
|
|
408
|
+
if (i > x || i == x && r != 0) throw Error("signed long too small");
|
|
409
|
+
} else if (i >= x) throw Error("signed long too large");
|
|
254
410
|
let a = new e(r, i);
|
|
255
411
|
return n ? a.negate() : a;
|
|
256
412
|
case "number":
|
|
257
413
|
if (t == 0) return this.ZERO;
|
|
258
414
|
if (!Number.isSafeInteger(t)) throw Error("number is no integer");
|
|
259
|
-
return t > 0 ? new e(t, t /
|
|
260
|
-
}
|
|
261
|
-
throw Error("unknown value " + typeof t);
|
|
262
|
-
}
|
|
263
|
-
isNegative() {
|
|
264
|
-
return (this.hi & v) !== 0;
|
|
265
|
-
}
|
|
266
|
-
negate() {
|
|
267
|
-
let t = ~this.hi, n = this.lo;
|
|
268
|
-
return n ? n = ~n + 1 : t += 1, new e(n, t);
|
|
269
|
-
}
|
|
270
|
-
toString() {
|
|
271
|
-
if (m) return this.toBigInt().toString();
|
|
272
|
-
if (this.isNegative()) {
|
|
273
|
-
let e = this.negate();
|
|
274
|
-
return "-" + f(e.lo, e.hi);
|
|
275
|
-
}
|
|
276
|
-
return f(this.lo, this.hi);
|
|
277
|
-
}
|
|
278
|
-
toBigInt() {
|
|
279
|
-
return h(m), m.V.setInt32(0, this.lo, !0), m.V.setInt32(4, this.hi, !0), m.V.getBigInt64(0, !0);
|
|
280
|
-
}
|
|
281
|
-
};
|
|
282
|
-
x.ZERO = new x(0, 0);
|
|
283
|
-
//#endregion
|
|
284
|
-
//#region node_modules/@protobuf-ts/runtime/build/es2015/binary-reader.js
|
|
285
|
-
var S = {
|
|
286
|
-
readUnknownField: !0,
|
|
287
|
-
readerFactory: (e) => new re(e)
|
|
288
|
-
};
|
|
289
|
-
function ne(e) {
|
|
290
|
-
return e ? Object.assign(Object.assign({}, S), e) : S;
|
|
291
|
-
}
|
|
292
|
-
var re = class {
|
|
293
|
-
constructor(e, t) {
|
|
294
|
-
this.varint64 = c, this.uint32 = ee, this.buf = e, this.len = e.length, this.pos = 0, this.view = new DataView(e.buffer, e.byteOffset, e.byteLength), this.textDecoder = t ?? new TextDecoder("utf-8", {
|
|
295
|
-
fatal: !0,
|
|
296
|
-
ignoreBOM: !0
|
|
297
|
-
});
|
|
298
|
-
}
|
|
299
|
-
tag() {
|
|
300
|
-
let e = this.uint32(), t = e >>> 3, n = e & 7;
|
|
301
|
-
if (t <= 0 || n < 0 || n > 5) throw Error("illegal tag: field no " + t + " wire type " + n);
|
|
302
|
-
return [t, n];
|
|
303
|
-
}
|
|
304
|
-
skip(e) {
|
|
305
|
-
let t = this.pos;
|
|
306
|
-
switch (e) {
|
|
307
|
-
case s.Varint:
|
|
308
|
-
for (; this.buf[this.pos++] & 128;);
|
|
309
|
-
break;
|
|
310
|
-
case s.Bit64: this.pos += 4;
|
|
311
|
-
case s.Bit32:
|
|
312
|
-
this.pos += 4;
|
|
313
|
-
break;
|
|
314
|
-
case s.LengthDelimited:
|
|
315
|
-
let t = this.uint32();
|
|
316
|
-
this.pos += t;
|
|
317
|
-
break;
|
|
318
|
-
case s.StartGroup:
|
|
319
|
-
let n;
|
|
320
|
-
for (; (n = this.tag()[1]) !== s.EndGroup;) this.skip(n);
|
|
321
|
-
break;
|
|
322
|
-
default: throw Error("cant skip wire type " + e);
|
|
323
|
-
}
|
|
324
|
-
return this.assertBounds(), this.buf.subarray(t, this.pos);
|
|
325
|
-
}
|
|
326
|
-
assertBounds() {
|
|
327
|
-
if (this.pos > this.len) throw RangeError("premature EOF");
|
|
328
|
-
}
|
|
329
|
-
int32() {
|
|
330
|
-
return this.uint32() | 0;
|
|
331
|
-
}
|
|
332
|
-
sint32() {
|
|
333
|
-
let e = this.uint32();
|
|
334
|
-
return e >>> 1 ^ -(e & 1);
|
|
335
|
-
}
|
|
336
|
-
int64() {
|
|
337
|
-
return new x(...this.varint64());
|
|
338
|
-
}
|
|
339
|
-
uint64() {
|
|
340
|
-
return new b(...this.varint64());
|
|
341
|
-
}
|
|
342
|
-
sint64() {
|
|
343
|
-
let [e, t] = this.varint64(), n = -(e & 1);
|
|
344
|
-
return e = (e >>> 1 | (t & 1) << 31) ^ n, t = t >>> 1 ^ n, new x(e, t);
|
|
345
|
-
}
|
|
346
|
-
bool() {
|
|
347
|
-
let [e, t] = this.varint64();
|
|
348
|
-
return e !== 0 || t !== 0;
|
|
349
|
-
}
|
|
350
|
-
fixed32() {
|
|
351
|
-
return this.view.getUint32((this.pos += 4) - 4, !0);
|
|
352
|
-
}
|
|
353
|
-
sfixed32() {
|
|
354
|
-
return this.view.getInt32((this.pos += 4) - 4, !0);
|
|
355
|
-
}
|
|
356
|
-
fixed64() {
|
|
357
|
-
return new b(this.sfixed32(), this.sfixed32());
|
|
358
|
-
}
|
|
359
|
-
sfixed64() {
|
|
360
|
-
return new x(this.sfixed32(), this.sfixed32());
|
|
361
|
-
}
|
|
362
|
-
float() {
|
|
363
|
-
return this.view.getFloat32((this.pos += 4) - 4, !0);
|
|
364
|
-
}
|
|
365
|
-
double() {
|
|
366
|
-
return this.view.getFloat64((this.pos += 8) - 8, !0);
|
|
367
|
-
}
|
|
368
|
-
bytes() {
|
|
369
|
-
let e = this.uint32(), t = this.pos;
|
|
370
|
-
return this.pos += e, this.assertBounds(), this.buf.subarray(t, t + e);
|
|
371
|
-
}
|
|
372
|
-
string() {
|
|
373
|
-
return this.textDecoder.decode(this.bytes());
|
|
374
|
-
}
|
|
375
|
-
};
|
|
376
|
-
//#endregion
|
|
377
|
-
//#region node_modules/@protobuf-ts/runtime/build/es2015/assert.js
|
|
378
|
-
function C(e, t) {
|
|
379
|
-
if (!e) throw Error(t);
|
|
380
|
-
}
|
|
381
|
-
function ie(e, t) {
|
|
382
|
-
throw Error(t ?? "Unexpected object: " + e);
|
|
383
|
-
}
|
|
384
|
-
var ae = 34028234663852886e22, oe = -34028234663852886e22, se = 4294967295, ce = 2147483647, le = -2147483648;
|
|
385
|
-
function w(e) {
|
|
386
|
-
if (typeof e != "number") throw Error("invalid int 32: " + typeof e);
|
|
387
|
-
if (!Number.isInteger(e) || e > ce || e < le) throw Error("invalid int 32: " + e);
|
|
388
|
-
}
|
|
389
|
-
function T(e) {
|
|
390
|
-
if (typeof e != "number") throw Error("invalid uint 32: " + typeof e);
|
|
391
|
-
if (!Number.isInteger(e) || e > se || e < 0) throw Error("invalid uint 32: " + e);
|
|
392
|
-
}
|
|
393
|
-
function E(e) {
|
|
394
|
-
if (typeof e != "number") throw Error("invalid float 32: " + typeof e);
|
|
395
|
-
if (Number.isFinite(e) && (e > ae || e < oe)) throw Error("invalid float 32: " + e);
|
|
396
|
-
}
|
|
397
|
-
//#endregion
|
|
398
|
-
//#region node_modules/@protobuf-ts/runtime/build/es2015/binary-writer.js
|
|
399
|
-
var D = {
|
|
400
|
-
writeUnknownFields: !0,
|
|
401
|
-
writerFactory: () => new de()
|
|
402
|
-
};
|
|
403
|
-
function ue(e) {
|
|
404
|
-
return e ? Object.assign(Object.assign({}, D), e) : D;
|
|
405
|
-
}
|
|
406
|
-
var de = class {
|
|
407
|
-
constructor(e) {
|
|
408
|
-
this.stack = [], this.textEncoder = e ?? new TextEncoder(), this.chunks = [], this.buf = [];
|
|
409
|
-
}
|
|
410
|
-
finish() {
|
|
411
|
-
this.chunks.push(new Uint8Array(this.buf));
|
|
412
|
-
let e = 0;
|
|
413
|
-
for (let t = 0; t < this.chunks.length; t++) e += this.chunks[t].length;
|
|
414
|
-
let t = new Uint8Array(e), n = 0;
|
|
415
|
-
for (let e = 0; e < this.chunks.length; e++) t.set(this.chunks[e], n), n += this.chunks[e].length;
|
|
416
|
-
return this.chunks = [], t;
|
|
417
|
-
}
|
|
418
|
-
fork() {
|
|
419
|
-
return this.stack.push({
|
|
420
|
-
chunks: this.chunks,
|
|
421
|
-
buf: this.buf
|
|
422
|
-
}), this.chunks = [], this.buf = [], this;
|
|
423
|
-
}
|
|
424
|
-
join() {
|
|
425
|
-
let e = this.finish(), t = this.stack.pop();
|
|
426
|
-
if (!t) throw Error("invalid state, fork stack empty");
|
|
427
|
-
return this.chunks = t.chunks, this.buf = t.buf, this.uint32(e.byteLength), this.raw(e);
|
|
428
|
-
}
|
|
429
|
-
tag(e, t) {
|
|
430
|
-
return this.uint32((e << 3 | t) >>> 0);
|
|
431
|
-
}
|
|
432
|
-
raw(e) {
|
|
433
|
-
return this.buf.length && (this.chunks.push(new Uint8Array(this.buf)), this.buf = []), this.chunks.push(e), this;
|
|
434
|
-
}
|
|
435
|
-
uint32(e) {
|
|
436
|
-
for (T(e); e > 127;) this.buf.push(e & 127 | 128), e >>>= 7;
|
|
437
|
-
return this.buf.push(e), this;
|
|
438
|
-
}
|
|
439
|
-
int32(e) {
|
|
440
|
-
return w(e), p(e, this.buf), this;
|
|
441
|
-
}
|
|
442
|
-
bool(e) {
|
|
443
|
-
return this.buf.push(+!!e), this;
|
|
444
|
-
}
|
|
445
|
-
bytes(e) {
|
|
446
|
-
return this.uint32(e.byteLength), this.raw(e);
|
|
447
|
-
}
|
|
448
|
-
string(e) {
|
|
449
|
-
let t = this.textEncoder.encode(e);
|
|
450
|
-
return this.uint32(t.byteLength), this.raw(t);
|
|
451
|
-
}
|
|
452
|
-
float(e) {
|
|
453
|
-
E(e);
|
|
454
|
-
let t = new Uint8Array(4);
|
|
455
|
-
return new DataView(t.buffer).setFloat32(0, e, !0), this.raw(t);
|
|
456
|
-
}
|
|
457
|
-
double(e) {
|
|
458
|
-
let t = new Uint8Array(8);
|
|
459
|
-
return new DataView(t.buffer).setFloat64(0, e, !0), this.raw(t);
|
|
460
|
-
}
|
|
461
|
-
fixed32(e) {
|
|
462
|
-
T(e);
|
|
463
|
-
let t = new Uint8Array(4);
|
|
464
|
-
return new DataView(t.buffer).setUint32(0, e, !0), this.raw(t);
|
|
465
|
-
}
|
|
466
|
-
sfixed32(e) {
|
|
467
|
-
w(e);
|
|
468
|
-
let t = new Uint8Array(4);
|
|
469
|
-
return new DataView(t.buffer).setInt32(0, e, !0), this.raw(t);
|
|
470
|
-
}
|
|
471
|
-
sint32(e) {
|
|
472
|
-
return w(e), e = (e << 1 ^ e >> 31) >>> 0, p(e, this.buf), this;
|
|
473
|
-
}
|
|
474
|
-
sfixed64(e) {
|
|
475
|
-
let t = new Uint8Array(8), n = new DataView(t.buffer), r = x.from(e);
|
|
476
|
-
return n.setInt32(0, r.lo, !0), n.setInt32(4, r.hi, !0), this.raw(t);
|
|
477
|
-
}
|
|
478
|
-
fixed64(e) {
|
|
479
|
-
let t = new Uint8Array(8), n = new DataView(t.buffer), r = b.from(e);
|
|
480
|
-
return n.setInt32(0, r.lo, !0), n.setInt32(4, r.hi, !0), this.raw(t);
|
|
481
|
-
}
|
|
482
|
-
int64(e) {
|
|
483
|
-
let t = x.from(e);
|
|
484
|
-
return l(t.lo, t.hi, this.buf), this;
|
|
485
|
-
}
|
|
486
|
-
sint64(e) {
|
|
487
|
-
let t = x.from(e), n = t.hi >> 31;
|
|
488
|
-
return l(t.lo << 1 ^ n, (t.hi << 1 | t.lo >>> 31) ^ n, this.buf), this;
|
|
489
|
-
}
|
|
490
|
-
uint64(e) {
|
|
491
|
-
let t = b.from(e);
|
|
492
|
-
return l(t.lo, t.hi, this.buf), this;
|
|
493
|
-
}
|
|
494
|
-
}, O = {
|
|
495
|
-
emitDefaultValues: !1,
|
|
496
|
-
enumAsInteger: !1,
|
|
497
|
-
useProtoFieldName: !1,
|
|
498
|
-
prettySpaces: 0
|
|
499
|
-
}, fe = { ignoreUnknownFields: !1 };
|
|
500
|
-
function pe(e) {
|
|
501
|
-
return e ? Object.assign(Object.assign({}, fe), e) : fe;
|
|
502
|
-
}
|
|
503
|
-
function me(e) {
|
|
504
|
-
return e ? Object.assign(Object.assign({}, O), e) : O;
|
|
505
|
-
}
|
|
506
|
-
//#endregion
|
|
507
|
-
//#region node_modules/@protobuf-ts/runtime/build/es2015/message-type-contract.js
|
|
508
|
-
var k = Symbol.for("protobuf-ts/message-type");
|
|
509
|
-
//#endregion
|
|
510
|
-
//#region node_modules/@protobuf-ts/runtime/build/es2015/lower-camel-case.js
|
|
511
|
-
function A(e) {
|
|
512
|
-
let t = !1, n = [];
|
|
513
|
-
for (let r = 0; r < e.length; r++) {
|
|
514
|
-
let i = e.charAt(r);
|
|
515
|
-
i == "_" ? t = !0 : /\d/.test(i) ? (n.push(i), t = !0) : t ? (n.push(i.toUpperCase()), t = !1) : r == 0 ? n.push(i.toLowerCase()) : n.push(i);
|
|
516
|
-
}
|
|
517
|
-
return n.join("");
|
|
518
|
-
}
|
|
519
|
-
//#endregion
|
|
520
|
-
//#region node_modules/@protobuf-ts/runtime/build/es2015/reflection-info.js
|
|
521
|
-
var j;
|
|
522
|
-
(function(e) {
|
|
523
|
-
e[e.DOUBLE = 1] = "DOUBLE", e[e.FLOAT = 2] = "FLOAT", e[e.INT64 = 3] = "INT64", e[e.UINT64 = 4] = "UINT64", e[e.INT32 = 5] = "INT32", e[e.FIXED64 = 6] = "FIXED64", e[e.FIXED32 = 7] = "FIXED32", e[e.BOOL = 8] = "BOOL", e[e.STRING = 9] = "STRING", e[e.BYTES = 12] = "BYTES", e[e.UINT32 = 13] = "UINT32", e[e.SFIXED32 = 15] = "SFIXED32", e[e.SFIXED64 = 16] = "SFIXED64", e[e.SINT32 = 17] = "SINT32", e[e.SINT64 = 18] = "SINT64";
|
|
524
|
-
})(j ||= {});
|
|
525
|
-
var M;
|
|
526
|
-
(function(e) {
|
|
527
|
-
e[e.BIGINT = 0] = "BIGINT", e[e.STRING = 1] = "STRING", e[e.NUMBER = 2] = "NUMBER";
|
|
528
|
-
})(M ||= {});
|
|
529
|
-
var N;
|
|
530
|
-
(function(e) {
|
|
531
|
-
e[e.NO = 0] = "NO", e[e.PACKED = 1] = "PACKED", e[e.UNPACKED = 2] = "UNPACKED";
|
|
532
|
-
})(N ||= {});
|
|
533
|
-
function he(e) {
|
|
534
|
-
return e.localName = e.localName ?? A(e.name), e.jsonName = e.jsonName ?? A(e.name), e.repeat = e.repeat ?? N.NO, e.opt = e.opt ?? (e.repeat || e.oneof ? !1 : e.kind == "message"), e;
|
|
535
|
-
}
|
|
536
|
-
//#endregion
|
|
537
|
-
//#region node_modules/@protobuf-ts/runtime/build/es2015/oneof.js
|
|
538
|
-
function ge(e) {
|
|
539
|
-
if (typeof e != "object" || !e || !e.hasOwnProperty("oneofKind")) return !1;
|
|
540
|
-
switch (typeof e.oneofKind) {
|
|
541
|
-
case "string": return e[e.oneofKind] === void 0 ? !1 : Object.keys(e).length == 2;
|
|
542
|
-
case "undefined": return Object.keys(e).length == 1;
|
|
543
|
-
default: return !1;
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
//#endregion
|
|
547
|
-
//#region node_modules/@protobuf-ts/runtime/build/es2015/reflection-type-check.js
|
|
548
|
-
var _e = class {
|
|
549
|
-
constructor(e) {
|
|
550
|
-
this.fields = e.fields ?? [];
|
|
551
|
-
}
|
|
552
|
-
prepare() {
|
|
553
|
-
if (this.data) return;
|
|
554
|
-
let e = [], t = [], n = [];
|
|
555
|
-
for (let r of this.fields) if (r.oneof) n.includes(r.oneof) || (n.push(r.oneof), e.push(r.oneof), t.push(r.oneof));
|
|
556
|
-
else switch (t.push(r.localName), r.kind) {
|
|
557
|
-
case "scalar":
|
|
558
|
-
case "enum":
|
|
559
|
-
(!r.opt || r.repeat) && e.push(r.localName);
|
|
560
|
-
break;
|
|
561
|
-
case "message":
|
|
562
|
-
r.repeat && e.push(r.localName);
|
|
563
|
-
break;
|
|
564
|
-
case "map":
|
|
565
|
-
e.push(r.localName);
|
|
566
|
-
break;
|
|
567
|
-
}
|
|
568
|
-
this.data = {
|
|
569
|
-
req: e,
|
|
570
|
-
known: t,
|
|
571
|
-
oneofs: Object.values(n)
|
|
572
|
-
};
|
|
573
|
-
}
|
|
574
|
-
is(e, t, n = !1) {
|
|
575
|
-
if (t < 0) return !0;
|
|
576
|
-
if (typeof e != "object" || !e) return !1;
|
|
577
|
-
this.prepare();
|
|
578
|
-
let r = Object.keys(e), i = this.data;
|
|
579
|
-
if (r.length < i.req.length || i.req.some((e) => !r.includes(e)) || !n && r.some((e) => !i.known.includes(e))) return !1;
|
|
580
|
-
if (t < 1) return !0;
|
|
581
|
-
for (let r of i.oneofs) {
|
|
582
|
-
let i = e[r];
|
|
583
|
-
if (!ge(i)) return !1;
|
|
584
|
-
if (i.oneofKind === void 0) continue;
|
|
585
|
-
let a = this.fields.find((e) => e.localName === i.oneofKind);
|
|
586
|
-
if (!a || !this.field(i[i.oneofKind], a, n, t)) return !1;
|
|
587
|
-
}
|
|
588
|
-
for (let r of this.fields) if (r.oneof === void 0 && !this.field(e[r.localName], r, n, t)) return !1;
|
|
589
|
-
return !0;
|
|
590
|
-
}
|
|
591
|
-
field(e, t, n, r) {
|
|
592
|
-
let i = t.repeat;
|
|
593
|
-
switch (t.kind) {
|
|
594
|
-
case "scalar": return e === void 0 ? t.opt : i ? this.scalars(e, t.T, r, t.L) : this.scalar(e, t.T, t.L);
|
|
595
|
-
case "enum": return e === void 0 ? t.opt : i ? this.scalars(e, j.INT32, r) : this.scalar(e, j.INT32);
|
|
596
|
-
case "message": return e === void 0 ? !0 : i ? this.messages(e, t.T(), n, r) : this.message(e, t.T(), n, r);
|
|
597
|
-
case "map":
|
|
598
|
-
if (typeof e != "object" || !e) return !1;
|
|
599
|
-
if (r < 2) return !0;
|
|
600
|
-
if (!this.mapKeys(e, t.K, r)) return !1;
|
|
601
|
-
switch (t.V.kind) {
|
|
602
|
-
case "scalar": return this.scalars(Object.values(e), t.V.T, r, t.V.L);
|
|
603
|
-
case "enum": return this.scalars(Object.values(e), j.INT32, r);
|
|
604
|
-
case "message": return this.messages(Object.values(e), t.V.T(), n, r);
|
|
605
|
-
}
|
|
606
|
-
break;
|
|
415
|
+
return t > 0 ? new e(t, t / b) : new e(-t, -t / b).negate();
|
|
607
416
|
}
|
|
608
|
-
|
|
609
|
-
}
|
|
610
|
-
message(e, t, n, r) {
|
|
611
|
-
return n ? t.isAssignable(e, r) : t.is(e, r);
|
|
417
|
+
throw Error("unknown value " + typeof t);
|
|
612
418
|
}
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
if (r < 2) return !0;
|
|
616
|
-
if (n) {
|
|
617
|
-
for (let n = 0; n < e.length && n < r; n++) if (!t.isAssignable(e[n], r - 1)) return !1;
|
|
618
|
-
} else for (let n = 0; n < e.length && n < r; n++) if (!t.is(e[n], r - 1)) return !1;
|
|
619
|
-
return !0;
|
|
419
|
+
isNegative() {
|
|
420
|
+
return (this.hi & x) !== 0;
|
|
620
421
|
}
|
|
621
|
-
|
|
622
|
-
let
|
|
623
|
-
|
|
624
|
-
case j.UINT64:
|
|
625
|
-
case j.FIXED64:
|
|
626
|
-
case j.INT64:
|
|
627
|
-
case j.SFIXED64:
|
|
628
|
-
case j.SINT64: switch (n) {
|
|
629
|
-
case M.BIGINT: return r == "bigint";
|
|
630
|
-
case M.NUMBER: return r == "number" && !isNaN(e);
|
|
631
|
-
default: return r == "string";
|
|
632
|
-
}
|
|
633
|
-
case j.BOOL: return r == "boolean";
|
|
634
|
-
case j.STRING: return r == "string";
|
|
635
|
-
case j.BYTES: return e instanceof Uint8Array;
|
|
636
|
-
case j.DOUBLE:
|
|
637
|
-
case j.FLOAT: return r == "number" && !isNaN(e);
|
|
638
|
-
default: return r == "number" && Number.isInteger(e);
|
|
639
|
-
}
|
|
422
|
+
negate() {
|
|
423
|
+
let t = ~this.hi, n = this.lo;
|
|
424
|
+
return n ? n = ~n + 1 : t += 1, new e(n, t);
|
|
640
425
|
}
|
|
641
|
-
|
|
642
|
-
if (
|
|
643
|
-
if (
|
|
644
|
-
|
|
645
|
-
|
|
426
|
+
toString() {
|
|
427
|
+
if (v) return this.toBigInt().toString();
|
|
428
|
+
if (this.isNegative()) {
|
|
429
|
+
let e = this.negate();
|
|
430
|
+
return "-" + _(e.lo, e.hi);
|
|
646
431
|
}
|
|
647
|
-
return
|
|
432
|
+
return _(this.lo, this.hi);
|
|
648
433
|
}
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
switch (t) {
|
|
652
|
-
case j.INT32:
|
|
653
|
-
case j.FIXED32:
|
|
654
|
-
case j.SFIXED32:
|
|
655
|
-
case j.SINT32:
|
|
656
|
-
case j.UINT32: return this.scalars(r.slice(0, n).map((e) => parseInt(e)), t, n);
|
|
657
|
-
case j.BOOL: return this.scalars(r.slice(0, n).map((e) => e == "true" ? !0 : e == "false" ? !1 : e), t, n);
|
|
658
|
-
default: return this.scalars(r, t, n, M.STRING);
|
|
659
|
-
}
|
|
434
|
+
toBigInt() {
|
|
435
|
+
return oe(v), v.V.setInt32(0, this.lo, !0), v.V.setInt32(4, this.hi, !0), v.V.getBigInt64(0, !0);
|
|
660
436
|
}
|
|
661
437
|
};
|
|
438
|
+
w.ZERO = new w(0, 0);
|
|
439
|
+
//#endregion
|
|
440
|
+
//#region node_modules/@protobuf-ts/runtime/build/es2015/assert.js
|
|
441
|
+
function T(e, t) {
|
|
442
|
+
if (!e) throw Error(t);
|
|
443
|
+
}
|
|
444
|
+
function se(e, t) {
|
|
445
|
+
throw Error(t ?? "Unexpected object: " + e);
|
|
446
|
+
}
|
|
447
|
+
var ce = 34028234663852886e22, le = -34028234663852886e22, ue = 4294967295, de = 2147483647, fe = -2147483648;
|
|
448
|
+
function E(e) {
|
|
449
|
+
if (typeof e != "number") throw Error("invalid int 32: " + typeof e);
|
|
450
|
+
if (!Number.isInteger(e) || e > de || e < fe) throw Error("invalid int 32: " + e);
|
|
451
|
+
}
|
|
452
|
+
function D(e) {
|
|
453
|
+
if (typeof e != "number") throw Error("invalid uint 32: " + typeof e);
|
|
454
|
+
if (!Number.isInteger(e) || e > ue || e < 0) throw Error("invalid uint 32: " + e);
|
|
455
|
+
}
|
|
456
|
+
function O(e) {
|
|
457
|
+
if (typeof e != "number") throw Error("invalid float 32: " + typeof e);
|
|
458
|
+
if (Number.isFinite(e) && (e > ce || e < le)) throw Error("invalid float 32: " + e);
|
|
459
|
+
}
|
|
662
460
|
//#endregion
|
|
663
461
|
//#region node_modules/@protobuf-ts/runtime/build/es2015/reflection-long-convert.js
|
|
664
|
-
function
|
|
462
|
+
function k(e, t) {
|
|
665
463
|
switch (t) {
|
|
666
|
-
case
|
|
667
|
-
case
|
|
464
|
+
case a.BIGINT: return e.toBigInt();
|
|
465
|
+
case a.NUMBER: return e.toNumber();
|
|
668
466
|
default: return e.toString();
|
|
669
467
|
}
|
|
670
468
|
}
|
|
671
469
|
//#endregion
|
|
672
470
|
//#region node_modules/@protobuf-ts/runtime/build/es2015/reflection-json-reader.js
|
|
673
|
-
var
|
|
471
|
+
var pe = class {
|
|
674
472
|
constructor(e) {
|
|
675
473
|
this.info = e;
|
|
676
474
|
}
|
|
@@ -681,108 +479,108 @@ var ve = class {
|
|
|
681
479
|
for (let t of e) this.fMap[t.name] = t, this.fMap[t.jsonName] = t, this.fMap[t.localName] = t;
|
|
682
480
|
}
|
|
683
481
|
}
|
|
684
|
-
assert(t, n
|
|
685
|
-
if (!
|
|
686
|
-
let
|
|
687
|
-
throw (
|
|
482
|
+
assert(e, t, n) {
|
|
483
|
+
if (!e) {
|
|
484
|
+
let e = u(n);
|
|
485
|
+
throw (e == "number" || e == "boolean") && (e = n.toString()), Error(`Cannot parse JSON ${e} for ${this.info.typeName}#${t}`);
|
|
688
486
|
}
|
|
689
487
|
}
|
|
690
|
-
read(e,
|
|
488
|
+
read(e, t, n) {
|
|
691
489
|
this.prepare();
|
|
692
|
-
let
|
|
693
|
-
for (let [
|
|
694
|
-
let e = this.fMap[
|
|
490
|
+
let r = [];
|
|
491
|
+
for (let [o, s] of Object.entries(e)) {
|
|
492
|
+
let e = this.fMap[o];
|
|
695
493
|
if (!e) {
|
|
696
|
-
if (!
|
|
494
|
+
if (!n.ignoreUnknownFields) throw Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${o}`);
|
|
697
495
|
continue;
|
|
698
496
|
}
|
|
699
|
-
let
|
|
497
|
+
let c = e.localName, l;
|
|
700
498
|
if (e.oneof) {
|
|
701
|
-
if (
|
|
702
|
-
if (
|
|
703
|
-
|
|
704
|
-
} else
|
|
499
|
+
if (s === null && (e.kind !== "enum" || e.T()[0] !== "google.protobuf.NullValue")) continue;
|
|
500
|
+
if (r.includes(e.oneof)) throw Error(`Multiple members of the oneof group "${e.oneof}" of ${this.info.typeName} are present in JSON.`);
|
|
501
|
+
r.push(e.oneof), l = t[e.oneof] = { oneofKind: c };
|
|
502
|
+
} else l = t;
|
|
705
503
|
if (e.kind == "map") {
|
|
706
|
-
if (
|
|
707
|
-
this.assert(
|
|
708
|
-
let
|
|
709
|
-
for (let [
|
|
710
|
-
this.assert(
|
|
711
|
-
let
|
|
504
|
+
if (s === null) continue;
|
|
505
|
+
this.assert(d(s), e.name, s);
|
|
506
|
+
let t = l[c];
|
|
507
|
+
for (let [r, o] of Object.entries(s)) {
|
|
508
|
+
this.assert(o !== null, e.name + " map value", null);
|
|
509
|
+
let s;
|
|
712
510
|
switch (e.V.kind) {
|
|
713
511
|
case "message":
|
|
714
|
-
|
|
512
|
+
s = e.V.T().internalJsonRead(o, n);
|
|
715
513
|
break;
|
|
716
514
|
case "enum":
|
|
717
|
-
if (
|
|
515
|
+
if (s = this.enum(e.V.T(), o, e.name, n.ignoreUnknownFields), s === !1) continue;
|
|
718
516
|
break;
|
|
719
517
|
case "scalar":
|
|
720
|
-
|
|
518
|
+
s = this.scalar(o, e.V.T, e.V.L, e.name);
|
|
721
519
|
break;
|
|
722
520
|
}
|
|
723
|
-
this.assert(
|
|
724
|
-
let
|
|
725
|
-
e.K ==
|
|
521
|
+
this.assert(s !== void 0, e.name + " map value", o);
|
|
522
|
+
let c = r;
|
|
523
|
+
e.K == i.BOOL && (c = c == "true" ? !0 : c == "false" ? !1 : c), c = this.scalar(c, e.K, a.STRING, e.name).toString(), t[c] = s;
|
|
726
524
|
}
|
|
727
525
|
} else if (e.repeat) {
|
|
728
|
-
if (
|
|
729
|
-
this.assert(Array.isArray(
|
|
730
|
-
let t = c
|
|
731
|
-
for (let
|
|
732
|
-
this.assert(
|
|
526
|
+
if (s === null) continue;
|
|
527
|
+
this.assert(Array.isArray(s), e.name, s);
|
|
528
|
+
let t = l[c];
|
|
529
|
+
for (let r of s) {
|
|
530
|
+
this.assert(r !== null, e.name, null);
|
|
733
531
|
let i;
|
|
734
532
|
switch (e.kind) {
|
|
735
533
|
case "message":
|
|
736
|
-
i = e.T().internalJsonRead(
|
|
534
|
+
i = e.T().internalJsonRead(r, n);
|
|
737
535
|
break;
|
|
738
536
|
case "enum":
|
|
739
|
-
if (i = this.enum(e.T(),
|
|
537
|
+
if (i = this.enum(e.T(), r, e.name, n.ignoreUnknownFields), i === !1) continue;
|
|
740
538
|
break;
|
|
741
539
|
case "scalar":
|
|
742
|
-
i = this.scalar(
|
|
540
|
+
i = this.scalar(r, e.T, e.L, e.name);
|
|
743
541
|
break;
|
|
744
542
|
}
|
|
745
|
-
this.assert(i !== void 0, e.name,
|
|
543
|
+
this.assert(i !== void 0, e.name, s), t.push(i);
|
|
746
544
|
}
|
|
747
545
|
} else switch (e.kind) {
|
|
748
546
|
case "message":
|
|
749
|
-
if (
|
|
547
|
+
if (s === null && e.T().typeName != "google.protobuf.Value") {
|
|
750
548
|
this.assert(e.oneof === void 0, e.name + " (oneof member)", null);
|
|
751
549
|
continue;
|
|
752
550
|
}
|
|
753
|
-
c
|
|
551
|
+
l[c] = e.T().internalJsonRead(s, n, l[c]);
|
|
754
552
|
break;
|
|
755
553
|
case "enum":
|
|
756
|
-
if (
|
|
757
|
-
let t = this.enum(e.T(),
|
|
554
|
+
if (s === null) continue;
|
|
555
|
+
let t = this.enum(e.T(), s, e.name, n.ignoreUnknownFields);
|
|
758
556
|
if (t === !1) continue;
|
|
759
|
-
c
|
|
557
|
+
l[c] = t;
|
|
760
558
|
break;
|
|
761
559
|
case "scalar":
|
|
762
|
-
if (
|
|
763
|
-
c
|
|
560
|
+
if (s === null) continue;
|
|
561
|
+
l[c] = this.scalar(s, e.T, e.L, e.name);
|
|
764
562
|
break;
|
|
765
563
|
}
|
|
766
564
|
}
|
|
767
565
|
}
|
|
768
566
|
enum(e, t, n, r) {
|
|
769
|
-
if (e[0] == "google.protobuf.NullValue" &&
|
|
567
|
+
if (e[0] == "google.protobuf.NullValue" && T(t === null || t === "NULL_VALUE", `Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} only accepts null.`), t === null) return 0;
|
|
770
568
|
switch (typeof t) {
|
|
771
|
-
case "number": return
|
|
569
|
+
case "number": return T(Number.isInteger(t), `Unable to parse field ${this.info.typeName}#${n}, enum can only be integral number, got ${t}.`), t;
|
|
772
570
|
case "string":
|
|
773
571
|
let i = t;
|
|
774
572
|
e[2] && t.substring(0, e[2].length) === e[2] && (i = t.substring(e[2].length));
|
|
775
573
|
let a = e[1][i];
|
|
776
|
-
return a === void 0 && r ? !1 : (
|
|
574
|
+
return a === void 0 && r ? !1 : (T(typeof a == "number", `Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${t}".`), a);
|
|
777
575
|
}
|
|
778
|
-
|
|
576
|
+
T(!1, `Unable to parse field ${this.info.typeName}#${n}, cannot parse enum value from ${typeof t}".`);
|
|
779
577
|
}
|
|
780
578
|
scalar(e, t, n, r) {
|
|
781
579
|
let a;
|
|
782
580
|
try {
|
|
783
581
|
switch (t) {
|
|
784
|
-
case
|
|
785
|
-
case
|
|
582
|
+
case i.DOUBLE:
|
|
583
|
+
case i.FLOAT:
|
|
786
584
|
if (e === null) return 0;
|
|
787
585
|
if (e === "NaN") return NaN;
|
|
788
586
|
if (e === "Infinity") return Infinity;
|
|
@@ -805,49 +603,49 @@ var ve = class {
|
|
|
805
603
|
a = "too large or small";
|
|
806
604
|
break;
|
|
807
605
|
}
|
|
808
|
-
return t ==
|
|
809
|
-
case
|
|
810
|
-
case
|
|
811
|
-
case
|
|
812
|
-
case
|
|
813
|
-
case
|
|
606
|
+
return t == i.FLOAT && O(r), r;
|
|
607
|
+
case i.INT32:
|
|
608
|
+
case i.FIXED32:
|
|
609
|
+
case i.SFIXED32:
|
|
610
|
+
case i.SINT32:
|
|
611
|
+
case i.UINT32:
|
|
814
612
|
if (e === null) return 0;
|
|
815
613
|
let o;
|
|
816
614
|
if (typeof e == "number" ? o = e : e === "" ? a = "empty string" : typeof e == "string" && (e.trim().length === e.length ? o = Number(e) : a = "extra whitespace"), o === void 0) break;
|
|
817
|
-
return t ==
|
|
818
|
-
case
|
|
819
|
-
case
|
|
820
|
-
case
|
|
821
|
-
if (e === null) return
|
|
615
|
+
return t == i.UINT32 ? D(o) : E(o), o;
|
|
616
|
+
case i.INT64:
|
|
617
|
+
case i.SFIXED64:
|
|
618
|
+
case i.SINT64:
|
|
619
|
+
if (e === null) return k(w.ZERO, n);
|
|
822
620
|
if (typeof e != "number" && typeof e != "string") break;
|
|
823
|
-
return
|
|
824
|
-
case
|
|
825
|
-
case
|
|
826
|
-
if (e === null) return
|
|
621
|
+
return k(w.from(e), n);
|
|
622
|
+
case i.FIXED64:
|
|
623
|
+
case i.UINT64:
|
|
624
|
+
if (e === null) return k(C.ZERO, n);
|
|
827
625
|
if (typeof e != "number" && typeof e != "string") break;
|
|
828
|
-
return
|
|
829
|
-
case
|
|
626
|
+
return k(C.from(e), n);
|
|
627
|
+
case i.BOOL:
|
|
830
628
|
if (e === null) return !1;
|
|
831
629
|
if (typeof e != "boolean") break;
|
|
832
630
|
return e;
|
|
833
|
-
case
|
|
631
|
+
case i.STRING:
|
|
834
632
|
if (e === null) return "";
|
|
835
633
|
if (typeof e != "string") {
|
|
836
634
|
a = "extra whitespace";
|
|
837
635
|
break;
|
|
838
636
|
}
|
|
839
637
|
return e;
|
|
840
|
-
case
|
|
841
|
-
if (e === null || e === "") return new Uint8Array();
|
|
638
|
+
case i.BYTES:
|
|
639
|
+
if (e === null || e === "") return /* @__PURE__ */ new Uint8Array();
|
|
842
640
|
if (typeof e != "string") break;
|
|
843
|
-
return
|
|
641
|
+
return ee(e);
|
|
844
642
|
}
|
|
845
643
|
} catch (e) {
|
|
846
644
|
a = e.message;
|
|
847
645
|
}
|
|
848
646
|
this.assert(!1, r + (a ? " - " + a : ""), e);
|
|
849
647
|
}
|
|
850
|
-
},
|
|
648
|
+
}, me = class {
|
|
851
649
|
constructor(e) {
|
|
852
650
|
this.fields = e.fields ?? [];
|
|
853
651
|
}
|
|
@@ -862,62 +660,62 @@ var ve = class {
|
|
|
862
660
|
let i = r[e.oneof];
|
|
863
661
|
if (i.oneofKind !== e.localName) continue;
|
|
864
662
|
let a = e.kind == "scalar" || e.kind == "enum" ? Object.assign(Object.assign({}, t), { emitDefaultValues: !0 }) : t, o = this.field(e, i[e.localName], a);
|
|
865
|
-
|
|
663
|
+
T(o !== void 0), n[t.useProtoFieldName ? e.name : e.jsonName] = o;
|
|
866
664
|
}
|
|
867
665
|
return n;
|
|
868
666
|
}
|
|
869
667
|
field(e, t, n) {
|
|
870
668
|
let r;
|
|
871
669
|
if (e.kind == "map") {
|
|
872
|
-
|
|
670
|
+
T(typeof t == "object" && !!t);
|
|
873
671
|
let i = {};
|
|
874
672
|
switch (e.V.kind) {
|
|
875
673
|
case "scalar":
|
|
876
674
|
for (let [n, r] of Object.entries(t)) {
|
|
877
675
|
let t = this.scalar(e.V.T, r, e.name, !1, !0);
|
|
878
|
-
|
|
676
|
+
T(t !== void 0), i[n.toString()] = t;
|
|
879
677
|
}
|
|
880
678
|
break;
|
|
881
679
|
case "message":
|
|
882
680
|
let r = e.V.T();
|
|
883
681
|
for (let [a, o] of Object.entries(t)) {
|
|
884
682
|
let t = this.message(r, o, e.name, n);
|
|
885
|
-
|
|
683
|
+
T(t !== void 0), i[a.toString()] = t;
|
|
886
684
|
}
|
|
887
685
|
break;
|
|
888
686
|
case "enum":
|
|
889
687
|
let a = e.V.T();
|
|
890
688
|
for (let [r, o] of Object.entries(t)) {
|
|
891
|
-
|
|
689
|
+
T(o === void 0 || typeof o == "number");
|
|
892
690
|
let t = this.enum(a, o, e.name, !1, !0, n.enumAsInteger);
|
|
893
|
-
|
|
691
|
+
T(t !== void 0), i[r.toString()] = t;
|
|
894
692
|
}
|
|
895
693
|
break;
|
|
896
694
|
}
|
|
897
695
|
(n.emitDefaultValues || Object.keys(i).length > 0) && (r = i);
|
|
898
696
|
} else if (e.repeat) {
|
|
899
|
-
|
|
697
|
+
T(Array.isArray(t));
|
|
900
698
|
let i = [];
|
|
901
699
|
switch (e.kind) {
|
|
902
700
|
case "scalar":
|
|
903
701
|
for (let n = 0; n < t.length; n++) {
|
|
904
702
|
let r = this.scalar(e.T, t[n], e.name, e.opt, !0);
|
|
905
|
-
|
|
703
|
+
T(r !== void 0), i.push(r);
|
|
906
704
|
}
|
|
907
705
|
break;
|
|
908
706
|
case "enum":
|
|
909
707
|
let r = e.T();
|
|
910
708
|
for (let a = 0; a < t.length; a++) {
|
|
911
|
-
|
|
709
|
+
T(t[a] === void 0 || typeof t[a] == "number");
|
|
912
710
|
let o = this.enum(r, t[a], e.name, e.opt, !0, n.enumAsInteger);
|
|
913
|
-
|
|
711
|
+
T(o !== void 0), i.push(o);
|
|
914
712
|
}
|
|
915
713
|
break;
|
|
916
714
|
case "message":
|
|
917
715
|
let a = e.T();
|
|
918
716
|
for (let r = 0; r < t.length; r++) {
|
|
919
717
|
let o = this.message(a, t[r], e.name, n);
|
|
920
|
-
|
|
718
|
+
T(o !== void 0), i.push(o);
|
|
921
719
|
}
|
|
922
720
|
break;
|
|
923
721
|
}
|
|
@@ -938,65 +736,65 @@ var ve = class {
|
|
|
938
736
|
enum(e, t, n, r, i, a) {
|
|
939
737
|
if (e[0] == "google.protobuf.NullValue") return !i && !r ? void 0 : null;
|
|
940
738
|
if (t === void 0) {
|
|
941
|
-
|
|
739
|
+
T(r);
|
|
942
740
|
return;
|
|
943
741
|
}
|
|
944
|
-
if (!(t === 0 && !i && !r)) return
|
|
742
|
+
if (!(t === 0 && !i && !r)) return T(typeof t == "number"), T(Number.isInteger(t)), a || !e[1].hasOwnProperty(t) ? t : e[2] ? e[2] + e[1][t] : e[1][t];
|
|
945
743
|
}
|
|
946
744
|
message(e, t, n, r) {
|
|
947
745
|
return t === void 0 ? r.emitDefaultValues ? null : void 0 : e.internalJsonWrite(t, r);
|
|
948
746
|
}
|
|
949
|
-
scalar(e, t, n, r,
|
|
747
|
+
scalar(e, t, n, r, a) {
|
|
950
748
|
if (t === void 0) {
|
|
951
|
-
|
|
749
|
+
T(r);
|
|
952
750
|
return;
|
|
953
751
|
}
|
|
954
|
-
let o =
|
|
752
|
+
let o = a || r;
|
|
955
753
|
switch (e) {
|
|
956
|
-
case
|
|
957
|
-
case
|
|
958
|
-
case
|
|
959
|
-
case
|
|
960
|
-
case
|
|
961
|
-
case
|
|
962
|
-
case
|
|
963
|
-
case
|
|
964
|
-
case
|
|
965
|
-
case
|
|
966
|
-
case
|
|
967
|
-
|
|
968
|
-
let e =
|
|
754
|
+
case i.INT32:
|
|
755
|
+
case i.SFIXED32:
|
|
756
|
+
case i.SINT32: return t === 0 ? o ? 0 : void 0 : (E(t), t);
|
|
757
|
+
case i.FIXED32:
|
|
758
|
+
case i.UINT32: return t === 0 ? o ? 0 : void 0 : (D(t), t);
|
|
759
|
+
case i.FLOAT: O(t);
|
|
760
|
+
case i.DOUBLE: return t === 0 ? o ? 0 : void 0 : (T(typeof t == "number"), Number.isNaN(t) ? "NaN" : t === Infinity ? "Infinity" : t === -Infinity ? "-Infinity" : t);
|
|
761
|
+
case i.STRING: return t === "" ? o ? "" : void 0 : (T(typeof t == "string"), t);
|
|
762
|
+
case i.BOOL: return t === !1 ? o ? !1 : void 0 : (T(typeof t == "boolean"), t);
|
|
763
|
+
case i.UINT64:
|
|
764
|
+
case i.FIXED64:
|
|
765
|
+
T(typeof t == "number" || typeof t == "string" || typeof t == "bigint");
|
|
766
|
+
let e = C.from(t);
|
|
969
767
|
return e.isZero() && !o ? void 0 : e.toString();
|
|
970
|
-
case
|
|
971
|
-
case
|
|
972
|
-
case
|
|
973
|
-
|
|
974
|
-
let n =
|
|
768
|
+
case i.INT64:
|
|
769
|
+
case i.SFIXED64:
|
|
770
|
+
case i.SINT64:
|
|
771
|
+
T(typeof t == "number" || typeof t == "string" || typeof t == "bigint");
|
|
772
|
+
let n = w.from(t);
|
|
975
773
|
return n.isZero() && !o ? void 0 : n.toString();
|
|
976
|
-
case
|
|
774
|
+
case i.BYTES: return T(t instanceof Uint8Array), t.byteLength ? te(t) : o ? "" : void 0;
|
|
977
775
|
}
|
|
978
776
|
}
|
|
979
777
|
};
|
|
980
778
|
//#endregion
|
|
981
779
|
//#region node_modules/@protobuf-ts/runtime/build/es2015/reflection-scalar-default.js
|
|
982
|
-
function
|
|
780
|
+
function A(e, t = a.STRING) {
|
|
983
781
|
switch (e) {
|
|
984
|
-
case
|
|
985
|
-
case
|
|
986
|
-
case
|
|
987
|
-
case
|
|
988
|
-
case
|
|
989
|
-
case
|
|
990
|
-
case
|
|
991
|
-
case
|
|
992
|
-
case
|
|
993
|
-
case
|
|
782
|
+
case i.BOOL: return !1;
|
|
783
|
+
case i.UINT64:
|
|
784
|
+
case i.FIXED64: return k(C.ZERO, t);
|
|
785
|
+
case i.INT64:
|
|
786
|
+
case i.SFIXED64:
|
|
787
|
+
case i.SINT64: return k(w.ZERO, t);
|
|
788
|
+
case i.DOUBLE:
|
|
789
|
+
case i.FLOAT: return 0;
|
|
790
|
+
case i.BYTES: return /* @__PURE__ */ new Uint8Array();
|
|
791
|
+
case i.STRING: return "";
|
|
994
792
|
default: return 0;
|
|
995
793
|
}
|
|
996
794
|
}
|
|
997
795
|
//#endregion
|
|
998
796
|
//#region node_modules/@protobuf-ts/runtime/build/es2015/reflection-binary-reader.js
|
|
999
|
-
var
|
|
797
|
+
var he = class {
|
|
1000
798
|
constructor(e) {
|
|
1001
799
|
this.info = e;
|
|
1002
800
|
}
|
|
@@ -1006,252 +804,255 @@ var be = class {
|
|
|
1006
804
|
this.fieldNoToField = new Map(e.map((e) => [e.no, e]));
|
|
1007
805
|
}
|
|
1008
806
|
}
|
|
1009
|
-
read(
|
|
807
|
+
read(n, r, a, o) {
|
|
1010
808
|
this.prepare();
|
|
1011
|
-
let
|
|
1012
|
-
for (;
|
|
1013
|
-
let [
|
|
1014
|
-
if (!
|
|
1015
|
-
let
|
|
1016
|
-
if (
|
|
1017
|
-
let
|
|
1018
|
-
|
|
809
|
+
let s = o === void 0 ? n.len : n.pos + o;
|
|
810
|
+
for (; n.pos < s;) {
|
|
811
|
+
let [o, s] = n.tag(), c = this.fieldNoToField.get(o);
|
|
812
|
+
if (!c) {
|
|
813
|
+
let t = a.readUnknownField;
|
|
814
|
+
if (t == "throw") throw Error(`Unknown field ${o} (wire type ${s}) for ${this.info.typeName}`);
|
|
815
|
+
let i = n.skip(s);
|
|
816
|
+
t !== !1 && (t === !0 ? e.onRead : t)(this.info.typeName, r, o, s, i);
|
|
1019
817
|
continue;
|
|
1020
818
|
}
|
|
1021
|
-
let
|
|
1022
|
-
switch (
|
|
819
|
+
let l = r, u = c.repeat, d = c.localName;
|
|
820
|
+
switch (c.oneof && (l = l[c.oneof], l.oneofKind !== d && (l = r[c.oneof] = { oneofKind: d })), c.kind) {
|
|
1023
821
|
case "scalar":
|
|
1024
822
|
case "enum":
|
|
1025
|
-
let
|
|
1026
|
-
if (
|
|
1027
|
-
let
|
|
1028
|
-
if (
|
|
1029
|
-
let
|
|
1030
|
-
for (;
|
|
1031
|
-
} else
|
|
1032
|
-
} else
|
|
823
|
+
let e = c.kind == "enum" ? i.INT32 : c.T, r = c.kind == "scalar" ? c.L : void 0;
|
|
824
|
+
if (u) {
|
|
825
|
+
let a = l[d];
|
|
826
|
+
if (s == t.LengthDelimited && e != i.STRING && e != i.BYTES) {
|
|
827
|
+
let t = n.uint32() + n.pos;
|
|
828
|
+
for (; n.pos < t;) a.push(this.scalar(n, e, r));
|
|
829
|
+
} else a.push(this.scalar(n, e, r));
|
|
830
|
+
} else l[d] = this.scalar(n, e, r);
|
|
1033
831
|
break;
|
|
1034
832
|
case "message":
|
|
1035
|
-
if (
|
|
1036
|
-
let
|
|
1037
|
-
|
|
1038
|
-
} else
|
|
833
|
+
if (u) {
|
|
834
|
+
let e = l[d], t = c.T().internalBinaryRead(n, n.uint32(), a);
|
|
835
|
+
e.push(t);
|
|
836
|
+
} else l[d] = c.T().internalBinaryRead(n, n.uint32(), a, l[d]);
|
|
1039
837
|
break;
|
|
1040
838
|
case "map":
|
|
1041
|
-
let [o,
|
|
1042
|
-
|
|
839
|
+
let [o, f] = this.mapEntry(c, n, a);
|
|
840
|
+
l[d][o] = f;
|
|
1043
841
|
break;
|
|
1044
842
|
}
|
|
1045
843
|
}
|
|
1046
844
|
}
|
|
1047
845
|
mapEntry(e, t, n) {
|
|
1048
|
-
let r = t.uint32(),
|
|
1049
|
-
for (; t.pos <
|
|
1050
|
-
let [r,
|
|
846
|
+
let r = t.uint32(), o = t.pos + r, s, c;
|
|
847
|
+
for (; t.pos < o;) {
|
|
848
|
+
let [r, o] = t.tag();
|
|
1051
849
|
switch (r) {
|
|
1052
850
|
case 1:
|
|
1053
|
-
|
|
851
|
+
s = e.K == i.BOOL ? t.bool().toString() : this.scalar(t, e.K, a.STRING);
|
|
1054
852
|
break;
|
|
1055
853
|
case 2:
|
|
1056
854
|
switch (e.V.kind) {
|
|
1057
855
|
case "scalar":
|
|
1058
|
-
|
|
856
|
+
c = this.scalar(t, e.V.T, e.V.L);
|
|
1059
857
|
break;
|
|
1060
858
|
case "enum":
|
|
1061
|
-
|
|
859
|
+
c = t.int32();
|
|
1062
860
|
break;
|
|
1063
861
|
case "message":
|
|
1064
|
-
|
|
862
|
+
c = e.V.T().internalBinaryRead(t, t.uint32(), n);
|
|
1065
863
|
break;
|
|
1066
864
|
}
|
|
1067
865
|
break;
|
|
1068
|
-
default: throw Error(`Unknown field ${r} (wire type ${
|
|
866
|
+
default: throw Error(`Unknown field ${r} (wire type ${o}) in map entry for ${this.info.typeName}#${e.name}`);
|
|
1069
867
|
}
|
|
1070
868
|
}
|
|
1071
|
-
if (
|
|
1072
|
-
let t =
|
|
1073
|
-
|
|
869
|
+
if (s === void 0) {
|
|
870
|
+
let t = A(e.K);
|
|
871
|
+
s = e.K == i.BOOL ? t.toString() : t;
|
|
1074
872
|
}
|
|
1075
|
-
if (
|
|
873
|
+
if (c === void 0) switch (e.V.kind) {
|
|
1076
874
|
case "scalar":
|
|
1077
|
-
|
|
875
|
+
c = A(e.V.T, e.V.L);
|
|
1078
876
|
break;
|
|
1079
877
|
case "enum":
|
|
1080
|
-
|
|
878
|
+
c = 0;
|
|
1081
879
|
break;
|
|
1082
880
|
case "message":
|
|
1083
|
-
|
|
881
|
+
c = e.V.T().create();
|
|
1084
882
|
break;
|
|
1085
883
|
}
|
|
1086
|
-
return [
|
|
884
|
+
return [s, c];
|
|
1087
885
|
}
|
|
1088
886
|
scalar(e, t, n) {
|
|
1089
887
|
switch (t) {
|
|
1090
|
-
case
|
|
1091
|
-
case
|
|
1092
|
-
case
|
|
1093
|
-
case
|
|
1094
|
-
case
|
|
1095
|
-
case
|
|
1096
|
-
case
|
|
1097
|
-
case
|
|
1098
|
-
case
|
|
1099
|
-
case
|
|
1100
|
-
case
|
|
1101
|
-
case
|
|
1102
|
-
case
|
|
1103
|
-
case
|
|
1104
|
-
case
|
|
888
|
+
case i.INT32: return e.int32();
|
|
889
|
+
case i.STRING: return e.string();
|
|
890
|
+
case i.BOOL: return e.bool();
|
|
891
|
+
case i.DOUBLE: return e.double();
|
|
892
|
+
case i.FLOAT: return e.float();
|
|
893
|
+
case i.INT64: return k(e.int64(), n);
|
|
894
|
+
case i.UINT64: return k(e.uint64(), n);
|
|
895
|
+
case i.FIXED64: return k(e.fixed64(), n);
|
|
896
|
+
case i.FIXED32: return e.fixed32();
|
|
897
|
+
case i.BYTES: return e.bytes();
|
|
898
|
+
case i.UINT32: return e.uint32();
|
|
899
|
+
case i.SFIXED32: return e.sfixed32();
|
|
900
|
+
case i.SFIXED64: return k(e.sfixed64(), n);
|
|
901
|
+
case i.SINT32: return e.sint32();
|
|
902
|
+
case i.SINT64: return k(e.sint64(), n);
|
|
1105
903
|
}
|
|
1106
904
|
}
|
|
1107
|
-
},
|
|
905
|
+
}, ge = class {
|
|
1108
906
|
constructor(e) {
|
|
1109
907
|
this.info = e;
|
|
1110
908
|
}
|
|
1111
909
|
prepare() {
|
|
1112
|
-
|
|
910
|
+
if (!this.fields) {
|
|
911
|
+
let e = this.info.fields ? this.info.fields.concat() : [];
|
|
912
|
+
this.fields = e.sort((e, t) => e.no - t.no);
|
|
913
|
+
}
|
|
1113
914
|
}
|
|
1114
|
-
write(
|
|
915
|
+
write(t, n, r) {
|
|
1115
916
|
this.prepare();
|
|
1116
|
-
for (let
|
|
1117
|
-
let
|
|
1118
|
-
if (
|
|
1119
|
-
let
|
|
1120
|
-
if (
|
|
1121
|
-
|
|
1122
|
-
} else
|
|
1123
|
-
switch (
|
|
917
|
+
for (let e of this.fields) {
|
|
918
|
+
let a, s, c = e.repeat, l = e.localName;
|
|
919
|
+
if (e.oneof) {
|
|
920
|
+
let n = t[e.oneof];
|
|
921
|
+
if (n.oneofKind !== l) continue;
|
|
922
|
+
a = n[l], s = !0;
|
|
923
|
+
} else a = t[l], s = !1;
|
|
924
|
+
switch (e.kind) {
|
|
1124
925
|
case "scalar":
|
|
1125
926
|
case "enum":
|
|
1126
|
-
let
|
|
1127
|
-
if (
|
|
1128
|
-
else for (let
|
|
1129
|
-
else
|
|
927
|
+
let t = e.kind == "enum" ? i.INT32 : e.T;
|
|
928
|
+
if (c) if (T(Array.isArray(a)), c == o.PACKED) this.packed(n, t, e.no, a);
|
|
929
|
+
else for (let r of a) this.scalar(n, t, e.no, r, !0);
|
|
930
|
+
else a === void 0 ? T(e.opt) : this.scalar(n, t, e.no, a, s || e.opt);
|
|
1130
931
|
break;
|
|
1131
932
|
case "message":
|
|
1132
|
-
if (
|
|
1133
|
-
|
|
1134
|
-
for (let
|
|
1135
|
-
} else this.message(
|
|
933
|
+
if (c) {
|
|
934
|
+
T(Array.isArray(a));
|
|
935
|
+
for (let t of a) this.message(n, r, e.T(), e.no, t);
|
|
936
|
+
} else this.message(n, r, e.T(), e.no, a);
|
|
1136
937
|
break;
|
|
1137
938
|
case "map":
|
|
1138
|
-
|
|
1139
|
-
for (let [
|
|
939
|
+
T(typeof a == "object" && !!a);
|
|
940
|
+
for (let [t, i] of Object.entries(a)) this.mapEntry(n, r, e, t, i);
|
|
1140
941
|
break;
|
|
1141
942
|
}
|
|
1142
943
|
}
|
|
1143
|
-
let
|
|
1144
|
-
|
|
1145
|
-
}
|
|
1146
|
-
mapEntry(e,
|
|
1147
|
-
e.tag(
|
|
1148
|
-
let
|
|
1149
|
-
switch (
|
|
1150
|
-
case
|
|
1151
|
-
case
|
|
1152
|
-
case
|
|
1153
|
-
case
|
|
1154
|
-
case
|
|
1155
|
-
|
|
944
|
+
let a = r.writeUnknownFields;
|
|
945
|
+
a !== !1 && (a === !0 ? e.onWrite : a)(this.info.typeName, t, n);
|
|
946
|
+
}
|
|
947
|
+
mapEntry(e, n, r, a, o) {
|
|
948
|
+
e.tag(r.no, t.LengthDelimited), e.fork();
|
|
949
|
+
let s = a;
|
|
950
|
+
switch (r.K) {
|
|
951
|
+
case i.INT32:
|
|
952
|
+
case i.FIXED32:
|
|
953
|
+
case i.UINT32:
|
|
954
|
+
case i.SFIXED32:
|
|
955
|
+
case i.SINT32:
|
|
956
|
+
s = Number.parseInt(a);
|
|
1156
957
|
break;
|
|
1157
|
-
case
|
|
1158
|
-
|
|
958
|
+
case i.BOOL:
|
|
959
|
+
T(a == "true" || a == "false"), s = a == "true";
|
|
1159
960
|
break;
|
|
1160
961
|
}
|
|
1161
|
-
switch (this.scalar(e,
|
|
962
|
+
switch (this.scalar(e, r.K, 1, s, !0), r.V.kind) {
|
|
1162
963
|
case "scalar":
|
|
1163
|
-
this.scalar(e,
|
|
964
|
+
this.scalar(e, r.V.T, 2, o, !0);
|
|
1164
965
|
break;
|
|
1165
966
|
case "enum":
|
|
1166
|
-
this.scalar(e,
|
|
967
|
+
this.scalar(e, i.INT32, 2, o, !0);
|
|
1167
968
|
break;
|
|
1168
969
|
case "message":
|
|
1169
|
-
this.message(e,
|
|
970
|
+
this.message(e, n, r.V.T(), 2, o);
|
|
1170
971
|
break;
|
|
1171
972
|
}
|
|
1172
973
|
e.join();
|
|
1173
974
|
}
|
|
1174
|
-
message(e,
|
|
1175
|
-
|
|
975
|
+
message(e, n, r, i, a) {
|
|
976
|
+
a !== void 0 && (r.internalBinaryWrite(a, e.tag(i, t.LengthDelimited).fork(), n), e.join());
|
|
1176
977
|
}
|
|
1177
978
|
scalar(e, t, n, r, i) {
|
|
1178
979
|
let [a, o, s] = this.scalarInfo(t, r);
|
|
1179
980
|
(!s || i) && (e.tag(n, a), e[o](r));
|
|
1180
981
|
}
|
|
1181
|
-
packed(e,
|
|
1182
|
-
if (!
|
|
1183
|
-
|
|
1184
|
-
let [,
|
|
1185
|
-
for (let t = 0; t <
|
|
982
|
+
packed(e, n, r, a) {
|
|
983
|
+
if (!a.length) return;
|
|
984
|
+
T(n !== i.BYTES && n !== i.STRING), e.tag(r, t.LengthDelimited), e.fork();
|
|
985
|
+
let [, o] = this.scalarInfo(n);
|
|
986
|
+
for (let t = 0; t < a.length; t++) e[o](a[t]);
|
|
1186
987
|
e.join();
|
|
1187
988
|
}
|
|
1188
|
-
scalarInfo(e,
|
|
1189
|
-
let
|
|
989
|
+
scalarInfo(e, n) {
|
|
990
|
+
let r = t.Varint, a, o = n === void 0, s = n === 0;
|
|
1190
991
|
switch (e) {
|
|
1191
|
-
case
|
|
1192
|
-
|
|
992
|
+
case i.INT32:
|
|
993
|
+
a = "int32";
|
|
1193
994
|
break;
|
|
1194
|
-
case
|
|
1195
|
-
|
|
995
|
+
case i.STRING:
|
|
996
|
+
s = o || !n.length, r = t.LengthDelimited, a = "string";
|
|
1196
997
|
break;
|
|
1197
|
-
case
|
|
1198
|
-
|
|
998
|
+
case i.BOOL:
|
|
999
|
+
s = n === !1, a = "bool";
|
|
1199
1000
|
break;
|
|
1200
|
-
case
|
|
1201
|
-
|
|
1001
|
+
case i.UINT32:
|
|
1002
|
+
a = "uint32";
|
|
1202
1003
|
break;
|
|
1203
|
-
case
|
|
1204
|
-
|
|
1004
|
+
case i.DOUBLE:
|
|
1005
|
+
r = t.Bit64, a = "double";
|
|
1205
1006
|
break;
|
|
1206
|
-
case
|
|
1207
|
-
|
|
1007
|
+
case i.FLOAT:
|
|
1008
|
+
r = t.Bit32, a = "float";
|
|
1208
1009
|
break;
|
|
1209
|
-
case
|
|
1210
|
-
|
|
1010
|
+
case i.INT64:
|
|
1011
|
+
s = o || w.from(n).isZero(), a = "int64";
|
|
1211
1012
|
break;
|
|
1212
|
-
case
|
|
1213
|
-
|
|
1013
|
+
case i.UINT64:
|
|
1014
|
+
s = o || C.from(n).isZero(), a = "uint64";
|
|
1214
1015
|
break;
|
|
1215
|
-
case
|
|
1216
|
-
|
|
1016
|
+
case i.FIXED64:
|
|
1017
|
+
s = o || C.from(n).isZero(), r = t.Bit64, a = "fixed64";
|
|
1217
1018
|
break;
|
|
1218
|
-
case
|
|
1219
|
-
|
|
1019
|
+
case i.BYTES:
|
|
1020
|
+
s = o || !n.byteLength, r = t.LengthDelimited, a = "bytes";
|
|
1220
1021
|
break;
|
|
1221
|
-
case
|
|
1222
|
-
|
|
1022
|
+
case i.FIXED32:
|
|
1023
|
+
r = t.Bit32, a = "fixed32";
|
|
1223
1024
|
break;
|
|
1224
|
-
case
|
|
1225
|
-
|
|
1025
|
+
case i.SFIXED32:
|
|
1026
|
+
r = t.Bit32, a = "sfixed32";
|
|
1226
1027
|
break;
|
|
1227
|
-
case
|
|
1228
|
-
|
|
1028
|
+
case i.SFIXED64:
|
|
1029
|
+
s = o || w.from(n).isZero(), r = t.Bit64, a = "sfixed64";
|
|
1229
1030
|
break;
|
|
1230
|
-
case
|
|
1231
|
-
|
|
1031
|
+
case i.SINT32:
|
|
1032
|
+
a = "sint32";
|
|
1232
1033
|
break;
|
|
1233
|
-
case
|
|
1234
|
-
|
|
1034
|
+
case i.SINT64:
|
|
1035
|
+
s = o || w.from(n).isZero(), a = "sint64";
|
|
1235
1036
|
break;
|
|
1236
1037
|
}
|
|
1237
1038
|
return [
|
|
1238
|
-
n,
|
|
1239
1039
|
r,
|
|
1240
|
-
|
|
1040
|
+
a,
|
|
1041
|
+
o || s
|
|
1241
1042
|
];
|
|
1242
1043
|
}
|
|
1243
1044
|
};
|
|
1244
1045
|
//#endregion
|
|
1245
1046
|
//#region node_modules/@protobuf-ts/runtime/build/es2015/reflection-create.js
|
|
1246
|
-
function
|
|
1247
|
-
let t = e.messagePrototype ? Object.create(e.messagePrototype) : Object.defineProperty({},
|
|
1047
|
+
function _e(e) {
|
|
1048
|
+
let t = e.messagePrototype ? Object.create(e.messagePrototype) : Object.defineProperty({}, n, { value: e });
|
|
1248
1049
|
for (let n of e.fields) {
|
|
1249
1050
|
let e = n.localName;
|
|
1250
1051
|
if (!n.opt) if (n.oneof) t[n.oneof] = { oneofKind: void 0 };
|
|
1251
1052
|
else if (n.repeat) t[e] = [];
|
|
1252
1053
|
else switch (n.kind) {
|
|
1253
1054
|
case "scalar":
|
|
1254
|
-
t[e] =
|
|
1055
|
+
t[e] = A(n.T, n.L);
|
|
1255
1056
|
break;
|
|
1256
1057
|
case "enum":
|
|
1257
1058
|
t[e] = 0;
|
|
@@ -1265,7 +1066,7 @@ function Se(e) {
|
|
|
1265
1066
|
}
|
|
1266
1067
|
//#endregion
|
|
1267
1068
|
//#region node_modules/@protobuf-ts/runtime/build/es2015/reflection-merge-partial.js
|
|
1268
|
-
function
|
|
1069
|
+
function j(e, t, n) {
|
|
1269
1070
|
let r, i = n, a;
|
|
1270
1071
|
for (let n of e.fields) {
|
|
1271
1072
|
let e = n.localName;
|
|
@@ -1304,64 +1105,263 @@ function I(e, t, n) {
|
|
|
1304
1105
|
}
|
|
1305
1106
|
}
|
|
1306
1107
|
//#endregion
|
|
1108
|
+
//#region node_modules/@protobuf-ts/runtime/build/es2015/json-format-contract.js
|
|
1109
|
+
var M = {
|
|
1110
|
+
emitDefaultValues: !1,
|
|
1111
|
+
enumAsInteger: !1,
|
|
1112
|
+
useProtoFieldName: !1,
|
|
1113
|
+
prettySpaces: 0
|
|
1114
|
+
}, N = { ignoreUnknownFields: !1 };
|
|
1115
|
+
function ve(e) {
|
|
1116
|
+
return e ? Object.assign(Object.assign({}, N), e) : N;
|
|
1117
|
+
}
|
|
1118
|
+
function ye(e) {
|
|
1119
|
+
return e ? Object.assign(Object.assign({}, M), e) : M;
|
|
1120
|
+
}
|
|
1121
|
+
//#endregion
|
|
1307
1122
|
//#region node_modules/@protobuf-ts/runtime/build/es2015/reflection-equals.js
|
|
1308
|
-
function
|
|
1123
|
+
function be(e, t, n) {
|
|
1309
1124
|
if (t === n) return !0;
|
|
1310
1125
|
if (!t || !n) return !1;
|
|
1311
1126
|
for (let r of e.fields) {
|
|
1312
|
-
let e = r.localName,
|
|
1127
|
+
let e = r.localName, a = r.oneof ? t[r.oneof][e] : t[e], o = r.oneof ? n[r.oneof][e] : n[e];
|
|
1313
1128
|
switch (r.kind) {
|
|
1314
1129
|
case "enum":
|
|
1315
1130
|
case "scalar":
|
|
1316
|
-
let e = r.kind == "enum" ?
|
|
1317
|
-
if (!(r.repeat ?
|
|
1131
|
+
let e = r.kind == "enum" ? i.INT32 : r.T;
|
|
1132
|
+
if (!(r.repeat ? I(e, a, o) : F(e, a, o))) return !1;
|
|
1318
1133
|
break;
|
|
1319
1134
|
case "map":
|
|
1320
|
-
if (!(r.V.kind == "message" ?
|
|
1135
|
+
if (!(r.V.kind == "message" ? L(r.V.T(), P(a), P(o)) : I(r.V.kind == "enum" ? i.INT32 : r.V.T, P(a), P(o)))) return !1;
|
|
1321
1136
|
break;
|
|
1322
1137
|
case "message":
|
|
1323
1138
|
let t = r.T();
|
|
1324
|
-
if (!(r.repeat ?
|
|
1139
|
+
if (!(r.repeat ? L(t, a, o) : t.equals(a, o))) return !1;
|
|
1325
1140
|
break;
|
|
1326
1141
|
}
|
|
1327
1142
|
}
|
|
1328
1143
|
return !0;
|
|
1329
1144
|
}
|
|
1330
|
-
var
|
|
1331
|
-
function
|
|
1145
|
+
var P = Object.values;
|
|
1146
|
+
function F(e, t, n) {
|
|
1332
1147
|
if (t === n) return !0;
|
|
1333
|
-
if (e !==
|
|
1334
|
-
let r = t,
|
|
1335
|
-
if (r.length !==
|
|
1336
|
-
for (let e = 0; e < r.length; e++) if (r[e] !=
|
|
1148
|
+
if (e !== i.BYTES) return !1;
|
|
1149
|
+
let r = t, a = n;
|
|
1150
|
+
if (r.length !== a.length) return !1;
|
|
1151
|
+
for (let e = 0; e < r.length; e++) if (r[e] != a[e]) return !1;
|
|
1337
1152
|
return !0;
|
|
1338
1153
|
}
|
|
1339
|
-
function
|
|
1154
|
+
function I(e, t, n) {
|
|
1340
1155
|
if (t.length !== n.length) return !1;
|
|
1341
|
-
for (let r = 0; r < t.length; r++) if (!
|
|
1156
|
+
for (let r = 0; r < t.length; r++) if (!F(e, t[r], n[r])) return !1;
|
|
1342
1157
|
return !0;
|
|
1343
1158
|
}
|
|
1344
|
-
function
|
|
1159
|
+
function L(e, t, n) {
|
|
1345
1160
|
if (t.length !== n.length) return !1;
|
|
1346
1161
|
for (let r = 0; r < t.length; r++) if (!e.equals(t[r], n[r])) return !1;
|
|
1347
1162
|
return !0;
|
|
1348
1163
|
}
|
|
1349
1164
|
//#endregion
|
|
1350
|
-
//#region node_modules/@protobuf-ts/runtime/build/es2015/
|
|
1351
|
-
var
|
|
1165
|
+
//#region node_modules/@protobuf-ts/runtime/build/es2015/binary-writer.js
|
|
1166
|
+
var R = {
|
|
1167
|
+
writeUnknownFields: !0,
|
|
1168
|
+
writerFactory: () => new Se()
|
|
1169
|
+
};
|
|
1170
|
+
function xe(e) {
|
|
1171
|
+
return e ? Object.assign(Object.assign({}, R), e) : R;
|
|
1172
|
+
}
|
|
1173
|
+
var Se = class {
|
|
1174
|
+
constructor(e) {
|
|
1175
|
+
this.stack = [], this.textEncoder = e ?? new TextEncoder(), this.chunks = [], this.buf = [];
|
|
1176
|
+
}
|
|
1177
|
+
finish() {
|
|
1178
|
+
this.chunks.push(new Uint8Array(this.buf));
|
|
1179
|
+
let e = 0;
|
|
1180
|
+
for (let t = 0; t < this.chunks.length; t++) e += this.chunks[t].length;
|
|
1181
|
+
let t = new Uint8Array(e), n = 0;
|
|
1182
|
+
for (let e = 0; e < this.chunks.length; e++) t.set(this.chunks[e], n), n += this.chunks[e].length;
|
|
1183
|
+
return this.chunks = [], t;
|
|
1184
|
+
}
|
|
1185
|
+
fork() {
|
|
1186
|
+
return this.stack.push({
|
|
1187
|
+
chunks: this.chunks,
|
|
1188
|
+
buf: this.buf
|
|
1189
|
+
}), this.chunks = [], this.buf = [], this;
|
|
1190
|
+
}
|
|
1191
|
+
join() {
|
|
1192
|
+
let e = this.finish(), t = this.stack.pop();
|
|
1193
|
+
if (!t) throw Error("invalid state, fork stack empty");
|
|
1194
|
+
return this.chunks = t.chunks, this.buf = t.buf, this.uint32(e.byteLength), this.raw(e);
|
|
1195
|
+
}
|
|
1196
|
+
tag(e, t) {
|
|
1197
|
+
return this.uint32((e << 3 | t) >>> 0);
|
|
1198
|
+
}
|
|
1199
|
+
raw(e) {
|
|
1200
|
+
return this.buf.length && (this.chunks.push(new Uint8Array(this.buf)), this.buf = []), this.chunks.push(e), this;
|
|
1201
|
+
}
|
|
1202
|
+
uint32(e) {
|
|
1203
|
+
for (D(e); e > 127;) this.buf.push(e & 127 | 128), e >>>= 7;
|
|
1204
|
+
return this.buf.push(e), this;
|
|
1205
|
+
}
|
|
1206
|
+
int32(e) {
|
|
1207
|
+
return E(e), re(e, this.buf), this;
|
|
1208
|
+
}
|
|
1209
|
+
bool(e) {
|
|
1210
|
+
return this.buf.push(+!!e), this;
|
|
1211
|
+
}
|
|
1212
|
+
bytes(e) {
|
|
1213
|
+
return this.uint32(e.byteLength), this.raw(e);
|
|
1214
|
+
}
|
|
1215
|
+
string(e) {
|
|
1216
|
+
let t = this.textEncoder.encode(e);
|
|
1217
|
+
return this.uint32(t.byteLength), this.raw(t);
|
|
1218
|
+
}
|
|
1219
|
+
float(e) {
|
|
1220
|
+
O(e);
|
|
1221
|
+
let t = /* @__PURE__ */ new Uint8Array(4);
|
|
1222
|
+
return new DataView(t.buffer).setFloat32(0, e, !0), this.raw(t);
|
|
1223
|
+
}
|
|
1224
|
+
double(e) {
|
|
1225
|
+
let t = /* @__PURE__ */ new Uint8Array(8);
|
|
1226
|
+
return new DataView(t.buffer).setFloat64(0, e, !0), this.raw(t);
|
|
1227
|
+
}
|
|
1228
|
+
fixed32(e) {
|
|
1229
|
+
D(e);
|
|
1230
|
+
let t = /* @__PURE__ */ new Uint8Array(4);
|
|
1231
|
+
return new DataView(t.buffer).setUint32(0, e, !0), this.raw(t);
|
|
1232
|
+
}
|
|
1233
|
+
sfixed32(e) {
|
|
1234
|
+
E(e);
|
|
1235
|
+
let t = /* @__PURE__ */ new Uint8Array(4);
|
|
1236
|
+
return new DataView(t.buffer).setInt32(0, e, !0), this.raw(t);
|
|
1237
|
+
}
|
|
1238
|
+
sint32(e) {
|
|
1239
|
+
return E(e), e = (e << 1 ^ e >> 31) >>> 0, re(e, this.buf), this;
|
|
1240
|
+
}
|
|
1241
|
+
sfixed64(e) {
|
|
1242
|
+
let t = /* @__PURE__ */ new Uint8Array(8), n = new DataView(t.buffer), r = w.from(e);
|
|
1243
|
+
return n.setInt32(0, r.lo, !0), n.setInt32(4, r.hi, !0), this.raw(t);
|
|
1244
|
+
}
|
|
1245
|
+
fixed64(e) {
|
|
1246
|
+
let t = /* @__PURE__ */ new Uint8Array(8), n = new DataView(t.buffer), r = C.from(e);
|
|
1247
|
+
return n.setInt32(0, r.lo, !0), n.setInt32(4, r.hi, !0), this.raw(t);
|
|
1248
|
+
}
|
|
1249
|
+
int64(e) {
|
|
1250
|
+
let t = w.from(e);
|
|
1251
|
+
return m(t.lo, t.hi, this.buf), this;
|
|
1252
|
+
}
|
|
1253
|
+
sint64(e) {
|
|
1254
|
+
let t = w.from(e), n = t.hi >> 31;
|
|
1255
|
+
return m(t.lo << 1 ^ n, (t.hi << 1 | t.lo >>> 31) ^ n, this.buf), this;
|
|
1256
|
+
}
|
|
1257
|
+
uint64(e) {
|
|
1258
|
+
let t = C.from(e);
|
|
1259
|
+
return m(t.lo, t.hi, this.buf), this;
|
|
1260
|
+
}
|
|
1261
|
+
}, z = {
|
|
1262
|
+
readUnknownField: !0,
|
|
1263
|
+
readerFactory: (e) => new we(e)
|
|
1264
|
+
};
|
|
1265
|
+
function Ce(e) {
|
|
1266
|
+
return e ? Object.assign(Object.assign({}, z), e) : z;
|
|
1267
|
+
}
|
|
1268
|
+
var we = class {
|
|
1269
|
+
constructor(e, t) {
|
|
1270
|
+
this.varint64 = ne, this.uint32 = ie, this.buf = e, this.len = e.length, this.pos = 0, this.view = new DataView(e.buffer, e.byteOffset, e.byteLength), this.textDecoder = t ?? new TextDecoder("utf-8", {
|
|
1271
|
+
fatal: !0,
|
|
1272
|
+
ignoreBOM: !0
|
|
1273
|
+
});
|
|
1274
|
+
}
|
|
1275
|
+
tag() {
|
|
1276
|
+
let e = this.uint32(), t = e >>> 3, n = e & 7;
|
|
1277
|
+
if (t <= 0 || n < 0 || n > 5) throw Error("illegal tag: field no " + t + " wire type " + n);
|
|
1278
|
+
return [t, n];
|
|
1279
|
+
}
|
|
1280
|
+
skip(e) {
|
|
1281
|
+
let n = this.pos;
|
|
1282
|
+
switch (e) {
|
|
1283
|
+
case t.Varint:
|
|
1284
|
+
for (; this.buf[this.pos++] & 128;);
|
|
1285
|
+
break;
|
|
1286
|
+
case t.Bit64: this.pos += 4;
|
|
1287
|
+
case t.Bit32:
|
|
1288
|
+
this.pos += 4;
|
|
1289
|
+
break;
|
|
1290
|
+
case t.LengthDelimited:
|
|
1291
|
+
let n = this.uint32();
|
|
1292
|
+
this.pos += n;
|
|
1293
|
+
break;
|
|
1294
|
+
case t.StartGroup:
|
|
1295
|
+
let r;
|
|
1296
|
+
for (; (r = this.tag()[1]) !== t.EndGroup;) this.skip(r);
|
|
1297
|
+
break;
|
|
1298
|
+
default: throw Error("cant skip wire type " + e);
|
|
1299
|
+
}
|
|
1300
|
+
return this.assertBounds(), this.buf.subarray(n, this.pos);
|
|
1301
|
+
}
|
|
1302
|
+
assertBounds() {
|
|
1303
|
+
if (this.pos > this.len) throw RangeError("premature EOF");
|
|
1304
|
+
}
|
|
1305
|
+
int32() {
|
|
1306
|
+
return this.uint32() | 0;
|
|
1307
|
+
}
|
|
1308
|
+
sint32() {
|
|
1309
|
+
let e = this.uint32();
|
|
1310
|
+
return e >>> 1 ^ -(e & 1);
|
|
1311
|
+
}
|
|
1312
|
+
int64() {
|
|
1313
|
+
return new w(...this.varint64());
|
|
1314
|
+
}
|
|
1315
|
+
uint64() {
|
|
1316
|
+
return new C(...this.varint64());
|
|
1317
|
+
}
|
|
1318
|
+
sint64() {
|
|
1319
|
+
let [e, t] = this.varint64(), n = -(e & 1);
|
|
1320
|
+
return e = (e >>> 1 | (t & 1) << 31) ^ n, t = t >>> 1 ^ n, new w(e, t);
|
|
1321
|
+
}
|
|
1322
|
+
bool() {
|
|
1323
|
+
let [e, t] = this.varint64();
|
|
1324
|
+
return e !== 0 || t !== 0;
|
|
1325
|
+
}
|
|
1326
|
+
fixed32() {
|
|
1327
|
+
return this.view.getUint32((this.pos += 4) - 4, !0);
|
|
1328
|
+
}
|
|
1329
|
+
sfixed32() {
|
|
1330
|
+
return this.view.getInt32((this.pos += 4) - 4, !0);
|
|
1331
|
+
}
|
|
1332
|
+
fixed64() {
|
|
1333
|
+
return new C(this.sfixed32(), this.sfixed32());
|
|
1334
|
+
}
|
|
1335
|
+
sfixed64() {
|
|
1336
|
+
return new w(this.sfixed32(), this.sfixed32());
|
|
1337
|
+
}
|
|
1338
|
+
float() {
|
|
1339
|
+
return this.view.getFloat32((this.pos += 4) - 4, !0);
|
|
1340
|
+
}
|
|
1341
|
+
double() {
|
|
1342
|
+
return this.view.getFloat64((this.pos += 8) - 8, !0);
|
|
1343
|
+
}
|
|
1344
|
+
bytes() {
|
|
1345
|
+
let e = this.uint32(), t = this.pos;
|
|
1346
|
+
return this.pos += e, this.assertBounds(), this.buf.subarray(t, t + e);
|
|
1347
|
+
}
|
|
1348
|
+
string() {
|
|
1349
|
+
return this.textDecoder.decode(this.bytes());
|
|
1350
|
+
}
|
|
1351
|
+
}, B = Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})), Te = B[n] = {}, V = class {
|
|
1352
1352
|
constructor(e, t, n) {
|
|
1353
|
-
this.defaultCheckDepth = 16, this.typeName = e, this.fields = t.map(
|
|
1353
|
+
this.defaultCheckDepth = 16, this.typeName = e, this.fields = t.map(s), this.options = n ?? {}, Te.value = this, this.messagePrototype = Object.create(null, B), this.refTypeCheck = new l(this), this.refJsonReader = new pe(this), this.refJsonWriter = new me(this), this.refBinReader = new he(this), this.refBinWriter = new ge(this);
|
|
1354
1354
|
}
|
|
1355
1355
|
create(e) {
|
|
1356
|
-
let t =
|
|
1357
|
-
return e !== void 0 &&
|
|
1356
|
+
let t = _e(this);
|
|
1357
|
+
return e !== void 0 && j(this, t, e), t;
|
|
1358
1358
|
}
|
|
1359
1359
|
clone(e) {
|
|
1360
1360
|
let t = this.create();
|
|
1361
|
-
return
|
|
1361
|
+
return j(this, t, e), t;
|
|
1362
1362
|
}
|
|
1363
1363
|
equals(e, t) {
|
|
1364
|
-
return
|
|
1364
|
+
return be(this, e, t);
|
|
1365
1365
|
}
|
|
1366
1366
|
is(e, t = this.defaultCheckDepth) {
|
|
1367
1367
|
return this.refTypeCheck.is(e, t, !1);
|
|
@@ -1370,36 +1370,36 @@ var B = Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})), Te = B[k] =
|
|
|
1370
1370
|
return this.refTypeCheck.is(e, t, !0);
|
|
1371
1371
|
}
|
|
1372
1372
|
mergePartial(e, t) {
|
|
1373
|
-
|
|
1373
|
+
j(this, e, t);
|
|
1374
1374
|
}
|
|
1375
1375
|
fromBinary(e, t) {
|
|
1376
|
-
let n =
|
|
1376
|
+
let n = Ce(t);
|
|
1377
1377
|
return this.internalBinaryRead(n.readerFactory(e), e.byteLength, n);
|
|
1378
1378
|
}
|
|
1379
1379
|
fromJson(e, t) {
|
|
1380
|
-
return this.internalJsonRead(e,
|
|
1380
|
+
return this.internalJsonRead(e, ve(t));
|
|
1381
1381
|
}
|
|
1382
1382
|
fromJsonString(e, t) {
|
|
1383
1383
|
let n = JSON.parse(e);
|
|
1384
1384
|
return this.fromJson(n, t);
|
|
1385
1385
|
}
|
|
1386
1386
|
toJson(e, t) {
|
|
1387
|
-
return this.internalJsonWrite(e,
|
|
1387
|
+
return this.internalJsonWrite(e, ye(t));
|
|
1388
1388
|
}
|
|
1389
1389
|
toJsonString(e, t) {
|
|
1390
1390
|
let n = this.toJson(e, t);
|
|
1391
1391
|
return JSON.stringify(n, null, t?.prettySpaces ?? 0);
|
|
1392
1392
|
}
|
|
1393
1393
|
toBinary(e, t) {
|
|
1394
|
-
let n =
|
|
1394
|
+
let n = xe(t);
|
|
1395
1395
|
return this.internalBinaryWrite(e, n.writerFactory(), n).finish();
|
|
1396
1396
|
}
|
|
1397
|
-
internalJsonRead(t, n
|
|
1398
|
-
if (typeof
|
|
1399
|
-
let
|
|
1400
|
-
return this.refJsonReader.read(
|
|
1397
|
+
internalJsonRead(e, t, n) {
|
|
1398
|
+
if (typeof e == "object" && e && !Array.isArray(e)) {
|
|
1399
|
+
let r = n ?? this.create();
|
|
1400
|
+
return this.refJsonReader.read(e, r, t), r;
|
|
1401
1401
|
}
|
|
1402
|
-
throw Error(`Unable to parse message ${this.typeName} from JSON ${e
|
|
1402
|
+
throw Error(`Unable to parse message ${this.typeName} from JSON ${u(e)}.`);
|
|
1403
1403
|
}
|
|
1404
1404
|
internalJsonWrite(e, t) {
|
|
1405
1405
|
return this.refJsonWriter.write(e, t);
|
|
@@ -1427,32 +1427,32 @@ var B = Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})), Te = B[k] =
|
|
|
1427
1427
|
}
|
|
1428
1428
|
create(e) {
|
|
1429
1429
|
let t = globalThis.Object.create(this.messagePrototype);
|
|
1430
|
-
return t.code = "", t.content = "", e !== void 0 &&
|
|
1430
|
+
return t.code = "", t.content = "", e !== void 0 && j(this, t, e), t;
|
|
1431
1431
|
}
|
|
1432
|
-
internalBinaryRead(
|
|
1433
|
-
let
|
|
1434
|
-
for (;
|
|
1435
|
-
let [
|
|
1436
|
-
switch (
|
|
1432
|
+
internalBinaryRead(t, n, r, i) {
|
|
1433
|
+
let a = i ?? this.create(), o = t.pos + n;
|
|
1434
|
+
for (; t.pos < o;) {
|
|
1435
|
+
let [n, i] = t.tag();
|
|
1436
|
+
switch (n) {
|
|
1437
1437
|
case 1:
|
|
1438
|
-
|
|
1438
|
+
a.code = t.string();
|
|
1439
1439
|
break;
|
|
1440
1440
|
case 2:
|
|
1441
|
-
|
|
1441
|
+
a.content = t.string();
|
|
1442
1442
|
break;
|
|
1443
1443
|
default:
|
|
1444
|
-
let
|
|
1445
|
-
if (
|
|
1446
|
-
let s =
|
|
1447
|
-
|
|
1444
|
+
let o = r.readUnknownField;
|
|
1445
|
+
if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
|
|
1446
|
+
let s = t.skip(i);
|
|
1447
|
+
o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
|
|
1448
1448
|
}
|
|
1449
1449
|
}
|
|
1450
|
-
return
|
|
1450
|
+
return a;
|
|
1451
1451
|
}
|
|
1452
|
-
internalBinaryWrite(
|
|
1453
|
-
|
|
1454
|
-
let
|
|
1455
|
-
return
|
|
1452
|
+
internalBinaryWrite(n, r, i) {
|
|
1453
|
+
n.code !== "" && r.tag(1, t.LengthDelimited).string(n.code), n.content !== "" && r.tag(2, t.LengthDelimited).string(n.content);
|
|
1454
|
+
let a = i.writeUnknownFields;
|
|
1455
|
+
return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, n, r), r;
|
|
1456
1456
|
}
|
|
1457
1457
|
}(), Ee = new class extends V {
|
|
1458
1458
|
constructor() {
|
|
@@ -1527,64 +1527,64 @@ var B = Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})), Te = B[k] =
|
|
|
1527
1527
|
}
|
|
1528
1528
|
create(e) {
|
|
1529
1529
|
let t = globalThis.Object.create(this.messagePrototype);
|
|
1530
|
-
return t.identifier = "", t.name = [], t.displayMessage = [], t.alias = [], t.rules = [], t.genericKeys = [], t.type = "", t.linkedDataTypeIdentifiers = [], t.version = "", t.definitionSource = "", e !== void 0 &&
|
|
1530
|
+
return t.identifier = "", t.name = [], t.displayMessage = [], t.alias = [], t.rules = [], t.genericKeys = [], t.type = "", t.linkedDataTypeIdentifiers = [], t.version = "", t.definitionSource = "", e !== void 0 && j(this, t, e), t;
|
|
1531
1531
|
}
|
|
1532
|
-
internalBinaryRead(
|
|
1533
|
-
let
|
|
1534
|
-
for (;
|
|
1535
|
-
let [
|
|
1536
|
-
switch (
|
|
1532
|
+
internalBinaryRead(t, n, r, i) {
|
|
1533
|
+
let a = i ?? this.create(), o = t.pos + n;
|
|
1534
|
+
for (; t.pos < o;) {
|
|
1535
|
+
let [n, i] = t.tag();
|
|
1536
|
+
switch (n) {
|
|
1537
1537
|
case 1:
|
|
1538
|
-
|
|
1538
|
+
a.identifier = t.string();
|
|
1539
1539
|
break;
|
|
1540
1540
|
case 2:
|
|
1541
|
-
|
|
1541
|
+
a.name.push(H.internalBinaryRead(t, t.uint32(), r));
|
|
1542
1542
|
break;
|
|
1543
1543
|
case 3:
|
|
1544
|
-
|
|
1544
|
+
a.displayMessage.push(H.internalBinaryRead(t, t.uint32(), r));
|
|
1545
1545
|
break;
|
|
1546
1546
|
case 4:
|
|
1547
|
-
|
|
1547
|
+
a.alias.push(H.internalBinaryRead(t, t.uint32(), r));
|
|
1548
1548
|
break;
|
|
1549
1549
|
case 5:
|
|
1550
|
-
|
|
1550
|
+
a.rules.push(U.internalBinaryRead(t, t.uint32(), r));
|
|
1551
1551
|
break;
|
|
1552
1552
|
case 6:
|
|
1553
|
-
|
|
1553
|
+
a.genericKeys.push(t.string());
|
|
1554
1554
|
break;
|
|
1555
1555
|
case 7:
|
|
1556
|
-
|
|
1556
|
+
a.type = t.string();
|
|
1557
1557
|
break;
|
|
1558
1558
|
case 8:
|
|
1559
|
-
|
|
1559
|
+
a.linkedDataTypeIdentifiers.push(t.string());
|
|
1560
1560
|
break;
|
|
1561
1561
|
case 9:
|
|
1562
|
-
|
|
1562
|
+
a.version = t.string();
|
|
1563
1563
|
break;
|
|
1564
1564
|
case 10:
|
|
1565
|
-
|
|
1565
|
+
a.definitionSource = t.string();
|
|
1566
1566
|
break;
|
|
1567
1567
|
default:
|
|
1568
|
-
let
|
|
1569
|
-
if (
|
|
1570
|
-
let s =
|
|
1571
|
-
|
|
1568
|
+
let o = r.readUnknownField;
|
|
1569
|
+
if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
|
|
1570
|
+
let s = t.skip(i);
|
|
1571
|
+
o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
|
|
1572
1572
|
}
|
|
1573
1573
|
}
|
|
1574
|
-
return
|
|
1575
|
-
}
|
|
1576
|
-
internalBinaryWrite(
|
|
1577
|
-
|
|
1578
|
-
for (let
|
|
1579
|
-
for (let
|
|
1580
|
-
for (let
|
|
1581
|
-
for (let
|
|
1582
|
-
for (let
|
|
1583
|
-
|
|
1584
|
-
for (let
|
|
1585
|
-
|
|
1586
|
-
let
|
|
1587
|
-
return
|
|
1574
|
+
return a;
|
|
1575
|
+
}
|
|
1576
|
+
internalBinaryWrite(n, r, i) {
|
|
1577
|
+
n.identifier !== "" && r.tag(1, t.LengthDelimited).string(n.identifier);
|
|
1578
|
+
for (let e = 0; e < n.name.length; e++) H.internalBinaryWrite(n.name[e], r.tag(2, t.LengthDelimited).fork(), i).join();
|
|
1579
|
+
for (let e = 0; e < n.displayMessage.length; e++) H.internalBinaryWrite(n.displayMessage[e], r.tag(3, t.LengthDelimited).fork(), i).join();
|
|
1580
|
+
for (let e = 0; e < n.alias.length; e++) H.internalBinaryWrite(n.alias[e], r.tag(4, t.LengthDelimited).fork(), i).join();
|
|
1581
|
+
for (let e = 0; e < n.rules.length; e++) U.internalBinaryWrite(n.rules[e], r.tag(5, t.LengthDelimited).fork(), i).join();
|
|
1582
|
+
for (let e = 0; e < n.genericKeys.length; e++) r.tag(6, t.LengthDelimited).string(n.genericKeys[e]);
|
|
1583
|
+
n.type !== "" && r.tag(7, t.LengthDelimited).string(n.type);
|
|
1584
|
+
for (let e = 0; e < n.linkedDataTypeIdentifiers.length; e++) r.tag(8, t.LengthDelimited).string(n.linkedDataTypeIdentifiers[e]);
|
|
1585
|
+
n.version !== "" && r.tag(9, t.LengthDelimited).string(n.version), n.definitionSource !== "" && r.tag(10, t.LengthDelimited).string(n.definitionSource);
|
|
1586
|
+
let a = i.writeUnknownFields;
|
|
1587
|
+
return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, n, r), r;
|
|
1588
1588
|
}
|
|
1589
1589
|
}(), De = new class extends V {
|
|
1590
1590
|
constructor() {
|
|
@@ -1603,33 +1603,33 @@ var B = Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})), Te = B[k] =
|
|
|
1603
1603
|
}
|
|
1604
1604
|
create(e) {
|
|
1605
1605
|
let t = globalThis.Object.create(this.messagePrototype);
|
|
1606
|
-
return t.identifier = "", t.rules = [], e !== void 0 &&
|
|
1606
|
+
return t.identifier = "", t.rules = [], e !== void 0 && j(this, t, e), t;
|
|
1607
1607
|
}
|
|
1608
|
-
internalBinaryRead(
|
|
1609
|
-
let
|
|
1610
|
-
for (;
|
|
1611
|
-
let [
|
|
1612
|
-
switch (
|
|
1608
|
+
internalBinaryRead(t, n, r, i) {
|
|
1609
|
+
let a = i ?? this.create(), o = t.pos + n;
|
|
1610
|
+
for (; t.pos < o;) {
|
|
1611
|
+
let [n, i] = t.tag();
|
|
1612
|
+
switch (n) {
|
|
1613
1613
|
case 1:
|
|
1614
|
-
|
|
1614
|
+
a.identifier = t.string();
|
|
1615
1615
|
break;
|
|
1616
1616
|
case 2:
|
|
1617
|
-
|
|
1617
|
+
a.rules.push(W.internalBinaryRead(t, t.uint32(), r));
|
|
1618
1618
|
break;
|
|
1619
1619
|
default:
|
|
1620
|
-
let
|
|
1621
|
-
if (
|
|
1622
|
-
let s =
|
|
1623
|
-
|
|
1620
|
+
let o = r.readUnknownField;
|
|
1621
|
+
if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
|
|
1622
|
+
let s = t.skip(i);
|
|
1623
|
+
o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
|
|
1624
1624
|
}
|
|
1625
1625
|
}
|
|
1626
|
-
return
|
|
1626
|
+
return a;
|
|
1627
1627
|
}
|
|
1628
|
-
internalBinaryWrite(
|
|
1629
|
-
|
|
1630
|
-
for (let
|
|
1631
|
-
let
|
|
1632
|
-
return
|
|
1628
|
+
internalBinaryWrite(n, r, i) {
|
|
1629
|
+
n.identifier !== "" && r.tag(1, t.LengthDelimited).string(n.identifier);
|
|
1630
|
+
for (let e = 0; e < n.rules.length; e++) W.internalBinaryWrite(n.rules[e], r.tag(2, t.LengthDelimited).fork(), i).join();
|
|
1631
|
+
let a = i.writeUnknownFields;
|
|
1632
|
+
return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, n, r), r;
|
|
1633
1633
|
}
|
|
1634
1634
|
}(), U = new class extends V {
|
|
1635
1635
|
constructor() {
|
|
@@ -1649,38 +1649,38 @@ var B = Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})), Te = B[k] =
|
|
|
1649
1649
|
}
|
|
1650
1650
|
create(e) {
|
|
1651
1651
|
let t = globalThis.Object.create(this.messagePrototype);
|
|
1652
|
-
return t.config = { oneofKind: void 0 }, e !== void 0 &&
|
|
1652
|
+
return t.config = { oneofKind: void 0 }, e !== void 0 && j(this, t, e), t;
|
|
1653
1653
|
}
|
|
1654
|
-
internalBinaryRead(
|
|
1655
|
-
let
|
|
1656
|
-
for (;
|
|
1657
|
-
let [
|
|
1658
|
-
switch (
|
|
1654
|
+
internalBinaryRead(t, n, r, i) {
|
|
1655
|
+
let a = i ?? this.create(), o = t.pos + n;
|
|
1656
|
+
for (; t.pos < o;) {
|
|
1657
|
+
let [n, i] = t.tag();
|
|
1658
|
+
switch (n) {
|
|
1659
1659
|
case 1:
|
|
1660
|
-
|
|
1660
|
+
a.config = {
|
|
1661
1661
|
oneofKind: "numberRange",
|
|
1662
|
-
numberRange: G.internalBinaryRead(
|
|
1662
|
+
numberRange: G.internalBinaryRead(t, t.uint32(), r, a.config.numberRange)
|
|
1663
1663
|
};
|
|
1664
1664
|
break;
|
|
1665
1665
|
case 2:
|
|
1666
|
-
|
|
1666
|
+
a.config = {
|
|
1667
1667
|
oneofKind: "regex",
|
|
1668
|
-
regex: K.internalBinaryRead(
|
|
1668
|
+
regex: K.internalBinaryRead(t, t.uint32(), r, a.config.regex)
|
|
1669
1669
|
};
|
|
1670
1670
|
break;
|
|
1671
1671
|
default:
|
|
1672
|
-
let
|
|
1673
|
-
if (
|
|
1674
|
-
let s =
|
|
1675
|
-
|
|
1672
|
+
let o = r.readUnknownField;
|
|
1673
|
+
if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
|
|
1674
|
+
let s = t.skip(i);
|
|
1675
|
+
o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
|
|
1676
1676
|
}
|
|
1677
1677
|
}
|
|
1678
|
-
return
|
|
1678
|
+
return a;
|
|
1679
1679
|
}
|
|
1680
|
-
internalBinaryWrite(
|
|
1681
|
-
|
|
1682
|
-
let
|
|
1683
|
-
return
|
|
1680
|
+
internalBinaryWrite(n, r, i) {
|
|
1681
|
+
n.config.oneofKind === "numberRange" && G.internalBinaryWrite(n.config.numberRange, r.tag(1, t.LengthDelimited).fork(), i).join(), n.config.oneofKind === "regex" && K.internalBinaryWrite(n.config.regex, r.tag(2, t.LengthDelimited).fork(), i).join();
|
|
1682
|
+
let a = i.writeUnknownFields;
|
|
1683
|
+
return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, n, r), r;
|
|
1684
1684
|
}
|
|
1685
1685
|
}(), W = new class extends V {
|
|
1686
1686
|
constructor() {
|
|
@@ -1700,38 +1700,38 @@ var B = Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})), Te = B[k] =
|
|
|
1700
1700
|
}
|
|
1701
1701
|
create(e) {
|
|
1702
1702
|
let t = globalThis.Object.create(this.messagePrototype);
|
|
1703
|
-
return t.config = { oneofKind: void 0 }, e !== void 0 &&
|
|
1703
|
+
return t.config = { oneofKind: void 0 }, e !== void 0 && j(this, t, e), t;
|
|
1704
1704
|
}
|
|
1705
|
-
internalBinaryRead(
|
|
1706
|
-
let
|
|
1707
|
-
for (;
|
|
1708
|
-
let [
|
|
1709
|
-
switch (
|
|
1705
|
+
internalBinaryRead(t, n, r, i) {
|
|
1706
|
+
let a = i ?? this.create(), o = t.pos + n;
|
|
1707
|
+
for (; t.pos < o;) {
|
|
1708
|
+
let [n, i] = t.tag();
|
|
1709
|
+
switch (n) {
|
|
1710
1710
|
case 1:
|
|
1711
|
-
|
|
1711
|
+
a.config = {
|
|
1712
1712
|
oneofKind: "numberRange",
|
|
1713
|
-
numberRange: G.internalBinaryRead(
|
|
1713
|
+
numberRange: G.internalBinaryRead(t, t.uint32(), r, a.config.numberRange)
|
|
1714
1714
|
};
|
|
1715
1715
|
break;
|
|
1716
1716
|
case 2:
|
|
1717
|
-
|
|
1717
|
+
a.config = {
|
|
1718
1718
|
oneofKind: "regex",
|
|
1719
|
-
regex: K.internalBinaryRead(
|
|
1719
|
+
regex: K.internalBinaryRead(t, t.uint32(), r, a.config.regex)
|
|
1720
1720
|
};
|
|
1721
1721
|
break;
|
|
1722
1722
|
default:
|
|
1723
|
-
let
|
|
1724
|
-
if (
|
|
1725
|
-
let s =
|
|
1726
|
-
|
|
1723
|
+
let o = r.readUnknownField;
|
|
1724
|
+
if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
|
|
1725
|
+
let s = t.skip(i);
|
|
1726
|
+
o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
|
|
1727
1727
|
}
|
|
1728
1728
|
}
|
|
1729
|
-
return
|
|
1729
|
+
return a;
|
|
1730
1730
|
}
|
|
1731
|
-
internalBinaryWrite(
|
|
1732
|
-
|
|
1733
|
-
let
|
|
1734
|
-
return
|
|
1731
|
+
internalBinaryWrite(n, r, i) {
|
|
1732
|
+
n.config.oneofKind === "numberRange" && G.internalBinaryWrite(n.config.numberRange, r.tag(1, t.LengthDelimited).fork(), i).join(), n.config.oneofKind === "regex" && K.internalBinaryWrite(n.config.regex, r.tag(2, t.LengthDelimited).fork(), i).join();
|
|
1733
|
+
let a = i.writeUnknownFields;
|
|
1734
|
+
return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, n, r), r;
|
|
1735
1735
|
}
|
|
1736
1736
|
}(), G = new class extends V {
|
|
1737
1737
|
constructor() {
|
|
@@ -1762,35 +1762,35 @@ var B = Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})), Te = B[k] =
|
|
|
1762
1762
|
}
|
|
1763
1763
|
create(e) {
|
|
1764
1764
|
let t = globalThis.Object.create(this.messagePrototype);
|
|
1765
|
-
return t.from = 0n, t.to = 0n, e !== void 0 &&
|
|
1765
|
+
return t.from = 0n, t.to = 0n, e !== void 0 && j(this, t, e), t;
|
|
1766
1766
|
}
|
|
1767
|
-
internalBinaryRead(
|
|
1768
|
-
let
|
|
1769
|
-
for (;
|
|
1770
|
-
let [
|
|
1771
|
-
switch (
|
|
1767
|
+
internalBinaryRead(t, n, r, i) {
|
|
1768
|
+
let a = i ?? this.create(), o = t.pos + n;
|
|
1769
|
+
for (; t.pos < o;) {
|
|
1770
|
+
let [n, i] = t.tag();
|
|
1771
|
+
switch (n) {
|
|
1772
1772
|
case 1:
|
|
1773
|
-
|
|
1773
|
+
a.from = t.int64().toBigInt();
|
|
1774
1774
|
break;
|
|
1775
1775
|
case 2:
|
|
1776
|
-
|
|
1776
|
+
a.to = t.int64().toBigInt();
|
|
1777
1777
|
break;
|
|
1778
1778
|
case 3:
|
|
1779
|
-
|
|
1779
|
+
a.steps = t.int64().toBigInt();
|
|
1780
1780
|
break;
|
|
1781
1781
|
default:
|
|
1782
|
-
let
|
|
1783
|
-
if (
|
|
1784
|
-
let s =
|
|
1785
|
-
|
|
1782
|
+
let o = r.readUnknownField;
|
|
1783
|
+
if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
|
|
1784
|
+
let s = t.skip(i);
|
|
1785
|
+
o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
|
|
1786
1786
|
}
|
|
1787
1787
|
}
|
|
1788
|
-
return
|
|
1788
|
+
return a;
|
|
1789
1789
|
}
|
|
1790
|
-
internalBinaryWrite(
|
|
1791
|
-
|
|
1792
|
-
let
|
|
1793
|
-
return
|
|
1790
|
+
internalBinaryWrite(n, r, i) {
|
|
1791
|
+
n.from !== 0n && r.tag(1, t.Varint).int64(n.from), n.to !== 0n && r.tag(2, t.Varint).int64(n.to), n.steps !== void 0 && r.tag(3, t.Varint).int64(n.steps);
|
|
1792
|
+
let a = i.writeUnknownFields;
|
|
1793
|
+
return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, n, r), r;
|
|
1794
1794
|
}
|
|
1795
1795
|
}(), K = new class extends V {
|
|
1796
1796
|
constructor() {
|
|
@@ -1803,29 +1803,29 @@ var B = Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})), Te = B[k] =
|
|
|
1803
1803
|
}
|
|
1804
1804
|
create(e) {
|
|
1805
1805
|
let t = globalThis.Object.create(this.messagePrototype);
|
|
1806
|
-
return t.pattern = "", e !== void 0 &&
|
|
1806
|
+
return t.pattern = "", e !== void 0 && j(this, t, e), t;
|
|
1807
1807
|
}
|
|
1808
|
-
internalBinaryRead(
|
|
1809
|
-
let
|
|
1810
|
-
for (;
|
|
1811
|
-
let [
|
|
1812
|
-
switch (
|
|
1808
|
+
internalBinaryRead(t, n, r, i) {
|
|
1809
|
+
let a = i ?? this.create(), o = t.pos + n;
|
|
1810
|
+
for (; t.pos < o;) {
|
|
1811
|
+
let [n, i] = t.tag();
|
|
1812
|
+
switch (n) {
|
|
1813
1813
|
case 1:
|
|
1814
|
-
|
|
1814
|
+
a.pattern = t.string();
|
|
1815
1815
|
break;
|
|
1816
1816
|
default:
|
|
1817
|
-
let
|
|
1818
|
-
if (
|
|
1819
|
-
let s =
|
|
1820
|
-
|
|
1817
|
+
let o = r.readUnknownField;
|
|
1818
|
+
if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
|
|
1819
|
+
let s = t.skip(i);
|
|
1820
|
+
o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
|
|
1821
1821
|
}
|
|
1822
1822
|
}
|
|
1823
|
-
return
|
|
1823
|
+
return a;
|
|
1824
1824
|
}
|
|
1825
|
-
internalBinaryWrite(
|
|
1826
|
-
|
|
1827
|
-
let
|
|
1828
|
-
return
|
|
1825
|
+
internalBinaryWrite(n, r, i) {
|
|
1826
|
+
n.pattern !== "" && r.tag(1, t.LengthDelimited).string(n.pattern);
|
|
1827
|
+
let a = i.writeUnknownFields;
|
|
1828
|
+
return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, n, r), r;
|
|
1829
1829
|
}
|
|
1830
1830
|
}(), q = /* @__PURE__ */ function(e) {
|
|
1831
1831
|
return e[e.NULL_VALUE = 0] = "NULL_VALUE", e;
|
|
@@ -1844,24 +1844,24 @@ var B = Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})), Te = B[k] =
|
|
|
1844
1844
|
}
|
|
1845
1845
|
create(e) {
|
|
1846
1846
|
let t = globalThis.Object.create(this.messagePrototype);
|
|
1847
|
-
return t.fields = {}, e !== void 0 &&
|
|
1847
|
+
return t.fields = {}, e !== void 0 && j(this, t, e), t;
|
|
1848
1848
|
}
|
|
1849
|
-
internalBinaryRead(
|
|
1850
|
-
let
|
|
1851
|
-
for (;
|
|
1852
|
-
let [
|
|
1853
|
-
switch (
|
|
1849
|
+
internalBinaryRead(t, n, r, i) {
|
|
1850
|
+
let a = i ?? this.create(), o = t.pos + n;
|
|
1851
|
+
for (; t.pos < o;) {
|
|
1852
|
+
let [n, i] = t.tag();
|
|
1853
|
+
switch (n) {
|
|
1854
1854
|
case 1:
|
|
1855
|
-
this.binaryReadMap1(
|
|
1855
|
+
this.binaryReadMap1(a.fields, t, r);
|
|
1856
1856
|
break;
|
|
1857
1857
|
default:
|
|
1858
|
-
let
|
|
1859
|
-
if (
|
|
1860
|
-
let s =
|
|
1861
|
-
|
|
1858
|
+
let o = r.readUnknownField;
|
|
1859
|
+
if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
|
|
1860
|
+
let s = t.skip(i);
|
|
1861
|
+
o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
|
|
1862
1862
|
}
|
|
1863
1863
|
}
|
|
1864
|
-
return
|
|
1864
|
+
return a;
|
|
1865
1865
|
}
|
|
1866
1866
|
binaryReadMap1(e, t, n) {
|
|
1867
1867
|
let r = t.uint32(), i = t.pos + r, a, o;
|
|
@@ -1879,10 +1879,10 @@ var B = Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})), Te = B[k] =
|
|
|
1879
1879
|
}
|
|
1880
1880
|
e[a ?? ""] = o ?? Y.create();
|
|
1881
1881
|
}
|
|
1882
|
-
internalBinaryWrite(
|
|
1883
|
-
for (let
|
|
1884
|
-
let
|
|
1885
|
-
return
|
|
1882
|
+
internalBinaryWrite(n, r, i) {
|
|
1883
|
+
for (let e of globalThis.Object.keys(n.fields)) r.tag(1, t.LengthDelimited).fork().tag(1, t.LengthDelimited).string(e), r.tag(2, t.LengthDelimited).fork(), Y.internalBinaryWrite(n.fields[e], r, i), r.join().join();
|
|
1884
|
+
let a = i.writeUnknownFields;
|
|
1885
|
+
return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, n, r), r;
|
|
1886
1886
|
}
|
|
1887
1887
|
}(), Y = new class extends V {
|
|
1888
1888
|
constructor() {
|
|
@@ -1933,62 +1933,62 @@ var B = Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})), Te = B[k] =
|
|
|
1933
1933
|
}
|
|
1934
1934
|
create(e) {
|
|
1935
1935
|
let t = globalThis.Object.create(this.messagePrototype);
|
|
1936
|
-
return t.kind = { oneofKind: void 0 }, e !== void 0 &&
|
|
1936
|
+
return t.kind = { oneofKind: void 0 }, e !== void 0 && j(this, t, e), t;
|
|
1937
1937
|
}
|
|
1938
|
-
internalBinaryRead(
|
|
1939
|
-
let
|
|
1940
|
-
for (;
|
|
1941
|
-
let [
|
|
1942
|
-
switch (
|
|
1938
|
+
internalBinaryRead(t, n, r, i) {
|
|
1939
|
+
let a = i ?? this.create(), o = t.pos + n;
|
|
1940
|
+
for (; t.pos < o;) {
|
|
1941
|
+
let [n, i] = t.tag();
|
|
1942
|
+
switch (n) {
|
|
1943
1943
|
case 1:
|
|
1944
|
-
|
|
1944
|
+
a.kind = {
|
|
1945
1945
|
oneofKind: "nullValue",
|
|
1946
|
-
nullValue:
|
|
1946
|
+
nullValue: t.int32()
|
|
1947
1947
|
};
|
|
1948
1948
|
break;
|
|
1949
1949
|
case 2:
|
|
1950
|
-
|
|
1950
|
+
a.kind = {
|
|
1951
1951
|
oneofKind: "numberValue",
|
|
1952
|
-
numberValue: X.internalBinaryRead(
|
|
1952
|
+
numberValue: X.internalBinaryRead(t, t.uint32(), r, a.kind.numberValue)
|
|
1953
1953
|
};
|
|
1954
1954
|
break;
|
|
1955
1955
|
case 3:
|
|
1956
|
-
|
|
1956
|
+
a.kind = {
|
|
1957
1957
|
oneofKind: "stringValue",
|
|
1958
|
-
stringValue:
|
|
1958
|
+
stringValue: t.string()
|
|
1959
1959
|
};
|
|
1960
1960
|
break;
|
|
1961
1961
|
case 4:
|
|
1962
|
-
|
|
1962
|
+
a.kind = {
|
|
1963
1963
|
oneofKind: "boolValue",
|
|
1964
|
-
boolValue:
|
|
1964
|
+
boolValue: t.bool()
|
|
1965
1965
|
};
|
|
1966
1966
|
break;
|
|
1967
1967
|
case 5:
|
|
1968
|
-
|
|
1968
|
+
a.kind = {
|
|
1969
1969
|
oneofKind: "structValue",
|
|
1970
|
-
structValue: J.internalBinaryRead(
|
|
1970
|
+
structValue: J.internalBinaryRead(t, t.uint32(), r, a.kind.structValue)
|
|
1971
1971
|
};
|
|
1972
1972
|
break;
|
|
1973
1973
|
case 6:
|
|
1974
|
-
|
|
1974
|
+
a.kind = {
|
|
1975
1975
|
oneofKind: "listValue",
|
|
1976
|
-
listValue: Z.internalBinaryRead(
|
|
1976
|
+
listValue: Z.internalBinaryRead(t, t.uint32(), r, a.kind.listValue)
|
|
1977
1977
|
};
|
|
1978
1978
|
break;
|
|
1979
1979
|
default:
|
|
1980
|
-
let
|
|
1981
|
-
if (
|
|
1982
|
-
let s =
|
|
1983
|
-
|
|
1980
|
+
let o = r.readUnknownField;
|
|
1981
|
+
if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
|
|
1982
|
+
let s = t.skip(i);
|
|
1983
|
+
o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
|
|
1984
1984
|
}
|
|
1985
1985
|
}
|
|
1986
|
-
return
|
|
1986
|
+
return a;
|
|
1987
1987
|
}
|
|
1988
|
-
internalBinaryWrite(
|
|
1989
|
-
|
|
1990
|
-
let
|
|
1991
|
-
return
|
|
1988
|
+
internalBinaryWrite(n, r, i) {
|
|
1989
|
+
n.kind.oneofKind === "nullValue" && r.tag(1, t.Varint).int32(n.kind.nullValue), n.kind.oneofKind === "numberValue" && X.internalBinaryWrite(n.kind.numberValue, r.tag(2, t.LengthDelimited).fork(), i).join(), n.kind.oneofKind === "stringValue" && r.tag(3, t.LengthDelimited).string(n.kind.stringValue), n.kind.oneofKind === "boolValue" && r.tag(4, t.Varint).bool(n.kind.boolValue), n.kind.oneofKind === "structValue" && J.internalBinaryWrite(n.kind.structValue, r.tag(5, t.LengthDelimited).fork(), i).join(), n.kind.oneofKind === "listValue" && Z.internalBinaryWrite(n.kind.listValue, r.tag(6, t.LengthDelimited).fork(), i).join();
|
|
1990
|
+
let a = i.writeUnknownFields;
|
|
1991
|
+
return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, n, r), r;
|
|
1992
1992
|
}
|
|
1993
1993
|
}(), X = new class extends V {
|
|
1994
1994
|
constructor() {
|
|
@@ -2009,38 +2009,38 @@ var B = Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})), Te = B[k] =
|
|
|
2009
2009
|
}
|
|
2010
2010
|
create(e) {
|
|
2011
2011
|
let t = globalThis.Object.create(this.messagePrototype);
|
|
2012
|
-
return t.number = { oneofKind: void 0 }, e !== void 0 &&
|
|
2012
|
+
return t.number = { oneofKind: void 0 }, e !== void 0 && j(this, t, e), t;
|
|
2013
2013
|
}
|
|
2014
|
-
internalBinaryRead(
|
|
2015
|
-
let
|
|
2016
|
-
for (;
|
|
2017
|
-
let [
|
|
2018
|
-
switch (
|
|
2014
|
+
internalBinaryRead(t, n, r, i) {
|
|
2015
|
+
let a = i ?? this.create(), o = t.pos + n;
|
|
2016
|
+
for (; t.pos < o;) {
|
|
2017
|
+
let [n, i] = t.tag();
|
|
2018
|
+
switch (n) {
|
|
2019
2019
|
case 1:
|
|
2020
|
-
|
|
2020
|
+
a.number = {
|
|
2021
2021
|
oneofKind: "integer",
|
|
2022
|
-
integer:
|
|
2022
|
+
integer: t.int64().toBigInt()
|
|
2023
2023
|
};
|
|
2024
2024
|
break;
|
|
2025
2025
|
case 2:
|
|
2026
|
-
|
|
2026
|
+
a.number = {
|
|
2027
2027
|
oneofKind: "float",
|
|
2028
|
-
float:
|
|
2028
|
+
float: t.double()
|
|
2029
2029
|
};
|
|
2030
2030
|
break;
|
|
2031
2031
|
default:
|
|
2032
|
-
let
|
|
2033
|
-
if (
|
|
2034
|
-
let s =
|
|
2035
|
-
|
|
2032
|
+
let o = r.readUnknownField;
|
|
2033
|
+
if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
|
|
2034
|
+
let s = t.skip(i);
|
|
2035
|
+
o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
|
|
2036
2036
|
}
|
|
2037
2037
|
}
|
|
2038
|
-
return
|
|
2038
|
+
return a;
|
|
2039
2039
|
}
|
|
2040
|
-
internalBinaryWrite(
|
|
2041
|
-
|
|
2042
|
-
let
|
|
2043
|
-
return
|
|
2040
|
+
internalBinaryWrite(n, r, i) {
|
|
2041
|
+
n.number.oneofKind === "integer" && r.tag(1, t.Varint).int64(n.number.integer), n.number.oneofKind === "float" && r.tag(2, t.Bit64).double(n.number.float);
|
|
2042
|
+
let a = i.writeUnknownFields;
|
|
2043
|
+
return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, n, r), r;
|
|
2044
2044
|
}
|
|
2045
2045
|
}(), Z = new class extends V {
|
|
2046
2046
|
constructor() {
|
|
@@ -2054,29 +2054,29 @@ var B = Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})), Te = B[k] =
|
|
|
2054
2054
|
}
|
|
2055
2055
|
create(e) {
|
|
2056
2056
|
let t = globalThis.Object.create(this.messagePrototype);
|
|
2057
|
-
return t.values = [], e !== void 0 &&
|
|
2057
|
+
return t.values = [], e !== void 0 && j(this, t, e), t;
|
|
2058
2058
|
}
|
|
2059
|
-
internalBinaryRead(
|
|
2060
|
-
let
|
|
2061
|
-
for (;
|
|
2062
|
-
let [
|
|
2063
|
-
switch (
|
|
2059
|
+
internalBinaryRead(t, n, r, i) {
|
|
2060
|
+
let a = i ?? this.create(), o = t.pos + n;
|
|
2061
|
+
for (; t.pos < o;) {
|
|
2062
|
+
let [n, i] = t.tag();
|
|
2063
|
+
switch (n) {
|
|
2064
2064
|
case 1:
|
|
2065
|
-
|
|
2065
|
+
a.values.push(Y.internalBinaryRead(t, t.uint32(), r));
|
|
2066
2066
|
break;
|
|
2067
2067
|
default:
|
|
2068
|
-
let
|
|
2069
|
-
if (
|
|
2070
|
-
let s =
|
|
2071
|
-
|
|
2068
|
+
let o = r.readUnknownField;
|
|
2069
|
+
if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
|
|
2070
|
+
let s = t.skip(i);
|
|
2071
|
+
o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
|
|
2072
2072
|
}
|
|
2073
2073
|
}
|
|
2074
|
-
return
|
|
2074
|
+
return a;
|
|
2075
2075
|
}
|
|
2076
|
-
internalBinaryWrite(
|
|
2077
|
-
for (let
|
|
2078
|
-
let
|
|
2079
|
-
return
|
|
2076
|
+
internalBinaryWrite(n, r, i) {
|
|
2077
|
+
for (let e = 0; e < n.values.length; e++) Y.internalBinaryWrite(n.values[e], r.tag(1, t.LengthDelimited).fork(), i).join();
|
|
2078
|
+
let a = i.writeUnknownFields;
|
|
2079
|
+
return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, n, r), r;
|
|
2080
2080
|
}
|
|
2081
2081
|
}(), Oe = /* @__PURE__ */ function(e) {
|
|
2082
2082
|
return e[e.UNKNOWN = 0] = "UNKNOWN", e[e.NONE = 1] = "NONE", e[e.PROJECT = 2] = "PROJECT", e;
|
|
@@ -2179,78 +2179,78 @@ var B = Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})), Te = B[k] =
|
|
|
2179
2179
|
}
|
|
2180
2180
|
create(e) {
|
|
2181
2181
|
let t = globalThis.Object.create(this.messagePrototype);
|
|
2182
|
-
return t.identifier = "", t.settings = [], t.editable = !1, t.name = [], t.description = [], t.documentation = [], t.displayMessage = [], t.alias = [], t.version = "", t.displayIcon = "", t.linkedDataTypeIdentifiers = [], t.signature = "", t.runtimeIdentifier = "", e !== void 0 &&
|
|
2182
|
+
return t.identifier = "", t.settings = [], t.editable = !1, t.name = [], t.description = [], t.documentation = [], t.displayMessage = [], t.alias = [], t.version = "", t.displayIcon = "", t.linkedDataTypeIdentifiers = [], t.signature = "", t.runtimeIdentifier = "", e !== void 0 && j(this, t, e), t;
|
|
2183
2183
|
}
|
|
2184
|
-
internalBinaryRead(
|
|
2185
|
-
let
|
|
2186
|
-
for (;
|
|
2187
|
-
let [
|
|
2188
|
-
switch (
|
|
2184
|
+
internalBinaryRead(t, n, r, i) {
|
|
2185
|
+
let a = i ?? this.create(), o = t.pos + n;
|
|
2186
|
+
for (; t.pos < o;) {
|
|
2187
|
+
let [n, i] = t.tag();
|
|
2188
|
+
switch (n) {
|
|
2189
2189
|
case 1:
|
|
2190
|
-
|
|
2190
|
+
a.identifier = t.string();
|
|
2191
2191
|
break;
|
|
2192
2192
|
case 2:
|
|
2193
|
-
|
|
2193
|
+
a.settings.push(Q.internalBinaryRead(t, t.uint32(), r));
|
|
2194
2194
|
break;
|
|
2195
2195
|
case 3:
|
|
2196
|
-
|
|
2196
|
+
a.editable = t.bool();
|
|
2197
2197
|
break;
|
|
2198
2198
|
case 4:
|
|
2199
|
-
|
|
2199
|
+
a.name.push(H.internalBinaryRead(t, t.uint32(), r));
|
|
2200
2200
|
break;
|
|
2201
2201
|
case 5:
|
|
2202
|
-
|
|
2202
|
+
a.description.push(H.internalBinaryRead(t, t.uint32(), r));
|
|
2203
2203
|
break;
|
|
2204
2204
|
case 6:
|
|
2205
|
-
|
|
2205
|
+
a.documentation.push(H.internalBinaryRead(t, t.uint32(), r));
|
|
2206
2206
|
break;
|
|
2207
2207
|
case 7:
|
|
2208
|
-
|
|
2208
|
+
a.displayMessage.push(H.internalBinaryRead(t, t.uint32(), r));
|
|
2209
2209
|
break;
|
|
2210
2210
|
case 8:
|
|
2211
|
-
|
|
2211
|
+
a.alias.push(H.internalBinaryRead(t, t.uint32(), r));
|
|
2212
2212
|
break;
|
|
2213
2213
|
case 9:
|
|
2214
|
-
|
|
2214
|
+
a.version = t.string();
|
|
2215
2215
|
break;
|
|
2216
2216
|
case 10:
|
|
2217
|
-
|
|
2217
|
+
a.displayIcon = t.string();
|
|
2218
2218
|
break;
|
|
2219
2219
|
case 11:
|
|
2220
|
-
|
|
2220
|
+
a.definitionSource = t.string();
|
|
2221
2221
|
break;
|
|
2222
2222
|
case 12:
|
|
2223
|
-
|
|
2223
|
+
a.linkedDataTypeIdentifiers.push(t.string());
|
|
2224
2224
|
break;
|
|
2225
2225
|
case 13:
|
|
2226
|
-
|
|
2226
|
+
a.signature = t.string();
|
|
2227
2227
|
break;
|
|
2228
2228
|
case 14:
|
|
2229
|
-
|
|
2229
|
+
a.runtimeIdentifier = t.string();
|
|
2230
2230
|
break;
|
|
2231
2231
|
default:
|
|
2232
|
-
let
|
|
2233
|
-
if (
|
|
2234
|
-
let s =
|
|
2235
|
-
|
|
2232
|
+
let o = r.readUnknownField;
|
|
2233
|
+
if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
|
|
2234
|
+
let s = t.skip(i);
|
|
2235
|
+
o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
|
|
2236
2236
|
}
|
|
2237
2237
|
}
|
|
2238
|
-
return
|
|
2239
|
-
}
|
|
2240
|
-
internalBinaryWrite(
|
|
2241
|
-
|
|
2242
|
-
for (let
|
|
2243
|
-
|
|
2244
|
-
for (let
|
|
2245
|
-
for (let
|
|
2246
|
-
for (let
|
|
2247
|
-
for (let
|
|
2248
|
-
for (let
|
|
2249
|
-
|
|
2250
|
-
for (let
|
|
2251
|
-
|
|
2252
|
-
let
|
|
2253
|
-
return
|
|
2238
|
+
return a;
|
|
2239
|
+
}
|
|
2240
|
+
internalBinaryWrite(n, r, i) {
|
|
2241
|
+
n.identifier !== "" && r.tag(1, t.LengthDelimited).string(n.identifier);
|
|
2242
|
+
for (let e = 0; e < n.settings.length; e++) Q.internalBinaryWrite(n.settings[e], r.tag(2, t.LengthDelimited).fork(), i).join();
|
|
2243
|
+
n.editable !== !1 && r.tag(3, t.Varint).bool(n.editable);
|
|
2244
|
+
for (let e = 0; e < n.name.length; e++) H.internalBinaryWrite(n.name[e], r.tag(4, t.LengthDelimited).fork(), i).join();
|
|
2245
|
+
for (let e = 0; e < n.description.length; e++) H.internalBinaryWrite(n.description[e], r.tag(5, t.LengthDelimited).fork(), i).join();
|
|
2246
|
+
for (let e = 0; e < n.documentation.length; e++) H.internalBinaryWrite(n.documentation[e], r.tag(6, t.LengthDelimited).fork(), i).join();
|
|
2247
|
+
for (let e = 0; e < n.displayMessage.length; e++) H.internalBinaryWrite(n.displayMessage[e], r.tag(7, t.LengthDelimited).fork(), i).join();
|
|
2248
|
+
for (let e = 0; e < n.alias.length; e++) H.internalBinaryWrite(n.alias[e], r.tag(8, t.LengthDelimited).fork(), i).join();
|
|
2249
|
+
n.version !== "" && r.tag(9, t.LengthDelimited).string(n.version), n.displayIcon !== "" && r.tag(10, t.LengthDelimited).string(n.displayIcon), n.definitionSource !== void 0 && r.tag(11, t.LengthDelimited).string(n.definitionSource);
|
|
2250
|
+
for (let e = 0; e < n.linkedDataTypeIdentifiers.length; e++) r.tag(12, t.LengthDelimited).string(n.linkedDataTypeIdentifiers[e]);
|
|
2251
|
+
n.signature !== "" && r.tag(13, t.LengthDelimited).string(n.signature), n.runtimeIdentifier !== "" && r.tag(14, t.LengthDelimited).string(n.runtimeIdentifier);
|
|
2252
|
+
let a = i.writeUnknownFields;
|
|
2253
|
+
return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, n, r), r;
|
|
2254
2254
|
}
|
|
2255
2255
|
}(), Q = new class extends V {
|
|
2256
2256
|
constructor() {
|
|
@@ -2305,50 +2305,50 @@ var B = Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})), Te = B[k] =
|
|
|
2305
2305
|
}
|
|
2306
2306
|
create(e) {
|
|
2307
2307
|
let t = globalThis.Object.create(this.messagePrototype);
|
|
2308
|
-
return t.identifier = "", t.unique = 0, t.name = [], t.description = [], e !== void 0 &&
|
|
2308
|
+
return t.identifier = "", t.unique = 0, t.name = [], t.description = [], e !== void 0 && j(this, t, e), t;
|
|
2309
2309
|
}
|
|
2310
|
-
internalBinaryRead(
|
|
2311
|
-
let
|
|
2312
|
-
for (;
|
|
2313
|
-
let [
|
|
2314
|
-
switch (
|
|
2310
|
+
internalBinaryRead(t, n, r, i) {
|
|
2311
|
+
let a = i ?? this.create(), o = t.pos + n;
|
|
2312
|
+
for (; t.pos < o;) {
|
|
2313
|
+
let [n, i] = t.tag();
|
|
2314
|
+
switch (n) {
|
|
2315
2315
|
case 1:
|
|
2316
|
-
|
|
2316
|
+
a.identifier = t.string();
|
|
2317
2317
|
break;
|
|
2318
2318
|
case 2:
|
|
2319
|
-
|
|
2319
|
+
a.unique = t.int32();
|
|
2320
2320
|
break;
|
|
2321
2321
|
case 3:
|
|
2322
|
-
|
|
2322
|
+
a.defaultValue = Y.internalBinaryRead(t, t.uint32(), r, a.defaultValue);
|
|
2323
2323
|
break;
|
|
2324
2324
|
case 4:
|
|
2325
|
-
|
|
2325
|
+
a.name.push(H.internalBinaryRead(t, t.uint32(), r));
|
|
2326
2326
|
break;
|
|
2327
2327
|
case 5:
|
|
2328
|
-
|
|
2328
|
+
a.description.push(H.internalBinaryRead(t, t.uint32(), r));
|
|
2329
2329
|
break;
|
|
2330
2330
|
case 6:
|
|
2331
|
-
|
|
2331
|
+
a.optional = t.bool();
|
|
2332
2332
|
break;
|
|
2333
2333
|
case 7:
|
|
2334
|
-
|
|
2334
|
+
a.hidden = t.bool();
|
|
2335
2335
|
break;
|
|
2336
2336
|
default:
|
|
2337
|
-
let
|
|
2338
|
-
if (
|
|
2339
|
-
let s =
|
|
2340
|
-
|
|
2337
|
+
let o = r.readUnknownField;
|
|
2338
|
+
if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
|
|
2339
|
+
let s = t.skip(i);
|
|
2340
|
+
o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
|
|
2341
2341
|
}
|
|
2342
2342
|
}
|
|
2343
|
-
return
|
|
2343
|
+
return a;
|
|
2344
2344
|
}
|
|
2345
|
-
internalBinaryWrite(
|
|
2346
|
-
|
|
2347
|
-
for (let
|
|
2348
|
-
for (let
|
|
2349
|
-
|
|
2350
|
-
let
|
|
2351
|
-
return
|
|
2345
|
+
internalBinaryWrite(n, r, i) {
|
|
2346
|
+
n.identifier !== "" && r.tag(1, t.LengthDelimited).string(n.identifier), n.unique !== 0 && r.tag(2, t.Varint).int32(n.unique), n.defaultValue && Y.internalBinaryWrite(n.defaultValue, r.tag(3, t.LengthDelimited).fork(), i).join();
|
|
2347
|
+
for (let e = 0; e < n.name.length; e++) H.internalBinaryWrite(n.name[e], r.tag(4, t.LengthDelimited).fork(), i).join();
|
|
2348
|
+
for (let e = 0; e < n.description.length; e++) H.internalBinaryWrite(n.description[e], r.tag(5, t.LengthDelimited).fork(), i).join();
|
|
2349
|
+
n.optional !== void 0 && r.tag(6, t.Varint).bool(n.optional), n.hidden !== void 0 && r.tag(7, t.Varint).bool(n.hidden);
|
|
2350
|
+
let a = i.writeUnknownFields;
|
|
2351
|
+
return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, n, r), r;
|
|
2352
2352
|
}
|
|
2353
2353
|
}(), Ae = new class extends V {
|
|
2354
2354
|
constructor() {
|
|
@@ -2462,84 +2462,84 @@ var B = Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})), Te = B[k] =
|
|
|
2462
2462
|
}
|
|
2463
2463
|
create(e) {
|
|
2464
2464
|
let t = globalThis.Object.create(this.messagePrototype);
|
|
2465
|
-
return t.runtimeName = "", t.parameterDefinitions = [], t.signature = "", t.throwsError = !1, t.name = [], t.description = [], t.documentation = [], t.deprecationMessage = [], t.displayMessage = [], t.alias = [], t.linkedDataTypeIdentifiers = [], t.version = "", t.displayIcon = "", t.definitionSource = "", t.runtimeDefinitionName = "", e !== void 0 &&
|
|
2465
|
+
return t.runtimeName = "", t.parameterDefinitions = [], t.signature = "", t.throwsError = !1, t.name = [], t.description = [], t.documentation = [], t.deprecationMessage = [], t.displayMessage = [], t.alias = [], t.linkedDataTypeIdentifiers = [], t.version = "", t.displayIcon = "", t.definitionSource = "", t.runtimeDefinitionName = "", e !== void 0 && j(this, t, e), t;
|
|
2466
2466
|
}
|
|
2467
|
-
internalBinaryRead(
|
|
2468
|
-
let
|
|
2469
|
-
for (;
|
|
2470
|
-
let [
|
|
2471
|
-
switch (
|
|
2467
|
+
internalBinaryRead(t, n, r, i) {
|
|
2468
|
+
let a = i ?? this.create(), o = t.pos + n;
|
|
2469
|
+
for (; t.pos < o;) {
|
|
2470
|
+
let [n, i] = t.tag();
|
|
2471
|
+
switch (n) {
|
|
2472
2472
|
case 1:
|
|
2473
|
-
|
|
2473
|
+
a.runtimeName = t.string();
|
|
2474
2474
|
break;
|
|
2475
2475
|
case 2:
|
|
2476
|
-
|
|
2476
|
+
a.parameterDefinitions.push($.internalBinaryRead(t, t.uint32(), r));
|
|
2477
2477
|
break;
|
|
2478
2478
|
case 3:
|
|
2479
|
-
|
|
2479
|
+
a.signature = t.string();
|
|
2480
2480
|
break;
|
|
2481
2481
|
case 4:
|
|
2482
|
-
|
|
2482
|
+
a.throwsError = t.bool();
|
|
2483
2483
|
break;
|
|
2484
2484
|
case 5:
|
|
2485
|
-
|
|
2485
|
+
a.name.push(H.internalBinaryRead(t, t.uint32(), r));
|
|
2486
2486
|
break;
|
|
2487
2487
|
case 6:
|
|
2488
|
-
|
|
2488
|
+
a.description.push(H.internalBinaryRead(t, t.uint32(), r));
|
|
2489
2489
|
break;
|
|
2490
2490
|
case 7:
|
|
2491
|
-
|
|
2491
|
+
a.documentation.push(H.internalBinaryRead(t, t.uint32(), r));
|
|
2492
2492
|
break;
|
|
2493
2493
|
case 8:
|
|
2494
|
-
|
|
2494
|
+
a.deprecationMessage.push(H.internalBinaryRead(t, t.uint32(), r));
|
|
2495
2495
|
break;
|
|
2496
2496
|
case 9:
|
|
2497
|
-
|
|
2497
|
+
a.displayMessage.push(H.internalBinaryRead(t, t.uint32(), r));
|
|
2498
2498
|
break;
|
|
2499
2499
|
case 10:
|
|
2500
|
-
|
|
2500
|
+
a.alias.push(H.internalBinaryRead(t, t.uint32(), r));
|
|
2501
2501
|
break;
|
|
2502
2502
|
case 11:
|
|
2503
|
-
|
|
2503
|
+
a.linkedDataTypeIdentifiers.push(t.string());
|
|
2504
2504
|
break;
|
|
2505
2505
|
case 12:
|
|
2506
|
-
|
|
2506
|
+
a.version = t.string();
|
|
2507
2507
|
break;
|
|
2508
2508
|
case 13:
|
|
2509
|
-
|
|
2509
|
+
a.displayIcon = t.string();
|
|
2510
2510
|
break;
|
|
2511
2511
|
case 14:
|
|
2512
|
-
|
|
2512
|
+
a.definitionSource = t.string();
|
|
2513
2513
|
break;
|
|
2514
2514
|
case 15:
|
|
2515
|
-
|
|
2515
|
+
a.runtimeDefinitionName = t.string();
|
|
2516
2516
|
break;
|
|
2517
2517
|
case 16:
|
|
2518
|
-
|
|
2518
|
+
a.design = t.string();
|
|
2519
2519
|
break;
|
|
2520
2520
|
default:
|
|
2521
|
-
let
|
|
2522
|
-
if (
|
|
2523
|
-
let s =
|
|
2524
|
-
|
|
2521
|
+
let o = r.readUnknownField;
|
|
2522
|
+
if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
|
|
2523
|
+
let s = t.skip(i);
|
|
2524
|
+
o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
|
|
2525
2525
|
}
|
|
2526
2526
|
}
|
|
2527
|
-
return
|
|
2528
|
-
}
|
|
2529
|
-
internalBinaryWrite(
|
|
2530
|
-
|
|
2531
|
-
for (let
|
|
2532
|
-
|
|
2533
|
-
for (let
|
|
2534
|
-
for (let
|
|
2535
|
-
for (let
|
|
2536
|
-
for (let
|
|
2537
|
-
for (let
|
|
2538
|
-
for (let
|
|
2539
|
-
for (let
|
|
2540
|
-
|
|
2541
|
-
let
|
|
2542
|
-
return
|
|
2527
|
+
return a;
|
|
2528
|
+
}
|
|
2529
|
+
internalBinaryWrite(n, r, i) {
|
|
2530
|
+
n.runtimeName !== "" && r.tag(1, t.LengthDelimited).string(n.runtimeName);
|
|
2531
|
+
for (let e = 0; e < n.parameterDefinitions.length; e++) $.internalBinaryWrite(n.parameterDefinitions[e], r.tag(2, t.LengthDelimited).fork(), i).join();
|
|
2532
|
+
n.signature !== "" && r.tag(3, t.LengthDelimited).string(n.signature), n.throwsError !== !1 && r.tag(4, t.Varint).bool(n.throwsError);
|
|
2533
|
+
for (let e = 0; e < n.name.length; e++) H.internalBinaryWrite(n.name[e], r.tag(5, t.LengthDelimited).fork(), i).join();
|
|
2534
|
+
for (let e = 0; e < n.description.length; e++) H.internalBinaryWrite(n.description[e], r.tag(6, t.LengthDelimited).fork(), i).join();
|
|
2535
|
+
for (let e = 0; e < n.documentation.length; e++) H.internalBinaryWrite(n.documentation[e], r.tag(7, t.LengthDelimited).fork(), i).join();
|
|
2536
|
+
for (let e = 0; e < n.deprecationMessage.length; e++) H.internalBinaryWrite(n.deprecationMessage[e], r.tag(8, t.LengthDelimited).fork(), i).join();
|
|
2537
|
+
for (let e = 0; e < n.displayMessage.length; e++) H.internalBinaryWrite(n.displayMessage[e], r.tag(9, t.LengthDelimited).fork(), i).join();
|
|
2538
|
+
for (let e = 0; e < n.alias.length; e++) H.internalBinaryWrite(n.alias[e], r.tag(10, t.LengthDelimited).fork(), i).join();
|
|
2539
|
+
for (let e = 0; e < n.linkedDataTypeIdentifiers.length; e++) r.tag(11, t.LengthDelimited).string(n.linkedDataTypeIdentifiers[e]);
|
|
2540
|
+
n.version !== "" && r.tag(12, t.LengthDelimited).string(n.version), n.displayIcon !== "" && r.tag(13, t.LengthDelimited).string(n.displayIcon), n.definitionSource !== "" && r.tag(14, t.LengthDelimited).string(n.definitionSource), n.runtimeDefinitionName !== "" && r.tag(15, t.LengthDelimited).string(n.runtimeDefinitionName), n.design !== void 0 && r.tag(16, t.LengthDelimited).string(n.design);
|
|
2541
|
+
let a = i.writeUnknownFields;
|
|
2542
|
+
return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, n, r), r;
|
|
2543
2543
|
}
|
|
2544
2544
|
}(), $ = new class extends V {
|
|
2545
2545
|
constructor() {
|
|
@@ -2601,55 +2601,55 @@ var B = Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})), Te = B[k] =
|
|
|
2601
2601
|
}
|
|
2602
2602
|
create(e) {
|
|
2603
2603
|
let t = globalThis.Object.create(this.messagePrototype);
|
|
2604
|
-
return t.runtimeName = "", t.name = [], t.description = [], t.documentation = [], t.runtimeDefinitionName = "", e !== void 0 &&
|
|
2604
|
+
return t.runtimeName = "", t.name = [], t.description = [], t.documentation = [], t.runtimeDefinitionName = "", e !== void 0 && j(this, t, e), t;
|
|
2605
2605
|
}
|
|
2606
|
-
internalBinaryRead(
|
|
2607
|
-
let
|
|
2608
|
-
for (;
|
|
2609
|
-
let [
|
|
2610
|
-
switch (
|
|
2606
|
+
internalBinaryRead(t, n, r, i) {
|
|
2607
|
+
let a = i ?? this.create(), o = t.pos + n;
|
|
2608
|
+
for (; t.pos < o;) {
|
|
2609
|
+
let [n, i] = t.tag();
|
|
2610
|
+
switch (n) {
|
|
2611
2611
|
case 1:
|
|
2612
|
-
|
|
2612
|
+
a.runtimeName = t.string();
|
|
2613
2613
|
break;
|
|
2614
2614
|
case 2:
|
|
2615
|
-
|
|
2615
|
+
a.defaultValue = Y.internalBinaryRead(t, t.uint32(), r, a.defaultValue);
|
|
2616
2616
|
break;
|
|
2617
2617
|
case 3:
|
|
2618
|
-
|
|
2618
|
+
a.optional = t.bool();
|
|
2619
2619
|
break;
|
|
2620
2620
|
case 4:
|
|
2621
|
-
|
|
2621
|
+
a.hidden = t.bool();
|
|
2622
2622
|
break;
|
|
2623
2623
|
case 5:
|
|
2624
|
-
|
|
2624
|
+
a.name.push(H.internalBinaryRead(t, t.uint32(), r));
|
|
2625
2625
|
break;
|
|
2626
2626
|
case 6:
|
|
2627
|
-
|
|
2627
|
+
a.description.push(H.internalBinaryRead(t, t.uint32(), r));
|
|
2628
2628
|
break;
|
|
2629
2629
|
case 7:
|
|
2630
|
-
|
|
2630
|
+
a.documentation.push(H.internalBinaryRead(t, t.uint32(), r));
|
|
2631
2631
|
break;
|
|
2632
2632
|
case 8:
|
|
2633
|
-
|
|
2633
|
+
a.runtimeDefinitionName = t.string();
|
|
2634
2634
|
break;
|
|
2635
2635
|
default:
|
|
2636
|
-
let
|
|
2637
|
-
if (
|
|
2638
|
-
let s =
|
|
2639
|
-
|
|
2636
|
+
let o = r.readUnknownField;
|
|
2637
|
+
if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
|
|
2638
|
+
let s = t.skip(i);
|
|
2639
|
+
o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
|
|
2640
2640
|
}
|
|
2641
2641
|
}
|
|
2642
|
-
return
|
|
2642
|
+
return a;
|
|
2643
2643
|
}
|
|
2644
|
-
internalBinaryWrite(
|
|
2645
|
-
|
|
2646
|
-
for (let
|
|
2647
|
-
for (let
|
|
2648
|
-
for (let
|
|
2649
|
-
|
|
2650
|
-
let
|
|
2651
|
-
return
|
|
2644
|
+
internalBinaryWrite(n, r, i) {
|
|
2645
|
+
n.runtimeName !== "" && r.tag(1, t.LengthDelimited).string(n.runtimeName), n.defaultValue && Y.internalBinaryWrite(n.defaultValue, r.tag(2, t.LengthDelimited).fork(), i).join(), n.optional !== void 0 && r.tag(3, t.Varint).bool(n.optional), n.hidden !== void 0 && r.tag(4, t.Varint).bool(n.hidden);
|
|
2646
|
+
for (let e = 0; e < n.name.length; e++) H.internalBinaryWrite(n.name[e], r.tag(5, t.LengthDelimited).fork(), i).join();
|
|
2647
|
+
for (let e = 0; e < n.description.length; e++) H.internalBinaryWrite(n.description[e], r.tag(6, t.LengthDelimited).fork(), i).join();
|
|
2648
|
+
for (let e = 0; e < n.documentation.length; e++) H.internalBinaryWrite(n.documentation[e], r.tag(7, t.LengthDelimited).fork(), i).join();
|
|
2649
|
+
n.runtimeDefinitionName !== "" && r.tag(8, t.LengthDelimited).string(n.runtimeDefinitionName);
|
|
2650
|
+
let a = i.writeUnknownFields;
|
|
2651
|
+
return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, n, r), r;
|
|
2652
2652
|
}
|
|
2653
2653
|
}();
|
|
2654
2654
|
//#endregion
|
|
2655
|
-
export {
|
|
2655
|
+
export { t as C, e as S, H as _, Oe as a, se as b, X as c, G as d, K as f, W as g, De as h, Q as i, J as l, U as m, $ as n, Z as o, Ee as p, ke as r, q as s, Ae as t, Y as u, V as v, r as x, j as y };
|