@synnaxlabs/pluto 0.42.3 → 0.42.4
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/ether.cjs +1 -1
- package/dist/ether.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/src/vis/value/aether/value.d.ts.map +1 -1
- package/dist/{value-Bq1w9UY8.cjs → value-CkzEjG7v.cjs} +4 -4
- package/dist/{value-B6OlPXe1.js → value-DIoBc3VU.js} +359 -356
- package/package.json +3 -3
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var mi = Object.defineProperty;
|
|
2
2
|
var yi = (t, n, e) => n in t ? mi(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e;
|
|
3
3
|
var u = (t, n, e) => yi(t, typeof n != "symbol" ? n + "" : n, e);
|
|
4
|
-
import
|
|
5
|
-
import { n as Zr, o as vi, j as pe, F as he, q as vs, s as Qt, v as Jn, w as bi, Q as
|
|
4
|
+
import Ae, { z as d } from "zod";
|
|
5
|
+
import { n as Zr, o as vi, j as pe, F as he, q as vs, s as Qt, v as Jn, w as bi, Q as et, h as Ln, x as Ur, W as xi, y as Ti, L as $, p as wi, u as ge, z as An, B as Si, D as ve, E as Ci, G as Br, H as bs, I as xs, J as _r } from "./provider-r5Ly36FI.js";
|
|
6
6
|
import { m as Z, D as v, H as k, I as F, N as K, O as S, R as Ei, U as q, W as ki, X as Pi, Y as Ts, Z as ws, v as J, L as Ri, a0 as $r, a1 as Fr, a2 as Mi, F as Jt, K as re, J as g, g as ae, $ as p, _ as Js, a3 as qr, S as Di, a4 as Ss, b as Yi } from "./css-Cnb9DQMD.js";
|
|
7
|
-
import { M as Oi, u as
|
|
7
|
+
import { M as Oi, u as Zt, C as X, G as Li } from "./eraser-CK8SwEJa.js";
|
|
8
8
|
import { x as Cs } from "./deep-P35D0Sz7.js";
|
|
9
9
|
import { l as jr } from "./state-CjGemC7S.js";
|
|
10
|
-
import { f as
|
|
10
|
+
import { f as it } from "./fontString-BN1kd1AP.js";
|
|
11
11
|
import { o as Ai, r as Ii } from "./debounce-CW9Q-DsR.js";
|
|
12
12
|
import { d as er } from "./dimensions-B6qmnzv3.js";
|
|
13
13
|
import { A as Hr, o as Ni } from "./toArray-B7nD2CTw.js";
|
|
@@ -55,17 +55,17 @@ const Es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
55
55
|
Observer: Bi
|
|
56
56
|
}, Symbol.toStringTag, { value: "Module" })), ks = "pluto-vis-renderer", Ps = (t, n) => {
|
|
57
57
|
t.set(ks, n, !1);
|
|
58
|
-
}, Rs = (t) => t.get(ks), $i = (t) => t.getOptional(ks),
|
|
58
|
+
}, Rs = (t) => t.get(ks), $i = (t) => t.getOptional(ks), be = (t, n) => Rs(t)(n), Fi = d.object({
|
|
59
59
|
props: vi.nullable(),
|
|
60
60
|
state: Zr.connectivity.connectionStateZ.nullable()
|
|
61
61
|
}), zr = {
|
|
62
62
|
client: null
|
|
63
63
|
};
|
|
64
|
-
var
|
|
65
|
-
let es = (
|
|
64
|
+
var ye;
|
|
65
|
+
let es = (ye = class extends pe {
|
|
66
66
|
constructor() {
|
|
67
67
|
super(...arguments);
|
|
68
|
-
u(this, "schema",
|
|
68
|
+
u(this, "schema", ye.stateZ);
|
|
69
69
|
}
|
|
70
70
|
afterUpdate(e) {
|
|
71
71
|
var s;
|
|
@@ -75,21 +75,21 @@ let es = (ve = class extends pe {
|
|
|
75
75
|
}
|
|
76
76
|
this.prevState.props != null && Cs.equal(this.state.props, this.prevState.props) && this.internal.client != null || (this.internal.client = new Zr(this.state.props), jn(e, this.internal));
|
|
77
77
|
}
|
|
78
|
-
}, u(
|
|
79
|
-
const Ms = "pluto-client-context", jn = (t, n) => t.set(Ms, n),
|
|
78
|
+
}, u(ye, "TYPE", "synnax.Provider"), u(ye, "stateZ", Fi), ye);
|
|
79
|
+
const Ms = "pluto-client-context", jn = (t, n) => t.set(Ms, n), Ut = (t) => t.get(Ms).client, qi = {
|
|
80
80
|
[es.TYPE]: es
|
|
81
81
|
}, Ah = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82
82
|
__proto__: null,
|
|
83
83
|
Provider: es,
|
|
84
84
|
REGISTRY: qi,
|
|
85
85
|
ZERO_CONTEXT_VALUE: zr,
|
|
86
|
-
use:
|
|
86
|
+
use: Ut
|
|
87
87
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
88
|
-
class
|
|
88
|
+
class xe extends Es.Observer {
|
|
89
89
|
cleanup() {
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
class en extends
|
|
92
|
+
class en extends xe {
|
|
93
93
|
set() {
|
|
94
94
|
}
|
|
95
95
|
}
|
|
@@ -100,7 +100,7 @@ const In = {
|
|
|
100
100
|
variant: "sink",
|
|
101
101
|
valueType: "boolean"
|
|
102
102
|
};
|
|
103
|
-
class tn extends
|
|
103
|
+
class tn extends xe {
|
|
104
104
|
set() {
|
|
105
105
|
}
|
|
106
106
|
}
|
|
@@ -111,7 +111,7 @@ const Wr = {
|
|
|
111
111
|
variant: "sink",
|
|
112
112
|
valueType: "number"
|
|
113
113
|
};
|
|
114
|
-
class nn extends
|
|
114
|
+
class nn extends xe {
|
|
115
115
|
value() {
|
|
116
116
|
return !1;
|
|
117
117
|
}
|
|
@@ -123,7 +123,7 @@ const Ds = {
|
|
|
123
123
|
variant: "source",
|
|
124
124
|
valueType: "boolean"
|
|
125
125
|
};
|
|
126
|
-
class sn extends
|
|
126
|
+
class sn extends xe {
|
|
127
127
|
value() {
|
|
128
128
|
return 0;
|
|
129
129
|
}
|
|
@@ -135,7 +135,7 @@ const Gr = {
|
|
|
135
135
|
variant: "source",
|
|
136
136
|
valueType: "number"
|
|
137
137
|
};
|
|
138
|
-
class rn extends
|
|
138
|
+
class rn extends xe {
|
|
139
139
|
value() {
|
|
140
140
|
return "";
|
|
141
141
|
}
|
|
@@ -147,7 +147,7 @@ const Xr = {
|
|
|
147
147
|
variant: "source",
|
|
148
148
|
valueType: "string"
|
|
149
149
|
};
|
|
150
|
-
class an extends
|
|
150
|
+
class an extends xe {
|
|
151
151
|
value() {
|
|
152
152
|
return {
|
|
153
153
|
key: "noop",
|
|
@@ -164,7 +164,7 @@ const Ys = {
|
|
|
164
164
|
variant: "source",
|
|
165
165
|
valueType: "status"
|
|
166
166
|
};
|
|
167
|
-
class on extends
|
|
167
|
+
class on extends xe {
|
|
168
168
|
value() {
|
|
169
169
|
return v.ZERO;
|
|
170
170
|
}
|
|
@@ -176,7 +176,7 @@ const Nn = {
|
|
|
176
176
|
variant: "source",
|
|
177
177
|
valueType: "color"
|
|
178
178
|
};
|
|
179
|
-
class ln extends
|
|
179
|
+
class ln extends xe {
|
|
180
180
|
value() {
|
|
181
181
|
return [k.ZERO, new F([])];
|
|
182
182
|
}
|
|
@@ -206,23 +206,23 @@ class Kr {
|
|
|
206
206
|
return e == null ? null : new e();
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
const Hi = d.instanceof(ArrayBuffer),
|
|
209
|
+
const Hi = d.instanceof(ArrayBuffer), Bt = d.object({
|
|
210
210
|
type: d.string(),
|
|
211
211
|
variant: d.enum(["source", "sink", "source-transformer", "sink-transformer"]),
|
|
212
212
|
valueType: d.string(),
|
|
213
213
|
props: d.any(),
|
|
214
214
|
transfer: d.array(Hi).optional()
|
|
215
|
-
}),
|
|
215
|
+
}), Te = Bt.extend({ variant: d.literal("source") }), Zn = Bt.extend({ variant: d.literal("sink") }), Qr = Bt.extend({
|
|
216
216
|
variant: d.literal("source-transformer")
|
|
217
|
-
}), Jr =
|
|
217
|
+
}), Jr = Bt.extend({
|
|
218
218
|
variant: d.literal("sink-transformer")
|
|
219
|
-
}), cn =
|
|
219
|
+
}), cn = Te.extend({ valueType: d.literal("series") }), Os = Te.extend({
|
|
220
220
|
valueType: d.literal("boolean")
|
|
221
221
|
}), Un = Zn.extend({ valueType: d.literal("boolean") }), zi = Jr.extend({
|
|
222
222
|
valueType: d.literal("boolean")
|
|
223
223
|
}), Wi = Qr.extend({
|
|
224
224
|
valueType: d.literal("boolean")
|
|
225
|
-
}), ea =
|
|
225
|
+
}), ea = Te.extend({ valueType: d.literal("number") }), ta = Zn.extend({ valueType: d.literal("number") }), Ls = Te.extend({ valueType: d.literal("color") }), As = Te.extend({ valueType: d.literal("status") }), na = Te.extend({ valueType: d.literal("string") });
|
|
226
226
|
let Bn = class extends Es.BaseObserver {
|
|
227
227
|
constructor(e) {
|
|
228
228
|
super();
|
|
@@ -258,7 +258,7 @@ class V extends Bn {
|
|
|
258
258
|
}
|
|
259
259
|
class _n extends Bn {
|
|
260
260
|
}
|
|
261
|
-
class
|
|
261
|
+
class ke extends V {
|
|
262
262
|
constructor() {
|
|
263
263
|
super(...arguments);
|
|
264
264
|
u(this, "source_");
|
|
@@ -344,7 +344,7 @@ const Is = d.object({
|
|
|
344
344
|
}), aa = d.object({
|
|
345
345
|
connections: d.array(Is),
|
|
346
346
|
outlet: d.string(),
|
|
347
|
-
segments: d.record(d.string(),
|
|
347
|
+
segments: d.record(d.string(), Te)
|
|
348
348
|
});
|
|
349
349
|
class Ns {
|
|
350
350
|
constructor(n) {
|
|
@@ -354,16 +354,16 @@ class Ns {
|
|
|
354
354
|
}
|
|
355
355
|
create(n) {
|
|
356
356
|
switch (n.type) {
|
|
357
|
+
case yt.TYPE:
|
|
358
|
+
return new yt(n.props, this.factory);
|
|
357
359
|
case vt.TYPE:
|
|
358
360
|
return new vt(n.props, this.factory);
|
|
359
|
-
case bt.TYPE:
|
|
360
|
-
return new bt(n.props, this.factory);
|
|
361
361
|
default:
|
|
362
362
|
return null;
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
-
class
|
|
366
|
+
class yt extends V {
|
|
367
367
|
constructor(e, s) {
|
|
368
368
|
super(e);
|
|
369
369
|
u(this, "schema", aa);
|
|
@@ -398,18 +398,18 @@ class vt extends V {
|
|
|
398
398
|
});
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
|
-
u(
|
|
401
|
+
u(yt, "TYPE", "source-pipeline");
|
|
402
402
|
const Gi = (t, n) => ({
|
|
403
403
|
variant: "source",
|
|
404
404
|
props: n,
|
|
405
|
-
type:
|
|
405
|
+
type: yt.TYPE,
|
|
406
406
|
valueType: t
|
|
407
407
|
}), ia = d.object({
|
|
408
408
|
connections: d.array(Is),
|
|
409
409
|
inlet: d.string(),
|
|
410
410
|
segments: d.record(d.string(), Zn)
|
|
411
411
|
});
|
|
412
|
-
class
|
|
412
|
+
class vt extends _n {
|
|
413
413
|
constructor(e, s) {
|
|
414
414
|
super(e);
|
|
415
415
|
u(this, "schema", ia);
|
|
@@ -441,11 +441,11 @@ class bt extends _n {
|
|
|
441
441
|
});
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
u(
|
|
444
|
+
u(vt, "TYPE", "sink-pipeline");
|
|
445
445
|
const Xi = (t, n) => ({
|
|
446
446
|
variant: "sink",
|
|
447
447
|
props: n,
|
|
448
|
-
type:
|
|
448
|
+
type: vt.TYPE,
|
|
449
449
|
valueType: t
|
|
450
450
|
}), oa = d.object({
|
|
451
451
|
channel: d.number().or(d.string())
|
|
@@ -456,7 +456,7 @@ const Xi = (t, n) => ({
|
|
|
456
456
|
variant: "success",
|
|
457
457
|
message: "data loaded"
|
|
458
458
|
};
|
|
459
|
-
class
|
|
459
|
+
class bt extends V {
|
|
460
460
|
constructor(e, s, r) {
|
|
461
461
|
super(s);
|
|
462
462
|
u(this, "schema", oa);
|
|
@@ -500,7 +500,7 @@ class xt extends V {
|
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
|
-
u(
|
|
503
|
+
u(bt, "TYPE", "stream-channel-value");
|
|
504
504
|
const la = async (t, n, e) => {
|
|
505
505
|
const s = await t.retrieveChannel(n), r = Qt.isCalculated(s);
|
|
506
506
|
if (!e || s.isIndex)
|
|
@@ -526,7 +526,7 @@ const la = async (t, n, e) => {
|
|
|
526
526
|
channel: d.number().or(d.string()),
|
|
527
527
|
useIndexOfChannel: d.boolean().optional().default(!1)
|
|
528
528
|
});
|
|
529
|
-
class
|
|
529
|
+
class xt extends V {
|
|
530
530
|
constructor(e, s, r) {
|
|
531
531
|
super(s);
|
|
532
532
|
u(this, "client");
|
|
@@ -566,14 +566,14 @@ class Tt extends V {
|
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
u(
|
|
569
|
+
u(xt, "TYPE", "series-source");
|
|
570
570
|
const Ki = d.object({
|
|
571
571
|
channel: d.number().or(d.string()),
|
|
572
572
|
useIndexOfChannel: d.boolean().optional().default(!1),
|
|
573
573
|
timeSpan: S.z,
|
|
574
574
|
keepFor: S.z.optional()
|
|
575
575
|
});
|
|
576
|
-
class
|
|
576
|
+
class Tt extends V {
|
|
577
577
|
constructor(e, s, r, a = () => Z.now()) {
|
|
578
578
|
super(s);
|
|
579
579
|
u(this, "client");
|
|
@@ -630,11 +630,11 @@ class wt extends V {
|
|
|
630
630
|
(e = this.stopStreaming) == null || e.call(this), this.stopStreaming = void 0, this.data.release(), this.valid = !1;
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
|
-
u(
|
|
633
|
+
u(Tt, "TYPE", "dynamic-series-source");
|
|
634
634
|
const Qi = {
|
|
635
|
+
[xt.TYPE]: xt,
|
|
635
636
|
[Tt.TYPE]: Tt,
|
|
636
|
-
[
|
|
637
|
-
[xt.TYPE]: xt
|
|
637
|
+
[bt.TYPE]: bt
|
|
638
638
|
};
|
|
639
639
|
class ca {
|
|
640
640
|
constructor(n) {
|
|
@@ -648,17 +648,17 @@ class ca {
|
|
|
648
648
|
}
|
|
649
649
|
}
|
|
650
650
|
const Ji = (t) => ({
|
|
651
|
-
type:
|
|
651
|
+
type: xt.TYPE,
|
|
652
652
|
props: t,
|
|
653
653
|
variant: "source",
|
|
654
654
|
valueType: "series"
|
|
655
655
|
}), eo = (t) => ({
|
|
656
|
-
type:
|
|
656
|
+
type: Tt.TYPE,
|
|
657
657
|
props: t,
|
|
658
658
|
variant: "source",
|
|
659
659
|
valueType: "series"
|
|
660
660
|
}), to = (t) => ({
|
|
661
|
-
type:
|
|
661
|
+
type: bt.TYPE,
|
|
662
662
|
props: t,
|
|
663
663
|
variant: "source",
|
|
664
664
|
valueType: "number"
|
|
@@ -671,14 +671,14 @@ class ua {
|
|
|
671
671
|
switch (n.type) {
|
|
672
672
|
case un.TYPE:
|
|
673
673
|
return new un(n.props);
|
|
674
|
+
case wt.TYPE:
|
|
675
|
+
return new wt(n.props);
|
|
674
676
|
case St.TYPE:
|
|
675
677
|
return new St(n.props);
|
|
676
678
|
case Ct.TYPE:
|
|
677
679
|
return new Ct(n.props);
|
|
678
680
|
case Et.TYPE:
|
|
679
681
|
return new Et(n.props);
|
|
680
|
-
case kt.TYPE:
|
|
681
|
-
return new kt(n.props);
|
|
682
682
|
default:
|
|
683
683
|
return null;
|
|
684
684
|
}
|
|
@@ -714,7 +714,7 @@ const ha = Bs.extend({
|
|
|
714
714
|
startPosition: d.number().optional().default(0),
|
|
715
715
|
scrollBounds: d.boolean().optional().default(!1)
|
|
716
716
|
});
|
|
717
|
-
class
|
|
717
|
+
class wt extends V {
|
|
718
718
|
constructor(e) {
|
|
719
719
|
super(e);
|
|
720
720
|
u(this, "schema", ha);
|
|
@@ -751,9 +751,9 @@ class St extends V {
|
|
|
751
751
|
clearInterval(this.interval), this.interval = void 0;
|
|
752
752
|
}
|
|
753
753
|
}
|
|
754
|
-
u(
|
|
754
|
+
u(wt, "TYPE", "iterative-series");
|
|
755
755
|
const da = d.number();
|
|
756
|
-
class
|
|
756
|
+
class St extends V {
|
|
757
757
|
constructor() {
|
|
758
758
|
super(...arguments);
|
|
759
759
|
u(this, "schema", da);
|
|
@@ -762,9 +762,9 @@ class Ct extends V {
|
|
|
762
762
|
return this.props;
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
|
-
u(
|
|
765
|
+
u(St, "TYPE", "static-numeric");
|
|
766
766
|
const fa = d.string();
|
|
767
|
-
class
|
|
767
|
+
class Ct extends V {
|
|
768
768
|
constructor() {
|
|
769
769
|
super(...arguments);
|
|
770
770
|
u(this, "schema", fa);
|
|
@@ -773,9 +773,9 @@ class Et extends V {
|
|
|
773
773
|
return this.props;
|
|
774
774
|
}
|
|
775
775
|
}
|
|
776
|
-
u(
|
|
776
|
+
u(Ct, "TYPE", "static-string");
|
|
777
777
|
const pa = v.crudeZ;
|
|
778
|
-
class
|
|
778
|
+
class Et extends V {
|
|
779
779
|
constructor() {
|
|
780
780
|
super(...arguments);
|
|
781
781
|
u(this, "schema", pa);
|
|
@@ -784,29 +784,29 @@ class kt extends V {
|
|
|
784
784
|
return v.construct(this.props);
|
|
785
785
|
}
|
|
786
786
|
}
|
|
787
|
-
u(
|
|
787
|
+
u(Et, "TYPE", "static-color");
|
|
788
788
|
const no = (t) => ({
|
|
789
789
|
type: un.TYPE,
|
|
790
790
|
props: t,
|
|
791
791
|
variant: "source",
|
|
792
792
|
valueType: "series"
|
|
793
793
|
}), so = (t) => ({
|
|
794
|
-
type:
|
|
794
|
+
type: wt.TYPE,
|
|
795
795
|
props: t,
|
|
796
796
|
variant: "source",
|
|
797
797
|
valueType: "series"
|
|
798
798
|
}), ro = (t) => ({
|
|
799
|
-
type:
|
|
799
|
+
type: St.TYPE,
|
|
800
800
|
props: t,
|
|
801
801
|
variant: "source",
|
|
802
802
|
valueType: "number"
|
|
803
803
|
}), ao = (t) => ({
|
|
804
|
-
type:
|
|
804
|
+
type: Ct.TYPE,
|
|
805
805
|
props: t,
|
|
806
806
|
variant: "source",
|
|
807
807
|
valueType: "string"
|
|
808
808
|
}), io = (t) => ({
|
|
809
|
-
type:
|
|
809
|
+
type: Et.TYPE,
|
|
810
810
|
props: t,
|
|
811
811
|
variant: "source",
|
|
812
812
|
valueType: "color"
|
|
@@ -817,6 +817,8 @@ class ga {
|
|
|
817
817
|
}
|
|
818
818
|
create(n) {
|
|
819
819
|
switch (n.type) {
|
|
820
|
+
case Fe.TYPE:
|
|
821
|
+
return new Fe(n.props);
|
|
820
822
|
case qe.TYPE:
|
|
821
823
|
return new qe(n.props);
|
|
822
824
|
case je.TYPE:
|
|
@@ -831,8 +833,6 @@ class ga {
|
|
|
831
833
|
return new Ge(n.props);
|
|
832
834
|
case Xe.TYPE:
|
|
833
835
|
return new Xe(n.props);
|
|
834
|
-
case Ve.TYPE:
|
|
835
|
-
return new Ve(n.props);
|
|
836
836
|
}
|
|
837
837
|
return null;
|
|
838
838
|
}
|
|
@@ -842,29 +842,29 @@ const oo = d.object({
|
|
|
842
842
|
falsy: d.number().optional().default(0)
|
|
843
843
|
}), lo = (t) => ({
|
|
844
844
|
props: t,
|
|
845
|
-
type:
|
|
845
|
+
type: Fe.TYPE,
|
|
846
846
|
variant: "sink",
|
|
847
847
|
valueType: "boolean"
|
|
848
|
-
}),
|
|
848
|
+
}), ot = class ot extends ra {
|
|
849
849
|
constructor() {
|
|
850
850
|
super(...arguments);
|
|
851
|
-
u(this, "schema",
|
|
851
|
+
u(this, "schema", ot.propsZ);
|
|
852
852
|
}
|
|
853
853
|
transform(e) {
|
|
854
854
|
return e ? this.props.truthy : this.props.falsy;
|
|
855
855
|
}
|
|
856
856
|
};
|
|
857
|
-
u(
|
|
858
|
-
let
|
|
857
|
+
u(ot, "TYPE", "boolean-numeric-converter-sink"), u(ot, "propsZ", oo);
|
|
858
|
+
let Fe = ot;
|
|
859
859
|
const ma = d.object({ trueBound: k.bounds }), co = (t) => ({
|
|
860
860
|
props: t,
|
|
861
|
-
type:
|
|
861
|
+
type: qe.TYPE,
|
|
862
862
|
variant: "source",
|
|
863
863
|
valueType: "boolean"
|
|
864
|
-
}),
|
|
864
|
+
}), lt = class lt extends ke {
|
|
865
865
|
constructor() {
|
|
866
866
|
super(...arguments);
|
|
867
|
-
u(this, "schema",
|
|
867
|
+
u(this, "schema", lt.propsZ);
|
|
868
868
|
u(this, "curr", null);
|
|
869
869
|
}
|
|
870
870
|
shouldNotify(e) {
|
|
@@ -875,40 +875,40 @@ const ma = d.object({ trueBound: k.bounds }), co = (t) => ({
|
|
|
875
875
|
return this.curr = k.contains(this.props.trueBound, e), this.curr;
|
|
876
876
|
}
|
|
877
877
|
};
|
|
878
|
-
u(
|
|
879
|
-
let
|
|
880
|
-
const ya = d.object({}),
|
|
878
|
+
u(lt, "TYPE", "boolean-source"), u(lt, "propsZ", ma);
|
|
879
|
+
let qe = lt;
|
|
880
|
+
const ya = d.object({}), ct = class ct extends sa {
|
|
881
881
|
constructor() {
|
|
882
882
|
super(...arguments);
|
|
883
|
-
u(this, "schema",
|
|
883
|
+
u(this, "schema", ct.propsZ);
|
|
884
884
|
}
|
|
885
885
|
transform(e) {
|
|
886
886
|
return Object.values(e).reduce((s, r) => s + r, 0) / Object.keys(e).length;
|
|
887
887
|
}
|
|
888
888
|
};
|
|
889
|
-
u(
|
|
890
|
-
let
|
|
889
|
+
u(ct, "TYPE", "mean"), u(ct, "propsZ", ya);
|
|
890
|
+
let je = ct;
|
|
891
891
|
const uo = (t) => ({
|
|
892
892
|
props: t,
|
|
893
|
-
type:
|
|
893
|
+
type: je.TYPE,
|
|
894
894
|
variant: "source",
|
|
895
895
|
valueType: "boolean"
|
|
896
896
|
}), va = d.object({
|
|
897
897
|
trueVariant: bi.optional().default("success")
|
|
898
|
-
}),
|
|
898
|
+
}), ut = class ut extends ke {
|
|
899
899
|
constructor() {
|
|
900
900
|
super(...arguments);
|
|
901
|
-
u(this, "schema",
|
|
901
|
+
u(this, "schema", ut.propsZ);
|
|
902
902
|
}
|
|
903
903
|
transform(e) {
|
|
904
904
|
return e.variant === this.props.trueVariant;
|
|
905
905
|
}
|
|
906
906
|
};
|
|
907
|
-
u(
|
|
908
|
-
let
|
|
907
|
+
u(ut, "TYPE", "boolean-status"), u(ut, "propsZ", va);
|
|
908
|
+
let He = ut;
|
|
909
909
|
const ho = (t) => ({
|
|
910
910
|
props: t,
|
|
911
|
-
type:
|
|
911
|
+
type: He.TYPE,
|
|
912
912
|
variant: "source",
|
|
913
913
|
valueType: "boolean"
|
|
914
914
|
}), ba = d.object({
|
|
@@ -916,27 +916,27 @@ const ho = (t) => ({
|
|
|
916
916
|
prefix: d.string().optional().default(""),
|
|
917
917
|
suffix: d.string().optional().default(""),
|
|
918
918
|
notation: ws.notationZ.optional().default("standard")
|
|
919
|
-
}),
|
|
919
|
+
}), ht = class ht extends ke {
|
|
920
920
|
constructor() {
|
|
921
921
|
super(...arguments);
|
|
922
|
-
u(this, "schema",
|
|
922
|
+
u(this, "schema", ht.propsZ);
|
|
923
923
|
}
|
|
924
924
|
transform(e) {
|
|
925
925
|
const { precision: s, prefix: r, suffix: a, notation: i } = this.props;
|
|
926
926
|
return `${r}${ws.stringifyNumber(e, s, i)}${a}`;
|
|
927
927
|
}
|
|
928
928
|
};
|
|
929
|
-
u(
|
|
930
|
-
let
|
|
929
|
+
u(ht, "TYPE", "stringify-number"), u(ht, "propsZ", ba);
|
|
930
|
+
let ze = ht;
|
|
931
931
|
const fo = (t) => ({
|
|
932
932
|
props: t,
|
|
933
|
-
type:
|
|
933
|
+
type: ze.TYPE,
|
|
934
934
|
variant: "source",
|
|
935
935
|
valueType: "string"
|
|
936
936
|
}), xa = d.object({
|
|
937
937
|
windowSize: d.number().optional().default(5)
|
|
938
938
|
});
|
|
939
|
-
class
|
|
939
|
+
class We extends ke {
|
|
940
940
|
constructor() {
|
|
941
941
|
super(...arguments);
|
|
942
942
|
u(this, "schema", xa);
|
|
@@ -949,47 +949,47 @@ class Ge extends Pe {
|
|
|
949
949
|
return this.props.windowSize < 2 ? !0 : (this.values.length > this.props.windowSize && (this.values = []), this.values.push(e), this.values.length === this.props.windowSize);
|
|
950
950
|
}
|
|
951
951
|
}
|
|
952
|
-
u(
|
|
952
|
+
u(We, "TYPE", "rolling-average"), u(We, "propsZ", ya);
|
|
953
953
|
const po = (t) => ({
|
|
954
954
|
props: t,
|
|
955
|
-
type:
|
|
955
|
+
type: We.TYPE,
|
|
956
956
|
variant: "source",
|
|
957
957
|
valueType: "number"
|
|
958
958
|
}), Ta = d.object({
|
|
959
959
|
gradient: v.gradientZ
|
|
960
|
-
}),
|
|
960
|
+
}), dt = class dt extends ke {
|
|
961
961
|
constructor() {
|
|
962
962
|
super(...arguments);
|
|
963
|
-
u(this, "schema",
|
|
963
|
+
u(this, "schema", dt.propsZ);
|
|
964
964
|
}
|
|
965
965
|
transform(e) {
|
|
966
966
|
return v.fromGradient(this.props.gradient, e);
|
|
967
967
|
}
|
|
968
968
|
};
|
|
969
|
-
u(
|
|
970
|
-
let
|
|
969
|
+
u(dt, "TYPE", "color-gradient"), u(dt, "propsZ", Ta);
|
|
970
|
+
let Ge = dt;
|
|
971
971
|
const go = (t) => ({
|
|
972
972
|
props: t,
|
|
973
|
-
type:
|
|
973
|
+
type: Ge.TYPE,
|
|
974
974
|
variant: "source",
|
|
975
975
|
valueType: "color"
|
|
976
976
|
}), wa = d.object({
|
|
977
977
|
scale: J.transform
|
|
978
|
-
}),
|
|
978
|
+
}), ft = class ft extends ke {
|
|
979
979
|
constructor() {
|
|
980
980
|
super(...arguments);
|
|
981
|
-
u(this, "schema",
|
|
981
|
+
u(this, "schema", ft.propsZ);
|
|
982
982
|
}
|
|
983
983
|
transform(e) {
|
|
984
984
|
const { offset: s, scale: r } = this.props.scale;
|
|
985
985
|
return e * r + s;
|
|
986
986
|
}
|
|
987
987
|
};
|
|
988
|
-
u(
|
|
989
|
-
let
|
|
988
|
+
u(ft, "TYPE", "scale-number"), u(ft, "propsZ", wa);
|
|
989
|
+
let Xe = ft;
|
|
990
990
|
const mo = (t) => ({
|
|
991
991
|
props: t,
|
|
992
|
-
type:
|
|
992
|
+
type: Xe.TYPE,
|
|
993
993
|
variant: "source",
|
|
994
994
|
valueType: "number"
|
|
995
995
|
});
|
|
@@ -1034,7 +1034,7 @@ let Ca = class Ea {
|
|
|
1034
1034
|
create(n, e) {
|
|
1035
1035
|
const s = this.factory.create(n, e);
|
|
1036
1036
|
if (s == null)
|
|
1037
|
-
throw new
|
|
1037
|
+
throw new et(
|
|
1038
1038
|
`Telemetry service could not find a source for type ${n.type}`
|
|
1039
1039
|
);
|
|
1040
1040
|
return s;
|
|
@@ -1087,7 +1087,7 @@ const ee = (t, n, e, s) => {
|
|
|
1087
1087
|
(a = e.cleanup) == null || a.call(e);
|
|
1088
1088
|
}
|
|
1089
1089
|
return new tr(r.create(n, s), r, n);
|
|
1090
|
-
},
|
|
1090
|
+
}, _t = (t, n, e, s) => {
|
|
1091
1091
|
var a;
|
|
1092
1092
|
const r = $n(t);
|
|
1093
1093
|
if (e instanceof nr) {
|
|
@@ -1371,7 +1371,7 @@ class Po {
|
|
|
1371
1371
|
get(n) {
|
|
1372
1372
|
const e = this.cache.get(n);
|
|
1373
1373
|
if (e != null) return e;
|
|
1374
|
-
throw new
|
|
1374
|
+
throw new et(`cache entry for ${n} not found`);
|
|
1375
1375
|
}
|
|
1376
1376
|
/** Garbage collects the cache */
|
|
1377
1377
|
gc() {
|
|
@@ -1611,15 +1611,15 @@ class Yo {
|
|
|
1611
1611
|
this.ins.L.info("closing client"), await this.streamer.close(), await this.reader.close(), this.cache.close();
|
|
1612
1612
|
}
|
|
1613
1613
|
}
|
|
1614
|
-
const Oa = d.object({}),
|
|
1614
|
+
const Oa = d.object({}), pt = class pt extends pe {
|
|
1615
1615
|
constructor() {
|
|
1616
1616
|
super(...arguments);
|
|
1617
|
-
u(this, "schema",
|
|
1617
|
+
u(this, "schema", pt.stateZ);
|
|
1618
1618
|
u(this, "prevCore", null);
|
|
1619
1619
|
u(this, "client", null);
|
|
1620
1620
|
}
|
|
1621
1621
|
afterUpdate(e) {
|
|
1622
|
-
const s =
|
|
1622
|
+
const s = Ut(e), r = Zt(e, "telem");
|
|
1623
1623
|
if (this.internal.instrumentation = r.child("provider"), !(s !== this.prevCore)) return;
|
|
1624
1624
|
this.prevCore = s, this.client != null && this.client.close(), this.client = s == null ? new Do() : new Yo({
|
|
1625
1625
|
core: s,
|
|
@@ -1629,44 +1629,44 @@ const Oa = d.object({}), gt = class gt extends pe {
|
|
|
1629
1629
|
ka(e, o);
|
|
1630
1630
|
}
|
|
1631
1631
|
};
|
|
1632
|
-
u(
|
|
1633
|
-
let
|
|
1632
|
+
u(pt, "TYPE", "telem.Provider"), u(pt, "stateZ", Oa);
|
|
1633
|
+
let kt = pt;
|
|
1634
1634
|
const Oo = {
|
|
1635
|
-
[
|
|
1635
|
+
[kt.TYPE]: kt
|
|
1636
1636
|
}, Nh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1637
1637
|
__proto__: null,
|
|
1638
1638
|
AbstractSink: _n,
|
|
1639
1639
|
AbstractSource: V,
|
|
1640
1640
|
Base: Bn,
|
|
1641
|
-
BaseProvider:
|
|
1642
|
-
BooleanStatus:
|
|
1643
|
-
ChannelData:
|
|
1644
|
-
ColorGradient:
|
|
1641
|
+
BaseProvider: kt,
|
|
1642
|
+
BooleanStatus: He,
|
|
1643
|
+
ChannelData: xt,
|
|
1644
|
+
ColorGradient: Ge,
|
|
1645
1645
|
CompoundTelemFactory: _s,
|
|
1646
1646
|
Context: Ca,
|
|
1647
|
-
FixedColorSource:
|
|
1648
|
-
FixedNumber:
|
|
1649
|
-
FixedString:
|
|
1650
|
-
IterativeSeries:
|
|
1651
|
-
Mean:
|
|
1647
|
+
FixedColorSource: Et,
|
|
1648
|
+
FixedNumber: St,
|
|
1649
|
+
FixedString: Ct,
|
|
1650
|
+
IterativeSeries: wt,
|
|
1651
|
+
Mean: je,
|
|
1652
1652
|
MultiSourceTransformer: sa,
|
|
1653
1653
|
NoopFactory: Kr,
|
|
1654
1654
|
PipelineFactory: Ns,
|
|
1655
1655
|
REGISTRY: Oo,
|
|
1656
1656
|
RemoteFactory: ca,
|
|
1657
|
-
RollingAverage:
|
|
1658
|
-
ScaleNumber:
|
|
1659
|
-
SetPoint:
|
|
1660
|
-
SinkPipeline:
|
|
1661
|
-
SourcePipeline:
|
|
1657
|
+
RollingAverage: We,
|
|
1658
|
+
ScaleNumber: Xe,
|
|
1659
|
+
SetPoint: Fe,
|
|
1660
|
+
SinkPipeline: vt,
|
|
1661
|
+
SourcePipeline: yt,
|
|
1662
1662
|
StaticFactory: ua,
|
|
1663
|
-
StreamChannelData:
|
|
1664
|
-
StreamChannelValue:
|
|
1665
|
-
StringifyNumber:
|
|
1663
|
+
StreamChannelData: Tt,
|
|
1664
|
+
StreamChannelValue: bt,
|
|
1665
|
+
StringifyNumber: ze,
|
|
1666
1666
|
TransformerFactory: ga,
|
|
1667
1667
|
UnarySinkTransformer: ra,
|
|
1668
|
-
UnarySourceTransformer:
|
|
1669
|
-
WithinBounds:
|
|
1668
|
+
UnarySourceTransformer: ke,
|
|
1669
|
+
WithinBounds: qe,
|
|
1670
1670
|
booleanSinkSpecZ: Un,
|
|
1671
1671
|
booleanSinkTransformerSpecZ: zi,
|
|
1672
1672
|
booleanSourceSpecZ: Os,
|
|
@@ -1714,9 +1714,9 @@ const Oo = {
|
|
|
1714
1714
|
sinkTransformerSpecZ: Jr,
|
|
1715
1715
|
sourcePipeline: Gi,
|
|
1716
1716
|
sourcePipelinePropsZ: aa,
|
|
1717
|
-
sourceSpecZ:
|
|
1717
|
+
sourceSpecZ: Te,
|
|
1718
1718
|
sourceTransformerSpecZ: Qr,
|
|
1719
|
-
specZ:
|
|
1719
|
+
specZ: Bt,
|
|
1720
1720
|
statusSourceSpecZ: As,
|
|
1721
1721
|
streamChannelData: eo,
|
|
1722
1722
|
streamChannelValue: to,
|
|
@@ -1726,15 +1726,15 @@ const Oo = {
|
|
|
1726
1726
|
stringifyNumberProps: ba,
|
|
1727
1727
|
useChildContext: Pa,
|
|
1728
1728
|
useContext: $n,
|
|
1729
|
-
useSink:
|
|
1729
|
+
useSink: _t,
|
|
1730
1730
|
useSource: ee,
|
|
1731
1731
|
withinBounds: co,
|
|
1732
1732
|
withinBoundsProps: ma
|
|
1733
|
-
}, Symbol.toStringTag, { value: "Module" })), Lo =
|
|
1734
|
-
request:
|
|
1735
|
-
bounds:
|
|
1736
|
-
}), Ao =
|
|
1737
|
-
request:
|
|
1733
|
+
}, Symbol.toStringTag, { value: "Module" })), Lo = Ae.object({
|
|
1734
|
+
request: Ae.string(),
|
|
1735
|
+
bounds: Ae.record(Ae.string(), k.bounds)
|
|
1736
|
+
}), Ao = Ae.object({
|
|
1737
|
+
request: Ae.string(),
|
|
1738
1738
|
response: Lo
|
|
1739
1739
|
});
|
|
1740
1740
|
class hn extends $ {
|
|
@@ -1763,10 +1763,10 @@ const La = d.object({
|
|
|
1763
1763
|
loc: re.outer
|
|
1764
1764
|
});
|
|
1765
1765
|
d.record(d.string(), La);
|
|
1766
|
-
const
|
|
1766
|
+
const Ie = (t, n) => Object.values(n).filter(({ loc: e }) => e === t).sort((e, s) => s.order - e.order), Io = (t, n, e) => {
|
|
1767
1767
|
const s = n[t];
|
|
1768
1768
|
if (s == null) return g.ZERO;
|
|
1769
|
-
const r = re.construct(s.loc), a =
|
|
1769
|
+
const r = re.construct(s.loc), a = Ie(r, n), i = re.construct(ae.swap(re.direction(r))), o = Ie(i, n), l = a.findIndex(({ key: f }) => f === t), c = a.slice(0, l).reduce((f, { size: m }) => f + m, 0), h = o.reduce((f, { size: m }) => f + m, 0);
|
|
1770
1770
|
switch (r) {
|
|
1771
1771
|
case "left":
|
|
1772
1772
|
return g.translate(p.topLeft(e), [c, h]);
|
|
@@ -1781,7 +1781,7 @@ const Ne = (t, n) => Object.values(n).filter(({ loc: e }) => e === t).sort((e, s
|
|
|
1781
1781
|
]);
|
|
1782
1782
|
}
|
|
1783
1783
|
}, No = (t, n) => {
|
|
1784
|
-
const e =
|
|
1784
|
+
const e = Ie("left", t), s = Ie("right", t), r = Ie("top", t), a = Ie("bottom", t), i = e.reduce((h, { size: f }) => h + f, 0), o = s.reduce((h, { size: f }) => h + f, 0), l = r.reduce((h, { size: f }) => h + f, 0), c = a.reduce((h, { size: f }) => h + f, 0);
|
|
1785
1785
|
return p.construct(
|
|
1786
1786
|
g.translate(p.topLeft(n), { x: i, y: l }),
|
|
1787
1787
|
p.width(n) - i - o,
|
|
@@ -1879,9 +1879,9 @@ function Ia(t, n) {
|
|
|
1879
1879
|
for (var s in n) e[s] = n[s];
|
|
1880
1880
|
return e;
|
|
1881
1881
|
}
|
|
1882
|
-
function
|
|
1882
|
+
function $t() {
|
|
1883
1883
|
}
|
|
1884
|
-
var
|
|
1884
|
+
var Pt = 0.7, fn = 1 / Pt, $e = "\\s*([+-]?\\d+)\\s*", Rt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", ie = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", zo = /^#([0-9a-f]{3,8})$/, Wo = new RegExp(`^rgb\\(${$e},${$e},${$e}\\)$`), Go = new RegExp(`^rgb\\(${ie},${ie},${ie}\\)$`), Xo = new RegExp(`^rgba\\(${$e},${$e},${$e},${Rt}\\)$`), Vo = new RegExp(`^rgba\\(${ie},${ie},${ie},${Rt}\\)$`), Ko = new RegExp(`^hsl\\(${Rt},${ie},${ie}\\)$`), Qo = new RegExp(`^hsla\\(${Rt},${ie},${ie},${Rt}\\)$`), sr = {
|
|
1885
1885
|
aliceblue: 15792383,
|
|
1886
1886
|
antiquewhite: 16444375,
|
|
1887
1887
|
aqua: 65535,
|
|
@@ -2031,7 +2031,7 @@ var Rt = 0.7, fn = 1 / Rt, Fe = "\\s*([+-]?\\d+)\\s*", Mt = "\\s*([+-]?(?:\\d*\\
|
|
|
2031
2031
|
yellow: 16776960,
|
|
2032
2032
|
yellowgreen: 10145074
|
|
2033
2033
|
};
|
|
2034
|
-
qs(
|
|
2034
|
+
qs($t, Mt, {
|
|
2035
2035
|
copy(t) {
|
|
2036
2036
|
return Object.assign(new this.constructor(), this, t);
|
|
2037
2037
|
},
|
|
@@ -2058,7 +2058,7 @@ function el() {
|
|
|
2058
2058
|
function ar() {
|
|
2059
2059
|
return this.rgb().formatRgb();
|
|
2060
2060
|
}
|
|
2061
|
-
function
|
|
2061
|
+
function Mt(t) {
|
|
2062
2062
|
var n, e;
|
|
2063
2063
|
return t = (t + "").trim().toLowerCase(), (n = zo.exec(t)) ? (e = n[1].length, n = parseInt(n[1], 16), e === 6 ? ir(n) : e === 3 ? new z(n >> 8 & 15 | n >> 4 & 240, n >> 4 & 15 | n & 240, (n & 15) << 4 | n & 15, 1) : e === 8 ? zt(n >> 24 & 255, n >> 16 & 255, n >> 8 & 255, (n & 255) / 255) : e === 4 ? zt(n >> 12 & 15 | n >> 8 & 240, n >> 8 & 15 | n >> 4 & 240, n >> 4 & 15 | n & 240, ((n & 15) << 4 | n & 15) / 255) : null) : (n = Wo.exec(t)) ? new z(n[1], n[2], n[3], 1) : (n = Go.exec(t)) ? new z(n[1] * 255 / 100, n[2] * 255 / 100, n[3] * 255 / 100, 1) : (n = Xo.exec(t)) ? zt(n[1], n[2], n[3], n[4]) : (n = Vo.exec(t)) ? zt(n[1] * 255 / 100, n[2] * 255 / 100, n[3] * 255 / 100, n[4]) : (n = Ko.exec(t)) ? cr(n[1], n[2] / 100, n[3] / 100, 1) : (n = Qo.exec(t)) ? cr(n[1], n[2] / 100, n[3] / 100, n[4]) : sr.hasOwnProperty(t) ? ir(sr[t]) : t === "transparent" ? new z(NaN, NaN, NaN, 0) : null;
|
|
2064
2064
|
}
|
|
@@ -2069,7 +2069,7 @@ function zt(t, n, e, s) {
|
|
|
2069
2069
|
return s <= 0 && (t = n = e = NaN), new z(t, n, e, s);
|
|
2070
2070
|
}
|
|
2071
2071
|
function tl(t) {
|
|
2072
|
-
return t instanceof
|
|
2072
|
+
return t instanceof $t || (t = Mt(t)), t ? (t = t.rgb(), new z(t.r, t.g, t.b, t.opacity)) : new z();
|
|
2073
2073
|
}
|
|
2074
2074
|
function ss(t, n, e, s) {
|
|
2075
2075
|
return arguments.length === 1 ? tl(t) : new z(t, n, e, s ?? 1);
|
|
@@ -2077,18 +2077,18 @@ function ss(t, n, e, s) {
|
|
|
2077
2077
|
function z(t, n, e, s) {
|
|
2078
2078
|
this.r = +t, this.g = +n, this.b = +e, this.opacity = +s;
|
|
2079
2079
|
}
|
|
2080
|
-
qs(z, ss, Ia(
|
|
2080
|
+
qs(z, ss, Ia($t, {
|
|
2081
2081
|
brighter(t) {
|
|
2082
2082
|
return t = t == null ? fn : Math.pow(fn, t), new z(this.r * t, this.g * t, this.b * t, this.opacity);
|
|
2083
2083
|
},
|
|
2084
2084
|
darker(t) {
|
|
2085
|
-
return t = t == null ?
|
|
2085
|
+
return t = t == null ? Pt : Math.pow(Pt, t), new z(this.r * t, this.g * t, this.b * t, this.opacity);
|
|
2086
2086
|
},
|
|
2087
2087
|
rgb() {
|
|
2088
2088
|
return this;
|
|
2089
2089
|
},
|
|
2090
2090
|
clamp() {
|
|
2091
|
-
return new z(
|
|
2091
|
+
return new z(Ce(this.r), Ce(this.g), Ce(this.b), pn(this.opacity));
|
|
2092
2092
|
},
|
|
2093
2093
|
displayable() {
|
|
2094
2094
|
return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
|
@@ -2101,30 +2101,30 @@ qs(z, ss, Ia(Ft, {
|
|
|
2101
2101
|
toString: lr
|
|
2102
2102
|
}));
|
|
2103
2103
|
function or() {
|
|
2104
|
-
return `#${
|
|
2104
|
+
return `#${Se(this.r)}${Se(this.g)}${Se(this.b)}`;
|
|
2105
2105
|
}
|
|
2106
2106
|
function nl() {
|
|
2107
|
-
return `#${
|
|
2107
|
+
return `#${Se(this.r)}${Se(this.g)}${Se(this.b)}${Se((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
2108
2108
|
}
|
|
2109
2109
|
function lr() {
|
|
2110
2110
|
const t = pn(this.opacity);
|
|
2111
|
-
return `${t === 1 ? "rgb(" : "rgba("}${
|
|
2111
|
+
return `${t === 1 ? "rgb(" : "rgba("}${Ce(this.r)}, ${Ce(this.g)}, ${Ce(this.b)}${t === 1 ? ")" : `, ${t})`}`;
|
|
2112
2112
|
}
|
|
2113
2113
|
function pn(t) {
|
|
2114
2114
|
return isNaN(t) ? 1 : Math.max(0, Math.min(1, t));
|
|
2115
2115
|
}
|
|
2116
|
-
function
|
|
2116
|
+
function Ce(t) {
|
|
2117
2117
|
return Math.max(0, Math.min(255, Math.round(t) || 0));
|
|
2118
2118
|
}
|
|
2119
|
-
function
|
|
2120
|
-
return t =
|
|
2119
|
+
function Se(t) {
|
|
2120
|
+
return t = Ce(t), (t < 16 ? "0" : "") + t.toString(16);
|
|
2121
2121
|
}
|
|
2122
2122
|
function cr(t, n, e, s) {
|
|
2123
2123
|
return s <= 0 ? t = n = e = NaN : e <= 0 || e >= 1 ? t = n = NaN : n <= 0 && (t = NaN), new se(t, n, e, s);
|
|
2124
2124
|
}
|
|
2125
2125
|
function Na(t) {
|
|
2126
2126
|
if (t instanceof se) return new se(t.h, t.s, t.l, t.opacity);
|
|
2127
|
-
if (t instanceof
|
|
2127
|
+
if (t instanceof $t || (t = Mt(t)), !t) return new se();
|
|
2128
2128
|
if (t instanceof se) return t;
|
|
2129
2129
|
t = t.rgb();
|
|
2130
2130
|
var n = t.r / 255, e = t.g / 255, s = t.b / 255, r = Math.min(n, e, s), a = Math.max(n, e, s), i = NaN, o = a - r, l = (a + r) / 2;
|
|
@@ -2136,12 +2136,12 @@ function sl(t, n, e, s) {
|
|
|
2136
2136
|
function se(t, n, e, s) {
|
|
2137
2137
|
this.h = +t, this.s = +n, this.l = +e, this.opacity = +s;
|
|
2138
2138
|
}
|
|
2139
|
-
qs(se, sl, Ia(
|
|
2139
|
+
qs(se, sl, Ia($t, {
|
|
2140
2140
|
brighter(t) {
|
|
2141
2141
|
return t = t == null ? fn : Math.pow(fn, t), new se(this.h, this.s, this.l * t, this.opacity);
|
|
2142
2142
|
},
|
|
2143
2143
|
darker(t) {
|
|
2144
|
-
return t = t == null ?
|
|
2144
|
+
return t = t == null ? Pt : Math.pow(Pt, t), new se(this.h, this.s, this.l * t, this.opacity);
|
|
2145
2145
|
},
|
|
2146
2146
|
rgb() {
|
|
2147
2147
|
var t = this.h % 360 + (this.h < 0) * 360, n = isNaN(t) || isNaN(this.s) ? 0 : this.s, e = this.l, s = e + (e < 0.5 ? e : 1 - e) * n, r = 2 * e - s;
|
|
@@ -2265,7 +2265,7 @@ function pl(t, n) {
|
|
|
2265
2265
|
}
|
|
2266
2266
|
function Hs(t, n) {
|
|
2267
2267
|
var e = typeof n, s;
|
|
2268
|
-
return n == null || e === "boolean" ? js(n) : (e === "number" ? gn : e === "string" ? (s =
|
|
2268
|
+
return n == null || e === "boolean" ? js(n) : (e === "number" ? gn : e === "string" ? (s = Mt(n)) ? (n = s, hr) : pl : n instanceof Mt ? hr : n instanceof Date ? ul : ll(n) ? ol : Array.isArray(n) ? cl : typeof n.valueOf != "function" && typeof n.toString != "function" || isNaN(n) ? hl : gn)(t, n);
|
|
2269
2269
|
}
|
|
2270
2270
|
function gl(t, n) {
|
|
2271
2271
|
return t = +t, n = +n, function(e) {
|
|
@@ -2281,7 +2281,7 @@ function yl(t) {
|
|
|
2281
2281
|
return +t;
|
|
2282
2282
|
}
|
|
2283
2283
|
var dr = [0, 1];
|
|
2284
|
-
function
|
|
2284
|
+
function Ne(t) {
|
|
2285
2285
|
return t;
|
|
2286
2286
|
}
|
|
2287
2287
|
function as(t, n) {
|
|
@@ -2314,10 +2314,10 @@ function Ua(t, n) {
|
|
|
2314
2314
|
return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown());
|
|
2315
2315
|
}
|
|
2316
2316
|
function Tl() {
|
|
2317
|
-
var t = dr, n = dr, e = Hs, s, r, a, i =
|
|
2317
|
+
var t = dr, n = dr, e = Hs, s, r, a, i = Ne, o, l, c;
|
|
2318
2318
|
function h() {
|
|
2319
2319
|
var m = Math.min(t.length, n.length);
|
|
2320
|
-
return i !==
|
|
2320
|
+
return i !== Ne && (i = vl(t[0], t[m - 1])), o = m > 2 ? xl : bl, l = c = null, f;
|
|
2321
2321
|
}
|
|
2322
2322
|
function f(m) {
|
|
2323
2323
|
return m == null || isNaN(m = +m) ? a : (l || (l = o(t.map(s), n, e)))(s(i(m)));
|
|
@@ -2331,7 +2331,7 @@ function Tl() {
|
|
|
2331
2331
|
}, f.rangeRound = function(m) {
|
|
2332
2332
|
return n = Array.from(m), e = gl, h();
|
|
2333
2333
|
}, f.clamp = function(m) {
|
|
2334
|
-
return arguments.length ? (i = m ? !0 :
|
|
2334
|
+
return arguments.length ? (i = m ? !0 : Ne, h()) : i !== Ne;
|
|
2335
2335
|
}, f.interpolate = function(m) {
|
|
2336
2336
|
return arguments.length ? (e = m, h()) : e;
|
|
2337
2337
|
}, f.unknown = function(m) {
|
|
@@ -2341,7 +2341,7 @@ function Tl() {
|
|
|
2341
2341
|
};
|
|
2342
2342
|
}
|
|
2343
2343
|
function Ba() {
|
|
2344
|
-
return Tl()(
|
|
2344
|
+
return Tl()(Ne, Ne);
|
|
2345
2345
|
}
|
|
2346
2346
|
function wl(t) {
|
|
2347
2347
|
return Math.abs(t = Math.round(t)) >= 1e21 ? t.toLocaleString("en").replace(/,/g, "") : t.toString(10);
|
|
@@ -2354,7 +2354,7 @@ function mn(t, n) {
|
|
|
2354
2354
|
+t.slice(e + 1)
|
|
2355
2355
|
];
|
|
2356
2356
|
}
|
|
2357
|
-
function
|
|
2357
|
+
function Ve(t) {
|
|
2358
2358
|
return t = mn(Math.abs(t)), t ? t[1] : NaN;
|
|
2359
2359
|
}
|
|
2360
2360
|
function Sl(t, n) {
|
|
@@ -2449,25 +2449,25 @@ function Rl(t) {
|
|
|
2449
2449
|
f = yn(f);
|
|
2450
2450
|
var m = f.fill, b = f.align, E = f.sign, O = f.symbol, T = f.zero, w = f.width, L = f.comma, R = f.precision, N = f.trim, A = f.type;
|
|
2451
2451
|
A === "n" ? (L = !0, A = "g") : pr[A] || (R === void 0 && (R = 12), N = !0, A = "g"), (T || m === "0" && b === "=") && (T = !0, m = "0", b = "=");
|
|
2452
|
-
var C = O === "$" ? e : O === "#" && /[boxX]/.test(A) ? "0" + A.toLowerCase() : "", U = O === "$" ? s : /[%p]/.test(A) ? i : "", te = pr[A],
|
|
2452
|
+
var C = O === "$" ? e : O === "#" && /[boxX]/.test(A) ? "0" + A.toLowerCase() : "", U = O === "$" ? s : /[%p]/.test(A) ? i : "", te = pr[A], jt = /[defgprs%]/.test(A);
|
|
2453
2453
|
R = R === void 0 ? 6 : /[gprs]/.test(A) ? Math.max(1, Math.min(21, R)) : Math.max(0, Math.min(20, R));
|
|
2454
|
-
function
|
|
2455
|
-
var le = C, j = U,
|
|
2454
|
+
function Me(M) {
|
|
2455
|
+
var le = C, j = U, me, Ht, De;
|
|
2456
2456
|
if (A === "c")
|
|
2457
2457
|
j = te(M) + j, M = "";
|
|
2458
2458
|
else {
|
|
2459
2459
|
M = +M;
|
|
2460
|
-
var
|
|
2461
|
-
if (M = isNaN(M) ? l : te(Math.abs(M), R), N && (M = kl(M)),
|
|
2462
|
-
for (
|
|
2463
|
-
if (
|
|
2464
|
-
j = (
|
|
2460
|
+
var Ye = M < 0 || 1 / M < 0;
|
|
2461
|
+
if (M = isNaN(M) ? l : te(Math.abs(M), R), N && (M = kl(M)), Ye && +M == 0 && E !== "+" && (Ye = !1), le = (Ye ? E === "(" ? E : o : E === "-" || E === "(" ? "" : E) + le, j = (A === "s" ? yr[8 + _a / 3] : "") + j + (Ye && E === "(" ? ")" : ""), jt) {
|
|
2462
|
+
for (me = -1, Ht = M.length; ++me < Ht; )
|
|
2463
|
+
if (De = M.charCodeAt(me), 48 > De || De > 57) {
|
|
2464
|
+
j = (De === 46 ? r + M.slice(me + 1) : M.slice(me)) + j, M = M.slice(0, me);
|
|
2465
2465
|
break;
|
|
2466
2466
|
}
|
|
2467
2467
|
}
|
|
2468
2468
|
}
|
|
2469
2469
|
L && !T && (M = n(M, 1 / 0));
|
|
2470
|
-
var
|
|
2470
|
+
var Oe = le.length + M.length + j.length, ne = Oe < w ? new Array(w - Oe + 1).join(m) : "";
|
|
2471
2471
|
switch (L && T && (M = n(ne + M, ne.length ? w - j.length : 1 / 0), ne = ""), b) {
|
|
2472
2472
|
case "<":
|
|
2473
2473
|
M = le + M + j + ne;
|
|
@@ -2476,7 +2476,7 @@ function Rl(t) {
|
|
|
2476
2476
|
M = le + ne + M + j;
|
|
2477
2477
|
break;
|
|
2478
2478
|
case "^":
|
|
2479
|
-
M = ne.slice(0,
|
|
2479
|
+
M = ne.slice(0, Oe = ne.length >> 1) + le + M + j + ne.slice(Oe);
|
|
2480
2480
|
break;
|
|
2481
2481
|
default:
|
|
2482
2482
|
M = ne + le + M + j;
|
|
@@ -2484,12 +2484,12 @@ function Rl(t) {
|
|
|
2484
2484
|
}
|
|
2485
2485
|
return a(M);
|
|
2486
2486
|
}
|
|
2487
|
-
return
|
|
2487
|
+
return Me.toString = function() {
|
|
2488
2488
|
return f + "";
|
|
2489
|
-
},
|
|
2489
|
+
}, Me;
|
|
2490
2490
|
}
|
|
2491
2491
|
function h(f, m) {
|
|
2492
|
-
var b = c((f = yn(f), f.type = "f", f)), E = Math.max(-8, Math.min(8, Math.floor(
|
|
2492
|
+
var b = c((f = yn(f), f.type = "f", f)), E = Math.max(-8, Math.min(8, Math.floor(Ve(m) / 3))) * 3, O = Math.pow(10, -E), T = yr[8 + E / 3];
|
|
2493
2493
|
return function(w) {
|
|
2494
2494
|
return b(O * w) + T;
|
|
2495
2495
|
};
|
|
@@ -2509,13 +2509,13 @@ function Ml(t) {
|
|
|
2509
2509
|
return Gt = Rl(t), $a = Gt.format, Fa = Gt.formatPrefix, Gt;
|
|
2510
2510
|
}
|
|
2511
2511
|
function Dl(t) {
|
|
2512
|
-
return Math.max(0, -
|
|
2512
|
+
return Math.max(0, -Ve(Math.abs(t)));
|
|
2513
2513
|
}
|
|
2514
2514
|
function Yl(t, n) {
|
|
2515
|
-
return Math.max(0, Math.max(-8, Math.min(8, Math.floor(
|
|
2515
|
+
return Math.max(0, Math.max(-8, Math.min(8, Math.floor(Ve(n) / 3))) * 3 - Ve(Math.abs(t)));
|
|
2516
2516
|
}
|
|
2517
2517
|
function Ol(t, n) {
|
|
2518
|
-
return t = Math.abs(t), n = Math.abs(n) - t, Math.max(0,
|
|
2518
|
+
return t = Math.abs(t), n = Math.abs(n) - t, Math.max(0, Ve(n) - Ve(t)) + 1;
|
|
2519
2519
|
}
|
|
2520
2520
|
function Ll(t, n, e, s) {
|
|
2521
2521
|
var r = ns(t, n, e), a;
|
|
@@ -2614,12 +2614,12 @@ vn.every = (t) => (t = Math.floor(t), !isFinite(t) || !(t > 0) ? null : t > 1 ?
|
|
|
2614
2614
|
n.setTime(+n + e * t);
|
|
2615
2615
|
}, (n, e) => (e - n) / t) : vn);
|
|
2616
2616
|
vn.range;
|
|
2617
|
-
const ce = 1e3, Q = ce * 60, ue = Q * 60, de = ue * 24, Ws = de * 7, vr = de * 30, Xn = de * 365,
|
|
2617
|
+
const ce = 1e3, Q = ce * 60, ue = Q * 60, de = ue * 24, Ws = de * 7, vr = de * 30, Xn = de * 365, Ze = B((t) => {
|
|
2618
2618
|
t.setTime(t - t.getMilliseconds());
|
|
2619
2619
|
}, (t, n) => {
|
|
2620
2620
|
t.setTime(+t + n * ce);
|
|
2621
2621
|
}, (t, n) => (n - t) / ce, (t) => t.getUTCSeconds());
|
|
2622
|
-
|
|
2622
|
+
Ze.range;
|
|
2623
2623
|
const Gs = B((t) => {
|
|
2624
2624
|
t.setTime(t - t.getMilliseconds() - t.getSeconds() * ce);
|
|
2625
2625
|
}, (t, n) => {
|
|
@@ -2644,13 +2644,13 @@ const Zl = B((t) => {
|
|
|
2644
2644
|
t.setTime(+t + n * ue);
|
|
2645
2645
|
}, (t, n) => (n - t) / ue, (t) => t.getUTCHours());
|
|
2646
2646
|
Zl.range;
|
|
2647
|
-
const
|
|
2647
|
+
const Ft = B(
|
|
2648
2648
|
(t) => t.setHours(0, 0, 0, 0),
|
|
2649
2649
|
(t, n) => t.setDate(t.getDate() + n),
|
|
2650
2650
|
(t, n) => (n - t - (n.getTimezoneOffset() - t.getTimezoneOffset()) * Q) / de,
|
|
2651
2651
|
(t) => t.getDate() - 1
|
|
2652
2652
|
);
|
|
2653
|
-
|
|
2653
|
+
Ft.range;
|
|
2654
2654
|
const Vs = B((t) => {
|
|
2655
2655
|
t.setUTCHours(0, 0, 0, 0);
|
|
2656
2656
|
}, (t, n) => {
|
|
@@ -2663,34 +2663,34 @@ const Ul = B((t) => {
|
|
|
2663
2663
|
t.setUTCDate(t.getUTCDate() + n);
|
|
2664
2664
|
}, (t, n) => (n - t) / de, (t) => Math.floor(t / de));
|
|
2665
2665
|
Ul.range;
|
|
2666
|
-
function
|
|
2666
|
+
function Pe(t) {
|
|
2667
2667
|
return B((n) => {
|
|
2668
2668
|
n.setDate(n.getDate() - (n.getDay() + 7 - t) % 7), n.setHours(0, 0, 0, 0);
|
|
2669
2669
|
}, (n, e) => {
|
|
2670
2670
|
n.setDate(n.getDate() + e * 7);
|
|
2671
2671
|
}, (n, e) => (e - n - (e.getTimezoneOffset() - n.getTimezoneOffset()) * Q) / Ws);
|
|
2672
2672
|
}
|
|
2673
|
-
const Fn =
|
|
2673
|
+
const Fn = Pe(0), bn = Pe(1), Bl = Pe(2), _l = Pe(3), Ke = Pe(4), $l = Pe(5), Fl = Pe(6);
|
|
2674
2674
|
Fn.range;
|
|
2675
2675
|
bn.range;
|
|
2676
2676
|
Bl.range;
|
|
2677
2677
|
_l.range;
|
|
2678
|
-
|
|
2678
|
+
Ke.range;
|
|
2679
2679
|
$l.range;
|
|
2680
2680
|
Fl.range;
|
|
2681
|
-
function
|
|
2681
|
+
function Re(t) {
|
|
2682
2682
|
return B((n) => {
|
|
2683
2683
|
n.setUTCDate(n.getUTCDate() - (n.getUTCDay() + 7 - t) % 7), n.setUTCHours(0, 0, 0, 0);
|
|
2684
2684
|
}, (n, e) => {
|
|
2685
2685
|
n.setUTCDate(n.getUTCDate() + e * 7);
|
|
2686
2686
|
}, (n, e) => (e - n) / Ws);
|
|
2687
2687
|
}
|
|
2688
|
-
const ja =
|
|
2688
|
+
const ja = Re(0), xn = Re(1), ql = Re(2), jl = Re(3), Qe = Re(4), Hl = Re(5), zl = Re(6);
|
|
2689
2689
|
ja.range;
|
|
2690
2690
|
xn.range;
|
|
2691
2691
|
ql.range;
|
|
2692
2692
|
jl.range;
|
|
2693
|
-
|
|
2693
|
+
Qe.range;
|
|
2694
2694
|
Hl.range;
|
|
2695
2695
|
zl.range;
|
|
2696
2696
|
const Ks = B((t) => {
|
|
@@ -2716,23 +2716,23 @@ fe.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : B((n) => {
|
|
|
2716
2716
|
n.setFullYear(n.getFullYear() + e * t);
|
|
2717
2717
|
});
|
|
2718
2718
|
fe.range;
|
|
2719
|
-
const
|
|
2719
|
+
const Ee = B((t) => {
|
|
2720
2720
|
t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
|
|
2721
2721
|
}, (t, n) => {
|
|
2722
2722
|
t.setUTCFullYear(t.getUTCFullYear() + n);
|
|
2723
2723
|
}, (t, n) => n.getUTCFullYear() - t.getUTCFullYear(), (t) => t.getUTCFullYear());
|
|
2724
|
-
|
|
2724
|
+
Ee.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : B((n) => {
|
|
2725
2725
|
n.setUTCFullYear(Math.floor(n.getUTCFullYear() / t) * t), n.setUTCMonth(0, 1), n.setUTCHours(0, 0, 0, 0);
|
|
2726
2726
|
}, (n, e) => {
|
|
2727
2727
|
n.setUTCFullYear(n.getUTCFullYear() + e * t);
|
|
2728
2728
|
});
|
|
2729
|
-
|
|
2729
|
+
Ee.range;
|
|
2730
2730
|
function Gl(t, n, e, s, r, a) {
|
|
2731
2731
|
const i = [
|
|
2732
|
-
[
|
|
2733
|
-
[
|
|
2734
|
-
[
|
|
2735
|
-
[
|
|
2732
|
+
[Ze, 1, ce],
|
|
2733
|
+
[Ze, 5, 5 * ce],
|
|
2734
|
+
[Ze, 15, 15 * ce],
|
|
2735
|
+
[Ze, 30, 30 * ce],
|
|
2736
2736
|
[a, 1, Q],
|
|
2737
2737
|
[a, 5, 5 * Q],
|
|
2738
2738
|
[a, 15, 15 * Q],
|
|
@@ -2763,7 +2763,7 @@ function Gl(t, n, e, s, r, a) {
|
|
|
2763
2763
|
}
|
|
2764
2764
|
return [o, l];
|
|
2765
2765
|
}
|
|
2766
|
-
const [Xl, Vl] = Gl(fe, Ks, Fn,
|
|
2766
|
+
const [Xl, Vl] = Gl(fe, Ks, Fn, Ft, Xs, Gs);
|
|
2767
2767
|
function Vn(t) {
|
|
2768
2768
|
if (0 <= t.y && t.y < 100) {
|
|
2769
2769
|
var n = new Date(-1, t.m, t.d, t.H, t.M, t.S, t.L);
|
|
@@ -2778,13 +2778,13 @@ function Kn(t) {
|
|
|
2778
2778
|
}
|
|
2779
2779
|
return new Date(Date.UTC(t.y, t.m, t.d, t.H, t.M, t.S, t.L));
|
|
2780
2780
|
}
|
|
2781
|
-
function
|
|
2781
|
+
function nt(t, n, e) {
|
|
2782
2782
|
return { y: t, m: n, d: e, H: 0, M: 0, S: 0, L: 0 };
|
|
2783
2783
|
}
|
|
2784
2784
|
function Kl(t) {
|
|
2785
|
-
var n = t.dateTime, e = t.date, s = t.time, r = t.periods, a = t.days, i = t.shortDays, o = t.months, l = t.shortMonths, c =
|
|
2786
|
-
a:
|
|
2787
|
-
A:
|
|
2785
|
+
var n = t.dateTime, e = t.date, s = t.time, r = t.periods, a = t.days, i = t.shortDays, o = t.months, l = t.shortMonths, c = st(r), h = rt(r), f = st(a), m = rt(a), b = st(i), E = rt(i), O = st(o), T = rt(o), w = st(l), L = rt(l), R = {
|
|
2786
|
+
a: Ye,
|
|
2787
|
+
A: Oe,
|
|
2788
2788
|
b: ne,
|
|
2789
2789
|
B: oi,
|
|
2790
2790
|
c: null,
|
|
@@ -2849,11 +2849,11 @@ function Kl(t) {
|
|
|
2849
2849
|
Z: Vc,
|
|
2850
2850
|
"%": kr
|
|
2851
2851
|
}, A = {
|
|
2852
|
-
a:
|
|
2852
|
+
a: Me,
|
|
2853
2853
|
A: M,
|
|
2854
2854
|
b: le,
|
|
2855
2855
|
B: j,
|
|
2856
|
-
c:
|
|
2856
|
+
c: me,
|
|
2857
2857
|
d: wr,
|
|
2858
2858
|
e: wr,
|
|
2859
2859
|
f: fc,
|
|
@@ -2865,7 +2865,7 @@ function Kl(t) {
|
|
|
2865
2865
|
L: dc,
|
|
2866
2866
|
m: lc,
|
|
2867
2867
|
M: uc,
|
|
2868
|
-
p:
|
|
2868
|
+
p: jt,
|
|
2869
2869
|
q: oc,
|
|
2870
2870
|
Q: gc,
|
|
2871
2871
|
s: mc,
|
|
@@ -2876,7 +2876,7 @@ function Kl(t) {
|
|
|
2876
2876
|
w: tc,
|
|
2877
2877
|
W: ac,
|
|
2878
2878
|
x: Ht,
|
|
2879
|
-
X:
|
|
2879
|
+
X: De,
|
|
2880
2880
|
y: Tr,
|
|
2881
2881
|
Y: xr,
|
|
2882
2882
|
Z: ic,
|
|
@@ -2885,40 +2885,40 @@ function Kl(t) {
|
|
|
2885
2885
|
R.x = C(e, R), R.X = C(s, R), R.c = C(n, R), N.x = C(e, N), N.X = C(s, N), N.c = C(n, N);
|
|
2886
2886
|
function C(x, P) {
|
|
2887
2887
|
return function(D) {
|
|
2888
|
-
var y = [], H = -1, I = 0, W = x.length, G,
|
|
2888
|
+
var y = [], H = -1, I = 0, W = x.length, G, we, Qs;
|
|
2889
2889
|
for (D instanceof Date || (D = /* @__PURE__ */ new Date(+D)); ++H < W; )
|
|
2890
|
-
x.charCodeAt(H) === 37 && (y.push(x.slice(I, H)), (
|
|
2890
|
+
x.charCodeAt(H) === 37 && (y.push(x.slice(I, H)), (we = br[G = x.charAt(++H)]) != null ? G = x.charAt(++H) : we = G === "e" ? " " : "0", (Qs = P[G]) && (G = Qs(D, we)), y.push(G), I = H + 1);
|
|
2891
2891
|
return y.push(x.slice(I, H)), y.join("");
|
|
2892
2892
|
};
|
|
2893
2893
|
}
|
|
2894
2894
|
function U(x, P) {
|
|
2895
2895
|
return function(D) {
|
|
2896
|
-
var y =
|
|
2896
|
+
var y = nt(1900, void 0, 1), H = te(y, x, D += "", 0), I, W;
|
|
2897
2897
|
if (H != D.length) return null;
|
|
2898
2898
|
if ("Q" in y) return new Date(y.Q);
|
|
2899
2899
|
if ("s" in y) return new Date(y.s * 1e3 + ("L" in y ? y.L : 0));
|
|
2900
2900
|
if (P && !("Z" in y) && (y.Z = 0), "p" in y && (y.H = y.H % 12 + y.p * 12), y.m === void 0 && (y.m = "q" in y ? y.q : 0), "V" in y) {
|
|
2901
2901
|
if (y.V < 1 || y.V > 53) return null;
|
|
2902
|
-
"w" in y || (y.w = 1), "Z" in y ? (I = Kn(
|
|
2903
|
-
} else ("W" in y || "U" in y) && ("w" in y || (y.w = "u" in y ? y.u % 7 : "W" in y ? 1 : 0), W = "Z" in y ? Kn(
|
|
2902
|
+
"w" in y || (y.w = 1), "Z" in y ? (I = Kn(nt(y.y, 0, 1)), W = I.getUTCDay(), I = W > 4 || W === 0 ? xn.ceil(I) : xn(I), I = Vs.offset(I, (y.V - 1) * 7), y.y = I.getUTCFullYear(), y.m = I.getUTCMonth(), y.d = I.getUTCDate() + (y.w + 6) % 7) : (I = Vn(nt(y.y, 0, 1)), W = I.getDay(), I = W > 4 || W === 0 ? bn.ceil(I) : bn(I), I = Ft.offset(I, (y.V - 1) * 7), y.y = I.getFullYear(), y.m = I.getMonth(), y.d = I.getDate() + (y.w + 6) % 7);
|
|
2903
|
+
} else ("W" in y || "U" in y) && ("w" in y || (y.w = "u" in y ? y.u % 7 : "W" in y ? 1 : 0), W = "Z" in y ? Kn(nt(y.y, 0, 1)).getUTCDay() : Vn(nt(y.y, 0, 1)).getDay(), y.m = 0, y.d = "W" in y ? (y.w + 6) % 7 + y.W * 7 - (W + 5) % 7 : y.w + y.U * 7 - (W + 6) % 7);
|
|
2904
2904
|
return "Z" in y ? (y.H += y.Z / 100 | 0, y.M += y.Z % 100, Kn(y)) : Vn(y);
|
|
2905
2905
|
};
|
|
2906
2906
|
}
|
|
2907
2907
|
function te(x, P, D, y) {
|
|
2908
|
-
for (var H = 0, I = P.length, W = D.length, G,
|
|
2908
|
+
for (var H = 0, I = P.length, W = D.length, G, we; H < I; ) {
|
|
2909
2909
|
if (y >= W) return -1;
|
|
2910
2910
|
if (G = P.charCodeAt(H++), G === 37) {
|
|
2911
|
-
if (G = P.charAt(H++),
|
|
2911
|
+
if (G = P.charAt(H++), we = A[G in br ? P.charAt(H++) : G], !we || (y = we(x, D, y)) < 0) return -1;
|
|
2912
2912
|
} else if (G != D.charCodeAt(y++))
|
|
2913
2913
|
return -1;
|
|
2914
2914
|
}
|
|
2915
2915
|
return y;
|
|
2916
2916
|
}
|
|
2917
|
-
function
|
|
2917
|
+
function jt(x, P, D) {
|
|
2918
2918
|
var y = c.exec(P.slice(D));
|
|
2919
2919
|
return y ? (x.p = h.get(y[0].toLowerCase()), D + y[0].length) : -1;
|
|
2920
2920
|
}
|
|
2921
|
-
function
|
|
2921
|
+
function Me(x, P, D) {
|
|
2922
2922
|
var y = b.exec(P.slice(D));
|
|
2923
2923
|
return y ? (x.w = E.get(y[0].toLowerCase()), D + y[0].length) : -1;
|
|
2924
2924
|
}
|
|
@@ -2934,19 +2934,19 @@ function Kl(t) {
|
|
|
2934
2934
|
var y = O.exec(P.slice(D));
|
|
2935
2935
|
return y ? (x.m = T.get(y[0].toLowerCase()), D + y[0].length) : -1;
|
|
2936
2936
|
}
|
|
2937
|
-
function
|
|
2937
|
+
function me(x, P, D) {
|
|
2938
2938
|
return te(x, n, P, D);
|
|
2939
2939
|
}
|
|
2940
2940
|
function Ht(x, P, D) {
|
|
2941
2941
|
return te(x, e, P, D);
|
|
2942
2942
|
}
|
|
2943
|
-
function
|
|
2943
|
+
function De(x, P, D) {
|
|
2944
2944
|
return te(x, s, P, D);
|
|
2945
2945
|
}
|
|
2946
|
-
function
|
|
2946
|
+
function Ye(x) {
|
|
2947
2947
|
return i[x.getDay()];
|
|
2948
2948
|
}
|
|
2949
|
-
function
|
|
2949
|
+
function Oe(x) {
|
|
2950
2950
|
return a[x.getDay()];
|
|
2951
2951
|
}
|
|
2952
2952
|
function ne(x) {
|
|
@@ -3014,10 +3014,10 @@ function Y(t, n, e) {
|
|
|
3014
3014
|
function ec(t) {
|
|
3015
3015
|
return t.replace(Jl, "\\$&");
|
|
3016
3016
|
}
|
|
3017
|
-
function
|
|
3017
|
+
function st(t) {
|
|
3018
3018
|
return new RegExp("^(?:" + t.map(ec).join("|") + ")", "i");
|
|
3019
3019
|
}
|
|
3020
|
-
function
|
|
3020
|
+
function rt(t) {
|
|
3021
3021
|
return new Map(t.map((n, e) => [n.toLowerCase(), e]));
|
|
3022
3022
|
}
|
|
3023
3023
|
function tc(t, n, e) {
|
|
@@ -3110,7 +3110,7 @@ function vc(t, n) {
|
|
|
3110
3110
|
return Y(t.getHours() % 12 || 12, n, 2);
|
|
3111
3111
|
}
|
|
3112
3112
|
function bc(t, n) {
|
|
3113
|
-
return Y(1 +
|
|
3113
|
+
return Y(1 + Ft.count(fe(t), t), n, 3);
|
|
3114
3114
|
}
|
|
3115
3115
|
function Ha(t, n) {
|
|
3116
3116
|
return Y(t.getMilliseconds(), n, 3);
|
|
@@ -3136,10 +3136,10 @@ function Ec(t, n) {
|
|
|
3136
3136
|
}
|
|
3137
3137
|
function za(t) {
|
|
3138
3138
|
var n = t.getDay();
|
|
3139
|
-
return n >= 4 || n === 0 ?
|
|
3139
|
+
return n >= 4 || n === 0 ? Ke(t) : Ke.ceil(t);
|
|
3140
3140
|
}
|
|
3141
3141
|
function kc(t, n) {
|
|
3142
|
-
return t = za(t), Y(
|
|
3142
|
+
return t = za(t), Y(Ke.count(fe(t), t) + (fe(t).getDay() === 4), n, 2);
|
|
3143
3143
|
}
|
|
3144
3144
|
function Pc(t) {
|
|
3145
3145
|
return t.getDay();
|
|
@@ -3158,7 +3158,7 @@ function Yc(t, n) {
|
|
|
3158
3158
|
}
|
|
3159
3159
|
function Oc(t, n) {
|
|
3160
3160
|
var e = t.getDay();
|
|
3161
|
-
return t = e >= 4 || e === 0 ?
|
|
3161
|
+
return t = e >= 4 || e === 0 ? Ke(t) : Ke.ceil(t), Y(t.getFullYear() % 1e4, n, 4);
|
|
3162
3162
|
}
|
|
3163
3163
|
function Lc(t) {
|
|
3164
3164
|
var n = t.getTimezoneOffset();
|
|
@@ -3174,7 +3174,7 @@ function Ic(t, n) {
|
|
|
3174
3174
|
return Y(t.getUTCHours() % 12 || 12, n, 2);
|
|
3175
3175
|
}
|
|
3176
3176
|
function Nc(t, n) {
|
|
3177
|
-
return Y(1 + Vs.count(
|
|
3177
|
+
return Y(1 + Vs.count(Ee(t), t), n, 3);
|
|
3178
3178
|
}
|
|
3179
3179
|
function Wa(t, n) {
|
|
3180
3180
|
return Y(t.getUTCMilliseconds(), n, 3);
|
|
@@ -3196,20 +3196,20 @@ function $c(t) {
|
|
|
3196
3196
|
return n === 0 ? 7 : n;
|
|
3197
3197
|
}
|
|
3198
3198
|
function Fc(t, n) {
|
|
3199
|
-
return Y(ja.count(
|
|
3199
|
+
return Y(ja.count(Ee(t) - 1, t), n, 2);
|
|
3200
3200
|
}
|
|
3201
3201
|
function Ga(t) {
|
|
3202
3202
|
var n = t.getUTCDay();
|
|
3203
|
-
return n >= 4 || n === 0 ?
|
|
3203
|
+
return n >= 4 || n === 0 ? Qe(t) : Qe.ceil(t);
|
|
3204
3204
|
}
|
|
3205
3205
|
function qc(t, n) {
|
|
3206
|
-
return t = Ga(t), Y(
|
|
3206
|
+
return t = Ga(t), Y(Qe.count(Ee(t), t) + (Ee(t).getUTCDay() === 4), n, 2);
|
|
3207
3207
|
}
|
|
3208
3208
|
function jc(t) {
|
|
3209
3209
|
return t.getUTCDay();
|
|
3210
3210
|
}
|
|
3211
3211
|
function Hc(t, n) {
|
|
3212
|
-
return Y(xn.count(
|
|
3212
|
+
return Y(xn.count(Ee(t) - 1, t), n, 2);
|
|
3213
3213
|
}
|
|
3214
3214
|
function zc(t, n) {
|
|
3215
3215
|
return Y(t.getUTCFullYear() % 100, n, 2);
|
|
@@ -3222,7 +3222,7 @@ function Gc(t, n) {
|
|
|
3222
3222
|
}
|
|
3223
3223
|
function Xc(t, n) {
|
|
3224
3224
|
var e = t.getUTCDay();
|
|
3225
|
-
return t = e >= 4 || e === 0 ?
|
|
3225
|
+
return t = e >= 4 || e === 0 ? Qe(t) : Qe.ceil(t), Y(t.getUTCFullYear() % 1e4, n, 4);
|
|
3226
3226
|
}
|
|
3227
3227
|
function Vc() {
|
|
3228
3228
|
return "+0000";
|
|
@@ -3236,7 +3236,7 @@ function Pr(t) {
|
|
|
3236
3236
|
function Rr(t) {
|
|
3237
3237
|
return Math.floor(+t / 1e3);
|
|
3238
3238
|
}
|
|
3239
|
-
var
|
|
3239
|
+
var Le, Xa;
|
|
3240
3240
|
Kc({
|
|
3241
3241
|
dateTime: "%x, %X",
|
|
3242
3242
|
date: "%-m/%-d/%Y",
|
|
@@ -3248,7 +3248,7 @@ Kc({
|
|
|
3248
3248
|
shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
|
|
3249
3249
|
});
|
|
3250
3250
|
function Kc(t) {
|
|
3251
|
-
return
|
|
3251
|
+
return Le = Kl(t), Xa = Le.format, Le.parse, Le.utcFormat, Le.utcParse, Le;
|
|
3252
3252
|
}
|
|
3253
3253
|
function Qc(t) {
|
|
3254
3254
|
return new Date(t);
|
|
@@ -3278,7 +3278,7 @@ function Va(t, n, e, s, r, a, i, o, l, c) {
|
|
|
3278
3278
|
}, h;
|
|
3279
3279
|
}
|
|
3280
3280
|
function eu() {
|
|
3281
|
-
return Aa.apply(Va(Xl, Vl, fe, Ks, Fn,
|
|
3281
|
+
return Aa.apply(Va(Xl, Vl, fe, Ks, Fn, Ft, Xs, Gs, Ze, Xa).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
|
|
3282
3282
|
}
|
|
3283
3283
|
const Mr = [
|
|
3284
3284
|
S.NANOSECOND,
|
|
@@ -3499,7 +3499,7 @@ const is = (t, n) => {
|
|
|
3499
3499
|
showGrid: d.boolean().optional().default(!0),
|
|
3500
3500
|
location: re.outer,
|
|
3501
3501
|
gridColor: v.colorZ
|
|
3502
|
-
}), oe = 5,
|
|
3502
|
+
}), oe = 5, Dt = 6, qt = { useAtlas: !0 }, iu = {
|
|
3503
3503
|
bottom: (t, n) => new lu(t, n),
|
|
3504
3504
|
top: (t, n) => new cu(t, n),
|
|
3505
3505
|
left: (t, n) => new uu(t, n),
|
|
@@ -3521,7 +3521,7 @@ const is = (t, n) => {
|
|
|
3521
3521
|
drawTicks(n, e) {
|
|
3522
3522
|
let s = Js.ZERO;
|
|
3523
3523
|
return n.forEach((r) => {
|
|
3524
|
-
const a = this.renderCtx.lower2d.textDimensions(r.label,
|
|
3524
|
+
const a = this.renderCtx.lower2d.textDimensions(r.label, qt);
|
|
3525
3525
|
s = Js.max([s, a]), e(a, r);
|
|
3526
3526
|
}), s;
|
|
3527
3527
|
}
|
|
@@ -3540,8 +3540,8 @@ const is = (t, n) => {
|
|
|
3540
3540
|
}
|
|
3541
3541
|
};
|
|
3542
3542
|
u(On, "START_BOUND", k.construct(-1, 1));
|
|
3543
|
-
let
|
|
3544
|
-
class lu extends
|
|
3543
|
+
let Je = On;
|
|
3544
|
+
class lu extends Je {
|
|
3545
3545
|
render(n) {
|
|
3546
3546
|
const { lower2d: e } = this.renderCtx, { plot: s, position: r } = n, { width: a, height: i } = p.dims(s), o = this.tickFactory.create({ ...n, size: a });
|
|
3547
3547
|
e.beginPath(), this.setColor(this.state.color), this.drawLine(r, g.translate(r, "x", a));
|
|
@@ -3552,18 +3552,18 @@ class lu extends et {
|
|
|
3552
3552
|
), e.fillText(
|
|
3553
3553
|
h.label,
|
|
3554
3554
|
r.x + h.position - c.width / 2,
|
|
3555
|
-
r.y + oe + c.height +
|
|
3555
|
+
r.y + oe + c.height + Dt,
|
|
3556
3556
|
void 0,
|
|
3557
|
-
|
|
3557
|
+
qt
|
|
3558
3558
|
);
|
|
3559
3559
|
});
|
|
3560
3560
|
return e.stroke(), this.maybeDrawGrid(a, o, (c) => [
|
|
3561
3561
|
g.translate(r, "x", c.position),
|
|
3562
3562
|
g.translate(r, { x: c.position, y: -i })
|
|
3563
|
-
]), { size: l.height + oe +
|
|
3563
|
+
]), { size: l.height + oe + Dt };
|
|
3564
3564
|
}
|
|
3565
3565
|
}
|
|
3566
|
-
class cu extends
|
|
3566
|
+
class cu extends Je {
|
|
3567
3567
|
render(n) {
|
|
3568
3568
|
const { lower2d: e } = this.renderCtx, { plot: s } = n, { width: r, height: a } = p.dims(s), i = g.translate(n.position, "y", n.size), o = this.tickFactory.create({ ...n, size: r });
|
|
3569
3569
|
e.beginPath(), this.setColor(this.state.color), this.drawLine(i, g.translate(i, "x", r));
|
|
@@ -3574,9 +3574,9 @@ class cu extends et {
|
|
|
3574
3574
|
), e.fillText(
|
|
3575
3575
|
h.label,
|
|
3576
3576
|
i.x + h.position - c.width / 2,
|
|
3577
|
-
i.y - oe - c.height -
|
|
3577
|
+
i.y - oe - c.height - Dt,
|
|
3578
3578
|
void 0,
|
|
3579
|
-
|
|
3579
|
+
qt
|
|
3580
3580
|
);
|
|
3581
3581
|
});
|
|
3582
3582
|
return e.stroke(), this.maybeDrawGrid(r, o, (c) => [
|
|
@@ -3585,7 +3585,7 @@ class cu extends et {
|
|
|
3585
3585
|
]), { size: l.height + oe };
|
|
3586
3586
|
}
|
|
3587
3587
|
}
|
|
3588
|
-
class uu extends
|
|
3588
|
+
class uu extends Je {
|
|
3589
3589
|
render(n) {
|
|
3590
3590
|
const { lower2d: e } = this.renderCtx, { plot: s, position: r } = n, { height: a, width: i } = p.dims(s), o = g.translate(r, "x", n.size), l = this.tickFactory.create({ ...n, size: a });
|
|
3591
3591
|
e.beginPath(), this.setColor(this.state.color), this.drawLine(o, g.translate(o, "y", a));
|
|
@@ -3598,7 +3598,7 @@ class uu extends et {
|
|
|
3598
3598
|
o.x - h.width - oe * 2,
|
|
3599
3599
|
o.y + f.position + h.height / 2,
|
|
3600
3600
|
void 0,
|
|
3601
|
-
|
|
3601
|
+
qt
|
|
3602
3602
|
);
|
|
3603
3603
|
});
|
|
3604
3604
|
return e.stroke(), this.maybeDrawGrid(a, l, (h) => [
|
|
@@ -3607,7 +3607,7 @@ class uu extends et {
|
|
|
3607
3607
|
]), { size: c.width + oe * 2 };
|
|
3608
3608
|
}
|
|
3609
3609
|
}
|
|
3610
|
-
class hu extends
|
|
3610
|
+
class hu extends Je {
|
|
3611
3611
|
render(n) {
|
|
3612
3612
|
const { lower2d: e } = this.renderCtx, { plot: s, position: r } = n, { height: a, width: i } = p.dims(s), o = this.tickFactory.create({ ...n, size: a });
|
|
3613
3613
|
e.beginPath(), this.setColor(this.state.color), this.drawLine(r, g.translateY(r, a));
|
|
@@ -3617,16 +3617,16 @@ class hu extends et {
|
|
|
3617
3617
|
g.translate(r, { x: oe, y: h.position })
|
|
3618
3618
|
), e.fillText(
|
|
3619
3619
|
h.label,
|
|
3620
|
-
r.x + oe +
|
|
3620
|
+
r.x + oe + Dt,
|
|
3621
3621
|
r.y + h.position + c.height / 2,
|
|
3622
3622
|
void 0,
|
|
3623
|
-
|
|
3623
|
+
qt
|
|
3624
3624
|
);
|
|
3625
3625
|
});
|
|
3626
3626
|
return e.stroke(), this.maybeDrawGrid(a, o, (c) => [
|
|
3627
3627
|
g.translateY(r, c.position),
|
|
3628
3628
|
g.translate(r, { x: -i, y: c.position })
|
|
3629
|
-
]), { size: l.width + oe +
|
|
3629
|
+
]), { size: l.width + oe + Dt };
|
|
3630
3630
|
}
|
|
3631
3631
|
}
|
|
3632
3632
|
const qn = Ja.extend({
|
|
@@ -3666,16 +3666,16 @@ class ti extends pe {
|
|
|
3666
3666
|
const a = ge(n), i = ae.construct(s);
|
|
3667
3667
|
(o = this.state).autoBoundPadding ?? (o.autoBoundPadding = i === "x" ? bu : vu), e.core = ou(s, e.render, {
|
|
3668
3668
|
color: a.colors.gray.l10,
|
|
3669
|
-
font:
|
|
3669
|
+
font: it(a, { level: "small", code: !0 }),
|
|
3670
3670
|
gridColor: a.colors.gray.l1,
|
|
3671
3671
|
...this.state
|
|
3672
|
-
}),
|
|
3672
|
+
}), be(n, "layout"), e.updateBounds ?? (e.updateBounds = Ii(
|
|
3673
3673
|
(l) => this.setState((c) => ({ ...c, bounds: l })),
|
|
3674
3674
|
r.milliseconds
|
|
3675
3675
|
));
|
|
3676
3676
|
}
|
|
3677
3677
|
afterDelete(n) {
|
|
3678
|
-
|
|
3678
|
+
be(n, "layout");
|
|
3679
3679
|
}
|
|
3680
3680
|
renderAxis(n, e) {
|
|
3681
3681
|
if (!n.canvases.includes("lower2d")) return;
|
|
@@ -3824,7 +3824,7 @@ class Lr extends Li {
|
|
|
3824
3824
|
return s.bindBuffer(s.ARRAY_BUFFER, a.glBuffer), a;
|
|
3825
3825
|
const i = s.createBuffer();
|
|
3826
3826
|
if (i == null)
|
|
3827
|
-
throw new
|
|
3827
|
+
throw new et("Failed to create buffer from WebGL context");
|
|
3828
3828
|
const o = Ru(this.renderCtx.aspect, e);
|
|
3829
3829
|
s.bindBuffer(s.ARRAY_BUFFER, i), s.bufferData(s.ARRAY_BUFFER, o, s.DYNAMIC_DRAW);
|
|
3830
3830
|
const l = { glBuffer: i, jsBuffer: o };
|
|
@@ -3843,7 +3843,7 @@ class Lr extends Li {
|
|
|
3843
3843
|
return s.vertexAttribPointer(a, 2, s.FLOAT, !1, 0, 0), s.enableVertexAttribArray(a), s.vertexAttribDivisor(a, 1), r.length / 2;
|
|
3844
3844
|
}
|
|
3845
3845
|
}
|
|
3846
|
-
const
|
|
3846
|
+
const Ue = class Ue {
|
|
3847
3847
|
constructor(n) {
|
|
3848
3848
|
// Uint8 hybrid program is used for high performance rendering of uint8 data along
|
|
3849
3849
|
// with float32 timestamp data. It's used as a hot path optimization for common
|
|
@@ -3861,17 +3861,17 @@ const Be = class Be {
|
|
|
3861
3861
|
return n.equals(q.UINT8) ? this.uint8HybridProgram : this.float32Program;
|
|
3862
3862
|
}
|
|
3863
3863
|
static create(n, e) {
|
|
3864
|
-
const s = new
|
|
3865
|
-
return n.set(
|
|
3864
|
+
const s = new Ue(e);
|
|
3865
|
+
return n.set(Ue.CONTEXT_KEY, s), s;
|
|
3866
3866
|
}
|
|
3867
3867
|
static use(n) {
|
|
3868
|
-
const e = n.get(
|
|
3869
|
-
if (e == null) throw new
|
|
3868
|
+
const e = n.get(Ue.CONTEXT_KEY);
|
|
3869
|
+
if (e == null) throw new et("GLProgram not found");
|
|
3870
3870
|
return e;
|
|
3871
3871
|
}
|
|
3872
3872
|
};
|
|
3873
|
-
u(
|
|
3874
|
-
let Tn =
|
|
3873
|
+
u(Ue, "CONTEXT_KEY", "pluto-line-gl-program");
|
|
3874
|
+
let Tn = Ue;
|
|
3875
3875
|
class wn extends $ {
|
|
3876
3876
|
constructor() {
|
|
3877
3877
|
super(...arguments);
|
|
@@ -3882,7 +3882,7 @@ class wn extends $ {
|
|
|
3882
3882
|
const { internal: s } = this, r = {
|
|
3883
3883
|
onStatusChange: An(e)
|
|
3884
3884
|
};
|
|
3885
|
-
s.xTelem = ee(e, this.state.x, s.xTelem, r), s.yTelem = ee(e, this.state.y, s.yTelem, r), s.instrumentation =
|
|
3885
|
+
s.xTelem = ee(e, this.state.x, s.xTelem, r), s.yTelem = ee(e, this.state.y, s.yTelem, r), s.instrumentation = Zt(e, "line"), s.lineCtx = Tn.use(e), s.requestRender = Rs(e), (a = s.stopListeningXTelem) == null || a.call(s), (i = s.stopListeningYTelem) == null || i.call(s), s.stopListeningXTelem = s.xTelem.onChange(() => s.requestRender("data")), s.stopListeningYTelem = s.yTelem.onChange(() => s.requestRender("data")), s.requestRender("layout");
|
|
3886
3886
|
}
|
|
3887
3887
|
afterDelete() {
|
|
3888
3888
|
var s, r, a, i;
|
|
@@ -3999,7 +3999,7 @@ const Pu = 5e3, Ru = (t, n) => Yu(Du(t), n).map(
|
|
|
3999
3999
|
const s = t.timeRange.overlapsWith(n.timeRange, e), r = k.overlapsWith(t.alignmentBounds, n.alignmentBounds);
|
|
4000
4000
|
return s && r;
|
|
4001
4001
|
};
|
|
4002
|
-
class
|
|
4002
|
+
class tt {
|
|
4003
4003
|
constructor(n, e) {
|
|
4004
4004
|
u(this, "canvas");
|
|
4005
4005
|
u(this, "theme");
|
|
@@ -4086,7 +4086,7 @@ class nt {
|
|
|
4086
4086
|
spacing: s = 1,
|
|
4087
4087
|
level: r = "p"
|
|
4088
4088
|
}) {
|
|
4089
|
-
const a =
|
|
4089
|
+
const a = it(this.theme, { level: r }), i = n.map((c) => er(c, a, this.canvas)), o = this.theme.sizes.base * s, l = Math.max(...i.map((c) => c[ae.dimension(e)])) + o;
|
|
4090
4090
|
return [
|
|
4091
4091
|
{
|
|
4092
4092
|
[ae.dimension(ae.swap(e))]: Math.max(
|
|
@@ -4095,7 +4095,7 @@ class nt {
|
|
|
4095
4095
|
[ae.dimension(e)]: l * n.length - o
|
|
4096
4096
|
},
|
|
4097
4097
|
(c) => {
|
|
4098
|
-
const h =
|
|
4098
|
+
const h = it(this.theme, { level: r });
|
|
4099
4099
|
this.canvas.font = h, this.canvas.fillStyle = v.hex(this.theme.colors.text), this.canvas.textBaseline = "top", n.forEach((f, m) => {
|
|
4100
4100
|
this.canvas.fillText(f, c.x, c.y + l * m);
|
|
4101
4101
|
});
|
|
@@ -4146,7 +4146,7 @@ class nt {
|
|
|
4146
4146
|
align: c = "top",
|
|
4147
4147
|
color: h
|
|
4148
4148
|
}) {
|
|
4149
|
-
this.canvas.font =
|
|
4149
|
+
this.canvas.font = it(this.theme, { level: s, weight: r, code: o }), h != null ? this.canvas.fillStyle = v.hex(this.resolveColor(h)) : a == null ? this.canvas.fillStyle = v.hex(this.theme.colors.text) : this.canvas.fillStyle = v.hex(this.theme.colors.gray[`l${a}`]), this.canvas.textAlign = l, this.canvas.textBaseline = c;
|
|
4150
4150
|
let f;
|
|
4151
4151
|
i != null && (f = this.canvas.scissor(p.construct(e, i, 1e3))), this.canvas.fillText(n, e.x, e.y), f == null || f();
|
|
4152
4152
|
}
|
|
@@ -4159,7 +4159,7 @@ const ni = d.object({
|
|
|
4159
4159
|
lineDash: d.number().optional().default(20),
|
|
4160
4160
|
color: v.colorZ
|
|
4161
4161
|
}), Nu = 3;
|
|
4162
|
-
class
|
|
4162
|
+
class Yt extends $ {
|
|
4163
4163
|
constructor() {
|
|
4164
4164
|
super(...arguments);
|
|
4165
4165
|
u(this, "schema", ni);
|
|
@@ -4168,10 +4168,10 @@ class Ot extends $ {
|
|
|
4168
4168
|
afterUpdate(e) {
|
|
4169
4169
|
this.internal.renderCtx = X.use(e);
|
|
4170
4170
|
const s = ge(e);
|
|
4171
|
-
this.internal.draw = new
|
|
4171
|
+
this.internal.draw = new tt(this.internal.renderCtx.upper2d, s), be(e, "tool");
|
|
4172
4172
|
}
|
|
4173
4173
|
afterDelete(e) {
|
|
4174
|
-
|
|
4174
|
+
be(e, "tool");
|
|
4175
4175
|
}
|
|
4176
4176
|
updatePositions({ decimalToDataScale: e, plot: s }) {
|
|
4177
4177
|
const r = this.state.dragging, a = this.prevState.dragging && !r;
|
|
@@ -4213,13 +4213,13 @@ class Ot extends $ {
|
|
|
4213
4213
|
o.closePath(), o.stroke();
|
|
4214
4214
|
}
|
|
4215
4215
|
}
|
|
4216
|
-
u(
|
|
4216
|
+
u(Yt, "TYPE", "Rule");
|
|
4217
4217
|
const Zu = {
|
|
4218
|
-
[
|
|
4218
|
+
[Yt.TYPE]: Yt
|
|
4219
4219
|
}, Uh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4220
4220
|
__proto__: null,
|
|
4221
4221
|
REGISTRY: Zu,
|
|
4222
|
-
Rule:
|
|
4222
|
+
Rule: Yt,
|
|
4223
4223
|
ruleStateZ: ni
|
|
4224
4224
|
}, Symbol.toStringTag, { value: "Module" })), Bh = qn.extend({
|
|
4225
4225
|
location: re.x.optional().default("left")
|
|
@@ -4290,7 +4290,7 @@ class Sn extends ti {
|
|
|
4290
4290
|
return this.childrenOfType(wn.TYPE);
|
|
4291
4291
|
}
|
|
4292
4292
|
get rules() {
|
|
4293
|
-
return this.childrenOfType(
|
|
4293
|
+
return this.childrenOfType(Yt.TYPE);
|
|
4294
4294
|
}
|
|
4295
4295
|
}
|
|
4296
4296
|
u(Sn, "TYPE", "YAxis");
|
|
@@ -4301,7 +4301,7 @@ class os extends $ {
|
|
|
4301
4301
|
u(this, "schema", Bu);
|
|
4302
4302
|
}
|
|
4303
4303
|
afterUpdate(e) {
|
|
4304
|
-
this.internal.render = X.use(e), this.internal.draw = new
|
|
4304
|
+
this.internal.render = X.use(e), this.internal.draw = new tt(this.internal.render.upper2d, ge(e));
|
|
4305
4305
|
}
|
|
4306
4306
|
}
|
|
4307
4307
|
u(os, "TYPE", "range-annotation");
|
|
@@ -4320,10 +4320,10 @@ class Cn extends $ {
|
|
|
4320
4320
|
}
|
|
4321
4321
|
afterUpdate(e) {
|
|
4322
4322
|
const { internal: s } = this;
|
|
4323
|
-
s.render = X.use(e), s.draw = new
|
|
4324
|
-
const r =
|
|
4323
|
+
s.render = X.use(e), s.draw = new tt(s.render.upper2d, ge(e));
|
|
4324
|
+
const r = ve(e);
|
|
4325
4325
|
s.requestRender = Rs(e), s.ranges ?? (s.ranges = /* @__PURE__ */ new Map());
|
|
4326
|
-
const a =
|
|
4326
|
+
const a = Ut(e);
|
|
4327
4327
|
a != null && (s.client = a, s.tracker == null && r(async () => {
|
|
4328
4328
|
s.tracker = await a.ranges.openTracker(), s.tracker.onChange((i) => {
|
|
4329
4329
|
i.forEach((o) => {
|
|
@@ -4477,17 +4477,17 @@ const Fu = g.construct(12), qu = 3, ju = 14, Hu = g.construct(6), si = d.object(
|
|
|
4477
4477
|
ruleStrokeWidth: d.number().optional().default(1),
|
|
4478
4478
|
ruleStrokeDash: d.number().default(0)
|
|
4479
4479
|
});
|
|
4480
|
-
class
|
|
4480
|
+
class Ot extends $ {
|
|
4481
4481
|
constructor() {
|
|
4482
4482
|
super(...arguments);
|
|
4483
4483
|
u(this, "schema", si);
|
|
4484
4484
|
}
|
|
4485
4485
|
afterUpdate(e) {
|
|
4486
4486
|
const s = ge(e);
|
|
4487
|
-
v.isZero(this.state.textColor) && (this.state.textColor = s.colors.text), v.isZero(this.state.backgroundColor) && (this.state.backgroundColor = s.colors.gray.l1), v.isZero(this.state.borderColor) && (this.state.borderColor = s.colors.border), v.isZero(this.state.ruleColor) && (this.state.ruleColor = s.colors.gray.l7), this.internal.dotColor = s.colors.text, this.internal.dotColorContrast = s.colors.textInverted, this.internal.render = X.use(e), this.internal.draw = new
|
|
4487
|
+
v.isZero(this.state.textColor) && (this.state.textColor = s.colors.text), v.isZero(this.state.backgroundColor) && (this.state.backgroundColor = s.colors.gray.l1), v.isZero(this.state.borderColor) && (this.state.borderColor = s.colors.border), v.isZero(this.state.ruleColor) && (this.state.ruleColor = s.colors.gray.l7), this.internal.dotColor = s.colors.text, this.internal.dotColorContrast = s.colors.textInverted, this.internal.render = X.use(e), this.internal.draw = new tt(this.internal.render.upper2d, s), be(e, "tool");
|
|
4488
4488
|
}
|
|
4489
4489
|
afterDelete(e) {
|
|
4490
|
-
|
|
4490
|
+
be(e, "tool");
|
|
4491
4491
|
}
|
|
4492
4492
|
render(e) {
|
|
4493
4493
|
if (this.deleted || this.state.position == null) return;
|
|
@@ -4556,13 +4556,13 @@ class Lt extends $ {
|
|
|
4556
4556
|
});
|
|
4557
4557
|
}
|
|
4558
4558
|
}
|
|
4559
|
-
u(
|
|
4559
|
+
u(Ot, "TYPE", "tooltip");
|
|
4560
4560
|
const zu = {
|
|
4561
|
-
[
|
|
4561
|
+
[Ot.TYPE]: Ot
|
|
4562
4562
|
}, Fh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4563
4563
|
__proto__: null,
|
|
4564
4564
|
REGISTRY: zu,
|
|
4565
|
-
Tooltip:
|
|
4565
|
+
Tooltip: Ot,
|
|
4566
4566
|
tooltipStateZ: si
|
|
4567
4567
|
}, Symbol.toStringTag, { value: "Module" })), ri = d.object({
|
|
4568
4568
|
one: g.xy.nullable(),
|
|
@@ -4579,17 +4579,17 @@ const zu = {
|
|
|
4579
4579
|
strokeWidth: d.number().optional().default(1),
|
|
4580
4580
|
strokeDash: d.number().optional().default(2)
|
|
4581
4581
|
});
|
|
4582
|
-
class
|
|
4582
|
+
class Lt extends $ {
|
|
4583
4583
|
constructor() {
|
|
4584
4584
|
super(...arguments);
|
|
4585
4585
|
u(this, "schema", ri);
|
|
4586
4586
|
}
|
|
4587
4587
|
afterUpdate(e) {
|
|
4588
4588
|
const s = X.use(e);
|
|
4589
|
-
this.internal.theme = ge(e), this.internal.renderCtx = s, this.internal.draw = new
|
|
4589
|
+
this.internal.theme = ge(e), this.internal.renderCtx = s, this.internal.draw = new tt(s.upper2d, this.internal.theme), be(e, "tool");
|
|
4590
4590
|
}
|
|
4591
4591
|
afterDelete(e) {
|
|
4592
|
-
|
|
4592
|
+
be(e, "layout");
|
|
4593
4593
|
}
|
|
4594
4594
|
get verticalLineColor() {
|
|
4595
4595
|
return v.isColor(this.state.color) ? v.isZero(this.state.color) ? this.internal.theme.colors.gray.l8 : this.state.color : v.isZero(this.state.color.verticalLine) ? this.internal.theme.colors.gray.l8 : this.state.color.verticalLine;
|
|
@@ -4701,12 +4701,12 @@ class At extends $ {
|
|
|
4701
4701
|
}), i.circle({ fill: v.construct("#ffffff"), radius: 2, position: f });
|
|
4702
4702
|
}
|
|
4703
4703
|
}
|
|
4704
|
-
u(
|
|
4704
|
+
u(Lt, "TYPE", "measure");
|
|
4705
4705
|
const Wu = {
|
|
4706
|
-
[
|
|
4706
|
+
[Lt.TYPE]: Lt
|
|
4707
4707
|
}, qh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4708
4708
|
__proto__: null,
|
|
4709
|
-
Measure:
|
|
4709
|
+
Measure: Lt,
|
|
4710
4710
|
REGISTRY: Wu,
|
|
4711
4711
|
measureStateZ: ri
|
|
4712
4712
|
}, Symbol.toStringTag, { value: "Module" })), Gu = d.object({
|
|
@@ -4726,7 +4726,7 @@ class ls extends pe {
|
|
|
4726
4726
|
u(this, "schema", Gu);
|
|
4727
4727
|
}
|
|
4728
4728
|
afterUpdate(e) {
|
|
4729
|
-
this.internal.instrumentation =
|
|
4729
|
+
this.internal.instrumentation = Zt(e, "lineplot"), this.internal.aggregate = An(e), this.internal.renderCtx = X.use(e), Ci(e, () => null), Ps(e, (s) => {
|
|
4730
4730
|
this.state.visible && this.requestRender("low", s);
|
|
4731
4731
|
}), !(!this.state.visible && !this.prevState.visible) && this.requestRender("high", "layout");
|
|
4732
4732
|
}
|
|
@@ -4753,10 +4753,10 @@ class ls extends pe {
|
|
|
4753
4753
|
return this.childrenOfType(En.TYPE);
|
|
4754
4754
|
}
|
|
4755
4755
|
get tooltips() {
|
|
4756
|
-
return this.childrenOfType(
|
|
4756
|
+
return this.childrenOfType(Ot.TYPE);
|
|
4757
4757
|
}
|
|
4758
4758
|
get measures() {
|
|
4759
|
-
return this.childrenOfType(
|
|
4759
|
+
return this.childrenOfType(Lt.TYPE);
|
|
4760
4760
|
}
|
|
4761
4761
|
get bounds() {
|
|
4762
4762
|
return this.childrenOfType(hn.TYPE);
|
|
@@ -4881,7 +4881,7 @@ class kn extends pe {
|
|
|
4881
4881
|
if (!this.state.bootstrap) return;
|
|
4882
4882
|
const { glCanvas: s, lower2dCanvas: r, upper2dCanvas: a, os: i } = this.state;
|
|
4883
4883
|
if (s == null || r == null || a == null)
|
|
4884
|
-
throw new
|
|
4884
|
+
throw new et(
|
|
4885
4885
|
"[vis.worker.Canvas] - expected render context bootstrap to include all canvases"
|
|
4886
4886
|
);
|
|
4887
4887
|
this.renderCtx = X.create(
|
|
@@ -4924,7 +4924,7 @@ class cs extends $ {
|
|
|
4924
4924
|
afterUpdate(e) {
|
|
4925
4925
|
var a, i, o;
|
|
4926
4926
|
const { sink: s, source: r } = this.state;
|
|
4927
|
-
this.internal.source = ee(e, r, this.internal.source), this.internal.sink =
|
|
4927
|
+
this.internal.source = ee(e, r, this.internal.source), this.internal.sink = _t(e, s, this.internal.sink), this.state.triggered && !this.prevState.triggered && this.internal.sink.set(
|
|
4928
4928
|
((a = this.state.status.data) == null ? void 0 : a.authority) !== Ss.ABSOLUTE_AUTHORITY
|
|
4929
4929
|
), this.updateEnabledState(), (o = (i = this.internal).stopListening) == null || o.call(i), this.internal.stopListening = this.internal.source.onChange(
|
|
4930
4930
|
() => this.updateEnabledState()
|
|
@@ -4945,7 +4945,7 @@ u(cs, "TYPE", "Chip");
|
|
|
4945
4945
|
const eh = d.object({}), Ir = "control-state-provider", th = bs.stateZ.extend({
|
|
4946
4946
|
subjectColor: v.colorZ
|
|
4947
4947
|
});
|
|
4948
|
-
class
|
|
4948
|
+
class At extends pe {
|
|
4949
4949
|
constructor() {
|
|
4950
4950
|
super(...arguments);
|
|
4951
4951
|
u(this, "schema", eh);
|
|
@@ -4969,12 +4969,12 @@ class It extends pe {
|
|
|
4969
4969
|
}
|
|
4970
4970
|
afterUpdate(e) {
|
|
4971
4971
|
const { internal: s } = this;
|
|
4972
|
-
s.instrumentation =
|
|
4972
|
+
s.instrumentation = Zt(e, "control-state");
|
|
4973
4973
|
const r = ge(e);
|
|
4974
4974
|
s.palette = r.colors.visualization.palettes.default, s.defaultColor = r.colors.gray.l8;
|
|
4975
|
-
const a =
|
|
4975
|
+
const a = Ut(e);
|
|
4976
4976
|
if (s.client != null && a === s.client) return;
|
|
4977
|
-
s.client = a, e.set(Ir, this),
|
|
4977
|
+
s.client = a, e.set(Ir, this), ve(e)(async () => {
|
|
4978
4978
|
await this.maybeCloseTracker(), s.client != null && (this.internal.instrumentation.L.debug("starting state tracker"), await this.openTracker(s.client));
|
|
4979
4979
|
});
|
|
4980
4980
|
}
|
|
@@ -4983,7 +4983,7 @@ class It extends pe {
|
|
|
4983
4983
|
this.tracker != null && (this.internal.instrumentation.L.debug("stopping state tracker"), (e = this.disconnectTrackerChange) == null || e.call(this), await this.tracker.close(), this.tracker = void 0);
|
|
4984
4984
|
}
|
|
4985
4985
|
afterDelete(e) {
|
|
4986
|
-
|
|
4986
|
+
ve(e)(async () => {
|
|
4987
4987
|
await this.maybeCloseTracker();
|
|
4988
4988
|
});
|
|
4989
4989
|
}
|
|
@@ -5013,7 +5013,7 @@ class It extends pe {
|
|
|
5013
5013
|
}
|
|
5014
5014
|
(a = this.disconnectTrackerChange) == null || a.call(this), this.disconnectTrackerChange = this.tracker.onChange((i) => {
|
|
5015
5015
|
if (r.L.debug("transfer", { transfers: i.map((o) => bs.transferString(o)) }), this.tracker == null)
|
|
5016
|
-
throw new
|
|
5016
|
+
throw new et("tracker is null inside it's own onChange callback!");
|
|
5017
5017
|
this.updateColors(this.tracker), this.obs.notify(i);
|
|
5018
5018
|
});
|
|
5019
5019
|
}
|
|
@@ -5028,7 +5028,7 @@ class It extends pe {
|
|
|
5028
5028
|
});
|
|
5029
5029
|
}
|
|
5030
5030
|
}
|
|
5031
|
-
u(
|
|
5031
|
+
u(At, "TYPE", "StateProvider");
|
|
5032
5032
|
const nh = ["acquired", "released", "overridden", "failed"], sh = d.enum(nh), rh = d.object({
|
|
5033
5033
|
name: d.string(),
|
|
5034
5034
|
authority: d.number().default(0),
|
|
@@ -5045,14 +5045,14 @@ class us extends pe {
|
|
|
5045
5045
|
}
|
|
5046
5046
|
afterUpdate(e) {
|
|
5047
5047
|
const { internal: s } = this;
|
|
5048
|
-
s.instrumentation =
|
|
5049
|
-
const r =
|
|
5050
|
-
|
|
5048
|
+
s.instrumentation = Zt(e), (s.prevTrigger == null || Math.abs(this.state.acquireTrigger - s.prevTrigger) > 1) && (s.prevTrigger = this.state.acquireTrigger);
|
|
5049
|
+
const r = Ut(e), a = At.use(e);
|
|
5050
|
+
ve(e)(async () => {
|
|
5051
5051
|
s.client = r, s.client == null && await this.release(), s.stateProv = a, s.telemCtx = Pa(e, this, s.telemCtx), s.addStatus = An(e), this.state.acquireTrigger > s.prevTrigger ? await this.acquire() : this.state.acquireTrigger < s.prevTrigger && await this.release();
|
|
5052
5052
|
});
|
|
5053
5053
|
}
|
|
5054
5054
|
afterDelete(e) {
|
|
5055
|
-
|
|
5055
|
+
ve(e)(async () => {
|
|
5056
5056
|
await this.release();
|
|
5057
5057
|
});
|
|
5058
5058
|
}
|
|
@@ -5335,7 +5335,7 @@ class ds extends $ {
|
|
|
5335
5335
|
afterUpdate(e) {
|
|
5336
5336
|
var o;
|
|
5337
5337
|
const { internal: s } = this;
|
|
5338
|
-
s.stateProv =
|
|
5338
|
+
s.stateProv = At.use(e);
|
|
5339
5339
|
const r = this.state.needsControlOf;
|
|
5340
5340
|
(o = s.disconnectStateProv) == null || o.call(s);
|
|
5341
5341
|
const a = Ss.filterTransfersByChannelKey(...r), i = s.stateProv.get(r);
|
|
@@ -5356,7 +5356,7 @@ class ds extends $ {
|
|
|
5356
5356
|
u(ds, "TYPE", "Legend");
|
|
5357
5357
|
const Xh = {
|
|
5358
5358
|
[us.TYPE]: us,
|
|
5359
|
-
[
|
|
5359
|
+
[At.TYPE]: At,
|
|
5360
5360
|
[hs.TYPE]: hs,
|
|
5361
5361
|
[cs.TYPE]: cs,
|
|
5362
5362
|
[ds.TYPE]: ds
|
|
@@ -5364,14 +5364,14 @@ const Xh = {
|
|
|
5364
5364
|
region: p.box,
|
|
5365
5365
|
clearOverScan: g.crudeZ.optional().default(0),
|
|
5366
5366
|
visible: d.boolean().optional().default(!0)
|
|
5367
|
-
}), Nr = ["upper2d", "lower2d"],
|
|
5367
|
+
}), Nr = ["upper2d", "lower2d"], Be = class Be extends pe {
|
|
5368
5368
|
constructor() {
|
|
5369
5369
|
super(...arguments);
|
|
5370
|
-
u(this, "schema",
|
|
5370
|
+
u(this, "schema", Be.stateZ);
|
|
5371
5371
|
}
|
|
5372
5372
|
afterUpdate(e) {
|
|
5373
5373
|
const { internal: s } = this;
|
|
5374
|
-
s.renderCtx = X.use(e), s.handleError =
|
|
5374
|
+
s.renderCtx = X.use(e), s.handleError = ve(e), Ps(e, () => {
|
|
5375
5375
|
this.state.visible && this.requestRender("low");
|
|
5376
5376
|
}), !(!this.state.visible && !this.prevState.visible) && this.requestRender("high");
|
|
5377
5377
|
}
|
|
@@ -5400,15 +5400,15 @@ const Xh = {
|
|
|
5400
5400
|
requestRender(e) {
|
|
5401
5401
|
const { renderCtx: s } = this.internal;
|
|
5402
5402
|
s.loop.set({
|
|
5403
|
-
key: `${
|
|
5403
|
+
key: `${Be.TYPE}-${this.key}`,
|
|
5404
5404
|
render: this.render.bind(this),
|
|
5405
5405
|
priority: e,
|
|
5406
5406
|
canvases: Nr
|
|
5407
5407
|
});
|
|
5408
5408
|
}
|
|
5409
5409
|
};
|
|
5410
|
-
u(
|
|
5411
|
-
let Dn =
|
|
5410
|
+
u(Be, "TYPE", "Table"), u(Be, "stateZ", uh);
|
|
5411
|
+
let Dn = Be;
|
|
5412
5412
|
const Vh = {
|
|
5413
5413
|
[Dn.TYPE]: Dn
|
|
5414
5414
|
}, hh = d.object({
|
|
@@ -5423,10 +5423,10 @@ class fs extends $ {
|
|
|
5423
5423
|
afterUpdate(e) {
|
|
5424
5424
|
var i;
|
|
5425
5425
|
const { sink: s } = this.state;
|
|
5426
|
-
(i = this.internal).prevTrigger ?? (i.prevTrigger = this.state.trigger), this.internal.sink =
|
|
5426
|
+
(i = this.internal).prevTrigger ?? (i.prevTrigger = this.state.trigger), this.internal.sink = _t(e, s, this.internal.sink);
|
|
5427
5427
|
const r = this.internal.prevTrigger;
|
|
5428
5428
|
if (this.internal.prevTrigger = this.state.trigger, this.state.trigger <= r) return;
|
|
5429
|
-
|
|
5429
|
+
ve(e)(async () => {
|
|
5430
5430
|
this.internal.sink.set(!0);
|
|
5431
5431
|
});
|
|
5432
5432
|
}
|
|
@@ -5444,10 +5444,10 @@ const Kh = {
|
|
|
5444
5444
|
region: p.box,
|
|
5445
5445
|
clearOverScan: g.crudeZ.optional().default(10),
|
|
5446
5446
|
visible: d.boolean().optional().default(!0)
|
|
5447
|
-
}), Xt = ["upper2d", "lower2d"],
|
|
5447
|
+
}), Xt = ["upper2d", "lower2d"], _e = class _e extends pe {
|
|
5448
5448
|
constructor() {
|
|
5449
5449
|
super(...arguments);
|
|
5450
|
-
u(this, "schema",
|
|
5450
|
+
u(this, "schema", _e.stateZ);
|
|
5451
5451
|
}
|
|
5452
5452
|
afterUpdate(e) {
|
|
5453
5453
|
this.internal.renderCtx = X.use(e), this.internal.addStatus = An(e), Ps(e, () => {
|
|
@@ -5484,20 +5484,20 @@ const Kh = {
|
|
|
5484
5484
|
requestRender(e) {
|
|
5485
5485
|
const { renderCtx: s } = this.internal;
|
|
5486
5486
|
s.loop.set({
|
|
5487
|
-
key: `${
|
|
5487
|
+
key: `${_e.TYPE}-${this.key}`,
|
|
5488
5488
|
render: this.render.bind(this),
|
|
5489
5489
|
priority: e,
|
|
5490
5490
|
canvases: Xt
|
|
5491
5491
|
});
|
|
5492
5492
|
}
|
|
5493
5493
|
};
|
|
5494
|
-
u(
|
|
5495
|
-
let
|
|
5494
|
+
u(_e, "TYPE", "Diagram"), u(_e, "stateZ", ii);
|
|
5495
|
+
let It = _e;
|
|
5496
5496
|
const dh = {
|
|
5497
|
-
[
|
|
5497
|
+
[It.TYPE]: It
|
|
5498
5498
|
}, Qh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5499
5499
|
__proto__: null,
|
|
5500
|
-
Diagram:
|
|
5500
|
+
Diagram: It,
|
|
5501
5501
|
REGISTRY: dh,
|
|
5502
5502
|
diagramStateZ: ii
|
|
5503
5503
|
}, Symbol.toStringTag, { value: "Module" })), fh = d.object({
|
|
@@ -5512,7 +5512,7 @@ class ps extends $ {
|
|
|
5512
5512
|
afterUpdate(e) {
|
|
5513
5513
|
this.internal.addStatus = _r(e);
|
|
5514
5514
|
const { source: s } = this.state, { internal: r } = this;
|
|
5515
|
-
this.internal.source = ee(e, s, this.internal.source),
|
|
5515
|
+
this.internal.source = ee(e, s, this.internal.source), ve(e)(async () => {
|
|
5516
5516
|
var i;
|
|
5517
5517
|
await this.updateEnabledState(), (i = r.stopListening) == null || i.call(r), r.stopListening = r.source.onChange(() => {
|
|
5518
5518
|
this.updateEnabledState().catch(this.reportError.bind(this));
|
|
@@ -5546,14 +5546,14 @@ const Jh = { [ps.TYPE]: ps }, ph = d.object({
|
|
|
5546
5546
|
font: jr.optional().default("p"),
|
|
5547
5547
|
color: v.colorZ.optional().default(v.ZERO),
|
|
5548
5548
|
overshoot: g.xy.optional().default({ x: 0, y: 0 })
|
|
5549
|
-
}), gh = 0.98,
|
|
5549
|
+
}), gh = 0.98, at = "lower2d", mh = {
|
|
5550
5550
|
offset: 0n,
|
|
5551
5551
|
offsetRef: 0n,
|
|
5552
5552
|
scrollRef: 0
|
|
5553
|
-
},
|
|
5553
|
+
}, gt = class gt extends $ {
|
|
5554
5554
|
constructor() {
|
|
5555
5555
|
super(...arguments);
|
|
5556
|
-
u(this, "schema",
|
|
5556
|
+
u(this, "schema", gt.z);
|
|
5557
5557
|
u(this, "values", new F([]));
|
|
5558
5558
|
u(this, "scrollState", mh);
|
|
5559
5559
|
}
|
|
@@ -5589,7 +5589,7 @@ const Jh = { [ps.TYPE]: ps }, ph = d.object({
|
|
|
5589
5589
|
afterDelete() {
|
|
5590
5590
|
var r;
|
|
5591
5591
|
const { telem: e, render: s } = this.internal;
|
|
5592
|
-
(r = e.cleanup) == null || r.call(e), s.erase(p.construct(this.state.region), g.ZERO,
|
|
5592
|
+
(r = e.cleanup) == null || r.call(e), s.erase(p.construct(this.state.region), g.ZERO, at);
|
|
5593
5593
|
}
|
|
5594
5594
|
async requestRender() {
|
|
5595
5595
|
const { render: e } = this.internal;
|
|
@@ -5597,7 +5597,7 @@ const Jh = { [ps.TYPE]: ps }, ph = d.object({
|
|
|
5597
5597
|
key: `${this.type}-${this.key}`,
|
|
5598
5598
|
render: () => this.render(),
|
|
5599
5599
|
priority: "high",
|
|
5600
|
-
canvases: [
|
|
5600
|
+
canvases: [at]
|
|
5601
5601
|
});
|
|
5602
5602
|
}
|
|
5603
5603
|
get lineHeight() {
|
|
@@ -5615,7 +5615,7 @@ const Jh = { [ps.TYPE]: ps }, ph = d.object({
|
|
|
5615
5615
|
render() {
|
|
5616
5616
|
const { render: e } = this.internal, s = this.state.region;
|
|
5617
5617
|
if (p.areaIsZero(s)) return;
|
|
5618
|
-
if (!this.state.visible) return () => e.erase(s, g.ZERO,
|
|
5618
|
+
if (!this.state.visible) return () => e.erase(s, g.ZERO, at);
|
|
5619
5619
|
let r;
|
|
5620
5620
|
if (!this.state.scrolling)
|
|
5621
5621
|
r = this.values.subIterator(
|
|
@@ -5629,7 +5629,7 @@ const Jh = { [ps.TYPE]: ps }, ph = d.object({
|
|
|
5629
5629
|
);
|
|
5630
5630
|
r = this.values.subAlignmentSpanIterator(h, this.visibleLineCount);
|
|
5631
5631
|
}
|
|
5632
|
-
const a = this.state.region, i = e[
|
|
5632
|
+
const a = this.state.region, i = e[at], o = new tt(i, this.internal.theme), l = e.scissor(a, g.ZERO, [at]);
|
|
5633
5633
|
this.renderElements(o, r), this.renderScrollbar(o), l();
|
|
5634
5634
|
const c = p.copy(this.state.region);
|
|
5635
5635
|
return ({ canvases: h }) => e.erase(c, this.state.overshoot, ...h);
|
|
@@ -5667,8 +5667,8 @@ const Jh = { [ps.TYPE]: ps }, ph = d.object({
|
|
|
5667
5667
|
}
|
|
5668
5668
|
}
|
|
5669
5669
|
};
|
|
5670
|
-
u(
|
|
5671
|
-
let Yn =
|
|
5670
|
+
u(gt, "TYPE", "log"), u(gt, "z", ph);
|
|
5671
|
+
let Yn = gt;
|
|
5672
5672
|
const ed = { [Yn.TYPE]: Yn }, yh = d.object({
|
|
5673
5673
|
fps: d.number()
|
|
5674
5674
|
});
|
|
@@ -5708,7 +5708,7 @@ class ms extends $ {
|
|
|
5708
5708
|
const { sink: s, source: r, trigger: a, command: i } = this.state, { internal: o } = this;
|
|
5709
5709
|
o.prevTrigger ?? (o.prevTrigger = a), (async () => {
|
|
5710
5710
|
var c;
|
|
5711
|
-
this.internal.source = ee(e, r, this.internal.source), o.sink =
|
|
5711
|
+
this.internal.source = ee(e, r, this.internal.source), o.sink = _t(e, s, o.sink);
|
|
5712
5712
|
const l = o.prevTrigger;
|
|
5713
5713
|
o.prevTrigger = a, a > l && i != null && this.internal.sink.set(i), this.updateValue(), (c = o.stopListening) == null || c.call(o), o.stopListening = o.source.onChange(() => this.updateValue());
|
|
5714
5714
|
})();
|
|
@@ -5739,7 +5739,7 @@ class ys extends $ {
|
|
|
5739
5739
|
var c;
|
|
5740
5740
|
this.internal.addStatus = _r(e);
|
|
5741
5741
|
const { sink: s, source: r, triggered: a, enabled: i } = this.state, { triggered: o } = this.prevState, { internal: l } = this;
|
|
5742
|
-
l.source = ee(e, r, l.source), l.sink =
|
|
5742
|
+
l.source = ee(e, r, l.source), l.sink = _t(e, s, l.sink), a && !o && l.sink.set(!i), this.updateEnabledState(), (c = l.stopListening) == null || c.call(l), l.stopListening = l.source.onChange(() => this.updateEnabledState());
|
|
5743
5743
|
}
|
|
5744
5744
|
reportError(e) {
|
|
5745
5745
|
this.internal.addStatus({
|
|
@@ -5769,15 +5769,15 @@ const sd = { [ys.TYPE]: ys }, Qn = { useAtlas: !0 }, xh = d.object({
|
|
|
5769
5769
|
width: d.number().optional(),
|
|
5770
5770
|
notation: ws.notationZ.optional().default("standard"),
|
|
5771
5771
|
location: re.xy.optional().default({ x: "left", y: "center" })
|
|
5772
|
-
}), Th = ["upper2d", "lower2d"],
|
|
5772
|
+
}), Th = ["upper2d", "lower2d"], mt = class mt extends $ {
|
|
5773
5773
|
constructor() {
|
|
5774
5774
|
super(...arguments);
|
|
5775
|
-
u(this, "schema",
|
|
5775
|
+
u(this, "schema", mt.z);
|
|
5776
5776
|
}
|
|
5777
5777
|
afterUpdate(e) {
|
|
5778
5778
|
var r, a;
|
|
5779
5779
|
const { internal: s } = this;
|
|
5780
|
-
s.renderCtx = X.use(e), s.theme = ge(e), v.isZero(this.state.color) ? s.textColor = s.theme.colors.gray.l10 : s.textColor = this.state.color, s.telem = ee(e, this.state.telem, s.telem), (r = s.stopListening) == null || r.call(s), s.stopListening = s.telem.onChange(() => this.requestRender()), s.fontString =
|
|
5780
|
+
s.renderCtx = X.use(e), s.theme = ge(e), v.isZero(this.state.color) ? s.textColor = s.theme.colors.gray.l10 : s.textColor = this.state.color, s.telem = ee(e, this.state.telem, s.telem), (r = s.stopListening) == null || r.call(s), s.stopListening = s.telem.onChange(() => this.requestRender()), s.fontString = it(s.theme, { level: this.state.level, code: !0 }), s.backgroundTelem = ee(
|
|
5781
5781
|
e,
|
|
5782
5782
|
this.state.backgroundTelem,
|
|
5783
5783
|
s.backgroundTelem
|
|
@@ -5815,12 +5815,15 @@ const sd = { [ys.TYPE]: ys }, Qn = { useAtlas: !0 }, xh = d.object({
|
|
|
5815
5815
|
const C = g.translate(h, A);
|
|
5816
5816
|
let U = !0;
|
|
5817
5817
|
if (this.state.backgroundTelem.type != Nn.type) {
|
|
5818
|
-
const te = a.value()
|
|
5819
|
-
if (
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5818
|
+
const te = a.value();
|
|
5819
|
+
if (!v.isZero(te)) {
|
|
5820
|
+
U = !1, b.fillStyle = v.hex(te), b.fillRect(...g.couple(h), f, m);
|
|
5821
|
+
const Me = v.pickByContrast(
|
|
5822
|
+
te,
|
|
5823
|
+
w.colors.gray.l0,
|
|
5824
|
+
w.colors.gray.l11
|
|
5823
5825
|
);
|
|
5826
|
+
b.fillStyle = v.hex(Me);
|
|
5824
5827
|
}
|
|
5825
5828
|
}
|
|
5826
5829
|
U && (b.fillStyle = v.hex(this.internal.textColor)), T && b.fillText(
|
|
@@ -5831,17 +5834,17 @@ const sd = { [ys.TYPE]: ys }, Qn = { useAtlas: !0 }, xh = d.object({
|
|
|
5831
5834
|
), b.fillText(E, ...g.couple(C), void 0, Qn);
|
|
5832
5835
|
}
|
|
5833
5836
|
};
|
|
5834
|
-
u(
|
|
5835
|
-
let
|
|
5837
|
+
u(mt, "TYPE", "value"), u(mt, "z", xh);
|
|
5838
|
+
let Nt = mt;
|
|
5836
5839
|
const wh = {
|
|
5837
|
-
[
|
|
5840
|
+
[Nt.TYPE]: Nt
|
|
5838
5841
|
}, rd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5839
5842
|
__proto__: null,
|
|
5840
5843
|
REGISTRY: wh,
|
|
5841
|
-
Value:
|
|
5844
|
+
Value: Nt
|
|
5842
5845
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5843
5846
|
export {
|
|
5844
|
-
|
|
5847
|
+
Ie as $,
|
|
5845
5848
|
Ah as A,
|
|
5846
5849
|
hn as B,
|
|
5847
5850
|
Nh as C,
|
|
@@ -5852,7 +5855,7 @@ export {
|
|
|
5852
5855
|
Uh as H,
|
|
5853
5856
|
rd as I,
|
|
5854
5857
|
gn as J,
|
|
5855
|
-
|
|
5858
|
+
Je as K,
|
|
5856
5859
|
ls as L,
|
|
5857
5860
|
lu as M,
|
|
5858
5861
|
hu as N,
|
|
@@ -5877,7 +5880,7 @@ export {
|
|
|
5877
5880
|
Su as a3,
|
|
5878
5881
|
wn as a4,
|
|
5879
5882
|
si as a5,
|
|
5880
|
-
|
|
5883
|
+
Ot as a6,
|
|
5881
5884
|
Bu as a7,
|
|
5882
5885
|
os as a8,
|
|
5883
5886
|
$u as a9,
|
|
@@ -5895,27 +5898,27 @@ export {
|
|
|
5895
5898
|
Gi as aL,
|
|
5896
5899
|
po as aM,
|
|
5897
5900
|
fo as aN,
|
|
5898
|
-
|
|
5901
|
+
Nt as aO,
|
|
5899
5902
|
na as aP,
|
|
5900
5903
|
go as aQ,
|
|
5901
5904
|
mo as aR,
|
|
5902
5905
|
hr as aS,
|
|
5903
5906
|
pl as aT,
|
|
5904
|
-
|
|
5907
|
+
Mt as aU,
|
|
5905
5908
|
ii as aV,
|
|
5906
|
-
|
|
5909
|
+
It as aW,
|
|
5907
5910
|
ph as aX,
|
|
5908
5911
|
Yn as aY,
|
|
5909
5912
|
yh as aZ,
|
|
5910
5913
|
gs as a_,
|
|
5911
5914
|
Cn as aa,
|
|
5912
5915
|
ri as ab,
|
|
5913
|
-
|
|
5916
|
+
Lt as ac,
|
|
5914
5917
|
ni as ad,
|
|
5915
|
-
|
|
5918
|
+
Yt as ae,
|
|
5916
5919
|
Ji as af,
|
|
5917
5920
|
eo as ag,
|
|
5918
|
-
|
|
5921
|
+
kt as ah,
|
|
5919
5922
|
Oa as ai,
|
|
5920
5923
|
Rn as aj,
|
|
5921
5924
|
Mn as ak,
|
|
@@ -5925,7 +5928,7 @@ export {
|
|
|
5925
5928
|
ds as ao,
|
|
5926
5929
|
nh as ap,
|
|
5927
5930
|
Pn as aq,
|
|
5928
|
-
|
|
5931
|
+
At as ar,
|
|
5929
5932
|
Wh as as,
|
|
5930
5933
|
ih as at,
|
|
5931
5934
|
Gh as au,
|
|
@@ -5962,7 +5965,7 @@ export {
|
|
|
5962
5965
|
_h as o,
|
|
5963
5966
|
Wu as p,
|
|
5964
5967
|
Zh as q,
|
|
5965
|
-
|
|
5968
|
+
be as r,
|
|
5966
5969
|
Jh as s,
|
|
5967
5970
|
dh as t,
|
|
5968
5971
|
$i as u,
|