@genome-spy/app 1.1.1 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/{agentApi-sPuuT0KS.js → agentApi-8hMSlqAQ.js} +8307 -6861
  2. package/dist/agentApi.es.js +5569 -4250
  3. package/dist/agentShared.es.js +9 -9
  4. package/dist/{canvas2d-iDK4BC5j.js → canvas2d-Bd8H8MMo.js} +149 -134
  5. package/dist/{canvas2d-MXaFeZnP.js → canvas2d-D6VYooRf.js} +136 -122
  6. package/dist/{clipOptions-Cba4I0AO.js → clipOptions-DElJ8dTZ.js} +2274 -2080
  7. package/dist/{clipOptions-B5PibDq3.js → clipOptions-D_wBNhzs.js} +2121 -1957
  8. package/dist/{viewIdentityRegistry-BDKkEjXl.js → containerView-CRJSc4bM.js} +24 -31
  9. package/dist/{viewIdentityRegistry-BIYd4TE0.js → containerView-aEVmYmkA.js} +24 -31
  10. package/dist/{debug-DbigmdrK.js → debug-CQ0agCrd.js} +9 -9
  11. package/dist/{debug-BlqDxTw3.js → debug-DkIMiGdW.js} +10 -10
  12. package/dist/index.es.js +3582 -3566
  13. package/dist/index.js +698 -454
  14. package/dist/{indexer-En7gpvLN.js → indexer-DDC0YRGn.js} +1 -1
  15. package/dist/{indexer-DbFTKGlm.js → indexer-DOYMJ-Md.js} +1 -1
  16. package/dist/markUtils-CvLDz744.js +75 -0
  17. package/dist/{metadataChannels-DV62inJh.js → metadataChannels-DLSmx7kU.js} +6 -3
  18. package/dist/{order-B4uR9Q04.js → order-BVvkjDRT.js} +369 -316
  19. package/dist/{order-BSPy5DI8.js → order-DmMoZsi1.js} +360 -308
  20. package/dist/{rasterExport-DQH3hVg_.js → rasterExport-DxvowWjH.js} +3 -3
  21. package/dist/{rasterExport-B62RmAK1.js → rasterExport-jeRVq6kY.js} +4 -4
  22. package/dist/{rasterization-B05bDo5e.js → rasterization-DFj3Cvx4.js} +26 -19
  23. package/dist/{rectangle-DE98gIxF.js → rectangle-DZTR6NFQ.js} +10 -1
  24. package/dist/rectangle-Dl4Dy0hS.js +191 -0
  25. package/dist/{renderCanvas2D-Bdv-B4wj.js → renderCanvas2D-Bfm1NHFu.js} +96 -91
  26. package/dist/{renderCanvas2D-ChdoHGrU.js → renderCanvas2D-DVjhp834.js} +98 -93
  27. package/dist/{scalePosition-ByvlXaML.js → scalePosition-0aeqp_kz.js} +8 -1
  28. package/dist/schema.json +27198 -13709
  29. package/dist/style.css +1 -1
  30. package/dist/{svg-N3tj05-e.js → svg-Bm2zxBPu.js} +315 -316
  31. package/dist/{svg-DHsq1RpV.js → svg-CkfuhONt.js} +290 -291
  32. package/dist/{svgRasterizer-CYVDlt5z.js → svgRasterizer-DoRQEqFA.js} +2 -2
  33. package/dist/{svgRasterizer-CvCBlxLj.js → svgRasterizer-raDDhBF-.js} +3 -3
  34. package/dist/{vega-scale-Byaw1K8O.js → vega-scale-BoGHANI7.js} +90 -90
  35. package/dist/{vega-scale-Ctz_wa3z.js → vega-scale-o9TRyzYH.js} +699 -699
  36. package/dist/viewError-BkJeVYXA.js +33 -0
  37. package/dist/viewError-IYqyluc7.js +33 -0
  38. package/dist/{viewSelectors-DDLW-byr.js → viewSelectors-7LyasQN-.js} +498 -434
  39. package/dist/{viewSelectors-j-F9XwsE.js → viewSelectors-CbmkSQRT.js} +549 -485
  40. package/dist/{viewUtils-JX6CMEYH.js → viewUtils-DuddMNNw.js} +2138 -2009
  41. package/dist/{webgl-Dw8xqZpX.js → webgl-CQfvgnxo.js} +1229 -1140
  42. package/dist/{webgl-DdmOwEH0.js → webgl-DVYkXtiZ.js} +1477 -1389
  43. package/package.json +4 -4
  44. package/src/spec/view.d.ts +44 -5
  45. package/dist/viewError-BiR9VCgL.js +0 -29
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./rasterization-CFogVB3B.js";
2
- import { t } from "./rectangle-DE98gIxF.js";
2
+ import { t } from "./rectangle-DZTR6NFQ.js";
3
3
  import { t as n } from "./layoutResult-D50MSHXR.js";
4
- import { t as r } from "./renderCanvas2D-Bdv-B4wj.js";
4
+ import { t as r } from "./renderCanvas2D-DVjhp834.js";
5
5
  import { n as i, t as a } from "./rasterImage-B4rPLaW9.js";
6
6
  //#region ../core/src/rendering/canvas2d/svgRasterizer.js
7
7
  function o() {
@@ -1,7 +1,7 @@
1
- import { t as e } from "./rasterization-B05bDo5e.js";
2
- import { t } from "./rectangle-DE98gIxF.js";
1
+ import { t as e } from "./rasterization-DFj3Cvx4.js";
2
+ import { t } from "./rectangle-Dl4Dy0hS.js";
3
3
  import { t as n } from "./layoutResult-D50MSHXR.js";
4
- import { t as r } from "./renderCanvas2D-ChdoHGrU.js";
4
+ import { t as r } from "./renderCanvas2D-Bfm1NHFu.js";
5
5
  import { n as i, t as a } from "./rasterImage-B4rPLaW9.js";
6
6
  //#region ../core/src/rendering/canvas2d/svgRasterizer.js
7
7
  function o() {
@@ -1,5 +1,5 @@
1
1
  import { n as e } from "./rolldown-runtime-DF993M8W.js";
2
- import { $t as t, Bt as n, Ft as r, Gt as i, Ht as a, It as o, Jt as s, Kt as c, Lt as l, Qt as u, Rt as d, Ut as f, Vt as p, Wt as m, Xt as h, Yt as ee, Zt as g, qt as _, zt as v } from "./clipOptions-Cba4I0AO.js";
2
+ import { $t as t, Jt as n, Qt as r, Xt as i, Yt as a, Zt as o, an as s, cn as c, dn as l, en as u, in as d, ln as f, nn as p, on as m, qt as h, rn as g, sn as ee, tn as _, un as v } from "./clipOptions-D_wBNhzs.js";
3
3
  //#region ../../node_modules/d3-array/src/ascending.js
4
4
  function y(e, t) {
5
5
  return e == null || t == null ? NaN : e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
@@ -184,27 +184,27 @@ function C(e, t) {
184
184
  //#region ../../node_modules/d3-scale/src/ordinal.js
185
185
  var _e = Symbol("implicit");
186
186
  function ve() {
187
- var e = new t(), n = [], r = [], i = _e;
188
- function a(t) {
189
- let a = e.get(t);
187
+ var e = new l(), t = [], n = [], r = _e;
188
+ function i(i) {
189
+ let a = e.get(i);
190
190
  if (a === void 0) {
191
- if (i !== _e) return i;
192
- e.set(t, a = n.push(t) - 1);
191
+ if (r !== _e) return r;
192
+ e.set(i, a = t.push(i) - 1);
193
193
  }
194
- return r[a % r.length];
194
+ return n[a % n.length];
195
195
  }
196
- return a.domain = function(r) {
197
- if (!arguments.length) return n.slice();
198
- n = [], e = new t();
199
- for (let t of r) e.has(t) || e.set(t, n.push(t) - 1);
200
- return a;
201
- }, a.range = function(e) {
202
- return arguments.length ? (r = Array.from(e), a) : r.slice();
203
- }, a.unknown = function(e) {
204
- return arguments.length ? (i = e, a) : i;
205
- }, a.copy = function() {
206
- return ve(n, r).unknown(i);
207
- }, S.apply(a, arguments), a;
196
+ return i.domain = function(n) {
197
+ if (!arguments.length) return t.slice();
198
+ t = [], e = new l();
199
+ for (let r of n) e.has(r) || e.set(r, t.push(r) - 1);
200
+ return i;
201
+ }, i.range = function(e) {
202
+ return arguments.length ? (n = Array.from(e), i) : n.slice();
203
+ }, i.unknown = function(e) {
204
+ return arguments.length ? (r = e, i) : r;
205
+ }, i.copy = function() {
206
+ return ve(t, n).unknown(r);
207
+ }, S.apply(i, arguments), i;
208
208
  }
209
209
  //#endregion
210
210
  //#region ../../node_modules/d3-color/src/math.js
@@ -212,9 +212,9 @@ var ye = Math.PI / 180, be = 180 / Math.PI, xe = 18, Se = .96422, Ce = 1, we = .
212
212
  function ke(e) {
213
213
  if (e instanceof w) return new w(e.l, e.a, e.b, e.opacity);
214
214
  if (e instanceof T) return Le(e);
215
- e instanceof n || (e = c(e));
216
- var t = Pe(e.r), r = Pe(e.g), i = Pe(e.b), a = je((.2225045 * t + .7168786 * r + .0606169 * i) / Ce), o, s;
217
- return t === r && r === i ? o = s = a : (o = je((.4360747 * t + .3850649 * r + .1430804 * i) / Se), s = je((.0139322 * t + .0971045 * r + .7141733 * i) / we)), new w(116 * a - 16, 500 * (o - a), 200 * (a - s), e.opacity);
215
+ e instanceof r || (e = d(e));
216
+ var t = Pe(e.r), n = Pe(e.g), i = Pe(e.b), a = je((.2225045 * t + .7168786 * n + .0606169 * i) / Ce), o, s;
217
+ return t === n && n === i ? o = s = a : (o = je((.4360747 * t + .3850649 * n + .1430804 * i) / Se), s = je((.0139322 * t + .0971045 * n + .7141733 * i) / we)), new w(116 * a - 16, 500 * (o - a), 200 * (a - s), e.opacity);
218
218
  }
219
219
  function Ae(e, t, n, r) {
220
220
  return arguments.length === 1 ? ke(e) : new w(e, t, n, r ?? 1);
@@ -222,7 +222,7 @@ function Ae(e, t, n, r) {
222
222
  function w(e, t, n, r) {
223
223
  this.l = +e, this.a = +t, this.b = +n, this.opacity = +r;
224
224
  }
225
- _(w, Ae, s(v, {
225
+ s(w, Ae, m(o, {
226
226
  brighter(e) {
227
227
  return new w(this.l + xe * (e ?? 1), this.a, this.b, this.opacity);
228
228
  },
@@ -230,8 +230,8 @@ _(w, Ae, s(v, {
230
230
  return new w(this.l - xe * (e ?? 1), this.a, this.b, this.opacity);
231
231
  },
232
232
  rgb() {
233
- var e = (this.l + 16) / 116, t = isNaN(this.a) ? e : e + this.a / 500, r = isNaN(this.b) ? e : e - this.b / 200;
234
- return t = Se * Me(t), e = Ce * Me(e), r = we * Me(r), new n(Ne(3.1338561 * t - 1.6168667 * e - .4906146 * r), Ne(-.9787684 * t + 1.9161415 * e + .033454 * r), Ne(.0719453 * t - .2289914 * e + 1.4052427 * r), this.opacity);
233
+ var e = (this.l + 16) / 116, t = isNaN(this.a) ? e : e + this.a / 500, n = isNaN(this.b) ? e : e - this.b / 200;
234
+ return t = Se * Me(t), e = Ce * Me(e), n = we * Me(n), new r(Ne(3.1338561 * t - 1.6168667 * e - .4906146 * n), Ne(-.9787684 * t + 1.9161415 * e + .033454 * n), Ne(.0719453 * t - .2289914 * e + 1.4052427 * n), this.opacity);
235
235
  }
236
236
  }));
237
237
  function je(e) {
@@ -263,7 +263,7 @@ function Le(e) {
263
263
  var t = e.h * ye;
264
264
  return new w(e.l, Math.cos(t) * e.c, Math.sin(t) * e.c, e.opacity);
265
265
  }
266
- _(T, Ie, s(v, {
266
+ s(T, Ie, m(o, {
267
267
  brighter(e) {
268
268
  return new T(this.h, this.c, this.l + xe * (e ?? 1), this.opacity);
269
269
  },
@@ -279,9 +279,9 @@ _(T, Ie, s(v, {
279
279
  var Re = -.14861, ze = 1.78277, Be = -.29227, Ve = -.90649, He = 1.97294, Ue = He * Ve, We = He * ze, Ge = ze * Be - Ve * Re;
280
280
  function Ke(e) {
281
281
  if (e instanceof E) return new E(e.h, e.s, e.l, e.opacity);
282
- e instanceof n || (e = c(e));
283
- var t = e.r / 255, r = e.g / 255, i = e.b / 255, a = (Ge * i + Ue * t - We * r) / (Ge + Ue - We), o = i - a, s = (He * (r - a) - Be * o) / Ve, l = Math.sqrt(s * s + o * o) / (He * a * (1 - a)), u = l ? Math.atan2(s, o) * be - 120 : NaN;
284
- return new E(u < 0 ? u + 360 : u, l, a, e.opacity);
282
+ e instanceof r || (e = d(e));
283
+ var t = e.r / 255, n = e.g / 255, i = e.b / 255, a = (Ge * i + Ue * t - We * n) / (Ge + Ue - We), o = i - a, s = (He * (n - a) - Be * o) / Ve, c = Math.sqrt(s * s + o * o) / (He * a * (1 - a)), l = c ? Math.atan2(s, o) * be - 120 : NaN;
284
+ return new E(l < 0 ? l + 360 : l, c, a, e.opacity);
285
285
  }
286
286
  function qe(e, t, n, r) {
287
287
  return arguments.length === 1 ? Ke(e) : new E(e, t, n, r ?? 1);
@@ -289,16 +289,16 @@ function qe(e, t, n, r) {
289
289
  function E(e, t, n, r) {
290
290
  this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
291
291
  }
292
- _(E, qe, s(v, {
292
+ s(E, qe, m(o, {
293
293
  brighter(e) {
294
- return e = e == null ? p : p ** +e, new E(this.h, this.s, this.l * e, this.opacity);
294
+ return e = e == null ? t : t ** +e, new E(this.h, this.s, this.l * e, this.opacity);
295
295
  },
296
296
  darker(e) {
297
- return e = e == null ? f : f ** +e, new E(this.h, this.s, this.l * e, this.opacity);
297
+ return e = e == null ? _ : _ ** +e, new E(this.h, this.s, this.l * e, this.opacity);
298
298
  },
299
299
  rgb() {
300
- var e = isNaN(this.h) ? 0 : (this.h + 120) * ye, t = +this.l, r = isNaN(this.s) ? 0 : this.s * t * (1 - t), i = Math.cos(e), a = Math.sin(e);
301
- return new n(255 * (t + r * (Re * i + ze * a)), 255 * (t + r * (Be * i + Ve * a)), 255 * (t + He * i * r), this.opacity);
300
+ var e = isNaN(this.h) ? 0 : (this.h + 120) * ye, t = +this.l, n = isNaN(this.s) ? 0 : this.s * t * (1 - t), i = Math.cos(e), a = Math.sin(e);
301
+ return new r(255 * (t + n * (Re * i + ze * a)), 255 * (t + n * (Be * i + Ve * a)), 255 * (t + He * i * n), this.opacity);
302
302
  }
303
303
  }));
304
304
  //#endregion
@@ -356,18 +356,18 @@ function D(e, t) {
356
356
  var nt = (function e(t) {
357
357
  var n = tt(t);
358
358
  function r(e, t) {
359
- var r = n((e = i(e)).r, (t = i(t)).r), a = n(e.g, t.g), o = n(e.b, t.b), s = D(e.opacity, t.opacity);
359
+ var r = n((e = g(e)).r, (t = g(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = D(e.opacity, t.opacity);
360
360
  return function(t) {
361
- return e.r = r(t), e.g = a(t), e.b = o(t), e.opacity = s(t), e + "";
361
+ return e.r = r(t), e.g = i(t), e.b = a(t), e.opacity = o(t), e + "";
362
362
  };
363
363
  }
364
364
  return r.gamma = e, r;
365
365
  })(1);
366
366
  function rt(e) {
367
367
  return function(t) {
368
- for (var n = t.length, r = Array(n), a = Array(n), o = Array(n), s = 0, c; s < n; ++s) c = i(t[s]), r[s] = c.r || 0, a[s] = c.g || 0, o[s] = c.b || 0;
369
- return r = e(r), a = e(a), o = e(o), c.opacity = 1, function(e) {
370
- return c.r = r(e), c.g = a(e), c.b = o(e), c + "";
368
+ for (var n = t.length, r = Array(n), i = Array(n), a = Array(n), o = 0, s; o < n; ++o) s = g(t[o]), r[o] = s.r || 0, i[o] = s.g || 0, a[o] = s.b || 0;
369
+ return r = e(r), i = e(i), a = e(a), s.opacity = 1, function(e) {
370
+ return s.r = r(e), s.g = i(e), s.b = a(e), s + "";
371
371
  };
372
372
  };
373
373
  }
@@ -451,7 +451,7 @@ function gt(e, t) {
451
451
  //#region ../../node_modules/d3-interpolate/src/value.js
452
452
  function k(e, t) {
453
453
  var n = typeof t, r;
454
- return t == null || n === "boolean" ? Ze(t) : (n === "number" ? O : n === "string" ? (r = a(t)) ? (t = r, nt) : gt : t instanceof a ? nt : t instanceof Date ? ut : st(t) ? ot : Array.isArray(t) ? lt : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? dt : O)(e, t);
454
+ return t == null || n === "boolean" ? Ze(t) : (n === "number" ? O : n === "string" ? (r = u(t)) ? (t = r, nt) : gt : t instanceof u ? nt : t instanceof Date ? ut : st(t) ? ot : Array.isArray(t) ? lt : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? dt : O)(e, t);
455
455
  }
456
456
  //#endregion
457
457
  //#region ../../node_modules/d3-interpolate/src/discrete.js
@@ -579,9 +579,9 @@ var Nt = (function e(t, n, r) {
579
579
  ];
580
580
  };
581
581
  else {
582
- var ee = Math.sqrt(p), g = (u * u - s * s + r * p) / (2 * s * n * ee), _ = (u * u - s * s - r * p) / (2 * u * n * ee), v = Math.log(Math.sqrt(g * g + 1) - g);
582
+ var g = Math.sqrt(p), ee = (u * u - s * s + r * p) / (2 * s * n * g), _ = (u * u - s * s - r * p) / (2 * u * n * g), v = Math.log(Math.sqrt(ee * ee + 1) - ee);
583
583
  h = (Math.log(Math.sqrt(_ * _ + 1) - _) - v) / t, m = function(e) {
584
- var r = e * h, i = At(v), c = s / (n * ee) * (i * Mt(t * r + v) - jt(v));
584
+ var r = e * h, i = At(v), c = s / (n * g) * (i * Mt(t * r + v) - jt(v));
585
585
  return [
586
586
  a + c * d,
587
587
  o + c * f,
@@ -600,7 +600,7 @@ var Nt = (function e(t, n, r) {
600
600
  //#region ../../node_modules/d3-interpolate/src/hsl.js
601
601
  function Pt(e) {
602
602
  return function(t, n) {
603
- var r = e((t = m(t)).h, (n = m(n)).h), i = D(t.s, n.s), a = D(t.l, n.l), o = D(t.opacity, n.opacity);
603
+ var r = e((t = p(t)).h, (n = p(n)).h), i = D(t.s, n.s), a = D(t.l, n.l), o = D(t.opacity, n.opacity);
604
604
  return function(e) {
605
605
  return t.h = r(e), t.s = i(e), t.l = a(e), t.opacity = o(e), t + "";
606
606
  };
@@ -767,37 +767,37 @@ function nn() {
767
767
  //#endregion
768
768
  //#region ../../node_modules/d3-format/src/precisionFixed.js
769
769
  function rn(e) {
770
- return Math.max(0, -d(Math.abs(e)));
770
+ return Math.max(0, -i(Math.abs(e)));
771
771
  }
772
772
  //#endregion
773
773
  //#region ../../node_modules/d3-format/src/precisionPrefix.js
774
774
  function an(e, t) {
775
- return Math.max(0, Math.max(-8, Math.min(8, Math.floor(d(t) / 3))) * 3 - d(Math.abs(e)));
775
+ return Math.max(0, Math.max(-8, Math.min(8, Math.floor(i(t) / 3))) * 3 - i(Math.abs(e)));
776
776
  }
777
777
  //#endregion
778
778
  //#region ../../node_modules/d3-format/src/precisionRound.js
779
779
  function on(e, t) {
780
- return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, d(t) - d(e)) + 1;
780
+ return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, i(t) - i(e)) + 1;
781
781
  }
782
782
  //#endregion
783
783
  //#region ../../node_modules/d3-scale/src/tickFormat.js
784
- function sn(e, t, n, i) {
785
- var a = g(e, t, n), s;
786
- switch (i = l(i ?? ",f"), i.type) {
784
+ function sn(e, t, r, i) {
785
+ var o = f(e, t, r), s;
786
+ switch (i = a(i ?? ",f"), i.type) {
787
787
  case "s":
788
788
  var c = Math.max(Math.abs(e), Math.abs(t));
789
- return i.precision == null && !isNaN(s = an(a, c)) && (i.precision = s), o(i, c);
789
+ return i.precision == null && !isNaN(s = an(o, c)) && (i.precision = s), n(i, c);
790
790
  case "":
791
791
  case "e":
792
792
  case "g":
793
793
  case "p":
794
794
  case "r":
795
- i.precision == null && !isNaN(s = on(a, Math.max(Math.abs(e), Math.abs(t)))) && (i.precision = s - (i.type === "e"));
795
+ i.precision == null && !isNaN(s = on(o, Math.max(Math.abs(e), Math.abs(t)))) && (i.precision = s - (i.type === "e"));
796
796
  break;
797
797
  case "f":
798
- case "%": i.precision == null && !isNaN(s = rn(a)) && (i.precision = s - (i.type === "%") * 2);
798
+ case "%": i.precision == null && !isNaN(s = rn(o)) && (i.precision = s - (i.type === "%") * 2);
799
799
  }
800
- return r(i);
800
+ return h(i);
801
801
  }
802
802
  //#endregion
803
803
  //#region ../../node_modules/d3-scale/src/linear.js
@@ -805,19 +805,19 @@ function j(e) {
805
805
  var t = e.domain;
806
806
  return e.ticks = function(e) {
807
807
  var n = t();
808
- return u(n[0], n[n.length - 1], e ?? 10);
808
+ return v(n[0], n[n.length - 1], e ?? 10);
809
809
  }, e.tickFormat = function(e, n) {
810
810
  var r = t();
811
811
  return sn(r[0], r[r.length - 1], e ?? 10, n);
812
812
  }, e.nice = function(n) {
813
813
  n ??= 10;
814
- var r = t(), i = 0, a = r.length - 1, o = r[i], s = r[a], c, l, u = 10;
815
- for (s < o && (l = o, o = s, s = l, l = i, i = a, a = l); u-- > 0;) {
816
- if (l = h(o, s, n), l === c) return r[i] = o, r[a] = s, t(r);
817
- if (l > 0) o = Math.floor(o / l) * l, s = Math.ceil(s / l) * l;
818
- else if (l < 0) o = Math.ceil(o * l) / l, s = Math.floor(s * l) / l;
814
+ var r = t(), i = 0, a = r.length - 1, o = r[i], s = r[a], l, u, d = 10;
815
+ for (s < o && (u = o, o = s, s = u, u = i, i = a, a = u); d-- > 0;) {
816
+ if (u = c(o, s, n), u === l) return r[i] = o, r[a] = s, t(r);
817
+ if (u > 0) o = Math.floor(o / u) * u, s = Math.ceil(s / u) * u;
818
+ else if (u < 0) o = Math.ceil(o * u) / u, s = Math.floor(s * u) / u;
819
819
  else break;
820
- c = l;
820
+ l = u;
821
821
  }
822
822
  return e;
823
823
  }, e;
@@ -877,41 +877,41 @@ function vn(e) {
877
877
  return (t, n) => -e(-t, n);
878
878
  }
879
879
  function yn(e) {
880
- let t = e(dn, fn), n = t.domain, i = 10, a, o;
880
+ let t = e(dn, fn), n = t.domain, r = 10, i, o;
881
881
  function s() {
882
- return a = _n(i), o = gn(i), n()[0] < 0 ? (a = vn(a), o = vn(o), e(pn, mn)) : e(dn, fn), t;
882
+ return i = _n(r), o = gn(r), n()[0] < 0 ? (i = vn(i), o = vn(o), e(pn, mn)) : e(dn, fn), t;
883
883
  }
884
884
  return t.base = function(e) {
885
- return arguments.length ? (i = +e, s()) : i;
885
+ return arguments.length ? (r = +e, s()) : r;
886
886
  }, t.domain = function(e) {
887
887
  return arguments.length ? (n(e), s()) : n();
888
888
  }, t.ticks = (e) => {
889
- let t = n(), r = t[0], s = t[t.length - 1], c = s < r;
890
- c && ([r, s] = [s, r]);
891
- let l = a(r), d = a(s), f, p, m = e == null ? 10 : +e, h = [];
892
- if (!(i % 1) && d - l < m) {
893
- if (l = Math.floor(l), d = Math.ceil(d), r > 0) {
894
- for (; l <= d; ++l) for (f = 1; f < i; ++f) if (p = l < 0 ? f / o(-l) : f * o(l), !(p < r)) {
895
- if (p > s) break;
896
- h.push(p);
889
+ let t = n(), a = t[0], s = t[t.length - 1], c = s < a;
890
+ c && ([a, s] = [s, a]);
891
+ let l = i(a), u = i(s), d, f, p = e == null ? 10 : +e, m = [];
892
+ if (!(r % 1) && u - l < p) {
893
+ if (l = Math.floor(l), u = Math.ceil(u), a > 0) {
894
+ for (; l <= u; ++l) for (d = 1; d < r; ++d) if (f = l < 0 ? d / o(-l) : d * o(l), !(f < a)) {
895
+ if (f > s) break;
896
+ m.push(f);
897
897
  }
898
- } else for (; l <= d; ++l) for (f = i - 1; f >= 1; --f) if (p = l > 0 ? f / o(-l) : f * o(l), !(p < r)) {
899
- if (p > s) break;
900
- h.push(p);
898
+ } else for (; l <= u; ++l) for (d = r - 1; d >= 1; --d) if (f = l > 0 ? d / o(-l) : d * o(l), !(f < a)) {
899
+ if (f > s) break;
900
+ m.push(f);
901
901
  }
902
- h.length * 2 < m && (h = u(r, s, m));
903
- } else h = u(l, d, Math.min(d - l, m)).map(o);
904
- return c ? h.reverse() : h;
902
+ m.length * 2 < p && (m = v(a, s, p));
903
+ } else m = v(l, u, Math.min(u - l, p)).map(o);
904
+ return c ? m.reverse() : m;
905
905
  }, t.tickFormat = (e, n) => {
906
- if (e ??= 10, n ??= i === 10 ? "s" : ",", typeof n != "function" && (!(i % 1) && (n = l(n)).precision == null && (n.trim = !0), n = r(n)), e === Infinity) return n;
907
- let s = Math.max(1, i * e / t.ticks().length);
906
+ if (e ??= 10, n ??= r === 10 ? "s" : ",", typeof n != "function" && (!(r % 1) && (n = a(n)).precision == null && (n.trim = !0), n = h(n)), e === Infinity) return n;
907
+ let s = Math.max(1, r * e / t.ticks().length);
908
908
  return (e) => {
909
- let t = e / o(Math.round(a(e)));
910
- return t * i < i - .5 && (t *= i), t <= s ? n(e) : "";
909
+ let t = e / o(Math.round(i(e)));
910
+ return t * r < r - .5 && (t *= r), t <= s ? n(e) : "";
911
911
  };
912
912
  }, t.nice = () => n(un(n(), {
913
- floor: (e) => o(Math.floor(a(e))),
914
- ceil: (e) => o(Math.ceil(a(e)))
913
+ floor: (e) => o(Math.floor(i(e))),
914
+ ceil: (e) => o(Math.ceil(i(e)))
915
915
  })), t;
916
916
  }
917
917
  function bn() {
@@ -1298,8 +1298,8 @@ function sr(e, t, n, r, i, a) {
1298
1298
  }
1299
1299
  function c(t, n, r) {
1300
1300
  let i = Math.abs(n - t) / r, a = b(([, , e]) => e).right(o, i);
1301
- if (a === o.length) return e.every(g(t / zn, n / zn, r));
1302
- if (a === 0) return In.every(Math.max(g(t, n, r), 1));
1301
+ if (a === o.length) return e.every(f(t / zn, n / zn, r));
1302
+ if (a === 0) return In.every(Math.max(f(t, n, r), 1));
1303
1303
  let [s, c] = o[i / o[a - 1][2] < o[a][2] / i ? a - 1 : a];
1304
1304
  return s.every(c);
1305
1305
  }
@@ -1334,7 +1334,7 @@ function mr(e, t, n) {
1334
1334
  };
1335
1335
  }
1336
1336
  function hr(e) {
1337
- var t = e.dateTime, n = e.date, r = e.time, i = e.periods, a = e.days, o = e.shortDays, s = e.months, c = e.shortMonths, l = br(i), u = xr(i), d = br(a), f = xr(a), p = br(o), m = xr(o), h = br(s), ee = xr(s), g = br(c), _ = xr(c), v = {
1337
+ var t = e.dateTime, n = e.date, r = e.time, i = e.periods, a = e.days, o = e.shortDays, s = e.months, c = e.shortMonths, l = br(i), u = xr(i), d = br(a), f = xr(a), p = br(o), m = xr(o), h = br(s), g = xr(s), ee = br(c), _ = xr(c), v = {
1338
1338
  a: de,
1339
1339
  A: fe,
1340
1340
  b: pe,
@@ -1477,12 +1477,12 @@ function hr(e) {
1477
1477
  return r ? (e.w = f.get(r[0].toLowerCase()), n + r[0].length) : -1;
1478
1478
  }
1479
1479
  function oe(e, t, n) {
1480
- var r = g.exec(t.slice(n));
1480
+ var r = ee.exec(t.slice(n));
1481
1481
  return r ? (e.m = _.get(r[0].toLowerCase()), n + r[0].length) : -1;
1482
1482
  }
1483
1483
  function se(e, t, n) {
1484
1484
  var r = h.exec(t.slice(n));
1485
- return r ? (e.m = ee.get(r[0].toLowerCase()), n + r[0].length) : -1;
1485
+ return r ? (e.m = g.get(r[0].toLowerCase()), n + r[0].length) : -1;
1486
1486
  }
1487
1487
  function ce(e, n, r) {
1488
1488
  return re(e, t, n, r);
@@ -1857,9 +1857,9 @@ function Ri(e) {
1857
1857
  return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);
1858
1858
  }
1859
1859
  function zi(e, t, n, r, i, a, o, s, c, l) {
1860
- var u = nn(), d = u.invert, f = u.domain, p = l(".%L"), m = l(":%S"), h = l("%I:%M"), ee = l("%I %p"), g = l("%a %d"), _ = l("%b %d"), v = l("%B"), y = l("%Y");
1860
+ var u = nn(), d = u.invert, f = u.domain, p = l(".%L"), m = l(":%S"), h = l("%I:%M"), g = l("%I %p"), ee = l("%a %d"), _ = l("%b %d"), v = l("%B"), y = l("%Y");
1861
1861
  function te(e) {
1862
- return (c(e) < e ? p : s(e) < e ? m : o(e) < e ? h : a(e) < e ? ee : r(e) < e ? i(e) < e ? g : _ : n(e) < e ? v : y)(e);
1862
+ return (c(e) < e ? p : s(e) < e ? m : o(e) < e ? h : a(e) < e ? g : r(e) < e ? i(e) < e ? ee : _ : n(e) < e ? v : y)(e);
1863
1863
  }
1864
1864
  return u.invert = function(e) {
1865
1865
  return new Date(d(e));