@urban-toolkit/autk-grammar 0.1.2 → 0.1.3
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/adapters/plot.d.ts +2 -2
- package/dist/autk-grammar.js +422 -344
- package/dist/autk-grammar.js.map +1 -1
- package/dist/autk-grammar.umd.cjs +1 -1
- package/dist/autk-grammar.umd.cjs.map +1 -1
- package/dist/main.d.ts +27 -1
- package/dist/types.d.ts +22 -0
- package/package.json +1 -1
package/dist/autk-grammar.js
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { NormalizationMode as
|
|
2
|
-
import { ColorMapInterpolator as
|
|
3
|
-
import { AutkDb as
|
|
4
|
-
import { AutkMap as
|
|
5
|
-
import { AutkPlot as We } from "@urban-toolkit/autk-plot";
|
|
1
|
+
import { NormalizationMode as qe, createEngine as Ue } from "@urban-toolkit/the-urban-grammar";
|
|
2
|
+
import { ColorMapInterpolator as va, NormalizationMode as wa } from "@urban-toolkit/the-urban-grammar";
|
|
3
|
+
import { AutkDb as Je, DEFAULT_WORKSPACE_COORDINATE_FORMAT as Te } from "@urban-toolkit/autk-db";
|
|
4
|
+
import { AutkMap as Xe, MapStyle as Ke, MapEvent as be } from "@urban-toolkit/autk-map";
|
|
5
|
+
import { AutkPlot as We, PlotEvent as K } from "@urban-toolkit/autk-plot";
|
|
6
6
|
import { AutkComputeEngine as Ve } from "@urban-toolkit/autk-compute";
|
|
7
|
-
function
|
|
7
|
+
function Qe(e, f) {
|
|
8
8
|
function a(d, c) {
|
|
9
9
|
if (!c || !c.db)
|
|
10
10
|
return;
|
|
11
11
|
const t = document.getElementById(c.db);
|
|
12
12
|
if (t) {
|
|
13
|
-
const
|
|
13
|
+
const b = d.tables;
|
|
14
14
|
t.innerHTML += "<ul>";
|
|
15
|
-
for (const
|
|
16
|
-
t.innerHTML += `<li>${
|
|
17
|
-
t.innerHTML += "</ul>", t.innerHTML += `<p>Number of tables: ${
|
|
15
|
+
for (const n of b)
|
|
16
|
+
t.innerHTML += `<li>${n.name}: (${n.source}, ${n.type}) </li>`;
|
|
17
|
+
t.innerHTML += "</ul>", t.innerHTML += `<p>Number of tables: ${b.length}</p>`;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
return {
|
|
21
21
|
async resolveSource(d, c) {
|
|
22
22
|
let t = d;
|
|
23
|
-
t || (t = new
|
|
24
|
-
let { type:
|
|
25
|
-
switch (
|
|
23
|
+
t || (t = new Je(), await t.init());
|
|
24
|
+
let { type: b, ...n } = c;
|
|
25
|
+
switch (b) {
|
|
26
26
|
case "osm":
|
|
27
|
-
return await t.loadOsm(
|
|
27
|
+
return await t.loadOsm(n), a(t, e), t;
|
|
28
28
|
case "csv":
|
|
29
|
-
return await t.loadCsv(
|
|
29
|
+
return await t.loadCsv(n), a(t, e), t;
|
|
30
30
|
case "json":
|
|
31
|
-
return await t.loadJson(
|
|
31
|
+
return await t.loadJson(n), a(t, e), t;
|
|
32
32
|
case "geojson": {
|
|
33
|
-
const
|
|
33
|
+
const r = n;
|
|
34
34
|
let l;
|
|
35
|
-
|
|
36
|
-
const
|
|
37
|
-
const i = { ...
|
|
35
|
+
r.geojsonFileUrl ? l = await (await fetch(r.geojsonFileUrl)).json() : l = r.geojsonObject, f && l && f.set(r.outputTableName, l);
|
|
36
|
+
const h = l ? (() => {
|
|
37
|
+
const i = { ...r, geojsonObject: l };
|
|
38
38
|
return delete i.geojsonFileUrl, i;
|
|
39
|
-
})() :
|
|
39
|
+
})() : r;
|
|
40
40
|
try {
|
|
41
|
-
await t.loadGeojson(
|
|
41
|
+
await t.loadGeojson(h);
|
|
42
42
|
} catch (i) {
|
|
43
|
-
const p =
|
|
43
|
+
const p = h.coordinateFormat ? `coordinateFormat is set to "${h.coordinateFormat}"` : "no coordinateFormat was specified — defaulting to EPSG:4326 (WGS84 per RFC 7946)";
|
|
44
44
|
throw new Error(
|
|
45
|
-
`Failed to load GeoJSON layer "${
|
|
45
|
+
`Failed to load GeoJSON layer "${h.outputTableName}": ${i instanceof Error ? i.message : String(i)}. ${p}. Verify that coordinateFormat matches the actual CRS of the input data.`
|
|
46
46
|
);
|
|
47
47
|
}
|
|
48
48
|
try {
|
|
49
|
-
const i = await t.getBoundingBoxFromLayer(
|
|
49
|
+
const i = await t.getBoundingBoxFromLayer(h.outputTableName), p = 25e6;
|
|
50
50
|
if (!isFinite(i.minLon) || !isFinite(i.minLat) || !isFinite(i.maxLon) || !isFinite(i.maxLat) || Math.abs(i.minLon) > p || Math.abs(i.maxLon) > p || Math.abs(i.minLat) > p || Math.abs(i.maxLat) > p)
|
|
51
51
|
throw new Error(
|
|
52
|
-
`Geometry bounding box after transform is invalid for layer "${
|
|
52
|
+
`Geometry bounding box after transform is invalid for layer "${h.outputTableName}" (bbox: [${i.minLon}, ${i.minLat}, ${i.maxLon}, ${i.maxLat}]). Verify that coordinateFormat matches the actual CRS of the input data. The workspace uses ${Te}; input is expected in EPSG:4326 by default.`
|
|
53
53
|
);
|
|
54
54
|
} catch (i) {
|
|
55
55
|
if (i instanceof Error && i.message.includes("bounding box after transform")) throw i;
|
|
@@ -57,25 +57,25 @@ function Ke(e, f) {
|
|
|
57
57
|
return a(t, e), t;
|
|
58
58
|
}
|
|
59
59
|
case "heatmap": {
|
|
60
|
-
const
|
|
60
|
+
const r = n;
|
|
61
61
|
return await t.buildHeatmap({
|
|
62
|
-
tableJoinName:
|
|
63
|
-
near: { distance:
|
|
64
|
-
outputTableName:
|
|
65
|
-
grid:
|
|
66
|
-
...
|
|
62
|
+
tableJoinName: r.tableJoinName,
|
|
63
|
+
near: { distance: r.near.distance },
|
|
64
|
+
outputTableName: r.outputTableName,
|
|
65
|
+
grid: r.grid,
|
|
66
|
+
...r.groupBy && { groupBy: r.groupBy }
|
|
67
67
|
}), a(t, e), t;
|
|
68
68
|
}
|
|
69
69
|
case "join": {
|
|
70
|
-
const
|
|
70
|
+
const r = n;
|
|
71
71
|
if (await t.spatialQuery({
|
|
72
|
-
tableRootName:
|
|
73
|
-
tableJoinName:
|
|
74
|
-
...
|
|
75
|
-
...
|
|
72
|
+
tableRootName: r.tableRootName,
|
|
73
|
+
tableJoinName: r.tableJoinName,
|
|
74
|
+
...r.near && { near: r.near },
|
|
75
|
+
...r.groupBy && { groupBy: r.groupBy }
|
|
76
76
|
}), f) {
|
|
77
|
-
const l = await t.getLayer(
|
|
78
|
-
f.set(
|
|
77
|
+
const l = await t.getLayer(r.tableRootName);
|
|
78
|
+
f.set(r.tableRootName, l);
|
|
79
79
|
}
|
|
80
80
|
return a(t, e), t;
|
|
81
81
|
}
|
|
@@ -88,17 +88,17 @@ function Ke(e, f) {
|
|
|
88
88
|
var W = /* @__PURE__ */ (function(e) {
|
|
89
89
|
return e.USER = "user", e.MIN_MAX = "minMax", e.PERCENTILE = "percentile", e;
|
|
90
90
|
})({});
|
|
91
|
-
function
|
|
91
|
+
function ae(e, f, a) {
|
|
92
92
|
e.prototype = f.prototype = a, a.constructor = e;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function ne(e, f) {
|
|
95
95
|
var a = Object.create(e.prototype);
|
|
96
96
|
for (var d in f) a[d] = f[d];
|
|
97
97
|
return a;
|
|
98
98
|
}
|
|
99
99
|
function z() {
|
|
100
100
|
}
|
|
101
|
-
var
|
|
101
|
+
var T = 0.7, B = 1 / T, H = "\\s*([+-]?\\d+)\\s*", D = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", R = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Ye = /^#([0-9a-f]{3,8})$/, Ze = RegExp(`^rgb\\(${H},${H},${H}\\)$`), ef = RegExp(`^rgb\\(${R},${R},${R}\\)$`), ff = RegExp(`^rgba\\(${H},${H},${H},${D}\\)$`), af = RegExp(`^rgba\\(${R},${R},${R},${D}\\)$`), df = RegExp(`^hsl\\(${D},${R},${R}\\)$`), cf = RegExp(`^hsla\\(${D},${R},${R},${D}\\)$`), ye = {
|
|
102
102
|
aliceblue: 15792383,
|
|
103
103
|
antiquewhite: 16444375,
|
|
104
104
|
aqua: 65535,
|
|
@@ -248,194 +248,194 @@ var F = 0.7, B = 1 / F, H = "\\s*([+-]?\\d+)\\s*", D = "\\s*([+-]?(?:\\d*\\.)?\\
|
|
|
248
248
|
yellow: 16776960,
|
|
249
249
|
yellowgreen: 10145074
|
|
250
250
|
};
|
|
251
|
-
|
|
251
|
+
ae(z, ie, {
|
|
252
252
|
copy(e) {
|
|
253
253
|
return Object.assign(new this.constructor(), this, e);
|
|
254
254
|
},
|
|
255
255
|
displayable() {
|
|
256
256
|
return this.rgb().displayable();
|
|
257
257
|
},
|
|
258
|
-
hex:
|
|
259
|
-
formatHex:
|
|
260
|
-
formatHex8:
|
|
261
|
-
formatHsl:
|
|
262
|
-
formatRgb:
|
|
263
|
-
toString:
|
|
258
|
+
hex: ve,
|
|
259
|
+
formatHex: ve,
|
|
260
|
+
formatHex8: tf,
|
|
261
|
+
formatHsl: bf,
|
|
262
|
+
formatRgb: we,
|
|
263
|
+
toString: we
|
|
264
264
|
});
|
|
265
|
-
function
|
|
265
|
+
function ve() {
|
|
266
266
|
return this.rgb().formatHex();
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function tf() {
|
|
269
269
|
return this.rgb().formatHex8();
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function bf() {
|
|
272
272
|
return Fe(this).formatHsl();
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function we() {
|
|
275
275
|
return this.rgb().formatRgb();
|
|
276
276
|
}
|
|
277
|
-
function
|
|
277
|
+
function ie(e) {
|
|
278
278
|
var f, a;
|
|
279
|
-
return e = (e + "").trim().toLowerCase(), (f =
|
|
279
|
+
return e = (e + "").trim().toLowerCase(), (f = Ye.exec(e)) ? (a = f[1].length, f = parseInt(f[1], 16), a === 6 ? Me(f) : a === 3 ? new g(f >> 8 & 15 | f >> 4 & 240, f >> 4 & 15 | f & 240, (f & 15) << 4 | f & 15, 1) : a === 8 ? V(f >> 24 & 255, f >> 16 & 255, f >> 8 & 255, (f & 255) / 255) : a === 4 ? V(f >> 12 & 15 | f >> 8 & 240, f >> 8 & 15 | f >> 4 & 240, f >> 4 & 15 | f & 240, ((f & 15) << 4 | f & 15) / 255) : null) : (f = Ze.exec(e)) ? new g(f[1], f[2], f[3], 1) : (f = ef.exec(e)) ? new g(f[1] * 255 / 100, f[2] * 255 / 100, f[3] * 255 / 100, 1) : (f = ff.exec(e)) ? V(f[1], f[2], f[3], f[4]) : (f = af.exec(e)) ? V(f[1] * 255 / 100, f[2] * 255 / 100, f[3] * 255 / 100, f[4]) : (f = df.exec(e)) ? ke(f[1], f[2] / 100, f[3] / 100, 1) : (f = cf.exec(e)) ? ke(f[1], f[2] / 100, f[3] / 100, f[4]) : ye.hasOwnProperty(e) ? Me(ye[e]) : e === "transparent" ? new g(NaN, NaN, NaN, 0) : null;
|
|
280
280
|
}
|
|
281
|
-
function
|
|
282
|
-
return new
|
|
281
|
+
function Me(e) {
|
|
282
|
+
return new g(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
|
|
283
283
|
}
|
|
284
284
|
function V(e, f, a, d) {
|
|
285
|
-
return d <= 0 && (e = f = a = NaN), new
|
|
285
|
+
return d <= 0 && (e = f = a = NaN), new g(e, f, a, d);
|
|
286
286
|
}
|
|
287
287
|
function je(e) {
|
|
288
|
-
return e instanceof z || (e =
|
|
288
|
+
return e instanceof z || (e = ie(e)), e ? (e = e.rgb(), new g(e.r, e.g, e.b, e.opacity)) : new g();
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
return arguments.length === 1 ? je(e) : new
|
|
290
|
+
function G(e, f, a, d) {
|
|
291
|
+
return arguments.length === 1 ? je(e) : new g(e, f, a, d ?? 1);
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function g(e, f, a, d) {
|
|
294
294
|
this.r = +e, this.g = +f, this.b = +a, this.opacity = +d;
|
|
295
295
|
}
|
|
296
|
-
|
|
296
|
+
ae(g, G, ne(z, {
|
|
297
297
|
brighter(e) {
|
|
298
|
-
return e = e == null ? B : B ** +e, new
|
|
298
|
+
return e = e == null ? B : B ** +e, new g(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
299
299
|
},
|
|
300
300
|
darker(e) {
|
|
301
|
-
return e = e == null ?
|
|
301
|
+
return e = e == null ? T : T ** +e, new g(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
302
302
|
},
|
|
303
303
|
rgb() {
|
|
304
304
|
return this;
|
|
305
305
|
},
|
|
306
306
|
clamp() {
|
|
307
|
-
return new
|
|
307
|
+
return new g(L(this.r), L(this.g), L(this.b), Z(this.opacity));
|
|
308
308
|
},
|
|
309
309
|
displayable() {
|
|
310
310
|
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;
|
|
311
311
|
},
|
|
312
|
-
hex:
|
|
313
|
-
formatHex:
|
|
314
|
-
formatHex8:
|
|
315
|
-
formatRgb:
|
|
316
|
-
toString:
|
|
312
|
+
hex: Ne,
|
|
313
|
+
formatHex: Ne,
|
|
314
|
+
formatHex8: rf,
|
|
315
|
+
formatRgb: xe,
|
|
316
|
+
toString: xe
|
|
317
317
|
}));
|
|
318
|
-
function
|
|
319
|
-
return `#${
|
|
318
|
+
function Ne() {
|
|
319
|
+
return `#${P(this.r)}${P(this.g)}${P(this.b)}`;
|
|
320
320
|
}
|
|
321
|
-
function
|
|
322
|
-
return `#${
|
|
321
|
+
function rf() {
|
|
322
|
+
return `#${P(this.r)}${P(this.g)}${P(this.b)}${P((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function xe() {
|
|
325
325
|
let e = Z(this.opacity);
|
|
326
|
-
return `${e === 1 ? "rgb(" : "rgba("}${
|
|
326
|
+
return `${e === 1 ? "rgb(" : "rgba("}${L(this.r)}, ${L(this.g)}, ${L(this.b)}${e === 1 ? ")" : `, ${e})`}`;
|
|
327
327
|
}
|
|
328
328
|
function Z(e) {
|
|
329
329
|
return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function L(e) {
|
|
332
332
|
return Math.max(0, Math.min(255, Math.round(e) || 0));
|
|
333
333
|
}
|
|
334
|
-
function
|
|
335
|
-
return e =
|
|
334
|
+
function P(e) {
|
|
335
|
+
return e = L(e), (e < 16 ? "0" : "") + e.toString(16);
|
|
336
336
|
}
|
|
337
|
-
function
|
|
338
|
-
return d <= 0 ? e = f = a = NaN : a <= 0 || a >= 1 ? e = f = NaN : f <= 0 && (e = NaN), new
|
|
337
|
+
function ke(e, f, a, d) {
|
|
338
|
+
return d <= 0 ? e = f = a = NaN : a <= 0 || a >= 1 ? e = f = NaN : f <= 0 && (e = NaN), new x(e, f, a, d);
|
|
339
339
|
}
|
|
340
340
|
function Fe(e) {
|
|
341
|
-
if (e instanceof
|
|
342
|
-
if (e instanceof z || (e =
|
|
343
|
-
if (e instanceof
|
|
341
|
+
if (e instanceof x) return new x(e.h, e.s, e.l, e.opacity);
|
|
342
|
+
if (e instanceof z || (e = ie(e)), !e) return new x();
|
|
343
|
+
if (e instanceof x) return e;
|
|
344
344
|
e = e.rgb();
|
|
345
|
-
var f = e.r / 255, a = e.g / 255, d = e.b / 255, c = Math.min(f, a, d), t = Math.max(f, a, d),
|
|
346
|
-
return
|
|
345
|
+
var f = e.r / 255, a = e.g / 255, d = e.b / 255, c = Math.min(f, a, d), t = Math.max(f, a, d), b = NaN, n = t - c, r = (t + c) / 2;
|
|
346
|
+
return n ? (b = f === t ? (a - d) / n + (a < d) * 6 : a === t ? (d - f) / n + 2 : (f - a) / n + 4, n /= r < 0.5 ? t + c : 2 - t - c, b *= 60) : n = r > 0 && r < 1 ? 0 : b, new x(b, n, r, e.opacity);
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
return arguments.length === 1 ? Fe(e) : new
|
|
348
|
+
function nf(e, f, a, d) {
|
|
349
|
+
return arguments.length === 1 ? Fe(e) : new x(e, f, a, d ?? 1);
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function x(e, f, a, d) {
|
|
352
352
|
this.h = +e, this.s = +f, this.l = +a, this.opacity = +d;
|
|
353
353
|
}
|
|
354
|
-
|
|
354
|
+
ae(x, nf, ne(z, {
|
|
355
355
|
brighter(e) {
|
|
356
|
-
return e = e == null ? B : B ** +e, new
|
|
356
|
+
return e = e == null ? B : B ** +e, new x(this.h, this.s, this.l * e, this.opacity);
|
|
357
357
|
},
|
|
358
358
|
darker(e) {
|
|
359
|
-
return e = e == null ?
|
|
359
|
+
return e = e == null ? T : T ** +e, new x(this.h, this.s, this.l * e, this.opacity);
|
|
360
360
|
},
|
|
361
361
|
rgb() {
|
|
362
362
|
var e = this.h % 360 + (this.h < 0) * 360, f = isNaN(e) || isNaN(this.s) ? 0 : this.s, a = this.l, d = a + (a < 0.5 ? a : 1 - a) * f, c = 2 * a - d;
|
|
363
|
-
return new
|
|
363
|
+
return new g(te(e >= 240 ? e - 240 : e + 120, c, d), te(e, c, d), te(e < 120 ? e + 240 : e - 120, c, d), this.opacity);
|
|
364
364
|
},
|
|
365
365
|
clamp() {
|
|
366
|
-
return new
|
|
366
|
+
return new x(Re(this.h), Q(this.s), Q(this.l), Z(this.opacity));
|
|
367
367
|
},
|
|
368
368
|
displayable() {
|
|
369
369
|
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
370
370
|
},
|
|
371
371
|
formatHsl() {
|
|
372
372
|
let e = Z(this.opacity);
|
|
373
|
-
return `${e === 1 ? "hsl(" : "hsla("}${
|
|
373
|
+
return `${e === 1 ? "hsl(" : "hsla("}${Re(this.h)}, ${Q(this.s) * 100}%, ${Q(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
|
|
374
374
|
}
|
|
375
375
|
}));
|
|
376
|
-
function
|
|
376
|
+
function Re(e) {
|
|
377
377
|
return e = (e || 0) % 360, e < 0 ? e + 360 : e;
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function Q(e) {
|
|
380
380
|
return Math.max(0, Math.min(1, e || 0));
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function te(e, f, a) {
|
|
383
383
|
return (e < 60 ? f + (a - f) * e / 60 : e < 180 ? a : e < 240 ? f + (a - f) * (240 - e) / 60 : f) * 255;
|
|
384
384
|
}
|
|
385
|
-
var
|
|
386
|
-
function
|
|
387
|
-
if (e instanceof
|
|
388
|
-
e instanceof
|
|
389
|
-
var f = e.r / 255, a = e.g / 255, d = e.b / 255, c = (
|
|
390
|
-
return new
|
|
385
|
+
var of = Math.PI / 180, sf = 180 / Math.PI, He = -0.14861, oe = 1.78277, se = -0.29227, de = -0.90649, q = 1.97294, $e = q * de, Ee = q * oe, Ae = oe * se - de * He;
|
|
386
|
+
function lf(e) {
|
|
387
|
+
if (e instanceof I) return new I(e.h, e.s, e.l, e.opacity);
|
|
388
|
+
e instanceof g || (e = je(e));
|
|
389
|
+
var f = e.r / 255, a = e.g / 255, d = e.b / 255, c = (Ae * d + $e * f - Ee * a) / (Ae + $e - Ee), t = d - c, b = (q * (a - c) - se * t) / de, n = Math.sqrt(b * b + t * t) / (q * c * (1 - c)), r = n ? Math.atan2(b, t) * sf - 120 : NaN;
|
|
390
|
+
return new I(r < 0 ? r + 360 : r, n, c, e.opacity);
|
|
391
391
|
}
|
|
392
|
-
function
|
|
393
|
-
return arguments.length === 1 ?
|
|
392
|
+
function $(e, f, a, d) {
|
|
393
|
+
return arguments.length === 1 ? lf(e) : new I(e, f, a, d ?? 1);
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function I(e, f, a, d) {
|
|
396
396
|
this.h = +e, this.s = +f, this.l = +a, this.opacity = +d;
|
|
397
397
|
}
|
|
398
|
-
|
|
398
|
+
ae(I, $, ne(z, {
|
|
399
399
|
brighter(e) {
|
|
400
|
-
return e = e == null ? B : B ** +e, new
|
|
400
|
+
return e = e == null ? B : B ** +e, new I(this.h, this.s, this.l * e, this.opacity);
|
|
401
401
|
},
|
|
402
402
|
darker(e) {
|
|
403
|
-
return e = e == null ?
|
|
403
|
+
return e = e == null ? T : T ** +e, new I(this.h, this.s, this.l * e, this.opacity);
|
|
404
404
|
},
|
|
405
405
|
rgb() {
|
|
406
|
-
var e = isNaN(this.h) ? 0 : (this.h + 120) *
|
|
407
|
-
return new
|
|
406
|
+
var e = isNaN(this.h) ? 0 : (this.h + 120) * of, f = +this.l, a = isNaN(this.s) ? 0 : this.s * f * (1 - f), d = Math.cos(e), c = Math.sin(e);
|
|
407
|
+
return new g(255 * (f + a * (He * d + oe * c)), 255 * (f + a * (se * d + de * c)), 255 * (f + q * d * a), this.opacity);
|
|
408
408
|
}
|
|
409
409
|
}));
|
|
410
|
-
function
|
|
410
|
+
function uf(e) {
|
|
411
411
|
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
|
|
412
412
|
}
|
|
413
|
-
function
|
|
413
|
+
function ee(e, f) {
|
|
414
414
|
if (!isFinite(e) || e === 0) return null;
|
|
415
415
|
var a = (e = f ? e.toExponential(f - 1) : e.toExponential()).indexOf("e"), d = e.slice(0, a);
|
|
416
416
|
return [d.length > 1 ? d[0] + d.slice(2) : d, +e.slice(a + 1)];
|
|
417
417
|
}
|
|
418
|
-
function
|
|
419
|
-
return e =
|
|
418
|
+
function hf(e) {
|
|
419
|
+
return e = ee(Math.abs(e)), e ? e[1] : NaN;
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function pf(e, f) {
|
|
422
422
|
return function(a, d) {
|
|
423
|
-
for (var c = a.length, t = [],
|
|
423
|
+
for (var c = a.length, t = [], b = 0, n = e[0], r = 0; c > 0 && n > 0 && (r + n + 1 > d && (n = Math.max(1, d - r)), t.push(a.substring(c -= n, c + n)), !((r += n + 1) > d)); ) n = e[b = (b + 1) % e.length];
|
|
424
424
|
return t.reverse().join(f);
|
|
425
425
|
};
|
|
426
426
|
}
|
|
427
|
-
function
|
|
427
|
+
function mf(e) {
|
|
428
428
|
return function(f) {
|
|
429
429
|
return f.replace(/[0-9]/g, function(a) {
|
|
430
430
|
return e[+a];
|
|
431
431
|
});
|
|
432
432
|
};
|
|
433
433
|
}
|
|
434
|
-
var
|
|
435
|
-
function
|
|
436
|
-
if (!(f =
|
|
434
|
+
var gf = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
435
|
+
function re(e) {
|
|
436
|
+
if (!(f = gf.exec(e))) throw Error("invalid format: " + e);
|
|
437
437
|
var f;
|
|
438
|
-
return new
|
|
438
|
+
return new le({
|
|
439
439
|
fill: f[1],
|
|
440
440
|
align: f[2],
|
|
441
441
|
sign: f[3],
|
|
@@ -448,14 +448,14 @@ function te(e) {
|
|
|
448
448
|
type: f[10]
|
|
449
449
|
});
|
|
450
450
|
}
|
|
451
|
-
|
|
452
|
-
function
|
|
451
|
+
re.prototype = le.prototype;
|
|
452
|
+
function le(e) {
|
|
453
453
|
this.fill = e.fill === void 0 ? " " : e.fill + "", this.align = e.align === void 0 ? ">" : e.align + "", this.sign = e.sign === void 0 ? "-" : e.sign + "", this.symbol = e.symbol === void 0 ? "" : e.symbol + "", this.zero = !!e.zero, this.width = e.width === void 0 ? void 0 : +e.width, this.comma = !!e.comma, this.precision = e.precision === void 0 ? void 0 : +e.precision, this.trim = !!e.trim, this.type = e.type === void 0 ? "" : e.type + "";
|
|
454
454
|
}
|
|
455
|
-
|
|
455
|
+
le.prototype.toString = function() {
|
|
456
456
|
return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
|
|
457
457
|
};
|
|
458
|
-
function
|
|
458
|
+
function yf(e) {
|
|
459
459
|
e: for (var f = e.length, a = 1, d = -1, c; a < f; ++a) switch (e[a]) {
|
|
460
460
|
case ".":
|
|
461
461
|
d = c = a;
|
|
@@ -470,38 +470,38 @@ function gf(e) {
|
|
|
470
470
|
}
|
|
471
471
|
return d > 0 ? e.slice(0, d) + e.slice(c + 1) : e;
|
|
472
472
|
}
|
|
473
|
-
var
|
|
474
|
-
function
|
|
475
|
-
var a =
|
|
476
|
-
if (!a) return
|
|
477
|
-
var d = a[0], c = a[1], t = c - (
|
|
478
|
-
return t ===
|
|
473
|
+
var fe;
|
|
474
|
+
function vf(e, f) {
|
|
475
|
+
var a = ee(e, f);
|
|
476
|
+
if (!a) return fe = void 0, e.toPrecision(f);
|
|
477
|
+
var d = a[0], c = a[1], t = c - (fe = Math.max(-8, Math.min(8, Math.floor(c / 3))) * 3) + 1, b = d.length;
|
|
478
|
+
return t === b ? d : t > b ? d + Array(t - b + 1).join("0") : t > 0 ? d.slice(0, t) + "." + d.slice(t) : "0." + Array(1 - t).join("0") + ee(e, Math.max(0, f + t - 1))[0];
|
|
479
479
|
}
|
|
480
|
-
function
|
|
481
|
-
var a =
|
|
480
|
+
function _e(e, f) {
|
|
481
|
+
var a = ee(e, f);
|
|
482
482
|
if (!a) return e + "";
|
|
483
483
|
var d = a[0], c = a[1];
|
|
484
484
|
return c < 0 ? "0." + Array(-c).join("0") + d : d.length > c + 1 ? d.slice(0, c + 1) + "." + d.slice(c + 1) : d + Array(c - d.length + 2).join("0");
|
|
485
485
|
}
|
|
486
|
-
var
|
|
486
|
+
var Ce = {
|
|
487
487
|
"%": (e, f) => (e * 100).toFixed(f),
|
|
488
488
|
b: (e) => Math.round(e).toString(2),
|
|
489
489
|
c: (e) => e + "",
|
|
490
|
-
d:
|
|
490
|
+
d: uf,
|
|
491
491
|
e: (e, f) => e.toExponential(f),
|
|
492
492
|
f: (e, f) => e.toFixed(f),
|
|
493
493
|
g: (e, f) => e.toPrecision(f),
|
|
494
494
|
o: (e) => Math.round(e).toString(8),
|
|
495
|
-
p: (e, f) =>
|
|
496
|
-
r:
|
|
497
|
-
s:
|
|
495
|
+
p: (e, f) => _e(e * 100, f),
|
|
496
|
+
r: _e,
|
|
497
|
+
s: vf,
|
|
498
498
|
X: (e) => Math.round(e).toString(16).toUpperCase(),
|
|
499
499
|
x: (e) => Math.round(e).toString(16)
|
|
500
500
|
};
|
|
501
|
-
function
|
|
501
|
+
function Se(e) {
|
|
502
502
|
return e;
|
|
503
503
|
}
|
|
504
|
-
var Pe = Array.prototype.map,
|
|
504
|
+
var Pe = Array.prototype.map, Le = [
|
|
505
505
|
"y",
|
|
506
506
|
"z",
|
|
507
507
|
"a",
|
|
@@ -520,138 +520,138 @@ var Pe = Array.prototype.map, Se = [
|
|
|
520
520
|
"Z",
|
|
521
521
|
"Y"
|
|
522
522
|
];
|
|
523
|
-
function
|
|
524
|
-
var f = e.grouping === void 0 || e.thousands === void 0 ?
|
|
523
|
+
function wf(e) {
|
|
524
|
+
var f = e.grouping === void 0 || e.thousands === void 0 ? Se : pf(Pe.call(e.grouping, Number), e.thousands + ""), a = e.currency === void 0 ? "" : e.currency[0] + "", d = e.currency === void 0 ? "" : e.currency[1] + "", c = e.decimal === void 0 ? "." : e.decimal + "", t = e.numerals === void 0 ? Se : mf(Pe.call(e.numerals, String)), b = e.percent === void 0 ? "%" : e.percent + "", n = e.minus === void 0 ? "−" : e.minus + "", r = e.nan === void 0 ? "NaN" : e.nan + "";
|
|
525
525
|
function l(i, p) {
|
|
526
|
-
i =
|
|
527
|
-
var
|
|
528
|
-
|
|
529
|
-
var
|
|
530
|
-
|
|
531
|
-
function
|
|
532
|
-
var S =
|
|
533
|
-
if (
|
|
526
|
+
i = re(i);
|
|
527
|
+
var m = i.fill, v = i.align, y = i.sign, A = i.symbol, _ = i.zero, w = i.width, C = i.comma, k = i.precision, j = i.trim, M = i.type;
|
|
528
|
+
M === "n" ? (C = !0, M = "g") : Ce[M] || (k === void 0 && (k = 12), j = !0, M = "g"), (_ || m === "0" && v === "=") && (_ = !0, m = "0", v = "=");
|
|
529
|
+
var ze = (p && p.prefix !== void 0 ? p.prefix : "") + (A === "$" ? a : A === "#" && /[boxX]/.test(M) ? "0" + M.toLowerCase() : ""), De = (A === "$" ? d : /[%p]/.test(M) ? b : "") + (p && p.suffix !== void 0 ? p.suffix : ""), pe = Ce[M], Ge = /[defgprs%]/.test(M);
|
|
530
|
+
k = k === void 0 ? 6 : /[gprs]/.test(M) ? Math.max(1, Math.min(21, k)) : Math.max(0, Math.min(20, k));
|
|
531
|
+
function me(s) {
|
|
532
|
+
var S = ze, N = De, F, ge, U;
|
|
533
|
+
if (M === "c") N = pe(s) + N, s = "";
|
|
534
534
|
else {
|
|
535
535
|
s = +s;
|
|
536
|
-
var
|
|
537
|
-
if (s = isNaN(s) ?
|
|
538
|
-
for (
|
|
539
|
-
|
|
536
|
+
var J = s < 0 || 1 / s < 0;
|
|
537
|
+
if (s = isNaN(s) ? r : pe(Math.abs(s), k), j && (s = yf(s)), J && +s == 0 && y !== "+" && (J = !1), S = (J ? y === "(" ? y : n : y === "-" || y === "(" ? "" : y) + S, N = (M === "s" && !isNaN(s) && fe !== void 0 ? Le[8 + fe / 3] : "") + N + (J && y === "(" ? ")" : ""), Ge) {
|
|
538
|
+
for (F = -1, ge = s.length; ++F < ge; ) if (U = s.charCodeAt(F), 48 > U || U > 57) {
|
|
539
|
+
N = (U === 46 ? c + s.slice(F + 1) : s.slice(F)) + N, s = s.slice(0, F);
|
|
540
540
|
break;
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
|
-
|
|
545
|
-
var X = S.length + s.length +
|
|
546
|
-
switch (
|
|
544
|
+
C && !_ && (s = f(s, 1 / 0));
|
|
545
|
+
var X = S.length + s.length + N.length, E = X < w ? Array(w - X + 1).join(m) : "";
|
|
546
|
+
switch (C && _ && (s = f(E + s, E.length ? w - N.length : 1 / 0), E = ""), v) {
|
|
547
547
|
case "<":
|
|
548
|
-
s = S + s +
|
|
548
|
+
s = S + s + N + E;
|
|
549
549
|
break;
|
|
550
550
|
case "=":
|
|
551
|
-
s = S +
|
|
551
|
+
s = S + E + s + N;
|
|
552
552
|
break;
|
|
553
553
|
case "^":
|
|
554
|
-
s =
|
|
554
|
+
s = E.slice(0, X = E.length >> 1) + S + s + N + E.slice(X);
|
|
555
555
|
break;
|
|
556
556
|
default:
|
|
557
|
-
s =
|
|
557
|
+
s = E + S + s + N;
|
|
558
558
|
break;
|
|
559
559
|
}
|
|
560
560
|
return t(s);
|
|
561
561
|
}
|
|
562
|
-
return
|
|
562
|
+
return me.toString = function() {
|
|
563
563
|
return i + "";
|
|
564
|
-
},
|
|
564
|
+
}, me;
|
|
565
565
|
}
|
|
566
|
-
function
|
|
567
|
-
var
|
|
568
|
-
return function(
|
|
569
|
-
return
|
|
566
|
+
function h(i, p) {
|
|
567
|
+
var m = Math.max(-8, Math.min(8, Math.floor(hf(p) / 3))) * 3, v = 10 ** -m, y = l((i = re(i), i.type = "f", i), { suffix: Le[8 + m / 3] });
|
|
568
|
+
return function(A) {
|
|
569
|
+
return y(v * A);
|
|
570
570
|
};
|
|
571
571
|
}
|
|
572
572
|
return {
|
|
573
573
|
format: l,
|
|
574
|
-
formatPrefix:
|
|
574
|
+
formatPrefix: h
|
|
575
575
|
};
|
|
576
576
|
}
|
|
577
|
-
var
|
|
578
|
-
|
|
577
|
+
var Y;
|
|
578
|
+
Mf({
|
|
579
579
|
thousands: ",",
|
|
580
580
|
grouping: [3],
|
|
581
581
|
currency: ["$", ""]
|
|
582
582
|
});
|
|
583
|
-
function
|
|
584
|
-
return
|
|
583
|
+
function Mf(e) {
|
|
584
|
+
return Y = wf(e), Y.format, Y.formatPrefix, Y;
|
|
585
585
|
}
|
|
586
|
-
function
|
|
587
|
-
var t = e * e,
|
|
588
|
-
return ((1 - 3 * e + 3 * t -
|
|
586
|
+
function Nf(e, f, a, d, c) {
|
|
587
|
+
var t = e * e, b = t * e;
|
|
588
|
+
return ((1 - 3 * e + 3 * t - b) * f + (4 - 6 * t + 3 * b) * a + (1 + 3 * e + 3 * t - 3 * b) * d + b * c) / 6;
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function xf(e) {
|
|
591
591
|
var f = e.length - 1;
|
|
592
592
|
return function(a) {
|
|
593
|
-
var d = a <= 0 ? a = 0 : a >= 1 ? (a = 1, f - 1) : Math.floor(a * f), c = e[d], t = e[d + 1],
|
|
594
|
-
return
|
|
593
|
+
var d = a <= 0 ? a = 0 : a >= 1 ? (a = 1, f - 1) : Math.floor(a * f), c = e[d], t = e[d + 1], b = d > 0 ? e[d - 1] : 2 * c - t, n = d < f - 1 ? e[d + 2] : 2 * t - c;
|
|
594
|
+
return Nf((a - d / f) * f, b, c, t, n);
|
|
595
595
|
};
|
|
596
596
|
}
|
|
597
|
-
var
|
|
598
|
-
function
|
|
597
|
+
var ue = (e) => () => e;
|
|
598
|
+
function Oe(e, f) {
|
|
599
599
|
return function(a) {
|
|
600
600
|
return e + a * f;
|
|
601
601
|
};
|
|
602
602
|
}
|
|
603
|
-
function
|
|
603
|
+
function kf(e, f, a) {
|
|
604
604
|
return e **= +a, f = f ** +a - e, a = 1 / a, function(d) {
|
|
605
605
|
return (e + d * f) ** +a;
|
|
606
606
|
};
|
|
607
607
|
}
|
|
608
|
-
function
|
|
608
|
+
function Rf(e, f) {
|
|
609
609
|
var a = f - e;
|
|
610
|
-
return a ?
|
|
610
|
+
return a ? Oe(e, a > 180 || a < -180 ? a - 360 * Math.round(a / 360) : a) : ue(isNaN(e) ? f : e);
|
|
611
611
|
}
|
|
612
|
-
function
|
|
612
|
+
function $f(e) {
|
|
613
613
|
return (e = +e) == 1 ? O : function(f, a) {
|
|
614
|
-
return a - f ?
|
|
614
|
+
return a - f ? kf(f, a, e) : ue(isNaN(f) ? a : f);
|
|
615
615
|
};
|
|
616
616
|
}
|
|
617
617
|
function O(e, f) {
|
|
618
618
|
var a = f - e;
|
|
619
|
-
return a ?
|
|
619
|
+
return a ? Oe(e, a) : ue(isNaN(e) ? f : e);
|
|
620
620
|
}
|
|
621
621
|
(function e(f) {
|
|
622
|
-
var a =
|
|
622
|
+
var a = $f(f);
|
|
623
623
|
function d(c, t) {
|
|
624
|
-
var
|
|
625
|
-
return function(
|
|
626
|
-
return c.r =
|
|
624
|
+
var b = a((c = G(c)).r, (t = G(t)).r), n = a(c.g, t.g), r = a(c.b, t.b), l = O(c.opacity, t.opacity);
|
|
625
|
+
return function(h) {
|
|
626
|
+
return c.r = b(h), c.g = n(h), c.b = r(h), c.opacity = l(h), c + "";
|
|
627
627
|
};
|
|
628
628
|
}
|
|
629
629
|
return d.gamma = e, d;
|
|
630
630
|
})(1);
|
|
631
631
|
function Ef(e) {
|
|
632
632
|
return function(f) {
|
|
633
|
-
var a = f.length, d = Array(a), c = Array(a), t = Array(a),
|
|
634
|
-
for (
|
|
635
|
-
return d = e(d), c = e(c), t = e(t),
|
|
636
|
-
return
|
|
633
|
+
var a = f.length, d = Array(a), c = Array(a), t = Array(a), b, n;
|
|
634
|
+
for (b = 0; b < a; ++b) n = G(f[b]), d[b] = n.r || 0, c[b] = n.g || 0, t[b] = n.b || 0;
|
|
635
|
+
return d = e(d), c = e(c), t = e(t), n.opacity = 1, function(r) {
|
|
636
|
+
return n.r = d(r), n.g = c(r), n.b = t(r), n + "";
|
|
637
637
|
};
|
|
638
638
|
};
|
|
639
639
|
}
|
|
640
|
-
var Af = Ef(
|
|
641
|
-
function
|
|
640
|
+
var Af = Ef(xf);
|
|
641
|
+
function Be(e) {
|
|
642
642
|
return (function f(a) {
|
|
643
643
|
a = +a;
|
|
644
644
|
function d(c, t) {
|
|
645
|
-
var
|
|
646
|
-
return function(
|
|
647
|
-
return c.h =
|
|
645
|
+
var b = e((c = $(c)).h, (t = $(t)).h), n = O(c.s, t.s), r = O(c.l, t.l), l = O(c.opacity, t.opacity);
|
|
646
|
+
return function(h) {
|
|
647
|
+
return c.h = b(h), c.s = n(h), c.l = r(h ** +a), c.opacity = l(h), c + "";
|
|
648
648
|
};
|
|
649
649
|
}
|
|
650
650
|
return d.gamma = f, d;
|
|
651
651
|
})(1);
|
|
652
652
|
}
|
|
653
|
-
|
|
654
|
-
var
|
|
653
|
+
Be(Rf);
|
|
654
|
+
var he = Be(O);
|
|
655
655
|
function o(e) {
|
|
656
656
|
for (var f = e.length / 6 | 0, a = Array(f), d = 0; d < f; ) a[d] = "#" + e.slice(d * 6, ++d * 6);
|
|
657
657
|
return a;
|
|
@@ -667,7 +667,7 @@ o("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");
|
|
|
667
667
|
o("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");
|
|
668
668
|
o("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");
|
|
669
669
|
o("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");
|
|
670
|
-
var
|
|
670
|
+
var u = (e) => Af(e[e.length - 1]), _f = [
|
|
671
671
|
,
|
|
672
672
|
,
|
|
673
673
|
,
|
|
@@ -681,7 +681,7 @@ var h = (e) => Af(e[e.length - 1]), Rf = [
|
|
|
681
681
|
"5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30",
|
|
682
682
|
"5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30"
|
|
683
683
|
].map(o);
|
|
684
|
-
|
|
684
|
+
u(_f);
|
|
685
685
|
var Cf = [
|
|
686
686
|
,
|
|
687
687
|
,
|
|
@@ -696,8 +696,8 @@ var Cf = [
|
|
|
696
696
|
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b",
|
|
697
697
|
"40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b"
|
|
698
698
|
].map(o);
|
|
699
|
-
|
|
700
|
-
var
|
|
699
|
+
u(Cf);
|
|
700
|
+
var Sf = [
|
|
701
701
|
,
|
|
702
702
|
,
|
|
703
703
|
,
|
|
@@ -711,8 +711,8 @@ var Pf = [
|
|
|
711
711
|
"8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
|
|
712
712
|
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419"
|
|
713
713
|
].map(o);
|
|
714
|
-
|
|
715
|
-
var
|
|
714
|
+
u(Sf);
|
|
715
|
+
var Pf = [
|
|
716
716
|
,
|
|
717
717
|
,
|
|
718
718
|
,
|
|
@@ -726,7 +726,7 @@ var Sf = [
|
|
|
726
726
|
"2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08",
|
|
727
727
|
"2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08"
|
|
728
728
|
].map(o);
|
|
729
|
-
|
|
729
|
+
u(Pf);
|
|
730
730
|
var Lf = [
|
|
731
731
|
,
|
|
732
732
|
,
|
|
@@ -741,8 +741,8 @@ var Lf = [
|
|
|
741
741
|
"67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061",
|
|
742
742
|
"67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061"
|
|
743
743
|
].map(o);
|
|
744
|
-
|
|
745
|
-
var
|
|
744
|
+
u(Lf);
|
|
745
|
+
var If = [
|
|
746
746
|
,
|
|
747
747
|
,
|
|
748
748
|
,
|
|
@@ -756,8 +756,8 @@ var Tf = [
|
|
|
756
756
|
"67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a",
|
|
757
757
|
"67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a"
|
|
758
758
|
].map(o);
|
|
759
|
-
|
|
760
|
-
var
|
|
759
|
+
u(If);
|
|
760
|
+
var Tf = [
|
|
761
761
|
,
|
|
762
762
|
,
|
|
763
763
|
,
|
|
@@ -771,8 +771,8 @@ var jf = [
|
|
|
771
771
|
"a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695",
|
|
772
772
|
"a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695"
|
|
773
773
|
].map(o);
|
|
774
|
-
|
|
775
|
-
var
|
|
774
|
+
u(Tf);
|
|
775
|
+
var jf = [
|
|
776
776
|
,
|
|
777
777
|
,
|
|
778
778
|
,
|
|
@@ -786,8 +786,8 @@ var Ff = [
|
|
|
786
786
|
"a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837",
|
|
787
787
|
"a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837"
|
|
788
788
|
].map(o);
|
|
789
|
-
|
|
790
|
-
var
|
|
789
|
+
u(jf);
|
|
790
|
+
var Ff = [
|
|
791
791
|
,
|
|
792
792
|
,
|
|
793
793
|
,
|
|
@@ -801,8 +801,8 @@ var If = [
|
|
|
801
801
|
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2",
|
|
802
802
|
"9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2"
|
|
803
803
|
].map(o);
|
|
804
|
-
|
|
805
|
-
var
|
|
804
|
+
u(Ff);
|
|
805
|
+
var Hf = [
|
|
806
806
|
,
|
|
807
807
|
,
|
|
808
808
|
,
|
|
@@ -814,8 +814,8 @@ var _f = [
|
|
|
814
814
|
"f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824",
|
|
815
815
|
"f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b"
|
|
816
816
|
].map(o);
|
|
817
|
-
|
|
818
|
-
var
|
|
817
|
+
u(Hf);
|
|
818
|
+
var Of = [
|
|
819
819
|
,
|
|
820
820
|
,
|
|
821
821
|
,
|
|
@@ -827,8 +827,8 @@ var Hf = [
|
|
|
827
827
|
"f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b",
|
|
828
828
|
"f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b"
|
|
829
829
|
].map(o);
|
|
830
|
-
|
|
831
|
-
var
|
|
830
|
+
u(Of);
|
|
831
|
+
var Bf = [
|
|
832
832
|
,
|
|
833
833
|
,
|
|
834
834
|
,
|
|
@@ -840,8 +840,8 @@ var Of = [
|
|
|
840
840
|
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
|
|
841
841
|
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081"
|
|
842
842
|
].map(o);
|
|
843
|
-
|
|
844
|
-
var
|
|
843
|
+
u(Bf);
|
|
844
|
+
var zf = [
|
|
845
845
|
,
|
|
846
846
|
,
|
|
847
847
|
,
|
|
@@ -853,8 +853,8 @@ var Bf = [
|
|
|
853
853
|
"fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000",
|
|
854
854
|
"fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000"
|
|
855
855
|
].map(o);
|
|
856
|
-
|
|
857
|
-
var
|
|
856
|
+
u(zf);
|
|
857
|
+
var Df = [
|
|
858
858
|
,
|
|
859
859
|
,
|
|
860
860
|
,
|
|
@@ -866,8 +866,8 @@ var zf = [
|
|
|
866
866
|
"fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450",
|
|
867
867
|
"fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636"
|
|
868
868
|
].map(o);
|
|
869
|
-
|
|
870
|
-
var
|
|
869
|
+
u(Df);
|
|
870
|
+
var Gf = [
|
|
871
871
|
,
|
|
872
872
|
,
|
|
873
873
|
,
|
|
@@ -879,7 +879,7 @@ var Df = [
|
|
|
879
879
|
"fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b",
|
|
880
880
|
"fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858"
|
|
881
881
|
].map(o);
|
|
882
|
-
|
|
882
|
+
u(Gf);
|
|
883
883
|
var qf = [
|
|
884
884
|
,
|
|
885
885
|
,
|
|
@@ -892,8 +892,8 @@ var qf = [
|
|
|
892
892
|
"f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f",
|
|
893
893
|
"f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f"
|
|
894
894
|
].map(o);
|
|
895
|
-
|
|
896
|
-
var
|
|
895
|
+
u(qf);
|
|
896
|
+
var Uf = [
|
|
897
897
|
,
|
|
898
898
|
,
|
|
899
899
|
,
|
|
@@ -905,7 +905,7 @@ var Gf = [
|
|
|
905
905
|
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
|
|
906
906
|
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a"
|
|
907
907
|
].map(o);
|
|
908
|
-
|
|
908
|
+
u(Uf);
|
|
909
909
|
var Jf = [
|
|
910
910
|
,
|
|
911
911
|
,
|
|
@@ -918,8 +918,8 @@ var Jf = [
|
|
|
918
918
|
"ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84",
|
|
919
919
|
"ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58"
|
|
920
920
|
].map(o);
|
|
921
|
-
|
|
922
|
-
var
|
|
921
|
+
u(Jf);
|
|
922
|
+
var Xf = [
|
|
923
923
|
,
|
|
924
924
|
,
|
|
925
925
|
,
|
|
@@ -931,8 +931,8 @@ var Uf = [
|
|
|
931
931
|
"ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32",
|
|
932
932
|
"ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529"
|
|
933
933
|
].map(o);
|
|
934
|
-
|
|
935
|
-
var
|
|
934
|
+
u(Xf);
|
|
935
|
+
var Kf = [
|
|
936
936
|
,
|
|
937
937
|
,
|
|
938
938
|
,
|
|
@@ -944,7 +944,7 @@ var Xf = [
|
|
|
944
944
|
"ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04",
|
|
945
945
|
"ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506"
|
|
946
946
|
].map(o);
|
|
947
|
-
|
|
947
|
+
u(Kf);
|
|
948
948
|
var Wf = [
|
|
949
949
|
,
|
|
950
950
|
,
|
|
@@ -957,7 +957,7 @@ var Wf = [
|
|
|
957
957
|
"ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026",
|
|
958
958
|
"ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026"
|
|
959
959
|
].map(o);
|
|
960
|
-
|
|
960
|
+
u(Wf);
|
|
961
961
|
var Vf = [
|
|
962
962
|
,
|
|
963
963
|
,
|
|
@@ -970,8 +970,8 @@ var Vf = [
|
|
|
970
970
|
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
|
|
971
971
|
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b"
|
|
972
972
|
].map(o);
|
|
973
|
-
|
|
974
|
-
var
|
|
973
|
+
u(Vf);
|
|
974
|
+
var Qf = [
|
|
975
975
|
,
|
|
976
976
|
,
|
|
977
977
|
,
|
|
@@ -983,8 +983,8 @@ var Kf = [
|
|
|
983
983
|
"f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32",
|
|
984
984
|
"f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b"
|
|
985
985
|
].map(o);
|
|
986
|
-
|
|
987
|
-
var
|
|
986
|
+
u(Qf);
|
|
987
|
+
var Yf = [
|
|
988
988
|
,
|
|
989
989
|
,
|
|
990
990
|
,
|
|
@@ -996,7 +996,7 @@ var Qf = [
|
|
|
996
996
|
"fffffff0f0f0d9d9d9bdbdbd969696737373525252252525",
|
|
997
997
|
"fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000"
|
|
998
998
|
].map(o);
|
|
999
|
-
|
|
999
|
+
u(Yf);
|
|
1000
1000
|
var Zf = [
|
|
1001
1001
|
,
|
|
1002
1002
|
,
|
|
@@ -1009,8 +1009,8 @@ var Zf = [
|
|
|
1009
1009
|
"fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486",
|
|
1010
1010
|
"fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d"
|
|
1011
1011
|
].map(o);
|
|
1012
|
-
|
|
1013
|
-
var
|
|
1012
|
+
u(Zf);
|
|
1013
|
+
var ea = [
|
|
1014
1014
|
,
|
|
1015
1015
|
,
|
|
1016
1016
|
,
|
|
@@ -1022,8 +1022,8 @@ var Yf = [
|
|
|
1022
1022
|
"fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d",
|
|
1023
1023
|
"fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d"
|
|
1024
1024
|
].map(o);
|
|
1025
|
-
|
|
1026
|
-
var
|
|
1025
|
+
u(ea);
|
|
1026
|
+
var fa = [
|
|
1027
1027
|
,
|
|
1028
1028
|
,
|
|
1029
1029
|
,
|
|
@@ -1035,110 +1035,110 @@ var ea = [
|
|
|
1035
1035
|
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
|
|
1036
1036
|
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704"
|
|
1037
1037
|
].map(o);
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
function
|
|
1038
|
+
u(fa);
|
|
1039
|
+
he($(300, 0.5, 0), $(-240, 0.5, 1));
|
|
1040
|
+
he($(-100, 0.75, 0.35), $(80, 1.5, 0.8));
|
|
1041
|
+
he($(260, 0.75, 0.35), $(80, 1.5, 0.8));
|
|
1042
|
+
$();
|
|
1043
|
+
G();
|
|
1044
|
+
function ce(e) {
|
|
1045
1045
|
var f = e.length;
|
|
1046
1046
|
return function(a) {
|
|
1047
1047
|
return e[Math.max(0, Math.min(f - 1, Math.floor(a * f)))];
|
|
1048
1048
|
};
|
|
1049
1049
|
}
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
var
|
|
1055
|
-
function
|
|
1056
|
-
var e = new
|
|
1057
|
-
return
|
|
1050
|
+
ce(o("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
|
|
1051
|
+
ce(o("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
|
|
1052
|
+
ce(o("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
|
|
1053
|
+
ce(o("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
|
|
1054
|
+
var Ie = typeof Float32Array < "u" ? Float32Array : Array;
|
|
1055
|
+
function aa() {
|
|
1056
|
+
var e = new Ie(3);
|
|
1057
|
+
return Ie != Float32Array && (e[0] = 0, e[1] = 0, e[2] = 0), e;
|
|
1058
1058
|
}
|
|
1059
1059
|
(function() {
|
|
1060
|
-
var e =
|
|
1061
|
-
return function(f, a, d, c, t,
|
|
1062
|
-
var
|
|
1063
|
-
for (a ||= 3, d ||= 0,
|
|
1060
|
+
var e = aa();
|
|
1061
|
+
return function(f, a, d, c, t, b) {
|
|
1062
|
+
var n, r;
|
|
1063
|
+
for (a ||= 3, d ||= 0, r = c ? Math.min(c * a + d, f.length) : f.length, n = d; n < r; n += a) e[0] = f[n], e[1] = f[n + 1], e[2] = f[n + 2], t(e, e, b), f[n] = e[0], f[n + 1] = e[1], f[n + 2] = e[2];
|
|
1064
1064
|
return f;
|
|
1065
1065
|
};
|
|
1066
1066
|
})();
|
|
1067
|
-
function
|
|
1068
|
-
return f && f.length > 0 ? { type: W.USER, params: f } : e?.mode ===
|
|
1067
|
+
function da(e, f) {
|
|
1068
|
+
return f && f.length > 0 ? { type: W.USER, params: f } : e?.mode === qe.PERCENTILE ? e.lowerPercentile !== void 0 || e.upperPercentile !== void 0 ? {
|
|
1069
1069
|
type: W.PERCENTILE,
|
|
1070
1070
|
params: [e.lowerPercentile ?? 0, e.upperPercentile ?? 100]
|
|
1071
1071
|
} : { type: W.PERCENTILE } : { type: W.MIN_MAX };
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1073
|
+
function ca(e, f) {
|
|
1074
1074
|
return f.split(".").reduce((a, d) => {
|
|
1075
1075
|
if (!(a == null || typeof a != "object"))
|
|
1076
1076
|
return a[d];
|
|
1077
1077
|
}, e);
|
|
1078
1078
|
}
|
|
1079
|
-
function
|
|
1079
|
+
function ta(e, f, a) {
|
|
1080
1080
|
const d = f.split("."), c = { ...e };
|
|
1081
1081
|
let t = c;
|
|
1082
|
-
for (let
|
|
1083
|
-
t[d[
|
|
1082
|
+
for (let b = 0; b < d.length - 1; b++)
|
|
1083
|
+
t[d[b]] = { ...t[d[b]] ?? {} }, t = t[d[b]];
|
|
1084
1084
|
return t[d[d.length - 1]] = a, c;
|
|
1085
1085
|
}
|
|
1086
|
-
function
|
|
1087
|
-
async function d(c, t,
|
|
1088
|
-
let
|
|
1089
|
-
for (const
|
|
1090
|
-
|
|
1091
|
-
for (const
|
|
1092
|
-
const l =
|
|
1086
|
+
function ba(e, f, a) {
|
|
1087
|
+
async function d(c, t, b) {
|
|
1088
|
+
let n = {};
|
|
1089
|
+
for (const r of t.tables)
|
|
1090
|
+
r.type !== void 0 && (n[r.name] = r.type);
|
|
1091
|
+
for (const r of b.layerRefs) {
|
|
1092
|
+
const l = r.dataRef, h = n[l], i = r.getFnv, p = a?.get(l) ?? await t.getLayer(l), m = {
|
|
1093
1093
|
...p,
|
|
1094
|
-
features: (p.features ?? []).filter((
|
|
1094
|
+
features: (p.features ?? []).filter((w) => w.geometry != null)
|
|
1095
1095
|
};
|
|
1096
|
-
|
|
1097
|
-
const { catchAllCategory:
|
|
1098
|
-
let
|
|
1099
|
-
if (i &&
|
|
1100
|
-
const
|
|
1101
|
-
|
|
1102
|
-
...
|
|
1103
|
-
features:
|
|
1104
|
-
const
|
|
1105
|
-
return
|
|
1096
|
+
h === "raster" ? c.loadCollection(l, { collection: m, type: "raster", property: i ?? "" }) : c.loadCollection(l, { collection: m, type: h }), r.opacity != null && c.updateRenderInfo(l, { opacity: r.opacity }), r.isColorMap && c.updateRenderInfo(l, { isColorMap: !0 }), r.isPick && c.updateRenderInfo(l, { isPick: !0 }), r.isSkip && c.updateRenderInfo(l, { isSkip: !0 });
|
|
1097
|
+
const { catchAllCategory: v, colorMapDomain: y } = r;
|
|
1098
|
+
let A = m, _ = y;
|
|
1099
|
+
if (i && v && y?.length) {
|
|
1100
|
+
const w = new Set(y);
|
|
1101
|
+
A = {
|
|
1102
|
+
...m,
|
|
1103
|
+
features: m.features.map((C) => {
|
|
1104
|
+
const k = C.properties, j = ca(k, i);
|
|
1105
|
+
return j == null || !w.has(String(j)) ? { ...C, properties: ta(k, i, v) } : C;
|
|
1106
1106
|
})
|
|
1107
|
-
},
|
|
1107
|
+
}, _ = w.has(v) ? y : [...y, v];
|
|
1108
1108
|
}
|
|
1109
|
-
if (
|
|
1110
|
-
const
|
|
1109
|
+
if (r.colorMapInterpolator) {
|
|
1110
|
+
const w = {
|
|
1111
1111
|
// urban-grammar ColorMapInterpolator values are string-compatible
|
|
1112
1112
|
// with autk-core ColorMapInterpolator at runtime
|
|
1113
|
-
interpolator:
|
|
1114
|
-
domainSpec:
|
|
1113
|
+
interpolator: r.colorMapInterpolator,
|
|
1114
|
+
domainSpec: da(r.normalization, _)
|
|
1115
1115
|
};
|
|
1116
|
-
c.updateRenderInfo(l, { colormap: { config:
|
|
1116
|
+
c.updateRenderInfo(l, { colormap: { config: w }, isColorMap: !0 });
|
|
1117
1117
|
}
|
|
1118
|
-
if (i &&
|
|
1119
|
-
const
|
|
1120
|
-
c.updateThematic(l, { collection:
|
|
1118
|
+
if (i && h !== "raster") {
|
|
1119
|
+
const w = i.startsWith("properties.") ? i : `properties.${i}`;
|
|
1120
|
+
c.updateThematic(l, { collection: A, property: w });
|
|
1121
1121
|
}
|
|
1122
1122
|
}
|
|
1123
1123
|
}
|
|
1124
1124
|
return {
|
|
1125
|
-
async resolveMap(c, t,
|
|
1125
|
+
async resolveMap(c, t, b = 0) {
|
|
1126
1126
|
if (e && e.map && c) {
|
|
1127
|
-
let
|
|
1128
|
-
if (Array.isArray(e.map) ?
|
|
1127
|
+
let n;
|
|
1128
|
+
if (Array.isArray(e.map) ? n = document.getElementById(e.map[b]) : n = document.getElementById(e.map), !n)
|
|
1129
1129
|
throw new Error("Could not find rendering target for map: " + e.map);
|
|
1130
|
-
if (!(
|
|
1130
|
+
if (!(n instanceof HTMLCanvasElement))
|
|
1131
1131
|
throw new Error("Target for map is not a canvas: " + e.map);
|
|
1132
|
-
const
|
|
1133
|
-
if (t.style &&
|
|
1132
|
+
const r = new Xe(n);
|
|
1133
|
+
if (t.style && Ke.setPredefinedStyle(t.style), await r.init(), await d(r, c, t), f)
|
|
1134
1134
|
for (const l of t.layerRefs)
|
|
1135
|
-
f.set(l.dataRef,
|
|
1136
|
-
|
|
1135
|
+
f.set(l.dataRef, r);
|
|
1136
|
+
r.draw();
|
|
1137
1137
|
}
|
|
1138
1138
|
}
|
|
1139
1139
|
};
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1141
|
+
function ra(e) {
|
|
1142
1142
|
return {
|
|
1143
1143
|
scatter: "scatterplot",
|
|
1144
1144
|
bar: "barchart",
|
|
@@ -1149,41 +1149,41 @@ function ba(e) {
|
|
|
1149
1149
|
heatmatrix: "heatmatrix"
|
|
1150
1150
|
}[e];
|
|
1151
1151
|
}
|
|
1152
|
-
function
|
|
1152
|
+
function na(e, f, a, d, c) {
|
|
1153
1153
|
return {
|
|
1154
|
-
async resolvePlot(
|
|
1154
|
+
async resolvePlot(t, b) {
|
|
1155
1155
|
if (!e || !e.plot) return;
|
|
1156
|
-
const
|
|
1157
|
-
if (!
|
|
1158
|
-
const
|
|
1159
|
-
if (!
|
|
1160
|
-
const
|
|
1161
|
-
type:
|
|
1162
|
-
collection:
|
|
1163
|
-
attributes: { axis:
|
|
1164
|
-
labels: { axis:
|
|
1165
|
-
events:
|
|
1166
|
-
...
|
|
1167
|
-
...
|
|
1168
|
-
...
|
|
1169
|
-
...
|
|
1156
|
+
const n = document.getElementById(e.plot);
|
|
1157
|
+
if (!n) throw new Error(`Could not find plot target: ${e.plot}`);
|
|
1158
|
+
const r = t;
|
|
1159
|
+
if (!r) throw new Error("No data context available for plot.");
|
|
1160
|
+
const l = c?.get(b.dataRef) ?? await r.getLayer(b.dataRef), h = b.events ?? [], i = new We(n, {
|
|
1161
|
+
type: ra(b.mark),
|
|
1162
|
+
collection: l,
|
|
1163
|
+
attributes: { axis: b.axis, ...b.color && { color: b.color } },
|
|
1164
|
+
labels: { axis: b.axis, title: b.title },
|
|
1165
|
+
events: h,
|
|
1166
|
+
...b.width && { width: b.width },
|
|
1167
|
+
...b.height && { height: b.height },
|
|
1168
|
+
...b.margins && { margins: b.margins },
|
|
1169
|
+
...b.transform && { transform: b.transform }
|
|
1170
1170
|
});
|
|
1171
|
-
if (
|
|
1172
|
-
const
|
|
1173
|
-
if (
|
|
1174
|
-
|
|
1175
|
-
|
|
1171
|
+
if (a?.set(b.dataRef, i), b.mapRef && d?.set(b.dataRef, b.mapRef), b.mapRef && f) {
|
|
1172
|
+
const p = f.get(b.mapRef);
|
|
1173
|
+
if (p) {
|
|
1174
|
+
p.updateRenderInfo(b.mapRef, { isPick: !0 }), p.events.on(be.PICKING, ({ selection: m }) => {
|
|
1175
|
+
i.setSelection(m);
|
|
1176
1176
|
});
|
|
1177
|
-
for (const
|
|
1178
|
-
|
|
1179
|
-
|
|
1177
|
+
for (const m of h)
|
|
1178
|
+
i.events.on(m, ({ selection: v }) => {
|
|
1179
|
+
p.setHighlightedIds(b.mapRef, v);
|
|
1180
1180
|
});
|
|
1181
1181
|
}
|
|
1182
1182
|
}
|
|
1183
1183
|
}
|
|
1184
1184
|
};
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1186
|
+
function ia(e) {
|
|
1187
1187
|
return {
|
|
1188
1188
|
async resolveCompute(f, a) {
|
|
1189
1189
|
if (f) {
|
|
@@ -1204,7 +1204,19 @@ function na(e) {
|
|
|
1204
1204
|
}
|
|
1205
1205
|
};
|
|
1206
1206
|
}
|
|
1207
|
-
class
|
|
1207
|
+
class oa {
|
|
1208
|
+
_listeners = /* @__PURE__ */ new Map();
|
|
1209
|
+
on(f, a) {
|
|
1210
|
+
this._listeners.has(f) || this._listeners.set(f, /* @__PURE__ */ new Set());
|
|
1211
|
+
const d = this._listeners.get(f);
|
|
1212
|
+
return d.add(a), () => d.delete(a);
|
|
1213
|
+
}
|
|
1214
|
+
/** @internal */
|
|
1215
|
+
emit(f, a) {
|
|
1216
|
+
this._listeners.get(f)?.forEach((d) => d(a));
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
class ma {
|
|
1208
1220
|
dataAdapter;
|
|
1209
1221
|
mapAdapter;
|
|
1210
1222
|
plotAdapter;
|
|
@@ -1212,9 +1224,14 @@ class ha {
|
|
|
1212
1224
|
grammarEngine;
|
|
1213
1225
|
_computeCache = /* @__PURE__ */ new Map();
|
|
1214
1226
|
_data = {};
|
|
1227
|
+
_mapRegistry = /* @__PURE__ */ new Map();
|
|
1228
|
+
_plotRegistry = /* @__PURE__ */ new Map();
|
|
1229
|
+
_fwdCleanups = [];
|
|
1230
|
+
_plotMapLinks = /* @__PURE__ */ new Map();
|
|
1231
|
+
interactions = new oa();
|
|
1215
1232
|
constructor(f) {
|
|
1216
|
-
const a = /* @__PURE__ */ new Map()
|
|
1217
|
-
this.dataAdapter =
|
|
1233
|
+
const a = /* @__PURE__ */ new Map();
|
|
1234
|
+
this.dataAdapter = Qe(f, a), this.mapAdapter = ba(f, this._mapRegistry, this._computeCache), this.plotAdapter = na(f, this._mapRegistry, this._plotRegistry, this._plotMapLinks, a), this.computeAdapter = ia(this._computeCache);
|
|
1218
1235
|
}
|
|
1219
1236
|
/**
|
|
1220
1237
|
* The coordinate reference system used internally by the autk workspace.
|
|
@@ -1239,7 +1256,7 @@ class ha {
|
|
|
1239
1256
|
throw new Error("Plot adapter not initialized. Please call the constructor first.");
|
|
1240
1257
|
if (!this.computeAdapter)
|
|
1241
1258
|
throw new Error("Compute adapter not initialized. Please call the constructor first.");
|
|
1242
|
-
this.grammarEngine =
|
|
1259
|
+
this._mapRegistry.clear(), this._plotRegistry.clear(), this._plotMapLinks.clear(), this.grammarEngine = Ue({
|
|
1243
1260
|
spec: f,
|
|
1244
1261
|
adapters: {
|
|
1245
1262
|
db: this.dataAdapter,
|
|
@@ -1247,7 +1264,7 @@ class ha {
|
|
|
1247
1264
|
plot: this.plotAdapter,
|
|
1248
1265
|
compute: this.computeAdapter
|
|
1249
1266
|
}
|
|
1250
|
-
}), await this.grammarEngine.run();
|
|
1267
|
+
}), await this.grammarEngine.run(), this._rewireInteractions();
|
|
1251
1268
|
const a = this.grammarEngine.context;
|
|
1252
1269
|
if (!a) {
|
|
1253
1270
|
console.warn("Grammar engine produced no data context."), this._data = {};
|
|
@@ -1265,10 +1282,71 @@ class ha {
|
|
|
1265
1282
|
});
|
|
1266
1283
|
this._data = d;
|
|
1267
1284
|
}
|
|
1285
|
+
/**
|
|
1286
|
+
* Highlights features on the map layer identified by `layerId`.
|
|
1287
|
+
* If that layer is linked to a plot via `mapRef`, the plot selection is updated too.
|
|
1288
|
+
*/
|
|
1289
|
+
highlightOnMap(f, a) {
|
|
1290
|
+
this._mapRegistry.get(f)?.setHighlightedIds(f, a);
|
|
1291
|
+
for (const [d, c] of this._plotMapLinks)
|
|
1292
|
+
c === f && this._plotRegistry.get(d)?.setSelection(a);
|
|
1293
|
+
}
|
|
1294
|
+
/**
|
|
1295
|
+
* Clears highlighted features on the map layer identified by `layerId`.
|
|
1296
|
+
* If that layer is linked to a plot via `mapRef`, the plot selection is cleared too.
|
|
1297
|
+
*/
|
|
1298
|
+
clearHighlightOnMap(f) {
|
|
1299
|
+
this._mapRegistry.get(f)?.clearHighlightedIds(f);
|
|
1300
|
+
for (const [a, d] of this._plotMapLinks)
|
|
1301
|
+
d === f && this._plotRegistry.get(a)?.setSelection([]);
|
|
1302
|
+
}
|
|
1303
|
+
/**
|
|
1304
|
+
* Clears the selection on the plot identified by `plotId` (its dataRef).
|
|
1305
|
+
* If that plot is linked to a map via `mapRef`, the map highlight is cleared too.
|
|
1306
|
+
*/
|
|
1307
|
+
clearHighlightOnPlot(f) {
|
|
1308
|
+
this._plotRegistry.get(f)?.setSelection([]);
|
|
1309
|
+
const a = this._plotMapLinks.get(f);
|
|
1310
|
+
a && this._mapRegistry.get(a)?.clearHighlightedIds(a);
|
|
1311
|
+
}
|
|
1312
|
+
/**
|
|
1313
|
+
* Applies a selection to the plot identified by `plotId` (its dataRef).
|
|
1314
|
+
* If that plot is linked to a map via `mapRef`, the map highlight is updated too.
|
|
1315
|
+
*/
|
|
1316
|
+
setPlotSelection(f, a) {
|
|
1317
|
+
this._plotRegistry.get(f)?.setSelection(a);
|
|
1318
|
+
const d = this._plotMapLinks.get(f);
|
|
1319
|
+
d && this._mapRegistry.get(d)?.setHighlightedIds(d, a);
|
|
1320
|
+
}
|
|
1321
|
+
_rewireInteractions() {
|
|
1322
|
+
for (const a of this._fwdCleanups) a();
|
|
1323
|
+
this._fwdCleanups = [];
|
|
1324
|
+
const f = /* @__PURE__ */ new Set();
|
|
1325
|
+
for (const [a, d] of this._mapRegistry) {
|
|
1326
|
+
if (f.has(d)) continue;
|
|
1327
|
+
f.add(d);
|
|
1328
|
+
const c = ({ selection: t }) => {
|
|
1329
|
+
this.interactions.emit("map:picking", { layerId: a, selection: t });
|
|
1330
|
+
};
|
|
1331
|
+
d.events.on(be.PICKING, c), this._fwdCleanups.push(() => d.events.off(be.PICKING, c));
|
|
1332
|
+
}
|
|
1333
|
+
for (const [a, d] of this._plotRegistry)
|
|
1334
|
+
for (const c of [K.CLICK, K.BRUSH, K.BRUSH_X, K.BRUSH_Y]) {
|
|
1335
|
+
const t = ({ selection: b }) => {
|
|
1336
|
+
this.interactions.emit("plot:selection", {
|
|
1337
|
+
plotId: a,
|
|
1338
|
+
event: c,
|
|
1339
|
+
selection: b
|
|
1340
|
+
});
|
|
1341
|
+
};
|
|
1342
|
+
d.events.on(c, t), this._fwdCleanups.push(() => d.events.off(c, t));
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1268
1345
|
}
|
|
1269
1346
|
export {
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1347
|
+
ma as AutkGrammar,
|
|
1348
|
+
va as ColorMapInterpolator,
|
|
1349
|
+
oa as GrammarEventEmitter,
|
|
1350
|
+
wa as NormalizationMode
|
|
1273
1351
|
};
|
|
1274
1352
|
//# sourceMappingURL=autk-grammar.js.map
|