@idmwx/idmui-gl3 6.3.7 → 6.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -535,7 +535,7 @@ function aa(a, e, t, r, i, s) {
535
535
  return g(), y("div", {
536
536
  key: h.key,
537
537
  class: ee(["layer flex-between", s.computeLayerClass(h, i.activeOtherLayers)]),
538
- onClick: (b) => s.handleOtherLayerPick(h)
538
+ onClick: (v) => s.handleOtherLayerPick(h)
539
539
  }, [
540
540
  o("div", Kt, [
541
541
  o("div", Xt, [
@@ -562,11 +562,11 @@ function aa(a, e, t, r, i, s) {
562
562
  value: h.name
563
563
  }, {
564
564
  default: Pe(() => {
565
- var b, x, E, f, I, _;
565
+ var v, x, E, f, I, _;
566
566
  return [
567
567
  ue(k(h.name) + " ", 1),
568
568
  p !== 0 ? (g(), y("span", $t, k(h.resolution) + "km " + k(h.length) + "days", 1)) : q("", !0),
569
- p === 0 ? (g(), y("div", ea, "Provides the best forecast")) : (E = (x = (b = h == null ? void 0 : h.update) == null ? void 0 : b.default) == null ? void 0 : x.meta) != null && E.initialisationTime ? (g(), y("div", ta, "Update: " + k(s.computeDateZ((_ = (I = (f = h == null ? void 0 : h.update) == null ? void 0 : f.default) == null ? void 0 : I.meta) == null ? void 0 : _.initialisationTime)), 1)) : q("", !0)
569
+ p === 0 ? (g(), y("div", ea, "Provides the best forecast")) : (E = (x = (v = h == null ? void 0 : h.update) == null ? void 0 : v.default) == null ? void 0 : x.meta) != null && E.initialisationTime ? (g(), y("div", ta, "Update: " + k(s.computeDateZ((_ = (I = (f = h == null ? void 0 : h.update) == null ? void 0 : f.default) == null ? void 0 : I.meta) == null ? void 0 : _.initialisationTime)), 1)) : q("", !0)
570
570
  ];
571
571
  }),
572
572
  _: 2
@@ -775,8 +775,8 @@ class et {
775
775
  * @param [lb.x, lb.y, rt.x, rt.y]
776
776
  */
777
777
  getBoundPixel() {
778
- const e = this.map.getBounds(), t = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [s, n] = this.convertNLng(r[0]), [l, c] = this.convertNLng(i[0]), [d, h] = this.mercator.px([s, r[1]], t), [p, b] = this.mercator.px([l, i[1]], t), x = Math.round(this.mercator.size * Math.pow(2, t) * (n + c));
779
- return [p, b, d + x, h];
778
+ const e = this.map.getBounds(), t = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [s, n] = this.convertNLng(r[0]), [l, c] = this.convertNLng(i[0]), [d, h] = this.mercator.px([s, r[1]], t), [p, v] = this.mercator.px([l, i[1]], t), x = Math.round(this.mercator.size * Math.pow(2, t) * (n + c));
779
+ return [p, v, d + x, h];
780
780
  }
781
781
  /**
782
782
  * [视窗边界像素宽度]
@@ -957,7 +957,7 @@ class We {
957
957
  sRange: t.getUniformLocation(r, "u_range_s")
958
958
  };
959
959
  h.resolution && t.uniform2f(h.resolution, t.canvas.width * e.ratio, t.canvas.height * e.ratio), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, i), h.image && t.uniform1i(h.image, 0), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, s), h.color && t.uniform1i(h.color, 1), l != null && l.uvRange && (l != null && l.sRange) && (h.uvRange && t.uniform2f(h.uvRange, l.uvRange[0], l.uvRange[1]), h.sRange && t.uniform2f(h.sRange, l.sRange[0], l.sRange[1])), h.scale && t.uniform1f(h.scale, (l == null ? void 0 : l.scale) || 1);
960
- const p = e.getBoundPixel(), b = e.map.getZoom() + 1, x = e.getWorldCopy(p, b);
960
+ const p = e.getBoundPixel(), v = e.map.getZoom() + 1, x = e.getWorldCopy(p, v);
961
961
  for (const E of x) {
962
962
  const f = (E[0] - p[0]) * e.ratio, I = (E[1] - p[3]) * e.ratio, _ = E[2] * e.ratio, [A, w, m, L] = [f, _ + f, I, _ + I], u = new Float32Array([A, m, w, m, A, L, A, L, w, m, w, L]);
963
963
  t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, u, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
@@ -4708,18 +4708,18 @@ class ht {
4708
4708
  const i = e.toLowerCase().split(","), s = [], n = [];
4709
4709
  for (const l of i) {
4710
4710
  let c = Xe.find((h) => {
4711
- var p, b, x;
4712
- return ((p = h.models) == null ? void 0 : p.includes(l)) || ((b = h.alias) == null ? void 0 : b.toLowerCase()) === l || ((x = h.name) == null ? void 0 : x.toLowerCase()) === l;
4711
+ var p, v, x;
4712
+ return ((p = h.models) == null ? void 0 : p.includes(l)) || ((v = h.alias) == null ? void 0 : v.toLowerCase()) === l || ((x = h.name) == null ? void 0 : x.toLowerCase()) === l;
4713
4713
  }), d = Je.find((h) => {
4714
- var p, b, x;
4715
- return ((p = h.models) == null ? void 0 : p.includes(l)) || ((b = h.alias) == null ? void 0 : b.toLowerCase()) === l || ((x = h.name) == null ? void 0 : x.toLowerCase()) === l;
4714
+ var p, v, x;
4715
+ return ((p = h.models) == null ? void 0 : p.includes(l)) || ((v = h.alias) == null ? void 0 : v.toLowerCase()) === l || ((x = h.name) == null ? void 0 : x.toLowerCase()) === l;
4716
4716
  });
4717
4717
  c = c || Xe.find((h) => {
4718
- var p, b;
4719
- return ((p = h.alias) == null ? void 0 : p.toLowerCase()) === ((b = d == null ? void 0 : d.alias) == null ? void 0 : b.toLowerCase());
4718
+ var p, v;
4719
+ return ((p = h.alias) == null ? void 0 : p.toLowerCase()) === ((v = d == null ? void 0 : d.alias) == null ? void 0 : v.toLowerCase());
4720
4720
  }), d = d || Je.find((h) => {
4721
- var p, b;
4722
- return ((p = h.alias) == null ? void 0 : p.toLowerCase()) === ((b = c == null ? void 0 : c.alias) == null ? void 0 : b.toLowerCase());
4721
+ var p, v;
4722
+ return ((p = h.alias) == null ? void 0 : p.toLowerCase()) === ((v = c == null ? void 0 : c.alias) == null ? void 0 : v.toLowerCase());
4723
4723
  }), c = c || Xe[0], d = d || Je[0], s.push((t = c.models) != null && t.includes(l) ? l : c.model), n.push((r = d.models) != null && r.includes(l) ? l : d.model);
4724
4724
  }
4725
4725
  return {
@@ -4737,7 +4737,7 @@ class ht {
4737
4737
  }), i;
4738
4738
  }
4739
4739
  static pickHourly(e, t) {
4740
- var r, i, s, n, l, c, d, h, p, b, x, E, f, I, _, A, w, m, L, u, v, z, D, N, H, j, G, W, ce, re, de, we, pe, ve, me, U, V, ye, ne, fe, xe, be, _e, B, ke, Le, De, Be, ze, Ie;
4740
+ var r, i, s, n, l, c, d, h, p, v, x, E, f, I, _, A, w, m, L, u, b, z, D, N, H, j, G, W, ce, re, de, we, pe, ve, me, U, V, ye, ne, fe, xe, be, _e, B, ke, Le, De, Be, ze, Ie;
4741
4741
  const ie = typeof t == "string" ? ae(t) : t, J = e == null ? void 0 : e.weather, P = e == null ? void 0 : e.marine, Ce = ae((i = (r = J == null ? void 0 : J[0]) == null ? void 0 : r.hourly) == null ? void 0 : i.date).utc(), K = Ce.clone().add((l = (n = (s = J == null ? void 0 : J[0]) == null ? void 0 : s.hourly) == null ? void 0 : n.time) == null ? void 0 : l.at(0), "h"), Z = Ce.clone().add((h = (d = (c = J == null ? void 0 : J[0]) == null ? void 0 : c.hourly) == null ? void 0 : d.time) == null ? void 0 : h.at(-1), "h"), Se = [];
4742
4742
  if (ie.isBetween(K, Z, "millisecond", "[]")) {
4743
4743
  const S = ie.utc().diff(K, "h", !1);
@@ -4749,7 +4749,7 @@ class ht {
4749
4749
  for (let Ne = S - (S - 1) % 3; Ne <= S; Ne++)
4750
4750
  Te += (p = O == null ? void 0 : O.precipitation) == null ? void 0 : p.at(Ne);
4751
4751
  for (let Ne = S - (S - 1) % 6; Ne <= S; Ne++)
4752
- Qe += (b = O == null ? void 0 : O.precipitation) == null ? void 0 : b.at(Ne);
4752
+ Qe += (v = O == null ? void 0 : O.precipitation) == null ? void 0 : v.at(Ne);
4753
4753
  Ae = {
4754
4754
  temp: (x = O == null ? void 0 : O.temperature_2m) == null ? void 0 : x.at(S),
4755
4755
  apparentTemp: (E = O == null ? void 0 : O.apparent_temperature) == null ? void 0 : E.at(S),
@@ -4766,7 +4766,7 @@ class ht {
4766
4766
  code: (L = O == null ? void 0 : O.weather_code) == null ? void 0 : L.at(S),
4767
4767
  visibility: this.m2nm((u = O == null ? void 0 : O.visibility) == null ? void 0 : u.at(S)),
4768
4768
  wind: {
4769
- speed: (v = O == null ? void 0 : O.wind_speed_10m) == null ? void 0 : v.at(S),
4769
+ speed: (b = O == null ? void 0 : O.wind_speed_10m) == null ? void 0 : b.at(S),
4770
4770
  kts: (z = O == null ? void 0 : O.wind_speed_10m) == null ? void 0 : z.at(S),
4771
4771
  degree: (D = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : D.at(S),
4772
4772
  bearing: ((N = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : N.at(S)) !== null ? (((H = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : H.at(S)) + 180) % 360 : null,
@@ -4846,7 +4846,7 @@ class ht {
4846
4846
  };
4847
4847
  }
4848
4848
  static pickDaily(e, t) {
4849
- var r, i, s, n, l, c, d, h, p, b, x, E, f, I, _, A, w, m, L, u, v, z, D, N, H, j, G, W, ce, re, de, we, pe, ve, me, U, V, ye, ne, fe, xe, be, _e, B;
4849
+ var r, i, s, n, l, c, d, h, p, v, x, E, f, I, _, A, w, m, L, u, b, z, D, N, H, j, G, W, ce, re, de, we, pe, ve, me, U, V, ye, ne, fe, xe, be, _e, B;
4850
4850
  const ke = typeof t == "string" ? ae(t) : t, Le = e == null ? void 0 : e.weather, De = e == null ? void 0 : e.marine, Be = ae((s = (i = (r = Le == null ? void 0 : Le[0]) == null ? void 0 : r.daily) == null ? void 0 : i.time) == null ? void 0 : s.at(0)), ze = ae((c = (l = (n = Le == null ? void 0 : Le[0]) == null ? void 0 : n.daily) == null ? void 0 : l.time) == null ? void 0 : c.at(-1)), Ie = [];
4851
4851
  if (ke.isBetween(Be, ze, "millisecond", "[]")) {
4852
4852
  let ie, J;
@@ -4859,7 +4859,7 @@ class ht {
4859
4859
  temp: {
4860
4860
  max: (h = K.temperature_2m_max) == null ? void 0 : h.at(P),
4861
4861
  min: (p = K.temperature_2m_min) == null ? void 0 : p.at(P),
4862
- mean: (b = K.temperature_2m_mean) == null ? void 0 : b.at(P)
4862
+ mean: (v = K.temperature_2m_mean) == null ? void 0 : v.at(P)
4863
4863
  },
4864
4864
  apparentTemp: {
4865
4865
  max: (x = K.apparent_temperature_max) == null ? void 0 : x.at(P),
@@ -4876,7 +4876,7 @@ class ht {
4876
4876
  rh: {
4877
4877
  max: (L = K.relative_humidity_2m_max) == null ? void 0 : L.at(P),
4878
4878
  min: (u = K.relative_humidity_2m_min) == null ? void 0 : u.at(P),
4879
- mean: (v = K.relative_humidity_2m_mean) == null ? void 0 : v.at(P)
4879
+ mean: (b = K.relative_humidity_2m_mean) == null ? void 0 : b.at(P)
4880
4880
  },
4881
4881
  wind: {
4882
4882
  speed: (z = K.wind_speed_10m_max) == null ? void 0 : z.at(P),
@@ -5467,7 +5467,7 @@ const Oa = {
5467
5467
  ));
5468
5468
  },
5469
5469
  handleRender() {
5470
- var a, e, t, r, i, s, n, l, c, d, h, p, b;
5470
+ var a, e, t, r, i, s, n, l, c, d, h, p, v;
5471
5471
  if (!this.map)
5472
5472
  setTimeout(() => {
5473
5473
  this.handleRender();
@@ -5635,12 +5635,9 @@ const Oa = {
5635
5635
  }
5636
5636
  });
5637
5637
  else {
5638
- const _ = (h = this.tropicals.data.features) == null ? void 0 : h.filter((u) => {
5639
- var v;
5640
- return u.geometry.type === "Point" && u.properties.type === "forecast" && ((v = u.properties) == null ? void 0 : v.model) === "ecmwf" && u.properties.name === "melissa";
5641
- });
5642
- let A = 0, w = 0, m = 0, L = (b = (p = this.findClosestToNumber(_, "hour", 12)) == null ? void 0 : p.properties) == null ? void 0 : b.hour;
5643
- _.forEach((u, v) => {
5638
+ const _ = (h = this.tropicals.data.features) == null ? void 0 : h.filter((u) => u.geometry.type === "Point" && u.properties.type === "forecast");
5639
+ let A = 0, w = 0, m = 0, L = (v = (p = this.findClosestToNumber(_, "hour", 12)) == null ? void 0 : p.properties) == null ? void 0 : v.hour;
5640
+ _.forEach((u, b) => {
5644
5641
  var N, H, j, G, W, ce, re, de, we, pe, ve, me, U, V, ye, ne, fe, xe, be, _e, B, ke, Le, De, Be, ze, Ie;
5645
5642
  let z;
5646
5643
  const D = this.findClosestToNumber(_, "hour", L + A * 24);
@@ -5747,7 +5744,7 @@ const Oa = {
5747
5744
  this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (a = this.interpolateMarkers) == null || a.forEach((e) => e == null ? void 0 : e.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource), this.labelMarkers.forEach((e) => e == null ? void 0 : e.remove()), this.labelMarkers = []);
5748
5745
  },
5749
5746
  handleDateChange() {
5750
- var a, e, t, r, i, s, n, l, c, d, h, p, b, x, E, f, I, _, A, w, m, L, u, v, z, D, N, H, j, G, W, ce;
5747
+ var a, e, t, r, i, s, n, l, c, d, h, p, v, x, E, f, I, _, A, w, m, L, u, b, z, D, N, H, j, G, W, ce;
5751
5748
  if ((a = this.interpolateMarkers) == null || a.forEach((re) => re == null ? void 0 : re.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
5752
5749
  const re = ae(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), de = ae.utc().add(1, "hour").set({ minute: 0, second: 0, millisecond: 0 }), we = re.isBefore(de) && de.diff(re, "h") < 2 ? de.format() : re.format(), pe = this.interpolateData.filter((U) => U.properties.date === we && !U.properties.disabled), ve = this.handleComputePolygons(pe), me = Q.featureCollection([...pe]);
5753
5750
  ve.forEach((U) => {
@@ -5769,7 +5766,7 @@ const Oa = {
5769
5766
  for (const U of pe)
5770
5767
  if (!U.properties.disabled) {
5771
5768
  let V = "#f44336";
5772
- ((l = (n = U.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((d = (c = U.properties) == null ? void 0 : c.wind) != null && d.kts) ? V = "#03f869" : ((p = (h = U.properties) == null ? void 0 : h.wind) == null ? void 0 : p.kts) >= 32 && ((x = (b = U.properties) == null ? void 0 : b.wind) == null ? void 0 : x.kts) < 47 ? V = "#f2f202" : ((f = (E = U.properties) == null ? void 0 : E.wind) == null ? void 0 : f.kts) >= 47 && ((_ = (I = U.properties) == null ? void 0 : I.wind) == null ? void 0 : _.kts) < 63 ? V = "#ff9100" : ((w = (A = U.properties) == null ? void 0 : A.wind) == null ? void 0 : w.kts) >= 63 && ((L = (m = U.properties) == null ? void 0 : m.wind) == null ? void 0 : L.kts) < 79 ? V = "#f44336" : ((v = (u = U.properties) == null ? void 0 : u.wind) == null ? void 0 : v.kts) >= 79 && ((D = (z = U.properties) == null ? void 0 : z.wind) == null ? void 0 : D.kts) < 94 ? V = "#f903d0" : ((H = (N = U.properties) == null ? void 0 : N.wind) == null ? void 0 : H.kts) >= 94 ? V = "#8702f9" : V = "#f44336";
5769
+ ((l = (n = U.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((d = (c = U.properties) == null ? void 0 : c.wind) != null && d.kts) ? V = "#03f869" : ((p = (h = U.properties) == null ? void 0 : h.wind) == null ? void 0 : p.kts) >= 32 && ((x = (v = U.properties) == null ? void 0 : v.wind) == null ? void 0 : x.kts) < 47 ? V = "#f2f202" : ((f = (E = U.properties) == null ? void 0 : E.wind) == null ? void 0 : f.kts) >= 47 && ((_ = (I = U.properties) == null ? void 0 : I.wind) == null ? void 0 : _.kts) < 63 ? V = "#ff9100" : ((w = (A = U.properties) == null ? void 0 : A.wind) == null ? void 0 : w.kts) >= 63 && ((L = (m = U.properties) == null ? void 0 : m.wind) == null ? void 0 : L.kts) < 79 ? V = "#f44336" : ((b = (u = U.properties) == null ? void 0 : u.wind) == null ? void 0 : b.kts) >= 79 && ((D = (z = U.properties) == null ? void 0 : z.wind) == null ? void 0 : D.kts) < 94 ? V = "#f903d0" : ((H = (N = U.properties) == null ? void 0 : N.wind) == null ? void 0 : H.kts) >= 94 ? V = "#8702f9" : V = "#f44336";
5773
5770
  const ye = `<svg t="1719918955501"
5774
5771
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
5775
5772
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -5793,7 +5790,7 @@ const Oa = {
5793
5790
  (W = this.map) != null && W.getSource(this.interpolateSource) && ((ce = this.map) == null || ce.getSource(this.interpolateSource).setData(this.empty));
5794
5791
  },
5795
5792
  handleClick(a) {
5796
- var s, n, l, c, d, h, p, b;
5793
+ var s, n, l, c, d, h, p, v;
5797
5794
  const e = a.features[0], t = (n = (s = this.tropicals) == null ? void 0 : s.data) == null ? void 0 : n.features.filter(
5798
5795
  (x) => {
5799
5796
  var E;
@@ -5809,7 +5806,7 @@ const Oa = {
5809
5806
  name: (d = e == null ? void 0 : e.properties) == null ? void 0 : d.name,
5810
5807
  forecasts: t.map((x) => x.properties),
5811
5808
  history: (h = r[0]) == null ? void 0 : h.properties,
5812
- showCircle: (b = (p = t[0]) == null ? void 0 : p.properties) == null ? void 0 : b.showCircle
5809
+ showCircle: (v = (p = t[0]) == null ? void 0 : p.properties) == null ? void 0 : v.showCircle
5813
5810
  }, this.showTropicals = !0;
5814
5811
  const i = document.getElementById("idm-tropical-gl3");
5815
5812
  this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new Re.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
@@ -5923,7 +5920,7 @@ const Oa = {
5923
5920
  style: { "justify-content": "flex-start" }
5924
5921
  }, ai = { class: "forecast-models" }, ii = ["onClick"], ri = { class: "more" };
5925
5922
  function si(a, e, t, r, i, s) {
5926
- var n, l, c, d, h, p, b, x, E, f, I, _, A, w, m, L, u, v, z;
5923
+ var n, l, c, d, h, p, v, x, E, f, I, _, A, w, m, L, u, b, z;
5927
5924
  return Fe((g(), y("div", Ra, [
5928
5925
  o("div", ja, [
5929
5926
  o("div", {
@@ -5934,7 +5931,7 @@ function si(a, e, t, r, i, s) {
5934
5931
  (l = (n = i.activeTropicals) == null ? void 0 : n.history) != null && l.level ? (g(), y("span", Ga, k((d = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : d.level) + " , ", 1)) : q("", !0),
5935
5932
  ue(k((h = i.activeTropicals) == null ? void 0 : h.name), 1)
5936
5933
  ]),
5937
- o("div", Ua, " Last update: " + k(s.computeTime(((b = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : b.updated) || ((f = (E = (x = i.activeTropicals) == null ? void 0 : x.forecasts) == null ? void 0 : E.filter((D) => !D.disabled)[0]) == null ? void 0 : f.date))), 1)
5934
+ o("div", Ua, " Last update: " + k(s.computeTime(((v = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : v.updated) || ((f = (E = (x = i.activeTropicals) == null ? void 0 : x.forecasts) == null ? void 0 : E.filter((D) => !D.disabled)[0]) == null ? void 0 : f.date))), 1)
5938
5935
  ]),
5939
5936
  o("div", Ya, [
5940
5937
  o("div", Ka, [
@@ -5956,7 +5953,7 @@ function si(a, e, t, r, i, s) {
5956
5953
  ]),
5957
5954
  o("div", $a, [
5958
5955
  e[6] || (e[6] = o("label", null, "Move Dir: ", -1)),
5959
- o("span", null, k((v = s.computeMovement(i.activeTropicals)) == null ? void 0 : v.deg) + " [°]", 1)
5956
+ o("span", null, k((b = s.computeMovement(i.activeTropicals)) == null ? void 0 : b.deg) + " [°]", 1)
5960
5957
  ])
5961
5958
  ]),
5962
5959
  o("div", ei, [
@@ -6695,7 +6692,7 @@ const _i = {
6695
6692
  initTableData(a) {
6696
6693
  var e, t, r, i, s, n, l, c, d;
6697
6694
  this.clearTable(), this.positionGmt = (t = (e = a == null ? void 0 : a.weather) == null ? void 0 : e[0]) == null ? void 0 : t.timezone, this.positionOffset = (i = (r = a == null ? void 0 : a.weather) == null ? void 0 : r[0]) == null ? void 0 : i.offset, this.localDate = (n = (s = Ye(this.ts)) == null ? void 0 : s.tz(this.positionGmt)) == null ? void 0 : n.format("MMM-DD/HHmm[LT]"), this.currentHourData = (l = Ke.pickHourly(a, ae(this.ts))) == null ? void 0 : l[0], ((d = (c = this.currentHourData) == null ? void 0 : c.weather) == null ? void 0 : d.isDay) === 0 ? this.isDay = !1 : this.isDay = !0, this.$nextTick(() => {
6698
- var p, b, x, E, f, I, _, A, w, m, L, u, v, z, D, N, H, j, G, W, ce, re, de, we, pe, ve, me, U, V, ye, ne, fe, xe;
6695
+ var p, v, x, E, f, I, _, A, w, m, L, u, b, z, D, N, H, j, G, W, ce, re, de, we, pe, ve, me, U, V, ye, ne, fe, xe;
6699
6696
  if (!document.getElementById("meteoMainBox"))
6700
6697
  return !1;
6701
6698
  if (!this.currentHourData)
@@ -6704,7 +6701,7 @@ const _i = {
6704
6701
  const _e = Ye(this.ts).tz(this.positionGmt).add(3 * be, "h").format();
6705
6702
  this.tableData.hours.push(_e);
6706
6703
  const B = ((p = Ke.pickHourly(a, _e)) == null ? void 0 : p[0]) || {};
6707
- this.tableData.temp.push(this.roundPrecision((b = B == null ? void 0 : B.weather) == null ? void 0 : b.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((E = (x = B == null ? void 0 : B.weather) == null ? void 0 : x.precip) == null ? void 0 : E.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((I = (f = B == null ? void 0 : B.weather) == null ? void 0 : f.precip) == null ? void 0 : I.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((_ = B == null ? void 0 : B.weather) == null ? void 0 : _.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((w = (A = B == null ? void 0 : B.weather) == null ? void 0 : A.wind) == null ? void 0 : w.kts, 1) ?? "-"), this.tableData.windDir.push((L = (m = B == null ? void 0 : B.weather) == null ? void 0 : m.wind) == null ? void 0 : L.bearing), this.tableData.windGust.push(this.roundPrecision((v = (u = B == null ? void 0 : B.weather) == null ? void 0 : u.wind) == null ? void 0 : v.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((D = (z = B == null ? void 0 : B.wave) == null ? void 0 : z.sig) == null ? void 0 : D.height, 1) ?? "-"), this.tableData.sigwaveDir.push((H = (N = B == null ? void 0 : B.wave) == null ? void 0 : N.sig) == null ? void 0 : H.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((G = (j = B == null ? void 0 : B.wave) == null ? void 0 : j.wd) == null ? void 0 : G.height, 1) ?? "-"), this.tableData.windwaveDir.push((ce = (W = B == null ? void 0 : B.wave) == null ? void 0 : W.wd) == null ? void 0 : ce.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((de = (re = B == null ? void 0 : B.wave) == null ? void 0 : re.wd) == null ? void 0 : de.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((pe = (we = B == null ? void 0 : B.wave) == null ? void 0 : we.swell) == null ? void 0 : pe.height, 1) ?? "-"), this.tableData.swellDir.push((me = (ve = B == null ? void 0 : B.wave) == null ? void 0 : ve.swell) == null ? void 0 : me.bearing), this.tableData.swellPeriod.push(this.roundPrecision((V = (U = B == null ? void 0 : B.wave) == null ? void 0 : U.swell) == null ? void 0 : V.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((ye = B == null ? void 0 : B.current) == null ? void 0 : ye.speed, 1) ?? "-"), this.tableData.currentDir.push((ne = B == null ? void 0 : B.current) == null ? void 0 : ne.bearing), this.tableData.seaLevel.push(this.roundPrecision(B == null ? void 0 : B.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(B == null ? void 0 : B.sst, 0) ?? "-"), this.tableData.weatherUrls.push((fe = B == null ? void 0 : B.weather) == null ? void 0 : fe.url), this.tableData.weatherNames.push(((xe = B == null ? void 0 : B.weather) == null ? void 0 : xe.name) ?? "-");
6704
+ this.tableData.temp.push(this.roundPrecision((v = B == null ? void 0 : B.weather) == null ? void 0 : v.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((E = (x = B == null ? void 0 : B.weather) == null ? void 0 : x.precip) == null ? void 0 : E.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((I = (f = B == null ? void 0 : B.weather) == null ? void 0 : f.precip) == null ? void 0 : I.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((_ = B == null ? void 0 : B.weather) == null ? void 0 : _.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((w = (A = B == null ? void 0 : B.weather) == null ? void 0 : A.wind) == null ? void 0 : w.kts, 1) ?? "-"), this.tableData.windDir.push((L = (m = B == null ? void 0 : B.weather) == null ? void 0 : m.wind) == null ? void 0 : L.bearing), this.tableData.windGust.push(this.roundPrecision((b = (u = B == null ? void 0 : B.weather) == null ? void 0 : u.wind) == null ? void 0 : b.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((D = (z = B == null ? void 0 : B.wave) == null ? void 0 : z.sig) == null ? void 0 : D.height, 1) ?? "-"), this.tableData.sigwaveDir.push((H = (N = B == null ? void 0 : B.wave) == null ? void 0 : N.sig) == null ? void 0 : H.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((G = (j = B == null ? void 0 : B.wave) == null ? void 0 : j.wd) == null ? void 0 : G.height, 1) ?? "-"), this.tableData.windwaveDir.push((ce = (W = B == null ? void 0 : B.wave) == null ? void 0 : W.wd) == null ? void 0 : ce.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((de = (re = B == null ? void 0 : B.wave) == null ? void 0 : re.wd) == null ? void 0 : de.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((pe = (we = B == null ? void 0 : B.wave) == null ? void 0 : we.swell) == null ? void 0 : pe.height, 1) ?? "-"), this.tableData.swellDir.push((me = (ve = B == null ? void 0 : B.wave) == null ? void 0 : ve.swell) == null ? void 0 : me.bearing), this.tableData.swellPeriod.push(this.roundPrecision((V = (U = B == null ? void 0 : B.wave) == null ? void 0 : U.swell) == null ? void 0 : V.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((ye = B == null ? void 0 : B.current) == null ? void 0 : ye.speed, 1) ?? "-"), this.tableData.currentDir.push((ne = B == null ? void 0 : B.current) == null ? void 0 : ne.bearing), this.tableData.seaLevel.push(this.roundPrecision(B == null ? void 0 : B.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(B == null ? void 0 : B.sst, 0) ?? "-"), this.tableData.weatherUrls.push((fe = B == null ? void 0 : B.weather) == null ? void 0 : fe.url), this.tableData.weatherNames.push(((xe = B == null ? void 0 : B.weather) == null ? void 0 : xe.name) ?? "-");
6708
6705
  }
6709
6706
  });
6710
6707
  },
@@ -6830,7 +6827,7 @@ const _i = {
6830
6827
  class: "main-box flex-center"
6831
6828
  };
6832
6829
  function Qr(a, e, t, r, i, s) {
6833
- var d, h, p, b, x, E, f, I, _, A, w, m, L, u, v, z, D, N, H, j, G, W, ce, re, de, we, pe, ve, me, U, V, ye, ne, fe, xe, be, _e, B, ke, Le, De, Be, ze, Ie, ie, J, P, Ce, K, Z, Se, S, Ae, Me, Te, Qe, M, O, Ge, Ue, oe, Ne, tt, at, it, rt, st, ot;
6830
+ var d, h, p, v, x, E, f, I, _, A, w, m, L, u, b, z, D, N, H, j, G, W, ce, re, de, we, pe, ve, me, U, V, ye, ne, fe, xe, be, _e, B, ke, Le, De, Be, ze, Ie, ie, J, P, Ce, K, Z, Se, S, Ae, Me, Te, Qe, M, O, Ge, Ue, oe, Ne, tt, at, it, rt, st, ot;
6834
6831
  const n = R("LocationFilled"), l = R("ElIcon"), c = R("ElTooltip");
6835
6832
  return Fe((g(), y("div", Bi, [
6836
6833
  o("div", Ii, [
@@ -6875,7 +6872,7 @@ function Qr(a, e, t, r, i, s) {
6875
6872
  F(c, {
6876
6873
  placement: "top",
6877
6874
  effect: "light",
6878
- content: (b = (p = i.currentHourData) == null ? void 0 : p.weather) == null ? void 0 : b.name,
6875
+ content: (v = (p = i.currentHourData) == null ? void 0 : p.weather) == null ? void 0 : v.name,
6879
6876
  "show-after": 1e3
6880
6877
  }, {
6881
6878
  default: Pe(() => {
@@ -7304,7 +7301,7 @@ function Qr(a, e, t, r, i, s) {
7304
7301
  [Oe, i.activeIndex === 4]
7305
7302
  ])
7306
7303
  ], 512), [
7307
- [Oe, ((z = (v = i.tableData) == null ? void 0 : v.hours) == null ? void 0 : z.length) > 0 && i.showTables]
7304
+ [Oe, ((z = (b = i.tableData) == null ? void 0 : b.hours) == null ? void 0 : z.length) > 0 && i.showTables]
7308
7305
  ]),
7309
7306
  Fe(o("div", wr, [
7310
7307
  o("div", vr, [
@@ -8712,21 +8709,21 @@ const pt = /* @__PURE__ */ Y(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
8712
8709
  var t, r, i, s, n, l, c, d, h, p;
8713
8710
  const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
8714
8711
  if ((e == null ? void 0 : e.split("-").length) === 2) {
8715
- const b = this.geojson.filter((I) => I.id === e.split("-")[0])[0];
8716
- this.pointMarkers[b.id].filter((I) => {
8712
+ const v = this.geojson.filter((I) => I.id === e.split("-")[0])[0];
8713
+ this.pointMarkers[v.id].filter((I) => {
8717
8714
  var _;
8718
8715
  return ((_ = I._element) == null ? void 0 : _.id) === e;
8719
8716
  })[0].setLngLat([(s = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : s.lng, (l = (n = a.target) == null ? void 0 : n._lngLat) == null ? void 0 : l.lat]);
8720
8717
  let E;
8721
- b.features.forEach((I, _) => {
8718
+ v.features.forEach((I, _) => {
8722
8719
  if (I.geometry.type === "Point" && I.properties.id == e.split("-")[1]) {
8723
8720
  E = _;
8724
8721
  return;
8725
8722
  }
8726
8723
  });
8727
- const f = b.features.filter((I) => I.geometry.type === "Point");
8724
+ const f = v.features.filter((I) => I.geometry.type === "Point");
8728
8725
  this.handleTmpPointUpdate(
8729
- b,
8726
+ v,
8730
8727
  f[E - 1],
8731
8728
  { lng: (d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, lat: (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lat, properties: f[E].properties },
8732
8729
  E === f.length - 1 ? void 0 : f[E + 1]
@@ -8737,13 +8734,13 @@ const pt = /* @__PURE__ */ Y(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
8737
8734
  var t, r, i, s, n, l, c, d, h, p;
8738
8735
  const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
8739
8736
  if ((e == null ? void 0 : e.split("-").length) === 2) {
8740
- const b = this.geojson.filter((f) => f.id === e.split("-")[0])[0];
8741
- this.pointMarkers[b.id].filter((f) => {
8737
+ const v = this.geojson.filter((f) => f.id === e.split("-")[0])[0];
8738
+ this.pointMarkers[v.id].filter((f) => {
8742
8739
  var I;
8743
8740
  return ((I = f._element) == null ? void 0 : I.id) === e;
8744
8741
  })[0].setLngLat([(s = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : s.lng, (l = (n = a.target) == null ? void 0 : n._lngLat) == null ? void 0 : l.lat]);
8745
- const E = b.features.filter((f) => f.geometry.type === "Point" && f.properties.id == e.split("-")[1])[0];
8746
- E.geometry.coordinates = [(d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lat], b.features = b.features.filter((f) => f.geometry.type === "Point"), this.handlePointUpdate(b);
8742
+ const E = v.features.filter((f) => f.geometry.type === "Point" && f.properties.id == e.split("-")[1])[0];
8743
+ E.geometry.coordinates = [(d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lat], v.features = v.features.filter((f) => f.geometry.type === "Point"), this.handlePointUpdate(v);
8747
8744
  }
8748
8745
  },
8749
8746
  handleContextmenu(a) {
@@ -8792,9 +8789,9 @@ const pt = /* @__PURE__ */ Y(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
8792
8789
  for (let i = 1; i < e.length; i++) {
8793
8790
  const s = e[i - 1], n = e[i], l = s.properties, c = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, d = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, h = je.calculateDistance(c, d, l.mode === "RL", 4), p = je.calculateBearing(c, d, l.mode === "RL", 2);
8794
8791
  t = le.roundPrecision(t + h, 2);
8795
- let b;
8796
- l.mode === "RL" ? b = le.convertToMonotonicLng([c, d]) : b = le.convertToMonotonicLng(je.interpolateCoordinates(c, d, 200));
8797
- const x = Q.lineString(b.map((E) => [E.lng, E.lat]));
8792
+ let v;
8793
+ l.mode === "RL" ? v = le.convertToMonotonicLng([c, d]) : v = le.convertToMonotonicLng(je.interpolateCoordinates(c, d, 200));
8794
+ const x = Q.lineString(v.map((E) => [E.lng, E.lat]));
8798
8795
  x.properties.dist = h, x.properties.bearing = p, x.properties.total = t, r.push(x);
8799
8796
  }
8800
8797
  e.push(...r), a.total = t;
@@ -8809,16 +8806,16 @@ const pt = /* @__PURE__ */ Y(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
8809
8806
  s = je.calculateDistance(d, h, c.mode === "RL", 4), n = je.calculateBearing(d, h, c.mode === "RL", 2);
8810
8807
  let p;
8811
8808
  c.mode === "RL" ? p = le.convertToMonotonicLng([d, h]) : p = le.convertToMonotonicLng(je.interpolateCoordinates(d, h, 200));
8812
- const b = Q.lineString(p.map((x) => [x.lng, x.lat]));
8813
- b.properties.dist = s, b.properties.bearing = n, i.features.push(b);
8809
+ const v = Q.lineString(p.map((x) => [x.lng, x.lat]));
8810
+ v.properties.dist = s, v.properties.bearing = n, i.features.push(v);
8814
8811
  }
8815
8812
  if (r) {
8816
8813
  const c = t.properties, d = t, h = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
8817
8814
  s = je.calculateDistance(d, h, c.mode === "RL", 4), n = je.calculateBearing(d, h, c.mode === "RL", 2);
8818
8815
  let p;
8819
8816
  c.mode === "RL" ? p = le.convertToMonotonicLng([d, h]) : p = le.convertToMonotonicLng(je.interpolateCoordinates(d, h, 200));
8820
- const b = Q.lineString(p.map((x) => [x.lng, x.lat]));
8821
- b.properties.dist = s, b.properties.bearing = n, i.features.push(b);
8817
+ const v = Q.lineString(p.map((x) => [x.lng, x.lat]));
8818
+ v.properties.dist = s, v.properties.bearing = n, i.features.push(v);
8822
8819
  }
8823
8820
  this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
8824
8821
  type: "geojson",
@@ -8930,11 +8927,11 @@ const pt = /* @__PURE__ */ Y(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
8930
8927
  }
8931
8928
  },
8932
8929
  handleClear(a, e = !0) {
8933
- var s, n, l, c, d, h, p, b, x;
8930
+ var s, n, l, c, d, h, p, v, x;
8934
8931
  const t = `${a.id}-${this.source}`, r = `${a.id}-${this.layer}`, i = `${a.id}-${this.labelLayer}`;
8935
8932
  (s = this.map) != null && s.getLayer(r) && this.map.removeLayer(r), (n = this.map) != null && n.getLayer(i) && this.map.removeLayer(i), (l = this.map) != null && l.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (c = this.map) != null && c.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (d = this.closeMarkers[a.id]) == null || d.remove(), this.closeMarkers[a.id] = void 0, (h = this.pointMarkers[a.id]) == null || h.forEach((E) => {
8936
8933
  E == null || E.remove();
8937
- }), this.pointMarkers[a.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((b = this.map) != null && b.getSource(t)) && this.map.removeSource(t), e && ((x = this.map) != null && x.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
8934
+ }), this.pointMarkers[a.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((v = this.map) != null && v.getSource(t)) && this.map.removeSource(t), e && ((x = this.map) != null && x.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
8938
8935
  }
8939
8936
  }
8940
8937
  };
@@ -9305,11 +9302,11 @@ const js = {
9305
9302
  },
9306
9303
  activeWeatherLayers: {
9307
9304
  handler() {
9308
- var t, r, i, s, n, l, c, d, h, p, b, x, E, f, I, _, A, w, m, L, u, v, z;
9305
+ var t, r, i, s, n, l, c, d, h, p, v, x, E, f, I, _, A, w, m, L, u, b, z;
9309
9306
  if (!this.map)
9310
9307
  return !1;
9311
9308
  const a = this.activeWeatherLayers.some((D) => D.key === "wind" && D.particle === !0 || D.key === "current" && D.particle === !0 || D.key === "ice-edge" || D.key === "ice-thickness" || D.key === "ice-cover" || D.key === "temp" || D.key === "water-temp"), e = this.activeWeatherLayers.some((D) => D.key === "visibility" || D.key === "precip3h");
9312
- this.activeWeatherLayers.length > 0 ? (!a && this.map.getZoom() > 3 && this.enc ? (r = (t = this.map) == null ? void 0 : t.getLayer(this.enc)) == null || r.setLayoutProperty("visibility", "visible") : ((s = (i = this.map) == null ? void 0 : i.getLayer("i4")) == null || s.setLayoutProperty("visibility", "none"), (l = (n = this.map) == null ? void 0 : n.getLayer("hi")) == null || l.setLayoutProperty("visibility", "none")), (d = (c = this.map) == null ? void 0 : c.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || d.setLayoutProperty("visibility", "visible"), (p = this.map) != null && p.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((b = this.map) != null && b.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((E = this.map) == null || E.moveLayer((x = this.viewport) == null ? void 0 : x.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), e && ((I = this.map) == null || I.moveLayer(this.helper.mapboxCustomer.layers.countryBoundary.id, (f = this.viewport) == null ? void 0 : f.rampColorLayer))) : ((A = (_ = this.map) == null ? void 0 : _.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || A.setLayoutProperty("visibility", "none"), this.enc && this.map.getZoom() > 3 ? (m = (w = this.map) == null ? void 0 : w.getLayer(this.enc)) == null || m.setLayoutProperty("visibility", "visible") : ((u = (L = this.map) == null ? void 0 : L.getLayer("i4")) == null || u.setLayoutProperty("visibility", "none"), (z = (v = this.map) == null ? void 0 : v.getLayer("hi")) == null || z.setLayoutProperty("visibility", "none"))), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
9309
+ this.activeWeatherLayers.length > 0 ? (!a && this.map.getZoom() > 3 && this.enc ? (r = (t = this.map) == null ? void 0 : t.getLayer(this.enc)) == null || r.setLayoutProperty("visibility", "visible") : ((s = (i = this.map) == null ? void 0 : i.getLayer("i4")) == null || s.setLayoutProperty("visibility", "none"), (l = (n = this.map) == null ? void 0 : n.getLayer("hi")) == null || l.setLayoutProperty("visibility", "none")), (d = (c = this.map) == null ? void 0 : c.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || d.setLayoutProperty("visibility", "visible"), (p = this.map) != null && p.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((v = this.map) != null && v.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((E = this.map) == null || E.moveLayer((x = this.viewport) == null ? void 0 : x.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), e && ((I = this.map) == null || I.moveLayer(this.helper.mapboxCustomer.layers.countryBoundary.id, (f = this.viewport) == null ? void 0 : f.rampColorLayer))) : ((A = (_ = this.map) == null ? void 0 : _.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || A.setLayoutProperty("visibility", "none"), this.enc && this.map.getZoom() > 3 ? (m = (w = this.map) == null ? void 0 : w.getLayer(this.enc)) == null || m.setLayoutProperty("visibility", "visible") : ((u = (L = this.map) == null ? void 0 : L.getLayer("i4")) == null || u.setLayoutProperty("visibility", "none"), (z = (b = this.map) == null ? void 0 : b.getLayer("hi")) == null || z.setLayoutProperty("visibility", "none"))), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
9313
9310
  },
9314
9311
  immediate: !0
9315
9312
  },
@@ -9361,7 +9358,7 @@ const js = {
9361
9358
  },
9362
9359
  methods: {
9363
9360
  async fetchWeatherLayers(a = { tropicals: !1 }) {
9364
- var i, s, n, l, c, d, h, p, b;
9361
+ var i, s, n, l, c, d, h, p, v;
9365
9362
  const e = (/* @__PURE__ */ new Date()).valueOf();
9366
9363
  let t = 0, r = 0;
9367
9364
  if (this.map) {
@@ -9383,25 +9380,25 @@ const js = {
9383
9380
  });
9384
9381
  if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((l = w == null ? void 0 : w.data) == null ? void 0 : l.code) === 0) {
9385
9382
  const m = (c = w == null ? void 0 : w.data) == null ? void 0 : c.data, L = [];
9386
- for (const v in m)
9387
- v !== "tropicals" && L.push(
9388
- He.get(m[v], {
9383
+ for (const b in m)
9384
+ b !== "tropicals" && L.push(
9385
+ He.get(m[b], {
9389
9386
  headers: {
9390
9387
  Authorization: this.token || this.defaultMeteoToken,
9391
- key: v
9388
+ key: b
9392
9389
  },
9393
- responseType: /\.(jpg|png)$/.test(m[v]) ? "blob" : "json"
9390
+ responseType: /\.(jpg|png)$/.test(m[b]) ? "blob" : "json"
9394
9391
  }).catch((z) => {
9395
- console.log(`[${v}] fetch layer error: ${z}`);
9392
+ console.log(`[${b}] fetch layer error: ${z}`);
9396
9393
  })
9397
9394
  );
9398
9395
  const u = await Promise.all(L);
9399
- this.weatherLayers = {}, u.map((v) => {
9396
+ this.weatherLayers = {}, u.map((b) => {
9400
9397
  var N, H, j, G;
9401
- const z = ((N = v == null ? void 0 : v.data) == null ? void 0 : N.data) || (v == null ? void 0 : v.data), D = (j = (H = v == null ? void 0 : v.config) == null ? void 0 : H.headers) == null ? void 0 : j.key;
9398
+ const z = ((N = b == null ? void 0 : b.data) == null ? void 0 : N.data) || (b == null ? void 0 : b.data), D = (j = (H = b == null ? void 0 : b.config) == null ? void 0 : H.headers) == null ? void 0 : j.key;
9402
9399
  D && z && (this.weatherLayers[D] = {
9403
9400
  raw: z,
9404
- type: ((G = v == null ? void 0 : v.config) == null ? void 0 : G.responseType) === "blob" ? "image" : "json",
9401
+ type: ((G = b == null ? void 0 : b.config) == null ? void 0 : G.responseType) === "blob" ? "image" : "json",
9405
9402
  etime: w.data.etime
9406
9403
  });
9407
9404
  }), m.tropicals && He.get(m.tropicals, {
@@ -9409,9 +9406,9 @@ const js = {
9409
9406
  Authorization: this.token || this.defaultMeteoToken,
9410
9407
  key: "tropicals"
9411
9408
  }
9412
- }).then((v) => {
9409
+ }).then((b) => {
9413
9410
  var N, H, j;
9414
- const z = ct.convert2Geojson(((N = v == null ? void 0 : v.data) == null ? void 0 : N.data) || (v == null ? void 0 : v.data)), D = (j = (H = v == null ? void 0 : v.config) == null ? void 0 : H.headers) == null ? void 0 : j.key;
9411
+ const z = ct.convert2Geojson(((N = b == null ? void 0 : b.data) == null ? void 0 : N.data) || (b == null ? void 0 : b.data)), D = (j = (H = b == null ? void 0 : b.config) == null ? void 0 : H.headers) == null ? void 0 : j.key;
9415
9412
  this.weatherLayers[D] = {
9416
9413
  data: z,
9417
9414
  active: !0,
@@ -9432,7 +9429,7 @@ const js = {
9432
9429
  };
9433
9430
  }
9434
9431
  if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
9435
- const m = (p = this.weatherLayers["current-direction"]) == null ? void 0 : p.raw, L = (b = this.weatherLayers["current-speed"]) == null ? void 0 : b.raw;
9432
+ const m = (p = this.weatherLayers["current-direction"]) == null ? void 0 : p.raw, L = (v = this.weatherLayers["current-speed"]) == null ? void 0 : v.raw;
9436
9433
  delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
9437
9434
  type: "json",
9438
9435
  direction: m,
@@ -9461,10 +9458,10 @@ const js = {
9461
9458
  }
9462
9459
  });
9463
9460
  if (((e = p == null ? void 0 : p.data) == null ? void 0 : e.code) === 0) {
9464
- const b = (t = p == null ? void 0 : p.data) == null ? void 0 : t.data, x = [];
9465
- for (const f in b)
9461
+ const v = (t = p == null ? void 0 : p.data) == null ? void 0 : t.data, x = [];
9462
+ for (const f in v)
9466
9463
  x.push(
9467
- He.get(b[f], {
9464
+ He.get(v[f], {
9468
9465
  headers: {
9469
9466
  Authorization: this.token || this.defaultMeteoToken,
9470
9467
  key: f
@@ -9485,10 +9482,10 @@ const js = {
9485
9482
  }
9486
9483
  });
9487
9484
  if (((r = p == null ? void 0 : p.data) == null ? void 0 : r.code) === 0) {
9488
- const b = (i = p == null ? void 0 : p.data) == null ? void 0 : i.data, x = [];
9489
- for (const f in b)
9485
+ const v = (i = p == null ? void 0 : p.data) == null ? void 0 : i.data, x = [];
9486
+ for (const f in v)
9490
9487
  x.push(
9491
- He.get(b[f], {
9488
+ He.get(v[f], {
9492
9489
  headers: {
9493
9490
  Authorization: this.token || this.defaultMeteoToken,
9494
9491
  key: f
@@ -9553,7 +9550,7 @@ const js = {
9553
9550
  );
9554
9551
  },
9555
9552
  handleDrawWeather4Json() {
9556
- var d, h, p, b, x, E;
9553
+ var d, h, p, v, x, E;
9557
9554
  const a = (/* @__PURE__ */ new Date()).valueOf();
9558
9555
  let e = 0, t = 0;
9559
9556
  const r = (d = this.map) == null ? void 0 : d.getBounds(), i = this.map.getZoom(), s = le.convertToStdLng(r._sw.lng), n = le.convertToStdLng(r._ne.lng), l = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
@@ -9567,37 +9564,37 @@ const js = {
9567
9564
  for (const m in A)
9568
9565
  if (m > l && m < c && (!(i <= this.zoom) || m % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9569
9566
  const L = A[m].lng;
9570
- s > n ? L.forEach((u, v) => {
9567
+ s > n ? L.forEach((u, b) => {
9571
9568
  var z, D, N, H, j, G;
9572
9569
  if (i < 2) {
9573
9570
  if ((u >= 0 && u <= 360 || u >= -360 && u <= 0) && u % 10 === 0) {
9574
9571
  const W = Q.point([u, m], {
9575
- val: ((z = A[m].val) == null ? void 0 : z[v]) || ((D = A[m].dir) == null ? void 0 : D[v]),
9576
- spd: (N = A[m].spd) == null ? void 0 : N[v]
9572
+ val: ((z = A[m].val) == null ? void 0 : z[b]) || ((D = A[m].dir) == null ? void 0 : D[b]),
9573
+ spd: (N = A[m].spd) == null ? void 0 : N[b]
9577
9574
  });
9578
9575
  _.push(W);
9579
9576
  }
9580
9577
  } else if ((u >= s && u <= 180 || u >= -180 && u <= n) && (!(i <= this.zoom) || u % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9581
9578
  const W = Q.point([u, m], {
9582
- val: ((H = A[m].val) == null ? void 0 : H[v]) || ((j = A[m].dir) == null ? void 0 : j[v]),
9583
- spd: (G = A[m].spd) == null ? void 0 : G[v]
9579
+ val: ((H = A[m].val) == null ? void 0 : H[b]) || ((j = A[m].dir) == null ? void 0 : j[b]),
9580
+ spd: (G = A[m].spd) == null ? void 0 : G[b]
9584
9581
  });
9585
9582
  _.push(W);
9586
9583
  }
9587
- }) : L.forEach((u, v) => {
9584
+ }) : L.forEach((u, b) => {
9588
9585
  var z, D, N, H, j, G;
9589
9586
  if (s < 2) {
9590
9587
  if ((u >= 0 && u <= 360 || u >= -360 && u <= 0) && u % 10 === 0) {
9591
9588
  const W = Q.point([u, m], {
9592
- val: ((z = A[m].val) == null ? void 0 : z[v]) || ((D = A[m].dir) == null ? void 0 : D[v]),
9593
- spd: (N = A[m].spd) == null ? void 0 : N[v]
9589
+ val: ((z = A[m].val) == null ? void 0 : z[b]) || ((D = A[m].dir) == null ? void 0 : D[b]),
9590
+ spd: (N = A[m].spd) == null ? void 0 : N[b]
9594
9591
  });
9595
9592
  _.push(W);
9596
9593
  }
9597
9594
  } else if (u >= s && u <= n && (!(i <= this.zoom) || u % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9598
9595
  const W = Q.point([u, m], {
9599
- val: ((H = A[m].val) == null ? void 0 : H[v]) || ((j = A[m].dir) == null ? void 0 : j[v]),
9600
- spd: (G = A[m].spd) == null ? void 0 : G[v]
9596
+ val: ((H = A[m].val) == null ? void 0 : H[b]) || ((j = A[m].dir) == null ? void 0 : j[b]),
9597
+ spd: (G = A[m].spd) == null ? void 0 : G[b]
9601
9598
  });
9602
9599
  _.push(W);
9603
9600
  }
@@ -9610,9 +9607,9 @@ const js = {
9610
9607
  const m = [];
9611
9608
  for (const L in (p = w.raw) == null ? void 0 : p.LineString) {
9612
9609
  const u = w.raw.LineString[L];
9613
- for (const v of u)
9610
+ for (const b of u)
9614
9611
  m.push(
9615
- Q.lineString(v, {
9612
+ Q.lineString(b, {
9616
9613
  val: Number(L)
9617
9614
  })
9618
9615
  );
@@ -9627,41 +9624,41 @@ const js = {
9627
9624
  }
9628
9625
  } else if (f === "current" && this.showCurrentIsoband) {
9629
9626
  I = !0;
9630
- const A = ((b = this.weatherLayers[f]) == null ? void 0 : b.direction) || {};
9627
+ const A = ((v = this.weatherLayers[f]) == null ? void 0 : v.direction) || {};
9631
9628
  for (const m in A)
9632
9629
  if (m > l && m < c && (!(i <= this.zoom) || m % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9633
9630
  const L = A[m].lng;
9634
- s > n ? L.forEach((u, v) => {
9631
+ s > n ? L.forEach((u, b) => {
9635
9632
  var z, D, N, H, j, G;
9636
9633
  if (i < 2) {
9637
9634
  if ((u >= 0 && u <= 360 || u >= -360 && u <= 0) && u % 10 === 0) {
9638
9635
  const W = Q.point([u, m], {
9639
- val: ((z = A[m].val) == null ? void 0 : z[v]) || ((D = A[m].dir) == null ? void 0 : D[v]),
9640
- spd: (N = A[m].spd) == null ? void 0 : N[v]
9636
+ val: ((z = A[m].val) == null ? void 0 : z[b]) || ((D = A[m].dir) == null ? void 0 : D[b]),
9637
+ spd: (N = A[m].spd) == null ? void 0 : N[b]
9641
9638
  });
9642
9639
  _.push(W);
9643
9640
  }
9644
9641
  } else if ((u >= s && u <= 180 || u >= -180 && u <= n) && (!(i <= this.zoom) || u % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9645
9642
  const W = Q.point([u, m], {
9646
- val: ((H = A[m].val) == null ? void 0 : H[v]) || ((j = A[m].dir) == null ? void 0 : j[v]),
9647
- spd: (G = A[m].spd) == null ? void 0 : G[v]
9643
+ val: ((H = A[m].val) == null ? void 0 : H[b]) || ((j = A[m].dir) == null ? void 0 : j[b]),
9644
+ spd: (G = A[m].spd) == null ? void 0 : G[b]
9648
9645
  });
9649
9646
  _.push(W);
9650
9647
  }
9651
- }) : L.forEach((u, v) => {
9648
+ }) : L.forEach((u, b) => {
9652
9649
  var z, D, N, H, j, G;
9653
9650
  if (s < 2) {
9654
9651
  if ((u >= 0 && u <= 360 || u >= -360 && u <= 0) && u % 10 === 0) {
9655
9652
  const W = Q.point([u, m], {
9656
- val: ((z = A[m].val) == null ? void 0 : z[v]) || ((D = A[m].dir) == null ? void 0 : D[v]),
9657
- spd: (N = A[m].spd) == null ? void 0 : N[v]
9653
+ val: ((z = A[m].val) == null ? void 0 : z[b]) || ((D = A[m].dir) == null ? void 0 : D[b]),
9654
+ spd: (N = A[m].spd) == null ? void 0 : N[b]
9658
9655
  });
9659
9656
  _.push(W);
9660
9657
  }
9661
9658
  } else if (u >= s && u <= n && (!(i <= this.zoom) || u % (i < this.zoom / 2 ? 5 : 3) === 0)) {
9662
9659
  const W = Q.point([u, m], {
9663
- val: ((H = A[m].val) == null ? void 0 : H[v]) || ((j = A[m].dir) == null ? void 0 : j[v]),
9664
- spd: (G = A[m].spd) == null ? void 0 : G[v]
9660
+ val: ((H = A[m].val) == null ? void 0 : H[b]) || ((j = A[m].dir) == null ? void 0 : j[b]),
9661
+ spd: (G = A[m].spd) == null ? void 0 : G[b]
9665
9662
  });
9666
9663
  _.push(W);
9667
9664
  }
@@ -9673,8 +9670,8 @@ const js = {
9673
9670
  if (!w.data) {
9674
9671
  const L = [];
9675
9672
  for (const u in (x = w.raw) == null ? void 0 : x.Polygon) {
9676
- const v = w.raw.Polygon[u];
9677
- for (const z of v)
9673
+ const b = w.raw.Polygon[u];
9674
+ for (const z of b)
9678
9675
  L.push(
9679
9676
  Q.polygon(z, {
9680
9677
  val: Number(u)
@@ -9693,11 +9690,11 @@ const js = {
9693
9690
  if (w > l && w < c && (!(i <= this.zoom) || w % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9694
9691
  const m = A[w].lng;
9695
9692
  s > n ? m.forEach((L, u) => {
9696
- var v, z, D, N;
9693
+ var b, z, D, N;
9697
9694
  if (i < 2) {
9698
9695
  if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
9699
9696
  const H = Q.point([L, w], {
9700
- dir: ((v = A[w].val) == null ? void 0 : v[u]) || ((z = A[w].dir) == null ? void 0 : z[u]),
9697
+ dir: ((b = A[w].val) == null ? void 0 : b[u]) || ((z = A[w].dir) == null ? void 0 : z[u]),
9701
9698
  spd: A[w].spd[u]
9702
9699
  });
9703
9700
  _.push(H);
@@ -9710,11 +9707,11 @@ const js = {
9710
9707
  _.push(H);
9711
9708
  }
9712
9709
  }) : m.forEach((L, u) => {
9713
- var v, z, D, N;
9710
+ var b, z, D, N;
9714
9711
  if (i < 2) {
9715
9712
  if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
9716
9713
  const H = Q.point([L, w], {
9717
- dir: ((v = A[w].val) == null ? void 0 : v[u]) || ((z = A[w].dir) == null ? void 0 : z[u]),
9714
+ dir: ((b = A[w].val) == null ? void 0 : b[u]) || ((z = A[w].dir) == null ? void 0 : z[u]),
9718
9715
  spd: A[w].spd[u]
9719
9716
  });
9720
9717
  _.push(H);
@@ -9835,8 +9832,8 @@ const js = {
9835
9832
  this.handleBeforeLayerToggle();
9836
9833
  },
9837
9834
  handleBeforeLayerToggle() {
9838
- var a, e, t, r, i, s, n, l, c, d, h, p, b, x, E, f;
9839
- (a = this.map) != null && a.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (t = this.otherLayers) != null && t["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (s = this.otherLayers) != null && s["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (l = this.otherLayers) != null && l.pirates || (c = this.otherLayers) != null && c.ports || (d = this.otherLayers) != null && d.enc || (h = this.otherLayers) != null && h.world12nm || (p = this.otherLayers) != null && p.worldMarine || (b = this.otherLayers) != null && b.chinaRoute || (x = this.otherLayers) != null && x["voluntary-reporting-area"] || (E = this.otherLayers) != null && E["eca-zones"] || (f = this.otherLayers) != null && f["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
9835
+ var a, e, t, r, i, s, n, l, c, d, h, p, v, x, E, f;
9836
+ (a = this.map) != null && a.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (t = this.otherLayers) != null && t["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (s = this.otherLayers) != null && s["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (l = this.otherLayers) != null && l.pirates || (c = this.otherLayers) != null && c.ports || (d = this.otherLayers) != null && d.enc || (h = this.otherLayers) != null && h.world12nm || (p = this.otherLayers) != null && p.worldMarine || (v = this.otherLayers) != null && v.chinaRoute || (x = this.otherLayers) != null && x["voluntary-reporting-area"] || (E = this.otherLayers) != null && E["eca-zones"] || (f = this.otherLayers) != null && f["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
9840
9837
  },
9841
9838
  handleDateChange(a = { tropicals: !1 }) {
9842
9839
  this.fetchWeatherLayers(a), this.fetchOtherLayers({ dayNight: !0 });
@@ -9870,8 +9867,8 @@ const js = {
9870
9867
  }
9871
9868
  },
9872
9869
  handle3dToggle(a) {
9873
- var e, t, r, i, s, n, l, c, d, h, p, b, x, E, f, I, _, A, w, m;
9874
- a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((s = this.map) == null || s.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (l = this.map) != null && l.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((h = this.map) == null || h.moveLayer((d = this.viewport) == null ? void 0 : d.particleLayer, this.helper.mapboxCustomer.layers.water.id))) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", (b = this.map) != null && b.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((x = this.map) != null && x.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((f = this.map) == null || f.moveLayer((E = this.viewport) == null ? void 0 : E.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (_ = this.map) != null && _.getLayer((I = this.viewport) == null ? void 0 : I.particleLayer) && ((A = this.map) != null && A.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((m = this.map) == null || m.moveLayer((w = this.viewport) == null ? void 0 : w.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
9870
+ var e, t, r, i, s, n, l, c, d, h, p, v, x, E, f, I, _, A, w, m;
9871
+ a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((s = this.map) == null || s.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (l = this.map) != null && l.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((h = this.map) == null || h.moveLayer((d = this.viewport) == null ? void 0 : d.particleLayer, this.helper.mapboxCustomer.layers.water.id))) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", (v = this.map) != null && v.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((x = this.map) != null && x.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((f = this.map) == null || f.moveLayer((E = this.viewport) == null ? void 0 : E.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (_ = this.map) != null && _.getLayer((I = this.viewport) == null ? void 0 : I.particleLayer) && ((A = this.map) != null && A.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((m = this.map) == null || m.moveLayer((w = this.viewport) == null ? void 0 : w.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
9875
9872
  },
9876
9873
  handleParticle(a) {
9877
9874
  this.particleFactor = a, this.weatherLayers[a.key] && (this.weatherLayers[a.key].particle = a.particle), this.activeWeatherLayers.map((r) => {
@@ -9896,7 +9893,7 @@ const js = {
9896
9893
  };
9897
9894
  function Gs(a, e, t, r, i, s) {
9898
9895
  var V, ye, ne, fe, xe, be, _e, B, ke, Le, De, Be, ze, Ie, ie, J, P, Ce, K, Z, Se, S, Ae, Me, Te, Qe, M, O, Ge, Ue;
9899
- const n = R("IdmGlLayer"), l = R("IdmENC"), c = R("IdmWorld12nm"), d = R("IdmWorldMarine"), h = R("IdmChinaRoute"), p = R("IdmSigWave"), b = R("IdmSwell"), x = R("IdmPrmsl"), E = R("IdmIceEdge"), f = R("IdmIceCover"), I = R("IdmIceThickness"), _ = R("IdmTropicals"), A = R("IdmCurrents"), w = R("IdmCurrentParticle"), m = R("IdmWindBarb"), L = R("IdmWindParticle"), u = R("IdmPrecip3h"), v = R("IdmVisibility"), z = R("IdmWaterTemp"), D = R("IdmTemp"), N = R("IdmWarZone"), H = R("IdmGmdssArea"), j = R("IdmEcaZone"), G = R("IdmAlertZone"), W = R("IdmPort"), ce = R("IdmLoadLine"), re = R("IdmTimezone"), de = R("IdmVRA"), we = R("IdmSpecialArea"), pe = R("IdmTerminator"), ve = R("IdmLatLng"), me = R("IdmMeasure"), U = R("IdmPoint");
9896
+ const n = R("IdmGlLayer"), l = R("IdmENC"), c = R("IdmWorld12nm"), d = R("IdmWorldMarine"), h = R("IdmChinaRoute"), p = R("IdmSigWave"), v = R("IdmSwell"), x = R("IdmPrmsl"), E = R("IdmIceEdge"), f = R("IdmIceCover"), I = R("IdmIceThickness"), _ = R("IdmTropicals"), A = R("IdmCurrents"), w = R("IdmCurrentParticle"), m = R("IdmWindBarb"), L = R("IdmWindParticle"), u = R("IdmPrecip3h"), b = R("IdmVisibility"), z = R("IdmWaterTemp"), D = R("IdmTemp"), N = R("IdmWarZone"), H = R("IdmGmdssArea"), j = R("IdmEcaZone"), G = R("IdmAlertZone"), W = R("IdmPort"), ce = R("IdmLoadLine"), re = R("IdmTimezone"), de = R("IdmVRA"), we = R("IdmSpecialArea"), pe = R("IdmTerminator"), ve = R("IdmLatLng"), me = R("IdmMeasure"), U = R("IdmPoint");
9900
9897
  return t.map ? (g(), y("div", Ws, [
9901
9898
  F(n, X({
9902
9899
  ref: "layer",
@@ -9961,7 +9958,7 @@ function Gs(a, e, t, r, i, s) {
9961
9958
  "before-layer": t.beforeLayer,
9962
9959
  "active-weather-layers": i.activeWeatherLayers
9963
9960
  }, a.$attrs), null, 16, ["map", "sig-wave", "before-layer", "active-weather-layers"]),
9964
- F(b, X({
9961
+ F(v, X({
9965
9962
  map: t.map,
9966
9963
  swell: (be = i.weatherLayers) == null ? void 0 : be.swell,
9967
9964
  "before-layer": t.beforeLayer,
@@ -10046,7 +10043,7 @@ function Gs(a, e, t, r, i, s) {
10046
10043
  "before-layer": t.beforeLayer,
10047
10044
  "toggle-version": t.toggleVersion
10048
10045
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
10049
- F(v, X({
10046
+ F(b, X({
10050
10047
  viewport: i.viewport,
10051
10048
  factor: (Ce = i.weatherLayers) == null ? void 0 : Ce.visibility,
10052
10049
  "before-layer": t.beforeLayer,