@idmwx/idmui-gl3 5.6.1 → 5.6.2

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
@@ -97,7 +97,7 @@ const _ = (t, e) => {
97
97
  source: "Best Match",
98
98
  sourceList: [],
99
99
  right: 10,
100
- rampColorLayers: ["visibility", "precip3h", "temp", "water-temp", "arctic"],
100
+ rampColorLayers: ["visibility", "precip3h", "temp", "water-temp", "ice-thickness", "ice-cover"],
101
101
  showWindParticleCollected: !1,
102
102
  showWindFeatherCollected: !1,
103
103
  showCurrentParticleCollected: !1,
@@ -568,11 +568,11 @@ function $t(t, e, a, r, i, o) {
568
568
  value: l.name
569
569
  }, {
570
570
  default: ae(() => {
571
- var w, b, m, v, y, d;
571
+ var w, b, g, v, y, d;
572
572
  return [
573
573
  V(I(l.name) + " ", 1),
574
574
  p !== 0 ? (A(), f("span", qt, I(l.resolution) + "km " + I(l.length) + "days", 1)) : N("", !0),
575
- p === 0 ? (A(), f("div", Vt, "Provides the best forecast")) : (m = (b = (w = l == null ? void 0 : l.update) == null ? void 0 : w.default) == null ? void 0 : b.meta) != null && m.initialisationTime ? (A(), f("div", Zt, "Update: " + I(o.computeDateZ((d = (y = (v = l == null ? void 0 : l.update) == null ? void 0 : v.default) == null ? void 0 : y.meta) == null ? void 0 : d.initialisationTime)), 1)) : N("", !0)
575
+ p === 0 ? (A(), f("div", Vt, "Provides the best forecast")) : (g = (b = (w = l == null ? void 0 : l.update) == null ? void 0 : w.default) == null ? void 0 : b.meta) != null && g.initialisationTime ? (A(), f("div", Zt, "Update: " + I(o.computeDateZ((d = (y = (v = l == null ? void 0 : l.update) == null ? void 0 : v.default) == null ? void 0 : y.meta) == null ? void 0 : d.initialisationTime)), 1)) : N("", !0)
576
576
  ];
577
577
  }),
578
578
  _: 2
@@ -960,9 +960,9 @@ class Le {
960
960
  }
961
961
  const b = a.getUniformLocation(r, "u_scale");
962
962
  a.uniform1f(b, (c == null ? void 0 : c.scale) || 1);
963
- const m = e.getBoundPixel(), v = e.map.getZoom() + 1, y = e.getWorldCopy(m, v);
963
+ const g = e.getBoundPixel(), v = e.map.getZoom() + 1, y = e.getWorldCopy(g, v);
964
964
  for (const d of y) {
965
- const C = (d[0] - m[0]) * e.ratio, g = (d[1] - m[3]) * e.ratio, x = d[2] * e.ratio, [M, E, T, S] = [C, x + C, g, x + g], Q = new Float32Array([M, T, E, T, M, S, M, S, E, T, E, S]);
965
+ const C = (d[0] - g[0]) * e.ratio, m = (d[1] - g[3]) * e.ratio, x = d[2] * e.ratio, [M, E, T, S] = [C, x + C, m, x + m], Q = new Float32Array([M, T, E, T, M, S, M, S, E, T, E, S]);
966
966
  a.bindBuffer(a.ARRAY_BUFFER, n), a.bufferData(a.ARRAY_BUFFER, Q, a.STATIC_DRAW), a.drawArrays(a.TRIANGLES, 0, 6);
967
967
  }
968
968
  } catch (l) {
@@ -4196,7 +4196,7 @@ function Ea(t, e, a, r, i, o) {
4196
4196
  ]), 4)
4197
4197
  ])) : N("", !0);
4198
4198
  }
4199
- const Da = /* @__PURE__ */ _(Ba, [["render", Ea]]);
4199
+ const Da = /* @__PURE__ */ _(Ba, [["render", Ea], ["__scopeId", "data-v-efce05ef"]]);
4200
4200
  const Pa = {
4201
4201
  name: "IdmThickness",
4202
4202
  props: {
@@ -4413,14 +4413,14 @@ const Ta = {
4413
4413
  var p, w;
4414
4414
  return ((p = l.geometry) == null ? void 0 : p.type) === "LineString" && ((w = l.properties) == null ? void 0 : w.type) === "forecast";
4415
4415
  })[0]) == null || u.properties.model, h.forEach((l, p) => {
4416
- var w, b, m, v, y, d;
4417
- ((w = l.geometry) == null ? void 0 : w.type) === "Point" && ((b = l.properties) == null ? void 0 : b.type) === "history" && (n = p, c = c === void 0 ? p : c), ((m = l.geometry) == null ? void 0 : m.type) === "Point" && ((v = l.properties) == null ? void 0 : v.type) === "forecast" && c === void 0 && (c = p), ((y = l.geometry) == null ? void 0 : y.type) === "LineString" && ((d = l.properties) == null || d.type);
4416
+ var w, b, g, v, y, d;
4417
+ ((w = l.geometry) == null ? void 0 : w.type) === "Point" && ((b = l.properties) == null ? void 0 : b.type) === "history" && (n = p, c = c === void 0 ? p : c), ((g = l.geometry) == null ? void 0 : g.type) === "Point" && ((v = l.properties) == null ? void 0 : v.type) === "forecast" && c === void 0 && (c = p), ((y = l.geometry) == null ? void 0 : y.type) === "LineString" && ((d = l.properties) == null || d.type);
4418
4418
  }), h.map((l, p) => {
4419
- var w, b, m, v, y, d, C;
4420
- if (((w = l.geometry) == null ? void 0 : w.type) === "LineString" && ((b = l.properties) == null || b.type), ((m = l.geometry) == null ? void 0 : m.type) === "Point" && ((v = l.properties) == null ? void 0 : v.type) === "forecast" && (l.properties.name = o, l.properties.format = Y(l.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((y = l.geometry) == null ? void 0 : y.type) === "Point" && ((d = l.properties) == null ? void 0 : d.type) === "history") {
4419
+ var w, b, g, v, y, d, C;
4420
+ if (((w = l.geometry) == null ? void 0 : w.type) === "LineString" && ((b = l.properties) == null || b.type), ((g = l.geometry) == null ? void 0 : g.type) === "Point" && ((v = l.properties) == null ? void 0 : v.type) === "forecast" && (l.properties.name = o, l.properties.format = Y(l.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((y = l.geometry) == null ? void 0 : y.type) === "Point" && ((d = l.properties) == null ? void 0 : d.type) === "history") {
4421
4421
  l.properties.format = Y(l.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
4422
- const g = Y((C = l.properties) == null ? void 0 : C.date).utc().format("HHmm") === Y().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm");
4423
- l.properties.showHistoryLabel = g || p === n, l.properties.showNameLabel = p === n, l.properties.name = o;
4422
+ const m = Y((C = l.properties) == null ? void 0 : C.date).utc().format("HHmm") === Y().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm");
4423
+ l.properties.showHistoryLabel = m || p === n, l.properties.showNameLabel = p === n, l.properties.name = o;
4424
4424
  }
4425
4425
  return l;
4426
4426
  });
@@ -4692,7 +4692,7 @@ const Ta = {
4692
4692
  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), (t = this.interpolateMarkers) == null || t.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));
4693
4693
  },
4694
4694
  handleDateChange() {
4695
- var t, e, a, r, i, o, n, c, h, u, l, p, w, b, m, v, y, d, C, g, x, M, E, T, S, Q, G, W, ee, ce, he, de, pe, ue, me, ge;
4695
+ var t, e, a, r, i, o, n, c, h, u, l, p, w, b, g, v, y, d, C, m, x, M, E, T, S, Q, G, W, ee, ce, he, de, pe, ue, me, ge;
4696
4696
  if ((t = this.interpolateMarkers) == null || t.forEach((te) => te == null ? void 0 : te.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
4697
4697
  const te = Y(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), oe = this.interpolateData.filter((O) => O.properties.date === te.format() && !O.properties.disabled), we = this.handleComputePolygons(oe), ie = P.featureCollection([...oe]);
4698
4698
  we.forEach((O) => {
@@ -4714,7 +4714,7 @@ const Ta = {
4714
4714
  for (const O of oe)
4715
4715
  if (!O.properties.disabled) {
4716
4716
  let Z = "#f44336";
4717
- ((c = (n = O.properties) == null ? void 0 : n.wind) == null ? void 0 : c.spd) < 17.2 || !((u = (h = O.properties) == null ? void 0 : h.wind) != null && u.spd) ? Z = "#03f869" : ((p = (l = O.properties) == null ? void 0 : l.wind) == null ? void 0 : p.spd) >= 17.2 && ((b = (w = O.properties) == null ? void 0 : w.wind) == null ? void 0 : b.spd) < 24.5 ? Z = "#f2f202" : ((v = (m = O.properties) == null ? void 0 : m.wind) == null ? void 0 : v.spd) >= 24.5 && ((d = (y = O.properties) == null ? void 0 : y.wind) == null ? void 0 : d.spd) < 32.7 ? Z = "#ff9100" : ((g = (C = O.properties) == null ? void 0 : C.wind) == null ? void 0 : g.spd) >= 32.7 && ((M = (x = O.properties) == null ? void 0 : x.wind) == null ? void 0 : M.spd) < 41.5 ? Z = "#f44336" : ((T = (E = O.properties) == null ? void 0 : E.wind) == null ? void 0 : T.spd) >= 41.5 && ((Q = (S = O.properties) == null ? void 0 : S.wind) == null ? void 0 : Q.spd) < 51 ? Z = "#f903d0" : ((W = (G = O.properties) == null ? void 0 : G.wind) == null ? void 0 : W.spd) >= 51 ? Z = "#8702f9" : Z = "#f44336";
4717
+ ((c = (n = O.properties) == null ? void 0 : n.wind) == null ? void 0 : c.spd) < 17.2 || !((u = (h = O.properties) == null ? void 0 : h.wind) != null && u.spd) ? Z = "#03f869" : ((p = (l = O.properties) == null ? void 0 : l.wind) == null ? void 0 : p.spd) >= 17.2 && ((b = (w = O.properties) == null ? void 0 : w.wind) == null ? void 0 : b.spd) < 24.5 ? Z = "#f2f202" : ((v = (g = O.properties) == null ? void 0 : g.wind) == null ? void 0 : v.spd) >= 24.5 && ((d = (y = O.properties) == null ? void 0 : y.wind) == null ? void 0 : d.spd) < 32.7 ? Z = "#ff9100" : ((m = (C = O.properties) == null ? void 0 : C.wind) == null ? void 0 : m.spd) >= 32.7 && ((M = (x = O.properties) == null ? void 0 : x.wind) == null ? void 0 : M.spd) < 41.5 ? Z = "#f44336" : ((T = (E = O.properties) == null ? void 0 : E.wind) == null ? void 0 : T.spd) >= 41.5 && ((Q = (S = O.properties) == null ? void 0 : S.wind) == null ? void 0 : Q.spd) < 51 ? Z = "#f903d0" : ((W = (G = O.properties) == null ? void 0 : G.wind) == null ? void 0 : W.spd) >= 51 ? Z = "#8702f9" : Z = "#f44336";
4718
4718
  const Ae = `<svg t="1719918955501"
4719
4719
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
4720
4720
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -4751,18 +4751,18 @@ const Ta = {
4751
4751
  var o, n, c, h, u, l, p, w;
4752
4752
  const e = t.features[0], a = (n = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : n.features.filter(
4753
4753
  (b) => {
4754
- var m;
4755
- return b.geometry.type === "LineString" && b.properties.type === "forecast" && b.properties.name === ((m = e == null ? void 0 : e.properties) == null ? void 0 : m.name);
4754
+ var g;
4755
+ return b.geometry.type === "LineString" && b.properties.type === "forecast" && b.properties.name === ((g = e == null ? void 0 : e.properties) == null ? void 0 : g.name);
4756
4756
  }
4757
4757
  );
4758
- a.sort((b, m) => {
4758
+ a.sort((b, g) => {
4759
4759
  var v, y, d, C;
4760
- return ((v = b.properties) == null ? void 0 : v.model) === "cma" ? -1 : ((y = b.properties) == null ? void 0 : y.model) === "jma" ? ((d = m.properties) == null ? void 0 : d.model) === "cma" ? 1 : -1 : b.properties.model === "ecmwf" ? ["jma", "cma"].includes((C = m.properties) == null ? void 0 : C.model) ? 1 : -1 : 0;
4760
+ return ((v = b.properties) == null ? void 0 : v.model) === "cma" ? -1 : ((y = b.properties) == null ? void 0 : y.model) === "jma" ? ((d = g.properties) == null ? void 0 : d.model) === "cma" ? 1 : -1 : b.properties.model === "ecmwf" ? ["jma", "cma"].includes((C = g.properties) == null ? void 0 : C.model) ? 1 : -1 : 0;
4761
4761
  });
4762
4762
  const r = (h = (c = this.tropicals) == null ? void 0 : c.data) == null ? void 0 : h.features.filter(
4763
4763
  (b) => {
4764
- var m;
4765
- return b.geometry.type === "LineString" && b.properties.type === "history" && b.properties.name === ((m = e == null ? void 0 : e.properties) == null ? void 0 : m.name);
4764
+ var g;
4765
+ return b.geometry.type === "LineString" && b.properties.type === "history" && b.properties.name === ((g = e == null ? void 0 : e.properties) == null ? void 0 : g.name);
4766
4766
  }
4767
4767
  );
4768
4768
  this.activeTropicals = {
@@ -4874,7 +4874,7 @@ const Ta = {
4874
4874
  style: { "justify-content": "flex-start" }
4875
4875
  }, Ya = { class: "forecast-models" }, Ka = ["onClick"], Xa = { class: "more" };
4876
4876
  function Ja(t, e, a, r, i, o) {
4877
- var n, c, h, u, l, p, w, b, m, v, y, d, C, g, x;
4877
+ var n, c, h, u, l, p, w, b, g, v, y, d, C, m, x;
4878
4878
  return fe((A(), f("div", Qa, [
4879
4879
  s("div", Sa, [
4880
4880
  s("div", {
@@ -4885,7 +4885,7 @@ function Ja(t, e, a, r, i, o) {
4885
4885
  (c = (n = i.activeTropicals) == null ? void 0 : n.history) != null && c.level ? (A(), f("span", Ha, I((u = (h = i.activeTropicals) == null ? void 0 : h.history) == null ? void 0 : u.level) + " , ", 1)) : N("", !0),
4886
4886
  V(I((l = i.activeTropicals) == null ? void 0 : l.name), 1)
4887
4887
  ]),
4888
- s("div", Oa, " Last update: " + I(o.computeTime(((w = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : w.updated) || ((v = (m = (b = i.activeTropicals) == null ? void 0 : b.forecasts) == null ? void 0 : m.filter((M) => !M.disabled)[0]) == null ? void 0 : v.date))), 1)
4888
+ s("div", Oa, " Last update: " + I(o.computeTime(((w = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : w.updated) || ((v = (g = (b = i.activeTropicals) == null ? void 0 : b.forecasts) == null ? void 0 : g.filter((M) => !M.disabled)[0]) == null ? void 0 : v.date))), 1)
4889
4889
  ]),
4890
4890
  s("div", Na, [
4891
4891
  s("div", ja, [
@@ -4896,7 +4896,7 @@ function Ja(t, e, a, r, i, o) {
4896
4896
  ]),
4897
4897
  s("div", Ga, [
4898
4898
  e[3] || (e[3] = s("label", null, "Pressure : ", -1)),
4899
- s("span", null, I(((g = (C = i.activeTropicals) == null ? void 0 : C.history) == null ? void 0 : g.pressure) || "-") + "[hPa]", 1)
4899
+ s("span", null, I(((m = (C = i.activeTropicals) == null ? void 0 : C.history) == null ? void 0 : m.pressure) || "-") + "[hPa]", 1)
4900
4900
  ])
4901
4901
  ]),
4902
4902
  s("div", Wa, [
@@ -5724,7 +5724,7 @@ const wi = {
5724
5724
  initTableData(t) {
5725
5725
  var e, a, r, i, o, n, c, h, u;
5726
5726
  this.clearTable(), this.positionGmt = (a = (e = t == null ? void 0 : t.weather) == null ? void 0 : e[0]) == null ? void 0 : a.timezone, this.positionOffset = (i = (r = t == null ? void 0 : t.weather) == null ? void 0 : r[0]) == null ? void 0 : i.offset, this.localDate = (n = (o = Ue(this.ts)) == null ? void 0 : o.tz(this.positionGmt)) == null ? void 0 : n.format("MMM-DD/HHmm[LT]"), this.currentHourData = (c = Ye.pickHourly(t, Y(this.ts))) == null ? void 0 : c[0], ((u = (h = this.currentHourData) == null ? void 0 : h.weather) == null ? void 0 : u.isDay) === 0 ? this.isDay = !1 : this.isDay = !0, this.$nextTick(() => {
5727
- var p, w, b, m, v, y, d, C, g, x, M, E, T, S, Q, G, W, ee, ce, he, de, pe, ue, me, ge, te, oe, we, ie, O, Z, Ae, re;
5727
+ var p, w, b, g, v, y, d, C, m, x, M, E, T, S, Q, G, W, ee, ce, he, de, pe, ue, me, ge, te, oe, we, ie, O, Z, Ae, re;
5728
5728
  if (!document.getElementById("meteoMainBox"))
5729
5729
  return !1;
5730
5730
  if (!this.currentHourData)
@@ -5733,7 +5733,7 @@ const wi = {
5733
5733
  const ne = Ue(this.ts).tz(this.positionGmt).add(3 * se, "h").format();
5734
5734
  this.tableData.hours.push(ne);
5735
5735
  const B = ((p = Ye.pickHourly(t, ne)) == null ? void 0 : p[0]) || {};
5736
- this.tableData.temp.push(this.roundPrecision((w = B == null ? void 0 : B.weather) == null ? void 0 : w.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((m = (b = B == null ? void 0 : B.weather) == null ? void 0 : b.precip) == null ? void 0 : m.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((y = (v = B == null ? void 0 : B.weather) == null ? void 0 : v.precip) == null ? void 0 : y.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((d = B == null ? void 0 : B.weather) == null ? void 0 : d.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((g = (C = B == null ? void 0 : B.weather) == null ? void 0 : C.wind) == null ? void 0 : g.kts, 1) ?? "-"), this.tableData.windDir.push((M = (x = B == null ? void 0 : B.weather) == null ? void 0 : x.wind) == null ? void 0 : M.bearing), this.tableData.windGust.push(this.roundPrecision((T = (E = B == null ? void 0 : B.weather) == null ? void 0 : E.wind) == null ? void 0 : T.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((Q = (S = B == null ? void 0 : B.wave) == null ? void 0 : S.sig) == null ? void 0 : Q.height, 1) ?? "-"), this.tableData.sigwaveDir.push((W = (G = B == null ? void 0 : B.wave) == null ? void 0 : G.sig) == null ? void 0 : W.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((ce = (ee = B == null ? void 0 : B.wave) == null ? void 0 : ee.wd) == null ? void 0 : ce.height, 1) ?? "-"), this.tableData.windwaveDir.push((de = (he = B == null ? void 0 : B.wave) == null ? void 0 : he.wd) == null ? void 0 : de.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((ue = (pe = B == null ? void 0 : B.wave) == null ? void 0 : pe.wd) == null ? void 0 : ue.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((ge = (me = B == null ? void 0 : B.wave) == null ? void 0 : me.swell) == null ? void 0 : ge.height, 1) ?? "-"), this.tableData.swellDir.push((oe = (te = B == null ? void 0 : B.wave) == null ? void 0 : te.swell) == null ? void 0 : oe.bearing), this.tableData.swellPeriod.push(this.roundPrecision((ie = (we = B == null ? void 0 : B.wave) == null ? void 0 : we.swell) == null ? void 0 : ie.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((O = B == null ? void 0 : B.current) == null ? void 0 : O.speed, 1) ?? "-"), this.tableData.currentDir.push((Z = B == null ? void 0 : B.current) == null ? void 0 : Z.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((Ae = B == null ? void 0 : B.weather) == null ? void 0 : Ae.url), this.tableData.weatherNames.push(((re = B == null ? void 0 : B.weather) == null ? void 0 : re.name) ?? "-");
5736
+ this.tableData.temp.push(this.roundPrecision((w = B == null ? void 0 : B.weather) == null ? void 0 : w.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((g = (b = B == null ? void 0 : B.weather) == null ? void 0 : b.precip) == null ? void 0 : g.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((y = (v = B == null ? void 0 : B.weather) == null ? void 0 : v.precip) == null ? void 0 : y.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((d = B == null ? void 0 : B.weather) == null ? void 0 : d.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((m = (C = B == null ? void 0 : B.weather) == null ? void 0 : C.wind) == null ? void 0 : m.kts, 1) ?? "-"), this.tableData.windDir.push((M = (x = B == null ? void 0 : B.weather) == null ? void 0 : x.wind) == null ? void 0 : M.bearing), this.tableData.windGust.push(this.roundPrecision((T = (E = B == null ? void 0 : B.weather) == null ? void 0 : E.wind) == null ? void 0 : T.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((Q = (S = B == null ? void 0 : B.wave) == null ? void 0 : S.sig) == null ? void 0 : Q.height, 1) ?? "-"), this.tableData.sigwaveDir.push((W = (G = B == null ? void 0 : B.wave) == null ? void 0 : G.sig) == null ? void 0 : W.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((ce = (ee = B == null ? void 0 : B.wave) == null ? void 0 : ee.wd) == null ? void 0 : ce.height, 1) ?? "-"), this.tableData.windwaveDir.push((de = (he = B == null ? void 0 : B.wave) == null ? void 0 : he.wd) == null ? void 0 : de.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((ue = (pe = B == null ? void 0 : B.wave) == null ? void 0 : pe.wd) == null ? void 0 : ue.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((ge = (me = B == null ? void 0 : B.wave) == null ? void 0 : me.swell) == null ? void 0 : ge.height, 1) ?? "-"), this.tableData.swellDir.push((oe = (te = B == null ? void 0 : B.wave) == null ? void 0 : te.swell) == null ? void 0 : oe.bearing), this.tableData.swellPeriod.push(this.roundPrecision((ie = (we = B == null ? void 0 : B.wave) == null ? void 0 : we.swell) == null ? void 0 : ie.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((O = B == null ? void 0 : B.current) == null ? void 0 : O.speed, 1) ?? "-"), this.tableData.currentDir.push((Z = B == null ? void 0 : B.current) == null ? void 0 : Z.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((Ae = B == null ? void 0 : B.weather) == null ? void 0 : Ae.url), this.tableData.weatherNames.push(((re = B == null ? void 0 : B.weather) == null ? void 0 : re.name) ?? "-");
5737
5737
  }
5738
5738
  });
5739
5739
  },
@@ -5856,7 +5856,7 @@ const wi = {
5856
5856
  class: "main-box flex-center"
5857
5857
  };
5858
5858
  function kr(t, e, a, r, i, o) {
5859
- var u, l, p, w, b, m, v, y, d, C, g, x, M, E, T, S, Q, G, W, ee, ce, he, de, pe, ue, me, ge, te, oe, we, ie, O, Z, Ae, re, se, ne, B, Ce, xe, Be, Ie, Ee, De, Pe, ke, Me, ze, Te, Qe, Se, _e, He, Oe, Ne, je, Re, Fe, Ge, We, q, Ze, $e, et, tt, at, it, rt;
5859
+ var u, l, p, w, b, g, v, y, d, C, m, x, M, E, T, S, Q, G, W, ee, ce, he, de, pe, ue, me, ge, te, oe, we, ie, O, Z, Ae, re, se, ne, B, Ce, xe, Be, Ie, Ee, De, Pe, ke, Me, ze, Te, Qe, Se, _e, He, Oe, Ne, je, Re, Fe, Ge, We, q, Ze, $e, et, tt, at, it, rt;
5860
5860
  const n = z("LocationFilled"), c = z("ElIcon"), h = z("ElTooltip");
5861
5861
  return fe((A(), f("div", bi, [
5862
5862
  s("div", vi, [
@@ -5916,7 +5916,7 @@ function kr(t, e, a, r, i, o) {
5916
5916
  }, 8, ["content"]),
5917
5917
  s("div", ki, [
5918
5918
  s("div", null, [
5919
- V(I(o.roundPrecision((m = (b = i.currentHourData) == null ? void 0 : b.weather) == null ? void 0 : m.temp, 0)), 1),
5919
+ V(I(o.roundPrecision((g = (b = i.currentHourData) == null ? void 0 : b.weather) == null ? void 0 : g.temp, 0)), 1),
5920
5920
  e[8] || (e[8] = s("span", { style: { "font-size": "14px" } }, "°C", -1))
5921
5921
  ])
5922
5922
  ]),
@@ -5927,7 +5927,7 @@ function kr(t, e, a, r, i, o) {
5927
5927
  ]),
5928
5928
  s("div", Ti, [
5929
5929
  e[10] || (e[10] = s("label", null, "Visibility : ", -1)),
5930
- s("span", null, I(o.roundPrecision((g = (C = i.currentHourData) == null ? void 0 : C.weather) == null ? void 0 : g.visibility, 0)) + " nm", 1)
5930
+ s("span", null, I(o.roundPrecision((m = (C = i.currentHourData) == null ? void 0 : C.weather) == null ? void 0 : m.visibility, 0)) + " nm", 1)
5931
5931
  ]),
5932
5932
  s("div", Qi, [
5933
5933
  e[11] || (e[11] = s("label", null, "Wind : ", -1)),
@@ -7704,19 +7704,19 @@ const ct = /* @__PURE__ */ _(yo, [["render", wo], ["__scopeId", "data-v-ad66a24c
7704
7704
  var d;
7705
7705
  return ((d = y._element) == null ? void 0 : d.id) === e;
7706
7706
  })[0].setLngLat([(o = (i = t.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (c = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : c.lat]);
7707
- let m;
7707
+ let g;
7708
7708
  w.features.forEach((y, d) => {
7709
7709
  if (y.geometry.type === "Point" && y.properties.id == e.split("-")[1]) {
7710
- m = d;
7710
+ g = d;
7711
7711
  return;
7712
7712
  }
7713
7713
  });
7714
7714
  const v = w.features.filter((y) => y.geometry.type === "Point");
7715
7715
  this.handleTmpPointUpdate(
7716
7716
  w,
7717
- v[m - 1],
7718
- { lng: (u = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : u.lng, lat: (p = (l = t.target) == null ? void 0 : l._lngLat) == null ? void 0 : p.lat, properties: v[m].properties },
7719
- m === v.length - 1 ? void 0 : v[m + 1]
7717
+ v[g - 1],
7718
+ { lng: (u = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : u.lng, lat: (p = (l = t.target) == null ? void 0 : l._lngLat) == null ? void 0 : p.lat, properties: v[g].properties },
7719
+ g === v.length - 1 ? void 0 : v[g + 1]
7720
7720
  );
7721
7721
  }
7722
7722
  },
@@ -7729,8 +7729,8 @@ const ct = /* @__PURE__ */ _(yo, [["render", wo], ["__scopeId", "data-v-ad66a24c
7729
7729
  var y;
7730
7730
  return ((y = v._element) == null ? void 0 : y.id) === e;
7731
7731
  })[0].setLngLat([(o = (i = t.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (c = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : c.lat]);
7732
- const m = w.features.filter((v) => v.geometry.type === "Point" && v.properties.id == e.split("-")[1])[0];
7733
- m.geometry.coordinates = [(u = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : u.lng, (p = (l = t.target) == null ? void 0 : l._lngLat) == null ? void 0 : p.lat], w.features = w.features.filter((v) => v.geometry.type === "Point"), this.handlePointUpdate(w);
7732
+ const g = w.features.filter((v) => v.geometry.type === "Point" && v.properties.id == e.split("-")[1])[0];
7733
+ g.geometry.coordinates = [(u = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : u.lng, (p = (l = t.target) == null ? void 0 : l._lngLat) == null ? void 0 : p.lat], w.features = w.features.filter((v) => v.geometry.type === "Point"), this.handlePointUpdate(w);
7734
7734
  }
7735
7735
  },
7736
7736
  handleContextmenu(t) {
@@ -7781,7 +7781,7 @@ const ct = /* @__PURE__ */ _(yo, [["render", wo], ["__scopeId", "data-v-ad66a24c
7781
7781
  a = K.roundPrecision(a + l, 2);
7782
7782
  let w;
7783
7783
  c.mode === "RL" ? w = K.convertToMonotonicLng([h, u]) : w = K.convertToMonotonicLng(be.interpolateCoordinates(h, u, 200));
7784
- const b = P.lineString(w.map((m) => [m.lng, m.lat]));
7784
+ const b = P.lineString(w.map((g) => [g.lng, g.lat]));
7785
7785
  b.properties.dist = l, b.properties.bearing = p, b.properties.total = a, r.push(b);
7786
7786
  }
7787
7787
  e.push(...r), t.total = a;
@@ -7919,8 +7919,8 @@ const ct = /* @__PURE__ */ _(yo, [["render", wo], ["__scopeId", "data-v-ad66a24c
7919
7919
  handleClear(t, e = !0) {
7920
7920
  var o, n, c, h, u, l, p, w, b;
7921
7921
  const a = `${t.id}-${this.source}`, r = `${t.id}-${this.layer}`, i = `${t.id}-${this.labelLayer}`;
7922
- (o = this.map) != null && o.getLayer(r) && this.map.removeLayer(r), (n = this.map) != null && n.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (h = this.map) != null && h.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (u = this.closeMarkers[t.id]) == null || u.remove(), this.closeMarkers[t.id] = void 0, (l = this.pointMarkers[t.id]) == null || l.forEach((m) => {
7923
- m == null || m.remove();
7922
+ (o = this.map) != null && o.getLayer(r) && this.map.removeLayer(r), (n = this.map) != null && n.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (h = this.map) != null && h.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (u = this.closeMarkers[t.id]) == null || u.remove(), this.closeMarkers[t.id] = void 0, (l = this.pointMarkers[t.id]) == null || l.forEach((g) => {
7923
+ g == null || g.remove();
7924
7924
  }), this.pointMarkers[t.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((w = this.map) != null && w.getSource(a)) && this.map.removeSource(a), e && ((b = this.map) != null && b.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
7925
7925
  }
7926
7926
  }
@@ -8282,11 +8282,11 @@ const Ho = {
8282
8282
  },
8283
8283
  activeWeatherLayers: {
8284
8284
  handler() {
8285
- var a, r, i, o, n, c, h, u, l, p, w, b, m, v, y, d, C;
8285
+ var a, r, i, o, n, c, h, u, l, p, w, b, g, v, y, d, C;
8286
8286
  if (!this.map)
8287
8287
  return !1;
8288
- const t = this.activeWeatherLayers.some((g) => g.key === "wind" && g.particle === !0 || g.key === "current" && g.particle === !0 || g.key === "temp" || g.key === "water-temp"), e = this.activeWeatherLayers.some((g) => g.key === "visibility" || g.key === "precip3h");
8289
- this.activeWeatherLayers.length > 0 ? (t ? (r = (a = this.map) == null ? void 0 : a.getLayer(this.enc)) == null || r.setLayoutProperty("visibility", "none") : (o = (i = this.map) == null ? void 0 : i.getLayer(this.enc)) == null || o.setLayoutProperty("visibility", "visible"), (c = (n = this.map) == null ? void 0 : n.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || c.setLayoutProperty("visibility", "visible"), (u = this.map) != null && u.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((l = this.map) != null && l.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((w = this.map) == null || w.moveLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), e && ((m = this.map) == null || m.moveLayer(this.helper.mapboxCustomer.layers.countryBoundary.id, (b = this.viewport) == null ? void 0 : b.rampColorLayer))) : ((y = (v = this.map) == null ? void 0 : v.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || y.setLayoutProperty("visibility", "none"), (C = (d = this.map) == null ? void 0 : d.getLayer(this.enc)) == null || C.setLayoutProperty("visibility", "visible")), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
8288
+ const t = this.activeWeatherLayers.some((m) => m.key === "wind" && m.particle === !0 || m.key === "current" && m.particle === !0 || m.key === "ice-thickness" || m.key === "ice-cover" || m.key === "temp" || m.key === "water-temp"), e = this.activeWeatherLayers.some((m) => m.key === "visibility" || m.key === "precip3h");
8289
+ this.activeWeatherLayers.length > 0 ? (t ? (r = (a = this.map) == null ? void 0 : a.getLayer(this.enc)) == null || r.setLayoutProperty("visibility", "none") : (o = (i = this.map) == null ? void 0 : i.getLayer(this.enc)) == null || o.setLayoutProperty("visibility", "visible"), (c = (n = this.map) == null ? void 0 : n.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || c.setLayoutProperty("visibility", "visible"), (u = this.map) != null && u.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((l = this.map) != null && l.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((w = this.map) == null || w.moveLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), e && ((g = this.map) == null || g.moveLayer(this.helper.mapboxCustomer.layers.countryBoundary.id, (b = this.viewport) == null ? void 0 : b.rampColorLayer))) : ((y = (v = this.map) == null ? void 0 : v.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || y.setLayoutProperty("visibility", "none"), (C = (d = this.map) == null ? void 0 : d.getLayer(this.enc)) == null || C.setLayoutProperty("visibility", "visible")), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
8290
8290
  },
8291
8291
  immediate: !0
8292
8292
  },
@@ -8342,7 +8342,7 @@ const Ho = {
8342
8342
  const e = (/* @__PURE__ */ new Date()).valueOf();
8343
8343
  let a = 0, r = 0;
8344
8344
  if (this.map) {
8345
- const b = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, m = (o = this.map) == null ? void 0 : o.getBounds(), v = `${m._sw.lng},${m._sw.lat},${m._ne.lng},${m._ne.lat}`;
8345
+ const b = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, g = (o = this.map) == null ? void 0 : o.getBounds(), v = `${g._sw.lng},${g._sw.lat},${g._ne.lng},${g._ne.lat}`;
8346
8346
  if (this.particleFactor && ((n = this.$refs.layer) != null && n.autoActive)) {
8347
8347
  const y = Je.WEATHER_LAYERS.find((d) => {
8348
8348
  var C;
@@ -8359,15 +8359,15 @@ const Ho = {
8359
8359
  }
8360
8360
  });
8361
8361
  if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather links elapsed: ", r, ", total: ", a += r), ((c = C == null ? void 0 : C.data) == null ? void 0 : c.code) === 0) {
8362
- const g = (h = C == null ? void 0 : C.data) == null ? void 0 : h.data, x = [];
8363
- for (const E in g)
8364
- E === "ice-edge" && (g[E] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), E !== "tropicals" && x.push(
8365
- le.get(g[E], {
8362
+ const m = (h = C == null ? void 0 : C.data) == null ? void 0 : h.data, x = [];
8363
+ for (const E in m)
8364
+ E === "ice-edge" && (m[E] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), E !== "tropicals" && x.push(
8365
+ le.get(m[E], {
8366
8366
  headers: {
8367
8367
  Authorization: this.token || this.defaultMeteoToken,
8368
8368
  key: E
8369
8369
  },
8370
- responseType: /\.(jpg|png)$/.test(g[E]) ? "blob" : "json"
8370
+ responseType: /\.(jpg|png)$/.test(m[E]) ? "blob" : "json"
8371
8371
  }).catch((T) => {
8372
8372
  console.log(`[${E}] fetch layer error: ${T}`);
8373
8373
  })
@@ -8381,7 +8381,7 @@ const Ho = {
8381
8381
  type: ((ee = E == null ? void 0 : E.config) == null ? void 0 : ee.responseType) === "blob" ? "image" : "json",
8382
8382
  etime: this.ts
8383
8383
  });
8384
- }), g.tropicals && le.get(g.tropicals, {
8384
+ }), m.tropicals && le.get(m.tropicals, {
8385
8385
  headers: {
8386
8386
  Authorization: this.token || this.defaultMeteoToken,
8387
8387
  key: "tropicals"
@@ -8400,19 +8400,19 @@ const Ho = {
8400
8400
  });
8401
8401
  }
8402
8402
  if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather layers elapsed: ", r, ", total: ", a += r), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
8403
- const g = (u = this.weatherLayers["swell-direction"]) == null ? void 0 : u.raw, x = (l = this.weatherLayers["swell-height"]) == null ? void 0 : l.raw;
8403
+ const m = (u = this.weatherLayers["swell-direction"]) == null ? void 0 : u.raw, x = (l = this.weatherLayers["swell-height"]) == null ? void 0 : l.raw;
8404
8404
  delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
8405
8405
  type: "json",
8406
- direction: g,
8406
+ direction: m,
8407
8407
  height: { raw: x },
8408
8408
  etime: this.ts
8409
8409
  };
8410
8410
  }
8411
8411
  if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
8412
- const g = (p = this.weatherLayers["current-direction"]) == null ? void 0 : p.raw, x = (w = this.weatherLayers["current-speed"]) == null ? void 0 : w.raw;
8412
+ const m = (p = this.weatherLayers["current-direction"]) == null ? void 0 : p.raw, x = (w = this.weatherLayers["current-speed"]) == null ? void 0 : w.raw;
8413
8413
  delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
8414
8414
  type: "json",
8415
- direction: g,
8415
+ direction: m,
8416
8416
  speed: { raw: x },
8417
8417
  etime: this.ts
8418
8418
  };
@@ -8439,19 +8439,19 @@ const Ho = {
8439
8439
  });
8440
8440
  if (((e = l == null ? void 0 : l.data) == null ? void 0 : e.code) === 0) {
8441
8441
  const p = (a = l == null ? void 0 : l.data) == null ? void 0 : a.data, w = [];
8442
- for (const m in p)
8442
+ for (const g in p)
8443
8443
  w.push(
8444
- le.get(p[m], {
8444
+ le.get(p[g], {
8445
8445
  headers: {
8446
8446
  Authorization: this.token || this.defaultMeteoToken,
8447
- key: m
8447
+ key: g
8448
8448
  }
8449
8449
  })
8450
8450
  );
8451
8451
  const b = await Promise.all(w);
8452
- this.otherLayers = { enc: n, world12nm: c, worldMarine: h, chinaRoute: u }, b.map((m) => {
8453
- var d, C, g;
8454
- const v = ((d = m == null ? void 0 : m.data) == null ? void 0 : d.data) || (m == null ? void 0 : m.data), y = (g = (C = m == null ? void 0 : m.config) == null ? void 0 : C.headers) == null ? void 0 : g.key;
8452
+ this.otherLayers = { enc: n, world12nm: c, worldMarine: h, chinaRoute: u }, b.map((g) => {
8453
+ var d, C, m;
8454
+ const v = ((d = g == null ? void 0 : g.data) == null ? void 0 : d.data) || (g == null ? void 0 : g.data), y = (m = (C = g == null ? void 0 : g.config) == null ? void 0 : C.headers) == null ? void 0 : m.key;
8455
8455
  this.otherLayers[y] = v;
8456
8456
  });
8457
8457
  }
@@ -8463,18 +8463,18 @@ const Ho = {
8463
8463
  });
8464
8464
  if (((r = l == null ? void 0 : l.data) == null ? void 0 : r.code) === 0) {
8465
8465
  const p = (i = l == null ? void 0 : l.data) == null ? void 0 : i.data, w = [];
8466
- for (const m in p)
8466
+ for (const g in p)
8467
8467
  w.push(
8468
- le.get(p[m], {
8468
+ le.get(p[g], {
8469
8469
  headers: {
8470
8470
  Authorization: this.token || this.defaultMeteoToken,
8471
- key: m
8471
+ key: g
8472
8472
  }
8473
8473
  })
8474
8474
  );
8475
- (await Promise.all(w)).map((m) => {
8476
- var d, C, g;
8477
- const v = ((d = m == null ? void 0 : m.data) == null ? void 0 : d.data) || (m == null ? void 0 : m.data), y = (g = (C = m == null ? void 0 : m.config) == null ? void 0 : C.headers) == null ? void 0 : g.key;
8475
+ (await Promise.all(w)).map((g) => {
8476
+ var d, C, m;
8477
+ const v = ((d = g == null ? void 0 : g.data) == null ? void 0 : d.data) || (g == null ? void 0 : g.data), y = (m = (C = g == null ? void 0 : g.config) == null ? void 0 : C.headers) == null ? void 0 : m.key;
8478
8478
  this.otherLayers[y] = v;
8479
8479
  });
8480
8480
  }
@@ -8534,44 +8534,44 @@ const Ho = {
8534
8534
  const t = (/* @__PURE__ */ new Date()).valueOf();
8535
8535
  let e = 0, a = 0;
8536
8536
  const r = (u = this.map) == null ? void 0 : u.getBounds(), i = this.map.getZoom(), o = K.convertToStdLng(r._sw.lng), n = K.convertToStdLng(r._ne.lng), c = Math.floor(r._sw.lat), h = Math.ceil(r._ne.lat);
8537
- for (const m in this.weatherLayers)
8538
- if (this.weatherLayers[m].active && this.weatherLayers[m].type === "json") {
8539
- this.weatherLayers[m].active = !1, this.weatherLayers[m].version = Math.random() + 1;
8537
+ for (const g in this.weatherLayers)
8538
+ if (this.weatherLayers[g].active && this.weatherLayers[g].type === "json") {
8539
+ this.weatherLayers[g].active = !1, this.weatherLayers[g].version = Math.random() + 1;
8540
8540
  let v = [];
8541
- if (["swell", "current"].includes(m)) {
8542
- const y = ((l = this.weatherLayers[m]) == null ? void 0 : l.direction) || {};
8541
+ if (["swell", "current"].includes(g)) {
8542
+ const y = ((l = this.weatherLayers[g]) == null ? void 0 : l.direction) || {};
8543
8543
  for (const d in y)
8544
8544
  if (d > c && d < h && (!(i <= this.zoom) || d % (i < this.zoom / 2 ? 5 : 3) === 0)) {
8545
8545
  const C = y[d].lng;
8546
- o > n ? C.forEach((g, x) => {
8546
+ o > n ? C.forEach((m, x) => {
8547
8547
  var M, E, T, S, Q, G;
8548
8548
  if (i < 2) {
8549
- if ((g >= 0 && g <= 360 || g >= -360 && g <= 0) && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
8550
- const W = P.point([g, d], {
8549
+ if ((m >= 0 && m <= 360 || m >= -360 && m <= 0) && (!(i <= this.zoom) || m % (i < this.zoom / 2 ? 5 : 3) === 0)) {
8550
+ const W = P.point([m, d], {
8551
8551
  val: ((M = y[d].val) == null ? void 0 : M[x]) || ((E = y[d].dir) == null ? void 0 : E[x]),
8552
8552
  spd: (T = y[d].spd) == null ? void 0 : T[x]
8553
8553
  });
8554
8554
  v.push(W);
8555
8555
  }
8556
- } else if ((g >= o && g <= 180 || g >= -180 && g <= n) && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
8557
- const W = P.point([g, d], {
8556
+ } else if ((m >= o && m <= 180 || m >= -180 && m <= n) && (!(i <= this.zoom) || m % (i < this.zoom / 2 ? 5 : 3) === 0)) {
8557
+ const W = P.point([m, d], {
8558
8558
  val: ((S = y[d].val) == null ? void 0 : S[x]) || ((Q = y[d].dir) == null ? void 0 : Q[x]),
8559
8559
  spd: (G = y[d].spd) == null ? void 0 : G[x]
8560
8560
  });
8561
8561
  v.push(W);
8562
8562
  }
8563
- }) : C.forEach((g, x) => {
8563
+ }) : C.forEach((m, x) => {
8564
8564
  var M, E, T, S, Q, G;
8565
8565
  if (o < 2) {
8566
- if ((g >= 0 && g <= 360 || g >= -360 && g <= 0) && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
8567
- const W = P.point([g, d], {
8566
+ if ((m >= 0 && m <= 360 || m >= -360 && m <= 0) && (!(i <= this.zoom) || m % (i < this.zoom / 2 ? 5 : 3) === 0)) {
8567
+ const W = P.point([m, d], {
8568
8568
  val: ((M = y[d].val) == null ? void 0 : M[x]) || ((E = y[d].dir) == null ? void 0 : E[x]),
8569
8569
  spd: (T = y[d].spd) == null ? void 0 : T[x]
8570
8570
  });
8571
8571
  v.push(W);
8572
8572
  }
8573
- } else if (g >= o && g <= n && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
8574
- const W = P.point([g, d], {
8573
+ } else if (m >= o && m <= n && (!(i <= this.zoom) || m % (i < this.zoom / 2 ? 5 : 3) === 0)) {
8574
+ const W = P.point([m, d], {
8575
8575
  val: ((S = y[d].val) == null ? void 0 : S[x]) || ((Q = y[d].dir) == null ? void 0 : Q[x]),
8576
8576
  spd: (G = y[d].spd) == null ? void 0 : G[x]
8577
8577
  });
@@ -8579,17 +8579,17 @@ const Ho = {
8579
8579
  }
8580
8580
  });
8581
8581
  }
8582
- if (a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("direction elapsed: ", a, ", total: ", e += a), m === "swell") {
8583
- const d = this.weatherLayers[m].height;
8582
+ if (a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("direction elapsed: ", a, ", total: ", e += a), g === "swell") {
8583
+ const d = this.weatherLayers[g].height;
8584
8584
  if (d) {
8585
8585
  if (!d.data) {
8586
8586
  const C = [];
8587
- for (const g in (p = d.raw) == null ? void 0 : p.LineString) {
8588
- const x = d.raw.LineString[g];
8587
+ for (const m in (p = d.raw) == null ? void 0 : p.LineString) {
8588
+ const x = d.raw.LineString[m];
8589
8589
  for (const M of x)
8590
8590
  C.push(
8591
8591
  P.lineString(M, {
8592
- val: Number(g)
8592
+ val: Number(m)
8593
8593
  })
8594
8594
  );
8595
8595
  d.data = P.featureCollection(C);
@@ -8602,60 +8602,60 @@ const Ho = {
8602
8602
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("height elapsed: ", a, ", total: ", e += a);
8603
8603
  }
8604
8604
  }
8605
- if (m === "current") {
8606
- const d = this.weatherLayers[m].speed;
8605
+ if (g === "current") {
8606
+ const d = this.weatherLayers[g].speed;
8607
8607
  if (d) {
8608
8608
  if (!d.data) {
8609
- const g = [];
8609
+ const m = [];
8610
8610
  for (const x in (w = d.raw) == null ? void 0 : w.Polygon) {
8611
8611
  const M = d.raw.Polygon[x];
8612
8612
  for (const E of M)
8613
- g.push(
8613
+ m.push(
8614
8614
  P.polygon(E, {
8615
8615
  val: Number(x)
8616
8616
  })
8617
8617
  );
8618
8618
  }
8619
- d.data = P.featureCollection(g);
8619
+ d.data = P.featureCollection(m);
8620
8620
  }
8621
- const C = i < this.zoom ? d.data.features.filter((g) => g.properties.val > 0.5) : d.data.features;
8621
+ const C = i < this.zoom ? d.data.features.filter((m) => m.properties.val > 0.5) : d.data.features;
8622
8622
  v = v.concat(C), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("speed elapsed: ", a, ", total: ", e += a);
8623
8623
  }
8624
8624
  }
8625
- } else if (m === "wind") {
8625
+ } else if (g === "wind") {
8626
8626
  const y = this.weatherLayers.wind.raw;
8627
8627
  for (const d in y)
8628
8628
  if (d > c && d < h && (!(i <= this.zoom) || d % (i < this.zoom / 2 ? 5 : 3) === 0)) {
8629
8629
  const C = y[d].lng;
8630
- o > n ? C.forEach((g, x) => {
8630
+ o > n ? C.forEach((m, x) => {
8631
8631
  var M, E, T, S;
8632
8632
  if (i < 2) {
8633
- if ((g >= 0 && g <= 360 || g >= -360 && g <= 0) && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
8634
- const Q = P.point([g, d], {
8633
+ if ((m >= 0 && m <= 360 || m >= -360 && m <= 0) && (!(i <= this.zoom) || m % (i < this.zoom / 2 ? 5 : 3) === 0)) {
8634
+ const Q = P.point([m, d], {
8635
8635
  dir: ((M = y[d].val) == null ? void 0 : M[x]) || ((E = y[d].dir) == null ? void 0 : E[x]),
8636
8636
  spd: y[d].spd[x]
8637
8637
  });
8638
8638
  v.push(Q);
8639
8639
  }
8640
- } else if ((g >= o && g <= 180 || g >= -180 && g <= n) && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
8641
- const Q = P.point([g, d], {
8640
+ } else if ((m >= o && m <= 180 || m >= -180 && m <= n) && (!(i <= this.zoom) || m % (i < this.zoom / 2 ? 5 : 3) === 0)) {
8641
+ const Q = P.point([m, d], {
8642
8642
  dir: ((T = y[d].val) == null ? void 0 : T[x]) || ((S = y[d].dir) == null ? void 0 : S[x]),
8643
8643
  spd: y[d].spd[x]
8644
8644
  });
8645
8645
  v.push(Q);
8646
8646
  }
8647
- }) : C.forEach((g, x) => {
8647
+ }) : C.forEach((m, x) => {
8648
8648
  var M, E, T, S;
8649
8649
  if (i < 2) {
8650
- if ((g >= 0 && g <= 360 || g >= -360 && g <= 0) && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
8651
- const Q = P.point([g, d], {
8650
+ if ((m >= 0 && m <= 360 || m >= -360 && m <= 0) && (!(i <= this.zoom) || m % (i < this.zoom / 2 ? 5 : 3) === 0)) {
8651
+ const Q = P.point([m, d], {
8652
8652
  dir: ((M = y[d].val) == null ? void 0 : M[x]) || ((E = y[d].dir) == null ? void 0 : E[x]),
8653
8653
  spd: y[d].spd[x]
8654
8654
  });
8655
8655
  v.push(Q);
8656
8656
  }
8657
- } else if (g >= o && g <= n && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
8658
- const Q = P.point([g, d], {
8657
+ } else if (m >= o && m <= n && (!(i <= this.zoom) || m % (i < this.zoom / 2 ? 5 : 3) === 0)) {
8658
+ const Q = P.point([m, d], {
8659
8659
  dir: ((T = y[d].val) == null ? void 0 : T[x]) || ((S = y[d].dir) == null ? void 0 : S[x]),
8660
8660
  spd: y[d].spd[x]
8661
8661
  });
@@ -8664,16 +8664,16 @@ const Ho = {
8664
8664
  });
8665
8665
  }
8666
8666
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("wind barb elapsed: ", a, ", total: ", e += a);
8667
- } else if (m === "sig-wave-height") {
8668
- if (this.weatherLayers[m].data)
8669
- v = this.weatherLayers[m].data;
8667
+ } else if (g === "sig-wave-height") {
8668
+ if (this.weatherLayers[g].data)
8669
+ v = this.weatherLayers[g].data;
8670
8670
  else {
8671
- const y = this.weatherLayers[m].raw;
8671
+ const y = this.weatherLayers[g].raw;
8672
8672
  if (y) {
8673
8673
  const d = [];
8674
8674
  for (const C in y.Polygon) {
8675
- const g = y.Polygon[C];
8676
- for (const x of g)
8675
+ const m = y.Polygon[C];
8676
+ for (const x of m)
8677
8677
  d.push(
8678
8678
  P.polygon(x, {
8679
8679
  val: Number(C)
@@ -8681,11 +8681,11 @@ const Ho = {
8681
8681
  );
8682
8682
  }
8683
8683
  for (const C in y.Point) {
8684
- const g = y.Point[C];
8685
- for (let x = 0; x < ((b = g.lng) == null ? void 0 : b.length); x++)
8684
+ const m = y.Point[C];
8685
+ for (let x = 0; x < ((b = m.lng) == null ? void 0 : b.length); x++)
8686
8686
  d.push(
8687
- P.point([g.lng[x], C], {
8688
- val: Number(g.val[x])
8687
+ P.point([m.lng[x], C], {
8688
+ val: Number(m.val[x])
8689
8689
  })
8690
8690
  );
8691
8691
  }
@@ -8693,16 +8693,16 @@ const Ho = {
8693
8693
  }
8694
8694
  }
8695
8695
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sigWave elapsed: ", a, ", total: ", e += a);
8696
- } else if (m === "prmsl") {
8697
- if (this.weatherLayers[m].data)
8698
- v = this.weatherLayers[m].data;
8696
+ } else if (g === "prmsl") {
8697
+ if (this.weatherLayers[g].data)
8698
+ v = this.weatherLayers[g].data;
8699
8699
  else {
8700
- const y = this.weatherLayers[m].raw;
8700
+ const y = this.weatherLayers[g].raw;
8701
8701
  if (y) {
8702
8702
  const d = [];
8703
8703
  for (const C in y.LineString) {
8704
- const g = y.LineString[C];
8705
- for (const x of g)
8704
+ const m = y.LineString[C];
8705
+ for (const x of m)
8706
8706
  d.push(
8707
8707
  P.lineString(x, {
8708
8708
  val: Number(C)
@@ -8710,9 +8710,9 @@ const Ho = {
8710
8710
  );
8711
8711
  }
8712
8712
  for (const C in y.Point)
8713
- y.Point[C].lng.forEach((g, x) => {
8714
- g = K.convertToStdLng(g), d.push(
8715
- P.point([g, C], {
8713
+ y.Point[C].lng.forEach((m, x) => {
8714
+ m = K.convertToStdLng(m), d.push(
8715
+ P.point([m, C], {
8716
8716
  val: y.Point[C].val[x],
8717
8717
  type: y.Point[C].type[x]
8718
8718
  })
@@ -8722,16 +8722,16 @@ const Ho = {
8722
8722
  }
8723
8723
  }
8724
8724
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", a, ", total: ", e += a);
8725
- } else if (m === "arctic" || m === "iceberg") {
8726
- if (this.weatherLayers[m].data)
8727
- v = this.weatherLayers[m].data;
8725
+ } else if (g === "arctic" || g === "iceberg") {
8726
+ if (this.weatherLayers[g].data)
8727
+ v = this.weatherLayers[g].data;
8728
8728
  else {
8729
- const y = this.weatherLayers[m].raw;
8729
+ const y = this.weatherLayers[g].raw;
8730
8730
  if (y) {
8731
8731
  const d = [];
8732
8732
  for (const C in y.LineString) {
8733
- const g = y.LineString[C];
8734
- for (const x of g)
8733
+ const m = y.LineString[C];
8734
+ for (const x of m)
8735
8735
  d.push(
8736
8736
  P.lineString(x, {
8737
8737
  val: Number(C)
@@ -8743,7 +8743,7 @@ const Ho = {
8743
8743
  }
8744
8744
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e);
8745
8745
  }
8746
- console.log(m, " elapsed: ", a, ", total: ", e += a), v.length && (this.weatherLayers[m].data = P.featureCollection(v)), this.weatherLayers[m].active = !0, this.weatherLayers[m].version = Math.random() + 1;
8746
+ console.log(g, " elapsed: ", a, ", total: ", e += a), v.length && (this.weatherLayers[g].data = P.featureCollection(v)), this.weatherLayers[g].active = !0, this.weatherLayers[g].version = Math.random() + 1;
8747
8747
  }
8748
8748
  },
8749
8749
  handleDragEndWithZoom4Image() {
@@ -8776,8 +8776,8 @@ const Ho = {
8776
8776
  this.handleBeforeLayerToggle();
8777
8777
  },
8778
8778
  handleBeforeLayerToggle() {
8779
- var t, e, a, r, i, o, n, c, h, u, l, p, w, b, m, v;
8780
- (t = this.map) != null && t.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (a = this.otherLayers) != null && a["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (o = this.otherLayers) != null && o["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (c = this.otherLayers) != null && c.pirates || (h = this.otherLayers) != null && h.ports || (u = this.otherLayers) != null && u.enc || (l = this.otherLayers) != null && l.world12nm || (p = this.otherLayers) != null && p.worldMarine || (w = this.otherLayers) != null && w.chinaRoute || (b = this.otherLayers) != null && b["voluntary-reporting-area"] || (m = this.otherLayers) != null && m["eca-zones"] || (v = this.otherLayers) != null && v["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
8779
+ var t, e, a, r, i, o, n, c, h, u, l, p, w, b, g, v;
8780
+ (t = this.map) != null && t.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (a = this.otherLayers) != null && a["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (o = this.otherLayers) != null && o["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (c = this.otherLayers) != null && c.pirates || (h = this.otherLayers) != null && h.ports || (u = this.otherLayers) != null && u.enc || (l = this.otherLayers) != null && l.world12nm || (p = this.otherLayers) != null && p.worldMarine || (w = this.otherLayers) != null && w.chinaRoute || (b = this.otherLayers) != null && b["voluntary-reporting-area"] || (g = this.otherLayers) != null && g["eca-zones"] || (v = this.otherLayers) != null && v["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
8781
8781
  },
8782
8782
  handleDateChange(t = { tropicals: !1 }) {
8783
8783
  this.fetchWeatherLayers(t), this.fetchOtherLayers({ dayNight: !0 });
@@ -8811,8 +8811,8 @@ const Ho = {
8811
8811
  }
8812
8812
  },
8813
8813
  handle3dToggle(t) {
8814
- var e, a, r, i, o, n, c, h, u, l, p, w, b, m, v, y, d, C, g, x;
8815
- t ? (this.map.setProjection("globe"), this.mapProjection = "globe", (a = this.map) != null && a.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (c = this.map) != null && c.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((h = this.map) != null && h.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((l = this.map) == null || l.moveLayer((u = this.viewport) == null ? void 0 : u.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("zoomend", this.handleDragEndWithZoom4Json), this.map.off("dragend", this.handleDragEndWithZoom4Json), this.map.off("move", this.handleDragEndWithZoom4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.handleDragEndWithZoom4Image(), this.handleDragEndWithZoom4Json(), (w = this.map) != null && w.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((b = this.map) != null && b.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((v = this.map) == null || v.moveLayer((m = this.viewport) == null ? void 0 : m.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (d = this.map) != null && d.getLayer((y = this.viewport) == null ? void 0 : y.particleLayer) && ((C = this.map) != null && C.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((x = this.map) == null || x.moveLayer((g = this.viewport) == null ? void 0 : g.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
8814
+ var e, a, r, i, o, n, c, h, u, l, p, w, b, g, v, y, d, C, m, x;
8815
+ t ? (this.map.setProjection("globe"), this.mapProjection = "globe", (a = this.map) != null && a.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (c = this.map) != null && c.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((h = this.map) != null && h.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((l = this.map) == null || l.moveLayer((u = this.viewport) == null ? void 0 : u.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("zoomend", this.handleDragEndWithZoom4Json), this.map.off("dragend", this.handleDragEndWithZoom4Json), this.map.off("move", this.handleDragEndWithZoom4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.handleDragEndWithZoom4Image(), this.handleDragEndWithZoom4Json(), (w = this.map) != null && w.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((b = this.map) != null && b.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((v = this.map) == null || v.moveLayer((g = this.viewport) == null ? void 0 : g.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (d = this.map) != null && d.getLayer((y = this.viewport) == null ? void 0 : y.particleLayer) && ((C = this.map) != null && C.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((x = this.map) == null || x.moveLayer((m = this.viewport) == null ? void 0 : m.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
8816
8816
  },
8817
8817
  handleParticle(t) {
8818
8818
  this.particleFactor = t, this.weatherLayers[t.key] && (this.weatherLayers[t.key].particle = t.particle), this.activeWeatherLayers.map((r) => {
@@ -8837,7 +8837,7 @@ const Ho = {
8837
8837
  };
8838
8838
  function No(t, e, a, r, i, o) {
8839
8839
  var ie, O, Z, Ae, re, se, ne, B, Ce, xe, Be, Ie, Ee, De, Pe, ke, Me, ze, Te, Qe, Se, _e, He, Oe, Ne, je, Re, Fe, Ge, We;
8840
- const n = z("IdmGlLayer"), c = z("IdmENC"), h = z("IdmWorld12nm"), u = z("IdmWorldMarine"), l = z("IdmChinaRoute"), p = z("IdmSigWave"), w = z("IdmSwell"), b = z("IdmPrmsl"), m = z("IdmIceCover"), v = z("IdmIceThickness"), y = z("IdmTropicals"), d = z("IdmCurrents"), C = z("IdmCurrentParticle"), g = z("IdmWindBarb"), x = z("IdmWindParticle"), M = z("IdmPrecip3h"), E = z("IdmVisibility"), T = z("IdmWaterTemp"), S = z("IdmTemp"), Q = z("IdmArctic"), G = z("IdmWarZone"), W = z("IdmGmdssArea"), ee = z("IdmEcaZone"), ce = z("IdmAlertZone"), he = z("IdmPort"), de = z("IdmLoadLine"), pe = z("IdmTimezone"), ue = z("IdmVRA"), me = z("IdmSpecialArea"), ge = z("IdmTerminator"), te = z("IdmLatLng"), oe = z("IdmMeasure"), we = z("IdmPoint");
8840
+ const n = z("IdmGlLayer"), c = z("IdmENC"), h = z("IdmWorld12nm"), u = z("IdmWorldMarine"), l = z("IdmChinaRoute"), p = z("IdmSigWave"), w = z("IdmSwell"), b = z("IdmPrmsl"), g = z("IdmIceCover"), v = z("IdmIceThickness"), y = z("IdmTropicals"), d = z("IdmCurrents"), C = z("IdmCurrentParticle"), m = z("IdmWindBarb"), x = z("IdmWindParticle"), M = z("IdmPrecip3h"), E = z("IdmVisibility"), T = z("IdmWaterTemp"), S = z("IdmTemp"), Q = z("IdmArctic"), G = z("IdmWarZone"), W = z("IdmGmdssArea"), ee = z("IdmEcaZone"), ce = z("IdmAlertZone"), he = z("IdmPort"), de = z("IdmLoadLine"), pe = z("IdmTimezone"), ue = z("IdmVRA"), me = z("IdmSpecialArea"), ge = z("IdmTerminator"), te = z("IdmLatLng"), oe = z("IdmMeasure"), we = z("IdmPoint");
8841
8841
  return a.map ? (A(), f("div", Oo, [
8842
8842
  k(n, H({
8843
8843
  ref: "layer",
@@ -8910,7 +8910,7 @@ function No(t, e, a, r, i, o) {
8910
8910
  "before-layer": a.beforeLayer,
8911
8911
  "active-weather-layers": i.activeWeatherLayers
8912
8912
  }, t.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
8913
- k(m, H({
8913
+ k(g, H({
8914
8914
  viewport: i.viewport,
8915
8915
  factor: (B = i.weatherLayers) == null ? void 0 : B["ice-cover"],
8916
8916
  "toggle-version": a.toggleVersion,
@@ -8949,7 +8949,7 @@ function No(t, e, a, r, i, o) {
8949
8949
  "before-layer": a.beforeLayer,
8950
8950
  "toggle-version": a.toggleVersion
8951
8951
  }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
8952
- k(g, H({
8952
+ k(m, H({
8953
8953
  ref: "windBarb",
8954
8954
  map: a.map,
8955
8955
  "map-projection": i.mapProjection,