vitessce 3.5.4 → 3.5.5

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.
@@ -4,7 +4,7 @@ var or = (t, e, n) => (hUt(t, typeof e != "symbol" ? e + "" : e, n), n), cae = (
4
4
  if (!e.has(t))
5
5
  throw TypeError("Cannot " + n);
6
6
  };
7
- var Di = (t, e, n) => (cae(t, e, "read from private field"), n ? n.call(t) : e.get(t)), $l = (t, e, n) => {
7
+ var Di = (t, e, n) => (cae(t, e, "read from private field"), n ? n.call(t) : e.get(t)), zl = (t, e, n) => {
8
8
  if (e.has(t))
9
9
  throw TypeError("Cannot add the same private member more than once");
10
10
  e instanceof WeakSet ? e.add(t) : e.set(t, n);
@@ -329,7 +329,7 @@ const Jn = {
329
329
  EMBEDDING_CONTOUR_PERCENTILES: "embeddingContourPercentiles",
330
330
  CONTOUR_COLOR_ENCODING: "contourColorEncoding",
331
331
  CONTOUR_COLOR: "contourColor"
332
- }, ec = {
332
+ }, Ll = {
333
333
  LOADING: "loading",
334
334
  SUCCESS: "success",
335
335
  ERROR: "error"
@@ -886,7 +886,7 @@ const Jn = {
886
886
  se.SAMPLE_SET_SELECTION
887
887
  // TODO: create coordination types for internal state of the biomarker selection view?
888
888
  ]
889
- }, yUt = "This file is autogenerated by .changeset/post-changelog.mjs.", CUt = "3.5.4", EUt = "2025-01-14", vUt = "changeset-release/main", bUt = "76d60b64", BUt = {
889
+ }, yUt = "This file is autogenerated by .changeset/post-changelog.mjs.", CUt = "3.5.5", EUt = "2025-01-17", vUt = "changeset-release/main", bUt = "fe1f84e9", BUt = {
890
890
  note: yUt,
891
891
  version: CUt,
892
892
  date: EUt,
@@ -1471,7 +1471,7 @@ function CNi(t, e, n = null) {
1471
1471
  return `${Qot(t, e)}${n === null ? 0 : n}`;
1472
1472
  }
1473
1473
  const TUt = [50, 50, 50], RUt = [200, 200, 200], MUt = [235, 235, 235];
1474
- function Nl(t) {
1474
+ function Ol(t) {
1475
1475
  return t === "dark" ? TUt : t === "light" ? RUt : MUt;
1476
1476
  }
1477
1477
  const Zw = [
@@ -29242,7 +29242,7 @@ function r8() {
29242
29242
  }, [o]), [r, e, t];
29243
29243
  }
29244
29244
  function Eu(t) {
29245
- return wt(() => vlt(t, (e) => e !== ec.LOADING), t);
29245
+ return wt(() => vlt(t, (e) => e !== Ll.LOADING), t);
29246
29246
  }
29247
29247
  function Lg(t) {
29248
29248
  return wt(
@@ -29333,15 +29333,15 @@ function z1e(t, e, n, r) {
29333
29333
  }, [t, e, n, r]);
29334
29334
  }
29335
29335
  function i8(t, e, n) {
29336
- const { stripCuriePrefixes: r = !0 } = n || {}, i = Gpe(ew.GET_TERM_MAPPING), o = Iee({
29337
- enabled: t === "gene",
29336
+ const { stripCuriePrefixes: r = !0 } = n || {}, i = Gpe(ew.GET_TERM_MAPPING), o = t === "gene", s = Iee({
29337
+ enabled: o,
29338
29338
  queryKey: ["useExpandedFeatureLabelsMap", "ensembl", "hgnc"],
29339
29339
  queryFn: async () => i("ensembl", "hgnc")
29340
- }), { data: s, status: a, isFetching: l } = o, c = wt(() => s ? new Map([
29341
- ...r ? Array.from(s).map(([u, f]) => [u.split(":")[1], f.split(":")[1]]) : s,
29340
+ }), { data: a, status: l, isFetching: c } = s, A = wt(() => a ? new Map([
29341
+ ...r ? Array.from(a).map(([f, h]) => [f.split(":")[1], h.split(":")[1]]) : a,
29342
29342
  ...e || []
29343
- ]) : e, [s, e, r]), A = l ? ec.LOADING : a;
29344
- return [c, A];
29343
+ ]) : e, [a, e, r]), u = o ? c ? Ll.LOADING : l : Ll.SUCCESS;
29344
+ return [A, u];
29345
29345
  }
29346
29346
  const fpn = mi((t) => ({
29347
29347
  vitessceContainer: {
@@ -30117,7 +30117,7 @@ function o0(t, e, n, r, i, o, s) {
30117
30117
  }, [g]), Zn(() => {
30118
30118
  h && $N(h, a);
30119
30119
  }, [h, a]);
30120
- const E = f ? ec.LOADING : u;
30120
+ const E = f ? Ll.LOADING : u;
30121
30121
  return [d, E, m, I];
30122
30122
  }
30123
30123
  function m2(t, e, n, r, i, o, s, a, l) {
@@ -30137,7 +30137,7 @@ function m2(t, e, n, r, i, o, s, a, l) {
30137
30137
  queryFn: j1e,
30138
30138
  meta: { loaders: e, placeholderObject: c }
30139
30139
  }))
30140
- }), h = f.some((C) => C.isFetching), d = f.some((C) => C.isError), g = h ? ec.LOADING : d ? ec.ERROR : ec.SUCCESS, m = g === ec.SUCCESS;
30140
+ }), h = f.some((C) => C.isFetching), d = f.some((C) => C.isError), g = h ? Ll.LOADING : d ? Ll.ERROR : Ll.SUCCESS, m = g === Ll.SUCCESS;
30141
30141
  Zn(() => {
30142
30142
  f.filter((C) => !!C.data?.coordinationValues).forEach((C) => {
30143
30143
  const { coordinationValues: v } = C.data;
@@ -30233,7 +30233,7 @@ function $E(t, e, n, r, i) {
30233
30233
  },
30234
30234
  meta: { loaders: t }
30235
30235
  })) || []
30236
- }), a = s.some((h) => h.isFetching), l = s.some((h) => h.isError), c = a ? ec.LOADING : l ? ec.ERROR : ec.SUCCESS, A = c === ec.SUCCESS, u = wt(() => A ? s.map((h) => h.data?.data || null) : null, [A, r, e]), f = wt(() => A ? s.map((h) => h.data?.dataKey || null) : null, [A, r, e]);
30236
+ }), a = s.some((h) => h.isFetching), l = s.some((h) => h.isError), c = a ? Ll.LOADING : l ? Ll.ERROR : Ll.SUCCESS, A = c === Ll.SUCCESS, u = wt(() => A ? s.map((h) => h.data?.data || null) : null, [A, r, e]), f = wt(() => A ? s.map((h) => h.data?.dataKey || null) : null, [A, r, e]);
30237
30237
  return Zn(() => {
30238
30238
  s.map((h) => h.error).filter((h) => !!h).forEach((h) => {
30239
30239
  $N(h, o);
@@ -30286,7 +30286,7 @@ function y2(t, e, n, r) {
30286
30286
  return { data: o, dataKey: null };
30287
30287
  },
30288
30288
  meta: { loaders: t }
30289
- }), { data: a, status: l, isFetching: c, error: A } = s, u = a?.data || o, f = c ? ec.LOADING : l, h = a?.urls;
30289
+ }), { data: a, status: l, isFetching: c, error: A } = s, u = a?.data || o, f = c ? Ll.LOADING : l, h = a?.urls;
30290
30290
  return Zn(() => {
30291
30291
  A && i(A.message);
30292
30292
  }, [A, i]), [u, f, h];
@@ -30474,7 +30474,7 @@ function YAt(t, e, n, r, i, o) {
30474
30474
  queryFn: s0n,
30475
30475
  meta: { loaders: t }
30476
30476
  }))
30477
- }), c = l.some((v) => v.isFetching), A = l.some((v) => v.isError), u = c ? ec.LOADING : A ? ec.ERROR : ec.SUCCESS, f = l.map((v) => v.data?.data || null), h = l.map((v) => v.data?.dataKey || null), d = l.map((v) => v.data?.dataExtent || null), g = l.map((v) => v.data?.normData || null);
30477
+ }), c = l.some((v) => v.isFetching), A = l.some((v) => v.isError), u = c ? Ll.LOADING : A ? Ll.ERROR : Ll.SUCCESS, f = l.map((v) => v.data?.data || null), h = l.map((v) => v.data?.dataKey || null), d = l.map((v) => v.data?.dataExtent || null), g = l.map((v) => v.data?.normData || null);
30478
30478
  Zn(() => {
30479
30479
  l.map((v) => v.error).filter((v) => !!v).forEach((v) => {
30480
30480
  $N(v, s);
@@ -30525,7 +30525,7 @@ function WAt(t, e, n, r, i) {
30525
30525
  queryFn: a0n,
30526
30526
  meta: { loaders: t }
30527
30527
  }))
30528
- }), l = a.some((h) => h.isFetching), c = a.some((h) => h.isError), A = l ? ec.LOADING : c ? ec.ERROR : ec.SUCCESS, u = a.map((h) => h.data?.data || null);
30528
+ }), l = a.some((h) => h.isFetching), c = a.some((h) => h.isError), A = l ? Ll.LOADING : c ? Ll.ERROR : Ll.SUCCESS, u = a.map((h) => h.data?.data || null);
30529
30529
  return Zn(() => {
30530
30530
  a.map((h) => h.error).filter((h) => !!h).forEach((h) => {
30531
30531
  $N(h, o);
@@ -30541,7 +30541,7 @@ function J1e(t, e, n, r, i, o) {
30541
30541
  queryFn: j1e,
30542
30542
  meta: { loaders: t }
30543
30543
  }))
30544
- }), c = l.some((d) => d.isFetching), A = l.some((d) => d.isError), u = c ? ec.LOADING : A ? ec.ERROR : ec.SUCCESS, f = l.map((d) => d.data?.data || null);
30544
+ }), c = l.some((d) => d.isFetching), A = l.some((d) => d.isError), u = c ? Ll.LOADING : A ? Ll.ERROR : Ll.SUCCESS, f = l.map((d) => d.data?.data || null);
30545
30545
  return Zn(() => {
30546
30546
  l.map((d) => d.error).filter((d) => !!d).forEach((d) => {
30547
30547
  $N(d, s);
@@ -39783,7 +39783,7 @@ function lvn(t, e) {
39783
39783
  }
39784
39784
  function UGe(t, e, n, r, i) {
39785
39785
  const o = sf(t, e), s = sft(o, () => !0, (l, c) => {
39786
- const A = r?.find((u) => Tr(u.path, c))?.color ?? Nl(i);
39786
+ const A = r?.find((u) => Tr(u.path, c))?.color ?? Ol(i);
39787
39787
  return {
39788
39788
  ...l,
39789
39789
  color: A.slice(0, 3)
@@ -39833,7 +39833,7 @@ function fvn(t, e, n, r) {
39833
39833
  return e.forEach((o) => {
39834
39834
  const s = sf(t, o);
39835
39835
  if (s) {
39836
- const a = a0(s), l = n?.find((c) => Tr(c.path, o))?.color || Nl(r);
39836
+ const a = a0(s), l = n?.find((c) => Tr(c.path, o))?.color || Ol(r);
39837
39837
  i = [
39838
39838
  ...i,
39839
39839
  ...a.map(([c, A]) => [
@@ -39885,7 +39885,7 @@ function dvn(t, e, n, r, i, o) {
39885
39885
  return r.forEach((l) => {
39886
39886
  const c = sf(t, l);
39887
39887
  if (c) {
39888
- const A = a0(c), u = i?.find((h) => Tr(h.path, l))?.color || Nl(o), f = A.map(([h]) => {
39888
+ const A = a0(c), u = i?.find((h) => Tr(h.path, l))?.color || Ol(o), f = A.map(([h]) => {
39889
39889
  const d = s.get(h);
39890
39890
  return [
39891
39891
  n.data[0][d],
@@ -39913,7 +39913,7 @@ function cft(t, e, n, r, i) {
39913
39913
  return e.forEach((a) => {
39914
39914
  const l = sf(t, a);
39915
39915
  if (l) {
39916
- const c = a0(l), A = r?.find((f) => Tr(f.path, a))?.color || Nl(i), u = {
39916
+ const c = a0(l), A = r?.find((f) => Tr(f.path, a))?.color || Ol(i), u = {
39917
39917
  key: nft(),
39918
39918
  name: l.name,
39919
39919
  size: c.length,
@@ -41792,9 +41792,9 @@ var bvn = hft(","), f8 = bvn.parse, c0e = { exports: {} };
41792
41792
  mn("emit readable"), q.emit("readable"), KA(q);
41793
41793
  }
41794
41794
  function Io(q, U) {
41795
- U.readingMore || (U.readingMore = !0, ke(kl, q, U));
41795
+ U.readingMore || (U.readingMore = !0, ke(Gl, q, U));
41796
41796
  }
41797
- function kl(q, U) {
41797
+ function Gl(q, U) {
41798
41798
  for (var Z = U.length; !U.reading && !U.flowing && !U.ended && U.length < U.highWaterMark && (mn("maybeReadMore read 0"), q.read(0), Z !== U.length); )
41799
41799
  Z = U.length;
41800
41800
  U.readingMore = !1;
@@ -42253,7 +42253,7 @@ var bvn = hft(","), f8 = bvn.parse, c0e = { exports: {} };
42253
42253
  function yA(q, U, Z) {
42254
42254
  return U && p0(q.prototype, U), Z && p0(q, Z), q;
42255
42255
  }
42256
- function Gl(q, U, Z) {
42256
+ function Ul(q, U, Z) {
42257
42257
  return U in q ? Object.defineProperty(q, U, {
42258
42258
  value: Z,
42259
42259
  enumerable: !0,
@@ -42267,7 +42267,7 @@ var bvn = hft(","), f8 = bvn.parse, c0e = { exports: {} };
42267
42267
  typeof Object.getOwnPropertySymbols == "function" && (Ie = Ie.concat(Object.getOwnPropertySymbols(Z).filter(function(Oe) {
42268
42268
  return Object.getOwnPropertyDescriptor(Z, Oe).enumerable;
42269
42269
  }))), Ie.forEach(function(Oe) {
42270
- Gl(q, Oe, Z[Oe]);
42270
+ Ul(q, Oe, Z[Oe]);
42271
42271
  });
42272
42272
  }
42273
42273
  return q;
@@ -42369,14 +42369,14 @@ var bvn = hft(","), f8 = bvn.parse, c0e = { exports: {} };
42369
42369
  }
42370
42370
  function XA() {
42371
42371
  }
42372
- function Ul() {
42372
+ function Hl() {
42373
42373
  return "/tmp";
42374
42374
  }
42375
- var el = Ul, y0 = `
42376
- `, Hl = {
42375
+ var el = Hl, y0 = `
42376
+ `, $l = {
42377
42377
  EOL: y0,
42378
42378
  tmpdir: el,
42379
- tmpDir: Ul,
42379
+ tmpDir: Hl,
42380
42380
  networkInterfaces: yI,
42381
42381
  getNetworkInterfaces: XA,
42382
42382
  release: lb,
@@ -42613,16 +42613,16 @@ var bvn = hft(","), f8 = bvn.parse, c0e = { exports: {} };
42613
42613
  }
42614
42614
  function N(q, U, Z) {
42615
42615
  var Ie = Array.isArray(U) ? U : U.split("."), Oe = Ec(Ie), Ye = Oe[0], Ke = Oe.slice(1);
42616
- return Xa({}, q, Gl({}, Ye, Ie.length > 1 ? N(q[Ye] || {}, Ke, Z) : Z));
42616
+ return Xa({}, q, Ul({}, Ye, Ie.length > 1 ? N(q[Ye] || {}, Ke, Z) : Z));
42617
42617
  }
42618
42618
  function ee(q, U) {
42619
42619
  var Z = Array.isArray(U) ? U : U.split("."), Ie = Ec(Z), Oe = Ie[0], Ye = Ie.slice(1);
42620
42620
  return zr(q[Oe]) !== "object" ? q : Z.length === 1 ? Object.keys(q).filter(function(Ke) {
42621
42621
  return Ke !== Oe;
42622
42622
  }).reduce(function(Ke, Mt) {
42623
- return Object.assign(Ke, Gl({}, Mt, q[Mt]));
42623
+ return Object.assign(Ke, Ul({}, Mt, q[Mt]));
42624
42624
  }, {}) : Object.keys(q).reduce(function(Ke, Mt) {
42625
- return Xa({}, Ke, Gl({}, Mt, Mt !== Oe ? q[Mt] : ee(q[Oe], Ye)));
42625
+ return Xa({}, Ke, Ul({}, Mt, Mt !== Oe ? q[Mt] : ee(q[Oe], Ye)));
42626
42626
  }, {});
42627
42627
  }
42628
42628
  function Ae(q, U) {
@@ -42652,7 +42652,7 @@ var bvn = hft(","), f8 = bvn.parse, c0e = { exports: {} };
42652
42652
  key: "preprocessOpts",
42653
42653
  value: function(Z) {
42654
42654
  var Ie = Object.assign({}, Z);
42655
- return Ie.transforms = Array.isArray(Ie.transforms) ? Ie.transforms : Ie.transforms ? [Ie.transforms] : [], Ie.delimiter = Ie.delimiter || ",", Ie.eol = Ie.eol || Hl.EOL, Ie.quote = typeof Ie.quote == "string" ? Ie.quote : '"', Ie.escapedQuote = typeof Ie.escapedQuote == "string" ? Ie.escapedQuote : "".concat(Ie.quote).concat(Ie.quote), Ie.header = Ie.header !== !1, Ie.includeEmptyRows = Ie.includeEmptyRows || !1, Ie.withBOM = Ie.withBOM || !1, Ie;
42655
+ return Ie.transforms = Array.isArray(Ie.transforms) ? Ie.transforms : Ie.transforms ? [Ie.transforms] : [], Ie.delimiter = Ie.delimiter || ",", Ie.eol = Ie.eol || $l.EOL, Ie.quote = typeof Ie.quote == "string" ? Ie.quote : '"', Ie.escapedQuote = typeof Ie.escapedQuote == "string" ? Ie.escapedQuote : "".concat(Ie.quote).concat(Ie.quote), Ie.header = Ie.header !== !1, Ie.includeEmptyRows = Ie.includeEmptyRows || !1, Ie.withBOM = Ie.withBOM || !1, Ie;
42656
42656
  }
42657
42657
  /**
42658
42658
  * Check and normalize the fields configuration.
@@ -43329,7 +43329,7 @@ function Svn(t, e, n) {
43329
43329
  const i = hft(Jut).parse(t, (l) => ({
43330
43330
  groupName: l.groupName,
43331
43331
  setName: l.setName,
43332
- setColor: l.setColor ? nvn(l.setColor) : Nl(n),
43332
+ setColor: l.setColor ? nvn(l.setColor) : Ol(n),
43333
43333
  obsId: l.obsId,
43334
43334
  predictionScore: o1e(l.predictionScore) || l.predictionScore === Kut ? null : +l.predictionScore
43335
43335
  })), s = evn.schema.safeParse(i);
@@ -43462,7 +43462,7 @@ function h8(t) {
43462
43462
  r,
43463
43463
  o
43464
43464
  /* as string */
43465
- ) : i && o ? new Map(i.map((s) => [s, Nl(o)])) : /* @__PURE__ */ new Map();
43465
+ ) : i && o ? new Map(i.map((s) => [s, Ol(o)])) : /* @__PURE__ */ new Map();
43466
43466
  }
43467
43467
  function Lvn(t, e, n, r, i, o, s, a) {
43468
43468
  const l = new Oc([], JSON.stringify), c = Array.isArray(r) && r.length > 0, A = Array.isArray(s) && s.length > 0, u = c ? r : [null], f = A ? s : [null], h = Object.keys(a);
@@ -51236,7 +51236,7 @@ function $kn(t) {
51236
51236
  let Q;
51237
51237
  B ? Q = eft(_) : c || !f ? Q = `Color individual set (${R} ${E}${I === 1 ? "" : "s"})` : Q = "Color by expanded descendants";
51238
51238
  const M = i === 0 && !f ? () => h(r, _) : () => u(n), D = m ? { visible: !1 } : {}, F = E8e(t), G = C8();
51239
- return te.jsxs("span", { children: [te.jsx(Hte, { title: Q, ...D, children: te.jsx("button", { type: "button", onClick: M, onKeyPress: (P) => bte(P, "v", () => u(n)), className: G.titleButton, children: e }) }), F.length > 0 ? te.jsx(Ndt, { menuConfig: E8e(t), color: i > 0 && C ? s || Nl(v) : null, setColor: (P) => A(n, P), children: te.jsx(q1n, { className: G.nodeMenuIcon, "aria-label": "Open Node View Menu" }) }) : null, i > 0 && l ? a : null, i > 0 && te.jsx("span", { className: G.nodeSizeLabel, children: R })] });
51239
+ return te.jsxs("span", { children: [te.jsx(Hte, { title: Q, ...D, children: te.jsx("button", { type: "button", onClick: M, onKeyPress: (P) => bte(P, "v", () => u(n)), className: G.titleButton, children: e }) }), F.length > 0 ? te.jsx(Ndt, { menuConfig: E8e(t), color: i > 0 && C ? s || Ol(v) : null, setColor: (P) => A(n, P), children: te.jsx(q1n, { className: G.nodeMenuIcon, "aria-label": "Open Node View Menu" }) }) : null, i > 0 && l ? a : null, i > 0 && te.jsx("span", { className: G.nodeSizeLabel, children: R })] });
51240
51240
  }
51241
51241
  function zkn(t) {
51242
51242
  const { title: e, path: n, onNodeSetName: r, onNodeCheckNewName: i } = t, [o, s] = Tn(e), a = i(n, o);
@@ -51392,7 +51392,7 @@ function Odt(t, e, n, r) {
51392
51392
  ...t.children ? {
51393
51393
  children: t.children.map((o) => Odt(o, i, n))
51394
51394
  } : {},
51395
- color: n?.find((o) => Tr(o.path, i))?.color || Nl(r)
51395
+ color: n?.find((o) => Tr(o.path, i))?.color || Ol(r)
51396
51396
  };
51397
51397
  }
51398
51398
  function v8e(t, e, n) {
@@ -54631,18 +54631,18 @@ const x5n = {
54631
54631
  },
54632
54632
  viewport: (t, e) => t.viewport(...e)
54633
54633
  };
54634
- function zl(t, e, n) {
54634
+ function jl(t, e, n) {
54635
54635
  return e[t] !== void 0 ? e[t] : n[t];
54636
54636
  }
54637
54637
  const Q5n = {
54638
- blendEquation: (t, e, n) => t.blendEquationSeparate(zl(32777, e, n), zl(34877, e, n)),
54639
- blendFunc: (t, e, n) => t.blendFuncSeparate(zl(32969, e, n), zl(32968, e, n), zl(32971, e, n), zl(32970, e, n)),
54640
- polygonOffset: (t, e, n) => t.polygonOffset(zl(32824, e, n), zl(10752, e, n)),
54641
- sampleCoverage: (t, e, n) => t.sampleCoverage(zl(32938, e, n), zl(32939, e, n)),
54642
- stencilFuncFront: (t, e, n) => t.stencilFuncSeparate(1028, zl(2962, e, n), zl(2967, e, n), zl(2963, e, n)),
54643
- stencilFuncBack: (t, e, n) => t.stencilFuncSeparate(1029, zl(34816, e, n), zl(36003, e, n), zl(36004, e, n)),
54644
- stencilOpFront: (t, e, n) => t.stencilOpSeparate(1028, zl(2964, e, n), zl(2965, e, n), zl(2966, e, n)),
54645
- stencilOpBack: (t, e, n) => t.stencilOpSeparate(1029, zl(34817, e, n), zl(34818, e, n), zl(34819, e, n))
54638
+ blendEquation: (t, e, n) => t.blendEquationSeparate(jl(32777, e, n), jl(34877, e, n)),
54639
+ blendFunc: (t, e, n) => t.blendFuncSeparate(jl(32969, e, n), jl(32968, e, n), jl(32971, e, n), jl(32970, e, n)),
54640
+ polygonOffset: (t, e, n) => t.polygonOffset(jl(32824, e, n), jl(10752, e, n)),
54641
+ sampleCoverage: (t, e, n) => t.sampleCoverage(jl(32938, e, n), jl(32939, e, n)),
54642
+ stencilFuncFront: (t, e, n) => t.stencilFuncSeparate(1028, jl(2962, e, n), jl(2967, e, n), jl(2963, e, n)),
54643
+ stencilFuncBack: (t, e, n) => t.stencilFuncSeparate(1029, jl(34816, e, n), jl(36003, e, n), jl(36004, e, n)),
54644
+ stencilOpFront: (t, e, n) => t.stencilOpSeparate(1028, jl(2964, e, n), jl(2965, e, n), jl(2966, e, n)),
54645
+ stencilOpBack: (t, e, n) => t.stencilOpSeparate(1029, jl(34817, e, n), jl(34818, e, n), jl(34819, e, n))
54646
54646
  }, K8e = {
54647
54647
  enable: (t, e) => t({
54648
54648
  [e]: !0
@@ -63462,7 +63462,7 @@ function Uzn(t, e) {
63462
63462
  }
63463
63463
  const VQ = 2, Hzn = 1e4, $zn = "Model needs drawMode and vertexCount", k6e = () => {
63464
63464
  }, zzn = {};
63465
- let Fl = class {
63465
+ let Pl = class {
63466
63466
  constructor(e) {
63467
63467
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
63468
63468
  const {
@@ -64319,7 +64319,7 @@ let $8 = class {
64319
64319
  const {
64320
64320
  gl: n
64321
64321
  } = this;
64322
- this._buildResourceTransforms(n, e), e = this._updateModelProps(e), this.model = new Fl(n, Object.assign({}, e, {
64322
+ this._buildResourceTransforms(n, e), e = this._updateModelProps(e), this.model = new Pl(n, Object.assign({}, e, {
64323
64323
  fs: e.fs || $gt({
64324
64324
  version: Mgt(e.vs)
64325
64325
  }),
@@ -64896,7 +64896,7 @@ void main(void) {
64896
64896
  uv = aTexCoord;
64897
64897
  }
64898
64898
  `, H6e = [-1, -1, 1, -1, -1, 1, 1, 1];
64899
- class Bpt extends Fl {
64899
+ class Bpt extends Pl {
64900
64900
  constructor(e, n) {
64901
64901
  const r = H6e.map((i) => i === -1 ? 0 : i);
64902
64902
  super(e, Object.assign({}, n, {
@@ -64935,7 +64935,7 @@ const _9n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
64935
64935
  Framebuffer: rc,
64936
64936
  Geometry: dl,
64937
64937
  IcoSphereGeometry: g9n,
64938
- Model: Fl,
64938
+ Model: Pl,
64939
64939
  PlaneGeometry: I9n,
64940
64940
  Program: LSe,
64941
64941
  ProgramManager: V1,
@@ -76218,7 +76218,7 @@ class hne extends mA {
76218
76218
  let n = [];
76219
76219
  for (let o = 0; o < 50; o++)
76220
76220
  n = n.concat([o, 1, 0, o, -1, 0]);
76221
- const i = new Fl(e, {
76221
+ const i = new Pl(e, {
76222
76222
  ...this.getShaders(),
76223
76223
  id: this.props.id,
76224
76224
  geometry: new dl({
@@ -76542,7 +76542,7 @@ let kv = class extends mA {
76542
76542
  return wHe(e) && (n = [[e[0], e[1]], [e[0], e[3]], [e[2], e[3]], [e[2], e[1]]]), q7n(n, this.context.viewport.resolution);
76543
76543
  }
76544
76544
  _getModel(e) {
76545
- return e ? new Fl(e, {
76545
+ return e ? new Pl(e, {
76546
76546
  ...this.getShaders(),
76547
76547
  id: this.props.id,
76548
76548
  geometry: new dl({
@@ -77114,7 +77114,7 @@ class K8 extends mA {
77114
77114
  }
77115
77115
  _getModel(e) {
77116
77116
  const n = [-1, -1, -1, 1, 1, 1, 1, -1];
77117
- return new Fl(e, {
77117
+ return new Pl(e, {
77118
77118
  ...this.getShaders(),
77119
77119
  id: this.props.id,
77120
77120
  geometry: new dl({
@@ -77381,7 +77381,7 @@ class Dw extends mA {
77381
77381
  }
77382
77382
  _getModel(e) {
77383
77383
  const n = [0, -1, 0, 0, 1, 0, 1, -1, 0, 1, 1, 0];
77384
- return new Fl(e, {
77384
+ return new Pl(e, {
77385
77385
  ...this.getShaders(),
77386
77386
  id: this.props.id,
77387
77387
  geometry: new dl({
@@ -77551,7 +77551,7 @@ class dne extends mA {
77551
77551
  const i = r / 3 * Math.PI * 2;
77552
77552
  n.push(Math.cos(i) * 2, Math.sin(i) * 2, 0);
77553
77553
  }
77554
- return new Fl(e, {
77554
+ return new Pl(e, {
77555
77555
  ...this.getShaders(),
77556
77556
  id: this.props.id,
77557
77557
  geometry: new dl({
@@ -77851,7 +77851,7 @@ class fv extends mA {
77851
77851
  }
77852
77852
  _getModel(e) {
77853
77853
  const n = [-1, -1, 0, 1, -1, 0, 1, 1, 0, -1, 1, 0];
77854
- return new Fl(e, {
77854
+ return new Pl(e, {
77855
77855
  ...this.getShaders(),
77856
77856
  id: this.props.id,
77857
77857
  geometry: new dl({
@@ -78731,7 +78731,7 @@ class X8 extends mA {
78731
78731
  }), i;
78732
78732
  }
78733
78733
  _getModel(e) {
78734
- return new Fl(e, {
78734
+ return new Pl(e, {
78735
78735
  ...this.getShaders(),
78736
78736
  id: this.props.id,
78737
78737
  isInstanced: !0
@@ -79400,7 +79400,7 @@ class hO extends mA {
79400
79400
  }
79401
79401
  _getModel(e) {
79402
79402
  const n = [0, 1, 2, 1, 4, 2, 1, 3, 4, 3, 5, 4], r = [0, 0, 0, -1, 0, 1, 1, -1, 1, 1, 1, 0];
79403
- return new Fl(e, {
79403
+ return new Pl(e, {
79404
79404
  ...this.getShaders(),
79405
79405
  id: this.props.id,
79406
79406
  geometry: new dl({
@@ -80337,7 +80337,7 @@ class dO extends mA {
80337
80337
  let o, s;
80338
80338
  if (r) {
80339
80339
  const a = this.getShaders("top");
80340
- a.defines.NON_INSTANCED_MODEL = 1, o = new Fl(e, {
80340
+ a.defines.NON_INSTANCED_MODEL = 1, o = new Pl(e, {
80341
80341
  ...a,
80342
80342
  id: "".concat(n, "-top"),
80343
80343
  drawMode: 4,
@@ -80352,7 +80352,7 @@ class dO extends mA {
80352
80352
  isIndexed: !0
80353
80353
  });
80354
80354
  }
80355
- return i && (s = new Fl(e, {
80355
+ return i && (s = new Pl(e, {
80356
80356
  ...this.getShaders("side"),
80357
80357
  id: "".concat(n, "-side"),
80358
80358
  geometry: new dl({
@@ -81391,7 +81391,7 @@ class yne extends mA {
81391
81391
  }
81392
81392
  _getModel(e) {
81393
81393
  const n = [0, 0, 1, 0, 1, 1, 0, 1];
81394
- return new Fl(e, {
81394
+ return new Pl(e, {
81395
81395
  ...this.getShaders(),
81396
81396
  id: this.props.id,
81397
81397
  geometry: new dl({
@@ -82983,7 +82983,7 @@ function HJn(t, e) {
82983
82983
  fs: DJn,
82984
82984
  modules: [kSe, pA]
82985
82985
  }, e);
82986
- return new Fl(t, {
82986
+ return new Pl(t, {
82987
82987
  id: "Gird-Aggregation-Model",
82988
82988
  vertexCount: 1,
82989
82989
  drawMode: 0,
@@ -82991,7 +82991,7 @@ function HJn(t, e) {
82991
82991
  });
82992
82992
  }
82993
82993
  function $Jn(t, e) {
82994
- return new Fl(t, {
82994
+ return new Pl(t, {
82995
82995
  id: "All-Aggregation-Model",
82996
82996
  vs: LJn,
82997
82997
  fs: NJn,
@@ -86642,7 +86642,7 @@ var vn = function(t) {
86642
86642
  }
86643
86643
  p = T, p = In(x[p >> 2] | 0, x[p + 4 >> 2] | 0, 52) | 0, tt() | 0, ds(O, (L | 0) > 6 ? L : 6, p & 15), p = 0;
86644
86644
  do {
86645
- if (H = T + (p << 3) | 0, Ul(x[H >> 2] | 0, x[H + 4 >> 2] | 0, b), H = x[b >> 2] | 0, (H | 0) > 0) {
86645
+ if (H = T + (p << 3) | 0, Hl(x[H >> 2] | 0, x[H + 4 >> 2] | 0, b), H = x[b >> 2] | 0, (H | 0) > 0) {
86646
86646
  y = 0;
86647
86647
  do
86648
86648
  ne = b + 8 + (y << 4) | 0, y = y + 1 | 0, H = b + 8 + (((y | 0) % (H | 0) | 0) << 4) | 0, K = Ab(O, H, ne) | 0, K ? fc(O, K) | 0 : D_(O, ne, H) | 0, H = x[b >> 2] | 0;
@@ -86820,7 +86820,7 @@ var vn = function(t) {
86820
86820
  do
86821
86821
  x[ne >> 2] = 0, ne = ne + 4 | 0;
86822
86822
  while ((ne | 0) < (y | 0));
86823
- return bc(L, K), ne = K, y = x[ne >> 2] | 0, ne = x[ne + 4 >> 2] | 0, XA(y, ne, O), Ul(y, ne, H), b = +cc(O, H + 8 | 0), De[O >> 3] = +De[T >> 3], ne = O + 8 | 0, De[ne >> 3] = +De[T + 16 >> 3], De[H >> 3] = +De[T + 8 >> 3], y = H + 8 | 0, De[y >> 3] = +De[T + 24 >> 3], w = +cc(O, H), y = ~~+_n(+(w * w / +S0(+ +qe(+((+De[ne >> 3] - +De[y >> 3]) / (+De[O >> 3] - +De[H >> 3]))), 3) / (b * (b * 2.59807621135) * 0.8))), Ge = p, (y | 0 ? y : 1) | 0;
86823
+ return bc(L, K), ne = K, y = x[ne >> 2] | 0, ne = x[ne + 4 >> 2] | 0, XA(y, ne, O), Hl(y, ne, H), b = +cc(O, H + 8 | 0), De[O >> 3] = +De[T >> 3], ne = O + 8 | 0, De[ne >> 3] = +De[T + 16 >> 3], De[H >> 3] = +De[T + 8 >> 3], y = H + 8 | 0, De[y >> 3] = +De[T + 24 >> 3], w = +cc(O, H), y = ~~+_n(+(w * w / +S0(+ +qe(+((+De[ne >> 3] - +De[y >> 3]) / (+De[O >> 3] - +De[H >> 3]))), 3) / (b * (b * 2.59807621135) * 0.8))), Ge = p, (y | 0 ? y : 1) | 0;
86824
86824
  }
86825
86825
  function Io(T, L, O) {
86826
86826
  T = T | 0, L = L | 0, O = O | 0;
@@ -86829,9 +86829,9 @@ var vn = function(t) {
86829
86829
  do
86830
86830
  x[p >> 2] = 0, p = p + 4 | 0;
86831
86831
  while ((p | 0) < (b | 0));
86832
- return bc(O, ne), b = ne, p = x[b >> 2] | 0, b = x[b + 4 >> 2] | 0, XA(p, b, H), Ul(p, b, K), w = +cc(H, K + 8 | 0), b = ~~+_n(+(+cc(T, L) / (w * 2))), Ge = y, (b | 0 ? b : 1) | 0;
86832
+ return bc(O, ne), b = ne, p = x[b >> 2] | 0, b = x[b + 4 >> 2] | 0, XA(p, b, H), Hl(p, b, K), w = +cc(H, K + 8 | 0), b = ~~+_n(+(+cc(T, L) / (w * 2))), Ge = y, (b | 0 ? b : 1) | 0;
86833
86833
  }
86834
- function kl(T, L, O, H) {
86834
+ function Gl(T, L, O, H) {
86835
86835
  T = T | 0, L = L | 0, O = O | 0, H = H | 0, x[T >> 2] = L, x[T + 4 >> 2] = O, x[T + 8 >> 2] = H;
86836
86836
  }
86837
86837
  function kg(T, L) {
@@ -87191,7 +87191,7 @@ var vn = function(t) {
87191
87191
  ne = 18608 + (H * 80 | 0) + 60 | 0, H = T;
87192
87192
  break;
87193
87193
  }
87194
- H = 18608 + (H * 80 | 0) + 40 | 0, O ? (kl(Ae, ee, 0, 0), KA(Ee, Ae, y), Df(y), fs(y, Ae, Ee), ne = H, H = T) : (ne = H, H = T);
87194
+ H = 18608 + (H * 80 | 0) + 40 | 0, O ? (Gl(Ae, ee, 0, 0), KA(Ee, Ae, y), Df(y), fs(y, Ae, Ee), ne = H, H = T) : (ne = H, H = T);
87195
87195
  } else
87196
87196
  ne = 18608 + ((x[T >> 2] | 0) * 80 | 0) + 20 | 0, H = T;
87197
87197
  while (0);
@@ -87374,7 +87374,7 @@ var vn = function(t) {
87374
87374
  function Ac(T, L) {
87375
87375
  T = T | 0, L = L | 0;
87376
87376
  var O = 0, H = 0, K = 0, ne = 0, p = 0;
87377
- if (ne = Ge, Ge = Ge + 192 | 0, H = ne + 168 | 0, K = ne, XA(T, L, H), Ul(T, L, K), L = x[K >> 2] | 0, (L | 0) <= 0)
87377
+ if (ne = Ge, Ge = Ge + 192 | 0, H = ne + 168 | 0, K = ne, XA(T, L, H), Hl(T, L, K), L = x[K >> 2] | 0, (L | 0) <= 0)
87378
87378
  return O = 0, Ge = ne, +O;
87379
87379
  if (O = +zr(K + 8 | 0, K + 8 + (((L | 0) != 1 & 1) << 4) | 0, H) + 0, (L | 0) == 1)
87380
87380
  return Ge = ne, +O;
@@ -87387,7 +87387,7 @@ var vn = function(t) {
87387
87387
  function p0(T, L) {
87388
87388
  T = T | 0, L = L | 0;
87389
87389
  var O = 0, H = 0, K = 0, ne = 0, p = 0;
87390
- if (ne = Ge, Ge = Ge + 192 | 0, H = ne + 168 | 0, K = ne, XA(T, L, H), Ul(T, L, K), L = x[K >> 2] | 0, (L | 0) > 0) {
87390
+ if (ne = Ge, Ge = Ge + 192 | 0, H = ne + 168 | 0, K = ne, XA(T, L, H), Hl(T, L, K), L = x[K >> 2] | 0, (L | 0) > 0) {
87391
87391
  if (O = +zr(K + 8 | 0, K + 8 + (((L | 0) != 1 & 1) << 4) | 0, H) + 0, (L | 0) != 1) {
87392
87392
  T = 1;
87393
87393
  do
@@ -87401,7 +87401,7 @@ var vn = function(t) {
87401
87401
  function yA(T, L) {
87402
87402
  T = T | 0, L = L | 0;
87403
87403
  var O = 0, H = 0, K = 0, ne = 0, p = 0;
87404
- if (ne = Ge, Ge = Ge + 192 | 0, H = ne + 168 | 0, K = ne, XA(T, L, H), Ul(T, L, K), L = x[K >> 2] | 0, (L | 0) > 0) {
87404
+ if (ne = Ge, Ge = Ge + 192 | 0, H = ne + 168 | 0, K = ne, XA(T, L, H), Hl(T, L, K), L = x[K >> 2] | 0, (L | 0) > 0) {
87405
87405
  if (O = +zr(K + 8 | 0, K + 8 + (((L | 0) != 1 & 1) << 4) | 0, H) + 0, (L | 0) != 1) {
87406
87406
  T = 1;
87407
87407
  do
@@ -87412,7 +87412,7 @@ var vn = function(t) {
87412
87412
  O = 0;
87413
87413
  return Ge = ne, +(O * 6371.007180918475 * 6371.007180918475 * 1e3 * 1e3);
87414
87414
  }
87415
- function Gl(T, L) {
87415
+ function Ul(T, L) {
87416
87416
  T = T | 0, L = L | 0;
87417
87417
  var O = 0, H = 0, K = 0, ne = 0, p = 0, y = 0, b = 0, w = 0;
87418
87418
  if (p = Ge, Ge = Ge + 176 | 0, ne = p, Da(T, L, ne), T = x[ne >> 2] | 0, (T | 0) <= 1)
@@ -88250,7 +88250,7 @@ var vn = function(t) {
88250
88250
  var H = 0, K = 0;
88251
88251
  H = Ge, Ge = Ge + 16 | 0, K = H, yI(T, L, K), L = In(T | 0, L | 0, 52) | 0, tt() | 0, Ru(K, L & 15, O), Ge = H;
88252
88252
  }
88253
- function Ul(T, L, O) {
88253
+ function Hl(T, L, O) {
88254
88254
  T = T | 0, L = L | 0, O = O | 0;
88255
88255
  var H = 0, K = 0, ne = 0, p = 0, y = 0;
88256
88256
  p = Ge, Ge = Ge + 16 | 0, ne = p, yI(T, L, ne), H = In(T | 0, L | 0, 45) | 0, tt() | 0, H = (mn(H & 127) | 0) == 0, K = In(T | 0, L | 0, 52) | 0, tt() | 0, K = K & 15;
@@ -88359,7 +88359,7 @@ var vn = function(t) {
88359
88359
  }
88360
88360
  Ge = ee;
88361
88361
  }
88362
- function Hl() {
88362
+ function $l() {
88363
88363
  return 12;
88364
88364
  }
88365
88365
  function bc(T, L) {
@@ -89975,7 +89975,7 @@ var vn = function(t) {
89975
89975
  _emscripten_replace_memory: $t,
89976
89976
  _exactEdgeLengthKm: Xa,
89977
89977
  _exactEdgeLengthM: BQ,
89978
- _exactEdgeLengthRads: Gl,
89978
+ _exactEdgeLengthRads: Ul,
89979
89979
  _experimentalH3ToLocalIj: xC,
89980
89980
  _experimentalLocalIjToH3: E0,
89981
89981
  _free: Si,
@@ -90002,7 +90002,7 @@ var vn = function(t) {
90002
90002
  _h3ToCenterChild: $g,
90003
90003
  _h3ToChildren: ks,
90004
90004
  _h3ToGeo: XA,
90005
- _h3ToGeoBoundary: Ul,
90005
+ _h3ToGeoBoundary: Hl,
90006
90006
  _h3ToParent: Nf,
90007
90007
  _h3UnidirectionalEdgeIsValid: Th,
90008
90008
  _hexAreaKm2: SC,
@@ -90022,7 +90022,7 @@ var vn = function(t) {
90022
90022
  _memcpy: Sr,
90023
90023
  _memset: bl,
90024
90024
  _numHexagons: Il,
90025
- _pentagonIndexCount: Hl,
90025
+ _pentagonIndexCount: $l,
90026
90026
  _pointDistKm: cc,
90027
90027
  _pointDistM: Qi,
90028
90028
  _pointDistRads: lc,
@@ -91261,7 +91261,7 @@ class YD extends mA {
91261
91261
  }).draw();
91262
91262
  }
91263
91263
  getModel(e) {
91264
- const n = new Fl(this.context.gl, {
91264
+ const n = new Pl(this.context.gl, {
91265
91265
  ...this.getShaders(),
91266
91266
  id: this.props.id,
91267
91267
  geometry: BZn(e, this.props._useMeshColors),
@@ -91605,7 +91605,7 @@ class OZn {
91605
91605
  class FZn extends OM {
91606
91606
  constructor(e) {
91607
91607
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
91608
- super(n), this.onBeforeRender = null, this.AfterRender = null, e instanceof Fl ? (this.model = e, this._setModelNodeProps(n)) : this.model = new Fl(e, n), this.bounds = null, this.managedResources = n.managedResources || [];
91608
+ super(n), this.onBeforeRender = null, this.AfterRender = null, e instanceof Pl ? (this.model = e, this._setModelNodeProps(n)) : this.model = new Pl(e, n), this.bounds = null, this.managedResources = n.managedResources || [];
91609
91609
  }
91610
91610
  setProps(e) {
91611
91611
  return super.setProps(e), this._setModelNodeProps(e), this;
@@ -94814,7 +94814,7 @@ class kwe extends YD {
94814
94814
  materialParser: i
94815
94815
  });
94816
94816
  const o = this.getShaders();
94817
- return wnr(e.attributes), new Fl(this.context.gl, {
94817
+ return wnr(e.attributes), new Pl(this.context.gl, {
94818
94818
  ...this.getShaders(),
94819
94819
  id: n,
94820
94820
  geometry: e,
@@ -107387,23 +107387,23 @@ var Gme = { exports: {} };
107387
107387
  for (var y = p.iterator(); y.hasNext(); )
107388
107388
  y.next().getEdges().linkResultDirectedEdges();
107389
107389
  };
107390
- var kl = function() {
107390
+ var Gl = function() {
107391
107391
  this._geometryFactory = null, this._shellList = new Ve();
107392
107392
  var p = arguments[0];
107393
107393
  this._geometryFactory = p;
107394
107394
  };
107395
- kl.prototype.sortShellsAndHoles = function(p, y, b) {
107395
+ Gl.prototype.sortShellsAndHoles = function(p, y, b) {
107396
107396
  for (var w = p.iterator(); w.hasNext(); ) {
107397
107397
  var N = w.next();
107398
107398
  N.isHole() ? b.add(N) : y.add(N);
107399
107399
  }
107400
- }, kl.prototype.computePolygons = function(p) {
107400
+ }, Gl.prototype.computePolygons = function(p) {
107401
107401
  for (var y = new Ve(), b = p.iterator(); b.hasNext(); ) {
107402
107402
  var w = b.next().toPolygon(this._geometryFactory);
107403
107403
  y.add(w);
107404
107404
  }
107405
107405
  return y;
107406
- }, kl.prototype.placeFreeHoles = function(p, y) {
107406
+ }, Gl.prototype.placeFreeHoles = function(p, y) {
107407
107407
  for (var b = y.iterator(); b.hasNext(); ) {
107408
107408
  var w = b.next();
107409
107409
  if (w.getShell() === null) {
@@ -107413,7 +107413,7 @@ var Gme = { exports: {} };
107413
107413
  w.setShell(N);
107414
107414
  }
107415
107415
  }
107416
- }, kl.prototype.buildMinimalEdgeRings = function(p, y, b) {
107416
+ }, Gl.prototype.buildMinimalEdgeRings = function(p, y, b) {
107417
107417
  for (var w = new Ve(), N = p.iterator(); N.hasNext(); ) {
107418
107418
  var ee = N.next();
107419
107419
  if (ee.getMaxNodeDegree() > 2) {
@@ -107424,12 +107424,12 @@ var Gme = { exports: {} };
107424
107424
  w.add(ee);
107425
107425
  }
107426
107426
  return w;
107427
- }, kl.prototype.containsPoint = function(p) {
107427
+ }, Gl.prototype.containsPoint = function(p) {
107428
107428
  for (var y = this._shellList.iterator(); y.hasNext(); )
107429
107429
  if (y.next().containsPoint(p))
107430
107430
  return !0;
107431
107431
  return !1;
107432
- }, kl.prototype.buildMaximalEdgeRings = function(p) {
107432
+ }, Gl.prototype.buildMaximalEdgeRings = function(p) {
107433
107433
  for (var y = new Ve(), b = p.iterator(); b.hasNext(); ) {
107434
107434
  var w = b.next();
107435
107435
  if (w.isInResult() && w.getLabel().isArea() && w.getEdgeRing() === null) {
@@ -107438,14 +107438,14 @@ var Gme = { exports: {} };
107438
107438
  }
107439
107439
  }
107440
107440
  return y;
107441
- }, kl.prototype.placePolygonHoles = function(p, y) {
107441
+ }, Gl.prototype.placePolygonHoles = function(p, y) {
107442
107442
  for (var b = y.iterator(); b.hasNext(); ) {
107443
107443
  var w = b.next();
107444
107444
  w.isHole() && w.setShell(p);
107445
107445
  }
107446
- }, kl.prototype.getPolygons = function() {
107446
+ }, Gl.prototype.getPolygons = function() {
107447
107447
  return this.computePolygons(this._shellList);
107448
- }, kl.prototype.findEdgeRingContaining = function(p, y) {
107448
+ }, Gl.prototype.findEdgeRingContaining = function(p, y) {
107449
107449
  for (var b = p.getLinearRing(), w = b.getEnvelopeInternal(), N = b.getCoordinateN(0), ee = null, Ae = null, Ee = y.iterator(); Ee.hasNext(); ) {
107450
107450
  var Le = Ee.next(), $e = Le.getLinearRing(), ot = $e.getEnvelopeInternal();
107451
107451
  ee !== null && (Ae = ee.getLinearRing().getEnvelopeInternal());
@@ -107453,13 +107453,13 @@ var Gme = { exports: {} };
107453
107453
  ot.contains(w) && Te.isPointInRing(N, $e.getCoordinates()) && (ut = !0), ut && (ee === null || Ae.contains(ot)) && (ee = Le);
107454
107454
  }
107455
107455
  return ee;
107456
- }, kl.prototype.findShell = function(p) {
107456
+ }, Gl.prototype.findShell = function(p) {
107457
107457
  for (var y = 0, b = null, w = p.iterator(); w.hasNext(); ) {
107458
107458
  var N = w.next();
107459
107459
  N.isHole() || (b = N, y++);
107460
107460
  }
107461
107461
  return ce.isTrue(y <= 1, "found two shells in MinimalEdgeRing list"), b;
107462
- }, kl.prototype.add = function() {
107462
+ }, Gl.prototype.add = function() {
107463
107463
  if (arguments.length === 1) {
107464
107464
  var p = arguments[0];
107465
107465
  this.add(p.getEdgeEnds(), p.getNodes());
@@ -107469,10 +107469,10 @@ var Gme = { exports: {} };
107469
107469
  var w = this.buildMaximalEdgeRings(y), N = new Ve(), ee = this.buildMinimalEdgeRings(w, this._shellList, N);
107470
107470
  this.sortShellsAndHoles(ee, this._shellList, N), this.placeFreeHoles(this._shellList, N);
107471
107471
  }
107472
- }, kl.prototype.interfaces_ = function() {
107472
+ }, Gl.prototype.interfaces_ = function() {
107473
107473
  return [];
107474
- }, kl.prototype.getClass = function() {
107475
- return kl;
107474
+ }, Gl.prototype.getClass = function() {
107475
+ return Gl;
107476
107476
  };
107477
107477
  var kg = function() {
107478
107478
  };
@@ -109191,43 +109191,43 @@ var Gme = { exports: {} };
109191
109191
  }, yA.isAtomic = function(p) {
109192
109192
  return !(p instanceof ke);
109193
109193
  };
109194
- var Gl = function() {
109194
+ var Ul = function() {
109195
109195
  this._geom = null;
109196
109196
  var p = arguments[0];
109197
109197
  this._geom = p;
109198
109198
  };
109199
- Gl.prototype.locate = function(p) {
109200
- return Gl.locate(p, this._geom);
109201
- }, Gl.prototype.interfaces_ = function() {
109199
+ Ul.prototype.locate = function(p) {
109200
+ return Ul.locate(p, this._geom);
109201
+ }, Ul.prototype.interfaces_ = function() {
109202
109202
  return [p0];
109203
- }, Gl.prototype.getClass = function() {
109204
- return Gl;
109205
- }, Gl.isPointInRing = function(p, y) {
109203
+ }, Ul.prototype.getClass = function() {
109204
+ return Ul;
109205
+ }, Ul.isPointInRing = function(p, y) {
109206
109206
  return !!y.getEnvelopeInternal().intersects(p) && Te.isPointInRing(p, y.getCoordinates());
109207
- }, Gl.containsPointInPolygon = function(p, y) {
109207
+ }, Ul.containsPointInPolygon = function(p, y) {
109208
109208
  if (y.isEmpty())
109209
109209
  return !1;
109210
109210
  var b = y.getExteriorRing();
109211
- if (!Gl.isPointInRing(p, b))
109211
+ if (!Ul.isPointInRing(p, b))
109212
109212
  return !1;
109213
109213
  for (var w = 0; w < y.getNumInteriorRing(); w++) {
109214
109214
  var N = y.getInteriorRingN(w);
109215
- if (Gl.isPointInRing(p, N))
109215
+ if (Ul.isPointInRing(p, N))
109216
109216
  return !1;
109217
109217
  }
109218
109218
  return !0;
109219
- }, Gl.containsPoint = function(p, y) {
109219
+ }, Ul.containsPoint = function(p, y) {
109220
109220
  if (y instanceof _n)
109221
- return Gl.containsPointInPolygon(p, y);
109221
+ return Ul.containsPointInPolygon(p, y);
109222
109222
  if (y instanceof ke)
109223
109223
  for (var b = new yA(y); b.hasNext(); ) {
109224
109224
  var w = b.next();
109225
- if (w !== y && Gl.containsPoint(p, w))
109225
+ if (w !== y && Ul.containsPoint(p, w))
109226
109226
  return !0;
109227
109227
  }
109228
109228
  return !1;
109229
- }, Gl.locate = function(p, y) {
109230
- return y.isEmpty() ? P.EXTERIOR : Gl.containsPoint(p, y) ? P.INTERIOR : P.EXTERIOR;
109229
+ }, Ul.locate = function(p, y) {
109230
+ return y.isEmpty() ? P.EXTERIOR : Ul.containsPoint(p, y) ? P.INTERIOR : P.EXTERIOR;
109231
109231
  };
109232
109232
  var Xa = function() {
109233
109233
  this._edgeMap = new h(), this._edgeList = null, this._ptInAreaLocation = [P.NONE, P.NONE];
@@ -109290,7 +109290,7 @@ var Gme = { exports: {} };
109290
109290
  }, Xa.prototype.getEdges = function() {
109291
109291
  return this._edgeList === null && (this._edgeList = new Ve(this._edgeMap.values())), this._edgeList;
109292
109292
  }, Xa.prototype.getLocation = function(p, y, b) {
109293
- return this._ptInAreaLocation[p] === P.NONE && (this._ptInAreaLocation[p] = Gl.locate(y, b[p].getGeometry())), this._ptInAreaLocation[p];
109293
+ return this._ptInAreaLocation[p] === P.NONE && (this._ptInAreaLocation[p] = Ul.locate(y, b[p].getGeometry())), this._ptInAreaLocation[p];
109294
109294
  }, Xa.prototype.toString = function() {
109295
109295
  var p = new V();
109296
109296
  p.append("EdgeEndStar: " + this.getCoordinate()), p.append(`
@@ -109947,7 +109947,7 @@ var Gme = { exports: {} };
109947
109947
  if (N.size() <= 0)
109948
109948
  return this.createEmptyResultGeometry();
109949
109949
  this.computeNodedEdges(N, b), this._graph = new Io(new wC()), this._graph.addEdges(this._edgeList.getEdges());
109950
- var ee = this.createSubgraphs(this._graph), Ae = new kl(this._geomFact);
109950
+ var ee = this.createSubgraphs(this._graph), Ae = new Gl(this._geomFact);
109951
109951
  this.buildSubgraphs(ee, Ae);
109952
109952
  var Ee = Ae.getPolygons();
109953
109953
  return Ee.size() <= 0 ? this.createEmptyResultGeometry() : this._geomFact.buildGeometry(Ee);
@@ -110214,12 +110214,12 @@ var Gme = { exports: {} };
110214
110214
  }, XA.prototype.getClass = function() {
110215
110215
  return XA;
110216
110216
  };
110217
- var Ul = function() {
110217
+ var Hl = function() {
110218
110218
  this._pm = null, this._li = null, this._scaleFactor = null, this._noder = null, this._pointSnapper = null, this._nodedSegStrings = null;
110219
110219
  var p = arguments[0];
110220
110220
  this._pm = p, this._li = new he(), this._li.setPrecisionModel(p), this._scaleFactor = p.getScale();
110221
110221
  };
110222
- Ul.prototype.checkCorrectness = function(p) {
110222
+ Hl.prototype.checkCorrectness = function(p) {
110223
110223
  var y = Ko.getNodedSubstrings(p), b = new yl(y);
110224
110224
  try {
110225
110225
  b.checkValid();
@@ -110228,15 +110228,15 @@ var Gme = { exports: {} };
110228
110228
  throw w;
110229
110229
  w.printStackTrace();
110230
110230
  }
110231
- }, Ul.prototype.getNodedSubstrings = function() {
110231
+ }, Hl.prototype.getNodedSubstrings = function() {
110232
110232
  return Ko.getNodedSubstrings(this._nodedSegStrings);
110233
- }, Ul.prototype.snapRound = function(p, y) {
110233
+ }, Hl.prototype.snapRound = function(p, y) {
110234
110234
  var b = this.findInteriorIntersections(p, y);
110235
110235
  this.computeIntersectionSnaps(b), this.computeVertexSnaps(p);
110236
- }, Ul.prototype.findInteriorIntersections = function(p, y) {
110236
+ }, Hl.prototype.findInteriorIntersections = function(p, y) {
110237
110237
  var b = new XA(y);
110238
110238
  return this._noder.setSegmentIntersector(b), this._noder.computeNodes(p), b.getInteriorIntersections();
110239
- }, Ul.prototype.computeVertexSnaps = function() {
110239
+ }, Hl.prototype.computeVertexSnaps = function() {
110240
110240
  if (J(arguments[0], ft))
110241
110241
  for (var p = arguments[0].iterator(); p.hasNext(); ) {
110242
110242
  var y = p.next();
@@ -110247,17 +110247,17 @@ var Gme = { exports: {} };
110247
110247
  var ee = new Cl(w[N], this._scaleFactor, this._li);
110248
110248
  this._pointSnapper.snap(ee, b, N) && b.addIntersection(w[N], N);
110249
110249
  }
110250
- }, Ul.prototype.computeNodes = function(p) {
110250
+ }, Hl.prototype.computeNodes = function(p) {
110251
110251
  this._nodedSegStrings = p, this._noder = new Qd(), this._pointSnapper = new I0(this._noder.getIndex()), this.snapRound(p, this._li);
110252
- }, Ul.prototype.computeIntersectionSnaps = function(p) {
110252
+ }, Hl.prototype.computeIntersectionSnaps = function(p) {
110253
110253
  for (var y = p.iterator(); y.hasNext(); ) {
110254
110254
  var b = y.next(), w = new Cl(b, this._scaleFactor, this._li);
110255
110255
  this._pointSnapper.snap(w);
110256
110256
  }
110257
- }, Ul.prototype.interfaces_ = function() {
110257
+ }, Hl.prototype.interfaces_ = function() {
110258
110258
  return [Qh];
110259
- }, Ul.prototype.getClass = function() {
110260
- return Ul;
110259
+ }, Hl.prototype.getClass = function() {
110260
+ return Hl;
110261
110261
  };
110262
110262
  var el = function() {
110263
110263
  if (this._argGeom = null, this._distance = null, this._bufParams = new $i(), this._resultGeometry = null, this._saveException = null, arguments.length === 1) {
@@ -110269,7 +110269,7 @@ var Gme = { exports: {} };
110269
110269
  }
110270
110270
  }, y0 = { CAP_ROUND: { configurable: !0 }, CAP_BUTT: { configurable: !0 }, CAP_FLAT: { configurable: !0 }, CAP_SQUARE: { configurable: !0 }, MAX_PRECISION_DIGITS: { configurable: !0 } };
110271
110271
  el.prototype.bufferFixedPrecision = function(p) {
110272
- var y = new Ff(new Ul(new an(1)), p.getScale()), b = new Ro(this._bufParams);
110272
+ var y = new Ff(new Hl(new an(1)), p.getScale()), b = new Ro(this._bufParams);
110273
110273
  b.setWorkingPrecisionModel(p), b.setNoder(y), this._resultGeometry = b.buffer(this._argGeom, this._distance);
110274
110274
  }, el.prototype.bufferReducedPrecision = function() {
110275
110275
  var p = this;
@@ -110347,14 +110347,14 @@ var Gme = { exports: {} };
110347
110347
  }, y0.MAX_PRECISION_DIGITS.get = function() {
110348
110348
  return 12;
110349
110349
  }, Object.defineProperties(el, y0);
110350
- var Hl = function() {
110350
+ var $l = function() {
110351
110351
  this._pt = [new M(), new M()], this._distance = B.NaN, this._isNull = !0;
110352
110352
  };
110353
- Hl.prototype.getCoordinates = function() {
110353
+ $l.prototype.getCoordinates = function() {
110354
110354
  return this._pt;
110355
- }, Hl.prototype.getCoordinate = function(p) {
110355
+ }, $l.prototype.getCoordinate = function(p) {
110356
110356
  return this._pt[p];
110357
- }, Hl.prototype.setMinimum = function() {
110357
+ }, $l.prototype.setMinimum = function() {
110358
110358
  if (arguments.length === 1) {
110359
110359
  var p = arguments[0];
110360
110360
  this.setMinimum(p._pt[0], p._pt[1]);
@@ -110365,7 +110365,7 @@ var Gme = { exports: {} };
110365
110365
  var w = y.distance(b);
110366
110366
  w < this._distance && this.initialize(y, b, w);
110367
110367
  }
110368
- }, Hl.prototype.initialize = function() {
110368
+ }, $l.prototype.initialize = function() {
110369
110369
  if (arguments.length === 0)
110370
110370
  this._isNull = !0;
110371
110371
  else if (arguments.length === 2) {
@@ -110375,9 +110375,9 @@ var Gme = { exports: {} };
110375
110375
  var b = arguments[0], w = arguments[1], N = arguments[2];
110376
110376
  this._pt[0].setCoordinate(b), this._pt[1].setCoordinate(w), this._distance = N, this._isNull = !1;
110377
110377
  }
110378
- }, Hl.prototype.getDistance = function() {
110378
+ }, $l.prototype.getDistance = function() {
110379
110379
  return this._distance;
110380
- }, Hl.prototype.setMaximum = function() {
110380
+ }, $l.prototype.setMaximum = function() {
110381
110381
  if (arguments.length === 1) {
110382
110382
  var p = arguments[0];
110383
110383
  this.setMaximum(p._pt[0], p._pt[1]);
@@ -110388,10 +110388,10 @@ var Gme = { exports: {} };
110388
110388
  var w = y.distance(b);
110389
110389
  w > this._distance && this.initialize(y, b, w);
110390
110390
  }
110391
- }, Hl.prototype.interfaces_ = function() {
110391
+ }, $l.prototype.interfaces_ = function() {
110392
110392
  return [];
110393
- }, Hl.prototype.getClass = function() {
110394
- return Hl;
110393
+ }, $l.prototype.getClass = function() {
110394
+ return $l;
110395
110395
  };
110396
110396
  var bc = function() {
110397
110397
  };
@@ -110400,18 +110400,18 @@ var Gme = { exports: {} };
110400
110400
  }, bc.prototype.getClass = function() {
110401
110401
  return bc;
110402
110402
  }, bc.computeDistance = function() {
110403
- if (arguments[2] instanceof Hl && arguments[0] instanceof Gt && arguments[1] instanceof M)
110403
+ if (arguments[2] instanceof $l && arguments[0] instanceof Gt && arguments[1] instanceof M)
110404
110404
  for (var p = arguments[0], y = arguments[1], b = arguments[2], w = p.getCoordinates(), N = new ar(), ee = 0; ee < w.length - 1; ee++) {
110405
110405
  N.setCoordinates(w[ee], w[ee + 1]);
110406
110406
  var Ae = N.closestPoint(y);
110407
110407
  b.setMinimum(Ae, y);
110408
110408
  }
110409
- else if (arguments[2] instanceof Hl && arguments[0] instanceof _n && arguments[1] instanceof M) {
110409
+ else if (arguments[2] instanceof $l && arguments[0] instanceof _n && arguments[1] instanceof M) {
110410
110410
  var Ee = arguments[0], Le = arguments[1], $e = arguments[2];
110411
110411
  bc.computeDistance(Ee.getExteriorRing(), Le, $e);
110412
110412
  for (var ot = 0; ot < Ee.getNumInteriorRing(); ot++)
110413
110413
  bc.computeDistance(Ee.getInteriorRingN(ot), Le, $e);
110414
- } else if (arguments[2] instanceof Hl && arguments[0] instanceof Je && arguments[1] instanceof M) {
110414
+ } else if (arguments[2] instanceof $l && arguments[0] instanceof Je && arguments[1] instanceof M) {
110415
110415
  var ut = arguments[0], lt = arguments[1], yt = arguments[2];
110416
110416
  if (ut instanceof Gt)
110417
110417
  bc.computeDistance(ut, lt, yt);
@@ -110424,13 +110424,13 @@ var Gme = { exports: {} };
110424
110424
  }
110425
110425
  else
110426
110426
  yt.setMinimum(ut.getCoordinate(), lt);
110427
- } else if (arguments[2] instanceof Hl && arguments[0] instanceof ar && arguments[1] instanceof M) {
110427
+ } else if (arguments[2] instanceof $l && arguments[0] instanceof ar && arguments[1] instanceof M) {
110428
110428
  var ln = arguments[0], Vt = arguments[1], _r = arguments[2], Ti = ln.closestPoint(Vt);
110429
110429
  _r.setMinimum(Ti, Vt);
110430
110430
  }
110431
110431
  };
110432
110432
  var Td = function(p) {
110433
- this._maxPtDist = new Hl(), this._inputGeom = p || null;
110433
+ this._maxPtDist = new $l(), this._inputGeom = p || null;
110434
110434
  }, cb = { MaxPointDistanceFilter: { configurable: !0 }, MaxMidpointDistanceFilter: { configurable: !0 } };
110435
110435
  Td.prototype.computeMaxMidpointDistance = function(p) {
110436
110436
  var y = new Rd(this._inputGeom);
@@ -110452,7 +110452,7 @@ var Gme = { exports: {} };
110452
110452
  return Rd;
110453
110453
  }, Object.defineProperties(Td, cb);
110454
110454
  var zg = function(p) {
110455
- this._maxPtDist = new Hl(), this._minPtDist = new Hl(), this._geom = p || null;
110455
+ this._maxPtDist = new $l(), this._minPtDist = new $l(), this._geom = p || null;
110456
110456
  };
110457
110457
  zg.prototype.filter = function(p) {
110458
110458
  this._minPtDist.initialize(), bc.computeDistance(this._geom, p, this._minPtDist), this._maxPtDist.setMaximum(this._minPtDist);
@@ -110464,7 +110464,7 @@ var Gme = { exports: {} };
110464
110464
  return zg;
110465
110465
  };
110466
110466
  var Rd = function(p) {
110467
- this._maxPtDist = new Hl(), this._minPtDist = new Hl(), this._geom = p || null;
110467
+ this._maxPtDist = new $l(), this._minPtDist = new $l(), this._geom = p || null;
110468
110468
  };
110469
110469
  Rd.prototype.filter = function(p, y) {
110470
110470
  if (y === 0)
@@ -112228,7 +112228,7 @@ var Gme = { exports: {} };
112228
112228
  this.copyPoints(0), this.copyPoints(1), this._arg[0].computeSelfNodes(this._li, !1), this._arg[1].computeSelfNodes(this._li, !1), this._arg[0].computeEdgeIntersections(this._arg[1], this._li, !0);
112229
112229
  var w = new Ve();
112230
112230
  this._arg[0].computeSplitEdges(w), this._arg[1].computeSplitEdges(w), this.insertUniqueEdges(w), this.computeLabelsFromDepths(), this.replaceCollapsedEdges(), Ld.checkValid(this._edgeList.getEdges()), this._graph.addEdges(this._edgeList.getEdges()), this.computeLabelling(), this.labelIncompleteNodes(), this.findResultAreaEdges(b), this.cancelDuplicateResultEdges();
112231
- var N = new kl(this._geomFact);
112231
+ var N = new Gl(this._geomFact);
112232
112232
  N.add(this._graph), this._resultPolyList = N.getPolygons();
112233
112233
  var ee = new eu(this, this._geomFact, this._ptLocator);
112234
112234
  this._resultLineList = ee.build(b);
@@ -112779,7 +112779,7 @@ function WW(t) {
112779
112779
  var e = cA(t[0] * t[0] + t[1] * t[1] + t[2] * t[2]);
112780
112780
  t[0] /= e, t[1] /= e, t[2] /= e;
112781
112781
  }
112782
- var Vl, ng, Ic, gp, MS, Tyt, Ryt, kM, d4 = J1(), zb, gv, sE = {
112782
+ var ql, ng, Ic, gp, MS, Tyt, Ryt, kM, d4 = J1(), zb, gv, sE = {
112783
112783
  point: jme,
112784
112784
  lineStart: $9e,
112785
112785
  lineEnd: z9e,
@@ -112787,11 +112787,11 @@ var Vl, ng, Ic, gp, MS, Tyt, Ryt, kM, d4 = J1(), zb, gv, sE = {
112787
112787
  sE.point = Dyt, sE.lineStart = Vcr, sE.lineEnd = qcr, d4.reset(), Gy.polygonStart();
112788
112788
  },
112789
112789
  polygonEnd: function() {
112790
- Gy.polygonEnd(), sE.point = jme, sE.lineStart = $9e, sE.lineEnd = z9e, VW < 0 ? (Vl = -(Ic = 180), ng = -(gp = 90)) : d4 > Gr ? gp = 90 : d4 < -Gr && (ng = -90), gv[0] = Vl, gv[1] = Ic;
112790
+ Gy.polygonEnd(), sE.point = jme, sE.lineStart = $9e, sE.lineEnd = z9e, VW < 0 ? (ql = -(Ic = 180), ng = -(gp = 90)) : d4 > Gr ? gp = 90 : d4 < -Gr && (ng = -90), gv[0] = ql, gv[1] = Ic;
112791
112791
  }
112792
112792
  };
112793
112793
  function jme(t, e) {
112794
- zb.push(gv = [Vl = t, Ic = t]), e < ng && (ng = e), e > gp && (gp = e);
112794
+ zb.push(gv = [ql = t, Ic = t]), e < ng && (ng = e), e > gp && (gp = e);
112795
112795
  }
112796
112796
  function Myt(t, e) {
112797
112797
  var n = yx([t * ei, e * ei]);
@@ -112799,16 +112799,16 @@ function Myt(t, e) {
112799
112799
  var r = KD(kM, n), i = [r[1], -r[0], 0], o = KD(i, r);
112800
112800
  WW(o), o = YW(o);
112801
112801
  var s = t - MS, a = s > 0 ? 1 : -1, l = o[0] * $a * a, c, A = Cs(s) > 180;
112802
- A ^ (a * MS < l && l < a * t) ? (c = o[1] * $a, c > gp && (gp = c)) : (l = (l + 360) % 360 - 180, A ^ (a * MS < l && l < a * t) ? (c = -o[1] * $a, c < ng && (ng = c)) : (e < ng && (ng = e), e > gp && (gp = e))), A ? t < MS ? Zd(Vl, t) > Zd(Vl, Ic) && (Ic = t) : Zd(t, Ic) > Zd(Vl, Ic) && (Vl = t) : Ic >= Vl ? (t < Vl && (Vl = t), t > Ic && (Ic = t)) : t > MS ? Zd(Vl, t) > Zd(Vl, Ic) && (Ic = t) : Zd(t, Ic) > Zd(Vl, Ic) && (Vl = t);
112802
+ A ^ (a * MS < l && l < a * t) ? (c = o[1] * $a, c > gp && (gp = c)) : (l = (l + 360) % 360 - 180, A ^ (a * MS < l && l < a * t) ? (c = -o[1] * $a, c < ng && (ng = c)) : (e < ng && (ng = e), e > gp && (gp = e))), A ? t < MS ? Zd(ql, t) > Zd(ql, Ic) && (Ic = t) : Zd(t, Ic) > Zd(ql, Ic) && (ql = t) : Ic >= ql ? (t < ql && (ql = t), t > Ic && (Ic = t)) : t > MS ? Zd(ql, t) > Zd(ql, Ic) && (Ic = t) : Zd(t, Ic) > Zd(ql, Ic) && (ql = t);
112803
112803
  } else
112804
- zb.push(gv = [Vl = t, Ic = t]);
112804
+ zb.push(gv = [ql = t, Ic = t]);
112805
112805
  e < ng && (ng = e), e > gp && (gp = e), kM = n, MS = t;
112806
112806
  }
112807
112807
  function $9e() {
112808
112808
  sE.point = Myt;
112809
112809
  }
112810
112810
  function z9e() {
112811
- gv[0] = Vl, gv[1] = Ic, sE.point = jme, kM = null;
112811
+ gv[0] = ql, gv[1] = Ic, sE.point = jme, kM = null;
112812
112812
  }
112813
112813
  function Dyt(t, e) {
112814
112814
  if (kM) {
@@ -112822,7 +112822,7 @@ function Vcr() {
112822
112822
  Gy.lineStart();
112823
112823
  }
112824
112824
  function qcr() {
112825
- Dyt(Tyt, Ryt), Gy.lineEnd(), Cs(d4) > Gr && (Vl = -(Ic = 180)), gv[0] = Vl, gv[1] = Ic, kM = null;
112825
+ Dyt(Tyt, Ryt), Gy.lineEnd(), Cs(d4) > Gr && (ql = -(Ic = 180)), gv[0] = ql, gv[1] = Ic, kM = null;
112826
112826
  }
112827
112827
  function Zd(t, e) {
112828
112828
  return (e -= t) < 0 ? e + 360 : e;
@@ -112835,13 +112835,13 @@ function j9e(t, e) {
112835
112835
  }
112836
112836
  function Wcr(t) {
112837
112837
  var e, n, r, i, o, s, a;
112838
- if (gp = Ic = -(Vl = ng = 1 / 0), zb = [], em(t, sE), n = zb.length) {
112838
+ if (gp = Ic = -(ql = ng = 1 / 0), zb = [], em(t, sE), n = zb.length) {
112839
112839
  for (zb.sort(Ycr), e = 1, r = zb[0], o = [r]; e < n; ++e)
112840
112840
  i = zb[e], j9e(r, i[0]) || j9e(r, i[1]) ? (Zd(r[0], i[1]) > Zd(r[0], r[1]) && (r[1] = i[1]), Zd(i[0], r[1]) > Zd(r[0], r[1]) && (r[0] = i[0])) : o.push(r = i);
112841
112841
  for (s = -1 / 0, n = o.length - 1, e = 0, r = o[n]; e <= n; r = i, ++e)
112842
- i = o[e], (a = Zd(r[1], i[0])) > s && (s = a, Vl = i[0], Ic = r[1]);
112842
+ i = o[e], (a = Zd(r[1], i[0])) > s && (s = a, ql = i[0], Ic = r[1]);
112843
112843
  }
112844
- return zb = gv = null, Vl === 1 / 0 || ng === 1 / 0 ? [[NaN, NaN], [NaN, NaN]] : [[Vl, ng], [Ic, gp]];
112844
+ return zb = gv = null, ql === 1 / 0 || ng === 1 / 0 ? [[NaN, NaN], [NaN, NaN]] : [[ql, ng], [Ic, gp]];
112845
112845
  }
112846
112846
  var V3, JW, KW, XW, ZW, eJ, tJ, nJ, Vme, qme, Yme, Lyt, Nyt, Zf, eh, th, pm = {
112847
112847
  sphere: Ml,
@@ -129825,16 +129825,16 @@ async function wbr(t) {
129825
129825
  const n = await e();
129826
129826
  return new n(t);
129827
129827
  }
129828
- $v([void 0, 1], () => import("./raw-640e1db6.js").then((t) => t.default));
129829
- $v(5, () => import("./lzw-641ea4d3.js").then((t) => t.default));
129828
+ $v([void 0, 1], () => import("./raw-9d4c3bdd.js").then((t) => t.default));
129829
+ $v(5, () => import("./lzw-31f308d0.js").then((t) => t.default));
129830
129830
  $v(6, () => {
129831
129831
  throw new Error("old style JPEG compression is not supported.");
129832
129832
  });
129833
- $v(7, () => import("./jpeg-e7105a6c.js").then((t) => t.default));
129834
- $v([8, 32946], () => import("./deflate-116be143.js").then((t) => t.default));
129835
- $v(32773, () => import("./packbits-897a2126.js").then((t) => t.default));
129836
- $v(34887, () => import("./lerc-8bc75d67.js").then((t) => t.default));
129837
- $v(50001, () => import("./webimage-a5409192.js").then((t) => t.default));
129833
+ $v(7, () => import("./jpeg-7cc277d3.js").then((t) => t.default));
129834
+ $v([8, 32946], () => import("./deflate-0eaf44c3.js").then((t) => t.default));
129835
+ $v(32773, () => import("./packbits-21b116fc.js").then((t) => t.default));
129836
+ $v(34887, () => import("./lerc-b36f91df.js").then((t) => t.default));
129837
+ $v(50001, () => import("./webimage-1f95926a.js").then((t) => t.default));
129838
129838
  function vre(t, e, n, r = 1) {
129839
129839
  return new (Object.getPrototypeOf(t)).constructor(e * n * r);
129840
129840
  }
@@ -137586,7 +137586,7 @@ const Kxr = {
137586
137586
  * This function creates the luma.gl model.
137587
137587
  */
137588
137588
  _getModel(t) {
137589
- return t ? new Fl(t, {
137589
+ return t ? new Pl(t, {
137590
137590
  ...this.getShaders(),
137591
137591
  id: this.props.id,
137592
137592
  geometry: new dl({
@@ -137739,7 +137739,7 @@ class D2e extends kv {
137739
137739
  n,
137740
137740
  r
137741
137741
  );
137742
- return e ? new Fl(e, {
137742
+ return e ? new Pl(e, {
137743
137743
  ...this.getShaders(),
137744
137744
  id: this.props.id,
137745
137745
  geometry: new dl({
@@ -138582,7 +138582,7 @@ const N2e = class extends mA {
138582
138582
  * This function creates the luma.gl model.
138583
138583
  */
138584
138584
  _getModel(t) {
138585
- return t ? new Fl(t, {
138585
+ return t ? new Pl(t, {
138586
138586
  ...this.getShaders(),
138587
138587
  geometry: new dl({
138588
138588
  drawMode: t.TRIANGLE_STRIP,
@@ -139968,7 +139968,7 @@ function Sbt(t, e, n, r, i, o, s) {
139968
139968
  return lf(C, 1.01 / 255, 1);
139969
139969
  }
139970
139970
  const S7e = "scatterplot", R2r = "-apple-system, 'Helvetica Neue', Arial, sans-serif", M2r = 100, D2r = 0.25, wbt = 0, L2r = (t, e, n) => (r, { index: i }) => {
139971
- const [o, s, a, l] = t && e && t.get(e[i]) || Nl(n);
139971
+ const [o, s, a, l] = t && e && t.get(e[i]) || Ol(n);
139972
139972
  return [o, s, a, 255 * (l || 1)];
139973
139973
  }, w7e = (t) => (e) => [
139974
139974
  t.data[0][e],
@@ -139992,7 +139992,7 @@ class k2r extends k2e {
139992
139992
  const { theme: e, obsSetColor: n, sampleSetColor: r, contourColorEncoding: i, contourThresholds: o, contoursFilled: s, contourColor: a } = this.props;
139993
139993
  return Array.from(this.stratifiedData.entries()).flatMap(([c, A]) => Array.from(A.entries()).map(([u, f]) => {
139994
139994
  const h = f.get("deckData");
139995
- let d = a || Nl(e);
139995
+ let d = a || Ol(e);
139996
139996
  return i === "cellSetSelection" ? d = n?.find((g) => Tr(c, g.path))?.color || d : i === "sampleSetSelection" && (d = r?.find((g) => Tr(u, g.path))?.color || d), new bwe({
139997
139997
  id: `contour-${JSON.stringify(c)}-${JSON.stringify(u)}`,
139998
139998
  coordinateSystem: qn.CARTESIAN,
@@ -144155,7 +144155,7 @@ const ODr = mi(() => ({
144155
144155
  }
144156
144156
  })), LC = 10, D0 = 8, vYe = 2, FDr = 2;
144157
144157
  function JM(t) {
144158
- const { visible: e, positionRelative: n = !1, highContrast: r = !1, obsType: i, featureValueType: o, considerSelections: s = !0, obsColorEncoding: a, featureSelection: l, featureLabelsMap: c, featureValueColormap: A, featureValueColormapRange: u, spatialChannelColor: f, spatialLayerColor: h, obsSetSelection: d, obsSetColor: g, extent: m, missing: I, width: E = 100, height: C = 36, theme: v, showObsLabel: B = !1, pointsVisible: _ = !0, contoursVisible: S = !1, contoursFilled: R, contourPercentiles: Q, contourThresholds: M } = t, D = wi(), F = ODr(), G = v === "dark", P = a === "spatialChannelColor" || a === "spatialLayerColor", Y = a === "cellSetSelection", J = Array.isArray(h) && h.length === 3 ? h : Nl(v), j = Array.isArray(f) && f.length === 3 ? f : Nl(v), $ = a === "spatialChannelColor" ? j : J, V = e && (!s || a === "geneSelection" && l && Array.isArray(l) && l.length === 1 || Y && d?.length > 0 && g?.length > 0 || P), z = wt(() => Array.from(new Set(d?.map((X) => X[0]) || [])), [d]), oe = Y ? z.length * LC + d?.length * (D0 + vYe) : C + (!_ && S ? 25 : 0);
144158
+ const { visible: e, positionRelative: n = !1, highContrast: r = !1, obsType: i, featureValueType: o, considerSelections: s = !0, obsColorEncoding: a, featureSelection: l, featureLabelsMap: c, featureValueColormap: A, featureValueColormapRange: u, spatialChannelColor: f, spatialLayerColor: h, obsSetSelection: d, obsSetColor: g, extent: m, missing: I, width: E = 100, height: C = 36, theme: v, showObsLabel: B = !1, pointsVisible: _ = !0, contoursVisible: S = !1, contoursFilled: R, contourPercentiles: Q, contourThresholds: M } = t, D = wi(), F = ODr(), G = v === "dark", P = a === "spatialChannelColor" || a === "spatialLayerColor", Y = a === "cellSetSelection", J = Array.isArray(h) && h.length === 3 ? h : Ol(v), j = Array.isArray(f) && f.length === 3 ? f : Ol(v), $ = a === "spatialChannelColor" ? j : J, V = e && (!s || a === "geneSelection" && l && Array.isArray(l) && l.length === 1 || Y && d?.length > 0 && g?.length > 0 || P), z = wt(() => Array.from(new Set(d?.map((X) => X[0]) || [])), [d]), oe = Y ? z.length * LC + d?.length * (D0 + vYe) : C + (!_ && S ? 25 : 0);
144159
144159
  return Zn(() => {
144160
144160
  const X = D.current, re = r ? "black" : G ? "white" : "black", ye = H2e(X);
144161
144161
  ye.selectAll("g").remove(), ye.attr("width", E).attr("height", oe);
@@ -144195,7 +144195,7 @@ function JM(t) {
144195
144195
  let de = 0;
144196
144196
  Object.entries(ie).forEach(([W, fe]) => {
144197
144197
  Ce.append("text").attr("text-anchor", "start").attr("dominant-baseline", "hanging").attr("x", 0).attr("y", de).text(W).style("font-size", "9px").style("fill", re), de += LC, fe.forEach((_e) => {
144198
- const we = g?.find((Be) => Tr(Be.path, _e))?.color || Nl(v);
144198
+ const we = g?.find((Be) => Tr(Be.path, _e))?.color || Ol(v);
144199
144199
  Ce.append("rect").attr("x", 0).attr("y", de).attr("width", D0).attr("height", D0).attr("fill", `rgb(${we[0]},${we[1]},${we[2]})`), Ce.append("text").attr("text-anchor", "start").attr("dominant-baseline", "hanging").attr("x", D0 + FDr).attr("y", de).text(_e.at(-1)).style("font-size", "9px").style("fill", re), de += D0 + vYe;
144200
144200
  });
144201
144201
  });
@@ -144744,7 +144744,7 @@ var v1t = {
144744
144744
  // null = randomly seed
144745
144745
  randomSeed: null
144746
144746
  };
144747
- function Jl(t) {
144747
+ function Kl(t) {
144748
144748
  return typeof t == "number";
144749
144749
  }
144750
144750
  function Af(t) {
@@ -145530,7 +145530,7 @@ function $ye(t, e) {
145530
145530
  if (isNaN(t))
145531
145531
  return "NaN";
145532
145532
  var n = "auto", r, i;
145533
- if (e && (e.notation && (n = e.notation), Jl(e) ? r = e : Jl(e.precision) && (r = e.precision), e.wordSize && (i = e.wordSize, typeof i != "number")))
145533
+ if (e && (e.notation && (n = e.notation), Kl(e) ? r = e : Kl(e.precision) && (r = e.precision), e.wordSize && (i = e.wordSize, typeof i != "number")))
145534
145534
  throw new Error('Option "wordSize" must be a number');
145535
145535
  switch (n) {
145536
145536
  case "fixed":
@@ -145575,7 +145575,7 @@ function yLr(t, e) {
145575
145575
  if (isNaN(t) || !isFinite(t))
145576
145576
  return String(t);
145577
145577
  var n = $re(t), r = zre(n, e), i = r.exponent, o = r.coefficients, s = i % 3 === 0 ? i : i < 0 ? i - 3 - i % 3 : i - i % 3;
145578
- if (Jl(e))
145578
+ if (Kl(e))
145579
145579
  for (; e > o.length || i - s + 1 > o.length; )
145580
145580
  o.push(0);
145581
145581
  else
@@ -145583,7 +145583,7 @@ function yLr(t, e) {
145583
145583
  o.push(0);
145584
145584
  for (var c = Math.abs(i - s), A = 1; c > 0; )
145585
145585
  A++, c--;
145586
- var u = o.slice(A).join(""), f = Jl(e) && u.length || u.match(/[1-9]/) ? "." + u : "", h = o.slice(0, A).join("") + f + "e" + (i >= 0 ? "+" : "") + s.toString();
145586
+ var u = o.slice(A).join(""), f = Kl(e) && u.length || u.match(/[1-9]/) ? "." + u : "", h = o.slice(0, A).join("") + f + "e" + (i >= 0 ? "+" : "") + s.toString();
145587
145587
  return r.sign + h;
145588
145588
  }
145589
145589
  function R1t(t, e) {
@@ -145723,7 +145723,7 @@ function SLr(t, e) {
145723
145723
  var n = t.length - e.length, r = t.length;
145724
145724
  return t.substring(n, r) === e;
145725
145725
  }
145726
- function Wl(t, e) {
145726
+ function Jl(t, e) {
145727
145727
  if (typeof t == "number")
145728
145728
  return $ye(t, e);
145729
145729
  if (Af(t))
@@ -145741,7 +145741,7 @@ function Wl(t, e) {
145741
145741
  return t.format(e);
145742
145742
  if (t && t.toString(e) !== {}.toString())
145743
145743
  return t.toString(e);
145744
- var n = Object.keys(t).map((r) => '"' + r + '": ' + Wl(t[r], e));
145744
+ var n = Object.keys(t).map((r) => '"' + r + '": ' + Jl(t[r], e));
145745
145745
  return "{" + n.join(", ") + "}";
145746
145746
  }
145747
145747
  return String(t);
@@ -145752,7 +145752,7 @@ function D1t(t, e) {
145752
145752
  i !== 0 && (n += ", "), n += D1t(t[i], e);
145753
145753
  return n += "]", n;
145754
145754
  } else
145755
- return Wl(t, e);
145755
+ return Jl(t, e);
145756
145756
  }
145757
145757
  function wLr(t) {
145758
145758
  return t && typeof t == "object" && typeof t.s == "number" && typeof t.n == "number" && typeof t.d == "number" || !1;
@@ -145806,7 +145806,7 @@ function _Ye(t, e) {
145806
145806
  L1t(t, e, 0);
145807
145807
  }
145808
145808
  function Qc(t, e) {
145809
- if (!Jl(t) || !ul(t))
145809
+ if (!Kl(t) || !ul(t))
145810
145810
  throw new TypeError("Index must be an integer (value: " + t + ")");
145811
145811
  if (t < 0 || typeof e == "number" && t >= e)
145812
145812
  throw new zO(t, e);
@@ -145817,8 +145817,8 @@ function iK(t, e, n) {
145817
145817
  if (e.length === 0)
145818
145818
  throw new Error("Resizing to scalar is not supported");
145819
145819
  e.forEach(function(i) {
145820
- if (!Jl(i) || !ul(i) || i < 0)
145821
- throw new TypeError("Invalid size, must contain positive integers (size: " + Wl(e) + ")");
145820
+ if (!Kl(i) || !ul(i) || i < 0)
145821
+ throw new TypeError("Invalid size, must contain positive integers (size: " + Jl(e) + ")");
145822
145822
  });
145823
145823
  var r = n !== void 0 ? n : 0;
145824
145824
  return zye(t, e, 0, r), t;
@@ -146003,7 +146003,7 @@ var G1t = function() {
146003
146003
  return s.types = [
146004
146004
  {
146005
146005
  name: "number",
146006
- test: Jl
146006
+ test: Kl
146007
146007
  },
146008
146008
  {
146009
146009
  name: "Complex",
@@ -148190,7 +148190,7 @@ var HNr = "Complex", $Nr = [], zNr = /* @__PURE__ */ $r(HNr, $Nr, () => (Nh.prot
148190
148190
  phi: this.arg()
148191
148191
  };
148192
148192
  }, Nh.prototype.format = function(t) {
148193
- var e = "", n = this.im, r = this.re, i = $ye(this.re, t), o = $ye(this.im, t), s = Jl(t) ? t : t ? t.precision : null;
148193
+ var e = "", n = this.im, r = this.re, i = $ye(this.re, t), o = $ye(this.im, t), s = Kl(t) ? t : t ? t.precision : null;
148194
148194
  if (s !== null) {
148195
148195
  var a = Math.pow(10, -s);
148196
148196
  Math.abs(r / n) < a && (r = 0), Math.abs(n / r) < a && (n = 0);
@@ -148206,8 +148206,8 @@ var HNr = "Complex", $Nr = [], zNr = /* @__PURE__ */ $r(HNr, $Nr, () => (Nh.prot
148206
148206
  }
148207
148207
  case 2: {
148208
148208
  var n = arguments[0], r = arguments[1];
148209
- if (Jl(n)) {
148210
- if (Ure(r) && r.hasBase("ANGLE") && (r = r.toNumber("rad")), Jl(r))
148209
+ if (Kl(n)) {
148210
+ if (Ure(r) && r.hasBase("ANGLE") && (r = r.toNumber("rad")), Kl(r))
148211
148211
  return new Nh({
148212
148212
  r: n,
148213
148213
  phi: r
@@ -148893,9 +148893,9 @@ var VNr = "Fraction", qNr = [], YNr = /* @__PURE__ */ $r(VNr, qNr, () => (BT.pro
148893
148893
  }, n.prototype.valueOf = function() {
148894
148894
  return this._data;
148895
148895
  }, n.prototype.format = function(A) {
148896
- return Wl(this._data, A);
148896
+ return Jl(this._data, A);
148897
148897
  }, n.prototype.toString = function() {
148898
- return Wl(this._data);
148898
+ return Jl(this._data);
148899
148899
  }, n.prototype.toJSON = function() {
148900
148900
  return {
148901
148901
  mathjs: "DenseMatrix",
@@ -148905,7 +148905,7 @@ var VNr = "Fraction", qNr = [], YNr = /* @__PURE__ */ $r(VNr, qNr, () => (BT.pro
148905
148905
  };
148906
148906
  }, n.prototype.diagonal = function(A) {
148907
148907
  if (A) {
148908
- if (Af(A) && (A = A.toNumber()), !Jl(A) || !ul(A))
148908
+ if (Af(A) && (A = A.toNumber()), !Kl(A) || !ul(A))
148909
148909
  throw new TypeError("The parameter k must be an integer number");
148910
148910
  } else
148911
148911
  A = 0;
@@ -148922,11 +148922,11 @@ var VNr = "Fraction", qNr = [], YNr = /* @__PURE__ */ $r(VNr, qNr, () => (BT.pro
148922
148922
  if (A.length !== 2)
148923
148923
  throw new Error("Only two dimensions matrix are supported");
148924
148924
  if (A = A.map(function(S) {
148925
- if (Af(S) && (S = S.toNumber()), !Jl(S) || !ul(S) || S < 1)
148925
+ if (Af(S) && (S = S.toNumber()), !Kl(S) || !ul(S) || S < 1)
148926
148926
  throw new Error("Size values must be positive integers");
148927
148927
  return S;
148928
148928
  }), f) {
148929
- if (Af(f) && (f = f.toNumber()), !Jl(f) || !ul(f))
148929
+ if (Af(f) && (f = f.toNumber()), !Kl(f) || !ul(f))
148930
148930
  throw new TypeError("The parameter k must be an integer number");
148931
148931
  } else
148932
148932
  f = 0;
@@ -148962,7 +148962,7 @@ var VNr = "Fraction", qNr = [], YNr = /* @__PURE__ */ $r(VNr, qNr, () => (BT.pro
148962
148962
  }, n.fromJSON = function(A) {
148963
148963
  return new n(A);
148964
148964
  }, n.prototype.swapRows = function(A, u) {
148965
- if (!Jl(A) || !ul(A) || !Jl(u) || !ul(u))
148965
+ if (!Kl(A) || !ul(A) || !Kl(u) || !ul(u))
148966
148966
  throw new Error("Row index must be positive integers");
148967
148967
  if (this._size.length !== 2)
148968
148968
  throw new Error("Only two dimensional matrix is supported");
@@ -149269,8 +149269,8 @@ var sOr = "SparseMatrix", aOr = ["typed", "equalScalar", "Matrix"], lOr = /* @__
149269
149269
  if (E.length !== 2)
149270
149270
  throw new Error("Only two dimensions matrix are supported");
149271
149271
  E.forEach(function(v) {
149272
- if (!Jl(v) || !ul(v) || v < 0)
149273
- throw new TypeError("Invalid size, must contain positive integers (size: " + Wl(E) + ")");
149272
+ if (!Kl(v) || !ul(v) || v < 0)
149273
+ throw new TypeError("Invalid size, must contain positive integers (size: " + Jl(E) + ")");
149274
149274
  });
149275
149275
  var C = I ? this.clone() : this;
149276
149276
  return f(C, E[0], E[1], m);
@@ -149316,8 +149316,8 @@ var sOr = "SparseMatrix", aOr = ["typed", "equalScalar", "Matrix"], lOr = /* @__
149316
149316
  if (g.length !== 2)
149317
149317
  throw new Error("Sparse matrices can only be reshaped in two dimensions");
149318
149318
  g.forEach(function(V) {
149319
- if (!Jl(V) || !ul(V) || V <= -2 || V === 0)
149320
- throw new TypeError("Invalid size, must contain positive integers or -1 (size: " + Wl(g) + ")");
149319
+ if (!Kl(V) || !ul(V) || V <= -2 || V === 0)
149320
+ throw new TypeError("Invalid size, must contain positive integers or -1 (size: " + Jl(g) + ")");
149321
149321
  });
149322
149322
  var I = this._size[0] * this._size[1];
149323
149323
  g = yQe(g, I);
@@ -149440,16 +149440,16 @@ var sOr = "SparseMatrix", aOr = ["typed", "equalScalar", "Matrix"], lOr = /* @__
149440
149440
  return _;
149441
149441
  }
149442
149442
  return i.prototype.format = function(g) {
149443
- for (var m = this._size[0], I = this._size[1], E = this.density(), C = "Sparse Matrix [" + Wl(m, g) + " x " + Wl(I, g) + "] density: " + Wl(E, g) + `
149443
+ for (var m = this._size[0], I = this._size[1], E = this.density(), C = "Sparse Matrix [" + Jl(m, g) + " x " + Jl(I, g) + "] density: " + Jl(E, g) + `
149444
149444
  `, v = 0; v < I; v++)
149445
149445
  for (var B = this._ptr[v], _ = this._ptr[v + 1], S = B; S < _; S++) {
149446
149446
  var R = this._index[S];
149447
149447
  C += `
149448
- (` + Wl(R, g) + ", " + Wl(v, g) + ") ==> " + (this._values ? Wl(this._values[S], g) : "X");
149448
+ (` + Jl(R, g) + ", " + Jl(v, g) + ") ==> " + (this._values ? Jl(this._values[S], g) : "X");
149449
149449
  }
149450
149450
  return C;
149451
149451
  }, i.prototype.toString = function() {
149452
- return Wl(this.toArray());
149452
+ return Jl(this.toArray());
149453
149453
  }, i.prototype.toJSON = function() {
149454
149454
  return {
149455
149455
  mathjs: "SparseMatrix",
@@ -149461,7 +149461,7 @@ var sOr = "SparseMatrix", aOr = ["typed", "equalScalar", "Matrix"], lOr = /* @__
149461
149461
  };
149462
149462
  }, i.prototype.diagonal = function(g) {
149463
149463
  if (g) {
149464
- if (Af(g) && (g = g.toNumber()), !Jl(g) || !ul(g))
149464
+ if (Af(g) && (g = g.toNumber()), !Kl(g) || !ul(g))
149465
149465
  throw new TypeError("The parameter k must be an integer number");
149466
149466
  } else
149467
149467
  g = 0;
@@ -149489,11 +149489,11 @@ var sOr = "SparseMatrix", aOr = ["typed", "equalScalar", "Matrix"], lOr = /* @__
149489
149489
  if (g.length !== 2)
149490
149490
  throw new Error("Only two dimensions matrix are supported");
149491
149491
  if (g = g.map(function(V) {
149492
- if (Af(V) && (V = V.toNumber()), !Jl(V) || !ul(V) || V < 1)
149492
+ if (Af(V) && (V = V.toNumber()), !Kl(V) || !ul(V) || V < 1)
149493
149493
  throw new Error("Size values must be positive integers");
149494
149494
  return V;
149495
149495
  }), I) {
149496
- if (Af(I) && (I = I.toNumber()), !Jl(I) || !ul(I))
149496
+ if (Af(I) && (I = I.toNumber()), !Kl(I) || !ul(I))
149497
149497
  throw new TypeError("The parameter k must be an integer number");
149498
149498
  } else
149499
149499
  I = 0;
@@ -149532,7 +149532,7 @@ var sOr = "SparseMatrix", aOr = ["typed", "equalScalar", "Matrix"], lOr = /* @__
149532
149532
  size: [R, Q]
149533
149533
  });
149534
149534
  }, i.prototype.swapRows = function(g, m) {
149535
- if (!Jl(g) || !ul(g) || !Jl(m) || !ul(m))
149535
+ if (!Kl(g) || !ul(g) || !Kl(m) || !ul(m))
149536
149536
  throw new Error("Row index must be positive integers");
149537
149537
  if (this._size.length !== 2)
149538
149538
  throw new Error("Only two dimensional matrix is supported");
@@ -150844,8 +150844,8 @@ var PYe = "size", IFr = ["typed", "config", "?matrix"], yFr = /* @__PURE__ */ $r
150844
150844
  typed: e
150845
150845
  } = t;
150846
150846
  return e(GYe, {
150847
- any: Wl,
150848
- "any, Object | function | number": Wl
150847
+ any: Jl,
150848
+ "any, Object | function | number": Jl
150849
150849
  });
150850
150850
  }), BFr = "numeric", _Fr = ["number", "?bignumber", "?fraction"], SFr = /* @__PURE__ */ $r(BFr, _Fr, (t) => {
150851
150851
  var {
@@ -154585,15 +154585,15 @@ P: ` + this.p;
154585
154585
  case 1:
154586
154586
  if (A[0] === 1)
154587
154587
  return Ua(c.valueOf()[0]);
154588
- throw new RangeError("Matrix must be square (size: " + Wl(A) + ")");
154588
+ throw new RangeError("Matrix must be square (size: " + Jl(A) + ")");
154589
154589
  case 2: {
154590
154590
  var u = A[0], f = A[1];
154591
154591
  if (u === f)
154592
154592
  return a(c.clone().valueOf(), u);
154593
- throw new RangeError("Matrix must be square (size: " + Wl(A) + ")");
154593
+ throw new RangeError("Matrix must be square (size: " + Jl(A) + ")");
154594
154594
  }
154595
154595
  default:
154596
- throw new RangeError("Matrix must be two dimensional (size: " + Wl(A) + ")");
154596
+ throw new RangeError("Matrix must be two dimensional (size: " + Jl(A) + ")");
154597
154597
  }
154598
154598
  }
154599
154599
  });
@@ -154634,15 +154634,15 @@ P: ` + this.p;
154634
154634
  case 1:
154635
154635
  if (h[0] === 1)
154636
154636
  return tA(f) ? n([r(1, f.valueOf()[0])]) : [r(1, f[0])];
154637
- throw new RangeError("Matrix must be square (size: " + Wl(h) + ")");
154637
+ throw new RangeError("Matrix must be square (size: " + Jl(h) + ")");
154638
154638
  case 2: {
154639
154639
  var d = h[0], g = h[1];
154640
154640
  if (d === g)
154641
154641
  return tA(f) ? n(A(f.valueOf(), d, g), f.storage()) : A(f, d, g);
154642
- throw new RangeError("Matrix must be square (size: " + Wl(h) + ")");
154642
+ throw new RangeError("Matrix must be square (size: " + Jl(h) + ")");
154643
154643
  }
154644
154644
  default:
154645
- throw new RangeError("Matrix must be two dimensional (size: " + Wl(h) + ")");
154645
+ throw new RangeError("Matrix must be two dimensional (size: " + Jl(h) + ")");
154646
154646
  }
154647
154647
  },
154648
154648
  any: function(f) {
@@ -155226,7 +155226,7 @@ class LQe extends Error {
155226
155226
  var Kd;
155227
155227
  class h_t {
155228
155228
  constructor(e, n, r) {
155229
- $l(this, Kd, void 0);
155229
+ zl(this, Kd, void 0);
155230
155230
  typeof e == "number" ? Na(this, Kd, new Uint8Array(e)) : e instanceof ArrayBuffer ? Na(this, Kd, new Uint8Array(e, n, r)) : Na(this, Kd, new Uint8Array(Array.from(e, (i) => i ? 1 : 0)));
155231
155231
  }
155232
155232
  get BYTES_PER_ELEMENT() {
@@ -155267,7 +155267,7 @@ class NQe {
155267
155267
  constructor(e, n, r, i) {
155268
155268
  or(this, "_data");
155269
155269
  or(this, "chars");
155270
- $l(this, yD, void 0);
155270
+ zl(this, yD, void 0);
155271
155271
  if (this.chars = e, Na(this, yD, new TextEncoder()), typeof n == "number")
155272
155272
  this._data = new Uint8Array(n * e);
155273
155273
  else if (n instanceof ArrayBuffer)
@@ -155318,7 +155318,7 @@ yD = new WeakMap();
155318
155318
  var Wu;
155319
155319
  const BFe = class {
155320
155320
  constructor(e, n, r, i) {
155321
- $l(this, Wu, void 0);
155321
+ zl(this, Wu, void 0);
155322
155322
  or(this, "chars");
155323
155323
  if (this.chars = e, typeof n == "number")
155324
155324
  Na(this, Wu, new Int32Array(n * e));
@@ -155536,11 +155536,11 @@ var h5, aB, d5, g5, CD;
155536
155536
  const _Fe = class {
155537
155537
  constructor(e, n) {
155538
155538
  or(this, "kind", "array_to_bytes");
155539
- $l(this, h5, void 0);
155540
- $l(this, aB, void 0);
155541
- $l(this, d5, void 0);
155542
- $l(this, g5, void 0);
155543
- $l(this, CD, void 0);
155539
+ zl(this, h5, void 0);
155540
+ zl(this, aB, void 0);
155541
+ zl(this, d5, void 0);
155542
+ zl(this, g5, void 0);
155543
+ zl(this, CD, void 0);
155544
155544
  Na(this, CD, e?.endian), Na(this, aB, d_t(n.data_type)), Na(this, g5, n.shape), Na(this, h5, Nx(n.shape, Zye(n.codecs)));
155545
155545
  const r = new (Di(this, aB))(0);
155546
155546
  Na(this, d5, r.BYTES_PER_ELEMENT);
@@ -155593,8 +155593,8 @@ const SFe = class {
155593
155593
  constructor(e = {}) {
155594
155594
  or(this, "configuration");
155595
155595
  or(this, "kind", "array_to_bytes");
155596
- $l(this, p5, void 0);
155597
- $l(this, m5, void 0);
155596
+ zl(this, p5, void 0);
155597
+ zl(this, m5, void 0);
155598
155598
  this.configuration = e;
155599
155599
  const { encoding: n = "utf-8", skipkeys: r = !1, ensure_ascii: i = !0, check_circular: o = !0, allow_nan: s = !0, sort_keys: a = !0, indent: l, strict: c = !0 } = e;
155600
155600
  let A = e.separators;
@@ -155712,8 +155712,8 @@ var I5, y5;
155712
155712
  const wFe = class {
155713
155713
  constructor(e) {
155714
155714
  or(this, "kind", "array_to_bytes");
155715
- $l(this, I5, void 0);
155716
- $l(this, y5, void 0);
155715
+ zl(this, I5, void 0);
155716
+ zl(this, y5, void 0);
155717
155717
  Na(this, I5, e), Na(this, y5, Nx(e, "C"));
155718
155718
  }
155719
155719
  static fromConfig(e, n) {
@@ -155838,7 +155838,7 @@ let kQe = (yot = class extends J2 {
155838
155838
  constructor(n, r, i) {
155839
155839
  super(n, r);
155840
155840
  or(this, "kind", "group");
155841
- $l(this, C5, void 0);
155841
+ zl(this, C5, void 0);
155842
155842
  Na(this, C5, i);
155843
155843
  }
155844
155844
  get attrs() {
@@ -155896,7 +155896,7 @@ let dK = (Cot = class extends J2 {
155896
155896
  constructor(n, r, i) {
155897
155897
  super(n, r);
155898
155898
  or(this, "kind", "array");
155899
- $l(this, bw, void 0);
155899
+ zl(this, bw, void 0);
155900
155900
  or(this, fNi);
155901
155901
  Na(this, bw, {
155902
155902
  ...i,
@@ -156349,10 +156349,10 @@ async function Q3r(t, e, n, r) {
156349
156349
  var E5, v5, b5, oCe;
156350
156350
  class T3r {
156351
156351
  constructor(e, n = {}) {
156352
- $l(this, b5);
156352
+ zl(this, b5);
156353
156353
  or(this, "url");
156354
- $l(this, E5, void 0);
156355
- $l(this, v5, void 0);
156354
+ zl(this, E5, void 0);
156355
+ zl(this, v5, void 0);
156356
156356
  this.url = e, Na(this, E5, n.overrides ?? {}), Na(this, v5, n.useSuffixRequest ?? !1);
156357
156357
  }
156358
156358
  async get(e, n = {}) {
@@ -156982,7 +156982,7 @@ class okr {
156982
156982
  constructor(e, n = {}) {
156983
156983
  or(this, "url");
156984
156984
  or(this, "length");
156985
- $l(this, ED, void 0);
156985
+ zl(this, ED, void 0);
156986
156986
  this.url = e, Na(this, ED, n.overrides ?? {});
156987
156987
  }
156988
156988
  async getLength() {
@@ -157186,9 +157186,9 @@ function Ckr(t) {
157186
157186
  var B5, _5, S5;
157187
157187
  const VZ = class {
157188
157188
  constructor(e, n = {}) {
157189
- $l(this, B5, void 0);
157190
- $l(this, _5, void 0);
157191
- $l(this, S5, void 0);
157189
+ zl(this, B5, void 0);
157190
+ zl(this, _5, void 0);
157191
+ zl(this, S5, void 0);
157192
157192
  Na(this, B5, Promise.resolve(e)), Na(this, _5, n), Na(this, S5, n.overrides || {});
157193
157193
  }
157194
157194
  async get(e, n = {}) {
@@ -157377,7 +157377,7 @@ const mK = {
157377
157377
  CELL_LAYER: "cell_layer_hover",
157378
157378
  MOLECULE_LAYER: "molecule_layer_hover"
157379
157379
  }, yWe = "cells-layer", Dkr = "molecules-layer", Lkr = "neighborhoods-layer", Nkr = (t, e, n) => (r, { index: i }) => {
157380
- const [o, s, a, l] = t && e && t.get(e[i]) || Nl(n);
157380
+ const [o, s, a, l] = t && e && t.get(e[i]) || Ol(n);
157381
157381
  return [o, s, a, 255 * (l || 1)];
157382
157382
  }, Okr = (t) => {
157383
157383
  if (t) {
@@ -157695,7 +157695,7 @@ let Pkr = class extends k2e {
157695
157695
  const e = this.randomColorData, { size: n } = this.props.cellColors;
157696
157696
  if (typeof n == "number") {
157697
157697
  const r = this.props.cellColors.keys();
157698
- e.data = new Uint8Array(e.height * e.width * 3).fill(Nl(this.props.theme)[0]), e.data[0] = 0, e.data[1] = 0, e.data[2] = 0;
157698
+ e.data = new Uint8Array(e.height * e.width * 3).fill(Ol(this.props.theme)[0]), e.data[0] = 0, e.data[1] = 0, e.data[2] = 0;
157699
157699
  for (const i of r)
157700
157700
  if (i > 0) {
157701
157701
  const o = this.props.cellColors.get(i);
@@ -157870,7 +157870,7 @@ function Hkr(t) {
157870
157870
  return g ? te.jsx(Rre, { x: m, y: I, parentUuid: e, sourceUuid: h, parentWidth: r, parentHeight: i, children: te.jsx(Mre, { info: g, featureType: u, featureLabelsMap: f }) }) : null;
157871
157871
  }
157872
157872
  function $kr(t) {
157873
- const { uuid: e, coordinationScopes: n, closeButtonVisible: r, downloadButtonVisible: i, removeGridComponent: o, observationsLabelOverride: s, subobservationsLabelOverride: a = "molecule", theme: l, title: c = "Spatial", disable3d: A, globalDisable3d: u, useFullResolutionImage: f = {}, channelNamesVisible: h = !1, helpText: d = vh.SPATIAL } = t, g = bu(), m = J5(), I = K5(e), [{ dataset: E, obsType: C, featureType: v, featureValueType: B, spatialZoom: _, spatialTargetX: S, spatialTargetY: R, spatialTargetZ: Q, spatialRotationX: M, spatialRotationY: D, spatialRotationZ: F, spatialRotationOrbit: G, spatialOrbitAxis: P, spatialImageLayer: Y, spatialSegmentationLayer: J, spatialPointLayer: j, spatialNeighborhoodLayer: $, obsFilter: V, obsHighlight: z, moleculeHighlight: oe, featureSelection: X, obsSetSelection: re, obsSetColor: ye, obsColorEncoding: Ce, additionalObsSets: me, spatialAxisFixed: Re, featureValueColormap: xe, featureValueColormapRange: be, tooltipsVisible: Qe }, { setSpatialZoom: Fe, setSpatialTargetX: pe, setSpatialTargetY: ie, setSpatialTargetZ: de, setSpatialRotationX: W, setSpatialRotationOrbit: fe, setSpatialOrbitAxis: _e, setSpatialImageLayer: we, setSpatialSegmentationLayer: Be, setSpatialPointLayer: ae, setSpatialNeighborhoodLayer: ce, setObsFilter: ge, setObsSetSelection: le, setObsHighlight: he, setObsSetColor: Ne, setObsColorEncoding: Me, setAdditionalObsSets: Te, setMoleculeHighlight: He, setSpatialAxisFixed: Xe, setFeatureValueColormap: Je, setFeatureValueColormapRange: Ze, setTooltipsVisible: dt }] = hA(Sa[Jn.SPATIAL], n), { spatialZoom: pt, spatialTargetX: St, spatialTargetY: gt, spatialTargetZ: It } = m1e(Sa[Jn.SPATIAL], n), mt = s || C, [{ imageLayerCallbacks: Qt, segmentationLayerCallbacks: ze }] = I1e(Sa.layerController, n), ft = Y?.some((vr) => vr.use3d), [at, Ct, Ve] = r8(), [tn, cn] = W1e(n, C, g, E), Pt = T$(g, E, gn.OBS_FEATURE_MATRIX, { obsType: C, featureType: v, featureValueType: B }), nn = T$(g, E, gn.OBS_SEGMENTATIONS, { obsType: C }), An = T$(g, E, gn.OBS_LOCATIONS, { obsType: C }), Mn = T$(g, E, gn.IMAGE, {}), [{ obsIndex: Jt, obsLocations: bn }, kn, er] = qpe(g, E, !1, { setSpatialPointLayer: ae }, { spatialPointLayer: j }, { obsType: "molecule" }), [{ obsLabels: Yt }, At, vt] = Xpn(g, E, !1, {}, {}, { obsType: "molecule" }), [{ obsIndex: zt, obsLocations: Ue }, x, De] = qpe(g, E, !1, {}, {}, { obsType: C }), [{ obsIndex: Se, obsSegmentations: ke, obsSegmentationsType: qe }, We, it] = OAt(g, E, !1, { setSpatialSegmentationLayer: Be }, { spatialSegmentationLayer: J }, { obsType: C }), ht = nn && !(We === ec.SUCCESS && !(ke || qe)), [{ obsSets: _t, obsSetsMembership: Tt }, Gt, Fn] = H1(g, E, !1, { setObsSetSelection: le, setObsSetColor: Ne }, { obsSetSelection: re, obsSetColor: ye }, { obsType: C }), [yn, jt, _n] = $E(g, E, !1, X, { obsType: C, featureType: v, featureValueType: B }), [{ obsIndex: Gn }, Ir, Mr] = y2(g, E, !1, { obsType: C, featureType: v, featureValueType: B }), [{ image: un }, tt, xr] = Y1e(g, E, !1, { setSpatialImageLayer: we }, { spatialImageLayer: Y }, {}), { loaders: tr = [], meta: Er = [] } = un || {}, [Vn, co, rn] = e0n(g, E, !1, { setSpatialNeighborhoodLayer: ce }, { spatialNeighborhoodLayer: $ }), [{ featureLabelsMap: Ge }, $t, an] = I2(g, E, !1, {}, {}, { featureType: v }), [kr, Wr] = i8(v, Ge, { stripCuriePrefixes: !0 }), oi = Eu([
157873
+ const { uuid: e, coordinationScopes: n, closeButtonVisible: r, downloadButtonVisible: i, removeGridComponent: o, observationsLabelOverride: s, subobservationsLabelOverride: a = "molecule", theme: l, title: c = "Spatial", disable3d: A, globalDisable3d: u, useFullResolutionImage: f = {}, channelNamesVisible: h = !1, helpText: d = vh.SPATIAL } = t, g = bu(), m = J5(), I = K5(e), [{ dataset: E, obsType: C, featureType: v, featureValueType: B, spatialZoom: _, spatialTargetX: S, spatialTargetY: R, spatialTargetZ: Q, spatialRotationX: M, spatialRotationY: D, spatialRotationZ: F, spatialRotationOrbit: G, spatialOrbitAxis: P, spatialImageLayer: Y, spatialSegmentationLayer: J, spatialPointLayer: j, spatialNeighborhoodLayer: $, obsFilter: V, obsHighlight: z, moleculeHighlight: oe, featureSelection: X, obsSetSelection: re, obsSetColor: ye, obsColorEncoding: Ce, additionalObsSets: me, spatialAxisFixed: Re, featureValueColormap: xe, featureValueColormapRange: be, tooltipsVisible: Qe }, { setSpatialZoom: Fe, setSpatialTargetX: pe, setSpatialTargetY: ie, setSpatialTargetZ: de, setSpatialRotationX: W, setSpatialRotationOrbit: fe, setSpatialOrbitAxis: _e, setSpatialImageLayer: we, setSpatialSegmentationLayer: Be, setSpatialPointLayer: ae, setSpatialNeighborhoodLayer: ce, setObsFilter: ge, setObsSetSelection: le, setObsHighlight: he, setObsSetColor: Ne, setObsColorEncoding: Me, setAdditionalObsSets: Te, setMoleculeHighlight: He, setSpatialAxisFixed: Xe, setFeatureValueColormap: Je, setFeatureValueColormapRange: Ze, setTooltipsVisible: dt }] = hA(Sa[Jn.SPATIAL], n), { spatialZoom: pt, spatialTargetX: St, spatialTargetY: gt, spatialTargetZ: It } = m1e(Sa[Jn.SPATIAL], n), mt = s || C, [{ imageLayerCallbacks: Qt, segmentationLayerCallbacks: ze }] = I1e(Sa.layerController, n), ft = Y?.some((vr) => vr.use3d), [at, Ct, Ve] = r8(), [tn, cn] = W1e(n, C, g, E), Pt = T$(g, E, gn.OBS_FEATURE_MATRIX, { obsType: C, featureType: v, featureValueType: B }), nn = T$(g, E, gn.OBS_SEGMENTATIONS, { obsType: C }), An = T$(g, E, gn.OBS_LOCATIONS, { obsType: C }), Mn = T$(g, E, gn.IMAGE, {}), [{ obsIndex: Jt, obsLocations: bn }, kn, er] = qpe(g, E, !1, { setSpatialPointLayer: ae }, { spatialPointLayer: j }, { obsType: "molecule" }), [{ obsLabels: Yt }, At, vt] = Xpn(g, E, !1, {}, {}, { obsType: "molecule" }), [{ obsIndex: zt, obsLocations: Ue }, x, De] = qpe(g, E, !1, {}, {}, { obsType: C }), [{ obsIndex: Se, obsSegmentations: ke, obsSegmentationsType: qe }, We, it] = OAt(g, E, !1, { setSpatialSegmentationLayer: Be }, { spatialSegmentationLayer: J }, { obsType: C }), ht = nn && !(We === Ll.SUCCESS && !(ke || qe)), [{ obsSets: _t, obsSetsMembership: Tt }, Gt, Fn] = H1(g, E, !1, { setObsSetSelection: le, setObsSetColor: Ne }, { obsSetSelection: re, obsSetColor: ye }, { obsType: C }), [yn, jt, _n] = $E(g, E, !1, X, { obsType: C, featureType: v, featureValueType: B }), [{ obsIndex: Gn }, Ir, Mr] = y2(g, E, !1, { obsType: C, featureType: v, featureValueType: B }), [{ image: un }, tt, xr] = Y1e(g, E, !1, { setSpatialImageLayer: we }, { spatialImageLayer: Y }, {}), { loaders: tr = [], meta: Er = [] } = un || {}, [Vn, co, rn] = e0n(g, E, !1, { setSpatialNeighborhoodLayer: ce }, { spatialNeighborhoodLayer: $ }), [{ featureLabelsMap: Ge }, $t, an] = I2(g, E, !1, {}, {}, { featureType: v }), [kr, Wr] = i8(v, Ge, { stripCuriePrefixes: !0 }), oi = Eu([
157874
157874
  kn,
157875
157875
  At,
157876
157876
  x,
@@ -157968,7 +157968,7 @@ function $kr(t) {
157968
157968
  subobservationsCount: Ka,
157969
157969
  subobservationsLabel: a,
157970
157970
  locationsCount: pa
157971
- }), { normData: Io, extents: kl } = H1e(yn), kg = wt(() => {
157971
+ }), { normData: Io, extents: Gl } = H1e(yn), kg = wt(() => {
157972
157972
  if (Gn && Io && qe === "bitmask") {
157973
157973
  const vr = Gn.reduce((to, Mf) => Math.max(to, Number(Mf))), Qr = new Uint8Array(vr + 1);
157974
157974
  for (let to = 0; to < Gn.length; to++) {
@@ -158057,7 +158057,7 @@ function $kr(t) {
158057
158057
  featureLabelsMap: kr,
158058
158058
  featureValueColormap: xe,
158059
158059
  featureValueColormapRange: be,
158060
- extent: kl?.[0]
158060
+ extent: Gl?.[0]
158061
158061
  })] });
158062
158062
  }
158063
158063
  function zkr({ width: t, height: e, obsPoints: n, obsSpots: r, obsSegmentations: i, obsSegmentationsLocations: o, segmentationChannelScopesByLayer: s, images: a, is3dMode: l, isReady: c }) {
@@ -158151,10 +158151,10 @@ const qkr = "point-layer-", Ykr = "spot-layer-", CWe = "segmentation-layer-", Wk
158151
158151
  minimumIntensityProjection: "Minimum Intensity Projection",
158152
158152
  additive: "Additive"
158153
158153
  }, Xkr = (t, e, n) => (r, { index: i }) => {
158154
- const [o, s, a, l] = t && e && t.get(e[i]) || Nl(n);
158154
+ const [o, s, a, l] = t && e && t.get(e[i]) || Ol(n);
158155
158155
  return [o, s, a, 255 * (l || 1)];
158156
158156
  }, Zkr = (t, e, n) => (r, { index: i }) => {
158157
- const { setColorIndices: o, setColors: s } = t || {}, [a, l, c, A] = o && e && s?.[o?.get(e[i])]?.color || Nl(n);
158157
+ const { setColorIndices: o, setColors: s } = t || {}, [a, l, c, A] = o && e && s?.[o?.get(e[i])]?.color || Ol(n);
158158
158158
  return [a, l, c, 255 * (A || 1)];
158159
158159
  }, K_ = (t) => (e) => [
158160
158160
  t.data[0][e],
@@ -158187,7 +158187,7 @@ class t4r extends k2e {
158187
158187
  return null;
158188
158188
  const { obsColorEncoding: h, spatialChannelColor: d, spatialChannelOpacity: g, spatialChannelVisible: m, spatialSegmentationFilled: I, spatialSegmentationStrokeWidth: E, featureValueColormap: C, featureValueColormapRange: v } = f, { obsIndex: B } = o, _ = this.obsSegmentationsData?.[e];
158189
158189
  this.obsSegmentationsQuadTree?.[e]?.[u];
158190
- const S = this.segmentationColors?.[e]?.[u], R = this.segmentationExpressionGetters?.[e]?.[u], Q = c && m, M = A * g, D = h === "spatialChannelColor", F = Array.isArray(d) && d.length === 3 ? d : Nl(a), G = Zkr(S, B, a), P = (Y, { index: J, data: j }) => j.src.obsSegmentations.data[J];
158190
+ const S = this.segmentationColors?.[e]?.[u], R = this.segmentationExpressionGetters?.[e]?.[u], Q = c && m, M = A * g, D = h === "spatialChannelColor", F = Array.isArray(d) && d.length === 3 ? d : Ol(a), G = Zkr(S, B, a), P = (Y, { index: J, data: j }) => j.src.obsSegmentations.data[J];
158191
158191
  return new _g({
158192
158192
  // We do not include channelScope in the ID so that it matches the ID
158193
158193
  // of the equivalent bitmask-based segmentation layer. We also assume
@@ -158233,7 +158233,7 @@ class t4r extends k2e {
158233
158233
  });
158234
158234
  }
158235
158235
  createSpotLayer(e, n, r, i) {
158236
- const { theme: o, delegateHover: s } = this.props, a = this.spotColors[e], l = this.spotExpressionGetters[e], c = r?.obsIndex, A = Xkr(a, c, o), { spatialLayerVisible: u, spatialLayerOpacity: f, spatialSpotRadius: h, spatialSpotFilled: d, spatialSpotStrokeWidth: g, obsColorEncoding: m, featureValueColormap: I, featureValueColormapRange: E, spatialLayerColor: C } = n, v = m === "spatialLayerColor", B = Array.isArray(C) && C.length === 3 ? C : Nl(o);
158236
+ const { theme: o, delegateHover: s } = this.props, a = this.spotColors[e], l = this.spotExpressionGetters[e], c = r?.obsIndex, A = Xkr(a, c, o), { spatialLayerVisible: u, spatialLayerOpacity: f, spatialSpotRadius: h, spatialSpotFilled: d, spatialSpotStrokeWidth: g, obsColorEncoding: m, featureValueColormap: I, featureValueColormapRange: E, spatialLayerColor: C } = n, v = m === "spatialLayerColor", B = Array.isArray(C) && C.length === 3 ? C : Ol(o);
158237
158237
  return new fv({
158238
158238
  id: `${Ykr}${e}`,
158239
158239
  data: this.obsSpotsData[e],
@@ -158266,7 +158266,7 @@ class t4r extends k2e {
158266
158266
  });
158267
158267
  }
158268
158268
  createPointLayer(e, n, r) {
158269
- const { theme: i, delegateHover: o } = this.props, { spatialLayerVisible: s, spatialLayerOpacity: a, obsColorEncoding: l, spatialLayerColor: c } = n, A = l === "spatialLayerColor", u = Array.isArray(c) && c.length === 3 ? c : Nl(i), f = (h, { data: d, index: g, target: m }) => {
158269
+ const { theme: i, delegateHover: o } = this.props, { spatialLayerVisible: s, spatialLayerOpacity: a, obsColorEncoding: l, spatialLayerColor: c } = n, A = l === "spatialLayerColor", u = Array.isArray(c) && c.length === 3 ? c : Ol(i), f = (h, { data: d, index: g, target: m }) => {
158270
158270
  const I = d.src.obsIndex[g];
158271
158271
  if (d.src.obsLabelsMap && d.src.uniqueObsLabels && d.src.PALETTE) {
158272
158272
  const E = d.src.obsLabelsMap.get(I), C = d.src.uniqueObsLabels.indexOf(E);
@@ -158951,7 +158951,7 @@ class o4r extends Ft.Component {
158951
158951
  }
158952
158952
  }
158953
158953
  const s4r = Ft.lazy(async () => {
158954
- const { SpatialWrapper: t } = await import("./index-04f09837.js");
158954
+ const { SpatialWrapper: t } = await import("./index-f855e3f4.js");
158955
158955
  return { default: t };
158956
158956
  }), a4r = Ft.forwardRef((t, e) => te.jsx("div", { ref: e, style: { width: "100%", height: "100%" }, children: te.jsx(o4r, { children: te.jsx(tBe, { fallback: te.jsx("div", { children: "Loading..." }), children: te.jsx(s4r, { ...t }) }) }) })), EWe = {
158957
158957
  zoom: 0,
@@ -159859,7 +159859,7 @@ const M_t = k1((t, e) => {
159859
159859
  const jt = new Uint8ClampedArray(mc * 1 * 4);
159860
159860
  return Wc(mc).forEach((_n) => {
159861
159861
  if (We = yn * mc + _n, We < it.length && (Se = it[We], qe = c.get(Se), ke = (C ? _n : mc - _n - 1) * 4, qe)) {
159862
- typeof qe[0] != "number" && (qe = qe[Gt] ?? Nl(r));
159862
+ typeof qe[0] != "number" && (qe = qe[Gt] ?? Ol(r));
159863
159863
  const [Gn, Ir, Mr] = qe;
159864
159864
  jt[ke + 0] = Gn, jt[ke + 1] = Ir, jt[ke + 2] = Mr, jt[ke + 3] = 255;
159865
159865
  }
@@ -163702,7 +163702,7 @@ function uie(t) {
163702
163702
  function f({ rgb: g }) {
163703
163703
  g && r && r([g.r, g.g, g.b]);
163704
163704
  }
163705
- const h = QGr(), d = Ah(n || Nl(e));
163705
+ const h = QGr(), d = Ah(n || Ol(e));
163706
163706
  return te.jsx(Xm, { open: o && l ? A : !1, setOpen: u, buttonIcon: o && l ? te.jsx("div", { className: xt(h.colorIcon, {
163707
163707
  [h.colorIconOutline]: e !== "dark" && Tr(n, [255, 255, 255])
163708
163708
  }), style: { backgroundColor: d } }) : s && l && a ? te.jsx("div", { className: h.colorIcon, children: te.jsx("svg", { width: "18", height: "18", children: te.jsx("image", { x: 0, y: 0, width: 18, height: 18, preserveAspectRatio: "none", href: E1t(a), clipPath: "inset(0% round 4px)" }) }) }) : te.jsx("div", { className: h.colorIcon }), buttonClassName: h.colorIconButton, withPaper: !1, "aria-label": "Open color picker menu", children: te.jsx(Ddt, { className: h.colorPicker, disableAlpha: !0, width: 108, triangle: "hide", colors: c, color: d, onChangeComplete: f }) });
@@ -164675,7 +164675,7 @@ const VQe = mi((t) => ({
164675
164675
  }));
164676
164676
  lUr({ dataFetcher: CJe, config: CJe.config }, { pluginType: "dataFetcher" });
164677
164677
  const wUr = Ft.lazy(async () => {
164678
- const { HiGlassComponent: t } = await import("./higlass-10ea3336.js");
164678
+ const { HiGlassComponent: t } = await import("./higlass-dc1c2f81.js");
164679
164679
  return { default: t };
164680
164680
  }), R9 = 800;
164681
164681
  function qQe(t) {
@@ -177691,14 +177691,14 @@ const S7r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
177691
177691
  sortitems: bTt,
177692
177692
  stack: QMe
177693
177693
  }, Symbol.toStringTag, { value: "Module" }));
177694
- var qr = 1e-6, jK = 1e-12, po = Math.PI, Zl = po / 2, VK = po / 4, Ch = po * 2, yc = 180 / po, mo = po / 180, $o = Math.abs, rF = Math.atan, Kp = Math.atan2, Kr = Math.cos, z9 = Math.ceil, wTt = Math.exp, jCe = Math.hypot, qK = Math.log, mhe = Math.pow, Pr = Math.sin, Tp = Math.sign || function(t) {
177694
+ var qr = 1e-6, jK = 1e-12, po = Math.PI, ec = po / 2, VK = po / 4, Ch = po * 2, yc = 180 / po, mo = po / 180, $o = Math.abs, rF = Math.atan, Kp = Math.atan2, Kr = Math.cos, z9 = Math.ceil, wTt = Math.exp, jCe = Math.hypot, qK = Math.log, mhe = Math.pow, Pr = Math.sin, Tp = Math.sign || function(t) {
177695
177695
  return t > 0 ? 1 : t < 0 ? -1 : 0;
177696
177696
  }, Eh = Math.sqrt, TMe = Math.tan;
177697
177697
  function xTt(t) {
177698
177698
  return t > 1 ? 0 : t < -1 ? po : Math.acos(t);
177699
177699
  }
177700
177700
  function Id(t) {
177701
- return t > 1 ? Zl : t < -1 ? -Zl : Math.asin(t);
177701
+ return t > 1 ? ec : t < -1 ? -ec : Math.asin(t);
177702
177702
  }
177703
177703
  function pu() {
177704
177704
  }
@@ -177813,7 +177813,7 @@ function XK(t) {
177813
177813
  var e = Eh(t[0] * t[0] + t[1] * t[1] + t[2] * t[2]);
177814
177814
  t[0] /= e, t[1] /= e, t[2] /= e;
177815
177815
  }
177816
- var _l, Jh, ql, rg, LS, MTt, DTt, tD, D4, Wb, Iv, AE = {
177816
+ var _l, Jh, Yl, rg, LS, MTt, DTt, tD, D4, Wb, Iv, AE = {
177817
177817
  point: JCe,
177818
177818
  lineStart: fXe,
177819
177819
  lineEnd: hXe,
@@ -177821,14 +177821,14 @@ var _l, Jh, ql, rg, LS, MTt, DTt, tD, D4, Wb, Iv, AE = {
177821
177821
  AE.point = NTt, AE.lineStart = R7r, AE.lineEnd = M7r, D4 = new dh(), zy.polygonStart();
177822
177822
  },
177823
177823
  polygonEnd: function() {
177824
- zy.polygonEnd(), AE.point = JCe, AE.lineStart = fXe, AE.lineEnd = hXe, WK < 0 ? (_l = -(ql = 180), Jh = -(rg = 90)) : D4 > qr ? rg = 90 : D4 < -qr && (Jh = -90), Iv[0] = _l, Iv[1] = ql;
177824
+ zy.polygonEnd(), AE.point = JCe, AE.lineStart = fXe, AE.lineEnd = hXe, WK < 0 ? (_l = -(Yl = 180), Jh = -(rg = 90)) : D4 > qr ? rg = 90 : D4 < -qr && (Jh = -90), Iv[0] = _l, Iv[1] = Yl;
177825
177825
  },
177826
177826
  sphere: function() {
177827
- _l = -(ql = 180), Jh = -(rg = 90);
177827
+ _l = -(Yl = 180), Jh = -(rg = 90);
177828
177828
  }
177829
177829
  };
177830
177830
  function JCe(t, e) {
177831
- Wb.push(Iv = [_l = t, ql = t]), e < Jh && (Jh = e), e > rg && (rg = e);
177831
+ Wb.push(Iv = [_l = t, Yl = t]), e < Jh && (Jh = e), e > rg && (rg = e);
177832
177832
  }
177833
177833
  function LTt(t, e) {
177834
177834
  var n = kx([t * mo, e * mo]);
@@ -177836,16 +177836,16 @@ function LTt(t, e) {
177836
177836
  var r = NL(tD, n), i = [r[1], -r[0], 0], o = NL(i, r);
177837
177837
  XK(o), o = KK(o);
177838
177838
  var s = t - LS, a = s > 0 ? 1 : -1, l = o[0] * yc * a, c, A = $o(s) > 180;
177839
- A ^ (a * LS < l && l < a * t) ? (c = o[1] * yc, c > rg && (rg = c)) : (l = (l + 360) % 360 - 180, A ^ (a * LS < l && l < a * t) ? (c = -o[1] * yc, c < Jh && (Jh = c)) : (e < Jh && (Jh = e), e > rg && (rg = e))), A ? t < LS ? eg(_l, t) > eg(_l, ql) && (ql = t) : eg(t, ql) > eg(_l, ql) && (_l = t) : ql >= _l ? (t < _l && (_l = t), t > ql && (ql = t)) : t > LS ? eg(_l, t) > eg(_l, ql) && (ql = t) : eg(t, ql) > eg(_l, ql) && (_l = t);
177839
+ A ^ (a * LS < l && l < a * t) ? (c = o[1] * yc, c > rg && (rg = c)) : (l = (l + 360) % 360 - 180, A ^ (a * LS < l && l < a * t) ? (c = -o[1] * yc, c < Jh && (Jh = c)) : (e < Jh && (Jh = e), e > rg && (rg = e))), A ? t < LS ? eg(_l, t) > eg(_l, Yl) && (Yl = t) : eg(t, Yl) > eg(_l, Yl) && (_l = t) : Yl >= _l ? (t < _l && (_l = t), t > Yl && (Yl = t)) : t > LS ? eg(_l, t) > eg(_l, Yl) && (Yl = t) : eg(t, Yl) > eg(_l, Yl) && (_l = t);
177840
177840
  } else
177841
- Wb.push(Iv = [_l = t, ql = t]);
177841
+ Wb.push(Iv = [_l = t, Yl = t]);
177842
177842
  e < Jh && (Jh = e), e > rg && (rg = e), tD = n, LS = t;
177843
177843
  }
177844
177844
  function fXe() {
177845
177845
  AE.point = LTt;
177846
177846
  }
177847
177847
  function hXe() {
177848
- Iv[0] = _l, Iv[1] = ql, AE.point = JCe, tD = null;
177848
+ Iv[0] = _l, Iv[1] = Yl, AE.point = JCe, tD = null;
177849
177849
  }
177850
177850
  function NTt(t, e) {
177851
177851
  if (tD) {
@@ -177859,7 +177859,7 @@ function R7r() {
177859
177859
  zy.lineStart();
177860
177860
  }
177861
177861
  function M7r() {
177862
- NTt(MTt, DTt), zy.lineEnd(), $o(D4) > qr && (_l = -(ql = 180)), Iv[0] = _l, Iv[1] = ql, tD = null;
177862
+ NTt(MTt, DTt), zy.lineEnd(), $o(D4) > qr && (_l = -(Yl = 180)), Iv[0] = _l, Iv[1] = Yl, tD = null;
177863
177863
  }
177864
177864
  function eg(t, e) {
177865
177865
  return (e -= t) < 0 ? e + 360 : e;
@@ -177872,13 +177872,13 @@ function dXe(t, e) {
177872
177872
  }
177873
177873
  function L7r(t) {
177874
177874
  var e, n, r, i, o, s, a;
177875
- if (rg = ql = -(_l = Jh = 1 / 0), Wb = [], mE(t, AE), n = Wb.length) {
177875
+ if (rg = Yl = -(_l = Jh = 1 / 0), Wb = [], mE(t, AE), n = Wb.length) {
177876
177876
  for (Wb.sort(D7r), e = 1, r = Wb[0], o = [r]; e < n; ++e)
177877
177877
  i = Wb[e], dXe(r, i[0]) || dXe(r, i[1]) ? (eg(r[0], i[1]) > eg(r[0], r[1]) && (r[1] = i[1]), eg(i[0], r[1]) > eg(r[0], r[1]) && (r[0] = i[0])) : o.push(r = i);
177878
177878
  for (s = -1 / 0, n = o.length - 1, e = 0, r = o[n]; e <= n; r = i, ++e)
177879
- i = o[e], (a = eg(r[1], i[0])) > s && (s = a, _l = i[0], ql = r[1]);
177879
+ i = o[e], (a = eg(r[1], i[0])) > s && (s = a, _l = i[0], Yl = r[1]);
177880
177880
  }
177881
- return Wb = Iv = null, _l === 1 / 0 || Jh === 1 / 0 ? [[NaN, NaN], [NaN, NaN]] : [[_l, Jh], [ql, rg]];
177881
+ return Wb = Iv = null, _l === 1 / 0 || Jh === 1 / 0 ? [[NaN, NaN], [NaN, NaN]] : [[_l, Jh], [Yl, rg]];
177882
177882
  }
177883
177883
  var gk, ZK, eX, tX, nX, rX, iX, oX, KCe, XCe, ZCe, OTt, FTt, nh, rh, ih, ym = {
177884
177884
  sphere: pu,
@@ -178083,7 +178083,7 @@ function yhe(t) {
178083
178083
  }
178084
178084
  function $7r(t, e) {
178085
178085
  var n = yhe(e), r = e[1], i = Pr(r), o = [Pr(n), -Kr(n), 0], s = 0, a = 0, l = new dh();
178086
- i === 1 ? r = Zl + qr : i === -1 && (r = -Zl - qr);
178086
+ i === 1 ? r = ec + qr : i === -1 && (r = -ec - qr);
178087
178087
  for (var c = 0, A = t.length; c < A; ++c)
178088
178088
  if (f = (u = t[c]).length)
178089
178089
  for (var u, f, h = u[f - 1], d = yhe(h), g = h[1] / 2 + VK, m = Pr(g), I = Kr(g), E = 0; E < f; ++E, d = v, m = _, I = S, h = C) {
@@ -178157,7 +178157,7 @@ function z7r(t) {
178157
178157
  return t.length > 1;
178158
178158
  }
178159
178159
  function j7r(t, e) {
178160
- return ((t = t.x)[0] < 0 ? t[1] - Zl - qr : Zl - t[1]) - ((e = e.x)[0] < 0 ? e[1] - Zl - qr : Zl - e[1]);
178160
+ return ((t = t.x)[0] < 0 ? t[1] - ec - qr : ec - t[1]) - ((e = e.x)[0] < 0 ? e[1] - ec - qr : ec - e[1]);
178161
178161
  }
178162
178162
  const vXe = HTt(
178163
178163
  function() {
@@ -178165,7 +178165,7 @@ const vXe = HTt(
178165
178165
  },
178166
178166
  V7r,
178167
178167
  Y7r,
178168
- [-po, -Zl]
178168
+ [-po, -ec]
178169
178169
  );
178170
178170
  function V7r(t) {
178171
178171
  var e = NaN, n = NaN, r = NaN, i;
@@ -178175,7 +178175,7 @@ function V7r(t) {
178175
178175
  },
178176
178176
  point: function(o, s) {
178177
178177
  var a = o > 0 ? po : -po, l = $o(o - e);
178178
- $o(l - po) < qr ? (t.point(e, n = (n + s) / 2 > 0 ? Zl : -Zl), t.point(r, n), t.lineEnd(), t.lineStart(), t.point(a, n), t.point(o, n), i = 0) : r !== a && l >= po && ($o(e - r) < qr && (e -= r * qr), $o(o - a) < qr && (o -= a * qr), n = q7r(e, n, o, s), t.point(r, n), t.lineEnd(), t.lineStart(), t.point(a, n), i = 0), t.point(e = o, n = s), r = a;
178178
+ $o(l - po) < qr ? (t.point(e, n = (n + s) / 2 > 0 ? ec : -ec), t.point(r, n), t.lineEnd(), t.lineStart(), t.point(a, n), t.point(o, n), i = 0) : r !== a && l >= po && ($o(e - r) < qr && (e -= r * qr), $o(o - a) < qr && (o -= a * qr), n = q7r(e, n, o, s), t.point(r, n), t.lineEnd(), t.lineStart(), t.point(a, n), i = 0), t.point(e = o, n = s), r = a;
178179
178179
  },
178180
178180
  lineEnd: function() {
178181
178181
  t.lineEnd(), e = n = NaN;
@@ -178192,7 +178192,7 @@ function q7r(t, e, n, r) {
178192
178192
  function Y7r(t, e, n, r) {
178193
178193
  var i;
178194
178194
  if (t == null)
178195
- i = n * Zl, r.point(-po, i), r.point(0, i), r.point(po, i), r.point(po, 0), r.point(po, -i), r.point(0, -i), r.point(-po, -i), r.point(-po, 0), r.point(-po, i);
178195
+ i = n * ec, r.point(-po, i), r.point(0, i), r.point(po, i), r.point(po, 0), r.point(po, -i), r.point(0, -i), r.point(-po, -i), r.point(-po, 0), r.point(-po, i);
178196
178196
  else if ($o(t[0] - e[0]) > qr) {
178197
178197
  var o = t[0] < e[0] ? po : -po;
178198
178198
  i = n * o / 2, r.point(-o, i), r.point(0, i), r.point(o, i);
@@ -178997,10 +178997,10 @@ function CYr() {
178997
178997
  return dC(sRt).scale(79.4188).clipAngle(180 - 1e-3);
178998
178998
  }
178999
178999
  function ioe(t, e) {
179000
- return [t, qK(TMe((Zl + e) / 2))];
179000
+ return [t, qK(TMe((ec + e) / 2))];
179001
179001
  }
179002
179002
  ioe.invert = function(t, e) {
179003
- return [t, 2 * rF(wTt(e)) - Zl];
179003
+ return [t, 2 * rF(wTt(e)) - ec];
179004
179004
  };
179005
179005
  function EYr() {
179006
179006
  return aRt(ioe).scale(961 / Ch);
@@ -179023,20 +179023,20 @@ function aRt(t) {
179023
179023
  return A();
179024
179024
  }
179025
179025
  function W9(t) {
179026
- return TMe((Zl + t) / 2);
179026
+ return TMe((ec + t) / 2);
179027
179027
  }
179028
179028
  function vYr(t, e) {
179029
179029
  var n = Kr(t), r = t === e ? Pr(t) : qK(n / Kr(e)) / qK(W9(e) / W9(t)), i = n * mhe(W9(t), r) / r;
179030
179030
  if (!r)
179031
179031
  return ioe;
179032
179032
  function o(s, a) {
179033
- i > 0 ? a < -Zl + qr && (a = -Zl + qr) : a > Zl - qr && (a = Zl - qr);
179033
+ i > 0 ? a < -ec + qr && (a = -ec + qr) : a > ec - qr && (a = ec - qr);
179034
179034
  var l = i / mhe(W9(a), r);
179035
179035
  return [l * Pr(r * s), i - l * Kr(r * s)];
179036
179036
  }
179037
179037
  return o.invert = function(s, a) {
179038
179038
  var l = i - a, c = Tp(r) * Eh(s * s + l * l), A = Kp(s, $o(l)) * Tp(l);
179039
- return l * r < 0 && (A -= po * Tp(s) * Tp(l)), [A / r, 2 * rF(mhe(i / c, 1 / r)) - Zl];
179039
+ return l * r < 0 && (A -= po * Tp(s) * Tp(l)), [A / r, 2 * rF(mhe(i / c, 1 / r)) - ec];
179040
179040
  }, o;
179041
179041
  }
179042
179042
  function bYr() {
@@ -179182,10 +179182,10 @@ function DYr() {
179182
179182
  return dC(fRt).scale(250).clipAngle(142);
179183
179183
  }
179184
179184
  function hRt(t, e) {
179185
- return [qK(TMe((Zl + e) / 2)), -t];
179185
+ return [qK(TMe((ec + e) / 2)), -t];
179186
179186
  }
179187
179187
  hRt.invert = function(t, e) {
179188
- return [-e, 2 * rF(wTt(t)) - Zl];
179188
+ return [-e, 2 * rF(wTt(t)) - ec];
179189
179189
  };
179190
179190
  function LYr() {
179191
179191
  var t = aRt(hRt), e = t.center, n = t.rotate;
@@ -188992,7 +188992,7 @@ var aDt = (
188992
188992
  }
188993
188993
  return e;
188994
188994
  }(Error)
188995
- ), Yl = aDt, woi = gg, AM = {
188995
+ ), Wl = aDt, woi = gg, AM = {
188996
188996
  add: function(t, e, n) {
188997
188997
  return t[e] = this.value, { newDocument: n };
188998
188998
  },
@@ -189054,7 +189054,7 @@ function zw(t, e, n, r, i, o) {
189054
189054
  return s.newDocument = QX(t, e.from), e.op === "move" && (s.removed = t), s;
189055
189055
  if (e.op === "test") {
189056
189056
  if (s.test = NU(t, e.value), s.test === !1)
189057
- throw new Yl("Test operation failed", "TEST_OPERATION_FAILED", o, e, t);
189057
+ throw new Wl("Test operation failed", "TEST_OPERATION_FAILED", o, e, t);
189058
189058
  return s.newDocument = t, s;
189059
189059
  } else {
189060
189060
  if (e.op === "remove")
@@ -189062,7 +189062,7 @@ function zw(t, e, n, r, i, o) {
189062
189062
  if (e.op === "_get")
189063
189063
  return e.value = t, s;
189064
189064
  if (n)
189065
- throw new Yl("Operation `op` property is not one of operations defined in RFC-6902", "OPERATION_OP_INVALID", o, e, t);
189065
+ throw new Wl("Operation `op` property is not one of operations defined in RFC-6902", "OPERATION_OP_INVALID", o, e, t);
189066
189066
  return s;
189067
189067
  }
189068
189068
  } else {
@@ -189076,31 +189076,31 @@ function zw(t, e, n, r, i, o) {
189076
189076
  h = c.length;
189077
189077
  else {
189078
189078
  if (n && !$Ee(h))
189079
- throw new Yl("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index", "OPERATION_PATH_ILLEGAL_ARRAY_INDEX", o, e, t);
189079
+ throw new Wl("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index", "OPERATION_PATH_ILLEGAL_ARRAY_INDEX", o, e, t);
189080
189080
  $Ee(h) && (h = ~~h);
189081
189081
  }
189082
189082
  if (A >= u) {
189083
189083
  if (n && e.op === "add" && h > c.length)
189084
- throw new Yl("The specified index MUST NOT be greater than the number of elements in the array", "OPERATION_VALUE_OUT_OF_BOUNDS", o, e, t);
189084
+ throw new Wl("The specified index MUST NOT be greater than the number of elements in the array", "OPERATION_VALUE_OUT_OF_BOUNDS", o, e, t);
189085
189085
  var s = xoi[e.op].call(e, c, h, t);
189086
189086
  if (s.test === !1)
189087
- throw new Yl("Test operation failed", "TEST_OPERATION_FAILED", o, e, t);
189087
+ throw new Wl("Test operation failed", "TEST_OPERATION_FAILED", o, e, t);
189088
189088
  return s;
189089
189089
  }
189090
189090
  } else if (A >= u) {
189091
189091
  var s = AM[e.op].call(e, c, h, t);
189092
189092
  if (s.test === !1)
189093
- throw new Yl("Test operation failed", "TEST_OPERATION_FAILED", o, e, t);
189093
+ throw new Wl("Test operation failed", "TEST_OPERATION_FAILED", o, e, t);
189094
189094
  return s;
189095
189095
  }
189096
189096
  if (c = c[h], n && A < u && (!c || typeof c != "object"))
189097
- throw new Yl("Cannot perform operation at the desired path", "OPERATION_PATH_UNRESOLVABLE", o, e, t);
189097
+ throw new Wl("Cannot perform operation at the desired path", "OPERATION_PATH_UNRESOLVABLE", o, e, t);
189098
189098
  }
189099
189099
  }
189100
189100
  }
189101
189101
  function boe(t, e, n, r, i) {
189102
189102
  if (r === void 0 && (r = !0), i === void 0 && (i = !0), n && !Array.isArray(e))
189103
- throw new Yl("Patch sequence must be an array", "SEQUENCE_NOT_AN_ARRAY");
189103
+ throw new Wl("Patch sequence must be an array", "SEQUENCE_NOT_AN_ARRAY");
189104
189104
  r || (t = gg(t));
189105
189105
  for (var o = new Array(e.length), s = 0, a = e.length; s < a; s++)
189106
189106
  o[s] = zw(t, e[s], n, !0, i, s), t = o[s].newDocument;
@@ -189109,44 +189109,44 @@ function boe(t, e, n, r, i) {
189109
189109
  function Qoi(t, e, n) {
189110
189110
  var r = zw(t, e);
189111
189111
  if (r.test === !1)
189112
- throw new Yl("Test operation failed", "TEST_OPERATION_FAILED", n, e, t);
189112
+ throw new Wl("Test operation failed", "TEST_OPERATION_FAILED", n, e, t);
189113
189113
  return r.newDocument;
189114
189114
  }
189115
189115
  function TX(t, e, n, r) {
189116
189116
  if (typeof t != "object" || t === null || Array.isArray(t))
189117
- throw new Yl("Operation is not an object", "OPERATION_NOT_AN_OBJECT", e, t, n);
189117
+ throw new Wl("Operation is not an object", "OPERATION_NOT_AN_OBJECT", e, t, n);
189118
189118
  if (AM[t.op]) {
189119
189119
  if (typeof t.path != "string")
189120
- throw new Yl("Operation `path` property is not a string", "OPERATION_PATH_INVALID", e, t, n);
189120
+ throw new Wl("Operation `path` property is not a string", "OPERATION_PATH_INVALID", e, t, n);
189121
189121
  if (t.path.indexOf("/") !== 0 && t.path.length > 0)
189122
- throw new Yl('Operation `path` property must start with "/"', "OPERATION_PATH_INVALID", e, t, n);
189122
+ throw new Wl('Operation `path` property must start with "/"', "OPERATION_PATH_INVALID", e, t, n);
189123
189123
  if ((t.op === "move" || t.op === "copy") && typeof t.from != "string")
189124
- throw new Yl("Operation `from` property is not present (applicable in `move` and `copy` operations)", "OPERATION_FROM_REQUIRED", e, t, n);
189124
+ throw new Wl("Operation `from` property is not present (applicable in `move` and `copy` operations)", "OPERATION_FROM_REQUIRED", e, t, n);
189125
189125
  if ((t.op === "add" || t.op === "replace" || t.op === "test") && t.value === void 0)
189126
- throw new Yl("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)", "OPERATION_VALUE_REQUIRED", e, t, n);
189126
+ throw new Wl("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)", "OPERATION_VALUE_REQUIRED", e, t, n);
189127
189127
  if ((t.op === "add" || t.op === "replace" || t.op === "test") && zEe(t.value))
189128
- throw new Yl("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)", "OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED", e, t, n);
189128
+ throw new Wl("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)", "OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED", e, t, n);
189129
189129
  if (n) {
189130
189130
  if (t.op == "add") {
189131
189131
  var i = t.path.split("/").length, o = r.split("/").length;
189132
189132
  if (i !== o + 1 && i !== o)
189133
- throw new Yl("Cannot perform an `add` operation at the desired path", "OPERATION_PATH_CANNOT_ADD", e, t, n);
189133
+ throw new Wl("Cannot perform an `add` operation at the desired path", "OPERATION_PATH_CANNOT_ADD", e, t, n);
189134
189134
  } else if (t.op === "replace" || t.op === "remove" || t.op === "_get") {
189135
189135
  if (t.path !== r)
189136
- throw new Yl("Cannot perform the operation at a path that does not exist", "OPERATION_PATH_UNRESOLVABLE", e, t, n);
189136
+ throw new Wl("Cannot perform the operation at a path that does not exist", "OPERATION_PATH_UNRESOLVABLE", e, t, n);
189137
189137
  } else if (t.op === "move" || t.op === "copy") {
189138
189138
  var s = { op: "_get", path: t.from, value: void 0 }, a = lDt([s], n);
189139
189139
  if (a && a.name === "OPERATION_PATH_UNRESOLVABLE")
189140
- throw new Yl("Cannot perform the operation from a path that does not exist", "OPERATION_FROM_UNRESOLVABLE", e, t, n);
189140
+ throw new Wl("Cannot perform the operation from a path that does not exist", "OPERATION_FROM_UNRESOLVABLE", e, t, n);
189141
189141
  }
189142
189142
  }
189143
189143
  } else
189144
- throw new Yl("Operation `op` property is not one of operations defined in RFC-6902", "OPERATION_OP_INVALID", e, t, n);
189144
+ throw new Wl("Operation `op` property is not one of operations defined in RFC-6902", "OPERATION_OP_INVALID", e, t, n);
189145
189145
  }
189146
189146
  function lDt(t, e, n) {
189147
189147
  try {
189148
189148
  if (!Array.isArray(t))
189149
- throw new Yl("Patch sequence must be an array", "SEQUENCE_NOT_AN_ARRAY");
189149
+ throw new Wl("Patch sequence must be an array", "SEQUENCE_NOT_AN_ARRAY");
189150
189150
  if (e)
189151
189151
  boe(gg(e), gg(t), n || !0);
189152
189152
  else {
@@ -189155,7 +189155,7 @@ function lDt(t, e, n) {
189155
189155
  n(t[r], r, e, void 0);
189156
189156
  }
189157
189157
  } catch (i) {
189158
- if (i instanceof Yl)
189158
+ if (i instanceof Wl)
189159
189159
  return i;
189160
189160
  throw i;
189161
189161
  }
@@ -189190,7 +189190,7 @@ function NU(t, e) {
189190
189190
  }
189191
189191
  const Toi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
189192
189192
  __proto__: null,
189193
- JsonPatchError: Yl,
189193
+ JsonPatchError: Wl,
189194
189194
  _areEquals: NU,
189195
189195
  applyOperation: zw,
189196
189196
  applyPatch: boe,
@@ -190093,7 +190093,7 @@ var yH = globalThis && globalThis.__rest || function(t, e) {
190093
190093
  e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
190094
190094
  return n;
190095
190095
  };
190096
- const WE = "row", JE = "column", _oe = "facet", Pl = "x", GA = "y", AI = "x2", pC = "y2", h_ = "xOffset", aF = "yOffset", uI = "radius", Jv = "radius2", A0 = "theta", Kv = "theta2", mC = "latitude", IC = "longitude", fI = "latitude2", Zp = "longitude2", yd = "color", yC = "fill", CC = "stroke", Cd = "shape", Xv = "size", cQ = "angle", Zv = "opacity", d_ = "fillOpacity", g_ = "strokeOpacity", p_ = "strokeWidth", m_ = "strokeDash", CH = "text", EH = "order", vH = "detail", Soe = "key", Yx = "tooltip", woe = "href", xoe = "url", Qoe = "description", xsi = {
190096
+ const WE = "row", JE = "column", _oe = "facet", kl = "x", GA = "y", AI = "x2", pC = "y2", h_ = "xOffset", aF = "yOffset", uI = "radius", Jv = "radius2", A0 = "theta", Kv = "theta2", mC = "latitude", IC = "longitude", fI = "latitude2", Zp = "longitude2", yd = "color", yC = "fill", CC = "stroke", Cd = "shape", Xv = "size", cQ = "angle", Zv = "opacity", d_ = "fillOpacity", g_ = "strokeOpacity", p_ = "strokeWidth", m_ = "strokeDash", CH = "text", EH = "order", vH = "detail", Soe = "key", Yx = "tooltip", woe = "href", xoe = "url", Qoe = "description", xsi = {
190097
190097
  x: 1,
190098
190098
  y: 1,
190099
190099
  x2: 1,
@@ -190175,7 +190175,7 @@ function vDt(t) {
190175
190175
  function AQ(t) {
190176
190176
  switch (t) {
190177
190177
  case AI:
190178
- return Pl;
190178
+ return kl;
190179
190179
  case pC:
190180
190180
  return GA;
190181
190181
  case fI:
@@ -190205,7 +190205,7 @@ function S1(t) {
190205
190205
  }
190206
190206
  function eb(t) {
190207
190207
  switch (t) {
190208
- case Pl:
190208
+ case kl:
190209
190209
  return AI;
190210
190210
  case GA:
190211
190211
  return pC;
@@ -190221,7 +190221,7 @@ function eb(t) {
190221
190221
  }
190222
190222
  function Ed(t) {
190223
190223
  switch (t) {
190224
- case Pl:
190224
+ case kl:
190225
190225
  case AI:
190226
190226
  return "width";
190227
190227
  case GA:
@@ -190231,7 +190231,7 @@ function Ed(t) {
190231
190231
  }
190232
190232
  function Fsi(t) {
190233
190233
  switch (t) {
190234
- case Pl:
190234
+ case kl:
190235
190235
  return "xOffset";
190236
190236
  case GA:
190237
190237
  return "yOffset";
@@ -190251,7 +190251,7 @@ function Fsi(t) {
190251
190251
  }
190252
190252
  function bDt(t) {
190253
190253
  switch (t) {
190254
- case Pl:
190254
+ case kl:
190255
190255
  return "xOffset";
190256
190256
  case GA:
190257
190257
  return "yOffset";
@@ -190277,7 +190277,7 @@ const aLe = {
190277
190277
  radius: 1
190278
190278
  }, Gsi = En(aLe);
190279
190279
  function Toe(t) {
190280
- return t === "width" ? Pl : GA;
190280
+ return t === "width" ? kl : GA;
190281
190281
  }
190282
190282
  const _Dt = { xOffset: 1, yOffset: 1 };
190283
190283
  function lF(t) {
@@ -190347,7 +190347,7 @@ function Vsi(t) {
190347
190347
  case WE:
190348
190348
  case JE:
190349
190349
  return xDt;
190350
- case Pl:
190350
+ case kl:
190351
190351
  case GA:
190352
190352
  case h_:
190353
190353
  case aF:
@@ -190413,7 +190413,7 @@ function Vsi(t) {
190413
190413
  }
190414
190414
  function Jhe(t) {
190415
190415
  switch (t) {
190416
- case Pl:
190416
+ case kl:
190417
190417
  case GA:
190418
190418
  case A0:
190419
190419
  case uI:
@@ -191596,7 +191596,7 @@ function Vli(t, e, n = !1) {
191596
191596
  if (!I_(t))
191597
191597
  return !1;
191598
191598
  switch (t) {
191599
- case Pl:
191599
+ case kl:
191600
191600
  case GA:
191601
191601
  case h_:
191602
191602
  case aF:
@@ -191797,7 +191797,7 @@ function RLe({ channel: t, channelDef: e, channel2Def: n, markDef: r, config: i,
191797
191797
  bandPosition: A,
191798
191798
  offset: l
191799
191799
  });
191800
- Bn(zDt(t === Pl ? AI : pC));
191800
+ Bn(zDt(t === kl ? AI : pC));
191801
191801
  }
191802
191802
  }
191803
191803
  return jw(
@@ -192337,7 +192337,7 @@ function xci(t, e) {
192337
192337
  compatible: !1,
192338
192338
  warning: Lai(e)
192339
192339
  };
192340
- case Pl:
192340
+ case kl:
192341
192341
  case GA:
192342
192342
  case h_:
192343
192343
  case aF:
@@ -192789,7 +192789,7 @@ function Lci(t, e, n) {
192789
192789
  const r = zsi(e, n);
192790
192790
  if (r) {
192791
192791
  if (r === "binned") {
192792
- const i = t[e === AI ? Pl : GA];
192792
+ const i = t[e === AI ? kl : GA];
192793
192793
  return !!(xn(i) && xn(t[e]) && oh(i.bin));
192794
192794
  }
192795
192795
  } else
@@ -192881,7 +192881,7 @@ function Fci(t, e, n, r) {
192881
192881
  function LLt(t, e) {
192882
192882
  return En(e).reduce((n, r) => {
192883
192883
  switch (r) {
192884
- case Pl:
192884
+ case kl:
192885
192885
  case GA:
192886
192886
  case woe:
192887
192887
  case Qoe:
@@ -195254,7 +195254,7 @@ const sD = "_brush", cve = "_scale_trigger", _ui = {
195254
195254
  }
195255
195255
  e.project.items.forEach((A, u) => {
195256
195256
  const f = A.channel;
195257
- if (f !== Pl && f !== GA) {
195257
+ if (f !== kl && f !== GA) {
195258
195258
  Bn("Interval selections only support x and y encoding channels.");
195259
195259
  return;
195260
195260
  }
@@ -195333,7 +195333,7 @@ const sD = "_brush", cve = "_scale_trigger", _ui = {
195333
195333
  }
195334
195334
  };
195335
195335
  function Sui(t, e, n, r) {
195336
- const i = n.channel, o = n.signals.visual, s = n.signals.data, a = x1.defined(e), l = Qn(t.scaleName(i)), c = t.getScaleComponent(i), A = c ? c.get("type") : void 0, u = (g) => `scale(${l}, ${g})`, f = t.getSizeSignalRef(i === Pl ? "width" : "height").signal, h = `${i}(unit)`, d = pNt(e, (g, m) => [
195336
+ const i = n.channel, o = n.signals.visual, s = n.signals.data, a = x1.defined(e), l = Qn(t.scaleName(i)), c = t.getScaleComponent(i), A = c ? c.get("type") : void 0, u = (g) => `scale(${l}, ${g})`, f = t.getSizeSignalRef(i === kl ? "width" : "height").signal, h = `${i}(unit)`, d = pNt(e, (g, m) => [
195337
195337
  ...g,
195338
195338
  { events: m.between[0], update: `[${h}, ${h}]` },
195339
195339
  { events: m, update: `[${o}[0], clamp(${h}, 0, ${f})]` }
@@ -196109,7 +196109,7 @@ const SNt = "_translate_anchor", wNt = "_translate_delta", Vui = {
196109
196109
  on: [
196110
196110
  {
196111
196111
  events: l.map((c) => c.between[0]),
196112
- update: "{x: x(unit), y: y(unit)" + (s !== void 0 ? `, extent_x: ${i ? ave(t, Pl) : `slice(${s.signals.visual})`}` : "") + (a !== void 0 ? `, extent_y: ${i ? ave(t, GA) : `slice(${a.signals.visual})`}` : "") + "}"
196112
+ update: "{x: x(unit), y: y(unit)" + (s !== void 0 ? `, extent_x: ${i ? ave(t, kl) : `slice(${s.signals.visual})`}` : "") + (a !== void 0 ? `, extent_y: ${i ? ave(t, GA) : `slice(${a.signals.visual})`}` : "") + "}"
196113
196113
  }
196114
196114
  ]
196115
196115
  }, {
@@ -196126,7 +196126,7 @@ const SNt = "_translate_anchor", wNt = "_translate_delta", Vui = {
196126
196126
  };
196127
196127
  function $et(t, e, n, r, i) {
196128
196128
  var o, s;
196129
- const a = e.name, l = a + SNt, c = a + wNt, A = n.channel, u = x1.defined(e), f = i.filter((S) => S.name === n.signals[u ? "data" : "visual"])[0], h = t.getSizeSignalRef(r).signal, d = t.getScaleComponent(A), g = d.get("type"), m = d.get("reverse"), I = u ? A === Pl ? m ? "" : "-" : m ? "-" : "" : "", E = `${l}.extent_${A}`, C = `${I}${c}.${A} / ${u ? `${h}` : `span(${E})`}`, v = u ? g === "log" ? "panLog" : g === "symlog" ? "panSymlog" : g === "pow" ? "panPow" : "panLinear" : "panLinear", B = u ? g === "pow" ? `, ${(o = d.get("exponent")) !== null && o !== void 0 ? o : 1}` : g === "symlog" ? `, ${(s = d.get("constant")) !== null && s !== void 0 ? s : 1}` : "" : "", _ = `${v}(${E}, ${C}${B})`;
196129
+ const a = e.name, l = a + SNt, c = a + wNt, A = n.channel, u = x1.defined(e), f = i.filter((S) => S.name === n.signals[u ? "data" : "visual"])[0], h = t.getSizeSignalRef(r).signal, d = t.getScaleComponent(A), g = d.get("type"), m = d.get("reverse"), I = u ? A === kl ? m ? "" : "-" : m ? "-" : "" : "", E = `${l}.extent_${A}`, C = `${I}${c}.${A} / ${u ? `${h}` : `span(${E})`}`, v = u ? g === "log" ? "panLog" : g === "symlog" ? "panSymlog" : g === "pow" ? "panPow" : "panLinear" : "panLinear", B = u ? g === "pow" ? `, ${(o = d.get("exponent")) !== null && o !== void 0 ? o : 1}` : g === "symlog" ? `, ${(s = d.get("constant")) !== null && s !== void 0 ? s : 1}` : "" : "", _ = `${v}(${E}, ${C}${B})`;
196130
196130
  f.on.push({
196131
196131
  events: { signal: c },
196132
196132
  update: u ? _ : `clampRange(${_}, 0, ${h})`
@@ -196135,7 +196135,7 @@ function $et(t, e, n, r, i) {
196135
196135
  const xNt = "_zoom_anchor", QNt = "_zoom_delta", qui = {
196136
196136
  defined: (t) => t.type === "interval" && t.zoom,
196137
196137
  signals: (t, e, n) => {
196138
- const r = e.name, i = x1.defined(e), o = r + QNt, { x: s, y: a } = e.project.hasChannel, l = Qn(t.scaleName(Pl)), c = Qn(t.scaleName(GA));
196138
+ const r = e.name, i = x1.defined(e), o = r + QNt, { x: s, y: a } = e.project.hasChannel, l = Qn(t.scaleName(kl)), c = Qn(t.scaleName(GA));
196139
196139
  let A = f_(e.zoom, "scope");
196140
196140
  return i || (A = A.map((u) => (u.markname = r + sD, u))), n.push({
196141
196141
  name: r + xNt,
@@ -196542,7 +196542,7 @@ function ifi(t, e, n, r, i) {
196542
196542
  return Rr(o) ? o : FU(o);
196543
196543
  {
196544
196544
  const { configValue: s } = uve("labelAngle", r, e?.style, i);
196545
- return s !== void 0 ? FU(s) : n === Pl && Oo([_Le, BLe], t.type) && !(xn(t) && t.timeUnit) ? 270 : void 0;
196545
+ return s !== void 0 ? FU(s) : n === kl && Oo([_Le, BLe], t.type) && !(xn(t) && t.timeUnit) ? 270 : void 0;
196546
196546
  }
196547
196547
  }
196548
196548
  function fve(t) {
@@ -198946,7 +198946,7 @@ function Dhi(t, e) {
198946
198946
  return jI(Lhi(n[u]));
198947
198947
  }
198948
198948
  }
198949
- const s = t === Pl || t === "xOffset" ? "width" : "height", a = r[s];
198949
+ const s = t === kl || t === "xOffset" ? "width" : "height", a = r[s];
198950
198950
  if (Wy(a)) {
198951
198951
  if (UA(t))
198952
198952
  if (HA(o)) {
@@ -198974,7 +198974,7 @@ function Lhi(t) {
198974
198974
  function Nhi(t, e) {
198975
198975
  const { size: n, config: r, mark: i, encoding: o } = e, s = e.getSignalName.bind(e), { type: a } = oA(o[t]), c = e.getScaleComponent(t).get("type"), { domain: A, domainMid: u } = e.specifiedScales[t];
198976
198976
  switch (t) {
198977
- case Pl:
198977
+ case kl:
198978
198978
  case GA: {
198979
198979
  if (Oo(["point", "band"], c)) {
198980
198980
  const d = AOt(t, n, r.view);
@@ -199061,7 +199061,7 @@ function Ohi(t, e, n) {
199061
199061
  return ADt(`Cannot use ${t} scale if ${r} scale is not discrete.`);
199062
199062
  }
199063
199063
  function AOt(t, e, n) {
199064
- const r = t === Pl ? "width" : "height", i = e[r];
199064
+ const r = t === kl ? "width" : "height", i = e[r];
199065
199065
  return i || UX(n, r);
199066
199066
  }
199067
199067
  function Fhi(t, e, n, r) {
@@ -201486,7 +201486,7 @@ class EOt extends pOt {
201486
201486
  initAxes(e) {
201487
201487
  return EC.reduce((n, r) => {
201488
201488
  const i = e[r];
201489
- if (Ri(i) || r === Pl && Ri(e.x2) || r === GA && Ri(e.y2)) {
201489
+ if (Ri(i) || r === kl && Ri(e.x2) || r === GA && Ri(e.y2)) {
201490
201490
  const o = Ri(i) ? i.axis : void 0;
201491
201491
  n[r] = o && this.initAxis(Object.assign({}, o));
201492
201492
  }
@@ -204611,7 +204611,7 @@ function j0i(t) {
204611
204611
  // not choose the colors automatically.
204612
204612
  domain: A.map((E) => E.key),
204613
204613
  range: A.map((E) => {
204614
- const [C, v, B] = E.isGrayedOut ? Nl(n) : E.color;
204614
+ const [C, v, B] = E.isGrayedOut ? Ol(n) : E.color;
204615
204615
  return `rgba(${C}, ${v}, ${B}, 1)`;
204616
204616
  })
204617
204617
  }, h = oo(l), d = {
@@ -211915,7 +211915,7 @@ class iN {
211915
211915
  this.metaDataLength = e, this.offset = Ya(r), this.bodyLength = Ya(n);
211916
211916
  }
211917
211917
  }
211918
- const Ll = Object.freeze({ done: !0, value: void 0 });
211918
+ const Nl = Object.freeze({ done: !0, value: void 0 });
211919
211919
  class pnt {
211920
211920
  constructor(e) {
211921
211921
  this._json = e;
@@ -211972,7 +211972,7 @@ class _yi extends QPt {
211972
211972
  if (this._closedPromiseResolve) {
211973
211973
  const { resolvers: e } = this;
211974
211974
  for (; e.length > 0; )
211975
- e.shift().resolve(Ll);
211975
+ e.shift().resolve(Nl);
211976
211976
  this._closedPromiseResolve(), this._closedPromiseResolve = void 0;
211977
211977
  }
211978
211978
  }
@@ -211987,12 +211987,12 @@ class _yi extends QPt {
211987
211987
  }
211988
211988
  throw(e) {
211989
211989
  return Mi(this, void 0, void 0, function* () {
211990
- return yield this.abort(e), Ll;
211990
+ return yield this.abort(e), Nl;
211991
211991
  });
211992
211992
  }
211993
211993
  return(e) {
211994
211994
  return Mi(this, void 0, void 0, function* () {
211995
- return yield this.close(), Ll;
211995
+ return yield this.close(), Nl;
211996
211996
  });
211997
211997
  }
211998
211998
  read(e) {
@@ -212008,7 +212008,7 @@ class _yi extends QPt {
212008
212008
  next(...e) {
212009
212009
  return this._values.length > 0 ? Promise.resolve({ done: !1, value: this._values.shift() }) : this._error ? Promise.reject({ done: !0, value: this._error.error }) : this._closedPromiseResolve ? new Promise((n, r) => {
212010
212010
  this.resolvers.push({ resolve: n, reject: r });
212011
- }) : Promise.resolve(Ll);
212011
+ }) : Promise.resolve(Nl);
212012
212012
  }
212013
212013
  _ensureOpen() {
212014
212014
  if (this._closedPromiseResolve)
@@ -212118,10 +212118,10 @@ class wyi {
212118
212118
  return this.source.next({ cmd: n, size: e });
212119
212119
  }
212120
212120
  throw(e) {
212121
- return Object.create(this.source.throw && this.source.throw(e) || Ll);
212121
+ return Object.create(this.source.throw && this.source.throw(e) || Nl);
212122
212122
  }
212123
212123
  return(e) {
212124
- return Object.create(this.source.return && this.source.return(e) || Ll);
212124
+ return Object.create(this.source.return && this.source.return(e) || Nl);
212125
212125
  }
212126
212126
  }
212127
212127
  class AS {
@@ -212153,13 +212153,13 @@ class AS {
212153
212153
  }
212154
212154
  throw(e) {
212155
212155
  return Mi(this, void 0, void 0, function* () {
212156
- const n = this.source.throw && (yield this.source.throw(e)) || Ll;
212156
+ const n = this.source.throw && (yield this.source.throw(e)) || Nl;
212157
212157
  return this._closedPromiseResolve && this._closedPromiseResolve(), this._closedPromiseResolve = void 0, Object.create(n);
212158
212158
  });
212159
212159
  }
212160
212160
  return(e) {
212161
212161
  return Mi(this, void 0, void 0, function* () {
212162
- const n = this.source.return && (yield this.source.return(e)) || Ll;
212162
+ const n = this.source.return && (yield this.source.return(e)) || Nl;
212163
212163
  return this._closedPromiseResolve && this._closedPromiseResolve(), this._closedPromiseResolve = void 0, Object.create(n);
212164
212164
  });
212165
212165
  }
@@ -213790,7 +213790,7 @@ class UPt {
213790
213790
  }
213791
213791
  next() {
213792
213792
  let e;
213793
- return (e = this.readMetadataLength()).done || e.value === -1 && (e = this.readMetadataLength()).done || (e = this.readMetadata(e.value)).done ? Ll : e;
213793
+ return (e = this.readMetadataLength()).done || e.value === -1 && (e = this.readMetadataLength()).done || (e = this.readMetadata(e.value)).done ? Nl : e;
213794
213794
  }
213795
213795
  throw(e) {
213796
213796
  return this.source.throw(e);
@@ -213831,7 +213831,7 @@ class UPt {
213831
213831
  readMetadata(e) {
213832
213832
  const n = this.source.read(e);
213833
213833
  if (!n)
213834
- return Ll;
213834
+ return Nl;
213835
213835
  if (n.byteLength < e)
213836
213836
  throw new Error(kPt(e, n.byteLength));
213837
213837
  return { done: !1, value: lm.decode(n) };
@@ -213847,7 +213847,7 @@ class fCi {
213847
213847
  next() {
213848
213848
  return Mi(this, void 0, void 0, function* () {
213849
213849
  let e;
213850
- return (e = yield this.readMetadataLength()).done || e.value === -1 && (e = yield this.readMetadataLength()).done || (e = yield this.readMetadata(e.value)).done ? Ll : e;
213850
+ return (e = yield this.readMetadataLength()).done || e.value === -1 && (e = yield this.readMetadataLength()).done || (e = yield this.readMetadata(e.value)).done ? Nl : e;
213851
213851
  });
213852
213852
  }
213853
213853
  throw(e) {
@@ -213902,7 +213902,7 @@ class fCi {
213902
213902
  return Mi(this, void 0, void 0, function* () {
213903
213903
  const n = yield this.source.read(e);
213904
213904
  if (!n)
213905
- return Ll;
213905
+ return Nl;
213906
213906
  if (n.byteLength < e)
213907
213907
  throw new Error(kPt(e, n.byteLength));
213908
213908
  return { done: !1, value: lm.decode(n) };
@@ -213925,7 +213925,7 @@ class hCi extends UPt {
213925
213925
  const n = e.batches[this._batchIndex++];
213926
213926
  return this._body = n.columns, { done: !1, value: lm.fromJSON(n, Ts.RecordBatch) };
213927
213927
  }
213928
- return this._body = [], Ll;
213928
+ return this._body = [], Nl;
213929
213929
  }
213930
213930
  readMessageBody(e) {
213931
213931
  return n(this._body);
@@ -214173,14 +214173,14 @@ class BZ extends zPt {
214173
214173
  return this.closed || (this.autoDestroy = VPt(this, e), this.schema || (this.schema = this._reader.readSchema()) || this.cancel()), this;
214174
214174
  }
214175
214175
  throw(e) {
214176
- return !this.closed && this.autoDestroy && (this.closed = !0) ? this.reset()._reader.throw(e) : Ll;
214176
+ return !this.closed && this.autoDestroy && (this.closed = !0) ? this.reset()._reader.throw(e) : Nl;
214177
214177
  }
214178
214178
  return(e) {
214179
- return !this.closed && this.autoDestroy && (this.closed = !0) ? this.reset()._reader.return(e) : Ll;
214179
+ return !this.closed && this.autoDestroy && (this.closed = !0) ? this.reset()._reader.return(e) : Nl;
214180
214180
  }
214181
214181
  next() {
214182
214182
  if (this.closed)
214183
- return Ll;
214183
+ return Nl;
214184
214184
  let e;
214185
214185
  const { _reader: n } = this;
214186
214186
  for (; e = this._readNextMessageAndValidate(); )
@@ -214226,18 +214226,18 @@ class _Z extends zPt {
214226
214226
  }
214227
214227
  throw(e) {
214228
214228
  return Mi(this, void 0, void 0, function* () {
214229
- return !this.closed && this.autoDestroy && (this.closed = !0) ? yield this.reset()._reader.throw(e) : Ll;
214229
+ return !this.closed && this.autoDestroy && (this.closed = !0) ? yield this.reset()._reader.throw(e) : Nl;
214230
214230
  });
214231
214231
  }
214232
214232
  return(e) {
214233
214233
  return Mi(this, void 0, void 0, function* () {
214234
- return !this.closed && this.autoDestroy && (this.closed = !0) ? yield this.reset()._reader.return(e) : Ll;
214234
+ return !this.closed && this.autoDestroy && (this.closed = !0) ? yield this.reset()._reader.return(e) : Nl;
214235
214235
  });
214236
214236
  }
214237
214237
  next() {
214238
214238
  return Mi(this, void 0, void 0, function* () {
214239
214239
  if (this.closed)
214240
- return Ll;
214240
+ return Nl;
214241
214241
  let e;
214242
214242
  const { _reader: n } = this;
214243
214243
  for (; e = yield this._readNextMessageAndValidate(); )
@@ -219471,7 +219471,7 @@ class svi {
219471
219471
  * Copyright 2010-2023 Three.js Authors
219472
219472
  * SPDX-License-Identifier: MIT
219473
219473
  */
219474
- const vse = "154", avi = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, lvi = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, p3t = 0, Yve = 1, m3t = 2, cvi = 3, Avi = 0, IOe = 1, I3t = 2, HI = 3, Xy = 0, ph = 1, cm = 2, uvi = 2, ev = 0, Ww = 1, Wve = 2, Jve = 3, Kve = 4, y3t = 5, JS = 100, C3t = 101, E3t = 102, Xve = 103, Zve = 104, v3t = 200, b3t = 201, B3t = 202, _3t = 203, yOe = 204, COe = 205, S3t = 206, w3t = 207, x3t = 208, Q3t = 209, T3t = 210, R3t = 0, M3t = 1, D3t = 2, NZ = 3, L3t = 4, N3t = 5, O3t = 6, F3t = 7, kH = 0, P3t = 1, k3t = 2, My = 0, G3t = 1, U3t = 2, H3t = 3, $3t = 4, z3t = 5, bse = 300, L1 = 301, N1 = 302, XU = 303, ZU = 304, yF = 306, O1 = 1e3, fu = 1001, aN = 1002, Kl = 1003, e5 = 1004, fvi = 1004, dD = 1005, hvi = 1005, xl = 1006, Bse = 1007, dvi = 1007, Zy = 1008, gvi = 1008, tv = 1009, j3t = 1010, V3t = 1011, _se = 1012, EOe = 1013, LE = 1014, Iy = 1015, lN = 1016, vOe = 1017, bOe = 1018, VB = 1020, q3t = 1021, ag = 1023, Y3t = 1024, W3t = 1025, qB = 1026, i2 = 1027, J3t = 1028, BOe = 1029, K3t = 1030, _Oe = 1031, SOe = 1033, W7 = 33776, J7 = 33777, K7 = 33778, X7 = 33779, ebe = 35840, tbe = 35841, nbe = 35842, rbe = 35843, X3t = 36196, ibe = 37492, obe = 37496, sbe = 37808, abe = 37809, lbe = 37810, cbe = 37811, Abe = 37812, ube = 37813, fbe = 37814, hbe = 37815, dbe = 37816, gbe = 37817, pbe = 37818, mbe = 37819, Ibe = 37820, ybe = 37821, Z7 = 36492, Z3t = 36283, Cbe = 36284, Ebe = 36285, vbe = 36286, ekt = 2200, tkt = 2201, nkt = 2202, cN = 2300, o2 = 2301, eY = 2302, yw = 2400, Cw = 2401, t5 = 2402, Sse = 2500, wOe = 2501, rkt = 0, xOe = 1, OZ = 2, QOe = 3e3, YB = 3001, ikt = 3200, okt = 3201, b_ = 0, skt = 1, WB = "", ui = "srgb", r0 = "srgb-linear", TOe = "display-p3", pvi = 0, tY = 7680, mvi = 7681, Ivi = 7682, yvi = 7683, Cvi = 34055, Evi = 34056, vvi = 5386, bvi = 512, Bvi = 513, _vi = 514, Svi = 515, wvi = 516, xvi = 517, Qvi = 518, akt = 519, lkt = 512, ckt = 513, Akt = 514, ukt = 515, fkt = 516, hkt = 517, dkt = 518, gkt = 519, n5 = 35044, Tvi = 35048, Rvi = 35040, Mvi = 35045, Dvi = 35049, Lvi = 35041, Nvi = 35046, Ovi = 35050, Fvi = 35042, Pvi = "100", bbe = "300 es", FZ = 1035, yy = 2e3, r5 = 2001;
219474
+ const vse = "154", avi = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, lvi = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, p3t = 0, Yve = 1, m3t = 2, cvi = 3, Avi = 0, IOe = 1, I3t = 2, HI = 3, Xy = 0, ph = 1, cm = 2, uvi = 2, ev = 0, Ww = 1, Wve = 2, Jve = 3, Kve = 4, y3t = 5, JS = 100, C3t = 101, E3t = 102, Xve = 103, Zve = 104, v3t = 200, b3t = 201, B3t = 202, _3t = 203, yOe = 204, COe = 205, S3t = 206, w3t = 207, x3t = 208, Q3t = 209, T3t = 210, R3t = 0, M3t = 1, D3t = 2, NZ = 3, L3t = 4, N3t = 5, O3t = 6, F3t = 7, kH = 0, P3t = 1, k3t = 2, My = 0, G3t = 1, U3t = 2, H3t = 3, $3t = 4, z3t = 5, bse = 300, L1 = 301, N1 = 302, XU = 303, ZU = 304, yF = 306, O1 = 1e3, fu = 1001, aN = 1002, Xl = 1003, e5 = 1004, fvi = 1004, dD = 1005, hvi = 1005, xl = 1006, Bse = 1007, dvi = 1007, Zy = 1008, gvi = 1008, tv = 1009, j3t = 1010, V3t = 1011, _se = 1012, EOe = 1013, LE = 1014, Iy = 1015, lN = 1016, vOe = 1017, bOe = 1018, VB = 1020, q3t = 1021, ag = 1023, Y3t = 1024, W3t = 1025, qB = 1026, i2 = 1027, J3t = 1028, BOe = 1029, K3t = 1030, _Oe = 1031, SOe = 1033, W7 = 33776, J7 = 33777, K7 = 33778, X7 = 33779, ebe = 35840, tbe = 35841, nbe = 35842, rbe = 35843, X3t = 36196, ibe = 37492, obe = 37496, sbe = 37808, abe = 37809, lbe = 37810, cbe = 37811, Abe = 37812, ube = 37813, fbe = 37814, hbe = 37815, dbe = 37816, gbe = 37817, pbe = 37818, mbe = 37819, Ibe = 37820, ybe = 37821, Z7 = 36492, Z3t = 36283, Cbe = 36284, Ebe = 36285, vbe = 36286, ekt = 2200, tkt = 2201, nkt = 2202, cN = 2300, o2 = 2301, eY = 2302, yw = 2400, Cw = 2401, t5 = 2402, Sse = 2500, wOe = 2501, rkt = 0, xOe = 1, OZ = 2, QOe = 3e3, YB = 3001, ikt = 3200, okt = 3201, b_ = 0, skt = 1, WB = "", ui = "srgb", r0 = "srgb-linear", TOe = "display-p3", pvi = 0, tY = 7680, mvi = 7681, Ivi = 7682, yvi = 7683, Cvi = 34055, Evi = 34056, vvi = 5386, bvi = 512, Bvi = 513, _vi = 514, Svi = 515, wvi = 516, xvi = 517, Qvi = 518, akt = 519, lkt = 512, ckt = 513, Akt = 514, ukt = 515, fkt = 516, hkt = 517, dkt = 518, gkt = 519, n5 = 35044, Tvi = 35048, Rvi = 35040, Mvi = 35045, Dvi = 35049, Lvi = 35041, Nvi = 35046, Ovi = 35050, Fvi = 35042, Pvi = "100", bbe = "300 es", FZ = 1035, yy = 2e3, r5 = 2001;
219475
219475
  class sb {
219476
219476
  addEventListener(e, n) {
219477
219477
  this._listeners === void 0 && (this._listeners = {});
@@ -219513,7 +219513,7 @@ function Bg() {
219513
219513
  const t = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, n = Math.random() * 4294967295 | 0, r = Math.random() * 4294967295 | 0;
219514
219514
  return ($u[t & 255] + $u[t >> 8 & 255] + $u[t >> 16 & 255] + $u[t >> 24 & 255] + "-" + $u[e & 255] + $u[e >> 8 & 255] + "-" + $u[e >> 16 & 15 | 64] + $u[e >> 24 & 255] + "-" + $u[n & 63 | 128] + $u[n >> 8 & 255] + "-" + $u[n >> 16 & 255] + $u[n >> 24 & 255] + $u[r & 255] + $u[r >> 8 & 255] + $u[r >> 16 & 255] + $u[r >> 24 & 255]).toLowerCase();
219515
219515
  }
219516
- function Xl(t, e, n) {
219516
+ function Zl(t, e, n) {
219517
219517
  return Math.max(e, Math.min(n, t));
219518
219518
  }
219519
219519
  function ROe(t, e) {
@@ -219638,7 +219638,7 @@ const mkt = {
219638
219638
  DEG2RAD: Jw,
219639
219639
  RAD2DEG: AN,
219640
219640
  generateUUID: Bg,
219641
- clamp: Xl,
219641
+ clamp: Zl,
219642
219642
  euclideanModulo: ROe,
219643
219643
  mapLinear: kvi,
219644
219644
  inverseLerp: Gvi,
@@ -219811,7 +219811,7 @@ class dn {
219811
219811
  if (n === 0)
219812
219812
  return Math.PI / 2;
219813
219813
  const r = this.dot(e) / n;
219814
- return Math.acos(Xl(r, -1, 1));
219814
+ return Math.acos(Zl(r, -1, 1));
219815
219815
  }
219816
219816
  distanceTo(e) {
219817
219817
  return Math.sqrt(this.distanceToSquared(e));
@@ -220214,8 +220214,8 @@ function Nde(t) {
220214
220214
  } : (console.warn("THREE.Texture: Unable to serialize Texture."), {});
220215
220215
  }
220216
220216
  let sbi = 0;
220217
- class Ol extends sb {
220218
- constructor(e = Ol.DEFAULT_IMAGE, n = Ol.DEFAULT_MAPPING, r = fu, i = fu, o = xl, s = Zy, a = ag, l = tv, c = Ol.DEFAULT_ANISOTROPY, A = WB) {
220217
+ class Fl extends sb {
220218
+ constructor(e = Fl.DEFAULT_IMAGE, n = Fl.DEFAULT_MAPPING, r = fu, i = fu, o = xl, s = Zy, a = ag, l = tv, c = Fl.DEFAULT_ANISOTROPY, A = WB) {
220219
220219
  super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: sbi++ }), this.uuid = Bg(), this.name = "", this.source = new Ew(e), this.mipmaps = [], this.mapping = n, this.channel = 0, this.wrapS = r, this.wrapT = i, this.magFilter = o, this.minFilter = s, this.anisotropy = c, this.format = a, this.internalFormat = null, this.type = l, this.offset = new dn(0, 0), this.repeat = new dn(1, 1), this.center = new dn(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new ro(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, typeof A == "string" ? this.colorSpace = A : (q4("THREE.Texture: Property .encoding has been replaced by .colorSpace."), this.colorSpace = A === YB ? ui : WB), this.userData = {}, this.version = 0, this.onUpdate = null, this.isRenderTargetTexture = !1, this.needsPMREMUpdate = !1;
220220
220220
  }
220221
220221
  get image() {
@@ -220309,9 +220309,9 @@ class Ol extends sb {
220309
220309
  q4("THREE.Texture: Property .encoding has been replaced by .colorSpace."), this.colorSpace = e === YB ? ui : WB;
220310
220310
  }
220311
220311
  }
220312
- Ol.DEFAULT_IMAGE = null;
220313
- Ol.DEFAULT_MAPPING = bse;
220314
- Ol.DEFAULT_ANISOTROPY = 1;
220312
+ Fl.DEFAULT_IMAGE = null;
220313
+ Fl.DEFAULT_MAPPING = bse;
220314
+ Fl.DEFAULT_ANISOTROPY = 1;
220315
220315
  class Ys {
220316
220316
  constructor(e = 0, n = 0, r = 0, i = 1) {
220317
220317
  Ys.prototype.isVector4 = !0, this.x = e, this.y = n, this.z = r, this.w = i;
@@ -220515,7 +220515,7 @@ class jm extends sb {
220515
220515
  constructor(e = 1, n = 1, r = {}) {
220516
220516
  super(), this.isWebGLRenderTarget = !0, this.width = e, this.height = n, this.depth = 1, this.scissor = new Ys(0, 0, e, n), this.scissorTest = !1, this.viewport = new Ys(0, 0, e, n);
220517
220517
  const i = { width: e, height: n, depth: 1 };
220518
- r.encoding !== void 0 && (q4("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."), r.colorSpace = r.encoding === YB ? ui : WB), this.texture = new Ol(i, r.mapping, r.wrapS, r.wrapT, r.magFilter, r.minFilter, r.format, r.type, r.anisotropy, r.colorSpace), this.texture.isRenderTargetTexture = !0, this.texture.flipY = !1, this.texture.generateMipmaps = r.generateMipmaps !== void 0 ? r.generateMipmaps : !1, this.texture.internalFormat = r.internalFormat !== void 0 ? r.internalFormat : null, this.texture.minFilter = r.minFilter !== void 0 ? r.minFilter : xl, this.depthBuffer = r.depthBuffer !== void 0 ? r.depthBuffer : !0, this.stencilBuffer = r.stencilBuffer !== void 0 ? r.stencilBuffer : !1, this.depthTexture = r.depthTexture !== void 0 ? r.depthTexture : null, this.samples = r.samples !== void 0 ? r.samples : 0;
220518
+ r.encoding !== void 0 && (q4("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."), r.colorSpace = r.encoding === YB ? ui : WB), this.texture = new Fl(i, r.mapping, r.wrapS, r.wrapT, r.magFilter, r.minFilter, r.format, r.type, r.anisotropy, r.colorSpace), this.texture.isRenderTargetTexture = !0, this.texture.flipY = !1, this.texture.generateMipmaps = r.generateMipmaps !== void 0 ? r.generateMipmaps : !1, this.texture.internalFormat = r.internalFormat !== void 0 ? r.internalFormat : null, this.texture.minFilter = r.minFilter !== void 0 ? r.minFilter : xl, this.depthBuffer = r.depthBuffer !== void 0 ? r.depthBuffer : !0, this.stencilBuffer = r.stencilBuffer !== void 0 ? r.stencilBuffer : !1, this.depthTexture = r.depthTexture !== void 0 ? r.depthTexture : null, this.samples = r.samples !== void 0 ? r.samples : 0;
220519
220519
  }
220520
220520
  setSize(e, n, r = 1) {
220521
220521
  (this.width !== e || this.height !== n || this.depth !== r) && (this.width = e, this.height = n, this.depth = r, this.texture.image.width = e, this.texture.image.height = n, this.texture.image.depth = r, this.dispose()), this.viewport.set(0, 0, e, n), this.scissor.set(0, 0, e, n);
@@ -220532,9 +220532,9 @@ class jm extends sb {
220532
220532
  this.dispatchEvent({ type: "dispose" });
220533
220533
  }
220534
220534
  }
220535
- class wse extends Ol {
220535
+ class wse extends Fl {
220536
220536
  constructor(e = null, n = 1, r = 1, i = 1) {
220537
- super(null), this.isDataArrayTexture = !0, this.image = { data: e, width: n, height: r, depth: i }, this.magFilter = Kl, this.minFilter = Kl, this.wrapR = fu, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
220537
+ super(null), this.isDataArrayTexture = !0, this.image = { data: e, width: n, height: r, depth: i }, this.magFilter = Xl, this.minFilter = Xl, this.wrapR = fu, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
220538
220538
  }
220539
220539
  }
220540
220540
  class abi extends jm {
@@ -220542,9 +220542,9 @@ class abi extends jm {
220542
220542
  super(e, n), this.isWebGLArrayRenderTarget = !0, this.depth = r, this.texture = new wse(null, e, n, r), this.texture.isRenderTargetTexture = !0;
220543
220543
  }
220544
220544
  }
220545
- class DOe extends Ol {
220545
+ class DOe extends Fl {
220546
220546
  constructor(e = null, n = 1, r = 1, i = 1) {
220547
- super(null), this.isData3DTexture = !0, this.image = { data: e, width: n, height: r, depth: i }, this.magFilter = Kl, this.minFilter = Kl, this.wrapR = fu, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
220547
+ super(null), this.isData3DTexture = !0, this.image = { data: e, width: n, height: r, depth: i }, this.magFilter = Xl, this.minFilter = Xl, this.wrapR = fu, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
220548
220548
  }
220549
220549
  }
220550
220550
  class lbi extends jm {
@@ -220695,7 +220695,7 @@ class Cf {
220695
220695
  return r < Number.EPSILON ? (r = 0, Math.abs(e.x) > Math.abs(e.z) ? (this._x = -e.y, this._y = e.x, this._z = 0, this._w = r) : (this._x = 0, this._y = -e.z, this._z = e.y, this._w = r)) : (this._x = e.y * n.z - e.z * n.y, this._y = e.z * n.x - e.x * n.z, this._z = e.x * n.y - e.y * n.x, this._w = r), this.normalize();
220696
220696
  }
220697
220697
  angleTo(e) {
220698
- return 2 * Math.acos(Math.abs(Xl(this.dot(e), -1, 1)));
220698
+ return 2 * Math.acos(Math.abs(Zl(this.dot(e), -1, 1)));
220699
220699
  }
220700
220700
  rotateTowards(e, n) {
220701
220701
  const r = this.angleTo(e);
@@ -220990,7 +220990,7 @@ class rt {
220990
220990
  if (n === 0)
220991
220991
  return Math.PI / 2;
220992
220992
  const r = this.dot(e) / n;
220993
- return Math.acos(Xl(r, -1, 1));
220993
+ return Math.acos(Zl(r, -1, 1));
220994
220994
  }
220995
220995
  distanceTo(e) {
220996
220996
  return Math.sqrt(this.distanceToSquared(e));
@@ -221860,22 +221860,22 @@ class GH {
221860
221860
  const i = e.elements, o = i[0], s = i[4], a = i[8], l = i[1], c = i[5], A = i[9], u = i[2], f = i[6], h = i[10];
221861
221861
  switch (n) {
221862
221862
  case "XYZ":
221863
- this._y = Math.asin(Xl(a, -1, 1)), Math.abs(a) < 0.9999999 ? (this._x = Math.atan2(-A, h), this._z = Math.atan2(-s, o)) : (this._x = Math.atan2(f, c), this._z = 0);
221863
+ this._y = Math.asin(Zl(a, -1, 1)), Math.abs(a) < 0.9999999 ? (this._x = Math.atan2(-A, h), this._z = Math.atan2(-s, o)) : (this._x = Math.atan2(f, c), this._z = 0);
221864
221864
  break;
221865
221865
  case "YXZ":
221866
- this._x = Math.asin(-Xl(A, -1, 1)), Math.abs(A) < 0.9999999 ? (this._y = Math.atan2(a, h), this._z = Math.atan2(l, c)) : (this._y = Math.atan2(-u, o), this._z = 0);
221866
+ this._x = Math.asin(-Zl(A, -1, 1)), Math.abs(A) < 0.9999999 ? (this._y = Math.atan2(a, h), this._z = Math.atan2(l, c)) : (this._y = Math.atan2(-u, o), this._z = 0);
221867
221867
  break;
221868
221868
  case "ZXY":
221869
- this._x = Math.asin(Xl(f, -1, 1)), Math.abs(f) < 0.9999999 ? (this._y = Math.atan2(-u, h), this._z = Math.atan2(-s, c)) : (this._y = 0, this._z = Math.atan2(l, o));
221869
+ this._x = Math.asin(Zl(f, -1, 1)), Math.abs(f) < 0.9999999 ? (this._y = Math.atan2(-u, h), this._z = Math.atan2(-s, c)) : (this._y = 0, this._z = Math.atan2(l, o));
221870
221870
  break;
221871
221871
  case "ZYX":
221872
- this._y = Math.asin(-Xl(u, -1, 1)), Math.abs(u) < 0.9999999 ? (this._x = Math.atan2(f, h), this._z = Math.atan2(l, o)) : (this._x = 0, this._z = Math.atan2(-s, c));
221872
+ this._y = Math.asin(-Zl(u, -1, 1)), Math.abs(u) < 0.9999999 ? (this._x = Math.atan2(f, h), this._z = Math.atan2(l, o)) : (this._x = 0, this._z = Math.atan2(-s, c));
221873
221873
  break;
221874
221874
  case "YZX":
221875
- this._z = Math.asin(Xl(l, -1, 1)), Math.abs(l) < 0.9999999 ? (this._x = Math.atan2(-A, c), this._y = Math.atan2(-u, o)) : (this._x = 0, this._y = Math.atan2(a, h));
221875
+ this._z = Math.asin(Zl(l, -1, 1)), Math.abs(l) < 0.9999999 ? (this._x = Math.atan2(-A, c), this._y = Math.atan2(-u, o)) : (this._x = 0, this._y = Math.atan2(a, h));
221876
221876
  break;
221877
221877
  case "XZY":
221878
- this._z = Math.asin(-Xl(s, -1, 1)), Math.abs(s) < 0.9999999 ? (this._x = Math.atan2(f, c), this._y = Math.atan2(a, o)) : (this._x = Math.atan2(-A, h), this._y = 0);
221878
+ this._z = Math.asin(-Zl(s, -1, 1)), Math.abs(s) < 0.9999999 ? (this._x = Math.atan2(f, c), this._y = Math.atan2(a, o)) : (this._x = Math.atan2(-A, h), this._y = 0);
221879
221879
  break;
221880
221880
  default:
221881
221881
  console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: " + n);
@@ -222606,7 +222606,7 @@ class Wn {
222606
222606
  return this.r = e, this.g = n, this.b = r, ep.toWorkingColorSpace(this, i), this;
222607
222607
  }
222608
222608
  setHSL(e, n, r, i = ep.workingColorSpace) {
222609
- if (e = ROe(e, 1), n = Xl(n, 0, 1), r = Xl(r, 0, 1), n === 0)
222609
+ if (e = ROe(e, 1), n = Zl(n, 0, 1), r = Zl(r, 0, 1), n === 0)
222610
222610
  this.r = this.g = this.b = r;
222611
222611
  else {
222612
222612
  const o = r <= 0.5 ? r * (1 + n) : r + n - r * n, s = 2 * r - o;
@@ -222692,7 +222692,7 @@ class Wn {
222692
222692
  return this.copyLinearToSRGB(this), this;
222693
222693
  }
222694
222694
  getHex(e = ui) {
222695
- return ep.fromWorkingColorSpace(zu.copy(this), e), Math.round(Xl(zu.r * 255, 0, 255)) * 65536 + Math.round(Xl(zu.g * 255, 0, 255)) * 256 + Math.round(Xl(zu.b * 255, 0, 255));
222695
+ return ep.fromWorkingColorSpace(zu.copy(this), e), Math.round(Zl(zu.r * 255, 0, 255)) * 65536 + Math.round(Zl(zu.g * 255, 0, 255)) * 256 + Math.round(Zl(zu.b * 255, 0, 255));
222696
222696
  }
222697
222697
  getHexString(e = ui) {
222698
222698
  return ("000000" + this.getHex(e).toString(16)).slice(-6);
@@ -222832,7 +222832,7 @@ function Ibi() {
222832
222832
  };
222833
222833
  }
222834
222834
  function Gh(t) {
222835
- Math.abs(t) > 65504 && console.warn("THREE.DataUtils.toHalfFloat(): Value out of range."), t = Xl(t, -65504, 65504), CE.floatView[0] = t;
222835
+ Math.abs(t) > 65504 && console.warn("THREE.DataUtils.toHalfFloat(): Value out of range."), t = Zl(t, -65504, 65504), CE.floatView[0] = t;
222836
222836
  const e = CE.uint32View[0], n = e >> 23 & 511;
222837
222837
  return CE.baseTable[n] + ((e & 8388607) >> CE.shiftTable[n]);
222838
222838
  }
@@ -223751,7 +223751,7 @@ class vkt extends zo {
223751
223751
  r.texture.generateMipmaps = !1, e.setRenderTarget(r, 0), e.render(n, i), e.setRenderTarget(r, 1), e.render(n, o), e.setRenderTarget(r, 2), e.render(n, s), e.setRenderTarget(r, 3), e.render(n, a), e.setRenderTarget(r, 4), e.render(n, l), r.texture.generateMipmaps = h, e.setRenderTarget(r, 5), e.render(n, c), e.setRenderTarget(A), e.toneMapping = u, e.xr.enabled = f, r.texture.needsPMREMUpdate = !0;
223752
223752
  }
223753
223753
  }
223754
- class UH extends Ol {
223754
+ class UH extends Fl {
223755
223755
  constructor(e, n, r, i, o, s, a, l, c, A) {
223756
223756
  e = e !== void 0 ? e : [], n = n !== void 0 ? n : L1, super(e, n, r, i, o, s, a, l, c, A), this.isCubeTexture = !0, this.flipY = !1;
223757
223757
  }
@@ -229242,7 +229242,7 @@ function x_i(t, e, n, r) {
229242
229242
  dispose: s
229243
229243
  };
229244
229244
  }
229245
- const _kt = /* @__PURE__ */ new Ol(), Skt = /* @__PURE__ */ new wse(), wkt = /* @__PURE__ */ new DOe(), xkt = /* @__PURE__ */ new UH(), drt = [], grt = [], prt = new Float32Array(16), mrt = new Float32Array(9), Irt = new Float32Array(4);
229245
+ const _kt = /* @__PURE__ */ new Fl(), Skt = /* @__PURE__ */ new wse(), wkt = /* @__PURE__ */ new DOe(), xkt = /* @__PURE__ */ new UH(), drt = [], grt = [], prt = new Float32Array(16), mrt = new Float32Array(9), Irt = new Float32Array(4);
229246
229246
  function EF(t, e, n) {
229247
229247
  const r = t[0];
229248
229248
  if (r <= 0 || r > 0)
@@ -230911,7 +230911,7 @@ function ZSi(t, e, n) {
230911
230911
  i.copy(j.mapSize);
230912
230912
  const $ = j.getFrameExtents();
230913
230913
  if (i.multiply($), o.copy(j.mapSize), (i.x > A || i.y > A) && (i.x > A && (o.x = Math.floor(A / $.x), i.x = o.x * $.x, j.mapSize.x = o.x), i.y > A && (o.y = Math.floor(A / $.y), i.y = o.y * $.y, j.mapSize.y = o.y)), j.map === null || F === !0 || G === !0) {
230914
- const z = this.type !== HI ? { minFilter: Kl, magFilter: Kl } : {};
230914
+ const z = this.type !== HI ? { minFilter: Xl, magFilter: Xl } : {};
230915
230915
  j.map !== null && j.map.dispose(), j.map = new jm(i.x, i.y, z), j.map.texture.name = J.name + ".shadowMap", j.camera.updateProjectionMatrix();
230916
230916
  }
230917
230917
  t.setRenderTarget(j.map), t.clear();
@@ -231387,10 +231387,10 @@ function twi(t, e, n, r, i, o, s) {
231387
231387
  return Bbe(le.width) && Bbe(le.height);
231388
231388
  }
231389
231389
  function B(le) {
231390
- return a ? !1 : le.wrapS !== fu || le.wrapT !== fu || le.minFilter !== Kl && le.minFilter !== xl;
231390
+ return a ? !1 : le.wrapS !== fu || le.wrapT !== fu || le.minFilter !== Xl && le.minFilter !== xl;
231391
231391
  }
231392
231392
  function _(le, he) {
231393
- return le.generateMipmaps && he && le.minFilter !== Kl && le.minFilter !== xl;
231393
+ return le.generateMipmaps && he && le.minFilter !== Xl && le.minFilter !== xl;
231394
231394
  }
231395
231395
  function S(le) {
231396
231396
  t.generateMipmap(le);
@@ -231407,10 +231407,10 @@ function twi(t, e, n, r, i, o, s) {
231407
231407
  return he === t.RED && (Ne === t.FLOAT && (He = t.R32F), Ne === t.HALF_FLOAT && (He = t.R16F), Ne === t.UNSIGNED_BYTE && (He = t.R8)), he === t.RG && (Ne === t.FLOAT && (He = t.RG32F), Ne === t.HALF_FLOAT && (He = t.RG16F), Ne === t.UNSIGNED_BYTE && (He = t.RG8)), he === t.RGBA && (Ne === t.FLOAT && (He = t.RGBA32F), Ne === t.HALF_FLOAT && (He = t.RGBA16F), Ne === t.UNSIGNED_BYTE && (He = Me === ui && Te === !1 ? t.SRGB8_ALPHA8 : t.RGBA8), Ne === t.UNSIGNED_SHORT_4_4_4_4 && (He = t.RGBA4), Ne === t.UNSIGNED_SHORT_5_5_5_1 && (He = t.RGB5_A1)), (He === t.R16F || He === t.R32F || He === t.RG16F || He === t.RG32F || He === t.RGBA16F || He === t.RGBA32F) && e.get("EXT_color_buffer_float"), He;
231408
231408
  }
231409
231409
  function Q(le, he, Ne) {
231410
- return _(le, Ne) === !0 || le.isFramebufferTexture && le.minFilter !== Kl && le.minFilter !== xl ? Math.log2(Math.max(he.width, he.height)) + 1 : le.mipmaps !== void 0 && le.mipmaps.length > 0 ? le.mipmaps.length : le.isCompressedTexture && Array.isArray(le.image) ? he.mipmaps.length : 1;
231410
+ return _(le, Ne) === !0 || le.isFramebufferTexture && le.minFilter !== Xl && le.minFilter !== xl ? Math.log2(Math.max(he.width, he.height)) + 1 : le.mipmaps !== void 0 && le.mipmaps.length > 0 ? le.mipmaps.length : le.isCompressedTexture && Array.isArray(le.image) ? he.mipmaps.length : 1;
231411
231411
  }
231412
231412
  function M(le) {
231413
- return le === Kl || le === e5 || le === dD ? t.NEAREST : t.LINEAR;
231413
+ return le === Xl || le === e5 || le === dD ? t.NEAREST : t.LINEAR;
231414
231414
  }
231415
231415
  function D(le) {
231416
231416
  const he = le.target;
@@ -231511,7 +231511,7 @@ function twi(t, e, n, r, i, o, s) {
231511
231511
  [fu]: t.CLAMP_TO_EDGE,
231512
231512
  [aN]: t.MIRRORED_REPEAT
231513
231513
  }, Ce = {
231514
- [Kl]: t.NEAREST,
231514
+ [Xl]: t.NEAREST,
231515
231515
  [e5]: t.NEAREST_MIPMAP_NEAREST,
231516
231516
  [dD]: t.NEAREST_MIPMAP_LINEAR,
231517
231517
  [xl]: t.LINEAR,
@@ -231528,9 +231528,9 @@ function twi(t, e, n, r, i, o, s) {
231528
231528
  [hkt]: t.NOTEQUAL
231529
231529
  };
231530
231530
  function Re(le, he, Ne) {
231531
- if (Ne ? (t.texParameteri(le, t.TEXTURE_WRAP_S, ye[he.wrapS]), t.texParameteri(le, t.TEXTURE_WRAP_T, ye[he.wrapT]), (le === t.TEXTURE_3D || le === t.TEXTURE_2D_ARRAY) && t.texParameteri(le, t.TEXTURE_WRAP_R, ye[he.wrapR]), t.texParameteri(le, t.TEXTURE_MAG_FILTER, Ce[he.magFilter]), t.texParameteri(le, t.TEXTURE_MIN_FILTER, Ce[he.minFilter])) : (t.texParameteri(le, t.TEXTURE_WRAP_S, t.CLAMP_TO_EDGE), t.texParameteri(le, t.TEXTURE_WRAP_T, t.CLAMP_TO_EDGE), (le === t.TEXTURE_3D || le === t.TEXTURE_2D_ARRAY) && t.texParameteri(le, t.TEXTURE_WRAP_R, t.CLAMP_TO_EDGE), (he.wrapS !== fu || he.wrapT !== fu) && console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."), t.texParameteri(le, t.TEXTURE_MAG_FILTER, M(he.magFilter)), t.texParameteri(le, t.TEXTURE_MIN_FILTER, M(he.minFilter)), he.minFilter !== Kl && he.minFilter !== xl && console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")), he.compareFunction && (t.texParameteri(le, t.TEXTURE_COMPARE_MODE, t.COMPARE_REF_TO_TEXTURE), t.texParameteri(le, t.TEXTURE_COMPARE_FUNC, me[he.compareFunction])), e.has("EXT_texture_filter_anisotropic") === !0) {
231531
+ if (Ne ? (t.texParameteri(le, t.TEXTURE_WRAP_S, ye[he.wrapS]), t.texParameteri(le, t.TEXTURE_WRAP_T, ye[he.wrapT]), (le === t.TEXTURE_3D || le === t.TEXTURE_2D_ARRAY) && t.texParameteri(le, t.TEXTURE_WRAP_R, ye[he.wrapR]), t.texParameteri(le, t.TEXTURE_MAG_FILTER, Ce[he.magFilter]), t.texParameteri(le, t.TEXTURE_MIN_FILTER, Ce[he.minFilter])) : (t.texParameteri(le, t.TEXTURE_WRAP_S, t.CLAMP_TO_EDGE), t.texParameteri(le, t.TEXTURE_WRAP_T, t.CLAMP_TO_EDGE), (le === t.TEXTURE_3D || le === t.TEXTURE_2D_ARRAY) && t.texParameteri(le, t.TEXTURE_WRAP_R, t.CLAMP_TO_EDGE), (he.wrapS !== fu || he.wrapT !== fu) && console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."), t.texParameteri(le, t.TEXTURE_MAG_FILTER, M(he.magFilter)), t.texParameteri(le, t.TEXTURE_MIN_FILTER, M(he.minFilter)), he.minFilter !== Xl && he.minFilter !== xl && console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")), he.compareFunction && (t.texParameteri(le, t.TEXTURE_COMPARE_MODE, t.COMPARE_REF_TO_TEXTURE), t.texParameteri(le, t.TEXTURE_COMPARE_FUNC, me[he.compareFunction])), e.has("EXT_texture_filter_anisotropic") === !0) {
231532
231532
  const Me = e.get("EXT_texture_filter_anisotropic");
231533
- if (he.magFilter === Kl || he.minFilter !== dD && he.minFilter !== Zy || he.type === Iy && e.has("OES_texture_float_linear") === !1 || a === !1 && he.type === lN && e.has("OES_texture_half_float_linear") === !1)
231533
+ if (he.magFilter === Xl || he.minFilter !== dD && he.minFilter !== Zy || he.type === Iy && e.has("OES_texture_float_linear") === !1 || a === !1 && he.type === lN && e.has("OES_texture_half_float_linear") === !1)
231534
231534
  return;
231535
231535
  (he.anisotropy > 1 || r.get(he).__currentAnisotropy) && (t.texParameterf(le, Me.TEXTURE_MAX_ANISOTROPY_EXT, Math.min(he.anisotropy, i.getMaxAnisotropy())), r.get(he).__currentAnisotropy = he.anisotropy);
231536
231536
  }
@@ -232040,11 +232040,11 @@ class Zde {
232040
232040
  return e.joints[n.jointName];
232041
232041
  }
232042
232042
  }
232043
- class Rkt extends Ol {
232043
+ class Rkt extends Fl {
232044
232044
  constructor(e, n, r, i, o, s, a, l, c, A) {
232045
232045
  if (A = A !== void 0 ? A : qB, A !== qB && A !== i2)
232046
232046
  throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");
232047
- r === void 0 && A === qB && (r = LE), r === void 0 && A === i2 && (r = VB), super(null, i, o, s, a, l, A, r, c), this.isDepthTexture = !0, this.image = { width: e, height: n }, this.magFilter = a !== void 0 ? a : Kl, this.minFilter = l !== void 0 ? l : Kl, this.flipY = !1, this.generateMipmaps = !1, this.compareFunction = null;
232047
+ r === void 0 && A === qB && (r = LE), r === void 0 && A === i2 && (r = VB), super(null, i, o, s, a, l, A, r, c), this.isDepthTexture = !0, this.image = { width: e, height: n }, this.magFilter = a !== void 0 ? a : Xl, this.minFilter = l !== void 0 ? l : Xl, this.flipY = !1, this.generateMipmaps = !1, this.compareFunction = null;
232048
232048
  }
232049
232049
  copy(e) {
232050
232050
  return super.copy(e), this.compareFunction = e.compareFunction, this;
@@ -233353,8 +233353,8 @@ class Lse extends zo {
233353
233353
  super(), this.isBone = !0, this.type = "Bone";
233354
233354
  }
233355
233355
  }
233356
- class pD extends Ol {
233357
- constructor(e = null, n = 1, r = 1, i, o, s, a, l, c = Kl, A = Kl, u, f) {
233356
+ class pD extends Fl {
233357
+ constructor(e = null, n = 1, r = 1, i, o, s, a, l, c = Xl, A = Xl, u, f) {
233358
233358
  super(null, s, a, l, c, A, i, o, u, f), this.isDataTexture = !0, this.image = { data: e, width: n, height: r }, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
233359
233359
  }
233360
233360
  }
@@ -233687,7 +233687,7 @@ function Vrt(t, e, n, r, i, o, s) {
233687
233687
  });
233688
233688
  }
233689
233689
  }
233690
- class Awi extends Ol {
233690
+ class Awi extends Fl {
233691
233691
  constructor(e, n, r, i, o, s, a, l, c) {
233692
233692
  super(e, n, r, i, o, s, a, l, c), this.isVideoTexture = !0, this.minFilter = s !== void 0 ? s : xl, this.magFilter = o !== void 0 ? o : xl, this.generateMipmaps = !1;
233693
233693
  const A = this;
@@ -233704,12 +233704,12 @@ class Awi extends Ol {
233704
233704
  "requestVideoFrameCallback" in e === !1 && e.readyState >= e.HAVE_CURRENT_DATA && (this.needsUpdate = !0);
233705
233705
  }
233706
233706
  }
233707
- class uwi extends Ol {
233707
+ class uwi extends Fl {
233708
233708
  constructor(e, n) {
233709
- super({ width: e, height: n }), this.isFramebufferTexture = !0, this.magFilter = Kl, this.minFilter = Kl, this.generateMipmaps = !1, this.needsUpdate = !0;
233709
+ super({ width: e, height: n }), this.isFramebufferTexture = !0, this.magFilter = Xl, this.minFilter = Xl, this.generateMipmaps = !1, this.needsUpdate = !0;
233710
233710
  }
233711
233711
  }
233712
- class zOe extends Ol {
233712
+ class zOe extends Fl {
233713
233713
  constructor(e, n, r, i, o, s, a, l, c, A, u, f) {
233714
233714
  super(null, s, a, l, c, A, i, o, u, f), this.isCompressedTexture = !0, this.image = { width: n, height: r }, this.mipmaps = e, this.flipY = !1, this.generateMipmaps = !1;
233715
233715
  }
@@ -233719,7 +233719,7 @@ class fwi extends zOe {
233719
233719
  super(e, n, r, o, s), this.isCompressedArrayTexture = !0, this.image.depth = i, this.wrapR = fu;
233720
233720
  }
233721
233721
  }
233722
- class hwi extends Ol {
233722
+ class hwi extends Fl {
233723
233723
  constructor(e, n, r, i, o, s, a, l, c) {
233724
233724
  super(e, n, r, i, o, s, a, l, c), this.isCanvasTexture = !0, this.needsUpdate = !0;
233725
233725
  }
@@ -233822,13 +233822,13 @@ class pI {
233822
233822
  for (let h = 1; h <= e; h++) {
233823
233823
  if (o[h] = o[h - 1].clone(), s[h] = s[h - 1].clone(), a.crossVectors(i[h - 1], i[h]), a.length() > Number.EPSILON) {
233824
233824
  a.normalize();
233825
- const d = Math.acos(Xl(i[h - 1].dot(i[h]), -1, 1));
233825
+ const d = Math.acos(Zl(i[h - 1].dot(i[h]), -1, 1));
233826
233826
  o[h].applyMatrix4(l.makeRotationAxis(a, d));
233827
233827
  }
233828
233828
  s[h].crossVectors(i[h], o[h]);
233829
233829
  }
233830
233830
  if (n === !0) {
233831
- let h = Math.acos(Xl(o[0].dot(o[e]), -1, 1));
233831
+ let h = Math.acos(Zl(o[0].dot(o[e]), -1, 1));
233832
233832
  h /= e, i[0].dot(a.crossVectors(o[0], o[e])) > 0 && (h = -h);
233833
233833
  for (let d = 1; d <= e; d++)
233834
233834
  o[d].applyMatrix4(l.makeRotationAxis(i[d], h * d)), s[d].crossVectors(i[d], o[d]);
@@ -234377,7 +234377,7 @@ class VH extends Zi {
234377
234377
  segments: n,
234378
234378
  phiStart: r,
234379
234379
  phiLength: i
234380
- }, n = Math.floor(n), i = Xl(i, 0, Math.PI * 2);
234380
+ }, n = Math.floor(n), i = Zl(i, 0, Math.PI * 2);
234381
234381
  const o = [], s = [], a = [], l = [], c = [], A = 1 / n, u = new rt(), f = new dn(), h = new rt(), d = new rt(), g = new rt();
234382
234382
  let m = 0, I = 0;
234383
234383
  for (let E = 0; E <= e.length - 1; E++)
@@ -235943,7 +235943,7 @@ class bC extends WH {
235943
235943
  PHYSICAL: ""
235944
235944
  }, this.type = "MeshPhysicalMaterial", this.anisotropyRotation = 0, this.anisotropyMap = null, this.clearcoatMap = null, this.clearcoatRoughness = 0, this.clearcoatRoughnessMap = null, this.clearcoatNormalScale = new dn(1, 1), this.clearcoatNormalMap = null, this.ior = 1.5, Object.defineProperty(this, "reflectivity", {
235945
235945
  get: function() {
235946
- return Xl(2.5 * (this.ior - 1) / (this.ior + 1), 0, 1);
235946
+ return Zl(2.5 * (this.ior - 1) / (this.ior + 1), 0, 1);
235947
235947
  },
235948
235948
  set: function(n) {
235949
235949
  this.ior = (1 + 0.4 * n) / (1 - 0.4 * n);
@@ -237038,7 +237038,7 @@ class a4t extends Tf {
237038
237038
  super(e);
237039
237039
  }
237040
237040
  load(e, n, r, i) {
237041
- const o = new Ol(), s = new c5(this.manager);
237041
+ const o = new Fl(), s = new c5(this.manager);
237042
237042
  return s.setCrossOrigin(this.crossOrigin), s.setPath(this.path), s.load(e, function(a) {
237043
237043
  o.image = a, o.needsUpdate = !0, n !== void 0 && n(o);
237044
237044
  }, r, i), o;
@@ -237745,7 +237745,7 @@ class exi extends Tf {
237745
237745
  a.image === void 0 && console.warn('THREE.ObjectLoader: No "image" specified for', a.uuid), n[a.image] === void 0 && console.warn("THREE.ObjectLoader: Undefined image", a.image);
237746
237746
  const l = n[a.image], c = l.data;
237747
237747
  let A;
237748
- Array.isArray(c) ? (A = new UH(), c.length === 6 && (A.needsUpdate = !0)) : (c && c.data ? A = new pD() : A = new Ol(), c && (A.needsUpdate = !0)), A.source = l, A.uuid = a.uuid, a.name !== void 0 && (A.name = a.name), a.mapping !== void 0 && (A.mapping = r(a.mapping, txi)), a.channel !== void 0 && (A.channel = a.channel), a.offset !== void 0 && A.offset.fromArray(a.offset), a.repeat !== void 0 && A.repeat.fromArray(a.repeat), a.center !== void 0 && A.center.fromArray(a.center), a.rotation !== void 0 && (A.rotation = a.rotation), a.wrap !== void 0 && (A.wrapS = r(a.wrap[0], nit), A.wrapT = r(a.wrap[1], nit)), a.format !== void 0 && (A.format = a.format), a.internalFormat !== void 0 && (A.internalFormat = a.internalFormat), a.type !== void 0 && (A.type = a.type), a.colorSpace !== void 0 && (A.colorSpace = a.colorSpace), a.encoding !== void 0 && (A.encoding = a.encoding), a.minFilter !== void 0 && (A.minFilter = r(a.minFilter, rit)), a.magFilter !== void 0 && (A.magFilter = r(a.magFilter, rit)), a.anisotropy !== void 0 && (A.anisotropy = a.anisotropy), a.flipY !== void 0 && (A.flipY = a.flipY), a.generateMipmaps !== void 0 && (A.generateMipmaps = a.generateMipmaps), a.premultiplyAlpha !== void 0 && (A.premultiplyAlpha = a.premultiplyAlpha), a.unpackAlignment !== void 0 && (A.unpackAlignment = a.unpackAlignment), a.compareFunction !== void 0 && (A.compareFunction = a.compareFunction), a.userData !== void 0 && (A.userData = a.userData), i[a.uuid] = A;
237748
+ Array.isArray(c) ? (A = new UH(), c.length === 6 && (A.needsUpdate = !0)) : (c && c.data ? A = new pD() : A = new Fl(), c && (A.needsUpdate = !0)), A.source = l, A.uuid = a.uuid, a.name !== void 0 && (A.name = a.name), a.mapping !== void 0 && (A.mapping = r(a.mapping, txi)), a.channel !== void 0 && (A.channel = a.channel), a.offset !== void 0 && A.offset.fromArray(a.offset), a.repeat !== void 0 && A.repeat.fromArray(a.repeat), a.center !== void 0 && A.center.fromArray(a.center), a.rotation !== void 0 && (A.rotation = a.rotation), a.wrap !== void 0 && (A.wrapS = r(a.wrap[0], nit), A.wrapT = r(a.wrap[1], nit)), a.format !== void 0 && (A.format = a.format), a.internalFormat !== void 0 && (A.internalFormat = a.internalFormat), a.type !== void 0 && (A.type = a.type), a.colorSpace !== void 0 && (A.colorSpace = a.colorSpace), a.encoding !== void 0 && (A.encoding = a.encoding), a.minFilter !== void 0 && (A.minFilter = r(a.minFilter, rit)), a.magFilter !== void 0 && (A.magFilter = r(a.magFilter, rit)), a.anisotropy !== void 0 && (A.anisotropy = a.anisotropy), a.flipY !== void 0 && (A.flipY = a.flipY), a.generateMipmaps !== void 0 && (A.generateMipmaps = a.generateMipmaps), a.premultiplyAlpha !== void 0 && (A.premultiplyAlpha = a.premultiplyAlpha), a.unpackAlignment !== void 0 && (A.unpackAlignment = a.unpackAlignment), a.compareFunction !== void 0 && (A.compareFunction = a.compareFunction), a.userData !== void 0 && (A.userData = a.userData), i[a.uuid] = A;
237749
237749
  }
237750
237750
  return i;
237751
237751
  }
@@ -237884,7 +237884,7 @@ const txi = {
237884
237884
  ClampToEdgeWrapping: fu,
237885
237885
  MirroredRepeatWrapping: aN
237886
237886
  }, rit = {
237887
- NearestFilter: Kl,
237887
+ NearestFilter: Xl,
237888
237888
  NearestMipmapNearestFilter: e5,
237889
237889
  NearestMipmapLinearFilter: dD,
237890
237890
  LinearFilter: xl,
@@ -239363,7 +239363,7 @@ class xxi {
239363
239363
  return this.setFromCartesianCoords(e.x, e.y, e.z);
239364
239364
  }
239365
239365
  setFromCartesianCoords(e, n, r) {
239366
- return this.radius = Math.sqrt(e * e + n * n + r * r), this.radius === 0 ? (this.theta = 0, this.phi = 0) : (this.theta = Math.atan2(e, r), this.phi = Math.acos(Xl(n / this.radius, -1, 1))), this;
239366
+ return this.radius = Math.sqrt(e * e + n * n + r * r), this.radius === 0 ? (this.theta = 0, this.phi = 0) : (this.theta = Math.atan2(e, r), this.phi = Math.acos(Zl(n / this.radius, -1, 1))), this;
239367
239367
  }
239368
239368
  clone() {
239369
239369
  return new this.constructor().copy(this);
@@ -239498,7 +239498,7 @@ class Rxi {
239498
239498
  uit.subVectors(e, this.start), oV.subVectors(this.end, this.start);
239499
239499
  const r = oV.dot(oV);
239500
239500
  let o = oV.dot(uit) / r;
239501
- return n && (o = Xl(o, 0, 1)), o;
239501
+ return n && (o = Zl(o, 0, 1)), o;
239502
239502
  }
239503
239503
  closestPointToPoint(e, n, r) {
239504
239504
  const i = this.closestPointToPointParameter(e, n);
@@ -239723,7 +239723,7 @@ class kxi extends zo {
239723
239723
  this.light.updateWorldMatrix(!0, !1), this.light.target.updateWorldMatrix(!0, !1), git.setFromMatrixPosition(this.light.matrixWorld), aV.setFromMatrixPosition(this.light.target.matrixWorld), pit.subVectors(aV, git), this.lightPlane.lookAt(aV), this.color !== void 0 ? (this.lightPlane.material.color.set(this.color), this.targetLine.material.color.set(this.color)) : (this.lightPlane.material.color.copy(this.light.color), this.targetLine.material.color.copy(this.light.color)), this.targetLine.lookAt(aV), this.targetLine.scale.z = pit.length();
239724
239724
  }
239725
239725
  }
239726
- const lV = /* @__PURE__ */ new rt(), jl = /* @__PURE__ */ new Qse();
239726
+ const lV = /* @__PURE__ */ new rt(), Vl = /* @__PURE__ */ new Qse();
239727
239727
  class Gxi extends gI {
239728
239728
  constructor(e) {
239729
239729
  const n = new Zi(), r = new Qf({ color: 16777215, vertexColors: !0, toneMapped: !1 }), i = [], o = [], s = {};
@@ -239744,7 +239744,7 @@ class Gxi extends gI {
239744
239744
  }
239745
239745
  update() {
239746
239746
  const e = this.geometry, n = this.pointMap, r = 1, i = 1;
239747
- jl.projectionMatrixInverse.copy(this.camera.projectionMatrixInverse), dc("c", n, e, jl, 0, 0, -1), dc("t", n, e, jl, 0, 0, 1), dc("n1", n, e, jl, -r, -i, -1), dc("n2", n, e, jl, r, -i, -1), dc("n3", n, e, jl, -r, i, -1), dc("n4", n, e, jl, r, i, -1), dc("f1", n, e, jl, -r, -i, 1), dc("f2", n, e, jl, r, -i, 1), dc("f3", n, e, jl, -r, i, 1), dc("f4", n, e, jl, r, i, 1), dc("u1", n, e, jl, r * 0.7, i * 1.1, -1), dc("u2", n, e, jl, -r * 0.7, i * 1.1, -1), dc("u3", n, e, jl, 0, i * 2, -1), dc("cf1", n, e, jl, -r, 0, 1), dc("cf2", n, e, jl, r, 0, 1), dc("cf3", n, e, jl, 0, -i, 1), dc("cf4", n, e, jl, 0, i, 1), dc("cn1", n, e, jl, -r, 0, -1), dc("cn2", n, e, jl, r, 0, -1), dc("cn3", n, e, jl, 0, -i, -1), dc("cn4", n, e, jl, 0, i, -1), e.getAttribute("position").needsUpdate = !0;
239747
+ Vl.projectionMatrixInverse.copy(this.camera.projectionMatrixInverse), dc("c", n, e, Vl, 0, 0, -1), dc("t", n, e, Vl, 0, 0, 1), dc("n1", n, e, Vl, -r, -i, -1), dc("n2", n, e, Vl, r, -i, -1), dc("n3", n, e, Vl, -r, i, -1), dc("n4", n, e, Vl, r, i, -1), dc("f1", n, e, Vl, -r, -i, 1), dc("f2", n, e, Vl, r, -i, 1), dc("f3", n, e, Vl, -r, i, 1), dc("f4", n, e, Vl, r, i, 1), dc("u1", n, e, Vl, r * 0.7, i * 1.1, -1), dc("u2", n, e, Vl, -r * 0.7, i * 1.1, -1), dc("u3", n, e, Vl, 0, i * 2, -1), dc("cf1", n, e, Vl, -r, 0, 1), dc("cf2", n, e, Vl, r, 0, 1), dc("cf3", n, e, Vl, 0, -i, 1), dc("cf4", n, e, Vl, 0, i, 1), dc("cn1", n, e, Vl, -r, 0, -1), dc("cn2", n, e, Vl, r, 0, -1), dc("cn3", n, e, Vl, 0, -i, -1), dc("cn4", n, e, Vl, 0, i, -1), e.getAttribute("position").needsUpdate = !0;
239748
239748
  }
239749
239749
  dispose() {
239750
239750
  this.geometry.dispose(), this.material.dispose();
@@ -240210,7 +240210,7 @@ const zOi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
240210
240210
  MixOperation: P3t,
240211
240211
  MultiplyBlending: Kve,
240212
240212
  MultiplyOperation: kH,
240213
- NearestFilter: Kl,
240213
+ NearestFilter: Xl,
240214
240214
  NearestMipMapLinearFilter: hvi,
240215
240215
  NearestMipMapNearestFilter: fvi,
240216
240216
  NearestMipmapLinearFilter: dD,
@@ -240346,7 +240346,7 @@ const zOi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
240346
240346
  TOUCH: lvi,
240347
240347
  TangentSpaceNormalMap: b_,
240348
240348
  TetrahedronGeometry: qse,
240349
- Texture: Ol,
240349
+ Texture: Fl,
240350
240350
  TextureLoader: a4t,
240351
240351
  TorusGeometry: Yse,
240352
240352
  TorusKnotGeometry: Wse,
@@ -241080,7 +241080,7 @@ const rp = {
241080
241080
  5125: Uint32Array,
241081
241081
  5126: Float32Array
241082
241082
  }, Cit = {
241083
- 9728: Kl,
241083
+ 9728: Xl,
241084
241084
  9729: xl,
241085
241085
  9984: e5,
241086
241086
  9985: Bse,
@@ -241514,7 +241514,7 @@ class B2i {
241514
241514
  return new Promise(function(f, h) {
241515
241515
  let d = f;
241516
241516
  n.isImageBitmapLoader === !0 && (d = function(g) {
241517
- const m = new Ol(g);
241517
+ const m = new Fl(g);
241518
241518
  m.needsUpdate = !0, f(m);
241519
241519
  }), n.load(gN.resolveURL(u, o.path), d, void 0, h);
241520
241520
  });
@@ -241840,7 +241840,7 @@ class B2i {
241840
241840
  const c = (A) => {
241841
241841
  const u = /* @__PURE__ */ new Map();
241842
241842
  for (const [f, h] of i.associations)
241843
- (f instanceof aA || f instanceof Ol) && u.set(f, h);
241843
+ (f instanceof aA || f instanceof Fl) && u.set(f, h);
241844
241844
  return A.traverse((f) => {
241845
241845
  const h = i.associations.get(f);
241846
241846
  h != null && u.set(f, h);
@@ -251502,7 +251502,7 @@ export {
251502
251502
  Cf as Q,
251503
251503
  wxi as R,
251504
251504
  Lkt as S,
251505
- Ol as T,
251505
+ Fl as T,
251506
251506
  tv as U,
251507
251507
  dn as V,
251508
251508
  Mkt as W,
@@ -251557,7 +251557,7 @@ export {
251557
251557
  o2 as af,
251558
251558
  dN as ag,
251559
251559
  Lse as ah,
251560
- Kl as ai,
251560
+ Xl as ai,
251561
251561
  e5 as aj,
251562
251562
  Bse as ak,
251563
251563
  dD as al,