@genome-spy/app 0.88.1 → 0.90.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.
Files changed (65) hide show
  1. package/dist/{agentApi-BIpg3JKh.js → agentApi-Z65dw-sD.js} +5976 -6711
  2. package/dist/agentApi.es.js +3580 -4470
  3. package/dist/agentShared.es.js +742 -683
  4. package/dist/{canvas2d-BVQ7-2eJ.js → canvas2d-DiPQvNtZ.js} +122 -109
  5. package/dist/{canvas2d-D7SZK3xv.js → canvas2d-t_N10CeW.js} +114 -101
  6. package/dist/{canvasSizeHelper-7h_8rOcx.js → canvasSizeHelper-foL2YvGL.js} +15 -8
  7. package/dist/{clipOptions-DTMcB_9z.js → clipOptions-B5PibDq3.js} +1610 -1342
  8. package/dist/{clipOptions-BWHr3aTa.js → clipOptions-Cba4I0AO.js} +1872 -1644
  9. package/dist/{componentStyles-FsNmIb22.js → componentStyles-DGtQXvwc.js} +17 -15
  10. package/dist/{debug-CVpoEOWx.js → debug-CVAlrcZt.js} +2 -2
  11. package/dist/{debug-DYAMZZKl.js → debug-DP4WzTNo.js} +2 -2
  12. package/dist/dialog.es.js +4 -3
  13. package/dist/esm-BiqrFjMh.js +443 -0
  14. package/dist/{esm-lwYrRdbg.js → esm-Bv7Frz7C.js} +142 -79
  15. package/dist/{esm-VvpZ9hsq.js → esm-C3A-AuRi.js} +1 -1
  16. package/dist/esm-CvpR1OcU.js +322 -0
  17. package/dist/esm-DFHFX1sH.js +1526 -0
  18. package/dist/esm-Dndm-NaA.js +1193 -0
  19. package/dist/{esm-CcDLRSvC.js → esm-DtNElqRr.js} +64 -63
  20. package/dist/esm-L53qjcYH.js +1155 -0
  21. package/dist/esm-VFJeyk9i.js +249 -0
  22. package/dist/{esm-BdLYkz-m.js → esm-_xCtpDwm.js} +1 -1
  23. package/dist/index.es.js +4203 -3910
  24. package/dist/index.js +971 -482
  25. package/dist/{indexer-CXjZDo2Q.js → indexer-DbFTKGlm.js} +1 -1
  26. package/dist/{indexer-DAH_ruVn.js → indexer-En7gpvLN.js} +1 -1
  27. package/dist/{lit-ByuJ0FJ4.js → lit-CoXp9NFX.js} +12 -10
  28. package/dist/order-BkYCnwD7.js +1062 -0
  29. package/dist/order-R043xTpC.js +1062 -0
  30. package/dist/{parquetRead-Cs2xRrvz.js → parquetRead-0hFIa3Cc.js} +532 -350
  31. package/dist/rasterExport-C_FcNBkC.js +52 -0
  32. package/dist/rasterExport-Z7gs5346.js +52 -0
  33. package/dist/rasterization-_-9JmSas.js +63 -0
  34. package/dist/rectangle-DE98gIxF.js +108 -0
  35. package/dist/{renderCanvas2D-DxturTEW.js → renderCanvas2D-DK1c9TFK.js} +68 -67
  36. package/dist/{renderCanvas2D-DtcJjqpB.js → renderCanvas2D-IM-A9DYG.js} +57 -56
  37. package/dist/schema.json +599 -116
  38. package/dist/{src-DjOlFqSn.js → src-DJtvThVC.js} +3 -5
  39. package/dist/style.css +1 -1
  40. package/dist/{svg-SDJMzL--.js → svg-DW3tfUmm.js} +339 -326
  41. package/dist/{svg-CyrLfa9e.js → svg-PabUdcDi.js} +365 -352
  42. package/dist/{svgRasterizer-f7DJ3UO0.js → svgRasterizer-B6YtWLJs.js} +6 -5
  43. package/dist/{svgRasterizer-mWK7HTkx.js → svgRasterizer-BEVDyyS3.js} +6 -5
  44. package/dist/{vega-scale-DLKCwWRs.js → vega-scale-Byaw1K8O.js} +823 -780
  45. package/dist/{vega-scale-CypF85iS.js → vega-scale-Ctz_wa3z.js} +963 -923
  46. package/dist/{viewIdentityRegistry-Dl-vMN9I.js → viewIdentityRegistry-BW415b3o.js} +1 -1
  47. package/dist/{viewIdentityRegistry-DIDo44XQ.js → viewIdentityRegistry-_F0E7nkA.js} +1 -1
  48. package/dist/{viewSelectors-CymbZyE6.js → viewSelectors-DYz-PhTO.js} +407 -340
  49. package/dist/{viewSelectors-DNiDip5e.js → viewSelectors-KtD-QSN0.js} +349 -282
  50. package/dist/{viewUtils-BrJLIj2o.js → viewUtils-BZGPseMx.js} +2052 -1871
  51. package/dist/{webgl-tZfZ8y3q.js → webgl-BKSGqHaz.js} +2144 -784
  52. package/dist/{webgl-CTJt7jQd.js → webgl-tdKf9SlZ.js} +2386 -1026
  53. package/package.json +5 -5
  54. package/dist/esm-80V4xF_D.js +0 -1098
  55. package/dist/esm-BA6yMcc-.js +0 -1222
  56. package/dist/esm-BdT7qUL-.js +0 -157
  57. package/dist/esm-CfYZhLHN.js +0 -1367
  58. package/dist/esm-D-iG_TIX.js +0 -441
  59. package/dist/esm-JAiZmFIS.js +0 -128
  60. package/dist/order-C5CzA37O.js +0 -918
  61. package/dist/order-DvY7KNcu.js +0 -918
  62. package/dist/rasterExport-BgZ98e6U.js +0 -44
  63. package/dist/rasterExport-DEr8fOLm.js +0 -44
  64. package/dist/rasterization-CFogVB3B.js +0 -50
  65. package/dist/rectangle-DKnrAmKs.js +0 -142
@@ -1,4 +1,4 @@
1
- //#region ../core/node_modules/vega-util/build/vega-util.js
1
+ //#region ../../node_modules/vega-util/build/vega-util.js
2
2
  function e(e, t, n) {
3
3
  return e.fields = t || [], e.fname = n, e;
4
4
  }
@@ -74,390 +74,166 @@ function ae(e, t, n, r, i) {
74
74
  function v(e, t, n) {
75
75
  return ae(e, t, n, p, l);
76
76
  }
77
- function y(e, t, n) {
77
+ function oe(e, t, n) {
78
78
  let r = Math.sign(e[0]);
79
79
  return ae(e, t, n, ee(r), m(r));
80
80
  }
81
- function b(e, t, n, r) {
81
+ function y(e, t, n, r) {
82
82
  return ae(e, t, n, g(r), g(1 / r));
83
83
  }
84
- function oe(e, t, n, r) {
84
+ function se(e, t, n, r) {
85
85
  return ae(e, t, n, te(r), h(r));
86
86
  }
87
- function se(e) {
87
+ function ce(e) {
88
88
  return e == null ? [] : u(e) ? e : [e];
89
89
  }
90
- function ce(e, t, n) {
90
+ function le(e, t, n) {
91
91
  let r = e[0], i = e[1], a;
92
92
  return i < r && (a = i, i = r, r = a), a = i - r, a >= n - t ? [t, n] : [r = Math.min(Math.max(r, t), n - a), r + a];
93
93
  }
94
- function le(e) {
94
+ function ue(e) {
95
95
  return typeof e == "function";
96
96
  }
97
- var ue = "descending";
98
- function de(t, r, i) {
99
- i ||= {}, r = se(r) || [];
100
- let a = [], o = [], s = {}, l = i.comparator || pe;
101
- return se(t).forEach((e, t) => {
102
- e != null && (a.push(r[t] === ue ? -1 : 1), o.push(e = le(e) ? e : c(e, null, i)), (n(e) || []).forEach((e) => s[e] = 1));
97
+ var de = "descending";
98
+ function fe(t, r, i) {
99
+ i ||= {}, r = ce(r) || [];
100
+ let a = [], o = [], s = {}, l = i.comparator || me;
101
+ return ce(t).forEach((e, t) => {
102
+ e != null && (a.push(r[t] === de ? -1 : 1), o.push(e = ue(e) ? e : c(e, null, i)), (n(e) || []).forEach((e) => s[e] = 1));
103
103
  }), o.length === 0 ? null : e(l(o, a), Object.keys(s));
104
104
  }
105
- var fe = (e, t) => (e < t || e == null) && t != null ? -1 : (e > t || t == null) && e != null ? 1 : (t = t instanceof Date ? +t : t, e = e instanceof Date ? +e : e) !== e && t === t ? -1 : +(t !== t && e === e), pe = (e, t) => e.length === 1 ? me(e[0], t[0]) : he(e, t, e.length), me = (e, t) => function(n, r) {
106
- return fe(e(n), e(r)) * t;
107
- }, he = (e, t, n) => (t.push(0), function(r, i) {
105
+ var pe = (e, t) => (e < t || e == null) && t != null ? -1 : (e > t || t == null) && e != null ? 1 : (t = t instanceof Date ? +t : t, (e = e instanceof Date ? +e : e) !== e && t === t ? -1 : +(t !== t && e === e)), me = (e, t) => e.length === 1 ? he(e[0], t[0]) : ge(e, t, e.length), he = (e, t) => function(n, r) {
106
+ return pe(e(n), e(r)) * t;
107
+ }, ge = (e, t, n) => (t.push(0), function(r, i) {
108
108
  let a, o = 0, s = -1;
109
- for (; o === 0 && ++s < n;) a = e[s], o = fe(a(r), a(i));
109
+ for (; o === 0 && ++s < n;) a = e[s], o = pe(a(r), a(i));
110
110
  return o * t[s];
111
111
  });
112
- function ge(e) {
112
+ function _e(e, t, n, r) {
113
+ let i = t[0], a = t[t.length - 1], o;
114
+ return i > a && (o = i, i = a, a = o), n = n === void 0 || n, r = r === void 0 || r, (n ? i <= e : i < e) && (r ? e <= a : e < a);
115
+ }
116
+ function ve(e) {
113
117
  return typeof e == "boolean";
114
118
  }
115
- function _e(e) {
119
+ function ye(e) {
116
120
  return typeof e == "number";
117
121
  }
118
- function ve(e) {
122
+ function be(e) {
119
123
  return Object.prototype.toString.call(e) === "[object RegExp]";
120
124
  }
121
- function x(e) {
125
+ function b(e) {
122
126
  return typeof e == "string";
123
127
  }
124
- function ye(e, t) {
128
+ function xe(e, t) {
125
129
  let n = e[0], r = f(e), i = +t;
126
130
  return i ? i === 1 ? r : n + i * (r - n) : n;
127
131
  }
128
- function be(e) {
132
+ function Se(e) {
129
133
  return e && f(e) - e[0] || 0;
130
134
  }
131
- function xe(e) {
132
- return u(e) ? `[${e.map((e) => e === null ? "null" : xe(e))}]` : d(e) || x(e) ? JSON.stringify(e).replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029") : e;
135
+ function Ce(e) {
136
+ return u(e) ? `[${e.map((e) => e === null ? "null" : Ce(e))}]` : d(e) || b(e) ? JSON.stringify(e).replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029") : e;
133
137
  }
134
- function Se(e) {
138
+ function we(e) {
135
139
  let t = {}, n = e.length;
136
140
  for (let r = 0; r < n; ++r) t[e[r]] = !0;
137
141
  return t;
138
142
  }
139
143
  //#endregion
140
- //#region ../../node_modules/d3-array/src/range.js
141
- function Ce(e, t, n) {
142
- e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;
143
- for (var r = -1, i = Math.max(0, Math.ceil((t - e) / n)) | 0, a = Array(i); ++r < i;) a[r] = e + r * n;
144
- return a;
145
- }
146
- //#endregion
147
- //#region ../../node_modules/d3-color/src/define.js
148
- function we(e, t, n) {
149
- e.prototype = t.prototype = n, n.constructor = e;
150
- }
151
- function Te(e, t) {
152
- var n = Object.create(e.prototype);
153
- for (var r in t) n[r] = t[r];
154
- return n;
155
- }
156
- //#endregion
157
- //#region ../../node_modules/d3-color/src/color.js
158
- function S() {}
159
- var C = .7, Ee = 1 / C, w = "\\s*([+-]?\\d+)\\s*", De = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", T = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Oe = /^#([0-9a-f]{3,8})$/, ke = RegExp(`^rgb\\(${w},${w},${w}\\)$`), Ae = RegExp(`^rgb\\(${T},${T},${T}\\)$`), je = RegExp(`^rgba\\(${w},${w},${w},${De}\\)$`), Me = RegExp(`^rgba\\(${T},${T},${T},${De}\\)$`), Ne = RegExp(`^hsl\\(${De},${T},${T}\\)$`), Pe = RegExp(`^hsla\\(${De},${T},${T},${De}\\)$`), Fe = {
160
- aliceblue: 15792383,
161
- antiquewhite: 16444375,
162
- aqua: 65535,
163
- aquamarine: 8388564,
164
- azure: 15794175,
165
- beige: 16119260,
166
- bisque: 16770244,
167
- black: 0,
168
- blanchedalmond: 16772045,
169
- blue: 255,
170
- blueviolet: 9055202,
171
- brown: 10824234,
172
- burlywood: 14596231,
173
- cadetblue: 6266528,
174
- chartreuse: 8388352,
175
- chocolate: 13789470,
176
- coral: 16744272,
177
- cornflowerblue: 6591981,
178
- cornsilk: 16775388,
179
- crimson: 14423100,
180
- cyan: 65535,
181
- darkblue: 139,
182
- darkcyan: 35723,
183
- darkgoldenrod: 12092939,
184
- darkgray: 11119017,
185
- darkgreen: 25600,
186
- darkgrey: 11119017,
187
- darkkhaki: 12433259,
188
- darkmagenta: 9109643,
189
- darkolivegreen: 5597999,
190
- darkorange: 16747520,
191
- darkorchid: 10040012,
192
- darkred: 9109504,
193
- darksalmon: 15308410,
194
- darkseagreen: 9419919,
195
- darkslateblue: 4734347,
196
- darkslategray: 3100495,
197
- darkslategrey: 3100495,
198
- darkturquoise: 52945,
199
- darkviolet: 9699539,
200
- deeppink: 16716947,
201
- deepskyblue: 49151,
202
- dimgray: 6908265,
203
- dimgrey: 6908265,
204
- dodgerblue: 2003199,
205
- firebrick: 11674146,
206
- floralwhite: 16775920,
207
- forestgreen: 2263842,
208
- fuchsia: 16711935,
209
- gainsboro: 14474460,
210
- ghostwhite: 16316671,
211
- gold: 16766720,
212
- goldenrod: 14329120,
213
- gray: 8421504,
214
- green: 32768,
215
- greenyellow: 11403055,
216
- grey: 8421504,
217
- honeydew: 15794160,
218
- hotpink: 16738740,
219
- indianred: 13458524,
220
- indigo: 4915330,
221
- ivory: 16777200,
222
- khaki: 15787660,
223
- lavender: 15132410,
224
- lavenderblush: 16773365,
225
- lawngreen: 8190976,
226
- lemonchiffon: 16775885,
227
- lightblue: 11393254,
228
- lightcoral: 15761536,
229
- lightcyan: 14745599,
230
- lightgoldenrodyellow: 16448210,
231
- lightgray: 13882323,
232
- lightgreen: 9498256,
233
- lightgrey: 13882323,
234
- lightpink: 16758465,
235
- lightsalmon: 16752762,
236
- lightseagreen: 2142890,
237
- lightskyblue: 8900346,
238
- lightslategray: 7833753,
239
- lightslategrey: 7833753,
240
- lightsteelblue: 11584734,
241
- lightyellow: 16777184,
242
- lime: 65280,
243
- limegreen: 3329330,
244
- linen: 16445670,
245
- magenta: 16711935,
246
- maroon: 8388608,
247
- mediumaquamarine: 6737322,
248
- mediumblue: 205,
249
- mediumorchid: 12211667,
250
- mediumpurple: 9662683,
251
- mediumseagreen: 3978097,
252
- mediumslateblue: 8087790,
253
- mediumspringgreen: 64154,
254
- mediumturquoise: 4772300,
255
- mediumvioletred: 13047173,
256
- midnightblue: 1644912,
257
- mintcream: 16121850,
258
- mistyrose: 16770273,
259
- moccasin: 16770229,
260
- navajowhite: 16768685,
261
- navy: 128,
262
- oldlace: 16643558,
263
- olive: 8421376,
264
- olivedrab: 7048739,
265
- orange: 16753920,
266
- orangered: 16729344,
267
- orchid: 14315734,
268
- palegoldenrod: 15657130,
269
- palegreen: 10025880,
270
- paleturquoise: 11529966,
271
- palevioletred: 14381203,
272
- papayawhip: 16773077,
273
- peachpuff: 16767673,
274
- peru: 13468991,
275
- pink: 16761035,
276
- plum: 14524637,
277
- powderblue: 11591910,
278
- purple: 8388736,
279
- rebeccapurple: 6697881,
280
- red: 16711680,
281
- rosybrown: 12357519,
282
- royalblue: 4286945,
283
- saddlebrown: 9127187,
284
- salmon: 16416882,
285
- sandybrown: 16032864,
286
- seagreen: 3050327,
287
- seashell: 16774638,
288
- sienna: 10506797,
289
- silver: 12632256,
290
- skyblue: 8900331,
291
- slateblue: 6970061,
292
- slategray: 7372944,
293
- slategrey: 7372944,
294
- snow: 16775930,
295
- springgreen: 65407,
296
- steelblue: 4620980,
297
- tan: 13808780,
298
- teal: 32896,
299
- thistle: 14204888,
300
- tomato: 16737095,
301
- turquoise: 4251856,
302
- violet: 15631086,
303
- wheat: 16113331,
304
- white: 16777215,
305
- whitesmoke: 16119285,
306
- yellow: 16776960,
307
- yellowgreen: 10145074
144
+ //#region ../../node_modules/internmap/src/index.js
145
+ var Te = class extends Map {
146
+ constructor(e, t = ke) {
147
+ if (super(), Object.defineProperties(this, {
148
+ _intern: { value: /* @__PURE__ */ new Map() },
149
+ _key: { value: t }
150
+ }), e != null) for (let [t, n] of e) this.set(t, n);
151
+ }
152
+ get(e) {
153
+ return super.get(Ee(this, e));
154
+ }
155
+ has(e) {
156
+ return super.has(Ee(this, e));
157
+ }
158
+ set(e, t) {
159
+ return super.set(De(this, e), t);
160
+ }
161
+ delete(e) {
162
+ return super.delete(Oe(this, e));
163
+ }
308
164
  };
309
- we(S, Be, {
310
- copy(e) {
311
- return Object.assign(new this.constructor(), this, e);
312
- },
313
- displayable() {
314
- return this.rgb().displayable();
315
- },
316
- hex: Ie,
317
- formatHex: Ie,
318
- formatHex8: Le,
319
- formatHsl: Re,
320
- formatRgb: ze,
321
- toString: ze
322
- });
323
- function Ie() {
324
- return this.rgb().formatHex();
325
- }
326
- function Le() {
327
- return this.rgb().formatHex8();
328
- }
329
- function Re() {
330
- return Xe(this).formatHsl();
331
- }
332
- function ze() {
333
- return this.rgb().formatRgb();
334
- }
335
- function Be(e) {
336
- var t, n;
337
- return e = (e + "").trim().toLowerCase(), (t = Oe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? Ve(t) : n === 3 ? new E(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? He(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? He(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = ke.exec(e)) ? new E(t[1], t[2], t[3], 1) : (t = Ae.exec(e)) ? new E(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = je.exec(e)) ? He(t[1], t[2], t[3], t[4]) : (t = Me.exec(e)) ? He(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = Ne.exec(e)) ? Ye(t[1], t[2] / 100, t[3] / 100, 1) : (t = Pe.exec(e)) ? Ye(t[1], t[2] / 100, t[3] / 100, t[4]) : Fe.hasOwnProperty(e) ? Ve(Fe[e]) : e === "transparent" ? new E(NaN, NaN, NaN, 0) : null;
338
- }
339
- function Ve(e) {
340
- return new E(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
165
+ function Ee({ _intern: e, _key: t }, n) {
166
+ let r = t(n);
167
+ return e.has(r) ? e.get(r) : n;
341
168
  }
342
- function He(e, t, n, r) {
343
- return r <= 0 && (e = t = n = NaN), new E(e, t, n, r);
169
+ function De({ _intern: e, _key: t }, n) {
170
+ let r = t(n);
171
+ return e.has(r) ? e.get(r) : (e.set(r, n), n);
344
172
  }
345
- function Ue(e) {
346
- return e instanceof S || (e = Be(e)), e ? (e = e.rgb(), new E(e.r, e.g, e.b, e.opacity)) : new E();
173
+ function Oe({ _intern: e, _key: t }, n) {
174
+ let r = t(n);
175
+ return e.has(r) && (n = e.get(r), e.delete(r)), n;
347
176
  }
348
- function We(e, t, n, r) {
349
- return arguments.length === 1 ? Ue(e) : new E(e, t, n, r ?? 1);
177
+ function ke(e) {
178
+ return typeof e == "object" && e ? e.valueOf() : e;
350
179
  }
351
- function E(e, t, n, r) {
352
- this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
353
- }
354
- we(E, We, Te(S, {
355
- brighter(e) {
356
- return e = e == null ? Ee : Ee ** +e, new E(this.r * e, this.g * e, this.b * e, this.opacity);
357
- },
358
- darker(e) {
359
- return e = e == null ? C : C ** +e, new E(this.r * e, this.g * e, this.b * e, this.opacity);
360
- },
361
- rgb() {
362
- return this;
363
- },
364
- clamp() {
365
- return new E(D(this.r), D(this.g), D(this.b), Je(this.opacity));
366
- },
367
- displayable() {
368
- return -.5 <= this.r && this.r < 255.5 && -.5 <= this.g && this.g < 255.5 && -.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
369
- },
370
- hex: Ge,
371
- formatHex: Ge,
372
- formatHex8: Ke,
373
- formatRgb: qe,
374
- toString: qe
375
- }));
376
- function Ge() {
377
- return `#${O(this.r)}${O(this.g)}${O(this.b)}`;
378
- }
379
- function Ke() {
380
- return `#${O(this.r)}${O(this.g)}${O(this.b)}${O((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
381
- }
382
- function qe() {
383
- let e = Je(this.opacity);
384
- return `${e === 1 ? "rgb(" : "rgba("}${D(this.r)}, ${D(this.g)}, ${D(this.b)}${e === 1 ? ")" : `, ${e})`}`;
385
- }
386
- function Je(e) {
387
- return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
388
- }
389
- function D(e) {
390
- return Math.max(0, Math.min(255, Math.round(e) || 0));
391
- }
392
- function O(e) {
393
- return e = D(e), (e < 16 ? "0" : "") + e.toString(16);
394
- }
395
- function Ye(e, t, n, r) {
396
- return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new k(e, t, n, r);
397
- }
398
- function Xe(e) {
399
- if (e instanceof k) return new k(e.h, e.s, e.l, e.opacity);
400
- if (e instanceof S || (e = Be(e)), !e) return new k();
401
- if (e instanceof k) return e;
402
- e = e.rgb();
403
- var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), a = Math.max(t, n, r), o = NaN, s = a - i, c = (a + i) / 2;
404
- return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new k(o, s, c, e.opacity);
405
- }
406
- function Ze(e, t, n, r) {
407
- return arguments.length === 1 ? Xe(e) : new k(e, t, n, r ?? 1);
408
- }
409
- function k(e, t, n, r) {
410
- this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
411
- }
412
- we(k, Ze, Te(S, {
413
- brighter(e) {
414
- return e = e == null ? Ee : Ee ** +e, new k(this.h, this.s, this.l * e, this.opacity);
415
- },
416
- darker(e) {
417
- return e = e == null ? C : C ** +e, new k(this.h, this.s, this.l * e, this.opacity);
418
- },
419
- rgb() {
420
- var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < .5 ? n : 1 - n) * t, i = 2 * n - r;
421
- return new E(et(e >= 240 ? e - 240 : e + 120, i, r), et(e, i, r), et(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
422
- },
423
- clamp() {
424
- return new k(Qe(this.h), $e(this.s), $e(this.l), Je(this.opacity));
425
- },
426
- displayable() {
427
- return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
428
- },
429
- formatHsl() {
430
- let e = Je(this.opacity);
431
- return `${e === 1 ? "hsl(" : "hsla("}${Qe(this.h)}, ${$e(this.s) * 100}%, ${$e(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
432
- }
433
- }));
434
- function Qe(e) {
435
- return e = (e || 0) % 360, e < 0 ? e + 360 : e;
436
- }
437
- function $e(e) {
438
- return Math.max(0, Math.min(1, e || 0));
180
+ //#endregion
181
+ //#region ../../node_modules/d3-array/src/ticks.js
182
+ var Ae = Math.sqrt(50), je = Math.sqrt(10), Me = Math.sqrt(2);
183
+ function Ne(e, t, n) {
184
+ let r = (t - e) / Math.max(0, n), i = Math.floor(Math.log10(r)), a = r / 10 ** i, o = a >= Ae ? 10 : a >= je ? 5 : a >= Me ? 2 : 1, s, c, l;
185
+ return i < 0 ? (l = 10 ** -i / o, s = Math.round(e * l), c = Math.round(t * l), s / l < e && ++s, c / l > t && --c, l = -l) : (l = 10 ** i * o, s = Math.round(e / l), c = Math.round(t / l), s * l < e && ++s, c * l > t && --c), c < s && .5 <= n && n < 2 ? Ne(e, t, n * 2) : [
186
+ s,
187
+ c,
188
+ l
189
+ ];
190
+ }
191
+ function Pe(e, t, n) {
192
+ if (t = +t, e = +e, n = +n, !(n > 0)) return [];
193
+ if (e === t) return [e];
194
+ let r = t < e, [i, a, o] = r ? Ne(t, e, n) : Ne(e, t, n);
195
+ if (!(a >= i)) return [];
196
+ let s = a - i + 1, c = Array(s);
197
+ if (r) {
198
+ if (o < 0) for (let e = 0; e < s; ++e) c[e] = (a - e) / -o;
199
+ else for (let e = 0; e < s; ++e) c[e] = (a - e) * o;
200
+ } else if (o < 0) for (let e = 0; e < s; ++e) c[e] = (i + e) / -o;
201
+ else for (let e = 0; e < s; ++e) c[e] = (i + e) * o;
202
+ return c;
203
+ }
204
+ function Fe(e, t, n) {
205
+ return t = +t, e = +e, n = +n, Ne(e, t, n)[2];
206
+ }
207
+ function Ie(e, t, n) {
208
+ t = +t, e = +e, n = +n;
209
+ let r = t < e, i = r ? Fe(t, e, n) : Fe(e, t, n);
210
+ return (r ? -1 : 1) * (i < 0 ? 1 / -i : i);
439
211
  }
440
- function et(e, t, n) {
441
- return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
212
+ //#endregion
213
+ //#region ../../node_modules/d3-array/src/range.js
214
+ function Le(e, t, n) {
215
+ e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;
216
+ for (var r = -1, i = Math.max(0, Math.ceil((t - e) / n)) | 0, a = Array(i); ++r < i;) a[r] = e + r * n;
217
+ return a;
442
218
  }
443
219
  //#endregion
444
220
  //#region ../../node_modules/d3-format/src/formatDecimal.js
445
- function tt(e) {
221
+ function Re(e) {
446
222
  return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
447
223
  }
448
- function nt(e, t) {
224
+ function ze(e, t) {
449
225
  if (!isFinite(e) || e === 0) return null;
450
226
  var n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e"), r = e.slice(0, n);
451
227
  return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
452
228
  }
453
229
  //#endregion
454
230
  //#region ../../node_modules/d3-format/src/exponent.js
455
- function rt(e) {
456
- return e = nt(Math.abs(e)), e ? e[1] : NaN;
231
+ function Be(e) {
232
+ return e = ze(Math.abs(e)), e ? e[1] : NaN;
457
233
  }
458
234
  //#endregion
459
235
  //#region ../../node_modules/d3-format/src/formatGroup.js
460
- function it(e, t) {
236
+ function Ve(e, t) {
461
237
  return function(n, r) {
462
238
  for (var i = n.length, a = [], o = 0, s = e[0], c = 0; i > 0 && s > 0 && (c + s + 1 > r && (s = Math.max(1, r - c)), a.push(n.substring(i -= s, i + s)), !((c += s + 1) > r));) s = e[o = (o + 1) % e.length];
463
239
  return a.reverse().join(t);
@@ -465,7 +241,7 @@ function it(e, t) {
465
241
  }
466
242
  //#endregion
467
243
  //#region ../../node_modules/d3-format/src/formatNumerals.js
468
- function at(e) {
244
+ function He(e) {
469
245
  return function(t) {
470
246
  return t.replace(/[0-9]/g, function(t) {
471
247
  return e[+t];
@@ -474,11 +250,11 @@ function at(e) {
474
250
  }
475
251
  //#endregion
476
252
  //#region ../../node_modules/d3-format/src/formatSpecifier.js
477
- var ot = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
478
- function st(e) {
479
- if (!(t = ot.exec(e))) throw Error("invalid format: " + e);
253
+ var Ue = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
254
+ function We(e) {
255
+ if (!(t = Ue.exec(e))) throw Error("invalid format: " + e);
480
256
  var t;
481
- return new ct({
257
+ return new Ge({
482
258
  fill: t[1],
483
259
  align: t[2],
484
260
  sign: t[3],
@@ -491,16 +267,16 @@ function st(e) {
491
267
  type: t[10]
492
268
  });
493
269
  }
494
- st.prototype = ct.prototype;
495
- function ct(e) {
270
+ We.prototype = Ge.prototype;
271
+ function Ge(e) {
496
272
  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 + "";
497
273
  }
498
- ct.prototype.toString = function() {
274
+ Ge.prototype.toString = function() {
499
275
  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;
500
276
  };
501
277
  //#endregion
502
278
  //#region ../../node_modules/d3-format/src/formatTrim.js
503
- function lt(e) {
279
+ function Ke(e) {
504
280
  out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
505
281
  case ".":
506
282
  r = i = n;
@@ -511,52 +287,51 @@ function lt(e) {
511
287
  default:
512
288
  if (!+e[n]) break out;
513
289
  r > 0 && (r = 0);
514
- break;
515
290
  }
516
291
  return r > 0 ? e.slice(0, r) + e.slice(i + 1) : e;
517
292
  }
518
293
  //#endregion
519
294
  //#region ../../node_modules/d3-format/src/formatPrefixAuto.js
520
- var ut;
521
- function dt(e, t) {
522
- var n = nt(e, t);
523
- if (!n) return ut = void 0, e.toPrecision(t);
524
- var r = n[0], i = n[1], a = i - (ut = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
525
- return a === o ? r : a > o ? r + Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + Array(1 - a).join("0") + nt(e, Math.max(0, t + a - 1))[0];
295
+ var qe;
296
+ function Je(e, t) {
297
+ var n = ze(e, t);
298
+ if (!n) return qe = void 0, e.toPrecision(t);
299
+ var r = n[0], i = n[1], a = i - (qe = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
300
+ return a === o ? r : a > o ? r + Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + Array(1 - a).join("0") + ze(e, Math.max(0, t + a - 1))[0];
526
301
  }
527
302
  //#endregion
528
303
  //#region ../../node_modules/d3-format/src/formatRounded.js
529
- function ft(e, t) {
530
- var n = nt(e, t);
304
+ function Ye(e, t) {
305
+ var n = ze(e, t);
531
306
  if (!n) return e + "";
532
307
  var r = n[0], i = n[1];
533
308
  return i < 0 ? "0." + Array(-i).join("0") + r : r.length > i + 1 ? r.slice(0, i + 1) + "." + r.slice(i + 1) : r + Array(i - r.length + 2).join("0");
534
309
  }
535
310
  //#endregion
536
311
  //#region ../../node_modules/d3-format/src/formatTypes.js
537
- var pt = {
312
+ var Xe = {
538
313
  "%": (e, t) => (e * 100).toFixed(t),
539
314
  b: (e) => Math.round(e).toString(2),
540
315
  c: (e) => e + "",
541
- d: tt,
316
+ d: Re,
542
317
  e: (e, t) => e.toExponential(t),
543
318
  f: (e, t) => e.toFixed(t),
544
319
  g: (e, t) => e.toPrecision(t),
545
320
  o: (e) => Math.round(e).toString(8),
546
- p: (e, t) => ft(e * 100, t),
547
- r: ft,
548
- s: dt,
321
+ p: (e, t) => Ye(e * 100, t),
322
+ r: Ye,
323
+ s: Je,
549
324
  X: (e) => Math.round(e).toString(16).toUpperCase(),
550
325
  x: (e) => Math.round(e).toString(16)
551
326
  };
552
327
  //#endregion
553
328
  //#region ../../node_modules/d3-format/src/identity.js
554
- function mt(e) {
329
+ function Ze(e) {
555
330
  return e;
556
331
  }
557
332
  //#endregion
558
333
  //#region ../../node_modules/d3-format/src/locale.js
559
- var ht = Array.prototype.map, gt = [
334
+ var Qe = Array.prototype.map, $e = [
560
335
  "y",
561
336
  "z",
562
337
  "a",
@@ -575,13 +350,13 @@ var ht = Array.prototype.map, gt = [
575
350
  "Z",
576
351
  "Y"
577
352
  ];
578
- function _t(e) {
579
- var t = e.grouping === void 0 || e.thousands === void 0 ? mt : it(ht.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? mt : at(ht.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "−" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";
353
+ function et(e) {
354
+ var t = e.grouping === void 0 || e.thousands === void 0 ? Ze : Ve(Qe.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? Ze : He(Qe.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "−" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";
580
355
  function l(e, l) {
581
- e = st(e);
356
+ e = We(e);
582
357
  var u = e.fill, d = e.align, f = e.sign, p = e.symbol, m = e.zero, ee = e.width, te = e.comma, h = e.precision, g = e.trim, _ = e.type;
583
- _ === "n" ? (te = !0, _ = "g") : pt[_] || (h === void 0 && (h = 12), g = !0, _ = "g"), (m || u === "0" && d === "=") && (m = !0, u = "0", d = "=");
584
- var ne = (l && l.prefix !== void 0 ? l.prefix : "") + (p === "$" ? n : p === "#" && /[boxX]/.test(_) ? "0" + _.toLowerCase() : ""), re = (p === "$" ? r : /[%p]/.test(_) ? o : "") + (l && l.suffix !== void 0 ? l.suffix : ""), ie = pt[_], ae = /[defgprs%]/.test(_);
358
+ _ === "n" ? (te = !0, _ = "g") : Xe[_] || (h === void 0 && (h = 12), g = !0, _ = "g"), (m || u === "0" && d === "=") && (m = !0, u = "0", d = "=");
359
+ var ne = (l && l.prefix !== void 0 ? l.prefix : "") + (p === "$" ? n : p === "#" && /[boxX]/.test(_) ? "0" + _.toLowerCase() : ""), re = (p === "$" ? r : /[%p]/.test(_) ? o : "") + (l && l.suffix !== void 0 ? l.suffix : ""), ie = Xe[_], ae = /[defgprs%]/.test(_);
585
360
  h = h === void 0 ? 6 : /[gprs]/.test(_) ? Math.max(1, Math.min(21, h)) : Math.max(0, Math.min(20, h));
586
361
  function v(e) {
587
362
  var n = ne, r = re, o, l, p;
@@ -589,7 +364,7 @@ function _t(e) {
589
364
  else {
590
365
  e = +e;
591
366
  var v = e < 0 || 1 / e < 0;
592
- if (e = isNaN(e) ? c : ie(Math.abs(e), h), g && (e = lt(e)), v && +e == 0 && f !== "+" && (v = !1), n = (v ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (_ === "s" && !isNaN(e) && ut !== void 0 ? gt[8 + ut / 3] : "") + r + (v && f === "(" ? ")" : ""), ae) {
367
+ if (e = isNaN(e) ? c : ie(Math.abs(e), h), g && (e = Ke(e)), v && +e == 0 && f !== "+" && (v = !1), n = (v ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (_ === "s" && !isNaN(e) && qe !== void 0 ? $e[8 + qe / 3] : "") + r + (v && f === "(" ? ")" : ""), ae) {
593
368
  for (o = -1, l = e.length; ++o < l;) if (p = e.charCodeAt(o), 48 > p || p > 57) {
594
369
  r = (p === 46 ? i + e.slice(o + 1) : e.slice(o)) + r, e = e.slice(0, o);
595
370
  break;
@@ -597,20 +372,18 @@ function _t(e) {
597
372
  }
598
373
  }
599
374
  te && !m && (e = t(e, Infinity));
600
- var y = n.length + e.length + r.length, b = y < ee ? Array(ee - y + 1).join(u) : "";
601
- switch (te && m && (e = t(b + e, b.length ? ee - r.length : Infinity), b = ""), d) {
375
+ var oe = n.length + e.length + r.length, y = oe < ee ? Array(ee - oe + 1).join(u) : "";
376
+ switch (te && m && (e = t(y + e, y.length ? ee - r.length : Infinity), y = ""), d) {
602
377
  case "<":
603
- e = n + e + r + b;
378
+ e = n + e + r + y;
604
379
  break;
605
380
  case "=":
606
- e = n + b + e + r;
381
+ e = n + y + e + r;
607
382
  break;
608
383
  case "^":
609
- e = b.slice(0, y = b.length >> 1) + n + e + r + b.slice(y);
610
- break;
611
- default:
612
- e = b + n + e + r;
384
+ e = y.slice(0, oe = y.length >> 1) + n + e + r + y.slice(oe);
613
385
  break;
386
+ default: e = y + n + e + r;
614
387
  }
615
388
  return a(e);
616
389
  }
@@ -619,7 +392,7 @@ function _t(e) {
619
392
  }, v;
620
393
  }
621
394
  function u(e, t) {
622
- var n = Math.max(-8, Math.min(8, Math.floor(rt(t) / 3))) * 3, r = 10 ** -n, i = l((e = st(e), e.type = "f", e), { suffix: gt[8 + n / 3] });
395
+ var n = Math.max(-8, Math.min(8, Math.floor(Be(t) / 3))) * 3, r = 10 ** -n, i = l((e = We(e), e.type = "f", e), { suffix: $e[8 + n / 3] });
623
396
  return function(e) {
624
397
  return i(r * e);
625
398
  };
@@ -631,19 +404,36 @@ function _t(e) {
631
404
  }
632
405
  //#endregion
633
406
  //#region ../../node_modules/d3-format/src/defaultLocale.js
634
- var vt, yt, bt;
635
- xt({
407
+ var tt, nt, rt;
408
+ it({
636
409
  thousands: ",",
637
410
  grouping: [3],
638
411
  currency: ["$", ""]
639
412
  });
640
- function xt(e) {
641
- return vt = _t(e), yt = vt.format, bt = vt.formatPrefix, vt;
413
+ function it(e) {
414
+ return tt = et(e), nt = tt.format, rt = tt.formatPrefix, tt;
642
415
  }
643
416
  //#endregion
644
- //#region ../core/src/data/sideInputBinding.js
645
- var St = class {
646
- #e;
417
+ //#region ../core/src/utils/arrayUtils.js
418
+ function at(e, t) {
419
+ return e.length == t.length && e.every((n, r) => e[r] === t[r]);
420
+ }
421
+ function ot(e) {
422
+ return Array.isArray(e) ? e : e === void 0 ? [] : [e];
423
+ }
424
+ function st(e) {
425
+ return e[e.length - 1];
426
+ }
427
+ function ct(e, t, n) {
428
+ if (t < 0 || t >= e.length) throw Error("Source index out of range.");
429
+ if (n < 0 || n > e.length - 1) throw Error("Destination index out of range.");
430
+ let [r] = e.splice(t, 1);
431
+ e.splice(n, 0, r);
432
+ }
433
+ //#endregion
434
+ //#region ../core/src/data/sideInputBinding.js
435
+ var lt = class {
436
+ #e;
647
437
  #t;
648
438
  #n = !1;
649
439
  #r = !0;
@@ -678,7 +468,7 @@ var St = class {
678
468
  isReady() {
679
469
  return this.#r && this.#n && this.#e.areDataDependenciesAvailable() && this.#t.every(({ collector: e, consumed: t }) => e.dataRevision === t);
680
470
  }
681
- }, Ct = class {
471
+ }, ut = class {
682
472
  stats = {
683
473
  count: 0,
684
474
  first: null
@@ -730,7 +520,7 @@ var St = class {
730
520
  initialized: this.#e,
731
521
  disposed: this.#t,
732
522
  params: "params" in e ? structuredClone(e.params) : void 0,
733
- view: wt(e, this.paramRuntimeProvider),
523
+ view: dt(e, this.paramRuntimeProvider),
734
524
  domainSensitiveScaleChannels: this.domainSensitiveScaleChannels
735
525
  };
736
526
  }
@@ -741,15 +531,15 @@ var St = class {
741
531
  }
742
532
  initialize() {}
743
533
  initializeOnce() {
744
- this.#e ||= (this.dataDependencies.length && (this.#i = new St(this)), this.initialize(), !0);
534
+ this.#e ||= (this.dataDependencies.length && (this.#i = new lt(this)), this.initialize(), !0);
745
535
  }
746
536
  #a() {
747
- this._propagate = Function("children", "stats", Ce(this.children.length).map((e) => `const child${e} = children[${e}];`).join("\n") + `return function propagate(datum) {
537
+ this._propagate = Function("children", "stats", Le(this.children.length).map((e) => `const child${e} = children[${e}];`).join("\n") + `return function propagate(datum) {
748
538
  if (stats.count === 0) {
749
539
  stats.first = structuredClone(datum);
750
540
  }
751
541
  stats.count++;
752
- ${Ce(this.children.length).map((e) => `child${e}.handle(datum);`).join("\n")}
542
+ ${Le(this.children.length).map((e) => `child${e}.handle(datum);`).join("\n")}
753
543
  };`)(this.children, this.stats);
754
544
  }
755
545
  setParent(e) {
@@ -861,11 +651,11 @@ var St = class {
861
651
  }
862
652
  _propagate(e) {}
863
653
  };
864
- function wt(e, t) {
654
+ function dt(e, t) {
865
655
  if ("view" in e) return e.view;
866
656
  if (t && "getPathString" in t) return t;
867
657
  }
868
- function Tt(e) {
658
+ function ft(e) {
869
659
  let t = /* @__PURE__ */ new Set();
870
660
  for (; e;) {
871
661
  for (let n of e.domainSensitiveScaleChannels) t.add(n);
@@ -873,126 +663,54 @@ function Tt(e) {
873
663
  }
874
664
  return t;
875
665
  }
876
- function Et(e) {
666
+ function pt(e) {
877
667
  return e.type == "file";
878
668
  }
879
- function Dt(e) {
669
+ function mt(e) {
880
670
  return e.type == "facet";
881
671
  }
882
672
  //#endregion
883
- //#region ../core/src/ruler/rulerValue.js
884
- function Ot(e = ["x"], t = {}) {
885
- let n = {};
886
- for (let r of e) n[r] = t[r] ?? null;
887
- return {
888
- type: "ruler",
889
- values: n
890
- };
891
- }
892
- //#endregion
893
- //#region ../core/src/paramRuntime/paramUtils.js
894
- function A(e) {
895
- return typeof e == "object" && !!e && "expr" in e && x(e.expr);
896
- }
897
- function kt(e) {
898
- if (A(e)) throw Error("ExprRef " + JSON.stringify(e) + " not allowed here. Expected a scalar value.");
899
- return e;
900
- }
901
- function At(e) {
902
- return ("expr" in e || "bind" in e) && !("select" in e) && !("ruler" in e);
903
- }
904
- function jt(e) {
905
- return !("expr" in e || "bind" in e) && "select" in e;
906
- }
907
- function Mt(e) {
908
- return !("expr" in e || "bind" in e || "select" in e) && "ruler" in e;
909
- }
910
- function Nt(e) {
911
- if (!/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)) throw Error("Invalid parameter name: " + e + ". Must be a valid JavaScript identifier.");
912
- return e;
913
- }
914
- function Pt(e, t, n) {
915
- if ("select" in e) {
916
- let t = Ni(e.select);
917
- if (Pi(t)) return t.toggle ? xi() : bi(null);
918
- if (Fi(t)) {
919
- if (!t.encodings) throw Error("Interval selection \"" + e.name + "\" must have encodings defined!");
920
- return Si(t.encodings);
921
- }
922
- throw Error("Unknown selection config for parameter \"" + e.name + "\".");
923
- }
924
- if ("ruler" in e) return Ot(e.ruler.encodings, e.value);
925
- if ("expr" in e) {
926
- let r = n ?? t?.createExpression(e.expr);
927
- if (!r) throw Error("Cannot evaluate expression for parameter \"" + e.name + "\".");
928
- return r(null);
929
- }
930
- return "value" in e ? e.value : null;
931
- }
932
- function Ft(e, t, n, r, i = []) {
933
- let a = { ...t }, o = [];
934
- for (let [r, i] of Object.entries(t)) if (A(i)) {
935
- let t = e.createExpression(i.expr), s = o.push({
936
- key: r,
937
- fn: t
938
- }) - 1;
939
- Object.defineProperty(a, r, {
940
- enumerable: !0,
941
- get: n ? () => c.get()[s] : () => t(null)
942
- });
943
- } else a[r] = i;
944
- if (!n) return a;
945
- for (let { key: t, expr: n } of i) o.push({
946
- key: t,
947
- fn: e.createExpression(n.expr)
948
- });
949
- if (!o.length) return a;
950
- let s = Array.from(new Set(o.flatMap(({ fn: e }) => e.dependencies))), c = e.computed("expression properties", s, () => o.map(({ fn: e }) => e(null)), { equals: It }), l = c.get(), u = e.effect([c], () => {
951
- let e = c.get(), t = new Set(o.filter((t, n) => l[n] !== e[n]).map(({ key: e }) => e));
952
- l = e, n(t);
953
- });
954
- return r?.(c.dispose), r?.(u), a;
955
- }
956
- function It(e, t) {
957
- return e.every((e, n) => e === t[n]);
958
- }
959
- function Lt(e, t, n, r) {
960
- if (!A(t)) return t;
961
- let i = () => {
962
- throw Error(n);
963
- }, a = e.watchExpression ? e.watchExpression(t.expr, i, {
964
- scopeOwned: !1,
965
- registerDisposer: r
966
- }) : e.createExpression(t.expr);
967
- if (!e.watchExpression) {
968
- let e = a.subscribe(i);
969
- r?.(e);
970
- }
971
- return a();
972
- }
973
- function Rt(e) {
974
- return Object.assign(() => e, {
975
- dependencies: [],
976
- subscribe: () => () => void 0,
977
- invalidate: () => void 0,
978
- identifier: () => "constant",
979
- fields: [],
980
- globals: [],
981
- code: JSON.stringify(e)
982
- });
983
- }
984
- //#endregion
985
673
  //#region ../core/src/data/transforms/transform.js
986
- var zt = class extends Ct {
674
+ var ht = class extends ut {
987
675
  #e;
676
+ #t;
677
+ #n = 0;
678
+ #r = 0;
679
+ #i;
680
+ #a = [];
988
681
  constructor(e, t) {
989
682
  super(t), this.#e = e.type;
683
+ let n = e.debounce;
684
+ if (n !== void 0) {
685
+ if (!Number.isFinite(n) || n < 0) throw Error(`The debounce for the ${e.type} transform must be a non-negative finite number.`);
686
+ this.#t = n, this.registerDisposer(() => clearTimeout(this.#i));
687
+ }
688
+ }
689
+ complete() {
690
+ let e = this.#n;
691
+ super.complete(), this.#r = e, e == this.#n && (clearTimeout(this.#i), this.#i = void 0);
692
+ }
693
+ reset() {
694
+ this.#s(), super.reset();
695
+ }
696
+ beginBatch(e) {
697
+ this.#s(), super.beginBatch(e);
698
+ }
699
+ requestReactiveRepropagate() {
700
+ if (this.#n++, this.#t === void 0) {
701
+ this.requestRepropagate();
702
+ return;
703
+ }
704
+ clearTimeout(this.#i), this.#i = void 0, this.completed && (this.#i = setTimeout(this.#o, this.#t));
990
705
  }
706
+ #o = () => {
707
+ this.#i = void 0, !this.disposed && this.completed && this.#r != this.#n && (this.requestRepropagate(), this.paramRuntime.flushNow());
708
+ };
991
709
  get label() {
992
710
  return this.#e;
993
711
  }
994
712
  watchExprRef(e, t) {
995
- if (A(e)) {
713
+ if (W(e)) {
996
714
  let n = e;
997
715
  return this.paramRuntime.watchExpression(n.expr, t, {
998
716
  scopeOwned: !1,
@@ -1001,7 +719,19 @@ var zt = class extends Ct {
1001
719
  }
1002
720
  return (() => e);
1003
721
  }
1004
- }, j = "__uniqueId", Bt = 1e4, Vt = [null], Ht = class extends zt {
722
+ watchSnapshottedExpression(e) {
723
+ let t, n;
724
+ return t = this.paramRuntime.watchExpression(e, () => {
725
+ n.refresh(), this.requestReactiveRepropagate();
726
+ }, {
727
+ scopeOwned: !1,
728
+ registerDisposer: (e) => this.registerDisposer(e)
729
+ }), n = t.createSnapshotEvaluator(), this.#a.push(n.refresh), n;
730
+ }
731
+ #s() {
732
+ for (let e of this.#a) e();
733
+ }
734
+ }, x = "__uniqueId", gt = 1e4, _t = [null], vt = class extends ht {
1005
735
  get behavior() {
1006
736
  return 2;
1007
737
  }
@@ -1013,22 +743,22 @@ var zt = class extends Ct {
1013
743
  super.reset(), this._usedBlocks = 0, this._id = -1;
1014
744
  }
1015
745
  handle(e) {
1016
- e[j] = this.#e(), this._propagate(e);
746
+ e[x] = this.#e(), this._propagate(e);
1017
747
  }
1018
748
  #e() {
1019
- return ++this._id % 1e4 == 0 && (this._id = this.#t() * Bt), this._id;
749
+ return ++this._id % 1e4 == 0 && (this._id = this.#t() * gt), this._id;
1020
750
  }
1021
751
  #t() {
1022
752
  return this._usedBlocks < this._blocks.length ? this._blocks[this._usedBlocks++] : this.#n();
1023
753
  }
1024
754
  #n() {
1025
- let e = Vt.length;
1026
- return Vt[e] = this, this._blocks.push(e), this._usedBlocks++, e;
755
+ let e = _t.length;
756
+ return _t[e] = this, this._blocks.push(e), this._usedBlocks++, e;
1027
757
  }
1028
758
  };
1029
759
  //#endregion
1030
760
  //#region ../core/src/utils/field.js
1031
- function Ut(t, n = t) {
761
+ function yt(t, n = t) {
1032
762
  return /^[A-Za-z0-9_]+$/.test(t) ? e(Function("validator", `
1033
763
  let validated = !validator;
1034
764
  return function accessField(datum) {
@@ -1038,151 +768,649 @@ function Ut(t, n = t) {
1038
768
  }
1039
769
  return datum[${JSON.stringify(t)}];
1040
770
  }`)(function(e) {
1041
- t in e || Wt(e, t);
771
+ t in e || bt(e, t);
1042
772
  }), [t], n) : c(t);
1043
773
  }
1044
- function Wt(e, t) {
774
+ function bt(e, t) {
1045
775
  throw Error(`Invalid field "${t}". Available fields or properties: ${Object.keys(e).join(", ")}`);
1046
776
  }
1047
777
  //#endregion
1048
- //#region ../../node_modules/vega-util/build/accessor.js
1049
- function M(e, t, n) {
1050
- return Object.assign(e, {
1051
- fields: t || [],
1052
- fname: n
1053
- });
778
+ //#region ../core/src/selection/selectionPredicateTree.js
779
+ function xt(e, t) {
780
+ if (!("test" in e) || !("ref" in e.test)) return e;
781
+ let n = e.test.ref;
782
+ if (!Object.hasOwn(t, n)) throw Error(`Unknown predicate "${n}" in unit view.`);
783
+ return {
784
+ ...e,
785
+ test: t[n]
786
+ };
1054
787
  }
1055
- //#endregion
1056
- //#region ../../node_modules/vega-util/build/getter.js
1057
- function Gt(e) {
1058
- return e.length === 1 ? Kt(e[0]) : qt(e);
788
+ function St(e) {
789
+ let t = "test" in e ? e.test : {
790
+ param: e.param,
791
+ ...e.empty === void 0 ? {} : { empty: e.empty },
792
+ ...e.project === void 0 ? {} : { project: e.project }
793
+ }, n = (e) => {
794
+ if (!e || typeof e != "object" || Array.isArray(e)) throw Error("Selection predicate must be an object.");
795
+ let t = e, r = [
796
+ "param",
797
+ "and",
798
+ "or",
799
+ "not"
800
+ ].filter((e) => e in t);
801
+ if (r.length !== 1) throw Error("Selection predicate must have exactly one operator.");
802
+ let i = r[0];
803
+ if (i === "param") {
804
+ if (typeof t.param == "string") {
805
+ if (Object.keys(t).some((e) => ![
806
+ "param",
807
+ "empty",
808
+ "project"
809
+ ].includes(e)) || typeof (t.empty ?? !0) != "boolean") throw Error("Invalid selection parameter predicate.");
810
+ if (t.project !== void 0) {
811
+ let e = t.project;
812
+ if (!e || typeof e != "object" || Array.isArray(e) || Object.keys(e).length === 0 || Object.entries(e).some(([e, t]) => !["x", "y"].includes(e) || t !== e && t !== e + "2")) throw Error("Invalid interval selection projection.");
813
+ }
814
+ return {
815
+ param: pa(t.param),
816
+ empty: t.empty ?? !0,
817
+ ...t.project ? { project: { ...t.project } } : {}
818
+ };
819
+ }
820
+ if (!t.param || typeof t.param != "object" || Object.keys(t.param).length !== 1 || !Array.isArray(t.param.or) || Object.keys(t).some((e) => !["param", "empty"].includes(e)) || typeof (t.empty ?? !0) != "boolean") throw Error("Invalid flat selection union.");
821
+ if (t.param.or.length === 0) throw Error("Selection test \"or\" must be a nonempty array.");
822
+ let e = Array.from(new Set(t.param.or.map(pa))), n = e.map((e) => ({ selectionActive: e })), r = e.map((e, t) => ({ all: [{
823
+ param: e,
824
+ empty: !0
825
+ }, n[t]] }));
826
+ return { any: t.empty === !1 ? r : [...r, { not: { any: n } }] };
827
+ }
828
+ if (Object.keys(t).length !== 1) throw Error("Selection predicate operators cannot be mixed.");
829
+ if (i === "not") return { not: n(t.not) };
830
+ let a = t[i];
831
+ if (!Array.isArray(a) || a.length === 0) throw Error(`Selection test "${i}" must be a nonempty array.`);
832
+ let o = a.map(n);
833
+ return i === "and" ? { all: o } : { any: o };
834
+ };
835
+ return n(t);
836
+ }
837
+ function Ct(e) {
838
+ let t = /* @__PURE__ */ new Set(), n = (e) => {
839
+ if ("param" in e) t.add(e.param);
840
+ else if ("selectionActive" in e) t.add(typeof e.selectionActive == "string" ? e.selectionActive : e.selectionActive.param);
841
+ else if ("not" in e) n(e.not);
842
+ else for (let t of "all" in e ? e.all : e.any) n(t);
843
+ };
844
+ return n(e), Array.from(t);
845
+ }
846
+ function wt(e) {
847
+ let t = /* @__PURE__ */ new Map(), n = (e) => {
848
+ if ("param" in e) t.set(e.param, { selectionActive: {
849
+ param: e.param,
850
+ type: e.type,
851
+ components: e.projections?.map(({ component: e }) => e) ?? []
852
+ } });
853
+ else if ("selectionActive" in e) t.set(e.selectionActive.param, e);
854
+ else if ("not" in e) n(e.not);
855
+ else for (let t of "all" in e ? e.all : e.any) n(t);
856
+ };
857
+ return n(e), { all: [e, { any: Array.from(t.values()) }] };
1059
858
  }
1060
- var Kt = (e) => function(t) {
1061
- return t[e];
1062
- }, qt = (e) => {
1063
- let t = e.length;
1064
- return function(n) {
1065
- for (let r = 0; r < t; ++r) n = n[e[r]];
1066
- return n;
859
+ function Tt(e) {
860
+ if ("param" in e) return e.empty;
861
+ if ("selectionActive" in e) return !1;
862
+ if ("not" in e) return !Tt(e.not);
863
+ let t = "all" in e ? e.all : e.any;
864
+ return "all" in e ? t.every(Tt) : t.some(Tt);
865
+ }
866
+ function Et(e, t, n, r, i) {
867
+ let a = (e) => {
868
+ let t = n.findSelectionCapability?.(e);
869
+ if (t) return t;
870
+ let r = n.findValue(e);
871
+ if (!r || ![
872
+ "single",
873
+ "multi",
874
+ "interval"
875
+ ].includes(r.type)) throw Error(`Selection parameter "${e}" was not found.`);
876
+ return {
877
+ type: r.type,
878
+ components: r.type === "interval" ? Object.keys(r.intervals).map((e) => ({ component: e })) : []
879
+ };
880
+ }, o = t, s = (e) => {
881
+ let t = o[e];
882
+ if (t && "field" in t) return t.field;
883
+ if (t && "condition" in t) return (Array.isArray(t.condition) ? t.condition : [t.condition]).find((e) => "field" in e)?.field;
884
+ }, c = (e) => {
885
+ if ("all" in e) return { all: e.all.map(c) };
886
+ if ("any" in e) return { any: e.any.map(c) };
887
+ if ("not" in e) return { not: c(e.not) };
888
+ let t = "param" in e ? e.param : e.selectionActive, n = a(t);
889
+ if ("selectionActive" in e) return { selectionActive: {
890
+ param: t,
891
+ type: n.type,
892
+ components: n.components.map(({ component: e }) => e)
893
+ } };
894
+ if (e.project && n.type !== "interval") throw Error(`Selection "${t}" is not an interval selection; project is invalid.`);
895
+ if (n.type !== "interval") return {
896
+ param: t,
897
+ type: n.type,
898
+ empty: e.empty
899
+ };
900
+ let l = n.components.map(({ component: e }) => e);
901
+ if (e.project && (Object.keys(e.project).length !== l.length || l.some((t) => !(t in e.project)))) throw Error(`Selection "${t}" project must cover its declared components: ${l.join(", ")}.`);
902
+ let u = n.components.map(({ component: n, type: a }) => {
903
+ let c = e.project?.[n] ?? n;
904
+ if (![
905
+ "x",
906
+ "x2",
907
+ "y",
908
+ "y2"
909
+ ].includes(c)) throw Error(`Selection "${t}" has unsupported component "${n}".`);
910
+ let l = o[c];
911
+ if (e.project && (!l || !("field" in l))) throw Error(`Selection "${t}" project target "${c}" must be an unconditional field encoding.`);
912
+ let u = s(c);
913
+ if (!u) throw Error(`Selection "${t}" has no field for "${c}".`);
914
+ if (e.project) {
915
+ let e = i?.(c) ?? ("type" in l ? l.type : void 0) ?? ("type" in o[n] ? o[n].type : void 0);
916
+ if (![
917
+ "quantitative",
918
+ "index",
919
+ "locus"
920
+ ].includes(a) || e !== a) throw Error(`Selection "${t}" project target "${c}" must have matching quantitative, index, or locus type (${a} vs ${e}).`);
921
+ }
922
+ let d = n + "2", f = e.project ? void 0 : s(d);
923
+ return {
924
+ component: n,
925
+ input: c,
926
+ field: u,
927
+ ...f && f !== u ? {
928
+ secondaryInput: d,
929
+ secondaryField: f,
930
+ hitTest: r
931
+ } : {}
932
+ };
933
+ });
934
+ return {
935
+ param: t,
936
+ type: "interval",
937
+ empty: e.empty,
938
+ projections: u
939
+ };
1067
940
  };
1068
- };
1069
- //#endregion
1070
- //#region ../../node_modules/vega-util/build/error.js
1071
- function N(e) {
1072
- throw Error(e);
941
+ return c(e);
1073
942
  }
1074
- //#endregion
1075
- //#region ../../node_modules/vega-util/build/splitAccessPath.js
1076
- function Jt(e) {
1077
- let t = [], n = e.length, r = null, i = 0, a = "", o, s, c;
1078
- e += "";
1079
- function l() {
1080
- t.push(a + e.substring(o, s)), a = "", o = s + 1;
943
+ function Dt(e, t) {
944
+ if ("all" in e || "any" in e) {
945
+ let n = ("all" in e ? e.all : e.any).map((e) => Dt(e, t));
946
+ return "all" in e ? (e) => n.every((t) => t(e)) : (e) => n.some((t) => t(e));
1081
947
  }
1082
- for (o = s = 0; s < n; ++s) if (c = e[s], c === "\\") a += e.substring(o, s++), o = s;
1083
- else if (c === r) l(), r = null, i = -1;
1084
- else if (r) continue;
1085
- else o === i && c === "\"" || o === i && c === "'" ? (o = s + 1, r = c) : c === "." && !i ? s > o ? l() : o = s + 1 : c === "[" ? (s > o && l(), i = o = s + 1) : c === "]" && (i || N("Access path missing open bracket: " + e), i > 0 && l(), i = 0, o = s + 1);
1086
- return i && N("Access path missing closing bracket: " + e), r && N("Access path missing closing quote: " + e), s > o && (s++, l()), t;
1087
- }
1088
- //#endregion
1089
- //#region ../../node_modules/vega-util/build/field.js
1090
- function Yt(e, t, n) {
1091
- let r = Jt(e), i = r.length === 1 ? r[0] : e;
1092
- return M((n && n.get || Gt)(r), [i], t || i);
1093
- }
1094
- Yt("id");
1095
- var Xt = M((e) => e, [], "identity");
1096
- M(() => 0, [], "zero"), M(() => 1, [], "one"), M(() => !0, [], "true"), M(() => !1, [], "false");
1097
- //#endregion
1098
- //#region ../../node_modules/vega-util/build/interpreter.js
1099
- var Zt = /* @__PURE__ */ new Set([...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function"), "__proto__"]), Qt = Array.isArray;
1100
- //#endregion
1101
- //#region ../../node_modules/vega-util/build/isObject.js
1102
- function $t(e) {
1103
- return e === Object(e);
948
+ if ("not" in e) {
949
+ let n = Dt(e.not, t);
950
+ return (e) => !n(e);
951
+ }
952
+ if ("selectionActive" in e) {
953
+ let { param: n } = e.selectionActive;
954
+ return () => Ot(t(n));
955
+ }
956
+ let { param: n, type: r, empty: i } = e;
957
+ if (r === "single") return (e) => {
958
+ let r = t(n);
959
+ return r.uniqueId == null ? i : r.uniqueId === e[x];
960
+ };
961
+ if (r === "multi") return (e) => {
962
+ let r = t(n);
963
+ return r.data.size === 0 ? i : r.data.has(e[x]);
964
+ };
965
+ let a = e.projections.map((e) => ({
966
+ ...e,
967
+ read: yt(e.field),
968
+ readSecondary: e.secondaryField ? yt(e.secondaryField) : void 0
969
+ }));
970
+ return (e) => {
971
+ let r = t(n);
972
+ if (!Ot(r)) return i;
973
+ for (let t of a) {
974
+ let n = r.intervals[t.component], i = t.read(e), a = t.readSecondary?.(e), [o, s] = n;
975
+ if (!(a === void 0 ? o <= i && i < s : t.hitTest === "endpoints" ? o <= i && i < s || o <= a && a < s : t.hitTest === "encloses" ? o <= Math.min(i, a) && Math.max(i, a) <= s : o < Math.max(i, a) && Math.min(i, a) < s)) return !1;
976
+ }
977
+ return !0;
978
+ };
1104
979
  }
1105
- //#endregion
1106
- //#region ../../node_modules/vega-util/build/array.js
1107
- function en(e) {
1108
- return e == null ? [] : Qt(e) ? e : [e];
980
+ function Ot(e) {
981
+ if (e.type === "single") return e.uniqueId != null;
982
+ if (e.type === "multi") return e.data.size !== 0;
983
+ if (e.type === "interval") return Object.values(e.intervals).every((e) => !!e);
984
+ throw Error(`Unsupported selection type: ${e.type}`);
1109
985
  }
1110
986
  //#endregion
1111
- //#region ../../node_modules/vega-util/build/isFunction.js
1112
- function tn(e) {
1113
- return typeof e == "function";
987
+ //#region ../core/src/encoder/accessor.js
988
+ function kt(e, t, n) {
989
+ if (!e) throw Error("Cannot create an accessor without a channel.");
990
+ function r(n) {
991
+ let r = n;
992
+ return r.fields ??= [], r.constant = r.fields.length === 0, r.channelDef = t, r.channel = e, r.sourceKey = Mt(t), r.scaleChannel = ((Kt(t) && t.resolutionChannel) ?? (_n(e) && e)) || void 0, r.scaleChannel !== void 0 && (r.domainKeyBase = Nt({
993
+ scaleChannel: r.scaleChannel,
994
+ source: jt(t)
995
+ }).domainKeyBase), r.equals = (e) => e ? r === e || r.sourceKey !== void 0 && r.sourceKey === e.sourceKey : !1, r.asNumberAccessor = () => r, r;
996
+ }
997
+ function i(e) {
998
+ if (W(e)) {
999
+ let t = r(n.createExpression(e.expr));
1000
+ if (t.fields.length > 0) throw Error("Expression in DatumDef/ValueDef cannot access data fields: " + e.expr);
1001
+ return t;
1002
+ }
1003
+ {
1004
+ let t = e;
1005
+ return r(() => t);
1006
+ }
1007
+ }
1008
+ if (S(t)) try {
1009
+ return r(yt(t.field));
1010
+ } catch (e) {
1011
+ throw Error(`Invalid field definition: ${e.message}`, { cause: e });
1012
+ }
1013
+ if (Zt(t)) return r(n.createExpression(t.expr));
1014
+ if (C(t)) return i(t.datum);
1015
+ if (Gt(t)) return i(t.value);
1016
+ throw Error(`Invalid channel definition: "${e}": ${JSON.stringify(t)}! The channel definition must contain one of the following properties: "field", "datum", "value" or "expr".`);
1114
1017
  }
1115
- //#endregion
1116
- //#region ../../node_modules/vega-util/build/hasOwnProperty.js
1117
- function nn(e, t) {
1118
- return Object.hasOwn(e, t);
1018
+ function At(e) {
1019
+ return e.scaleChannel !== void 0;
1119
1020
  }
1120
- //#endregion
1121
- //#region ../../node_modules/vega-util/build/isString.js
1122
- function rn(e) {
1123
- return typeof e == "string";
1021
+ function jt(e) {
1022
+ if (S(e)) return {
1023
+ kind: "field",
1024
+ value: e.field
1025
+ };
1026
+ if (Zt(e)) return {
1027
+ kind: "expr",
1028
+ value: e.expr
1029
+ };
1030
+ if (C(e)) return {
1031
+ kind: "datum",
1032
+ value: e.datum
1033
+ };
1034
+ if (Gt(e)) return {
1035
+ kind: "value",
1036
+ value: e.value
1037
+ };
1038
+ throw Error("Cannot derive a domain key from channel definition: " + JSON.stringify(e));
1124
1039
  }
1125
- //#endregion
1126
- //#region ../../node_modules/vega-util/build/stringValue.js
1127
- function an(e) {
1128
- return Qt(e) ? `[${e.map((e) => e === null ? "null" : an(e))}]` : $t(e) || rn(e) ? JSON.stringify(e).replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029") : e;
1040
+ function Mt(e) {
1041
+ let t = jt(e);
1042
+ return t.kind === "datum" || t.kind === "value" ? "constant|" + It(t.value) : t.kind + "|" + Ft(t);
1129
1043
  }
1130
- //#endregion
1131
- //#region ../../node_modules/vega-util/build/toSet.js
1132
- function on(e) {
1133
- let t = {}, n = e.length;
1134
- for (let r = 0; r < n; ++r) t[e[r] + ""] = !0;
1135
- return t;
1044
+ function Nt({ scaleChannel: e, source: t, type: n }) {
1045
+ if (!e) throw Error("Cannot build a domain key without a scale channel.");
1046
+ let r = e + "|" + t.kind + "|" + Ft(t);
1047
+ return {
1048
+ domainKeyBase: r,
1049
+ domainKey: n ? n + "|" + r : void 0
1050
+ };
1136
1051
  }
1137
- //#endregion
1138
- //#region ../../node_modules/vega-expression/build/vega-expression.js
1139
- var sn = "RawCode", cn = "Literal", ln = "Property", un = "Identifier", dn = "ArrayExpression", fn = "BinaryExpression", pn = "CallExpression", mn = "ConditionalExpression", hn = "LogicalExpression", gn = "MemberExpression", _n = "ObjectExpression", vn = "UnaryExpression";
1140
- function P(e) {
1141
- this.type = e;
1052
+ function Pt(e, t) {
1053
+ let { domainKey: n, domainKeyBase: r } = Nt({
1054
+ scaleChannel: e.scaleChannel,
1055
+ source: jt(e.channelDef),
1056
+ type: t
1057
+ });
1058
+ if (!n) throw Error("Cannot finalize a domain key without a resolved type.");
1059
+ return e.domainKeyBase = r, e.domainKey = n, n;
1142
1060
  }
1143
- P.prototype.visit = function(e) {
1144
- let t, n, r;
1145
- if (e(this)) return 1;
1146
- for (t = yn(this), n = 0, r = t.length; n < r; ++n) if (t[n].visit(e)) return 1;
1147
- };
1148
- function yn(e) {
1149
- switch (e.type) {
1150
- case dn: return e.elements;
1151
- case fn:
1152
- case hn: return [e.left, e.right];
1153
- case pn: return [e.callee].concat(e.arguments);
1154
- case mn: return [
1155
- e.test,
1156
- e.consequent,
1157
- e.alternate
1158
- ];
1159
- case gn: return [e.object, e.property];
1160
- case _n: return e.properties;
1161
- case ln: return [e.key, e.value];
1162
- case vn: return [e.argument];
1163
- case un:
1164
- case cn:
1165
- case sn:
1166
- default: return [];
1061
+ function Ft(e) {
1062
+ switch (e.kind) {
1063
+ case "field":
1064
+ case "expr": return e.value;
1065
+ case "datum":
1066
+ case "value": return It(e.value);
1067
+ default: throw Error("Unknown domain key source.");
1167
1068
  }
1168
1069
  }
1169
- var F, I, L, R, z, bn = 1, xn = 2, B = 3, V = 4, Sn = 5, H = 6, U = 7, Cn = 8, wn = 9;
1170
- F = {}, F[bn] = "Boolean", F[xn] = "<end>", F[B] = "Identifier", F[V] = "Keyword", F[Sn] = "Null", F[H] = "Numeric", F[U] = "Punctuator", F[Cn] = "String", F[wn] = "RegularExpression";
1171
- var Tn = "ArrayExpression", En = "BinaryExpression", Dn = "CallExpression", On = "ConditionalExpression", kn = "Identifier", An = "Literal", jn = "LogicalExpression", Mn = "MemberExpression", Nn = "ObjectExpression", Pn = "Property", Fn = "UnaryExpression", W = "Unexpected token %0", In = "Unexpected number", Ln = "Unexpected string", Rn = "Unexpected identifier", zn = "Unexpected reserved word", Bn = "Unexpected end of input", Vn = "Invalid regular expression", Hn = "Invalid regular expression: missing /", Un = "Octal literals are not allowed in strict mode.", Wn = "Duplicate data property in object literal not allowed in strict mode", G = "ILLEGAL", Gn = "Disabled.", Kn = /* @__PURE__ */ RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"), qn = /* @__PURE__ */ RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0-\\u08B2\\u08E4-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C03\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C58\\u0C59\\u0C60-\\u0C63\\u0C66-\\u0C6F\\u0C81-\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBC-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CDE\\u0CE0-\\u0CE3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D01-\\u0D03\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D60-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D82\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1CF8\\u1CF9\\u1D00-\\u1DF5\\u1DFC-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA69D\\uA69F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C4\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2D\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]");
1172
- function Jn(e, t) {
1173
- /* istanbul ignore next */
1174
- if (!e) throw Error("ASSERT: " + t);
1175
- }
1176
- function K(e) {
1177
- return e >= 48 && e <= 57;
1070
+ function It(e) {
1071
+ return W(e) ? "expr:" + e.expr : e === void 0 ? "undefined" : JSON.stringify(e);
1178
1072
  }
1179
- function Yn(e) {
1180
- return "0123456789abcdefABCDEF".includes(e);
1073
+ //#endregion
1074
+ //#region ../core/src/encoder/encoder.js
1075
+ function Lt(e, t, n, r = "intersects", i) {
1076
+ let a, o, s = Ct(e), c = () => (a ??= Et(e, t, n, r, i), a);
1077
+ return s.every((e) => n.findValue(e)) && c(), Object.defineProperty((e) => !s.some((e) => !n.findValue(e)) && (o ??= Dt(c(), (e) => n.findValue(e)), o(e)), "selection", { get: c });
1181
1078
  }
1182
- function Xn(e) {
1079
+ function Rt(e, t, n, r, i = "intersects", a) {
1080
+ let o = Qt(t) || $t(t) ? Array.isArray(t.condition) ? t.condition : [t.condition] : [], s = [...o, t], c = s.map((t, c) => {
1081
+ let l = o[c], u = kt(e, t, r), d = l ? Xi(l) : void 0;
1082
+ return {
1083
+ accessor: u,
1084
+ predicate: d ? Lt(d, n, r, i, a) : va(c === s.length - 1)
1085
+ };
1086
+ });
1087
+ if (c.filter((e) => !e.accessor.constant).length > 1) throw Error("Only one accessor can be non-constant. Channel: " + e);
1088
+ return c;
1089
+ }
1090
+ function zt(e, t) {
1091
+ let n = {}, r = (t) => e.getScaleResolution(t)?.getScale(), i = (t, n) => {
1092
+ let r = e.getScaleResolution(t);
1093
+ e.paramRuntime.operation("encoder scale", [r.getMappingRef()], () => r.getScale(), n);
1094
+ };
1095
+ for (let [a, o] of Object.entries(t)) {
1096
+ if (!o) continue;
1097
+ let s = a;
1098
+ Bt(s) || (n[s] = Ut(Rt(s, o, t, e.paramRuntime, e.mark.defaultHitTestMode, (t) => e.getScaleResolution(t)?.type), r, i));
1099
+ }
1100
+ return n;
1101
+ }
1102
+ function Bt(e) {
1103
+ return e === "key" || e === "search" || e === "tooltip" || e === "order";
1104
+ }
1105
+ function Vt(e) {
1106
+ return e.branches.map((e) => e.accessor);
1107
+ }
1108
+ function Ht(e) {
1109
+ return e.branches.find((e) => !e.accessor.constant)?.accessor;
1110
+ }
1111
+ function Ut(e, t, n) {
1112
+ if (e.length === 1) {
1113
+ let r = Wt(e[0].accessor, t, n);
1114
+ return Object.assign(r, { branches: e });
1115
+ }
1116
+ let r = e.map((e) => e.predicate), i = e.map((e) => Wt(e.accessor, t, n)), a = Object.assign((e) => {
1117
+ for (let t = 0; t < i.length; t++) if (r[t](e)) return i[t](e);
1118
+ }, {
1119
+ constant: !1,
1120
+ branches: e,
1121
+ channelDef: e.at(-1).accessor.channelDef
1122
+ });
1123
+ return Object.defineProperty(a, "scale", {
1124
+ enumerable: !0,
1125
+ get: () => i.find((e) => e.scale)?.scale
1126
+ });
1127
+ }
1128
+ function Wt(e, t, n) {
1129
+ let { channel: r, scaleChannel: i, channelDef: a } = e, o = e.scaleChannel ? t(i) : void 0;
1130
+ if (i && !o) throw Error(`Missing scale! "${r}": ${JSON.stringify(a)}`);
1131
+ let s = Object.assign(o ? (t) => o(e(t)) : (t) => e(t), {
1132
+ scale: o,
1133
+ constant: e.constant,
1134
+ branches: [{
1135
+ accessor: e,
1136
+ predicate: va(!0)
1137
+ }],
1138
+ channelDef: a
1139
+ });
1140
+ return o && n?.(i, (e) => {
1141
+ o = e, s.scale = e;
1142
+ }), s;
1143
+ }
1144
+ function Gt(e) {
1145
+ return e && "value" in e;
1146
+ }
1147
+ function S(e) {
1148
+ return e && "field" in e;
1149
+ }
1150
+ function C(e) {
1151
+ return e && "datum" in e;
1152
+ }
1153
+ function Kt(e) {
1154
+ return S(e) || C(e) || Zt(e) || Xt(e);
1155
+ }
1156
+ function qt(e) {
1157
+ if ($t(e)) {
1158
+ let t = e.condition;
1159
+ return (Array.isArray(t) ? t : [t]).find((e) => Kt(e));
1160
+ }
1161
+ if (Kt(e)) return e;
1162
+ }
1163
+ function Jt(e) {
1164
+ let t = e && qt(e);
1165
+ return t != null && t.type != "quantitative" && t.scale !== null;
1166
+ }
1167
+ function Yt(e, t) {
1168
+ let n = e.mark.encoding[t];
1169
+ if (Array.isArray(n)) throw Error("Not a channel def with scale!");
1170
+ {
1171
+ let e = qt(n);
1172
+ if (e) return e;
1173
+ }
1174
+ throw Error("Not a channel def with scale!");
1175
+ }
1176
+ function Xt(e) {
1177
+ return e && "chrom" in e;
1178
+ }
1179
+ function Zt(e) {
1180
+ return e && "expr" in e;
1181
+ }
1182
+ function Qt(e) {
1183
+ return (S(e) || C(e)) && "condition" in e;
1184
+ }
1185
+ function $t(e) {
1186
+ return Gt(e) && "condition" in e;
1187
+ }
1188
+ var en = ["x", "y"], tn = ["x2", "y2"], nn = ["xOffset", "yOffset"], rn = [...en, ...tn];
1189
+ function an(e) {
1190
+ return en.includes(e);
1191
+ }
1192
+ function on(e) {
1193
+ return rn.includes(e);
1194
+ }
1195
+ function sn(e) {
1196
+ return nn.includes(e);
1197
+ }
1198
+ function cn(e) {
1199
+ return mn(e) == "x" ? "xOffset" : "yOffset";
1200
+ }
1201
+ function ln(e, t, n) {
1202
+ return t ?? (n ? 0 : e);
1203
+ }
1204
+ var un = {
1205
+ x: "x2",
1206
+ y: "y2"
1207
+ }, dn = Object.fromEntries(Object.entries(un).map((e) => [e[1], e[0]]));
1208
+ function fn(e) {
1209
+ return e in dn;
1210
+ }
1211
+ function pn(e) {
1212
+ let t = un[e];
1213
+ if (t) return t;
1214
+ throw Error(`${e} has no secondary channel!`);
1215
+ }
1216
+ function mn(e) {
1217
+ return dn[e] ?? e;
1218
+ }
1219
+ function hn(e) {
1220
+ return [
1221
+ "color",
1222
+ "fill",
1223
+ "stroke"
1224
+ ].includes(mn(e));
1225
+ }
1226
+ function gn(e) {
1227
+ return ["shape", "direction"].includes(e);
1228
+ }
1229
+ function _n(e) {
1230
+ return [
1231
+ "x",
1232
+ "y",
1233
+ "x2",
1234
+ "y2",
1235
+ "xOffset",
1236
+ "yOffset",
1237
+ "color",
1238
+ "fill",
1239
+ "stroke",
1240
+ "opacity",
1241
+ "fillOpacity",
1242
+ "strokeOpacity",
1243
+ "strokeWidth",
1244
+ "size",
1245
+ "shape",
1246
+ "direction",
1247
+ "angle",
1248
+ "dx",
1249
+ "dy",
1250
+ "sample"
1251
+ ].includes(e);
1252
+ }
1253
+ function vn(e) {
1254
+ switch (e) {
1255
+ case "shape": return [
1256
+ "circle",
1257
+ "square",
1258
+ "cross",
1259
+ "diamond",
1260
+ "triangle-up",
1261
+ "triangle-right",
1262
+ "triangle-down",
1263
+ "triangle-left",
1264
+ "tick-up",
1265
+ "tick-right",
1266
+ "tick-down",
1267
+ "tick-left",
1268
+ "x",
1269
+ "+"
1270
+ ];
1271
+ case "direction": return [
1272
+ "forward",
1273
+ "reverse",
1274
+ "both"
1275
+ ];
1276
+ }
1277
+ }
1278
+ function yn(e) {
1279
+ if (!gn(e)) throw Error("Not a discrete channel: " + e);
1280
+ let t = new Map(vn(e).map((e, t) => [e, t]));
1281
+ return (n) => {
1282
+ let r = t.get(n);
1283
+ if (r !== void 0) return r;
1284
+ throw Error(`Invalid value for "${e}" channel: ${n}`);
1285
+ };
1286
+ }
1287
+ //#endregion
1288
+ //#region ../../node_modules/vega-expression/node_modules/vega-util/build/accessor.js
1289
+ function w(e, t, n) {
1290
+ return Object.assign(e, {
1291
+ fields: t || [],
1292
+ fname: n
1293
+ });
1294
+ }
1295
+ //#endregion
1296
+ //#region ../../node_modules/vega-expression/node_modules/vega-util/build/getter.js
1297
+ function bn(e) {
1298
+ return e.length === 1 ? xn(e[0]) : Sn(e);
1299
+ }
1300
+ var xn = (e) => function(t) {
1301
+ return t[e];
1302
+ }, Sn = (e) => {
1303
+ let t = e.length;
1304
+ return function(n) {
1305
+ for (let r = 0; r < t; ++r) n = n[e[r]];
1306
+ return n;
1307
+ };
1308
+ };
1309
+ //#endregion
1310
+ //#region ../../node_modules/vega-expression/node_modules/vega-util/build/error.js
1311
+ function T(e) {
1312
+ throw Error(e);
1313
+ }
1314
+ //#endregion
1315
+ //#region ../../node_modules/vega-expression/node_modules/vega-util/build/splitAccessPath.js
1316
+ function Cn(e) {
1317
+ let t = [], n = e.length, r = null, i = 0, a = "", o, s, c;
1318
+ e += "";
1319
+ function l() {
1320
+ t.push(a + e.substring(o, s)), a = "", o = s + 1;
1321
+ }
1322
+ for (o = s = 0; s < n; ++s) if (c = e[s], c === "\\") a += e.substring(o, s++), o = s;
1323
+ else if (c === r) l(), r = null, i = -1;
1324
+ else if (r) continue;
1325
+ else o === i && c === "\"" || o === i && c === "'" ? (o = s + 1, r = c) : c === "." && !i ? s > o ? l() : o = s + 1 : c === "[" ? (s > o && l(), i = o = s + 1) : c === "]" && (i || T("Access path missing open bracket: " + e), i > 0 && l(), i = 0, o = s + 1);
1326
+ return i && T("Access path missing closing bracket: " + e), r && T("Access path missing closing quote: " + e), s > o && (s++, l()), t;
1327
+ }
1328
+ //#endregion
1329
+ //#region ../../node_modules/vega-expression/node_modules/vega-util/build/field.js
1330
+ function wn(e, t, n) {
1331
+ let r = Cn(e), i = r.length === 1 ? r[0] : e;
1332
+ return w((n && n.get || bn)(r), [i], t || i);
1333
+ }
1334
+ wn("id"), w((e) => e, [], "identity"), w(() => 0, [], "zero"), w(() => 1, [], "one"), w(() => !0, [], "true"), w(() => !1, [], "false");
1335
+ //#endregion
1336
+ //#region ../../node_modules/vega-expression/node_modules/vega-util/build/interpreter.js
1337
+ var Tn = /* @__PURE__ */ new Set([
1338
+ ...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function"),
1339
+ "__proto__",
1340
+ "then"
1341
+ ]);
1342
+ Array.isArray;
1343
+ //#endregion
1344
+ //#region ../../node_modules/vega-expression/node_modules/vega-util/build/isFunction.js
1345
+ function En(e) {
1346
+ return typeof e == "function";
1347
+ }
1348
+ //#endregion
1349
+ //#region ../../node_modules/vega-expression/node_modules/vega-util/build/hasOwnProperty.js
1350
+ function Dn(e, t) {
1351
+ return Object.hasOwn(e, t);
1352
+ }
1353
+ //#endregion
1354
+ //#region ../../node_modules/vega-expression/node_modules/vega-util/build/isString.js
1355
+ function On(e) {
1356
+ return typeof e == "string";
1357
+ }
1358
+ //#endregion
1359
+ //#region ../../node_modules/vega-expression/node_modules/vega-util/build/toSet.js
1360
+ function kn(e) {
1361
+ let t = {}, n = e.length;
1362
+ for (let r = 0; r < n; ++r) t[e[r] + ""] = !0;
1363
+ return t;
1364
+ }
1365
+ //#endregion
1366
+ //#region ../../node_modules/vega-expression/build/vega-expression.js
1367
+ var An = "RawCode", jn = "Literal", Mn = "Property", Nn = "Identifier", Pn = "ArrayExpression", Fn = "BinaryExpression", In = "CallExpression", Ln = "ConditionalExpression", Rn = "LogicalExpression", zn = "MemberExpression", Bn = "ObjectExpression", Vn = "UnaryExpression";
1368
+ function E(e) {
1369
+ this.type = e;
1370
+ }
1371
+ E.prototype.visit = function(e) {
1372
+ let t, n, r;
1373
+ if (e(this)) return 1;
1374
+ for (t = Hn(this), n = 0, r = t.length; n < r; ++n) if (t[n].visit(e)) return 1;
1375
+ };
1376
+ function Hn(e) {
1377
+ switch (e.type) {
1378
+ case Pn: return e.elements;
1379
+ case Fn:
1380
+ case Rn: return [e.left, e.right];
1381
+ case In: return [e.callee].concat(e.arguments);
1382
+ case Ln: return [
1383
+ e.test,
1384
+ e.consequent,
1385
+ e.alternate
1386
+ ];
1387
+ case zn: return [e.object, e.property];
1388
+ case Bn: return e.properties;
1389
+ case Mn: return [e.key, e.value];
1390
+ case Vn: return [e.argument];
1391
+ case Nn:
1392
+ case jn:
1393
+ case An:
1394
+ default: return [];
1395
+ }
1396
+ }
1397
+ var D, O, k, A, j, Un = 1, Wn = 2, M = 3, N = 4, Gn = 5, P = 6, F = 7, Kn = 8, qn = 9;
1398
+ D = {}, D[Un] = "Boolean", D[Wn] = "<end>", D[M] = "Identifier", D[N] = "Keyword", D[Gn] = "Null", D[P] = "Numeric", D[F] = "Punctuator", D[Kn] = "String", D[qn] = "RegularExpression";
1399
+ var Jn = "ArrayExpression", Yn = "BinaryExpression", Xn = "CallExpression", Zn = "ConditionalExpression", Qn = "Identifier", $n = "Literal", er = "LogicalExpression", tr = "MemberExpression", nr = "ObjectExpression", rr = "Property", ir = "UnaryExpression", I = "Unexpected token %0", ar = "Unexpected number", or = "Unexpected string", sr = "Unexpected identifier", cr = "Unexpected reserved word", lr = "Unexpected end of input", ur = "Invalid regular expression", dr = "Invalid regular expression: missing /", fr = "Octal literals are not allowed in strict mode.", pr = "Duplicate data property in object literal not allowed in strict mode", L = "ILLEGAL", mr = "Disabled.", hr = /* @__PURE__ */ RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"), gr = /* @__PURE__ */ RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0-\\u08B2\\u08E4-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C03\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C58\\u0C59\\u0C60-\\u0C63\\u0C66-\\u0C6F\\u0C81-\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBC-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CDE\\u0CE0-\\u0CE3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D01-\\u0D03\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D60-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D82\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1CF8\\u1CF9\\u1D00-\\u1DF5\\u1DFC-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA69D\\uA69F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C4\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2D\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]");
1400
+ function _r(e, t) {
1401
+ /* istanbul ignore next */
1402
+ if (!e) throw Error("ASSERT: " + t);
1403
+ }
1404
+ function R(e) {
1405
+ return e >= 48 && e <= 57;
1406
+ }
1407
+ function vr(e) {
1408
+ return "0123456789abcdefABCDEF".includes(e);
1409
+ }
1410
+ function yr(e) {
1183
1411
  return "01234567".includes(e);
1184
1412
  }
1185
- function Zn(e) {
1413
+ function br(e) {
1186
1414
  return e === 32 || e === 9 || e === 11 || e === 12 || e === 160 || e >= 5760 && [
1187
1415
  5760,
1188
1416
  6158,
@@ -1203,16 +1431,16 @@ function Zn(e) {
1203
1431
  65279
1204
1432
  ].includes(e);
1205
1433
  }
1206
- function Qn(e) {
1434
+ function xr(e) {
1207
1435
  return e === 10 || e === 13 || e === 8232 || e === 8233;
1208
1436
  }
1209
- function $n(e) {
1210
- return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e === 92 || e >= 128 && Kn.test(String.fromCharCode(e));
1437
+ function Sr(e) {
1438
+ return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e === 92 || e >= 128 && hr.test(String.fromCharCode(e));
1211
1439
  }
1212
- function er(e) {
1213
- return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e >= 48 && e <= 57 || e === 92 || e >= 128 && qn.test(String.fromCharCode(e));
1440
+ function Cr(e) {
1441
+ return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e >= 48 && e <= 57 || e === 92 || e >= 128 && gr.test(String.fromCharCode(e));
1214
1442
  }
1215
- var tr = {
1443
+ var wr = {
1216
1444
  if: 1,
1217
1445
  in: 1,
1218
1446
  do: 1,
@@ -1256,47 +1484,47 @@ var tr = {
1256
1484
  instanceof: 1,
1257
1485
  implements: 1
1258
1486
  };
1259
- function nr() {
1260
- for (; L < R;) {
1261
- let e = I.charCodeAt(L);
1262
- if (Zn(e) || Qn(e)) ++L;
1487
+ function Tr() {
1488
+ for (; k < A;) {
1489
+ let e = O.charCodeAt(k);
1490
+ if (br(e) || xr(e)) ++k;
1263
1491
  else break;
1264
1492
  }
1265
1493
  }
1266
- function rr(e) {
1494
+ function Er(e) {
1267
1495
  var t, n, r, i = 0;
1268
- for (n = e === "u" ? 4 : 2, t = 0; t < n; ++t) L < R && Yn(I[L]) ? (r = I[L++], i = i * 16 + "0123456789abcdef".indexOf(r.toLowerCase())) : J({}, W, G);
1496
+ for (n = e === "u" ? 4 : 2, t = 0; t < n; ++t) k < A && vr(O[k]) ? (r = O[k++], i = i * 16 + "0123456789abcdef".indexOf(r.toLowerCase())) : B({}, I, L);
1269
1497
  return String.fromCharCode(i);
1270
1498
  }
1271
- function ir() {
1272
- var e = I[L], t = 0, n, r;
1273
- for (e === "}" && J({}, W, G); L < R && (e = I[L++], Yn(e));) t = t * 16 + "0123456789abcdef".indexOf(e.toLowerCase());
1274
- return (t > 1114111 || e !== "}") && J({}, W, G), t <= 65535 ? String.fromCharCode(t) : (n = (t - 65536 >> 10) + 55296, r = (t - 65536 & 1023) + 56320, String.fromCharCode(n, r));
1499
+ function Dr() {
1500
+ var e = O[k], t = 0, n, r;
1501
+ for (e === "}" && B({}, I, L); k < A && (e = O[k++], vr(e));) t = t * 16 + "0123456789abcdef".indexOf(e.toLowerCase());
1502
+ return (t > 1114111 || e !== "}") && B({}, I, L), t <= 65535 ? String.fromCharCode(t) : (n = (t - 65536 >> 10) + 55296, r = (t - 65536 & 1023) + 56320, String.fromCharCode(n, r));
1275
1503
  }
1276
- function ar() {
1277
- var e = I.charCodeAt(L++), t = String.fromCharCode(e);
1278
- for (e === 92 && (I.charCodeAt(L) !== 117 && J({}, W, G), ++L, e = rr("u"), (!e || e === "\\" || !$n(e.charCodeAt(0))) && J({}, W, G), t = e); L < R && (e = I.charCodeAt(L), er(e));) ++L, t += String.fromCharCode(e), e === 92 && (t = t.substr(0, t.length - 1), I.charCodeAt(L) !== 117 && J({}, W, G), ++L, e = rr("u"), (!e || e === "\\" || !er(e.charCodeAt(0))) && J({}, W, G), t += e);
1504
+ function Or() {
1505
+ var e = O.charCodeAt(k++), t = String.fromCharCode(e);
1506
+ for (e === 92 && (O.charCodeAt(k) !== 117 && B({}, I, L), ++k, e = Er("u"), (!e || e === "\\" || !Sr(e.charCodeAt(0))) && B({}, I, L), t = e); k < A && (e = O.charCodeAt(k), Cr(e));) ++k, t += String.fromCharCode(e), e === 92 && (t = t.substr(0, t.length - 1), O.charCodeAt(k) !== 117 && B({}, I, L), ++k, e = Er("u"), (!e || e === "\\" || !Cr(e.charCodeAt(0))) && B({}, I, L), t += e);
1279
1507
  return t;
1280
1508
  }
1281
- function or() {
1282
- for (var e = L++, t; L < R;) {
1283
- if (t = I.charCodeAt(L), t === 92) return L = e, ar();
1284
- if (er(t)) ++L;
1509
+ function kr() {
1510
+ for (var e = k++, t; k < A;) {
1511
+ if (t = O.charCodeAt(k), t === 92) return k = e, Or();
1512
+ if (Cr(t)) ++k;
1285
1513
  else break;
1286
1514
  }
1287
- return I.slice(e, L);
1515
+ return O.slice(e, k);
1288
1516
  }
1289
- function sr() {
1290
- var e = L, t = I.charCodeAt(L) === 92 ? ar() : or();
1517
+ function Ar() {
1518
+ var e = k, t = O.charCodeAt(k) === 92 ? Or() : kr();
1291
1519
  return {
1292
- type: t.length === 1 ? B : tr.hasOwnProperty(t) ? V : t === "null" ? Sn : t === "true" || t === "false" ? bn : B,
1520
+ type: t.length === 1 ? M : wr.hasOwnProperty(t) ? N : t === "null" ? Gn : t === "true" || t === "false" ? Un : M,
1293
1521
  value: t,
1294
1522
  start: e,
1295
- end: L
1523
+ end: k
1296
1524
  };
1297
1525
  }
1298
- function cr() {
1299
- var e = L, t = I.charCodeAt(L), n, r = I[L], i, a, o;
1526
+ function jr() {
1527
+ var e = k, t = O.charCodeAt(k), n, r = O[k], i, a, o;
1300
1528
  switch (t) {
1301
1529
  case 46:
1302
1530
  case 40:
@@ -1309,13 +1537,13 @@ function cr() {
1309
1537
  case 93:
1310
1538
  case 58:
1311
1539
  case 63:
1312
- case 126: return ++L, {
1313
- type: U,
1540
+ case 126: return ++k, {
1541
+ type: F,
1314
1542
  value: String.fromCharCode(t),
1315
1543
  start: e,
1316
- end: L
1544
+ end: k
1317
1545
  };
1318
- default: if (n = I.charCodeAt(L + 1), n === 61) switch (t) {
1546
+ default: if (n = O.charCodeAt(k + 1), n === 61) switch (t) {
1319
1547
  case 43:
1320
1548
  case 45:
1321
1549
  case 47:
@@ -1325,145 +1553,149 @@ function cr() {
1325
1553
  case 124:
1326
1554
  case 37:
1327
1555
  case 38:
1328
- case 42: return L += 2, {
1329
- type: U,
1556
+ case 42: return k += 2, {
1557
+ type: F,
1330
1558
  value: String.fromCharCode(t) + String.fromCharCode(n),
1331
1559
  start: e,
1332
- end: L
1560
+ end: k
1333
1561
  };
1334
1562
  case 33:
1335
- case 61: return L += 2, I.charCodeAt(L) === 61 && ++L, {
1336
- type: U,
1337
- value: I.slice(e, L),
1563
+ case 61: return k += 2, O.charCodeAt(k) === 61 && ++k, {
1564
+ type: F,
1565
+ value: O.slice(e, k),
1338
1566
  start: e,
1339
- end: L
1567
+ end: k
1340
1568
  };
1341
1569
  }
1342
1570
  }
1343
- if (o = I.substr(L, 4), o === ">>>=") return L += 4, {
1344
- type: U,
1571
+ if (o = O.substr(k, 4), o === ">>>=") return k += 4, {
1572
+ type: F,
1345
1573
  value: o,
1346
1574
  start: e,
1347
- end: L
1575
+ end: k
1348
1576
  };
1349
- if (a = o.substr(0, 3), a === ">>>" || a === "<<=" || a === ">>=") return L += 3, {
1350
- type: U,
1577
+ if (a = o.substr(0, 3), a === ">>>" || a === "<<=" || a === ">>=") return k += 3, {
1578
+ type: F,
1351
1579
  value: a,
1352
1580
  start: e,
1353
- end: L
1581
+ end: k
1354
1582
  };
1355
- if (i = a.substr(0, 2), r === i[1] && "+-<>&|".includes(r) || i === "=>") return L += 2, {
1356
- type: U,
1583
+ if (i = a.substr(0, 2), r === i[1] && "+-<>&|".includes(r) || i === "=>") return k += 2, {
1584
+ type: F,
1357
1585
  value: i,
1358
1586
  start: e,
1359
- end: L
1587
+ end: k
1360
1588
  };
1361
- if (i === "//" && J({}, W, G), "<>=!+-*%&|^/".includes(r)) return ++L, {
1362
- type: U,
1589
+ if (i === "//" && B({}, I, L), "<>=!+-*%&|^/".includes(r)) return ++k, {
1590
+ type: F,
1363
1591
  value: r,
1364
1592
  start: e,
1365
- end: L
1593
+ end: k
1366
1594
  };
1367
- J({}, W, G);
1595
+ B({}, I, L);
1368
1596
  }
1369
- function lr(e) {
1597
+ function Mr(e) {
1370
1598
  let t = "";
1371
- for (; L < R && Yn(I[L]);) t += I[L++];
1372
- return t.length === 0 && J({}, W, G), $n(I.charCodeAt(L)) && J({}, W, G), {
1373
- type: H,
1599
+ for (; k < A && vr(O[k]);) t += O[k++];
1600
+ return t.length === 0 && B({}, I, L), Sr(O.charCodeAt(k)) && B({}, I, L), {
1601
+ type: P,
1374
1602
  value: parseInt("0x" + t, 16),
1375
1603
  start: e,
1376
- end: L
1604
+ end: k
1377
1605
  };
1378
1606
  }
1379
- function ur(e) {
1380
- let t = "0" + I[L++];
1381
- for (; L < R && Xn(I[L]);) t += I[L++];
1382
- return ($n(I.charCodeAt(L)) || K(I.charCodeAt(L))) && J({}, W, G), {
1383
- type: H,
1607
+ function Nr(e) {
1608
+ let t = "0" + O[k++];
1609
+ for (; k < A && yr(O[k]);) t += O[k++];
1610
+ return (Sr(O.charCodeAt(k)) || R(O.charCodeAt(k))) && B({}, I, L), {
1611
+ type: P,
1384
1612
  value: parseInt(t, 8),
1385
1613
  octal: !0,
1386
1614
  start: e,
1387
- end: L
1615
+ end: k
1388
1616
  };
1389
1617
  }
1390
- function dr() {
1391
- var e, t, n = I[L];
1392
- if (Jn(K(n.charCodeAt(0)) || n === ".", "Numeric literal must start with a decimal digit or a decimal point"), t = L, e = "", n !== ".") {
1393
- if (e = I[L++], n = I[L], e === "0") {
1394
- if (n === "x" || n === "X") return ++L, lr(t);
1395
- if (Xn(n)) return ur(t);
1396
- n && K(n.charCodeAt(0)) && J({}, W, G);
1618
+ function Pr() {
1619
+ var e, t, n = O[k];
1620
+ if (_r(R(n.charCodeAt(0)) || n === ".", "Numeric literal must start with a decimal digit or a decimal point"), t = k, e = "", n !== ".") {
1621
+ if (e = O[k++], n = O[k], e === "0") {
1622
+ if (n === "x" || n === "X") return ++k, Mr(t);
1623
+ if (yr(n)) return Nr(t);
1624
+ n && R(n.charCodeAt(0)) && B({}, I, L);
1397
1625
  }
1398
- for (; K(I.charCodeAt(L));) e += I[L++];
1399
- n = I[L];
1626
+ for (; R(O.charCodeAt(k));) e += O[k++];
1627
+ n = O[k];
1400
1628
  }
1401
1629
  if (n === ".") {
1402
- for (e += I[L++]; K(I.charCodeAt(L));) e += I[L++];
1403
- n = I[L];
1630
+ for (e += O[k++]; R(O.charCodeAt(k));) e += O[k++];
1631
+ n = O[k];
1632
+ }
1633
+ if (n === "e" || n === "E") {
1634
+ if (e += O[k++], n = O[k], (n === "+" || n === "-") && (e += O[k++]), R(O.charCodeAt(k))) for (; R(O.charCodeAt(k));) e += O[k++];
1635
+ else B({}, I, L);
1404
1636
  }
1405
- if (n === "e" || n === "E") if (e += I[L++], n = I[L], (n === "+" || n === "-") && (e += I[L++]), K(I.charCodeAt(L))) for (; K(I.charCodeAt(L));) e += I[L++];
1406
- else J({}, W, G);
1407
- return $n(I.charCodeAt(L)) && J({}, W, G), {
1408
- type: H,
1637
+ return Sr(O.charCodeAt(k)) && B({}, I, L), {
1638
+ type: P,
1409
1639
  value: parseFloat(e),
1410
1640
  start: t,
1411
- end: L
1641
+ end: k
1412
1642
  };
1413
1643
  }
1414
- function fr() {
1644
+ function Fr() {
1415
1645
  var e = "", t, n, r, i, a = !1;
1416
- for (t = I[L], Jn(t === "'" || t === "\"", "String literal must starts with a quote"), n = L, ++L; L < R;) if (r = I[L++], r === t) {
1417
- t = "";
1418
- break;
1419
- } else if (r === "\\") if (r = I[L++], !r || !Qn(r.charCodeAt(0))) switch (r) {
1420
- case "u":
1421
- case "x":
1422
- I[L] === "{" ? (++L, e += ir()) : e += rr(r);
1423
- break;
1424
- case "n":
1425
- e += "\n";
1426
- break;
1427
- case "r":
1428
- e += "\r";
1429
- break;
1430
- case "t":
1431
- e += " ";
1432
- break;
1433
- case "b":
1434
- e += "\b";
1435
- break;
1436
- case "f":
1437
- e += "\f";
1438
- break;
1439
- case "v":
1440
- e += "\v";
1441
- break;
1442
- default:
1443
- Xn(r) ? (i = "01234567".indexOf(r), i !== 0 && (a = !0), L < R && Xn(I[L]) && (a = !0, i = i * 8 + "01234567".indexOf(I[L++]), "0123".includes(r) && L < R && Xn(I[L]) && (i = i * 8 + "01234567".indexOf(I[L++]))), e += String.fromCharCode(i)) : e += r;
1646
+ for (t = O[k], _r(t === "'" || t === "\"", "String literal must starts with a quote"), n = k, ++k; k < A;) {
1647
+ if (r = O[k++], r === t) {
1648
+ t = "";
1444
1649
  break;
1650
+ }
1651
+ if (r === "\\") {
1652
+ if (r = O[k++], !r || !xr(r.charCodeAt(0))) switch (r) {
1653
+ case "u":
1654
+ case "x":
1655
+ O[k] === "{" ? (++k, e += Dr()) : e += Er(r);
1656
+ break;
1657
+ case "n":
1658
+ e += "\n";
1659
+ break;
1660
+ case "r":
1661
+ e += "\r";
1662
+ break;
1663
+ case "t":
1664
+ e += " ";
1665
+ break;
1666
+ case "b":
1667
+ e += "\b";
1668
+ break;
1669
+ case "f":
1670
+ e += "\f";
1671
+ break;
1672
+ case "v":
1673
+ e += "\v";
1674
+ break;
1675
+ default: yr(r) ? (i = "01234567".indexOf(r), i !== 0 && (a = !0), k < A && yr(O[k]) && (a = !0, i = i * 8 + "01234567".indexOf(O[k++]), "0123".includes(r) && k < A && yr(O[k]) && (i = i * 8 + "01234567".indexOf(O[k++]))), e += String.fromCharCode(i)) : e += r;
1676
+ }
1677
+ else r === "\r" && O[k] === "\n" && ++k;
1678
+ } else if (xr(r.charCodeAt(0))) break;
1679
+ else e += r;
1445
1680
  }
1446
- else r === "\r" && I[L] === "\n" && ++L;
1447
- else if (Qn(r.charCodeAt(0))) break;
1448
- else e += r;
1449
- return t !== "" && J({}, W, G), {
1450
- type: Cn,
1681
+ return t !== "" && B({}, I, L), {
1682
+ type: Kn,
1451
1683
  value: e,
1452
1684
  octal: a,
1453
1685
  start: n,
1454
- end: L
1686
+ end: k
1455
1687
  };
1456
1688
  }
1457
- function pr(e, t) {
1689
+ function Ir(e, t) {
1458
1690
  let n = e;
1459
1691
  t.includes("u") && (n = n.replace(/\\u\{([0-9a-fA-F]+)\}/g, (e, t) => {
1460
1692
  if (parseInt(t, 16) <= 1114111) return "x";
1461
- J({}, Vn);
1693
+ B({}, ur);
1462
1694
  }).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, "x"));
1463
1695
  try {
1464
1696
  new RegExp(n);
1465
1697
  } catch {
1466
- J({}, Vn);
1698
+ B({}, ur);
1467
1699
  }
1468
1700
  try {
1469
1701
  return new RegExp(e, t);
@@ -1471,30 +1703,30 @@ function pr(e, t) {
1471
1703
  return null;
1472
1704
  }
1473
1705
  }
1474
- function mr() {
1475
- var e = I[L], t, n, r, i;
1476
- for (Jn(e === "/", "Regular expression literal must start with a slash"), t = I[L++], n = !1, r = !1; L < R;) if (e = I[L++], t += e, e === "\\") e = I[L++], Qn(e.charCodeAt(0)) && J({}, Hn), t += e;
1477
- else if (Qn(e.charCodeAt(0))) J({}, Hn);
1706
+ function Lr() {
1707
+ var e = O[k], t, n, r, i;
1708
+ for (_r(e === "/", "Regular expression literal must start with a slash"), t = O[k++], n = !1, r = !1; k < A;) if (e = O[k++], t += e, e === "\\") e = O[k++], xr(e.charCodeAt(0)) && B({}, dr), t += e;
1709
+ else if (xr(e.charCodeAt(0))) B({}, dr);
1478
1710
  else if (n) e === "]" && (n = !1);
1479
1711
  else if (e === "/") {
1480
1712
  r = !0;
1481
1713
  break;
1482
1714
  } else e === "[" && (n = !0);
1483
- return r || J({}, Hn), i = t.substr(1, t.length - 2), {
1715
+ return r || B({}, dr), i = t.substr(1, t.length - 2), {
1484
1716
  value: i,
1485
1717
  literal: t
1486
1718
  };
1487
1719
  }
1488
- function hr() {
1489
- for (var e, t = "", n = ""; L < R && (e = I[L], er(e.charCodeAt(0)));) ++L, e === "\\" && L < R ? J({}, W, G) : (n += e, t += e);
1490
- return n.search(/[^gimuy]/g) >= 0 && J({}, Vn, n), {
1720
+ function Rr() {
1721
+ for (var e, t = "", n = ""; k < A && (e = O[k], Cr(e.charCodeAt(0)));) ++k, e === "\\" && k < A ? B({}, I, L) : (n += e, t += e);
1722
+ return n.search(/[^gimuy]/g) >= 0 && B({}, ur, n), {
1491
1723
  value: n,
1492
1724
  literal: t
1493
1725
  };
1494
1726
  }
1495
- function gr() {
1727
+ function zr() {
1496
1728
  var e, t, n, r;
1497
- return z = null, nr(), e = L, t = mr(), n = hr(), r = pr(t.value, n.value), {
1729
+ return j = null, Tr(), e = k, t = Lr(), n = Rr(), r = Ir(t.value, n.value), {
1498
1730
  literal: t.literal + n.literal,
1499
1731
  value: r,
1500
1732
  regex: {
@@ -1502,166 +1734,166 @@ function gr() {
1502
1734
  flags: n.value
1503
1735
  },
1504
1736
  start: e,
1505
- end: L
1737
+ end: k
1506
1738
  };
1507
1739
  }
1508
- function _r(e) {
1509
- return e.type === B || e.type === V || e.type === bn || e.type === Sn;
1740
+ function Br(e) {
1741
+ return e.type === M || e.type === N || e.type === Un || e.type === Gn;
1510
1742
  }
1511
- function vr() {
1512
- if (nr(), L >= R) return {
1513
- type: xn,
1514
- start: L,
1515
- end: L
1743
+ function Vr() {
1744
+ if (Tr(), k >= A) return {
1745
+ type: Wn,
1746
+ start: k,
1747
+ end: k
1516
1748
  };
1517
- let e = I.charCodeAt(L);
1518
- return $n(e) ? sr() : e === 40 || e === 41 || e === 59 ? cr() : e === 39 || e === 34 ? fr() : e === 46 ? K(I.charCodeAt(L + 1)) ? dr() : cr() : K(e) ? dr() : cr();
1749
+ let e = O.charCodeAt(k);
1750
+ return Sr(e) ? Ar() : e === 40 || e === 41 || e === 59 ? jr() : e === 39 || e === 34 ? Fr() : e === 46 ? R(O.charCodeAt(k + 1)) ? Pr() : jr() : R(e) ? Pr() : jr();
1519
1751
  }
1520
- function q() {
1521
- let e = z;
1522
- return L = e.end, z = vr(), L = e.end, e;
1752
+ function z() {
1753
+ let e = j;
1754
+ return k = e.end, j = Vr(), k = e.end, e;
1523
1755
  }
1524
- function yr() {
1525
- let e = L;
1526
- z = vr(), L = e;
1756
+ function Hr() {
1757
+ let e = k;
1758
+ j = Vr(), k = e;
1527
1759
  }
1528
- function br(e) {
1529
- let t = new P(Tn);
1760
+ function Ur(e) {
1761
+ let t = new E(Jn);
1530
1762
  return t.elements = e, t;
1531
1763
  }
1532
- function xr(e, t, n) {
1533
- let r = new P(e === "||" || e === "&&" ? jn : En);
1764
+ function Wr(e, t, n) {
1765
+ let r = new E(e === "||" || e === "&&" ? er : Yn);
1534
1766
  return r.operator = e, r.left = t, r.right = n, r;
1535
1767
  }
1536
- function Sr(e, t) {
1537
- let n = new P(Dn);
1768
+ function Gr(e, t) {
1769
+ let n = new E(Xn);
1538
1770
  return n.callee = e, n.arguments = t, n;
1539
1771
  }
1540
- function Cr(e, t, n) {
1541
- let r = new P(On);
1772
+ function Kr(e, t, n) {
1773
+ let r = new E(Zn);
1542
1774
  return r.test = e, r.consequent = t, r.alternate = n, r;
1543
1775
  }
1544
- function wr(e) {
1545
- let t = new P(kn);
1776
+ function qr(e) {
1777
+ let t = new E(Qn);
1546
1778
  return t.name = e, t;
1547
1779
  }
1548
- function Tr(e) {
1549
- let t = new P(An);
1550
- return t.value = e.value, t.raw = I.slice(e.start, e.end), e.regex && (t.raw === "//" && (t.raw = "/(?:)/"), t.regex = e.regex), t;
1780
+ function Jr(e) {
1781
+ let t = new E($n);
1782
+ return t.value = e.value, t.raw = O.slice(e.start, e.end), e.regex && (t.raw === "//" && (t.raw = "/(?:)/"), t.regex = e.regex), t;
1551
1783
  }
1552
- function Er(e, t, n) {
1553
- let r = new P(Mn);
1784
+ function Yr(e, t, n) {
1785
+ let r = new E(tr);
1554
1786
  return r.computed = e === "[", r.object = t, r.property = n, r.computed || (n.member = !0), r;
1555
1787
  }
1556
- function Dr(e) {
1557
- let t = new P(Nn);
1788
+ function Xr(e) {
1789
+ let t = new E(nr);
1558
1790
  return t.properties = e, t;
1559
1791
  }
1560
- function Or(e, t, n) {
1561
- let r = new P(Pn);
1792
+ function Zr(e, t, n) {
1793
+ let r = new E(rr);
1562
1794
  return r.key = t, r.value = n, r.kind = e, r;
1563
1795
  }
1564
- function kr(e, t) {
1565
- let n = new P(Fn);
1796
+ function Qr(e, t) {
1797
+ let n = new E(ir);
1566
1798
  return n.operator = e, n.argument = t, n.prefix = !0, n;
1567
1799
  }
1568
- function J(e, t) {
1569
- var n, r = Array.prototype.slice.call(arguments, 2), i = t.replace(/%(\d)/g, (e, t) => (Jn(t < r.length, "Message reference must be in range"), r[t]));
1570
- throw n = Error(i), n.index = L, n.description = i, n;
1800
+ function B(e, t) {
1801
+ var n, r = Array.prototype.slice.call(arguments, 2), i = t.replace(/%(\d)/g, (e, t) => (_r(t < r.length, "Message reference must be in range"), r[t]));
1802
+ throw n = Error(i), n.index = k, n.description = i, n;
1571
1803
  }
1572
- function Ar(e) {
1573
- e.type === xn && J(e, Bn), e.type === H && J(e, In), e.type === Cn && J(e, Ln), e.type === B && J(e, Rn), e.type === V && J(e, zn), J(e, W, e.value);
1804
+ function $r(e) {
1805
+ e.type === Wn && B(e, lr), e.type === P && B(e, ar), e.type === Kn && B(e, or), e.type === M && B(e, sr), e.type === N && B(e, cr), B(e, I, e.value);
1574
1806
  }
1575
- function Y(e) {
1576
- let t = q();
1577
- (t.type !== U || t.value !== e) && Ar(t);
1807
+ function V(e) {
1808
+ let t = z();
1809
+ (t.type !== F || t.value !== e) && $r(t);
1578
1810
  }
1579
- function X(e) {
1580
- return z.type === U && z.value === e;
1811
+ function H(e) {
1812
+ return j.type === F && j.value === e;
1581
1813
  }
1582
- function jr(e) {
1583
- return z.type === V && z.value === e;
1814
+ function ei(e) {
1815
+ return j.type === N && j.value === e;
1584
1816
  }
1585
- function Mr() {
1817
+ function ti() {
1586
1818
  let e = [];
1587
- for (L = z.start, Y("["); !X("]");) X(",") ? (q(), e.push(null)) : (e.push(Z()), X("]") || Y(","));
1588
- return q(), br(e);
1819
+ for (k = j.start, V("["); !H("]");) H(",") ? (z(), e.push(null)) : (e.push(U()), H("]") || V(","));
1820
+ return z(), Ur(e);
1589
1821
  }
1590
- function Nr() {
1591
- L = z.start;
1592
- let e = q();
1593
- return e.type === Cn || e.type === H ? (e.octal && J(e, Un), Tr(e)) : wr(e.value);
1822
+ function ni() {
1823
+ k = j.start;
1824
+ let e = z();
1825
+ return e.type === Kn || e.type === P ? (e.octal && B(e, fr), Jr(e)) : qr(e.value);
1594
1826
  }
1595
- function Pr() {
1827
+ function ri() {
1596
1828
  var e, t, n, r;
1597
- if (L = z.start, e = z, e.type === B) return n = Nr(), Y(":"), r = Z(), Or("init", n, r);
1598
- if (e.type === xn || e.type === U) Ar(e);
1599
- else return t = Nr(), Y(":"), r = Z(), Or("init", t, r);
1829
+ if (k = j.start, e = j, e.type === M) return n = ni(), V(":"), r = U(), Zr("init", n, r);
1830
+ if (e.type === Wn || e.type === F) $r(e);
1831
+ else return t = ni(), V(":"), r = U(), Zr("init", t, r);
1600
1832
  }
1601
- function Fr() {
1833
+ function ii() {
1602
1834
  var e = [], t, n, r, i = {}, a = String;
1603
- for (L = z.start, Y("{"); !X("}");) t = Pr(), n = t.key.type === kn ? t.key.name : a(t.key.value), r = "$" + n, Object.prototype.hasOwnProperty.call(i, r) ? J({}, Wn) : i[r] = !0, e.push(t), X("}") || Y(",");
1604
- return Y("}"), Dr(e);
1835
+ for (k = j.start, V("{"); !H("}");) t = ri(), n = t.key.type === Qn ? t.key.name : a(t.key.value), r = "$" + n, Object.prototype.hasOwnProperty.call(i, r) ? B({}, pr) : i[r] = !0, e.push(t), H("}") || V(",");
1836
+ return V("}"), Xr(e);
1605
1837
  }
1606
- function Ir() {
1607
- Y("(");
1608
- let e = Jr();
1609
- return Y(")"), e;
1838
+ function ai() {
1839
+ V("(");
1840
+ let e = _i();
1841
+ return V(")"), e;
1610
1842
  }
1611
- var Lr = { if: 1 };
1612
- function Rr() {
1843
+ var oi = { if: 1 };
1844
+ function si() {
1613
1845
  var e, t, n;
1614
- if (X("(")) return Ir();
1615
- if (X("[")) return Mr();
1616
- if (X("{")) return Fr();
1617
- if (e = z.type, L = z.start, e === B || Lr[z.value]) n = wr(q().value);
1618
- else if (e === Cn || e === H) z.octal && J(z, Un), n = Tr(q());
1619
- else if (e === V) throw Error(Gn);
1620
- else e === bn ? (t = q(), t.value = t.value === "true", n = Tr(t)) : e === Sn ? (t = q(), t.value = null, n = Tr(t)) : X("/") || X("/=") ? (n = Tr(gr()), yr()) : Ar(q());
1846
+ if (H("(")) return ai();
1847
+ if (H("[")) return ti();
1848
+ if (H("{")) return ii();
1849
+ if (e = j.type, k = j.start, e === M || oi[j.value]) n = qr(z().value);
1850
+ else if (e === Kn || e === P) j.octal && B(j, fr), n = Jr(z());
1851
+ else if (e === N) throw Error(mr);
1852
+ else e === Un ? (t = z(), t.value = t.value === "true", n = Jr(t)) : e === Gn ? (t = z(), t.value = null, n = Jr(t)) : H("/") || H("/=") ? (n = Jr(zr()), Hr()) : $r(z());
1621
1853
  return n;
1622
1854
  }
1623
- function zr() {
1855
+ function ci() {
1624
1856
  let e = [];
1625
- if (Y("("), !X(")")) for (; L < R && (e.push(Z()), !X(")"));) Y(",");
1626
- return Y(")"), e;
1627
- }
1628
- function Br() {
1629
- L = z.start;
1630
- let e = q();
1631
- return _r(e) || Ar(e), wr(e.value);
1632
- }
1633
- function Vr() {
1634
- return Y("."), Br();
1635
- }
1636
- function Hr() {
1637
- Y("[");
1638
- let e = Jr();
1639
- return Y("]"), e;
1640
- }
1641
- function Ur() {
1642
- for (var e = Rr(), t, n;;) if (X(".")) n = Vr(), e = Er(".", e, n);
1643
- else if (X("(")) t = zr(), e = Sr(e, t);
1644
- else if (X("[")) n = Hr(), e = Er("[", e, n);
1857
+ if (V("("), !H(")")) for (; k < A && (e.push(U()), !H(")"));) V(",");
1858
+ return V(")"), e;
1859
+ }
1860
+ function li() {
1861
+ k = j.start;
1862
+ let e = z();
1863
+ return Br(e) || $r(e), qr(e.value);
1864
+ }
1865
+ function ui() {
1866
+ return V("."), li();
1867
+ }
1868
+ function di() {
1869
+ V("[");
1870
+ let e = _i();
1871
+ return V("]"), e;
1872
+ }
1873
+ function fi() {
1874
+ for (var e = si(), t, n;;) if (H(".")) n = ui(), e = Yr(".", e, n);
1875
+ else if (H("(")) t = ci(), e = Gr(e, t);
1876
+ else if (H("[")) n = di(), e = Yr("[", e, n);
1645
1877
  else break;
1646
1878
  return e;
1647
1879
  }
1648
- function Wr() {
1649
- let e = Ur();
1650
- if (z.type === U && (X("++") || X("--"))) throw Error(Gn);
1880
+ function pi() {
1881
+ let e = fi();
1882
+ if (j.type === F && (H("++") || H("--"))) throw Error(mr);
1651
1883
  return e;
1652
1884
  }
1653
- function Gr() {
1885
+ function mi() {
1654
1886
  var e, t;
1655
- if (z.type !== U && z.type !== V) t = Wr();
1656
- else if (X("++") || X("--")) throw Error(Gn);
1657
- else if (X("+") || X("-") || X("~") || X("!")) e = q(), t = Gr(), t = kr(e.value, t);
1658
- else if (jr("delete") || jr("void") || jr("typeof")) throw Error(Gn);
1659
- else t = Wr();
1887
+ if (j.type !== F && j.type !== N) t = pi();
1888
+ else if (H("++") || H("--")) throw Error(mr);
1889
+ else if (H("+") || H("-") || H("~") || H("!")) e = z(), t = mi(), t = Qr(e.value, t);
1890
+ else if (ei("delete") || ei("void") || ei("typeof")) throw Error(mr);
1891
+ else t = pi();
1660
1892
  return t;
1661
1893
  }
1662
- function Kr(e) {
1894
+ function hi(e) {
1663
1895
  let t = 0;
1664
- if (e.type !== U && e.type !== V) return 0;
1896
+ if (e.type !== F && e.type !== N) return 0;
1665
1897
  switch (e.value) {
1666
1898
  case "||":
1667
1899
  t = 1;
@@ -1703,42 +1935,40 @@ function Kr(e) {
1703
1935
  break;
1704
1936
  case "*":
1705
1937
  case "/":
1706
- case "%":
1707
- t = 11;
1708
- break;
1938
+ case "%": t = 11;
1709
1939
  }
1710
1940
  return t;
1711
1941
  }
1712
- function qr() {
1713
- var e = z, t, n, r, i, a, o, s, c = Gr(), l;
1714
- if (r = z, i = Kr(r), i === 0) return c;
1715
- for (r.prec = i, q(), t = [e, z], o = Gr(), a = [
1942
+ function gi() {
1943
+ var e = j, t, n, r, i, a, o, s, c = mi(), l;
1944
+ if (r = j, i = hi(r), i === 0) return c;
1945
+ for (r.prec = i, z(), t = [e, j], o = mi(), a = [
1716
1946
  c,
1717
1947
  r,
1718
1948
  o
1719
- ]; (i = Kr(z)) > 0;) {
1720
- for (; a.length > 2 && i <= a[a.length - 2].prec;) o = a.pop(), s = a.pop().value, c = a.pop(), t.pop(), n = xr(s, c, o), a.push(n);
1721
- r = q(), r.prec = i, a.push(r), t.push(z), n = Gr(), a.push(n);
1949
+ ]; (i = hi(j)) > 0;) {
1950
+ for (; a.length > 2 && i <= a[a.length - 2].prec;) o = a.pop(), s = a.pop().value, c = a.pop(), t.pop(), n = Wr(s, c, o), a.push(n);
1951
+ r = z(), r.prec = i, a.push(r), t.push(j), n = mi(), a.push(n);
1722
1952
  }
1723
- for (l = a.length - 1, n = a[l], t.pop(); l > 1;) t.pop(), n = xr(a[l - 1].value, a[l - 2], n), l -= 2;
1953
+ for (l = a.length - 1, n = a[l], t.pop(); l > 1;) t.pop(), n = Wr(a[l - 1].value, a[l - 2], n), l -= 2;
1724
1954
  return n;
1725
1955
  }
1726
- function Z() {
1727
- var e = qr(), t, n;
1728
- return X("?") && (q(), t = Z(), Y(":"), n = Z(), e = Cr(e, t, n)), e;
1956
+ function U() {
1957
+ var e = gi(), t, n;
1958
+ return H("?") && (z(), t = U(), V(":"), n = U(), e = Kr(e, t, n)), e;
1729
1959
  }
1730
- function Jr() {
1731
- let e = Z();
1732
- if (X(",")) throw Error(Gn);
1960
+ function _i() {
1961
+ let e = U();
1962
+ if (H(",")) throw Error(mr);
1733
1963
  return e;
1734
1964
  }
1735
- function Yr(e) {
1736
- I = e, L = 0, R = I.length, z = null, yr();
1737
- let t = Jr();
1738
- if (z.type !== xn) throw Error("Unexpect token after expression.");
1965
+ function vi(e) {
1966
+ O = e, k = 0, A = O.length, j = null, Hr();
1967
+ let t = _i();
1968
+ if (j.type !== Wn) throw Error("Unexpect token after expression.");
1739
1969
  return t;
1740
1970
  }
1741
- var Xr = {
1971
+ var yi = {
1742
1972
  NaN: "NaN",
1743
1973
  E: "Math.E",
1744
1974
  LN2: "Math.LN2",
@@ -1751,7 +1981,7 @@ var Xr = {
1751
1981
  MIN_VALUE: "Number.MIN_VALUE",
1752
1982
  MAX_VALUE: "Number.MAX_VALUE"
1753
1983
  };
1754
- function Zr(e) {
1984
+ function bi(e) {
1755
1985
  function t(t, n, r, i) {
1756
1986
  let a = e(n[0]);
1757
1987
  return r && (a = r + "(" + a + ")", r.lastIndexOf("new ", 0) === 0 && (a = "(" + a + ")")), a + "." + t + (i < 0 ? "" : i === 0 ? "()" : "(" + n.slice(1).map(e).join(",") + ")");
@@ -1783,7 +2013,7 @@ function Zr(e) {
1783
2013
  sqrt: "Math.sqrt",
1784
2014
  tan: "Math.tan",
1785
2015
  clamp: function(t) {
1786
- t.length < 3 && N("Missing arguments to clamp function."), t.length > 3 && N("Too many arguments to clamp function.");
2016
+ t.length < 3 && T("Missing arguments to clamp function."), t.length > 3 && T("Too many arguments to clamp function.");
1787
2017
  let n = t.map(e);
1788
2018
  return "Math.max(" + n[1] + ", Math.min(" + n[2] + "," + n[0] + "))";
1789
2019
  },
@@ -1818,45 +2048,44 @@ function Zr(e) {
1818
2048
  trim: n("trim", i, 0),
1819
2049
  btoa: "btoa",
1820
2050
  atob: "atob",
2051
+ encodeURIComponent: "encodeURIComponent",
1821
2052
  regexp: a,
1822
2053
  test: n("test", a),
1823
2054
  if: function(t) {
1824
- t.length < 3 && N("Missing arguments to if function."), t.length > 3 && N("Too many arguments to if function.");
2055
+ t.length < 3 && T("Missing arguments to if function."), t.length > 3 && T("Too many arguments to if function.");
1825
2056
  let n = t.map(e);
1826
2057
  return "(" + n[0] + "?" + n[1] + ":" + n[2] + ")";
1827
2058
  }
1828
2059
  };
1829
2060
  }
1830
- function Qr(e) {
2061
+ function xi(e) {
1831
2062
  let t = e && e.length - 1;
1832
2063
  return t && (e[0] === "\"" && e[t] === "\"" || e[0] === "'" && e[t] === "'") ? e.slice(1, -1) : e;
1833
2064
  }
1834
- function $r(e) {
2065
+ function Si(e) {
1835
2066
  e ||= {};
1836
- let t = e.allowed ? on(e.allowed) : {}, n = e.forbidden ? on(e.forbidden) : {}, r = e.constants || Xr, i = (e.functions || Zr)(d), a = e.globalvar, o = e.fieldvar, s = tn(a) ? a : (e) => `${a}["${e}"]`;
1837
- [...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function")];
1838
- let c = {}, l = {}, u = 0;
2067
+ let t = e.allowed ? kn(e.allowed) : {}, n = e.forbidden ? kn(e.forbidden) : {}, r = e.constants || yi, i = (e.functions || bi)(d), a = e.globalvar, o = e.fieldvar, s = En(a) ? a : (e) => `${a}["${e}"]`, c = {}, l = {}, u = 0;
1839
2068
  function d(e) {
1840
- if (rn(e)) return e;
2069
+ if (On(e)) return e;
1841
2070
  let t = f[e.type];
1842
- return t ?? N("Unsupported type: " + e.type), t(e);
2071
+ return t ?? T("Unsupported type: " + e.type), t(e);
1843
2072
  }
1844
2073
  let f = {
1845
2074
  Literal: (e) => e.raw,
1846
2075
  Identifier: (e) => {
1847
2076
  let i = e.name;
1848
- return u > 0 ? i : nn(n, i) ? N("Illegal identifier: " + i) : nn(r, i) ? r[i] : nn(t, i) ? i : (c[i] = 1, s(i));
2077
+ return u > 0 ? i : Dn(n, i) ? T("Illegal identifier: " + i) : Dn(r, i) ? r[i] : Dn(t, i) ? i : (c[i] = 1, s(i));
1849
2078
  },
1850
2079
  MemberExpression: (e) => {
1851
2080
  let t = !e.computed, n = d(e.object);
1852
2081
  t && (u += 1);
1853
2082
  let r = d(e.property);
1854
- return n === o && (l[Qr(r)] = 1), t && --u, n + (t ? "." + r : "[" + r + "]");
2083
+ return n === o && (l[xi(r)] = 1), t && --u, n + (t ? "." + r : "[" + r + "]");
1855
2084
  },
1856
2085
  CallExpression: (e) => {
1857
- e.callee.type !== "Identifier" && N("Illegal callee type: " + e.callee.type);
1858
- let t = e.callee.name, n = e.arguments, r = nn(i, t) && i[t];
1859
- return r || N("Unrecognized function: " + t), tn(r) ? r(n) : r + "(" + n.map(d).join(",") + ")";
2086
+ e.callee.type !== "Identifier" && T("Illegal callee type: " + e.callee.type);
2087
+ let t = e.callee.name, n = e.arguments, r = Dn(i, t) && i[t];
2088
+ return r || T("Unrecognized function: " + t), En(r) ? r(n) : r + "(" + n.map(d).join(",") + ")";
1860
2089
  },
1861
2090
  ArrayExpression: (e) => "[" + e.elements.map(d).join(",") + "]",
1862
2091
  BinaryExpression: (e) => "(" + d(e.left) + " " + e.operator + " " + d(e.right) + ")",
@@ -1865,8 +2094,8 @@ function $r(e) {
1865
2094
  LogicalExpression: (e) => "(" + d(e.left) + e.operator + d(e.right) + ")",
1866
2095
  ObjectExpression: (e) => {
1867
2096
  for (let t of e.properties) {
1868
- let e = t.key.name;
1869
- Zt.has(e) && N("Illegal property: " + e);
2097
+ let e = t.key.type === "Literal" ? String(t.key.value) : t.key.name;
2098
+ Tn.has(e) && T("Illegal property: " + e);
1870
2099
  }
1871
2100
  return "{" + e.properties.map(d).join(",") + "}";
1872
2101
  },
@@ -1888,81 +2117,83 @@ function $r(e) {
1888
2117
  }
1889
2118
  //#endregion
1890
2119
  //#region ../core/src/utils/smoothstep.js
1891
- function ei(e, t, n) {
2120
+ function Ci(e, t, n) {
1892
2121
  return n = (n - e) / (t - e), n = Math.max(0, Math.min(1, n)), n * n * (3 - 2 * n);
1893
2122
  }
1894
2123
  //#endregion
1895
2124
  //#region ../core/src/utils/clamp.js
1896
- function ti(e, t = 0, n = 1) {
2125
+ function wi(e, t = 0, n = 1) {
1897
2126
  return Math.max(t, Math.min(n, e));
1898
2127
  }
1899
2128
  //#endregion
1900
2129
  //#region ../core/src/utils/linearstep.js
1901
- function ni(e, t, n) {
1902
- return ti((n - e) / (t - e), 0, 1);
2130
+ function Ti(e, t, n) {
2131
+ return wi((n - e) / (t - e), 0, 1);
1903
2132
  }
1904
2133
  //#endregion
1905
2134
  //#region ../core/src/utils/expression.js
1906
- function ri(e) {
2135
+ function Ei(e) {
1907
2136
  return u(e) || ArrayBuffer.isView(e) ? e : null;
1908
2137
  }
1909
- function ii(e) {
1910
- return ri(e) || (x(e) ? e : null);
2138
+ function Di(e) {
2139
+ return Ei(e) || (b(e) ? e : null);
1911
2140
  }
1912
- var ai = {
1913
- clamp: ti,
2141
+ var Oi = {
2142
+ clamp: wi,
2143
+ tickStep: Ie,
1914
2144
  format(e, t) {
1915
- return yt(t)(e);
2145
+ return nt(t)(e);
1916
2146
  },
1917
2147
  join(e, t) {
1918
- return ri(e).join(t);
2148
+ return Ei(e).join(t);
1919
2149
  },
1920
2150
  indexof(e, t, n) {
1921
- return ii(e).indexOf(t, n);
2151
+ return Di(e).indexOf(t, n);
1922
2152
  },
2153
+ inrange: _e,
1923
2154
  lastindexof(e, t, n) {
1924
- return ii(e).lastIndexOf(t, n);
2155
+ return Di(e).lastIndexOf(t, n);
1925
2156
  },
1926
2157
  reverse(e) {
1927
- return x(e) ? Array.from(e).reverse().join("") : ri(e).slice().reverse();
2158
+ return b(e) ? Array.from(e).reverse().join("") : Ei(e).slice().reverse();
1928
2159
  },
1929
2160
  slice(e, t, n) {
1930
- return ii(e).slice(t, n);
2161
+ return Di(e).slice(t, n);
1931
2162
  },
1932
2163
  mapHasKey(e, t) {
1933
2164
  return e.has(t);
1934
2165
  },
1935
2166
  isArray: u,
1936
- isBoolean: ge,
2167
+ isBoolean: ve,
1937
2168
  isDefined(e) {
1938
2169
  return e !== void 0;
1939
2170
  },
1940
- isNumber: _e,
2171
+ isNumber: ye,
1941
2172
  isObject: d,
1942
- isRegExp: ve,
1943
- isString: x,
2173
+ isRegExp: be,
2174
+ isString: b,
1944
2175
  isValid(e) {
1945
2176
  return e != null && e === e;
1946
2177
  },
1947
- lerp: ye,
1948
- linearstep: ni,
2178
+ lerp: xe,
2179
+ linearstep: Ti,
1949
2180
  replace(e, t, n) {
1950
2181
  return String(e).replace(t, n);
1951
2182
  },
1952
2183
  sort(e) {
1953
- return ri(e).slice().sort(fe);
2184
+ return Ei(e).slice().sort(pe);
1954
2185
  },
1955
2186
  center(e) {
1956
- let t = ri(e);
2187
+ let t = Ei(e);
1957
2188
  return (t[0] + t[t.length - 1]) / 2;
1958
2189
  },
1959
2190
  span(e) {
1960
- return be(e);
2191
+ return Se(e);
1961
2192
  },
1962
- smoothstep: ei
2193
+ smoothstep: Ci
1963
2194
  };
1964
- function oi(e) {
1965
- let t = !1, n = mi(e, {}, { resolveScaleResolution: () => (t = !0, {
2195
+ function ki(e) {
2196
+ let t = !1, n = Li(e, {}, { resolveScaleResolution: () => (t = !0, {
1966
2197
  channel: "analysis",
1967
2198
  getDomainRef: () => void 0,
1968
2199
  getMappingRef: () => void 0,
@@ -1974,9 +2205,9 @@ function oi(e) {
1974
2205
  globals: n.globals
1975
2206
  };
1976
2207
  }
1977
- function si(e, t) {
1978
- let n = Zr(e);
1979
- for (let e in ai) n[e] = `this.${e}`;
2208
+ function Ai(e, t) {
2209
+ let n = bi(e);
2210
+ for (let e in Oi) n[e] = `this.${e}`;
1980
2211
  for (let r of [
1981
2212
  "scale",
1982
2213
  "invert",
@@ -1985,10 +2216,10 @@ function si(e, t) {
1985
2216
  "bandwidth",
1986
2217
  "linearize",
1987
2218
  "zoomLevel"
1988
- ]) n[r] = (n) => ci(e, t, r, n);
2219
+ ]) n[r] = (n) => ji(e, t, r, n);
1989
2220
  return n;
1990
2221
  }
1991
- function ci(e, t, n, r) {
2222
+ function ji(e, t, n, r) {
1992
2223
  if (n === "zoomLevel" && r.length === 0) {
1993
2224
  let e = [];
1994
2225
  for (let r of ["x", "y"]) {
@@ -2003,18 +2234,18 @@ function ci(e, t, n, r) {
2003
2234
  if (r.length === 0) throw Error(`Scale helper "${n}" requires a literal channel name.`);
2004
2235
  if ((n === "scale" || n === "invert" || n === "linearize") && r.length < 2) throw Error(`Scale helper "${n}" requires a channel name and a value.`);
2005
2236
  if (n === "zoomLevel" && r.length > 1) throw Error("Scale helper \"zoomLevel\" accepts zero arguments or one literal channel name.");
2006
- let i = li(r[0]);
2237
+ let i = Mi(r[0]);
2007
2238
  if (!i) throw Error(`Scale helper "${n}" requires a literal channel name.`);
2008
2239
  let a = t.resolveScaleResolution?.(i);
2009
2240
  if (!a) throw Error(`Unknown scale channel "${i}" in expression helper "${n}".`);
2010
2241
  let o = t.getScaleHelper(n, i, a), s = r.slice(1).map((t) => e(t)).join(",");
2011
2242
  return `${t.globalvar}["${o.codeName}"](${s})`;
2012
2243
  }
2013
- function li(e) {
2244
+ function Mi(e) {
2014
2245
  return e?.type === "Literal" && typeof e.value == "string" ? e.value : void 0;
2015
2246
  }
2016
- function ui(e, t) {
2017
- let n = (n) => fi(t, e, n);
2247
+ function Ni(e, t) {
2248
+ let n = (n) => Fi(t, e, n);
2018
2249
  if (e === "domain") return () => n(() => t.getDomain());
2019
2250
  if (e === "range") return () => n(() => t.getScale().range());
2020
2251
  if (e === "bandwidth") return () => n(() => {
@@ -2028,20 +2259,20 @@ function ui(e, t) {
2028
2259
  if (e === "zoomLevel") return () => n(() => t.getZoomLevel());
2029
2260
  throw Error("Unknown scale helper: " + e);
2030
2261
  }
2031
- var di = /* @__PURE__ */ new WeakSet();
2032
- function fi(e, t, n) {
2033
- if (di.has(e)) throw Error(`Scale helper cycle detected while evaluating ${t}("${e.channel}").`);
2034
- di.add(e);
2262
+ var Pi = /* @__PURE__ */ new WeakSet();
2263
+ function Fi(e, t, n) {
2264
+ if (Pi.has(e)) throw Error(`Scale helper cycle detected while evaluating ${t}("${e.channel}").`);
2265
+ Pi.add(e);
2035
2266
  try {
2036
2267
  return n();
2037
2268
  } finally {
2038
- di.delete(e);
2269
+ Pi.delete(e);
2039
2270
  }
2040
2271
  }
2041
- function pi(e, t) {
2272
+ function Ii(e, t) {
2042
2273
  return e === "domain" ? t.getDomainRef() : e === "linearize" ? t.getConfigurationRef() : e === "zoomLevel" ? t.getZoomLevelRef() : t.getMappingRef();
2043
2274
  }
2044
- function mi(e, t = {}, n = {}) {
2275
+ function Li(e, t = {}, n = {}) {
2045
2276
  try {
2046
2277
  let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set(), o = 1, s = {
2047
2278
  ...n,
@@ -2051,38 +2282,38 @@ function mi(e, t = {}, n = {}) {
2051
2282
  let c = e + ":" + n, l = i.get(c);
2052
2283
  if (l) return l;
2053
2284
  let u = r.get(c);
2054
- u || (u = pi(e, s), r.set(c, u));
2285
+ u || (u = Ii(e, s), r.set(c, u));
2055
2286
  let d = "__scale_helper_" + o++, f = {
2056
2287
  codeName: d,
2057
2288
  dependency: u
2058
2289
  };
2059
- return i.set(c, f), e === "zoomLevel" && a.add(s), t[d] = ui(e, s), f;
2290
+ return i.set(c, f), e === "zoomLevel" && a.add(s), t[d] = Ni(e, s), f;
2060
2291
  }
2061
- }, c = $r({
2292
+ }, c = Si({
2062
2293
  forbidden: [],
2063
2294
  allowed: ["datum", "undefined"],
2064
2295
  globalvar: "globalObject",
2065
2296
  fieldvar: "datum",
2066
- functions: (e) => si(e, s)
2067
- })(Yr(e)), l = Function("datum", "globalObject", `"use strict";
2297
+ functions: (e) => Ai(e, s)
2298
+ })(vi(e)), l = Function("datum", "globalObject", `"use strict";
2068
2299
  try {
2069
2300
  return (${c.code});
2070
2301
  } catch (e) {
2071
2302
  throw new Error("Error evaluating expression: " + ${JSON.stringify(e)} + ", " + e.message, e);
2072
- }`).bind(ai), u = (e) => l(e, t);
2073
- return u.fields = c.fields, u.globals = c.globals, u.code = c.code, u.scaleDependencies = Array.from(new Set(r.values())), u.zoomLevelResolutions = Array.from(a), u;
2303
+ }`).bind(Oi), u = (e) => l(e, t);
2304
+ return u.createEvaluator = (e) => (t) => l(t, e), u.fields = c.fields, u.globals = c.globals, u.code = c.code, u.scaleDependencies = Array.from(new Set(r.values())), u.zoomLevelResolutions = Array.from(a), u;
2074
2305
  } catch (t) {
2075
2306
  throw Error(`Invalid expression: ${e}, ${t.message}`, { cause: t });
2076
2307
  }
2077
2308
  }
2078
- var hi = $r({
2309
+ var Ri = Si({
2079
2310
  forbidden: [],
2080
2311
  allowed: ["event"],
2081
2312
  globalvar: "globalObject"
2082
2313
  });
2083
- function gi(e) {
2314
+ function zi(e) {
2084
2315
  try {
2085
- let t = hi(Yr(e));
2316
+ let t = Ri(vi(e));
2086
2317
  return Function("event", "globalObject", `"use strict";
2087
2318
  try {
2088
2319
  return !!(${t.code});
@@ -2095,48 +2326,69 @@ function gi(e) {
2095
2326
  }
2096
2327
  //#endregion
2097
2328
  //#region ../core/src/utils/interactionConfig.js
2098
- function _i(e) {
2329
+ function Bi(e) {
2099
2330
  if (typeof e == "string") {
2100
2331
  let t = e.match(/^([a-zA-Z]+)(?:\[(.+)\])?$/);
2101
2332
  if (!t) throw Error(`Invalid event type string: ${e}`);
2102
2333
  let [, n, r] = t, i = { type: n };
2103
2334
  return r && (i.filter = r), i;
2104
- } else return e;
2335
+ }
2336
+ return e;
2105
2337
  }
2106
- function vi(e) {
2107
- return e?.filter ? gi(e.filter) : () => !0;
2338
+ function Vi(e) {
2339
+ return e?.filter ? zi(e.filter) : () => !0;
2108
2340
  }
2109
- function yi(e, t, n) {
2341
+ function Hi(e, t, n) {
2110
2342
  if (!t.includes(e.type)) throw Error(n);
2111
2343
  return e;
2112
2344
  }
2113
2345
  //#endregion
2114
2346
  //#region ../core/src/selection/selection.js
2115
- function bi(e) {
2347
+ function Ui(e) {
2116
2348
  return {
2117
2349
  type: "single",
2118
2350
  datum: e,
2119
- uniqueId: e?.[j]
2351
+ uniqueId: e?.[x]
2120
2352
  };
2121
2353
  }
2122
- function xi(e) {
2354
+ function Wi(e) {
2123
2355
  return e ??= [], {
2124
2356
  type: "multi",
2125
- data: new Map(e.map((e) => [e[j], e]))
2357
+ data: new Map(e.map((e) => [e[x], e]))
2126
2358
  };
2127
2359
  }
2128
- function Si(e) {
2360
+ function Gi(e, t) {
2361
+ if (!t || t.length === 0) return;
2362
+ let n = t.map((e) => yt(e)), r = (e) => n.map((t) => t(e));
2363
+ if (ea(e)) return e.datum ? [r(e.datum)] : [];
2364
+ if (ta(e)) return [...e.data.values()].map(r);
2365
+ throw Error(`Expected a point selection, got: ${JSON.stringify(e)}`);
2366
+ }
2367
+ function Ki(e, t, n, r) {
2368
+ if (!t || t.length === 0) return;
2369
+ if (e === "single" && n.length > 1) throw Error("Single point selections expect at most one key tuple.");
2370
+ let i = [], a = [];
2371
+ for (let e of n) {
2372
+ let n = r(t, e);
2373
+ n ? i.push(n) : a.push(e);
2374
+ }
2375
+ return {
2376
+ selection: e === "single" ? Ui(i[0] ?? null) : Wi(i),
2377
+ unresolved: a
2378
+ };
2379
+ }
2380
+ function qi(e) {
2129
2381
  return {
2130
2382
  type: "interval",
2131
2383
  intervals: Object.fromEntries(e.map((e) => [e, null]))
2132
2384
  };
2133
2385
  }
2134
- function Ci(e, { add: t, remove: n, toggle: r }) {
2386
+ function Ji(e, { add: t, remove: n, toggle: r }) {
2135
2387
  let i = e.data;
2136
- for (let e of t ?? []) i.set(e[j], e);
2137
- for (let e of n ?? []) i.delete(e[j]);
2388
+ for (let e of t ?? []) i.set(e[x], e);
2389
+ for (let e of n ?? []) i.delete(e[x]);
2138
2390
  for (let e of r ?? []) {
2139
- let t = e[j];
2391
+ let t = e[x];
2140
2392
  i.has(t) ? i.delete(t) : i.set(t, e);
2141
2393
  }
2142
2394
  return {
@@ -2144,452 +2396,468 @@ function Ci(e, { add: t, remove: n, toggle: r }) {
2144
2396
  data: i
2145
2397
  };
2146
2398
  }
2147
- function wi(e, t) {
2148
- let n = !!(e.empty ?? !0), r = Nt(e.param), i = e.fields ?? {};
2149
- if (ji(t)) return `${r}.uniqueId == null ? ${n} : ${r}.uniqueId === datum[${JSON.stringify(j)}]`;
2150
- if (Mi(t)) return `${r}.data.size == 0 ? ${n} : mapHasKey(${r}.data, datum[${JSON.stringify(j)}])`;
2151
- if (Q(t)) {
2152
- let a = Object.keys(t.intervals), o = Object.keys(i).filter(ha);
2399
+ function Yi(e, t) {
2400
+ let n = !!(e.empty ?? !0), r = pa(e.param), i = e.fields ?? {};
2401
+ if (ea(t)) return `${r}.uniqueId == null ? ${n} : ${r}.uniqueId === datum[${JSON.stringify(x)}]`;
2402
+ if (ta(t)) return `${r}.data.size == 0 ? ${n} : mapHasKey(${r}.data, datum[${JSON.stringify(x)}])`;
2403
+ if ($i(t)) {
2404
+ let a = Object.keys(t.intervals), o = Object.keys(i).filter(an);
2153
2405
  if (o.length === 0) throw Error("Filtering using interval selections requires at least one primary positional channel in the config! " + JSON.stringify(e));
2154
2406
  if (o.some((e) => !a.includes(e))) throw Error(`Selection channels (${a.join(", ")}) do not match the fields: ${JSON.stringify(e)}!`);
2155
2407
  let s = (e) => `datum[${JSON.stringify(e)}]`;
2156
2408
  return a.map((e) => {
2157
- let t = Ca(e), a = i[e], o = i[t] ?? i[e], c = `${r}.intervals.${e}[0] <= ${s(o)}`, l = `${s(a)} <= ${r}.intervals.${e}[1]`;
2409
+ let t = pn(e), a = i[e], o = i[t] ?? i[e], c = `${r}.intervals.${e}[0] <= ${s(o)}`, l = `${s(a)} <= ${r}.intervals.${e}[1]`;
2158
2410
  return `(${r}.intervals.${e} ? (${c} && ${l}) : ${n})`;
2159
2411
  }).join(" && ");
2160
- } else throw Error(`Unrecognized selection type : ${JSON.stringify(t)}`);
2161
- }
2162
- function Ti(e) {
2163
- if (!("param" in e) && !("test" in e)) return;
2164
- let { param: t, empty: n = !0 } = "test" in e ? e.test : e;
2165
- if (typeof t == "string") return {
2166
- params: [Nt(t)],
2167
- empty: n,
2168
- singleParam: !0
2169
- };
2170
- if (t.or.length === 0) throw Error("Selection test \"or\" must be a nonempty array.");
2171
- return {
2172
- params: Array.from(new Set(t.or.map(Nt))),
2173
- empty: n,
2174
- singleParam: !1
2175
- };
2176
- }
2177
- function Ei(e) {
2178
- return e?.selection?.params ?? [];
2179
- }
2180
- function Di(e) {
2181
- let t = /* @__PURE__ */ new Map();
2182
- for (let n of Object.values(e)) for (let { predicate: e } of n.branches) {
2183
- let n = e.selection;
2184
- if (n) for (let e of n.params) t.set(e, t.get(e) || !n.singleParam);
2185
2412
  }
2186
- return t;
2413
+ throw Error(`Unrecognized selection type : ${JSON.stringify(t)}`);
2187
2414
  }
2188
- function Oi(e, t) {
2189
- if (ji(t)) return `${e}.uniqueId == null`;
2190
- if (Mi(t)) return `${e}.data.size == 0`;
2191
- if (Q(t)) {
2192
- let n = Object.keys(t.intervals);
2193
- return n.length == 0 ? "true" : `!(${n.map((t) => `${e}.intervals.${t}`).join(" || ")})`;
2194
- }
2195
- throw Error(`Unsupported selection type: ${t.type}`);
2196
- }
2197
- function ki(e, t, n, r) {
2198
- if (ji(t)) return `${e}.uniqueId != null && ${e}.uniqueId === datum[${JSON.stringify(j)}]`;
2199
- if (Mi(t)) return `${e}.data.size != 0 && mapHasKey(${e}.data, datum[${JSON.stringify(j)}])`;
2200
- if (Q(t)) {
2201
- let i = Object.keys(t.intervals);
2202
- if (i.length == 0) return "false";
2203
- let a = (e) => `datum[${JSON.stringify(e)}]`, o = i.map((t) => {
2204
- let i = Ca(t), o = n[t], s = n[i] ?? n[t], c = `${e}.intervals.${t}`;
2205
- return `(!${c} || ${r == "endpoints" ? `((${c}[0] <= ${a(o)} && ${a(o)} <= ${c}[1]) || (${c}[0] <= ${a(s)} && ${a(s)} <= ${c}[1]))` : r == "encloses" ? `(${c}[0] <= ${a(o)} && ${a(s)} <= ${c}[1])` : `(${c}[0] <= ${a(s)} && ${a(o)} <= ${c}[1])`})`;
2206
- });
2207
- return `!!(${i.map((t) => `${e}.intervals.${t}`).join(" || ")}) && (${o.join(" && ")})`;
2208
- }
2209
- throw Error(`Unsupported selection type: ${t.type}`);
2415
+ function Xi(e) {
2416
+ if ("param" in e || "test" in e) return St(e);
2417
+ }
2418
+ function Zi(e) {
2419
+ return e?.selection ? Ct(e.selection) : [];
2210
2420
  }
2211
- function Ai(e, t, n = "intersects") {
2212
- let r = `(${e.map(({ param: e, selection: t, fields: r }) => ki(e, t, r, n)).join(" || ")})`;
2213
- return t ? `((${e.map(({ param: e, selection: t }) => Oi(e, t)).join(" && ")}) || ${r})` : r;
2421
+ function Qi(e) {
2422
+ let t = Object.values(e).flatMap((e) => e.branches.flatMap(({ predicate: e }) => e.selection ? [e.selection] : [])), n = /* @__PURE__ */ new Set();
2423
+ return t.filter((e) => {
2424
+ let t = JSON.stringify(e);
2425
+ return !n.has(t) && (n.add(t), !0);
2426
+ });
2214
2427
  }
2215
- function Q(e) {
2428
+ function $i(e) {
2216
2429
  return e.type === "interval";
2217
2430
  }
2218
- function ji(e) {
2431
+ function ea(e) {
2219
2432
  return e.type === "single";
2220
2433
  }
2221
- function Mi(e) {
2434
+ function ta(e) {
2222
2435
  return e.type === "multi";
2223
2436
  }
2224
- function Ni(e) {
2437
+ function na(e) {
2225
2438
  let t = typeof e == "string" ? { type: e } : { ...e };
2226
- return t.on = t.on ? _i(t.on) : Pi(t) ? { type: "click" } : void 0, t.clear = t.clear === !1 ? void 0 : t.clear === !0 || t.clear == null ? { type: "dblclick" } : _i(t.clear), Pi(t) && t.on.type === "click" && (t.toggle = !0), t;
2439
+ return t.on = t.on ? Bi(t.on) : ra(t) ? { type: "click" } : void 0, t.clear = t.clear === !1 ? void 0 : t.clear === !0 || t.clear == null ? { type: "dblclick" } : Bi(t.clear), ra(t) && t.on.type === "click" && t.toggle === void 0 && (t.toggle = !0), t;
2227
2440
  }
2228
- function Pi(e) {
2441
+ function ra(e) {
2229
2442
  return e && e.type == "point";
2230
2443
  }
2231
- function Fi(e) {
2444
+ function ia(e) {
2232
2445
  return e && e.type == "interval";
2233
2446
  }
2234
- function Ii(e) {
2235
- if (ji(e)) return e.uniqueId != null;
2236
- if (Mi(e)) return e.data.size > 0;
2237
- if (Q(e)) return Li(e);
2447
+ function aa(e) {
2448
+ if (ea(e)) return e.uniqueId != null;
2449
+ if (ta(e)) return e.data.size > 0;
2450
+ if ($i(e)) return oa(e);
2238
2451
  throw Error(`Unsupported selection type: ${e.type}`);
2239
2452
  }
2240
- function Li(e) {
2453
+ function oa(e) {
2241
2454
  return Object.values(e.intervals).some((e) => e && e.length === 2);
2242
2455
  }
2243
- function Ri(e, t) {
2456
+ function sa(e, t) {
2244
2457
  return Object.entries(e.intervals).every(([e, n]) => (e == "x" || e == "y") && n && n[0] <= t[e] && n[1] >= t[e]);
2245
2458
  }
2246
2459
  //#endregion
2247
- //#region ../core/src/encoder/accessor.js
2248
- function zi(e, t, n) {
2249
- if (!e) throw Error("Cannot create an accessor without a channel.");
2250
- function r(n) {
2251
- let r = n;
2252
- return r.fields ??= [], r.constant = r.fields.length === 0, r.channelDef = t, r.channel = e, r.sourceKey = Hi(t), r.scaleChannel = ((ra(t) && t.resolutionChannel) ?? (Da(e) && e)) || void 0, r.scaleChannel !== void 0 && (r.domainKeyBase = Ui({
2253
- scaleChannel: r.scaleChannel,
2254
- source: Vi(t)
2255
- }).domainKeyBase), r.equals = (e) => e ? r === e || r.sourceKey !== void 0 && r.sourceKey === e.sourceKey : !1, r.asNumberAccessor = () => r, r;
2256
- }
2257
- function i(e) {
2258
- if (A(e)) {
2259
- let t = r(n.createExpression(e.expr));
2260
- if (t.fields.length > 0) throw Error("Expression in DatumDef/ValueDef cannot access data fields: " + e.expr);
2261
- return t;
2262
- } else {
2263
- let t = e;
2264
- return r(() => t);
2265
- }
2266
- }
2267
- if ($(t)) try {
2268
- return r(Ut(t.field));
2269
- } catch (e) {
2270
- throw Error(`Invalid field definition: ${e.message}`, { cause: e });
2271
- }
2272
- else if (ca(t)) return r(n.createExpression(t.expr));
2273
- else if (na(t)) return i(t.datum);
2274
- else if (ta(t)) return i(t.value);
2275
- else throw Error(`Invalid channel definition: "${e}": ${JSON.stringify(t)}! The channel definition must contain one of the following properties: "field", "datum", "value" or "expr".`);
2276
- }
2277
- function Bi(e) {
2278
- return e.scaleChannel !== void 0;
2279
- }
2280
- function Vi(e) {
2281
- if ($(e)) return {
2282
- kind: "field",
2283
- value: e.field
2284
- };
2285
- if (ca(e)) return {
2286
- kind: "expr",
2287
- value: e.expr
2288
- };
2289
- if (na(e)) return {
2290
- kind: "datum",
2291
- value: e.datum
2292
- };
2293
- if (ta(e)) return {
2294
- kind: "value",
2295
- value: e.value
2296
- };
2297
- throw Error("Cannot derive a domain key from channel definition: " + JSON.stringify(e));
2298
- }
2299
- function Hi(e) {
2300
- let t = Vi(e);
2301
- return t.kind === "datum" || t.kind === "value" ? "constant|" + Ki(t.value) : t.kind + "|" + Gi(t);
2302
- }
2303
- function Ui({ scaleChannel: e, source: t, type: n }) {
2304
- if (!e) throw Error("Cannot build a domain key without a scale channel.");
2305
- let r = e + "|" + t.kind + "|" + Gi(t);
2460
+ //#region ../core/src/ruler/rulerValue.js
2461
+ function ca(e = ["x"], t = {}) {
2462
+ let n = {};
2463
+ for (let r of e) n[r] = t[r] ?? null;
2306
2464
  return {
2307
- domainKeyBase: r,
2308
- domainKey: n ? n + "|" + r : void 0
2465
+ type: "ruler",
2466
+ values: n
2309
2467
  };
2310
2468
  }
2311
- function Wi(e, t) {
2312
- let { domainKey: n, domainKeyBase: r } = Ui({
2313
- scaleChannel: e.scaleChannel,
2314
- source: Vi(e.channelDef),
2315
- type: t
2316
- });
2317
- if (!n) throw Error("Cannot finalize a domain key without a resolved type.");
2318
- return e.domainKeyBase = r, e.domainKey = n, n;
2319
- }
2320
- function Gi(e) {
2321
- switch (e.kind) {
2322
- case "field":
2323
- case "expr": return e.value;
2324
- case "datum":
2325
- case "value": return Ki(e.value);
2326
- default: throw Error("Unknown domain key source.");
2327
- }
2328
- }
2329
- function Ki(e) {
2330
- return A(e) ? "expr:" + e.expr : e === void 0 ? "undefined" : JSON.stringify(e);
2331
- }
2332
2469
  //#endregion
2333
- //#region ../core/src/encoder/encoder.js
2334
- function qi(e, t, n, r = "intersects") {
2335
- let i, a = Rt(!1), o = () => {
2336
- if (i) return i;
2337
- if (e.singleParam && !n.findValue(e.params[0])) return a;
2338
- let o = e.params.map((r) => {
2339
- let i = n.findValue(r);
2340
- if (!i) throw Error(`Selection parameter "${r}" was not found.`);
2341
- let a = {};
2342
- if (Q(i)) for (let n of Object.keys(i.intervals)) {
2343
- let i = e.singleParam ? [n] : [n, Ca(n)];
2344
- for (let e of i) {
2345
- let n = t[e];
2346
- if ($(n)) a[e] = n.field;
2347
- else if (n && "condition" in n) {
2348
- let t = n.condition, r = (Array.isArray(t) ? t : [t]).find($);
2349
- $(r) && (a[e] = r.field);
2350
- }
2351
- }
2352
- if (!a[n]) throw Error(`Selection "${r}" has an interval for "${n}" channel, but could not find a fieldDef: ${JSON.stringify(t[n])}`);
2353
- }
2354
- return {
2355
- param: r,
2356
- selection: i,
2357
- fields: a
2358
- };
2359
- }), s = e.singleParam ? wi({
2360
- type: "filter",
2361
- param: e.params[0],
2362
- fields: o[0].fields,
2363
- empty: e.empty
2364
- }, o[0].selection) : Ai(o, e.empty, r);
2365
- return i = n.createExpression(s), i;
2366
- };
2367
- return Object.assign((e) => o()(e), { selection: e });
2470
+ //#region ../core/src/paramRuntime/paramUtils.js
2471
+ function W(e) {
2472
+ return typeof e == "object" && !!e && "expr" in e && b(e.expr);
2368
2473
  }
2369
- function Ji(e, t, n, r, i = "intersects") {
2370
- let a = la(t) || ua(t) ? Array.isArray(t.condition) ? t.condition : [t.condition] : [], o = [...a, t], s = o.map((t, s) => {
2371
- let c = a[s], l = zi(e, t, r), u = c ? Ti(c) : void 0;
2372
- return {
2373
- accessor: l,
2374
- predicate: u ? qi(u, n, r, i) : Rt(s === o.length - 1)
2375
- };
2376
- });
2377
- if (s.filter((e) => !e.accessor.constant).length > 1) throw Error("Only one accessor can be non-constant. Channel: " + e);
2378
- return s;
2474
+ function la(e) {
2475
+ if (W(e)) throw Error("ExprRef " + JSON.stringify(e) + " not allowed here. Expected a scalar value.");
2476
+ return e;
2379
2477
  }
2380
- function Yi(e, t) {
2381
- let n = {}, r = (t) => e.getScaleResolution(t)?.getScale(), i = (t, n) => {
2382
- let r = e.getScaleResolution(t);
2383
- e.paramRuntime.operation("encoder scale", [r.getMappingRef()], () => r.getScale(), n);
2384
- };
2385
- for (let [a, o] of Object.entries(t)) {
2386
- if (!o) continue;
2387
- let s = a;
2388
- Xi(s) || (n[s] = $i(Ji(s, o, t, e.paramRuntime, e.mark.defaultHitTestMode), r, i));
2389
- }
2390
- return n;
2478
+ function ua(e) {
2479
+ return ("expr" in e || "bind" in e) && !("select" in e) && !("ruler" in e);
2391
2480
  }
2392
- function Xi(e) {
2393
- return e === "key" || e === "search" || e === "tooltip" || e === "order";
2481
+ function da(e) {
2482
+ return !("expr" in e || "bind" in e) && "select" in e;
2394
2483
  }
2395
- function Zi(e) {
2396
- return e.branches.map((e) => e.accessor);
2484
+ function fa(e) {
2485
+ return !("expr" in e || "bind" in e || "select" in e) && "ruler" in e;
2397
2486
  }
2398
- function Qi(e) {
2399
- return e.branches.find((e) => !e.accessor.constant)?.accessor;
2487
+ function pa(e) {
2488
+ if (!/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)) throw Error("Invalid parameter name: " + e + ". Must be a valid JavaScript identifier.");
2489
+ return e;
2400
2490
  }
2401
- function $i(e, t, n) {
2402
- if (e.length === 1) {
2403
- let r = ea(e[0].accessor, t, n);
2404
- return Object.assign(r, { branches: e });
2491
+ function ma(e, t, n) {
2492
+ if ("select" in e) {
2493
+ let t = na(e.select);
2494
+ if (ra(t)) return t.toggle ? Wi() : Ui(null);
2495
+ if (ia(t)) {
2496
+ if (!t.encodings) throw Error("Interval selection \"" + e.name + "\" must have encodings defined!");
2497
+ return qi(t.encodings);
2498
+ }
2499
+ throw Error("Unknown selection config for parameter \"" + e.name + "\".");
2405
2500
  }
2406
- let r = e.map((e) => e.predicate), i = e.map((e) => ea(e.accessor, t, n)), a = Object.assign((e) => {
2407
- for (let t = 0; t < i.length; t++) if (r[t](e)) return i[t](e);
2408
- }, {
2409
- constant: !1,
2410
- branches: e,
2411
- channelDef: e.at(-1).accessor.channelDef
2412
- });
2413
- return Object.defineProperty(a, "scale", {
2414
- enumerable: !0,
2415
- get: () => i.find((e) => e.scale)?.scale
2416
- });
2501
+ if ("ruler" in e) return ca(e.ruler.encodings, e.value);
2502
+ if ("expr" in e) {
2503
+ let r = n ?? t?.createExpression(e.expr);
2504
+ if (!r) throw Error("Cannot evaluate expression for parameter \"" + e.name + "\".");
2505
+ return r(null);
2506
+ }
2507
+ return "value" in e ? e.value : null;
2417
2508
  }
2418
- function ea(e, t, n) {
2419
- let { channel: r, scaleChannel: i, channelDef: a } = e, o = e.scaleChannel ? t(i) : void 0;
2420
- if (i && !o) throw Error(`Missing scale! "${r}": ${JSON.stringify(a)}`);
2421
- let s = Object.assign(o ? (t) => o(e(t)) : (t) => e(t), {
2422
- scale: o,
2423
- constant: e.constant,
2424
- branches: [{
2425
- accessor: e,
2426
- predicate: Rt(!0)
2427
- }],
2428
- channelDef: a
2509
+ function ha(e, t, n, r, i = []) {
2510
+ let a = { ...t }, o = [];
2511
+ for (let [r, i] of Object.entries(t)) if (W(i)) {
2512
+ let t = e.createExpression(i.expr), s = o.push({
2513
+ key: r,
2514
+ fn: t
2515
+ }) - 1;
2516
+ Object.defineProperty(a, r, {
2517
+ enumerable: !0,
2518
+ get: n ? () => c.get()[s] : () => t(null)
2519
+ });
2520
+ } else a[r] = i;
2521
+ if (!n) return a;
2522
+ for (let { key: t, expr: n } of i) o.push({
2523
+ key: t,
2524
+ fn: e.createExpression(n.expr)
2429
2525
  });
2430
- return o && n?.(i, (e) => {
2431
- o = e, s.scale = e;
2432
- }), s;
2526
+ if (!o.length) return a;
2527
+ let s = Array.from(new Set(o.flatMap(({ fn: e }) => e.dependencies))), c = e.computed("expression properties", s, () => o.map(({ fn: e }) => e(null)), { equals: ga }), l = c.get(), u = e.effect([c], () => {
2528
+ let e = c.get(), t = new Set(o.filter((t, n) => l[n] !== e[n]).map(({ key: e }) => e));
2529
+ l = e, n(t);
2530
+ });
2531
+ return r?.(c.dispose), r?.(u), a;
2433
2532
  }
2434
- function ta(e) {
2435
- return e && "value" in e;
2533
+ function ga(e, t) {
2534
+ return e.every((e, n) => e === t[n]);
2436
2535
  }
2437
- function $(e) {
2438
- return e && "field" in e;
2536
+ function _a(e, t, n, r) {
2537
+ if (!W(t)) return t;
2538
+ let i = () => {
2539
+ throw Error(n);
2540
+ }, a = e.watchExpression ? e.watchExpression(t.expr, i, {
2541
+ scopeOwned: !1,
2542
+ registerDisposer: r
2543
+ }) : e.createExpression(t.expr);
2544
+ if (!e.watchExpression) {
2545
+ let e = a.subscribe(i);
2546
+ r?.(e);
2547
+ }
2548
+ return a();
2439
2549
  }
2440
- function na(e) {
2441
- return e && "datum" in e;
2550
+ function va(e) {
2551
+ return Object.assign(() => e, {
2552
+ dependencies: [],
2553
+ subscribe: () => () => void 0,
2554
+ invalidate: () => void 0,
2555
+ identifier: () => "constant",
2556
+ fields: [],
2557
+ globals: [],
2558
+ code: JSON.stringify(e)
2559
+ });
2442
2560
  }
2443
- function ra(e) {
2444
- return $(e) || na(e) || ca(e) || sa(e);
2561
+ //#endregion
2562
+ //#region ../../node_modules/d3-color/src/define.js
2563
+ function ya(e, t, n) {
2564
+ e.prototype = t.prototype = n, n.constructor = e;
2445
2565
  }
2446
- function ia(e) {
2447
- if (ua(e)) {
2448
- let t = e.condition;
2449
- return (Array.isArray(t) ? t : [t]).find((e) => ra(e));
2450
- } else if (ra(e)) return e;
2566
+ function ba(e, t) {
2567
+ var n = Object.create(e.prototype);
2568
+ for (var r in t) n[r] = t[r];
2569
+ return n;
2451
2570
  }
2452
- function aa(e) {
2453
- let t = e && ia(e);
2454
- return t != null && t.type != "quantitative" && t.scale !== null;
2571
+ //#endregion
2572
+ //#region ../../node_modules/d3-color/src/color.js
2573
+ function G() {}
2574
+ var K = .7, xa = 1 / K, q = "\\s*([+-]?\\d+)\\s*", Sa = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", J = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Ca = /^#([0-9a-f]{3,8})$/, wa = RegExp(`^rgb\\(${q},${q},${q}\\)$`), Ta = RegExp(`^rgb\\(${J},${J},${J}\\)$`), Ea = RegExp(`^rgba\\(${q},${q},${q},${Sa}\\)$`), Da = RegExp(`^rgba\\(${J},${J},${J},${Sa}\\)$`), Oa = RegExp(`^hsl\\(${Sa},${J},${J}\\)$`), ka = RegExp(`^hsla\\(${Sa},${J},${J},${Sa}\\)$`), Aa = {
2575
+ aliceblue: 15792383,
2576
+ antiquewhite: 16444375,
2577
+ aqua: 65535,
2578
+ aquamarine: 8388564,
2579
+ azure: 15794175,
2580
+ beige: 16119260,
2581
+ bisque: 16770244,
2582
+ black: 0,
2583
+ blanchedalmond: 16772045,
2584
+ blue: 255,
2585
+ blueviolet: 9055202,
2586
+ brown: 10824234,
2587
+ burlywood: 14596231,
2588
+ cadetblue: 6266528,
2589
+ chartreuse: 8388352,
2590
+ chocolate: 13789470,
2591
+ coral: 16744272,
2592
+ cornflowerblue: 6591981,
2593
+ cornsilk: 16775388,
2594
+ crimson: 14423100,
2595
+ cyan: 65535,
2596
+ darkblue: 139,
2597
+ darkcyan: 35723,
2598
+ darkgoldenrod: 12092939,
2599
+ darkgray: 11119017,
2600
+ darkgreen: 25600,
2601
+ darkgrey: 11119017,
2602
+ darkkhaki: 12433259,
2603
+ darkmagenta: 9109643,
2604
+ darkolivegreen: 5597999,
2605
+ darkorange: 16747520,
2606
+ darkorchid: 10040012,
2607
+ darkred: 9109504,
2608
+ darksalmon: 15308410,
2609
+ darkseagreen: 9419919,
2610
+ darkslateblue: 4734347,
2611
+ darkslategray: 3100495,
2612
+ darkslategrey: 3100495,
2613
+ darkturquoise: 52945,
2614
+ darkviolet: 9699539,
2615
+ deeppink: 16716947,
2616
+ deepskyblue: 49151,
2617
+ dimgray: 6908265,
2618
+ dimgrey: 6908265,
2619
+ dodgerblue: 2003199,
2620
+ firebrick: 11674146,
2621
+ floralwhite: 16775920,
2622
+ forestgreen: 2263842,
2623
+ fuchsia: 16711935,
2624
+ gainsboro: 14474460,
2625
+ ghostwhite: 16316671,
2626
+ gold: 16766720,
2627
+ goldenrod: 14329120,
2628
+ gray: 8421504,
2629
+ green: 32768,
2630
+ greenyellow: 11403055,
2631
+ grey: 8421504,
2632
+ honeydew: 15794160,
2633
+ hotpink: 16738740,
2634
+ indianred: 13458524,
2635
+ indigo: 4915330,
2636
+ ivory: 16777200,
2637
+ khaki: 15787660,
2638
+ lavender: 15132410,
2639
+ lavenderblush: 16773365,
2640
+ lawngreen: 8190976,
2641
+ lemonchiffon: 16775885,
2642
+ lightblue: 11393254,
2643
+ lightcoral: 15761536,
2644
+ lightcyan: 14745599,
2645
+ lightgoldenrodyellow: 16448210,
2646
+ lightgray: 13882323,
2647
+ lightgreen: 9498256,
2648
+ lightgrey: 13882323,
2649
+ lightpink: 16758465,
2650
+ lightsalmon: 16752762,
2651
+ lightseagreen: 2142890,
2652
+ lightskyblue: 8900346,
2653
+ lightslategray: 7833753,
2654
+ lightslategrey: 7833753,
2655
+ lightsteelblue: 11584734,
2656
+ lightyellow: 16777184,
2657
+ lime: 65280,
2658
+ limegreen: 3329330,
2659
+ linen: 16445670,
2660
+ magenta: 16711935,
2661
+ maroon: 8388608,
2662
+ mediumaquamarine: 6737322,
2663
+ mediumblue: 205,
2664
+ mediumorchid: 12211667,
2665
+ mediumpurple: 9662683,
2666
+ mediumseagreen: 3978097,
2667
+ mediumslateblue: 8087790,
2668
+ mediumspringgreen: 64154,
2669
+ mediumturquoise: 4772300,
2670
+ mediumvioletred: 13047173,
2671
+ midnightblue: 1644912,
2672
+ mintcream: 16121850,
2673
+ mistyrose: 16770273,
2674
+ moccasin: 16770229,
2675
+ navajowhite: 16768685,
2676
+ navy: 128,
2677
+ oldlace: 16643558,
2678
+ olive: 8421376,
2679
+ olivedrab: 7048739,
2680
+ orange: 16753920,
2681
+ orangered: 16729344,
2682
+ orchid: 14315734,
2683
+ palegoldenrod: 15657130,
2684
+ palegreen: 10025880,
2685
+ paleturquoise: 11529966,
2686
+ palevioletred: 14381203,
2687
+ papayawhip: 16773077,
2688
+ peachpuff: 16767673,
2689
+ peru: 13468991,
2690
+ pink: 16761035,
2691
+ plum: 14524637,
2692
+ powderblue: 11591910,
2693
+ purple: 8388736,
2694
+ rebeccapurple: 6697881,
2695
+ red: 16711680,
2696
+ rosybrown: 12357519,
2697
+ royalblue: 4286945,
2698
+ saddlebrown: 9127187,
2699
+ salmon: 16416882,
2700
+ sandybrown: 16032864,
2701
+ seagreen: 3050327,
2702
+ seashell: 16774638,
2703
+ sienna: 10506797,
2704
+ silver: 12632256,
2705
+ skyblue: 8900331,
2706
+ slateblue: 6970061,
2707
+ slategray: 7372944,
2708
+ slategrey: 7372944,
2709
+ snow: 16775930,
2710
+ springgreen: 65407,
2711
+ steelblue: 4620980,
2712
+ tan: 13808780,
2713
+ teal: 32896,
2714
+ thistle: 14204888,
2715
+ tomato: 16737095,
2716
+ turquoise: 4251856,
2717
+ violet: 15631086,
2718
+ wheat: 16113331,
2719
+ white: 16777215,
2720
+ whitesmoke: 16119285,
2721
+ yellow: 16776960,
2722
+ yellowgreen: 10145074
2723
+ };
2724
+ ya(G, Fa, {
2725
+ copy(e) {
2726
+ return Object.assign(new this.constructor(), this, e);
2727
+ },
2728
+ displayable() {
2729
+ return this.rgb().displayable();
2730
+ },
2731
+ hex: ja,
2732
+ formatHex: ja,
2733
+ formatHex8: Ma,
2734
+ formatHsl: Na,
2735
+ formatRgb: Pa,
2736
+ toString: Pa
2737
+ });
2738
+ function ja() {
2739
+ return this.rgb().formatHex();
2455
2740
  }
2456
- function oa(e, t) {
2457
- let n = e.mark.encoding[t];
2458
- if (Array.isArray(n)) throw Error("Not a channel def with scale!");
2459
- {
2460
- let e = ia(n);
2461
- if (e) return e;
2462
- }
2463
- throw Error("Not a channel def with scale!");
2741
+ function Ma() {
2742
+ return this.rgb().formatHex8();
2464
2743
  }
2465
- function sa(e) {
2466
- return e && "chrom" in e;
2744
+ function Na() {
2745
+ return Ga(this).formatHsl();
2467
2746
  }
2468
- function ca(e) {
2469
- return e && "expr" in e;
2747
+ function Pa() {
2748
+ return this.rgb().formatRgb();
2470
2749
  }
2471
- function la(e) {
2472
- return ($(e) || na(e)) && "condition" in e;
2750
+ function Fa(e) {
2751
+ var t, n;
2752
+ return e = (e + "").trim().toLowerCase(), (t = Ca.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? Ia(t) : n === 3 ? new Y(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? La(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? La(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = wa.exec(e)) ? new Y(t[1], t[2], t[3], 1) : (t = Ta.exec(e)) ? new Y(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = Ea.exec(e)) ? La(t[1], t[2], t[3], t[4]) : (t = Da.exec(e)) ? La(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = Oa.exec(e)) ? Wa(t[1], t[2] / 100, t[3] / 100, 1) : (t = ka.exec(e)) ? Wa(t[1], t[2] / 100, t[3] / 100, t[4]) : Aa.hasOwnProperty(e) ? Ia(Aa[e]) : e === "transparent" ? new Y(NaN, NaN, NaN, 0) : null;
2473
2753
  }
2474
- function ua(e) {
2475
- return ta(e) && "condition" in e;
2754
+ function Ia(e) {
2755
+ return new Y(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
2476
2756
  }
2477
- var da = ["x", "y"], fa = ["x2", "y2"], pa = ["xOffset", "yOffset"], ma = [...da, ...fa];
2478
- function ha(e) {
2479
- return da.includes(e);
2757
+ function La(e, t, n, r) {
2758
+ return r <= 0 && (e = t = n = NaN), new Y(e, t, n, r);
2480
2759
  }
2481
- function ga(e) {
2482
- return ma.includes(e);
2760
+ function Ra(e) {
2761
+ return e instanceof G || (e = Fa(e)), e ? (e = e.rgb(), new Y(e.r, e.g, e.b, e.opacity)) : new Y();
2483
2762
  }
2484
- function _a(e) {
2485
- return pa.includes(e);
2763
+ function za(e, t, n, r) {
2764
+ return arguments.length === 1 ? Ra(e) : new Y(e, t, n, r ?? 1);
2486
2765
  }
2487
- function va(e) {
2488
- return wa(e) == "x" ? "xOffset" : "yOffset";
2766
+ function Y(e, t, n, r) {
2767
+ this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
2489
2768
  }
2490
- function ya(e, t, n) {
2491
- return t ?? (n ? 0 : e);
2769
+ ya(Y, za, ba(G, {
2770
+ brighter(e) {
2771
+ return e = e == null ? xa : xa ** +e, new Y(this.r * e, this.g * e, this.b * e, this.opacity);
2772
+ },
2773
+ darker(e) {
2774
+ return e = e == null ? K : K ** +e, new Y(this.r * e, this.g * e, this.b * e, this.opacity);
2775
+ },
2776
+ rgb() {
2777
+ return this;
2778
+ },
2779
+ clamp() {
2780
+ return new Y(X(this.r), X(this.g), X(this.b), Ua(this.opacity));
2781
+ },
2782
+ displayable() {
2783
+ return -.5 <= this.r && this.r < 255.5 && -.5 <= this.g && this.g < 255.5 && -.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
2784
+ },
2785
+ hex: Ba,
2786
+ formatHex: Ba,
2787
+ formatHex8: Va,
2788
+ formatRgb: Ha,
2789
+ toString: Ha
2790
+ }));
2791
+ function Ba() {
2792
+ return `#${Z(this.r)}${Z(this.g)}${Z(this.b)}`;
2492
2793
  }
2493
- var ba = {
2494
- x: "x2",
2495
- y: "y2"
2496
- }, xa = Object.fromEntries(Object.entries(ba).map((e) => [e[1], e[0]]));
2497
- function Sa(e) {
2498
- return e in xa;
2794
+ function Va() {
2795
+ return `#${Z(this.r)}${Z(this.g)}${Z(this.b)}${Z((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
2499
2796
  }
2500
- function Ca(e) {
2501
- let t = ba[e];
2502
- if (t) return t;
2503
- throw Error(`${e} has no secondary channel!`);
2797
+ function Ha() {
2798
+ let e = Ua(this.opacity);
2799
+ return `${e === 1 ? "rgb(" : "rgba("}${X(this.r)}, ${X(this.g)}, ${X(this.b)}${e === 1 ? ")" : `, ${e})`}`;
2504
2800
  }
2505
- function wa(e) {
2506
- return xa[e] ?? e;
2801
+ function Ua(e) {
2802
+ return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
2507
2803
  }
2508
- function Ta(e) {
2509
- return [
2510
- "color",
2511
- "fill",
2512
- "stroke"
2513
- ].includes(wa(e));
2804
+ function X(e) {
2805
+ return Math.max(0, Math.min(255, Math.round(e) || 0));
2514
2806
  }
2515
- function Ea(e) {
2516
- return ["shape", "direction"].includes(e);
2807
+ function Z(e) {
2808
+ return e = X(e), (e < 16 ? "0" : "") + e.toString(16);
2517
2809
  }
2518
- function Da(e) {
2519
- return [
2520
- "x",
2521
- "y",
2522
- "x2",
2523
- "y2",
2524
- "xOffset",
2525
- "yOffset",
2526
- "color",
2527
- "fill",
2528
- "stroke",
2529
- "opacity",
2530
- "fillOpacity",
2531
- "strokeOpacity",
2532
- "strokeWidth",
2533
- "size",
2534
- "shape",
2535
- "direction",
2536
- "angle",
2537
- "dx",
2538
- "dy",
2539
- "sample"
2540
- ].includes(e);
2810
+ function Wa(e, t, n, r) {
2811
+ return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new Q(e, t, n, r);
2541
2812
  }
2542
- function Oa(e) {
2543
- switch (e) {
2544
- case "shape": return [
2545
- "circle",
2546
- "square",
2547
- "cross",
2548
- "diamond",
2549
- "triangle-up",
2550
- "triangle-right",
2551
- "triangle-down",
2552
- "triangle-left",
2553
- "tick-up",
2554
- "tick-right",
2555
- "tick-down",
2556
- "tick-left",
2557
- "x",
2558
- "+"
2559
- ];
2560
- case "direction": return ["forward", "reverse"];
2561
- default:
2562
- }
2813
+ function Ga(e) {
2814
+ if (e instanceof Q) return new Q(e.h, e.s, e.l, e.opacity);
2815
+ if (e instanceof G || (e = Fa(e)), !e) return new Q();
2816
+ if (e instanceof Q) return e;
2817
+ e = e.rgb();
2818
+ var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), a = Math.max(t, n, r), o = NaN, s = a - i, c = (a + i) / 2;
2819
+ return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new Q(o, s, c, e.opacity);
2563
2820
  }
2564
- function ka(e) {
2565
- if (!Ea(e)) throw Error("Not a discrete channel: " + e);
2566
- let t = new Map(Oa(e).map((e, t) => [e, t]));
2567
- return (n) => {
2568
- let r = t.get(n);
2569
- if (r !== void 0) return r;
2570
- throw Error(`Invalid value for "${e}" channel: ${n}`);
2571
- };
2821
+ function Ka(e, t, n, r) {
2822
+ return arguments.length === 1 ? Ga(e) : new Q(e, t, n, r ?? 1);
2572
2823
  }
2573
- //#endregion
2574
- //#region ../core/src/utils/arrayUtils.js
2575
- function Aa(e, t) {
2576
- return e.length == t.length && e.every((n, r) => e[r] === t[r]);
2824
+ function Q(e, t, n, r) {
2825
+ this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
2577
2826
  }
2578
- function ja(e) {
2579
- return Array.isArray(e) ? e : e === void 0 ? [] : [e];
2827
+ ya(Q, Ka, ba(G, {
2828
+ brighter(e) {
2829
+ return e = e == null ? xa : xa ** +e, new Q(this.h, this.s, this.l * e, this.opacity);
2830
+ },
2831
+ darker(e) {
2832
+ return e = e == null ? K : K ** +e, new Q(this.h, this.s, this.l * e, this.opacity);
2833
+ },
2834
+ rgb() {
2835
+ var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < .5 ? n : 1 - n) * t, i = 2 * n - r;
2836
+ return new Y(Ya(e >= 240 ? e - 240 : e + 120, i, r), Ya(e, i, r), Ya(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
2837
+ },
2838
+ clamp() {
2839
+ return new Q(qa(this.h), Ja(this.s), Ja(this.l), Ua(this.opacity));
2840
+ },
2841
+ displayable() {
2842
+ return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
2843
+ },
2844
+ formatHsl() {
2845
+ let e = Ua(this.opacity);
2846
+ return `${e === 1 ? "hsl(" : "hsla("}${qa(this.h)}, ${Ja(this.s) * 100}%, ${Ja(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
2847
+ }
2848
+ }));
2849
+ function qa(e) {
2850
+ return e = (e || 0) % 360, e < 0 ? e + 360 : e;
2580
2851
  }
2581
- function Ma(e) {
2582
- return e[e.length - 1];
2852
+ function Ja(e) {
2853
+ return Math.max(0, Math.min(1, e || 0));
2583
2854
  }
2584
- function Na(e, t, n) {
2585
- if (t < 0 || t >= e.length) throw Error("Source index out of range.");
2586
- if (n < 0 || n > e.length - 1) throw Error("Destination index out of range.");
2587
- let [r] = e.splice(t, 1);
2588
- e.splice(n, 0, r);
2855
+ function Ya(e, t, n) {
2856
+ return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
2589
2857
  }
2590
2858
  //#endregion
2591
2859
  //#region ../core/src/view/renderingContext/clipOptions.js
2592
- function Pa(e) {
2860
+ function Xa(e) {
2593
2861
  if (e.clip) return e.clip;
2594
2862
  if (e.clipRect) return {
2595
2863
  rect: e.clipRect,
@@ -2597,36 +2865,36 @@ function Pa(e) {
2597
2865
  clipY: !0
2598
2866
  };
2599
2867
  }
2600
- function Fa(e, t) {
2868
+ function Za(e, t) {
2601
2869
  return e === t ? !0 : !e || !t ? !1 : e.clipX === t.clipX && e.clipY === t.clipY && e.rect.equals(t.rect);
2602
2870
  }
2603
- function Ia(e, t, n) {
2871
+ function $(e, t, n) {
2604
2872
  return t || n ? {
2605
2873
  rect: e,
2606
2874
  clipX: t,
2607
2875
  clipY: n
2608
2876
  } : void 0;
2609
2877
  }
2610
- function La(e, t) {
2878
+ function Qa(e, t) {
2611
2879
  return t ? t.clipX && t.clipY ? e.intersect(t.rect) : t.clipX ? e.intersectX(t.rect) : t.clipY ? e.intersectY(t.rect) : e : e;
2612
2880
  }
2613
- function Ra(e, t) {
2881
+ function $a(e, t) {
2614
2882
  if (!e) return t;
2615
2883
  if (!t) return e;
2616
2884
  let n = e.clipX || t.clipX, r = e.clipY || t.clipY, i = e.clipX && t.clipX ? e.rect.intersectX(t.rect) : t.clipX ? t.rect : e.rect, a = e.clipY && t.clipY ? e.rect.intersectY(t.rect) : t.clipY ? t.rect : e.rect;
2617
- return Ia(e.rect.modify({
2885
+ return $(e.rect.modify({
2618
2886
  x: () => i.x,
2619
2887
  y: () => a.y,
2620
2888
  width: () => i.width,
2621
2889
  height: () => a.height
2622
2890
  }), n, r);
2623
2891
  }
2624
- function za(e, t) {
2625
- if (e === !0) return Ia(t, !0, !0);
2626
- if (e === "x") return Ia(t, !0, !1);
2627
- if (e === "y") return Ia(t, !1, !0);
2892
+ function eo(e, t) {
2893
+ if (e === !0) return $(t, !0, !0);
2894
+ if (e === "x") return $(t, !0, !1);
2895
+ if (e === "y") return $(t, !1, !0);
2628
2896
  }
2629
- function Ba(e) {
2897
+ function to(e) {
2630
2898
  let t = e.mark;
2631
2899
  if (t) {
2632
2900
  let e = t.properties.clip;
@@ -2648,8 +2916,8 @@ function Ba(e) {
2648
2916
  clipY: n && i
2649
2917
  };
2650
2918
  }
2651
- function Va(e, t, n) {
2652
- if (t !== "never") return Ra(e, za(t, n));
2919
+ function no(e, t, n) {
2920
+ if (t !== "never") return $a(e, eo(t, n));
2653
2921
  }
2654
2922
  //#endregion
2655
- export { ji as $, we as $t, aa as A, jt as At, Bi as B, Et as Bt, Da as C, b as Cn, Ht as Ct, Ea as D, Pt as Dt, na as E, Ft as Et, ta as F, kt as Ft, bi as G, S as Gt, Di as H, bt as Ht, da as I, Ot as It, Q as J, Be as Jt, Ei as K, E as Kt, ya as L, Ct as Lt, ga as M, Rt as Mt, ha as N, Lt as Nt, ca as O, A as Ot, Sa as P, Nt as Pt, Ii as Q, Ue as Qt, zi as R, Tt as Rt, ra as S, y as Sn, Ut as St, Ta as T, zt as Tt, Si as U, st as Ut, Ni as V, yt as Vt, xi as W, rt as Wt, Mi as X, Ze as Xt, Fi as Y, C as Yt, Pi as Z, We as Zt, Zi as _, f as _n, $t as _t, Ba as a, de as an, vi as at, wa as b, Se as bn, Yt as bt, ja as c, ge as cn, mi as ct, Aa as d, d as dn, on as dt, Te as en, wi as et, Yi as f, x as fn, an as ft, ka as g, ie as gn, en as gt, oa as h, re as hn, tn as ht, Ia as i, ce as in, _i as it, _a as j, At as jt, $ as k, Mt as kt, Na as l, le as ln, ni as lt, ia as m, ne as mn, nn as mt, Fa as n, xe as nn, Ri as nt, Pa as o, o as on, yi as ot, qi as p, ye as pn, rn as pt, Li as q, Ee as qt, Ra as r, t as rn, Ci as rt, Va as s, u as sn, oi as st, La as t, Ce as tn, Ti as tt, Ma as u, _e as un, ti as ut, Qi as v, be as vn, Qt as vt, sa as w, oe as wn, j as wt, Ca as x, v as xn, N as xt, va as y, s as yn, Xt as yt, Wi as z, Dt as zt };
2923
+ export { Ti as $, Fe as $t, Qi as A, At, ra as B, ut as Bt, ua as C, oe as Cn, an as Ct, la as D, ln as Dt, pa as E, en as Et, Zi as F, Tt as Ft, Ki as G, ct as Gt, ea as H, mt as Ht, oa as I, yt as It, Bi as J, nt as Jt, sa as K, st as Kt, $i as L, vt as Lt, Wi as M, xt as Mt, Ui as N, Ct as Nt, ca as O, kt as Ot, Gi as P, St as Pt, Li as Q, Le as Qt, ia as R, x as Rt, da as S, v as Sn, on as St, _a as T, se as Tn, Gt as Tt, Yi as U, pt as Ut, aa as V, ft as Vt, Xi as W, ot as Wt, Hi as X, We as Xt, Vi as Y, rt as Yt, ki as Z, Be as Zt, ba as _, ie as _n, gn as _t, to as a, le as an, Yt as at, W as b, s as bn, Jt as bt, G as c, u as cn, Ht as ct, Fa as d, ye as dn, pn as dt, Ie as en, wi as et, K as f, d as fn, Kt as ft, ya as g, re as gn, C as gt, Ra as h, ne as hn, hn as ht, $ as i, t as in, qt as it, qi as j, wt as jt, na as k, Pt as kt, Y as l, ve as ln, cn as lt, za as m, xe as mn, Xt as mt, Za as n, Te as nn, zt as nt, Xa as o, fe as on, yn as ot, Ka as p, b as pn, _n as pt, Ji as q, at as qt, $a as r, Ce as rn, Lt as rt, no as s, o as sn, Vt as st, Qa as t, Pe as tn, Ci as tt, xa as u, ue as un, mn as ut, ha as v, f as vn, Zt as vt, va as w, y as wn, fn as wt, fa as x, we as xn, sn as xt, ma as y, Se as yn, S as yt, ta as z, ht as zt };