@code0-tech/tucana 0.0.62 → 0.0.65
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 -0
- package/dist/aquila.d.ts +2 -0
- package/dist/aquila.es.js +858 -0
- package/dist/helpers/helpers.d.ts +1 -0
- package/{helpers → dist/helpers}/shared.struct_helper.d.ts +2 -2
- package/dist/helpers.cjs.js +1 -0
- package/dist/helpers.d.ts +2 -0
- package/dist/helpers.es.js +61 -0
- package/{pb → dist/pb}/_generated/aquila.action_pb.client.d.ts +7 -12
- package/{pb → dist/pb}/_generated/aquila.action_pb.d.ts +5 -14
- package/{pb → dist/pb}/_generated/aquila.data_type_pb.client.d.ts +7 -12
- package/{pb → dist/pb}/_generated/aquila.data_type_pb.d.ts +4 -11
- package/{pb → dist/pb}/_generated/aquila.flow_type_pb.client.d.ts +7 -12
- package/{pb → dist/pb}/_generated/aquila.flow_type_pb.d.ts +4 -11
- package/{pb → dist/pb}/_generated/aquila.runtime_function_pb.client.d.ts +7 -12
- package/{pb → dist/pb}/_generated/aquila.runtime_function_pb.d.ts +4 -11
- package/{pb → dist/pb}/_generated/aquila.runtime_status_pb.client.d.ts +7 -12
- package/{pb → dist/pb}/_generated/aquila.runtime_status_pb.d.ts +4 -12
- package/{pb → dist/pb}/_generated/aquila.runtime_usage_pb.client.d.ts +7 -12
- package/{pb → dist/pb}/_generated/aquila.runtime_usage_pb.d.ts +4 -11
- package/{pb → dist/pb}/_generated/sagittarius.action_configuration_pb.client.d.ts +7 -12
- package/{pb → dist/pb}/_generated/sagittarius.action_configuration_pb.d.ts +4 -11
- package/{pb → dist/pb}/_generated/sagittarius.data_type_pb.client.d.ts +7 -12
- package/{pb → dist/pb}/_generated/sagittarius.data_type_pb.d.ts +4 -11
- package/{pb → dist/pb}/_generated/sagittarius.flow_pb.client.d.ts +7 -12
- package/{pb → dist/pb}/_generated/sagittarius.flow_pb.d.ts +5 -13
- package/{pb → dist/pb}/_generated/sagittarius.flow_type_pb.client.d.ts +7 -12
- package/{pb → dist/pb}/_generated/sagittarius.flow_type_pb.d.ts +4 -11
- package/{pb → dist/pb}/_generated/sagittarius.ping_pb.client.d.ts +7 -11
- package/{pb → dist/pb}/_generated/sagittarius.ping_pb.d.ts +3 -10
- package/{pb → dist/pb}/_generated/sagittarius.runtime_function_pb.client.d.ts +7 -12
- package/{pb → dist/pb}/_generated/sagittarius.runtime_function_pb.d.ts +4 -11
- package/{pb → dist/pb}/_generated/sagittarius.runtime_status_pb.client.d.ts +7 -12
- package/{pb → dist/pb}/_generated/sagittarius.runtime_status_pb.d.ts +4 -12
- package/{pb → dist/pb}/_generated/sagittarius.runtime_usage_pb.client.d.ts +7 -12
- package/{pb → dist/pb}/_generated/sagittarius.runtime_usage_pb.d.ts +4 -11
- package/dist/pb/_generated/sagittarius.text_execution_pb.client.d.ts +27 -0
- package/{pb → dist/pb}/_generated/sagittarius.text_execution_pb.d.ts +4 -11
- package/{pb → dist/pb}/_generated/shared.action_configuration_pb.d.ts +3 -11
- package/{pb → dist/pb}/_generated/shared.data_type_pb.d.ts +2 -10
- package/{pb → dist/pb}/_generated/shared.flow_definition_pb.d.ts +35 -47
- package/{pb → dist/pb}/_generated/shared.flow_pb.d.ts +12 -24
- package/{pb → dist/pb}/_generated/shared.runtime_function_pb.d.ts +3 -11
- package/{pb → dist/pb}/_generated/shared.runtime_status_pb.d.ts +52 -32
- package/{pb → dist/pb}/_generated/shared.runtime_usage_pb.d.ts +1 -9
- package/{pb → dist/pb}/_generated/shared.struct_pb.d.ts +62 -55
- package/{pb → dist/pb}/_generated/shared.translation_pb.d.ts +1 -9
- package/dist/pb/aquila.d.ts +12 -0
- package/dist/pb/sagittarius.d.ts +18 -0
- package/dist/pb/shared.d.ts +9 -0
- package/dist/rpc-interceptor-DARwxsWH.cjs +1 -0
- package/dist/rpc-interceptor-Dzh_AxUX.js +52 -0
- package/dist/sagittarius.cjs.js +1 -0
- package/dist/sagittarius.d.ts +2 -0
- package/dist/sagittarius.es.js +1212 -0
- package/dist/shared.cjs.js +1 -0
- package/dist/shared.d.ts +2 -0
- package/dist/shared.es.js +3 -0
- package/dist/shared.flow_pb-BBS51Wou.cjs +1 -0
- package/dist/shared.flow_pb-Bt00q6yT.js +717 -0
- package/dist/shared.runtime_usage_pb-Cgr2Xle6.cjs +2 -0
- package/dist/shared.runtime_usage_pb-QD7fpRLv.js +3069 -0
- package/package.json +24 -22
- package/helpers/helpers.d.ts +0 -1
- package/helpers/helpers.js +0 -1
- package/helpers/helpers.ts +0 -1
- package/helpers/shared.struct_helper.js +0 -59
- package/helpers/shared.struct_helper.ts +0 -70
- package/index.js +0 -0
- package/pb/_generated/.gitkeep +0 -0
- package/pb/_generated/aquila.action_pb.client.js +0 -25
- package/pb/_generated/aquila.action_pb.js +0 -468
- package/pb/_generated/aquila.data_type_pb.client.js +0 -23
- package/pb/_generated/aquila.data_type_pb.js +0 -112
- package/pb/_generated/aquila.flow_type_pb.client.js +0 -25
- package/pb/_generated/aquila.flow_type_pb.js +0 -112
- package/pb/_generated/aquila.runtime_function_pb.client.js +0 -25
- package/pb/_generated/aquila.runtime_function_pb.js +0 -112
- package/pb/_generated/aquila.runtime_status_pb.client.js +0 -23
- package/pb/_generated/aquila.runtime_status_pb.js +0 -126
- package/pb/_generated/aquila.runtime_usage_pb.client.js +0 -23
- package/pb/_generated/aquila.runtime_usage_pb.js +0 -112
- package/pb/_generated/sagittarius.action_configuration_pb.client.js +0 -23
- package/pb/_generated/sagittarius.action_configuration_pb.js +0 -120
- package/pb/_generated/sagittarius.data_type_pb.client.js +0 -23
- package/pb/_generated/sagittarius.data_type_pb.js +0 -112
- package/pb/_generated/sagittarius.flow_pb.client.js +0 -23
- package/pb/_generated/sagittarius.flow_pb.js +0 -138
- package/pb/_generated/sagittarius.flow_type_pb.client.js +0 -25
- package/pb/_generated/sagittarius.flow_type_pb.js +0 -112
- package/pb/_generated/sagittarius.ping_pb.client.js +0 -23
- package/pb/_generated/sagittarius.ping_pb.js +0 -64
- package/pb/_generated/sagittarius.runtime_function_pb.client.js +0 -25
- package/pb/_generated/sagittarius.runtime_function_pb.js +0 -112
- package/pb/_generated/sagittarius.runtime_status_pb.client.js +0 -23
- package/pb/_generated/sagittarius.runtime_status_pb.js +0 -126
- package/pb/_generated/sagittarius.runtime_usage_pb.client.js +0 -23
- package/pb/_generated/sagittarius.runtime_usage_pb.js +0 -112
- package/pb/_generated/sagittarius.text_execution_pb.client.d.ts +0 -32
- package/pb/_generated/sagittarius.text_execution_pb.client.js +0 -23
- package/pb/_generated/sagittarius.text_execution_pb.js +0 -568
- package/pb/_generated/shared.action_configuration_pb.js +0 -251
- package/pb/_generated/shared.data_type_pb.js +0 -411
- package/pb/_generated/shared.flow_definition_pb.js +0 -269
- package/pb/_generated/shared.flow_pb.js +0 -762
- package/pb/_generated/shared.runtime_function_pb.js +0 -238
- package/pb/_generated/shared.runtime_status_pb.js +0 -315
- package/pb/_generated/shared.runtime_usage_pb.js +0 -62
- package/pb/_generated/shared.struct_pb.js +0 -274
- package/pb/_generated/shared.translation_pb.js +0 -62
- package/pb/aquila.d.ts +0 -24
- package/pb/aquila.js +0 -24
- package/pb/aquila.ts +0 -24
- package/pb/sagittarius.d.ts +0 -36
- package/pb/sagittarius.js +0 -36
- package/pb/sagittarius.ts +0 -36
- package/pb/shared.d.ts +0 -18
- package/pb/shared.js +0 -18
- package/pb/shared.ts +0 -18
|
@@ -0,0 +1,3069 @@
|
|
|
1
|
+
//#region node_modules/@protobuf-ts/runtime/build/es2015/json-typings.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
let t = typeof e;
|
|
4
|
+
if (t == "object") {
|
|
5
|
+
if (Array.isArray(e)) return "array";
|
|
6
|
+
if (e === null) return "null";
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
}
|
|
10
|
+
function t(e) {
|
|
11
|
+
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region node_modules/@protobuf-ts/runtime/build/es2015/base64.js
|
|
15
|
+
var n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""), r = [];
|
|
16
|
+
for (let e = 0; e < n.length; e++) r[n[e].charCodeAt(0)] = e;
|
|
17
|
+
r[45] = n.indexOf("+"), r[95] = n.indexOf("/");
|
|
18
|
+
function i(e) {
|
|
19
|
+
let t = e.length * 3 / 4;
|
|
20
|
+
e[e.length - 2] == "=" ? t -= 2 : e[e.length - 1] == "=" && --t;
|
|
21
|
+
let n = new Uint8Array(t), i = 0, a = 0, o, s = 0;
|
|
22
|
+
for (let t = 0; t < e.length; t++) {
|
|
23
|
+
if (o = r[e.charCodeAt(t)], o === void 0) switch (e[t]) {
|
|
24
|
+
case "=": a = 0;
|
|
25
|
+
case "\n":
|
|
26
|
+
case "\r":
|
|
27
|
+
case " ":
|
|
28
|
+
case " ": continue;
|
|
29
|
+
default: throw Error("invalid base64 string.");
|
|
30
|
+
}
|
|
31
|
+
switch (a) {
|
|
32
|
+
case 0:
|
|
33
|
+
s = o, a = 1;
|
|
34
|
+
break;
|
|
35
|
+
case 1:
|
|
36
|
+
n[i++] = s << 2 | (o & 48) >> 4, s = o, a = 2;
|
|
37
|
+
break;
|
|
38
|
+
case 2:
|
|
39
|
+
n[i++] = (s & 15) << 4 | (o & 60) >> 2, s = o, a = 3;
|
|
40
|
+
break;
|
|
41
|
+
case 3:
|
|
42
|
+
n[i++] = (s & 3) << 6 | o, a = 0;
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
if (a == 1) throw Error("invalid base64 string.");
|
|
47
|
+
return n.subarray(0, i);
|
|
48
|
+
}
|
|
49
|
+
function a(e) {
|
|
50
|
+
let t = "", r = 0, i, a = 0;
|
|
51
|
+
for (let o = 0; o < e.length; o++) switch (i = e[o], r) {
|
|
52
|
+
case 0:
|
|
53
|
+
t += n[i >> 2], a = (i & 3) << 4, r = 1;
|
|
54
|
+
break;
|
|
55
|
+
case 1:
|
|
56
|
+
t += n[a | i >> 4], a = (i & 15) << 2, r = 2;
|
|
57
|
+
break;
|
|
58
|
+
case 2:
|
|
59
|
+
t += n[a | i >> 6], t += n[i & 63], r = 0;
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
return r && (t += n[a], t += "=", r == 1 && (t += "=")), t;
|
|
63
|
+
}
|
|
64
|
+
//#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
|
+
//#region node_modules/@protobuf-ts/runtime/build/es2015/goog-varint.js
|
|
91
|
+
function c() {
|
|
92
|
+
let e = 0, t = 0;
|
|
93
|
+
for (let n = 0; n < 28; n += 7) {
|
|
94
|
+
let r = this.buf[this.pos++];
|
|
95
|
+
if (e |= (r & 127) << n, !(r & 128)) return this.assertBounds(), [e, t];
|
|
96
|
+
}
|
|
97
|
+
let n = this.buf[this.pos++];
|
|
98
|
+
if (e |= (n & 15) << 28, t = (n & 112) >> 4, !(n & 128)) return this.assertBounds(), [e, t];
|
|
99
|
+
for (let n = 3; n <= 31; n += 7) {
|
|
100
|
+
let r = this.buf[this.pos++];
|
|
101
|
+
if (t |= (r & 127) << n, !(r & 128)) return this.assertBounds(), [e, t];
|
|
102
|
+
}
|
|
103
|
+
throw Error("invalid varint");
|
|
104
|
+
}
|
|
105
|
+
function l(e, t, n) {
|
|
106
|
+
for (let r = 0; r < 28; r += 7) {
|
|
107
|
+
let i = e >>> r, a = !(!(i >>> 7) && t == 0), o = (a ? i | 128 : i) & 255;
|
|
108
|
+
if (n.push(o), !a) return;
|
|
109
|
+
}
|
|
110
|
+
let r = e >>> 28 & 15 | (t & 7) << 4, i = !!(t >> 3);
|
|
111
|
+
if (n.push((i ? r | 128 : r) & 255), i) {
|
|
112
|
+
for (let e = 3; e < 31; e += 7) {
|
|
113
|
+
let r = t >>> e, i = !!(r >>> 7), a = (i ? r | 128 : r) & 255;
|
|
114
|
+
if (n.push(a), !i) return;
|
|
115
|
+
}
|
|
116
|
+
n.push(t >>> 31 & 1);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
var u = 65536 * 65536;
|
|
120
|
+
function d(e) {
|
|
121
|
+
let t = e[0] == "-";
|
|
122
|
+
t && (e = e.slice(1));
|
|
123
|
+
let n = 1e6, r = 0, i = 0;
|
|
124
|
+
function a(t, a) {
|
|
125
|
+
let o = Number(e.slice(t, a));
|
|
126
|
+
i *= n, r = r * n + o, r >= u && (i += r / u | 0, r %= u);
|
|
127
|
+
}
|
|
128
|
+
return a(-24, -18), a(-18, -12), a(-12, -6), a(-6), [
|
|
129
|
+
t,
|
|
130
|
+
r,
|
|
131
|
+
i
|
|
132
|
+
];
|
|
133
|
+
}
|
|
134
|
+
function f(e, t) {
|
|
135
|
+
if (t >>> 0 <= 2097151) return "" + (u * t + (e >>> 0));
|
|
136
|
+
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
|
+
a >= c && (o += Math.floor(a / c), a %= c), o >= c && (s += Math.floor(o / c), o %= c);
|
|
138
|
+
function l(e, t) {
|
|
139
|
+
let n = e ? String(e) : "";
|
|
140
|
+
return t ? "0000000".slice(n.length) + n : n;
|
|
141
|
+
}
|
|
142
|
+
return l(s, 0) + l(o, s) + l(a, 1);
|
|
143
|
+
}
|
|
144
|
+
function ee(e, t) {
|
|
145
|
+
if (e >= 0) {
|
|
146
|
+
for (; e > 127;) t.push(e & 127 | 128), e >>>= 7;
|
|
147
|
+
t.push(e);
|
|
148
|
+
} else {
|
|
149
|
+
for (let n = 0; n < 9; n++) t.push(e & 127 | 128), e >>= 7;
|
|
150
|
+
t.push(1);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
function te() {
|
|
154
|
+
let e = this.buf[this.pos++], t = e & 127;
|
|
155
|
+
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
|
+
e = this.buf[this.pos++], t |= (e & 15) << 28;
|
|
157
|
+
for (let t = 5; e & 128 && t < 10; t++) e = this.buf[this.pos++];
|
|
158
|
+
if (e & 128) throw Error("invalid varint");
|
|
159
|
+
return this.assertBounds(), t >>> 0;
|
|
160
|
+
}
|
|
161
|
+
//#endregion
|
|
162
|
+
//#region node_modules/@protobuf-ts/runtime/build/es2015/pb-long.js
|
|
163
|
+
var p;
|
|
164
|
+
function ne() {
|
|
165
|
+
let e = /* @__PURE__ */ new DataView(/* @__PURE__ */ new ArrayBuffer(8));
|
|
166
|
+
p = globalThis.BigInt !== void 0 && typeof e.getBigInt64 == "function" && typeof e.getBigUint64 == "function" && typeof e.setBigInt64 == "function" && typeof e.setBigUint64 == "function" ? {
|
|
167
|
+
MIN: BigInt("-9223372036854775808"),
|
|
168
|
+
MAX: BigInt("9223372036854775807"),
|
|
169
|
+
UMIN: BigInt("0"),
|
|
170
|
+
UMAX: BigInt("18446744073709551615"),
|
|
171
|
+
C: BigInt,
|
|
172
|
+
V: e
|
|
173
|
+
} : void 0;
|
|
174
|
+
}
|
|
175
|
+
ne();
|
|
176
|
+
function m(e) {
|
|
177
|
+
if (!e) throw Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support");
|
|
178
|
+
}
|
|
179
|
+
var h = /^-?[0-9]+$/, g = 4294967296, _ = 2147483648, v = class {
|
|
180
|
+
constructor(e, t) {
|
|
181
|
+
this.lo = e | 0, this.hi = t | 0;
|
|
182
|
+
}
|
|
183
|
+
isZero() {
|
|
184
|
+
return this.lo == 0 && this.hi == 0;
|
|
185
|
+
}
|
|
186
|
+
toNumber() {
|
|
187
|
+
let e = this.hi * g + (this.lo >>> 0);
|
|
188
|
+
if (!Number.isSafeInteger(e)) throw Error("cannot convert to safe number");
|
|
189
|
+
return e;
|
|
190
|
+
}
|
|
191
|
+
}, y = class e extends v {
|
|
192
|
+
static from(t) {
|
|
193
|
+
if (p) switch (typeof t) {
|
|
194
|
+
case "string":
|
|
195
|
+
if (t == "0") return this.ZERO;
|
|
196
|
+
if (t == "") throw Error("string is no integer");
|
|
197
|
+
t = p.C(t);
|
|
198
|
+
case "number":
|
|
199
|
+
if (t === 0) return this.ZERO;
|
|
200
|
+
t = p.C(t);
|
|
201
|
+
case "bigint":
|
|
202
|
+
if (!t) return this.ZERO;
|
|
203
|
+
if (t < p.UMIN) throw Error("signed value for ulong");
|
|
204
|
+
if (t > p.UMAX) throw Error("ulong too large");
|
|
205
|
+
return p.V.setBigUint64(0, t, !0), new e(p.V.getInt32(0, !0), p.V.getInt32(4, !0));
|
|
206
|
+
}
|
|
207
|
+
else switch (typeof t) {
|
|
208
|
+
case "string":
|
|
209
|
+
if (t == "0") return this.ZERO;
|
|
210
|
+
if (t = t.trim(), !h.test(t)) throw Error("string is no integer");
|
|
211
|
+
let [n, r, i] = d(t);
|
|
212
|
+
if (n) throw Error("signed value for ulong");
|
|
213
|
+
return new e(r, i);
|
|
214
|
+
case "number":
|
|
215
|
+
if (t == 0) return this.ZERO;
|
|
216
|
+
if (!Number.isSafeInteger(t)) throw Error("number is no integer");
|
|
217
|
+
if (t < 0) throw Error("signed value for ulong");
|
|
218
|
+
return new e(t, t / g);
|
|
219
|
+
}
|
|
220
|
+
throw Error("unknown value " + typeof t);
|
|
221
|
+
}
|
|
222
|
+
toString() {
|
|
223
|
+
return p ? this.toBigInt().toString() : f(this.lo, this.hi);
|
|
224
|
+
}
|
|
225
|
+
toBigInt() {
|
|
226
|
+
return m(p), p.V.setInt32(0, this.lo, !0), p.V.setInt32(4, this.hi, !0), p.V.getBigUint64(0, !0);
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
y.ZERO = new y(0, 0);
|
|
230
|
+
var b = class e extends v {
|
|
231
|
+
static from(t) {
|
|
232
|
+
if (p) switch (typeof t) {
|
|
233
|
+
case "string":
|
|
234
|
+
if (t == "0") return this.ZERO;
|
|
235
|
+
if (t == "") throw Error("string is no integer");
|
|
236
|
+
t = p.C(t);
|
|
237
|
+
case "number":
|
|
238
|
+
if (t === 0) return this.ZERO;
|
|
239
|
+
t = p.C(t);
|
|
240
|
+
case "bigint":
|
|
241
|
+
if (!t) return this.ZERO;
|
|
242
|
+
if (t < p.MIN) throw Error("signed long too small");
|
|
243
|
+
if (t > p.MAX) throw Error("signed long too large");
|
|
244
|
+
return p.V.setBigInt64(0, t, !0), new e(p.V.getInt32(0, !0), p.V.getInt32(4, !0));
|
|
245
|
+
}
|
|
246
|
+
else switch (typeof t) {
|
|
247
|
+
case "string":
|
|
248
|
+
if (t == "0") return this.ZERO;
|
|
249
|
+
if (t = t.trim(), !h.test(t)) throw Error("string is no integer");
|
|
250
|
+
let [n, r, i] = d(t);
|
|
251
|
+
if (n) {
|
|
252
|
+
if (i > _ || i == _ && r != 0) throw Error("signed long too small");
|
|
253
|
+
} else if (i >= _) throw Error("signed long too large");
|
|
254
|
+
let a = new e(r, i);
|
|
255
|
+
return n ? a.negate() : a;
|
|
256
|
+
case "number":
|
|
257
|
+
if (t == 0) return this.ZERO;
|
|
258
|
+
if (!Number.isSafeInteger(t)) throw Error("number is no integer");
|
|
259
|
+
return t > 0 ? new e(t, t / g) : new e(-t, -t / g).negate();
|
|
260
|
+
}
|
|
261
|
+
throw Error("unknown value " + typeof t);
|
|
262
|
+
}
|
|
263
|
+
isNegative() {
|
|
264
|
+
return (this.hi & _) !== 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 (p) 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 m(p), p.V.setInt32(0, this.lo, !0), p.V.setInt32(4, this.hi, !0), p.V.getBigInt64(0, !0);
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
b.ZERO = new b(0, 0);
|
|
283
|
+
//#endregion
|
|
284
|
+
//#region node_modules/@protobuf-ts/runtime/build/es2015/binary-reader.js
|
|
285
|
+
var re = {
|
|
286
|
+
readUnknownField: !0,
|
|
287
|
+
readerFactory: (e) => new ae(e)
|
|
288
|
+
};
|
|
289
|
+
function ie(e) {
|
|
290
|
+
return e ? Object.assign(Object.assign({}, re), e) : re;
|
|
291
|
+
}
|
|
292
|
+
var ae = class {
|
|
293
|
+
constructor(e, t) {
|
|
294
|
+
this.varint64 = c, this.uint32 = te, 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 b(...this.varint64());
|
|
338
|
+
}
|
|
339
|
+
uint64() {
|
|
340
|
+
return new y(...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 b(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 y(this.sfixed32(), this.sfixed32());
|
|
358
|
+
}
|
|
359
|
+
sfixed64() {
|
|
360
|
+
return new b(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 x(e, t) {
|
|
379
|
+
if (!e) throw Error(t);
|
|
380
|
+
}
|
|
381
|
+
function oe(e, t) {
|
|
382
|
+
throw Error(t ?? "Unexpected object: " + e);
|
|
383
|
+
}
|
|
384
|
+
var se = 34028234663852886e22, ce = -34028234663852886e22, le = 4294967295, ue = 2147483647, de = -2147483648;
|
|
385
|
+
function S(e) {
|
|
386
|
+
if (typeof e != "number") throw Error("invalid int 32: " + typeof e);
|
|
387
|
+
if (!Number.isInteger(e) || e > ue || e < de) throw Error("invalid int 32: " + e);
|
|
388
|
+
}
|
|
389
|
+
function C(e) {
|
|
390
|
+
if (typeof e != "number") throw Error("invalid uint 32: " + typeof e);
|
|
391
|
+
if (!Number.isInteger(e) || e > le || e < 0) throw Error("invalid uint 32: " + e);
|
|
392
|
+
}
|
|
393
|
+
function w(e) {
|
|
394
|
+
if (typeof e != "number") throw Error("invalid float 32: " + typeof e);
|
|
395
|
+
if (Number.isFinite(e) && (e > se || e < ce)) throw Error("invalid float 32: " + e);
|
|
396
|
+
}
|
|
397
|
+
//#endregion
|
|
398
|
+
//#region node_modules/@protobuf-ts/runtime/build/es2015/binary-writer.js
|
|
399
|
+
var T = {
|
|
400
|
+
writeUnknownFields: !0,
|
|
401
|
+
writerFactory: () => new pe()
|
|
402
|
+
};
|
|
403
|
+
function fe(e) {
|
|
404
|
+
return e ? Object.assign(Object.assign({}, T), e) : T;
|
|
405
|
+
}
|
|
406
|
+
var pe = 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 (C(e); e > 127;) this.buf.push(e & 127 | 128), e >>>= 7;
|
|
437
|
+
return this.buf.push(e), this;
|
|
438
|
+
}
|
|
439
|
+
int32(e) {
|
|
440
|
+
return S(e), ee(e, this.buf), this;
|
|
441
|
+
}
|
|
442
|
+
bool(e) {
|
|
443
|
+
return this.buf.push(e ? 1 : 0), 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
|
+
w(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
|
+
C(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
|
+
S(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 S(e), e = (e << 1 ^ e >> 31) >>> 0, ee(e, this.buf), this;
|
|
473
|
+
}
|
|
474
|
+
sfixed64(e) {
|
|
475
|
+
let t = new Uint8Array(8), n = new DataView(t.buffer), r = b.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 = y.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 = b.from(e);
|
|
484
|
+
return l(t.lo, t.hi, this.buf), this;
|
|
485
|
+
}
|
|
486
|
+
sint64(e) {
|
|
487
|
+
let t = b.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 = y.from(e);
|
|
492
|
+
return l(t.lo, t.hi, this.buf), this;
|
|
493
|
+
}
|
|
494
|
+
}, me = {
|
|
495
|
+
emitDefaultValues: !1,
|
|
496
|
+
enumAsInteger: !1,
|
|
497
|
+
useProtoFieldName: !1,
|
|
498
|
+
prettySpaces: 0
|
|
499
|
+
}, he = { ignoreUnknownFields: !1 };
|
|
500
|
+
function ge(e) {
|
|
501
|
+
return e ? Object.assign(Object.assign({}, he), e) : he;
|
|
502
|
+
}
|
|
503
|
+
function _e(e) {
|
|
504
|
+
return e ? Object.assign(Object.assign({}, me), e) : me;
|
|
505
|
+
}
|
|
506
|
+
//#endregion
|
|
507
|
+
//#region node_modules/@protobuf-ts/runtime/build/es2015/message-type-contract.js
|
|
508
|
+
var ve = Symbol.for("protobuf-ts/message-type");
|
|
509
|
+
//#endregion
|
|
510
|
+
//#region node_modules/@protobuf-ts/runtime/build/es2015/lower-camel-case.js
|
|
511
|
+
function E(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 D;
|
|
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
|
+
})(D ||= {});
|
|
525
|
+
var O;
|
|
526
|
+
(function(e) {
|
|
527
|
+
e[e.BIGINT = 0] = "BIGINT", e[e.STRING = 1] = "STRING", e[e.NUMBER = 2] = "NUMBER";
|
|
528
|
+
})(O ||= {});
|
|
529
|
+
var k;
|
|
530
|
+
(function(e) {
|
|
531
|
+
e[e.NO = 0] = "NO", e[e.PACKED = 1] = "PACKED", e[e.UNPACKED = 2] = "UNPACKED";
|
|
532
|
+
})(k ||= {});
|
|
533
|
+
function ye(e) {
|
|
534
|
+
return e.localName = e.localName ?? E(e.name), e.jsonName = e.jsonName ?? E(e.name), e.repeat = e.repeat ?? k.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 be(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 xe = 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 (!be(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, D.INT32, r) : this.scalar(e, D.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), D.INT32, r);
|
|
604
|
+
case "message": return this.messages(Object.values(e), t.V.T(), n, r);
|
|
605
|
+
}
|
|
606
|
+
break;
|
|
607
|
+
}
|
|
608
|
+
return !0;
|
|
609
|
+
}
|
|
610
|
+
message(e, t, n, r) {
|
|
611
|
+
return n ? t.isAssignable(e, r) : t.is(e, r);
|
|
612
|
+
}
|
|
613
|
+
messages(e, t, n, r) {
|
|
614
|
+
if (!Array.isArray(e)) return !1;
|
|
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;
|
|
620
|
+
}
|
|
621
|
+
scalar(e, t, n) {
|
|
622
|
+
let r = typeof e;
|
|
623
|
+
switch (t) {
|
|
624
|
+
case D.UINT64:
|
|
625
|
+
case D.FIXED64:
|
|
626
|
+
case D.INT64:
|
|
627
|
+
case D.SFIXED64:
|
|
628
|
+
case D.SINT64: switch (n) {
|
|
629
|
+
case O.BIGINT: return r == "bigint";
|
|
630
|
+
case O.NUMBER: return r == "number" && !isNaN(e);
|
|
631
|
+
default: return r == "string";
|
|
632
|
+
}
|
|
633
|
+
case D.BOOL: return r == "boolean";
|
|
634
|
+
case D.STRING: return r == "string";
|
|
635
|
+
case D.BYTES: return e instanceof Uint8Array;
|
|
636
|
+
case D.DOUBLE:
|
|
637
|
+
case D.FLOAT: return r == "number" && !isNaN(e);
|
|
638
|
+
default: return r == "number" && Number.isInteger(e);
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
scalars(e, t, n, r) {
|
|
642
|
+
if (!Array.isArray(e)) return !1;
|
|
643
|
+
if (n < 2) return !0;
|
|
644
|
+
if (Array.isArray(e)) {
|
|
645
|
+
for (let i = 0; i < e.length && i < n; i++) if (!this.scalar(e[i], t, r)) return !1;
|
|
646
|
+
}
|
|
647
|
+
return !0;
|
|
648
|
+
}
|
|
649
|
+
mapKeys(e, t, n) {
|
|
650
|
+
let r = Object.keys(e);
|
|
651
|
+
switch (t) {
|
|
652
|
+
case D.INT32:
|
|
653
|
+
case D.FIXED32:
|
|
654
|
+
case D.SFIXED32:
|
|
655
|
+
case D.SINT32:
|
|
656
|
+
case D.UINT32: return this.scalars(r.slice(0, n).map((e) => parseInt(e)), t, n);
|
|
657
|
+
case D.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, O.STRING);
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
};
|
|
662
|
+
//#endregion
|
|
663
|
+
//#region node_modules/@protobuf-ts/runtime/build/es2015/reflection-long-convert.js
|
|
664
|
+
function A(e, t) {
|
|
665
|
+
switch (t) {
|
|
666
|
+
case O.BIGINT: return e.toBigInt();
|
|
667
|
+
case O.NUMBER: return e.toNumber();
|
|
668
|
+
default: return e.toString();
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
//#endregion
|
|
672
|
+
//#region node_modules/@protobuf-ts/runtime/build/es2015/reflection-json-reader.js
|
|
673
|
+
var Se = class {
|
|
674
|
+
constructor(e) {
|
|
675
|
+
this.info = e;
|
|
676
|
+
}
|
|
677
|
+
prepare() {
|
|
678
|
+
if (this.fMap === void 0) {
|
|
679
|
+
this.fMap = {};
|
|
680
|
+
let e = this.info.fields ?? [];
|
|
681
|
+
for (let t of e) this.fMap[t.name] = t, this.fMap[t.jsonName] = t, this.fMap[t.localName] = t;
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
assert(t, n, r) {
|
|
685
|
+
if (!t) {
|
|
686
|
+
let t = e(r);
|
|
687
|
+
throw (t == "number" || t == "boolean") && (t = r.toString()), Error(`Cannot parse JSON ${t} for ${this.info.typeName}#${n}`);
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
read(e, n, r) {
|
|
691
|
+
this.prepare();
|
|
692
|
+
let i = [];
|
|
693
|
+
for (let [a, o] of Object.entries(e)) {
|
|
694
|
+
let e = this.fMap[a];
|
|
695
|
+
if (!e) {
|
|
696
|
+
if (!r.ignoreUnknownFields) throw Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${a}`);
|
|
697
|
+
continue;
|
|
698
|
+
}
|
|
699
|
+
let s = e.localName, c;
|
|
700
|
+
if (e.oneof) {
|
|
701
|
+
if (o === null && (e.kind !== "enum" || e.T()[0] !== "google.protobuf.NullValue")) continue;
|
|
702
|
+
if (i.includes(e.oneof)) throw Error(`Multiple members of the oneof group "${e.oneof}" of ${this.info.typeName} are present in JSON.`);
|
|
703
|
+
i.push(e.oneof), c = n[e.oneof] = { oneofKind: s };
|
|
704
|
+
} else c = n;
|
|
705
|
+
if (e.kind == "map") {
|
|
706
|
+
if (o === null) continue;
|
|
707
|
+
this.assert(t(o), e.name, o);
|
|
708
|
+
let n = c[s];
|
|
709
|
+
for (let [t, i] of Object.entries(o)) {
|
|
710
|
+
this.assert(i !== null, e.name + " map value", null);
|
|
711
|
+
let a;
|
|
712
|
+
switch (e.V.kind) {
|
|
713
|
+
case "message":
|
|
714
|
+
a = e.V.T().internalJsonRead(i, r);
|
|
715
|
+
break;
|
|
716
|
+
case "enum":
|
|
717
|
+
if (a = this.enum(e.V.T(), i, e.name, r.ignoreUnknownFields), a === !1) continue;
|
|
718
|
+
break;
|
|
719
|
+
case "scalar":
|
|
720
|
+
a = this.scalar(i, e.V.T, e.V.L, e.name);
|
|
721
|
+
break;
|
|
722
|
+
}
|
|
723
|
+
this.assert(a !== void 0, e.name + " map value", i);
|
|
724
|
+
let o = t;
|
|
725
|
+
e.K == D.BOOL && (o = o == "true" ? !0 : o == "false" ? !1 : o), o = this.scalar(o, e.K, O.STRING, e.name).toString(), n[o] = a;
|
|
726
|
+
}
|
|
727
|
+
} else if (e.repeat) {
|
|
728
|
+
if (o === null) continue;
|
|
729
|
+
this.assert(Array.isArray(o), e.name, o);
|
|
730
|
+
let t = c[s];
|
|
731
|
+
for (let n of o) {
|
|
732
|
+
this.assert(n !== null, e.name, null);
|
|
733
|
+
let i;
|
|
734
|
+
switch (e.kind) {
|
|
735
|
+
case "message":
|
|
736
|
+
i = e.T().internalJsonRead(n, r);
|
|
737
|
+
break;
|
|
738
|
+
case "enum":
|
|
739
|
+
if (i = this.enum(e.T(), n, e.name, r.ignoreUnknownFields), i === !1) continue;
|
|
740
|
+
break;
|
|
741
|
+
case "scalar":
|
|
742
|
+
i = this.scalar(n, e.T, e.L, e.name);
|
|
743
|
+
break;
|
|
744
|
+
}
|
|
745
|
+
this.assert(i !== void 0, e.name, o), t.push(i);
|
|
746
|
+
}
|
|
747
|
+
} else switch (e.kind) {
|
|
748
|
+
case "message":
|
|
749
|
+
if (o === null && e.T().typeName != "google.protobuf.Value") {
|
|
750
|
+
this.assert(e.oneof === void 0, e.name + " (oneof member)", null);
|
|
751
|
+
continue;
|
|
752
|
+
}
|
|
753
|
+
c[s] = e.T().internalJsonRead(o, r, c[s]);
|
|
754
|
+
break;
|
|
755
|
+
case "enum":
|
|
756
|
+
if (o === null) continue;
|
|
757
|
+
let t = this.enum(e.T(), o, e.name, r.ignoreUnknownFields);
|
|
758
|
+
if (t === !1) continue;
|
|
759
|
+
c[s] = t;
|
|
760
|
+
break;
|
|
761
|
+
case "scalar":
|
|
762
|
+
if (o === null) continue;
|
|
763
|
+
c[s] = this.scalar(o, e.T, e.L, e.name);
|
|
764
|
+
break;
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
enum(e, t, n, r) {
|
|
769
|
+
if (e[0] == "google.protobuf.NullValue" && x(t === null || t === "NULL_VALUE", `Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} only accepts null.`), t === null) return 0;
|
|
770
|
+
switch (typeof t) {
|
|
771
|
+
case "number": return x(Number.isInteger(t), `Unable to parse field ${this.info.typeName}#${n}, enum can only be integral number, got ${t}.`), t;
|
|
772
|
+
case "string":
|
|
773
|
+
let i = t;
|
|
774
|
+
e[2] && t.substring(0, e[2].length) === e[2] && (i = t.substring(e[2].length));
|
|
775
|
+
let a = e[1][i];
|
|
776
|
+
return a === void 0 && r ? !1 : (x(typeof a == "number", `Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${t}".`), a);
|
|
777
|
+
}
|
|
778
|
+
x(!1, `Unable to parse field ${this.info.typeName}#${n}, cannot parse enum value from ${typeof t}".`);
|
|
779
|
+
}
|
|
780
|
+
scalar(e, t, n, r) {
|
|
781
|
+
let a;
|
|
782
|
+
try {
|
|
783
|
+
switch (t) {
|
|
784
|
+
case D.DOUBLE:
|
|
785
|
+
case D.FLOAT:
|
|
786
|
+
if (e === null) return 0;
|
|
787
|
+
if (e === "NaN") return NaN;
|
|
788
|
+
if (e === "Infinity") return Infinity;
|
|
789
|
+
if (e === "-Infinity") return -Infinity;
|
|
790
|
+
if (e === "") {
|
|
791
|
+
a = "empty string";
|
|
792
|
+
break;
|
|
793
|
+
}
|
|
794
|
+
if (typeof e == "string" && e.trim().length !== e.length) {
|
|
795
|
+
a = "extra whitespace";
|
|
796
|
+
break;
|
|
797
|
+
}
|
|
798
|
+
if (typeof e != "string" && typeof e != "number") break;
|
|
799
|
+
let r = Number(e);
|
|
800
|
+
if (Number.isNaN(r)) {
|
|
801
|
+
a = "not a number";
|
|
802
|
+
break;
|
|
803
|
+
}
|
|
804
|
+
if (!Number.isFinite(r)) {
|
|
805
|
+
a = "too large or small";
|
|
806
|
+
break;
|
|
807
|
+
}
|
|
808
|
+
return t == D.FLOAT && w(r), r;
|
|
809
|
+
case D.INT32:
|
|
810
|
+
case D.FIXED32:
|
|
811
|
+
case D.SFIXED32:
|
|
812
|
+
case D.SINT32:
|
|
813
|
+
case D.UINT32:
|
|
814
|
+
if (e === null) return 0;
|
|
815
|
+
let o;
|
|
816
|
+
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 == D.UINT32 ? C(o) : S(o), o;
|
|
818
|
+
case D.INT64:
|
|
819
|
+
case D.SFIXED64:
|
|
820
|
+
case D.SINT64:
|
|
821
|
+
if (e === null) return A(b.ZERO, n);
|
|
822
|
+
if (typeof e != "number" && typeof e != "string") break;
|
|
823
|
+
return A(b.from(e), n);
|
|
824
|
+
case D.FIXED64:
|
|
825
|
+
case D.UINT64:
|
|
826
|
+
if (e === null) return A(y.ZERO, n);
|
|
827
|
+
if (typeof e != "number" && typeof e != "string") break;
|
|
828
|
+
return A(y.from(e), n);
|
|
829
|
+
case D.BOOL:
|
|
830
|
+
if (e === null) return !1;
|
|
831
|
+
if (typeof e != "boolean") break;
|
|
832
|
+
return e;
|
|
833
|
+
case D.STRING:
|
|
834
|
+
if (e === null) return "";
|
|
835
|
+
if (typeof e != "string") {
|
|
836
|
+
a = "extra whitespace";
|
|
837
|
+
break;
|
|
838
|
+
}
|
|
839
|
+
return e;
|
|
840
|
+
case D.BYTES:
|
|
841
|
+
if (e === null || e === "") return new Uint8Array();
|
|
842
|
+
if (typeof e != "string") break;
|
|
843
|
+
return i(e);
|
|
844
|
+
}
|
|
845
|
+
} catch (e) {
|
|
846
|
+
a = e.message;
|
|
847
|
+
}
|
|
848
|
+
this.assert(!1, r + (a ? " - " + a : ""), e);
|
|
849
|
+
}
|
|
850
|
+
}, Ce = class {
|
|
851
|
+
constructor(e) {
|
|
852
|
+
this.fields = e.fields ?? [];
|
|
853
|
+
}
|
|
854
|
+
write(e, t) {
|
|
855
|
+
let n = {}, r = e;
|
|
856
|
+
for (let e of this.fields) {
|
|
857
|
+
if (!e.oneof) {
|
|
858
|
+
let i = this.field(e, r[e.localName], t);
|
|
859
|
+
i !== void 0 && (n[t.useProtoFieldName ? e.name : e.jsonName] = i);
|
|
860
|
+
continue;
|
|
861
|
+
}
|
|
862
|
+
let i = r[e.oneof];
|
|
863
|
+
if (i.oneofKind !== e.localName) continue;
|
|
864
|
+
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
|
+
x(o !== void 0), n[t.useProtoFieldName ? e.name : e.jsonName] = o;
|
|
866
|
+
}
|
|
867
|
+
return n;
|
|
868
|
+
}
|
|
869
|
+
field(e, t, n) {
|
|
870
|
+
let r;
|
|
871
|
+
if (e.kind == "map") {
|
|
872
|
+
x(typeof t == "object" && !!t);
|
|
873
|
+
let i = {};
|
|
874
|
+
switch (e.V.kind) {
|
|
875
|
+
case "scalar":
|
|
876
|
+
for (let [n, r] of Object.entries(t)) {
|
|
877
|
+
let t = this.scalar(e.V.T, r, e.name, !1, !0);
|
|
878
|
+
x(t !== void 0), i[n.toString()] = t;
|
|
879
|
+
}
|
|
880
|
+
break;
|
|
881
|
+
case "message":
|
|
882
|
+
let r = e.V.T();
|
|
883
|
+
for (let [a, o] of Object.entries(t)) {
|
|
884
|
+
let t = this.message(r, o, e.name, n);
|
|
885
|
+
x(t !== void 0), i[a.toString()] = t;
|
|
886
|
+
}
|
|
887
|
+
break;
|
|
888
|
+
case "enum":
|
|
889
|
+
let a = e.V.T();
|
|
890
|
+
for (let [r, o] of Object.entries(t)) {
|
|
891
|
+
x(o === void 0 || typeof o == "number");
|
|
892
|
+
let t = this.enum(a, o, e.name, !1, !0, n.enumAsInteger);
|
|
893
|
+
x(t !== void 0), i[r.toString()] = t;
|
|
894
|
+
}
|
|
895
|
+
break;
|
|
896
|
+
}
|
|
897
|
+
(n.emitDefaultValues || Object.keys(i).length > 0) && (r = i);
|
|
898
|
+
} else if (e.repeat) {
|
|
899
|
+
x(Array.isArray(t));
|
|
900
|
+
let i = [];
|
|
901
|
+
switch (e.kind) {
|
|
902
|
+
case "scalar":
|
|
903
|
+
for (let n = 0; n < t.length; n++) {
|
|
904
|
+
let r = this.scalar(e.T, t[n], e.name, e.opt, !0);
|
|
905
|
+
x(r !== void 0), i.push(r);
|
|
906
|
+
}
|
|
907
|
+
break;
|
|
908
|
+
case "enum":
|
|
909
|
+
let r = e.T();
|
|
910
|
+
for (let a = 0; a < t.length; a++) {
|
|
911
|
+
x(t[a] === void 0 || typeof t[a] == "number");
|
|
912
|
+
let o = this.enum(r, t[a], e.name, e.opt, !0, n.enumAsInteger);
|
|
913
|
+
x(o !== void 0), i.push(o);
|
|
914
|
+
}
|
|
915
|
+
break;
|
|
916
|
+
case "message":
|
|
917
|
+
let a = e.T();
|
|
918
|
+
for (let r = 0; r < t.length; r++) {
|
|
919
|
+
let o = this.message(a, t[r], e.name, n);
|
|
920
|
+
x(o !== void 0), i.push(o);
|
|
921
|
+
}
|
|
922
|
+
break;
|
|
923
|
+
}
|
|
924
|
+
(n.emitDefaultValues || i.length > 0 || n.emitDefaultValues) && (r = i);
|
|
925
|
+
} else switch (e.kind) {
|
|
926
|
+
case "scalar":
|
|
927
|
+
r = this.scalar(e.T, t, e.name, e.opt, n.emitDefaultValues);
|
|
928
|
+
break;
|
|
929
|
+
case "enum":
|
|
930
|
+
r = this.enum(e.T(), t, e.name, e.opt, n.emitDefaultValues, n.enumAsInteger);
|
|
931
|
+
break;
|
|
932
|
+
case "message":
|
|
933
|
+
r = this.message(e.T(), t, e.name, n);
|
|
934
|
+
break;
|
|
935
|
+
}
|
|
936
|
+
return r;
|
|
937
|
+
}
|
|
938
|
+
enum(e, t, n, r, i, a) {
|
|
939
|
+
if (e[0] == "google.protobuf.NullValue") return !i && !r ? void 0 : null;
|
|
940
|
+
if (t === void 0) {
|
|
941
|
+
x(r);
|
|
942
|
+
return;
|
|
943
|
+
}
|
|
944
|
+
if (!(t === 0 && !i && !r)) return x(typeof t == "number"), x(Number.isInteger(t)), a || !e[1].hasOwnProperty(t) ? t : e[2] ? e[2] + e[1][t] : e[1][t];
|
|
945
|
+
}
|
|
946
|
+
message(e, t, n, r) {
|
|
947
|
+
return t === void 0 ? r.emitDefaultValues ? null : void 0 : e.internalJsonWrite(t, r);
|
|
948
|
+
}
|
|
949
|
+
scalar(e, t, n, r, i) {
|
|
950
|
+
if (t === void 0) {
|
|
951
|
+
x(r);
|
|
952
|
+
return;
|
|
953
|
+
}
|
|
954
|
+
let o = i || r;
|
|
955
|
+
switch (e) {
|
|
956
|
+
case D.INT32:
|
|
957
|
+
case D.SFIXED32:
|
|
958
|
+
case D.SINT32: return t === 0 ? o ? 0 : void 0 : (S(t), t);
|
|
959
|
+
case D.FIXED32:
|
|
960
|
+
case D.UINT32: return t === 0 ? o ? 0 : void 0 : (C(t), t);
|
|
961
|
+
case D.FLOAT: w(t);
|
|
962
|
+
case D.DOUBLE: return t === 0 ? o ? 0 : void 0 : (x(typeof t == "number"), Number.isNaN(t) ? "NaN" : t === Infinity ? "Infinity" : t === -Infinity ? "-Infinity" : t);
|
|
963
|
+
case D.STRING: return t === "" ? o ? "" : void 0 : (x(typeof t == "string"), t);
|
|
964
|
+
case D.BOOL: return t === !1 ? o ? !1 : void 0 : (x(typeof t == "boolean"), t);
|
|
965
|
+
case D.UINT64:
|
|
966
|
+
case D.FIXED64:
|
|
967
|
+
x(typeof t == "number" || typeof t == "string" || typeof t == "bigint");
|
|
968
|
+
let e = y.from(t);
|
|
969
|
+
return e.isZero() && !o ? void 0 : e.toString();
|
|
970
|
+
case D.INT64:
|
|
971
|
+
case D.SFIXED64:
|
|
972
|
+
case D.SINT64:
|
|
973
|
+
x(typeof t == "number" || typeof t == "string" || typeof t == "bigint");
|
|
974
|
+
let n = b.from(t);
|
|
975
|
+
return n.isZero() && !o ? void 0 : n.toString();
|
|
976
|
+
case D.BYTES: return x(t instanceof Uint8Array), t.byteLength ? a(t) : o ? "" : void 0;
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
};
|
|
980
|
+
//#endregion
|
|
981
|
+
//#region node_modules/@protobuf-ts/runtime/build/es2015/reflection-scalar-default.js
|
|
982
|
+
function j(e, t = O.STRING) {
|
|
983
|
+
switch (e) {
|
|
984
|
+
case D.BOOL: return !1;
|
|
985
|
+
case D.UINT64:
|
|
986
|
+
case D.FIXED64: return A(y.ZERO, t);
|
|
987
|
+
case D.INT64:
|
|
988
|
+
case D.SFIXED64:
|
|
989
|
+
case D.SINT64: return A(b.ZERO, t);
|
|
990
|
+
case D.DOUBLE:
|
|
991
|
+
case D.FLOAT: return 0;
|
|
992
|
+
case D.BYTES: return new Uint8Array();
|
|
993
|
+
case D.STRING: return "";
|
|
994
|
+
default: return 0;
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
//#endregion
|
|
998
|
+
//#region node_modules/@protobuf-ts/runtime/build/es2015/reflection-binary-reader.js
|
|
999
|
+
var we = class {
|
|
1000
|
+
constructor(e) {
|
|
1001
|
+
this.info = e;
|
|
1002
|
+
}
|
|
1003
|
+
prepare() {
|
|
1004
|
+
if (!this.fieldNoToField) {
|
|
1005
|
+
let e = this.info.fields ?? [];
|
|
1006
|
+
this.fieldNoToField = new Map(e.map((e) => [e.no, e]));
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
read(e, t, n, r) {
|
|
1010
|
+
this.prepare();
|
|
1011
|
+
let i = r === void 0 ? e.len : e.pos + r;
|
|
1012
|
+
for (; e.pos < i;) {
|
|
1013
|
+
let [r, i] = e.tag(), a = this.fieldNoToField.get(r);
|
|
1014
|
+
if (!a) {
|
|
1015
|
+
let a = n.readUnknownField;
|
|
1016
|
+
if (a == "throw") throw Error(`Unknown field ${r} (wire type ${i}) for ${this.info.typeName}`);
|
|
1017
|
+
let s = e.skip(i);
|
|
1018
|
+
a !== !1 && (a === !0 ? o.onRead : a)(this.info.typeName, t, r, i, s);
|
|
1019
|
+
continue;
|
|
1020
|
+
}
|
|
1021
|
+
let c = t, l = a.repeat, u = a.localName;
|
|
1022
|
+
switch (a.oneof && (c = c[a.oneof], c.oneofKind !== u && (c = t[a.oneof] = { oneofKind: u })), a.kind) {
|
|
1023
|
+
case "scalar":
|
|
1024
|
+
case "enum":
|
|
1025
|
+
let t = a.kind == "enum" ? D.INT32 : a.T, r = a.kind == "scalar" ? a.L : void 0;
|
|
1026
|
+
if (l) {
|
|
1027
|
+
let n = c[u];
|
|
1028
|
+
if (i == s.LengthDelimited && t != D.STRING && t != D.BYTES) {
|
|
1029
|
+
let i = e.uint32() + e.pos;
|
|
1030
|
+
for (; e.pos < i;) n.push(this.scalar(e, t, r));
|
|
1031
|
+
} else n.push(this.scalar(e, t, r));
|
|
1032
|
+
} else c[u] = this.scalar(e, t, r);
|
|
1033
|
+
break;
|
|
1034
|
+
case "message":
|
|
1035
|
+
if (l) {
|
|
1036
|
+
let t = c[u], r = a.T().internalBinaryRead(e, e.uint32(), n);
|
|
1037
|
+
t.push(r);
|
|
1038
|
+
} else c[u] = a.T().internalBinaryRead(e, e.uint32(), n, c[u]);
|
|
1039
|
+
break;
|
|
1040
|
+
case "map":
|
|
1041
|
+
let [o, d] = this.mapEntry(a, e, n);
|
|
1042
|
+
c[u][o] = d;
|
|
1043
|
+
break;
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
mapEntry(e, t, n) {
|
|
1048
|
+
let r = t.uint32(), i = t.pos + r, a, o;
|
|
1049
|
+
for (; t.pos < i;) {
|
|
1050
|
+
let [r, i] = t.tag();
|
|
1051
|
+
switch (r) {
|
|
1052
|
+
case 1:
|
|
1053
|
+
a = e.K == D.BOOL ? t.bool().toString() : this.scalar(t, e.K, O.STRING);
|
|
1054
|
+
break;
|
|
1055
|
+
case 2:
|
|
1056
|
+
switch (e.V.kind) {
|
|
1057
|
+
case "scalar":
|
|
1058
|
+
o = this.scalar(t, e.V.T, e.V.L);
|
|
1059
|
+
break;
|
|
1060
|
+
case "enum":
|
|
1061
|
+
o = t.int32();
|
|
1062
|
+
break;
|
|
1063
|
+
case "message":
|
|
1064
|
+
o = e.V.T().internalBinaryRead(t, t.uint32(), n);
|
|
1065
|
+
break;
|
|
1066
|
+
}
|
|
1067
|
+
break;
|
|
1068
|
+
default: throw Error(`Unknown field ${r} (wire type ${i}) in map entry for ${this.info.typeName}#${e.name}`);
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
if (a === void 0) {
|
|
1072
|
+
let t = j(e.K);
|
|
1073
|
+
a = e.K == D.BOOL ? t.toString() : t;
|
|
1074
|
+
}
|
|
1075
|
+
if (o === void 0) switch (e.V.kind) {
|
|
1076
|
+
case "scalar":
|
|
1077
|
+
o = j(e.V.T, e.V.L);
|
|
1078
|
+
break;
|
|
1079
|
+
case "enum":
|
|
1080
|
+
o = 0;
|
|
1081
|
+
break;
|
|
1082
|
+
case "message":
|
|
1083
|
+
o = e.V.T().create();
|
|
1084
|
+
break;
|
|
1085
|
+
}
|
|
1086
|
+
return [a, o];
|
|
1087
|
+
}
|
|
1088
|
+
scalar(e, t, n) {
|
|
1089
|
+
switch (t) {
|
|
1090
|
+
case D.INT32: return e.int32();
|
|
1091
|
+
case D.STRING: return e.string();
|
|
1092
|
+
case D.BOOL: return e.bool();
|
|
1093
|
+
case D.DOUBLE: return e.double();
|
|
1094
|
+
case D.FLOAT: return e.float();
|
|
1095
|
+
case D.INT64: return A(e.int64(), n);
|
|
1096
|
+
case D.UINT64: return A(e.uint64(), n);
|
|
1097
|
+
case D.FIXED64: return A(e.fixed64(), n);
|
|
1098
|
+
case D.FIXED32: return e.fixed32();
|
|
1099
|
+
case D.BYTES: return e.bytes();
|
|
1100
|
+
case D.UINT32: return e.uint32();
|
|
1101
|
+
case D.SFIXED32: return e.sfixed32();
|
|
1102
|
+
case D.SFIXED64: return A(e.sfixed64(), n);
|
|
1103
|
+
case D.SINT32: return e.sint32();
|
|
1104
|
+
case D.SINT64: return A(e.sint64(), n);
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
}, Te = class {
|
|
1108
|
+
constructor(e) {
|
|
1109
|
+
this.info = e;
|
|
1110
|
+
}
|
|
1111
|
+
prepare() {
|
|
1112
|
+
this.fields ||= (this.info.fields ? this.info.fields.concat() : []).sort((e, t) => e.no - t.no);
|
|
1113
|
+
}
|
|
1114
|
+
write(e, t, n) {
|
|
1115
|
+
this.prepare();
|
|
1116
|
+
for (let r of this.fields) {
|
|
1117
|
+
let i, a, o = r.repeat, s = r.localName;
|
|
1118
|
+
if (r.oneof) {
|
|
1119
|
+
let t = e[r.oneof];
|
|
1120
|
+
if (t.oneofKind !== s) continue;
|
|
1121
|
+
i = t[s], a = !0;
|
|
1122
|
+
} else i = e[s], a = !1;
|
|
1123
|
+
switch (r.kind) {
|
|
1124
|
+
case "scalar":
|
|
1125
|
+
case "enum":
|
|
1126
|
+
let e = r.kind == "enum" ? D.INT32 : r.T;
|
|
1127
|
+
if (o) if (x(Array.isArray(i)), o == k.PACKED) this.packed(t, e, r.no, i);
|
|
1128
|
+
else for (let n of i) this.scalar(t, e, r.no, n, !0);
|
|
1129
|
+
else i === void 0 ? x(r.opt) : this.scalar(t, e, r.no, i, a || r.opt);
|
|
1130
|
+
break;
|
|
1131
|
+
case "message":
|
|
1132
|
+
if (o) {
|
|
1133
|
+
x(Array.isArray(i));
|
|
1134
|
+
for (let e of i) this.message(t, n, r.T(), r.no, e);
|
|
1135
|
+
} else this.message(t, n, r.T(), r.no, i);
|
|
1136
|
+
break;
|
|
1137
|
+
case "map":
|
|
1138
|
+
x(typeof i == "object" && !!i);
|
|
1139
|
+
for (let [e, a] of Object.entries(i)) this.mapEntry(t, n, r, e, a);
|
|
1140
|
+
break;
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
let r = n.writeUnknownFields;
|
|
1144
|
+
r !== !1 && (r === !0 ? o.onWrite : r)(this.info.typeName, e, t);
|
|
1145
|
+
}
|
|
1146
|
+
mapEntry(e, t, n, r, i) {
|
|
1147
|
+
e.tag(n.no, s.LengthDelimited), e.fork();
|
|
1148
|
+
let a = r;
|
|
1149
|
+
switch (n.K) {
|
|
1150
|
+
case D.INT32:
|
|
1151
|
+
case D.FIXED32:
|
|
1152
|
+
case D.UINT32:
|
|
1153
|
+
case D.SFIXED32:
|
|
1154
|
+
case D.SINT32:
|
|
1155
|
+
a = Number.parseInt(r);
|
|
1156
|
+
break;
|
|
1157
|
+
case D.BOOL:
|
|
1158
|
+
x(r == "true" || r == "false"), a = r == "true";
|
|
1159
|
+
break;
|
|
1160
|
+
}
|
|
1161
|
+
switch (this.scalar(e, n.K, 1, a, !0), n.V.kind) {
|
|
1162
|
+
case "scalar":
|
|
1163
|
+
this.scalar(e, n.V.T, 2, i, !0);
|
|
1164
|
+
break;
|
|
1165
|
+
case "enum":
|
|
1166
|
+
this.scalar(e, D.INT32, 2, i, !0);
|
|
1167
|
+
break;
|
|
1168
|
+
case "message":
|
|
1169
|
+
this.message(e, t, n.V.T(), 2, i);
|
|
1170
|
+
break;
|
|
1171
|
+
}
|
|
1172
|
+
e.join();
|
|
1173
|
+
}
|
|
1174
|
+
message(e, t, n, r, i) {
|
|
1175
|
+
i !== void 0 && (n.internalBinaryWrite(i, e.tag(r, s.LengthDelimited).fork(), t), e.join());
|
|
1176
|
+
}
|
|
1177
|
+
scalar(e, t, n, r, i) {
|
|
1178
|
+
let [a, o, s] = this.scalarInfo(t, r);
|
|
1179
|
+
(!s || i) && (e.tag(n, a), e[o](r));
|
|
1180
|
+
}
|
|
1181
|
+
packed(e, t, n, r) {
|
|
1182
|
+
if (!r.length) return;
|
|
1183
|
+
x(t !== D.BYTES && t !== D.STRING), e.tag(n, s.LengthDelimited), e.fork();
|
|
1184
|
+
let [, i] = this.scalarInfo(t);
|
|
1185
|
+
for (let t = 0; t < r.length; t++) e[i](r[t]);
|
|
1186
|
+
e.join();
|
|
1187
|
+
}
|
|
1188
|
+
scalarInfo(e, t) {
|
|
1189
|
+
let n = s.Varint, r, i = t === void 0, a = t === 0;
|
|
1190
|
+
switch (e) {
|
|
1191
|
+
case D.INT32:
|
|
1192
|
+
r = "int32";
|
|
1193
|
+
break;
|
|
1194
|
+
case D.STRING:
|
|
1195
|
+
a = i || !t.length, n = s.LengthDelimited, r = "string";
|
|
1196
|
+
break;
|
|
1197
|
+
case D.BOOL:
|
|
1198
|
+
a = t === !1, r = "bool";
|
|
1199
|
+
break;
|
|
1200
|
+
case D.UINT32:
|
|
1201
|
+
r = "uint32";
|
|
1202
|
+
break;
|
|
1203
|
+
case D.DOUBLE:
|
|
1204
|
+
n = s.Bit64, r = "double";
|
|
1205
|
+
break;
|
|
1206
|
+
case D.FLOAT:
|
|
1207
|
+
n = s.Bit32, r = "float";
|
|
1208
|
+
break;
|
|
1209
|
+
case D.INT64:
|
|
1210
|
+
a = i || b.from(t).isZero(), r = "int64";
|
|
1211
|
+
break;
|
|
1212
|
+
case D.UINT64:
|
|
1213
|
+
a = i || y.from(t).isZero(), r = "uint64";
|
|
1214
|
+
break;
|
|
1215
|
+
case D.FIXED64:
|
|
1216
|
+
a = i || y.from(t).isZero(), n = s.Bit64, r = "fixed64";
|
|
1217
|
+
break;
|
|
1218
|
+
case D.BYTES:
|
|
1219
|
+
a = i || !t.byteLength, n = s.LengthDelimited, r = "bytes";
|
|
1220
|
+
break;
|
|
1221
|
+
case D.FIXED32:
|
|
1222
|
+
n = s.Bit32, r = "fixed32";
|
|
1223
|
+
break;
|
|
1224
|
+
case D.SFIXED32:
|
|
1225
|
+
n = s.Bit32, r = "sfixed32";
|
|
1226
|
+
break;
|
|
1227
|
+
case D.SFIXED64:
|
|
1228
|
+
a = i || b.from(t).isZero(), n = s.Bit64, r = "sfixed64";
|
|
1229
|
+
break;
|
|
1230
|
+
case D.SINT32:
|
|
1231
|
+
r = "sint32";
|
|
1232
|
+
break;
|
|
1233
|
+
case D.SINT64:
|
|
1234
|
+
a = i || b.from(t).isZero(), r = "sint64";
|
|
1235
|
+
break;
|
|
1236
|
+
}
|
|
1237
|
+
return [
|
|
1238
|
+
n,
|
|
1239
|
+
r,
|
|
1240
|
+
i || a
|
|
1241
|
+
];
|
|
1242
|
+
}
|
|
1243
|
+
};
|
|
1244
|
+
//#endregion
|
|
1245
|
+
//#region node_modules/@protobuf-ts/runtime/build/es2015/reflection-create.js
|
|
1246
|
+
function Ee(e) {
|
|
1247
|
+
let t = e.messagePrototype ? Object.create(e.messagePrototype) : Object.defineProperty({}, ve, { value: e });
|
|
1248
|
+
for (let n of e.fields) {
|
|
1249
|
+
let e = n.localName;
|
|
1250
|
+
if (!n.opt) if (n.oneof) t[n.oneof] = { oneofKind: void 0 };
|
|
1251
|
+
else if (n.repeat) t[e] = [];
|
|
1252
|
+
else switch (n.kind) {
|
|
1253
|
+
case "scalar":
|
|
1254
|
+
t[e] = j(n.T, n.L);
|
|
1255
|
+
break;
|
|
1256
|
+
case "enum":
|
|
1257
|
+
t[e] = 0;
|
|
1258
|
+
break;
|
|
1259
|
+
case "map":
|
|
1260
|
+
t[e] = {};
|
|
1261
|
+
break;
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
return t;
|
|
1265
|
+
}
|
|
1266
|
+
//#endregion
|
|
1267
|
+
//#region node_modules/@protobuf-ts/runtime/build/es2015/reflection-merge-partial.js
|
|
1268
|
+
function M(e, t, n) {
|
|
1269
|
+
let r, i = n, a;
|
|
1270
|
+
for (let n of e.fields) {
|
|
1271
|
+
let e = n.localName;
|
|
1272
|
+
if (n.oneof) {
|
|
1273
|
+
let o = i[n.oneof];
|
|
1274
|
+
if (o?.oneofKind == null) continue;
|
|
1275
|
+
if (r = o[e], a = t[n.oneof], a.oneofKind = o.oneofKind, r == null) {
|
|
1276
|
+
delete a[e];
|
|
1277
|
+
continue;
|
|
1278
|
+
}
|
|
1279
|
+
} else if (r = i[e], a = t, r == null) continue;
|
|
1280
|
+
switch (n.repeat && (a[e].length = r.length), n.kind) {
|
|
1281
|
+
case "scalar":
|
|
1282
|
+
case "enum":
|
|
1283
|
+
if (n.repeat) for (let t = 0; t < r.length; t++) a[e][t] = r[t];
|
|
1284
|
+
else a[e] = r;
|
|
1285
|
+
break;
|
|
1286
|
+
case "message":
|
|
1287
|
+
let t = n.T();
|
|
1288
|
+
if (n.repeat) for (let n = 0; n < r.length; n++) a[e][n] = t.create(r[n]);
|
|
1289
|
+
else a[e] === void 0 ? a[e] = t.create(r) : t.mergePartial(a[e], r);
|
|
1290
|
+
break;
|
|
1291
|
+
case "map":
|
|
1292
|
+
switch (n.V.kind) {
|
|
1293
|
+
case "scalar":
|
|
1294
|
+
case "enum":
|
|
1295
|
+
Object.assign(a[e], r);
|
|
1296
|
+
break;
|
|
1297
|
+
case "message":
|
|
1298
|
+
let t = n.V.T();
|
|
1299
|
+
for (let n of Object.keys(r)) a[e][n] = t.create(r[n]);
|
|
1300
|
+
break;
|
|
1301
|
+
}
|
|
1302
|
+
break;
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
//#endregion
|
|
1307
|
+
//#region node_modules/@protobuf-ts/runtime/build/es2015/reflection-equals.js
|
|
1308
|
+
function De(e, t, n) {
|
|
1309
|
+
if (t === n) return !0;
|
|
1310
|
+
if (!t || !n) return !1;
|
|
1311
|
+
for (let r of e.fields) {
|
|
1312
|
+
let e = r.localName, i = r.oneof ? t[r.oneof][e] : t[e], a = r.oneof ? n[r.oneof][e] : n[e];
|
|
1313
|
+
switch (r.kind) {
|
|
1314
|
+
case "enum":
|
|
1315
|
+
case "scalar":
|
|
1316
|
+
let e = r.kind == "enum" ? D.INT32 : r.T;
|
|
1317
|
+
if (!(r.repeat ? F(e, i, a) : P(e, i, a))) return !1;
|
|
1318
|
+
break;
|
|
1319
|
+
case "map":
|
|
1320
|
+
if (!(r.V.kind == "message" ? I(r.V.T(), N(i), N(a)) : F(r.V.kind == "enum" ? D.INT32 : r.V.T, N(i), N(a)))) return !1;
|
|
1321
|
+
break;
|
|
1322
|
+
case "message":
|
|
1323
|
+
let t = r.T();
|
|
1324
|
+
if (!(r.repeat ? I(t, i, a) : t.equals(i, a))) return !1;
|
|
1325
|
+
break;
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
return !0;
|
|
1329
|
+
}
|
|
1330
|
+
var N = Object.values;
|
|
1331
|
+
function P(e, t, n) {
|
|
1332
|
+
if (t === n) return !0;
|
|
1333
|
+
if (e !== D.BYTES) return !1;
|
|
1334
|
+
let r = t, i = n;
|
|
1335
|
+
if (r.length !== i.length) return !1;
|
|
1336
|
+
for (let e = 0; e < r.length; e++) if (r[e] != i[e]) return !1;
|
|
1337
|
+
return !0;
|
|
1338
|
+
}
|
|
1339
|
+
function F(e, t, n) {
|
|
1340
|
+
if (t.length !== n.length) return !1;
|
|
1341
|
+
for (let r = 0; r < t.length; r++) if (!P(e, t[r], n[r])) return !1;
|
|
1342
|
+
return !0;
|
|
1343
|
+
}
|
|
1344
|
+
function I(e, t, n) {
|
|
1345
|
+
if (t.length !== n.length) return !1;
|
|
1346
|
+
for (let r = 0; r < t.length; r++) if (!e.equals(t[r], n[r])) return !1;
|
|
1347
|
+
return !0;
|
|
1348
|
+
}
|
|
1349
|
+
//#endregion
|
|
1350
|
+
//#region node_modules/@protobuf-ts/runtime/build/es2015/message-type.js
|
|
1351
|
+
var L = Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})), Oe = L[ve] = {}, R = class {
|
|
1352
|
+
constructor(e, t, n) {
|
|
1353
|
+
this.defaultCheckDepth = 16, this.typeName = e, this.fields = t.map(ye), this.options = n ?? {}, Oe.value = this, this.messagePrototype = Object.create(null, L), this.refTypeCheck = new xe(this), this.refJsonReader = new Se(this), this.refJsonWriter = new Ce(this), this.refBinReader = new we(this), this.refBinWriter = new Te(this);
|
|
1354
|
+
}
|
|
1355
|
+
create(e) {
|
|
1356
|
+
let t = Ee(this);
|
|
1357
|
+
return e !== void 0 && M(this, t, e), t;
|
|
1358
|
+
}
|
|
1359
|
+
clone(e) {
|
|
1360
|
+
let t = this.create();
|
|
1361
|
+
return M(this, t, e), t;
|
|
1362
|
+
}
|
|
1363
|
+
equals(e, t) {
|
|
1364
|
+
return De(this, e, t);
|
|
1365
|
+
}
|
|
1366
|
+
is(e, t = this.defaultCheckDepth) {
|
|
1367
|
+
return this.refTypeCheck.is(e, t, !1);
|
|
1368
|
+
}
|
|
1369
|
+
isAssignable(e, t = this.defaultCheckDepth) {
|
|
1370
|
+
return this.refTypeCheck.is(e, t, !0);
|
|
1371
|
+
}
|
|
1372
|
+
mergePartial(e, t) {
|
|
1373
|
+
M(this, e, t);
|
|
1374
|
+
}
|
|
1375
|
+
fromBinary(e, t) {
|
|
1376
|
+
let n = ie(t);
|
|
1377
|
+
return this.internalBinaryRead(n.readerFactory(e), e.byteLength, n);
|
|
1378
|
+
}
|
|
1379
|
+
fromJson(e, t) {
|
|
1380
|
+
return this.internalJsonRead(e, ge(t));
|
|
1381
|
+
}
|
|
1382
|
+
fromJsonString(e, t) {
|
|
1383
|
+
let n = JSON.parse(e);
|
|
1384
|
+
return this.fromJson(n, t);
|
|
1385
|
+
}
|
|
1386
|
+
toJson(e, t) {
|
|
1387
|
+
return this.internalJsonWrite(e, _e(t));
|
|
1388
|
+
}
|
|
1389
|
+
toJsonString(e, t) {
|
|
1390
|
+
let n = this.toJson(e, t);
|
|
1391
|
+
return JSON.stringify(n, null, t?.prettySpaces ?? 0);
|
|
1392
|
+
}
|
|
1393
|
+
toBinary(e, t) {
|
|
1394
|
+
let n = fe(t);
|
|
1395
|
+
return this.internalBinaryWrite(e, n.writerFactory(), n).finish();
|
|
1396
|
+
}
|
|
1397
|
+
internalJsonRead(t, n, r) {
|
|
1398
|
+
if (typeof t == "object" && t && !Array.isArray(t)) {
|
|
1399
|
+
let e = r ?? this.create();
|
|
1400
|
+
return this.refJsonReader.read(t, e, n), e;
|
|
1401
|
+
}
|
|
1402
|
+
throw Error(`Unable to parse message ${this.typeName} from JSON ${e(t)}.`);
|
|
1403
|
+
}
|
|
1404
|
+
internalJsonWrite(e, t) {
|
|
1405
|
+
return this.refJsonWriter.write(e, t);
|
|
1406
|
+
}
|
|
1407
|
+
internalBinaryWrite(e, t, n) {
|
|
1408
|
+
return this.refBinWriter.write(e, t, n), t;
|
|
1409
|
+
}
|
|
1410
|
+
internalBinaryRead(e, t, n, r) {
|
|
1411
|
+
let i = r ?? this.create();
|
|
1412
|
+
return this.refBinReader.read(e, i, n, t), i;
|
|
1413
|
+
}
|
|
1414
|
+
}, z = new class extends R {
|
|
1415
|
+
constructor() {
|
|
1416
|
+
super("shared.Translation", [{
|
|
1417
|
+
no: 1,
|
|
1418
|
+
name: "code",
|
|
1419
|
+
kind: "scalar",
|
|
1420
|
+
T: 9
|
|
1421
|
+
}, {
|
|
1422
|
+
no: 2,
|
|
1423
|
+
name: "content",
|
|
1424
|
+
kind: "scalar",
|
|
1425
|
+
T: 9
|
|
1426
|
+
}]);
|
|
1427
|
+
}
|
|
1428
|
+
create(e) {
|
|
1429
|
+
let t = globalThis.Object.create(this.messagePrototype);
|
|
1430
|
+
return t.code = "", t.content = "", e !== void 0 && M(this, t, e), t;
|
|
1431
|
+
}
|
|
1432
|
+
internalBinaryRead(e, t, n, r) {
|
|
1433
|
+
let i = r ?? this.create(), a = e.pos + t;
|
|
1434
|
+
for (; e.pos < a;) {
|
|
1435
|
+
let [t, r] = e.tag();
|
|
1436
|
+
switch (t) {
|
|
1437
|
+
case 1:
|
|
1438
|
+
i.code = e.string();
|
|
1439
|
+
break;
|
|
1440
|
+
case 2:
|
|
1441
|
+
i.content = e.string();
|
|
1442
|
+
break;
|
|
1443
|
+
default:
|
|
1444
|
+
let a = n.readUnknownField;
|
|
1445
|
+
if (a === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${r}) for ${this.typeName}`);
|
|
1446
|
+
let s = e.skip(r);
|
|
1447
|
+
a !== !1 && (a === !0 ? o.onRead : a)(this.typeName, i, t, r, s);
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
return i;
|
|
1451
|
+
}
|
|
1452
|
+
internalBinaryWrite(e, t, n) {
|
|
1453
|
+
e.code !== "" && t.tag(1, s.LengthDelimited).string(e.code), e.content !== "" && t.tag(2, s.LengthDelimited).string(e.content);
|
|
1454
|
+
let r = n.writeUnknownFields;
|
|
1455
|
+
return r !== !1 && (r == 1 ? o.onWrite : r)(this.typeName, e, t), t;
|
|
1456
|
+
}
|
|
1457
|
+
}(), ke = /* @__PURE__ */ function(e) {
|
|
1458
|
+
return e[e.NULL_VALUE = 0] = "NULL_VALUE", e;
|
|
1459
|
+
}({}), B = new class extends R {
|
|
1460
|
+
constructor() {
|
|
1461
|
+
super("shared.Struct", [{
|
|
1462
|
+
no: 1,
|
|
1463
|
+
name: "fields",
|
|
1464
|
+
kind: "map",
|
|
1465
|
+
K: 9,
|
|
1466
|
+
V: {
|
|
1467
|
+
kind: "message",
|
|
1468
|
+
T: () => V
|
|
1469
|
+
}
|
|
1470
|
+
}]);
|
|
1471
|
+
}
|
|
1472
|
+
create(e) {
|
|
1473
|
+
let t = globalThis.Object.create(this.messagePrototype);
|
|
1474
|
+
return t.fields = {}, e !== void 0 && M(this, t, e), t;
|
|
1475
|
+
}
|
|
1476
|
+
internalBinaryRead(e, t, n, r) {
|
|
1477
|
+
let i = r ?? this.create(), a = e.pos + t;
|
|
1478
|
+
for (; e.pos < a;) {
|
|
1479
|
+
let [t, r] = e.tag();
|
|
1480
|
+
switch (t) {
|
|
1481
|
+
case 1:
|
|
1482
|
+
this.binaryReadMap1(i.fields, e, n);
|
|
1483
|
+
break;
|
|
1484
|
+
default:
|
|
1485
|
+
let a = n.readUnknownField;
|
|
1486
|
+
if (a === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${r}) for ${this.typeName}`);
|
|
1487
|
+
let s = e.skip(r);
|
|
1488
|
+
a !== !1 && (a === !0 ? o.onRead : a)(this.typeName, i, t, r, s);
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
return i;
|
|
1492
|
+
}
|
|
1493
|
+
binaryReadMap1(e, t, n) {
|
|
1494
|
+
let r = t.uint32(), i = t.pos + r, a, o;
|
|
1495
|
+
for (; t.pos < i;) {
|
|
1496
|
+
let [e, r] = t.tag();
|
|
1497
|
+
switch (e) {
|
|
1498
|
+
case 1:
|
|
1499
|
+
a = t.string();
|
|
1500
|
+
break;
|
|
1501
|
+
case 2:
|
|
1502
|
+
o = V.internalBinaryRead(t, t.uint32(), n);
|
|
1503
|
+
break;
|
|
1504
|
+
default: throw new globalThis.Error("unknown map entry field for shared.Struct.fields");
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
e[a ?? ""] = o ?? V.create();
|
|
1508
|
+
}
|
|
1509
|
+
internalBinaryWrite(e, t, n) {
|
|
1510
|
+
for (let r of globalThis.Object.keys(e.fields)) t.tag(1, s.LengthDelimited).fork().tag(1, s.LengthDelimited).string(r), t.tag(2, s.LengthDelimited).fork(), V.internalBinaryWrite(e.fields[r], t, n), t.join().join();
|
|
1511
|
+
let r = n.writeUnknownFields;
|
|
1512
|
+
return r !== !1 && (r == 1 ? o.onWrite : r)(this.typeName, e, t), t;
|
|
1513
|
+
}
|
|
1514
|
+
}(), V = new class extends R {
|
|
1515
|
+
constructor() {
|
|
1516
|
+
super("shared.Value", [
|
|
1517
|
+
{
|
|
1518
|
+
no: 1,
|
|
1519
|
+
name: "null_value",
|
|
1520
|
+
kind: "enum",
|
|
1521
|
+
oneof: "kind",
|
|
1522
|
+
T: () => ["shared.NullValue", ke]
|
|
1523
|
+
},
|
|
1524
|
+
{
|
|
1525
|
+
no: 2,
|
|
1526
|
+
name: "number_value",
|
|
1527
|
+
kind: "message",
|
|
1528
|
+
oneof: "kind",
|
|
1529
|
+
T: () => H
|
|
1530
|
+
},
|
|
1531
|
+
{
|
|
1532
|
+
no: 3,
|
|
1533
|
+
name: "string_value",
|
|
1534
|
+
kind: "scalar",
|
|
1535
|
+
oneof: "kind",
|
|
1536
|
+
T: 9
|
|
1537
|
+
},
|
|
1538
|
+
{
|
|
1539
|
+
no: 4,
|
|
1540
|
+
name: "bool_value",
|
|
1541
|
+
kind: "scalar",
|
|
1542
|
+
oneof: "kind",
|
|
1543
|
+
T: 8
|
|
1544
|
+
},
|
|
1545
|
+
{
|
|
1546
|
+
no: 5,
|
|
1547
|
+
name: "struct_value",
|
|
1548
|
+
kind: "message",
|
|
1549
|
+
oneof: "kind",
|
|
1550
|
+
T: () => B
|
|
1551
|
+
},
|
|
1552
|
+
{
|
|
1553
|
+
no: 6,
|
|
1554
|
+
name: "list_value",
|
|
1555
|
+
kind: "message",
|
|
1556
|
+
oneof: "kind",
|
|
1557
|
+
T: () => U
|
|
1558
|
+
}
|
|
1559
|
+
]);
|
|
1560
|
+
}
|
|
1561
|
+
create(e) {
|
|
1562
|
+
let t = globalThis.Object.create(this.messagePrototype);
|
|
1563
|
+
return t.kind = { oneofKind: void 0 }, e !== void 0 && M(this, t, e), t;
|
|
1564
|
+
}
|
|
1565
|
+
internalBinaryRead(e, t, n, r) {
|
|
1566
|
+
let i = r ?? this.create(), a = e.pos + t;
|
|
1567
|
+
for (; e.pos < a;) {
|
|
1568
|
+
let [t, r] = e.tag();
|
|
1569
|
+
switch (t) {
|
|
1570
|
+
case 1:
|
|
1571
|
+
i.kind = {
|
|
1572
|
+
oneofKind: "nullValue",
|
|
1573
|
+
nullValue: e.int32()
|
|
1574
|
+
};
|
|
1575
|
+
break;
|
|
1576
|
+
case 2:
|
|
1577
|
+
i.kind = {
|
|
1578
|
+
oneofKind: "numberValue",
|
|
1579
|
+
numberValue: H.internalBinaryRead(e, e.uint32(), n, i.kind.numberValue)
|
|
1580
|
+
};
|
|
1581
|
+
break;
|
|
1582
|
+
case 3:
|
|
1583
|
+
i.kind = {
|
|
1584
|
+
oneofKind: "stringValue",
|
|
1585
|
+
stringValue: e.string()
|
|
1586
|
+
};
|
|
1587
|
+
break;
|
|
1588
|
+
case 4:
|
|
1589
|
+
i.kind = {
|
|
1590
|
+
oneofKind: "boolValue",
|
|
1591
|
+
boolValue: e.bool()
|
|
1592
|
+
};
|
|
1593
|
+
break;
|
|
1594
|
+
case 5:
|
|
1595
|
+
i.kind = {
|
|
1596
|
+
oneofKind: "structValue",
|
|
1597
|
+
structValue: B.internalBinaryRead(e, e.uint32(), n, i.kind.structValue)
|
|
1598
|
+
};
|
|
1599
|
+
break;
|
|
1600
|
+
case 6:
|
|
1601
|
+
i.kind = {
|
|
1602
|
+
oneofKind: "listValue",
|
|
1603
|
+
listValue: U.internalBinaryRead(e, e.uint32(), n, i.kind.listValue)
|
|
1604
|
+
};
|
|
1605
|
+
break;
|
|
1606
|
+
default:
|
|
1607
|
+
let a = n.readUnknownField;
|
|
1608
|
+
if (a === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${r}) for ${this.typeName}`);
|
|
1609
|
+
let s = e.skip(r);
|
|
1610
|
+
a !== !1 && (a === !0 ? o.onRead : a)(this.typeName, i, t, r, s);
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
return i;
|
|
1614
|
+
}
|
|
1615
|
+
internalBinaryWrite(e, t, n) {
|
|
1616
|
+
e.kind.oneofKind === "nullValue" && t.tag(1, s.Varint).int32(e.kind.nullValue), e.kind.oneofKind === "numberValue" && H.internalBinaryWrite(e.kind.numberValue, t.tag(2, s.LengthDelimited).fork(), n).join(), e.kind.oneofKind === "stringValue" && t.tag(3, s.LengthDelimited).string(e.kind.stringValue), e.kind.oneofKind === "boolValue" && t.tag(4, s.Varint).bool(e.kind.boolValue), e.kind.oneofKind === "structValue" && B.internalBinaryWrite(e.kind.structValue, t.tag(5, s.LengthDelimited).fork(), n).join(), e.kind.oneofKind === "listValue" && U.internalBinaryWrite(e.kind.listValue, t.tag(6, s.LengthDelimited).fork(), n).join();
|
|
1617
|
+
let r = n.writeUnknownFields;
|
|
1618
|
+
return r !== !1 && (r == 1 ? o.onWrite : r)(this.typeName, e, t), t;
|
|
1619
|
+
}
|
|
1620
|
+
}(), H = new class extends R {
|
|
1621
|
+
constructor() {
|
|
1622
|
+
super("shared.NumberValue", [{
|
|
1623
|
+
no: 1,
|
|
1624
|
+
name: "integer",
|
|
1625
|
+
kind: "scalar",
|
|
1626
|
+
oneof: "number",
|
|
1627
|
+
T: 3,
|
|
1628
|
+
L: 0
|
|
1629
|
+
}, {
|
|
1630
|
+
no: 2,
|
|
1631
|
+
name: "float",
|
|
1632
|
+
kind: "scalar",
|
|
1633
|
+
oneof: "number",
|
|
1634
|
+
T: 1
|
|
1635
|
+
}]);
|
|
1636
|
+
}
|
|
1637
|
+
create(e) {
|
|
1638
|
+
let t = globalThis.Object.create(this.messagePrototype);
|
|
1639
|
+
return t.number = { oneofKind: void 0 }, e !== void 0 && M(this, t, e), t;
|
|
1640
|
+
}
|
|
1641
|
+
internalBinaryRead(e, t, n, r) {
|
|
1642
|
+
let i = r ?? this.create(), a = e.pos + t;
|
|
1643
|
+
for (; e.pos < a;) {
|
|
1644
|
+
let [t, r] = e.tag();
|
|
1645
|
+
switch (t) {
|
|
1646
|
+
case 1:
|
|
1647
|
+
i.number = {
|
|
1648
|
+
oneofKind: "integer",
|
|
1649
|
+
integer: e.int64().toBigInt()
|
|
1650
|
+
};
|
|
1651
|
+
break;
|
|
1652
|
+
case 2:
|
|
1653
|
+
i.number = {
|
|
1654
|
+
oneofKind: "float",
|
|
1655
|
+
float: e.double()
|
|
1656
|
+
};
|
|
1657
|
+
break;
|
|
1658
|
+
default:
|
|
1659
|
+
let a = n.readUnknownField;
|
|
1660
|
+
if (a === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${r}) for ${this.typeName}`);
|
|
1661
|
+
let s = e.skip(r);
|
|
1662
|
+
a !== !1 && (a === !0 ? o.onRead : a)(this.typeName, i, t, r, s);
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1665
|
+
return i;
|
|
1666
|
+
}
|
|
1667
|
+
internalBinaryWrite(e, t, n) {
|
|
1668
|
+
e.number.oneofKind === "integer" && t.tag(1, s.Varint).int64(e.number.integer), e.number.oneofKind === "float" && t.tag(2, s.Bit64).double(e.number.float);
|
|
1669
|
+
let r = n.writeUnknownFields;
|
|
1670
|
+
return r !== !1 && (r == 1 ? o.onWrite : r)(this.typeName, e, t), t;
|
|
1671
|
+
}
|
|
1672
|
+
}(), U = new class extends R {
|
|
1673
|
+
constructor() {
|
|
1674
|
+
super("shared.ListValue", [{
|
|
1675
|
+
no: 1,
|
|
1676
|
+
name: "values",
|
|
1677
|
+
kind: "message",
|
|
1678
|
+
repeat: 2,
|
|
1679
|
+
T: () => V
|
|
1680
|
+
}]);
|
|
1681
|
+
}
|
|
1682
|
+
create(e) {
|
|
1683
|
+
let t = globalThis.Object.create(this.messagePrototype);
|
|
1684
|
+
return t.values = [], e !== void 0 && M(this, t, e), t;
|
|
1685
|
+
}
|
|
1686
|
+
internalBinaryRead(e, t, n, r) {
|
|
1687
|
+
let i = r ?? this.create(), a = e.pos + t;
|
|
1688
|
+
for (; e.pos < a;) {
|
|
1689
|
+
let [t, r] = e.tag();
|
|
1690
|
+
switch (t) {
|
|
1691
|
+
case 1:
|
|
1692
|
+
i.values.push(V.internalBinaryRead(e, e.uint32(), n));
|
|
1693
|
+
break;
|
|
1694
|
+
default:
|
|
1695
|
+
let a = n.readUnknownField;
|
|
1696
|
+
if (a === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${r}) for ${this.typeName}`);
|
|
1697
|
+
let s = e.skip(r);
|
|
1698
|
+
a !== !1 && (a === !0 ? o.onRead : a)(this.typeName, i, t, r, s);
|
|
1699
|
+
}
|
|
1700
|
+
}
|
|
1701
|
+
return i;
|
|
1702
|
+
}
|
|
1703
|
+
internalBinaryWrite(e, t, n) {
|
|
1704
|
+
for (let r = 0; r < e.values.length; r++) V.internalBinaryWrite(e.values[r], t.tag(1, s.LengthDelimited).fork(), n).join();
|
|
1705
|
+
let r = n.writeUnknownFields;
|
|
1706
|
+
return r !== !1 && (r == 1 ? o.onWrite : r)(this.typeName, e, t), t;
|
|
1707
|
+
}
|
|
1708
|
+
}(), W = new class extends R {
|
|
1709
|
+
constructor() {
|
|
1710
|
+
super("shared.ActionConfiguration", [{
|
|
1711
|
+
no: 1,
|
|
1712
|
+
name: "identifier",
|
|
1713
|
+
kind: "scalar",
|
|
1714
|
+
T: 9
|
|
1715
|
+
}, {
|
|
1716
|
+
no: 2,
|
|
1717
|
+
name: "value",
|
|
1718
|
+
kind: "message",
|
|
1719
|
+
T: () => V
|
|
1720
|
+
}]);
|
|
1721
|
+
}
|
|
1722
|
+
create(e) {
|
|
1723
|
+
let t = globalThis.Object.create(this.messagePrototype);
|
|
1724
|
+
return t.identifier = "", e !== void 0 && M(this, t, e), t;
|
|
1725
|
+
}
|
|
1726
|
+
internalBinaryRead(e, t, n, r) {
|
|
1727
|
+
let i = r ?? this.create(), a = e.pos + t;
|
|
1728
|
+
for (; e.pos < a;) {
|
|
1729
|
+
let [t, r] = e.tag();
|
|
1730
|
+
switch (t) {
|
|
1731
|
+
case 1:
|
|
1732
|
+
i.identifier = e.string();
|
|
1733
|
+
break;
|
|
1734
|
+
case 2:
|
|
1735
|
+
i.value = V.internalBinaryRead(e, e.uint32(), n, i.value);
|
|
1736
|
+
break;
|
|
1737
|
+
default:
|
|
1738
|
+
let a = n.readUnknownField;
|
|
1739
|
+
if (a === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${r}) for ${this.typeName}`);
|
|
1740
|
+
let s = e.skip(r);
|
|
1741
|
+
a !== !1 && (a === !0 ? o.onRead : a)(this.typeName, i, t, r, s);
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
1744
|
+
return i;
|
|
1745
|
+
}
|
|
1746
|
+
internalBinaryWrite(e, t, n) {
|
|
1747
|
+
e.identifier !== "" && t.tag(1, s.LengthDelimited).string(e.identifier), e.value && V.internalBinaryWrite(e.value, t.tag(2, s.LengthDelimited).fork(), n).join();
|
|
1748
|
+
let r = n.writeUnknownFields;
|
|
1749
|
+
return r !== !1 && (r == 1 ? o.onWrite : r)(this.typeName, e, t), t;
|
|
1750
|
+
}
|
|
1751
|
+
}(), G = new class extends R {
|
|
1752
|
+
constructor() {
|
|
1753
|
+
super("shared.ActionProjectConfiguration", [{
|
|
1754
|
+
no: 1,
|
|
1755
|
+
name: "project_id",
|
|
1756
|
+
kind: "scalar",
|
|
1757
|
+
T: 3,
|
|
1758
|
+
L: 0
|
|
1759
|
+
}, {
|
|
1760
|
+
no: 2,
|
|
1761
|
+
name: "action_configurations",
|
|
1762
|
+
kind: "message",
|
|
1763
|
+
repeat: 2,
|
|
1764
|
+
T: () => W
|
|
1765
|
+
}]);
|
|
1766
|
+
}
|
|
1767
|
+
create(e) {
|
|
1768
|
+
let t = globalThis.Object.create(this.messagePrototype);
|
|
1769
|
+
return t.projectId = 0n, t.actionConfigurations = [], e !== void 0 && M(this, t, e), t;
|
|
1770
|
+
}
|
|
1771
|
+
internalBinaryRead(e, t, n, r) {
|
|
1772
|
+
let i = r ?? this.create(), a = e.pos + t;
|
|
1773
|
+
for (; e.pos < a;) {
|
|
1774
|
+
let [t, r] = e.tag();
|
|
1775
|
+
switch (t) {
|
|
1776
|
+
case 1:
|
|
1777
|
+
i.projectId = e.int64().toBigInt();
|
|
1778
|
+
break;
|
|
1779
|
+
case 2:
|
|
1780
|
+
i.actionConfigurations.push(W.internalBinaryRead(e, e.uint32(), n));
|
|
1781
|
+
break;
|
|
1782
|
+
default:
|
|
1783
|
+
let a = n.readUnknownField;
|
|
1784
|
+
if (a === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${r}) for ${this.typeName}`);
|
|
1785
|
+
let s = e.skip(r);
|
|
1786
|
+
a !== !1 && (a === !0 ? o.onRead : a)(this.typeName, i, t, r, s);
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
1789
|
+
return i;
|
|
1790
|
+
}
|
|
1791
|
+
internalBinaryWrite(e, t, n) {
|
|
1792
|
+
e.projectId !== 0n && t.tag(1, s.Varint).int64(e.projectId);
|
|
1793
|
+
for (let r = 0; r < e.actionConfigurations.length; r++) W.internalBinaryWrite(e.actionConfigurations[r], t.tag(2, s.LengthDelimited).fork(), n).join();
|
|
1794
|
+
let r = n.writeUnknownFields;
|
|
1795
|
+
return r !== !1 && (r == 1 ? o.onWrite : r)(this.typeName, e, t), t;
|
|
1796
|
+
}
|
|
1797
|
+
}(), Ae = new class extends R {
|
|
1798
|
+
constructor() {
|
|
1799
|
+
super("shared.ActionConfigurations", [{
|
|
1800
|
+
no: 1,
|
|
1801
|
+
name: "action_configurations",
|
|
1802
|
+
kind: "message",
|
|
1803
|
+
repeat: 2,
|
|
1804
|
+
T: () => G
|
|
1805
|
+
}]);
|
|
1806
|
+
}
|
|
1807
|
+
create(e) {
|
|
1808
|
+
let t = globalThis.Object.create(this.messagePrototype);
|
|
1809
|
+
return t.actionConfigurations = [], e !== void 0 && M(this, t, e), t;
|
|
1810
|
+
}
|
|
1811
|
+
internalBinaryRead(e, t, n, r) {
|
|
1812
|
+
let i = r ?? this.create(), a = e.pos + t;
|
|
1813
|
+
for (; e.pos < a;) {
|
|
1814
|
+
let [t, r] = e.tag();
|
|
1815
|
+
switch (t) {
|
|
1816
|
+
case 1:
|
|
1817
|
+
i.actionConfigurations.push(G.internalBinaryRead(e, e.uint32(), n));
|
|
1818
|
+
break;
|
|
1819
|
+
default:
|
|
1820
|
+
let a = n.readUnknownField;
|
|
1821
|
+
if (a === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${r}) for ${this.typeName}`);
|
|
1822
|
+
let s = e.skip(r);
|
|
1823
|
+
a !== !1 && (a === !0 ? o.onRead : a)(this.typeName, i, t, r, s);
|
|
1824
|
+
}
|
|
1825
|
+
}
|
|
1826
|
+
return i;
|
|
1827
|
+
}
|
|
1828
|
+
internalBinaryWrite(e, t, n) {
|
|
1829
|
+
for (let r = 0; r < e.actionConfigurations.length; r++) G.internalBinaryWrite(e.actionConfigurations[r], t.tag(1, s.LengthDelimited).fork(), n).join();
|
|
1830
|
+
let r = n.writeUnknownFields;
|
|
1831
|
+
return r !== !1 && (r == 1 ? o.onWrite : r)(this.typeName, e, t), t;
|
|
1832
|
+
}
|
|
1833
|
+
}(), je = new class extends R {
|
|
1834
|
+
constructor() {
|
|
1835
|
+
super("shared.ActionConfigurationDefinition", [
|
|
1836
|
+
{
|
|
1837
|
+
no: 1,
|
|
1838
|
+
name: "name",
|
|
1839
|
+
kind: "message",
|
|
1840
|
+
repeat: 2,
|
|
1841
|
+
T: () => z
|
|
1842
|
+
},
|
|
1843
|
+
{
|
|
1844
|
+
no: 2,
|
|
1845
|
+
name: "description",
|
|
1846
|
+
kind: "message",
|
|
1847
|
+
repeat: 2,
|
|
1848
|
+
T: () => z
|
|
1849
|
+
},
|
|
1850
|
+
{
|
|
1851
|
+
no: 3,
|
|
1852
|
+
name: "type",
|
|
1853
|
+
kind: "scalar",
|
|
1854
|
+
T: 9
|
|
1855
|
+
},
|
|
1856
|
+
{
|
|
1857
|
+
no: 4,
|
|
1858
|
+
name: "linked_data_type_identifiers",
|
|
1859
|
+
kind: "scalar",
|
|
1860
|
+
repeat: 2,
|
|
1861
|
+
T: 9
|
|
1862
|
+
},
|
|
1863
|
+
{
|
|
1864
|
+
no: 5,
|
|
1865
|
+
name: "default_value",
|
|
1866
|
+
kind: "message",
|
|
1867
|
+
T: () => V
|
|
1868
|
+
},
|
|
1869
|
+
{
|
|
1870
|
+
no: 6,
|
|
1871
|
+
name: "identifier",
|
|
1872
|
+
kind: "scalar",
|
|
1873
|
+
T: 9
|
|
1874
|
+
}
|
|
1875
|
+
]);
|
|
1876
|
+
}
|
|
1877
|
+
create(e) {
|
|
1878
|
+
let t = globalThis.Object.create(this.messagePrototype);
|
|
1879
|
+
return t.name = [], t.description = [], t.type = "", t.linkedDataTypeIdentifiers = [], t.identifier = "", e !== void 0 && M(this, t, e), t;
|
|
1880
|
+
}
|
|
1881
|
+
internalBinaryRead(e, t, n, r) {
|
|
1882
|
+
let i = r ?? this.create(), a = e.pos + t;
|
|
1883
|
+
for (; e.pos < a;) {
|
|
1884
|
+
let [t, r] = e.tag();
|
|
1885
|
+
switch (t) {
|
|
1886
|
+
case 1:
|
|
1887
|
+
i.name.push(z.internalBinaryRead(e, e.uint32(), n));
|
|
1888
|
+
break;
|
|
1889
|
+
case 2:
|
|
1890
|
+
i.description.push(z.internalBinaryRead(e, e.uint32(), n));
|
|
1891
|
+
break;
|
|
1892
|
+
case 3:
|
|
1893
|
+
i.type = e.string();
|
|
1894
|
+
break;
|
|
1895
|
+
case 4:
|
|
1896
|
+
i.linkedDataTypeIdentifiers.push(e.string());
|
|
1897
|
+
break;
|
|
1898
|
+
case 5:
|
|
1899
|
+
i.defaultValue = V.internalBinaryRead(e, e.uint32(), n, i.defaultValue);
|
|
1900
|
+
break;
|
|
1901
|
+
case 6:
|
|
1902
|
+
i.identifier = e.string();
|
|
1903
|
+
break;
|
|
1904
|
+
default:
|
|
1905
|
+
let a = n.readUnknownField;
|
|
1906
|
+
if (a === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${r}) for ${this.typeName}`);
|
|
1907
|
+
let s = e.skip(r);
|
|
1908
|
+
a !== !1 && (a === !0 ? o.onRead : a)(this.typeName, i, t, r, s);
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
return i;
|
|
1912
|
+
}
|
|
1913
|
+
internalBinaryWrite(e, t, n) {
|
|
1914
|
+
for (let r = 0; r < e.name.length; r++) z.internalBinaryWrite(e.name[r], t.tag(1, s.LengthDelimited).fork(), n).join();
|
|
1915
|
+
for (let r = 0; r < e.description.length; r++) z.internalBinaryWrite(e.description[r], t.tag(2, s.LengthDelimited).fork(), n).join();
|
|
1916
|
+
e.type !== "" && t.tag(3, s.LengthDelimited).string(e.type);
|
|
1917
|
+
for (let n = 0; n < e.linkedDataTypeIdentifiers.length; n++) t.tag(4, s.LengthDelimited).string(e.linkedDataTypeIdentifiers[n]);
|
|
1918
|
+
e.defaultValue && V.internalBinaryWrite(e.defaultValue, t.tag(5, s.LengthDelimited).fork(), n).join(), e.identifier !== "" && t.tag(6, s.LengthDelimited).string(e.identifier);
|
|
1919
|
+
let r = n.writeUnknownFields;
|
|
1920
|
+
return r !== !1 && (r == 1 ? o.onWrite : r)(this.typeName, e, t), t;
|
|
1921
|
+
}
|
|
1922
|
+
}(), Me = new class extends R {
|
|
1923
|
+
constructor() {
|
|
1924
|
+
super("shared.DefinitionDataType", [
|
|
1925
|
+
{
|
|
1926
|
+
no: 1,
|
|
1927
|
+
name: "identifier",
|
|
1928
|
+
kind: "scalar",
|
|
1929
|
+
T: 9
|
|
1930
|
+
},
|
|
1931
|
+
{
|
|
1932
|
+
no: 2,
|
|
1933
|
+
name: "name",
|
|
1934
|
+
kind: "message",
|
|
1935
|
+
repeat: 2,
|
|
1936
|
+
T: () => z
|
|
1937
|
+
},
|
|
1938
|
+
{
|
|
1939
|
+
no: 3,
|
|
1940
|
+
name: "display_message",
|
|
1941
|
+
kind: "message",
|
|
1942
|
+
repeat: 2,
|
|
1943
|
+
T: () => z
|
|
1944
|
+
},
|
|
1945
|
+
{
|
|
1946
|
+
no: 4,
|
|
1947
|
+
name: "alias",
|
|
1948
|
+
kind: "message",
|
|
1949
|
+
repeat: 2,
|
|
1950
|
+
T: () => z
|
|
1951
|
+
},
|
|
1952
|
+
{
|
|
1953
|
+
no: 5,
|
|
1954
|
+
name: "rules",
|
|
1955
|
+
kind: "message",
|
|
1956
|
+
repeat: 2,
|
|
1957
|
+
T: () => K
|
|
1958
|
+
},
|
|
1959
|
+
{
|
|
1960
|
+
no: 6,
|
|
1961
|
+
name: "generic_keys",
|
|
1962
|
+
kind: "scalar",
|
|
1963
|
+
repeat: 2,
|
|
1964
|
+
T: 9
|
|
1965
|
+
},
|
|
1966
|
+
{
|
|
1967
|
+
no: 7,
|
|
1968
|
+
name: "type",
|
|
1969
|
+
kind: "scalar",
|
|
1970
|
+
T: 9
|
|
1971
|
+
},
|
|
1972
|
+
{
|
|
1973
|
+
no: 8,
|
|
1974
|
+
name: "linked_data_type_identifiers",
|
|
1975
|
+
kind: "scalar",
|
|
1976
|
+
repeat: 2,
|
|
1977
|
+
T: 9
|
|
1978
|
+
},
|
|
1979
|
+
{
|
|
1980
|
+
no: 9,
|
|
1981
|
+
name: "version",
|
|
1982
|
+
kind: "scalar",
|
|
1983
|
+
T: 9
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
no: 10,
|
|
1987
|
+
name: "definition_source",
|
|
1988
|
+
kind: "scalar",
|
|
1989
|
+
T: 9
|
|
1990
|
+
}
|
|
1991
|
+
]);
|
|
1992
|
+
}
|
|
1993
|
+
create(e) {
|
|
1994
|
+
let t = globalThis.Object.create(this.messagePrototype);
|
|
1995
|
+
return t.identifier = "", t.name = [], t.displayMessage = [], t.alias = [], t.rules = [], t.genericKeys = [], t.type = "", t.linkedDataTypeIdentifiers = [], t.version = "", t.definitionSource = "", e !== void 0 && M(this, t, e), t;
|
|
1996
|
+
}
|
|
1997
|
+
internalBinaryRead(e, t, n, r) {
|
|
1998
|
+
let i = r ?? this.create(), a = e.pos + t;
|
|
1999
|
+
for (; e.pos < a;) {
|
|
2000
|
+
let [t, r] = e.tag();
|
|
2001
|
+
switch (t) {
|
|
2002
|
+
case 1:
|
|
2003
|
+
i.identifier = e.string();
|
|
2004
|
+
break;
|
|
2005
|
+
case 2:
|
|
2006
|
+
i.name.push(z.internalBinaryRead(e, e.uint32(), n));
|
|
2007
|
+
break;
|
|
2008
|
+
case 3:
|
|
2009
|
+
i.displayMessage.push(z.internalBinaryRead(e, e.uint32(), n));
|
|
2010
|
+
break;
|
|
2011
|
+
case 4:
|
|
2012
|
+
i.alias.push(z.internalBinaryRead(e, e.uint32(), n));
|
|
2013
|
+
break;
|
|
2014
|
+
case 5:
|
|
2015
|
+
i.rules.push(K.internalBinaryRead(e, e.uint32(), n));
|
|
2016
|
+
break;
|
|
2017
|
+
case 6:
|
|
2018
|
+
i.genericKeys.push(e.string());
|
|
2019
|
+
break;
|
|
2020
|
+
case 7:
|
|
2021
|
+
i.type = e.string();
|
|
2022
|
+
break;
|
|
2023
|
+
case 8:
|
|
2024
|
+
i.linkedDataTypeIdentifiers.push(e.string());
|
|
2025
|
+
break;
|
|
2026
|
+
case 9:
|
|
2027
|
+
i.version = e.string();
|
|
2028
|
+
break;
|
|
2029
|
+
case 10:
|
|
2030
|
+
i.definitionSource = e.string();
|
|
2031
|
+
break;
|
|
2032
|
+
default:
|
|
2033
|
+
let a = n.readUnknownField;
|
|
2034
|
+
if (a === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${r}) for ${this.typeName}`);
|
|
2035
|
+
let s = e.skip(r);
|
|
2036
|
+
a !== !1 && (a === !0 ? o.onRead : a)(this.typeName, i, t, r, s);
|
|
2037
|
+
}
|
|
2038
|
+
}
|
|
2039
|
+
return i;
|
|
2040
|
+
}
|
|
2041
|
+
internalBinaryWrite(e, t, n) {
|
|
2042
|
+
e.identifier !== "" && t.tag(1, s.LengthDelimited).string(e.identifier);
|
|
2043
|
+
for (let r = 0; r < e.name.length; r++) z.internalBinaryWrite(e.name[r], t.tag(2, s.LengthDelimited).fork(), n).join();
|
|
2044
|
+
for (let r = 0; r < e.displayMessage.length; r++) z.internalBinaryWrite(e.displayMessage[r], t.tag(3, s.LengthDelimited).fork(), n).join();
|
|
2045
|
+
for (let r = 0; r < e.alias.length; r++) z.internalBinaryWrite(e.alias[r], t.tag(4, s.LengthDelimited).fork(), n).join();
|
|
2046
|
+
for (let r = 0; r < e.rules.length; r++) K.internalBinaryWrite(e.rules[r], t.tag(5, s.LengthDelimited).fork(), n).join();
|
|
2047
|
+
for (let n = 0; n < e.genericKeys.length; n++) t.tag(6, s.LengthDelimited).string(e.genericKeys[n]);
|
|
2048
|
+
e.type !== "" && t.tag(7, s.LengthDelimited).string(e.type);
|
|
2049
|
+
for (let n = 0; n < e.linkedDataTypeIdentifiers.length; n++) t.tag(8, s.LengthDelimited).string(e.linkedDataTypeIdentifiers[n]);
|
|
2050
|
+
e.version !== "" && t.tag(9, s.LengthDelimited).string(e.version), e.definitionSource !== "" && t.tag(10, s.LengthDelimited).string(e.definitionSource);
|
|
2051
|
+
let r = n.writeUnknownFields;
|
|
2052
|
+
return r !== !1 && (r == 1 ? o.onWrite : r)(this.typeName, e, t), t;
|
|
2053
|
+
}
|
|
2054
|
+
}(), Ne = new class extends R {
|
|
2055
|
+
constructor() {
|
|
2056
|
+
super("shared.ExecutionDataType", [{
|
|
2057
|
+
no: 1,
|
|
2058
|
+
name: "identifier",
|
|
2059
|
+
kind: "scalar",
|
|
2060
|
+
T: 9
|
|
2061
|
+
}, {
|
|
2062
|
+
no: 2,
|
|
2063
|
+
name: "rules",
|
|
2064
|
+
kind: "message",
|
|
2065
|
+
repeat: 2,
|
|
2066
|
+
T: () => q
|
|
2067
|
+
}]);
|
|
2068
|
+
}
|
|
2069
|
+
create(e) {
|
|
2070
|
+
let t = globalThis.Object.create(this.messagePrototype);
|
|
2071
|
+
return t.identifier = "", t.rules = [], e !== void 0 && M(this, t, e), t;
|
|
2072
|
+
}
|
|
2073
|
+
internalBinaryRead(e, t, n, r) {
|
|
2074
|
+
let i = r ?? this.create(), a = e.pos + t;
|
|
2075
|
+
for (; e.pos < a;) {
|
|
2076
|
+
let [t, r] = e.tag();
|
|
2077
|
+
switch (t) {
|
|
2078
|
+
case 1:
|
|
2079
|
+
i.identifier = e.string();
|
|
2080
|
+
break;
|
|
2081
|
+
case 2:
|
|
2082
|
+
i.rules.push(q.internalBinaryRead(e, e.uint32(), n));
|
|
2083
|
+
break;
|
|
2084
|
+
default:
|
|
2085
|
+
let a = n.readUnknownField;
|
|
2086
|
+
if (a === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${r}) for ${this.typeName}`);
|
|
2087
|
+
let s = e.skip(r);
|
|
2088
|
+
a !== !1 && (a === !0 ? o.onRead : a)(this.typeName, i, t, r, s);
|
|
2089
|
+
}
|
|
2090
|
+
}
|
|
2091
|
+
return i;
|
|
2092
|
+
}
|
|
2093
|
+
internalBinaryWrite(e, t, n) {
|
|
2094
|
+
e.identifier !== "" && t.tag(1, s.LengthDelimited).string(e.identifier);
|
|
2095
|
+
for (let r = 0; r < e.rules.length; r++) q.internalBinaryWrite(e.rules[r], t.tag(2, s.LengthDelimited).fork(), n).join();
|
|
2096
|
+
let r = n.writeUnknownFields;
|
|
2097
|
+
return r !== !1 && (r == 1 ? o.onWrite : r)(this.typeName, e, t), t;
|
|
2098
|
+
}
|
|
2099
|
+
}(), K = new class extends R {
|
|
2100
|
+
constructor() {
|
|
2101
|
+
super("shared.DefinitionDataTypeRule", [{
|
|
2102
|
+
no: 1,
|
|
2103
|
+
name: "number_range",
|
|
2104
|
+
kind: "message",
|
|
2105
|
+
oneof: "config",
|
|
2106
|
+
T: () => J
|
|
2107
|
+
}, {
|
|
2108
|
+
no: 2,
|
|
2109
|
+
name: "regex",
|
|
2110
|
+
kind: "message",
|
|
2111
|
+
oneof: "config",
|
|
2112
|
+
T: () => Y
|
|
2113
|
+
}]);
|
|
2114
|
+
}
|
|
2115
|
+
create(e) {
|
|
2116
|
+
let t = globalThis.Object.create(this.messagePrototype);
|
|
2117
|
+
return t.config = { oneofKind: void 0 }, e !== void 0 && M(this, t, e), t;
|
|
2118
|
+
}
|
|
2119
|
+
internalBinaryRead(e, t, n, r) {
|
|
2120
|
+
let i = r ?? this.create(), a = e.pos + t;
|
|
2121
|
+
for (; e.pos < a;) {
|
|
2122
|
+
let [t, r] = e.tag();
|
|
2123
|
+
switch (t) {
|
|
2124
|
+
case 1:
|
|
2125
|
+
i.config = {
|
|
2126
|
+
oneofKind: "numberRange",
|
|
2127
|
+
numberRange: J.internalBinaryRead(e, e.uint32(), n, i.config.numberRange)
|
|
2128
|
+
};
|
|
2129
|
+
break;
|
|
2130
|
+
case 2:
|
|
2131
|
+
i.config = {
|
|
2132
|
+
oneofKind: "regex",
|
|
2133
|
+
regex: Y.internalBinaryRead(e, e.uint32(), n, i.config.regex)
|
|
2134
|
+
};
|
|
2135
|
+
break;
|
|
2136
|
+
default:
|
|
2137
|
+
let a = n.readUnknownField;
|
|
2138
|
+
if (a === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${r}) for ${this.typeName}`);
|
|
2139
|
+
let s = e.skip(r);
|
|
2140
|
+
a !== !1 && (a === !0 ? o.onRead : a)(this.typeName, i, t, r, s);
|
|
2141
|
+
}
|
|
2142
|
+
}
|
|
2143
|
+
return i;
|
|
2144
|
+
}
|
|
2145
|
+
internalBinaryWrite(e, t, n) {
|
|
2146
|
+
e.config.oneofKind === "numberRange" && J.internalBinaryWrite(e.config.numberRange, t.tag(1, s.LengthDelimited).fork(), n).join(), e.config.oneofKind === "regex" && Y.internalBinaryWrite(e.config.regex, t.tag(2, s.LengthDelimited).fork(), n).join();
|
|
2147
|
+
let r = n.writeUnknownFields;
|
|
2148
|
+
return r !== !1 && (r == 1 ? o.onWrite : r)(this.typeName, e, t), t;
|
|
2149
|
+
}
|
|
2150
|
+
}(), q = new class extends R {
|
|
2151
|
+
constructor() {
|
|
2152
|
+
super("shared.ExecutionDataTypeRule", [{
|
|
2153
|
+
no: 1,
|
|
2154
|
+
name: "number_range",
|
|
2155
|
+
kind: "message",
|
|
2156
|
+
oneof: "config",
|
|
2157
|
+
T: () => J
|
|
2158
|
+
}, {
|
|
2159
|
+
no: 2,
|
|
2160
|
+
name: "regex",
|
|
2161
|
+
kind: "message",
|
|
2162
|
+
oneof: "config",
|
|
2163
|
+
T: () => Y
|
|
2164
|
+
}]);
|
|
2165
|
+
}
|
|
2166
|
+
create(e) {
|
|
2167
|
+
let t = globalThis.Object.create(this.messagePrototype);
|
|
2168
|
+
return t.config = { oneofKind: void 0 }, e !== void 0 && M(this, t, e), t;
|
|
2169
|
+
}
|
|
2170
|
+
internalBinaryRead(e, t, n, r) {
|
|
2171
|
+
let i = r ?? this.create(), a = e.pos + t;
|
|
2172
|
+
for (; e.pos < a;) {
|
|
2173
|
+
let [t, r] = e.tag();
|
|
2174
|
+
switch (t) {
|
|
2175
|
+
case 1:
|
|
2176
|
+
i.config = {
|
|
2177
|
+
oneofKind: "numberRange",
|
|
2178
|
+
numberRange: J.internalBinaryRead(e, e.uint32(), n, i.config.numberRange)
|
|
2179
|
+
};
|
|
2180
|
+
break;
|
|
2181
|
+
case 2:
|
|
2182
|
+
i.config = {
|
|
2183
|
+
oneofKind: "regex",
|
|
2184
|
+
regex: Y.internalBinaryRead(e, e.uint32(), n, i.config.regex)
|
|
2185
|
+
};
|
|
2186
|
+
break;
|
|
2187
|
+
default:
|
|
2188
|
+
let a = n.readUnknownField;
|
|
2189
|
+
if (a === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${r}) for ${this.typeName}`);
|
|
2190
|
+
let s = e.skip(r);
|
|
2191
|
+
a !== !1 && (a === !0 ? o.onRead : a)(this.typeName, i, t, r, s);
|
|
2192
|
+
}
|
|
2193
|
+
}
|
|
2194
|
+
return i;
|
|
2195
|
+
}
|
|
2196
|
+
internalBinaryWrite(e, t, n) {
|
|
2197
|
+
e.config.oneofKind === "numberRange" && J.internalBinaryWrite(e.config.numberRange, t.tag(1, s.LengthDelimited).fork(), n).join(), e.config.oneofKind === "regex" && Y.internalBinaryWrite(e.config.regex, t.tag(2, s.LengthDelimited).fork(), n).join();
|
|
2198
|
+
let r = n.writeUnknownFields;
|
|
2199
|
+
return r !== !1 && (r == 1 ? o.onWrite : r)(this.typeName, e, t), t;
|
|
2200
|
+
}
|
|
2201
|
+
}(), J = new class extends R {
|
|
2202
|
+
constructor() {
|
|
2203
|
+
super("shared.DataTypeNumberRangeRuleConfig", [
|
|
2204
|
+
{
|
|
2205
|
+
no: 1,
|
|
2206
|
+
name: "from",
|
|
2207
|
+
kind: "scalar",
|
|
2208
|
+
T: 3,
|
|
2209
|
+
L: 0
|
|
2210
|
+
},
|
|
2211
|
+
{
|
|
2212
|
+
no: 2,
|
|
2213
|
+
name: "to",
|
|
2214
|
+
kind: "scalar",
|
|
2215
|
+
T: 3,
|
|
2216
|
+
L: 0
|
|
2217
|
+
},
|
|
2218
|
+
{
|
|
2219
|
+
no: 3,
|
|
2220
|
+
name: "steps",
|
|
2221
|
+
kind: "scalar",
|
|
2222
|
+
opt: !0,
|
|
2223
|
+
T: 3,
|
|
2224
|
+
L: 0
|
|
2225
|
+
}
|
|
2226
|
+
]);
|
|
2227
|
+
}
|
|
2228
|
+
create(e) {
|
|
2229
|
+
let t = globalThis.Object.create(this.messagePrototype);
|
|
2230
|
+
return t.from = 0n, t.to = 0n, e !== void 0 && M(this, t, e), t;
|
|
2231
|
+
}
|
|
2232
|
+
internalBinaryRead(e, t, n, r) {
|
|
2233
|
+
let i = r ?? this.create(), a = e.pos + t;
|
|
2234
|
+
for (; e.pos < a;) {
|
|
2235
|
+
let [t, r] = e.tag();
|
|
2236
|
+
switch (t) {
|
|
2237
|
+
case 1:
|
|
2238
|
+
i.from = e.int64().toBigInt();
|
|
2239
|
+
break;
|
|
2240
|
+
case 2:
|
|
2241
|
+
i.to = e.int64().toBigInt();
|
|
2242
|
+
break;
|
|
2243
|
+
case 3:
|
|
2244
|
+
i.steps = e.int64().toBigInt();
|
|
2245
|
+
break;
|
|
2246
|
+
default:
|
|
2247
|
+
let a = n.readUnknownField;
|
|
2248
|
+
if (a === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${r}) for ${this.typeName}`);
|
|
2249
|
+
let s = e.skip(r);
|
|
2250
|
+
a !== !1 && (a === !0 ? o.onRead : a)(this.typeName, i, t, r, s);
|
|
2251
|
+
}
|
|
2252
|
+
}
|
|
2253
|
+
return i;
|
|
2254
|
+
}
|
|
2255
|
+
internalBinaryWrite(e, t, n) {
|
|
2256
|
+
e.from !== 0n && t.tag(1, s.Varint).int64(e.from), e.to !== 0n && t.tag(2, s.Varint).int64(e.to), e.steps !== void 0 && t.tag(3, s.Varint).int64(e.steps);
|
|
2257
|
+
let r = n.writeUnknownFields;
|
|
2258
|
+
return r !== !1 && (r == 1 ? o.onWrite : r)(this.typeName, e, t), t;
|
|
2259
|
+
}
|
|
2260
|
+
}(), Y = new class extends R {
|
|
2261
|
+
constructor() {
|
|
2262
|
+
super("shared.DataTypeRegexRuleConfig", [{
|
|
2263
|
+
no: 1,
|
|
2264
|
+
name: "pattern",
|
|
2265
|
+
kind: "scalar",
|
|
2266
|
+
T: 9
|
|
2267
|
+
}]);
|
|
2268
|
+
}
|
|
2269
|
+
create(e) {
|
|
2270
|
+
let t = globalThis.Object.create(this.messagePrototype);
|
|
2271
|
+
return t.pattern = "", e !== void 0 && M(this, t, e), t;
|
|
2272
|
+
}
|
|
2273
|
+
internalBinaryRead(e, t, n, r) {
|
|
2274
|
+
let i = r ?? this.create(), a = e.pos + t;
|
|
2275
|
+
for (; e.pos < a;) {
|
|
2276
|
+
let [t, r] = e.tag();
|
|
2277
|
+
switch (t) {
|
|
2278
|
+
case 1:
|
|
2279
|
+
i.pattern = e.string();
|
|
2280
|
+
break;
|
|
2281
|
+
default:
|
|
2282
|
+
let a = n.readUnknownField;
|
|
2283
|
+
if (a === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${r}) for ${this.typeName}`);
|
|
2284
|
+
let s = e.skip(r);
|
|
2285
|
+
a !== !1 && (a === !0 ? o.onRead : a)(this.typeName, i, t, r, s);
|
|
2286
|
+
}
|
|
2287
|
+
}
|
|
2288
|
+
return i;
|
|
2289
|
+
}
|
|
2290
|
+
internalBinaryWrite(e, t, n) {
|
|
2291
|
+
e.pattern !== "" && t.tag(1, s.LengthDelimited).string(e.pattern);
|
|
2292
|
+
let r = n.writeUnknownFields;
|
|
2293
|
+
return r !== !1 && (r == 1 ? o.onWrite : r)(this.typeName, e, t), t;
|
|
2294
|
+
}
|
|
2295
|
+
}(), Pe = /* @__PURE__ */ function(e) {
|
|
2296
|
+
return e[e.UNKNOWN = 0] = "UNKNOWN", e[e.NONE = 1] = "NONE", e[e.PROJECT = 2] = "PROJECT", e;
|
|
2297
|
+
}({}), Fe = new class extends R {
|
|
2298
|
+
constructor() {
|
|
2299
|
+
super("shared.FlowType", [
|
|
2300
|
+
{
|
|
2301
|
+
no: 1,
|
|
2302
|
+
name: "identifier",
|
|
2303
|
+
kind: "scalar",
|
|
2304
|
+
T: 9
|
|
2305
|
+
},
|
|
2306
|
+
{
|
|
2307
|
+
no: 2,
|
|
2308
|
+
name: "settings",
|
|
2309
|
+
kind: "message",
|
|
2310
|
+
repeat: 2,
|
|
2311
|
+
T: () => X
|
|
2312
|
+
},
|
|
2313
|
+
{
|
|
2314
|
+
no: 3,
|
|
2315
|
+
name: "editable",
|
|
2316
|
+
kind: "scalar",
|
|
2317
|
+
T: 8
|
|
2318
|
+
},
|
|
2319
|
+
{
|
|
2320
|
+
no: 4,
|
|
2321
|
+
name: "name",
|
|
2322
|
+
kind: "message",
|
|
2323
|
+
repeat: 2,
|
|
2324
|
+
T: () => z
|
|
2325
|
+
},
|
|
2326
|
+
{
|
|
2327
|
+
no: 5,
|
|
2328
|
+
name: "description",
|
|
2329
|
+
kind: "message",
|
|
2330
|
+
repeat: 2,
|
|
2331
|
+
T: () => z
|
|
2332
|
+
},
|
|
2333
|
+
{
|
|
2334
|
+
no: 6,
|
|
2335
|
+
name: "documentation",
|
|
2336
|
+
kind: "message",
|
|
2337
|
+
repeat: 2,
|
|
2338
|
+
T: () => z
|
|
2339
|
+
},
|
|
2340
|
+
{
|
|
2341
|
+
no: 7,
|
|
2342
|
+
name: "display_message",
|
|
2343
|
+
kind: "message",
|
|
2344
|
+
repeat: 2,
|
|
2345
|
+
T: () => z
|
|
2346
|
+
},
|
|
2347
|
+
{
|
|
2348
|
+
no: 8,
|
|
2349
|
+
name: "alias",
|
|
2350
|
+
kind: "message",
|
|
2351
|
+
repeat: 2,
|
|
2352
|
+
T: () => z
|
|
2353
|
+
},
|
|
2354
|
+
{
|
|
2355
|
+
no: 9,
|
|
2356
|
+
name: "version",
|
|
2357
|
+
kind: "scalar",
|
|
2358
|
+
T: 9
|
|
2359
|
+
},
|
|
2360
|
+
{
|
|
2361
|
+
no: 10,
|
|
2362
|
+
name: "display_icon",
|
|
2363
|
+
kind: "scalar",
|
|
2364
|
+
T: 9
|
|
2365
|
+
},
|
|
2366
|
+
{
|
|
2367
|
+
no: 11,
|
|
2368
|
+
name: "definition_source",
|
|
2369
|
+
kind: "scalar",
|
|
2370
|
+
opt: !0,
|
|
2371
|
+
T: 9
|
|
2372
|
+
},
|
|
2373
|
+
{
|
|
2374
|
+
no: 12,
|
|
2375
|
+
name: "linked_data_type_identifiers",
|
|
2376
|
+
kind: "scalar",
|
|
2377
|
+
repeat: 2,
|
|
2378
|
+
T: 9
|
|
2379
|
+
},
|
|
2380
|
+
{
|
|
2381
|
+
no: 13,
|
|
2382
|
+
name: "signature",
|
|
2383
|
+
kind: "scalar",
|
|
2384
|
+
T: 9
|
|
2385
|
+
}
|
|
2386
|
+
]);
|
|
2387
|
+
}
|
|
2388
|
+
create(e) {
|
|
2389
|
+
let t = globalThis.Object.create(this.messagePrototype);
|
|
2390
|
+
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 = "", e !== void 0 && M(this, t, e), t;
|
|
2391
|
+
}
|
|
2392
|
+
internalBinaryRead(e, t, n, r) {
|
|
2393
|
+
let i = r ?? this.create(), a = e.pos + t;
|
|
2394
|
+
for (; e.pos < a;) {
|
|
2395
|
+
let [t, r] = e.tag();
|
|
2396
|
+
switch (t) {
|
|
2397
|
+
case 1:
|
|
2398
|
+
i.identifier = e.string();
|
|
2399
|
+
break;
|
|
2400
|
+
case 2:
|
|
2401
|
+
i.settings.push(X.internalBinaryRead(e, e.uint32(), n));
|
|
2402
|
+
break;
|
|
2403
|
+
case 3:
|
|
2404
|
+
i.editable = e.bool();
|
|
2405
|
+
break;
|
|
2406
|
+
case 4:
|
|
2407
|
+
i.name.push(z.internalBinaryRead(e, e.uint32(), n));
|
|
2408
|
+
break;
|
|
2409
|
+
case 5:
|
|
2410
|
+
i.description.push(z.internalBinaryRead(e, e.uint32(), n));
|
|
2411
|
+
break;
|
|
2412
|
+
case 6:
|
|
2413
|
+
i.documentation.push(z.internalBinaryRead(e, e.uint32(), n));
|
|
2414
|
+
break;
|
|
2415
|
+
case 7:
|
|
2416
|
+
i.displayMessage.push(z.internalBinaryRead(e, e.uint32(), n));
|
|
2417
|
+
break;
|
|
2418
|
+
case 8:
|
|
2419
|
+
i.alias.push(z.internalBinaryRead(e, e.uint32(), n));
|
|
2420
|
+
break;
|
|
2421
|
+
case 9:
|
|
2422
|
+
i.version = e.string();
|
|
2423
|
+
break;
|
|
2424
|
+
case 10:
|
|
2425
|
+
i.displayIcon = e.string();
|
|
2426
|
+
break;
|
|
2427
|
+
case 11:
|
|
2428
|
+
i.definitionSource = e.string();
|
|
2429
|
+
break;
|
|
2430
|
+
case 12:
|
|
2431
|
+
i.linkedDataTypeIdentifiers.push(e.string());
|
|
2432
|
+
break;
|
|
2433
|
+
case 13:
|
|
2434
|
+
i.signature = e.string();
|
|
2435
|
+
break;
|
|
2436
|
+
default:
|
|
2437
|
+
let a = n.readUnknownField;
|
|
2438
|
+
if (a === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${r}) for ${this.typeName}`);
|
|
2439
|
+
let s = e.skip(r);
|
|
2440
|
+
a !== !1 && (a === !0 ? o.onRead : a)(this.typeName, i, t, r, s);
|
|
2441
|
+
}
|
|
2442
|
+
}
|
|
2443
|
+
return i;
|
|
2444
|
+
}
|
|
2445
|
+
internalBinaryWrite(e, t, n) {
|
|
2446
|
+
e.identifier !== "" && t.tag(1, s.LengthDelimited).string(e.identifier);
|
|
2447
|
+
for (let r = 0; r < e.settings.length; r++) X.internalBinaryWrite(e.settings[r], t.tag(2, s.LengthDelimited).fork(), n).join();
|
|
2448
|
+
e.editable !== !1 && t.tag(3, s.Varint).bool(e.editable);
|
|
2449
|
+
for (let r = 0; r < e.name.length; r++) z.internalBinaryWrite(e.name[r], t.tag(4, s.LengthDelimited).fork(), n).join();
|
|
2450
|
+
for (let r = 0; r < e.description.length; r++) z.internalBinaryWrite(e.description[r], t.tag(5, s.LengthDelimited).fork(), n).join();
|
|
2451
|
+
for (let r = 0; r < e.documentation.length; r++) z.internalBinaryWrite(e.documentation[r], t.tag(6, s.LengthDelimited).fork(), n).join();
|
|
2452
|
+
for (let r = 0; r < e.displayMessage.length; r++) z.internalBinaryWrite(e.displayMessage[r], t.tag(7, s.LengthDelimited).fork(), n).join();
|
|
2453
|
+
for (let r = 0; r < e.alias.length; r++) z.internalBinaryWrite(e.alias[r], t.tag(8, s.LengthDelimited).fork(), n).join();
|
|
2454
|
+
e.version !== "" && t.tag(9, s.LengthDelimited).string(e.version), e.displayIcon !== "" && t.tag(10, s.LengthDelimited).string(e.displayIcon), e.definitionSource !== void 0 && t.tag(11, s.LengthDelimited).string(e.definitionSource);
|
|
2455
|
+
for (let n = 0; n < e.linkedDataTypeIdentifiers.length; n++) t.tag(12, s.LengthDelimited).string(e.linkedDataTypeIdentifiers[n]);
|
|
2456
|
+
e.signature !== "" && t.tag(13, s.LengthDelimited).string(e.signature);
|
|
2457
|
+
let r = n.writeUnknownFields;
|
|
2458
|
+
return r !== !1 && (r == 1 ? o.onWrite : r)(this.typeName, e, t), t;
|
|
2459
|
+
}
|
|
2460
|
+
}(), X = new class extends R {
|
|
2461
|
+
constructor() {
|
|
2462
|
+
super("shared.FlowTypeSetting", [
|
|
2463
|
+
{
|
|
2464
|
+
no: 1,
|
|
2465
|
+
name: "identifier",
|
|
2466
|
+
kind: "scalar",
|
|
2467
|
+
T: 9
|
|
2468
|
+
},
|
|
2469
|
+
{
|
|
2470
|
+
no: 2,
|
|
2471
|
+
name: "unique",
|
|
2472
|
+
kind: "enum",
|
|
2473
|
+
T: () => ["shared.FlowTypeSetting.UniquenessScope", Pe]
|
|
2474
|
+
},
|
|
2475
|
+
{
|
|
2476
|
+
no: 3,
|
|
2477
|
+
name: "default_value",
|
|
2478
|
+
kind: "message",
|
|
2479
|
+
T: () => V
|
|
2480
|
+
},
|
|
2481
|
+
{
|
|
2482
|
+
no: 4,
|
|
2483
|
+
name: "name",
|
|
2484
|
+
kind: "message",
|
|
2485
|
+
repeat: 2,
|
|
2486
|
+
T: () => z
|
|
2487
|
+
},
|
|
2488
|
+
{
|
|
2489
|
+
no: 5,
|
|
2490
|
+
name: "description",
|
|
2491
|
+
kind: "message",
|
|
2492
|
+
repeat: 2,
|
|
2493
|
+
T: () => z
|
|
2494
|
+
}
|
|
2495
|
+
]);
|
|
2496
|
+
}
|
|
2497
|
+
create(e) {
|
|
2498
|
+
let t = globalThis.Object.create(this.messagePrototype);
|
|
2499
|
+
return t.identifier = "", t.unique = 0, t.name = [], t.description = [], e !== void 0 && M(this, t, e), t;
|
|
2500
|
+
}
|
|
2501
|
+
internalBinaryRead(e, t, n, r) {
|
|
2502
|
+
let i = r ?? this.create(), a = e.pos + t;
|
|
2503
|
+
for (; e.pos < a;) {
|
|
2504
|
+
let [t, r] = e.tag();
|
|
2505
|
+
switch (t) {
|
|
2506
|
+
case 1:
|
|
2507
|
+
i.identifier = e.string();
|
|
2508
|
+
break;
|
|
2509
|
+
case 2:
|
|
2510
|
+
i.unique = e.int32();
|
|
2511
|
+
break;
|
|
2512
|
+
case 3:
|
|
2513
|
+
i.defaultValue = V.internalBinaryRead(e, e.uint32(), n, i.defaultValue);
|
|
2514
|
+
break;
|
|
2515
|
+
case 4:
|
|
2516
|
+
i.name.push(z.internalBinaryRead(e, e.uint32(), n));
|
|
2517
|
+
break;
|
|
2518
|
+
case 5:
|
|
2519
|
+
i.description.push(z.internalBinaryRead(e, e.uint32(), n));
|
|
2520
|
+
break;
|
|
2521
|
+
default:
|
|
2522
|
+
let a = n.readUnknownField;
|
|
2523
|
+
if (a === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${r}) for ${this.typeName}`);
|
|
2524
|
+
let s = e.skip(r);
|
|
2525
|
+
a !== !1 && (a === !0 ? o.onRead : a)(this.typeName, i, t, r, s);
|
|
2526
|
+
}
|
|
2527
|
+
}
|
|
2528
|
+
return i;
|
|
2529
|
+
}
|
|
2530
|
+
internalBinaryWrite(e, t, n) {
|
|
2531
|
+
e.identifier !== "" && t.tag(1, s.LengthDelimited).string(e.identifier), e.unique !== 0 && t.tag(2, s.Varint).int32(e.unique), e.defaultValue && V.internalBinaryWrite(e.defaultValue, t.tag(3, s.LengthDelimited).fork(), n).join();
|
|
2532
|
+
for (let r = 0; r < e.name.length; r++) z.internalBinaryWrite(e.name[r], t.tag(4, s.LengthDelimited).fork(), n).join();
|
|
2533
|
+
for (let r = 0; r < e.description.length; r++) z.internalBinaryWrite(e.description[r], t.tag(5, s.LengthDelimited).fork(), n).join();
|
|
2534
|
+
let r = n.writeUnknownFields;
|
|
2535
|
+
return r !== !1 && (r == 1 ? o.onWrite : r)(this.typeName, e, t), t;
|
|
2536
|
+
}
|
|
2537
|
+
}(), Ie = new class extends R {
|
|
2538
|
+
constructor() {
|
|
2539
|
+
super("shared.RuntimeFunctionDefinition", [
|
|
2540
|
+
{
|
|
2541
|
+
no: 1,
|
|
2542
|
+
name: "runtime_name",
|
|
2543
|
+
kind: "scalar",
|
|
2544
|
+
T: 9
|
|
2545
|
+
},
|
|
2546
|
+
{
|
|
2547
|
+
no: 2,
|
|
2548
|
+
name: "runtime_parameter_definitions",
|
|
2549
|
+
kind: "message",
|
|
2550
|
+
repeat: 2,
|
|
2551
|
+
T: () => Z
|
|
2552
|
+
},
|
|
2553
|
+
{
|
|
2554
|
+
no: 3,
|
|
2555
|
+
name: "signature",
|
|
2556
|
+
kind: "scalar",
|
|
2557
|
+
T: 9
|
|
2558
|
+
},
|
|
2559
|
+
{
|
|
2560
|
+
no: 4,
|
|
2561
|
+
name: "throws_error",
|
|
2562
|
+
kind: "scalar",
|
|
2563
|
+
T: 8
|
|
2564
|
+
},
|
|
2565
|
+
{
|
|
2566
|
+
no: 5,
|
|
2567
|
+
name: "name",
|
|
2568
|
+
kind: "message",
|
|
2569
|
+
repeat: 2,
|
|
2570
|
+
T: () => z
|
|
2571
|
+
},
|
|
2572
|
+
{
|
|
2573
|
+
no: 6,
|
|
2574
|
+
name: "description",
|
|
2575
|
+
kind: "message",
|
|
2576
|
+
repeat: 2,
|
|
2577
|
+
T: () => z
|
|
2578
|
+
},
|
|
2579
|
+
{
|
|
2580
|
+
no: 7,
|
|
2581
|
+
name: "documentation",
|
|
2582
|
+
kind: "message",
|
|
2583
|
+
repeat: 2,
|
|
2584
|
+
T: () => z
|
|
2585
|
+
},
|
|
2586
|
+
{
|
|
2587
|
+
no: 8,
|
|
2588
|
+
name: "deprecation_message",
|
|
2589
|
+
kind: "message",
|
|
2590
|
+
repeat: 2,
|
|
2591
|
+
T: () => z
|
|
2592
|
+
},
|
|
2593
|
+
{
|
|
2594
|
+
no: 9,
|
|
2595
|
+
name: "display_message",
|
|
2596
|
+
kind: "message",
|
|
2597
|
+
repeat: 2,
|
|
2598
|
+
T: () => z
|
|
2599
|
+
},
|
|
2600
|
+
{
|
|
2601
|
+
no: 10,
|
|
2602
|
+
name: "alias",
|
|
2603
|
+
kind: "message",
|
|
2604
|
+
repeat: 2,
|
|
2605
|
+
T: () => z
|
|
2606
|
+
},
|
|
2607
|
+
{
|
|
2608
|
+
no: 11,
|
|
2609
|
+
name: "linked_data_type_identifiers",
|
|
2610
|
+
kind: "scalar",
|
|
2611
|
+
repeat: 2,
|
|
2612
|
+
T: 9
|
|
2613
|
+
},
|
|
2614
|
+
{
|
|
2615
|
+
no: 12,
|
|
2616
|
+
name: "version",
|
|
2617
|
+
kind: "scalar",
|
|
2618
|
+
T: 9
|
|
2619
|
+
},
|
|
2620
|
+
{
|
|
2621
|
+
no: 13,
|
|
2622
|
+
name: "display_icon",
|
|
2623
|
+
kind: "scalar",
|
|
2624
|
+
T: 9
|
|
2625
|
+
},
|
|
2626
|
+
{
|
|
2627
|
+
no: 14,
|
|
2628
|
+
name: "definition_source",
|
|
2629
|
+
kind: "scalar",
|
|
2630
|
+
T: 9
|
|
2631
|
+
}
|
|
2632
|
+
]);
|
|
2633
|
+
}
|
|
2634
|
+
create(e) {
|
|
2635
|
+
let t = globalThis.Object.create(this.messagePrototype);
|
|
2636
|
+
return t.runtimeName = "", t.runtimeParameterDefinitions = [], 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 = "", e !== void 0 && M(this, t, e), t;
|
|
2637
|
+
}
|
|
2638
|
+
internalBinaryRead(e, t, n, r) {
|
|
2639
|
+
let i = r ?? this.create(), a = e.pos + t;
|
|
2640
|
+
for (; e.pos < a;) {
|
|
2641
|
+
let [t, r] = e.tag();
|
|
2642
|
+
switch (t) {
|
|
2643
|
+
case 1:
|
|
2644
|
+
i.runtimeName = e.string();
|
|
2645
|
+
break;
|
|
2646
|
+
case 2:
|
|
2647
|
+
i.runtimeParameterDefinitions.push(Z.internalBinaryRead(e, e.uint32(), n));
|
|
2648
|
+
break;
|
|
2649
|
+
case 3:
|
|
2650
|
+
i.signature = e.string();
|
|
2651
|
+
break;
|
|
2652
|
+
case 4:
|
|
2653
|
+
i.throwsError = e.bool();
|
|
2654
|
+
break;
|
|
2655
|
+
case 5:
|
|
2656
|
+
i.name.push(z.internalBinaryRead(e, e.uint32(), n));
|
|
2657
|
+
break;
|
|
2658
|
+
case 6:
|
|
2659
|
+
i.description.push(z.internalBinaryRead(e, e.uint32(), n));
|
|
2660
|
+
break;
|
|
2661
|
+
case 7:
|
|
2662
|
+
i.documentation.push(z.internalBinaryRead(e, e.uint32(), n));
|
|
2663
|
+
break;
|
|
2664
|
+
case 8:
|
|
2665
|
+
i.deprecationMessage.push(z.internalBinaryRead(e, e.uint32(), n));
|
|
2666
|
+
break;
|
|
2667
|
+
case 9:
|
|
2668
|
+
i.displayMessage.push(z.internalBinaryRead(e, e.uint32(), n));
|
|
2669
|
+
break;
|
|
2670
|
+
case 10:
|
|
2671
|
+
i.alias.push(z.internalBinaryRead(e, e.uint32(), n));
|
|
2672
|
+
break;
|
|
2673
|
+
case 11:
|
|
2674
|
+
i.linkedDataTypeIdentifiers.push(e.string());
|
|
2675
|
+
break;
|
|
2676
|
+
case 12:
|
|
2677
|
+
i.version = e.string();
|
|
2678
|
+
break;
|
|
2679
|
+
case 13:
|
|
2680
|
+
i.displayIcon = e.string();
|
|
2681
|
+
break;
|
|
2682
|
+
case 14:
|
|
2683
|
+
i.definitionSource = e.string();
|
|
2684
|
+
break;
|
|
2685
|
+
default:
|
|
2686
|
+
let a = n.readUnknownField;
|
|
2687
|
+
if (a === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${r}) for ${this.typeName}`);
|
|
2688
|
+
let s = e.skip(r);
|
|
2689
|
+
a !== !1 && (a === !0 ? o.onRead : a)(this.typeName, i, t, r, s);
|
|
2690
|
+
}
|
|
2691
|
+
}
|
|
2692
|
+
return i;
|
|
2693
|
+
}
|
|
2694
|
+
internalBinaryWrite(e, t, n) {
|
|
2695
|
+
e.runtimeName !== "" && t.tag(1, s.LengthDelimited).string(e.runtimeName);
|
|
2696
|
+
for (let r = 0; r < e.runtimeParameterDefinitions.length; r++) Z.internalBinaryWrite(e.runtimeParameterDefinitions[r], t.tag(2, s.LengthDelimited).fork(), n).join();
|
|
2697
|
+
e.signature !== "" && t.tag(3, s.LengthDelimited).string(e.signature), e.throwsError !== !1 && t.tag(4, s.Varint).bool(e.throwsError);
|
|
2698
|
+
for (let r = 0; r < e.name.length; r++) z.internalBinaryWrite(e.name[r], t.tag(5, s.LengthDelimited).fork(), n).join();
|
|
2699
|
+
for (let r = 0; r < e.description.length; r++) z.internalBinaryWrite(e.description[r], t.tag(6, s.LengthDelimited).fork(), n).join();
|
|
2700
|
+
for (let r = 0; r < e.documentation.length; r++) z.internalBinaryWrite(e.documentation[r], t.tag(7, s.LengthDelimited).fork(), n).join();
|
|
2701
|
+
for (let r = 0; r < e.deprecationMessage.length; r++) z.internalBinaryWrite(e.deprecationMessage[r], t.tag(8, s.LengthDelimited).fork(), n).join();
|
|
2702
|
+
for (let r = 0; r < e.displayMessage.length; r++) z.internalBinaryWrite(e.displayMessage[r], t.tag(9, s.LengthDelimited).fork(), n).join();
|
|
2703
|
+
for (let r = 0; r < e.alias.length; r++) z.internalBinaryWrite(e.alias[r], t.tag(10, s.LengthDelimited).fork(), n).join();
|
|
2704
|
+
for (let n = 0; n < e.linkedDataTypeIdentifiers.length; n++) t.tag(11, s.LengthDelimited).string(e.linkedDataTypeIdentifiers[n]);
|
|
2705
|
+
e.version !== "" && t.tag(12, s.LengthDelimited).string(e.version), e.displayIcon !== "" && t.tag(13, s.LengthDelimited).string(e.displayIcon), e.definitionSource !== "" && t.tag(14, s.LengthDelimited).string(e.definitionSource);
|
|
2706
|
+
let r = n.writeUnknownFields;
|
|
2707
|
+
return r !== !1 && (r == 1 ? o.onWrite : r)(this.typeName, e, t), t;
|
|
2708
|
+
}
|
|
2709
|
+
}(), Z = new class extends R {
|
|
2710
|
+
constructor() {
|
|
2711
|
+
super("shared.RuntimeParameterDefinition", [
|
|
2712
|
+
{
|
|
2713
|
+
no: 1,
|
|
2714
|
+
name: "runtime_name",
|
|
2715
|
+
kind: "scalar",
|
|
2716
|
+
T: 9
|
|
2717
|
+
},
|
|
2718
|
+
{
|
|
2719
|
+
no: 2,
|
|
2720
|
+
name: "default_value",
|
|
2721
|
+
kind: "message",
|
|
2722
|
+
T: () => V
|
|
2723
|
+
},
|
|
2724
|
+
{
|
|
2725
|
+
no: 3,
|
|
2726
|
+
name: "name",
|
|
2727
|
+
kind: "message",
|
|
2728
|
+
repeat: 2,
|
|
2729
|
+
T: () => z
|
|
2730
|
+
},
|
|
2731
|
+
{
|
|
2732
|
+
no: 4,
|
|
2733
|
+
name: "description",
|
|
2734
|
+
kind: "message",
|
|
2735
|
+
repeat: 2,
|
|
2736
|
+
T: () => z
|
|
2737
|
+
},
|
|
2738
|
+
{
|
|
2739
|
+
no: 5,
|
|
2740
|
+
name: "documentation",
|
|
2741
|
+
kind: "message",
|
|
2742
|
+
repeat: 2,
|
|
2743
|
+
T: () => z
|
|
2744
|
+
}
|
|
2745
|
+
]);
|
|
2746
|
+
}
|
|
2747
|
+
create(e) {
|
|
2748
|
+
let t = globalThis.Object.create(this.messagePrototype);
|
|
2749
|
+
return t.runtimeName = "", t.name = [], t.description = [], t.documentation = [], e !== void 0 && M(this, t, e), t;
|
|
2750
|
+
}
|
|
2751
|
+
internalBinaryRead(e, t, n, r) {
|
|
2752
|
+
let i = r ?? this.create(), a = e.pos + t;
|
|
2753
|
+
for (; e.pos < a;) {
|
|
2754
|
+
let [t, r] = e.tag();
|
|
2755
|
+
switch (t) {
|
|
2756
|
+
case 1:
|
|
2757
|
+
i.runtimeName = e.string();
|
|
2758
|
+
break;
|
|
2759
|
+
case 2:
|
|
2760
|
+
i.defaultValue = V.internalBinaryRead(e, e.uint32(), n, i.defaultValue);
|
|
2761
|
+
break;
|
|
2762
|
+
case 3:
|
|
2763
|
+
i.name.push(z.internalBinaryRead(e, e.uint32(), n));
|
|
2764
|
+
break;
|
|
2765
|
+
case 4:
|
|
2766
|
+
i.description.push(z.internalBinaryRead(e, e.uint32(), n));
|
|
2767
|
+
break;
|
|
2768
|
+
case 5:
|
|
2769
|
+
i.documentation.push(z.internalBinaryRead(e, e.uint32(), n));
|
|
2770
|
+
break;
|
|
2771
|
+
default:
|
|
2772
|
+
let a = n.readUnknownField;
|
|
2773
|
+
if (a === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${r}) for ${this.typeName}`);
|
|
2774
|
+
let s = e.skip(r);
|
|
2775
|
+
a !== !1 && (a === !0 ? o.onRead : a)(this.typeName, i, t, r, s);
|
|
2776
|
+
}
|
|
2777
|
+
}
|
|
2778
|
+
return i;
|
|
2779
|
+
}
|
|
2780
|
+
internalBinaryWrite(e, t, n) {
|
|
2781
|
+
e.runtimeName !== "" && t.tag(1, s.LengthDelimited).string(e.runtimeName), e.defaultValue && V.internalBinaryWrite(e.defaultValue, t.tag(2, s.LengthDelimited).fork(), n).join();
|
|
2782
|
+
for (let r = 0; r < e.name.length; r++) z.internalBinaryWrite(e.name[r], t.tag(3, s.LengthDelimited).fork(), n).join();
|
|
2783
|
+
for (let r = 0; r < e.description.length; r++) z.internalBinaryWrite(e.description[r], t.tag(4, s.LengthDelimited).fork(), n).join();
|
|
2784
|
+
for (let r = 0; r < e.documentation.length; r++) z.internalBinaryWrite(e.documentation[r], t.tag(5, s.LengthDelimited).fork(), n).join();
|
|
2785
|
+
let r = n.writeUnknownFields;
|
|
2786
|
+
return r !== !1 && (r == 1 ? o.onWrite : r)(this.typeName, e, t), t;
|
|
2787
|
+
}
|
|
2788
|
+
}(), Le = /* @__PURE__ */ function(e) {
|
|
2789
|
+
return e[e.UNKNOWN = 0] = "UNKNOWN", e[e.NOT_RESPONDING = 1] = "NOT_RESPONDING", e[e.NOT_READY = 2] = "NOT_READY", e[e.RUNNING = 3] = "RUNNING", e[e.STOPPED = 4] = "STOPPED", e;
|
|
2790
|
+
}({}), Re = /* @__PURE__ */ function(e) {
|
|
2791
|
+
return e[e.UNKNOWN = 0] = "UNKNOWN", e[e.NOT_RESPONDING = 1] = "NOT_RESPONDING", e[e.NOT_READY = 2] = "NOT_READY", e[e.RUNNING = 3] = "RUNNING", e[e.STOPPED = 4] = "STOPPED", e;
|
|
2792
|
+
}({}), Q = new class extends R {
|
|
2793
|
+
constructor() {
|
|
2794
|
+
super("shared.AdapterConfiguration", [{
|
|
2795
|
+
no: 1,
|
|
2796
|
+
name: "endpoint",
|
|
2797
|
+
kind: "scalar",
|
|
2798
|
+
oneof: "data",
|
|
2799
|
+
T: 9
|
|
2800
|
+
}]);
|
|
2801
|
+
}
|
|
2802
|
+
create(e) {
|
|
2803
|
+
let t = globalThis.Object.create(this.messagePrototype);
|
|
2804
|
+
return t.data = { oneofKind: void 0 }, e !== void 0 && M(this, t, e), t;
|
|
2805
|
+
}
|
|
2806
|
+
internalBinaryRead(e, t, n, r) {
|
|
2807
|
+
let i = r ?? this.create(), a = e.pos + t;
|
|
2808
|
+
for (; e.pos < a;) {
|
|
2809
|
+
let [t, r] = e.tag();
|
|
2810
|
+
switch (t) {
|
|
2811
|
+
case 1:
|
|
2812
|
+
i.data = {
|
|
2813
|
+
oneofKind: "endpoint",
|
|
2814
|
+
endpoint: e.string()
|
|
2815
|
+
};
|
|
2816
|
+
break;
|
|
2817
|
+
default:
|
|
2818
|
+
let a = n.readUnknownField;
|
|
2819
|
+
if (a === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${r}) for ${this.typeName}`);
|
|
2820
|
+
let s = e.skip(r);
|
|
2821
|
+
a !== !1 && (a === !0 ? o.onRead : a)(this.typeName, i, t, r, s);
|
|
2822
|
+
}
|
|
2823
|
+
}
|
|
2824
|
+
return i;
|
|
2825
|
+
}
|
|
2826
|
+
internalBinaryWrite(e, t, n) {
|
|
2827
|
+
e.data.oneofKind === "endpoint" && t.tag(1, s.LengthDelimited).string(e.data.endpoint);
|
|
2828
|
+
let r = n.writeUnknownFields;
|
|
2829
|
+
return r !== !1 && (r == 1 ? o.onWrite : r)(this.typeName, e, t), t;
|
|
2830
|
+
}
|
|
2831
|
+
}(), $ = new class extends R {
|
|
2832
|
+
constructor() {
|
|
2833
|
+
super("shared.RuntimeFeature", [{
|
|
2834
|
+
no: 1,
|
|
2835
|
+
name: "name",
|
|
2836
|
+
kind: "message",
|
|
2837
|
+
repeat: 2,
|
|
2838
|
+
T: () => z
|
|
2839
|
+
}, {
|
|
2840
|
+
no: 2,
|
|
2841
|
+
name: "description",
|
|
2842
|
+
kind: "message",
|
|
2843
|
+
repeat: 2,
|
|
2844
|
+
T: () => z
|
|
2845
|
+
}]);
|
|
2846
|
+
}
|
|
2847
|
+
create(e) {
|
|
2848
|
+
let t = globalThis.Object.create(this.messagePrototype);
|
|
2849
|
+
return t.name = [], t.description = [], e !== void 0 && M(this, t, e), t;
|
|
2850
|
+
}
|
|
2851
|
+
internalBinaryRead(e, t, n, r) {
|
|
2852
|
+
let i = r ?? this.create(), a = e.pos + t;
|
|
2853
|
+
for (; e.pos < a;) {
|
|
2854
|
+
let [t, r] = e.tag();
|
|
2855
|
+
switch (t) {
|
|
2856
|
+
case 1:
|
|
2857
|
+
i.name.push(z.internalBinaryRead(e, e.uint32(), n));
|
|
2858
|
+
break;
|
|
2859
|
+
case 2:
|
|
2860
|
+
i.description.push(z.internalBinaryRead(e, e.uint32(), n));
|
|
2861
|
+
break;
|
|
2862
|
+
default:
|
|
2863
|
+
let a = n.readUnknownField;
|
|
2864
|
+
if (a === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${r}) for ${this.typeName}`);
|
|
2865
|
+
let s = e.skip(r);
|
|
2866
|
+
a !== !1 && (a === !0 ? o.onRead : a)(this.typeName, i, t, r, s);
|
|
2867
|
+
}
|
|
2868
|
+
}
|
|
2869
|
+
return i;
|
|
2870
|
+
}
|
|
2871
|
+
internalBinaryWrite(e, t, n) {
|
|
2872
|
+
for (let r = 0; r < e.name.length; r++) z.internalBinaryWrite(e.name[r], t.tag(1, s.LengthDelimited).fork(), n).join();
|
|
2873
|
+
for (let r = 0; r < e.description.length; r++) z.internalBinaryWrite(e.description[r], t.tag(2, s.LengthDelimited).fork(), n).join();
|
|
2874
|
+
let r = n.writeUnknownFields;
|
|
2875
|
+
return r !== !1 && (r == 1 ? o.onWrite : r)(this.typeName, e, t), t;
|
|
2876
|
+
}
|
|
2877
|
+
}(), ze = new class extends R {
|
|
2878
|
+
constructor() {
|
|
2879
|
+
super("shared.AdapterRuntimeStatus", [
|
|
2880
|
+
{
|
|
2881
|
+
no: 1,
|
|
2882
|
+
name: "status",
|
|
2883
|
+
kind: "enum",
|
|
2884
|
+
T: () => ["shared.AdapterRuntimeStatus.Status", Le]
|
|
2885
|
+
},
|
|
2886
|
+
{
|
|
2887
|
+
no: 2,
|
|
2888
|
+
name: "timestamp",
|
|
2889
|
+
kind: "scalar",
|
|
2890
|
+
T: 3,
|
|
2891
|
+
L: 0
|
|
2892
|
+
},
|
|
2893
|
+
{
|
|
2894
|
+
no: 3,
|
|
2895
|
+
name: "identifier",
|
|
2896
|
+
kind: "scalar",
|
|
2897
|
+
T: 9
|
|
2898
|
+
},
|
|
2899
|
+
{
|
|
2900
|
+
no: 4,
|
|
2901
|
+
name: "features",
|
|
2902
|
+
kind: "message",
|
|
2903
|
+
repeat: 2,
|
|
2904
|
+
T: () => $
|
|
2905
|
+
},
|
|
2906
|
+
{
|
|
2907
|
+
no: 5,
|
|
2908
|
+
name: "configurations",
|
|
2909
|
+
kind: "message",
|
|
2910
|
+
repeat: 2,
|
|
2911
|
+
T: () => Q
|
|
2912
|
+
}
|
|
2913
|
+
]);
|
|
2914
|
+
}
|
|
2915
|
+
create(e) {
|
|
2916
|
+
let t = globalThis.Object.create(this.messagePrototype);
|
|
2917
|
+
return t.status = 0, t.timestamp = 0n, t.identifier = "", t.features = [], t.configurations = [], e !== void 0 && M(this, t, e), t;
|
|
2918
|
+
}
|
|
2919
|
+
internalBinaryRead(e, t, n, r) {
|
|
2920
|
+
let i = r ?? this.create(), a = e.pos + t;
|
|
2921
|
+
for (; e.pos < a;) {
|
|
2922
|
+
let [t, r] = e.tag();
|
|
2923
|
+
switch (t) {
|
|
2924
|
+
case 1:
|
|
2925
|
+
i.status = e.int32();
|
|
2926
|
+
break;
|
|
2927
|
+
case 2:
|
|
2928
|
+
i.timestamp = e.int64().toBigInt();
|
|
2929
|
+
break;
|
|
2930
|
+
case 3:
|
|
2931
|
+
i.identifier = e.string();
|
|
2932
|
+
break;
|
|
2933
|
+
case 4:
|
|
2934
|
+
i.features.push($.internalBinaryRead(e, e.uint32(), n));
|
|
2935
|
+
break;
|
|
2936
|
+
case 5:
|
|
2937
|
+
i.configurations.push(Q.internalBinaryRead(e, e.uint32(), n));
|
|
2938
|
+
break;
|
|
2939
|
+
default:
|
|
2940
|
+
let a = n.readUnknownField;
|
|
2941
|
+
if (a === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${r}) for ${this.typeName}`);
|
|
2942
|
+
let s = e.skip(r);
|
|
2943
|
+
a !== !1 && (a === !0 ? o.onRead : a)(this.typeName, i, t, r, s);
|
|
2944
|
+
}
|
|
2945
|
+
}
|
|
2946
|
+
return i;
|
|
2947
|
+
}
|
|
2948
|
+
internalBinaryWrite(e, t, n) {
|
|
2949
|
+
e.status !== 0 && t.tag(1, s.Varint).int32(e.status), e.timestamp !== 0n && t.tag(2, s.Varint).int64(e.timestamp), e.identifier !== "" && t.tag(3, s.LengthDelimited).string(e.identifier);
|
|
2950
|
+
for (let r = 0; r < e.features.length; r++) $.internalBinaryWrite(e.features[r], t.tag(4, s.LengthDelimited).fork(), n).join();
|
|
2951
|
+
for (let r = 0; r < e.configurations.length; r++) Q.internalBinaryWrite(e.configurations[r], t.tag(5, s.LengthDelimited).fork(), n).join();
|
|
2952
|
+
let r = n.writeUnknownFields;
|
|
2953
|
+
return r !== !1 && (r == 1 ? o.onWrite : r)(this.typeName, e, t), t;
|
|
2954
|
+
}
|
|
2955
|
+
}(), Be = new class extends R {
|
|
2956
|
+
constructor() {
|
|
2957
|
+
super("shared.ExecutionRuntimeStatus", [
|
|
2958
|
+
{
|
|
2959
|
+
no: 1,
|
|
2960
|
+
name: "status",
|
|
2961
|
+
kind: "enum",
|
|
2962
|
+
T: () => ["shared.ExecutionRuntimeStatus.Status", Re]
|
|
2963
|
+
},
|
|
2964
|
+
{
|
|
2965
|
+
no: 2,
|
|
2966
|
+
name: "timestamp",
|
|
2967
|
+
kind: "scalar",
|
|
2968
|
+
T: 3,
|
|
2969
|
+
L: 0
|
|
2970
|
+
},
|
|
2971
|
+
{
|
|
2972
|
+
no: 3,
|
|
2973
|
+
name: "identifier",
|
|
2974
|
+
kind: "scalar",
|
|
2975
|
+
T: 9
|
|
2976
|
+
},
|
|
2977
|
+
{
|
|
2978
|
+
no: 4,
|
|
2979
|
+
name: "features",
|
|
2980
|
+
kind: "message",
|
|
2981
|
+
repeat: 2,
|
|
2982
|
+
T: () => $
|
|
2983
|
+
}
|
|
2984
|
+
]);
|
|
2985
|
+
}
|
|
2986
|
+
create(e) {
|
|
2987
|
+
let t = globalThis.Object.create(this.messagePrototype);
|
|
2988
|
+
return t.status = 0, t.timestamp = 0n, t.identifier = "", t.features = [], e !== void 0 && M(this, t, e), t;
|
|
2989
|
+
}
|
|
2990
|
+
internalBinaryRead(e, t, n, r) {
|
|
2991
|
+
let i = r ?? this.create(), a = e.pos + t;
|
|
2992
|
+
for (; e.pos < a;) {
|
|
2993
|
+
let [t, r] = e.tag();
|
|
2994
|
+
switch (t) {
|
|
2995
|
+
case 1:
|
|
2996
|
+
i.status = e.int32();
|
|
2997
|
+
break;
|
|
2998
|
+
case 2:
|
|
2999
|
+
i.timestamp = e.int64().toBigInt();
|
|
3000
|
+
break;
|
|
3001
|
+
case 3:
|
|
3002
|
+
i.identifier = e.string();
|
|
3003
|
+
break;
|
|
3004
|
+
case 4:
|
|
3005
|
+
i.features.push($.internalBinaryRead(e, e.uint32(), n));
|
|
3006
|
+
break;
|
|
3007
|
+
default:
|
|
3008
|
+
let a = n.readUnknownField;
|
|
3009
|
+
if (a === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${r}) for ${this.typeName}`);
|
|
3010
|
+
let s = e.skip(r);
|
|
3011
|
+
a !== !1 && (a === !0 ? o.onRead : a)(this.typeName, i, t, r, s);
|
|
3012
|
+
}
|
|
3013
|
+
}
|
|
3014
|
+
return i;
|
|
3015
|
+
}
|
|
3016
|
+
internalBinaryWrite(e, t, n) {
|
|
3017
|
+
e.status !== 0 && t.tag(1, s.Varint).int32(e.status), e.timestamp !== 0n && t.tag(2, s.Varint).int64(e.timestamp), e.identifier !== "" && t.tag(3, s.LengthDelimited).string(e.identifier);
|
|
3018
|
+
for (let r = 0; r < e.features.length; r++) $.internalBinaryWrite(e.features[r], t.tag(4, s.LengthDelimited).fork(), n).join();
|
|
3019
|
+
let r = n.writeUnknownFields;
|
|
3020
|
+
return r !== !1 && (r == 1 ? o.onWrite : r)(this.typeName, e, t), t;
|
|
3021
|
+
}
|
|
3022
|
+
}(), Ve = new class extends R {
|
|
3023
|
+
constructor() {
|
|
3024
|
+
super("shared.RuntimeUsage", [{
|
|
3025
|
+
no: 1,
|
|
3026
|
+
name: "flow_id",
|
|
3027
|
+
kind: "scalar",
|
|
3028
|
+
T: 3,
|
|
3029
|
+
L: 0
|
|
3030
|
+
}, {
|
|
3031
|
+
no: 2,
|
|
3032
|
+
name: "duration",
|
|
3033
|
+
kind: "scalar",
|
|
3034
|
+
T: 3,
|
|
3035
|
+
L: 0
|
|
3036
|
+
}]);
|
|
3037
|
+
}
|
|
3038
|
+
create(e) {
|
|
3039
|
+
let t = globalThis.Object.create(this.messagePrototype);
|
|
3040
|
+
return t.flowId = 0n, t.duration = 0n, e !== void 0 && M(this, t, e), t;
|
|
3041
|
+
}
|
|
3042
|
+
internalBinaryRead(e, t, n, r) {
|
|
3043
|
+
let i = r ?? this.create(), a = e.pos + t;
|
|
3044
|
+
for (; e.pos < a;) {
|
|
3045
|
+
let [t, r] = e.tag();
|
|
3046
|
+
switch (t) {
|
|
3047
|
+
case 1:
|
|
3048
|
+
i.flowId = e.int64().toBigInt();
|
|
3049
|
+
break;
|
|
3050
|
+
case 2:
|
|
3051
|
+
i.duration = e.int64().toBigInt();
|
|
3052
|
+
break;
|
|
3053
|
+
default:
|
|
3054
|
+
let a = n.readUnknownField;
|
|
3055
|
+
if (a === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${r}) for ${this.typeName}`);
|
|
3056
|
+
let s = e.skip(r);
|
|
3057
|
+
a !== !1 && (a === !0 ? o.onRead : a)(this.typeName, i, t, r, s);
|
|
3058
|
+
}
|
|
3059
|
+
}
|
|
3060
|
+
return i;
|
|
3061
|
+
}
|
|
3062
|
+
internalBinaryWrite(e, t, n) {
|
|
3063
|
+
e.flowId !== 0n && t.tag(1, s.Varint).int64(e.flowId), e.duration !== 0n && t.tag(2, s.Varint).int64(e.duration);
|
|
3064
|
+
let r = n.writeUnknownFields;
|
|
3065
|
+
return r !== !1 && (r == 1 ? o.onWrite : r)(this.typeName, e, t), t;
|
|
3066
|
+
}
|
|
3067
|
+
}();
|
|
3068
|
+
//#endregion
|
|
3069
|
+
export { M as A, U as C, V as D, B as E, oe as M, o as N, z as O, s as P, G as S, H as T, Ne as _, Be as a, je as b, Ie as c, X as d, Pe as f, K as g, Me as h, Le as i, E as j, R as k, Z as l, Y as m, Q as n, Re as o, J as p, ze as r, $ as s, Ve as t, Fe as u, q as v, ke as w, Ae as x, W as y };
|