@synnaxlabs/pluto 0.44.5 → 0.44.7
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-BDoJWl9g.cjs → Animated-D5LYKEkW.cjs} +1 -1
- package/dist/{Animated-fI-NFaha.js → Animated-DdcRuSba.js} +2 -2
- package/dist/Editable-7Abx7gK5.cjs +92 -0
- package/dist/{Editable-C1g_CFYk.js → Editable-BrtvNf66.js} +11315 -11270
- package/dist/{LinePlot-Ck0rhtFk.js → LinePlot-BIZ1E3Rb.js} +423 -420
- package/dist/LinePlot-DslwDvAo.cjs +53 -0
- package/dist/{Toggle-DUKDeqpe.cjs → Toggle-BVFmU1mL.cjs} +1 -1
- package/dist/{Toggle-DEJ8Uvun.js → Toggle-DfINNQZ3.js} +1 -1
- package/dist/{Video-B6tujjr8.js → Video-CMuBiBcp.js} +1 -1
- package/dist/{Video-BjRd9sFv.cjs → Video-CbaEeyGH.cjs} +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-DvIPI3Qm.js → css-BlHGoCgb.js} +578 -559
- package/dist/css-CZ_XGkIB.cjs +8 -0
- package/dist/css.cjs +1 -1
- package/dist/css.js +2 -2
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +1 -1
- package/dist/{eraser-CnRJY__h.js → eraser-BstNvEkO.js} +1940 -1889
- package/dist/eraser-DiJNbabo.cjs +63 -0
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +13 -13
- package/dist/{external-DKh0JhWO.cjs → external-B33LW5pz.cjs} +1 -1
- package/dist/{external-Dfr7xymv.js → external-BNwo0Mju.js} +3 -3
- package/dist/{external-CAAPXpVr.cjs → external-C3hm9xgd.cjs} +1 -1
- package/dist/external-CE5Gf1U4.cjs +1 -0
- package/dist/{external-D6hAP7eJ.js → external-CSkXMvdW.js} +7 -7
- package/dist/{external-R9a28aP6.js → external-C_25EtbW.js} +31 -31
- package/dist/{external-dew29Q0v.js → external-ClD0dLdB.js} +2 -2
- package/dist/{external-CKhbbig_.js → external-CoEPLcYb.js} +12 -12
- package/dist/{external-DwRvB5ZT.cjs → external-CoVeaXHg.cjs} +1 -1
- package/dist/{external-CNF5TNBY.cjs → external-Cs-XdMNw.cjs} +1 -1
- package/dist/{external-BzV_PGNe.js → external-CsZA1s33.js} +2 -2
- package/dist/{external-Db9iKa8k.js → external-CtRU4mkG.js} +3 -3
- package/dist/{external-D98a3YQJ.cjs → external-D-FHwqls.cjs} +1 -1
- package/dist/{external-BS9S-b49.cjs → external-D91gCQ3U.cjs} +1 -1
- package/dist/external-DE-uFhwW.cjs +1 -0
- package/dist/{external-DOEaBrpz.cjs → external-DSkHe-2Y.cjs} +1 -1
- package/dist/{external-DNO3FJLl.cjs → external-DXm6LsSg.cjs} +1 -1
- package/dist/{external-C2iqWGd2.js → external-DkZwoQZk.js} +29 -29
- package/dist/external-Ds3Wz9sk.js +44 -0
- package/dist/{external-B3dPSZUg.js → external-FrSPoRvt.js} +2 -2
- package/dist/{external-DRuZ24L7.js → external-GS2AbOOd.js} +6 -6
- package/dist/{external-Blrrgnzw.cjs → external-IBErJ3kF.cjs} +1 -1
- package/dist/{external-GR-20z_c.js → external-J5kFGShS.js} +20 -20
- package/dist/{external-Daage1AI.js → external-V3Tbt95R.js} +10 -10
- package/dist/{external-BenP6Hcm.cjs → external-mX8u0eSb.cjs} +1 -1
- package/dist/{external-BVDQNHbo.cjs → external-vdf1a_j1.cjs} +1 -1
- package/dist/flex.cjs +1 -1
- package/dist/flex.js +1 -1
- package/dist/{fontString-CW0wLG5g.js → fontString-Ca1-oixk.js} +2 -2
- package/dist/{fontString-aK--tYMM.cjs → fontString-Cp4X6CqQ.cjs} +1 -1
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.js +6521 -6434
- 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/pluto.css +1 -1
- package/dist/src/channel/LinePlot.d.ts +0 -4
- package/dist/src/channel/LinePlot.d.ts.map +1 -1
- package/dist/src/channel/queries.d.ts +13 -13
- package/dist/src/channel/queries.d.ts.map +1 -1
- package/dist/src/dialog/Dialog.d.ts.map +1 -1
- package/dist/src/dialog/Frame.d.ts +13 -7
- package/dist/src/dialog/Frame.d.ts.map +1 -1
- package/dist/src/dialog/position.d.ts +22 -8
- package/dist/src/dialog/position.d.ts.map +1 -1
- package/dist/src/dialog/position.spec.d.ts +2 -0
- package/dist/src/dialog/position.spec.d.ts.map +1 -0
- package/dist/src/flux/core/store.d.ts +2 -0
- package/dist/src/flux/core/store.d.ts.map +1 -1
- package/dist/src/flux/list.d.ts +9 -2
- package/dist/src/flux/list.d.ts.map +1 -1
- package/dist/src/group/index.d.ts +2 -0
- package/dist/src/group/index.d.ts.map +1 -0
- package/dist/src/group/queries.d.ts +35 -0
- package/dist/src/group/queries.d.ts.map +1 -0
- package/dist/src/group/queries.spec.d.ts +2 -0
- package/dist/src/group/queries.spec.d.ts.map +1 -0
- package/dist/src/hardware/device/queries.d.ts +1 -1
- package/dist/src/hardware/device/queries.d.ts.map +1 -1
- package/dist/src/hardware/rack/queries.d.ts +1 -1
- package/dist/src/hardware/rack/queries.d.ts.map +1 -1
- package/dist/src/hardware/task/queries.d.ts +1 -1
- package/dist/src/hardware/task/queries.d.ts.map +1 -1
- package/dist/src/hooks/index.d.ts +0 -2
- package/dist/src/hooks/index.d.ts.map +1 -1
- package/dist/src/hooks/useDestructors.d.ts.map +1 -1
- package/dist/src/hooks/useDestructors.spec.d.ts +2 -0
- package/dist/src/hooks/useDestructors.spec.d.ts.map +1 -0
- package/dist/src/hooks/useResize.d.ts +1 -0
- package/dist/src/hooks/useResize.d.ts.map +1 -1
- package/dist/src/icon/registry.d.ts +1 -0
- package/dist/src/icon/registry.d.ts.map +1 -1
- package/dist/src/label/queries.d.ts +1 -1
- package/dist/src/label/queries.d.ts.map +1 -1
- package/dist/src/menu/ContextMenu.d.ts +1 -1
- package/dist/src/menu/ContextMenu.d.ts.map +1 -1
- package/dist/src/ontology/queries.d.ts +2 -2
- package/dist/src/ontology/queries.d.ts.map +1 -1
- package/dist/src/pluto/Pluto.d.ts +2 -0
- package/dist/src/pluto/Pluto.d.ts.map +1 -1
- package/dist/src/ranger/aether/queries.d.ts +1 -1
- package/dist/src/ranger/aether/queries.d.ts.map +1 -1
- package/dist/src/ranger/queries.d.ts +2 -2
- package/dist/src/ranger/queries.d.ts.map +1 -1
- package/dist/src/state/state.d.ts.map +1 -1
- package/dist/src/telem/control/aether/controller.d.ts +2 -2
- package/dist/src/telem/control/aether/legend.d.ts +2 -2
- package/dist/src/testutil/Synnax.d.ts +1 -1
- package/dist/src/testutil/Synnax.d.ts.map +1 -1
- package/dist/src/vis/legend/Container.d.ts +3 -29
- package/dist/src/vis/legend/Container.d.ts.map +1 -1
- package/dist/src/vis/legend/Entries.d.ts +22 -0
- package/dist/src/vis/legend/Entries.d.ts.map +1 -0
- package/dist/src/vis/legend/Grouped.d.ts +15 -0
- package/dist/src/vis/legend/Grouped.d.ts.map +1 -0
- package/dist/src/vis/legend/Simple.d.ts +5 -19
- package/dist/src/vis/legend/Simple.d.ts.map +1 -1
- package/dist/src/vis/legend/external.d.ts +1 -0
- package/dist/src/vis/legend/external.d.ts.map +1 -1
- package/dist/src/vis/light/aether/light.d.ts +4 -5
- package/dist/src/vis/light/aether/light.d.ts.map +1 -1
- package/dist/src/vis/light/use.d.ts +2 -2
- package/dist/src/vis/light/use.d.ts.map +1 -1
- package/dist/src/vis/lineplot/Legend.d.ts +3 -3
- package/dist/src/vis/lineplot/Legend.d.ts.map +1 -1
- package/dist/src/vis/lineplot/Line.d.ts +2 -1
- package/dist/src/vis/lineplot/Line.d.ts.map +1 -1
- package/dist/src/vis/lineplot/LinePlot.d.ts +1 -0
- package/dist/src/vis/lineplot/LinePlot.d.ts.map +1 -1
- package/dist/src/vis/schematic/Forms.d.ts.map +1 -1
- package/dist/src/workspace/queries.d.ts +1 -1
- package/dist/src/workspace/queries.d.ts.map +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-WWUmv-rf.cjs → units-Cqxg-SBx.cjs} +1 -1
- package/dist/{units-Dh7MflIZ.js → units-D8blpqyN.js} +1 -1
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +6 -6
- package/dist/Editable-DUtJOqJ5.cjs +0 -92
- package/dist/LinePlot-6cl8_hmn.cjs +0 -53
- package/dist/css-DI0uCCGq.cjs +0 -8
- package/dist/eraser-B03ej59l.cjs +0 -63
- package/dist/external-BEd3F7zY.cjs +0 -1
- package/dist/external-D16M7vHB.js +0 -43
- package/dist/external-I_-aclFy.cjs +0 -1
- package/dist/src/hooks/useDelayedState.d.ts +0 -11
- package/dist/src/hooks/useDelayedState.d.ts.map +0 -1
- package/dist/src/hooks/useTransforms.d.ts +0 -16
- package/dist/src/hooks/useTransforms.d.ts.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as N, c as y, d as C, W as U,
|
|
1
|
+
import { r as N, c as y, d as C, W as U, O as G, i as S, e as oa, w as Xe, f as $, J as la, I as ca, v as mt, g as Jn, b as Q, k as Tr, h as Er, o as Cr, j as ua, l as Mt, m as se, K as f, p as re, H as p, _ as Rs, R as kr, q as sn, a as Pr, S as ha, s as da } from "./css-BlHGoCgb.js";
|
|
2
2
|
import we, { z as h } from "zod";
|
|
3
|
-
import { z as Ge,
|
|
4
|
-
import { f as it } from "./fontString-
|
|
3
|
+
import { z as Ge, A as Dt, B as Ot, D as Ee, N as rn, g as an, E as Rr, F as fa, H as ae, I as on, J as Mr, K as pa, M as kn, U as ma, Q as ue, T as gt, V as F, W as ga, j as V, u as fe, X as ya, Y as Dr, G as va, d as Ms, Z as at, $ as es, a0 as ts, a1 as ba, l as Or, a2 as wa, a3 as xa, a4 as Sa } from "./eraser-BstNvEkO.js";
|
|
4
|
+
import { f as it } from "./fontString-Ca1-oixk.js";
|
|
5
5
|
import "react";
|
|
6
6
|
class Ta {
|
|
7
7
|
handlers;
|
|
@@ -94,7 +94,7 @@ class Dn extends ye {
|
|
|
94
94
|
return 0;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
const
|
|
97
|
+
const Lr = {
|
|
98
98
|
type: Dn.TYPE,
|
|
99
99
|
props: {},
|
|
100
100
|
variant: "source",
|
|
@@ -106,13 +106,13 @@ class On extends ye {
|
|
|
106
106
|
return "";
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
const
|
|
109
|
+
const Yr = {
|
|
110
110
|
type: On.TYPE,
|
|
111
111
|
props: {},
|
|
112
112
|
variant: "source",
|
|
113
113
|
valueType: "string"
|
|
114
114
|
};
|
|
115
|
-
class
|
|
115
|
+
class _n extends ye {
|
|
116
116
|
static TYPE = "noop-status-source";
|
|
117
117
|
value() {
|
|
118
118
|
return {
|
|
@@ -124,19 +124,19 @@ class Ln extends ye {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
const os = {
|
|
127
|
-
type:
|
|
127
|
+
type: _n.TYPE,
|
|
128
128
|
props: {},
|
|
129
129
|
variant: "source",
|
|
130
130
|
valueType: "status"
|
|
131
131
|
};
|
|
132
|
-
class
|
|
132
|
+
class Ln extends ye {
|
|
133
133
|
static TYPE = "noop-color-source";
|
|
134
134
|
value() {
|
|
135
135
|
return y.ZERO;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
const cn = {
|
|
139
|
-
type:
|
|
139
|
+
type: Ln.TYPE,
|
|
140
140
|
props: {},
|
|
141
141
|
variant: "source",
|
|
142
142
|
valueType: "color"
|
|
@@ -147,7 +147,7 @@ class Yn extends ye {
|
|
|
147
147
|
return [C.ZERO, new U([])];
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
-
const
|
|
150
|
+
const Ar = {
|
|
151
151
|
type: Yn.TYPE,
|
|
152
152
|
props: {},
|
|
153
153
|
variant: "source",
|
|
@@ -157,12 +157,12 @@ const Nr = {
|
|
|
157
157
|
[Rn.TYPE]: Rn,
|
|
158
158
|
[Mn.TYPE]: Mn,
|
|
159
159
|
[Dn.TYPE]: Dn,
|
|
160
|
-
[Ln.TYPE]: Ln,
|
|
161
160
|
[_n.TYPE]: _n,
|
|
161
|
+
[Ln.TYPE]: Ln,
|
|
162
162
|
[On.TYPE]: On,
|
|
163
163
|
[Yn.TYPE]: Yn
|
|
164
164
|
};
|
|
165
|
-
class
|
|
165
|
+
class Nr {
|
|
166
166
|
type = "noop";
|
|
167
167
|
create(e) {
|
|
168
168
|
const t = ka[e.type];
|
|
@@ -175,17 +175,17 @@ const Pa = h.instanceof(ArrayBuffer), yt = h.object({
|
|
|
175
175
|
valueType: h.string(),
|
|
176
176
|
props: h.any(),
|
|
177
177
|
transfer: h.array(Pa).optional()
|
|
178
|
-
}), ve = yt.extend({ variant: h.literal("source") }), un = yt.extend({ variant: h.literal("sink") }),
|
|
178
|
+
}), ve = yt.extend({ variant: h.literal("source") }), un = yt.extend({ variant: h.literal("sink") }), Ir = yt.extend({
|
|
179
179
|
variant: h.literal("source-transformer")
|
|
180
|
-
}),
|
|
180
|
+
}), Br = yt.extend({
|
|
181
181
|
variant: h.literal("sink-transformer")
|
|
182
|
-
}),
|
|
182
|
+
}), _t = ve.extend({ valueType: h.literal("series") }), ls = ve.extend({
|
|
183
183
|
valueType: h.literal("boolean")
|
|
184
|
-
}), hn = un.extend({ valueType: h.literal("boolean") }), Ra =
|
|
184
|
+
}), hn = un.extend({ valueType: h.literal("boolean") }), Ra = Br.extend({
|
|
185
185
|
valueType: h.literal("boolean")
|
|
186
|
-
}), Ma =
|
|
186
|
+
}), Ma = Ir.extend({
|
|
187
187
|
valueType: h.literal("boolean")
|
|
188
|
-
}),
|
|
188
|
+
}), Zr = ve.extend({ valueType: h.literal("number") }), Ur = un.extend({ valueType: h.literal("number") }), cs = ve.extend({ valueType: h.literal("color") }), us = ve.extend({ valueType: h.literal("status") }), $r = ve.extend({ valueType: h.literal("string") });
|
|
189
189
|
let dn = class extends ns.BaseObserver {
|
|
190
190
|
props_ = void 0;
|
|
191
191
|
uProps_ = void 0;
|
|
@@ -247,7 +247,7 @@ class Fr extends X {
|
|
|
247
247
|
this.sources = { ...this.sources, ...e };
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
class
|
|
250
|
+
class qr extends dn {
|
|
251
251
|
sinks = {};
|
|
252
252
|
get sink() {
|
|
253
253
|
const [e] = Object.values(this.sinks);
|
|
@@ -267,7 +267,7 @@ class jr extends dn {
|
|
|
267
267
|
const hs = h.object({
|
|
268
268
|
from: h.string(),
|
|
269
269
|
to: h.string()
|
|
270
|
-
}),
|
|
270
|
+
}), jr = h.object({
|
|
271
271
|
connections: h.array(hs),
|
|
272
272
|
outlet: h.string(),
|
|
273
273
|
segments: h.record(h.string(), ve)
|
|
@@ -280,8 +280,8 @@ class ds {
|
|
|
280
280
|
}
|
|
281
281
|
create(e) {
|
|
282
282
|
switch (e.type) {
|
|
283
|
-
case
|
|
284
|
-
return new
|
|
283
|
+
case Lt.TYPE:
|
|
284
|
+
return new Lt(e.props, this.factory);
|
|
285
285
|
case Yt.TYPE:
|
|
286
286
|
return new Yt(e.props, this.factory);
|
|
287
287
|
default:
|
|
@@ -289,9 +289,9 @@ class ds {
|
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
|
-
class
|
|
292
|
+
class Lt extends X {
|
|
293
293
|
static TYPE = "source-pipeline";
|
|
294
|
-
schema =
|
|
294
|
+
schema = jr;
|
|
295
295
|
sources = {};
|
|
296
296
|
get outlet() {
|
|
297
297
|
const { outlet: e } = this.props, t = this.sources[e];
|
|
@@ -325,16 +325,16 @@ class _t extends X {
|
|
|
325
325
|
const Da = (n, e) => ({
|
|
326
326
|
variant: "source",
|
|
327
327
|
props: e,
|
|
328
|
-
type:
|
|
328
|
+
type: Lt.TYPE,
|
|
329
329
|
valueType: n
|
|
330
|
-
}),
|
|
330
|
+
}), Hr = h.object({
|
|
331
331
|
connections: h.array(hs),
|
|
332
332
|
inlet: h.string(),
|
|
333
333
|
segments: h.record(h.string(), un)
|
|
334
334
|
});
|
|
335
335
|
class Yt extends fn {
|
|
336
336
|
static TYPE = "sink-pipeline";
|
|
337
|
-
schema =
|
|
337
|
+
schema = Hr;
|
|
338
338
|
sinks = {};
|
|
339
339
|
get inlet() {
|
|
340
340
|
const { inlet: e } = this.props, t = this.sinks[e];
|
|
@@ -367,12 +367,12 @@ const Oa = (n, e) => ({
|
|
|
367
367
|
props: e,
|
|
368
368
|
type: Yt.TYPE,
|
|
369
369
|
valueType: n
|
|
370
|
-
}),
|
|
370
|
+
}), zr = h.object({
|
|
371
371
|
channel: h.number().or(h.string())
|
|
372
372
|
});
|
|
373
373
|
class At extends X {
|
|
374
374
|
static TYPE = "stream-channel-value";
|
|
375
|
-
schema =
|
|
375
|
+
schema = zr;
|
|
376
376
|
client;
|
|
377
377
|
removeStreamHandler = null;
|
|
378
378
|
leadingBuffer = null;
|
|
@@ -393,7 +393,7 @@ class At extends X {
|
|
|
393
393
|
this.removeStreamHandler?.(), this.valid = !1, this.leadingBuffer?.release(), this.leadingBuffer = null, this.removeStreamHandler = null;
|
|
394
394
|
}
|
|
395
395
|
value() {
|
|
396
|
-
return
|
|
396
|
+
return oa.isZero(this.props.channel) || (this.valid || this.read(), this.leadingBuffer == null || this.leadingBuffer.length === 0) ? 0 : this.leadingBuffer.at(-1, !0);
|
|
397
397
|
}
|
|
398
398
|
async read() {
|
|
399
399
|
try {
|
|
@@ -410,7 +410,7 @@ class At extends X {
|
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
|
-
const
|
|
413
|
+
const Wr = async (n, e, t) => {
|
|
414
414
|
const s = await n.retrieveChannel(e), r = Dt.isCalculated(s);
|
|
415
415
|
if (!t || s.isIndex)
|
|
416
416
|
return { key: s.key, dataType: s.dataType, virtual: s.virtual, isCalculated: r };
|
|
@@ -430,7 +430,7 @@ const Vr = async (n, e, t) => {
|
|
|
430
430
|
if (s.virtual)
|
|
431
431
|
throw new Ot("cannot use virtual channels as a data source");
|
|
432
432
|
return { key: s.index, dataType: $.TIMESTAMP, virtual: !1, isCalculated: r };
|
|
433
|
-
},
|
|
433
|
+
}, _a = h.object({
|
|
434
434
|
timeRange: G.z,
|
|
435
435
|
channel: h.number().or(h.string()),
|
|
436
436
|
useIndexOfChannel: h.boolean().optional().default(!1)
|
|
@@ -438,7 +438,7 @@ const Vr = async (n, e, t) => {
|
|
|
438
438
|
class Nt extends X {
|
|
439
439
|
static TYPE = "series-source";
|
|
440
440
|
client;
|
|
441
|
-
schema =
|
|
441
|
+
schema = _a;
|
|
442
442
|
data = new U();
|
|
443
443
|
valid = !1;
|
|
444
444
|
channel = null;
|
|
@@ -462,7 +462,7 @@ class Nt extends X {
|
|
|
462
462
|
try {
|
|
463
463
|
this.valid = !0;
|
|
464
464
|
const { timeRange: e, channel: t, useIndexOfChannel: s } = this.props;
|
|
465
|
-
this.channel = await
|
|
465
|
+
this.channel = await Wr(
|
|
466
466
|
this.client,
|
|
467
467
|
t,
|
|
468
468
|
s
|
|
@@ -474,7 +474,7 @@ class Nt extends X {
|
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
const
|
|
477
|
+
const La = h.object({
|
|
478
478
|
channel: h.number().or(h.string()),
|
|
479
479
|
useIndexOfChannel: h.boolean().optional().default(!1),
|
|
480
480
|
timeSpan: S.z,
|
|
@@ -489,7 +489,7 @@ class It extends X {
|
|
|
489
489
|
channel = null;
|
|
490
490
|
stopStreaming;
|
|
491
491
|
valid = !1;
|
|
492
|
-
schema =
|
|
492
|
+
schema = La;
|
|
493
493
|
constructor(e, t, s, r = () => N.now()) {
|
|
494
494
|
super(t), this.client = e, this.now = r, this.onStatusChange = s?.onStatusChange;
|
|
495
495
|
}
|
|
@@ -506,7 +506,7 @@ class It extends X {
|
|
|
506
506
|
try {
|
|
507
507
|
this.valid = !0;
|
|
508
508
|
const { channel: e, useIndexOfChannel: t, timeSpan: s } = this.props;
|
|
509
|
-
this.channel = await
|
|
509
|
+
this.channel = await Wr(
|
|
510
510
|
this.client,
|
|
511
511
|
e,
|
|
512
512
|
t
|
|
@@ -540,7 +540,7 @@ const Ya = {
|
|
|
540
540
|
[It.TYPE]: It,
|
|
541
541
|
[At.TYPE]: At
|
|
542
542
|
};
|
|
543
|
-
class
|
|
543
|
+
class Vr {
|
|
544
544
|
type = "remote";
|
|
545
545
|
client;
|
|
546
546
|
constructor(e) {
|
|
@@ -567,7 +567,7 @@ const Aa = (n) => ({
|
|
|
567
567
|
variant: "source",
|
|
568
568
|
valueType: "number"
|
|
569
569
|
});
|
|
570
|
-
class
|
|
570
|
+
class Xr {
|
|
571
571
|
type = "static";
|
|
572
572
|
create(e) {
|
|
573
573
|
switch (e.type) {
|
|
@@ -587,7 +587,7 @@ class Gr {
|
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
589
|
const fs = h.object({
|
|
590
|
-
data: h.array(
|
|
590
|
+
data: h.array(la),
|
|
591
591
|
offsets: h.array(h.number()).optional().default([])
|
|
592
592
|
});
|
|
593
593
|
class An extends X {
|
|
@@ -608,8 +608,8 @@ class An extends X {
|
|
|
608
608
|
return [C.max(this.data.map((t) => t.bounds)), this.data];
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
|
-
const
|
|
612
|
-
rate:
|
|
611
|
+
const Gr = fs.extend({
|
|
612
|
+
rate: ca.z,
|
|
613
613
|
yOffset: h.number().optional().default(0),
|
|
614
614
|
scroll: h.number().optional().default(0),
|
|
615
615
|
startPosition: h.number().optional().default(0),
|
|
@@ -617,7 +617,7 @@ const Kr = fs.extend({
|
|
|
617
617
|
});
|
|
618
618
|
class Bt extends X {
|
|
619
619
|
static TYPE = "iterative-series";
|
|
620
|
-
schema =
|
|
620
|
+
schema = Gr;
|
|
621
621
|
position;
|
|
622
622
|
interval;
|
|
623
623
|
data;
|
|
@@ -651,26 +651,26 @@ class Bt extends X {
|
|
|
651
651
|
clearInterval(this.interval), this.interval = void 0;
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
|
-
const
|
|
654
|
+
const Kr = h.number();
|
|
655
655
|
class Zt extends X {
|
|
656
656
|
static TYPE = "static-numeric";
|
|
657
|
-
schema =
|
|
657
|
+
schema = Kr;
|
|
658
658
|
value() {
|
|
659
659
|
return this.props;
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
|
-
const
|
|
662
|
+
const Qr = h.string();
|
|
663
663
|
class Ut extends X {
|
|
664
664
|
static TYPE = "static-string";
|
|
665
|
-
schema =
|
|
665
|
+
schema = Qr;
|
|
666
666
|
value() {
|
|
667
667
|
return this.props;
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
|
-
const
|
|
670
|
+
const Jr = y.crudeZ;
|
|
671
671
|
class $t extends X {
|
|
672
672
|
static TYPE = "static-color";
|
|
673
|
-
schema =
|
|
673
|
+
schema = Jr;
|
|
674
674
|
value() {
|
|
675
675
|
return y.construct(this.props);
|
|
676
676
|
}
|
|
@@ -695,13 +695,13 @@ const Ba = (n) => ({
|
|
|
695
695
|
props: n,
|
|
696
696
|
variant: "source",
|
|
697
697
|
valueType: "string"
|
|
698
|
-
}),
|
|
698
|
+
}), Fa = (n) => ({
|
|
699
699
|
type: $t.TYPE,
|
|
700
700
|
props: n,
|
|
701
701
|
variant: "source",
|
|
702
702
|
valueType: "color"
|
|
703
703
|
});
|
|
704
|
-
class
|
|
704
|
+
class ei {
|
|
705
705
|
type = "transformer";
|
|
706
706
|
create(e) {
|
|
707
707
|
switch (e.type) {
|
|
@@ -713,19 +713,19 @@ class ti {
|
|
|
713
713
|
return new Ue(e.props);
|
|
714
714
|
case $e.TYPE:
|
|
715
715
|
return new $e(e.props);
|
|
716
|
-
case qe.TYPE:
|
|
717
|
-
return new qe(e.props);
|
|
718
|
-
case qt.TYPE:
|
|
719
|
-
return new qt(e.props);
|
|
720
716
|
case Fe.TYPE:
|
|
721
717
|
return new Fe(e.props);
|
|
718
|
+
case Ft.TYPE:
|
|
719
|
+
return new Ft(e.props);
|
|
720
|
+
case qe.TYPE:
|
|
721
|
+
return new qe(e.props);
|
|
722
722
|
case je.TYPE:
|
|
723
723
|
return new je(e.props);
|
|
724
724
|
}
|
|
725
725
|
return null;
|
|
726
726
|
}
|
|
727
727
|
}
|
|
728
|
-
const
|
|
728
|
+
const qa = h.object({
|
|
729
729
|
truthy: h.number().optional().default(1),
|
|
730
730
|
falsy: h.number().optional().default(0)
|
|
731
731
|
}), ja = (n) => ({
|
|
@@ -734,15 +734,15 @@ const Fa = h.object({
|
|
|
734
734
|
variant: "sink",
|
|
735
735
|
valueType: "boolean"
|
|
736
736
|
});
|
|
737
|
-
class Be extends
|
|
737
|
+
class Be extends qr {
|
|
738
738
|
static TYPE = "boolean-numeric-converter-sink";
|
|
739
|
-
static propsZ =
|
|
739
|
+
static propsZ = qa;
|
|
740
740
|
schema = Be.propsZ;
|
|
741
741
|
transform(...e) {
|
|
742
742
|
return e.map((t) => t ? this.props.truthy : this.props.falsy);
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
|
-
const
|
|
745
|
+
const ti = h.object({ trueBound: C.bounds }), Ha = (n) => ({
|
|
746
746
|
props: n,
|
|
747
747
|
type: Ze.TYPE,
|
|
748
748
|
variant: "source",
|
|
@@ -750,7 +750,7 @@ const ni = h.object({ trueBound: C.bounds }), Ha = (n) => ({
|
|
|
750
750
|
});
|
|
751
751
|
class Ze extends Ce {
|
|
752
752
|
static TYPE = "boolean-source";
|
|
753
|
-
static propsZ =
|
|
753
|
+
static propsZ = ti;
|
|
754
754
|
schema = Ze.propsZ;
|
|
755
755
|
curr = null;
|
|
756
756
|
shouldNotify(e) {
|
|
@@ -761,10 +761,10 @@ class Ze extends Ce {
|
|
|
761
761
|
return this.curr = C.contains(this.props.trueBound, e), this.curr;
|
|
762
762
|
}
|
|
763
763
|
}
|
|
764
|
-
const
|
|
764
|
+
const ni = h.object({});
|
|
765
765
|
class Ue extends Fr {
|
|
766
766
|
static TYPE = "mean";
|
|
767
|
-
static propsZ =
|
|
767
|
+
static propsZ = ni;
|
|
768
768
|
schema = Ue.propsZ;
|
|
769
769
|
transform(e) {
|
|
770
770
|
return Object.values(e).reduce((t, s) => t + s, 0) / Object.keys(e).length;
|
|
@@ -775,12 +775,12 @@ const za = (n) => ({
|
|
|
775
775
|
type: Ue.TYPE,
|
|
776
776
|
variant: "source",
|
|
777
777
|
valueType: "boolean"
|
|
778
|
-
}),
|
|
778
|
+
}), si = h.object({
|
|
779
779
|
trueVariant: Xe.variantZ.optional().default("success")
|
|
780
780
|
});
|
|
781
781
|
class $e extends Ce {
|
|
782
782
|
static TYPE = "boolean-status";
|
|
783
|
-
static propsZ =
|
|
783
|
+
static propsZ = si;
|
|
784
784
|
schema = $e.propsZ;
|
|
785
785
|
transform(e) {
|
|
786
786
|
return e.variant === this.props.trueVariant;
|
|
@@ -791,16 +791,16 @@ const Wa = (n) => ({
|
|
|
791
791
|
type: $e.TYPE,
|
|
792
792
|
variant: "source",
|
|
793
793
|
valueType: "boolean"
|
|
794
|
-
}),
|
|
794
|
+
}), ri = h.object({
|
|
795
795
|
precision: h.number().optional().default(2),
|
|
796
796
|
prefix: h.string().optional().default(""),
|
|
797
797
|
suffix: h.string().optional().default(""),
|
|
798
798
|
notation: Jn.notationZ.optional().default("standard")
|
|
799
799
|
});
|
|
800
|
-
class
|
|
800
|
+
class Fe extends Ce {
|
|
801
801
|
static TYPE = "stringify-number";
|
|
802
|
-
static propsZ =
|
|
803
|
-
schema =
|
|
802
|
+
static propsZ = ri;
|
|
803
|
+
schema = Fe.propsZ;
|
|
804
804
|
transform(e) {
|
|
805
805
|
const { precision: t, prefix: s, suffix: r, notation: i } = this.props;
|
|
806
806
|
return `${s}${Jn.stringifyNumber(e, t, i)}${r}`;
|
|
@@ -808,16 +808,16 @@ class qe extends Ce {
|
|
|
808
808
|
}
|
|
809
809
|
const Va = (n) => ({
|
|
810
810
|
props: n,
|
|
811
|
-
type:
|
|
811
|
+
type: Fe.TYPE,
|
|
812
812
|
variant: "source",
|
|
813
813
|
valueType: "string"
|
|
814
|
-
}),
|
|
814
|
+
}), ii = h.object({
|
|
815
815
|
windowSize: h.number().optional().default(5)
|
|
816
816
|
});
|
|
817
|
-
class
|
|
817
|
+
class Ft extends Ce {
|
|
818
818
|
static TYPE = "rolling-average";
|
|
819
|
-
static propsZ =
|
|
820
|
-
schema =
|
|
819
|
+
static propsZ = ni;
|
|
820
|
+
schema = ii;
|
|
821
821
|
values = [];
|
|
822
822
|
transform(e) {
|
|
823
823
|
return this.props.windowSize < 2 ? e : this.values.reduce((t, s) => t + s, 0) / this.values.length;
|
|
@@ -828,31 +828,31 @@ class qt extends Ce {
|
|
|
828
828
|
}
|
|
829
829
|
const Xa = (n) => ({
|
|
830
830
|
props: n,
|
|
831
|
-
type:
|
|
831
|
+
type: Ft.TYPE,
|
|
832
832
|
variant: "source",
|
|
833
833
|
valueType: "number"
|
|
834
|
-
}),
|
|
834
|
+
}), ai = h.object({
|
|
835
835
|
gradient: y.gradientZ
|
|
836
836
|
});
|
|
837
|
-
class
|
|
837
|
+
class qe extends Ce {
|
|
838
838
|
static TYPE = "color-gradient";
|
|
839
|
-
static propsZ =
|
|
840
|
-
schema =
|
|
839
|
+
static propsZ = ai;
|
|
840
|
+
schema = qe.propsZ;
|
|
841
841
|
transform(e) {
|
|
842
842
|
return y.fromGradient(this.props.gradient, e);
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
845
|
const Ga = (n) => ({
|
|
846
846
|
props: n,
|
|
847
|
-
type:
|
|
847
|
+
type: qe.TYPE,
|
|
848
848
|
variant: "source",
|
|
849
849
|
valueType: "color"
|
|
850
|
-
}),
|
|
850
|
+
}), oi = h.object({
|
|
851
851
|
scale: Q.transform
|
|
852
852
|
});
|
|
853
853
|
class je extends Ce {
|
|
854
854
|
static TYPE = "scale-number";
|
|
855
|
-
static propsZ =
|
|
855
|
+
static propsZ = oi;
|
|
856
856
|
schema = je.propsZ;
|
|
857
857
|
transform(e) {
|
|
858
858
|
const { offset: t, scale: s } = this.props.scale;
|
|
@@ -872,7 +872,7 @@ const Ka = (n) => ({
|
|
|
872
872
|
type: ot.TYPE,
|
|
873
873
|
variant: "source",
|
|
874
874
|
valueType: "number"
|
|
875
|
-
}),
|
|
875
|
+
}), li = (n, e, t) => {
|
|
876
876
|
const s = e.length * t;
|
|
877
877
|
for (let r = s; r < n.length; r += t) {
|
|
878
878
|
const i = n.sub(r, r + 1);
|
|
@@ -895,7 +895,7 @@ const Ka = (n) => ({
|
|
|
895
895
|
);
|
|
896
896
|
}
|
|
897
897
|
}, to = {
|
|
898
|
-
decimate:
|
|
898
|
+
decimate: li,
|
|
899
899
|
average: eo
|
|
900
900
|
};
|
|
901
901
|
class ot {
|
|
@@ -907,7 +907,7 @@ class ot {
|
|
|
907
907
|
this.props = e;
|
|
908
908
|
}
|
|
909
909
|
downsample(e) {
|
|
910
|
-
return this._downsample == null && (e.series[0].sampleOffset !== 0 ? this._downsample =
|
|
910
|
+
return this._downsample == null && (e.series[0].sampleOffset !== 0 ? this._downsample = li : this._downsample = to[this.props.mode]), this._downsample;
|
|
911
911
|
}
|
|
912
912
|
transform(e) {
|
|
913
913
|
if (this.props.mode === "decimate" || this.props.windowSize <= 1) return e;
|
|
@@ -961,11 +961,11 @@ class ms {
|
|
|
961
961
|
return null;
|
|
962
962
|
}
|
|
963
963
|
}
|
|
964
|
-
const
|
|
965
|
-
const e = [new
|
|
966
|
-
return n != null && t.add(new
|
|
964
|
+
const ci = (n) => {
|
|
965
|
+
const e = [new ei(), new Xr(), new Nr()], t = new ms(e);
|
|
966
|
+
return n != null && t.add(new Vr(n)), t.add(new ds(t)), t;
|
|
967
967
|
};
|
|
968
|
-
let
|
|
968
|
+
let ui = class hi {
|
|
969
969
|
factory;
|
|
970
970
|
key;
|
|
971
971
|
parent;
|
|
@@ -977,7 +977,7 @@ let hi = class di {
|
|
|
977
977
|
...this.factory.factories,
|
|
978
978
|
...an.toArray(e)
|
|
979
979
|
]);
|
|
980
|
-
return s.add(new ds(s)), new
|
|
980
|
+
return s.add(new ds(s)), new hi(s, t);
|
|
981
981
|
}
|
|
982
982
|
create(e, t) {
|
|
983
983
|
const s = this.factory.create(e, t);
|
|
@@ -988,13 +988,13 @@ let hi = class di {
|
|
|
988
988
|
return s;
|
|
989
989
|
}
|
|
990
990
|
};
|
|
991
|
-
const vt = "pluto-telem-context", pn = (n) => n.get(vt),
|
|
991
|
+
const vt = "pluto-telem-context", pn = (n) => n.get(vt), di = (n, e) => n.set(vt, e), fi = (n, e, t) => {
|
|
992
992
|
const s = pn(n);
|
|
993
993
|
if (s != null && t != null && s.key === t?.parent?.key) return t;
|
|
994
994
|
const r = s.child(e, s);
|
|
995
995
|
return n.set(vt, r), r;
|
|
996
996
|
};
|
|
997
|
-
class
|
|
997
|
+
class pi {
|
|
998
998
|
spec;
|
|
999
999
|
wrapped;
|
|
1000
1000
|
prevProv;
|
|
@@ -1005,7 +1005,7 @@ class mi {
|
|
|
1005
1005
|
return this.prevProv.key !== e.key || !rn.equal(this.spec, t);
|
|
1006
1006
|
}
|
|
1007
1007
|
}
|
|
1008
|
-
class Ds extends
|
|
1008
|
+
class Ds extends pi {
|
|
1009
1009
|
value() {
|
|
1010
1010
|
return this.wrapped.value();
|
|
1011
1011
|
}
|
|
@@ -1016,7 +1016,7 @@ class Ds extends mi {
|
|
|
1016
1016
|
return this.wrapped.onChange(e);
|
|
1017
1017
|
}
|
|
1018
1018
|
}
|
|
1019
|
-
class Os extends
|
|
1019
|
+
class Os extends pi {
|
|
1020
1020
|
set(...e) {
|
|
1021
1021
|
this.wrapped.set(...e);
|
|
1022
1022
|
}
|
|
@@ -1039,17 +1039,17 @@ const ee = (n, e, t, s) => {
|
|
|
1039
1039
|
}
|
|
1040
1040
|
return new Os(r.create(e, s), r, e);
|
|
1041
1041
|
}, so = h.object({
|
|
1042
|
-
props:
|
|
1042
|
+
props: fa.nullable(),
|
|
1043
1043
|
state: Rr.connectivity.connectionStateZ.nullable()
|
|
1044
|
-
}),
|
|
1044
|
+
}), mi = {
|
|
1045
1045
|
client: null
|
|
1046
1046
|
};
|
|
1047
|
-
let Nn = class
|
|
1047
|
+
let Nn = class gi extends ae {
|
|
1048
1048
|
static TYPE = "synnax.Provider";
|
|
1049
1049
|
static stateZ = so;
|
|
1050
|
-
schema =
|
|
1050
|
+
schema = gi.stateZ;
|
|
1051
1051
|
afterUpdate(e) {
|
|
1052
|
-
if (e.wasSetPreviously(gs) || yn(e,
|
|
1052
|
+
if (e.wasSetPreviously(gs) || yn(e, mi), this.state.props == null) {
|
|
1053
1053
|
this.internal.client != null && (this.internal.client?.close(), this.internal.client = null), yn(e, this.internal);
|
|
1054
1054
|
return;
|
|
1055
1055
|
}
|
|
@@ -1062,12 +1062,12 @@ const gs = "pluto-client-context", yn = (n, e) => n.set(gs, e), Ke = (n) => n.ge
|
|
|
1062
1062
|
__proto__: null,
|
|
1063
1063
|
Provider: Nn,
|
|
1064
1064
|
REGISTRY: ro,
|
|
1065
|
-
ZERO_CONTEXT_VALUE:
|
|
1065
|
+
ZERO_CONTEXT_VALUE: mi,
|
|
1066
1066
|
use: Ke
|
|
1067
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1067
|
+
}, Symbol.toStringTag, { value: "Module" })), yi = (n, e) => n.dataType.isVariable || n.dataType.equals($.UINT8) ? n : (e == null && n.dataType.equals($.TIMESTAMP) && (e = BigInt(n.data[0])), n.convert($.FLOAT32, e)), io = (n) => n.isVariable || n.equals($.UINT8) ? n : $.FLOAT32, vi = () => ({
|
|
1068
1068
|
purgedSeries: 0,
|
|
1069
1069
|
purgedBytes: Er.bytes(0)
|
|
1070
|
-
}),
|
|
1070
|
+
}), bi = {
|
|
1071
1071
|
instrumentation: on.NOOP,
|
|
1072
1072
|
staleEntryThreshold: S.seconds(20)
|
|
1073
1073
|
};
|
|
@@ -1075,14 +1075,14 @@ class ao {
|
|
|
1075
1075
|
data = [];
|
|
1076
1076
|
props;
|
|
1077
1077
|
constructor(e) {
|
|
1078
|
-
this.props = { ...
|
|
1078
|
+
this.props = { ...bi, ...e };
|
|
1079
1079
|
}
|
|
1080
1080
|
/**
|
|
1081
1081
|
* Writes the given series to the cache, merging written series with any
|
|
1082
1082
|
* existing series in the cache.
|
|
1083
1083
|
*/
|
|
1084
1084
|
write(e) {
|
|
1085
|
-
e.length !== 0 && (e.series.forEach((t) => this.writeOne(
|
|
1085
|
+
e.length !== 0 && (e.series.forEach((t) => this.writeOne(yi(t))), this.checkIntegrity(e));
|
|
1086
1086
|
}
|
|
1087
1087
|
/**
|
|
1088
1088
|
* Executes a 'dirty' read of the cache, retrieving any series in the cache that overlap
|
|
@@ -1106,7 +1106,7 @@ class ao {
|
|
|
1106
1106
|
* @returns metrics about the garbage collection.
|
|
1107
1107
|
*/
|
|
1108
1108
|
gc() {
|
|
1109
|
-
const { staleEntryThreshold: e } = this.props, t =
|
|
1109
|
+
const { staleEntryThreshold: e } = this.props, t = vi(), s = this.data.filter((r) => {
|
|
1110
1110
|
const i = r.data.refCount > 0 || N.since(r.addedAt).lessThan(e);
|
|
1111
1111
|
return i || (t.purgedBytes = t.purgedBytes.add(r.data.byteCapacity)), i;
|
|
1112
1112
|
});
|
|
@@ -1220,7 +1220,7 @@ class fo {
|
|
|
1220
1220
|
const c = this.now();
|
|
1221
1221
|
this.curr.timeRange.end = c, s.flushed.push(this.curr), this.curr = this.allocate(t, e.alignment, c), s.allocated.push(this.curr);
|
|
1222
1222
|
}
|
|
1223
|
-
const r =
|
|
1223
|
+
const r = yi(e, this.curr.sampleOffset), i = this.curr.write(r);
|
|
1224
1224
|
if (i === e.length)
|
|
1225
1225
|
return this.updateAvgRate(e), s;
|
|
1226
1226
|
const a = this.now();
|
|
@@ -1301,7 +1301,7 @@ class go {
|
|
|
1301
1301
|
this.props = {
|
|
1302
1302
|
dynamicBufferSize: mo,
|
|
1303
1303
|
gcInterval: Mr.seconds(30),
|
|
1304
|
-
...
|
|
1304
|
+
...bi,
|
|
1305
1305
|
...e
|
|
1306
1306
|
}, this.gcInterval = setInterval(() => this.gc(), this.props.gcInterval.milliseconds);
|
|
1307
1307
|
}
|
|
@@ -1341,7 +1341,7 @@ class go {
|
|
|
1341
1341
|
instrumentation: { L: e }
|
|
1342
1342
|
} = this.props;
|
|
1343
1343
|
e.info("starting garbage collection");
|
|
1344
|
-
const t =
|
|
1344
|
+
const t = vi();
|
|
1345
1345
|
this.cache.forEach((s) => {
|
|
1346
1346
|
const r = s.gc();
|
|
1347
1347
|
t.purgedSeries += r.purgedSeries, t.purgedBytes = t.purgedBytes.add(r.purgedBytes);
|
|
@@ -1371,7 +1371,7 @@ class yo {
|
|
|
1371
1371
|
*/
|
|
1372
1372
|
debouncedRead;
|
|
1373
1373
|
/** A mutex for serializing access to requests. */
|
|
1374
|
-
mu =
|
|
1374
|
+
mu = ua.newMutex({
|
|
1375
1375
|
requests: /* @__PURE__ */ new Set(),
|
|
1376
1376
|
closed: !1
|
|
1377
1377
|
});
|
|
@@ -1383,7 +1383,7 @@ class yo {
|
|
|
1383
1383
|
overlapThreshold: e.overlapThreshold ?? S.milliseconds(5)
|
|
1384
1384
|
};
|
|
1385
1385
|
const t = this.args.batchDebounce.milliseconds;
|
|
1386
|
-
this.debouncedRead =
|
|
1386
|
+
this.debouncedRead = pa(() => void this.batchRead(), t);
|
|
1387
1387
|
}
|
|
1388
1388
|
/** Implements ReadClient. */
|
|
1389
1389
|
async read(e, t) {
|
|
@@ -1467,7 +1467,7 @@ class wo {
|
|
|
1467
1467
|
if (e <= 0)
|
|
1468
1468
|
throw new Error(`invalid weight ${e}: must be positive`);
|
|
1469
1469
|
return new Promise((s, r) => {
|
|
1470
|
-
const i = { resolve: s, reject: r, weight: e, priority: t }, a =
|
|
1470
|
+
const i = { resolve: s, reject: r, weight: e, priority: t }, a = wi(this._queue, (o) => t <= o.priority);
|
|
1471
1471
|
a === -1 && e <= this._value ? this._dispatchItem(i) : this._queue.splice(a + 1, 0, i);
|
|
1472
1472
|
});
|
|
1473
1473
|
}
|
|
@@ -1541,10 +1541,10 @@ class wo {
|
|
|
1541
1541
|
}
|
|
1542
1542
|
}
|
|
1543
1543
|
function xo(n, e) {
|
|
1544
|
-
const t =
|
|
1544
|
+
const t = wi(n, (s) => e.priority <= s.priority);
|
|
1545
1545
|
n.splice(t + 1, 0, e);
|
|
1546
1546
|
}
|
|
1547
|
-
function
|
|
1547
|
+
function wi(n, e) {
|
|
1548
1548
|
for (let t = n.length - 1; t >= 0; t--)
|
|
1549
1549
|
if (e(n[t]))
|
|
1550
1550
|
return t;
|
|
@@ -1729,7 +1729,7 @@ class ko {
|
|
|
1729
1729
|
/** Implements ChannelClient. */
|
|
1730
1730
|
async retrieveChannel(e) {
|
|
1731
1731
|
const t = await this.channelRetriever.retrieve([e]);
|
|
1732
|
-
if (t.length === 0) throw new
|
|
1732
|
+
if (t.length === 0) throw new ma(`channel ${e} not found`);
|
|
1733
1733
|
return t[0];
|
|
1734
1734
|
}
|
|
1735
1735
|
/** Implements ChannelClient */
|
|
@@ -1744,10 +1744,10 @@ class ko {
|
|
|
1744
1744
|
this.ins.L.info("closing client"), await this.streamer.close(), await this.reader.close(), this.cache.close();
|
|
1745
1745
|
}
|
|
1746
1746
|
}
|
|
1747
|
-
const
|
|
1747
|
+
const xi = h.object({});
|
|
1748
1748
|
class lt extends ae {
|
|
1749
1749
|
static TYPE = "telem.Provider";
|
|
1750
|
-
static stateZ =
|
|
1750
|
+
static stateZ = xi;
|
|
1751
1751
|
schema = lt.stateZ;
|
|
1752
1752
|
prevCore = null;
|
|
1753
1753
|
client = null;
|
|
@@ -1758,8 +1758,8 @@ class lt extends ae {
|
|
|
1758
1758
|
if (this.client == null) throw new Error("no client to close");
|
|
1759
1759
|
await this.client.close();
|
|
1760
1760
|
}, "failed to close client"), this.client = s == null ? new Co() : new ko({ core: s, instrumentation: t.instrumentation });
|
|
1761
|
-
const a =
|
|
1762
|
-
|
|
1761
|
+
const a = ci(this.client), o = new ui(a);
|
|
1762
|
+
di(e, o);
|
|
1763
1763
|
}
|
|
1764
1764
|
}
|
|
1765
1765
|
const Po = {
|
|
@@ -1773,31 +1773,31 @@ const Po = {
|
|
|
1773
1773
|
BooleanStatus: $e,
|
|
1774
1774
|
CONTEXT_KEY: vt,
|
|
1775
1775
|
ChannelData: Nt,
|
|
1776
|
-
ColorGradient:
|
|
1776
|
+
ColorGradient: qe,
|
|
1777
1777
|
CompoundTelemFactory: ms,
|
|
1778
|
-
Context:
|
|
1778
|
+
Context: ui,
|
|
1779
1779
|
FixedColorSource: $t,
|
|
1780
1780
|
FixedNumber: Zt,
|
|
1781
1781
|
FixedString: Ut,
|
|
1782
1782
|
IterativeSeries: Bt,
|
|
1783
1783
|
Mean: Ue,
|
|
1784
1784
|
MultiSourceTransformer: Fr,
|
|
1785
|
-
NoopFactory:
|
|
1785
|
+
NoopFactory: Nr,
|
|
1786
1786
|
PipelineFactory: ds,
|
|
1787
1787
|
REGISTRY: Po,
|
|
1788
|
-
RemoteFactory:
|
|
1789
|
-
RollingAverage:
|
|
1788
|
+
RemoteFactory: Vr,
|
|
1789
|
+
RollingAverage: Ft,
|
|
1790
1790
|
ScaleNumber: je,
|
|
1791
1791
|
SeriesDownsampler: ot,
|
|
1792
1792
|
SetPoint: Be,
|
|
1793
1793
|
SinkPipeline: Yt,
|
|
1794
|
-
SourcePipeline:
|
|
1795
|
-
StaticFactory:
|
|
1794
|
+
SourcePipeline: Lt,
|
|
1795
|
+
StaticFactory: Xr,
|
|
1796
1796
|
StreamChannelData: It,
|
|
1797
1797
|
StreamChannelValue: At,
|
|
1798
|
-
StringifyNumber:
|
|
1799
|
-
TransformerFactory:
|
|
1800
|
-
UnarySinkTransformer:
|
|
1798
|
+
StringifyNumber: Fe,
|
|
1799
|
+
TransformerFactory: ei,
|
|
1800
|
+
UnarySinkTransformer: qr,
|
|
1801
1801
|
UnarySourceTransformer: Ce,
|
|
1802
1802
|
WithinBounds: Ze,
|
|
1803
1803
|
booleanSinkSpecZ: hn,
|
|
@@ -1805,68 +1805,68 @@ const Po = {
|
|
|
1805
1805
|
booleanSourceSpecZ: ls,
|
|
1806
1806
|
booleanSourceTransformerSpecZ: Ma,
|
|
1807
1807
|
booleanStatus: Wa,
|
|
1808
|
-
booleanStatusProps:
|
|
1808
|
+
booleanStatusProps: si,
|
|
1809
1809
|
channelData: Aa,
|
|
1810
1810
|
colorGradient: Ga,
|
|
1811
|
-
colorGradientProps:
|
|
1811
|
+
colorGradientProps: ai,
|
|
1812
1812
|
colorSourceSpecZ: cs,
|
|
1813
1813
|
connectionZ: hs,
|
|
1814
|
-
createFactory:
|
|
1814
|
+
createFactory: ci,
|
|
1815
1815
|
downsampleMode: Ja,
|
|
1816
1816
|
downsampleModeProps: Qa,
|
|
1817
1817
|
downsampleModeZ: ps,
|
|
1818
1818
|
fixedArray: Ba,
|
|
1819
|
-
fixedColor:
|
|
1820
|
-
fixedColorSourcePropsZ:
|
|
1819
|
+
fixedColor: Fa,
|
|
1820
|
+
fixedColorSourcePropsZ: Jr,
|
|
1821
1821
|
fixedNumber: Ua,
|
|
1822
|
-
fixedNumberPropsZ:
|
|
1822
|
+
fixedNumberPropsZ: Kr,
|
|
1823
1823
|
fixedSeriesPropsZ: fs,
|
|
1824
1824
|
fixedString: $a,
|
|
1825
|
-
fixedStringPropsZ:
|
|
1825
|
+
fixedStringPropsZ: Qr,
|
|
1826
1826
|
iterativeArray: Za,
|
|
1827
|
-
iterativeSeriesPropsZ:
|
|
1827
|
+
iterativeSeriesPropsZ: Gr,
|
|
1828
1828
|
mean: za,
|
|
1829
1829
|
noopBooleanSinkSpec: ln,
|
|
1830
1830
|
noopBooleanSourceSpec: as,
|
|
1831
1831
|
noopColorSourceSpec: cn,
|
|
1832
1832
|
noopNumericSinkSpec: _r,
|
|
1833
|
-
noopNumericSourceSpec:
|
|
1834
|
-
noopSeriesSourceSpec:
|
|
1833
|
+
noopNumericSourceSpec: Lr,
|
|
1834
|
+
noopSeriesSourceSpec: Ar,
|
|
1835
1835
|
noopStatusSourceSpec: os,
|
|
1836
|
-
noopStringSourceSpec:
|
|
1837
|
-
numberSinkSpecZ:
|
|
1838
|
-
numberSourceSpecZ:
|
|
1839
|
-
providerStateZ:
|
|
1836
|
+
noopStringSourceSpec: Yr,
|
|
1837
|
+
numberSinkSpecZ: Ur,
|
|
1838
|
+
numberSourceSpecZ: Zr,
|
|
1839
|
+
providerStateZ: xi,
|
|
1840
1840
|
rollingAverage: Xa,
|
|
1841
|
-
rollingAverageProps:
|
|
1841
|
+
rollingAverageProps: ii,
|
|
1842
1842
|
scaleNumber: Ka,
|
|
1843
|
-
scaleNumberProps:
|
|
1843
|
+
scaleNumberProps: oi,
|
|
1844
1844
|
seriesDownsampler: no,
|
|
1845
|
-
seriesSourceSpecZ:
|
|
1846
|
-
setContext:
|
|
1845
|
+
seriesSourceSpecZ: _t,
|
|
1846
|
+
setContext: di,
|
|
1847
1847
|
setpoint: ja,
|
|
1848
1848
|
sinkPipeline: Oa,
|
|
1849
|
-
sinkPipelinePropsZ:
|
|
1849
|
+
sinkPipelinePropsZ: Hr,
|
|
1850
1850
|
sinkSpecZ: un,
|
|
1851
|
-
sinkTransformerSpecZ:
|
|
1851
|
+
sinkTransformerSpecZ: Br,
|
|
1852
1852
|
sourcePipeline: Da,
|
|
1853
|
-
sourcePipelinePropsZ:
|
|
1853
|
+
sourcePipelinePropsZ: jr,
|
|
1854
1854
|
sourceSpecZ: ve,
|
|
1855
|
-
sourceTransformerSpecZ:
|
|
1855
|
+
sourceTransformerSpecZ: Ir,
|
|
1856
1856
|
specZ: yt,
|
|
1857
1857
|
statusSourceSpecZ: us,
|
|
1858
1858
|
streamChannelData: Na,
|
|
1859
1859
|
streamChannelValue: Ia,
|
|
1860
|
-
streamChannelValuePropsZ:
|
|
1861
|
-
stringSourceSpecZ:
|
|
1860
|
+
streamChannelValuePropsZ: zr,
|
|
1861
|
+
stringSourceSpecZ: $r,
|
|
1862
1862
|
stringifyNumber: Va,
|
|
1863
|
-
stringifyNumberProps:
|
|
1864
|
-
useChildContext:
|
|
1863
|
+
stringifyNumberProps: ri,
|
|
1864
|
+
useChildContext: fi,
|
|
1865
1865
|
useContext: pn,
|
|
1866
1866
|
useSink: bt,
|
|
1867
1867
|
useSource: ee,
|
|
1868
1868
|
withinBounds: Ha,
|
|
1869
|
-
withinBoundsProps:
|
|
1869
|
+
withinBoundsProps: ti
|
|
1870
1870
|
}, Symbol.toStringTag, { value: "Module" })), Ro = we.object({
|
|
1871
1871
|
request: we.string(),
|
|
1872
1872
|
bounds: we.record(we.string(), C.bounds)
|
|
@@ -1874,7 +1874,7 @@ const Po = {
|
|
|
1874
1874
|
request: we.string(),
|
|
1875
1875
|
response: Ro
|
|
1876
1876
|
});
|
|
1877
|
-
class In extends
|
|
1877
|
+
class In extends F {
|
|
1878
1878
|
static TYPE = "Bounds";
|
|
1879
1879
|
schema = Mo;
|
|
1880
1880
|
afterUpdate(e) {
|
|
@@ -1890,17 +1890,17 @@ class In extends q {
|
|
|
1890
1890
|
this.internal.getBounds = e.getBounds;
|
|
1891
1891
|
}
|
|
1892
1892
|
}
|
|
1893
|
-
const
|
|
1893
|
+
const Si = h.object({
|
|
1894
1894
|
key: h.string(),
|
|
1895
1895
|
size: h.number(),
|
|
1896
1896
|
order: h.number(),
|
|
1897
1897
|
loc: se.outer
|
|
1898
1898
|
});
|
|
1899
|
-
h.record(h.string(),
|
|
1900
|
-
const
|
|
1899
|
+
h.record(h.string(), Si);
|
|
1900
|
+
const Le = (n, e) => Object.values(e).filter(({ loc: t }) => t === n).sort((t, s) => s.order - t.order), Do = (n, e, t) => {
|
|
1901
1901
|
const s = e[n];
|
|
1902
1902
|
if (s == null) return f.ZERO;
|
|
1903
|
-
const r = se.construct(s.loc), i =
|
|
1903
|
+
const r = se.construct(s.loc), i = Le(r, e), a = se.construct(re.swap(se.direction(r))), o = Le(a, e), c = i.findIndex(({ key: d }) => d === n), l = i.slice(0, c).reduce((d, { size: m }) => d + m, 0), u = o.reduce((d, { size: m }) => d + m, 0);
|
|
1904
1904
|
switch (r) {
|
|
1905
1905
|
case "left":
|
|
1906
1906
|
return f.translate(p.topLeft(t), [l, u]);
|
|
@@ -1915,7 +1915,7 @@ const _e = (n, e) => Object.values(e).filter(({ loc: t }) => t === n).sort((t, s
|
|
|
1915
1915
|
]);
|
|
1916
1916
|
}
|
|
1917
1917
|
}, Oo = (n, e) => {
|
|
1918
|
-
const t =
|
|
1918
|
+
const t = Le("left", n), s = Le("right", n), r = Le("top", n), i = Le("bottom", n), a = t.reduce((u, { size: d }) => u + d, 0), o = s.reduce((u, { size: d }) => u + d, 0), c = r.reduce((u, { size: d }) => u + d, 0), l = i.reduce((u, { size: d }) => u + d, 0);
|
|
1919
1919
|
return p.construct(
|
|
1920
1920
|
f.translate(p.topLeft(e), { x: a, y: c }),
|
|
1921
1921
|
p.width(e) - a - o,
|
|
@@ -1925,12 +1925,12 @@ const _e = (n, e) => Object.values(e).filter(({ loc: t }) => t === n).sort((t, s
|
|
|
1925
1925
|
function Rt(n, e) {
|
|
1926
1926
|
return n == null || e == null ? NaN : n < e ? -1 : n > e ? 1 : n >= e ? 0 : NaN;
|
|
1927
1927
|
}
|
|
1928
|
-
function
|
|
1928
|
+
function _o(n, e) {
|
|
1929
1929
|
return n == null || e == null ? NaN : e < n ? -1 : e > n ? 1 : e >= n ? 0 : NaN;
|
|
1930
1930
|
}
|
|
1931
1931
|
function ys(n) {
|
|
1932
1932
|
let e, t, s;
|
|
1933
|
-
n.length !== 2 ? (e = Rt, t = (o, c) => Rt(n(o), c), s = (o, c) => n(o) - c) : (e = n === Rt || n ===
|
|
1933
|
+
n.length !== 2 ? (e = Rt, t = (o, c) => Rt(n(o), c), s = (o, c) => n(o) - c) : (e = n === Rt || n === _o ? n : Lo, t = n, s = n);
|
|
1934
1934
|
function r(o, c, l = 0, u = o.length) {
|
|
1935
1935
|
if (l < u) {
|
|
1936
1936
|
if (e(c, c) !== 0) return u;
|
|
@@ -1957,7 +1957,7 @@ function ys(n) {
|
|
|
1957
1957
|
}
|
|
1958
1958
|
return { left: r, center: a, right: i };
|
|
1959
1959
|
}
|
|
1960
|
-
function
|
|
1960
|
+
function Lo() {
|
|
1961
1961
|
return 0;
|
|
1962
1962
|
}
|
|
1963
1963
|
function Yo(n) {
|
|
@@ -1966,15 +1966,15 @@ function Yo(n) {
|
|
|
1966
1966
|
const Ao = ys(Rt), No = Ao.right;
|
|
1967
1967
|
ys(Yo).center;
|
|
1968
1968
|
const Io = Math.sqrt(50), Bo = Math.sqrt(10), Zo = Math.sqrt(2);
|
|
1969
|
-
function
|
|
1969
|
+
function qt(n, e, t) {
|
|
1970
1970
|
const s = (e - n) / Math.max(0, t), r = Math.floor(Math.log10(s)), i = s / Math.pow(10, r), a = i >= Io ? 10 : i >= Bo ? 5 : i >= Zo ? 2 : 1;
|
|
1971
1971
|
let o, c, l;
|
|
1972
|
-
return r < 0 ? (l = Math.pow(10, -r) / a, o = Math.round(n * l), c = Math.round(e * l), o / l < n && ++o, c / l > e && --c, l = -l) : (l = Math.pow(10, r) * a, o = Math.round(n / l), c = Math.round(e / l), o * l < n && ++o, c * l > e && --c), c < o && 0.5 <= t && t < 2 ?
|
|
1972
|
+
return r < 0 ? (l = Math.pow(10, -r) / a, o = Math.round(n * l), c = Math.round(e * l), o / l < n && ++o, c / l > e && --c, l = -l) : (l = Math.pow(10, r) * a, o = Math.round(n / l), c = Math.round(e / l), o * l < n && ++o, c * l > e && --c), c < o && 0.5 <= t && t < 2 ? qt(n, e, t * 2) : [o, c, l];
|
|
1973
1973
|
}
|
|
1974
1974
|
function Uo(n, e, t) {
|
|
1975
1975
|
if (e = +e, n = +n, t = +t, !(t > 0)) return [];
|
|
1976
1976
|
if (n === e) return [n];
|
|
1977
|
-
const s = e < n, [r, i, a] = s ?
|
|
1977
|
+
const s = e < n, [r, i, a] = s ? qt(e, n, t) : qt(n, e, t);
|
|
1978
1978
|
if (!(i >= r)) return [];
|
|
1979
1979
|
const o = i - r + 1, c = new Array(o);
|
|
1980
1980
|
if (s)
|
|
@@ -1985,14 +1985,14 @@ function Uo(n, e, t) {
|
|
|
1985
1985
|
return c;
|
|
1986
1986
|
}
|
|
1987
1987
|
function Bn(n, e, t) {
|
|
1988
|
-
return e = +e, n = +n, t = +t,
|
|
1988
|
+
return e = +e, n = +n, t = +t, qt(n, e, t)[2];
|
|
1989
1989
|
}
|
|
1990
1990
|
function Zn(n, e, t) {
|
|
1991
1991
|
e = +e, n = +n, t = +t;
|
|
1992
1992
|
const s = e < n, r = s ? Bn(e, n, t) : Bn(n, e, t);
|
|
1993
1993
|
return (s ? -1 : 1) * (r < 0 ? 1 / -r : r);
|
|
1994
1994
|
}
|
|
1995
|
-
function
|
|
1995
|
+
function Ti(n, e) {
|
|
1996
1996
|
switch (arguments.length) {
|
|
1997
1997
|
case 0:
|
|
1998
1998
|
break;
|
|
@@ -2008,14 +2008,14 @@ function Ei(n, e) {
|
|
|
2008
2008
|
function vs(n, e, t) {
|
|
2009
2009
|
n.prototype = e.prototype = t, t.constructor = n;
|
|
2010
2010
|
}
|
|
2011
|
-
function
|
|
2011
|
+
function Ei(n, e) {
|
|
2012
2012
|
var t = Object.create(n.prototype);
|
|
2013
2013
|
for (var s in e) t[s] = e[s];
|
|
2014
2014
|
return t;
|
|
2015
2015
|
}
|
|
2016
2016
|
function wt() {
|
|
2017
2017
|
}
|
|
2018
|
-
var ct = 0.7, jt = 1 / ct, Ne = "\\s*([+-]?\\d+)\\s*", ut = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", ie = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", $o = /^#([0-9a-f]{3,8})$/,
|
|
2018
|
+
var ct = 0.7, jt = 1 / ct, Ne = "\\s*([+-]?\\d+)\\s*", ut = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", ie = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", $o = /^#([0-9a-f]{3,8})$/, Fo = new RegExp(`^rgb\\(${Ne},${Ne},${Ne}\\)$`), qo = new RegExp(`^rgb\\(${ie},${ie},${ie}\\)$`), jo = new RegExp(`^rgba\\(${Ne},${Ne},${Ne},${ut}\\)$`), Ho = new RegExp(`^rgba\\(${ie},${ie},${ie},${ut}\\)$`), zo = new RegExp(`^hsl\\(${ut},${ie},${ie}\\)$`), Wo = new RegExp(`^hsla\\(${ut},${ie},${ie},${ut}\\)$`), _s = {
|
|
2019
2019
|
aliceblue: 15792383,
|
|
2020
2020
|
antiquewhite: 16444375,
|
|
2021
2021
|
aqua: 65535,
|
|
@@ -2172,29 +2172,29 @@ vs(wt, ht, {
|
|
|
2172
2172
|
displayable() {
|
|
2173
2173
|
return this.rgb().displayable();
|
|
2174
2174
|
},
|
|
2175
|
-
hex:
|
|
2175
|
+
hex: Ls,
|
|
2176
2176
|
// Deprecated! Use color.formatHex.
|
|
2177
|
-
formatHex:
|
|
2177
|
+
formatHex: Ls,
|
|
2178
2178
|
formatHex8: Vo,
|
|
2179
2179
|
formatHsl: Xo,
|
|
2180
2180
|
formatRgb: Ys,
|
|
2181
2181
|
toString: Ys
|
|
2182
2182
|
});
|
|
2183
|
-
function
|
|
2183
|
+
function Ls() {
|
|
2184
2184
|
return this.rgb().formatHex();
|
|
2185
2185
|
}
|
|
2186
2186
|
function Vo() {
|
|
2187
2187
|
return this.rgb().formatHex8();
|
|
2188
2188
|
}
|
|
2189
2189
|
function Xo() {
|
|
2190
|
-
return
|
|
2190
|
+
return Ci(this).formatHsl();
|
|
2191
2191
|
}
|
|
2192
2192
|
function Ys() {
|
|
2193
2193
|
return this.rgb().formatRgb();
|
|
2194
2194
|
}
|
|
2195
2195
|
function ht(n) {
|
|
2196
2196
|
var e, t;
|
|
2197
|
-
return n = (n + "").trim().toLowerCase(), (e = $o.exec(n)) ? (t = e[1].length, e = parseInt(e[1], 16), t === 6 ? As(e) : t === 3 ? new H(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : t === 8 ? Et(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : t === 4 ? Et(e >> 12 & 15 | e >> 8 & 240, e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, ((e & 15) << 4 | e & 15) / 255) : null) : (e =
|
|
2197
|
+
return n = (n + "").trim().toLowerCase(), (e = $o.exec(n)) ? (t = e[1].length, e = parseInt(e[1], 16), t === 6 ? As(e) : t === 3 ? new H(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : t === 8 ? Et(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : t === 4 ? Et(e >> 12 & 15 | e >> 8 & 240, e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, ((e & 15) << 4 | e & 15) / 255) : null) : (e = Fo.exec(n)) ? new H(e[1], e[2], e[3], 1) : (e = qo.exec(n)) ? new H(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = jo.exec(n)) ? Et(e[1], e[2], e[3], e[4]) : (e = Ho.exec(n)) ? Et(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = zo.exec(n)) ? Bs(e[1], e[2] / 100, e[3] / 100, 1) : (e = Wo.exec(n)) ? Bs(e[1], e[2] / 100, e[3] / 100, e[4]) : _s.hasOwnProperty(n) ? As(_s[n]) : n === "transparent" ? new H(NaN, NaN, NaN, 0) : null;
|
|
2198
2198
|
}
|
|
2199
2199
|
function As(n) {
|
|
2200
2200
|
return new H(n >> 16 & 255, n >> 8 & 255, n & 255, 1);
|
|
@@ -2211,7 +2211,7 @@ function Un(n, e, t, s) {
|
|
|
2211
2211
|
function H(n, e, t, s) {
|
|
2212
2212
|
this.r = +n, this.g = +e, this.b = +t, this.opacity = +s;
|
|
2213
2213
|
}
|
|
2214
|
-
vs(H, Un,
|
|
2214
|
+
vs(H, Un, Ei(wt, {
|
|
2215
2215
|
brighter(n) {
|
|
2216
2216
|
return n = n == null ? jt : Math.pow(jt, n), new H(this.r * n, this.g * n, this.b * n, this.opacity);
|
|
2217
2217
|
},
|
|
@@ -2256,7 +2256,7 @@ function xe(n) {
|
|
|
2256
2256
|
function Bs(n, e, t, s) {
|
|
2257
2257
|
return s <= 0 ? n = e = t = NaN : t <= 0 || t >= 1 ? n = e = NaN : e <= 0 && (n = NaN), new ne(n, e, t, s);
|
|
2258
2258
|
}
|
|
2259
|
-
function
|
|
2259
|
+
function Ci(n) {
|
|
2260
2260
|
if (n instanceof ne) return new ne(n.h, n.s, n.l, n.opacity);
|
|
2261
2261
|
if (n instanceof wt || (n = ht(n)), !n) return new ne();
|
|
2262
2262
|
if (n instanceof ne) return n;
|
|
@@ -2265,12 +2265,12 @@ function ki(n) {
|
|
|
2265
2265
|
return o ? (e === i ? a = (t - s) / o + (t < s) * 6 : t === i ? a = (s - e) / o + 2 : a = (e - t) / o + 4, o /= c < 0.5 ? i + r : 2 - i - r, a *= 60) : o = c > 0 && c < 1 ? 0 : a, new ne(a, o, c, n.opacity);
|
|
2266
2266
|
}
|
|
2267
2267
|
function Qo(n, e, t, s) {
|
|
2268
|
-
return arguments.length === 1 ?
|
|
2268
|
+
return arguments.length === 1 ? Ci(n) : new ne(n, e, t, s ?? 1);
|
|
2269
2269
|
}
|
|
2270
2270
|
function ne(n, e, t, s) {
|
|
2271
2271
|
this.h = +n, this.s = +e, this.l = +t, this.opacity = +s;
|
|
2272
2272
|
}
|
|
2273
|
-
vs(ne, Qo,
|
|
2273
|
+
vs(ne, Qo, Ei(wt, {
|
|
2274
2274
|
brighter(n) {
|
|
2275
2275
|
return n = n == null ? jt : Math.pow(jt, n), new ne(this.h, this.s, this.l * n, this.opacity);
|
|
2276
2276
|
},
|
|
@@ -2318,18 +2318,18 @@ function el(n, e, t) {
|
|
|
2318
2318
|
};
|
|
2319
2319
|
}
|
|
2320
2320
|
function tl(n) {
|
|
2321
|
-
return (n = +n) == 1 ?
|
|
2321
|
+
return (n = +n) == 1 ? ki : function(e, t) {
|
|
2322
2322
|
return t - e ? el(e, t, n) : bs(isNaN(e) ? t : e);
|
|
2323
2323
|
};
|
|
2324
2324
|
}
|
|
2325
|
-
function
|
|
2325
|
+
function ki(n, e) {
|
|
2326
2326
|
var t = e - n;
|
|
2327
2327
|
return t ? Jo(n, t) : bs(isNaN(n) ? e : n);
|
|
2328
2328
|
}
|
|
2329
2329
|
const Us = function n(e) {
|
|
2330
2330
|
var t = tl(e);
|
|
2331
2331
|
function s(r, i) {
|
|
2332
|
-
var a = t((r = Un(r)).r, (i = Un(i)).r), o = t(r.g, i.g), c = t(r.b, i.b), l =
|
|
2332
|
+
var a = t((r = Un(r)).r, (i = Un(i)).r), o = t(r.g, i.g), c = t(r.b, i.b), l = ki(r.opacity, i.opacity);
|
|
2333
2333
|
return function(u) {
|
|
2334
2334
|
return r.r = a(u), r.g = o(u), r.b = c(u), r.opacity = l(u), r + "";
|
|
2335
2335
|
};
|
|
@@ -2418,7 +2418,7 @@ var $s = [0, 1];
|
|
|
2418
2418
|
function Ye(n) {
|
|
2419
2419
|
return n;
|
|
2420
2420
|
}
|
|
2421
|
-
function
|
|
2421
|
+
function Fn(n, e) {
|
|
2422
2422
|
return (e -= n = +n) ? function(t) {
|
|
2423
2423
|
return (t - n) / e;
|
|
2424
2424
|
} : hl(isNaN(e) ? NaN : 0.5);
|
|
@@ -2431,20 +2431,20 @@ function fl(n, e) {
|
|
|
2431
2431
|
}
|
|
2432
2432
|
function pl(n, e, t) {
|
|
2433
2433
|
var s = n[0], r = n[1], i = e[0], a = e[1];
|
|
2434
|
-
return r < s ? (s =
|
|
2434
|
+
return r < s ? (s = Fn(r, s), i = t(a, i)) : (s = Fn(s, r), i = t(i, a)), function(o) {
|
|
2435
2435
|
return i(s(o));
|
|
2436
2436
|
};
|
|
2437
2437
|
}
|
|
2438
2438
|
function ml(n, e, t) {
|
|
2439
2439
|
var s = Math.min(n.length, e.length) - 1, r = new Array(s), i = new Array(s), a = -1;
|
|
2440
2440
|
for (n[s] < n[0] && (n = n.slice().reverse(), e = e.slice().reverse()); ++a < s; )
|
|
2441
|
-
r[a] =
|
|
2441
|
+
r[a] = Fn(n[a], n[a + 1]), i[a] = t(e[a], e[a + 1]);
|
|
2442
2442
|
return function(o) {
|
|
2443
2443
|
var c = No(n, o, 1, s) - 1;
|
|
2444
2444
|
return i[c](r[c](o));
|
|
2445
2445
|
};
|
|
2446
2446
|
}
|
|
2447
|
-
function
|
|
2447
|
+
function Pi(n, e) {
|
|
2448
2448
|
return e.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown());
|
|
2449
2449
|
}
|
|
2450
2450
|
function gl() {
|
|
@@ -2474,7 +2474,7 @@ function gl() {
|
|
|
2474
2474
|
return s = m, r = v, u();
|
|
2475
2475
|
};
|
|
2476
2476
|
}
|
|
2477
|
-
function
|
|
2477
|
+
function Ri() {
|
|
2478
2478
|
return gl()(Ye, Ye);
|
|
2479
2479
|
}
|
|
2480
2480
|
function yl(n) {
|
|
@@ -2545,20 +2545,20 @@ function xl(n) {
|
|
|
2545
2545
|
}
|
|
2546
2546
|
return s > 0 ? n.slice(0, s) + n.slice(r + 1) : n;
|
|
2547
2547
|
}
|
|
2548
|
-
var
|
|
2548
|
+
var Mi;
|
|
2549
2549
|
function Sl(n, e) {
|
|
2550
2550
|
var t = Wt(n, e);
|
|
2551
2551
|
if (!t) return n + "";
|
|
2552
|
-
var s = t[0], r = t[1], i = r - (
|
|
2552
|
+
var s = t[0], r = t[1], i = r - (Mi = Math.max(-8, Math.min(8, Math.floor(r / 3))) * 3) + 1, a = s.length;
|
|
2553
2553
|
return i === a ? s : i > a ? s + new Array(i - a + 1).join("0") : i > 0 ? s.slice(0, i) + "." + s.slice(i) : "0." + new Array(1 - i).join("0") + Wt(n, Math.max(0, e + i - 1))[0];
|
|
2554
2554
|
}
|
|
2555
|
-
function
|
|
2555
|
+
function Fs(n, e) {
|
|
2556
2556
|
var t = Wt(n, e);
|
|
2557
2557
|
if (!t) return n + "";
|
|
2558
2558
|
var s = t[0], r = t[1];
|
|
2559
2559
|
return r < 0 ? "0." + new Array(-r).join("0") + s : s.length > r + 1 ? s.slice(0, r + 1) + "." + s.slice(r + 1) : s + new Array(r - s.length + 2).join("0");
|
|
2560
2560
|
}
|
|
2561
|
-
const
|
|
2561
|
+
const qs = {
|
|
2562
2562
|
"%": (n, e) => (n * 100).toFixed(e),
|
|
2563
2563
|
b: (n) => Math.round(n).toString(2),
|
|
2564
2564
|
c: (n) => n + "",
|
|
@@ -2567,8 +2567,8 @@ const Fs = {
|
|
|
2567
2567
|
f: (n, e) => n.toFixed(e),
|
|
2568
2568
|
g: (n, e) => n.toPrecision(e),
|
|
2569
2569
|
o: (n) => Math.round(n).toString(8),
|
|
2570
|
-
p: (n, e) =>
|
|
2571
|
-
r:
|
|
2570
|
+
p: (n, e) => Fs(n * 100, e),
|
|
2571
|
+
r: Fs,
|
|
2572
2572
|
s: Sl,
|
|
2573
2573
|
X: (n) => Math.round(n).toString(16).toUpperCase(),
|
|
2574
2574
|
x: (n) => Math.round(n).toString(16)
|
|
@@ -2581,39 +2581,39 @@ function Tl(n) {
|
|
|
2581
2581
|
var e = n.grouping === void 0 || n.thousands === void 0 ? js : vl(Hs.call(n.grouping, Number), n.thousands + ""), t = n.currency === void 0 ? "" : n.currency[0] + "", s = n.currency === void 0 ? "" : n.currency[1] + "", r = n.decimal === void 0 ? "." : n.decimal + "", i = n.numerals === void 0 ? js : bl(Hs.call(n.numerals, String)), a = n.percent === void 0 ? "%" : n.percent + "", o = n.minus === void 0 ? "−" : n.minus + "", c = n.nan === void 0 ? "NaN" : n.nan + "";
|
|
2582
2582
|
function l(d) {
|
|
2583
2583
|
d = Vt(d);
|
|
2584
|
-
var m = d.fill, v = d.align, T = d.sign, w = d.symbol, x = d.zero, R = d.width,
|
|
2585
|
-
I === "n" ? (
|
|
2586
|
-
var E = w === "$" ? t : w === "#" && /[boxX]/.test(I) ? "0" + I.toLowerCase() : "", A = w === "$" ? s : /[%p]/.test(I) ? a : "", pe =
|
|
2584
|
+
var m = d.fill, v = d.align, T = d.sign, w = d.symbol, x = d.zero, R = d.width, _ = d.comma, M = d.precision, Y = d.trim, I = d.type;
|
|
2585
|
+
I === "n" ? (_ = !0, I = "g") : qs[I] || (M === void 0 && (M = 12), Y = !0, I = "g"), (x || m === "0" && v === "=") && (x = !0, m = "0", v = "=");
|
|
2586
|
+
var E = w === "$" ? t : w === "#" && /[boxX]/.test(I) ? "0" + I.toLowerCase() : "", A = w === "$" ? s : /[%p]/.test(I) ? a : "", pe = qs[I], et = /[defgprs%]/.test(I);
|
|
2587
2587
|
M = M === void 0 ? 6 : /[gprs]/.test(I) ? Math.max(1, Math.min(21, M)) : Math.max(0, Math.min(20, M));
|
|
2588
2588
|
function Re(P) {
|
|
2589
|
-
var oe = E,
|
|
2589
|
+
var oe = E, q = A, me, Tt, Me;
|
|
2590
2590
|
if (I === "c")
|
|
2591
|
-
|
|
2591
|
+
q = pe(P) + q, P = "";
|
|
2592
2592
|
else {
|
|
2593
2593
|
P = +P;
|
|
2594
2594
|
var De = P < 0 || 1 / P < 0;
|
|
2595
|
-
if (P = isNaN(P) ? c : pe(Math.abs(P), M), Y && (P = xl(P)), De && +P == 0 && T !== "+" && (De = !1), oe = (De ? T === "(" ? T : o : T === "-" || T === "(" ? "" : T) + oe,
|
|
2595
|
+
if (P = isNaN(P) ? c : pe(Math.abs(P), M), Y && (P = xl(P)), De && +P == 0 && T !== "+" && (De = !1), oe = (De ? T === "(" ? T : o : T === "-" || T === "(" ? "" : T) + oe, q = (I === "s" ? zs[8 + Mi / 3] : "") + q + (De && T === "(" ? ")" : ""), et) {
|
|
2596
2596
|
for (me = -1, Tt = P.length; ++me < Tt; )
|
|
2597
2597
|
if (Me = P.charCodeAt(me), 48 > Me || Me > 57) {
|
|
2598
|
-
|
|
2598
|
+
q = (Me === 46 ? r + P.slice(me + 1) : P.slice(me)) + q, P = P.slice(0, me);
|
|
2599
2599
|
break;
|
|
2600
2600
|
}
|
|
2601
2601
|
}
|
|
2602
2602
|
}
|
|
2603
|
-
|
|
2604
|
-
var Oe = oe.length + P.length +
|
|
2605
|
-
switch (
|
|
2603
|
+
_ && !x && (P = e(P, 1 / 0));
|
|
2604
|
+
var Oe = oe.length + P.length + q.length, te = Oe < R ? new Array(R - Oe + 1).join(m) : "";
|
|
2605
|
+
switch (_ && x && (P = e(te + P, te.length ? R - q.length : 1 / 0), te = ""), v) {
|
|
2606
2606
|
case "<":
|
|
2607
|
-
P = oe + P +
|
|
2607
|
+
P = oe + P + q + te;
|
|
2608
2608
|
break;
|
|
2609
2609
|
case "=":
|
|
2610
|
-
P = oe + te + P +
|
|
2610
|
+
P = oe + te + P + q;
|
|
2611
2611
|
break;
|
|
2612
2612
|
case "^":
|
|
2613
|
-
P = te.slice(0, Oe = te.length >> 1) + oe + P +
|
|
2613
|
+
P = te.slice(0, Oe = te.length >> 1) + oe + P + q + te.slice(Oe);
|
|
2614
2614
|
break;
|
|
2615
2615
|
default:
|
|
2616
|
-
P = te + oe + P +
|
|
2616
|
+
P = te + oe + P + q;
|
|
2617
2617
|
break;
|
|
2618
2618
|
}
|
|
2619
2619
|
return i(P);
|
|
@@ -2633,14 +2633,14 @@ function Tl(n) {
|
|
|
2633
2633
|
formatPrefix: u
|
|
2634
2634
|
};
|
|
2635
2635
|
}
|
|
2636
|
-
var kt,
|
|
2636
|
+
var kt, Di, Oi;
|
|
2637
2637
|
El({
|
|
2638
2638
|
thousands: ",",
|
|
2639
2639
|
grouping: [3],
|
|
2640
2640
|
currency: ["$", ""]
|
|
2641
2641
|
});
|
|
2642
2642
|
function El(n) {
|
|
2643
|
-
return kt = Tl(n),
|
|
2643
|
+
return kt = Tl(n), Di = kt.format, Oi = kt.formatPrefix, kt;
|
|
2644
2644
|
}
|
|
2645
2645
|
function Cl(n) {
|
|
2646
2646
|
return Math.max(0, -He(Math.abs(n)));
|
|
@@ -2656,7 +2656,7 @@ function Rl(n, e, t, s) {
|
|
|
2656
2656
|
switch (s = Vt(s ?? ",f"), s.type) {
|
|
2657
2657
|
case "s": {
|
|
2658
2658
|
var a = Math.max(Math.abs(n), Math.abs(e));
|
|
2659
|
-
return s.precision == null && !isNaN(i = kl(r, a)) && (s.precision = i),
|
|
2659
|
+
return s.precision == null && !isNaN(i = kl(r, a)) && (s.precision = i), Oi(s, a);
|
|
2660
2660
|
}
|
|
2661
2661
|
case "":
|
|
2662
2662
|
case "e":
|
|
@@ -2672,7 +2672,7 @@ function Rl(n, e, t, s) {
|
|
|
2672
2672
|
break;
|
|
2673
2673
|
}
|
|
2674
2674
|
}
|
|
2675
|
-
return
|
|
2675
|
+
return Di(s);
|
|
2676
2676
|
}
|
|
2677
2677
|
function Ml(n) {
|
|
2678
2678
|
var e = n.domain;
|
|
@@ -2700,10 +2700,10 @@ function Ml(n) {
|
|
|
2700
2700
|
}, n;
|
|
2701
2701
|
}
|
|
2702
2702
|
function _i() {
|
|
2703
|
-
var n =
|
|
2703
|
+
var n = Ri();
|
|
2704
2704
|
return n.copy = function() {
|
|
2705
|
-
return
|
|
2706
|
-
},
|
|
2705
|
+
return Pi(n, _i());
|
|
2706
|
+
}, Ti.apply(n, arguments), Ml(n);
|
|
2707
2707
|
}
|
|
2708
2708
|
function Dl(n, e) {
|
|
2709
2709
|
n = n.slice();
|
|
@@ -2772,12 +2772,12 @@ const Es = B((n) => {
|
|
|
2772
2772
|
n.setTime(+n + e * ce);
|
|
2773
2773
|
}, (n, e) => (e - n) / ce, (n) => n.getHours());
|
|
2774
2774
|
Es.range;
|
|
2775
|
-
const
|
|
2775
|
+
const _l = B((n) => {
|
|
2776
2776
|
n.setUTCMinutes(0, 0, 0);
|
|
2777
2777
|
}, (n, e) => {
|
|
2778
2778
|
n.setTime(+n + e * ce);
|
|
2779
2779
|
}, (n, e) => (e - n) / ce, (n) => n.getUTCHours());
|
|
2780
|
-
|
|
2780
|
+
_l.range;
|
|
2781
2781
|
const xt = B(
|
|
2782
2782
|
(n) => n.setHours(0, 0, 0, 0),
|
|
2783
2783
|
(n, e) => n.setDate(n.getDate() + e),
|
|
@@ -2791,12 +2791,12 @@ const Cs = B((n) => {
|
|
|
2791
2791
|
n.setUTCDate(n.getUTCDate() + e);
|
|
2792
2792
|
}, (n, e) => (e - n) / he, (n) => n.getUTCDate() - 1);
|
|
2793
2793
|
Cs.range;
|
|
2794
|
-
const
|
|
2794
|
+
const Ll = B((n) => {
|
|
2795
2795
|
n.setUTCHours(0, 0, 0, 0);
|
|
2796
2796
|
}, (n, e) => {
|
|
2797
2797
|
n.setUTCDate(n.getUTCDate() + e);
|
|
2798
2798
|
}, (n, e) => (e - n) / he, (n) => Math.floor(n / he));
|
|
2799
|
-
|
|
2799
|
+
Ll.range;
|
|
2800
2800
|
function ke(n) {
|
|
2801
2801
|
return B((e) => {
|
|
2802
2802
|
e.setDate(e.getDate() - (e.getDay() + 7 - n) % 7), e.setHours(0, 0, 0, 0);
|
|
@@ -2819,8 +2819,8 @@ function Pe(n) {
|
|
|
2819
2819
|
e.setUTCDate(e.getUTCDate() + t * 7);
|
|
2820
2820
|
}, (e, t) => (t - e) / Ss);
|
|
2821
2821
|
}
|
|
2822
|
-
const
|
|
2823
|
-
|
|
2822
|
+
const Li = Pe(0), Kt = Pe(1), Bl = Pe(2), Zl = Pe(3), We = Pe(4), Ul = Pe(5), $l = Pe(6);
|
|
2823
|
+
Li.range;
|
|
2824
2824
|
Kt.range;
|
|
2825
2825
|
Bl.range;
|
|
2826
2826
|
Zl.range;
|
|
@@ -2833,12 +2833,12 @@ const ks = B((n) => {
|
|
|
2833
2833
|
n.setMonth(n.getMonth() + e);
|
|
2834
2834
|
}, (n, e) => e.getMonth() - n.getMonth() + (e.getFullYear() - n.getFullYear()) * 12, (n) => n.getMonth());
|
|
2835
2835
|
ks.range;
|
|
2836
|
-
const
|
|
2836
|
+
const Fl = B((n) => {
|
|
2837
2837
|
n.setUTCDate(1), n.setUTCHours(0, 0, 0, 0);
|
|
2838
2838
|
}, (n, e) => {
|
|
2839
2839
|
n.setUTCMonth(n.getUTCMonth() + e);
|
|
2840
2840
|
}, (n, e) => e.getUTCMonth() - n.getUTCMonth() + (e.getUTCFullYear() - n.getUTCFullYear()) * 12, (n) => n.getUTCMonth());
|
|
2841
|
-
|
|
2841
|
+
Fl.range;
|
|
2842
2842
|
const de = B((n) => {
|
|
2843
2843
|
n.setMonth(0, 1), n.setHours(0, 0, 0, 0);
|
|
2844
2844
|
}, (n, e) => {
|
|
@@ -2861,7 +2861,7 @@ Te.every = (n) => !isFinite(n = Math.floor(n)) || !(n > 0) ? null : B((e) => {
|
|
|
2861
2861
|
e.setUTCFullYear(e.getUTCFullYear() + t * n);
|
|
2862
2862
|
});
|
|
2863
2863
|
Te.range;
|
|
2864
|
-
function
|
|
2864
|
+
function ql(n, e, t, s, r, i) {
|
|
2865
2865
|
const a = [
|
|
2866
2866
|
[Ae, 1, le],
|
|
2867
2867
|
[Ae, 5, 5 * le],
|
|
@@ -2897,7 +2897,7 @@ function Fl(n, e, t, s, r, i) {
|
|
|
2897
2897
|
}
|
|
2898
2898
|
return [o, c];
|
|
2899
2899
|
}
|
|
2900
|
-
const [jl, Hl] =
|
|
2900
|
+
const [jl, Hl] = ql(de, ks, mn, xt, Es, Ts);
|
|
2901
2901
|
function Tn(n) {
|
|
2902
2902
|
if (0 <= n.y && n.y < 100) {
|
|
2903
2903
|
var e = new Date(-1, n.m, n.d, n.H, n.M, n.S, n.L);
|
|
@@ -2916,11 +2916,11 @@ function tt(n, e, t) {
|
|
|
2916
2916
|
return { y: n, m: e, d: t, H: 0, M: 0, S: 0, L: 0 };
|
|
2917
2917
|
}
|
|
2918
2918
|
function zl(n) {
|
|
2919
|
-
var e = n.dateTime, t = n.date, s = n.time, r = n.periods, i = n.days, a = n.shortDays, o = n.months, c = n.shortMonths, l = nt(r), u = st(r), d = nt(i), m = st(i), v = nt(a), T = st(a), w = nt(o), x = st(o), R = nt(c),
|
|
2919
|
+
var e = n.dateTime, t = n.date, s = n.time, r = n.periods, i = n.days, a = n.shortDays, o = n.months, c = n.shortMonths, l = nt(r), u = st(r), d = nt(i), m = st(i), v = nt(a), T = st(a), w = nt(o), x = st(o), R = nt(c), _ = st(c), M = {
|
|
2920
2920
|
a: De,
|
|
2921
2921
|
A: Oe,
|
|
2922
2922
|
b: te,
|
|
2923
|
-
B:
|
|
2923
|
+
B: Qi,
|
|
2924
2924
|
c: null,
|
|
2925
2925
|
d: Js,
|
|
2926
2926
|
e: Js,
|
|
@@ -2930,11 +2930,11 @@ function zl(n) {
|
|
|
2930
2930
|
H: dc,
|
|
2931
2931
|
I: fc,
|
|
2932
2932
|
j: pc,
|
|
2933
|
-
L:
|
|
2933
|
+
L: Yi,
|
|
2934
2934
|
m: gc,
|
|
2935
2935
|
M: yc,
|
|
2936
|
-
p:
|
|
2937
|
-
q:
|
|
2936
|
+
p: Ji,
|
|
2937
|
+
q: ea,
|
|
2938
2938
|
Q: nr,
|
|
2939
2939
|
s: sr,
|
|
2940
2940
|
S: vc,
|
|
@@ -2950,24 +2950,24 @@ function zl(n) {
|
|
|
2950
2950
|
Z: Rc,
|
|
2951
2951
|
"%": tr
|
|
2952
2952
|
}, Y = {
|
|
2953
|
-
a:
|
|
2954
|
-
A:
|
|
2955
|
-
b:
|
|
2956
|
-
B:
|
|
2953
|
+
a: ta,
|
|
2954
|
+
A: na,
|
|
2955
|
+
b: sa,
|
|
2956
|
+
B: ra,
|
|
2957
2957
|
c: null,
|
|
2958
2958
|
d: er,
|
|
2959
2959
|
e: er,
|
|
2960
|
-
f:
|
|
2961
|
-
g:
|
|
2960
|
+
f: _c,
|
|
2961
|
+
g: Fc,
|
|
2962
2962
|
G: jc,
|
|
2963
2963
|
H: Mc,
|
|
2964
2964
|
I: Dc,
|
|
2965
2965
|
j: Oc,
|
|
2966
|
-
L:
|
|
2967
|
-
m:
|
|
2966
|
+
L: Ni,
|
|
2967
|
+
m: Lc,
|
|
2968
2968
|
M: Yc,
|
|
2969
|
-
p:
|
|
2970
|
-
q:
|
|
2969
|
+
p: ia,
|
|
2970
|
+
q: aa,
|
|
2971
2971
|
Q: nr,
|
|
2972
2972
|
s: sr,
|
|
2973
2973
|
S: Ac,
|
|
@@ -2979,14 +2979,14 @@ function zl(n) {
|
|
|
2979
2979
|
x: null,
|
|
2980
2980
|
X: null,
|
|
2981
2981
|
y: $c,
|
|
2982
|
-
Y:
|
|
2982
|
+
Y: qc,
|
|
2983
2983
|
Z: Hc,
|
|
2984
2984
|
"%": tr
|
|
2985
2985
|
}, I = {
|
|
2986
2986
|
a: Re,
|
|
2987
2987
|
A: P,
|
|
2988
2988
|
b: oe,
|
|
2989
|
-
B:
|
|
2989
|
+
B: q,
|
|
2990
2990
|
c: me,
|
|
2991
2991
|
d: Ks,
|
|
2992
2992
|
e: Ks,
|
|
@@ -3019,27 +3019,27 @@ function zl(n) {
|
|
|
3019
3019
|
M.x = E(t, M), M.X = E(s, M), M.c = E(e, M), Y.x = E(t, Y), Y.X = E(s, Y), Y.c = E(e, Y);
|
|
3020
3020
|
function E(b, k) {
|
|
3021
3021
|
return function(D) {
|
|
3022
|
-
var g = [], j = -1,
|
|
3022
|
+
var g = [], j = -1, L = 0, z = b.length, W, be, Ps;
|
|
3023
3023
|
for (D instanceof Date || (D = /* @__PURE__ */ new Date(+D)); ++j < z; )
|
|
3024
|
-
b.charCodeAt(j) === 37 && (g.push(b.slice(
|
|
3025
|
-
return g.push(b.slice(
|
|
3024
|
+
b.charCodeAt(j) === 37 && (g.push(b.slice(L, j)), (be = Vs[W = b.charAt(++j)]) != null ? W = b.charAt(++j) : be = W === "e" ? " " : "0", (Ps = k[W]) && (W = Ps(D, be)), g.push(W), L = j + 1);
|
|
3025
|
+
return g.push(b.slice(L, j)), g.join("");
|
|
3026
3026
|
};
|
|
3027
3027
|
}
|
|
3028
3028
|
function A(b, k) {
|
|
3029
3029
|
return function(D) {
|
|
3030
|
-
var g = tt(1900, void 0, 1), j = pe(g, b, D += "", 0),
|
|
3030
|
+
var g = tt(1900, void 0, 1), j = pe(g, b, D += "", 0), L, z;
|
|
3031
3031
|
if (j != D.length) return null;
|
|
3032
3032
|
if ("Q" in g) return new Date(g.Q);
|
|
3033
3033
|
if ("s" in g) return new Date(g.s * 1e3 + ("L" in g ? g.L : 0));
|
|
3034
3034
|
if (k && !("Z" in g) && (g.Z = 0), "p" in g && (g.H = g.H % 12 + g.p * 12), g.m === void 0 && (g.m = "q" in g ? g.q : 0), "V" in g) {
|
|
3035
3035
|
if (g.V < 1 || g.V > 53) return null;
|
|
3036
|
-
"w" in g || (g.w = 1), "Z" in g ? (
|
|
3036
|
+
"w" in g || (g.w = 1), "Z" in g ? (L = En(tt(g.y, 0, 1)), z = L.getUTCDay(), L = z > 4 || z === 0 ? Kt.ceil(L) : Kt(L), L = Cs.offset(L, (g.V - 1) * 7), g.y = L.getUTCFullYear(), g.m = L.getUTCMonth(), g.d = L.getUTCDate() + (g.w + 6) % 7) : (L = Tn(tt(g.y, 0, 1)), z = L.getDay(), L = z > 4 || z === 0 ? Gt.ceil(L) : Gt(L), L = xt.offset(L, (g.V - 1) * 7), g.y = L.getFullYear(), g.m = L.getMonth(), g.d = L.getDate() + (g.w + 6) % 7);
|
|
3037
3037
|
} else ("W" in g || "U" in g) && ("w" in g || (g.w = "u" in g ? g.u % 7 : "W" in g ? 1 : 0), z = "Z" in g ? En(tt(g.y, 0, 1)).getUTCDay() : Tn(tt(g.y, 0, 1)).getDay(), g.m = 0, g.d = "W" in g ? (g.w + 6) % 7 + g.W * 7 - (z + 5) % 7 : g.w + g.U * 7 - (z + 6) % 7);
|
|
3038
3038
|
return "Z" in g ? (g.H += g.Z / 100 | 0, g.M += g.Z % 100, En(g)) : Tn(g);
|
|
3039
3039
|
};
|
|
3040
3040
|
}
|
|
3041
3041
|
function pe(b, k, D, g) {
|
|
3042
|
-
for (var j = 0,
|
|
3042
|
+
for (var j = 0, L = k.length, z = D.length, W, be; j < L; ) {
|
|
3043
3043
|
if (g >= z) return -1;
|
|
3044
3044
|
if (W = k.charCodeAt(j++), W === 37) {
|
|
3045
3045
|
if (W = k.charAt(j++), be = I[W in Vs ? k.charAt(j++) : W], !be || (g = be(b, D, g)) < 0) return -1;
|
|
@@ -3062,9 +3062,9 @@ function zl(n) {
|
|
|
3062
3062
|
}
|
|
3063
3063
|
function oe(b, k, D) {
|
|
3064
3064
|
var g = R.exec(k.slice(D));
|
|
3065
|
-
return g ? (b.m =
|
|
3065
|
+
return g ? (b.m = _.get(g[0].toLowerCase()), D + g[0].length) : -1;
|
|
3066
3066
|
}
|
|
3067
|
-
function
|
|
3067
|
+
function q(b, k, D) {
|
|
3068
3068
|
var g = w.exec(k.slice(D));
|
|
3069
3069
|
return g ? (b.m = x.get(g[0].toLowerCase()), D + g[0].length) : -1;
|
|
3070
3070
|
}
|
|
@@ -3086,31 +3086,31 @@ function zl(n) {
|
|
|
3086
3086
|
function te(b) {
|
|
3087
3087
|
return c[b.getMonth()];
|
|
3088
3088
|
}
|
|
3089
|
-
function
|
|
3089
|
+
function Qi(b) {
|
|
3090
3090
|
return o[b.getMonth()];
|
|
3091
3091
|
}
|
|
3092
|
-
function
|
|
3092
|
+
function Ji(b) {
|
|
3093
3093
|
return r[+(b.getHours() >= 12)];
|
|
3094
3094
|
}
|
|
3095
|
-
function
|
|
3095
|
+
function ea(b) {
|
|
3096
3096
|
return 1 + ~~(b.getMonth() / 3);
|
|
3097
3097
|
}
|
|
3098
|
-
function
|
|
3098
|
+
function ta(b) {
|
|
3099
3099
|
return a[b.getUTCDay()];
|
|
3100
3100
|
}
|
|
3101
|
-
function
|
|
3101
|
+
function na(b) {
|
|
3102
3102
|
return i[b.getUTCDay()];
|
|
3103
3103
|
}
|
|
3104
|
-
function
|
|
3104
|
+
function sa(b) {
|
|
3105
3105
|
return c[b.getUTCMonth()];
|
|
3106
3106
|
}
|
|
3107
|
-
function
|
|
3107
|
+
function ra(b) {
|
|
3108
3108
|
return o[b.getUTCMonth()];
|
|
3109
3109
|
}
|
|
3110
|
-
function
|
|
3110
|
+
function ia(b) {
|
|
3111
3111
|
return r[+(b.getUTCHours() >= 12)];
|
|
3112
3112
|
}
|
|
3113
|
-
function
|
|
3113
|
+
function aa(b) {
|
|
3114
3114
|
return 1 + ~~(b.getUTCMonth() / 3);
|
|
3115
3115
|
}
|
|
3116
3116
|
return {
|
|
@@ -3246,11 +3246,11 @@ function fc(n, e) {
|
|
|
3246
3246
|
function pc(n, e) {
|
|
3247
3247
|
return O(1 + xt.count(de(n), n), e, 3);
|
|
3248
3248
|
}
|
|
3249
|
-
function
|
|
3249
|
+
function Yi(n, e) {
|
|
3250
3250
|
return O(n.getMilliseconds(), e, 3);
|
|
3251
3251
|
}
|
|
3252
3252
|
function mc(n, e) {
|
|
3253
|
-
return
|
|
3253
|
+
return Yi(n, e) + "000";
|
|
3254
3254
|
}
|
|
3255
3255
|
function gc(n, e) {
|
|
3256
3256
|
return O(n.getMonth() + 1, e, 2);
|
|
@@ -3268,12 +3268,12 @@ function bc(n) {
|
|
|
3268
3268
|
function wc(n, e) {
|
|
3269
3269
|
return O(mn.count(de(n) - 1, n), e, 2);
|
|
3270
3270
|
}
|
|
3271
|
-
function
|
|
3271
|
+
function Ai(n) {
|
|
3272
3272
|
var e = n.getDay();
|
|
3273
3273
|
return e >= 4 || e === 0 ? ze(n) : ze.ceil(n);
|
|
3274
3274
|
}
|
|
3275
3275
|
function xc(n, e) {
|
|
3276
|
-
return n =
|
|
3276
|
+
return n = Ai(n), O(ze.count(de(n), n) + (de(n).getDay() === 4), e, 2);
|
|
3277
3277
|
}
|
|
3278
3278
|
function Sc(n) {
|
|
3279
3279
|
return n.getDay();
|
|
@@ -3285,7 +3285,7 @@ function Ec(n, e) {
|
|
|
3285
3285
|
return O(n.getFullYear() % 100, e, 2);
|
|
3286
3286
|
}
|
|
3287
3287
|
function Cc(n, e) {
|
|
3288
|
-
return n =
|
|
3288
|
+
return n = Ai(n), O(n.getFullYear() % 100, e, 2);
|
|
3289
3289
|
}
|
|
3290
3290
|
function kc(n, e) {
|
|
3291
3291
|
return O(n.getFullYear() % 1e4, e, 4);
|
|
@@ -3310,13 +3310,13 @@ function Dc(n, e) {
|
|
|
3310
3310
|
function Oc(n, e) {
|
|
3311
3311
|
return O(1 + Cs.count(Te(n), n), e, 3);
|
|
3312
3312
|
}
|
|
3313
|
-
function
|
|
3313
|
+
function Ni(n, e) {
|
|
3314
3314
|
return O(n.getUTCMilliseconds(), e, 3);
|
|
3315
3315
|
}
|
|
3316
|
-
function Lc(n, e) {
|
|
3317
|
-
return Ii(n, e) + "000";
|
|
3318
|
-
}
|
|
3319
3316
|
function _c(n, e) {
|
|
3317
|
+
return Ni(n, e) + "000";
|
|
3318
|
+
}
|
|
3319
|
+
function Lc(n, e) {
|
|
3320
3320
|
return O(n.getUTCMonth() + 1, e, 2);
|
|
3321
3321
|
}
|
|
3322
3322
|
function Yc(n, e) {
|
|
@@ -3330,14 +3330,14 @@ function Nc(n) {
|
|
|
3330
3330
|
return e === 0 ? 7 : e;
|
|
3331
3331
|
}
|
|
3332
3332
|
function Ic(n, e) {
|
|
3333
|
-
return O(
|
|
3333
|
+
return O(Li.count(Te(n) - 1, n), e, 2);
|
|
3334
3334
|
}
|
|
3335
|
-
function
|
|
3335
|
+
function Ii(n) {
|
|
3336
3336
|
var e = n.getUTCDay();
|
|
3337
3337
|
return e >= 4 || e === 0 ? We(n) : We.ceil(n);
|
|
3338
3338
|
}
|
|
3339
3339
|
function Bc(n, e) {
|
|
3340
|
-
return n =
|
|
3340
|
+
return n = Ii(n), O(We.count(Te(n), n) + (Te(n).getUTCDay() === 4), e, 2);
|
|
3341
3341
|
}
|
|
3342
3342
|
function Zc(n) {
|
|
3343
3343
|
return n.getUTCDay();
|
|
@@ -3348,10 +3348,10 @@ function Uc(n, e) {
|
|
|
3348
3348
|
function $c(n, e) {
|
|
3349
3349
|
return O(n.getUTCFullYear() % 100, e, 2);
|
|
3350
3350
|
}
|
|
3351
|
-
function qc(n, e) {
|
|
3352
|
-
return n = Bi(n), O(n.getUTCFullYear() % 100, e, 2);
|
|
3353
|
-
}
|
|
3354
3351
|
function Fc(n, e) {
|
|
3352
|
+
return n = Ii(n), O(n.getUTCFullYear() % 100, e, 2);
|
|
3353
|
+
}
|
|
3354
|
+
function qc(n, e) {
|
|
3355
3355
|
return O(n.getUTCFullYear() % 1e4, e, 4);
|
|
3356
3356
|
}
|
|
3357
3357
|
function jc(n, e) {
|
|
@@ -3370,7 +3370,7 @@ function nr(n) {
|
|
|
3370
3370
|
function sr(n) {
|
|
3371
3371
|
return Math.floor(+n / 1e3);
|
|
3372
3372
|
}
|
|
3373
|
-
var
|
|
3373
|
+
var _e, Bi;
|
|
3374
3374
|
zc({
|
|
3375
3375
|
dateTime: "%x, %X",
|
|
3376
3376
|
date: "%-m/%-d/%Y",
|
|
@@ -3382,7 +3382,7 @@ zc({
|
|
|
3382
3382
|
shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
|
|
3383
3383
|
});
|
|
3384
3384
|
function zc(n) {
|
|
3385
|
-
return
|
|
3385
|
+
return _e = zl(n), Bi = _e.format, _e.parse, _e.utcFormat, _e.utcParse, _e;
|
|
3386
3386
|
}
|
|
3387
3387
|
function Wc(n) {
|
|
3388
3388
|
return new Date(n);
|
|
@@ -3390,10 +3390,10 @@ function Wc(n) {
|
|
|
3390
3390
|
function Vc(n) {
|
|
3391
3391
|
return n instanceof Date ? +n : +/* @__PURE__ */ new Date(+n);
|
|
3392
3392
|
}
|
|
3393
|
-
function
|
|
3394
|
-
var u =
|
|
3393
|
+
function Zi(n, e, t, s, r, i, a, o, c, l) {
|
|
3394
|
+
var u = Ri(), d = u.invert, m = u.domain, v = l(".%L"), T = l(":%S"), w = l("%I:%M"), x = l("%I %p"), R = l("%a %d"), _ = l("%b %d"), M = l("%B"), Y = l("%Y");
|
|
3395
3395
|
function I(E) {
|
|
3396
|
-
return (c(E) < E ? v : o(E) < E ? T : a(E) < E ? w : i(E) < E ? x : s(E) < E ? r(E) < E ? R :
|
|
3396
|
+
return (c(E) < E ? v : o(E) < E ? T : a(E) < E ? w : i(E) < E ? x : s(E) < E ? r(E) < E ? R : _ : t(E) < E ? M : Y)(E);
|
|
3397
3397
|
}
|
|
3398
3398
|
return u.invert = function(E) {
|
|
3399
3399
|
return new Date(d(E));
|
|
@@ -3408,11 +3408,11 @@ function Ui(n, e, t, s, r, i, a, o, c, l) {
|
|
|
3408
3408
|
var A = m();
|
|
3409
3409
|
return (!E || typeof E.range != "function") && (E = e(A[0], A[A.length - 1], E ?? 10)), E ? m(Dl(A, E)) : u;
|
|
3410
3410
|
}, u.copy = function() {
|
|
3411
|
-
return
|
|
3411
|
+
return Pi(u, Zi(n, e, t, s, r, i, a, o, c, l));
|
|
3412
3412
|
}, u;
|
|
3413
3413
|
}
|
|
3414
3414
|
function Xc() {
|
|
3415
|
-
return
|
|
3415
|
+
return Ti.apply(Zi(jl, Hl, de, ks, mn, xt, Es, Ts, Ae, Bi).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
|
|
3416
3416
|
}
|
|
3417
3417
|
const rr = [
|
|
3418
3418
|
S.NANOSECOND,
|
|
@@ -3541,11 +3541,11 @@ class Gc {
|
|
|
3541
3541
|
return this._span.lessThan(S.microseconds(50)) ? `${e.remainder(S.MILLISECOND).microseconds.toString()}µs` : `${e.remainder(S.SECOND).milliseconds.toString()}ms`;
|
|
3542
3542
|
}
|
|
3543
3543
|
}
|
|
3544
|
-
const Kc = () => new Gc(),
|
|
3544
|
+
const Kc = () => new Gc(), Ui = h.enum(["linear", "time"]), $i = h.object({
|
|
3545
3545
|
tickSpacing: h.number().default(75),
|
|
3546
|
-
type:
|
|
3546
|
+
type: Ui.optional().default("linear")
|
|
3547
3547
|
}), ir = (n) => {
|
|
3548
|
-
const e =
|
|
3548
|
+
const e = $i.parse(n);
|
|
3549
3549
|
return eu[e.type](e);
|
|
3550
3550
|
};
|
|
3551
3551
|
class Qc {
|
|
@@ -3571,14 +3571,14 @@ class Qc {
|
|
|
3571
3571
|
}
|
|
3572
3572
|
if (s.span.milliseconds < 5) {
|
|
3573
3573
|
this.preciseScale.domain([s.start, s.end]);
|
|
3574
|
-
const r =
|
|
3574
|
+
const r = qn(t, this.props.tickSpacing) / 2, i = this.preciseScale.ticks(r);
|
|
3575
3575
|
this.currTicks = i.map((a) => ({
|
|
3576
3576
|
label: this.preciseScale.formatTick(a),
|
|
3577
3577
|
position: this.preciseScale.scale(a)
|
|
3578
3578
|
}));
|
|
3579
3579
|
} else {
|
|
3580
3580
|
this.normalScale.domain([s.start.date(), s.end.date()]);
|
|
3581
|
-
const r = this.normalScale.ticks(
|
|
3581
|
+
const r = this.normalScale.ticks(qn(t, this.props.tickSpacing));
|
|
3582
3582
|
this.currTicks = r.map((i) => ({
|
|
3583
3583
|
label: this.normalTickLabel(i),
|
|
3584
3584
|
position: this.normalScale(i)
|
|
@@ -3610,7 +3610,7 @@ class Jc {
|
|
|
3610
3610
|
if (C.equals(this.prevDomain, s) && this.prevScaleSize === t)
|
|
3611
3611
|
return this.currTicks;
|
|
3612
3612
|
C.equals(this.prevDomain, s) || (this.d3Scale = this.d3Scale.domain([s.lower, s.upper])), this.prevScaleSize !== t && (this.d3Scale = this.d3Scale.range([0, t])), this.prevDomain = s, this.prevScaleSize = t;
|
|
3613
|
-
const r =
|
|
3613
|
+
const r = qn(t, this.props.tickSpacing), i = this.d3Scale.ticks(r);
|
|
3614
3614
|
return this.currTicks = i.map((a) => ({
|
|
3615
3615
|
label: this.tickLabel(a),
|
|
3616
3616
|
position: this.d3Scale(a)
|
|
@@ -3620,15 +3620,15 @@ class Jc {
|
|
|
3620
3620
|
return e.toString();
|
|
3621
3621
|
}
|
|
3622
3622
|
}
|
|
3623
|
-
const
|
|
3623
|
+
const qn = (n, e) => {
|
|
3624
3624
|
const t = Math.floor(n / e);
|
|
3625
3625
|
return t > 0 ? t : 1;
|
|
3626
3626
|
}, eu = {
|
|
3627
3627
|
linear: (n) => new Jc(n),
|
|
3628
3628
|
time: (n) => new Qc(n)
|
|
3629
|
-
}, Fi =
|
|
3629
|
+
}, Fi = $i.extend({
|
|
3630
3630
|
color: y.colorZ,
|
|
3631
|
-
type:
|
|
3631
|
+
type: Ui.optional().default("linear"),
|
|
3632
3632
|
font: h.string(),
|
|
3633
3633
|
showGrid: h.boolean().optional().default(!0),
|
|
3634
3634
|
location: se.outer,
|
|
@@ -3647,7 +3647,7 @@ class Qe {
|
|
|
3647
3647
|
this.renderCtx = e, this.state = t, this.tickFactory = ir(this.state);
|
|
3648
3648
|
}
|
|
3649
3649
|
setState(e) {
|
|
3650
|
-
this.state =
|
|
3650
|
+
this.state = ga(Fi, e), this.tickFactory = ir(e);
|
|
3651
3651
|
}
|
|
3652
3652
|
drawLine(e, t) {
|
|
3653
3653
|
const { lower2d: s } = this.renderCtx;
|
|
@@ -3784,15 +3784,15 @@ const gn = Fi.extend({
|
|
|
3784
3784
|
), uu = C.DECIMAL, ar = N.now(), hu = {
|
|
3785
3785
|
lower: Number(ar.valueOf()),
|
|
3786
3786
|
upper: Number(ar.add(S.HOUR).valueOf())
|
|
3787
|
-
},
|
|
3787
|
+
}, qi = (n) => n === "linear" ? uu : hu, du = (n, e = 0.1, t) => {
|
|
3788
3788
|
const s = C.max(n.filter(C.isFinite));
|
|
3789
|
-
if (!C.isFinite(s)) return
|
|
3789
|
+
if (!C.isFinite(s)) return qi(t);
|
|
3790
3790
|
const { lower: r, upper: i } = s;
|
|
3791
3791
|
if (i === r) return { lower: r - 1, upper: i + 1 };
|
|
3792
3792
|
const a = (i - r) * e;
|
|
3793
3793
|
return { lower: r - a, upper: i + a };
|
|
3794
3794
|
}, fu = 0.01, pu = 0.1;
|
|
3795
|
-
class
|
|
3795
|
+
class ji extends ae {
|
|
3796
3796
|
afterUpdate(e) {
|
|
3797
3797
|
const { internal: t } = this, { location: s, autoBoundUpdateInterval: r } = this.state;
|
|
3798
3798
|
t.render = V.use(e);
|
|
@@ -3802,7 +3802,7 @@ class Hi extends ae {
|
|
|
3802
3802
|
font: it(i, { level: "small", code: !0 }),
|
|
3803
3803
|
gridColor: i.colors.gray.l1,
|
|
3804
3804
|
...this.state
|
|
3805
|
-
}), ge(e, "layout"), t.updateBounds ??=
|
|
3805
|
+
}), ge(e, "layout"), t.updateBounds ??= ya(
|
|
3806
3806
|
(o) => this.setState((c) => ({ ...c, bounds: o })),
|
|
3807
3807
|
r.milliseconds
|
|
3808
3808
|
);
|
|
@@ -3835,7 +3835,7 @@ class Hi extends ae {
|
|
|
3835
3835
|
const l = t();
|
|
3836
3836
|
a = du(l, this.state.autoBoundPadding, this.state.type);
|
|
3837
3837
|
} catch (l) {
|
|
3838
|
-
a =
|
|
3838
|
+
a = qi(this.state.type), o = l;
|
|
3839
3839
|
}
|
|
3840
3840
|
const c = i(a);
|
|
3841
3841
|
return this.internal.boundSnapshot = c, (this.state.bounds == null || s && this.state.bounds.lower !== c.lower || r && this.state.bounds.upper !== c.upper) && this.internal.updateBounds?.(c), [c, o];
|
|
@@ -3900,8 +3900,8 @@ void main(void) {
|
|
|
3900
3900
|
gl_Position = vec4((u_scale_aggregate * vec2(a_x, float(a_y)) + u_offset_aggregate) + a_translate, 0.0, 1.0);
|
|
3901
3901
|
}
|
|
3902
3902
|
`, vu = h.object({
|
|
3903
|
-
x:
|
|
3904
|
-
y:
|
|
3903
|
+
x: _t,
|
|
3904
|
+
y: _t,
|
|
3905
3905
|
label: h.string().optional(),
|
|
3906
3906
|
color: y.colorZ,
|
|
3907
3907
|
strokeWidth: h.number().default(1),
|
|
@@ -3911,7 +3911,7 @@ void main(void) {
|
|
|
3911
3911
|
}), bu = (n, e, t) => n === -1 || e === -1 || n >= t.series.length ? NaN : Number(t.series[n].at(e)), wu = S.milliseconds(2);
|
|
3912
3912
|
f.NAN, f.NAN, y.ZERO, C.ZERO;
|
|
3913
3913
|
const xu = (n, e) => e.equals($.UINT8) ? n.UNSIGNED_BYTE : n.FLOAT;
|
|
3914
|
-
class lr extends
|
|
3914
|
+
class lr extends va {
|
|
3915
3915
|
translationBufferCache = /* @__PURE__ */ new Map();
|
|
3916
3916
|
constructor(e, t, s) {
|
|
3917
3917
|
super(e, t, s), this.translationBufferCache = /* @__PURE__ */ new Map();
|
|
@@ -4003,7 +4003,7 @@ class Ie {
|
|
|
4003
4003
|
return t;
|
|
4004
4004
|
}
|
|
4005
4005
|
}
|
|
4006
|
-
class jn extends
|
|
4006
|
+
class jn extends F {
|
|
4007
4007
|
static TYPE = "line";
|
|
4008
4008
|
schema = vu;
|
|
4009
4009
|
afterUpdate(e) {
|
|
@@ -4034,8 +4034,8 @@ class jn extends q {
|
|
|
4034
4034
|
i = this.internal.xDownsampler.transform(i);
|
|
4035
4035
|
let [a, o] = [-1, -1];
|
|
4036
4036
|
i.series.find((x, R) => {
|
|
4037
|
-
const
|
|
4038
|
-
return M && ([a, o] = [
|
|
4037
|
+
const _ = x.binarySearch(t), M = _ >= 0 && _ < x.length;
|
|
4038
|
+
return M && ([a, o] = [_, R]), M;
|
|
4039
4039
|
});
|
|
4040
4040
|
const { key: c } = this, { color: l, label: u } = this.state, d = {
|
|
4041
4041
|
key: c,
|
|
@@ -4082,8 +4082,8 @@ class jn extends q {
|
|
|
4082
4082
|
}));
|
|
4083
4083
|
const T = m.setAsActive(), w = m.bindState(this.state), x = m.renderCtx.scaleRegion(e.region).transform;
|
|
4084
4084
|
v.forEach((R) => {
|
|
4085
|
-
const
|
|
4086
|
-
m.bindScale(
|
|
4085
|
+
const _ = Pu(c, R).transform;
|
|
4086
|
+
m.bindScale(_, x), m.draw(R, w, u.dataType, d.dataType);
|
|
4087
4087
|
}), T();
|
|
4088
4088
|
}
|
|
4089
4089
|
}
|
|
@@ -4289,7 +4289,7 @@ class Je {
|
|
|
4289
4289
|
a != null && (d = this.canvas.scissor(p.construct(t, a, 1e3))), this.canvas.fillText(e, t.x, t.y), d?.();
|
|
4290
4290
|
}
|
|
4291
4291
|
}
|
|
4292
|
-
const
|
|
4292
|
+
const Hi = h.object({
|
|
4293
4293
|
position: h.number().optional(),
|
|
4294
4294
|
pixelPosition: h.number().optional(),
|
|
4295
4295
|
dragging: h.boolean(),
|
|
@@ -4297,9 +4297,9 @@ const zi = h.object({
|
|
|
4297
4297
|
lineDash: h.number().optional().default(20),
|
|
4298
4298
|
color: y.colorZ
|
|
4299
4299
|
}), Ou = 3;
|
|
4300
|
-
class Qt extends
|
|
4300
|
+
class Qt extends F {
|
|
4301
4301
|
static TYPE = "Rule";
|
|
4302
|
-
schema =
|
|
4302
|
+
schema = Hi;
|
|
4303
4303
|
lastUpdateRef = null;
|
|
4304
4304
|
afterUpdate(e) {
|
|
4305
4305
|
this.internal.renderCtx = V.use(e);
|
|
@@ -4349,17 +4349,17 @@ class Qt extends q {
|
|
|
4349
4349
|
a.closePath(), a.stroke();
|
|
4350
4350
|
}
|
|
4351
4351
|
}
|
|
4352
|
-
const
|
|
4352
|
+
const _u = {
|
|
4353
4353
|
[Qt.TYPE]: Qt
|
|
4354
|
-
},
|
|
4354
|
+
}, Fh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4355
4355
|
__proto__: null,
|
|
4356
|
-
REGISTRY:
|
|
4356
|
+
REGISTRY: _u,
|
|
4357
4357
|
Rule: Qt,
|
|
4358
|
-
ruleStateZ:
|
|
4359
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4358
|
+
ruleStateZ: Hi
|
|
4359
|
+
}, Symbol.toStringTag, { value: "Module" })), qh = gn.extend({
|
|
4360
4360
|
location: se.x.optional().default("left")
|
|
4361
|
-
}), cr = 2,
|
|
4362
|
-
class Hn extends
|
|
4361
|
+
}), cr = 2, Lu = (n) => p.signedWidth(n) < cr || p.signedHeight(n) < cr;
|
|
4362
|
+
class Hn extends ji {
|
|
4363
4363
|
static TYPE = "YAxis";
|
|
4364
4364
|
schema = gn;
|
|
4365
4365
|
xBounds() {
|
|
@@ -4382,7 +4382,7 @@ class Hn extends Hi {
|
|
|
4382
4382
|
if (this.renderAxis(e, r), this.renderLines(e, t), this.renderRules(e, r), s != null) throw s;
|
|
4383
4383
|
}
|
|
4384
4384
|
renderLines({ xDataToDecimalScale: e, plot: t, canvases: s, exposure: r }, i) {
|
|
4385
|
-
if (!s.includes("gl") ||
|
|
4385
|
+
if (!s.includes("gl") || Lu(t)) return;
|
|
4386
4386
|
const a = {
|
|
4387
4387
|
region: t,
|
|
4388
4388
|
dataToDecimalScale: new Q.XY(e, i),
|
|
@@ -4430,7 +4430,7 @@ class Hn extends Hi {
|
|
|
4430
4430
|
}
|
|
4431
4431
|
}
|
|
4432
4432
|
const Yu = h.object({ start: N.z, end: N.z });
|
|
4433
|
-
class ur extends
|
|
4433
|
+
class ur extends F {
|
|
4434
4434
|
static TYPE = "range-annotation";
|
|
4435
4435
|
schema = Yu;
|
|
4436
4436
|
afterUpdate(e) {
|
|
@@ -4519,7 +4519,7 @@ const zh = {
|
|
|
4519
4519
|
sink: hn.optional().default(ln),
|
|
4520
4520
|
source: us.optional().default(os)
|
|
4521
4521
|
});
|
|
4522
|
-
class dr extends
|
|
4522
|
+
class dr extends F {
|
|
4523
4523
|
static TYPE = "Chip";
|
|
4524
4524
|
schema = Zu;
|
|
4525
4525
|
afterUpdate(e) {
|
|
@@ -4618,11 +4618,11 @@ class Jt extends ae {
|
|
|
4618
4618
|
});
|
|
4619
4619
|
}
|
|
4620
4620
|
}
|
|
4621
|
-
const
|
|
4621
|
+
const Fu = ["acquired", "released", "overridden", "failed"], qu = h.enum(Fu), ju = h.object({
|
|
4622
4622
|
name: h.string(),
|
|
4623
4623
|
authority: h.number().default(0),
|
|
4624
4624
|
acquireTrigger: h.number(),
|
|
4625
|
-
status:
|
|
4625
|
+
status: qu.optional(),
|
|
4626
4626
|
needsControlOf: Dt.keyZ.array().optional().default([])
|
|
4627
4627
|
});
|
|
4628
4628
|
class pr extends ae {
|
|
@@ -4634,7 +4634,7 @@ class pr extends ae {
|
|
|
4634
4634
|
const { internal: t } = this;
|
|
4635
4635
|
t.instrumentation = gt(e), t.addStatus = Dr(e), t.runAsync = ue(e), (t.prevTrigger == null || Math.abs(this.state.acquireTrigger - t.prevTrigger) > 1) && (t.prevTrigger = this.state.acquireTrigger);
|
|
4636
4636
|
const s = Ke(e), r = Jt.use(e);
|
|
4637
|
-
t.stateProv = r, t.telemCtx =
|
|
4637
|
+
t.stateProv = r, t.telemCtx = fi(e, this, t.telemCtx), t.client = s, t.runAsync(async () => {
|
|
4638
4638
|
t.client == null && await this.release(), this.state.acquireTrigger > t.prevTrigger ? await this.acquire() : this.state.acquireTrigger < t.prevTrigger && await this.release();
|
|
4639
4639
|
}, "failed to acquire control");
|
|
4640
4640
|
}
|
|
@@ -4758,7 +4758,7 @@ class zn extends fn {
|
|
|
4758
4758
|
set(...e) {
|
|
4759
4759
|
this.runAsync(async () => {
|
|
4760
4760
|
const { client: t } = this.controller.internal;
|
|
4761
|
-
if (t == null) throw new
|
|
4761
|
+
if (t == null) throw new ba("No cluster connected");
|
|
4762
4762
|
if (this.props.channel === 0)
|
|
4763
4763
|
throw new Ge("No command channel specified for actuator");
|
|
4764
4764
|
const s = await t.channels.retrieve(this.props.channel), r = { [s.key]: e };
|
|
@@ -4881,7 +4881,7 @@ const Gh = (n) => ({
|
|
|
4881
4881
|
status: Xe.statusZ(Vu),
|
|
4882
4882
|
color: y.colorZ.optional()
|
|
4883
4883
|
});
|
|
4884
|
-
class mr extends
|
|
4884
|
+
class mr extends F {
|
|
4885
4885
|
static TYPE = "Indicator";
|
|
4886
4886
|
schema = Xu;
|
|
4887
4887
|
stopListeningStatus;
|
|
@@ -4904,7 +4904,7 @@ const Gu = h.object({
|
|
|
4904
4904
|
needsControlOf: Dt.keyZ.array(),
|
|
4905
4905
|
states: $u.array()
|
|
4906
4906
|
});
|
|
4907
|
-
class gr extends
|
|
4907
|
+
class gr extends F {
|
|
4908
4908
|
static TYPE = "Legend";
|
|
4909
4909
|
schema = Gu;
|
|
4910
4910
|
afterUpdate(e) {
|
|
@@ -4937,7 +4937,7 @@ const Kh = {
|
|
|
4937
4937
|
sink: hn.optional().default(ln),
|
|
4938
4938
|
mode: Qu.optional().default("fire")
|
|
4939
4939
|
}), eh = 2, th = 1;
|
|
4940
|
-
class yr extends
|
|
4940
|
+
class yr extends F {
|
|
4941
4941
|
static TYPE = "Button";
|
|
4942
4942
|
schema = Ju;
|
|
4943
4943
|
afterUpdate(e) {
|
|
@@ -4952,7 +4952,7 @@ class yr extends q {
|
|
|
4952
4952
|
this.internal.sink.cleanup?.();
|
|
4953
4953
|
}
|
|
4954
4954
|
}
|
|
4955
|
-
const Qh = { [yr.TYPE]: yr },
|
|
4955
|
+
const Qh = { [yr.TYPE]: yr }, zi = h.object({
|
|
4956
4956
|
dpr: h.number(),
|
|
4957
4957
|
region: p.box,
|
|
4958
4958
|
bootstrap: h.boolean().optional().default(!1),
|
|
@@ -4962,11 +4962,11 @@ const Qh = { [yr.TYPE]: yr }, Wi = h.object({
|
|
|
4962
4962
|
glCanvas: h.any().optional(),
|
|
4963
4963
|
upper2dCanvas: h.any().optional(),
|
|
4964
4964
|
lower2dCanvas: h.any().optional(),
|
|
4965
|
-
os:
|
|
4965
|
+
os: ha.osZ
|
|
4966
4966
|
});
|
|
4967
4967
|
class Xn extends ae {
|
|
4968
4968
|
static TYPE = "Canvas";
|
|
4969
|
-
schema =
|
|
4969
|
+
schema = zi;
|
|
4970
4970
|
renderCtx = null;
|
|
4971
4971
|
afterUpdate(e) {
|
|
4972
4972
|
if (this.renderCtx == null) {
|
|
@@ -5000,8 +5000,8 @@ const nh = {
|
|
|
5000
5000
|
__proto__: null,
|
|
5001
5001
|
Canvas: Xn,
|
|
5002
5002
|
REGISTRY: nh,
|
|
5003
|
-
canvasStateZ:
|
|
5004
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5003
|
+
canvasStateZ: zi
|
|
5004
|
+
}, Symbol.toStringTag, { value: "Module" })), Wi = h.object({
|
|
5005
5005
|
position: f.xy,
|
|
5006
5006
|
zoom: h.number(),
|
|
5007
5007
|
region: p.box,
|
|
@@ -5010,7 +5010,7 @@ const nh = {
|
|
|
5010
5010
|
}), Pt = ["upper2d", "lower2d"];
|
|
5011
5011
|
class Ve extends ae {
|
|
5012
5012
|
static TYPE = "Diagram";
|
|
5013
|
-
static stateZ =
|
|
5013
|
+
static stateZ = Wi;
|
|
5014
5014
|
schema = Ve.stateZ;
|
|
5015
5015
|
afterUpdate(e) {
|
|
5016
5016
|
this.internal.renderCtx = V.use(e), this.internal.handleError = ue(e), rs(e, () => {
|
|
@@ -5058,18 +5058,17 @@ const sh = {
|
|
|
5058
5058
|
__proto__: null,
|
|
5059
5059
|
Diagram: Ve,
|
|
5060
5060
|
REGISTRY: sh,
|
|
5061
|
-
diagramStateZ:
|
|
5061
|
+
diagramStateZ: Wi
|
|
5062
5062
|
}, Symbol.toStringTag, { value: "Module" })), rh = h.object({
|
|
5063
5063
|
enabled: h.boolean(),
|
|
5064
5064
|
source: ls.optional().default(as)
|
|
5065
5065
|
});
|
|
5066
|
-
class vr extends
|
|
5066
|
+
class vr extends F {
|
|
5067
5067
|
static TYPE = "Light";
|
|
5068
5068
|
schema = rh;
|
|
5069
5069
|
afterUpdate(e) {
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
this.internal.source = ee(e, t, this.internal.source), s.stopListening?.(), s.stopListening = s.source.onChange(() => this.updateEnabledState());
|
|
5070
|
+
const { internal: t } = this;
|
|
5071
|
+
this.internal.source = ee(e, this.state.source, t.source), this.updateEnabledState(), t.stopListening?.(), t.stopListening = t.source.onChange(() => this.updateEnabledState());
|
|
5073
5072
|
}
|
|
5074
5073
|
updateEnabledState() {
|
|
5075
5074
|
const e = this.internal.source.value();
|
|
@@ -5079,7 +5078,7 @@ class vr extends q {
|
|
|
5079
5078
|
this.internal.stopListening(), this.internal.source.cleanup?.();
|
|
5080
5079
|
}
|
|
5081
5080
|
}
|
|
5082
|
-
const td = { [vr.TYPE]: vr }, ih = f.construct(12), ah = 3, oh = 14, lh = f.construct(6),
|
|
5081
|
+
const td = { [vr.TYPE]: vr }, ih = f.construct(12), ah = 3, oh = 14, lh = f.construct(6), Vi = h.object({
|
|
5083
5082
|
position: f.xy.or(h.null()),
|
|
5084
5083
|
textColor: y.colorZ.optional().default(y.ZERO),
|
|
5085
5084
|
backgroundColor: y.colorZ.optional().default(y.ZERO),
|
|
@@ -5088,9 +5087,9 @@ const td = { [vr.TYPE]: vr }, ih = f.construct(12), ah = 3, oh = 14, lh = f.cons
|
|
|
5088
5087
|
ruleStrokeWidth: h.number().optional().default(1),
|
|
5089
5088
|
ruleStrokeDash: h.number().default(0)
|
|
5090
5089
|
});
|
|
5091
|
-
class en extends
|
|
5090
|
+
class en extends F {
|
|
5092
5091
|
static TYPE = "tooltip";
|
|
5093
|
-
schema =
|
|
5092
|
+
schema = Vi;
|
|
5094
5093
|
afterUpdate(e) {
|
|
5095
5094
|
const t = fe(e);
|
|
5096
5095
|
y.isZero(this.state.textColor) && (this.state.textColor = t.colors.text), y.isZero(this.state.backgroundColor) && (this.state.backgroundColor = t.colors.gray.l1), y.isZero(this.state.borderColor) && (this.state.borderColor = t.colors.border), y.isZero(this.state.ruleColor) && (this.state.ruleColor = t.colors.gray.l7), this.internal.dotColor = t.colors.text, this.internal.dotColorContrast = t.colors.textInverted, this.internal.render = V.use(e), this.internal.draw = new Je(this.internal.render.upper2d, t), ge(e, "tool");
|
|
@@ -5137,12 +5136,12 @@ class en extends q {
|
|
|
5137
5136
|
width: v * 7 + 48,
|
|
5138
5137
|
position: this.state.position,
|
|
5139
5138
|
draw: (w, x) => {
|
|
5140
|
-
let R = "",
|
|
5139
|
+
let R = "", _ = "", M = this.state.textColor;
|
|
5141
5140
|
if (w === 0)
|
|
5142
|
-
R = "Time",
|
|
5141
|
+
R = "Time", _ = l.fString("preciseDate", "local");
|
|
5143
5142
|
else {
|
|
5144
5143
|
const Y = a[w - 1];
|
|
5145
|
-
R = Y.label ?? "",
|
|
5144
|
+
R = Y.label ?? "", _ = Cr.roundBySpan(Y.value.y, Y.bounds).toString(), M = Y.color;
|
|
5146
5145
|
}
|
|
5147
5146
|
o.text({
|
|
5148
5147
|
position: p.topLeft(x),
|
|
@@ -5152,7 +5151,7 @@ class en extends q {
|
|
|
5152
5151
|
color: M
|
|
5153
5152
|
}), o.text({
|
|
5154
5153
|
position: f.translateY(p.topRight(x), -1),
|
|
5155
|
-
text:
|
|
5154
|
+
text: _,
|
|
5156
5155
|
level: "small",
|
|
5157
5156
|
justify: "right",
|
|
5158
5157
|
code: !0,
|
|
@@ -5168,15 +5167,15 @@ const ch = {
|
|
|
5168
5167
|
__proto__: null,
|
|
5169
5168
|
REGISTRY: ch,
|
|
5170
5169
|
Tooltip: en,
|
|
5171
|
-
tooltipStateZ:
|
|
5170
|
+
tooltipStateZ: Vi
|
|
5172
5171
|
}, Symbol.toStringTag, { value: "Module" })), uh = h.object({
|
|
5173
5172
|
region: p.box,
|
|
5174
5173
|
wheelPos: h.number(),
|
|
5175
5174
|
scrolling: h.boolean(),
|
|
5176
5175
|
empty: h.boolean(),
|
|
5177
5176
|
visible: h.boolean(),
|
|
5178
|
-
telem:
|
|
5179
|
-
font:
|
|
5177
|
+
telem: _t.optional().default(Ar),
|
|
5178
|
+
font: Or.optional().default("p"),
|
|
5180
5179
|
color: y.colorZ.optional().default(y.ZERO),
|
|
5181
5180
|
overshoot: f.xy.optional().default({ x: 0, y: 0 })
|
|
5182
5181
|
}), hh = 0.98, rt = "lower2d", dh = {
|
|
@@ -5184,7 +5183,7 @@ const ch = {
|
|
|
5184
5183
|
offsetRef: 0n,
|
|
5185
5184
|
scrollRef: 0
|
|
5186
5185
|
};
|
|
5187
|
-
class tn extends
|
|
5186
|
+
class tn extends F {
|
|
5188
5187
|
static TYPE = "log";
|
|
5189
5188
|
static z = uh;
|
|
5190
5189
|
schema = tn.z;
|
|
@@ -5298,7 +5297,7 @@ class tn extends q {
|
|
|
5298
5297
|
}
|
|
5299
5298
|
}
|
|
5300
5299
|
}
|
|
5301
|
-
const sd = { [tn.TYPE]: tn },
|
|
5300
|
+
const sd = { [tn.TYPE]: tn }, Xi = h.object({
|
|
5302
5301
|
one: f.xy.nullable(),
|
|
5303
5302
|
two: f.xy.nullable(),
|
|
5304
5303
|
hover: f.xy.nullable(),
|
|
@@ -5313,9 +5312,9 @@ const sd = { [tn.TYPE]: tn }, Gi = h.object({
|
|
|
5313
5312
|
strokeWidth: h.number().optional().default(1),
|
|
5314
5313
|
strokeDash: h.number().optional().default(2)
|
|
5315
5314
|
});
|
|
5316
|
-
class nn extends
|
|
5315
|
+
class nn extends F {
|
|
5317
5316
|
static TYPE = "measure";
|
|
5318
|
-
schema =
|
|
5317
|
+
schema = Xi;
|
|
5319
5318
|
afterUpdate(e) {
|
|
5320
5319
|
const t = V.use(e);
|
|
5321
5320
|
this.internal.theme = fe(e), this.internal.renderCtx = t, this.internal.draw = new Je(t.upper2d, this.internal.theme), ge(e, "tool");
|
|
@@ -5340,10 +5339,10 @@ class nn extends q {
|
|
|
5340
5339
|
const [w, x] = [e.findByXValue(a.x), e.findByXValue(o.x)];
|
|
5341
5340
|
return w.length === 0 || x.length === 0 ? null : [
|
|
5342
5341
|
w.sort(
|
|
5343
|
-
(R,
|
|
5342
|
+
(R, _) => f.distance(a, R.value) - f.distance(a, _.value)
|
|
5344
5343
|
)[0],
|
|
5345
5344
|
x.sort(
|
|
5346
|
-
(R,
|
|
5345
|
+
(R, _) => f.distance(o, R.value) - f.distance(o, _.value)
|
|
5347
5346
|
)[0]
|
|
5348
5347
|
];
|
|
5349
5348
|
}
|
|
@@ -5439,15 +5438,15 @@ const fh = {
|
|
|
5439
5438
|
__proto__: null,
|
|
5440
5439
|
Measure: nn,
|
|
5441
5440
|
REGISTRY: fh,
|
|
5442
|
-
measureStateZ:
|
|
5441
|
+
measureStateZ: Xi
|
|
5443
5442
|
}, Symbol.toStringTag, { value: "Module" })), ph = h.object({
|
|
5444
5443
|
trigger: h.number(),
|
|
5445
5444
|
command: h.number().optional(),
|
|
5446
5445
|
value: h.number(),
|
|
5447
|
-
sink:
|
|
5448
|
-
source:
|
|
5446
|
+
sink: Ur.optional().default(_r),
|
|
5447
|
+
source: Zr.optional().default(Lr)
|
|
5449
5448
|
});
|
|
5450
|
-
class br extends
|
|
5449
|
+
class br extends F {
|
|
5451
5450
|
static TYPE = "Setpoint";
|
|
5452
5451
|
schema = ph;
|
|
5453
5452
|
afterUpdate(e) {
|
|
@@ -5473,11 +5472,11 @@ const id = { [br.TYPE]: br }, mh = h.object({
|
|
|
5473
5472
|
sink: hn.optional().default(ln),
|
|
5474
5473
|
source: ls.optional().default(as)
|
|
5475
5474
|
});
|
|
5476
|
-
class wr extends
|
|
5475
|
+
class wr extends F {
|
|
5477
5476
|
static TYPE = "Toggle";
|
|
5478
5477
|
schema = mh;
|
|
5479
5478
|
afterUpdate(e) {
|
|
5480
|
-
this.internal.addStatus =
|
|
5479
|
+
this.internal.addStatus = wa(e);
|
|
5481
5480
|
const { sink: t, source: s, triggered: r, enabled: i } = this.state, { triggered: a } = this.prevState, { internal: o } = this;
|
|
5482
5481
|
o.source = ee(e, s, o.source), o.sink = bt(e, t, o.sink), r && !a && o.sink.set(!i), this.updateEnabledState(), o.stopListening?.(), o.stopListening = o.source.onChange(() => this.updateEnabledState());
|
|
5483
5482
|
}
|
|
@@ -5491,9 +5490,9 @@ class wr extends q {
|
|
|
5491
5490
|
}
|
|
5492
5491
|
const ad = { [wr.TYPE]: wr }, Cn = { useAtlas: !0 }, gh = h.object({
|
|
5493
5492
|
box: p.box,
|
|
5494
|
-
telem:
|
|
5493
|
+
telem: $r.optional().default(Yr),
|
|
5495
5494
|
backgroundTelem: cs.optional().default(cn),
|
|
5496
|
-
level:
|
|
5495
|
+
level: Or.optional().default("p"),
|
|
5497
5496
|
color: y.colorZ.optional().default(y.ZERO),
|
|
5498
5497
|
precision: h.number().optional().default(2),
|
|
5499
5498
|
minWidth: h.number().optional().default(60),
|
|
@@ -5504,7 +5503,7 @@ const ad = { [wr.TYPE]: wr }, Cn = { useAtlas: !0 }, gh = h.object({
|
|
|
5504
5503
|
valueBackgroundShift: f.xy.optional().default(f.ZERO),
|
|
5505
5504
|
valueBackgroundOverScan: f.xy.optional().default(f.ZERO)
|
|
5506
5505
|
}), yh = ["upper2d", "lower2d"];
|
|
5507
|
-
class pt extends
|
|
5506
|
+
class pt extends F {
|
|
5508
5507
|
static TYPE = "value";
|
|
5509
5508
|
static z = gh;
|
|
5510
5509
|
schema = pt.z;
|
|
@@ -5540,10 +5539,10 @@ class pt extends q {
|
|
|
5540
5539
|
m.font = i;
|
|
5541
5540
|
const T = this.fontHeight, w = v[0] == "-";
|
|
5542
5541
|
w && (v = v.slice(1));
|
|
5543
|
-
const { theme: x } = this.internal, R = m.textDimensions(v, Cn),
|
|
5544
|
-
a == null && t.erase(p.construct(this.prevState.box)), this.maybeUpdateWidth(
|
|
5542
|
+
const { theme: x } = this.internal, R = m.textDimensions(v, Cn), _ = R.width + x.sizes.base, M = R.height;
|
|
5543
|
+
a == null && t.erase(p.construct(this.prevState.box)), this.maybeUpdateWidth(_);
|
|
5545
5544
|
const Y = { ...f.ZERO };
|
|
5546
|
-
o.x === "left" ? Y.x = 6 + T * 0.75 : o.x === "center" && (Y.x = u / 2 -
|
|
5545
|
+
o.x === "left" ? Y.x = 6 + T * 0.75 : o.x === "center" && (Y.x = u / 2 - _ / 2), o.y === "center" && (Y.y = d / 2 + M / 2);
|
|
5547
5546
|
const I = f.translate(l, Y);
|
|
5548
5547
|
let E = !0;
|
|
5549
5548
|
if (this.state.backgroundTelem.type != cn.type) {
|
|
@@ -5603,6 +5602,9 @@ class bh {
|
|
|
5603
5602
|
get(e) {
|
|
5604
5603
|
return typeof e == "function" ? Array.from(this.entries.values()).filter(e) : Array.isArray(e) ? e.map((t) => this.entries.get(t)).filter((t) => t != null) : this.entries.get(e);
|
|
5605
5604
|
}
|
|
5605
|
+
list() {
|
|
5606
|
+
return Array.from(this.entries.values());
|
|
5607
|
+
}
|
|
5606
5608
|
has(e) {
|
|
5607
5609
|
return this.entries.has(e);
|
|
5608
5610
|
}
|
|
@@ -5657,6 +5659,7 @@ class bh {
|
|
|
5657
5659
|
return {
|
|
5658
5660
|
set: (t, s) => this.set(e, t, s),
|
|
5659
5661
|
get: (t) => this.get(t),
|
|
5662
|
+
list: () => this.list(),
|
|
5660
5663
|
has: (t) => this.has(t),
|
|
5661
5664
|
delete: (t) => this.delete(e, t),
|
|
5662
5665
|
onSet: (t, s) => this.onSet(e, t, s),
|
|
@@ -5702,9 +5705,9 @@ const wh = (n, e) => Object.fromEntries(
|
|
|
5702
5705
|
if (w != null)
|
|
5703
5706
|
for (const { onChange: x, schema: R } of w)
|
|
5704
5707
|
await t(async () => {
|
|
5705
|
-
let
|
|
5706
|
-
T.dataType.equals($.JSON) ?
|
|
5707
|
-
for (const M of
|
|
5708
|
+
let _;
|
|
5709
|
+
T.dataType.equals($.JSON) ? _ = T.parseJSON(R) : _ = Array.from(T).map((M) => R.parse(M));
|
|
5710
|
+
for (const M of _)
|
|
5708
5711
|
await t(
|
|
5709
5712
|
() => x({ changed: M, client: s, store: r }),
|
|
5710
5713
|
`Failed to handle streamer change for ${v}`,
|
|
@@ -5713,7 +5716,7 @@ const wh = (n, e) => Object.fromEntries(
|
|
|
5713
5716
|
}, `Failed to parse streamer change for ${v}`);
|
|
5714
5717
|
}
|
|
5715
5718
|
},
|
|
5716
|
-
`Failed to handle streamer change for ${
|
|
5719
|
+
`Failed to handle streamer change for ${da.naturalLanguageJoin(m)}`
|
|
5717
5720
|
);
|
|
5718
5721
|
};
|
|
5719
5722
|
return l.onChange(u), l.close.bind(l);
|
|
@@ -5748,7 +5751,7 @@ class Th {
|
|
|
5748
5751
|
await (await this.streamCloser)();
|
|
5749
5752
|
}
|
|
5750
5753
|
}
|
|
5751
|
-
const Eh = we.object({}), Gn = "flux-context",
|
|
5754
|
+
const Eh = we.object({}), Gn = "flux-context", Gi = "flux.Provider", Ch = (n, e) => n.get(Gn).scopedStore(e), kh = (n) => {
|
|
5752
5755
|
const e = (t, s) => {
|
|
5753
5756
|
if ("client" in n) return n.client;
|
|
5754
5757
|
const r = Ke(t);
|
|
@@ -5759,23 +5762,23 @@ const Eh = we.object({}), Gn = "flux-context", Ki = "flux.Provider", Ch = (n, e)
|
|
|
5759
5762
|
handleAsyncError: Sa(t)
|
|
5760
5763
|
});
|
|
5761
5764
|
};
|
|
5762
|
-
return class
|
|
5763
|
-
static TYPE =
|
|
5765
|
+
return class Ki extends ae {
|
|
5766
|
+
static TYPE = Gi;
|
|
5764
5767
|
static stateZ = Eh;
|
|
5765
|
-
schema =
|
|
5768
|
+
schema = Ki.stateZ;
|
|
5766
5769
|
afterUpdate(s) {
|
|
5767
5770
|
const { internal: r } = this;
|
|
5768
5771
|
r.store = e(s, r.store), s.wasSetPreviously(Gn) || s.set(Gn, r.store);
|
|
5769
5772
|
}
|
|
5770
5773
|
};
|
|
5771
|
-
}, ld = (n) => ({ [
|
|
5774
|
+
}, ld = (n) => ({ [Gi]: kh(n) }), Ph = at.payloadZ.extend({
|
|
5772
5775
|
viewport: C.bounds
|
|
5773
5776
|
}), Rh = h.object({
|
|
5774
5777
|
cursor: f.xy.or(h.null()),
|
|
5775
5778
|
hovered: Ph.or(h.null()),
|
|
5776
5779
|
count: h.number()
|
|
5777
5780
|
});
|
|
5778
|
-
class Kn extends
|
|
5781
|
+
class Kn extends F {
|
|
5779
5782
|
static TYPE = "range-provider";
|
|
5780
5783
|
schema = Rh;
|
|
5781
5784
|
fetchedInitial = G.ZERO;
|
|
@@ -5843,13 +5846,13 @@ class Kn extends q {
|
|
|
5843
5846
|
backgroundColor: y.setAlpha(T, 0.2),
|
|
5844
5847
|
bordered: !1
|
|
5845
5848
|
});
|
|
5846
|
-
const
|
|
5849
|
+
const _ = p.construct(
|
|
5847
5850
|
{ x: w + 1, y: p.top(s) - 34 },
|
|
5848
5851
|
{ x: x - 1, y: p.top(s) - 12 }
|
|
5849
5852
|
);
|
|
5850
5853
|
a.container({
|
|
5851
|
-
region:
|
|
5852
|
-
backgroundColor: p.width(
|
|
5854
|
+
region: _,
|
|
5855
|
+
backgroundColor: p.width(_) < 20 ? y.setAlpha(T, 0.4) : (M) => R ? M.colors.gray.l2 : M.colors.gray.l0,
|
|
5853
5856
|
bordered: !0,
|
|
5854
5857
|
borderWidth: 1,
|
|
5855
5858
|
borderRadius: 2,
|
|
@@ -5869,7 +5872,7 @@ const cd = {
|
|
|
5869
5872
|
[ur.TYPE]: ur,
|
|
5870
5873
|
[Kn.TYPE]: Kn
|
|
5871
5874
|
}, ud = gn;
|
|
5872
|
-
class Qn extends
|
|
5875
|
+
class Qn extends ji {
|
|
5873
5876
|
static TYPE = "XAxis";
|
|
5874
5877
|
schema = gn;
|
|
5875
5878
|
render(e) {
|
|
@@ -5934,13 +5937,13 @@ const Mh = h.object({
|
|
|
5934
5937
|
container: p.box,
|
|
5935
5938
|
viewport: p.box,
|
|
5936
5939
|
hold: h.boolean().optional().default(!1),
|
|
5937
|
-
grid: h.record(h.string(),
|
|
5940
|
+
grid: h.record(h.string(), Si),
|
|
5938
5941
|
visible: h.boolean().optional().default(!0),
|
|
5939
5942
|
clearOverScan: f.crudeZ.optional().default(f.ZERO)
|
|
5940
5943
|
}), Dh = (n, e) => {
|
|
5941
5944
|
const t = p.width(n) * Math.sqrt(p.height(n)), s = p.width(e) * Math.sqrt(p.height(e));
|
|
5942
5945
|
return t / s;
|
|
5943
|
-
}, Oh = ["upper2d", "lower2d", "gl"],
|
|
5946
|
+
}, Oh = ["upper2d", "lower2d", "gl"], _h = ["upper2d"];
|
|
5944
5947
|
class Sr extends ae {
|
|
5945
5948
|
static TYPE = "LinePlot";
|
|
5946
5949
|
schema = Mh;
|
|
@@ -6058,7 +6061,7 @@ class Sr extends ae {
|
|
|
6058
6061
|
requestRender(e, t) {
|
|
6059
6062
|
const { renderCtx: s } = this.internal;
|
|
6060
6063
|
let r = Oh;
|
|
6061
|
-
t === "tool" && (r =
|
|
6064
|
+
t === "tool" && (r = _h), s.loop.set({
|
|
6062
6065
|
key: `${this.type}-${this.key}`,
|
|
6063
6066
|
render: () => this.render(r),
|
|
6064
6067
|
priority: e,
|
|
@@ -6074,67 +6077,67 @@ const hd = {
|
|
|
6074
6077
|
};
|
|
6075
6078
|
export {
|
|
6076
6079
|
dr as $,
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
+
nd as A,
|
|
6081
|
+
rd as B,
|
|
6082
|
+
Fh as C,
|
|
6080
6083
|
ed as D,
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6084
|
+
od as E,
|
|
6085
|
+
Hh as F,
|
|
6086
|
+
In as G,
|
|
6087
|
+
Mo as H,
|
|
6088
|
+
Mh as I,
|
|
6089
|
+
ud as J,
|
|
6090
|
+
qh as K,
|
|
6088
6091
|
Sr as L,
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
|
|
6092
|
+
zt as M,
|
|
6093
|
+
Qe as N,
|
|
6094
|
+
su as O,
|
|
6095
|
+
au as P,
|
|
6096
|
+
Fi as Q,
|
|
6094
6097
|
zh as R,
|
|
6095
|
-
|
|
6098
|
+
nu as S,
|
|
6096
6099
|
ru as T,
|
|
6097
6100
|
ir as U,
|
|
6098
|
-
|
|
6099
|
-
|
|
6101
|
+
$i as V,
|
|
6102
|
+
Ui as W,
|
|
6100
6103
|
Qn as X,
|
|
6101
6104
|
Hn as Y,
|
|
6102
6105
|
Wn as Z,
|
|
6103
6106
|
Vn as _,
|
|
6104
6107
|
is as a,
|
|
6105
|
-
|
|
6108
|
+
$r as a$,
|
|
6106
6109
|
pr as a0,
|
|
6107
6110
|
mr as a1,
|
|
6108
6111
|
gr as a2,
|
|
6109
|
-
|
|
6112
|
+
Fu as a3,
|
|
6110
6113
|
zn as a4,
|
|
6111
6114
|
Jt as a5,
|
|
6112
6115
|
Vh as a6,
|
|
6113
6116
|
zu as a7,
|
|
6114
6117
|
Gh as a8,
|
|
6115
6118
|
Xh as a9,
|
|
6116
|
-
|
|
6119
|
+
Xi as aA,
|
|
6117
6120
|
nn as aB,
|
|
6118
|
-
|
|
6121
|
+
Hi as aC,
|
|
6119
6122
|
Qt as aD,
|
|
6120
6123
|
Aa as aE,
|
|
6121
6124
|
Na as aF,
|
|
6122
6125
|
ns as aG,
|
|
6123
|
-
|
|
6126
|
+
mi as aH,
|
|
6124
6127
|
Nn as aI,
|
|
6125
|
-
|
|
6128
|
+
Gi as aJ,
|
|
6126
6129
|
Eh as aK,
|
|
6127
6130
|
Th as aL,
|
|
6128
6131
|
bh as aM,
|
|
6129
6132
|
wh as aN,
|
|
6130
6133
|
xr as aO,
|
|
6131
6134
|
lt as aP,
|
|
6132
|
-
|
|
6135
|
+
xi as aQ,
|
|
6133
6136
|
ft as aR,
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6137
|
+
jr as aS,
|
|
6138
|
+
zr as aT,
|
|
6139
|
+
ri as aU,
|
|
6140
|
+
ii as aV,
|
|
6138
6141
|
Ia as aW,
|
|
6139
6142
|
Da as aX,
|
|
6140
6143
|
Xa as aY,
|
|
@@ -6150,17 +6153,17 @@ export {
|
|
|
6150
6153
|
Wh as ah,
|
|
6151
6154
|
Hu as ai,
|
|
6152
6155
|
Uu as aj,
|
|
6153
|
-
|
|
6156
|
+
qu as ak,
|
|
6154
6157
|
$u as al,
|
|
6155
|
-
|
|
6158
|
+
zi as am,
|
|
6156
6159
|
Xn as an,
|
|
6157
|
-
|
|
6160
|
+
Le as ao,
|
|
6158
6161
|
mu as ap,
|
|
6159
6162
|
cu as aq,
|
|
6160
6163
|
gn as ar,
|
|
6161
6164
|
vu as as,
|
|
6162
6165
|
jn as at,
|
|
6163
|
-
|
|
6166
|
+
Vi as au,
|
|
6164
6167
|
en as av,
|
|
6165
6168
|
Yu as aw,
|
|
6166
6169
|
ur as ax,
|
|
@@ -6173,7 +6176,7 @@ export {
|
|
|
6173
6176
|
cl as b3,
|
|
6174
6177
|
ht as b4,
|
|
6175
6178
|
ws as b5,
|
|
6176
|
-
|
|
6179
|
+
Wi as b6,
|
|
6177
6180
|
Ve as b7,
|
|
6178
6181
|
uh as b8,
|
|
6179
6182
|
tn as b9,
|
|
@@ -6182,8 +6185,8 @@ export {
|
|
|
6182
6185
|
th as bc,
|
|
6183
6186
|
eh as bd,
|
|
6184
6187
|
Ku as be,
|
|
6185
|
-
|
|
6186
|
-
|
|
6188
|
+
Hr as bf,
|
|
6189
|
+
ti as bg,
|
|
6187
6190
|
Ha as bh,
|
|
6188
6191
|
Oa as bi,
|
|
6189
6192
|
ja as bj,
|
|
@@ -6200,7 +6203,7 @@ export {
|
|
|
6200
6203
|
Po as g,
|
|
6201
6204
|
ro as h,
|
|
6202
6205
|
id as i,
|
|
6203
|
-
|
|
6206
|
+
_u as j,
|
|
6204
6207
|
cd as k,
|
|
6205
6208
|
fh as l,
|
|
6206
6209
|
hd as m,
|
|
@@ -6213,8 +6216,8 @@ export {
|
|
|
6213
6216
|
Qh as t,
|
|
6214
6217
|
Ca as u,
|
|
6215
6218
|
ld as v,
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6219
|
+
jh as w,
|
|
6220
|
+
Zh as x,
|
|
6221
|
+
Uh as y,
|
|
6222
|
+
Jh as z
|
|
6220
6223
|
};
|