@synnaxlabs/pluto 0.33.2 → 0.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Animated-C7iWxEah.cjs → Animated-Ck87AGOu.cjs} +1 -1
- package/dist/{Animated-VpxahF8t.js → Animated-CnvOerW9.js} +2 -2
- package/dist/{Item-Dpra-3n6.js → Item--wCat2DH.js} +5 -5
- package/dist/{Item-C1_OE8IF.cjs → Item-DuNQFmgk.cjs} +1 -1
- package/dist/{Keyboard-BBOcinRN.cjs → Keyboard-DPs95Etp.cjs} +1 -1
- package/dist/{Keyboard-CpJQuX-J.js → Keyboard-Dh_Fhwg4.js} +2 -2
- package/dist/LinePlot-44K5K51b.cjs +34 -0
- package/dist/{LinePlot-DHy70Cb7.js → LinePlot-DN8KOMtR.js} +814 -801
- package/dist/Link-BHtl4aby.cjs +1 -0
- package/dist/{Link-Ctlz9WUQ.js → Link-CDG2-g6A.js} +2 -2
- package/dist/{List-DF0kzXpr.js → List-BjimX8fM.js} +5 -5
- package/dist/List-C8vXIE2j.cjs +1 -0
- package/dist/{Pack-BAJwD-n2.js → Pack-D6eMgf33.js} +9 -9
- package/dist/{Pack-DBtBeGnj.cjs → Pack-DijAGcm_.cjs} +1 -1
- package/dist/{Text-GGA7QNwA.cjs → Text-Cg0q7seY.cjs} +1 -1
- package/dist/{Text-D5o4o3OI.js → Text-CzgVM_22.js} +5 -5
- package/dist/Toggle-CP9KtybX.cjs +143 -0
- package/dist/{Toggle-CTjPdq8o.js → Toggle-Cdu7WaiC.js} +7038 -7049
- package/dist/{Video-B3geSdOZ.cjs → Video-BgDjKMJx.cjs} +1 -1
- package/dist/{Video-CXccd2Jl.js → Video-DYSz9XOF.js} +1 -1
- package/dist/aggregator-C0Ab25_o.cjs +67 -0
- package/dist/{aggregator-QFq5XDjf.js → aggregator-DzdAnRwI.js} +546 -552
- package/dist/align.cjs +1 -1
- package/dist/align.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/color.cjs +1 -1
- package/dist/color.js +1 -1
- package/dist/{css-DqBChhqm.js → css-B4FcyECk.js} +25 -20
- package/dist/css-Dh7n0EGs.cjs +1 -0
- package/dist/css.cjs +1 -1
- package/dist/css.js +2 -2
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +5 -5
- package/dist/{external-CfOulkkd.js → external-B72rRj4o.js} +5 -5
- package/dist/{external-DT1bMgJw.js → external-BOIjtEGO.js} +2 -2
- package/dist/{external-mRJloDDi.js → external-B_-ZrYaG.js} +112 -102
- package/dist/{external-CUwDGrme.cjs → external-BbS4QDTb.cjs} +1 -1
- package/dist/{external-BPnNv3RZ.cjs → external-CAIE4G3V.cjs} +1 -1
- package/dist/{external-ClRKAhnQ.cjs → external-CYsmC4uZ.cjs} +1 -1
- package/dist/{external-BZpriFW_.cjs → external-Cc9o20Al.cjs} +1 -1
- package/dist/{external-aTGyndBd.cjs → external-CjmMj11F.cjs} +1 -1
- package/dist/{external-Bm3VKQxs.js → external-CoQwrjWl.js} +15 -15
- package/dist/{external-CK8msIo3.js → external-CsqyDUsJ.js} +4 -4
- package/dist/{external-CKp_fJJC.js → external-D9Q5Xjko.js} +2 -2
- package/dist/{external-C2YHV6Dz.cjs → external-DRHWURjA.cjs} +1 -1
- package/dist/external-DVlGiTKE.cjs +1 -0
- package/dist/{external-X9NMQ2Zh.cjs → external-Dm2-owlq.cjs} +1 -1
- package/dist/{external-CKuO-iHz.cjs → external-DsKRFJxV.cjs} +1 -1
- package/dist/{external-Ct326ec4.js → external-DvRQ7lJU.js} +2 -2
- package/dist/{external-DyAGPLil.js → external-FVIwMFDr.js} +5 -5
- package/dist/{external-CI2s6wrc.js → external-Yf8Lv9AU.js} +69 -82
- package/dist/{external-Bksh4jhY.cjs → external-eI1p10Vf.cjs} +1 -1
- package/dist/{external-Dhg4bEfF.cjs → external-gz4sf3pG.cjs} +1 -1
- package/dist/{external-BNMsCMKL.js → external-k3Jbrj0m.js} +5 -5
- package/dist/{external-DmLFwKtu.js → external-lgZ2Gmbx.js} +4 -4
- package/dist/{external-EHlrAzYc.js → external-mE-a2ecU.js} +1 -1
- package/dist/{external-DYc6fMZC.cjs → external-mtlL4Z3a.cjs} +1 -1
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/index.cjs +11 -5
- package/dist/index.js +10618 -8629
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/src/aether/aether/aether.d.ts.map +1 -1
- package/dist/src/aether/main.d.ts.map +1 -1
- package/dist/src/align/Space.d.ts.map +1 -1
- package/dist/src/button/Button.d.ts.map +1 -1
- package/dist/src/caret/Animated.d.ts.map +1 -1
- package/dist/src/channel/AliasProvider.d.ts.map +1 -1
- package/dist/src/channel/LinePlot.d.ts.map +1 -1
- package/dist/src/color/core/color.d.ts.map +1 -1
- package/dist/src/divider/Divider.d.ts.map +1 -1
- package/dist/src/dropdown/Dropdown.d.ts.map +1 -1
- package/dist/src/form/Field.d.ts.map +1 -1
- package/dist/src/form/Form.d.ts.map +1 -1
- package/dist/src/form/synced.d.ts.map +1 -1
- package/dist/src/hardware/device/Select.d.ts.map +1 -1
- package/dist/src/haul/Haul.d.ts.map +1 -1
- package/dist/src/hooks/useClickOutside.d.ts.map +1 -1
- package/dist/src/hooks/useRequiredContext.d.ts.map +1 -1
- package/dist/src/icon/Icon.d.ts.map +1 -1
- package/dist/src/input/Item.d.ts.map +1 -1
- package/dist/src/input/Label.d.ts.map +1 -1
- package/dist/src/input/Numeric.d.ts.map +1 -1
- package/dist/src/input/Text.d.ts.map +1 -1
- package/dist/src/input/types.d.ts.map +1 -1
- package/dist/src/label/Select.d.ts.map +1 -1
- package/dist/src/list/Item.d.ts.map +1 -1
- package/dist/src/memo/useMemoCompare.d.ts.map +1 -1
- package/dist/src/menu/ContextMenu.d.ts.map +1 -1
- package/dist/src/menu/Item.d.ts.map +1 -1
- package/dist/src/modal/Modal.d.ts.map +1 -1
- package/dist/src/mosaic/Mosaic.d.ts.map +1 -1
- package/dist/src/notation/SelectNotation.d.ts +12 -0
- package/dist/src/notation/SelectNotation.d.ts.map +1 -0
- package/dist/src/notation/notation.d.ts +33 -0
- package/dist/src/notation/notation.d.ts.map +1 -0
- package/dist/src/notation/notation.spec.d.ts +2 -0
- package/dist/src/notation/notation.spec.d.ts.map +1 -0
- package/dist/src/note/Note.d.ts.map +1 -1
- package/dist/src/observe/use.d.ts.map +1 -1
- package/dist/src/pluto/Pluto.d.ts.map +1 -1
- package/dist/src/progress/Progress.d.ts.map +1 -1
- package/dist/src/ranger/Select.d.ts.map +1 -1
- package/dist/src/select/Alignment.d.ts.map +1 -1
- package/dist/src/select/List.d.ts.map +1 -1
- package/dist/src/select/Multiple.d.ts.map +1 -1
- package/dist/src/select/Single.d.ts.map +1 -1
- package/dist/src/status/Circle.d.ts.map +1 -1
- package/dist/src/status/Notification.d.ts.map +1 -1
- package/dist/src/synnax/Provider.d.ts.map +1 -1
- package/dist/src/synnax/aether/provider.d.ts.map +1 -1
- package/dist/src/tabs/Selector.d.ts.map +1 -1
- package/dist/src/tabs/Tabs.d.ts.map +1 -1
- package/dist/src/tabs/types.d.ts.map +1 -1
- package/dist/src/tag/Tag.d.ts.map +1 -1
- package/dist/src/telem/Pipeline.d.ts.map +1 -1
- package/dist/src/telem/aether/noop.d.ts.map +1 -1
- package/dist/src/telem/aether/pipeline.d.ts.map +1 -1
- package/dist/src/telem/aether/telem.d.ts.map +1 -1
- package/dist/src/telem/aether/transformers.d.ts +9 -0
- package/dist/src/telem/aether/transformers.d.ts.map +1 -1
- package/dist/src/telem/client/cache/cache.d.ts.map +1 -1
- package/dist/src/telem/client/cache/dynamic.d.ts.map +1 -1
- package/dist/src/telem/client/reader.d.ts.map +1 -1
- package/dist/src/telem/control/Controller.d.ts.map +1 -1
- package/dist/src/telem/control/Legend.d.ts.map +1 -1
- package/dist/src/telem/control/aether/chip.d.ts.map +1 -1
- package/dist/src/telem/control/aether/controller.d.ts.map +1 -1
- package/dist/src/telem/control/aether/state.d.ts.map +1 -1
- package/dist/src/text/DateTime.d.ts.map +1 -1
- package/dist/src/text/Editable.d.ts.map +1 -1
- package/dist/src/text/SelectLevel.d.ts.map +1 -1
- package/dist/src/text/dimensions.d.ts.map +1 -1
- package/dist/src/tooltip/Dialog.d.ts.map +1 -1
- package/dist/src/tree/Tree.d.ts.map +1 -1
- package/dist/src/tree/core.d.ts +3 -1
- package/dist/src/tree/core.d.ts.map +1 -1
- package/dist/src/triggers/Provider.d.ts.map +1 -1
- package/dist/src/triggers/hooks.d.ts.map +1 -1
- package/dist/src/util/zod.d.ts.map +1 -1
- package/dist/src/vis/button/aether/button.d.ts.map +1 -1
- package/dist/src/vis/canvas/Canvas.d.ts.map +1 -1
- package/dist/src/vis/canvas/aether/canvas.d.ts.map +1 -1
- package/dist/src/vis/diagram/Diagram.d.ts.map +1 -1
- package/dist/src/vis/diagram/aether/types.d.ts +23 -14
- package/dist/src/vis/diagram/aether/types.d.ts.map +1 -1
- package/dist/src/vis/diagram/edge/Edge.d.ts +1 -1
- package/dist/src/vis/diagram/edge/Edge.d.ts.map +1 -1
- package/dist/src/vis/diagram/edge/connector/connector.d.ts.map +1 -1
- package/dist/src/vis/diagram/util.d.ts +1 -1
- package/dist/src/vis/diagram/util.d.ts.map +1 -1
- package/dist/src/vis/draw2d/canvas.d.ts.map +1 -1
- package/dist/src/vis/draw2d/index.d.ts.map +1 -1
- package/dist/src/vis/legend/Container.d.ts.map +1 -1
- package/dist/src/vis/legend/Simple.d.ts.map +1 -1
- package/dist/src/vis/line/aether/line.d.ts.map +1 -1
- package/dist/src/vis/lineplot/LinePlot.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/YAxis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/axis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/Annotation.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/Provider.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/aether/external.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/aether/provider.d.ts.map +1 -1
- package/dist/src/vis/log/Log.d.ts.map +1 -1
- package/dist/src/vis/log/aether/Log.d.ts.map +1 -1
- package/dist/src/vis/measure/Measure.d.ts.map +1 -1
- package/dist/src/vis/render/loop.d.ts.map +1 -1
- package/dist/src/vis/render/performance.d.ts.map +1 -1
- package/dist/src/vis/render/util.d.ts.map +1 -1
- package/dist/src/vis/schematic/Forms.d.ts +1 -0
- package/dist/src/vis/schematic/Forms.d.ts.map +1 -1
- package/dist/src/vis/schematic/Labeled.d.ts.map +1 -1
- package/dist/src/vis/schematic/SelectOrientation.d.ts.map +1 -1
- package/dist/src/vis/schematic/Symbols.d.ts +45 -0
- package/dist/src/vis/schematic/Symbols.d.ts.map +1 -1
- package/dist/src/vis/schematic/primitives/Primitives.d.ts +35 -0
- package/dist/src/vis/schematic/primitives/Primitives.d.ts.map +1 -1
- package/dist/src/vis/schematic/registry.d.ts +1 -1
- package/dist/src/vis/schematic/registry.d.ts.map +1 -1
- package/dist/src/vis/value/aether/value.d.ts +9 -0
- package/dist/src/vis/value/aether/value.d.ts.map +1 -1
- package/dist/src/vis/value/use.d.ts +4 -1
- package/dist/src/vis/value/use.d.ts.map +1 -1
- package/dist/src/worker/Context.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/text.cjs +1 -1
- package/dist/text.js +2 -2
- package/dist/theming.cjs +1 -1
- package/dist/theming.js +2 -2
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/triggers.cjs +1 -1
- package/dist/triggers.js +1 -1
- package/dist/{units-6W_8ukD-.cjs → units-CR-P9eLW.cjs} +1 -1
- package/dist/{units-BHSMvrYX.js → units-rb5QAWjs.js} +1 -1
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +18 -18
- package/dist/LinePlot-Bwz2fEc0.cjs +0 -34
- package/dist/Link-Cxj-3A6p.cjs +0 -1
- package/dist/List-CcTL6wlO.cjs +0 -1
- package/dist/Toggle-Dim0E2D2.cjs +0 -143
- package/dist/aggregator-D6Mmsfj4.cjs +0 -67
- package/dist/css-CvXvQo39.cjs +0 -1
- package/dist/external-e143l3cy.cjs +0 -1
|
@@ -2,8 +2,8 @@ var Vl = Object.defineProperty;
|
|
|
2
2
|
var Wl = (t, e, n) => e in t ? Vl(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var U = (t, e, n) => Wl(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
4
|
import { z as s } from "zod";
|
|
5
|
-
import { k as Sa,
|
|
6
|
-
import { useState as
|
|
5
|
+
import { k as Sa, e as Gl, M as tt, i as Jt, T as oi, h as dn, j as Zl, U as Jl, a as P, f as ge, Z as Kl } from "./css-B4FcyECk.js";
|
|
6
|
+
import { useState as Rs } from "react";
|
|
7
7
|
const qt = (t) => t != null && typeof t == "object" && !Array.isArray(t);
|
|
8
8
|
var Hl = Object.defineProperty, Xl = (t, e, n) => e in t ? Hl(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, zt = (t, e, n) => Xl(t, typeof e != "symbol" ? e + "" : e, n);
|
|
9
9
|
let Ql = class {
|
|
@@ -86,7 +86,7 @@ let Ql = class {
|
|
|
86
86
|
const On = new Ql();
|
|
87
87
|
new ec();
|
|
88
88
|
new tc();
|
|
89
|
-
const
|
|
89
|
+
const li = (t) => [...new Set(t)], Na = (t) => t != null && typeof t == "object" && "toString" in t, Gb = (t) => {
|
|
90
90
|
if (Na(t)) return (t == null ? void 0 : t.toString().length) === 0;
|
|
91
91
|
switch (typeof t) {
|
|
92
92
|
case "string":
|
|
@@ -137,7 +137,7 @@ const ci = (t) => [...new Set(t)], Na = (t) => t != null && typeof t == "object"
|
|
|
137
137
|
const n = lr(t[0]), r = [...t].sort(n), i = [...e].sort(n);
|
|
138
138
|
return r.every((a, o) => a === i[o]) ? 0 : -1;
|
|
139
139
|
}, sc = (t, e) => {
|
|
140
|
-
const n =
|
|
140
|
+
const n = li(t), r = li(e);
|
|
141
141
|
return Ia(n, r);
|
|
142
142
|
}, ic = (t, e) => t === e ? 0 : t === "first" && e === "last" ? 1 : -1, Ea = (t) => (e, n) => t(n, e), dt = 0, Tn = -1, Sn = 1, ka = (t) => t < dt, Aa = (t) => t > dt, ac = (t) => t >= dt, xa = (t) => t === dt, oc = (t, e) => {
|
|
143
143
|
const n = /([a-zA-Z]+)|(\d+)/g, r = t.replace(/[\s_.-]+/g, "").match(n), i = e.replace(/[\s_.-]+/g, "").match(n);
|
|
@@ -150,8 +150,7 @@ const ci = (t) => [...new Set(t)], Na = (t) => t != null && typeof t == "object"
|
|
|
150
150
|
} else if (!isNaN(Number(o)) && !isNaN(Number(c))) {
|
|
151
151
|
const u = Number(o) - Number(c);
|
|
152
152
|
if (u !== 0) return u;
|
|
153
|
-
} else
|
|
154
|
-
return isNaN(Number(o)) ? -1 : 1;
|
|
153
|
+
} else return isNaN(Number(o)) ? -1 : 1;
|
|
155
154
|
}
|
|
156
155
|
return r.length - i.length;
|
|
157
156
|
}, Zb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -183,13 +182,13 @@ const ci = (t) => [...new Set(t)], Na = (t) => t != null && typeof t == "object"
|
|
|
183
182
|
t(...r), n = null;
|
|
184
183
|
}, e));
|
|
185
184
|
};
|
|
186
|
-
},
|
|
185
|
+
}, $a = (t, e, n = ".") => {
|
|
187
186
|
const r = t.split(n);
|
|
188
187
|
return r.map((i, a) => {
|
|
189
188
|
const o = e(i, a, r);
|
|
190
189
|
return o == null ? null : typeof o == "string" ? o : o.join(n);
|
|
191
190
|
}).filter((i) => i != null).join(n);
|
|
192
|
-
},
|
|
191
|
+
}, js = (t, e, n = { optional: !1, separator: "." }) => {
|
|
193
192
|
n.separator ?? (n.separator = ".");
|
|
194
193
|
const { optional: r, getter: i = (c, u) => c[u] } = n, a = e.split(n.separator);
|
|
195
194
|
if (a.length === 1 && a[0] === "") return t;
|
|
@@ -208,7 +207,7 @@ const ci = (t) => [...new Set(t)], Na = (t) => t != null && typeof t == "object"
|
|
|
208
207
|
let i = t;
|
|
209
208
|
for (let a = 0; a < r.length - 1; a++) {
|
|
210
209
|
const o = r[a];
|
|
211
|
-
i[o]
|
|
210
|
+
i[o] ?? (i[o] = {}), i = i[o];
|
|
212
211
|
}
|
|
213
212
|
i[r[r.length - 1]] = n;
|
|
214
213
|
}, cc = (t, e) => {
|
|
@@ -220,7 +219,7 @@ const ci = (t) => [...new Set(t)], Na = (t) => t != null && typeof t == "object"
|
|
|
220
219
|
r = r[a];
|
|
221
220
|
}
|
|
222
221
|
if (Array.isArray(r)) {
|
|
223
|
-
const i = parseInt(n[n.length - 1]
|
|
222
|
+
const i = parseInt(n[n.length - 1]);
|
|
224
223
|
if (isNaN(i)) return;
|
|
225
224
|
r.splice(i, 1);
|
|
226
225
|
return;
|
|
@@ -231,7 +230,7 @@ const ci = (t) => [...new Set(t)], Na = (t) => t != null && typeof t == "object"
|
|
|
231
230
|
return e < 0 ? n[n.length + e] : n[e];
|
|
232
231
|
}, hc = (t, e) => {
|
|
233
232
|
try {
|
|
234
|
-
return
|
|
233
|
+
return js(t, e), !0;
|
|
235
234
|
} catch {
|
|
236
235
|
return !1;
|
|
237
236
|
}
|
|
@@ -263,23 +262,21 @@ const ci = (t) => [...new Set(t)], Na = (t) => t != null && typeof t == "object"
|
|
|
263
262
|
r[c] = [a, o];
|
|
264
263
|
return;
|
|
265
264
|
}
|
|
266
|
-
for (let u = 0; u < a.length; u++)
|
|
267
|
-
i(a[u], o[u], `${c}[${u}]`);
|
|
265
|
+
for (let u = 0; u < a.length; u++) i(a[u], o[u], `${c}[${u}]`);
|
|
268
266
|
} else
|
|
269
267
|
(/* @__PURE__ */ new Set([...Object.keys(a), ...Object.keys(o)])).forEach((u) => {
|
|
270
268
|
i(a[u], o[u], c !== "" ? `${c}.${u}` : u);
|
|
271
269
|
});
|
|
272
|
-
else
|
|
273
|
-
a !== o && (r[c] = [a, o]);
|
|
270
|
+
else a !== o && (r[c] = [a, o]);
|
|
274
271
|
};
|
|
275
272
|
return i(t, e, n), r;
|
|
276
|
-
},
|
|
273
|
+
}, ts = (t, e) => {
|
|
277
274
|
const n = Array.isArray(t), r = Array.isArray(e);
|
|
278
275
|
if (n !== r) return !1;
|
|
279
276
|
if (n && r) {
|
|
280
277
|
const o = t, c = e;
|
|
281
278
|
if (o.length !== c.length) return !1;
|
|
282
|
-
for (let u = 0; u < o.length; u++) if (!
|
|
279
|
+
for (let u = 0; u < o.length; u++) if (!ts(o[u], c[u])) return !1;
|
|
283
280
|
return !0;
|
|
284
281
|
}
|
|
285
282
|
if (t == null || e == null || typeof t != "object" || typeof e != "object")
|
|
@@ -290,32 +287,32 @@ const ci = (t) => [...new Set(t)], Na = (t) => t != null && typeof t == "object"
|
|
|
290
287
|
for (const o of i) {
|
|
291
288
|
const c = t[o], u = e[o];
|
|
292
289
|
if (typeof c == "object" && typeof u == "object") {
|
|
293
|
-
if (!
|
|
290
|
+
if (!ts(c, u)) return !1;
|
|
294
291
|
} else if (c !== u) return !1;
|
|
295
292
|
}
|
|
296
293
|
return !0;
|
|
297
|
-
},
|
|
294
|
+
}, Ca = (t, e) => {
|
|
298
295
|
if (typeof t != "object" || t == null) return t === e;
|
|
299
296
|
const n = Object.keys(t), r = Object.keys(e);
|
|
300
297
|
if (r.length > n.length) return !1;
|
|
301
298
|
for (const i of r) {
|
|
302
299
|
const a = t[i], o = e[i];
|
|
303
300
|
if (typeof a == "object" && typeof o == "object") {
|
|
304
|
-
if (
|
|
301
|
+
if (!Ca(a, o)) return !1;
|
|
305
302
|
} else if (a !== o) return !1;
|
|
306
303
|
}
|
|
307
304
|
return !0;
|
|
308
|
-
},
|
|
305
|
+
}, ns = (t, ...e) => {
|
|
309
306
|
if (e.length === 0) return t;
|
|
310
307
|
const n = e.shift();
|
|
311
308
|
if (qt(t) && qt(n))
|
|
312
309
|
for (const r in n)
|
|
313
310
|
try {
|
|
314
|
-
qt(n[r]) ? (r in t || Object.assign(t, { [r]: {} }),
|
|
311
|
+
qt(n[r]) ? (r in t || Object.assign(t, { [r]: {} }), ns(t[r], n[r])) : Object.assign(t, { [r]: n[r] });
|
|
315
312
|
} catch (i) {
|
|
316
313
|
throw i instanceof TypeError ? new TypeError(`.${r}: ${i.message}`) : i;
|
|
317
314
|
}
|
|
318
|
-
return
|
|
315
|
+
return ns(t, ...e);
|
|
319
316
|
}, pc = (t, e, n) => {
|
|
320
317
|
const r = (i, a, o) => {
|
|
321
318
|
for (const c in a) {
|
|
@@ -334,27 +331,27 @@ const ci = (t) => [...new Set(t)], Na = (t) => t != null && typeof t == "object"
|
|
|
334
331
|
deleteD: yc,
|
|
335
332
|
difference: gc,
|
|
336
333
|
element: uc,
|
|
337
|
-
equal:
|
|
338
|
-
get:
|
|
334
|
+
equal: ts,
|
|
335
|
+
get: js,
|
|
339
336
|
has: hc,
|
|
340
|
-
override:
|
|
337
|
+
override: ns,
|
|
341
338
|
overrideValidItems: pc,
|
|
342
|
-
partialEqual:
|
|
339
|
+
partialEqual: Ca,
|
|
343
340
|
pathsMatch: dc,
|
|
344
341
|
remove: cc,
|
|
345
342
|
set: lc,
|
|
346
|
-
transformPath:
|
|
347
|
-
}, Symbol.toStringTag, { value: "Module" })), Ra = (t) =>
|
|
343
|
+
transformPath: $a
|
|
344
|
+
}, Symbol.toStringTag, { value: "Module" })), Ra = (t) => $a(t, (e, n, r) => {
|
|
348
345
|
const i = n === r.length - 1, a = !isNaN(parseInt(e)), o = !isNaN(parseInt(r[n + 1]));
|
|
349
346
|
return a && (e = "element"), i || o ? e : [e, "shape"];
|
|
350
|
-
}),
|
|
347
|
+
}), ci = (t, e) => {
|
|
351
348
|
if (t == null) return null;
|
|
352
349
|
const n = t[e];
|
|
353
350
|
return n == null && typeof t == "object" && "sourceType" in t ? t.sourceType()[e] : n;
|
|
354
|
-
}, wc = (t, e, n) =>
|
|
355
|
-
|
|
351
|
+
}, wc = (t, e, n) => js(
|
|
352
|
+
ci(t, "shape"),
|
|
356
353
|
Ra(e),
|
|
357
|
-
{ ...n, getter:
|
|
354
|
+
{ ...n, getter: ci }
|
|
358
355
|
), bc = (t, e) => (n) => {
|
|
359
356
|
const r = e.find((i) => i.safeParse(n).success);
|
|
360
357
|
return r == null ? null : t(r.parse(n));
|
|
@@ -418,7 +415,7 @@ const Sc = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", Ba
|
|
|
418
415
|
const [r, i, a] = e.split(":");
|
|
419
416
|
let o = "00", c = "00";
|
|
420
417
|
a != null && ([o, c] = a.split("."));
|
|
421
|
-
let u = T.hours(parseInt(r ?? "00"
|
|
418
|
+
let u = T.hours(parseInt(r ?? "00")).add(T.minutes(parseInt(i ?? "00"))).add(T.seconds(parseInt(o ?? "00"))).add(T.milliseconds(parseInt(c ?? "00")));
|
|
422
419
|
return n === "local" && (u = u.add(T.utcOffset)), u.valueOf();
|
|
423
420
|
}
|
|
424
421
|
static parseDateTimeString(e, n = "UTC") {
|
|
@@ -692,10 +689,10 @@ const _ = class I {
|
|
|
692
689
|
y(this, "value"), y(this, "encodeValue", !0), typeof e == "number" && (e = Math.trunc(e.valueOf())), this.value = BigInt(e.valueOf());
|
|
693
690
|
}
|
|
694
691
|
static fromSeconds(e) {
|
|
695
|
-
return e instanceof I ? e : e instanceof
|
|
692
|
+
return e instanceof I ? e : e instanceof ui ? e.period : e instanceof W ? new I(e) : ["number", "bigint"].includes(typeof e) ? I.seconds(e) : new I(e);
|
|
696
693
|
}
|
|
697
694
|
static fromMilliseconds(e) {
|
|
698
|
-
return e instanceof I ? e : e instanceof
|
|
695
|
+
return e instanceof I ? e : e instanceof ui ? e.period : e instanceof W ? new I(e) : ["number", "bigint"].includes(typeof e) ? I.milliseconds(e) : new I(e);
|
|
699
696
|
}
|
|
700
697
|
encode() {
|
|
701
698
|
return this.value.toString();
|
|
@@ -950,7 +947,7 @@ y(St, "z", s.union([
|
|
|
950
947
|
s.instanceof(Number).transform((t) => new St(t)),
|
|
951
948
|
s.instanceof(St)
|
|
952
949
|
]));
|
|
953
|
-
let
|
|
950
|
+
let ui = St;
|
|
954
951
|
const te = class extends Number {
|
|
955
952
|
/**
|
|
956
953
|
* Creates a Density representing the given number of bytes per value.
|
|
@@ -1089,12 +1086,11 @@ const p = class Ne extends String {
|
|
|
1089
1086
|
if (e instanceof Ne || typeof e == "string" || typeof e.valueOf() == "string") {
|
|
1090
1087
|
super(e.valueOf());
|
|
1091
1088
|
return;
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
}
|
|
1089
|
+
}
|
|
1090
|
+
const n = Ne.ARRAY_CONSTRUCTOR_DATA_TYPES.get(e.constructor.name);
|
|
1091
|
+
if (n != null) {
|
|
1092
|
+
super(n.valueOf());
|
|
1093
|
+
return;
|
|
1098
1094
|
}
|
|
1099
1095
|
throw super(Ne.UNKNOWN.valueOf()), new Error(`unable to find data type for ${e.toString()}`);
|
|
1100
1096
|
}
|
|
@@ -1360,14 +1356,14 @@ const Qb = s.union([
|
|
|
1360
1356
|
]), Da = (t) => {
|
|
1361
1357
|
const e = typeof t;
|
|
1362
1358
|
return e === "string" || e === "number" || e === "boolean" || e === "bigint" || t instanceof W || t instanceof H || t instanceof Date;
|
|
1363
|
-
}, Ec = (t, e, n, r = 0) => t.usesBigInt && !e.usesBigInt ? Number(n) - Number(r) : !t.usesBigInt && e.usesBigInt ? BigInt(n.valueOf()) - BigInt(r.valueOf()) : It(n, -r).valueOf(), kc = (t) => t == null ? !1 : Array.isArray(t) || t instanceof ArrayBuffer || ArrayBuffer.isView(t) && !(t instanceof DataView) || t instanceof
|
|
1364
|
-
[Symbol.iterator]: () =>
|
|
1359
|
+
}, Ec = (t, e, n, r = 0) => t.usesBigInt && !e.usesBigInt ? Number(n) - Number(r) : !t.usesBigInt && e.usesBigInt ? BigInt(n.valueOf()) - BigInt(r.valueOf()) : It(n, -r).valueOf(), kc = (t) => t == null ? !1 : Array.isArray(t) || t instanceof ArrayBuffer || ArrayBuffer.isView(t) && !(t instanceof DataView) || t instanceof $c ? !0 : Da(t), Le = -1, rs = {
|
|
1360
|
+
[Symbol.iterator]: () => rs,
|
|
1365
1361
|
next: () => ({ done: !0, value: void 0 })
|
|
1366
1362
|
}, Ac = s.string().transform(
|
|
1367
1363
|
(t) => new Uint8Array(
|
|
1368
1364
|
atob(t).split("").map((e) => e.charCodeAt(0))
|
|
1369
1365
|
).buffer
|
|
1370
|
-
), xc = s.union([s.null(), s.undefined()]).transform(() => new Uint8Array().buffer),
|
|
1366
|
+
), xc = s.union([s.null(), s.undefined()]).transform(() => new Uint8Array().buffer), ss = 10, Nt = class Ie {
|
|
1371
1367
|
constructor(e) {
|
|
1372
1368
|
y(this, "key", ""), y(this, "isSynnaxSeries", !0), y(this, "dataType"), y(this, "sampleOffset"), y(this, "gl"), y(this, "_data"), y(this, "_timeRange"), y(this, "alignment", 0n), y(this, "_cachedMin"), y(this, "_cachedMax"), y(this, "writePos", Le), y(this, "_refCount", 0), y(this, "_cachedLength"), y(this, "_cachedIndexes"), kc(e) && (e = { data: e });
|
|
1373
1369
|
const {
|
|
@@ -1416,11 +1412,11 @@ const Qb = s.union([
|
|
|
1416
1412
|
else {
|
|
1417
1413
|
let d = h ? [u] : u;
|
|
1418
1414
|
const A = d[0];
|
|
1419
|
-
(A instanceof W || A instanceof Date || A instanceof H) && (d = d.map((D) => new W(D).valueOf())), this.dataType.equals(B.STRING) ? (this._cachedLength = d.length, this._data = new TextEncoder().encode(d.join(`
|
|
1420
|
-
`)
|
|
1415
|
+
(A instanceof W || A instanceof Date || A instanceof H) && (d = d.map((D) => new W(D).valueOf())), this.dataType.equals(B.STRING) ? (this._cachedLength = d.length, this._data = new TextEncoder().encode(`${d.join(`
|
|
1416
|
+
`)}
|
|
1421
1417
|
`)) : this.dataType.equals(B.JSON) ? (this._cachedLength = d.length, this._data = new TextEncoder().encode(
|
|
1422
|
-
d.map((D) => On.encodeString(D)).join(`
|
|
1423
|
-
`)
|
|
1418
|
+
`${d.map((D) => On.encodeString(D)).join(`
|
|
1419
|
+
`)}
|
|
1424
1420
|
`
|
|
1425
1421
|
)) : this._data = new this.dataType.Array(d).buffer;
|
|
1426
1422
|
}
|
|
@@ -1451,15 +1447,15 @@ const Qb = s.union([
|
|
|
1451
1447
|
return this._refCount;
|
|
1452
1448
|
}
|
|
1453
1449
|
static fromStrings(e, n) {
|
|
1454
|
-
const r = new TextEncoder().encode(e.join(`
|
|
1455
|
-
`)
|
|
1450
|
+
const r = new TextEncoder().encode(`${e.join(`
|
|
1451
|
+
`)}
|
|
1456
1452
|
`);
|
|
1457
1453
|
return new Ie({ data: r, dataType: B.STRING, timeRange: n });
|
|
1458
1454
|
}
|
|
1459
1455
|
static fromJSON(e, n) {
|
|
1460
1456
|
const r = new TextEncoder().encode(
|
|
1461
|
-
e.map((i) => On.encodeString(i)).join(`
|
|
1462
|
-
`)
|
|
1457
|
+
`${e.map((i) => On.encodeString(i)).join(`
|
|
1458
|
+
`)}
|
|
1463
1459
|
`
|
|
1464
1460
|
);
|
|
1465
1461
|
return new Ie({ data: r, dataType: B.JSON, timeRange: n });
|
|
@@ -1562,7 +1558,7 @@ const Qb = s.union([
|
|
|
1562
1558
|
let e = 0;
|
|
1563
1559
|
const n = [0];
|
|
1564
1560
|
return this.data.forEach((r, i) => {
|
|
1565
|
-
r ===
|
|
1561
|
+
r === ss && (e++, n.push(i + 1));
|
|
1566
1562
|
}), this._cachedIndexes = n, this._cachedLength = e, e;
|
|
1567
1563
|
}
|
|
1568
1564
|
/**
|
|
@@ -1605,12 +1601,11 @@ const Qb = s.union([
|
|
|
1605
1601
|
get max() {
|
|
1606
1602
|
if (this.dataType.isVariable)
|
|
1607
1603
|
throw new Error("cannot calculate maximum on a variable length data type");
|
|
1608
|
-
return this.writePos === 0 ? -1 / 0 : (this._cachedMax
|
|
1604
|
+
return this.writePos === 0 ? -1 / 0 : (this._cachedMax ?? (this._cachedMax = this.calcRawMax()), It(this._cachedMax, this.sampleOffset));
|
|
1609
1605
|
}
|
|
1610
1606
|
calcRawMin() {
|
|
1611
1607
|
if (this.length === 0) return 1 / 0;
|
|
1612
|
-
if (this.dataType.equals(B.TIMESTAMP))
|
|
1613
|
-
this._cachedMin = this.data[0];
|
|
1608
|
+
if (this.dataType.equals(B.TIMESTAMP)) this._cachedMin = this.data[0];
|
|
1614
1609
|
else if (this.dataType.usesBigInt) {
|
|
1615
1610
|
const e = this.data;
|
|
1616
1611
|
this._cachedMin = e.reduce((n, r) => n < r ? n : r);
|
|
@@ -1624,7 +1619,7 @@ const Qb = s.union([
|
|
|
1624
1619
|
get min() {
|
|
1625
1620
|
if (this.dataType.isVariable)
|
|
1626
1621
|
throw new Error("cannot calculate minimum on a variable length data type");
|
|
1627
|
-
return this.writePos === 0 ? 1 / 0 : (this._cachedMin
|
|
1622
|
+
return this.writePos === 0 ? 1 / 0 : (this._cachedMin ?? (this._cachedMin = this.calcRawMin()), It(this._cachedMin, this.sampleOffset));
|
|
1628
1623
|
}
|
|
1629
1624
|
/** @returns the bounds of this array. */
|
|
1630
1625
|
get bounds() {
|
|
@@ -1671,7 +1666,7 @@ const Qb = s.union([
|
|
|
1671
1666
|
else {
|
|
1672
1667
|
e < 0 && (e = this.length + e);
|
|
1673
1668
|
for (let o = 0; o < this.data.length; o++)
|
|
1674
|
-
if (this.data[o] ===
|
|
1669
|
+
if (this.data[o] === ss) {
|
|
1675
1670
|
if (e === 0) {
|
|
1676
1671
|
i = o;
|
|
1677
1672
|
break;
|
|
@@ -1775,7 +1770,7 @@ const Qb = s.union([
|
|
|
1775
1770
|
}
|
|
1776
1771
|
[Symbol.iterator]() {
|
|
1777
1772
|
if (this.dataType.isVariable) {
|
|
1778
|
-
const e = new
|
|
1773
|
+
const e = new Cc(this);
|
|
1779
1774
|
return this.dataType.equals(B.JSON) ? new Rc(e) : e;
|
|
1780
1775
|
}
|
|
1781
1776
|
return new jc(this);
|
|
@@ -1787,10 +1782,10 @@ const Qb = s.union([
|
|
|
1787
1782
|
return this.sliceSub(!0, e, n);
|
|
1788
1783
|
}
|
|
1789
1784
|
subIterator(e, n) {
|
|
1790
|
-
return new
|
|
1785
|
+
return new hi(this, e, n ?? this.length);
|
|
1791
1786
|
}
|
|
1792
1787
|
subAlignmentIterator(e, n) {
|
|
1793
|
-
return new
|
|
1788
|
+
return new hi(
|
|
1794
1789
|
this,
|
|
1795
1790
|
Number(e - this.alignment),
|
|
1796
1791
|
Number(n - this.alignment)
|
|
@@ -1838,11 +1833,11 @@ y(Nt, "crudeZ", s.object({
|
|
|
1838
1833
|
data: s.union([Ac, xc, s.instanceof(ArrayBuffer)]),
|
|
1839
1834
|
glBufferUsage: Ic.optional().default("static").optional()
|
|
1840
1835
|
})), y(Nt, "z", Nt.crudeZ.transform((t) => new Nt(t)));
|
|
1841
|
-
let
|
|
1836
|
+
let $c = Nt, hi = class {
|
|
1842
1837
|
constructor(e, n, r) {
|
|
1843
1838
|
y(this, "series"), y(this, "end"), y(this, "index"), this.series = e;
|
|
1844
1839
|
const i = Jt(0, e.length);
|
|
1845
|
-
this.end =
|
|
1840
|
+
this.end = oi(i, r), this.index = oi(i, n);
|
|
1846
1841
|
}
|
|
1847
1842
|
next() {
|
|
1848
1843
|
return this.index >= this.end ? { done: !0, value: void 0 } : { done: !1, value: this.series.at(this.index++, !0) };
|
|
@@ -1850,7 +1845,7 @@ let Cc = Nt, di = class {
|
|
|
1850
1845
|
[Symbol.iterator]() {
|
|
1851
1846
|
return this;
|
|
1852
1847
|
}
|
|
1853
|
-
},
|
|
1848
|
+
}, Cc = class {
|
|
1854
1849
|
constructor(e) {
|
|
1855
1850
|
if (y(this, "series"), y(this, "index"), y(this, "decoder"), !e.dataType.isVariable)
|
|
1856
1851
|
throw new Error(
|
|
@@ -1860,7 +1855,7 @@ let Cc = Nt, di = class {
|
|
|
1860
1855
|
}
|
|
1861
1856
|
next() {
|
|
1862
1857
|
const e = this.index, n = this.series.data;
|
|
1863
|
-
for (; this.index < n.length && n[this.index] !==
|
|
1858
|
+
for (; this.index < n.length && n[this.index] !== ss; ) this.index++;
|
|
1864
1859
|
const r = this.index;
|
|
1865
1860
|
return e === r ? { done: !0, value: void 0 } : (this.index++, { done: !1, value: this.decoder.decode(this.series.buffer.slice(e, r)) });
|
|
1866
1861
|
}
|
|
@@ -1868,10 +1863,10 @@ let Cc = Nt, di = class {
|
|
|
1868
1863
|
return this;
|
|
1869
1864
|
}
|
|
1870
1865
|
};
|
|
1871
|
-
var
|
|
1866
|
+
var di, fi;
|
|
1872
1867
|
let Rc = class {
|
|
1873
1868
|
constructor(e) {
|
|
1874
|
-
y(this, "wrapped"), y(this,
|
|
1869
|
+
y(this, "wrapped"), y(this, di, "JSONSeriesIterator"), this.wrapped = e;
|
|
1875
1870
|
}
|
|
1876
1871
|
next() {
|
|
1877
1872
|
const e = this.wrapped.next();
|
|
@@ -1880,14 +1875,14 @@ let Rc = class {
|
|
|
1880
1875
|
value: On.decodeString(e.value)
|
|
1881
1876
|
};
|
|
1882
1877
|
}
|
|
1883
|
-
[(
|
|
1878
|
+
[(fi = Symbol.iterator, di = Symbol.toStringTag, fi)]() {
|
|
1884
1879
|
return this;
|
|
1885
1880
|
}
|
|
1886
1881
|
};
|
|
1887
|
-
var
|
|
1882
|
+
var yi, gi;
|
|
1888
1883
|
let jc = class {
|
|
1889
1884
|
constructor(e) {
|
|
1890
|
-
y(this, "series"), y(this, "index"), y(this,
|
|
1885
|
+
y(this, "series"), y(this, "index"), y(this, yi, "SeriesIterator"), this.series = e, this.index = 0;
|
|
1891
1886
|
}
|
|
1892
1887
|
next() {
|
|
1893
1888
|
return this.index >= this.series.length ? { done: !0, value: void 0 } : {
|
|
@@ -1895,7 +1890,7 @@ let jc = class {
|
|
|
1895
1890
|
value: this.series.at(this.index++, !0)
|
|
1896
1891
|
};
|
|
1897
1892
|
}
|
|
1898
|
-
[(
|
|
1893
|
+
[(gi = Symbol.iterator, yi = Symbol.toStringTag, gi)]() {
|
|
1899
1894
|
return this;
|
|
1900
1895
|
}
|
|
1901
1896
|
};
|
|
@@ -1964,7 +1959,7 @@ let sv = class {
|
|
|
1964
1959
|
}
|
|
1965
1960
|
subAlignmentIterator(e, n) {
|
|
1966
1961
|
if (e >= this.alignmentBounds.upper || n <= this.alignmentBounds.lower)
|
|
1967
|
-
return
|
|
1962
|
+
return rs;
|
|
1968
1963
|
let r = 0;
|
|
1969
1964
|
for (let a = 0; a < this.series.length; a++) {
|
|
1970
1965
|
const o = this.series[a];
|
|
@@ -1988,7 +1983,7 @@ let sv = class {
|
|
|
1988
1983
|
return new xr(this, r, i);
|
|
1989
1984
|
}
|
|
1990
1985
|
subAlignmentSpanIterator(e, n) {
|
|
1991
|
-
if (e >= this.alignmentBounds.upper) return
|
|
1986
|
+
if (e >= this.alignmentBounds.upper) return rs;
|
|
1992
1987
|
let r = 0;
|
|
1993
1988
|
for (let i = 0; i < this.series.length; i++) {
|
|
1994
1989
|
const a = this.series[i];
|
|
@@ -2027,16 +2022,16 @@ let sv = class {
|
|
|
2027
2022
|
} : new Bc(this.series);
|
|
2028
2023
|
}
|
|
2029
2024
|
};
|
|
2030
|
-
var
|
|
2025
|
+
var pi, mi;
|
|
2031
2026
|
class Bc {
|
|
2032
2027
|
constructor(e) {
|
|
2033
|
-
y(this, "series"), y(this, "seriesIndex"), y(this, "internal"), y(this,
|
|
2028
|
+
y(this, "series"), y(this, "seriesIndex"), y(this, "internal"), y(this, pi, "MultiSeriesIterator"), this.series = e, this.seriesIndex = 0, this.internal = e[0][Symbol.iterator]();
|
|
2034
2029
|
}
|
|
2035
2030
|
next() {
|
|
2036
2031
|
const e = this.internal.next();
|
|
2037
2032
|
return e.done === !1 ? e : this.seriesIndex === this.series.length - 1 ? { done: !0, value: void 0 } : (this.internal = this.series[++this.seriesIndex][Symbol.iterator](), this.next());
|
|
2038
2033
|
}
|
|
2039
|
-
[(
|
|
2034
|
+
[(mi = Symbol.iterator, pi = Symbol.toStringTag, mi)]() {
|
|
2040
2035
|
return this;
|
|
2041
2036
|
}
|
|
2042
2037
|
}
|
|
@@ -2060,7 +2055,7 @@ s.record(
|
|
|
2060
2055
|
s.unknown()
|
|
2061
2056
|
);
|
|
2062
2057
|
const Pa = () => typeof process < "u" && process.versions != null && process.versions.node != null ? "node" : typeof window > "u" || window.document === void 0 ? "webworker" : "browser", Mc = Pa(), Ua = ["MacOS", "Windows", "Linux", "Docker"], Dc = s.enum(Ua);
|
|
2063
|
-
let
|
|
2058
|
+
let $r;
|
|
2064
2059
|
const Pc = () => {
|
|
2065
2060
|
if (typeof window > "u") return;
|
|
2066
2061
|
const t = window.navigator.userAgent.toLowerCase();
|
|
@@ -2069,7 +2064,7 @@ const Pc = () => {
|
|
|
2069
2064
|
if (t.includes("linux")) return "Linux";
|
|
2070
2065
|
}, Uc = (t = {}) => {
|
|
2071
2066
|
const { force: e, default: n } = t;
|
|
2072
|
-
return e ??
|
|
2067
|
+
return e ?? $r ?? ($r = Pc(), $r ?? n);
|
|
2073
2068
|
}, Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2074
2069
|
__proto__: null,
|
|
2075
2070
|
OPERATING_SYSTEMS: Ua,
|
|
@@ -2079,7 +2074,7 @@ const Pc = () => {
|
|
|
2079
2074
|
osZ: Dc
|
|
2080
2075
|
}, Symbol.toStringTag, { value: "Module" })), ov = (t) => Array.isArray(t) ? t : [t], lv = (t) => Array.isArray(t) ? t : t === null ? [] : [t];
|
|
2081
2076
|
var _c = Object.defineProperty, Yc = (t, e, n) => e in t ? _c(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Et = (t, e, n) => Yc(t, typeof e != "symbol" ? e + "" : e, n);
|
|
2082
|
-
const Fc = (...t) => t.map(La).join(""), La = (t) => (t.endsWith("/") || (t += "/"), t.startsWith("/") && (t = t.slice(1)), t), qc = (t) => t.endsWith("/") ? t.slice(0, -1) : t,
|
|
2077
|
+
const Fc = (...t) => t.map(La).join(""), La = (t) => (t.endsWith("/") || (t += "/"), t.startsWith("/") && (t = t.slice(1)), t), qc = (t) => t.endsWith("/") ? t.slice(0, -1) : t, wi = class is {
|
|
2083
2078
|
/**
|
|
2084
2079
|
* @param host - The hostname or IP address of the server.
|
|
2085
2080
|
* @param port - The port number of the server.
|
|
@@ -2095,7 +2090,7 @@ const Fc = (...t) => t.map(La).join(""), La = (t) => (t.endsWith("/") || (t += "
|
|
|
2095
2090
|
* @returns a new URL.
|
|
2096
2091
|
*/
|
|
2097
2092
|
replace(e) {
|
|
2098
|
-
return new
|
|
2093
|
+
return new is({
|
|
2099
2094
|
host: e.host ?? this.host,
|
|
2100
2095
|
port: e.port ?? this.port,
|
|
2101
2096
|
protocol: e.protocol ?? this.protocol,
|
|
@@ -2108,7 +2103,7 @@ const Fc = (...t) => t.map(La).join(""), La = (t) => (t.endsWith("/") || (t += "
|
|
|
2108
2103
|
* @returns a new URL.
|
|
2109
2104
|
*/
|
|
2110
2105
|
child(e) {
|
|
2111
|
-
return new
|
|
2106
|
+
return new is({
|
|
2112
2107
|
...this,
|
|
2113
2108
|
pathPrefix: Fc(this.path, e)
|
|
2114
2109
|
});
|
|
@@ -2120,7 +2115,7 @@ const Fc = (...t) => t.map(La).join(""), La = (t) => (t.endsWith("/") || (t += "
|
|
|
2120
2115
|
);
|
|
2121
2116
|
}
|
|
2122
2117
|
};
|
|
2123
|
-
Et(
|
|
2118
|
+
Et(wi, "UNKNOWN", new wi({ host: "unknown", port: 0 }));
|
|
2124
2119
|
var zc = Object.defineProperty, Vc = (t, e, n) => e in t ? zc(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, er = (t, e, n) => Vc(t, typeof e != "symbol" ? e + "" : e, n);
|
|
2125
2120
|
let cv = class {
|
|
2126
2121
|
constructor(e) {
|
|
@@ -2185,9 +2180,9 @@ const Ya = s.object({
|
|
|
2185
2180
|
En(Fa, "MESSAGE", "canceled");
|
|
2186
2181
|
let Xc = Fa;
|
|
2187
2182
|
new Xc();
|
|
2188
|
-
const yv = (t) => t ? -1 : 1,
|
|
2183
|
+
const yv = (t) => t ? -1 : 1, as = s.string().regex(/^\d+\.\d+\.\d+$/), rn = (t, e, n = {}) => {
|
|
2189
2184
|
n.checkMajor ?? (n.checkMajor = !0), n.checkMinor ?? (n.checkMinor = !0), n.checkPatch ?? (n.checkPatch = !0);
|
|
2190
|
-
const r =
|
|
2185
|
+
const r = as.parse(t), i = as.parse(e), [a, o, c] = r.split(".").map(Number), [u, h, f] = i.split(".").map(Number);
|
|
2191
2186
|
if (n.checkMajor) {
|
|
2192
2187
|
if (a < u) return Tn;
|
|
2193
2188
|
if (a > u) return Sn;
|
|
@@ -2221,9 +2216,9 @@ const yv = (t) => t ? -1 : 1, os = s.string().regex(/^\d+\.\d+\.\d+$/), rn = (t,
|
|
|
2221
2216
|
const a = Object.keys(e).sort(rn).pop();
|
|
2222
2217
|
if (a == null)
|
|
2223
2218
|
return (h) => {
|
|
2224
|
-
if (h.version
|
|
2219
|
+
if (h.version ?? (h.version = r), h.version !== i.version)
|
|
2225
2220
|
return console.log(
|
|
2226
|
-
`${t} version ${h.version} is newer than latest version of ${i.version}.
|
|
2221
|
+
`${t} version ${h.version} is newer than latest version of ${i.version}.
|
|
2227
2222
|
Returning default instead.
|
|
2228
2223
|
`
|
|
2229
2224
|
), i;
|
|
@@ -2270,7 +2265,7 @@ const yv = (t) => t ? -1 : 1, os = s.string().regex(/^\d+\.\d+\.\d+$/), rn = (t,
|
|
|
2270
2265
|
migrator: nu,
|
|
2271
2266
|
semVerNewer: qa,
|
|
2272
2267
|
semVerOlder: eu,
|
|
2273
|
-
semVerZ:
|
|
2268
|
+
semVerZ: as,
|
|
2274
2269
|
versionsEqual: Qc
|
|
2275
2270
|
}, Symbol.toStringTag, { value: "Module" })), pv = (t) => {
|
|
2276
2271
|
if (t === void 0 || typeof t == "string" || typeof t == "number")
|
|
@@ -2282,17 +2277,17 @@ const yv = (t) => t ? -1 : 1, os = s.string().regex(/^\d+\.\d+\.\d+$/), rn = (t,
|
|
|
2282
2277
|
value: e,
|
|
2283
2278
|
onChange: n
|
|
2284
2279
|
}) => {
|
|
2285
|
-
const [r, i] =
|
|
2280
|
+
const [r, i] = Rs(cr(e ?? t));
|
|
2286
2281
|
return e != null && n != null ? [e, n] : [r, i];
|
|
2287
2282
|
}, su = ({
|
|
2288
2283
|
initial: t,
|
|
2289
2284
|
value: e,
|
|
2290
2285
|
onChange: n
|
|
2291
2286
|
}) => {
|
|
2292
|
-
const [r, i] =
|
|
2287
|
+
const [r, i] = Rs(cr(e ?? t));
|
|
2293
2288
|
return e != null && n != null ? [e, n] : [r, i];
|
|
2294
2289
|
}, iu = (t, e) => {
|
|
2295
|
-
const [n, r] =
|
|
2290
|
+
const [n, r] = Rs(() => {
|
|
2296
2291
|
const i = localStorage.getItem(e);
|
|
2297
2292
|
return i == null ? cr(t) : JSON.parse(i);
|
|
2298
2293
|
});
|
|
@@ -2346,10 +2341,10 @@ const yv = (t) => t ? -1 : 1, os = s.string().regex(/^\d+\.\d+\.\d+$/), rn = (t,
|
|
|
2346
2341
|
p: "medium",
|
|
2347
2342
|
small: "small"
|
|
2348
2343
|
};
|
|
2349
|
-
let
|
|
2350
|
-
const uu = () => (
|
|
2344
|
+
let bi = null;
|
|
2345
|
+
const uu = () => (bi ?? (bi = document.createElement("canvas")), bi), Sv = (t, e, n) => {
|
|
2351
2346
|
if (Lc.RUNTIME === "node") return { width: 0, height: 0 };
|
|
2352
|
-
n
|
|
2347
|
+
n ?? (n = uu().getContext("2d")), n.font = e;
|
|
2353
2348
|
const r = n.measureText(t);
|
|
2354
2349
|
return {
|
|
2355
2350
|
width: Math.trunc(
|
|
@@ -2451,7 +2446,7 @@ const uu = () => ($r == null && ($r = document.createElement("canvas")), $r), Sv
|
|
|
2451
2446
|
"#050505"
|
|
2452
2447
|
], bt = Object.fromEntries(
|
|
2453
2448
|
mu.map((t, e) => [`l${e}`, t])
|
|
2454
|
-
),
|
|
2449
|
+
), os = {
|
|
2455
2450
|
key: "synnaxBase",
|
|
2456
2451
|
name: "Synnax Base",
|
|
2457
2452
|
colors: {
|
|
@@ -2562,7 +2557,7 @@ const uu = () => ($r == null && ($r = document.createElement("canvas")), $r), Sv
|
|
|
2562
2557
|
}
|
|
2563
2558
|
}
|
|
2564
2559
|
}, wu = Object.freeze({
|
|
2565
|
-
...
|
|
2560
|
+
...os,
|
|
2566
2561
|
key: "synnaxLight",
|
|
2567
2562
|
name: "Synnax Light"
|
|
2568
2563
|
}), bu = [
|
|
@@ -2580,11 +2575,11 @@ const uu = () => ($r == null && ($r = document.createElement("canvas")), $r), Sv
|
|
|
2580
2575
|
], vt = Object.fromEntries(
|
|
2581
2576
|
bu.map((t, e) => [`l${e}`, t])
|
|
2582
2577
|
), vu = Object.freeze({
|
|
2583
|
-
...
|
|
2578
|
+
...os,
|
|
2584
2579
|
key: "synnaxDark",
|
|
2585
2580
|
name: "Synnax Dark",
|
|
2586
2581
|
colors: {
|
|
2587
|
-
...
|
|
2582
|
+
...os.colors,
|
|
2588
2583
|
gray: vt,
|
|
2589
2584
|
logo: "var(--pluto-text-color)",
|
|
2590
2585
|
border: vt.l3,
|
|
@@ -2606,27 +2601,31 @@ const Au = (t) => {
|
|
|
2606
2601
|
const e = t.replace(/_[a-z]/g, (n) => n[1].toUpperCase());
|
|
2607
2602
|
return e.length > 1 && e[0] === e[0].toUpperCase() && e[1] === e[1].toUpperCase() || e.length === 0 ? e : e[0].toLowerCase() + e.slice(1);
|
|
2608
2603
|
}, Ga = (t) => {
|
|
2609
|
-
const e = (n, r =
|
|
2604
|
+
const e = (n, r = ls) => {
|
|
2610
2605
|
if (typeof n == "string") return t(n);
|
|
2611
2606
|
if (Array.isArray(n)) return n.map((o) => e(o, r));
|
|
2612
|
-
if (!
|
|
2613
|
-
r =
|
|
2607
|
+
if (!Cr(n)) return n;
|
|
2608
|
+
r = Cu(r);
|
|
2614
2609
|
const i = {}, a = n;
|
|
2615
2610
|
return Object.keys(a).forEach((o) => {
|
|
2616
2611
|
let c = a[o];
|
|
2617
2612
|
const u = t(o);
|
|
2618
|
-
r.recursive && (
|
|
2613
|
+
r.recursive && (Cr(c) ? Oi(c, r.keepTypesOnRecursion) || (c = e(c, r)) : r.recursiveInArray && vi(c) && (c = [...c].map((h) => {
|
|
2619
2614
|
let f = h;
|
|
2620
|
-
return
|
|
2615
|
+
return Cr(h) ? Oi(f, r.keepTypesOnRecursion) || (f = e(h, r)) : vi(h) && (f = e({ key: h }, r).key), f;
|
|
2621
2616
|
}))), i[u] = c;
|
|
2622
2617
|
}), i;
|
|
2623
2618
|
};
|
|
2624
2619
|
return e;
|
|
2625
|
-
}, Za = Ga(Au), xu = (t) =>
|
|
2620
|
+
}, Za = Ga(Au), xu = (t) => (
|
|
2621
|
+
// Don't convert the first character and don't convert a character that is after a
|
|
2622
|
+
// non-alphanumeric character
|
|
2623
|
+
t.replace(/([a-z0-9])([A-Z])/g, (e, n, r) => `${n}_${r.toLowerCase()}`)
|
|
2624
|
+
), $u = Ga(xu), ls = {
|
|
2626
2625
|
recursive: !0,
|
|
2627
2626
|
recursiveInArray: !0,
|
|
2628
2627
|
keepTypesOnRecursion: [Number, String, Uint8Array]
|
|
2629
|
-
},
|
|
2628
|
+
}, Cu = (t = ls) => (t.recursive == null ? t = ls : t.recursiveInArray ?? (t.recursiveInArray = !1), t), vi = (t) => t != null && Array.isArray(t), Cr = (t) => t != null && typeof t == "object" && !Array.isArray(t), Oi = (t, e) => (e || []).some((n) => t instanceof n), Ja = (t) => t != null && typeof t == "object" && !Array.isArray(t);
|
|
2630
2629
|
var Ru = Object.defineProperty, ju = (t, e, n) => e in t ? Ru(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Vt = (t, e, n) => ju(t, typeof e != "symbol" ? e + "" : e, n);
|
|
2631
2630
|
let Bu = class {
|
|
2632
2631
|
constructor() {
|
|
@@ -2643,7 +2642,7 @@ let Bu = class {
|
|
|
2643
2642
|
return e != null ? e.parse(r) : r;
|
|
2644
2643
|
}
|
|
2645
2644
|
encodeString(t) {
|
|
2646
|
-
const e =
|
|
2645
|
+
const e = $u(t);
|
|
2647
2646
|
return JSON.stringify(e, (n, r) => ArrayBuffer.isView(r) ? Array.from(r) : Ja(r) && "encode_value" in r ? typeof r.value == "bigint" ? r.value.toString() : r.value : typeof r == "bigint" ? r.toString() : r);
|
|
2648
2647
|
}
|
|
2649
2648
|
static registerCustomType() {
|
|
@@ -2776,7 +2775,7 @@ s.object({
|
|
|
2776
2775
|
two: tr,
|
|
2777
2776
|
root: Ku
|
|
2778
2777
|
});
|
|
2779
|
-
const
|
|
2778
|
+
const Bs = (t, e, n = 0, r = 0, i) => {
|
|
2780
2779
|
const a = {
|
|
2781
2780
|
one: { ...Ei },
|
|
2782
2781
|
two: { ...Ei },
|
|
@@ -2794,11 +2793,11 @@ const Ms = (t, e, n = 0, r = 0, i) => {
|
|
|
2794
2793
|
x: a.one.x + e.signedWidth,
|
|
2795
2794
|
y: a.one.y + e.signedHeight
|
|
2796
2795
|
} : a.two = e, a));
|
|
2797
|
-
},
|
|
2798
|
-
const e =
|
|
2796
|
+
}, Rr = (t) => {
|
|
2797
|
+
const e = Bs(t);
|
|
2799
2798
|
return { lower: e.one.x, upper: e.two.x };
|
|
2800
|
-
},
|
|
2801
|
-
const e =
|
|
2799
|
+
}, jr = (t) => {
|
|
2800
|
+
const e = Bs(t);
|
|
2802
2801
|
return { lower: e.one.y, upper: e.two.y };
|
|
2803
2802
|
}, eh = (t) => typeof t != "object" || t == null ? !1 : "one" in t && "two" in t && "root" in t;
|
|
2804
2803
|
var th = Object.defineProperty, nh = (t, e, n) => e in t ? th(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, De = (t, e, n) => nh(t, typeof e != "symbol" ? e + "" : e, n);
|
|
@@ -2824,7 +2823,7 @@ const sh = (t) => (e, n, r, i) => n === "dimension" ? [e, r] : [
|
|
|
2824
2823
|
}, ch = (t) => (e, n, r) => {
|
|
2825
2824
|
const { lower: i, upper: a } = t;
|
|
2826
2825
|
return r = rh(r, i, a), [e, r];
|
|
2827
|
-
},
|
|
2826
|
+
}, cs = class At {
|
|
2828
2827
|
constructor() {
|
|
2829
2828
|
De(this, "ops", []), De(this, "currBounds", null), De(this, "currType", null), De(this, "reversed", !1), this.ops = [];
|
|
2830
2829
|
}
|
|
@@ -2916,8 +2915,8 @@ const sh = (t) => (e, n, r, i) => n === "dimension" ? [e, r] : [
|
|
|
2916
2915
|
}), e.reversed = !e.reversed, e;
|
|
2917
2916
|
}
|
|
2918
2917
|
};
|
|
2919
|
-
De(
|
|
2920
|
-
let ki =
|
|
2918
|
+
De(cs, "IDENTITY", new cs());
|
|
2919
|
+
let ki = cs;
|
|
2921
2920
|
const Ai = class Be {
|
|
2922
2921
|
constructor(e = new ki(), n = new ki(), r = null) {
|
|
2923
2922
|
De(this, "x"), De(this, "y"), De(this, "currRoot"), this.x = e, this.y = n, this.currRoot = r;
|
|
@@ -2963,17 +2962,17 @@ const Ai = class Be {
|
|
|
2963
2962
|
const n = this.copy();
|
|
2964
2963
|
if (eh(e)) {
|
|
2965
2964
|
const r = this.currRoot;
|
|
2966
|
-
return n.currRoot = e.root, r != null && !Xu(r, e.root) && (r.x !== e.root.x && (n.x = n.x.invert()), r.y !== e.root.y && (n.y = n.y.invert())), n.x = n.x.scale(
|
|
2965
|
+
return n.currRoot = e.root, r != null && !Xu(r, e.root) && (r.x !== e.root.x && (n.x = n.x.invert()), r.y !== e.root.y && (n.y = n.y.invert())), n.x = n.x.scale(Rr(e)), n.y = n.y.scale(jr(e)), n;
|
|
2967
2966
|
}
|
|
2968
2967
|
return n.x = n.x.scale(e.width), n.y = n.y.scale(e.height), n;
|
|
2969
2968
|
}
|
|
2970
2969
|
reBound(e) {
|
|
2971
2970
|
const n = this.copy();
|
|
2972
|
-
return n.x = this.x.reBound(
|
|
2971
|
+
return n.x = this.x.reBound(Rr(e)), n.y = this.y.reBound(jr(e)), n;
|
|
2973
2972
|
}
|
|
2974
2973
|
clamp(e) {
|
|
2975
2974
|
const n = this.copy();
|
|
2976
|
-
return n.x = this.x.clamp(
|
|
2975
|
+
return n.x = this.x.clamp(Rr(e)), n.y = this.y.clamp(jr(e)), n;
|
|
2977
2976
|
}
|
|
2978
2977
|
copy() {
|
|
2979
2978
|
const e = new Be();
|
|
@@ -2987,7 +2986,7 @@ const Ai = class Be {
|
|
|
2987
2986
|
return { x: this.x.pos(e.x), y: this.y.pos(e.y) };
|
|
2988
2987
|
}
|
|
2989
2988
|
box(e) {
|
|
2990
|
-
return
|
|
2989
|
+
return Bs(
|
|
2991
2990
|
this.pos(e.one),
|
|
2992
2991
|
this.pos(e.two),
|
|
2993
2992
|
0,
|
|
@@ -3076,7 +3075,7 @@ const wh = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", bh
|
|
|
3076
3075
|
const [r, i, a] = e.split(":");
|
|
3077
3076
|
let o = "00", c = "00";
|
|
3078
3077
|
a != null && ([o, c] = a.split("."));
|
|
3079
|
-
let u = S.hours(parseInt(r ?? "00"
|
|
3078
|
+
let u = S.hours(parseInt(r ?? "00")).add(S.minutes(parseInt(i ?? "00"))).add(S.seconds(parseInt(o ?? "00"))).add(S.milliseconds(parseInt(c ?? "00")));
|
|
3080
3079
|
return n === "local" && (u = u.add(S.utcOffset)), u.valueOf();
|
|
3081
3080
|
}
|
|
3082
3081
|
static parseDateTimeString(e, n = "UTC") {
|
|
@@ -3163,7 +3162,7 @@ const wh = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", bh
|
|
|
3163
3162
|
* valid, regardless of the TimeStamp order.
|
|
3164
3163
|
*/
|
|
3165
3164
|
range(e) {
|
|
3166
|
-
return new
|
|
3165
|
+
return new Ms(this, e).makeValid();
|
|
3167
3166
|
}
|
|
3168
3167
|
/**
|
|
3169
3168
|
* Creates a TimeRange starting at the TimeStamp and spanning the given
|
|
@@ -3624,7 +3623,7 @@ const ne = class extends Number {
|
|
|
3624
3623
|
return e.valueOf() / this.valueOf();
|
|
3625
3624
|
}
|
|
3626
3625
|
size(e) {
|
|
3627
|
-
return new
|
|
3626
|
+
return new us(e * this.valueOf());
|
|
3628
3627
|
}
|
|
3629
3628
|
};
|
|
3630
3629
|
b(ne, "UNKNOWN", new ne(0)), /** 128 bits per value. */
|
|
@@ -3741,18 +3740,17 @@ b(Ee, "z", s.union([
|
|
|
3741
3740
|
s.object({ start: G.z, end: G.z }).transform((t) => new Ee(t.start, t.end)),
|
|
3742
3741
|
s.instanceof(Ee)
|
|
3743
3742
|
]));
|
|
3744
|
-
let
|
|
3743
|
+
let Ms = Ee;
|
|
3745
3744
|
const m = class ke extends String {
|
|
3746
3745
|
constructor(e) {
|
|
3747
3746
|
if (e instanceof ke || typeof e == "string" || typeof e.valueOf() == "string") {
|
|
3748
3747
|
super(e.valueOf());
|
|
3749
3748
|
return;
|
|
3750
|
-
}
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
}
|
|
3749
|
+
}
|
|
3750
|
+
const n = ke.ARRAY_CONSTRUCTOR_DATA_TYPES.get(e.constructor.name);
|
|
3751
|
+
if (n != null) {
|
|
3752
|
+
super(n.valueOf());
|
|
3753
|
+
return;
|
|
3756
3754
|
}
|
|
3757
3755
|
throw super(ke.UNKNOWN.valueOf()), new Error(`unable to find data type for ${e.toString()}`);
|
|
3758
3756
|
}
|
|
@@ -4003,7 +4001,7 @@ b(ae, "z", s.union([
|
|
|
4003
4001
|
s.number().transform((t) => new ae(t)),
|
|
4004
4002
|
s.instanceof(ae)
|
|
4005
4003
|
]));
|
|
4006
|
-
let
|
|
4004
|
+
let us = ae;
|
|
4007
4005
|
s.union([
|
|
4008
4006
|
s.instanceof(Uint8Array),
|
|
4009
4007
|
s.instanceof(Uint16Array),
|
|
@@ -4019,11 +4017,11 @@ s.union([
|
|
|
4019
4017
|
const so = (t) => {
|
|
4020
4018
|
const e = typeof t;
|
|
4021
4019
|
return e === "string" || e === "number" || e === "boolean" || e === "bigint" || t instanceof G || t instanceof X || t instanceof Date;
|
|
4022
|
-
}, Oh = (t, e, n, r = 0) => t.usesBigInt && !e.usesBigInt ? Number(n) - Number(r) : !t.usesBigInt && e.usesBigInt ? BigInt(n.valueOf()) - BigInt(r.valueOf()) :
|
|
4020
|
+
}, Oh = (t, e, n, r = 0) => t.usesBigInt && !e.usesBigInt ? Number(n) - Number(r) : !t.usesBigInt && e.usesBigInt ? BigInt(n.valueOf()) - BigInt(r.valueOf()) : Ct(n, -r).valueOf(), Th = (t) => t == null ? !1 : Array.isArray(t) || t instanceof ArrayBuffer || ArrayBuffer.isView(t) && !(t instanceof DataView) || t instanceof Ih ? !0 : so(t), _e = -1, Sh = s.string().transform(
|
|
4023
4021
|
(t) => new Uint8Array(
|
|
4024
4022
|
atob(t).split("").map((e) => e.charCodeAt(0))
|
|
4025
4023
|
).buffer
|
|
4026
|
-
), Nh = s.union([s.null(), s.undefined()]).transform(() => new Uint8Array().buffer),
|
|
4024
|
+
), Nh = s.union([s.null(), s.undefined()]).transform(() => new Uint8Array().buffer), hs = 10, $t = class Ae {
|
|
4027
4025
|
constructor(e) {
|
|
4028
4026
|
b(this, "key", ""), b(this, "isSynnaxSeries", !0), b(this, "dataType"), b(this, "sampleOffset"), b(this, "gl"), b(this, "_data"), b(this, "_timeRange"), b(this, "alignment", 0n), b(this, "_cachedMin"), b(this, "_cachedMax"), b(this, "writePos", _e), b(this, "_refCount", 0), b(this, "_cachedLength"), b(this, "_cachedIndexes"), Th(e) && (e = { data: e });
|
|
4029
4027
|
const {
|
|
@@ -4072,11 +4070,11 @@ const so = (t) => {
|
|
|
4072
4070
|
else {
|
|
4073
4071
|
let d = h ? [u] : u;
|
|
4074
4072
|
const A = d[0];
|
|
4075
|
-
(A instanceof G || A instanceof Date || A instanceof X) && (d = d.map((D) => new G(D).valueOf())), this.dataType.equals(q.STRING) ? (this._cachedLength = d.length, this._data = new TextEncoder().encode(d.join(`
|
|
4076
|
-
`)
|
|
4073
|
+
(A instanceof G || A instanceof Date || A instanceof X) && (d = d.map((D) => new G(D).valueOf())), this.dataType.equals(q.STRING) ? (this._cachedLength = d.length, this._data = new TextEncoder().encode(`${d.join(`
|
|
4074
|
+
`)}
|
|
4077
4075
|
`)) : this.dataType.equals(q.JSON) ? (this._cachedLength = d.length, this._data = new TextEncoder().encode(
|
|
4078
|
-
d.map((D) => kn.encodeString(D)).join(`
|
|
4079
|
-
`)
|
|
4076
|
+
`${d.map((D) => kn.encodeString(D)).join(`
|
|
4077
|
+
`)}
|
|
4080
4078
|
`
|
|
4081
4079
|
)) : this._data = new this.dataType.Array(d).buffer;
|
|
4082
4080
|
}
|
|
@@ -4107,15 +4105,15 @@ const so = (t) => {
|
|
|
4107
4105
|
return this._refCount;
|
|
4108
4106
|
}
|
|
4109
4107
|
static fromStrings(e, n) {
|
|
4110
|
-
const r = new TextEncoder().encode(e.join(`
|
|
4111
|
-
`)
|
|
4108
|
+
const r = new TextEncoder().encode(`${e.join(`
|
|
4109
|
+
`)}
|
|
4112
4110
|
`);
|
|
4113
4111
|
return new Ae({ data: r, dataType: q.STRING, timeRange: n });
|
|
4114
4112
|
}
|
|
4115
4113
|
static fromJSON(e, n) {
|
|
4116
4114
|
const r = new TextEncoder().encode(
|
|
4117
|
-
e.map((i) => kn.encodeString(i)).join(`
|
|
4118
|
-
`)
|
|
4115
|
+
`${e.map((i) => kn.encodeString(i)).join(`
|
|
4116
|
+
`)}
|
|
4119
4117
|
`
|
|
4120
4118
|
);
|
|
4121
4119
|
return new Ae({ data: r, dataType: q.JSON, timeRange: n });
|
|
@@ -4198,7 +4196,7 @@ const so = (t) => {
|
|
|
4198
4196
|
}
|
|
4199
4197
|
/** @returns the capacity of the series in bytes. */
|
|
4200
4198
|
get byteCapacity() {
|
|
4201
|
-
return new
|
|
4199
|
+
return new us(this.underlyingData.byteLength);
|
|
4202
4200
|
}
|
|
4203
4201
|
/** @returns the capacity of the series in samples. */
|
|
4204
4202
|
get capacity() {
|
|
@@ -4206,7 +4204,7 @@ const so = (t) => {
|
|
|
4206
4204
|
}
|
|
4207
4205
|
/** @returns the length of the series in bytes. */
|
|
4208
4206
|
get byteLength() {
|
|
4209
|
-
return this.writePos === _e ? this.byteCapacity : this.dataType.isVariable ? new
|
|
4207
|
+
return this.writePos === _e ? this.byteCapacity : this.dataType.isVariable ? new us(this.writePos) : this.dataType.density.size(this.writePos);
|
|
4210
4208
|
}
|
|
4211
4209
|
/** @returns the number of samples in this array. */
|
|
4212
4210
|
get length() {
|
|
@@ -4218,7 +4216,7 @@ const so = (t) => {
|
|
|
4218
4216
|
let e = 0;
|
|
4219
4217
|
const n = [0];
|
|
4220
4218
|
return this.data.forEach((r, i) => {
|
|
4221
|
-
r ===
|
|
4219
|
+
r === hs && (e++, n.push(i + 1));
|
|
4222
4220
|
}), this._cachedIndexes = n, this._cachedLength = e, e;
|
|
4223
4221
|
}
|
|
4224
4222
|
/**
|
|
@@ -4261,12 +4259,11 @@ const so = (t) => {
|
|
|
4261
4259
|
get max() {
|
|
4262
4260
|
if (this.dataType.isVariable)
|
|
4263
4261
|
throw new Error("cannot calculate maximum on a variable length data type");
|
|
4264
|
-
return this.writePos === 0 ? -1 / 0 : (this._cachedMax
|
|
4262
|
+
return this.writePos === 0 ? -1 / 0 : (this._cachedMax ?? (this._cachedMax = this.calcRawMax()), Ct(this._cachedMax, this.sampleOffset));
|
|
4265
4263
|
}
|
|
4266
4264
|
calcRawMin() {
|
|
4267
4265
|
if (this.length === 0) return 1 / 0;
|
|
4268
|
-
if (this.dataType.equals(q.TIMESTAMP))
|
|
4269
|
-
this._cachedMin = this.data[0];
|
|
4266
|
+
if (this.dataType.equals(q.TIMESTAMP)) this._cachedMin = this.data[0];
|
|
4270
4267
|
else if (this.dataType.usesBigInt) {
|
|
4271
4268
|
const e = this.data;
|
|
4272
4269
|
this._cachedMin = e.reduce((n, r) => n < r ? n : r);
|
|
@@ -4280,7 +4277,7 @@ const so = (t) => {
|
|
|
4280
4277
|
get min() {
|
|
4281
4278
|
if (this.dataType.isVariable)
|
|
4282
4279
|
throw new Error("cannot calculate minimum on a variable length data type");
|
|
4283
|
-
return this.writePos === 0 ? 1 / 0 : (this._cachedMin
|
|
4280
|
+
return this.writePos === 0 ? 1 / 0 : (this._cachedMin ?? (this._cachedMin = this.calcRawMin()), Ct(this._cachedMin, this.sampleOffset));
|
|
4284
4281
|
}
|
|
4285
4282
|
/** @returns the bounds of this array. */
|
|
4286
4283
|
get bounds() {
|
|
@@ -4300,7 +4297,7 @@ const so = (t) => {
|
|
|
4300
4297
|
this.max, this.min;
|
|
4301
4298
|
}
|
|
4302
4299
|
get range() {
|
|
4303
|
-
return
|
|
4300
|
+
return Ct(this.max, -this.min);
|
|
4304
4301
|
}
|
|
4305
4302
|
atAlignment(e, n) {
|
|
4306
4303
|
const r = Number(e - this.alignment);
|
|
@@ -4318,7 +4315,7 @@ const so = (t) => {
|
|
|
4318
4315
|
if (n === !0) throw new Error(`[series] - no value at index ${e}`);
|
|
4319
4316
|
return;
|
|
4320
4317
|
}
|
|
4321
|
-
return
|
|
4318
|
+
return Ct(r, this.sampleOffset);
|
|
4322
4319
|
}
|
|
4323
4320
|
atVariable(e, n) {
|
|
4324
4321
|
let r = 0, i = 0;
|
|
@@ -4327,7 +4324,7 @@ const so = (t) => {
|
|
|
4327
4324
|
else {
|
|
4328
4325
|
e < 0 && (e = this.length + e);
|
|
4329
4326
|
for (let o = 0; o < this.data.length; o++)
|
|
4330
|
-
if (this.data[o] ===
|
|
4327
|
+
if (this.data[o] === hs) {
|
|
4331
4328
|
if (e === 0) {
|
|
4332
4329
|
i = o;
|
|
4333
4330
|
break;
|
|
@@ -4443,10 +4440,10 @@ const so = (t) => {
|
|
|
4443
4440
|
return this.sliceSub(!0, e, n);
|
|
4444
4441
|
}
|
|
4445
4442
|
subIterator(e, n) {
|
|
4446
|
-
return new
|
|
4443
|
+
return new $i(this, e, n ?? this.length);
|
|
4447
4444
|
}
|
|
4448
4445
|
subAlignmentIterator(e, n) {
|
|
4449
|
-
return new
|
|
4446
|
+
return new $i(
|
|
4450
4447
|
this,
|
|
4451
4448
|
Number(e - this.alignment),
|
|
4452
4449
|
Number(n - this.alignment)
|
|
@@ -4480,22 +4477,22 @@ const so = (t) => {
|
|
|
4480
4477
|
return new Ae({
|
|
4481
4478
|
data: this.buffer,
|
|
4482
4479
|
dataType: this.dataType,
|
|
4483
|
-
timeRange:
|
|
4480
|
+
timeRange: Ms.ZERO,
|
|
4484
4481
|
sampleOffset: this.sampleOffset,
|
|
4485
4482
|
glBufferUsage: "static",
|
|
4486
4483
|
alignment: e
|
|
4487
4484
|
});
|
|
4488
4485
|
}
|
|
4489
4486
|
};
|
|
4490
|
-
b(
|
|
4491
|
-
timeRange:
|
|
4487
|
+
b($t, "crudeZ", s.object({
|
|
4488
|
+
timeRange: Ms.z.optional(),
|
|
4492
4489
|
dataType: q.z,
|
|
4493
4490
|
alignment: yh.optional(),
|
|
4494
4491
|
data: s.union([Sh, Nh, s.instanceof(ArrayBuffer)]),
|
|
4495
4492
|
glBufferUsage: vh.optional().default("static").optional()
|
|
4496
|
-
})), b(
|
|
4497
|
-
let Ih =
|
|
4498
|
-
class
|
|
4493
|
+
})), b($t, "z", $t.crudeZ.transform((t) => new $t(t)));
|
|
4494
|
+
let Ih = $t;
|
|
4495
|
+
class $i {
|
|
4499
4496
|
constructor(e, n, r) {
|
|
4500
4497
|
b(this, "series"), b(this, "end"), b(this, "index"), this.series = e;
|
|
4501
4498
|
const i = Xe(0, e.length);
|
|
@@ -4518,7 +4515,7 @@ class Eh {
|
|
|
4518
4515
|
}
|
|
4519
4516
|
next() {
|
|
4520
4517
|
const e = this.index, n = this.series.data;
|
|
4521
|
-
for (; this.index < n.length && n[this.index] !==
|
|
4518
|
+
for (; this.index < n.length && n[this.index] !== hs; ) this.index++;
|
|
4522
4519
|
const r = this.index;
|
|
4523
4520
|
return e === r ? { done: !0, value: void 0 } : (this.index++, { done: !1, value: this.decoder.decode(this.series.buffer.slice(e, r)) });
|
|
4524
4521
|
}
|
|
@@ -4526,10 +4523,10 @@ class Eh {
|
|
|
4526
4523
|
return this;
|
|
4527
4524
|
}
|
|
4528
4525
|
}
|
|
4529
|
-
var
|
|
4526
|
+
var Ci, Ri;
|
|
4530
4527
|
class kh {
|
|
4531
4528
|
constructor(e) {
|
|
4532
|
-
b(this, "wrapped"), b(this,
|
|
4529
|
+
b(this, "wrapped"), b(this, Ci, "JSONSeriesIterator"), this.wrapped = e;
|
|
4533
4530
|
}
|
|
4534
4531
|
next() {
|
|
4535
4532
|
const e = this.wrapped.next();
|
|
@@ -4538,7 +4535,7 @@ class kh {
|
|
|
4538
4535
|
value: kn.decodeString(e.value)
|
|
4539
4536
|
};
|
|
4540
4537
|
}
|
|
4541
|
-
[(Ri = Symbol.iterator,
|
|
4538
|
+
[(Ri = Symbol.iterator, Ci = Symbol.toStringTag, Ri)]() {
|
|
4542
4539
|
return this;
|
|
4543
4540
|
}
|
|
4544
4541
|
}
|
|
@@ -4557,7 +4554,7 @@ class Ah {
|
|
|
4557
4554
|
return this;
|
|
4558
4555
|
}
|
|
4559
4556
|
}
|
|
4560
|
-
const
|
|
4557
|
+
const Ct = (t, e) => typeof t == "bigint" && typeof e == "bigint" || typeof t == "number" && typeof e == "number" ? t + e : e === 0 ? t : t === 0 ? e : Number(t) + Number(e);
|
|
4561
4558
|
s.object({
|
|
4562
4559
|
key: s.string(),
|
|
4563
4560
|
value: s.string()
|
|
@@ -4566,9 +4563,9 @@ s.record(
|
|
|
4566
4563
|
s.union([s.number(), s.string(), s.symbol()]),
|
|
4567
4564
|
s.unknown()
|
|
4568
4565
|
);
|
|
4569
|
-
const io = () => typeof process < "u" && process.versions != null && process.versions.node != null ? "node" : typeof window > "u" || window.document === void 0 ? "webworker" : "browser", xh = io(), ao = ["MacOS", "Windows", "Linux", "Docker"],
|
|
4570
|
-
let
|
|
4571
|
-
const
|
|
4566
|
+
const io = () => typeof process < "u" && process.versions != null && process.versions.node != null ? "node" : typeof window > "u" || window.document === void 0 ? "webworker" : "browser", xh = io(), ao = ["MacOS", "Windows", "Linux", "Docker"], $h = s.enum(ao);
|
|
4567
|
+
let Br;
|
|
4568
|
+
const Ch = () => {
|
|
4572
4569
|
if (typeof window > "u") return;
|
|
4573
4570
|
const t = window.navigator.userAgent.toLowerCase();
|
|
4574
4571
|
if (t.includes("mac")) return "MacOS";
|
|
@@ -4576,17 +4573,17 @@ const $h = () => {
|
|
|
4576
4573
|
if (t.includes("linux")) return "Linux";
|
|
4577
4574
|
}, Rh = (t = {}) => {
|
|
4578
4575
|
const { force: e, default: n } = t;
|
|
4579
|
-
return e ??
|
|
4576
|
+
return e ?? Br ?? (Br = Ch(), Br ?? n);
|
|
4580
4577
|
}, oo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4581
4578
|
__proto__: null,
|
|
4582
4579
|
OPERATING_SYSTEMS: ao,
|
|
4583
4580
|
RUNTIME: xh,
|
|
4584
4581
|
detect: io,
|
|
4585
4582
|
getOS: Rh,
|
|
4586
|
-
osZ:
|
|
4583
|
+
osZ: $h
|
|
4587
4584
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4588
4585
|
var jh = Object.defineProperty, Bh = (t, e, n) => e in t ? jh(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Rt = (t, e, n) => Bh(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4589
|
-
const Mh = (...t) => t.map(lo).join(""), lo = (t) => (t.endsWith("/") || (t += "/"), t.startsWith("/") && (t = t.slice(1)), t), Dh = (t) => t.endsWith("/") ? t.slice(0, -1) : t, Ph = (t, e = "") => t === null ? "" :
|
|
4586
|
+
const Mh = (...t) => t.map(lo).join(""), lo = (t) => (t.endsWith("/") || (t += "/"), t.startsWith("/") && (t = t.slice(1)), t), Dh = (t) => t.endsWith("/") ? t.slice(0, -1) : t, Ph = (t, e = "") => t === null ? "" : `?${Object.entries(t).filter(([, n]) => n == null ? !1 : Array.isArray(n) ? n.length > 0 : !0).map(([n, r]) => `${e}${n}=${r}`).join("&")}`, ds = class fs {
|
|
4590
4587
|
/**
|
|
4591
4588
|
* @param host - The hostname or IP address of the server.
|
|
4592
4589
|
* @param port - The port number of the server.
|
|
@@ -4602,7 +4599,7 @@ const Mh = (...t) => t.map(lo).join(""), lo = (t) => (t.endsWith("/") || (t += "
|
|
|
4602
4599
|
* @returns a new URL.
|
|
4603
4600
|
*/
|
|
4604
4601
|
replace(e) {
|
|
4605
|
-
return new
|
|
4602
|
+
return new fs({
|
|
4606
4603
|
host: e.host ?? this.host,
|
|
4607
4604
|
port: e.port ?? this.port,
|
|
4608
4605
|
protocol: e.protocol ?? this.protocol,
|
|
@@ -4615,7 +4612,7 @@ const Mh = (...t) => t.map(lo).join(""), lo = (t) => (t.endsWith("/") || (t += "
|
|
|
4615
4612
|
* @returns a new URL.
|
|
4616
4613
|
*/
|
|
4617
4614
|
child(e) {
|
|
4618
|
-
return new
|
|
4615
|
+
return new fs({
|
|
4619
4616
|
...this,
|
|
4620
4617
|
pathPrefix: Mh(this.path, e)
|
|
4621
4618
|
});
|
|
@@ -4627,12 +4624,12 @@ const Mh = (...t) => t.map(lo).join(""), lo = (t) => (t.endsWith("/") || (t += "
|
|
|
4627
4624
|
);
|
|
4628
4625
|
}
|
|
4629
4626
|
};
|
|
4630
|
-
Rt(
|
|
4631
|
-
let Uh =
|
|
4632
|
-
var Lh = Object.defineProperty, _h = (t, e, n) => e in t ? Lh(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n,
|
|
4627
|
+
Rt(ds, "UNKNOWN", new ds({ host: "unknown", port: 0 }));
|
|
4628
|
+
let Uh = ds;
|
|
4629
|
+
var Lh = Object.defineProperty, _h = (t, e, n) => e in t ? Lh(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, $n = (t, e, n) => _h(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4633
4630
|
const rt = class extends Number {
|
|
4634
4631
|
};
|
|
4635
|
-
|
|
4632
|
+
$n(rt, "Absolute", 255), $n(rt, "Default", 1), $n(rt, "z", s.union([
|
|
4636
4633
|
s.instanceof(rt),
|
|
4637
4634
|
s.number().int().min(0).max(255).transform((t) => new rt(t)),
|
|
4638
4635
|
s.instanceof(Number).transform((t) => new rt(t))
|
|
@@ -4650,14 +4647,14 @@ const co = class jt extends Error {
|
|
|
4650
4647
|
return typeof e == "string" ? e.includes(jt.MESSAGE) : e instanceof jt || e.message.includes(jt.MESSAGE);
|
|
4651
4648
|
}
|
|
4652
4649
|
};
|
|
4653
|
-
|
|
4650
|
+
$n(co, "MESSAGE", "canceled");
|
|
4654
4651
|
let Yh = co;
|
|
4655
4652
|
new Yh();
|
|
4656
4653
|
s.string().regex(/^\d+\.\d+\.\d+$/);
|
|
4657
4654
|
const fe = (t) => (e) => e != null && typeof e == "object" && "type" in e && typeof e.type == "string" ? e.type.includes(t) : e instanceof Error ? e.message.includes(t) : typeof e != "string" ? !1 : e.includes(t);
|
|
4658
4655
|
let Te = class extends Error {
|
|
4659
|
-
constructor(
|
|
4660
|
-
super(
|
|
4656
|
+
constructor() {
|
|
4657
|
+
super(...arguments), M(this, "discriminator", "FreighterError"), M(this, "type", "");
|
|
4661
4658
|
}
|
|
4662
4659
|
};
|
|
4663
4660
|
const Fh = (t) => {
|
|
@@ -4699,25 +4696,25 @@ class zh {
|
|
|
4699
4696
|
const uo = new zh(), ho = ({
|
|
4700
4697
|
encode: t,
|
|
4701
4698
|
decode: e
|
|
4702
|
-
}) => uo.register({ encode: t, decode: e }),
|
|
4699
|
+
}) => uo.register({ encode: t, decode: e }), Ds = (t) => uo.decode(t);
|
|
4703
4700
|
class Pi extends Te {
|
|
4704
|
-
constructor(
|
|
4705
|
-
super(
|
|
4701
|
+
constructor() {
|
|
4702
|
+
super(...arguments), M(this, "type", "unknown");
|
|
4706
4703
|
}
|
|
4707
4704
|
}
|
|
4708
|
-
const hr = "freighter.",
|
|
4705
|
+
const hr = "freighter.", Cn = class fo extends Te {
|
|
4709
4706
|
constructor() {
|
|
4710
4707
|
super("EOF"), M(this, "type", fo.TYPE);
|
|
4711
4708
|
}
|
|
4712
4709
|
};
|
|
4713
|
-
M(
|
|
4714
|
-
let qe =
|
|
4710
|
+
M(Cn, "TYPE", `${hr}eof`), M(Cn, "matches", fe(Cn.TYPE));
|
|
4711
|
+
let qe = Cn;
|
|
4715
4712
|
const Rn = class yo extends Te {
|
|
4716
4713
|
constructor() {
|
|
4717
4714
|
super("StreamClosed"), M(this, "type", yo.TYPE);
|
|
4718
4715
|
}
|
|
4719
4716
|
};
|
|
4720
|
-
M(Rn, "TYPE", hr
|
|
4717
|
+
M(Rn, "TYPE", `${hr}stream_closed`), M(Rn, "matches", fe(Rn.TYPE));
|
|
4721
4718
|
let ot = Rn;
|
|
4722
4719
|
const jn = class go extends Te {
|
|
4723
4720
|
constructor(e = {}) {
|
|
@@ -4725,7 +4722,7 @@ const jn = class go extends Te {
|
|
|
4725
4722
|
super(n), M(this, "type", go.TYPE), M(this, "url"), this.url = r;
|
|
4726
4723
|
}
|
|
4727
4724
|
};
|
|
4728
|
-
M(jn, "TYPE", hr
|
|
4725
|
+
M(jn, "TYPE", `${hr}unreachable`), M(jn, "matches", fe(jn.TYPE));
|
|
4729
4726
|
let Qe = jn;
|
|
4730
4727
|
const Vh = (t) => {
|
|
4731
4728
|
if (!t.type.startsWith(qh)) return null;
|
|
@@ -4827,7 +4824,7 @@ class Gh extends po {
|
|
|
4827
4824
|
return i != null && (a = this.encoder.decode(A, i)), [f, null];
|
|
4828
4825
|
try {
|
|
4829
4826
|
if (d.status !== 400) return [f, new Error(d.statusText)];
|
|
4830
|
-
const D = this.encoder.decode(A, sn), se =
|
|
4827
|
+
const D = this.encoder.decode(A, sn), se = Ds(D);
|
|
4831
4828
|
return [f, se];
|
|
4832
4829
|
} catch (D) {
|
|
4833
4830
|
return [
|
|
@@ -4867,7 +4864,7 @@ class Kh {
|
|
|
4867
4864
|
const e = await this.receiveMsg();
|
|
4868
4865
|
if (e.type === "close") {
|
|
4869
4866
|
if (e.error == null) throw new Error("Message error must be defined");
|
|
4870
|
-
return this.serverClosed =
|
|
4867
|
+
return this.serverClosed = Ds(e.error), [null, this.serverClosed];
|
|
4871
4868
|
}
|
|
4872
4869
|
return [this.resSchema.parse(e.payload), null];
|
|
4873
4870
|
}
|
|
@@ -4949,7 +4946,7 @@ const Hh = "freighterctx", Xh = 1e3, Qh = 1001, ed = [Xh, Qh], td = (t) => ed.in
|
|
|
4949
4946
|
};
|
|
4950
4947
|
M(wo, "MESSAGE_TYPE", "arraybuffer");
|
|
4951
4948
|
let nd = wo;
|
|
4952
|
-
const
|
|
4949
|
+
const ys = s.union([
|
|
4953
4950
|
s.literal("all"),
|
|
4954
4951
|
s.literal("create"),
|
|
4955
4952
|
s.literal("delete"),
|
|
@@ -4959,27 +4956,31 @@ const gs = s.union([
|
|
|
4959
4956
|
const e = t.replace(/_[a-z]/g, (n) => n[1].toUpperCase());
|
|
4960
4957
|
return e.length > 1 && e[0] === e[0].toUpperCase() && e[1] === e[1].toUpperCase() || e.length === 0 ? e : e[0].toLowerCase() + e.slice(1);
|
|
4961
4958
|
}, vo = (t) => {
|
|
4962
|
-
const e = (n, r =
|
|
4959
|
+
const e = (n, r = gs) => {
|
|
4963
4960
|
if (typeof n == "string") return t(n);
|
|
4964
4961
|
if (Array.isArray(n)) return n.map((o) => e(o, r));
|
|
4965
|
-
if (!
|
|
4962
|
+
if (!Mr(n)) return n;
|
|
4966
4963
|
r = ad(r);
|
|
4967
4964
|
const i = {}, a = n;
|
|
4968
4965
|
return Object.keys(a).forEach((o) => {
|
|
4969
4966
|
let c = a[o];
|
|
4970
4967
|
const u = t(o);
|
|
4971
|
-
r.recursive && (
|
|
4968
|
+
r.recursive && (Mr(c) ? _i(c, r.keepTypesOnRecursion) || (c = e(c, r)) : r.recursiveInArray && Li(c) && (c = [...c].map((h) => {
|
|
4972
4969
|
let f = h;
|
|
4973
|
-
return
|
|
4970
|
+
return Mr(h) ? _i(f, r.keepTypesOnRecursion) || (f = e(h, r)) : Li(h) && (f = e({ key: h }, r).key), f;
|
|
4974
4971
|
}))), i[u] = c;
|
|
4975
4972
|
}), i;
|
|
4976
4973
|
};
|
|
4977
4974
|
return e;
|
|
4978
|
-
}, Oo = vo(rd), sd = (t) =>
|
|
4975
|
+
}, Oo = vo(rd), sd = (t) => (
|
|
4976
|
+
// Don't convert the first character and don't convert a character that is after a
|
|
4977
|
+
// non-alphanumeric character
|
|
4978
|
+
t.replace(/([a-z0-9])([A-Z])/g, (e, n, r) => `${n}_${r.toLowerCase()}`)
|
|
4979
|
+
), id = vo(sd), gs = {
|
|
4979
4980
|
recursive: !0,
|
|
4980
4981
|
recursiveInArray: !0,
|
|
4981
4982
|
keepTypesOnRecursion: [Number, String, Uint8Array]
|
|
4982
|
-
}, ad = (t =
|
|
4983
|
+
}, ad = (t = gs) => (t.recursive == null ? t = gs : t.recursiveInArray ?? (t.recursiveInArray = !1), t), Li = (t) => t != null && Array.isArray(t), Mr = (t) => t != null && typeof t == "object" && !Array.isArray(t), _i = (t, e) => (e || []).some((n) => t instanceof n), Ps = (t) => t != null && typeof t == "object" && !Array.isArray(t);
|
|
4983
4984
|
var od = Object.defineProperty, ld = (t, e, n) => e in t ? od(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Wt = (t, e, n) => ld(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4984
4985
|
let To = class {
|
|
4985
4986
|
constructor() {
|
|
@@ -4997,7 +4998,7 @@ let To = class {
|
|
|
4997
4998
|
}
|
|
4998
4999
|
encodeString(t) {
|
|
4999
5000
|
const e = id(t);
|
|
5000
|
-
return JSON.stringify(e, (n, r) => ArrayBuffer.isView(r) ? Array.from(r) :
|
|
5001
|
+
return JSON.stringify(e, (n, r) => ArrayBuffer.isView(r) ? Array.from(r) : Ps(r) && "encode_value" in r ? typeof r.value == "bigint" ? r.value.toString() : r.value : typeof r == "bigint" ? r.toString() : r);
|
|
5001
5002
|
}
|
|
5002
5003
|
static registerCustomType() {
|
|
5003
5004
|
}
|
|
@@ -5014,7 +5015,7 @@ let To = class {
|
|
|
5014
5015
|
return this.decodeString(n, e);
|
|
5015
5016
|
}
|
|
5016
5017
|
encodeString(t) {
|
|
5017
|
-
if (!Array.isArray(t) || t.length === 0 || !
|
|
5018
|
+
if (!Array.isArray(t) || t.length === 0 || !Ps(t[0]))
|
|
5018
5019
|
throw new Error("Payload must be an array of objects");
|
|
5019
5020
|
const e = Object.keys(t[0]), n = [e.join(",")];
|
|
5020
5021
|
return t.forEach((r) => {
|
|
@@ -5078,16 +5079,16 @@ const yd = ["start", "center", "end"], gd = ["signedWidth", "signedHeight"];
|
|
|
5078
5079
|
s.enum(gd);
|
|
5079
5080
|
const nr = s.object({ x: s.number(), y: s.number() }), pd = s.object({ clientX: s.number(), clientY: s.number() }), md = ["x", "y"], Eo = s.enum(md), ko = ["top", "right", "bottom", "left"];
|
|
5080
5081
|
s.enum(ko);
|
|
5081
|
-
const wd = ["left", "right"], Ao = s.enum(wd), bd = ["top", "bottom"], xo = s.enum(bd),
|
|
5082
|
+
const wd = ["left", "right"], Ao = s.enum(wd), bd = ["top", "bottom"], xo = s.enum(bd), $o = ["center"], Yi = s.enum($o), vd = [...ko, ...$o], Co = s.enum(vd);
|
|
5082
5083
|
s.enum(yd);
|
|
5083
5084
|
const Od = ["first", "last"];
|
|
5084
5085
|
s.enum(Od);
|
|
5085
5086
|
const Td = s.object({ lower: s.number(), upper: s.number() }), Sd = s.object({ lower: s.bigint(), upper: s.bigint() });
|
|
5086
5087
|
s.union([Td, dr]);
|
|
5087
5088
|
s.union([Sd, dr]);
|
|
5088
|
-
s.union([Eo,
|
|
5089
|
-
s.union([Eo,
|
|
5090
|
-
const yt = (t) => typeof t == "bigint" || t instanceof BigInt,
|
|
5089
|
+
s.union([Eo, Co]);
|
|
5090
|
+
s.union([Eo, Co, s.instanceof(String)]);
|
|
5091
|
+
const yt = (t) => typeof t == "bigint" || t instanceof BigInt, Dr = (t, e) => yt(t) ? t.valueOf() - BigInt(e.valueOf().valueOf()) : t.valueOf() - Number(e.valueOf()), Nd = (t, e) => yt(t) ? t.valueOf() + BigInt(e.valueOf().valueOf()) : t + Number(e.valueOf()), Fi = (t, e) => yt(t) ? t === BigInt(e.valueOf().valueOf()) : t === Number(e.valueOf()), Id = (t, e) => yt(t) ? t.valueOf() < BigInt(e.valueOf()) ? t : BigInt(e.valueOf()) : t.valueOf() < Number(e.valueOf()) ? t : Number(e.valueOf()), Ed = (t) => yt(t) || t instanceof BigInt ? t.valueOf() < 0n ? -t : t : t.valueOf() < 0 ? -t : t, st = (t, e) => yt(t) ? t.valueOf() * BigInt(e.valueOf()) : t.valueOf() * Number(e.valueOf()), de = (t, e) => {
|
|
5091
5092
|
const n = {};
|
|
5092
5093
|
if (typeof t == "number" || typeof t == "bigint")
|
|
5093
5094
|
e != null ? (n.lower = t, n.upper = e) : (n.lower = typeof t == "bigint" ? 0n : 0, n.upper = t);
|
|
@@ -5114,12 +5115,12 @@ const yt = (t) => typeof t == "bigint" || t instanceof BigInt, Pr = (t, e) => yt
|
|
|
5114
5115
|
if (c !== -1) {
|
|
5115
5116
|
const u = r[c];
|
|
5116
5117
|
let h;
|
|
5117
|
-
if (i > 0 ? h =
|
|
5118
|
+
if (i > 0 ? h = Dr(u.upper, o) : h = Dr(o, u.lower), h > 0) {
|
|
5118
5119
|
const f = Id(Ed(a), h);
|
|
5119
5120
|
if (o = Nd(
|
|
5120
5121
|
o,
|
|
5121
5122
|
i > 0 ? f : -f
|
|
5122
|
-
), a =
|
|
5123
|
+
), a = Dr(a, i > 0 ? f : -f), Fi(a, 0)) return o;
|
|
5123
5124
|
continue;
|
|
5124
5125
|
}
|
|
5125
5126
|
}
|
|
@@ -5153,7 +5154,7 @@ s.object({
|
|
|
5153
5154
|
x: Ao.or(Yi),
|
|
5154
5155
|
y: xo.or(Yi)
|
|
5155
5156
|
});
|
|
5156
|
-
const xd = s.object({ x: Ao, y: xo }),
|
|
5157
|
+
const xd = s.object({ x: Ao, y: xo }), $d = Object.freeze({ x: "left", y: "top" }), Cd = (t, e) => t.x === e.x && t.y === e.y, Vi = s.union([
|
|
5157
5158
|
s.number(),
|
|
5158
5159
|
nr,
|
|
5159
5160
|
dr,
|
|
@@ -5184,11 +5185,11 @@ s.object({
|
|
|
5184
5185
|
two: nr,
|
|
5185
5186
|
root: xd
|
|
5186
5187
|
});
|
|
5187
|
-
const
|
|
5188
|
+
const Us = (t, e, n = 0, r = 0, i) => {
|
|
5188
5189
|
const a = {
|
|
5189
5190
|
one: { ...Wi },
|
|
5190
5191
|
two: { ...Wi },
|
|
5191
|
-
root: i ??
|
|
5192
|
+
root: i ?? $d
|
|
5192
5193
|
};
|
|
5193
5194
|
if (typeof t == "number") {
|
|
5194
5195
|
if (typeof e != "number")
|
|
@@ -5202,11 +5203,11 @@ const Ls = (t, e, n = 0, r = 0, i) => {
|
|
|
5202
5203
|
x: a.one.x + e.signedWidth,
|
|
5203
5204
|
y: a.one.y + e.signedHeight
|
|
5204
5205
|
} : a.two = e, a));
|
|
5205
|
-
},
|
|
5206
|
-
const e =
|
|
5206
|
+
}, Pr = (t) => {
|
|
5207
|
+
const e = Us(t);
|
|
5207
5208
|
return { lower: e.one.x, upper: e.two.x };
|
|
5208
|
-
},
|
|
5209
|
-
const e =
|
|
5209
|
+
}, Ur = (t) => {
|
|
5210
|
+
const e = Us(t);
|
|
5210
5211
|
return { lower: e.one.y, upper: e.two.y };
|
|
5211
5212
|
}, jd = (t) => typeof t != "object" || t == null ? !1 : "one" in t && "two" in t && "root" in t;
|
|
5212
5213
|
var Bd = Object.defineProperty, Md = (t, e, n) => e in t ? Bd(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Pe = (t, e, n) => Md(t, typeof e != "symbol" ? e + "" : e, n);
|
|
@@ -5232,7 +5233,7 @@ const Pd = (t) => (e, n, r, i) => n === "dimension" ? [e, r] : [
|
|
|
5232
5233
|
}, Fd = (t) => (e, n, r) => {
|
|
5233
5234
|
const { lower: i, upper: a } = t;
|
|
5234
5235
|
return r = Dd(r, i, a), [e, r];
|
|
5235
|
-
},
|
|
5236
|
+
}, ps = class Bt {
|
|
5236
5237
|
constructor() {
|
|
5237
5238
|
Pe(this, "ops", []), Pe(this, "currBounds", null), Pe(this, "currType", null), Pe(this, "reversed", !1), this.ops = [];
|
|
5238
5239
|
}
|
|
@@ -5324,8 +5325,8 @@ const Pd = (t) => (e, n, r, i) => n === "dimension" ? [e, r] : [
|
|
|
5324
5325
|
}), e.reversed = !e.reversed, e;
|
|
5325
5326
|
}
|
|
5326
5327
|
};
|
|
5327
|
-
Pe(
|
|
5328
|
-
let Gi =
|
|
5328
|
+
Pe(ps, "IDENTITY", new ps());
|
|
5329
|
+
let Gi = ps;
|
|
5329
5330
|
const Zi = class Me {
|
|
5330
5331
|
constructor(e = new Gi(), n = new Gi(), r = null) {
|
|
5331
5332
|
Pe(this, "x"), Pe(this, "y"), Pe(this, "currRoot"), this.x = e, this.y = n, this.currRoot = r;
|
|
@@ -5371,17 +5372,17 @@ const Zi = class Me {
|
|
|
5371
5372
|
const n = this.copy();
|
|
5372
5373
|
if (jd(e)) {
|
|
5373
5374
|
const r = this.currRoot;
|
|
5374
|
-
return n.currRoot = e.root, r != null &&
|
|
5375
|
+
return n.currRoot = e.root, r != null && !Cd(r, e.root) && (r.x !== e.root.x && (n.x = n.x.invert()), r.y !== e.root.y && (n.y = n.y.invert())), n.x = n.x.scale(Pr(e)), n.y = n.y.scale(Ur(e)), n;
|
|
5375
5376
|
}
|
|
5376
5377
|
return n.x = n.x.scale(e.width), n.y = n.y.scale(e.height), n;
|
|
5377
5378
|
}
|
|
5378
5379
|
reBound(e) {
|
|
5379
5380
|
const n = this.copy();
|
|
5380
|
-
return n.x = this.x.reBound(
|
|
5381
|
+
return n.x = this.x.reBound(Pr(e)), n.y = this.y.reBound(Ur(e)), n;
|
|
5381
5382
|
}
|
|
5382
5383
|
clamp(e) {
|
|
5383
5384
|
const n = this.copy();
|
|
5384
|
-
return n.x = this.x.clamp(
|
|
5385
|
+
return n.x = this.x.clamp(Pr(e)), n.y = this.y.clamp(Ur(e)), n;
|
|
5385
5386
|
}
|
|
5386
5387
|
copy() {
|
|
5387
5388
|
const e = new Me();
|
|
@@ -5395,7 +5396,7 @@ const Zi = class Me {
|
|
|
5395
5396
|
return { x: this.x.pos(e.x), y: this.y.pos(e.y) };
|
|
5396
5397
|
}
|
|
5397
5398
|
box(e) {
|
|
5398
|
-
return
|
|
5399
|
+
return Us(
|
|
5399
5400
|
this.pos(e.one),
|
|
5400
5401
|
this.pos(e.two),
|
|
5401
5402
|
0,
|
|
@@ -5431,7 +5432,7 @@ const Ji = (t) => [...new Set(t)], qd = (t) => t != null && typeof t == "object"
|
|
|
5431
5432
|
return console.warn(`sortFunc: unknown type ${n}`), () => -1;
|
|
5432
5433
|
}
|
|
5433
5434
|
return e ? Vd(r) : r;
|
|
5434
|
-
}, Vd = (t) => (e, n) => t(n, e), fr = 0,
|
|
5435
|
+
}, Vd = (t) => (e, n) => t(n, e), fr = 0, Lr = -1, _r = 1, Wd = (t) => t < fr, Gd = (t) => t > fr, Zd = (t) => t === fr, Jd = (t, e) => {
|
|
5435
5436
|
let n = null;
|
|
5436
5437
|
return e === 0 ? t : (...r) => {
|
|
5437
5438
|
n !== null && (clearTimeout(n), n = null), n = setTimeout(() => t(...r), e);
|
|
@@ -5450,7 +5451,7 @@ const tf = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", Ro
|
|
|
5450
5451
|
__proto__: null,
|
|
5451
5452
|
id: Ro
|
|
5452
5453
|
}, Symbol.toStringTag, { value: "Module" })), rf = s.enum(["static", "dynamic"]), jo = (t, e) => {
|
|
5453
|
-
const n = new
|
|
5454
|
+
const n = new $(e);
|
|
5454
5455
|
if (![
|
|
5455
5456
|
R.DAY,
|
|
5456
5457
|
R.HOUR,
|
|
@@ -5464,7 +5465,7 @@ const tf = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", Ro
|
|
|
5464
5465
|
"Invalid argument for remainder. Must be an even TimeSpan or Timestamp"
|
|
5465
5466
|
);
|
|
5466
5467
|
const r = t.valueOf() % n.valueOf();
|
|
5467
|
-
return t instanceof
|
|
5468
|
+
return t instanceof $ ? new $(r) : new R(r);
|
|
5468
5469
|
}, z = class N {
|
|
5469
5470
|
constructor(e, n = "UTC") {
|
|
5470
5471
|
if (g(this, "value"), g(this, "encodeValue", !0), e == null) this.value = N.now().valueOf();
|
|
@@ -5492,7 +5493,7 @@ const tf = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", Ro
|
|
|
5492
5493
|
const [r, i, a] = e.split(":");
|
|
5493
5494
|
let o = "00", c = "00";
|
|
5494
5495
|
a != null && ([o, c] = a.split("."));
|
|
5495
|
-
let u = N.hours(parseInt(r ?? "00"
|
|
5496
|
+
let u = N.hours(parseInt(r ?? "00")).add(N.minutes(parseInt(i ?? "00"))).add(N.seconds(parseInt(o ?? "00"))).add(N.milliseconds(parseInt(c ?? "00")));
|
|
5496
5497
|
return n === "local" && (u = u.add(N.utcOffset)), u.valueOf();
|
|
5497
5498
|
}
|
|
5498
5499
|
static parseDateTimeString(e, n = "UTC") {
|
|
@@ -5760,16 +5761,16 @@ g(z, "z", s.union([
|
|
|
5760
5761
|
s.number().transform((t) => new z(t)),
|
|
5761
5762
|
s.instanceof(z)
|
|
5762
5763
|
]));
|
|
5763
|
-
let
|
|
5764
|
+
let $ = z;
|
|
5764
5765
|
const V = class k {
|
|
5765
5766
|
constructor(e) {
|
|
5766
5767
|
g(this, "value"), g(this, "encodeValue", !0), typeof e == "number" && (e = Math.trunc(e.valueOf())), this.value = BigInt(e.valueOf());
|
|
5767
5768
|
}
|
|
5768
5769
|
static fromSeconds(e) {
|
|
5769
|
-
return e instanceof k ? e : e instanceof Ht ? e.period : e instanceof
|
|
5770
|
+
return e instanceof k ? e : e instanceof Ht ? e.period : e instanceof $ ? new k(e) : ["number", "bigint"].includes(typeof e) ? k.seconds(e) : new k(e);
|
|
5770
5771
|
}
|
|
5771
5772
|
static fromMilliseconds(e) {
|
|
5772
|
-
return e instanceof k ? e : e instanceof Ht ? e.period : e instanceof
|
|
5773
|
+
return e instanceof k ? e : e instanceof Ht ? e.period : e instanceof $ ? new k(e) : ["number", "bigint"].includes(typeof e) ? k.milliseconds(e) : new k(e);
|
|
5773
5774
|
}
|
|
5774
5775
|
encode() {
|
|
5775
5776
|
return this.value.toString();
|
|
@@ -6063,7 +6064,7 @@ const xe = class Mn {
|
|
|
6063
6064
|
* @param end - A TimeStamp representing the end of the range.
|
|
6064
6065
|
*/
|
|
6065
6066
|
constructor(e, n) {
|
|
6066
|
-
g(this, "start"), g(this, "end"), typeof e == "object" && "start" in e ? (this.start = new
|
|
6067
|
+
g(this, "start"), g(this, "end"), typeof e == "object" && "start" in e ? (this.start = new $(e.start), this.end = new $(e.end)) : (this.start = new $(e), this.end = new $(n));
|
|
6067
6068
|
}
|
|
6068
6069
|
/** @returns The TimeSpan occupied by the TimeRange. */
|
|
6069
6070
|
get span() {
|
|
@@ -6135,7 +6136,7 @@ const xe = class Mn {
|
|
|
6135
6136
|
const r = this.makeValid();
|
|
6136
6137
|
if (this.equals(e)) return !0;
|
|
6137
6138
|
if (e.end.equals(r.start) || r.end.equals(e.start)) return !1;
|
|
6138
|
-
const i =
|
|
6139
|
+
const i = $.max(r.start, e.start), a = $.min(r.end, e.end);
|
|
6139
6140
|
return a.before(i) ? !1 : new R(a.sub(i)).greaterThanOrEqual(n);
|
|
6140
6141
|
}
|
|
6141
6142
|
roughlyEquals(e, n) {
|
|
@@ -6150,33 +6151,32 @@ const xe = class Mn {
|
|
|
6150
6151
|
return e.start.after(this.start) && (n.start = e.start), e.start.after(this.end) && (n.end = e.start), e.end.before(this.end) && (n.end = e.end), e.end.before(this.start) && (n.start = e.end), n;
|
|
6151
6152
|
}
|
|
6152
6153
|
};
|
|
6153
|
-
g(xe, "MAX", new xe(
|
|
6154
|
-
g(xe, "MIN", new xe(
|
|
6155
|
-
g(xe, "ZERO", new xe(
|
|
6154
|
+
g(xe, "MAX", new xe($.MIN, $.MAX)), /** The minimum possible time range. */
|
|
6155
|
+
g(xe, "MIN", new xe($.MAX, $.MIN)), /** A zero time range. */
|
|
6156
|
+
g(xe, "ZERO", new xe($.ZERO, $.ZERO)), /** A zod schema for validating and transforming time ranges */
|
|
6156
6157
|
g(xe, "z", s.union([
|
|
6157
|
-
s.object({ start:
|
|
6158
|
+
s.object({ start: $.z, end: $.z }).transform((t) => new xe(t.start, t.end)),
|
|
6158
6159
|
s.instanceof(xe)
|
|
6159
6160
|
]));
|
|
6160
6161
|
let le = xe;
|
|
6161
|
-
const w = class
|
|
6162
|
+
const w = class $e extends String {
|
|
6162
6163
|
constructor(e) {
|
|
6163
|
-
if (e instanceof
|
|
6164
|
+
if (e instanceof $e || typeof e == "string" || typeof e.valueOf() == "string") {
|
|
6164
6165
|
super(e.valueOf());
|
|
6165
6166
|
return;
|
|
6166
|
-
} else {
|
|
6167
|
-
const n = Ce.ARRAY_CONSTRUCTOR_DATA_TYPES.get(e.constructor.name);
|
|
6168
|
-
if (n != null) {
|
|
6169
|
-
super(n.valueOf());
|
|
6170
|
-
return;
|
|
6171
|
-
}
|
|
6172
6167
|
}
|
|
6173
|
-
|
|
6168
|
+
const n = $e.ARRAY_CONSTRUCTOR_DATA_TYPES.get(e.constructor.name);
|
|
6169
|
+
if (n != null) {
|
|
6170
|
+
super(n.valueOf());
|
|
6171
|
+
return;
|
|
6172
|
+
}
|
|
6173
|
+
throw super($e.UNKNOWN.valueOf()), new Error(`unable to find data type for ${e.toString()}`);
|
|
6174
6174
|
}
|
|
6175
6175
|
/**
|
|
6176
6176
|
* @returns the TypedArray constructor for the DataType.
|
|
6177
6177
|
*/
|
|
6178
6178
|
get Array() {
|
|
6179
|
-
const e =
|
|
6179
|
+
const e = $e.ARRAY_CONSTRUCTORS.get(this.toString());
|
|
6180
6180
|
if (e == null)
|
|
6181
6181
|
throw new Error(`unable to find array constructor for ${this.valueOf()}`);
|
|
6182
6182
|
return e;
|
|
@@ -6198,10 +6198,10 @@ const w = class Ce extends String {
|
|
|
6198
6198
|
return this.valueOf();
|
|
6199
6199
|
}
|
|
6200
6200
|
get isVariable() {
|
|
6201
|
-
return this.equals(
|
|
6201
|
+
return this.equals($e.JSON) || this.equals($e.STRING);
|
|
6202
6202
|
}
|
|
6203
6203
|
get isNumeric() {
|
|
6204
|
-
return !this.isVariable && !this.equals(
|
|
6204
|
+
return !this.isVariable && !this.equals($e.UUID);
|
|
6205
6205
|
}
|
|
6206
6206
|
get isInteger() {
|
|
6207
6207
|
return this.toString().startsWith("int");
|
|
@@ -6210,7 +6210,7 @@ const w = class Ce extends String {
|
|
|
6210
6210
|
return this.toString().startsWith("float");
|
|
6211
6211
|
}
|
|
6212
6212
|
get density() {
|
|
6213
|
-
const e =
|
|
6213
|
+
const e = $e.DENSITIES.get(this.toString());
|
|
6214
6214
|
if (e == null) throw new Error(`unable to find density for ${this.valueOf()}`);
|
|
6215
6215
|
return e;
|
|
6216
6216
|
}
|
|
@@ -6235,7 +6235,7 @@ const w = class Ce extends String {
|
|
|
6235
6235
|
return this.toString();
|
|
6236
6236
|
}
|
|
6237
6237
|
get usesBigInt() {
|
|
6238
|
-
return
|
|
6238
|
+
return $e.BIG_INT_TYPES.some((e) => e.equals(this));
|
|
6239
6239
|
}
|
|
6240
6240
|
};
|
|
6241
6241
|
g(w, "UNKNOWN", new w("unknown")), /** Represents a 64-bit floating point value. */
|
|
@@ -6434,15 +6434,15 @@ s.union([
|
|
|
6434
6434
|
]);
|
|
6435
6435
|
const Bo = (t) => {
|
|
6436
6436
|
const e = typeof t;
|
|
6437
|
-
return e === "string" || e === "number" || e === "boolean" || e === "bigint" || t instanceof
|
|
6438
|
-
}, sf = (t, e, n, r = 0) => t.usesBigInt && !e.usesBigInt ? Number(n) - Number(r) : !t.usesBigInt && e.usesBigInt ? BigInt(n.valueOf()) - BigInt(r.valueOf()) : Pt(n, -r).valueOf(), af = (t) => t == null ? !1 : Array.isArray(t) || t instanceof ArrayBuffer || ArrayBuffer.isView(t) && !(t instanceof DataView) || t instanceof Ke ? !0 : Bo(t), Ye = -1,
|
|
6439
|
-
[Symbol.iterator]: () =>
|
|
6437
|
+
return e === "string" || e === "number" || e === "boolean" || e === "bigint" || t instanceof $ || t instanceof R || t instanceof Date;
|
|
6438
|
+
}, sf = (t, e, n, r = 0) => t.usesBigInt && !e.usesBigInt ? Number(n) - Number(r) : !t.usesBigInt && e.usesBigInt ? BigInt(n.valueOf()) - BigInt(r.valueOf()) : Pt(n, -r).valueOf(), af = (t) => t == null ? !1 : Array.isArray(t) || t instanceof ArrayBuffer || ArrayBuffer.isView(t) && !(t instanceof DataView) || t instanceof Ke ? !0 : Bo(t), Ye = -1, ms = {
|
|
6439
|
+
[Symbol.iterator]: () => ms,
|
|
6440
6440
|
next: () => ({ done: !0, value: void 0 })
|
|
6441
6441
|
}, of = s.string().transform(
|
|
6442
6442
|
(t) => new Uint8Array(
|
|
6443
6443
|
atob(t).split("").map((e) => e.charCodeAt(0))
|
|
6444
6444
|
).buffer
|
|
6445
|
-
), lf = s.union([s.null(), s.undefined()]).transform(() => new Uint8Array().buffer),
|
|
6445
|
+
), lf = s.union([s.null(), s.undefined()]).transform(() => new Uint8Array().buffer), ws = 10, Dt = class Ce {
|
|
6446
6446
|
constructor(e) {
|
|
6447
6447
|
g(this, "key", ""), g(this, "isSynnaxSeries", !0), g(this, "dataType"), g(this, "sampleOffset"), g(this, "gl"), g(this, "_data"), g(this, "_timeRange"), g(this, "alignment", 0n), g(this, "_cachedMin"), g(this, "_cachedMax"), g(this, "writePos", Ye), g(this, "_refCount", 0), g(this, "_cachedLength"), g(this, "_cachedIndexes"), af(e) && (e = { data: e });
|
|
6448
6448
|
const {
|
|
@@ -6453,7 +6453,7 @@ const Bo = (t) => {
|
|
|
6453
6453
|
alignment: o = 0n,
|
|
6454
6454
|
key: c = Ro()
|
|
6455
6455
|
} = e, u = e.data ?? [];
|
|
6456
|
-
if (u instanceof
|
|
6456
|
+
if (u instanceof Ce || typeof u == "object" && "isSynnaxSeries" in u && u.isSynnaxSeries === !0) {
|
|
6457
6457
|
const d = u;
|
|
6458
6458
|
this.key = d.key, this.dataType = d.dataType, this.sampleOffset = d.sampleOffset, this.gl = d.gl, this._data = d._data, this._timeRange = d._timeRange, this.alignment = d.alignment, this._cachedMin = d._cachedMin, this._cachedMax = d._cachedMax, this.writePos = d.writePos, this._refCount = d._refCount, this._cachedLength = d._cachedLength;
|
|
6459
6459
|
return;
|
|
@@ -6478,7 +6478,7 @@ const Bo = (t) => {
|
|
|
6478
6478
|
else if (typeof d == "number") this.dataType = x.FLOAT64;
|
|
6479
6479
|
else if (typeof d == "bigint") this.dataType = x.INT64;
|
|
6480
6480
|
else if (typeof d == "boolean") this.dataType = x.BOOLEAN;
|
|
6481
|
-
else if (d instanceof
|
|
6481
|
+
else if (d instanceof $ || d instanceof Date || d instanceof $)
|
|
6482
6482
|
this.dataType = x.TIMESTAMP;
|
|
6483
6483
|
else if (typeof d == "object") this.dataType = x.JSON;
|
|
6484
6484
|
else
|
|
@@ -6491,11 +6491,11 @@ const Bo = (t) => {
|
|
|
6491
6491
|
else {
|
|
6492
6492
|
let d = h ? [u] : u;
|
|
6493
6493
|
const A = d[0];
|
|
6494
|
-
(A instanceof
|
|
6495
|
-
`)
|
|
6494
|
+
(A instanceof $ || A instanceof Date || A instanceof R) && (d = d.map((D) => new $(D).valueOf())), this.dataType.equals(x.STRING) ? (this._cachedLength = d.length, this._data = new TextEncoder().encode(`${d.join(`
|
|
6495
|
+
`)}
|
|
6496
6496
|
`)) : this.dataType.equals(x.JSON) ? (this._cachedLength = d.length, this._data = new TextEncoder().encode(
|
|
6497
|
-
d.map((D) => at.encodeString(D)).join(`
|
|
6498
|
-
`)
|
|
6497
|
+
`${d.map((D) => at.encodeString(D)).join(`
|
|
6498
|
+
`)}
|
|
6499
6499
|
`
|
|
6500
6500
|
)) : this._data = new this.dataType.Array(d).buffer;
|
|
6501
6501
|
}
|
|
@@ -6509,7 +6509,7 @@ const Bo = (t) => {
|
|
|
6509
6509
|
static alloc({ capacity: e, dataType: n, ...r }) {
|
|
6510
6510
|
if (e === 0)
|
|
6511
6511
|
throw new Error("[Series] - cannot allocate an array of length 0");
|
|
6512
|
-
const i = new new x(n).Array(e), a = new
|
|
6512
|
+
const i = new new x(n).Array(e), a = new Ce({
|
|
6513
6513
|
data: i.buffer,
|
|
6514
6514
|
dataType: n,
|
|
6515
6515
|
...r
|
|
@@ -6520,24 +6520,24 @@ const Bo = (t) => {
|
|
|
6520
6520
|
const i = r.spanRange(n.span(e)), a = new BigInt64Array(e);
|
|
6521
6521
|
for (let o = 0; o < e; o++)
|
|
6522
6522
|
a[o] = BigInt(r.add(n.span(o)).valueOf());
|
|
6523
|
-
return new
|
|
6523
|
+
return new Ce({ data: a, dataType: x.TIMESTAMP, timeRange: i });
|
|
6524
6524
|
}
|
|
6525
6525
|
get refCount() {
|
|
6526
6526
|
return this._refCount;
|
|
6527
6527
|
}
|
|
6528
6528
|
static fromStrings(e, n) {
|
|
6529
|
-
const r = new TextEncoder().encode(e.join(`
|
|
6530
|
-
`)
|
|
6529
|
+
const r = new TextEncoder().encode(`${e.join(`
|
|
6530
|
+
`)}
|
|
6531
6531
|
`);
|
|
6532
|
-
return new
|
|
6532
|
+
return new Ce({ data: r, dataType: x.STRING, timeRange: n });
|
|
6533
6533
|
}
|
|
6534
6534
|
static fromJSON(e, n) {
|
|
6535
6535
|
const r = new TextEncoder().encode(
|
|
6536
|
-
e.map((i) => at.encodeString(i)).join(`
|
|
6537
|
-
`)
|
|
6536
|
+
`${e.map((i) => at.encodeString(i)).join(`
|
|
6537
|
+
`)}
|
|
6538
6538
|
`
|
|
6539
6539
|
);
|
|
6540
|
-
return new
|
|
6540
|
+
return new Ce({ data: r, dataType: x.JSON, timeRange: n });
|
|
6541
6541
|
}
|
|
6542
6542
|
acquire(e) {
|
|
6543
6543
|
this._refCount++, e != null && this.updateGLBuffer(e);
|
|
@@ -6637,7 +6637,7 @@ const Bo = (t) => {
|
|
|
6637
6637
|
let e = 0;
|
|
6638
6638
|
const n = [0];
|
|
6639
6639
|
return this.data.forEach((r, i) => {
|
|
6640
|
-
r ===
|
|
6640
|
+
r === ws && (e++, n.push(i + 1));
|
|
6641
6641
|
}), this._cachedIndexes = n, this._cachedLength = e, e;
|
|
6642
6642
|
}
|
|
6643
6643
|
/**
|
|
@@ -6654,7 +6654,7 @@ const Bo = (t) => {
|
|
|
6654
6654
|
const r = new e.Array(this.length);
|
|
6655
6655
|
for (let i = 0; i < this.length; i++)
|
|
6656
6656
|
r[i] = sf(this.dataType, e, this.data[i], n);
|
|
6657
|
-
return new
|
|
6657
|
+
return new Ce({
|
|
6658
6658
|
data: r.buffer,
|
|
6659
6659
|
dataType: e,
|
|
6660
6660
|
timeRange: this._timeRange,
|
|
@@ -6680,12 +6680,11 @@ const Bo = (t) => {
|
|
|
6680
6680
|
get max() {
|
|
6681
6681
|
if (this.dataType.isVariable)
|
|
6682
6682
|
throw new Error("cannot calculate maximum on a variable length data type");
|
|
6683
|
-
return this.writePos === 0 ? -1 / 0 : (this._cachedMax
|
|
6683
|
+
return this.writePos === 0 ? -1 / 0 : (this._cachedMax ?? (this._cachedMax = this.calcRawMax()), Pt(this._cachedMax, this.sampleOffset));
|
|
6684
6684
|
}
|
|
6685
6685
|
calcRawMin() {
|
|
6686
6686
|
if (this.length === 0) return 1 / 0;
|
|
6687
|
-
if (this.dataType.equals(x.TIMESTAMP))
|
|
6688
|
-
this._cachedMin = this.data[0];
|
|
6687
|
+
if (this.dataType.equals(x.TIMESTAMP)) this._cachedMin = this.data[0];
|
|
6689
6688
|
else if (this.dataType.usesBigInt) {
|
|
6690
6689
|
const e = this.data;
|
|
6691
6690
|
this._cachedMin = e.reduce((n, r) => n < r ? n : r);
|
|
@@ -6699,7 +6698,7 @@ const Bo = (t) => {
|
|
|
6699
6698
|
get min() {
|
|
6700
6699
|
if (this.dataType.isVariable)
|
|
6701
6700
|
throw new Error("cannot calculate minimum on a variable length data type");
|
|
6702
|
-
return this.writePos === 0 ? 1 / 0 : (this._cachedMin
|
|
6701
|
+
return this.writePos === 0 ? 1 / 0 : (this._cachedMin ?? (this._cachedMin = this.calcRawMin()), Pt(this._cachedMin, this.sampleOffset));
|
|
6703
6702
|
}
|
|
6704
6703
|
/** @returns the bounds of this array. */
|
|
6705
6704
|
get bounds() {
|
|
@@ -6746,7 +6745,7 @@ const Bo = (t) => {
|
|
|
6746
6745
|
else {
|
|
6747
6746
|
e < 0 && (e = this.length + e);
|
|
6748
6747
|
for (let o = 0; o < this.data.length; o++)
|
|
6749
|
-
if (this.data[o] ===
|
|
6748
|
+
if (this.data[o] === ws) {
|
|
6750
6749
|
if (e === 0) {
|
|
6751
6750
|
i = o;
|
|
6752
6751
|
break;
|
|
@@ -6874,7 +6873,7 @@ const Bo = (t) => {
|
|
|
6874
6873
|
subBytes(e, n) {
|
|
6875
6874
|
if (e >= 0 && (n == null || n >= this.byteLength.valueOf())) return this;
|
|
6876
6875
|
const r = this.data.subarray(e, n);
|
|
6877
|
-
return new
|
|
6876
|
+
return new Ce({
|
|
6878
6877
|
data: r,
|
|
6879
6878
|
dataType: this.dataType,
|
|
6880
6879
|
timeRange: this._timeRange,
|
|
@@ -6886,7 +6885,7 @@ const Bo = (t) => {
|
|
|
6886
6885
|
sliceSub(e, n, r) {
|
|
6887
6886
|
if (n <= 0 && (r == null || r >= this.length)) return this;
|
|
6888
6887
|
let i;
|
|
6889
|
-
return e ? i = this.data.subarray(n, r) : i = this.data.slice(n, r), new
|
|
6888
|
+
return e ? i = this.data.subarray(n, r) : i = this.data.slice(n, r), new Ce({
|
|
6890
6889
|
data: i,
|
|
6891
6890
|
dataType: this.dataType,
|
|
6892
6891
|
timeRange: this._timeRange,
|
|
@@ -6896,7 +6895,7 @@ const Bo = (t) => {
|
|
|
6896
6895
|
});
|
|
6897
6896
|
}
|
|
6898
6897
|
reAlign(e) {
|
|
6899
|
-
return new
|
|
6898
|
+
return new Ce({
|
|
6900
6899
|
data: this.buffer,
|
|
6901
6900
|
dataType: this.dataType,
|
|
6902
6901
|
timeRange: le.ZERO,
|
|
@@ -6936,7 +6935,7 @@ class cf {
|
|
|
6936
6935
|
}
|
|
6937
6936
|
next() {
|
|
6938
6937
|
const e = this.index, n = this.series.data;
|
|
6939
|
-
for (; this.index < n.length && n[this.index] !==
|
|
6938
|
+
for (; this.index < n.length && n[this.index] !== ws; ) this.index++;
|
|
6940
6939
|
const r = this.index;
|
|
6941
6940
|
return e === r ? { done: !0, value: void 0 } : (this.index++, { done: !1, value: this.decoder.decode(this.series.buffer.slice(e, r)) });
|
|
6942
6941
|
}
|
|
@@ -7036,11 +7035,11 @@ class df {
|
|
|
7036
7035
|
if (n) throw new Error(`[series] - no value at index ${e}`);
|
|
7037
7036
|
}
|
|
7038
7037
|
subIterator(e, n) {
|
|
7039
|
-
return new
|
|
7038
|
+
return new Yr(this, e, n ?? this.length);
|
|
7040
7039
|
}
|
|
7041
7040
|
subAlignmentIterator(e, n) {
|
|
7042
7041
|
if (e >= this.alignmentBounds.upper || n <= this.alignmentBounds.lower)
|
|
7043
|
-
return
|
|
7042
|
+
return ms;
|
|
7044
7043
|
let r = 0;
|
|
7045
7044
|
for (let a = 0; a < this.series.length; a++) {
|
|
7046
7045
|
const o = this.series[a];
|
|
@@ -7061,10 +7060,10 @@ class df {
|
|
|
7061
7060
|
break;
|
|
7062
7061
|
}
|
|
7063
7062
|
}
|
|
7064
|
-
return new
|
|
7063
|
+
return new Yr(this, r, i);
|
|
7065
7064
|
}
|
|
7066
7065
|
subAlignmentSpanIterator(e, n) {
|
|
7067
|
-
if (e >= this.alignmentBounds.upper) return
|
|
7066
|
+
if (e >= this.alignmentBounds.upper) return ms;
|
|
7068
7067
|
let r = 0;
|
|
7069
7068
|
for (let i = 0; i < this.series.length; i++) {
|
|
7070
7069
|
const a = this.series[i];
|
|
@@ -7075,7 +7074,7 @@ class df {
|
|
|
7075
7074
|
break;
|
|
7076
7075
|
}
|
|
7077
7076
|
}
|
|
7078
|
-
return new
|
|
7077
|
+
return new Yr(this, r, r + n);
|
|
7079
7078
|
}
|
|
7080
7079
|
get byteLength() {
|
|
7081
7080
|
return new lt(this.series.reduce((e, n) => e + n.byteLength.valueOf(), 0));
|
|
@@ -7116,7 +7115,7 @@ class ff {
|
|
|
7116
7115
|
return this;
|
|
7117
7116
|
}
|
|
7118
7117
|
}
|
|
7119
|
-
class
|
|
7118
|
+
class Yr {
|
|
7120
7119
|
constructor(e, n, r) {
|
|
7121
7120
|
g(this, "series"), g(this, "index"), g(this, "end"), this.series = e, this.end = r, this.index = n;
|
|
7122
7121
|
}
|
|
@@ -7180,7 +7179,7 @@ wf();
|
|
|
7180
7179
|
const bf = ["MacOS", "Windows", "Linux", "Docker"];
|
|
7181
7180
|
s.enum(bf);
|
|
7182
7181
|
var vf = Object.defineProperty, Of = (t, e, n) => e in t ? vf(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Ut = (t, e, n) => Of(t, typeof e != "symbol" ? e + "" : e, n);
|
|
7183
|
-
const Tf = (...t) => t.map(Mo).join(""), Mo = (t) => (t.endsWith("/") || (t += "/"), t.startsWith("/") && (t = t.slice(1)), t), Sf = (t) => t.endsWith("/") ? t.slice(0, -1) : t,
|
|
7182
|
+
const Tf = (...t) => t.map(Mo).join(""), Mo = (t) => (t.endsWith("/") || (t += "/"), t.startsWith("/") && (t = t.slice(1)), t), Sf = (t) => t.endsWith("/") ? t.slice(0, -1) : t, bs = class vs {
|
|
7184
7183
|
/**
|
|
7185
7184
|
* @param host - The hostname or IP address of the server.
|
|
7186
7185
|
* @param port - The port number of the server.
|
|
@@ -7196,7 +7195,7 @@ const Tf = (...t) => t.map(Mo).join(""), Mo = (t) => (t.endsWith("/") || (t += "
|
|
|
7196
7195
|
* @returns a new URL.
|
|
7197
7196
|
*/
|
|
7198
7197
|
replace(e) {
|
|
7199
|
-
return new
|
|
7198
|
+
return new vs({
|
|
7200
7199
|
host: e.host ?? this.host,
|
|
7201
7200
|
port: e.port ?? this.port,
|
|
7202
7201
|
protocol: e.protocol ?? this.protocol,
|
|
@@ -7209,7 +7208,7 @@ const Tf = (...t) => t.map(Mo).join(""), Mo = (t) => (t.endsWith("/") || (t += "
|
|
|
7209
7208
|
* @returns a new URL.
|
|
7210
7209
|
*/
|
|
7211
7210
|
child(e) {
|
|
7212
|
-
return new
|
|
7211
|
+
return new vs({
|
|
7213
7212
|
...this,
|
|
7214
7213
|
pathPrefix: Tf(this.path, e)
|
|
7215
7214
|
});
|
|
@@ -7221,8 +7220,8 @@ const Tf = (...t) => t.map(Mo).join(""), Mo = (t) => (t.endsWith("/") || (t += "
|
|
|
7221
7220
|
);
|
|
7222
7221
|
}
|
|
7223
7222
|
};
|
|
7224
|
-
Ut(
|
|
7225
|
-
let Nf =
|
|
7223
|
+
Ut(bs, "UNKNOWN", new bs({ host: "unknown", port: 0 }));
|
|
7224
|
+
let Nf = bs;
|
|
7226
7225
|
var If = Object.defineProperty, Ef = (t, e, n) => e in t ? If(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Pn = (t, e, n) => Ef(t, typeof e != "symbol" ? e + "" : e, n);
|
|
7227
7226
|
const Je = class extends Number {
|
|
7228
7227
|
};
|
|
@@ -7260,23 +7259,23 @@ const Po = s.object({
|
|
|
7260
7259
|
Pn(Uo, "MESSAGE", "canceled");
|
|
7261
7260
|
let xf = Uo;
|
|
7262
7261
|
new xf();
|
|
7263
|
-
const
|
|
7262
|
+
const Os = s.string().regex(/^\d+\.\d+\.\d+$/), an = (t, e, n = {}) => {
|
|
7264
7263
|
n.checkMajor ?? (n.checkMajor = !0), n.checkMinor ?? (n.checkMinor = !0), n.checkPatch ?? (n.checkPatch = !0);
|
|
7265
|
-
const r =
|
|
7264
|
+
const r = Os.parse(t), i = Os.parse(e), [a, o, c] = r.split(".").map(Number), [u, h, f] = i.split(".").map(Number);
|
|
7266
7265
|
if (n.checkMajor) {
|
|
7267
|
-
if (a < u) return
|
|
7268
|
-
if (a > u) return
|
|
7266
|
+
if (a < u) return Lr;
|
|
7267
|
+
if (a > u) return _r;
|
|
7269
7268
|
}
|
|
7270
7269
|
if (n.checkMinor) {
|
|
7271
|
-
if (o < h) return
|
|
7272
|
-
if (o > h) return
|
|
7270
|
+
if (o < h) return Lr;
|
|
7271
|
+
if (o > h) return _r;
|
|
7273
7272
|
}
|
|
7274
7273
|
if (n.checkPatch) {
|
|
7275
|
-
if (c < f) return
|
|
7276
|
-
if (c > f) return
|
|
7274
|
+
if (c < f) return Lr;
|
|
7275
|
+
if (c > f) return _r;
|
|
7277
7276
|
}
|
|
7278
7277
|
return fr;
|
|
7279
|
-
},
|
|
7278
|
+
}, $f = (t, e, n = {}) => Zd(an(t, e, n)), Lo = (t, e, n = {}) => Gd(an(t, e, n)), Cf = (t, e, n = {}) => Wd(an(t, e, n)), Rf = ({
|
|
7280
7279
|
name: t,
|
|
7281
7280
|
migrate: e
|
|
7282
7281
|
}) => (n) => {
|
|
@@ -7296,9 +7295,9 @@ const Ts = s.string().regex(/^\d+\.\d+\.\d+$/), an = (t, e, n = {}) => {
|
|
|
7296
7295
|
const a = Object.keys(e).sort(an).pop();
|
|
7297
7296
|
if (a == null)
|
|
7298
7297
|
return (h) => {
|
|
7299
|
-
if (h.version
|
|
7298
|
+
if (h.version ?? (h.version = r), h.version !== i.version)
|
|
7300
7299
|
return console.log(
|
|
7301
|
-
`${t} version ${h.version} is newer than latest version of ${i.version}.
|
|
7300
|
+
`${t} version ${h.version} is newer than latest version of ${i.version}.
|
|
7302
7301
|
Returning default instead.
|
|
7303
7302
|
`
|
|
7304
7303
|
), i;
|
|
@@ -7344,37 +7343,37 @@ const Ts = s.string().regex(/^\d+\.\d+\.\d+$/), an = (t, e, n = {}) => {
|
|
|
7344
7343
|
createMigration: Rf,
|
|
7345
7344
|
migrator: jf,
|
|
7346
7345
|
semVerNewer: Lo,
|
|
7347
|
-
semVerOlder:
|
|
7348
|
-
semVerZ:
|
|
7349
|
-
versionsEqual:
|
|
7346
|
+
semVerOlder: Cf,
|
|
7347
|
+
semVerZ: Os,
|
|
7348
|
+
versionsEqual: $f
|
|
7350
7349
|
}, Symbol.toStringTag, { value: "Module" })), ze = "sy.", Un = class _o extends Te {
|
|
7351
7350
|
constructor() {
|
|
7352
7351
|
super(...arguments), l(this, "type", _o.TYPE);
|
|
7353
7352
|
}
|
|
7354
7353
|
};
|
|
7355
|
-
l(Un, "TYPE", ze
|
|
7354
|
+
l(Un, "TYPE", `${ze}validation`), l(Un, "matches", fe(Un.TYPE));
|
|
7356
7355
|
let Q = Un;
|
|
7357
7356
|
const Ln = class Yo extends Q {
|
|
7358
7357
|
constructor(e, n) {
|
|
7359
|
-
super(e
|
|
7358
|
+
super(`${e}: ${n}`), l(this, "type", Yo.TYPE), l(this, "field"), l(this, "message"), this.field = e, this.message = n;
|
|
7360
7359
|
}
|
|
7361
7360
|
};
|
|
7362
|
-
l(Ln, "TYPE", Q.TYPE
|
|
7361
|
+
l(Ln, "TYPE", `${Q.TYPE}.field`), l(Ln, "matches", fe(Ln.TYPE));
|
|
7363
7362
|
let sa = Ln;
|
|
7364
7363
|
const _n = class Fo extends Te {
|
|
7365
7364
|
constructor() {
|
|
7366
7365
|
super(...arguments), l(this, "type", Fo.TYPE);
|
|
7367
7366
|
}
|
|
7368
7367
|
};
|
|
7369
|
-
l(_n, "TYPE", ze
|
|
7368
|
+
l(_n, "TYPE", `${ze}auth`), l(_n, "matches", fe(_n.TYPE));
|
|
7370
7369
|
let rr = _n;
|
|
7371
7370
|
const Yn = class qo extends rr {
|
|
7372
7371
|
constructor() {
|
|
7373
7372
|
super(...arguments), l(this, "type", qo.TYPE);
|
|
7374
7373
|
}
|
|
7375
7374
|
};
|
|
7376
|
-
l(Yn, "TYPE", rr.TYPE
|
|
7377
|
-
let
|
|
7375
|
+
l(Yn, "TYPE", `${rr.TYPE}.invalid-token`), l(Yn, "matches", fe(Yn.TYPE));
|
|
7376
|
+
let Ts = Yn;
|
|
7378
7377
|
const Fn = class zo extends Te {
|
|
7379
7378
|
constructor(e) {
|
|
7380
7379
|
super(`
|
|
@@ -7386,56 +7385,56 @@ const Fn = class zo extends Te {
|
|
|
7386
7385
|
`), l(this, "type", zo.TYPE);
|
|
7387
7386
|
}
|
|
7388
7387
|
};
|
|
7389
|
-
l(Fn, "TYPE", ze
|
|
7388
|
+
l(Fn, "TYPE", `${ze}unexpected`), l(Fn, "matches", fe(Fn.TYPE));
|
|
7390
7389
|
let Oe = Fn;
|
|
7391
7390
|
const qn = class Vo extends Te {
|
|
7392
7391
|
constructor() {
|
|
7393
7392
|
super(...arguments), l(this, "type", Vo.TYPE);
|
|
7394
7393
|
}
|
|
7395
7394
|
};
|
|
7396
|
-
l(qn, "TYPE", ze
|
|
7395
|
+
l(qn, "TYPE", `${ze}query`), l(qn, "matches", fe(qn.TYPE));
|
|
7397
7396
|
let je = qn;
|
|
7398
7397
|
const zn = class Wo extends je {
|
|
7399
7398
|
constructor() {
|
|
7400
7399
|
super(...arguments), l(this, "type", Wo.TYPE);
|
|
7401
7400
|
}
|
|
7402
7401
|
};
|
|
7403
|
-
l(zn, "TYPE", je.TYPE
|
|
7402
|
+
l(zn, "TYPE", `${je.TYPE}.not_found`), l(zn, "matches", fe(zn.TYPE));
|
|
7404
7403
|
let ut = zn;
|
|
7405
7404
|
const Vn = class Go extends je {
|
|
7406
7405
|
constructor() {
|
|
7407
7406
|
super(...arguments), l(this, "type", Go.TYPE);
|
|
7408
7407
|
}
|
|
7409
7408
|
};
|
|
7410
|
-
l(Vn, "TYPE", je.TYPE
|
|
7409
|
+
l(Vn, "TYPE", `${je.TYPE}.multiple_results`), l(Vn, "matches", fe(Vn.TYPE));
|
|
7411
7410
|
let ht = Vn;
|
|
7412
7411
|
const Wn = class Zo extends Te {
|
|
7413
7412
|
constructor(e, n) {
|
|
7414
7413
|
super(e), l(this, "type", Zo.TYPE), l(this, "path"), this.path = n;
|
|
7415
7414
|
}
|
|
7416
7415
|
};
|
|
7417
|
-
l(Wn, "TYPE", ze
|
|
7416
|
+
l(Wn, "TYPE", `${ze}route`), l(Wn, "matches", fe(Wn.TYPE));
|
|
7418
7417
|
let ia = Wn;
|
|
7419
7418
|
const Gn = class Jo extends Te {
|
|
7420
7419
|
constructor() {
|
|
7421
7420
|
super(...arguments), l(this, "type", Jo.TYPE);
|
|
7422
7421
|
}
|
|
7423
7422
|
};
|
|
7424
|
-
l(Gn, "TYPE", ze
|
|
7423
|
+
l(Gn, "TYPE", `${ze}control`), l(Gn, "matches", fe(Gn.TYPE));
|
|
7425
7424
|
let sr = Gn;
|
|
7426
7425
|
const Zn = class Ko extends sr {
|
|
7427
7426
|
constructor() {
|
|
7428
7427
|
super(...arguments), l(this, "type", Ko.TYPE);
|
|
7429
7428
|
}
|
|
7430
7429
|
};
|
|
7431
|
-
l(Zn, "TYPE", sr.TYPE
|
|
7430
|
+
l(Zn, "TYPE", `${sr.TYPE}.unauthorized`), l(Zn, "matches", fe(Zn.TYPE));
|
|
7432
7431
|
let aa = Zn;
|
|
7433
|
-
const
|
|
7432
|
+
const Fr = class Ho extends Te {
|
|
7434
7433
|
constructor() {
|
|
7435
7434
|
super(...arguments), l(this, "type", Ho.TYPE);
|
|
7436
7435
|
}
|
|
7437
7436
|
};
|
|
7438
|
-
l(
|
|
7437
|
+
l(Fr, "TYPE", `${ze}contiguity`), l(Fr, "matches", fe(Fr.TYPE));
|
|
7439
7438
|
const Bf = (t) => {
|
|
7440
7439
|
if (!t.type.startsWith(ze)) return null;
|
|
7441
7440
|
if (t.type.startsWith(Q.TYPE)) {
|
|
@@ -7445,7 +7444,7 @@ const Bf = (t) => {
|
|
|
7445
7444
|
}
|
|
7446
7445
|
return new Q(t.data);
|
|
7447
7446
|
}
|
|
7448
|
-
return t.type.startsWith(rr.TYPE) ? t.type.startsWith(
|
|
7447
|
+
return t.type.startsWith(rr.TYPE) ? t.type.startsWith(Ts.TYPE) ? new Ts(t.data) : new rr(t.data) : t.type.startsWith(Oe.TYPE) ? new Oe(t.data) : t.type.startsWith(je.TYPE) ? t.type.startsWith(ut.TYPE) ? new ut(t.data) : t.type.startsWith(ht.TYPE) ? new ht(t.data) : new je(t.data) : t.type.startsWith(sr.TYPE) ? t.type.startsWith(aa.TYPE) ? new aa(t.data) : new sr(t.data) : t.type.startsWith(ia.TYPE) ? new ia(t.data, t.data) : new Oe(t.data);
|
|
7449
7448
|
}, Mf = () => {
|
|
7450
7449
|
throw new Error("Not implemented");
|
|
7451
7450
|
};
|
|
@@ -7465,7 +7464,7 @@ class Xo {
|
|
|
7465
7464
|
l(this, "key"), l(this, "name"), this.key = n, this.name = e;
|
|
7466
7465
|
}
|
|
7467
7466
|
get ontologyID() {
|
|
7468
|
-
return new
|
|
7467
|
+
return new C({
|
|
7469
7468
|
type: "group",
|
|
7470
7469
|
key: this.key
|
|
7471
7470
|
});
|
|
@@ -7524,21 +7523,21 @@ const Pf = s.string().uuid(), Qo = s.object({
|
|
|
7524
7523
|
}
|
|
7525
7524
|
};
|
|
7526
7525
|
l(Jn, "z", s.union([s.instanceof(Jn), _t.transform((t) => new Jn(t))]));
|
|
7527
|
-
let
|
|
7528
|
-
new
|
|
7526
|
+
let C = Jn;
|
|
7527
|
+
new C({ type: "builtin", key: "root" });
|
|
7529
7528
|
const Lf = s.object({ type: s.number() }), _f = s.object({
|
|
7530
7529
|
type: gr,
|
|
7531
7530
|
fields: s.record(Lf)
|
|
7532
7531
|
}), Yf = s.object({
|
|
7533
|
-
id:
|
|
7532
|
+
id: C.z,
|
|
7534
7533
|
name: s.string(),
|
|
7535
7534
|
schema: _f.optional().nullable(),
|
|
7536
7535
|
data: s.record(s.unknown()).optional().nullable()
|
|
7537
7536
|
}).transform((t) => ({ key: t.id.toString(), ...t }));
|
|
7538
|
-
s.object({ from:
|
|
7537
|
+
s.object({ from: C.z, type: s.string(), to: C.z });
|
|
7539
7538
|
const oa = (t) => {
|
|
7540
7539
|
const [e, n, r] = t.split("->");
|
|
7541
|
-
return { from: new
|
|
7540
|
+
return { from: new C(e), type: n, to: new C(r) };
|
|
7542
7541
|
}, Ff = s.object({
|
|
7543
7542
|
group: Qo
|
|
7544
7543
|
}), qf = s.object({
|
|
@@ -7600,7 +7599,7 @@ let Wf = (Fe = class {
|
|
|
7600
7599
|
return new Xo(t.name, t.key);
|
|
7601
7600
|
}
|
|
7602
7601
|
};
|
|
7603
|
-
const
|
|
7602
|
+
const qr = {
|
|
7604
7603
|
ADD_CHILDREN: "/ontology/add-children",
|
|
7605
7604
|
REMOVE_CHILDREN: "/ontology/remove-children",
|
|
7606
7605
|
MOVE_CHILDREN: "/ontology/move-children"
|
|
@@ -7619,8 +7618,8 @@ let Jf = class {
|
|
|
7619
7618
|
async addChildren(t, ...e) {
|
|
7620
7619
|
await v(
|
|
7621
7620
|
this.client,
|
|
7622
|
-
|
|
7623
|
-
{ id: new
|
|
7621
|
+
qr.ADD_CHILDREN,
|
|
7622
|
+
{ id: new C(t).payload, children: e.map((n) => new C(n).payload) },
|
|
7624
7623
|
la,
|
|
7625
7624
|
s.object({})
|
|
7626
7625
|
);
|
|
@@ -7628,21 +7627,21 @@ let Jf = class {
|
|
|
7628
7627
|
async removeChildren(t, ...e) {
|
|
7629
7628
|
await v(
|
|
7630
7629
|
this.client,
|
|
7631
|
-
|
|
7632
|
-
{ id: new
|
|
7630
|
+
qr.REMOVE_CHILDREN,
|
|
7631
|
+
{ id: new C(t).payload, children: e.map((n) => new C(n).payload) },
|
|
7633
7632
|
la,
|
|
7634
7633
|
s.object({})
|
|
7635
7634
|
);
|
|
7636
7635
|
}
|
|
7637
7636
|
async moveChildren(t, e, ...n) {
|
|
7638
7637
|
const r = {
|
|
7639
|
-
from: new
|
|
7640
|
-
to: new
|
|
7641
|
-
children: n.map((i) => new
|
|
7638
|
+
from: new C(t).payload,
|
|
7639
|
+
to: new C(e).payload,
|
|
7640
|
+
children: n.map((i) => new C(i).payload)
|
|
7642
7641
|
};
|
|
7643
7642
|
await v(
|
|
7644
7643
|
this.client,
|
|
7645
|
-
|
|
7644
|
+
qr.MOVE_CHILDREN,
|
|
7646
7645
|
r,
|
|
7647
7646
|
Zf,
|
|
7648
7647
|
s.object({})
|
|
@@ -7661,7 +7660,7 @@ const Kf = "/ontology/retrieve", Hf = s.object({
|
|
|
7661
7660
|
types: gr.array().optional()
|
|
7662
7661
|
}), Xf = s.object({
|
|
7663
7662
|
resources: Yf.array()
|
|
7664
|
-
}),
|
|
7663
|
+
}), zr = (t) => O(t).map((e) => new C(e).payload);
|
|
7665
7664
|
let Qf = class {
|
|
7666
7665
|
constructor(t, e) {
|
|
7667
7666
|
l(this, "type", "ontology"), l(this, "groups"), l(this, "client"), l(this, "writer"), l(this, "framer"), this.client = t, this.writer = new Jf(t), this.groups = new Gf(t), this.framer = e;
|
|
@@ -7682,7 +7681,7 @@ let Qf = class {
|
|
|
7682
7681
|
return await this.execRetrieve({ term: t, ...e });
|
|
7683
7682
|
}
|
|
7684
7683
|
async retrieve(t, e) {
|
|
7685
|
-
const n = await this.execRetrieve({ ids:
|
|
7684
|
+
const n = await this.execRetrieve({ ids: zr(t), ...e });
|
|
7686
7685
|
if (Array.isArray(t)) return n;
|
|
7687
7686
|
if (n.length === 0)
|
|
7688
7687
|
throw new je(`No resource found with ID ${t.toString()}`);
|
|
@@ -7711,7 +7710,7 @@ let Qf = class {
|
|
|
7711
7710
|
* @returns The children of the resources with the given IDs.
|
|
7712
7711
|
*/
|
|
7713
7712
|
async retrieveChildren(t, e) {
|
|
7714
|
-
return await this.execRetrieve({ ids:
|
|
7713
|
+
return await this.execRetrieve({ ids: zr(t), children: !0, ...e });
|
|
7715
7714
|
}
|
|
7716
7715
|
/**
|
|
7717
7716
|
* Retrieves the parents of the resources with the given IDs.
|
|
@@ -7725,7 +7724,7 @@ let Qf = class {
|
|
|
7725
7724
|
* @returns the parents of the resources with the given IDs
|
|
7726
7725
|
*/
|
|
7727
7726
|
async retrieveParents(t, e) {
|
|
7728
|
-
return await this.execRetrieve({ ids:
|
|
7727
|
+
return await this.execRetrieve({ ids: zr(t), parents: !0, ...e });
|
|
7729
7728
|
}
|
|
7730
7729
|
/**
|
|
7731
7730
|
* Adds children to a resource in the ontology.
|
|
@@ -7762,7 +7761,7 @@ let Qf = class {
|
|
|
7762
7761
|
return await pr.open(this.framer, this);
|
|
7763
7762
|
}
|
|
7764
7763
|
async openDependentTracker(t) {
|
|
7765
|
-
return await
|
|
7764
|
+
return await Ls.open(t, this.framer, this);
|
|
7766
7765
|
}
|
|
7767
7766
|
newSearcherWithOptions(t) {
|
|
7768
7767
|
return {
|
|
@@ -7792,8 +7791,7 @@ class pr {
|
|
|
7792
7791
|
this.streamer.close(), await this.closePromise;
|
|
7793
7792
|
}
|
|
7794
7793
|
async start() {
|
|
7795
|
-
for await (const e of this.streamer)
|
|
7796
|
-
await this.update(e);
|
|
7794
|
+
for await (const e of this.streamer) await this.update(e);
|
|
7797
7795
|
}
|
|
7798
7796
|
async update(e) {
|
|
7799
7797
|
const n = await this.parseResourceSets(e), r = this.parseResourceDeletes(e);
|
|
@@ -7819,7 +7817,7 @@ class pr {
|
|
|
7819
7817
|
async parseResourceSets(e) {
|
|
7820
7818
|
const n = e.get(ca);
|
|
7821
7819
|
if (n.length === 0) return [];
|
|
7822
|
-
const r = Array.from(n.as("string")).map((i) => new
|
|
7820
|
+
const r = Array.from(n.as("string")).map((i) => new C(i));
|
|
7823
7821
|
try {
|
|
7824
7822
|
return (await this.client.retrieve(r)).map((i) => ({
|
|
7825
7823
|
variant: "set",
|
|
@@ -7835,7 +7833,7 @@ class pr {
|
|
|
7835
7833
|
const n = e.get(ua);
|
|
7836
7834
|
return n.length === 0 ? [] : Array.from(n.as("string")).map((r) => ({
|
|
7837
7835
|
variant: "delete",
|
|
7838
|
-
key: new
|
|
7836
|
+
key: new C(r)
|
|
7839
7837
|
}));
|
|
7840
7838
|
}
|
|
7841
7839
|
static async open(e, n) {
|
|
@@ -7849,7 +7847,7 @@ class pr {
|
|
|
7849
7847
|
}
|
|
7850
7848
|
}
|
|
7851
7849
|
const fa = (t) => t === "from" ? "to" : "from";
|
|
7852
|
-
class
|
|
7850
|
+
class Ls extends et.Observer {
|
|
7853
7851
|
constructor({
|
|
7854
7852
|
target: e,
|
|
7855
7853
|
dependents: n,
|
|
@@ -7882,7 +7880,7 @@ class _s extends et.Observer {
|
|
|
7882
7880
|
}
|
|
7883
7881
|
static async open(e, n, r) {
|
|
7884
7882
|
const i = await pr.open(n, r);
|
|
7885
|
-
return new
|
|
7883
|
+
return new Ls(e, i, r);
|
|
7886
7884
|
}
|
|
7887
7885
|
async close() {
|
|
7888
7886
|
await this.internal.close();
|
|
@@ -7892,21 +7890,21 @@ const we = (t) => s.union([s.null().transform(() => []), t.array()]), mr = s.str
|
|
|
7892
7890
|
key: mr.optional(),
|
|
7893
7891
|
subjects: _t.array().or(_t),
|
|
7894
7892
|
objects: _t.array().or(_t),
|
|
7895
|
-
actions:
|
|
7896
|
-
}),
|
|
7893
|
+
actions: ys.array().or(ys)
|
|
7894
|
+
}), _s = s.object({
|
|
7897
7895
|
key: mr,
|
|
7898
7896
|
subjects: we(pe),
|
|
7899
7897
|
objects: we(pe),
|
|
7900
|
-
actions: we(
|
|
7898
|
+
actions: we(ys)
|
|
7901
7899
|
}), ty = "allow_all";
|
|
7902
|
-
new
|
|
7900
|
+
new C({
|
|
7903
7901
|
type: ty,
|
|
7904
7902
|
key: ""
|
|
7905
7903
|
});
|
|
7906
7904
|
const ny = s.object({
|
|
7907
7905
|
keys: mr.array().optional(),
|
|
7908
7906
|
subjects: pe.array().optional()
|
|
7909
|
-
}), ry = s.object({ policies: we(
|
|
7907
|
+
}), ry = s.object({ policies: we(_s) }), sy = "/access/policy/retrieve";
|
|
7910
7908
|
let iy = class {
|
|
7911
7909
|
constructor(t) {
|
|
7912
7910
|
l(this, "client"), this.client = t;
|
|
@@ -7921,7 +7919,7 @@ let iy = class {
|
|
|
7921
7919
|
)).policies;
|
|
7922
7920
|
}
|
|
7923
7921
|
};
|
|
7924
|
-
const ay = s.object({ policies:
|
|
7922
|
+
const ay = s.object({ policies: _s.partial({ key: !0 }).array() }), oy = s.object({ policies: _s.array() }), ly = s.object({ keys: mr.array() }), cy = s.object({}), uy = "/access/policy/create", hy = "/access/policy/delete";
|
|
7925
7923
|
let dy = class {
|
|
7926
7924
|
constructor(t) {
|
|
7927
7925
|
l(this, "client"), this.client = t;
|
|
@@ -7962,7 +7960,7 @@ let dy = class {
|
|
|
7962
7960
|
return e ? n : n[0];
|
|
7963
7961
|
}
|
|
7964
7962
|
async retrieveFor(t) {
|
|
7965
|
-
const e = O(t).map((n) => new
|
|
7963
|
+
const e = O(t).map((n) => new C(n).payload);
|
|
7966
7964
|
return await this.retriever.retrieve({ subjects: e });
|
|
7967
7965
|
}
|
|
7968
7966
|
async delete(t) {
|
|
@@ -7992,7 +7990,7 @@ const Ve = s.number(), on = s.object({
|
|
|
7992
7990
|
isIndex: s.boolean().optional(),
|
|
7993
7991
|
internal: s.boolean().optional().default(!1),
|
|
7994
7992
|
virtual: s.boolean().optional().default(!1)
|
|
7995
|
-
}), nl = "channel", gy = (t) => new
|
|
7993
|
+
}), nl = "channel", gy = (t) => new C({ type: nl, key: t.toString() }), py = new Error("request for lock canceled");
|
|
7996
7994
|
var my = function(t, e, n, r) {
|
|
7997
7995
|
function i(a) {
|
|
7998
7996
|
return a instanceof n ? a : new n(function(o) {
|
|
@@ -8229,8 +8227,8 @@ const wr = (t, e, { convertNumericStrings: n = !0 } = {}) => {
|
|
|
8229
8227
|
}
|
|
8230
8228
|
};
|
|
8231
8229
|
l(sl, "ENDPOINT", "/channel/retrieve");
|
|
8232
|
-
let
|
|
8233
|
-
class
|
|
8230
|
+
let Ys = sl;
|
|
8231
|
+
class Fs {
|
|
8234
8232
|
constructor(e) {
|
|
8235
8233
|
l(this, "cache"), l(this, "namesToKeys"), l(this, "wrapped"), this.cache = /* @__PURE__ */ new Map(), this.namesToKeys = /* @__PURE__ */ new Map(), this.wrapped = e;
|
|
8236
8234
|
}
|
|
@@ -8382,7 +8380,7 @@ class ll {
|
|
|
8382
8380
|
* @returns the ontology ID of the channel
|
|
8383
8381
|
*/
|
|
8384
8382
|
get ontologyID() {
|
|
8385
|
-
return new
|
|
8383
|
+
return new C({ type: "channel", key: this.key.toString() });
|
|
8386
8384
|
}
|
|
8387
8385
|
/**
|
|
8388
8386
|
* Reads telemetry from the channel between the two timestamps.
|
|
@@ -8457,8 +8455,8 @@ let cl = class {
|
|
|
8457
8455
|
return this.sugar(await this.retriever.page(t, e, n));
|
|
8458
8456
|
}
|
|
8459
8457
|
createDebouncedBatchRetriever(t = 10) {
|
|
8460
|
-
return new
|
|
8461
|
-
new al(new
|
|
8458
|
+
return new Fs(
|
|
8459
|
+
new al(new Ys(this.client), t)
|
|
8462
8460
|
);
|
|
8463
8461
|
}
|
|
8464
8462
|
sugar(t) {
|
|
@@ -8479,7 +8477,7 @@ let cl = class {
|
|
|
8479
8477
|
const ky = s.object({ channels: tl.array() }), Ay = s.object({ channels: on.array() }), xy = s.object({
|
|
8480
8478
|
keys: Ve.array().optional(),
|
|
8481
8479
|
names: s.string().array().optional()
|
|
8482
|
-
}),
|
|
8480
|
+
}), $y = s.object({}), Cy = s.object({
|
|
8483
8481
|
keys: Ve.array(),
|
|
8484
8482
|
names: s.string().array()
|
|
8485
8483
|
}), Ry = s.object({}), jy = "/channel/create", By = "/channel/delete", My = "/channel/rename";
|
|
@@ -8497,7 +8495,7 @@ let ul = class {
|
|
|
8497
8495
|
By,
|
|
8498
8496
|
t,
|
|
8499
8497
|
xy,
|
|
8500
|
-
|
|
8498
|
+
$y
|
|
8501
8499
|
), t.keys != null && this.cache.delete(t.keys), t.names != null && this.cache.delete(t.names);
|
|
8502
8500
|
}
|
|
8503
8501
|
async rename(t, e) {
|
|
@@ -8505,17 +8503,17 @@ let ul = class {
|
|
|
8505
8503
|
this.client,
|
|
8506
8504
|
My,
|
|
8507
8505
|
{ keys: t, names: e },
|
|
8508
|
-
|
|
8506
|
+
Cy,
|
|
8509
8507
|
Ry
|
|
8510
8508
|
), this.cache.rename(t, e);
|
|
8511
8509
|
}
|
|
8512
8510
|
};
|
|
8513
8511
|
const xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8514
8512
|
__proto__: null,
|
|
8515
|
-
CacheRetriever:
|
|
8513
|
+
CacheRetriever: Fs,
|
|
8516
8514
|
Channel: ll,
|
|
8517
8515
|
Client: cl,
|
|
8518
|
-
ClusterRetriever:
|
|
8516
|
+
ClusterRetriever: Ys,
|
|
8519
8517
|
DebouncedBatchRetriever: al,
|
|
8520
8518
|
ONTOLOGY_TYPE: nl,
|
|
8521
8519
|
Writer: ul,
|
|
@@ -8664,7 +8662,7 @@ let og = class {
|
|
|
8664
8662
|
middleware() {
|
|
8665
8663
|
const t = async (e, n) => {
|
|
8666
8664
|
if (!this.authenticated && !e.target.endsWith(ya)) {
|
|
8667
|
-
this.authenticating
|
|
8665
|
+
this.authenticating ?? (this.authenticating = new Promise((o, c) => {
|
|
8668
8666
|
this.client.send(
|
|
8669
8667
|
ya,
|
|
8670
8668
|
this.credentials,
|
|
@@ -8680,7 +8678,7 @@ let og = class {
|
|
|
8680
8678
|
}
|
|
8681
8679
|
e.params.Authorization = `Bearer ${this.token}`;
|
|
8682
8680
|
const [r, i] = await n(e);
|
|
8683
|
-
return
|
|
8681
|
+
return Ts.matches(i) && this.retryCount < rg ? (this.authenticated = !1, this.authenticating = void 0, this.retryCount += 1, t(e, n)) : (this.retryCount = 0, [r, i]);
|
|
8684
8682
|
};
|
|
8685
8683
|
return t;
|
|
8686
8684
|
}
|
|
@@ -8702,10 +8700,10 @@ const lg = ["disconnected", "connecting", "connected", "failed"], cg = s.enum(lg
|
|
|
8702
8700
|
error: void 0,
|
|
8703
8701
|
message: "Disconnected",
|
|
8704
8702
|
clientServerCompatible: !1,
|
|
8705
|
-
clientVersion: "0.
|
|
8703
|
+
clientVersion: "0.34.0"
|
|
8706
8704
|
}, ga = (t, e, n) => {
|
|
8707
8705
|
const r = n ? "cluster" : "client";
|
|
8708
|
-
return `Synnax cluster node version ${t != null ? t
|
|
8706
|
+
return `Synnax cluster node version ${t != null ? `${t} ` : ""}is too ${n ? "old" : "new"} for client version ${e}.
|
|
8709
8707
|
This may cause compatibility issues. We recommend updating the ${r}. For more information, see
|
|
8710
8708
|
https://docs.synnaxlabs.com/reference/typescript-client/troubleshooting#old-${r}-version`;
|
|
8711
8709
|
}, Kn = class dl {
|
|
@@ -8821,8 +8819,8 @@ let ve = class it {
|
|
|
8821
8819
|
} else
|
|
8822
8820
|
Object.entries(e).forEach(([r, i]) => {
|
|
8823
8821
|
const a = parseInt(r);
|
|
8824
|
-
if (isNaN(a)) this.push(
|
|
8825
|
-
|
|
8822
|
+
if (!isNaN(a)) return this.push(a, ...O(i));
|
|
8823
|
+
this.push(r, ...O(i));
|
|
8826
8824
|
});
|
|
8827
8825
|
return;
|
|
8828
8826
|
}
|
|
@@ -8924,7 +8922,7 @@ let ve = class it {
|
|
|
8924
8922
|
timeRange(e) {
|
|
8925
8923
|
if (e == null) {
|
|
8926
8924
|
if (this.columns.length === 0) return le.ZERO;
|
|
8927
|
-
const r =
|
|
8925
|
+
const r = $.min(...this.series.map((a) => a.timeRange.start)), i = $.max(...this.series.map((a) => a.timeRange.end));
|
|
8928
8926
|
return new le(r, i);
|
|
8929
8927
|
}
|
|
8930
8928
|
const n = this.get(e);
|
|
@@ -9018,7 +9016,7 @@ let ve = class it {
|
|
|
9018
9016
|
return this.series.reduce((e, n) => e + n.length, 0);
|
|
9019
9017
|
}
|
|
9020
9018
|
};
|
|
9021
|
-
const
|
|
9019
|
+
const qs = s.object({
|
|
9022
9020
|
keys: s.union([
|
|
9023
9021
|
s.null().transform(() => []),
|
|
9024
9022
|
s.number().array().optional().default([])
|
|
@@ -9070,12 +9068,12 @@ class Or {
|
|
|
9070
9068
|
});
|
|
9071
9069
|
}
|
|
9072
9070
|
}
|
|
9073
|
-
class
|
|
9071
|
+
class zs {
|
|
9074
9072
|
constructor(e) {
|
|
9075
9073
|
l(this, "adapter"), l(this, "retriever"), l(this, "keys"), this.retriever = e, this.adapter = null, this.keys = [];
|
|
9076
9074
|
}
|
|
9077
9075
|
static async open(e, n) {
|
|
9078
|
-
const r = new
|
|
9076
|
+
const r = new zs(e);
|
|
9079
9077
|
return await r.update(n), r;
|
|
9080
9078
|
}
|
|
9081
9079
|
async adaptObjectKeys(e) {
|
|
@@ -9138,8 +9136,7 @@ class Vs {
|
|
|
9138
9136
|
if (e instanceof ve || e instanceof Map) {
|
|
9139
9137
|
const o = new ve(e);
|
|
9140
9138
|
if (this.adapter == null) return o;
|
|
9141
|
-
|
|
9142
|
-
return c = o.columns.map((u) => {
|
|
9139
|
+
const c = o.columns.map((u) => {
|
|
9143
9140
|
var h;
|
|
9144
9141
|
const f = typeof u == "string" ? (h = this.adapter) == null ? void 0 : h.get(u) : u;
|
|
9145
9142
|
if (f == null)
|
|
@@ -9147,7 +9144,8 @@ class Vs {
|
|
|
9147
9144
|
Channel ${u} was not provided in the list of channels when opening the writer
|
|
9148
9145
|
`);
|
|
9149
9146
|
return f;
|
|
9150
|
-
})
|
|
9147
|
+
});
|
|
9148
|
+
return new ve(c, o.series);
|
|
9151
9149
|
}
|
|
9152
9150
|
const r = [], i = [], a = Object.entries(e);
|
|
9153
9151
|
for (let o = 0; o < a.length; o++) {
|
|
@@ -9157,7 +9155,7 @@ class Vs {
|
|
|
9157
9155
|
return new ve(r, i);
|
|
9158
9156
|
}
|
|
9159
9157
|
}
|
|
9160
|
-
class
|
|
9158
|
+
class Vs {
|
|
9161
9159
|
constructor(e, n) {
|
|
9162
9160
|
l(this, "name"), l(this, "stream"), this.stream = n, this.name = e;
|
|
9163
9161
|
}
|
|
@@ -9190,23 +9188,23 @@ class Ws {
|
|
|
9190
9188
|
}
|
|
9191
9189
|
}
|
|
9192
9190
|
const wa = new R(-1);
|
|
9193
|
-
var
|
|
9191
|
+
var Ws = /* @__PURE__ */ ((t) => (t[t.Open = 0] = "Open", t[t.Next = 1] = "Next", t[t.Prev = 2] = "Prev", t[t.SeekFirst = 3] = "SeekFirst", t[t.SeekLast = 4] = "SeekLast", t[t.SeekLE = 5] = "SeekLE", t[t.SeekGE = 6] = "SeekGE", t[t.Valid = 7] = "Valid", t[t.Error = 8] = "Error", t))(Ws || {}), yl = /* @__PURE__ */ ((t) => (t[t.None = 0] = "None", t[t.Ack = 1] = "Ack", t[t.Data = 2] = "Data", t))(yl || {});
|
|
9194
9192
|
const wg = s.object({
|
|
9195
|
-
command: s.nativeEnum(
|
|
9193
|
+
command: s.nativeEnum(Ws),
|
|
9196
9194
|
span: R.z.optional(),
|
|
9197
9195
|
bounds: le.z.optional(),
|
|
9198
|
-
stamp:
|
|
9196
|
+
stamp: $.z.optional(),
|
|
9199
9197
|
keys: s.number().array().optional(),
|
|
9200
9198
|
chunkSize: s.number().optional()
|
|
9201
9199
|
}), bg = s.object({
|
|
9202
9200
|
variant: s.nativeEnum(yl),
|
|
9203
9201
|
ack: s.boolean(),
|
|
9204
|
-
command: s.nativeEnum(
|
|
9202
|
+
command: s.nativeEnum(Ws),
|
|
9205
9203
|
error: sn.optional().nullable(),
|
|
9206
|
-
frame:
|
|
9207
|
-
}), gl = class
|
|
9204
|
+
frame: qs.optional()
|
|
9205
|
+
}), gl = class Ss {
|
|
9208
9206
|
constructor(e, n) {
|
|
9209
|
-
l(this, "stream"), l(this, "adapter"), l(this, "value"), this.stream = new
|
|
9207
|
+
l(this, "stream"), l(this, "adapter"), l(this, "value"), this.stream = new Vs("Iterator", e), this.value = new ve(), this.adapter = n;
|
|
9210
9208
|
}
|
|
9211
9209
|
/**
|
|
9212
9210
|
* Opens the iterator, configuring it to iterate over the telemetry in the
|
|
@@ -9220,7 +9218,7 @@ const wg = s.object({
|
|
|
9220
9218
|
* @param opts - See {@link IteratorConfig}.
|
|
9221
9219
|
*/
|
|
9222
9220
|
static async _open(e, n, r, i, a = {}) {
|
|
9223
|
-
const o = await Or.open(r, n), c = await i.stream(
|
|
9221
|
+
const o = await Or.open(r, n), c = await i.stream(Ss.ENDPOINT, wg, bg), u = new Ss(c, o);
|
|
9224
9222
|
return await u.execute({
|
|
9225
9223
|
command: 0,
|
|
9226
9224
|
keys: o.keys,
|
|
@@ -9292,7 +9290,7 @@ const wg = s.object({
|
|
|
9292
9290
|
* channel or has accumulated an error.
|
|
9293
9291
|
*/
|
|
9294
9292
|
async seekLE(e) {
|
|
9295
|
-
return await this.execute({ command: 5, stamp: new
|
|
9293
|
+
return await this.execute({ command: 5, stamp: new $(e) });
|
|
9296
9294
|
}
|
|
9297
9295
|
/**
|
|
9298
9296
|
* Seeks the iterator to the first segment whose start is greater than or equal to
|
|
@@ -9303,7 +9301,7 @@ const wg = s.object({
|
|
|
9303
9301
|
* channel or has accumulated an error.
|
|
9304
9302
|
*/
|
|
9305
9303
|
async seekGE(e) {
|
|
9306
|
-
return await this.execute({ command: 6, stamp: new
|
|
9304
|
+
return await this.execute({ command: 6, stamp: new $(e) });
|
|
9307
9305
|
}
|
|
9308
9306
|
/**
|
|
9309
9307
|
* @returns true if the iterator value contains a valid segment, and fale otherwise.
|
|
@@ -9351,18 +9349,18 @@ class Og {
|
|
|
9351
9349
|
}
|
|
9352
9350
|
}
|
|
9353
9351
|
const Tg = s.object({ keys: s.number().array(), downsampleFactor: s.number() }), Sg = s.object({
|
|
9354
|
-
frame:
|
|
9352
|
+
frame: qs,
|
|
9355
9353
|
error: sn.optional().nullable()
|
|
9356
9354
|
}), Ng = "/frame/stream";
|
|
9357
|
-
class
|
|
9355
|
+
class Gs {
|
|
9358
9356
|
constructor(e, n) {
|
|
9359
|
-
l(this, "stream"), l(this, "adapter"), l(this, "downsampleFactor"), this.stream = new
|
|
9357
|
+
l(this, "stream"), l(this, "adapter"), l(this, "downsampleFactor"), this.stream = new Vs("Streamer", e), this.adapter = n, this.downsampleFactor = 1;
|
|
9360
9358
|
}
|
|
9361
9359
|
get keys() {
|
|
9362
9360
|
return this.adapter.keys;
|
|
9363
9361
|
}
|
|
9364
9362
|
static async _open(e, n, { channels: r, downsampleFactor: i }) {
|
|
9365
|
-
const a = await Or.open(e, r), o = await n.stream(Ng, Tg, Sg), c = new
|
|
9363
|
+
const a = await Or.open(e, r), o = await n.stream(Ng, Tg, Sg), c = new Gs(o, a);
|
|
9366
9364
|
o.send({ keys: a.keys, downsampleFactor: i ?? 1 });
|
|
9367
9365
|
const [, u] = await o.receive();
|
|
9368
9366
|
if (u != null) throw u;
|
|
@@ -9400,7 +9398,7 @@ class Tr extends et.Observer {
|
|
|
9400
9398
|
for await (const e of this.streamer) this.notify(e);
|
|
9401
9399
|
}
|
|
9402
9400
|
}
|
|
9403
|
-
var
|
|
9401
|
+
var Zs = /* @__PURE__ */ ((t) => (t[t.Open = 0] = "Open", t[t.Write = 1] = "Write", t[t.Commit = 2] = "Commit", t[t.Error = 3] = "Error", t[t.SetAuthority = 4] = "SetAuthority", t))(Zs || {}), Xt = /* @__PURE__ */ ((t) => (t[t.PersistStream = 1] = "PersistStream", t[t.Persist = 2] = "Persist", t[t.Stream = 3] = "Stream", t))(Xt || {});
|
|
9404
9402
|
const Ig = (t) => {
|
|
9405
9403
|
switch (t) {
|
|
9406
9404
|
case "persist":
|
|
@@ -9416,7 +9414,7 @@ const Ig = (t) => {
|
|
|
9416
9414
|
};
|
|
9417
9415
|
new R(-1);
|
|
9418
9416
|
const Eg = s.object({
|
|
9419
|
-
start:
|
|
9417
|
+
start: $.z.optional(),
|
|
9420
9418
|
controlSubject: ct.subjectZ.optional(),
|
|
9421
9419
|
keys: s.number().array().optional(),
|
|
9422
9420
|
authorities: ct.Authority.z.array().optional(),
|
|
@@ -9425,22 +9423,22 @@ const Eg = s.object({
|
|
|
9425
9423
|
enableAutoCommit: s.boolean().optional(),
|
|
9426
9424
|
autoIndexPersistInterval: R.z.optional()
|
|
9427
9425
|
}), kg = s.object({
|
|
9428
|
-
command: s.nativeEnum(
|
|
9426
|
+
command: s.nativeEnum(Zs),
|
|
9429
9427
|
config: Eg.optional(),
|
|
9430
|
-
frame:
|
|
9428
|
+
frame: qs.optional()
|
|
9431
9429
|
}), Ag = s.object({
|
|
9432
9430
|
ack: s.boolean(),
|
|
9433
|
-
command: s.nativeEnum(
|
|
9431
|
+
command: s.nativeEnum(Zs),
|
|
9434
9432
|
error: sn.optional().nullable()
|
|
9435
9433
|
});
|
|
9436
9434
|
var Ot;
|
|
9437
9435
|
let xg = (Ot = class {
|
|
9438
9436
|
constructor(t, e) {
|
|
9439
|
-
l(this, "stream"), l(this, "adapter"), this.stream = new
|
|
9437
|
+
l(this, "stream"), l(this, "adapter"), this.stream = new Vs("Writer", t), this.adapter = e;
|
|
9440
9438
|
}
|
|
9441
9439
|
static async _open(t, e, {
|
|
9442
9440
|
channels: n,
|
|
9443
|
-
start: r =
|
|
9441
|
+
start: r = $.now(),
|
|
9444
9442
|
authorities: i = ct.Authority.Absolute,
|
|
9445
9443
|
controlSubject: a,
|
|
9446
9444
|
mode: o = 1,
|
|
@@ -9448,11 +9446,11 @@ let xg = (Ot = class {
|
|
|
9448
9446
|
enableAutoCommit: u = !1,
|
|
9449
9447
|
autoIndexPersistInterval: h = R.SECOND
|
|
9450
9448
|
}) {
|
|
9451
|
-
const f = await
|
|
9449
|
+
const f = await zs.open(t, n), d = await e.stream(Ot.ENDPOINT, kg, Ag), A = new Ot(d, f);
|
|
9452
9450
|
return await A.execute({
|
|
9453
9451
|
command: 0,
|
|
9454
9452
|
config: {
|
|
9455
|
-
start: new
|
|
9453
|
+
start: new $(r),
|
|
9456
9454
|
keys: f.keys,
|
|
9457
9455
|
controlSubject: a,
|
|
9458
9456
|
authorities: O(i),
|
|
@@ -9482,7 +9480,7 @@ let xg = (Ot = class {
|
|
|
9482
9480
|
return this.stream.send({ command: 1, frame: n.toPayload() }), !0;
|
|
9483
9481
|
}
|
|
9484
9482
|
async setAuthority(t, e) {
|
|
9485
|
-
let n
|
|
9483
|
+
let n;
|
|
9486
9484
|
if (typeof t == "number" && e == null)
|
|
9487
9485
|
n = { keys: [], authorities: [t] };
|
|
9488
9486
|
else {
|
|
@@ -9521,7 +9519,7 @@ let xg = (Ot = class {
|
|
|
9521
9519
|
command: 3
|
|
9522
9520
|
/* Error */
|
|
9523
9521
|
});
|
|
9524
|
-
return t.error != null ?
|
|
9522
|
+
return t.error != null ? Ds(t.error) : null;
|
|
9525
9523
|
}
|
|
9526
9524
|
/**
|
|
9527
9525
|
* Closes the writer, raising any accumulated error encountered during operation.
|
|
@@ -9541,7 +9539,7 @@ let xg = (Ot = class {
|
|
|
9541
9539
|
get errorAccumulated() {
|
|
9542
9540
|
return this.stream.received();
|
|
9543
9541
|
}
|
|
9544
|
-
}, l(Ot, "ENDPOINT", "/frame/write"), Ot),
|
|
9542
|
+
}, l(Ot, "ENDPOINT", "/frame/write"), Ot), $g = class {
|
|
9545
9543
|
constructor(t, e, n) {
|
|
9546
9544
|
l(this, "streamClient"), l(this, "retriever"), l(this, "deleter"), this.streamClient = t, this.retriever = n, this.deleter = new gg(e);
|
|
9547
9545
|
}
|
|
@@ -9567,7 +9565,7 @@ let xg = (Ot = class {
|
|
|
9567
9565
|
return (Array.isArray(t) || typeof t != "object") && (t = { channels: t }), await xg._open(this.retriever, this.streamClient, t);
|
|
9568
9566
|
}
|
|
9569
9567
|
async openStreamer(t) {
|
|
9570
|
-
return (Array.isArray(t) || typeof t != "object") && (t = { channels: t, downsampleFactor: 1 }), await
|
|
9568
|
+
return (Array.isArray(t) || typeof t != "object") && (t = { channels: t, downsampleFactor: 1 }), await Gs._open(this.retriever, this.streamClient, t);
|
|
9571
9569
|
}
|
|
9572
9570
|
/**
|
|
9573
9571
|
* Writes telemetry to the given channel starting at the given timestamp.
|
|
@@ -9630,7 +9628,7 @@ let xg = (Ot = class {
|
|
|
9630
9628
|
});
|
|
9631
9629
|
}
|
|
9632
9630
|
};
|
|
9633
|
-
const
|
|
9631
|
+
const Cg = ct.Authority, Rg = ct.stateZ(s.number()), jg = (t) => {
|
|
9634
9632
|
var e, n;
|
|
9635
9633
|
return t.to == null ? `${(e = t.from) == null ? void 0 : e.resource} - ${(n = t.from) == null ? void 0 : n.subject.name} -> released` : t.from == null ? `${t.to.resource} - released -> ${t.to.subject.name} (${t.to.authority.toString()})` : `${t.to.resource} - ${t.from.subject.name} -> ${t.to.subject.name} (${t.to.authority.toString()})`;
|
|
9636
9634
|
};
|
|
@@ -9661,9 +9659,9 @@ let ml = class {
|
|
|
9661
9659
|
return new pl(t);
|
|
9662
9660
|
}
|
|
9663
9661
|
};
|
|
9664
|
-
const
|
|
9662
|
+
const $v = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9665
9663
|
__proto__: null,
|
|
9666
|
-
Authority:
|
|
9664
|
+
Authority: Cg,
|
|
9667
9665
|
Client: ml,
|
|
9668
9666
|
StateTracker: pl,
|
|
9669
9667
|
stateZ: Rg,
|
|
@@ -9674,11 +9672,11 @@ let Mg = class {
|
|
|
9674
9672
|
l(this, "tasks"), l(this, "racks"), l(this, "devices"), this.tasks = t, this.racks = e, this.devices = n;
|
|
9675
9673
|
}
|
|
9676
9674
|
};
|
|
9677
|
-
const cn = s.number(),
|
|
9675
|
+
const cn = s.number(), Js = s.object({
|
|
9678
9676
|
key: cn,
|
|
9679
9677
|
name: s.string()
|
|
9680
|
-
}), Dg =
|
|
9681
|
-
key:
|
|
9678
|
+
}), Dg = Js.partial({ key: !0 }), Ks = s.string(), Sr = s.object({
|
|
9679
|
+
key: Ks,
|
|
9682
9680
|
rack: cn,
|
|
9683
9681
|
name: s.string(),
|
|
9684
9682
|
make: s.string(),
|
|
@@ -9698,14 +9696,14 @@ const cn = s.number(), Ks = s.object({
|
|
|
9698
9696
|
), e != null && c.push(...o.get(e).series.flatMap((u) => r("set", u))), [c, c.length > 0];
|
|
9699
9697
|
};
|
|
9700
9698
|
return new Tr(i, a);
|
|
9701
|
-
}, Ug = "sy_device_set", Lg = "sy_device_delete",
|
|
9699
|
+
}, Ug = "sy_device_set", Lg = "sy_device_delete", Vr = "/hardware/device/retrieve", _g = "/hardware/device/create", Yg = "/hardware/device/delete", Fg = s.object({ devices: Pg.array() }), qg = s.object({ devices: Sr.array() }), zg = s.object({ keys: Ks.array() }), Vg = s.object({}), Wr = s.object({
|
|
9702
9700
|
search: s.string().optional(),
|
|
9703
9701
|
limit: s.number().optional(),
|
|
9704
9702
|
offset: s.number().optional(),
|
|
9705
|
-
keys:
|
|
9703
|
+
keys: Ks.array().optional(),
|
|
9706
9704
|
names: s.string().array().optional(),
|
|
9707
9705
|
makes: s.string().array().optional()
|
|
9708
|
-
}),
|
|
9706
|
+
}), Gr = s.object({ devices: we(Sr) });
|
|
9709
9707
|
let Wg = class {
|
|
9710
9708
|
constructor(t, e) {
|
|
9711
9709
|
l(this, "type", "device"), l(this, "client"), l(this, "frameClient"), this.client = t, this.frameClient = e;
|
|
@@ -9713,29 +9711,29 @@ let Wg = class {
|
|
|
9713
9711
|
async retrieve(t, e) {
|
|
9714
9712
|
const n = !Array.isArray(t), r = await v(
|
|
9715
9713
|
this.client,
|
|
9716
|
-
|
|
9714
|
+
Vr,
|
|
9717
9715
|
{ keys: O(t), ...e },
|
|
9718
|
-
|
|
9719
|
-
|
|
9716
|
+
Wr,
|
|
9717
|
+
Gr
|
|
9720
9718
|
);
|
|
9721
9719
|
return br("Device", t, r.devices, n), n ? r.devices[0] : r.devices;
|
|
9722
9720
|
}
|
|
9723
9721
|
async search(t, e) {
|
|
9724
9722
|
return (await v(
|
|
9725
9723
|
this.client,
|
|
9726
|
-
|
|
9724
|
+
Vr,
|
|
9727
9725
|
{ search: t, ...e },
|
|
9728
|
-
|
|
9729
|
-
|
|
9726
|
+
Wr,
|
|
9727
|
+
Gr
|
|
9730
9728
|
)).devices;
|
|
9731
9729
|
}
|
|
9732
9730
|
async page(t, e, n) {
|
|
9733
9731
|
return (await v(
|
|
9734
9732
|
this.client,
|
|
9735
|
-
|
|
9733
|
+
Vr,
|
|
9736
9734
|
{ offset: t, limit: e, ...n },
|
|
9737
|
-
|
|
9738
|
-
|
|
9735
|
+
Wr,
|
|
9736
|
+
Gr
|
|
9739
9737
|
)).devices;
|
|
9740
9738
|
}
|
|
9741
9739
|
async create(t) {
|
|
@@ -9774,18 +9772,18 @@ let Wg = class {
|
|
|
9774
9772
|
};
|
|
9775
9773
|
}
|
|
9776
9774
|
};
|
|
9777
|
-
const Gg = (t, e) => t === "delete" ? e.toStrings().map((n) => ({ variant: t, key: n, value: void 0 })) : e.parseJSON(Sr).map((n) => ({ variant: t, key: n.key, value: n })),
|
|
9775
|
+
const Gg = (t, e) => t === "delete" ? e.toStrings().map((n) => ({ variant: t, key: n, value: void 0 })) : e.parseJSON(Sr).map((n) => ({ variant: t, key: n.key, value: n })), Zr = "/hardware/rack/retrieve", Zg = "/hardware/rack/create", Jg = "/hardware/rack/delete", Jr = s.object({
|
|
9778
9776
|
keys: cn.array().optional(),
|
|
9779
9777
|
names: s.string().array().optional(),
|
|
9780
9778
|
search: s.string().optional(),
|
|
9781
9779
|
offset: s.number().optional(),
|
|
9782
9780
|
limit: s.number().optional()
|
|
9783
|
-
}),
|
|
9784
|
-
racks: we(
|
|
9781
|
+
}), Kr = s.object({
|
|
9782
|
+
racks: we(Js)
|
|
9785
9783
|
}), Kg = s.object({
|
|
9786
9784
|
racks: Dg.array()
|
|
9787
9785
|
}), Hg = s.object({
|
|
9788
|
-
racks:
|
|
9786
|
+
racks: Js.array()
|
|
9789
9787
|
}), Xg = s.object({
|
|
9790
9788
|
keys: cn.array()
|
|
9791
9789
|
}), Qg = s.object({});
|
|
@@ -9815,20 +9813,20 @@ let ep = class {
|
|
|
9815
9813
|
async search(t) {
|
|
9816
9814
|
const e = await v(
|
|
9817
9815
|
this.client,
|
|
9818
|
-
|
|
9816
|
+
Zr,
|
|
9819
9817
|
{ search: t },
|
|
9820
|
-
|
|
9821
|
-
|
|
9818
|
+
Jr,
|
|
9819
|
+
Kr
|
|
9822
9820
|
);
|
|
9823
9821
|
return this.sugar(e.racks);
|
|
9824
9822
|
}
|
|
9825
9823
|
async page(t, e) {
|
|
9826
9824
|
const n = await v(
|
|
9827
9825
|
this.client,
|
|
9828
|
-
|
|
9826
|
+
Zr,
|
|
9829
9827
|
{ offset: t, limit: e },
|
|
9830
|
-
|
|
9831
|
-
|
|
9828
|
+
Jr,
|
|
9829
|
+
Kr
|
|
9832
9830
|
);
|
|
9833
9831
|
return this.sugar(n.racks);
|
|
9834
9832
|
}
|
|
@@ -9838,10 +9836,10 @@ let ep = class {
|
|
|
9838
9836
|
number: "keys"
|
|
9839
9837
|
}), i = await v(
|
|
9840
9838
|
this.client,
|
|
9841
|
-
|
|
9839
|
+
Zr,
|
|
9842
9840
|
{ [e]: n },
|
|
9843
|
-
|
|
9844
|
-
|
|
9841
|
+
Jr,
|
|
9842
|
+
Kr
|
|
9845
9843
|
), a = this.sugar(i.racks);
|
|
9846
9844
|
return br("Rack", t, a, r), r ? a[0] : a;
|
|
9847
9845
|
}
|
|
@@ -9915,7 +9913,7 @@ class rp {
|
|
|
9915
9913
|
};
|
|
9916
9914
|
}
|
|
9917
9915
|
get ontologyID() {
|
|
9918
|
-
return new
|
|
9916
|
+
return new C({ type: "task", key: this.key });
|
|
9919
9917
|
}
|
|
9920
9918
|
async executeCommand(e, n) {
|
|
9921
9919
|
if (this.frameClient == null) throw mn;
|
|
@@ -9935,8 +9933,7 @@ class rp {
|
|
|
9935
9933
|
const h = ir.safeParse(u.at(-1).sy_task_state);
|
|
9936
9934
|
if (h.success) {
|
|
9937
9935
|
if (o = h.data, o.key === a) break;
|
|
9938
|
-
} else
|
|
9939
|
-
console.error(h.error);
|
|
9936
|
+
} else console.error(h.error);
|
|
9940
9937
|
}
|
|
9941
9938
|
return i.close(), o;
|
|
9942
9939
|
}
|
|
@@ -10132,7 +10129,7 @@ const vp = Ir.extend({ key: un.optional() }), Op = s.object({
|
|
|
10132
10129
|
id: pe,
|
|
10133
10130
|
labels: un.array(),
|
|
10134
10131
|
replace: s.boolean().optional()
|
|
10135
|
-
}), Np = wl.omit({ replace: !0 }),
|
|
10132
|
+
}), Np = wl.omit({ replace: !0 }), Hr = s.object({}), Ip = "/label/create", Ep = "/label/delete", kp = "/label/set", Ap = "/label/remove";
|
|
10136
10133
|
let xp = class {
|
|
10137
10134
|
constructor(t) {
|
|
10138
10135
|
l(this, "client"), this.client = t;
|
|
@@ -10152,7 +10149,7 @@ let xp = class {
|
|
|
10152
10149
|
Ep,
|
|
10153
10150
|
{ keys: O(t) },
|
|
10154
10151
|
Sp,
|
|
10155
|
-
|
|
10152
|
+
Hr
|
|
10156
10153
|
);
|
|
10157
10154
|
}
|
|
10158
10155
|
async set(t, e, { replace: n } = {}) {
|
|
@@ -10161,7 +10158,7 @@ let xp = class {
|
|
|
10161
10158
|
kp,
|
|
10162
10159
|
{ id: t, labels: e, replace: n },
|
|
10163
10160
|
wl,
|
|
10164
|
-
|
|
10161
|
+
Hr
|
|
10165
10162
|
);
|
|
10166
10163
|
}
|
|
10167
10164
|
async remove(t, e) {
|
|
@@ -10170,11 +10167,11 @@ let xp = class {
|
|
|
10170
10167
|
Ap,
|
|
10171
10168
|
{ id: t, labels: e },
|
|
10172
10169
|
Np,
|
|
10173
|
-
|
|
10170
|
+
Hr
|
|
10174
10171
|
);
|
|
10175
10172
|
}
|
|
10176
10173
|
};
|
|
10177
|
-
const
|
|
10174
|
+
const $p = "sy_label_set", Cp = "sy_label_delete";
|
|
10178
10175
|
let Rp = class {
|
|
10179
10176
|
constructor(t, e, n) {
|
|
10180
10177
|
l(this, "type", "label"), l(this, "retriever"), l(this, "writer"), l(this, "frameClient"), l(this, "ontology"), this.writer = new xp(t), this.retriever = new bp(t), this.frameClient = e, this.ontology = n;
|
|
@@ -10187,13 +10184,13 @@ let Rp = class {
|
|
|
10187
10184
|
return e ? n : n[0];
|
|
10188
10185
|
}
|
|
10189
10186
|
async retrieveFor(t) {
|
|
10190
|
-
return await this.retriever.retrieveFor(new
|
|
10187
|
+
return await this.retriever.retrieveFor(new C(t));
|
|
10191
10188
|
}
|
|
10192
10189
|
async label(t, e, n = {}) {
|
|
10193
|
-
await this.writer.set(new
|
|
10190
|
+
await this.writer.set(new C(t), e, n);
|
|
10194
10191
|
}
|
|
10195
10192
|
async removeLabels(t, e) {
|
|
10196
|
-
await this.writer.remove(new
|
|
10193
|
+
await this.writer.remove(new C(t), e);
|
|
10197
10194
|
}
|
|
10198
10195
|
async page(t, e) {
|
|
10199
10196
|
return await this.retriever.page(t, e);
|
|
@@ -10208,20 +10205,20 @@ let Rp = class {
|
|
|
10208
10205
|
async openChangeTracker() {
|
|
10209
10206
|
return await gt(
|
|
10210
10207
|
this.frameClient,
|
|
10211
|
-
Cp,
|
|
10212
10208
|
$p,
|
|
10209
|
+
Cp,
|
|
10213
10210
|
jp
|
|
10214
10211
|
);
|
|
10215
10212
|
}
|
|
10216
10213
|
async trackLabelsOf(t) {
|
|
10217
10214
|
const e = new et.Observer(), n = (await this.retrieveFor(t)).map((r) => ({
|
|
10218
|
-
id: new
|
|
10215
|
+
id: new C({ key: r.key, type: "label" }),
|
|
10219
10216
|
key: r.key,
|
|
10220
10217
|
name: r.name,
|
|
10221
10218
|
data: r
|
|
10222
10219
|
}));
|
|
10223
10220
|
return (await this.ontology.openDependentTracker({
|
|
10224
|
-
target: new
|
|
10221
|
+
target: new C(t),
|
|
10225
10222
|
dependents: n,
|
|
10226
10223
|
relationshipType: "labeled_by"
|
|
10227
10224
|
})).onChange(
|
|
@@ -10253,7 +10250,7 @@ const jp = (t, e) => t === "delete" ? e.toUUIDs().map((n) => ({ variant: t, key:
|
|
|
10253
10250
|
actual: t,
|
|
10254
10251
|
empty: n
|
|
10255
10252
|
};
|
|
10256
|
-
}, Ol = "range", Tl = "range-alias", Bp = (t) => new
|
|
10253
|
+
}, Ol = "range", Tl = "range-alias", Bp = (t) => new C({ type: Ol, key: t }), Mp = (t) => new C({ type: Tl, key: t }), Dp = "sy_range_alias_set", Pp = "sy_range_alias_delete", Up = s.object({
|
|
10257
10254
|
range: ye,
|
|
10258
10255
|
aliases: s.string().array()
|
|
10259
10256
|
}), Lp = s.object({
|
|
@@ -10346,15 +10343,15 @@ const Gp = s.object({
|
|
|
10346
10343
|
})), Kp = s.object({
|
|
10347
10344
|
range: ye,
|
|
10348
10345
|
keys: s.string().array()
|
|
10349
|
-
}),
|
|
10346
|
+
}), Hs = s.object({
|
|
10350
10347
|
range: ye,
|
|
10351
10348
|
key: s.string(),
|
|
10352
10349
|
value: s.string()
|
|
10353
10350
|
}), Hp = s.object({
|
|
10354
|
-
pairs: we(
|
|
10351
|
+
pairs: we(Hs)
|
|
10355
10352
|
}), Xp = s.object({
|
|
10356
10353
|
range: ye,
|
|
10357
|
-
pairs:
|
|
10354
|
+
pairs: Hs.array()
|
|
10358
10355
|
}), Qp = s.object({
|
|
10359
10356
|
range: ye,
|
|
10360
10357
|
keys: s.string().array()
|
|
@@ -10377,7 +10374,7 @@ const Gp = s.object({
|
|
|
10377
10374
|
}
|
|
10378
10375
|
async set(e, n = "") {
|
|
10379
10376
|
let r;
|
|
10380
|
-
|
|
10377
|
+
Ps(e) ? r = Object.entries(e).map(([i, a]) => ({
|
|
10381
10378
|
range: this.rangeKey,
|
|
10382
10379
|
key: i,
|
|
10383
10380
|
value: a
|
|
@@ -10406,7 +10403,7 @@ const Gp = s.object({
|
|
|
10406
10403
|
(e, n) => e === "delete" ? n.toStrings().map((r) => {
|
|
10407
10404
|
const [i, a] = r.split("<--->", 2);
|
|
10408
10405
|
return { variant: e, key: r, value: { range: i, key: a, value: "" } };
|
|
10409
|
-
}) : n.parseJSON(
|
|
10406
|
+
}) : n.parseJSON(Hs).map((r) => ({
|
|
10410
10407
|
variant: e,
|
|
10411
10408
|
key: `${r.range}${r.key}`,
|
|
10412
10409
|
value: r
|
|
@@ -10415,14 +10412,14 @@ const Gp = s.object({
|
|
|
10415
10412
|
}
|
|
10416
10413
|
};
|
|
10417
10414
|
l(Hn, "GET_ENDPOINT", "/range/kv/get"), l(Hn, "SET_ENDPOINT", "/range/kv/set"), l(Hn, "DELETE_ENDPOINT", "/range/kv/delete");
|
|
10418
|
-
let
|
|
10419
|
-
const
|
|
10415
|
+
let Ns = Hn;
|
|
10416
|
+
const Xr = (t) => new C({ type: "range", key: t });
|
|
10420
10417
|
class Sl {
|
|
10421
10418
|
constructor(e, n = le.ZERO, r, i, a, o, c, u, h, f, d) {
|
|
10422
10419
|
l(this, "key"), l(this, "name"), l(this, "kv"), l(this, "timeRange"), l(this, "color"), l(this, "channels"), l(this, "aliaser"), l(this, "frameClient"), l(this, "labelClient"), l(this, "ontologyClient"), l(this, "rangeClient"), this.key = r, this.name = e, this.timeRange = n, this.frameClient = a, this.color = i, this.kv = o, this.aliaser = c, this.channels = u, this.labelClient = h, this.ontologyClient = f, this.rangeClient = d;
|
|
10423
10420
|
}
|
|
10424
10421
|
get ontologyID() {
|
|
10425
|
-
return new
|
|
10422
|
+
return new C({ key: this.key, type: "range" });
|
|
10426
10423
|
}
|
|
10427
10424
|
get payload() {
|
|
10428
10425
|
return {
|
|
@@ -10434,8 +10431,7 @@ class Sl {
|
|
|
10434
10431
|
}
|
|
10435
10432
|
async setAlias(e, n) {
|
|
10436
10433
|
const r = await this.channels.retrieve(e);
|
|
10437
|
-
if (r.length === 0)
|
|
10438
|
-
throw new je(`Channel ${e} does not exist`);
|
|
10434
|
+
if (r.length === 0) throw new je(`Channel ${e} does not exist`);
|
|
10439
10435
|
await this.aliaser.set({ [r[0].key]: n });
|
|
10440
10436
|
}
|
|
10441
10437
|
async deleteAlias(...e) {
|
|
@@ -10464,17 +10460,17 @@ class Sl {
|
|
|
10464
10460
|
return await this.frameClient.read(this.timeRange, e);
|
|
10465
10461
|
}
|
|
10466
10462
|
async labels() {
|
|
10467
|
-
return await this.labelClient.retrieveFor(
|
|
10463
|
+
return await this.labelClient.retrieveFor(Xr(this.key));
|
|
10468
10464
|
}
|
|
10469
10465
|
async addLabel(...e) {
|
|
10470
|
-
await this.labelClient.label(
|
|
10466
|
+
await this.labelClient.label(Xr(this.key), e);
|
|
10471
10467
|
}
|
|
10472
10468
|
async removeLabel(...e) {
|
|
10473
|
-
await this.labelClient.removeLabels(
|
|
10469
|
+
await this.labelClient.removeLabels(Xr(this.key), e);
|
|
10474
10470
|
}
|
|
10475
10471
|
async openChildRangeTracker() {
|
|
10476
10472
|
const e = new et.Observer(), n = (await this.retrieveChildren()).map((i) => {
|
|
10477
|
-
const a = new
|
|
10473
|
+
const a = new C({ key: i.key, type: "range" });
|
|
10478
10474
|
return { id: a, key: a.toString(), name: i.name, data: i.payload };
|
|
10479
10475
|
}), r = await this.ontologyClient.openDependentTracker({
|
|
10480
10476
|
target: this.ontologyID,
|
|
@@ -10488,7 +10484,7 @@ class Sl {
|
|
|
10488
10484
|
async openParentRangeTracker() {
|
|
10489
10485
|
const e = new et.Observer(), n = await this.retrieveParent();
|
|
10490
10486
|
if (n == null) return null;
|
|
10491
|
-
const r = new
|
|
10487
|
+
const r = new C({ key: n.key, type: "range" }), i = { id: r, key: r.toString(), name: n.name, data: n.payload }, a = await this.ontologyClient.openDependentTracker({
|
|
10492
10488
|
target: this.ontologyID,
|
|
10493
10489
|
dependents: [i],
|
|
10494
10490
|
relationshipDirection: "to"
|
|
@@ -10545,7 +10541,7 @@ let Nl = class {
|
|
|
10545
10541
|
return o[0];
|
|
10546
10542
|
}
|
|
10547
10543
|
getKV(t) {
|
|
10548
|
-
return new
|
|
10544
|
+
return new Ns(t, this.unaryClient, this.frameClient);
|
|
10549
10545
|
}
|
|
10550
10546
|
async execRetrieve(t) {
|
|
10551
10547
|
const { ranges: e } = await v(
|
|
@@ -10573,7 +10569,7 @@ let Nl = class {
|
|
|
10573
10569
|
t.key,
|
|
10574
10570
|
t.color,
|
|
10575
10571
|
this.frameClient,
|
|
10576
|
-
new
|
|
10572
|
+
new Ns(t.key, this.unaryClient, this.frameClient),
|
|
10577
10573
|
new Wp(t.key, this.frameClient, this.unaryClient),
|
|
10578
10574
|
this.channels,
|
|
10579
10575
|
this.labelClient,
|
|
@@ -10648,11 +10644,11 @@ let Il = class {
|
|
|
10648
10644
|
);
|
|
10649
10645
|
}
|
|
10650
10646
|
};
|
|
10651
|
-
const
|
|
10647
|
+
const Cv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10652
10648
|
__proto__: null,
|
|
10653
10649
|
ALIAS_ONTOLOGY_TYPE: Tl,
|
|
10654
10650
|
Client: Nl,
|
|
10655
|
-
KV:
|
|
10651
|
+
KV: Ns,
|
|
10656
10652
|
ONTOLOGY_TYPE: Ol,
|
|
10657
10653
|
Range: Sl,
|
|
10658
10654
|
Writer: Il,
|
|
@@ -10673,11 +10669,11 @@ class fm {
|
|
|
10673
10669
|
this.unary.use(...e), this.stream.use(...e);
|
|
10674
10670
|
}
|
|
10675
10671
|
}
|
|
10676
|
-
const
|
|
10672
|
+
const Xs = s.string().uuid(), Qs = s.object({
|
|
10677
10673
|
key: s.string(),
|
|
10678
10674
|
name: s.string(),
|
|
10679
10675
|
data: yr.or(s.string().transform((t) => JSON.parse(t)))
|
|
10680
|
-
}), ym = s.object({ keys: s.string().array() }), gm = s.object({ linePlots:
|
|
10676
|
+
}), ym = s.object({ keys: s.string().array() }), gm = s.object({ linePlots: Qs.array() });
|
|
10681
10677
|
let pm = class {
|
|
10682
10678
|
constructor(t) {
|
|
10683
10679
|
l(this, "ENDPOINT", "/workspace/lineplot/retrieve"), l(this, "client"), this.client = t;
|
|
@@ -10693,24 +10689,24 @@ const We = s.string().uuid(), El = (t) => JSON.parse(t), kl = s.object({
|
|
|
10693
10689
|
layout: yr.or(s.string().transform((t) => El(t)))
|
|
10694
10690
|
}), Al = kl.omit({ layout: !0 }).extend({
|
|
10695
10691
|
layout: s.string().transform((t) => El(t))
|
|
10696
|
-
}), mm =
|
|
10692
|
+
}), mm = Qs.partial({ key: !0 }).transform((t) => ({
|
|
10697
10693
|
...t,
|
|
10698
10694
|
data: JSON.stringify(t.data)
|
|
10699
10695
|
})), wm = s.object({
|
|
10700
10696
|
workspace: We,
|
|
10701
10697
|
linePlots: mm.array()
|
|
10702
10698
|
}), bm = s.object({
|
|
10703
|
-
linePlots:
|
|
10699
|
+
linePlots: Qs.array()
|
|
10704
10700
|
}), vm = s.object({
|
|
10705
|
-
keys:
|
|
10701
|
+
keys: Xs.array()
|
|
10706
10702
|
}), Om = s.object({}), Tm = s.object({
|
|
10707
|
-
key:
|
|
10703
|
+
key: Xs,
|
|
10708
10704
|
name: s.string()
|
|
10709
10705
|
}), Sm = s.object({}), Nm = s.object({
|
|
10710
|
-
key:
|
|
10706
|
+
key: Xs,
|
|
10711
10707
|
data: s.string()
|
|
10712
10708
|
}), Im = s.object({}), Em = "/workspace/lineplot/create", km = "/workspace/lineplot/delete", Am = "/workspace/lineplot/rename", xm = "/workspace/lineplot/set-data";
|
|
10713
|
-
let
|
|
10709
|
+
let $m = class {
|
|
10714
10710
|
constructor(t) {
|
|
10715
10711
|
l(this, "client"), this.client = t;
|
|
10716
10712
|
}
|
|
@@ -10752,9 +10748,9 @@ let Cm = class {
|
|
|
10752
10748
|
Im
|
|
10753
10749
|
);
|
|
10754
10750
|
}
|
|
10755
|
-
},
|
|
10751
|
+
}, Cm = class {
|
|
10756
10752
|
constructor(t) {
|
|
10757
|
-
l(this, "writer"), l(this, "retriever"), this.writer = new
|
|
10753
|
+
l(this, "writer"), l(this, "retriever"), this.writer = new $m(t), this.retriever = new pm(t);
|
|
10758
10754
|
}
|
|
10759
10755
|
async create(t, e) {
|
|
10760
10756
|
return await this.writer.create(t, e);
|
|
@@ -10773,7 +10769,7 @@ let Cm = class {
|
|
|
10773
10769
|
await this.writer.delete(t);
|
|
10774
10770
|
}
|
|
10775
10771
|
};
|
|
10776
|
-
const
|
|
10772
|
+
const ei = s.string().uuid(), Rm = s.object({
|
|
10777
10773
|
key: s.string(),
|
|
10778
10774
|
name: s.string(),
|
|
10779
10775
|
data: yr.or(s.string().transform((t) => JSON.parse(t)))
|
|
@@ -10805,12 +10801,12 @@ const Dm = Rm.partial({ key: !0 }).transform((t) => ({
|
|
|
10805
10801
|
}), Um = s.object({
|
|
10806
10802
|
logs: xl.array()
|
|
10807
10803
|
}), Lm = s.object({
|
|
10808
|
-
keys:
|
|
10804
|
+
keys: ei.array()
|
|
10809
10805
|
}), _m = s.object({}), Ym = s.object({
|
|
10810
|
-
key:
|
|
10806
|
+
key: ei,
|
|
10811
10807
|
name: s.string()
|
|
10812
10808
|
}), Fm = s.object({}), qm = s.object({
|
|
10813
|
-
key:
|
|
10809
|
+
key: ei,
|
|
10814
10810
|
data: s.string()
|
|
10815
10811
|
}), zm = s.object({}), Vm = "/workspace/log/create", Wm = "/workspace/log/delete", Gm = "/workspace/log/rename", Zm = "/workspace/log/set-data";
|
|
10816
10812
|
let Jm = class {
|
|
@@ -10916,12 +10912,12 @@ const Er = s.string().uuid(), ew = s.object({
|
|
|
10916
10912
|
name: s.string(),
|
|
10917
10913
|
data: yr.or(s.string().transform((t) => JSON.parse(t))),
|
|
10918
10914
|
snapshot: s.boolean()
|
|
10919
|
-
}),
|
|
10915
|
+
}), ti = s.object({
|
|
10920
10916
|
key: s.string(),
|
|
10921
10917
|
name: s.string(),
|
|
10922
10918
|
snapshot: s.boolean(),
|
|
10923
10919
|
data: s.string().transform((t) => JSON.parse(t))
|
|
10924
|
-
}), tw = s.object({ keys: s.string().array() }), nw = s.object({ schematics:
|
|
10920
|
+
}), tw = s.object({ keys: s.string().array() }), nw = s.object({ schematics: ti.array() });
|
|
10925
10921
|
class rw {
|
|
10926
10922
|
constructor(e) {
|
|
10927
10923
|
l(this, "ENDPOINT", "/workspace/schematic/retrieve"), l(this, "client"), this.client = e;
|
|
@@ -10943,7 +10939,7 @@ const sw = ew.partial({ key: !0, snapshot: !0 }).transform((t) => ({
|
|
|
10943
10939
|
workspace: We,
|
|
10944
10940
|
schematics: sw.array()
|
|
10945
10941
|
}), aw = s.object({
|
|
10946
|
-
schematics:
|
|
10942
|
+
schematics: ti.array()
|
|
10947
10943
|
}), ow = s.object({
|
|
10948
10944
|
keys: Er.array()
|
|
10949
10945
|
}), lw = s.object({}), cw = s.object({
|
|
@@ -10957,7 +10953,7 @@ const sw = ew.partial({ key: !0, snapshot: !0 }).transform((t) => ({
|
|
|
10957
10953
|
name: s.string(),
|
|
10958
10954
|
snapshot: s.boolean()
|
|
10959
10955
|
}), yw = s.object({
|
|
10960
|
-
schematic:
|
|
10956
|
+
schematic: ti
|
|
10961
10957
|
}), gw = "/workspace/schematic/create", pw = "/workspace/schematic/delete", mw = "/workspace/schematic/rename", ww = "/workspace/schematic/set-data", bw = "/workspace/schematic/copy";
|
|
10962
10958
|
let vw = class {
|
|
10963
10959
|
constructor(t) {
|
|
@@ -11049,7 +11045,7 @@ const Tw = kl.partial({ key: !0 }).transform((t) => ({
|
|
|
11049
11045
|
}), Aw = s.object({}), xw = s.object({
|
|
11050
11046
|
key: We,
|
|
11051
11047
|
layout: s.string()
|
|
11052
|
-
}),
|
|
11048
|
+
}), $w = s.object({}), Cw = "/workspace/create", Rw = "/workspace/delete", jw = "/workspace/rename", Bw = "/workspace/set-layout";
|
|
11053
11049
|
class Mw {
|
|
11054
11050
|
constructor(e) {
|
|
11055
11051
|
l(this, "client"), this.client = e;
|
|
@@ -11057,7 +11053,7 @@ class Mw {
|
|
|
11057
11053
|
async create(e) {
|
|
11058
11054
|
return (await v(
|
|
11059
11055
|
this.client,
|
|
11060
|
-
|
|
11056
|
+
Cw,
|
|
11061
11057
|
{ workspaces: O(e) },
|
|
11062
11058
|
Sw,
|
|
11063
11059
|
Nw
|
|
@@ -11087,13 +11083,13 @@ class Mw {
|
|
|
11087
11083
|
Bw,
|
|
11088
11084
|
{ key: e, layout: JSON.stringify(n) },
|
|
11089
11085
|
xw,
|
|
11090
|
-
|
|
11086
|
+
$w
|
|
11091
11087
|
);
|
|
11092
11088
|
}
|
|
11093
11089
|
}
|
|
11094
11090
|
class Dw {
|
|
11095
11091
|
constructor(e) {
|
|
11096
|
-
l(this, "type", "workspace"), l(this, "schematic"), l(this, "linePlot"), l(this, "log"), l(this, "retriever"), l(this, "writer"), this.schematic = new Ow(e), this.linePlot = new
|
|
11092
|
+
l(this, "type", "workspace"), l(this, "schematic"), l(this, "linePlot"), l(this, "log"), l(this, "retriever"), l(this, "writer"), this.schematic = new Ow(e), this.linePlot = new Cm(e), this.retriever = new Qm(e), this.log = new Km(e), this.writer = new Mw(e);
|
|
11097
11093
|
}
|
|
11098
11094
|
async search(e) {
|
|
11099
11095
|
return await this.retriever.search(e);
|
|
@@ -11139,7 +11135,7 @@ const Pw = s.object({
|
|
|
11139
11135
|
secure: s.boolean().optional().default(!1),
|
|
11140
11136
|
name: s.string().optional()
|
|
11141
11137
|
});
|
|
11142
|
-
class Uw extends
|
|
11138
|
+
class Uw extends $g {
|
|
11143
11139
|
/**
|
|
11144
11140
|
* @param props.host - Hostname of a node in the cluster.
|
|
11145
11141
|
* @param props.port - Port of the node in the cluster.
|
|
@@ -11160,10 +11156,10 @@ class Uw extends Cg {
|
|
|
11160
11156
|
h.use(Df);
|
|
11161
11157
|
let f;
|
|
11162
11158
|
a != null && o != null && (f = new og(h.unary, { username: a, password: o }), h.use(f.middleware()));
|
|
11163
|
-
const d = new
|
|
11164
|
-
new
|
|
11159
|
+
const d = new Fs(
|
|
11160
|
+
new Ys(h.unary)
|
|
11165
11161
|
), A = new ul(h.unary, d);
|
|
11166
|
-
super(h.stream, h.unary, d), l(this, "createdAt"), l(this, "props"), l(this, "ranges"), l(this, "channels"), l(this, "auth"), l(this, "user"), l(this, "access"), l(this, "connectivity"), l(this, "ontology"), l(this, "workspaces"), l(this, "labels"), l(this, "hardware"), l(this, "control"), l(this, "transport"), l(this, "clientVersion", "0.
|
|
11162
|
+
super(h.stream, h.unary, d), l(this, "createdAt"), l(this, "props"), l(this, "ranges"), l(this, "channels"), l(this, "auth"), l(this, "user"), l(this, "access"), l(this, "connectivity"), l(this, "ontology"), l(this, "workspaces"), l(this, "labels"), l(this, "hardware"), l(this, "control"), l(this, "transport"), l(this, "clientVersion", "0.34.0"), this.createdAt = $.now(), this.props = n, this.auth = f, this.transport = h, this.channels = new cl(this, d, h.unary, A), this.connectivity = new fl(
|
|
11167
11163
|
h.unary,
|
|
11168
11164
|
c,
|
|
11169
11165
|
this.clientVersion,
|
|
@@ -11202,17 +11198,16 @@ const Rv = ct.Authority, va = (t, e, n = "") => {
|
|
|
11202
11198
|
const i = r.errors.map((a) => a.path.length === 0 ? a.message : `${a.path.join(".")}: ${a.message}`);
|
|
11203
11199
|
throw new Error(`${n} - ${i.join(`
|
|
11204
11200
|
`)}`);
|
|
11205
|
-
} else
|
|
11206
|
-
throw r;
|
|
11201
|
+
} else throw r;
|
|
11207
11202
|
}
|
|
11208
11203
|
};
|
|
11209
11204
|
var Lw = Object.defineProperty, _w = (t, e, n) => e in t ? Lw(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, ee = (t, e, n) => _w(t, typeof e != "symbol" ? e + "" : e, n);
|
|
11210
|
-
const
|
|
11205
|
+
const Is = class $l {
|
|
11211
11206
|
constructor(e, n, r = "", i = !1) {
|
|
11212
11207
|
ee(this, "_noop", !1), ee(this, "key"), ee(this, "path"), ee(this, "serviceName"), this.key = e, this.path = n, this.serviceName = r, this._noop = i;
|
|
11213
11208
|
}
|
|
11214
11209
|
child(e) {
|
|
11215
|
-
return new
|
|
11210
|
+
return new $l(e, this.extendPath(e), this.serviceName, this.noop);
|
|
11216
11211
|
}
|
|
11217
11212
|
extendPath(e) {
|
|
11218
11213
|
return `${this.path}.${e}`;
|
|
@@ -11221,17 +11216,17 @@ const Es = class Cl {
|
|
|
11221
11216
|
return this._noop;
|
|
11222
11217
|
}
|
|
11223
11218
|
};
|
|
11224
|
-
ee(
|
|
11225
|
-
let
|
|
11226
|
-
const
|
|
11227
|
-
const e =
|
|
11228
|
-
return ({ level: n }) =>
|
|
11219
|
+
ee(Is, "NOOP", new Is("", "", ""));
|
|
11220
|
+
let ni = Is;
|
|
11221
|
+
const Es = ["debug", "info", "warn", "error"], Yw = (t) => {
|
|
11222
|
+
const e = Es.indexOf(t);
|
|
11223
|
+
return ({ level: n }) => Es.indexOf(n) >= e;
|
|
11229
11224
|
}, Fw = (t) => {
|
|
11230
11225
|
const { include: e, exclude: n } = t;
|
|
11231
11226
|
return ({ path: r }) => !(e != null && !e.some((i) => r.startsWith(i)) || n != null && n.some((i) => r.startsWith(i)));
|
|
11232
|
-
},
|
|
11227
|
+
}, ks = class Cl {
|
|
11233
11228
|
constructor(e = {}) {
|
|
11234
|
-
ee(this, "meta",
|
|
11229
|
+
ee(this, "meta", ni.NOOP), ee(this, "filters");
|
|
11235
11230
|
const { filters: n = [] } = e;
|
|
11236
11231
|
this.filters = n;
|
|
11237
11232
|
}
|
|
@@ -11245,7 +11240,7 @@ const ks = ["debug", "info", "warn", "error"], Yw = (t) => {
|
|
|
11245
11240
|
);
|
|
11246
11241
|
}
|
|
11247
11242
|
child(e) {
|
|
11248
|
-
const n = new
|
|
11243
|
+
const n = new Cl({ filters: this.filters });
|
|
11249
11244
|
return n.meta = e, n;
|
|
11250
11245
|
}
|
|
11251
11246
|
debug(e, n, r = !1) {
|
|
@@ -11261,8 +11256,8 @@ const ks = ["debug", "info", "warn", "error"], Yw = (t) => {
|
|
|
11261
11256
|
!this.filter("error") && !r || (n == null ? console.error("ERROR", this.meta.path, e) : console.error("ERROR", this.meta.path, e, vn(n)));
|
|
11262
11257
|
}
|
|
11263
11258
|
};
|
|
11264
|
-
ee(
|
|
11265
|
-
let Rl =
|
|
11259
|
+
ee(ks, "NOOP", new ks());
|
|
11260
|
+
let Rl = ks;
|
|
11266
11261
|
const vn = (t) => typeof t == "function" ? t() : t;
|
|
11267
11262
|
var qw = typeof globalThis == "object" ? globalThis : typeof self == "object" ? self : typeof window == "object" ? window : typeof global == "object" ? global : {}, He = "1.9.0", Oa = /^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;
|
|
11268
11263
|
function zw(t) {
|
|
@@ -11305,7 +11300,7 @@ function zw(t) {
|
|
|
11305
11300
|
};
|
|
11306
11301
|
}
|
|
11307
11302
|
var Vw = zw(He), Ww = He.split(".")[0], Qt = Symbol.for("opentelemetry.js.api." + Ww), en = qw;
|
|
11308
|
-
function
|
|
11303
|
+
function ri(t, e, n, r) {
|
|
11309
11304
|
var i;
|
|
11310
11305
|
r === void 0 && (r = !1);
|
|
11311
11306
|
var a = en[Qt] = (i = en[Qt]) !== null && i !== void 0 ? i : {
|
|
@@ -11326,7 +11321,7 @@ function tn(t) {
|
|
|
11326
11321
|
if (!(!r || !Vw(r)))
|
|
11327
11322
|
return (n = en[Qt]) === null || n === void 0 ? void 0 : n[t];
|
|
11328
11323
|
}
|
|
11329
|
-
function
|
|
11324
|
+
function si(t, e) {
|
|
11330
11325
|
e.debug("@opentelemetry/api: Unregistering a global for " + t + " v" + He + ".");
|
|
11331
11326
|
var n = en[Qt];
|
|
11332
11327
|
n && delete n[t];
|
|
@@ -11451,10 +11446,10 @@ var Hw = function(t, e) {
|
|
|
11451
11446
|
var A = (u = new Error().stack) !== null && u !== void 0 ? u : "<failed to generate stacktrace>";
|
|
11452
11447
|
f.warn("Current logger will be overwritten from " + A), d.warn("Current logger will overwrite one already registered from " + A);
|
|
11453
11448
|
}
|
|
11454
|
-
return
|
|
11449
|
+
return ri("diag", d, n, !0);
|
|
11455
11450
|
};
|
|
11456
11451
|
n.setLogger = r, n.disable = function() {
|
|
11457
|
-
|
|
11452
|
+
si(Qw, n);
|
|
11458
11453
|
}, n.createComponentLogger = function(i) {
|
|
11459
11454
|
return new Jw(i);
|
|
11460
11455
|
}, n.verbose = e("verbose"), n.debug = e("debug"), n.info = e("info"), n.warn = e("warn"), n.error = e("error");
|
|
@@ -11628,7 +11623,7 @@ var ib = (
|
|
|
11628
11623
|
if (arguments.length === 2) for (var r = 0, i = e.length, a; r < i; r++)
|
|
11629
11624
|
(a || !(r in e)) && (a || (a = Array.prototype.slice.call(e, 0, r)), a[r] = e[r]);
|
|
11630
11625
|
return t.concat(a || Array.prototype.slice.call(e));
|
|
11631
|
-
},
|
|
11626
|
+
}, Qr = "context", yb = new hb(), jl = (
|
|
11632
11627
|
/** @class */
|
|
11633
11628
|
function() {
|
|
11634
11629
|
function t() {
|
|
@@ -11636,7 +11631,7 @@ var ib = (
|
|
|
11636
11631
|
return t.getInstance = function() {
|
|
11637
11632
|
return this._instance || (this._instance = new t()), this._instance;
|
|
11638
11633
|
}, t.prototype.setGlobalContextManager = function(e) {
|
|
11639
|
-
return
|
|
11634
|
+
return ri(Qr, e, nn.instance());
|
|
11640
11635
|
}, t.prototype.active = function() {
|
|
11641
11636
|
return this._getContextManager().active();
|
|
11642
11637
|
}, t.prototype.with = function(e, n, r) {
|
|
@@ -11646,15 +11641,15 @@ var ib = (
|
|
|
11646
11641
|
}, t.prototype.bind = function(e, n) {
|
|
11647
11642
|
return this._getContextManager().bind(e, n);
|
|
11648
11643
|
}, t.prototype._getContextManager = function() {
|
|
11649
|
-
return tn(
|
|
11644
|
+
return tn(Qr) || yb;
|
|
11650
11645
|
}, t.prototype.disable = function() {
|
|
11651
|
-
this._getContextManager().disable(),
|
|
11646
|
+
this._getContextManager().disable(), si(Qr, nn.instance());
|
|
11652
11647
|
}, t;
|
|
11653
11648
|
}()
|
|
11654
|
-
),
|
|
11649
|
+
), As;
|
|
11655
11650
|
(function(t) {
|
|
11656
11651
|
t[t.UNSET = 0] = "UNSET", t[t.OK = 1] = "OK", t[t.ERROR = 2] = "ERROR";
|
|
11657
|
-
})(
|
|
11652
|
+
})(As || (As = {}));
|
|
11658
11653
|
var gb = jl.getInstance(), pb = (
|
|
11659
11654
|
/** @class */
|
|
11660
11655
|
function() {
|
|
@@ -11667,20 +11662,20 @@ var gb = jl.getInstance(), pb = (
|
|
|
11667
11662
|
return [];
|
|
11668
11663
|
}, t;
|
|
11669
11664
|
}()
|
|
11670
|
-
),
|
|
11665
|
+
), ii = sb("OpenTelemetry Baggage Key");
|
|
11671
11666
|
function Bl(t) {
|
|
11672
|
-
return t.getValue(
|
|
11667
|
+
return t.getValue(ii) || void 0;
|
|
11673
11668
|
}
|
|
11674
11669
|
function mb() {
|
|
11675
11670
|
return Bl(jl.getInstance().active());
|
|
11676
11671
|
}
|
|
11677
11672
|
function wb(t, e) {
|
|
11678
|
-
return t.setValue(
|
|
11673
|
+
return t.setValue(ii, e);
|
|
11679
11674
|
}
|
|
11680
11675
|
function bb(t) {
|
|
11681
|
-
return t.deleteValue(
|
|
11676
|
+
return t.deleteValue(ii);
|
|
11682
11677
|
}
|
|
11683
|
-
var
|
|
11678
|
+
var es = "propagation", vb = new pb(), Ob = (
|
|
11684
11679
|
/** @class */
|
|
11685
11680
|
function() {
|
|
11686
11681
|
function t() {
|
|
@@ -11689,7 +11684,7 @@ var ts = "propagation", vb = new pb(), Ob = (
|
|
|
11689
11684
|
return t.getInstance = function() {
|
|
11690
11685
|
return this._instance || (this._instance = new t()), this._instance;
|
|
11691
11686
|
}, t.prototype.setGlobalPropagator = function(e) {
|
|
11692
|
-
return
|
|
11687
|
+
return ri(es, e, nn.instance());
|
|
11693
11688
|
}, t.prototype.inject = function(e, n, r) {
|
|
11694
11689
|
return r === void 0 && (r = lb), this._getGlobalPropagator().inject(e, n, r);
|
|
11695
11690
|
}, t.prototype.extract = function(e, n, r) {
|
|
@@ -11697,15 +11692,15 @@ var ts = "propagation", vb = new pb(), Ob = (
|
|
|
11697
11692
|
}, t.prototype.fields = function() {
|
|
11698
11693
|
return this._getGlobalPropagator().fields();
|
|
11699
11694
|
}, t.prototype.disable = function() {
|
|
11700
|
-
|
|
11695
|
+
si(es, nn.instance());
|
|
11701
11696
|
}, t.prototype._getGlobalPropagator = function() {
|
|
11702
|
-
return tn(
|
|
11697
|
+
return tn(es) || vb;
|
|
11703
11698
|
}, t;
|
|
11704
11699
|
}()
|
|
11705
11700
|
), Tb = Ob.getInstance();
|
|
11706
|
-
const Ta = ["bench", "debug", "prod"], Sb = (t) => (e) => Ta.indexOf(e) >= Ta.indexOf(t),
|
|
11701
|
+
const Ta = ["bench", "debug", "prod"], Sb = (t) => (e) => Ta.indexOf(e) >= Ta.indexOf(t), xs = class Ml {
|
|
11707
11702
|
constructor(e, n = Sb("debug")) {
|
|
11708
|
-
ee(this, "meta",
|
|
11703
|
+
ee(this, "meta", ni.NOOP), ee(this, "tracer"), ee(this, "filter"), this.tracer = e, this.filter = n;
|
|
11709
11704
|
}
|
|
11710
11705
|
child(e) {
|
|
11711
11706
|
const n = new Ml(this.tracer, this.filter);
|
|
@@ -11780,8 +11775,8 @@ const Ta = ["bench", "debug", "prod"], Sb = (t) => (e) => Ta.indexOf(e) >= Ta.in
|
|
|
11780
11775
|
});
|
|
11781
11776
|
}
|
|
11782
11777
|
};
|
|
11783
|
-
ee(
|
|
11784
|
-
let Dl =
|
|
11778
|
+
ee(xs, "NOOP", new xs());
|
|
11779
|
+
let Dl = xs;
|
|
11785
11780
|
class Pl {
|
|
11786
11781
|
constructor(e, n) {
|
|
11787
11782
|
ee(this, "key"), ee(this, "otel"), this.key = e, this.otel = n;
|
|
@@ -11790,7 +11785,7 @@ class Pl {
|
|
|
11790
11785
|
this.otel.setAttribute(e, n);
|
|
11791
11786
|
}
|
|
11792
11787
|
recordError(e) {
|
|
11793
|
-
e != null && (this.otel.recordException(e), this.otel.setStatus({ code:
|
|
11788
|
+
e != null && (this.otel.recordException(e), this.otel.setStatus({ code: As.ERROR }));
|
|
11794
11789
|
}
|
|
11795
11790
|
}
|
|
11796
11791
|
class Ul {
|
|
@@ -11811,7 +11806,7 @@ const $s = class Ll {
|
|
|
11811
11806
|
noop: a = !1,
|
|
11812
11807
|
__meta: o
|
|
11813
11808
|
}) {
|
|
11814
|
-
ee(this, "meta"), ee(this, "T"), ee(this, "L"), this.meta = o ?? new
|
|
11809
|
+
ee(this, "meta"), ee(this, "T"), ee(this, "L"), this.meta = o ?? new ni(e, e, n, a), this.T = i.child(this.meta), this.L = r.child(this.meta);
|
|
11815
11810
|
}
|
|
11816
11811
|
child(e) {
|
|
11817
11812
|
const n = this.meta.child(e);
|
|
@@ -11823,7 +11818,7 @@ let _l = $s;
|
|
|
11823
11818
|
const Nb = _l.NOOP, Ib = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11824
11819
|
__proto__: null,
|
|
11825
11820
|
Instrumentation: _l,
|
|
11826
|
-
LOG_LEVELS:
|
|
11821
|
+
LOG_LEVELS: Es,
|
|
11827
11822
|
Logger: Rl,
|
|
11828
11823
|
NOOP: Nb,
|
|
11829
11824
|
NoopSpan: Ul,
|
|
@@ -11950,7 +11945,7 @@ function Yl(t, e) {
|
|
|
11950
11945
|
return n;
|
|
11951
11946
|
return -1;
|
|
11952
11947
|
}
|
|
11953
|
-
var
|
|
11948
|
+
var $b = function(t, e, n, r) {
|
|
11954
11949
|
function i(a) {
|
|
11955
11950
|
return a instanceof n ? a : new n(function(o) {
|
|
11956
11951
|
o(a);
|
|
@@ -11977,12 +11972,12 @@ var Cb = function(t, e, n, r) {
|
|
|
11977
11972
|
h((r = r.apply(t, e || [])).next());
|
|
11978
11973
|
});
|
|
11979
11974
|
};
|
|
11980
|
-
class
|
|
11975
|
+
class Cb {
|
|
11981
11976
|
constructor(e) {
|
|
11982
11977
|
this._semaphore = new Ab(1, e);
|
|
11983
11978
|
}
|
|
11984
11979
|
acquire() {
|
|
11985
|
-
return
|
|
11980
|
+
return $b(this, arguments, void 0, function* (e = 0) {
|
|
11986
11981
|
const [, n] = yield this._semaphore.acquire(1, e);
|
|
11987
11982
|
return n;
|
|
11988
11983
|
});
|
|
@@ -12113,7 +12108,7 @@ class Fl {
|
|
|
12113
12108
|
get _schema() {
|
|
12114
12109
|
if (this.schema == null)
|
|
12115
12110
|
throw new Q(
|
|
12116
|
-
`[AetherLeaf] - expected subclass to define component schema, but none was found.
|
|
12111
|
+
`[AetherLeaf] - expected subclass to define component schema, but none was found.
|
|
12117
12112
|
Make sure to defne a property 'schema' on the class.`
|
|
12118
12113
|
);
|
|
12119
12114
|
return this.schema;
|
|
@@ -12161,8 +12156,7 @@ class Fl {
|
|
|
12161
12156
|
this._state != null ? this.instrumentation.L.debug("updating state", () => ({
|
|
12162
12157
|
diff: mc.difference(this.state, a)
|
|
12163
12158
|
})) : this.instrumentation.L.debug("setting initial state", { state: i }), this._prevState = this._state ?? a, this._state = a;
|
|
12164
|
-
} else
|
|
12165
|
-
this.instrumentation.L.debug("updating context");
|
|
12159
|
+
} else this.instrumentation.L.debug("updating context");
|
|
12166
12160
|
await this.afterUpdate();
|
|
12167
12161
|
}
|
|
12168
12162
|
}
|
|
@@ -12277,7 +12271,7 @@ class Ar extends Fl {
|
|
|
12277
12271
|
const [i, ...a] = n;
|
|
12278
12272
|
if (i == null)
|
|
12279
12273
|
throw new Error(
|
|
12280
|
-
`Composite ${this.type}:${this.key} received an empty path
|
|
12274
|
+
`Composite ${this.type}:${this.key} received an empty path${r != null ? ` for ${r}` : ""}`
|
|
12281
12275
|
);
|
|
12282
12276
|
return [i, a];
|
|
12283
12277
|
}
|
|
@@ -12316,7 +12310,7 @@ const Rb = s.object({}), Re = class Re extends Ar {
|
|
|
12316
12310
|
super(o);
|
|
12317
12311
|
U(this, "wrap");
|
|
12318
12312
|
U(this, "schema", Re.schema);
|
|
12319
|
-
U(this, "mu", new
|
|
12313
|
+
U(this, "mu", new Cb());
|
|
12320
12314
|
this.mu.runExclusive(async () => await this.internalUpdate(o)), this.wrap = n, this.wrap.handle((c) => {
|
|
12321
12315
|
this.mu.runExclusive(async () => await this.handle(c));
|
|
12322
12316
|
});
|
|
@@ -12392,14 +12386,14 @@ const Bv = (t) => t.get(ql), Mv = {
|
|
|
12392
12386
|
data: s.record(s.unknown()).optional()
|
|
12393
12387
|
}), Lb = s.object({
|
|
12394
12388
|
statuses: Ub.array()
|
|
12395
|
-
}),
|
|
12396
|
-
class
|
|
12389
|
+
}), ai = "status.aggregator";
|
|
12390
|
+
class Cs extends Ar {
|
|
12397
12391
|
constructor() {
|
|
12398
12392
|
super(...arguments);
|
|
12399
12393
|
U(this, "schema", Lb);
|
|
12400
12394
|
}
|
|
12401
12395
|
async afterUpdate() {
|
|
12402
|
-
this.ctx.set(
|
|
12396
|
+
this.ctx.set(ai, this);
|
|
12403
12397
|
}
|
|
12404
12398
|
add(n) {
|
|
12405
12399
|
this.setState((r) => ({
|
|
@@ -12408,16 +12402,16 @@ class Rs extends Ar {
|
|
|
12408
12402
|
}));
|
|
12409
12403
|
}
|
|
12410
12404
|
}
|
|
12411
|
-
U(
|
|
12405
|
+
U(Cs, "TYPE", "status.Aggregator");
|
|
12412
12406
|
const Dv = (t) => {
|
|
12413
|
-
const e = t.get(
|
|
12407
|
+
const e = t.get(ai);
|
|
12414
12408
|
return e.add.bind(e);
|
|
12415
12409
|
}, Pv = (t) => {
|
|
12416
|
-
const e = t.getOptional(
|
|
12410
|
+
const e = t.getOptional(ai);
|
|
12417
12411
|
return e != null ? e.add.bind(e) : () => {
|
|
12418
12412
|
};
|
|
12419
12413
|
}, Uv = {
|
|
12420
|
-
[
|
|
12414
|
+
[Cs.TYPE]: Cs
|
|
12421
12415
|
};
|
|
12422
12416
|
export {
|
|
12423
12417
|
Ub as $,
|
|
@@ -12427,7 +12421,7 @@ export {
|
|
|
12427
12421
|
Qb as D,
|
|
12428
12422
|
Kt as E,
|
|
12429
12423
|
Zb as F,
|
|
12430
|
-
|
|
12424
|
+
ui as G,
|
|
12431
12425
|
Pb as H,
|
|
12432
12426
|
Ib as I,
|
|
12433
12427
|
Qn as J,
|
|
@@ -12435,14 +12429,14 @@ export {
|
|
|
12435
12429
|
au as L,
|
|
12436
12430
|
Oe as M,
|
|
12437
12431
|
le as N,
|
|
12438
|
-
|
|
12432
|
+
Cb as O,
|
|
12439
12433
|
or as P,
|
|
12440
12434
|
Jb as Q,
|
|
12441
12435
|
Mv as R,
|
|
12442
12436
|
vu as S,
|
|
12443
12437
|
Nc as T,
|
|
12444
12438
|
je as U,
|
|
12445
|
-
|
|
12439
|
+
$c as V,
|
|
12446
12440
|
va as W,
|
|
12447
12441
|
Kb as X,
|
|
12448
12442
|
Fl as Y,
|
|
@@ -12450,14 +12444,14 @@ export {
|
|
|
12450
12444
|
mc as _,
|
|
12451
12445
|
wu as a,
|
|
12452
12446
|
Rv as a0,
|
|
12453
|
-
|
|
12447
|
+
$v as a1,
|
|
12454
12448
|
xv as a2,
|
|
12455
12449
|
Dv as a3,
|
|
12456
|
-
|
|
12450
|
+
$ as a4,
|
|
12457
12451
|
fv as a5,
|
|
12458
12452
|
Pv as a6,
|
|
12459
12453
|
sv as a7,
|
|
12460
|
-
|
|
12454
|
+
Cv as a8,
|
|
12461
12455
|
Db as a9,
|
|
12462
12456
|
gv as aa,
|
|
12463
12457
|
pv as ab,
|
|
@@ -12470,7 +12464,7 @@ export {
|
|
|
12470
12464
|
ce as ai,
|
|
12471
12465
|
cr as aj,
|
|
12472
12466
|
za as ak,
|
|
12473
|
-
|
|
12467
|
+
Cs as al,
|
|
12474
12468
|
Lb as am,
|
|
12475
12469
|
yv as an,
|
|
12476
12470
|
Nv as b,
|
|
@@ -12485,7 +12479,7 @@ export {
|
|
|
12485
12479
|
bv as k,
|
|
12486
12480
|
cv as l,
|
|
12487
12481
|
Ov as m,
|
|
12488
|
-
|
|
12482
|
+
li as n,
|
|
12489
12483
|
W as o,
|
|
12490
12484
|
su as p,
|
|
12491
12485
|
Uw as q,
|