@europeana/map 0.1.1-map.0 → 0.1.1-map.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4203,18 +4203,7 @@ function J_(i, ...t) {
4203
4203
  }
4204
4204
  };
4205
4205
  }
4206
- const Q_ = ({ json: i, url: t } = {}) => {
4207
- const e = /* @__PURE__ */ lo(null);
4208
- if (i)
4209
- e.value = JSON.parse(i);
4210
- else if (t)
4211
- J_(t).json().then((n) => {
4212
- e.value = n.data.value;
4213
- });
4214
- else
4215
- throw new Error("No data JSON or URL supplied.");
4216
- return { data: e };
4217
- }, oe = {
4206
+ const oe = {
4218
4207
  /**
4219
4208
  * Triggered when an item is added to the collection.
4220
4209
  * @event module:ol/Collection.CollectionEvent#add
@@ -4304,7 +4293,7 @@ class go {
4304
4293
  disposeInternal() {
4305
4294
  }
4306
4295
  }
4307
- function tm(i, t, e) {
4296
+ function Q_(i, t, e) {
4308
4297
  let n, s;
4309
4298
  e = e || hi;
4310
4299
  let r = 0, o = i.length, l = !1;
@@ -4315,7 +4304,7 @@ function tm(i, t, e) {
4315
4304
  function hi(i, t) {
4316
4305
  return i > t ? 1 : i < t ? -1 : 0;
4317
4306
  }
4318
- function em(i, t) {
4307
+ function tm(i, t) {
4319
4308
  return i < t ? 1 : i > t ? -1 : 0;
4320
4309
  }
4321
4310
  function ga(i, t, e) {
@@ -4354,7 +4343,7 @@ function ga(i, t, e) {
4354
4343
  }
4355
4344
  return n - 1;
4356
4345
  }
4357
- function im(i, t, e) {
4346
+ function em(i, t, e) {
4358
4347
  for (; t < e; ) {
4359
4348
  const n = i[t];
4360
4349
  i[t] = i[e], i[e] = n, ++t, --e;
@@ -4374,7 +4363,7 @@ function Ki(i, t) {
4374
4363
  return !1;
4375
4364
  return !0;
4376
4365
  }
4377
- function nm(i, t, e) {
4366
+ function im(i, t, e) {
4378
4367
  const n = t || hi;
4379
4368
  return i.every(function(s, r) {
4380
4369
  if (r === 0)
@@ -4398,7 +4387,7 @@ function Xu(i) {
4398
4387
  return (!e || this !== n || !Ki(s, e)) && (n = this, e = s, t = i.apply(this, arguments)), t;
4399
4388
  };
4400
4389
  }
4401
- function sm(i) {
4390
+ function nm(i) {
4402
4391
  function t() {
4403
4392
  let e;
4404
4393
  try {
@@ -4603,7 +4592,7 @@ class qs extends mo {
4603
4592
  e.ol_key
4604
4593
  );
4605
4594
  if (n)
4606
- rm(n);
4595
+ sm(n);
4607
4596
  else if (Array.isArray(t))
4608
4597
  for (let s = 0, r = t.length; s < r; ++s)
4609
4598
  this.removeEventListener(t[s], e);
@@ -4614,7 +4603,7 @@ class qs extends mo {
4614
4603
  qs.prototype.on;
4615
4604
  qs.prototype.once;
4616
4605
  qs.prototype.un;
4617
- function rm(i) {
4606
+ function sm(i) {
4618
4607
  if (Array.isArray(i))
4619
4608
  for (let t = 0, e = i.length; t < e; ++t)
4620
4609
  Mt(i[t]);
@@ -4627,9 +4616,9 @@ function rm(i) {
4627
4616
  function _t() {
4628
4617
  throw new Error("Unimplemented abstract method.");
4629
4618
  }
4630
- let om = 0;
4619
+ let rm = 0;
4631
4620
  function ft(i) {
4632
- return i.ol_uid || (i.ol_uid = String(++om));
4621
+ return i.ol_uid || (i.ol_uid = String(++rm));
4633
4622
  }
4634
4623
  class bc extends Ei {
4635
4624
  /**
@@ -5051,9 +5040,9 @@ const Pt = {
5051
5040
  POINTERENTER: "pointerenter",
5052
5041
  POINTERLEAVE: "pointerleave",
5053
5042
  POINTERCANCEL: "pointercancel"
5054
- }, an = typeof navigator < "u" && typeof navigator.userAgent < "u" ? navigator.userAgent.toLowerCase() : "", lm = an.includes("safari") && !an.includes("chrom");
5055
- lm && (an.includes("version/15.4") || /cpu (os|iphone os) 15_4 like mac os x/.test(an));
5056
- const am = an.includes("webkit") && !an.includes("edge"), Ku = an.includes("macintosh"), cm = typeof devicePixelRatio < "u" ? devicePixelRatio : 1, we = typeof WorkerGlobalScope < "u" && typeof OffscreenCanvas < "u" && self instanceof WorkerGlobalScope, Yu = typeof Image < "u" && Image.prototype.decode, ju = (function() {
5043
+ }, an = typeof navigator < "u" && typeof navigator.userAgent < "u" ? navigator.userAgent.toLowerCase() : "", om = an.includes("safari") && !an.includes("chrom");
5044
+ om && (an.includes("version/15.4") || /cpu (os|iphone os) 15_4 like mac os x/.test(an));
5045
+ const lm = an.includes("webkit") && !an.includes("edge"), Ku = an.includes("macintosh"), am = typeof devicePixelRatio < "u" ? devicePixelRatio : 1, we = typeof WorkerGlobalScope < "u" && typeof OffscreenCanvas < "u" && self instanceof WorkerGlobalScope, Yu = typeof Image < "u" && Image.prototype.decode, ju = (function() {
5057
5046
  let i = !1;
5058
5047
  try {
5059
5048
  const t = Object.defineProperty({}, "passive", {
@@ -5069,7 +5058,7 @@ const am = an.includes("webkit") && !an.includes("edge"), Ku = an.includes("maci
5069
5058
  POINTERMOVE: "pointermove",
5070
5059
  POINTERDOWN: "pointerdown"
5071
5060
  };
5072
- class hm extends mo {
5061
+ class cm extends mo {
5073
5062
  /**
5074
5063
  * @param {import("./Map.js").default} map The map with the viewport to listen to events on.
5075
5064
  * @param {number} [moveTolerance] The minimal distance the pointer must travel to trigger a move.
@@ -5341,7 +5330,7 @@ function xt(i, t) {
5341
5330
  throw new Error(t);
5342
5331
  }
5343
5332
  const Wr = 1 / 0;
5344
- class um {
5333
+ class hm {
5345
5334
  /**
5346
5335
  * @param {function(T): number} priorityFunction Priority function.
5347
5336
  * @param {function(T): string} keyFunction Key function.
@@ -5483,7 +5472,7 @@ class um {
5483
5472
  e.length = s, n.length = s, this.heapify_();
5484
5473
  }
5485
5474
  }
5486
- class fm extends um {
5475
+ class um extends hm {
5487
5476
  /**
5488
5477
  * @param {PriorityFunction} tilePriorityFunction Tile priority function.
5489
5478
  * @param {function(): ?} tileChangeCallback Function called on each tile change event.
@@ -5536,7 +5525,7 @@ class fm extends um {
5536
5525
  }
5537
5526
  }
5538
5527
  }
5539
- function dm(i, t, e, n, s) {
5528
+ function fm(i, t, e, n, s) {
5540
5529
  if (!i || !(e in i.wantedTiles) || !i.wantedTiles[e][t.getKey()])
5541
5530
  return Wr;
5542
5531
  const r = i.viewState.center, o = n[0] - r[0], l = n[1] - r[1];
@@ -5553,7 +5542,7 @@ const Zt = {
5553
5542
  function Lt(i, t, e) {
5554
5543
  return Math.min(Math.max(i, t), e);
5555
5544
  }
5556
- function gm(i, t, e, n, s, r) {
5545
+ function dm(i, t, e, n, s, r) {
5557
5546
  const o = s - e, l = r - n;
5558
5547
  if (o !== 0 || l !== 0) {
5559
5548
  const a = ((i - e) * o + (t - n) * l) / (o * o + l * l);
@@ -5565,7 +5554,7 @@ function Dn(i, t, e, n) {
5565
5554
  const s = e - i, r = n - t;
5566
5555
  return s * s + r * r;
5567
5556
  }
5568
- function _m(i) {
5557
+ function gm(i) {
5569
5558
  const t = i.length;
5570
5559
  for (let n = 0; n < t; n++) {
5571
5560
  let s = n, r = Math.abs(i[n][n]);
@@ -5647,7 +5636,7 @@ function Lc(i, t, e) {
5647
5636
  })
5648
5637
  );
5649
5638
  }
5650
- function mm(i) {
5639
+ function _m(i) {
5651
5640
  return i;
5652
5641
  }
5653
5642
  const Kt = {
@@ -5664,7 +5653,7 @@ function Oc(i) {
5664
5653
  Ss(t, i[e]);
5665
5654
  return t;
5666
5655
  }
5667
- function pm(i, t, e) {
5656
+ function mm(i, t, e) {
5668
5657
  const n = Math.min.apply(null, i), s = Math.min.apply(null, t), r = Math.max.apply(null, i), o = Math.max.apply(null, t);
5669
5658
  return pi(n, s, r, o, e);
5670
5659
  }
@@ -5717,7 +5706,7 @@ function pa(i, t, e, n, s) {
5717
5706
  function Ns(i, t) {
5718
5707
  return i[0] == t[0] && i[2] == t[2] && i[1] == t[1] && i[3] == t[3];
5719
5708
  }
5720
- function ym(i, t) {
5709
+ function pm(i, t) {
5721
5710
  return t[0] < i[0] && (i[0] = t[0]), t[2] > i[2] && (i[2] = t[2]), t[1] < i[1] && (i[1] = t[1]), t[3] > i[3] && (i[3] = t[3]), i;
5722
5711
  }
5723
5712
  function Ss(i, t) {
@@ -5725,10 +5714,10 @@ function Ss(i, t) {
5725
5714
  }
5726
5715
  function Zu(i, t, e, n, s) {
5727
5716
  for (; e < n; e += s)
5728
- xm(i, t[e], t[e + 1]);
5717
+ ym(i, t[e], t[e + 1]);
5729
5718
  return i;
5730
5719
  }
5731
- function xm(i, t, e) {
5720
+ function ym(i, t, e) {
5732
5721
  i[0] = Math.min(i[0], t), i[1] = Math.min(i[1], e), i[2] = Math.max(i[2], t), i[3] = Math.max(i[3], e);
5733
5722
  }
5734
5723
  function Hu(i, t) {
@@ -5748,7 +5737,7 @@ function Eo(i) {
5748
5737
  function zi(i) {
5749
5738
  return [(i[0] + i[2]) / 2, (i[1] + i[3]) / 2];
5750
5739
  }
5751
- function Em(i, t) {
5740
+ function xm(i, t) {
5752
5741
  let e;
5753
5742
  if (t === "bottom-left")
5754
5743
  e = xo(i);
@@ -5814,10 +5803,10 @@ function ce(i, t) {
5814
5803
  function Vn(i) {
5815
5804
  return i[2] < i[0] || i[3] < i[1];
5816
5805
  }
5817
- function wm(i, t) {
5806
+ function Em(i, t) {
5818
5807
  return t ? (t[0] = i[0], t[1] = i[1], t[2] = i[2], t[3] = i[3], t) : i;
5819
5808
  }
5820
- function Cm(i, t, e) {
5809
+ function wm(i, t, e) {
5821
5810
  let n = !1;
5822
5811
  const s = kl(i, t), r = kl(i, e);
5823
5812
  if (s === Kt.INTERSECTING || r === Kt.INTERSECTING)
@@ -5829,7 +5818,7 @@ function Cm(i, t, e) {
5829
5818
  }
5830
5819
  return n;
5831
5820
  }
5832
- function vm(i, t, e, n) {
5821
+ function Cm(i, t, e, n) {
5833
5822
  if (Vn(i))
5834
5823
  return Js(e);
5835
5824
  let s = [];
@@ -5846,7 +5835,7 @@ function vm(i, t, e, n) {
5846
5835
  const r = [], o = [];
5847
5836
  for (let l = 0, a = s.length; l < a; l += 2)
5848
5837
  r.push(s[l]), o.push(s[l + 1]);
5849
- return pm(r, o, e);
5838
+ return mm(r, o, e);
5850
5839
  }
5851
5840
  function qu(i, t) {
5852
5841
  const e = t.getExtent(), n = zi(i);
@@ -5901,19 +5890,19 @@ function tf(i, t) {
5901
5890
  }
5902
5891
  function ef(i, t) {
5903
5892
  if (t.canWrapX()) {
5904
- const e = Ct(t.getExtent()), n = Rm(i, t, e);
5893
+ const e = Ct(t.getExtent()), n = vm(i, t, e);
5905
5894
  n && (i[0] -= n * e);
5906
5895
  }
5907
5896
  return i;
5908
5897
  }
5909
- function Rm(i, t, e) {
5898
+ function vm(i, t, e) {
5910
5899
  const n = t.getExtent();
5911
5900
  let s = 0;
5912
5901
  return t.canWrapX() && (i[0] < n[0] || i[0] > n[2]) && (e = e || Ct(n), s = Math.floor(
5913
5902
  (i[0] - n[0]) / e
5914
5903
  )), s;
5915
5904
  }
5916
- function Tm(i, t, e) {
5905
+ function Rm(i, t, e) {
5917
5906
  const n = Math.sqrt(
5918
5907
  (t[0] - i[0]) * (t[0] - i[0]) + (t[1] - i[1]) * (t[1] - i[1])
5919
5908
  ), s = [(t[0] - i[0]) / n, (t[1] - i[1]) / n], r = [-s[1], s[0]], o = Math.sqrt(
@@ -5930,15 +5919,15 @@ function nf(i) {
5930
5919
  function Zn(i) {
5931
5920
  return 1 - nf(1 - i);
5932
5921
  }
5933
- function Sm(i) {
5922
+ function Tm(i) {
5934
5923
  return 3 * i * i - 2 * i * i * i;
5935
5924
  }
5936
- function Im(i) {
5925
+ function Sm(i) {
5937
5926
  return i;
5938
5927
  }
5939
- const bm = 63710088e-1;
5928
+ const Im = 63710088e-1;
5940
5929
  function Pc(i, t, e) {
5941
- e = e || bm;
5930
+ e = e || Im;
5942
5931
  const n = Ni(i[1]), s = Ni(t[1]), r = (s - n) / 2, o = Ni(t[0] - i[0]) / 2, l = Math.sin(r) * Math.sin(r) + Math.sin(o) * Math.sin(o) * Math.cos(n) * Math.cos(s);
5943
5932
  return 2 * e * Math.atan2(Math.sqrt(l), Math.sqrt(1 - l));
5944
5933
  }
@@ -6086,7 +6075,7 @@ class Ea {
6086
6075
  return this.getPointResolutionFunc_;
6087
6076
  }
6088
6077
  }
6089
- const Qs = 6378137, bn = Math.PI * Qs, Am = [-bn, -bn, bn, bn], Mm = [-180, -85, 180, 85], pr = Qs * Math.log(Math.tan(Math.PI / 2));
6078
+ const Qs = 6378137, bn = Math.PI * Qs, bm = [-bn, -bn, bn, bn], Am = [-180, -85, 180, 85], pr = Qs * Math.log(Math.tan(Math.PI / 2));
6090
6079
  class mn extends Ea {
6091
6080
  /**
6092
6081
  * @param {string} code Code.
@@ -6095,9 +6084,9 @@ class mn extends Ea {
6095
6084
  super({
6096
6085
  code: t,
6097
6086
  units: "m",
6098
- extent: Am,
6087
+ extent: bm,
6099
6088
  global: !0,
6100
- worldExtent: Mm,
6089
+ worldExtent: Am,
6101
6090
  getPointResolution: function(e, n) {
6102
6091
  return e / Math.cosh(n[1] / Qs);
6103
6092
  }
@@ -6112,7 +6101,7 @@ const Dc = [
6112
6101
  new mn("http://www.opengis.net/def/crs/EPSG/0/3857"),
6113
6102
  new mn("http://www.opengis.net/gml/srs/epsg.xml#3857")
6114
6103
  ];
6115
- function Lm(i, t, e, n) {
6104
+ function Mm(i, t, e, n) {
6116
6105
  const s = i.length;
6117
6106
  e = e > 1 ? e : 2, n = n ?? e, t === void 0 && (e > 2 ? t = i.slice() : t = new Array(s));
6118
6107
  for (let r = 0; r < s; r += n) {
@@ -6122,14 +6111,14 @@ function Lm(i, t, e, n) {
6122
6111
  }
6123
6112
  return t;
6124
6113
  }
6125
- function Om(i, t, e, n) {
6114
+ function Lm(i, t, e, n) {
6126
6115
  const s = i.length;
6127
6116
  e = e > 1 ? e : 2, n = n ?? e, t === void 0 && (e > 2 ? t = i.slice() : t = new Array(s));
6128
6117
  for (let r = 0; r < s; r += n)
6129
6118
  t[r] = 180 * i[r] / bn, t[r + 1] = 360 * Math.atan(Math.exp(i[r + 1] / Qs)) / Math.PI - 90;
6130
6119
  return t;
6131
6120
  }
6132
- const Pm = 6378137, Fc = [-180, -90, 180, 90], Dm = Math.PI * Pm / 180;
6121
+ const Om = 6378137, Fc = [-180, -90, 180, 90], Pm = Math.PI * Om / 180;
6133
6122
  class Vi extends Ea {
6134
6123
  /**
6135
6124
  * @param {string} code Code.
@@ -6142,7 +6131,7 @@ class Vi extends Ea {
6142
6131
  extent: Fc,
6143
6132
  axisOrientation: e,
6144
6133
  global: !0,
6145
- metersPerUnit: Dm,
6134
+ metersPerUnit: Pm,
6146
6135
  worldExtent: Fc
6147
6136
  });
6148
6137
  }
@@ -6157,10 +6146,10 @@ const kc = [
6157
6146
  new Vi("http://www.opengis.net/def/crs/EPSG/0/4326", "neu")
6158
6147
  ];
6159
6148
  let Wl = {};
6160
- function Fm(i) {
6149
+ function Dm(i) {
6161
6150
  return Wl[i] || Wl[i.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/, "EPSG:$3")] || null;
6162
6151
  }
6163
- function km(i, t) {
6152
+ function Fm(i, t) {
6164
6153
  Wl[i] = t;
6165
6154
  }
6166
6155
  let kn = {};
@@ -6171,9 +6160,9 @@ function Gs(i, t, e) {
6171
6160
  function qo(i, t) {
6172
6161
  return i in kn && t in kn[i] ? kn[i][t] : null;
6173
6162
  }
6174
- const Xr = 0.9996, Te = 669438e-8, Co = Te * Te, vo = Co * Te, Ji = Te / (1 - Te), Nc = Math.sqrt(1 - Te), jn = (1 - Nc) / (1 + Nc), rf = jn * jn, wa = rf * jn, Ca = wa * jn, of = Ca * jn, lf = 1 - Te / 4 - 3 * Co / 64 - 5 * vo / 256, Nm = 3 * Te / 8 + 3 * Co / 32 + 45 * vo / 1024, Gm = 15 * Co / 256 + 45 * vo / 1024, Wm = 35 * vo / 3072, zm = 3 / 2 * jn - 27 / 32 * wa + 269 / 512 * of, Xm = 21 / 16 * rf - 55 / 32 * Ca, Km = 151 / 96 * wa - 417 / 128 * of, Ym = 1097 / 512 * Ca, Kr = 6378137;
6175
- function jm(i, t, e) {
6176
- const n = i - 5e5, o = (e.north ? t : t - 1e7) / Xr / (Kr * lf), l = o + zm * Math.sin(2 * o) + Xm * Math.sin(4 * o) + Km * Math.sin(6 * o) + Ym * Math.sin(8 * o), a = Math.sin(l), h = a * a, c = Math.cos(l), u = a / c, f = u * u, d = f * f, g = 1 - Te * h, m = Math.sqrt(1 - Te * h), _ = Kr / m, x = (1 - Te) / g, E = Ji * c ** 2, C = E * E, p = n / (_ * Xr), v = p * p, S = v * p, N = S * p, M = N * p, A = M * p, D = l - u / x * (v / 2 - N / 24 * (5 + 3 * f + 10 * E - 4 * C - 9 * Ji)) + A / 720 * (61 + 90 * f + 298 * E + 45 * d - 252 * Ji - 3 * C);
6163
+ const Xr = 0.9996, Te = 669438e-8, Co = Te * Te, vo = Co * Te, Ji = Te / (1 - Te), Nc = Math.sqrt(1 - Te), jn = (1 - Nc) / (1 + Nc), rf = jn * jn, wa = rf * jn, Ca = wa * jn, of = Ca * jn, lf = 1 - Te / 4 - 3 * Co / 64 - 5 * vo / 256, km = 3 * Te / 8 + 3 * Co / 32 + 45 * vo / 1024, Nm = 15 * Co / 256 + 45 * vo / 1024, Gm = 35 * vo / 3072, Wm = 3 / 2 * jn - 27 / 32 * wa + 269 / 512 * of, zm = 21 / 16 * rf - 55 / 32 * Ca, Xm = 151 / 96 * wa - 417 / 128 * of, Km = 1097 / 512 * Ca, Kr = 6378137;
6164
+ function Ym(i, t, e) {
6165
+ const n = i - 5e5, o = (e.north ? t : t - 1e7) / Xr / (Kr * lf), l = o + Wm * Math.sin(2 * o) + zm * Math.sin(4 * o) + Xm * Math.sin(6 * o) + Km * Math.sin(8 * o), a = Math.sin(l), h = a * a, c = Math.cos(l), u = a / c, f = u * u, d = f * f, g = 1 - Te * h, m = Math.sqrt(1 - Te * h), _ = Kr / m, x = (1 - Te) / g, E = Ji * c ** 2, C = E * E, p = n / (_ * Xr), v = p * p, S = v * p, N = S * p, M = N * p, A = M * p, D = l - u / x * (v / 2 - N / 24 * (5 + 3 * f + 10 * E - 4 * C - 9 * Ji)) + A / 720 * (61 + 90 * f + 298 * E + 45 * d - 252 * Ji - 3 * C);
6177
6166
  let U = (p - S / 6 * (1 + 2 * f + E) + M / 120 * (5 - 2 * E + 28 * f - 3 * C + 8 * Ji + 24 * d)) / c;
6178
6167
  return U = Fl(
6179
6168
  U + Ni(af(e.number)),
@@ -6181,24 +6170,24 @@ function jm(i, t, e) {
6181
6170
  Math.PI
6182
6171
  ), [Mc(U), Mc(D)];
6183
6172
  }
6184
- const Gc = -80, Wc = 84, Bm = -180, Um = 180;
6185
- function Vm(i, t, e) {
6186
- i = Fl(i, Bm, Um), t < Gc ? t = Gc : t > Wc && (t = Wc);
6187
- const n = Ni(t), s = Math.sin(n), r = Math.cos(n), o = s / r, l = o * o, a = l * l, h = Ni(i), c = af(e.number), u = Ni(c), f = Kr / Math.sqrt(1 - Te * s ** 2), d = Ji * r ** 2, g = r * Fl(h - u, -Math.PI, Math.PI), m = g * g, _ = m * g, x = _ * g, E = x * g, C = E * g, p = Kr * (lf * n - Nm * Math.sin(2 * n) + Gm * Math.sin(4 * n) - Wm * Math.sin(6 * n)), v = Xr * f * (g + _ / 6 * (1 - l + d) + E / 120 * (5 - 18 * l + a + 72 * d - 58 * Ji)) + 5e5;
6173
+ const Gc = -80, Wc = 84, jm = -180, Bm = 180;
6174
+ function Um(i, t, e) {
6175
+ i = Fl(i, jm, Bm), t < Gc ? t = Gc : t > Wc && (t = Wc);
6176
+ const n = Ni(t), s = Math.sin(n), r = Math.cos(n), o = s / r, l = o * o, a = l * l, h = Ni(i), c = af(e.number), u = Ni(c), f = Kr / Math.sqrt(1 - Te * s ** 2), d = Ji * r ** 2, g = r * Fl(h - u, -Math.PI, Math.PI), m = g * g, _ = m * g, x = _ * g, E = x * g, C = E * g, p = Kr * (lf * n - km * Math.sin(2 * n) + Nm * Math.sin(4 * n) - Gm * Math.sin(6 * n)), v = Xr * f * (g + _ / 6 * (1 - l + d) + E / 120 * (5 - 18 * l + a + 72 * d - 58 * Ji)) + 5e5;
6188
6177
  let S = Xr * (p + f * o * (m / 2 + x / 24 * (5 - l + 9 * d + 4 * d ** 2) + C / 720 * (61 - 58 * l + a + 600 * d - 330 * Ji)));
6189
6178
  return e.north || (S += 1e7), [v, S];
6190
6179
  }
6191
6180
  function af(i) {
6192
6181
  return (i - 1) * 6 - 180 + 3;
6193
6182
  }
6194
- const Zm = [
6183
+ const Vm = [
6195
6184
  /^EPSG:(\d+)$/,
6196
6185
  /^urn:ogc:def:crs:EPSG::(\d+)$/,
6197
6186
  /^http:\/\/www\.opengis\.net\/def\/crs\/EPSG\/0\/(\d+)$/
6198
6187
  ];
6199
6188
  function cf(i) {
6200
6189
  let t = 0;
6201
- for (const s of Zm) {
6190
+ for (const s of Vm) {
6202
6191
  const r = i.match(s);
6203
6192
  if (r) {
6204
6193
  t = parseInt(r[1]);
@@ -6221,19 +6210,19 @@ function zc(i, t) {
6221
6210
  return n;
6222
6211
  };
6223
6212
  }
6224
- function Hm(i) {
6213
+ function Zm(i) {
6225
6214
  return cf(i) ? new Ea({ code: i, units: "m" }) : null;
6226
6215
  }
6227
- function $m(i) {
6216
+ function Hm(i) {
6228
6217
  const t = cf(i.getCode());
6229
6218
  return t ? {
6230
- forward: zc(Vm, t),
6231
- inverse: zc(jm, t)
6219
+ forward: zc(Um, t),
6220
+ inverse: zc(Ym, t)
6232
6221
  } : null;
6233
6222
  }
6234
- const qm = [$m], Jm = [Hm];
6223
+ const $m = [Hm], qm = [Zm];
6235
6224
  let zl = !0;
6236
- function Qm(i) {
6225
+ function Jm(i) {
6237
6226
  zl = !1;
6238
6227
  }
6239
6228
  function va(i, t) {
@@ -6246,18 +6235,18 @@ function va(i, t) {
6246
6235
  return t;
6247
6236
  }
6248
6237
  function Xl(i) {
6249
- km(i.getCode(), i), Gs(i, i, va);
6238
+ Fm(i.getCode(), i), Gs(i, i, va);
6250
6239
  }
6251
- function tp(i) {
6240
+ function Qm(i) {
6252
6241
  i.forEach(Xl);
6253
6242
  }
6254
6243
  function qt(i) {
6255
6244
  if (typeof i != "string")
6256
6245
  return i;
6257
- const t = Fm(i);
6246
+ const t = Dm(i);
6258
6247
  if (t)
6259
6248
  return t;
6260
- for (const e of Jm) {
6249
+ for (const e of qm) {
6261
6250
  const n = e(i);
6262
6251
  if (n)
6263
6252
  return n;
@@ -6303,13 +6292,13 @@ function Xc(i, t, e, n) {
6303
6292
  return s;
6304
6293
  }
6305
6294
  function Kc(i) {
6306
- tp(i), i.forEach(function(t) {
6295
+ Qm(i), i.forEach(function(t) {
6307
6296
  i.forEach(function(e) {
6308
6297
  t !== e && Gs(t, e, va);
6309
6298
  });
6310
6299
  });
6311
6300
  }
6312
- function ep(i, t, e, n) {
6301
+ function tp(i, t, e, n) {
6313
6302
  i.forEach(function(s) {
6314
6303
  t.forEach(function(r) {
6315
6304
  Gs(s, r, e), Gs(r, s, n);
@@ -6322,7 +6311,7 @@ function Ra(i, t) {
6322
6311
  i
6323
6312
  ) : qt(t);
6324
6313
  }
6325
- function ip(i) {
6314
+ function ep(i) {
6326
6315
  return (
6327
6316
  /**
6328
6317
  * @param {Array<number>} input Input.
@@ -6355,7 +6344,7 @@ function tr(i, t) {
6355
6344
  if (s)
6356
6345
  return s;
6357
6346
  let r = null, o = null;
6358
- for (const a of qm)
6347
+ for (const a of $m)
6359
6348
  r || (r = a(i)), o || (o = a(t));
6360
6349
  if (!r && !o)
6361
6350
  return null;
@@ -6403,17 +6392,17 @@ function Ro(i, t, e) {
6403
6392
  }
6404
6393
  function hf(i, t, e, n) {
6405
6394
  const s = Ws(t, e);
6406
- return vm(i, s, void 0);
6395
+ return Cm(i, s, void 0);
6407
6396
  }
6408
6397
  let Se = null;
6409
- function np(i) {
6398
+ function ip(i) {
6410
6399
  Se = qt(i);
6411
6400
  }
6412
6401
  function Yr() {
6413
6402
  return Se;
6414
6403
  }
6415
- function sp() {
6416
- np("EPSG:4326");
6404
+ function np() {
6405
+ ip("EPSG:4326");
6417
6406
  }
6418
6407
  function Kl(i, t) {
6419
6408
  return Se ? Ro(i, t, Se) : i;
@@ -6429,26 +6418,26 @@ function jr(i, t) {
6429
6418
  function Qi(i, t) {
6430
6419
  return Se ? hf(i, Se, t) : i;
6431
6420
  }
6432
- function rp(i, t) {
6421
+ function sp(i, t) {
6433
6422
  if (!Se)
6434
6423
  return i;
6435
6424
  const e = qt(t).getMetersPerUnit(), n = Se.getMetersPerUnit();
6436
6425
  return e && n ? i * e / n : i;
6437
6426
  }
6438
- function op() {
6439
- Kc(Dc), Kc(kc), ep(
6427
+ function rp() {
6428
+ Kc(Dc), Kc(kc), tp(
6440
6429
  kc,
6441
6430
  Dc,
6442
- Lm,
6443
- Om
6431
+ Mm,
6432
+ Lm
6444
6433
  );
6445
6434
  }
6446
- op();
6435
+ rp();
6447
6436
  new Array(6);
6448
6437
  function Oe() {
6449
6438
  return [1, 0, 0, 1, 0, 0];
6450
6439
  }
6451
- function lp(i, t) {
6440
+ function op(i, t) {
6452
6441
  return i[0] = t[0], i[1] = t[1], i[2] = t[2], i[3] = t[3], i[4] = t[4], i[5] = t[5], i;
6453
6442
  }
6454
6443
  function Yt(i, t) {
@@ -6460,25 +6449,25 @@ function yi(i, t, e, n, s, r, o, l) {
6460
6449
  return i[0] = n * h, i[1] = s * a, i[2] = -n * a, i[3] = s * h, i[4] = o * n * h - l * n * a + t, i[5] = o * s * a + l * s * h + e, i;
6461
6450
  }
6462
6451
  function uf(i, t) {
6463
- const e = ap(t);
6452
+ const e = lp(t);
6464
6453
  xt(e !== 0, "Transformation matrix cannot be inverted");
6465
6454
  const n = t[0], s = t[1], r = t[2], o = t[3], l = t[4], a = t[5];
6466
6455
  return i[0] = o / e, i[1] = -s / e, i[2] = -r / e, i[3] = n / e, i[4] = (r * a - o * l) / e, i[5] = -(n * a - s * l) / e, i;
6467
6456
  }
6468
- function ap(i) {
6457
+ function lp(i) {
6469
6458
  return i[0] * i[3] - i[1] * i[2];
6470
6459
  }
6471
- const cp = [1e5, 1e5, 1e5, 1e5, 2, 2];
6472
- function hp(i) {
6460
+ const ap = [1e5, 1e5, 1e5, 1e5, 2, 2];
6461
+ function cp(i) {
6473
6462
  return "matrix(" + i.join(", ") + ")";
6474
6463
  }
6475
6464
  function Yl(i) {
6476
6465
  return i.substring(7, i.length - 1).split(",").map(parseFloat);
6477
6466
  }
6478
- function up(i, t) {
6467
+ function hp(i, t) {
6479
6468
  const e = Yl(i), n = Yl(t);
6480
6469
  for (let s = 0; s < 6; ++s)
6481
- if (Math.round((e[s] - n[s]) * cp[s]) !== 0)
6470
+ if (Math.round((e[s] - n[s]) * ap[s]) !== 0)
6482
6471
  return !1;
6483
6472
  return !0;
6484
6473
  }
@@ -6505,7 +6494,7 @@ function ff(i, t, e, n, s, r, o) {
6505
6494
  }
6506
6495
  return o && o.length != u && (o.length = u), o;
6507
6496
  }
6508
- function fp(i, t, e, n, s, r, o, l) {
6497
+ function up(i, t, e, n, s, r, o, l) {
6509
6498
  l = l || [];
6510
6499
  const a = o[0], h = o[1];
6511
6500
  let c = 0;
@@ -6517,7 +6506,7 @@ function fp(i, t, e, n, s, r, o, l) {
6517
6506
  }
6518
6507
  return l && l.length != c && (l.length = c), l;
6519
6508
  }
6520
- function dp(i, t, e, n, s, r, o) {
6509
+ function fp(i, t, e, n, s, r, o) {
6521
6510
  o = o || [];
6522
6511
  let l = 0;
6523
6512
  for (let a = t; a < e; a += n) {
@@ -6527,8 +6516,8 @@ function dp(i, t, e, n, s, r, o) {
6527
6516
  }
6528
6517
  return o && o.length != l && (o.length = l), o;
6529
6518
  }
6530
- const Yc = Oe(), gp = [NaN, NaN];
6531
- class _p extends $e {
6519
+ const Yc = Oe(), dp = [NaN, NaN];
6520
+ class gp extends $e {
6532
6521
  constructor() {
6533
6522
  super(), this.extent_ = _e(), this.extentRevision_ = -1, this.simplifiedGeometryMaxMinSquaredTolerance = 0, this.simplifiedGeometryRevision = 0, this.simplifyTransformedInternal = Xu(
6534
6523
  (t, e, n) => {
@@ -6578,7 +6567,7 @@ class _p extends $e {
6578
6567
  * @return {boolean} Contains (x, y).
6579
6568
  */
6580
6569
  containsXY(t, e) {
6581
- return this.closestPointXY(t, e, gp, Number.MIN_VALUE) === 0;
6570
+ return this.closestPointXY(t, e, dp, Number.MIN_VALUE) === 0;
6582
6571
  }
6583
6572
  /**
6584
6573
  * Return the closest point of the geometry to the passed point as
@@ -6621,7 +6610,7 @@ class _p extends $e {
6621
6610
  const e = this.computeExtent(this.extent_);
6622
6611
  (isNaN(e[0]) || isNaN(e[1])) && Js(e), this.extentRevision_ = this.getRevision();
6623
6612
  }
6624
- return wm(this.extent_, t);
6613
+ return Em(this.extent_, t);
6625
6614
  }
6626
6615
  /**
6627
6616
  * Rotate the geometry around a given coordinate. This modifies the geometry
@@ -6751,7 +6740,7 @@ class _p extends $e {
6751
6740
  return this.applyTransform(s), this;
6752
6741
  }
6753
6742
  }
6754
- class Ta extends _p {
6743
+ class Ta extends gp {
6755
6744
  constructor() {
6756
6745
  super(), this.layout = "XY", this.stride = 2, this.flatCoordinates;
6757
6746
  }
@@ -6869,7 +6858,7 @@ class Ta extends _p {
6869
6858
  e = /** @type {Array<unknown>} */
6870
6859
  e[0];
6871
6860
  }
6872
- s = e.length, t = mp(s);
6861
+ s = e.length, t = _p(s);
6873
6862
  }
6874
6863
  this.layout = t, this.stride = s;
6875
6864
  }
@@ -6929,7 +6918,7 @@ class Ta extends _p {
6929
6918
  const s = this.getFlatCoordinates();
6930
6919
  if (s) {
6931
6920
  const r = this.getStride();
6932
- fp(
6921
+ up(
6933
6922
  s,
6934
6923
  0,
6935
6924
  s.length,
@@ -6953,7 +6942,7 @@ class Ta extends _p {
6953
6942
  const n = this.getFlatCoordinates();
6954
6943
  if (n) {
6955
6944
  const s = this.getStride();
6956
- dp(
6945
+ fp(
6957
6946
  n,
6958
6947
  0,
6959
6948
  n.length,
@@ -6965,7 +6954,7 @@ class Ta extends _p {
6965
6954
  }
6966
6955
  }
6967
6956
  }
6968
- function mp(i) {
6957
+ function _p(i) {
6969
6958
  let t;
6970
6959
  return i == 2 ? t = "XY" : i == 3 ? t = "XYZ" : i == 4 && (t = "XYZM"), /** @type {import("./Geometry.js").GeometryLayout} */
6971
6960
  t;
@@ -6975,7 +6964,7 @@ function jc(i) {
6975
6964
  return i == "XY" ? t = 2 : i == "XYZ" || i == "XYM" ? t = 3 : i == "XYZM" && (t = 4), /** @type {number} */
6976
6965
  t;
6977
6966
  }
6978
- function pp(i, t, e) {
6967
+ function mp(i, t, e) {
6979
6968
  const n = i.getFlatCoordinates();
6980
6969
  if (!n)
6981
6970
  return null;
@@ -6999,7 +6988,7 @@ function df(i, t, e, n) {
6999
6988
  }
7000
6989
  return s / 2;
7001
6990
  }
7002
- function yp(i, t, e, n) {
6991
+ function pp(i, t, e, n) {
7003
6992
  let s = 0;
7004
6993
  for (let r = 0, o = e.length; r < o; ++r) {
7005
6994
  const l = e[r];
@@ -7040,7 +7029,7 @@ function gf(i, t, e, n, s) {
7040
7029
  }
7041
7030
  return s;
7042
7031
  }
7043
- function xp(i, t, e, n, s) {
7032
+ function yp(i, t, e, n, s) {
7044
7033
  for (let r = 0, o = e.length; r < o; ++r) {
7045
7034
  const l = e[r];
7046
7035
  s = gf(i, t, l, n, s), t = l;
@@ -7099,7 +7088,7 @@ function _f(i, t, e, n, s, r, o, l, a, h, c) {
7099
7088
  }
7100
7089
  return h;
7101
7090
  }
7102
- function Ep(i, t, e, n, s, r, o, l, a, h, c) {
7091
+ function xp(i, t, e, n, s, r, o, l, a, h, c) {
7103
7092
  c = c || [NaN, NaN];
7104
7093
  for (let u = 0, f = e.length; u < f; ++u) {
7105
7094
  const d = e[u];
@@ -7119,7 +7108,7 @@ function Ep(i, t, e, n, s, r, o, l, a, h, c) {
7119
7108
  }
7120
7109
  return h;
7121
7110
  }
7122
- function wp(i, t, e, n) {
7111
+ function Ep(i, t, e, n) {
7123
7112
  for (let s = 0, r = e.length; s < r; ++s)
7124
7113
  i[t++] = e[s];
7125
7114
  return t;
@@ -7132,7 +7121,7 @@ function mf(i, t, e, n) {
7132
7121
  }
7133
7122
  return t;
7134
7123
  }
7135
- function Cp(i, t, e, n, s) {
7124
+ function wp(i, t, e, n, s) {
7136
7125
  s = s || [];
7137
7126
  let r = 0;
7138
7127
  for (let o = 0, l = e.length; o < l; ++o) {
@@ -7199,7 +7188,7 @@ function Sa(i, t, e, n, s, r, o) {
7199
7188
  let d = 0;
7200
7189
  const g = i[f], m = i[f + 1], _ = i[u], x = i[u + 1];
7201
7190
  for (let E = f + n; E < u; E += n) {
7202
- const C = i[E], p = i[E + 1], v = gm(C, p, g, m, _, x);
7191
+ const C = i[E], p = i[E + 1], v = dm(C, p, g, m, _, x);
7203
7192
  v > d && (c = E, d = v);
7204
7193
  }
7205
7194
  d > s && (a[(c - t) / n] = 1, f + n < c && h.push(f, c), c + n < u && h.push(c, u));
@@ -7208,7 +7197,7 @@ function Sa(i, t, e, n, s, r, o) {
7208
7197
  a[u] && (r[o++] = i[t + u * n], r[o++] = i[t + u * n + 1]);
7209
7198
  return o;
7210
7199
  }
7211
- function vp(i, t, e, n, s, r, o, l) {
7200
+ function Cp(i, t, e, n, s, r, o, l) {
7212
7201
  for (let a = 0, h = e.length; a < h; ++a) {
7213
7202
  const c = e[a];
7214
7203
  o = Sa(
@@ -7226,7 +7215,7 @@ function vp(i, t, e, n, s, r, o, l) {
7226
7215
  function $i(i, t) {
7227
7216
  return t * Math.round(i / t);
7228
7217
  }
7229
- function Rp(i, t, e, n, s, r, o) {
7218
+ function vp(i, t, e, n, s, r, o) {
7230
7219
  if (t == e)
7231
7220
  return o;
7232
7221
  let l = $i(i[t], s), a = $i(i[t + 1], s);
@@ -7252,7 +7241,7 @@ function Rp(i, t, e, n, s, r, o) {
7252
7241
  function pf(i, t, e, n, s, r, o, l) {
7253
7242
  for (let a = 0, h = e.length; a < h; ++a) {
7254
7243
  const c = e[a];
7255
- o = Rp(
7244
+ o = vp(
7256
7245
  i,
7257
7246
  t,
7258
7247
  c,
@@ -7485,7 +7474,7 @@ class er extends Ta {
7485
7474
  * @override
7486
7475
  */
7487
7476
  setCoordinates(t, e) {
7488
- this.setLayout(e, t, 0), this.flatCoordinates || (this.flatCoordinates = []), this.flatCoordinates.length = wp(
7477
+ this.setLayout(e, t, 0), this.flatCoordinates || (this.flatCoordinates = []), this.flatCoordinates.length = Ep(
7489
7478
  this.flatCoordinates,
7490
7479
  0,
7491
7480
  t,
@@ -7493,7 +7482,7 @@ class er extends Ta {
7493
7482
  ), this.changed();
7494
7483
  }
7495
7484
  }
7496
- function Tp(i, t, e, n, s) {
7485
+ function Rp(i, t, e, n, s) {
7497
7486
  return !Hu(
7498
7487
  s,
7499
7488
  /**
@@ -7544,7 +7533,7 @@ function Ia(i, t, e, n, s, r, o) {
7544
7533
  }
7545
7534
  return isNaN(_) && (_ = s[r]), o ? (o.push(_, g, x), o) : [_, g, x];
7546
7535
  }
7547
- function Sp(i, t, e, n, s) {
7536
+ function Tp(i, t, e, n, s) {
7548
7537
  let r = [];
7549
7538
  for (let o = 0, l = e.length; o < l; ++o) {
7550
7539
  const a = e[o];
@@ -7560,7 +7549,7 @@ function Sp(i, t, e, n, s) {
7560
7549
  }
7561
7550
  return r;
7562
7551
  }
7563
- function Ip(i, t, e, n, s) {
7552
+ function Sp(i, t, e, n, s) {
7564
7553
  let r;
7565
7554
  for (t += n; t < e; t += n)
7566
7555
  if (r = s(
@@ -7571,7 +7560,7 @@ function Ip(i, t, e, n, s) {
7571
7560
  return !1;
7572
7561
  }
7573
7562
  function xf(i, t, e, n, s, r) {
7574
- return r = r ?? Zu(_e(), i, t, e, n), ce(s, r) ? r[0] >= s[0] && r[2] <= s[2] || r[1] >= s[1] && r[3] <= s[3] ? !0 : Ip(
7563
+ return r = r ?? Zu(_e(), i, t, e, n), ce(s, r) ? r[0] >= s[0] && r[2] <= s[2] || r[1] >= s[1] && r[3] <= s[3] ? !0 : Sp(
7575
7564
  i,
7576
7565
  t,
7577
7566
  e,
@@ -7583,7 +7572,7 @@ function xf(i, t, e, n, s, r) {
7583
7572
  * `false` otherwise.
7584
7573
  */
7585
7574
  function(o, l) {
7586
- return Cm(s, o, l);
7575
+ return wm(s, o, l);
7587
7576
  }
7588
7577
  ) : !1;
7589
7578
  }
@@ -7618,13 +7607,13 @@ function Ef(i, t, e, n, s) {
7618
7607
  s[3]
7619
7608
  ));
7620
7609
  }
7621
- function bp(i, t, e, n, s) {
7610
+ function Ip(i, t, e, n, s) {
7622
7611
  if (!Ef(i, t, e[0], n, s))
7623
7612
  return !1;
7624
7613
  if (e.length === 1)
7625
7614
  return !0;
7626
7615
  for (let r = 1, o = e.length; r < o; ++r)
7627
- if (Tp(
7616
+ if (Rp(
7628
7617
  i,
7629
7618
  e[r - 1],
7630
7619
  e[r],
@@ -7640,7 +7629,7 @@ function bp(i, t, e, n, s) {
7640
7629
  return !1;
7641
7630
  return !0;
7642
7631
  }
7643
- function Ap(i, t, e, n) {
7632
+ function bp(i, t, e, n) {
7644
7633
  for (; t < e - n; ) {
7645
7634
  for (let s = 0; s < n; ++s) {
7646
7635
  const r = i[t + s];
@@ -7657,7 +7646,7 @@ function ba(i, t, e, n) {
7657
7646
  }
7658
7647
  return s === 0 ? void 0 : s > 0;
7659
7648
  }
7660
- function Mp(i, t, e, n, s) {
7649
+ function Ap(i, t, e, n, s) {
7661
7650
  s = s !== void 0 ? s : !1;
7662
7651
  for (let r = 0, o = e.length; r < o; ++r) {
7663
7652
  const l = e[r], a = ba(
@@ -7684,11 +7673,11 @@ function Vc(i, t, e, n, s) {
7684
7673
  l,
7685
7674
  n
7686
7675
  );
7687
- (r === 0 ? s && a || !s && !a : s && !a || !s && a) && Ap(i, t, l, n), t = l;
7676
+ (r === 0 ? s && a || !s && !a : s && !a || !s && a) && bp(i, t, l, n), t = l;
7688
7677
  }
7689
7678
  return t;
7690
7679
  }
7691
- function Lp(i, t) {
7680
+ function Mp(i, t) {
7692
7681
  const e = [];
7693
7682
  let n = 0, s = 0, r;
7694
7683
  for (let o = 0, l = t.length; o < l; ++o) {
@@ -7759,14 +7748,14 @@ class Xs extends Ta {
7759
7748
  */
7760
7749
  closestPointXY(t, e, n, s) {
7761
7750
  return s < Uu(this.getExtent(), t, e) ? s : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
7762
- xp(
7751
+ yp(
7763
7752
  this.flatCoordinates,
7764
7753
  0,
7765
7754
  this.ends_,
7766
7755
  this.stride,
7767
7756
  0
7768
7757
  )
7769
- ), this.maxDeltaRevision_ = this.getRevision()), Ep(
7758
+ ), this.maxDeltaRevision_ = this.getRevision()), xp(
7770
7759
  this.flatCoordinates,
7771
7760
  0,
7772
7761
  this.ends_,
@@ -7801,7 +7790,7 @@ class Xs extends Ta {
7801
7790
  * @api
7802
7791
  */
7803
7792
  getArea() {
7804
- return yp(
7793
+ return pp(
7805
7794
  this.getOrientedFlatCoordinates(),
7806
7795
  0,
7807
7796
  this.ends_,
@@ -7913,7 +7902,7 @@ class Xs extends Ta {
7913
7902
  getOrientedFlatCoordinates() {
7914
7903
  if (this.orientedRevision_ != this.getRevision()) {
7915
7904
  const t = this.flatCoordinates;
7916
- Mp(t, 0, this.ends_, this.stride) ? this.orientedFlatCoordinates_ = t : (this.orientedFlatCoordinates_ = t.slice(), this.orientedFlatCoordinates_.length = Vc(
7905
+ Ap(t, 0, this.ends_, this.stride) ? this.orientedFlatCoordinates_ = t : (this.orientedFlatCoordinates_ = t.slice(), this.orientedFlatCoordinates_.length = Vc(
7917
7906
  this.orientedFlatCoordinates_,
7918
7907
  0,
7919
7908
  this.ends_,
@@ -7961,7 +7950,7 @@ class Xs extends Ta {
7961
7950
  * @override
7962
7951
  */
7963
7952
  intersectsExtent(t) {
7964
- return bp(
7953
+ return Ip(
7965
7954
  this.getOrientedFlatCoordinates(),
7966
7955
  0,
7967
7956
  this.ends_,
@@ -7978,7 +7967,7 @@ class Xs extends Ta {
7978
7967
  */
7979
7968
  setCoordinates(t, e) {
7980
7969
  this.setLayout(e, t, 2), this.flatCoordinates || (this.flatCoordinates = []);
7981
- const n = Cp(
7970
+ const n = wp(
7982
7971
  this.flatCoordinates,
7983
7972
  0,
7984
7973
  t,
@@ -8014,7 +8003,7 @@ function Ma(i, t, e) {
8014
8003
  const s = 50;
8015
8004
  return n *= Math.log(1 + s * Math.max(0, i / t - 1)) / s + 1, e && (n = Math.max(n, e), n /= Math.log(1 + s * Math.max(0, e / i - 1)) / s + 1), Lt(n, e / 2, t * 2);
8016
8005
  }
8017
- function Op(i, t, e, n) {
8006
+ function Lp(i, t, e, n) {
8018
8007
  return t = t !== void 0 ? t : !0, /**
8019
8008
  * @param {number|undefined} resolution Resolution.
8020
8009
  * @param {number} direction Direction.
@@ -8041,7 +8030,7 @@ function Op(i, t, e, n) {
8041
8030
  }
8042
8031
  });
8043
8032
  }
8044
- function Pp(i, t, e, n, s, r) {
8033
+ function Op(i, t, e, n, s, r) {
8045
8034
  return n = n !== void 0 ? n : !0, e = e !== void 0 ? e : 0, /**
8046
8035
  * @param {number|undefined} resolution Resolution.
8047
8036
  * @param {number} direction Direction.
@@ -8104,7 +8093,7 @@ function $c(i) {
8104
8093
  if (i !== void 0)
8105
8094
  return i;
8106
8095
  }
8107
- function Dp(i) {
8096
+ function Pp(i) {
8108
8097
  const t = 2 * Math.PI / i;
8109
8098
  return (
8110
8099
  /**
@@ -8120,7 +8109,7 @@ function Dp(i) {
8120
8109
  })
8121
8110
  );
8122
8111
  }
8123
- function Fp(i) {
8112
+ function Dp(i) {
8124
8113
  const t = Ni(5);
8125
8114
  return (
8126
8115
  /**
@@ -8133,13 +8122,13 @@ function Fp(i) {
8133
8122
  })
8134
8123
  );
8135
8124
  }
8136
- const kp = 42, Oa = 256, Qo = 0;
8125
+ const Fp = 42, Oa = 256, Qo = 0;
8137
8126
  class Ke extends $e {
8138
8127
  /**
8139
8128
  * @param {ViewOptions} [options] View options.
8140
8129
  */
8141
8130
  constructor(t) {
8142
- super(), this.on, this.once, this.un, t = Object.assign({}, t), this.hints_ = [0, 0], this.animations_ = [], this.updateAnimationKey_, this.projection_ = Ra(t.projection, "EPSG:3857"), this.viewportSize_ = [100, 100], this.targetCenter_ = null, this.targetResolution_, this.targetRotation_, this.nextCenter_ = null, this.nextResolution_, this.nextRotation_, this.cancelAnchor_ = void 0, t.projection && Qm(), t.center && (t.center = si(t.center, this.projection_)), t.extent && (t.extent = Qi(t.extent, this.projection_)), this.applyOptions_(t);
8131
+ super(), this.on, this.once, this.un, t = Object.assign({}, t), this.hints_ = [0, 0], this.animations_ = [], this.updateAnimationKey_, this.projection_ = Ra(t.projection, "EPSG:3857"), this.viewportSize_ = [100, 100], this.targetCenter_ = null, this.targetResolution_, this.targetRotation_, this.nextCenter_ = null, this.nextResolution_, this.nextRotation_, this.cancelAnchor_ = void 0, t.projection && Jm(), t.center && (t.center = si(t.center, this.projection_)), t.extent && (t.extent = Qi(t.extent, this.projection_)), this.applyOptions_(t);
8143
8132
  }
8144
8133
  /**
8145
8134
  * Set up the view with the given options.
@@ -8150,9 +8139,9 @@ class Ke extends $e {
8150
8139
  for (const l in Ie)
8151
8140
  delete e[l];
8152
8141
  this.setProperties(e, !0);
8153
- const n = Gp(t);
8142
+ const n = Np(t);
8154
8143
  this.maxResolution_ = n.maxResolution, this.minResolution_ = n.minResolution, this.zoomFactor_ = n.zoomFactor, this.resolutions_ = t.resolutions, this.padding_ = t.padding, this.minZoom_ = n.minZoom;
8155
- const s = Np(t), r = n.constraint, o = Wp(t);
8144
+ const s = kp(t), r = n.constraint, o = Gp(t);
8156
8145
  this.constraints_ = {
8157
8146
  center: s,
8158
8147
  resolution: r,
@@ -8270,7 +8259,7 @@ class Ke extends $e {
8270
8259
  complete: !1,
8271
8260
  anchor: c.anchor,
8272
8261
  duration: c.duration !== void 0 ? c.duration : 1e3,
8273
- easing: c.easing || Sm,
8262
+ easing: c.easing || Tm,
8274
8263
  callback: n
8275
8264
  };
8276
8265
  if (c.center && (u.sourceCenter = o, u.targetCenter = c.center.slice(), o = u.targetCenter), c.zoom !== void 0 ? (u.sourceResolution = l, u.targetResolution = this.getResolutionForZoom(c.zoom), l = u.targetResolution) : c.resolution && (u.sourceResolution = l, u.targetResolution = c.resolution, l = u.targetResolution), c.rotation !== void 0) {
@@ -8278,7 +8267,7 @@ class Ke extends $e {
8278
8267
  const f = Fn(c.rotation - a + Math.PI, 2 * Math.PI) - Math.PI;
8279
8268
  u.targetRotation = a + f, a = u.targetRotation;
8280
8269
  }
8281
- zp(u) ? u.complete = !0 : r += u.duration, h.push(u);
8270
+ Wp(u) ? u.complete = !0 : r += u.duration, h.push(u);
8282
8271
  }
8283
8272
  this.animations_.push(h), this.setHint(Zt.ANIMATING, 1), this.updateAnimations_();
8284
8273
  }
@@ -9203,7 +9192,7 @@ function yr(i, t) {
9203
9192
  i(t);
9204
9193
  }, 0);
9205
9194
  }
9206
- function Np(i) {
9195
+ function kp(i) {
9207
9196
  if (i.extent !== void 0) {
9208
9197
  const e = i.smoothExtentConstraint !== void 0 ? i.smoothExtentConstraint : !0;
9209
9198
  return Lc(i.extent, i.constrainOnlyCenter, e);
@@ -9213,15 +9202,15 @@ function Np(i) {
9213
9202
  const e = t.getExtent().slice();
9214
9203
  return e[0] = -1 / 0, e[2] = 1 / 0, Lc(e, !1, !1);
9215
9204
  }
9216
- return mm;
9205
+ return _m;
9217
9206
  }
9218
- function Gp(i) {
9207
+ function Np(i) {
9219
9208
  let t, e, n, o = i.minZoom !== void 0 ? i.minZoom : Qo, l = i.maxZoom !== void 0 ? i.maxZoom : 28;
9220
9209
  const a = i.zoomFactor !== void 0 ? i.zoomFactor : 2, h = i.multiWorld !== void 0 ? i.multiWorld : !1, c = i.smoothResolutionConstraint !== void 0 ? i.smoothResolutionConstraint : !0, u = i.showFullExtent !== void 0 ? i.showFullExtent : !1, f = Ra(i.projection, "EPSG:3857"), d = f.getExtent();
9221
9210
  let g = i.constrainOnlyCenter, m = i.extent;
9222
9211
  if (!h && !m && f.isGlobal() && (g = !1, m = d), i.resolutions !== void 0) {
9223
9212
  const _ = i.resolutions;
9224
- e = _[o], n = _[l] !== void 0 ? _[l] : _[_.length - 1], i.constrainResolution ? t = Op(
9213
+ e = _[o], n = _[l] !== void 0 ? _[l] : _[_.length - 1], i.constrainResolution ? t = Lp(
9225
9214
  _,
9226
9215
  c,
9227
9216
  !g && m,
@@ -9240,7 +9229,7 @@ function Gp(i) {
9240
9229
  )) / Oa / Math.pow(2, Qo), E = x / Math.pow(2, 28 - Qo);
9241
9230
  e = i.maxResolution, e !== void 0 ? o = 0 : e = x / Math.pow(a, o), n = i.minResolution, n === void 0 && (i.maxZoom !== void 0 ? i.maxResolution !== void 0 ? n = e / Math.pow(a, l) : n = x / Math.pow(a, l) : n = E), l = o + Math.floor(
9242
9231
  Math.log(e / n) / Math.log(a)
9243
- ), n = e / Math.pow(a, l - o), i.constrainResolution ? t = Pp(
9232
+ ), n = e / Math.pow(a, l - o), i.constrainResolution ? t = Op(
9244
9233
  a,
9245
9234
  e,
9246
9235
  n,
@@ -9263,14 +9252,14 @@ function Gp(i) {
9263
9252
  zoomFactor: a
9264
9253
  };
9265
9254
  }
9266
- function Wp(i) {
9255
+ function Gp(i) {
9267
9256
  if (i.enableRotation !== void 0 ? i.enableRotation : !0) {
9268
9257
  const e = i.constrainRotation;
9269
- return e === void 0 || e === !0 ? Fp() : e === !1 ? $c : typeof e == "number" ? Dp(e) : $c;
9258
+ return e === void 0 || e === !0 ? Dp() : e === !1 ? $c : typeof e == "number" ? Pp(e) : $c;
9270
9259
  }
9271
9260
  return La;
9272
9261
  }
9273
- function zp(i) {
9262
+ function Wp(i) {
9274
9263
  return !(i.sourceCenter && i.targetCenter && !zr(i.sourceCenter, i.targetCenter) || i.sourceResolution !== i.targetResolution || i.sourceRotation !== i.targetRotation);
9275
9264
  }
9276
9265
  function tl(i, t, e, n, s) {
@@ -9280,7 +9269,7 @@ function tl(i, t, e, n, s) {
9280
9269
  const h = l * r - a * o, c = a * r + l * o;
9281
9270
  return [h, c];
9282
9271
  }
9283
- const xr = "ol-hidden", To = "ol-unselectable", Pa = "ol-control", qc = "ol-collapsed", Xp = new RegExp(
9272
+ const xr = "ol-hidden", To = "ol-unselectable", Pa = "ol-control", qc = "ol-collapsed", zp = new RegExp(
9284
9273
  [
9285
9274
  "^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)",
9286
9275
  "(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)",
@@ -9302,7 +9291,7 @@ const xr = "ol-hidden", To = "ol-unselectable", Pa = "ol-control", qc = "ol-coll
9302
9291
  normal: 400,
9303
9292
  bold: 700
9304
9293
  }, Bl = function(i) {
9305
- const t = i.match(Xp);
9294
+ const t = i.match(zp);
9306
9295
  if (!t)
9307
9296
  return null;
9308
9297
  const e = (
@@ -9341,11 +9330,11 @@ function Qc(i, t) {
9341
9330
  const e = t.parentNode;
9342
9331
  e && e.replaceChild(i, t);
9343
9332
  }
9344
- function Kp(i) {
9333
+ function Xp(i) {
9345
9334
  for (; i.lastChild; )
9346
9335
  i.lastChild.remove();
9347
9336
  }
9348
- function Yp(i, t) {
9337
+ function Kp(i, t) {
9349
9338
  const e = i.childNodes;
9350
9339
  for (let n = 0; ; ++n) {
9351
9340
  const s = e[n], r = t[n];
@@ -9479,7 +9468,7 @@ class Da extends $e {
9479
9468
  this.target_ = typeof t == "string" ? document.getElementById(t) : t;
9480
9469
  }
9481
9470
  }
9482
- class jp extends Da {
9471
+ class Yp extends Da {
9483
9472
  /**
9484
9473
  * @param {Options} [options] Attribution options.
9485
9474
  */
@@ -9531,11 +9520,11 @@ class jp extends Da {
9531
9520
  }
9532
9521
  const e = await Promise.all(
9533
9522
  this.collectSourceAttributions_(t).map(
9534
- (s) => sm(() => s)
9523
+ (s) => nm(() => s)
9535
9524
  )
9536
9525
  ), n = e.length > 0;
9537
9526
  if (this.renderedVisible_ != n && (this.element.style.display = n ? "" : "none", this.renderedVisible_ = n), !Ki(e, this.renderedAttributions_)) {
9538
- Kp(this.ulElement_);
9527
+ Xp(this.ulElement_);
9539
9528
  for (let s = 0, r = e.length; s < r; ++s) {
9540
9529
  const o = document.createElement("li");
9541
9530
  o.innerHTML = e[s], this.ulElement_.appendChild(o);
@@ -9600,7 +9589,7 @@ class jp extends Da {
9600
9589
  this.updateElement_(t.frameState);
9601
9590
  }
9602
9591
  }
9603
- class Bp extends Da {
9592
+ class jp extends Da {
9604
9593
  /**
9605
9594
  * @param {Options} [options] Rotate options.
9606
9595
  */
@@ -9663,7 +9652,7 @@ class Bp extends Da {
9663
9652
  this.rotation_ = n;
9664
9653
  }
9665
9654
  }
9666
- class Up extends Da {
9655
+ class Bp extends Da {
9667
9656
  /**
9668
9657
  * @param {Options} [options] Zoom options.
9669
9658
  */
@@ -9718,12 +9707,12 @@ class Up extends Da {
9718
9707
  }
9719
9708
  }
9720
9709
  }
9721
- function Vp(i) {
9710
+ function Up(i) {
9722
9711
  i = i || {};
9723
9712
  const t = new Ee();
9724
- return (i.zoom === void 0 || i.zoom) && t.push(new Up(i.zoomOptions)), (i.rotate === void 0 || i.rotate) && t.push(new Bp(i.rotateOptions)), (i.attribution === void 0 || i.attribution) && t.push(new jp(i.attributionOptions)), t;
9713
+ return (i.zoom === void 0 || i.zoom) && t.push(new Bp(i.zoomOptions)), (i.rotate === void 0 || i.rotate) && t.push(new jp(i.rotateOptions)), (i.attribution === void 0 || i.attribution) && t.push(new Yp(i.attributionOptions)), t;
9725
9714
  }
9726
- class Zp {
9715
+ class Vp {
9727
9716
  /**
9728
9717
  * @param {number} decay Rate of decay (must be negative).
9729
9718
  * @param {number} minVelocity Minimum velocity (pixels/millisecond).
@@ -9835,13 +9824,13 @@ class ir extends $e {
9835
9824
  this.map_ = t;
9836
9825
  }
9837
9826
  }
9838
- function Hp(i, t, e) {
9827
+ function Zp(i, t, e) {
9839
9828
  const n = i.getCenterInternal();
9840
9829
  if (n) {
9841
9830
  const s = [n[0] + t[0], n[1] + t[1]];
9842
9831
  i.animateInternal({
9843
9832
  duration: e !== void 0 ? e : 250,
9844
- easing: Im,
9833
+ easing: Sm,
9845
9834
  center: i.getConstrainedCenter(s)
9846
9835
  });
9847
9836
  }
@@ -9858,7 +9847,7 @@ function Fa(i, t, e, n) {
9858
9847
  easing: Zn
9859
9848
  });
9860
9849
  }
9861
- class $p extends ir {
9850
+ class Hp extends ir {
9862
9851
  /**
9863
9852
  * @param {Options} [options] Options.
9864
9853
  */
@@ -9893,28 +9882,28 @@ function Ul(i) {
9893
9882
  return n;
9894
9883
  };
9895
9884
  }
9896
- const qp = function(i) {
9885
+ const $p = function(i) {
9897
9886
  const t = i.originalEvent;
9898
9887
  return t.altKey && !(t.metaKey || t.ctrlKey) && t.shiftKey;
9899
- }, Jp = function(i) {
9888
+ }, qp = function(i) {
9900
9889
  const t = i.map.getTargetElement(), e = t.getRootNode(), n = i.map.getOwnerDocument().activeElement;
9901
9890
  return e instanceof ShadowRoot ? e.host.contains(n) : t.contains(n);
9902
9891
  }, Cf = function(i) {
9903
9892
  const t = i.map.getTargetElement(), e = t.getRootNode();
9904
- return (e instanceof ShadowRoot ? e.host : t).hasAttribute("tabindex") ? Jp(i) : !0;
9905
- }, Qp = Fs, vf = function(i) {
9893
+ return (e instanceof ShadowRoot ? e.host : t).hasAttribute("tabindex") ? qp(i) : !0;
9894
+ }, Jp = Fs, vf = function(i) {
9906
9895
  const t = i.originalEvent;
9907
- return "pointerId" in t && t.button == 0 && !(am && Ku && t.ctrlKey);
9896
+ return "pointerId" in t && t.button == 0 && !(lm && Ku && t.ctrlKey);
9908
9897
  }, Rf = function(i) {
9909
9898
  const t = (
9910
9899
  /** @type {KeyboardEvent|MouseEvent|TouchEvent} */
9911
9900
  i.originalEvent
9912
9901
  );
9913
9902
  return !t.altKey && !(t.metaKey || t.ctrlKey) && !t.shiftKey;
9914
- }, ty = function(i) {
9903
+ }, Qp = function(i) {
9915
9904
  const t = i.originalEvent;
9916
9905
  return Ku ? t.metaKey : t.ctrlKey;
9917
- }, ey = function(i) {
9906
+ }, ty = function(i) {
9918
9907
  const t = i.originalEvent;
9919
9908
  return !t.altKey && !(t.metaKey || t.ctrlKey) && t.shiftKey;
9920
9909
  }, Tf = function(i) {
@@ -9929,7 +9918,7 @@ const qp = function(i) {
9929
9918
  }, il = function(i) {
9930
9919
  const t = i.originalEvent;
9931
9920
  return "pointerId" in t && t.pointerType == "mouse";
9932
- }, iy = function(i) {
9921
+ }, ey = function(i) {
9933
9922
  const t = i.originalEvent;
9934
9923
  return "pointerId" in t && t.isPrimary && t.button === 0;
9935
9924
  };
@@ -10034,7 +10023,7 @@ function ka(i) {
10034
10023
  e += i[s].clientX, n += i[s].clientY;
10035
10024
  return { clientX: e / t, clientY: n / t };
10036
10025
  }
10037
- class ny extends nr {
10026
+ class iy extends nr {
10038
10027
  /**
10039
10028
  * @param {Options} [options] Options.
10040
10029
  */
@@ -10042,7 +10031,7 @@ class ny extends nr {
10042
10031
  super({
10043
10032
  stopDown: _o
10044
10033
  }), t = t || {}, this.kinetic_ = t.kinetic, this.lastCentroid = null, this.lastPointersCount_, this.panning_ = !1;
10045
- const e = t.condition ? t.condition : Ul(Rf, iy);
10034
+ const e = t.condition ? t.condition : Ul(Rf, ey);
10046
10035
  this.condition_ = t.onFocusOnly ? Ul(Cf, e) : e, this.noKinetic_ = !1;
10047
10036
  }
10048
10037
  /**
@@ -10103,14 +10092,14 @@ class ny extends nr {
10103
10092
  return !1;
10104
10093
  }
10105
10094
  }
10106
- class sy extends nr {
10095
+ class ny extends nr {
10107
10096
  /**
10108
10097
  * @param {Options} [options] Options.
10109
10098
  */
10110
10099
  constructor(t) {
10111
10100
  t = t || {}, super({
10112
10101
  stopDown: _o
10113
- }), this.condition_ = t.condition ? t.condition : qp, this.lastAngle_ = void 0, this.duration_ = t.duration !== void 0 ? t.duration : 250;
10102
+ }), this.condition_ = t.condition ? t.condition : $p, this.lastAngle_ = void 0, this.duration_ = t.duration !== void 0 ? t.duration : 250;
10114
10103
  }
10115
10104
  /**
10116
10105
  * Handle pointer drag events.
@@ -10149,7 +10138,7 @@ class sy extends nr {
10149
10138
  return il(t) && vf(t) && this.condition_(t) ? (t.map.getView().beginInteraction(), this.lastAngle_ = void 0, !0) : !1;
10150
10139
  }
10151
10140
  }
10152
- class ry extends go {
10141
+ class sy extends go {
10153
10142
  /**
10154
10143
  * @param {string} className CSS class name.
10155
10144
  */
@@ -10248,12 +10237,12 @@ class ss extends Ei {
10248
10237
  super(t), this.coordinate = e, this.mapBrowserEvent = n;
10249
10238
  }
10250
10239
  }
10251
- class oy extends nr {
10240
+ class ry extends nr {
10252
10241
  /**
10253
10242
  * @param {Options} [options] Options.
10254
10243
  */
10255
10244
  constructor(t) {
10256
- super(), this.on, this.once, this.un, t = t ?? {}, this.box_ = new ry(t.className || "ol-dragbox"), this.minArea_ = t.minArea ?? 64, t.onBoxEnd && (this.onBoxEnd = t.onBoxEnd), this.startPixel_ = null, this.condition_ = t.condition ?? vf, this.boxEndCondition_ = t.boxEndCondition ?? this.defaultBoxEndCondition;
10245
+ super(), this.on, this.once, this.un, t = t ?? {}, this.box_ = new sy(t.className || "ol-dragbox"), this.minArea_ = t.minArea ?? 64, t.onBoxEnd && (this.onBoxEnd = t.onBoxEnd), this.startPixel_ = null, this.condition_ = t.condition ?? vf, this.boxEndCondition_ = t.boxEndCondition ?? this.defaultBoxEndCondition;
10257
10246
  }
10258
10247
  /**
10259
10248
  * The default condition for determining whether the boxend event
@@ -10355,13 +10344,13 @@ class oy extends nr {
10355
10344
  ), this.startPixel_ = null)), super.setMap(t);
10356
10345
  }
10357
10346
  }
10358
- class ly extends oy {
10347
+ class oy extends ry {
10359
10348
  /**
10360
10349
  * @param {Options} [options] Options.
10361
10350
  */
10362
10351
  constructor(t) {
10363
10352
  t = t || {};
10364
- const e = t.condition ? t.condition : ey;
10353
+ const e = t.condition ? t.condition : ty;
10365
10354
  super({
10366
10355
  condition: e,
10367
10356
  className: t.className || "ol-dragzoom",
@@ -10395,7 +10384,7 @@ const Zi = {
10395
10384
  RIGHT: "ArrowRight",
10396
10385
  DOWN: "ArrowDown"
10397
10386
  };
10398
- class ay extends ir {
10387
+ class ly extends ir {
10399
10388
  /**
10400
10389
  * @param {Options} [options] Options.
10401
10390
  */
@@ -10424,19 +10413,19 @@ class ay extends ir {
10424
10413
  let a = 0, h = 0;
10425
10414
  s == Zi.DOWN ? h = -l : s == Zi.LEFT ? a = -l : s == Zi.RIGHT ? a = l : h = l;
10426
10415
  const c = [a, h];
10427
- ya(c, o.getRotation()), Hp(o, c, this.duration_), n.preventDefault(), e = !0;
10416
+ ya(c, o.getRotation()), Zp(o, c, this.duration_), n.preventDefault(), e = !0;
10428
10417
  }
10429
10418
  }
10430
10419
  return !e;
10431
10420
  }
10432
10421
  }
10433
- class cy extends ir {
10422
+ class ay extends ir {
10434
10423
  /**
10435
10424
  * @param {Options} [options] Options.
10436
10425
  */
10437
10426
  constructor(t) {
10438
10427
  super(), t = t || {}, this.condition_ = t.condition ? t.condition : function(e) {
10439
- return !ty(e) && Tf(e);
10428
+ return !Qp(e) && Tf(e);
10440
10429
  }, this.delta_ = t.delta ? t.delta : 1, this.duration_ = t.duration !== void 0 ? t.duration : 100;
10441
10430
  }
10442
10431
  /**
@@ -10462,8 +10451,8 @@ class cy extends ir {
10462
10451
  return !e;
10463
10452
  }
10464
10453
  }
10465
- const hy = 40, uy = 300, fy = 3;
10466
- class dy extends ir {
10454
+ const cy = 40, hy = 300, uy = 3;
10455
+ class fy extends ir {
10467
10456
  /**
10468
10457
  * @param {Options} [options] Options.
10469
10458
  */
@@ -10472,7 +10461,7 @@ class dy extends ir {
10472
10461
  /** @type {import("./Interaction.js").InteractionOptions} */
10473
10462
  t
10474
10463
  ), this.totalDelta_ = 0, this.lastDelta_ = 0, this.maxDelta_ = t.maxDelta !== void 0 ? t.maxDelta : 1, this.duration_ = t.duration !== void 0 ? t.duration : 250, this.timeout_ = t.timeout !== void 0 ? t.timeout : 80, this.useAnchor_ = t.useAnchor !== void 0 ? t.useAnchor : !0, this.constrainResolution_ = t.constrainResolution !== void 0 ? t.constrainResolution : !1;
10475
- const e = t.condition ? t.condition : Qp;
10464
+ const e = t.condition ? t.condition : Jp;
10476
10465
  this.condition_ = t.onFocusOnly ? Ul(Cf, e) : e, this.lastAnchor_ = null, this.startTime_ = void 0, this.timeoutId_, this.mode_ = void 0, this.trackpadEventGap_ = 400, this.trackpadTimeoutId_, this.deltaPerZoom_ = 300, this.ctrlKeyPressed_ = !1, this.ctrlKeyListenerKeys_ = [];
10477
10466
  }
10478
10467
  /**
@@ -10527,10 +10516,10 @@ class dy extends ir {
10527
10516
  let o = s.deltaY;
10528
10517
  switch (s.deltaMode) {
10529
10518
  case WheelEvent.DOM_DELTA_LINE:
10530
- o *= hy;
10519
+ o *= cy;
10531
10520
  break;
10532
10521
  case WheelEvent.DOM_DELTA_PAGE:
10533
- o *= uy;
10522
+ o *= hy;
10534
10523
  break;
10535
10524
  }
10536
10525
  if (o === 0)
@@ -10543,7 +10532,7 @@ class dy extends ir {
10543
10532
  return this.trackpadTimeoutId_ ? clearTimeout(this.trackpadTimeoutId_) : (a.getAnimating() && a.cancelAnimations(), a.beginInteraction()), this.trackpadTimeoutId_ = setTimeout(
10544
10533
  this.endInteraction_.bind(this),
10545
10534
  this.timeout_
10546
- ), r && (o = o * fy), a.adjustZoom(
10535
+ ), r && (o = o * uy), a.adjustZoom(
10547
10536
  -o / this.deltaPerZoom_,
10548
10537
  this.lastAnchor_ ? n.getCoordinateFromPixel(this.lastAnchor_) : null
10549
10538
  ), this.startTime_ = l, !1;
@@ -10583,7 +10572,7 @@ class dy extends ir {
10583
10572
  this.useAnchor_ = t, t || (this.lastAnchor_ = null);
10584
10573
  }
10585
10574
  }
10586
- class gy extends nr {
10575
+ class dy extends nr {
10587
10576
  /**
10588
10577
  * @param {Options} [options] Options.
10589
10578
  */
@@ -10639,7 +10628,7 @@ class gy extends nr {
10639
10628
  return !1;
10640
10629
  }
10641
10630
  }
10642
- class _y extends nr {
10631
+ class gy extends nr {
10643
10632
  /**
10644
10633
  * @param {Options} [options] Options.
10645
10634
  */
@@ -10692,35 +10681,35 @@ class _y extends nr {
10692
10681
  return !1;
10693
10682
  }
10694
10683
  }
10695
- function my(i) {
10684
+ function _y(i) {
10696
10685
  i = i || {};
10697
- const t = new Ee(), e = new Zp(-5e-3, 0.05, 100);
10698
- return (i.altShiftDragRotate === void 0 || i.altShiftDragRotate) && t.push(new sy()), (i.doubleClickZoom === void 0 || i.doubleClickZoom) && t.push(
10699
- new $p({
10686
+ const t = new Ee(), e = new Vp(-5e-3, 0.05, 100);
10687
+ return (i.altShiftDragRotate === void 0 || i.altShiftDragRotate) && t.push(new ny()), (i.doubleClickZoom === void 0 || i.doubleClickZoom) && t.push(
10688
+ new Hp({
10700
10689
  delta: i.zoomDelta,
10701
10690
  duration: i.zoomDuration
10702
10691
  })
10703
10692
  ), (i.dragPan === void 0 || i.dragPan) && t.push(
10704
- new ny({
10693
+ new iy({
10705
10694
  onFocusOnly: i.onFocusOnly,
10706
10695
  kinetic: e
10707
10696
  })
10708
- ), (i.pinchRotate === void 0 || i.pinchRotate) && t.push(new gy()), (i.pinchZoom === void 0 || i.pinchZoom) && t.push(
10709
- new _y({
10697
+ ), (i.pinchRotate === void 0 || i.pinchRotate) && t.push(new dy()), (i.pinchZoom === void 0 || i.pinchZoom) && t.push(
10698
+ new gy({
10710
10699
  duration: i.zoomDuration
10711
10700
  })
10712
- ), (i.keyboard === void 0 || i.keyboard) && (t.push(new ay()), t.push(
10713
- new cy({
10701
+ ), (i.keyboard === void 0 || i.keyboard) && (t.push(new ly()), t.push(
10702
+ new ay({
10714
10703
  delta: i.zoomDelta,
10715
10704
  duration: i.zoomDuration
10716
10705
  })
10717
10706
  )), (i.mouseWheelZoom === void 0 || i.mouseWheelZoom) && t.push(
10718
- new dy({
10707
+ new fy({
10719
10708
  onFocusOnly: i.onFocusOnly,
10720
10709
  duration: i.zoomDuration
10721
10710
  })
10722
10711
  ), (i.shiftDragZoom === void 0 || i.shiftDragZoom) && t.push(
10723
- new ly({
10712
+ new oy({
10724
10713
  duration: i.zoomDuration
10725
10714
  })
10726
10715
  ), t;
@@ -11521,7 +11510,7 @@ function Na(i, t) {
11521
11510
  const n = t.zoom;
11522
11511
  return n > i.minZoom && n <= i.maxZoom;
11523
11512
  }
11524
- function If(i, t, e = 0, n = i.length - 1, s = py) {
11513
+ function If(i, t, e = 0, n = i.length - 1, s = my) {
11525
11514
  for (; n > e; ) {
11526
11515
  if (n - e > 600) {
11527
11516
  const a = n - e + 1, h = t - e + 1, c = Math.log(a), u = 0.5 * Math.exp(2 * c / 3), f = 0.5 * Math.sqrt(c * u * (a - u) / a) * (h - a / 2 < 0 ? -1 : 1), d = Math.max(e, Math.floor(t - h * u / a + f)), g = Math.min(n, Math.floor(t + (a - h) * u / a + f));
@@ -11540,7 +11529,7 @@ function rs(i, t, e) {
11540
11529
  const n = i[t];
11541
11530
  i[t] = i[e], i[e] = n;
11542
11531
  }
11543
- function py(i, t) {
11532
+ function my(i, t) {
11544
11533
  return i < t ? -1 : i > t ? 1 : 0;
11545
11534
  }
11546
11535
  let bf = class {
@@ -11614,7 +11603,7 @@ let bf = class {
11614
11603
  let l, a, h;
11615
11604
  for (; n || r.length; ) {
11616
11605
  if (n || (n = r.pop(), a = r[r.length - 1], l = o.pop(), h = !0), n.leaf) {
11617
- const c = yy(t, n.children, e);
11606
+ const c = py(t, n.children, e);
11618
11607
  if (c !== -1)
11619
11608
  return n.children.splice(c, 1), r.push(n), this._condense(r), this;
11620
11609
  }
@@ -11665,7 +11654,7 @@ let bf = class {
11665
11654
  for (; s.push(e), !(e.leaf || s.length - 1 === n); ) {
11666
11655
  let r = 1 / 0, o = 1 / 0, l;
11667
11656
  for (let a = 0; a < e.children.length; a++) {
11668
- const h = e.children[a], c = sl(h), u = wy(t, h) - c;
11657
+ const h = e.children[a], c = sl(h), u = Ey(t, h) - c;
11669
11658
  u < o ? (o = u, r = c < r ? c : r, l = h) : u === o && c < r && (r = c, l = h);
11670
11659
  }
11671
11660
  e = l || e.children[0];
@@ -11691,14 +11680,14 @@ let bf = class {
11691
11680
  _chooseSplitIndex(t, e, n) {
11692
11681
  let s, r = 1 / 0, o = 1 / 0;
11693
11682
  for (let l = e; l <= n - e; l++) {
11694
- const a = fs(t, 0, l, this.toBBox), h = fs(t, l, n, this.toBBox), c = Cy(a, h), u = sl(a) + sl(h);
11683
+ const a = fs(t, 0, l, this.toBBox), h = fs(t, l, n, this.toBBox), c = wy(a, h), u = sl(a) + sl(h);
11695
11684
  c < r ? (r = c, s = l, o = u < o ? u : o) : c === r && u < o && (o = u, s = l);
11696
11685
  }
11697
11686
  return s || n - e;
11698
11687
  }
11699
11688
  // sorts node children by the best axis for split
11700
11689
  _chooseSplitAxis(t, e, n) {
11701
- const s = t.leaf ? this.compareMinX : xy, r = t.leaf ? this.compareMinY : Ey, o = this._allDistMargin(t, e, n, s), l = this._allDistMargin(t, e, n, r);
11690
+ const s = t.leaf ? this.compareMinX : yy, r = t.leaf ? this.compareMinY : xy, o = this._allDistMargin(t, e, n, s), l = this._allDistMargin(t, e, n, r);
11702
11691
  o < l && t.children.sort(s);
11703
11692
  }
11704
11693
  // total margin of all possible split distributions where each node is at least m full
@@ -11725,7 +11714,7 @@ let bf = class {
11725
11714
  t[e].children.length === 0 ? e > 0 ? (n = t[e - 1].children, n.splice(n.indexOf(t[e]), 1)) : this.clear() : yn(t[e], this.toBBox);
11726
11715
  }
11727
11716
  };
11728
- function yy(i, t, e) {
11717
+ function py(i, t, e) {
11729
11718
  if (!e) return t.indexOf(i);
11730
11719
  for (let n = 0; n < t.length; n++)
11731
11720
  if (e(i, t[n])) return n;
@@ -11745,10 +11734,10 @@ function fs(i, t, e, n, s) {
11745
11734
  function ds(i, t) {
11746
11735
  return i.minX = Math.min(i.minX, t.minX), i.minY = Math.min(i.minY, t.minY), i.maxX = Math.max(i.maxX, t.maxX), i.maxY = Math.max(i.maxY, t.maxY), i;
11747
11736
  }
11748
- function xy(i, t) {
11737
+ function yy(i, t) {
11749
11738
  return i.minX - t.minX;
11750
11739
  }
11751
- function Ey(i, t) {
11740
+ function xy(i, t) {
11752
11741
  return i.minY - t.minY;
11753
11742
  }
11754
11743
  function sl(i) {
@@ -11757,10 +11746,10 @@ function sl(i) {
11757
11746
  function Er(i) {
11758
11747
  return i.maxX - i.minX + (i.maxY - i.minY);
11759
11748
  }
11760
- function wy(i, t) {
11749
+ function Ey(i, t) {
11761
11750
  return (Math.max(t.maxX, i.maxX) - Math.min(t.minX, i.minX)) * (Math.max(t.maxY, i.maxY) - Math.min(t.minY, i.minY));
11762
11751
  }
11763
- function Cy(i, t) {
11752
+ function wy(i, t) {
11764
11753
  const e = Math.max(i.minX, t.minX), n = Math.max(i.minY, t.minY), s = Math.min(i.maxX, t.maxX), r = Math.min(i.maxY, t.maxY);
11765
11754
  return Math.max(0, s - e) * Math.max(0, r - n);
11766
11755
  }
@@ -11791,13 +11780,13 @@ function eh(i, t, e, n, s) {
11791
11780
  }
11792
11781
  const Ga = [NaN, NaN, NaN, 0];
11793
11782
  let ol;
11794
- function vy() {
11783
+ function Cy() {
11795
11784
  return ol || (ol = Nt(1, 1, void 0, {
11796
11785
  willReadFrequently: !0,
11797
11786
  desynchronized: !0
11798
11787
  })), ol;
11799
11788
  }
11800
- const Ry = /^rgba?\(\s*(\d+%?)\s+(\d+%?)\s+(\d+%?)(?:\s*\/\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i, Ty = /^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)(?:\s*,\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i, Sy = /^rgba?\(\s*(\d+%)\s*,\s*(\d+%)\s*,\s*(\d+%)(?:\s*,\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i, Iy = /^#([\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/i;
11789
+ const vy = /^rgba?\(\s*(\d+%?)\s+(\d+%?)\s+(\d+%?)(?:\s*\/\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i, Ry = /^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)(?:\s*,\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i, Ty = /^rgba?\(\s*(\d+%)\s*,\s*(\d+%)\s*,\s*(\d+%)(?:\s*,\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i, Sy = /^#([\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/i;
11801
11790
  function Cr(i, t) {
11802
11791
  return i.endsWith("%") ? Number(i.substring(0, i.length - 1)) / t : Number(i);
11803
11792
  }
@@ -11806,7 +11795,7 @@ function Is(i) {
11806
11795
  }
11807
11796
  function Af(i) {
11808
11797
  if (i.toLowerCase().startsWith("rgb")) {
11809
- const r = i.match(Ty) || i.match(Ry) || i.match(Sy);
11798
+ const r = i.match(Ry) || i.match(vy) || i.match(Ty);
11810
11799
  if (r) {
11811
11800
  const o = r[4], l = 100 / 255;
11812
11801
  return [
@@ -11819,7 +11808,7 @@ function Af(i) {
11819
11808
  Is(i);
11820
11809
  }
11821
11810
  if (i.startsWith("#")) {
11822
- if (Iy.test(i)) {
11811
+ if (Sy.test(i)) {
11823
11812
  const r = i.substring(1), o = r.length <= 4 ? 1 : 2, l = [0, 0, 0, 255];
11824
11813
  for (let a = 0, h = r.length; a < h; a += o) {
11825
11814
  let c = parseInt(r.substring(a, a + o), 16);
@@ -11829,7 +11818,7 @@ function Af(i) {
11829
11818
  }
11830
11819
  Is(i);
11831
11820
  }
11832
- const t = vy();
11821
+ const t = Cy();
11833
11822
  t.fillStyle = "#abcdef";
11834
11823
  let e = t.fillStyle;
11835
11824
  t.fillStyle = i, t.fillStyle === e && (t.fillStyle = "#fedcba", e = t.fillStyle, t.fillStyle = i, t.fillStyle === e && Is(i));
@@ -11840,12 +11829,12 @@ function Af(i) {
11840
11829
  const s = Array.from(t.getImageData(0, 0, 1, 1).data);
11841
11830
  return s[3] = po(s[3] / 255, 3), s;
11842
11831
  }
11843
- function by(i) {
11832
+ function Iy(i) {
11844
11833
  return typeof i == "string" ? i : za(i);
11845
11834
  }
11846
- const Ay = 1024, os = {};
11835
+ const by = 1024, os = {};
11847
11836
  let ll = 0;
11848
- function My(i) {
11837
+ function Ay(i) {
11849
11838
  if (i.length === 4)
11850
11839
  return i;
11851
11840
  const t = i.slice();
@@ -11872,7 +11861,7 @@ function ih(i) {
11872
11861
  i[3]
11873
11862
  ];
11874
11863
  }
11875
- function Ly(i) {
11864
+ function My(i) {
11876
11865
  const t = (i[0] + 16) / 116, e = i[1], n = i[2] * Math.PI / 180, s = cl(t), r = cl(t + e / 500 * Math.cos(n)), o = cl(t - e / 200 * Math.sin(n)), l = al(r * 3.021973625 - s * 1.617392459 - o * 0.404875592), a = al(r * -0.943766287 + s * 1.916279586 + o * 0.027607165), h = al(r * 0.069407491 - s * 0.22898585 + o * 1.159737864);
11877
11866
  return [
11878
11867
  Lt(l + 0.5 | 0, 0, 255),
@@ -11886,7 +11875,7 @@ function Wa(i) {
11886
11875
  return Ga;
11887
11876
  if (os.hasOwnProperty(i))
11888
11877
  return os[i];
11889
- if (ll >= Ay) {
11878
+ if (ll >= by) {
11890
11879
  let e = 0;
11891
11880
  for (const n in os)
11892
11881
  (e++ & 3) === 0 && (delete os[n], --ll);
@@ -11913,7 +11902,7 @@ function za(i) {
11913
11902
  function nh(i) {
11914
11903
  return i[0] > 0 && i[1] > 0;
11915
11904
  }
11916
- function Oy(i, t, e) {
11905
+ function Ly(i, t, e) {
11917
11906
  return e === void 0 && (e = [0, 0]), e[0] = i[0] * t + 0.5 | 0, e[1] = i[1] * t + 0.5 | 0, e;
11918
11907
  }
11919
11908
  function he(i, t) {
@@ -11927,13 +11916,13 @@ const ie = 1 << dn++, ht = 1 << dn++, le = 1 << dn++, Ae = 1 << dn++, hn = 1 <<
11927
11916
  [Ae]: "color",
11928
11917
  [hn]: "number[]",
11929
11918
  [gs]: "size"
11930
- }, Py = Object.keys(Xa).map(Number).sort(hi);
11931
- function Dy(i) {
11919
+ }, Oy = Object.keys(Xa).map(Number).sort(hi);
11920
+ function Py(i) {
11932
11921
  return i in Xa;
11933
11922
  }
11934
11923
  function _s(i) {
11935
11924
  const t = [];
11936
- for (const e of Py)
11925
+ for (const e of Oy)
11937
11926
  ms(i, e) && t.push(Xa[e]);
11938
11927
  return t.length === 0 ? "untyped" : t.length < 3 ? t.join(" or ") : t.slice(0, -1).join(", ") + ", or " + t[t.length - 1];
11939
11928
  }
@@ -11949,14 +11938,14 @@ class Xt {
11949
11938
  * @param {LiteralValue} value The literal value.
11950
11939
  */
11951
11940
  constructor(t, e) {
11952
- if (!Dy(t))
11941
+ if (!Py(t))
11953
11942
  throw new Error(
11954
11943
  `literal expressions must have a specific type, got ${_s(t)}`
11955
11944
  );
11956
11945
  this.type = t, this.value = e;
11957
11946
  }
11958
11947
  }
11959
- class Fy {
11948
+ class Dy {
11960
11949
  /**
11961
11950
  * @param {number} type The return type.
11962
11951
  * @param {string} operator The operator.
@@ -12013,7 +12002,7 @@ function Ut(i, t, e) {
12013
12002
  if (i.length === 0)
12014
12003
  throw new Error("empty expression");
12015
12004
  if (typeof i[0] == "string")
12016
- return Vy(i, t, e);
12005
+ return Uy(i, t, e);
12017
12006
  for (const n of i)
12018
12007
  if (typeof n != "number")
12019
12008
  throw new Error("expected an array of numbers");
@@ -12087,17 +12076,17 @@ const T = {
12087
12076
  Palette: "palette",
12088
12077
  ToString: "to-string",
12089
12078
  Has: "has"
12090
- }, ky = {
12079
+ }, Fy = {
12091
12080
  [T.Get]: et(rt(1, 1 / 0), sh),
12092
- [T.Var]: et(rt(1, 1), Ny),
12081
+ [T.Var]: et(rt(1, 1), ky),
12093
12082
  [T.Has]: et(rt(1, 1 / 0), sh),
12094
- [T.Id]: et(Gy, xn),
12083
+ [T.Id]: et(Ny, xn),
12095
12084
  [T.Concat]: et(
12096
12085
  rt(2, 1 / 0),
12097
12086
  pt(le)
12098
12087
  ),
12099
- [T.GeometryType]: et(Wy, xn),
12100
- [T.LineMetric]: et(zy, xn),
12088
+ [T.GeometryType]: et(Gy, xn),
12089
+ [T.LineMetric]: et(Wy, xn),
12101
12090
  [T.Resolution]: et(fl, xn),
12102
12091
  [T.Zoom]: et(fl, xn),
12103
12092
  [T.Time]: et(fl, xn),
@@ -12204,7 +12193,7 @@ const T = {
12204
12193
  [T.Match]: et(
12205
12194
  rt(4, 1 / 0),
12206
12195
  oh,
12207
- Ky
12196
+ Xy
12208
12197
  ),
12209
12198
  [T.Between]: et(
12210
12199
  rt(3, 3),
@@ -12213,14 +12202,14 @@ const T = {
12213
12202
  [T.Interpolate]: et(
12214
12203
  rt(6, 1 / 0),
12215
12204
  oh,
12216
- Yy
12205
+ Ky
12217
12206
  ),
12218
12207
  [T.Case]: et(
12219
12208
  rt(3, 1 / 0),
12220
- Xy,
12221
- jy
12209
+ zy,
12210
+ Yy
12222
12211
  ),
12223
- [T.In]: et(rt(2, 2), By),
12212
+ [T.In]: et(rt(2, 2), jy),
12224
12213
  [T.Number]: et(
12225
12214
  rt(1, 1 / 0),
12226
12215
  pt(vr)
@@ -12243,7 +12232,7 @@ const T = {
12243
12232
  ),
12244
12233
  [T.Palette]: et(
12245
12234
  rt(2, 2),
12246
- Uy
12235
+ By
12247
12236
  ),
12248
12237
  [T.ToString]: et(
12249
12238
  rt(1, 1),
@@ -12272,19 +12261,19 @@ function sh(i, t, e) {
12272
12261
  }
12273
12262
  return s;
12274
12263
  }
12275
- function Ny(i, t, e) {
12264
+ function ky(i, t, e) {
12276
12265
  const n = i[1];
12277
12266
  if (typeof n != "string")
12278
12267
  throw new Error("expected a string argument for var operation");
12279
12268
  return e.variables.add(n), [new Xt(le, n)];
12280
12269
  }
12281
- function Gy(i, t, e) {
12270
+ function Ny(i, t, e) {
12282
12271
  e.featureId = !0;
12283
12272
  }
12284
- function Wy(i, t, e) {
12273
+ function Gy(i, t, e) {
12285
12274
  e.geometryType = !0;
12286
12275
  }
12287
- function zy(i, t, e) {
12276
+ function Wy(i, t, e) {
12288
12277
  e.mCoordinate = !0;
12289
12278
  }
12290
12279
  function fl(i, t, e) {
@@ -12332,7 +12321,7 @@ function pt(i) {
12332
12321
  return r;
12333
12322
  };
12334
12323
  }
12335
- function Xy(i, t, e) {
12324
+ function zy(i, t, e) {
12336
12325
  const n = i[0], s = i.length - 1;
12337
12326
  if (s % 2 === 0)
12338
12327
  throw new Error(
@@ -12346,7 +12335,7 @@ function oh(i, t, e) {
12346
12335
  `expected an even number of arguments for operation ${n}, got ${s} instead`
12347
12336
  );
12348
12337
  }
12349
- function Ky(i, t, e) {
12338
+ function Xy(i, t, e) {
12350
12339
  const n = i.length - 1, s = le | ht | ie, r = Ut(i[1], s, e), o = Ut(i[i.length - 1], t, e), l = new Array(n - 2);
12351
12340
  for (let a = 0; a < n - 2; a += 2) {
12352
12341
  try {
@@ -12368,7 +12357,7 @@ function Ky(i, t, e) {
12368
12357
  }
12369
12358
  return [r, ...l, o];
12370
12359
  }
12371
- function Yy(i, t, e) {
12360
+ function Ky(i, t, e) {
12372
12361
  const n = i[1];
12373
12362
  let s;
12374
12363
  switch (n[0]) {
@@ -12418,7 +12407,7 @@ function Yy(i, t, e) {
12418
12407
  }
12419
12408
  return [r, o, ...l];
12420
12409
  }
12421
- function jy(i, t, e) {
12410
+ function Yy(i, t, e) {
12422
12411
  const n = Ut(i[i.length - 1], t, e), s = new Array(i.length - 1);
12423
12412
  for (let r = 0; r < s.length - 1; r += 2) {
12424
12413
  try {
@@ -12440,7 +12429,7 @@ function jy(i, t, e) {
12440
12429
  }
12441
12430
  return s[s.length - 1] = n, s;
12442
12431
  }
12443
- function By(i, t, e) {
12432
+ function jy(i, t, e) {
12444
12433
  let n = i[2];
12445
12434
  if (!Array.isArray(n))
12446
12435
  throw new Error(
@@ -12469,7 +12458,7 @@ function By(i, t, e) {
12469
12458
  }
12470
12459
  return [Ut(i[1], s, e), ...r];
12471
12460
  }
12472
- function Uy(i, t, e) {
12461
+ function By(i, t, e) {
12473
12462
  let n;
12474
12463
  try {
12475
12464
  n = Ut(i[1], ht, e);
@@ -12513,11 +12502,11 @@ function et(...i) {
12513
12502
  r = l;
12514
12503
  }
12515
12504
  }
12516
- return new Fy(e, s, ...r);
12505
+ return new Dy(e, s, ...r);
12517
12506
  };
12518
12507
  }
12519
- function Vy(i, t, e) {
12520
- const n = i[0], s = ky[n];
12508
+ function Uy(i, t, e) {
12509
+ const n = i[0], s = Fy[n];
12521
12510
  if (!s)
12522
12511
  throw new Error(`unknown operator: ${n}`);
12523
12512
  return s(i, t, e);
@@ -12579,11 +12568,11 @@ function De(i, t) {
12579
12568
  case T.Number:
12580
12569
  case T.String:
12581
12570
  case T.Coalesce:
12582
- return Zy(i);
12571
+ return Vy(i);
12583
12572
  case T.Get:
12584
12573
  case T.Var:
12585
12574
  case T.Has:
12586
- return Hy(i);
12575
+ return Zy(i);
12587
12576
  case T.Id:
12588
12577
  return (n) => n.featureId;
12589
12578
  case T.GeometryType:
@@ -12599,14 +12588,14 @@ function De(i, t) {
12599
12588
  case T.Between:
12600
12589
  case T.In:
12601
12590
  case T.Not:
12602
- return qy(i);
12591
+ return $y(i);
12603
12592
  case T.Equal:
12604
12593
  case T.NotEqual:
12605
12594
  case T.LessThan:
12606
12595
  case T.LessThanOrEqualTo:
12607
12596
  case T.GreaterThan:
12608
12597
  case T.GreaterThanOrEqualTo:
12609
- return $y(i);
12598
+ return Hy(i);
12610
12599
  case T.Multiply:
12611
12600
  case T.Divide:
12612
12601
  case T.Add:
@@ -12622,20 +12611,20 @@ function De(i, t) {
12622
12611
  case T.Cos:
12623
12612
  case T.Atan:
12624
12613
  case T.Sqrt:
12625
- return Jy(i);
12614
+ return qy(i);
12626
12615
  case T.Case:
12627
- return Qy(i);
12616
+ return Jy(i);
12628
12617
  case T.Match:
12629
- return t0(i);
12618
+ return Qy(i);
12630
12619
  case T.Interpolate:
12631
- return e0(i);
12620
+ return t0(i);
12632
12621
  case T.ToString:
12633
- return i0(i);
12622
+ return e0(i);
12634
12623
  default:
12635
12624
  throw new Error(`Unsupported operator ${e}`);
12636
12625
  }
12637
12626
  }
12638
- function Zy(i, t) {
12627
+ function Vy(i, t) {
12639
12628
  const e = i.operator, n = i.args.length, s = new Array(n);
12640
12629
  for (let r = 0; r < n; ++r)
12641
12630
  s[r] = De(i.args[r]);
@@ -12663,7 +12652,7 @@ function Zy(i, t) {
12663
12652
  throw new Error(`Unsupported assertion operator ${e}`);
12664
12653
  }
12665
12654
  }
12666
- function Hy(i, t) {
12655
+ function Zy(i, t) {
12667
12656
  const n = (
12668
12657
  /** @type {string} */
12669
12658
  /** @type {LiteralExpression} */
@@ -12708,7 +12697,7 @@ function Hy(i, t) {
12708
12697
  throw new Error(`Unsupported accessor operator ${i.operator}`);
12709
12698
  }
12710
12699
  }
12711
- function $y(i, t) {
12700
+ function Hy(i, t) {
12712
12701
  const e = i.operator, n = De(i.args[0]), s = De(i.args[1]);
12713
12702
  switch (e) {
12714
12703
  case T.Equal:
@@ -12727,7 +12716,7 @@ function $y(i, t) {
12727
12716
  throw new Error(`Unsupported comparison operator ${e}`);
12728
12717
  }
12729
12718
  }
12730
- function qy(i, t) {
12719
+ function $y(i, t) {
12731
12720
  const e = i.operator, n = i.args.length, s = new Array(n);
12732
12721
  for (let r = 0; r < n; ++r)
12733
12722
  s[r] = De(i.args[r]);
@@ -12765,7 +12754,7 @@ function qy(i, t) {
12765
12754
  throw new Error(`Unsupported logical operator ${e}`);
12766
12755
  }
12767
12756
  }
12768
- function Jy(i, t) {
12757
+ function qy(i, t) {
12769
12758
  const e = i.operator, n = i.args.length, s = new Array(n);
12770
12759
  for (let r = 0; r < n; ++r)
12771
12760
  s[r] = De(i.args[r]);
@@ -12820,7 +12809,7 @@ function Jy(i, t) {
12820
12809
  throw new Error(`Unsupported numeric operator ${e}`);
12821
12810
  }
12822
12811
  }
12823
- function Qy(i, t) {
12812
+ function Jy(i, t) {
12824
12813
  const e = i.args.length, n = new Array(e);
12825
12814
  for (let s = 0; s < e; ++s)
12826
12815
  n[s] = De(i.args[s]);
@@ -12831,7 +12820,7 @@ function Qy(i, t) {
12831
12820
  return n[e - 1](s);
12832
12821
  };
12833
12822
  }
12834
- function t0(i, t) {
12823
+ function Qy(i, t) {
12835
12824
  const e = i.args.length, n = new Array(e);
12836
12825
  for (let s = 0; s < e; ++s)
12837
12826
  n[s] = De(i.args[s]);
@@ -12843,7 +12832,7 @@ function t0(i, t) {
12843
12832
  return n[e - 1](s);
12844
12833
  };
12845
12834
  }
12846
- function e0(i, t) {
12835
+ function t0(i, t) {
12847
12836
  const e = i.args.length, n = new Array(e);
12848
12837
  for (let s = 0; s < e; ++s)
12849
12838
  n[s] = De(i.args[s]);
@@ -12854,8 +12843,8 @@ function e0(i, t) {
12854
12843
  const c = n[h](s);
12855
12844
  let u = n[h + 1](s);
12856
12845
  const f = Array.isArray(u);
12857
- if (f && (u = My(u)), c >= o)
12858
- return h === 2 ? u : f ? n0(
12846
+ if (f && (u = Ay(u)), c >= o)
12847
+ return h === 2 ? u : f ? i0(
12859
12848
  r,
12860
12849
  o,
12861
12850
  l,
@@ -12875,7 +12864,7 @@ function e0(i, t) {
12875
12864
  return a;
12876
12865
  };
12877
12866
  }
12878
- function i0(i, t) {
12867
+ function e0(i, t) {
12879
12868
  const e = i.operator, n = i.args.length, s = new Array(n);
12880
12869
  for (let r = 0; r < n; ++r)
12881
12870
  s[r] = De(i.args[r]);
@@ -12893,7 +12882,7 @@ function ps(i, t, e, n, s, r) {
12893
12882
  const l = t - e, a = i === 1 ? l / o : (Math.pow(i, l) - 1) / (Math.pow(i, o) - 1);
12894
12883
  return n + a * (r - n);
12895
12884
  }
12896
- function n0(i, t, e, n, s, r) {
12885
+ function i0(i, t, e, n, s, r) {
12897
12886
  if (s - e === 0)
12898
12887
  return n;
12899
12888
  const l = ih(n), a = ih(r);
@@ -12905,7 +12894,7 @@ function n0(i, t, e, n, s, r) {
12905
12894
  l[2] + ps(i, t, e, 0, s, h),
12906
12895
  ps(i, t, e, n[3], s, r[3])
12907
12896
  ];
12908
- return Ly(c);
12897
+ return My(c);
12909
12898
  }
12910
12899
  const nt = {
12911
12900
  IDLE: 0,
@@ -12913,7 +12902,7 @@ const nt = {
12913
12902
  LOADED: 2,
12914
12903
  ERROR: 3
12915
12904
  };
12916
- function s0(i, t, e) {
12905
+ function n0(i, t, e) {
12917
12906
  const n = (
12918
12907
  /** @type {HTMLImageElement} */
12919
12908
  i
@@ -12932,7 +12921,7 @@ function s0(i, t, e) {
12932
12921
  s = !1, l.forEach(Mt);
12933
12922
  };
12934
12923
  }
12935
- function r0(i, t) {
12924
+ function s0(i, t) {
12936
12925
  return new Promise((e, n) => {
12937
12926
  function s() {
12938
12927
  o(), e(i);
@@ -12946,14 +12935,14 @@ function r0(i, t) {
12946
12935
  i.addEventListener("load", s), i.addEventListener("error", r);
12947
12936
  });
12948
12937
  }
12949
- function o0(i, t) {
12938
+ function r0(i, t) {
12950
12939
  return t && (i.src = t), i.src && Yu ? new Promise(
12951
12940
  (e, n) => i.decode().then(() => e(i)).catch(
12952
12941
  (s) => i.complete && i.width ? e(i) : n(s)
12953
12942
  )
12954
- ) : r0(i);
12943
+ ) : s0(i);
12955
12944
  }
12956
- class l0 {
12945
+ class o0 {
12957
12946
  constructor() {
12958
12947
  this.cache_ = {}, this.patternCache_ = {}, this.cacheSize_ = 0, this.maxCacheSize_ = 1024;
12959
12948
  }
@@ -13032,7 +13021,7 @@ function dl(i, t) {
13032
13021
  const e = t ? cn(t) : "null";
13033
13022
  return i + ":" + e;
13034
13023
  }
13035
- const ve = new l0();
13024
+ const ve = new o0();
13036
13025
  let ls = null;
13037
13026
  class Pf extends mo {
13038
13027
  /**
@@ -13148,7 +13137,7 @@ class Pf extends mo {
13148
13137
  } catch {
13149
13138
  this.handleImageError_();
13150
13139
  }
13151
- this.image_ instanceof HTMLImageElement && o0(this.image_, this.src_).then((t) => {
13140
+ this.image_ instanceof HTMLImageElement && r0(this.image_, this.src_).then((t) => {
13152
13141
  this.image_ = t, this.handleImageLoad_();
13153
13142
  }).catch(this.handleImageError_.bind(this));
13154
13143
  }
@@ -13164,7 +13153,7 @@ class Pf extends mo {
13164
13153
  Math.ceil(e.width * t),
13165
13154
  Math.ceil(e.height * t)
13166
13155
  ), s = n.canvas;
13167
- n.scale(t, t), n.drawImage(e, 0, 0), n.globalCompositeOperation = "multiply", n.fillStyle = by(this.color_), n.fillRect(0, 0, s.width / t, s.height / t), n.globalCompositeOperation = "destination-in", n.drawImage(e, 0, 0), this.canvas_[t] = s;
13156
+ n.scale(t, t), n.drawImage(e, 0, 0), n.globalCompositeOperation = "multiply", n.fillStyle = Iy(this.color_), n.fillRect(0, 0, s.width / t, s.height / t), n.globalCompositeOperation = "destination-in", n.drawImage(e, 0, 0), this.canvas_[t] = s;
13168
13157
  }
13169
13158
  /**
13170
13159
  * @return {Promise<void>} Promise that resolves when the image is loaded.
@@ -13193,9 +13182,9 @@ function bs(i, t, e, n, s, r) {
13193
13182
  ), ve.set(t, s, o, r)), r && o && !ve.getPattern(t, s) && ve.set(t, s, o, r), o;
13194
13183
  }
13195
13184
  function Be(i) {
13196
- return i ? Array.isArray(i) ? za(i) : typeof i == "object" && "src" in i ? a0(i) : i : null;
13185
+ return i ? Array.isArray(i) ? za(i) : typeof i == "object" && "src" in i ? l0(i) : i : null;
13197
13186
  }
13198
- function a0(i) {
13187
+ function l0(i) {
13199
13188
  if (!i.offset || !i.size)
13200
13189
  return ve.getPattern(i.src, i.color);
13201
13190
  const t = i.src + ":" + i.offset, e = ve.getPattern(t, i.color);
@@ -13227,9 +13216,9 @@ function a0(i) {
13227
13216
  !0
13228
13217
  ), ve.getPattern(t, i.color);
13229
13218
  }
13230
- const Df = "10px sans-serif", ae = "#000", Bn = "round", ui = [], fi = 0, Un = "round", Ks = 10, c0 = 0, Ve = "#000", Ys = "center", Vr = "middle", en = [0, 0, 0, 0], js = 1, Sn = new $e();
13219
+ const Df = "10px sans-serif", ae = "#000", Bn = "round", ui = [], fi = 0, Un = "round", Ks = 10, a0 = 0, Ve = "#000", Ys = "center", Vr = "middle", en = [0, 0, 0, 0], js = 1, Sn = new $e();
13231
13220
  let as = null, lh;
13232
- const Vl = {}, h0 = /* @__PURE__ */ new Set([
13221
+ const Vl = {}, c0 = /* @__PURE__ */ new Set([
13233
13222
  "serif",
13234
13223
  "sans-serif",
13235
13224
  "monospace",
@@ -13244,10 +13233,10 @@ const Vl = {}, h0 = /* @__PURE__ */ new Set([
13244
13233
  "math",
13245
13234
  "fangsong"
13246
13235
  ]);
13247
- function u0(i, t, e) {
13236
+ function h0(i, t, e) {
13248
13237
  return `${i} ${t} 16px "${e}"`;
13249
13238
  }
13250
- const f0 = /* @__PURE__ */ (function() {
13239
+ const u0 = /* @__PURE__ */ (function() {
13251
13240
  let t, e;
13252
13241
  async function n(r) {
13253
13242
  await e.ready;
@@ -13287,14 +13276,14 @@ const f0 = /* @__PURE__ */ (function() {
13287
13276
  const l = o.families;
13288
13277
  let a = !1;
13289
13278
  for (const h of l) {
13290
- if (h0.has(h))
13279
+ if (c0.has(h))
13291
13280
  continue;
13292
- const c = u0(o.style, o.weight, h);
13281
+ const c = h0(o.style, o.weight, h);
13293
13282
  Sn.get(c) === void 0 && (Sn.set(c, 0, !0), a = !0);
13294
13283
  }
13295
13284
  a && (clearTimeout(t), t = setTimeout(s, 100));
13296
13285
  };
13297
- })(), d0 = /* @__PURE__ */ (function() {
13286
+ })(), f0 = /* @__PURE__ */ (function() {
13298
13287
  let i;
13299
13288
  return function(t) {
13300
13289
  let e = Vl[t];
@@ -13322,7 +13311,7 @@ function ah(i, t, e) {
13322
13311
  `).reduce((s, r) => Math.max(s, kf(i, r)), 0);
13323
13312
  return e[t] = n, n;
13324
13313
  }
13325
- function g0(i, t) {
13314
+ function d0(i, t) {
13326
13315
  const e = [], n = [], s = [];
13327
13316
  let r = 0, o = 0, l = 0, a = 0;
13328
13317
  for (let h = 0, c = t.length; h <= c; h += 2) {
@@ -13334,14 +13323,14 @@ function g0(i, t) {
13334
13323
  }
13335
13324
  const f = t[h + 1] || i.font, d = kf(f, u);
13336
13325
  e.push(d), o += d;
13337
- const g = d0(f);
13326
+ const g = f0(f);
13338
13327
  n.push(g), a = Math.max(a, g);
13339
13328
  }
13340
13329
  return { width: r, height: l, widths: e, heights: n, lineWidths: s };
13341
13330
  }
13342
- function _0(i, t, e, n, s, r, o, l, a, h, c) {
13331
+ function g0(i, t, e, n, s, r, o, l, a, h, c) {
13343
13332
  i.save(), e !== 1 && (i.globalAlpha === void 0 ? i.globalAlpha = (u) => u.globalAlpha *= e : i.globalAlpha *= e), t && i.transform.apply(i, t), /** @type {*} */
13344
- n.contextInstructions ? (i.translate(a, h), i.scale(c[0], c[1]), m0(
13333
+ n.contextInstructions ? (i.translate(a, h), i.scale(c[0], c[1]), _0(
13345
13334
  /** @type {Label} */
13346
13335
  n,
13347
13336
  i
@@ -13369,7 +13358,7 @@ function _0(i, t, e, n, s, r, o, l, a, h, c) {
13369
13358
  l * c[1]
13370
13359
  ), i.restore();
13371
13360
  }
13372
- function m0(i, t) {
13361
+ function _0(i, t) {
13373
13362
  const e = i.contextInstructions;
13374
13363
  for (let n = 0, s = e.length; n < s; n += 2)
13375
13364
  Array.isArray(e[n + 1]) ? t[e[n]].apply(
@@ -14723,7 +14712,7 @@ class di {
14723
14712
  this.zIndex_ = t;
14724
14713
  }
14725
14714
  }
14726
- function p0(i) {
14715
+ function m0(i) {
14727
14716
  let t;
14728
14717
  if (typeof i == "function")
14729
14718
  t = i;
@@ -14768,13 +14757,13 @@ function Nf(i, t) {
14768
14757
  function hh(i) {
14769
14758
  return i.getGeometry();
14770
14759
  }
14771
- const y0 = "#333";
14760
+ const p0 = "#333";
14772
14761
  class Mo {
14773
14762
  /**
14774
14763
  * @param {Options} [options] Options.
14775
14764
  */
14776
14765
  constructor(t) {
14777
- t = t || {}, this.font_ = t.font, this.rotation_ = t.rotation, this.rotateWithView_ = t.rotateWithView, this.keepUpright_ = t.keepUpright, this.scale_ = t.scale, this.scaleArray_ = he(t.scale !== void 0 ? t.scale : 1), this.text_ = t.text, this.textAlign_ = t.textAlign, this.justify_ = t.justify, this.repeat_ = t.repeat, this.textBaseline_ = t.textBaseline, this.fill_ = t.fill !== void 0 ? t.fill : new Xi({ color: y0 }), this.maxAngle_ = t.maxAngle !== void 0 ? t.maxAngle : Math.PI / 4, this.placement_ = t.placement !== void 0 ? t.placement : "point", this.overflow_ = !!t.overflow, this.stroke_ = t.stroke !== void 0 ? t.stroke : null, this.offsetX_ = t.offsetX !== void 0 ? t.offsetX : 0, this.offsetY_ = t.offsetY !== void 0 ? t.offsetY : 0, this.backgroundFill_ = t.backgroundFill ? t.backgroundFill : null, this.backgroundStroke_ = t.backgroundStroke ? t.backgroundStroke : null, this.padding_ = t.padding === void 0 ? null : t.padding, this.declutterMode_ = t.declutterMode;
14766
+ t = t || {}, this.font_ = t.font, this.rotation_ = t.rotation, this.rotateWithView_ = t.rotateWithView, this.keepUpright_ = t.keepUpright, this.scale_ = t.scale, this.scaleArray_ = he(t.scale !== void 0 ? t.scale : 1), this.text_ = t.text, this.textAlign_ = t.textAlign, this.justify_ = t.justify, this.repeat_ = t.repeat, this.textBaseline_ = t.textBaseline, this.fill_ = t.fill !== void 0 ? t.fill : new Xi({ color: p0 }), this.maxAngle_ = t.maxAngle !== void 0 ? t.maxAngle : Math.PI / 4, this.placement_ = t.placement !== void 0 ? t.placement : "point", this.overflow_ = !!t.overflow, this.stroke_ = t.stroke !== void 0 ? t.stroke : null, this.offsetX_ = t.offsetX !== void 0 ? t.offsetX : 0, this.offsetY_ = t.offsetY !== void 0 ? t.offsetY : 0, this.backgroundFill_ = t.backgroundFill ? t.backgroundFill : null, this.backgroundStroke_ = t.backgroundStroke ? t.backgroundStroke : null, this.padding_ = t.padding === void 0 ? null : t.padding, this.declutterMode_ = t.declutterMode;
14778
14767
  }
14779
14768
  /**
14780
14769
  * Clones the style.
@@ -15162,11 +15151,11 @@ class Mo {
15162
15151
  this.padding_ = t;
15163
15152
  }
15164
15153
  }
15165
- function x0(i) {
15154
+ function y0(i) {
15166
15155
  return !0;
15167
15156
  }
15168
- function E0(i) {
15169
- const t = Mf(), e = w0(i, t), n = Of();
15157
+ function x0(i) {
15158
+ const t = Mf(), e = E0(i, t), n = Of();
15170
15159
  return function(s, r) {
15171
15160
  if (n.properties = s.getPropertiesInternal(), n.resolution = r, t.featureId) {
15172
15161
  const o = s.getId();
@@ -15195,10 +15184,10 @@ function uh(i) {
15195
15184
  return r.length = a, r;
15196
15185
  };
15197
15186
  }
15198
- function w0(i, t) {
15187
+ function E0(i, t) {
15199
15188
  const e = i.length, n = new Array(e);
15200
15189
  for (let s = 0; s < e; ++s) {
15201
- const r = i[s], o = "filter" in r ? He(r.filter, ie, t) : x0;
15190
+ const r = i[s], o = "filter" in r ? He(r.filter, ie, t) : y0;
15202
15191
  let l;
15203
15192
  if (Array.isArray(r.style)) {
15204
15193
  const a = r.style.length;
@@ -15226,7 +15215,7 @@ function w0(i, t) {
15226
15215
  };
15227
15216
  }
15228
15217
  function Zl(i, t) {
15229
- const e = Bs(i, "", t), n = Us(i, "", t), s = C0(i, t), r = v0(i, t), o = Bt(i, "z-index", t);
15218
+ const e = Bs(i, "", t), n = Us(i, "", t), s = w0(i, t), r = C0(i, t), o = Bt(i, "z-index", t);
15230
15219
  if (!e && !n && !s && !r && !Kn(i))
15231
15220
  throw new Error(
15232
15221
  "No fill, stroke, point, or text symbolizer properties in style: " + JSON.stringify(i)
@@ -15256,7 +15245,7 @@ function Zl(i, t) {
15256
15245
  function Bs(i, t, e) {
15257
15246
  let n;
15258
15247
  if (t + "fill-pattern-src" in i)
15259
- n = I0(i, t + "fill-", e);
15248
+ n = S0(i, t + "fill-", e);
15260
15249
  else {
15261
15250
  if (i[t + "fill-color"] === "none")
15262
15251
  return (r) => null;
@@ -15333,7 +15322,7 @@ function Us(i, t, e) {
15333
15322
  return l && u.setLineDash(l(f)), a && u.setLineDashOffset(a(f)), h && u.setMiterLimit(h(f)), c && u.setOffset(c(f)), u;
15334
15323
  };
15335
15324
  }
15336
- function C0(i, t) {
15325
+ function w0(i, t) {
15337
15326
  const e = "text-", n = ai(i, e + "value", t);
15338
15327
  if (!n)
15339
15328
  return null;
@@ -15425,10 +15414,10 @@ function C0(i, t) {
15425
15414
  return S && M.setPadding(S(A)), v && M.setKeepUpright(v(A)), M;
15426
15415
  };
15427
15416
  }
15428
- function v0(i, t) {
15429
- return "icon-src" in i ? R0(i, t) : "shape-points" in i ? T0(i, t) : "circle-radius" in i ? S0(i, t) : null;
15417
+ function C0(i, t) {
15418
+ return "icon-src" in i ? v0(i, t) : "shape-points" in i ? R0(i, t) : "circle-radius" in i ? T0(i, t) : null;
15430
15419
  }
15431
- function R0(i, t) {
15420
+ function v0(i, t) {
15432
15421
  const e = "icon-", n = e + "src", s = Wf(i[n], n), r = Zr(
15433
15422
  i,
15434
15423
  e + "anchor",
@@ -15458,7 +15447,7 @@ function R0(i, t) {
15458
15447
  ), g = wi(i, e + "color");
15459
15448
  let m, _ = null;
15460
15449
  g !== void 0 && (Array.isArray(g) && g.length > 0 && typeof g[0] == "string" ? _ = Lo(i, e + "color", t) : m = zf(g, e + "color"));
15461
- const x = A0(i, e + "cross-origin"), E = M0(i, e + "offset"), C = dh(i, e + "offset-origin"), p = Hl(i, e + "width"), v = Hl(i, e + "height"), S = b0(i, e + "size"), N = Po(
15450
+ const x = b0(i, e + "cross-origin"), E = A0(i, e + "offset"), C = dh(i, e + "offset-origin"), p = Hl(i, e + "width"), v = Hl(i, e + "height"), S = I0(i, e + "size"), N = Po(
15462
15451
  i,
15463
15452
  e + "declutter-mode"
15464
15453
  ), M = {
@@ -15487,7 +15476,7 @@ function R0(i, t) {
15487
15476
  return l && A.setOpacity(l(D)), a && A.setDisplacement(a(D)), h && A.setRotation(h(D)), c && A.setRotateWithView(c(D)), o && A.setScale(o(D)), r && A.setAnchor(r(D)), A;
15488
15477
  };
15489
15478
  }
15490
- function T0(i, t) {
15479
+ function R0(i, t) {
15491
15480
  const e = "shape-", n = e + "points", s = e + "radius", r = Ka(i[n], n);
15492
15481
  if (!(s in i))
15493
15482
  throw new Error(`Expected a number for ${s}`);
@@ -15517,7 +15506,7 @@ function T0(i, t) {
15517
15506
  return o && C.setRadius(o(p)), h && C.setRadius2(h(p)), u && C.setFill(u(p)), f && C.setStroke(f(p)), g && C.setDisplacement(g(p)), m && C.setRotation(m(p)), _ && C.setRotateWithView(_(p)), d && C.setScale(d(p)), C;
15518
15507
  };
15519
15508
  }
15520
- function S0(i, t) {
15509
+ function T0(i, t) {
15521
15510
  const e = "circle-", n = Bs(i, e, t), s = Us(i, e, t), r = Bt(i, e + "radius", t), o = Oo(i, e + "scale", t), l = Zr(
15522
15511
  i,
15523
15512
  e + "displacement",
@@ -15566,7 +15555,7 @@ function ai(i, t, e) {
15566
15555
  return Wf(s(r), t);
15567
15556
  };
15568
15557
  }
15569
- function I0(i, t, e) {
15558
+ function S0(i, t, e) {
15570
15559
  const n = ai(
15571
15560
  i,
15572
15561
  t + "pattern-src",
@@ -15670,7 +15659,7 @@ function Oo(i, t, e) {
15670
15659
  e
15671
15660
  );
15672
15661
  return function(r) {
15673
- return L0(s(r), t);
15662
+ return M0(s(r), t);
15674
15663
  };
15675
15664
  }
15676
15665
  function Hl(i, t) {
@@ -15681,7 +15670,7 @@ function Hl(i, t) {
15681
15670
  return e;
15682
15671
  }
15683
15672
  }
15684
- function b0(i, t) {
15673
+ function I0(i, t) {
15685
15674
  const e = i[t];
15686
15675
  if (e !== void 0) {
15687
15676
  if (typeof e == "number")
@@ -15693,7 +15682,7 @@ function b0(i, t) {
15693
15682
  return e;
15694
15683
  }
15695
15684
  }
15696
- function A0(i, t) {
15685
+ function b0(i, t) {
15697
15686
  const e = i[t];
15698
15687
  if (e !== void 0) {
15699
15688
  if (typeof e != "string")
@@ -15719,7 +15708,7 @@ function gh(i, t) {
15719
15708
  return e;
15720
15709
  }
15721
15710
  }
15722
- function M0(i, t) {
15711
+ function A0(i, t) {
15723
15712
  const e = i[t];
15724
15713
  if (e !== void 0)
15725
15714
  return lr(e, t);
@@ -15767,7 +15756,7 @@ function Xf(i, t) {
15767
15756
  throw new Error(`Expected an array of two numbers for ${t}`);
15768
15757
  return e;
15769
15758
  }
15770
- function L0(i, t) {
15759
+ function M0(i, t) {
15771
15760
  return typeof i == "number" ? i : Xf(i, t);
15772
15761
  }
15773
15762
  const _h = {
@@ -15893,8 +15882,8 @@ class Kf extends Io {
15893
15882
  */
15894
15883
  setStyle(t) {
15895
15884
  this.style_ = t === void 0 ? Nf : t;
15896
- const e = O0(t);
15897
- this.styleFunction_ = t === null ? void 0 : p0(e), this.changed();
15885
+ const e = L0(t);
15886
+ this.styleFunction_ = t === null ? void 0 : m0(e), this.changed();
15898
15887
  }
15899
15888
  /**
15900
15889
  * @param {boolean|string|number} declutter Declutter images and text.
@@ -15904,7 +15893,7 @@ class Kf extends Io {
15904
15893
  this.declutter_ = t ? String(t) : void 0, this.changed();
15905
15894
  }
15906
15895
  }
15907
- function O0(i) {
15896
+ function L0(i) {
15908
15897
  if (i === void 0)
15909
15898
  return Nf;
15910
15899
  if (!i)
@@ -15934,7 +15923,7 @@ function O0(i) {
15934
15923
  throw new Error("Expected a list of rules with a style property");
15935
15924
  s[r] = o;
15936
15925
  }
15937
- return E0(s);
15926
+ return x0(s);
15938
15927
  }
15939
15928
  return uh(
15940
15929
  /** @type {Array<import("../style/flat.js").FlatStyle>} */
@@ -15953,7 +15942,7 @@ class Yf extends Ei {
15953
15942
  super(t), this.inversePixelTransform = e, this.frameState = n, this.context = s;
15954
15943
  }
15955
15944
  }
15956
- class P0 extends go {
15945
+ class O0 extends go {
15957
15946
  /**
15958
15947
  * @param {import("../Map.js").default} map Map.
15959
15948
  */
@@ -16086,13 +16075,13 @@ class P0 extends go {
16086
16075
  * @protected
16087
16076
  */
16088
16077
  scheduleExpireIconCache(t) {
16089
- ve.canExpireCache() && t.postRenderFunctions.push(D0);
16078
+ ve.canExpireCache() && t.postRenderFunctions.push(P0);
16090
16079
  }
16091
16080
  }
16092
- function D0(i, t) {
16081
+ function P0(i, t) {
16093
16082
  ve.expire();
16094
16083
  }
16095
- class F0 extends P0 {
16084
+ class D0 extends O0 {
16096
16085
  /**
16097
16086
  * @param {import("../Map.js").default} map Map.
16098
16087
  */
@@ -16158,7 +16147,7 @@ class F0 extends P0 {
16158
16147
  const g = f.render(t, o);
16159
16148
  g && (g !== o && (this.children_.push(g), o = g), r.push(u));
16160
16149
  }
16161
- this.declutter(t, r), Yp(this.element_, this.children_);
16150
+ this.declutter(t, r), Kp(this.element_, this.children_);
16162
16151
  const a = this.getMap().getTargetElement();
16163
16152
  if (Fi(a)) {
16164
16153
  const h = a.getContext("2d");
@@ -16218,16 +16207,16 @@ function Bf(i, t) {
16218
16207
  Bf(e[n], t);
16219
16208
  }
16220
16209
  }
16221
- let k0 = class extends $e {
16210
+ let F0 = class extends $e {
16222
16211
  /**
16223
16212
  * @param {MapOptions} [options] Map options.
16224
16213
  */
16225
16214
  constructor(t) {
16226
16215
  super(), t = t || {}, this.on, this.once, this.un;
16227
- const e = N0(t);
16228
- this.renderComplete_ = !1, this.loaded_ = !0, this.boundHandleBrowserEvent_ = this.handleBrowserEvent.bind(this), this.maxTilesLoading_ = t.maxTilesLoading !== void 0 ? t.maxTilesLoading : 16, this.pixelRatio_ = t.pixelRatio !== void 0 ? t.pixelRatio : cm, this.postRenderTimeoutHandle_, this.animationDelayKey_, this.animationDelay_ = this.animationDelay_.bind(this), this.coordinateToPixelTransform_ = Oe(), this.pixelToCoordinateTransform_ = Oe(), this.frameIndex_ = 0, this.frameState_ = null, this.previousExtent_ = null, this.viewPropertyListenerKey_ = null, this.viewChangeListenerKey_ = null, this.layerGroupPropertyListenerKeys_ = null, we || (this.viewport_ = document.createElement("div"), this.viewport_.className = "ol-viewport" + ("ontouchstart" in window ? " ol-touch" : ""), this.viewport_.style.position = "relative", this.viewport_.style.overflow = "hidden", this.viewport_.style.width = "100%", this.viewport_.style.height = "100%", this.overlayContainer_ = document.createElement("div"), this.overlayContainer_.style.position = "absolute", this.overlayContainer_.style.zIndex = "0", this.overlayContainer_.style.width = "100%", this.overlayContainer_.style.height = "100%", this.overlayContainer_.style.pointerEvents = "none", this.overlayContainer_.className = "ol-overlaycontainer", this.viewport_.appendChild(this.overlayContainer_), this.overlayContainerStopEvent_ = document.createElement("div"), this.overlayContainerStopEvent_.style.position = "absolute", this.overlayContainerStopEvent_.style.zIndex = "0", this.overlayContainerStopEvent_.style.width = "100%", this.overlayContainerStopEvent_.style.height = "100%", this.overlayContainerStopEvent_.style.pointerEvents = "none", this.overlayContainerStopEvent_.className = "ol-overlaycontainer-stopevent", this.viewport_.appendChild(this.overlayContainerStopEvent_)), this.mapBrowserEventHandler_ = null, this.moveTolerance_ = t.moveTolerance, this.keyboardEventTarget_ = e.keyboardEventTarget, this.targetChangeHandlerKeys_ = null, this.targetElement_ = null, we || (this.resizeObserver_ = new ResizeObserver(() => this.updateSize())), this.controls = e.controls || (we ? new Ee() : Vp()), this.interactions = e.interactions || (we ? new Ee() : my({
16216
+ const e = k0(t);
16217
+ this.renderComplete_ = !1, this.loaded_ = !0, this.boundHandleBrowserEvent_ = this.handleBrowserEvent.bind(this), this.maxTilesLoading_ = t.maxTilesLoading !== void 0 ? t.maxTilesLoading : 16, this.pixelRatio_ = t.pixelRatio !== void 0 ? t.pixelRatio : am, this.postRenderTimeoutHandle_, this.animationDelayKey_, this.animationDelay_ = this.animationDelay_.bind(this), this.coordinateToPixelTransform_ = Oe(), this.pixelToCoordinateTransform_ = Oe(), this.frameIndex_ = 0, this.frameState_ = null, this.previousExtent_ = null, this.viewPropertyListenerKey_ = null, this.viewChangeListenerKey_ = null, this.layerGroupPropertyListenerKeys_ = null, we || (this.viewport_ = document.createElement("div"), this.viewport_.className = "ol-viewport" + ("ontouchstart" in window ? " ol-touch" : ""), this.viewport_.style.position = "relative", this.viewport_.style.overflow = "hidden", this.viewport_.style.width = "100%", this.viewport_.style.height = "100%", this.overlayContainer_ = document.createElement("div"), this.overlayContainer_.style.position = "absolute", this.overlayContainer_.style.zIndex = "0", this.overlayContainer_.style.width = "100%", this.overlayContainer_.style.height = "100%", this.overlayContainer_.style.pointerEvents = "none", this.overlayContainer_.className = "ol-overlaycontainer", this.viewport_.appendChild(this.overlayContainer_), this.overlayContainerStopEvent_ = document.createElement("div"), this.overlayContainerStopEvent_.style.position = "absolute", this.overlayContainerStopEvent_.style.zIndex = "0", this.overlayContainerStopEvent_.style.width = "100%", this.overlayContainerStopEvent_.style.height = "100%", this.overlayContainerStopEvent_.style.pointerEvents = "none", this.overlayContainerStopEvent_.className = "ol-overlaycontainer-stopevent", this.viewport_.appendChild(this.overlayContainerStopEvent_)), this.mapBrowserEventHandler_ = null, this.moveTolerance_ = t.moveTolerance, this.keyboardEventTarget_ = e.keyboardEventTarget, this.targetChangeHandlerKeys_ = null, this.targetElement_ = null, we || (this.resizeObserver_ = new ResizeObserver(() => this.updateSize())), this.controls = e.controls || (we ? new Ee() : Up()), this.interactions = e.interactions || (we ? new Ee() : _y({
16229
16218
  onFocusOnly: !0
16230
- })), this.overlays_ = e.overlays, this.overlayIdIndex_ = {}, this.renderer_ = null, this.postRenderFunctions_ = [], this.tileQueue_ = new fm(
16219
+ })), this.overlays_ = e.overlays, this.overlayIdIndex_ = {}, this.renderer_ = null, this.postRenderFunctions_ = [], this.tileQueue_ = new um(
16231
16220
  this.getTilePriority.bind(this),
16232
16221
  this.handleTileChange_.bind(this)
16233
16222
  ), this.addChangeListener(
@@ -16761,7 +16750,7 @@ let k0 = class extends $e {
16761
16750
  * @return {number} Tile priority.
16762
16751
  */
16763
16752
  getTilePriority(t, e, n, s) {
16764
- return dm(
16753
+ return fm(
16765
16754
  this.frameState_,
16766
16755
  t,
16767
16756
  e,
@@ -16870,8 +16859,8 @@ let k0 = class extends $e {
16870
16859
  if (this.targetElement_ = e, !e)
16871
16860
  this.renderer_ && (clearTimeout(this.postRenderTimeoutHandle_), this.postRenderTimeoutHandle_ = void 0, this.postRenderFunctions_.length = 0, this.renderer_.dispose(), this.renderer_ = null), this.animationDelayKey_ && (cancelAnimationFrame(this.animationDelayKey_), this.animationDelayKey_ = void 0);
16872
16861
  else {
16873
- if (Fi(e) || e.appendChild(this.viewport_), this.renderer_ || (this.renderer_ = new F0(this)), !Fi(e)) {
16874
- this.mapBrowserEventHandler_ = new hm(
16862
+ if (Fi(e) || e.appendChild(this.viewport_), this.renderer_ || (this.renderer_ = new D0(this)), !Fi(e)) {
16863
+ this.mapBrowserEventHandler_ = new cm(
16875
16864
  this,
16876
16865
  this.moveTolerance_
16877
16866
  );
@@ -17188,7 +17177,7 @@ let k0 = class extends $e {
17188
17177
  e && e.setViewportSize(t);
17189
17178
  }
17190
17179
  };
17191
- function N0(i) {
17180
+ function k0(i) {
17192
17181
  let t = null;
17193
17182
  i.keyboardEventTarget !== void 0 && (t = typeof i.keyboardEventTarget == "string" ? document.getElementById(i.keyboardEventTarget) : i.keyboardEventTarget);
17194
17183
  const e = {}, n = i.layers && typeof /** @type {?} */
@@ -17337,7 +17326,7 @@ class Ya extends mo {
17337
17326
  function $l(i) {
17338
17327
  return i instanceof Image || i instanceof HTMLCanvasElement || i instanceof HTMLVideoElement || i instanceof ImageBitmap ? i : null;
17339
17328
  }
17340
- const G0 = new Error("disposed"), W0 = [256, 256];
17329
+ const N0 = new Error("disposed"), G0 = [256, 256];
17341
17330
  class mh extends Ya {
17342
17331
  /**
17343
17332
  * @param {Options} options Tile options.
@@ -17357,7 +17346,7 @@ class mh extends Ya {
17357
17346
  if (this.size_)
17358
17347
  return this.size_;
17359
17348
  const t = $l(this.data_);
17360
- return t ? [t.width, t.height] : W0;
17349
+ return t ? [t.width, t.height] : G0;
17361
17350
  }
17362
17351
  /**
17363
17352
  * Get the data for the tile.
@@ -17396,7 +17385,7 @@ class mh extends Ya {
17396
17385
  * @override
17397
17386
  */
17398
17387
  disposeInternal() {
17399
- this.controller_ && (this.controller_.abort(G0), this.controller_ = null), super.disposeInternal();
17388
+ this.controller_ && (this.controller_.abort(N0), this.controller_ = null), super.disposeInternal();
17400
17389
  }
17401
17390
  }
17402
17391
  class Uf extends Ya {
@@ -17446,7 +17435,7 @@ class Uf extends Ya {
17446
17435
  * @private
17447
17436
  */
17448
17437
  handleImageError_() {
17449
- this.state = J.ERROR, this.unlistenImage_(), this.image_ = z0(), this.changed();
17438
+ this.state = J.ERROR, this.unlistenImage_(), this.image_ = W0(), this.changed();
17450
17439
  }
17451
17440
  /**
17452
17441
  * Tracks successful image load.
@@ -17503,7 +17492,7 @@ class Uf extends Ya {
17503
17492
  * @override
17504
17493
  */
17505
17494
  load() {
17506
- this.state == J.ERROR && (this.state = J.IDLE, this.image_ = new Image(), this.crossOrigin_ !== null && (this.image_.crossOrigin = this.crossOrigin_), this.referrerPolicy_ !== void 0 && (this.image_.referrerPolicy = this.referrerPolicy_)), this.state == J.IDLE && (this.state = J.LOADING, this.changed(), this.tileLoadFunction_(this, this.src_), this.unlisten_ = s0(
17495
+ this.state == J.ERROR && (this.state = J.IDLE, this.image_ = new Image(), this.crossOrigin_ !== null && (this.image_.crossOrigin = this.crossOrigin_), this.referrerPolicy_ !== void 0 && (this.image_.referrerPolicy = this.referrerPolicy_)), this.state == J.IDLE && (this.state = J.LOADING, this.changed(), this.tileLoadFunction_(this, this.src_), this.unlisten_ = n0(
17507
17496
  this.image_,
17508
17497
  this.handleImageLoad_.bind(this),
17509
17498
  this.handleImageError_.bind(this)
@@ -17524,7 +17513,7 @@ class Uf extends Ya {
17524
17513
  this.unlistenImage_(), this.image_ = null, super.disposeInternal();
17525
17514
  }
17526
17515
  }
17527
- function z0() {
17516
+ function W0() {
17528
17517
  const i = Nt(1, 1);
17529
17518
  return i.fillStyle = "rgba(0,0,0,0)", i.fillRect(0, 0, 1, 1), i.canvas;
17530
17519
  }
@@ -17610,7 +17599,7 @@ function ph(i, t, e, n, s) {
17610
17599
  function ml(i, t) {
17611
17600
  return Math.abs(i[t * 4] - 210) > 2 || Math.abs(i[t * 4 + 3] - 0.75 * 255) > 2;
17612
17601
  }
17613
- function X0() {
17602
+ function z0() {
17614
17603
  if (_l === void 0) {
17615
17604
  const i = Nt(6, 6, Gn);
17616
17605
  i.globalCompositeOperation = "lighter", i.fillStyle = "rgba(210, 0, 0, 0.75)", ph(i, 4, 5, 4, 0), ph(i, 4, 5, 0, 5);
@@ -17637,7 +17626,7 @@ function yh(i, t, e, n) {
17637
17626
  }
17638
17627
  return r;
17639
17628
  }
17640
- function K0(i, t, e, n) {
17629
+ function X0(i, t, e, n) {
17641
17630
  const s = zi(e);
17642
17631
  let r = yh(
17643
17632
  i,
@@ -17654,7 +17643,7 @@ function K0(i, t, e, n) {
17654
17643
  ), isFinite(r) && r > 0;
17655
17644
  }), r;
17656
17645
  }
17657
- function Y0(i, t, e, n, s, r, o, l, a, h, c, u, f, d) {
17646
+ function K0(i, t, e, n, s, r, o, l, a, h, c, u, f, d) {
17658
17647
  const g = Nt(
17659
17648
  Math.round(e * i),
17660
17649
  Math.round(e * t),
@@ -17669,7 +17658,7 @@ function Y0(i, t, e, n, s, r, o, l, a, h, c, u, f, d) {
17669
17658
  g.globalCompositeOperation = "lighter";
17670
17659
  const _ = _e();
17671
17660
  a.forEach(function(v, S, N) {
17672
- ym(_, v.extent);
17661
+ pm(_, v.extent);
17673
17662
  });
17674
17663
  let x;
17675
17664
  const E = e / n, C = (u ? 1 : 1 + Math.pow(2, -24)) / E;
@@ -17720,10 +17709,10 @@ function Y0(i, t, e, n, s, r, o, l, a, h, c, u, f, d) {
17720
17709
  [V, gt, 0, 0, Z - z],
17721
17710
  [0, 0, Y, B, q - P],
17722
17711
  [0, 0, V, gt, tt - P]
17723
- ], Rt = _m(k);
17712
+ ], Rt = gm(k);
17724
17713
  if (!Rt)
17725
17714
  return;
17726
- if (g.save(), g.beginPath(), X0() || !u) {
17715
+ if (g.save(), g.beginPath(), z0() || !u) {
17727
17716
  g.moveTo(F, q);
17728
17717
  const Tt = 4, jt = z - F, Fe = P - q;
17729
17718
  for (let Gt = 0; Gt < Tt; Gt++)
@@ -17764,8 +17753,8 @@ function Y0(i, t, e, n, s, r, o, l, a, h, c, u, f, d) {
17764
17753
  g.beginPath(), g.moveTo(U, Y), g.lineTo(A, D), g.lineTo(B, V), g.closePath(), g.stroke();
17765
17754
  }), g.restore()), g.canvas;
17766
17755
  }
17767
- const j0 = 10, xh = 0.25;
17768
- class B0 {
17756
+ const Y0 = 10, xh = 0.25;
17757
+ class j0 {
17769
17758
  /**
17770
17759
  * @param {import("../proj/Projection.js").default} sourceProj Source projection.
17771
17760
  * @param {import("../proj/Projection.js").default} targetProj Target projection.
@@ -17778,7 +17767,7 @@ class B0 {
17778
17767
  constructor(t, e, n, s, r, o, l) {
17779
17768
  this.sourceProj_ = t, this.targetProj_ = e;
17780
17769
  let a = {};
17781
- const h = l ? ip(
17770
+ const h = l ? ep(
17782
17771
  (C) => Yt(
17783
17772
  l,
17784
17773
  Ro(C, this.targetProj_, this.sourceProj_)
@@ -17788,7 +17777,7 @@ class B0 {
17788
17777
  const p = C[0] + "/" + C[1];
17789
17778
  return a[p] || (a[p] = h(C)), a[p];
17790
17779
  }, this.maxSourceExtent_ = s, this.errorThresholdSquared_ = r * r, this.triangles_ = [], this.wrapsXInSource_ = !1, this.canWrapXInSource_ = this.sourceProj_.canWrapX() && !!s && !!this.sourceProj_.getExtent() && Ct(s) >= Ct(this.sourceProj_.getExtent()), this.sourceWorldWidth_ = this.sourceProj_.getExtent() ? Ct(this.sourceProj_.getExtent()) : null, this.targetWorldWidth_ = this.targetProj_.getExtent() ? Ct(this.targetProj_.getExtent()) : null;
17791
- const c = fn(n), u = wo(n), f = Eo(n), d = xo(n), g = this.transformInv_(c), m = this.transformInv_(u), _ = this.transformInv_(f), x = this.transformInv_(d), E = j0 + (o ? Math.max(
17780
+ const c = fn(n), u = wo(n), f = Eo(n), d = xo(n), g = this.transformInv_(c), m = this.transformInv_(u), _ = this.transformInv_(f), x = this.transformInv_(d), E = Y0 + (o ? Math.max(
17792
17781
  0,
17793
17782
  Math.ceil(
17794
17783
  Math.log2(
@@ -17981,7 +17970,7 @@ class B0 {
17981
17970
  return this.triangles_;
17982
17971
  }
17983
17972
  }
17984
- const U0 = 0.5;
17973
+ const B0 = 0.5;
17985
17974
  class Vf extends Ya {
17986
17975
  /**
17987
17976
  * @param {import("../proj/Projection.js").default} sourceProj Source projection.
@@ -18013,7 +18002,7 @@ class Vf extends Ya {
18013
18002
  x && (m ? m = ln(m, x) : m = x);
18014
18003
  const E = s.getResolution(
18015
18004
  this.wrappedTileCoord_[0]
18016
- ), C = K0(
18005
+ ), C = X0(
18017
18006
  t,
18018
18007
  n,
18019
18008
  _,
@@ -18023,8 +18012,8 @@ class Vf extends Ya {
18023
18012
  this.state = J.EMPTY;
18024
18013
  return;
18025
18014
  }
18026
- const p = c !== void 0 ? c : U0;
18027
- if (this.triangulation_ = new B0(
18015
+ const p = c !== void 0 ? c : B0;
18016
+ if (this.triangulation_ = new j0(
18028
18017
  t,
18029
18018
  n,
18030
18019
  _,
@@ -18104,7 +18093,7 @@ class Vf extends Ya {
18104
18093
  ), a = this.targetTileGrid_.getTileCoordExtent(
18105
18094
  this.wrappedTileCoord_
18106
18095
  );
18107
- this.canvas_ = Y0(
18096
+ this.canvas_ = K0(
18108
18097
  s,
18109
18098
  r,
18110
18099
  this.pixelRatio_,
@@ -18338,19 +18327,19 @@ class Eh {
18338
18327
  function Hr(i, t, e, n) {
18339
18328
  return n !== void 0 ? (n[0] = i, n[1] = t, n[2] = e, n) : [i, t, e];
18340
18329
  }
18341
- function V0(i, t, e) {
18330
+ function U0(i, t, e) {
18342
18331
  return i + "/" + t + "/" + e;
18343
18332
  }
18344
18333
  function Ar(i, t, e, n, s) {
18345
- return `${ft(i)},${t},${V0(e, n, s)}`;
18334
+ return `${ft(i)},${t},${U0(e, n, s)}`;
18346
18335
  }
18347
- function Z0(i) {
18348
- return H0(i[0], i[1], i[2]);
18336
+ function V0(i) {
18337
+ return Z0(i[0], i[1], i[2]);
18349
18338
  }
18350
- function H0(i, t, e) {
18339
+ function Z0(i, t, e) {
18351
18340
  return (t << i) + e;
18352
18341
  }
18353
- function $0(i, t) {
18342
+ function H0(i, t) {
18354
18343
  const e = i[0], n = i[1], s = i[2];
18355
18344
  if (t.getMinZoom() > e || e > t.getMaxZoom())
18356
18345
  return !1;
@@ -18436,13 +18425,13 @@ class Zf {
18436
18425
  this.offset_ = this.instructions_.length, this.zIndex = 0;
18437
18426
  }
18438
18427
  }
18439
- const q0 = 5;
18440
- class J0 extends qs {
18428
+ const $0 = 5;
18429
+ class q0 extends qs {
18441
18430
  /**
18442
18431
  * @param {LayerType} layer Layer.
18443
18432
  */
18444
18433
  constructor(t) {
18445
- super(), this.ready = !0, this.boundHandleImageChange_ = this.handleImageChange_.bind(this), this.layer_ = t, this.staleKeys_ = new Array(), this.maxStaleKeys = q0;
18434
+ super(), this.ready = !0, this.boundHandleImageChange_ = this.handleImageChange_.bind(this), this.layer_ = t, this.staleKeys_ = new Array(), this.maxStaleKeys = $0;
18446
18435
  }
18447
18436
  /**
18448
18437
  * @return {Array<string>} Get the list of stale keys.
@@ -18560,12 +18549,12 @@ class J0 extends qs {
18560
18549
  }
18561
18550
  const wh = [];
18562
18551
  let In = null;
18563
- function Q0() {
18552
+ function J0() {
18564
18553
  In = Nt(1, 1, void 0, {
18565
18554
  willReadFrequently: !0
18566
18555
  });
18567
18556
  }
18568
- class Hf extends J0 {
18557
+ class Hf extends q0 {
18569
18558
  /**
18570
18559
  * @param {LayerType} layer Layer.
18571
18560
  */
@@ -18579,7 +18568,7 @@ class Hf extends J0 {
18579
18568
  * @return {Uint8ClampedArray|null} The image data.
18580
18569
  */
18581
18570
  getImageData(t, e, n) {
18582
- In || Q0(), In.clearRect(0, 0, 1, 1);
18571
+ In || J0(), In.clearRect(0, 0, 1, 1);
18583
18572
  let s;
18584
18573
  try {
18585
18574
  In.drawImage(t, e, n, 1, 1, 0, 0, 1, 1), s = In.getImageData(0, 0, 1, 1).data;
@@ -18612,7 +18601,7 @@ class Hf extends J0 {
18612
18601
  const l = t.firstElementChild;
18613
18602
  Fi(l) && (o = l.getContext("2d"));
18614
18603
  }
18615
- if (o && up(o.canvas.style.transform, e) ? (this.container = t, this.context = o, this.containerReused = !0) : this.containerReused ? (this.container = null, this.context = null, this.containerReused = !1) : this.container && (this.container.style.backgroundColor = null), !this.container) {
18604
+ if (o && hp(o.canvas.style.transform, e) ? (this.container = t, this.context = o, this.containerReused = !0) : this.containerReused ? (this.container = null, this.context = null, this.containerReused = !1) : this.container && (this.container.style.backgroundColor = null), !this.container) {
18616
18605
  r = we ? wf() : document.createElement("div"), r.className = s;
18617
18606
  let l = r.style;
18618
18607
  l.position = "absolute", l.width = "100%", l.height = "100%", o = Nt();
@@ -18653,7 +18642,7 @@ class Hf extends J0 {
18653
18642
  -l / 2,
18654
18643
  -a / 2
18655
18644
  ), uf(this.inversePixelTransform, this.pixelTransform);
18656
- const h = hp(this.pixelTransform);
18645
+ const h = cp(this.pixelTransform);
18657
18646
  if (this.useContainer(e, h, this.getBackground(t)), !this.containerReused) {
18658
18647
  const c = this.context.canvas;
18659
18648
  c.width != l || c.height != a ? (c.width = l, c.height = a) : this.context.clearRect(0, 0, l, a), h !== /** @type {HTMLCanvasElement} */
@@ -18760,7 +18749,7 @@ function pl(i, t, e) {
18760
18749
  const n = i[e], s = n.has(t);
18761
18750
  return s || n.add(t), !s;
18762
18751
  }
18763
- function tx(i, t, e) {
18752
+ function Q0(i, t, e) {
18764
18753
  const n = i[e];
18765
18754
  return n ? n.delete(t) : !1;
18766
18755
  }
@@ -18780,7 +18769,7 @@ function Ch(i, t) {
18780
18769
  }
18781
18770
  return t;
18782
18771
  }
18783
- class ex extends Hf {
18772
+ class tx extends Hf {
18784
18773
  /**
18785
18774
  * @param {LayerType} tileLayer Tile layer.
18786
18775
  * @param {Options} [options] Options.
@@ -19076,7 +19065,7 @@ class ex extends Hf {
19076
19065
  continue;
19077
19066
  }
19078
19067
  if (F !== J.ERROR && (this.renderComplete = !1), this.findStaleTile_(q, S)) {
19079
- tx(S, P, f), t.animate = !0;
19068
+ Q0(S, P, f), t.animate = !0;
19080
19069
  continue;
19081
19070
  }
19082
19071
  if (this.findAltTiles_(
@@ -19225,7 +19214,7 @@ const Rr = {
19225
19214
  PRELOAD: "preload",
19226
19215
  USE_INTERIM_TILES_ON_ERROR: "useInterimTilesOnError"
19227
19216
  };
19228
- class ix extends Io {
19217
+ class ex extends Io {
19229
19218
  /**
19230
19219
  * @param {Options<TileSourceType>} [options] Tile layer options.
19231
19220
  */
@@ -19306,7 +19295,7 @@ class ix extends Io {
19306
19295
  return super.getData(t);
19307
19296
  }
19308
19297
  }
19309
- class nx extends ix {
19298
+ class ix extends ex {
19310
19299
  /**
19311
19300
  * @param {import("./BaseTile.js").Options<TileSourceType>} [options] Tile layer options.
19312
19301
  */
@@ -19317,7 +19306,7 @@ class nx extends ix {
19317
19306
  * @override
19318
19307
  */
19319
19308
  createRenderer() {
19320
- return new ex(this, {
19309
+ return new tx(this, {
19321
19310
  cacheSize: this.getCacheSize()
19322
19311
  });
19323
19312
  }
@@ -19329,7 +19318,7 @@ class $f {
19329
19318
  */
19330
19319
  constructor(t) {
19331
19320
  this.minZoom = t.minZoom !== void 0 ? t.minZoom : 0, this.resolutions_ = t.resolutions, xt(
19332
- nm(
19321
+ im(
19333
19322
  this.resolutions_,
19334
19323
  /**
19335
19324
  * @param {number} a First resolution
@@ -19717,9 +19706,9 @@ class $f {
19717
19706
  }
19718
19707
  function qf(i) {
19719
19708
  let t = i.getDefaultTileGrid();
19720
- return t || (t = lx(i), i.setDefaultTileGrid(t)), t;
19709
+ return t || (t = ox(i), i.setDefaultTileGrid(t)), t;
19721
19710
  }
19722
- function sx(i, t, e) {
19711
+ function nx(i, t, e) {
19723
19712
  const n = t[0], s = i.getTileCoordCenter(t), r = Ba(e);
19724
19713
  if (!Yn(r, s)) {
19725
19714
  const o = Ct(r), l = Math.ceil(
@@ -19729,17 +19718,17 @@ function sx(i, t, e) {
19729
19718
  }
19730
19719
  return t;
19731
19720
  }
19732
- function rx(i, t, e, n) {
19721
+ function sx(i, t, e, n) {
19733
19722
  n = n !== void 0 ? n : "top-left";
19734
19723
  const s = Jf(i, t, e);
19735
19724
  return new $f({
19736
19725
  extent: i,
19737
- origin: Em(i, n),
19726
+ origin: xm(i, n),
19738
19727
  resolutions: s,
19739
19728
  tileSize: e
19740
19729
  });
19741
19730
  }
19742
- function ox(i) {
19731
+ function rx(i) {
19743
19732
  const t = i || {}, e = t.extent || qt("EPSG:3857").getExtent(), n = {
19744
19733
  extent: e,
19745
19734
  minZoom: t.minZoom,
@@ -19754,7 +19743,7 @@ function ox(i) {
19754
19743
  return new $f(n);
19755
19744
  }
19756
19745
  function Jf(i, t, e, n) {
19757
- t = t !== void 0 ? t : kp, e = he(e !== void 0 ? e : Oa);
19746
+ t = t !== void 0 ? t : Fp, e = he(e !== void 0 ? e : Oa);
19758
19747
  const s = se(i), r = Ct(i);
19759
19748
  n = n > 0 ? n : Math.max(r / e[0], s / e[1]);
19760
19749
  const o = t + 1, l = new Array(o);
@@ -19762,9 +19751,9 @@ function Jf(i, t, e, n) {
19762
19751
  l[a] = n / Math.pow(2, a);
19763
19752
  return l;
19764
19753
  }
19765
- function lx(i, t, e, n) {
19754
+ function ox(i, t, e, n) {
19766
19755
  const s = Ba(i);
19767
- return rx(s, t, e, n);
19756
+ return sx(s, t, e, n);
19768
19757
  }
19769
19758
  function Ba(i) {
19770
19759
  i = qt(i);
@@ -19775,9 +19764,9 @@ function Ba(i) {
19775
19764
  }
19776
19765
  return t;
19777
19766
  }
19778
- const ax = /\{z\}/g, cx = /\{x\}/g, hx = /\{y\}/g, ux = /\{-y\}/g;
19779
- function fx(i, t, e, n, s) {
19780
- return i.replace(ax, t.toString()).replace(cx, e.toString()).replace(hx, n.toString()).replace(ux, function() {
19767
+ const lx = /\{z\}/g, ax = /\{x\}/g, cx = /\{y\}/g, hx = /\{-y\}/g;
19768
+ function ux(i, t, e, n, s) {
19769
+ return i.replace(lx, t.toString()).replace(ax, e.toString()).replace(cx, n.toString()).replace(hx, function() {
19781
19770
  if (s === void 0)
19782
19771
  throw new Error(
19783
19772
  "If the URL template has a {-y} placeholder, the grid extent must be known"
@@ -19785,7 +19774,7 @@ function fx(i, t, e, n, s) {
19785
19774
  return (s - n).toString();
19786
19775
  });
19787
19776
  }
19788
- function dx(i) {
19777
+ function fx(i) {
19789
19778
  const t = [];
19790
19779
  let e = /\{([a-z])-([a-z])\}/.exec(i);
19791
19780
  if (e) {
@@ -19803,7 +19792,7 @@ function dx(i) {
19803
19792
  }
19804
19793
  return t.push(i), t;
19805
19794
  }
19806
- function gx(i, t) {
19795
+ function dx(i, t) {
19807
19796
  return (
19808
19797
  /**
19809
19798
  * @param {import("./tilecoord.js").TileCoord} tileCoord Tile Coordinate.
@@ -19820,17 +19809,17 @@ function gx(i, t) {
19820
19809
  const l = t.getFullTileRange(o);
19821
19810
  l && (r = l.getHeight() - 1);
19822
19811
  }
19823
- return fx(i, o, e[1], e[2], r);
19812
+ return ux(i, o, e[1], e[2], r);
19824
19813
  })
19825
19814
  );
19826
19815
  }
19827
- function _x(i, t) {
19816
+ function gx(i, t) {
19828
19817
  const e = i.length, n = new Array(e);
19829
19818
  for (let s = 0; s < e; ++s)
19830
- n[s] = gx(i[s], t);
19831
- return mx(n);
19819
+ n[s] = dx(i[s], t);
19820
+ return _x(n);
19832
19821
  }
19833
- function mx(i) {
19822
+ function _x(i) {
19834
19823
  return i.length === 1 ? i[0] : (
19835
19824
  /**
19836
19825
  * @param {import("./tilecoord.js").TileCoord} tileCoord Tile Coordinate.
@@ -19841,7 +19830,7 @@ function mx(i) {
19841
19830
  (function(t, e, n) {
19842
19831
  if (!t)
19843
19832
  return;
19844
- const s = Z0(t), r = Fn(s, i.length);
19833
+ const s = V0(t), r = Fn(s, i.length);
19845
19834
  return i[r](t, e, n);
19846
19835
  })
19847
19836
  );
@@ -19941,7 +19930,7 @@ class Qf extends $e {
19941
19930
  function vh(i) {
19942
19931
  return i ? typeof i == "function" ? i : (Array.isArray(i) || (i = [i]), (t) => i) : null;
19943
19932
  }
19944
- class px extends Qf {
19933
+ class mx extends Qf {
19945
19934
  /**
19946
19935
  * @param {Options} options SourceTile source options.
19947
19936
  */
@@ -20037,7 +20026,7 @@ class px extends Qf {
20037
20026
  */
20038
20027
  getTilePixelSize(t, e, n) {
20039
20028
  const s = this.getTileGridForProjection(n), r = this.getTilePixelRatio(e), o = he(s.getTileSize(t), this.tmpSize);
20040
- return r == 1 ? o : Oy(o, r, this.tmpSize);
20029
+ return r == 1 ? o : Ly(o, r, this.tmpSize);
20041
20030
  }
20042
20031
  /**
20043
20032
  * Returns a tile coordinate wrapped around the x-axis. When the tile coordinate
@@ -20050,7 +20039,7 @@ class px extends Qf {
20050
20039
  */
20051
20040
  getTileCoordForTileUrlFunction(t, e) {
20052
20041
  const n = e !== void 0 ? e : this.getProjection(), s = e !== void 0 ? this.getTileGridForProjection(n) : this.tileGrid || this.getTileGridForProjection(n);
20053
- return this.getWrapX() && n.isGlobal() && (t = sx(s, t, n)), $0(t, s) ? t : null;
20042
+ return this.getWrapX() && n.isGlobal() && (t = nx(s, t, n)), H0(t, s) ? t : null;
20054
20043
  }
20055
20044
  /**
20056
20045
  * Remove all cached reprojected tiles from the source. The next render cycle will create new tiles.
@@ -20065,7 +20054,7 @@ class px extends Qf {
20065
20054
  this.clear(), super.refresh();
20066
20055
  }
20067
20056
  }
20068
- class yx extends Ei {
20057
+ class px extends Ei {
20069
20058
  /**
20070
20059
  * @param {string} type Type.
20071
20060
  * @param {import("../Tile.js").default} tile The tile.
@@ -20097,7 +20086,7 @@ const yl = {
20097
20086
  */
20098
20087
  TILELOADERROR: "tileloaderror"
20099
20088
  };
20100
- class Ua extends px {
20089
+ class Ua extends mx {
20101
20090
  /**
20102
20091
  * @param {Options} options Image tile options.
20103
20092
  */
@@ -20157,7 +20146,7 @@ class Ua extends px {
20157
20146
  t.target
20158
20147
  ), n = ft(e), s = e.getState();
20159
20148
  let r;
20160
- s == J.LOADING ? (this.tileLoadingKeys_[n] = !0, r = yl.TILELOADSTART) : n in this.tileLoadingKeys_ && (delete this.tileLoadingKeys_[n], r = s == J.ERROR ? yl.TILELOADERROR : s == J.LOADED ? yl.TILELOADEND : void 0), r != null && this.dispatchEvent(new yx(r, e));
20149
+ s == J.LOADING ? (this.tileLoadingKeys_[n] = !0, r = yl.TILELOADSTART) : n in this.tileLoadingKeys_ && (delete this.tileLoadingKeys_[n], r = s == J.ERROR ? yl.TILELOADERROR : s == J.LOADED ? yl.TILELOADEND : void 0), r != null && this.dispatchEvent(new px(r, e));
20161
20150
  }
20162
20151
  /**
20163
20152
  * Deprecated. Use an ImageTile source instead.
@@ -20184,7 +20173,7 @@ class Ua extends px {
20184
20173
  * @api
20185
20174
  */
20186
20175
  setUrl(t) {
20187
- const e = dx(t);
20176
+ const e = fx(t);
20188
20177
  this.urls = e, this.setUrls(e);
20189
20178
  }
20190
20179
  /**
@@ -20197,7 +20186,7 @@ class Ua extends px {
20197
20186
  this.urls = t;
20198
20187
  const e = t.join(`
20199
20188
  `);
20200
- this.generateTileUrlFunction_ ? this.setTileUrlFunction(_x(t, this.tileGrid), e) : this.setKey(e);
20189
+ this.generateTileUrlFunction_ ? this.setTileUrlFunction(gx(t, this.tileGrid), e) : this.setKey(e);
20201
20190
  }
20202
20191
  /**
20203
20192
  * @param {import("../tilecoord.js").TileCoord} tileCoord Tile coordinate.
@@ -20208,7 +20197,7 @@ class Ua extends px {
20208
20197
  tileUrlFunction(t, e, n) {
20209
20198
  }
20210
20199
  }
20211
- class xx extends Ua {
20200
+ class yx extends Ua {
20212
20201
  /**
20213
20202
  * @param {!Options} options Image tile options.
20214
20203
  */
@@ -20219,7 +20208,7 @@ class xx extends Ua {
20219
20208
  projection: t.projection,
20220
20209
  state: t.state,
20221
20210
  tileGrid: t.tileGrid,
20222
- tileLoadFunction: t.tileLoadFunction ? t.tileLoadFunction : Ex,
20211
+ tileLoadFunction: t.tileLoadFunction ? t.tileLoadFunction : xx,
20223
20212
  tilePixelRatio: t.tilePixelRatio,
20224
20213
  tileUrlFunction: t.tileUrlFunction,
20225
20214
  url: t.url,
@@ -20381,7 +20370,7 @@ class xx extends Ua {
20381
20370
  }
20382
20371
  }
20383
20372
  }
20384
- function Ex(i, t) {
20373
+ function xx(i, t) {
20385
20374
  if (we) {
20386
20375
  const e = i.getCrossOrigin();
20387
20376
  let n = "same-origin", s = "same-origin";
@@ -20406,13 +20395,13 @@ function Ex(i, t) {
20406
20395
  }
20407
20396
  i.getImage().src = t;
20408
20397
  }
20409
- class wx extends xx {
20398
+ class Ex extends yx {
20410
20399
  /**
20411
20400
  * @param {Options} [options] XYZ options.
20412
20401
  */
20413
20402
  constructor(t) {
20414
20403
  t = t || {};
20415
- const e = t.projection !== void 0 ? t.projection : "EPSG:3857", n = t.tileGrid !== void 0 ? t.tileGrid : ox({
20404
+ const e = t.projection !== void 0 ? t.projection : "EPSG:3857", n = t.tileGrid !== void 0 ? t.tileGrid : rx({
20416
20405
  extent: Ba(e),
20417
20406
  maxResolution: t.maxResolution,
20418
20407
  maxZoom: t.maxZoom,
@@ -20447,15 +20436,15 @@ class wx extends xx {
20447
20436
  return this.gutter_;
20448
20437
  }
20449
20438
  }
20450
- const Cx = '&#169; <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.';
20451
- class vx extends wx {
20439
+ const wx = '&#169; <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.';
20440
+ class Cx extends Ex {
20452
20441
  /**
20453
20442
  * @param {Options} [options] Open Street Map options.
20454
20443
  */
20455
20444
  constructor(t) {
20456
20445
  t = t || {};
20457
20446
  let e;
20458
- t.attributions !== void 0 ? e = t.attributions : e = [Cx];
20447
+ t.attributions !== void 0 ? e = t.attributions : e = [wx];
20459
20448
  const n = t.url !== void 0 ? t.url : "https://tile.openstreetmap.org/{z}/{x}/{y}.png";
20460
20449
  super({
20461
20450
  attributions: e,
@@ -20474,16 +20463,16 @@ class vx extends wx {
20474
20463
  });
20475
20464
  }
20476
20465
  }
20477
- const Rx = "EPSG:3857", Tx = [9.254419, 50.102223], Sx = ({ centre: i, target: t } = {}) => {
20466
+ const vx = "EPSG:3857", Rx = [9.254419, 50.102223], Tx = ({ centre: i, target: t } = {}) => {
20478
20467
  const e = /* @__PURE__ */ lo(null);
20479
- sp();
20480
- const n = () => new k0({
20468
+ np();
20469
+ const n = () => new F0({
20481
20470
  target: t,
20482
- layers: [new nx({ source: new vx() })],
20471
+ layers: [new ix({ source: new Cx() })],
20483
20472
  view: new Ke({
20484
- center: ao(i) || Tx,
20473
+ center: ao(i) || Rx,
20485
20474
  minZoom: 1,
20486
- projection: Rx,
20475
+ projection: vx,
20487
20476
  zoom: 4
20488
20477
  })
20489
20478
  });
@@ -20626,7 +20615,7 @@ class Do extends $e {
20626
20615
  * @fires module:ol/events/Event~BaseEvent#event:change
20627
20616
  */
20628
20617
  setStyle(t) {
20629
- this.style_ = t, this.styleFunction_ = t ? Ix(t) : void 0, this.changed();
20618
+ this.style_ = t, this.styleFunction_ = t ? Sx(t) : void 0, this.changed();
20630
20619
  }
20631
20620
  /**
20632
20621
  * Set the feature id. The feature id is considered stable and may be used when
@@ -20651,7 +20640,7 @@ class Do extends $e {
20651
20640
  t !== this.geometryName_ && (this.removeChangeListener(this.geometryName_, this.handleGeometryChanged_), this.geometryName_ = t, this.addChangeListener(this.geometryName_, this.handleGeometryChanged_), this.handleGeometryChanged_());
20652
20641
  }
20653
20642
  }
20654
- function Ix(i) {
20643
+ function Sx(i) {
20655
20644
  if (typeof i == "function")
20656
20645
  return i;
20657
20646
  let t;
@@ -20666,14 +20655,14 @@ function Ix(i) {
20666
20655
  return t;
20667
20656
  };
20668
20657
  }
20669
- let bx = !1;
20670
- function Ax(i, t, e, n, s, r, o) {
20658
+ let Ix = !1;
20659
+ function bx(i, t, e, n, s, r, o) {
20671
20660
  const l = new XMLHttpRequest();
20672
20661
  l.open(
20673
20662
  "GET",
20674
20663
  typeof i == "function" ? i(e, n, s) : i,
20675
20664
  !0
20676
- ), t.getType() == "arraybuffer" && (l.responseType = "arraybuffer"), l.withCredentials = bx, l.onload = function(a) {
20665
+ ), t.getType() == "arraybuffer" && (l.responseType = "arraybuffer"), l.withCredentials = Ix, l.onload = function(a) {
20677
20666
  if (!l.status || l.status >= 200 && l.status < 300) {
20678
20667
  const h = t.getType();
20679
20668
  try {
@@ -20696,7 +20685,7 @@ function Ax(i, t, e, n, s, r, o) {
20696
20685
  }
20697
20686
  function Rh(i, t) {
20698
20687
  return function(e, n, s, r, o) {
20699
- Ax(
20688
+ bx(
20700
20689
  i,
20701
20690
  t,
20702
20691
  e,
@@ -20716,7 +20705,7 @@ function Rh(i, t) {
20716
20705
  );
20717
20706
  };
20718
20707
  }
20719
- function Mx(i, t) {
20708
+ function Ax(i, t) {
20720
20709
  return [[-1 / 0, -1 / 0, 1 / 0, 1 / 0]];
20721
20710
  }
20722
20711
  function Th(i, t, e, n, s, r, o) {
@@ -20733,7 +20722,7 @@ function Th(i, t, e, n, s, r, o) {
20733
20722
  const x = i[_], E = i[_ + 1];
20734
20723
  f += Math.sqrt((x - c) * (x - c) + (E - u) * (E - u)), d.push(f), c = x, u = E;
20735
20724
  }
20736
- const g = s * f, m = tm(d, g);
20725
+ const g = s * f, m = Q_(d, g);
20737
20726
  m < 0 ? (a = (g - d[-m - 2]) / (d[-m - 1] - d[-m - 2]), l = t + (-m - 2) * n) : l = t + m * n;
20738
20727
  }
20739
20728
  o = o > 1 ? o : 2, r = r || new Array(o);
@@ -20741,7 +20730,7 @@ function Th(i, t, e, n, s, r, o) {
20741
20730
  r[c] = l === void 0 ? NaN : a === void 0 ? i[l + c] : xe(i[l + c], i[l + n + c], a);
20742
20731
  return r;
20743
20732
  }
20744
- function Lx(i, t, e, n) {
20733
+ function Mx(i, t, e, n) {
20745
20734
  let s = i[t], r = i[t + 1], o = 0;
20746
20735
  for (let l = t + n; l < e; l += n) {
20747
20736
  const a = i[l], h = i[l + 1];
@@ -20749,7 +20738,7 @@ function Lx(i, t, e, n) {
20749
20738
  }
20750
20739
  return o;
20751
20740
  }
20752
- function Ox(i, t, e, n) {
20741
+ function Lx(i, t, e, n) {
20753
20742
  const s = [];
20754
20743
  let r = _e();
20755
20744
  for (let o = 0, l = e.length; o < l; ++o) {
@@ -20821,13 +20810,13 @@ class be {
20821
20810
  */
20822
20811
  getFlatInteriorPoints() {
20823
20812
  if (!this.flatInteriorPoints_) {
20824
- const t = Lp(this.flatCoordinates_, this.ends_), e = Ox(
20813
+ const t = Mp(this.flatCoordinates_, this.ends_), e = Lx(
20825
20814
  this.flatCoordinates_,
20826
20815
  0,
20827
20816
  t,
20828
20817
  this.stride_
20829
20818
  );
20830
- this.flatInteriorPoints_ = Sp(
20819
+ this.flatInteriorPoints_ = Tp(
20831
20820
  this.flatCoordinates_,
20832
20821
  0,
20833
20822
  t,
@@ -21032,7 +21021,7 @@ class be {
21032
21021
  ), s = [n.length];
21033
21022
  break;
21034
21023
  case "MultiLineString":
21035
- s = [], n.length = vp(
21024
+ s = [], n.length = Cp(
21036
21025
  n,
21037
21026
  0,
21038
21027
  this.simplifiedGeometry_.ends_,
@@ -21282,7 +21271,7 @@ class td extends Qf {
21282
21271
  projection: void 0,
21283
21272
  state: "ready",
21284
21273
  wrapX: t.wrapX !== void 0 ? t.wrapX : !0
21285
- }), this.on, this.once, this.un, this.loader_ = ks, this.format_ = t.format || null, this.overlaps_ = t.overlaps === void 0 ? !0 : t.overlaps, this.url_ = t.url, t.loader !== void 0 ? this.loader_ = t.loader : this.url_ !== void 0 && (xt(this.format_, "`format` must be set when `url` is set"), this.loader_ = Rh(this.url_, this.format_)), this.strategy_ = t.strategy !== void 0 ? t.strategy : Mx;
21274
+ }), this.on, this.once, this.un, this.loader_ = ks, this.format_ = t.format || null, this.overlaps_ = t.overlaps === void 0 ? !0 : t.overlaps, this.url_ = t.url, t.loader !== void 0 ? this.loader_ = t.loader : this.url_ !== void 0 && (xt(this.format_, "`format` must be set when `url` is set"), this.loader_ = Rh(this.url_, this.format_)), this.strategy_ = t.strategy !== void 0 ? t.strategy : Ax;
21286
21275
  const e = t.useSpatialIndex !== void 0 ? t.useSpatialIndex : !0;
21287
21276
  this.featuresRtree_ = e ? new Ih() : null, this.loadedExtentsRtree_ = new Ih(), this.nullGeometryFeatures_ = {}, this.idIndex_ = {}, this.uidIndex_ = {}, this.featureChangeKeys_ = {}, this.featuresCollection_ = null;
21288
21277
  let n, s;
@@ -21907,7 +21896,7 @@ class td extends Qf {
21907
21896
  this.overlaps_ = t, this.changed();
21908
21897
  }
21909
21898
  }
21910
- class Px extends td {
21899
+ class Ox extends td {
21911
21900
  /**
21912
21901
  * @param {Options<FeatureType>} [options] Cluster options.
21913
21902
  */
@@ -22453,7 +22442,7 @@ class ar extends ed {
22453
22442
  let s, r, o = -1;
22454
22443
  for (e = 0; e < n; ++e)
22455
22444
  s = t[e], r = /** @type {import("./Instruction.js").default} */
22456
- s[0], r == $.END_GEOMETRY ? o = e : r == $.BEGIN_GEOMETRY && (s[2] = e, im(this.hitDetectionInstructions, o, e), o = -1);
22445
+ s[0], r == $.END_GEOMETRY ? o = e : r == $.BEGIN_GEOMETRY && (s[2] = e, em(this.hitDetectionInstructions, o, e), o = -1);
22457
22446
  }
22458
22447
  /**
22459
22448
  * @param {import("../../style/Fill.js").default} fillStyle Fill style.
@@ -22498,7 +22487,7 @@ class ar extends ed {
22498
22487
  const h = t.getMiterLimit();
22499
22488
  e.miterLimit = h !== void 0 ? h : Ks;
22500
22489
  const c = t.getOffset();
22501
- e.strokeOffset = c ?? c0, e.lineWidth > this.maxLineWidth && (this.maxLineWidth = e.lineWidth, this.bufferedMaxExtent_ = null);
22490
+ e.strokeOffset = c ?? a0, e.lineWidth > this.maxLineWidth && (this.maxLineWidth = e.lineWidth, this.bufferedMaxExtent_ = null);
22502
22491
  } else
22503
22492
  e.strokeStyle = void 0, e.lineCap = void 0, e.lineDash = null, e.lineDashOffset = void 0, e.lineJoin = void 0, e.lineWidth = void 0, e.miterLimit = void 0, e.strokeOffset = void 0;
22504
22493
  return e;
@@ -22581,7 +22570,7 @@ class ar extends ed {
22581
22570
  return this.bufferedMaxExtent_;
22582
22571
  }
22583
22572
  }
22584
- class Dx extends ar {
22573
+ class Px extends ar {
22585
22574
  /**
22586
22575
  * @param {number} tolerance Tolerance.
22587
22576
  * @param {import("../../extent.js").Extent} maxExtent Maximum extent.
@@ -22718,7 +22707,7 @@ class Dx extends ar {
22718
22707
  this.imagePixelRatio_ = t.getPixelRatio(this.pixelRatio), this.anchorX_ = n[0], this.anchorY_ = n[1], this.hitDetectionImage_ = t.getHitDetectionImage(), this.image_ = t.getImage(this.pixelRatio), this.height_ = s[1], this.opacity_ = t.getOpacity(), this.originX_ = r[0], this.originY_ = r[1], this.rotateWithView_ = t.getRotateWithView(), this.rotation_ = t.getRotation(), this.scale_ = t.getScaleArray(), this.width_ = s[0], this.declutterMode_ = t.getDeclutterMode(), this.declutterImageWithText_ = e;
22719
22708
  }
22720
22709
  }
22721
- class Fx extends ar {
22710
+ class Dx extends ar {
22722
22711
  /**
22723
22712
  * @param {number} tolerance Tolerance.
22724
22713
  * @param {import("../../extent.js").Extent} maxExtent Maximum extent.
@@ -23024,7 +23013,7 @@ class Ah extends ar {
23024
23013
  return Math.abs(r) > 0 && n !== void 0 && s !== void 0 ? (e.strokeStyle = void 0, e.strokeOffset = 0, t(), e.fillStyle = void 0, e.strokeStyle = s, e.strokeOffset = r, t(), e.fillStyle = n, !0) : !1;
23025
23014
  }
23026
23015
  }
23027
- function kx(i, t, e, n, s) {
23016
+ function Fx(i, t, e, n, s) {
23028
23017
  const r = [];
23029
23018
  let o = e, l = 0, a = t.slice(e, 2);
23030
23019
  for (; l < i && o + s < n; ) {
@@ -23046,7 +23035,7 @@ function kx(i, t, e, n, s) {
23046
23035
  }
23047
23036
  return l > 0 && r.push(a), r;
23048
23037
  }
23049
- function Nx(i, t, e, n, s) {
23038
+ function kx(i, t, e, n, s) {
23050
23039
  let r = e, o = e, l = 0, a = 0, h = e, c, u, f, d, g, m, _, x, E, C;
23051
23040
  for (u = e; u < n; u += s) {
23052
23041
  const p = t[u], v = t[u + 1];
@@ -23065,7 +23054,7 @@ const $r = {
23065
23054
  ideographic: 0.8,
23066
23055
  bottom: 1
23067
23056
  };
23068
- class Gx extends ar {
23057
+ class Nx extends ar {
23069
23058
  /**
23070
23059
  * @param {number} tolerance Tolerance.
23071
23060
  * @param {import("../../extent.js").Extent} maxExtent Maximum extent.
@@ -23124,7 +23113,7 @@ class Gx extends ar {
23124
23113
  let m = 0;
23125
23114
  for (let _ = 0, x = f.length; _ < x; ++_) {
23126
23115
  let E;
23127
- d ? E = kx(
23116
+ d ? E = Fx(
23128
23117
  d * this.resolution,
23129
23118
  c,
23130
23119
  m,
@@ -23135,7 +23124,7 @@ class Gx extends ar {
23135
23124
  const v = E[C];
23136
23125
  let S = 0, N = v.length;
23137
23126
  if (g == null) {
23138
- const A = Nx(
23127
+ const A = kx(
23139
23128
  o.maxAngle,
23140
23129
  v,
23141
23130
  0,
@@ -23368,7 +23357,7 @@ class Gx extends ar {
23368
23357
  }
23369
23358
  n = this.textState_;
23370
23359
  const a = t.getFont() || Df;
23371
- f0(a);
23360
+ u0(a);
23372
23361
  const h = t.getScaleArray();
23373
23362
  n.overflow = t.getOverflow(), n.font = a, n.maxAngle = t.getMaxAngle(), n.placement = t.getPlacement(), n.textAlign = t.getTextAlign(), n.repeat = t.getRepeat(), n.justify = t.getJustify(), n.textBaseline = t.getTextBaseline() || Vr, n.backgroundFill = t.getBackgroundFill(), n.backgroundStroke = t.getBackgroundStroke(), n.padding = t.getPadding() || en, n.scale = h === void 0 ? [1, 1] : h;
23374
23363
  const c = t.getOffsetX(), u = t.getOffsetY(), f = t.getRotateWithView(), d = t.getKeepUpright(), g = t.getRotation();
@@ -23377,15 +23366,15 @@ class Gx extends ar {
23377
23366
  this.declutterMode_ = t.getDeclutterMode(), this.declutterImageWithText_ = e;
23378
23367
  }
23379
23368
  }
23380
- const Wx = {
23369
+ const Gx = {
23381
23370
  Circle: Ah,
23382
23371
  Default: ar,
23383
- Image: Dx,
23384
- LineString: Fx,
23372
+ Image: Px,
23373
+ LineString: Dx,
23385
23374
  Polygon: Ah,
23386
- Text: Gx
23375
+ Text: Nx
23387
23376
  };
23388
- class zx {
23377
+ class Wx {
23389
23378
  /**
23390
23379
  * @param {number} tolerance Tolerance.
23391
23380
  * @param {import("../../extent.js").Extent} maxExtent Max extent.
@@ -23421,7 +23410,7 @@ class zx {
23421
23410
  s === void 0 && (s = {}, this.buildersByZIndex_[n] = s);
23422
23411
  let r = s[e];
23423
23412
  if (r === void 0) {
23424
- const o = Wx[e];
23413
+ const o = Gx[e];
23425
23414
  r = new o(
23426
23415
  this.tolerance_,
23427
23416
  this.maxExtent_,
@@ -23437,7 +23426,7 @@ function id(i, t, e, n, s, r, o, l) {
23437
23426
  const a = i[t + n], h = i[t + n + 1], c = i[e - 2 * n], u = i[e - 2 * n + 1];
23438
23427
  let f, d, g, m, _, x, E, C, p = 0;
23439
23428
  for (let v = t; v < e; v += n) {
23440
- g = f, m = d, _ = void 0, x = void 0, v + n < e && (_ = i[v + n], x = i[v + n + 1]), r && v === t && (g = c, m = u), r && v === e - n && (_ = a, x = h), f = i[v], d = i[v + 1], [E, C] = Xx(
23429
+ g = f, m = d, _ = void 0, x = void 0, v + n < e && (_ = i[v + n], x = i[v + n + 1]), r && v === t && (g = c, m = u), r && v === e - n && (_ = a, x = h), f = i[v], d = i[v + 1], [E, C] = zx(
23441
23430
  f,
23442
23431
  d,
23443
23432
  g,
@@ -23451,7 +23440,7 @@ function id(i, t, e, n, s, r, o, l) {
23451
23440
  }
23452
23441
  return o.length != p && (o.length = p), o;
23453
23442
  }
23454
- function Xx(i, t, e, n, s, r, o) {
23443
+ function zx(i, t, e, n, s, r, o) {
23455
23444
  let l, a;
23456
23445
  e !== void 0 && n !== void 0 ? (l = i - e, a = t - n) : s !== void 0 && r !== void 0 ? (l = s - i, a = r - t) : (l = 1, a = 0);
23457
23446
  const h = Math.hypot(l, a), c = l / h, u = a / h;
@@ -23459,7 +23448,7 @@ function Xx(i, t, e, n, s, r, o) {
23459
23448
  return [i + l * o, t + a * o];
23460
23449
  if (s === void 0 || r === void 0)
23461
23450
  return [i + l * o, t + a * o];
23462
- const f = Tm([i, t], [e, n], [s, r]);
23451
+ const f = Rm([i, t], [e, n], [s, r]);
23463
23452
  if (Math.cos(f) > 0.998)
23464
23453
  return [i + c * o, t + u * o];
23465
23454
  const d = Math.cos(f / 2), g = Math.sin(f / 2), m = g * l + d * a, _ = -d * l + g * a, x = m * (1 / g), E = _ * (1 / g);
@@ -23480,7 +23469,7 @@ function nd(i, t) {
23480
23469
  }
23481
23470
  return i;
23482
23471
  }
23483
- function Kx(i, t, e, n, s, r, o, l, a, h, c, u, f = !0) {
23472
+ function Xx(i, t, e, n, s, r, o, l, a, h, c, u, f = !0) {
23484
23473
  let d = i[t], g = i[t + 1], m = 0, _ = 0, x = 0, E = 0;
23485
23474
  function C() {
23486
23475
  m = d, _ = g, t += n, d = i[t], g = i[t + 1], E += x, x = Math.sqrt((d - m) * (d - m) + (g - _) * (g - _));
@@ -23548,14 +23537,14 @@ const Lh = new RegExp(
23548
23537
  function xl(i, t) {
23549
23538
  return t === "start" ? t = Lh.test(i) ? "right" : "left" : t === "end" && (t = Lh.test(i) ? "left" : "right"), $r[t];
23550
23539
  }
23551
- function Yx(i, t, e) {
23540
+ function Kx(i, t, e) {
23552
23541
  return e > 0 && i.push(`
23553
23542
  `, ""), i.push(t, ""), i;
23554
23543
  }
23555
- function jx(i, t, e) {
23544
+ function Yx(i, t, e) {
23556
23545
  return e % 2 === 0 && (i += t), i;
23557
23546
  }
23558
- class Bx {
23547
+ class jx {
23559
23548
  /**
23560
23549
  * @param {number} resolution Resolution.
23561
23550
  * @param {number} pixelRatio Pixel ratio.
@@ -23590,7 +23579,7 @@ class Bx {
23590
23579
  Array.isArray(t) ? t[0] : t,
23591
23580
  a.textAlign || Ys
23592
23581
  ), f = s && o.lineWidth ? o.lineWidth : 0, d = Array.isArray(t) ? t : String(t).split(`
23593
- `).reduce(Yx, []), { width: g, height: m, widths: _, heights: x, lineWidths: E } = g0(
23582
+ `).reduce(Kx, []), { width: g, height: m, widths: _, heights: x, lineWidths: E } = d0(
23594
23583
  a,
23595
23584
  d
23596
23585
  ), C = g + f, p = [], v = (C + 2) * c[0], S = (m + f) * c[1], N = {
@@ -23727,7 +23716,7 @@ class Bx {
23727
23716
  o,
23728
23717
  /** @type {Array<*>} */
23729
23718
  l
23730
- ), _0(
23719
+ ), g0(
23731
23720
  t,
23732
23721
  s.canvasTransform,
23733
23722
  r,
@@ -23813,7 +23802,7 @@ class Bx {
23813
23802
  2,
23814
23803
  n,
23815
23804
  this.pixelCoordinates_
23816
- ), lp(this.renderedTransform_, n));
23805
+ ), op(this.renderedTransform_, n));
23817
23806
  let u = 0;
23818
23807
  const f = s.length;
23819
23808
  let d = 0, g;
@@ -24023,7 +24012,7 @@ class Bx {
24023
24012
  k[10]
24024
24013
  );
24025
24014
  A = /** @type {string|Array<string>} */
24026
- k[11], Array.isArray(A) && (A = A.reduce(jx, "")), D = /** @type {string} */
24015
+ k[11], Array.isArray(A) && (A = A.reduce(Yx, "")), D = /** @type {string} */
24027
24016
  k[12];
24028
24017
  const Va = [
24029
24018
  /** @type {number} */
@@ -24041,9 +24030,9 @@ class Bx {
24041
24030
  ];
24042
24031
  let ts;
24043
24032
  Jn in this.widths_ ? ts = this.widths_[Jn] : (ts = {}, this.widths_[Jn] = ts);
24044
- const Za = Lx(c, ue, fe, 2), Ha = Math.abs(Qn[0]) * ah(Jn, A, ts);
24033
+ const Za = Mx(c, ue, fe, 2), Ha = Math.abs(Qn[0]) * ah(Jn, A, ts);
24045
24034
  if (cr || Ha <= Za) {
24046
- const Ft = this.textStates[D].textAlign, ji = (Za - Ha) * xl(A, Ft), me = Kx(
24035
+ const Ft = this.textStates[D].textAlign, ji = (Za - Ha) * xl(A, Ft), me = Xx(
24047
24036
  c,
24048
24037
  ue,
24049
24038
  fe,
@@ -24251,11 +24240,11 @@ const qi = [
24251
24240
  "Image",
24252
24241
  "Text",
24253
24242
  "Default"
24254
- ], sd = ["Image", "Text"], Ux = qi.filter(
24243
+ ], sd = ["Image", "Text"], Bx = qi.filter(
24255
24244
  (i) => !sd.includes(i)
24256
24245
  );
24257
24246
  let rd = !1, od = !1;
24258
- function Vx() {
24247
+ function Ux() {
24259
24248
  let i = 0;
24260
24249
  const t = (n) => {
24261
24250
  const s = Nt(1, 1, null, { willReadFrequently: n });
@@ -24271,7 +24260,7 @@ function Vx() {
24271
24260
  [t(void 0)]: void 0
24272
24261
  }[i], od = !0;
24273
24262
  }
24274
- class Zx {
24263
+ class Vx {
24275
24264
  /**
24276
24265
  * @param {import("../../extent.js").Extent} maxExtent Max extent for clipping. When a
24277
24266
  * `maxExtent` was set on the Builder for this executor group, the same `maxExtent`
@@ -24309,7 +24298,7 @@ class Zx {
24309
24298
  const r = t[n];
24310
24299
  for (const o in r) {
24311
24300
  const l = r[o];
24312
- s[o] = new Bx(
24301
+ s[o] = new jx(
24313
24302
  this.resolution_,
24314
24303
  this.pixelRatio_,
24315
24304
  this.overlaps_,
@@ -24343,7 +24332,7 @@ class Zx {
24343
24332
  * @template T
24344
24333
  */
24345
24334
  forEachFeatureAtCoordinate(t, e, n, s, r, o) {
24346
- od === !1 && Vx(), s = Math.round(s);
24335
+ od === !1 && Ux(), s = Math.round(s);
24347
24336
  const l = s * 2 + 1, a = yi(
24348
24337
  this.hitDetectionTransform_,
24349
24338
  s + 0.5,
@@ -24368,7 +24357,7 @@ class Zx {
24368
24357
  e * (this.renderBuffer_ + s),
24369
24358
  u
24370
24359
  ));
24371
- const f = Hx(s);
24360
+ const f = Zx(s);
24372
24361
  let d;
24373
24362
  function g(v, S, N) {
24374
24363
  const M = c.getImageData(
@@ -24434,7 +24423,7 @@ class Zx {
24434
24423
  */
24435
24424
  execute(t, e, n, s, r, o, l) {
24436
24425
  const a = Object.keys(this.executorsByZIndex_).map(Number);
24437
- a.sort(l ? em : hi), o = o || qi;
24426
+ a.sort(l ? tm : hi), o = o || qi;
24438
24427
  const h = qi.length;
24439
24428
  for (let c = 0, u = a.length; c < u; ++c) {
24440
24429
  const f = a[c].toString(), d = this.executorsByZIndex_[f];
@@ -24483,7 +24472,7 @@ class Zx {
24483
24472
  }
24484
24473
  }
24485
24474
  const El = {};
24486
- function Hx(i) {
24475
+ function Zx(i) {
24487
24476
  if (El[i] !== void 0)
24488
24477
  return El[i];
24489
24478
  const t = i * 2 + 1, e = i * i, n = new Array(e + 1);
@@ -24500,7 +24489,7 @@ function Hx(i) {
24500
24489
  n[r] && s.push(...n[r]);
24501
24490
  return El[i] = s, s;
24502
24491
  }
24503
- class $x extends ed {
24492
+ class Hx extends ed {
24504
24493
  /**
24505
24494
  * @param {CanvasRenderingContext2D|OffscreenCanvasRenderingContext2D} context Context.
24506
24495
  * @param {number} pixelRatio Pixel ratio.
@@ -24670,7 +24659,7 @@ class $x extends ed {
24670
24659
  )), !!ce(this.extent_, t.getExtent())) {
24671
24660
  if (this.fillState_ || this.strokeState_) {
24672
24661
  this.fillState_ && this.setContextFillState_(this.fillState_), this.strokeState_ && this.setContextStrokeState_(this.strokeState_);
24673
- const e = pp(
24662
+ const e = mp(
24674
24663
  t,
24675
24664
  this.transform_,
24676
24665
  this.pixelCoordinates_
@@ -25111,10 +25100,10 @@ class $x extends ed {
25111
25100
  }
25112
25101
  }
25113
25102
  const Ye = 0.5;
25114
- function qx(i, t, e, n, s, r, o, l, a) {
25103
+ function $x(i, t, e, n, s, r, o, l, a) {
25115
25104
  const h = a ? jr(s, a) : s, c = i[0] * Ye, u = i[1] * Ye, f = Nt(c, u);
25116
25105
  f.imageSmoothingEnabled = !1;
25117
- const d = f.canvas, g = new $x(
25106
+ const d = f.canvas, g = new Hx(
25118
25107
  f,
25119
25108
  Ye,
25120
25109
  s,
@@ -25200,7 +25189,7 @@ function qx(i, t, e, n, s, r, o, l, a) {
25200
25189
  }
25201
25190
  return f.getImageData(0, 0, d.width, d.height);
25202
25191
  }
25203
- function Jx(i, t, e) {
25192
+ function qx(i, t, e) {
25204
25193
  const n = [];
25205
25194
  if (e) {
25206
25195
  const s = Math.floor(Math.round(i[0]) * Ye), r = Math.floor(Math.round(i[1]) * Ye), o = (Lt(s, 0, e.width - 1) + Lt(r, 0, e.height - 1) * e.width) * 4, l = e.data[o], a = e.data[o + 1], c = e.data[o + 2] + 256 * (a + 256 * l), u = Math.floor((256 * 256 * 256 - 1) / t.length);
@@ -25208,17 +25197,17 @@ function Jx(i, t, e) {
25208
25197
  }
25209
25198
  return n;
25210
25199
  }
25211
- const Qx = 0.5, ld = {
25212
- Point: lE,
25213
- LineString: sE,
25214
- Polygon: cE,
25215
- MultiPoint: aE,
25216
- MultiLineString: rE,
25217
- MultiPolygon: oE,
25218
- GeometryCollection: nE,
25219
- Circle: eE
25200
+ const Jx = 0.5, ld = {
25201
+ Point: oE,
25202
+ LineString: nE,
25203
+ Polygon: aE,
25204
+ MultiPoint: lE,
25205
+ MultiLineString: sE,
25206
+ MultiPolygon: rE,
25207
+ GeometryCollection: iE,
25208
+ Circle: tE
25220
25209
  };
25221
- function tE(i, t) {
25210
+ function Qx(i, t) {
25222
25211
  return parseInt(ft(i), 10) - parseInt(ft(t), 10);
25223
25212
  }
25224
25213
  function Oh(i, t) {
@@ -25226,9 +25215,9 @@ function Oh(i, t) {
25226
25215
  return e * e;
25227
25216
  }
25228
25217
  function ad(i, t) {
25229
- return Qx * i / t;
25218
+ return Jx * i / t;
25230
25219
  }
25231
- function eE(i, t, e, n, s) {
25220
+ function tE(i, t, e, n, s) {
25232
25221
  const r = e.getFill(), o = e.getStroke();
25233
25222
  if (r || o) {
25234
25223
  const a = i.getBuilder(e.getZIndex(), "Circle");
@@ -25250,7 +25239,7 @@ function Ph(i, t, e, n, s, r, o, l) {
25250
25239
  const c = e.getFill();
25251
25240
  c && c.loading() && a.push(c.ready());
25252
25241
  const u = a.length > 0;
25253
- return u && Promise.all(a).then(() => s(null)), iE(
25242
+ return u && Promise.all(a).then(() => s(null)), eE(
25254
25243
  i,
25255
25244
  t,
25256
25245
  e,
@@ -25260,7 +25249,7 @@ function Ph(i, t, e, n, s, r, o, l) {
25260
25249
  l
25261
25250
  ), u;
25262
25251
  }
25263
- function iE(i, t, e, n, s, r, o) {
25252
+ function eE(i, t, e, n, s, r, o) {
25264
25253
  const l = e.getGeometryFunction()(t);
25265
25254
  if (!l)
25266
25255
  return;
@@ -25301,7 +25290,7 @@ function cd(i, t, e, n, s) {
25301
25290
  s
25302
25291
  );
25303
25292
  }
25304
- function nE(i, t, e, n, s, r) {
25293
+ function iE(i, t, e, n, s, r) {
25305
25294
  const o = t.getGeometriesArray();
25306
25295
  let l, a;
25307
25296
  for (l = 0, a = o.length; l < a; ++l) {
@@ -25316,7 +25305,7 @@ function nE(i, t, e, n, s, r) {
25316
25305
  );
25317
25306
  }
25318
25307
  }
25319
- function sE(i, t, e, n, s) {
25308
+ function nE(i, t, e, n, s) {
25320
25309
  const r = e.getStroke();
25321
25310
  if (r) {
25322
25311
  const l = i.getBuilder(
@@ -25331,7 +25320,7 @@ function sE(i, t, e, n, s) {
25331
25320
  l.setTextStyle(o), l.drawText(t, n, s);
25332
25321
  }
25333
25322
  }
25334
- function rE(i, t, e, n, s) {
25323
+ function sE(i, t, e, n, s) {
25335
25324
  const r = e.getStroke();
25336
25325
  if (r) {
25337
25326
  const l = i.getBuilder(
@@ -25346,7 +25335,7 @@ function rE(i, t, e, n, s) {
25346
25335
  l.setTextStyle(o), l.drawText(t, n, s);
25347
25336
  }
25348
25337
  }
25349
- function oE(i, t, e, n, s) {
25338
+ function rE(i, t, e, n, s) {
25350
25339
  const r = e.getFill(), o = e.getStroke();
25351
25340
  if (o || r) {
25352
25341
  const a = i.getBuilder(e.getZIndex(), "Polygon");
@@ -25358,7 +25347,7 @@ function oE(i, t, e, n, s) {
25358
25347
  a.setTextStyle(l), a.drawText(t, n, s);
25359
25348
  }
25360
25349
  }
25361
- function lE(i, t, e, n, s, r) {
25350
+ function oE(i, t, e, n, s, r) {
25362
25351
  const o = e.getImage(), l = e.getText(), a = l && l.getText(), h = r && o && a ? {} : void 0;
25363
25352
  if (o) {
25364
25353
  if (o.getImageState() != nt.LOADED)
@@ -25371,7 +25360,7 @@ function lE(i, t, e, n, s, r) {
25371
25360
  c.setTextStyle(l, h), c.drawText(t, n, s);
25372
25361
  }
25373
25362
  }
25374
- function aE(i, t, e, n, s, r) {
25363
+ function lE(i, t, e, n, s, r) {
25375
25364
  const o = e.getImage(), l = o && o.getOpacity() !== 0, a = e.getText(), h = a && a.getText(), c = r && l && h ? {} : void 0;
25376
25365
  if (l) {
25377
25366
  if (o.getImageState() != nt.LOADED)
@@ -25384,7 +25373,7 @@ function aE(i, t, e, n, s, r) {
25384
25373
  u.setTextStyle(a, c), u.drawText(t, n, s);
25385
25374
  }
25386
25375
  }
25387
- function cE(i, t, e, n, s) {
25376
+ function aE(i, t, e, n, s) {
25388
25377
  const r = e.getFill(), o = e.getStroke();
25389
25378
  if (r || o) {
25390
25379
  const a = i.getBuilder(e.getZIndex(), "Polygon");
@@ -25396,7 +25385,7 @@ function cE(i, t, e, n, s) {
25396
25385
  a.setTextStyle(l), a.drawText(t, n, s);
25397
25386
  }
25398
25387
  }
25399
- class hE extends Hf {
25388
+ class cE extends Hf {
25400
25389
  /**
25401
25390
  * @param {import("../../layer/BaseVector.js").default} vectorLayer Vector layer.
25402
25391
  */
@@ -25428,7 +25417,7 @@ class hE extends Hf {
25428
25417
  N,
25429
25418
  h,
25430
25419
  m,
25431
- n === void 0 ? qi : n ? sd : Ux,
25420
+ n === void 0 ? qi : n ? sd : Bx,
25432
25421
  n ? f && e.declutter[f] : void 0
25433
25422
  );
25434
25423
  } while (++S < v);
@@ -25550,7 +25539,7 @@ class hE extends Hf {
25550
25539
  ), _ -= x;
25551
25540
  }
25552
25541
  const m = Yr();
25553
- this.hitDetectionImageData_ = qx(
25542
+ this.hitDetectionImageData_ = $x(
25554
25543
  n,
25555
25544
  c,
25556
25545
  this.renderedFeatures_,
@@ -25563,7 +25552,7 @@ class hE extends Hf {
25563
25552
  );
25564
25553
  }
25565
25554
  e(
25566
- Jx(t, this.renderedFeatures_, this.hitDetectionImageData_)
25555
+ qx(t, this.renderedFeatures_, this.hitDetectionImageData_)
25567
25556
  );
25568
25557
  });
25569
25558
  }
@@ -25643,7 +25632,7 @@ class hE extends Hf {
25643
25632
  this.animatingOrInteracting_ = !1;
25644
25633
  const a = t.extent, h = t.viewState, c = h.projection, u = h.resolution, f = t.pixelRatio, d = e.getRevision(), g = e.getRenderBuffer();
25645
25634
  let m = e.getRenderOrder();
25646
- m === void 0 && (m = tE);
25635
+ m === void 0 && (m = Qx);
25647
25636
  const _ = h.center.slice(), x = yo(
25648
25637
  a,
25649
25638
  g * u
@@ -25672,7 +25661,7 @@ class hE extends Hf {
25672
25661
  if (this.ready && this.renderedResolution_ == u && this.renderedPixelRatio_ === f && this.renderedRevision_ == d && this.renderedRenderOrder_ == m && this.renderedFrameDeclutter_ === !!t.declutter && us(this.wrappedRenderedExtent_, x))
25673
25662
  return Ki(this.renderedExtent_, E) || (this.hitDetectionImageData_ = null, this.renderedExtent_ = E), this.renderedCenter_ = _, this.replayGroupChanged = !1, !0;
25674
25663
  this.replayGroup_ = null;
25675
- const S = new zx(
25664
+ const S = new Wx(
25676
25665
  ad(u, f),
25677
25666
  x,
25678
25667
  u,
@@ -25684,7 +25673,7 @@ class hE extends Hf {
25684
25673
  const F = C[z], q = jr(F, c);
25685
25674
  n.loadFeatures(
25686
25675
  q,
25687
- rp(u, c),
25676
+ sp(u, c),
25688
25677
  N
25689
25678
  );
25690
25679
  }
@@ -25720,7 +25709,7 @@ class hE extends Hf {
25720
25709
  for (let z = 0, P = B.length; z < P; ++z)
25721
25710
  U(B[z], z);
25722
25711
  this.renderedFeatures_ = B, this.ready = D;
25723
- const V = S.finish(), gt = new Zx(
25712
+ const V = S.finish(), gt = new Vx(
25724
25713
  x,
25725
25714
  u,
25726
25715
  f,
@@ -25771,7 +25760,7 @@ class hE extends Hf {
25771
25760
  return a;
25772
25761
  }
25773
25762
  }
25774
- class uE extends Kf {
25763
+ class hE extends Kf {
25775
25764
  /**
25776
25765
  * @param {Options<VectorSourceType, FeatureType>} [options] Options.
25777
25766
  */
@@ -25782,10 +25771,10 @@ class uE extends Kf {
25782
25771
  * @override
25783
25772
  */
25784
25773
  createRenderer() {
25785
- return new hE(this);
25774
+ return new cE(this);
25786
25775
  }
25787
25776
  }
25788
- const fE = ({
25777
+ const uE = ({
25789
25778
  data: i,
25790
25779
  map: t,
25791
25780
  pointIconSrc: e
@@ -25823,8 +25812,8 @@ const fE = ({
25823
25812
  font: '700 0.875rem "Open Sans", "Arial", sans-serif'
25824
25813
  })
25825
25814
  })), s[c];
25826
- }, o = () => new uE({
25827
- source: new Px({
25815
+ }, o = () => new hE({
25816
+ source: new Ox({
25828
25817
  distance: Number.parseInt(40, 10),
25829
25818
  minDistance: Number.parseInt(20, 10),
25830
25819
  source: new td({
@@ -25838,16 +25827,25 @@ const fE = ({
25838
25827
  gg(() => {
25839
25828
  t.value && i.value && (t.value.addLayer(o()), l());
25840
25829
  });
25841
- }, dE = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2058_7122)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%2012C10.9%2012%2010%2011.1%2010%2010C10%208.9%2010.9%208%2012%208C13.1%208%2014%208.9%2014%2010C14%2011.1%2013.1%2012%2012%2012ZM12%202C16.2%202%2020%205.22%2020%2010.2C20%2013.52%2017.33%2017.45%2012%2022C6.67%2017.45%204%2013.52%204%2010.2C4%205.22%207.8%202%2012%202Z'%20fill='black'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2058_7122'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", wl = "europeana-map-map", gE = {
25830
+ }, fE = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2058_7122)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%2012C10.9%2012%2010%2011.1%2010%2010C10%208.9%2010.9%208%2012%208C13.1%208%2014%208.9%2014%2010C14%2011.1%2013.1%2012%2012%2012ZM12%202C16.2%202%2020%205.22%2020%2010.2C20%2013.52%2017.33%2017.45%2012%2022C6.67%2017.45%204%2013.52%204%2010.2C4%205.22%207.8%202%2012%202Z'%20fill='black'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2058_7122'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", wl = "europeana-map-map", dE = {
25842
25831
  __name: "EuropeanaMap",
25843
25832
  props: Gu,
25844
25833
  setup(i) {
25845
- const t = i, { data: e, centre: n } = Q_({ json: t.json, url: t.url }), { map: s } = Sx({ centre: n, target: wl });
25846
- return fE({ data: e, map: s, pointIconSrc: dE }), (r, o) => (i_(), r_("div", {
25834
+ const t = i, e = /* @__PURE__ */ lo(null);
25835
+ if (t.json)
25836
+ e.value = JSON.parse(t.json);
25837
+ else if (t.url)
25838
+ J_(t.url).json().then((s) => {
25839
+ e.value = s.data.value;
25840
+ });
25841
+ else
25842
+ throw new Error("No data JSON or URL supplied in props.");
25843
+ const { map: n } = Tx({ target: wl });
25844
+ return uE({ data: e, map: n, pointIconSrc: fE }), (s, r) => (i_(), r_("div", {
25847
25845
  id: wl,
25848
25846
  class: io(wl)
25849
25847
  }));
25850
25848
  }
25851
25849
  };
25852
- U_(gE);
25850
+ U_(dE);
25853
25851
  //# sourceMappingURL=europeana-map.app.js.map