@nika-js/onlymap 0.6.17 → 0.6.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/{LercDecode.es-DjPA9zLm.js → LercDecode.es-Butn4LVX.js} +1 -1
  3. package/dist/{basemap-DwN5jPCj.js → basemap-qZH_aNYE.js} +803 -784
  4. package/dist/basemap.d.ts +9 -1
  5. package/dist/declarative-filter.d.ts +1 -0
  6. package/dist/effects.d.ts +14 -2
  7. package/dist/elements/om-map.d.ts +15 -0
  8. package/dist/elements/om-story.d.ts +3 -1
  9. package/dist/{geoparquet-DG3VtNgs.js → geoparquet-DWQCUg6N.js} +1 -1
  10. package/dist/ifc-Dc-TdSJr.js +2 -3
  11. package/dist/{index-DceORL-v.js → index-4St6BumW.js} +2 -2
  12. package/dist/{index-Yl9rVUWh.js → index-BTM6Mblt.js} +1 -1
  13. package/dist/{index-DlXIfdhF.js → index-CNlULiHm.js} +1 -1
  14. package/dist/{index-CX4qxgVT.js → index-CagRqDDL.js} +11538 -11300
  15. package/dist/{index-BM-txQRw.js → index-CeeQ7CH4.js} +1 -1
  16. package/dist/{lerc-BD1Any2Z.js → lerc-cWjnr__g.js} +2 -2
  17. package/dist/onlymap.standalone.js +21886 -21630
  18. package/dist/onlymapjs.js +1 -1
  19. package/dist/paced-flyby.d.ts +18 -0
  20. package/dist/programmatic.d.ts +9 -0
  21. package/dist/{raster-Cv5w_kS7.js → raster-BxxtJxxs.js} +2 -2
  22. package/dist/{raster-pipeline-Nl0EF5em.js → raster-pipeline-DlppdBYw.js} +1 -1
  23. package/dist/runtime-core.d.ts +17 -0
  24. package/dist/surface-anchor.d.ts +17 -0
  25. package/dist/version.d.ts +1 -1
  26. package/dist/{zarr-aau6eARi.js → zarr-BtxMPczZ.js} +2 -2
  27. package/docs/design/trace-link-failure.md +20 -0
  28. package/llms.txt +2 -0
  29. package/onlymapjs.html-data.json +31 -0
  30. package/package.json +1 -1
  31. package/skills/onlymapjs/SKILL.md +1 -1
  32. package/skills/onlymapjs/references/syntax.md +4 -2
@@ -1,4 +1,4 @@
1
- import { C as ny, L as sy, M as oy, m as ay, c as ka, a as Sd, z as oc, G as sm, V as ly, W as cy, b as uy, g as hy, d as Vu, f as Ed, e as dy, l as py, u as fy, D as Qf, h as my } from "./index-CX4qxgVT.js";
1
+ import { C as ny, L as sy, M as oy, m as ay, c as ka, a as Sd, z as oc, G as sm, V as ly, W as cy, b as uy, g as hy, d as Vu, f as Ed, e as dy, l as py, u as fy, D as Qf, h as my } from "./index-CagRqDDL.js";
2
2
  const Cd = Math.PI / 180, gy = 180 / Math.PI;
3
3
  function em(Pe, Q = 0) {
4
4
  const me = Math.min(180, Pe) * Cd;
@@ -10,22 +10,22 @@ function tm(Pe, Q = 0) {
10
10
  }
11
11
  class _y extends oy {
12
12
  constructor(Q) {
13
- const { startPanPos: me, ...Ie } = Q;
14
- Ie.normalize = !1, super(Ie), me !== void 0 && (this._state.startPanPos = me);
13
+ const { startPanPos: me, ...Me } = Q;
14
+ Me.normalize = !1, super(Me), me !== void 0 && (this._state.startPanPos = me);
15
15
  }
16
16
  panStart({ pos: Q }) {
17
- const { latitude: me, longitude: Ie, zoom: Te } = this.getViewportProps();
17
+ const { latitude: me, longitude: Me, zoom: Te } = this.getViewportProps();
18
18
  return this._getUpdatedState({
19
- startPanLngLat: [Ie, me],
19
+ startPanLngLat: [Me, me],
20
20
  startPanPos: Q,
21
21
  startZoom: Te
22
22
  });
23
23
  }
24
24
  pan({ pos: Q, startPos: me }) {
25
- const Ie = this.getState(), Te = Ie.startPanLngLat || this._unproject(me);
25
+ const Me = this.getState(), Te = Me.startPanLngLat || this._unproject(me);
26
26
  if (!Te)
27
27
  return this;
28
- const Le = Ie.startZoom ?? this.getViewportProps().zoom, R = Ie.startPanPos || me, h = [Te[0], Te[1], Le], ct = this.makeViewport(this.getViewportProps()).panByPosition(h, Q, R);
28
+ const Le = Me.startZoom ?? this.getViewportProps().zoom, R = Me.startPanPos || me, h = [Te[0], Te[1], Le], ct = this.makeViewport(this.getViewportProps()).panByPosition(h, Q, R);
29
29
  return this._getUpdatedState(ct);
30
30
  }
31
31
  panEnd() {
@@ -36,13 +36,13 @@ class _y extends oy {
36
36
  });
37
37
  }
38
38
  zoom({ scale: Q }) {
39
- const Ie = (this.getState().startZoom || this.getViewportProps().zoom) + Math.log2(Q);
40
- return this._getUpdatedState({ zoom: Ie });
39
+ const Me = (this.getState().startZoom || this.getViewportProps().zoom) + Math.log2(Q);
40
+ return this._getUpdatedState({ zoom: Me });
41
41
  }
42
42
  applyConstraints(Q) {
43
- const { longitude: me, latitude: Ie, maxBounds: Te } = Q;
44
- if (Q.zoom = this._constrainZoom(Q.zoom, Q), (me < -180 || me > 180) && (Q.longitude = ay(me + 180, 360) - 180), Q.latitude = ka(Ie, -Sd, Sd), Te && (Q.longitude = ka(Q.longitude, Te[0][0], Te[1][0]), Q.latitude = ka(Q.latitude, Te[0][1], Te[1][1])), Te) {
45
- const Le = Q.zoom - oc(Ie), R = Te[1][0] - Te[0][0], h = Te[1][1] - Te[0][1];
43
+ const { longitude: me, latitude: Me, maxBounds: Te } = Q;
44
+ if (Q.zoom = this._constrainZoom(Q.zoom, Q), (me < -180 || me > 180) && (Q.longitude = ay(me + 180, 360) - 180), Q.latitude = ka(Me, -Sd, Sd), Te && (Q.longitude = ka(Q.longitude, Te[0][0], Te[1][0]), Q.latitude = ka(Q.latitude, Te[0][1], Te[1][1])), Te) {
45
+ const Le = Q.zoom - oc(Me), R = Te[1][0] - Te[0][0], h = Te[1][1] - Te[0][1];
46
46
  if (h > 0 && h < Sd * 2) {
47
47
  const de = Math.min(tm(Q.height, Le), h) / 2;
48
48
  Q.latitude = ka(Q.latitude, Te[0][1] + de, Te[1][1] - de);
@@ -52,13 +52,13 @@ class _y extends oy {
52
52
  Q.longitude = ka(Q.longitude, Te[0][0] + de, Te[1][0] - de);
53
53
  }
54
54
  }
55
- return Q.latitude !== Ie && (Q.zoom += oc(Q.latitude) - oc(Ie)), Q;
55
+ return Q.latitude !== Me && (Q.zoom += oc(Q.latitude) - oc(Me)), Q;
56
56
  }
57
57
  _constrainZoom(Q, me) {
58
58
  me || (me = this.getViewportProps());
59
- const { latitude: Ie, maxZoom: Te, maxBounds: Le } = me;
59
+ const { latitude: Me, maxZoom: Te, maxBounds: Le } = me;
60
60
  let { minZoom: R } = me;
61
- const h = oc(0), de = oc(Ie) - h;
61
+ const h = oc(0), de = oc(Me) - h;
62
62
  if (Le !== null && me.width > 0 && me.height > 0) {
63
63
  const Bt = Le[0][1], fi = Le[1][1], Qi = Math.sign(Bt) === Math.sign(fi) ? Math.min(Math.abs(Bt), Math.abs(fi)) : 0, At = em(Le[1][0] - Le[0][0]) * Math.cos(Qi * Cd), si = em(Le[1][1] - Le[0][1]);
64
64
  At > 0 && (R = Math.max(R, Math.log2(me.width / At) + h)), si > 0 && (R = Math.max(R, Math.log2(me.height / si) + h)), R > Te && (R = Te);
@@ -106,14 +106,14 @@ var ju = { exports: {} };
106
106
  var xy = ju.exports, im;
107
107
  function by() {
108
108
  return im || (im = 1, (function(Pe, Q) {
109
- (function(me, Ie) {
110
- Pe.exports = Ie();
109
+ (function(me, Me) {
110
+ Pe.exports = Me();
111
111
  })(xy, (function() {
112
- var me = {}, Ie = {};
112
+ var me = {}, Me = {};
113
113
  function Te(R, h, de) {
114
- if (Ie[R] = de, R === "index") {
115
- var ct = "var sharedModule = {}; (" + Ie.shared + ")(sharedModule); (" + Ie.worker + ")(sharedModule);", Bt = {};
116
- return Ie.shared(Bt), Ie.index(me, Bt), typeof window < "u" && me.setWorkerUrl(window.URL.createObjectURL(new Blob([ct], { type: "text/javascript" }))), me;
114
+ if (Me[R] = de, R === "index") {
115
+ var ct = "var sharedModule = {}; (" + Me.shared + ")(sharedModule); (" + Me.worker + ")(sharedModule);", Bt = {};
116
+ return Me.shared(Bt), Me.index(me, Bt), typeof window < "u" && me.setWorkerUrl(window.URL.createObjectURL(new Blob([ct], { type: "text/javascript" }))), me;
117
117
  }
118
118
  }
119
119
  Te("shared", ["exports"], (function(R) {
@@ -410,7 +410,7 @@ function by() {
410
410
  function Qt(r) {
411
411
  return typeof WorkerGlobalScope < "u" && r !== void 0 && r instanceof WorkerGlobalScope;
412
412
  }
413
- let Mi = null;
413
+ let Ii = null;
414
414
  function tn(r) {
415
415
  return typeof ImageBitmap < "u" && r instanceof ImageBitmap;
416
416
  }
@@ -424,8 +424,8 @@ function by() {
424
424
  if (!u || !u.startsWith("BGR") && !u.startsWith("RGB")) throw new Error(`Unrecognized format ${u}`);
425
425
  const p = u.startsWith("BGR"), g = new Uint8ClampedArray(s * o * 4);
426
426
  if (yield l.copyTo(g, (function(m, v, _, T, b) {
427
- const M = 4 * Math.max(-v, 0), I = (Math.max(0, _) - _) * T * 4 + M, A = 4 * T, D = Math.max(0, v), L = Math.max(0, _);
428
- return { rect: { x: D, y: L, width: Math.min(m.width, v + T) - D, height: Math.min(m.height, _ + b) - L }, layout: [{ offset: I, stride: A }] };
427
+ const I = 4 * Math.max(-v, 0), M = (Math.max(0, _) - _) * T * 4 + I, A = 4 * T, D = Math.max(0, v), L = Math.max(0, _);
428
+ return { rect: { x: D, y: L, width: Math.min(m.width, v + T) - D, height: Math.min(m.height, _ + b) - L }, layout: [{ offset: M, stride: A }] };
429
429
  })(r, e, i, s, o)), p) for (let m = 0; m < g.length; m += 4) {
430
430
  const v = g[m];
431
431
  g[m] = g[m + 2], g[m + 2] = v;
@@ -619,14 +619,14 @@ function by() {
619
619
  }
620
620
  return r === e;
621
621
  }
622
- function Ii(r, e) {
622
+ function Mi(r, e) {
623
623
  r.push(e);
624
624
  }
625
625
  function on(r, e, i) {
626
- Ii(i, { command: "addSource", args: [r, e[r]] });
626
+ Mi(i, { command: "addSource", args: [r, e[r]] });
627
627
  }
628
628
  function uc(r, e, i) {
629
- Ii(e, { command: "removeSource", args: [r] }), i[r] = !0;
629
+ Mi(e, { command: "removeSource", args: [r] }), i[r] = !0;
630
630
  }
631
631
  function hc(r, e, i, s) {
632
632
  uc(r, i, s), on(r, e, i);
@@ -679,7 +679,7 @@ function by() {
679
679
  return !!this.bindings[e] || !!this.parent && this.parent.has(e);
680
680
  }
681
681
  }
682
- const Br = { kind: "null" }, Me = { kind: "number" }, Ne = { kind: "string" }, qe = { kind: "boolean" }, Ri = { kind: "color" }, yo = { kind: "projectionDefinition" }, yr = { kind: "object" }, Ge = { kind: "value" }, Ts = { kind: "collator" }, Ss = { kind: "formatted" }, vo = { kind: "padding" }, Vn = { kind: "colorArray" }, Ps = { kind: "numberArray" }, jn = { kind: "resolvedImage" }, Ms = { kind: "variableAnchorOffsetCollection" };
682
+ const Br = { kind: "null" }, Ie = { kind: "number" }, Ne = { kind: "string" }, qe = { kind: "boolean" }, Ri = { kind: "color" }, yo = { kind: "projectionDefinition" }, yr = { kind: "object" }, Ge = { kind: "value" }, Ts = { kind: "collator" }, Ss = { kind: "formatted" }, vo = { kind: "padding" }, Vn = { kind: "colorArray" }, Ps = { kind: "numberArray" }, jn = { kind: "resolvedImage" }, Is = { kind: "variableAnchorOffsetCollection" };
683
683
  function ti(r, e) {
684
684
  return { kind: "array", itemType: r, N: e };
685
685
  }
@@ -690,7 +690,7 @@ function by() {
690
690
  }
691
691
  return r.kind;
692
692
  }
693
- const xo = [Br, Me, Ne, qe, Ri, yo, Ss, yr, ti(Ge), vo, Ps, Vn, jn, Ms];
693
+ const xo = [Br, Ie, Ne, qe, Ri, yo, Ss, yr, ti(Ge), vo, Ps, Vn, jn, Is];
694
694
  function Nn(r, e) {
695
695
  if (e.kind === "error") return null;
696
696
  if (r.kind === "array") {
@@ -703,7 +703,7 @@ function by() {
703
703
  }
704
704
  return `Expected ${at(r)} but found ${at(e)} instead.`;
705
705
  }
706
- function Is(r, e) {
706
+ function Ms(r, e) {
707
707
  return e.some(((i) => i.kind === r.kind));
708
708
  }
709
709
  function ln(r, e) {
@@ -712,7 +712,7 @@ function by() {
712
712
  function ir(r, e) {
713
713
  return r.kind === "array" && e.kind === "array" ? r.itemType.kind === e.itemType.kind && typeof r.N == "number" : r.kind === e.kind;
714
714
  }
715
- const pc = 0.96422, cn = 0.82521, bo = 4 / 29, Mt = 6 / 29, fc = 3 * Mt * Mt, mc = Mt * Mt * Mt, Es = Math.PI / 180, gc = 180 / Math.PI;
715
+ const pc = 0.96422, cn = 0.82521, bo = 4 / 29, It = 6 / 29, fc = 3 * It * It, mc = It * It * It, Es = Math.PI / 180, gc = 180 / Math.PI;
716
716
  function _c(r) {
717
717
  return (r %= 360) < 0 && (r += 360), r;
718
718
  }
@@ -737,7 +737,7 @@ function by() {
737
737
  return (r = r <= 304e-5 ? 12.92 * r : 1.055 * Math.pow(r, 1 / 2.4) - 0.055) < 0 ? 0 : r > 1 ? 1 : r;
738
738
  }
739
739
  function Wa(r) {
740
- return r > Mt ? r * r * r : fc * (r - bo);
740
+ return r > It ? r * r * r : fc * (r - bo);
741
741
  }
742
742
  const Gu = Object.hasOwn || function(r, e) {
743
743
  return Object.prototype.hasOwnProperty.call(r, e);
@@ -786,11 +786,11 @@ function by() {
786
786
  if (s.startsWith("rgb")) {
787
787
  const u = s.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);
788
788
  if (u) {
789
- const [p, g, m, v, _, T, b, M, I, A, D, L] = u, k = [v || " ", b || " ", A].join("");
789
+ const [p, g, m, v, _, T, b, I, M, A, D, L] = u, k = [v || " ", b || " ", A].join("");
790
790
  if (k === " " || k === " /" || k === ",," || k === ",,,") {
791
- const F = [m, T, I].join(""), O = F === "%%%" ? 100 : F === "" ? 255 : 0;
791
+ const F = [m, T, M].join(""), O = F === "%%%" ? 100 : F === "" ? 255 : 0;
792
792
  if (O) {
793
- const j = [Un(+g / O, 0, 1), Un(+_ / O, 0, 1), Un(+M / O, 0, 1), D ? vc(+D, L) : 1];
793
+ const j = [Un(+g / O, 0, 1), Un(+_ / O, 0, 1), Un(+I / O, 0, 1), D ? vc(+D, L) : 1];
794
794
  if (Ha(j)) return j;
795
795
  }
796
796
  }
@@ -799,9 +799,9 @@ function by() {
799
799
  }
800
800
  const l = s.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);
801
801
  if (l) {
802
- const [u, p, g, m, v, _, T, b, M] = l, I = [g || " ", v || " ", T].join("");
803
- if (I === " " || I === " /" || I === ",," || I === ",,,") {
804
- const A = [+p, Un(+m, 0, 100), Un(+_, 0, 100), b ? vc(+b, M) : 1];
802
+ const [u, p, g, m, v, _, T, b, I] = l, M = [g || " ", v || " ", T].join("");
803
+ if (M === " " || M === " /" || M === ",," || M === ",,,") {
804
+ const A = [+p, Un(+m, 0, 100), Un(+_, 0, 100), b ? vc(+b, I) : 1];
805
805
  if (Ha(A)) return (function([D, L, k, F]) {
806
806
  function O(j) {
807
807
  const Y = (j + D / 30) % 12, J = L * Math.min(k, 1 - k);
@@ -842,16 +842,16 @@ function by() {
842
842
  }
843
843
  case "hcl": {
844
844
  const [l, u, p, g] = e.hcl, [m, v, _, T] = i.hcl;
845
- let b, M;
846
- if (isNaN(l) || isNaN(m)) isNaN(l) ? isNaN(m) ? b = NaN : (b = m, p !== 1 && p !== 0 || (M = v)) : (b = l, _ !== 1 && _ !== 0 || (M = u));
845
+ let b, I;
846
+ if (isNaN(l) || isNaN(m)) isNaN(l) ? isNaN(m) ? b = NaN : (b = m, p !== 1 && p !== 0 || (I = v)) : (b = l, _ !== 1 && _ !== 0 || (I = u));
847
847
  else {
848
848
  let k = m - l;
849
849
  m > l && k > 180 ? k -= 360 : m < l && l - m > 180 && (k += 360), b = l + s * k;
850
850
  }
851
- const [I, A, D, L] = (function([k, F, O, j]) {
851
+ const [M, A, D, L] = (function([k, F, O, j]) {
852
852
  return k = isNaN(k) ? 0 : k * Es, $a([O, Math.cos(k) * F, Math.sin(k) * F, j]);
853
- })([b, M ?? Or(u, v, s), Or(p, _, s), Or(g, T, s)]);
854
- return new $e(I, A, D, L, !1);
853
+ })([b, I ?? Or(u, v, s), Or(p, _, s), Or(g, T, s)]);
854
+ return new $e(M, A, D, L, !1);
855
855
  }
856
856
  case "lab": {
857
857
  const [l, u, p, g] = $a(Gn(e.lab, i.lab, s));
@@ -1053,7 +1053,7 @@ function by() {
1053
1053
  if (r === null) return Br;
1054
1054
  if (typeof r == "string") return Ne;
1055
1055
  if (typeof r == "boolean") return qe;
1056
- if (typeof r == "number") return Me;
1056
+ if (typeof r == "number") return Ie;
1057
1057
  if (r instanceof $e) return Ri;
1058
1058
  if (r instanceof yi) return yo;
1059
1059
  if (r instanceof Xa) return Ts;
@@ -1061,7 +1061,7 @@ function by() {
1061
1061
  if (r instanceof oi) return vo;
1062
1062
  if (r instanceof vt) return Ps;
1063
1063
  if (r instanceof je) return Vn;
1064
- if (r instanceof _i) return Ms;
1064
+ if (r instanceof _i) return Is;
1065
1065
  if (r instanceof Li) return jn;
1066
1066
  if (Array.isArray(r)) {
1067
1067
  const e = r.length;
@@ -1104,7 +1104,7 @@ function by() {
1104
1104
  return !0;
1105
1105
  }
1106
1106
  }
1107
- const So = { string: Ne, number: Me, boolean: qe, object: yr };
1107
+ const So = { string: Ne, number: Ie, boolean: qe, object: yr };
1108
1108
  class Ci {
1109
1109
  constructor(e, i) {
1110
1110
  this.type = e, this.args = i;
@@ -1152,7 +1152,7 @@ function by() {
1152
1152
  return this.args.every(((e) => e.outputDefined()));
1153
1153
  }
1154
1154
  }
1155
- const hn = { "to-boolean": qe, "to-color": Ri, "to-number": Me, "to-string": Ne };
1155
+ const hn = { "to-boolean": qe, "to-color": Ri, "to-number": Ie, "to-string": Ne };
1156
1156
  class vr {
1157
1157
  constructor(e, i) {
1158
1158
  this.type = e, this.args = i;
@@ -1378,7 +1378,7 @@ function by() {
1378
1378
  }
1379
1379
  static parse(e, i) {
1380
1380
  if (e.length !== 3) return i.error(`Expected 2 arguments, but found ${e.length - 1} instead.`);
1381
- const s = i.parse(e[1], 1, Me), o = i.parse(e[2], 2, ti(i.expectedType || Ge));
1381
+ const s = i.parse(e[1], 1, Ie), o = i.parse(e[2], 2, ti(i.expectedType || Ge));
1382
1382
  return s && o ? new Je(o.type.itemType, s, o) : null;
1383
1383
  }
1384
1384
  evaluate(e) {
@@ -1402,7 +1402,7 @@ function by() {
1402
1402
  static parse(e, i) {
1403
1403
  if (e.length !== 3) return i.error(`Expected 2 arguments, but found ${e.length - 1} instead.`);
1404
1404
  const s = i.parse(e[1], 1, Ge), o = i.parse(e[2], 2, Ge);
1405
- return s && o ? Is(s.type, [qe, Ne, Me, Br, Ge]) ? new Ze(s, o) : i.error(`Expected first argument to be of type boolean, string, number or null, but found ${at(s.type)} instead`) : null;
1405
+ return s && o ? Ms(s.type, [qe, Ne, Ie, Br, Ge]) ? new Ze(s, o) : i.error(`Expected first argument to be of type boolean, string, number or null, but found ${at(s.type)} instead`) : null;
1406
1406
  }
1407
1407
  evaluate(e) {
1408
1408
  const i = this.needle.evaluate(e), s = this.haystack.evaluate(e);
@@ -1420,15 +1420,15 @@ function by() {
1420
1420
  }
1421
1421
  class qn {
1422
1422
  constructor(e, i, s) {
1423
- this.type = Me, this.needle = e, this.haystack = i, this.fromIndex = s;
1423
+ this.type = Ie, this.needle = e, this.haystack = i, this.fromIndex = s;
1424
1424
  }
1425
1425
  static parse(e, i) {
1426
1426
  if (e.length <= 2 || e.length >= 5) return i.error(`Expected 2 or 3 arguments, but found ${e.length - 1} instead.`);
1427
1427
  const s = i.parse(e[1], 1, Ge), o = i.parse(e[2], 2, Ge);
1428
1428
  if (!s || !o) return null;
1429
- if (!Is(s.type, [qe, Ne, Me, Br, Ge])) return i.error(`Expected first argument to be of type boolean, string, number or null, but found ${at(s.type)} instead`);
1429
+ if (!Ms(s.type, [qe, Ne, Ie, Br, Ge])) return i.error(`Expected first argument to be of type boolean, string, number or null, but found ${at(s.type)} instead`);
1430
1430
  if (e.length === 4) {
1431
- const l = i.parse(e[3], 3, Me);
1431
+ const l = i.parse(e[3], 3, Ie);
1432
1432
  return l ? new qn(s, o, l) : null;
1433
1433
  }
1434
1434
  return new qn(s, o);
@@ -1467,15 +1467,15 @@ function by() {
1467
1467
  Array.isArray(v) || (v = [v]);
1468
1468
  const T = i.concat(m);
1469
1469
  if (v.length === 0) return T.error("Expected at least one branch label.");
1470
- for (const M of v) {
1471
- if (typeof M != "number" && typeof M != "string") return T.error("Branch labels must be numbers or strings.");
1472
- if (typeof M == "number" && Math.abs(M) > Number.MAX_SAFE_INTEGER) return T.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);
1473
- if (typeof M == "number" && Math.floor(M) !== M) return T.error("Numeric branch labels must be integer values.");
1470
+ for (const I of v) {
1471
+ if (typeof I != "number" && typeof I != "string") return T.error("Branch labels must be numbers or strings.");
1472
+ if (typeof I == "number" && Math.abs(I) > Number.MAX_SAFE_INTEGER) return T.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);
1473
+ if (typeof I == "number" && Math.floor(I) !== I) return T.error("Numeric branch labels must be integer values.");
1474
1474
  if (s) {
1475
- if (T.checkSubtype(s, Dt(M))) return null;
1476
- } else s = Dt(M);
1477
- if (l[String(M)] !== void 0) return T.error("Branch labels must be unique.");
1478
- l[String(M)] = u.length;
1475
+ if (T.checkSubtype(s, Dt(I))) return null;
1476
+ } else s = Dt(I);
1477
+ if (l[String(I)] !== void 0) return T.error("Branch labels must be unique.");
1478
+ l[String(I)] = u.length;
1479
1479
  }
1480
1480
  const b = i.parse(_, m, o);
1481
1481
  if (!b) return null;
@@ -1537,11 +1537,11 @@ function by() {
1537
1537
  }
1538
1538
  static parse(e, i) {
1539
1539
  if (e.length <= 2 || e.length >= 5) return i.error(`Expected 2 or 3 arguments, but found ${e.length - 1} instead.`);
1540
- const s = i.parse(e[1], 1, Ge), o = i.parse(e[2], 2, Me);
1540
+ const s = i.parse(e[1], 1, Ge), o = i.parse(e[2], 2, Ie);
1541
1541
  if (!s || !o) return null;
1542
- if (!Is(s.type, [ti(Ge), Ne, Ge])) return i.error(`Expected first argument to be of type array or string, but found ${at(s.type)} instead`);
1542
+ if (!Ms(s.type, [ti(Ge), Ne, Ge])) return i.error(`Expected first argument to be of type array or string, but found ${at(s.type)} instead`);
1543
1543
  if (e.length === 4) {
1544
- const l = i.parse(e[3], 3, Me);
1544
+ const l = i.parse(e[3], 3, Ie);
1545
1545
  return l ? new Wn(s.type, s, o, l) : null;
1546
1546
  }
1547
1547
  return new Wn(s.type, s, o);
@@ -1580,7 +1580,7 @@ function by() {
1580
1580
  static parse(e, i) {
1581
1581
  if (e.length - 1 < 4) return i.error(`Expected at least 4 arguments, but found only ${e.length - 1}.`);
1582
1582
  if ((e.length - 1) % 2 != 0) return i.error("Expected an even number of arguments.");
1583
- const s = i.parse(e[1], 1, Me);
1583
+ const s = i.parse(e[1], 1, Ie);
1584
1584
  if (!s) return null;
1585
1585
  const o = [];
1586
1586
  let l = null;
@@ -1675,7 +1675,7 @@ function by() {
1675
1675
  }
1676
1676
  if (e.length - 1 < 4) return i.error(`Expected at least 4 arguments, but found only ${e.length - 1}.`);
1677
1677
  if ((e.length - 1) % 2 != 0) return i.error("Expected an even number of arguments.");
1678
- if (l = i.parse(l, 2, Me), !l) return null;
1678
+ if (l = i.parse(l, 2, Ie), !l) return null;
1679
1679
  const p = [];
1680
1680
  let g = null;
1681
1681
  s !== "interpolate-hcl" && s !== "interpolate-lab" || i.expectedType == Vn ? i.expectedType && i.expectedType.kind !== "value" && (g = i.expectedType) : g = Ri;
@@ -1683,11 +1683,11 @@ function by() {
1683
1683
  const v = u[m], _ = u[m + 1], T = m + 3, b = m + 4;
1684
1684
  if (typeof v != "number") return i.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.', T);
1685
1685
  if (p.length && p[p.length - 1][0] >= v) return i.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.', T);
1686
- const M = i.parse(_, b, g);
1687
- if (!M) return null;
1688
- g = g || M.type, p.push([v, M]);
1686
+ const I = i.parse(_, b, g);
1687
+ if (!I) return null;
1688
+ g = g || I.type, p.push([v, I]);
1689
1689
  }
1690
- return ir(g, Me) || ir(g, yo) || ir(g, Ri) || ir(g, vo) || ir(g, Ps) || ir(g, Vn) || ir(g, Ms) || ir(g, ti(Me)) ? new Rt(g, s, o, l, p) : i.error(`Type ${at(g)} is not interpolatable.`);
1690
+ return ir(g, Ie) || ir(g, yo) || ir(g, Ri) || ir(g, vo) || ir(g, Ps) || ir(g, Vn) || ir(g, Is) || ir(g, ti(Ie)) ? new Rt(g, s, o, l, p) : i.error(`Type ${at(g)} is not interpolatable.`);
1691
1691
  }
1692
1692
  evaluate(e) {
1693
1693
  const i = this.labels, s = this.outputs;
@@ -1841,7 +1841,7 @@ function by() {
1841
1841
  return e > i;
1842
1842
  }), (function(r, e, i, s) {
1843
1843
  return s.compare(e, i) > 0;
1844
- })), Mo = fn("<=", (function(r, e, i) {
1844
+ })), Io = fn("<=", (function(r, e, i) {
1845
1845
  return e <= i;
1846
1846
  }), (function(r, e, i, s) {
1847
1847
  return s.compare(e, i) <= 0;
@@ -1850,7 +1850,7 @@ function by() {
1850
1850
  }), (function(r, e, i, s) {
1851
1851
  return s.compare(e, i) >= 0;
1852
1852
  }));
1853
- class Io {
1853
+ class Mo {
1854
1854
  constructor(e, i, s) {
1855
1855
  this.type = Ts, this.locale = s, this.caseSensitive = e, this.diacriticSensitive = i;
1856
1856
  }
@@ -1863,7 +1863,7 @@ function by() {
1863
1863
  const l = i.parse(s["diacritic-sensitive"] !== void 0 && s["diacritic-sensitive"], 1, qe);
1864
1864
  if (!l) return null;
1865
1865
  let u = null;
1866
- return s.locale && (u = i.parse(s.locale, 1, Ne), !u) ? null : new Io(o, l, u);
1866
+ return s.locale && (u = i.parse(s.locale, 1, Ne), !u) ? null : new Mo(o, l, u);
1867
1867
  }
1868
1868
  evaluate(e) {
1869
1869
  return new Xa(this.caseSensitive.evaluate(e), this.diacriticSensitive.evaluate(e), this.locale ? this.locale.evaluate(e) : null);
@@ -1881,7 +1881,7 @@ function by() {
1881
1881
  }
1882
1882
  static parse(e, i) {
1883
1883
  if (e.length !== 3) return i.error("Expected two arguments.");
1884
- const s = i.parse(e[1], 1, Me);
1884
+ const s = i.parse(e[1], 1, Ie);
1885
1885
  if (!s) return null;
1886
1886
  const o = e[2];
1887
1887
  if (typeof o != "object" || Array.isArray(o)) return i.error("NumberFormat options argument must be an object.");
@@ -1893,9 +1893,9 @@ function by() {
1893
1893
  if (o.unit && (p = i.parse(o.unit, 1, Ne), !p)) return null;
1894
1894
  if (u && p) return i.error("NumberFormat options `currency` and `unit` are mutually exclusive");
1895
1895
  let g = null;
1896
- if (o["min-fraction-digits"] && (g = i.parse(o["min-fraction-digits"], 1, Me), !g)) return null;
1896
+ if (o["min-fraction-digits"] && (g = i.parse(o["min-fraction-digits"], 1, Ie), !g)) return null;
1897
1897
  let m = null;
1898
- return o["max-fraction-digits"] && (m = i.parse(o["max-fraction-digits"], 1, Me), !m) ? null : new Eo(s, l, u, p, g, m);
1898
+ return o["max-fraction-digits"] && (m = i.parse(o["max-fraction-digits"], 1, Ie), !m) ? null : new Eo(s, l, u, p, g, m);
1899
1899
  }
1900
1900
  evaluate(e) {
1901
1901
  return new Intl.NumberFormat(this.locale ? this.locale.evaluate(e) : [], { style: this.currency ? "currency" : this.unit ? "unit" : "decimal", currency: this.currency ? this.currency.evaluate(e) : void 0, unit: this.unit ? this.unit.evaluate(e) : void 0, minimumFractionDigits: this.minFractionDigits ? this.minFractionDigits.evaluate(e) : void 0, maximumFractionDigits: this.maxFractionDigits ? this.maxFractionDigits.evaluate(e) : void 0 }).format(this.number.evaluate(e));
@@ -1922,7 +1922,7 @@ function by() {
1922
1922
  if (l && typeof p == "object" && !Array.isArray(p)) {
1923
1923
  l = !1;
1924
1924
  let g = null;
1925
- if (p["font-scale"] && (g = i.parse(p["font-scale"], 1, Me), !g)) return null;
1925
+ if (p["font-scale"] && (g = i.parse(p["font-scale"], 1, Ie), !g)) return null;
1926
1926
  let m = null;
1927
1927
  if (p["text-font"] && (m = i.parse(p["text-font"], 1, ti(Ne)), !m)) return null;
1928
1928
  let v = null;
@@ -1979,7 +1979,7 @@ function by() {
1979
1979
  }
1980
1980
  class Bi {
1981
1981
  constructor(e) {
1982
- this.type = Me, this.input = e;
1982
+ this.type = Ie, this.input = e;
1983
1983
  }
1984
1984
  static parse(e, i) {
1985
1985
  if (e.length !== 2) return i.error(`Expected 1 argument, but found ${e.length - 1} instead.`);
@@ -2020,7 +2020,7 @@ function by() {
2020
2020
  return s * u - l * o == 0 && s * l <= 0 && o * u <= 0;
2021
2021
  }
2022
2022
  function Ao(r, e, i, s) {
2023
- return (o = [s[0] - i[0], s[1] - i[1]])[0] * (l = [e[0] - r[0], e[1] - r[1]])[1] - o[1] * l[0] != 0 && !(!Mc(r, e, i, s) || !Mc(i, s, r, e));
2023
+ return (o = [s[0] - i[0], s[1] - i[1]])[0] * (l = [e[0] - r[0], e[1] - r[1]])[1] - o[1] * l[0] != 0 && !(!Ic(r, e, i, s) || !Ic(i, s, r, e));
2024
2024
  var o, l;
2025
2025
  }
2026
2026
  function Wu(r, e, i) {
@@ -2049,7 +2049,7 @@ function by() {
2049
2049
  for (const i of e) if (il(r, i)) return !0;
2050
2050
  return !1;
2051
2051
  }
2052
- function Mc(r, e, i, s) {
2052
+ function Ic(r, e, i, s) {
2053
2053
  const o = s[0] - i[0], l = s[1] - i[1], u = (r[0] - i[0]) * l - o * (r[1] - i[1]), p = (e[0] - i[0]) * l - o * (e[1] - i[1]);
2054
2054
  return u > 0 && p < 0 || u < 0 && p > 0;
2055
2055
  }
@@ -2065,7 +2065,7 @@ function by() {
2065
2065
  }
2066
2066
  return s;
2067
2067
  }
2068
- function Ic(r, e, i) {
2068
+ function Mc(r, e, i) {
2069
2069
  const s = [];
2070
2070
  for (let o = 0; o < r.length; o++) {
2071
2071
  const l = Do(r[o], e, i);
@@ -2138,7 +2138,7 @@ function by() {
2138
2138
  for (const m of g) if (!xr(m, p)) return !1;
2139
2139
  }
2140
2140
  if (s.type === "MultiPolygon") {
2141
- const p = Ic(s.coordinates, l, u), g = Cc(i.geometry(), o, l, u);
2141
+ const p = Mc(s.coordinates, l, u), g = Cc(i.geometry(), o, l, u);
2142
2142
  if (!ks(o, l)) return !1;
2143
2143
  for (const m of g) if (!Hu(m, p)) return !1;
2144
2144
  }
@@ -2152,7 +2152,7 @@ function by() {
2152
2152
  for (const m of g) if (!il(m, p)) return !1;
2153
2153
  }
2154
2154
  if (s.type === "MultiPolygon") {
2155
- const p = Ic(s.coordinates, l, u), g = Ac(i.geometry(), o, l, u);
2155
+ const p = Mc(s.coordinates, l, u), g = Ac(i.geometry(), o, l, u);
2156
2156
  if (!ks(o, l)) return !1;
2157
2157
  for (const m of g) if (!Pc(m, p)) return !1;
2158
2158
  }
@@ -2258,8 +2258,8 @@ function by() {
2258
2258
  for (let g = 0; g < e.length - 1; g++) {
2259
2259
  let m = e[g][0], v = e[g][1], _ = this.wrap(e[g + 1][0] - m) * this.kx, T = (e[g + 1][1] - v) * this.ky, b = 0;
2260
2260
  _ === 0 && T === 0 || (b = (this.wrap(i[0] - m) * this.kx * _ + (i[1] - v) * this.ky * T) / (_ * _ + T * T), b > 1 ? (m = e[g + 1][0], v = e[g + 1][1]) : b > 0 && (m += _ / this.kx * b, v += T / this.ky * b)), _ = this.wrap(i[0] - m) * this.kx, T = (i[1] - v) * this.ky;
2261
- const M = _ * _ + T * T;
2262
- M < p && (p = M, s = m, o = v, l = g, u = b);
2261
+ const I = _ * _ + T * T;
2262
+ I < p && (p = I, s = m, o = v, l = g, u = b);
2263
2263
  }
2264
2264
  return { point: [s, o], index: l, t: Math.max(0, Math.min(1, u)) };
2265
2265
  }
@@ -2374,8 +2374,8 @@ function by() {
2374
2374
  let u = 1 / 0;
2375
2375
  for (const p of r) for (let g = 0, m = p.length, v = m - 1; g < m; v = g++) {
2376
2376
  const _ = p[v], T = p[g];
2377
- for (const b of e) for (let M = 0, I = b.length, A = I - 1; M < I; A = M++) {
2378
- const D = b[A], L = b[M];
2377
+ for (const b of e) for (let I = 0, M = b.length, A = M - 1; I < M; A = I++) {
2378
+ const D = b[A], L = b[I];
2379
2379
  if (Ao(_, T, D, L)) return 0;
2380
2380
  u = Math.min(u, ul(_, T, D, L, i));
2381
2381
  }
@@ -2430,15 +2430,15 @@ function by() {
2430
2430
  let b;
2431
2431
  if (e && s) b = Rc(r, m, i, v, o), u = Math.min(u, b);
2432
2432
  else if (e && !s) {
2433
- const M = r.slice(m[0], m[1] + 1);
2434
- for (let I = v[0]; I <= v[1]; ++I) if (b = yn(i[I], M, o), u = Math.min(u, b), u === 0) return u;
2433
+ const I = r.slice(m[0], m[1] + 1);
2434
+ for (let M = v[0]; M <= v[1]; ++M) if (b = yn(i[M], I, o), u = Math.min(u, b), u === 0) return u;
2435
2435
  } else if (!e && s) {
2436
- const M = i.slice(v[0], v[1] + 1);
2437
- for (let I = m[0]; I <= m[1]; ++I) if (b = yn(r[I], M, o), u = Math.min(u, b), u === 0) return u;
2436
+ const I = i.slice(v[0], v[1] + 1);
2437
+ for (let M = m[0]; M <= m[1]; ++M) if (b = yn(r[M], I, o), u = Math.min(u, b), u === 0) return u;
2438
2438
  } else b = Ju(r, m, i, v, o), u = Math.min(u, b);
2439
2439
  } else {
2440
- const b = ol(m, e), M = ol(v, s);
2441
- Ro(p, u, o, r, i, b[0], M[0]), Ro(p, u, o, r, i, b[0], M[1]), Ro(p, u, o, r, i, b[1], M[0]), Ro(p, u, o, r, i, b[1], M[1]);
2440
+ const b = ol(m, e), I = ol(v, s);
2441
+ Ro(p, u, o, r, i, b[0], I[0]), Ro(p, u, o, r, i, b[0], I[1]), Ro(p, u, o, r, i, b[1], I[0]), Ro(p, u, o, r, i, b[1], I[1]);
2442
2442
  }
2443
2443
  }
2444
2444
  return u;
@@ -2448,7 +2448,7 @@ function by() {
2448
2448
  }
2449
2449
  class vn {
2450
2450
  constructor(e, i) {
2451
- this.type = Me, this.geojson = e, this.geometries = i;
2451
+ this.type = Ie, this.geojson = e, this.geometries = i;
2452
2452
  }
2453
2453
  static parse(e, i) {
2454
2454
  if (e.length !== 2) return i.error(`'distance' expression requires exactly one argument, but found ${e.length - 1} instead.`);
@@ -2551,7 +2551,7 @@ function by() {
2551
2551
  return !1;
2552
2552
  }
2553
2553
  }
2554
- const Qn = { "==": Qa, "!=": Sc, ">": Xn, "<": $u, ">=": el, "<=": Mo, array: Ci, at: Je, boolean: Ci, case: rr, coalesce: Ds, collator: Io, format: mn, image: Yn, in: Ze, "index-of": qn, interpolate: Rt, "interpolate-hcl": Rt, "interpolate-lab": Rt, length: Bi, let: pt, literal: ur, match: et, number: Ci, "number-format": Eo, object: Ci, slice: Wn, step: Hn, string: Ci, "to-boolean": vr, "to-color": vr, "to-number": vr, "to-string": vr, var: $n, within: _n, distance: vn, "global-state": Ls };
2554
+ const Qn = { "==": Qa, "!=": Sc, ">": Xn, "<": $u, ">=": el, "<=": Io, array: Ci, at: Je, boolean: Ci, case: rr, coalesce: Ds, collator: Mo, format: mn, image: Yn, in: Ze, "index-of": qn, interpolate: Rt, "interpolate-hcl": Rt, "interpolate-lab": Rt, length: Bi, let: pt, literal: ur, match: et, number: Ci, "number-format": Eo, object: Ci, slice: Wn, step: Hn, string: Ci, "to-boolean": vr, "to-color": vr, "to-number": vr, "to-string": vr, var: $n, within: _n, distance: vn, "global-state": Ls };
2555
2555
  class qi {
2556
2556
  constructor(e, i, s, o) {
2557
2557
  this.name = e, this.type = i, this._evaluate = s, this.args = o;
@@ -2575,7 +2575,7 @@ function by() {
2575
2575
  const _ = [];
2576
2576
  let T = !1;
2577
2577
  for (let b = 1; b < e.length; b++) {
2578
- const M = e[b], I = Array.isArray(m) ? m[b - 1] : m.type, A = g.parse(M, 1 + _.length, I);
2578
+ const I = e[b], M = Array.isArray(m) ? m[b - 1] : m.type, A = g.parse(I, 1 + _.length, M);
2579
2579
  if (!A) {
2580
2580
  T = !0;
2581
2581
  break;
@@ -2585,8 +2585,8 @@ function by() {
2585
2585
  if (!T) if (Array.isArray(m) && m.length !== _.length) g.error(`Expected ${m.length} arguments, but found ${_.length} instead.`);
2586
2586
  else {
2587
2587
  for (let b = 0; b < _.length; b++) {
2588
- const M = Array.isArray(m) ? m[b] : m.type, I = _[b];
2589
- g.concat(b + 1).checkSubtype(M, I.type);
2588
+ const I = Array.isArray(m) ? m[b] : m.type, M = _[b];
2589
+ g.concat(b + 1).checkSubtype(I, M.type);
2590
2590
  }
2591
2591
  if (g.errors.length === 0) return new qi(s, l, v, _);
2592
2592
  }
@@ -2629,7 +2629,7 @@ function by() {
2629
2629
  }
2630
2630
  function Bo(r) {
2631
2631
  if (r instanceof $n) return Bo(r.boundExpression);
2632
- if (r instanceof qi && r.name === "error" || r instanceof Io || r instanceof _n || r instanceof vn || r instanceof Ls) return !1;
2632
+ if (r instanceof qi && r.name === "error" || r instanceof Mo || r instanceof _n || r instanceof vn || r instanceof Ls) return !1;
2633
2633
  const e = r instanceof vr || r instanceof Ci;
2634
2634
  let i = !0;
2635
2635
  return r.eachChild(((s) => {
@@ -2720,14 +2720,14 @@ function by() {
2720
2720
  }
2721
2721
  if (i) {
2722
2722
  const v = {}, _ = [];
2723
- for (let M = 0; M < r.stops.length; M++) {
2724
- const I = r.stops[M], A = I[0].zoom;
2725
- v[A] === void 0 && (v[A] = { zoom: A, type: r.type, property: r.property, default: r.default, stops: [] }, _.push(A)), v[A].stops.push([I[0].value, I[1]]);
2723
+ for (let I = 0; I < r.stops.length; I++) {
2724
+ const M = r.stops[I], A = M[0].zoom;
2725
+ v[A] === void 0 && (v[A] = { zoom: A, type: r.type, property: r.property, default: r.default, stops: [] }, _.push(A)), v[A].stops.push([M[0].value, M[1]]);
2726
2726
  }
2727
2727
  const T = [];
2728
- for (const M of _) T.push([v[M].zoom, Nc(v[M], e)]);
2728
+ for (const I of _) T.push([v[I].zoom, Nc(v[I], e)]);
2729
2729
  const b = { name: "linear" };
2730
- return { kind: "composite", interpolationType: b, interpolationFactor: Rt.interpolationFactor.bind(void 0, b), zoomStops: T.map(((M) => M[0])), evaluate: ({ zoom: M }, I) => Uc({ stops: T, base: r.base }, e, M).evaluate(M, I) };
2730
+ return { kind: "composite", interpolationType: b, interpolationFactor: Rt.interpolationFactor.bind(void 0, b), zoomStops: T.map(((I) => I[0])), evaluate: ({ zoom: I }, M) => Uc({ stops: T, base: r.base }, e, I).evaluate(I, M) };
2731
2731
  }
2732
2732
  if (s) {
2733
2733
  const v = o === "exponential" ? { name: "exponential", base: r.base !== void 0 ? r.base : 1 } : null;
@@ -2759,8 +2759,8 @@ function by() {
2759
2759
  if (o === 1 || i <= r.stops[0][0]) return r.stops[0][1];
2760
2760
  if (i >= r.stops[o - 1][0]) return r.stops[o - 1][1];
2761
2761
  const l = pn(r.stops.map(((v) => v[0])), i), u = (function(v, _, T, b) {
2762
- const M = b - T, I = v - T;
2763
- return M === 0 ? 0 : _ === 1 ? I / M : (Math.pow(_, I) - 1) / (Math.pow(_, M) - 1);
2762
+ const I = b - T, M = v - T;
2763
+ return I === 0 ? 0 : _ === 1 ? M / I : (Math.pow(_, M) - 1) / (Math.pow(_, I) - 1);
2764
2764
  })(i, s, r.stops[l][0], r.stops[l + 1][0]), p = r.stops[l][1], g = r.stops[l + 1][1], m = Fi[e.type] || th;
2765
2765
  return typeof p.evaluate == "function" ? { evaluate(...v) {
2766
2766
  const _ = p.evaluate.apply(void 0, v), T = g.evaluate.apply(void 0, v);
@@ -2794,21 +2794,21 @@ function by() {
2794
2794
  }
2795
2795
  qi.register(Qn, { error: [{ kind: "error" }, [Ne], (r, [e]) => {
2796
2796
  throw new dt(e.evaluate(r));
2797
- }], typeof: [Ne, [Ge], (r, [e]) => at(Dt(e.evaluate(r)))], "to-rgba": [ti(Me, 4), [Ri], (r, [e]) => {
2797
+ }], typeof: [Ne, [Ge], (r, [e]) => at(Dt(e.evaluate(r)))], "to-rgba": [ti(Ie, 4), [Ri], (r, [e]) => {
2798
2798
  const [i, s, o, l] = e.evaluate(r).rgb;
2799
2799
  return [255 * i, 255 * s, 255 * o, l];
2800
- }], rgb: [Ri, [Me, Me, Me], Bc], rgba: [Ri, [Me, Me, Me, Me], Bc], has: { type: qe, overloads: [[[Ne], (r, [e]) => Oc(e.evaluate(r), r.properties())], [[Ne, yr], (r, [e, i]) => Oc(e.evaluate(r), i.evaluate(r))]] }, get: { type: Ge, overloads: [[[Ne], (r, [e]) => dl(e.evaluate(r), r.properties())], [[Ne, yr], (r, [e, i]) => dl(e.evaluate(r), i.evaluate(r))]] }, "feature-state": [Ge, [Ne], (r, [e]) => dl(e.evaluate(r), r.featureState || {})], properties: [yr, [], (r) => r.properties()], "geometry-type": [Ne, [], (r) => r.geometryType()], id: [Ge, [], (r) => r.id()], zoom: [Me, [], (r) => r.globals.zoom], "heatmap-density": [Me, [], (r) => r.globals.heatmapDensity || 0], elevation: [Me, [], (r) => r.globals.elevation || 0], "line-progress": [Me, [], (r) => r.globals.lineProgress || 0], accumulated: [Ge, [], (r) => r.globals.accumulated === void 0 ? null : r.globals.accumulated], "+": [Me, xn(Me), (r, e) => {
2800
+ }], rgb: [Ri, [Ie, Ie, Ie], Bc], rgba: [Ri, [Ie, Ie, Ie, Ie], Bc], has: { type: qe, overloads: [[[Ne], (r, [e]) => Oc(e.evaluate(r), r.properties())], [[Ne, yr], (r, [e, i]) => Oc(e.evaluate(r), i.evaluate(r))]] }, get: { type: Ge, overloads: [[[Ne], (r, [e]) => dl(e.evaluate(r), r.properties())], [[Ne, yr], (r, [e, i]) => dl(e.evaluate(r), i.evaluate(r))]] }, "feature-state": [Ge, [Ne], (r, [e]) => dl(e.evaluate(r), r.featureState || {})], properties: [yr, [], (r) => r.properties()], "geometry-type": [Ne, [], (r) => r.geometryType()], id: [Ge, [], (r) => r.id()], zoom: [Ie, [], (r) => r.globals.zoom], "heatmap-density": [Ie, [], (r) => r.globals.heatmapDensity || 0], elevation: [Ie, [], (r) => r.globals.elevation || 0], "line-progress": [Ie, [], (r) => r.globals.lineProgress || 0], accumulated: [Ge, [], (r) => r.globals.accumulated === void 0 ? null : r.globals.accumulated], "+": [Ie, xn(Ie), (r, e) => {
2801
2801
  let i = 0;
2802
2802
  for (const s of e) i += s.evaluate(r);
2803
2803
  return i;
2804
- }], "*": [Me, xn(Me), (r, e) => {
2804
+ }], "*": [Ie, xn(Ie), (r, e) => {
2805
2805
  let i = 1;
2806
2806
  for (const s of e) i *= s.evaluate(r);
2807
2807
  return i;
2808
- }], "-": { type: Me, overloads: [[[Me, Me], (r, [e, i]) => e.evaluate(r) - i.evaluate(r)], [[Me], (r, [e]) => -e.evaluate(r)]] }, "/": [Me, [Me, Me], (r, [e, i]) => e.evaluate(r) / i.evaluate(r)], "%": [Me, [Me, Me], (r, [e, i]) => e.evaluate(r) % i.evaluate(r)], ln2: [Me, [], () => Math.LN2], pi: [Me, [], () => Math.PI], e: [Me, [], () => Math.E], "^": [Me, [Me, Me], (r, [e, i]) => Math.pow(e.evaluate(r), i.evaluate(r))], sqrt: [Me, [Me], (r, [e]) => Math.sqrt(e.evaluate(r))], log10: [Me, [Me], (r, [e]) => Math.log(e.evaluate(r)) / Math.LN10], ln: [Me, [Me], (r, [e]) => Math.log(e.evaluate(r))], log2: [Me, [Me], (r, [e]) => Math.log(e.evaluate(r)) / Math.LN2], sin: [Me, [Me], (r, [e]) => Math.sin(e.evaluate(r))], cos: [Me, [Me], (r, [e]) => Math.cos(e.evaluate(r))], tan: [Me, [Me], (r, [e]) => Math.tan(e.evaluate(r))], asin: [Me, [Me], (r, [e]) => Math.asin(e.evaluate(r))], acos: [Me, [Me], (r, [e]) => Math.acos(e.evaluate(r))], atan: [Me, [Me], (r, [e]) => Math.atan(e.evaluate(r))], min: [Me, xn(Me), (r, e) => Math.min(...e.map(((i) => i.evaluate(r))))], max: [Me, xn(Me), (r, e) => Math.max(...e.map(((i) => i.evaluate(r))))], abs: [Me, [Me], (r, [e]) => Math.abs(e.evaluate(r))], round: [Me, [Me], (r, [e]) => {
2808
+ }], "-": { type: Ie, overloads: [[[Ie, Ie], (r, [e, i]) => e.evaluate(r) - i.evaluate(r)], [[Ie], (r, [e]) => -e.evaluate(r)]] }, "/": [Ie, [Ie, Ie], (r, [e, i]) => e.evaluate(r) / i.evaluate(r)], "%": [Ie, [Ie, Ie], (r, [e, i]) => e.evaluate(r) % i.evaluate(r)], ln2: [Ie, [], () => Math.LN2], pi: [Ie, [], () => Math.PI], e: [Ie, [], () => Math.E], "^": [Ie, [Ie, Ie], (r, [e, i]) => Math.pow(e.evaluate(r), i.evaluate(r))], sqrt: [Ie, [Ie], (r, [e]) => Math.sqrt(e.evaluate(r))], log10: [Ie, [Ie], (r, [e]) => Math.log(e.evaluate(r)) / Math.LN10], ln: [Ie, [Ie], (r, [e]) => Math.log(e.evaluate(r))], log2: [Ie, [Ie], (r, [e]) => Math.log(e.evaluate(r)) / Math.LN2], sin: [Ie, [Ie], (r, [e]) => Math.sin(e.evaluate(r))], cos: [Ie, [Ie], (r, [e]) => Math.cos(e.evaluate(r))], tan: [Ie, [Ie], (r, [e]) => Math.tan(e.evaluate(r))], asin: [Ie, [Ie], (r, [e]) => Math.asin(e.evaluate(r))], acos: [Ie, [Ie], (r, [e]) => Math.acos(e.evaluate(r))], atan: [Ie, [Ie], (r, [e]) => Math.atan(e.evaluate(r))], min: [Ie, xn(Ie), (r, e) => Math.min(...e.map(((i) => i.evaluate(r))))], max: [Ie, xn(Ie), (r, e) => Math.max(...e.map(((i) => i.evaluate(r))))], abs: [Ie, [Ie], (r, [e]) => Math.abs(e.evaluate(r))], round: [Ie, [Ie], (r, [e]) => {
2809
2809
  const i = e.evaluate(r);
2810
2810
  return i < 0 ? -Math.round(-i) : Math.round(i);
2811
- }], floor: [Me, [Me], (r, [e]) => Math.floor(e.evaluate(r))], ceil: [Me, [Me], (r, [e]) => Math.ceil(e.evaluate(r))], "filter-==": [qe, [Ne, Ge], (r, [e, i]) => r.properties()[e.value] === i.value], "filter-id-==": [qe, [Ge], (r, [e]) => r.id() === e.value], "filter-type-==": [qe, [Ne], (r, [e]) => r.geometryType() === e.value], "filter-<": [qe, [Ne, Ge], (r, [e, i]) => {
2811
+ }], floor: [Ie, [Ie], (r, [e]) => Math.floor(e.evaluate(r))], ceil: [Ie, [Ie], (r, [e]) => Math.ceil(e.evaluate(r))], "filter-==": [qe, [Ne, Ge], (r, [e, i]) => r.properties()[e.value] === i.value], "filter-id-==": [qe, [Ge], (r, [e]) => r.id() === e.value], "filter-type-==": [qe, [Ne], (r, [e]) => r.geometryType() === e.value], "filter-<": [qe, [Ne, Ge], (r, [e, i]) => {
2812
2812
  const s = r.properties()[e.value], o = i.value;
2813
2813
  return typeof s == typeof o && s < o;
2814
2814
  }], "filter-id-<": [qe, [Ge], (r, [e]) => {
@@ -2891,7 +2891,7 @@ function by() {
2891
2891
  }
2892
2892
  function Vs(r, e, i) {
2893
2893
  const s = new dn(Qn, Bo, [], e ? (function(l) {
2894
- const u = { color: Ri, string: Ne, number: Me, enum: Ne, boolean: qe, formatted: Ss, padding: vo, numberArray: Ps, colorArray: Vn, projectionDefinition: yo, resolvedImage: jn, variableAnchorOffsetCollection: Ms };
2894
+ const u = { color: Ri, string: Ne, number: Ie, enum: Ne, boolean: qe, formatted: Ss, padding: vo, numberArray: Ps, colorArray: Vn, projectionDefinition: yo, resolvedImage: jn, variableAnchorOffsetCollection: Is };
2895
2895
  return l.type === "array" ? ti(u[l.value] || Ge, l.length) : u[l.type];
2896
2896
  })(e) : void 0), o = s.parse(r, void 0, void 0, void 0, e && e.type === "string" ? { typeAnnotation: "coerce" } : void 0);
2897
2897
  return o ? Vc(new Os(o, e, i)) : es(s.errors);
@@ -3125,38 +3125,38 @@ function by() {
3125
3125
  let s, o, l, u = {};
3126
3126
  const p = i !== "categorical" && r.value.property === void 0, g = !p, m = We(r.value.stops) === "array" && We(r.value.stops[0]) === "array" && We(r.value.stops[0][0]) === "object", v = Ai({ key: r.key, value: r.value, valueSpec: r.styleSpec.function, validateSpec: r.validateSpec, style: r.style, styleSpec: r.styleSpec, objectElementValidators: { stops: function(b) {
3127
3127
  if (i === "identity") return [new xe(b.key, b.value, 'identity function may not have a "stops" property')];
3128
- let M = [];
3129
- const I = b.value;
3130
- return M = M.concat(qo({ key: b.key, value: I, valueSpec: b.valueSpec, validateSpec: b.validateSpec, style: b.style, styleSpec: b.styleSpec, arrayElementValidator: _ })), We(I) === "array" && I.length === 0 && M.push(new xe(b.key, I, "array must have at least one stop")), M;
3128
+ let I = [];
3129
+ const M = b.value;
3130
+ return I = I.concat(qo({ key: b.key, value: M, valueSpec: b.valueSpec, validateSpec: b.validateSpec, style: b.style, styleSpec: b.styleSpec, arrayElementValidator: _ })), We(M) === "array" && M.length === 0 && I.push(new xe(b.key, M, "array must have at least one stop")), I;
3131
3131
  }, default: function(b) {
3132
3132
  return b.validateSpec({ key: b.key, value: b.value, valueSpec: e, validateSpec: b.validateSpec, style: b.style, styleSpec: b.styleSpec });
3133
3133
  } } });
3134
3134
  return i === "identity" && p && v.push(new xe(r.key, r.value, 'missing required property "property"')), i === "identity" || r.value.stops || v.push(new xe(r.key, r.value, 'missing required property "stops"')), i === "exponential" && r.valueSpec.expression && !pl(r.valueSpec) && v.push(new xe(r.key, r.value, "exponential functions not supported")), r.styleSpec.$version >= 8 && (g && !ts(r.valueSpec) ? v.push(new xe(r.key, r.value, "property functions not supported")) : p && !jc(r.valueSpec) && v.push(new xe(r.key, r.value, "zoom functions not supported"))), i !== "categorical" && !m || r.value.property !== void 0 || v.push(new xe(r.key, r.value, '"property" property is required')), v;
3135
3135
  function _(b) {
3136
- let M = [];
3137
- const I = b.value, A = b.key;
3138
- if (We(I) !== "array") return [new xe(A, I, `array expected, ${We(I)} found`)];
3139
- if (I.length !== 2) return [new xe(A, I, `array length 2 expected, length ${I.length} found`)];
3136
+ let I = [];
3137
+ const M = b.value, A = b.key;
3138
+ if (We(M) !== "array") return [new xe(A, M, `array expected, ${We(M)} found`)];
3139
+ if (M.length !== 2) return [new xe(A, M, `array length 2 expected, length ${M.length} found`)];
3140
3140
  if (m) {
3141
- if (We(I[0]) !== "object") return [new xe(A, I, `object expected, ${We(I[0])} found`)];
3142
- if (I[0].zoom === void 0) return [new xe(A, I, "object stop key must have zoom")];
3143
- if (I[0].value === void 0) return [new xe(A, I, "object stop key must have value")];
3144
- if (l && l > zt(I[0].zoom)) return [new xe(A, I[0].zoom, "stop zoom values must appear in ascending order")];
3145
- zt(I[0].zoom) !== l && (l = zt(I[0].zoom), o = void 0, u = {}), M = M.concat(Ai({ key: `${A}[0]`, value: I[0], valueSpec: { zoom: {} }, validateSpec: b.validateSpec, style: b.style, styleSpec: b.styleSpec, objectElementValidators: { zoom: ns, value: T } }));
3146
- } else M = M.concat(T({ key: `${A}[0]`, value: I[0], validateSpec: b.validateSpec, style: b.style, styleSpec: b.styleSpec }, I));
3147
- return No(wn(I[1])) ? M.concat([new xe(`${A}[1]`, I[1], "expressions are not allowed in function stops.")]) : M.concat(b.validateSpec({ key: `${A}[1]`, value: I[1], valueSpec: e, validateSpec: b.validateSpec, style: b.style, styleSpec: b.styleSpec }));
3148
- }
3149
- function T(b, M) {
3150
- const I = We(b.value), A = zt(b.value), D = b.value !== null ? b.value : M;
3141
+ if (We(M[0]) !== "object") return [new xe(A, M, `object expected, ${We(M[0])} found`)];
3142
+ if (M[0].zoom === void 0) return [new xe(A, M, "object stop key must have zoom")];
3143
+ if (M[0].value === void 0) return [new xe(A, M, "object stop key must have value")];
3144
+ if (l && l > zt(M[0].zoom)) return [new xe(A, M[0].zoom, "stop zoom values must appear in ascending order")];
3145
+ zt(M[0].zoom) !== l && (l = zt(M[0].zoom), o = void 0, u = {}), I = I.concat(Ai({ key: `${A}[0]`, value: M[0], valueSpec: { zoom: {} }, validateSpec: b.validateSpec, style: b.style, styleSpec: b.styleSpec, objectElementValidators: { zoom: ns, value: T } }));
3146
+ } else I = I.concat(T({ key: `${A}[0]`, value: M[0], validateSpec: b.validateSpec, style: b.style, styleSpec: b.styleSpec }, M));
3147
+ return No(wn(M[1])) ? I.concat([new xe(`${A}[1]`, M[1], "expressions are not allowed in function stops.")]) : I.concat(b.validateSpec({ key: `${A}[1]`, value: M[1], valueSpec: e, validateSpec: b.validateSpec, style: b.style, styleSpec: b.styleSpec }));
3148
+ }
3149
+ function T(b, I) {
3150
+ const M = We(b.value), A = zt(b.value), D = b.value !== null ? b.value : I;
3151
3151
  if (s) {
3152
- if (I !== s) return [new xe(b.key, D, `${I} stop domain type must match previous stop domain type ${s}`)];
3153
- } else s = I;
3154
- if (I !== "number" && I !== "string" && I !== "boolean") return [new xe(b.key, D, "stop domain value must be a number, string, or boolean")];
3155
- if (I !== "number" && i !== "categorical") {
3156
- let L = `number expected, ${I} found`;
3152
+ if (M !== s) return [new xe(b.key, D, `${M} stop domain type must match previous stop domain type ${s}`)];
3153
+ } else s = M;
3154
+ if (M !== "number" && M !== "string" && M !== "boolean") return [new xe(b.key, D, "stop domain value must be a number, string, or boolean")];
3155
+ if (M !== "number" && i !== "categorical") {
3156
+ let L = `number expected, ${M} found`;
3157
3157
  return ts(e) && i === void 0 && (L += '\nIf you intended to use a categorical function, specify `"type": "categorical"`.'), [new xe(b.key, D, L)];
3158
3158
  }
3159
- return i !== "categorical" || I !== "number" || isFinite(A) && Math.floor(A) === A ? i !== "categorical" && I === "number" && o !== void 0 && A < o ? [new xe(b.key, D, "stop domain values must appear in ascending order")] : (o = A, i === "categorical" && A in u ? [new xe(b.key, D, "stop domain values must be unique")] : (u[A] = !0, [])) : [new xe(b.key, D, `integer expected, found ${A}`)];
3159
+ return i !== "categorical" || M !== "number" || isFinite(A) && Math.floor(A) === A ? i !== "categorical" && M === "number" && o !== void 0 && A < o ? [new xe(b.key, D, "stop domain values must appear in ascending order")] : (o = A, i === "categorical" && A in u ? [new xe(b.key, D, "stop domain values must be unique")] : (u[A] = !0, [])) : [new xe(b.key, D, `integer expected, found ${A}`)];
3160
3160
  }
3161
3161
  }
3162
3162
  function Nr(r) {
@@ -3285,14 +3285,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3285
3285
  case "raster-dem":
3286
3286
  return p = (function(g) {
3287
3287
  var m;
3288
- const v = (m = g.sourceName) !== null && m !== void 0 ? m : "", _ = g.value, T = g.styleSpec, b = T.source_raster_dem, M = g.style;
3289
- let I = [];
3288
+ const v = (m = g.sourceName) !== null && m !== void 0 ? m : "", _ = g.value, T = g.styleSpec, b = T.source_raster_dem, I = g.style;
3289
+ let M = [];
3290
3290
  const A = We(_);
3291
- if (_ === void 0) return I;
3292
- if (A !== "object") return I.push(new xe("source_raster_dem", _, `object expected, ${A} found`)), I;
3291
+ if (_ === void 0) return M;
3292
+ if (A !== "object") return M.push(new xe("source_raster_dem", _, `object expected, ${A} found`)), M;
3293
3293
  const D = zt(_.encoding) === "custom", L = ["redFactor", "greenFactor", "blueFactor", "baseShift"], k = g.value.encoding ? `"${g.value.encoding}"` : "Default";
3294
- for (const F in _) !D && L.includes(F) ? I.push(new xe(F, _[F], `In "${v}": "${F}" is only valid when "encoding" is set to "custom". ${k} encoding found`)) : b[F] ? I = I.concat(g.validateSpec({ key: F, value: _[F], valueSpec: b[F], validateSpec: g.validateSpec, style: M, styleSpec: T })) : I.push(new xe(F, _[F], `unknown property "${F}"`));
3295
- return I;
3294
+ for (const F in _) !D && L.includes(F) ? M.push(new xe(F, _[F], `In "${v}": "${F}" is only valid when "encoding" is set to "custom". ${k} encoding found`)) : b[F] ? M = M.concat(g.validateSpec({ key: F, value: _[F], valueSpec: b[F], validateSpec: g.validateSpec, style: I, styleSpec: T })) : M.push(new xe(F, _[F], `unknown property "${F}"`));
3295
+ return M;
3296
3296
  })({ sourceName: i, value: e, style: r.style, styleSpec: s, validateSpec: l }), p;
3297
3297
  case "geojson":
3298
3298
  if (p = Ai({ key: i, value: e, valueSpec: s.source_geojson, style: o, styleSpec: s, validateSpec: l, objectElementValidators: yl }), e.cluster) for (const g in e.clusterProperties) {
@@ -3530,9 +3530,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3530
3530
  }
3531
3531
  _forEachCell(e, i, s, o, l, u, p, g) {
3532
3532
  const m = this._convertToCellCoord(e), v = this._convertToCellCoord(i), _ = this._convertToCellCoord(s), T = this._convertToCellCoord(o);
3533
- for (let b = m; b <= _; b++) for (let M = v; M <= T; M++) {
3534
- const I = this.d * M + b;
3535
- if ((!g || g(this._convertFromCellCoord(b), this._convertFromCellCoord(M), this._convertFromCellCoord(b + 1), this._convertFromCellCoord(M + 1))) && l.call(this, e, i, s, o, I, u, p, g)) return;
3533
+ for (let b = m; b <= _; b++) for (let I = v; I <= T; I++) {
3534
+ const M = this.d * I + b;
3535
+ if ((!g || g(this._convertFromCellCoord(b), this._convertFromCellCoord(I), this._convertFromCellCoord(b + 1), this._convertFromCellCoord(I + 1))) && l.call(this, e, i, s, o, M, u, p, g)) return;
3536
3536
  }
3537
3537
  }
3538
3538
  _convertFromCellCoord(e) {
@@ -3666,19 +3666,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
3666
3666
  function Xo(r) {
3667
3667
  return !Pl.test(String.fromCodePoint(r));
3668
3668
  }
3669
- function Ml(r) {
3669
+ function Il(r) {
3670
3670
  return !(Sn(r) || (e = r, /[\xA7\xA9\xAE\xB1\xBC-\xBE\xD7\xF7\u2016\u2020\u2021\u2030\u2031\u203B\u203C\u2042\u2047-\u2049\u2051\u2100-\u218F\u221E\u2234\u2235\u2300-\u2307\u230C-\u231F\u2324-\u2328\u232B\u237D-\u239A\u23BE-\u23CD\u23CF\u23D1-\u23DB\u23E2-\u2422\u2424-\u24FF\u25A0-\u2619\u2620-\u2767\u2776-\u2793\u2B12-\u2B2F\u2B50-\u2B59\u2BB8-\u2BEB\u3000-\u303F\u30A0-\u30FF\uE000-\uF8FF\uFE30-\uFE6F\uFF00-\uFFEF\uFFFC\uFFFD]|[\uDB80-\uDBFF][\uDC00-\uDFFF]/gim.test(String.fromCodePoint(e))));
3671
3671
  var e;
3672
3672
  }
3673
3673
  const ou = su(["Adlm", "Arab", "Armi", "Avst", "Chrs", "Cprt", "Egyp", "Elym", "Gara", "Hatr", "Hebr", "Hung", "Khar", "Lydi", "Mand", "Mani", "Mend", "Merc", "Mero", "Narb", "Nbat", "Nkoo", "Orkh", "Palm", "Phli", "Phlp", "Phnx", "Prti", "Rohg", "Samr", "Sarb", "Sogo", "Syrc", "Thaa", "Todr", "Yezi"]);
3674
- function Il(r) {
3674
+ function Ml(r) {
3675
3675
  return ou.test(String.fromCodePoint(r));
3676
3676
  }
3677
3677
  function au(r, e) {
3678
- return !(!e && Il(r) || /[\u0900-\u0DFF\u0F00-\u109F\u1780-\u17FF]/gim.test(String.fromCodePoint(r)));
3678
+ return !(!e && Ml(r) || /[\u0900-\u0DFF\u0F00-\u109F\u1780-\u17FF]/gim.test(String.fromCodePoint(r)));
3679
3679
  }
3680
3680
  function El(r) {
3681
- for (const e of r) if (Il(e.codePointAt(0))) return !0;
3681
+ for (const e of r) if (Ml(e.codePointAt(0))) return !0;
3682
3682
  return !1;
3683
3683
  }
3684
3684
  const Tr = new class {
@@ -4306,8 +4306,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4306
4306
  return this.resize(b + 1), this.emplace(b, e, i, s, o, l, u, p, g, m, v, _, T);
4307
4307
  }
4308
4308
  emplace(e, i, s, o, l, u, p, g, m, v, _, T, b) {
4309
- const M = 12 * e;
4310
- return this.int16[M + 0] = i, this.int16[M + 1] = s, this.int16[M + 2] = o, this.int16[M + 3] = l, this.uint16[M + 4] = u, this.uint16[M + 5] = p, this.uint16[M + 6] = g, this.uint16[M + 7] = m, this.int16[M + 8] = v, this.int16[M + 9] = _, this.int16[M + 10] = T, this.int16[M + 11] = b, e;
4309
+ const I = 12 * e;
4310
+ return this.int16[I + 0] = i, this.int16[I + 1] = s, this.int16[I + 2] = o, this.int16[I + 3] = l, this.uint16[I + 4] = u, this.uint16[I + 5] = p, this.uint16[I + 6] = g, this.uint16[I + 7] = m, this.int16[I + 8] = v, this.int16[I + 9] = _, this.int16[I + 10] = T, this.int16[I + 11] = b, e;
4311
4311
  }
4312
4312
  }
4313
4313
  io.prototype.bytesPerElement = 24, Ce("StructArrayLayout4i4ui4i24", io);
@@ -4408,31 +4408,31 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4408
4408
  }
4409
4409
  }
4410
4410
  no.prototype.bytesPerElement = 6, Ce("StructArrayLayout3ui6", no);
4411
- class Mn extends xt {
4411
+ class In extends xt {
4412
4412
  _refreshViews() {
4413
4413
  this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer), this.uint32 = new Uint32Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);
4414
4414
  }
4415
- emplaceBack(e, i, s, o, l, u, p, g, m, v, _, T, b, M, I, A, D) {
4415
+ emplaceBack(e, i, s, o, l, u, p, g, m, v, _, T, b, I, M, A, D) {
4416
4416
  const L = this.length;
4417
- return this.resize(L + 1), this.emplace(L, e, i, s, o, l, u, p, g, m, v, _, T, b, M, I, A, D);
4417
+ return this.resize(L + 1), this.emplace(L, e, i, s, o, l, u, p, g, m, v, _, T, b, I, M, A, D);
4418
4418
  }
4419
- emplace(e, i, s, o, l, u, p, g, m, v, _, T, b, M, I, A, D, L) {
4419
+ emplace(e, i, s, o, l, u, p, g, m, v, _, T, b, I, M, A, D, L) {
4420
4420
  const k = 24 * e, F = 12 * e, O = 48 * e;
4421
- return this.int16[k + 0] = i, this.int16[k + 1] = s, this.uint16[k + 2] = o, this.uint16[k + 3] = l, this.uint32[F + 2] = u, this.uint32[F + 3] = p, this.uint32[F + 4] = g, this.uint16[k + 10] = m, this.uint16[k + 11] = v, this.uint16[k + 12] = _, this.float32[F + 7] = T, this.float32[F + 8] = b, this.uint8[O + 36] = M, this.uint8[O + 37] = I, this.uint8[O + 38] = A, this.uint32[F + 10] = D, this.int16[k + 22] = L, e;
4421
+ return this.int16[k + 0] = i, this.int16[k + 1] = s, this.uint16[k + 2] = o, this.uint16[k + 3] = l, this.uint32[F + 2] = u, this.uint32[F + 3] = p, this.uint32[F + 4] = g, this.uint16[k + 10] = m, this.uint16[k + 11] = v, this.uint16[k + 12] = _, this.float32[F + 7] = T, this.float32[F + 8] = b, this.uint8[O + 36] = I, this.uint8[O + 37] = M, this.uint8[O + 38] = A, this.uint32[F + 10] = D, this.int16[k + 22] = L, e;
4422
4422
  }
4423
4423
  }
4424
- Mn.prototype.bytesPerElement = 48, Ce("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48", Mn);
4424
+ In.prototype.bytesPerElement = 48, Ce("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48", In);
4425
4425
  class Fl extends xt {
4426
4426
  _refreshViews() {
4427
4427
  this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer), this.uint32 = new Uint32Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);
4428
4428
  }
4429
- emplaceBack(e, i, s, o, l, u, p, g, m, v, _, T, b, M, I, A, D, L, k, F, O, j, Y, J, ne, ie, le, ce) {
4429
+ emplaceBack(e, i, s, o, l, u, p, g, m, v, _, T, b, I, M, A, D, L, k, F, O, j, Y, J, ne, ie, le, ce) {
4430
4430
  const se = this.length;
4431
- return this.resize(se + 1), this.emplace(se, e, i, s, o, l, u, p, g, m, v, _, T, b, M, I, A, D, L, k, F, O, j, Y, J, ne, ie, le, ce);
4431
+ return this.resize(se + 1), this.emplace(se, e, i, s, o, l, u, p, g, m, v, _, T, b, I, M, A, D, L, k, F, O, j, Y, J, ne, ie, le, ce);
4432
4432
  }
4433
- emplace(e, i, s, o, l, u, p, g, m, v, _, T, b, M, I, A, D, L, k, F, O, j, Y, J, ne, ie, le, ce, se) {
4433
+ emplace(e, i, s, o, l, u, p, g, m, v, _, T, b, I, M, A, D, L, k, F, O, j, Y, J, ne, ie, le, ce, se) {
4434
4434
  const re = 32 * e, _e = 16 * e;
4435
- return this.int16[re + 0] = i, this.int16[re + 1] = s, this.int16[re + 2] = o, this.int16[re + 3] = l, this.int16[re + 4] = u, this.int16[re + 5] = p, this.int16[re + 6] = g, this.int16[re + 7] = m, this.uint16[re + 8] = v, this.uint16[re + 9] = _, this.uint16[re + 10] = T, this.uint16[re + 11] = b, this.uint16[re + 12] = M, this.uint16[re + 13] = I, this.uint16[re + 14] = A, this.uint16[re + 15] = D, this.uint16[re + 16] = L, this.uint16[re + 17] = k, this.uint16[re + 18] = F, this.uint16[re + 19] = O, this.uint16[re + 20] = j, this.uint16[re + 21] = Y, this.uint16[re + 22] = J, this.uint32[_e + 12] = ne, this.float32[_e + 13] = ie, this.float32[_e + 14] = le, this.uint16[re + 30] = ce, this.uint16[re + 31] = se, e;
4435
+ return this.int16[re + 0] = i, this.int16[re + 1] = s, this.int16[re + 2] = o, this.int16[re + 3] = l, this.int16[re + 4] = u, this.int16[re + 5] = p, this.int16[re + 6] = g, this.int16[re + 7] = m, this.uint16[re + 8] = v, this.uint16[re + 9] = _, this.uint16[re + 10] = T, this.uint16[re + 11] = b, this.uint16[re + 12] = I, this.uint16[re + 13] = M, this.uint16[re + 14] = A, this.uint16[re + 15] = D, this.uint16[re + 16] = L, this.uint16[re + 17] = k, this.uint16[re + 18] = F, this.uint16[re + 19] = O, this.uint16[re + 20] = j, this.uint16[re + 21] = Y, this.uint16[re + 22] = J, this.uint32[_e + 12] = ne, this.float32[_e + 13] = ie, this.float32[_e + 14] = le, this.uint16[re + 30] = ce, this.uint16[re + 31] = se, e;
4436
4436
  }
4437
4437
  }
4438
4438
  Fl.prototype.bytesPerElement = 64, Ce("StructArrayLayout8i15ui1ul2f2ui64", Fl);
@@ -4620,7 +4620,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4620
4620
  }
4621
4621
  }
4622
4622
  f.prototype.size = 48;
4623
- class y extends Mn {
4623
+ class y extends In {
4624
4624
  get(e) {
4625
4625
  return new f(this, e);
4626
4626
  }
@@ -4840,10 +4840,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4840
4840
  }
4841
4841
  Ee.MAX_VERTEX_ARRAY_LENGTH = Math.pow(2, 16) - 1, Ce("SegmentVector", Ee);
4842
4842
  const st = mt([{ name: "a_pattern_from", components: 4, type: "Uint16" }, { name: "a_pattern_to", components: 4, type: "Uint16" }, { name: "a_pixel_ratio_from", components: 1, type: "Uint16" }, { name: "a_pixel_ratio_to", components: 1, type: "Uint16" }]), kt = mt([{ name: "a_dasharray_from", components: 4, type: "Uint16" }, { name: "a_dasharray_to", components: 4, type: "Uint16" }]);
4843
- var ut, Lt, Ot, ai = { exports: {} }, It = { exports: {} }, xi = { exports: {} }, ii = (function() {
4843
+ var ut, Lt, Ot, ai = { exports: {} }, Mt = { exports: {} }, xi = { exports: {} }, ii = (function() {
4844
4844
  if (Ot) return ai.exports;
4845
4845
  Ot = 1;
4846
- var r = (ut || (ut = 1, It.exports = function(i, s) {
4846
+ var r = (ut || (ut = 1, Mt.exports = function(i, s) {
4847
4847
  var o, l, u, p, g, m, v, _;
4848
4848
  for (l = i.length - (o = 3 & i.length), u = s, g = 3432918353, m = 461845907, _ = 0; _ < l; ) v = 255 & i.charCodeAt(_) | (255 & i.charCodeAt(++_)) << 8 | (255 & i.charCodeAt(++_)) << 16 | (255 & i.charCodeAt(++_)) << 24, ++_, u = 27492 + (65535 & (p = 5 * (65535 & (u = (u ^= v = (65535 & (v = (v = (65535 & v) * g + (((v >>> 16) * g & 65535) << 16) & 4294967295) << 15 | v >>> 17)) * m + (((v >>> 16) * m & 65535) << 16) & 4294967295) << 13 | u >>> 19)) + ((5 * (u >>> 16) & 65535) << 16) & 4294967295)) + ((58964 + (p >>> 16) & 65535) << 16);
4849
4849
  switch (v = 0, o) {
@@ -4855,7 +4855,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4855
4855
  u ^= v = (65535 & (v = (v = (65535 & (v ^= 255 & i.charCodeAt(_))) * g + (((v >>> 16) * g & 65535) << 16) & 4294967295) << 15 | v >>> 17)) * m + (((v >>> 16) * m & 65535) << 16) & 4294967295;
4856
4856
  }
4857
4857
  return u ^= i.length, u = 2246822507 * (65535 & (u ^= u >>> 16)) + ((2246822507 * (u >>> 16) & 65535) << 16) & 4294967295, u = 3266489909 * (65535 & (u ^= u >>> 13)) + ((3266489909 * (u >>> 16) & 65535) << 16) & 4294967295, (u ^= u >>> 16) >>> 0;
4858
- }), It.exports), e = (Lt || (Lt = 1, xi.exports = function(i, s) {
4858
+ }), Mt.exports), e = (Lt || (Lt = 1, xi.exports = function(i, s) {
4859
4859
  for (var o, l = i.length, u = s ^ l, p = 0; l >= 4; ) o = 1540483477 * (65535 & (o = 255 & i.charCodeAt(p) | (255 & i.charCodeAt(++p)) << 8 | (255 & i.charCodeAt(++p)) << 16 | (255 & i.charCodeAt(++p)) << 24)) + ((1540483477 * (o >>> 16) & 65535) << 16), u = 1540483477 * (65535 & u) + ((1540483477 * (u >>> 16) & 65535) << 16) ^ (o = 1540483477 * (65535 & (o ^= o >>> 24)) + ((1540483477 * (o >>> 16) & 65535) << 16)), l -= 4, ++p;
4860
4860
  switch (l) {
4861
4861
  case 3:
@@ -5093,7 +5093,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5093
5093
  e.emplace(i, s.tlbr[0], s.tlbr[1], s.tlbr[2], s.tlbr[3], o.tlbr[0], o.tlbr[1], o.tlbr[2], o.tlbr[3], s.pixelRatio, o.pixelRatio);
5094
5094
  }
5095
5095
  }
5096
- class In extends Vt {
5096
+ class Mn extends Vt {
5097
5097
  getPositions(e) {
5098
5098
  return e.dashPositions;
5099
5099
  }
@@ -5120,7 +5120,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5120
5120
  if (g.kind === "constant") this.binders[l] = T ? new Xi(g.value, p) : new Vi(g.value, p, m), o.push(`/u_${l}`);
5121
5121
  else if (g.kind === "source" || T) {
5122
5122
  const b = pu(l, m, "source");
5123
- this.binders[l] = T ? l === "line-dasharray" ? new In(g, m, v, i, b, e.id) : new wt(g, m, v, i, b, e.id) : new bt(g, p, m, b), o.push(`/a_${l}`);
5123
+ this.binders[l] = T ? l === "line-dasharray" ? new Mn(g, m, v, i, b, e.id) : new wt(g, m, v, i, b, e.id) : new bt(g, p, m, b), o.push(`/a_${l}`);
5124
5124
  } else {
5125
5125
  const b = pu(l, m, "composite");
5126
5126
  this.binders[l] = new gt(g, p, m, v, i, b), o.push(`/z_${l}`);
@@ -5238,7 +5238,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5238
5238
  }
5239
5239
  }
5240
5240
  }
5241
- class Mr {
5241
+ class Ir {
5242
5242
  constructor(e, i, s = () => !0) {
5243
5243
  this.programConfigurations = {};
5244
5244
  for (const o of e) this.programConfigurations[o.id] = new oa(o, i, s);
@@ -5273,7 +5273,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5273
5273
  })(r);
5274
5274
  return o?.[i] || s[e][i];
5275
5275
  }
5276
- Ce("ConstantBinder", Vi), Ce("CrossFadedConstantBinder", Xi), Ce("SourceExpressionBinder", bt), Ce("CrossFadedPatternBinder", wt), Ce("CrossFadedDasharrayBinder", In), Ce("CompositeExpressionBinder", gt), Ce("ProgramConfiguration", oa, { omit: ["_buffers"] }), Ce("ProgramConfigurationSet", Mr);
5276
+ Ce("ConstantBinder", Vi), Ce("CrossFadedConstantBinder", Xi), Ce("SourceExpressionBinder", bt), Ce("CrossFadedPatternBinder", wt), Ce("CrossFadedDasharrayBinder", Mn), Ce("CompositeExpressionBinder", gt), Ce("ProgramConfiguration", oa, { omit: ["_buffers"] }), Ce("ProgramConfigurationSet", Ir);
5277
5277
  const Vl = Math.pow(2, 14) - 1, Hr = -Vl - 1;
5278
5278
  function Xr(r) {
5279
5279
  const e = Be / r.extent, i = r.loadGeometry();
@@ -5292,7 +5292,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5292
5292
  }
5293
5293
  class aa {
5294
5294
  constructor(e) {
5295
- this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map(((i) => i.id)), this.index = e.index, this.hasDependencies = !1, this.layoutVertexArray = new G(), this.indexArray = new pe(), this.segments = new Ee(), this.programConfigurations = new Mr(e.layers, e.zoom), this.stateDependentLayerIds = this.layers.filter(((i) => i.isStateDependent())).map(((i) => i.id));
5295
+ this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map(((i) => i.id)), this.index = e.index, this.hasDependencies = !1, this.layoutVertexArray = new G(), this.indexArray = new pe(), this.segments = new Ee(), this.programConfigurations = new Ir(e.layers, e.zoom), this.stateDependentLayerIds = this.layers.filter(((i) => i.isStateDependent())).map(((i) => i.id));
5296
5296
  }
5297
5297
  populate(e, i, s) {
5298
5298
  const o = this.layers[0], l = [];
@@ -5303,15 +5303,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5303
5303
  }
5304
5304
  const m = g ? i.subdivisionGranularity.circle : 1;
5305
5305
  for (const { feature: v, id: _, index: T, sourceLayerIndex: b } of e) {
5306
- const M = this.layers[0]._featureFilter.needGeometry, I = Yr(v, M);
5307
- if (!this.layers[0]._featureFilter.filter(new ft(this.zoom), I, s)) continue;
5308
- const A = p ? u.evaluate(I, {}, s) : void 0, D = { id: _, properties: v.properties, type: v.type, sourceLayerIndex: b, index: T, geometry: M ? I.geometry : Xr(v), patterns: {}, sortKey: A };
5306
+ const I = this.layers[0]._featureFilter.needGeometry, M = Yr(v, I);
5307
+ if (!this.layers[0]._featureFilter.filter(new ft(this.zoom), M, s)) continue;
5308
+ const A = p ? u.evaluate(M, {}, s) : void 0, D = { id: _, properties: v.properties, type: v.type, sourceLayerIndex: b, index: T, geometry: I ? M.geometry : Xr(v), patterns: {}, sortKey: A };
5309
5309
  l.push(D);
5310
5310
  }
5311
5311
  p && l.sort(((v, _) => v.sortKey - _.sortKey));
5312
5312
  for (const v of l) {
5313
- const { geometry: _, index: T, sourceLayerIndex: b } = v, M = e[T].feature;
5314
- this.addFeature(v, _, T, s, m), i.featureIndex.insert(M, _, T, b, this.index);
5313
+ const { geometry: _, index: T, sourceLayerIndex: b } = v, I = e[T].feature;
5314
+ this.addFeature(v, _, T, s, m), i.featureIndex.insert(I, _, T, b, this.index);
5315
5315
  }
5316
5316
  }
5317
5317
  update(e, i, s) {
@@ -5352,9 +5352,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5352
5352
  const v = m.x, _ = m.y;
5353
5353
  if (v < 0 || v >= Be || _ < 0 || _ >= Be) continue;
5354
5354
  const T = this.segments.prepareSegment(p * p, this.layoutVertexArray, this.indexArray, e.sortKey), b = T.vertexLength;
5355
- for (let M = 0; M < p; M++) for (let I = 0; I < p; I++) Nl(this.layoutVertexArray, v, _, u[I], u[M]);
5356
- for (let M = 0; M < p - 1; M++) for (let I = 0; I < p - 1; I++) {
5357
- const A = b + M * p + I, D = b + (M + 1) * p + I;
5355
+ for (let I = 0; I < p; I++) for (let M = 0; M < p; M++) Nl(this.layoutVertexArray, v, _, u[M], u[I]);
5356
+ for (let I = 0; I < p - 1; I++) for (let M = 0; M < p - 1; M++) {
5357
+ const A = b + I * p + M, D = b + (I + 1) * p + M;
5358
5358
  this.indexArray.emplaceBack(A, D + 1, A + 1), this.indexArray.emplaceBack(A, D, D + 1);
5359
5359
  }
5360
5360
  T.vertexLength += p * p, T.primitiveLength += (p - 1) * (p - 1) * 2;
@@ -5495,10 +5495,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5495
5495
  }
5496
5496
  queryIntersectsFeature({ queryGeometry: e, feature: i, featureState: s, geometry: o, transform: l, pixelsToTileUnits: u, unwrappedTileID: p, getElevation: g }) {
5497
5497
  const m = gu(e, this.paint.get("circle-translate"), this.paint.get("circle-translate-anchor"), -l.bearingInRadians, u), v = this.paint.get("circle-radius").evaluate(i, s) + this.paint.get("circle-stroke-width").evaluate(i, s), _ = this.paint.get("circle-pitch-scale"), T = this.paint.get("circle-pitch-alignment");
5498
- let b, M;
5499
- return T === "map" ? (b = m, M = v * u) : (b = (function(I, A, D, L) {
5500
- return I.map(((k) => yh(k, A, D, L)));
5501
- })(m, l, p, g), M = v), kd({ queryGeometry: b, size: M, transform: l, unwrappedTileID: p, getElevation: g, pitchAlignment: T, pitchScale: _ }, o);
5498
+ let b, I;
5499
+ return T === "map" ? (b = m, I = v * u) : (b = (function(M, A, D, L) {
5500
+ return M.map(((k) => yh(k, A, D, L)));
5501
+ })(m, l, p, g), I = v), kd({ queryGeometry: b, size: I, transform: l, unwrappedTileID: p, getElevation: g, pitchAlignment: T, pitchScale: _ }, o);
5502
5502
  }
5503
5503
  }
5504
5504
  class Fd extends aa {
@@ -5788,7 +5788,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5788
5788
  return !this.isHidden() && !!this.colorRampTextures;
5789
5789
  }
5790
5790
  }
5791
- const Mm = mt([{ name: "a_pos", components: 2, type: "Int16" }], 4), { members: Im } = Mm;
5791
+ const Im = mt([{ name: "a_pos", components: 2, type: "Int16" }], 4), { members: Mm } = Im;
5792
5792
  function _u(r, e, i) {
5793
5793
  const s = i.patternDependencies;
5794
5794
  let o = !1;
@@ -5842,21 +5842,21 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5842
5842
  T.z === 0 && (T.z = Sh(T.x, T.y, m, v, _)), T.prevZ = T.prev, T.nextZ = T.next, T = T.next;
5843
5843
  while (T !== g);
5844
5844
  T.prevZ.nextZ = null, T.prevZ = null, (function(b) {
5845
- let M, I = 1;
5845
+ let I, M = 1;
5846
5846
  do {
5847
5847
  let A, D = b;
5848
5848
  b = null;
5849
5849
  let L = null;
5850
- for (M = 0; D; ) {
5851
- M++;
5850
+ for (I = 0; D; ) {
5851
+ I++;
5852
5852
  let k = D, F = 0;
5853
- for (let j = 0; j < I && (F++, k = k.nextZ, k); j++) ;
5854
- let O = I;
5853
+ for (let j = 0; j < M && (F++, k = k.nextZ, k); j++) ;
5854
+ let O = M;
5855
5855
  for (; F > 0 || O > 0 && k; ) F !== 0 && (O === 0 || !k || D.z <= k.z) ? (A = D, D = D.nextZ, F--) : (A = k, k = k.nextZ, O--), L ? L.nextZ = A : b = A, A.prevZ = L, L = A;
5856
5856
  D = k;
5857
5857
  }
5858
- L.nextZ = null, I *= 2;
5859
- } while (M > 1);
5858
+ L.nextZ = null, M *= 2;
5859
+ } while (I > 1);
5860
5860
  })(T);
5861
5861
  })(r, s, o, l);
5862
5862
  let p = r;
@@ -5873,28 +5873,28 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5873
5873
  const e = r.prev, i = r, s = r.next;
5874
5874
  if (Ft(e, i, s) >= 0) return !1;
5875
5875
  const o = e.x, l = i.x, u = s.x, p = e.y, g = i.y, m = s.y, v = Math.min(o, l, u), _ = Math.min(p, g, m), T = Math.max(o, l, u), b = Math.max(p, g, m);
5876
- let M = s.next;
5877
- for (; M !== e; ) {
5878
- if (M.x >= v && M.x <= T && M.y >= _ && M.y <= b && Zl(o, p, l, g, u, m, M.x, M.y) && Ft(M.prev, M, M.next) >= 0) return !1;
5879
- M = M.next;
5876
+ let I = s.next;
5877
+ for (; I !== e; ) {
5878
+ if (I.x >= v && I.x <= T && I.y >= _ && I.y <= b && Zl(o, p, l, g, u, m, I.x, I.y) && Ft(I.prev, I, I.next) >= 0) return !1;
5879
+ I = I.next;
5880
5880
  }
5881
5881
  return !0;
5882
5882
  }
5883
5883
  function Cm(r, e, i, s) {
5884
5884
  const o = r.prev, l = r, u = r.next;
5885
5885
  if (Ft(o, l, u) >= 0) return !1;
5886
- const p = o.x, g = l.x, m = u.x, v = o.y, _ = l.y, T = u.y, b = Math.min(p, g, m), M = Math.min(v, _, T), I = Math.max(p, g, m), A = Math.max(v, _, T), D = Sh(b, M, e, i, s), L = Sh(I, A, e, i, s);
5886
+ const p = o.x, g = l.x, m = u.x, v = o.y, _ = l.y, T = u.y, b = Math.min(p, g, m), I = Math.min(v, _, T), M = Math.max(p, g, m), A = Math.max(v, _, T), D = Sh(b, I, e, i, s), L = Sh(M, A, e, i, s);
5887
5887
  let k = r.prevZ, F = r.nextZ;
5888
5888
  for (; k && k.z >= D && F && F.z <= L; ) {
5889
- if (k.x >= b && k.x <= I && k.y >= M && k.y <= A && k !== o && k !== u && Zl(p, v, g, _, m, T, k.x, k.y) && Ft(k.prev, k, k.next) >= 0 || (k = k.prevZ, F.x >= b && F.x <= I && F.y >= M && F.y <= A && F !== o && F !== u && Zl(p, v, g, _, m, T, F.x, F.y) && Ft(F.prev, F, F.next) >= 0)) return !1;
5889
+ if (k.x >= b && k.x <= M && k.y >= I && k.y <= A && k !== o && k !== u && Zl(p, v, g, _, m, T, k.x, k.y) && Ft(k.prev, k, k.next) >= 0 || (k = k.prevZ, F.x >= b && F.x <= M && F.y >= I && F.y <= A && F !== o && F !== u && Zl(p, v, g, _, m, T, F.x, F.y) && Ft(F.prev, F, F.next) >= 0)) return !1;
5890
5890
  F = F.nextZ;
5891
5891
  }
5892
5892
  for (; k && k.z >= D; ) {
5893
- if (k.x >= b && k.x <= I && k.y >= M && k.y <= A && k !== o && k !== u && Zl(p, v, g, _, m, T, k.x, k.y) && Ft(k.prev, k, k.next) >= 0) return !1;
5893
+ if (k.x >= b && k.x <= M && k.y >= I && k.y <= A && k !== o && k !== u && Zl(p, v, g, _, m, T, k.x, k.y) && Ft(k.prev, k, k.next) >= 0) return !1;
5894
5894
  k = k.prevZ;
5895
5895
  }
5896
5896
  for (; F && F.z <= L; ) {
5897
- if (F.x >= b && F.x <= I && F.y >= M && F.y <= A && F !== o && F !== u && Zl(p, v, g, _, m, T, F.x, F.y) && Ft(F.prev, F, F.next) >= 0) return !1;
5897
+ if (F.x >= b && F.x <= M && F.y >= I && F.y <= A && F !== o && F !== u && Zl(p, v, g, _, m, T, F.x, F.y) && Ft(F.prev, F, F.next) >= 0) return !1;
5898
5898
  F = F.nextZ;
5899
5899
  }
5900
5900
  return !0;
@@ -5934,19 +5934,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
5934
5934
  do {
5935
5935
  if (ha(o, u.next)) return u.next;
5936
5936
  if (g <= u.y && g >= u.next.y && u.next.y !== u.y) {
5937
- const I = u.x + (g - u.y) * (u.next.x - u.x) / (u.next.y - u.y);
5938
- if (I <= p && I > v && (v = I, m = u.x < u.next.x ? u : u.next, I === p)) return m;
5937
+ const M = u.x + (g - u.y) * (u.next.x - u.x) / (u.next.y - u.y);
5938
+ if (M <= p && M > v && (v = M, m = u.x < u.next.x ? u : u.next, M === p)) return m;
5939
5939
  }
5940
5940
  u = u.next;
5941
5941
  } while (u !== l);
5942
5942
  if (!m) return null;
5943
5943
  const _ = m, T = m.x, b = m.y;
5944
- let M = 1 / 0;
5944
+ let I = 1 / 0;
5945
5945
  u = m;
5946
5946
  do {
5947
5947
  if (p >= u.x && u.x >= T && p !== u.x && Wd(g < b ? p : v, g, T, b, g < b ? v : p, g, u.x, u.y)) {
5948
- const I = Math.abs(g - u.y) / (p - u.x);
5949
- $l(u, o) && (I < M || I === M && (u.x > m.x || u.x === m.x && Rm(m, u))) && (m = u, M = I);
5948
+ const M = Math.abs(g - u.y) / (p - u.x);
5949
+ $l(u, o) && (M < I || M === I && (u.x > m.x || u.x === m.x && Rm(m, u))) && (m = u, I = M);
5950
5950
  }
5951
5951
  u = u.next;
5952
5952
  } while (u !== _);
@@ -6068,14 +6068,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6068
6068
  for (let o = 0; o < s; o += 3) {
6069
6069
  const l = [e[o + 0], e[o + 1], e[o + 2]], u = [this._vertexBuffer[2 * e[o + 0] + 0], this._vertexBuffer[2 * e[o + 0] + 1], this._vertexBuffer[2 * e[o + 1] + 0], this._vertexBuffer[2 * e[o + 1] + 1], this._vertexBuffer[2 * e[o + 2] + 0], this._vertexBuffer[2 * e[o + 2] + 1]];
6070
6070
  let p = 1 / 0, g = 1 / 0, m = -1 / 0, v = -1 / 0;
6071
- for (let I = 0; I < 3; I++) {
6072
- const A = u[2 * I], D = u[2 * I + 1];
6071
+ for (let M = 0; M < 3; M++) {
6072
+ const A = u[2 * M], D = u[2 * M + 1];
6073
6073
  p = Math.min(p, A), m = Math.max(m, A), g = Math.min(g, D), v = Math.max(v, D);
6074
6074
  }
6075
6075
  if (p === m || g === v) continue;
6076
- const _ = Math.floor(p / this._granularityCellSize), T = Math.ceil(m / this._granularityCellSize), b = Math.floor(g / this._granularityCellSize), M = Math.ceil(v / this._granularityCellSize);
6077
- if (_ !== T || b !== M) for (let I = b; I < M; I++) {
6078
- const A = this._scanlineGenerateVertexRingForCellRow(I, u, l);
6076
+ const _ = Math.floor(p / this._granularityCellSize), T = Math.ceil(m / this._granularityCellSize), b = Math.floor(g / this._granularityCellSize), I = Math.ceil(v / this._granularityCellSize);
6077
+ if (_ !== T || b !== I) for (let M = b; M < I; M++) {
6078
+ const A = this._scanlineGenerateVertexRingForCellRow(M, u, l);
6079
6079
  Om(this._vertexBuffer, A, i);
6080
6080
  }
6081
6081
  else i.push(...l);
@@ -6085,30 +6085,30 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6085
6085
  _scanlineGenerateVertexRingForCellRow(e, i, s) {
6086
6086
  const o = e * this._granularityCellSize, l = o + this._granularityCellSize, u = [];
6087
6087
  for (let p = 0; p < 3; p++) {
6088
- const g = i[2 * p], m = i[2 * p + 1], v = i[2 * (p + 1) % 6], _ = i[(2 * (p + 1) + 1) % 6], T = i[2 * (p + 2) % 6], b = i[(2 * (p + 2) + 1) % 6], M = v - g, I = _ - m, A = M === 0, D = I === 0, L = (o - m) / I, k = (l - m) / I, F = Math.min(L, k), O = Math.max(L, k);
6088
+ const g = i[2 * p], m = i[2 * p + 1], v = i[2 * (p + 1) % 6], _ = i[(2 * (p + 1) + 1) % 6], T = i[2 * (p + 2) % 6], b = i[(2 * (p + 2) + 1) % 6], I = v - g, M = _ - m, A = I === 0, D = M === 0, L = (o - m) / M, k = (l - m) / M, F = Math.min(L, k), O = Math.max(L, k);
6089
6089
  if (!D && (F >= 1 || O <= 0) || D && (m < o || m > l)) {
6090
6090
  _ >= o && _ <= l && u.push(s[(p + 1) % 3]);
6091
6091
  continue;
6092
6092
  }
6093
- !D && F > 0 && u.push(this._vertexToIndex(g + M * F, m + I * F));
6094
- const j = g + M * Math.max(F, 0), Y = g + M * Math.min(O, 1);
6095
- A || this._generateIntraEdgeVertices(u, g, m, v, _, j, Y), !D && O < 1 && u.push(this._vertexToIndex(g + M * O, m + I * O)), (D || _ >= o && _ <= l) && u.push(s[(p + 1) % 3]), !D && (_ <= o || _ >= l) && this._generateInterEdgeVertices(u, g, m, v, _, T, b, Y, o, l);
6093
+ !D && F > 0 && u.push(this._vertexToIndex(g + I * F, m + M * F));
6094
+ const j = g + I * Math.max(F, 0), Y = g + I * Math.min(O, 1);
6095
+ A || this._generateIntraEdgeVertices(u, g, m, v, _, j, Y), !D && O < 1 && u.push(this._vertexToIndex(g + I * O, m + M * O)), (D || _ >= o && _ <= l) && u.push(s[(p + 1) % 3]), !D && (_ <= o || _ >= l) && this._generateInterEdgeVertices(u, g, m, v, _, T, b, Y, o, l);
6096
6096
  }
6097
6097
  return u;
6098
6098
  }
6099
6099
  _generateIntraEdgeVertices(e, i, s, o, l, u, p) {
6100
- const g = o - i, m = l - s, v = m === 0, _ = v ? Math.min(i, o) : Math.min(u, p), T = v ? Math.max(i, o) : Math.max(u, p), b = Math.floor(_ / this._granularityCellSize) + 1, M = Math.ceil(T / this._granularityCellSize) - 1;
6101
- if (v ? i < o : u < p) for (let I = b; I <= M; I++) {
6102
- const A = I * this._granularityCellSize;
6100
+ const g = o - i, m = l - s, v = m === 0, _ = v ? Math.min(i, o) : Math.min(u, p), T = v ? Math.max(i, o) : Math.max(u, p), b = Math.floor(_ / this._granularityCellSize) + 1, I = Math.ceil(T / this._granularityCellSize) - 1;
6101
+ if (v ? i < o : u < p) for (let M = b; M <= I; M++) {
6102
+ const A = M * this._granularityCellSize;
6103
6103
  e.push(this._vertexToIndex(A, s + m * (A - i) / g));
6104
6104
  }
6105
- else for (let I = M; I >= b; I--) {
6106
- const A = I * this._granularityCellSize;
6105
+ else for (let M = I; M >= b; M--) {
6106
+ const A = M * this._granularityCellSize;
6107
6107
  e.push(this._vertexToIndex(A, s + m * (A - i) / g));
6108
6108
  }
6109
6109
  }
6110
6110
  _generateInterEdgeVertices(e, i, s, o, l, u, p, g, m, v) {
6111
- const _ = l - s, T = u - o, b = p - l, M = (m - l) / b, I = (v - l) / b, A = Math.min(M, I), D = Math.max(M, I), L = o + T * A;
6111
+ const _ = l - s, T = u - o, b = p - l, I = (m - l) / b, M = (v - l) / b, A = Math.min(I, M), D = Math.max(I, M), L = o + T * A;
6112
6112
  let k = Math.floor(Math.min(L, g) / this._granularityCellSize) + 1, F = Math.ceil(Math.max(L, g) / this._granularityCellSize) - 1, O = g < L;
6113
6113
  const j = b === 0;
6114
6114
  if (j && (p === m || p === v)) return;
@@ -6146,8 +6146,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6146
6146
  _fillPoles(e, i, s) {
6147
6147
  const o = this._vertexBuffer, l = Be, u = e.length;
6148
6148
  for (let p = 2; p < u; p += 3) {
6149
- const g = e[p - 2], m = e[p - 1], v = e[p], _ = o[2 * g], T = o[2 * g + 1], b = o[2 * m], M = o[2 * m + 1], I = o[2 * v], A = o[2 * v + 1];
6150
- i && (T === 0 && M === 0 && this._generatePoleQuad(e, g, m, _, b, pa), M === 0 && A === 0 && this._generatePoleQuad(e, m, v, b, I, pa), A === 0 && T === 0 && this._generatePoleQuad(e, v, g, I, _, pa)), s && (T === l && M === l && this._generatePoleQuad(e, g, m, _, b, Wl), M === l && A === l && this._generatePoleQuad(e, m, v, b, I, Wl), A === l && T === l && this._generatePoleQuad(e, v, g, I, _, Wl));
6149
+ const g = e[p - 2], m = e[p - 1], v = e[p], _ = o[2 * g], T = o[2 * g + 1], b = o[2 * m], I = o[2 * m + 1], M = o[2 * v], A = o[2 * v + 1];
6150
+ i && (T === 0 && I === 0 && this._generatePoleQuad(e, g, m, _, b, pa), I === 0 && A === 0 && this._generatePoleQuad(e, m, v, b, M, pa), A === 0 && T === 0 && this._generatePoleQuad(e, v, g, M, _, pa)), s && (T === l && I === l && this._generatePoleQuad(e, g, m, _, b, Wl), I === l && A === l && this._generatePoleQuad(e, m, v, b, M, Wl), A === l && T === l && this._generatePoleQuad(e, v, g, M, _, Wl));
6151
6151
  }
6152
6152
  }
6153
6153
  _initializeVertices(e) {
@@ -6169,11 +6169,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6169
6169
  try {
6170
6170
  const p = (function(m, v, _ = 2) {
6171
6171
  const T = v && v.length, b = T ? v[0] * _ : m.length;
6172
- let M = qd(m, 0, b, _, !0);
6173
- const I = [];
6174
- if (!M || M.next === M.prev) return I;
6172
+ let I = qd(m, 0, b, _, !0);
6173
+ const M = [];
6174
+ if (!I || I.next === I.prev) return M;
6175
6175
  let A, D, L;
6176
- if (T && (M = (function(k, F, O, j) {
6176
+ if (T && (I = (function(k, F, O, j) {
6177
6177
  const Y = [];
6178
6178
  for (let J = 0, ne = F.length; J < ne; J++) {
6179
6179
  const ie = qd(k, F[J] * j, J < ne - 1 ? F[J + 1] * j : k.length, j, !1);
@@ -6182,7 +6182,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6182
6182
  Y.sort(zm);
6183
6183
  for (let J = 0; J < Y.length; J++) O = km(Y[J], O);
6184
6184
  return O;
6185
- })(m, v, M, _)), m.length > 80 * _) {
6185
+ })(m, v, I, _)), m.length > 80 * _) {
6186
6186
  A = m[0], D = m[1];
6187
6187
  let k = A, F = D;
6188
6188
  for (let O = _; O < b; O += _) {
@@ -6191,7 +6191,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6191
6191
  }
6192
6192
  L = Math.max(k - A, F - D), L = L !== 0 ? 32767 / L : 0;
6193
6193
  }
6194
- return Gl(M, I, _, A, D, L, 0), I;
6194
+ return Gl(I, M, _, A, D, L, 0), M;
6195
6195
  })(s, o), g = this._convertIndices(s, p);
6196
6196
  l = this._subdivideTrianglesScanline(g);
6197
6197
  } catch (p) {
@@ -6223,12 +6223,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6223
6223
  p.push(new de(r[0].x, r[0].y));
6224
6224
  const g = r.length, m = l ? g : g - 1;
6225
6225
  for (let v = 0; v < m; v++) {
6226
- const _ = r[v], T = v < g - 1 ? r[v + 1] : r[0], b = _.x, M = _.y, I = T.x, A = T.y, D = b !== I, L = M !== A;
6226
+ const _ = r[v], T = v < g - 1 ? r[v + 1] : r[0], b = _.x, I = _.y, M = T.x, A = T.y, D = b !== M, L = I !== A;
6227
6227
  if (!D && !L) continue;
6228
- const k = I - b, F = A - M, O = Math.abs(k), j = Math.abs(F);
6229
- let Y = b, J = M;
6228
+ const k = M - b, F = A - I, O = Math.abs(k), j = Math.abs(F);
6229
+ let Y = b, J = I;
6230
6230
  for (; ; ) {
6231
- const ie = k > 0 ? (Math.floor(Y / u) + 1) * u : (Math.ceil(Y / u) - 1) * u, le = F > 0 ? (Math.floor(J / u) + 1) * u : (Math.ceil(J / u) - 1) * u, ce = Math.abs(Y - ie), se = Math.abs(J - le), re = Math.abs(Y - I), _e = Math.abs(J - A), Se = D ? ce / O : Number.POSITIVE_INFINITY, be = L ? se / j : Number.POSITIVE_INFINITY;
6231
+ const ie = k > 0 ? (Math.floor(Y / u) + 1) * u : (Math.ceil(Y / u) - 1) * u, le = F > 0 ? (Math.floor(J / u) + 1) * u : (Math.ceil(J / u) - 1) * u, ce = Math.abs(Y - ie), se = Math.abs(J - le), re = Math.abs(Y - M), _e = Math.abs(J - A), Se = D ? ce / O : Number.POSITIVE_INFINITY, be = L ? se / j : Number.POSITIVE_INFINITY;
6232
6232
  if ((re <= ce || !D) && (_e <= se || !L)) break;
6233
6233
  if (Se < be && D || !L) {
6234
6234
  Y = ie, J += F * Se;
@@ -6240,7 +6240,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6240
6240
  p[p.length - 1].x === ye.x && p[p.length - 1].y === ye.y || p.push(ye);
6241
6241
  }
6242
6242
  }
6243
- const ne = new de(I, A);
6243
+ const ne = new de(M, A);
6244
6244
  p[p.length - 1].x === ne.x && p[p.length - 1].y === ne.y || p.push(ne);
6245
6245
  }
6246
6246
  return p;
@@ -6255,15 +6255,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6255
6255
  const l = e.length;
6256
6256
  let u = s, p = (u + 1) % l;
6257
6257
  for (; ; ) {
6258
- const g = u - 1 >= 0 ? u - 1 : l - 1, m = (p + 1) % l, v = r[2 * e[g]], _ = r[2 * e[m]], T = r[2 * e[u]], b = r[2 * e[u] + 1], M = r[2 * e[p] + 1];
6259
- let I = !1;
6260
- if (v < _) I = !0;
6261
- else if (v > _) I = !1;
6258
+ const g = u - 1 >= 0 ? u - 1 : l - 1, m = (p + 1) % l, v = r[2 * e[g]], _ = r[2 * e[m]], T = r[2 * e[u]], b = r[2 * e[u] + 1], I = r[2 * e[p] + 1];
6259
+ let M = !1;
6260
+ if (v < _) M = !0;
6261
+ else if (v > _) M = !1;
6262
6262
  else {
6263
- const A = M - b, D = -(r[2 * e[p]] - T), L = b < M ? 1 : -1;
6264
- ((v - T) * A + (r[2 * e[g] + 1] - b) * D) * L > ((_ - T) * A + (r[2 * e[m] + 1] - b) * D) * L && (I = !0);
6263
+ const A = I - b, D = -(r[2 * e[p]] - T), L = b < I ? 1 : -1;
6264
+ ((v - T) * A + (r[2 * e[g] + 1] - b) * D) * L > ((_ - T) * A + (r[2 * e[m] + 1] - b) * D) * L && (M = !0);
6265
6265
  }
6266
- if (I) {
6266
+ if (M) {
6267
6267
  const A = e[g], D = e[u], L = e[p];
6268
6268
  A !== D && A !== L && D !== L && i.push(L, D, A), u--, u < 0 && (u = l - 1);
6269
6269
  } else {
@@ -6277,36 +6277,36 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6277
6277
  const m = o.length / 2, v = u && p && g;
6278
6278
  if (m < Ee.MAX_VERTEX_ARRAY_LENGTH) {
6279
6279
  const _ = e.prepareSegment(m, i, s), T = _.vertexLength;
6280
- for (let I = 0; I < l.length; I += 3) s.emplaceBack(T + l[I], T + l[I + 1], T + l[I + 2]);
6281
- let b, M;
6282
- _.vertexLength += m, _.primitiveLength += l.length / 3, v && (M = u.prepareSegment(m, i, p), b = M.vertexLength, M.vertexLength += m);
6283
- for (let I = 0; I < o.length; I += 2) r(o[I], o[I + 1]);
6284
- if (v) for (const I of g) {
6285
- for (let A = 1; A < I.length; A += 2) p.emplaceBack(b + I[A - 1], b + I[A]);
6286
- M.primitiveLength += I.length / 2;
6287
- }
6288
- } else (function(_, T, b, M, I, A) {
6280
+ for (let M = 0; M < l.length; M += 3) s.emplaceBack(T + l[M], T + l[M + 1], T + l[M + 2]);
6281
+ let b, I;
6282
+ _.vertexLength += m, _.primitiveLength += l.length / 3, v && (I = u.prepareSegment(m, i, p), b = I.vertexLength, I.vertexLength += m);
6283
+ for (let M = 0; M < o.length; M += 2) r(o[M], o[M + 1]);
6284
+ if (v) for (const M of g) {
6285
+ for (let A = 1; A < M.length; A += 2) p.emplaceBack(b + M[A - 1], b + M[A]);
6286
+ I.primitiveLength += M.length / 2;
6287
+ }
6288
+ } else (function(_, T, b, I, M, A) {
6289
6289
  const D = [];
6290
- for (let j = 0; j < M.length / 2; j++) D.push(-1);
6290
+ for (let j = 0; j < I.length / 2; j++) D.push(-1);
6291
6291
  const L = { count: 0 };
6292
6292
  let k = 0, F = _.getOrCreateLatestSegment(T, b), O = F.vertexLength;
6293
- for (let j = 2; j < I.length; j += 3) {
6294
- const Y = I[j - 2], J = I[j - 1], ne = I[j];
6293
+ for (let j = 2; j < M.length; j += 3) {
6294
+ const Y = M[j - 2], J = M[j - 1], ne = M[j];
6295
6295
  let ie = D[Y] < k, le = D[J] < k, ce = D[ne] < k;
6296
6296
  F.vertexLength + ((ie ? 1 : 0) + (le ? 1 : 0) + (ce ? 1 : 0)) > Ee.MAX_VERTEX_ARRAY_LENGTH && (F = _.createNewSegment(T, b), k = L.count, ie = !0, le = !0, ce = !0, O = 0);
6297
- const se = Hl(D, M, A, L, Y, ie, F), re = Hl(D, M, A, L, J, le, F), _e = Hl(D, M, A, L, ne, ce, F);
6297
+ const se = Hl(D, I, A, L, Y, ie, F), re = Hl(D, I, A, L, J, le, F), _e = Hl(D, I, A, L, ne, ce, F);
6298
6298
  b.emplaceBack(O + se - k, O + re - k, O + _e - k), F.primitiveLength++;
6299
6299
  }
6300
- })(e, i, s, o, l, r), v && (function(_, T, b, M, I, A) {
6300
+ })(e, i, s, o, l, r), v && (function(_, T, b, I, M, A) {
6301
6301
  const D = [];
6302
- for (let j = 0; j < M.length / 2; j++) D.push(-1);
6302
+ for (let j = 0; j < I.length / 2; j++) D.push(-1);
6303
6303
  const L = { count: 0 };
6304
6304
  let k = 0, F = _.getOrCreateLatestSegment(T, b), O = F.vertexLength;
6305
- for (const j of I) for (let Y = 1; Y < j.length; Y += 2) {
6305
+ for (const j of M) for (let Y = 1; Y < j.length; Y += 2) {
6306
6306
  const J = j[Y - 1], ne = j[Y];
6307
6307
  let ie = D[J] < k, le = D[ne] < k;
6308
6308
  F.vertexLength + ((ie ? 1 : 0) + (le ? 1 : 0)) > Ee.MAX_VERTEX_ARRAY_LENGTH && (F = _.createNewSegment(T, b), k = L.count, ie = !0, le = !0, O = 0);
6309
- const ce = Hl(D, M, A, L, J, ie, F), se = Hl(D, M, A, L, ne, le, F);
6309
+ const ce = Hl(D, I, A, L, J, ie, F), se = Hl(D, I, A, L, ne, le, F);
6310
6310
  b.emplaceBack(O + ce - k, O + se - k), F.primitiveLength++;
6311
6311
  }
6312
6312
  })(u, i, p, o, g, r), e.forceNewSegmentOnNextPrepare(), u?.forceNewSegmentOnNextPrepare();
@@ -6318,9 +6318,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6318
6318
  }
6319
6319
  return r[o];
6320
6320
  }
6321
- class Mh {
6321
+ class Ih {
6322
6322
  constructor(e) {
6323
- this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map(((i) => i.id)), this.index = e.index, this.hasDependencies = !1, this.patternFeatures = [], this.layoutVertexArray = new N(), this.indexArray = new pe(), this.indexArray2 = new Ae(), this.programConfigurations = new Mr(e.layers, e.zoom), this.segments = new Ee(), this.segments2 = new Ee(), this.stateDependentLayerIds = this.layers.filter(((i) => i.isStateDependent())).map(((i) => i.id));
6323
+ this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map(((i) => i.id)), this.index = e.index, this.hasDependencies = !1, this.patternFeatures = [], this.layoutVertexArray = new N(), this.indexArray = new pe(), this.indexArray2 = new Ae(), this.programConfigurations = new Ir(e.layers, e.zoom), this.segments = new Ee(), this.segments2 = new Ee(), this.stateDependentLayerIds = this.layers.filter(((i) => i.isStateDependent())).map(((i) => i.id));
6324
6324
  }
6325
6325
  populate(e, i, s) {
6326
6326
  this.hasDependencies = _u("fill", this.layers, i);
@@ -6328,8 +6328,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6328
6328
  for (const { feature: p, id: g, index: m, sourceLayerIndex: v } of e) {
6329
6329
  const _ = this.layers[0]._featureFilter.needGeometry, T = Yr(p, _);
6330
6330
  if (!this.layers[0]._featureFilter.filter(new ft(this.zoom), T, s)) continue;
6331
- const b = l ? o.evaluate(T, {}, s, i.availableImages) : void 0, M = { id: g, properties: p.properties, type: p.type, sourceLayerIndex: v, index: m, geometry: _ ? T.geometry : Xr(p), patterns: {}, sortKey: b };
6332
- u.push(M);
6331
+ const b = l ? o.evaluate(T, {}, s, i.availableImages) : void 0, I = { id: g, properties: p.properties, type: p.type, sourceLayerIndex: v, index: m, geometry: _ ? T.geometry : Xr(p), patterns: {}, sortKey: b };
6332
+ u.push(I);
6333
6333
  }
6334
6334
  l && u.sort(((p, g) => p.sortKey - g.sortKey));
6335
6335
  for (const p of u) {
@@ -6354,7 +6354,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6354
6354
  return !this.uploaded || this.programConfigurations.needsUpload;
6355
6355
  }
6356
6356
  upload(e) {
6357
- this.uploaded || (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, Im), this.indexBuffer = e.createIndexBuffer(this.indexArray), this.indexBuffer2 = e.createIndexBuffer(this.indexArray2)), this.programConfigurations.upload(e), this.uploaded = !0;
6357
+ this.uploaded || (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, Mm), this.indexBuffer = e.createIndexBuffer(this.indexArray), this.indexBuffer2 = e.createIndexBuffer(this.indexArray2)), this.programConfigurations.upload(e), this.uploaded = !0;
6358
6358
  }
6359
6359
  destroy() {
6360
6360
  this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.indexBuffer2.destroy(), this.programConfigurations.destroy(), this.segments.destroy(), this.segments2.destroy());
@@ -6370,7 +6370,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6370
6370
  }
6371
6371
  }
6372
6372
  let Qd, ep;
6373
- Ce("FillBucket", Mh, { omit: ["layers", "patternFeatures"] });
6373
+ Ce("FillBucket", Ih, { omit: ["layers", "patternFeatures"] });
6374
6374
  var Vm = { get paint() {
6375
6375
  return ep = ep || new vi({ "fill-antialias": new De(ue.paint_fill["fill-antialias"]), "fill-opacity": new Re(ue.paint_fill["fill-opacity"]), "fill-color": new Re(ue.paint_fill["fill-color"]), "fill-outline-color": new Re(ue.paint_fill["fill-outline-color"]), "fill-translate": new De(ue.paint_fill["fill-translate"]), "fill-translate-anchor": new De(ue.paint_fill["fill-translate-anchor"]), "fill-pattern": new Gr(ue.paint_fill["fill-pattern"]) });
6376
6376
  }, get layout() {
@@ -6386,7 +6386,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6386
6386
  s.value.kind === "constant" && s.value.value === void 0 && (this.paint._values["fill-outline-color"] = this.paint._values["fill-color"]);
6387
6387
  }
6388
6388
  createBucket(e) {
6389
- return new Mh(e);
6389
+ return new Ih(e);
6390
6390
  }
6391
6391
  queryRadius() {
6392
6392
  return mu(this.paint.get("fill-translate"));
@@ -6447,7 +6447,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6447
6447
  let v;
6448
6448
  if (this.type === 1) {
6449
6449
  const T = [];
6450
- for (const M of p) T.push(M[0]);
6450
+ for (const I of p) T.push(I[0]);
6451
6451
  const b = m(T);
6452
6452
  v = T.length === 1 ? { type: "Point", coordinates: b[0] } : { type: "MultiPoint", coordinates: b };
6453
6453
  } else if (this.type === 2) {
@@ -6457,7 +6457,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6457
6457
  if (this.type !== 3) throw new Error("unknown feature type");
6458
6458
  {
6459
6459
  const T = tp(p), b = [];
6460
- for (const M of T) b.push(M.map(m));
6460
+ for (const I of T) b.push(I.map(m));
6461
6461
  v = b.length === 1 ? { type: "Polygon", coordinates: b[0] } : { type: "MultiPolygon", coordinates: b };
6462
6462
  }
6463
6463
  }
@@ -6525,13 +6525,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6525
6525
  s.length && (e[s.name] = s);
6526
6526
  }
6527
6527
  }
6528
- const Ih = Math.pow(2, 13);
6528
+ const Mh = Math.pow(2, 13);
6529
6529
  function Yl(r, e, i, s, o, l, u, p) {
6530
- r.emplaceBack(e, i, 2 * Math.floor(s * Ih) + u, o * Ih * 2, l * Ih * 2, Math.round(p));
6530
+ r.emplaceBack(e, i, 2 * Math.floor(s * Mh) + u, o * Mh * 2, l * Mh * 2, Math.round(p));
6531
6531
  }
6532
6532
  class Eh {
6533
6533
  constructor(e) {
6534
- this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map(((i) => i.id)), this.index = e.index, this.hasDependencies = !1, this.layoutVertexArray = new Z(), this.centroidVertexArray = new V(), this.indexArray = new pe(), this.programConfigurations = new Mr(e.layers, e.zoom), this.segments = new Ee(), this.stateDependentLayerIds = this.layers.filter(((i) => i.isStateDependent())).map(((i) => i.id));
6534
+ this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map(((i) => i.id)), this.index = e.index, this.hasDependencies = !1, this.layoutVertexArray = new Z(), this.centroidVertexArray = new V(), this.indexArray = new pe(), this.programConfigurations = new Ir(e.layers, e.zoom), this.segments = new Ee(), this.stateDependentLayerIds = this.layers.filter(((i) => i.isStateDependent())).map(((i) => i.id));
6535
6535
  }
6536
6536
  populate(e, i, s) {
6537
6537
  this.features = [], this.hasDependencies = _u("fill-extrusion", this.layers, i);
@@ -6631,15 +6631,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6631
6631
  return !0;
6632
6632
  }
6633
6633
  queryIntersectsFeature({ queryGeometry: e, feature: i, featureState: s, geometry: o, transform: l, pixelsToTileUnits: u, pixelPosMatrix: p }) {
6634
- const g = gu(e, this.paint.get("fill-extrusion-translate"), this.paint.get("fill-extrusion-translate-anchor"), -l.bearingInRadians, u), m = this.paint.get("fill-extrusion-height").evaluate(i, s), v = this.paint.get("fill-extrusion-base").evaluate(i, s), _ = (function(b, M) {
6635
- const I = [];
6634
+ const g = gu(e, this.paint.get("fill-extrusion-translate"), this.paint.get("fill-extrusion-translate-anchor"), -l.bearingInRadians, u), m = this.paint.get("fill-extrusion-height").evaluate(i, s), v = this.paint.get("fill-extrusion-base").evaluate(i, s), _ = (function(b, I) {
6635
+ const M = [];
6636
6636
  for (const A of b) {
6637
6637
  const D = [A.x, A.y, 0, 1];
6638
- Ke(D, D, M), I.push(new de(D[0] / D[3], D[1] / D[3]));
6638
+ Ke(D, D, I), M.push(new de(D[0] / D[3], D[1] / D[3]));
6639
6639
  }
6640
- return I;
6641
- })(g, p), T = (function(b, M, I, A) {
6642
- const D = [], L = [], k = A[8] * M, F = A[9] * M, O = A[10] * M, j = A[11] * M, Y = A[8] * I, J = A[9] * I, ne = A[10] * I, ie = A[11] * I;
6640
+ return M;
6641
+ })(g, p), T = (function(b, I, M, A) {
6642
+ const D = [], L = [], k = A[8] * I, F = A[9] * I, O = A[10] * I, j = A[11] * I, Y = A[8] * M, J = A[9] * M, ne = A[10] * M, ie = A[11] * M;
6643
6643
  for (const le of b) {
6644
6644
  const ce = [], se = [];
6645
6645
  for (const re of le) {
@@ -6652,14 +6652,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6652
6652
  }
6653
6653
  return [D, L];
6654
6654
  })(o, v, m, p);
6655
- return (function(b, M, I) {
6655
+ return (function(b, I, M) {
6656
6656
  let A = 1 / 0;
6657
- Ad(I, M) && (A = sp(I, M[0]));
6658
- for (let D = 0; D < M.length; D++) {
6659
- const L = M[D], k = b[D];
6657
+ Ad(M, I) && (A = sp(M, I[0]));
6658
+ for (let D = 0; D < I.length; D++) {
6659
+ const L = I[D], k = b[D];
6660
6660
  for (let F = 0; F < L.length - 1; F++) {
6661
6661
  const O = L[F], j = [O, L[F + 1], k[F + 1], k[F], O];
6662
- la(I, j) && (A = Math.min(A, sp(I, j)));
6662
+ la(M, j) && (A = Math.min(A, sp(M, j)));
6663
6663
  }
6664
6664
  }
6665
6665
  return A !== 1 / 0 && A;
@@ -6676,7 +6676,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6676
6676
  let o;
6677
6677
  for (; !o || s.equals(o); ) if (o = e[i++], !o) return 1 / 0;
6678
6678
  for (; i < e.length; i++) {
6679
- const l = e[i], u = r[0], p = o.sub(s), g = l.sub(s), m = u.sub(s), v = Kl(p, p), _ = Kl(p, g), T = Kl(g, g), b = Kl(m, p), M = Kl(m, g), I = v * T - _ * _, A = (T * b - _ * M) / I, D = (v * M - _ * b) / I, L = s.z * (1 - A - D) + o.z * A + l.z * D;
6679
+ const l = e[i], u = r[0], p = o.sub(s), g = l.sub(s), m = u.sub(s), v = Kl(p, p), _ = Kl(p, g), T = Kl(g, g), b = Kl(m, p), I = Kl(m, g), M = v * T - _ * _, A = (T * b - _ * I) / M, D = (v * I - _ * b) / M, L = s.z * (1 - A - D) + o.z * A + l.z * D;
6680
6680
  if (isFinite(L)) return L;
6681
6681
  }
6682
6682
  return 1 / 0;
@@ -6728,8 +6728,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6728
6728
  }
6729
6729
  continue;
6730
6730
  }
6731
- const b = T + _ >> 1, M = u[2 * b], I = u[2 * b + 1];
6732
- M >= e && M <= s && I >= i && I <= o && m.push(l[b]), (v === 0 ? e <= M : i <= I) && (g.push(T), g.push(b - 1), g.push(1 - v)), (v === 0 ? s >= M : o >= I) && (g.push(b + 1), g.push(_), g.push(1 - v));
6731
+ const b = T + _ >> 1, I = u[2 * b], M = u[2 * b + 1];
6732
+ I >= e && I <= s && M >= i && M <= o && m.push(l[b]), (v === 0 ? e <= I : i <= M) && (g.push(T), g.push(b - 1), g.push(1 - v)), (v === 0 ? s >= I : o >= M) && (g.push(b + 1), g.push(_), g.push(1 - v));
6733
6733
  }
6734
6734
  return m;
6735
6735
  }
@@ -6742,8 +6742,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6742
6742
  for (let A = T; A <= _; A++) lp(l[2 * A], l[2 * A + 1], e, i) <= m && g.push(o[A]);
6743
6743
  continue;
6744
6744
  }
6745
- const b = T + _ >> 1, M = l[2 * b], I = l[2 * b + 1];
6746
- lp(M, I, e, i) <= m && g.push(o[b]), (v === 0 ? e - s <= M : i - s <= I) && (p.push(T), p.push(b - 1), p.push(1 - v)), (v === 0 ? e + s >= M : i + s >= I) && (p.push(b + 1), p.push(_), p.push(1 - v));
6745
+ const b = T + _ >> 1, I = l[2 * b], M = l[2 * b + 1];
6746
+ lp(I, M, e, i) <= m && g.push(o[b]), (v === 0 ? e - s <= I : i - s <= M) && (p.push(T), p.push(b - 1), p.push(1 - v)), (v === 0 ? e + s >= I : i + s >= M) && (p.push(b + 1), p.push(_), p.push(1 - v));
6747
6747
  }
6748
6748
  return g;
6749
6749
  }
@@ -6788,8 +6788,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6788
6788
  const b = Qm(r[T], r[T + 1], g, m, v, _);
6789
6789
  if (b > o) u = T, o = b;
6790
6790
  else if (b === o) {
6791
- const M = Math.abs(T - l);
6792
- M < p && (u = T, p = M);
6791
+ const I = Math.abs(T - l);
6792
+ I < p && (u = T, p = I);
6793
6793
  }
6794
6794
  }
6795
6795
  o > s && (u - e > 3 && Dh(r, e, u, s), r[u + 2] = o, i - u > 3 && Dh(r, u, i, s));
@@ -6872,8 +6872,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6872
6872
  case "MultiLineString":
6873
6873
  return void (function(p, g, m, v, _, T) {
6874
6874
  if (_.lineMetrics) for (const b of m.coordinates) {
6875
- const M = { points: [] };
6876
- Rh(b, M, v, !1), p.push(ri(g, "LineString", M, T));
6875
+ const I = { points: [] };
6876
+ Rh(b, I, v, !1), p.push(ri(g, "LineString", I, T));
6877
6877
  }
6878
6878
  else {
6879
6879
  const b = [];
@@ -6889,8 +6889,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
6889
6889
  return void (function(p, g, m, v, _) {
6890
6890
  const T = [];
6891
6891
  for (const b of m.coordinates) {
6892
- const M = [];
6893
- Lh(b, M, v, !0), T.push(M);
6892
+ const I = [];
6893
+ Lh(b, I, v, !0), T.push(I);
6894
6894
  }
6895
6895
  p.push(ri(g, "MultiPolygon", T, _));
6896
6896
  })(r, l, e.geometry, u, e.properties);
@@ -7024,8 +7024,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7024
7024
  u && (m = Math.sqrt(Math.pow(D - F, 2) + Math.pow(L - O, 2))), j < i ? Y > i && (v = g(p, D, L, F, O, i), u && (p.start = _ + m * v)) : j > s ? Y < s && (v = g(p, D, L, F, O, s), u && (p.start = _ + m * v)) : ga(p.points, D, L, k), Y < i && j >= i && (v = g(p, D, L, F, O, i), J = !0), Y > s && j <= s && (v = g(p, D, L, F, O, s), J = !0), !l && J && (u && (p.end = _ + m * v), e.push(p), p = pp(r)), u && (_ += m);
7025
7025
  }
7026
7026
  let T = r.points.length - 3;
7027
- const b = r.points[T], M = r.points[T + 1], I = o === bi.X ? b : M;
7028
- I >= i && I <= s && ga(p.points, b, M, r.points[T + 2]), T = p.points.length - 3, l && T >= 3 && (p.points[T] !== p.points[0] || p.points[T + 1] !== p.points[1]) && ga(p.points, p.points[0], p.points[1], p.points[2]), p.points.length && (zh(p), e.push(p));
7027
+ const b = r.points[T], I = r.points[T + 1], M = o === bi.X ? b : I;
7028
+ M >= i && M <= s && ga(p.points, b, I, r.points[T + 2]), T = p.points.length - 3, l && T >= 3 && (p.points[T] !== p.points[0] || p.points[T + 1] !== p.points[1]) && ga(p.points, p.points[0], p.points[1], p.points[2]), p.points.length && (zh(p), e.push(p));
7029
7029
  }
7030
7030
  function pp(r) {
7031
7031
  return { points: [], size: r.size, start: r.start, end: r.end };
@@ -7229,12 +7229,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7229
7229
  let v, _, T;
7230
7230
  if (m) v = jh(i, g, this.clusterProps), _ = i[g], T = i[g + 1];
7231
7231
  else {
7232
- const I = this.points[i[g + 3]];
7233
- v = I.tags, [_, T] = I.geometry;
7232
+ const M = this.points[i[g + 3]];
7233
+ v = M.tags, [_, T] = M.geometry;
7234
7234
  }
7235
7235
  const b = { type: 1, geometry: [[Math.round(this.options.extent * (_ * l - s)), Math.round(this.options.extent * (T * l - o))]], tags: v };
7236
- let M;
7237
- M = m || this.options.generateId ? i[g + 3] : this.points[i[g + 3]].id, M !== void 0 && (b.id = M), u.features.push(b);
7236
+ let I;
7237
+ I = m || this.options.generateId ? i[g + 3] : this.points[i[g + 3]].id, I !== void 0 && (b.id = I), u.features.push(b);
7238
7238
  }
7239
7239
  }
7240
7240
  limitZoom(e) {
@@ -7245,16 +7245,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7245
7245
  for (let _ = 0; _ < g.length; _ += v) {
7246
7246
  if (g[_ + 2] <= i) continue;
7247
7247
  g[_ + 2] = i;
7248
- const T = g[_], b = g[_ + 1], M = e.within(g[_], g[_ + 1], p), I = g[_ + 5];
7249
- let A = I;
7250
- for (const D of M) {
7248
+ const T = g[_], b = g[_ + 1], I = e.within(g[_], g[_ + 1], p), M = g[_ + 5];
7249
+ let A = M;
7250
+ for (const D of I) {
7251
7251
  const L = D * v;
7252
7252
  g[L + 2] > i && (A += g[L + 5]);
7253
7253
  }
7254
- if (A > I && A >= u) {
7255
- let D, L = T * I, k = b * I, F = -1;
7254
+ if (A > M && A >= u) {
7255
+ let D, L = T * M, k = b * M, F = -1;
7256
7256
  const O = (_ / v << 5) + (i + 1) + this.points.length;
7257
- for (const j of M) {
7257
+ for (const j of I) {
7258
7258
  const Y = j * v;
7259
7259
  if (g[Y + 2] <= i) continue;
7260
7260
  g[Y + 2] = i;
@@ -7264,7 +7264,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7264
7264
  g[_ + 4] = O, m.push(L / A, k / A, 1 / 0, O, -1, A), l && m.push(F);
7265
7265
  } else {
7266
7266
  for (let D = 0; D < v; D++) m.push(g[_ + D]);
7267
- if (A > 1) for (const D of M) {
7267
+ if (A > 1) for (const D of I) {
7268
7268
  const L = D * v;
7269
7269
  if (!(g[L + 2] <= i)) {
7270
7270
  g[L + 2] = i;
@@ -7361,8 +7361,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7361
7361
  let v = 0;
7362
7362
  for (let _ = 0, T = g.length, b = T - 2; _ < T; b = _, _ += 2) v += (g[_] - g[b]) * (g[_ + 1] + g[b + 1]);
7363
7363
  if (v > 0 === m) for (let _ = 0, T = g.length; _ < T / 2; _ += 2) {
7364
- const b = g[_], M = g[_ + 1];
7365
- g[_] = g[T - 2 - _], g[_ + 1] = g[T - 1 - _], g[T - 2 - _] = b, g[T - 1 - _] = M;
7364
+ const b = g[_], I = g[_ + 1];
7365
+ g[_] = g[T - 2 - _], g[_ + 1] = g[T - 1 - _], g[T - 2 - _] = b, g[T - 1 - _] = I;
7366
7366
  }
7367
7367
  })(p, l), r.push(p);
7368
7368
  }
@@ -7445,10 +7445,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7445
7445
  }
7446
7446
  if (b.source = null, !e.length) continue;
7447
7447
  v > 1 && console.time("clipping");
7448
- const M = 0.5 * m.buffer / m.extent, I = 0.5 - M, A = 0.5 + M, D = 1 + M;
7448
+ const I = 0.5 * m.buffer / m.extent, M = 0.5 - I, A = 0.5 + I, D = 1 + I;
7449
7449
  let L = null, k = null, F = null, O = null;
7450
- const j = En(e, _, s - M, s + A, bi.X, b.minX, b.maxX, m), Y = En(e, _, s + I, s + D, bi.X, b.minX, b.maxX, m);
7451
- j && (L = En(j, _, o - M, o + A, bi.Y, b.minY, b.maxY, m), k = En(j, _, o + I, o + D, bi.Y, b.minY, b.maxY, m)), Y && (F = En(Y, _, o - M, o + A, bi.Y, b.minY, b.maxY, m), O = En(Y, _, o + I, o + D, bi.Y, b.minY, b.maxY, m)), v > 1 && console.timeEnd("clipping"), g.push(L || [], i + 1, 2 * s, 2 * o), g.push(k || [], i + 1, 2 * s, 2 * o + 1), g.push(F || [], i + 1, 2 * s + 1, 2 * o), g.push(O || [], i + 1, 2 * s + 1, 2 * o + 1);
7450
+ const j = En(e, _, s - I, s + A, bi.X, b.minX, b.maxX, m), Y = En(e, _, s + M, s + D, bi.X, b.minX, b.maxX, m);
7451
+ j && (L = En(j, _, o - I, o + A, bi.Y, b.minY, b.maxY, m), k = En(j, _, o + M, o + D, bi.Y, b.minY, b.maxY, m)), Y && (F = En(Y, _, o - I, o + A, bi.Y, b.minY, b.maxY, m), O = En(Y, _, o + M, o + D, bi.Y, b.minY, b.maxY, m)), v > 1 && console.timeEnd("clipping"), g.push(L || [], i + 1, 2 * s, 2 * o), g.push(k || [], i + 1, 2 * s, 2 * o + 1), g.push(F || [], i + 1, 2 * s + 1, 2 * o), g.push(O || [], i + 1, 2 * s + 1, 2 * o + 1);
7452
7452
  }
7453
7453
  }
7454
7454
  invalidateTiles(e) {
@@ -7458,10 +7458,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7458
7458
  for (const v of e) o = Math.min(o, v.minX), l = Math.max(l, v.maxX), u = Math.min(u, v.minY), p = Math.max(p, v.maxY);
7459
7459
  const g = i.buffer / i.extent, m = /* @__PURE__ */ new Set();
7460
7460
  for (const v in this.tiles) {
7461
- const _ = this.tiles[v], T = 1 << _.z, b = (_.x - g) / T, M = (_.x + 1 + g) / T, I = (_.y - g) / T, A = (_.y + 1 + g) / T;
7462
- if (l < b || o >= M || p < I || u >= A) continue;
7461
+ const _ = this.tiles[v], T = 1 << _.z, b = (_.x - g) / T, I = (_.x + 1 + g) / T, M = (_.y - g) / T, A = (_.y + 1 + g) / T;
7462
+ if (l < b || o >= I || p < M || u >= A) continue;
7463
7463
  let D = !1;
7464
- for (const L of e) if (L.maxX >= b && L.minX < M && L.maxY >= I && L.minY < A) {
7464
+ for (const L of e) if (L.maxX >= b && L.minX < I && L.maxY >= M && L.minY < A) {
7465
7465
  D = !0;
7466
7466
  break;
7467
7467
  }
@@ -7485,7 +7485,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7485
7485
  constructor(e) {
7486
7486
  this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map(((i) => i.id)), this.index = e.index, this.hasDependencies = !1, this.patternFeatures = [], this.lineClipsArray = [], this.gradients = {};
7487
7487
  for (const i of this.layers) this.gradients[i.id] = {};
7488
- this.layoutVertexArray = new X(), this.layoutVertexArray2 = new $(), this.indexArray = new pe(), this.programConfigurations = new Mr(e.layers, e.zoom), this.segments = new Ee(), this.maxLineLength = 0, this.stateDependentLayerIds = this.layers.filter(((i) => i.isStateDependent())).map(((i) => i.id));
7488
+ this.layoutVertexArray = new X(), this.layoutVertexArray2 = new $(), this.indexArray = new pe(), this.programConfigurations = new Ir(e.layers, e.zoom), this.segments = new Ee(), this.maxLineLength = 0, this.stateDependentLayerIds = this.layers.filter(((i) => i.isStateDependent())).map(((i) => i.id));
7489
7489
  }
7490
7490
  populate(e, i, s) {
7491
7491
  this.hasDependencies = _u("line", this.layers, i) || this.hasLineDasharray(this.layers);
@@ -7493,8 +7493,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7493
7493
  for (const { feature: p, id: g, index: m, sourceLayerIndex: v } of e) {
7494
7494
  const _ = this.layers[0]._featureFilter.needGeometry, T = Yr(p, _);
7495
7495
  if (!this.layers[0]._featureFilter.filter(new ft(this.zoom), T, s)) continue;
7496
- const b = l ? o.evaluate(T, {}, s) : void 0, M = { id: g, properties: p.properties, type: p.type, sourceLayerIndex: v, index: m, geometry: _ ? T.geometry : Xr(p), patterns: {}, dashes: {}, sortKey: b };
7497
- u.push(M);
7496
+ const b = l ? o.evaluate(T, {}, s) : void 0, I = { id: g, properties: p.properties, type: p.type, sourceLayerIndex: v, index: m, geometry: _ ? T.geometry : Xr(p), patterns: {}, dashes: {}, sortKey: b };
7497
+ u.push(I);
7498
7498
  }
7499
7499
  l && u.sort(((p, g) => p.sortKey - g.sortKey));
7500
7500
  for (const p of u) {
@@ -7543,34 +7543,34 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7543
7543
  if (v < (m ? 3 : 2)) return;
7544
7544
  s === "bevel" && (l = 1.05);
7545
7545
  const T = this.overscaling <= 16 ? 122880 / (512 * this.overscaling) : 0, b = this.segments.prepareSegment(10 * v, this.layoutVertexArray, this.indexArray);
7546
- let M, I, A, D, L;
7547
- this.e1 = this.e2 = -1, m && (M = e[v - 2], L = e[_].sub(M)._unit()._perp());
7546
+ let I, M, A, D, L;
7547
+ this.e1 = this.e2 = -1, m && (I = e[v - 2], L = e[_].sub(I)._unit()._perp());
7548
7548
  for (let k = _; k < v; k++) {
7549
7549
  if (A = k === v - 1 ? m ? e[_ + 1] : void 0 : e[k + 1], A && e[k].equals(A)) continue;
7550
- L && (D = L), M && (I = M), M = e[k], L = A ? A.sub(M)._unit()._perp() : D, D || (D = L);
7550
+ L && (D = L), I && (M = I), I = e[k], L = A ? A.sub(I)._unit()._perp() : D, D || (D = L);
7551
7551
  let F = D.add(L);
7552
7552
  F.x === 0 && F.y === 0 || F._unit();
7553
- const O = D.x * L.x + D.y * L.y, j = F.x * L.x + F.y * L.y, Y = j !== 0 ? 1 / j : 1 / 0, J = 2 * Math.sqrt(2 - 2 * j), ne = j < wg && I && A, ie = D.x * L.y - D.y * L.x > 0;
7553
+ const O = D.x * L.x + D.y * L.y, j = F.x * L.x + F.y * L.y, Y = j !== 0 ? 1 / j : 1 / 0, J = 2 * Math.sqrt(2 - 2 * j), ne = j < wg && M && A, ie = D.x * L.y - D.y * L.x > 0;
7554
7554
  if (ne && k > _) {
7555
- const se = M.dist(I);
7555
+ const se = I.dist(M);
7556
7556
  if (se > 2 * T) {
7557
- const re = M.sub(M.sub(I)._mult(T / se)._round());
7558
- this.updateDistance(I, re), this.addCurrentVertex(re, D, 0, 0, b), I = re;
7557
+ const re = I.sub(I.sub(M)._mult(T / se)._round());
7558
+ this.updateDistance(M, re), this.addCurrentVertex(re, D, 0, 0, b), M = re;
7559
7559
  }
7560
7560
  }
7561
- const le = I && A;
7561
+ const le = M && A;
7562
7562
  let ce = le ? s : m ? "butt" : o;
7563
- if (le && ce === "round" && (Y < u ? ce = "miter" : Y <= 2 && (ce = "fakeround")), ce === "miter" && Y > l && (ce = "bevel"), ce === "bevel" && (Y > 2 && (ce = "flipbevel"), Y < l && (ce = "miter")), I && this.updateDistance(I, M), ce === "miter") F._mult(Y), this.addCurrentVertex(M, F, 0, 0, b);
7563
+ if (le && ce === "round" && (Y < u ? ce = "miter" : Y <= 2 && (ce = "fakeround")), ce === "miter" && Y > l && (ce = "bevel"), ce === "bevel" && (Y > 2 && (ce = "flipbevel"), Y < l && (ce = "miter")), M && this.updateDistance(M, I), ce === "miter") F._mult(Y), this.addCurrentVertex(I, F, 0, 0, b);
7564
7564
  else if (ce === "flipbevel") {
7565
7565
  if (Y > 100) F = L.mult(-1);
7566
7566
  else {
7567
7567
  const se = Y * D.add(L).mag() / D.sub(L).mag();
7568
7568
  F._perp()._mult(se * (ie ? -1 : 1));
7569
7569
  }
7570
- this.addCurrentVertex(M, F, 0, 0, b), this.addCurrentVertex(M, F.mult(-1), 0, 0, b);
7570
+ this.addCurrentVertex(I, F, 0, 0, b), this.addCurrentVertex(I, F.mult(-1), 0, 0, b);
7571
7571
  } else if (ce === "bevel" || ce === "fakeround") {
7572
7572
  const se = -Math.sqrt(Y * Y - 1), re = ie ? se : 0, _e = ie ? 0 : se;
7573
- if (I && this.addCurrentVertex(M, D, re, _e, b), ce === "fakeround") {
7573
+ if (M && this.addCurrentVertex(I, D, re, _e, b), ce === "fakeround") {
7574
7574
  const Se = Math.round(180 * J / Math.PI / 20);
7575
7575
  for (let be = 1; be < Se; be++) {
7576
7576
  let ye = be / Se;
@@ -7579,20 +7579,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7579
7579
  ye += ye * tt * (ye - 1) * ((1.0904 + O * (O * (3.55645 - 1.43519 * O) - 3.2452)) * tt * tt + (0.848013 + O * (0.215638 * O - 1.06021)));
7580
7580
  }
7581
7581
  const Fe = L.sub(D)._mult(ye)._add(D)._unit()._mult(ie ? -1 : 1);
7582
- this.addHalfVertex(M, Fe.x, Fe.y, !1, ie, 0, b);
7582
+ this.addHalfVertex(I, Fe.x, Fe.y, !1, ie, 0, b);
7583
7583
  }
7584
7584
  }
7585
- A && this.addCurrentVertex(M, L, -re, -_e, b);
7586
- } else if (ce === "butt") this.addCurrentVertex(M, F, 0, 0, b);
7585
+ A && this.addCurrentVertex(I, L, -re, -_e, b);
7586
+ } else if (ce === "butt") this.addCurrentVertex(I, F, 0, 0, b);
7587
7587
  else if (ce === "square") {
7588
- const se = I ? 1 : -1;
7589
- this.addCurrentVertex(M, F, se, se, b);
7590
- } else ce === "round" && (I && (this.addCurrentVertex(M, D, 0, 0, b), this.addCurrentVertex(M, D, 1, 1, b, !0)), A && (this.addCurrentVertex(M, L, -1, -1, b, !0), this.addCurrentVertex(M, L, 0, 0, b)));
7588
+ const se = M ? 1 : -1;
7589
+ this.addCurrentVertex(I, F, se, se, b);
7590
+ } else ce === "round" && (M && (this.addCurrentVertex(I, D, 0, 0, b), this.addCurrentVertex(I, D, 1, 1, b, !0)), A && (this.addCurrentVertex(I, L, -1, -1, b, !0), this.addCurrentVertex(I, L, 0, 0, b)));
7591
7591
  if (ne && k < v - 1) {
7592
- const se = M.dist(A);
7592
+ const se = I.dist(A);
7593
7593
  if (se > 2 * T) {
7594
- const re = M.add(A.sub(M)._mult(T / se)._round());
7595
- this.updateDistance(M, re), this.addCurrentVertex(re, L, 0, 0, b), M = re;
7594
+ const re = I.add(A.sub(I)._mult(T / se)._round());
7595
+ this.updateDistance(I, re), this.addCurrentVertex(re, L, 0, 0, b), I = re;
7596
7596
  }
7597
7597
  }
7598
7598
  }
@@ -7644,10 +7644,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7644
7644
  return i = Zi({}, i, { zoom: Math.floor(i.zoom) }), super.evaluate(e, i, s, o);
7645
7645
  }
7646
7646
  }
7647
- let Mu;
7647
+ let Iu;
7648
7648
  class Sg extends Hi {
7649
7649
  constructor(e, i) {
7650
- super(e, wp, i), this.gradientVersion = 0, Mu || (Mu = new Tg(wp.paint.properties["line-width"].specification), Mu.useIntegerZoom = !0);
7650
+ super(e, wp, i), this.gradientVersion = 0, Iu || (Iu = new Tg(wp.paint.properties["line-width"].specification), Iu.useIntegerZoom = !0);
7651
7651
  }
7652
7652
  _handleSpecialPaintPropertyUpdate(e) {
7653
7653
  if (e === "line-gradient") {
@@ -7661,7 +7661,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7661
7661
  return this._transitionablePaint._values["line-gradient"].value.expression;
7662
7662
  }
7663
7663
  recalculate(e, i) {
7664
- super.recalculate(e, i), this.paint._values["line-floorwidth"] = Mu.possiblyEvaluate(this._transitioningPaint._values["line-width"].value, e);
7664
+ super.recalculate(e, i), this.paint._values["line-floorwidth"] = Iu.possiblyEvaluate(this._transitioningPaint._values["line-width"].value, e);
7665
7665
  }
7666
7666
  createBucket(e) {
7667
7667
  return new Zh(e);
@@ -7675,18 +7675,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7675
7675
  return m && (o = (function(v, _) {
7676
7676
  const T = [];
7677
7677
  for (const b of v) {
7678
- const M = pm(b), I = [];
7679
- for (let A = 0; A < M.length; A++) {
7680
- const D = M[A], L = M[A - 1], k = M[A + 1], F = A === 0 ? new de(0, 0) : D.sub(L)._unit()._perp(), O = A === M.length - 1 ? new de(0, 0) : k.sub(D)._unit()._perp(), j = F._add(O)._unit(), Y = j.x * O.x + j.y * O.y;
7681
- Y !== 0 && j._mult(1 / Y), I.push(j._mult(_)._add(D));
7678
+ const I = pm(b), M = [];
7679
+ for (let A = 0; A < I.length; A++) {
7680
+ const D = I[A], L = I[A - 1], k = I[A + 1], F = A === 0 ? new de(0, 0) : D.sub(L)._unit()._perp(), O = A === I.length - 1 ? new de(0, 0) : k.sub(D)._unit()._perp(), j = F._add(O)._unit(), Y = j.x * O.x + j.y * O.y;
7681
+ Y !== 0 && j._mult(1 / Y), M.push(j._mult(_)._add(D));
7682
7682
  }
7683
- T.push(I);
7683
+ T.push(M);
7684
7684
  }
7685
7685
  return T;
7686
7686
  })(o, m * u)), (function(v, _, T) {
7687
7687
  for (const b of _) {
7688
7688
  if (v.length >= 3) {
7689
- for (const M of b) if (ca(v, M)) return !0;
7689
+ for (const I of b) if (ca(v, I)) return !0;
7690
7690
  }
7691
7691
  if (um(v, b, T)) return !0;
7692
7692
  }
@@ -7700,9 +7700,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7700
7700
  function Tp(r, e) {
7701
7701
  return e > 0 ? e + 2 * r : r;
7702
7702
  }
7703
- const Pg = mt([{ name: "a_pos_offset", components: 4, type: "Int16" }, { name: "a_data", components: 4, type: "Uint16" }, { name: "a_pixeloffset", components: 4, type: "Int16" }], 4), Mg = mt([{ name: "a_projected_pos", components: 3, type: "Float32" }], 4);
7703
+ const Pg = mt([{ name: "a_pos_offset", components: 4, type: "Int16" }, { name: "a_data", components: 4, type: "Uint16" }, { name: "a_pixeloffset", components: 4, type: "Int16" }], 4), Ig = mt([{ name: "a_projected_pos", components: 3, type: "Float32" }], 4);
7704
7704
  mt([{ name: "a_fade_opacity", components: 1, type: "Uint32" }], 4);
7705
- const Ig = mt([{ name: "a_placed", components: 2, type: "Uint8" }, { name: "a_shift", components: 2, type: "Float32" }, { name: "a_box_real", components: 2, type: "Int16" }]);
7705
+ const Mg = mt([{ name: "a_placed", components: 2, type: "Uint8" }, { name: "a_shift", components: 2, type: "Float32" }, { name: "a_box_real", components: 2, type: "Int16" }]);
7706
7706
  mt([{ type: "Int16", name: "anchorPointX" }, { type: "Int16", name: "anchorPointY" }, { type: "Int16", name: "x1" }, { type: "Int16", name: "y1" }, { type: "Int16", name: "x2" }, { type: "Int16", name: "y2" }, { type: "Uint32", name: "featureIndex" }, { type: "Uint16", name: "sourceLayerIndex" }, { type: "Uint16", name: "bucketIndex" }]);
7707
7707
  const Sp = mt([{ name: "a_pos", components: 2, type: "Int16" }, { name: "a_anchor_pos", components: 2, type: "Int16" }, { name: "a_extrude", components: 2, type: "Int16" }], 4), Eg = mt([{ name: "a_pos", components: 2, type: "Float32" }, { name: "a_radius", components: 1, type: "Float32" }, { name: "a_flags", components: 2, type: "Int16" }], 4);
7708
7708
  function Cg(r, e, i) {
@@ -7726,7 +7726,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7726
7726
  return u ? u.displaySize[0] * e.scale * Wt / l + o : 0;
7727
7727
  }
7728
7728
  }
7729
- function Mp(r, e, i, s) {
7729
+ function Ip(r, e, i, s) {
7730
7730
  const o = Math.pow(r - e, 2);
7731
7731
  return s ? r < e ? o / 2 : 2 * o : o + Math.abs(i) * i;
7732
7732
  }
@@ -7734,10 +7734,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7734
7734
  let s = 0;
7735
7735
  return r === 10 && (s -= 1e4), i && (s += 150), r !== 40 && r !== 65288 || (s += 50), e !== 41 && e !== 65289 || (s += 50), s;
7736
7736
  }
7737
- function Ip(r, e, i, s, o, l) {
7738
- let u = null, p = Mp(e, i, o, l);
7737
+ function Mp(r, e, i, s, o, l) {
7738
+ let u = null, p = Ip(e, i, o, l);
7739
7739
  for (const g of s) {
7740
- const m = Mp(e - g.x, i, o, l) + g.badness;
7740
+ const m = Ip(e - g.x, i, o, l) + g.badness;
7741
7741
  m <= p && (u = g, p = m);
7742
7742
  }
7743
7743
  return { index: r, x: e, priorBreak: u, badness: p };
@@ -7771,7 +7771,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7771
7771
  const u = e[Symbol.iterator]();
7772
7772
  u.next();
7773
7773
  let p = u.next();
7774
- for (; !l.done; ) i += !p.done && Ml(p.value.codePointAt(0)) && !ec[p.value] || !s.premature && Ml(s.value.codePointAt(0)) && !ec[s.value] || !ec[l.value] ? l.value : ec[l.value], s = { value: l.value, premature: !1 }, l = o.next(), p = u.next();
7774
+ for (; !l.done; ) i += !p.done && Il(p.value.codePointAt(0)) && !ec[p.value] || !s.premature && Il(s.value.codePointAt(0)) && !ec[s.value] || !ec[l.value] ? l.value : ec[l.value], s = { value: l.value, premature: !1 }, l = o.next(), p = u.next();
7775
7775
  return i;
7776
7776
  })(this.text);
7777
7777
  }
@@ -7829,19 +7829,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7829
7829
  let T = _.next();
7830
7830
  const b = this.text[Symbol.iterator]();
7831
7831
  b.next();
7832
- let M = b.next();
7833
- const I = this.text[Symbol.iterator]();
7834
- I.next(), I.next();
7835
- let A = I.next();
7832
+ let I = b.next();
7833
+ const M = this.text[Symbol.iterator]();
7834
+ M.next(), M.next();
7835
+ let A = M.next();
7836
7836
  for (; !T.done; ) {
7837
7837
  const D = this.getSection(v), L = T.value.codePointAt(0);
7838
- if (nu(L) || (m += Pp(L, D, s, o, e, l)), !M.done) {
7839
- const k = hh(L), F = M.value.codePointAt(0);
7840
- (Dg[L] || k || "imageName" in D || !A.done && zg[F]) && u.push(Ip(v + 1, m, p, u, kg(L, F, k && g), !1));
7838
+ if (nu(L) || (m += Pp(L, D, s, o, e, l)), !I.done) {
7839
+ const k = hh(L), F = I.value.codePointAt(0);
7840
+ (Dg[L] || k || "imageName" in D || !A.done && zg[F]) && u.push(Mp(v + 1, m, p, u, kg(L, F, k && g), !1));
7841
7841
  }
7842
- v++, T = _.next(), M = b.next(), A = I.next();
7842
+ v++, T = _.next(), I = b.next(), A = M.next();
7843
7843
  }
7844
- return Ep(Ip(this.length(), m, p, u, 0, !0));
7844
+ return Ep(Mp(this.length(), m, p, u, 0, !0));
7845
7845
  }
7846
7846
  determineAverageLineWidth(e, i, s, o, l) {
7847
7847
  let u = 0, p = 0;
@@ -7853,7 +7853,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
7853
7853
  }
7854
7854
  }
7855
7855
  const $h = 4294967296, Cp = 1 / $h, Ap = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8");
7856
- class Iu {
7856
+ class Mu {
7857
7857
  constructor(e = new Uint8Array(16)) {
7858
7858
  this.buf = ArrayBuffer.isView(e) ? e : new Uint8Array(e), this.dataView = new DataView(this.buf.buffer), this.pos = 0, this.type = 0, this.length = this.buf.length;
7859
7859
  }
@@ -8229,8 +8229,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8229
8229
  ji.copy(v.data, g, { x: 0, y: 0 }, { x: _.x + 1, y: _.y + 1 }, v.data);
8230
8230
  }
8231
8231
  for (const m in i) {
8232
- const v = i[m], _ = o[m].paddedRect, T = _.x + 1, b = _.y + 1, M = v.data.width, I = v.data.height;
8233
- ji.copy(v.data, g, { x: 0, y: 0 }, { x: T, y: b }, v.data), ji.copy(v.data, g, { x: 0, y: I - 1 }, { x: T, y: b - 1 }, { width: M, height: 1 }), ji.copy(v.data, g, { x: 0, y: 0 }, { x: T, y: b + I }, { width: M, height: 1 }), ji.copy(v.data, g, { x: M - 1, y: 0 }, { x: T - 1, y: b }, { width: 1, height: I }), ji.copy(v.data, g, { x: 0, y: 0 }, { x: T + M, y: b }, { width: 1, height: I });
8232
+ const v = i[m], _ = o[m].paddedRect, T = _.x + 1, b = _.y + 1, I = v.data.width, M = v.data.height;
8233
+ ji.copy(v.data, g, { x: 0, y: 0 }, { x: T, y: b }, v.data), ji.copy(v.data, g, { x: 0, y: M - 1 }, { x: T, y: b - 1 }, { width: I, height: 1 }), ji.copy(v.data, g, { x: 0, y: 0 }, { x: T, y: b + M }, { width: I, height: 1 }), ji.copy(v.data, g, { x: I - 1, y: 0 }, { x: T - 1, y: b }, { width: 1, height: M }), ji.copy(v.data, g, { x: 0, y: 0 }, { x: T + I, y: b }, { width: 1, height: M });
8234
8234
  }
8235
8235
  this.image = g, this.iconPositions = s, this.patternPositions = o;
8236
8236
  }
@@ -8252,38 +8252,38 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8252
8252
  }
8253
8253
  }
8254
8254
  var cs;
8255
- function Eu(r, e, i, s, o, l, u, p, g, m, v, _, T, b, M) {
8256
- const I = _a.fromFeature(r, o);
8255
+ function Eu(r, e, i, s, o, l, u, p, g, m, v, _, T, b, I) {
8256
+ const M = _a.fromFeature(r, o);
8257
8257
  let A;
8258
- _ === R.ax.vertical && I.verticalizePunctuation();
8259
- let D = I.determineLineBreaks(m, l, e, s, b);
8258
+ _ === R.ax.vertical && M.verticalizePunctuation();
8259
+ let D = M.determineLineBreaks(m, l, e, s, b);
8260
8260
  const { processBidirectionalText: L, processStyledBidirectionalText: k } = Tr;
8261
- if (L && I.sections.length === 1) {
8262
- A = [], D = D.map(((Y) => I.toCodeUnitIndex(Y)));
8263
- const j = L(I.toString(), D);
8261
+ if (L && M.sections.length === 1) {
8262
+ A = [], D = D.map(((Y) => M.toCodeUnitIndex(Y)));
8263
+ const j = L(M.toString(), D);
8264
8264
  for (const Y of j) {
8265
8265
  const J = [...Y].map((() => 0));
8266
- A.push(new _a(Y, I.sections, J));
8266
+ A.push(new _a(Y, M.sections, J));
8267
8267
  }
8268
8268
  } else if (k) {
8269
- A = [], D = D.map(((ne) => I.toCodeUnitIndex(ne)));
8269
+ A = [], D = D.map(((ne) => M.toCodeUnitIndex(ne)));
8270
8270
  let j = 0;
8271
8271
  const Y = [];
8272
- for (const ne of I.text) Y.push(...Array(ne.length).fill(I.sectionIndex[j])), j++;
8273
- const J = k(I.text, Y, D);
8272
+ for (const ne of M.text) Y.push(...Array(ne.length).fill(M.sectionIndex[j])), j++;
8273
+ const J = k(M.text, Y, D);
8274
8274
  for (const ne of J) {
8275
8275
  const ie = [];
8276
8276
  let le = "";
8277
8277
  for (const ce of ne[0]) ie.push(ne[1][le.length]), le += ce;
8278
- A.push(new _a(ne[0], I.sections, ie));
8278
+ A.push(new _a(ne[0], M.sections, ie));
8279
8279
  }
8280
8280
  } else A = (function(j, Y) {
8281
8281
  const J = [];
8282
8282
  let ne = 0;
8283
8283
  for (const ie of Y) J.push(j.substring(ne, ie)), ne = ie;
8284
8284
  return ne < j.length() && J.push(j.substring(ne, j.length())), J;
8285
- })(I, D);
8286
- const F = [], O = { positionedLines: F, text: I.toString(), top: v[1], bottom: v[1], left: v[0], right: v[0], writingMode: _, iconsInText: !1, verticalizable: !1 };
8285
+ })(M, D);
8286
+ const F = [], O = { positionedLines: F, text: M.toString(), top: v[1], bottom: v[1], left: v[0], right: v[0], writingMode: _, iconsInText: !1, verticalizable: !1 };
8287
8287
  return (function(j, Y, J, ne, ie, le, ce, se, re, _e, Se, be) {
8288
8288
  let ye = 0, Fe = 0, tt = 0, rt = 0;
8289
8289
  const lt = se === "right" ? 1 : se === "left" ? 0 : 0.5, di = Wt / be;
@@ -8324,7 +8324,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8324
8324
  jt = pi !== Ui ? -gr * Si - -17 : -Si * Yt * Ui + 0.5 * Ui;
8325
8325
  for (const Ct of yt) for (const Kt of Ct.positionedGlyphs) Kt.x += Tt, Kt.y += jt;
8326
8326
  })(j.positionedLines, lt, Gt, Xt, tt, rt, le, Fe, ie.length), j.top += -Xt * Fe, j.bottom = j.top + Fe, j.left += -Gt * tt, j.right = j.left + tt;
8327
- })(O, e, i, s, A, u, p, g, _, m, T, M), !(function(j) {
8327
+ })(O, e, i, s, A, u, p, g, _, m, T, I), !(function(j) {
8328
8328
  for (const Y of j) if (Y.positionedGlyphs.length !== 0) return !1;
8329
8329
  return !0;
8330
8330
  })(F) && O;
@@ -8376,8 +8376,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8376
8376
  function Hg(r, e, i, s, o, l) {
8377
8377
  const u = l[r.fontStack], p = (function(m, v, _, T) {
8378
8378
  if (m?.rect) return m;
8379
- const b = v[_.fontStack], M = b?.[T];
8380
- return M ? { rect: null, metrics: M.metrics } : null;
8379
+ const b = v[_.fontStack], I = b?.[T];
8380
+ return I ? { rect: null, metrics: I.metrics } : null;
8381
8381
  })(u?.[e], o, r, e);
8382
8382
  if (p === null) return null;
8383
8383
  let g;
@@ -8434,8 +8434,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8434
8434
  const g = e.left * l, m = e.right * l;
8435
8435
  let v, _, T, b;
8436
8436
  i === "width" || i === "both" ? (b = o[0] + g - s[3], _ = o[0] + m + s[1]) : (b = o[0] + (g + m - u.displaySize[0]) / 2, _ = b + u.displaySize[0]);
8437
- const M = e.top * l, I = e.bottom * l;
8438
- return i === "height" || i === "both" ? (v = o[1] + M - s[0], T = o[1] + I + s[2]) : (v = o[1] + (M + I - u.displaySize[1]) / 2, T = v + u.displaySize[1]), { image: u, top: v, right: _, bottom: T, left: b, collisionPadding: p };
8437
+ const I = e.top * l, M = e.bottom * l;
8438
+ return i === "height" || i === "both" ? (v = o[1] + I - s[0], T = o[1] + M + s[2]) : (v = o[1] + (I + M - u.displaySize[1]) / 2, T = v + u.displaySize[1]), { image: u, top: v, right: _, bottom: T, left: b, collisionPadding: p };
8439
8439
  }
8440
8440
  Ce("ImagePosition", qh), Ce("ImageAtlas", kp), R.ax = void 0, (cs = R.ax || (R.ax = {}))[cs.none = 0] = "none", cs[cs.horizontal = 1] = "horizontal", cs[cs.vertical = 2] = "vertical", cs[cs.horizontalOnly = 3] = "horizontalOnly";
8441
8441
  const Cn = 128, us = 32640;
@@ -8462,8 +8462,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8462
8462
  }
8463
8463
  const Jg = [{ name: "a_fade_opacity", components: 1, type: "Uint8", offset: 0 }];
8464
8464
  function Cu(r, e, i, s, o, l, u, p, g, m, v, _, T) {
8465
- const b = p ? Math.min(us, Math.round(p[0])) : 0, M = p ? Math.min(us, Math.round(p[1])) : 0;
8466
- r.emplaceBack(e, i, Math.round(32 * s), Math.round(32 * o), l, u, (b << 1) + (g ? 1 : 0), M, 16 * m, 16 * v, 256 * _, 256 * T);
8465
+ const b = p ? Math.min(us, Math.round(p[0])) : 0, I = p ? Math.min(us, Math.round(p[1])) : 0;
8466
+ r.emplaceBack(e, i, Math.round(32 * s), Math.round(32 * o), l, u, (b << 1) + (g ? 1 : 0), I, 16 * m, 16 * v, 256 * _, 256 * T);
8467
8467
  }
8468
8468
  function Xh(r, e, i) {
8469
8469
  r.emplaceBack(e.x, e.y, i), r.emplaceBack(e.x, e.y, i), r.emplaceBack(e.x, e.y, i), r.emplaceBack(e.x, e.y, i);
@@ -8480,7 +8480,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8480
8480
  return this.layoutVertexArray.length === 0 && this.indexArray.length === 0 && this.dynamicLayoutVertexArray.length === 0 && this.opacityVertexArray.length === 0;
8481
8481
  }
8482
8482
  upload(e, i, s, o) {
8483
- this.isEmpty() || (s && (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, Pg.members), this.indexBuffer = e.createIndexBuffer(this.indexArray, i), this.dynamicLayoutVertexBuffer = e.createVertexBuffer(this.dynamicLayoutVertexArray, Mg.members, !0), this.opacityVertexBuffer = e.createVertexBuffer(this.opacityVertexArray, Jg, !0), this.opacityVertexBuffer.itemSize = 1), (s || o) && this.programConfigurations.upload(e));
8483
+ this.isEmpty() || (s && (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, Pg.members), this.indexBuffer = e.createIndexBuffer(this.indexArray, i), this.dynamicLayoutVertexBuffer = e.createVertexBuffer(this.dynamicLayoutVertexArray, Ig.members, !0), this.opacityVertexBuffer = e.createVertexBuffer(this.opacityVertexArray, Jg, !0), this.opacityVertexBuffer.itemSize = 1), (s || o) && this.programConfigurations.upload(e));
8484
8484
  }
8485
8485
  destroy() {
8486
8486
  this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.programConfigurations.destroy(), this.segments.destroy(), this.dynamicLayoutVertexBuffer.destroy(), this.opacityVertexBuffer.destroy());
@@ -8492,7 +8492,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8492
8492
  this.layoutVertexArray = new e(), this.layoutAttributes = i, this.indexArray = new s(), this.segments = new Ee(), this.collisionVertexArray = new ge();
8493
8493
  }
8494
8494
  upload(e) {
8495
- this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, this.layoutAttributes), this.indexBuffer = e.createIndexBuffer(this.indexArray), this.collisionVertexBuffer = e.createVertexBuffer(this.collisionVertexArray, Ig.members, !0);
8495
+ this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, this.layoutAttributes), this.indexBuffer = e.createIndexBuffer(this.indexArray), this.collisionVertexBuffer = e.createVertexBuffer(this.collisionVertexArray, Mg.members, !0);
8496
8496
  }
8497
8497
  destroy() {
8498
8498
  this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.segments.destroy(), this.collisionVertexBuffer.destroy());
@@ -8508,7 +8508,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8508
8508
  this.canOverlap = Hh(s, "text-overlap", "text-allow-overlap") !== "never" || Hh(s, "icon-overlap", "icon-allow-overlap") !== "never" || s.get("text-ignore-placement") || s.get("icon-ignore-placement"), this.sortFeaturesByKey = l !== "viewport-y" && !o.isConstant(), this.sortFeaturesByY = (l === "viewport-y" || l === "auto" && !this.sortFeaturesByKey) && this.canOverlap, s.get("symbol-placement") === "point" && (this.writingModes = s.get("text-writing-mode").map(((u) => R.ax[u]))), this.stateDependentLayerIds = this.layers.filter(((u) => u.isStateDependent())).map(((u) => u.id)), this.sourceID = e.sourceID;
8509
8509
  }
8510
8510
  createArrays() {
8511
- this.text = new Yh(new Mr(this.layers, this.zoom, ((e) => e.startsWith("text")))), this.icon = new Yh(new Mr(this.layers, this.zoom, ((e) => e.startsWith("icon")))), this.glyphOffsetArray = new S(), this.lineVertexArray = new P(), this.symbolInstances = new w(), this.textAnchorOffsets = new C();
8511
+ this.text = new Yh(new Ir(this.layers, this.zoom, ((e) => e.startsWith("text")))), this.icon = new Yh(new Ir(this.layers, this.zoom, ((e) => e.startsWith("icon")))), this.glyphOffsetArray = new S(), this.lineVertexArray = new P(), this.symbolInstances = new w(), this.textAnchorOffsets = new C();
8512
8512
  }
8513
8513
  calculateGlyphDependencies(e, i, s, o, l) {
8514
8514
  for (const u of e) if (i[u.codePointAt(0)] = !0, (s || o) && l) {
@@ -8520,17 +8520,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8520
8520
  var o;
8521
8521
  const l = this.layers[0], u = l.layout, p = u.get("text-font"), g = u.get("text-field"), m = u.get("icon-image"), v = (g.value.kind !== "constant" || g.value.value instanceof Ei && !g.value.value.isEmpty() || g.value.value.toString().length > 0) && (p.value.kind !== "constant" || p.value.value.length > 0), _ = m.value.kind !== "constant" || !!m.value.value || Object.keys(m.parameters).length > 0, T = u.get("symbol-sort-key");
8522
8522
  if (this.features = [], !v && !_) return;
8523
- const b = i.iconDependencies, M = i.glyphDependencies, I = i.availableImages, A = new ft(this.zoom);
8523
+ const b = i.iconDependencies, I = i.glyphDependencies, M = i.availableImages, A = new ft(this.zoom);
8524
8524
  for (const { feature: D, id: L, index: k, sourceLayerIndex: F } of e) {
8525
8525
  const O = l._featureFilter.needGeometry, j = Yr(D, O);
8526
8526
  if (!l._featureFilter.filter(A, j, s)) continue;
8527
8527
  let Y, J;
8528
8528
  if (O || (j.geometry = Xr(D)), v) {
8529
- const ie = l.getValueAndResolveTokens("text-field", j, s, I), le = Ei.factory(ie);
8529
+ const ie = l.getValueAndResolveTokens("text-field", j, s, M), le = Ei.factory(ie);
8530
8530
  this.hasRTLText || (this.hasRTLText = Qg(le)), (!this.hasRTLText || Tr.getRTLTextPluginStatus() === "unavailable" || this.hasRTLText && Tr.isParsed()) && (Y = Ag(le, l, j));
8531
8531
  }
8532
8532
  if (_) {
8533
- const ie = l.getValueAndResolveTokens("icon-image", j, s, I);
8533
+ const ie = l.getValueAndResolveTokens("icon-image", j, s, M);
8534
8534
  J = ie instanceof Li ? ie : Li.fromString(ie);
8535
8535
  }
8536
8536
  if (!Y && !J) continue;
@@ -8541,7 +8541,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8541
8541
  for (const ce of Y.sections) if (ce.image) b[ce.image.name] = !0;
8542
8542
  else {
8543
8543
  const se = Sl(Y.toString()), re = ce.fontStack || ie;
8544
- M[re] || (M[re] = {}), this.calculateGlyphDependencies(ce.text, M[re], le, this.allowVerticalPlacement, se);
8544
+ I[re] || (I[re] = {}), this.calculateGlyphDependencies(ce.text, I[re], le, this.allowVerticalPlacement, se);
8545
8545
  }
8546
8546
  }
8547
8547
  }
@@ -8611,10 +8611,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8611
8611
  return { lineStartIndex: s, lineLength: this.lineVertexArray.length - s };
8612
8612
  }
8613
8613
  addSymbols(e, i, s, o, l, u, p, g, m, v, _, T) {
8614
- const b = e.indexArray, M = e.layoutVertexArray, I = e.segments.prepareSegment(4 * i.length, M, b, this.canOverlap ? u.sortKey : void 0), A = this.glyphOffsetArray.length, D = I.vertexLength, L = this.allowVerticalPlacement && p === R.ax.vertical ? Math.PI / 2 : 0, k = u.text && u.text.sections;
8614
+ const b = e.indexArray, I = e.layoutVertexArray, M = e.segments.prepareSegment(4 * i.length, I, b, this.canOverlap ? u.sortKey : void 0), A = this.glyphOffsetArray.length, D = M.vertexLength, L = this.allowVerticalPlacement && p === R.ax.vertical ? Math.PI / 2 : 0, k = u.text && u.text.sections;
8615
8615
  for (let F = 0; F < i.length; F++) {
8616
- const { tl: O, tr: j, bl: Y, br: J, tex: ne, pixelOffsetTL: ie, pixelOffsetBR: le, minFontScaleX: ce, minFontScaleY: se, glyphOffset: re, isSDF: _e, sectionIndex: Se } = i[F], be = I.vertexLength, ye = re[1];
8617
- Cu(M, g.x, g.y, O.x, ye + O.y, ne.x, ne.y, s, _e, ie.x, ie.y, ce, se), Cu(M, g.x, g.y, j.x, ye + j.y, ne.x + ne.w, ne.y, s, _e, le.x, ie.y, ce, se), Cu(M, g.x, g.y, Y.x, ye + Y.y, ne.x, ne.y + ne.h, s, _e, ie.x, le.y, ce, se), Cu(M, g.x, g.y, J.x, ye + J.y, ne.x + ne.w, ne.y + ne.h, s, _e, le.x, le.y, ce, se), Xh(e.dynamicLayoutVertexArray, g, L), b.emplaceBack(be, be + 2, be + 1), b.emplaceBack(be + 1, be + 2, be + 3), I.vertexLength += 4, I.primitiveLength += 2, this.glyphOffsetArray.emplaceBack(re[0]), F !== i.length - 1 && Se === i[F + 1].sectionIndex || e.programConfigurations.populatePaintArrays(M.length, u, u.index, { imagePositions: {}, canonical: T, formattedSection: k?.[Se] });
8616
+ const { tl: O, tr: j, bl: Y, br: J, tex: ne, pixelOffsetTL: ie, pixelOffsetBR: le, minFontScaleX: ce, minFontScaleY: se, glyphOffset: re, isSDF: _e, sectionIndex: Se } = i[F], be = M.vertexLength, ye = re[1];
8617
+ Cu(I, g.x, g.y, O.x, ye + O.y, ne.x, ne.y, s, _e, ie.x, ie.y, ce, se), Cu(I, g.x, g.y, j.x, ye + j.y, ne.x + ne.w, ne.y, s, _e, le.x, ie.y, ce, se), Cu(I, g.x, g.y, Y.x, ye + Y.y, ne.x, ne.y + ne.h, s, _e, ie.x, le.y, ce, se), Cu(I, g.x, g.y, J.x, ye + J.y, ne.x + ne.w, ne.y + ne.h, s, _e, le.x, le.y, ce, se), Xh(e.dynamicLayoutVertexArray, g, L), b.emplaceBack(be, be + 2, be + 1), b.emplaceBack(be + 1, be + 2, be + 3), M.vertexLength += 4, M.primitiveLength += 2, this.glyphOffsetArray.emplaceBack(re[0]), F !== i.length - 1 && Se === i[F + 1].sectionIndex || e.programConfigurations.populatePaintArrays(I.length, u, u.index, { imagePositions: {}, canonical: T, formattedSection: k?.[Se] });
8618
8618
  }
8619
8619
  e.placedSymbolArray.emplaceBack(g.x, g.y, A, this.glyphOffsetArray.length - A, D, m, v, g.segment, s ? s[0] : 0, s ? s[1] : 0, o[0], o[1], p, 0, !1, 0, _);
8620
8620
  }
@@ -8624,8 +8624,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8624
8624
  addCollisionDebugVertices(e, i, s, o, l, u, p) {
8625
8625
  const g = l.segments.prepareSegment(4, l.layoutVertexArray, l.indexArray), m = g.vertexLength, v = l.layoutVertexArray, _ = l.collisionVertexArray, T = p.anchorX, b = p.anchorY;
8626
8626
  this._addCollisionDebugVertex(v, _, u, T, b, new de(e, i)), this._addCollisionDebugVertex(v, _, u, T, b, new de(s, i)), this._addCollisionDebugVertex(v, _, u, T, b, new de(s, o)), this._addCollisionDebugVertex(v, _, u, T, b, new de(e, o)), g.vertexLength += 4;
8627
- const M = l.indexArray;
8628
- M.emplaceBack(m, m + 1), M.emplaceBack(m + 1, m + 2), M.emplaceBack(m + 2, m + 3), M.emplaceBack(m + 3, m), g.primitiveLength += 4;
8627
+ const I = l.indexArray;
8628
+ I.emplaceBack(m, m + 1), I.emplaceBack(m + 1, m + 2), I.emplaceBack(m + 2, m + 3), I.emplaceBack(m + 3, m), g.primitiveLength += 4;
8629
8629
  }
8630
8630
  addDebugCollisionBoxes(e, i, s, o) {
8631
8631
  for (let l = e; l < i; l++) {
@@ -8943,12 +8943,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8943
8943
  const o = (u = this.y, p = this.z, g = Xp(256 * (l = this.x), 256 * (u = Math.pow(2, p) - u - 1), p), m = Xp(256 * (l + 1), 256 * (u + 1), p), g[0] + "," + g[1] + "," + m[0] + "," + m[1]);
8944
8944
  var l, u, p, g, m;
8945
8945
  const v = (function(_, T, b) {
8946
- let M = "";
8947
- for (let I = _; I > 0; I--) {
8948
- const A = 1 << I - 1;
8949
- M += (T & A ? 1 : 0) + (b & A ? 2 : 0);
8946
+ let I = "";
8947
+ for (let M = _; M > 0; M--) {
8948
+ const A = 1 << M - 1;
8949
+ I += (T & A ? 1 : 0) + (b & A ? 2 : 0);
8950
8950
  }
8951
- return M;
8951
+ return I;
8952
8952
  })(this.z, this.x, this.y);
8953
8953
  return e[(this.x + this.y) % e.length].replace(/{prefix}/g, (this.x % 16).toString(16) + (this.y % 16).toString(16)).replace(/{z}/g, String(this.z)).replace(/{x}/g, String(this.x)).replace(/{y}/g, String(s === "tms" ? Math.pow(2, this.z) - this.y - 1 : this.y)).replace(/{ratio}/g, i > 1 ? "@2x" : "").replace(/{quadkey}/g, v).replace(/{bbox-epsg-3857}/g, o);
8954
8954
  }
@@ -9306,8 +9306,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9306
9306
  (function(l, u, p, g) {
9307
9307
  let m = g, v = u;
9308
9308
  for (let _ = 0; _ < 8; _++) {
9309
- const T = l[v++] >>> 0, b = l[v++] >>> 0, M = l[v++] >>> 0;
9310
- p[m++] = T >>> 0 & 7, p[m++] = T >>> 3 & 7, p[m++] = T >>> 6 & 7, p[m++] = T >>> 9 & 7, p[m++] = T >>> 12 & 7, p[m++] = T >>> 15 & 7, p[m++] = T >>> 18 & 7, p[m++] = T >>> 21 & 7, p[m++] = T >>> 24 & 7, p[m++] = T >>> 27 & 7, p[m++] = 7 & (T >>> 30 | (1 & b) << 2), p[m++] = b >>> 1 & 7, p[m++] = b >>> 4 & 7, p[m++] = b >>> 7 & 7, p[m++] = b >>> 10 & 7, p[m++] = b >>> 13 & 7, p[m++] = b >>> 16 & 7, p[m++] = b >>> 19 & 7, p[m++] = b >>> 22 & 7, p[m++] = b >>> 25 & 7, p[m++] = b >>> 28 & 7, p[m++] = 7 & (b >>> 31 | (3 & M) << 1), p[m++] = M >>> 2 & 7, p[m++] = M >>> 5 & 7, p[m++] = M >>> 8 & 7, p[m++] = M >>> 11 & 7, p[m++] = M >>> 14 & 7, p[m++] = M >>> 17 & 7, p[m++] = M >>> 20 & 7, p[m++] = M >>> 23 & 7, p[m++] = M >>> 26 & 7, p[m++] = M >>> 29 & 7;
9309
+ const T = l[v++] >>> 0, b = l[v++] >>> 0, I = l[v++] >>> 0;
9310
+ p[m++] = T >>> 0 & 7, p[m++] = T >>> 3 & 7, p[m++] = T >>> 6 & 7, p[m++] = T >>> 9 & 7, p[m++] = T >>> 12 & 7, p[m++] = T >>> 15 & 7, p[m++] = T >>> 18 & 7, p[m++] = T >>> 21 & 7, p[m++] = T >>> 24 & 7, p[m++] = T >>> 27 & 7, p[m++] = 7 & (T >>> 30 | (1 & b) << 2), p[m++] = b >>> 1 & 7, p[m++] = b >>> 4 & 7, p[m++] = b >>> 7 & 7, p[m++] = b >>> 10 & 7, p[m++] = b >>> 13 & 7, p[m++] = b >>> 16 & 7, p[m++] = b >>> 19 & 7, p[m++] = b >>> 22 & 7, p[m++] = b >>> 25 & 7, p[m++] = b >>> 28 & 7, p[m++] = 7 & (b >>> 31 | (3 & I) << 1), p[m++] = I >>> 2 & 7, p[m++] = I >>> 5 & 7, p[m++] = I >>> 8 & 7, p[m++] = I >>> 11 & 7, p[m++] = I >>> 14 & 7, p[m++] = I >>> 17 & 7, p[m++] = I >>> 20 & 7, p[m++] = I >>> 23 & 7, p[m++] = I >>> 26 & 7, p[m++] = I >>> 29 & 7;
9311
9311
  }
9312
9312
  })(r, e, i, s);
9313
9313
  break;
@@ -9315,8 +9315,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9315
9315
  (function(l, u, p, g) {
9316
9316
  let m = g, v = u;
9317
9317
  for (let _ = 0; _ < 8; _++) {
9318
- const T = l[v++] >>> 0, b = l[v++] >>> 0, M = l[v++] >>> 0, I = l[v++] >>> 0;
9319
- p[m++] = T >>> 0 & 15, p[m++] = T >>> 4 & 15, p[m++] = T >>> 8 & 15, p[m++] = T >>> 12 & 15, p[m++] = T >>> 16 & 15, p[m++] = T >>> 20 & 15, p[m++] = T >>> 24 & 15, p[m++] = T >>> 28 & 15, p[m++] = b >>> 0 & 15, p[m++] = b >>> 4 & 15, p[m++] = b >>> 8 & 15, p[m++] = b >>> 12 & 15, p[m++] = b >>> 16 & 15, p[m++] = b >>> 20 & 15, p[m++] = b >>> 24 & 15, p[m++] = b >>> 28 & 15, p[m++] = M >>> 0 & 15, p[m++] = M >>> 4 & 15, p[m++] = M >>> 8 & 15, p[m++] = M >>> 12 & 15, p[m++] = M >>> 16 & 15, p[m++] = M >>> 20 & 15, p[m++] = M >>> 24 & 15, p[m++] = M >>> 28 & 15, p[m++] = I >>> 0 & 15, p[m++] = I >>> 4 & 15, p[m++] = I >>> 8 & 15, p[m++] = I >>> 12 & 15, p[m++] = I >>> 16 & 15, p[m++] = I >>> 20 & 15, p[m++] = I >>> 24 & 15, p[m++] = I >>> 28 & 15;
9318
+ const T = l[v++] >>> 0, b = l[v++] >>> 0, I = l[v++] >>> 0, M = l[v++] >>> 0;
9319
+ p[m++] = T >>> 0 & 15, p[m++] = T >>> 4 & 15, p[m++] = T >>> 8 & 15, p[m++] = T >>> 12 & 15, p[m++] = T >>> 16 & 15, p[m++] = T >>> 20 & 15, p[m++] = T >>> 24 & 15, p[m++] = T >>> 28 & 15, p[m++] = b >>> 0 & 15, p[m++] = b >>> 4 & 15, p[m++] = b >>> 8 & 15, p[m++] = b >>> 12 & 15, p[m++] = b >>> 16 & 15, p[m++] = b >>> 20 & 15, p[m++] = b >>> 24 & 15, p[m++] = b >>> 28 & 15, p[m++] = I >>> 0 & 15, p[m++] = I >>> 4 & 15, p[m++] = I >>> 8 & 15, p[m++] = I >>> 12 & 15, p[m++] = I >>> 16 & 15, p[m++] = I >>> 20 & 15, p[m++] = I >>> 24 & 15, p[m++] = I >>> 28 & 15, p[m++] = M >>> 0 & 15, p[m++] = M >>> 4 & 15, p[m++] = M >>> 8 & 15, p[m++] = M >>> 12 & 15, p[m++] = M >>> 16 & 15, p[m++] = M >>> 20 & 15, p[m++] = M >>> 24 & 15, p[m++] = M >>> 28 & 15;
9320
9320
  }
9321
9321
  })(r, e, i, s);
9322
9322
  break;
@@ -9324,8 +9324,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9324
9324
  (function(l, u, p, g) {
9325
9325
  let m = g, v = u;
9326
9326
  for (let _ = 0; _ < 8; _++) {
9327
- const T = l[v++] >>> 0, b = l[v++] >>> 0, M = l[v++] >>> 0, I = l[v++] >>> 0, A = l[v++] >>> 0;
9328
- p[m++] = T >>> 0 & 31, p[m++] = T >>> 5 & 31, p[m++] = T >>> 10 & 31, p[m++] = T >>> 15 & 31, p[m++] = T >>> 20 & 31, p[m++] = T >>> 25 & 31, p[m++] = 31 & (T >>> 30 | (7 & b) << 2), p[m++] = b >>> 3 & 31, p[m++] = b >>> 8 & 31, p[m++] = b >>> 13 & 31, p[m++] = b >>> 18 & 31, p[m++] = b >>> 23 & 31, p[m++] = 31 & (b >>> 28 | (1 & M) << 4), p[m++] = M >>> 1 & 31, p[m++] = M >>> 6 & 31, p[m++] = M >>> 11 & 31, p[m++] = M >>> 16 & 31, p[m++] = M >>> 21 & 31, p[m++] = M >>> 26 & 31, p[m++] = 31 & (M >>> 31 | (15 & I) << 1), p[m++] = I >>> 4 & 31, p[m++] = I >>> 9 & 31, p[m++] = I >>> 14 & 31, p[m++] = I >>> 19 & 31, p[m++] = I >>> 24 & 31, p[m++] = 31 & (I >>> 29 | (3 & A) << 3), p[m++] = A >>> 2 & 31, p[m++] = A >>> 7 & 31, p[m++] = A >>> 12 & 31, p[m++] = A >>> 17 & 31, p[m++] = A >>> 22 & 31, p[m++] = A >>> 27 & 31;
9327
+ const T = l[v++] >>> 0, b = l[v++] >>> 0, I = l[v++] >>> 0, M = l[v++] >>> 0, A = l[v++] >>> 0;
9328
+ p[m++] = T >>> 0 & 31, p[m++] = T >>> 5 & 31, p[m++] = T >>> 10 & 31, p[m++] = T >>> 15 & 31, p[m++] = T >>> 20 & 31, p[m++] = T >>> 25 & 31, p[m++] = 31 & (T >>> 30 | (7 & b) << 2), p[m++] = b >>> 3 & 31, p[m++] = b >>> 8 & 31, p[m++] = b >>> 13 & 31, p[m++] = b >>> 18 & 31, p[m++] = b >>> 23 & 31, p[m++] = 31 & (b >>> 28 | (1 & I) << 4), p[m++] = I >>> 1 & 31, p[m++] = I >>> 6 & 31, p[m++] = I >>> 11 & 31, p[m++] = I >>> 16 & 31, p[m++] = I >>> 21 & 31, p[m++] = I >>> 26 & 31, p[m++] = 31 & (I >>> 31 | (15 & M) << 1), p[m++] = M >>> 4 & 31, p[m++] = M >>> 9 & 31, p[m++] = M >>> 14 & 31, p[m++] = M >>> 19 & 31, p[m++] = M >>> 24 & 31, p[m++] = 31 & (M >>> 29 | (3 & A) << 3), p[m++] = A >>> 2 & 31, p[m++] = A >>> 7 & 31, p[m++] = A >>> 12 & 31, p[m++] = A >>> 17 & 31, p[m++] = A >>> 22 & 31, p[m++] = A >>> 27 & 31;
9329
9329
  }
9330
9330
  })(r, e, i, s);
9331
9331
  break;
@@ -9333,8 +9333,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9333
9333
  (function(l, u, p, g) {
9334
9334
  let m = g, v = u;
9335
9335
  for (let _ = 0; _ < 8; _++) {
9336
- const T = l[v++] >>> 0, b = l[v++] >>> 0, M = l[v++] >>> 0, I = l[v++] >>> 0, A = l[v++] >>> 0, D = l[v++] >>> 0;
9337
- p[m++] = T >>> 0 & 63, p[m++] = T >>> 6 & 63, p[m++] = T >>> 12 & 63, p[m++] = T >>> 18 & 63, p[m++] = T >>> 24 & 63, p[m++] = 63 & (T >>> 30 | (15 & b) << 2), p[m++] = b >>> 4 & 63, p[m++] = b >>> 10 & 63, p[m++] = b >>> 16 & 63, p[m++] = b >>> 22 & 63, p[m++] = 63 & (b >>> 28 | (3 & M) << 4), p[m++] = M >>> 2 & 63, p[m++] = M >>> 8 & 63, p[m++] = M >>> 14 & 63, p[m++] = M >>> 20 & 63, p[m++] = M >>> 26 & 63, p[m++] = I >>> 0 & 63, p[m++] = I >>> 6 & 63, p[m++] = I >>> 12 & 63, p[m++] = I >>> 18 & 63, p[m++] = I >>> 24 & 63, p[m++] = 63 & (I >>> 30 | (15 & A) << 2), p[m++] = A >>> 4 & 63, p[m++] = A >>> 10 & 63, p[m++] = A >>> 16 & 63, p[m++] = A >>> 22 & 63, p[m++] = 63 & (A >>> 28 | (3 & D) << 4), p[m++] = D >>> 2 & 63, p[m++] = D >>> 8 & 63, p[m++] = D >>> 14 & 63, p[m++] = D >>> 20 & 63, p[m++] = D >>> 26 & 63;
9336
+ const T = l[v++] >>> 0, b = l[v++] >>> 0, I = l[v++] >>> 0, M = l[v++] >>> 0, A = l[v++] >>> 0, D = l[v++] >>> 0;
9337
+ p[m++] = T >>> 0 & 63, p[m++] = T >>> 6 & 63, p[m++] = T >>> 12 & 63, p[m++] = T >>> 18 & 63, p[m++] = T >>> 24 & 63, p[m++] = 63 & (T >>> 30 | (15 & b) << 2), p[m++] = b >>> 4 & 63, p[m++] = b >>> 10 & 63, p[m++] = b >>> 16 & 63, p[m++] = b >>> 22 & 63, p[m++] = 63 & (b >>> 28 | (3 & I) << 4), p[m++] = I >>> 2 & 63, p[m++] = I >>> 8 & 63, p[m++] = I >>> 14 & 63, p[m++] = I >>> 20 & 63, p[m++] = I >>> 26 & 63, p[m++] = M >>> 0 & 63, p[m++] = M >>> 6 & 63, p[m++] = M >>> 12 & 63, p[m++] = M >>> 18 & 63, p[m++] = M >>> 24 & 63, p[m++] = 63 & (M >>> 30 | (15 & A) << 2), p[m++] = A >>> 4 & 63, p[m++] = A >>> 10 & 63, p[m++] = A >>> 16 & 63, p[m++] = A >>> 22 & 63, p[m++] = 63 & (A >>> 28 | (3 & D) << 4), p[m++] = D >>> 2 & 63, p[m++] = D >>> 8 & 63, p[m++] = D >>> 14 & 63, p[m++] = D >>> 20 & 63, p[m++] = D >>> 26 & 63;
9338
9338
  }
9339
9339
  })(r, e, i, s);
9340
9340
  break;
@@ -9342,8 +9342,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9342
9342
  (function(l, u, p, g) {
9343
9343
  let m = g, v = u;
9344
9344
  for (let _ = 0; _ < 8; _++) {
9345
- const T = l[v++] >>> 0, b = l[v++] >>> 0, M = l[v++] >>> 0, I = l[v++] >>> 0, A = l[v++] >>> 0, D = l[v++] >>> 0, L = l[v++] >>> 0;
9346
- p[m++] = T >>> 0 & 127, p[m++] = T >>> 7 & 127, p[m++] = T >>> 14 & 127, p[m++] = T >>> 21 & 127, p[m++] = 127 & (T >>> 28 | (7 & b) << 4), p[m++] = b >>> 3 & 127, p[m++] = b >>> 10 & 127, p[m++] = b >>> 17 & 127, p[m++] = b >>> 24 & 127, p[m++] = 127 & (b >>> 31 | (63 & M) << 1), p[m++] = M >>> 6 & 127, p[m++] = M >>> 13 & 127, p[m++] = M >>> 20 & 127, p[m++] = 127 & (M >>> 27 | (3 & I) << 5), p[m++] = I >>> 2 & 127, p[m++] = I >>> 9 & 127, p[m++] = I >>> 16 & 127, p[m++] = I >>> 23 & 127, p[m++] = 127 & (I >>> 30 | (31 & A) << 2), p[m++] = A >>> 5 & 127, p[m++] = A >>> 12 & 127, p[m++] = A >>> 19 & 127, p[m++] = 127 & (A >>> 26 | (1 & D) << 6), p[m++] = D >>> 1 & 127, p[m++] = D >>> 8 & 127, p[m++] = D >>> 15 & 127, p[m++] = D >>> 22 & 127, p[m++] = 127 & (D >>> 29 | (15 & L) << 3), p[m++] = L >>> 4 & 127, p[m++] = L >>> 11 & 127, p[m++] = L >>> 18 & 127, p[m++] = L >>> 25 & 127;
9345
+ const T = l[v++] >>> 0, b = l[v++] >>> 0, I = l[v++] >>> 0, M = l[v++] >>> 0, A = l[v++] >>> 0, D = l[v++] >>> 0, L = l[v++] >>> 0;
9346
+ p[m++] = T >>> 0 & 127, p[m++] = T >>> 7 & 127, p[m++] = T >>> 14 & 127, p[m++] = T >>> 21 & 127, p[m++] = 127 & (T >>> 28 | (7 & b) << 4), p[m++] = b >>> 3 & 127, p[m++] = b >>> 10 & 127, p[m++] = b >>> 17 & 127, p[m++] = b >>> 24 & 127, p[m++] = 127 & (b >>> 31 | (63 & I) << 1), p[m++] = I >>> 6 & 127, p[m++] = I >>> 13 & 127, p[m++] = I >>> 20 & 127, p[m++] = 127 & (I >>> 27 | (3 & M) << 5), p[m++] = M >>> 2 & 127, p[m++] = M >>> 9 & 127, p[m++] = M >>> 16 & 127, p[m++] = M >>> 23 & 127, p[m++] = 127 & (M >>> 30 | (31 & A) << 2), p[m++] = A >>> 5 & 127, p[m++] = A >>> 12 & 127, p[m++] = A >>> 19 & 127, p[m++] = 127 & (A >>> 26 | (1 & D) << 6), p[m++] = D >>> 1 & 127, p[m++] = D >>> 8 & 127, p[m++] = D >>> 15 & 127, p[m++] = D >>> 22 & 127, p[m++] = 127 & (D >>> 29 | (15 & L) << 3), p[m++] = L >>> 4 & 127, p[m++] = L >>> 11 & 127, p[m++] = L >>> 18 & 127, p[m++] = L >>> 25 & 127;
9347
9347
  }
9348
9348
  })(r, e, i, s);
9349
9349
  break;
@@ -9351,8 +9351,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9351
9351
  (function(l, u, p, g) {
9352
9352
  let m = g, v = u;
9353
9353
  for (let _ = 0; _ < 8; _++) {
9354
- const T = l[v++] >>> 0, b = l[v++] >>> 0, M = l[v++] >>> 0, I = l[v++] >>> 0, A = l[v++] >>> 0, D = l[v++] >>> 0, L = l[v++] >>> 0, k = l[v++] >>> 0;
9355
- p[m++] = T >>> 0 & 255, p[m++] = T >>> 8 & 255, p[m++] = T >>> 16 & 255, p[m++] = T >>> 24 & 255, p[m++] = b >>> 0 & 255, p[m++] = b >>> 8 & 255, p[m++] = b >>> 16 & 255, p[m++] = b >>> 24 & 255, p[m++] = M >>> 0 & 255, p[m++] = M >>> 8 & 255, p[m++] = M >>> 16 & 255, p[m++] = M >>> 24 & 255, p[m++] = I >>> 0 & 255, p[m++] = I >>> 8 & 255, p[m++] = I >>> 16 & 255, p[m++] = I >>> 24 & 255, p[m++] = A >>> 0 & 255, p[m++] = A >>> 8 & 255, p[m++] = A >>> 16 & 255, p[m++] = A >>> 24 & 255, p[m++] = D >>> 0 & 255, p[m++] = D >>> 8 & 255, p[m++] = D >>> 16 & 255, p[m++] = D >>> 24 & 255, p[m++] = L >>> 0 & 255, p[m++] = L >>> 8 & 255, p[m++] = L >>> 16 & 255, p[m++] = L >>> 24 & 255, p[m++] = k >>> 0 & 255, p[m++] = k >>> 8 & 255, p[m++] = k >>> 16 & 255, p[m++] = k >>> 24 & 255;
9354
+ const T = l[v++] >>> 0, b = l[v++] >>> 0, I = l[v++] >>> 0, M = l[v++] >>> 0, A = l[v++] >>> 0, D = l[v++] >>> 0, L = l[v++] >>> 0, k = l[v++] >>> 0;
9355
+ p[m++] = T >>> 0 & 255, p[m++] = T >>> 8 & 255, p[m++] = T >>> 16 & 255, p[m++] = T >>> 24 & 255, p[m++] = b >>> 0 & 255, p[m++] = b >>> 8 & 255, p[m++] = b >>> 16 & 255, p[m++] = b >>> 24 & 255, p[m++] = I >>> 0 & 255, p[m++] = I >>> 8 & 255, p[m++] = I >>> 16 & 255, p[m++] = I >>> 24 & 255, p[m++] = M >>> 0 & 255, p[m++] = M >>> 8 & 255, p[m++] = M >>> 16 & 255, p[m++] = M >>> 24 & 255, p[m++] = A >>> 0 & 255, p[m++] = A >>> 8 & 255, p[m++] = A >>> 16 & 255, p[m++] = A >>> 24 & 255, p[m++] = D >>> 0 & 255, p[m++] = D >>> 8 & 255, p[m++] = D >>> 16 & 255, p[m++] = D >>> 24 & 255, p[m++] = L >>> 0 & 255, p[m++] = L >>> 8 & 255, p[m++] = L >>> 16 & 255, p[m++] = L >>> 24 & 255, p[m++] = k >>> 0 & 255, p[m++] = k >>> 8 & 255, p[m++] = k >>> 16 & 255, p[m++] = k >>> 24 & 255;
9356
9356
  }
9357
9357
  })(r, e, i, s);
9358
9358
  break;
@@ -9368,16 +9368,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9368
9368
  default:
9369
9369
  (function(l, u, p, g, m) {
9370
9370
  const v = od[m] >>> 0;
9371
- let _ = u, T = 0, b = l[_] >>> 0, M = g;
9372
- for (let I = 0; I < 8; I++) {
9373
- for (let A = 0; A < 32; A++) if (T + m <= 32) p[M + A] = b >>> T & v, T += m, T === 32 && (T = 0, _++, A !== 31 && (b = l[_] >>> 0));
9371
+ let _ = u, T = 0, b = l[_] >>> 0, I = g;
9372
+ for (let M = 0; M < 8; M++) {
9373
+ for (let A = 0; A < 32; A++) if (T + m <= 32) p[I + A] = b >>> T & v, T += m, T === 32 && (T = 0, _++, A !== 31 && (b = l[_] >>> 0));
9374
9374
  else {
9375
9375
  const D = 32 - T, L = b >>> T;
9376
9376
  _++, b = l[_] >>> 0;
9377
9377
  const k = m - D;
9378
- p[M + A] = (L | (b & -1 >>> 32 - k >>> 0) << D) & v, T = k;
9378
+ p[I + A] = (L | (b & -1 >>> 32 - k >>> 0) << D) & v, T = k;
9379
9379
  }
9380
- M += 32, T = 0, I < 7 && (b = l[_] >>> 0);
9380
+ I += 32, T = 0, M < 7 && (b = l[_] >>> 0);
9381
9381
  }
9382
9382
  })(r, e, i, s, o);
9383
9383
  }
@@ -9407,21 +9407,21 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9407
9407
  const T = p.dataToBePacked[v];
9408
9408
  if (!T) throw new Error(`FastPFOR decode: missing exception stream for exceptionBitWidth=${v} (bitWidth=${i}, maxBits=${m}) at block ${g}`);
9409
9409
  const b = p.dataPointers;
9410
- let M = 0 | b[v];
9411
- const I = 0 | p.exceptionSizes[v];
9412
- if (M + s > I) throw new Error(`FastPFOR decode: exception stream overflow for exceptionBitWidth=${v} (ptr=${M}, need ${s}, size=${I}) at block ${g}`);
9410
+ let I = 0 | b[v];
9411
+ const M = 0 | p.exceptionSizes[v];
9412
+ if (I + s > M) throw new Error(`FastPFOR decode: exception stream overflow for exceptionBitWidth=${v} (ptr=${I}, need ${s}, size=${M}) at block ${g}`);
9413
9413
  for (let A = 0; A < s; A = A + 1 | 0) {
9414
- const D = o[u++], L = 0 | T[M++];
9414
+ const D = o[u++], L = 0 | T[I++];
9415
9415
  r[D + e | 0] |= L << i;
9416
9416
  }
9417
- return b[v] = M, u;
9417
+ return b[v] = I, u;
9418
9418
  }
9419
9419
  function h_(r, e, i, s, o, l) {
9420
9420
  const u = 0 | i, p = 0 | r[u];
9421
9421
  if (p <= 0 || u + p > r.length - 1) throw new Error(`FastPFOR decode: invalid whereMeta=${p} at pageStart=${u} (expected > 0 and pageStart+whereMeta < encoded.length=${r.length})`);
9422
9422
  const g = u + 1 | 0, m = u + p | 0, v = r[m] >>> 0, _ = v + 3 >>> 2, T = m + 1, b = T + _;
9423
9423
  if (b >= r.length) throw new Error(`FastPFOR decode: invalid byteSize=${v} (metaInts=${_}, pageStart=${u}, packedEnd=${m}, byteContainerStart=${T}) causes bitmapPos=${b} out of bounds (encoded.length=${r.length})`);
9424
- const M = (function(D, L, k, F) {
9424
+ const I = (function(D, L, k, F) {
9425
9425
  F.byteContainer.length < k && (F.byteContainer = new Uint8Array(2 * k), F.byteContainerI32 = void 0);
9426
9426
  const O = F.byteContainer, j = k >>> 2;
9427
9427
  if (3 & O.byteOffset) for (let J = 0; J < j; J = J + 1 | 0) {
@@ -9438,7 +9438,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9438
9438
  for (let ie = 0; ie < Y; ie = ie + 1 | 0) O[ne + ie | 0] = J >>> (ie << 3) & 255;
9439
9439
  }
9440
9440
  return O;
9441
- })(r, T, v, l), I = v, A = (function(D, L, k) {
9441
+ })(r, T, v, l), M = v, A = (function(D, L, k) {
9442
9442
  const F = 0 | D[L++], O = k.dataToBePacked;
9443
9443
  for (let j = 2; j <= 32; j = j + 1 | 0) {
9444
9444
  if (!(F >>> j - 1 & 1)) continue;
@@ -9473,81 +9473,81 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9473
9473
  Se > 0 && (ce = u_(O, be, _e, Se, J, ne, ce, ie, se));
9474
9474
  }
9475
9475
  if (le !== F) throw new Error(`FastPFOR decode: packed region mismatch (pageStart=${L}, packedStart=${k}, consumedPackedEnd=${le}, expectedPackedEnd=${F}, packedWords=${F - k}, encoded.length=${D.length})`);
9476
- })(r, u, g, m, e, 0 | s, o / An | 0, M, I, l), A;
9476
+ })(r, u, g, m, e, 0 | s, o / An | 0, I, M, l), A;
9477
9477
  }
9478
9478
  function d_(r, e, i, s, o) {
9479
9479
  switch (o) {
9480
9480
  case 2:
9481
9481
  return void (function(m, v, _, T) {
9482
9482
  let b = T;
9483
- const M = m[v] >>> 0, I = m[v + 1] >>> 0;
9484
- _[b++] = M >>> 0 & 3, _[b++] = M >>> 2 & 3, _[b++] = M >>> 4 & 3, _[b++] = M >>> 6 & 3, _[b++] = M >>> 8 & 3, _[b++] = M >>> 10 & 3, _[b++] = M >>> 12 & 3, _[b++] = M >>> 14 & 3, _[b++] = M >>> 16 & 3, _[b++] = M >>> 18 & 3, _[b++] = M >>> 20 & 3, _[b++] = M >>> 22 & 3, _[b++] = M >>> 24 & 3, _[b++] = M >>> 26 & 3, _[b++] = M >>> 28 & 3, _[b++] = M >>> 30 & 3, _[b++] = I >>> 0 & 3, _[b++] = I >>> 2 & 3, _[b++] = I >>> 4 & 3, _[b++] = I >>> 6 & 3, _[b++] = I >>> 8 & 3, _[b++] = I >>> 10 & 3, _[b++] = I >>> 12 & 3, _[b++] = I >>> 14 & 3, _[b++] = I >>> 16 & 3, _[b++] = I >>> 18 & 3, _[b++] = I >>> 20 & 3, _[b++] = I >>> 22 & 3, _[b++] = I >>> 24 & 3, _[b++] = I >>> 26 & 3, _[b++] = I >>> 28 & 3, _[b] = I >>> 30 & 3;
9483
+ const I = m[v] >>> 0, M = m[v + 1] >>> 0;
9484
+ _[b++] = I >>> 0 & 3, _[b++] = I >>> 2 & 3, _[b++] = I >>> 4 & 3, _[b++] = I >>> 6 & 3, _[b++] = I >>> 8 & 3, _[b++] = I >>> 10 & 3, _[b++] = I >>> 12 & 3, _[b++] = I >>> 14 & 3, _[b++] = I >>> 16 & 3, _[b++] = I >>> 18 & 3, _[b++] = I >>> 20 & 3, _[b++] = I >>> 22 & 3, _[b++] = I >>> 24 & 3, _[b++] = I >>> 26 & 3, _[b++] = I >>> 28 & 3, _[b++] = I >>> 30 & 3, _[b++] = M >>> 0 & 3, _[b++] = M >>> 2 & 3, _[b++] = M >>> 4 & 3, _[b++] = M >>> 6 & 3, _[b++] = M >>> 8 & 3, _[b++] = M >>> 10 & 3, _[b++] = M >>> 12 & 3, _[b++] = M >>> 14 & 3, _[b++] = M >>> 16 & 3, _[b++] = M >>> 18 & 3, _[b++] = M >>> 20 & 3, _[b++] = M >>> 22 & 3, _[b++] = M >>> 24 & 3, _[b++] = M >>> 26 & 3, _[b++] = M >>> 28 & 3, _[b] = M >>> 30 & 3;
9485
9485
  })(r, e, i, s);
9486
9486
  case 3:
9487
9487
  return void (function(m, v, _, T) {
9488
9488
  let b = T;
9489
- const M = m[v] >>> 0, I = m[v + 1] >>> 0, A = m[v + 2] >>> 0;
9490
- _[b++] = M >>> 0 & 7, _[b++] = M >>> 3 & 7, _[b++] = M >>> 6 & 7, _[b++] = M >>> 9 & 7, _[b++] = M >>> 12 & 7, _[b++] = M >>> 15 & 7, _[b++] = M >>> 18 & 7, _[b++] = M >>> 21 & 7, _[b++] = M >>> 24 & 7, _[b++] = M >>> 27 & 7, _[b++] = 7 & (M >>> 30 | (1 & I) << 2), _[b++] = I >>> 1 & 7, _[b++] = I >>> 4 & 7, _[b++] = I >>> 7 & 7, _[b++] = I >>> 10 & 7, _[b++] = I >>> 13 & 7, _[b++] = I >>> 16 & 7, _[b++] = I >>> 19 & 7, _[b++] = I >>> 22 & 7, _[b++] = I >>> 25 & 7, _[b++] = I >>> 28 & 7, _[b++] = 7 & (I >>> 31 | (3 & A) << 1), _[b++] = A >>> 2 & 7, _[b++] = A >>> 5 & 7, _[b++] = A >>> 8 & 7, _[b++] = A >>> 11 & 7, _[b++] = A >>> 14 & 7, _[b++] = A >>> 17 & 7, _[b++] = A >>> 20 & 7, _[b++] = A >>> 23 & 7, _[b++] = A >>> 26 & 7, _[b] = A >>> 29 & 7;
9489
+ const I = m[v] >>> 0, M = m[v + 1] >>> 0, A = m[v + 2] >>> 0;
9490
+ _[b++] = I >>> 0 & 7, _[b++] = I >>> 3 & 7, _[b++] = I >>> 6 & 7, _[b++] = I >>> 9 & 7, _[b++] = I >>> 12 & 7, _[b++] = I >>> 15 & 7, _[b++] = I >>> 18 & 7, _[b++] = I >>> 21 & 7, _[b++] = I >>> 24 & 7, _[b++] = I >>> 27 & 7, _[b++] = 7 & (I >>> 30 | (1 & M) << 2), _[b++] = M >>> 1 & 7, _[b++] = M >>> 4 & 7, _[b++] = M >>> 7 & 7, _[b++] = M >>> 10 & 7, _[b++] = M >>> 13 & 7, _[b++] = M >>> 16 & 7, _[b++] = M >>> 19 & 7, _[b++] = M >>> 22 & 7, _[b++] = M >>> 25 & 7, _[b++] = M >>> 28 & 7, _[b++] = 7 & (M >>> 31 | (3 & A) << 1), _[b++] = A >>> 2 & 7, _[b++] = A >>> 5 & 7, _[b++] = A >>> 8 & 7, _[b++] = A >>> 11 & 7, _[b++] = A >>> 14 & 7, _[b++] = A >>> 17 & 7, _[b++] = A >>> 20 & 7, _[b++] = A >>> 23 & 7, _[b++] = A >>> 26 & 7, _[b] = A >>> 29 & 7;
9491
9491
  })(r, e, i, s);
9492
9492
  case 4:
9493
9493
  return void (function(m, v, _, T) {
9494
9494
  let b = T;
9495
- const M = m[v] >>> 0, I = m[v + 1] >>> 0, A = m[v + 2] >>> 0, D = m[v + 3] >>> 0;
9496
- _[b++] = M >>> 0 & 15, _[b++] = M >>> 4 & 15, _[b++] = M >>> 8 & 15, _[b++] = M >>> 12 & 15, _[b++] = M >>> 16 & 15, _[b++] = M >>> 20 & 15, _[b++] = M >>> 24 & 15, _[b++] = M >>> 28 & 15, _[b++] = I >>> 0 & 15, _[b++] = I >>> 4 & 15, _[b++] = I >>> 8 & 15, _[b++] = I >>> 12 & 15, _[b++] = I >>> 16 & 15, _[b++] = I >>> 20 & 15, _[b++] = I >>> 24 & 15, _[b++] = I >>> 28 & 15, _[b++] = A >>> 0 & 15, _[b++] = A >>> 4 & 15, _[b++] = A >>> 8 & 15, _[b++] = A >>> 12 & 15, _[b++] = A >>> 16 & 15, _[b++] = A >>> 20 & 15, _[b++] = A >>> 24 & 15, _[b++] = A >>> 28 & 15, _[b++] = D >>> 0 & 15, _[b++] = D >>> 4 & 15, _[b++] = D >>> 8 & 15, _[b++] = D >>> 12 & 15, _[b++] = D >>> 16 & 15, _[b++] = D >>> 20 & 15, _[b++] = D >>> 24 & 15, _[b] = D >>> 28 & 15;
9495
+ const I = m[v] >>> 0, M = m[v + 1] >>> 0, A = m[v + 2] >>> 0, D = m[v + 3] >>> 0;
9496
+ _[b++] = I >>> 0 & 15, _[b++] = I >>> 4 & 15, _[b++] = I >>> 8 & 15, _[b++] = I >>> 12 & 15, _[b++] = I >>> 16 & 15, _[b++] = I >>> 20 & 15, _[b++] = I >>> 24 & 15, _[b++] = I >>> 28 & 15, _[b++] = M >>> 0 & 15, _[b++] = M >>> 4 & 15, _[b++] = M >>> 8 & 15, _[b++] = M >>> 12 & 15, _[b++] = M >>> 16 & 15, _[b++] = M >>> 20 & 15, _[b++] = M >>> 24 & 15, _[b++] = M >>> 28 & 15, _[b++] = A >>> 0 & 15, _[b++] = A >>> 4 & 15, _[b++] = A >>> 8 & 15, _[b++] = A >>> 12 & 15, _[b++] = A >>> 16 & 15, _[b++] = A >>> 20 & 15, _[b++] = A >>> 24 & 15, _[b++] = A >>> 28 & 15, _[b++] = D >>> 0 & 15, _[b++] = D >>> 4 & 15, _[b++] = D >>> 8 & 15, _[b++] = D >>> 12 & 15, _[b++] = D >>> 16 & 15, _[b++] = D >>> 20 & 15, _[b++] = D >>> 24 & 15, _[b] = D >>> 28 & 15;
9497
9497
  })(r, e, i, s);
9498
9498
  case 5:
9499
9499
  return void (function(m, v, _, T) {
9500
9500
  let b = T;
9501
- const M = m[v] >>> 0, I = m[v + 1] >>> 0, A = m[v + 2] >>> 0, D = m[v + 3] >>> 0, L = m[v + 4] >>> 0;
9502
- _[b++] = M >>> 0 & 31, _[b++] = M >>> 5 & 31, _[b++] = M >>> 10 & 31, _[b++] = M >>> 15 & 31, _[b++] = M >>> 20 & 31, _[b++] = M >>> 25 & 31, _[b++] = 31 & (M >>> 30 | (7 & I) << 2), _[b++] = I >>> 3 & 31, _[b++] = I >>> 8 & 31, _[b++] = I >>> 13 & 31, _[b++] = I >>> 18 & 31, _[b++] = I >>> 23 & 31, _[b++] = 31 & (I >>> 28 | (1 & A) << 4), _[b++] = A >>> 1 & 31, _[b++] = A >>> 6 & 31, _[b++] = A >>> 11 & 31, _[b++] = A >>> 16 & 31, _[b++] = A >>> 21 & 31, _[b++] = A >>> 26 & 31, _[b++] = 31 & (A >>> 31 | (15 & D) << 1), _[b++] = D >>> 4 & 31, _[b++] = D >>> 9 & 31, _[b++] = D >>> 14 & 31, _[b++] = D >>> 19 & 31, _[b++] = D >>> 24 & 31, _[b++] = 31 & (D >>> 29 | (3 & L) << 3), _[b++] = L >>> 2 & 31, _[b++] = L >>> 7 & 31, _[b++] = L >>> 12 & 31, _[b++] = L >>> 17 & 31, _[b++] = L >>> 22 & 31, _[b] = L >>> 27 & 31;
9501
+ const I = m[v] >>> 0, M = m[v + 1] >>> 0, A = m[v + 2] >>> 0, D = m[v + 3] >>> 0, L = m[v + 4] >>> 0;
9502
+ _[b++] = I >>> 0 & 31, _[b++] = I >>> 5 & 31, _[b++] = I >>> 10 & 31, _[b++] = I >>> 15 & 31, _[b++] = I >>> 20 & 31, _[b++] = I >>> 25 & 31, _[b++] = 31 & (I >>> 30 | (7 & M) << 2), _[b++] = M >>> 3 & 31, _[b++] = M >>> 8 & 31, _[b++] = M >>> 13 & 31, _[b++] = M >>> 18 & 31, _[b++] = M >>> 23 & 31, _[b++] = 31 & (M >>> 28 | (1 & A) << 4), _[b++] = A >>> 1 & 31, _[b++] = A >>> 6 & 31, _[b++] = A >>> 11 & 31, _[b++] = A >>> 16 & 31, _[b++] = A >>> 21 & 31, _[b++] = A >>> 26 & 31, _[b++] = 31 & (A >>> 31 | (15 & D) << 1), _[b++] = D >>> 4 & 31, _[b++] = D >>> 9 & 31, _[b++] = D >>> 14 & 31, _[b++] = D >>> 19 & 31, _[b++] = D >>> 24 & 31, _[b++] = 31 & (D >>> 29 | (3 & L) << 3), _[b++] = L >>> 2 & 31, _[b++] = L >>> 7 & 31, _[b++] = L >>> 12 & 31, _[b++] = L >>> 17 & 31, _[b++] = L >>> 22 & 31, _[b] = L >>> 27 & 31;
9503
9503
  })(r, e, i, s);
9504
9504
  case 6:
9505
9505
  return void (function(m, v, _, T) {
9506
9506
  let b = T;
9507
- const M = m[v] >>> 0, I = m[v + 1] >>> 0, A = m[v + 2] >>> 0, D = m[v + 3] >>> 0, L = m[v + 4] >>> 0, k = m[v + 5] >>> 0;
9508
- _[b++] = M >>> 0 & 63, _[b++] = M >>> 6 & 63, _[b++] = M >>> 12 & 63, _[b++] = M >>> 18 & 63, _[b++] = M >>> 24 & 63, _[b++] = 63 & (M >>> 30 | (15 & I) << 2), _[b++] = I >>> 4 & 63, _[b++] = I >>> 10 & 63, _[b++] = I >>> 16 & 63, _[b++] = I >>> 22 & 63, _[b++] = 63 & (I >>> 28 | (3 & A) << 4), _[b++] = A >>> 2 & 63, _[b++] = A >>> 8 & 63, _[b++] = A >>> 14 & 63, _[b++] = A >>> 20 & 63, _[b++] = A >>> 26 & 63, _[b++] = D >>> 0 & 63, _[b++] = D >>> 6 & 63, _[b++] = D >>> 12 & 63, _[b++] = D >>> 18 & 63, _[b++] = D >>> 24 & 63, _[b++] = 63 & (D >>> 30 | (15 & L) << 2), _[b++] = L >>> 4 & 63, _[b++] = L >>> 10 & 63, _[b++] = L >>> 16 & 63, _[b++] = L >>> 22 & 63, _[b++] = 63 & (L >>> 28 | (3 & k) << 4), _[b++] = k >>> 2 & 63, _[b++] = k >>> 8 & 63, _[b++] = k >>> 14 & 63, _[b++] = k >>> 20 & 63, _[b] = k >>> 26 & 63;
9507
+ const I = m[v] >>> 0, M = m[v + 1] >>> 0, A = m[v + 2] >>> 0, D = m[v + 3] >>> 0, L = m[v + 4] >>> 0, k = m[v + 5] >>> 0;
9508
+ _[b++] = I >>> 0 & 63, _[b++] = I >>> 6 & 63, _[b++] = I >>> 12 & 63, _[b++] = I >>> 18 & 63, _[b++] = I >>> 24 & 63, _[b++] = 63 & (I >>> 30 | (15 & M) << 2), _[b++] = M >>> 4 & 63, _[b++] = M >>> 10 & 63, _[b++] = M >>> 16 & 63, _[b++] = M >>> 22 & 63, _[b++] = 63 & (M >>> 28 | (3 & A) << 4), _[b++] = A >>> 2 & 63, _[b++] = A >>> 8 & 63, _[b++] = A >>> 14 & 63, _[b++] = A >>> 20 & 63, _[b++] = A >>> 26 & 63, _[b++] = D >>> 0 & 63, _[b++] = D >>> 6 & 63, _[b++] = D >>> 12 & 63, _[b++] = D >>> 18 & 63, _[b++] = D >>> 24 & 63, _[b++] = 63 & (D >>> 30 | (15 & L) << 2), _[b++] = L >>> 4 & 63, _[b++] = L >>> 10 & 63, _[b++] = L >>> 16 & 63, _[b++] = L >>> 22 & 63, _[b++] = 63 & (L >>> 28 | (3 & k) << 4), _[b++] = k >>> 2 & 63, _[b++] = k >>> 8 & 63, _[b++] = k >>> 14 & 63, _[b++] = k >>> 20 & 63, _[b] = k >>> 26 & 63;
9509
9509
  })(r, e, i, s);
9510
9510
  case 7:
9511
9511
  return void (function(m, v, _, T) {
9512
9512
  let b = T;
9513
- const M = m[v] >>> 0, I = m[v + 1] >>> 0, A = m[v + 2] >>> 0, D = m[v + 3] >>> 0, L = m[v + 4] >>> 0, k = m[v + 5] >>> 0, F = m[v + 6] >>> 0;
9514
- _[b++] = M >>> 0 & 127, _[b++] = M >>> 7 & 127, _[b++] = M >>> 14 & 127, _[b++] = M >>> 21 & 127, _[b++] = 127 & (M >>> 28 | (7 & I) << 4), _[b++] = I >>> 3 & 127, _[b++] = I >>> 10 & 127, _[b++] = I >>> 17 & 127, _[b++] = I >>> 24 & 127, _[b++] = 127 & (I >>> 31 | (63 & A) << 1), _[b++] = A >>> 6 & 127, _[b++] = A >>> 13 & 127, _[b++] = A >>> 20 & 127, _[b++] = 127 & (A >>> 27 | (3 & D) << 5), _[b++] = D >>> 2 & 127, _[b++] = D >>> 9 & 127, _[b++] = D >>> 16 & 127, _[b++] = D >>> 23 & 127, _[b++] = 127 & (D >>> 30 | (31 & L) << 2), _[b++] = L >>> 5 & 127, _[b++] = L >>> 12 & 127, _[b++] = L >>> 19 & 127, _[b++] = 127 & (L >>> 26 | (1 & k) << 6), _[b++] = k >>> 1 & 127, _[b++] = k >>> 8 & 127, _[b++] = k >>> 15 & 127, _[b++] = k >>> 22 & 127, _[b++] = 127 & (k >>> 29 | (15 & F) << 3), _[b++] = F >>> 4 & 127, _[b++] = F >>> 11 & 127, _[b++] = F >>> 18 & 127, _[b] = F >>> 25 & 127;
9513
+ const I = m[v] >>> 0, M = m[v + 1] >>> 0, A = m[v + 2] >>> 0, D = m[v + 3] >>> 0, L = m[v + 4] >>> 0, k = m[v + 5] >>> 0, F = m[v + 6] >>> 0;
9514
+ _[b++] = I >>> 0 & 127, _[b++] = I >>> 7 & 127, _[b++] = I >>> 14 & 127, _[b++] = I >>> 21 & 127, _[b++] = 127 & (I >>> 28 | (7 & M) << 4), _[b++] = M >>> 3 & 127, _[b++] = M >>> 10 & 127, _[b++] = M >>> 17 & 127, _[b++] = M >>> 24 & 127, _[b++] = 127 & (M >>> 31 | (63 & A) << 1), _[b++] = A >>> 6 & 127, _[b++] = A >>> 13 & 127, _[b++] = A >>> 20 & 127, _[b++] = 127 & (A >>> 27 | (3 & D) << 5), _[b++] = D >>> 2 & 127, _[b++] = D >>> 9 & 127, _[b++] = D >>> 16 & 127, _[b++] = D >>> 23 & 127, _[b++] = 127 & (D >>> 30 | (31 & L) << 2), _[b++] = L >>> 5 & 127, _[b++] = L >>> 12 & 127, _[b++] = L >>> 19 & 127, _[b++] = 127 & (L >>> 26 | (1 & k) << 6), _[b++] = k >>> 1 & 127, _[b++] = k >>> 8 & 127, _[b++] = k >>> 15 & 127, _[b++] = k >>> 22 & 127, _[b++] = 127 & (k >>> 29 | (15 & F) << 3), _[b++] = F >>> 4 & 127, _[b++] = F >>> 11 & 127, _[b++] = F >>> 18 & 127, _[b] = F >>> 25 & 127;
9515
9515
  })(r, e, i, s);
9516
9516
  case 8:
9517
9517
  return void (function(m, v, _, T) {
9518
9518
  let b = T;
9519
- const M = m[v] >>> 0, I = m[v + 1] >>> 0, A = m[v + 2] >>> 0, D = m[v + 3] >>> 0, L = m[v + 4] >>> 0, k = m[v + 5] >>> 0, F = m[v + 6] >>> 0, O = m[v + 7] >>> 0;
9520
- _[b++] = M >>> 0 & 255, _[b++] = M >>> 8 & 255, _[b++] = M >>> 16 & 255, _[b++] = M >>> 24 & 255, _[b++] = I >>> 0 & 255, _[b++] = I >>> 8 & 255, _[b++] = I >>> 16 & 255, _[b++] = I >>> 24 & 255, _[b++] = A >>> 0 & 255, _[b++] = A >>> 8 & 255, _[b++] = A >>> 16 & 255, _[b++] = A >>> 24 & 255, _[b++] = D >>> 0 & 255, _[b++] = D >>> 8 & 255, _[b++] = D >>> 16 & 255, _[b++] = D >>> 24 & 255, _[b++] = L >>> 0 & 255, _[b++] = L >>> 8 & 255, _[b++] = L >>> 16 & 255, _[b++] = L >>> 24 & 255, _[b++] = k >>> 0 & 255, _[b++] = k >>> 8 & 255, _[b++] = k >>> 16 & 255, _[b++] = k >>> 24 & 255, _[b++] = F >>> 0 & 255, _[b++] = F >>> 8 & 255, _[b++] = F >>> 16 & 255, _[b++] = F >>> 24 & 255, _[b++] = O >>> 0 & 255, _[b++] = O >>> 8 & 255, _[b++] = O >>> 16 & 255, _[b] = O >>> 24 & 255;
9519
+ const I = m[v] >>> 0, M = m[v + 1] >>> 0, A = m[v + 2] >>> 0, D = m[v + 3] >>> 0, L = m[v + 4] >>> 0, k = m[v + 5] >>> 0, F = m[v + 6] >>> 0, O = m[v + 7] >>> 0;
9520
+ _[b++] = I >>> 0 & 255, _[b++] = I >>> 8 & 255, _[b++] = I >>> 16 & 255, _[b++] = I >>> 24 & 255, _[b++] = M >>> 0 & 255, _[b++] = M >>> 8 & 255, _[b++] = M >>> 16 & 255, _[b++] = M >>> 24 & 255, _[b++] = A >>> 0 & 255, _[b++] = A >>> 8 & 255, _[b++] = A >>> 16 & 255, _[b++] = A >>> 24 & 255, _[b++] = D >>> 0 & 255, _[b++] = D >>> 8 & 255, _[b++] = D >>> 16 & 255, _[b++] = D >>> 24 & 255, _[b++] = L >>> 0 & 255, _[b++] = L >>> 8 & 255, _[b++] = L >>> 16 & 255, _[b++] = L >>> 24 & 255, _[b++] = k >>> 0 & 255, _[b++] = k >>> 8 & 255, _[b++] = k >>> 16 & 255, _[b++] = k >>> 24 & 255, _[b++] = F >>> 0 & 255, _[b++] = F >>> 8 & 255, _[b++] = F >>> 16 & 255, _[b++] = F >>> 24 & 255, _[b++] = O >>> 0 & 255, _[b++] = O >>> 8 & 255, _[b++] = O >>> 16 & 255, _[b] = O >>> 24 & 255;
9521
9521
  })(r, e, i, s);
9522
9522
  case 9:
9523
9523
  return void (function(m, v, _, T) {
9524
9524
  let b = T;
9525
- const M = m[v] >>> 0, I = m[v + 1] >>> 0, A = m[v + 2] >>> 0, D = m[v + 3] >>> 0, L = m[v + 4] >>> 0, k = m[v + 5] >>> 0, F = m[v + 6] >>> 0, O = m[v + 7] >>> 0, j = m[v + 8] >>> 0;
9526
- _[b++] = M >>> 0 & 511, _[b++] = M >>> 9 & 511, _[b++] = M >>> 18 & 511, _[b++] = 511 & (M >>> 27 | (15 & I) << 5), _[b++] = I >>> 4 & 511, _[b++] = I >>> 13 & 511, _[b++] = I >>> 22 & 511, _[b++] = 511 & (I >>> 31 | (255 & A) << 1), _[b++] = A >>> 8 & 511, _[b++] = A >>> 17 & 511, _[b++] = 511 & (A >>> 26 | (7 & D) << 6), _[b++] = D >>> 3 & 511, _[b++] = D >>> 12 & 511, _[b++] = D >>> 21 & 511, _[b++] = 511 & (D >>> 30 | (127 & L) << 2), _[b++] = L >>> 7 & 511, _[b++] = L >>> 16 & 511, _[b++] = 511 & (L >>> 25 | (3 & k) << 7), _[b++] = k >>> 2 & 511, _[b++] = k >>> 11 & 511, _[b++] = k >>> 20 & 511, _[b++] = 511 & (k >>> 29 | (63 & F) << 3), _[b++] = F >>> 6 & 511, _[b++] = F >>> 15 & 511, _[b++] = 511 & (F >>> 24 | (1 & O) << 8), _[b++] = O >>> 1 & 511, _[b++] = O >>> 10 & 511, _[b++] = O >>> 19 & 511, _[b++] = 511 & (O >>> 28 | (31 & j) << 4), _[b++] = j >>> 5 & 511, _[b++] = j >>> 14 & 511, _[b] = j >>> 23 & 511;
9525
+ const I = m[v] >>> 0, M = m[v + 1] >>> 0, A = m[v + 2] >>> 0, D = m[v + 3] >>> 0, L = m[v + 4] >>> 0, k = m[v + 5] >>> 0, F = m[v + 6] >>> 0, O = m[v + 7] >>> 0, j = m[v + 8] >>> 0;
9526
+ _[b++] = I >>> 0 & 511, _[b++] = I >>> 9 & 511, _[b++] = I >>> 18 & 511, _[b++] = 511 & (I >>> 27 | (15 & M) << 5), _[b++] = M >>> 4 & 511, _[b++] = M >>> 13 & 511, _[b++] = M >>> 22 & 511, _[b++] = 511 & (M >>> 31 | (255 & A) << 1), _[b++] = A >>> 8 & 511, _[b++] = A >>> 17 & 511, _[b++] = 511 & (A >>> 26 | (7 & D) << 6), _[b++] = D >>> 3 & 511, _[b++] = D >>> 12 & 511, _[b++] = D >>> 21 & 511, _[b++] = 511 & (D >>> 30 | (127 & L) << 2), _[b++] = L >>> 7 & 511, _[b++] = L >>> 16 & 511, _[b++] = 511 & (L >>> 25 | (3 & k) << 7), _[b++] = k >>> 2 & 511, _[b++] = k >>> 11 & 511, _[b++] = k >>> 20 & 511, _[b++] = 511 & (k >>> 29 | (63 & F) << 3), _[b++] = F >>> 6 & 511, _[b++] = F >>> 15 & 511, _[b++] = 511 & (F >>> 24 | (1 & O) << 8), _[b++] = O >>> 1 & 511, _[b++] = O >>> 10 & 511, _[b++] = O >>> 19 & 511, _[b++] = 511 & (O >>> 28 | (31 & j) << 4), _[b++] = j >>> 5 & 511, _[b++] = j >>> 14 & 511, _[b] = j >>> 23 & 511;
9527
9527
  })(r, e, i, s);
9528
9528
  case 10:
9529
9529
  return void (function(m, v, _, T) {
9530
9530
  let b = T;
9531
- const M = m[v] >>> 0, I = m[v + 1] >>> 0, A = m[v + 2] >>> 0, D = m[v + 3] >>> 0, L = m[v + 4] >>> 0, k = m[v + 5] >>> 0, F = m[v + 6] >>> 0, O = m[v + 7] >>> 0, j = m[v + 8] >>> 0, Y = m[v + 9] >>> 0;
9532
- _[b++] = M >>> 0 & 1023, _[b++] = M >>> 10 & 1023, _[b++] = M >>> 20 & 1023, _[b++] = 1023 & (M >>> 30 | (255 & I) << 2), _[b++] = I >>> 8 & 1023, _[b++] = I >>> 18 & 1023, _[b++] = 1023 & (I >>> 28 | (63 & A) << 4), _[b++] = A >>> 6 & 1023, _[b++] = A >>> 16 & 1023, _[b++] = 1023 & (A >>> 26 | (15 & D) << 6), _[b++] = D >>> 4 & 1023, _[b++] = D >>> 14 & 1023, _[b++] = 1023 & (D >>> 24 | (3 & L) << 8), _[b++] = L >>> 2 & 1023, _[b++] = L >>> 12 & 1023, _[b++] = L >>> 22 & 1023, _[b++] = k >>> 0 & 1023, _[b++] = k >>> 10 & 1023, _[b++] = k >>> 20 & 1023, _[b++] = 1023 & (k >>> 30 | (255 & F) << 2), _[b++] = F >>> 8 & 1023, _[b++] = F >>> 18 & 1023, _[b++] = 1023 & (F >>> 28 | (63 & O) << 4), _[b++] = O >>> 6 & 1023, _[b++] = O >>> 16 & 1023, _[b++] = 1023 & (O >>> 26 | (15 & j) << 6), _[b++] = j >>> 4 & 1023, _[b++] = j >>> 14 & 1023, _[b++] = 1023 & (j >>> 24 | (3 & Y) << 8), _[b++] = Y >>> 2 & 1023, _[b++] = Y >>> 12 & 1023, _[b] = Y >>> 22 & 1023;
9531
+ const I = m[v] >>> 0, M = m[v + 1] >>> 0, A = m[v + 2] >>> 0, D = m[v + 3] >>> 0, L = m[v + 4] >>> 0, k = m[v + 5] >>> 0, F = m[v + 6] >>> 0, O = m[v + 7] >>> 0, j = m[v + 8] >>> 0, Y = m[v + 9] >>> 0;
9532
+ _[b++] = I >>> 0 & 1023, _[b++] = I >>> 10 & 1023, _[b++] = I >>> 20 & 1023, _[b++] = 1023 & (I >>> 30 | (255 & M) << 2), _[b++] = M >>> 8 & 1023, _[b++] = M >>> 18 & 1023, _[b++] = 1023 & (M >>> 28 | (63 & A) << 4), _[b++] = A >>> 6 & 1023, _[b++] = A >>> 16 & 1023, _[b++] = 1023 & (A >>> 26 | (15 & D) << 6), _[b++] = D >>> 4 & 1023, _[b++] = D >>> 14 & 1023, _[b++] = 1023 & (D >>> 24 | (3 & L) << 8), _[b++] = L >>> 2 & 1023, _[b++] = L >>> 12 & 1023, _[b++] = L >>> 22 & 1023, _[b++] = k >>> 0 & 1023, _[b++] = k >>> 10 & 1023, _[b++] = k >>> 20 & 1023, _[b++] = 1023 & (k >>> 30 | (255 & F) << 2), _[b++] = F >>> 8 & 1023, _[b++] = F >>> 18 & 1023, _[b++] = 1023 & (F >>> 28 | (63 & O) << 4), _[b++] = O >>> 6 & 1023, _[b++] = O >>> 16 & 1023, _[b++] = 1023 & (O >>> 26 | (15 & j) << 6), _[b++] = j >>> 4 & 1023, _[b++] = j >>> 14 & 1023, _[b++] = 1023 & (j >>> 24 | (3 & Y) << 8), _[b++] = Y >>> 2 & 1023, _[b++] = Y >>> 12 & 1023, _[b] = Y >>> 22 & 1023;
9533
9533
  })(r, e, i, s);
9534
9534
  case 11:
9535
9535
  return void (function(m, v, _, T) {
9536
9536
  let b = T;
9537
- const M = m[v] >>> 0, I = m[v + 1] >>> 0, A = m[v + 2] >>> 0, D = m[v + 3] >>> 0, L = m[v + 4] >>> 0, k = m[v + 5] >>> 0, F = m[v + 6] >>> 0, O = m[v + 7] >>> 0, j = m[v + 8] >>> 0, Y = m[v + 9] >>> 0, J = m[v + 10] >>> 0;
9538
- _[b++] = M >>> 0 & 2047, _[b++] = M >>> 11 & 2047, _[b++] = 2047 & (M >>> 22 | (1 & I) << 10), _[b++] = I >>> 1 & 2047, _[b++] = I >>> 12 & 2047, _[b++] = 2047 & (I >>> 23 | (3 & A) << 9), _[b++] = A >>> 2 & 2047, _[b++] = A >>> 13 & 2047, _[b++] = 2047 & (A >>> 24 | (7 & D) << 8), _[b++] = D >>> 3 & 2047, _[b++] = D >>> 14 & 2047, _[b++] = 2047 & (D >>> 25 | (15 & L) << 7), _[b++] = L >>> 4 & 2047, _[b++] = L >>> 15 & 2047, _[b++] = 2047 & (L >>> 26 | (31 & k) << 6), _[b++] = k >>> 5 & 2047, _[b++] = k >>> 16 & 2047, _[b++] = 2047 & (k >>> 27 | (63 & F) << 5), _[b++] = F >>> 6 & 2047, _[b++] = F >>> 17 & 2047, _[b++] = 2047 & (F >>> 28 | (127 & O) << 4), _[b++] = O >>> 7 & 2047, _[b++] = O >>> 18 & 2047, _[b++] = 2047 & (O >>> 29 | (255 & j) << 3), _[b++] = j >>> 8 & 2047, _[b++] = j >>> 19 & 2047, _[b++] = 2047 & (j >>> 30 | (511 & Y) << 2), _[b++] = Y >>> 9 & 2047, _[b++] = Y >>> 20 & 2047, _[b++] = 2047 & (Y >>> 31 | (1023 & J) << 1), _[b++] = J >>> 10 & 2047, _[b] = J >>> 21 & 2047;
9537
+ const I = m[v] >>> 0, M = m[v + 1] >>> 0, A = m[v + 2] >>> 0, D = m[v + 3] >>> 0, L = m[v + 4] >>> 0, k = m[v + 5] >>> 0, F = m[v + 6] >>> 0, O = m[v + 7] >>> 0, j = m[v + 8] >>> 0, Y = m[v + 9] >>> 0, J = m[v + 10] >>> 0;
9538
+ _[b++] = I >>> 0 & 2047, _[b++] = I >>> 11 & 2047, _[b++] = 2047 & (I >>> 22 | (1 & M) << 10), _[b++] = M >>> 1 & 2047, _[b++] = M >>> 12 & 2047, _[b++] = 2047 & (M >>> 23 | (3 & A) << 9), _[b++] = A >>> 2 & 2047, _[b++] = A >>> 13 & 2047, _[b++] = 2047 & (A >>> 24 | (7 & D) << 8), _[b++] = D >>> 3 & 2047, _[b++] = D >>> 14 & 2047, _[b++] = 2047 & (D >>> 25 | (15 & L) << 7), _[b++] = L >>> 4 & 2047, _[b++] = L >>> 15 & 2047, _[b++] = 2047 & (L >>> 26 | (31 & k) << 6), _[b++] = k >>> 5 & 2047, _[b++] = k >>> 16 & 2047, _[b++] = 2047 & (k >>> 27 | (63 & F) << 5), _[b++] = F >>> 6 & 2047, _[b++] = F >>> 17 & 2047, _[b++] = 2047 & (F >>> 28 | (127 & O) << 4), _[b++] = O >>> 7 & 2047, _[b++] = O >>> 18 & 2047, _[b++] = 2047 & (O >>> 29 | (255 & j) << 3), _[b++] = j >>> 8 & 2047, _[b++] = j >>> 19 & 2047, _[b++] = 2047 & (j >>> 30 | (511 & Y) << 2), _[b++] = Y >>> 9 & 2047, _[b++] = Y >>> 20 & 2047, _[b++] = 2047 & (Y >>> 31 | (1023 & J) << 1), _[b++] = J >>> 10 & 2047, _[b] = J >>> 21 & 2047;
9539
9539
  })(r, e, i, s);
9540
9540
  case 12:
9541
9541
  return void (function(m, v, _, T) {
9542
9542
  let b = T;
9543
- const M = m[v] >>> 0, I = m[v + 1] >>> 0, A = m[v + 2] >>> 0, D = m[v + 3] >>> 0, L = m[v + 4] >>> 0, k = m[v + 5] >>> 0, F = m[v + 6] >>> 0, O = m[v + 7] >>> 0, j = m[v + 8] >>> 0, Y = m[v + 9] >>> 0, J = m[v + 10] >>> 0, ne = m[v + 11] >>> 0;
9544
- _[b++] = M >>> 0 & 4095, _[b++] = M >>> 12 & 4095, _[b++] = 4095 & (M >>> 24 | (15 & I) << 8), _[b++] = I >>> 4 & 4095, _[b++] = I >>> 16 & 4095, _[b++] = 4095 & (I >>> 28 | (255 & A) << 4), _[b++] = A >>> 8 & 4095, _[b++] = A >>> 20 & 4095, _[b++] = D >>> 0 & 4095, _[b++] = D >>> 12 & 4095, _[b++] = 4095 & (D >>> 24 | (15 & L) << 8), _[b++] = L >>> 4 & 4095, _[b++] = L >>> 16 & 4095, _[b++] = 4095 & (L >>> 28 | (255 & k) << 4), _[b++] = k >>> 8 & 4095, _[b++] = k >>> 20 & 4095, _[b++] = F >>> 0 & 4095, _[b++] = F >>> 12 & 4095, _[b++] = 4095 & (F >>> 24 | (15 & O) << 8), _[b++] = O >>> 4 & 4095, _[b++] = O >>> 16 & 4095, _[b++] = 4095 & (O >>> 28 | (255 & j) << 4), _[b++] = j >>> 8 & 4095, _[b++] = j >>> 20 & 4095, _[b++] = Y >>> 0 & 4095, _[b++] = Y >>> 12 & 4095, _[b++] = 4095 & (Y >>> 24 | (15 & J) << 8), _[b++] = J >>> 4 & 4095, _[b++] = J >>> 16 & 4095, _[b++] = 4095 & (J >>> 28 | (255 & ne) << 4), _[b++] = ne >>> 8 & 4095, _[b] = ne >>> 20 & 4095;
9543
+ const I = m[v] >>> 0, M = m[v + 1] >>> 0, A = m[v + 2] >>> 0, D = m[v + 3] >>> 0, L = m[v + 4] >>> 0, k = m[v + 5] >>> 0, F = m[v + 6] >>> 0, O = m[v + 7] >>> 0, j = m[v + 8] >>> 0, Y = m[v + 9] >>> 0, J = m[v + 10] >>> 0, ne = m[v + 11] >>> 0;
9544
+ _[b++] = I >>> 0 & 4095, _[b++] = I >>> 12 & 4095, _[b++] = 4095 & (I >>> 24 | (15 & M) << 8), _[b++] = M >>> 4 & 4095, _[b++] = M >>> 16 & 4095, _[b++] = 4095 & (M >>> 28 | (255 & A) << 4), _[b++] = A >>> 8 & 4095, _[b++] = A >>> 20 & 4095, _[b++] = D >>> 0 & 4095, _[b++] = D >>> 12 & 4095, _[b++] = 4095 & (D >>> 24 | (15 & L) << 8), _[b++] = L >>> 4 & 4095, _[b++] = L >>> 16 & 4095, _[b++] = 4095 & (L >>> 28 | (255 & k) << 4), _[b++] = k >>> 8 & 4095, _[b++] = k >>> 20 & 4095, _[b++] = F >>> 0 & 4095, _[b++] = F >>> 12 & 4095, _[b++] = 4095 & (F >>> 24 | (15 & O) << 8), _[b++] = O >>> 4 & 4095, _[b++] = O >>> 16 & 4095, _[b++] = 4095 & (O >>> 28 | (255 & j) << 4), _[b++] = j >>> 8 & 4095, _[b++] = j >>> 20 & 4095, _[b++] = Y >>> 0 & 4095, _[b++] = Y >>> 12 & 4095, _[b++] = 4095 & (Y >>> 24 | (15 & J) << 8), _[b++] = J >>> 4 & 4095, _[b++] = J >>> 16 & 4095, _[b++] = 4095 & (J >>> 28 | (255 & ne) << 4), _[b++] = ne >>> 8 & 4095, _[b] = ne >>> 20 & 4095;
9545
9545
  })(r, e, i, s);
9546
9546
  case 16:
9547
9547
  return void (function(m, v, _, T) {
9548
9548
  let b = T;
9549
- const M = m[v] >>> 0, I = m[v + 1] >>> 0, A = m[v + 2] >>> 0, D = m[v + 3] >>> 0, L = m[v + 4] >>> 0, k = m[v + 5] >>> 0, F = m[v + 6] >>> 0, O = m[v + 7] >>> 0, j = m[v + 8] >>> 0, Y = m[v + 9] >>> 0, J = m[v + 10] >>> 0, ne = m[v + 11] >>> 0, ie = m[v + 12] >>> 0, le = m[v + 13] >>> 0, ce = m[v + 14] >>> 0, se = m[v + 15] >>> 0;
9550
- _[b++] = M >>> 0 & 65535, _[b++] = M >>> 16 & 65535, _[b++] = I >>> 0 & 65535, _[b++] = I >>> 16 & 65535, _[b++] = A >>> 0 & 65535, _[b++] = A >>> 16 & 65535, _[b++] = D >>> 0 & 65535, _[b++] = D >>> 16 & 65535, _[b++] = L >>> 0 & 65535, _[b++] = L >>> 16 & 65535, _[b++] = k >>> 0 & 65535, _[b++] = k >>> 16 & 65535, _[b++] = F >>> 0 & 65535, _[b++] = F >>> 16 & 65535, _[b++] = O >>> 0 & 65535, _[b++] = O >>> 16 & 65535, _[b++] = j >>> 0 & 65535, _[b++] = j >>> 16 & 65535, _[b++] = Y >>> 0 & 65535, _[b++] = Y >>> 16 & 65535, _[b++] = J >>> 0 & 65535, _[b++] = J >>> 16 & 65535, _[b++] = ne >>> 0 & 65535, _[b++] = ne >>> 16 & 65535, _[b++] = ie >>> 0 & 65535, _[b++] = ie >>> 16 & 65535, _[b++] = le >>> 0 & 65535, _[b++] = le >>> 16 & 65535, _[b++] = ce >>> 0 & 65535, _[b++] = ce >>> 16 & 65535, _[b++] = se >>> 0 & 65535, _[b] = se >>> 16 & 65535;
9549
+ const I = m[v] >>> 0, M = m[v + 1] >>> 0, A = m[v + 2] >>> 0, D = m[v + 3] >>> 0, L = m[v + 4] >>> 0, k = m[v + 5] >>> 0, F = m[v + 6] >>> 0, O = m[v + 7] >>> 0, j = m[v + 8] >>> 0, Y = m[v + 9] >>> 0, J = m[v + 10] >>> 0, ne = m[v + 11] >>> 0, ie = m[v + 12] >>> 0, le = m[v + 13] >>> 0, ce = m[v + 14] >>> 0, se = m[v + 15] >>> 0;
9550
+ _[b++] = I >>> 0 & 65535, _[b++] = I >>> 16 & 65535, _[b++] = M >>> 0 & 65535, _[b++] = M >>> 16 & 65535, _[b++] = A >>> 0 & 65535, _[b++] = A >>> 16 & 65535, _[b++] = D >>> 0 & 65535, _[b++] = D >>> 16 & 65535, _[b++] = L >>> 0 & 65535, _[b++] = L >>> 16 & 65535, _[b++] = k >>> 0 & 65535, _[b++] = k >>> 16 & 65535, _[b++] = F >>> 0 & 65535, _[b++] = F >>> 16 & 65535, _[b++] = O >>> 0 & 65535, _[b++] = O >>> 16 & 65535, _[b++] = j >>> 0 & 65535, _[b++] = j >>> 16 & 65535, _[b++] = Y >>> 0 & 65535, _[b++] = Y >>> 16 & 65535, _[b++] = J >>> 0 & 65535, _[b++] = J >>> 16 & 65535, _[b++] = ne >>> 0 & 65535, _[b++] = ne >>> 16 & 65535, _[b++] = ie >>> 0 & 65535, _[b++] = ie >>> 16 & 65535, _[b++] = le >>> 0 & 65535, _[b++] = le >>> 16 & 65535, _[b++] = ce >>> 0 & 65535, _[b++] = ce >>> 16 & 65535, _[b++] = se >>> 0 & 65535, _[b] = se >>> 16 & 65535;
9551
9551
  })(r, e, i, s);
9552
9552
  case 32:
9553
9553
  for (let m = 0; m < 32; m = m + 1 | 0) i[s + m | 0] = 0 | r[e + m | 0];
@@ -9666,14 +9666,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9666
9666
  if (e >= 4) for (let s = r[0]; i < e - 4; i += 4) s = r[i] += s, s = r[i + 1] += s, s = r[i + 2] += s, s = r[i + 3] += s;
9667
9667
  for (; i !== r.length; ) r[i] += r[i - 1], ++i;
9668
9668
  }
9669
- var ui, Ir, lo, Ki, _t, Ht, of, ps;
9669
+ var ui, Mr, lo, Ki, _t, Ht, of, ps;
9670
9670
  function zi(r, e) {
9671
9671
  const i = (function(s, o) {
9672
9672
  const l = s[o.get()], u = Object.values(ui)[l >> 4];
9673
9673
  let p = null;
9674
9674
  switch (u) {
9675
9675
  case ui.DATA:
9676
- p = { dictionaryType: Object.values(Ir)[15 & l] };
9676
+ p = { dictionaryType: Object.values(Mr)[15 & l] };
9677
9677
  break;
9678
9678
  case ui.OFFSET:
9679
9679
  p = { offsetType: Object.values(lo)[15 & l] };
@@ -9699,7 +9699,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9699
9699
  r.PRESENT = "PRESENT", r.DATA = "DATA", r.OFFSET = "OFFSET", r.LENGTH = "LENGTH";
9700
9700
  })(ui || (ui = {})), (function(r) {
9701
9701
  r.NONE = "NONE", r.SINGLE = "SINGLE", r.SHARED = "SHARED", r.VERTEX = "VERTEX", r.MORTON = "MORTON", r.FSST = "FSST";
9702
- })(Ir || (Ir = {})), (function(r) {
9702
+ })(Mr || (Mr = {})), (function(r) {
9703
9703
  r.VERTEX = "VERTEX", r.INDEX = "INDEX", r.STRING = "STRING", r.KEY = "KEY";
9704
9704
  })(lo || (lo = {})), (function(r) {
9705
9705
  r.VAR_BINARY = "VAR_BINARY", r.GEOMETRIES = "GEOMETRIES", r.PARTS = "PARTS", r.RINGS = "RINGS", r.TRIANGLES = "TRIANGLES", r.SYMBOL = "SYMBOL", r.DICTIONARY = "DICTIONARY";
@@ -9744,13 +9744,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9744
9744
  if (u.logicalLevelTechnique2 === He.RLE) {
9745
9745
  const v = u;
9746
9746
  if (!g) return (function(_, T, b) {
9747
- const M = new Int32Array(b);
9748
- let I = 0, A = 0;
9747
+ const I = new Int32Array(b);
9748
+ let M = 0, A = 0;
9749
9749
  for (let D = 0; D < T; D++) {
9750
9750
  const L = _[D], k = ht(_[D + T]);
9751
- for (let F = 0; F < L; F++) A += k, M[I++] = A;
9751
+ for (let F = 0; F < L; F++) A += k, I[M++] = A;
9752
9752
  }
9753
- return M;
9753
+ return I;
9754
9754
  })(l, v.runs, v.numRleValues);
9755
9755
  m = nf(l = cd(l, v.runs, v.numRleValues));
9756
9756
  } else m = nf(l);
@@ -9759,14 +9759,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9759
9759
  m = (function(v, _, T) {
9760
9760
  if (T === void 0) {
9761
9761
  T = 0;
9762
- for (let I = 0; I < _; I++) T += v[I];
9762
+ for (let M = 0; M < _; M++) T += v[M];
9763
9763
  }
9764
9764
  const b = new Int32Array(T);
9765
- let M = 0;
9766
- for (let I = 0; I < _; I++) {
9767
- const A = v[I];
9768
- let D = v[I + _];
9769
- D = ht(D), b.fill(D, M, M + A), M += A;
9765
+ let I = 0;
9766
+ for (let M = 0; M < _; M++) {
9767
+ const A = v[M];
9768
+ let D = v[M + _];
9769
+ D = ht(D), b.fill(D, I, I + A), I += A;
9770
9770
  }
9771
9771
  return b;
9772
9772
  })(l, u.runs, u.numRleValues);
@@ -9782,8 +9782,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9782
9782
  const T = v.length / 4 * 4;
9783
9783
  let b = 2;
9784
9784
  if (T >= 4) for (; b < T - 4; b += 4) {
9785
- const M = v[b + 1], I = v[b + 2], A = v[b + 3];
9786
- _[b] = ht(v[b]) + _[b - 2], _[b + 1] = ht(M) + _[b - 1], _[b + 2] = ht(I) + _[b], _[b + 3] = ht(A) + _[b + 1];
9785
+ const I = v[b + 1], M = v[b + 2], A = v[b + 3];
9786
+ _[b] = ht(v[b]) + _[b - 2], _[b + 1] = ht(I) + _[b - 1], _[b + 2] = ht(M) + _[b], _[b + 3] = ht(A) + _[b + 1];
9787
9787
  }
9788
9788
  for (; b !== v.length; b += 2) _[b] = ht(v[b]) + _[b - 2], _[b + 1] = ht(v[b + 1]) + _[b - 1];
9789
9789
  return _;
@@ -9853,7 +9853,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9853
9853
  let m = 1, v = g[0];
9854
9854
  for (let _ = 0; _ < u; _++) {
9855
9855
  const T = l[_], b = l[_ + u];
9856
- for (let M = m; M < m + T; M++) g[M] = b + v, v = g[M];
9856
+ for (let I = m; I < m + T; I++) g[I] = b + v, v = g[I];
9857
9857
  m += T;
9858
9858
  }
9859
9859
  return g;
@@ -9873,9 +9873,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9873
9873
  let v = 1, _ = m[0];
9874
9874
  for (let T = 0; T < p; T++) {
9875
9875
  const b = u[T];
9876
- let M = u[T + p];
9877
- M = ht(M);
9878
- for (let I = v; I < v + b; I++) m[I] = M + _, _ = m[I];
9876
+ let I = u[T + p];
9877
+ I = ht(I);
9878
+ for (let M = v; M < v + b; M++) m[M] = I + _, _ = m[M];
9879
9879
  v += b;
9880
9880
  }
9881
9881
  return m;
@@ -9893,11 +9893,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9893
9893
  return (function(g, m, v, _, T) {
9894
9894
  const b = _.get();
9895
9895
  if (3 & v) throw new Error(`FastPFOR: invalid encodedByteLength=${v} at offset=${b} (encodedBytes.length=${g.length}; expected a multiple of 4 bytes for an int32 big-endian word stream)`);
9896
- const M = v >>> 2, I = (function(D, L) {
9896
+ const I = v >>> 2, M = (function(D, L) {
9897
9897
  if (L <= D.encodedWords.length) return D.encodedWords;
9898
9898
  const k = new Uint32Array(Math.max(16, 2 * L));
9899
9899
  return D.encodedWords = k, k;
9900
- })(T, M);
9900
+ })(T, I);
9901
9901
  (function(D, L, k, F) {
9902
9902
  if (L < 0 || k < 0 || L + k > D.length) throw new RangeError(`decodeBigEndianInt32sInto: out of bounds (offset=${L}, byteLength=${k}, bytes.length=${D.length})`);
9903
9903
  const O = Math.floor(k / 4), j = k % 4 != 0, Y = j ? O + 1 : O;
@@ -9919,7 +9919,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9919
9919
  for (let le = 0; le < ne; le++) ie |= D[J + le] << 24 - 8 * le;
9920
9920
  F[O] = 0 | ie;
9921
9921
  }
9922
- })(g, b, v, I);
9922
+ })(g, b, v, M);
9923
9923
  const A = (function(D, L, k) {
9924
9924
  let F = 0, O = 0;
9925
9925
  const j = new Uint32Array(L), Y = k ?? tf();
@@ -9951,7 +9951,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9951
9951
  }
9952
9952
  if (ye !== Fe) throw new Error(`FastPFOR VByte: truncated stream (decoded=${ye - be}, expected=${se}, consumedWords=${_e - ne}/${ie}, vbyteStart=${ne}, vbyteEnd=${Se})`);
9953
9953
  })(D, F, D.length - F | 0, j, O, L - O | 0), j;
9954
- })(I.subarray(0, M), m, T.decoderWorkspace);
9954
+ })(M.subarray(0, I), m, T.decoderWorkspace);
9955
9955
  return _.add(v), A;
9956
9956
  })(o, l, u, p, (function(g = 16) {
9957
9957
  if (g < 0) throw new RangeError(`initialEncodedWordCapacity must be >= 0, got ${g}`);
@@ -10037,11 +10037,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10037
10037
  if (r.physicalLevelTechnique === ds.VARINT) return (function(v, _, T) {
10038
10038
  const b = new ef(_.get());
10039
10039
  if (T === "int64") {
10040
- const I = wa(v, b, 4);
10041
- return I[2] === 2n && I[3] === 2n;
10040
+ const M = wa(v, b, 4);
10041
+ return M[2] === 2n && M[3] === 2n;
10042
10042
  }
10043
- const M = wi(v, b, 4);
10044
- return M[2] === 2 && M[3] === 2;
10043
+ const I = wi(v, b, 4);
10044
+ return I[2] === 2 && I[3] === 2;
10045
10045
  })(i, s, o) ? _t.SEQUENCE : r.numValues === 1 ? _t.CONST : _t.FLAT;
10046
10046
  const g = s.get(), m = new Int32Array(i.buffer, i.byteOffset + g, 4);
10047
10047
  return s.set(p), m[2] === 2 && m[3] === 2 ? _t.SEQUENCE : r.numValues === 1 ? _t.CONST : _t.FLAT;
@@ -10067,24 +10067,24 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10067
10067
  for (let s = 0; s < e; s++) i |= (r & 1 << 2 * s) >> s;
10068
10068
  return i;
10069
10069
  }
10070
- function Ma(r, e, i, s, o, l, u) {
10070
+ function Ia(r, e, i, s, o, l, u) {
10071
10071
  return r === ps.MORTON ? (function(p, g, m, v, _, T) {
10072
10072
  const b = new Array(_ ? v + 1 : v);
10073
- for (let M = 0; M < v; M++) {
10074
- const I = fd(p[g[m + M]], T.numBits, T.coordinateShift);
10075
- b[M] = new de(I.x, I.y);
10073
+ for (let I = 0; I < v; I++) {
10074
+ const M = fd(p[g[m + I]], T.numBits, T.coordinateShift);
10075
+ b[I] = new de(M.x, M.y);
10076
10076
  }
10077
10077
  return _ && (b[b.length - 1] = b[0]), b;
10078
10078
  })(e, i, s, o, l, u) : (function(p, g, m, v, _) {
10079
10079
  const T = new Array(_ ? v + 1 : v);
10080
10080
  for (let b = 0; b < 2 * v; b += 2) {
10081
- const M = 2 * g[m + b / 2];
10082
- T[b / 2] = new de(p[M], p[M + 1]);
10081
+ const I = 2 * g[m + b / 2];
10082
+ T[b / 2] = new de(p[I], p[I + 1]);
10083
10083
  }
10084
10084
  return _ && (T[T.length - 1] = T[0]), T;
10085
10085
  })(e, i, s, o, l);
10086
10086
  }
10087
- function Ia(r, e, i, s) {
10087
+ function Ma(r, e, i, s) {
10088
10088
  const o = new Array(s ? i + 1 : i);
10089
10089
  for (let l = 0; l < 2 * i; l += 2) o[l / 2] = new de(r[e + l], r[e + l + 1]);
10090
10090
  return s && (o[o.length - 1] = o[0]), o;
@@ -10128,17 +10128,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10128
10128
  return (function(e) {
10129
10129
  const i = new Array(e.numGeometries);
10130
10130
  let s = 1, o = 1, l = 1, u = 0, p = 0, g = 0;
10131
- const m = e.mortonSettings, v = e.topologyVector, _ = v.geometryOffsets, T = v.partOffsets, b = v.ringOffsets, M = e.vertexOffsets, I = !M || M.length === 0, A = e.containsPolygonGeometry(), D = e.vertexBuffer;
10131
+ const m = e.mortonSettings, v = e.topologyVector, _ = v.geometryOffsets, T = v.partOffsets, b = v.ringOffsets, I = e.vertexOffsets, M = !I || I.length === 0, A = e.containsPolygonGeometry(), D = e.vertexBuffer;
10132
10132
  for (let L = 0; L < e.numGeometries; L++) switch (e.geometryType(L)) {
10133
10133
  case Ht.POINT:
10134
10134
  {
10135
10135
  let k, F;
10136
- if (I) k = D[p++], F = D[p++];
10136
+ if (M) k = D[p++], F = D[p++];
10137
10137
  else if (e.vertexBufferType === ps.MORTON) {
10138
- const O = fd(D[M[g++]], m.numBits, m.coordinateShift);
10138
+ const O = fd(D[I[g++]], m.numBits, m.coordinateShift);
10139
10139
  k = O.x, F = O.y;
10140
10140
  } else {
10141
- const O = 2 * M[g++];
10141
+ const O = 2 * I[g++];
10142
10142
  k = D[O], F = D[O + 1];
10143
10143
  }
10144
10144
  i[u++] = [[new de(k, F)]], _ && l++, T && s++, b && o++;
@@ -10149,12 +10149,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10149
10149
  const k = _[l] - _[l - 1];
10150
10150
  l++;
10151
10151
  const F = new Array(k);
10152
- if (I) for (let O = 0; O < k; O++) {
10152
+ if (M) for (let O = 0; O < k; O++) {
10153
10153
  const j = D[p++], Y = D[p++];
10154
10154
  F[O] = new de(j, Y);
10155
10155
  }
10156
10156
  else for (let O = 0; O < k; O++) {
10157
- const j = 2 * M[g++];
10157
+ const j = 2 * I[g++];
10158
10158
  F[O] = new de(D[j], D[j + 1]);
10159
10159
  }
10160
10160
  i[u++] = F.map(((O) => [O])), s += k, o += k;
@@ -10163,7 +10163,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10163
10163
  case Ht.LINESTRING:
10164
10164
  {
10165
10165
  let k, F;
10166
- A ? (k = b[o] - b[o - 1], o++) : k = T[s] - T[s - 1], s++, I ? (F = Ia(D, p, k, !1), p += 2 * k) : (F = Ma(e.vertexBufferType, D, M, g, k, !1, m), g += k), i[u++] = [F], _ && l++;
10166
+ A ? (k = b[o] - b[o - 1], o++) : k = T[s] - T[s - 1], s++, M ? (F = Ma(D, p, k, !1), p += 2 * k) : (F = Ia(e.vertexBufferType, D, I, g, k, !1, m), g += k), i[u++] = [F], _ && l++;
10167
10167
  }
10168
10168
  break;
10169
10169
  case Ht.POLYGON:
@@ -10172,12 +10172,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10172
10172
  s++;
10173
10173
  const F = new Array(k - 1);
10174
10174
  let O, j = b[o] - b[o - 1];
10175
- if (o++, I) {
10176
- O = Ia(D, p, j, !0), p += 2 * j;
10177
- for (let Y = 0; Y < F.length; Y++) j = b[o] - b[o - 1], o++, F[Y] = Ia(D, p, j, !0), p += 2 * j;
10175
+ if (o++, M) {
10176
+ O = Ma(D, p, j, !0), p += 2 * j;
10177
+ for (let Y = 0; Y < F.length; Y++) j = b[o] - b[o - 1], o++, F[Y] = Ma(D, p, j, !0), p += 2 * j;
10178
10178
  } else {
10179
- O = Ma(e.vertexBufferType, D, M, g, j, !0, m), g += j;
10180
- for (let Y = 0; Y < F.length; Y++) j = b[o] - b[o - 1], o++, F[Y] = Ma(e.vertexBufferType, D, M, g, j, !0, m), g += j;
10179
+ O = Ia(e.vertexBufferType, D, I, g, j, !0, m), g += j;
10180
+ for (let Y = 0; Y < F.length; Y++) j = b[o] - b[o - 1], o++, F[Y] = Ia(e.vertexBufferType, D, I, g, j, !0, m), g += j;
10181
10181
  }
10182
10182
  i[u++] = [O].concat(F), _ && l++;
10183
10183
  }
@@ -10189,9 +10189,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10189
10189
  const F = new Array(k);
10190
10190
  for (let O = 0; O < k; O++) {
10191
10191
  let j;
10192
- if (A ? (j = b[o] - b[o - 1], o++) : j = T[s] - T[s - 1], s++, I) F[O] = Ia(D, p, j, !1), p += 2 * j;
10192
+ if (A ? (j = b[o] - b[o - 1], o++) : j = T[s] - T[s - 1], s++, M) F[O] = Ma(D, p, j, !1), p += 2 * j;
10193
10193
  else {
10194
- const Y = Ma(e.vertexBufferType, D, M, g, j, !1, m);
10194
+ const Y = Ia(e.vertexBufferType, D, I, g, j, !1, m);
10195
10195
  F[O] = Y, g += j;
10196
10196
  }
10197
10197
  }
@@ -10208,10 +10208,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10208
10208
  let Y;
10209
10209
  s++;
10210
10210
  const J = new Array(j - 1), ne = b[o] - b[o - 1];
10211
- o++, I ? (Y = Ia(D, p, ne, !0), p += 2 * ne) : (Y = Ma(e.vertexBufferType, D, M, g, ne, !0, m), g += ne);
10211
+ o++, M ? (Y = Ma(D, p, ne, !0), p += 2 * ne) : (Y = Ia(e.vertexBufferType, D, I, g, ne, !0, m), g += ne);
10212
10212
  for (let ie = 0; ie < J.length; ie++) {
10213
10213
  const le = b[o] - b[o - 1];
10214
- o++, I ? (J[ie] = Ia(D, p, le, !0), p += 2 * le) : (J[ie] = Ma(e.vertexBufferType, D, M, g, le, !0, m), g += le);
10214
+ o++, M ? (J[ie] = Ma(D, p, le, !0), p += 2 * le) : (J[ie] = Ia(e.vertexBufferType, D, I, g, le, !0, m), g += le);
10215
10215
  }
10216
10216
  F[O] = [Y].concat(J);
10217
10217
  }
@@ -10290,14 +10290,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10290
10290
  p++;
10291
10291
  const T = [];
10292
10292
  for (let b = 0; b < _; b++) {
10293
- const M = o[g] - o[g - 1];
10293
+ const I = o[g] - o[g - 1];
10294
10294
  g++;
10295
- const I = [];
10296
- for (let A = 0; A < M; A++) {
10295
+ const M = [];
10296
+ for (let A = 0; A < I; A++) {
10297
10297
  const D = this._vertexBuffer[u++], L = this._vertexBuffer[u++];
10298
- I.push(new de(D, L));
10298
+ M.push(new de(D, L));
10299
10299
  }
10300
- I.length > 0 && I.push(I[0]), T.push(I);
10300
+ M.length > 0 && M.push(M[0]), T.push(M);
10301
10301
  }
10302
10302
  e[v] = T, l && m++;
10303
10303
  }
@@ -10307,9 +10307,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10307
10307
  m++;
10308
10308
  const T = [];
10309
10309
  for (let b = 0; b < _; b++) {
10310
- const M = s[p] - s[p - 1];
10310
+ const I = s[p] - s[p - 1];
10311
10311
  p++;
10312
- for (let I = 0; I < M; I++) {
10312
+ for (let M = 0; M < I; M++) {
10313
10313
  const A = o[g] - o[g - 1];
10314
10314
  g++;
10315
10315
  const D = [];
@@ -10397,7 +10397,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10397
10397
  }
10398
10398
  break;
10399
10399
  case ui.DATA:
10400
- Ir.VERTEX === J.logicalStreamType.dictionaryType ? p = dd(r, i, J) : (g = { numBits: J.numBits, coordinateShift: J.coordinateShift }, p = Ji(r, i, J));
10400
+ Mr.VERTEX === J.logicalStreamType.dictionaryType ? p = dd(r, i, J) : (g = { numBits: J.numBits, coordinateShift: J.coordinateShift }, p = Ji(r, i, J));
10401
10401
  }
10402
10402
  }
10403
10403
  return m ? k !== void 0 || F !== void 0 ? yf(s, L, j, m, p, { geometryOffsets: k, partOffsets: F, ringOffsets: O }) : yf(s, L, j, m, p) : g === void 0 ? (function(Y, J, ne, ie, le) {
@@ -10407,7 +10407,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10407
10407
  })(s, L, { geometryOffsets: k, partOffsets: F, ringOffsets: O }, u, p, g);
10408
10408
  }
10409
10409
  const v = Ji(r, i, l);
10410
- let _, T, b, M, I, A, D;
10410
+ let _, T, b, I, M, A, D;
10411
10411
  for (let L = 0; L < e - 1; L++) {
10412
10412
  const k = zi(r, i);
10413
10413
  switch (k.physicalStreamType) {
@@ -10423,7 +10423,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10423
10423
  b = Ji(r, i, k);
10424
10424
  break;
10425
10425
  case Ki.TRIANGLES:
10426
- M = fs(r, i, k);
10426
+ I = fs(r, i, k);
10427
10427
  }
10428
10428
  break;
10429
10429
  case ui.OFFSET:
@@ -10436,10 +10436,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10436
10436
  }
10437
10437
  break;
10438
10438
  case ui.DATA:
10439
- Ir.VERTEX === k.logicalStreamType.dictionaryType ? p = dd(r, i, k) : (g = { numBits: k.numBits, coordinateShift: k.coordinateShift }, p = Ji(r, i, k));
10439
+ Mr.VERTEX === k.logicalStreamType.dictionaryType ? p = dd(r, i, k) : (g = { numBits: k.numBits, coordinateShift: k.coordinateShift }, p = Ji(r, i, k));
10440
10440
  }
10441
10441
  }
10442
- return _ ? (I = md(v, _, 2), T && b ? (A = xf(v, I, T, !1), D = (function(L, k, F, O) {
10442
+ return _ ? (M = md(v, _, 2), T && b ? (A = xf(v, M, T, !1), D = (function(L, k, F, O) {
10443
10443
  const j = new Uint32Array(F[F.length - 1] + 1);
10444
10444
  let Y = 0;
10445
10445
  j[0] = Y;
@@ -10454,7 +10454,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10454
10454
  else for (let re = 0; re < se; re++) j[ne++] = ++Y, J++;
10455
10455
  }
10456
10456
  return j;
10457
- })(v, I, A, b)) : T && (A = (function(L, k, F) {
10457
+ })(v, M, A, b)) : T && (A = (function(L, k, F) {
10458
10458
  const O = new Uint32Array(k[k.length - 1] + 1);
10459
10459
  let j = 0;
10460
10460
  O[0] = j;
@@ -10465,11 +10465,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10465
10465
  else for (let ce = 0; ce < le; ce++) O[Y++] = ++j;
10466
10466
  }
10467
10467
  return O;
10468
- })(v, I, T))) : T && b ? (A = md(v, T, 1), D = xf(v, A, b, !0)) : T && (A = md(v, T, 0)), m && !A ? vf(v, M, m, p) : m ? vf(v, M, m, p, { geometryOffsets: I, partOffsets: A, ringOffsets: D }) : g === void 0 ? (function(L, k, F, O) {
10468
+ })(v, M, T))) : T && b ? (A = md(v, T, 1), D = xf(v, A, b, !0)) : T && (A = md(v, T, 0)), m && !A ? vf(v, I, m, p) : m ? vf(v, I, m, p, { geometryOffsets: M, partOffsets: A, ringOffsets: D }) : g === void 0 ? (function(L, k, F, O) {
10469
10469
  return new gf(ps.VEC_2, L, k, F, O);
10470
- })(v, { geometryOffsets: I, partOffsets: A, ringOffsets: D }, u, p) : (function(L, k, F, O, j) {
10470
+ })(v, { geometryOffsets: M, partOffsets: A, ringOffsets: D }, u, p) : (function(L, k, F, O, j) {
10471
10471
  return new gf(ps.MORTON, L, k, F, O, j);
10472
- })(v, { geometryOffsets: I, partOffsets: A, ringOffsets: D }, u, p, g);
10472
+ })(v, { geometryOffsets: M, partOffsets: A, ringOffsets: D }, u, p, g);
10473
10473
  }
10474
10474
  function md(r, e, i) {
10475
10475
  const s = new Uint32Array(r.length + 1);
@@ -10520,11 +10520,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10520
10520
  for (; _ < p && !(m.get() >= T); ) {
10521
10521
  const b = u[m.increment()];
10522
10522
  if (b <= 127) {
10523
- const M = b + 3, I = u[m.increment()], A = Math.min(_ + M, p);
10524
- v.fill(I, _, A), _ = A;
10523
+ const I = b + 3, M = u[m.increment()], A = Math.min(_ + I, p);
10524
+ v.fill(M, _, A), _ = A;
10525
10525
  } else {
10526
- const M = 256 - b;
10527
- for (let I = 0; I < M && _ < p; I++) v[_++] = u[m.increment()];
10526
+ const I = 256 - b;
10527
+ for (let M = 0; M < I && _ < p; M++) v[_++] = u[m.increment()];
10528
10528
  }
10529
10529
  }
10530
10530
  return m.set(T), v;
@@ -10534,8 +10534,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10534
10534
  const m = g.size(), v = new Er(u, p), _ = new Er(new Uint8Array(Math.ceil(m / 8)), m);
10535
10535
  let T = 0;
10536
10536
  for (let b = 0; b < m; b++) {
10537
- const M = !!g.get(b) && v.get(T++);
10538
- _.set(b, M);
10537
+ const I = !!g.get(b) && v.get(T++);
10538
+ _.set(b, I);
10539
10539
  }
10540
10540
  return _.getBuffer();
10541
10541
  })(l, e, o) : l;
@@ -10608,21 +10608,21 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10608
10608
  let T = null;
10609
10609
  if (u === 0) return null;
10610
10610
  if (_.nullable) {
10611
- const M = zi(p, g), I = M.numValues, A = g.get(), D = ic(p, I, M.byteLength, g);
10612
- g.set(A + M.byteLength), T = new Er(D, M.numValues);
10611
+ const I = zi(p, g), M = I.numValues, A = g.get(), D = ic(p, M, I.byteLength, g);
10612
+ g.set(A + I.byteLength), T = new Er(D, I.numValues);
10613
10613
  }
10614
10614
  const b = T ?? m;
10615
10615
  switch (v.physicalType) {
10616
10616
  case 4:
10617
10617
  case 3:
10618
- return (function(M, I, A, D, L) {
10619
- const k = zi(M, I), F = ku(k, L, M, I), O = D.physicalType === 3;
10618
+ return (function(I, M, A, D, L) {
10619
+ const k = zi(I, M), F = ku(k, L, I, M), O = D.physicalType === 3;
10620
10620
  if (F === _t.FLAT) {
10621
- const Y = rc(L) ? L : void 0, J = O ? dd(M, I, k, 0, Y) : Ji(M, I, k, 0, Y);
10621
+ const Y = rc(L) ? L : void 0, J = O ? dd(I, M, k, 0, Y) : Ji(I, M, k, 0, Y);
10622
10622
  return new td(A.name, J, L);
10623
10623
  }
10624
10624
  if (F === _t.SEQUENCE) {
10625
- const Y = af(M, I, k);
10625
+ const Y = af(I, M, k);
10626
10626
  return new rd(A.name, Y[0], Y[1], k.numRleValues);
10627
10627
  }
10628
10628
  const j = O ? (function(Y, J, ne) {
@@ -10630,42 +10630,42 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10630
10630
  return ie.length === 1 ? ht(ie[0]) : (function(le) {
10631
10631
  return ht(le[1]);
10632
10632
  })(ie);
10633
- })(M, I, k) : pd(M, I, k);
10633
+ })(I, M, k) : pd(I, M, k);
10634
10634
  return new nd(A.name, j, L, O);
10635
10635
  })(p, g, _, v, b);
10636
10636
  case 9:
10637
- return (function(M, I, A, D, L) {
10637
+ return (function(I, M, A, D, L) {
10638
10638
  let k = null, F = null, O = null, j = null, Y = null, J = L ?? null, ne = null, ie = null;
10639
10639
  for (let le = 0; le < D; le++) {
10640
- const ce = zi(I, A);
10640
+ const ce = zi(M, A);
10641
10641
  switch (ce.physicalStreamType) {
10642
10642
  case ui.PRESENT: {
10643
- const se = ic(I, ce.numValues, ce.byteLength, A), re = new Er(se, ce.numValues);
10643
+ const se = ic(M, ce.numValues, ce.byteLength, A), re = new Er(se, ce.numValues);
10644
10644
  J = L ?? re;
10645
10645
  break;
10646
10646
  }
10647
10647
  case ui.OFFSET:
10648
- F = Ji(I, A, ce, 0, J);
10648
+ F = Ji(M, A, ce, 0, J);
10649
10649
  break;
10650
10650
  case ui.LENGTH: {
10651
- const se = fs(I, A, ce);
10651
+ const se = fs(M, A, ce);
10652
10652
  Ki.DICTIONARY === ce.logicalStreamType.lengthType ? k = se : Ki.SYMBOL === ce.logicalStreamType.lengthType ? j = se : ne = se;
10653
10653
  break;
10654
10654
  }
10655
10655
  case ui.DATA: {
10656
- const se = I.subarray(A.get(), A.get() + ce.byteLength);
10656
+ const se = M.subarray(A.get(), A.get() + ce.byteLength);
10657
10657
  A.add(ce.byteLength);
10658
10658
  const re = ce.logicalStreamType.dictionaryType;
10659
- Ir.FSST === re ? Y = se : Ir.SINGLE === re || Ir.SHARED === re ? O = se : Ir.NONE === re && (ie = se);
10659
+ Mr.FSST === re ? Y = se : Mr.SINGLE === re || Mr.SHARED === re ? O = se : Mr.NONE === re && (ie = se);
10660
10660
  break;
10661
10661
  }
10662
10662
  }
10663
10663
  }
10664
10664
  return (function(le, ce, se, re, _e, Se, be) {
10665
10665
  return ce ? new Tf(le, se, re, _e, Se, ce, be) : null;
10666
- })(M, Y, F, k, O, j, J) ?? (function(le, ce, se, re, _e) {
10666
+ })(I, Y, F, k, O, j, J) ?? (function(le, ce, se, re, _e) {
10667
10667
  return ce ? _e ? new Ea(le, se, re, ce, _e) : new Ea(le, se, re, ce) : null;
10668
- })(M, O, F, k, J) ?? (function(le, ce, se, re, _e) {
10668
+ })(I, O, F, k, J) ?? (function(le, ce, se, re, _e) {
10669
10669
  if (!ce || !se) return null;
10670
10670
  if (re) return _e ? new Ea(le, re, ce, se, _e) : new Ea(le, re, ce, se);
10671
10671
  if (_e && _e.size() !== ce.length - 1) {
@@ -10675,19 +10675,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10675
10675
  return new Ea(le, Se, ce, se, _e);
10676
10676
  }
10677
10677
  return _e ? new wf(le, ce, se, _e) : new wf(le, ce, se);
10678
- })(M, ne, ie, F, J);
10678
+ })(I, ne, ie, F, J);
10679
10679
  })(_.name, p, g, _.nullable ? u - 1 : u, T);
10680
10680
  case 0:
10681
- return (function(M, I, A, D, L) {
10682
- const k = zi(M, I), F = k.numValues, O = I.get(), j = rc(L) ? L : void 0, Y = ic(M, F, k.byteLength, I, j);
10683
- I.set(O + k.byteLength);
10681
+ return (function(I, M, A, D, L) {
10682
+ const k = zi(I, M), F = k.numValues, O = M.get(), j = rc(L) ? L : void 0, Y = ic(I, F, k.byteLength, M, j);
10683
+ M.set(O + k.byteLength);
10684
10684
  const J = new Er(Y, F);
10685
10685
  return new y_(A.name, J, L);
10686
10686
  })(p, g, _, 0, b);
10687
10687
  case 6:
10688
10688
  case 5:
10689
- return (function(M, I, A, D, L) {
10690
- const k = zi(M, I), F = ku(k, D, M, I, "int64"), O = L.physicalType === 5;
10689
+ return (function(I, M, A, D, L) {
10690
+ const k = zi(I, M), F = ku(k, D, I, M, "int64"), O = L.physicalType === 5;
10691
10691
  if (F === _t.FLAT) {
10692
10692
  const Y = rc(D) ? D : void 0, J = O ? (function(ne, ie, le, ce) {
10693
10693
  return (function(se, re, _e) {
@@ -10736,11 +10736,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10736
10736
  }
10737
10737
  return _e ? Sa(Se, _e, 0n) : Se;
10738
10738
  })(wa(ne, ie, le.numValues), le, ce);
10739
- })(M, I, k, Y) : cf(M, I, k, Y);
10739
+ })(I, M, k, Y) : cf(I, M, k, Y);
10740
10740
  return new hf(A.name, J, D);
10741
10741
  }
10742
10742
  if (F === _t.SEQUENCE) {
10743
- const Y = lf(M, I, k);
10743
+ const Y = lf(I, M, k);
10744
10744
  return new df(A.name, Y[0], Y[1], k.numRleValues);
10745
10745
  }
10746
10746
  const j = O ? (function(Y, J, ne) {
@@ -10748,43 +10748,43 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10748
10748
  return ie.length === 1 ? Di(ie[0]) : (function(le) {
10749
10749
  return Di(le[1]);
10750
10750
  })(ie);
10751
- })(M, I, k) : uf(M, I, k);
10751
+ })(I, M, k) : uf(I, M, k);
10752
10752
  return new bf(A.name, j, D, O);
10753
10753
  })(p, g, _, b, v);
10754
10754
  case 7:
10755
- return (function(M, I, A, D) {
10756
- const L = zi(M, I), k = rc(D) ? D : void 0, F = (function(O, j, Y, J) {
10755
+ return (function(I, M, A, D) {
10756
+ const L = zi(I, M), k = rc(D) ? D : void 0, F = (function(O, j, Y, J) {
10757
10757
  const ne = j.get(), ie = ne + Y * Float32Array.BYTES_PER_ELEMENT, le = new Uint8Array(O.subarray(ne, ie)).buffer, ce = new Float32Array(le);
10758
10758
  return j.set(ie), J ? Sa(ce, J, 0) : ce;
10759
- })(M, I, L.numValues, k);
10759
+ })(I, M, L.numValues, k);
10760
10760
  return new v_(A.name, F, D);
10761
10761
  })(p, g, _, b);
10762
10762
  case 8:
10763
- return (function(M, I, A, D) {
10764
- const L = zi(M, I), k = rc(D) ? D : void 0, F = (function(O, j, Y, J) {
10763
+ return (function(I, M, A, D) {
10764
+ const L = zi(I, M), k = rc(D) ? D : void 0, F = (function(O, j, Y, J) {
10765
10765
  const ne = j.get(), ie = ne + Y * Float64Array.BYTES_PER_ELEMENT, le = new Uint8Array(O.subarray(ne, ie)).buffer, ce = new Float64Array(le);
10766
10766
  return j.set(ie), J ? Sa(ce, J, 0) : ce;
10767
- })(M, I, L.numValues, k);
10767
+ })(I, M, L.numValues, k);
10768
10768
  return new id(A.name, F, D);
10769
10769
  })(p, g, _, b);
10770
10770
  default:
10771
10771
  throw new Error(`The specified data type for the field is currently not supported: ${v}`);
10772
10772
  }
10773
10773
  })(s, r, e, o, i.scalarType, i) : s === 0 ? null : (function(u, p, g, m) {
10774
- let v = null, _ = null, T = null, b = null, M = !1;
10775
- for (; !M; ) {
10774
+ let v = null, _ = null, T = null, b = null, I = !1;
10775
+ for (; !I; ) {
10776
10776
  const L = zi(u, p);
10777
10777
  switch (L.physicalStreamType) {
10778
10778
  case ui.LENGTH:
10779
10779
  Ki.DICTIONARY === L.logicalStreamType.lengthType ? v = fs(u, p, L) : T = fs(u, p, L);
10780
10780
  break;
10781
10781
  case ui.DATA:
10782
- Ir.SINGLE === L.logicalStreamType.dictionaryType || Ir.SHARED === L.logicalStreamType.dictionaryType ? (_ = u.subarray(p.get(), p.get() + L.byteLength), M = !0) : b = u.subarray(p.get(), p.get() + L.byteLength), p.add(L.byteLength);
10782
+ Mr.SINGLE === L.logicalStreamType.dictionaryType || Mr.SHARED === L.logicalStreamType.dictionaryType ? (_ = u.subarray(p.get(), p.get() + L.byteLength), I = !0) : b = u.subarray(p.get(), p.get() + L.byteLength), p.add(L.byteLength);
10783
10783
  }
10784
10784
  }
10785
- const I = g.complexType.children, A = [];
10785
+ const M = g.complexType.children, A = [];
10786
10786
  let D = 0;
10787
- for (const L of I) {
10787
+ for (const L of M) {
10788
10788
  const k = wi(u, p, 1)[0];
10789
10789
  if (k === 0) continue;
10790
10790
  const F = L.name ? `${g.name}${L.name}` : g.name;
@@ -10874,7 +10874,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10874
10874
  function Pf(r) {
10875
10875
  return r >= 10;
10876
10876
  }
10877
- function Mf(r) {
10877
+ function If(r) {
10878
10878
  return r === 30;
10879
10879
  }
10880
10880
  function w_(r) {
@@ -10918,14 +10918,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10918
10918
  const s = e.get(), o = r.subarray(s, s + i);
10919
10919
  return e.add(i), S_.decode(o);
10920
10920
  }
10921
- function If(r, e) {
10921
+ function Mf(r, e) {
10922
10922
  const i = wi(r, e, 1)[0] >>> 0;
10923
10923
  if (i < 10 || i > 30) throw new Error(`Unsupported field type code ${i}. Supported: 10-29(scalars), 30(STRUCT)`);
10924
10924
  const s = Sf(i);
10925
- if (Pf(i) && (s.name = yd(r, e)), Mf(i)) {
10925
+ if (Pf(i) && (s.name = yd(r, e)), If(i)) {
10926
10926
  const o = wi(r, e, 1)[0] >>> 0;
10927
10927
  s.complexType.children = new Array(o);
10928
- for (let l = 0; l < o; l++) s.complexType.children[l] = If(r, e);
10928
+ for (let l = 0; l < o; l++) s.complexType.children[l] = Mf(r, e);
10929
10929
  }
10930
10930
  return (function(o) {
10931
10931
  return { name: o.name, nullable: o.nullable, scalarField: o.scalarType, complexField: o.complexType, type: o.type === "scalarType" ? "scalarField" : "complexField" };
@@ -10934,14 +10934,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10934
10934
  function P_(r, e) {
10935
10935
  const i = wi(r, e, 1)[0] >>> 0, s = Sf(i);
10936
10936
  if (!s) throw new Error(`Unsupported column type code ${i}. Supported: 0-3(ID), 4(GEOMETRY), 10-29(scalars), 30(STRUCT)`);
10937
- if (Pf(i) ? s.name = yd(r, e) : i >= 0 && i <= 3 ? s.name = "id" : i === 4 && (s.name = "geometry"), Mf(i)) {
10937
+ if (Pf(i) ? s.name = yd(r, e) : i >= 0 && i <= 3 ? s.name = "id" : i === 4 && (s.name = "geometry"), If(i)) {
10938
10938
  const o = wi(r, e, 1)[0] >>> 0, l = s.complexType;
10939
10939
  l.children = new Array(o);
10940
- for (let u = 0; u < o; u++) l.children[u] = If(r, e);
10940
+ for (let u = 0; u < o; u++) l.children[u] = Mf(r, e);
10941
10941
  }
10942
10942
  return s;
10943
10943
  }
10944
- function M_(r, e) {
10944
+ function I_(r, e) {
10945
10945
  const i = { featureTables: [] }, s = {};
10946
10946
  s.name = yd(r, e);
10947
10947
  const o = wi(r, e, 1)[0] >>> 0, l = wi(r, e, 1)[0] >>> 0;
@@ -10949,7 +10949,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10949
10949
  for (let u = 0; u < l; u++) s.columns[u] = P_(r, e);
10950
10950
  return i.featureTables.push(s), [i, o];
10951
10951
  }
10952
- function I_(r, e, i, s, o, l, u = !1) {
10952
+ function M_(r, e, i, s, o, l, u = !1) {
10953
10953
  const p = e.scalarType;
10954
10954
  if (!p || p.type !== "logicalType" || p.logicalType !== 0) throw new Error(`ID column must be a logical ID scalar type: ${s}`);
10955
10955
  const g = p.longID ? 6 : 4, m = typeof l == "number" ? void 0 : l, v = ku(o, l, r, i, g === 6 ? "int64" : "int32");
@@ -10970,12 +10970,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10970
10970
  switch (v) {
10971
10971
  case _t.FLAT: {
10972
10972
  if (u) {
10973
- const T = (function(b, M, I) {
10973
+ const T = (function(b, I, M) {
10974
10974
  const A = (function(D, L, k) {
10975
10975
  const F = new Float64Array(k);
10976
10976
  for (let O = 0; O < k; O++) F[O] = f_(D, L);
10977
10977
  return F;
10978
- })(b, M, I.numValues);
10978
+ })(b, I, M.numValues);
10979
10979
  return (function(D, L) {
10980
10980
  switch (L.logicalLevelTechnique1) {
10981
10981
  case He.DELTA:
@@ -10998,7 +10998,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10998
10998
  default:
10999
10999
  throw new Error(`The specified Logical level technique is not supported: ${L.logicalLevelTechnique1}`);
11000
11000
  }
11001
- })(A, I);
11001
+ })(A, M);
11002
11002
  })(r, i, o);
11003
11003
  return new id(s, T, l);
11004
11004
  }
@@ -11067,8 +11067,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11067
11067
  u.set(v);
11068
11068
  continue;
11069
11069
  }
11070
- const [_, T] = M_(s, u), b = _.featureTables[0];
11071
- let M = null, I = null;
11070
+ const [_, T] = I_(s, u), b = _.featureTables[0];
11071
+ let I = null, M = null;
11072
11072
  const A = [];
11073
11073
  let D = 0;
11074
11074
  for (const k of b.columns) {
@@ -11080,14 +11080,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11080
11080
  u.set(J + Y.byteLength), O = new Er(ne, Y.numValues);
11081
11081
  }
11082
11082
  const j = zi(s, u);
11083
- D = O ? O.size() : j.decompressedCount, M = I_(s, k, u, F, j, O ?? D, l);
11083
+ D = O ? O.size() : j.decompressedCount, I = M_(s, k, u, F, j, O ?? D, l);
11084
11084
  } else if (T_(k)) {
11085
11085
  const O = wi(s, u, 1)[0];
11086
11086
  if (D === 0) {
11087
11087
  const j = u.get();
11088
11088
  D = zi(s, u).decompressedCount, u.set(j);
11089
11089
  }
11090
- I = __(s, O, u, D);
11090
+ M = __(s, O, u, D);
11091
11091
  } else {
11092
11092
  const O = w_(k) ? wi(s, u, 1)[0] : 1;
11093
11093
  if (O === 0) continue;
@@ -11096,7 +11096,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11096
11096
  else A.push(j);
11097
11097
  }
11098
11098
  }
11099
- const L = new s_(b.name, I, M, A, T);
11099
+ const L = new s_(b.name, M, I, A, T);
11100
11100
  p.push(L), u.set(v);
11101
11101
  }
11102
11102
  var g;
@@ -11184,7 +11184,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11184
11184
  }
11185
11185
  }
11186
11186
  loadVTLayers() {
11187
- return this.vtLayers || (this.vtLayers = this.encoding !== "mlt" ? new ip(new Iu(this.rawTileData)).layers : new Ef(this.rawTileData).layers, this.sourceLayerCoder = new Kp(this.vtLayers ? Object.keys(this.vtLayers).sort() : [nc])), this.vtLayers;
11187
+ return this.vtLayers || (this.vtLayers = this.encoding !== "mlt" ? new ip(new Mu(this.rawTileData)).layers : new Ef(this.rawTileData).layers, this.sourceLayerCoder = new Kp(this.vtLayers ? Object.keys(this.vtLayers).sort() : [nc])), this.vtLayers;
11188
11188
  }
11189
11189
  query(e, i, s, o) {
11190
11190
  this.loadVTLayers();
@@ -11199,37 +11199,37 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11199
11199
  })(e.cameraQueryGeometry, A - m, D - m, L + m, k + m)));
11200
11200
  for (const A of b) _.push(A);
11201
11201
  _.sort(F_);
11202
- const M = {};
11203
- let I;
11202
+ const I = {};
11203
+ let M;
11204
11204
  for (const A of _) {
11205
- if (A === I) continue;
11206
- I = A;
11205
+ if (A === M) continue;
11206
+ M = A;
11207
11207
  const D = this.featureIndexArray.get(A);
11208
11208
  let L = null;
11209
- this.loadMatchingFeature(M, D.bucketIndex, D.sourceLayerIndex, D.featureIndex, p, l.layers, l.availableImages, i, s, o, ((k, F, O) => (L || (L = Xr(k)), F.queryIntersectsFeature({ queryGeometry: g, feature: k, featureState: O, geometry: L, zoom: this.z, transform: e.transform, pixelsToTileUnits: u, pixelPosMatrix: e.pixelPosMatrix, unwrappedTileID: this.tileID.toUnwrapped(), getElevation: e.getElevation }))));
11209
+ this.loadMatchingFeature(I, D.bucketIndex, D.sourceLayerIndex, D.featureIndex, p, l.layers, l.availableImages, i, s, o, ((k, F, O) => (L || (L = Xr(k)), F.queryIntersectsFeature({ queryGeometry: g, feature: k, featureState: O, geometry: L, zoom: this.z, transform: e.transform, pixelsToTileUnits: u, pixelPosMatrix: e.pixelPosMatrix, unwrappedTileID: this.tileID.toUnwrapped(), getElevation: e.getElevation }))));
11210
11210
  }
11211
- return M;
11211
+ return I;
11212
11212
  }
11213
11213
  loadMatchingFeature(e, i, s, o, l, u, p, g, m, v, _) {
11214
11214
  const T = this.bucketLayerIDs[i];
11215
11215
  if (u && !T.some(((A) => u.has(A)))) return;
11216
- const b = this.sourceLayerCoder.decode(s), M = this.vtLayers[b].feature(o);
11216
+ const b = this.sourceLayerCoder.decode(s), I = this.vtLayers[b].feature(o);
11217
11217
  if (l.needGeometry) {
11218
- const A = Yr(M, !0);
11218
+ const A = Yr(I, !0);
11219
11219
  if (!l.filter(new ft(this.tileID.overscaledZ), A, this.tileID.canonical)) return;
11220
- } else if (!l.filter(new ft(this.tileID.overscaledZ), M)) return;
11221
- const I = this.getId(M, b);
11220
+ } else if (!l.filter(new ft(this.tileID.overscaledZ), I)) return;
11221
+ const M = this.getId(I, b);
11222
11222
  for (const A of T) {
11223
11223
  if (u && !u.has(A)) continue;
11224
11224
  const D = g[A];
11225
11225
  if (!D) continue;
11226
11226
  let L = {};
11227
- I && v && (L = v.getState(D.sourceLayer || nc, I));
11227
+ M && v && (L = v.getState(D.sourceLayer || nc, M));
11228
11228
  const k = Zi({}, m[A]);
11229
- k.paint = Df(k.paint, D.paint, M, L, p), k.layout = Df(k.layout, D.layout, M, L, p);
11230
- const F = !_ || _(M, D, L);
11229
+ k.paint = Df(k.paint, D.paint, I, L, p), k.layout = Df(k.layout, D.layout, I, L, p);
11230
+ const F = !_ || _(I, D, L);
11231
11231
  if (!F) continue;
11232
- const O = new Jp(M, this.z, this.x, this.y, I);
11232
+ const O = new Jp(I, this.z, this.x, this.y, M);
11233
11233
  O.layer = k;
11234
11234
  let j = e[A];
11235
11235
  j === void 0 && (j = e[A] = []), j.push({ featureIndex: o, feature: O, intersectionZ: F });
@@ -11295,9 +11295,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11295
11295
  let u = [];
11296
11296
  const p = [];
11297
11297
  for (let v = 0; v < r.length - 1; v++) {
11298
- const _ = r[v], T = r[v + 1], b = s === 0 ? _.x : _.y, M = s === 0 ? T.x : T.y;
11299
- let I = !1;
11300
- b < e ? M > e && u.push(l(_, T, e)) : b > i ? M < i && u.push(l(_, T, i)) : u.push(_), M < e && b >= e && (u.push(l(_, T, e)), I = !0), M > i && b <= i && (u.push(l(_, T, i)), I = !0), !o && I && (p.push(u), u = []);
11298
+ const _ = r[v], T = r[v + 1], b = s === 0 ? _.x : _.y, I = s === 0 ? T.x : T.y;
11299
+ let M = !1;
11300
+ b < e ? I > e && u.push(l(_, T, e)) : b > i ? I < i && u.push(l(_, T, i)) : u.push(_), I < e && b >= e && (u.push(l(_, T, e)), M = !0), I > i && b <= i && (u.push(l(_, T, i)), M = !0), !o && M && (p.push(u), u = []);
11301
11301
  }
11302
11302
  const g = r.length - 1, m = s === 0 ? r[g].x : r[g].y;
11303
11303
  return m >= e && m <= i && u.push(r[g]), o && u.length > 0 && !u[0].equals(u[u.length - 1]) && u.push(new de(u[0].x, u[0].y)), u.length > 0 && p.push(u), p;
@@ -11363,7 +11363,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11363
11363
  for (let v = 0; v < r.length - 1; v++) {
11364
11364
  const _ = r[v], T = r[v + 1], b = _.dist(T);
11365
11365
  if (g + b > m) {
11366
- const M = (m - g) / b, I = Fi.number(_.x, T.x, M), A = Fi.number(_.y, T.y, M), D = new ms(I, A, T.angleTo(_), v);
11366
+ const I = (m - g) / b, M = Fi.number(_.x, T.x, I), A = Fi.number(_.y, T.y, I), D = new ms(M, A, T.angleTo(_), v);
11367
11367
  return D._round(), !u || Lf(r, D, p, u, e) ? D : void 0;
11368
11368
  }
11369
11369
  g += b;
@@ -11376,13 +11376,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11376
11376
  function Vf(r, e, i, s, o, l, u, p, g) {
11377
11377
  const m = l / 2, v = Ff(r);
11378
11378
  let _ = 0, T = e - i, b = [];
11379
- for (let M = 0; M < r.length - 1; M++) {
11380
- const I = r[M], A = r[M + 1], D = I.dist(A), L = A.angleTo(I);
11379
+ for (let I = 0; I < r.length - 1; I++) {
11380
+ const M = r[I], A = r[I + 1], D = M.dist(A), L = A.angleTo(M);
11381
11381
  for (; T + i < _ + D; ) {
11382
11382
  T += i;
11383
- const k = (T - _) / D, F = Fi.number(I.x, A.x, k), O = Fi.number(I.y, A.y, k);
11383
+ const k = (T - _) / D, F = Fi.number(M.x, A.x, k), O = Fi.number(M.y, A.y, k);
11384
11384
  if (F >= 0 && F < g && O >= 0 && O < g && T - m >= 0 && T + m <= v) {
11385
- const j = new ms(F, O, L, M);
11385
+ const j = new ms(F, O, L, I);
11386
11386
  j._round(), s && !Lf(r, j, l, s, o) || b.push(j);
11387
11387
  }
11388
11388
  }
@@ -11393,14 +11393,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11393
11393
  function jf(r, e, i, s) {
11394
11394
  const o = [], l = r.image, u = l.pixelRatio, p = l.paddedRect.w - 2, g = l.paddedRect.h - 2;
11395
11395
  let m = { x1: r.left, y1: r.top, x2: r.right, y2: r.bottom };
11396
- const v = l.stretchX || [[0, p]], _ = l.stretchY || [[0, g]], T = (re, _e) => re + _e[1] - _e[0], b = v.reduce(T, 0), M = _.reduce(T, 0), I = p - b, A = g - M;
11397
- let D = 0, L = b, k = 0, F = M, O = 0, j = I, Y = 0, J = A;
11396
+ const v = l.stretchX || [[0, p]], _ = l.stretchY || [[0, g]], T = (re, _e) => re + _e[1] - _e[0], b = v.reduce(T, 0), I = _.reduce(T, 0), M = p - b, A = g - I;
11397
+ let D = 0, L = b, k = 0, F = I, O = 0, j = M, Y = 0, J = A;
11398
11398
  if (l.content && s) {
11399
11399
  const re = l.content, _e = re[2] - re[0], Se = re[3] - re[1];
11400
11400
  (l.textFitWidth || l.textFitHeight) && (m = Lp(r)), D = Ru(v, 0, re[0]), k = Ru(_, 0, re[1]), L = Ru(v, re[0], re[2]), F = Ru(_, re[1], re[3]), O = re[0] - D, Y = re[1] - k, j = _e - L, J = Se - F;
11401
11401
  }
11402
11402
  const ne = m.x1, ie = m.y1, le = m.x2 - ne, ce = m.y2 - ie, se = (re, _e, Se, be) => {
11403
- const ye = Lu(re.stretch - D, L, le, ne), Fe = Fu(re.fixed - O, j, re.stretch, b), tt = Lu(_e.stretch - k, F, ce, ie), rt = Fu(_e.fixed - Y, J, _e.stretch, M), lt = Lu(Se.stretch - D, L, le, ne), di = Fu(Se.fixed - O, j, Se.stretch, b), Et = Lu(be.stretch - k, F, ce, ie), Gt = Fu(be.fixed - Y, J, be.stretch, M), Xt = new de(ye, tt), yt = new de(lt, tt), ni = new de(lt, Et), Ti = new de(ye, Et), Si = new de(Fe / u, rt / u), Ni = new de(di / u, Gt / u), pi = e * Math.PI / 180;
11403
+ const ye = Lu(re.stretch - D, L, le, ne), Fe = Fu(re.fixed - O, j, re.stretch, b), tt = Lu(_e.stretch - k, F, ce, ie), rt = Fu(_e.fixed - Y, J, _e.stretch, I), lt = Lu(Se.stretch - D, L, le, ne), di = Fu(Se.fixed - O, j, Se.stretch, b), Et = Lu(be.stretch - k, F, ce, ie), Gt = Fu(be.fixed - Y, J, be.stretch, I), Xt = new de(ye, tt), yt = new de(lt, tt), ni = new de(lt, Et), Ti = new de(ye, Et), Si = new de(Fe / u, rt / u), Ni = new de(di / u, Gt / u), pi = e * Math.PI / 180;
11404
11404
  if (pi) {
11405
11405
  const Yt = Math.sin(pi), Tt = Math.cos(pi), jt = [Tt, -Yt, Yt, Tt];
11406
11406
  Xt._matMult(jt), yt._matMult(jt), Ti._matMult(jt), ni._matMult(jt);
@@ -11409,7 +11409,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11409
11409
  return { tl: Xt, tr: yt, bl: Ti, br: ni, tex: { x: l.paddedRect.x + 1 + Ui, y: l.paddedRect.y + 1 + gr, w: Se.stretch + Se.fixed - Ui, h: be.stretch + be.fixed - gr }, writingMode: void 0, glyphOffset: [0, 0], sectionIndex: 0, pixelOffsetTL: Si, pixelOffsetBR: Ni, minFontScaleX: j / u / le, minFontScaleY: J / u / ce, isSDF: i };
11410
11410
  };
11411
11411
  if (s && (l.stretchX || l.stretchY)) {
11412
- const re = Nf(v, I, b), _e = Nf(_, A, M);
11412
+ const re = Nf(v, M, b), _e = Nf(_, A, I);
11413
11413
  for (let Se = 0; Se < re.length - 1; Se++) {
11414
11414
  const be = re[Se], ye = re[Se + 1];
11415
11415
  for (let Fe = 0; Fe < _e.length - 1; Fe++) o.push(se(be, _e[Fe], ye, _e[Fe + 1]));
@@ -11442,17 +11442,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11442
11442
  var _;
11443
11443
  if (this.boxStartIndex = e.length, m) {
11444
11444
  let T = u.top, b = u.bottom;
11445
- const M = u.collisionPadding;
11446
- M && (T -= M[1], b += M[3]);
11447
- let I = b - T;
11448
- I > 0 && (I = Math.max(10, I), this.circleDiameter = I);
11445
+ const I = u.collisionPadding;
11446
+ I && (T -= I[1], b += I[3]);
11447
+ let M = b - T;
11448
+ M > 0 && (M = Math.max(10, M), this.circleDiameter = M);
11449
11449
  } else {
11450
11450
  const T = !((_ = u.image) === null || _ === void 0) && _.content && (u.image.textFitWidth || u.image.textFitHeight) ? Lp(u) : { x1: u.left, y1: u.top, x2: u.right, y2: u.bottom };
11451
11451
  T.y1 = T.y1 * p - g[0], T.y2 = T.y2 * p + g[2], T.x1 = T.x1 * p - g[3], T.x2 = T.x2 * p + g[1];
11452
11452
  const b = u.collisionPadding;
11453
11453
  if (b && (T.x1 -= b[0] * p, T.y1 -= b[1] * p, T.x2 += b[2] * p, T.y2 += b[3] * p), v) {
11454
- const M = new de(T.x1, T.y1), I = new de(T.x2, T.y1), A = new de(T.x1, T.y2), D = new de(T.x2, T.y2), L = v * Math.PI / 180;
11455
- M._rotate(L), I._rotate(L), A._rotate(L), D._rotate(L), T.x1 = Math.min(M.x, I.x, A.x, D.x), T.x2 = Math.max(M.x, I.x, A.x, D.x), T.y1 = Math.min(M.y, I.y, A.y, D.y), T.y2 = Math.max(M.y, I.y, A.y, D.y);
11454
+ const I = new de(T.x1, T.y1), M = new de(T.x2, T.y1), A = new de(T.x1, T.y2), D = new de(T.x2, T.y2), L = v * Math.PI / 180;
11455
+ I._rotate(L), M._rotate(L), A._rotate(L), D._rotate(L), T.x1 = Math.min(I.x, M.x, A.x, D.x), T.x2 = Math.max(I.x, M.x, A.x, D.x), T.y1 = Math.min(I.y, M.y, A.y, D.y), T.y2 = Math.max(I.y, M.y, A.y, D.y);
11456
11456
  }
11457
11457
  e.emplaceBack(i.x, i.y, T.x1, T.y1, T.x2, T.y2, s, o, l);
11458
11458
  }
@@ -11501,13 +11501,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11501
11501
  if (s === 0) return new de(u, p);
11502
11502
  for (let T = u; T < g; T += s) for (let b = p; b < m; b += s) l.push(new Ca(T + o, b + o, o, r));
11503
11503
  const v = (function(T) {
11504
- let b = 0, M = 0, I = 0;
11504
+ let b = 0, I = 0, M = 0;
11505
11505
  const A = T[0];
11506
11506
  for (let D = 0, L = A.length, k = L - 1; D < L; k = D++) {
11507
11507
  const F = A[D], O = A[k], j = F.x * O.y - O.x * F.y;
11508
- M += (F.x + O.x) * j, I += (F.y + O.y) * j, b += 3 * j;
11508
+ I += (F.x + O.x) * j, M += (F.y + O.y) * j, b += 3 * j;
11509
11509
  }
11510
- return new Ca(M / b, I / b, 0, T);
11510
+ return new Ca(I / b, M / b, 0, T);
11511
11511
  })(r);
11512
11512
  let _ = v;
11513
11513
  for (; l.length; ) {
@@ -11524,8 +11524,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11524
11524
  this.p = new de(e, i), this.h = s, this.d = (function(l, u) {
11525
11525
  let p = !1, g = 1 / 0;
11526
11526
  for (const m of u) for (let v = 0, _ = m.length, T = _ - 1; v < _; T = v++) {
11527
- const b = m[v], M = m[T];
11528
- b.y > l.y != M.y > l.y && l.x < (M.x - b.x) * (l.y - b.y) / (M.y - b.y) + b.x && (p = !p), g = Math.min(g, Dd(l, b, M));
11527
+ const b = m[v], I = m[T];
11528
+ b.y > l.y != I.y > l.y && l.x < (I.x - b.x) * (l.y - b.y) / (I.y - b.y) + b.x && (p = !p), g = Math.min(g, Dd(l, b, I));
11529
11529
  }
11530
11530
  return (p ? 1 : -1) * Math.sqrt(g);
11531
11531
  })(this.p, o), this.max = this.d + this.h * Math.SQRT2;
@@ -11634,12 +11634,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11634
11634
  function $_(r, e, i, s, o, l, u, p, g, m, v, _) {
11635
11635
  let T = l.textMaxSize.evaluate(e, {});
11636
11636
  T === void 0 && (T = u);
11637
- const b = r.layers[0].layout, M = b.get("icon-offset").evaluate(e, {}, v), I = $f(i.horizontal), A = u / 24, D = r.tilePixelRatio * A, L = r.tilePixelRatio * T / 24, k = r.tilePixelRatio * p, F = r.tilePixelRatio * b.get("symbol-spacing"), O = b.get("text-padding") * r.tilePixelRatio, j = (function(Se, be, ye, Fe = 1) {
11637
+ const b = r.layers[0].layout, I = b.get("icon-offset").evaluate(e, {}, v), M = $f(i.horizontal), A = u / 24, D = r.tilePixelRatio * A, L = r.tilePixelRatio * T / 24, k = r.tilePixelRatio * p, F = r.tilePixelRatio * b.get("symbol-spacing"), O = b.get("text-padding") * r.tilePixelRatio, j = (function(Se, be, ye, Fe = 1) {
11638
11638
  const tt = Se.get("icon-padding").evaluate(be, {}, ye), rt = tt?.values;
11639
11639
  return [rt[0] * Fe, rt[1] * Fe, rt[2] * Fe, rt[3] * Fe];
11640
11640
  })(b, e, v, r.tilePixelRatio), Y = b.get("text-max-angle") / 180 * Math.PI, J = b.get("text-rotation-alignment") !== "viewport" && b.get("symbol-placement") !== "point", ne = b.get("icon-rotation-alignment") === "map" && b.get("symbol-placement") !== "point", ie = b.get("symbol-placement"), le = F / 2, ce = b.get("icon-text-fit");
11641
11641
  let se;
11642
- s && ce !== "none" && (r.allowVerticalPlacement && i.vertical && (se = Fp(s, i.vertical, ce, b.get("icon-text-fit-padding"), M, A)), I && (s = Fp(s, I, ce, b.get("icon-text-fit-padding"), M, A)));
11642
+ s && ce !== "none" && (r.allowVerticalPlacement && i.vertical && (se = Fp(s, i.vertical, ce, b.get("icon-text-fit-padding"), I, A)), M && (s = Fp(s, M, ce, b.get("icon-text-fit-padding"), I, A)));
11643
11643
  const re = v ? _.line.getGranularityForZoomLevel(v.z) : 1, _e = (Se, be) => {
11644
11644
  be.x < 0 || be.x >= Be || be.y < 0 || be.y >= Be || (function(ye, Fe, tt, rt, lt, di, Et, Gt, Xt, yt, ni, Ti, Si, Ni, pi, Ui, gr, Yt, Tt, jt, Ct, Kt, Dn, Cr, sc) {
11645
11645
  const gs = ye.addToLineVertexArray(Fe, tt);
@@ -11684,15 +11684,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11684
11684
  return [uo, Pi.length];
11685
11685
  })(ye.textAnchorOffsets, ty);
11686
11686
  ye.symbolInstances.emplaceBack(Fe.x, Fe.y, zn.right >= 0 ? zn.right : -1, zn.center >= 0 ? zn.center : -1, zn.left >= 0 ? zn.left : -1, zn.vertical || -1, wd, Td, Yf, W_, H_, X_, Y_, K_, J_, Q_, ey, yt, Hf, Xf, qf, Wf, Jf, 0, Si, Ar, iy, ry);
11687
- })(r, be, Se, i, s, o, se, r.layers[0], r.collisionBoxArray, e.index, e.sourceLayerIndex, r.index, D, [O, O, O, O], J, g, k, j, ne, M, e, l, m, v, u);
11687
+ })(r, be, Se, i, s, o, se, r.layers[0], r.collisionBoxArray, e.index, e.sourceLayerIndex, r.index, D, [O, O, O, O], J, g, k, j, ne, I, e, l, m, v, u);
11688
11688
  };
11689
11689
  if (ie === "line") for (const Se of zf(e.geometry, 0, 0, Be, Be)) {
11690
- const be = oo(Se, re), ye = N_(be, F, Y, i.vertical || I, s, 24, L, r.overscaling, Be);
11691
- for (const Fe of ye) I && q_(r, I.text, le, Fe) || _e(be, Fe);
11690
+ const be = oo(Se, re), ye = N_(be, F, Y, i.vertical || M, s, 24, L, r.overscaling, Be);
11691
+ for (const Fe of ye) M && q_(r, M.text, le, Fe) || _e(be, Fe);
11692
11692
  }
11693
11693
  else if (ie === "line-center") {
11694
11694
  for (const Se of e.geometry) if (Se.length > 1) {
11695
- const be = oo(Se, re), ye = j_(be, Y, i.vertical || I, s, 24, L);
11695
+ const be = oo(Se, re), ye = j_(be, Y, i.vertical || M, s, 24, L);
11696
11696
  ye && _e(be, ye);
11697
11697
  }
11698
11698
  } else if (e.type === "Polygon") for (const Se of zo(e.geometry, 0)) {
@@ -11705,8 +11705,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11705
11705
  }
11706
11706
  else if (e.type === "Point") for (const Se of e.geometry) for (const be of Se) _e([be], new ms(be.x, be.y, 0));
11707
11707
  }
11708
- function Zf(r, e, i, s, o, l, u, p, g, m, v, _, T, b, M) {
11709
- const I = (function(L, k, F, O, j, Y, J, ne) {
11708
+ function Zf(r, e, i, s, o, l, u, p, g, m, v, _, T, b, I) {
11709
+ const M = (function(L, k, F, O, j, Y, J, ne) {
11710
11710
  const ie = O.layout.get("text-rotate").evaluate(Y, {}) * Math.PI / 180, le = [];
11711
11711
  for (const ce of k.positionedLines) for (const se of ce.positionedGlyphs) {
11712
11712
  if (!se.rect) continue;
@@ -11735,9 +11735,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11735
11735
  return le;
11736
11736
  })(0, i, p, o, l, u, s, r.allowVerticalPlacement), A = r.textSizeData;
11737
11737
  let D = null;
11738
- A.kind === "source" ? (D = [Cn * o.layout.get("text-size").evaluate(u, {})], D[0] > us && Jt(`${r.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)) : A.kind === "composite" && (D = [Cn * b.compositeTextSizes[0].evaluate(u, {}, M), Cn * b.compositeTextSizes[1].evaluate(u, {}, M)], (D[0] > us || D[1] > us) && Jt(`${r.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)), r.addSymbols(r.text, I, D, p, l, u, m, e, g.lineStartIndex, g.lineLength, T, M);
11738
+ A.kind === "source" ? (D = [Cn * o.layout.get("text-size").evaluate(u, {})], D[0] > us && Jt(`${r.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)) : A.kind === "composite" && (D = [Cn * b.compositeTextSizes[0].evaluate(u, {}, I), Cn * b.compositeTextSizes[1].evaluate(u, {}, I)], (D[0] > us || D[1] > us) && Jt(`${r.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)), r.addSymbols(r.text, M, D, p, l, u, m, e, g.lineStartIndex, g.lineLength, T, I);
11739
11739
  for (const L of v) _[L] = r.text.placedSymbolArray.length - 1;
11740
- return 4 * I.length;
11740
+ return 4 * M.length;
11741
11741
  }
11742
11742
  function $f(r) {
11743
11743
  for (const e in r) return r[e];
@@ -11754,11 +11754,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11754
11754
  R.$ = cc, R.A = Nt, R.B = Yo, R.C = tu, R.D = De, R.E = go, R.F = dr, R.G = function([r, e, i]) {
11755
11755
  return e += 90, e *= Math.PI / 180, i *= Math.PI / 180, { x: r * Math.cos(e) * Math.sin(i), y: r * Math.sin(e) * Math.sin(i), z: r * Math.cos(i) };
11756
11756
  }, R.H = Fi, R.I = qh, R.J = ft, R.K = Hs, R.L = function(r) {
11757
- if (Mi == null) {
11757
+ if (Ii == null) {
11758
11758
  const e = r.navigator ? r.navigator.userAgent : null;
11759
- Mi = !!r.safari || !(!e || !(/\b(iPad|iPhone|iPod)\b/.test(e) || e.match("Safari") && !e.match("Chrome")));
11759
+ Ii = !!r.safari || !(!e || !(/\b(iPad|iPhone|iPod)\b/.test(e) || e.match("Safari") && !e.match("Chrome")));
11760
11760
  }
11761
- return Mi;
11761
+ return Ii;
11762
11762
  }, R.M = $i, R.N = class {
11763
11763
  constructor(r, e) {
11764
11764
  this.target = r, this.mapId = e, this.resolveRejects = {}, this.tasks = {}, this.taskQueue = [], this.abortControllers = {}, this.messageHandlers = {}, this.invoker = new r_((() => this.process())), this.subscription = po(this.target, "message", ((i) => this.receive(i)), !1), this.globalScope = Qt(self) ? r : window;
@@ -11832,14 +11832,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11832
11832
  var r = new Nt(16);
11833
11833
  return Nt != Float32Array && (r[1] = 0, r[2] = 0, r[3] = 0, r[4] = 0, r[6] = 0, r[7] = 0, r[8] = 0, r[9] = 0, r[11] = 0, r[12] = 0, r[13] = 0, r[14] = 0), r[0] = 1, r[5] = 1, r[10] = 1, r[15] = 1, r;
11834
11834
  }, R.P = de, R.Q = function(r, e, i) {
11835
- var s, o, l, u, p, g, m, v, _, T, b, M, I = i[0], A = i[1], D = i[2];
11836
- return e === r ? (r[12] = e[0] * I + e[4] * A + e[8] * D + e[12], r[13] = e[1] * I + e[5] * A + e[9] * D + e[13], r[14] = e[2] * I + e[6] * A + e[10] * D + e[14], r[15] = e[3] * I + e[7] * A + e[11] * D + e[15]) : (o = e[1], l = e[2], u = e[3], p = e[4], g = e[5], m = e[6], v = e[7], _ = e[8], T = e[9], b = e[10], M = e[11], r[0] = s = e[0], r[1] = o, r[2] = l, r[3] = u, r[4] = p, r[5] = g, r[6] = m, r[7] = v, r[8] = _, r[9] = T, r[10] = b, r[11] = M, r[12] = s * I + p * A + _ * D + e[12], r[13] = o * I + g * A + T * D + e[13], r[14] = l * I + m * A + b * D + e[14], r[15] = u * I + v * A + M * D + e[15]), r;
11835
+ var s, o, l, u, p, g, m, v, _, T, b, I, M = i[0], A = i[1], D = i[2];
11836
+ return e === r ? (r[12] = e[0] * M + e[4] * A + e[8] * D + e[12], r[13] = e[1] * M + e[5] * A + e[9] * D + e[13], r[14] = e[2] * M + e[6] * A + e[10] * D + e[14], r[15] = e[3] * M + e[7] * A + e[11] * D + e[15]) : (o = e[1], l = e[2], u = e[3], p = e[4], g = e[5], m = e[6], v = e[7], _ = e[8], T = e[9], b = e[10], I = e[11], r[0] = s = e[0], r[1] = o, r[2] = l, r[3] = u, r[4] = p, r[5] = g, r[6] = m, r[7] = v, r[8] = _, r[9] = T, r[10] = b, r[11] = I, r[12] = s * M + p * A + _ * D + e[12], r[13] = o * M + g * A + T * D + e[13], r[14] = l * M + m * A + b * D + e[14], r[15] = u * M + v * A + I * D + e[15]), r;
11837
11837
  }, R.R = ji, R.S = function(r, e, i) {
11838
11838
  var s = i[0], o = i[1], l = i[2];
11839
11839
  return r[0] = e[0] * s, r[1] = e[1] * s, r[2] = e[2] * s, r[3] = e[3] * s, r[4] = e[4] * o, r[5] = e[5] * o, r[6] = e[6] * o, r[7] = e[7] * o, r[8] = e[8] * l, r[9] = e[9] * l, r[10] = e[10] * l, r[11] = e[11] * l, r[12] = e[12], r[13] = e[13], r[14] = e[14], r[15] = e[15], r;
11840
11840
  }, R.T = wh, R.U = function(r, e, i) {
11841
- var s = e[0], o = e[1], l = e[2], u = e[3], p = e[4], g = e[5], m = e[6], v = e[7], _ = e[8], T = e[9], b = e[10], M = e[11], I = e[12], A = e[13], D = e[14], L = e[15], k = i[0], F = i[1], O = i[2], j = i[3];
11842
- return r[0] = k * s + F * p + O * _ + j * I, r[1] = k * o + F * g + O * T + j * A, r[2] = k * l + F * m + O * b + j * D, r[3] = k * u + F * v + O * M + j * L, r[4] = (k = i[4]) * s + (F = i[5]) * p + (O = i[6]) * _ + (j = i[7]) * I, r[5] = k * o + F * g + O * T + j * A, r[6] = k * l + F * m + O * b + j * D, r[7] = k * u + F * v + O * M + j * L, r[8] = (k = i[8]) * s + (F = i[9]) * p + (O = i[10]) * _ + (j = i[11]) * I, r[9] = k * o + F * g + O * T + j * A, r[10] = k * l + F * m + O * b + j * D, r[11] = k * u + F * v + O * M + j * L, r[12] = (k = i[12]) * s + (F = i[13]) * p + (O = i[14]) * _ + (j = i[15]) * I, r[13] = k * o + F * g + O * T + j * A, r[14] = k * l + F * m + O * b + j * D, r[15] = k * u + F * v + O * M + j * L, r;
11841
+ var s = e[0], o = e[1], l = e[2], u = e[3], p = e[4], g = e[5], m = e[6], v = e[7], _ = e[8], T = e[9], b = e[10], I = e[11], M = e[12], A = e[13], D = e[14], L = e[15], k = i[0], F = i[1], O = i[2], j = i[3];
11842
+ return r[0] = k * s + F * p + O * _ + j * M, r[1] = k * o + F * g + O * T + j * A, r[2] = k * l + F * m + O * b + j * D, r[3] = k * u + F * v + O * I + j * L, r[4] = (k = i[4]) * s + (F = i[5]) * p + (O = i[6]) * _ + (j = i[7]) * M, r[5] = k * o + F * g + O * T + j * A, r[6] = k * l + F * m + O * b + j * D, r[7] = k * u + F * v + O * I + j * L, r[8] = (k = i[8]) * s + (F = i[9]) * p + (O = i[10]) * _ + (j = i[11]) * M, r[9] = k * o + F * g + O * T + j * A, r[10] = k * l + F * m + O * b + j * D, r[11] = k * u + F * v + O * I + j * L, r[12] = (k = i[12]) * s + (F = i[13]) * p + (O = i[14]) * _ + (j = i[15]) * M, r[13] = k * o + F * g + O * T + j * A, r[14] = k * l + F * m + O * b + j * D, r[15] = k * u + F * v + O * I + j * L, r;
11843
11843
  }, R.V = function(r, e) {
11844
11844
  const i = {};
11845
11845
  for (const s of e) s in r && (i[s] = r[s]);
@@ -11907,8 +11907,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11907
11907
  let i = 1 / 0, s = -1 / 0, o = 1 / 0, l = -1 / 0;
11908
11908
  const u = [];
11909
11909
  for (const g of r) {
11910
- const { x: m, y: v, z: _ } = g.canonical, T = Math.pow(2, e - _), b = m * T, M = v * T;
11911
- u.push({ id: g, x: b, y: M }), b < i && (i = b), b > s && (s = b), M < o && (o = M), M > l && (l = M);
11910
+ const { x: m, y: v, z: _ } = g.canonical, T = Math.pow(2, e - _), b = m * T, I = v * T;
11911
+ u.push({ id: g, x: b, y: I }), b < i && (i = b), b > s && (s = b), I < o && (o = I), I > l && (l = I);
11912
11912
  }
11913
11913
  const p = /* @__PURE__ */ new Set();
11914
11914
  for (const g of u) g.x !== i && g.x !== s && g.y !== o && g.y !== l || p.add(g.id);
@@ -12003,8 +12003,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12003
12003
  const s = (o = [r[0], r[1], r[2], e[0], e[1], e[2], i[0], i[1], i[2]])[0] * ((v = o[8]) * (u = o[4]) - (p = o[5]) * (m = o[7])) + o[1] * (-v * (l = o[3]) + p * (g = o[6])) + o[2] * (m * l - u * g);
12004
12004
  var o, l, u, p, g, m, v;
12005
12005
  if (s === 0) return null;
12006
- const _ = te([], [e[0], e[1], e[2]], [i[0], i[1], i[2]]), T = te([], [i[0], i[1], i[2]], [r[0], r[1], r[2]]), b = te([], [r[0], r[1], r[2]], [e[0], e[1], e[2]]), M = K([], _, -r[3]);
12007
- return W(M, M, K([], T, -e[3])), W(M, M, K([], b, -i[3])), K(M, M, 1 / s), M;
12006
+ const _ = te([], [e[0], e[1], e[2]], [i[0], i[1], i[2]]), T = te([], [i[0], i[1], i[2]], [r[0], r[1], r[2]]), b = te([], [r[0], r[1], r[2]], [e[0], e[1], e[2]]), I = K([], _, -r[3]);
12007
+ return W(I, I, K([], T, -e[3])), W(I, I, K([], b, -i[3])), K(I, I, 1 / s), I;
12008
12008
  }, R.bD = Qh, R.bE = function() {
12009
12009
  return new Float64Array(4);
12010
12010
  }, R.bF = function(r, e, i, s) {
@@ -12094,21 +12094,21 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12094
12094
  (function(u, p, g, m) {
12095
12095
  let v;
12096
12096
  for (v in p = p || {}, u = u || {}) Object.prototype.hasOwnProperty.call(u, v) && (Object.prototype.hasOwnProperty.call(p, v) || uc(v, g, m));
12097
- for (v in p) Object.prototype.hasOwnProperty.call(p, v) && (Object.prototype.hasOwnProperty.call(u, v) ? ot(u[v], p[v]) || (u[v].type === "geojson" && p[v].type === "geojson" && Uu(u, p, v) ? Ii(g, { command: "setGeoJSONSourceData", args: [v, p[v].data] }) : hc(v, p, g, m)) : on(v, p, g));
12097
+ for (v in p) Object.prototype.hasOwnProperty.call(p, v) && (Object.prototype.hasOwnProperty.call(u, v) ? ot(u[v], p[v]) || (u[v].type === "geojson" && p[v].type === "geojson" && Uu(u, p, v) ? Mi(g, { command: "setGeoJSONSourceData", args: [v, p[v].data] }) : hc(v, p, g, m)) : on(v, p, g));
12098
12098
  })(r.sources, e.sources, o, s);
12099
12099
  const l = [];
12100
12100
  r.layers && r.layers.forEach(((u) => {
12101
12101
  "source" in u && s[u.source] ? i.push({ command: "removeLayer", args: [u.id] }) : l.push(u);
12102
12102
  })), i = i.concat(o), (function(u, p, g) {
12103
12103
  p = p || [];
12104
- const m = (u = u || []).map(Ua), v = p.map(Ua), _ = u.reduce(dc, {}), T = p.reduce(dc, {}), b = m.slice(), M = /* @__PURE__ */ Object.create(null);
12105
- let I, A, D, L, k;
12106
- for (let F = 0, O = 0; F < m.length; F++) I = m[F], Object.prototype.hasOwnProperty.call(T, I) ? O++ : (Ii(g, { command: "removeLayer", args: [I] }), b.splice(b.indexOf(I, O), 1));
12107
- for (let F = 0, O = 0; F < v.length; F++) I = v[v.length - 1 - F], b[b.length - 1 - F] !== I && (Object.prototype.hasOwnProperty.call(_, I) ? (Ii(g, { command: "removeLayer", args: [I] }), b.splice(b.lastIndexOf(I, b.length - O), 1)) : O++, L = b[b.length - F], Ii(g, { command: "addLayer", args: [T[I], L] }), b.splice(b.length - F, 0, I), M[I] = !0);
12108
- for (let F = 0; F < v.length; F++) if (I = v[F], A = _[I], D = T[I], !M[I] && !ot(A, D)) if (ot(A.source, D.source) && ot(A["source-layer"], D["source-layer"]) && ot(A.type, D.type)) {
12109
- for (k in _o(A.layout, D.layout, g, I, null, "setLayoutProperty"), _o(A.paint, D.paint, g, I, null, "setPaintProperty"), ot(A.filter, D.filter) || Ii(g, { command: "setFilter", args: [I, D.filter] }), ot(A.minzoom, D.minzoom) && ot(A.maxzoom, D.maxzoom) || Ii(g, { command: "setLayerZoomRange", args: [I, D.minzoom, D.maxzoom] }), A) Object.prototype.hasOwnProperty.call(A, k) && k !== "layout" && k !== "paint" && k !== "filter" && k !== "metadata" && k !== "minzoom" && k !== "maxzoom" && (k.indexOf("paint.") === 0 ? _o(A[k], D[k], g, I, k.slice(6), "setPaintProperty") : ot(A[k], D[k]) || Ii(g, { command: "setLayerProperty", args: [I, k, D[k]] }));
12110
- for (k in D) Object.prototype.hasOwnProperty.call(D, k) && !Object.prototype.hasOwnProperty.call(A, k) && k !== "layout" && k !== "paint" && k !== "filter" && k !== "metadata" && k !== "minzoom" && k !== "maxzoom" && (k.indexOf("paint.") === 0 ? _o(A[k], D[k], g, I, k.slice(6), "setPaintProperty") : ot(A[k], D[k]) || Ii(g, { command: "setLayerProperty", args: [I, k, D[k]] }));
12111
- } else Ii(g, { command: "removeLayer", args: [I] }), L = b[b.lastIndexOf(I) + 1], Ii(g, { command: "addLayer", args: [D, L] });
12104
+ const m = (u = u || []).map(Ua), v = p.map(Ua), _ = u.reduce(dc, {}), T = p.reduce(dc, {}), b = m.slice(), I = /* @__PURE__ */ Object.create(null);
12105
+ let M, A, D, L, k;
12106
+ for (let F = 0, O = 0; F < m.length; F++) M = m[F], Object.prototype.hasOwnProperty.call(T, M) ? O++ : (Mi(g, { command: "removeLayer", args: [M] }), b.splice(b.indexOf(M, O), 1));
12107
+ for (let F = 0, O = 0; F < v.length; F++) M = v[v.length - 1 - F], b[b.length - 1 - F] !== M && (Object.prototype.hasOwnProperty.call(_, M) ? (Mi(g, { command: "removeLayer", args: [M] }), b.splice(b.lastIndexOf(M, b.length - O), 1)) : O++, L = b[b.length - F], Mi(g, { command: "addLayer", args: [T[M], L] }), b.splice(b.length - F, 0, M), I[M] = !0);
12108
+ for (let F = 0; F < v.length; F++) if (M = v[F], A = _[M], D = T[M], !I[M] && !ot(A, D)) if (ot(A.source, D.source) && ot(A["source-layer"], D["source-layer"]) && ot(A.type, D.type)) {
12109
+ for (k in _o(A.layout, D.layout, g, M, null, "setLayoutProperty"), _o(A.paint, D.paint, g, M, null, "setPaintProperty"), ot(A.filter, D.filter) || Mi(g, { command: "setFilter", args: [M, D.filter] }), ot(A.minzoom, D.minzoom) && ot(A.maxzoom, D.maxzoom) || Mi(g, { command: "setLayerZoomRange", args: [M, D.minzoom, D.maxzoom] }), A) Object.prototype.hasOwnProperty.call(A, k) && k !== "layout" && k !== "paint" && k !== "filter" && k !== "metadata" && k !== "minzoom" && k !== "maxzoom" && (k.indexOf("paint.") === 0 ? _o(A[k], D[k], g, M, k.slice(6), "setPaintProperty") : ot(A[k], D[k]) || Mi(g, { command: "setLayerProperty", args: [M, k, D[k]] }));
12110
+ for (k in D) Object.prototype.hasOwnProperty.call(D, k) && !Object.prototype.hasOwnProperty.call(A, k) && k !== "layout" && k !== "paint" && k !== "filter" && k !== "metadata" && k !== "minzoom" && k !== "maxzoom" && (k.indexOf("paint.") === 0 ? _o(A[k], D[k], g, M, k.slice(6), "setPaintProperty") : ot(A[k], D[k]) || Mi(g, { command: "setLayerProperty", args: [M, k, D[k]] }));
12111
+ } else Mi(g, { command: "removeLayer", args: [M] }), L = b[b.lastIndexOf(M) + 1], Mi(g, { command: "addLayer", args: [D, L] });
12112
12112
  })(l, e.layers, i);
12113
12113
  } catch (s) {
12114
12114
  console.warn("Unable to compute style diff:", s), i = [{ command: "setStyle", args: [e] }];
@@ -12141,8 +12141,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12141
12141
  var s = Math.sin(i), o = Math.cos(i), l = e[4], u = e[5], p = e[6], g = e[7], m = e[8], v = e[9], _ = e[10], T = e[11];
12142
12142
  return e !== r && (r[0] = e[0], r[1] = e[1], r[2] = e[2], r[3] = e[3], r[12] = e[12], r[13] = e[13], r[14] = e[14], r[15] = e[15]), r[4] = l * o + m * s, r[5] = u * o + v * s, r[6] = p * o + _ * s, r[7] = g * o + T * s, r[8] = m * o - l * s, r[9] = v * o - u * s, r[10] = _ * o - p * s, r[11] = T * o - g * s, r;
12143
12143
  }, R.bg = function(r, e) {
12144
- var i = e[0], s = e[1], o = e[2], l = e[3], u = e[4], p = e[5], g = e[6], m = e[7], v = e[8], _ = e[9], T = e[10], b = e[11], M = e[12], I = e[13], A = e[14], D = e[15], L = i * p - s * u, k = i * g - o * u, F = i * m - l * u, O = s * g - o * p, j = s * m - l * p, Y = o * m - l * g, J = v * I - _ * M, ne = v * A - T * M, ie = v * D - b * M, le = _ * A - T * I, ce = _ * D - b * I, se = T * D - b * A, re = L * se - k * ce + F * le + O * ie - j * ne + Y * J;
12145
- return re ? (r[0] = (p * se - g * ce + m * le) * (re = 1 / re), r[1] = (o * ce - s * se - l * le) * re, r[2] = (I * Y - A * j + D * O) * re, r[3] = (T * j - _ * Y - b * O) * re, r[4] = (g * ie - u * se - m * ne) * re, r[5] = (i * se - o * ie + l * ne) * re, r[6] = (A * F - M * Y - D * k) * re, r[7] = (v * Y - T * F + b * k) * re, r[8] = (u * ce - p * ie + m * J) * re, r[9] = (s * ie - i * ce - l * J) * re, r[10] = (M * j - I * F + D * L) * re, r[11] = (_ * F - v * j - b * L) * re, r[12] = (p * ne - u * le - g * J) * re, r[13] = (i * le - s * ne + o * J) * re, r[14] = (I * k - M * O - A * L) * re, r[15] = (v * O - _ * k + T * L) * re, r) : null;
12144
+ var i = e[0], s = e[1], o = e[2], l = e[3], u = e[4], p = e[5], g = e[6], m = e[7], v = e[8], _ = e[9], T = e[10], b = e[11], I = e[12], M = e[13], A = e[14], D = e[15], L = i * p - s * u, k = i * g - o * u, F = i * m - l * u, O = s * g - o * p, j = s * m - l * p, Y = o * m - l * g, J = v * M - _ * I, ne = v * A - T * I, ie = v * D - b * I, le = _ * A - T * M, ce = _ * D - b * M, se = T * D - b * A, re = L * se - k * ce + F * le + O * ie - j * ne + Y * J;
12145
+ return re ? (r[0] = (p * se - g * ce + m * le) * (re = 1 / re), r[1] = (o * ce - s * se - l * le) * re, r[2] = (M * Y - A * j + D * O) * re, r[3] = (T * j - _ * Y - b * O) * re, r[4] = (g * ie - u * se - m * ne) * re, r[5] = (i * se - o * ie + l * ne) * re, r[6] = (A * F - I * Y - D * k) * re, r[7] = (v * Y - T * F + b * k) * re, r[8] = (u * ce - p * ie + m * J) * re, r[9] = (s * ie - i * ce - l * J) * re, r[10] = (I * j - M * F + D * L) * re, r[11] = (_ * F - v * j - b * L) * re, r[12] = (p * ne - u * le - g * J) * re, r[13] = (i * le - s * ne + o * J) * re, r[14] = (M * k - I * O - A * L) * re, r[15] = (v * O - _ * k + T * L) * re, r) : null;
12146
12146
  }, R.bh = function() {
12147
12147
  const r = new Float32Array(16);
12148
12148
  return kn(r), r;
@@ -12155,12 +12155,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12155
12155
  const s = new Float64Array(4);
12156
12156
  return Ye(s, r, e - 90, i), s;
12157
12157
  }, R.bl = function(r, e, i, s) {
12158
- var o, l, u, p, g, m = e[0], v = e[1], _ = e[2], T = e[3], b = i[0], M = i[1], I = i[2], A = i[3];
12159
- return (l = m * b + v * M + _ * I + T * A) < 0 && (l = -l, b = -b, M = -M, I = -I, A = -A), 1 - l > fe ? (o = Math.acos(l), u = Math.sin(o), p = Math.sin((1 - s) * o) / u, g = Math.sin(s * o) / u) : (p = 1 - s, g = s), r[0] = p * m + g * b, r[1] = p * v + g * M, r[2] = p * _ + g * I, r[3] = p * T + g * A, r;
12158
+ var o, l, u, p, g, m = e[0], v = e[1], _ = e[2], T = e[3], b = i[0], I = i[1], M = i[2], A = i[3];
12159
+ return (l = m * b + v * I + _ * M + T * A) < 0 && (l = -l, b = -b, I = -I, M = -M, A = -A), 1 - l > fe ? (o = Math.acos(l), u = Math.sin(o), p = Math.sin((1 - s) * o) / u, g = Math.sin(s * o) / u) : (p = 1 - s, g = s), r[0] = p * m + g * b, r[1] = p * v + g * I, r[2] = p * _ + g * M, r[3] = p * T + g * A, r;
12160
12160
  }, R.bm = function(r) {
12161
12161
  const e = new Float64Array(9);
12162
- var i, s, o, l, u, p, g, m, v, _, T, b, M, I, A, D, L, k;
12163
- _ = (o = (s = r)[0]) * (g = o + o), T = (l = s[1]) * g, M = (u = s[2]) * g, I = u * (m = l + l), D = (p = s[3]) * g, L = p * m, k = p * (v = u + u), (i = e)[0] = 1 - (b = l * m) - (A = u * v), i[3] = T - k, i[6] = M + L, i[1] = T + k, i[4] = 1 - _ - A, i[7] = I - D, i[2] = M - L, i[5] = I + D, i[8] = 1 - _ - b;
12162
+ var i, s, o, l, u, p, g, m, v, _, T, b, I, M, A, D, L, k;
12163
+ _ = (o = (s = r)[0]) * (g = o + o), T = (l = s[1]) * g, I = (u = s[2]) * g, M = u * (m = l + l), D = (p = s[3]) * g, L = p * m, k = p * (v = u + u), (i = e)[0] = 1 - (b = l * m) - (A = u * v), i[3] = T - k, i[6] = I + L, i[1] = T + k, i[4] = 1 - _ - A, i[7] = M - D, i[2] = I - L, i[5] = M + D, i[8] = 1 - _ - b;
12164
12164
  const F = rn(-Math.asin(gi(e[2], -1, 1)));
12165
12165
  let O, j;
12166
12166
  return Math.hypot(e[5], e[8]) < 1e-3 ? (O = 0, j = -rn(Math.atan2(e[3], e[4]))) : (O = rn(e[5] === 0 && e[8] === 0 ? 0 : Math.atan2(e[5], e[8])), j = rn(e[1] === 0 && e[0] === 0 ? 0 : Math.atan2(e[1], e[0]))), { roll: O, pitch: F + 90, bearing: j };
@@ -12271,7 +12271,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12271
12271
  }
12272
12272
  const p = o.get("text-line-height") * Wt, g = o.get("text-rotation-alignment") !== "viewport" && o.get("symbol-placement") !== "point", m = o.get("text-keep-upright"), v = o.get("text-size");
12273
12273
  for (const _ of r.bucket.features) {
12274
- const T = o.get("text-font").evaluate(_, {}, r.canonical).join(","), b = v.evaluate(_, {}, r.canonical), M = u.layoutTextSize.evaluate(_, {}, r.canonical), I = u.layoutIconSize.evaluate(_, {}, r.canonical), A = { horizontal: {}, vertical: void 0 }, D = _.text;
12274
+ const T = o.get("text-font").evaluate(_, {}, r.canonical).join(","), b = v.evaluate(_, {}, r.canonical), I = u.layoutTextSize.evaluate(_, {}, r.canonical), M = u.layoutIconSize.evaluate(_, {}, r.canonical), A = { horizontal: {}, vertical: void 0 }, D = _.text;
12275
12275
  let L, k = [0, 0];
12276
12276
  if (D) {
12277
12277
  const j = D.toString(), Y = o.get("text-letter-spacing").evaluate(_, {}, r.canonical) * Wt, J = Ho(j) ? Y : 0, ne = o.get("text-anchor").evaluate(_, {}, r.canonical), ie = Gf(s, _, r.canonical);
@@ -12281,7 +12281,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12281
12281
  }
12282
12282
  let le = g ? "center" : o.get("text-justify").evaluate(_, {}, r.canonical);
12283
12283
  const ce = o.get("symbol-placement") === "point" ? o.get("text-max-width").evaluate(_, {}, r.canonical) * Wt : 1 / 0, se = () => {
12284
- r.bucket.allowVerticalPlacement && Sl(j) && (A.vertical = Eu(D, r.glyphMap, r.glyphPositions, r.imagePositions, T, ce, p, ne, "left", J, k, R.ax.vertical, !0, M, b));
12284
+ r.bucket.allowVerticalPlacement && Sl(j) && (A.vertical = Eu(D, r.glyphMap, r.glyphPositions, r.imagePositions, T, ce, p, ne, "left", J, k, R.ax.vertical, !0, I, b));
12285
12285
  };
12286
12286
  if (!g && ie) {
12287
12287
  const re = /* @__PURE__ */ new Set();
@@ -12290,14 +12290,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12290
12290
  let _e = !1;
12291
12291
  for (const Se of re) if (!A.horizontal[Se]) if (_e) A.horizontal[Se] = A.horizontal[0];
12292
12292
  else {
12293
- const be = Eu(D, r.glyphMap, r.glyphPositions, r.imagePositions, T, ce, p, "center", Se, J, k, R.ax.horizontal, !1, M, b);
12293
+ const be = Eu(D, r.glyphMap, r.glyphPositions, r.imagePositions, T, ce, p, "center", Se, J, k, R.ax.horizontal, !1, I, b);
12294
12294
  be && (A.horizontal[Se] = be, _e = be.positionedLines.length === 1);
12295
12295
  }
12296
12296
  se();
12297
12297
  } else {
12298
12298
  le === "auto" && (le = bd(ne));
12299
- const re = Eu(D, r.glyphMap, r.glyphPositions, r.imagePositions, T, ce, p, ne, le, J, k, R.ax.horizontal, !1, M, b);
12300
- re && (A.horizontal[le] = re), se(), Sl(j) && g && m && (A.vertical = Eu(D, r.glyphMap, r.glyphPositions, r.imagePositions, T, ce, p, ne, le, J, k, R.ax.vertical, !1, M, b));
12299
+ const re = Eu(D, r.glyphMap, r.glyphPositions, r.imagePositions, T, ce, p, ne, le, J, k, R.ax.horizontal, !1, I, b);
12300
+ re && (A.horizontal[le] = re), se(), Sl(j) && g && m && (A.vertical = Eu(D, r.glyphMap, r.glyphPositions, r.imagePositions, T, ce, p, ne, le, J, k, R.ax.vertical, !1, I, b));
12301
12301
  }
12302
12302
  }
12303
12303
  let F = !1;
@@ -12306,11 +12306,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12306
12306
  j && (L = Kg(r.imagePositions[_.icon.name], o.get("icon-offset").evaluate(_, {}, r.canonical), o.get("icon-anchor").evaluate(_, {}, r.canonical)), F = !!j.sdf, r.bucket.sdfIcons === void 0 ? r.bucket.sdfIcons = F : r.bucket.sdfIcons !== F && Jt("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"), (j.pixelRatio !== r.bucket.pixelRatio || o.get("icon-rotate").constantOr(1) !== 0) && (r.bucket.iconsNeedLinear = !0));
12307
12307
  }
12308
12308
  const O = $f(A.horizontal) || A.vertical;
12309
- (i = r.bucket).iconsInText || (i.iconsInText = !!O && O.iconsInText), (O || L) && $_(r.bucket, _, A, L, r.imageMap, u, M, I, k, F, r.canonical, r.subdivisionGranularity);
12309
+ (i = r.bucket).iconsInText || (i.iconsInText = !!O && O.iconsInText), (O || L) && $_(r.bucket, _, A, L, r.imageMap, u, I, M, k, F, r.canonical, r.subdivisionGranularity);
12310
12310
  }
12311
12311
  r.showCollisionBoxes && r.bucket.generateCollisionDebugBuffers();
12312
- }, R.cP = Mh, R.cQ = Eh, R.cR = Zh, R.cS = function(r, e = "") {
12313
- const i = new Iu();
12312
+ }, R.cP = Ih, R.cQ = Eh, R.cR = Zh, R.cS = function(r, e = "") {
12313
+ const i = new Mu();
12314
12314
  return (function(s, o, l = "") {
12315
12315
  for (const u in s.layers) o.writeMessage(3, ((p, g) => D_(p, g, l)), s.layers[u]);
12316
12316
  })(r, i, e), i.finish();
@@ -12336,7 +12336,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12336
12336
  clear() {
12337
12337
  this.map.clear();
12338
12338
  }
12339
- }, R.cV = ip, R.cW = Iu, R.cX = Ef, R.cY = function(r, e, i, s, o) {
12339
+ }, R.cV = ip, R.cW = Mu, R.cX = Ef, R.cY = function(r, e, i, s, o) {
12340
12340
  return h(this, void 0, void 0, (function* () {
12341
12341
  if (mi()) try {
12342
12342
  return yield Fa(r, e, i, s, o);
@@ -12368,8 +12368,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12368
12368
  }, R.cj = function(r, e) {
12369
12369
  return r[0] === e[0] && r[1] === e[1] && r[2] === e[2] && r[3] === e[3] && r[4] === e[4] && r[5] === e[5] && r[6] === e[6] && r[7] === e[7] && r[8] === e[8] && r[9] === e[9] && r[10] === e[10] && r[11] === e[11] && r[12] === e[12] && r[13] === e[13] && r[14] === e[14] && r[15] === e[15];
12370
12370
  }, R.ck = function(r, e) {
12371
- var i = r[0], s = r[1], o = r[2], l = r[3], u = r[4], p = r[5], g = r[6], m = r[7], v = r[8], _ = r[9], T = r[10], b = r[11], M = r[12], I = r[13], A = r[14], D = r[15], L = e[0], k = e[1], F = e[2], O = e[3], j = e[4], Y = e[5], J = e[6], ne = e[7], ie = e[8], le = e[9], ce = e[10], se = e[11], re = e[12], _e = e[13], Se = e[14], be = e[15];
12372
- return Math.abs(i - L) <= fe * Math.max(1, Math.abs(i), Math.abs(L)) && Math.abs(s - k) <= fe * Math.max(1, Math.abs(s), Math.abs(k)) && Math.abs(o - F) <= fe * Math.max(1, Math.abs(o), Math.abs(F)) && Math.abs(l - O) <= fe * Math.max(1, Math.abs(l), Math.abs(O)) && Math.abs(u - j) <= fe * Math.max(1, Math.abs(u), Math.abs(j)) && Math.abs(p - Y) <= fe * Math.max(1, Math.abs(p), Math.abs(Y)) && Math.abs(g - J) <= fe * Math.max(1, Math.abs(g), Math.abs(J)) && Math.abs(m - ne) <= fe * Math.max(1, Math.abs(m), Math.abs(ne)) && Math.abs(v - ie) <= fe * Math.max(1, Math.abs(v), Math.abs(ie)) && Math.abs(_ - le) <= fe * Math.max(1, Math.abs(_), Math.abs(le)) && Math.abs(T - ce) <= fe * Math.max(1, Math.abs(T), Math.abs(ce)) && Math.abs(b - se) <= fe * Math.max(1, Math.abs(b), Math.abs(se)) && Math.abs(M - re) <= fe * Math.max(1, Math.abs(M), Math.abs(re)) && Math.abs(I - _e) <= fe * Math.max(1, Math.abs(I), Math.abs(_e)) && Math.abs(A - Se) <= fe * Math.max(1, Math.abs(A), Math.abs(Se)) && Math.abs(D - be) <= fe * Math.max(1, Math.abs(D), Math.abs(be));
12371
+ var i = r[0], s = r[1], o = r[2], l = r[3], u = r[4], p = r[5], g = r[6], m = r[7], v = r[8], _ = r[9], T = r[10], b = r[11], I = r[12], M = r[13], A = r[14], D = r[15], L = e[0], k = e[1], F = e[2], O = e[3], j = e[4], Y = e[5], J = e[6], ne = e[7], ie = e[8], le = e[9], ce = e[10], se = e[11], re = e[12], _e = e[13], Se = e[14], be = e[15];
12372
+ return Math.abs(i - L) <= fe * Math.max(1, Math.abs(i), Math.abs(L)) && Math.abs(s - k) <= fe * Math.max(1, Math.abs(s), Math.abs(k)) && Math.abs(o - F) <= fe * Math.max(1, Math.abs(o), Math.abs(F)) && Math.abs(l - O) <= fe * Math.max(1, Math.abs(l), Math.abs(O)) && Math.abs(u - j) <= fe * Math.max(1, Math.abs(u), Math.abs(j)) && Math.abs(p - Y) <= fe * Math.max(1, Math.abs(p), Math.abs(Y)) && Math.abs(g - J) <= fe * Math.max(1, Math.abs(g), Math.abs(J)) && Math.abs(m - ne) <= fe * Math.max(1, Math.abs(m), Math.abs(ne)) && Math.abs(v - ie) <= fe * Math.max(1, Math.abs(v), Math.abs(ie)) && Math.abs(_ - le) <= fe * Math.max(1, Math.abs(_), Math.abs(le)) && Math.abs(T - ce) <= fe * Math.max(1, Math.abs(T), Math.abs(ce)) && Math.abs(b - se) <= fe * Math.max(1, Math.abs(b), Math.abs(se)) && Math.abs(I - re) <= fe * Math.max(1, Math.abs(I), Math.abs(re)) && Math.abs(M - _e) <= fe * Math.max(1, Math.abs(M), Math.abs(_e)) && Math.abs(A - Se) <= fe * Math.max(1, Math.abs(A), Math.abs(Se)) && Math.abs(D - be) <= fe * Math.max(1, Math.abs(D), Math.abs(be));
12373
12373
  }, R.cl = function(r, e) {
12374
12374
  return r[0] = e[0], r[1] = e[1], r[2] = e[2], r[3] = e[3], r[4] = e[4], r[5] = e[5], r[6] = e[6], r[7] = e[7], r[8] = e[8], r[9] = e[9], r[10] = e[10], r[11] = e[11], r[12] = e[12], r[13] = e[13], r[14] = e[14], r[15] = e[15], r;
12375
12375
  }, R.cm = (r) => r.type === "circle", R.cn = (r) => r.type === "heatmap", R.co = (r) => r.type === "line", R.cp = (r) => r.type === "fill", R.cq = (r) => r.type === "fill-extrusion", R.cr = (r) => r.type === "hillshade", R.cs = (r) => r.type === "color-relief", R.ct = (r) => r.type === "background", R.cu = (r) => r.type === "custom", R.cv = Qr, R.cw = function(r, e, i) {
@@ -12424,10 +12424,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12424
12424
  const v = /* @__PURE__ */ new Map(), _ = [];
12425
12425
  for (const T of l) g.update.has(T.id) ? v.set(T.id, [...v.get(T.id) || [], T]) : _.push(T);
12426
12426
  for (const [T, b] of g.update) {
12427
- const M = v.get(T);
12428
- if (!M || M.length === 0) continue;
12429
- const I = cg(M, b, p);
12430
- m.push(...M, ...I), _.push(...I);
12427
+ const I = v.get(T);
12428
+ if (!I || I.length === 0) continue;
12429
+ const M = cg(I, b, p);
12430
+ m.push(...I, ...M), _.push(...M);
12431
12431
  }
12432
12432
  l = _;
12433
12433
  }
@@ -12473,7 +12473,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12473
12473
  const o = new Blob([new Uint8Array(r)], { type: "image/png" });
12474
12474
  s.src = r.byteLength ? URL.createObjectURL(o) : La;
12475
12475
  })), R.k = (r, e) => nn(Zi(r, { type: "json" }), e), R.l = On, R.m = nn, R.n = ws, R.o = (r, e) => nn(Zi(r, { type: "arrayBuffer" }), e), R.p = zp, R.q = function(r) {
12476
- return new Iu(r).readFields(Gg, []);
12476
+ return new Mu(r).readFields(Gg, []);
12477
12477
  }, R.r = function(r) {
12478
12478
  return /[\u02EA\u02EB\u1100-\u11FF\u2E80-\u2FDF\u3000-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE4F\uFF00-\uFFEF]|\uD81B[\uDFE0-\uDFFF]|[\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFB]|\uD83C[\uDE00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(r));
12479
12479
  }, R.s = po, R.t = Ul, R.u = vi, R.v = Ws, R.w = Jt, R.x = ue, R.y = Al, R.z = Oi;
@@ -12548,12 +12548,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12548
12548
  Zt.version === 1 && R.w(`Vector tile source "${this.source}" layer "${Ve}" does not use vector tile spec v2 and therefore may have some rendering errors.`);
12549
12549
  const Jt = Ke.encode(Ve), ki = [];
12550
12550
  for (let Qt = 0; Qt < Zt.length; Qt++) {
12551
- const Mi = Zt.feature(Qt), tn = Oe.getId(Mi, Ve);
12552
- ki.push({ feature: Mi, id: tn, index: Qt, sourceLayerIndex: Jt });
12551
+ const Ii = Zt.feature(Qt), tn = Oe.getId(Ii, Ve);
12552
+ ki.push({ feature: Ii, id: tn, index: Qt, sourceLayerIndex: Jt });
12553
12553
  }
12554
12554
  for (const Qt of it[Ve]) {
12555
- const Mi = Qt[0];
12556
- Mi.source !== this.source && R.w(`layer.source = ${Mi.source} does not equal this.source = ${this.source}`), Mi.isHidden(this.zoom, !0) || (Bt(Qt, this.zoom, te), (Ye[Mi.id] = Mi.createBucket({ index: Oe.bucketLayerIDs.length, layers: Qt, zoom: this.zoom, pixelRatio: this.pixelRatio, overscaling: this.overscaling, collisionBoxArray: this.collisionBoxArray, sourceLayerIndex: Jt, sourceID: this.source })).populate(ki, Ue, this.tileID.canonical), Oe.bucketLayerIDs.push(Qt.map(((tn) => tn.id))));
12555
+ const Ii = Qt[0];
12556
+ Ii.source !== this.source && R.w(`layer.source = ${Ii.source} does not equal this.source = ${this.source}`), Ii.isHidden(this.zoom, !0) || (Bt(Qt, this.zoom, te), (Ye[Ii.id] = Ii.createBucket({ index: Oe.bucketLayerIDs.length, layers: Qt, zoom: this.zoom, pixelRatio: this.pixelRatio, overscaling: this.overscaling, collisionBoxArray: this.collisionBoxArray, sourceLayerIndex: Jt, sourceID: this.source })).populate(ki, Ue, this.tileID.canonical), Oe.bucketLayerIDs.push(Qt.map(((tn) => tn.id))));
12557
12557
  }
12558
12558
  }
12559
12559
  const Be = R.bY(Ue.glyphDependencies, ((Ve) => Object.keys(Ve).map(Number)));
@@ -14062,7 +14062,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14062
14062
  }));
14063
14063
  }
14064
14064
  }
14065
- function Mi(d, t) {
14065
+ function Ii(d, t) {
14066
14066
  return t ? d.properties[t] : d.id;
14067
14067
  }
14068
14068
  function tn(d, t) {
@@ -14224,13 +14224,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14224
14224
  const x = /* @__PURE__ */ new Map();
14225
14225
  if (f == null || f.type == null) return x;
14226
14226
  if (f.type === "Feature") {
14227
- const w = Mi(f, y);
14227
+ const w = Ii(f, y);
14228
14228
  return w == null ? void 0 : (x.set(w, f), x);
14229
14229
  }
14230
14230
  if (f.type === "FeatureCollection") {
14231
14231
  const w = /* @__PURE__ */ new Set();
14232
14232
  for (const S of f.features) {
14233
- const P = Mi(S, y);
14233
+ const P = Ii(S, y);
14234
14234
  if (P == null || w.has(P)) return;
14235
14235
  w.add(P), x.set(P, S);
14236
14236
  }
@@ -14250,7 +14250,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14250
14250
  E && (S.push(E.geometry), c.delete(P));
14251
14251
  }
14252
14252
  if (f.add) for (const P of f.add) {
14253
- const E = Mi(P, y);
14253
+ const E = Ii(P, y);
14254
14254
  if (E == null) continue;
14255
14255
  const C = c.get(E);
14256
14256
  C && S.push(C.geometry), S.push(P.geometry), c.set(E, P);
@@ -14825,14 +14825,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14825
14825
  };
14826
14826
  }
14827
14827
  const ot = Na(9.314, 3);
14828
- function Ii(d, t) {
14828
+ function Mi(d, t) {
14829
14829
  const n = (t.roundZoom ? Math.round : Math.floor)(d.zoom + h.ar(d.tileSize / t.tileSize));
14830
14830
  return Math.max(0, n);
14831
14831
  }
14832
14832
  function on(d, t) {
14833
14833
  const n = d.getCameraFrustum(), a = d.getClippingPlane(), c = d.screenPointToMercatorCoordinate(d.getCameraPoint()), f = h.a7.fromLngLat(d.center, d.elevation);
14834
14834
  c.z = f.z + Math.cos(d.pitchInRadians) * d.cameraToCenterDistance / d.worldSize;
14835
- const y = d.getCoveringTilesDetailsProvider(), x = y.allowVariableZoom(d, t), w = Ii(d, t), S = t.minzoom || 0, P = t.maxzoom !== void 0 ? t.maxzoom : d.maxZoom, E = Math.min(Math.max(0, w), P), C = Math.pow(2, E), z = [C * c.x, C * c.y, 0], B = [C * f.x, C * f.y, 0], V = Math.hypot(f.x - c.x, f.y - c.y), G = Math.abs(f.z - c.z), N = Math.hypot(V, G), Z = (U) => ({ zoom: 0, x: 0, y: 0, wrap: U, fullyVisible: !1 }), X = [], $ = [];
14835
+ const y = d.getCoveringTilesDetailsProvider(), x = y.allowVariableZoom(d, t), w = Mi(d, t), S = t.minzoom || 0, P = t.maxzoom !== void 0 ? t.maxzoom : d.maxZoom, E = Math.min(Math.max(0, w), P), C = Math.pow(2, E), z = [C * c.x, C * c.y, 0], B = [C * f.x, C * f.y, 0], V = Math.hypot(f.x - c.x, f.y - c.y), G = Math.abs(f.z - c.z), N = Math.hypot(V, G), Z = (U) => ({ zoom: 0, x: 0, y: 0, wrap: U, fullyVisible: !1 }), X = [], $ = [];
14836
14836
  if (d.renderWorldCopies && y.allowWorldCopies()) for (let U = 1; U <= 3; U++) X.push(Z(-U)), X.push(Z(U));
14837
14837
  for (X.push(Z(0)); X.length > 0; ) {
14838
14838
  const U = X.pop(), H = U.x, q = U.y;
@@ -15108,7 +15108,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15108
15108
  this.transform = t, this.terrain = n, this.updateCacheSize(t), this.handleWrapJump(this.transform.center.lng), this.used || this.usedForTerrain ? this._source.tileID ? a = t.getVisibleUnwrappedCoordinates(this._source.tileID).map(((w) => new h.a3(w.canonical.z, w.wrap, w.canonical.z, w.canonical.x, w.canonical.y))) : (a = on(t, { tileSize: this.usedForTerrain ? this.tileSize : this._source.tileSize, minzoom: this._source.minzoom, maxzoom: this._source.type === "vector" && this.map._zoomLevelsToOverscale !== void 0 ? t.maxZoom - this.map._zoomLevelsToOverscale : this._source.maxzoom, roundZoom: !this.usedForTerrain && this._source.roundZoom, reparseOverscaled: this._source.reparseOverscaled, terrain: n, calculateTileZoom: this._source.calculateTileZoom }), this._source.hasTile && (a = a.filter(((w) => this._source.hasTile(w))))) : a = [], this.usedForTerrain && (a = this._addTerrainIdealTiles(a));
15109
15109
  const c = a.length === 0 && !this._updated && this._didEmitContent;
15110
15110
  this._updated = !0, c && this.fire(new h.n("data", { sourceDataType: "idle", dataType: "source", sourceId: this.id }));
15111
- const f = Ii(t, this._source), y = this._updateRetainedTiles(a, f), x = hc(this._source.type);
15111
+ const f = Mi(t, this._source), y = this._updateRetainedTiles(a, f), x = hc(this._source.type);
15112
15112
  x && this._rasterFadeDuration > 0 && !n && (function(w, S, P, E, C, z, B) {
15113
15113
  const V = Xe(), G = h.at(S);
15114
15114
  for (const N of S) {
@@ -15289,7 +15289,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15289
15289
  let n = !0;
15290
15290
  return d === "always" || d !== "never" && t !== "never" || (n = !1), n;
15291
15291
  }
15292
- class Me {
15292
+ class Ie {
15293
15293
  constructor(t, n, a) {
15294
15294
  const c = this.boxCells = [], f = this.circleCells = [];
15295
15295
  this.xCellCount = Math.ceil(t / a), this.yCellCount = Math.ceil(n / a);
@@ -15504,7 +15504,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15504
15504
  B.push(Z.last);
15505
15505
  } else {
15506
15506
  if (y && !f) {
15507
- const G = at(t.tileAnchorPoint.x, t.tileAnchorPoint.y, t).point, N = a.lineStartIndex + a.segment + 1, Z = new h.P(t.lineVertexArray.getx(N), t.lineVertexArray.gety(N)), X = at(Z.x, Z.y, t), $ = X.signedDistanceFromCamera > 0 ? X.point : Ms(t.tileAnchorPoint, Z, G, 1, t), U = xo(G.x, G.y, t, n), H = xo($.x, $.y, t, n), q = Ps(a.writingMode, U, H, S);
15507
+ const G = at(t.tileAnchorPoint.x, t.tileAnchorPoint.y, t).point, N = a.lineStartIndex + a.segment + 1, Z = new h.P(t.lineVertexArray.getx(N), t.lineVertexArray.gety(N)), X = at(Z.x, Z.y, t), $ = X.signedDistanceFromCamera > 0 ? X.point : Is(t.tileAnchorPoint, Z, G, 1, t), U = xo(G.x, G.y, t, n), H = xo($.x, $.y, t, n), q = Ps(a.writingMode, U, H, S);
15508
15508
  if (q) return q;
15509
15509
  }
15510
15510
  const V = ir(E * x.getoffsetX(a.glyphStartIndex), C, z, f, a.segment, a.lineStartIndex, a.lineStartIndex + a.lineLength, t, P);
@@ -15514,7 +15514,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15514
15514
  for (const V of B) h.aD(w, V.point, V.angle);
15515
15515
  return {};
15516
15516
  }
15517
- function Ms(d, t, n, a, c) {
15517
+ function Is(d, t, n, a, c) {
15518
15518
  const f = d.add(d.sub(t)._unit()), y = at(f.x, f.y, c).point, x = n.sub(y);
15519
15519
  return n.add(x._mult(a / x.mag()));
15520
15520
  }
@@ -15524,7 +15524,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15524
15524
  const c = new h.P(t.lineVertexArray.getx(d), t.lineVertexArray.gety(d)), f = at(c.x, c.y, t);
15525
15525
  if (f.signedDistanceFromCamera > 0) return a.projections[d] = f.point, a.anyProjectionOccluded || (a.anyProjectionOccluded = f.isOccluded), f.point;
15526
15526
  const y = d - n.direction;
15527
- return Ms(n.distanceFromAnchor === 0 ? t.tileAnchorPoint : new h.P(t.lineVertexArray.getx(y), t.lineVertexArray.gety(y)), c, n.previousVertex, n.absOffsetX - n.distanceFromAnchor + 1, t);
15527
+ return Is(n.distanceFromAnchor === 0 ? t.tileAnchorPoint : new h.P(t.lineVertexArray.getx(y), t.lineVertexArray.gety(y)), c, n.previousVertex, n.absOffsetX - n.distanceFromAnchor + 1, t);
15528
15528
  }
15529
15529
  function at(d, t, n) {
15530
15530
  const a = d + n.translation[0], c = t + n.translation[1];
@@ -15541,14 +15541,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15541
15541
  function Nn(d, t, n) {
15542
15542
  return n.transform.projectTileCoordinates(d, t, n.unwrappedTileID, n.getElevation);
15543
15543
  }
15544
- function Is(d, t, n) {
15544
+ function Ms(d, t, n) {
15545
15545
  return d._unit()._perp()._mult(t * n);
15546
15546
  }
15547
15547
  function ln(d, t, n, a, c, f, y, x, w) {
15548
15548
  if (x.projectionCache.offsets[d]) return x.projectionCache.offsets[d];
15549
15549
  const S = n.add(t);
15550
15550
  if (d + w.direction < a || d + w.direction >= c) return x.projectionCache.offsets[d] = S, S;
15551
- const P = ti(d + w.direction, x, w), E = Is(P.sub(n), y, w.direction), C = n.add(E), z = P.add(E);
15551
+ const P = ti(d + w.direction, x, w), E = Ms(P.sub(n), y, w.direction), C = n.add(E), z = P.add(E);
15552
15552
  return x.projectionCache.offsets[d] = h.aF(f, S, C, z) || S, x.projectionCache.offsets[d];
15553
15553
  }
15554
15554
  function ir(d, t, n, a, c, f, y, x, w) {
@@ -15568,7 +15568,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15568
15568
  else {
15569
15569
  let ae;
15570
15570
  const ge = G.sub(N);
15571
- ae = ge.mag() === 0 ? Is(ti(z + P, x, oe).sub(G), n, P) : Is(ge, n, P), V || (V = N.add(ae)), B = ln(z, ae, G, f, y, V, n, x, oe), U.push(V), H = B.sub(V);
15571
+ ae = ge.mag() === 0 ? Ms(ti(z + P, x, oe).sub(G), n, P) : Ms(ge, n, P), V || (V = N.add(ae)), B = ln(z, ae, G, f, y, V, n, x, oe), U.push(V), H = B.sub(V);
15572
15572
  }
15573
15573
  X = H.mag();
15574
15574
  }
@@ -15586,10 +15586,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15586
15586
  const a = t[0], c = t[1];
15587
15587
  return d[0] = n[0] * a + n[4] * c + n[12], d[1] = n[1] * a + n[5] * c + n[13], d[3] = n[3] * a + n[7] * c + n[15], d;
15588
15588
  }
15589
- const Mt = 100;
15589
+ const It = 100;
15590
15590
  class fc {
15591
- constructor(t, n = new Me(t.width + 200, t.height + 200, 25), a = new Me(t.width + 200, t.height + 200, 25)) {
15592
- this.transform = t, this.grid = n, this.ignoredGrid = a, this.pitchFactor = Math.cos(t.pitch * Math.PI / 180) * t.cameraToCenterDistance, this.screenRightBoundary = t.width + Mt, this.screenBottomBoundary = t.height + Mt, this.gridRightBoundary = t.width + 200, this.gridBottomBoundary = t.height + 200, this.perspectiveRatioCutoff = 0.6;
15591
+ constructor(t, n = new Ie(t.width + 200, t.height + 200, 25), a = new Ie(t.width + 200, t.height + 200, 25)) {
15592
+ this.transform = t, this.grid = n, this.ignoredGrid = a, this.pitchFactor = Math.cos(t.pitch * Math.PI / 180) * t.cameraToCenterDistance, this.screenRightBoundary = t.width + It, this.screenBottomBoundary = t.height + It, this.gridRightBoundary = t.width + 200, this.gridBottomBoundary = t.height + 200, this.perspectiveRatioCutoff = 0.6;
15593
15593
  }
15594
15594
  placeCollisionBox(t, n, a, c, f, y, x, w, S, P, E, C) {
15595
15595
  const z = this.projectAndGetPerspectiveRatio(t.anchorPointX + w[0], t.anchorPointY + w[1], f, P, C), B = a * z.perspectiveRatio;
@@ -15627,10 +15627,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15627
15627
  let st = 0;
15628
15628
  st = ge.length <= 0.5 * ee ? 1 : Math.ceil(ge.paddedLength / he) + 1;
15629
15629
  for (let kt = 0; kt < st; kt++) {
15630
- const ut = kt / Math.max(st - 1, 1), Lt = ge.lerp(ut), Ot = Lt.x + Mt, ai = Lt.y + Mt;
15630
+ const ut = kt / Math.max(st - 1, 1), Lt = ge.lerp(ut), Ot = Lt.x + It, ai = Lt.y + It;
15631
15631
  V.push(Ot, ai, ee, 0);
15632
- const It = Ot - ee, xi = ai - ee, ii = Ot + ee, qt = ai + ee;
15633
- if (q && (q = this.isOffscreen(It, xi, ii, qt)), H || (H = this.isInsideGrid(It, xi, ii, qt)), t !== "always" && this.grid.hitTestCircle(Ot, ai, ee, t, P) && (U = !0, !w)) return { circles: [], offscreen: !1, collisionDetected: U };
15632
+ const Mt = Ot - ee, xi = ai - ee, ii = Ot + ee, qt = ai + ee;
15633
+ if (q && (q = this.isOffscreen(Mt, xi, ii, qt)), H || (H = this.isInsideGrid(Mt, xi, ii, qt)), t !== "always" && this.grid.hitTestCircle(Ot, ai, ee, t, P) && (U = !0, !w)) return { circles: [], offscreen: !1, collisionDetected: U };
15634
15634
  }
15635
15635
  }
15636
15636
  }
@@ -15657,7 +15657,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15657
15657
  if (t.length === 0 || this.grid.keysLength() === 0 && this.ignoredGrid.keysLength() === 0) return {};
15658
15658
  const n = [], a = new h.a8();
15659
15659
  for (const E of t) {
15660
- const C = new h.P(E.x + Mt, E.y + Mt);
15660
+ const C = new h.P(E.x + It, E.y + It);
15661
15661
  a.extend(C), n.push(C);
15662
15662
  }
15663
15663
  const { minX: c, minY: f, maxX: y, maxY: x } = a, w = this.grid.query(c, f, y, x).concat(this.ignoredGrid.query(c, f, y, x)), S = {}, P = {};
@@ -15681,11 +15681,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15681
15681
  let y;
15682
15682
  c ? (y = [t, n, c(t, n), 1], h.aE(y, y, f)) : (y = [t, n, 0, 1], bo(y, y, f));
15683
15683
  const x = y[3];
15684
- return { x: (y[0] / x + 1) / 2 * this.transform.width + Mt, y: (-y[1] / x + 1) / 2 * this.transform.height + Mt, perspectiveRatio: 0.5 + this.transform.cameraToCenterDistance / x * 0.5, isOccluded: !1, signedDistanceFromCamera: x };
15684
+ return { x: (y[0] / x + 1) / 2 * this.transform.width + It, y: (-y[1] / x + 1) / 2 * this.transform.height + It, perspectiveRatio: 0.5 + this.transform.cameraToCenterDistance / x * 0.5, isOccluded: !1, signedDistanceFromCamera: x };
15685
15685
  }
15686
15686
  {
15687
15687
  const y = this.transform.projectTileCoordinates(t, n, a, c);
15688
- return { x: (y.point.x + 1) / 2 * this.transform.width + Mt, y: (1 - y.point.y) / 2 * this.transform.height + Mt, perspectiveRatio: 0.5 + this.transform.cameraToCenterDistance / y.signedDistanceFromCamera * 0.5, isOccluded: y.isOccluded, signedDistanceFromCamera: y.signedDistanceFromCamera };
15688
+ return { x: (y.point.x + 1) / 2 * this.transform.width + It, y: (1 - y.point.y) / 2 * this.transform.height + It, perspectiveRatio: 0.5 + this.transform.cameraToCenterDistance / y.signedDistanceFromCamera * 0.5, isOccluded: y.isOccluded, signedDistanceFromCamera: y.signedDistanceFromCamera };
15689
15689
  }
15690
15690
  }
15691
15691
  getPerspectiveRatio(t, n, a, c) {
@@ -15693,7 +15693,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15693
15693
  return 0.5 + this.transform.cameraToCenterDistance / f.signedDistanceFromCamera * 0.5;
15694
15694
  }
15695
15695
  isOffscreen(t, n, a, c) {
15696
- return a < Mt || t >= this.screenRightBoundary || c < Mt || n > this.screenBottomBoundary;
15696
+ return a < It || t >= this.screenRightBoundary || c < It || n > this.screenBottomBoundary;
15697
15697
  }
15698
15698
  isInsideGrid(t, n, a, c) {
15699
15699
  return a >= 0 && t < this.gridRightBoundary && c >= 0 && n < this.gridBottomBoundary;
@@ -15804,7 +15804,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15804
15804
  var st, kt;
15805
15805
  if (n[he.crossTileID]) return;
15806
15806
  if (E) return void (this.placements[he.crossTileID] = new gc(!1, !1, !1));
15807
- let ut = !1, Lt = !1, Ot = !0, ai = null, It = { box: null, placeable: !1, offscreen: null, occluded: !1 }, xi = { placeable: !1 }, ii = null, qt = null, li = null, Zr = 0, $r = 0, qr = 0;
15807
+ let ut = !1, Lt = !1, Ot = !0, ai = null, Mt = { box: null, placeable: !1, offscreen: null, occluded: !1 }, xi = { placeable: !1 }, ii = null, qt = null, li = null, Zr = 0, $r = 0, qr = 0;
15808
15808
  Ee.textFeatureIndex ? Zr = Ee.textFeatureIndex : he.useRuntimeCollisionCircles && (Zr = he.featureIndex), Ee.verticalTextFeatureIndex && ($r = Ee.verticalTextFeatureIndex);
15809
15809
  const ci = Ee.textBox;
15810
15810
  if (ci) {
@@ -15817,8 +15817,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15817
15817
  return gt;
15818
15818
  }, mr = (bt, gt) => {
15819
15819
  if (c.allowVerticalPlacement && he.numVerticalGlyphVertices > 0 && Ee.verticalTextBox) {
15820
- for (const Vt of c.writingModes) if (Vt === h.ax.vertical ? (It = gt(), xi = It) : It = bt(), It?.placeable) break;
15821
- } else It = bt();
15820
+ for (const Vt of c.writingModes) if (Vt === h.ax.vertical ? (Mt = gt(), xi = Mt) : Mt = bt(), Mt?.placeable) break;
15821
+ } else Mt = bt();
15822
15822
  }, Vi = he.textAnchorOffsetStartIndex, Xi = he.textAnchorOffsetEndIndex;
15823
15823
  if (Xi === Vi) {
15824
15824
  const bt = (gt, Vt) => {
@@ -15828,18 +15828,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15828
15828
  mr((() => bt(ci, h.ax.horizontal)), (() => {
15829
15829
  const gt = Ee.verticalTextBox;
15830
15830
  return c.allowVerticalPlacement && he.numVerticalGlyphVertices > 0 && gt ? bt(gt, h.ax.vertical) : { box: null, offscreen: null };
15831
- })), fr(It?.placeable);
15831
+ })), fr(Mt?.placeable);
15832
15832
  } else {
15833
15833
  let bt = h.aM[(kt = (st = this.prevPlacement) === null || st === void 0 ? void 0 : st.variableOffsets[he.crossTileID]) === null || kt === void 0 ? void 0 : kt.anchor];
15834
- const gt = (wt, In, oa) => {
15835
- const Mr = wt.x2 - wt.x1, Ol = wt.y2 - wt.y1, pu = he.textBoxScale, Vl = q && X === "never" ? In : null;
15834
+ const gt = (wt, Mn, oa) => {
15835
+ const Ir = wt.x2 - wt.x1, Ol = wt.y2 - wt.y1, pu = he.textBoxScale, Vl = q && X === "never" ? Mn : null;
15836
15836
  let Hr = null, Xr = N === "never" ? 1 : 2, Yr = "never";
15837
15837
  bt && Xr++;
15838
15838
  for (let jl = 0; jl < Xr; jl++) {
15839
15839
  for (let Nl = Vi; Nl < Xi; Nl++) {
15840
15840
  const aa = c.textAnchorOffsets.get(Nl);
15841
15841
  if (bt && aa.textAnchor !== bt) continue;
15842
- const la = this.attemptAnchorPlacement(aa, wt, Mr, Ol, pu, U, H, P, ge, w, B, Yr, he, c, oa, y, x, Vl, pe);
15842
+ const la = this.attemptAnchorPlacement(aa, wt, Ir, Ol, pu, U, H, P, ge, w, B, Yr, he, c, oa, y, x, Vl, pe);
15843
15843
  if (la && (Hr = la.placedGlyphBoxes, Hr?.placeable)) return ut = !0, ai = la.shift, Hr;
15844
15844
  }
15845
15845
  bt ? bt = null : Yr = N;
@@ -15848,16 +15848,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15848
15848
  };
15849
15849
  mr((() => gt(ci, Ee.iconBox, h.ax.horizontal)), (() => {
15850
15850
  const wt = Ee.verticalTextBox;
15851
- return c.allowVerticalPlacement && !It?.placeable && he.numVerticalGlyphVertices > 0 && wt ? gt(wt, Ee.verticalIconBox, h.ax.vertical) : { box: null, occluded: !0, offscreen: null };
15852
- })), It && (ut = It.placeable, Ot = It.offscreen);
15853
- const Vt = fr(It?.placeable);
15851
+ return c.allowVerticalPlacement && !Mt?.placeable && he.numVerticalGlyphVertices > 0 && wt ? gt(wt, Ee.verticalIconBox, h.ax.vertical) : { box: null, occluded: !0, offscreen: null };
15852
+ })), Mt && (ut = Mt.placeable, Ot = Mt.offscreen);
15853
+ const Vt = fr(Mt?.placeable);
15854
15854
  if (!ut && this.prevPlacement) {
15855
15855
  const wt = this.prevPlacement.variableOffsets[he.crossTileID];
15856
15856
  wt && (this.variableOffsets[he.crossTileID] = wt, this.markUsedJustification(c, wt.anchor, he, Vt));
15857
15857
  }
15858
15858
  }
15859
15859
  }
15860
- if (ii = It, ut = ii?.placeable, Ot = ii?.offscreen, he.useRuntimeCollisionCircles && he.centerJustifiedTextSymbolIndex >= 0) {
15860
+ if (ii = Mt, ut = ii?.placeable, Ot = ii?.offscreen, he.useRuntimeCollisionCircles && he.centerJustifiedTextSymbolIndex >= 0) {
15861
15861
  const fr = c.text.placedSymbolArray.get(he.centerJustifiedTextSymbolIndex), mr = h.ay(c.textSizeData, z, fr), Vi = f.get("text-padding");
15862
15862
  qt = this.collisionIndex.placeCollisionCircles(N, fr, c.lineVertexArray, c.glyphOffsetArray, mr, w, S, a, H, B.predicate, he.collisionCircleDiameter, Vi, y, pe), qt.circles.length && qt.collisionDetected && !a && h.w("Collisions detected, but collision boxes are not shown"), ut = Z || qt.circles.length > 0 && !qt.collisionDetected, Ot && (Ot = qt.offscreen);
15863
15863
  }
@@ -15890,7 +15890,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15890
15890
  if (y) {
15891
15891
  let x = this.collisionCircleArrays[t];
15892
15892
  x === void 0 && (x = this.collisionCircleArrays[t] = []);
15893
- for (let w = 0; w < y.circles.length; w += 4) x.push(y.circles[w + 0] - Mt), x.push(y.circles[w + 1] - Mt), x.push(y.circles[w + 2]), x.push(y.collisionDetected ? 1 : 0);
15893
+ for (let w = 0; w < y.circles.length; w += 4) x.push(y.circles[w + 0] - It), x.push(y.circles[w + 1] - It), x.push(y.circles[w + 2]), x.push(y.collisionDetected ? 1 : 0);
15894
15894
  }
15895
15895
  }
15896
15896
  markUsedJustification(t, n, a, c) {
@@ -16008,7 +16008,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16008
16008
  }
16009
16009
  function $a(d, t, n, a, c, f) {
16010
16010
  a && a.length !== 0 || (a = [0, 0, 0, 0]);
16011
- const y = a[0] - Mt, x = a[1] - Mt, w = a[2] - Mt, S = a[3] - Mt;
16011
+ const y = a[0] - It, x = a[1] - It, w = a[2] - It, S = a[3] - It;
16012
16012
  d.emplaceBack(t ? 1 : 0, n ? 1 : 0, c || 0, f || 0, y, x), d.emplaceBack(t ? 1 : 0, n ? 1 : 0, c || 0, f || 0, w, x), d.emplaceBack(t ? 1 : 0, n ? 1 : 0, c || 0, f || 0, w, S), d.emplaceBack(t ? 1 : 0, n ? 1 : 0, c || 0, f || 0, y, S);
16013
16013
  }
16014
16014
  const qa = Math.pow(2, 25), Wa = Math.pow(2, 24), Gu = Math.pow(2, 17), Cs = Math.pow(2, 16), To = Math.pow(2, 9), vc = Math.pow(2, 8), Un = Math.pow(2, 1);
@@ -18311,16 +18311,16 @@ uniform ${P} ${E} u_${C};
18311
18311
  return a === n ? 2 : a === 0 ? 0 : 1;
18312
18312
  }
18313
18313
  }
18314
- function Mo(d, t, n) {
18314
+ function Io(d, t, n) {
18315
18315
  const a = d - t;
18316
18316
  return a < 0 ? -a : Math.max(0, a - n);
18317
18317
  }
18318
18318
  function el(d, t, n, a, c) {
18319
18319
  const f = d - n;
18320
18320
  let y;
18321
- return y = f < 0 ? Math.min(-f, 1 + f - c) : f > c ? Math.min(Math.max(f - c, 0), 1 - f) : 0, Math.max(y, Mo(t, a, c));
18321
+ return y = f < 0 ? Math.min(-f, 1 + f - c) : f > c ? Math.min(Math.max(f - c, 0), 1 - f) : 0, Math.max(y, Io(t, a, c));
18322
18322
  }
18323
- class Io {
18323
+ class Mo {
18324
18324
  constructor() {
18325
18325
  this._boundingVolumeCache = new $u(this._computeTileBoundingVolume);
18326
18326
  }
@@ -18333,11 +18333,11 @@ uniform ${P} ${E} u_${C};
18333
18333
  return S = Math.min(S, el(t, n, x, w, y)), S = Math.min(S, el(t, n, x + 0.5, -w - y, y)), S = Math.min(S, el(t, n, x + 0.5, 2 - w - y, y)), S;
18334
18334
  }
18335
18335
  getWrap(t, n, a) {
18336
- const c = 1 << n.z, f = 1 / c, y = n.x / c, x = Mo(t.x, y, f), w = Mo(t.x, y - 1, f), S = Mo(t.x, y + 1, f), P = Math.min(x, w, S);
18336
+ const c = 1 << n.z, f = 1 / c, y = n.x / c, x = Io(t.x, y, f), w = Io(t.x, y - 1, f), S = Io(t.x, y + 1, f), P = Math.min(x, w, S);
18337
18337
  return P === S ? 1 : P === w ? -1 : 0;
18338
18338
  }
18339
18339
  allowVariableZoom(t, n) {
18340
- return Ii(t, n) > 4;
18340
+ return Mi(t, n) > 4;
18341
18341
  }
18342
18342
  allowWorldCopies() {
18343
18343
  return !1;
@@ -18575,7 +18575,7 @@ uniform ${P} ${E} u_${C};
18575
18575
  this._cachedClippingPlane = h.bE(), this._projectionMatrix = h.bi(), this._globeViewProjMatrix32f = h.bh(), this._globeViewProjMatrixNoCorrection = h.bi(), this._globeViewProjMatrixNoCorrectionInverted = h.bi(), this._globeProjMatrixInverted = h.bi(), this._cameraPosition = h.bz(), this._globeLatitudeErrorCorrectionRadians = 0, this.defaultConstrain = (n, a) => {
18576
18576
  const c = h.al(n.lat, -h.am, h.am), f = h.al(+a, this.minZoom + Ut(0, c), this.maxZoom);
18577
18577
  return { center: new h.W(n.lng, c), zoom: f };
18578
- }, this.applyConstrain = (n, a) => this._helper.applyConstrain(n, a), this._helper = new un({ calcMatrices: () => this._calcMatrices(), defaultConstrain: (n, a) => this.defaultConstrain(n, a) }, t), this._coveringTilesDetailsProvider = new Io();
18578
+ }, this.applyConstrain = (n, a) => this._helper.applyConstrain(n, a), this._helper = new un({ calcMatrices: () => this._calcMatrices(), defaultConstrain: (n, a) => this.defaultConstrain(n, a) }, t), this._coveringTilesDetailsProvider = new Mo();
18579
18579
  }
18580
18580
  clone() {
18581
18581
  const t = new mn();
@@ -20118,7 +20118,7 @@ uniform ${P} ${E} u_${C};
20118
20118
  c.properties.get("anchor") === "viewport" && h.c5(x, d.transform.bearingInRadians), h.c6(y, y, x);
20119
20119
  const w = d.transform.transformLightDirection(y), S = c.properties.get("color");
20120
20120
  return { u_lightpos: y, u_lightpos_globe: w, u_lightintensity: c.properties.get("intensity"), u_lightcolor: [S.r, S.g, S.b], u_vertical_gradient: +t, u_opacity: n, u_fill_translate: a };
20121
- }, Mc = (d, t, n, a, c, f, y) => h.e(Pc(d, t, n, a), il(f, d, y), { u_height_factor: -Math.pow(2, c.overscaledZ) / y.tileSize / 8 }), Do = (d, t, n, a) => h.e(il(t, d, n), { u_fill_translate: a }), Ic = (d, t) => ({ u_world: d, u_fill_translate: t }), Ec = (d, t, n, a, c) => h.e(Do(d, t, n, c), { u_world: a }), Cc = (d, t, n, a, c) => {
20121
+ }, Ic = (d, t, n, a, c, f, y) => h.e(Pc(d, t, n, a), il(f, d, y), { u_height_factor: -Math.pow(2, c.overscaledZ) / y.tileSize / 8 }), Do = (d, t, n, a) => h.e(il(t, d, n), { u_fill_translate: a }), Mc = (d, t) => ({ u_world: d, u_fill_translate: t }), Ec = (d, t, n, a, c) => h.e(Do(d, t, n, c), { u_world: a }), Cc = (d, t, n, a, c) => {
20122
20122
  const f = d.transform;
20123
20123
  let y, x, w = 0;
20124
20124
  if (n.paint.get("circle-pitch-alignment") === "map") {
@@ -20764,7 +20764,7 @@ uniform ${P} ${E} u_${C};
20764
20764
  if (!Ee) continue;
20765
20765
  const ke = c ? Ee.text : Ee.icon;
20766
20766
  if (!ke?.segments.get().length || !ke.hasVisibleVertices) continue;
20767
- const st = ke.programConfigurations.get(n.id), kt = c || Ee.sdfIcons, ut = c ? Ee.textSizeData : Ee.iconSizeData, Lt = X || N.pitch !== 0, Ot = d.useProgram(oh(kt, c, Ee), st), ai = h.aw(ut, N.zoom), It = (z = d.style.map.terrain) === null || z === void 0 ? void 0 : z.getTerrainData(we);
20767
+ const st = ke.programConfigurations.get(n.id), kt = c || Ee.sdfIcons, ut = c ? Ee.textSizeData : Ee.iconSizeData, Lt = X || N.pitch !== 0, Ot = d.useProgram(oh(kt, c, Ee), st), ai = h.aw(ut, N.zoom), Mt = (z = d.style.map.terrain) === null || z === void 0 ? void 0 : z.getTerrainData(we);
20768
20768
  let xi, ii, qt, li, Zr = [0, 0], $r = null;
20769
20769
  if (c) ii = he.glyphAtlasTexture, qt = G.LINEAR, xi = he.glyphAtlasTexture.size, Ee.iconsInText && (Zr = he.imageAtlasTexture.size, $r = he.imageAtlasTexture, li = Lt || d.options.rotating || d.options.zooming || ut.kind === "composite" || ut.kind === "camera" ? G.LINEAR : G.NEAREST);
20770
20770
  else {
@@ -20775,8 +20775,8 @@ uniform ${P} ${E} u_${C};
20775
20775
  if ($) {
20776
20776
  const wt = h.O();
20777
20777
  Ne(wt, ci);
20778
- const In = d.style.map.terrain ? (Mr, Ol) => d.style.map.terrain.getElevation(we, Mr, Ol) : null, oa = n.layout.get("text-rotation-alignment") === "map";
20779
- vo(Ee, d, c, ci, wt, X, S, oa, we.toUnwrapped(), N.width, N.height, Wr, In);
20778
+ const Mn = d.style.map.terrain ? (Ir, Ol) => d.style.map.terrain.getElevation(we, Ir, Ol) : null, oa = n.layout.get("text-rotation-alignment") === "map";
20779
+ vo(Ee, d, c, ci, wt, X, S, oa, we.toUnwrapped(), N.width, N.height, Wr, Mn);
20780
20780
  }
20781
20781
  const Vi = c && oe || mr, Xi = $ || Vi ? rs : X ? ci : d.transform.clipSpaceToPixelsMatrix, bt = kt && n.paint.get(c ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
20782
20782
  let gt;
@@ -20785,8 +20785,8 @@ uniform ${P} ${E} u_${C};
20785
20785
  if (H && Ee.canOverlap) {
20786
20786
  q = !0;
20787
20787
  const wt = ke.segments.get();
20788
- for (const In of wt) ae.push({ segments: new h.aV([In]), sortKey: In.sortKey, state: Vt, terrainData: It });
20789
- } else ae.push({ segments: ke.segments, sortKey: 0, state: Vt, terrainData: It });
20788
+ for (const Mn of wt) ae.push({ segments: new h.aV([Mn]), sortKey: Mn.sortKey, state: Vt, terrainData: Mt });
20789
+ } else ae.push({ segments: ke.segments, sortKey: 0, state: Vt, terrainData: Mt });
20790
20790
  }
20791
20791
  q && ae.sort(((we, he) => we.sortKey - he.sortKey));
20792
20792
  const pe = (B = n.paint.get(c ? "text-halo-width" : "icon-halo-width").constantOr(null)) !== null && B !== void 0 ? B : 1 / 0, Ae = n.layout.get("text-letter-spacing").constantOr(0) * h.aJ < 0 || pe > 1;
@@ -20887,7 +20887,7 @@ uniform ${P} ${E} u_${C};
20887
20887
  if (y) {
20888
20888
  N = oe.indexBuffer2, Z = oe.segments2;
20889
20889
  const Ee = [S.drawingBufferWidth, S.drawingBufferHeight];
20890
- G = V === "fillOutlinePattern" && C ? Ec(d, z, ee, Ee, we) : Ic(Ee, we);
20890
+ G = V === "fillOutlinePattern" && C ? Ec(d, z, ee, Ee, we) : Mc(Ee, we);
20891
20891
  } else N = oe.indexBuffer, Z = oe.segments, G = C ? Do(d, z, ee, we) : { u_fill_translate: we };
20892
20892
  const he = d.stencilModeForClipping(q);
20893
20893
  ge.draw(d.context, B, c, he, f, Je.backCCW, G, pe, Ae, n.id, oe.layoutVertexBuffer, N, Z, n.paint, d.transform.zoom, ae);
@@ -20903,7 +20903,7 @@ uniform ${P} ${E} u_${C};
20903
20903
  z && (d.context.activeTexture.set(P.TEXTURE0), X.imageAtlasTexture.bind(P.LINEAR, P.CLAMP_TO_EDGE), H.updatePaintBuffers(B));
20904
20904
  const ee = N.getProjectionData({ overscaledTileID: Z, applyGlobeMatrix: !x, applyTerrainMatrix: !0 });
20905
20905
  Ai(H, E, G, X, n);
20906
- const oe = h.aL(N, X, n.paint.get("fill-extrusion-translate"), n.paint.get("fill-extrusion-translate-anchor")), ae = n.paint.get("fill-extrusion-vertical-gradient"), ge = z ? Mc(d, ae, V, oe, Z, B, X) : Pc(d, ae, V, oe);
20906
+ const oe = h.aL(N, X, n.paint.get("fill-extrusion-translate"), n.paint.get("fill-extrusion-translate-anchor")), ae = n.paint.get("fill-extrusion-vertical-gradient"), ge = z ? Ic(d, ae, V, oe, Z, B, X) : Pc(d, ae, V, oe);
20907
20907
  q.draw(S, S.gl.TRIANGLES, c, f, y, Je.backCCW, ge, U, ee, n.id, $.layoutVertexBuffer, $.indexBuffer, $.segments, n.paint, d.transform.zoom, H, d.style.map.terrain && $.centroidVertexBuffer);
20908
20908
  }
20909
20909
  }
@@ -22097,7 +22097,7 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
22097
22097
  function Xo(d, t, n) {
22098
22098
  for (let a = 0; a < d.length; a++) if (d[a].identifier === n) return t[a];
22099
22099
  }
22100
- function Ml(d, t) {
22100
+ function Il(d, t) {
22101
22101
  return Math.log(d / t) / Math.LN2;
22102
22102
  }
22103
22103
  class ou extends Pl {
@@ -22118,10 +22118,10 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
22118
22118
  }
22119
22119
  _move(t, n) {
22120
22120
  const a = this._distance;
22121
- if (this._distance = t[0].dist(t[1]), this._active || !(Math.abs(Ml(this._distance, this._startDistance)) < this._zoomThreshold)) return this._active = !0, { zoomDelta: Ml(this._distance, a) * this._zoomRate, pinchAround: n };
22121
+ if (this._distance = t[0].dist(t[1]), this._active || !(Math.abs(Il(this._distance, this._startDistance)) < this._zoomThreshold)) return this._active = !0, { zoomDelta: Il(this._distance, a) * this._zoomRate, pinchAround: n };
22122
22122
  }
22123
22123
  }
22124
- function Il(d, t) {
22124
+ function Ml(d, t) {
22125
22125
  return 180 * d.angleWith(t) / Math.PI;
22126
22126
  }
22127
22127
  class au extends Pl {
@@ -22133,11 +22133,11 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
22133
22133
  }
22134
22134
  _move(t, n, a) {
22135
22135
  const c = this._vector;
22136
- if (this._vector = t[0].sub(t[1]), this._active || !this._isBelowThreshold(this._vector)) return this._active = !0, { bearingDelta: Il(this._vector, c), pinchAround: n };
22136
+ if (this._vector = t[0].sub(t[1]), this._active || !this._isBelowThreshold(this._vector)) return this._active = !0, { bearingDelta: Ml(this._vector, c), pinchAround: n };
22137
22137
  }
22138
22138
  _isBelowThreshold(t) {
22139
22139
  this._minDiameter = Math.min(this._minDiameter, t.mag());
22140
- const n = 25 / (Math.PI * this._minDiameter) * 360, a = Il(t, this._startVector);
22140
+ const n = 25 / (Math.PI * this._minDiameter) * 360, a = Ml(t, this._startVector);
22141
22141
  return Math.abs(a) < n;
22142
22142
  }
22143
22143
  }
@@ -24288,10 +24288,10 @@ ${x.shaderPreludeCode.vertexSource}`, define: x.shaderDefine }, defaultProjectio
24288
24288
  const a = n?.maxWidth || 100, c = d._container.clientHeight / 2, f = d._container.clientWidth / 2, y = d.unproject([f - a / 2, c]), x = d.unproject([f + a / 2, c]), w = Math.round(d.project(x).x - d.project(y).x), S = Math.min(a, w, d._container.clientWidth), P = y.distanceTo(x);
24289
24289
  if (n?.unit === "imperial") {
24290
24290
  const E = 3.2808 * P;
24291
- E > 5280 ? Mn(t, S, E / 5280, d._getUIString("ScaleControl.Miles")) : Mn(t, S, E, d._getUIString("ScaleControl.Feet"));
24292
- } else n?.unit === "nautical" ? Mn(t, S, P / 1852, d._getUIString("ScaleControl.NauticalMiles")) : P >= 1e3 ? Mn(t, S, P / 1e3, d._getUIString("ScaleControl.Kilometers")) : Mn(t, S, P, d._getUIString("ScaleControl.Meters"));
24291
+ E > 5280 ? In(t, S, E / 5280, d._getUIString("ScaleControl.Miles")) : In(t, S, E, d._getUIString("ScaleControl.Feet"));
24292
+ } else n?.unit === "nautical" ? In(t, S, P / 1852, d._getUIString("ScaleControl.NauticalMiles")) : P >= 1e3 ? In(t, S, P / 1e3, d._getUIString("ScaleControl.Kilometers")) : In(t, S, P, d._getUIString("ScaleControl.Meters"));
24293
24293
  }
24294
- function Mn(d, t, n, a) {
24294
+ function In(d, t, n, a) {
24295
24295
  const c = (function(f) {
24296
24296
  const y = Math.pow(10, `${Math.floor(f)}`.length - 1);
24297
24297
  let x = f / y;
@@ -24749,14 +24749,14 @@ function ac(Pe) {
24749
24749
  function Sy(Pe, Q, me) {
24750
24750
  if (!Pe || !Pe.style || !Pe.style._loaded)
24751
24751
  return;
24752
- const Ie = Ed(me, Boolean);
24752
+ const Me = Ed(me, Boolean);
24753
24753
  if (Q !== me) {
24754
- const R = Ed(Q, Boolean), h = new Set(R.map((ct) => ac(ct))), de = new Set(Ie.map((ct) => ac(ct)));
24754
+ const R = Ed(Q, Boolean), h = new Set(R.map((ct) => ac(ct))), de = new Set(Me.map((ct) => ac(ct)));
24755
24755
  for (const ct of h)
24756
24756
  de.has(ct) || Pe.getLayer(ct) && Pe.removeLayer(ct);
24757
24757
  }
24758
24758
  const Te = {};
24759
- for (const R of Ie) {
24759
+ for (const R of Me) {
24760
24760
  const h = ac(R), de = Pe.getLayer(h);
24761
24761
  if (de) {
24762
24762
  const ct = de.implementation || de;
@@ -24779,11 +24779,11 @@ function Sy(Pe, Q, me) {
24779
24779
  }
24780
24780
  }
24781
24781
  }
24782
- const Ra = "mapbox", Md = 512, Py = Math.PI / 180;
24783
- function My({ map: Pe, deck: Q }) {
24782
+ const Ra = "mapbox", Id = 512, Py = Math.PI / 180;
24783
+ function Iy({ map: Pe, deck: Q }) {
24784
24784
  if (Pe.__deck)
24785
24785
  return Pe.__deck;
24786
- const me = Q.props._customRender, Ie = Q.props.onLoad, Te = {
24786
+ const me = Q.props._customRender, Me = Q.props.onLoad, Te = {
24787
24787
  ...Q.props,
24788
24788
  _customRender: () => {
24789
24789
  Pe.triggerRepaint(), me?.("");
@@ -24795,7 +24795,7 @@ function My({ map: Pe, deck: Q }) {
24795
24795
  touchAction: "unset",
24796
24796
  viewState: lc(Pe)
24797
24797
  }), Q.isInitialized ? nm(Q, Pe) : Te.onLoad = () => {
24798
- Ie?.(), nm(Q, Pe);
24798
+ Me?.(), nm(Q, Pe);
24799
24799
  }, Q.setProps(Te), Pe.__deck = Q, Pe.on("render", () => {
24800
24800
  Q.isInitialized && Ay(Q, Pe);
24801
24801
  }), Q;
@@ -24806,10 +24806,10 @@ function nm(Pe, Q) {
24806
24806
  };
24807
24807
  Q.on("move", me);
24808
24808
  }
24809
- function Iy(Pe) {
24809
+ function My(Pe) {
24810
24810
  Pe.__deck?.finalize(), Pe.__deck = null;
24811
24811
  }
24812
- function Id(Pe, Q) {
24812
+ function Md(Pe, Q) {
24813
24813
  return Q ? {
24814
24814
  depthWriteEnabled: !0,
24815
24815
  depthCompare: "less-equal",
@@ -24823,11 +24823,11 @@ function Id(Pe, Q) {
24823
24823
  blendAlphaOperation: "add"
24824
24824
  } : {};
24825
24825
  }
24826
- function Ey(Pe, Q, me, Ie) {
24826
+ function Ey(Pe, Q, me, Me) {
24827
24827
  if (!Pe.isInitialized)
24828
24828
  return;
24829
24829
  let { currentViewport: Te } = Pe.userData, Le = !1;
24830
- Te || (Te = cm(Pe, Q, Ie), Pe.userData.currentViewport = Te, Le = !0), Te && Pe._drawLayers("mapbox-repaint", {
24830
+ Te || (Te = cm(Pe, Q, Me), Pe.userData.currentViewport = Te, Le = !0), Te && Pe._drawLayers("mapbox-repaint", {
24831
24831
  viewports: [Te],
24832
24832
  layerFilter: (R) => {
24833
24833
  if (Pe.props.layerFilter && !Pe.props.layerFilter(R))
@@ -24855,7 +24855,7 @@ function Nu(Pe) {
24855
24855
  return lm(Pe) === "globe" ? new om({ id: Ra }) : new dy({ id: Ra });
24856
24856
  }
24857
24857
  function lc(Pe) {
24858
- const { lng: Q, lat: me } = Pe.getCenter(), Ie = {
24858
+ const { lng: Q, lat: me } = Pe.getCenter(), Me = {
24859
24859
  // Longitude returned by getCenter can be outside of [-180, 180] when zooming near the anti meridian
24860
24860
  // https://github.com/visgl/deck.gl/issues/6894
24861
24861
  longitude: (Q + 540) % 360 - 180,
@@ -24866,14 +24866,14 @@ function lc(Pe) {
24866
24866
  padding: Pe.getPadding(),
24867
24867
  repeat: Pe.getRenderWorldCopies()
24868
24868
  };
24869
- return Pe.getTerrain?.() && Cy(Pe, Ie), Ie;
24869
+ return Pe.getTerrain?.() && Cy(Pe, Me), Me;
24870
24870
  }
24871
24871
  function Cy(Pe, Q) {
24872
24872
  if (Pe.getFreeCameraOptions) {
24873
24873
  const { position: me } = Pe.getFreeCameraOptions();
24874
24874
  if (!me || me.z === void 0)
24875
24875
  return;
24876
- const Ie = Pe.transform.height, { longitude: Te, latitude: Le, pitch: R } = Q, h = me.x * Md, de = (1 - me.y) * Md, ct = me.z * Md, Bt = py([Te, Le]), fi = h - Bt[0], Qi = de - Bt[1], At = Math.sqrt(fi * fi + Qi * Qi), si = R * Py, Xe = 1.5 * Ie, cr = si < 1e-3 ? (
24876
+ const Me = Pe.transform.height, { longitude: Te, latitude: Le, pitch: R } = Q, h = me.x * Id, de = (1 - me.y) * Id, ct = me.z * Id, Bt = py([Te, Le]), fi = h - Bt[0], Qi = de - Bt[1], At = Math.sqrt(fi * fi + Qi * Qi), si = R * Py, Xe = 1.5 * Me, cr = si < 1e-3 ? (
24877
24877
  // Pitch angle too small to deduce the look at point, assume elevation is 0
24878
24878
  Xe * Math.cos(si) / ct
24879
24879
  ) : Xe * Math.sin(si) / At;
@@ -24883,20 +24883,20 @@ function Cy(Pe, Q) {
24883
24883
  } else typeof Pe.transform.elevation == "number" && (Q.position = [0, 0, Pe.transform.elevation]);
24884
24884
  }
24885
24885
  function cm(Pe, Q, me) {
24886
- const Ie = lc(Q), Te = Pe.getView(Ra) || Nu(Q);
24886
+ const Me = lc(Q), Te = Pe.getView(Ra) || Nu(Q);
24887
24887
  me && (Te.props.nearZMultiplier = 0.2);
24888
24888
  const Le = me?.nearZ ?? Q.transform._nearZ, R = me?.farZ ?? Q.transform._farZ;
24889
- return Number.isFinite(Le) && (Ie.nearZ = Le / Q.transform.height, Ie.farZ = R / Q.transform.height), Te.makeViewport({
24889
+ return Number.isFinite(Le) && (Me.nearZ = Le / Q.transform.height, Me.farZ = R / Q.transform.height), Te.makeViewport({
24890
24890
  width: Pe.width,
24891
24891
  height: Pe.height,
24892
- viewState: Ie
24892
+ viewState: Me
24893
24893
  });
24894
24894
  }
24895
24895
  function Ay(Pe, Q) {
24896
- const Ie = Ed(Pe.props.layers, Boolean).some((h) => h && !Q.getLayer(ac(h)));
24896
+ const Me = Ed(Pe.props.layers, Boolean).some((h) => h && !Q.getLayer(ac(h)));
24897
24897
  let Te = Pe.getViewports();
24898
24898
  const Le = Te.findIndex((h) => h.id === Ra), R = Te.length > 1 || Le < 0;
24899
- if (Ie || R) {
24899
+ if (Me || R) {
24900
24900
  if (Le >= 0) {
24901
24901
  Te = Te.slice();
24902
24902
  const h = cm(Pe, Q);
@@ -24926,36 +24926,36 @@ class zy {
24926
24926
  lm(this._map) && this._deck?.setProps({ views: this._getViews(this._map) });
24927
24927
  }, this._updateContainerSize = () => {
24928
24928
  if (this._map && this._container) {
24929
- const { clientWidth: Ie, clientHeight: Te } = this._map.getContainer();
24929
+ const { clientWidth: Me, clientHeight: Te } = this._map.getContainer();
24930
24930
  Object.assign(this._container.style, {
24931
- width: `${Ie}px`,
24931
+ width: `${Me}px`,
24932
24932
  height: `${Te}px`
24933
24933
  });
24934
24934
  }
24935
24935
  }, this._updateViewState = () => {
24936
- const Ie = this._deck, Te = this._map;
24937
- Ie && Te && (Ie.setProps({
24936
+ const Me = this._deck, Te = this._map;
24937
+ Me && Te && (Me.setProps({
24938
24938
  views: this._getViews(Te),
24939
24939
  viewState: lc(Te)
24940
- }), Ie.isInitialized && Ie.redraw());
24941
- }, this._handleMouseEvent = (Ie) => {
24940
+ }), Me.isInitialized && Me.redraw());
24941
+ }, this._handleMouseEvent = (Me) => {
24942
24942
  const Te = this._deck;
24943
24943
  if (!Te || !Te.isInitialized)
24944
24944
  return;
24945
24945
  const Le = {
24946
- type: Ie.type,
24947
- offsetCenter: Ie.point,
24948
- srcEvent: Ie
24946
+ type: Me.type,
24947
+ offsetCenter: Me.point,
24948
+ srcEvent: Me
24949
24949
  }, R = this._lastMouseDownPoint;
24950
- switch (!Ie.point && R && (Le.deltaX = Ie.originalEvent.clientX - R.clientX, Le.deltaY = Ie.originalEvent.clientY - R.clientY, Le.offsetCenter = {
24950
+ switch (!Me.point && R && (Le.deltaX = Me.originalEvent.clientX - R.clientX, Le.deltaY = Me.originalEvent.clientY - R.clientY, Le.offsetCenter = {
24951
24951
  x: R.x + Le.deltaX,
24952
24952
  y: R.y + Le.deltaY
24953
24953
  }), Le.type) {
24954
24954
  case "mousedown":
24955
24955
  Te._onPointerDown(Le), this._lastMouseDownPoint = {
24956
- ...Ie.point,
24957
- clientX: Ie.originalEvent.clientX,
24958
- clientY: Ie.originalEvent.clientY
24956
+ ...Me.point,
24957
+ clientX: Me.originalEvent.clientX,
24958
+ clientY: Me.originalEvent.clientY
24959
24959
  };
24960
24960
  break;
24961
24961
  case "dragstart":
@@ -24988,8 +24988,8 @@ class zy {
24988
24988
  }
24989
24989
  /** Filter out props to pass to Deck **/
24990
24990
  filterProps(Q) {
24991
- const { interleaved: me = !1, useDevicePixels: Ie, ...Te } = Q;
24992
- return !me && Ie !== void 0 && (Te.useDevicePixels = Ie), Te;
24991
+ const { interleaved: me = !1, useDevicePixels: Me, ...Te } = Q;
24992
+ return !me && Me !== void 0 && (Te.useDevicePixels = Me), Te;
24993
24993
  }
24994
24994
  /** Update (partial) props of the underlying Deck instance. */
24995
24995
  setProps(Q) {
@@ -24997,7 +24997,7 @@ class zy {
24997
24997
  ...this._props,
24998
24998
  views: this._getViews(this._map),
24999
24999
  parameters: {
25000
- ...Id(this._map, this._interleaved),
25000
+ ...Md(this._map, this._interleaved),
25001
25001
  ...this._props.parameters
25002
25002
  }
25003
25003
  });
@@ -25019,25 +25019,25 @@ class zy {
25019
25019
  }), this._container = me, this._deck = new Qf({
25020
25020
  ...this._props,
25021
25021
  parent: me,
25022
- parameters: { ...Id(Q, !1), ...this._props.parameters },
25022
+ parameters: { ...Md(Q, !1), ...this._props.parameters },
25023
25023
  views: this._getViews(Q),
25024
25024
  viewState: lc(Q)
25025
25025
  }), Q.on("resize", this._updateContainerSize), Q.on("render", this._updateViewState), Q.on("mousedown", this._handleMouseEvent), Q.on("dragstart", this._handleMouseEvent), Q.on("drag", this._handleMouseEvent), Q.on("dragend", this._handleMouseEvent), Q.on("mousemove", this._handleMouseEvent), Q.on("mouseout", this._handleMouseEvent), Q.on("click", this._handleMouseEvent), Q.on("dblclick", this._handleMouseEvent), this._updateContainerSize(), me;
25026
25026
  }
25027
25027
  _onAddInterleaved(Q) {
25028
25028
  const me = Q.painter.context.gl;
25029
- return me instanceof WebGLRenderingContext && my.warn("Incompatible basemap library. See: https://deck.gl/docs/api-reference/mapbox/overview#compatibility")(), this._deck = My({
25029
+ return me instanceof WebGLRenderingContext && my.warn("Incompatible basemap library. See: https://deck.gl/docs/api-reference/mapbox/overview#compatibility")(), this._deck = Iy({
25030
25030
  map: Q,
25031
25031
  deck: new Qf({
25032
25032
  ...this._props,
25033
25033
  views: this._getViews(Q),
25034
25034
  gl: me,
25035
- parameters: { ...Id(Q, !0), ...this._props.parameters }
25035
+ parameters: { ...Md(Q, !0), ...this._props.parameters }
25036
25036
  })
25037
25037
  }), Q.on("styledata", this._handleStyleChange), this._resolveLayers(Q, this._deck, [], this._props.layers), document.createElement("div");
25038
25038
  }
25039
- _resolveLayers(Q, me, Ie, Te) {
25040
- Sy(Q, Ie, Te);
25039
+ _resolveLayers(Q, me, Me, Te) {
25040
+ Sy(Q, Me, Te);
25041
25041
  }
25042
25042
  /** Called when the control is removed from a map */
25043
25043
  onRemove() {
@@ -25048,7 +25048,7 @@ class zy {
25048
25048
  Q.off("resize", this._updateContainerSize), Q.off("render", this._updateViewState), Q.off("mousedown", this._handleMouseEvent), Q.off("dragstart", this._handleMouseEvent), Q.off("drag", this._handleMouseEvent), Q.off("dragend", this._handleMouseEvent), Q.off("mousemove", this._handleMouseEvent), Q.off("mouseout", this._handleMouseEvent), Q.off("click", this._handleMouseEvent), Q.off("dblclick", this._handleMouseEvent), this._deck?.finalize();
25049
25049
  }
25050
25050
  _onRemoveInterleaved(Q) {
25051
- Q.off("styledata", this._handleStyleChange), this._resolveLayers(Q, this._deck, this._props.layers, []), Iy(Q);
25051
+ Q.off("styledata", this._handleStyleChange), this._resolveLayers(Q, this._deck, this._props.layers, []), My(Q);
25052
25052
  }
25053
25053
  getDefaultPosition() {
25054
25054
  return "top-left";
@@ -25105,27 +25105,46 @@ class Ry {
25105
25105
  */
25106
25106
  initialized = !1;
25107
25107
  loadCallbacks = [];
25108
- constructor(Q, me, Ie, Te, Le = !0, R) {
25108
+ constructor(Q, me, Me, Te, Le = !0, R, h = !1) {
25109
25109
  this.showAttribution = Le, this.attributionHost = R, this.map = new rm.Map({
25110
25110
  container: Q,
25111
25111
  style: me.style,
25112
- center: [Ie.longitude, Ie.latitude],
25113
- zoom: Ie.zoom,
25114
- pitch: Ie.pitch ?? 0,
25115
- bearing: Ie.bearing ?? 0,
25112
+ // Determinism switch (issue #37 follow-up): label/symbol fades are
25113
+ // MapLibre's own wall-clock animation — a warm page reaches a frame
25114
+ // with whatever label opacity its playback HISTORY left, so the same
25115
+ // frame differed across orderings (measured: the entire diff was the
25116
+ // label layer). fadeDuration 0 makes label appearance a pure function
25117
+ // of the camera.
25118
+ fadeDuration: h ? 0 : void 0,
25119
+ center: [Me.longitude, Me.latitude],
25120
+ zoom: Me.zoom,
25121
+ pitch: Me.pitch ?? 0,
25122
+ bearing: Me.bearing ?? 0,
25116
25123
  // MapLibre's default control is replaced by our own below so preset-
25117
25124
  // level attribution overrides survive style swaps deterministically.
25118
25125
  attributionControl: !1
25119
- }), this.mountAttribution(me.attribution), this.map.once("load", () => this.markInitialized()), this.map.on("error", (h) => {
25120
- this.initialized || (console.error("[onlymapjs] basemap error before load — settling readiness:", h?.error ?? h), this.markInitialized());
25126
+ }), this.mountAttribution(me.attribution), this.map.once("load", () => this.markInitialized()), this.map.on("error", (de) => {
25127
+ this.initialized || (console.error("[onlymapjs] basemap error before load — settling readiness:", de?.error ?? de), this.markInitialized());
25121
25128
  }), this.overlay = new zy({
25122
25129
  interleaved: !1,
25123
25130
  ...Te,
25124
- onAfterRender: (h) => {
25125
- this.drainDeckCaptures(), Te.onAfterRender?.(h);
25131
+ onAfterRender: (de) => {
25132
+ this.drainDeckCaptures(), Te.onAfterRender?.(de);
25126
25133
  }
25127
25134
  }), this.map.addControl(this.overlay);
25128
25135
  }
25136
+ /** whenSettled's basemap gate (issue #37 follow-up): style + all raster/vector tiles for the current view fully loaded. */
25137
+ isIdle() {
25138
+ return this.map.loaded() && this.map.areTilesLoaded();
25139
+ }
25140
+ /** The overlay deck's live layers — whenSettled's readiness gate (issue #37). */
25141
+ getDeckLayers() {
25142
+ return this.overlay._deck?.getLayers?.();
25143
+ }
25144
+ /** One forced draw of both canvases (no capture) — whenSettled's "at least one completed render" guarantee (issue #37). */
25145
+ forceRepaint() {
25146
+ this.overlay._deck?.redraw("onlymapjs-settle"), this.map.triggerRepaint();
25147
+ }
25129
25148
  /** Snapshot capture queue for the overlay's deck canvas — see captureComposite. */
25130
25149
  deckCaptures = [];
25131
25150
  /** In-flight captureComposite rejects — destroy() settles them so a caller never hangs on a torn-down renderer. */
@@ -25149,19 +25168,19 @@ class Ry {
25149
25168
  captureComposite() {
25150
25169
  return new Promise((Q, me) => {
25151
25170
  this.pendingCaptureRejects.add(me);
25152
- let Ie, Te;
25171
+ let Me, Te;
25153
25172
  const Le = (h) => {
25154
25173
  const de = document.createElement("canvas");
25155
25174
  return de.width = h.width, de.height = h.height, de.getContext("2d").drawImage(h, 0, 0), de;
25156
25175
  }, R = () => {
25157
- if (!Ie || Te === void 0) return;
25176
+ if (!Me || Te === void 0) return;
25158
25177
  const h = document.createElement("canvas");
25159
- h.width = Ie.width, h.height = Ie.height;
25178
+ h.width = Me.width, h.height = Me.height;
25160
25179
  const de = h.getContext("2d");
25161
- de.drawImage(Ie, 0, 0), Te && de.drawImage(Te, 0, 0, h.width, h.height), this.pendingCaptureRejects.delete(me), Q(h);
25180
+ de.drawImage(Me, 0, 0), Te && de.drawImage(Te, 0, 0, h.width, h.height), this.pendingCaptureRejects.delete(me), Q(h);
25162
25181
  };
25163
25182
  this.map.once("render", () => {
25164
- Ie = Le(this.map.getCanvas()), R();
25183
+ Me = Le(this.map.getCanvas()), R();
25165
25184
  }), this.deckCaptures.push(() => {
25166
25185
  const h = this.overlay.getCanvas();
25167
25186
  Te = h ? Le(h) : null, R();
@@ -25243,8 +25262,8 @@ class Ry {
25243
25262
  const Q = this.map;
25244
25263
  return {
25245
25264
  project: (me) => {
25246
- const Ie = Q.project([me[0], me[1]]);
25247
- return [Ie.x, Ie.y];
25265
+ const Me = Q.project([me[0], me[1]]);
25266
+ return [Me.x, Me.y];
25248
25267
  },
25249
25268
  getBounds: () => {
25250
25269
  const me = Q.getBounds();
@@ -25268,13 +25287,13 @@ class Ry {
25268
25287
  * the direct `easeTo` interpolation. duration 0 degrades to an instant
25269
25288
  * move, so this is also the one method that reaches pitch/bearing.
25270
25289
  */
25271
- easeTo(Q, me, Ie = !1) {
25290
+ easeTo(Q, me, Me = !1) {
25272
25291
  const Te = { duration: me };
25273
25292
  for (const [Le, R] of Object.entries(Q)) R !== void 0 && (Te[Le] = R);
25274
- Ie && me > 0 ? this.map.flyTo(Te) : this.map.easeTo(Te);
25293
+ Me && me > 0 ? this.map.flyTo(Te) : this.map.easeTo(Te);
25275
25294
  }
25276
- fitBounds(Q, me, Ie = 0) {
25277
- this.map.fitBounds(Q, { padding: me, duration: Ie });
25295
+ fitBounds(Q, me, Me = 0) {
25296
+ this.map.fitBounds(Q, { padding: me, duration: Me });
25278
25297
  }
25279
25298
  destroy() {
25280
25299
  if (this.pendingCaptureRejects.size > 0) {