@mesh3d/cesium-vectortile-gl 0.4.5 → 0.4.6

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.
package/dist/cvt-gl.js CHANGED
@@ -313,30 +313,30 @@ class We {
313
313
  */
314
314
  toGeoJSON(e, t, r) {
315
315
  const i = this.extent * Math.pow(2, r), s = this.extent * e, o = this.extent * t, a = this.loadGeometry();
316
- function l(d) {
316
+ function l(p) {
317
317
  return [
318
- (d.x + s) * 360 / i - 180,
319
- 360 / Math.PI * Math.atan(Math.exp((1 - (d.y + o) * 2 / i) * Math.PI)) - 90
318
+ (p.x + s) * 360 / i - 180,
319
+ 360 / Math.PI * Math.atan(Math.exp((1 - (p.y + o) * 2 / i) * Math.PI)) - 90
320
320
  ];
321
321
  }
322
- function u(d) {
323
- return d.map(l);
322
+ function u(p) {
323
+ return p.map(l);
324
324
  }
325
325
  let c;
326
326
  if (this.type === 1) {
327
- const d = [];
327
+ const p = [];
328
328
  for (const h of a)
329
- d.push(h[0]);
330
- const p = u(d);
331
- c = d.length === 1 ? { type: "Point", coordinates: p[0] } : { type: "MultiPoint", coordinates: p };
329
+ p.push(h[0]);
330
+ const d = u(p);
331
+ c = p.length === 1 ? { type: "Point", coordinates: d[0] } : { type: "MultiPoint", coordinates: d };
332
332
  } else if (this.type === 2) {
333
- const d = a.map(u);
334
- c = d.length === 1 ? { type: "LineString", coordinates: d[0] } : { type: "MultiLineString", coordinates: d };
333
+ const p = a.map(u);
334
+ c = p.length === 1 ? { type: "LineString", coordinates: p[0] } : { type: "MultiLineString", coordinates: p };
335
335
  } else if (this.type === 3) {
336
- const d = ki(a), p = [];
337
- for (const h of d)
338
- p.push(h.map(u));
339
- c = p.length === 1 ? { type: "Polygon", coordinates: p[0] } : { type: "MultiPolygon", coordinates: p };
336
+ const p = Fi(a), d = [];
337
+ for (const h of p)
338
+ d.push(h.map(u));
339
+ c = d.length === 1 ? { type: "Polygon", coordinates: d[0] } : { type: "MultiPolygon", coordinates: d };
340
340
  } else
341
341
  throw new Error("unknown feature type");
342
342
  const f = {
@@ -359,7 +359,7 @@ function Rs(n, e) {
359
359
  e.properties[r] = i;
360
360
  }
361
361
  }
362
- function ki(n) {
362
+ function Fi(n) {
363
363
  const e = n.length;
364
364
  if (e <= 1) return [n];
365
365
  const t = [];
@@ -423,7 +423,7 @@ function Zs(n, e, t) {
423
423
  r.length && (e[r.name] = r);
424
424
  }
425
425
  }
426
- class Fi {
426
+ class ki {
427
427
  /**
428
428
  * 构造数据源实例。注意:该构造函数由VectorTileset调用,请勿在其他模块直接调用
429
429
  * @param {import('@maplibre/maplibre-gl-style-spec').SourceSpecification} styleSource
@@ -582,7 +582,7 @@ class Xs {
582
582
  }
583
583
  const Mt = {
584
584
  FEATURE: 0
585
- }, A = {
585
+ }, z = {
586
586
  BOOLEAN: 0,
587
587
  INT_8: 1,
588
588
  UINT_8: 2,
@@ -922,9 +922,9 @@ function bo(n, e) {
922
922
  }
923
923
  function wo(n, e, t, r) {
924
924
  const i = e;
925
- return t ? Co(r, n, i.runs) : To(r, n, i.runs);
925
+ return t ? To(r, n, i.runs) : Co(r, n, i.runs);
926
926
  }
927
- function To(n, e, t) {
927
+ function Co(n, e, t) {
928
928
  const r = new Int32Array(n.size());
929
929
  let i = 0;
930
930
  for (let s = 0; s < t; s++) {
@@ -935,7 +935,7 @@ function To(n, e, t) {
935
935
  }
936
936
  return r;
937
937
  }
938
- function Co(n, e, t) {
938
+ function To(n, e, t) {
939
939
  const r = new Int32Array(n.size());
940
940
  let i = 0;
941
941
  for (let s = 0; s < t; s++) {
@@ -996,13 +996,13 @@ function Eo(n, e, t) {
996
996
  }
997
997
  return r;
998
998
  }
999
- function zo(n) {
999
+ function Ao(n) {
1000
1000
  return n[1];
1001
1001
  }
1002
- function Ao(n) {
1002
+ function zo(n) {
1003
1003
  return Ee(n[1]);
1004
1004
  }
1005
- function ko(n) {
1005
+ function Fo(n) {
1006
1006
  if (n.length == 2) {
1007
1007
  const r = Ee(n[1]);
1008
1008
  return [r, r];
@@ -1010,7 +1010,7 @@ function ko(n) {
1010
1010
  const e = Ee(n[2]), t = Ee(n[3]);
1011
1011
  return [e, t];
1012
1012
  }
1013
- function Fo(n) {
1013
+ function ko(n) {
1014
1014
  return n[1];
1015
1015
  }
1016
1016
  function Po(n) {
@@ -1181,11 +1181,11 @@ function sr(n, e, t, r) {
1181
1181
  const s = i[0];
1182
1182
  return r ? Ee(s) : s;
1183
1183
  }
1184
- return r ? Ao(i) : zo(i);
1184
+ return r ? zo(i) : Ao(i);
1185
1185
  }
1186
1186
  function qi(n, e, t) {
1187
1187
  const r = Jt(n, e, t);
1188
- return ko(r);
1188
+ return Fo(r);
1189
1189
  }
1190
1190
  function Gi(n, e, t) {
1191
1191
  const r = Ht(n, e, t.numValues);
@@ -1205,7 +1205,7 @@ function $i(n, e, t, r) {
1205
1205
  const s = i[0];
1206
1206
  return r ? Re(s) : s;
1207
1207
  }
1208
- return r ? Po(i) : Fo(i);
1208
+ return r ? Po(i) : ko(i);
1209
1209
  }
1210
1210
  function Bo(n, e, t, r) {
1211
1211
  switch (e.logicalLevelTechnique1) {
@@ -1425,7 +1425,7 @@ function Rr(n) {
1425
1425
  let t = 1, r = 1, i = 1, s = 0;
1426
1426
  const o = new Zo();
1427
1427
  let a = 0, l = 0;
1428
- const u = n.mortonSettings, c = n.topologyVector, f = c.geometryOffsets, d = c.partOffsets, p = c.ringOffsets, h = n.vertexOffsets, y = n.containsPolygonGeometry(), m = n.vertexBuffer;
1428
+ const u = n.mortonSettings, c = n.topologyVector, f = c.geometryOffsets, p = c.partOffsets, d = c.ringOffsets, h = n.vertexOffsets, y = n.containsPolygonGeometry(), m = n.vertexBuffer;
1429
1429
  for (let v = 0; v < n.numGeometries; v++) {
1430
1430
  const w = n.geometryType(v);
1431
1431
  if (w === B.POINT) {
@@ -1433,52 +1433,52 @@ function Rr(n) {
1433
1433
  const g = m[a++], x = m[a++], b = new M(g, x);
1434
1434
  e[s++] = o.createPoint(b);
1435
1435
  } else if (n.vertexBufferType === Q.VEC_2) {
1436
- const g = h[l++] * 2, x = m[g], b = m[g + 1], C = new M(x, b);
1437
- e[s++] = o.createPoint(C);
1436
+ const g = h[l++] * 2, x = m[g], b = m[g + 1], T = new M(x, b);
1437
+ e[s++] = o.createPoint(T);
1438
1438
  } else {
1439
- const g = h[l++], x = m[g], b = ar(x, u.numBits, u.coordinateShift), C = new M(b.x, b.y);
1440
- e[s++] = o.createPoint(C);
1439
+ const g = h[l++], x = m[g], b = ar(x, u.numBits, u.coordinateShift), T = new M(b.x, b.y);
1440
+ e[s++] = o.createPoint(T);
1441
1441
  }
1442
- f && i++, d && t++, p && r++;
1442
+ f && i++, p && t++, d && r++;
1443
1443
  } else if (w === B.MULTIPOINT) {
1444
1444
  const g = f[i] - f[i - 1];
1445
1445
  i++;
1446
1446
  const x = new Array(g);
1447
1447
  if (!h || h.length === 0) {
1448
1448
  for (let b = 0; b < g; b++) {
1449
- const C = m[a++], _ = m[a++];
1450
- x[b] = new M(C, _);
1449
+ const T = m[a++], _ = m[a++];
1450
+ x[b] = new M(T, _);
1451
1451
  }
1452
1452
  e[s++] = o.createMultiPoint(x);
1453
1453
  } else {
1454
1454
  for (let b = 0; b < g; b++) {
1455
- const C = h[l++] * 2, _ = m[C], I = m[C + 1];
1455
+ const T = h[l++] * 2, _ = m[T], I = m[T + 1];
1456
1456
  x[b] = new M(_, I);
1457
1457
  }
1458
1458
  e[s++] = o.createMultiPoint(x);
1459
1459
  }
1460
1460
  } else if (w === B.LINESTRING) {
1461
1461
  let g = 0;
1462
- y ? (g = p[r] - p[r - 1], r++) : g = d[t] - d[t - 1], t++;
1462
+ y ? (g = d[r] - d[r - 1], r++) : g = p[t] - p[t - 1], t++;
1463
1463
  let x;
1464
1464
  !h || h.length === 0 ? (x = Dn(m, a, g, !1), a += g * 2) : (x = n.vertexBufferType === Q.VEC_2 ? Nn(m, h, l, g, !1) : Bn(m, h, l, g, !1, u), l += g), e[s++] = o.createLineString(x), f && i++;
1465
1465
  } else if (w === B.POLYGON) {
1466
- const g = d[t] - d[t - 1];
1466
+ const g = p[t] - p[t - 1];
1467
1467
  t++;
1468
1468
  const x = new Array(g - 1);
1469
- let b = p[r] - p[r - 1];
1469
+ let b = d[r] - d[r - 1];
1470
1470
  if (r++, !h || h.length === 0) {
1471
- const C = wt(m, a, b);
1471
+ const T = wt(m, a, b);
1472
1472
  a += b * 2;
1473
1473
  for (let _ = 0; _ < x.length; _++)
1474
- b = p[r] - p[r - 1], r++, x[_] = wt(m, a, b), a += b * 2;
1475
- e[s++] = o.createPolygon(C, x);
1474
+ b = d[r] - d[r - 1], r++, x[_] = wt(m, a, b), a += b * 2;
1475
+ e[s++] = o.createPolygon(T, x);
1476
1476
  } else {
1477
- const C = n.vertexBufferType === Q.VEC_2 ? Tt(m, h, l, b) : Ct(m, h, l, b, o, u);
1477
+ const T = n.vertexBufferType === Q.VEC_2 ? Ct(m, h, l, b) : Tt(m, h, l, b, o, u);
1478
1478
  l += b;
1479
1479
  for (let _ = 0; _ < x.length; _++)
1480
- b = p[r] - p[r - 1], r++, x[_] = n.vertexBufferType === Q.VEC_2 ? Tt(m, h, l, b) : Ct(m, h, l, b, o, u), l += b;
1481
- e[s++] = o.createPolygon(C, x);
1480
+ b = d[r] - d[r - 1], r++, x[_] = n.vertexBufferType === Q.VEC_2 ? Ct(m, h, l, b) : Tt(m, h, l, b, o, u), l += b;
1481
+ e[s++] = o.createPolygon(T, x);
1482
1482
  }
1483
1483
  f && i++;
1484
1484
  } else if (w === B.MULTILINESTRING) {
@@ -1487,16 +1487,16 @@ function Rr(n) {
1487
1487
  const x = new Array(g);
1488
1488
  if (!h || h.length === 0) {
1489
1489
  for (let b = 0; b < g; b++) {
1490
- let C = 0;
1491
- y ? (C = p[r] - p[r - 1], r++) : C = d[t] - d[t - 1], t++, x[b] = Dn(m, a, C, !1), a += C * 2;
1490
+ let T = 0;
1491
+ y ? (T = d[r] - d[r - 1], r++) : T = p[t] - p[t - 1], t++, x[b] = Dn(m, a, T, !1), a += T * 2;
1492
1492
  }
1493
1493
  e[s++] = o.createMultiLineString(x);
1494
1494
  } else {
1495
1495
  for (let b = 0; b < g; b++) {
1496
- let C = 0;
1497
- y ? (C = p[r] - p[r - 1], r++) : C = d[t] - d[t - 1], t++;
1498
- const _ = n.vertexBufferType === Q.VEC_2 ? Nn(m, h, l, C, !1) : Bn(m, h, l, C, !1, u);
1499
- x[b] = _, l += C;
1496
+ let T = 0;
1497
+ y ? (T = d[r] - d[r - 1], r++) : T = p[t] - p[t - 1], t++;
1498
+ const _ = n.vertexBufferType === Q.VEC_2 ? Nn(m, h, l, T, !1) : Bn(m, h, l, T, !1, u);
1499
+ x[b] = _, l += T;
1500
1500
  }
1501
1501
  e[s++] = o.createMultiLineString(x);
1502
1502
  }
@@ -1506,31 +1506,31 @@ function Rr(n) {
1506
1506
  const x = new Array(g);
1507
1507
  let b = 0;
1508
1508
  if (!h || h.length === 0) {
1509
- for (let C = 0; C < g; C++) {
1510
- const _ = d[t] - d[t - 1];
1509
+ for (let T = 0; T < g; T++) {
1510
+ const _ = p[t] - p[t - 1];
1511
1511
  t++;
1512
1512
  const I = new Array(_ - 1);
1513
- b = p[r] - p[r - 1], r++;
1514
- const F = wt(m, a, b);
1513
+ b = d[r] - d[r - 1], r++;
1514
+ const k = wt(m, a, b);
1515
1515
  a += b * 2;
1516
1516
  for (let P = 0; P < I.length; P++) {
1517
- const G = p[r] - p[r - 1];
1517
+ const G = d[r] - d[r - 1];
1518
1518
  r++, I[P] = wt(m, a, G), a += G * 2;
1519
1519
  }
1520
- x[C] = o.createPolygon(F, I);
1520
+ x[T] = o.createPolygon(k, I);
1521
1521
  }
1522
1522
  e[s++] = o.createMultiPolygon(x);
1523
1523
  } else {
1524
- for (let C = 0; C < g; C++) {
1525
- const _ = d[t] - d[t - 1];
1524
+ for (let T = 0; T < g; T++) {
1525
+ const _ = p[t] - p[t - 1];
1526
1526
  t++;
1527
1527
  const I = new Array(_ - 1);
1528
- b = p[r] - p[r - 1], r++;
1529
- const F = n.vertexBufferType === Q.VEC_2 ? Tt(m, h, l, b) : Ct(m, h, l, b, o, u);
1528
+ b = d[r] - d[r - 1], r++;
1529
+ const k = n.vertexBufferType === Q.VEC_2 ? Ct(m, h, l, b) : Tt(m, h, l, b, o, u);
1530
1530
  l += b;
1531
1531
  for (let P = 0; P < I.length; P++)
1532
- b = p[r] - p[r - 1], r++, I[P] = n.vertexBufferType === Q.VEC_2 ? Tt(m, h, l, b) : Ct(m, h, l, b, o, u), l += b;
1533
- x[C] = o.createPolygon(F, I);
1532
+ b = d[r] - d[r - 1], r++, I[P] = n.vertexBufferType === Q.VEC_2 ? Ct(m, h, l, b) : Tt(m, h, l, b, o, u), l += b;
1533
+ x[T] = o.createPolygon(k, I);
1534
1534
  }
1535
1535
  e[s++] = o.createMultiPolygon(x);
1536
1536
  }
@@ -1542,10 +1542,10 @@ function Rr(n) {
1542
1542
  function wt(n, e, t) {
1543
1543
  return Dn(n, e, t, !0);
1544
1544
  }
1545
- function Tt(n, e, t, r) {
1545
+ function Ct(n, e, t, r) {
1546
1546
  return Nn(n, e, t, r, !0);
1547
1547
  }
1548
- function Ct(n, e, t, r, i, s) {
1548
+ function Tt(n, e, t, r, i, s) {
1549
1549
  return Bn(n, e, t, r, !0, s);
1550
1550
  }
1551
1551
  function Dn(n, e, t, r) {
@@ -1706,10 +1706,10 @@ class Hi {
1706
1706
  switch (this.geometryType(c)) {
1707
1707
  case B.POLYGON:
1708
1708
  {
1709
- const d = r[a] - r[a - 1];
1709
+ const p = r[a] - r[a - 1];
1710
1710
  a++;
1711
- const p = [];
1712
- for (let h = 0; h < d; h++) {
1711
+ const d = [];
1712
+ for (let h = 0; h < p; h++) {
1713
1713
  const y = i[l] - i[l - 1];
1714
1714
  l++;
1715
1715
  const m = [];
@@ -1717,17 +1717,17 @@ class Hi {
1717
1717
  const w = this._vertexBuffer[o++], g = this._vertexBuffer[o++];
1718
1718
  m.push(new M(w, g));
1719
1719
  }
1720
- m.length > 0 && m.push(m[0]), p.push(m);
1720
+ m.length > 0 && m.push(m[0]), d.push(m);
1721
1721
  }
1722
- e[c] = p, s && u++;
1722
+ e[c] = d, s && u++;
1723
1723
  }
1724
1724
  break;
1725
1725
  case B.MULTIPOLYGON:
1726
1726
  {
1727
- const d = s[u] - s[u - 1];
1727
+ const p = s[u] - s[u - 1];
1728
1728
  u++;
1729
- const p = [];
1730
- for (let h = 0; h < d; h++) {
1729
+ const d = [];
1730
+ for (let h = 0; h < p; h++) {
1731
1731
  const y = r[a] - r[a - 1];
1732
1732
  a++;
1733
1733
  for (let m = 0; m < y; m++) {
@@ -1738,10 +1738,10 @@ class Hi {
1738
1738
  const x = this._vertexBuffer[o++], b = this._vertexBuffer[o++];
1739
1739
  w.push(new M(x, b));
1740
1740
  }
1741
- w.length > 0 && w.push(w[0]), p.push(w);
1741
+ w.length > 0 && w.push(w[0]), d.push(w);
1742
1742
  }
1743
1743
  }
1744
- e[c] = p;
1744
+ e[c] = d;
1745
1745
  }
1746
1746
  break;
1747
1747
  }
@@ -1790,7 +1790,7 @@ class Ko extends Hi {
1790
1790
  }
1791
1791
  function Qo(n, e, t, r, i) {
1792
1792
  const s = Y(n, t), o = Kt(s, r, n, t);
1793
- let a = null, l = null, u = null, c = null, f = null, d = null, p = null, h = null;
1793
+ let a = null, l = null, u = null, c = null, f = null, p = null, d = null, h = null;
1794
1794
  if (o === N.CONST) {
1795
1795
  const m = sr(n, t, s, !1);
1796
1796
  for (let v = 0; v < e - 1; v++) {
@@ -1808,7 +1808,7 @@ function Qo(n, e, t, r, i) {
1808
1808
  u = we(n, t, w);
1809
1809
  break;
1810
1810
  case K.TRIANGLES:
1811
- p = we(n, t, w);
1811
+ d = we(n, t, w);
1812
1812
  }
1813
1813
  break;
1814
1814
  case U.OFFSET: {
@@ -1827,7 +1827,7 @@ function Qo(n, e, t, r, i) {
1827
1827
  f = Z(n, t, w, !0);
1828
1828
  else {
1829
1829
  const g = w;
1830
- d = {
1830
+ p = {
1831
1831
  numBits: g.numBits,
1832
1832
  coordinateShift: g.coordinateShift
1833
1833
  }, f = Z(n, t, w, !1);
@@ -1839,14 +1839,14 @@ function Qo(n, e, t, r, i) {
1839
1839
  if (h !== null) {
1840
1840
  if (a != null || l != null) {
1841
1841
  const v = new Oe(a, l, u);
1842
- return qr(r, m, p, h, f, v);
1842
+ return qr(r, m, d, h, f, v);
1843
1843
  }
1844
- return qr(r, m, p, h, f);
1844
+ return qr(r, m, d, h, f);
1845
1845
  }
1846
- return d === null ? (
1846
+ return p === null ? (
1847
1847
  /* Currently only 2D coordinates (Vec2) are implemented in the encoder */
1848
1848
  Xo(r, m, new Oe(a, l, u), c, f)
1849
- ) : Yo(r, m, new Oe(a, l, u), c, f, d);
1849
+ ) : Yo(r, m, new Oe(a, l, u), c, f, p);
1850
1850
  }
1851
1851
  const y = Z(n, t, s, !1);
1852
1852
  for (let m = 0; m < e - 1; m++) {
@@ -1864,7 +1864,7 @@ function Qo(n, e, t, r, i) {
1864
1864
  u = Z(n, t, v, !1);
1865
1865
  break;
1866
1866
  case K.TRIANGLES:
1867
- p = we(n, t, v);
1867
+ d = we(n, t, v);
1868
1868
  }
1869
1869
  break;
1870
1870
  case U.OFFSET:
@@ -1882,7 +1882,7 @@ function Qo(n, e, t, r, i) {
1882
1882
  f = Z(n, t, v, !0);
1883
1883
  else {
1884
1884
  const w = v;
1885
- d = {
1885
+ p = {
1886
1886
  numBits: w.numBits,
1887
1887
  coordinateShift: w.coordinateShift
1888
1888
  }, f = Z(n, t, v, !1);
@@ -1890,7 +1890,7 @@ function Qo(n, e, t, r, i) {
1890
1890
  break;
1891
1891
  }
1892
1892
  }
1893
- return h !== null && l === null ? Gr(y, p, h, f) : (a !== null ? (a = xn(y, a, 2), l !== null && u !== null ? (l = Ur(y, a, l, !1), u = ta(y, a, l, u)) : l !== null && (l = ea(y, a, l))) : l !== null && u !== null ? (l = xn(y, l, 1), u = Ur(y, l, u, !0)) : l !== null && (l = xn(y, l, 0)), h !== null ? Gr(y, p, h, f, new Oe(a, l, u)) : d === null ? Wo(y, new Oe(a, l, u), c, f) : Ho(y, new Oe(a, l, u), c, f, d));
1893
+ return h !== null && l === null ? Gr(y, d, h, f) : (a !== null ? (a = xn(y, a, 2), l !== null && u !== null ? (l = Ur(y, a, l, !1), u = ta(y, a, l, u)) : l !== null && (l = ea(y, a, l))) : l !== null && u !== null ? (l = xn(y, l, 1), u = Ur(y, l, u, !0)) : l !== null && (l = xn(y, l, 0)), h !== null ? Gr(y, d, h, f, new Oe(a, l, u)) : p === null ? Wo(y, new Oe(a, l, u), c, f) : Ho(y, new Oe(a, l, u), c, f, p));
1894
1894
  }
1895
1895
  function xn(n, e, t) {
1896
1896
  const r = new Int32Array(n.length + 1);
@@ -1941,14 +1941,14 @@ function ta(n, e, t, r) {
1941
1941
  for (let u = 0; u < n.length; u++) {
1942
1942
  const c = n[u], f = e[u + 1] - e[u];
1943
1943
  if (c !== 0 && c !== 3)
1944
- for (let d = 0; d < f; d++) {
1945
- const p = t[o] - t[o - 1];
1944
+ for (let p = 0; p < f; p++) {
1945
+ const d = t[o] - t[o - 1];
1946
1946
  o++;
1947
- for (let h = 0; h < p; h++)
1947
+ for (let h = 0; h < d; h++)
1948
1948
  s = i[a++] = s + r[l++];
1949
1949
  }
1950
1950
  else
1951
- for (let d = 0; d < f; d++)
1951
+ for (let p = 0; p < f; p++)
1952
1952
  i[a++] = ++s, o++;
1953
1953
  }
1954
1954
  return i;
@@ -2118,8 +2118,8 @@ class Qi extends ur {
2118
2118
  }
2119
2119
  const pa = "default", da = ":";
2120
2120
  function ya(n, e, t, r, i) {
2121
- let s = null, o = null, a = null, l = null, u = null, c = null, f = null, d = null;
2122
- for (let p = 0; p < r; p++) {
2121
+ let s = null, o = null, a = null, l = null, u = null, c = null, f = null, p = null;
2122
+ for (let d = 0; d < r; d++) {
2123
2123
  const h = Y(e, t);
2124
2124
  if (h.byteLength !== 0)
2125
2125
  switch (h.physicalStreamType) {
@@ -2141,12 +2141,12 @@ function ya(n, e, t, r, i) {
2141
2141
  const y = e.subarray(t.get(), t.get() + h.byteLength);
2142
2142
  t.add(h.byteLength);
2143
2143
  const m = h.logicalStreamType.dictionaryType;
2144
- le.FSST === m ? u = y : le.SINGLE === m || le.SHARED === m ? a = y : le.NONE === m && (d = y);
2144
+ le.FSST === m ? u = y : le.SINGLE === m || le.SHARED === m ? a = y : le.NONE === m && (p = y);
2145
2145
  break;
2146
2146
  }
2147
2147
  }
2148
2148
  }
2149
- return ma(n, u, o, s, a, l, i ?? c) ?? ga(n, a, o, s, i ?? c) ?? xa(n, f, d, o, i ?? c);
2149
+ return ma(n, u, o, s, a, l, i ?? c) ?? ga(n, a, o, s, i ?? c) ?? xa(n, f, p, o, i ?? c);
2150
2150
  }
2151
2151
  function ma(n, e, t, r, i, s, o) {
2152
2152
  return e ? new Qi(n, t, r, i, s, e, o) : null;
@@ -2171,27 +2171,27 @@ function xa(n, e, t, r, i) {
2171
2171
  function va(n, e, t, r, i) {
2172
2172
  let s = null, o = null, a = null, l = null, u = !1;
2173
2173
  for (; !u; ) {
2174
- const p = Y(n, e);
2175
- switch (p.physicalStreamType) {
2174
+ const d = Y(n, e);
2175
+ switch (d.physicalStreamType) {
2176
2176
  case U.LENGTH:
2177
- K.DICTIONARY === p.logicalStreamType.lengthType ? s = we(n, e, p) : a = we(n, e, p);
2177
+ K.DICTIONARY === d.logicalStreamType.lengthType ? s = we(n, e, d) : a = we(n, e, d);
2178
2178
  break;
2179
2179
  case U.DATA:
2180
- le.SINGLE === p.logicalStreamType.dictionaryType || le.SHARED === p.logicalStreamType.dictionaryType ? (o = n.subarray(e.get(), e.get() + p.byteLength), u = !0) : l = n.subarray(e.get(), e.get() + p.byteLength), e.add(p.byteLength);
2180
+ le.SINGLE === d.logicalStreamType.dictionaryType || le.SHARED === d.logicalStreamType.dictionaryType ? (o = n.subarray(e.get(), e.get() + d.byteLength), u = !0) : l = n.subarray(e.get(), e.get() + d.byteLength), e.add(d.byteLength);
2181
2181
  break;
2182
2182
  }
2183
2183
  }
2184
2184
  const c = t.complexType.children, f = [];
2185
- let d = 0;
2186
- for (const p of c) {
2185
+ let p = 0;
2186
+ for (const d of c) {
2187
2187
  const h = q(n, e, 1)[0];
2188
2188
  if (h == 0)
2189
2189
  continue;
2190
- const y = `${t.name}${p.name === pa ? "" : da + p.name}`;
2191
- if (h !== 2 || p.type !== "scalarField" || p.scalarField.physicalType !== A.STRING)
2190
+ const y = `${t.name}${d.name === pa ? "" : da + d.name}`;
2191
+ if (h !== 2 || d.type !== "scalarField" || d.scalarField.physicalType !== z.STRING)
2192
2192
  throw new Error("Currently only optional string fields are implemented for a struct.");
2193
2193
  const m = Y(n, e), v = dt(n, m.numValues, e), w = Y(n, e), b = w.decompressedCount !== r ? or(n, e, w, !1, new ue(v, m.numValues)) : Z(n, e, w, !1);
2194
- f[d++] = l ? new Qi(y, b, s, o, a, l, new ue(v, m.numValues)) : new qe(y, b, s, o, new ue(v, m.numValues));
2194
+ f[p++] = l ? new Qi(y, b, s, o, a, l, new ue(v, m.numValues)) : new qe(y, b, s, o, new ue(v, m.numValues));
2195
2195
  }
2196
2196
  return f;
2197
2197
  }
@@ -2205,37 +2205,37 @@ function wa(n, e, t, r, i, s) {
2205
2205
  if (s.nullable) {
2206
2206
  const c = Y(e, t);
2207
2207
  a = c.numValues;
2208
- const f = t.get(), d = dt(e, a, t);
2209
- t.set(f + c.byteLength), o = new ue(d, c.numValues);
2208
+ const f = t.get(), p = dt(e, a, t);
2209
+ t.set(f + c.byteLength), o = new ue(p, c.numValues);
2210
2210
  }
2211
2211
  const l = o ?? r;
2212
2212
  switch (i.physicalType) {
2213
- case A.UINT_32:
2214
- case A.INT_32:
2213
+ case z.UINT_32:
2214
+ case z.INT_32:
2215
2215
  return La(e, t, s, i, l);
2216
- case A.STRING:
2216
+ case z.STRING:
2217
2217
  const c = s.nullable ? n - 1 : n;
2218
2218
  return ya(s.name, e, t, c, o);
2219
- case A.BOOLEAN:
2220
- return Ta(e, t, s, r, l);
2221
- case A.UINT_64:
2222
- case A.INT_64:
2219
+ case z.BOOLEAN:
2220
+ return Ca(e, t, s, r, l);
2221
+ case z.UINT_64:
2222
+ case z.INT_64:
2223
2223
  return Ia(e, t, s, l, i);
2224
- case A.FLOAT:
2225
- return Ca(e, t, s, l);
2226
- case A.DOUBLE:
2224
+ case z.FLOAT:
2225
+ return Ta(e, t, s, l);
2226
+ case z.DOUBLE:
2227
2227
  return _a(e, t, s, l);
2228
2228
  default:
2229
2229
  throw new Error(`The specified data type for the field is currently not supported: ${i}`);
2230
2230
  }
2231
2231
  }
2232
- function Ta(n, e, t, r, i) {
2232
+ function Ca(n, e, t, r, i) {
2233
2233
  const s = Y(n, e), o = s.numValues, a = e.get(), l = yt(i) ? ia(n, o, e, i) : dt(n, o, e);
2234
2234
  e.set(a + s.byteLength);
2235
2235
  const u = new ue(l, o);
2236
2236
  return new na(t.name, u, i);
2237
2237
  }
2238
- function Ca(n, e, t, r) {
2238
+ function Ta(n, e, t, r) {
2239
2239
  const i = Y(n, e), s = yt(r) ? aa(n, e, r, i.numValues) : sa(n, e, i.numValues);
2240
2240
  return new ra(t.name, s, r);
2241
2241
  }
@@ -2244,7 +2244,7 @@ function _a(n, e, t, r) {
2244
2244
  return new tr(t.name, s, r);
2245
2245
  }
2246
2246
  function Ia(n, e, t, r, i) {
2247
- const s = Y(n, e), o = Kt(s, r, n, e), a = i.physicalType === A.INT_64;
2247
+ const s = Y(n, e), o = Kt(s, r, n, e), a = i.physicalType === z.INT_64;
2248
2248
  if (o === N.FLAT) {
2249
2249
  const l = yt(r) ? Uo(n, e, s, a, r) : Ui(n, e, s, a);
2250
2250
  return new ji(t.name, l, r);
@@ -2257,7 +2257,7 @@ function Ia(n, e, t, r, i) {
2257
2257
  }
2258
2258
  }
2259
2259
  function La(n, e, t, r, i) {
2260
- const s = Y(n, e), o = Kt(s, i, n, e), a = r.physicalType === A.INT_32;
2260
+ const s = Y(n, e), o = Kt(s, i, n, e), a = r.physicalType === z.INT_32;
2261
2261
  if (o === N.FLAT) {
2262
2262
  const l = yt(i) ? or(n, e, s, a, i) : Z(n, e, s, a);
2263
2263
  return new er(t.name, l, i);
@@ -2280,7 +2280,7 @@ function Sa(n) {
2280
2280
  case 3: {
2281
2281
  const e = {};
2282
2282
  e.nullable = (n & 1) !== 0, e.columnScope = Mt.FEATURE;
2283
- const t = {}, r = n > 1 ? A.UINT_64 : A.UINT_32;
2283
+ const t = {}, r = n > 1 ? z.UINT_64 : z.UINT_32;
2284
2284
  return t.physicalType = r, t.type = "physicalType", e.scalarType = t, e.type = "scalarType", e;
2285
2285
  }
2286
2286
  case 4: {
@@ -2296,33 +2296,33 @@ function Sa(n) {
2296
2296
  return t.type = "physicalType", t.physicalType = Dt.STRUCT, e.type = "complexType", e.complexType = t, e;
2297
2297
  }
2298
2298
  default:
2299
- return ka(n);
2299
+ return Fa(n);
2300
2300
  }
2301
2301
  }
2302
2302
  function Ea(n) {
2303
2303
  return n >= 10;
2304
2304
  }
2305
- function za(n) {
2305
+ function Aa(n) {
2306
2306
  return n === 30;
2307
2307
  }
2308
- function Aa(n) {
2308
+ function za(n) {
2309
2309
  if (n.name === "id")
2310
2310
  return !1;
2311
2311
  if (n.type === "scalarType") {
2312
2312
  const e = n.scalarType;
2313
2313
  if (e.type === "physicalType")
2314
2314
  switch (e.physicalType) {
2315
- case A.BOOLEAN:
2316
- case A.INT_8:
2317
- case A.UINT_8:
2318
- case A.INT_32:
2319
- case A.UINT_32:
2320
- case A.INT_64:
2321
- case A.UINT_64:
2322
- case A.FLOAT:
2323
- case A.DOUBLE:
2315
+ case z.BOOLEAN:
2316
+ case z.INT_8:
2317
+ case z.UINT_8:
2318
+ case z.INT_32:
2319
+ case z.UINT_32:
2320
+ case z.INT_64:
2321
+ case z.UINT_64:
2322
+ case z.FLOAT:
2323
+ case z.DOUBLE:
2324
2324
  return !1;
2325
- case A.STRING:
2325
+ case z.STRING:
2326
2326
  return !0;
2327
2327
  default:
2328
2328
  return !1;
@@ -2342,48 +2342,48 @@ function Aa(n) {
2342
2342
  }
2343
2343
  return console.warn("Unexpected column type in hasStreamCount", n), !1;
2344
2344
  }
2345
- function ka(n) {
2345
+ function Fa(n) {
2346
2346
  let e = null;
2347
2347
  switch (n) {
2348
2348
  case 10:
2349
2349
  case 11:
2350
- e = A.BOOLEAN;
2350
+ e = z.BOOLEAN;
2351
2351
  break;
2352
2352
  case 12:
2353
2353
  case 13:
2354
- e = A.INT_8;
2354
+ e = z.INT_8;
2355
2355
  break;
2356
2356
  case 14:
2357
2357
  case 15:
2358
- e = A.UINT_8;
2358
+ e = z.UINT_8;
2359
2359
  break;
2360
2360
  case 16:
2361
2361
  case 17:
2362
- e = A.INT_32;
2362
+ e = z.INT_32;
2363
2363
  break;
2364
2364
  case 18:
2365
2365
  case 19:
2366
- e = A.UINT_32;
2366
+ e = z.UINT_32;
2367
2367
  break;
2368
2368
  case 20:
2369
2369
  case 21:
2370
- e = A.INT_64;
2370
+ e = z.INT_64;
2371
2371
  break;
2372
2372
  case 22:
2373
2373
  case 23:
2374
- e = A.UINT_64;
2374
+ e = z.UINT_64;
2375
2375
  break;
2376
2376
  case 24:
2377
2377
  case 25:
2378
- e = A.FLOAT;
2378
+ e = z.FLOAT;
2379
2379
  break;
2380
2380
  case 26:
2381
2381
  case 27:
2382
- e = A.DOUBLE;
2382
+ e = z.DOUBLE;
2383
2383
  break;
2384
2384
  case 28:
2385
2385
  case 29:
2386
- e = A.STRING;
2386
+ e = z.STRING;
2387
2387
  break;
2388
2388
  default:
2389
2389
  return null;
@@ -2393,13 +2393,13 @@ function ka(n) {
2393
2393
  const r = {};
2394
2394
  return r.type = "physicalType", r.physicalType = e, t.type = "scalarType", t.scalarType = r, t;
2395
2395
  }
2396
- const Fa = new TextDecoder();
2396
+ const ka = new TextDecoder();
2397
2397
  function es(n, e) {
2398
2398
  const t = q(n, e, 1)[0];
2399
2399
  if (t === 0)
2400
2400
  return "";
2401
2401
  const r = e.get(), i = r + t, s = n.subarray(r, i);
2402
- return e.add(t), Fa.decode(s);
2402
+ return e.add(t), ka.decode(s);
2403
2403
  }
2404
2404
  function ts(n, e) {
2405
2405
  const t = q(n, e, 1)[0] >>> 0, r = (t & 4) !== 0, i = (t & 2) !== 0, s = q(n, e, 1)[0] >>> 0, o = {};
@@ -2422,7 +2422,7 @@ function Pa(n, e) {
2422
2422
  const t = q(n, e, 1)[0] >>> 0, r = Sa(t);
2423
2423
  if (!r)
2424
2424
  throw new Error(`Unsupported column type code: ${t}`);
2425
- if (Ea(t) ? r.name = es(n, e) : t >= 0 && t <= 3 ? r.name = "id" : t === 4 && (r.name = "geometry"), za(t)) {
2425
+ if (Ea(t) ? r.name = es(n, e) : t >= 0 && t <= 3 ? r.name = "id" : t === 4 && (r.name = "geometry"), Aa(t)) {
2426
2426
  const i = q(n, e, 1)[0] >>> 0, s = r.complexType;
2427
2427
  s.children = new Array(i);
2428
2428
  for (let o = 0; o < i; o++)
@@ -2452,20 +2452,20 @@ function Da(n, e, t = !0) {
2452
2452
  r.set(a);
2453
2453
  continue;
2454
2454
  }
2455
- const u = Ma(n, r), c = u[0], f = u[1], d = c.featureTables[0];
2456
- let p = null, h = null;
2455
+ const u = Ma(n, r), c = u[0], f = u[1], p = c.featureTables[0];
2456
+ let d = null, h = null;
2457
2457
  const y = [];
2458
2458
  let m = 0;
2459
- for (const w of d.columns) {
2459
+ for (const w of p.columns) {
2460
2460
  const g = w.name;
2461
2461
  if (g === Oa) {
2462
2462
  let x = null;
2463
2463
  if (w.nullable) {
2464
- const C = Y(n, r), _ = r.get(), I = dt(n, C.numValues, r);
2465
- r.set(_ + C.byteLength), x = new ue(I, C.numValues);
2464
+ const T = Y(n, r), _ = r.get(), I = dt(n, T.numValues, r);
2465
+ r.set(_ + T.byteLength), x = new ue(I, T.numValues);
2466
2466
  }
2467
2467
  const b = Y(n, r);
2468
- m = b.decompressedCount, p = Na(n, w, r, g, b, x ?? m, t);
2468
+ m = b.decompressedCount, d = Na(n, w, r, g, b, x ?? m, t);
2469
2469
  } else if (g === Va) {
2470
2470
  const x = q(n, r, 1)[0];
2471
2471
  if (m === 0) {
@@ -2474,26 +2474,26 @@ function Da(n, e, t = !0) {
2474
2474
  }
2475
2475
  h = Qo(n, x, r, m);
2476
2476
  } else {
2477
- const b = Aa(w) ? q(n, r, 1)[0] : 1;
2477
+ const b = za(w) ? q(n, r, 1)[0] : 1;
2478
2478
  if (b === 0 && w.type === "scalarType")
2479
2479
  continue;
2480
- const C = ba(n, r, w, b, m);
2481
- if (C)
2482
- if (Array.isArray(C))
2483
- for (const _ of C)
2480
+ const T = ba(n, r, w, b, m);
2481
+ if (T)
2482
+ if (Array.isArray(T))
2483
+ for (const _ of T)
2484
2484
  y.push(_);
2485
2485
  else
2486
- y.push(C);
2486
+ y.push(T);
2487
2487
  }
2488
2488
  }
2489
- const v = new Xs(d.name, h, p, y, f);
2489
+ const v = new Xs(p.name, h, d, y, f);
2490
2490
  i.push(v), r.set(a);
2491
2491
  }
2492
2492
  return i;
2493
2493
  }
2494
2494
  function Na(n, e, t, r, i, s, o = !1) {
2495
2495
  const a = e.scalarType.physicalType, l = Kt(i, s, n, t);
2496
- if (a === A.UINT_32)
2496
+ if (a === z.UINT_32)
2497
2497
  switch (l) {
2498
2498
  case N.FLAT: {
2499
2499
  const u = Z(n, t, i, !1);
@@ -3046,7 +3046,7 @@ function il(n, e, t) {
3046
3046
  }
3047
3047
  return t;
3048
3048
  }
3049
- class sl extends Fi {
3049
+ class sl extends ki {
3050
3050
  constructor(e, t) {
3051
3051
  super(e, t), this.tilingScheme = new Cesium.WebMercatorTilingScheme();
3052
3052
  }
@@ -3105,13 +3105,13 @@ function qn(n, e, t, r) {
3105
3105
  const s = e + (t - e >> 1);
3106
3106
  let o = t - e, a;
3107
3107
  const l = n[e], u = n[e + 1], c = n[t], f = n[t + 1];
3108
- for (let d = e + 3; d < t; d += 3) {
3109
- const p = ol(n[d], n[d + 1], l, u, c, f);
3110
- if (p > i)
3111
- a = d, i = p;
3112
- else if (p === i) {
3113
- const h = Math.abs(d - s);
3114
- h < o && (a = d, o = h);
3108
+ for (let p = e + 3; p < t; p += 3) {
3109
+ const d = ol(n[p], n[p + 1], l, u, c, f);
3110
+ if (d > i)
3111
+ a = p, i = d;
3112
+ else if (d === i) {
3113
+ const h = Math.abs(p - s);
3114
+ h < o && (a = p, o = h);
3115
3115
  }
3116
3116
  }
3117
3117
  i > r && (a - e > 3 && qn(n, e, a, r), n[a + 2] = i, t - a > 3 && qn(n, a, t, r));
@@ -3230,11 +3230,11 @@ function ye(n, e, t, r, i, s, o, a) {
3230
3230
  for (const u of n) {
3231
3231
  const c = u.geometry;
3232
3232
  let f = u.type;
3233
- const d = i === 0 ? u.minX : u.minY, p = i === 0 ? u.maxX : u.maxY;
3234
- if (d >= t && p < r) {
3233
+ const p = i === 0 ? u.minX : u.minY, d = i === 0 ? u.maxX : u.maxY;
3234
+ if (p >= t && d < r) {
3235
3235
  l.push(u);
3236
3236
  continue;
3237
- } else if (p < t || d >= r)
3237
+ } else if (d < t || p >= r)
3238
3238
  continue;
3239
3239
  let h = [];
3240
3240
  if (f === "Point" || f === "MultiPoint")
@@ -3272,13 +3272,13 @@ function is(n, e, t, r, i, s, o) {
3272
3272
  const l = i === 0 ? ul : cl;
3273
3273
  let u = n.start, c, f;
3274
3274
  for (let v = 0; v < n.length - 3; v += 3) {
3275
- const w = n[v], g = n[v + 1], x = n[v + 2], b = n[v + 3], C = n[v + 4], _ = i === 0 ? w : g, I = i === 0 ? b : C;
3276
- let F = !1;
3277
- o && (c = Math.sqrt(Math.pow(w - b, 2) + Math.pow(g - C, 2))), _ < t ? I > t && (f = l(a, w, g, b, C, t), o && (a.start = u + c * f)) : _ > r ? I < r && (f = l(a, w, g, b, C, r), o && (a.start = u + c * f)) : Ge(a, w, g, x), I < t && _ >= t && (f = l(a, w, g, b, C, t), F = !0), I > r && _ <= r && (f = l(a, w, g, b, C, r), F = !0), !s && F && (o && (a.end = u + c * f), e.push(a), a = Wr(n)), o && (u += c);
3275
+ const w = n[v], g = n[v + 1], x = n[v + 2], b = n[v + 3], T = n[v + 4], _ = i === 0 ? w : g, I = i === 0 ? b : T;
3276
+ let k = !1;
3277
+ o && (c = Math.sqrt(Math.pow(w - b, 2) + Math.pow(g - T, 2))), _ < t ? I > t && (f = l(a, w, g, b, T, t), o && (a.start = u + c * f)) : _ > r ? I < r && (f = l(a, w, g, b, T, r), o && (a.start = u + c * f)) : Ge(a, w, g, x), I < t && _ >= t && (f = l(a, w, g, b, T, t), k = !0), I > r && _ <= r && (f = l(a, w, g, b, T, r), k = !0), !s && k && (o && (a.end = u + c * f), e.push(a), a = Wr(n)), o && (u += c);
3278
3278
  }
3279
- let d = n.length - 3;
3280
- const p = n[d], h = n[d + 1], y = n[d + 2], m = i === 0 ? p : h;
3281
- m >= t && m <= r && Ge(a, p, h, y), d = a.length - 3, s && d >= 3 && (a[d] !== a[0] || a[d + 1] !== a[1]) && Ge(a, a[0], a[1], a[2]), a.length && e.push(a);
3279
+ let p = n.length - 3;
3280
+ const d = n[p], h = n[p + 1], y = n[p + 2], m = i === 0 ? d : h;
3281
+ m >= t && m <= r && Ge(a, d, h, y), p = a.length - 3, s && p >= 3 && (a[p] !== a[0] || a[p + 1] !== a[1]) && Ge(a, a[0], a[1], a[2]), a.length && e.push(a);
3282
3282
  }
3283
3283
  function Wr(n) {
3284
3284
  const e = [];
@@ -3311,17 +3311,17 @@ function Hr(n, e) {
3311
3311
  const i = n[r], s = i.type;
3312
3312
  let o;
3313
3313
  if (s === "Point" || s === "MultiPoint" || s === "LineString")
3314
- o = Tn(i.geometry, e);
3314
+ o = Cn(i.geometry, e);
3315
3315
  else if (s === "MultiLineString" || s === "Polygon") {
3316
3316
  o = [];
3317
3317
  for (const a of i.geometry)
3318
- o.push(Tn(a, e));
3318
+ o.push(Cn(a, e));
3319
3319
  } else if (s === "MultiPolygon") {
3320
3320
  o = [];
3321
3321
  for (const a of i.geometry) {
3322
3322
  const l = [];
3323
3323
  for (const u of a)
3324
- l.push(Tn(u, e));
3324
+ l.push(Cn(u, e));
3325
3325
  o.push(l);
3326
3326
  }
3327
3327
  }
@@ -3329,7 +3329,7 @@ function Hr(n, e) {
3329
3329
  }
3330
3330
  return t;
3331
3331
  }
3332
- function Tn(n, e) {
3332
+ function Cn(n, e) {
3333
3333
  const t = [];
3334
3334
  t.size = n.size, n.start !== void 0 && (t.start = n.start, t.end = n.end);
3335
3335
  for (let r = 0; r < n.length; r += 3)
@@ -3386,15 +3386,15 @@ function pl(n, e, t, r) {
3386
3386
  for (let a = 0; a < i.length; a += 3)
3387
3387
  o.push(i[a], i[a + 1]), n.numPoints++, n.numSimplified++;
3388
3388
  else if (s === "LineString")
3389
- Cn(o, i, n, t, !1, !1);
3389
+ Tn(o, i, n, t, !1, !1);
3390
3390
  else if (s === "MultiLineString" || s === "Polygon")
3391
3391
  for (let a = 0; a < i.length; a++)
3392
- Cn(o, i[a], n, t, s === "Polygon", a === 0);
3392
+ Tn(o, i[a], n, t, s === "Polygon", a === 0);
3393
3393
  else if (s === "MultiPolygon")
3394
3394
  for (let a = 0; a < i.length; a++) {
3395
3395
  const l = i[a];
3396
3396
  for (let u = 0; u < l.length; u++)
3397
- Cn(o, l[u], n, t, !0, u === 0);
3397
+ Tn(o, l[u], n, t, !0, u === 0);
3398
3398
  }
3399
3399
  if (o.length) {
3400
3400
  let a = e.tags || null;
@@ -3411,7 +3411,7 @@ function pl(n, e, t, r) {
3411
3411
  e.id !== null && (l.id = e.id), n.features.push(l);
3412
3412
  }
3413
3413
  }
3414
- function Cn(n, e, t, r, i, s) {
3414
+ function Tn(n, e, t, r, i, s) {
3415
3415
  const o = r * r;
3416
3416
  if (r > 0 && e.size < (i ? o : r)) {
3417
3417
  t.numPoints += e.length / 3;
@@ -3473,23 +3473,23 @@ class ml {
3473
3473
  const l = [e, t, r, i], u = this.options, c = u.debug;
3474
3474
  for (; l.length; ) {
3475
3475
  i = l.pop(), r = l.pop(), t = l.pop(), e = l.pop();
3476
- const f = 1 << t, d = _n(t, r, i);
3477
- let p = this.tiles[d];
3478
- if (!p && (c > 1 && console.time("creation"), p = this.tiles[d] = hl(e, t, r, i, u), this.tileCoords.push({ z: t, x: r, y: i }), c)) {
3476
+ const f = 1 << t, p = _n(t, r, i);
3477
+ let d = this.tiles[p];
3478
+ if (!d && (c > 1 && console.time("creation"), d = this.tiles[p] = hl(e, t, r, i, u), this.tileCoords.push({ z: t, x: r, y: i }), c)) {
3479
3479
  c > 1 && (console.log(
3480
3480
  "tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",
3481
3481
  t,
3482
3482
  r,
3483
3483
  i,
3484
- p.numFeatures,
3485
- p.numPoints,
3486
- p.numSimplified
3484
+ d.numFeatures,
3485
+ d.numPoints,
3486
+ d.numSimplified
3487
3487
  ), console.timeEnd("creation"));
3488
3488
  const I = `z${t}`;
3489
3489
  this.stats[I] = (this.stats[I] || 0) + 1, this.total++;
3490
3490
  }
3491
- if (p.source = e, s == null) {
3492
- if (t === u.indexMaxZoom || p.numPoints <= u.indexMaxPoints) continue;
3491
+ if (d.source = e, s == null) {
3492
+ if (t === u.indexMaxZoom || d.numPoints <= u.indexMaxPoints) continue;
3493
3493
  } else {
3494
3494
  if (t === u.maxZoom || t === s)
3495
3495
  continue;
@@ -3498,11 +3498,11 @@ class ml {
3498
3498
  if (r !== o >> I || i !== a >> I) continue;
3499
3499
  }
3500
3500
  }
3501
- if (p.source = null, e.length === 0) continue;
3501
+ if (d.source = null, e.length === 0) continue;
3502
3502
  c > 1 && console.time("clipping");
3503
3503
  const h = 0.5 * u.buffer / u.extent, y = 0.5 - h, m = 0.5 + h, v = 1 + h;
3504
- let w = null, g = null, x = null, b = null, C = ye(e, f, r - h, r + m, 0, p.minX, p.maxX, u), _ = ye(e, f, r + y, r + v, 0, p.minX, p.maxX, u);
3505
- e = null, C && (w = ye(C, f, i - h, i + m, 1, p.minY, p.maxY, u), g = ye(C, f, i + y, i + v, 1, p.minY, p.maxY, u), C = null), _ && (x = ye(_, f, i - h, i + m, 1, p.minY, p.maxY, u), b = ye(_, f, i + y, i + v, 1, p.minY, p.maxY, u), _ = null), c > 1 && console.timeEnd("clipping"), l.push(w || [], t + 1, r * 2, i * 2), l.push(g || [], t + 1, r * 2, i * 2 + 1), l.push(x || [], t + 1, r * 2 + 1, i * 2), l.push(b || [], t + 1, r * 2 + 1, i * 2 + 1);
3504
+ let w = null, g = null, x = null, b = null, T = ye(e, f, r - h, r + m, 0, d.minX, d.maxX, u), _ = ye(e, f, r + y, r + v, 0, d.minX, d.maxX, u);
3505
+ e = null, T && (w = ye(T, f, i - h, i + m, 1, d.minY, d.maxY, u), g = ye(T, f, i + y, i + v, 1, d.minY, d.maxY, u), T = null), _ && (x = ye(_, f, i - h, i + m, 1, d.minY, d.maxY, u), b = ye(_, f, i + y, i + v, 1, d.minY, d.maxY, u), _ = null), c > 1 && console.timeEnd("clipping"), l.push(w || [], t + 1, r * 2, i * 2), l.push(g || [], t + 1, r * 2, i * 2 + 1), l.push(x || [], t + 1, r * 2 + 1, i * 2), l.push(b || [], t + 1, r * 2 + 1, i * 2 + 1);
3506
3506
  }
3507
3507
  }
3508
3508
  getTile(e, t, r) {
@@ -3514,10 +3514,10 @@ class ml {
3514
3514
  const l = _n(e, t, r);
3515
3515
  if (this.tiles[l]) return Jr(this.tiles[l], s);
3516
3516
  o > 1 && console.log("drilling down to z%d-%d-%d", e, t, r);
3517
- let u = e, c = t, f = r, d;
3518
- for (; !d && u > 0; )
3519
- u--, c = c >> 1, f = f >> 1, d = this.tiles[_n(u, c, f)];
3520
- return !d || !d.source ? null : (o > 1 && (console.log("found parent tile z%d-%d-%d", u, c, f), console.time("drilling down")), this.splitTile(d.source, u, c, f, e, t, r), o > 1 && console.timeEnd("drilling down"), this.tiles[l] ? Jr(this.tiles[l], s) : null);
3517
+ let u = e, c = t, f = r, p;
3518
+ for (; !p && u > 0; )
3519
+ u--, c = c >> 1, f = f >> 1, p = this.tiles[_n(u, c, f)];
3520
+ return !p || !p.source ? null : (o > 1 && (console.log("found parent tile z%d-%d-%d", u, c, f), console.time("drilling down")), this.splitTile(p.source, u, c, f, e, t, r), o > 1 && console.timeEnd("drilling down"), this.tiles[l] ? Jr(this.tiles[l], s) : null);
3521
3521
  }
3522
3522
  }
3523
3523
  function _n(n, e, t) {
@@ -3554,7 +3554,7 @@ class bl {
3554
3554
  }
3555
3555
  }
3556
3556
  const te = 8192;
3557
- class wl extends Fi {
3557
+ class wl extends ki {
3558
3558
  constructor(e, t) {
3559
3559
  super(e, t);
3560
3560
  }
@@ -3588,7 +3588,7 @@ class wl extends Fi {
3588
3588
  }
3589
3589
  }
3590
3590
  Mi("geojson", wl);
3591
- var Tl = 8, Cl = {
3591
+ var Cl = 8, Tl = {
3592
3592
  version: {
3593
3593
  required: !0,
3594
3594
  type: "enum",
@@ -3871,7 +3871,7 @@ var Tl = 8, Cl = {
3871
3871
  "*": {
3872
3872
  type: "*"
3873
3873
  }
3874
- }, zl = {
3874
+ }, Al = {
3875
3875
  type: {
3876
3876
  required: !0,
3877
3877
  type: "enum",
@@ -3932,7 +3932,7 @@ var Tl = 8, Cl = {
3932
3932
  promoteId: {
3933
3933
  type: "promoteId"
3934
3934
  }
3935
- }, Al = {
3935
+ }, zl = {
3936
3936
  type: {
3937
3937
  required: !0,
3938
3938
  type: "enum",
@@ -3955,7 +3955,7 @@ var Tl = 8, Cl = {
3955
3955
  value: "number"
3956
3956
  }
3957
3957
  }
3958
- }, kl = {
3958
+ }, Fl = {
3959
3959
  type: {
3960
3960
  required: !0,
3961
3961
  type: "enum",
@@ -3977,7 +3977,7 @@ var Tl = 8, Cl = {
3977
3977
  value: "number"
3978
3978
  }
3979
3979
  }
3980
- }, Fl = {
3980
+ }, kl = {
3981
3981
  id: {
3982
3982
  type: "string",
3983
3983
  required: !0
@@ -6508,17 +6508,17 @@ var Tl = 8, Cl = {
6508
6508
  }
6509
6509
  }
6510
6510
  }, cu = {
6511
- $version: Tl,
6512
- $root: Cl,
6511
+ $version: Cl,
6512
+ $root: Tl,
6513
6513
  sources: _l,
6514
6514
  source: Il,
6515
6515
  source_vector: Ll,
6516
6516
  source_raster: Sl,
6517
6517
  source_raster_dem: El,
6518
- source_geojson: zl,
6519
- source_video: Al,
6520
- source_image: kl,
6521
- layer: Fl,
6518
+ source_geojson: Al,
6519
+ source_video: zl,
6520
+ source_image: Fl,
6521
+ layer: kl,
6522
6522
  layout: Pl,
6523
6523
  layout_background: Ml,
6524
6524
  layout_fill: Ol,
@@ -6834,9 +6834,9 @@ class cr {
6834
6834
  return this.bindings[e] ? !0 : this.parent ? this.parent.has(e) : !1;
6835
6835
  }
6836
6836
  }
6837
- const Qt = { kind: "null" }, T = { kind: "number" }, z = { kind: "string" }, S = { kind: "boolean" }, fe = { kind: "color" }, en = {
6837
+ const Qt = { kind: "null" }, C = { kind: "number" }, A = { kind: "string" }, S = { kind: "boolean" }, fe = { kind: "color" }, en = {
6838
6838
  kind: "projectionDefinition"
6839
- }, ze = { kind: "object" }, L = { kind: "value" }, fu = { kind: "error" }, tn = { kind: "collator" }, nn = { kind: "formatted" }, rn = { kind: "padding" }, ot = { kind: "colorArray" }, sn = { kind: "numberArray" }, mt = { kind: "resolvedImage" }, on = {
6839
+ }, Ae = { kind: "object" }, L = { kind: "value" }, fu = { kind: "error" }, tn = { kind: "collator" }, nn = { kind: "formatted" }, rn = { kind: "padding" }, ot = { kind: "colorArray" }, sn = { kind: "numberArray" }, mt = { kind: "resolvedImage" }, on = {
6840
6840
  kind: "variableAnchorOffsetCollection"
6841
6841
  };
6842
6842
  function ee(n, e) {
@@ -6855,13 +6855,13 @@ function O(n) {
6855
6855
  }
6856
6856
  const hu = [
6857
6857
  Qt,
6858
- T,
6859
- z,
6858
+ C,
6859
+ A,
6860
6860
  S,
6861
6861
  fe,
6862
6862
  en,
6863
6863
  nn,
6864
- ze,
6864
+ Ae,
6865
6865
  ee(L),
6866
6866
  rn,
6867
6867
  sn,
@@ -6889,7 +6889,7 @@ function at(n, e) {
6889
6889
  function fr(n, e) {
6890
6890
  return e.some((t) => t.kind === n.kind);
6891
6891
  }
6892
- function Ae(n, e) {
6892
+ function ze(n, e) {
6893
6893
  return e.some((t) => t === "null" ? n === null : t === "array" ? Array.isArray(n) : t === "object" ? n && !Array.isArray(n) && typeof n == "object" : t === typeof n);
6894
6894
  }
6895
6895
  function ve(n, e) {
@@ -6984,9 +6984,9 @@ function bu(n) {
6984
6984
  // <numeric>
6985
6985
  f,
6986
6986
  // % (optional)
6987
- d,
6988
- // , (optional)
6989
6987
  p,
6988
+ // , (optional)
6989
+ d,
6990
6990
  // <numeric>
6991
6991
  h,
6992
6992
  // % (optional)
@@ -6996,14 +6996,14 @@ function bu(n) {
6996
6996
  // <numeric> (optional)
6997
6997
  v
6998
6998
  // % (optional)
6999
- ] = s, w = [u || " ", d || " ", y].join("");
6999
+ ] = s, w = [u || " ", p || " ", y].join("");
7000
7000
  if (w === " " || w === " /" || w === ",," || w === ",,,") {
7001
7001
  const g = [l, f, h].join(""), x = g === "%%%" ? 100 : g === "" ? 255 : 0;
7002
7002
  if (x) {
7003
7003
  const b = [
7004
7004
  Ne(+a / x, 0, 1),
7005
7005
  Ne(+c / x, 0, 1),
7006
- Ne(+p / x, 0, 1),
7006
+ Ne(+d / x, 0, 1),
7007
7007
  m ? ei(+m, v) : 1
7008
7008
  ];
7009
7009
  if (ti(b))
@@ -7032,15 +7032,15 @@ function bu(n) {
7032
7032
  // ,|/ (optional)
7033
7033
  f,
7034
7034
  // <numeric> (optional)
7035
- d
7035
+ p
7036
7036
  // % (optional)
7037
- ] = r, p = [o || " ", l || " ", c].join("");
7038
- if (p === " " || p === " /" || p === ",," || p === ",,,") {
7037
+ ] = r, d = [o || " ", l || " ", c].join("");
7038
+ if (d === " " || d === " /" || d === ",," || d === ",,,") {
7039
7039
  const h = [
7040
7040
  +s,
7041
7041
  Ne(+a, 0, 100),
7042
7042
  Ne(+u, 0, 100),
7043
- f ? ei(+f, d) : 1
7043
+ f ? ei(+f, p) : 1
7044
7044
  ];
7045
7045
  if (ti(h))
7046
7046
  return xu(h);
@@ -7209,16 +7209,16 @@ const wu = {
7209
7209
  yellow: [255, 255, 0],
7210
7210
  yellowgreen: [154, 205, 50]
7211
7211
  };
7212
- function Ce(n, e, t) {
7212
+ function Te(n, e, t) {
7213
7213
  return n + t * (e - n);
7214
7214
  }
7215
7215
  function je(n, e, t) {
7216
- return n.map((r, i) => Ce(r, e[i], t));
7216
+ return n.map((r, i) => Te(r, e[i], t));
7217
7217
  }
7218
- function Tu(n) {
7218
+ function Cu(n) {
7219
7219
  return n === "rgb" || n === "hcl" || n === "lab";
7220
7220
  }
7221
- class k {
7221
+ class F {
7222
7222
  /**
7223
7223
  * @param r Red component premultiplied by `alpha` 0..1
7224
7224
  * @param g Green component premultiplied by `alpha` 0..1
@@ -7243,13 +7243,13 @@ class k {
7243
7243
  * @returns A `Color` instance, or `undefined` if the input is not a valid color string.
7244
7244
  */
7245
7245
  static parse(e) {
7246
- if (e instanceof k)
7246
+ if (e instanceof F)
7247
7247
  return e;
7248
7248
  if (typeof e != "string")
7249
7249
  return;
7250
7250
  const t = bu(e);
7251
7251
  if (t)
7252
- return new k(...t, !1);
7252
+ return new F(...t, !1);
7253
7253
  }
7254
7254
  /**
7255
7255
  * Used in color interpolation and by 'to-rgba' expression.
@@ -7318,34 +7318,34 @@ class k {
7318
7318
  switch (i) {
7319
7319
  case "rgb": {
7320
7320
  const [s, o, a, l] = je(e.rgb, t.rgb, r);
7321
- return new k(s, o, a, l, !1);
7321
+ return new F(s, o, a, l, !1);
7322
7322
  }
7323
7323
  case "hcl": {
7324
- const [s, o, a, l] = e.hcl, [u, c, f, d] = t.hcl;
7325
- let p, h;
7324
+ const [s, o, a, l] = e.hcl, [u, c, f, p] = t.hcl;
7325
+ let d, h;
7326
7326
  if (!isNaN(s) && !isNaN(u)) {
7327
7327
  let g = u - s;
7328
- u > s && g > 180 ? g -= 360 : u < s && s - u > 180 && (g += 360), p = s + r * g;
7329
- } else isNaN(s) ? isNaN(u) ? p = NaN : (p = u, (a === 1 || a === 0) && (h = c)) : (p = s, (f === 1 || f === 0) && (h = o));
7328
+ u > s && g > 180 ? g -= 360 : u < s && s - u > 180 && (g += 360), d = s + r * g;
7329
+ } else isNaN(s) ? isNaN(u) ? d = NaN : (d = u, (a === 1 || a === 0) && (h = c)) : (d = s, (f === 1 || f === 0) && (h = o));
7330
7330
  const [y, m, v, w] = gu([
7331
- p,
7332
- h ?? Ce(o, c, r),
7333
- Ce(a, f, r),
7334
- Ce(l, d, r)
7331
+ d,
7332
+ h ?? Te(o, c, r),
7333
+ Te(a, f, r),
7334
+ Te(l, p, r)
7335
7335
  ]);
7336
- return new k(y, m, v, w, !1);
7336
+ return new F(y, m, v, w, !1);
7337
7337
  }
7338
7338
  case "lab": {
7339
7339
  const [s, o, a, l] = ps(je(e.lab, t.lab, r));
7340
- return new k(s, o, a, l, !1);
7340
+ return new F(s, o, a, l, !1);
7341
7341
  }
7342
7342
  }
7343
7343
  }
7344
7344
  }
7345
- k.black = new k(0, 0, 0, 1);
7346
- k.white = new k(1, 1, 1, 1);
7347
- k.transparent = new k(0, 0, 0, 0);
7348
- k.red = new k(1, 0, 0, 1);
7345
+ F.black = new F(0, 0, 0, 1);
7346
+ F.white = new F(1, 1, 1, 1);
7347
+ F.transparent = new F(0, 0, 0, 0);
7348
+ F.red = new F(1, 0, 0, 1);
7349
7349
  class hr {
7350
7350
  constructor(e, t, r) {
7351
7351
  e ? this.sensitivity = t ? "variant" : "case" : this.sensitivity = t ? "accent" : "base", this.locale = r, this.collator = new Intl.Collator(this.locale ? this.locale : [], {
@@ -7360,7 +7360,7 @@ class hr {
7360
7360
  return new Intl.Collator(this.locale ? this.locale : []).resolvedOptions().locale;
7361
7361
  }
7362
7362
  }
7363
- const Cu = ["bottom", "center", "top"];
7363
+ const Tu = ["bottom", "center", "top"];
7364
7364
  class Un {
7365
7365
  constructor(e, t, r, i, s, o) {
7366
7366
  this.text = e, this.image = t, this.scale = r, this.fontStack = i, this.textColor = s, this.verticalAlign = o;
@@ -7463,7 +7463,7 @@ class $ {
7463
7463
  if (e instanceof $)
7464
7464
  return e;
7465
7465
  if (typeof e == "string") {
7466
- const r = k.parse(e);
7466
+ const r = F.parse(e);
7467
7467
  return r ? new $([r]) : void 0;
7468
7468
  }
7469
7469
  if (!Array.isArray(e))
@@ -7472,7 +7472,7 @@ class $ {
7472
7472
  for (const r of e) {
7473
7473
  if (typeof r != "string")
7474
7474
  return;
7475
- const i = k.parse(r);
7475
+ const i = F.parse(r);
7476
7476
  if (!i)
7477
7477
  return;
7478
7478
  t.push(i);
@@ -7487,7 +7487,7 @@ class $ {
7487
7487
  if (e.values.length != t.values.length)
7488
7488
  throw new Error(`colorArray: Arrays have mismatched length (${e.values.length} vs. ${t.values.length}), cannot interpolate.`);
7489
7489
  for (let o = 0; o < e.values.length; o++)
7490
- s.push(k.interpolate(e.values[o], t.values[o], r, i));
7490
+ s.push(F.interpolate(e.values[o], t.values[o], r, i));
7491
7491
  return new $(s);
7492
7492
  }
7493
7493
  }
@@ -7539,7 +7539,7 @@ class ie {
7539
7539
  throw new V(`Cannot interpolate values containing mismatched anchors. from[${a}]: ${i[a]}, to[${a}]: ${s[a]}`);
7540
7540
  o.push(i[a]);
7541
7541
  const [l, u] = i[a + 1], [c, f] = s[a + 1];
7542
- o.push([Ce(l, c, r), Ce(u, f, r)]);
7542
+ o.push([Te(l, c, r), Te(u, f, r)]);
7543
7543
  }
7544
7544
  return new ie(o);
7545
7545
  }
@@ -7577,7 +7577,7 @@ function ys(n, e, t, r) {
7577
7577
  return typeof n == "number" && n >= 0 && n <= 255 && typeof e == "number" && e >= 0 && e <= 255 && typeof t == "number" && t >= 0 && t <= 255 ? typeof r > "u" || typeof r == "number" && r >= 0 && r <= 1 ? null : `Invalid rgba value [${[n, e, t, r].join(", ")}]: 'a' must be between 0 and 1.` : `Invalid rgba value [${(typeof r == "number" ? [n, e, t, r] : [n, e, t]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`;
7578
7578
  }
7579
7579
  function lt(n) {
7580
- if (n === null || typeof n == "string" || typeof n == "boolean" || typeof n == "number" || n instanceof ne || n instanceof k || n instanceof hr || n instanceof he || n instanceof W || n instanceof H || n instanceof $ || n instanceof ie || n instanceof de)
7580
+ if (n === null || typeof n == "string" || typeof n == "boolean" || typeof n == "number" || n instanceof ne || n instanceof F || n instanceof hr || n instanceof he || n instanceof W || n instanceof H || n instanceof $ || n instanceof ie || n instanceof de)
7581
7581
  return !0;
7582
7582
  if (Array.isArray(n)) {
7583
7583
  for (const e of n)
@@ -7596,12 +7596,12 @@ function R(n) {
7596
7596
  if (n === null)
7597
7597
  return Qt;
7598
7598
  if (typeof n == "string")
7599
- return z;
7599
+ return A;
7600
7600
  if (typeof n == "boolean")
7601
7601
  return S;
7602
7602
  if (typeof n == "number")
7603
- return T;
7604
- if (n instanceof k)
7603
+ return C;
7604
+ if (n instanceof F)
7605
7605
  return fe;
7606
7606
  if (n instanceof ne)
7607
7607
  return en;
@@ -7635,11 +7635,11 @@ function R(n) {
7635
7635
  }
7636
7636
  return ee(t || L, e);
7637
7637
  } else
7638
- return ze;
7638
+ return Ae;
7639
7639
  }
7640
7640
  function it(n) {
7641
7641
  const e = typeof n;
7642
- return n === null ? "" : e === "string" || e === "number" || e === "boolean" ? String(n) : n instanceof k || n instanceof ne || n instanceof he || n instanceof W || n instanceof H || n instanceof $ || n instanceof ie || n instanceof de ? n.toString() : JSON.stringify(n);
7642
+ return n === null ? "" : e === "string" || e === "number" || e === "boolean" ? String(n) : n instanceof F || n instanceof ne || n instanceof he || n instanceof W || n instanceof H || n instanceof $ || n instanceof ie || n instanceof de ? n.toString() : JSON.stringify(n);
7643
7643
  }
7644
7644
  class Ze {
7645
7645
  constructor(e, t) {
@@ -7665,10 +7665,10 @@ class Ze {
7665
7665
  }
7666
7666
  }
7667
7667
  const Et = {
7668
- string: z,
7669
- number: T,
7668
+ string: A,
7669
+ number: C,
7670
7670
  boolean: S,
7671
- object: ze
7671
+ object: Ae
7672
7672
  };
7673
7673
  class ae {
7674
7674
  constructor(e, t) {
@@ -7729,10 +7729,10 @@ class ae {
7729
7729
  const ni = {
7730
7730
  "to-boolean": S,
7731
7731
  "to-color": fe,
7732
- "to-number": T,
7733
- "to-string": z
7732
+ "to-number": C,
7733
+ "to-string": A
7734
7734
  };
7735
- class Te {
7735
+ class Ce {
7736
7736
  constructor(e, t) {
7737
7737
  this.type = e, this.args = t;
7738
7738
  }
@@ -7751,7 +7751,7 @@ class Te {
7751
7751
  return null;
7752
7752
  s.push(a);
7753
7753
  }
7754
- return new Te(i, s);
7754
+ return new Ce(i, s);
7755
7755
  }
7756
7756
  evaluate(e) {
7757
7757
  switch (this.type.kind) {
@@ -7760,14 +7760,14 @@ class Te {
7760
7760
  case "color": {
7761
7761
  let t, r;
7762
7762
  for (const i of this.args) {
7763
- if (t = i.evaluate(e), r = null, t instanceof k)
7763
+ if (t = i.evaluate(e), r = null, t instanceof F)
7764
7764
  return t;
7765
7765
  if (typeof t == "string") {
7766
7766
  const s = e.parseColor(t);
7767
7767
  if (s)
7768
7768
  return s;
7769
7769
  } else if (Array.isArray(t) && (t.length < 3 || t.length > 4 ? r = `Invalid rgba value ${JSON.stringify(t)}: expected an array containing either three or four numeric values.` : r = ys(t[0], t[1], t[2], t[3]), !r))
7770
- return new k(t[0] / 255, t[1] / 255, t[2] / 255, t[3]);
7770
+ return new F(t[0] / 255, t[1] / 255, t[2] / 255, t[3]);
7771
7771
  }
7772
7772
  throw new V(r || `Could not parse color from value '${typeof t == "string" ? t : JSON.stringify(t)}'`);
7773
7773
  }
@@ -7861,7 +7861,7 @@ class ms {
7861
7861
  }
7862
7862
  parseColor(e) {
7863
7863
  let t = this._parseColorCache.get(e);
7864
- return t || (t = k.parse(e), this._parseColorCache.set(e, t)), t;
7864
+ return t || (t = F.parse(e), this._parseColorCache.set(e, t)), t;
7865
7865
  }
7866
7866
  }
7867
7867
  class an {
@@ -7881,7 +7881,7 @@ class an {
7881
7881
  _parse(e, t) {
7882
7882
  (e === null || typeof e == "string" || typeof e == "boolean" || typeof e == "number") && (e = ["literal", e]);
7883
7883
  function r(i, s, o) {
7884
- return o === "assert" ? new ae(s, [i]) : o === "coerce" ? new Te(s, [i]) : i;
7884
+ return o === "assert" ? new ae(s, [i]) : o === "coerce" ? new Ce(s, [i]) : i;
7885
7885
  }
7886
7886
  if (Array.isArray(e)) {
7887
7887
  if (e.length === 0)
@@ -8011,7 +8011,7 @@ class pr {
8011
8011
  static parse(e, t) {
8012
8012
  if (e.length !== 3)
8013
8013
  return t.error(`Expected 2 arguments, but found ${e.length - 1} instead.`);
8014
- const r = t.parse(e[1], 1, T), i = t.parse(e[2], 2, ee(t.expectedType || L));
8014
+ const r = t.parse(e[1], 1, C), i = t.parse(e[2], 2, ee(t.expectedType || L));
8015
8015
  if (!r || !i)
8016
8016
  return null;
8017
8017
  const s = i.type;
@@ -8042,15 +8042,15 @@ class dr {
8042
8042
  if (e.length !== 3)
8043
8043
  return t.error(`Expected 2 arguments, but found ${e.length - 1} instead.`);
8044
8044
  const r = t.parse(e[1], 1, L), i = t.parse(e[2], 2, L);
8045
- return !r || !i ? null : fr(r.type, [S, z, T, Qt, L]) ? new dr(r, i) : t.error(`Expected first argument to be of type boolean, string, number or null, but found ${O(r.type)} instead`);
8045
+ return !r || !i ? null : fr(r.type, [S, A, C, Qt, L]) ? new dr(r, i) : t.error(`Expected first argument to be of type boolean, string, number or null, but found ${O(r.type)} instead`);
8046
8046
  }
8047
8047
  evaluate(e) {
8048
8048
  const t = this.needle.evaluate(e), r = this.haystack.evaluate(e);
8049
8049
  if (!r)
8050
8050
  return !1;
8051
- if (!Ae(t, ["boolean", "string", "number", "null"]))
8051
+ if (!ze(t, ["boolean", "string", "number", "null"]))
8052
8052
  throw new V(`Expected first argument to be of type boolean, string, number or null, but found ${O(R(t))} instead.`);
8053
- if (!Ae(r, ["string", "array"]))
8053
+ if (!ze(r, ["string", "array"]))
8054
8054
  throw new V(`Expected second argument to be of type array or string, but found ${O(R(r))} instead.`);
8055
8055
  return r.indexOf(t) >= 0;
8056
8056
  }
@@ -8063,7 +8063,7 @@ class dr {
8063
8063
  }
8064
8064
  class Nt {
8065
8065
  constructor(e, t, r) {
8066
- this.type = T, this.needle = e, this.haystack = t, this.fromIndex = r;
8066
+ this.type = C, this.needle = e, this.haystack = t, this.fromIndex = r;
8067
8067
  }
8068
8068
  static parse(e, t) {
8069
8069
  if (e.length <= 2 || e.length >= 5)
@@ -8071,24 +8071,24 @@ class Nt {
8071
8071
  const r = t.parse(e[1], 1, L), i = t.parse(e[2], 2, L);
8072
8072
  if (!r || !i)
8073
8073
  return null;
8074
- if (!fr(r.type, [S, z, T, Qt, L]))
8074
+ if (!fr(r.type, [S, A, C, Qt, L]))
8075
8075
  return t.error(`Expected first argument to be of type boolean, string, number or null, but found ${O(r.type)} instead`);
8076
8076
  if (e.length === 4) {
8077
- const s = t.parse(e[3], 3, T);
8077
+ const s = t.parse(e[3], 3, C);
8078
8078
  return s ? new Nt(r, i, s) : null;
8079
8079
  } else
8080
8080
  return new Nt(r, i);
8081
8081
  }
8082
8082
  evaluate(e) {
8083
8083
  const t = this.needle.evaluate(e), r = this.haystack.evaluate(e);
8084
- if (!Ae(t, ["boolean", "string", "number", "null"]))
8084
+ if (!ze(t, ["boolean", "string", "number", "null"]))
8085
8085
  throw new V(`Expected first argument to be of type boolean, string, number or null, but found ${O(R(t))} instead.`);
8086
8086
  let i;
8087
- if (this.fromIndex && (i = this.fromIndex.evaluate(e)), Ae(r, ["string"])) {
8087
+ if (this.fromIndex && (i = this.fromIndex.evaluate(e)), ze(r, ["string"])) {
8088
8088
  const s = r.indexOf(t, i);
8089
8089
  return s === -1 ? -1 : [...r.slice(0, s)].length;
8090
8090
  } else {
8091
- if (Ae(r, ["array"]))
8091
+ if (ze(r, ["array"]))
8092
8092
  return r.indexOf(t, i);
8093
8093
  throw new V(`Expected second argument to be of type array or string, but found ${O(R(r))} instead.`);
8094
8094
  }
@@ -8116,28 +8116,28 @@ class yr {
8116
8116
  let c = e[u];
8117
8117
  const f = e[u + 1];
8118
8118
  Array.isArray(c) || (c = [c]);
8119
- const d = t.concat(u);
8119
+ const p = t.concat(u);
8120
8120
  if (c.length === 0)
8121
- return d.error("Expected at least one branch label.");
8121
+ return p.error("Expected at least one branch label.");
8122
8122
  for (const h of c) {
8123
8123
  if (typeof h != "number" && typeof h != "string")
8124
- return d.error("Branch labels must be numbers or strings.");
8124
+ return p.error("Branch labels must be numbers or strings.");
8125
8125
  if (typeof h == "number" && Math.abs(h) > Number.MAX_SAFE_INTEGER)
8126
- return d.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);
8126
+ return p.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);
8127
8127
  if (typeof h == "number" && Math.floor(h) !== h)
8128
- return d.error("Numeric branch labels must be integer values.");
8128
+ return p.error("Numeric branch labels must be integer values.");
8129
8129
  if (!r)
8130
8130
  r = R(h);
8131
- else if (d.checkSubtype(r, R(h)))
8131
+ else if (p.checkSubtype(r, R(h)))
8132
8132
  return null;
8133
8133
  if (typeof s[String(h)] < "u")
8134
- return d.error("Branch labels must be unique.");
8134
+ return p.error("Branch labels must be unique.");
8135
8135
  s[String(h)] = o.length;
8136
8136
  }
8137
- const p = t.parse(f, u, i);
8138
- if (!p)
8137
+ const d = t.parse(f, u, i);
8138
+ if (!d)
8139
8139
  return null;
8140
- i = i || p.type, o.push(p);
8140
+ i = i || d.type, o.push(d);
8141
8141
  }
8142
8142
  const a = t.parse(e[1], 1, L);
8143
8143
  if (!a)
@@ -8206,13 +8206,13 @@ class Bt {
8206
8206
  static parse(e, t) {
8207
8207
  if (e.length <= 2 || e.length >= 5)
8208
8208
  return t.error(`Expected 2 or 3 arguments, but found ${e.length - 1} instead.`);
8209
- const r = t.parse(e[1], 1, L), i = t.parse(e[2], 2, T);
8209
+ const r = t.parse(e[1], 1, L), i = t.parse(e[2], 2, C);
8210
8210
  if (!r || !i)
8211
8211
  return null;
8212
- if (!fr(r.type, [ee(L), z, L]))
8212
+ if (!fr(r.type, [ee(L), A, L]))
8213
8213
  return t.error(`Expected first argument to be of type array or string, but found ${O(r.type)} instead`);
8214
8214
  if (e.length === 4) {
8215
- const s = t.parse(e[3], 3, T);
8215
+ const s = t.parse(e[3], 3, C);
8216
8216
  return s ? new Bt(r.type, r, i, s) : null;
8217
8217
  } else
8218
8218
  return new Bt(r.type, r, i);
@@ -8220,9 +8220,9 @@ class Bt {
8220
8220
  evaluate(e) {
8221
8221
  const t = this.input.evaluate(e), r = this.beginIndex.evaluate(e);
8222
8222
  let i;
8223
- if (this.endIndex && (i = this.endIndex.evaluate(e)), Ae(t, ["string"]))
8223
+ if (this.endIndex && (i = this.endIndex.evaluate(e)), ze(t, ["string"]))
8224
8224
  return [...t].slice(r, i).join("");
8225
- if (Ae(t, ["array"]))
8225
+ if (ze(t, ["array"]))
8226
8226
  return t.slice(r, i);
8227
8227
  throw new V(`Expected first argument to be of type array or string, but found ${O(R(t))} instead.`);
8228
8228
  }
@@ -8258,7 +8258,7 @@ class fn {
8258
8258
  return t.error(`Expected at least 4 arguments, but found only ${e.length - 1}.`);
8259
8259
  if ((e.length - 1) % 2 !== 0)
8260
8260
  return t.error("Expected an even number of arguments.");
8261
- const r = t.parse(e[1], 1, T);
8261
+ const r = t.parse(e[1], 1, C);
8262
8262
  if (!r)
8263
8263
  return null;
8264
8264
  const i = [];
@@ -8302,10 +8302,10 @@ class fn {
8302
8302
  function Lu(n) {
8303
8303
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
8304
8304
  }
8305
- var zn, ri;
8305
+ var An, ri;
8306
8306
  function Su() {
8307
- if (ri) return zn;
8308
- ri = 1, zn = n;
8307
+ if (ri) return An;
8308
+ ri = 1, An = n;
8309
8309
  function n(e, t, r, i) {
8310
8310
  this.cx = 3 * e, this.bx = 3 * (r - e) - this.cx, this.ax = 1 - this.cx - this.bx, this.cy = 3 * t, this.by = 3 * (i - t) - this.cy, this.ay = 1 - this.cy - this.by, this.p1x = e, this.p1y = t, this.p2x = r, this.p2y = i;
8311
8311
  }
@@ -8337,9 +8337,9 @@ function Su() {
8337
8337
  solve: function(e, t) {
8338
8338
  return this.sampleCurveY(this.solveCurveX(e, t));
8339
8339
  }
8340
- }, zn;
8340
+ }, An;
8341
8341
  }
8342
- var Eu = Su(), zu = /* @__PURE__ */ Lu(Eu);
8342
+ var Eu = Su(), Au = /* @__PURE__ */ Lu(Eu);
8343
8343
  class se {
8344
8344
  constructor(e, t, r, i, s) {
8345
8345
  this.type = e, this.operator = t, this.interpolation = r, this.input = i, this.labels = [], this.outputs = [];
@@ -8349,12 +8349,12 @@ class se {
8349
8349
  static interpolationFactor(e, t, r, i) {
8350
8350
  let s = 0;
8351
8351
  if (e.name === "exponential")
8352
- s = An(t, e.base, r, i);
8352
+ s = zn(t, e.base, r, i);
8353
8353
  else if (e.name === "linear")
8354
- s = An(t, 1, r, i);
8354
+ s = zn(t, 1, r, i);
8355
8355
  else if (e.name === "cubic-bezier") {
8356
8356
  const o = e.controlPoints;
8357
- s = new zu(o[0], o[1], o[2], o[3]).solve(An(t, 1, r, i));
8357
+ s = new Au(o[0], o[1], o[2], o[3]).solve(zn(t, 1, r, i));
8358
8358
  }
8359
8359
  return s;
8360
8360
  }
@@ -8386,23 +8386,23 @@ class se {
8386
8386
  return t.error(`Expected at least 4 arguments, but found only ${e.length - 1}.`);
8387
8387
  if ((e.length - 1) % 2 !== 0)
8388
8388
  return t.error("Expected an even number of arguments.");
8389
- if (s = t.parse(s, 2, T), !s)
8389
+ if (s = t.parse(s, 2, C), !s)
8390
8390
  return null;
8391
8391
  const a = [];
8392
8392
  let l = null;
8393
8393
  (r === "interpolate-hcl" || r === "interpolate-lab") && t.expectedType != ot ? l = fe : t.expectedType && t.expectedType.kind !== "value" && (l = t.expectedType);
8394
8394
  for (let u = 0; u < o.length; u += 2) {
8395
- const c = o[u], f = o[u + 1], d = u + 3, p = u + 4;
8395
+ const c = o[u], f = o[u + 1], p = u + 3, d = u + 4;
8396
8396
  if (typeof c != "number")
8397
- return t.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.', d);
8397
+ return t.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.', p);
8398
8398
  if (a.length && a[a.length - 1][0] >= c)
8399
- return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.', d);
8400
- const h = t.parse(f, p, l);
8399
+ return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.', p);
8400
+ const h = t.parse(f, d, l);
8401
8401
  if (!h)
8402
8402
  return null;
8403
8403
  l = l || h.type, a.push([c, h]);
8404
8404
  }
8405
- return !ve(l, T) && !ve(l, en) && !ve(l, fe) && !ve(l, rn) && !ve(l, sn) && !ve(l, ot) && !ve(l, on) && !ve(l, ee(T)) ? t.error(`Type ${O(l)} is not interpolatable.`) : new se(l, r, i, s, a);
8405
+ return !ve(l, C) && !ve(l, en) && !ve(l, fe) && !ve(l, rn) && !ve(l, sn) && !ve(l, ot) && !ve(l, on) && !ve(l, ee(C)) ? t.error(`Type ${O(l)} is not interpolatable.`) : new se(l, r, i, s, a);
8406
8406
  }
8407
8407
  evaluate(e) {
8408
8408
  const t = this.labels, r = this.outputs;
@@ -8419,9 +8419,9 @@ class se {
8419
8419
  case "interpolate":
8420
8420
  switch (this.type.kind) {
8421
8421
  case "number":
8422
- return Ce(c, f, u);
8422
+ return Te(c, f, u);
8423
8423
  case "color":
8424
- return k.interpolate(c, f, u);
8424
+ return F.interpolate(c, f, u);
8425
8425
  case "padding":
8426
8426
  return W.interpolate(c, f, u);
8427
8427
  case "colorArray":
@@ -8438,14 +8438,14 @@ class se {
8438
8438
  case "interpolate-hcl":
8439
8439
  switch (this.type.kind) {
8440
8440
  case "color":
8441
- return k.interpolate(c, f, u, "hcl");
8441
+ return F.interpolate(c, f, u, "hcl");
8442
8442
  case "colorArray":
8443
8443
  return $.interpolate(c, f, u, "hcl");
8444
8444
  }
8445
8445
  case "interpolate-lab":
8446
8446
  switch (this.type.kind) {
8447
8447
  case "color":
8448
- return k.interpolate(c, f, u, "lab");
8448
+ return F.interpolate(c, f, u, "lab");
8449
8449
  case "colorArray":
8450
8450
  return $.interpolate(c, f, u, "lab");
8451
8451
  }
@@ -8460,13 +8460,13 @@ class se {
8460
8460
  return this.outputs.every((e) => e.outputDefined());
8461
8461
  }
8462
8462
  }
8463
- function An(n, e, t, r) {
8463
+ function zn(n, e, t, r) {
8464
8464
  const i = r - t, s = n - t;
8465
8465
  return i === 0 ? 0 : e === 1 ? s / i : (Math.pow(e, s) - 1) / (Math.pow(e, i) - 1);
8466
8466
  }
8467
- const Au = {
8468
- color: k.interpolate,
8469
- number: Ce,
8467
+ const zu = {
8468
+ color: F.interpolate,
8469
+ number: Te,
8470
8470
  padding: W.interpolate,
8471
8471
  numberArray: H.interpolate,
8472
8472
  colorArray: $.interpolate,
@@ -8513,10 +8513,10 @@ class ut {
8513
8513
  function ii(n, e) {
8514
8514
  return n === "==" || n === "!=" ? e.kind === "boolean" || e.kind === "string" || e.kind === "number" || e.kind === "null" || e.kind === "value" : e.kind === "string" || e.kind === "number" || e.kind === "value";
8515
8515
  }
8516
- function ku(n, e, t) {
8516
+ function Fu(n, e, t) {
8517
8517
  return e === t;
8518
8518
  }
8519
- function Fu(n, e, t) {
8519
+ function ku(n, e, t) {
8520
8520
  return e !== t;
8521
8521
  }
8522
8522
  function Pu(n, e, t) {
@@ -8603,7 +8603,7 @@ function Je(n, e, t) {
8603
8603
  }
8604
8604
  };
8605
8605
  }
8606
- const Gu = Je("==", ku, gs), Uu = Je("!=", Fu, Du), $u = Je("<", Pu, Nu), ju = Je(">", Mu, Bu), Zu = Je("<=", Ou, Ru), Xu = Je(">=", Vu, qu);
8606
+ const Gu = Je("==", Fu, gs), Uu = Je("!=", ku, Du), $u = Je("<", Pu, Nu), ju = Je(">", Mu, Bu), Zu = Je("<=", Ou, Ru), Xu = Je(">=", Vu, qu);
8607
8607
  class hn {
8608
8608
  constructor(e, t, r) {
8609
8609
  this.type = tn, this.locale = r, this.caseSensitive = e, this.diacriticSensitive = t;
@@ -8621,7 +8621,7 @@ class hn {
8621
8621
  if (!s)
8622
8622
  return null;
8623
8623
  let o = null;
8624
- return r.locale && (o = t.parse(r.locale, 1, z), !o) ? null : new hn(i, s, o);
8624
+ return r.locale && (o = t.parse(r.locale, 1, A), !o) ? null : new hn(i, s, o);
8625
8625
  }
8626
8626
  evaluate(e) {
8627
8627
  return new hr(this.caseSensitive.evaluate(e), this.diacriticSensitive.evaluate(e), this.locale ? this.locale.evaluate(e) : null);
@@ -8635,28 +8635,28 @@ class hn {
8635
8635
  }
8636
8636
  class gr {
8637
8637
  constructor(e, t, r, i, s) {
8638
- this.type = z, this.number = e, this.locale = t, this.currency = r, this.minFractionDigits = i, this.maxFractionDigits = s;
8638
+ this.type = A, this.number = e, this.locale = t, this.currency = r, this.minFractionDigits = i, this.maxFractionDigits = s;
8639
8639
  }
8640
8640
  static parse(e, t) {
8641
8641
  if (e.length !== 3)
8642
8642
  return t.error("Expected two arguments.");
8643
- const r = t.parse(e[1], 1, T);
8643
+ const r = t.parse(e[1], 1, C);
8644
8644
  if (!r)
8645
8645
  return null;
8646
8646
  const i = e[2];
8647
8647
  if (typeof i != "object" || Array.isArray(i))
8648
8648
  return t.error("NumberFormat options argument must be an object.");
8649
8649
  let s = null;
8650
- if (i.locale && (s = t.parse(i.locale, 1, z), !s))
8650
+ if (i.locale && (s = t.parse(i.locale, 1, A), !s))
8651
8651
  return null;
8652
8652
  let o = null;
8653
- if (i.currency && (o = t.parse(i.currency, 1, z), !o))
8653
+ if (i.currency && (o = t.parse(i.currency, 1, A), !o))
8654
8654
  return null;
8655
8655
  let a = null;
8656
- if (i["min-fraction-digits"] && (a = t.parse(i["min-fraction-digits"], 1, T), !a))
8656
+ if (i["min-fraction-digits"] && (a = t.parse(i["min-fraction-digits"], 1, C), !a))
8657
8657
  return null;
8658
8658
  let l = null;
8659
- return i["max-fraction-digits"] && (l = t.parse(i["max-fraction-digits"], 1, T), !l) ? null : new gr(r, s, o, a, l);
8659
+ return i["max-fraction-digits"] && (l = t.parse(i["max-fraction-digits"], 1, C), !l) ? null : new gr(r, s, o, a, l);
8660
8660
  }
8661
8661
  evaluate(e) {
8662
8662
  return new Intl.NumberFormat(this.locale ? this.locale.evaluate(e) : [], {
@@ -8690,23 +8690,23 @@ class xr {
8690
8690
  if (s && typeof a == "object" && !Array.isArray(a)) {
8691
8691
  s = !1;
8692
8692
  let l = null;
8693
- if (a["font-scale"] && (l = t.parse(a["font-scale"], 1, T), !l))
8693
+ if (a["font-scale"] && (l = t.parse(a["font-scale"], 1, C), !l))
8694
8694
  return null;
8695
8695
  let u = null;
8696
- if (a["text-font"] && (u = t.parse(a["text-font"], 1, ee(z)), !u))
8696
+ if (a["text-font"] && (u = t.parse(a["text-font"], 1, ee(A)), !u))
8697
8697
  return null;
8698
8698
  let c = null;
8699
8699
  if (a["text-color"] && (c = t.parse(a["text-color"], 1, fe), !c))
8700
8700
  return null;
8701
8701
  let f = null;
8702
8702
  if (a["vertical-align"]) {
8703
- if (typeof a["vertical-align"] == "string" && !Cu.includes(a["vertical-align"]))
8703
+ if (typeof a["vertical-align"] == "string" && !Tu.includes(a["vertical-align"]))
8704
8704
  return t.error(`'vertical-align' must be one of: 'bottom', 'center', 'top' but found '${a["vertical-align"]}' instead.`);
8705
- if (f = t.parse(a["vertical-align"], 1, z), !f)
8705
+ if (f = t.parse(a["vertical-align"], 1, A), !f)
8706
8706
  return null;
8707
8707
  }
8708
- const d = i[i.length - 1];
8709
- d.scale = l, d.font = u, d.textColor = c, d.verticalAlign = f;
8708
+ const p = i[i.length - 1];
8709
+ p.scale = l, p.font = u, p.textColor = c, p.verticalAlign = f;
8710
8710
  } else {
8711
8711
  const l = t.parse(e[o], 1, L);
8712
8712
  if (!l)
@@ -8747,7 +8747,7 @@ class vr {
8747
8747
  static parse(e, t) {
8748
8748
  if (e.length !== 2)
8749
8749
  return t.error("Expected two arguments.");
8750
- const r = t.parse(e[1], 1, z);
8750
+ const r = t.parse(e[1], 1, A);
8751
8751
  return r ? new vr(r) : t.error("No image name provided.");
8752
8752
  }
8753
8753
  evaluate(e) {
@@ -8763,7 +8763,7 @@ class vr {
8763
8763
  }
8764
8764
  class br {
8765
8765
  constructor(e) {
8766
- this.type = T, this.input = e;
8766
+ this.type = C, this.input = e;
8767
8767
  }
8768
8768
  static parse(e, t) {
8769
8769
  if (e.length !== 2)
@@ -8869,7 +8869,7 @@ function si(n, e, t, r) {
8869
8869
  const i = n[0] - t[0], s = n[1] - t[1], o = e[0] - t[0], a = e[1] - t[1], l = r[0] - t[0], u = r[1] - t[1], c = i * u - l * s, f = o * u - l * a;
8870
8870
  return c > 0 && f < 0 || c < 0 && f > 0;
8871
8871
  }
8872
- function Tr(n, e, t) {
8872
+ function Cr(n, e, t) {
8873
8873
  const r = [];
8874
8874
  for (let i = 0; i < n.length; i++) {
8875
8875
  const s = [];
@@ -8884,7 +8884,7 @@ function Tr(n, e, t) {
8884
8884
  function bs(n, e, t) {
8885
8885
  const r = [];
8886
8886
  for (let i = 0; i < n.length; i++) {
8887
- const s = Tr(n[i], e, t);
8887
+ const s = Cr(n[i], e, t);
8888
8888
  r.push(s);
8889
8889
  }
8890
8890
  return r;
@@ -8930,7 +8930,7 @@ function ai(n, e, t, r) {
8930
8930
  function oc(n, e) {
8931
8931
  const t = [1 / 0, 1 / 0, -1 / 0, -1 / 0], r = [1 / 0, 1 / 0, -1 / 0, -1 / 0], i = n.canonicalID();
8932
8932
  if (e.type === "Polygon") {
8933
- const s = Tr(e.coordinates, r, i), o = oi(n.geometry(), t, r, i);
8933
+ const s = Cr(e.coordinates, r, i), o = oi(n.geometry(), t, r, i);
8934
8934
  if (!ct(t, r))
8935
8935
  return !1;
8936
8936
  for (const a of o)
@@ -8950,7 +8950,7 @@ function oc(n, e) {
8950
8950
  function ac(n, e) {
8951
8951
  const t = [1 / 0, 1 / 0, -1 / 0, -1 / 0], r = [1 / 0, 1 / 0, -1 / 0, -1 / 0], i = n.canonicalID();
8952
8952
  if (e.type === "Polygon") {
8953
- const s = Tr(e.coordinates, r, i), o = ai(n.geometry(), t, r, i);
8953
+ const s = Cr(e.coordinates, r, i), o = ai(n.geometry(), t, r, i);
8954
8954
  if (!ct(t, r))
8955
8955
  return !1;
8956
8956
  for (const a of o)
@@ -8967,7 +8967,7 @@ function ac(n, e) {
8967
8967
  }
8968
8968
  return !0;
8969
8969
  }
8970
- class ke {
8970
+ class Fe {
8971
8971
  constructor(e, t) {
8972
8972
  this.type = S, this.geojson = e, this.geometries = t;
8973
8973
  }
@@ -8987,14 +8987,14 @@ class ke {
8987
8987
  type: "MultiPolygon",
8988
8988
  coordinates: i
8989
8989
  };
8990
- return new ke(r, s);
8990
+ return new Fe(r, s);
8991
8991
  }
8992
8992
  } else if (r.type === "Feature") {
8993
8993
  const i = r.geometry.type;
8994
8994
  if (i === "Polygon" || i === "MultiPolygon")
8995
- return new ke(r, r.geometry);
8995
+ return new Fe(r, r.geometry);
8996
8996
  } else if (r.type === "Polygon" || r.type === "MultiPolygon")
8997
- return new ke(r, r);
8997
+ return new Fe(r, r);
8998
8998
  }
8999
8999
  return t.error("'within' expression requires valid geojson object that contains polygon geometry type.");
9000
9000
  }
@@ -9013,7 +9013,7 @@ class ke {
9013
9013
  return !0;
9014
9014
  }
9015
9015
  }
9016
- class Ts {
9016
+ class Cs {
9017
9017
  constructor(e = [], t = (r, i) => r < i ? -1 : r > i ? 1 : 0) {
9018
9018
  if (this.data = e, this.length = this.data.length, this.compare = t, this.length > 0)
9019
9019
  for (let r = (this.length >> 1) - 1; r >= 0; r--) this._down(r);
@@ -9067,7 +9067,7 @@ function uc(n) {
9067
9067
  return e;
9068
9068
  }
9069
9069
  const cc = 6378.137, li = 1 / 298.257223563, ui = li * (2 - li), ci = Math.PI / 180;
9070
- class Cr {
9070
+ class Tr {
9071
9071
  constructor(e) {
9072
9072
  const t = ci * cc * 1e3, r = Math.cos(e * ci), i = 1 / (1 - ui * (1 - r * r)), s = Math.sqrt(i);
9073
9073
  this.kx = t * s * r, this.ky = t * s * i * (1 - ui);
@@ -9101,10 +9101,10 @@ class Cr {
9101
9101
  pointOnLine(e, t) {
9102
9102
  let r = 1 / 0, i, s, o, a;
9103
9103
  for (let l = 0; l < e.length - 1; l++) {
9104
- let u = e[l][0], c = e[l][1], f = this.wrap(e[l + 1][0] - u) * this.kx, d = (e[l + 1][1] - c) * this.ky, p = 0;
9105
- (f !== 0 || d !== 0) && (p = (this.wrap(t[0] - u) * this.kx * f + (t[1] - c) * this.ky * d) / (f * f + d * d), p > 1 ? (u = e[l + 1][0], c = e[l + 1][1]) : p > 0 && (u += f / this.kx * p, c += d / this.ky * p)), f = this.wrap(t[0] - u) * this.kx, d = (t[1] - c) * this.ky;
9106
- const h = f * f + d * d;
9107
- h < r && (r = h, i = u, s = c, o = l, a = p);
9104
+ let u = e[l][0], c = e[l][1], f = this.wrap(e[l + 1][0] - u) * this.kx, p = (e[l + 1][1] - c) * this.ky, d = 0;
9105
+ (f !== 0 || p !== 0) && (d = (this.wrap(t[0] - u) * this.kx * f + (t[1] - c) * this.ky * p) / (f * f + p * p), d > 1 ? (u = e[l + 1][0], c = e[l + 1][1]) : d > 0 && (u += f / this.kx * d, c += p / this.ky * d)), f = this.wrap(t[0] - u) * this.kx, p = (t[1] - c) * this.ky;
9106
+ const h = f * f + p * p;
9107
+ h < r && (r = h, i = u, s = c, o = l, a = d);
9108
9108
  }
9109
9109
  return {
9110
9110
  point: [i, s],
@@ -9121,7 +9121,7 @@ class Cr {
9121
9121
  }
9122
9122
  }
9123
9123
  const $n = 100, jn = 50;
9124
- function Cs(n, e) {
9124
+ function Ts(n, e) {
9125
9125
  return e[0] - n[0];
9126
9126
  }
9127
9127
  function Rt(n) {
@@ -9190,10 +9190,10 @@ function fc(n, e, t, r, i) {
9190
9190
  for (let a = e[0]; a < e[1]; ++a) {
9191
9191
  const l = n[a], u = n[a + 1];
9192
9192
  for (let c = r[0]; c < r[1]; ++c) {
9193
- const f = t[c], d = t[c + 1];
9194
- if (pn(l, u, f, d))
9193
+ const f = t[c], p = t[c + 1];
9194
+ if (pn(l, u, f, p))
9195
9195
  return 0;
9196
- o = Math.min(o, Ir(l, u, f, d, i));
9196
+ o = Math.min(o, Ir(l, u, f, p, i));
9197
9197
  }
9198
9198
  }
9199
9199
  return o;
@@ -9233,10 +9233,10 @@ function dc(n, e, t, r) {
9233
9233
  const o = n[s], a = n[s + 1];
9234
9234
  for (const l of t)
9235
9235
  for (let u = 0, c = l.length, f = c - 1; u < c; f = u++) {
9236
- const d = l[f], p = l[u];
9237
- if (pn(o, a, d, p))
9236
+ const p = l[f], d = l[u];
9237
+ if (pn(o, a, p, d))
9238
9238
  return 0;
9239
- i = Math.min(i, Ir(o, a, d, p, r));
9239
+ i = Math.min(i, Ir(o, a, p, d, r));
9240
9240
  }
9241
9241
  }
9242
9242
  return i;
@@ -9260,13 +9260,13 @@ function yc(n, e, t, r = 1 / 0) {
9260
9260
  let o = 1 / 0;
9261
9261
  for (const a of n)
9262
9262
  for (let l = 0, u = a.length, c = u - 1; l < u; c = l++) {
9263
- const f = a[c], d = a[l];
9264
- for (const p of e)
9265
- for (let h = 0, y = p.length, m = y - 1; h < y; m = h++) {
9266
- const v = p[m], w = p[h];
9267
- if (pn(f, d, v, w))
9263
+ const f = a[c], p = a[l];
9264
+ for (const d of e)
9265
+ for (let h = 0, y = d.length, m = y - 1; h < y; m = h++) {
9266
+ const v = d[m], w = d[h];
9267
+ if (pn(f, p, v, w))
9268
9268
  return 0;
9269
- o = Math.min(o, Ir(f, d, v, w, t));
9269
+ o = Math.min(o, Ir(f, p, v, w, t));
9270
9270
  }
9271
9271
  }
9272
9272
  return o;
@@ -9277,7 +9277,7 @@ function pi(n, e, t, r, i, s) {
9277
9277
  const o = _r(Xn(r, s), i, t);
9278
9278
  o < e && n.push([o, s, [0, 0]]);
9279
9279
  }
9280
- function zt(n, e, t, r, i, s, o) {
9280
+ function At(n, e, t, r, i, s, o) {
9281
9281
  if (!s || !o)
9282
9282
  return;
9283
9283
  const a = _r(Xn(r, s), Xn(i, o), t);
@@ -9287,7 +9287,7 @@ function qt(n, e, t, r, i = 1 / 0) {
9287
9287
  let s = Math.min(r.distance(n[0], t[0][0]), i);
9288
9288
  if (s === 0)
9289
9289
  return s;
9290
- const o = new Ts([[0, [0, n.length - 1], [0, 0]]], Cs), a = Yn(t);
9290
+ const o = new Cs([[0, [0, n.length - 1], [0, 0]]], Ts), a = Yn(t);
9291
9291
  for (; o.length > 0; ) {
9292
9292
  const l = o.pop();
9293
9293
  if (l[0] >= s)
@@ -9303,8 +9303,8 @@ function qt(n, e, t, r, i = 1 / 0) {
9303
9303
  s = Math.min(s, f);
9304
9304
  } else
9305
9305
  for (let f = u[0]; f <= u[1]; ++f) {
9306
- const d = pc(n[f], t, r);
9307
- if (s = Math.min(s, d), s === 0)
9306
+ const p = pc(n[f], t, r);
9307
+ if (s = Math.min(s, p), s === 0)
9308
9308
  return 0;
9309
9309
  }
9310
9310
  } else {
@@ -9318,33 +9318,33 @@ function Gt(n, e, t, r, i, s = 1 / 0) {
9318
9318
  let o = Math.min(s, i.distance(n[0], t[0]));
9319
9319
  if (o === 0)
9320
9320
  return o;
9321
- const a = new Ts([[0, [0, n.length - 1], [0, t.length - 1]]], Cs);
9321
+ const a = new Cs([[0, [0, n.length - 1], [0, t.length - 1]]], Ts);
9322
9322
  for (; a.length > 0; ) {
9323
9323
  const l = a.pop();
9324
9324
  if (l[0] >= o)
9325
9325
  continue;
9326
- const u = l[1], c = l[2], f = e ? jn : $n, d = r ? jn : $n;
9327
- if (Rt(u) <= f && Rt(c) <= d) {
9326
+ const u = l[1], c = l[2], f = e ? jn : $n, p = r ? jn : $n;
9327
+ if (Rt(u) <= f && Rt(c) <= p) {
9328
9328
  if (!xe(u, n.length) && xe(c, t.length))
9329
9329
  return NaN;
9330
- let p;
9330
+ let d;
9331
9331
  if (e && r)
9332
- p = fc(n, u, t, c, i), o = Math.min(o, p);
9332
+ d = fc(n, u, t, c, i), o = Math.min(o, d);
9333
9333
  else if (e && !r) {
9334
9334
  const h = n.slice(u[0], u[1] + 1);
9335
9335
  for (let y = c[0]; y <= c[1]; ++y)
9336
- if (p = Se(t[y], h, i), o = Math.min(o, p), o === 0)
9336
+ if (d = Se(t[y], h, i), o = Math.min(o, d), o === 0)
9337
9337
  return o;
9338
9338
  } else if (!e && r) {
9339
9339
  const h = t.slice(c[0], c[1] + 1);
9340
9340
  for (let y = u[0]; y <= u[1]; ++y)
9341
- if (p = Se(n[y], h, i), o = Math.min(o, p), o === 0)
9341
+ if (d = Se(n[y], h, i), o = Math.min(o, d), o === 0)
9342
9342
  return o;
9343
9343
  } else
9344
- p = hc(n, u, t, c, i), o = Math.min(o, p);
9344
+ d = hc(n, u, t, c, i), o = Math.min(o, d);
9345
9345
  } else {
9346
- const p = Zn(u, e), h = Zn(c, r);
9347
- zt(a, o, i, n, t, p[0], h[0]), zt(a, o, i, n, t, p[0], h[1]), zt(a, o, i, n, t, p[1], h[0]), zt(a, o, i, n, t, p[1], h[1]);
9346
+ const d = Zn(u, e), h = Zn(c, r);
9347
+ At(a, o, i, n, t, d[0], h[0]), At(a, o, i, n, t, d[0], h[1]), At(a, o, i, n, t, d[1], h[0]), At(a, o, i, n, t, d[1], h[1]);
9348
9348
  }
9349
9349
  }
9350
9350
  return o;
@@ -9353,7 +9353,7 @@ function mc(n, e) {
9353
9353
  const t = n.geometry(), r = t.flat().map((o) => wr([o.x, o.y], n.canonical));
9354
9354
  if (t.length === 0)
9355
9355
  return NaN;
9356
- const i = new Cr(r[0][1]);
9356
+ const i = new Tr(r[0][1]);
9357
9357
  let s = 1 / 0;
9358
9358
  for (const o of e) {
9359
9359
  switch (o.type) {
@@ -9376,7 +9376,7 @@ function gc(n, e) {
9376
9376
  const t = n.geometry(), r = t.flat().map((o) => wr([o.x, o.y], n.canonical));
9377
9377
  if (t.length === 0)
9378
9378
  return NaN;
9379
- const i = new Cr(r[0][1]);
9379
+ const i = new Tr(r[0][1]);
9380
9380
  let s = 1 / 0;
9381
9381
  for (const o of e) {
9382
9382
  switch (o.type) {
@@ -9399,7 +9399,7 @@ function xc(n, e) {
9399
9399
  const t = n.geometry();
9400
9400
  if (t.length === 0 || t[0].length === 0)
9401
9401
  return NaN;
9402
- const r = lc(t).map((o) => o.map((a) => a.map((l) => wr([l.x, l.y], n.canonical)))), i = new Cr(r[0][0][0][1]);
9402
+ const r = lc(t).map((o) => o.map((a) => a.map((l) => wr([l.x, l.y], n.canonical)))), i = new Tr(r[0][0][0][1]);
9403
9403
  let s = 1 / 0;
9404
9404
  for (const o of e)
9405
9405
  for (const a of r) {
@@ -9419,7 +9419,7 @@ function xc(n, e) {
9419
9419
  }
9420
9420
  return s;
9421
9421
  }
9422
- function kn(n) {
9422
+ function Fn(n) {
9423
9423
  return n.type === "MultiPolygon" ? n.coordinates.map((e) => ({
9424
9424
  type: "Polygon",
9425
9425
  coordinates: e
@@ -9431,9 +9431,9 @@ function kn(n) {
9431
9431
  coordinates: e
9432
9432
  })) : [n];
9433
9433
  }
9434
- class Fe {
9434
+ class ke {
9435
9435
  constructor(e, t) {
9436
- this.type = T, this.geojson = e, this.geometries = t;
9436
+ this.type = C, this.geojson = e, this.geometries = t;
9437
9437
  }
9438
9438
  static parse(e, t) {
9439
9439
  if (e.length !== 2)
@@ -9441,11 +9441,11 @@ class Fe {
9441
9441
  if (lt(e[1])) {
9442
9442
  const r = e[1];
9443
9443
  if (r.type === "FeatureCollection")
9444
- return new Fe(r, r.features.map((i) => kn(i.geometry)).flat());
9444
+ return new ke(r, r.features.map((i) => Fn(i.geometry)).flat());
9445
9445
  if (r.type === "Feature")
9446
- return new Fe(r, kn(r.geometry));
9446
+ return new ke(r, Fn(r.geometry));
9447
9447
  if ("type" in r && "coordinates" in r)
9448
- return new Fe(r, kn(r));
9448
+ return new ke(r, Fn(r));
9449
9449
  }
9450
9450
  return t.error("'distance' expression requires valid geojson object that contains polygon geometry type.");
9451
9451
  }
@@ -9518,13 +9518,13 @@ const $e = {
9518
9518
  slice: Bt,
9519
9519
  step: fn,
9520
9520
  string: ae,
9521
- "to-boolean": Te,
9522
- "to-color": Te,
9523
- "to-number": Te,
9524
- "to-string": Te,
9521
+ "to-boolean": Ce,
9522
+ "to-color": Ce,
9523
+ "to-number": Ce,
9524
+ "to-string": Ce,
9525
9525
  var: un,
9526
- within: ke,
9527
- distance: Fe,
9526
+ within: Fe,
9527
+ distance: ke,
9528
9528
  "global-state": xt
9529
9529
  };
9530
9530
  class re {
@@ -9553,23 +9553,23 @@ class re {
9553
9553
  for (const [u, c] of a) {
9554
9554
  l = new an(t.registry, Ut, t.path, null, t.scope);
9555
9555
  const f = [];
9556
- let d = !1;
9557
- for (let p = 1; p < e.length; p++) {
9558
- const h = e[p], y = Array.isArray(u) ? u[p - 1] : u.type, m = l.parse(h, 1 + f.length, y);
9556
+ let p = !1;
9557
+ for (let d = 1; d < e.length; d++) {
9558
+ const h = e[d], y = Array.isArray(u) ? u[d - 1] : u.type, m = l.parse(h, 1 + f.length, y);
9559
9559
  if (!m) {
9560
- d = !0;
9560
+ p = !0;
9561
9561
  break;
9562
9562
  }
9563
9563
  f.push(m);
9564
9564
  }
9565
- if (!d) {
9565
+ if (!p) {
9566
9566
  if (Array.isArray(u) && u.length !== f.length) {
9567
9567
  l.error(`Expected ${u.length} arguments, but found ${f.length} instead.`);
9568
9568
  continue;
9569
9569
  }
9570
- for (let p = 0; p < f.length; p++) {
9571
- const h = Array.isArray(u) ? u[p] : u.type, y = f[p];
9572
- l.concat(p + 1).checkSubtype(h, y.type);
9570
+ for (let d = 0; d < f.length; d++) {
9571
+ const h = Array.isArray(u) ? u[d] : u.type, y = f[d];
9572
+ l.concat(d + 1).checkSubtype(h, y.type);
9573
9573
  }
9574
9574
  if (l.errors.length === 0)
9575
9575
  return new re(r, s, c, f);
@@ -9578,12 +9578,12 @@ class re {
9578
9578
  if (a.length === 1)
9579
9579
  t.errors.push(...l.errors);
9580
9580
  else {
9581
- const c = (a.length ? a : o).map(([d]) => bc(d)).join(" | "), f = [];
9582
- for (let d = 1; d < e.length; d++) {
9583
- const p = t.parse(e[d], 1 + f.length);
9584
- if (!p)
9581
+ const c = (a.length ? a : o).map(([p]) => bc(p)).join(" | "), f = [];
9582
+ for (let p = 1; p < e.length; p++) {
9583
+ const d = t.parse(e[p], 1 + f.length);
9584
+ if (!d)
9585
9585
  return null;
9586
- f.push(O(p.type));
9586
+ f.push(O(d.type));
9587
9587
  }
9588
9588
  t.error(`Expected arguments of type ${c}, but found (${f.join(", ")}) instead.`);
9589
9589
  }
@@ -9600,12 +9600,12 @@ function di(n, [e, t, r, i]) {
9600
9600
  const s = i ? i.evaluate(n) : 1, o = ys(e, t, r, s);
9601
9601
  if (o)
9602
9602
  throw new V(o);
9603
- return new k(e / 255, t / 255, r / 255, s, !1);
9603
+ return new F(e / 255, t / 255, r / 255, s, !1);
9604
9604
  }
9605
9605
  function yi(n, e) {
9606
9606
  return n in e;
9607
9607
  }
9608
- function Fn(n, e) {
9608
+ function kn(n, e) {
9609
9609
  const t = e[n];
9610
9610
  return typeof t > "u" ? null : t;
9611
9611
  }
@@ -9624,28 +9624,28 @@ function Ie(n) {
9624
9624
  re.register($e, {
9625
9625
  error: [
9626
9626
  fu,
9627
- [z],
9627
+ [A],
9628
9628
  (n, [e]) => {
9629
9629
  throw new V(e.evaluate(n));
9630
9630
  }
9631
9631
  ],
9632
- typeof: [z, [L], (n, [e]) => O(R(e.evaluate(n)))],
9632
+ typeof: [A, [L], (n, [e]) => O(R(e.evaluate(n)))],
9633
9633
  "to-rgba": [
9634
- ee(T, 4),
9634
+ ee(C, 4),
9635
9635
  [fe],
9636
9636
  (n, [e]) => {
9637
9637
  const [t, r, i, s] = e.evaluate(n).rgb;
9638
9638
  return [t * 255, r * 255, i * 255, s];
9639
9639
  }
9640
9640
  ],
9641
- rgb: [fe, [T, T, T], di],
9642
- rgba: [fe, [T, T, T, T], di],
9641
+ rgb: [fe, [C, C, C], di],
9642
+ rgba: [fe, [C, C, C, C], di],
9643
9643
  has: {
9644
9644
  type: S,
9645
9645
  overloads: [
9646
- [[z], (n, [e]) => yi(e.evaluate(n), n.properties())],
9646
+ [[A], (n, [e]) => yi(e.evaluate(n), n.properties())],
9647
9647
  [
9648
- [z, ze],
9648
+ [A, Ae],
9649
9649
  (n, [e, t]) => yi(e.evaluate(n), t.evaluate(n))
9650
9650
  ]
9651
9651
  ]
@@ -9653,33 +9653,33 @@ re.register($e, {
9653
9653
  get: {
9654
9654
  type: L,
9655
9655
  overloads: [
9656
- [[z], (n, [e]) => Fn(e.evaluate(n), n.properties())],
9656
+ [[A], (n, [e]) => kn(e.evaluate(n), n.properties())],
9657
9657
  [
9658
- [z, ze],
9659
- (n, [e, t]) => Fn(e.evaluate(n), t.evaluate(n))
9658
+ [A, Ae],
9659
+ (n, [e, t]) => kn(e.evaluate(n), t.evaluate(n))
9660
9660
  ]
9661
9661
  ]
9662
9662
  },
9663
9663
  "feature-state": [
9664
9664
  L,
9665
- [z],
9666
- (n, [e]) => Fn(e.evaluate(n), n.featureState || {})
9665
+ [A],
9666
+ (n, [e]) => kn(e.evaluate(n), n.featureState || {})
9667
9667
  ],
9668
- properties: [ze, [], (n) => n.properties()],
9669
- "geometry-type": [z, [], (n) => n.geometryType()],
9668
+ properties: [Ae, [], (n) => n.properties()],
9669
+ "geometry-type": [A, [], (n) => n.geometryType()],
9670
9670
  id: [L, [], (n) => n.id()],
9671
- zoom: [T, [], (n) => n.globals.zoom],
9672
- "heatmap-density": [T, [], (n) => n.globals.heatmapDensity || 0],
9673
- elevation: [T, [], (n) => n.globals.elevation || 0],
9674
- "line-progress": [T, [], (n) => n.globals.lineProgress || 0],
9671
+ zoom: [C, [], (n) => n.globals.zoom],
9672
+ "heatmap-density": [C, [], (n) => n.globals.heatmapDensity || 0],
9673
+ elevation: [C, [], (n) => n.globals.elevation || 0],
9674
+ "line-progress": [C, [], (n) => n.globals.lineProgress || 0],
9675
9675
  accumulated: [
9676
9676
  L,
9677
9677
  [],
9678
9678
  (n) => n.globals.accumulated === void 0 ? null : n.globals.accumulated
9679
9679
  ],
9680
9680
  "+": [
9681
- T,
9682
- Ie(T),
9681
+ C,
9682
+ Ie(C),
9683
9683
  (n, e) => {
9684
9684
  let t = 0;
9685
9685
  for (const r of e)
@@ -9688,8 +9688,8 @@ re.register($e, {
9688
9688
  }
9689
9689
  ],
9690
9690
  "*": [
9691
- T,
9692
- Ie(T),
9691
+ C,
9692
+ Ie(C),
9693
9693
  (n, e) => {
9694
9694
  let t = 1;
9695
9695
  for (const r of e)
@@ -9698,67 +9698,67 @@ re.register($e, {
9698
9698
  }
9699
9699
  ],
9700
9700
  "-": {
9701
- type: T,
9701
+ type: C,
9702
9702
  overloads: [
9703
- [[T, T], (n, [e, t]) => e.evaluate(n) - t.evaluate(n)],
9704
- [[T], (n, [e]) => -e.evaluate(n)]
9703
+ [[C, C], (n, [e, t]) => e.evaluate(n) - t.evaluate(n)],
9704
+ [[C], (n, [e]) => -e.evaluate(n)]
9705
9705
  ]
9706
9706
  },
9707
- "/": [T, [T, T], (n, [e, t]) => e.evaluate(n) / t.evaluate(n)],
9708
- "%": [T, [T, T], (n, [e, t]) => e.evaluate(n) % t.evaluate(n)],
9709
- ln2: [T, [], () => Math.LN2],
9710
- pi: [T, [], () => Math.PI],
9711
- e: [T, [], () => Math.E],
9707
+ "/": [C, [C, C], (n, [e, t]) => e.evaluate(n) / t.evaluate(n)],
9708
+ "%": [C, [C, C], (n, [e, t]) => e.evaluate(n) % t.evaluate(n)],
9709
+ ln2: [C, [], () => Math.LN2],
9710
+ pi: [C, [], () => Math.PI],
9711
+ e: [C, [], () => Math.E],
9712
9712
  "^": [
9713
- T,
9714
- [T, T],
9713
+ C,
9714
+ [C, C],
9715
9715
  (n, [e, t]) => Math.pow(e.evaluate(n), t.evaluate(n))
9716
9716
  ],
9717
- sqrt: [T, [T], (n, [e]) => Math.sqrt(e.evaluate(n))],
9718
- log10: [T, [T], (n, [e]) => Math.log(e.evaluate(n)) / Math.LN10],
9719
- ln: [T, [T], (n, [e]) => Math.log(e.evaluate(n))],
9720
- log2: [T, [T], (n, [e]) => Math.log(e.evaluate(n)) / Math.LN2],
9721
- sin: [T, [T], (n, [e]) => Math.sin(e.evaluate(n))],
9722
- cos: [T, [T], (n, [e]) => Math.cos(e.evaluate(n))],
9723
- tan: [T, [T], (n, [e]) => Math.tan(e.evaluate(n))],
9724
- asin: [T, [T], (n, [e]) => Math.asin(e.evaluate(n))],
9725
- acos: [T, [T], (n, [e]) => Math.acos(e.evaluate(n))],
9726
- atan: [T, [T], (n, [e]) => Math.atan(e.evaluate(n))],
9717
+ sqrt: [C, [C], (n, [e]) => Math.sqrt(e.evaluate(n))],
9718
+ log10: [C, [C], (n, [e]) => Math.log(e.evaluate(n)) / Math.LN10],
9719
+ ln: [C, [C], (n, [e]) => Math.log(e.evaluate(n))],
9720
+ log2: [C, [C], (n, [e]) => Math.log(e.evaluate(n)) / Math.LN2],
9721
+ sin: [C, [C], (n, [e]) => Math.sin(e.evaluate(n))],
9722
+ cos: [C, [C], (n, [e]) => Math.cos(e.evaluate(n))],
9723
+ tan: [C, [C], (n, [e]) => Math.tan(e.evaluate(n))],
9724
+ asin: [C, [C], (n, [e]) => Math.asin(e.evaluate(n))],
9725
+ acos: [C, [C], (n, [e]) => Math.acos(e.evaluate(n))],
9726
+ atan: [C, [C], (n, [e]) => Math.atan(e.evaluate(n))],
9727
9727
  min: [
9728
- T,
9729
- Ie(T),
9728
+ C,
9729
+ Ie(C),
9730
9730
  (n, e) => Math.min(...e.map((t) => t.evaluate(n)))
9731
9731
  ],
9732
9732
  max: [
9733
- T,
9734
- Ie(T),
9733
+ C,
9734
+ Ie(C),
9735
9735
  (n, e) => Math.max(...e.map((t) => t.evaluate(n)))
9736
9736
  ],
9737
- abs: [T, [T], (n, [e]) => Math.abs(e.evaluate(n))],
9737
+ abs: [C, [C], (n, [e]) => Math.abs(e.evaluate(n))],
9738
9738
  round: [
9739
- T,
9740
- [T],
9739
+ C,
9740
+ [C],
9741
9741
  (n, [e]) => {
9742
9742
  const t = e.evaluate(n);
9743
9743
  return t < 0 ? -Math.round(-t) : Math.round(t);
9744
9744
  }
9745
9745
  ],
9746
- floor: [T, [T], (n, [e]) => Math.floor(e.evaluate(n))],
9747
- ceil: [T, [T], (n, [e]) => Math.ceil(e.evaluate(n))],
9746
+ floor: [C, [C], (n, [e]) => Math.floor(e.evaluate(n))],
9747
+ ceil: [C, [C], (n, [e]) => Math.ceil(e.evaluate(n))],
9748
9748
  "filter-==": [
9749
9749
  S,
9750
- [z, L],
9750
+ [A, L],
9751
9751
  (n, [e, t]) => n.properties()[e.value] === t.value
9752
9752
  ],
9753
9753
  "filter-id-==": [S, [L], (n, [e]) => n.id() === e.value],
9754
9754
  "filter-type-==": [
9755
9755
  S,
9756
- [z],
9756
+ [A],
9757
9757
  (n, [e]) => n.geometryType() === e.value
9758
9758
  ],
9759
9759
  "filter-<": [
9760
9760
  S,
9761
- [z, L],
9761
+ [A, L],
9762
9762
  (n, [e, t]) => {
9763
9763
  const r = n.properties()[e.value], i = t.value;
9764
9764
  return typeof r == typeof i && r < i;
@@ -9774,7 +9774,7 @@ re.register($e, {
9774
9774
  ],
9775
9775
  "filter->": [
9776
9776
  S,
9777
- [z, L],
9777
+ [A, L],
9778
9778
  (n, [e, t]) => {
9779
9779
  const r = n.properties()[e.value], i = t.value;
9780
9780
  return typeof r == typeof i && r > i;
@@ -9790,7 +9790,7 @@ re.register($e, {
9790
9790
  ],
9791
9791
  "filter-<=": [
9792
9792
  S,
9793
- [z, L],
9793
+ [A, L],
9794
9794
  (n, [e, t]) => {
9795
9795
  const r = n.properties()[e.value], i = t.value;
9796
9796
  return typeof r == typeof i && r <= i;
@@ -9806,7 +9806,7 @@ re.register($e, {
9806
9806
  ],
9807
9807
  "filter->=": [
9808
9808
  S,
9809
- [z, L],
9809
+ [A, L],
9810
9810
  (n, [e, t]) => {
9811
9811
  const r = n.properties()[e.value], i = t.value;
9812
9812
  return typeof r == typeof i && r >= i;
@@ -9824,7 +9824,7 @@ re.register($e, {
9824
9824
  "filter-has-id": [S, [], (n) => n.id() !== null && n.id() !== void 0],
9825
9825
  "filter-type-in": [
9826
9826
  S,
9827
- [ee(z)],
9827
+ [ee(A)],
9828
9828
  (n, [e]) => e.value.indexOf(n.geometryType()) >= 0
9829
9829
  ],
9830
9830
  "filter-id-in": [
@@ -9834,13 +9834,13 @@ re.register($e, {
9834
9834
  ],
9835
9835
  "filter-in-small": [
9836
9836
  S,
9837
- [z, ee(L)],
9837
+ [A, ee(L)],
9838
9838
  // assumes v is an array literal
9839
9839
  (n, [e, t]) => t.value.indexOf(n.properties()[e.value]) >= 0
9840
9840
  ],
9841
9841
  "filter-in-large": [
9842
9842
  S,
9843
- [z, ee(L)],
9843
+ [A, ee(L)],
9844
9844
  // assumes v is a array literal with values sorted in ascending order and of a single type
9845
9845
  (n, [e, t]) => vc(n.properties()[e.value], t.value, 0, t.value.length - 1)
9846
9846
  ],
@@ -9877,22 +9877,22 @@ re.register($e, {
9877
9877
  "!": [S, [S], (n, [e]) => !e.evaluate(n)],
9878
9878
  "is-supported-script": [
9879
9879
  S,
9880
- [z],
9880
+ [A],
9881
9881
  // At parse time this will always return true, so we need to exclude this expression with isGlobalPropertyConstant
9882
9882
  (n, [e]) => {
9883
9883
  const t = n.globals && n.globals.isSupportedScript;
9884
9884
  return t ? t(e.evaluate(n)) : !0;
9885
9885
  }
9886
9886
  ],
9887
- upcase: [z, [z], (n, [e]) => e.evaluate(n).toUpperCase()],
9888
- downcase: [z, [z], (n, [e]) => e.evaluate(n).toLowerCase()],
9887
+ upcase: [A, [A], (n, [e]) => e.evaluate(n).toUpperCase()],
9888
+ downcase: [A, [A], (n, [e]) => e.evaluate(n).toLowerCase()],
9889
9889
  concat: [
9890
- z,
9890
+ A,
9891
9891
  Ie(L),
9892
9892
  (n, e) => e.map((t) => it(t.evaluate(n))).join("")
9893
9893
  ],
9894
9894
  "resolved-locale": [
9895
- z,
9895
+ A,
9896
9896
  [tn],
9897
9897
  (n, [e]) => e.evaluate(n).resolvedLocale()
9898
9898
  ]
@@ -9907,13 +9907,13 @@ function Ut(n) {
9907
9907
  return !1;
9908
9908
  if (n instanceof hn)
9909
9909
  return !1;
9910
- if (n instanceof ke)
9911
- return !1;
9912
9910
  if (n instanceof Fe)
9913
9911
  return !1;
9912
+ if (n instanceof ke)
9913
+ return !1;
9914
9914
  if (n instanceof xt)
9915
9915
  return !1;
9916
- const e = n instanceof Te || n instanceof ae;
9916
+ const e = n instanceof Ce || n instanceof ae;
9917
9917
  let t = !0;
9918
9918
  return n.eachChild((r) => {
9919
9919
  e ? t = t && Ut(r) : t = t && r instanceof Ze;
@@ -9939,7 +9939,7 @@ function Lr(n) {
9939
9939
  if (/^filter-/.test(n.name))
9940
9940
  return !1;
9941
9941
  }
9942
- if (n instanceof ke || n instanceof Fe)
9942
+ if (n instanceof Fe || n instanceof ke)
9943
9943
  return !1;
9944
9944
  let e = !0;
9945
9945
  return n.eachChild((t) => {
@@ -9971,25 +9971,25 @@ function Be(n) {
9971
9971
  function wc(n) {
9972
9972
  return n["property-type"] === "data-driven" || n["property-type"] === "cross-faded-data-driven";
9973
9973
  }
9974
- function Tc(n) {
9974
+ function Cc(n) {
9975
9975
  return !!n.expression && n.expression.parameters.indexOf("zoom") > -1;
9976
9976
  }
9977
9977
  function _s(n) {
9978
9978
  return !!n.expression && n.expression.interpolated;
9979
9979
  }
9980
- function zr(n) {
9980
+ function Ar(n) {
9981
9981
  return n instanceof Number ? "number" : n instanceof String ? "string" : n instanceof Boolean ? "boolean" : Array.isArray(n) ? "array" : n === null ? "null" : typeof n;
9982
9982
  }
9983
9983
  function Is(n) {
9984
- return typeof n == "object" && n !== null && !Array.isArray(n) && R(n) === ze;
9984
+ return typeof n == "object" && n !== null && !Array.isArray(n) && R(n) === Ae;
9985
9985
  }
9986
- function Cc(n) {
9986
+ function Tc(n) {
9987
9987
  return n;
9988
9988
  }
9989
9989
  function _c(n) {
9990
9990
  switch (n.type) {
9991
9991
  case "color":
9992
- return k.parse;
9992
+ return F.parse;
9993
9993
  case "padding":
9994
9994
  return W.parse;
9995
9995
  case "numberArray":
@@ -10016,7 +10016,7 @@ function Ic(n) {
10016
10016
  }
10017
10017
  function Ls(n, e) {
10018
10018
  const t = n.stops && typeof n.stops[0][0] == "object", r = t || n.property !== void 0, i = t || !r, s = n.type || (_s(e) ? "exponential" : "interval"), o = _c(e);
10019
- if (o && (n = ss({}, n), n.stops && (n.stops = n.stops.map((c) => [c[0], o(c[1])])), n.default ? n.default = o(n.default) : n.default = o(e.default)), n.colorSpace && !Tu(n.colorSpace))
10019
+ if (o && (n = ss({}, n), n.stops && (n.stops = n.stops.map((c) => [c[0], o(c[1])])), n.default ? n.default = o(n.default) : n.default = o(e.default)), n.colorSpace && !Cu(n.colorSpace))
10020
10020
  throw new Error(`Unknown color space: "${n.colorSpace}"`);
10021
10021
  const a = Ic(s);
10022
10022
  let l, u;
@@ -10038,21 +10038,21 @@ function Ls(n, e) {
10038
10038
  stops: []
10039
10039
  }, f.push(m)), c[m].stops.push([y[0].value, y[1]]);
10040
10040
  }
10041
- const d = [];
10041
+ const p = [];
10042
10042
  for (const h of f)
10043
- d.push([
10043
+ p.push([
10044
10044
  c[h].zoom,
10045
10045
  Ls(c[h], e)
10046
10046
  ]);
10047
- const p = { name: "linear" };
10047
+ const d = { name: "linear" };
10048
10048
  return {
10049
10049
  kind: "composite",
10050
- interpolationType: p,
10051
- interpolationFactor: se.interpolationFactor.bind(void 0, p),
10052
- zoomStops: d.map((h) => h[0]),
10050
+ interpolationType: d,
10051
+ interpolationFactor: se.interpolationFactor.bind(void 0, d),
10052
+ zoomStops: p.map((h) => h[0]),
10053
10053
  evaluate({ zoom: h }, y) {
10054
10054
  return Ss({
10055
- stops: d,
10055
+ stops: p,
10056
10056
  base: n.base
10057
10057
  }, e, h).evaluate(h, y);
10058
10058
  }
@@ -10070,8 +10070,8 @@ function Ls(n, e) {
10070
10070
  return {
10071
10071
  kind: "source",
10072
10072
  evaluate(c, f) {
10073
- const d = f && f.properties ? f.properties[n.property] : void 0;
10074
- return d === void 0 ? vt(n.default, e.default) : a(n, e, d, l, u);
10073
+ const p = f && f.properties ? f.properties[n.property] : void 0;
10074
+ return p === void 0 ? vt(n.default, e.default) : a(n, e, p, l, u);
10075
10075
  }
10076
10076
  };
10077
10077
  }
@@ -10088,7 +10088,7 @@ function Lc(n, e, t, r, i) {
10088
10088
  return vt(s, n.default, e.default);
10089
10089
  }
10090
10090
  function Sc(n, e, t) {
10091
- if (zr(t) !== "number")
10091
+ if (Ar(t) !== "number")
10092
10092
  return vt(n.default, e.default);
10093
10093
  const r = n.stops.length;
10094
10094
  if (r === 1 || t <= n.stops[0][0])
@@ -10100,26 +10100,26 @@ function Sc(n, e, t) {
10100
10100
  }
10101
10101
  function Ss(n, e, t) {
10102
10102
  const r = n.base !== void 0 ? n.base : 1;
10103
- if (zr(t) !== "number")
10103
+ if (Ar(t) !== "number")
10104
10104
  return vt(n.default, e.default);
10105
10105
  const i = n.stops.length;
10106
10106
  if (i === 1 || t <= n.stops[0][0])
10107
10107
  return n.stops[0][1];
10108
10108
  if (t >= n.stops[i - 1][0])
10109
10109
  return n.stops[i - 1][1];
10110
- const s = cn(n.stops.map((c) => c[0]), t), o = zc(t, r, n.stops[s][0], n.stops[s + 1][0]), a = n.stops[s][1], l = n.stops[s + 1][1], u = Au[e.type] || Cc;
10110
+ const s = cn(n.stops.map((c) => c[0]), t), o = Ac(t, r, n.stops[s][0], n.stops[s + 1][0]), a = n.stops[s][1], l = n.stops[s + 1][1], u = zu[e.type] || Tc;
10111
10111
  return typeof a.evaluate == "function" ? {
10112
10112
  evaluate(...c) {
10113
- const f = a.evaluate.apply(void 0, c), d = l.evaluate.apply(void 0, c);
10114
- if (!(f === void 0 || d === void 0))
10115
- return u(f, d, o, n.colorSpace);
10113
+ const f = a.evaluate.apply(void 0, c), p = l.evaluate.apply(void 0, c);
10114
+ if (!(f === void 0 || p === void 0))
10115
+ return u(f, p, o, n.colorSpace);
10116
10116
  }
10117
10117
  } : u(a, l, o, n.colorSpace);
10118
10118
  }
10119
10119
  function Ec(n, e, t) {
10120
10120
  switch (e.type) {
10121
10121
  case "color":
10122
- t = k.parse(t);
10122
+ t = F.parse(t);
10123
10123
  break;
10124
10124
  case "formatted":
10125
10125
  t = he.fromString(t.toString());
@@ -10137,15 +10137,15 @@ function Ec(n, e, t) {
10137
10137
  t = H.parse(t);
10138
10138
  break;
10139
10139
  default:
10140
- zr(t) !== e.type && (e.type !== "enum" || !e.values[t]) && (t = void 0);
10140
+ Ar(t) !== e.type && (e.type !== "enum" || !e.values[t]) && (t = void 0);
10141
10141
  }
10142
10142
  return vt(t, n.default, e.default);
10143
10143
  }
10144
- function zc(n, e, t, r) {
10144
+ function Ac(n, e, t, r) {
10145
10145
  const i = r - t, s = n - t;
10146
10146
  return i === 0 ? 0 : e === 1 ? s / i : (Math.pow(e, s) - 1) / (Math.pow(e, i) - 1);
10147
10147
  }
10148
- class Ar {
10148
+ class zr {
10149
10149
  constructor(e, t, r) {
10150
10150
  this.expression = e, this._warningHistory = {}, this._evaluator = new ms(), this._defaultValue = t ? Pc(t) : null, this._enumValues = t && t.type === "enum" ? t.values : null, this._globalState = r;
10151
10151
  }
@@ -10169,9 +10169,9 @@ class Ar {
10169
10169
  function Es(n) {
10170
10170
  return Array.isArray(n) && n.length > 0 && typeof n[0] == "string" && n[0] in $e;
10171
10171
  }
10172
- function kr(n, e, t) {
10173
- const r = new an($e, Ut, [], e ? Fc(e) : void 0), i = r.parse(n, void 0, void 0, void 0, e && e.type === "string" ? { typeAnnotation: "coerce" } : void 0);
10174
- return i ? Wn(new Ar(i, e, t)) : Be(r.errors);
10172
+ function Fr(n, e, t) {
10173
+ const r = new an($e, Ut, [], e ? kc(e) : void 0), i = r.parse(n, void 0, void 0, void 0, e && e.type === "string" ? { typeAnnotation: "coerce" } : void 0);
10174
+ return i ? Wn(new zr(i, e, t)) : Be(r.errors);
10175
10175
  }
10176
10176
  class $t {
10177
10177
  constructor(e, t, r) {
@@ -10198,18 +10198,18 @@ class jt {
10198
10198
  return this.interpolationType ? se.interpolationFactor(this.interpolationType, e, t, r) : 0;
10199
10199
  }
10200
10200
  }
10201
- function Ac(n) {
10201
+ function zc(n) {
10202
10202
  return n._styleExpression !== void 0;
10203
10203
  }
10204
- function zs(n, e, t) {
10205
- const r = kr(n, e, t);
10204
+ function As(n, e, t) {
10205
+ const r = Fr(n, e, t);
10206
10206
  if (r.result === "error")
10207
10207
  return r;
10208
10208
  const i = r.value.expression, s = Lr(i);
10209
10209
  if (!s && !wc(e))
10210
10210
  return Be([new ce("", "data expressions not supported")]);
10211
10211
  const o = Er(i, ["zoom"]);
10212
- if (!o && !Tc(e))
10212
+ if (!o && !Cc(e))
10213
10213
  return Be([new ce("", "zoom expressions not supported")]);
10214
10214
  const a = Vt(i);
10215
10215
  if (!a && !o)
@@ -10241,17 +10241,17 @@ class bt {
10241
10241
  };
10242
10242
  }
10243
10243
  }
10244
- function kc(n, e, t) {
10244
+ function Fc(n, e, t) {
10245
10245
  if (Is(n))
10246
10246
  return new bt(n, e);
10247
10247
  if (Es(n)) {
10248
- const r = zs(n, e, t);
10248
+ const r = As(n, e, t);
10249
10249
  if (r.result === "error")
10250
10250
  throw new Error(r.value.map((i) => `${i.key}: ${i.message}`).join(", "));
10251
10251
  return r.value;
10252
10252
  } else {
10253
10253
  let r = n;
10254
- return e.type === "color" && typeof n == "string" ? r = k.parse(n) : e.type === "padding" && (typeof n == "number" || Array.isArray(n)) ? r = W.parse(n) : e.type === "numberArray" && (typeof n == "number" || Array.isArray(n)) ? r = H.parse(n) : e.type === "colorArray" && (typeof n == "string" || Array.isArray(n)) ? r = $.parse(n) : e.type === "variableAnchorOffsetCollection" && Array.isArray(n) ? r = ie.parse(n) : e.type === "projectionDefinition" && typeof n == "string" && (r = ne.parse(n)), {
10254
+ return e.type === "color" && typeof n == "string" ? r = F.parse(n) : e.type === "padding" && (typeof n == "number" || Array.isArray(n)) ? r = W.parse(n) : e.type === "numberArray" && (typeof n == "number" || Array.isArray(n)) ? r = H.parse(n) : e.type === "colorArray" && (typeof n == "string" || Array.isArray(n)) ? r = $.parse(n) : e.type === "variableAnchorOffsetCollection" && Array.isArray(n) ? r = ie.parse(n) : e.type === "projectionDefinition" && typeof n == "string" && (r = ne.parse(n)), {
10255
10255
  globalStateRefs: /* @__PURE__ */ new Set(),
10256
10256
  _globalState: null,
10257
10257
  kind: "constant",
@@ -10278,12 +10278,12 @@ function dn(n, e = /* @__PURE__ */ new Set()) {
10278
10278
  dn(t, e);
10279
10279
  }), e;
10280
10280
  }
10281
- function Fc(n) {
10281
+ function kc(n) {
10282
10282
  const e = {
10283
10283
  color: fe,
10284
- string: z,
10285
- number: T,
10286
- enum: z,
10284
+ string: A,
10285
+ number: C,
10286
+ enum: A,
10287
10287
  boolean: S,
10288
10288
  formatted: nn,
10289
10289
  padding: rn,
@@ -10297,10 +10297,10 @@ function Fc(n) {
10297
10297
  }
10298
10298
  function Pc(n) {
10299
10299
  if (n.type === "color" && Is(n.default))
10300
- return new k(0, 0, 0, 0);
10300
+ return new F(0, 0, 0, 0);
10301
10301
  switch (n.type) {
10302
10302
  case "color":
10303
- return k.parse(n.default) || null;
10303
+ return F.parse(n.default) || null;
10304
10304
  case "padding":
10305
10305
  return W.parse(n.default) || null;
10306
10306
  case "numberArray":
@@ -10327,7 +10327,7 @@ function Xe(n, e) {
10327
10327
  globalState: e
10328
10328
  };
10329
10329
  }
10330
- function Fr(n) {
10330
+ function kr(n) {
10331
10331
  if (n === !0 || n === !1)
10332
10332
  return !0;
10333
10333
  if (!Array.isArray(n) || n.length === 0)
@@ -10351,7 +10351,7 @@ function Fr(n) {
10351
10351
  case "any":
10352
10352
  case "all":
10353
10353
  for (const e of n.slice(1))
10354
- if (!Fr(e) && typeof e != "boolean")
10354
+ if (!kr(e) && typeof e != "boolean")
10355
10355
  return !1;
10356
10356
  return !0;
10357
10357
  default:
@@ -10371,12 +10371,12 @@ const Mc = {
10371
10371
  function Oc(n, e) {
10372
10372
  if (n == null)
10373
10373
  return { filter: () => !0, needGeometry: !1, getGlobalStateRefs: () => /* @__PURE__ */ new Set() };
10374
- Fr(n) || (n = Zt(n));
10375
- const t = kr(n, Mc, e);
10374
+ kr(n) || (n = Zt(n));
10375
+ const t = Fr(n, Mc, e);
10376
10376
  if (t.result === "error")
10377
10377
  throw new Error(t.value.map((r) => `${r.key}: ${r.message}`).join(", "));
10378
10378
  {
10379
- const r = As(n);
10379
+ const r = zs(n);
10380
10380
  return {
10381
10381
  filter: (i, s, o) => t.value.evaluate(i, s, {}, o),
10382
10382
  needGeometry: r,
@@ -10387,13 +10387,13 @@ function Oc(n, e) {
10387
10387
  function Vc(n, e) {
10388
10388
  return n < e ? -1 : n > e ? 1 : 0;
10389
10389
  }
10390
- function As(n) {
10390
+ function zs(n) {
10391
10391
  if (!Array.isArray(n))
10392
10392
  return !1;
10393
10393
  if (n[0] === "within" || n[0] === "distance")
10394
10394
  return !0;
10395
10395
  for (let e = 1; e < n.length; e++)
10396
- if (As(n[e]))
10396
+ if (zs(n[e]))
10397
10397
  return !0;
10398
10398
  return !1;
10399
10399
  }
@@ -10401,7 +10401,7 @@ function Zt(n) {
10401
10401
  if (!n)
10402
10402
  return !0;
10403
10403
  const e = n[0];
10404
- return n.length <= 1 ? e !== "any" : e === "==" ? Pn(n[1], n[2], "==") : e === "!=" ? At(Pn(n[1], n[2], "==")) : e === "<" || e === ">" || e === "<=" || e === ">=" ? Pn(n[1], n[2], e) : e === "any" ? Dc(n.slice(1)) : e === "all" ? ["all"].concat(n.slice(1).map(Zt)) : e === "none" ? ["all"].concat(n.slice(1).map(Zt).map(At)) : e === "in" ? mi(n[1], n.slice(2)) : e === "!in" ? At(mi(n[1], n.slice(2))) : e === "has" ? gi(n[1]) : e === "!has" ? At(gi(n[1])) : !0;
10404
+ return n.length <= 1 ? e !== "any" : e === "==" ? Pn(n[1], n[2], "==") : e === "!=" ? zt(Pn(n[1], n[2], "==")) : e === "<" || e === ">" || e === "<=" || e === ">=" ? Pn(n[1], n[2], e) : e === "any" ? Dc(n.slice(1)) : e === "all" ? ["all"].concat(n.slice(1).map(Zt)) : e === "none" ? ["all"].concat(n.slice(1).map(Zt).map(zt)) : e === "in" ? mi(n[1], n.slice(2)) : e === "!in" ? zt(mi(n[1], n.slice(2))) : e === "has" ? gi(n[1]) : e === "!has" ? zt(gi(n[1])) : !0;
10405
10405
  }
10406
10406
  function Pn(n, e, t) {
10407
10407
  switch (n) {
@@ -10438,20 +10438,20 @@ function gi(n) {
10438
10438
  return ["filter-has", n];
10439
10439
  }
10440
10440
  }
10441
- function At(n) {
10441
+ function zt(n) {
10442
10442
  return ["!", n];
10443
10443
  }
10444
10444
  const Nc = {
10445
- StyleExpression: Ar,
10445
+ StyleExpression: zr,
10446
10446
  StylePropertyFunction: bt,
10447
10447
  ZoomConstantExpression: $t,
10448
10448
  ZoomDependentExpression: jt,
10449
- createExpression: kr,
10450
- createPropertyExpression: zs,
10449
+ createExpression: Fr,
10450
+ createPropertyExpression: As,
10451
10451
  isExpression: Es,
10452
- isExpressionFilter: Fr,
10453
- isZoomExpression: Ac,
10454
- normalizePropertyExpression: kc
10452
+ isExpressionFilter: kr,
10453
+ isZoomExpression: zc,
10454
+ normalizePropertyExpression: Fc
10455
10455
  };
10456
10456
  class xi {
10457
10457
  constructor(e, t = {}) {
@@ -10542,22 +10542,22 @@ class Rc {
10542
10542
  }
10543
10543
  function qc(n, e, t = 2) {
10544
10544
  const r = e && e.length, i = r ? e[0] * t : n.length;
10545
- let s = ks(n, 0, i, t, !0);
10545
+ let s = Fs(n, 0, i, t, !0);
10546
10546
  const o = [];
10547
10547
  if (!s || s.next === s.prev) return o;
10548
10548
  let a, l, u;
10549
10549
  if (r && (s = Zc(n, e, s, t)), n.length > 80 * t) {
10550
10550
  a = n[0], l = n[1];
10551
10551
  let c = a, f = l;
10552
- for (let d = t; d < i; d += t) {
10553
- const p = n[d], h = n[d + 1];
10554
- p < a && (a = p), h < l && (l = h), p > c && (c = p), h > f && (f = h);
10552
+ for (let p = t; p < i; p += t) {
10553
+ const d = n[p], h = n[p + 1];
10554
+ d < a && (a = d), h < l && (l = h), d > c && (c = d), h > f && (f = h);
10555
10555
  }
10556
10556
  u = Math.max(c - a, f - l), u = u !== 0 ? 32767 / u : 0;
10557
10557
  }
10558
10558
  return ft(s, o, t, a, l, u, 0), o;
10559
10559
  }
10560
- function ks(n, e, t, r, i) {
10560
+ function Fs(n, e, t, r, i) {
10561
10561
  let s;
10562
10562
  if (i === rf(n, e, t, r) > 0)
10563
10563
  for (let o = e; o < t; o += r) s = vi(o / r | 0, n[o], n[o + 1], s);
@@ -10597,10 +10597,10 @@ function ft(n, e, t, r, i, s, o) {
10597
10597
  function Gc(n) {
10598
10598
  const e = n.prev, t = n, r = n.next;
10599
10599
  if (D(e, t, r) >= 0) return !1;
10600
- const i = e.x, s = t.x, o = r.x, a = e.y, l = t.y, u = r.y, c = Math.min(i, s, o), f = Math.min(a, l, u), d = Math.max(i, s, o), p = Math.max(a, l, u);
10600
+ const i = e.x, s = t.x, o = r.x, a = e.y, l = t.y, u = r.y, c = Math.min(i, s, o), f = Math.min(a, l, u), p = Math.max(i, s, o), d = Math.max(a, l, u);
10601
10601
  let h = r.next;
10602
10602
  for (; h !== e; ) {
10603
- if (h.x >= c && h.x <= d && h.y >= f && h.y <= p && tt(i, a, s, l, o, u, h.x, h.y) && D(h.prev, h, h.next) >= 0) return !1;
10603
+ if (h.x >= c && h.x <= p && h.y >= f && h.y <= d && tt(i, a, s, l, o, u, h.x, h.y) && D(h.prev, h, h.next) >= 0) return !1;
10604
10604
  h = h.next;
10605
10605
  }
10606
10606
  return !0;
@@ -10608,18 +10608,18 @@ function Gc(n) {
10608
10608
  function Uc(n, e, t, r) {
10609
10609
  const i = n.prev, s = n, o = n.next;
10610
10610
  if (D(i, s, o) >= 0) return !1;
10611
- const a = i.x, l = s.x, u = o.x, c = i.y, f = s.y, d = o.y, p = Math.min(a, l, u), h = Math.min(c, f, d), y = Math.max(a, l, u), m = Math.max(c, f, d), v = Hn(p, h, e, t, r), w = Hn(y, m, e, t, r);
10611
+ const a = i.x, l = s.x, u = o.x, c = i.y, f = s.y, p = o.y, d = Math.min(a, l, u), h = Math.min(c, f, p), y = Math.max(a, l, u), m = Math.max(c, f, p), v = Hn(d, h, e, t, r), w = Hn(y, m, e, t, r);
10612
10612
  let g = n.prevZ, x = n.nextZ;
10613
10613
  for (; g && g.z >= v && x && x.z <= w; ) {
10614
- if (g.x >= p && g.x <= y && g.y >= h && g.y <= m && g !== i && g !== o && tt(a, c, l, f, u, d, g.x, g.y) && D(g.prev, g, g.next) >= 0 || (g = g.prevZ, x.x >= p && x.x <= y && x.y >= h && x.y <= m && x !== i && x !== o && tt(a, c, l, f, u, d, x.x, x.y) && D(x.prev, x, x.next) >= 0)) return !1;
10614
+ if (g.x >= d && g.x <= y && g.y >= h && g.y <= m && g !== i && g !== o && tt(a, c, l, f, u, p, g.x, g.y) && D(g.prev, g, g.next) >= 0 || (g = g.prevZ, x.x >= d && x.x <= y && x.y >= h && x.y <= m && x !== i && x !== o && tt(a, c, l, f, u, p, x.x, x.y) && D(x.prev, x, x.next) >= 0)) return !1;
10615
10615
  x = x.nextZ;
10616
10616
  }
10617
10617
  for (; g && g.z >= v; ) {
10618
- if (g.x >= p && g.x <= y && g.y >= h && g.y <= m && g !== i && g !== o && tt(a, c, l, f, u, d, g.x, g.y) && D(g.prev, g, g.next) >= 0) return !1;
10618
+ if (g.x >= d && g.x <= y && g.y >= h && g.y <= m && g !== i && g !== o && tt(a, c, l, f, u, p, g.x, g.y) && D(g.prev, g, g.next) >= 0) return !1;
10619
10619
  g = g.prevZ;
10620
10620
  }
10621
10621
  for (; x && x.z <= w; ) {
10622
- if (x.x >= p && x.x <= y && x.y >= h && x.y <= m && x !== i && x !== o && tt(a, c, l, f, u, d, x.x, x.y) && D(x.prev, x, x.next) >= 0) return !1;
10622
+ if (x.x >= d && x.x <= y && x.y >= h && x.y <= m && x !== i && x !== o && tt(a, c, l, f, u, p, x.x, x.y) && D(x.prev, x, x.next) >= 0) return !1;
10623
10623
  x = x.nextZ;
10624
10624
  }
10625
10625
  return !0;
@@ -10650,7 +10650,7 @@ function jc(n, e, t, r, i, s) {
10650
10650
  function Zc(n, e, t, r) {
10651
10651
  const i = [];
10652
10652
  for (let s = 0, o = e.length; s < o; s++) {
10653
- const a = e[s] * r, l = s < o - 1 ? e[s + 1] * r : n.length, u = ks(n, a, l, r, !1);
10653
+ const a = e[s] * r, l = s < o - 1 ? e[s + 1] * r : n.length, u = Fs(n, a, l, r, !1);
10654
10654
  u === u.next && (u.steiner = !0), i.push(Qc(u));
10655
10655
  }
10656
10656
  i.sort(Xc);
@@ -10692,7 +10692,7 @@ function Wc(n, e) {
10692
10692
  let c = 1 / 0;
10693
10693
  t = o;
10694
10694
  do {
10695
- if (r >= t.x && t.x >= l && r !== t.x && Fs(i < u ? r : s, i, l, u, i < u ? s : r, i, t.x, t.y)) {
10695
+ if (r >= t.x && t.x >= l && r !== t.x && ks(i < u ? r : s, i, l, u, i < u ? s : r, i, t.x, t.y)) {
10696
10696
  const f = Math.abs(i - t.y) / (r - t.x);
10697
10697
  ht(t, n) && (f < c || f === c && (t.x > o.x || t.x === o.x && Hc(o, t))) && (o = t, c = f);
10698
10698
  }
@@ -10740,11 +10740,11 @@ function Qc(n) {
10740
10740
  while (e !== n);
10741
10741
  return t;
10742
10742
  }
10743
- function Fs(n, e, t, r, i, s, o, a) {
10743
+ function ks(n, e, t, r, i, s, o, a) {
10744
10744
  return (i - o) * (e - a) >= (n - o) * (s - a) && (n - o) * (r - a) >= (t - o) * (e - a) && (t - o) * (s - a) >= (i - o) * (r - a);
10745
10745
  }
10746
10746
  function tt(n, e, t, r, i, s, o, a) {
10747
- return !(n === o && e === a) && Fs(n, e, t, r, i, s, o, a);
10747
+ return !(n === o && e === a) && ks(n, e, t, r, i, s, o, a);
10748
10748
  }
10749
10749
  function ef(n, e) {
10750
10750
  return n.next.i !== e.i && n.prev.i !== e.i && !tf(n, e) && // doesn't intersect other edges
@@ -10759,13 +10759,13 @@ function Ye(n, e) {
10759
10759
  return n.x === e.x && n.y === e.y;
10760
10760
  }
10761
10761
  function Ps(n, e, t, r) {
10762
- const i = Ft(D(n, e, t)), s = Ft(D(n, e, r)), o = Ft(D(t, r, n)), a = Ft(D(t, r, e));
10763
- return !!(i !== s && o !== a || i === 0 && kt(n, t, e) || s === 0 && kt(n, r, e) || o === 0 && kt(t, n, r) || a === 0 && kt(t, e, r));
10762
+ const i = kt(D(n, e, t)), s = kt(D(n, e, r)), o = kt(D(t, r, n)), a = kt(D(t, r, e));
10763
+ return !!(i !== s && o !== a || i === 0 && Ft(n, t, e) || s === 0 && Ft(n, r, e) || o === 0 && Ft(t, n, r) || a === 0 && Ft(t, e, r));
10764
10764
  }
10765
- function kt(n, e, t) {
10765
+ function Ft(n, e, t) {
10766
10766
  return e.x <= Math.max(n.x, t.x) && e.x >= Math.min(n.x, t.x) && e.y <= Math.max(n.y, t.y) && e.y >= Math.min(n.y, t.y);
10767
10767
  }
10768
- function Ft(n) {
10768
+ function kt(n) {
10769
10769
  return n > 0 ? 1 : n < 0 ? -1 : 0;
10770
10770
  }
10771
10771
  function tf(n, e) {
@@ -10893,24 +10893,24 @@ class Pr {
10893
10893
  const u = this.cells[s];
10894
10894
  if (u !== null) {
10895
10895
  const c = this.keys, f = this.bboxes;
10896
- for (let d = 0; d < u.length; d++) {
10897
- const p = u[d];
10898
- if (a[p] === void 0) {
10899
- const h = p * 4;
10900
- (l ? l(f[h + 0], f[h + 1], f[h + 2], f[h + 3]) : e <= f[h + 2] && t <= f[h + 3] && r >= f[h + 0] && i >= f[h + 1]) ? (a[p] = !0, o.push(c[p])) : a[p] = !1;
10896
+ for (let p = 0; p < u.length; p++) {
10897
+ const d = u[p];
10898
+ if (a[d] === void 0) {
10899
+ const h = d * 4;
10900
+ (l ? l(f[h + 0], f[h + 1], f[h + 2], f[h + 3]) : e <= f[h + 2] && t <= f[h + 3] && r >= f[h + 0] && i >= f[h + 1]) ? (a[d] = !0, o.push(c[d])) : a[d] = !1;
10901
10901
  }
10902
10902
  }
10903
10903
  }
10904
10904
  }
10905
10905
  _forEachCell(e, t, r, i, s, o, a, l) {
10906
- const u = this._convertToCellCoord(e), c = this._convertToCellCoord(t), f = this._convertToCellCoord(r), d = this._convertToCellCoord(i);
10907
- for (let p = u; p <= f; p++)
10908
- for (let h = c; h <= d; h++) {
10909
- const y = this.d * h + p;
10906
+ const u = this._convertToCellCoord(e), c = this._convertToCellCoord(t), f = this._convertToCellCoord(r), p = this._convertToCellCoord(i);
10907
+ for (let d = u; d <= f; d++)
10908
+ for (let h = c; h <= p; h++) {
10909
+ const y = this.d * h + d;
10910
10910
  if (!(l && !l(
10911
- this._convertFromCellCoord(p),
10911
+ this._convertFromCellCoord(d),
10912
10912
  this._convertFromCellCoord(h),
10913
- this._convertFromCellCoord(p + 1),
10913
+ this._convertFromCellCoord(d + 1),
10914
10914
  this._convertFromCellCoord(h + 1)
10915
10915
  )) && s.call(this, e, t, r, i, y, o, a, l))
10916
10916
  return;
@@ -10995,9 +10995,9 @@ uf(0.25, 0.1, 0.25, 1);
10995
10995
  function wi(n, e, t) {
10996
10996
  return Math.min(t, Math.max(e, n));
10997
10997
  }
10998
- const Ti = {};
10998
+ const Ci = {};
10999
10999
  function X(n) {
11000
- Ti[n] || (typeof console < "u" && console.warn(n), Ti[n] = !0);
11000
+ Ci[n] || (typeof console < "u" && console.warn(n), Ci[n] = !0);
11001
11001
  }
11002
11002
  class cf extends Error {
11003
11003
  /**
@@ -11010,13 +11010,13 @@ class cf extends Error {
11010
11010
  super(`AJAXError: ${t} (${e}): ${r}`), this.status = e, this.statusText = t, this.url = r, this.body = i;
11011
11011
  }
11012
11012
  }
11013
- const Ci = {};
11013
+ const Ti = {};
11014
11014
  function J(n, e, t = {}) {
11015
- if (Ci[n]) throw new Error(`${n} is already registered.`);
11015
+ if (Ti[n]) throw new Error(`${n} is already registered.`);
11016
11016
  Object.defineProperty(e, "_classRegistryKey", {
11017
11017
  value: n,
11018
11018
  writeable: !1
11019
- }), Ci[n] = {
11019
+ }), Ti[n] = {
11020
11020
  klass: e,
11021
11021
  omit: t.omit || [],
11022
11022
  shallow: t.shallow || []
@@ -11025,12 +11025,12 @@ function J(n, e, t = {}) {
11025
11025
  J("Object", Object);
11026
11026
  J("Set", Set);
11027
11027
  J("TransferableGridIndex", Pr);
11028
- J("Color", k);
11028
+ J("Color", F);
11029
11029
  J("Error", Error);
11030
11030
  J("AJAXError", cf);
11031
11031
  J("ResolvedImage", de);
11032
11032
  J("StylePropertyFunction", bt);
11033
- J("StyleExpression", Ar, { omit: ["_evaluator"] });
11033
+ J("StyleExpression", zr, { omit: ["_evaluator"] });
11034
11034
  J("ZoomDependentExpression", jt);
11035
11035
  J("ZoomConstantExpression", $t);
11036
11036
  J("CompoundExpression", re, { omit: ["_evaluate"] });
@@ -11097,12 +11097,12 @@ class ff {
11097
11097
  }
11098
11098
  if (a === u || l === c)
11099
11099
  continue;
11100
- const f = Math.floor(a / this._granularityCellSize), d = Math.ceil(u / this._granularityCellSize), p = Math.floor(l / this._granularityCellSize), h = Math.ceil(c / this._granularityCellSize);
11101
- if (f === d && p === h) {
11100
+ const f = Math.floor(a / this._granularityCellSize), p = Math.ceil(u / this._granularityCellSize), d = Math.floor(l / this._granularityCellSize), h = Math.ceil(c / this._granularityCellSize);
11101
+ if (f === p && d === h) {
11102
11102
  t.push(...s);
11103
11103
  continue;
11104
11104
  }
11105
- for (let y = p; y < h; y++) {
11105
+ for (let y = d; y < h; y++) {
11106
11106
  const m = this._scanlineGenerateVertexRingForCellRow(y, o, s);
11107
11107
  yf(this._vertexBuffer, m, t);
11108
11108
  }
@@ -11119,19 +11119,19 @@ class ff {
11119
11119
  _scanlineGenerateVertexRingForCellRow(e, t, r) {
11120
11120
  const i = e * this._granularityCellSize, s = i + this._granularityCellSize, o = [];
11121
11121
  for (let a = 0; a < 3; a++) {
11122
- const l = t[a * 2], u = t[a * 2 + 1], c = t[(a + 1) * 2 % 6], f = t[((a + 1) * 2 + 1) % 6], d = t[(a + 2) * 2 % 6], p = t[((a + 2) * 2 + 1) % 6], h = c - l, y = f - u, m = h === 0, v = y === 0, w = (i - u) / y, g = (s - u) / y, x = Math.min(w, g), b = Math.max(w, g);
11122
+ const l = t[a * 2], u = t[a * 2 + 1], c = t[(a + 1) * 2 % 6], f = t[((a + 1) * 2 + 1) % 6], p = t[(a + 2) * 2 % 6], d = t[((a + 2) * 2 + 1) % 6], h = c - l, y = f - u, m = h === 0, v = y === 0, w = (i - u) / y, g = (s - u) / y, x = Math.min(w, g), b = Math.max(w, g);
11123
11123
  if (!v && (x >= 1 || b <= 0) || v && (u < i || u > s)) {
11124
11124
  f >= i && f <= s && o.push(r[(a + 1) % 3]);
11125
11125
  continue;
11126
11126
  }
11127
11127
  if (!v && x > 0) {
11128
- const I = l + h * x, F = u + y * x;
11129
- o.push(this._vertexToIndex(I, F));
11128
+ const I = l + h * x, k = u + y * x;
11129
+ o.push(this._vertexToIndex(I, k));
11130
11130
  }
11131
- const C = l + h * Math.max(x, 0), _ = l + h * Math.min(b, 1);
11132
- if (m || this._generateIntraEdgeVertices(o, l, u, c, f, C, _), !v && b < 1) {
11133
- const I = l + h * b, F = u + y * b;
11134
- o.push(this._vertexToIndex(I, F));
11131
+ const T = l + h * Math.max(x, 0), _ = l + h * Math.min(b, 1);
11132
+ if (m || this._generateIntraEdgeVertices(o, l, u, c, f, T, _), !v && b < 1) {
11133
+ const I = l + h * b, k = u + y * b;
11134
+ o.push(this._vertexToIndex(I, k));
11135
11135
  }
11136
11136
  (v || f >= i && f <= s) && o.push(r[(a + 1) % 3]), !v && (f <= i || f >= s) && this._generateInterEdgeVertices(
11137
11137
  o,
@@ -11139,8 +11139,8 @@ class ff {
11139
11139
  u,
11140
11140
  c,
11141
11141
  f,
11142
- d,
11143
11142
  p,
11143
+ d,
11144
11144
  _,
11145
11145
  i,
11146
11146
  s
@@ -11156,14 +11156,14 @@ class ff {
11156
11156
  * @param exitX - The X coordinate of the point where edge A-\>B exits the current cell row.
11157
11157
  */
11158
11158
  _generateIntraEdgeVertices(e, t, r, i, s, o, a) {
11159
- const l = i - t, u = s - r, c = u === 0, f = c ? Math.min(t, i) : Math.min(o, a), d = c ? Math.max(t, i) : Math.max(o, a), p = Math.floor(f / this._granularityCellSize) + 1, h = Math.ceil(d / this._granularityCellSize) - 1;
11159
+ const l = i - t, u = s - r, c = u === 0, f = c ? Math.min(t, i) : Math.min(o, a), p = c ? Math.max(t, i) : Math.max(o, a), d = Math.floor(f / this._granularityCellSize) + 1, h = Math.ceil(p / this._granularityCellSize) - 1;
11160
11160
  if (c ? t < i : o < a)
11161
- for (let m = p; m <= h; m++) {
11161
+ for (let m = d; m <= h; m++) {
11162
11162
  const v = m * this._granularityCellSize, w = r + u * (v - t) / l;
11163
11163
  e.push(this._vertexToIndex(v, w));
11164
11164
  }
11165
11165
  else
11166
- for (let m = h; m >= p; m--) {
11166
+ for (let m = h; m >= d; m--) {
11167
11167
  const v = m * this._granularityCellSize, w = r + u * (v - t) / l;
11168
11168
  e.push(this._vertexToIndex(v, w));
11169
11169
  }
@@ -11180,25 +11180,25 @@ class ff {
11180
11180
  * @param cellRowYBottom - The current cell row bottom Y coordinate.
11181
11181
  */
11182
11182
  _generateInterEdgeVertices(e, t, r, i, s, o, a, l, u, c) {
11183
- const f = s - r, d = o - i, p = a - s, h = (u - s) / p, y = (c - s) / p, m = Math.min(h, y), v = Math.max(h, y), w = i + d * m;
11183
+ const f = s - r, p = o - i, d = a - s, h = (u - s) / d, y = (c - s) / d, m = Math.min(h, y), v = Math.max(h, y), w = i + p * m;
11184
11184
  let g = Math.floor(Math.min(w, l) / this._granularityCellSize) + 1, x = Math.ceil(Math.max(w, l) / this._granularityCellSize) - 1, b = l < w;
11185
- const C = p === 0;
11186
- if (C && (a === u || a === c))
11185
+ const T = d === 0;
11186
+ if (T && (a === u || a === c))
11187
11187
  return;
11188
- if (C || m >= 1 || v <= 0) {
11189
- const I = t - o, F = r - a, P = (u - a) / F, G = (c - a) / F, j = Math.min(P, G), oe = o + I * j;
11188
+ if (T || m >= 1 || v <= 0) {
11189
+ const I = t - o, k = r - a, P = (u - a) / k, G = (c - a) / k, j = Math.min(P, G), oe = o + I * j;
11190
11190
  g = Math.floor(Math.min(oe, l) / this._granularityCellSize) + 1, x = Math.ceil(Math.max(oe, l) / this._granularityCellSize) - 1, b = l < oe;
11191
11191
  }
11192
11192
  const _ = f > 0 ? c : u;
11193
11193
  if (b)
11194
11194
  for (let I = g; I <= x; I++) {
11195
- const F = I * this._granularityCellSize;
11196
- e.push(this._vertexToIndex(F, _));
11195
+ const k = I * this._granularityCellSize;
11196
+ e.push(this._vertexToIndex(k, _));
11197
11197
  }
11198
11198
  else
11199
11199
  for (let I = x; I >= g; I--) {
11200
- const F = I * this._granularityCellSize;
11201
- e.push(this._vertexToIndex(F, _));
11200
+ const k = I * this._granularityCellSize;
11201
+ e.push(this._vertexToIndex(k, _));
11202
11202
  }
11203
11203
  }
11204
11204
  /**
@@ -11259,8 +11259,8 @@ class ff {
11259
11259
  _fillPoles(e, t, r) {
11260
11260
  const i = this._vertexBuffer, s = 0, o = te, a = e.length;
11261
11261
  for (let l = 2; l < a; l += 3) {
11262
- const u = e[l - 2], c = e[l - 1], f = e[l], d = i[u * 2], p = i[u * 2 + 1], h = i[c * 2], y = i[c * 2 + 1], m = i[f * 2], v = i[f * 2 + 1];
11263
- t && (p === s && y === s && this._generatePoleQuad(e, u, c, d, h, De), y === s && v === s && this._generatePoleQuad(e, c, f, h, m, De), v === s && p === s && this._generatePoleQuad(e, f, u, m, d, De)), r && (p === o && y === o && this._generatePoleQuad(e, u, c, d, h, et), y === o && v === o && this._generatePoleQuad(e, c, f, h, m, et), v === o && p === o && this._generatePoleQuad(e, f, u, m, d, et));
11262
+ const u = e[l - 2], c = e[l - 1], f = e[l], p = i[u * 2], d = i[u * 2 + 1], h = i[c * 2], y = i[c * 2 + 1], m = i[f * 2], v = i[f * 2 + 1];
11263
+ t && (d === s && y === s && this._generatePoleQuad(e, u, c, p, h, De), y === s && v === s && this._generatePoleQuad(e, c, f, h, m, De), v === s && d === s && this._generatePoleQuad(e, f, u, m, p, De)), r && (d === o && y === o && this._generatePoleQuad(e, u, c, p, h, et), y === o && v === o && this._generatePoleQuad(e, c, f, h, m, et), v === o && d === o && this._generatePoleQuad(e, f, u, m, p, et));
11264
11264
  }
11265
11265
  }
11266
11266
  /**
@@ -11341,13 +11341,13 @@ function Os(n, e, t = !1) {
11341
11341
  a.push(new M(n[0].x, n[0].y));
11342
11342
  const l = n.length, u = s ? l : l - 1;
11343
11343
  for (let c = 0; c < u; c++) {
11344
- const f = n[c], d = c < l - 1 ? n[c + 1] : n[0], p = f.x, h = f.y, y = d.x, m = d.y, v = p !== y, w = h !== m;
11344
+ const f = n[c], p = c < l - 1 ? n[c + 1] : n[0], d = f.x, h = f.y, y = p.x, m = p.y, v = d !== y, w = h !== m;
11345
11345
  if (!v && !w)
11346
11346
  continue;
11347
- const g = y - p, x = m - h, b = Math.abs(g), C = Math.abs(x);
11348
- let _ = p, I = h;
11347
+ const g = y - d, x = m - h, b = Math.abs(g), T = Math.abs(x);
11348
+ let _ = d, I = h;
11349
11349
  for (; ; ) {
11350
- const P = g > 0 ? (Math.floor(_ / o) + 1) * o : (Math.ceil(_ / o) - 1) * o, G = x > 0 ? (Math.floor(I / o) + 1) * o : (Math.ceil(I / o) - 1) * o, j = Math.abs(_ - P), oe = Math.abs(I - G), Me = Math.abs(_ - y), Ns = Math.abs(I - m), Vr = v ? j / b : Number.POSITIVE_INFINITY, Dr = w ? oe / C : Number.POSITIVE_INFINITY;
11350
+ const P = g > 0 ? (Math.floor(_ / o) + 1) * o : (Math.ceil(_ / o) - 1) * o, G = x > 0 ? (Math.floor(I / o) + 1) * o : (Math.ceil(I / o) - 1) * o, j = Math.abs(_ - P), oe = Math.abs(I - G), Me = Math.abs(_ - y), Ns = Math.abs(I - m), Vr = v ? j / b : Number.POSITIVE_INFINITY, Dr = w ? oe / T : Number.POSITIVE_INFINITY;
11351
11351
  if ((Me <= j || !v) && (Ns <= oe || !w))
11352
11352
  break;
11353
11353
  if (Vr < Dr && v || !w) {
@@ -11360,8 +11360,8 @@ function Os(n, e, t = !1) {
11360
11360
  (a[a.length - 1].x !== _e.x || a[a.length - 1].y !== _e.y) && a.push(_e);
11361
11361
  }
11362
11362
  }
11363
- const F = new M(y, m);
11364
- (a[a.length - 1].x !== F.x || a[a.length - 1].y !== F.y) && a.push(F);
11363
+ const k = new M(y, m);
11364
+ (a[a.length - 1].x !== k.x || a[a.length - 1].y !== k.y) && a.push(k);
11365
11365
  }
11366
11366
  return a;
11367
11367
  }
@@ -11381,8 +11381,8 @@ function pf(n) {
11381
11381
  function df(n, e) {
11382
11382
  const t = [];
11383
11383
  for (let r = 0; r < e.length; r += 3) {
11384
- const i = e[r], s = e[r + 1], o = e[r + 2], a = n[i * 2], l = n[i * 2 + 1], u = n[s * 2], c = n[s * 2 + 1], f = n[o * 2], d = n[o * 2 + 1], p = u - a, h = c - l, y = f - a, m = d - l;
11385
- p * m - h * y > 0 ? (t.push(i), t.push(o), t.push(s)) : (t.push(i), t.push(s), t.push(o));
11384
+ const i = e[r], s = e[r + 1], o = e[r + 2], a = n[i * 2], l = n[i * 2 + 1], u = n[s * 2], c = n[s * 2 + 1], f = n[o * 2], p = n[o * 2 + 1], d = u - a, h = c - l, y = f - a, m = p - l;
11385
+ d * m - h * y > 0 ? (t.push(i), t.push(o), t.push(s)) : (t.push(i), t.push(s), t.push(o));
11386
11386
  }
11387
11387
  return t;
11388
11388
  }
@@ -11397,15 +11397,15 @@ function yf(n, e, t) {
11397
11397
  const s = e.length;
11398
11398
  let o = r, a = (o + 1) % s;
11399
11399
  for (; ; ) {
11400
- const l = o - 1 >= 0 ? o - 1 : s - 1, u = (a + 1) % s, c = n[e[l] * 2], f = n[e[l] * 2 + 1], d = n[e[u] * 2], p = n[e[u] * 2 + 1], h = n[e[o] * 2], y = n[e[o] * 2 + 1], m = n[e[a] * 2], v = n[e[a] * 2 + 1];
11400
+ const l = o - 1 >= 0 ? o - 1 : s - 1, u = (a + 1) % s, c = n[e[l] * 2], f = n[e[l] * 2 + 1], p = n[e[u] * 2], d = n[e[u] * 2 + 1], h = n[e[o] * 2], y = n[e[o] * 2 + 1], m = n[e[a] * 2], v = n[e[a] * 2 + 1];
11401
11401
  let w = !1;
11402
- if (c < d)
11402
+ if (c < p)
11403
11403
  w = !0;
11404
- else if (c > d)
11404
+ else if (c > p)
11405
11405
  w = !1;
11406
11406
  else {
11407
- const g = m - h, b = v - y, C = -g, _ = y < v ? 1 : -1, I = ((c - h) * b + (f - y) * C) * _, F = ((d - h) * b + (p - y) * C) * _;
11408
- I > F && (w = !0);
11407
+ const g = m - h, b = v - y, T = -g, _ = y < v ? 1 : -1, I = ((c - h) * b + (f - y) * T) * _, k = ((p - h) * b + (d - y) * T) * _;
11408
+ I > k && (w = !0);
11409
11409
  }
11410
11410
  if (w) {
11411
11411
  const g = e[l], x = e[o], b = e[a];
@@ -11595,23 +11595,23 @@ class Mr {
11595
11595
  async createRenderLayers(e, t) {
11596
11596
  const r = this.sources, i = t._styleLayers, s = this.layers, o = this.visualizers, a = {};
11597
11597
  for (const l of i) {
11598
- const u = r[l.source], c = nt[l.type], f = rt[l.type], d = l.type === "background";
11599
- if (c || X("不支持图层类型" + l.type), !d && !u || !c) continue;
11600
- const p = [];
11601
- if (!d) {
11598
+ const u = r[l.source], c = nt[l.type], f = rt[l.type], p = l.type === "background";
11599
+ if (c || X("不支持图层类型" + l.type), !p && !u || !c) continue;
11600
+ const d = [];
11601
+ if (!p) {
11602
11602
  const m = (l.source && t.sources[l.source].type) == "geojson" ? "_geojsonTileLayer" : l.sourceLayer, v = u.layers[m];
11603
11603
  if (!v) continue;
11604
11604
  const w = v.length;
11605
11605
  for (let g = 0; g < w; g++) {
11606
11606
  const x = v.feature(g);
11607
- l.filter && !l.filter.filter({ zoom: this.z }, x) || (x.toGeoJSON || (x.toGeoJSON = We.prototype.toGeoJSON), p.push(x));
11607
+ l.filter && !l.filter.filter({ zoom: this.z }, x) || (x.toGeoJSON || (x.toGeoJSON = We.prototype.toGeoJSON), d.push(x));
11608
11608
  }
11609
- if (!p.length) continue;
11609
+ if (!d.length) continue;
11610
11610
  }
11611
- const h = new c(p, l, this);
11611
+ const h = new c(d, l, this);
11612
11612
  if (s.push(h), f) {
11613
11613
  let y = a[l.type];
11614
- y || (y = new f(this), a[l.type] = y, o.push(y)), y.addLayer(p, h, e, t);
11614
+ y || (y = new f(this), a[l.type] = y, o.push(y)), y.addLayer(d, h, e, t);
11615
11615
  }
11616
11616
  }
11617
11617
  this.state = "ready";
@@ -11631,12 +11631,12 @@ class Mr {
11631
11631
  for (const l of e.fill || []) {
11632
11632
  const u = i.find((h) => h.id === l.layerId);
11633
11633
  if (!u) continue;
11634
- const c = nt.fill, f = rt.fill, d = new c([], u, this);
11635
- s.push(d);
11636
- let p = a.fill;
11637
- p || (p = new f(this), a.fill = p, o.push(p)), p.addLayerFromWorkerResult(
11634
+ const c = nt.fill, f = rt.fill, p = new c([], u, this);
11635
+ s.push(p);
11636
+ let d = a.fill;
11637
+ d || (d = new f(this), a.fill = d, o.push(d)), d.addLayerFromWorkerResult(
11638
11638
  l,
11639
- d,
11639
+ p,
11640
11640
  t,
11641
11641
  r
11642
11642
  );
@@ -11644,12 +11644,12 @@ class Mr {
11644
11644
  for (const l of e.line || []) {
11645
11645
  const u = i.find((h) => h.id === l.layerId);
11646
11646
  if (!u) continue;
11647
- const c = nt.line, f = rt.line, d = new c([], u, this);
11648
- s.push(d);
11649
- let p = a.line;
11650
- p || (p = new f(this), a.line = p, o.push(p)), p.addLayerFromWorkerResult(
11647
+ const c = nt.line, f = rt.line, p = new c([], u, this);
11648
+ s.push(p);
11649
+ let d = a.line;
11650
+ d || (d = new f(this), a.line = d, o.push(d)), d.addLayerFromWorkerResult(
11651
11651
  l,
11652
- d,
11652
+ p,
11653
11653
  t,
11654
11654
  r
11655
11655
  );
@@ -11657,12 +11657,12 @@ class Mr {
11657
11657
  for (const l of e.symbol || []) {
11658
11658
  const u = i.find((h) => h.id === l.layerId);
11659
11659
  if (!u) continue;
11660
- const c = nt.symbol, f = rt.symbol, d = new c([], u, this);
11661
- s.push(d);
11662
- let p = a.symbol;
11663
- p || (p = new f(this), a.symbol = p, o.push(p)), p.addLayerFromWorkerResult(
11660
+ const c = nt.symbol, f = rt.symbol, p = new c([], u, this);
11661
+ s.push(p);
11662
+ let d = a.symbol;
11663
+ d || (d = new f(this), a.symbol = d, o.push(d)), d.addLayerFromWorkerResult(
11664
11664
  l,
11665
- d,
11665
+ p,
11666
11666
  t,
11667
11667
  r
11668
11668
  );
@@ -11867,13 +11867,13 @@ class vf {
11867
11867
  y2: this.bboxes[u * 4 + 3]
11868
11868
  });
11869
11869
  for (let u = 0; u < this.circleKeys.length; u++) {
11870
- const c = this.circles[u * 3], f = this.circles[u * 3 + 1], d = this.circles[u * 3 + 2];
11870
+ const c = this.circles[u * 3], f = this.circles[u * 3 + 1], p = this.circles[u * 3 + 2];
11871
11871
  l.push({
11872
11872
  key: this.circleKeys[u],
11873
- x1: c - d,
11874
- y1: f - d,
11875
- x2: c + d,
11876
- y2: f + d
11873
+ x1: c - p,
11874
+ y1: f - p,
11875
+ x2: c + p,
11876
+ y2: f + p
11877
11877
  });
11878
11878
  }
11879
11879
  } else {
@@ -11905,10 +11905,10 @@ class vf {
11905
11905
  return this._forEachCell(o, l, a, u, this._queryCellCircle, c, f, s), c.length > 0;
11906
11906
  }
11907
11907
  _queryCell(e, t, r, i, s, o, a, l) {
11908
- const { seenUids: u, hitTest: c, overlapMode: f } = a, d = this.boxCells[s];
11909
- if (d !== null) {
11908
+ const { seenUids: u, hitTest: c, overlapMode: f } = a, p = this.boxCells[s];
11909
+ if (p !== null) {
11910
11910
  const h = this.bboxes;
11911
- for (const y of d)
11911
+ for (const y of p)
11912
11912
  if (!u.box[y]) {
11913
11913
  u.box[y] = !0;
11914
11914
  const m = y * 4, v = this.boxKeys[y];
@@ -11922,10 +11922,10 @@ class vf {
11922
11922
  return !0;
11923
11923
  }
11924
11924
  }
11925
- const p = this.circleCells[s];
11926
- if (p !== null) {
11925
+ const d = this.circleCells[s];
11926
+ if (d !== null) {
11927
11927
  const h = this.circles;
11928
- for (const y of p)
11928
+ for (const y of d)
11929
11929
  if (!u.circle[y]) {
11930
11930
  u.circle[y] = !0;
11931
11931
  const m = y * 3, v = this.circleKeys[y];
@@ -11953,10 +11953,10 @@ class vf {
11953
11953
  return !1;
11954
11954
  }
11955
11955
  _queryCellCircle(e, t, r, i, s, o, a, l) {
11956
- const { circle: u, seenUids: c, overlapMode: f } = a, d = this.boxCells[s];
11957
- if (d !== null) {
11956
+ const { circle: u, seenUids: c, overlapMode: f } = a, p = this.boxCells[s];
11957
+ if (p !== null) {
11958
11958
  const h = this.bboxes;
11959
- for (const y of d)
11959
+ for (const y of p)
11960
11960
  if (!c.box[y]) {
11961
11961
  c.box[y] = !0;
11962
11962
  const m = y * 4, v = this.boxKeys[y];
@@ -11972,10 +11972,10 @@ class vf {
11972
11972
  return o.push(!0), !0;
11973
11973
  }
11974
11974
  }
11975
- const p = this.circleCells[s];
11976
- if (p !== null) {
11975
+ const d = this.circleCells[s];
11976
+ if (d !== null) {
11977
11977
  const h = this.circles;
11978
- for (const y of p)
11978
+ for (const y of d)
11979
11979
  if (!c.circle[y]) {
11980
11980
  c.circle[y] = !0;
11981
11981
  const m = y * 3, v = this.circleKeys[y];
@@ -11992,10 +11992,10 @@ class vf {
11992
11992
  }
11993
11993
  }
11994
11994
  _forEachCell(e, t, r, i, s, o, a, l) {
11995
- const u = this._convertToXCellCoord(e), c = this._convertToYCellCoord(t), f = this._convertToXCellCoord(r), d = this._convertToYCellCoord(i);
11996
- for (let p = u; p <= f; p++)
11997
- for (let h = c; h <= d; h++) {
11998
- const y = this.xCellCount * h + p;
11995
+ const u = this._convertToXCellCoord(e), c = this._convertToYCellCoord(t), f = this._convertToXCellCoord(r), p = this._convertToYCellCoord(i);
11996
+ for (let d = u; d <= f; d++)
11997
+ for (let h = c; h <= p; h++) {
11998
+ const y = this.xCellCount * h + d;
11999
11999
  if (s.call(this, e, t, r, i, y, o, a, l)) return;
12000
12000
  }
12001
12001
  }
@@ -12018,8 +12018,8 @@ class vf {
12018
12018
  return !1;
12019
12019
  if (u <= l || f <= c)
12020
12020
  return !0;
12021
- const d = u - l, p = f - c;
12022
- return d * d + p * p <= r * r;
12021
+ const p = u - l, d = f - c;
12022
+ return p * p + d * d <= r * r;
12023
12023
  }
12024
12024
  }
12025
12025
  const Ii = 100;
@@ -12046,10 +12046,10 @@ class bf {
12046
12046
  const f = u.layout.getDataConstValue(
12047
12047
  "text-allow-overlap",
12048
12048
  l.tile.z
12049
- ), d = u.layout.getDataConstValue(
12049
+ ), p = u.layout.getDataConstValue(
12050
12050
  "text-overlap",
12051
12051
  l.tile.z
12052
- ), p = wf(d, f), h = u.layout.getDataConstValue(
12052
+ ), d = wf(p, f), h = u.layout.getDataConstValue(
12053
12053
  "text-padding",
12054
12054
  l.tile.z
12055
12055
  );
@@ -12067,11 +12067,11 @@ class bf {
12067
12067
  m,
12068
12068
  Si
12069
12069
  ), w = v.x - h, g = v.y - h, x = w + v.width + h, b = g + v.height + h;
12070
- if (a.hitTest(w, g, x, b, p, null))
12070
+ if (a.hitTest(w, g, x, b, d, null))
12071
12071
  y.vtPlaceable = !1;
12072
12072
  else {
12073
- const C = { overlapMode: p };
12074
- a.insert(C, w, g, x, b), y.vtPlaceable = !0;
12073
+ const T = { overlapMode: d };
12074
+ a.insert(T, w, g, x, b), y.vtPlaceable = !0;
12075
12075
  }
12076
12076
  }
12077
12077
  }
@@ -12081,7 +12081,7 @@ function wf(n, e) {
12081
12081
  let t = "never";
12082
12082
  return n ? t = n : e && (t = "always"), t;
12083
12083
  }
12084
- class Pf {
12084
+ class Mf {
12085
12085
  /**
12086
12086
  * @param {object} options
12087
12087
  * @param {string|import('@maplibre/maplibre-gl-style-spec').StyleSpecification} options.style
@@ -12164,11 +12164,11 @@ class Pf {
12164
12164
  t.beginFrame(), this.numInitializing = 0;
12165
12165
  const r = e.camera._scene, s = r.globe._surface._debug.suspendLodUpdate;
12166
12166
  this.scene = r;
12167
- const o = Tf(e, this);
12167
+ const o = Cf(e, this);
12168
12168
  s || o.sort((c, f) => c.distanceToCamera - f.distanceToCamera);
12169
12169
  for (const c of o)
12170
12170
  c.lastVisitTime = e.frameNumber, c.expired = !1, c.update(e, t, this);
12171
- const a = s ? this._tilesToRender : Cf(o, this._tilesToRender);
12171
+ const a = s ? this._tilesToRender : Tf(o, this._tilesToRender);
12172
12172
  s || a.sort((c, f) => c.distanceToCamera - f.distanceToCamera);
12173
12173
  for (const c of a)
12174
12174
  c.lastVisitTime = e.frameNumber, c.expired = !1, c.render(e, t, this);
@@ -12205,7 +12205,7 @@ class Pf {
12205
12205
  return !1;
12206
12206
  }
12207
12207
  }
12208
- function Tf(n, e) {
12208
+ function Cf(n, e) {
12209
12209
  const t = [...e._rootTiles], r = e._tilesToUpdate;
12210
12210
  let i = 24, s = 1 / 0;
12211
12211
  const o = {
@@ -12232,7 +12232,7 @@ function Tf(n, e) {
12232
12232
  while (t.length > 0);
12233
12233
  return e.zoom = i, r;
12234
12234
  }
12235
- function Cf(n, e) {
12235
+ function Tf(n, e) {
12236
12236
  const t = /* @__PURE__ */ new Map();
12237
12237
  for (const s of n)
12238
12238
  s.renderable && t.set(s, !0);
@@ -12250,11 +12250,11 @@ function Cf(n, e) {
12250
12250
  const u = l.z - o.z;
12251
12251
  if (u !== 0)
12252
12252
  if (u > 0) {
12253
- const c = Math.pow(2, u), f = Math.floor(l.x / c), d = Math.floor(l.y / c);
12254
- f === o.x && d === o.y && (a.total++, a.tiles.push(l), l.renderable && a.renderable++);
12253
+ const c = Math.pow(2, u), f = Math.floor(l.x / c), p = Math.floor(l.y / c);
12254
+ f === o.x && p === o.y && (a.total++, a.tiles.push(l), l.renderable && a.renderable++);
12255
12255
  } else {
12256
- const c = Math.pow(2, -u), f = Math.floor(o.x / c), d = Math.floor(o.y / c);
12257
- f === l.x && d === l.y && (o.renderable = !l.renderable);
12256
+ const c = Math.pow(2, -u), f = Math.floor(o.x / c), p = Math.floor(o.y / c);
12257
+ f === l.x && p === l.y && (o.renderable = !l.renderable);
12258
12258
  }
12259
12259
  }
12260
12260
  }
@@ -12482,28 +12482,28 @@ class Lf extends Or {
12482
12482
  const s = t.style, { tile: o, geometryInstances: a } = this, l = Vs.globe.line.getGranularityForZoomLevel(o.z) / 2, u = this;
12483
12483
  let c = 0;
12484
12484
  const f = i.sources[t.style.source].styleSource.promoteId;
12485
- for (const d of e) {
12486
- const p = We.types[d.type], h = d.properties;
12487
- if (p !== "Polygon") continue;
12485
+ for (const p of e) {
12486
+ const d = We.types[p.type], h = p.properties;
12487
+ if (d !== "Polygon") continue;
12488
12488
  if (s.paint.getDataValue(
12489
12489
  "fill-pattern",
12490
12490
  o.z,
12491
- d
12491
+ p
12492
12492
  )) {
12493
12493
  X("fill图层:不支持纹理填充(fill-pattern)");
12494
12494
  continue;
12495
12495
  }
12496
- const m = d.id || h[f], v = s.convertColor(
12497
- s.paint.getDataValue("fill-color", o.z, d)
12496
+ const m = p.id || h[f], v = s.convertColor(
12497
+ s.paint.getDataValue("fill-color", o.z, p)
12498
12498
  ), w = s.paint.getDataValue(
12499
12499
  "fill-opacity",
12500
12500
  o.z,
12501
- d
12502
- ), g = Ds(d), x = ki(g);
12501
+ p
12502
+ ), g = Ds(p), x = Fi(g);
12503
12503
  for (const b of x) {
12504
12504
  if (b.some((I) => I.length < 3)) continue;
12505
- const C = a.length;
12506
- c == 0 && (t.firstBatchId = C), t.lastBatchId = C;
12505
+ const T = a.length;
12506
+ c == 0 && (t.firstBatchId = T), t.lastBatchId = T;
12507
12507
  const _ = {
12508
12508
  coordinates: b,
12509
12509
  featureId: c,
@@ -12513,7 +12513,7 @@ class Lf extends Or {
12513
12513
  //保存原始数据的要素id,后续可以用来支持 featureState 表达式,这个表达式可以实现选定要素高亮显示
12514
12514
  id: m,
12515
12515
  //保存batchId,将矢量要素与几何顶点关联,后续可以实时更新图层样式
12516
- batchId: C
12516
+ batchId: T
12517
12517
  };
12518
12518
  u.addFeature(_, l), c++;
12519
12519
  }
@@ -12530,7 +12530,7 @@ class Lf extends Or {
12530
12530
  addLayerFromWorkerResult(e, t, r, i) {
12531
12531
  const { batches: s, firstBatchId: o, lastBatchId: a } = e, l = this.geometryInstances, u = new Cesium.Cartesian3();
12532
12532
  for (const c of s) {
12533
- const { positions: f, normals: d, st: p, indices: h, colorBytes: y, id: m, properties: v } = c;
12533
+ const { positions: f, normals: p, st: d, indices: h, colorBytes: y, id: m, properties: v } = c;
12534
12534
  f.length / 3;
12535
12535
  const w = new Cesium.Geometry({
12536
12536
  attributes: {
@@ -12544,13 +12544,13 @@ class Lf extends Or {
12544
12544
  componentDatatype: Cesium.ComponentDatatype.FLOAT,
12545
12545
  componentsPerAttribute: 3,
12546
12546
  normalize: !1,
12547
- values: d
12547
+ values: p
12548
12548
  },
12549
12549
  st: {
12550
12550
  componentDatatype: Cesium.ComponentDatatype.FLOAT,
12551
12551
  componentsPerAttribute: 2,
12552
12552
  normalize: !1,
12553
- values: p
12553
+ values: d
12554
12554
  }
12555
12555
  },
12556
12556
  primitiveType: Cesium.PrimitiveType.TRIANGLES,
@@ -12597,26 +12597,26 @@ class Lf extends Or {
12597
12597
  this.tile,
12598
12598
  t,
12599
12599
  !1
12600
- ), u = l.verticesFlattened, c = [0, 0], f = new Cesium.Cartesian3(), d = u.length / 2, p = new Float64Array(d * 3), h = new Float32Array(d * 3), y = new Float32Array(d * 2);
12601
- for (let b = 0, C = 0; b < u.length; b += 2, C++) {
12602
- const _ = u[b], I = u[b + 1], F = this.tile.transformPoint(_, I, c), P = Cesium.Cartesian3.fromDegrees(
12603
- F[0],
12604
- F[1],
12600
+ ), u = l.verticesFlattened, c = [0, 0], f = new Cesium.Cartesian3(), p = u.length / 2, d = new Float64Array(p * 3), h = new Float32Array(p * 3), y = new Float32Array(p * 2);
12601
+ for (let b = 0, T = 0; b < u.length; b += 2, T++) {
12602
+ const _ = u[b], I = u[b + 1], k = this.tile.transformPoint(_, I, c), P = Cesium.Cartesian3.fromDegrees(
12603
+ k[0],
12604
+ k[1],
12605
12605
  0,
12606
12606
  null,
12607
12607
  f
12608
12608
  );
12609
- p[C * 3] = P.x, p[C * 3 + 1] = P.y, p[C * 3 + 2] = P.z;
12609
+ d[T * 3] = P.x, d[T * 3 + 1] = P.y, d[T * 3 + 2] = P.z;
12610
12610
  const G = Cesium.Cartesian3.normalize(P, P);
12611
- h[C * 3] = G.x, h[C * 3 + 1] = G.y, h[C * 3 + 2] = G.z, y[C * 2] = _ / te, y[C * 2 + 1] = I / te;
12611
+ h[T * 3] = G.x, h[T * 3 + 1] = G.y, h[T * 3 + 2] = G.z, y[T * 2] = _ / te, y[T * 2 + 1] = I / te;
12612
12612
  }
12613
- const m = new (d > 65535 ? Uint32Array : d > 255 ? Uint16Array : Uint8Array)(l.indicesTriangles), v = new Cesium.Geometry({
12613
+ const m = new (p > 65535 ? Uint32Array : p > 255 ? Uint16Array : Uint8Array)(l.indicesTriangles), v = new Cesium.Geometry({
12614
12614
  attributes: {
12615
12615
  position: {
12616
12616
  componentDatatype: Cesium.ComponentDatatype.DOUBLE,
12617
12617
  componentsPerAttribute: 3,
12618
12618
  normalize: !1,
12619
- values: p
12619
+ values: d
12620
12620
  },
12621
12621
  normal: {
12622
12622
  componentDatatype: Cesium.ComponentDatatype.FLOAT,
@@ -12633,7 +12633,7 @@ class Lf extends Or {
12633
12633
  },
12634
12634
  primitiveType: Cesium.PrimitiveType.TRIANGLES,
12635
12635
  indices: m,
12636
- boundingSphere: Cesium.BoundingSphere.fromVertices(p)
12636
+ boundingSphere: Cesium.BoundingSphere.fromVertices(d)
12637
12637
  }), w = Cesium.Cartographic.fromCartesian(
12638
12638
  v.boundingSphere.center
12639
12639
  );
@@ -12734,12 +12734,12 @@ void main()
12734
12734
  const { firstBatchId: c, lastBatchId: f } = u;
12735
12735
  if (c === -1 || f === -1)
12736
12736
  continue;
12737
- let d = -1, p = -1;
12737
+ let p = -1, d = -1;
12738
12738
  for (let h = c; h <= f; h++) {
12739
12739
  const y = r[h];
12740
- y && (d === -1 && (d = y.begin), p = y.end);
12740
+ y && (p === -1 && (p = y.begin), d = y.end);
12741
12741
  }
12742
- d === -1 || p === -1 || (u.offsets[t] = d, u.counts[t] = p - d + 1);
12742
+ p === -1 || d === -1 || (u.offsets[t] = p, u.counts[t] = d - p + 1);
12743
12743
  }
12744
12744
  }
12745
12745
  }
@@ -12780,8 +12780,8 @@ void main()
12780
12780
  }, f.uniformMap.tileId = function() {
12781
12781
  return i.color;
12782
12782
  }, f.pass = Cesium.Pass.CESIUM_3D_TILE;
12783
- const d = Cesium.DrawCommand.shallowClone(f);
12784
- d.pass = Cesium.Pass.CESIUM_3D_TILE, d.renderState = r, d.layerType = "fill", d.offset = u, d.count = c, a.push(d);
12783
+ const p = Cesium.DrawCommand.shallowClone(f);
12784
+ p.pass = Cesium.Pass.CESIUM_3D_TILE, p.renderState = r, p.layerType = "fill", p.offset = u, p.count = c, a.push(p);
12785
12785
  }
12786
12786
  o.state = "done";
12787
12787
  }
@@ -12817,7 +12817,7 @@ class Sf extends yn {
12817
12817
  }
12818
12818
  mn("fill", Sf, Lf);
12819
12819
  const Ef = We.prototype.toGeoJSON;
12820
- class zf extends Or {
12820
+ class Af extends Or {
12821
12821
  constructor(e, t) {
12822
12822
  super(e, t), this.geometryInstances = [], this.primitive = null, this.commandsReady = !1;
12823
12823
  }
@@ -12830,14 +12830,14 @@ class zf extends Or {
12830
12830
  addLayer(e, t, r, i) {
12831
12831
  const s = t.style, { tile: o, geometryInstances: a } = this, l = Vs.globe.line.getGranularityForZoomLevel(o.z), u = this, c = i.sources[t.style.source].styleSource.promoteId;
12832
12832
  let f = 0;
12833
- const d = s.paint.getDataConstValue("line-dasharray", o.z);
12834
- if (d && d.length) {
12835
- d.length % 2 > 0 && d.push(0), t.dashLength = 0;
12836
- for (let h = 0; h < d.length; h++)
12837
- t.dashLength += d[h];
12838
- t.dasharray = d, d.length > 8 && X("line图层:line-dasharray 超过最大长度(8)");
12839
- }
12840
- function p(h, y, m, v, w, g) {
12833
+ const p = s.paint.getDataConstValue("line-dasharray", o.z);
12834
+ if (p && p.length) {
12835
+ p.length % 2 > 0 && p.push(0), t.dashLength = 0;
12836
+ for (let h = 0; h < p.length; h++)
12837
+ t.dashLength += p[h];
12838
+ t.dasharray = p, p.length > 8 && X("line图层:line-dasharray 超过最大长度(8)");
12839
+ }
12840
+ function d(h, y, m, v, w, g) {
12841
12841
  if (h.length < 2) return;
12842
12842
  const x = a.length;
12843
12843
  f == 0 && (t.firstBatchId = x), t.lastBatchId = x;
@@ -12881,7 +12881,7 @@ class zf extends Or {
12881
12881
  h
12882
12882
  ), b = s.convertColor(
12883
12883
  s.paint.getDataValue("line-color", o.z, h)
12884
- ), C = s.paint.getDataValue(
12884
+ ), T = s.paint.getDataValue(
12885
12885
  "line-opacity",
12886
12886
  o.z,
12887
12887
  h
@@ -12898,40 +12898,40 @@ class zf extends Or {
12898
12898
  "line-join",
12899
12899
  o.z,
12900
12900
  h
12901
- ), F = s.paint.getDataValue(
12901
+ ), k = s.paint.getDataValue(
12902
12902
  "line-cap",
12903
12903
  o.z,
12904
12904
  h
12905
12905
  );
12906
- I !== "miter" && X("line图层:line-join 仅支持 miter 模式"), F !== "butt" && X("line图层:line-cap 仅支持 butt 模式");
12906
+ I !== "miter" && X("line图层:line-join 仅支持 miter 模式"), k !== "butt" && X("line图层:line-cap 仅支持 butt 模式");
12907
12907
  const P = w.geometry.type, G = w.geometry.coordinates;
12908
12908
  if (P == "LineString")
12909
- p(
12909
+ d(
12910
12910
  G,
12911
12911
  x,
12912
12912
  b,
12913
- C,
12913
+ T,
12914
12914
  g,
12915
12915
  m
12916
12916
  );
12917
12917
  else if (P == "MultiLineString" || P == "Polygon")
12918
12918
  for (const j of G)
12919
- p(
12919
+ d(
12920
12920
  j,
12921
12921
  x,
12922
12922
  b,
12923
- C,
12923
+ T,
12924
12924
  g,
12925
12925
  m
12926
12926
  );
12927
12927
  else if (P == "MultiPolygon")
12928
12928
  for (const j of G)
12929
12929
  for (const oe of j)
12930
- p(
12930
+ d(
12931
12931
  oe,
12932
12932
  x,
12933
12933
  b,
12934
- C,
12934
+ T,
12935
12935
  g,
12936
12936
  m
12937
12937
  );
@@ -12950,7 +12950,7 @@ class zf extends Or {
12950
12950
  addLayerFromWorkerResult(e, t, r, i) {
12951
12951
  const { batches: s, firstBatchId: o, lastBatchId: a } = e, l = this.geometryInstances;
12952
12952
  for (const u of s) {
12953
- const { positions: c, colorBytes: f, lineWidth: d, id: p, properties: h } = u, y = [];
12953
+ const { positions: c, colorBytes: f, lineWidth: p, id: d, properties: h } = u, y = [];
12954
12954
  for (let x = 0; x < c.length; x += 3)
12955
12955
  y.push(
12956
12956
  new Cesium.Cartesian3(
@@ -12970,7 +12970,7 @@ class zf extends Or {
12970
12970
  ), g = new Cesium.GeometryInstance({
12971
12971
  geometry: new Cesium.PolylineGeometry({
12972
12972
  positions: y,
12973
- width: d
12973
+ width: p
12974
12974
  }),
12975
12975
  attributes: {
12976
12976
  color: new Cesium.GeometryInstanceAttribute({
@@ -12982,7 +12982,7 @@ class zf extends Or {
12982
12982
  },
12983
12983
  id: new Cesium.Entity({
12984
12984
  position: w,
12985
- id: p,
12985
+ id: d,
12986
12986
  properties: h
12987
12987
  })
12988
12988
  });
@@ -12997,7 +12997,7 @@ class zf extends Or {
12997
12997
  const t = this.geometryInstances, { coordinates: r, lineColor: i, lineWidth: s, lineOpacity: o } = e, a = i.toBytes();
12998
12998
  a[3] = Math.floor(a[3] * o);
12999
12999
  const l = r.map(
13000
- (p) => Cesium.Cartesian3.fromDegrees(p[0], p[1])
13000
+ (d) => Cesium.Cartesian3.fromDegrees(d[0], d[1])
13001
13001
  ), u = Cesium.BoundingSphere.fromPoints(l), c = Cesium.Cartographic.fromCartesian(
13002
13002
  u.center
13003
13003
  );
@@ -13006,7 +13006,7 @@ class zf extends Or {
13006
13006
  c,
13007
13007
  null,
13008
13008
  new Cesium.Cartesian3()
13009
- ), d = new Cesium.GeometryInstance({
13009
+ ), p = new Cesium.GeometryInstance({
13010
13010
  geometry: new Cesium.PolylineGeometry({
13011
13011
  positions: l,
13012
13012
  width: s
@@ -13026,7 +13026,7 @@ class zf extends Or {
13026
13026
  properties: e.properties
13027
13027
  })
13028
13028
  });
13029
- t.push(d);
13029
+ t.push(p);
13030
13030
  }
13031
13031
  createPrimitive() {
13032
13032
  const e = new Cesium.Primitive({
@@ -13215,12 +13215,12 @@ czm_material czm_getMaterial(czm_materialInput materialInput)
13215
13215
  const { firstBatchId: c, lastBatchId: f } = u;
13216
13216
  if (c === -1 || f === -1)
13217
13217
  continue;
13218
- let d = -1, p = -1;
13218
+ let p = -1, d = -1;
13219
13219
  for (let h = c; h <= f; h++) {
13220
13220
  const y = r[h];
13221
- y && (d === -1 && (d = y.begin), p = y.end);
13221
+ y && (p === -1 && (p = y.begin), d = y.end);
13222
13222
  }
13223
- d === -1 || p === -1 || (u.offsets[t] = d, u.counts[t] = p - d + 1);
13223
+ p === -1 || d === -1 || (u.offsets[t] = p, u.counts[t] = d - p + 1);
13224
13224
  }
13225
13225
  }
13226
13226
  }
@@ -13275,11 +13275,11 @@ czm_material czm_getMaterial(czm_materialInput materialInput)
13275
13275
  const c = a.offsets[u], f = a.counts[u];
13276
13276
  if (typeof c != "number" || typeof f != "number")
13277
13277
  continue;
13278
- const d = e[u], p = Cesium.DrawCommand.shallowClone(d);
13279
- p.pass = Cesium.Pass.CESIUM_3D_TILE, p.uniformMap = s(
13280
- p.uniformMap,
13278
+ const p = e[u], d = Cesium.DrawCommand.shallowClone(p);
13279
+ d.pass = Cesium.Pass.CESIUM_3D_TILE, d.uniformMap = s(
13280
+ d.uniformMap,
13281
13281
  a
13282
- ), p.renderState = r, p.offset = c, p.count = f, l.push(p);
13282
+ ), d.renderState = r, d.offset = c, d.count = f, l.push(d);
13283
13283
  }
13284
13284
  a.state = "done";
13285
13285
  }
@@ -13307,7 +13307,7 @@ czm_material czm_getMaterial(czm_materialInput materialInput)
13307
13307
  return !1;
13308
13308
  }
13309
13309
  }
13310
- class Af extends yn {
13310
+ class zf extends yn {
13311
13311
  /**
13312
13312
  * @param {MVT.VectorTileFeature[]} sourceFeatures
13313
13313
  * @param {StyleLayer} styleLayer
@@ -13321,7 +13321,7 @@ class Af extends yn {
13321
13321
  function a(l, u, c) {
13322
13322
  if (l.length < 2) return;
13323
13323
  const f = l.map(
13324
- (d) => Cesium.Cartesian3.fromDegrees(d[0], d[1])
13324
+ (p) => Cesium.Cartesian3.fromDegrees(p[0], p[1])
13325
13325
  );
13326
13326
  r.add({
13327
13327
  positions: f,
@@ -13342,18 +13342,18 @@ class Af extends yn {
13342
13342
  "line-color",
13343
13343
  o.z,
13344
13344
  l
13345
- ), d = u.geometry.type, p = u.geometry.coordinates;
13346
- if (d == "LineString")
13347
- a(p, c, f);
13348
- else if (d == "MultiLineString" || d == "Polygon")
13349
- for (const h of p)
13345
+ ), p = u.geometry.type, d = u.geometry.coordinates;
13346
+ if (p == "LineString")
13347
+ a(d, c, f);
13348
+ else if (p == "MultiLineString" || p == "Polygon")
13349
+ for (const h of d)
13350
13350
  a(h, c, f);
13351
- else if (d == "MultiPolygon")
13352
- for (const h of p)
13351
+ else if (p == "MultiPolygon")
13352
+ for (const h of d)
13353
13353
  for (const y of h)
13354
13354
  a(y, c, f);
13355
13355
  else
13356
- console.log("暂不支持几何类型:" + d);
13356
+ console.log("暂不支持几何类型:" + p);
13357
13357
  }
13358
13358
  this.primitive = r;
13359
13359
  }
@@ -13368,11 +13368,12 @@ class Af extends yn {
13368
13368
  this.primitive = this.primitive && this.primitive.destroy(), super.destroy();
13369
13369
  }
13370
13370
  }
13371
- mn("line", Af, zf);
13372
- let Vn = null, zi = null;
13371
+ mn("line", zf, Af);
13372
+ let Vn = null, Ai = null;
13373
+ const Ff = 0.1;
13373
13374
  class kf extends Or {
13374
13375
  constructor(e, t) {
13375
- Vn === null && (Vn = new Cesium.Cartesian3(), zi = new Cesium.Cartesian3()), super(e, t), this.labels = [], this.primitive = null, this.dotCutOff = 35e-4;
13376
+ Vn === null && (Vn = new Cesium.Cartesian3(), Ai = new Cesium.Cartesian3()), super(e, t), this.labels = [], this.primitive = null, this.dotCutOff = 35e-4;
13376
13377
  }
13377
13378
  /**
13378
13379
  * 对符号进行地平线剔除
@@ -13386,7 +13387,7 @@ class kf extends Or {
13386
13387
  Vn
13387
13388
  );
13388
13389
  Cesium.Cartesian3.normalize(r, r);
13389
- const i = Cesium.Cartesian3.normalize(t, zi);
13390
+ const i = Cesium.Cartesian3.normalize(t, Ai);
13390
13391
  return Cesium.Cartesian3.dot(r, i) < this.dotCutOff;
13391
13392
  }
13392
13393
  /**
@@ -13397,35 +13398,35 @@ class kf extends Or {
13397
13398
  */
13398
13399
  addLayer(e, t, r, i) {
13399
13400
  const s = t.style, { tile: o, labels: a } = this, l = o.rectangle;
13400
- function u(c, f, d, p, h, y, m, v, w) {
13401
+ function u(c, f, p, d, h, y, m, v, w) {
13401
13402
  if (!Cesium.Rectangle.contains(
13402
13403
  l,
13403
13404
  Cesium.Cartographic.fromDegrees(c[0], c[1])
13404
- ))
13405
+ ) || !f)
13405
13406
  return;
13406
13407
  const g = new Cesium.Label({
13407
13408
  position: Cesium.Cartesian3.fromDegrees(c[0], c[1]),
13408
13409
  text: f,
13409
- font: p + "px " + d,
13410
+ font: d + "px " + p,
13410
13411
  fillColor: h,
13411
13412
  style: y && Cesium.LabelStyle.FILL_AND_OUTLINE,
13412
- outlineWidth: y * p,
13413
+ outlineWidth: y * d,
13413
13414
  outlineColor: m,
13414
13415
  //禁用深度测试
13415
13416
  disableDepthTestDistance: 1 / 0,
13416
13417
  pixelOffset: new Cesium.Cartesian2(
13417
- v[0] * p,
13418
- v[1] * p
13418
+ v[0] * d,
13419
+ v[1] * d
13419
13420
  ),
13420
13421
  horizontalOrigin: w.horizontal,
13421
13422
  verticalOrigin: w.vertical
13422
13423
  });
13423
- g.batchId = a.length, a.push(g), t.labels.push(g);
13424
+ g._baseFillColor = g.fillColor.clone(), g._baseOutlineColor = g.outlineColor.clone(), g.vtAlpha = 0, g.batchId = a.length, a.push(g), t.labels.push(g);
13424
13425
  }
13425
13426
  for (const c of e) {
13426
13427
  const f = c.toGeoJSON(o.x, o.y, o.z);
13427
13428
  if (!f.geometry) continue;
13428
- const d = c.properties, p = s.layout.getDataValue(
13429
+ const p = c.properties, d = s.layout.getDataValue(
13429
13430
  "icon-image",
13430
13431
  o.z,
13431
13432
  c
@@ -13436,13 +13437,13 @@ class kf extends Or {
13436
13437
  );
13437
13438
  let y = h;
13438
13439
  if (typeof y == "string")
13439
- y = s.layout.resolveTokens(d, h);
13440
+ y = s.layout.resolveTokens(p, h);
13440
13441
  else if (y && y.sections) {
13441
13442
  for (const Me of y.sections)
13442
- Me.text = s.layout.resolveTokens(d, Me.text);
13443
+ Me.text = s.layout.resolveTokens(p, Me.text);
13443
13444
  y = y.toString();
13444
13445
  }
13445
- if (p) {
13446
+ if (d) {
13446
13447
  X("symbol图层:不支持图标");
13447
13448
  continue;
13448
13449
  }
@@ -13468,15 +13469,15 @@ class kf extends Or {
13468
13469
  "text-size",
13469
13470
  o.z,
13470
13471
  c
13471
- ), C = s.layout.getDataValue(
13472
+ ), T = s.layout.getDataValue(
13472
13473
  "text-anchor",
13473
13474
  o.z,
13474
13475
  c
13475
- ), _ = Ai(C), I = s.layout.getDataValue(
13476
+ ), _ = zi(T), I = s.layout.getDataValue(
13476
13477
  "text-offset",
13477
13478
  o.z,
13478
13479
  c
13479
- ), F = s.convertColor(
13480
+ ), k = s.convertColor(
13480
13481
  s.paint.getDataValue("text-color", o.z, c)
13481
13482
  ), P = s.convertColor(
13482
13483
  s.paint.getDataValue("text-halo-color", o.z, c)
@@ -13493,7 +13494,7 @@ class kf extends Or {
13493
13494
  y,
13494
13495
  x,
13495
13496
  b,
13496
- F,
13497
+ k,
13497
13498
  G,
13498
13499
  P,
13499
13500
  I,
@@ -13504,7 +13505,7 @@ class kf extends Or {
13504
13505
  y,
13505
13506
  x,
13506
13507
  b,
13507
- F,
13508
+ k,
13508
13509
  G,
13509
13510
  P,
13510
13511
  I,
@@ -13539,7 +13540,7 @@ class kf extends Or {
13539
13540
  l.outlineColorBytes[1],
13540
13541
  l.outlineColorBytes[2],
13541
13542
  l.outlineColorBytes[3]
13542
- ), f = Ai(l.textAnchor), d = new Cesium.Label({
13543
+ ), f = zi(l.textAnchor), p = new Cesium.Label({
13543
13544
  position: Cesium.Cartesian3.fromDegrees(l.coord[0], l.coord[1]),
13544
13545
  text: l.text,
13545
13546
  font: l.textSize + "px " + l.font,
@@ -13555,7 +13556,7 @@ class kf extends Or {
13555
13556
  horizontalOrigin: f.horizontal,
13556
13557
  verticalOrigin: f.vertical
13557
13558
  });
13558
- d.batchId = o.length, o.push(d), t.labels.push(d);
13559
+ p._baseFillColor = p.fillColor.clone(), p._baseOutlineColor = p.outlineColor.clone(), p.vtAlpha = 0, p.batchId = o.length, o.push(p), t.labels.push(p);
13559
13560
  }
13560
13561
  this.layers.push(t);
13561
13562
  }
@@ -13574,7 +13575,19 @@ class kf extends Or {
13574
13575
  if (!this.primitive && this.labels?.length && this.createPrimitive(), this.primitive) {
13575
13576
  this.commandList.length = 0;
13576
13577
  const r = e.commandList;
13577
- e.commandList = this.commandList, this.primitive.update(e), e.commandList = r, this.state === "none" && r.length > 0 && this.setState("done"), this.primitive._state === Cesium.PrimitiveState.FAILED && this.setState("error");
13578
+ e.commandList = this.commandList, this.primitive.update(e), e.commandList = r;
13579
+ for (const i of this.labels) {
13580
+ const s = i._glyphs;
13581
+ if (s) {
13582
+ let o = i.text, a = [], l = [], u = !1;
13583
+ for (let c = 0; c < s.length; c++) {
13584
+ const f = s[c], p = f.dimensions;
13585
+ p && isFinite(p.width) && isFinite(p.height) ? (l.push(o[c]), a.push(f)) : u = !0;
13586
+ }
13587
+ u && (i._glyphs = a, i.text = l.join(""));
13588
+ }
13589
+ }
13590
+ this.state === "none" && r.length > 0 && this.setState("done"), this.primitive._state === Cesium.PrimitiveState.FAILED && this.setState("error");
13578
13591
  } else this.state === "none" && this.labels.length === 0 && this.setState("done");
13579
13592
  }
13580
13593
  render(e, t) {
@@ -13583,7 +13596,22 @@ class kf extends Or {
13583
13596
  for (const s of i)
13584
13597
  for (let o = 0; o < s.labels.length; o++) {
13585
13598
  const a = s.style, l = t.zoom;
13586
- s.visibility === "none" || l < a.minzoom || l >= a.maxzoom ? s.labels[o].show = !1 : s.labels[o].show = !!s.labels[o].vtPlaceable;
13599
+ if (s.visibility === "none" || l < a.minzoom || l >= a.maxzoom)
13600
+ s.labels[o].show = !1;
13601
+ else {
13602
+ const u = s.labels[o];
13603
+ u._baseFillColor || (u._baseFillColor = u.fillColor.clone(), u._baseOutlineColor = u.outlineColor.clone(), u.vtAlpha == null && (u.vtAlpha = u.vtPlaceable ? 1 : 0));
13604
+ const c = u.vtPlaceable ? 1 : 0;
13605
+ u.vtAlpha = Cesium.Math.lerp(
13606
+ u.vtAlpha ?? 0,
13607
+ c,
13608
+ Ff
13609
+ ), u.vtAlpha < 1e-3 ? (u.vtAlpha = 0, u.show = !1) : (u.show = !0, u.fillColor = u._baseFillColor.withAlpha(
13610
+ u._baseFillColor.alpha * u.vtAlpha
13611
+ ), u.outlineColor = u._baseOutlineColor.withAlpha(
13612
+ u._baseOutlineColor.alpha * u.vtAlpha
13613
+ ));
13614
+ }
13587
13615
  }
13588
13616
  for (const s of this.labels)
13589
13617
  s.show && (s.show = !this.isOccluded(r, s.position));
@@ -13601,7 +13629,7 @@ class kf extends Or {
13601
13629
  return !1;
13602
13630
  }
13603
13631
  }
13604
- function Ai(n) {
13632
+ function zi(n) {
13605
13633
  let e = Cesium.HorizontalOrigin.CENTER, t = Cesium.VerticalOrigin.CENTER;
13606
13634
  switch (n) {
13607
13635
  case "left":
@@ -13634,7 +13662,7 @@ function Ai(n) {
13634
13662
  vertical: t
13635
13663
  };
13636
13664
  }
13637
- class Ff extends yn {
13665
+ class Pf extends yn {
13638
13666
  /**
13639
13667
  * @param {MVT.VectorTileFeature[]} sourceFeatures
13640
13668
  * @param {StyleLayer} style
@@ -13651,27 +13679,27 @@ class Ff extends yn {
13651
13679
  super.update(e, t);
13652
13680
  }
13653
13681
  }
13654
- mn("symbol", Ff, kf);
13655
- const Mf = "cvt-gl-worker.js";
13682
+ mn("symbol", Pf, kf);
13683
+ const Of = "cvt-gl-worker.js";
13656
13684
  export {
13657
13685
  _f as BackgroundRenderLayer,
13658
- Mf as DEFAULT_WORKER_FILENAME,
13686
+ Of as DEFAULT_WORKER_FILENAME,
13659
13687
  Sf as FillRenderLayer,
13660
13688
  wl as GeoJSONSource,
13661
13689
  Or as ILayerVisualizer,
13662
13690
  yn as IRenderLayer,
13663
- Fi as ISource,
13691
+ ki as ISource,
13664
13692
  rt as LayerVisualizers,
13665
- Af as LineRenderLayer,
13693
+ zf as LineRenderLayer,
13666
13694
  nt as RenderLayers,
13667
13695
  Pi as Sources,
13668
13696
  Bc as StyleLayer,
13669
13697
  xi as StyleLayerProperties,
13670
- Ff as SymbolRenderLayer,
13698
+ Pf as SymbolRenderLayer,
13671
13699
  sl as VectorSource,
13672
13700
  Mr as VectorTileLOD,
13673
13701
  Rc as VectorTileRenderList,
13674
- Pf as VectorTileset,
13702
+ Mf as VectorTileset,
13675
13703
  mn as registerRenderLayer,
13676
13704
  Mi as registerSource
13677
13705
  };