@synnaxlabs/client 0.36.0 → 0.37.0
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/.turbo/turbo-build.log +5 -5
- package/dist/client.cjs +9 -9
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +744 -732
- package/dist/framer/frame.d.ts.map +1 -1
- package/dist/ontology/group/payload.d.ts.map +1 -1
- package/dist/transport.d.ts.map +1 -1
- package/dist/workspace/client.d.ts +2 -2
- package/dist/workspace/client.d.ts.map +1 -1
- package/dist/workspace/lineplot/client.d.ts +1 -1
- package/dist/workspace/lineplot/client.d.ts.map +1 -1
- package/dist/workspace/log/client.d.ts +1 -1
- package/dist/workspace/log/client.d.ts.map +1 -1
- package/dist/workspace/schematic/client.d.ts +1 -1
- package/dist/workspace/schematic/client.d.ts.map +1 -1
- package/dist/workspace/table/client.d.ts +1 -1
- package/dist/workspace/table/client.d.ts.map +1 -1
- package/package.json +9 -9
- package/src/client.ts +1 -1
- package/src/framer/frame.spec.ts +0 -1
- package/src/framer/frame.ts +1 -1
- package/src/framer/streamer.spec.ts +15 -6
- package/src/ontology/group/payload.ts +1 -0
- package/src/transport.ts +4 -4
- package/src/workspace/client.ts +6 -5
- package/src/workspace/lineplot/client.ts +5 -4
- package/src/workspace/log/client.ts +4 -3
- package/src/workspace/schematic/client.ts +5 -4
- package/src/workspace/table/client.ts +4 -3
package/dist/client.js
CHANGED
|
@@ -114,27 +114,53 @@ let go = class {
|
|
|
114
114
|
const en = new go();
|
|
115
115
|
new po();
|
|
116
116
|
new mo();
|
|
117
|
-
const
|
|
117
|
+
const wo = (n) => n != null && typeof n == "object" && "toString" in n, bo = (n, e = !1) => {
|
|
118
|
+
const t = wo(n) ? "stringer" : typeof n;
|
|
119
|
+
let r;
|
|
120
|
+
switch (t) {
|
|
121
|
+
case "string":
|
|
122
|
+
r = (i, a) => i.localeCompare(a);
|
|
123
|
+
break;
|
|
124
|
+
case "stringer":
|
|
125
|
+
r = (i, a) => i.toString().localeCompare(a.toString());
|
|
126
|
+
break;
|
|
127
|
+
case "number":
|
|
128
|
+
r = (i, a) => Number(i) - Number(a);
|
|
129
|
+
break;
|
|
130
|
+
case "bigint":
|
|
131
|
+
r = (i, a) => BigInt(i) - BigInt(a) > 0n ? 1 : -1;
|
|
132
|
+
break;
|
|
133
|
+
case "boolean":
|
|
134
|
+
r = (i, a) => Number(i) - Number(a);
|
|
135
|
+
break;
|
|
136
|
+
case "undefined":
|
|
137
|
+
r = () => 0;
|
|
138
|
+
break;
|
|
139
|
+
default:
|
|
140
|
+
return console.warn(`sortFunc: unknown type ${t}`), () => -1;
|
|
141
|
+
}
|
|
142
|
+
return e ? vo(r) : r;
|
|
143
|
+
}, vo = (n) => (e, t) => n(t, e), Nn = s.tuple([s.number(), s.number()]);
|
|
118
144
|
s.tuple([s.bigint(), s.bigint()]);
|
|
119
|
-
const Gs = s.object({ width: s.number(), height: s.number() }),
|
|
145
|
+
const Gs = s.object({ width: s.number(), height: s.number() }), To = s.object({
|
|
120
146
|
signedWidth: s.number(),
|
|
121
147
|
signedHeight: s.number()
|
|
122
|
-
}),
|
|
123
|
-
s.enum(
|
|
124
|
-
const
|
|
125
|
-
s.enum(
|
|
126
|
-
const fn = s.object({ x: s.number(), y: s.number() }),
|
|
148
|
+
}), Oo = ["width", "height"];
|
|
149
|
+
s.enum(Oo);
|
|
150
|
+
const Eo = ["start", "center", "end"], No = ["signedWidth", "signedHeight"];
|
|
151
|
+
s.enum(No);
|
|
152
|
+
const fn = s.object({ x: s.number(), y: s.number() }), So = s.object({ clientX: s.number(), clientY: s.number() }), Io = ["x", "y"], Vs = s.enum(Io), Fs = ["top", "right", "bottom", "left"];
|
|
127
153
|
s.enum(Fs);
|
|
128
|
-
const
|
|
129
|
-
s.enum(
|
|
130
|
-
const
|
|
131
|
-
s.enum(
|
|
132
|
-
const
|
|
133
|
-
s.union([
|
|
134
|
-
s.union([
|
|
154
|
+
const ko = ["left", "right"], Js = s.enum(ko), $o = ["top", "bottom"], Ks = s.enum($o), Hs = ["center"], Vr = s.enum(Hs), Ao = [...Fs, ...Hs], Xs = s.enum(Ao);
|
|
155
|
+
s.enum(Eo);
|
|
156
|
+
const Ro = ["first", "last"];
|
|
157
|
+
s.enum(Ro);
|
|
158
|
+
const xo = s.object({ lower: s.number(), upper: s.number() }), Co = s.object({ lower: s.bigint(), upper: s.bigint() });
|
|
159
|
+
s.union([xo, Nn]);
|
|
160
|
+
s.union([Co, Nn]);
|
|
135
161
|
s.union([Vs, Xs]);
|
|
136
162
|
s.union([Vs, Xs, s.instanceof(String)]);
|
|
137
|
-
const
|
|
163
|
+
const Po = (n) => typeof n == "bigint" || n instanceof BigInt, je = (n, e) => Po(n) ? n.valueOf() * BigInt(e.valueOf()) : n.valueOf() * Number(e.valueOf()), Ae = (n, e) => {
|
|
138
164
|
const t = {};
|
|
139
165
|
if (typeof n == "number" || typeof n == "bigint")
|
|
140
166
|
e != null ? (t.lower = n, t.upper = e) : (t.lower = typeof n == "bigint" ? 0n : 0, t.upper = n);
|
|
@@ -151,14 +177,14 @@ s.object({
|
|
|
151
177
|
x: Js.or(Vr),
|
|
152
178
|
y: Ks.or(Vr)
|
|
153
179
|
});
|
|
154
|
-
const
|
|
180
|
+
const Do = s.object({ x: Js, y: Ks }), jo = Object.freeze({ x: "left", y: "top" }), Mo = (n, e) => n.x === e.x && n.y === e.y, Kr = s.union([
|
|
155
181
|
s.number(),
|
|
156
182
|
fn,
|
|
157
183
|
Nn,
|
|
158
184
|
Gs,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
]),
|
|
185
|
+
To,
|
|
186
|
+
So
|
|
187
|
+
]), Bo = (n, e) => {
|
|
162
188
|
if (typeof n == "string") {
|
|
163
189
|
if (e === void 0) throw new Error("The y coordinate must be given.");
|
|
164
190
|
return n === "x" ? { x: e, y: 0 } : { x: 0, y: e };
|
|
@@ -180,13 +206,13 @@ s.object({
|
|
|
180
206
|
s.object({
|
|
181
207
|
one: fn,
|
|
182
208
|
two: fn,
|
|
183
|
-
root:
|
|
209
|
+
root: Do
|
|
184
210
|
});
|
|
185
211
|
const kr = (n, e, t = 0, r = 0, i) => {
|
|
186
212
|
const a = {
|
|
187
213
|
one: { ...Hr },
|
|
188
214
|
two: { ...Hr },
|
|
189
|
-
root: i ??
|
|
215
|
+
root: i ?? jo
|
|
190
216
|
};
|
|
191
217
|
if (typeof n == "number") {
|
|
192
218
|
if (typeof e != "number")
|
|
@@ -206,31 +232,32 @@ const kr = (n, e, t = 0, r = 0, i) => {
|
|
|
206
232
|
}, Yn = (n) => {
|
|
207
233
|
const e = kr(n);
|
|
208
234
|
return { lower: e.one.y, upper: e.two.y };
|
|
209
|
-
},
|
|
210
|
-
|
|
211
|
-
|
|
235
|
+
}, Uo = (n) => typeof n != "object" || n == null ? !1 : "one" in n && "two" in n && "root" in n, Zo = s.object({ signedWidth: s.number(), signedHeight: s.number() });
|
|
236
|
+
s.union([Gs, Zo, fn, Nn]);
|
|
237
|
+
var Lo = Object.defineProperty, _o = (n, e, t) => e in n ? Lo(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, ye = (n, e, t) => _o(n, typeof e != "symbol" ? e + "" : e, t);
|
|
238
|
+
const Yo = (n, e, t) => e !== void 0 && n < e ? e : t !== void 0 && n > t ? t : n;
|
|
212
239
|
s.object({ offset: Kr, scale: Kr });
|
|
213
240
|
s.object({ offset: s.number(), scale: s.number() });
|
|
214
|
-
const
|
|
241
|
+
const qo = (n) => (e, t, r, i) => t === "dimension" ? [e, r] : [
|
|
215
242
|
e,
|
|
216
243
|
i ? r - n : r + n
|
|
217
|
-
],
|
|
244
|
+
], zo = (n) => (e, t, r, i) => [
|
|
218
245
|
e,
|
|
219
246
|
i ? r / n : r * n
|
|
220
|
-
],
|
|
247
|
+
], Wo = (n) => (e, t, r) => {
|
|
221
248
|
if (e === null) return [n, r];
|
|
222
249
|
const { lower: i, upper: a } = e, { lower: o, upper: l } = n, u = a - i, h = l - o;
|
|
223
250
|
if (t === "dimension") return [n, r * (h / u)];
|
|
224
251
|
const y = (r - i) * (h / u) + o;
|
|
225
252
|
return [n, y];
|
|
226
|
-
},
|
|
253
|
+
}, Go = (n) => (e, t, r) => [n, r], Vo = () => (n, e, t) => {
|
|
227
254
|
if (n === null) throw new Error("cannot invert without bounds");
|
|
228
255
|
if (e === "dimension") return [n, t];
|
|
229
256
|
const { lower: r, upper: i } = n;
|
|
230
257
|
return [n, i - (t - r)];
|
|
231
|
-
},
|
|
258
|
+
}, Fo = (n) => (e, t, r) => {
|
|
232
259
|
const { lower: i, upper: a } = n;
|
|
233
|
-
return r =
|
|
260
|
+
return r = Yo(r, i, a), [e, r];
|
|
234
261
|
}, dr = class ft {
|
|
235
262
|
constructor() {
|
|
236
263
|
ye(this, "ops", []), ye(this, "currBounds", null), ye(this, "currType", null), ye(this, "reversed", !1), this.ops = [];
|
|
@@ -261,7 +288,7 @@ const Zo = (n) => (e, t, r, i) => t === "dimension" ? [e, r] : [
|
|
|
261
288
|
* @param value - The amount to translate by.
|
|
262
289
|
*/
|
|
263
290
|
translate(e) {
|
|
264
|
-
const t = this.new(), r =
|
|
291
|
+
const t = this.new(), r = qo(e);
|
|
265
292
|
return r.type = "translate", t.ops.push(r), t;
|
|
266
293
|
}
|
|
267
294
|
/**
|
|
@@ -271,23 +298,23 @@ const Zo = (n) => (e, t, r, i) => t === "dimension" ? [e, r] : [
|
|
|
271
298
|
* @param value - The amount to magnify by.
|
|
272
299
|
*/
|
|
273
300
|
magnify(e) {
|
|
274
|
-
const t = this.new(), r =
|
|
301
|
+
const t = this.new(), r = zo(e);
|
|
275
302
|
return r.type = "magnify", t.ops.push(r), t;
|
|
276
303
|
}
|
|
277
304
|
scale(e, t) {
|
|
278
|
-
const r = Ae(e, t), i = this.new(), a =
|
|
305
|
+
const r = Ae(e, t), i = this.new(), a = Wo(r);
|
|
279
306
|
return a.type = "scale", i.ops.push(a), i;
|
|
280
307
|
}
|
|
281
308
|
clamp(e, t) {
|
|
282
|
-
const r = Ae(e, t), i = this.new(), a =
|
|
309
|
+
const r = Ae(e, t), i = this.new(), a = Fo(r);
|
|
283
310
|
return a.type = "clamp", i.ops.push(a), i;
|
|
284
311
|
}
|
|
285
312
|
reBound(e, t) {
|
|
286
|
-
const r = Ae(e, t), i = this.new(), a =
|
|
313
|
+
const r = Ae(e, t), i = this.new(), a = Go(r);
|
|
287
314
|
return a.type = "re-bound", i.ops.push(a), i;
|
|
288
315
|
}
|
|
289
316
|
invert() {
|
|
290
|
-
const e =
|
|
317
|
+
const e = Vo();
|
|
291
318
|
e.type = "invert";
|
|
292
319
|
const t = this.new();
|
|
293
320
|
return t.ops.push(e), t;
|
|
@@ -354,7 +381,7 @@ const Qr = class de {
|
|
|
354
381
|
return new de().reBound(e);
|
|
355
382
|
}
|
|
356
383
|
translate(e, t) {
|
|
357
|
-
const r =
|
|
384
|
+
const r = Bo(e, t), i = this.copy();
|
|
358
385
|
return i.x = this.x.translate(r.x), i.y = this.y.translate(r.y), i;
|
|
359
386
|
}
|
|
360
387
|
translateX(e) {
|
|
@@ -371,9 +398,9 @@ const Qr = class de {
|
|
|
371
398
|
}
|
|
372
399
|
scale(e) {
|
|
373
400
|
const t = this.copy();
|
|
374
|
-
if (
|
|
401
|
+
if (Uo(e)) {
|
|
375
402
|
const r = this.currRoot;
|
|
376
|
-
return t.currRoot = e.root, r != null && !
|
|
403
|
+
return t.currRoot = e.root, r != null && !Mo(r, e.root) && (r.x !== e.root.x && (t.x = t.x.invert()), r.y !== e.root.y && (t.y = t.y.invert())), t.x = t.x.scale(_n(e)), t.y = t.y.scale(Yn(e)), t;
|
|
377
404
|
}
|
|
378
405
|
return t.x = t.x.scale(e.width), t.y = t.y.scale(e.height), t;
|
|
379
406
|
}
|
|
@@ -416,38 +443,10 @@ const Qr = class de {
|
|
|
416
443
|
}
|
|
417
444
|
};
|
|
418
445
|
ye(Qr, "IDENTITY", new Qr());
|
|
419
|
-
const Wo = (n) => n != null && typeof n == "object" && "toString" in n, Go = (n, e = !1) => {
|
|
420
|
-
const t = Wo(n) ? "stringer" : typeof n;
|
|
421
|
-
let r;
|
|
422
|
-
switch (t) {
|
|
423
|
-
case "string":
|
|
424
|
-
r = (i, a) => i.localeCompare(a);
|
|
425
|
-
break;
|
|
426
|
-
case "stringer":
|
|
427
|
-
r = (i, a) => i.toString().localeCompare(a.toString());
|
|
428
|
-
break;
|
|
429
|
-
case "number":
|
|
430
|
-
r = (i, a) => Number(i) - Number(a);
|
|
431
|
-
break;
|
|
432
|
-
case "bigint":
|
|
433
|
-
r = (i, a) => BigInt(i) - BigInt(a) > 0n ? 1 : -1;
|
|
434
|
-
break;
|
|
435
|
-
case "boolean":
|
|
436
|
-
r = (i, a) => Number(i) - Number(a);
|
|
437
|
-
break;
|
|
438
|
-
case "undefined":
|
|
439
|
-
r = () => 0;
|
|
440
|
-
break;
|
|
441
|
-
default:
|
|
442
|
-
return console.warn(`sortFunc: unknown type ${t}`), () => -1;
|
|
443
|
-
}
|
|
444
|
-
return e ? Vo(r) : r;
|
|
445
|
-
}, Vo = (n) => (e, t) => n(t, e), Fo = s.object({ signedWidth: s.number(), signedHeight: s.number() });
|
|
446
|
-
s.union([Gs, Fo, fn, Nn]);
|
|
447
446
|
const Jo = s.bigint().or(s.string().transform(BigInt));
|
|
448
447
|
var Ko = Object.defineProperty, Ho = (n, e, t) => e in n ? Ko(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, m = (n, e, t) => Ho(n, typeof e != "symbol" ? e + "" : e, t);
|
|
449
448
|
let Xo = (n, e = 21) => (t = e) => {
|
|
450
|
-
let r = "", i = t;
|
|
449
|
+
let r = "", i = t | 0;
|
|
451
450
|
for (; i--; )
|
|
452
451
|
r += n[Math.random() * n.length | 0];
|
|
453
452
|
return r;
|
|
@@ -1858,7 +1857,7 @@ const ei = (n) => {
|
|
|
1858
1857
|
*/
|
|
1859
1858
|
binarySearch(e) {
|
|
1860
1859
|
let t = 0, r = this.length - 1;
|
|
1861
|
-
const i =
|
|
1860
|
+
const i = bo(e);
|
|
1862
1861
|
for (; t <= r; ) {
|
|
1863
1862
|
const a = Math.floor((t + r) / 2), o = i(this.at(a, !0), e);
|
|
1864
1863
|
if (o === 0) return a;
|
|
@@ -2084,27 +2083,34 @@ s.record(
|
|
|
2084
2083
|
s.union([s.number(), s.string(), s.symbol()]),
|
|
2085
2084
|
s.unknown()
|
|
2086
2085
|
);
|
|
2087
|
-
const ti = () => typeof process < "u" && process.versions != null && process.versions.node != null ? "node" : typeof window > "u" || window.document === void 0 ? "webworker" : "browser", uc = ti(), ni = ["MacOS", "Windows", "Linux", "Docker"], hc =
|
|
2086
|
+
const ti = () => typeof process < "u" && process.versions != null && process.versions.node != null ? "node" : typeof window > "u" || window.document === void 0 ? "webworker" : "browser", uc = ti(), ni = ["MacOS", "Windows", "Linux", "Docker"], hc = ["macos", "windows", "linux", "docker"], dc = {
|
|
2087
|
+
macos: "MacOS",
|
|
2088
|
+
windows: "Windows",
|
|
2089
|
+
linux: "Linux",
|
|
2090
|
+
docker: "Docker"
|
|
2091
|
+
}, fc = s.enum(ni).or(
|
|
2092
|
+
s.enum(hc).transform((n) => dc[n])
|
|
2093
|
+
);
|
|
2088
2094
|
let qn;
|
|
2089
|
-
const
|
|
2095
|
+
const yc = () => {
|
|
2090
2096
|
if (typeof window > "u") return;
|
|
2091
2097
|
const n = window.navigator.userAgent.toLowerCase();
|
|
2092
2098
|
if (n.includes("mac")) return "MacOS";
|
|
2093
2099
|
if (n.includes("win")) return "Windows";
|
|
2094
2100
|
if (n.includes("linux")) return "Linux";
|
|
2095
|
-
},
|
|
2101
|
+
}, gc = (n = {}) => {
|
|
2096
2102
|
const { force: e, default: t } = n;
|
|
2097
|
-
return e ?? qn ?? (qn =
|
|
2103
|
+
return e ?? qn ?? (qn = yc(), qn ?? t);
|
|
2098
2104
|
}, ri = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2099
2105
|
__proto__: null,
|
|
2100
2106
|
OPERATING_SYSTEMS: ni,
|
|
2101
2107
|
RUNTIME: uc,
|
|
2102
2108
|
detect: ti,
|
|
2103
|
-
getOS:
|
|
2104
|
-
osZ:
|
|
2109
|
+
getOS: gc,
|
|
2110
|
+
osZ: fc
|
|
2105
2111
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2106
|
-
var
|
|
2107
|
-
const
|
|
2112
|
+
var pc = Object.defineProperty, mc = (n, e, t) => e in n ? pc(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, mt = (n, e, t) => mc(n, typeof e != "symbol" ? e + "" : e, t);
|
|
2113
|
+
const wc = (...n) => n.map(si).join(""), si = (n) => (n.endsWith("/") || (n += "/"), n.startsWith("/") && (n = n.slice(1)), n), bc = (n) => n.endsWith("/") ? n.slice(0, -1) : n, vc = (n, e = "") => n === null ? "" : `?${Object.entries(n).filter(([, t]) => t == null ? !1 : Array.isArray(t) ? t.length > 0 : !0).map(([t, r]) => `${e}${t}=${r}`).join("&")}`, gr = class pr {
|
|
2108
2114
|
/**
|
|
2109
2115
|
* @param host - The hostname or IP address of the server.
|
|
2110
2116
|
* @param port - The port number of the server.
|
|
@@ -2135,20 +2141,34 @@ const pc = (...n) => n.map(si).join(""), si = (n) => (n.endsWith("/") || (n += "
|
|
|
2135
2141
|
child(e) {
|
|
2136
2142
|
return new pr({
|
|
2137
2143
|
...this,
|
|
2138
|
-
pathPrefix:
|
|
2144
|
+
pathPrefix: wc(this.path, e)
|
|
2139
2145
|
});
|
|
2140
2146
|
}
|
|
2141
2147
|
/** @returns a string representation of the url */
|
|
2142
2148
|
toString() {
|
|
2143
|
-
return
|
|
2149
|
+
return bc(
|
|
2144
2150
|
`${this.protocol}://${this.host}:${this.port}/${this.path}`
|
|
2145
2151
|
);
|
|
2146
2152
|
}
|
|
2147
2153
|
};
|
|
2148
2154
|
mt(gr, "UNKNOWN", new gr({ host: "unknown", port: 0 }));
|
|
2149
|
-
let
|
|
2150
|
-
var
|
|
2151
|
-
const
|
|
2155
|
+
let Tc = gr;
|
|
2156
|
+
var Oc = Object.defineProperty, Ec = (n, e, t) => e in n ? Oc(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, rn = (n, e, t) => Ec(n, typeof e != "symbol" ? e + "" : e, t);
|
|
2157
|
+
const Nc = async (n) => await new Promise(
|
|
2158
|
+
(e) => setTimeout(e, j.fromMilliseconds(n).milliseconds)
|
|
2159
|
+
), Sc = s.object({
|
|
2160
|
+
interval: j.z.optional(),
|
|
2161
|
+
maxRetries: s.number().optional(),
|
|
2162
|
+
scale: s.number().optional()
|
|
2163
|
+
}), Ic = (n = {}) => {
|
|
2164
|
+
const e = n.sleepFn || Nc, t = n.maxRetries ?? 5, r = n.scale ?? 1;
|
|
2165
|
+
let i = 0, a = new j(n.interval ?? j.milliseconds(1));
|
|
2166
|
+
return async () => i >= t ? !1 : (await e(a), a = a.mult(r), i++, !0);
|
|
2167
|
+
}, kc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2168
|
+
__proto__: null,
|
|
2169
|
+
breakerConfig: Sc,
|
|
2170
|
+
create: Ic
|
|
2171
|
+
}, Symbol.toStringTag, { value: "Module" })), Me = class extends Number {
|
|
2152
2172
|
};
|
|
2153
2173
|
rn(Me, "Absolute", 255), rn(Me, "Default", 1), rn(Me, "z", s.union([
|
|
2154
2174
|
s.instanceof(Me),
|
|
@@ -2169,30 +2189,16 @@ const ii = class wt extends Error {
|
|
|
2169
2189
|
}
|
|
2170
2190
|
};
|
|
2171
2191
|
rn(ii, "MESSAGE", "canceled");
|
|
2172
|
-
let
|
|
2173
|
-
new
|
|
2192
|
+
let $c = ii;
|
|
2193
|
+
new $c();
|
|
2174
2194
|
s.string().regex(/^\d+\.\d+\.\d+$/);
|
|
2175
|
-
const
|
|
2176
|
-
(e) => setTimeout(e, j.fromMilliseconds(n).milliseconds)
|
|
2177
|
-
), Nc = s.object({
|
|
2178
|
-
interval: j.z.optional(),
|
|
2179
|
-
maxRetries: s.number().optional(),
|
|
2180
|
-
scale: s.number().optional()
|
|
2181
|
-
}), Sc = (n = {}) => {
|
|
2182
|
-
const e = n.sleepFn || Ec, t = n.maxRetries ?? 5, r = n.scale ?? 1;
|
|
2183
|
-
let i = 0, a = new j(n.interval ?? j.milliseconds(1));
|
|
2184
|
-
return async () => i >= t ? !1 : (await e(a), a = a.mult(r), i++, !0);
|
|
2185
|
-
}, Ic = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2186
|
-
__proto__: null,
|
|
2187
|
-
breakerConfig: Nc,
|
|
2188
|
-
create: Sc
|
|
2189
|
-
}, Symbol.toStringTag, { value: "Module" })), Q = (n) => (e) => e != null && typeof e == "object" && "type" in e && typeof e.type == "string" ? e.type.includes(n) : e instanceof Error ? e.message.includes(n) : typeof e != "string" ? !1 : e.includes(n);
|
|
2195
|
+
const Q = (n) => (e) => e != null && typeof e == "object" && "type" in e && typeof e.type == "string" ? e.type.includes(n) : e instanceof Error ? e.message.includes(n) : typeof e != "string" ? !1 : e.includes(n);
|
|
2190
2196
|
class se extends Error {
|
|
2191
2197
|
constructor() {
|
|
2192
2198
|
super(...arguments), $(this, "discriminator", "FreighterError"), $(this, "type", "");
|
|
2193
2199
|
}
|
|
2194
2200
|
}
|
|
2195
|
-
const
|
|
2201
|
+
const Ac = (n) => {
|
|
2196
2202
|
if (n == null || typeof n != "object") return !1;
|
|
2197
2203
|
const e = n;
|
|
2198
2204
|
if (e.discriminator !== "FreighterError") return !1;
|
|
@@ -2201,8 +2207,8 @@ const kc = (n) => {
|
|
|
2201
2207
|
`Freighter error is missing its type property: ${JSON.stringify(e)}`
|
|
2202
2208
|
);
|
|
2203
2209
|
return !0;
|
|
2204
|
-
}, os = "unknown", cs = "nil",
|
|
2205
|
-
class
|
|
2210
|
+
}, os = "unknown", cs = "nil", Rc = "freighter", jt = s.object({ type: s.string(), data: s.string() });
|
|
2211
|
+
class xc {
|
|
2206
2212
|
constructor() {
|
|
2207
2213
|
$(this, "providers", []);
|
|
2208
2214
|
}
|
|
@@ -2211,7 +2217,7 @@ class Ac {
|
|
|
2211
2217
|
}
|
|
2212
2218
|
encode(e) {
|
|
2213
2219
|
if (e == null) return { type: cs, data: "" };
|
|
2214
|
-
if (
|
|
2220
|
+
if (Ac(e))
|
|
2215
2221
|
for (const t of this.providers) {
|
|
2216
2222
|
const r = t.encode(e);
|
|
2217
2223
|
if (r != null) return r;
|
|
@@ -2228,7 +2234,7 @@ class Ac {
|
|
|
2228
2234
|
return new ls(e.data);
|
|
2229
2235
|
}
|
|
2230
2236
|
}
|
|
2231
|
-
const ai = new
|
|
2237
|
+
const ai = new xc(), oi = ({
|
|
2232
2238
|
encode: n,
|
|
2233
2239
|
decode: e
|
|
2234
2240
|
}) => ai.register({ encode: n, decode: e }), yn = (n) => ai.decode(n);
|
|
@@ -2253,21 +2259,21 @@ $(an, "TYPE", `${Sn}stream_closed`), $(an, "matches", Q(an.TYPE));
|
|
|
2253
2259
|
let tt = an;
|
|
2254
2260
|
const on = class ui extends se {
|
|
2255
2261
|
constructor(e = {}) {
|
|
2256
|
-
const { message: t = "Unreachable", url: r =
|
|
2262
|
+
const { message: t = "Unreachable", url: r = Tc.UNKNOWN } = e;
|
|
2257
2263
|
super(t), $(this, "type", ui.TYPE), $(this, "url"), this.url = r;
|
|
2258
2264
|
}
|
|
2259
2265
|
};
|
|
2260
2266
|
$(on, "TYPE", `${Sn}unreachable`), $(on, "matches", Q(on.TYPE));
|
|
2261
2267
|
let Oe = on;
|
|
2262
|
-
const
|
|
2263
|
-
if (!n.type.startsWith(
|
|
2268
|
+
const Cc = (n) => {
|
|
2269
|
+
if (!n.type.startsWith(Rc)) return null;
|
|
2264
2270
|
if (Te.matches(n)) return { type: Te.TYPE, data: "EOF" };
|
|
2265
2271
|
if (tt.matches(n))
|
|
2266
2272
|
return { type: tt.TYPE, data: "StreamClosed" };
|
|
2267
2273
|
if (Oe.matches(n))
|
|
2268
2274
|
return { type: Oe.TYPE, data: "Unreachable" };
|
|
2269
2275
|
throw new Error(`Unknown error type: ${n.type}: ${n.message}`);
|
|
2270
|
-
},
|
|
2276
|
+
}, Pc = (n) => {
|
|
2271
2277
|
if (!n.type.startsWith(Sn)) return null;
|
|
2272
2278
|
switch (n.type) {
|
|
2273
2279
|
case Te.TYPE:
|
|
@@ -2281,8 +2287,8 @@ const Rc = (n) => {
|
|
|
2281
2287
|
}
|
|
2282
2288
|
};
|
|
2283
2289
|
oi({
|
|
2284
|
-
encode:
|
|
2285
|
-
decode:
|
|
2290
|
+
encode: Cc,
|
|
2291
|
+
decode: Pc
|
|
2286
2292
|
});
|
|
2287
2293
|
let hi = class {
|
|
2288
2294
|
constructor() {
|
|
@@ -2318,7 +2324,7 @@ const di = "Content-Type", us = (n) => {
|
|
|
2318
2324
|
const t = require("https"), r = new t.Agent({ rejectUnauthorized: !1 });
|
|
2319
2325
|
return async (i, a) => await e(i, { ...a, agent: r });
|
|
2320
2326
|
};
|
|
2321
|
-
class
|
|
2327
|
+
class Dc extends hi {
|
|
2322
2328
|
constructor(e, t, r = !1) {
|
|
2323
2329
|
return super(), $(this, "endpoint"), $(this, "encoder"), $(this, "fetch"), this.endpoint = e.replace({ protocol: r ? "https" : "http" }), this.encoder = t, this.fetch = us(this.endpoint.protocol), new Proxy(this, {
|
|
2324
2330
|
get: (i, a, o) => a === "endpoint" ? this.endpoint : Reflect.get(i, a, o)
|
|
@@ -2374,7 +2380,7 @@ class Cc extends hi {
|
|
|
2374
2380
|
return [a, u];
|
|
2375
2381
|
}
|
|
2376
2382
|
}
|
|
2377
|
-
const
|
|
2383
|
+
const jc = (n, e) => {
|
|
2378
2384
|
class t {
|
|
2379
2385
|
constructor(i) {
|
|
2380
2386
|
$(this, "wrapped"), this.wrapped = i;
|
|
@@ -2383,7 +2389,7 @@ const Pc = (n, e) => {
|
|
|
2383
2389
|
this.wrapped.use(...i);
|
|
2384
2390
|
}
|
|
2385
2391
|
async send(i, a, o, l) {
|
|
2386
|
-
const u =
|
|
2392
|
+
const u = kc.create(e);
|
|
2387
2393
|
do {
|
|
2388
2394
|
const [h, y] = await this.wrapped.send(i, a, o, l);
|
|
2389
2395
|
if (y == null || !Oe.matches(y)) return [h, y];
|
|
@@ -2396,12 +2402,12 @@ const Pc = (n, e) => {
|
|
|
2396
2402
|
const [a, o] = await n.send(e, t, r, i);
|
|
2397
2403
|
if (o != null) throw o;
|
|
2398
2404
|
return a;
|
|
2399
|
-
},
|
|
2405
|
+
}, Mc = () => ri.RUNTIME !== "node" ? (n) => new WebSocket(n) : (n) => new (require("ws")).WebSocket(n, { rejectUnauthorized: !1 }), Bc = s.object({
|
|
2400
2406
|
type: s.union([s.literal("data"), s.literal("close"), s.literal("open")]),
|
|
2401
2407
|
payload: s.unknown().optional(),
|
|
2402
2408
|
error: s.optional(jt)
|
|
2403
2409
|
});
|
|
2404
|
-
class
|
|
2410
|
+
class Uc {
|
|
2405
2411
|
constructor(e, t, r, i) {
|
|
2406
2412
|
$(this, "encoder"), $(this, "reqSchema"), $(this, "resSchema"), $(this, "ws"), $(this, "serverClosed"), $(this, "sendClosed"), $(this, "receiveDataQueue", []), $(this, "receiveCallbacksQueue", []), this.encoder = t, this.reqSchema = r, this.resSchema = i, this.ws = e, this.sendClosed = !1, this.serverClosed = null, this.listenForMessages();
|
|
2407
2413
|
}
|
|
@@ -2453,13 +2459,13 @@ class Mc {
|
|
|
2453
2459
|
t != null ? t.resolve(e) : this.receiveDataQueue.push(e);
|
|
2454
2460
|
}
|
|
2455
2461
|
listenForMessages() {
|
|
2456
|
-
this.ws.onmessage = (e) => this.addMessage(this.encoder.decode(e.data,
|
|
2462
|
+
this.ws.onmessage = (e) => this.addMessage(this.encoder.decode(e.data, Bc)), this.ws.onclose = (e) => this.addMessage({
|
|
2457
2463
|
type: "close",
|
|
2458
|
-
error: { type:
|
|
2464
|
+
error: { type: qc(e) ? Te.TYPE : tt.TYPE, data: "" }
|
|
2459
2465
|
});
|
|
2460
2466
|
}
|
|
2461
2467
|
}
|
|
2462
|
-
const
|
|
2468
|
+
const Zc = "freighterctx", Lc = 1e3, _c = 1001, Yc = [Lc, _c], qc = (n) => Yc.includes(n.code), fi = class yi extends hi {
|
|
2463
2469
|
/**
|
|
2464
2470
|
* @param encoder - The encoder to use for encoding messages and decoding
|
|
2465
2471
|
* responses.
|
|
@@ -2470,7 +2476,7 @@ const Bc = "freighterctx", Uc = 1e3, Zc = 1001, Lc = [Uc, Zc], _c = (n) => Lc.in
|
|
|
2470
2476
|
}
|
|
2471
2477
|
/** Implements the StreamClient interface. */
|
|
2472
2478
|
async stream(e, t, r) {
|
|
2473
|
-
const i =
|
|
2479
|
+
const i = Mc();
|
|
2474
2480
|
let a;
|
|
2475
2481
|
const [, o] = await this.executeMiddleware(
|
|
2476
2482
|
{ target: e, protocol: "websocket", params: {}, role: "client" },
|
|
@@ -2485,19 +2491,19 @@ const Bc = "freighterctx", Uc = 1e3, Zc = 1001, Lc = [Uc, Zc], _c = (n) => Lc.in
|
|
|
2485
2491
|
return a;
|
|
2486
2492
|
}
|
|
2487
2493
|
buildURL(e, t) {
|
|
2488
|
-
const r =
|
|
2494
|
+
const r = vc(
|
|
2489
2495
|
{
|
|
2490
2496
|
[di]: this.encoder.contentType,
|
|
2491
2497
|
...t.params
|
|
2492
2498
|
},
|
|
2493
|
-
|
|
2499
|
+
Zc
|
|
2494
2500
|
);
|
|
2495
2501
|
return this.baseUrl.child(e).toString() + r;
|
|
2496
2502
|
}
|
|
2497
2503
|
async wrapSocket(e, t, r) {
|
|
2498
2504
|
return await new Promise((i) => {
|
|
2499
2505
|
e.onopen = () => {
|
|
2500
|
-
const a = new
|
|
2506
|
+
const a = new Uc(e, this.encoder, t, r);
|
|
2501
2507
|
a.receiveOpenAck().then((o) => {
|
|
2502
2508
|
o != null ? i(o) : i(a);
|
|
2503
2509
|
}).catch((o) => i(o));
|
|
@@ -2509,14 +2515,14 @@ const Bc = "freighterctx", Uc = 1e3, Zc = 1001, Lc = [Uc, Zc], _c = (n) => Lc.in
|
|
|
2509
2515
|
}
|
|
2510
2516
|
};
|
|
2511
2517
|
$(fi, "MESSAGE_TYPE", "arraybuffer");
|
|
2512
|
-
let
|
|
2518
|
+
let zc = fi;
|
|
2513
2519
|
const gn = s.union([
|
|
2514
2520
|
s.literal("all"),
|
|
2515
2521
|
s.literal("create"),
|
|
2516
2522
|
s.literal("delete"),
|
|
2517
2523
|
s.literal("retrieve"),
|
|
2518
2524
|
s.literal("update")
|
|
2519
|
-
]),
|
|
2525
|
+
]), Wc = "all", Gc = "create", Vc = "delete", Fc = "retrieve", Jc = "update", Kc = (n) => {
|
|
2520
2526
|
const e = n.replace(/_[a-z]/g, (t) => t[1].toUpperCase());
|
|
2521
2527
|
return e.length > 1 && e[0] === e[0].toUpperCase() && e[1] === e[1].toUpperCase() || e.length === 0 ? e : e[0].toLowerCase() + e.slice(1);
|
|
2522
2528
|
}, gi = (n) => {
|
|
@@ -2524,7 +2530,7 @@ const gn = s.union([
|
|
|
2524
2530
|
if (typeof t == "string") return n(t);
|
|
2525
2531
|
if (Array.isArray(t)) return t.map((o) => e(o, r));
|
|
2526
2532
|
if (!zn(t)) return t;
|
|
2527
|
-
r =
|
|
2533
|
+
r = Qc(r);
|
|
2528
2534
|
const i = {}, a = t;
|
|
2529
2535
|
return Object.keys(a).forEach((o) => {
|
|
2530
2536
|
let l = a[o];
|
|
@@ -2536,16 +2542,16 @@ const gn = s.union([
|
|
|
2536
2542
|
}), i;
|
|
2537
2543
|
};
|
|
2538
2544
|
return e;
|
|
2539
|
-
}, pi = gi(
|
|
2545
|
+
}, pi = gi(Kc), Hc = (n) => (
|
|
2540
2546
|
// Don't convert the first character and don't convert a character that is after a
|
|
2541
2547
|
// non-alphanumeric character
|
|
2542
2548
|
n.replace(/([a-z0-9])([A-Z])/g, (e, t, r) => `${t}_${r.toLowerCase()}`)
|
|
2543
|
-
),
|
|
2549
|
+
), Xc = gi(Hc), mr = {
|
|
2544
2550
|
recursive: !0,
|
|
2545
2551
|
recursiveInArray: !0,
|
|
2546
2552
|
keepTypesOnRecursion: [Number, String, Uint8Array]
|
|
2547
|
-
},
|
|
2548
|
-
var
|
|
2553
|
+
}, Qc = (n = mr) => (n.recursive == null ? n = mr : n.recursiveInArray ?? (n.recursiveInArray = !1), n), hs = (n) => n != null && Array.isArray(n), zn = (n) => n != null && typeof n == "object" && !Array.isArray(n), ds = (n, e) => (e || []).some((t) => n instanceof t), Ar = (n) => n != null && typeof n == "object" && !Array.isArray(n);
|
|
2554
|
+
var el = Object.defineProperty, tl = (n, e, t) => e in n ? el(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, It = (n, e, t) => tl(n, typeof e != "symbol" ? e + "" : e, t);
|
|
2549
2555
|
let mi = class {
|
|
2550
2556
|
constructor() {
|
|
2551
2557
|
It(this, "contentType", "application/json"), It(this, "decoder"), It(this, "encoder"), this.decoder = new TextDecoder(), this.encoder = new TextEncoder();
|
|
@@ -2561,7 +2567,7 @@ let mi = class {
|
|
|
2561
2567
|
return t != null ? t.parse(i) : i;
|
|
2562
2568
|
}
|
|
2563
2569
|
encodeString(e) {
|
|
2564
|
-
const t =
|
|
2570
|
+
const t = Xc(e);
|
|
2565
2571
|
return JSON.stringify(t, (r, i) => ArrayBuffer.isView(i) ? Array.from(i) : Ar(i) && "encode_value" in i ? typeof i.value == "bigint" ? i.value.toString() : i.value : typeof i == "bigint" ? i.toString() : i);
|
|
2566
2572
|
}
|
|
2567
2573
|
static registerCustomType() {
|
|
@@ -2623,45 +2629,71 @@ let mi = class {
|
|
|
2623
2629
|
return t != null ? t.parse(r) : r;
|
|
2624
2630
|
}
|
|
2625
2631
|
};
|
|
2626
|
-
const et = new mi(),
|
|
2632
|
+
const et = new mi(), nl = new wi(), rl = new bi(), sl = [et], ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2627
2633
|
__proto__: null,
|
|
2628
2634
|
CSVCodec: wi,
|
|
2629
|
-
CSV_CODEC:
|
|
2630
|
-
ENCODERS:
|
|
2635
|
+
CSV_CODEC: nl,
|
|
2636
|
+
ENCODERS: sl,
|
|
2631
2637
|
JSONCodec: mi,
|
|
2632
2638
|
JSON_CODEC: et,
|
|
2633
|
-
TEXT_CODEC:
|
|
2639
|
+
TEXT_CODEC: rl,
|
|
2634
2640
|
TextCodec: bi
|
|
2635
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2641
|
+
}, Symbol.toStringTag, { value: "Module" })), fs = (n) => [...new Set(n)], il = (n) => n != null && typeof n == "object" && "toString" in n, al = (n, e = !1) => {
|
|
2642
|
+
const t = il(n) ? "stringer" : typeof n;
|
|
2643
|
+
let r;
|
|
2644
|
+
switch (t) {
|
|
2645
|
+
case "string":
|
|
2646
|
+
r = (i, a) => i.localeCompare(a);
|
|
2647
|
+
break;
|
|
2648
|
+
case "stringer":
|
|
2649
|
+
r = (i, a) => i.toString().localeCompare(a.toString());
|
|
2650
|
+
break;
|
|
2651
|
+
case "number":
|
|
2652
|
+
r = (i, a) => Number(i) - Number(a);
|
|
2653
|
+
break;
|
|
2654
|
+
case "bigint":
|
|
2655
|
+
r = (i, a) => BigInt(i) - BigInt(a) > 0n ? 1 : -1;
|
|
2656
|
+
break;
|
|
2657
|
+
case "boolean":
|
|
2658
|
+
r = (i, a) => Number(i) - Number(a);
|
|
2659
|
+
break;
|
|
2660
|
+
case "undefined":
|
|
2661
|
+
r = () => 0;
|
|
2662
|
+
break;
|
|
2663
|
+
default:
|
|
2664
|
+
return console.warn(`sortFunc: unknown type ${t}`), () => -1;
|
|
2665
|
+
}
|
|
2666
|
+
return e ? ol(r) : r;
|
|
2667
|
+
}, ol = (n) => (e, t) => n(t, e), In = 0, Wn = -1, Gn = 1, cl = (n) => n < In, ll = (n) => n > In, ul = (n) => n === In, kn = s.tuple([s.number(), s.number()]);
|
|
2636
2668
|
s.tuple([s.bigint(), s.bigint()]);
|
|
2637
|
-
const vi = s.object({ width: s.number(), height: s.number() }),
|
|
2669
|
+
const vi = s.object({ width: s.number(), height: s.number() }), hl = s.object({
|
|
2638
2670
|
signedWidth: s.number(),
|
|
2639
2671
|
signedHeight: s.number()
|
|
2640
|
-
}),
|
|
2641
|
-
s.enum(sl);
|
|
2642
|
-
const il = ["start", "center", "end"], al = ["signedWidth", "signedHeight"];
|
|
2643
|
-
s.enum(al);
|
|
2644
|
-
const pn = s.object({ x: s.number(), y: s.number() }), ol = s.object({ clientX: s.number(), clientY: s.number() }), cl = ["x", "y"], Ti = s.enum(cl), Oi = ["top", "right", "bottom", "left"];
|
|
2645
|
-
s.enum(Oi);
|
|
2646
|
-
const ll = ["left", "right"], Ei = s.enum(ll), ul = ["top", "bottom"], Ni = s.enum(ul), Si = ["center"], fs = s.enum(Si), hl = [...Oi, ...Si], Ii = s.enum(hl);
|
|
2647
|
-
s.enum(il);
|
|
2648
|
-
const dl = ["first", "last"];
|
|
2672
|
+
}), dl = ["width", "height"];
|
|
2649
2673
|
s.enum(dl);
|
|
2650
|
-
const fl =
|
|
2651
|
-
s.
|
|
2652
|
-
s.
|
|
2674
|
+
const fl = ["start", "center", "end"], yl = ["signedWidth", "signedHeight"];
|
|
2675
|
+
s.enum(yl);
|
|
2676
|
+
const pn = s.object({ x: s.number(), y: s.number() }), gl = s.object({ clientX: s.number(), clientY: s.number() }), pl = ["x", "y"], Ti = s.enum(pl), Oi = ["top", "right", "bottom", "left"];
|
|
2677
|
+
s.enum(Oi);
|
|
2678
|
+
const ml = ["left", "right"], Ei = s.enum(ml), wl = ["top", "bottom"], Ni = s.enum(wl), Si = ["center"], ys = s.enum(Si), bl = [...Oi, ...Si], Ii = s.enum(bl);
|
|
2679
|
+
s.enum(fl);
|
|
2680
|
+
const vl = ["first", "last"];
|
|
2681
|
+
s.enum(vl);
|
|
2682
|
+
const Tl = s.object({ lower: s.number(), upper: s.number() }), Ol = s.object({ lower: s.bigint(), upper: s.bigint() });
|
|
2683
|
+
s.union([Tl, kn]);
|
|
2684
|
+
s.union([Ol, kn]);
|
|
2653
2685
|
s.union([Ti, Ii]);
|
|
2654
2686
|
s.union([Ti, Ii, s.instanceof(String)]);
|
|
2655
|
-
const ct = (n) => typeof n == "bigint" || n instanceof BigInt,
|
|
2687
|
+
const ct = (n) => typeof n == "bigint" || n instanceof BigInt, Vn = (n, e) => ct(n) ? n.valueOf() - BigInt(e.valueOf().valueOf()) : n.valueOf() - Number(e.valueOf()), El = (n, e) => ct(n) ? n.valueOf() + BigInt(e.valueOf().valueOf()) : n + Number(e.valueOf()), gs = (n, e) => ct(n) ? n === BigInt(e.valueOf().valueOf()) : n === Number(e.valueOf()), Nl = (n, e) => ct(n) ? n.valueOf() < BigInt(e.valueOf()) ? n : BigInt(e.valueOf()) : n.valueOf() < Number(e.valueOf()) ? n : Number(e.valueOf()), Sl = (n) => ct(n) || n instanceof BigInt ? n.valueOf() < 0n ? -n : n : n.valueOf() < 0 ? -n : n, Be = (n, e) => ct(n) ? n.valueOf() * BigInt(e.valueOf()) : n.valueOf() * Number(e.valueOf()), K = (n, e) => {
|
|
2656
2688
|
const t = {};
|
|
2657
2689
|
if (typeof n == "number" || typeof n == "bigint")
|
|
2658
2690
|
e != null ? (t.lower = n, t.upper = e) : (t.lower = typeof n == "bigint" ? 0n : 0, t.upper = n);
|
|
2659
2691
|
else if (Array.isArray(n)) {
|
|
2660
2692
|
if (n.length !== 2) throw new Error("bounds: expected array of length 2");
|
|
2661
2693
|
[t.lower, t.upper] = n;
|
|
2662
|
-
} else return
|
|
2663
|
-
return
|
|
2664
|
-
},
|
|
2694
|
+
} else return ps(n);
|
|
2695
|
+
return ps(t);
|
|
2696
|
+
}, ps = (n) => n.lower > n.upper ? { lower: n.upper, upper: n.lower } : n, ms = (n, e) => {
|
|
2665
2697
|
const t = K(n);
|
|
2666
2698
|
return e < t.lower ? t.lower : e >= t.upper ? t.upper - (typeof t.upper == "number" ? 1 : 1n) : e;
|
|
2667
2699
|
}, Jt = (n, e) => {
|
|
@@ -2670,21 +2702,21 @@ const ct = (n) => typeof n == "bigint" || n instanceof BigInt, Wn = (n, e) => ct
|
|
|
2670
2702
|
return e >= t.lower && e < t.upper;
|
|
2671
2703
|
const r = K(e);
|
|
2672
2704
|
return r.lower >= t.lower && r.upper <= t.upper;
|
|
2673
|
-
},
|
|
2705
|
+
}, Il = (n, e, t) => {
|
|
2674
2706
|
const r = n.map((l) => K(l)), i = t > 0 ? 1 : t < 0 ? -1 : 0;
|
|
2675
2707
|
if (i === 0) return e;
|
|
2676
2708
|
let a = t, o = e;
|
|
2677
|
-
for (;
|
|
2709
|
+
for (; gs(a, 0) === !1; ) {
|
|
2678
2710
|
const l = r.findIndex((u) => i > 0 ? o >= u.lower && o < u.upper : o > u.lower && o <= u.upper);
|
|
2679
2711
|
if (l !== -1) {
|
|
2680
2712
|
const u = r[l];
|
|
2681
2713
|
let h;
|
|
2682
|
-
if (i > 0 ? h =
|
|
2683
|
-
const y =
|
|
2684
|
-
if (o =
|
|
2714
|
+
if (i > 0 ? h = Vn(u.upper, o) : h = Vn(o, u.lower), h > 0) {
|
|
2715
|
+
const y = Nl(Sl(a), h);
|
|
2716
|
+
if (o = El(
|
|
2685
2717
|
o,
|
|
2686
2718
|
i > 0 ? y : -y
|
|
2687
|
-
), a =
|
|
2719
|
+
), a = Vn(a, i > 0 ? y : -y), gs(a, 0)) return o;
|
|
2688
2720
|
continue;
|
|
2689
2721
|
}
|
|
2690
2722
|
}
|
|
@@ -2700,7 +2732,7 @@ const ct = (n) => typeof n == "bigint" || n instanceof BigInt, Wn = (n, e) => ct
|
|
|
2700
2732
|
}
|
|
2701
2733
|
}
|
|
2702
2734
|
return o;
|
|
2703
|
-
},
|
|
2735
|
+
}, kl = (n, e, t) => {
|
|
2704
2736
|
const r = n.map((o) => K(o));
|
|
2705
2737
|
if (e === t) return typeof e == "bigint" ? 0n : 0;
|
|
2706
2738
|
const i = e < t ? K([e, t]) : K([t, e]);
|
|
@@ -2715,23 +2747,23 @@ const ct = (n) => typeof n == "bigint" || n instanceof BigInt, Wn = (n, e) => ct
|
|
|
2715
2747
|
return a;
|
|
2716
2748
|
};
|
|
2717
2749
|
s.object({
|
|
2718
|
-
x: Ei.or(
|
|
2719
|
-
y: Ni.or(
|
|
2750
|
+
x: Ei.or(ys),
|
|
2751
|
+
y: Ni.or(ys)
|
|
2720
2752
|
});
|
|
2721
|
-
const
|
|
2753
|
+
const $l = s.object({ x: Ei, y: Ni }), Al = Object.freeze({ x: "left", y: "top" }), Rl = (n, e) => n.x === e.x && n.y === e.y, ws = s.union([
|
|
2722
2754
|
s.number(),
|
|
2723
2755
|
pn,
|
|
2724
|
-
|
|
2756
|
+
kn,
|
|
2725
2757
|
vi,
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
]),
|
|
2758
|
+
hl,
|
|
2759
|
+
gl
|
|
2760
|
+
]), xl = (n, e) => {
|
|
2729
2761
|
if (typeof n == "string") {
|
|
2730
2762
|
if (e === void 0) throw new Error("The y coordinate must be given.");
|
|
2731
2763
|
return n === "x" ? { x: e, y: 0 } : { x: 0, y: e };
|
|
2732
2764
|
}
|
|
2733
2765
|
return typeof n == "number" ? { x: n, y: e ?? n } : Array.isArray(n) ? { x: n[0], y: n[1] } : "signedWidth" in n ? { x: n.signedWidth, y: n.signedHeight } : "clientX" in n ? { x: n.clientX, y: n.clientY } : "width" in n ? { x: n.width, y: n.height } : { x: n.x, y: n.y };
|
|
2734
|
-
},
|
|
2766
|
+
}, bs = Object.freeze({ x: 0, y: 0 }), Kt = s.union([s.number(), s.string()]);
|
|
2735
2767
|
s.object({
|
|
2736
2768
|
top: Kt,
|
|
2737
2769
|
left: Kt,
|
|
@@ -2747,13 +2779,13 @@ s.object({
|
|
|
2747
2779
|
s.object({
|
|
2748
2780
|
one: pn,
|
|
2749
2781
|
two: pn,
|
|
2750
|
-
root:
|
|
2782
|
+
root: $l
|
|
2751
2783
|
});
|
|
2752
2784
|
const Rr = (n, e, t = 0, r = 0, i) => {
|
|
2753
2785
|
const a = {
|
|
2754
|
-
one: { ...
|
|
2755
|
-
two: { ...
|
|
2756
|
-
root: i ??
|
|
2786
|
+
one: { ...bs },
|
|
2787
|
+
two: { ...bs },
|
|
2788
|
+
root: i ?? Al
|
|
2757
2789
|
};
|
|
2758
2790
|
if (typeof n == "number") {
|
|
2759
2791
|
if (typeof e != "number")
|
|
@@ -2767,37 +2799,38 @@ const Rr = (n, e, t = 0, r = 0, i) => {
|
|
|
2767
2799
|
x: a.one.x + e.signedWidth,
|
|
2768
2800
|
y: a.one.y + e.signedHeight
|
|
2769
2801
|
} : a.two = e, a));
|
|
2770
|
-
},
|
|
2802
|
+
}, Fn = (n) => {
|
|
2771
2803
|
const e = Rr(n);
|
|
2772
2804
|
return { lower: e.one.x, upper: e.two.x };
|
|
2773
|
-
},
|
|
2805
|
+
}, Jn = (n) => {
|
|
2774
2806
|
const e = Rr(n);
|
|
2775
2807
|
return { lower: e.one.y, upper: e.two.y };
|
|
2776
|
-
},
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2808
|
+
}, Cl = (n) => typeof n != "object" || n == null ? !1 : "one" in n && "two" in n && "root" in n, Pl = s.object({ signedWidth: s.number(), signedHeight: s.number() });
|
|
2809
|
+
s.union([vi, Pl, pn, kn]);
|
|
2810
|
+
var Dl = Object.defineProperty, jl = (n, e, t) => e in n ? Dl(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, ge = (n, e, t) => jl(n, typeof e != "symbol" ? e + "" : e, t);
|
|
2811
|
+
const Ml = (n, e, t) => e !== void 0 && n < e ? e : t !== void 0 && n > t ? t : n;
|
|
2812
|
+
s.object({ offset: ws, scale: ws });
|
|
2780
2813
|
s.object({ offset: s.number(), scale: s.number() });
|
|
2781
|
-
const
|
|
2814
|
+
const Bl = (n) => (e, t, r, i) => t === "dimension" ? [e, r] : [
|
|
2782
2815
|
e,
|
|
2783
2816
|
i ? r - n : r + n
|
|
2784
|
-
],
|
|
2817
|
+
], Ul = (n) => (e, t, r, i) => [
|
|
2785
2818
|
e,
|
|
2786
2819
|
i ? r / n : r * n
|
|
2787
|
-
],
|
|
2820
|
+
], Zl = (n) => (e, t, r) => {
|
|
2788
2821
|
if (e === null) return [n, r];
|
|
2789
2822
|
const { lower: i, upper: a } = e, { lower: o, upper: l } = n, u = a - i, h = l - o;
|
|
2790
2823
|
if (t === "dimension") return [n, r * (h / u)];
|
|
2791
2824
|
const y = (r - i) * (h / u) + o;
|
|
2792
2825
|
return [n, y];
|
|
2793
|
-
},
|
|
2826
|
+
}, Ll = (n) => (e, t, r) => [n, r], _l = () => (n, e, t) => {
|
|
2794
2827
|
if (n === null) throw new Error("cannot invert without bounds");
|
|
2795
2828
|
if (e === "dimension") return [n, t];
|
|
2796
2829
|
const { lower: r, upper: i } = n;
|
|
2797
2830
|
return [n, i - (t - r)];
|
|
2798
|
-
},
|
|
2831
|
+
}, Yl = (n) => (e, t, r) => {
|
|
2799
2832
|
const { lower: i, upper: a } = n;
|
|
2800
|
-
return r =
|
|
2833
|
+
return r = Ml(r, i, a), [e, r];
|
|
2801
2834
|
}, wr = class bt {
|
|
2802
2835
|
constructor() {
|
|
2803
2836
|
ge(this, "ops", []), ge(this, "currBounds", null), ge(this, "currType", null), ge(this, "reversed", !1), this.ops = [];
|
|
@@ -2828,7 +2861,7 @@ const $l = (n) => (e, t, r, i) => t === "dimension" ? [e, r] : [
|
|
|
2828
2861
|
* @param value - The amount to translate by.
|
|
2829
2862
|
*/
|
|
2830
2863
|
translate(e) {
|
|
2831
|
-
const t = this.new(), r =
|
|
2864
|
+
const t = this.new(), r = Bl(e);
|
|
2832
2865
|
return r.type = "translate", t.ops.push(r), t;
|
|
2833
2866
|
}
|
|
2834
2867
|
/**
|
|
@@ -2838,23 +2871,23 @@ const $l = (n) => (e, t, r, i) => t === "dimension" ? [e, r] : [
|
|
|
2838
2871
|
* @param value - The amount to magnify by.
|
|
2839
2872
|
*/
|
|
2840
2873
|
magnify(e) {
|
|
2841
|
-
const t = this.new(), r =
|
|
2874
|
+
const t = this.new(), r = Ul(e);
|
|
2842
2875
|
return r.type = "magnify", t.ops.push(r), t;
|
|
2843
2876
|
}
|
|
2844
2877
|
scale(e, t) {
|
|
2845
|
-
const r = K(e, t), i = this.new(), a =
|
|
2878
|
+
const r = K(e, t), i = this.new(), a = Zl(r);
|
|
2846
2879
|
return a.type = "scale", i.ops.push(a), i;
|
|
2847
2880
|
}
|
|
2848
2881
|
clamp(e, t) {
|
|
2849
|
-
const r = K(e, t), i = this.new(), a =
|
|
2882
|
+
const r = K(e, t), i = this.new(), a = Yl(r);
|
|
2850
2883
|
return a.type = "clamp", i.ops.push(a), i;
|
|
2851
2884
|
}
|
|
2852
2885
|
reBound(e, t) {
|
|
2853
|
-
const r = K(e, t), i = this.new(), a =
|
|
2886
|
+
const r = K(e, t), i = this.new(), a = Ll(r);
|
|
2854
2887
|
return a.type = "re-bound", i.ops.push(a), i;
|
|
2855
2888
|
}
|
|
2856
2889
|
invert() {
|
|
2857
|
-
const e =
|
|
2890
|
+
const e = _l();
|
|
2858
2891
|
e.type = "invert";
|
|
2859
2892
|
const t = this.new();
|
|
2860
2893
|
return t.ops.push(e), t;
|
|
@@ -2894,9 +2927,9 @@ const $l = (n) => (e, t, r, i) => t === "dimension" ? [e, r] : [
|
|
|
2894
2927
|
}
|
|
2895
2928
|
};
|
|
2896
2929
|
ge(wr, "IDENTITY", new wr());
|
|
2897
|
-
let
|
|
2898
|
-
const
|
|
2899
|
-
constructor(e = new
|
|
2930
|
+
let vs = wr;
|
|
2931
|
+
const Ts = class fe {
|
|
2932
|
+
constructor(e = new vs(), t = new vs(), r = null) {
|
|
2900
2933
|
ge(this, "x"), ge(this, "y"), ge(this, "currRoot"), this.x = e, this.y = t, this.currRoot = r;
|
|
2901
2934
|
}
|
|
2902
2935
|
static translate(e, t) {
|
|
@@ -2921,7 +2954,7 @@ const vs = class fe {
|
|
|
2921
2954
|
return new fe().reBound(e);
|
|
2922
2955
|
}
|
|
2923
2956
|
translate(e, t) {
|
|
2924
|
-
const r =
|
|
2957
|
+
const r = xl(e, t), i = this.copy();
|
|
2925
2958
|
return i.x = this.x.translate(r.x), i.y = this.y.translate(r.y), i;
|
|
2926
2959
|
}
|
|
2927
2960
|
translateX(e) {
|
|
@@ -2938,19 +2971,19 @@ const vs = class fe {
|
|
|
2938
2971
|
}
|
|
2939
2972
|
scale(e) {
|
|
2940
2973
|
const t = this.copy();
|
|
2941
|
-
if (
|
|
2974
|
+
if (Cl(e)) {
|
|
2942
2975
|
const r = this.currRoot;
|
|
2943
|
-
return t.currRoot = e.root, r != null && !
|
|
2976
|
+
return t.currRoot = e.root, r != null && !Rl(r, e.root) && (r.x !== e.root.x && (t.x = t.x.invert()), r.y !== e.root.y && (t.y = t.y.invert())), t.x = t.x.scale(Fn(e)), t.y = t.y.scale(Jn(e)), t;
|
|
2944
2977
|
}
|
|
2945
2978
|
return t.x = t.x.scale(e.width), t.y = t.y.scale(e.height), t;
|
|
2946
2979
|
}
|
|
2947
2980
|
reBound(e) {
|
|
2948
2981
|
const t = this.copy();
|
|
2949
|
-
return t.x = this.x.reBound(
|
|
2982
|
+
return t.x = this.x.reBound(Fn(e)), t.y = this.y.reBound(Jn(e)), t;
|
|
2950
2983
|
}
|
|
2951
2984
|
clamp(e) {
|
|
2952
2985
|
const t = this.copy();
|
|
2953
|
-
return t.x = this.x.clamp(
|
|
2986
|
+
return t.x = this.x.clamp(Fn(e)), t.y = this.y.clamp(Jn(e)), t;
|
|
2954
2987
|
}
|
|
2955
2988
|
copy() {
|
|
2956
2989
|
const e = new fe();
|
|
@@ -2982,52 +3015,19 @@ const vs = class fe {
|
|
|
2982
3015
|
};
|
|
2983
3016
|
}
|
|
2984
3017
|
};
|
|
2985
|
-
ge(
|
|
2986
|
-
const
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
case "string":
|
|
2991
|
-
r = (i, a) => i.localeCompare(a);
|
|
2992
|
-
break;
|
|
2993
|
-
case "stringer":
|
|
2994
|
-
r = (i, a) => i.toString().localeCompare(a.toString());
|
|
2995
|
-
break;
|
|
2996
|
-
case "number":
|
|
2997
|
-
r = (i, a) => Number(i) - Number(a);
|
|
2998
|
-
break;
|
|
2999
|
-
case "bigint":
|
|
3000
|
-
r = (i, a) => BigInt(i) - BigInt(a) > 0n ? 1 : -1;
|
|
3001
|
-
break;
|
|
3002
|
-
case "boolean":
|
|
3003
|
-
r = (i, a) => Number(i) - Number(a);
|
|
3004
|
-
break;
|
|
3005
|
-
case "undefined":
|
|
3006
|
-
r = () => 0;
|
|
3007
|
-
break;
|
|
3008
|
-
default:
|
|
3009
|
-
return console.warn(`sortFunc: unknown type ${t}`), () => -1;
|
|
3010
|
-
}
|
|
3011
|
-
return e ? Ml(r) : r;
|
|
3012
|
-
}, Ml = (n) => (e, t) => n(t, e), kn = 0, Fn = -1, Jn = 1, Bl = (n) => n < kn, Ul = (n) => n > kn, Zl = (n) => n === kn, Ll = (n, e) => {
|
|
3013
|
-
let t = null;
|
|
3014
|
-
return e === 0 ? n : (...r) => {
|
|
3015
|
-
t !== null && (clearTimeout(t), t = null), t = setTimeout(() => n(...r), e);
|
|
3016
|
-
};
|
|
3017
|
-
}, _l = s.object({ signedWidth: s.number(), signedHeight: s.number() });
|
|
3018
|
-
s.union([vi, _l, pn, In]);
|
|
3019
|
-
const Yl = s.bigint().or(s.string().transform(BigInt));
|
|
3020
|
-
var ql = Object.defineProperty, zl = (n, e, t) => e in n ? ql(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, f = (n, e, t) => zl(n, typeof e != "symbol" ? e + "" : e, t);
|
|
3021
|
-
let Wl = (n, e = 21) => (t = e) => {
|
|
3022
|
-
let r = "", i = t;
|
|
3018
|
+
ge(Ts, "IDENTITY", new Ts());
|
|
3019
|
+
const ql = s.bigint().or(s.string().transform(BigInt));
|
|
3020
|
+
var zl = Object.defineProperty, Wl = (n, e, t) => e in n ? zl(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, f = (n, e, t) => Wl(n, typeof e != "symbol" ? e + "" : e, t);
|
|
3021
|
+
let Gl = (n, e = 21) => (t = e) => {
|
|
3022
|
+
let r = "", i = t | 0;
|
|
3023
3023
|
for (; i--; )
|
|
3024
3024
|
r += n[Math.random() * n.length | 0];
|
|
3025
3025
|
return r;
|
|
3026
3026
|
};
|
|
3027
|
-
const
|
|
3027
|
+
const Vl = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", ki = Gl(Vl, 11), Fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3028
3028
|
__proto__: null,
|
|
3029
3029
|
id: ki
|
|
3030
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3030
|
+
}, Symbol.toStringTag, { value: "Module" })), Jl = s.enum(["static", "dynamic"]), $i = (n, e) => {
|
|
3031
3031
|
const t = new k(e);
|
|
3032
3032
|
if (![
|
|
3033
3033
|
S.DAY,
|
|
@@ -3821,7 +3821,7 @@ f(ce, "z", s.union([
|
|
|
3821
3821
|
s.instanceof(ce)
|
|
3822
3822
|
]));
|
|
3823
3823
|
let V = ce;
|
|
3824
|
-
const
|
|
3824
|
+
const Kl = (n, e) => n.start.before(e.start) ? -1 : n.start.after(e.start) ? 1 : n.end.before(e.end) ? -1 : n.end.after(e.end) ? 1 : 0, p = class le extends String {
|
|
3825
3825
|
constructor(e) {
|
|
3826
3826
|
if (e instanceof le || typeof e == "string" || typeof e.valueOf() == "string") {
|
|
3827
3827
|
super(e.valueOf());
|
|
@@ -4097,16 +4097,16 @@ s.union([
|
|
|
4097
4097
|
const Ai = (n) => {
|
|
4098
4098
|
const e = typeof n;
|
|
4099
4099
|
return e === "string" || e === "number" || e === "boolean" || e === "bigint" || n instanceof k || n instanceof S || n instanceof Date;
|
|
4100
|
-
},
|
|
4100
|
+
}, Hl = (n, e, t, r = 0) => n.usesBigInt && !e.usesBigInt ? Number(t) - Number(r) : !n.usesBigInt && e.usesBigInt ? BigInt(t.valueOf()) - BigInt(r.valueOf()) : Ot(t, -r).valueOf(), Xl = (n) => n == null ? !1 : Array.isArray(n) || n instanceof ArrayBuffer || ArrayBuffer.isView(n) && !(n instanceof DataView) || n instanceof $e ? !0 : Ai(n), we = -1, br = {
|
|
4101
4101
|
[Symbol.iterator]: () => br,
|
|
4102
4102
|
next: () => ({ done: !0, value: void 0 })
|
|
4103
|
-
},
|
|
4103
|
+
}, Ql = s.string().transform(
|
|
4104
4104
|
(n) => new Uint8Array(
|
|
4105
4105
|
atob(n).split("").map((e) => e.charCodeAt(0))
|
|
4106
4106
|
).buffer
|
|
4107
|
-
),
|
|
4107
|
+
), eu = s.union([s.null(), s.undefined()]).transform(() => new Uint8Array().buffer), vr = 10, Tt = class ue {
|
|
4108
4108
|
constructor(e) {
|
|
4109
|
-
f(this, "key", ""), f(this, "isSynnaxSeries", !0), f(this, "dataType"), f(this, "sampleOffset"), f(this, "gl"), f(this, "_data"), f(this, "_timeRange"), f(this, "alignment", 0n), f(this, "_cachedMin"), f(this, "_cachedMax"), f(this, "writePos", we), f(this, "_refCount", 0), f(this, "_cachedLength"), f(this, "_cachedIndexes"),
|
|
4109
|
+
f(this, "key", ""), f(this, "isSynnaxSeries", !0), f(this, "dataType"), f(this, "sampleOffset"), f(this, "gl"), f(this, "_data"), f(this, "_timeRange"), f(this, "alignment", 0n), f(this, "_cachedMin"), f(this, "_cachedMax"), f(this, "writePos", we), f(this, "_refCount", 0), f(this, "_cachedLength"), f(this, "_cachedIndexes"), Xl(e) && (e = { data: e });
|
|
4110
4110
|
const {
|
|
4111
4111
|
dataType: t,
|
|
4112
4112
|
timeRange: r,
|
|
@@ -4320,7 +4320,7 @@ const Ai = (n) => {
|
|
|
4320
4320
|
if (this.dataType.equals(e)) return this;
|
|
4321
4321
|
const r = new e.Array(this.length);
|
|
4322
4322
|
for (let i = 0; i < this.length; i++)
|
|
4323
|
-
r[i] =
|
|
4323
|
+
r[i] = Hl(this.dataType, e, this.data[i], t);
|
|
4324
4324
|
return new ue({
|
|
4325
4325
|
data: r.buffer,
|
|
4326
4326
|
dataType: e,
|
|
@@ -4436,7 +4436,7 @@ const Ai = (n) => {
|
|
|
4436
4436
|
*/
|
|
4437
4437
|
binarySearch(e) {
|
|
4438
4438
|
let t = 0, r = this.length - 1;
|
|
4439
|
-
const i =
|
|
4439
|
+
const i = al(e);
|
|
4440
4440
|
for (; t <= r; ) {
|
|
4441
4441
|
const a = Math.floor((t + r) / 2), o = i(this.at(a, !0), e);
|
|
4442
4442
|
if (o === 0) return a;
|
|
@@ -4519,10 +4519,10 @@ const Ai = (n) => {
|
|
|
4519
4519
|
}
|
|
4520
4520
|
[Symbol.iterator]() {
|
|
4521
4521
|
if (this.dataType.isVariable) {
|
|
4522
|
-
const e = new
|
|
4523
|
-
return this.dataType.equals(I.JSON) ? new
|
|
4522
|
+
const e = new tu(this);
|
|
4523
|
+
return this.dataType.equals(I.JSON) ? new nu(e) : e;
|
|
4524
4524
|
}
|
|
4525
|
-
return new
|
|
4525
|
+
return new ru(this);
|
|
4526
4526
|
}
|
|
4527
4527
|
slice(e, t) {
|
|
4528
4528
|
return this.sliceSub(!1, e, t);
|
|
@@ -4578,20 +4578,20 @@ const Ai = (n) => {
|
|
|
4578
4578
|
f(Tt, "crudeZ", s.object({
|
|
4579
4579
|
timeRange: V.z.optional(),
|
|
4580
4580
|
dataType: I.z,
|
|
4581
|
-
alignment:
|
|
4581
|
+
alignment: ql.optional(),
|
|
4582
4582
|
data: s.union([
|
|
4583
|
-
Xl,
|
|
4584
4583
|
Ql,
|
|
4584
|
+
eu,
|
|
4585
4585
|
s.instanceof(ArrayBuffer),
|
|
4586
4586
|
s.instanceof(Uint8Array)
|
|
4587
4587
|
]),
|
|
4588
|
-
glBufferUsage:
|
|
4588
|
+
glBufferUsage: Jl.optional().default("static").optional()
|
|
4589
4589
|
})), f(Tt, "z", Tt.crudeZ.transform((n) => new Tt(n)));
|
|
4590
4590
|
let $e = Tt, Os = class {
|
|
4591
4591
|
constructor(e, t, r) {
|
|
4592
4592
|
f(this, "series"), f(this, "end"), f(this, "index"), this.series = e;
|
|
4593
4593
|
const i = K(0, e.length);
|
|
4594
|
-
this.end =
|
|
4594
|
+
this.end = ms(i, r), this.index = ms(i, t);
|
|
4595
4595
|
}
|
|
4596
4596
|
next() {
|
|
4597
4597
|
return this.index >= this.end ? { done: !0, value: void 0 } : { done: !1, value: this.series.at(this.index++, !0) };
|
|
@@ -4600,7 +4600,7 @@ let $e = Tt, Os = class {
|
|
|
4600
4600
|
return this;
|
|
4601
4601
|
}
|
|
4602
4602
|
};
|
|
4603
|
-
class
|
|
4603
|
+
class tu {
|
|
4604
4604
|
constructor(e) {
|
|
4605
4605
|
if (f(this, "series"), f(this, "index"), f(this, "decoder"), !e.dataType.isVariable)
|
|
4606
4606
|
throw new Error(
|
|
@@ -4619,7 +4619,7 @@ class eu {
|
|
|
4619
4619
|
}
|
|
4620
4620
|
}
|
|
4621
4621
|
var Es, Ns;
|
|
4622
|
-
class
|
|
4622
|
+
class nu {
|
|
4623
4623
|
constructor(e) {
|
|
4624
4624
|
f(this, "wrapped"), f(this, Es, "JSONSeriesIterator"), this.wrapped = e;
|
|
4625
4625
|
}
|
|
@@ -4635,7 +4635,7 @@ class tu {
|
|
|
4635
4635
|
}
|
|
4636
4636
|
}
|
|
4637
4637
|
var Ss, Is;
|
|
4638
|
-
class
|
|
4638
|
+
class ru {
|
|
4639
4639
|
constructor(e) {
|
|
4640
4640
|
f(this, "series"), f(this, "index"), f(this, Ss, "SeriesIterator"), this.series = e, this.index = 0;
|
|
4641
4641
|
}
|
|
@@ -4650,7 +4650,7 @@ class nu {
|
|
|
4650
4650
|
}
|
|
4651
4651
|
}
|
|
4652
4652
|
const Ot = (n, e) => typeof n == "bigint" && typeof e == "bigint" || typeof n == "number" && typeof e == "number" ? n + e : e === 0 ? n : n === 0 ? e : Number(n) + Number(e);
|
|
4653
|
-
class
|
|
4653
|
+
class su {
|
|
4654
4654
|
constructor(e) {
|
|
4655
4655
|
if (f(this, "series"), e.length !== 0) {
|
|
4656
4656
|
const t = e[0].dataType;
|
|
@@ -4763,22 +4763,22 @@ class ru {
|
|
|
4763
4763
|
}
|
|
4764
4764
|
traverseAlignment(e, t) {
|
|
4765
4765
|
const r = this.series.map((i) => i.alignmentBounds);
|
|
4766
|
-
return
|
|
4766
|
+
return Il(r, e, t);
|
|
4767
4767
|
}
|
|
4768
4768
|
distance(e, t) {
|
|
4769
4769
|
const r = this.series.map((i) => i.alignmentBounds);
|
|
4770
|
-
return
|
|
4770
|
+
return kl(r, e, t);
|
|
4771
4771
|
}
|
|
4772
4772
|
[Symbol.iterator]() {
|
|
4773
4773
|
return this.series.length === 0 ? {
|
|
4774
4774
|
next() {
|
|
4775
4775
|
return { done: !0, value: void 0 };
|
|
4776
4776
|
}
|
|
4777
|
-
} : new
|
|
4777
|
+
} : new iu(this.series);
|
|
4778
4778
|
}
|
|
4779
4779
|
}
|
|
4780
4780
|
var ks, $s;
|
|
4781
|
-
class
|
|
4781
|
+
class iu {
|
|
4782
4782
|
constructor(e) {
|
|
4783
4783
|
f(this, "series"), f(this, "seriesIndex"), f(this, "internal"), f(this, ks, "MultiSeriesIterator"), this.series = e, this.seriesIndex = 0, this.internal = e[0][Symbol.iterator]();
|
|
4784
4784
|
}
|
|
@@ -4804,13 +4804,18 @@ let Kn = class {
|
|
|
4804
4804
|
const As = (n) => {
|
|
4805
4805
|
const e = n >> 32n, t = n & 0xffffffffn;
|
|
4806
4806
|
return { domain: e, sample: t };
|
|
4807
|
+
}, au = (n, e) => {
|
|
4808
|
+
let t = null;
|
|
4809
|
+
return e === 0 ? n : (...r) => {
|
|
4810
|
+
t !== null && (clearTimeout(t), t = null), t = setTimeout(() => n(...r), e);
|
|
4811
|
+
};
|
|
4807
4812
|
};
|
|
4808
4813
|
s.object({
|
|
4809
4814
|
key: s.string(),
|
|
4810
4815
|
value: s.string()
|
|
4811
4816
|
});
|
|
4812
|
-
var
|
|
4813
|
-
let
|
|
4817
|
+
var ou = Object.defineProperty, cu = (n, e, t) => e in n ? ou(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, un = (n, e, t) => cu(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4818
|
+
let lu = class {
|
|
4814
4819
|
constructor(e, t) {
|
|
4815
4820
|
un(this, "handlers"), un(this, "transform"), un(this, "closer"), this.transform = e, this.handlers = t ?? /* @__PURE__ */ new Map();
|
|
4816
4821
|
}
|
|
@@ -4835,7 +4840,7 @@ let ou = class {
|
|
|
4835
4840
|
var e;
|
|
4836
4841
|
return await ((e = this.closer) == null ? void 0 : e.call(this));
|
|
4837
4842
|
}
|
|
4838
|
-
},
|
|
4843
|
+
}, uu = class {
|
|
4839
4844
|
constructor(e) {
|
|
4840
4845
|
un(this, "handlers"), this.handlers = e ?? /* @__PURE__ */ new Map();
|
|
4841
4846
|
}
|
|
@@ -4848,17 +4853,24 @@ let ou = class {
|
|
|
4848
4853
|
};
|
|
4849
4854
|
const xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4850
4855
|
__proto__: null,
|
|
4851
|
-
BaseObserver:
|
|
4852
|
-
Observer:
|
|
4856
|
+
BaseObserver: uu,
|
|
4857
|
+
Observer: lu
|
|
4853
4858
|
}, Symbol.toStringTag, { value: "Module" })), Mt = s.record(
|
|
4854
4859
|
s.union([s.number(), s.string(), s.symbol()]),
|
|
4855
4860
|
s.unknown()
|
|
4856
|
-
),
|
|
4857
|
-
|
|
4858
|
-
const
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4861
|
+
), hu = () => typeof process < "u" && process.versions != null && process.versions.node != null ? "node" : typeof window > "u" || window.document === void 0 ? "webworker" : "browser";
|
|
4862
|
+
hu();
|
|
4863
|
+
const du = ["MacOS", "Windows", "Linux", "Docker"], fu = ["macos", "windows", "linux", "docker"], yu = {
|
|
4864
|
+
macos: "MacOS",
|
|
4865
|
+
windows: "Windows",
|
|
4866
|
+
linux: "Linux",
|
|
4867
|
+
docker: "Docker"
|
|
4868
|
+
};
|
|
4869
|
+
s.enum(du).or(
|
|
4870
|
+
s.enum(fu).transform((n) => yu[n])
|
|
4871
|
+
);
|
|
4872
|
+
var gu = Object.defineProperty, pu = (n, e, t) => e in n ? gu(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Et = (n, e, t) => pu(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4873
|
+
const mu = (...n) => n.map(Ri).join(""), Ri = (n) => (n.endsWith("/") || (n += "/"), n.startsWith("/") && (n = n.slice(1)), n), wu = (n) => n.endsWith("/") ? n.slice(0, -1) : n, Tr = class Or {
|
|
4862
4874
|
/**
|
|
4863
4875
|
* @param host - The hostname or IP address of the server.
|
|
4864
4876
|
* @param port - The port number of the server.
|
|
@@ -4889,20 +4901,34 @@ const fu = (...n) => n.map(Ri).join(""), Ri = (n) => (n.endsWith("/") || (n += "
|
|
|
4889
4901
|
child(e) {
|
|
4890
4902
|
return new Or({
|
|
4891
4903
|
...this,
|
|
4892
|
-
pathPrefix:
|
|
4904
|
+
pathPrefix: mu(this.path, e)
|
|
4893
4905
|
});
|
|
4894
4906
|
}
|
|
4895
4907
|
/** @returns a string representation of the url */
|
|
4896
4908
|
toString() {
|
|
4897
|
-
return
|
|
4909
|
+
return wu(
|
|
4898
4910
|
`${this.protocol}://${this.host}:${this.port}/${this.path}`
|
|
4899
4911
|
);
|
|
4900
4912
|
}
|
|
4901
4913
|
};
|
|
4902
4914
|
Et(Tr, "UNKNOWN", new Tr({ host: "unknown", port: 0 }));
|
|
4903
|
-
let
|
|
4904
|
-
var
|
|
4905
|
-
const
|
|
4915
|
+
let bu = Tr;
|
|
4916
|
+
var vu = Object.defineProperty, Tu = (n, e, t) => e in n ? vu(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, hn = (n, e, t) => Tu(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4917
|
+
const Ou = async (n) => await new Promise(
|
|
4918
|
+
(e) => setTimeout(e, S.fromMilliseconds(n).milliseconds)
|
|
4919
|
+
), Eu = s.object({
|
|
4920
|
+
interval: S.z.optional(),
|
|
4921
|
+
maxRetries: s.number().optional(),
|
|
4922
|
+
scale: s.number().optional()
|
|
4923
|
+
}), Nu = (n = {}) => {
|
|
4924
|
+
const e = n.sleepFn || Ou, t = n.maxRetries ?? 5, r = n.scale ?? 1;
|
|
4925
|
+
let i = 0, a = new S(n.interval ?? S.milliseconds(1));
|
|
4926
|
+
return async () => i >= t ? !1 : (await e(a), a = a.mult(r), i++, !0);
|
|
4927
|
+
}, Su = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4928
|
+
__proto__: null,
|
|
4929
|
+
breakerConfig: Eu,
|
|
4930
|
+
create: Nu
|
|
4931
|
+
}, Symbol.toStringTag, { value: "Module" })), ke = class extends Number {
|
|
4906
4932
|
};
|
|
4907
4933
|
hn(ke, "Absolute", 255), hn(ke, "Default", 1), hn(ke, "z", s.union([
|
|
4908
4934
|
s.instanceof(ke),
|
|
@@ -4913,18 +4939,18 @@ let xi = ke;
|
|
|
4913
4939
|
const Ci = s.object({
|
|
4914
4940
|
name: s.string(),
|
|
4915
4941
|
key: s.string()
|
|
4916
|
-
}),
|
|
4942
|
+
}), Iu = (n) => s.object({
|
|
4917
4943
|
subject: Ci,
|
|
4918
4944
|
resource: n,
|
|
4919
4945
|
authority: xi.z
|
|
4920
|
-
}),
|
|
4946
|
+
}), ku = (...n) => (e) => e.filter((t) => {
|
|
4921
4947
|
let r = !1;
|
|
4922
4948
|
return t.to != null && (r = n.includes(t.to.resource)), t.from != null && !r && (r = n.includes(t.from.resource)), r;
|
|
4923
4949
|
}), rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4924
4950
|
__proto__: null,
|
|
4925
4951
|
Authority: xi,
|
|
4926
|
-
filterTransfersByChannelKey:
|
|
4927
|
-
stateZ:
|
|
4952
|
+
filterTransfersByChannelKey: ku,
|
|
4953
|
+
stateZ: Iu,
|
|
4928
4954
|
subjectZ: Ci
|
|
4929
4955
|
}, Symbol.toStringTag, { value: "Module" })), Pi = class Nt extends Error {
|
|
4930
4956
|
constructor() {
|
|
@@ -4936,25 +4962,25 @@ const Ci = s.object({
|
|
|
4936
4962
|
}
|
|
4937
4963
|
};
|
|
4938
4964
|
hn(Pi, "MESSAGE", "canceled");
|
|
4939
|
-
let
|
|
4940
|
-
new
|
|
4965
|
+
let $u = Pi;
|
|
4966
|
+
new $u();
|
|
4941
4967
|
const Er = s.string().regex(/^\d+\.\d+\.\d+$/), Bt = (n, e, t = {}) => {
|
|
4942
4968
|
t.checkMajor ?? (t.checkMajor = !0), t.checkMinor ?? (t.checkMinor = !0), t.checkPatch ?? (t.checkPatch = !0);
|
|
4943
4969
|
const r = Er.parse(n), i = Er.parse(e), [a, o, l] = r.split(".").map(Number), [u, h, y] = i.split(".").map(Number);
|
|
4944
4970
|
if (t.checkMajor) {
|
|
4945
|
-
if (a < u) return
|
|
4946
|
-
if (a > u) return
|
|
4971
|
+
if (a < u) return Wn;
|
|
4972
|
+
if (a > u) return Gn;
|
|
4947
4973
|
}
|
|
4948
4974
|
if (t.checkMinor) {
|
|
4949
|
-
if (o < h) return
|
|
4950
|
-
if (o > h) return
|
|
4975
|
+
if (o < h) return Wn;
|
|
4976
|
+
if (o > h) return Gn;
|
|
4951
4977
|
}
|
|
4952
4978
|
if (t.checkPatch) {
|
|
4953
|
-
if (l < y) return
|
|
4954
|
-
if (l > y) return
|
|
4979
|
+
if (l < y) return Wn;
|
|
4980
|
+
if (l > y) return Gn;
|
|
4955
4981
|
}
|
|
4956
|
-
return
|
|
4957
|
-
},
|
|
4982
|
+
return In;
|
|
4983
|
+
}, Au = (n, e, t = {}) => ul(Bt(n, e, t)), Di = (n, e, t = {}) => ll(Bt(n, e, t)), Ru = (n, e, t = {}) => cl(Bt(n, e, t)), xu = ({
|
|
4958
4984
|
name: n,
|
|
4959
4985
|
migrate: e
|
|
4960
4986
|
}) => (t) => {
|
|
@@ -4964,7 +4990,7 @@ const Er = s.string().regex(/^\d+\.\d+\.\d+$/), Bt = (n, e, t = {}) => {
|
|
|
4964
4990
|
} catch (r) {
|
|
4965
4991
|
throw console.log(`${n} failed to migrate from ${t.version}`), console.error(r), r;
|
|
4966
4992
|
}
|
|
4967
|
-
},
|
|
4993
|
+
}, Cu = ({
|
|
4968
4994
|
name: n,
|
|
4969
4995
|
migrations: e,
|
|
4970
4996
|
targetSchema: t,
|
|
@@ -5019,26 +5045,12 @@ const Er = s.string().regex(/^\d+\.\d+\.\d+$/), Bt = (n, e, t = {}) => {
|
|
|
5019
5045
|
}, Rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5020
5046
|
__proto__: null,
|
|
5021
5047
|
compareSemVer: Bt,
|
|
5022
|
-
createMigration:
|
|
5023
|
-
migrator:
|
|
5048
|
+
createMigration: xu,
|
|
5049
|
+
migrator: Cu,
|
|
5024
5050
|
semVerNewer: Di,
|
|
5025
|
-
semVerOlder:
|
|
5051
|
+
semVerOlder: Ru,
|
|
5026
5052
|
semVerZ: Er,
|
|
5027
|
-
versionsEqual:
|
|
5028
|
-
}, Symbol.toStringTag, { value: "Module" })), Su = async (n) => await new Promise(
|
|
5029
|
-
(e) => setTimeout(e, S.fromMilliseconds(n).milliseconds)
|
|
5030
|
-
), Iu = s.object({
|
|
5031
|
-
interval: S.z.optional(),
|
|
5032
|
-
maxRetries: s.number().optional(),
|
|
5033
|
-
scale: s.number().optional()
|
|
5034
|
-
}), ku = (n = {}) => {
|
|
5035
|
-
const e = n.sleepFn || Su, t = n.maxRetries ?? 5, r = n.scale ?? 1;
|
|
5036
|
-
let i = 0, a = new S(n.interval ?? S.milliseconds(1));
|
|
5037
|
-
return async () => i >= t ? !1 : (await e(a), a = a.mult(r), i++, !0);
|
|
5038
|
-
}, $u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5039
|
-
__proto__: null,
|
|
5040
|
-
breakerConfig: Iu,
|
|
5041
|
-
create: ku
|
|
5053
|
+
versionsEqual: Au
|
|
5042
5054
|
}, Symbol.toStringTag, { value: "Module" })), Se = "sy.", Le = class Le extends se {
|
|
5043
5055
|
constructor() {
|
|
5044
5056
|
super(...arguments);
|
|
@@ -5146,7 +5158,7 @@ const He = class He extends se {
|
|
|
5146
5158
|
};
|
|
5147
5159
|
c(He, "TYPE", `${Se}contiguity`), c(He, "matches", Q(He.TYPE));
|
|
5148
5160
|
let xs = He;
|
|
5149
|
-
const
|
|
5161
|
+
const Pu = (n) => {
|
|
5150
5162
|
if (!n.type.startsWith(Se)) return null;
|
|
5151
5163
|
if (n.type.startsWith(U.TYPE)) {
|
|
5152
5164
|
if (n.type === mn.TYPE) {
|
|
@@ -5156,11 +5168,11 @@ const Au = (n) => {
|
|
|
5156
5168
|
return new U(n.data);
|
|
5157
5169
|
}
|
|
5158
5170
|
return n.type.startsWith(st.TYPE) ? n.type.startsWith(Rt.TYPE) ? new Rt(n.data) : new st(n.data) : n.type.startsWith(Re.TYPE) ? new Re(n.data) : n.type.startsWith(ne.TYPE) ? n.type.startsWith(Ee.TYPE) ? new Ee(n.data) : n.type.startsWith(Ne.TYPE) ? new Ne(n.data) : new ne(n.data) : n.type.startsWith(it.TYPE) ? n.type.startsWith(bn.TYPE) ? new bn(n.data) : new it(n.data) : n.type.startsWith(wn.TYPE) ? new wn(n.data, n.data) : new Re(n.data);
|
|
5159
|
-
},
|
|
5171
|
+
}, Du = () => {
|
|
5160
5172
|
throw new Error("Not implemented");
|
|
5161
5173
|
};
|
|
5162
|
-
oi({ encode:
|
|
5163
|
-
const
|
|
5174
|
+
oi({ encode: Du, decode: Pu });
|
|
5175
|
+
const ju = async (n, e) => {
|
|
5164
5176
|
const [t, r] = await e(n);
|
|
5165
5177
|
return r == null ? [t, r] : r instanceof Oe ? [
|
|
5166
5178
|
t,
|
|
@@ -5183,7 +5195,7 @@ class xr {
|
|
|
5183
5195
|
});
|
|
5184
5196
|
}
|
|
5185
5197
|
}
|
|
5186
|
-
const Cr = s.string().uuid(), Pr = s.object({ key: Cr, name: s.string() }),
|
|
5198
|
+
const Cr = s.string().uuid(), Pr = s.object({ key: Cr, name: s.string() }), Mu = (n) => {
|
|
5187
5199
|
const e = b(n);
|
|
5188
5200
|
if (e.length === 0) throw new Error("No groups specified");
|
|
5189
5201
|
const t = Cr.safeParse(e[0]).success;
|
|
@@ -5193,7 +5205,7 @@ const Cr = s.string().uuid(), Pr = s.object({ key: Cr, name: s.string() }), Cu =
|
|
|
5193
5205
|
normalized: e,
|
|
5194
5206
|
actual: n
|
|
5195
5207
|
};
|
|
5196
|
-
}, ji = "group",
|
|
5208
|
+
}, ji = "group", Bu = (n) => new O({ type: ji, key: n }), Ut = s.union([
|
|
5197
5209
|
s.literal("label"),
|
|
5198
5210
|
s.literal("log"),
|
|
5199
5211
|
s.literal("allow_all"),
|
|
@@ -5214,7 +5226,7 @@ const Cr = s.string().uuid(), Pr = s.object({ key: Cr, name: s.string() }), Cu =
|
|
|
5214
5226
|
s.literal("task"),
|
|
5215
5227
|
s.literal("policy"),
|
|
5216
5228
|
s.literal("table")
|
|
5217
|
-
]),
|
|
5229
|
+
]), Uu = "builtin", Zu = "cluster", Lu = "node", H = s.object({ type: Ut, key: s.string() }), Mi = s.string().transform((n) => {
|
|
5218
5230
|
const [e, t] = n.split(":");
|
|
5219
5231
|
return { type: Ut.parse(e), key: t ?? "" };
|
|
5220
5232
|
}), Ue = s.union([Mi, H]), Xe = class Xe {
|
|
@@ -5247,7 +5259,7 @@ const Cr = s.string().uuid(), Pr = s.object({ key: Cr, name: s.string() }), Cu =
|
|
|
5247
5259
|
};
|
|
5248
5260
|
c(Xe, "z", s.union([s.instanceof(Xe), Ue.transform((e) => new Xe(e))]));
|
|
5249
5261
|
let O = Xe;
|
|
5250
|
-
const
|
|
5262
|
+
const _u = new O({ type: "builtin", key: "root" }), Bi = s.object({ type: s.number() }), Ui = s.object({
|
|
5251
5263
|
type: Ut,
|
|
5252
5264
|
fields: s.record(Bi)
|
|
5253
5265
|
}), Zi = s.object({
|
|
@@ -5255,23 +5267,23 @@ const Bu = new O({ type: "builtin", key: "root" }), Bi = s.object({ type: s.numb
|
|
|
5255
5267
|
name: s.string(),
|
|
5256
5268
|
schema: Ui.optional().nullable(),
|
|
5257
5269
|
data: s.record(s.unknown()).optional().nullable()
|
|
5258
|
-
}).transform((n) => ({ key: n.id.toString(), ...n })),
|
|
5270
|
+
}).transform((n) => ({ key: n.id.toString(), ...n })), Yu = s.object({ from: O.z, type: s.string(), to: O.z }), Nr = (n) => {
|
|
5259
5271
|
const [e, t, r] = n.split("->");
|
|
5260
5272
|
return { from: new O(e), type: t, to: new O(r) };
|
|
5261
|
-
},
|
|
5273
|
+
}, qu = s.object({
|
|
5262
5274
|
group: Pr
|
|
5263
|
-
}),
|
|
5275
|
+
}), zu = s.object({
|
|
5264
5276
|
parent: H,
|
|
5265
5277
|
key: s.string().uuid().optional(),
|
|
5266
5278
|
name: s.string()
|
|
5267
|
-
}),
|
|
5279
|
+
}), Wu = s.object({
|
|
5268
5280
|
key: s.string(),
|
|
5269
5281
|
name: s.string()
|
|
5270
|
-
}),
|
|
5282
|
+
}), Gu = s.object({
|
|
5271
5283
|
keys: s.array(s.string())
|
|
5272
5284
|
});
|
|
5273
5285
|
var re;
|
|
5274
|
-
let
|
|
5286
|
+
let Vu = (re = class {
|
|
5275
5287
|
constructor(e) {
|
|
5276
5288
|
c(this, "client");
|
|
5277
5289
|
this.client = e;
|
|
@@ -5281,8 +5293,8 @@ let qu = (re = class {
|
|
|
5281
5293
|
this.client,
|
|
5282
5294
|
re.ENDPOINT,
|
|
5283
5295
|
{ parent: e, name: t, key: r },
|
|
5284
|
-
|
|
5285
|
-
|
|
5296
|
+
zu,
|
|
5297
|
+
qu
|
|
5286
5298
|
)).group;
|
|
5287
5299
|
}
|
|
5288
5300
|
async rename(e, t) {
|
|
@@ -5290,7 +5302,7 @@ let qu = (re = class {
|
|
|
5290
5302
|
this.client,
|
|
5291
5303
|
re.ENDPOINT_RENAME,
|
|
5292
5304
|
{ key: e, name: t },
|
|
5293
|
-
|
|
5305
|
+
Wu,
|
|
5294
5306
|
s.object({})
|
|
5295
5307
|
);
|
|
5296
5308
|
}
|
|
@@ -5299,14 +5311,14 @@ let qu = (re = class {
|
|
|
5299
5311
|
this.client,
|
|
5300
5312
|
re.ENDPOINT_DELETE,
|
|
5301
5313
|
{ keys: e },
|
|
5302
|
-
|
|
5314
|
+
Gu,
|
|
5303
5315
|
s.object({})
|
|
5304
5316
|
);
|
|
5305
5317
|
}
|
|
5306
5318
|
}, c(re, "ENDPOINT", "/ontology/create-group"), c(re, "ENDPOINT_RENAME", "/ontology/rename-group"), c(re, "ENDPOINT_DELETE", "/ontology/delete-group"), re), Li = class {
|
|
5307
5319
|
constructor(e) {
|
|
5308
5320
|
c(this, "creator");
|
|
5309
|
-
this.creator = new
|
|
5321
|
+
this.creator = new Vu(e);
|
|
5310
5322
|
}
|
|
5311
5323
|
async create(e, t, r) {
|
|
5312
5324
|
return this.sugar(await this.creator.create(e, t, r));
|
|
@@ -5321,15 +5333,15 @@ let qu = (re = class {
|
|
|
5321
5333
|
return new xr(e.name, e.key);
|
|
5322
5334
|
}
|
|
5323
5335
|
};
|
|
5324
|
-
const
|
|
5336
|
+
const Rg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5325
5337
|
__proto__: null,
|
|
5326
5338
|
Client: Li,
|
|
5327
5339
|
Group: xr,
|
|
5328
5340
|
ONTOLOGY_TYPE: ji,
|
|
5329
|
-
analyzeParams:
|
|
5341
|
+
analyzeParams: Mu,
|
|
5330
5342
|
groupZ: Pr,
|
|
5331
5343
|
keyZ: Cr,
|
|
5332
|
-
ontologyID:
|
|
5344
|
+
ontologyID: Bu
|
|
5333
5345
|
}, Symbol.toStringTag, { value: "Module" })), Hn = {
|
|
5334
5346
|
ADD_CHILDREN: "/ontology/add-children",
|
|
5335
5347
|
REMOVE_CHILDREN: "/ontology/remove-children",
|
|
@@ -5337,12 +5349,12 @@ const Ig = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5337
5349
|
}, Cs = s.object({
|
|
5338
5350
|
id: H,
|
|
5339
5351
|
children: H.array()
|
|
5340
|
-
}),
|
|
5352
|
+
}), Fu = s.object({
|
|
5341
5353
|
from: H,
|
|
5342
5354
|
to: H,
|
|
5343
5355
|
children: H.array()
|
|
5344
5356
|
});
|
|
5345
|
-
let
|
|
5357
|
+
let Ju = class {
|
|
5346
5358
|
constructor(e) {
|
|
5347
5359
|
c(this, "client");
|
|
5348
5360
|
this.client = e;
|
|
@@ -5375,12 +5387,12 @@ let Wu = class {
|
|
|
5375
5387
|
this.client,
|
|
5376
5388
|
Hn.MOVE_CHILDREN,
|
|
5377
5389
|
i,
|
|
5378
|
-
|
|
5390
|
+
Fu,
|
|
5379
5391
|
s.object({})
|
|
5380
5392
|
);
|
|
5381
5393
|
}
|
|
5382
5394
|
};
|
|
5383
|
-
const
|
|
5395
|
+
const Ku = "/ontology/retrieve", Hu = s.object({
|
|
5384
5396
|
ids: H.array().optional(),
|
|
5385
5397
|
children: s.boolean().optional(),
|
|
5386
5398
|
parents: s.boolean().optional(),
|
|
@@ -5390,7 +5402,7 @@ const Gu = "/ontology/retrieve", Vu = s.object({
|
|
|
5390
5402
|
limit: s.number().optional(),
|
|
5391
5403
|
offset: s.number().optional(),
|
|
5392
5404
|
types: Ut.array().optional()
|
|
5393
|
-
}),
|
|
5405
|
+
}), Xu = s.object({
|
|
5394
5406
|
resources: Zi.array()
|
|
5395
5407
|
}), dn = (n) => b(n).map((e) => new O(e).payload);
|
|
5396
5408
|
let _i = class {
|
|
@@ -5400,7 +5412,7 @@ let _i = class {
|
|
|
5400
5412
|
c(this, "client");
|
|
5401
5413
|
c(this, "writer");
|
|
5402
5414
|
c(this, "framer");
|
|
5403
|
-
this.client = e, this.writer = new
|
|
5415
|
+
this.client = e, this.writer = new Ju(e), this.groups = new Li(e), this.framer = t;
|
|
5404
5416
|
}
|
|
5405
5417
|
/**
|
|
5406
5418
|
* Executes a fuzzy search on the ontology for resources with names/fields similar to the
|
|
@@ -5511,10 +5523,10 @@ let _i = class {
|
|
|
5511
5523
|
async execRetrieve(e) {
|
|
5512
5524
|
const { resources: t } = await w(
|
|
5513
5525
|
this.client,
|
|
5514
|
-
|
|
5526
|
+
Ku,
|
|
5515
5527
|
e,
|
|
5516
|
-
|
|
5517
|
-
|
|
5528
|
+
Hu,
|
|
5529
|
+
Xu
|
|
5518
5530
|
);
|
|
5519
5531
|
return t;
|
|
5520
5532
|
}
|
|
@@ -5646,21 +5658,21 @@ class $n extends xe.Observer {
|
|
|
5646
5658
|
await this.internal.close();
|
|
5647
5659
|
}
|
|
5648
5660
|
}
|
|
5649
|
-
const
|
|
5661
|
+
const Pg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5650
5662
|
__proto__: null,
|
|
5651
|
-
BUILTIN_TYPE:
|
|
5652
|
-
CLUSTER_TYPE:
|
|
5663
|
+
BUILTIN_TYPE: Uu,
|
|
5664
|
+
CLUSTER_TYPE: Zu,
|
|
5653
5665
|
ChangeTracker: Zt,
|
|
5654
5666
|
Client: _i,
|
|
5655
5667
|
DependentTracker: $n,
|
|
5656
5668
|
ID: O,
|
|
5657
|
-
NODE_TYPE:
|
|
5658
|
-
Root:
|
|
5669
|
+
NODE_TYPE: Lu,
|
|
5670
|
+
Root: _u,
|
|
5659
5671
|
crudeIDZ: Ue,
|
|
5660
5672
|
idZ: H,
|
|
5661
5673
|
parseIDs: dn,
|
|
5662
5674
|
parseRelationship: Nr,
|
|
5663
|
-
relationshipSchemaZ:
|
|
5675
|
+
relationshipSchemaZ: Yu,
|
|
5664
5676
|
resourceSchemaZ: Zi,
|
|
5665
5677
|
resourceTypeZ: Ut,
|
|
5666
5678
|
schemaFieldZ: Bi,
|
|
@@ -5676,14 +5688,14 @@ const Ag = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5676
5688
|
subjects: X(H),
|
|
5677
5689
|
objects: X(H),
|
|
5678
5690
|
actions: X(gn)
|
|
5679
|
-
}), qi = "policy",
|
|
5691
|
+
}), qi = "policy", Qu = (n) => new O({ type: qi, key: n }), zi = "allow_all", eh = new O({
|
|
5680
5692
|
type: zi,
|
|
5681
5693
|
key: ""
|
|
5682
|
-
}),
|
|
5694
|
+
}), th = s.object({
|
|
5683
5695
|
keys: Lt.array().optional(),
|
|
5684
5696
|
subjects: H.array().optional()
|
|
5685
|
-
}),
|
|
5686
|
-
let
|
|
5697
|
+
}), nh = s.object({ policies: X(An) }), rh = "/access/policy/retrieve";
|
|
5698
|
+
let sh = class {
|
|
5687
5699
|
constructor(e) {
|
|
5688
5700
|
c(this, "client");
|
|
5689
5701
|
this.client = e;
|
|
@@ -5691,15 +5703,15 @@ let eh = class {
|
|
|
5691
5703
|
async retrieve(e) {
|
|
5692
5704
|
return (await w(
|
|
5693
5705
|
this.client,
|
|
5694
|
-
|
|
5706
|
+
rh,
|
|
5695
5707
|
e,
|
|
5696
|
-
|
|
5697
|
-
|
|
5708
|
+
th,
|
|
5709
|
+
nh
|
|
5698
5710
|
)).policies;
|
|
5699
5711
|
}
|
|
5700
5712
|
};
|
|
5701
|
-
const
|
|
5702
|
-
let
|
|
5713
|
+
const ih = s.object({ policies: An.partial({ key: !0 }).array() }), ah = s.object({ policies: An.array() }), oh = s.object({ keys: Lt.array() }), ch = s.object({}), lh = "/access/policy/create", uh = "/access/policy/delete";
|
|
5714
|
+
let hh = class {
|
|
5703
5715
|
constructor(e) {
|
|
5704
5716
|
c(this, "client");
|
|
5705
5717
|
this.client = e;
|
|
@@ -5712,26 +5724,26 @@ let oh = class {
|
|
|
5712
5724
|
}));
|
|
5713
5725
|
return (await w(
|
|
5714
5726
|
this.client,
|
|
5715
|
-
|
|
5727
|
+
lh,
|
|
5716
5728
|
{ policies: r },
|
|
5717
|
-
|
|
5718
|
-
|
|
5729
|
+
ih,
|
|
5730
|
+
ah
|
|
5719
5731
|
)).policies;
|
|
5720
5732
|
}
|
|
5721
5733
|
async delete(e) {
|
|
5722
5734
|
await w(
|
|
5723
5735
|
this.client,
|
|
5724
|
-
|
|
5736
|
+
uh,
|
|
5725
5737
|
{ keys: b(e) },
|
|
5726
|
-
|
|
5727
|
-
|
|
5738
|
+
oh,
|
|
5739
|
+
ch
|
|
5728
5740
|
);
|
|
5729
5741
|
}
|
|
5730
5742
|
}, Wi = class {
|
|
5731
5743
|
constructor(e) {
|
|
5732
5744
|
c(this, "retriever");
|
|
5733
5745
|
c(this, "writer");
|
|
5734
|
-
this.retriever = new
|
|
5746
|
+
this.retriever = new sh(e), this.writer = new hh(e);
|
|
5735
5747
|
}
|
|
5736
5748
|
async create(e) {
|
|
5737
5749
|
const t = Array.isArray(e), r = await this.writer.create(e);
|
|
@@ -5749,15 +5761,15 @@ let oh = class {
|
|
|
5749
5761
|
await this.writer.delete(e);
|
|
5750
5762
|
}
|
|
5751
5763
|
};
|
|
5752
|
-
const
|
|
5764
|
+
const Bg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5753
5765
|
__proto__: null,
|
|
5754
|
-
ALLOW_ALL_ONTOLOGY_ID:
|
|
5766
|
+
ALLOW_ALL_ONTOLOGY_ID: eh,
|
|
5755
5767
|
ALLOW_ALL_ONTOLOGY_TYPE: zi,
|
|
5756
5768
|
Client: Wi,
|
|
5757
5769
|
ONTOLOGY_TYPE: qi,
|
|
5758
5770
|
keyZ: Lt,
|
|
5759
5771
|
newPolicyZ: Yi,
|
|
5760
|
-
ontologyID:
|
|
5772
|
+
ontologyID: Qu,
|
|
5761
5773
|
policyZ: An
|
|
5762
5774
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5763
5775
|
let Gi = class {
|
|
@@ -5766,14 +5778,14 @@ let Gi = class {
|
|
|
5766
5778
|
this.policy = new Wi(e);
|
|
5767
5779
|
}
|
|
5768
5780
|
};
|
|
5769
|
-
const
|
|
5781
|
+
const Zg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5770
5782
|
__proto__: null,
|
|
5771
|
-
ALL_ACTION:
|
|
5772
|
-
CREATE_ACTION:
|
|
5783
|
+
ALL_ACTION: Wc,
|
|
5784
|
+
CREATE_ACTION: Gc,
|
|
5773
5785
|
Client: Gi,
|
|
5774
|
-
DELETE_ACTION:
|
|
5775
|
-
RETRIEVE_ACTION:
|
|
5776
|
-
UPDATE_ACTION:
|
|
5786
|
+
DELETE_ACTION: Vc,
|
|
5787
|
+
RETRIEVE_ACTION: Fc,
|
|
5788
|
+
UPDATE_ACTION: Jc,
|
|
5777
5789
|
actionZ: gn
|
|
5778
5790
|
}, Symbol.toStringTag, { value: "Module" })), Ie = s.number(), _t = s.object({
|
|
5779
5791
|
name: s.string(),
|
|
@@ -5794,8 +5806,8 @@ const jg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5794
5806
|
isIndex: s.boolean().optional(),
|
|
5795
5807
|
internal: s.boolean().optional().default(!1),
|
|
5796
5808
|
virtual: s.boolean().optional().default(!1)
|
|
5797
|
-
}), Fi = "channel",
|
|
5798
|
-
var
|
|
5809
|
+
}), Fi = "channel", dh = (n) => new O({ type: Fi, key: n.toString() }), fh = new Error("request for lock canceled");
|
|
5810
|
+
var yh = function(n, e, t, r) {
|
|
5799
5811
|
function i(a) {
|
|
5800
5812
|
return a instanceof t ? a : new t(function(o) {
|
|
5801
5813
|
o(a);
|
|
@@ -5822,8 +5834,8 @@ var uh = function(n, e, t, r) {
|
|
|
5822
5834
|
h((r = r.apply(n, e || [])).next());
|
|
5823
5835
|
});
|
|
5824
5836
|
};
|
|
5825
|
-
class
|
|
5826
|
-
constructor(e, t =
|
|
5837
|
+
class gh {
|
|
5838
|
+
constructor(e, t = fh) {
|
|
5827
5839
|
this._value = e, this._cancelError = t, this._queue = [], this._weightedWaiters = [];
|
|
5828
5840
|
}
|
|
5829
5841
|
acquire(e = 1, t = 0) {
|
|
@@ -5835,7 +5847,7 @@ class hh {
|
|
|
5835
5847
|
});
|
|
5836
5848
|
}
|
|
5837
5849
|
runExclusive(e) {
|
|
5838
|
-
return
|
|
5850
|
+
return yh(this, arguments, void 0, function* (t, r = 1, i = 0) {
|
|
5839
5851
|
const [a, o] = yield this.acquire(r, i);
|
|
5840
5852
|
try {
|
|
5841
5853
|
return yield t(a);
|
|
@@ -5848,7 +5860,7 @@ class hh {
|
|
|
5848
5860
|
if (e <= 0)
|
|
5849
5861
|
throw new Error(`invalid weight ${e}: must be positive`);
|
|
5850
5862
|
return this._couldLockImmediately(e, t) ? Promise.resolve() : new Promise((r) => {
|
|
5851
|
-
this._weightedWaiters[e - 1] || (this._weightedWaiters[e - 1] = []),
|
|
5863
|
+
this._weightedWaiters[e - 1] || (this._weightedWaiters[e - 1] = []), ph(this._weightedWaiters[e - 1], { resolve: r, priority: t });
|
|
5852
5864
|
});
|
|
5853
5865
|
}
|
|
5854
5866
|
isLocked() {
|
|
@@ -5903,7 +5915,7 @@ class hh {
|
|
|
5903
5915
|
return (this._queue.length === 0 || this._queue[0].priority < t) && e <= this._value;
|
|
5904
5916
|
}
|
|
5905
5917
|
}
|
|
5906
|
-
function
|
|
5918
|
+
function ph(n, e) {
|
|
5907
5919
|
const t = Ji(n, (r) => e.priority <= r.priority);
|
|
5908
5920
|
n.splice(t + 1, 0, e);
|
|
5909
5921
|
}
|
|
@@ -5913,7 +5925,7 @@ function Ji(n, e) {
|
|
|
5913
5925
|
return t;
|
|
5914
5926
|
return -1;
|
|
5915
5927
|
}
|
|
5916
|
-
var
|
|
5928
|
+
var mh = function(n, e, t, r) {
|
|
5917
5929
|
function i(a) {
|
|
5918
5930
|
return a instanceof t ? a : new t(function(o) {
|
|
5919
5931
|
o(a);
|
|
@@ -5940,12 +5952,12 @@ var fh = function(n, e, t, r) {
|
|
|
5940
5952
|
h((r = r.apply(n, e || [])).next());
|
|
5941
5953
|
});
|
|
5942
5954
|
};
|
|
5943
|
-
class
|
|
5955
|
+
class wh {
|
|
5944
5956
|
constructor(e) {
|
|
5945
|
-
this._semaphore = new
|
|
5957
|
+
this._semaphore = new gh(1, e);
|
|
5946
5958
|
}
|
|
5947
5959
|
acquire() {
|
|
5948
|
-
return
|
|
5960
|
+
return mh(this, arguments, void 0, function* (e = 0) {
|
|
5949
5961
|
const [, t] = yield this._semaphore.acquire(1, e);
|
|
5950
5962
|
return t;
|
|
5951
5963
|
});
|
|
@@ -5986,7 +5998,7 @@ const Rn = (n, e, { convertNumericStrings: t = !0 } = {}) => {
|
|
|
5986
5998
|
`Expected one ${n} matching ${JSON.stringify(e)}, but found ${t.length}`
|
|
5987
5999
|
);
|
|
5988
6000
|
}
|
|
5989
|
-
},
|
|
6001
|
+
}, bh = s.object({
|
|
5990
6002
|
leaseholder: s.number().optional(),
|
|
5991
6003
|
keys: s.number().array().optional(),
|
|
5992
6004
|
names: s.string().array().optional(),
|
|
@@ -5999,7 +6011,7 @@ const Rn = (n, e, { convertNumericStrings: t = !0 } = {}) => {
|
|
|
5999
6011
|
virtual: s.boolean().optional(),
|
|
6000
6012
|
isIndex: s.boolean().optional(),
|
|
6001
6013
|
internal: s.boolean().optional()
|
|
6002
|
-
}),
|
|
6014
|
+
}), vh = s.object({
|
|
6003
6015
|
channels: X(_t)
|
|
6004
6016
|
}), pe = (n) => Rn(n, {
|
|
6005
6017
|
number: "keys",
|
|
@@ -6024,8 +6036,8 @@ const Rn = (n, e, { convertNumericStrings: t = !0 } = {}) => {
|
|
|
6024
6036
|
const [t, r] = await this.client.send(
|
|
6025
6037
|
On.ENDPOINT,
|
|
6026
6038
|
e,
|
|
6027
|
-
|
|
6028
|
-
|
|
6039
|
+
bh,
|
|
6040
|
+
vh
|
|
6029
6041
|
);
|
|
6030
6042
|
if (r != null) throw r;
|
|
6031
6043
|
return t.channels;
|
|
@@ -6103,11 +6115,11 @@ class Dr {
|
|
|
6103
6115
|
}
|
|
6104
6116
|
class Ki {
|
|
6105
6117
|
constructor(e, t) {
|
|
6106
|
-
c(this, "mu", new
|
|
6118
|
+
c(this, "mu", new wh());
|
|
6107
6119
|
c(this, "requests", /* @__PURE__ */ new Map());
|
|
6108
6120
|
c(this, "wrapped");
|
|
6109
6121
|
c(this, "debouncedRun");
|
|
6110
|
-
this.wrapped = e, this.debouncedRun =
|
|
6122
|
+
this.wrapped = e, this.debouncedRun = au(() => {
|
|
6111
6123
|
this.run();
|
|
6112
6124
|
}, t);
|
|
6113
6125
|
}
|
|
@@ -6263,7 +6275,7 @@ class Xi {
|
|
|
6263
6275
|
return await this.framer.write(e, this.key, t);
|
|
6264
6276
|
}
|
|
6265
6277
|
}
|
|
6266
|
-
const
|
|
6278
|
+
const Th = "/channel/retrieve-group", Oh = s.object({}), Eh = s.object({
|
|
6267
6279
|
group: Pr
|
|
6268
6280
|
});
|
|
6269
6281
|
let Qi = class {
|
|
@@ -6332,21 +6344,21 @@ let Qi = class {
|
|
|
6332
6344
|
async retrieveGroup() {
|
|
6333
6345
|
const e = await w(
|
|
6334
6346
|
this.client,
|
|
6335
|
-
|
|
6347
|
+
Th,
|
|
6336
6348
|
{},
|
|
6337
|
-
|
|
6338
|
-
|
|
6349
|
+
Oh,
|
|
6350
|
+
Eh
|
|
6339
6351
|
);
|
|
6340
6352
|
return new xr(e.group.name, e.group.key);
|
|
6341
6353
|
}
|
|
6342
6354
|
};
|
|
6343
|
-
const
|
|
6355
|
+
const Nh = s.object({ channels: Vi.array() }), Sh = s.object({ channels: _t.array() }), Ih = s.object({
|
|
6344
6356
|
keys: Ie.array().optional(),
|
|
6345
6357
|
names: s.string().array().optional()
|
|
6346
|
-
}),
|
|
6358
|
+
}), kh = s.object({}), $h = s.object({
|
|
6347
6359
|
keys: Ie.array(),
|
|
6348
6360
|
names: s.string().array()
|
|
6349
|
-
}),
|
|
6361
|
+
}), Ah = s.object({}), Rh = "/channel/create", xh = "/channel/delete", Ch = "/channel/rename";
|
|
6350
6362
|
let ea = class {
|
|
6351
6363
|
constructor(e, t) {
|
|
6352
6364
|
c(this, "client");
|
|
@@ -6354,29 +6366,29 @@ let ea = class {
|
|
|
6354
6366
|
this.client = e, this.cache = t;
|
|
6355
6367
|
}
|
|
6356
6368
|
async create(e) {
|
|
6357
|
-
const { channels: t } = await w(this.client,
|
|
6369
|
+
const { channels: t } = await w(this.client, Rh, { channels: e }, Nh, Sh);
|
|
6358
6370
|
return this.cache.set(t), t;
|
|
6359
6371
|
}
|
|
6360
6372
|
async delete(e) {
|
|
6361
6373
|
await w(
|
|
6362
6374
|
this.client,
|
|
6363
|
-
|
|
6375
|
+
xh,
|
|
6364
6376
|
e,
|
|
6365
|
-
|
|
6366
|
-
|
|
6377
|
+
Ih,
|
|
6378
|
+
kh
|
|
6367
6379
|
), e.keys != null && this.cache.delete(e.keys), e.names != null && this.cache.delete(e.names);
|
|
6368
6380
|
}
|
|
6369
6381
|
async rename(e, t) {
|
|
6370
6382
|
await w(
|
|
6371
6383
|
this.client,
|
|
6372
|
-
|
|
6384
|
+
Ch,
|
|
6373
6385
|
{ keys: e, names: t },
|
|
6374
|
-
|
|
6375
|
-
|
|
6386
|
+
$h,
|
|
6387
|
+
Ah
|
|
6376
6388
|
), this.cache.rename(e, t);
|
|
6377
6389
|
}
|
|
6378
6390
|
};
|
|
6379
|
-
const
|
|
6391
|
+
const Yg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6380
6392
|
__proto__: null,
|
|
6381
6393
|
CacheRetriever: Dr,
|
|
6382
6394
|
Channel: Xi,
|
|
@@ -6388,7 +6400,7 @@ const Ug = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6388
6400
|
analyzeChannelParams: pe,
|
|
6389
6401
|
keyZ: Ie,
|
|
6390
6402
|
newPayload: Vi,
|
|
6391
|
-
ontologyID:
|
|
6403
|
+
ontologyID: dh,
|
|
6392
6404
|
payload: _t,
|
|
6393
6405
|
retrieveRequired: Hi
|
|
6394
6406
|
}, Symbol.toStringTag, { value: "Module" })), lt = s.string().uuid(), Yt = s.object({
|
|
@@ -6400,11 +6412,11 @@ const Ug = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6400
6412
|
firstName: s.string().default(""),
|
|
6401
6413
|
lastName: s.string().default(""),
|
|
6402
6414
|
rootUser: s.boolean().default(!0)
|
|
6403
|
-
}), ta = Yt.partial({ key: !0, firstName: !0, lastName: !0 }).omit({ rootUser: !0 }).extend({ password: s.string().min(1) }), na = "user",
|
|
6415
|
+
}), ta = Yt.partial({ key: !0, firstName: !0, lastName: !0 }).omit({ rootUser: !0 }).extend({ password: s.string().min(1) }), na = "user", Ph = (n) => new O({ type: na, key: n }), Dh = s.object({
|
|
6404
6416
|
keys: lt.array().optional(),
|
|
6405
6417
|
usernames: s.string().array().optional()
|
|
6406
|
-
}),
|
|
6407
|
-
let
|
|
6418
|
+
}), jh = s.object({ users: X(Yt) }), Mh = "/user/retrieve";
|
|
6419
|
+
let Bh = class {
|
|
6408
6420
|
constructor(e) {
|
|
6409
6421
|
c(this, "client");
|
|
6410
6422
|
this.client = e;
|
|
@@ -6412,19 +6424,19 @@ let Ph = class {
|
|
|
6412
6424
|
async retrieve(e) {
|
|
6413
6425
|
return (await w(
|
|
6414
6426
|
this.client,
|
|
6415
|
-
|
|
6427
|
+
Mh,
|
|
6416
6428
|
e,
|
|
6417
|
-
|
|
6418
|
-
|
|
6429
|
+
Dh,
|
|
6430
|
+
jh
|
|
6419
6431
|
)).users;
|
|
6420
6432
|
}
|
|
6421
6433
|
};
|
|
6422
|
-
const
|
|
6434
|
+
const Uh = s.object({ users: ta.array() }), Zh = s.object({ users: Yt.array() }), Lh = s.object({ key: lt, username: s.string().min(1) }), _h = s.object({}), Yh = s.object({
|
|
6423
6435
|
key: lt,
|
|
6424
6436
|
firstName: s.string().optional(),
|
|
6425
6437
|
lastName: s.string().optional()
|
|
6426
|
-
}),
|
|
6427
|
-
let
|
|
6438
|
+
}), qh = s.object({}), zh = s.object({ keys: lt.array() }), Wh = s.object({}), Gh = "/user/create", Vh = "/user/change-username", Fh = "/user/rename", Jh = "/user/delete";
|
|
6439
|
+
let Kh = class {
|
|
6428
6440
|
constructor(e) {
|
|
6429
6441
|
c(this, "client");
|
|
6430
6442
|
this.client = e;
|
|
@@ -6432,44 +6444,44 @@ let Gh = class {
|
|
|
6432
6444
|
async create(e) {
|
|
6433
6445
|
return (await w(
|
|
6434
6446
|
this.client,
|
|
6435
|
-
|
|
6447
|
+
Gh,
|
|
6436
6448
|
{ users: b(e) },
|
|
6437
|
-
|
|
6438
|
-
|
|
6449
|
+
Uh,
|
|
6450
|
+
Zh
|
|
6439
6451
|
)).users;
|
|
6440
6452
|
}
|
|
6441
6453
|
async changeUsername(e, t) {
|
|
6442
6454
|
await w(
|
|
6443
6455
|
this.client,
|
|
6444
|
-
|
|
6456
|
+
Vh,
|
|
6445
6457
|
{ key: e, username: t },
|
|
6446
|
-
|
|
6447
|
-
|
|
6458
|
+
Lh,
|
|
6459
|
+
_h
|
|
6448
6460
|
);
|
|
6449
6461
|
}
|
|
6450
6462
|
async rename(e, t, r) {
|
|
6451
6463
|
await w(
|
|
6452
6464
|
this.client,
|
|
6453
|
-
|
|
6465
|
+
Fh,
|
|
6454
6466
|
{ key: e, firstName: t, lastName: r },
|
|
6455
|
-
|
|
6456
|
-
|
|
6467
|
+
Yh,
|
|
6468
|
+
qh
|
|
6457
6469
|
);
|
|
6458
6470
|
}
|
|
6459
6471
|
async delete(e) {
|
|
6460
6472
|
await w(
|
|
6461
6473
|
this.client,
|
|
6462
|
-
|
|
6474
|
+
Jh,
|
|
6463
6475
|
{ keys: b(e) },
|
|
6464
|
-
|
|
6465
|
-
|
|
6476
|
+
zh,
|
|
6477
|
+
Wh
|
|
6466
6478
|
);
|
|
6467
6479
|
}
|
|
6468
6480
|
}, ra = class {
|
|
6469
6481
|
constructor(e) {
|
|
6470
6482
|
c(this, "reader");
|
|
6471
6483
|
c(this, "writer");
|
|
6472
|
-
this.writer = new
|
|
6484
|
+
this.writer = new Kh(e), this.reader = new Bh(e);
|
|
6473
6485
|
}
|
|
6474
6486
|
async create(e) {
|
|
6475
6487
|
const t = Array.isArray(e), r = await this.writer.create(e);
|
|
@@ -6502,26 +6514,26 @@ let Gh = class {
|
|
|
6502
6514
|
await this.writer.delete(e);
|
|
6503
6515
|
}
|
|
6504
6516
|
};
|
|
6505
|
-
const
|
|
6517
|
+
const Gg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6506
6518
|
__proto__: null,
|
|
6507
6519
|
Client: ra,
|
|
6508
6520
|
ONTOLOGY_TYPE: na,
|
|
6509
6521
|
keyZ: lt,
|
|
6510
6522
|
newUserZ: ta,
|
|
6511
|
-
ontologyID:
|
|
6523
|
+
ontologyID: Ph,
|
|
6512
6524
|
userZ: Yt
|
|
6513
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6525
|
+
}, Symbol.toStringTag, { value: "Module" })), Hh = s.object({
|
|
6514
6526
|
username: s.string(),
|
|
6515
6527
|
password: s.string()
|
|
6516
|
-
}),
|
|
6528
|
+
}), Xh = s.object({
|
|
6517
6529
|
token: s.string(),
|
|
6518
6530
|
user: Yt
|
|
6519
|
-
}), Us = "/auth/login",
|
|
6531
|
+
}), Us = "/auth/login", Qh = 3, ed = "/auth/change-password", td = s.object({
|
|
6520
6532
|
username: s.string(),
|
|
6521
6533
|
password: s.string(),
|
|
6522
6534
|
newPassword: s.string().min(1)
|
|
6523
|
-
}),
|
|
6524
|
-
let
|
|
6535
|
+
}), nd = s.object({});
|
|
6536
|
+
let rd = class {
|
|
6525
6537
|
constructor(e, t) {
|
|
6526
6538
|
c(this, "token");
|
|
6527
6539
|
c(this, "client");
|
|
@@ -6536,14 +6548,14 @@ let Qh = class {
|
|
|
6536
6548
|
if (!this.authenticated) throw new Error("Not authenticated");
|
|
6537
6549
|
await w(
|
|
6538
6550
|
this.client,
|
|
6539
|
-
|
|
6551
|
+
ed,
|
|
6540
6552
|
{
|
|
6541
6553
|
username: this.credentials.username,
|
|
6542
6554
|
password: this.credentials.password,
|
|
6543
6555
|
newPassword: e
|
|
6544
6556
|
},
|
|
6545
|
-
|
|
6546
|
-
|
|
6557
|
+
td,
|
|
6558
|
+
nd
|
|
6547
6559
|
), this.credentials.password = e;
|
|
6548
6560
|
}
|
|
6549
6561
|
middleware() {
|
|
@@ -6553,8 +6565,8 @@ let Qh = class {
|
|
|
6553
6565
|
this.client.send(
|
|
6554
6566
|
Us,
|
|
6555
6567
|
this.credentials,
|
|
6556
|
-
|
|
6557
|
-
|
|
6568
|
+
Hh,
|
|
6569
|
+
Xh
|
|
6558
6570
|
).then(([h, y]) => {
|
|
6559
6571
|
if (y != null) return l(y);
|
|
6560
6572
|
this.token = h == null ? void 0 : h.token, this.user = h == null ? void 0 : h.user, this.authenticated = !0, l(null);
|
|
@@ -6565,12 +6577,12 @@ let Qh = class {
|
|
|
6565
6577
|
}
|
|
6566
6578
|
t.params.Authorization = `Bearer ${this.token}`;
|
|
6567
6579
|
const [i, a] = await r(t);
|
|
6568
|
-
return Rt.matches(a) && this.retryCount <
|
|
6580
|
+
return Rt.matches(a) && this.retryCount < Qh ? (this.authenticated = !1, this.authenticating = void 0, this.retryCount += 1, e(t, r)) : (this.retryCount = 0, [i, a]);
|
|
6569
6581
|
};
|
|
6570
6582
|
return e;
|
|
6571
6583
|
}
|
|
6572
6584
|
};
|
|
6573
|
-
const
|
|
6585
|
+
const sd = ["disconnected", "connecting", "connected", "failed"], sa = s.enum(sd), ia = s.object({
|
|
6574
6586
|
status: sa,
|
|
6575
6587
|
error: s.instanceof(Error).optional(),
|
|
6576
6588
|
message: s.string().optional(),
|
|
@@ -6578,7 +6590,7 @@ const ed = ["disconnected", "connecting", "connected", "failed"], sa = s.enum(ed
|
|
|
6578
6590
|
clientVersion: s.string(),
|
|
6579
6591
|
clientServerCompatible: s.boolean(),
|
|
6580
6592
|
nodeVersion: s.string().optional()
|
|
6581
|
-
}),
|
|
6593
|
+
}), id = s.object({
|
|
6582
6594
|
clusterKey: s.string(),
|
|
6583
6595
|
nodeVersion: s.string().optional()
|
|
6584
6596
|
}), Zs = {
|
|
@@ -6587,7 +6599,7 @@ const ed = ["disconnected", "connecting", "connected", "failed"], sa = s.enum(ed
|
|
|
6587
6599
|
error: void 0,
|
|
6588
6600
|
message: "Disconnected",
|
|
6589
6601
|
clientServerCompatible: !1,
|
|
6590
|
-
clientVersion: "0.
|
|
6602
|
+
clientVersion: "0.37.0"
|
|
6591
6603
|
}, Ls = (n, e, t) => {
|
|
6592
6604
|
const r = t ? "cluster" : "client";
|
|
6593
6605
|
return `Synnax cluster node version ${n != null ? `${n} ` : ""}is too ${t ? "old" : "new"} for client version ${e}.
|
|
@@ -6626,7 +6638,7 @@ const ed = ["disconnected", "connecting", "connected", "failed"], sa = s.enum(ed
|
|
|
6626
6638
|
Qe.ENDPOINT,
|
|
6627
6639
|
{},
|
|
6628
6640
|
s.object({}),
|
|
6629
|
-
|
|
6641
|
+
id
|
|
6630
6642
|
);
|
|
6631
6643
|
if (i != null) throw i;
|
|
6632
6644
|
const a = r.nodeVersion, o = this.clientVersion, l = this.versionWarned;
|
|
@@ -6662,17 +6674,17 @@ const ed = ["disconnected", "connecting", "connected", "failed"], sa = s.enum(ed
|
|
|
6662
6674
|
};
|
|
6663
6675
|
c(Qe, "ENDPOINT", "/connectivity/check"), c(Qe, "DEFAULT", Zs), c(Qe, "connectionStateZ", ia);
|
|
6664
6676
|
let Ct = Qe;
|
|
6665
|
-
const
|
|
6677
|
+
const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6666
6678
|
__proto__: null,
|
|
6667
6679
|
Checker: Ct,
|
|
6668
6680
|
state: ia,
|
|
6669
6681
|
status: sa
|
|
6670
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6682
|
+
}, Symbol.toStringTag, { value: "Module" })), ad = s.object({
|
|
6671
6683
|
keys: Ie.array().optional(),
|
|
6672
6684
|
bounds: V.z,
|
|
6673
6685
|
names: s.string().array().optional()
|
|
6674
|
-
}),
|
|
6675
|
-
class
|
|
6686
|
+
}), od = s.object({}), cd = "/frame/delete";
|
|
6687
|
+
class ld {
|
|
6676
6688
|
constructor(e) {
|
|
6677
6689
|
/*
|
|
6678
6690
|
Deleter is used to delete a time range of telemetry from the data engine.
|
|
@@ -6683,10 +6695,10 @@ class id {
|
|
|
6683
6695
|
async delete(e) {
|
|
6684
6696
|
await w(
|
|
6685
6697
|
this.client,
|
|
6686
|
-
|
|
6698
|
+
cd,
|
|
6687
6699
|
e,
|
|
6688
|
-
|
|
6689
|
-
|
|
6700
|
+
ad,
|
|
6701
|
+
od
|
|
6690
6702
|
);
|
|
6691
6703
|
}
|
|
6692
6704
|
}
|
|
@@ -6761,7 +6773,7 @@ class Y {
|
|
|
6761
6773
|
* error otherwise.
|
|
6762
6774
|
*/
|
|
6763
6775
|
get uniqueKeys() {
|
|
6764
|
-
return
|
|
6776
|
+
return fs(this.keys);
|
|
6765
6777
|
}
|
|
6766
6778
|
/**
|
|
6767
6779
|
* @returns the channel names if the frame is keyed by channel name, and throws an error
|
|
@@ -6776,7 +6788,7 @@ class Y {
|
|
|
6776
6788
|
* otherwise.
|
|
6777
6789
|
*/
|
|
6778
6790
|
get uniqueNames() {
|
|
6779
|
-
return
|
|
6791
|
+
return fs(this.names);
|
|
6780
6792
|
}
|
|
6781
6793
|
/**
|
|
6782
6794
|
* @returns the unique columns in the frame.
|
|
@@ -6841,7 +6853,7 @@ class Y {
|
|
|
6841
6853
|
return this.uniqueColumns.map((e) => this.timeRange(e));
|
|
6842
6854
|
}
|
|
6843
6855
|
get(e) {
|
|
6844
|
-
return Array.isArray(e) ? this.filter((t) => e.includes(t)) : new
|
|
6856
|
+
return Array.isArray(e) ? this.filter((t) => e.includes(t)) : new su(this.series.filter((t, r) => this.columns[r] === e));
|
|
6845
6857
|
}
|
|
6846
6858
|
push(e, ...t) {
|
|
6847
6859
|
if (e instanceof Y) {
|
|
@@ -7114,14 +7126,14 @@ class Mr {
|
|
|
7114
7126
|
}
|
|
7115
7127
|
const Sr = new S(-1);
|
|
7116
7128
|
var Br = /* @__PURE__ */ ((n) => (n[n.Open = 0] = "Open", n[n.Next = 1] = "Next", n[n.Prev = 2] = "Prev", n[n.SeekFirst = 3] = "SeekFirst", n[n.SeekLast = 4] = "SeekLast", n[n.SeekLE = 5] = "SeekLE", n[n.SeekGE = 6] = "SeekGE", n[n.Valid = 7] = "Valid", n[n.Error = 8] = "Error", n))(Br || {}), ca = /* @__PURE__ */ ((n) => (n[n.None = 0] = "None", n[n.Ack = 1] = "Ack", n[n.Data = 2] = "Data", n))(ca || {});
|
|
7117
|
-
const
|
|
7129
|
+
const ud = s.object({
|
|
7118
7130
|
command: s.nativeEnum(Br),
|
|
7119
7131
|
span: S.z.optional(),
|
|
7120
7132
|
bounds: V.z.optional(),
|
|
7121
7133
|
stamp: k.z.optional(),
|
|
7122
7134
|
keys: s.number().array().optional(),
|
|
7123
7135
|
chunkSize: s.number().optional()
|
|
7124
|
-
}),
|
|
7136
|
+
}), hd = s.object({
|
|
7125
7137
|
variant: s.nativeEnum(ca),
|
|
7126
7138
|
ack: s.boolean(),
|
|
7127
7139
|
command: s.nativeEnum(Br),
|
|
@@ -7146,7 +7158,7 @@ const ad = s.object({
|
|
|
7146
7158
|
* @param opts - See {@link IteratorConfig}.
|
|
7147
7159
|
*/
|
|
7148
7160
|
static async _open(e, t, r, i, a = {}) {
|
|
7149
|
-
const o = await Pn.open(r, t), l = await i.stream($t.ENDPOINT,
|
|
7161
|
+
const o = await Pn.open(r, t), l = await i.stream($t.ENDPOINT, ud, hd), u = new $t(l, o);
|
|
7150
7162
|
return await u.execute({
|
|
7151
7163
|
command: 0,
|
|
7152
7164
|
keys: o.keys,
|
|
@@ -7251,7 +7263,7 @@ const ad = s.object({
|
|
|
7251
7263
|
await this.stream.closeAndAck();
|
|
7252
7264
|
}
|
|
7253
7265
|
[Symbol.asyncIterator]() {
|
|
7254
|
-
return new
|
|
7266
|
+
return new dd(this);
|
|
7255
7267
|
}
|
|
7256
7268
|
async execute(e) {
|
|
7257
7269
|
for (this.stream.send(e), this.value = new Y(); ; ) {
|
|
@@ -7263,7 +7275,7 @@ const ad = s.object({
|
|
|
7263
7275
|
};
|
|
7264
7276
|
c($t, "ENDPOINT", "/frame/iterate");
|
|
7265
7277
|
let vn = $t;
|
|
7266
|
-
class
|
|
7278
|
+
class dd {
|
|
7267
7279
|
constructor(e) {
|
|
7268
7280
|
c(this, "iter");
|
|
7269
7281
|
c(this, "open", !1);
|
|
@@ -7278,10 +7290,10 @@ class cd {
|
|
|
7278
7290
|
}
|
|
7279
7291
|
}
|
|
7280
7292
|
}
|
|
7281
|
-
const
|
|
7293
|
+
const fd = s.object({ keys: s.number().array(), downsampleFactor: s.number() }), yd = s.object({
|
|
7282
7294
|
frame: Cn,
|
|
7283
7295
|
error: jt.optional().nullable()
|
|
7284
|
-
}),
|
|
7296
|
+
}), gd = "/frame/stream";
|
|
7285
7297
|
class Dn {
|
|
7286
7298
|
constructor(e, t) {
|
|
7287
7299
|
c(this, "stream");
|
|
@@ -7293,7 +7305,7 @@ class Dn {
|
|
|
7293
7305
|
return this.adapter.keys;
|
|
7294
7306
|
}
|
|
7295
7307
|
static async _open(e, t, { channels: r, downsampleFactor: i }) {
|
|
7296
|
-
const a = await Pn.open(e, r), o = await t.stream(
|
|
7308
|
+
const a = await Pn.open(e, r), o = await t.stream(gd, fd, yd), l = new Dn(o, a);
|
|
7297
7309
|
o.send({ keys: a.keys, downsampleFactor: i ?? 1 });
|
|
7298
7310
|
const [, u] = await o.receive();
|
|
7299
7311
|
if (u != null) throw u;
|
|
@@ -7335,7 +7347,7 @@ class Ce extends xe.Observer {
|
|
|
7335
7347
|
}
|
|
7336
7348
|
}
|
|
7337
7349
|
var Ur = /* @__PURE__ */ ((n) => (n[n.Open = 0] = "Open", n[n.Write = 1] = "Write", n[n.Commit = 2] = "Commit", n[n.Error = 3] = "Error", n[n.SetAuthority = 4] = "SetAuthority", n))(Ur || {}), at = /* @__PURE__ */ ((n) => (n[n.PersistStream = 1] = "PersistStream", n[n.Persist = 2] = "Persist", n[n.Stream = 3] = "Stream", n))(at || {});
|
|
7338
|
-
const
|
|
7350
|
+
const pd = (n) => {
|
|
7339
7351
|
switch (n) {
|
|
7340
7352
|
case "persist":
|
|
7341
7353
|
return 2;
|
|
@@ -7347,7 +7359,7 @@ const dd = (n) => {
|
|
|
7347
7359
|
if (typeof n == "number" && n in at) return n;
|
|
7348
7360
|
throw new Error(`invalid writer mode: ${n}`);
|
|
7349
7361
|
}
|
|
7350
|
-
},
|
|
7362
|
+
}, md = new S(-1), wd = s.object({
|
|
7351
7363
|
start: k.z.optional(),
|
|
7352
7364
|
controlSubject: rt.subjectZ.optional(),
|
|
7353
7365
|
keys: s.number().array().optional(),
|
|
@@ -7356,11 +7368,11 @@ const dd = (n) => {
|
|
|
7356
7368
|
errOnUnauthorized: s.boolean().optional(),
|
|
7357
7369
|
enableAutoCommit: s.boolean().optional(),
|
|
7358
7370
|
autoIndexPersistInterval: S.z.optional()
|
|
7359
|
-
}),
|
|
7371
|
+
}), bd = s.object({
|
|
7360
7372
|
command: s.nativeEnum(Ur),
|
|
7361
|
-
config:
|
|
7373
|
+
config: wd.optional(),
|
|
7362
7374
|
frame: Cn.optional()
|
|
7363
|
-
}),
|
|
7375
|
+
}), vd = s.object({
|
|
7364
7376
|
ack: s.boolean(),
|
|
7365
7377
|
command: s.nativeEnum(Ur),
|
|
7366
7378
|
error: jt.optional().nullable()
|
|
@@ -7382,7 +7394,7 @@ let la = (ve = class {
|
|
|
7382
7394
|
enableAutoCommit: h = !1,
|
|
7383
7395
|
autoIndexPersistInterval: y = S.SECOND
|
|
7384
7396
|
}) {
|
|
7385
|
-
const d = await jr.open(e, r), M = await t.stream(ve.ENDPOINT,
|
|
7397
|
+
const d = await jr.open(e, r), M = await t.stream(ve.ENDPOINT, bd, vd), A = new ve(M, d);
|
|
7386
7398
|
return await A.execute({
|
|
7387
7399
|
command: 0,
|
|
7388
7400
|
config: {
|
|
@@ -7390,7 +7402,7 @@ let la = (ve = class {
|
|
|
7390
7402
|
keys: d.keys,
|
|
7391
7403
|
controlSubject: o,
|
|
7392
7404
|
authorities: b(a),
|
|
7393
|
-
mode:
|
|
7405
|
+
mode: pd(l),
|
|
7394
7406
|
errOnUnauthorized: u,
|
|
7395
7407
|
enableAutoCommit: h,
|
|
7396
7408
|
autoIndexPersistInterval: y
|
|
@@ -7476,14 +7488,14 @@ let la = (ve = class {
|
|
|
7476
7488
|
return this.stream.received();
|
|
7477
7489
|
}
|
|
7478
7490
|
}, c(ve, "ENDPOINT", "/frame/write"), ve);
|
|
7479
|
-
const ua = "framer",
|
|
7491
|
+
const ua = "framer", Td = (n) => new O({ type: ua, key: n.toString() });
|
|
7480
7492
|
let ha = class {
|
|
7481
7493
|
constructor(e, t, r) {
|
|
7482
7494
|
c(this, "streamClient");
|
|
7483
7495
|
// private readonly unaryClient: UnaryClient;
|
|
7484
7496
|
c(this, "retriever");
|
|
7485
7497
|
c(this, "deleter");
|
|
7486
|
-
this.streamClient = e, this.retriever = r, this.deleter = new
|
|
7498
|
+
this.streamClient = e, this.retriever = r, this.deleter = new ld(t);
|
|
7487
7499
|
}
|
|
7488
7500
|
/**
|
|
7489
7501
|
* Opens a new iterator over the given channels within the provided time range.
|
|
@@ -7570,9 +7582,9 @@ let ha = class {
|
|
|
7570
7582
|
});
|
|
7571
7583
|
}
|
|
7572
7584
|
};
|
|
7573
|
-
const
|
|
7585
|
+
const Kg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7574
7586
|
__proto__: null,
|
|
7575
|
-
ALWAYS_INDEX_PERSIST_ON_AUTO_COMMIT:
|
|
7587
|
+
ALWAYS_INDEX_PERSIST_ON_AUTO_COMMIT: md,
|
|
7576
7588
|
AUTO_SPAN: Sr,
|
|
7577
7589
|
Client: ha,
|
|
7578
7590
|
Frame: Y,
|
|
@@ -7583,10 +7595,10 @@ const Gg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7583
7595
|
Writer: la,
|
|
7584
7596
|
WriterMode: at,
|
|
7585
7597
|
frameZ: Cn,
|
|
7586
|
-
ontologyID:
|
|
7598
|
+
ontologyID: Td,
|
|
7587
7599
|
seriesFromPayload: aa,
|
|
7588
7600
|
seriesToPayload: oa
|
|
7589
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
7601
|
+
}, Symbol.toStringTag, { value: "Module" })), Od = rt.Authority, Ed = rt.stateZ(s.number()), Nd = (n) => {
|
|
7590
7602
|
var e, t;
|
|
7591
7603
|
return n.to == null ? `${(e = n.from) == null ? void 0 : e.resource} - ${(t = n.from) == null ? void 0 : t.subject.name} -> released` : n.from == null ? `${n.to.resource} - released -> ${n.to.subject.name} (${n.to.authority.toString()})` : `${n.to.resource} - ${n.from.subject.name} -> ${n.to.subject.name} (${n.to.authority.toString()})`;
|
|
7592
7604
|
};
|
|
@@ -7610,24 +7622,24 @@ class da extends Ce {
|
|
|
7610
7622
|
});
|
|
7611
7623
|
}
|
|
7612
7624
|
}
|
|
7613
|
-
const
|
|
7625
|
+
const Sd = "sy_node_1_control";
|
|
7614
7626
|
let fa = class {
|
|
7615
7627
|
constructor(e) {
|
|
7616
7628
|
c(this, "framer");
|
|
7617
7629
|
this.framer = e;
|
|
7618
7630
|
}
|
|
7619
7631
|
async openStateTracker() {
|
|
7620
|
-
const e = await this.framer.openStreamer(
|
|
7632
|
+
const e = await this.framer.openStreamer(Sd);
|
|
7621
7633
|
return new da(e);
|
|
7622
7634
|
}
|
|
7623
7635
|
};
|
|
7624
|
-
const
|
|
7636
|
+
const Xg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7625
7637
|
__proto__: null,
|
|
7626
|
-
Authority:
|
|
7638
|
+
Authority: Od,
|
|
7627
7639
|
Client: fa,
|
|
7628
7640
|
StateTracker: da,
|
|
7629
|
-
stateZ:
|
|
7630
|
-
transferString:
|
|
7641
|
+
stateZ: Ed,
|
|
7642
|
+
transferString: Nd
|
|
7631
7643
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
7632
7644
|
let ya = class {
|
|
7633
7645
|
constructor(e, t, r) {
|
|
@@ -7637,13 +7649,13 @@ let ya = class {
|
|
|
7637
7649
|
this.tasks = e, this.racks = t, this.devices = r;
|
|
7638
7650
|
}
|
|
7639
7651
|
};
|
|
7640
|
-
const
|
|
7652
|
+
const ep = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7641
7653
|
__proto__: null,
|
|
7642
7654
|
Client: ya
|
|
7643
7655
|
}, Symbol.toStringTag, { value: "Module" })), ut = s.number(), jn = s.object({
|
|
7644
7656
|
key: ut,
|
|
7645
7657
|
name: s.string()
|
|
7646
|
-
}), ga = jn.partial({ key: !0 }), pa = "rack",
|
|
7658
|
+
}), ga = jn.partial({ key: !0 }), pa = "rack", Id = (n) => new O({ type: pa, key: n.toString() }), Mn = s.string(), qt = s.object({
|
|
7647
7659
|
key: Mn,
|
|
7648
7660
|
rack: ut,
|
|
7649
7661
|
name: s.string(),
|
|
@@ -7656,7 +7668,7 @@ const Kg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7656
7668
|
)
|
|
7657
7669
|
}), ma = qt.extend({
|
|
7658
7670
|
properties: s.unknown().transform((n) => ot.JSON_CODEC.encodeString(n))
|
|
7659
|
-
}), wa = "device",
|
|
7671
|
+
}), wa = "device", kd = (n) => new O({ type: wa, key: n.toString() }), Pe = async (n, e, t, r) => {
|
|
7660
7672
|
const i = await n.openStreamer([e, t]), a = (o) => {
|
|
7661
7673
|
const l = [];
|
|
7662
7674
|
return t != null && l.push(
|
|
@@ -7664,10 +7676,10 @@ const Kg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7664
7676
|
), e != null && l.push(...o.get(e).series.flatMap((u) => r("set", u))), [l, l.length > 0];
|
|
7665
7677
|
};
|
|
7666
7678
|
return new Ce(i, a);
|
|
7667
|
-
},
|
|
7679
|
+
}, tp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7668
7680
|
__proto__: null,
|
|
7669
7681
|
openObservable: Pe
|
|
7670
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
7682
|
+
}, Symbol.toStringTag, { value: "Module" })), $d = "sy_device_set", Ad = "sy_device_delete", Xn = "/hardware/device/retrieve", Rd = "/hardware/device/create", xd = "/hardware/device/delete", Cd = s.object({ devices: ma.array() }), Pd = s.object({ devices: qt.array() }), Dd = s.object({ keys: Mn.array() }), jd = s.object({}), Qn = s.object({
|
|
7671
7683
|
search: s.string().optional(),
|
|
7672
7684
|
limit: s.number().optional(),
|
|
7673
7685
|
offset: s.number().optional(),
|
|
@@ -7713,28 +7725,28 @@ let ba = class {
|
|
|
7713
7725
|
async create(e) {
|
|
7714
7726
|
const t = !Array.isArray(e), r = await w(
|
|
7715
7727
|
this.client,
|
|
7716
|
-
|
|
7728
|
+
Rd,
|
|
7717
7729
|
{ devices: b(e) },
|
|
7718
|
-
|
|
7719
|
-
|
|
7730
|
+
Cd,
|
|
7731
|
+
Pd
|
|
7720
7732
|
);
|
|
7721
7733
|
return t ? r.devices[0] : r.devices;
|
|
7722
7734
|
}
|
|
7723
7735
|
async delete(e) {
|
|
7724
7736
|
await w(
|
|
7725
7737
|
this.client,
|
|
7726
|
-
|
|
7738
|
+
xd,
|
|
7727
7739
|
{ keys: b(e) },
|
|
7728
|
-
|
|
7729
|
-
|
|
7740
|
+
Dd,
|
|
7741
|
+
jd
|
|
7730
7742
|
);
|
|
7731
7743
|
}
|
|
7732
7744
|
async openDeviceTracker() {
|
|
7733
7745
|
return await Pe(
|
|
7734
7746
|
this.frameClient,
|
|
7735
|
-
|
|
7736
|
-
|
|
7737
|
-
|
|
7747
|
+
$d,
|
|
7748
|
+
Ad,
|
|
7749
|
+
Md
|
|
7738
7750
|
);
|
|
7739
7751
|
}
|
|
7740
7752
|
newSearcherWithOptions(e) {
|
|
@@ -7746,15 +7758,15 @@ let ba = class {
|
|
|
7746
7758
|
};
|
|
7747
7759
|
}
|
|
7748
7760
|
};
|
|
7749
|
-
const
|
|
7761
|
+
const Md = (n, e) => n === "delete" ? e.toStrings().map((t) => ({ variant: n, key: t, value: void 0 })) : e.parseJSON(qt).map((t) => ({ variant: n, key: t.key, value: t })), rp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7750
7762
|
__proto__: null,
|
|
7751
7763
|
Client: ba,
|
|
7752
7764
|
ONTOLOGY_TYPE: wa,
|
|
7753
7765
|
deviceKeyZ: Mn,
|
|
7754
7766
|
deviceZ: qt,
|
|
7755
7767
|
newDeviceZ: ma,
|
|
7756
|
-
ontologyID:
|
|
7757
|
-
}, Symbol.toStringTag, { value: "Module" })), tr = "/hardware/rack/retrieve",
|
|
7768
|
+
ontologyID: kd
|
|
7769
|
+
}, Symbol.toStringTag, { value: "Module" })), tr = "/hardware/rack/retrieve", Bd = "/hardware/rack/create", Ud = "/hardware/rack/delete", nr = s.object({
|
|
7758
7770
|
keys: ut.array().optional(),
|
|
7759
7771
|
names: s.string().array().optional(),
|
|
7760
7772
|
search: s.string().optional(),
|
|
@@ -7762,13 +7774,13 @@ const Cd = (n, e) => n === "delete" ? e.toStrings().map((t) => ({ variant: n, ke
|
|
|
7762
7774
|
limit: s.number().optional()
|
|
7763
7775
|
}), rr = s.object({
|
|
7764
7776
|
racks: X(jn)
|
|
7765
|
-
}),
|
|
7777
|
+
}), Zd = s.object({
|
|
7766
7778
|
racks: ga.array()
|
|
7767
|
-
}),
|
|
7779
|
+
}), Ld = s.object({
|
|
7768
7780
|
racks: jn.array()
|
|
7769
|
-
}),
|
|
7781
|
+
}), _d = s.object({
|
|
7770
7782
|
keys: ut.array()
|
|
7771
|
-
}),
|
|
7783
|
+
}), Yd = s.object({});
|
|
7772
7784
|
let va = class {
|
|
7773
7785
|
constructor(e, t, r) {
|
|
7774
7786
|
c(this, "type", "rack");
|
|
@@ -7780,19 +7792,19 @@ let va = class {
|
|
|
7780
7792
|
async delete(e) {
|
|
7781
7793
|
await w(
|
|
7782
7794
|
this.client,
|
|
7783
|
-
|
|
7795
|
+
Ud,
|
|
7784
7796
|
{ keys: b(e) },
|
|
7785
|
-
|
|
7786
|
-
|
|
7797
|
+
_d,
|
|
7798
|
+
Yd
|
|
7787
7799
|
);
|
|
7788
7800
|
}
|
|
7789
7801
|
async create(e) {
|
|
7790
7802
|
const t = !Array.isArray(e), r = await w(
|
|
7791
7803
|
this.client,
|
|
7792
|
-
|
|
7804
|
+
Bd,
|
|
7793
7805
|
{ racks: b(e) },
|
|
7794
|
-
|
|
7795
|
-
|
|
7806
|
+
Zd,
|
|
7807
|
+
Ld
|
|
7796
7808
|
), i = this.sugar(r.racks);
|
|
7797
7809
|
return t ? i[0] : i;
|
|
7798
7810
|
}
|
|
@@ -7853,13 +7865,13 @@ class Ta {
|
|
|
7853
7865
|
await this.tasks.delete([e]);
|
|
7854
7866
|
}
|
|
7855
7867
|
}
|
|
7856
|
-
const
|
|
7868
|
+
const ip = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7857
7869
|
__proto__: null,
|
|
7858
7870
|
Client: va,
|
|
7859
7871
|
ONTOLOGY_TYPE: pa,
|
|
7860
7872
|
Rack: Ta,
|
|
7861
7873
|
newRackZ: ga,
|
|
7862
|
-
ontologyID:
|
|
7874
|
+
ontologyID: Id,
|
|
7863
7875
|
rackKeyZ: ut,
|
|
7864
7876
|
rackZ: jn
|
|
7865
7877
|
}, Symbol.toStringTag, { value: "Module" })), De = s.union([
|
|
@@ -7893,7 +7905,7 @@ const tp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7893
7905
|
args: s.record(s.unknown()).or(
|
|
7894
7906
|
s.string().transform((n) => n === "" ? {} : JSON.parse(n))
|
|
7895
7907
|
).or(s.array(s.unknown())).or(s.null()).optional()
|
|
7896
|
-
}), Ea = "task",
|
|
7908
|
+
}), Ea = "task", qd = (n) => new O({ type: Ea, key: n.toString() }), kt = "sy_task_state", Ze = "sy_task_cmd", dt = new Error("Task not created");
|
|
7897
7909
|
class Na {
|
|
7898
7910
|
constructor(e, t, r, i, a = !1, o = !1, l, u = null, h = null, y = null) {
|
|
7899
7911
|
c(this, "key");
|
|
@@ -7923,7 +7935,7 @@ class Na {
|
|
|
7923
7935
|
}
|
|
7924
7936
|
async executeCommand(e, t) {
|
|
7925
7937
|
if (this.frameClient == null) throw dt;
|
|
7926
|
-
const r = await this.frameClient.openWriter(Ze), i =
|
|
7938
|
+
const r = await this.frameClient.openWriter(Ze), i = Fl.id();
|
|
7927
7939
|
return await r.write(Ze, [{ task: this.key, type: e, key: i, args: t }]), await r.close(), i;
|
|
7928
7940
|
}
|
|
7929
7941
|
async executeCommandSync(e, t, r) {
|
|
@@ -7980,20 +7992,20 @@ class Na {
|
|
|
7980
7992
|
return e.length == 0 ? null : e[0];
|
|
7981
7993
|
}
|
|
7982
7994
|
}
|
|
7983
|
-
const
|
|
7995
|
+
const zd = s.object({
|
|
7984
7996
|
rack: ut.optional(),
|
|
7985
7997
|
keys: s.string().array().optional(),
|
|
7986
7998
|
names: s.string().array().optional(),
|
|
7987
7999
|
offset: s.number().optional(),
|
|
7988
8000
|
limit: s.number().optional(),
|
|
7989
8001
|
includeState: s.boolean().optional()
|
|
7990
|
-
}),
|
|
8002
|
+
}), Wd = s.object({
|
|
7991
8003
|
tasks: X(zt)
|
|
7992
|
-
}),
|
|
8004
|
+
}), Gd = "/hardware/task/retrieve", Vd = "/hardware/task/create", Fd = "/hardware/task/delete", Jd = "/hardware/task/copy", Kd = s.object({ tasks: Oa.array() }), Hd = s.object({ tasks: zt.array() }), Xd = s.object({ keys: De.array() }), Qd = s.object({}), ef = s.object({
|
|
7993
8005
|
key: De,
|
|
7994
8006
|
name: s.string(),
|
|
7995
8007
|
snapshot: s.boolean()
|
|
7996
|
-
}),
|
|
8008
|
+
}), tf = s.object({ task: zt });
|
|
7997
8009
|
let Sa = class {
|
|
7998
8010
|
constructor(e, t, r, i) {
|
|
7999
8011
|
c(this, "type", "task");
|
|
@@ -8006,20 +8018,20 @@ let Sa = class {
|
|
|
8006
8018
|
async create(e) {
|
|
8007
8019
|
const t = !Array.isArray(e), r = await w(
|
|
8008
8020
|
this.client,
|
|
8009
|
-
|
|
8021
|
+
Vd,
|
|
8010
8022
|
{ tasks: b(e) },
|
|
8011
|
-
|
|
8012
|
-
|
|
8023
|
+
Kd,
|
|
8024
|
+
Hd
|
|
8013
8025
|
), i = this.sugar(r.tasks);
|
|
8014
8026
|
return t ? i[0] : i;
|
|
8015
8027
|
}
|
|
8016
8028
|
async delete(e) {
|
|
8017
8029
|
await w(
|
|
8018
8030
|
this.client,
|
|
8019
|
-
zd,
|
|
8020
|
-
{ keys: b(e) },
|
|
8021
8031
|
Fd,
|
|
8022
|
-
|
|
8032
|
+
{ keys: b(e) },
|
|
8033
|
+
Xd,
|
|
8034
|
+
Qd
|
|
8023
8035
|
);
|
|
8024
8036
|
}
|
|
8025
8037
|
async search(e) {
|
|
@@ -8044,10 +8056,10 @@ let Sa = class {
|
|
|
8044
8056
|
async copy(e, t, r) {
|
|
8045
8057
|
const i = await w(
|
|
8046
8058
|
this.client,
|
|
8047
|
-
|
|
8059
|
+
Jd,
|
|
8048
8060
|
{ key: e, name: t, snapshot: r },
|
|
8049
|
-
|
|
8050
|
-
|
|
8061
|
+
ef,
|
|
8062
|
+
tf
|
|
8051
8063
|
);
|
|
8052
8064
|
return this.sugar([i.task])[0];
|
|
8053
8065
|
}
|
|
@@ -8058,10 +8070,10 @@ let Sa = class {
|
|
|
8058
8070
|
async execRetrieve(e) {
|
|
8059
8071
|
return (await w(
|
|
8060
8072
|
this.client,
|
|
8061
|
-
|
|
8073
|
+
Gd,
|
|
8062
8074
|
e,
|
|
8063
|
-
|
|
8064
|
-
|
|
8075
|
+
zd,
|
|
8076
|
+
Wd
|
|
8065
8077
|
)).tasks;
|
|
8066
8078
|
}
|
|
8067
8079
|
sugar(e) {
|
|
@@ -8115,14 +8127,14 @@ let Sa = class {
|
|
|
8115
8127
|
);
|
|
8116
8128
|
}
|
|
8117
8129
|
};
|
|
8118
|
-
const
|
|
8130
|
+
const op = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8119
8131
|
__proto__: null,
|
|
8120
8132
|
Client: Sa,
|
|
8121
8133
|
ONTOLOGY_TYPE: Ea,
|
|
8122
8134
|
Task: Na,
|
|
8123
8135
|
commandZ: Zr,
|
|
8124
8136
|
newTaskZ: Oa,
|
|
8125
|
-
ontologyID:
|
|
8137
|
+
ontologyID: qd,
|
|
8126
8138
|
stateZ: Pt,
|
|
8127
8139
|
taskKeyZ: De,
|
|
8128
8140
|
taskZ: zt
|
|
@@ -8130,13 +8142,13 @@ const rp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8130
8142
|
key: ht,
|
|
8131
8143
|
name: s.string().min(1),
|
|
8132
8144
|
color: s.string()
|
|
8133
|
-
}), Ia = "label",
|
|
8145
|
+
}), Ia = "label", nf = (n) => new O({ type: Ia, key: n }), rf = s.object({
|
|
8134
8146
|
keys: ht.array().optional(),
|
|
8135
8147
|
for: H.optional(),
|
|
8136
8148
|
search: s.string().optional(),
|
|
8137
8149
|
offset: s.number().optional(),
|
|
8138
8150
|
limit: s.number().optional()
|
|
8139
|
-
}),
|
|
8151
|
+
}), sf = s.object({
|
|
8140
8152
|
labels: X(Wt)
|
|
8141
8153
|
}), En = class En {
|
|
8142
8154
|
constructor(e) {
|
|
@@ -8160,8 +8172,8 @@ const rp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8160
8172
|
const [t, r] = await this.client.send(
|
|
8161
8173
|
En.ENDPOINT,
|
|
8162
8174
|
e,
|
|
8163
|
-
|
|
8164
|
-
|
|
8175
|
+
rf,
|
|
8176
|
+
sf
|
|
8165
8177
|
);
|
|
8166
8178
|
if (r != null) throw r;
|
|
8167
8179
|
return t.labels;
|
|
@@ -8169,17 +8181,17 @@ const rp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8169
8181
|
};
|
|
8170
8182
|
c(En, "ENDPOINT", "/label/retrieve");
|
|
8171
8183
|
let Tn = En;
|
|
8172
|
-
const ka = Wt.extend({ key: ht.optional() }),
|
|
8184
|
+
const ka = Wt.extend({ key: ht.optional() }), af = s.object({
|
|
8173
8185
|
labels: ka.array()
|
|
8174
|
-
}),
|
|
8186
|
+
}), of = s.object({
|
|
8175
8187
|
labels: Wt.array()
|
|
8176
|
-
}),
|
|
8188
|
+
}), cf = s.object({
|
|
8177
8189
|
keys: ht.array()
|
|
8178
8190
|
}), $a = s.object({
|
|
8179
8191
|
id: H,
|
|
8180
8192
|
labels: ht.array(),
|
|
8181
8193
|
replace: s.boolean().optional()
|
|
8182
|
-
}),
|
|
8194
|
+
}), lf = $a.omit({ replace: !0 }), sr = s.object({}), uf = "/label/create", hf = "/label/delete", df = "/label/set", ff = "/label/remove";
|
|
8183
8195
|
let Aa = class {
|
|
8184
8196
|
constructor(e) {
|
|
8185
8197
|
c(this, "client");
|
|
@@ -8188,25 +8200,25 @@ let Aa = class {
|
|
|
8188
8200
|
async create(e) {
|
|
8189
8201
|
return (await w(
|
|
8190
8202
|
this.client,
|
|
8191
|
-
|
|
8203
|
+
uf,
|
|
8192
8204
|
{ labels: b(e) },
|
|
8193
|
-
|
|
8194
|
-
|
|
8205
|
+
af,
|
|
8206
|
+
of
|
|
8195
8207
|
)).labels;
|
|
8196
8208
|
}
|
|
8197
8209
|
async delete(e) {
|
|
8198
8210
|
await w(
|
|
8199
8211
|
this.client,
|
|
8200
|
-
|
|
8212
|
+
hf,
|
|
8201
8213
|
{ keys: b(e) },
|
|
8202
|
-
|
|
8214
|
+
cf,
|
|
8203
8215
|
sr
|
|
8204
8216
|
);
|
|
8205
8217
|
}
|
|
8206
8218
|
async set(e, t, { replace: r } = {}) {
|
|
8207
8219
|
await w(
|
|
8208
8220
|
this.client,
|
|
8209
|
-
|
|
8221
|
+
df,
|
|
8210
8222
|
{ id: e, labels: t, replace: r },
|
|
8211
8223
|
$a,
|
|
8212
8224
|
sr
|
|
@@ -8215,14 +8227,14 @@ let Aa = class {
|
|
|
8215
8227
|
async remove(e, t) {
|
|
8216
8228
|
await w(
|
|
8217
8229
|
this.client,
|
|
8218
|
-
|
|
8230
|
+
ff,
|
|
8219
8231
|
{ id: e, labels: t },
|
|
8220
|
-
|
|
8232
|
+
lf,
|
|
8221
8233
|
sr
|
|
8222
8234
|
);
|
|
8223
8235
|
}
|
|
8224
8236
|
};
|
|
8225
|
-
const
|
|
8237
|
+
const yf = "sy_label_set", gf = "sy_label_delete";
|
|
8226
8238
|
let Ra = class {
|
|
8227
8239
|
constructor(e, t, r) {
|
|
8228
8240
|
c(this, "type", "label");
|
|
@@ -8261,9 +8273,9 @@ let Ra = class {
|
|
|
8261
8273
|
async openChangeTracker() {
|
|
8262
8274
|
return await Pe(
|
|
8263
8275
|
this.frameClient,
|
|
8264
|
-
|
|
8265
|
-
|
|
8266
|
-
|
|
8276
|
+
yf,
|
|
8277
|
+
gf,
|
|
8278
|
+
pf
|
|
8267
8279
|
);
|
|
8268
8280
|
}
|
|
8269
8281
|
async trackLabelsOf(e) {
|
|
@@ -8291,7 +8303,7 @@ let Ra = class {
|
|
|
8291
8303
|
), t;
|
|
8292
8304
|
}
|
|
8293
8305
|
};
|
|
8294
|
-
const
|
|
8306
|
+
const pf = (n, e) => n === "delete" ? e.toUUIDs().map((t) => ({ variant: n, key: t })) : e.parseJSON(Wt).map((t) => ({ variant: n, key: t.key, value: t })), up = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8295
8307
|
__proto__: null,
|
|
8296
8308
|
Client: Ra,
|
|
8297
8309
|
ONTOLOGY_TYPE: Ia,
|
|
@@ -8300,7 +8312,7 @@ const df = (n, e) => n === "delete" ? e.toUUIDs().map((t) => ({ variant: n, key:
|
|
|
8300
8312
|
keyZ: ht,
|
|
8301
8313
|
labelZ: Wt,
|
|
8302
8314
|
newLabelPayloadZ: ka,
|
|
8303
|
-
ontologyID:
|
|
8315
|
+
ontologyID: nf
|
|
8304
8316
|
}, Symbol.toStringTag, { value: "Module" })), ee = s.string().uuid(), Gt = s.object({
|
|
8305
8317
|
key: ee,
|
|
8306
8318
|
name: s.string().min(1),
|
|
@@ -8316,20 +8328,20 @@ const df = (n, e) => n === "delete" ? e.toUUIDs().map((t) => ({ variant: n, key:
|
|
|
8316
8328
|
actual: n,
|
|
8317
8329
|
empty: t
|
|
8318
8330
|
};
|
|
8319
|
-
}, Pa = "range", Da = "range-alias",
|
|
8331
|
+
}, Pa = "range", Da = "range-alias", mf = (n) => new O({ type: Pa, key: n }), wf = (n) => new O({ type: Da, key: n }), bf = "sy_range_alias_set", vf = "sy_range_alias_delete", Tf = s.object({
|
|
8320
8332
|
range: ee,
|
|
8321
8333
|
aliases: s.string().array()
|
|
8322
|
-
}),
|
|
8334
|
+
}), Of = s.object({
|
|
8323
8335
|
aliases: s.record(s.string(), Ie)
|
|
8324
|
-
}),
|
|
8336
|
+
}), Ef = s.object({
|
|
8325
8337
|
range: ee,
|
|
8326
8338
|
aliases: s.record(Ie.or(s.string()), s.string())
|
|
8327
|
-
}),
|
|
8339
|
+
}), Nf = s.unknown(), Sf = s.object({
|
|
8328
8340
|
range: ee,
|
|
8329
8341
|
channels: Ie.array()
|
|
8330
|
-
}),
|
|
8342
|
+
}), If = s.unknown(), kf = s.object({
|
|
8331
8343
|
range: ee
|
|
8332
|
-
}),
|
|
8344
|
+
}), $f = s.object({
|
|
8333
8345
|
aliases: s.record(s.string(), s.string())
|
|
8334
8346
|
}), he = class he {
|
|
8335
8347
|
constructor(e, t, r) {
|
|
@@ -8355,8 +8367,8 @@ const df = (n, e) => n === "delete" ? e.toUUIDs().map((t) => ({ variant: n, key:
|
|
|
8355
8367
|
this.client,
|
|
8356
8368
|
he.RESOLVE_ENDPOINT,
|
|
8357
8369
|
{ range: this.rangeKey, aliases: t },
|
|
8358
|
-
|
|
8359
|
-
|
|
8370
|
+
Tf,
|
|
8371
|
+
Of
|
|
8360
8372
|
);
|
|
8361
8373
|
return Object.entries(a.aliases).forEach(([o, l]) => this.cache.set(o, l)), r ? a.aliases[t[0]] : { ...i, ...a.aliases };
|
|
8362
8374
|
}
|
|
@@ -8365,8 +8377,8 @@ const df = (n, e) => n === "delete" ? e.toUUIDs().map((t) => ({ variant: n, key:
|
|
|
8365
8377
|
this.client,
|
|
8366
8378
|
he.SET_ENDPOINT,
|
|
8367
8379
|
{ range: this.rangeKey, aliases: e },
|
|
8368
|
-
|
|
8369
|
-
|
|
8380
|
+
Ef,
|
|
8381
|
+
Nf
|
|
8370
8382
|
);
|
|
8371
8383
|
}
|
|
8372
8384
|
async list() {
|
|
@@ -8374,8 +8386,8 @@ const df = (n, e) => n === "delete" ? e.toUUIDs().map((t) => ({ variant: n, key:
|
|
|
8374
8386
|
this.client,
|
|
8375
8387
|
he.LIST_ENDPOINT,
|
|
8376
8388
|
{ range: this.rangeKey },
|
|
8377
|
-
|
|
8378
|
-
|
|
8389
|
+
kf,
|
|
8390
|
+
$f
|
|
8379
8391
|
)).aliases;
|
|
8380
8392
|
}
|
|
8381
8393
|
async delete(e) {
|
|
@@ -8383,46 +8395,46 @@ const df = (n, e) => n === "delete" ? e.toUUIDs().map((t) => ({ variant: n, key:
|
|
|
8383
8395
|
this.client,
|
|
8384
8396
|
he.DELETE_ENDPOINT,
|
|
8385
8397
|
{ range: this.rangeKey, channels: e },
|
|
8386
|
-
|
|
8387
|
-
|
|
8398
|
+
Sf,
|
|
8399
|
+
If
|
|
8388
8400
|
);
|
|
8389
8401
|
}
|
|
8390
8402
|
async openChangeTracker() {
|
|
8391
8403
|
return await Pe(
|
|
8392
8404
|
this.frameClient,
|
|
8393
|
-
|
|
8394
|
-
|
|
8395
|
-
|
|
8405
|
+
bf,
|
|
8406
|
+
vf,
|
|
8407
|
+
xf(this.rangeKey)
|
|
8396
8408
|
);
|
|
8397
8409
|
}
|
|
8398
8410
|
};
|
|
8399
8411
|
c(he, "SET_ENDPOINT", "/range/alias/set"), c(he, "RESOLVE_ENDPOINT", "/range/alias/resolve"), c(he, "LIST_ENDPOINT", "/range/alias/list"), c(he, "DELETE_ENDPOINT", "/range/alias/delete");
|
|
8400
8412
|
let Ir = he;
|
|
8401
|
-
const
|
|
8413
|
+
const Af = s.object({
|
|
8402
8414
|
range: ee,
|
|
8403
8415
|
channel: Ie,
|
|
8404
8416
|
alias: s.string()
|
|
8405
|
-
}),
|
|
8417
|
+
}), Rf = "---", xf = (n) => (e, t) => e === "delete" ? t.toStrings().filter((r) => r.split(Rf)[0] === n).map((r) => ({
|
|
8406
8418
|
variant: e,
|
|
8407
8419
|
key: r,
|
|
8408
8420
|
value: void 0
|
|
8409
|
-
})) : t.parseJSON(
|
|
8421
|
+
})) : t.parseJSON(Af).map((r) => ({
|
|
8410
8422
|
variant: e,
|
|
8411
8423
|
key: r.alias,
|
|
8412
8424
|
value: r
|
|
8413
|
-
})),
|
|
8425
|
+
})), Cf = s.object({
|
|
8414
8426
|
range: ee,
|
|
8415
8427
|
keys: s.string().array()
|
|
8416
8428
|
}), Lr = s.object({
|
|
8417
8429
|
range: ee,
|
|
8418
8430
|
key: s.string(),
|
|
8419
8431
|
value: s.string()
|
|
8420
|
-
}),
|
|
8432
|
+
}), Pf = s.object({
|
|
8421
8433
|
pairs: X(Lr)
|
|
8422
|
-
}),
|
|
8434
|
+
}), Df = s.object({
|
|
8423
8435
|
range: ee,
|
|
8424
8436
|
pairs: Lr.array()
|
|
8425
|
-
}),
|
|
8437
|
+
}), jf = s.object({
|
|
8426
8438
|
range: ee,
|
|
8427
8439
|
keys: s.string().array()
|
|
8428
8440
|
}), be = class be {
|
|
@@ -8437,8 +8449,8 @@ const Sf = s.object({
|
|
|
8437
8449
|
this.client,
|
|
8438
8450
|
be.GET_ENDPOINT,
|
|
8439
8451
|
{ range: this.rangeKey, keys: b(e) },
|
|
8440
|
-
|
|
8441
|
-
|
|
8452
|
+
Cf,
|
|
8453
|
+
Pf
|
|
8442
8454
|
);
|
|
8443
8455
|
return typeof e == "string" ? t.pairs[0].value : Object.fromEntries(t.pairs.map((r) => [r.key, r.value]));
|
|
8444
8456
|
}
|
|
@@ -8455,7 +8467,7 @@ const Sf = s.object({
|
|
|
8455
8467
|
this.client,
|
|
8456
8468
|
be.SET_ENDPOINT,
|
|
8457
8469
|
{ range: this.rangeKey, pairs: r },
|
|
8458
|
-
|
|
8470
|
+
Df,
|
|
8459
8471
|
s.unknown()
|
|
8460
8472
|
);
|
|
8461
8473
|
}
|
|
@@ -8464,7 +8476,7 @@ const Sf = s.object({
|
|
|
8464
8476
|
this.client,
|
|
8465
8477
|
be.DELETE_ENDPOINT,
|
|
8466
8478
|
{ range: this.rangeKey, keys: b(e) },
|
|
8467
|
-
|
|
8479
|
+
jf,
|
|
8468
8480
|
s.unknown()
|
|
8469
8481
|
);
|
|
8470
8482
|
}
|
|
@@ -8581,14 +8593,14 @@ class ja {
|
|
|
8581
8593
|
}), e.setCloser(async () => await a.close()), e;
|
|
8582
8594
|
}
|
|
8583
8595
|
}
|
|
8584
|
-
const
|
|
8596
|
+
const Mf = (n, e) => Kl(n.timeRange, e.timeRange), Bf = s.object({
|
|
8585
8597
|
keys: ee.array().optional(),
|
|
8586
8598
|
names: s.array(s.string()).optional(),
|
|
8587
8599
|
term: s.string().optional(),
|
|
8588
8600
|
overlapsWith: V.z.optional(),
|
|
8589
8601
|
limit: s.number().int().optional(),
|
|
8590
8602
|
offset: s.number().int().optional()
|
|
8591
|
-
}),
|
|
8603
|
+
}), Uf = "/range/retrieve", Zf = s.object({
|
|
8592
8604
|
ranges: X(Gt)
|
|
8593
8605
|
});
|
|
8594
8606
|
let Ma = class {
|
|
@@ -8637,10 +8649,10 @@ let Ma = class {
|
|
|
8637
8649
|
async execRetrieve(e) {
|
|
8638
8650
|
const { ranges: t } = await w(
|
|
8639
8651
|
this.unaryClient,
|
|
8640
|
-
|
|
8652
|
+
Uf,
|
|
8641
8653
|
e,
|
|
8642
|
-
|
|
8643
|
-
|
|
8654
|
+
Bf,
|
|
8655
|
+
Zf
|
|
8644
8656
|
);
|
|
8645
8657
|
return this.sugarMany(t);
|
|
8646
8658
|
}
|
|
@@ -8692,17 +8704,17 @@ let Ma = class {
|
|
|
8692
8704
|
});
|
|
8693
8705
|
}
|
|
8694
8706
|
};
|
|
8695
|
-
const
|
|
8707
|
+
const Lf = s.object({
|
|
8696
8708
|
ranges: Gt.array()
|
|
8697
|
-
}),
|
|
8709
|
+
}), _f = s.object({
|
|
8698
8710
|
parent: H.optional(),
|
|
8699
8711
|
ranges: xa.array()
|
|
8700
|
-
}),
|
|
8712
|
+
}), Yf = s.object({
|
|
8701
8713
|
keys: ee.array()
|
|
8702
|
-
}),
|
|
8714
|
+
}), qf = s.object({}), zf = s.object({
|
|
8703
8715
|
key: ee,
|
|
8704
8716
|
name: s.string()
|
|
8705
|
-
}),
|
|
8717
|
+
}), Wf = s.object({}), Gf = "/range/create", Vf = "/range/delete", Ff = "/range/rename";
|
|
8706
8718
|
class Ba {
|
|
8707
8719
|
constructor(e) {
|
|
8708
8720
|
c(this, "client");
|
|
@@ -8711,32 +8723,32 @@ class Ba {
|
|
|
8711
8723
|
async rename(e, t) {
|
|
8712
8724
|
await w(
|
|
8713
8725
|
this.client,
|
|
8714
|
-
|
|
8726
|
+
Ff,
|
|
8715
8727
|
{ key: e, name: t },
|
|
8716
|
-
|
|
8717
|
-
|
|
8728
|
+
zf,
|
|
8729
|
+
Wf
|
|
8718
8730
|
);
|
|
8719
8731
|
}
|
|
8720
8732
|
async create(e, t) {
|
|
8721
8733
|
return (await w(
|
|
8722
8734
|
this.client,
|
|
8723
|
-
|
|
8735
|
+
Gf,
|
|
8724
8736
|
{ ranges: e, ...t },
|
|
8725
|
-
|
|
8726
|
-
|
|
8737
|
+
_f,
|
|
8738
|
+
Lf
|
|
8727
8739
|
)).ranges;
|
|
8728
8740
|
}
|
|
8729
8741
|
async delete(e) {
|
|
8730
8742
|
await w(
|
|
8731
8743
|
this.client,
|
|
8732
|
-
|
|
8744
|
+
Vf,
|
|
8733
8745
|
{ keys: e },
|
|
8734
|
-
|
|
8735
|
-
|
|
8746
|
+
Yf,
|
|
8747
|
+
qf
|
|
8736
8748
|
);
|
|
8737
8749
|
}
|
|
8738
8750
|
}
|
|
8739
|
-
const
|
|
8751
|
+
const dp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8740
8752
|
__proto__: null,
|
|
8741
8753
|
ALIAS_ONTOLOGY_TYPE: Da,
|
|
8742
8754
|
Client: Ma,
|
|
@@ -8748,22 +8760,22 @@ const cp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8748
8760
|
keyZ: ee,
|
|
8749
8761
|
newPayloadZ: xa,
|
|
8750
8762
|
payloadZ: Gt,
|
|
8751
|
-
rangeAliasOntologyID:
|
|
8752
|
-
rangeOntologyID:
|
|
8753
|
-
sort:
|
|
8754
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
8755
|
-
class
|
|
8763
|
+
rangeAliasOntologyID: wf,
|
|
8764
|
+
rangeOntologyID: mf,
|
|
8765
|
+
sort: Mf
|
|
8766
|
+
}, Symbol.toStringTag, { value: "Module" })), Jf = "/api/v1/";
|
|
8767
|
+
class Kf {
|
|
8756
8768
|
constructor(e, t = {}, r = !1) {
|
|
8757
8769
|
c(this, "url");
|
|
8758
8770
|
c(this, "unary");
|
|
8759
8771
|
c(this, "stream");
|
|
8760
8772
|
c(this, "secure");
|
|
8761
|
-
this.secure = r, this.url = e.child(
|
|
8773
|
+
this.secure = r, this.url = e.child(Jf);
|
|
8762
8774
|
const i = new ot.JSONCodec();
|
|
8763
|
-
this.unary =
|
|
8764
|
-
new
|
|
8775
|
+
this.unary = jc(
|
|
8776
|
+
new Dc(this.url, i, this.secure),
|
|
8765
8777
|
t
|
|
8766
|
-
), this.stream = new
|
|
8778
|
+
), this.stream = new zc(this.url, i, this.secure);
|
|
8767
8779
|
}
|
|
8768
8780
|
use(...e) {
|
|
8769
8781
|
this.unary.use(...e), this.stream.use(...e);
|
|
@@ -8773,10 +8785,10 @@ const Vt = s.string().uuid(), Bn = s.object({
|
|
|
8773
8785
|
key: s.string(),
|
|
8774
8786
|
name: s.string(),
|
|
8775
8787
|
data: Mt.or(s.string().transform((n) => JSON.parse(n)))
|
|
8776
|
-
}), Ua = "lineplot",
|
|
8788
|
+
}), Ua = "lineplot", Hf = (n) => new O({ type: Ua, key: n }), Xf = "/workspace/lineplot/retrieve", Qf = "/workspace/lineplot/create", ey = "/workspace/lineplot/rename", ty = "/workspace/lineplot/set-data", ny = "/workspace/lineplot/delete", Za = Bn.partial({ key: !0 }).transform((n) => ({
|
|
8777
8789
|
...n,
|
|
8778
8790
|
data: JSON.stringify(n.data)
|
|
8779
|
-
})),
|
|
8791
|
+
})), ry = s.object({ keys: Vt.array() }), sy = s.object({ workspace: s.string(), linePlots: Za.array() }), iy = s.object({ key: Vt, name: s.string() }), ay = s.object({ key: Vt, data: s.string() }), oy = s.object({ keys: Vt.array() }), cy = s.object({ linePlots: X(Bn) }), ly = s.object({ linePlots: Bn.array() }), ar = s.object({});
|
|
8780
8792
|
let La = class {
|
|
8781
8793
|
constructor(e) {
|
|
8782
8794
|
c(this, "client");
|
|
@@ -8785,38 +8797,38 @@ let La = class {
|
|
|
8785
8797
|
async create(e, t) {
|
|
8786
8798
|
const r = Array.isArray(t), i = b(t), a = await w(
|
|
8787
8799
|
this.client,
|
|
8788
|
-
|
|
8800
|
+
Qf,
|
|
8789
8801
|
{ workspace: e, linePlots: i },
|
|
8790
|
-
|
|
8791
|
-
|
|
8802
|
+
sy,
|
|
8803
|
+
ly
|
|
8792
8804
|
);
|
|
8793
8805
|
return r ? a.linePlots : a.linePlots[0];
|
|
8794
8806
|
}
|
|
8795
8807
|
async rename(e, t) {
|
|
8796
8808
|
await w(
|
|
8797
8809
|
this.client,
|
|
8798
|
-
|
|
8810
|
+
ey,
|
|
8799
8811
|
{ key: e, name: t },
|
|
8800
|
-
|
|
8812
|
+
iy,
|
|
8801
8813
|
ar
|
|
8802
8814
|
);
|
|
8803
8815
|
}
|
|
8804
8816
|
async setData(e, t) {
|
|
8805
8817
|
await w(
|
|
8806
8818
|
this.client,
|
|
8807
|
-
|
|
8819
|
+
ty,
|
|
8808
8820
|
{ key: e, data: JSON.stringify(t) },
|
|
8809
|
-
|
|
8821
|
+
ay,
|
|
8810
8822
|
ar
|
|
8811
8823
|
);
|
|
8812
8824
|
}
|
|
8813
8825
|
async retrieve(e) {
|
|
8814
8826
|
const t = Array.isArray(e), r = b(e), i = await w(
|
|
8815
8827
|
this.client,
|
|
8816
|
-
|
|
8828
|
+
Xf,
|
|
8817
8829
|
{ keys: r },
|
|
8818
|
-
|
|
8819
|
-
|
|
8830
|
+
ry,
|
|
8831
|
+
cy
|
|
8820
8832
|
);
|
|
8821
8833
|
return t ? i.linePlots : i.linePlots[0];
|
|
8822
8834
|
}
|
|
@@ -8824,29 +8836,29 @@ let La = class {
|
|
|
8824
8836
|
const t = b(e);
|
|
8825
8837
|
await w(
|
|
8826
8838
|
this.client,
|
|
8827
|
-
|
|
8839
|
+
ny,
|
|
8828
8840
|
{ keys: t },
|
|
8829
|
-
|
|
8841
|
+
oy,
|
|
8830
8842
|
ar
|
|
8831
8843
|
);
|
|
8832
8844
|
}
|
|
8833
8845
|
};
|
|
8834
|
-
const
|
|
8846
|
+
const yp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8835
8847
|
__proto__: null,
|
|
8836
8848
|
Client: La,
|
|
8837
8849
|
ONTOLOGY_TYPE: Ua,
|
|
8838
8850
|
keyZ: Vt,
|
|
8839
8851
|
linePlotZ: Bn,
|
|
8840
8852
|
newLinePlotZ: Za,
|
|
8841
|
-
ontologyID:
|
|
8842
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
8853
|
+
ontologyID: Hf
|
|
8854
|
+
}, Symbol.toStringTag, { value: "Module" })), uy = s.string().uuid(), Un = s.object({
|
|
8843
8855
|
key: s.string(),
|
|
8844
8856
|
name: s.string(),
|
|
8845
8857
|
data: Mt.or(s.string().transform((n) => JSON.parse(n)))
|
|
8846
|
-
}), _a = "log",
|
|
8858
|
+
}), _a = "log", hy = (n) => new O({ type: _a, key: n }), dy = "/workspace/log/retrieve", fy = "/workspace/log/create", yy = "/workspace/log/rename", gy = "/workspace/log/set-data", py = "/workspace/log/delete", Ya = Un.partial({ key: !0 }).transform((n) => ({
|
|
8847
8859
|
...n,
|
|
8848
8860
|
data: JSON.stringify(n.data)
|
|
8849
|
-
})),
|
|
8861
|
+
})), my = s.object({ keys: s.string().array() }), wy = s.object({ workspace: s.string(), logs: Ya.array() }), by = s.object({ key: s.string(), name: s.string() }), vy = s.object({ key: s.string(), data: s.string() }), Ty = s.object({ keys: s.string().array() }), Oy = s.object({ logs: Un.array() }), Ey = s.object({ logs: Un.array() }), or = s.object({});
|
|
8850
8862
|
let qa = class {
|
|
8851
8863
|
constructor(e) {
|
|
8852
8864
|
c(this, "client");
|
|
@@ -8855,38 +8867,38 @@ let qa = class {
|
|
|
8855
8867
|
async create(e, t) {
|
|
8856
8868
|
const r = Array.isArray(t), i = b(t), a = await w(
|
|
8857
8869
|
this.client,
|
|
8858
|
-
|
|
8870
|
+
fy,
|
|
8859
8871
|
{ workspace: e, logs: i },
|
|
8860
|
-
|
|
8861
|
-
|
|
8872
|
+
wy,
|
|
8873
|
+
Ey
|
|
8862
8874
|
);
|
|
8863
8875
|
return r ? a.logs : a.logs[0];
|
|
8864
8876
|
}
|
|
8865
8877
|
async rename(e, t) {
|
|
8866
8878
|
await w(
|
|
8867
8879
|
this.client,
|
|
8868
|
-
|
|
8880
|
+
yy,
|
|
8869
8881
|
{ key: e, name: t },
|
|
8870
|
-
|
|
8882
|
+
by,
|
|
8871
8883
|
or
|
|
8872
8884
|
);
|
|
8873
8885
|
}
|
|
8874
8886
|
async setData(e, t) {
|
|
8875
8887
|
await w(
|
|
8876
8888
|
this.client,
|
|
8877
|
-
|
|
8889
|
+
gy,
|
|
8878
8890
|
{ key: e, data: JSON.stringify(t) },
|
|
8879
|
-
|
|
8891
|
+
vy,
|
|
8880
8892
|
or
|
|
8881
8893
|
);
|
|
8882
8894
|
}
|
|
8883
8895
|
async retrieve(e) {
|
|
8884
8896
|
const t = Array.isArray(e), r = b(e), i = await w(
|
|
8885
8897
|
this.client,
|
|
8886
|
-
|
|
8898
|
+
dy,
|
|
8887
8899
|
{ keys: r },
|
|
8888
|
-
|
|
8889
|
-
|
|
8900
|
+
my,
|
|
8901
|
+
Oy
|
|
8890
8902
|
);
|
|
8891
8903
|
return t ? i.logs : i.logs[0];
|
|
8892
8904
|
}
|
|
@@ -8894,22 +8906,22 @@ let qa = class {
|
|
|
8894
8906
|
const t = b(e);
|
|
8895
8907
|
await w(
|
|
8896
8908
|
this.client,
|
|
8897
|
-
|
|
8909
|
+
py,
|
|
8898
8910
|
{ keys: t },
|
|
8899
|
-
|
|
8911
|
+
Ty,
|
|
8900
8912
|
or
|
|
8901
8913
|
);
|
|
8902
8914
|
}
|
|
8903
8915
|
};
|
|
8904
|
-
const
|
|
8916
|
+
const pp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8905
8917
|
__proto__: null,
|
|
8906
8918
|
Client: qa,
|
|
8907
8919
|
ONTOLOGY_TYPE: _a,
|
|
8908
|
-
keyZ:
|
|
8920
|
+
keyZ: uy,
|
|
8909
8921
|
logZ: Un,
|
|
8910
8922
|
newLogZ: Ya,
|
|
8911
|
-
ontologyID:
|
|
8912
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
8923
|
+
ontologyID: hy
|
|
8924
|
+
}, Symbol.toStringTag, { value: "Module" })), Ny = s.string().uuid(), _r = s.object({
|
|
8913
8925
|
key: s.string(),
|
|
8914
8926
|
name: s.string(),
|
|
8915
8927
|
data: Mt.or(s.string().transform((n) => JSON.parse(n))),
|
|
@@ -8919,13 +8931,13 @@ const dp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8919
8931
|
name: s.string(),
|
|
8920
8932
|
snapshot: s.boolean(),
|
|
8921
8933
|
data: s.string().transform((n) => JSON.parse(n))
|
|
8922
|
-
}), za = "schematic",
|
|
8934
|
+
}), za = "schematic", Sy = (n) => new O({ type: za, key: n }), Iy = "/workspace/schematic/retrieve", ky = "/workspace/schematic/create", $y = "/workspace/schematic/rename", Ay = "/workspace/schematic/set-data", Ry = "/workspace/schematic/delete", xy = "/workspace/schematic/copy", Wa = _r.partial({ key: !0, snapshot: !0 }).transform((n) => ({
|
|
8923
8935
|
...n,
|
|
8924
8936
|
data: JSON.stringify(n.data)
|
|
8925
|
-
})),
|
|
8937
|
+
})), Cy = s.object({ keys: s.string().array() }), Py = s.object({
|
|
8926
8938
|
workspace: s.string(),
|
|
8927
8939
|
schematics: Wa.array()
|
|
8928
|
-
}),
|
|
8940
|
+
}), Dy = s.object({ key: s.string(), name: s.string() }), jy = s.object({ key: s.string(), data: s.string() }), My = s.object({ keys: s.string().array() }), By = s.object({ key: s.string(), name: s.string(), snapshot: s.boolean() }), Uy = s.object({ schematics: X(Yr) }), Zy = s.object({ schematics: Yr.array() }), Ly = s.object({ schematic: _r }), cr = s.object({});
|
|
8929
8941
|
let Ga = class {
|
|
8930
8942
|
constructor(e) {
|
|
8931
8943
|
c(this, "client");
|
|
@@ -8934,38 +8946,38 @@ let Ga = class {
|
|
|
8934
8946
|
async create(e, t) {
|
|
8935
8947
|
const r = Array.isArray(t), i = b(t), a = await w(
|
|
8936
8948
|
this.client,
|
|
8937
|
-
|
|
8949
|
+
ky,
|
|
8938
8950
|
{ workspace: e, schematics: i },
|
|
8939
|
-
|
|
8940
|
-
|
|
8951
|
+
Py,
|
|
8952
|
+
Zy
|
|
8941
8953
|
);
|
|
8942
8954
|
return r ? a.schematics : a.schematics[0];
|
|
8943
8955
|
}
|
|
8944
8956
|
async rename(e, t) {
|
|
8945
8957
|
await w(
|
|
8946
8958
|
this.client,
|
|
8947
|
-
|
|
8959
|
+
$y,
|
|
8948
8960
|
{ key: e, name: t },
|
|
8949
|
-
|
|
8961
|
+
Dy,
|
|
8950
8962
|
cr
|
|
8951
8963
|
);
|
|
8952
8964
|
}
|
|
8953
8965
|
async setData(e, t) {
|
|
8954
8966
|
await w(
|
|
8955
8967
|
this.client,
|
|
8956
|
-
|
|
8968
|
+
Ay,
|
|
8957
8969
|
{ key: e, data: JSON.stringify(t) },
|
|
8958
|
-
|
|
8970
|
+
jy,
|
|
8959
8971
|
cr
|
|
8960
8972
|
);
|
|
8961
8973
|
}
|
|
8962
8974
|
async retrieve(e) {
|
|
8963
8975
|
const t = Array.isArray(e), r = b(e), i = await w(
|
|
8964
8976
|
this.client,
|
|
8965
|
-
|
|
8977
|
+
Iy,
|
|
8966
8978
|
{ keys: r },
|
|
8967
|
-
|
|
8968
|
-
|
|
8979
|
+
Cy,
|
|
8980
|
+
Uy
|
|
8969
8981
|
);
|
|
8970
8982
|
return t ? i.schematics : i.schematics[0];
|
|
8971
8983
|
}
|
|
@@ -8973,43 +8985,43 @@ let Ga = class {
|
|
|
8973
8985
|
const t = b(e);
|
|
8974
8986
|
await w(
|
|
8975
8987
|
this.client,
|
|
8976
|
-
|
|
8988
|
+
Ry,
|
|
8977
8989
|
{ keys: t },
|
|
8978
|
-
|
|
8990
|
+
My,
|
|
8979
8991
|
cr
|
|
8980
8992
|
);
|
|
8981
8993
|
}
|
|
8982
8994
|
async copy(e, t, r) {
|
|
8983
8995
|
return (await w(
|
|
8984
8996
|
this.client,
|
|
8985
|
-
|
|
8997
|
+
xy,
|
|
8986
8998
|
{ key: e, name: t, snapshot: r },
|
|
8987
|
-
|
|
8988
|
-
|
|
8999
|
+
By,
|
|
9000
|
+
Ly
|
|
8989
9001
|
)).schematic;
|
|
8990
9002
|
}
|
|
8991
9003
|
};
|
|
8992
|
-
const
|
|
9004
|
+
const wp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8993
9005
|
__proto__: null,
|
|
8994
9006
|
Client: Ga,
|
|
8995
9007
|
ONTOLOGY_TYPE: za,
|
|
8996
|
-
keyZ:
|
|
9008
|
+
keyZ: Ny,
|
|
8997
9009
|
newSchematicZ: Wa,
|
|
8998
|
-
ontologyID:
|
|
9010
|
+
ontologyID: Sy,
|
|
8999
9011
|
schematicRemoteZ: Yr,
|
|
9000
9012
|
schematicZ: _r
|
|
9001
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
9013
|
+
}, Symbol.toStringTag, { value: "Module" })), _y = s.string().uuid(), Va = s.object({
|
|
9002
9014
|
key: s.string(),
|
|
9003
9015
|
name: s.string(),
|
|
9004
9016
|
data: Mt.or(s.string().transform((n) => JSON.parse(n)))
|
|
9005
|
-
}), Fa = "table",
|
|
9017
|
+
}), Fa = "table", Yy = (n) => new O({ type: Fa, key: n }), qy = "/workspace/table/retrieve", zy = "/workspace/table/create", Wy = "/workspace/table/rename", Gy = "/workspace/table/set-data", Vy = "/workspace/table/delete", Ja = Va.partial({ key: !0 }).transform((n) => ({
|
|
9006
9018
|
...n,
|
|
9007
9019
|
data: JSON.stringify(n.data)
|
|
9008
9020
|
})), qr = s.object({
|
|
9009
9021
|
key: s.string(),
|
|
9010
9022
|
name: s.string(),
|
|
9011
9023
|
data: s.string().transform((n) => JSON.parse(n))
|
|
9012
|
-
}),
|
|
9024
|
+
}), Fy = s.object({ keys: s.string().array() }), Jy = s.object({ workspace: s.string(), tables: Ja.array() }), Ky = s.object({ key: s.string(), name: s.string() }), Hy = s.object({ key: s.string(), data: s.string() }), Xy = s.object({ keys: s.string().array() }), Qy = s.object({ tables: qr.array() }), eg = s.object({ tables: qr.array() }), lr = s.object({});
|
|
9013
9025
|
let Ka = class {
|
|
9014
9026
|
constructor(e) {
|
|
9015
9027
|
c(this, "client");
|
|
@@ -9018,38 +9030,38 @@ let Ka = class {
|
|
|
9018
9030
|
async create(e, t) {
|
|
9019
9031
|
const r = Array.isArray(t), i = b(t), a = await w(
|
|
9020
9032
|
this.client,
|
|
9021
|
-
|
|
9033
|
+
zy,
|
|
9022
9034
|
{ workspace: e, tables: i },
|
|
9023
|
-
|
|
9024
|
-
|
|
9035
|
+
Jy,
|
|
9036
|
+
eg
|
|
9025
9037
|
);
|
|
9026
9038
|
return r ? a.tables : a.tables[0];
|
|
9027
9039
|
}
|
|
9028
9040
|
async rename(e, t) {
|
|
9029
9041
|
await w(
|
|
9030
9042
|
this.client,
|
|
9031
|
-
|
|
9043
|
+
Wy,
|
|
9032
9044
|
{ key: e, name: t },
|
|
9033
|
-
|
|
9045
|
+
Ky,
|
|
9034
9046
|
lr
|
|
9035
9047
|
);
|
|
9036
9048
|
}
|
|
9037
9049
|
async setData(e, t) {
|
|
9038
9050
|
await w(
|
|
9039
9051
|
this.client,
|
|
9040
|
-
|
|
9052
|
+
Gy,
|
|
9041
9053
|
{ key: e, data: JSON.stringify(t) },
|
|
9042
|
-
|
|
9054
|
+
Hy,
|
|
9043
9055
|
lr
|
|
9044
9056
|
);
|
|
9045
9057
|
}
|
|
9046
9058
|
async retrieve(e) {
|
|
9047
9059
|
const t = Array.isArray(e), r = b(e), i = await w(
|
|
9048
9060
|
this.client,
|
|
9049
|
-
|
|
9061
|
+
qy,
|
|
9050
9062
|
{ keys: r },
|
|
9051
|
-
|
|
9052
|
-
|
|
9063
|
+
Fy,
|
|
9064
|
+
Qy
|
|
9053
9065
|
);
|
|
9054
9066
|
return t ? i.tables : i.tables[0];
|
|
9055
9067
|
}
|
|
@@ -9057,27 +9069,27 @@ let Ka = class {
|
|
|
9057
9069
|
const t = b(e);
|
|
9058
9070
|
await w(
|
|
9059
9071
|
this.client,
|
|
9060
|
-
|
|
9072
|
+
Vy,
|
|
9061
9073
|
{ keys: t },
|
|
9062
|
-
|
|
9074
|
+
Xy,
|
|
9063
9075
|
lr
|
|
9064
9076
|
);
|
|
9065
9077
|
}
|
|
9066
9078
|
};
|
|
9067
|
-
const
|
|
9079
|
+
const vp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9068
9080
|
__proto__: null,
|
|
9069
9081
|
Client: Ka,
|
|
9070
9082
|
ONTOLOGY_TYPE: Fa,
|
|
9071
|
-
keyZ:
|
|
9083
|
+
keyZ: _y,
|
|
9072
9084
|
newTableZ: Ja,
|
|
9073
|
-
ontologyID:
|
|
9085
|
+
ontologyID: Yy,
|
|
9074
9086
|
tableRemoteZ: qr,
|
|
9075
9087
|
tableZ: Va
|
|
9076
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
9088
|
+
}, Symbol.toStringTag, { value: "Module" })), tg = s.string().uuid(), Ha = (n) => JSON.parse(n), Zn = s.object({
|
|
9077
9089
|
key: s.string(),
|
|
9078
9090
|
name: s.string(),
|
|
9079
9091
|
layout: Mt.or(s.string().transform((n) => Ha(n)))
|
|
9080
|
-
}), Xa = "workspace",
|
|
9092
|
+
}), Xa = "workspace", ng = (n) => new O({ type: Xa, key: n }), Ht = "/workspace/retrieve", rg = "/workspace/create", sg = "/workspace/rename", ig = "/workspace/set-layout", ag = "/workspace/delete", Qa = Zn.partial({ key: !0 }).transform((n) => ({
|
|
9081
9093
|
...n,
|
|
9082
9094
|
layout: JSON.stringify(n.layout)
|
|
9083
9095
|
})), eo = Zn.omit({ layout: !0 }).extend({
|
|
@@ -9088,7 +9100,7 @@ const pp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9088
9100
|
author: s.string().uuid().optional(),
|
|
9089
9101
|
offset: s.number().optional(),
|
|
9090
9102
|
limit: s.number().optional()
|
|
9091
|
-
}),
|
|
9103
|
+
}), og = s.object({ workspaces: Qa.array() }), cg = s.object({ key: s.string(), name: s.string() }), lg = s.object({ key: s.string(), layout: s.string() }), ug = s.object({ keys: s.string().array() }), Qt = s.object({ workspaces: X(Zn) }), hg = s.object({ workspaces: eo.array() }), ur = s.object({});
|
|
9092
9104
|
class to {
|
|
9093
9105
|
constructor(e) {
|
|
9094
9106
|
c(this, "type", "workspace");
|
|
@@ -9102,28 +9114,28 @@ class to {
|
|
|
9102
9114
|
async create(e) {
|
|
9103
9115
|
const t = Array.isArray(e), r = b(e), i = await w(
|
|
9104
9116
|
this.client,
|
|
9105
|
-
Qy,
|
|
9106
|
-
{ workspaces: r },
|
|
9107
9117
|
rg,
|
|
9108
|
-
|
|
9118
|
+
{ workspaces: r },
|
|
9119
|
+
og,
|
|
9120
|
+
hg
|
|
9109
9121
|
);
|
|
9110
9122
|
return t ? i.workspaces : i.workspaces[0];
|
|
9111
9123
|
}
|
|
9112
9124
|
async rename(e, t) {
|
|
9113
9125
|
await w(
|
|
9114
9126
|
this.client,
|
|
9115
|
-
eg,
|
|
9116
|
-
{ key: e, name: t },
|
|
9117
9127
|
sg,
|
|
9128
|
+
{ key: e, name: t },
|
|
9129
|
+
cg,
|
|
9118
9130
|
ur
|
|
9119
9131
|
);
|
|
9120
9132
|
}
|
|
9121
9133
|
async setLayout(e, t) {
|
|
9122
9134
|
await w(
|
|
9123
9135
|
this.client,
|
|
9124
|
-
tg,
|
|
9125
|
-
{ key: e, layout: JSON.stringify(t) },
|
|
9126
9136
|
ig,
|
|
9137
|
+
{ key: e, layout: JSON.stringify(t) },
|
|
9138
|
+
lg,
|
|
9127
9139
|
ur
|
|
9128
9140
|
);
|
|
9129
9141
|
}
|
|
@@ -9168,23 +9180,23 @@ class to {
|
|
|
9168
9180
|
const t = b(e);
|
|
9169
9181
|
await w(
|
|
9170
9182
|
this.client,
|
|
9171
|
-
ng,
|
|
9172
|
-
{ keys: t },
|
|
9173
9183
|
ag,
|
|
9184
|
+
{ keys: t },
|
|
9185
|
+
ug,
|
|
9174
9186
|
ur
|
|
9175
9187
|
);
|
|
9176
9188
|
}
|
|
9177
9189
|
}
|
|
9178
|
-
const
|
|
9190
|
+
const Tp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9179
9191
|
__proto__: null,
|
|
9180
9192
|
Client: to,
|
|
9181
9193
|
ONTOLOGY_TYPE: Xa,
|
|
9182
|
-
keyZ:
|
|
9194
|
+
keyZ: tg,
|
|
9183
9195
|
newWorkspaceZ: Qa,
|
|
9184
|
-
ontologyID:
|
|
9196
|
+
ontologyID: ng,
|
|
9185
9197
|
workspaceRemoteZ: eo,
|
|
9186
9198
|
workspaceZ: Zn
|
|
9187
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
9199
|
+
}, Symbol.toStringTag, { value: "Module" })), dg = s.object({
|
|
9188
9200
|
host: s.string({
|
|
9189
9201
|
required_error: "Host is required"
|
|
9190
9202
|
}).min(1, "Host is required"),
|
|
@@ -9200,9 +9212,9 @@ const mp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9200
9212
|
connectivityPollFrequency: S.z.default(S.seconds(30)),
|
|
9201
9213
|
secure: s.boolean().optional().default(!1),
|
|
9202
9214
|
name: s.string().optional(),
|
|
9203
|
-
retry:
|
|
9215
|
+
retry: Su.breakerConfig.optional()
|
|
9204
9216
|
});
|
|
9205
|
-
class
|
|
9217
|
+
class fg extends ha {
|
|
9206
9218
|
/**
|
|
9207
9219
|
* @param props.host - Hostname of a node in the cluster.
|
|
9208
9220
|
* @param props.port - Port of the node in the cluster.
|
|
@@ -9219,7 +9231,7 @@ class lg extends ha {
|
|
|
9219
9231
|
* the client from polling the cluster for connectivity information.
|
|
9220
9232
|
*/
|
|
9221
9233
|
constructor(t) {
|
|
9222
|
-
const r =
|
|
9234
|
+
const r = dg.parse(t), {
|
|
9223
9235
|
host: i,
|
|
9224
9236
|
port: a,
|
|
9225
9237
|
username: o,
|
|
@@ -9227,14 +9239,14 @@ class lg extends ha {
|
|
|
9227
9239
|
connectivityPollFrequency: u,
|
|
9228
9240
|
secure: h,
|
|
9229
9241
|
retry: y
|
|
9230
|
-
} = r, d = new
|
|
9231
|
-
new
|
|
9242
|
+
} = r, d = new Kf(
|
|
9243
|
+
new bu({ host: i, port: Number(a) }),
|
|
9232
9244
|
y,
|
|
9233
9245
|
h
|
|
9234
9246
|
);
|
|
9235
|
-
d.use(
|
|
9247
|
+
d.use(ju);
|
|
9236
9248
|
let M;
|
|
9237
|
-
o != null && l != null && (M = new
|
|
9249
|
+
o != null && l != null && (M = new rd(d.unary, { username: o, password: l }), d.use(M.middleware()));
|
|
9238
9250
|
const A = new Dr(
|
|
9239
9251
|
new xt(d.unary)
|
|
9240
9252
|
), te = new ea(d.unary, A);
|
|
@@ -9256,7 +9268,7 @@ class lg extends ha {
|
|
|
9256
9268
|
/**
|
|
9257
9269
|
* The version of the client.
|
|
9258
9270
|
*/
|
|
9259
|
-
c(this, "clientVersion", "0.
|
|
9271
|
+
c(this, "clientVersion", "0.37.0");
|
|
9260
9272
|
this.createdAt = k.now(), this.props = r, this.auth = M, this.transport = d, this.channels = new Qi(this, A, d.unary, te), this.connectivity = new Ct(
|
|
9261
9273
|
d.unary,
|
|
9262
9274
|
u,
|
|
@@ -9287,49 +9299,49 @@ class lg extends ha {
|
|
|
9287
9299
|
this.connectivity.stopChecking();
|
|
9288
9300
|
}
|
|
9289
9301
|
}
|
|
9290
|
-
c(
|
|
9291
|
-
const
|
|
9302
|
+
c(fg, "connectivity", Ct);
|
|
9303
|
+
const Op = rt.Authority;
|
|
9292
9304
|
export {
|
|
9293
9305
|
st as AuthError,
|
|
9294
|
-
|
|
9306
|
+
Op as Authority,
|
|
9295
9307
|
Xi as Channel,
|
|
9296
9308
|
xs as ContiguityError,
|
|
9297
9309
|
I as DataType,
|
|
9298
9310
|
J as Density,
|
|
9299
9311
|
Y as Frame,
|
|
9300
|
-
|
|
9312
|
+
su as MultiSeries,
|
|
9301
9313
|
Ne as MultipleFoundError,
|
|
9302
9314
|
Ee as NotFoundError,
|
|
9303
9315
|
ne as QueryError,
|
|
9304
9316
|
At as Rate,
|
|
9305
9317
|
wn as RouteError,
|
|
9306
9318
|
$e as Series,
|
|
9307
|
-
|
|
9319
|
+
fg as Synnax,
|
|
9308
9320
|
V as TimeRange,
|
|
9309
9321
|
S as TimeSpan,
|
|
9310
9322
|
k as TimeStamp,
|
|
9311
9323
|
Re as UnexpectedError,
|
|
9312
9324
|
U as ValidationError,
|
|
9313
|
-
|
|
9314
|
-
|
|
9315
|
-
|
|
9316
|
-
|
|
9317
|
-
|
|
9318
|
-
|
|
9319
|
-
|
|
9320
|
-
|
|
9321
|
-
|
|
9322
|
-
|
|
9323
|
-
|
|
9324
|
-
|
|
9325
|
-
|
|
9326
|
-
|
|
9327
|
-
|
|
9328
|
-
|
|
9329
|
-
|
|
9330
|
-
|
|
9331
|
-
|
|
9332
|
-
|
|
9333
|
-
|
|
9334
|
-
|
|
9325
|
+
Zg as access,
|
|
9326
|
+
Yg as channel,
|
|
9327
|
+
Fg as connection,
|
|
9328
|
+
Xg as control,
|
|
9329
|
+
rp as device,
|
|
9330
|
+
Kg as framer,
|
|
9331
|
+
Rg as group,
|
|
9332
|
+
ep as hardware,
|
|
9333
|
+
up as label,
|
|
9334
|
+
yp as linePlot,
|
|
9335
|
+
pp as log,
|
|
9336
|
+
Pg as ontology,
|
|
9337
|
+
Bg as policy,
|
|
9338
|
+
ip as rack,
|
|
9339
|
+
dp as ranger,
|
|
9340
|
+
wp as schematic,
|
|
9341
|
+
tp as signals,
|
|
9342
|
+
dg as synnaxPropsZ,
|
|
9343
|
+
vp as table,
|
|
9344
|
+
op as task,
|
|
9345
|
+
Gg as user,
|
|
9346
|
+
Tp as workspace
|
|
9335
9347
|
};
|