@genome-spy/app 0.85.0 → 0.87.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -0
- package/dist/{agentApi-Cz0hCnVp.js → agentApi-BZ1JCo1N.js} +7174 -8484
- package/dist/agentApi.es.js +3312 -3575
- package/dist/agentShared.es.js +14 -13
- package/dist/canvas2d-B_PnIof-.js +620 -0
- package/dist/canvas2d-Cafq5v-N.js +620 -0
- package/dist/{arrayUtils-LJpQOu-U.js → clipOptions-D6eh9T-_.js} +1060 -634
- package/dist/{paramUtils-BYI4rwyL.js → clipOptions-H68pJyEZ.js} +940 -514
- package/dist/{debug-CgDtmspT.js → debug-BGzgZmyk.js} +8 -8
- package/dist/{debug-BvCZWumf.js → debug-UYKZLNh4.js} +8 -8
- package/dist/index.es.js +2983 -2916
- package/dist/index.js +2006 -1997
- package/dist/indexer-Di57GyxX.js +72 -0
- package/dist/indexer-o6Hpg4nN.js +72 -0
- package/dist/layoutResult-D50MSHXR.js +97 -0
- package/dist/nativeText-D9SoxpaD.js +934 -0
- package/dist/nativeText-DAjvkrzc.js +934 -0
- package/dist/performanceProfiler-CPLEjApa.js +20 -0
- package/dist/rasterExport-DzldLv6E.js +44 -0
- package/dist/rasterExport-IAbJwi8F.js +44 -0
- package/dist/rasterImage-B4rPLaW9.js +18 -0
- package/dist/rasterization-CFogVB3B.js +50 -0
- package/dist/rectangle-DKnrAmKs.js +142 -0
- package/dist/renderCanvas2D-BJ93Ptqj.js +277 -0
- package/dist/renderCanvas2D-yJ1IrDcX.js +277 -0
- package/dist/schema.json +11685 -4428
- package/dist/{svg-yFj875aX.js → svg-BRpl2Xub.js} +412 -449
- package/dist/{svg-CCu8kYy2.js → svg-DJuqHIyc.js} +399 -436
- package/dist/svgRasterizer-CGZQ5njV.js +40 -0
- package/dist/svgRasterizer-PAoqLn1j.js +40 -0
- package/dist/vega-scale-BGC53c22.js +2403 -0
- package/dist/vega-scale-DdW2NzQ3.js +2403 -0
- package/dist/viewError-BiR9VCgL.js +29 -0
- package/dist/{viewIdentityRegistry-BUdkK9zT.js → viewIdentityRegistry-D4p067HU.js} +1 -1
- package/dist/{viewIdentityRegistry-D3oPbN4O.js → viewIdentityRegistry-Dc2hXYsO.js} +1 -1
- package/dist/viewSelectors-DNXnGwEW.js +2015 -0
- package/dist/viewSelectors-DYYlOt91.js +2015 -0
- package/dist/viewUtils-EdhZTPrJ.js +6448 -0
- package/dist/webgl-C53DwzVT.js +4127 -0
- package/dist/webgl-CdgNFlJk.js +4127 -0
- package/package.json +7 -6
- package/dist/bmFontMetrics-CuNB-kNN.js +0 -31
- package/dist/canvas2d-DoAXEiF9.js +0 -309
- package/dist/canvas2d-f5jl4A5D.js +0 -310
- package/dist/clipOptions-gqdb3fvW.js +0 -43
- package/dist/color-W5zffv-z.js +0 -335
- package/dist/framebufferReadback-CCLOjStu.js +0 -148
- package/dist/framebufferReadback-THWwFqs8.js +0 -1994
- package/dist/nativeText-DMO8gLt7.js +0 -806
- package/dist/nativeText-m5AUINMq.js +0 -806
- package/dist/twgl-full.module-DB2UdP1k.js +0 -1849
- package/dist/viewRenderingContext-HtpqwS_x.js +0 -120
- package/dist/viewSelectors-DGCspRN3.js +0 -4198
- package/dist/viewSelectors-U5oLCLHV.js +0 -4195
- package/dist/viewUtils-Dg4RA40Q.js +0 -7503
- package/dist/warning-DRGdb6BF.js +0 -59
- package/dist/webgl-Ci6ZhCCf.js +0 -54
- package/dist/webgl-Dpz8a3TI.js +0 -53
|
@@ -0,0 +1,2015 @@
|
|
|
1
|
+
import { C as e, E as t, Ht as n, J as r, S as i, Ut as a, Wt as o, Xt as s, an as c, at as l, b as u, mt as d, o as f, q as p, t as m, y as h, zt as g } from "./clipOptions-H68pJyEZ.js";
|
|
2
|
+
import { E as ee, it as te, m as ne, y as _ } from "./vega-scale-BGC53c22.js";
|
|
3
|
+
import { a as v, n as re, r as ie, t as y } from "./viewError-BiR9VCgL.js";
|
|
4
|
+
//#region ../../node_modules/flatqueue/index.js
|
|
5
|
+
var b = class {
|
|
6
|
+
constructor(e = Infinity, t = Float64Array, n = Uint32Array) {
|
|
7
|
+
let r = e !== Infinity;
|
|
8
|
+
this.ids = r ? new n(e) : [], this.values = r ? new t(e) : [], this.capacity = e, this.length = 0;
|
|
9
|
+
}
|
|
10
|
+
clear() {
|
|
11
|
+
this.length = 0;
|
|
12
|
+
}
|
|
13
|
+
push(e, t) {
|
|
14
|
+
if (this.length === this.capacity) throw RangeError("Queue is at capacity.");
|
|
15
|
+
let n = this.length++;
|
|
16
|
+
for (; n > 0;) {
|
|
17
|
+
let e = n - 1 >> 1, r = this.values[e];
|
|
18
|
+
if (t >= r) break;
|
|
19
|
+
this.ids[n] = this.ids[e], this.values[n] = r, n = e;
|
|
20
|
+
}
|
|
21
|
+
this.ids[n] = e, this.values[n] = t;
|
|
22
|
+
}
|
|
23
|
+
pop() {
|
|
24
|
+
if (this.length === 0) return;
|
|
25
|
+
let e = this.ids, t = this.values, n = e[0], r = --this.length;
|
|
26
|
+
if (r > 0) {
|
|
27
|
+
let n = e[r], i = t[r], a = 0, o = r >> 1;
|
|
28
|
+
for (; a < o;) {
|
|
29
|
+
let n = (a << 1) + 1, o = n + 1, s = n + (o < r & +(t[o] < t[n]));
|
|
30
|
+
if (t[s] >= i) break;
|
|
31
|
+
e[a] = e[s], t[a] = t[s], a = s;
|
|
32
|
+
}
|
|
33
|
+
e[a] = n, t[a] = i;
|
|
34
|
+
}
|
|
35
|
+
return n;
|
|
36
|
+
}
|
|
37
|
+
peek() {
|
|
38
|
+
return this.length > 0 ? this.ids[0] : void 0;
|
|
39
|
+
}
|
|
40
|
+
peekValue() {
|
|
41
|
+
return this.length > 0 ? this.values[0] : void 0;
|
|
42
|
+
}
|
|
43
|
+
shrink() {
|
|
44
|
+
Array.isArray(this.ids) && (this.ids.length = this.length), Array.isArray(this.values) && (this.values.length = this.length);
|
|
45
|
+
}
|
|
46
|
+
}, x = Symbol("runtimeNode"), S = 1e6;
|
|
47
|
+
function ae(e) {
|
|
48
|
+
return e ? (t, n) => e.addDisposer(t, n) : () => () => void 0;
|
|
49
|
+
}
|
|
50
|
+
function C(e, t) {
|
|
51
|
+
let n = {
|
|
52
|
+
id: e.id,
|
|
53
|
+
name: e.name,
|
|
54
|
+
kind: e.kind,
|
|
55
|
+
get() {
|
|
56
|
+
return e.value;
|
|
57
|
+
},
|
|
58
|
+
subscribe(t) {
|
|
59
|
+
return e.listeners.add(t), () => {
|
|
60
|
+
e.listeners.delete(t);
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
return Object.defineProperty(n, x, {
|
|
65
|
+
enumerable: !1,
|
|
66
|
+
configurable: !1,
|
|
67
|
+
writable: !1,
|
|
68
|
+
value: e
|
|
69
|
+
}), t ? Object.assign(n, { set(e) {
|
|
70
|
+
t(e);
|
|
71
|
+
} }) : n;
|
|
72
|
+
}
|
|
73
|
+
function oe(e) {
|
|
74
|
+
let t = e[x];
|
|
75
|
+
if (!t) throw Error("ParamRef is not bound to this graph runtime. Expected runtime-created ref.");
|
|
76
|
+
return t;
|
|
77
|
+
}
|
|
78
|
+
function se(e) {
|
|
79
|
+
return typeof e.rank == "number" ? e.rank : oe(e).rank;
|
|
80
|
+
}
|
|
81
|
+
function ce(e) {
|
|
82
|
+
for (let t of e) t();
|
|
83
|
+
}
|
|
84
|
+
var le = class {
|
|
85
|
+
#e = 1;
|
|
86
|
+
#t = 1;
|
|
87
|
+
#n = 0;
|
|
88
|
+
#r = 0;
|
|
89
|
+
#i = !1;
|
|
90
|
+
#a = !1;
|
|
91
|
+
#o = !1;
|
|
92
|
+
#s = 0;
|
|
93
|
+
#c = !1;
|
|
94
|
+
#l = /* @__PURE__ */ new Map();
|
|
95
|
+
#u = /* @__PURE__ */ new Map();
|
|
96
|
+
#d = /* @__PURE__ */ new Set();
|
|
97
|
+
#f = /* @__PURE__ */ new Set();
|
|
98
|
+
#p = new b();
|
|
99
|
+
#m = new b();
|
|
100
|
+
#h = /* @__PURE__ */ new Set();
|
|
101
|
+
#g;
|
|
102
|
+
constructor(e = {}) {
|
|
103
|
+
this.#g = ae(e.lifecycleRegistry);
|
|
104
|
+
}
|
|
105
|
+
createWritable(e, t, n, r, i = {}) {
|
|
106
|
+
let a = "n" + this.#e++, o = i.notify ?? !0, s = {
|
|
107
|
+
id: a,
|
|
108
|
+
name: t,
|
|
109
|
+
kind: n,
|
|
110
|
+
value: r,
|
|
111
|
+
rank: 0,
|
|
112
|
+
disposed: !1,
|
|
113
|
+
listeners: /* @__PURE__ */ new Set(),
|
|
114
|
+
subscribe(e) {
|
|
115
|
+
return s.listeners.add(e), () => {
|
|
116
|
+
s.listeners.delete(e);
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
}, c = (e) => {
|
|
120
|
+
if (s.disposed) throw Error("Cannot set disposed parameter \"" + t + "\" (" + a + ").");
|
|
121
|
+
e !== s.value && (s.value = e, o && this.#v(s.listeners));
|
|
122
|
+
}, l = () => {
|
|
123
|
+
s.disposed = !0, s.listeners.clear(), u();
|
|
124
|
+
}, u = this.#g(e, l);
|
|
125
|
+
return Object.assign(C(s, c), { dispose: l });
|
|
126
|
+
}
|
|
127
|
+
computed(e, t, n, r, i = {}) {
|
|
128
|
+
return this.#_(e, t, n, r, i);
|
|
129
|
+
}
|
|
130
|
+
operation(e, t, n, r, i, a = {}) {
|
|
131
|
+
return this.#_(e, t, n, r, a, i);
|
|
132
|
+
}
|
|
133
|
+
#_(e, t, n, r, i, a) {
|
|
134
|
+
let o = this.#b(() => s.dependencies), s = {
|
|
135
|
+
id: "n" + this.#e++,
|
|
136
|
+
name: t,
|
|
137
|
+
kind: "derived",
|
|
138
|
+
get rank() {
|
|
139
|
+
return o();
|
|
140
|
+
},
|
|
141
|
+
dependencies: n,
|
|
142
|
+
value: r(),
|
|
143
|
+
disposed: !1,
|
|
144
|
+
listeners: /* @__PURE__ */ new Set(),
|
|
145
|
+
fn: r,
|
|
146
|
+
apply: a,
|
|
147
|
+
equals: i.equals ?? ((e, t) => e === t),
|
|
148
|
+
subscribe(e) {
|
|
149
|
+
return s.listeners.add(e), () => {
|
|
150
|
+
s.listeners.delete(e);
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
a?.(s.value);
|
|
155
|
+
let c = () => s.dependencies.map((e) => e.subscribe(() => {
|
|
156
|
+
s.disposed || (this.#x(s), e.propagation === "sync" && this.flushNow());
|
|
157
|
+
})), l = c(), u = () => {
|
|
158
|
+
s.disposed || (s.disposed = !0, d(), l.forEach((e) => e()), s.listeners.clear(), this.#d.delete(s));
|
|
159
|
+
}, d = this.#g(e, u);
|
|
160
|
+
return Object.assign(C(s), {
|
|
161
|
+
dispose: u,
|
|
162
|
+
rebind: (e, n) => {
|
|
163
|
+
if (s.disposed) throw Error("Cannot rebind disposed operation: " + t);
|
|
164
|
+
let r = /* @__PURE__ */ new Set(), i = (e) => {
|
|
165
|
+
let n = e[x];
|
|
166
|
+
if (n === s) throw Error("Reactive dependency cycle: " + t);
|
|
167
|
+
if (!r.has(n)) {
|
|
168
|
+
r.add(n);
|
|
169
|
+
for (let e of n?.dependencies ?? []) i(e);
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
e.forEach(i), l.forEach((e) => e()), s.dependencies = e, s.fn = n, this.#n++, l = c(), this.#x(s), this.#p.clear();
|
|
173
|
+
for (let e of this.#d) this.#p.push(e, this.#C(e.rank));
|
|
174
|
+
this.#m.clear();
|
|
175
|
+
for (let e of this.#f) this.#m.push(e, this.#C(e.rank));
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
effect(e, t, n) {
|
|
180
|
+
let r = this.#b(() => t), i = {
|
|
181
|
+
id: "n" + this.#e++,
|
|
182
|
+
get rank() {
|
|
183
|
+
return r();
|
|
184
|
+
},
|
|
185
|
+
disposed: !1,
|
|
186
|
+
fn: n
|
|
187
|
+
}, a = t.map((e) => e.subscribe(() => {
|
|
188
|
+
i.disposed || (this.#S(i), e.propagation === "sync" && this.flushNow());
|
|
189
|
+
})), o = () => {
|
|
190
|
+
i.disposed || (i.disposed = !0, s(), a.forEach((e) => e()), this.#f.delete(i));
|
|
191
|
+
}, s = this.#g(e, o);
|
|
192
|
+
return o;
|
|
193
|
+
}
|
|
194
|
+
runInTransaction(e) {
|
|
195
|
+
this.#r += 1;
|
|
196
|
+
try {
|
|
197
|
+
return e();
|
|
198
|
+
} finally {
|
|
199
|
+
--this.#r, this.#r === 0 && (this.#i ? (this.#i = !1, this.flushNow()) : this.#w());
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
flushNow({ afterTransaction: e = !1 } = {}) {
|
|
203
|
+
if (e && this.#r > 0 && (this.#i = !0), this.#s > 0) {
|
|
204
|
+
this.#c = !0;
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
if (this.#r > 0 || this.#o) return;
|
|
208
|
+
this.#a = !1, this.#o = !0;
|
|
209
|
+
let t;
|
|
210
|
+
try {
|
|
211
|
+
for (; this.#p.length || this.#l.size || this.#m.length;) {
|
|
212
|
+
for (; this.#p.length;) {
|
|
213
|
+
let e = this.#p.pop();
|
|
214
|
+
if (this.#d.delete(e), e.disposed) continue;
|
|
215
|
+
this.#y(e, e.name);
|
|
216
|
+
let t, n;
|
|
217
|
+
try {
|
|
218
|
+
t = e.fn(), n = !e.equals(t, e.value), n && e.apply?.(t);
|
|
219
|
+
} catch (t) {
|
|
220
|
+
throw this.#x(e), t;
|
|
221
|
+
}
|
|
222
|
+
n && (e.value = t, this.#v(e.listeners));
|
|
223
|
+
}
|
|
224
|
+
if (this.#l.size) {
|
|
225
|
+
let e = Infinity, n;
|
|
226
|
+
for (let [t, { rank: r }] of this.#l) r < e && (n = t, e = r);
|
|
227
|
+
let r = /* @__PURE__ */ new Set();
|
|
228
|
+
for (;;) {
|
|
229
|
+
if (r.has(n)) throw Error("Cyclic streaming publication dependencies");
|
|
230
|
+
r.add(n);
|
|
231
|
+
let e;
|
|
232
|
+
for (let t of this.#l.get(n).prerequisites?.() ?? []) if (this.#l.has(t)) {
|
|
233
|
+
e = t;
|
|
234
|
+
break;
|
|
235
|
+
}
|
|
236
|
+
if (!e) break;
|
|
237
|
+
n = e;
|
|
238
|
+
}
|
|
239
|
+
t = this.#l.get(n).onError, this.#l.delete(n), this.#y(n, "streaming update"), n(), t = void 0;
|
|
240
|
+
} else if (this.#m.length) {
|
|
241
|
+
let e = this.#m.pop();
|
|
242
|
+
this.#f.delete(e), e.disposed || (this.#y(e, "effect " + e.id), e.fn());
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
} catch (e) {
|
|
246
|
+
let n = Array.from(this.#l.values());
|
|
247
|
+
this.#l.clear(), t?.(e);
|
|
248
|
+
for (let t of n) t.onError?.(e);
|
|
249
|
+
for (let t of this.#h) t.reject(e);
|
|
250
|
+
throw this.#h.clear(), e;
|
|
251
|
+
} finally {
|
|
252
|
+
this.#u.clear(), this.#o = !1, this.#E();
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
requestUpdate(e, t = 0, n, r) {
|
|
256
|
+
this.#l.set(e, {
|
|
257
|
+
rank: t,
|
|
258
|
+
onError: n,
|
|
259
|
+
prerequisites: r
|
|
260
|
+
}), this.#w();
|
|
261
|
+
}
|
|
262
|
+
cancelUpdate(e) {
|
|
263
|
+
this.#l.delete(e);
|
|
264
|
+
}
|
|
265
|
+
#v(e) {
|
|
266
|
+
this.#s++;
|
|
267
|
+
try {
|
|
268
|
+
ce(e);
|
|
269
|
+
} finally {
|
|
270
|
+
this.#s--, !this.#s && this.#c && (this.#c = !1, this.flushNow());
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
#y(e, t) {
|
|
274
|
+
let n = (this.#u.get(e) ?? 0) + 1;
|
|
275
|
+
if (n > 100) throw Error("Reactive propagation did not settle: " + t);
|
|
276
|
+
this.#u.set(e, n);
|
|
277
|
+
}
|
|
278
|
+
whenPropagated(e = {}) {
|
|
279
|
+
if (this.#T()) return Promise.resolve();
|
|
280
|
+
let { signal: t, timeoutMs: n } = e;
|
|
281
|
+
return t?.aborted ? Promise.reject(/* @__PURE__ */ Error("whenPropagated aborted")) : new Promise((e, r) => {
|
|
282
|
+
let i, a = () => {
|
|
283
|
+
this.#h.delete(o), t?.removeEventListener("abort", s), i !== void 0 && clearTimeout(i);
|
|
284
|
+
}, o = {
|
|
285
|
+
resolve: () => {
|
|
286
|
+
a(), e();
|
|
287
|
+
},
|
|
288
|
+
reject: (e) => {
|
|
289
|
+
a(), r(e);
|
|
290
|
+
}
|
|
291
|
+
}, s = () => o.reject(/* @__PURE__ */ Error("whenPropagated aborted"));
|
|
292
|
+
t?.addEventListener("abort", s, { once: !0 }), n != null && (i = setTimeout(() => o.reject(/* @__PURE__ */ Error("whenPropagated timeout after " + n + " ms")), n)), this.#h.add(o);
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
#b(e) {
|
|
296
|
+
let t = -1, n = 0;
|
|
297
|
+
return () => (t !== this.#n && (n = 1 + e().reduce((e, t) => Math.max(e, se(t)), 0), t = this.#n), n);
|
|
298
|
+
}
|
|
299
|
+
#x(e) {
|
|
300
|
+
if (this.#d.has(e)) {
|
|
301
|
+
this.#w();
|
|
302
|
+
return;
|
|
303
|
+
}
|
|
304
|
+
this.#d.add(e), this.#p.push(e, this.#C(e.rank)), this.#w();
|
|
305
|
+
}
|
|
306
|
+
#S(e) {
|
|
307
|
+
if (this.#f.has(e)) {
|
|
308
|
+
this.#w();
|
|
309
|
+
return;
|
|
310
|
+
}
|
|
311
|
+
this.#f.add(e), this.#m.push(e, this.#C(e.rank)), this.#w();
|
|
312
|
+
}
|
|
313
|
+
#C(e) {
|
|
314
|
+
let t = this.#t % S;
|
|
315
|
+
return this.#t += 1, e * S + t;
|
|
316
|
+
}
|
|
317
|
+
#w() {
|
|
318
|
+
this.#r > 0 || this.#a || this.#o || (this.#a = !0, queueMicrotask(() => {
|
|
319
|
+
this.#a && this.flushNow();
|
|
320
|
+
}));
|
|
321
|
+
}
|
|
322
|
+
#T() {
|
|
323
|
+
return this.#r === 0 && !this.#a && !this.#o && this.#p.length === 0 && this.#m.length === 0 && this.#d.size === 0 && this.#f.size === 0 && this.#l.size === 0;
|
|
324
|
+
}
|
|
325
|
+
#E() {
|
|
326
|
+
if (this.#T()) {
|
|
327
|
+
for (let e of this.#h) e.resolve();
|
|
328
|
+
this.#h.clear();
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}, ue = class {
|
|
332
|
+
#e = 1;
|
|
333
|
+
#t = /* @__PURE__ */ new Map();
|
|
334
|
+
createOwner(e, t) {
|
|
335
|
+
let n = e + ":" + t + ":" + this.#e++;
|
|
336
|
+
return this.#t.set(n, /* @__PURE__ */ new Set()), n;
|
|
337
|
+
}
|
|
338
|
+
addDisposer(e, t) {
|
|
339
|
+
let n = this.#t.get(e);
|
|
340
|
+
if (!n) throw Error("Unknown owner: " + e);
|
|
341
|
+
return n.add(t), () => {
|
|
342
|
+
n.delete(t);
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
disposeOwner(e) {
|
|
346
|
+
let t = this.#t.get(e);
|
|
347
|
+
if (t) {
|
|
348
|
+
for (let e of t) e();
|
|
349
|
+
t.clear(), this.#t.delete(e);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}, de = class {
|
|
353
|
+
#e = 1;
|
|
354
|
+
#t = /* @__PURE__ */ new Map();
|
|
355
|
+
createRootScope(e) {
|
|
356
|
+
let t = "scope:" + this.#e++;
|
|
357
|
+
return this.#t.set(t, {
|
|
358
|
+
params: /* @__PURE__ */ new Map(),
|
|
359
|
+
initializers: /* @__PURE__ */ new Map(),
|
|
360
|
+
ownerId: e
|
|
361
|
+
}), t;
|
|
362
|
+
}
|
|
363
|
+
createChildScope(e, t) {
|
|
364
|
+
if (!this.#t.has(t)) throw Error("Unknown parent scope: " + t);
|
|
365
|
+
let n = "scope:" + this.#e++;
|
|
366
|
+
return this.#t.set(n, {
|
|
367
|
+
parentScope: t,
|
|
368
|
+
params: /* @__PURE__ */ new Map(),
|
|
369
|
+
initializers: /* @__PURE__ */ new Map(),
|
|
370
|
+
ownerId: e
|
|
371
|
+
}), n;
|
|
372
|
+
}
|
|
373
|
+
getOwnerId(e) {
|
|
374
|
+
let t = this.#t.get(e);
|
|
375
|
+
if (!t) throw Error("Unknown scope: " + e);
|
|
376
|
+
return t.ownerId;
|
|
377
|
+
}
|
|
378
|
+
clearScope(e) {
|
|
379
|
+
let t = this.#t.get(e);
|
|
380
|
+
if (!t) throw Error("Unknown scope: " + e);
|
|
381
|
+
t.params.clear(), t.initializers.clear();
|
|
382
|
+
}
|
|
383
|
+
registerInitializer(e, n, r) {
|
|
384
|
+
t(n);
|
|
385
|
+
let i = this.#t.get(e);
|
|
386
|
+
if (!i) throw Error("Unknown scope: " + e);
|
|
387
|
+
if (i.params.has(n) || i.initializers.has(n)) throw Error(`Parameter "${n}" already exists in scope ${e}`);
|
|
388
|
+
i.initializers.set(n, {
|
|
389
|
+
initialize: r,
|
|
390
|
+
initializing: !1
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
register(e, n, r) {
|
|
394
|
+
t(n);
|
|
395
|
+
let i = this.#t.get(e);
|
|
396
|
+
if (!i) throw Error("Unknown scope: " + e);
|
|
397
|
+
if (i.params.has(n) || i.initializers.get(n)?.initializing === !1) throw Error("Parameter \"" + n + "\" already exists in scope " + e);
|
|
398
|
+
return i.params.set(n, r), r;
|
|
399
|
+
}
|
|
400
|
+
resolve(e, n) {
|
|
401
|
+
t(n);
|
|
402
|
+
let r = e;
|
|
403
|
+
for (; r;) {
|
|
404
|
+
let e = this.#t.get(r);
|
|
405
|
+
if (!e) throw Error("Unknown scope: " + r);
|
|
406
|
+
let t = e.initializers.get(n);
|
|
407
|
+
if (t) {
|
|
408
|
+
if (t.initializing) throw Error(`Parameter dependency cycle while initializing "${n}" in ${r}.`);
|
|
409
|
+
t.initializing = !0;
|
|
410
|
+
try {
|
|
411
|
+
if (t.initialize(), !e.params.has(n)) throw Error(`Initializer did not register parameter "${n}".`);
|
|
412
|
+
e.initializers.delete(n);
|
|
413
|
+
} finally {
|
|
414
|
+
t.initializing = !1;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
let i = e.params.get(n);
|
|
418
|
+
if (i) return i;
|
|
419
|
+
r = e.parentScope;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
};
|
|
423
|
+
//#endregion
|
|
424
|
+
//#region ../core/src/paramRuntime/expressionCompiler.js
|
|
425
|
+
function fe(e, t = {}, n = {}) {
|
|
426
|
+
return r(e, t, n);
|
|
427
|
+
}
|
|
428
|
+
//#endregion
|
|
429
|
+
//#region ../core/src/paramRuntime/expressionRef.js
|
|
430
|
+
function pe(e, t, n = {}) {
|
|
431
|
+
let r = {}, i = fe(e, r, n), a = /* @__PURE__ */ new Map();
|
|
432
|
+
for (let n of i.globals) {
|
|
433
|
+
if (a.has(n)) continue;
|
|
434
|
+
let i = t(n);
|
|
435
|
+
if (!i) throw Error("Unknown variable \"" + n + "\" in expression: " + e);
|
|
436
|
+
a.set(n, i), Object.defineProperty(r, n, {
|
|
437
|
+
enumerable: !0,
|
|
438
|
+
get() {
|
|
439
|
+
return i.get();
|
|
440
|
+
}
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
let o = /* @__PURE__ */ new Set();
|
|
444
|
+
return i.subscribe = (e) => {
|
|
445
|
+
let t = [];
|
|
446
|
+
for (let n of a.values()) t.push(n.subscribe(e));
|
|
447
|
+
for (let n of i.scaleDependencies ?? []) t.push(n.subscribe(e));
|
|
448
|
+
let n = !0, r = () => {
|
|
449
|
+
n && (n = !1, o.delete(r), t.forEach((e) => e()));
|
|
450
|
+
};
|
|
451
|
+
return o.add(r), r;
|
|
452
|
+
}, i.invalidate = () => {
|
|
453
|
+
for (let e of o) e();
|
|
454
|
+
o.clear();
|
|
455
|
+
}, i.identifier = () => i.code + "|" + Array.from(a.values()).map((e) => e.id).concat((i.scaleDependencies ?? []).map((e) => e.id)).join(","), i.dependencies = Array.from(a.values()).concat(i.scaleDependencies ?? []), {
|
|
456
|
+
expression: i,
|
|
457
|
+
dependencies: i.dependencies
|
|
458
|
+
};
|
|
459
|
+
}
|
|
460
|
+
//#endregion
|
|
461
|
+
//#region ../core/src/paramRuntime/paramRuntime.js
|
|
462
|
+
var me = class {
|
|
463
|
+
#e = new ue();
|
|
464
|
+
#t = new le({ lifecycleRegistry: this.#e });
|
|
465
|
+
#n = new de();
|
|
466
|
+
createScope(e) {
|
|
467
|
+
let t = this.#e.createOwner("scope", e ?? "root");
|
|
468
|
+
return e ? this.#n.createChildScope(t, e) : this.#n.createRootScope(t);
|
|
469
|
+
}
|
|
470
|
+
disposeScope(e) {
|
|
471
|
+
let t = this.#n.getOwnerId(e);
|
|
472
|
+
this.#e.disposeOwner(t), this.#n.clearScope(e);
|
|
473
|
+
}
|
|
474
|
+
addScopeDisposer(e, t) {
|
|
475
|
+
let n = this.#n.getOwnerId(e);
|
|
476
|
+
this.#e.addDisposer(n, t);
|
|
477
|
+
}
|
|
478
|
+
registerInitializer(e, t, n) {
|
|
479
|
+
this.#n.registerInitializer(e, t, n);
|
|
480
|
+
}
|
|
481
|
+
registerBase(e, t, n, r) {
|
|
482
|
+
let i = this.#n.getOwnerId(e), a = this.#t.createWritable(i, t, "base", n, r);
|
|
483
|
+
return this.#n.register(e, t, a);
|
|
484
|
+
}
|
|
485
|
+
registerSelection(e, t, n, r) {
|
|
486
|
+
let i = this.#n.getOwnerId(e), a = this.#t.createWritable(i, t, "selection", n, r);
|
|
487
|
+
return this.#n.register(e, t, a);
|
|
488
|
+
}
|
|
489
|
+
registerDerived(e, t, n, r) {
|
|
490
|
+
let { expression: i, dependencies: a } = pe(n, (t) => this.resolve(r?.expressionScope ?? e, t), r), o = this.#n.getOwnerId(e), s = this.#t.computed(o, t, a, () => i(null));
|
|
491
|
+
return this.#n.register(e, t, s);
|
|
492
|
+
}
|
|
493
|
+
createExpression(e, t, n) {
|
|
494
|
+
let { expression: r } = pe(t, (t) => this.resolve(e, t), n);
|
|
495
|
+
return r;
|
|
496
|
+
}
|
|
497
|
+
resolve(e, t) {
|
|
498
|
+
return this.#n.resolve(e, t);
|
|
499
|
+
}
|
|
500
|
+
signal(e, t, n) {
|
|
501
|
+
return this.#t.createWritable(this.#n.getOwnerId(e), t, "base", n);
|
|
502
|
+
}
|
|
503
|
+
computed(e, t, n, r, i) {
|
|
504
|
+
return this.#t.computed(this.#n.getOwnerId(e), t, n, r, i);
|
|
505
|
+
}
|
|
506
|
+
operation(e, t, n, r, i, a) {
|
|
507
|
+
return this.#t.operation(this.#n.getOwnerId(e), t, n, r, i, a);
|
|
508
|
+
}
|
|
509
|
+
effect(e, t, n) {
|
|
510
|
+
return this.#t.effect(this.#n.getOwnerId(e), t, n);
|
|
511
|
+
}
|
|
512
|
+
requestUpdate(e, t = 0, n, r) {
|
|
513
|
+
this.#t.requestUpdate(e, t, n, r);
|
|
514
|
+
}
|
|
515
|
+
cancelUpdate(e) {
|
|
516
|
+
this.#t.cancelUpdate(e);
|
|
517
|
+
}
|
|
518
|
+
runInTransaction(e) {
|
|
519
|
+
return this.#t.runInTransaction(e);
|
|
520
|
+
}
|
|
521
|
+
flushNow(e) {
|
|
522
|
+
this.#t.flushNow(e);
|
|
523
|
+
}
|
|
524
|
+
whenPropagated(e) {
|
|
525
|
+
return this.#t.whenPropagated(e);
|
|
526
|
+
}
|
|
527
|
+
}, he = (e) => new Promise((t) => setTimeout(t, e));
|
|
528
|
+
function ge() {
|
|
529
|
+
return { canceled: !1 };
|
|
530
|
+
}
|
|
531
|
+
function _e(e) {
|
|
532
|
+
let t = e.requestAnimationFrame || window.requestAnimationFrame, n = e.signal, r = e.cancelToken, i = () => new Promise((i, a) => {
|
|
533
|
+
if (r?.canceled) return i();
|
|
534
|
+
if (n?.aborted) return a("aborted");
|
|
535
|
+
let o = performance.now(), s = o + (e.duration || 1e3), c = typeof e.from == "number" ? e.from : 0, l = typeof e.to == "number" ? e.to : 1, u = e.easingFunction || ((e) => e), d = (e) => (e - o) / (s - o), f = (e) => e * (l - c) + c, p = (e) => Math.max(0, Math.min(1, e)), m = (o) => {
|
|
536
|
+
if (r?.canceled) {
|
|
537
|
+
i();
|
|
538
|
+
return;
|
|
539
|
+
}
|
|
540
|
+
n?.aborted ? a("aborted") : (e.onUpdate(f(u(p(d(o))))), o < s ? t(m) : (e.onUpdate(f(u(1))), i()));
|
|
541
|
+
};
|
|
542
|
+
t(m);
|
|
543
|
+
});
|
|
544
|
+
return e.delay ? r?.canceled ? Promise.resolve() : n?.aborted ? Promise.reject("aborted") : he(e.delay).then(i) : i();
|
|
545
|
+
}
|
|
546
|
+
//#endregion
|
|
547
|
+
//#region ../core/src/utils/animator.js
|
|
548
|
+
var ve = class {
|
|
549
|
+
constructor(e) {
|
|
550
|
+
this._renderCallback = e, this._renderRequested = !1, this._finalized = !1, this._warn = !1, this._animationFrameRequest = void 0, this.transitions = [], this.transitionsEnabled = !0;
|
|
551
|
+
}
|
|
552
|
+
requestTransition(e) {
|
|
553
|
+
this._finalized || (this.cancelTransition(e), this.transitions.push(e), this.requestRender());
|
|
554
|
+
}
|
|
555
|
+
cancelTransition(e) {
|
|
556
|
+
let t = this.transitions.indexOf(e);
|
|
557
|
+
t >= 0 && this.transitions.splice(t, 1);
|
|
558
|
+
}
|
|
559
|
+
requestRender() {
|
|
560
|
+
this._finalized || (this._renderRequested ? this._warn && console.warn("Render already requested!") : (this._renderRequested = !0, this._animationFrameRequest = window.requestAnimationFrame((e) => {
|
|
561
|
+
if (this._animationFrameRequest = void 0, this._finalized) return;
|
|
562
|
+
this._renderRequested = !1;
|
|
563
|
+
let t = this.transitions;
|
|
564
|
+
this.transitions = [];
|
|
565
|
+
let n;
|
|
566
|
+
for (; n = t.shift();) n(e);
|
|
567
|
+
this._finalized || this._renderCallback(e);
|
|
568
|
+
})));
|
|
569
|
+
}
|
|
570
|
+
finalize() {
|
|
571
|
+
this._finalized = !0, this._renderRequested = !1, this.transitions = [], this._animationFrameRequest !== void 0 && (window.cancelAnimationFrame(this._animationFrameRequest), this._animationFrameRequest = void 0);
|
|
572
|
+
}
|
|
573
|
+
transition(e) {
|
|
574
|
+
return _e({
|
|
575
|
+
requestAnimationFrame: (e) => this.requestTransition(e),
|
|
576
|
+
...e
|
|
577
|
+
});
|
|
578
|
+
}
|
|
579
|
+
};
|
|
580
|
+
function w(e, t, n, r, i) {
|
|
581
|
+
let a = 0, o = !0, s = !1, c = structuredClone(i), l = c;
|
|
582
|
+
function u(e, t, n, r) {
|
|
583
|
+
return t + (e - t) * 2 ** (-n / r);
|
|
584
|
+
}
|
|
585
|
+
function d(i) {
|
|
586
|
+
if (s = !1, o) return;
|
|
587
|
+
let d = i - a;
|
|
588
|
+
a = i;
|
|
589
|
+
for (let e of Object.keys(l)) c[e] = u(c[e], l[e], d, n);
|
|
590
|
+
t(c);
|
|
591
|
+
let p = -Infinity;
|
|
592
|
+
for (let e of Object.keys(l)) p = Math.max(p, Math.abs(l[e] - c[e]));
|
|
593
|
+
p < r ? (c = l, t(c), o = !0, p != 0 && e.requestRender()) : f();
|
|
594
|
+
}
|
|
595
|
+
function f() {
|
|
596
|
+
s || (s = !0, e.requestTransition(d));
|
|
597
|
+
}
|
|
598
|
+
function p(n) {
|
|
599
|
+
l = n, e.transitionsEnabled === !1 ? (c = l, o = !0, s = !1, e.cancelTransition(d), t(c)) : o && (o = !1, a = ye(), d(a));
|
|
600
|
+
}
|
|
601
|
+
return p.stop = () => {
|
|
602
|
+
o = !0, s = !1, e.cancelTransition(d);
|
|
603
|
+
}, p.snap = (e) => {
|
|
604
|
+
l = e, c = e, p.stop(), t(c);
|
|
605
|
+
}, p;
|
|
606
|
+
}
|
|
607
|
+
function ye() {
|
|
608
|
+
let e = globalThis.document?.timeline?.currentTime;
|
|
609
|
+
return typeof e == "number" ? e : performance.now();
|
|
610
|
+
}
|
|
611
|
+
//#endregion
|
|
612
|
+
//#region ../core/src/paramRuntime/viewParamRuntime.js
|
|
613
|
+
var be = class {
|
|
614
|
+
#e;
|
|
615
|
+
#t;
|
|
616
|
+
#n = /* @__PURE__ */ new Map();
|
|
617
|
+
#r = /* @__PURE__ */ new Map();
|
|
618
|
+
#i = /* @__PURE__ */ new Map();
|
|
619
|
+
#a = /* @__PURE__ */ new Map();
|
|
620
|
+
#o;
|
|
621
|
+
#s;
|
|
622
|
+
#c;
|
|
623
|
+
#l;
|
|
624
|
+
#u = !1;
|
|
625
|
+
constructor(e, t, n, r = {}) {
|
|
626
|
+
this.#o = e ?? (() => void 0), this.#s = t ?? (() => void 0), this.#c = n, this.#l = r.snapTransitionedUpdates ?? !1;
|
|
627
|
+
let i = this.#o();
|
|
628
|
+
i ? (this.#e = i.#e, this.#t = this.#e.createScope(i.#t)) : (this.#e = new me(), this.#t = this.#e.createScope());
|
|
629
|
+
}
|
|
630
|
+
registerParam(e, n = {}) {
|
|
631
|
+
let r = e.name;
|
|
632
|
+
if (t(r), this.#i.has(r)) throw Error("Parameter \"" + r + "\" already registered in this scope.");
|
|
633
|
+
if (Se(e), n.defer) {
|
|
634
|
+
if (!("expr" in e)) throw Error("Only expression parameters can be deferred.");
|
|
635
|
+
return this.#e.registerInitializer(this.#t, r, () => {
|
|
636
|
+
this.#d(e);
|
|
637
|
+
}), this.#i.set(r, e), () => {
|
|
638
|
+
throw Error("Cannot set derived parameter \"" + r + "\".");
|
|
639
|
+
};
|
|
640
|
+
}
|
|
641
|
+
return this.#d(e);
|
|
642
|
+
}
|
|
643
|
+
registerScopedExpression(e, t, n) {
|
|
644
|
+
if (this.#e !== n.#e) throw Error("Scoped expressions must share a parameter runtime.");
|
|
645
|
+
if (this.#i.has(e)) throw Error("Parameter \"" + e + "\" already registered in this scope.");
|
|
646
|
+
this.#e.registerInitializer(this.#t, e, () => {
|
|
647
|
+
let r = this.#e.registerDerived(this.#t, e, t, {
|
|
648
|
+
expressionScope: n.#t,
|
|
649
|
+
resolveScaleResolution: n.#s
|
|
650
|
+
});
|
|
651
|
+
this.#r.set(e, r);
|
|
652
|
+
}), this.#i.set(e, {
|
|
653
|
+
name: e,
|
|
654
|
+
expr: t
|
|
655
|
+
});
|
|
656
|
+
}
|
|
657
|
+
#d(e) {
|
|
658
|
+
let t = e.name, n, r;
|
|
659
|
+
if (e.push == "outer") {
|
|
660
|
+
let i = this.findRuntimeForParam(t);
|
|
661
|
+
if (!i) throw Error(`Parameter "${t}" not found in outer scope!`);
|
|
662
|
+
let a = i.paramConfigs.get(t);
|
|
663
|
+
if (!a) throw Error(`Outer parameter "${t}" exists as a value but has no registered config.`);
|
|
664
|
+
if ("expr" in a || "select" in a || "ruler" in a) throw Error(`The outer parameter "${t}" must not have expr, select, or ruler properties!`);
|
|
665
|
+
n = (e) => {
|
|
666
|
+
i.setValue(t, e);
|
|
667
|
+
}, this.#n.set(t, n), "ruler" in e && (r = h(e, this), n(r));
|
|
668
|
+
} else if ("value" in e) r = h(e, this), n = "transition" in e ? this.#p(t, r, e.transition) : this.#f(t, r);
|
|
669
|
+
else if ("expr" in e) {
|
|
670
|
+
if ("transition" in e) this.#m(t, e.expr, e.transition);
|
|
671
|
+
else {
|
|
672
|
+
let n = this.#e.registerDerived(this.#t, t, e.expr, { resolveScaleResolution: this.#s });
|
|
673
|
+
this.#r.set(t, n);
|
|
674
|
+
}
|
|
675
|
+
n = () => {
|
|
676
|
+
throw Error("Cannot set derived parameter \"" + t + "\".");
|
|
677
|
+
};
|
|
678
|
+
} else r = h(e, this), n = this.#f(t, r);
|
|
679
|
+
if ("select" in e) {
|
|
680
|
+
if (r ??= h(e, this), !this.#n.has(t)) {
|
|
681
|
+
let e = this.#e.registerSelection(this.#t, t, r);
|
|
682
|
+
this.#r.set(t, e), this.#n.set(t, (t) => {
|
|
683
|
+
e.set(t), this.#e.flushNow();
|
|
684
|
+
}), n = this.#n.get(t);
|
|
685
|
+
}
|
|
686
|
+
n(r);
|
|
687
|
+
}
|
|
688
|
+
return this.#i.set(t, e), n;
|
|
689
|
+
}
|
|
690
|
+
allocateSetter(e, n, r = !1) {
|
|
691
|
+
if (t(e), this.#n.has(e)) throw Error("Setter already allocated for parameter: " + e);
|
|
692
|
+
let i = this.#e.registerBase(this.#t, e, n, { notify: !r });
|
|
693
|
+
this.#r.set(e, i);
|
|
694
|
+
let a = (e) => {
|
|
695
|
+
i.set(e), this.#e.flushNow();
|
|
696
|
+
};
|
|
697
|
+
return this.#n.set(e, a), a;
|
|
698
|
+
}
|
|
699
|
+
setValue(e, n, r) {
|
|
700
|
+
t(e);
|
|
701
|
+
let i = this.#n.get(e);
|
|
702
|
+
if (!i) throw Error("Writable parameter not found in this scope: " + e);
|
|
703
|
+
i(n, r);
|
|
704
|
+
}
|
|
705
|
+
getValue(e) {
|
|
706
|
+
return !this.#r.has(e) && this.hasLocalParam(e) && this.#e.resolve(this.#t, e), this.#r.get(e)?.get();
|
|
707
|
+
}
|
|
708
|
+
getTargetValue(e) {
|
|
709
|
+
return t(e), this.#a.get(e)?.target ?? this.getValue(e);
|
|
710
|
+
}
|
|
711
|
+
subscribe(e, n) {
|
|
712
|
+
t(e);
|
|
713
|
+
let r = this.findRuntimeForParam(e);
|
|
714
|
+
if (!r) throw Error("Parameter not found: " + e);
|
|
715
|
+
let i = r.#e.resolve(r.#t, e);
|
|
716
|
+
if (!i) throw Error("Parameter found without local reference: " + e);
|
|
717
|
+
return i.subscribe(n);
|
|
718
|
+
}
|
|
719
|
+
findValue(e) {
|
|
720
|
+
return this.findRuntimeForParam(e)?.getValue(e);
|
|
721
|
+
}
|
|
722
|
+
findTargetValue(e) {
|
|
723
|
+
return this.findRuntimeForParam(e)?.getTargetValue(e);
|
|
724
|
+
}
|
|
725
|
+
get paramConfigs() {
|
|
726
|
+
return this.#i;
|
|
727
|
+
}
|
|
728
|
+
hasLocalParam(e) {
|
|
729
|
+
t(e);
|
|
730
|
+
let n = this.#i.get(e);
|
|
731
|
+
return this.#r.has(e) || n !== void 0 && "expr" in n;
|
|
732
|
+
}
|
|
733
|
+
isPendingParam(e) {
|
|
734
|
+
let t = this.findRuntimeForParam(e);
|
|
735
|
+
return t !== void 0 && !t.#r.has(e);
|
|
736
|
+
}
|
|
737
|
+
hasConfiguredParamInScopeChain(e) {
|
|
738
|
+
return t(e), this.#i.has(e) ? !0 : this.#o()?.hasConfiguredParamInScopeChain(e) ?? !1;
|
|
739
|
+
}
|
|
740
|
+
findRuntimeForParam(e) {
|
|
741
|
+
return this.hasLocalParam(e) ? this : this.#o()?.findRuntimeForParam(e);
|
|
742
|
+
}
|
|
743
|
+
getDebugState() {
|
|
744
|
+
let e = [];
|
|
745
|
+
for (let [t, n] of this.#r) {
|
|
746
|
+
let r = this.#i.get(t);
|
|
747
|
+
e.push({
|
|
748
|
+
name: t,
|
|
749
|
+
kind: xe(r),
|
|
750
|
+
value: n.get(),
|
|
751
|
+
writable: this.#n.has(t),
|
|
752
|
+
configured: !!r,
|
|
753
|
+
config: r ? structuredClone(r) : void 0,
|
|
754
|
+
target: this.#a.get(t)?.target
|
|
755
|
+
});
|
|
756
|
+
}
|
|
757
|
+
return {
|
|
758
|
+
scopeId: this.#t,
|
|
759
|
+
disposed: this.#u,
|
|
760
|
+
params: e
|
|
761
|
+
};
|
|
762
|
+
}
|
|
763
|
+
createExpression(e) {
|
|
764
|
+
return this.#e.createExpression(this.#t, e, { resolveScaleResolution: this.#s });
|
|
765
|
+
}
|
|
766
|
+
watchExpression(e, t, n = {}) {
|
|
767
|
+
let r = this.createExpression(e), i = r.subscribe(t);
|
|
768
|
+
return (n.scopeOwned ?? !0) && this.#e.addScopeDisposer(this.#t, i), n.registerDisposer?.(i), r;
|
|
769
|
+
}
|
|
770
|
+
signal(e, t) {
|
|
771
|
+
return this.#e.signal(this.#t, e, t);
|
|
772
|
+
}
|
|
773
|
+
computed(e, t, n, r) {
|
|
774
|
+
return this.#e.computed(this.#t, e, t, n, r);
|
|
775
|
+
}
|
|
776
|
+
operation(e, t, n, r, i) {
|
|
777
|
+
return this.#e.operation(this.#t, e, t, n, r, i);
|
|
778
|
+
}
|
|
779
|
+
effect(e, t) {
|
|
780
|
+
return this.#e.effect(this.#t, e, t);
|
|
781
|
+
}
|
|
782
|
+
get updateScheduler() {
|
|
783
|
+
return this.#e;
|
|
784
|
+
}
|
|
785
|
+
requestUpdate(e, t = 0, n, r) {
|
|
786
|
+
this.#e.requestUpdate(e, t, n, r);
|
|
787
|
+
}
|
|
788
|
+
cancelUpdate(e) {
|
|
789
|
+
this.#e.cancelUpdate(e);
|
|
790
|
+
}
|
|
791
|
+
#f(e, t) {
|
|
792
|
+
let n = this.#e.registerBase(this.#t, e, t);
|
|
793
|
+
this.#r.set(e, n);
|
|
794
|
+
let r = (e) => {
|
|
795
|
+
n.set(e), this.#e.flushNow();
|
|
796
|
+
};
|
|
797
|
+
return this.#n.set(e, r), r;
|
|
798
|
+
}
|
|
799
|
+
#p(e, t, n) {
|
|
800
|
+
let r = this.#h(e, t, n), i = (t, n) => {
|
|
801
|
+
this.#g(e, r, t, n);
|
|
802
|
+
};
|
|
803
|
+
return this.#n.set(e, i), i;
|
|
804
|
+
}
|
|
805
|
+
#m(e, t, n) {
|
|
806
|
+
let r = this.createExpression(t), i = this.#h(e, r(null), n), a = r.subscribe(() => {
|
|
807
|
+
this.#g(e, i, r(null), { animate: !this.#l });
|
|
808
|
+
});
|
|
809
|
+
this.#e.addScopeDisposer(this.#t, a);
|
|
810
|
+
}
|
|
811
|
+
#h(e, t, n) {
|
|
812
|
+
let r = Ce(e, t), i = this.#e.registerBase(this.#t, e, r);
|
|
813
|
+
this.#r.set(e, i);
|
|
814
|
+
let a = this.#c;
|
|
815
|
+
if (!a) throw Error(`The parameter "${e}" uses transition but no animator is available.`);
|
|
816
|
+
let o = w(a, ({ value: e }) => {
|
|
817
|
+
i.set(e), this.#e.flushNow();
|
|
818
|
+
}, n.halfLife ?? 80, n.epsilon ?? .01, { value: i.get() }), s = {
|
|
819
|
+
target: i.get(),
|
|
820
|
+
smoother: o,
|
|
821
|
+
dispose: () => {
|
|
822
|
+
o.stop(), this.#a.delete(e);
|
|
823
|
+
}
|
|
824
|
+
};
|
|
825
|
+
return this.#a.set(e, s), this.#e.addScopeDisposer(this.#t, s.dispose), s;
|
|
826
|
+
}
|
|
827
|
+
#g(e, t, n, r = {}) {
|
|
828
|
+
let i = Ce(e, n);
|
|
829
|
+
t.target = i, r.animate === !1 ? t.smoother.snap({ value: i }) : t.smoother({ value: i });
|
|
830
|
+
}
|
|
831
|
+
evaluateAndGet(e) {
|
|
832
|
+
return this.createExpression(e)();
|
|
833
|
+
}
|
|
834
|
+
runInTransaction(e) {
|
|
835
|
+
return this.#e.runInTransaction(e);
|
|
836
|
+
}
|
|
837
|
+
flushNow(e) {
|
|
838
|
+
this.#e.flushNow(e);
|
|
839
|
+
}
|
|
840
|
+
whenPropagated(e) {
|
|
841
|
+
return this.#e.whenPropagated(e);
|
|
842
|
+
}
|
|
843
|
+
finalizeInitialization() {
|
|
844
|
+
this.#l = !1;
|
|
845
|
+
}
|
|
846
|
+
dispose() {
|
|
847
|
+
this.#u || (this.#u = !0, this.#e.disposeScope(this.#t), this.#n.clear(), this.#r.clear(), this.#i.clear(), this.#a.clear());
|
|
848
|
+
}
|
|
849
|
+
hasPointSelections() {
|
|
850
|
+
for (let e of this.#i.values()) if (i(e)) {
|
|
851
|
+
let t = e.select;
|
|
852
|
+
if (o(t)) {
|
|
853
|
+
if (t == "point") return !0;
|
|
854
|
+
} else if (t.type == "point") return !0;
|
|
855
|
+
}
|
|
856
|
+
return !1;
|
|
857
|
+
}
|
|
858
|
+
};
|
|
859
|
+
function xe(e) {
|
|
860
|
+
return e ? e.push === "outer" ? "push" : "select" in e ? "selection" : "ruler" in e ? "ruler" : "expr" in e ? "derived" : "base" : "auto";
|
|
861
|
+
}
|
|
862
|
+
function Se(e) {
|
|
863
|
+
let t = e.name;
|
|
864
|
+
if ("value" in e && "expr" in e) throw Error(`The parameter "${t}" must not have both value and expr properties!`);
|
|
865
|
+
if ("expr" in e && "bind" in e) throw Error(`The parameter "${t}" must not have both expr and bind properties!`);
|
|
866
|
+
if (!("transition" in e)) return;
|
|
867
|
+
if ("select" in e || "ruler" in e || e.push === "outer") throw Error(`The parameter "${t}" must not use transition with select, ruler, or push.`);
|
|
868
|
+
if (!("value" in e || "expr" in e)) throw Error(`The transitioned parameter "${t}" must have a value or expr property.`);
|
|
869
|
+
let n = e.transition;
|
|
870
|
+
if (!n) throw Error(`The parameter "${t}" must have a transition configuration.`);
|
|
871
|
+
if (n.type !== "lerp") throw Error(`Unsupported transition type for parameter "${t}": ${n.type}`);
|
|
872
|
+
if (n.halfLife != null && (!Number.isFinite(n.halfLife) || n.halfLife <= 0)) throw Error(`The transition halfLife for parameter "${t}" must be a positive finite number.`);
|
|
873
|
+
if (n.epsilon != null && (!Number.isFinite(n.epsilon) || n.epsilon < 0)) throw Error(`The transition epsilon for parameter "${t}" must be a non-negative finite number.`);
|
|
874
|
+
}
|
|
875
|
+
function Ce(e, t) {
|
|
876
|
+
if (typeof t != "number" || !Number.isFinite(t)) throw Error(`Transitioned parameter "${e}" must have a finite numeric value.`);
|
|
877
|
+
return t;
|
|
878
|
+
}
|
|
879
|
+
//#endregion
|
|
880
|
+
//#region ../core/src/view/layout/flexLayout.js
|
|
881
|
+
function we(e, t, { spacing: n, devicePixelRatio: r, offset: i, reverse: a } = {}) {
|
|
882
|
+
n ||= 0, i ||= 0;
|
|
883
|
+
let o = Ne(e, t, n), s = 0, c = 0;
|
|
884
|
+
for (let t = 0; t < e.length; t++) s += o[t], D(e[t]) || c++;
|
|
885
|
+
let l = s + Math.max(0, c - 1) * n, u = r === void 0 ? (e) => e : (e) => Math.round(e * r) / r, d = 0, f = [], p = (e) => {
|
|
886
|
+
let t = d;
|
|
887
|
+
if (!t) return;
|
|
888
|
+
let r = (e ? n : 0) * (a ? -1 : 1);
|
|
889
|
+
m -= r;
|
|
890
|
+
for (let e = 0; e < t; e++) f.push({
|
|
891
|
+
location: m + (e + 1) / (t + 1) * r,
|
|
892
|
+
size: 0
|
|
893
|
+
});
|
|
894
|
+
m += r, d = 0;
|
|
895
|
+
}, m = a ? Math.max(t, l) : 0 + i;
|
|
896
|
+
if (e.length == 1 && D(e[0])) return [{
|
|
897
|
+
location: m,
|
|
898
|
+
size: 0
|
|
899
|
+
}];
|
|
900
|
+
for (let t = 0; t < e.length; t++) {
|
|
901
|
+
let r = e[t];
|
|
902
|
+
if (D(r)) d++;
|
|
903
|
+
else {
|
|
904
|
+
p(f.length > 0);
|
|
905
|
+
let e = o[t];
|
|
906
|
+
a && (m -= e), f.push({
|
|
907
|
+
location: u(m),
|
|
908
|
+
size: u(e)
|
|
909
|
+
}), a ? m -= n : m += e + n;
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
return m += a ? n : -n, p(!1), f;
|
|
913
|
+
}
|
|
914
|
+
function Te(e, { spacing: t } = { spacing: 0 }) {
|
|
915
|
+
let n = 0;
|
|
916
|
+
for (let r of e) n += A(r) + (D(r) ? 0 : t);
|
|
917
|
+
return Math.max(0, n - t);
|
|
918
|
+
}
|
|
919
|
+
function Ee(e, t, { spacing: n = 0 } = {}) {
|
|
920
|
+
let r = [], i = [], a = 0, o = 0;
|
|
921
|
+
for (let [s, c] of e.entries()) {
|
|
922
|
+
let e = A(c), l = !D(c), u = o && l ? n : 0;
|
|
923
|
+
i.length && a + u + e > t && (r.push(i), i = [], a = 0, o = 0), i.push(s), a += (o && l ? n : 0) + e, o += +!!l;
|
|
924
|
+
}
|
|
925
|
+
return i.length && r.push(i), r;
|
|
926
|
+
}
|
|
927
|
+
function De(e) {
|
|
928
|
+
let t = 0, n = 0, r = 0, i, a = !0;
|
|
929
|
+
for (let o of e) {
|
|
930
|
+
t = Math.max(t, o.px ?? 0), n = Math.max(n, o.grow ?? 0), r = Math.max(r, A(o));
|
|
931
|
+
let e = j(o);
|
|
932
|
+
e === void 0 ? a = !1 : i = i === void 0 ? e : Math.max(i, e);
|
|
933
|
+
}
|
|
934
|
+
return N({
|
|
935
|
+
px: t,
|
|
936
|
+
grow: n,
|
|
937
|
+
minPx: r,
|
|
938
|
+
maxPx: a ? i : void 0
|
|
939
|
+
});
|
|
940
|
+
}
|
|
941
|
+
function Oe(e) {
|
|
942
|
+
let t = {
|
|
943
|
+
px: 0,
|
|
944
|
+
grow: 0,
|
|
945
|
+
minPx: 0,
|
|
946
|
+
maxPx: 0
|
|
947
|
+
}, n = !0;
|
|
948
|
+
for (let r of e) {
|
|
949
|
+
t.px += O(r.px), t.grow += O(r.grow), t.minPx += A(r);
|
|
950
|
+
let e = j(r);
|
|
951
|
+
e === void 0 ? n = !1 : t.maxPx += e;
|
|
952
|
+
}
|
|
953
|
+
return n || delete t.maxPx, N(t);
|
|
954
|
+
}
|
|
955
|
+
var T = class e {
|
|
956
|
+
constructor(e, t) {
|
|
957
|
+
this.width = e, this.height = t;
|
|
958
|
+
}
|
|
959
|
+
addPadding(e) {
|
|
960
|
+
return this.#e(e.width, e.height);
|
|
961
|
+
}
|
|
962
|
+
subtractPadding(e) {
|
|
963
|
+
return this.#e(-e.width, -e.height);
|
|
964
|
+
}
|
|
965
|
+
#e(t, n) {
|
|
966
|
+
return new e(M(this.width, t), M(this.height, n));
|
|
967
|
+
}
|
|
968
|
+
isGrowing() {
|
|
969
|
+
return !!(this.width.grow || this.height.grow);
|
|
970
|
+
}
|
|
971
|
+
}, E = Object.freeze({
|
|
972
|
+
px: 0,
|
|
973
|
+
grow: 0
|
|
974
|
+
}), ke = new T(E, E);
|
|
975
|
+
function D(e) {
|
|
976
|
+
return !e.px && !e.grow && !e.minPx;
|
|
977
|
+
}
|
|
978
|
+
function Ae(e, t) {
|
|
979
|
+
return !e || !t ? !1 : e.px === t.px && e.grow === t.grow && e.minPx === t.minPx && e.maxPx === t.maxPx;
|
|
980
|
+
}
|
|
981
|
+
function O(e) {
|
|
982
|
+
return e || 0;
|
|
983
|
+
}
|
|
984
|
+
function je(e) {
|
|
985
|
+
return e && (n(e.px) || n(e.grow) || n(e.minPx) || n(e.maxPx));
|
|
986
|
+
}
|
|
987
|
+
function Me(e) {
|
|
988
|
+
if (J(e)) throw Error("parseSizeDef does not accept step-based sizes.");
|
|
989
|
+
if (je(e)) return Fe(e), N(e);
|
|
990
|
+
if (n(e)) return {
|
|
991
|
+
px: e,
|
|
992
|
+
grow: 0
|
|
993
|
+
};
|
|
994
|
+
if (e === "container" || !e) return {
|
|
995
|
+
px: 0,
|
|
996
|
+
grow: 1
|
|
997
|
+
};
|
|
998
|
+
throw Error(`Invalid sizeDef: ${e}`);
|
|
999
|
+
}
|
|
1000
|
+
function Ne(e, t, n) {
|
|
1001
|
+
let r = !1;
|
|
1002
|
+
for (let t of e) Fe(t), r ||= Ie(t);
|
|
1003
|
+
if (!r) return Pe(e, t, n);
|
|
1004
|
+
let i = Array(e.length).fill(0), a = [];
|
|
1005
|
+
for (let t = 0; t < e.length; t++) D(e[t]) || a.push(t);
|
|
1006
|
+
let o = Math.max(0, a.length - 1) * n, s = Math.max(0, t - o), c = /* @__PURE__ */ new Set();
|
|
1007
|
+
for (let t of a) {
|
|
1008
|
+
let n = e[t];
|
|
1009
|
+
O(n.grow) || (i[t] = k(O(n.px), n), c.add(t));
|
|
1010
|
+
}
|
|
1011
|
+
for (;;) {
|
|
1012
|
+
let t = 0, n = 0, r = 0;
|
|
1013
|
+
for (let o of a) c.has(o) ? r += i[o] : (t += O(e[o].px), n += O(e[o].grow));
|
|
1014
|
+
if (!n) {
|
|
1015
|
+
for (let t of a) c.has(t) || (i[t] = k(O(e[t].px), e[t]), c.add(t));
|
|
1016
|
+
break;
|
|
1017
|
+
}
|
|
1018
|
+
let o = Math.max(0, s - r - t), l = 0, u = [], d = [];
|
|
1019
|
+
for (let t of a) {
|
|
1020
|
+
if (c.has(t)) continue;
|
|
1021
|
+
let r = e[t], a = O(r.px) + O(r.grow) / n * o, s = k(a, r);
|
|
1022
|
+
i[t] = s;
|
|
1023
|
+
let f = s - a;
|
|
1024
|
+
l += f, f > 0 ? u.push(t) : f < 0 && d.push(t);
|
|
1025
|
+
}
|
|
1026
|
+
if (!u.length && !d.length) break;
|
|
1027
|
+
if (l > 0) for (let e of u) c.add(e);
|
|
1028
|
+
else if (l < 0) for (let e of d) c.add(e);
|
|
1029
|
+
else for (let e of a) c.add(e);
|
|
1030
|
+
}
|
|
1031
|
+
return i;
|
|
1032
|
+
}
|
|
1033
|
+
function Pe(e, t, n) {
|
|
1034
|
+
let r = 0, i = 0;
|
|
1035
|
+
for (let t of e) r += O(t.px) + (D(t) ? 0 : n), i += O(t.grow);
|
|
1036
|
+
r -= n;
|
|
1037
|
+
let a = Math.max(0, t - r), o = Array(e.length);
|
|
1038
|
+
for (let t = 0; t < e.length; t++) {
|
|
1039
|
+
let n = e[t];
|
|
1040
|
+
o[t] = D(n) ? 0 : O(n.px) + (i ? O(n.grow) / i * a : 0);
|
|
1041
|
+
}
|
|
1042
|
+
return o;
|
|
1043
|
+
}
|
|
1044
|
+
function Fe(e) {
|
|
1045
|
+
if (e.minPx !== void 0 && e.maxPx !== void 0 && e.minPx > e.maxPx) throw Error("SizeDef minPx cannot be greater than maxPx.");
|
|
1046
|
+
}
|
|
1047
|
+
function k(e, t) {
|
|
1048
|
+
return Math.min(Math.max(e, t.minPx ?? 0), t.maxPx ?? Infinity);
|
|
1049
|
+
}
|
|
1050
|
+
function A(e) {
|
|
1051
|
+
return k(O(e.px), e);
|
|
1052
|
+
}
|
|
1053
|
+
function j(e) {
|
|
1054
|
+
return e.maxPx ?? (O(e.grow) ? void 0 : A(e));
|
|
1055
|
+
}
|
|
1056
|
+
function Ie(e) {
|
|
1057
|
+
return e.minPx !== void 0 || e.maxPx !== void 0;
|
|
1058
|
+
}
|
|
1059
|
+
function M(e, t) {
|
|
1060
|
+
return N({
|
|
1061
|
+
px: (e.px ?? 0) + t,
|
|
1062
|
+
grow: e.grow,
|
|
1063
|
+
minPx: e.minPx === void 0 ? void 0 : Math.max(0, e.minPx + t),
|
|
1064
|
+
maxPx: e.maxPx === void 0 ? void 0 : Math.max(0, e.maxPx + t)
|
|
1065
|
+
});
|
|
1066
|
+
}
|
|
1067
|
+
function N(e) {
|
|
1068
|
+
let t = {}, n = e.px !== void 0, r = e.grow !== void 0, i = Ie(e);
|
|
1069
|
+
return e.px ? t.px = e.px : e.px === 0 && (t.px = 0), e.grow ? t.grow = e.grow : e.grow === 0 ? t.grow = 0 : !n && !r && i && (t.grow = 1), e.minPx && e.minPx > O(e.px) && (t.minPx = e.minPx), e.maxPx !== void 0 && (O(t.grow) || e.maxPx < O(e.px)) && (t.maxPx = e.maxPx), t;
|
|
1070
|
+
}
|
|
1071
|
+
//#endregion
|
|
1072
|
+
//#region ../core/src/view/layout/padding.js
|
|
1073
|
+
var P = class e {
|
|
1074
|
+
constructor(e, t, n, r) {
|
|
1075
|
+
this.top = e || 0, this.right = t || 0, this.bottom = n || 0, this.left = r || 0;
|
|
1076
|
+
}
|
|
1077
|
+
get width() {
|
|
1078
|
+
return this.left + this.right;
|
|
1079
|
+
}
|
|
1080
|
+
get height() {
|
|
1081
|
+
return this.top + this.bottom;
|
|
1082
|
+
}
|
|
1083
|
+
expand(t) {
|
|
1084
|
+
return t <= 0 ? this : new e(this.top + t, this.right + t, this.bottom + t, this.left + t);
|
|
1085
|
+
}
|
|
1086
|
+
add(t) {
|
|
1087
|
+
return new e(this.top + t.top, this.right + t.right, this.bottom + t.bottom, this.left + t.left);
|
|
1088
|
+
}
|
|
1089
|
+
subtract(t) {
|
|
1090
|
+
return new e(this.top - t.top, this.right - t.right, this.bottom - t.bottom, this.left - t.left);
|
|
1091
|
+
}
|
|
1092
|
+
union(t) {
|
|
1093
|
+
return new e(Math.max(this.top, t.top), Math.max(this.right, t.right), Math.max(this.bottom, t.bottom), Math.max(this.left, t.left));
|
|
1094
|
+
}
|
|
1095
|
+
getHorizontal() {
|
|
1096
|
+
return new e(0, this.right, 0, this.left);
|
|
1097
|
+
}
|
|
1098
|
+
getVertical() {
|
|
1099
|
+
return new e(this.top, 0, this.bottom, 0);
|
|
1100
|
+
}
|
|
1101
|
+
get horizontalTotal() {
|
|
1102
|
+
return this.left + this.right;
|
|
1103
|
+
}
|
|
1104
|
+
get verticalTotal() {
|
|
1105
|
+
return this.top + this.bottom;
|
|
1106
|
+
}
|
|
1107
|
+
static createFromConfig(e) {
|
|
1108
|
+
return typeof e == "number" ? this.createUniformPadding(e) : e ? this.createFromRecord(e) : F;
|
|
1109
|
+
}
|
|
1110
|
+
static createFromRecord(t) {
|
|
1111
|
+
return new e(t.top, t.right, t.bottom, t.left);
|
|
1112
|
+
}
|
|
1113
|
+
static zero() {
|
|
1114
|
+
return F;
|
|
1115
|
+
}
|
|
1116
|
+
static createUniformPadding(t) {
|
|
1117
|
+
return new e(t, t, t, t);
|
|
1118
|
+
}
|
|
1119
|
+
};
|
|
1120
|
+
function Le(e, t) {
|
|
1121
|
+
return t ? new P(t.top === !1 ? 0 : e.top, t.right === !1 ? 0 : e.right, t.bottom === !1 ? 0 : e.bottom, t.left === !1 ? 0 : e.left) : e;
|
|
1122
|
+
}
|
|
1123
|
+
var F = P.createUniformPadding(0);
|
|
1124
|
+
Object.freeze(F);
|
|
1125
|
+
//#endregion
|
|
1126
|
+
//#region ../core/src/utils/url.js
|
|
1127
|
+
var Re = /^([A-Za-z]+:)?\/\//;
|
|
1128
|
+
function I(e, t) {
|
|
1129
|
+
if (t && Re.test(t)) return t;
|
|
1130
|
+
let n = typeof e == "function" ? e() : e;
|
|
1131
|
+
if (!n) return t;
|
|
1132
|
+
if (!t) return n;
|
|
1133
|
+
if (/[#?]/.test(n)) throw Error(`Cannot append to a url with query or hash. Append: ${t}, base: ${n}`);
|
|
1134
|
+
return Be(n) + t;
|
|
1135
|
+
}
|
|
1136
|
+
function ze(e, t, n = Ve()) {
|
|
1137
|
+
let r = typeof e == "function" ? e() : e;
|
|
1138
|
+
if (!t) return r;
|
|
1139
|
+
try {
|
|
1140
|
+
if (r) {
|
|
1141
|
+
let e = n ? new URL(r, n).href : new URL(r).href;
|
|
1142
|
+
return new URL(t, e).href;
|
|
1143
|
+
} else if (n) return new URL(t, n).href;
|
|
1144
|
+
} catch {}
|
|
1145
|
+
return I(r, t);
|
|
1146
|
+
}
|
|
1147
|
+
function Be(e) {
|
|
1148
|
+
let t = e.replace(/[^/]*$/, "");
|
|
1149
|
+
return t === "" ? void 0 : t.endsWith("://") ? e + "/" : t;
|
|
1150
|
+
}
|
|
1151
|
+
function Ve() {
|
|
1152
|
+
if (typeof document < "u" && document.baseURI) return document.baseURI;
|
|
1153
|
+
if (typeof window < "u" && window.location?.href) return window.location.href;
|
|
1154
|
+
}
|
|
1155
|
+
//#endregion
|
|
1156
|
+
//#region ../core/src/utils/addBaseUrl.js
|
|
1157
|
+
function He(e, t) {
|
|
1158
|
+
return !t || /^(data:|([A-Za-z]+:)?\/\/)/.test(e) || e.startsWith("/") ? e : (t.endsWith("/") || (t += "/"), t + e);
|
|
1159
|
+
}
|
|
1160
|
+
function Ue(e) {
|
|
1161
|
+
if (!e) return e;
|
|
1162
|
+
if (/[?#]/.test(e)) throw Error(`Invalid base URL: ${e} - cannot contain query or hash.`);
|
|
1163
|
+
return e.endsWith("/") ? e : e + "/";
|
|
1164
|
+
}
|
|
1165
|
+
//#endregion
|
|
1166
|
+
//#region ../core/src/config/mergeConfig.js
|
|
1167
|
+
function L(e) {
|
|
1168
|
+
return a(e) && !Array.isArray(e);
|
|
1169
|
+
}
|
|
1170
|
+
function We(e) {
|
|
1171
|
+
let t = {};
|
|
1172
|
+
for (let [n, r] of Object.entries(e)) t[n] = R(r);
|
|
1173
|
+
return t;
|
|
1174
|
+
}
|
|
1175
|
+
function R(e) {
|
|
1176
|
+
return Array.isArray(e) ? e.map(R) : L(e) ? We(e) : e;
|
|
1177
|
+
}
|
|
1178
|
+
function z(e, t) {
|
|
1179
|
+
for (let [n, r] of Object.entries(t)) {
|
|
1180
|
+
if (r === void 0) continue;
|
|
1181
|
+
let t = e[n];
|
|
1182
|
+
L(r) && L(t) ? z(t, r) : e[n] = R(r);
|
|
1183
|
+
}
|
|
1184
|
+
return e;
|
|
1185
|
+
}
|
|
1186
|
+
function B(e) {
|
|
1187
|
+
let t = {};
|
|
1188
|
+
for (let n of e) n && z(t, n);
|
|
1189
|
+
return t;
|
|
1190
|
+
}
|
|
1191
|
+
//#endregion
|
|
1192
|
+
//#region ../core/src/view/viewChrome.js
|
|
1193
|
+
var V = /* @__PURE__ */ new WeakMap();
|
|
1194
|
+
function Ge(e, t) {
|
|
1195
|
+
V.set(e, t);
|
|
1196
|
+
}
|
|
1197
|
+
function Ke(e) {
|
|
1198
|
+
return V.get(e);
|
|
1199
|
+
}
|
|
1200
|
+
function H(e) {
|
|
1201
|
+
return V.has(e);
|
|
1202
|
+
}
|
|
1203
|
+
function U(e) {
|
|
1204
|
+
let t = e;
|
|
1205
|
+
for (; t;) {
|
|
1206
|
+
let n = V.get(t);
|
|
1207
|
+
if (n === "excludeSubtree" || t === e && n === "exclude") return !0;
|
|
1208
|
+
t = t.layoutParent;
|
|
1209
|
+
}
|
|
1210
|
+
return !1;
|
|
1211
|
+
}
|
|
1212
|
+
//#endregion
|
|
1213
|
+
//#region ../core/src/view/postScaleParams.js
|
|
1214
|
+
var W = /* @__PURE__ */ new WeakMap();
|
|
1215
|
+
function qe(e, t) {
|
|
1216
|
+
W.set(e, t);
|
|
1217
|
+
}
|
|
1218
|
+
function Je(e) {
|
|
1219
|
+
return W.get(e);
|
|
1220
|
+
}
|
|
1221
|
+
//#endregion
|
|
1222
|
+
//#region ../core/src/data/namedDataScope.js
|
|
1223
|
+
var Ye = class {
|
|
1224
|
+
name;
|
|
1225
|
+
owner;
|
|
1226
|
+
getDefaultData;
|
|
1227
|
+
#e;
|
|
1228
|
+
#t = !1;
|
|
1229
|
+
#n = 0;
|
|
1230
|
+
#r = !1;
|
|
1231
|
+
constructor(e, t, n) {
|
|
1232
|
+
this.name = e, this.owner = t, this.getDefaultData = n;
|
|
1233
|
+
}
|
|
1234
|
+
get disposed() {
|
|
1235
|
+
return this.#r;
|
|
1236
|
+
}
|
|
1237
|
+
beginUpdate() {
|
|
1238
|
+
if (this.#r) throw Error(`Named dataset "${this.name}" has been disposed.`);
|
|
1239
|
+
return ++this.#n;
|
|
1240
|
+
}
|
|
1241
|
+
isCurrentUpdate(e) {
|
|
1242
|
+
return !this.#r && e === this.#n;
|
|
1243
|
+
}
|
|
1244
|
+
getData() {
|
|
1245
|
+
if (this.#r) throw Error(`Named dataset "${this.name}" has been disposed.`);
|
|
1246
|
+
let e = this.#t ? this.#e : this.getDefaultData();
|
|
1247
|
+
if (e === void 0) return [];
|
|
1248
|
+
if (!Array.isArray(e)) throw Error(`Named data "${this.name}" is not an array!`);
|
|
1249
|
+
return e;
|
|
1250
|
+
}
|
|
1251
|
+
setData(e) {
|
|
1252
|
+
if (!Array.isArray(e)) throw Error(`Named data "${this.name}" is not an array!`);
|
|
1253
|
+
this.#e = e, this.#t = !0;
|
|
1254
|
+
}
|
|
1255
|
+
resetData() {
|
|
1256
|
+
this.#e = void 0, this.#t = !1;
|
|
1257
|
+
}
|
|
1258
|
+
dispose() {
|
|
1259
|
+
this.#e = void 0, this.#t = !1, this.#n++, this.#r = !0;
|
|
1260
|
+
}
|
|
1261
|
+
}, Xe = class {
|
|
1262
|
+
view;
|
|
1263
|
+
#e = /* @__PURE__ */ new Map();
|
|
1264
|
+
#t = /* @__PURE__ */ new Map();
|
|
1265
|
+
constructor(e) {
|
|
1266
|
+
this.view = e;
|
|
1267
|
+
for (let [t, n] of Object.entries(e.spec.datasets ?? {})) this.#e.set(t, new Ye(t, e, () => n));
|
|
1268
|
+
}
|
|
1269
|
+
getLocalBinding(e) {
|
|
1270
|
+
return this.#e.get(e);
|
|
1271
|
+
}
|
|
1272
|
+
findDeclaredBinding(e) {
|
|
1273
|
+
return this.#e.get(e) || this.view.dataParent?.namedDataScope.findDeclaredBinding(e);
|
|
1274
|
+
}
|
|
1275
|
+
resolve(e) {
|
|
1276
|
+
let t = this.#e.get(e);
|
|
1277
|
+
if (t) return t;
|
|
1278
|
+
let n = this.view.dataParent?.namedDataScope;
|
|
1279
|
+
if (n) return n.resolve(e);
|
|
1280
|
+
let r = this.#t.get(e);
|
|
1281
|
+
return r || (r = new Ye(e, void 0, () => this.view.context.getNamedDataFromProvider(e)), this.#t.set(e, r)), r;
|
|
1282
|
+
}
|
|
1283
|
+
dispose() {
|
|
1284
|
+
for (let e of this.#e.values()) e.dispose();
|
|
1285
|
+
this.#e.clear();
|
|
1286
|
+
for (let e of this.#t.values()) e.dispose();
|
|
1287
|
+
this.#t.clear();
|
|
1288
|
+
}
|
|
1289
|
+
}, G = "VISIT_SKIP", K = "VISIT_STOP", q = (e) => e, Ze = class {
|
|
1290
|
+
spec;
|
|
1291
|
+
namedDataScope;
|
|
1292
|
+
#e;
|
|
1293
|
+
#t;
|
|
1294
|
+
#n = {};
|
|
1295
|
+
#r = {};
|
|
1296
|
+
#i = {};
|
|
1297
|
+
#a;
|
|
1298
|
+
#o;
|
|
1299
|
+
#s = !1;
|
|
1300
|
+
#c = !1;
|
|
1301
|
+
#l = void 0;
|
|
1302
|
+
#u = !1;
|
|
1303
|
+
#d = [];
|
|
1304
|
+
opacityFunction = q;
|
|
1305
|
+
#f = [];
|
|
1306
|
+
#p = "none";
|
|
1307
|
+
#m = /* @__PURE__ */ new Map();
|
|
1308
|
+
facetCoords = new te([], JSON.stringify);
|
|
1309
|
+
constructor(e, t, n, r, i, a = {}) {
|
|
1310
|
+
if (!e) throw Error("View spec must be defined!");
|
|
1311
|
+
if (this.context = t, this.layoutParent = n, this.dataParent = r, this.#t = i, this.spec = e, this.namedDataScope = new Xe(this), r && e.theme !== void 0) throw Error("\"theme\" is only supported at the root specification. Use \"config\" and \"style\" for subtree customization.");
|
|
1312
|
+
let o = r ? r.getConfigScopes() : [t.getBaseConfig()], s = e.config;
|
|
1313
|
+
this.#e = [...o, s].filter((e) => !!e), this.resolutions = {
|
|
1314
|
+
scale: {},
|
|
1315
|
+
axis: {},
|
|
1316
|
+
legend: {}
|
|
1317
|
+
}, ie(this), this.options = {
|
|
1318
|
+
inheritEncoding: !1,
|
|
1319
|
+
layoutSizeParams: "own",
|
|
1320
|
+
...a
|
|
1321
|
+
}, this.flowHandle = void 0, this.needsAxes = {
|
|
1322
|
+
x: !1,
|
|
1323
|
+
y: !1
|
|
1324
|
+
}, this.paramRuntime = new be(() => this.dataParent?.paramRuntime, (e) => this.getScaleResolution(e), t.animator, { snapTransitionedUpdates: !0 });
|
|
1325
|
+
let c = [...e.params ?? [], ...Je(e) ?? []];
|
|
1326
|
+
for (let e of c) {
|
|
1327
|
+
if ("expr" in e) {
|
|
1328
|
+
let { usesScaleHelper: t, globals: n } = p(e.expr), r = n.some((e) => this.paramRuntime.isPendingParam(e));
|
|
1329
|
+
if (t || r) {
|
|
1330
|
+
this.paramRuntime.registerParam(e, { defer: !0 }), this.#d.push(e.name);
|
|
1331
|
+
continue;
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
this.paramRuntime.registerParam(e);
|
|
1335
|
+
}
|
|
1336
|
+
this.options.layoutSizeParams !== "inherit" && (this.#a = this.#h("width"), this.#o = this.#h("height"));
|
|
1337
|
+
}
|
|
1338
|
+
#h(e) {
|
|
1339
|
+
if (!(this.paramRuntime.hasLocalParam(e) || this.options.layoutSizeParams != "force" && this.paramRuntime.hasConfiguredParamInScopeChain(e))) return this.paramRuntime.allocateSetter(e, 0);
|
|
1340
|
+
}
|
|
1341
|
+
get name() {
|
|
1342
|
+
return this.spec.name ?? this.#t;
|
|
1343
|
+
}
|
|
1344
|
+
get explicitName() {
|
|
1345
|
+
return this.spec.name;
|
|
1346
|
+
}
|
|
1347
|
+
getZindex() {
|
|
1348
|
+
return this.spec.zindex ?? 0;
|
|
1349
|
+
}
|
|
1350
|
+
get defaultName() {
|
|
1351
|
+
return this.#t;
|
|
1352
|
+
}
|
|
1353
|
+
getConfig() {
|
|
1354
|
+
return B(this.#e);
|
|
1355
|
+
}
|
|
1356
|
+
getCursorSpec() {
|
|
1357
|
+
return this.spec.cursor;
|
|
1358
|
+
}
|
|
1359
|
+
getCursor() {
|
|
1360
|
+
let e = this.getCursorSpec();
|
|
1361
|
+
return u(e) ? this.paramRuntime.evaluateAndGet(e.expr) : e;
|
|
1362
|
+
}
|
|
1363
|
+
watchCursor(e, t) {
|
|
1364
|
+
let n = this.getCursorSpec();
|
|
1365
|
+
u(n) && this.paramRuntime.watchExpression(n.expr, e, {
|
|
1366
|
+
scopeOwned: !1,
|
|
1367
|
+
registerDisposer: t
|
|
1368
|
+
});
|
|
1369
|
+
}
|
|
1370
|
+
getConfigScopes() {
|
|
1371
|
+
return this.#e.slice();
|
|
1372
|
+
}
|
|
1373
|
+
get coords() {
|
|
1374
|
+
return this.facetCoords.values().next().value;
|
|
1375
|
+
}
|
|
1376
|
+
getPadding() {
|
|
1377
|
+
return this._cache("size/padding", () => P.createFromConfig(this.spec.padding));
|
|
1378
|
+
}
|
|
1379
|
+
getOverhang() {
|
|
1380
|
+
return P.zero();
|
|
1381
|
+
}
|
|
1382
|
+
isScrollable() {
|
|
1383
|
+
return this.spec.viewportWidth != null || this.spec.viewportHeight != null;
|
|
1384
|
+
}
|
|
1385
|
+
getSize() {
|
|
1386
|
+
return this._cache("size/size", () => this.isConfiguredVisible() ? new T(this.#g("width"), this.#g("height")) : ke);
|
|
1387
|
+
}
|
|
1388
|
+
getViewportSize() {
|
|
1389
|
+
if (!this.isScrollable()) return this.getSize();
|
|
1390
|
+
if (!this.isConfiguredVisible()) return ke;
|
|
1391
|
+
let e = this.getSize();
|
|
1392
|
+
return new T(this.#g("viewportWidth") ?? e.width, this.#g("viewportHeight") ?? e.height);
|
|
1393
|
+
}
|
|
1394
|
+
#g(e) {
|
|
1395
|
+
let { value: t, implicit: n } = this.#_(e), r = this.resolveSizeValue(e, t), i = J(r), a = e == "viewportWidth" || e == "viewportHeight";
|
|
1396
|
+
if (i) {
|
|
1397
|
+
if (a) throw new y(`Cannot use step-based size with "${e}"!`, this);
|
|
1398
|
+
let t = this.#x(e, r), i = this.getScaleResolution(e == "width" ? "x" : "y")?.getScale();
|
|
1399
|
+
if (i) {
|
|
1400
|
+
let n;
|
|
1401
|
+
if (_(i.type)) n = i.domain().length;
|
|
1402
|
+
else if (["locus", "index"].includes(i.type)) {
|
|
1403
|
+
let e = i.domain();
|
|
1404
|
+
n = c(e) - e[0];
|
|
1405
|
+
} else throw new y(`Cannot use step-based size with "${i.type}" scale!`, this);
|
|
1406
|
+
let a = i;
|
|
1407
|
+
n = ne(n, a.paddingInner(), a.paddingOuter());
|
|
1408
|
+
let o = e == "width" ? "xOffset" : "yOffset", s = this.getScaleResolution(o)?.getScale(), l = r.for ?? (s && _(s.type) ? "offset" : "position"), u = t;
|
|
1409
|
+
if (l == "offset") {
|
|
1410
|
+
if (!s || !_(s.type)) throw new y(`Cannot use ${e}.step.for = "offset" without a discrete ${o} scale!`, this);
|
|
1411
|
+
let t = s, n = ne(s.domain().length, t.paddingInner(), t.paddingOuter());
|
|
1412
|
+
u *= n / (1 - a.paddingInner());
|
|
1413
|
+
}
|
|
1414
|
+
return {
|
|
1415
|
+
px: n * u,
|
|
1416
|
+
grow: 0
|
|
1417
|
+
};
|
|
1418
|
+
} else if (n) return {
|
|
1419
|
+
px: t,
|
|
1420
|
+
grow: 0
|
|
1421
|
+
};
|
|
1422
|
+
else throw new y(`Cannot use step-based size with "${e}"!`, this);
|
|
1423
|
+
} else return (r && Me(r)) ?? (a ? void 0 : {
|
|
1424
|
+
px: 0,
|
|
1425
|
+
grow: 1
|
|
1426
|
+
});
|
|
1427
|
+
}
|
|
1428
|
+
#_(e) {
|
|
1429
|
+
let t = this.spec[e];
|
|
1430
|
+
return t != null || e == "viewportWidth" || e == "viewportHeight" ? {
|
|
1431
|
+
value: t,
|
|
1432
|
+
implicit: !1
|
|
1433
|
+
} : {
|
|
1434
|
+
value: this.#v(e),
|
|
1435
|
+
implicit: !0
|
|
1436
|
+
};
|
|
1437
|
+
}
|
|
1438
|
+
#v(e) {
|
|
1439
|
+
if (U(this)) return;
|
|
1440
|
+
let t = this.getConfig().view;
|
|
1441
|
+
if (!t) return;
|
|
1442
|
+
let n = e == "width" ? "x" : "y", r = this.getScaleResolution(n)?.getResolvedScaleType();
|
|
1443
|
+
return r && !_(r) ? e == "width" ? t.continuousWidth : t.continuousHeight : (e == "width" ? t.discreteWidth : t.discreteHeight) ?? (t.step === void 0 ? void 0 : { step: t.step });
|
|
1444
|
+
}
|
|
1445
|
+
resolveSizeValue(e, t) {
|
|
1446
|
+
if (!u(t)) return t;
|
|
1447
|
+
let n = this.#C(e)();
|
|
1448
|
+
if (nt(n) || n === "container") return n;
|
|
1449
|
+
throw new y(`"${e}" ExprRef must resolve to a finite number or "container"!`, this);
|
|
1450
|
+
}
|
|
1451
|
+
registerSizeInvalidation() {
|
|
1452
|
+
this.#y("width", "x"), this.#y("height", "y"), this.#b("width"), this.#b("height"), this.#b("viewportWidth"), this.#b("viewportHeight");
|
|
1453
|
+
}
|
|
1454
|
+
#y(e, t) {
|
|
1455
|
+
let { value: n, implicit: r } = this.#_(e);
|
|
1456
|
+
if (!J(n)) return;
|
|
1457
|
+
let i = this.getScaleResolution(t);
|
|
1458
|
+
if (!i) {
|
|
1459
|
+
if (r) return;
|
|
1460
|
+
throw new y("Cannot use 'step' size without a scale!", this);
|
|
1461
|
+
}
|
|
1462
|
+
let a = () => {
|
|
1463
|
+
let t = this.getSize()[e];
|
|
1464
|
+
this.invalidateSizeCache();
|
|
1465
|
+
let n = this.getSize()[e];
|
|
1466
|
+
Ae(t, n) || this.context.requestLayoutReflow();
|
|
1467
|
+
};
|
|
1468
|
+
if (i.addEventListener("domain", a), this.registerDisposer(() => i.removeEventListener("domain", a)), n.for != "position") {
|
|
1469
|
+
let t = e == "width" ? "xOffset" : "yOffset", n = this.getScaleResolution(t);
|
|
1470
|
+
n && _(n.getResolvedScaleType()) && (n.addEventListener("domain", a), this.registerDisposer(() => n.removeEventListener("domain", a)));
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1473
|
+
#b(e) {
|
|
1474
|
+
let { value: t } = this.#_(e);
|
|
1475
|
+
u(t) ? this.#S(e, t.expr) : J(t) && u(t.step) && this.#S(e + ".step", t.step.expr);
|
|
1476
|
+
}
|
|
1477
|
+
#x(e, t) {
|
|
1478
|
+
let n = u(t.step) ? this.#C(e + ".step")() : t.step;
|
|
1479
|
+
if (nt(n)) return n;
|
|
1480
|
+
throw new y(`"${e}.step" ExprRef must resolve to a finite number!`, this);
|
|
1481
|
+
}
|
|
1482
|
+
#S(e, t) {
|
|
1483
|
+
if (!this.#m.has(e)) {
|
|
1484
|
+
let n = this.paramRuntime.watchExpression(t, () => {
|
|
1485
|
+
this.invalidateSizeCache(), this.context.requestLayoutReflow();
|
|
1486
|
+
});
|
|
1487
|
+
this.#m.set(e, n);
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
#C(e) {
|
|
1491
|
+
let t = this.#m.get(e);
|
|
1492
|
+
if (!t) throw new y(`"${e}" ExprRef was not registered before layout!`, this);
|
|
1493
|
+
return t;
|
|
1494
|
+
}
|
|
1495
|
+
isConfiguredVisible() {
|
|
1496
|
+
return this.context.isViewConfiguredVisible(this);
|
|
1497
|
+
}
|
|
1498
|
+
isVisibleInSpec() {
|
|
1499
|
+
return this.spec.visible ?? !0;
|
|
1500
|
+
}
|
|
1501
|
+
isVisible() {
|
|
1502
|
+
return this.getLayoutAncestors().every((e) => e.isConfiguredVisible());
|
|
1503
|
+
}
|
|
1504
|
+
isDomainInert() {
|
|
1505
|
+
if (this.spec.domainInert) return !0;
|
|
1506
|
+
let e = this.dataParent;
|
|
1507
|
+
return e ? e.isDomainInert() : !1;
|
|
1508
|
+
}
|
|
1509
|
+
getDataInitializationState() {
|
|
1510
|
+
return this.#p;
|
|
1511
|
+
}
|
|
1512
|
+
_setDataInitializationState(e) {
|
|
1513
|
+
this.#p = e;
|
|
1514
|
+
}
|
|
1515
|
+
isDataInitialized() {
|
|
1516
|
+
return this.#p === "ready";
|
|
1517
|
+
}
|
|
1518
|
+
getEffectiveOpacity() {
|
|
1519
|
+
return this.opacityFunction(this.layoutParent?.getEffectiveOpacity() ?? 1);
|
|
1520
|
+
}
|
|
1521
|
+
getOpacity() {
|
|
1522
|
+
return this.opacityFunction(1);
|
|
1523
|
+
}
|
|
1524
|
+
hasLocalOpacity() {
|
|
1525
|
+
return this.opacityFunction !== q;
|
|
1526
|
+
}
|
|
1527
|
+
getPathString() {
|
|
1528
|
+
return this.getLayoutAncestors().map((e) => e.name).reverse().join("/");
|
|
1529
|
+
}
|
|
1530
|
+
#w(e) {
|
|
1531
|
+
let t = [], n = this;
|
|
1532
|
+
do
|
|
1533
|
+
t.push(n), n = n[e];
|
|
1534
|
+
while (n);
|
|
1535
|
+
return t;
|
|
1536
|
+
}
|
|
1537
|
+
getLayoutAncestors() {
|
|
1538
|
+
return this.#w("layoutParent");
|
|
1539
|
+
}
|
|
1540
|
+
getDataAncestors() {
|
|
1541
|
+
return this.#w("dataParent");
|
|
1542
|
+
}
|
|
1543
|
+
handleBroadcast(e) {
|
|
1544
|
+
for (let t of this.#n[e.type] || []) t(e);
|
|
1545
|
+
}
|
|
1546
|
+
_addBroadcastHandler(e, t) {
|
|
1547
|
+
let n = this.#n[e];
|
|
1548
|
+
return n || (n = [], this.#n[e] = n), n.push(t), () => {
|
|
1549
|
+
let n = this.#n[e];
|
|
1550
|
+
if (!n) return;
|
|
1551
|
+
let r = n.indexOf(t);
|
|
1552
|
+
r >= 0 && n.splice(r, 1);
|
|
1553
|
+
};
|
|
1554
|
+
}
|
|
1555
|
+
handleInteraction(e, t) {
|
|
1556
|
+
t && e.type === "mousemove" && e.pointedViews.add(this);
|
|
1557
|
+
let n = t ? this.#r : this.#i;
|
|
1558
|
+
for (let t of n[e.type] || []) t(e);
|
|
1559
|
+
}
|
|
1560
|
+
addInteractionListener(e, t, n) {
|
|
1561
|
+
let r = n ? this.#r : this.#i, i = r[e];
|
|
1562
|
+
i || (i = [], r[e] = i), i.push(t);
|
|
1563
|
+
}
|
|
1564
|
+
removeInteractionListener(e, t, n) {
|
|
1565
|
+
let r = (n ? this.#r : this.#i)?.[e];
|
|
1566
|
+
if (r) {
|
|
1567
|
+
let e = r.indexOf(t);
|
|
1568
|
+
e >= 0 && r.splice(e, 1);
|
|
1569
|
+
}
|
|
1570
|
+
}
|
|
1571
|
+
visit(e) {
|
|
1572
|
+
try {
|
|
1573
|
+
let t = e(this);
|
|
1574
|
+
if (e.postOrder && e.postOrder(this), t !== "VISIT_STOP") return t;
|
|
1575
|
+
} catch (e) {
|
|
1576
|
+
throw e.view = this, e;
|
|
1577
|
+
}
|
|
1578
|
+
}
|
|
1579
|
+
getDescendants() {
|
|
1580
|
+
let e = [];
|
|
1581
|
+
return this.visit((t) => {
|
|
1582
|
+
e.push(t);
|
|
1583
|
+
}), e;
|
|
1584
|
+
}
|
|
1585
|
+
dispose() {
|
|
1586
|
+
for (let e of this.#f) e();
|
|
1587
|
+
this.#f.length = 0;
|
|
1588
|
+
let e = this.flowHandle;
|
|
1589
|
+
e?.collector && (this.context.dataFlow.pruneCollectorBranch(e.collector), this.context.dataFlow.removeCollector(e.collector)), e?.dataSource && e.dataSource.view === this && !e.dataSource.shareKey && this.context.dataFlow.removeDataSource(e.dataSource), this.paramRuntime.dispose(), this.namedDataScope.dispose(), this.context.dataFlow.loadingStatusRegistry.delete(this), this.flowHandle = void 0;
|
|
1590
|
+
}
|
|
1591
|
+
registerDisposer(e) {
|
|
1592
|
+
this.#f.push(e);
|
|
1593
|
+
}
|
|
1594
|
+
disposeSubtree() {
|
|
1595
|
+
let e = () => void 0;
|
|
1596
|
+
e.postOrder = (e) => {
|
|
1597
|
+
e.dispose();
|
|
1598
|
+
}, this.visit(e);
|
|
1599
|
+
}
|
|
1600
|
+
configurePostScaleParams() {
|
|
1601
|
+
let e = this.#d;
|
|
1602
|
+
if (e.length && !this.#u) {
|
|
1603
|
+
this.#u = !0, this.#l = !1;
|
|
1604
|
+
for (let t of e) this.paramRuntime.getValue(t);
|
|
1605
|
+
this.registerDisposer(this._addBroadcastHandler("subtreeDataReady", () => {
|
|
1606
|
+
this.#l = !0, this.#T();
|
|
1607
|
+
}));
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
configureViewOpacity() {
|
|
1611
|
+
(!this.opacityFunction || this.opacityFunction === q) && (this.opacityFunction = $e(this));
|
|
1612
|
+
}
|
|
1613
|
+
finalizeParamRuntimeInitialization() {
|
|
1614
|
+
this.#l === void 0 ? this.paramRuntime.finalizeInitialization() : this.#T();
|
|
1615
|
+
}
|
|
1616
|
+
onBeforeRender() {
|
|
1617
|
+
this.#s ||= !0;
|
|
1618
|
+
}
|
|
1619
|
+
hasRendered() {
|
|
1620
|
+
return this.#s;
|
|
1621
|
+
}
|
|
1622
|
+
arrange(e, t, n = {}) {
|
|
1623
|
+
if (n.firstFacet && this.facetCoords.clear(), this.facetCoords.set(n.facetId, m(t, f(n))), this.#a || this.#o) {
|
|
1624
|
+
let e = this.getOverhang(), n = this.layoutParent ? P.zero() : this.getPadding();
|
|
1625
|
+
this.#a?.(t.width - e.width - n.width), this.#o?.(t.height - e.height - n.height);
|
|
1626
|
+
}
|
|
1627
|
+
this.#c = !0, this.#T();
|
|
1628
|
+
}
|
|
1629
|
+
#T() {
|
|
1630
|
+
this.#l && this.#c && (this.#l = void 0, this.paramRuntime.finalizeInitialization());
|
|
1631
|
+
}
|
|
1632
|
+
getEncoding() {
|
|
1633
|
+
let e = this.dataParent && this.options.inheritEncoding ? this.dataParent.getEncoding() : {}, t = this.spec.encoding || {}, n = {
|
|
1634
|
+
...e,
|
|
1635
|
+
...t
|
|
1636
|
+
};
|
|
1637
|
+
for (let [e, t] of Object.entries(n)) t === null && delete n[e];
|
|
1638
|
+
return n;
|
|
1639
|
+
}
|
|
1640
|
+
getFacetAccessor(e) {
|
|
1641
|
+
if (this.layoutParent) return this.layoutParent.getFacetAccessor(this);
|
|
1642
|
+
}
|
|
1643
|
+
getFacetFields(e) {
|
|
1644
|
+
let t = this.getEncoding().sample;
|
|
1645
|
+
return d(t) ? [t.field] : this.options.inheritEncoding ? this.layoutParent?.getFacetFields(this) : [];
|
|
1646
|
+
}
|
|
1647
|
+
usesSampleFacetRendering() {
|
|
1648
|
+
return this.layoutParent?.usesSampleFacetRendering() ?? !1;
|
|
1649
|
+
}
|
|
1650
|
+
getParentGridChromePolicy() {
|
|
1651
|
+
return {
|
|
1652
|
+
axes: !0,
|
|
1653
|
+
background: !0
|
|
1654
|
+
};
|
|
1655
|
+
}
|
|
1656
|
+
getScaleResolution(e) {
|
|
1657
|
+
let t = l(e);
|
|
1658
|
+
return this.getDataAncestors().map((e) => e.resolutions.scale[t]).find((e) => e);
|
|
1659
|
+
}
|
|
1660
|
+
getAxisResolution(e) {
|
|
1661
|
+
let t = l(e);
|
|
1662
|
+
return this.getDataAncestors().map((e) => e.resolutions.axis[t]).find((e) => e);
|
|
1663
|
+
}
|
|
1664
|
+
getLegendResolution(e) {
|
|
1665
|
+
let t = l(e);
|
|
1666
|
+
return this.getDataAncestors().map((e) => e.resolutions.legend[t]).find((e) => e);
|
|
1667
|
+
}
|
|
1668
|
+
getConfiguredResolution(e, t) {
|
|
1669
|
+
return this.spec.resolve?.[t]?.[e];
|
|
1670
|
+
}
|
|
1671
|
+
getConfiguredOrDefaultResolution(e, t) {
|
|
1672
|
+
return (this.getConfiguredResolution(e, t) ?? this.getConfiguredResolution("default", t)) || (t == "legend" ? this.getConfiguredOrDefaultResolution(e, "scale") : this.getDefaultResolution(e, t));
|
|
1673
|
+
}
|
|
1674
|
+
getDefaultResolution(e, t) {
|
|
1675
|
+
return "independent";
|
|
1676
|
+
}
|
|
1677
|
+
getBaseUrl() {
|
|
1678
|
+
return I(() => this.dataParent?.getBaseUrl(), Ue(this.spec.baseUrl));
|
|
1679
|
+
}
|
|
1680
|
+
isPickingSupported() {
|
|
1681
|
+
return !0;
|
|
1682
|
+
}
|
|
1683
|
+
getTitleText() {
|
|
1684
|
+
let e = this.spec.title;
|
|
1685
|
+
if (e) return o(e) ? e : u(e.text) ? this.paramRuntime.evaluateAndGet(e.text.expr) : e.text;
|
|
1686
|
+
}
|
|
1687
|
+
_cache(e, t) {
|
|
1688
|
+
return re(this, e, t);
|
|
1689
|
+
}
|
|
1690
|
+
_invalidateCacheByPrefix(e, t = "self") {
|
|
1691
|
+
switch (t) {
|
|
1692
|
+
case "self":
|
|
1693
|
+
v(this, e);
|
|
1694
|
+
break;
|
|
1695
|
+
case "ancestors":
|
|
1696
|
+
for (let t of this.getLayoutAncestors()) v(t, e);
|
|
1697
|
+
break;
|
|
1698
|
+
case "progeny":
|
|
1699
|
+
this.visit((t) => v(t, e));
|
|
1700
|
+
break;
|
|
1701
|
+
default:
|
|
1702
|
+
}
|
|
1703
|
+
}
|
|
1704
|
+
invalidateSizeCache() {
|
|
1705
|
+
v(this, "size"), this._invalidateCacheByPrefix("size", "ancestors");
|
|
1706
|
+
}
|
|
1707
|
+
propagateInteraction(e) {}
|
|
1708
|
+
};
|
|
1709
|
+
function Qe(e) {
|
|
1710
|
+
return "unitsPerPixel" in e;
|
|
1711
|
+
}
|
|
1712
|
+
function $e(e) {
|
|
1713
|
+
let t = "opacity" in e.spec ? e.spec.opacity : void 0;
|
|
1714
|
+
if (t !== void 0) {
|
|
1715
|
+
if (n(t)) return (e) => e * t;
|
|
1716
|
+
if (Qe(t)) {
|
|
1717
|
+
let n = (t) => {
|
|
1718
|
+
let n = e.getScaleResolution(t), r = n?.getScale();
|
|
1719
|
+
if ([
|
|
1720
|
+
"linear",
|
|
1721
|
+
"index",
|
|
1722
|
+
"locus"
|
|
1723
|
+
].includes(r?.type)) return {
|
|
1724
|
+
scale: r,
|
|
1725
|
+
scaleResolution: n
|
|
1726
|
+
};
|
|
1727
|
+
}, r = tt(t.values, "opacity.values", e);
|
|
1728
|
+
if (!g(t.unitsPerPixel)) throw new y("\"opacity.unitsPerPixel\" must be an array.", e);
|
|
1729
|
+
let i = () => 1, a = [], o = () => {
|
|
1730
|
+
let t = et(tt(a.map((e) => e()), "opacity.unitsPerPixel", e), r, e), n = ee().domain(t.unitsPerPixel).range(t.values).clamp(!0);
|
|
1731
|
+
i = (e) => n(e);
|
|
1732
|
+
};
|
|
1733
|
+
a = t.unitsPerPixel.map((t) => {
|
|
1734
|
+
if (u(t)) {
|
|
1735
|
+
let n = e.paramRuntime.watchExpression(t.expr, () => {
|
|
1736
|
+
o(), e.context.animator.requestRender();
|
|
1737
|
+
});
|
|
1738
|
+
return () => n(null);
|
|
1739
|
+
} else return () => t;
|
|
1740
|
+
}), o();
|
|
1741
|
+
let c = (e) => {
|
|
1742
|
+
let t = e.scaleResolution.getAxisLength() || 1e3;
|
|
1743
|
+
return s(e.scale.domain()) / t;
|
|
1744
|
+
}, l;
|
|
1745
|
+
if (t.channel === "auto") {
|
|
1746
|
+
let t = n("x"), r = n("y");
|
|
1747
|
+
if (t && r) l = () => (c(t) + c(r)) / 2;
|
|
1748
|
+
else if (t) l = () => c(t);
|
|
1749
|
+
else if (r) l = () => c(r);
|
|
1750
|
+
else throw new y("Cannot find a resolved quantitative x or y scale for dynamic opacity!", e);
|
|
1751
|
+
} else {
|
|
1752
|
+
let r = t.channel ? n(t.channel) : n("x") ?? n("y");
|
|
1753
|
+
if (!r) throw new y("Cannot find a resolved quantitative scale for dynamic opacity!", e);
|
|
1754
|
+
l = () => c(r);
|
|
1755
|
+
}
|
|
1756
|
+
return (e) => i(l()) * e;
|
|
1757
|
+
} else if (u(t)) {
|
|
1758
|
+
let n = e.paramRuntime.watchExpression(t.expr, () => e.context.animator.requestRender());
|
|
1759
|
+
return (e) => n(null) * e;
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
return q;
|
|
1763
|
+
}
|
|
1764
|
+
function et(e, t, n) {
|
|
1765
|
+
if (!e.length) throw new y("\"opacity.unitsPerPixel\" must contain at least one stop.", n);
|
|
1766
|
+
if (e.length !== t.length) throw new y("\"opacity.unitsPerPixel\" and \"opacity.values\" must have the same length.", n);
|
|
1767
|
+
e.forEach((e, t) => {
|
|
1768
|
+
if (e <= 0) throw new y("Invalid opacity.unitsPerPixel value at index " + t + ". Stop values must be positive.", n);
|
|
1769
|
+
});
|
|
1770
|
+
let r = e.map((e, n) => ({
|
|
1771
|
+
stop: e,
|
|
1772
|
+
value: t[n]
|
|
1773
|
+
}));
|
|
1774
|
+
r.sort((e, t) => t.stop - e.stop);
|
|
1775
|
+
let i = r.map((e) => e.stop), a = r.map((e) => e.value);
|
|
1776
|
+
for (let t = 1; t < e.length; t++) if (i[t - 1] <= i[t]) throw new y("\"opacity.unitsPerPixel\" must be strictly decreasing.", n);
|
|
1777
|
+
return {
|
|
1778
|
+
unitsPerPixel: i,
|
|
1779
|
+
values: a
|
|
1780
|
+
};
|
|
1781
|
+
}
|
|
1782
|
+
function tt(e, t, r) {
|
|
1783
|
+
if (!g(e)) throw new y("\"" + t + "\" must evaluate to an array.", r);
|
|
1784
|
+
return e.map((e, i) => {
|
|
1785
|
+
if (!n(e) || !Number.isFinite(e)) throw new y("Invalid " + t + " value at index " + i + ". Expected a finite number.", r);
|
|
1786
|
+
return e;
|
|
1787
|
+
});
|
|
1788
|
+
}
|
|
1789
|
+
var J = (e) => !!e && typeof e == "object" && "step" in e;
|
|
1790
|
+
function nt(e) {
|
|
1791
|
+
return typeof e == "number" && Number.isFinite(e);
|
|
1792
|
+
}
|
|
1793
|
+
var Y = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap();
|
|
1794
|
+
function rt(e, t) {
|
|
1795
|
+
at(e, t, "Import");
|
|
1796
|
+
}
|
|
1797
|
+
function it(e, t) {
|
|
1798
|
+
at(e, t, "View");
|
|
1799
|
+
}
|
|
1800
|
+
function at(e, t, n) {
|
|
1801
|
+
if (t !== null && typeof t != "string") throw Error(n + " scope name must be a string or null.");
|
|
1802
|
+
Y.set(e, { name: t });
|
|
1803
|
+
}
|
|
1804
|
+
function ot(e) {
|
|
1805
|
+
return Y.get(e);
|
|
1806
|
+
}
|
|
1807
|
+
function st(e, t = {}) {
|
|
1808
|
+
let n = t.skipSubtree ?? !1 ? "excludeSubtree" : "exclude";
|
|
1809
|
+
X.set(e, n);
|
|
1810
|
+
}
|
|
1811
|
+
function ct(e, t = {}) {
|
|
1812
|
+
Ge(e, t.skipSubtree ?? !1 ? "excludeSubtree" : "exclude");
|
|
1813
|
+
}
|
|
1814
|
+
function lt(e) {
|
|
1815
|
+
return e.getLayoutAncestors().some(H);
|
|
1816
|
+
}
|
|
1817
|
+
function Z(e) {
|
|
1818
|
+
let t = e.getDataAncestors(), n = [];
|
|
1819
|
+
for (let e = t.length - 1; e >= 0; --e) {
|
|
1820
|
+
let r = Y.get(t[e]);
|
|
1821
|
+
r && typeof r.name == "string" && n.push(r.name);
|
|
1822
|
+
}
|
|
1823
|
+
return n;
|
|
1824
|
+
}
|
|
1825
|
+
function ut(e) {
|
|
1826
|
+
let t = e.explicitName;
|
|
1827
|
+
if (!t) throw Error("Cannot build a selector for a view without a name.");
|
|
1828
|
+
return {
|
|
1829
|
+
scope: Z(e),
|
|
1830
|
+
view: t
|
|
1831
|
+
};
|
|
1832
|
+
}
|
|
1833
|
+
function dt(e, t) {
|
|
1834
|
+
if (!t) throw Error("Cannot build a selector for a parameter without a name.");
|
|
1835
|
+
return {
|
|
1836
|
+
scope: Z(e),
|
|
1837
|
+
param: t
|
|
1838
|
+
};
|
|
1839
|
+
}
|
|
1840
|
+
function ft(e) {
|
|
1841
|
+
return bt(e), "p:" + JSON.stringify({
|
|
1842
|
+
scope: e.scope,
|
|
1843
|
+
param: e.param
|
|
1844
|
+
});
|
|
1845
|
+
}
|
|
1846
|
+
function pt(e, t) {
|
|
1847
|
+
e.visit((e) => {
|
|
1848
|
+
let n = Ke(e);
|
|
1849
|
+
if (n === "excludeSubtree") return G;
|
|
1850
|
+
if (n !== "exclude") return t(e);
|
|
1851
|
+
});
|
|
1852
|
+
}
|
|
1853
|
+
function mt(e, t) {
|
|
1854
|
+
e.visit((e) => {
|
|
1855
|
+
let n = X.get(e);
|
|
1856
|
+
if (n === "excludeSubtree") return G;
|
|
1857
|
+
if (n !== "exclude") return t(e);
|
|
1858
|
+
});
|
|
1859
|
+
}
|
|
1860
|
+
function ht(e, t) {
|
|
1861
|
+
if (xt(t), !kt(e, t.scope)) return;
|
|
1862
|
+
let n = [];
|
|
1863
|
+
if ($(e, t.scope, (e) => {
|
|
1864
|
+
e.explicitName === t.view && n.push(e);
|
|
1865
|
+
}, { includeNamedImportRoots: !0 }), n.length === 1) return n[0];
|
|
1866
|
+
if (n.length !== 0) throw Error("View selector is ambiguous for view \"" + t.view + "\" in scope " + JSON.stringify(t.scope));
|
|
1867
|
+
}
|
|
1868
|
+
function gt(e, t) {
|
|
1869
|
+
if (bt(t), !kt(e, t.scope)) return;
|
|
1870
|
+
let n = [];
|
|
1871
|
+
if ($(e, t.scope, (e) => {
|
|
1872
|
+
for (let [r, i] of e.paramRuntime.paramConfigs) r === t.param && Q(i) && n.push({
|
|
1873
|
+
view: e,
|
|
1874
|
+
param: i
|
|
1875
|
+
});
|
|
1876
|
+
}), n.length === 1) return n[0];
|
|
1877
|
+
if (n.length !== 0) throw Error("Param selector is ambiguous for param \"" + t.param + "\" in scope " + JSON.stringify(t.scope));
|
|
1878
|
+
}
|
|
1879
|
+
function _t(e, t) {
|
|
1880
|
+
e.visit((e) => {
|
|
1881
|
+
let n = X.get(e);
|
|
1882
|
+
if (n === "excludeSubtree") return G;
|
|
1883
|
+
if (n !== "exclude") for (let [n, r] of e.paramRuntime.paramConfigs) Q(r) && t({
|
|
1884
|
+
view: e,
|
|
1885
|
+
param: r,
|
|
1886
|
+
selector: dt(e, n)
|
|
1887
|
+
});
|
|
1888
|
+
});
|
|
1889
|
+
}
|
|
1890
|
+
function vt(e) {
|
|
1891
|
+
let t = [];
|
|
1892
|
+
return _t(e, (e) => t.push(e)), t;
|
|
1893
|
+
}
|
|
1894
|
+
function yt(e) {
|
|
1895
|
+
let t = [];
|
|
1896
|
+
for (let n of St(e)) {
|
|
1897
|
+
let r = Ct(n);
|
|
1898
|
+
Tt(e, r, t), Et(e, r, t);
|
|
1899
|
+
}
|
|
1900
|
+
return t;
|
|
1901
|
+
}
|
|
1902
|
+
function bt(e) {
|
|
1903
|
+
if (!e || !Array.isArray(e.scope)) throw Error("Param selector scope must be an array.");
|
|
1904
|
+
if (typeof e.param != "string" || !e.param.length) throw Error("Param selector param must be a non-empty string.");
|
|
1905
|
+
}
|
|
1906
|
+
function xt(e) {
|
|
1907
|
+
if (!e || !Array.isArray(e.scope)) throw Error("View selector scope must be an array.");
|
|
1908
|
+
if (typeof e.view != "string" || !e.view.length) throw Error("View selector view must be a non-empty string.");
|
|
1909
|
+
}
|
|
1910
|
+
function Q(t) {
|
|
1911
|
+
return t.persist === !1 ? !1 : i(t) ? !0 : e(t) ? !!t.bind : !1;
|
|
1912
|
+
}
|
|
1913
|
+
function St(e) {
|
|
1914
|
+
let t = /* @__PURE__ */ new Set([e]);
|
|
1915
|
+
return e.visit((e) => {
|
|
1916
|
+
let n = Y.get(e);
|
|
1917
|
+
n && typeof n.name == "string" && t.add(e);
|
|
1918
|
+
}), Array.from(t);
|
|
1919
|
+
}
|
|
1920
|
+
function Ct(e) {
|
|
1921
|
+
return Z(e);
|
|
1922
|
+
}
|
|
1923
|
+
function wt(e) {
|
|
1924
|
+
return e.length ? "import scope [" + e.join(" / ") + "]" : "import scope (root)";
|
|
1925
|
+
}
|
|
1926
|
+
function Tt(e, t, n) {
|
|
1927
|
+
let r = /* @__PURE__ */ new Map();
|
|
1928
|
+
$(e, t, (e) => {
|
|
1929
|
+
for (let [t, n] of e.paramRuntime.paramConfigs) {
|
|
1930
|
+
if (!Q(n)) continue;
|
|
1931
|
+
let i = r.get(t);
|
|
1932
|
+
i ? i.push(e) : r.set(t, [e]);
|
|
1933
|
+
}
|
|
1934
|
+
});
|
|
1935
|
+
for (let [e, i] of r) {
|
|
1936
|
+
if (i.length <= 1) continue;
|
|
1937
|
+
let r = i.map((e) => e.getPathString()).join(", ");
|
|
1938
|
+
n.push({
|
|
1939
|
+
message: "Bookmarkable parameter \"" + e + "\" is not unique within " + wt(t) + ". Found in: " + r + ".",
|
|
1940
|
+
scope: t
|
|
1941
|
+
});
|
|
1942
|
+
}
|
|
1943
|
+
}
|
|
1944
|
+
function Et(e, t, n) {
|
|
1945
|
+
let r = Dt(e, t);
|
|
1946
|
+
if (!r.length) return;
|
|
1947
|
+
let i = r.filter((e) => Ot(e));
|
|
1948
|
+
if (i.length <= 1) return;
|
|
1949
|
+
let a = /* @__PURE__ */ new Map();
|
|
1950
|
+
for (let e of i) {
|
|
1951
|
+
let t = Y.get(e), n = t ? t.name : void 0;
|
|
1952
|
+
typeof n != "string" || !n.length || a.set(n, (a.get(n) ?? 0) + 1);
|
|
1953
|
+
}
|
|
1954
|
+
for (let [e, r] of a) r > 1 && n.push({
|
|
1955
|
+
message: "Import instance name \"" + e + "\" is used multiple times for addressable instances in " + wt(t) + ".",
|
|
1956
|
+
scope: t
|
|
1957
|
+
});
|
|
1958
|
+
}
|
|
1959
|
+
function Dt(e, t) {
|
|
1960
|
+
let n = [];
|
|
1961
|
+
return $(e, t, (e) => {
|
|
1962
|
+
if (Z(e).length !== t.length + 1) return;
|
|
1963
|
+
let r = Y.get(e);
|
|
1964
|
+
!r || typeof r.name != "string" || n.push(e);
|
|
1965
|
+
}, { includeNamedImportRoots: !0 }), n;
|
|
1966
|
+
}
|
|
1967
|
+
function Ot(e) {
|
|
1968
|
+
let t = !1;
|
|
1969
|
+
return e.visit((e) => {
|
|
1970
|
+
let n = X.get(e);
|
|
1971
|
+
if (n === "excludeSubtree") return G;
|
|
1972
|
+
if (n !== "exclude") {
|
|
1973
|
+
for (let n of e.paramRuntime.paramConfigs.values()) if (Q(n)) return t = !0, K;
|
|
1974
|
+
}
|
|
1975
|
+
}), t;
|
|
1976
|
+
}
|
|
1977
|
+
function kt(e, t) {
|
|
1978
|
+
let n = e, r = [];
|
|
1979
|
+
for (let i of t) {
|
|
1980
|
+
if (typeof i != "string" || !i.length) throw Error("Scope names must be non-empty strings.");
|
|
1981
|
+
let t, a = !1;
|
|
1982
|
+
if ($(e, r, (e) => {
|
|
1983
|
+
let n = Y.get(e);
|
|
1984
|
+
if (!(!n || n.name !== i) && Z(e).length === r.length + 1) {
|
|
1985
|
+
if (t) return a = !0, K;
|
|
1986
|
+
t = e;
|
|
1987
|
+
}
|
|
1988
|
+
}, { includeNamedImportRoots: !0 }), a) throw Error("Multiple import instances named \"" + i + "\" in scope.");
|
|
1989
|
+
if (t) n = t, r.push(i);
|
|
1990
|
+
else return;
|
|
1991
|
+
}
|
|
1992
|
+
return n;
|
|
1993
|
+
}
|
|
1994
|
+
function $(e, t, n, r = {}) {
|
|
1995
|
+
let i = r.includeNamedImportRoots ?? !1;
|
|
1996
|
+
e.visit((e) => {
|
|
1997
|
+
let r = Y.get(e), a = X.get(e);
|
|
1998
|
+
if (a === "excludeSubtree") return G;
|
|
1999
|
+
if (a !== "exclude" && At(e, t, r, i)) return n(e);
|
|
2000
|
+
});
|
|
2001
|
+
}
|
|
2002
|
+
function At(e, t, n, r) {
|
|
2003
|
+
let i = Z(e);
|
|
2004
|
+
return jt(i, t) ? !0 : !r || !n || typeof n.name != "string" || i.length !== t.length + 1 ? !1 : Mt(t, i);
|
|
2005
|
+
}
|
|
2006
|
+
function jt(e, t) {
|
|
2007
|
+
return e.length === t.length && Mt(e, t);
|
|
2008
|
+
}
|
|
2009
|
+
function Mt(e, t) {
|
|
2010
|
+
if (e.length > t.length) return !1;
|
|
2011
|
+
for (let n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
|
|
2012
|
+
return !0;
|
|
2013
|
+
}
|
|
2014
|
+
//#endregion
|
|
2015
|
+
export { T as A, be as B, B as C, ze as D, Be as E, A as F, b as G, w as H, we as I, Me as L, De as M, Te as N, P as O, j as P, Oe as R, U as S, I as T, ge as U, ve as V, _e as W, G as _, ut as a, qe as b, ct as c, it as d, gt as f, pt as g, mt as h, Z as i, E as j, Le as k, st as l, yt as m, ot as n, lt as o, ht as p, dt as r, ft as s, vt as t, rt as u, K as v, He as w, H as x, Ze as y, Ee as z };
|