@genome-spy/app 0.87.0 → 0.88.1

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 (35) hide show
  1. package/dist/{agentApi-BZ1JCo1N.js → agentApi-BIpg3JKh.js} +5365 -5080
  2. package/dist/agentApi.es.js +3160 -2909
  3. package/dist/agentShared.es.js +3 -3
  4. package/dist/{canvas2d-Cafq5v-N.js → canvas2d-BVQ7-2eJ.js} +68 -68
  5. package/dist/{canvas2d-B_PnIof-.js → canvas2d-D7SZK3xv.js} +39 -39
  6. package/dist/{clipOptions-H68pJyEZ.js → clipOptions-BWHr3aTa.js} +822 -768
  7. package/dist/{clipOptions-D6eh9T-_.js → clipOptions-DTMcB_9z.js} +547 -493
  8. package/dist/{debug-BGzgZmyk.js → debug-CVpoEOWx.js} +2 -2
  9. package/dist/{debug-UYKZLNh4.js → debug-DYAMZZKl.js} +2 -2
  10. package/dist/index.es.js +3390 -3410
  11. package/dist/index.js +395 -374
  12. package/dist/{indexer-Di57GyxX.js → indexer-CXjZDo2Q.js} +1 -1
  13. package/dist/{indexer-o6Hpg4nN.js → indexer-DAH_ruVn.js} +1 -1
  14. package/dist/{nativeText-DAjvkrzc.js → order-C5CzA37O.js} +271 -287
  15. package/dist/{nativeText-D9SoxpaD.js → order-DvY7KNcu.js} +271 -287
  16. package/dist/{rasterExport-DzldLv6E.js → rasterExport-BgZ98e6U.js} +1 -1
  17. package/dist/{rasterExport-IAbJwi8F.js → rasterExport-DEr8fOLm.js} +1 -1
  18. package/dist/{renderCanvas2D-yJ1IrDcX.js → renderCanvas2D-DtcJjqpB.js} +57 -50
  19. package/dist/{renderCanvas2D-BJ93Ptqj.js → renderCanvas2D-DxturTEW.js} +62 -55
  20. package/dist/schema.json +756 -96
  21. package/dist/{svg-DJuqHIyc.js → svg-CyrLfa9e.js} +364 -357
  22. package/dist/{svg-BRpl2Xub.js → svg-SDJMzL--.js} +338 -331
  23. package/dist/{svgRasterizer-PAoqLn1j.js → svgRasterizer-f7DJ3UO0.js} +1 -1
  24. package/dist/{svgRasterizer-CGZQ5njV.js → svgRasterizer-mWK7HTkx.js} +1 -1
  25. package/dist/{vega-scale-BGC53c22.js → vega-scale-CypF85iS.js} +801 -801
  26. package/dist/{vega-scale-DdW2NzQ3.js → vega-scale-DLKCwWRs.js} +65 -65
  27. package/dist/{viewIdentityRegistry-Dc2hXYsO.js → viewIdentityRegistry-DIDo44XQ.js} +1 -1
  28. package/dist/{viewIdentityRegistry-D4p067HU.js → viewIdentityRegistry-Dl-vMN9I.js} +1 -1
  29. package/dist/{viewSelectors-DNXnGwEW.js → viewSelectors-CymbZyE6.js} +375 -340
  30. package/dist/{viewSelectors-DYYlOt91.js → viewSelectors-DNiDip5e.js} +370 -335
  31. package/dist/{viewUtils-EdhZTPrJ.js → viewUtils-BrJLIj2o.js} +1750 -1716
  32. package/dist/{webgl-C53DwzVT.js → webgl-CTJt7jQd.js} +1019 -983
  33. package/dist/{webgl-CdgNFlJk.js → webgl-tZfZ8y3q.js} +1200 -1164
  34. package/package.json +5 -5
  35. package/src/embedTypes.d.ts +1 -1
@@ -82,36 +82,36 @@ function h(e) {
82
82
  }
83
83
  //#endregion
84
84
  //#region ../../node_modules/vega-util/build/toSet.js
85
- function g(e) {
85
+ function ee(e) {
86
86
  let t = {}, n = e.length;
87
87
  for (let r = 0; r < n; ++r) t[e[r] + ""] = !0;
88
88
  return t;
89
89
  }
90
90
  //#endregion
91
91
  //#region ../../node_modules/d3-array/src/range.js
92
- function _(e, t, n) {
92
+ function g(e, t, n) {
93
93
  e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;
94
94
  for (var r = -1, i = Math.max(0, Math.ceil((t - e) / n)) | 0, a = Array(i); ++r < i;) a[r] = e + r * n;
95
95
  return a;
96
96
  }
97
97
  //#endregion
98
98
  //#region ../../node_modules/d3-format/src/formatDecimal.js
99
- function ee(e) {
99
+ function te(e) {
100
100
  return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
101
101
  }
102
- function v(e, t) {
102
+ function _(e, t) {
103
103
  if (!isFinite(e) || e === 0) return null;
104
104
  var n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e"), r = e.slice(0, n);
105
105
  return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
106
106
  }
107
107
  //#endregion
108
108
  //#region ../../node_modules/d3-format/src/exponent.js
109
- function te(e) {
110
- return e = v(Math.abs(e)), e ? e[1] : NaN;
109
+ function ne(e) {
110
+ return e = _(Math.abs(e)), e ? e[1] : NaN;
111
111
  }
112
112
  //#endregion
113
113
  //#region ../../node_modules/d3-format/src/formatGroup.js
114
- function ne(e, t) {
114
+ function re(e, t) {
115
115
  return function(n, r) {
116
116
  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];
117
117
  return a.reverse().join(t);
@@ -119,7 +119,7 @@ function ne(e, t) {
119
119
  }
120
120
  //#endregion
121
121
  //#region ../../node_modules/d3-format/src/formatNumerals.js
122
- function re(e) {
122
+ function ie(e) {
123
123
  return function(t) {
124
124
  return t.replace(/[0-9]/g, function(t) {
125
125
  return e[+t];
@@ -128,11 +128,11 @@ function re(e) {
128
128
  }
129
129
  //#endregion
130
130
  //#region ../../node_modules/d3-format/src/formatSpecifier.js
131
- var ie = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
132
- function y(e) {
133
- if (!(t = ie.exec(e))) throw Error("invalid format: " + e);
131
+ var ae = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
132
+ function v(e) {
133
+ if (!(t = ae.exec(e))) throw Error("invalid format: " + e);
134
134
  var t;
135
- return new b({
135
+ return new y({
136
136
  fill: t[1],
137
137
  align: t[2],
138
138
  sign: t[3],
@@ -145,16 +145,16 @@ function y(e) {
145
145
  type: t[10]
146
146
  });
147
147
  }
148
- y.prototype = b.prototype;
149
- function b(e) {
148
+ v.prototype = y.prototype;
149
+ function y(e) {
150
150
  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 + "";
151
151
  }
152
- b.prototype.toString = function() {
152
+ y.prototype.toString = function() {
153
153
  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;
154
154
  };
155
155
  //#endregion
156
156
  //#region ../../node_modules/d3-format/src/formatTrim.js
157
- function ae(e) {
157
+ function oe(e) {
158
158
  out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
159
159
  case ".":
160
160
  r = i = n;
@@ -171,46 +171,46 @@ function ae(e) {
171
171
  }
172
172
  //#endregion
173
173
  //#region ../../node_modules/d3-format/src/formatPrefixAuto.js
174
- var oe;
175
- function x(e, t) {
176
- var n = v(e, t);
177
- if (!n) return oe = void 0, e.toPrecision(t);
178
- var r = n[0], i = n[1], a = i - (oe = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
179
- 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") + v(e, Math.max(0, t + a - 1))[0];
174
+ var se;
175
+ function b(e, t) {
176
+ var n = _(e, t);
177
+ if (!n) return se = void 0, e.toPrecision(t);
178
+ var r = n[0], i = n[1], a = i - (se = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
179
+ 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") + _(e, Math.max(0, t + a - 1))[0];
180
180
  }
181
181
  //#endregion
182
182
  //#region ../../node_modules/d3-format/src/formatRounded.js
183
- function se(e, t) {
184
- var n = v(e, t);
183
+ function ce(e, t) {
184
+ var n = _(e, t);
185
185
  if (!n) return e + "";
186
186
  var r = n[0], i = n[1];
187
187
  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");
188
188
  }
189
189
  //#endregion
190
190
  //#region ../../node_modules/d3-format/src/formatTypes.js
191
- var ce = {
191
+ var le = {
192
192
  "%": (e, t) => (e * 100).toFixed(t),
193
193
  b: (e) => Math.round(e).toString(2),
194
194
  c: (e) => e + "",
195
- d: ee,
195
+ d: te,
196
196
  e: (e, t) => e.toExponential(t),
197
197
  f: (e, t) => e.toFixed(t),
198
198
  g: (e, t) => e.toPrecision(t),
199
199
  o: (e) => Math.round(e).toString(8),
200
- p: (e, t) => se(e * 100, t),
201
- r: se,
202
- s: x,
200
+ p: (e, t) => ce(e * 100, t),
201
+ r: ce,
202
+ s: b,
203
203
  X: (e) => Math.round(e).toString(16).toUpperCase(),
204
204
  x: (e) => Math.round(e).toString(16)
205
205
  };
206
206
  //#endregion
207
207
  //#region ../../node_modules/d3-format/src/identity.js
208
- function le(e) {
208
+ function ue(e) {
209
209
  return e;
210
210
  }
211
211
  //#endregion
212
212
  //#region ../../node_modules/d3-format/src/locale.js
213
- var ue = Array.prototype.map, de = [
213
+ var de = Array.prototype.map, fe = [
214
214
  "y",
215
215
  "z",
216
216
  "a",
@@ -229,51 +229,51 @@ var ue = Array.prototype.map, de = [
229
229
  "Z",
230
230
  "Y"
231
231
  ];
232
- function fe(e) {
233
- var t = e.grouping === void 0 || e.thousands === void 0 ? le : ne(ue.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 ? le : re(ue.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 + "";
232
+ function pe(e) {
233
+ var t = e.grouping === void 0 || e.thousands === void 0 ? ue : re(de.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 ? ue : ie(de.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 + "";
234
234
  function l(e, l) {
235
- e = y(e);
236
- var u = e.fill, d = e.align, f = e.sign, p = e.symbol, m = e.zero, h = e.width, g = e.comma, _ = e.precision, ee = e.trim, v = e.type;
237
- v === "n" ? (g = !0, v = "g") : ce[v] || (_ === void 0 && (_ = 12), ee = !0, v = "g"), (m || u === "0" && d === "=") && (m = !0, u = "0", d = "=");
238
- var te = (l && l.prefix !== void 0 ? l.prefix : "") + (p === "$" ? n : p === "#" && /[boxX]/.test(v) ? "0" + v.toLowerCase() : ""), ne = (p === "$" ? r : /[%p]/.test(v) ? o : "") + (l && l.suffix !== void 0 ? l.suffix : ""), re = ce[v], ie = /[defgprs%]/.test(v);
239
- _ = _ === void 0 ? 6 : /[gprs]/.test(v) ? Math.max(1, Math.min(21, _)) : Math.max(0, Math.min(20, _));
240
- function b(e) {
241
- var n = te, r = ne, o, l, p;
242
- if (v === "c") r = re(e) + r, e = "";
235
+ e = v(e);
236
+ var u = e.fill, d = e.align, f = e.sign, p = e.symbol, m = e.zero, h = e.width, ee = e.comma, g = e.precision, te = e.trim, _ = e.type;
237
+ _ === "n" ? (ee = !0, _ = "g") : le[_] || (g === void 0 && (g = 12), te = !0, _ = "g"), (m || u === "0" && d === "=") && (m = !0, u = "0", d = "=");
238
+ 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 = le[_], ae = /[defgprs%]/.test(_);
239
+ g = g === void 0 ? 6 : /[gprs]/.test(_) ? Math.max(1, Math.min(21, g)) : Math.max(0, Math.min(20, g));
240
+ function y(e) {
241
+ var n = ne, r = re, o, l, p;
242
+ if (_ === "c") r = ie(e) + r, e = "";
243
243
  else {
244
244
  e = +e;
245
- var y = e < 0 || 1 / e < 0;
246
- if (e = isNaN(e) ? c : re(Math.abs(e), _), ee && (e = ae(e)), y && +e == 0 && f !== "+" && (y = !1), n = (y ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (v === "s" && !isNaN(e) && oe !== void 0 ? de[8 + oe / 3] : "") + r + (y && f === "(" ? ")" : ""), ie) {
245
+ var v = e < 0 || 1 / e < 0;
246
+ if (e = isNaN(e) ? c : ie(Math.abs(e), g), te && (e = oe(e)), v && +e == 0 && f !== "+" && (v = !1), n = (v ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (_ === "s" && !isNaN(e) && se !== void 0 ? fe[8 + se / 3] : "") + r + (v && f === "(" ? ")" : ""), ae) {
247
247
  for (o = -1, l = e.length; ++o < l;) if (p = e.charCodeAt(o), 48 > p || p > 57) {
248
248
  r = (p === 46 ? i + e.slice(o + 1) : e.slice(o)) + r, e = e.slice(0, o);
249
249
  break;
250
250
  }
251
251
  }
252
252
  }
253
- g && !m && (e = t(e, Infinity));
254
- var b = n.length + e.length + r.length, x = b < h ? Array(h - b + 1).join(u) : "";
255
- switch (g && m && (e = t(x + e, x.length ? h - r.length : Infinity), x = ""), d) {
253
+ ee && !m && (e = t(e, Infinity));
254
+ var y = n.length + e.length + r.length, b = y < h ? Array(h - y + 1).join(u) : "";
255
+ switch (ee && m && (e = t(b + e, b.length ? h - r.length : Infinity), b = ""), d) {
256
256
  case "<":
257
- e = n + e + r + x;
257
+ e = n + e + r + b;
258
258
  break;
259
259
  case "=":
260
- e = n + x + e + r;
260
+ e = n + b + e + r;
261
261
  break;
262
262
  case "^":
263
- e = x.slice(0, b = x.length >> 1) + n + e + r + x.slice(b);
263
+ e = b.slice(0, y = b.length >> 1) + n + e + r + b.slice(y);
264
264
  break;
265
265
  default:
266
- e = x + n + e + r;
266
+ e = b + n + e + r;
267
267
  break;
268
268
  }
269
269
  return a(e);
270
270
  }
271
- return b.toString = function() {
271
+ return y.toString = function() {
272
272
  return e + "";
273
- }, b;
273
+ }, y;
274
274
  }
275
275
  function u(e, t) {
276
- var n = Math.max(-8, Math.min(8, Math.floor(te(t) / 3))) * 3, r = 10 ** -n, i = l((e = y(e), e.type = "f", e), { suffix: de[8 + n / 3] });
276
+ var n = Math.max(-8, Math.min(8, Math.floor(ne(t) / 3))) * 3, r = 10 ** -n, i = l((e = v(e), e.type = "f", e), { suffix: fe[8 + n / 3] });
277
277
  return function(e) {
278
278
  return i(r * e);
279
279
  };
@@ -285,27 +285,27 @@ function fe(e) {
285
285
  }
286
286
  //#endregion
287
287
  //#region ../../node_modules/d3-format/src/defaultLocale.js
288
- var pe, me, he;
289
- ge({
288
+ var me, he, ge;
289
+ _e({
290
290
  thousands: ",",
291
291
  grouping: [3],
292
292
  currency: ["$", ""]
293
293
  });
294
- function ge(e) {
295
- return pe = fe(e), me = pe.format, he = pe.formatPrefix, pe;
294
+ function _e(e) {
295
+ return me = pe(e), he = me.format, ge = me.formatPrefix, me;
296
296
  }
297
297
  //#endregion
298
298
  //#region ../core/src/utils/arrayUtils.js
299
- function _e(e, t) {
299
+ function ve(e, t) {
300
300
  return e.length == t.length && e.every((n, r) => e[r] === t[r]);
301
301
  }
302
- function ve(e) {
302
+ function ye(e) {
303
303
  return Array.isArray(e) ? e : e === void 0 ? [] : [e];
304
304
  }
305
- function ye(e) {
305
+ function be(e) {
306
306
  return e[e.length - 1];
307
307
  }
308
- function be(e, t, n) {
308
+ function xe(e, t, n) {
309
309
  if (t < 0 || t >= e.length) throw Error("Source index out of range.");
310
310
  if (n < 0 || n > e.length - 1) throw Error("Destination index out of range.");
311
311
  let [r] = e.splice(t, 1);
@@ -313,31 +313,31 @@ function be(e, t, n) {
313
313
  }
314
314
  //#endregion
315
315
  //#region ../core/node_modules/vega-util/build/vega-util.js
316
- function S(e, t, n) {
316
+ function x(e, t, n) {
317
317
  return e.fields = t || [], e.fname = n, e;
318
318
  }
319
- function xe(e) {
319
+ function Se(e) {
320
320
  return e == null ? null : e.fname;
321
321
  }
322
- function Se(e) {
322
+ function Ce(e) {
323
323
  return e == null ? null : e.fields;
324
324
  }
325
- function Ce(e) {
326
- return e.length === 1 ? we(e[0]) : Te(e);
325
+ function we(e) {
326
+ return e.length === 1 ? Te(e[0]) : Ee(e);
327
327
  }
328
- var we = (e) => function(t) {
328
+ var Te = (e) => function(t) {
329
329
  return t[e];
330
- }, Te = (e) => {
330
+ }, Ee = (e) => {
331
331
  let t = e.length;
332
332
  return function(n) {
333
333
  for (let r = 0; r < t; ++r) n = n[e[r]];
334
334
  return n;
335
335
  };
336
336
  };
337
- function Ee(e) {
337
+ function De(e) {
338
338
  throw Error(e);
339
339
  }
340
- function De(e) {
340
+ function Oe(e) {
341
341
  let t = [], n = e.length, r = null, i = 0, a = "", o, s, c;
342
342
  e += "";
343
343
  function l() {
@@ -346,113 +346,113 @@ function De(e) {
346
346
  for (o = s = 0; s < n; ++s) if (c = e[s], c === "\\") a += e.substring(o, s++), o = s;
347
347
  else if (c === r) l(), r = null, i = -1;
348
348
  else if (r) continue;
349
- 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 || Ee("Access path missing open bracket: " + e), i > 0 && l(), i = 0, o = s + 1);
350
- return i && Ee("Access path missing closing bracket: " + e), r && Ee("Access path missing closing quote: " + e), s > o && (s++, l()), t;
351
- }
352
- function Oe(e, t, n) {
353
- let r = De(e);
354
- return e = r.length === 1 ? r[0] : e, S((n && n.get || Ce)(r), [e], t || e);
355
- }
356
- Oe("id");
357
- var ke = S((e) => e, [], "identity");
358
- S(() => 0, [], "zero"), S(() => 1, [], "one"), S(() => !0, [], "true"), S(() => !1, [], "false"), [...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function")];
359
- var C = Array.isArray;
360
- function Ae(e) {
349
+ 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 || De("Access path missing open bracket: " + e), i > 0 && l(), i = 0, o = s + 1);
350
+ return i && De("Access path missing closing bracket: " + e), r && De("Access path missing closing quote: " + e), s > o && (s++, l()), t;
351
+ }
352
+ function ke(e, t, n) {
353
+ let r = Oe(e);
354
+ return e = r.length === 1 ? r[0] : e, x((n && n.get || we)(r), [e], t || e);
355
+ }
356
+ ke("id");
357
+ var Ae = x((e) => e, [], "identity");
358
+ x(() => 0, [], "zero"), x(() => 1, [], "one"), x(() => !0, [], "true"), x(() => !1, [], "false"), [...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function")];
359
+ var je = Array.isArray;
360
+ function Me(e) {
361
361
  return e === Object(e);
362
362
  }
363
- function je(e) {
363
+ function Ne(e) {
364
364
  return e[e.length - 1];
365
365
  }
366
- function Me(e) {
366
+ function Pe(e) {
367
367
  return e == null || e === "" ? null : +e;
368
368
  }
369
- var Ne = (e) => (t) => e * Math.exp(t), Pe = (e) => (t) => Math.log(e * t), Fe = (e) => (t) => Math.sign(t) * Math.log1p(Math.abs(t / e)), Ie = (e) => (t) => Math.sign(t) * Math.expm1(Math.abs(t)) * e, Le = (e) => (t) => t < 0 ? -((-t) ** +e) : t ** +e;
370
- function Re(e, t, n, r) {
371
- let i = n(e[0]), a = n(je(e)), o = (a - i) * t;
369
+ var Fe = (e) => (t) => e * Math.exp(t), Ie = (e) => (t) => Math.log(e * t), Le = (e) => (t) => Math.sign(t) * Math.log1p(Math.abs(t / e)), Re = (e) => (t) => Math.sign(t) * Math.expm1(Math.abs(t)) * e, ze = (e) => (t) => t < 0 ? -((-t) ** +e) : t ** +e;
370
+ function Be(e, t, n, r) {
371
+ let i = n(e[0]), a = n(Ne(e)), o = (a - i) * t;
372
372
  return [r(i - o), r(a - o)];
373
373
  }
374
- function ze(e, t) {
375
- return Re(e, t, Me, ke);
374
+ function Ve(e, t) {
375
+ return Be(e, t, Pe, Ae);
376
376
  }
377
- function Be(e, t) {
377
+ function He(e, t) {
378
378
  var n = Math.sign(e[0]);
379
- return Re(e, t, Pe(n), Ne(n));
379
+ return Be(e, t, Ie(n), Fe(n));
380
380
  }
381
- function Ve(e, t, n) {
382
- return Re(e, t, Le(n), Le(1 / n));
381
+ function Ue(e, t, n) {
382
+ return Be(e, t, ze(n), ze(1 / n));
383
383
  }
384
- function He(e, t, n, r, i) {
385
- let a = r(e[0]), o = r(je(e)), s = t == null ? (a + o) / 2 : r(t);
384
+ function We(e, t, n, r, i) {
385
+ let a = r(e[0]), o = r(Ne(e)), s = t == null ? (a + o) / 2 : r(t);
386
386
  return [i(s + (a - s) * n), i(s + (o - s) * n)];
387
387
  }
388
- function Ue(e, t, n) {
389
- return He(e, t, n, Me, ke);
388
+ function Ge(e, t, n) {
389
+ return We(e, t, n, Pe, Ae);
390
390
  }
391
- function We(e, t, n) {
391
+ function Ke(e, t, n) {
392
392
  let r = Math.sign(e[0]);
393
- return He(e, t, n, Pe(r), Ne(r));
393
+ return We(e, t, n, Ie(r), Fe(r));
394
394
  }
395
- function Ge(e, t, n, r) {
396
- return He(e, t, n, Le(r), Le(1 / r));
395
+ function qe(e, t, n, r) {
396
+ return We(e, t, n, ze(r), ze(1 / r));
397
397
  }
398
- function Ke(e, t, n, r) {
399
- return He(e, t, n, Fe(r), Ie(r));
398
+ function Je(e, t, n, r) {
399
+ return We(e, t, n, Le(r), Re(r));
400
400
  }
401
- function qe(e) {
402
- return e == null ? [] : C(e) ? e : [e];
401
+ function Ye(e) {
402
+ return e == null ? [] : je(e) ? e : [e];
403
403
  }
404
- function Je(e, t, n) {
404
+ function Xe(e, t, n) {
405
405
  let r = e[0], i = e[1], a;
406
406
  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];
407
407
  }
408
- function Ye(e) {
408
+ function Ze(e) {
409
409
  return typeof e == "function";
410
410
  }
411
- var Xe = "descending";
412
- function Ze(e, t, n) {
413
- n ||= {}, t = qe(t) || [];
414
- let r = [], i = [], a = {}, o = n.comparator || $e;
415
- return qe(e).forEach((e, o) => {
416
- e != null && (r.push(t[o] === Xe ? -1 : 1), i.push(e = Ye(e) ? e : Oe(e, null, n)), (Se(e) || []).forEach((e) => a[e] = 1));
417
- }), i.length === 0 ? null : S(o(i, r), Object.keys(a));
418
- }
419
- var Qe = (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), $e = (e, t) => e.length === 1 ? et(e[0], t[0]) : tt(e, t, e.length), et = (e, t) => function(n, r) {
420
- return Qe(e(n), e(r)) * t;
421
- }, tt = (e, t, n) => (t.push(0), function(r, i) {
411
+ var Qe = "descending";
412
+ function $e(e, t, n) {
413
+ n ||= {}, t = Ye(t) || [];
414
+ let r = [], i = [], a = {}, o = n.comparator || tt;
415
+ return Ye(e).forEach((e, o) => {
416
+ e != null && (r.push(t[o] === Qe ? -1 : 1), i.push(e = Ze(e) ? e : ke(e, null, n)), (Ce(e) || []).forEach((e) => a[e] = 1));
417
+ }), i.length === 0 ? null : x(o(i, r), Object.keys(a));
418
+ }
419
+ var et = (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), tt = (e, t) => e.length === 1 ? nt(e[0], t[0]) : rt(e, t, e.length), nt = (e, t) => function(n, r) {
420
+ return et(e(n), e(r)) * t;
421
+ }, rt = (e, t, n) => (t.push(0), function(r, i) {
422
422
  let a, o = 0, s = -1;
423
- for (; o === 0 && ++s < n;) a = e[s], o = Qe(a(r), a(i));
423
+ for (; o === 0 && ++s < n;) a = e[s], o = et(a(r), a(i));
424
424
  return o * t[s];
425
425
  });
426
- function nt(e) {
426
+ function it(e) {
427
427
  return typeof e == "boolean";
428
428
  }
429
- function rt(e) {
429
+ function at(e) {
430
430
  return typeof e == "number";
431
431
  }
432
- function it(e) {
432
+ function ot(e) {
433
433
  return Object.prototype.toString.call(e) === "[object RegExp]";
434
434
  }
435
- function w(e) {
435
+ function st(e) {
436
436
  return typeof e == "string";
437
437
  }
438
- function at(e, t) {
439
- let n = e[0], r = je(e), i = +t;
438
+ function ct(e, t) {
439
+ let n = e[0], r = Ne(e), i = +t;
440
440
  return i ? i === 1 ? r : n + i * (r - n) : n;
441
441
  }
442
- function ot(e) {
443
- return e && je(e) - e[0] || 0;
442
+ function lt(e) {
443
+ return e && Ne(e) - e[0] || 0;
444
444
  }
445
- function st(e) {
446
- return C(e) ? `[${e.map((e) => e === null ? "null" : st(e))}]` : Ae(e) || w(e) ? JSON.stringify(e).replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029") : e;
445
+ function ut(e) {
446
+ return je(e) ? `[${e.map((e) => e === null ? "null" : ut(e))}]` : Me(e) || st(e) ? JSON.stringify(e).replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029") : e;
447
447
  }
448
- function ct(e) {
448
+ function dt(e) {
449
449
  let t = {}, n = e.length;
450
450
  for (let r = 0; r < n; ++r) t[e[r]] = !0;
451
451
  return t;
452
452
  }
453
453
  //#endregion
454
454
  //#region ../core/src/data/sideInputBinding.js
455
- var lt = class {
455
+ var ft = class {
456
456
  #e;
457
457
  #t;
458
458
  #n = !1;
@@ -488,7 +488,7 @@ var lt = class {
488
488
  isReady() {
489
489
  return this.#r && this.#n && this.#e.areDataDependenciesAvailable() && this.#t.every(({ collector: e, consumed: t }) => e.dataRevision === t);
490
490
  }
491
- }, ut = class {
491
+ }, pt = class {
492
492
  stats = {
493
493
  count: 0,
494
494
  first: null
@@ -540,7 +540,7 @@ var lt = class {
540
540
  initialized: this.#e,
541
541
  disposed: this.#t,
542
542
  params: "params" in e ? structuredClone(e.params) : void 0,
543
- view: dt(e, this.paramRuntimeProvider),
543
+ view: mt(e, this.paramRuntimeProvider),
544
544
  domainSensitiveScaleChannels: this.domainSensitiveScaleChannels
545
545
  };
546
546
  }
@@ -551,15 +551,15 @@ var lt = class {
551
551
  }
552
552
  initialize() {}
553
553
  initializeOnce() {
554
- this.#e ||= (this.dataDependencies.length && (this.#i = new lt(this)), this.initialize(), !0);
554
+ this.#e ||= (this.dataDependencies.length && (this.#i = new ft(this)), this.initialize(), !0);
555
555
  }
556
556
  #a() {
557
- this._propagate = Function("children", "stats", _(this.children.length).map((e) => `const child${e} = children[${e}];`).join("\n") + `return function propagate(datum) {
557
+ this._propagate = Function("children", "stats", g(this.children.length).map((e) => `const child${e} = children[${e}];`).join("\n") + `return function propagate(datum) {
558
558
  if (stats.count === 0) {
559
559
  stats.first = structuredClone(datum);
560
560
  }
561
561
  stats.count++;
562
- ${_(this.children.length).map((e) => `child${e}.handle(datum);`).join("\n")}
562
+ ${g(this.children.length).map((e) => `child${e}.handle(datum);`).join("\n")}
563
563
  };`)(this.children, this.stats);
564
564
  }
565
565
  setParent(e) {
@@ -671,11 +671,11 @@ var lt = class {
671
671
  }
672
672
  _propagate(e) {}
673
673
  };
674
- function dt(e, t) {
674
+ function mt(e, t) {
675
675
  if ("view" in e) return e.view;
676
676
  if (t && "getPathString" in t) return t;
677
677
  }
678
- function ft(e) {
678
+ function ht(e) {
679
679
  let t = /* @__PURE__ */ new Set();
680
680
  for (; e;) {
681
681
  for (let n of e.domainSensitiveScaleChannels) t.add(n);
@@ -683,15 +683,15 @@ function ft(e) {
683
683
  }
684
684
  return t;
685
685
  }
686
- function pt(e) {
686
+ function gt(e) {
687
687
  return e.type == "file";
688
688
  }
689
- function mt(e) {
689
+ function _t(e) {
690
690
  return e.type == "facet";
691
691
  }
692
692
  //#endregion
693
693
  //#region ../core/src/data/transforms/transform.js
694
- var ht = class extends ut {
694
+ var vt = class extends pt {
695
695
  #e;
696
696
  constructor(e, t) {
697
697
  super(t), this.#e = e.type;
@@ -709,7 +709,7 @@ var ht = class extends ut {
709
709
  }
710
710
  return (() => e);
711
711
  }
712
- }, T = "__uniqueId", gt = 1e4, _t = [null], vt = class extends ht {
712
+ }, S = "__uniqueId", yt = 1e4, bt = [null], xt = class extends vt {
713
713
  get behavior() {
714
714
  return 2;
715
715
  }
@@ -721,23 +721,23 @@ var ht = class extends ut {
721
721
  super.reset(), this._usedBlocks = 0, this._id = -1;
722
722
  }
723
723
  handle(e) {
724
- e[T] = this.#e(), this._propagate(e);
724
+ e[S] = this.#e(), this._propagate(e);
725
725
  }
726
726
  #e() {
727
- return ++this._id % 1e4 == 0 && (this._id = this.#t() * gt), this._id;
727
+ return ++this._id % 1e4 == 0 && (this._id = this.#t() * yt), this._id;
728
728
  }
729
729
  #t() {
730
730
  return this._usedBlocks < this._blocks.length ? this._blocks[this._usedBlocks++] : this.#n();
731
731
  }
732
732
  #n() {
733
- let e = _t.length;
734
- return _t[e] = this, this._blocks.push(e), this._usedBlocks++, e;
733
+ let e = bt.length;
734
+ return bt[e] = this, this._blocks.push(e), this._usedBlocks++, e;
735
735
  }
736
736
  };
737
737
  //#endregion
738
738
  //#region ../core/src/utils/field.js
739
- function yt(e, t = e) {
740
- return /^[A-Za-z0-9_]+$/.test(e) ? S(Function("validator", `
739
+ function St(e, t = e) {
740
+ return /^[A-Za-z0-9_]+$/.test(e) ? x(Function("validator", `
741
741
  let validated = !validator;
742
742
  return function accessField(datum) {
743
743
  if (!validated) {
@@ -746,21 +746,21 @@ function yt(e, t = e) {
746
746
  }
747
747
  return datum[${JSON.stringify(e)}];
748
748
  }`)(function(t) {
749
- e in t || bt(t, e);
750
- }), [e], t) : Oe(e);
749
+ e in t || Ct(t, e);
750
+ }), [e], t) : ke(e);
751
751
  }
752
- function bt(e, t) {
752
+ function Ct(e, t) {
753
753
  throw Error(`Invalid field "${t}". Available fields or properties: ${Object.keys(e).join(", ")}`);
754
754
  }
755
755
  //#endregion
756
756
  //#region ../core/src/encoder/accessor.js
757
- function xt(e, t, n) {
757
+ function wt(e, t, n) {
758
758
  if (!e) throw Error("Cannot create an accessor without a channel.");
759
759
  function r(n) {
760
760
  let r = n;
761
- return r.fields ??= [], r.constant = r.fields.length === 0, r.channelDef = t, r.channel = e, r.sourceKey = wt(t), r.scaleChannel = ((zt(t) && t.resolutionChannel) ?? (un(e) && e)) || void 0, r.scaleChannel !== void 0 && (r.domainKeyBase = Tt({
761
+ return r.fields ??= [], r.constant = r.fields.length === 0, r.channelDef = t, r.channel = e, r.sourceKey = Dt(t), r.scaleChannel = ((Ht(t) && t.resolutionChannel) ?? (pn(e) && e)) || void 0, r.scaleChannel !== void 0 && (r.domainKeyBase = Ot({
762
762
  scaleChannel: r.scaleChannel,
763
- source: Ct(t)
763
+ source: Et(t)
764
764
  }).domainKeyBase), r.equals = (e) => e ? r === e || r.sourceKey !== void 0 && r.sourceKey === e.sourceKey : !1, r.asNumberAccessor = () => r, r;
765
765
  }
766
766
  function i(e) {
@@ -773,121 +773,120 @@ function xt(e, t, n) {
773
773
  return r(() => t);
774
774
  }
775
775
  }
776
- if (E(t)) try {
777
- return r(yt(t.field));
776
+ if (C(t)) try {
777
+ return r(St(t.field));
778
778
  } catch (e) {
779
779
  throw Error(`Invalid field definition: ${e.message}`, { cause: e });
780
780
  }
781
- else if (Wt(t)) return r(n.createExpression(t.expr));
782
- else if (Rt(t)) return i(t.datum);
783
- else if (Lt(t)) return i(t.value);
781
+ else if (qt(t)) return r(n.createExpression(t.expr));
782
+ else if (Vt(t)) return i(t.datum);
783
+ else if (Bt(t)) return i(t.value);
784
784
  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".`);
785
785
  }
786
- function St(e) {
786
+ function Tt(e) {
787
787
  return e.scaleChannel !== void 0;
788
788
  }
789
- function Ct(e) {
790
- if (E(e)) return {
789
+ function Et(e) {
790
+ if (C(e)) return {
791
791
  kind: "field",
792
792
  value: e.field
793
793
  };
794
- if (Wt(e)) return {
794
+ if (qt(e)) return {
795
795
  kind: "expr",
796
796
  value: e.expr
797
797
  };
798
- if (Rt(e)) return {
798
+ if (Vt(e)) return {
799
799
  kind: "datum",
800
800
  value: e.datum
801
801
  };
802
- if (Lt(e)) return {
802
+ if (Bt(e)) return {
803
803
  kind: "value",
804
804
  value: e.value
805
805
  };
806
806
  throw Error("Cannot derive a domain key from channel definition: " + JSON.stringify(e));
807
807
  }
808
- function wt(e) {
809
- let t = Ct(e);
810
- return t.kind === "datum" || t.kind === "value" ? "constant|" + Ot(t.value) : t.kind + "|" + Dt(t);
808
+ function Dt(e) {
809
+ let t = Et(e);
810
+ return t.kind === "datum" || t.kind === "value" ? "constant|" + jt(t.value) : t.kind + "|" + At(t);
811
811
  }
812
- function Tt({ scaleChannel: e, source: t, type: n }) {
812
+ function Ot({ scaleChannel: e, source: t, type: n }) {
813
813
  if (!e) throw Error("Cannot build a domain key without a scale channel.");
814
- let r = e + "|" + t.kind + "|" + Dt(t);
814
+ let r = e + "|" + t.kind + "|" + At(t);
815
815
  return {
816
816
  domainKeyBase: r,
817
817
  domainKey: n ? n + "|" + r : void 0
818
818
  };
819
819
  }
820
- function Et(e, t) {
821
- let { domainKey: n, domainKeyBase: r } = Tt({
820
+ function kt(e, t) {
821
+ let { domainKey: n, domainKeyBase: r } = Ot({
822
822
  scaleChannel: e.scaleChannel,
823
- source: Ct(e.channelDef),
823
+ source: Et(e.channelDef),
824
824
  type: t
825
825
  });
826
826
  if (!n) throw Error("Cannot finalize a domain key without a resolved type.");
827
827
  return e.domainKeyBase = r, e.domainKey = n, n;
828
828
  }
829
- function Dt(e) {
829
+ function At(e) {
830
830
  switch (e.kind) {
831
831
  case "field":
832
832
  case "expr": return e.value;
833
833
  case "datum":
834
- case "value": return Ot(e.value);
834
+ case "value": return jt(e.value);
835
835
  default: throw Error("Unknown domain key source.");
836
836
  }
837
837
  }
838
- function Ot(e) {
838
+ function jt(e) {
839
839
  return G(e) ? "expr:" + e.expr : e === void 0 ? "undefined" : JSON.stringify(e);
840
840
  }
841
841
  //#endregion
842
842
  //#region ../core/src/encoder/encoder.js
843
- function kt(e, t, n, r) {
844
- let i, a = Xi(!1), o = () => {
843
+ function Mt(e, t, n, r = "intersects") {
844
+ let i, a = ia(!1), o = () => {
845
845
  if (i) return i;
846
- let o = n.findValue(e);
847
- if (!o) return a;
848
- let s = {};
849
- if (Ni(o)) {
850
- let n = Object.keys(o.intervals);
851
- for (let r of n) {
852
- let n = t[r];
853
- if (E(n)) {
854
- s[r] = n.field;
855
- continue;
856
- } else if (n && "condition" in n) {
857
- let e = n.condition;
858
- if (E(e)) {
859
- s[r] = e.field;
860
- continue;
846
+ if (e.singleParam && !n.findValue(e.params[0])) return a;
847
+ let o = e.params.map((r) => {
848
+ let i = n.findValue(r);
849
+ if (!i) throw Error(`Selection parameter "${r}" was not found.`);
850
+ let a = {};
851
+ if (H(i)) for (let n of Object.keys(i.intervals)) {
852
+ let i = e.singleParam ? [n] : [n, ln(n)];
853
+ for (let e of i) {
854
+ let n = t[e];
855
+ if (C(n)) a[e] = n.field;
856
+ else if (n && "condition" in n) {
857
+ let t = n.condition, r = (Array.isArray(t) ? t : [t]).find(C);
858
+ C(r) && (a[e] = r.field);
861
859
  }
862
860
  }
863
- throw Error(`Selection "${e}" has an interval for "${r}" channel, but could not find a fieldDef: ${JSON.stringify(t[r])}`);
861
+ if (!a[n]) throw Error(`Selection "${r}" has an interval for "${n}" channel, but could not find a fieldDef: ${JSON.stringify(t[n])}`);
864
862
  }
865
- }
866
- let c = Mi({
863
+ return {
864
+ param: r,
865
+ selection: i,
866
+ fields: a
867
+ };
868
+ }), s = e.singleParam ? Fi({
867
869
  type: "filter",
868
- param: e,
869
- fields: s,
870
- empty: r
871
- }, o);
872
- return i = n.createExpression(c), i;
870
+ param: e.params[0],
871
+ fields: o[0].fields,
872
+ empty: e.empty
873
+ }, o[0].selection) : Vi(o, e.empty, r);
874
+ return i = n.createExpression(s), i;
873
875
  };
874
- return Object.assign((e) => o()(e), {
875
- param: e,
876
- empty: r ?? !0
877
- });
876
+ return Object.assign((e) => o()(e), { selection: e });
878
877
  }
879
- function At(e, t, n, r) {
880
- let i = Gt(t) || Kt(t) ? Array.isArray(t.condition) ? t.condition : [t.condition] : [], a = [...i, t], o = a.map((t, o) => {
881
- let s = i[o];
878
+ function Nt(e, t, n, r, i = "intersects") {
879
+ let a = Jt(t) || Yt(t) ? Array.isArray(t.condition) ? t.condition : [t.condition] : [], o = [...a, t], s = o.map((t, s) => {
880
+ let c = a[s], l = wt(e, t, r), u = c ? Ii(c) : void 0;
882
881
  return {
883
- accessor: xt(e, t, r),
884
- predicate: s?.param ? kt(s.param, n, r, s.empty) : Object.assign(Xi(o === a.length - 1), { empty: !1 })
882
+ accessor: l,
883
+ predicate: u ? Mt(u, n, r, i) : ia(s === o.length - 1)
885
884
  };
886
885
  });
887
- if (o.filter((e) => !e.accessor.constant).length > 1) throw Error("Only one accessor can be non-constant. Channel: " + e);
888
- return o;
886
+ if (s.filter((e) => !e.accessor.constant).length > 1) throw Error("Only one accessor can be non-constant. Channel: " + e);
887
+ return s;
889
888
  }
890
- function jt(e, t) {
889
+ function Pt(e, t) {
891
890
  let n = {}, r = (t) => e.getScaleResolution(t)?.getScale(), i = (t, n) => {
892
891
  let r = e.getScaleResolution(t);
893
892
  e.paramRuntime.operation("encoder scale", [r.getMappingRef()], () => r.getScale(), n);
@@ -895,25 +894,25 @@ function jt(e, t) {
895
894
  for (let [a, o] of Object.entries(t)) {
896
895
  if (!o) continue;
897
896
  let s = a;
898
- Mt(s) || (n[s] = Ft(At(s, o, t, e.paramRuntime), r, i));
897
+ Ft(s) || (n[s] = Rt(Nt(s, o, t, e.paramRuntime, e.mark.defaultHitTestMode), r, i));
899
898
  }
900
899
  return n;
901
900
  }
902
- function Mt(e) {
903
- return e === "key" || e === "search" || e === "tooltip";
901
+ function Ft(e) {
902
+ return e === "key" || e === "search" || e === "tooltip" || e === "order";
904
903
  }
905
- function Nt(e) {
904
+ function It(e) {
906
905
  return e.branches.map((e) => e.accessor);
907
906
  }
908
- function Pt(e) {
907
+ function Lt(e) {
909
908
  return e.branches.find((e) => !e.accessor.constant)?.accessor;
910
909
  }
911
- function Ft(e, t, n) {
910
+ function Rt(e, t, n) {
912
911
  if (e.length === 1) {
913
- let r = It(e[0].accessor, t, n);
912
+ let r = zt(e[0].accessor, t, n);
914
913
  return Object.assign(r, { branches: e });
915
914
  }
916
- let r = e.map((e) => e.predicate), i = e.map((e) => It(e.accessor, t, n)), a = Object.assign((e) => {
915
+ let r = e.map((e) => e.predicate), i = e.map((e) => zt(e.accessor, t, n)), a = Object.assign((e) => {
917
916
  for (let t = 0; t < i.length; t++) if (r[t](e)) return i[t](e);
918
917
  }, {
919
918
  constant: !1,
@@ -925,7 +924,7 @@ function Ft(e, t, n) {
925
924
  get: () => i.find((e) => e.scale)?.scale
926
925
  });
927
926
  }
928
- function It(e, t, n) {
927
+ function zt(e, t, n) {
929
928
  let { channel: r, scaleChannel: i, channelDef: a } = e, o = e.scaleChannel ? t(i) : void 0;
930
929
  if (i && !o) throw Error(`Missing scale! "${r}": ${JSON.stringify(a)}`);
931
930
  let s = Object.assign(o ? (t) => o(e(t)) : (t) => e(t), {
@@ -933,7 +932,7 @@ function It(e, t, n) {
933
932
  constant: e.constant,
934
933
  branches: [{
935
934
  accessor: e,
936
- predicate: Xi(!0)
935
+ predicate: ia(!0)
937
936
  }],
938
937
  channelDef: a
939
938
  });
@@ -941,91 +940,91 @@ function It(e, t, n) {
941
940
  o = e, s.scale = e;
942
941
  }), s;
943
942
  }
944
- function Lt(e) {
943
+ function Bt(e) {
945
944
  return e && "value" in e;
946
945
  }
947
- function E(e) {
946
+ function C(e) {
948
947
  return e && "field" in e;
949
948
  }
950
- function Rt(e) {
949
+ function Vt(e) {
951
950
  return e && "datum" in e;
952
951
  }
953
- function zt(e) {
954
- return E(e) || Rt(e) || Wt(e) || Ut(e);
952
+ function Ht(e) {
953
+ return C(e) || Vt(e) || qt(e) || Kt(e);
955
954
  }
956
- function Bt(e) {
957
- if (Kt(e)) {
955
+ function Ut(e) {
956
+ if (Yt(e)) {
958
957
  let t = e.condition;
959
- return (Array.isArray(t) ? t : [t]).find((e) => zt(e));
960
- } else if (zt(e)) return e;
958
+ return (Array.isArray(t) ? t : [t]).find((e) => Ht(e));
959
+ } else if (Ht(e)) return e;
961
960
  }
962
- function Vt(e) {
963
- let t = e && Bt(e);
961
+ function Wt(e) {
962
+ let t = e && Ut(e);
964
963
  return t != null && t.type != "quantitative" && t.scale !== null;
965
964
  }
966
- function Ht(e, t) {
965
+ function Gt(e, t) {
967
966
  let n = e.mark.encoding[t];
968
967
  if (Array.isArray(n)) throw Error("Not a channel def with scale!");
969
968
  {
970
- let e = Bt(n);
969
+ let e = Ut(n);
971
970
  if (e) return e;
972
971
  }
973
972
  throw Error("Not a channel def with scale!");
974
973
  }
975
- function Ut(e) {
974
+ function Kt(e) {
976
975
  return e && "chrom" in e;
977
976
  }
978
- function Wt(e) {
977
+ function qt(e) {
979
978
  return e && "expr" in e;
980
979
  }
981
- function Gt(e) {
982
- return (E(e) || Rt(e)) && "condition" in e;
980
+ function Jt(e) {
981
+ return (C(e) || Vt(e)) && "condition" in e;
983
982
  }
984
- function Kt(e) {
985
- return Lt(e) && "condition" in e;
983
+ function Yt(e) {
984
+ return Bt(e) && "condition" in e;
986
985
  }
987
- var qt = ["x", "y"], Jt = ["x2", "y2"], Yt = ["xOffset", "yOffset"], Xt = [...qt, ...Jt];
988
- function Zt(e) {
989
- return qt.includes(e);
990
- }
991
- function Qt(e) {
986
+ var Xt = ["x", "y"], Zt = ["x2", "y2"], Qt = ["xOffset", "yOffset"], $t = [...Xt, ...Zt];
987
+ function en(e) {
992
988
  return Xt.includes(e);
993
989
  }
994
- function $t(e) {
995
- return Yt.includes(e);
990
+ function tn(e) {
991
+ return $t.includes(e);
996
992
  }
997
- function en(e) {
998
- return sn(e) == "x" ? "xOffset" : "yOffset";
993
+ function nn(e) {
994
+ return Qt.includes(e);
999
995
  }
1000
- function tn(e, t, n) {
996
+ function rn(e) {
997
+ return un(e) == "x" ? "xOffset" : "yOffset";
998
+ }
999
+ function an(e, t, n) {
1001
1000
  return t ?? (n ? 0 : e);
1002
1001
  }
1003
- var nn = {
1002
+ var on = {
1004
1003
  x: "x2",
1005
1004
  y: "y2"
1006
- }, rn = Object.fromEntries(Object.entries(nn).map((e) => [e[1], e[0]]));
1007
- function an(e) {
1008
- return e in rn;
1005
+ }, sn = Object.fromEntries(Object.entries(on).map((e) => [e[1], e[0]]));
1006
+ function cn(e) {
1007
+ return e in sn;
1009
1008
  }
1010
- function on(e) {
1011
- let t = nn[e];
1009
+ function ln(e) {
1010
+ let t = on[e];
1012
1011
  if (t) return t;
1013
1012
  throw Error(`${e} has no secondary channel!`);
1014
1013
  }
1015
- function sn(e) {
1016
- return rn[e] ?? e;
1014
+ function un(e) {
1015
+ return sn[e] ?? e;
1017
1016
  }
1018
- function cn(e) {
1017
+ function dn(e) {
1019
1018
  return [
1020
1019
  "color",
1021
1020
  "fill",
1022
1021
  "stroke"
1023
- ].includes(sn(e));
1022
+ ].includes(un(e));
1024
1023
  }
1025
- function ln(e) {
1024
+ function fn(e) {
1026
1025
  return ["shape", "direction"].includes(e);
1027
1026
  }
1028
- function un(e) {
1027
+ function pn(e) {
1029
1028
  return [
1030
1029
  "x",
1031
1030
  "y",
@@ -1049,7 +1048,7 @@ function un(e) {
1049
1048
  "sample"
1050
1049
  ].includes(e);
1051
1050
  }
1052
- function dn(e) {
1051
+ function mn(e) {
1053
1052
  switch (e) {
1054
1053
  case "shape": return [
1055
1054
  "circle",
@@ -1071,9 +1070,9 @@ function dn(e) {
1071
1070
  default:
1072
1071
  }
1073
1072
  }
1074
- function fn(e) {
1075
- if (!ln(e)) throw Error("Not a discrete channel: " + e);
1076
- let t = new Map(dn(e).map((e, t) => [e, t]));
1073
+ function hn(e) {
1074
+ if (!fn(e)) throw Error("Not a discrete channel: " + e);
1075
+ let t = new Map(mn(e).map((e, t) => [e, t]));
1077
1076
  return (n) => {
1078
1077
  let r = t.get(n);
1079
1078
  if (r !== void 0) return r;
@@ -1082,53 +1081,53 @@ function fn(e) {
1082
1081
  }
1083
1082
  //#endregion
1084
1083
  //#region ../../node_modules/vega-expression/build/vega-expression.js
1085
- var pn = "RawCode", mn = "Literal", hn = "Property", gn = "Identifier", _n = "ArrayExpression", vn = "BinaryExpression", yn = "CallExpression", bn = "ConditionalExpression", xn = "LogicalExpression", Sn = "MemberExpression", Cn = "ObjectExpression", wn = "UnaryExpression";
1086
- function D(e) {
1084
+ var gn = "RawCode", _n = "Literal", vn = "Property", yn = "Identifier", bn = "ArrayExpression", xn = "BinaryExpression", Sn = "CallExpression", Cn = "ConditionalExpression", wn = "LogicalExpression", Tn = "MemberExpression", En = "ObjectExpression", Dn = "UnaryExpression";
1085
+ function w(e) {
1087
1086
  this.type = e;
1088
1087
  }
1089
- D.prototype.visit = function(e) {
1088
+ w.prototype.visit = function(e) {
1090
1089
  let t, n, r;
1091
1090
  if (e(this)) return 1;
1092
- for (t = Tn(this), n = 0, r = t.length; n < r; ++n) if (t[n].visit(e)) return 1;
1091
+ for (t = On(this), n = 0, r = t.length; n < r; ++n) if (t[n].visit(e)) return 1;
1093
1092
  };
1094
- function Tn(e) {
1093
+ function On(e) {
1095
1094
  switch (e.type) {
1096
- case _n: return e.elements;
1097
- case vn:
1098
- case xn: return [e.left, e.right];
1099
- case yn: return [e.callee].concat(e.arguments);
1100
- case bn: return [
1095
+ case bn: return e.elements;
1096
+ case xn:
1097
+ case wn: return [e.left, e.right];
1098
+ case Sn: return [e.callee].concat(e.arguments);
1099
+ case Cn: return [
1101
1100
  e.test,
1102
1101
  e.consequent,
1103
1102
  e.alternate
1104
1103
  ];
1105
- case Sn: return [e.object, e.property];
1106
- case Cn: return e.properties;
1107
- case hn: return [e.key, e.value];
1108
- case wn: return [e.argument];
1104
+ case Tn: return [e.object, e.property];
1105
+ case En: return e.properties;
1106
+ case vn: return [e.key, e.value];
1107
+ case Dn: return [e.argument];
1108
+ case yn:
1109
+ case _n:
1109
1110
  case gn:
1110
- case mn:
1111
- case pn:
1112
1111
  default: return [];
1113
1112
  }
1114
1113
  }
1115
- var O, k, A, j, M, En = 1, Dn = 2, N = 3, P = 4, On = 5, F = 6, I = 7, kn = 8, An = 9;
1116
- O = {}, O[En] = "Boolean", O[Dn] = "<end>", O[N] = "Identifier", O[P] = "Keyword", O[On] = "Null", O[F] = "Numeric", O[I] = "Punctuator", O[kn] = "String", O[An] = "RegularExpression";
1117
- var jn = "ArrayExpression", Mn = "BinaryExpression", Nn = "CallExpression", Pn = "ConditionalExpression", Fn = "Identifier", In = "Literal", Ln = "LogicalExpression", Rn = "MemberExpression", zn = "ObjectExpression", Bn = "Property", Vn = "UnaryExpression", L = "Unexpected token %0", Hn = "Unexpected number", Un = "Unexpected string", Wn = "Unexpected identifier", Gn = "Unexpected reserved word", Kn = "Unexpected end of input", qn = "Invalid regular expression", Jn = "Invalid regular expression: missing /", Yn = "Octal literals are not allowed in strict mode.", Xn = "Duplicate data property in object literal not allowed in strict mode", R = "ILLEGAL", Zn = "Disabled.", Qn = /* @__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]"), $n = /* @__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]");
1118
- function er(e, t) {
1114
+ var T, E, D, O, k, kn = 1, An = 2, A = 3, j = 4, jn = 5, M = 6, N = 7, Mn = 8, Nn = 9;
1115
+ T = {}, T[kn] = "Boolean", T[An] = "<end>", T[A] = "Identifier", T[j] = "Keyword", T[jn] = "Null", T[M] = "Numeric", T[N] = "Punctuator", T[Mn] = "String", T[Nn] = "RegularExpression";
1116
+ var Pn = "ArrayExpression", Fn = "BinaryExpression", In = "CallExpression", Ln = "ConditionalExpression", Rn = "Identifier", zn = "Literal", Bn = "LogicalExpression", Vn = "MemberExpression", Hn = "ObjectExpression", Un = "Property", Wn = "UnaryExpression", P = "Unexpected token %0", Gn = "Unexpected number", Kn = "Unexpected string", qn = "Unexpected identifier", Jn = "Unexpected reserved word", Yn = "Unexpected end of input", Xn = "Invalid regular expression", Zn = "Invalid regular expression: missing /", Qn = "Octal literals are not allowed in strict mode.", $n = "Duplicate data property in object literal not allowed in strict mode", F = "ILLEGAL", er = "Disabled.", tr = /* @__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]"), nr = /* @__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]");
1117
+ function rr(e, t) {
1119
1118
  /* istanbul ignore next */
1120
1119
  if (!e) throw Error("ASSERT: " + t);
1121
1120
  }
1122
- function z(e) {
1121
+ function I(e) {
1123
1122
  return e >= 48 && e <= 57;
1124
1123
  }
1125
- function tr(e) {
1124
+ function ir(e) {
1126
1125
  return "0123456789abcdefABCDEF".includes(e);
1127
1126
  }
1128
- function nr(e) {
1127
+ function ar(e) {
1129
1128
  return "01234567".includes(e);
1130
1129
  }
1131
- function rr(e) {
1130
+ function or(e) {
1132
1131
  return e === 32 || e === 9 || e === 11 || e === 12 || e === 160 || e >= 5760 && [
1133
1132
  5760,
1134
1133
  6158,
@@ -1149,16 +1148,16 @@ function rr(e) {
1149
1148
  65279
1150
1149
  ].includes(e);
1151
1150
  }
1152
- function ir(e) {
1151
+ function sr(e) {
1153
1152
  return e === 10 || e === 13 || e === 8232 || e === 8233;
1154
1153
  }
1155
- function ar(e) {
1156
- return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e === 92 || e >= 128 && Qn.test(String.fromCharCode(e));
1154
+ function cr(e) {
1155
+ return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e === 92 || e >= 128 && tr.test(String.fromCharCode(e));
1157
1156
  }
1158
- function or(e) {
1159
- return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e >= 48 && e <= 57 || e === 92 || e >= 128 && $n.test(String.fromCharCode(e));
1157
+ function lr(e) {
1158
+ return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e >= 48 && e <= 57 || e === 92 || e >= 128 && nr.test(String.fromCharCode(e));
1160
1159
  }
1161
- var sr = {
1160
+ var ur = {
1162
1161
  if: 1,
1163
1162
  in: 1,
1164
1163
  do: 1,
@@ -1202,47 +1201,47 @@ var sr = {
1202
1201
  instanceof: 1,
1203
1202
  implements: 1
1204
1203
  };
1205
- function cr() {
1206
- for (; A < j;) {
1207
- let e = k.charCodeAt(A);
1208
- if (rr(e) || ir(e)) ++A;
1204
+ function dr() {
1205
+ for (; D < O;) {
1206
+ let e = E.charCodeAt(D);
1207
+ if (or(e) || sr(e)) ++D;
1209
1208
  else break;
1210
1209
  }
1211
1210
  }
1212
- function lr(e) {
1211
+ function fr(e) {
1213
1212
  var t, n, r, i = 0;
1214
- for (n = e === "u" ? 4 : 2, t = 0; t < n; ++t) A < j && tr(k[A]) ? (r = k[A++], i = i * 16 + "0123456789abcdef".indexOf(r.toLowerCase())) : V({}, L, R);
1213
+ for (n = e === "u" ? 4 : 2, t = 0; t < n; ++t) D < O && ir(E[D]) ? (r = E[D++], i = i * 16 + "0123456789abcdef".indexOf(r.toLowerCase())) : R({}, P, F);
1215
1214
  return String.fromCharCode(i);
1216
1215
  }
1217
- function ur() {
1218
- var e = k[A], t = 0, n, r;
1219
- for (e === "}" && V({}, L, R); A < j && (e = k[A++], tr(e));) t = t * 16 + "0123456789abcdef".indexOf(e.toLowerCase());
1220
- return (t > 1114111 || e !== "}") && V({}, L, R), t <= 65535 ? String.fromCharCode(t) : (n = (t - 65536 >> 10) + 55296, r = (t - 65536 & 1023) + 56320, String.fromCharCode(n, r));
1216
+ function pr() {
1217
+ var e = E[D], t = 0, n, r;
1218
+ for (e === "}" && R({}, P, F); D < O && (e = E[D++], ir(e));) t = t * 16 + "0123456789abcdef".indexOf(e.toLowerCase());
1219
+ return (t > 1114111 || e !== "}") && R({}, P, F), t <= 65535 ? String.fromCharCode(t) : (n = (t - 65536 >> 10) + 55296, r = (t - 65536 & 1023) + 56320, String.fromCharCode(n, r));
1221
1220
  }
1222
- function dr() {
1223
- var e = k.charCodeAt(A++), t = String.fromCharCode(e);
1224
- for (e === 92 && (k.charCodeAt(A) !== 117 && V({}, L, R), ++A, e = lr("u"), (!e || e === "\\" || !ar(e.charCodeAt(0))) && V({}, L, R), t = e); A < j && (e = k.charCodeAt(A), or(e));) ++A, t += String.fromCharCode(e), e === 92 && (t = t.substr(0, t.length - 1), k.charCodeAt(A) !== 117 && V({}, L, R), ++A, e = lr("u"), (!e || e === "\\" || !or(e.charCodeAt(0))) && V({}, L, R), t += e);
1221
+ function mr() {
1222
+ var e = E.charCodeAt(D++), t = String.fromCharCode(e);
1223
+ for (e === 92 && (E.charCodeAt(D) !== 117 && R({}, P, F), ++D, e = fr("u"), (!e || e === "\\" || !cr(e.charCodeAt(0))) && R({}, P, F), t = e); D < O && (e = E.charCodeAt(D), lr(e));) ++D, t += String.fromCharCode(e), e === 92 && (t = t.substr(0, t.length - 1), E.charCodeAt(D) !== 117 && R({}, P, F), ++D, e = fr("u"), (!e || e === "\\" || !lr(e.charCodeAt(0))) && R({}, P, F), t += e);
1225
1224
  return t;
1226
1225
  }
1227
- function fr() {
1228
- for (var e = A++, t; A < j;) {
1229
- if (t = k.charCodeAt(A), t === 92) return A = e, dr();
1230
- if (or(t)) ++A;
1226
+ function hr() {
1227
+ for (var e = D++, t; D < O;) {
1228
+ if (t = E.charCodeAt(D), t === 92) return D = e, mr();
1229
+ if (lr(t)) ++D;
1231
1230
  else break;
1232
1231
  }
1233
- return k.slice(e, A);
1232
+ return E.slice(e, D);
1234
1233
  }
1235
- function pr() {
1236
- var e = A, t = k.charCodeAt(A) === 92 ? dr() : fr();
1234
+ function gr() {
1235
+ var e = D, t = E.charCodeAt(D) === 92 ? mr() : hr();
1237
1236
  return {
1238
- type: t.length === 1 ? N : sr.hasOwnProperty(t) ? P : t === "null" ? On : t === "true" || t === "false" ? En : N,
1237
+ type: t.length === 1 ? A : ur.hasOwnProperty(t) ? j : t === "null" ? jn : t === "true" || t === "false" ? kn : A,
1239
1238
  value: t,
1240
1239
  start: e,
1241
- end: A
1240
+ end: D
1242
1241
  };
1243
1242
  }
1244
- function mr() {
1245
- var e = A, t = k.charCodeAt(A), n, r = k[A], i, a, o;
1243
+ function _r() {
1244
+ var e = D, t = E.charCodeAt(D), n, r = E[D], i, a, o;
1246
1245
  switch (t) {
1247
1246
  case 46:
1248
1247
  case 40:
@@ -1255,13 +1254,13 @@ function mr() {
1255
1254
  case 93:
1256
1255
  case 58:
1257
1256
  case 63:
1258
- case 126: return ++A, {
1259
- type: I,
1257
+ case 126: return ++D, {
1258
+ type: N,
1260
1259
  value: String.fromCharCode(t),
1261
1260
  start: e,
1262
- end: A
1261
+ end: D
1263
1262
  };
1264
- default: if (n = k.charCodeAt(A + 1), n === 61) switch (t) {
1263
+ default: if (n = E.charCodeAt(D + 1), n === 61) switch (t) {
1265
1264
  case 43:
1266
1265
  case 45:
1267
1266
  case 47:
@@ -1271,101 +1270,101 @@ function mr() {
1271
1270
  case 124:
1272
1271
  case 37:
1273
1272
  case 38:
1274
- case 42: return A += 2, {
1275
- type: I,
1273
+ case 42: return D += 2, {
1274
+ type: N,
1276
1275
  value: String.fromCharCode(t) + String.fromCharCode(n),
1277
1276
  start: e,
1278
- end: A
1277
+ end: D
1279
1278
  };
1280
1279
  case 33:
1281
- case 61: return A += 2, k.charCodeAt(A) === 61 && ++A, {
1282
- type: I,
1283
- value: k.slice(e, A),
1280
+ case 61: return D += 2, E.charCodeAt(D) === 61 && ++D, {
1281
+ type: N,
1282
+ value: E.slice(e, D),
1284
1283
  start: e,
1285
- end: A
1284
+ end: D
1286
1285
  };
1287
1286
  }
1288
1287
  }
1289
- if (o = k.substr(A, 4), o === ">>>=") return A += 4, {
1290
- type: I,
1288
+ if (o = E.substr(D, 4), o === ">>>=") return D += 4, {
1289
+ type: N,
1291
1290
  value: o,
1292
1291
  start: e,
1293
- end: A
1292
+ end: D
1294
1293
  };
1295
- if (a = o.substr(0, 3), a === ">>>" || a === "<<=" || a === ">>=") return A += 3, {
1296
- type: I,
1294
+ if (a = o.substr(0, 3), a === ">>>" || a === "<<=" || a === ">>=") return D += 3, {
1295
+ type: N,
1297
1296
  value: a,
1298
1297
  start: e,
1299
- end: A
1298
+ end: D
1300
1299
  };
1301
- if (i = a.substr(0, 2), r === i[1] && "+-<>&|".includes(r) || i === "=>") return A += 2, {
1302
- type: I,
1300
+ if (i = a.substr(0, 2), r === i[1] && "+-<>&|".includes(r) || i === "=>") return D += 2, {
1301
+ type: N,
1303
1302
  value: i,
1304
1303
  start: e,
1305
- end: A
1304
+ end: D
1306
1305
  };
1307
- if (i === "//" && V({}, L, R), "<>=!+-*%&|^/".includes(r)) return ++A, {
1308
- type: I,
1306
+ if (i === "//" && R({}, P, F), "<>=!+-*%&|^/".includes(r)) return ++D, {
1307
+ type: N,
1309
1308
  value: r,
1310
1309
  start: e,
1311
- end: A
1310
+ end: D
1312
1311
  };
1313
- V({}, L, R);
1312
+ R({}, P, F);
1314
1313
  }
1315
- function hr(e) {
1314
+ function vr(e) {
1316
1315
  let t = "";
1317
- for (; A < j && tr(k[A]);) t += k[A++];
1318
- return t.length === 0 && V({}, L, R), ar(k.charCodeAt(A)) && V({}, L, R), {
1319
- type: F,
1316
+ for (; D < O && ir(E[D]);) t += E[D++];
1317
+ return t.length === 0 && R({}, P, F), cr(E.charCodeAt(D)) && R({}, P, F), {
1318
+ type: M,
1320
1319
  value: parseInt("0x" + t, 16),
1321
1320
  start: e,
1322
- end: A
1321
+ end: D
1323
1322
  };
1324
1323
  }
1325
- function gr(e) {
1326
- let t = "0" + k[A++];
1327
- for (; A < j && nr(k[A]);) t += k[A++];
1328
- return (ar(k.charCodeAt(A)) || z(k.charCodeAt(A))) && V({}, L, R), {
1329
- type: F,
1324
+ function yr(e) {
1325
+ let t = "0" + E[D++];
1326
+ for (; D < O && ar(E[D]);) t += E[D++];
1327
+ return (cr(E.charCodeAt(D)) || I(E.charCodeAt(D))) && R({}, P, F), {
1328
+ type: M,
1330
1329
  value: parseInt(t, 8),
1331
1330
  octal: !0,
1332
1331
  start: e,
1333
- end: A
1332
+ end: D
1334
1333
  };
1335
1334
  }
1336
- function _r() {
1337
- var e, t, n = k[A];
1338
- if (er(z(n.charCodeAt(0)) || n === ".", "Numeric literal must start with a decimal digit or a decimal point"), t = A, e = "", n !== ".") {
1339
- if (e = k[A++], n = k[A], e === "0") {
1340
- if (n === "x" || n === "X") return ++A, hr(t);
1341
- if (nr(n)) return gr(t);
1342
- n && z(n.charCodeAt(0)) && V({}, L, R);
1335
+ function br() {
1336
+ var e, t, n = E[D];
1337
+ if (rr(I(n.charCodeAt(0)) || n === ".", "Numeric literal must start with a decimal digit or a decimal point"), t = D, e = "", n !== ".") {
1338
+ if (e = E[D++], n = E[D], e === "0") {
1339
+ if (n === "x" || n === "X") return ++D, vr(t);
1340
+ if (ar(n)) return yr(t);
1341
+ n && I(n.charCodeAt(0)) && R({}, P, F);
1343
1342
  }
1344
- for (; z(k.charCodeAt(A));) e += k[A++];
1345
- n = k[A];
1343
+ for (; I(E.charCodeAt(D));) e += E[D++];
1344
+ n = E[D];
1346
1345
  }
1347
1346
  if (n === ".") {
1348
- for (e += k[A++]; z(k.charCodeAt(A));) e += k[A++];
1349
- n = k[A];
1347
+ for (e += E[D++]; I(E.charCodeAt(D));) e += E[D++];
1348
+ n = E[D];
1350
1349
  }
1351
- if (n === "e" || n === "E") if (e += k[A++], n = k[A], (n === "+" || n === "-") && (e += k[A++]), z(k.charCodeAt(A))) for (; z(k.charCodeAt(A));) e += k[A++];
1352
- else V({}, L, R);
1353
- return ar(k.charCodeAt(A)) && V({}, L, R), {
1354
- type: F,
1350
+ if (n === "e" || n === "E") if (e += E[D++], n = E[D], (n === "+" || n === "-") && (e += E[D++]), I(E.charCodeAt(D))) for (; I(E.charCodeAt(D));) e += E[D++];
1351
+ else R({}, P, F);
1352
+ return cr(E.charCodeAt(D)) && R({}, P, F), {
1353
+ type: M,
1355
1354
  value: parseFloat(e),
1356
1355
  start: t,
1357
- end: A
1356
+ end: D
1358
1357
  };
1359
1358
  }
1360
- function vr() {
1359
+ function xr() {
1361
1360
  var e = "", t, n, r, i, a = !1;
1362
- for (t = k[A], er(t === "'" || t === "\"", "String literal must starts with a quote"), n = A, ++A; A < j;) if (r = k[A++], r === t) {
1361
+ for (t = E[D], rr(t === "'" || t === "\"", "String literal must starts with a quote"), n = D, ++D; D < O;) if (r = E[D++], r === t) {
1363
1362
  t = "";
1364
1363
  break;
1365
- } else if (r === "\\") if (r = k[A++], !r || !ir(r.charCodeAt(0))) switch (r) {
1364
+ } else if (r === "\\") if (r = E[D++], !r || !sr(r.charCodeAt(0))) switch (r) {
1366
1365
  case "u":
1367
1366
  case "x":
1368
- k[A] === "{" ? (++A, e += ur()) : e += lr(r);
1367
+ E[D] === "{" ? (++D, e += pr()) : e += fr(r);
1369
1368
  break;
1370
1369
  case "n":
1371
1370
  e += "\n";
@@ -1386,30 +1385,30 @@ function vr() {
1386
1385
  e += "\v";
1387
1386
  break;
1388
1387
  default:
1389
- nr(r) ? (i = "01234567".indexOf(r), i !== 0 && (a = !0), A < j && nr(k[A]) && (a = !0, i = i * 8 + "01234567".indexOf(k[A++]), "0123".includes(r) && A < j && nr(k[A]) && (i = i * 8 + "01234567".indexOf(k[A++]))), e += String.fromCharCode(i)) : e += r;
1388
+ ar(r) ? (i = "01234567".indexOf(r), i !== 0 && (a = !0), D < O && ar(E[D]) && (a = !0, i = i * 8 + "01234567".indexOf(E[D++]), "0123".includes(r) && D < O && ar(E[D]) && (i = i * 8 + "01234567".indexOf(E[D++]))), e += String.fromCharCode(i)) : e += r;
1390
1389
  break;
1391
1390
  }
1392
- else r === "\r" && k[A] === "\n" && ++A;
1393
- else if (ir(r.charCodeAt(0))) break;
1391
+ else r === "\r" && E[D] === "\n" && ++D;
1392
+ else if (sr(r.charCodeAt(0))) break;
1394
1393
  else e += r;
1395
- return t !== "" && V({}, L, R), {
1396
- type: kn,
1394
+ return t !== "" && R({}, P, F), {
1395
+ type: Mn,
1397
1396
  value: e,
1398
1397
  octal: a,
1399
1398
  start: n,
1400
- end: A
1399
+ end: D
1401
1400
  };
1402
1401
  }
1403
- function yr(e, t) {
1402
+ function Sr(e, t) {
1404
1403
  let n = e;
1405
1404
  t.includes("u") && (n = n.replace(/\\u\{([0-9a-fA-F]+)\}/g, (e, t) => {
1406
1405
  if (parseInt(t, 16) <= 1114111) return "x";
1407
- V({}, qn);
1406
+ R({}, Xn);
1408
1407
  }).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, "x"));
1409
1408
  try {
1410
1409
  new RegExp(n);
1411
1410
  } catch {
1412
- V({}, qn);
1411
+ R({}, Xn);
1413
1412
  }
1414
1413
  try {
1415
1414
  return new RegExp(e, t);
@@ -1417,30 +1416,30 @@ function yr(e, t) {
1417
1416
  return null;
1418
1417
  }
1419
1418
  }
1420
- function br() {
1421
- var e = k[A], t, n, r, i;
1422
- for (er(e === "/", "Regular expression literal must start with a slash"), t = k[A++], n = !1, r = !1; A < j;) if (e = k[A++], t += e, e === "\\") e = k[A++], ir(e.charCodeAt(0)) && V({}, Jn), t += e;
1423
- else if (ir(e.charCodeAt(0))) V({}, Jn);
1419
+ function Cr() {
1420
+ var e = E[D], t, n, r, i;
1421
+ for (rr(e === "/", "Regular expression literal must start with a slash"), t = E[D++], n = !1, r = !1; D < O;) if (e = E[D++], t += e, e === "\\") e = E[D++], sr(e.charCodeAt(0)) && R({}, Zn), t += e;
1422
+ else if (sr(e.charCodeAt(0))) R({}, Zn);
1424
1423
  else if (n) e === "]" && (n = !1);
1425
1424
  else if (e === "/") {
1426
1425
  r = !0;
1427
1426
  break;
1428
1427
  } else e === "[" && (n = !0);
1429
- return r || V({}, Jn), i = t.substr(1, t.length - 2), {
1428
+ return r || R({}, Zn), i = t.substr(1, t.length - 2), {
1430
1429
  value: i,
1431
1430
  literal: t
1432
1431
  };
1433
1432
  }
1434
- function xr() {
1435
- for (var e, t = "", n = ""; A < j && (e = k[A], or(e.charCodeAt(0)));) ++A, e === "\\" && A < j ? V({}, L, R) : (n += e, t += e);
1436
- return n.search(/[^gimuy]/g) >= 0 && V({}, qn, n), {
1433
+ function wr() {
1434
+ for (var e, t = "", n = ""; D < O && (e = E[D], lr(e.charCodeAt(0)));) ++D, e === "\\" && D < O ? R({}, P, F) : (n += e, t += e);
1435
+ return n.search(/[^gimuy]/g) >= 0 && R({}, Xn, n), {
1437
1436
  value: n,
1438
1437
  literal: t
1439
1438
  };
1440
1439
  }
1441
- function Sr() {
1440
+ function Tr() {
1442
1441
  var e, t, n, r;
1443
- return M = null, cr(), e = A, t = br(), n = xr(), r = yr(t.value, n.value), {
1442
+ return k = null, dr(), e = D, t = Cr(), n = wr(), r = Sr(t.value, n.value), {
1444
1443
  literal: t.literal + n.literal,
1445
1444
  value: r,
1446
1445
  regex: {
@@ -1448,166 +1447,166 @@ function Sr() {
1448
1447
  flags: n.value
1449
1448
  },
1450
1449
  start: e,
1451
- end: A
1450
+ end: D
1452
1451
  };
1453
1452
  }
1454
- function Cr(e) {
1455
- return e.type === N || e.type === P || e.type === En || e.type === On;
1453
+ function Er(e) {
1454
+ return e.type === A || e.type === j || e.type === kn || e.type === jn;
1456
1455
  }
1457
- function wr() {
1458
- if (cr(), A >= j) return {
1459
- type: Dn,
1460
- start: A,
1461
- end: A
1456
+ function Dr() {
1457
+ if (dr(), D >= O) return {
1458
+ type: An,
1459
+ start: D,
1460
+ end: D
1462
1461
  };
1463
- let e = k.charCodeAt(A);
1464
- return ar(e) ? pr() : e === 40 || e === 41 || e === 59 ? mr() : e === 39 || e === 34 ? vr() : e === 46 ? z(k.charCodeAt(A + 1)) ? _r() : mr() : z(e) ? _r() : mr();
1462
+ let e = E.charCodeAt(D);
1463
+ return cr(e) ? gr() : e === 40 || e === 41 || e === 59 ? _r() : e === 39 || e === 34 ? xr() : e === 46 ? I(E.charCodeAt(D + 1)) ? br() : _r() : I(e) ? br() : _r();
1465
1464
  }
1466
- function B() {
1467
- let e = M;
1468
- return A = e.end, M = wr(), A = e.end, e;
1465
+ function L() {
1466
+ let e = k;
1467
+ return D = e.end, k = Dr(), D = e.end, e;
1469
1468
  }
1470
- function Tr() {
1471
- let e = A;
1472
- M = wr(), A = e;
1469
+ function Or() {
1470
+ let e = D;
1471
+ k = Dr(), D = e;
1473
1472
  }
1474
- function Er(e) {
1475
- let t = new D(jn);
1473
+ function kr(e) {
1474
+ let t = new w(Pn);
1476
1475
  return t.elements = e, t;
1477
1476
  }
1478
- function Dr(e, t, n) {
1479
- let r = new D(e === "||" || e === "&&" ? Ln : Mn);
1477
+ function Ar(e, t, n) {
1478
+ let r = new w(e === "||" || e === "&&" ? Bn : Fn);
1480
1479
  return r.operator = e, r.left = t, r.right = n, r;
1481
1480
  }
1482
- function Or(e, t) {
1483
- let n = new D(Nn);
1481
+ function jr(e, t) {
1482
+ let n = new w(In);
1484
1483
  return n.callee = e, n.arguments = t, n;
1485
1484
  }
1486
- function kr(e, t, n) {
1487
- let r = new D(Pn);
1485
+ function Mr(e, t, n) {
1486
+ let r = new w(Ln);
1488
1487
  return r.test = e, r.consequent = t, r.alternate = n, r;
1489
1488
  }
1490
- function Ar(e) {
1491
- let t = new D(Fn);
1489
+ function Nr(e) {
1490
+ let t = new w(Rn);
1492
1491
  return t.name = e, t;
1493
1492
  }
1494
- function jr(e) {
1495
- let t = new D(In);
1496
- return t.value = e.value, t.raw = k.slice(e.start, e.end), e.regex && (t.raw === "//" && (t.raw = "/(?:)/"), t.regex = e.regex), t;
1493
+ function Pr(e) {
1494
+ let t = new w(zn);
1495
+ return t.value = e.value, t.raw = E.slice(e.start, e.end), e.regex && (t.raw === "//" && (t.raw = "/(?:)/"), t.regex = e.regex), t;
1497
1496
  }
1498
- function Mr(e, t, n) {
1499
- let r = new D(Rn);
1497
+ function Fr(e, t, n) {
1498
+ let r = new w(Vn);
1500
1499
  return r.computed = e === "[", r.object = t, r.property = n, r.computed || (n.member = !0), r;
1501
1500
  }
1502
- function Nr(e) {
1503
- let t = new D(zn);
1501
+ function Ir(e) {
1502
+ let t = new w(Hn);
1504
1503
  return t.properties = e, t;
1505
1504
  }
1506
- function Pr(e, t, n) {
1507
- let r = new D(Bn);
1505
+ function Lr(e, t, n) {
1506
+ let r = new w(Un);
1508
1507
  return r.key = t, r.value = n, r.kind = e, r;
1509
1508
  }
1510
- function Fr(e, t) {
1511
- let n = new D(Vn);
1509
+ function Rr(e, t) {
1510
+ let n = new w(Wn);
1512
1511
  return n.operator = e, n.argument = t, n.prefix = !0, n;
1513
1512
  }
1514
- function V(e, t) {
1515
- var n, r = Array.prototype.slice.call(arguments, 2), i = t.replace(/%(\d)/g, (e, t) => (er(t < r.length, "Message reference must be in range"), r[t]));
1516
- throw n = Error(i), n.index = A, n.description = i, n;
1513
+ function R(e, t) {
1514
+ var n, r = Array.prototype.slice.call(arguments, 2), i = t.replace(/%(\d)/g, (e, t) => (rr(t < r.length, "Message reference must be in range"), r[t]));
1515
+ throw n = Error(i), n.index = D, n.description = i, n;
1517
1516
  }
1518
- function Ir(e) {
1519
- e.type === Dn && V(e, Kn), e.type === F && V(e, Hn), e.type === kn && V(e, Un), e.type === N && V(e, Wn), e.type === P && V(e, Gn), V(e, L, e.value);
1517
+ function zr(e) {
1518
+ e.type === An && R(e, Yn), e.type === M && R(e, Gn), e.type === Mn && R(e, Kn), e.type === A && R(e, qn), e.type === j && R(e, Jn), R(e, P, e.value);
1520
1519
  }
1521
- function H(e) {
1522
- let t = B();
1523
- (t.type !== I || t.value !== e) && Ir(t);
1520
+ function z(e) {
1521
+ let t = L();
1522
+ (t.type !== N || t.value !== e) && zr(t);
1524
1523
  }
1525
- function U(e) {
1526
- return M.type === I && M.value === e;
1524
+ function B(e) {
1525
+ return k.type === N && k.value === e;
1527
1526
  }
1528
- function Lr(e) {
1529
- return M.type === P && M.value === e;
1527
+ function Br(e) {
1528
+ return k.type === j && k.value === e;
1530
1529
  }
1531
- function Rr() {
1530
+ function Vr() {
1532
1531
  let e = [];
1533
- for (A = M.start, H("["); !U("]");) U(",") ? (B(), e.push(null)) : (e.push(W()), U("]") || H(","));
1534
- return B(), Er(e);
1532
+ for (D = k.start, z("["); !B("]");) B(",") ? (L(), e.push(null)) : (e.push(V()), B("]") || z(","));
1533
+ return L(), kr(e);
1535
1534
  }
1536
- function zr() {
1537
- A = M.start;
1538
- let e = B();
1539
- return e.type === kn || e.type === F ? (e.octal && V(e, Yn), jr(e)) : Ar(e.value);
1535
+ function Hr() {
1536
+ D = k.start;
1537
+ let e = L();
1538
+ return e.type === Mn || e.type === M ? (e.octal && R(e, Qn), Pr(e)) : Nr(e.value);
1540
1539
  }
1541
- function Br() {
1540
+ function Ur() {
1542
1541
  var e, t, n, r;
1543
- if (A = M.start, e = M, e.type === N) return n = zr(), H(":"), r = W(), Pr("init", n, r);
1544
- if (e.type === Dn || e.type === I) Ir(e);
1545
- else return t = zr(), H(":"), r = W(), Pr("init", t, r);
1542
+ if (D = k.start, e = k, e.type === A) return n = Hr(), z(":"), r = V(), Lr("init", n, r);
1543
+ if (e.type === An || e.type === N) zr(e);
1544
+ else return t = Hr(), z(":"), r = V(), Lr("init", t, r);
1546
1545
  }
1547
- function Vr() {
1546
+ function Wr() {
1548
1547
  var e = [], t, n, r, i = {}, a = String;
1549
- for (A = M.start, H("{"); !U("}");) t = Br(), n = t.key.type === Fn ? t.key.name : a(t.key.value), r = "$" + n, Object.prototype.hasOwnProperty.call(i, r) ? V({}, Xn) : i[r] = !0, e.push(t), U("}") || H(",");
1550
- return H("}"), Nr(e);
1548
+ for (D = k.start, z("{"); !B("}");) t = Ur(), n = t.key.type === Rn ? t.key.name : a(t.key.value), r = "$" + n, Object.prototype.hasOwnProperty.call(i, r) ? R({}, $n) : i[r] = !0, e.push(t), B("}") || z(",");
1549
+ return z("}"), Ir(e);
1551
1550
  }
1552
- function Hr() {
1553
- H("(");
1554
- let e = ei();
1555
- return H(")"), e;
1551
+ function Gr() {
1552
+ z("(");
1553
+ let e = ri();
1554
+ return z(")"), e;
1556
1555
  }
1557
- var Ur = { if: 1 };
1558
- function Wr() {
1556
+ var Kr = { if: 1 };
1557
+ function qr() {
1559
1558
  var e, t, n;
1560
- if (U("(")) return Hr();
1561
- if (U("[")) return Rr();
1562
- if (U("{")) return Vr();
1563
- if (e = M.type, A = M.start, e === N || Ur[M.value]) n = Ar(B().value);
1564
- else if (e === kn || e === F) M.octal && V(M, Yn), n = jr(B());
1565
- else if (e === P) throw Error(Zn);
1566
- else e === En ? (t = B(), t.value = t.value === "true", n = jr(t)) : e === On ? (t = B(), t.value = null, n = jr(t)) : U("/") || U("/=") ? (n = jr(Sr()), Tr()) : Ir(B());
1559
+ if (B("(")) return Gr();
1560
+ if (B("[")) return Vr();
1561
+ if (B("{")) return Wr();
1562
+ if (e = k.type, D = k.start, e === A || Kr[k.value]) n = Nr(L().value);
1563
+ else if (e === Mn || e === M) k.octal && R(k, Qn), n = Pr(L());
1564
+ else if (e === j) throw Error(er);
1565
+ else e === kn ? (t = L(), t.value = t.value === "true", n = Pr(t)) : e === jn ? (t = L(), t.value = null, n = Pr(t)) : B("/") || B("/=") ? (n = Pr(Tr()), Or()) : zr(L());
1567
1566
  return n;
1568
1567
  }
1569
- function Gr() {
1568
+ function Jr() {
1570
1569
  let e = [];
1571
- if (H("("), !U(")")) for (; A < j && (e.push(W()), !U(")"));) H(",");
1572
- return H(")"), e;
1573
- }
1574
- function Kr() {
1575
- A = M.start;
1576
- let e = B();
1577
- return Cr(e) || Ir(e), Ar(e.value);
1570
+ if (z("("), !B(")")) for (; D < O && (e.push(V()), !B(")"));) z(",");
1571
+ return z(")"), e;
1578
1572
  }
1579
- function qr() {
1580
- return H("."), Kr();
1573
+ function Yr() {
1574
+ D = k.start;
1575
+ let e = L();
1576
+ return Er(e) || zr(e), Nr(e.value);
1581
1577
  }
1582
- function Jr() {
1583
- H("[");
1584
- let e = ei();
1585
- return H("]"), e;
1578
+ function Xr() {
1579
+ return z("."), Yr();
1586
1580
  }
1587
- function Yr() {
1588
- for (var e = Wr(), t, n;;) if (U(".")) n = qr(), e = Mr(".", e, n);
1589
- else if (U("(")) t = Gr(), e = Or(e, t);
1590
- else if (U("[")) n = Jr(), e = Mr("[", e, n);
1581
+ function Zr() {
1582
+ z("[");
1583
+ let e = ri();
1584
+ return z("]"), e;
1585
+ }
1586
+ function Qr() {
1587
+ for (var e = qr(), t, n;;) if (B(".")) n = Xr(), e = Fr(".", e, n);
1588
+ else if (B("(")) t = Jr(), e = jr(e, t);
1589
+ else if (B("[")) n = Zr(), e = Fr("[", e, n);
1591
1590
  else break;
1592
1591
  return e;
1593
1592
  }
1594
- function Xr() {
1595
- let e = Yr();
1596
- if (M.type === I && (U("++") || U("--"))) throw Error(Zn);
1593
+ function $r() {
1594
+ let e = Qr();
1595
+ if (k.type === N && (B("++") || B("--"))) throw Error(er);
1597
1596
  return e;
1598
1597
  }
1599
- function Zr() {
1598
+ function ei() {
1600
1599
  var e, t;
1601
- if (M.type !== I && M.type !== P) t = Xr();
1602
- else if (U("++") || U("--")) throw Error(Zn);
1603
- else if (U("+") || U("-") || U("~") || U("!")) e = B(), t = Zr(), t = Fr(e.value, t);
1604
- else if (Lr("delete") || Lr("void") || Lr("typeof")) throw Error(Zn);
1605
- else t = Xr();
1600
+ if (k.type !== N && k.type !== j) t = $r();
1601
+ else if (B("++") || B("--")) throw Error(er);
1602
+ else if (B("+") || B("-") || B("~") || B("!")) e = L(), t = ei(), t = Rr(e.value, t);
1603
+ else if (Br("delete") || Br("void") || Br("typeof")) throw Error(er);
1604
+ else t = $r();
1606
1605
  return t;
1607
1606
  }
1608
- function Qr(e) {
1607
+ function ti(e) {
1609
1608
  let t = 0;
1610
- if (e.type !== I && e.type !== P) return 0;
1609
+ if (e.type !== N && e.type !== j) return 0;
1611
1610
  switch (e.value) {
1612
1611
  case "||":
1613
1612
  t = 1;
@@ -1655,36 +1654,36 @@ function Qr(e) {
1655
1654
  }
1656
1655
  return t;
1657
1656
  }
1658
- function $r() {
1659
- var e = M, t, n, r, i, a, o, s, c = Zr(), l;
1660
- if (r = M, i = Qr(r), i === 0) return c;
1661
- for (r.prec = i, B(), t = [e, M], o = Zr(), a = [
1657
+ function ni() {
1658
+ var e = k, t, n, r, i, a, o, s, c = ei(), l;
1659
+ if (r = k, i = ti(r), i === 0) return c;
1660
+ for (r.prec = i, L(), t = [e, k], o = ei(), a = [
1662
1661
  c,
1663
1662
  r,
1664
1663
  o
1665
- ]; (i = Qr(M)) > 0;) {
1666
- for (; a.length > 2 && i <= a[a.length - 2].prec;) o = a.pop(), s = a.pop().value, c = a.pop(), t.pop(), n = Dr(s, c, o), a.push(n);
1667
- r = B(), r.prec = i, a.push(r), t.push(M), n = Zr(), a.push(n);
1664
+ ]; (i = ti(k)) > 0;) {
1665
+ for (; a.length > 2 && i <= a[a.length - 2].prec;) o = a.pop(), s = a.pop().value, c = a.pop(), t.pop(), n = Ar(s, c, o), a.push(n);
1666
+ r = L(), r.prec = i, a.push(r), t.push(k), n = ei(), a.push(n);
1668
1667
  }
1669
- for (l = a.length - 1, n = a[l], t.pop(); l > 1;) t.pop(), n = Dr(a[l - 1].value, a[l - 2], n), l -= 2;
1668
+ for (l = a.length - 1, n = a[l], t.pop(); l > 1;) t.pop(), n = Ar(a[l - 1].value, a[l - 2], n), l -= 2;
1670
1669
  return n;
1671
1670
  }
1672
- function W() {
1673
- var e = $r(), t, n;
1674
- return U("?") && (B(), t = W(), H(":"), n = W(), e = kr(e, t, n)), e;
1671
+ function V() {
1672
+ var e = ni(), t, n;
1673
+ return B("?") && (L(), t = V(), z(":"), n = V(), e = Mr(e, t, n)), e;
1675
1674
  }
1676
- function ei() {
1677
- let e = W();
1678
- if (U(",")) throw Error(Zn);
1675
+ function ri() {
1676
+ let e = V();
1677
+ if (B(",")) throw Error(er);
1679
1678
  return e;
1680
1679
  }
1681
- function ti(e) {
1682
- k = e, A = 0, j = k.length, M = null, Tr();
1683
- let t = ei();
1684
- if (M.type !== Dn) throw Error("Unexpect token after expression.");
1680
+ function ii(e) {
1681
+ E = e, D = 0, O = E.length, k = null, Or();
1682
+ let t = ri();
1683
+ if (k.type !== An) throw Error("Unexpect token after expression.");
1685
1684
  return t;
1686
1685
  }
1687
- var ni = {
1686
+ var ai = {
1688
1687
  NaN: "NaN",
1689
1688
  E: "Math.E",
1690
1689
  LN2: "Math.LN2",
@@ -1697,7 +1696,7 @@ var ni = {
1697
1696
  MIN_VALUE: "Number.MIN_VALUE",
1698
1697
  MAX_VALUE: "Number.MAX_VALUE"
1699
1698
  };
1700
- function ri(e) {
1699
+ function oi(e) {
1701
1700
  function t(t, n, r, i) {
1702
1701
  let a = e(n[0]);
1703
1702
  return r && (a = r + "(" + a + ")", r.lastIndexOf("new ", 0) === 0 && (a = "(" + a + ")")), a + "." + t + (i < 0 ? "" : i === 0 ? "()" : "(" + n.slice(1).map(e).join(",") + ")");
@@ -1773,180 +1772,194 @@ function ri(e) {
1773
1772
  }
1774
1773
  };
1775
1774
  }
1776
- function ii(e) {
1775
+ function si(e) {
1777
1776
  let t = e && e.length - 1;
1778
1777
  return t && (e[0] === "\"" && e[t] === "\"" || e[0] === "'" && e[t] === "'") ? e.slice(1, -1) : e;
1779
1778
  }
1780
- function ai(e) {
1779
+ function ci(e) {
1781
1780
  e ||= {};
1782
- let t = e.allowed ? g(e.allowed) : {}, n = e.forbidden ? g(e.forbidden) : {}, r = e.constants || ni, a = (e.functions || ri)(_), o = e.globalvar, s = e.fieldvar, l = f(o) ? o : (e) => `${o}["${e}"]`;
1781
+ let t = e.allowed ? ee(e.allowed) : {}, n = e.forbidden ? ee(e.forbidden) : {}, r = e.constants || ai, a = (e.functions || oi)(g), o = e.globalvar, s = e.fieldvar, l = f(o) ? o : (e) => `${o}["${e}"]`;
1783
1782
  [...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function")];
1784
1783
  let u = {}, d = {}, h = 0;
1785
- function _(e) {
1784
+ function g(e) {
1786
1785
  if (m(e)) return e;
1787
- let t = ee[e.type];
1786
+ let t = te[e.type];
1788
1787
  return t ?? i("Unsupported type: " + e.type), t(e);
1789
1788
  }
1790
- let ee = {
1789
+ let te = {
1791
1790
  Literal: (e) => e.raw,
1792
1791
  Identifier: (e) => {
1793
1792
  let a = e.name;
1794
1793
  return h > 0 ? a : p(n, a) ? i("Illegal identifier: " + a) : p(r, a) ? r[a] : p(t, a) ? a : (u[a] = 1, l(a));
1795
1794
  },
1796
1795
  MemberExpression: (e) => {
1797
- let t = !e.computed, n = _(e.object);
1796
+ let t = !e.computed, n = g(e.object);
1798
1797
  t && (h += 1);
1799
- let r = _(e.property);
1800
- return n === s && (d[ii(r)] = 1), t && --h, n + (t ? "." + r : "[" + r + "]");
1798
+ let r = g(e.property);
1799
+ return n === s && (d[si(r)] = 1), t && --h, n + (t ? "." + r : "[" + r + "]");
1801
1800
  },
1802
1801
  CallExpression: (e) => {
1803
1802
  e.callee.type !== "Identifier" && i("Illegal callee type: " + e.callee.type);
1804
1803
  let t = e.callee.name, n = e.arguments, r = p(a, t) && a[t];
1805
- return r || i("Unrecognized function: " + t), f(r) ? r(n) : r + "(" + n.map(_).join(",") + ")";
1804
+ return r || i("Unrecognized function: " + t), f(r) ? r(n) : r + "(" + n.map(g).join(",") + ")";
1806
1805
  },
1807
- ArrayExpression: (e) => "[" + e.elements.map(_).join(",") + "]",
1808
- BinaryExpression: (e) => "(" + _(e.left) + " " + e.operator + " " + _(e.right) + ")",
1809
- UnaryExpression: (e) => "(" + e.operator + _(e.argument) + ")",
1810
- ConditionalExpression: (e) => "(" + _(e.test) + "?" + _(e.consequent) + ":" + _(e.alternate) + ")",
1811
- LogicalExpression: (e) => "(" + _(e.left) + e.operator + _(e.right) + ")",
1806
+ ArrayExpression: (e) => "[" + e.elements.map(g).join(",") + "]",
1807
+ BinaryExpression: (e) => "(" + g(e.left) + " " + e.operator + " " + g(e.right) + ")",
1808
+ UnaryExpression: (e) => "(" + e.operator + g(e.argument) + ")",
1809
+ ConditionalExpression: (e) => "(" + g(e.test) + "?" + g(e.consequent) + ":" + g(e.alternate) + ")",
1810
+ LogicalExpression: (e) => "(" + g(e.left) + e.operator + g(e.right) + ")",
1812
1811
  ObjectExpression: (e) => {
1813
1812
  for (let t of e.properties) {
1814
1813
  let e = t.key.name;
1815
1814
  c.has(e) && i("Illegal property: " + e);
1816
1815
  }
1817
- return "{" + e.properties.map(_).join(",") + "}";
1816
+ return "{" + e.properties.map(g).join(",") + "}";
1818
1817
  },
1819
1818
  Property: (e) => {
1820
1819
  h += 1;
1821
- let t = _(e.key);
1822
- return --h, t + ":" + _(e.value);
1820
+ let t = g(e.key);
1821
+ return --h, t + ":" + g(e.value);
1823
1822
  }
1824
1823
  };
1825
- function v(e) {
1824
+ function _(e) {
1826
1825
  let t = {
1827
- code: _(e),
1826
+ code: g(e),
1828
1827
  globals: Object.keys(u),
1829
1828
  fields: Object.keys(d)
1830
1829
  };
1831
1830
  return u = {}, d = {}, t;
1832
1831
  }
1833
- return v.functions = a, v.constants = r, v;
1832
+ return _.functions = a, _.constants = r, _;
1834
1833
  }
1835
1834
  //#endregion
1836
1835
  //#region ../core/src/utils/smoothstep.js
1837
- function oi(e, t, n) {
1836
+ function li(e, t, n) {
1838
1837
  return n = (n - e) / (t - e), n = Math.max(0, Math.min(1, n)), n * n * (3 - 2 * n);
1839
1838
  }
1840
1839
  //#endregion
1841
1840
  //#region ../core/src/utils/clamp.js
1842
- function si(e, t = 0, n = 1) {
1841
+ function ui(e, t = 0, n = 1) {
1843
1842
  return Math.max(t, Math.min(n, e));
1844
1843
  }
1845
1844
  //#endregion
1846
1845
  //#region ../core/src/utils/linearstep.js
1847
- function ci(e, t, n) {
1848
- return si((n - e) / (t - e), 0, 1);
1846
+ function di(e, t, n) {
1847
+ return ui((n - e) / (t - e), 0, 1);
1849
1848
  }
1850
1849
  //#endregion
1851
1850
  //#region ../core/src/utils/expression.js
1852
- function li(e) {
1853
- return C(e) || ArrayBuffer.isView(e) ? e : null;
1851
+ function fi(e) {
1852
+ return je(e) || ArrayBuffer.isView(e) ? e : null;
1854
1853
  }
1855
- function ui(e) {
1856
- return li(e) || (w(e) ? e : null);
1854
+ function pi(e) {
1855
+ return fi(e) || (st(e) ? e : null);
1857
1856
  }
1858
- var di = {
1859
- clamp: si,
1857
+ var mi = {
1858
+ clamp: ui,
1860
1859
  format(e, t) {
1861
- return me(t)(e);
1860
+ return he(t)(e);
1862
1861
  },
1863
1862
  join(e, t) {
1864
- return li(e).join(t);
1863
+ return fi(e).join(t);
1865
1864
  },
1866
1865
  indexof(e, t, n) {
1867
- return ui(e).indexOf(t, n);
1866
+ return pi(e).indexOf(t, n);
1868
1867
  },
1869
1868
  lastindexof(e, t, n) {
1870
- return ui(e).lastIndexOf(t, n);
1869
+ return pi(e).lastIndexOf(t, n);
1871
1870
  },
1872
1871
  reverse(e) {
1873
- return w(e) ? Array.from(e).reverse().join("") : li(e).slice().reverse();
1872
+ return st(e) ? Array.from(e).reverse().join("") : fi(e).slice().reverse();
1874
1873
  },
1875
1874
  slice(e, t, n) {
1876
- return ui(e).slice(t, n);
1875
+ return pi(e).slice(t, n);
1877
1876
  },
1878
1877
  mapHasKey(e, t) {
1879
1878
  return e.has(t);
1880
1879
  },
1881
- isArray: C,
1882
- isBoolean: nt,
1880
+ isArray: je,
1881
+ isBoolean: it,
1883
1882
  isDefined(e) {
1884
1883
  return e !== void 0;
1885
1884
  },
1886
- isNumber: rt,
1887
- isObject: Ae,
1888
- isRegExp: it,
1889
- isString: w,
1885
+ isNumber: at,
1886
+ isObject: Me,
1887
+ isRegExp: ot,
1888
+ isString: st,
1890
1889
  isValid(e) {
1891
1890
  return e != null && e === e;
1892
1891
  },
1893
- lerp: at,
1894
- linearstep: ci,
1892
+ lerp: ct,
1893
+ linearstep: di,
1895
1894
  replace(e, t, n) {
1896
1895
  return String(e).replace(t, n);
1897
1896
  },
1898
1897
  sort(e) {
1899
- return li(e).slice().sort(Qe);
1898
+ return fi(e).slice().sort(et);
1900
1899
  },
1901
1900
  center(e) {
1902
- let t = li(e);
1901
+ let t = fi(e);
1903
1902
  return (t[0] + t[t.length - 1]) / 2;
1904
1903
  },
1905
1904
  span(e) {
1906
- return ot(e);
1905
+ return lt(e);
1907
1906
  },
1908
- smoothstep: oi
1907
+ smoothstep: li
1909
1908
  };
1910
- function fi(e) {
1911
- let t = !1, n = bi(e, {}, { resolveScaleResolution: () => (t = !0, {
1909
+ function hi(e) {
1910
+ let t = !1, n = Ci(e, {}, { resolveScaleResolution: () => (t = !0, {
1912
1911
  channel: "analysis",
1913
1912
  getDomainRef: () => void 0,
1914
1913
  getMappingRef: () => void 0,
1915
- getConfigurationRef: () => void 0
1914
+ getConfigurationRef: () => void 0,
1915
+ getZoomLevelRef: () => void 0
1916
1916
  }) });
1917
1917
  return {
1918
1918
  usesScaleHelper: t,
1919
1919
  globals: n.globals
1920
1920
  };
1921
1921
  }
1922
- function pi(e, t) {
1923
- let n = ri(e);
1924
- for (let e in di) n[e] = `this.${e}`;
1922
+ function gi(e, t) {
1923
+ let n = oi(e);
1924
+ for (let e in mi) n[e] = `this.${e}`;
1925
1925
  for (let r of [
1926
1926
  "scale",
1927
1927
  "invert",
1928
1928
  "domain",
1929
1929
  "range",
1930
1930
  "bandwidth",
1931
- "linearize"
1932
- ]) n[r] = (n) => mi(e, t, r, n);
1931
+ "linearize",
1932
+ "zoomLevel"
1933
+ ]) n[r] = (n) => _i(e, t, r, n);
1933
1934
  return n;
1934
1935
  }
1935
- function mi(e, t, n, r) {
1936
+ function _i(e, t, n, r) {
1937
+ if (n === "zoomLevel" && r.length === 0) {
1938
+ let e = [];
1939
+ for (let r of ["x", "y"]) {
1940
+ let i = t.resolveScaleResolution?.(r);
1941
+ if (i) {
1942
+ let a = t.getScaleHelper(n, r, i);
1943
+ e.push(`${t.globalvar}["${a.codeName}"]()`);
1944
+ }
1945
+ }
1946
+ return `Math.sqrt(${e.join("*") || "1"})`;
1947
+ }
1936
1948
  if (r.length === 0) throw Error(`Scale helper "${n}" requires a literal channel name.`);
1937
1949
  if ((n === "scale" || n === "invert" || n === "linearize") && r.length < 2) throw Error(`Scale helper "${n}" requires a channel name and a value.`);
1938
- let i = hi(r[0]);
1950
+ if (n === "zoomLevel" && r.length > 1) throw Error("Scale helper \"zoomLevel\" accepts zero arguments or one literal channel name.");
1951
+ let i = vi(r[0]);
1939
1952
  if (!i) throw Error(`Scale helper "${n}" requires a literal channel name.`);
1940
1953
  let a = t.resolveScaleResolution?.(i);
1941
1954
  if (!a) throw Error(`Unknown scale channel "${i}" in expression helper "${n}".`);
1942
1955
  let o = t.getScaleHelper(n, i, a), s = r.slice(1).map((t) => e(t)).join(",");
1943
1956
  return `${t.globalvar}["${o.codeName}"](${s})`;
1944
1957
  }
1945
- function hi(e) {
1958
+ function vi(e) {
1946
1959
  return e?.type === "Literal" && typeof e.value == "string" ? e.value : void 0;
1947
1960
  }
1948
- function gi(e, t) {
1949
- let n = (n) => vi(t, e, n);
1961
+ function yi(e, t) {
1962
+ let n = (n) => xi(t, e, n);
1950
1963
  if (e === "domain") return () => n(() => t.getDomain());
1951
1964
  if (e === "range") return () => n(() => t.getScale().range());
1952
1965
  if (e === "bandwidth") return () => n(() => {
@@ -1957,63 +1970,64 @@ function gi(e, t) {
1957
1970
  if (e === "scale") return (e) => n(() => t.getScale()(e));
1958
1971
  if (e === "invert") return (e) => n(() => t.getScale().invert(e));
1959
1972
  if (e === "linearize") return (e) => n(() => e == null ? null : typeof t.fromComplex == "function" ? t.fromComplex(e) : e);
1973
+ if (e === "zoomLevel") return () => n(() => t.getZoomLevel());
1960
1974
  throw Error("Unknown scale helper: " + e);
1961
1975
  }
1962
- var _i = /* @__PURE__ */ new WeakSet();
1963
- function vi(e, t, n) {
1964
- if (_i.has(e)) throw Error(`Scale helper cycle detected while evaluating ${t}("${e.channel}").`);
1965
- _i.add(e);
1976
+ var bi = /* @__PURE__ */ new WeakSet();
1977
+ function xi(e, t, n) {
1978
+ if (bi.has(e)) throw Error(`Scale helper cycle detected while evaluating ${t}("${e.channel}").`);
1979
+ bi.add(e);
1966
1980
  try {
1967
1981
  return n();
1968
1982
  } finally {
1969
- _i.delete(e);
1983
+ bi.delete(e);
1970
1984
  }
1971
1985
  }
1972
- function yi(e, t) {
1973
- return e === "domain" ? t.getDomainRef() : e === "linearize" ? t.getConfigurationRef() : t.getMappingRef();
1986
+ function Si(e, t) {
1987
+ return e === "domain" ? t.getDomainRef() : e === "linearize" ? t.getConfigurationRef() : e === "zoomLevel" ? t.getZoomLevelRef() : t.getMappingRef();
1974
1988
  }
1975
- function bi(e, t = {}, n = {}) {
1989
+ function Ci(e, t = {}, n = {}) {
1976
1990
  try {
1977
- let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = 1, o = {
1991
+ let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set(), o = 1, s = {
1978
1992
  ...n,
1979
1993
  globalvar: "globalObject",
1980
1994
  globalObject: t,
1981
- getScaleHelper(e, n, o) {
1982
- let s = e + ":" + n, c = i.get(s);
1983
- if (c) return c;
1984
- let l = r.get(s);
1985
- l || (l = yi(e, o), r.set(s, l));
1986
- let u = "__scale_helper_" + a++, d = {
1987
- codeName: u,
1988
- dependency: l
1995
+ getScaleHelper(e, n, s) {
1996
+ let c = e + ":" + n, l = i.get(c);
1997
+ if (l) return l;
1998
+ let u = r.get(c);
1999
+ u || (u = Si(e, s), r.set(c, u));
2000
+ let d = "__scale_helper_" + o++, f = {
2001
+ codeName: d,
2002
+ dependency: u
1989
2003
  };
1990
- return i.set(s, d), t[u] = gi(e, o), d;
2004
+ return i.set(c, f), e === "zoomLevel" && a.add(s), t[d] = yi(e, s), f;
1991
2005
  }
1992
- }, s = ai({
2006
+ }, c = ci({
1993
2007
  forbidden: [],
1994
2008
  allowed: ["datum", "undefined"],
1995
2009
  globalvar: "globalObject",
1996
2010
  fieldvar: "datum",
1997
- functions: (e) => pi(e, o)
1998
- })(ti(e)), c = Function("datum", "globalObject", `"use strict";
2011
+ functions: (e) => gi(e, s)
2012
+ })(ii(e)), l = Function("datum", "globalObject", `"use strict";
1999
2013
  try {
2000
- return (${s.code});
2014
+ return (${c.code});
2001
2015
  } catch (e) {
2002
2016
  throw new Error("Error evaluating expression: " + ${JSON.stringify(e)} + ", " + e.message, e);
2003
- }`).bind(di), l = (e) => c(e, t);
2004
- return l.fields = s.fields, l.globals = s.globals, l.code = s.code, l.scaleDependencies = Array.from(new Set(r.values())), l;
2017
+ }`).bind(mi), u = (e) => l(e, t);
2018
+ 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;
2005
2019
  } catch (t) {
2006
2020
  throw Error(`Invalid expression: ${e}, ${t.message}`, { cause: t });
2007
2021
  }
2008
2022
  }
2009
- var xi = ai({
2023
+ var wi = ci({
2010
2024
  forbidden: [],
2011
2025
  allowed: ["event"],
2012
2026
  globalvar: "globalObject"
2013
2027
  });
2014
- function Si(e) {
2028
+ function Ti(e) {
2015
2029
  try {
2016
- let t = xi(ti(e));
2030
+ let t = wi(ii(e));
2017
2031
  return Function("event", "globalObject", `"use strict";
2018
2032
  try {
2019
2033
  return !!(${t.code});
@@ -2026,7 +2040,7 @@ function Si(e) {
2026
2040
  }
2027
2041
  //#endregion
2028
2042
  //#region ../core/src/utils/interactionConfig.js
2029
- function Ci(e) {
2043
+ function Ei(e) {
2030
2044
  if (typeof e == "string") {
2031
2045
  let t = e.match(/^([a-zA-Z]+)(?:\[(.+)\])?$/);
2032
2046
  if (!t) throw Error(`Invalid event type string: ${e}`);
@@ -2034,36 +2048,36 @@ function Ci(e) {
2034
2048
  return r && (i.filter = r), i;
2035
2049
  } else return e;
2036
2050
  }
2037
- function wi(e) {
2038
- return e?.filter ? Si(e.filter) : () => !0;
2051
+ function Di(e) {
2052
+ return e?.filter ? Ti(e.filter) : () => !0;
2039
2053
  }
2040
- function Ti(e, t, n) {
2054
+ function Oi(e, t, n) {
2041
2055
  if (!t.includes(e.type)) throw Error(n);
2042
2056
  return e;
2043
2057
  }
2044
2058
  //#endregion
2045
2059
  //#region ../core/src/selection/selection.js
2046
- function Ei(e) {
2060
+ function ki(e) {
2047
2061
  return {
2048
2062
  type: "single",
2049
2063
  datum: e,
2050
- uniqueId: e?.[T]
2064
+ uniqueId: e?.[S]
2051
2065
  };
2052
2066
  }
2053
- function Di(e) {
2067
+ function Ai(e) {
2054
2068
  return e ??= [], {
2055
2069
  type: "multi",
2056
- data: new Map(e.map((e) => [e[T], e]))
2070
+ data: new Map(e.map((e) => [e[S], e]))
2057
2071
  };
2058
2072
  }
2059
- function Oi(e, t) {
2073
+ function ji(e, t) {
2060
2074
  if (!t || t.length === 0) return;
2061
- let n = t.map((e) => yt(e)), r = (e) => n.map((t) => t(e));
2062
- if (Pi(e)) return e.datum ? [r(e.datum)] : [];
2063
- if (Fi(e)) return [...e.data.values()].map(r);
2075
+ let n = t.map((e) => St(e)), r = (e) => n.map((t) => t(e));
2076
+ if (U(e)) return e.datum ? [r(e.datum)] : [];
2077
+ if (W(e)) return [...e.data.values()].map(r);
2064
2078
  throw Error(`Expected a point selection, got: ${JSON.stringify(e)}`);
2065
2079
  }
2066
- function ki(e, t, n, r) {
2080
+ function Mi(e, t, n, r) {
2067
2081
  if (!t || t.length === 0) return;
2068
2082
  if (e === "single" && n.length > 1) throw Error("Single point selections expect at most one key tuple.");
2069
2083
  let i = [], a = [];
@@ -2072,22 +2086,22 @@ function ki(e, t, n, r) {
2072
2086
  n ? i.push(n) : a.push(e);
2073
2087
  }
2074
2088
  return {
2075
- selection: e === "single" ? Ei(i[0] ?? null) : Di(i),
2089
+ selection: e === "single" ? ki(i[0] ?? null) : Ai(i),
2076
2090
  unresolved: a
2077
2091
  };
2078
2092
  }
2079
- function Ai(e) {
2093
+ function Ni(e) {
2080
2094
  return {
2081
2095
  type: "interval",
2082
2096
  intervals: Object.fromEntries(e.map((e) => [e, null]))
2083
2097
  };
2084
2098
  }
2085
- function ji(e, { add: t, remove: n, toggle: r }) {
2099
+ function Pi(e, { add: t, remove: n, toggle: r }) {
2086
2100
  let i = e.data;
2087
- for (let e of t ?? []) i.set(e[T], e);
2088
- for (let e of n ?? []) i.delete(e[T]);
2101
+ for (let e of t ?? []) i.set(e[S], e);
2102
+ for (let e of n ?? []) i.delete(e[S]);
2089
2103
  for (let e of r ?? []) {
2090
- let t = e[T];
2104
+ let t = e[S];
2091
2105
  i.has(t) ? i.delete(t) : i.set(t, e);
2092
2106
  }
2093
2107
  return {
@@ -2095,49 +2109,108 @@ function ji(e, { add: t, remove: n, toggle: r }) {
2095
2109
  data: i
2096
2110
  };
2097
2111
  }
2098
- function Mi(e, t) {
2099
- let n = !!(e.empty ?? !0), r = Ki(e.param), i = e.fields ?? {};
2100
- if (Pi(t)) return `${r}.uniqueId == null ? ${n} : ${r}.uniqueId === datum[${JSON.stringify(T)}]`;
2101
- if (Fi(t)) return `${r}.data.size == 0 ? ${n} : mapHasKey(${r}.data, datum[${JSON.stringify(T)}])`;
2102
- if (Ni(t)) {
2103
- let a = Object.keys(t.intervals), o = Object.keys(i).filter(Zt);
2112
+ function Fi(e, t) {
2113
+ let n = !!(e.empty ?? !0), r = $i(e.param), i = e.fields ?? {};
2114
+ if (U(t)) return `${r}.uniqueId == null ? ${n} : ${r}.uniqueId === datum[${JSON.stringify(S)}]`;
2115
+ if (W(t)) return `${r}.data.size == 0 ? ${n} : mapHasKey(${r}.data, datum[${JSON.stringify(S)}])`;
2116
+ if (H(t)) {
2117
+ let a = Object.keys(t.intervals), o = Object.keys(i).filter(en);
2104
2118
  if (o.length === 0) throw Error("Filtering using interval selections requires at least one primary positional channel in the config! " + JSON.stringify(e));
2105
2119
  if (o.some((e) => !a.includes(e))) throw Error(`Selection channels (${a.join(", ")}) do not match the fields: ${JSON.stringify(e)}!`);
2106
2120
  let s = (e) => `datum[${JSON.stringify(e)}]`;
2107
2121
  return a.map((e) => {
2108
- let t = on(e), a = i[e], o = i[t] ?? i[e], c = `${r}.intervals.${e}[0] <= ${s(o)}`, l = `${s(a)} <= ${r}.intervals.${e}[1]`;
2122
+ let t = ln(e), a = i[e], o = i[t] ?? i[e], c = `${r}.intervals.${e}[0] <= ${s(o)}`, l = `${s(a)} <= ${r}.intervals.${e}[1]`;
2109
2123
  return `(${r}.intervals.${e} ? (${c} && ${l}) : ${n})`;
2110
2124
  }).join(" && ");
2111
2125
  } else throw Error(`Unrecognized selection type : ${JSON.stringify(t)}`);
2112
2126
  }
2113
- function Ni(e) {
2127
+ function Ii(e) {
2128
+ if (!("param" in e) && !("test" in e)) return;
2129
+ let { param: t, empty: n = !0 } = "test" in e ? e.test : e;
2130
+ if (typeof t == "string") return {
2131
+ params: [$i(t)],
2132
+ empty: n,
2133
+ singleParam: !0
2134
+ };
2135
+ if (t.or.length === 0) throw Error("Selection test \"or\" must be a nonempty array.");
2136
+ return {
2137
+ params: Array.from(new Set(t.or.map($i))),
2138
+ empty: n,
2139
+ singleParam: !1
2140
+ };
2141
+ }
2142
+ function Li(e) {
2143
+ return e?.selection?.params ?? [];
2144
+ }
2145
+ function Ri(e) {
2146
+ let t = /* @__PURE__ */ new Map();
2147
+ for (let n of Object.values(e)) for (let { predicate: e } of n.branches) {
2148
+ let n = e.selection;
2149
+ if (n) for (let e of n.params) t.set(e, t.get(e) || !n.singleParam);
2150
+ }
2151
+ return t;
2152
+ }
2153
+ function zi(e, t) {
2154
+ if (U(t)) return `${e}.uniqueId == null`;
2155
+ if (W(t)) return `${e}.data.size == 0`;
2156
+ if (H(t)) {
2157
+ let n = Object.keys(t.intervals);
2158
+ return n.length == 0 ? "true" : `!(${n.map((t) => `${e}.intervals.${t}`).join(" || ")})`;
2159
+ }
2160
+ throw Error(`Unsupported selection type: ${t.type}`);
2161
+ }
2162
+ function Bi(e, t, n, r) {
2163
+ if (U(t)) return `${e}.uniqueId != null && ${e}.uniqueId === datum[${JSON.stringify(S)}]`;
2164
+ if (W(t)) return `${e}.data.size != 0 && mapHasKey(${e}.data, datum[${JSON.stringify(S)}])`;
2165
+ if (H(t)) {
2166
+ let i = Object.keys(t.intervals);
2167
+ if (i.length == 0) return "false";
2168
+ let a = (e) => `datum[${JSON.stringify(e)}]`, o = i.map((t) => {
2169
+ let i = ln(t), o = n[t], s = n[i] ?? n[t], c = `${e}.intervals.${t}`;
2170
+ 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])`})`;
2171
+ });
2172
+ return `!!(${i.map((t) => `${e}.intervals.${t}`).join(" || ")}) && (${o.join(" && ")})`;
2173
+ }
2174
+ throw Error(`Unsupported selection type: ${t.type}`);
2175
+ }
2176
+ function Vi(e, t, n = "intersects") {
2177
+ let r = `(${e.map(({ param: e, selection: t, fields: r }) => Bi(e, t, r, n)).join(" || ")})`;
2178
+ return t ? `((${e.map(({ param: e, selection: t }) => zi(e, t)).join(" && ")}) || ${r})` : r;
2179
+ }
2180
+ function H(e) {
2114
2181
  return e.type === "interval";
2115
2182
  }
2116
- function Pi(e) {
2183
+ function U(e) {
2117
2184
  return e.type === "single";
2118
2185
  }
2119
- function Fi(e) {
2186
+ function W(e) {
2120
2187
  return e.type === "multi";
2121
2188
  }
2122
- function Ii(e) {
2189
+ function Hi(e) {
2123
2190
  let t = typeof e == "string" ? { type: e } : { ...e };
2124
- return t.on = t.on ? Ci(t.on) : Li(t) ? { type: "click" } : void 0, t.clear = t.clear === !1 ? void 0 : t.clear === !0 || t.clear == null ? { type: "dblclick" } : Ci(t.clear), Li(t) && t.on.type === "click" && (t.toggle = !0), t;
2191
+ return t.on = t.on ? Ei(t.on) : Ui(t) ? { type: "click" } : void 0, t.clear = t.clear === !1 ? void 0 : t.clear === !0 || t.clear == null ? { type: "dblclick" } : Ei(t.clear), Ui(t) && t.on.type === "click" && (t.toggle = !0), t;
2125
2192
  }
2126
- function Li(e) {
2193
+ function Ui(e) {
2127
2194
  return e && e.type == "point";
2128
2195
  }
2129
- function Ri(e) {
2196
+ function Wi(e) {
2130
2197
  return e && e.type == "interval";
2131
2198
  }
2132
- function zi(e) {
2199
+ function Gi(e) {
2200
+ if (U(e)) return e.uniqueId != null;
2201
+ if (W(e)) return e.data.size > 0;
2202
+ if (H(e)) return Ki(e);
2203
+ throw Error(`Unsupported selection type: ${e.type}`);
2204
+ }
2205
+ function Ki(e) {
2133
2206
  return Object.values(e.intervals).some((e) => e && e.length === 2);
2134
2207
  }
2135
- function Bi(e, t) {
2208
+ function qi(e, t) {
2136
2209
  return Object.entries(e.intervals).every(([e, n]) => (e == "x" || e == "y") && n && n[0] <= t[e] && n[1] >= t[e]);
2137
2210
  }
2138
2211
  //#endregion
2139
2212
  //#region ../core/src/ruler/rulerValue.js
2140
- function Vi(e = ["x"], t = {}) {
2213
+ function Ji(e = ["x"], t = {}) {
2141
2214
  let n = {};
2142
2215
  for (let r of e) n[r] = t[r] ?? null;
2143
2216
  return {
@@ -2148,36 +2221,36 @@ function Vi(e = ["x"], t = {}) {
2148
2221
  //#endregion
2149
2222
  //#region ../core/src/paramRuntime/paramUtils.js
2150
2223
  function G(e) {
2151
- return typeof e == "object" && !!e && "expr" in e && w(e.expr);
2224
+ return typeof e == "object" && !!e && "expr" in e && st(e.expr);
2152
2225
  }
2153
- function Hi(e) {
2226
+ function Yi(e) {
2154
2227
  if (G(e)) throw Error("ExprRef " + JSON.stringify(e) + " not allowed here. Expected a scalar value.");
2155
2228
  return e;
2156
2229
  }
2157
- function Ui(e) {
2230
+ function Xi(e) {
2158
2231
  return ("expr" in e || "bind" in e) && !("select" in e) && !("ruler" in e);
2159
2232
  }
2160
- function Wi(e) {
2233
+ function Zi(e) {
2161
2234
  return !("expr" in e || "bind" in e) && "select" in e;
2162
2235
  }
2163
- function Gi(e) {
2236
+ function Qi(e) {
2164
2237
  return !("expr" in e || "bind" in e || "select" in e) && "ruler" in e;
2165
2238
  }
2166
- function Ki(e) {
2239
+ function $i(e) {
2167
2240
  if (!/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)) throw Error("Invalid parameter name: " + e + ". Must be a valid JavaScript identifier.");
2168
2241
  return e;
2169
2242
  }
2170
- function qi(e, t, n) {
2243
+ function ea(e, t, n) {
2171
2244
  if ("select" in e) {
2172
- let t = Ii(e.select);
2173
- if (Li(t)) return t.toggle ? Di() : Ei(null);
2174
- if (Ri(t)) {
2245
+ let t = Hi(e.select);
2246
+ if (Ui(t)) return t.toggle ? Ai() : ki(null);
2247
+ if (Wi(t)) {
2175
2248
  if (!t.encodings) throw Error("Interval selection \"" + e.name + "\" must have encodings defined!");
2176
- return Ai(t.encodings);
2249
+ return Ni(t.encodings);
2177
2250
  }
2178
2251
  throw Error("Unknown selection config for parameter \"" + e.name + "\".");
2179
2252
  }
2180
- if ("ruler" in e) return Vi(e.ruler.encodings, e.value);
2253
+ if ("ruler" in e) return Ji(e.ruler.encodings, e.value);
2181
2254
  if ("expr" in e) {
2182
2255
  let r = n ?? t?.createExpression(e.expr);
2183
2256
  if (!r) throw Error("Cannot evaluate expression for parameter \"" + e.name + "\".");
@@ -2185,54 +2258,34 @@ function qi(e, t, n) {
2185
2258
  }
2186
2259
  return "value" in e ? e.value : null;
2187
2260
  }
2188
- function Ji(e, t, n, r, i = {}) {
2189
- let a = { ...t }, o = /* @__PURE__ */ new Set(), s = !1, c = !1, l = i.batchMode ?? "microtask";
2190
- r?.(() => {
2191
- c = !0, o.clear(), s = !1;
2192
- });
2193
- let u = () => {
2194
- if (c) return;
2195
- if (!n || o.size === 0) {
2196
- s = !1;
2197
- return;
2198
- }
2199
- let e = new Set(o);
2200
- o.clear(), s = !1, n(e);
2201
- }, d = (t) => {
2202
- c || (o.add(t), s || (s = !0, queueMicrotask(() => {
2203
- c || (l == "whenPropagated" && e.whenPropagated ? e.whenPropagated().then(u).catch(() => {
2204
- u();
2205
- }) : u());
2206
- })));
2207
- };
2208
- for (let [i, o] of Object.entries(t)) if (G(o)) if (n) {
2209
- let t = () => d(i), n = e.watchExpression ? e.watchExpression(o.expr, t, {
2210
- scopeOwned: !r,
2211
- registerDisposer: r
2212
- }) : e.createExpression(o.expr);
2213
- if (!e.watchExpression) {
2214
- let e = n.subscribe(t);
2215
- r?.(e);
2216
- }
2217
- Object.defineProperty(a, i, {
2261
+ function ta(e, t, n, r, i = []) {
2262
+ let a = { ...t }, o = [];
2263
+ for (let [r, i] of Object.entries(t)) if (G(i)) {
2264
+ let t = e.createExpression(i.expr), s = o.push({
2265
+ key: r,
2266
+ fn: t
2267
+ }) - 1;
2268
+ Object.defineProperty(a, r, {
2218
2269
  enumerable: !0,
2219
- get() {
2220
- return n();
2221
- }
2270
+ get: n ? () => c.get()[s] : () => t(null)
2222
2271
  });
2223
- } else {
2224
- let t = e.createExpression(o.expr);
2225
- Object.defineProperty(a, i, {
2226
- enumerable: !0,
2227
- get() {
2228
- return t();
2229
- }
2230
- });
2231
- }
2232
- else a[i] = o;
2233
- return a;
2272
+ } else a[r] = i;
2273
+ if (!n) return a;
2274
+ for (let { key: t, expr: n } of i) o.push({
2275
+ key: t,
2276
+ fn: e.createExpression(n.expr)
2277
+ });
2278
+ if (!o.length) return a;
2279
+ 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: na }), l = c.get(), u = e.effect([c], () => {
2280
+ let e = c.get(), t = new Set(o.filter((t, n) => l[n] !== e[n]).map(({ key: e }) => e));
2281
+ l = e, n(t);
2282
+ });
2283
+ return r?.(c.dispose), r?.(u), a;
2234
2284
  }
2235
- function Yi(e, t, n, r) {
2285
+ function na(e, t) {
2286
+ return e.every((e, n) => e === t[n]);
2287
+ }
2288
+ function ra(e, t, n, r) {
2236
2289
  if (!G(t)) return t;
2237
2290
  let i = () => {
2238
2291
  throw Error(n);
@@ -2246,8 +2299,9 @@ function Yi(e, t, n, r) {
2246
2299
  }
2247
2300
  return a();
2248
2301
  }
2249
- function Xi(e) {
2302
+ function ia(e) {
2250
2303
  return Object.assign(() => e, {
2304
+ dependencies: [],
2251
2305
  subscribe: () => () => void 0,
2252
2306
  invalidate: () => void 0,
2253
2307
  identifier: () => "constant",
@@ -2258,10 +2312,10 @@ function Xi(e) {
2258
2312
  }
2259
2313
  //#endregion
2260
2314
  //#region ../../node_modules/d3-color/src/define.js
2261
- function Zi(e, t, n) {
2315
+ function aa(e, t, n) {
2262
2316
  e.prototype = t.prototype = n, n.constructor = e;
2263
2317
  }
2264
- function Qi(e, t) {
2318
+ function oa(e, t) {
2265
2319
  var n = Object.create(e.prototype);
2266
2320
  for (var r in t) n[r] = t[r];
2267
2321
  return n;
@@ -2269,7 +2323,7 @@ function Qi(e, t) {
2269
2323
  //#endregion
2270
2324
  //#region ../../node_modules/d3-color/src/color.js
2271
2325
  function K() {}
2272
- var q = .7, $i = 1 / q, J = "\\s*([+-]?\\d+)\\s*", ea = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Y = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", ta = /^#([0-9a-f]{3,8})$/, na = RegExp(`^rgb\\(${J},${J},${J}\\)$`), ra = RegExp(`^rgb\\(${Y},${Y},${Y}\\)$`), ia = RegExp(`^rgba\\(${J},${J},${J},${ea}\\)$`), aa = RegExp(`^rgba\\(${Y},${Y},${Y},${ea}\\)$`), oa = RegExp(`^hsl\\(${ea},${Y},${Y}\\)$`), sa = RegExp(`^hsla\\(${ea},${Y},${Y},${ea}\\)$`), ca = {
2326
+ var q = .7, sa = 1 / q, J = "\\s*([+-]?\\d+)\\s*", ca = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Y = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", la = /^#([0-9a-f]{3,8})$/, ua = RegExp(`^rgb\\(${J},${J},${J}\\)$`), da = RegExp(`^rgb\\(${Y},${Y},${Y}\\)$`), fa = RegExp(`^rgba\\(${J},${J},${J},${ca}\\)$`), pa = RegExp(`^rgba\\(${Y},${Y},${Y},${ca}\\)$`), ma = RegExp(`^hsl\\(${ca},${Y},${Y}\\)$`), ha = RegExp(`^hsla\\(${ca},${Y},${Y},${ca}\\)$`), ga = {
2273
2327
  aliceblue: 15792383,
2274
2328
  antiquewhite: 16444375,
2275
2329
  aqua: 65535,
@@ -2419,54 +2473,54 @@ var q = .7, $i = 1 / q, J = "\\s*([+-]?\\d+)\\s*", ea = "\\s*([+-]?(?:\\d*\\.)?\
2419
2473
  yellow: 16776960,
2420
2474
  yellowgreen: 10145074
2421
2475
  };
2422
- Zi(K, pa, {
2476
+ aa(K, xa, {
2423
2477
  copy(e) {
2424
2478
  return Object.assign(new this.constructor(), this, e);
2425
2479
  },
2426
2480
  displayable() {
2427
2481
  return this.rgb().displayable();
2428
2482
  },
2429
- hex: la,
2430
- formatHex: la,
2431
- formatHex8: ua,
2432
- formatHsl: da,
2433
- formatRgb: fa,
2434
- toString: fa
2483
+ hex: _a,
2484
+ formatHex: _a,
2485
+ formatHex8: va,
2486
+ formatHsl: ya,
2487
+ formatRgb: ba,
2488
+ toString: ba
2435
2489
  });
2436
- function la() {
2490
+ function _a() {
2437
2491
  return this.rgb().formatHex();
2438
2492
  }
2439
- function ua() {
2493
+ function va() {
2440
2494
  return this.rgb().formatHex8();
2441
2495
  }
2442
- function da() {
2443
- return Ca(this).formatHsl();
2496
+ function ya() {
2497
+ return ja(this).formatHsl();
2444
2498
  }
2445
- function fa() {
2499
+ function ba() {
2446
2500
  return this.rgb().formatRgb();
2447
2501
  }
2448
- function pa(e) {
2502
+ function xa(e) {
2449
2503
  var t, n;
2450
- return e = (e + "").trim().toLowerCase(), (t = ta.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? ma(t) : n === 3 ? new X(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? ha(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? ha(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 = na.exec(e)) ? new X(t[1], t[2], t[3], 1) : (t = ra.exec(e)) ? new X(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = ia.exec(e)) ? ha(t[1], t[2], t[3], t[4]) : (t = aa.exec(e)) ? ha(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = oa.exec(e)) ? Sa(t[1], t[2] / 100, t[3] / 100, 1) : (t = sa.exec(e)) ? Sa(t[1], t[2] / 100, t[3] / 100, t[4]) : ca.hasOwnProperty(e) ? ma(ca[e]) : e === "transparent" ? new X(NaN, NaN, NaN, 0) : null;
2504
+ return e = (e + "").trim().toLowerCase(), (t = la.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? Sa(t) : n === 3 ? new X(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? Ca(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? Ca(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 = ua.exec(e)) ? new X(t[1], t[2], t[3], 1) : (t = da.exec(e)) ? new X(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = fa.exec(e)) ? Ca(t[1], t[2], t[3], t[4]) : (t = pa.exec(e)) ? Ca(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = ma.exec(e)) ? Aa(t[1], t[2] / 100, t[3] / 100, 1) : (t = ha.exec(e)) ? Aa(t[1], t[2] / 100, t[3] / 100, t[4]) : ga.hasOwnProperty(e) ? Sa(ga[e]) : e === "transparent" ? new X(NaN, NaN, NaN, 0) : null;
2451
2505
  }
2452
- function ma(e) {
2506
+ function Sa(e) {
2453
2507
  return new X(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
2454
2508
  }
2455
- function ha(e, t, n, r) {
2509
+ function Ca(e, t, n, r) {
2456
2510
  return r <= 0 && (e = t = n = NaN), new X(e, t, n, r);
2457
2511
  }
2458
- function ga(e) {
2459
- return e instanceof K || (e = pa(e)), e ? (e = e.rgb(), new X(e.r, e.g, e.b, e.opacity)) : new X();
2512
+ function wa(e) {
2513
+ return e instanceof K || (e = xa(e)), e ? (e = e.rgb(), new X(e.r, e.g, e.b, e.opacity)) : new X();
2460
2514
  }
2461
- function _a(e, t, n, r) {
2462
- return arguments.length === 1 ? ga(e) : new X(e, t, n, r ?? 1);
2515
+ function Ta(e, t, n, r) {
2516
+ return arguments.length === 1 ? wa(e) : new X(e, t, n, r ?? 1);
2463
2517
  }
2464
2518
  function X(e, t, n, r) {
2465
2519
  this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
2466
2520
  }
2467
- Zi(X, _a, Qi(K, {
2521
+ aa(X, Ta, oa(K, {
2468
2522
  brighter(e) {
2469
- return e = e == null ? $i : $i ** +e, new X(this.r * e, this.g * e, this.b * e, this.opacity);
2523
+ return e = e == null ? sa : sa ** +e, new X(this.r * e, this.g * e, this.b * e, this.opacity);
2470
2524
  },
2471
2525
  darker(e) {
2472
2526
  return e = e == null ? q : q ** +e, new X(this.r * e, this.g * e, this.b * e, this.opacity);
@@ -2475,28 +2529,28 @@ Zi(X, _a, Qi(K, {
2475
2529
  return this;
2476
2530
  },
2477
2531
  clamp() {
2478
- return new X(Z(this.r), Z(this.g), Z(this.b), xa(this.opacity));
2532
+ return new X(Z(this.r), Z(this.g), Z(this.b), ka(this.opacity));
2479
2533
  },
2480
2534
  displayable() {
2481
2535
  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;
2482
2536
  },
2483
- hex: va,
2484
- formatHex: va,
2485
- formatHex8: ya,
2486
- formatRgb: ba,
2487
- toString: ba
2537
+ hex: Ea,
2538
+ formatHex: Ea,
2539
+ formatHex8: Da,
2540
+ formatRgb: Oa,
2541
+ toString: Oa
2488
2542
  }));
2489
- function va() {
2543
+ function Ea() {
2490
2544
  return `#${Q(this.r)}${Q(this.g)}${Q(this.b)}`;
2491
2545
  }
2492
- function ya() {
2546
+ function Da() {
2493
2547
  return `#${Q(this.r)}${Q(this.g)}${Q(this.b)}${Q((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
2494
2548
  }
2495
- function ba() {
2496
- let e = xa(this.opacity);
2549
+ function Oa() {
2550
+ let e = ka(this.opacity);
2497
2551
  return `${e === 1 ? "rgb(" : "rgba("}${Z(this.r)}, ${Z(this.g)}, ${Z(this.b)}${e === 1 ? ")" : `, ${e})`}`;
2498
2552
  }
2499
- function xa(e) {
2553
+ function ka(e) {
2500
2554
  return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
2501
2555
  }
2502
2556
  function Z(e) {
@@ -2505,57 +2559,57 @@ function Z(e) {
2505
2559
  function Q(e) {
2506
2560
  return e = Z(e), (e < 16 ? "0" : "") + e.toString(16);
2507
2561
  }
2508
- function Sa(e, t, n, r) {
2562
+ function Aa(e, t, n, r) {
2509
2563
  return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new $(e, t, n, r);
2510
2564
  }
2511
- function Ca(e) {
2565
+ function ja(e) {
2512
2566
  if (e instanceof $) return new $(e.h, e.s, e.l, e.opacity);
2513
- if (e instanceof K || (e = pa(e)), !e) return new $();
2567
+ if (e instanceof K || (e = xa(e)), !e) return new $();
2514
2568
  if (e instanceof $) return e;
2515
2569
  e = e.rgb();
2516
2570
  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;
2517
2571
  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 $(o, s, c, e.opacity);
2518
2572
  }
2519
- function wa(e, t, n, r) {
2520
- return arguments.length === 1 ? Ca(e) : new $(e, t, n, r ?? 1);
2573
+ function Ma(e, t, n, r) {
2574
+ return arguments.length === 1 ? ja(e) : new $(e, t, n, r ?? 1);
2521
2575
  }
2522
2576
  function $(e, t, n, r) {
2523
2577
  this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
2524
2578
  }
2525
- Zi($, wa, Qi(K, {
2579
+ aa($, Ma, oa(K, {
2526
2580
  brighter(e) {
2527
- return e = e == null ? $i : $i ** +e, new $(this.h, this.s, this.l * e, this.opacity);
2581
+ return e = e == null ? sa : sa ** +e, new $(this.h, this.s, this.l * e, this.opacity);
2528
2582
  },
2529
2583
  darker(e) {
2530
2584
  return e = e == null ? q : q ** +e, new $(this.h, this.s, this.l * e, this.opacity);
2531
2585
  },
2532
2586
  rgb() {
2533
2587
  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;
2534
- return new X(Da(e >= 240 ? e - 240 : e + 120, i, r), Da(e, i, r), Da(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
2588
+ return new X(Fa(e >= 240 ? e - 240 : e + 120, i, r), Fa(e, i, r), Fa(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
2535
2589
  },
2536
2590
  clamp() {
2537
- return new $(Ta(this.h), Ea(this.s), Ea(this.l), xa(this.opacity));
2591
+ return new $(Na(this.h), Pa(this.s), Pa(this.l), ka(this.opacity));
2538
2592
  },
2539
2593
  displayable() {
2540
2594
  return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
2541
2595
  },
2542
2596
  formatHsl() {
2543
- let e = xa(this.opacity);
2544
- return `${e === 1 ? "hsl(" : "hsla("}${Ta(this.h)}, ${Ea(this.s) * 100}%, ${Ea(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
2597
+ let e = ka(this.opacity);
2598
+ return `${e === 1 ? "hsl(" : "hsla("}${Na(this.h)}, ${Pa(this.s) * 100}%, ${Pa(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
2545
2599
  }
2546
2600
  }));
2547
- function Ta(e) {
2601
+ function Na(e) {
2548
2602
  return e = (e || 0) % 360, e < 0 ? e + 360 : e;
2549
2603
  }
2550
- function Ea(e) {
2604
+ function Pa(e) {
2551
2605
  return Math.max(0, Math.min(1, e || 0));
2552
2606
  }
2553
- function Da(e, t, n) {
2607
+ function Fa(e, t, n) {
2554
2608
  return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
2555
2609
  }
2556
2610
  //#endregion
2557
2611
  //#region ../core/src/view/renderingContext/clipOptions.js
2558
- function Oa(e) {
2612
+ function Ia(e) {
2559
2613
  if (e.clip) return e.clip;
2560
2614
  if (e.clipRect) return {
2561
2615
  rect: e.clipRect,
@@ -2563,36 +2617,36 @@ function Oa(e) {
2563
2617
  clipY: !0
2564
2618
  };
2565
2619
  }
2566
- function ka(e, t) {
2620
+ function La(e, t) {
2567
2621
  return e === t ? !0 : !e || !t ? !1 : e.clipX === t.clipX && e.clipY === t.clipY && e.rect.equals(t.rect);
2568
2622
  }
2569
- function Aa(e, t, n) {
2623
+ function Ra(e, t, n) {
2570
2624
  return t || n ? {
2571
2625
  rect: e,
2572
2626
  clipX: t,
2573
2627
  clipY: n
2574
2628
  } : void 0;
2575
2629
  }
2576
- function ja(e, t) {
2630
+ function za(e, t) {
2577
2631
  return t ? t.clipX && t.clipY ? e.intersect(t.rect) : t.clipX ? e.intersectX(t.rect) : t.clipY ? e.intersectY(t.rect) : e : e;
2578
2632
  }
2579
- function Ma(e, t) {
2633
+ function Ba(e, t) {
2580
2634
  if (!e) return t;
2581
2635
  if (!t) return e;
2582
2636
  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;
2583
- return Aa(e.rect.modify({
2637
+ return Ra(e.rect.modify({
2584
2638
  x: () => i.x,
2585
2639
  y: () => a.y,
2586
2640
  width: () => i.width,
2587
2641
  height: () => a.height
2588
2642
  }), n, r);
2589
2643
  }
2590
- function Na(e, t) {
2591
- if (e === !0) return Aa(t, !0, !0);
2592
- if (e === "x") return Aa(t, !0, !1);
2593
- if (e === "y") return Aa(t, !1, !0);
2644
+ function Va(e, t) {
2645
+ if (e === !0) return Ra(t, !0, !0);
2646
+ if (e === "x") return Ra(t, !0, !1);
2647
+ if (e === "y") return Ra(t, !1, !0);
2594
2648
  }
2595
- function Pa(e) {
2649
+ function Ha(e) {
2596
2650
  let t = e.mark;
2597
2651
  if (t) {
2598
2652
  let e = t.properties.clip;
@@ -2614,8 +2668,8 @@ function Pa(e) {
2614
2668
  clipY: n && i
2615
2669
  };
2616
2670
  }
2617
- function Fa(e, t, n) {
2618
- if (t !== "never") return Ma(e, Na(t, n));
2671
+ function Ua(e, t, n) {
2672
+ if (t !== "never") return Ba(e, Va(t, n));
2619
2673
  }
2620
2674
  //#endregion
2621
- export { Bt as $, Ue as $t, Ai as A, ut as At, Mi as B, nt as Bt, Ui as C, xt as Ct, Hi as D, vt as Dt, Ki as E, yt as Et, Ni as F, xe as Ft, wi as G, at as Gt, Bi as H, rt as Ht, Ri as I, Je as It, bi as J, Ve as Jt, Ti as K, ze as Kt, Fi as L, Ze as Lt, Ei as M, mt as Mt, Oi as N, pt as Nt, Vi as O, T as Ot, zi as P, st as Pt, jt as Q, ct as Qt, Li as R, Ee as Rt, Wi as S, i as Sn, tn as St, Yi as T, St as Tt, ji as U, Ae as Ut, ki as V, Ye as Vt, Ci as W, w as Wt, si as X, ot as Xt, ci as Y, je as Yt, oi as Z, De as Zt, Qi as _, d as _n, Qt as _t, Pa as a, ye as an, sn as at, G as b, s as bn, Lt as bt, K as c, he as cn, un as ct, pa as d, _ as dn, Rt as dt, We as en, Ht as et, q as f, g as fn, ln as ft, Zi as g, f as gn, $t as gt, ga as h, p as hn, Vt as ht, Aa as i, be as in, en as it, Di as j, ft as jt, Ii as k, ht as kt, X as l, y as ln, Ut as lt, _a as m, m as mn, E as mt, ka as n, Ke as nn, Nt as nt, Oa as o, _e as on, on as ot, wa as p, h as pn, Wt as pt, fi as q, Be as qt, Ma as r, ve as rn, Pt as rt, Fa as s, me as sn, zt as st, ja as t, Ge as tn, fn as tt, $i as u, te as un, cn as ut, Ji as v, u as vn, Zt as vt, Xi as w, Et as wt, Gi as x, o as xn, qt as xt, qi as y, l as yn, an as yt, Pi as z, C as zt };
2675
+ export { di as $, Ue as $t, Ri as A, Tt as At, Ui as B, Se as Bt, Xi as C, u as Cn, en as Ct, Yi as D, i as Dn, an as Dt, $i as E, o as En, Xt as Et, Li as F, pt as Ft, Mi as G, it as Gt, U as H, $e as Ht, Ki as I, ht as It, Ei as J, Me as Jt, qi as K, Ze as Kt, H as L, _t as Lt, Ai as M, xt as Mt, ki as N, S as Nt, Ji as O, wt as Ot, ji as P, vt as Pt, Ci as Q, He as Qt, Wi as R, gt as Rt, Zi as S, d as Sn, tn as St, ra as T, s as Tn, Bt as Tt, Fi as U, De as Ut, Gi as V, Xe as Vt, Ii as W, je as Wt, Oi as X, ct as Xt, Di as Y, st as Yt, hi as Z, Ve as Zt, oa as _, ee as _n, fn as _t, Ha as a, Ke as an, Gt as at, G as b, p as bn, Wt as bt, K as c, ye as cn, Lt as ct, xa as d, ve as dn, ln as dt, Ne as en, ui as et, q as f, he as fn, Ht as ft, aa as g, g as gn, Vt as gt, wa as h, ne as hn, dn as ht, Ra as i, Ge as in, Ut as it, Ni as j, St as jt, Hi as k, kt, X as l, xe as ln, rn as lt, Ta as m, v as mn, Kt as mt, La as n, Oe as nn, Pt as nt, Ia as o, qe as on, hn as ot, Ma as p, ge as pn, pn as pt, Pi as q, at as qt, Ba as r, dt as rn, Mt as rt, Ua as s, Je as sn, It as st, za as t, lt as tn, li as tt, sa as u, be as un, un as ut, ta as v, h as vn, qt as vt, ia as w, l as wn, cn as wt, Qi as x, f as xn, nn as xt, ea as y, m as yn, C as yt, W as z, ut as zt };