@idmwx/idmui-gl3 5.9.2 → 5.9.3

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
@@ -562,11 +562,11 @@ function $t(t, e, a, r, i, o) {
562
562
  value: n.name
563
563
  }, {
564
564
  default: re(() => {
565
- var b, v, y, x, D, L;
565
+ var b, v, w, B, D, C;
566
566
  return [
567
567
  ee(E(n.name) + " ", 1),
568
568
  u !== 0 ? (m(), g("span", qt, E(n.resolution) + "km " + E(n.length) + "days", 1)) : R("", !0),
569
- u === 0 ? (m(), g("div", Vt, "Provides the best forecast")) : (y = (v = (b = n == null ? void 0 : n.update) == null ? void 0 : b.default) == null ? void 0 : v.meta) != null && y.initialisationTime ? (m(), g("div", Zt, "Update: " + E(o.computeDateZ((L = (D = (x = n == null ? void 0 : n.update) == null ? void 0 : x.default) == null ? void 0 : D.meta) == null ? void 0 : L.initialisationTime)), 1)) : R("", !0)
569
+ u === 0 ? (m(), g("div", Vt, "Provides the best forecast")) : (w = (v = (b = n == null ? void 0 : n.update) == null ? void 0 : b.default) == null ? void 0 : v.meta) != null && w.initialisationTime ? (m(), g("div", Zt, "Update: " + E(o.computeDateZ((C = (D = (B = n == null ? void 0 : n.update) == null ? void 0 : B.default) == null ? void 0 : D.meta) == null ? void 0 : C.initialisationTime)), 1)) : R("", !0)
570
570
  ];
571
571
  }),
572
572
  _: 2
@@ -958,8 +958,8 @@ class Le {
958
958
  };
959
959
  n.resolution && a.uniform2f(n.resolution, a.canvas.width * e.ratio, a.canvas.height * e.ratio), a.activeTexture(a.TEXTURE0), a.bindTexture(a.TEXTURE_2D, i), n.image && a.uniform1i(n.image, 0), a.activeTexture(a.TEXTURE1), a.bindTexture(a.TEXTURE_2D, o), n.color && a.uniform1i(n.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (n.uvRange && a.uniform2f(n.uvRange, c.uvRange[0], c.uvRange[1]), n.sRange && a.uniform2f(n.sRange, c.sRange[0], c.sRange[1])), n.scale && a.uniform1f(n.scale, (c == null ? void 0 : c.scale) || 1);
960
960
  const u = e.getBoundPixel(), b = e.map.getZoom() + 1, v = e.getWorldCopy(u, b);
961
- for (const y of v) {
962
- const x = (y[0] - u[0]) * e.ratio, D = (y[1] - u[3]) * e.ratio, L = y[2] * e.ratio, [A, f, w, B] = [x, L + x, D, L + D], d = new Float32Array([A, w, f, w, A, B, A, B, f, w, f, B]);
961
+ for (const w of v) {
962
+ const B = (w[0] - u[0]) * e.ratio, D = (w[1] - u[3]) * e.ratio, C = w[2] * e.ratio, [A, f, y, x] = [B, C + B, D, C + D], d = new Float32Array([A, y, f, y, A, x, A, x, f, y, f, x]);
963
963
  a.bindBuffer(a.ARRAY_BUFFER, l), a.bufferData(a.ARRAY_BUFFER, d, a.STATIC_DRAW), a.drawArrays(a.TRIANGLES, 0, 6);
964
964
  }
965
965
  } catch (n) {
@@ -4486,11 +4486,11 @@ const Ha = {
4486
4486
  var u, b;
4487
4487
  return ((u = n.geometry) == null ? void 0 : u.type) === "LineString" && ((b = n.properties) == null ? void 0 : b.type) === "forecast";
4488
4488
  })[0]) == null || p.properties.model, h.forEach((n, u) => {
4489
- var b, v, y, x, D, L;
4490
- ((b = n.geometry) == null ? void 0 : b.type) === "Point" && ((v = n.properties) == null ? void 0 : v.type) === "history" && (l = u, c = c === void 0 ? u : c), ((y = n.geometry) == null ? void 0 : y.type) === "Point" && ((x = n.properties) == null ? void 0 : x.type) === "forecast" && c === void 0 && (c = u), ((D = n.geometry) == null ? void 0 : D.type) === "LineString" && ((L = n.properties) == null || L.type);
4489
+ var b, v, w, B, D, C;
4490
+ ((b = n.geometry) == null ? void 0 : b.type) === "Point" && ((v = n.properties) == null ? void 0 : v.type) === "history" && (l = u, c = c === void 0 ? u : c), ((w = n.geometry) == null ? void 0 : w.type) === "Point" && ((B = n.properties) == null ? void 0 : B.type) === "forecast" && c === void 0 && (c = u), ((D = n.geometry) == null ? void 0 : D.type) === "LineString" && ((C = n.properties) == null || C.type);
4491
4491
  }), h.map((n, u) => {
4492
- var b, v, y, x, D, L, A;
4493
- if (((b = n.geometry) == null ? void 0 : b.type) === "LineString" && ((v = n.properties) == null || v.type), ((y = n.geometry) == null ? void 0 : y.type) === "Point" && ((x = n.properties) == null ? void 0 : x.type) === "forecast" && (n.properties.name = o, n.properties.showNameLabel = u === 0, n.properties.format = X(n.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((D = n.geometry) == null ? void 0 : D.type) === "Point" && ((L = n.properties) == null ? void 0 : L.type) === "history") {
4492
+ var b, v, w, B, D, C, A;
4493
+ if (((b = n.geometry) == null ? void 0 : b.type) === "LineString" && ((v = n.properties) == null || v.type), ((w = n.geometry) == null ? void 0 : w.type) === "Point" && ((B = n.properties) == null ? void 0 : B.type) === "forecast" && (n.properties.name = o, n.properties.showNameLabel = u === 0, n.properties.format = X(n.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((D = n.geometry) == null ? void 0 : D.type) === "Point" && ((C = n.properties) == null ? void 0 : C.type) === "history") {
4494
4494
  n.properties.format = X(n.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
4495
4495
  const f = X((A = n.properties) == null ? void 0 : A.date).utc().format("HHmm") === X().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm");
4496
4496
  n.properties.showHistoryLabel = f || u === l, n.properties.name = o;
@@ -4765,7 +4765,7 @@ const Ha = {
4765
4765
  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));
4766
4766
  },
4767
4767
  handleDateChange() {
4768
- var t, e, a, r, i, o, l, c, h, p, n, u, b, v, y, x, D, L, A, f, w, B, d, P, Q, S, _, H, Y, J, W, de, pe, ue, me, ge;
4768
+ var t, e, a, r, i, o, l, c, h, p, n, u, b, v, w, B, D, C, A, f, y, x, d, P, Q, S, _, H, Y, J, W, de, pe, ue, me, ge;
4769
4769
  if ((t = this.interpolateMarkers) == null || t.forEach((ie) => ie == null ? void 0 : ie.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
4770
4770
  const ie = X(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), ne = this.interpolateData.filter((j) => j.properties.date === ie.format() && !j.properties.disabled), we = this.handleComputePolygons(ne), oe = M.featureCollection([...ne]);
4771
4771
  we.forEach((j) => {
@@ -4787,7 +4787,7 @@ const Ha = {
4787
4787
  for (const j of ne)
4788
4788
  if (!j.properties.disabled) {
4789
4789
  let te = "#f44336";
4790
- ((c = (l = j.properties) == null ? void 0 : l.wind) == null ? void 0 : c.kts) < 32 || !((p = (h = j.properties) == null ? void 0 : h.wind) != null && p.kts) ? te = "#03f869" : ((u = (n = j.properties) == null ? void 0 : n.wind) == null ? void 0 : u.kts) >= 32 && ((v = (b = j.properties) == null ? void 0 : b.wind) == null ? void 0 : v.kts) < 47 ? te = "#f2f202" : ((x = (y = j.properties) == null ? void 0 : y.wind) == null ? void 0 : x.kts) >= 47 && ((L = (D = j.properties) == null ? void 0 : D.wind) == null ? void 0 : L.kts) < 63 ? te = "#ff9100" : ((f = (A = j.properties) == null ? void 0 : A.wind) == null ? void 0 : f.kts) >= 63 && ((B = (w = j.properties) == null ? void 0 : w.wind) == null ? void 0 : B.kts) < 79 ? te = "#f44336" : ((P = (d = j.properties) == null ? void 0 : d.wind) == null ? void 0 : P.kts) >= 79 && ((S = (Q = j.properties) == null ? void 0 : Q.wind) == null ? void 0 : S.kts) < 94 ? te = "#f903d0" : ((H = (_ = j.properties) == null ? void 0 : _.wind) == null ? void 0 : H.kts) >= 94 ? te = "#8702f9" : te = "#f44336";
4790
+ ((c = (l = j.properties) == null ? void 0 : l.wind) == null ? void 0 : c.kts) < 32 || !((p = (h = j.properties) == null ? void 0 : h.wind) != null && p.kts) ? te = "#03f869" : ((u = (n = j.properties) == null ? void 0 : n.wind) == null ? void 0 : u.kts) >= 32 && ((v = (b = j.properties) == null ? void 0 : b.wind) == null ? void 0 : v.kts) < 47 ? te = "#f2f202" : ((B = (w = j.properties) == null ? void 0 : w.wind) == null ? void 0 : B.kts) >= 47 && ((C = (D = j.properties) == null ? void 0 : D.wind) == null ? void 0 : C.kts) < 63 ? te = "#ff9100" : ((f = (A = j.properties) == null ? void 0 : A.wind) == null ? void 0 : f.kts) >= 63 && ((x = (y = j.properties) == null ? void 0 : y.wind) == null ? void 0 : x.kts) < 79 ? te = "#f44336" : ((P = (d = j.properties) == null ? void 0 : d.wind) == null ? void 0 : P.kts) >= 79 && ((S = (Q = j.properties) == null ? void 0 : Q.wind) == null ? void 0 : S.kts) < 94 ? te = "#f903d0" : ((H = (_ = j.properties) == null ? void 0 : _.wind) == null ? void 0 : H.kts) >= 94 ? te = "#8702f9" : te = "#f44336";
4791
4791
  const Ae = `<svg t="1719918955501"
4792
4792
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
4793
4793
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -4824,18 +4824,13 @@ const Ha = {
4824
4824
  var o, l, c, h, p, n, u, b;
4825
4825
  const e = t.features[0], a = (l = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : l.features.filter(
4826
4826
  (v) => {
4827
- var y;
4828
- return v.geometry.type === "LineString" && v.properties.type === "forecast" && v.properties.name === ((y = e == null ? void 0 : e.properties) == null ? void 0 : y.name);
4827
+ var w;
4828
+ return v.geometry.type === "LineString" && v.properties.type === "forecast" && v.properties.name === ((w = e == null ? void 0 : e.properties) == null ? void 0 : w.name);
4829
4829
  }
4830
- );
4831
- a.sort((v, y) => {
4832
- var x, D, L, A;
4833
- return ((x = v.properties) == null ? void 0 : x.model) === "cma" ? -1 : ((D = v.properties) == null ? void 0 : D.model) === "jma" ? ((L = y.properties) == null ? void 0 : L.model) === "cma" ? 1 : -1 : v.properties.model === "ecmwf" ? ["jma", "cma"].includes((A = y.properties) == null ? void 0 : A.model) ? 1 : -1 : 0;
4834
- });
4835
- const r = (h = (c = this.tropicals) == null ? void 0 : c.data) == null ? void 0 : h.features.filter(
4830
+ ), r = (h = (c = this.tropicals) == null ? void 0 : c.data) == null ? void 0 : h.features.filter(
4836
4831
  (v) => {
4837
- var y;
4838
- return v.geometry.type === "LineString" && v.properties.type === "history" && v.properties.name === ((y = e == null ? void 0 : e.properties) == null ? void 0 : y.name);
4832
+ var w;
4833
+ return v.geometry.type === "LineString" && v.properties.type === "history" && v.properties.name === ((w = e == null ? void 0 : e.properties) == null ? void 0 : w.name);
4839
4834
  }
4840
4835
  );
4841
4836
  this.activeTropicals = {
@@ -4947,25 +4942,25 @@ const Ha = {
4947
4942
  style: { "justify-content": "flex-start" }
4948
4943
  }, qa = { class: "forecast-models" }, Va = ["onClick"], Za = { class: "more" };
4949
4944
  function $a(t, e, a, r, i, o) {
4950
- var l, c, h, p, n, u, b, v, y, x, D, L, A, f, w;
4945
+ var l, c, h, p, n, u, b, v, w, B, D, C, A, f, y;
4951
4946
  return fe((m(), g("div", Oa, [
4952
4947
  s("div", Na, [
4953
4948
  s("div", {
4954
4949
  class: "iconfont close-btn",
4955
- onClick: e[0] || (e[0] = (B) => i.showTropicals = !1)
4950
+ onClick: e[0] || (e[0] = (x) => i.showTropicals = !1)
4956
4951
  }, ""),
4957
4952
  s("div", ja, [
4958
4953
  (c = (l = i.activeTropicals) == null ? void 0 : l.history) != null && c.level ? (m(), g("span", Ra, E((p = (h = i.activeTropicals) == null ? void 0 : h.history) == null ? void 0 : p.level) + " , ", 1)) : R("", !0),
4959
4954
  ee(E((n = i.activeTropicals) == null ? void 0 : n.name), 1)
4960
4955
  ]),
4961
- s("div", Fa, " Last update: " + E(o.computeTime(((b = (u = i.activeTropicals) == null ? void 0 : u.history) == null ? void 0 : b.updated) || ((x = (y = (v = i.activeTropicals) == null ? void 0 : v.forecasts) == null ? void 0 : y.filter((B) => !B.disabled)[0]) == null ? void 0 : x.date))), 1)
4956
+ s("div", Fa, " Last update: " + E(o.computeTime(((b = (u = i.activeTropicals) == null ? void 0 : u.history) == null ? void 0 : b.updated) || ((B = (w = (v = i.activeTropicals) == null ? void 0 : v.forecasts) == null ? void 0 : w.filter((x) => !x.disabled)[0]) == null ? void 0 : B.date))), 1)
4962
4957
  ]),
4963
4958
  s("div", Ga, [
4964
4959
  s("div", Wa, [
4965
4960
  s("div", Ua, [
4966
4961
  s("div", Ya, [
4967
4962
  e[2] || (e[2] = s("label", null, "Wind speed : ", -1)),
4968
- s("span", null, E(((L = (D = i.activeTropicals) == null ? void 0 : D.history) == null ? void 0 : L.kts) || "-") + "[kts]", 1)
4963
+ s("span", null, E(((C = (D = i.activeTropicals) == null ? void 0 : D.history) == null ? void 0 : C.kts) || "-") + "[kts]", 1)
4969
4964
  ]),
4970
4965
  s("div", Ka, [
4971
4966
  e[3] || (e[3] = s("label", null, "Pressure : ", -1)),
@@ -4976,31 +4971,31 @@ function $a(t, e, a, r, i, o) {
4976
4971
  s("div", Ja, [
4977
4972
  e[4] || (e[4] = s("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
4978
4973
  s("div", qa, [
4979
- (m(!0), g(F, null, U((w = i.activeTropicals) == null ? void 0 : w.forecasts, (B, d) => {
4974
+ (m(!0), g(F, null, U((y = i.activeTropicals) == null ? void 0 : y.forecasts, (x, d) => {
4980
4975
  var P, Q, S, _;
4981
4976
  return m(), g("div", {
4982
4977
  key: d,
4983
4978
  class: G([
4984
4979
  "model",
4985
- B.disabled ? "" : "active",
4980
+ x.disabled ? "" : "active",
4986
4981
  d > 0 && d < ((Q = (P = i.activeTropicals) == null ? void 0 : P.forecasts) == null ? void 0 : Q.length) - 1 && ((_ = (S = i.activeTropicals) == null ? void 0 : S.forecasts) == null ? void 0 : _.length) > 2 ? "center-child" : ""
4987
4982
  ]),
4988
- onClick: (H) => o.handleForecastToggle(B)
4983
+ onClick: (H) => o.handleForecastToggle(x)
4989
4984
  }, [
4990
4985
  s("span", {
4991
- class: G(B.model)
4992
- }, E(B.model), 3)
4986
+ class: G(x.model)
4987
+ }, E(x.model), 3)
4993
4988
  ], 10, Va);
4994
4989
  }), 128))
4995
4990
  ])
4996
4991
  ])
4997
4992
  ]),
4998
- e[5] || (e[5] = ut('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-5947a418></div><div class="row" style="padding:2px 10px;" data-v-5947a418><div class="legend" data-v-5947a418><div class="icon td" data-v-5947a418></div><div class="label" data-v-5947a418>TD</div></div><div class="legend" data-v-5947a418><div class="icon ts" data-v-5947a418></div><div class="label" data-v-5947a418>TS</div></div><div class="legend" data-v-5947a418><div class="icon sts" data-v-5947a418></div><div class="label" data-v-5947a418>STS</div></div><div class="legend" data-v-5947a418><div class="icon ty" data-v-5947a418></div><div class="label" data-v-5947a418>TY</div></div><div class="legend" data-v-5947a418><div class="icon sty" data-v-5947a418></div><div class="label" data-v-5947a418>STY</div></div><div class="legend" data-v-5947a418><div class="icon supper-ty" data-v-5947a418></div><div class="label" data-v-5947a418>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-5947a418><div class="legend" data-v-5947a418><div class="icon history" data-v-5947a418></div><div class="label" data-v-5947a418>History</div></div><div class="legend" data-v-5947a418><div class="icon r7" data-v-5947a418></div><div class="label" data-v-5947a418>35kts Radii</div></div><div class="legend" data-v-5947a418><div class="icon r10" data-v-5947a418></div><div class="label" data-v-5947a418>50kts Radii</div></div></div>', 3))
4993
+ e[5] || (e[5] = ut('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-750fb1ee></div><div class="row" style="padding:2px 10px;" data-v-750fb1ee><div class="legend" data-v-750fb1ee><div class="icon td" data-v-750fb1ee></div><div class="label" data-v-750fb1ee>TD</div></div><div class="legend" data-v-750fb1ee><div class="icon ts" data-v-750fb1ee></div><div class="label" data-v-750fb1ee>TS</div></div><div class="legend" data-v-750fb1ee><div class="icon sts" data-v-750fb1ee></div><div class="label" data-v-750fb1ee>STS</div></div><div class="legend" data-v-750fb1ee><div class="icon ty" data-v-750fb1ee></div><div class="label" data-v-750fb1ee>TY</div></div><div class="legend" data-v-750fb1ee><div class="icon sty" data-v-750fb1ee></div><div class="label" data-v-750fb1ee>STY</div></div><div class="legend" data-v-750fb1ee><div class="icon supper-ty" data-v-750fb1ee></div><div class="label" data-v-750fb1ee>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-750fb1ee><div class="legend" data-v-750fb1ee><div class="icon history" data-v-750fb1ee></div><div class="label" data-v-750fb1ee>History</div></div><div class="legend" data-v-750fb1ee><div class="icon r7" data-v-750fb1ee></div><div class="label" data-v-750fb1ee>35kts Radii</div></div><div class="legend" data-v-750fb1ee><div class="icon r10" data-v-750fb1ee></div><div class="label" data-v-750fb1ee>50kts Radii</div></div></div>', 3))
4999
4994
  ]),
5000
4995
  s("div", Za, [
5001
4996
  s("div", {
5002
4997
  class: "button",
5003
- onClick: e[1] || (e[1] = (B) => o.handleStrikeProbability(i.activeTropicals))
4998
+ onClick: e[1] || (e[1] = (x) => o.handleStrikeProbability(i.activeTropicals))
5004
4999
  }, "Strike Probability >>")
5005
5000
  ])
5006
5001
  ])
@@ -5008,7 +5003,7 @@ function $a(t, e, a, r, i, o) {
5008
5003
  [ye, i.showTropicals && !t.$attrs.hideTropicalsLegend]
5009
5004
  ]);
5010
5005
  }
5011
- const lt = /* @__PURE__ */ O(Ha, [["render", $a], ["__scopeId", "data-v-5947a418"]]);
5006
+ const lt = /* @__PURE__ */ O(Ha, [["render", $a], ["__scopeId", "data-v-750fb1ee"]]);
5012
5007
  const ei = {
5013
5008
  name: "IdmPrecip3h",
5014
5009
  props: {
@@ -5698,7 +5693,7 @@ const wi = {
5698
5693
  initTableData(t) {
5699
5694
  var e, a, r, i, o, l, c, h, p;
5700
5695
  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 = (l = (o = Ue(this.ts)) == null ? void 0 : o.tz(this.positionGmt)) == null ? void 0 : l.format("MMM-DD/HHmm[LT]"), this.currentHourData = (c = Ye.pickHourly(t, X(this.ts))) == null ? void 0 : c[0], ((p = (h = this.currentHourData) == null ? void 0 : h.weather) == null ? void 0 : p.isDay) === 0 ? this.isDay = !1 : this.isDay = !0, this.$nextTick(() => {
5701
- var u, b, v, y, x, D, L, A, f, w, B, d, P, Q, S, _, H, Y, J, W, de, pe, ue, me, ge, ie, ne, we, oe, j, te, Ae, se;
5696
+ var u, b, v, w, B, D, C, A, f, y, x, d, P, Q, S, _, H, Y, J, W, de, pe, ue, me, ge, ie, ne, we, oe, j, te, Ae, se;
5702
5697
  if (!document.getElementById("meteoMainBox"))
5703
5698
  return !1;
5704
5699
  if (!this.currentHourData)
@@ -5707,7 +5702,7 @@ const wi = {
5707
5702
  const ce = Ue(this.ts).tz(this.positionGmt).add(3 * le, "h").format();
5708
5703
  this.tableData.hours.push(ce);
5709
5704
  const I = ((u = Ye.pickHourly(t, ce)) == null ? void 0 : u[0]) || {};
5710
- this.tableData.temp.push(this.roundPrecision((b = I == null ? void 0 : I.weather) == null ? void 0 : b.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((y = (v = I == null ? void 0 : I.weather) == null ? void 0 : v.precip) == null ? void 0 : y.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((D = (x = I == null ? void 0 : I.weather) == null ? void 0 : x.precip) == null ? void 0 : D.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((L = I == null ? void 0 : I.weather) == null ? void 0 : L.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((f = (A = I == null ? void 0 : I.weather) == null ? void 0 : A.wind) == null ? void 0 : f.kts, 1) ?? "-"), this.tableData.windDir.push((B = (w = I == null ? void 0 : I.weather) == null ? void 0 : w.wind) == null ? void 0 : B.bearing), this.tableData.windGust.push(this.roundPrecision((P = (d = I == null ? void 0 : I.weather) == null ? void 0 : d.wind) == null ? void 0 : P.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((S = (Q = I == null ? void 0 : I.wave) == null ? void 0 : Q.sig) == null ? void 0 : S.height, 1) ?? "-"), this.tableData.sigwaveDir.push((H = (_ = I == null ? void 0 : I.wave) == null ? void 0 : _.sig) == null ? void 0 : H.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((J = (Y = I == null ? void 0 : I.wave) == null ? void 0 : Y.wd) == null ? void 0 : J.height, 1) ?? "-"), this.tableData.windwaveDir.push((de = (W = I == null ? void 0 : I.wave) == null ? void 0 : W.wd) == null ? void 0 : de.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((ue = (pe = I == null ? void 0 : I.wave) == null ? void 0 : pe.wd) == null ? void 0 : ue.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((ge = (me = I == null ? void 0 : I.wave) == null ? void 0 : me.swell) == null ? void 0 : ge.height, 1) ?? "-"), this.tableData.swellDir.push((ne = (ie = I == null ? void 0 : I.wave) == null ? void 0 : ie.swell) == null ? void 0 : ne.bearing), this.tableData.swellPeriod.push(this.roundPrecision((oe = (we = I == null ? void 0 : I.wave) == null ? void 0 : we.swell) == null ? void 0 : oe.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((j = I == null ? void 0 : I.current) == null ? void 0 : j.speed, 1) ?? "-"), this.tableData.currentDir.push((te = I == null ? void 0 : I.current) == null ? void 0 : te.bearing), this.tableData.seaLevel.push(this.roundPrecision(I == null ? void 0 : I.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(I == null ? void 0 : I.sst, 0) ?? "-"), this.tableData.weatherUrls.push((Ae = I == null ? void 0 : I.weather) == null ? void 0 : Ae.url), this.tableData.weatherNames.push(((se = I == null ? void 0 : I.weather) == null ? void 0 : se.name) ?? "-");
5705
+ this.tableData.temp.push(this.roundPrecision((b = I == null ? void 0 : I.weather) == null ? void 0 : b.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((w = (v = I == null ? void 0 : I.weather) == null ? void 0 : v.precip) == null ? void 0 : w.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((D = (B = I == null ? void 0 : I.weather) == null ? void 0 : B.precip) == null ? void 0 : D.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((C = I == null ? void 0 : I.weather) == null ? void 0 : C.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((f = (A = I == null ? void 0 : I.weather) == null ? void 0 : A.wind) == null ? void 0 : f.kts, 1) ?? "-"), this.tableData.windDir.push((x = (y = I == null ? void 0 : I.weather) == null ? void 0 : y.wind) == null ? void 0 : x.bearing), this.tableData.windGust.push(this.roundPrecision((P = (d = I == null ? void 0 : I.weather) == null ? void 0 : d.wind) == null ? void 0 : P.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((S = (Q = I == null ? void 0 : I.wave) == null ? void 0 : Q.sig) == null ? void 0 : S.height, 1) ?? "-"), this.tableData.sigwaveDir.push((H = (_ = I == null ? void 0 : I.wave) == null ? void 0 : _.sig) == null ? void 0 : H.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((J = (Y = I == null ? void 0 : I.wave) == null ? void 0 : Y.wd) == null ? void 0 : J.height, 1) ?? "-"), this.tableData.windwaveDir.push((de = (W = I == null ? void 0 : I.wave) == null ? void 0 : W.wd) == null ? void 0 : de.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((ue = (pe = I == null ? void 0 : I.wave) == null ? void 0 : pe.wd) == null ? void 0 : ue.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((ge = (me = I == null ? void 0 : I.wave) == null ? void 0 : me.swell) == null ? void 0 : ge.height, 1) ?? "-"), this.tableData.swellDir.push((ne = (ie = I == null ? void 0 : I.wave) == null ? void 0 : ie.swell) == null ? void 0 : ne.bearing), this.tableData.swellPeriod.push(this.roundPrecision((oe = (we = I == null ? void 0 : I.wave) == null ? void 0 : we.swell) == null ? void 0 : oe.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((j = I == null ? void 0 : I.current) == null ? void 0 : j.speed, 1) ?? "-"), this.tableData.currentDir.push((te = I == null ? void 0 : I.current) == null ? void 0 : te.bearing), this.tableData.seaLevel.push(this.roundPrecision(I == null ? void 0 : I.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(I == null ? void 0 : I.sst, 0) ?? "-"), this.tableData.weatherUrls.push((Ae = I == null ? void 0 : I.weather) == null ? void 0 : Ae.url), this.tableData.weatherNames.push(((se = I == null ? void 0 : I.weather) == null ? void 0 : se.name) ?? "-");
5711
5706
  }
5712
5707
  });
5713
5708
  },
@@ -5830,7 +5825,7 @@ const wi = {
5830
5825
  class: "main-box flex-center"
5831
5826
  };
5832
5827
  function kr(t, e, a, r, i, o) {
5833
- var p, n, u, b, v, y, x, D, L, A, f, w, B, d, P, Q, S, _, H, Y, J, W, de, pe, ue, me, ge, ie, ne, we, oe, j, te, Ae, se, le, ce, I, Ce, xe, Be, Ie, Ee, De, Pe, ke, Me, ze, Te, Qe, Se, _e, He, Oe, Ne, je, Re, Fe, Ge, We, $, Ze, $e, et, tt, at, it, rt;
5828
+ var p, n, u, b, v, w, B, D, C, A, f, y, x, d, P, Q, S, _, H, Y, J, W, de, pe, ue, me, ge, ie, ne, we, oe, j, te, Ae, se, le, ce, I, Ce, xe, Be, Ie, Ee, De, Pe, ke, Me, ze, Te, Qe, Se, _e, He, Oe, Ne, je, Re, Fe, Ge, We, $, Ze, $e, et, tt, at, it, rt;
5834
5829
  const l = T("LocationFilled"), c = T("ElIcon"), h = T("ElTooltip");
5835
5830
  return fe((m(), g("div", bi, [
5836
5831
  s("div", vi, [
@@ -5848,15 +5843,15 @@ function kr(t, e, a, r, i, o) {
5848
5843
  i.showTables ? (m(), g("div", {
5849
5844
  key: 0,
5850
5845
  class: "iconfont toggle",
5851
- onClick: e[0] || (e[0] = (C) => i.showTables = !i.showTables)
5846
+ onClick: e[0] || (e[0] = (L) => i.showTables = !i.showTables)
5852
5847
  }, "")) : (m(), g("div", {
5853
5848
  key: 1,
5854
5849
  class: "iconfont toggle",
5855
- onClick: e[1] || (e[1] = (C) => i.showTables = !i.showTables)
5850
+ onClick: e[1] || (e[1] = (L) => i.showTables = !i.showTables)
5856
5851
  }, "")),
5857
5852
  s("div", {
5858
5853
  class: "iconfont close",
5859
- onClick: e[2] || (e[2] = (...C) => o.handleCloseMeteo && o.handleCloseMeteo(...C))
5854
+ onClick: e[2] || (e[2] = (...L) => o.handleCloseMeteo && o.handleCloseMeteo(...L))
5860
5855
  }, "")
5861
5856
  ])
5862
5857
  ]),
@@ -5876,9 +5871,9 @@ function kr(t, e, a, r, i, o) {
5876
5871
  "show-after": 1e3
5877
5872
  }, {
5878
5873
  default: re(() => {
5879
- var C, k, ot, st;
5874
+ var L, k, ot, st;
5880
5875
  return [
5881
- (k = (C = i.currentHourData) == null ? void 0 : C.weather) != null && k.url ? (m(), g("img", {
5876
+ (k = (L = i.currentHourData) == null ? void 0 : L.weather) != null && k.url ? (m(), g("img", {
5882
5877
  key: 0,
5883
5878
  class: "iconfont icon",
5884
5879
  style: { "margin-right": "5px" },
@@ -5890,14 +5885,14 @@ function kr(t, e, a, r, i, o) {
5890
5885
  }, 8, ["content"]),
5891
5886
  s("div", ki, [
5892
5887
  s("div", null, [
5893
- ee(E(o.roundPrecision((y = (v = i.currentHourData) == null ? void 0 : v.weather) == null ? void 0 : y.temp, 0)), 1),
5888
+ ee(E(o.roundPrecision((w = (v = i.currentHourData) == null ? void 0 : v.weather) == null ? void 0 : w.temp, 0)), 1),
5894
5889
  e[8] || (e[8] = s("span", { style: { "font-size": "14px" } }, "°C", -1))
5895
5890
  ])
5896
5891
  ]),
5897
5892
  s("div", Mi, [
5898
5893
  s("div", zi, [
5899
5894
  e[9] || (e[9] = s("label", null, "Precip : ", -1)),
5900
- s("span", null, E(o.roundPrecision((L = (D = (x = i.currentHourData) == null ? void 0 : x.weather) == null ? void 0 : D.precip) == null ? void 0 : L.sum, 0)) + " mm", 1)
5895
+ s("span", null, E(o.roundPrecision((C = (D = (B = i.currentHourData) == null ? void 0 : B.weather) == null ? void 0 : D.precip) == null ? void 0 : C.sum, 0)) + " mm", 1)
5901
5896
  ]),
5902
5897
  s("div", Ti, [
5903
5898
  e[10] || (e[10] = s("label", null, "Visibility : ", -1)),
@@ -5905,7 +5900,7 @@ function kr(t, e, a, r, i, o) {
5905
5900
  ]),
5906
5901
  s("div", Qi, [
5907
5902
  e[11] || (e[11] = s("label", null, "Wind : ", -1)),
5908
- s("span", null, E(o.roundPrecision((d = (B = (w = i.currentHourData) == null ? void 0 : w.weather) == null ? void 0 : B.wind) == null ? void 0 : d.kts, 1)) + " kts", 1)
5903
+ s("span", null, E(o.roundPrecision((d = (x = (y = i.currentHourData) == null ? void 0 : y.weather) == null ? void 0 : x.wind) == null ? void 0 : d.kts, 1)) + " kts", 1)
5909
5904
  ])
5910
5905
  ])
5911
5906
  ]),
@@ -5918,19 +5913,19 @@ function kr(t, e, a, r, i, o) {
5918
5913
  s("div", Ni, [
5919
5914
  s("div", {
5920
5915
  class: G(["menu-item", i.activeIndex === 1 ? "active" : ""]),
5921
- onClick: e[3] || (e[3] = Ke((C) => o.handleSelectTab(1), ["prevent"]))
5916
+ onClick: e[3] || (e[3] = Ke((L) => o.handleSelectTab(1), ["prevent"]))
5922
5917
  }, "Basis", 2),
5923
5918
  s("div", {
5924
5919
  class: G(["menu-item", i.activeIndex === 2 ? "active" : ""]),
5925
- onClick: e[4] || (e[4] = Ke((C) => o.handleSelectTab(2), ["prevent"]))
5920
+ onClick: e[4] || (e[4] = Ke((L) => o.handleSelectTab(2), ["prevent"]))
5926
5921
  }, "Wave & Current", 2),
5927
5922
  s("div", {
5928
5923
  class: G(["menu-item", i.activeIndex === 3 ? "active" : ""]),
5929
- onClick: e[5] || (e[5] = Ke((C) => o.handleSelectTab(3), ["prevent"]))
5924
+ onClick: e[5] || (e[5] = Ke((L) => o.handleSelectTab(3), ["prevent"]))
5930
5925
  }, "Sea Surface", 2),
5931
5926
  s("div", {
5932
5927
  class: G(["menu-item", i.activeIndex === 4 ? "active" : ""]),
5933
- onClick: e[6] || (e[6] = Ke((C) => o.handleSelectTab(4), ["prevent"]))
5928
+ onClick: e[6] || (e[6] = Ke((L) => o.handleSelectTab(4), ["prevent"]))
5934
5929
  }, "Tides", 2)
5935
5930
  ]),
5936
5931
  fe(s("table", ji, [
@@ -5943,11 +5938,11 @@ function kr(t, e, a, r, i, o) {
5943
5938
  ee("Hours"),
5944
5939
  s("span", { class: "unit" }, "(LT)")
5945
5940
  ], -1)),
5946
- (m(!0), g(F, null, U(i.tableData.hours, (C) => (m(), g("th", {
5941
+ (m(!0), g(F, null, U(i.tableData.hours, (L) => (m(), g("th", {
5947
5942
  rowspan: "1",
5948
5943
  colspan: "1",
5949
- key: `HourL${C}`
5950
- }, E(o.computeHourL(C)), 1))), 128))
5944
+ key: `HourL${L}`
5945
+ }, E(o.computeHourL(L)), 1))), 128))
5951
5946
  ]),
5952
5947
  s("tr", Fi, [
5953
5948
  e[13] || (e[13] = s("th", {
@@ -5958,11 +5953,11 @@ function kr(t, e, a, r, i, o) {
5958
5953
  ee("UTC"),
5959
5954
  s("span", { class: "unit" })
5960
5955
  ], -1)),
5961
- (m(!0), g(F, null, U(i.tableData.hours, (C) => (m(), g("th", {
5956
+ (m(!0), g(F, null, U(i.tableData.hours, (L) => (m(), g("th", {
5962
5957
  rowspan: "1",
5963
5958
  colspan: "1",
5964
- key: `HourZ${C}`
5965
- }, E(o.computeHourZ(C)), 1))), 128))
5959
+ key: `HourZ${L}`
5960
+ }, E(o.computeHourZ(L)), 1))), 128))
5966
5961
  ]),
5967
5962
  s("tr", Gi, [
5968
5963
  e[14] || (e[14] = s("th", {
@@ -5970,10 +5965,10 @@ function kr(t, e, a, r, i, o) {
5970
5965
  colspan: "1",
5971
5966
  class: "tr-title"
5972
5967
  }, null, -1)),
5973
- (m(!0), g(F, null, U(i.tableData.weatherUrls, (C, k) => (m(), g("th", {
5968
+ (m(!0), g(F, null, U(i.tableData.weatherUrls, (L, k) => (m(), g("th", {
5974
5969
  rowspan: "1",
5975
5970
  colspan: "1",
5976
- key: `weatherUrls${k}${C}`
5971
+ key: `weatherUrls${k}${L}`
5977
5972
  }, [
5978
5973
  z(h, {
5979
5974
  placement: "top",
@@ -5982,10 +5977,10 @@ function kr(t, e, a, r, i, o) {
5982
5977
  "show-after": 500
5983
5978
  }, {
5984
5979
  default: re(() => [
5985
- C ? (m(), g("img", {
5980
+ L ? (m(), g("img", {
5986
5981
  key: 0,
5987
5982
  class: "iconfont weather-icon",
5988
- src: C
5983
+ src: L
5989
5984
  }, null, 8, Wi)) : R("", !0)
5990
5985
  ]),
5991
5986
  _: 2
@@ -6001,11 +5996,11 @@ function kr(t, e, a, r, i, o) {
6001
5996
  ee("Temp"),
6002
5997
  s("span", { class: "unit" }, "°C")
6003
5998
  ], -1)),
6004
- (m(!0), g(F, null, U(i.tableData.temp, (C, k) => (m(), g("td", {
5999
+ (m(!0), g(F, null, U(i.tableData.temp, (L, k) => (m(), g("td", {
6005
6000
  rowspan: "1",
6006
6001
  colspan: "1",
6007
- key: `weatherUrls${k}${C}`
6008
- }, E(C), 1))), 128))
6002
+ key: `weatherUrls${k}${L}`
6003
+ }, E(L), 1))), 128))
6009
6004
  ]),
6010
6005
  s("tr", Yi, [
6011
6006
  e[16] || (e[16] = s("td", {
@@ -6016,11 +6011,11 @@ function kr(t, e, a, r, i, o) {
6016
6011
  ee("Precip"),
6017
6012
  s("span", { class: "unit" }, "mm")
6018
6013
  ], -1)),
6019
- (m(!0), g(F, null, U(i.tableData.precip1h, (C, k) => (m(), g("td", {
6014
+ (m(!0), g(F, null, U(i.tableData.precip1h, (L, k) => (m(), g("td", {
6020
6015
  rowspan: "1",
6021
6016
  colspan: "1",
6022
- key: `precip1h${k}${C}`
6023
- }, E(C), 1))), 128))
6017
+ key: `precip1h${k}${L}`
6018
+ }, E(L), 1))), 128))
6024
6019
  ]),
6025
6020
  s("tr", Ki, [
6026
6021
  e[17] || (e[17] = s("td", {
@@ -6031,11 +6026,11 @@ function kr(t, e, a, r, i, o) {
6031
6026
  ee("Visibility"),
6032
6027
  s("span", { class: "unit" }, "nm")
6033
6028
  ], -1)),
6034
- (m(!0), g(F, null, U(i.tableData.visibility, (C, k) => (m(), g("td", {
6029
+ (m(!0), g(F, null, U(i.tableData.visibility, (L, k) => (m(), g("td", {
6035
6030
  rowspan: "1",
6036
6031
  colspan: "1",
6037
- key: `visibility${k}${C}`
6038
- }, E(C), 1))), 128))
6032
+ key: `visibility${k}${L}`
6033
+ }, E(L), 1))), 128))
6039
6034
  ]),
6040
6035
  s("tr", Xi, [
6041
6036
  e[18] || (e[18] = s("td", {
@@ -6046,17 +6041,17 @@ function kr(t, e, a, r, i, o) {
6046
6041
  ee("Wind gust"),
6047
6042
  s("span", { class: "unit" }, "kts")
6048
6043
  ], -1)),
6049
- (m(!0), g(F, null, U(i.tableData.windGust, (C, k) => (m(), g("td", {
6044
+ (m(!0), g(F, null, U(i.tableData.windGust, (L, k) => (m(), g("td", {
6050
6045
  rowspan: "1",
6051
6046
  colspan: "1",
6052
- key: `windGust${k}${C}`
6047
+ key: `windGust${k}${L}`
6053
6048
  }, [
6054
6049
  isNaN(i.tableData.windDir[k]) ? R("", !0) : (m(), g("span", {
6055
6050
  key: 0,
6056
6051
  class: "iconfont icon blue",
6057
6052
  style: V({ display: "inline-block", transform: `rotate(${i.tableData.windDir[k]}deg)` })
6058
6053
  }, "", 4)),
6059
- s("span", null, E(C), 1)
6054
+ s("span", null, E(L), 1)
6060
6055
  ]))), 128))
6061
6056
  ])
6062
6057
  ], 512), [
@@ -6072,11 +6067,11 @@ function kr(t, e, a, r, i, o) {
6072
6067
  ee("Hours"),
6073
6068
  s("span", { class: "unit" }, "(LT)")
6074
6069
  ], -1)),
6075
- (m(!0), g(F, null, U(i.tableData.hours, (C, k) => (m(), g("th", {
6070
+ (m(!0), g(F, null, U(i.tableData.hours, (L, k) => (m(), g("th", {
6076
6071
  rowspan: "1",
6077
6072
  colspan: "1",
6078
- key: `currenthoursL${k}${C}`
6079
- }, E(o.computeHourL(C)), 1))), 128))
6073
+ key: `currenthoursL${k}${L}`
6074
+ }, E(o.computeHourL(L)), 1))), 128))
6080
6075
  ]),
6081
6076
  s("tr", Vi, [
6082
6077
  e[20] || (e[20] = s("th", {
@@ -6087,11 +6082,11 @@ function kr(t, e, a, r, i, o) {
6087
6082
  ee("UTC"),
6088
6083
  s("span", { class: "unit" })
6089
6084
  ], -1)),
6090
- (m(!0), g(F, null, U(i.tableData.hours, (C, k) => (m(), g("th", {
6085
+ (m(!0), g(F, null, U(i.tableData.hours, (L, k) => (m(), g("th", {
6091
6086
  rowspan: "1",
6092
6087
  colspan: "1",
6093
- key: `currenthoursZ${k}${C}`
6094
- }, E(o.computeHourZ(C)), 1))), 128))
6088
+ key: `currenthoursZ${k}${L}`
6089
+ }, E(o.computeHourZ(L)), 1))), 128))
6095
6090
  ]),
6096
6091
  s("tr", Zi, [
6097
6092
  e[21] || (e[21] = s("td", {
@@ -6102,17 +6097,17 @@ function kr(t, e, a, r, i, o) {
6102
6097
  ee("Wind"),
6103
6098
  s("span", { class: "unit" }, "kts")
6104
6099
  ], -1)),
6105
- (m(!0), g(F, null, U(i.tableData.windSpeed, (C, k) => (m(), g("td", {
6100
+ (m(!0), g(F, null, U(i.tableData.windSpeed, (L, k) => (m(), g("td", {
6106
6101
  rowspan: "1",
6107
6102
  colspan: "1",
6108
- key: `windSpeed${k}${C}`
6103
+ key: `windSpeed${k}${L}`
6109
6104
  }, [
6110
6105
  isNaN(i.tableData.windDir[k]) ? R("", !0) : (m(), g("span", {
6111
6106
  key: 0,
6112
6107
  class: "iconfont icon wind",
6113
6108
  style: V({ display: "inline-block", transform: `rotate(${i.tableData.windDir[k]}deg)` })
6114
6109
  }, "", 4)),
6115
- s("span", null, E(C), 1)
6110
+ s("span", null, E(L), 1)
6116
6111
  ]))), 128))
6117
6112
  ]),
6118
6113
  s("tr", $i, [
@@ -6124,17 +6119,17 @@ function kr(t, e, a, r, i, o) {
6124
6119
  ee("Sig Wave"),
6125
6120
  s("span", { class: "unit" }, "m")
6126
6121
  ], -1)),
6127
- (m(!0), g(F, null, U(i.tableData.sigwaveHeight, (C, k) => (m(), g("td", {
6122
+ (m(!0), g(F, null, U(i.tableData.sigwaveHeight, (L, k) => (m(), g("td", {
6128
6123
  rowspan: "1",
6129
6124
  colspan: "1",
6130
- key: `sigwaveHeight${k}${C}`
6125
+ key: `sigwaveHeight${k}${L}`
6131
6126
  }, [
6132
6127
  isNaN(i.tableData.sigwaveDir[k]) ? R("", !0) : (m(), g("span", {
6133
6128
  key: 0,
6134
6129
  class: "iconfont icon sigwave",
6135
6130
  style: V({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[k]}deg)` })
6136
6131
  }, "", 4)),
6137
- s("span", null, E(C), 1)
6132
+ s("span", null, E(L), 1)
6138
6133
  ]))), 128))
6139
6134
  ]),
6140
6135
  s("tr", er, [
@@ -6146,17 +6141,17 @@ function kr(t, e, a, r, i, o) {
6146
6141
  ee("Wind Wave"),
6147
6142
  s("span", { class: "unit" }, "m")
6148
6143
  ], -1)),
6149
- (m(!0), g(F, null, U(i.tableData.windwaveHeight, (C, k) => (m(), g("td", {
6144
+ (m(!0), g(F, null, U(i.tableData.windwaveHeight, (L, k) => (m(), g("td", {
6150
6145
  rowspan: "1",
6151
6146
  colspan: "1",
6152
- key: `windwaveHeight${k}${C}`
6147
+ key: `windwaveHeight${k}${L}`
6153
6148
  }, [
6154
6149
  isNaN(i.tableData.sigwaveDir[k]) ? R("", !0) : (m(), g("span", {
6155
6150
  key: 0,
6156
6151
  class: "iconfont icon windwave",
6157
6152
  style: V({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[k]}deg)` })
6158
6153
  }, "", 4)),
6159
- s("span", null, E(C), 1)
6154
+ s("span", null, E(L), 1)
6160
6155
  ]))), 128))
6161
6156
  ]),
6162
6157
  s("tr", tr, [
@@ -6168,17 +6163,17 @@ function kr(t, e, a, r, i, o) {
6168
6163
  ee("Swell"),
6169
6164
  s("span", { class: "unit" }, "m")
6170
6165
  ], -1)),
6171
- (m(!0), g(F, null, U(i.tableData.swellHeight, (C, k) => (m(), g("td", {
6166
+ (m(!0), g(F, null, U(i.tableData.swellHeight, (L, k) => (m(), g("td", {
6172
6167
  rowspan: "1",
6173
6168
  colspan: "1",
6174
- key: `swellHeight${k}${C}`
6169
+ key: `swellHeight${k}${L}`
6175
6170
  }, [
6176
6171
  isNaN(i.tableData.swellDir[k]) ? R("", !0) : (m(), g("span", {
6177
6172
  key: 0,
6178
6173
  class: "iconfont icon swell",
6179
6174
  style: V({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[k]}deg)` })
6180
6175
  }, "", 4)),
6181
- s("span", null, E(C), 1)
6176
+ s("span", null, E(L), 1)
6182
6177
  ]))), 128))
6183
6178
  ]),
6184
6179
  s("tr", ar, [
@@ -6190,10 +6185,10 @@ function kr(t, e, a, r, i, o) {
6190
6185
  ee("Current"),
6191
6186
  s("span", { class: "unit" }, "kts")
6192
6187
  ], -1)),
6193
- (m(!0), g(F, null, U(i.tableData.currentSpeed, (C, k) => (m(), g("td", {
6188
+ (m(!0), g(F, null, U(i.tableData.currentSpeed, (L, k) => (m(), g("td", {
6194
6189
  rowspan: "1",
6195
6190
  colspan: "1",
6196
- key: `currentSpeed${k}${C}`
6191
+ key: `currentSpeed${k}${L}`
6197
6192
  }, [
6198
6193
  isNaN(i.tableData.currentDir[k]) ? R("", !0) : (m(), g("span", {
6199
6194
  key: 0,
@@ -6201,7 +6196,7 @@ function kr(t, e, a, r, i, o) {
6201
6196
  id: "meteoGrayIcon",
6202
6197
  style: V({ display: "inline-block", transform: `rotate(${i.tableData.currentDir[k]}deg)` })
6203
6198
  }, "", 4)),
6204
- s("span", null, E(C), 1)
6199
+ s("span", null, E(L), 1)
6205
6200
  ]))), 128))
6206
6201
  ])
6207
6202
  ], 512), [
@@ -6217,11 +6212,11 @@ function kr(t, e, a, r, i, o) {
6217
6212
  ee("Hours"),
6218
6213
  s("span", { class: "unit" }, "(LT)")
6219
6214
  ], -1)),
6220
- (m(!0), g(F, null, U(i.tableData.hours, (C, k) => (m(), g("th", {
6215
+ (m(!0), g(F, null, U(i.tableData.hours, (L, k) => (m(), g("th", {
6221
6216
  rowspan: "1",
6222
6217
  colspan: "1",
6223
- key: `seahoursL${k}${C}`
6224
- }, E(o.computeHourL(C)), 1))), 128))
6218
+ key: `seahoursL${k}${L}`
6219
+ }, E(o.computeHourL(L)), 1))), 128))
6225
6220
  ]),
6226
6221
  s("tr", or, [
6227
6222
  e[27] || (e[27] = s("th", {
@@ -6232,11 +6227,11 @@ function kr(t, e, a, r, i, o) {
6232
6227
  ee("UTC"),
6233
6228
  s("span", { class: "unit" })
6234
6229
  ], -1)),
6235
- (m(!0), g(F, null, U(i.tableData.hours, (C, k) => (m(), g("th", {
6230
+ (m(!0), g(F, null, U(i.tableData.hours, (L, k) => (m(), g("th", {
6236
6231
  rowspan: "1",
6237
6232
  colspan: "1",
6238
- key: `seahoursZ${k}${C}`
6239
- }, E(o.computeHourZ(C)), 1))), 128))
6233
+ key: `seahoursZ${k}${L}`
6234
+ }, E(o.computeHourZ(L)), 1))), 128))
6240
6235
  ]),
6241
6236
  s("tr", sr, [
6242
6237
  e[28] || (e[28] = s("td", {
@@ -6247,11 +6242,11 @@ function kr(t, e, a, r, i, o) {
6247
6242
  ee("SeaLevel"),
6248
6243
  s("span", { class: "unit" }, "m")
6249
6244
  ], -1)),
6250
- (m(!0), g(F, null, U(i.tableData.seaLevel, (C, k) => (m(), g("td", {
6245
+ (m(!0), g(F, null, U(i.tableData.seaLevel, (L, k) => (m(), g("td", {
6251
6246
  rowspan: "1",
6252
6247
  colspan: "1",
6253
- key: `SeaLevel${k}${C}`
6254
- }, E(C), 1))), 128))
6248
+ key: `SeaLevel${k}${L}`
6249
+ }, E(L), 1))), 128))
6255
6250
  ]),
6256
6251
  s("tr", nr, [
6257
6252
  e[29] || (e[29] = s("td", {
@@ -6262,11 +6257,11 @@ function kr(t, e, a, r, i, o) {
6262
6257
  ee("SeaTemp"),
6263
6258
  s("span", { class: "unit" }, "°C")
6264
6259
  ], -1)),
6265
- (m(!0), g(F, null, U(i.tableData.seaTemp, (C, k) => (m(), g("td", {
6260
+ (m(!0), g(F, null, U(i.tableData.seaTemp, (L, k) => (m(), g("td", {
6266
6261
  rowspan: "1",
6267
6262
  colspan: "1",
6268
- key: `SeaTemp${k}${C}`
6269
- }, E(C), 1))), 128))
6263
+ key: `SeaTemp${k}${L}`
6264
+ }, E(L), 1))), 128))
6270
6265
  ])
6271
6266
  ], 512), [
6272
6267
  [ye, i.activeIndex === 3]
@@ -6276,25 +6271,25 @@ function kr(t, e, a, r, i, o) {
6276
6271
  ]))) : R("", !0),
6277
6272
  fe(s("table", cr, [
6278
6273
  s("tr", hr, [
6279
- (m(!0), g(F, null, U(i.tideTableData, (C, k) => (m(), g("th", {
6274
+ (m(!0), g(F, null, U(i.tideTableData, (L, k) => (m(), g("th", {
6280
6275
  rowspan: "1",
6281
6276
  colspan: "1",
6282
- key: `Tide-tr-${k}${C}`
6283
- }, E(C.type) + " Tide", 1))), 128))
6277
+ key: `Tide-tr-${k}${L}`
6278
+ }, E(L.type) + " Tide", 1))), 128))
6284
6279
  ]),
6285
6280
  s("tr", dr, [
6286
- (m(!0), g(F, null, U(i.tideTableData, (C, k) => (m(), g("td", {
6281
+ (m(!0), g(F, null, U(i.tideTableData, (L, k) => (m(), g("td", {
6287
6282
  rowspan: "1",
6288
6283
  colspan: "1",
6289
- key: `Tide-date-${k}${C}`
6290
- }, E(o.computeHourHmmLT(C == null ? void 0 : C.date)), 1))), 128))
6284
+ key: `Tide-date-${k}${L}`
6285
+ }, E(o.computeHourHmmLT(L == null ? void 0 : L.date)), 1))), 128))
6291
6286
  ]),
6292
6287
  s("tr", pr, [
6293
- (m(!0), g(F, null, U(i.tideTableData, (C, k) => (m(), g("td", {
6288
+ (m(!0), g(F, null, U(i.tideTableData, (L, k) => (m(), g("td", {
6294
6289
  rowspan: "1",
6295
6290
  colspan: "1",
6296
- key: `Tide-height-${k}${C}`
6297
- }, E(o.roundPrecision(C == null ? void 0 : C.height, 2)) + " m", 1))), 128))
6291
+ key: `Tide-height-${k}${L}`
6292
+ }, E(o.roundPrecision(L == null ? void 0 : L.height, 2)) + " m", 1))), 128))
6298
6293
  ]),
6299
6294
  e[31] || (e[31] = s("tr", { class: "tr-tide flex-center info" }, [
6300
6295
  s("span", null, "Tide Datum: Chart Datum")
@@ -6361,7 +6356,7 @@ function kr(t, e, a, r, i, o) {
6361
6356
  ]),
6362
6357
  s("div", {
6363
6358
  class: G(["more", i.isDay ? "day" : "night"]),
6364
- onClick: e[7] || (e[7] = (...C) => o.handleMeteoMore && o.handleMeteoMore(...C))
6359
+ onClick: e[7] || (e[7] = (...L) => o.handleMeteoMore && o.handleMeteoMore(...L))
6365
6360
  }, "More >>", 2)
6366
6361
  ], 2))
6367
6362
  ])
@@ -7675,22 +7670,22 @@ const ct = /* @__PURE__ */ O(yo, [["render", wo], ["__scopeId", "data-v-ad66a24c
7675
7670
  if ((e == null ? void 0 : e.split("-").length) === 2) {
7676
7671
  const b = this.geojson.filter((D) => D.id === e.split("-")[0])[0];
7677
7672
  this.pointMarkers[b.id].filter((D) => {
7678
- var L;
7679
- return ((L = D._element) == null ? void 0 : L.id) === e;
7673
+ var C;
7674
+ return ((C = D._element) == null ? void 0 : C.id) === e;
7680
7675
  })[0].setLngLat([(o = (i = t.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (c = (l = t.target) == null ? void 0 : l._lngLat) == null ? void 0 : c.lat]);
7681
- let y;
7682
- b.features.forEach((D, L) => {
7676
+ let w;
7677
+ b.features.forEach((D, C) => {
7683
7678
  if (D.geometry.type === "Point" && D.properties.id == e.split("-")[1]) {
7684
- y = L;
7679
+ w = C;
7685
7680
  return;
7686
7681
  }
7687
7682
  });
7688
- const x = b.features.filter((D) => D.geometry.type === "Point");
7683
+ const B = b.features.filter((D) => D.geometry.type === "Point");
7689
7684
  this.handleTmpPointUpdate(
7690
7685
  b,
7691
- x[y - 1],
7692
- { lng: (p = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lng, lat: (u = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : u.lat, properties: x[y].properties },
7693
- y === x.length - 1 ? void 0 : x[y + 1]
7686
+ B[w - 1],
7687
+ { lng: (p = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lng, lat: (u = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : u.lat, properties: B[w].properties },
7688
+ w === B.length - 1 ? void 0 : B[w + 1]
7694
7689
  );
7695
7690
  }
7696
7691
  },
@@ -7698,13 +7693,13 @@ const ct = /* @__PURE__ */ O(yo, [["render", wo], ["__scopeId", "data-v-ad66a24c
7698
7693
  var a, r, i, o, l, c, h, p, n, u;
7699
7694
  const e = (r = (a = t.target) == null ? void 0 : a._element) == null ? void 0 : r.id;
7700
7695
  if ((e == null ? void 0 : e.split("-").length) === 2) {
7701
- const b = this.geojson.filter((x) => x.id === e.split("-")[0])[0];
7702
- this.pointMarkers[b.id].filter((x) => {
7696
+ const b = this.geojson.filter((B) => B.id === e.split("-")[0])[0];
7697
+ this.pointMarkers[b.id].filter((B) => {
7703
7698
  var D;
7704
- return ((D = x._element) == null ? void 0 : D.id) === e;
7699
+ return ((D = B._element) == null ? void 0 : D.id) === e;
7705
7700
  })[0].setLngLat([(o = (i = t.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (c = (l = t.target) == null ? void 0 : l._lngLat) == null ? void 0 : c.lat]);
7706
- const y = b.features.filter((x) => x.geometry.type === "Point" && x.properties.id == e.split("-")[1])[0];
7707
- y.geometry.coordinates = [(p = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lng, (u = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : u.lat], b.features = b.features.filter((x) => x.geometry.type === "Point"), this.handlePointUpdate(b);
7701
+ const w = b.features.filter((B) => B.geometry.type === "Point" && B.properties.id == e.split("-")[1])[0];
7702
+ w.geometry.coordinates = [(p = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lng, (u = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : u.lat], b.features = b.features.filter((B) => B.geometry.type === "Point"), this.handlePointUpdate(b);
7708
7703
  }
7709
7704
  },
7710
7705
  handleContextmenu(t) {
@@ -7755,7 +7750,7 @@ const ct = /* @__PURE__ */ O(yo, [["render", wo], ["__scopeId", "data-v-ad66a24c
7755
7750
  a = q.roundPrecision(a + n, 2);
7756
7751
  let b;
7757
7752
  c.mode === "RL" ? b = q.convertToMonotonicLng([h, p]) : b = q.convertToMonotonicLng(be.interpolateCoordinates(h, p, 200));
7758
- const v = M.lineString(b.map((y) => [y.lng, y.lat]));
7753
+ const v = M.lineString(b.map((w) => [w.lng, w.lat]));
7759
7754
  v.properties.dist = n, v.properties.bearing = u, v.properties.total = a, r.push(v);
7760
7755
  }
7761
7756
  e.push(...r), t.total = a;
@@ -7893,8 +7888,8 @@ const ct = /* @__PURE__ */ O(yo, [["render", wo], ["__scopeId", "data-v-ad66a24c
7893
7888
  handleClear(t, e = !0) {
7894
7889
  var o, l, c, h, p, n, u, b, v;
7895
7890
  const a = `${t.id}-${this.source}`, r = `${t.id}-${this.layer}`, i = `${t.id}-${this.labelLayer}`;
7896
- (o = this.map) != null && o.getLayer(r) && this.map.removeLayer(r), (l = this.map) != null && l.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), (p = this.closeMarkers[t.id]) == null || p.remove(), this.closeMarkers[t.id] = void 0, (n = this.pointMarkers[t.id]) == null || n.forEach((y) => {
7897
- y == null || y.remove();
7891
+ (o = this.map) != null && o.getLayer(r) && this.map.removeLayer(r), (l = this.map) != null && l.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), (p = this.closeMarkers[t.id]) == null || p.remove(), this.closeMarkers[t.id] = void 0, (n = this.pointMarkers[t.id]) == null || n.forEach((w) => {
7892
+ w == null || w.remove();
7898
7893
  }), this.pointMarkers[t.id] = [], (u = this.tipMarker) == null || u.remove(), this.tipMarker = void 0, e && ((b = this.map) != null && b.getSource(a)) && this.map.removeSource(a), e && ((v = this.map) != null && v.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
7899
7894
  }
7900
7895
  }
@@ -8256,11 +8251,11 @@ const Ho = {
8256
8251
  },
8257
8252
  activeWeatherLayers: {
8258
8253
  handler() {
8259
- var a, r, i, o, l, c, h, p, n, u, b, v, y, x, D, L, A;
8254
+ var a, r, i, o, l, c, h, p, n, u, b, v, w, B, D, C, A;
8260
8255
  if (!this.map)
8261
8256
  return !1;
8262
8257
  const t = this.activeWeatherLayers.some((f) => f.key === "wind" && f.particle === !0 || f.key === "current" && f.particle === !0 || f.key === "ice-thickness" || f.key === "ice-cover" || f.key === "temp" || f.key === "water-temp"), e = this.activeWeatherLayers.some((f) => f.key === "visibility" || f.key === "precip3h");
8263
- 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 = (l = this.map) == null ? void 0 : l.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || c.setLayoutProperty("visibility", "visible"), (p = this.map) != null && p.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((n = this.map) != null && n.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((b = this.map) == null || b.moveLayer((u = this.viewport) == null ? void 0 : u.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), e && ((y = this.map) == null || y.moveLayer(this.helper.mapboxCustomer.layers.countryBoundary.id, (v = this.viewport) == null ? void 0 : v.rampColorLayer))) : ((D = (x = this.map) == null ? void 0 : x.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || D.setLayoutProperty("visibility", "none"), (A = (L = this.map) == null ? void 0 : L.getLayer(this.enc)) == null || A.setLayoutProperty("visibility", "visible")), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
8258
+ 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 = (l = this.map) == null ? void 0 : l.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || c.setLayoutProperty("visibility", "visible"), (p = this.map) != null && p.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((n = this.map) != null && n.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((b = this.map) == null || b.moveLayer((u = this.viewport) == null ? void 0 : u.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), e && ((w = this.map) == null || w.moveLayer(this.helper.mapboxCustomer.layers.countryBoundary.id, (v = this.viewport) == null ? void 0 : v.rampColorLayer))) : ((D = (B = this.map) == null ? void 0 : B.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || D.setLayoutProperty("visibility", "none"), (A = (C = this.map) == null ? void 0 : C.getLayer(this.enc)) == null || A.setLayoutProperty("visibility", "visible")), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
8264
8259
  },
8265
8260
  immediate: !0
8266
8261
  },
@@ -8316,26 +8311,26 @@ const Ho = {
8316
8311
  const e = (/* @__PURE__ */ new Date()).valueOf();
8317
8312
  let a = 0, r = 0;
8318
8313
  if (this.map) {
8319
- const v = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, y = (o = this.map) == null ? void 0 : o.getBounds(), x = `${y._sw.lng},${y._sw.lat},${y._ne.lng},${y._ne.lat}`;
8314
+ const v = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, w = (o = this.map) == null ? void 0 : o.getBounds(), B = `${w._sw.lng},${w._sw.lat},${w._ne.lng},${w._ne.lat}`;
8320
8315
  if (this.particleFactor && ((l = this.$refs.layer) != null && l.autoActive)) {
8321
- const D = Je.WEATHER_LAYERS.find((L) => {
8316
+ const D = Je.WEATHER_LAYERS.find((C) => {
8322
8317
  var A;
8323
- return ((A = L.peer) == null ? void 0 : A.weight) === this.particleFactor.weight;
8318
+ return ((A = C.peer) == null ? void 0 : A.weight) === this.particleFactor.weight;
8324
8319
  });
8325
8320
  this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & D.weight ? this.weatherWeight : this.weatherWeight + D.weight : this.weatherWeight = this.weatherWeight & D.weight ? this.weatherWeight - D.weight : this.weatherWeight;
8326
8321
  }
8327
8322
  if (this.weatherWeight > 0) {
8328
- let D = this.weatherWeight, L;
8329
- if (t.tropicals || this.weatherWeight & 256 && (L = this.weatherLayers.tropicals, L && (D -= 256, L.version = Math.random() + 1)), D > 0) {
8330
- const A = await he.get(`${this.gateway}/api/arc/weather/layers2/links?l=${D}&v=${this.source}&z=${v}&bbox=${x}&t=${this.ts}`, {
8323
+ let D = this.weatherWeight, C;
8324
+ if (t.tropicals || this.weatherWeight & 256 && (C = this.weatherLayers.tropicals, C && (D -= 256, C.version = Math.random() + 1)), D > 0) {
8325
+ const A = await he.get(`${this.gateway}/api/arc/weather/layers2/links?l=${D}&v=${this.source}&z=${v}&bbox=${B}&t=${this.ts}`, {
8331
8326
  headers: {
8332
8327
  Authorization: this.token || this.defaultMeteoToken
8333
8328
  }
8334
8329
  });
8335
8330
  if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather links elapsed: ", r, ", total: ", a += r), ((c = A == null ? void 0 : A.data) == null ? void 0 : c.code) === 0) {
8336
- const f = (h = A == null ? void 0 : A.data) == null ? void 0 : h.data, w = [];
8331
+ const f = (h = A == null ? void 0 : A.data) == null ? void 0 : h.data, y = [];
8337
8332
  for (const d in f)
8338
- d !== "tropicals" && w.push(
8333
+ d !== "tropicals" && y.push(
8339
8334
  he.get(f[d], {
8340
8335
  headers: {
8341
8336
  Authorization: this.token || this.defaultMeteoToken,
@@ -8346,8 +8341,8 @@ const Ho = {
8346
8341
  console.log(`[${d}] fetch layer error: ${P}`);
8347
8342
  })
8348
8343
  );
8349
- const B = await Promise.all(w);
8350
- this.weatherLayers = {}, B.map((d) => {
8344
+ const x = await Promise.all(y);
8345
+ this.weatherLayers = {}, x.map((d) => {
8351
8346
  var S, _, H, Y;
8352
8347
  const P = ((S = d == null ? void 0 : d.data) == null ? void 0 : S.data) || (d == null ? void 0 : d.data), Q = (H = (_ = d == null ? void 0 : d.config) == null ? void 0 : _.headers) == null ? void 0 : H.key;
8353
8348
  Q && P && (this.weatherLayers[Q] = {
@@ -8374,25 +8369,25 @@ const Ho = {
8374
8369
  });
8375
8370
  }
8376
8371
  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"]) {
8377
- const f = (p = this.weatherLayers["swell-direction"]) == null ? void 0 : p.raw, w = (n = this.weatherLayers["swell-height"]) == null ? void 0 : n.raw;
8372
+ const f = (p = this.weatherLayers["swell-direction"]) == null ? void 0 : p.raw, y = (n = this.weatherLayers["swell-height"]) == null ? void 0 : n.raw;
8378
8373
  delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
8379
8374
  type: "json",
8380
8375
  direction: f,
8381
- height: { raw: w },
8376
+ height: { raw: y },
8382
8377
  etime: A.data.etime
8383
8378
  };
8384
8379
  }
8385
8380
  if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
8386
- const f = (u = this.weatherLayers["current-direction"]) == null ? void 0 : u.raw, w = (b = this.weatherLayers["current-speed"]) == null ? void 0 : b.raw;
8381
+ const f = (u = this.weatherLayers["current-direction"]) == null ? void 0 : u.raw, y = (b = this.weatherLayers["current-speed"]) == null ? void 0 : b.raw;
8387
8382
  delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
8388
8383
  type: "json",
8389
8384
  direction: f,
8390
- speed: { raw: w },
8385
+ speed: { raw: y },
8391
8386
  etime: A.data.etime
8392
8387
  };
8393
8388
  }
8394
8389
  }
8395
- L && (L.etime = this.ts, L.cached = !0, this.weatherLayers.tropicals = L);
8390
+ C && (C.etime = this.ts, C.cached = !0, this.weatherLayers.tropicals = C);
8396
8391
  }
8397
8392
  this.handleWeatherLayerToggle(), this.handleDrawWeather4Json();
8398
8393
  }
@@ -8413,20 +8408,20 @@ const Ho = {
8413
8408
  });
8414
8409
  if (((e = n == null ? void 0 : n.data) == null ? void 0 : e.code) === 0) {
8415
8410
  const u = (a = n == null ? void 0 : n.data) == null ? void 0 : a.data, b = [];
8416
- for (const y in u)
8411
+ for (const w in u)
8417
8412
  b.push(
8418
- he.get(u[y], {
8413
+ he.get(u[w], {
8419
8414
  headers: {
8420
8415
  Authorization: this.token || this.defaultMeteoToken,
8421
- key: y
8416
+ key: w
8422
8417
  }
8423
8418
  })
8424
8419
  );
8425
8420
  const v = await Promise.all(b);
8426
- this.otherLayers = { enc: l, world12nm: c, worldMarine: h, chinaRoute: p }, v.map((y) => {
8427
- var L, A, f;
8428
- const x = ((L = y == null ? void 0 : y.data) == null ? void 0 : L.data) || (y == null ? void 0 : y.data), D = (f = (A = y == null ? void 0 : y.config) == null ? void 0 : A.headers) == null ? void 0 : f.key;
8429
- this.otherLayers[D] = x;
8421
+ this.otherLayers = { enc: l, world12nm: c, worldMarine: h, chinaRoute: p }, v.map((w) => {
8422
+ var C, A, f;
8423
+ const B = ((C = w == null ? void 0 : w.data) == null ? void 0 : C.data) || (w == null ? void 0 : w.data), D = (f = (A = w == null ? void 0 : w.config) == null ? void 0 : A.headers) == null ? void 0 : f.key;
8424
+ this.otherLayers[D] = B;
8430
8425
  });
8431
8426
  }
8432
8427
  } else if (t.dayNight && o & 1024) {
@@ -8437,19 +8432,19 @@ const Ho = {
8437
8432
  });
8438
8433
  if (((r = n == null ? void 0 : n.data) == null ? void 0 : r.code) === 0) {
8439
8434
  const u = (i = n == null ? void 0 : n.data) == null ? void 0 : i.data, b = [];
8440
- for (const y in u)
8435
+ for (const w in u)
8441
8436
  b.push(
8442
- he.get(u[y], {
8437
+ he.get(u[w], {
8443
8438
  headers: {
8444
8439
  Authorization: this.token || this.defaultMeteoToken,
8445
- key: y
8440
+ key: w
8446
8441
  }
8447
8442
  })
8448
8443
  );
8449
- (await Promise.all(b)).map((y) => {
8450
- var L, A, f;
8451
- const x = ((L = y == null ? void 0 : y.data) == null ? void 0 : L.data) || (y == null ? void 0 : y.data), D = (f = (A = y == null ? void 0 : y.config) == null ? void 0 : A.headers) == null ? void 0 : f.key;
8452
- this.otherLayers[D] = x;
8444
+ (await Promise.all(b)).map((w) => {
8445
+ var C, A, f;
8446
+ const B = ((C = w == null ? void 0 : w.data) == null ? void 0 : C.data) || (w == null ? void 0 : w.data), D = (f = (A = w == null ? void 0 : w.config) == null ? void 0 : A.headers) == null ? void 0 : f.key;
8447
+ this.otherLayers[D] = B;
8453
8448
  });
8454
8449
  }
8455
8450
  }
@@ -8504,244 +8499,244 @@ const Ho = {
8504
8499
  );
8505
8500
  },
8506
8501
  handleDrawWeather4Json() {
8507
- var p, n, u, b, v, y;
8502
+ var p, n, u, b, v, w;
8508
8503
  const t = (/* @__PURE__ */ new Date()).valueOf();
8509
8504
  let e = 0, a = 0;
8510
8505
  const r = (p = this.map) == null ? void 0 : p.getBounds(), i = this.map.getZoom(), o = q.convertToStdLng(r._sw.lng), l = q.convertToStdLng(r._ne.lng), c = Math.floor(r._sw.lat), h = Math.ceil(r._ne.lat);
8511
- for (const x in this.weatherLayers) {
8506
+ for (const B in this.weatherLayers) {
8512
8507
  let D = !1;
8513
- if (this.weatherLayers[x].active && this.weatherLayers[x].type === "json") {
8514
- let L = [];
8515
- if (x === "swell") {
8508
+ if (this.weatherLayers[B].active && this.weatherLayers[B].type === "json") {
8509
+ let C = [];
8510
+ if (B === "swell") {
8516
8511
  D = !0;
8517
- const A = ((n = this.weatherLayers[x]) == null ? void 0 : n.direction) || {};
8518
- for (const w in A)
8519
- if (w > c && w < h && (!(i <= this.zoom) || w % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
8520
- const B = A[w].lng;
8521
- o > l ? B.forEach((d, P) => {
8512
+ const A = ((n = this.weatherLayers[B]) == null ? void 0 : n.direction) || {};
8513
+ for (const y in A)
8514
+ if (y > c && y < h && (!(i <= this.zoom) || y % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
8515
+ const x = A[y].lng;
8516
+ o > l ? x.forEach((d, P) => {
8522
8517
  var Q, S, _, H, Y, J;
8523
8518
  if (i < 2) {
8524
8519
  if ((d >= 0 && d <= 360 || d >= -360 && d <= 0) && d % 10 === 0) {
8525
- const W = M.point([d, w], {
8526
- val: ((Q = A[w].val) == null ? void 0 : Q[P]) || ((S = A[w].dir) == null ? void 0 : S[P]),
8527
- spd: (_ = A[w].spd) == null ? void 0 : _[P]
8520
+ const W = M.point([d, y], {
8521
+ val: ((Q = A[y].val) == null ? void 0 : Q[P]) || ((S = A[y].dir) == null ? void 0 : S[P]),
8522
+ spd: (_ = A[y].spd) == null ? void 0 : _[P]
8528
8523
  });
8529
- L.push(W);
8524
+ C.push(W);
8530
8525
  }
8531
8526
  } else if ((d >= o && d <= 180 || d >= -180 && d <= l) && (!(i <= this.zoom) || d % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
8532
- const W = M.point([d, w], {
8533
- val: ((H = A[w].val) == null ? void 0 : H[P]) || ((Y = A[w].dir) == null ? void 0 : Y[P]),
8534
- spd: (J = A[w].spd) == null ? void 0 : J[P]
8527
+ const W = M.point([d, y], {
8528
+ val: ((H = A[y].val) == null ? void 0 : H[P]) || ((Y = A[y].dir) == null ? void 0 : Y[P]),
8529
+ spd: (J = A[y].spd) == null ? void 0 : J[P]
8535
8530
  });
8536
- L.push(W);
8531
+ C.push(W);
8537
8532
  }
8538
- }) : B.forEach((d, P) => {
8533
+ }) : x.forEach((d, P) => {
8539
8534
  var Q, S, _, H, Y, J;
8540
8535
  if (o < 2) {
8541
8536
  if ((d >= 0 && d <= 360 || d >= -360 && d <= 0) && d % 10 === 0) {
8542
- const W = M.point([d, w], {
8543
- val: ((Q = A[w].val) == null ? void 0 : Q[P]) || ((S = A[w].dir) == null ? void 0 : S[P]),
8544
- spd: (_ = A[w].spd) == null ? void 0 : _[P]
8537
+ const W = M.point([d, y], {
8538
+ val: ((Q = A[y].val) == null ? void 0 : Q[P]) || ((S = A[y].dir) == null ? void 0 : S[P]),
8539
+ spd: (_ = A[y].spd) == null ? void 0 : _[P]
8545
8540
  });
8546
- L.push(W);
8541
+ C.push(W);
8547
8542
  }
8548
8543
  } else if (d >= o && d <= l && (!(i <= this.zoom) || d % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
8549
- const W = M.point([d, w], {
8550
- val: ((H = A[w].val) == null ? void 0 : H[P]) || ((Y = A[w].dir) == null ? void 0 : Y[P]),
8551
- spd: (J = A[w].spd) == null ? void 0 : J[P]
8544
+ const W = M.point([d, y], {
8545
+ val: ((H = A[y].val) == null ? void 0 : H[P]) || ((Y = A[y].dir) == null ? void 0 : Y[P]),
8546
+ spd: (J = A[y].spd) == null ? void 0 : J[P]
8552
8547
  });
8553
- L.push(W);
8548
+ C.push(W);
8554
8549
  }
8555
8550
  });
8556
8551
  }
8557
8552
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell direction elapsed: ", a, ", total: ", e += a);
8558
- const f = this.weatherLayers[x].height;
8553
+ const f = this.weatherLayers[B].height;
8559
8554
  if (f) {
8560
8555
  if (!f.data) {
8561
- const w = [];
8562
- for (const B in (u = f.raw) == null ? void 0 : u.LineString) {
8563
- const d = f.raw.LineString[B];
8556
+ const y = [];
8557
+ for (const x in (u = f.raw) == null ? void 0 : u.LineString) {
8558
+ const d = f.raw.LineString[x];
8564
8559
  for (const P of d)
8565
- w.push(
8560
+ y.push(
8566
8561
  M.lineString(P, {
8567
- val: Number(B)
8562
+ val: Number(x)
8568
8563
  })
8569
8564
  );
8570
- f.data = M.featureCollection(w);
8565
+ f.data = M.featureCollection(y);
8571
8566
  }
8572
8567
  }
8573
8568
  if (f.data) {
8574
- const w = this.handleBboxClip(f.data, r);
8575
- L = L.concat(w);
8569
+ const y = this.handleBboxClip(f.data, r);
8570
+ C = C.concat(y);
8576
8571
  }
8577
8572
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", a, ", total: ", e += a);
8578
8573
  }
8579
- } else if (x === "current" && this.showCurrentIsoband) {
8574
+ } else if (B === "current" && this.showCurrentIsoband) {
8580
8575
  D = !0;
8581
- const A = ((b = this.weatherLayers[x]) == null ? void 0 : b.direction) || {};
8582
- for (const w in A)
8583
- if (w > c && w < h && (!(i <= this.zoom) || w % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
8584
- const B = A[w].lng;
8585
- o > l ? B.forEach((d, P) => {
8576
+ const A = ((b = this.weatherLayers[B]) == null ? void 0 : b.direction) || {};
8577
+ for (const y in A)
8578
+ if (y > c && y < h && (!(i <= this.zoom) || y % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
8579
+ const x = A[y].lng;
8580
+ o > l ? x.forEach((d, P) => {
8586
8581
  var Q, S, _, H, Y, J;
8587
8582
  if (i < 2) {
8588
8583
  if ((d >= 0 && d <= 360 || d >= -360 && d <= 0) && d % 10 === 0) {
8589
- const W = M.point([d, w], {
8590
- val: ((Q = A[w].val) == null ? void 0 : Q[P]) || ((S = A[w].dir) == null ? void 0 : S[P]),
8591
- spd: (_ = A[w].spd) == null ? void 0 : _[P]
8584
+ const W = M.point([d, y], {
8585
+ val: ((Q = A[y].val) == null ? void 0 : Q[P]) || ((S = A[y].dir) == null ? void 0 : S[P]),
8586
+ spd: (_ = A[y].spd) == null ? void 0 : _[P]
8592
8587
  });
8593
- L.push(W);
8588
+ C.push(W);
8594
8589
  }
8595
8590
  } else if ((d >= o && d <= 180 || d >= -180 && d <= l) && (!(i <= this.zoom) || d % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
8596
- const W = M.point([d, w], {
8597
- val: ((H = A[w].val) == null ? void 0 : H[P]) || ((Y = A[w].dir) == null ? void 0 : Y[P]),
8598
- spd: (J = A[w].spd) == null ? void 0 : J[P]
8591
+ const W = M.point([d, y], {
8592
+ val: ((H = A[y].val) == null ? void 0 : H[P]) || ((Y = A[y].dir) == null ? void 0 : Y[P]),
8593
+ spd: (J = A[y].spd) == null ? void 0 : J[P]
8599
8594
  });
8600
- L.push(W);
8595
+ C.push(W);
8601
8596
  }
8602
- }) : B.forEach((d, P) => {
8597
+ }) : x.forEach((d, P) => {
8603
8598
  var Q, S, _, H, Y, J;
8604
8599
  if (o < 2) {
8605
8600
  if ((d >= 0 && d <= 360 || d >= -360 && d <= 0) && d % 10 === 0) {
8606
- const W = M.point([d, w], {
8607
- val: ((Q = A[w].val) == null ? void 0 : Q[P]) || ((S = A[w].dir) == null ? void 0 : S[P]),
8608
- spd: (_ = A[w].spd) == null ? void 0 : _[P]
8601
+ const W = M.point([d, y], {
8602
+ val: ((Q = A[y].val) == null ? void 0 : Q[P]) || ((S = A[y].dir) == null ? void 0 : S[P]),
8603
+ spd: (_ = A[y].spd) == null ? void 0 : _[P]
8609
8604
  });
8610
- L.push(W);
8605
+ C.push(W);
8611
8606
  }
8612
8607
  } else if (d >= o && d <= l && (!(i <= this.zoom) || d % (i < this.zoom / 2 ? 5 : 3) === 0)) {
8613
- const W = M.point([d, w], {
8614
- val: ((H = A[w].val) == null ? void 0 : H[P]) || ((Y = A[w].dir) == null ? void 0 : Y[P]),
8615
- spd: (J = A[w].spd) == null ? void 0 : J[P]
8608
+ const W = M.point([d, y], {
8609
+ val: ((H = A[y].val) == null ? void 0 : H[P]) || ((Y = A[y].dir) == null ? void 0 : Y[P]),
8610
+ spd: (J = A[y].spd) == null ? void 0 : J[P]
8616
8611
  });
8617
- L.push(W);
8612
+ C.push(W);
8618
8613
  }
8619
8614
  });
8620
8615
  }
8621
8616
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current direction elapsed: ", a, ", total: ", e += a);
8622
- const f = this.weatherLayers[x].speed;
8617
+ const f = this.weatherLayers[B].speed;
8623
8618
  if (f) {
8624
8619
  if (!f.data) {
8625
- const B = [];
8620
+ const x = [];
8626
8621
  for (const d in (v = f.raw) == null ? void 0 : v.Polygon) {
8627
8622
  const P = f.raw.Polygon[d];
8628
8623
  for (const Q of P)
8629
- B.push(
8624
+ x.push(
8630
8625
  M.polygon(Q, {
8631
8626
  val: Number(d)
8632
8627
  })
8633
8628
  );
8634
8629
  }
8635
- f.data = M.featureCollection(B);
8630
+ f.data = M.featureCollection(x);
8636
8631
  }
8637
- const w = i < this.zoom ? f.data.features.filter((B) => B.properties.val > 0.5) : f.data.features;
8638
- L = L.concat(w), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", a, ", total: ", e += a);
8632
+ const y = i < this.zoom ? f.data.features.filter((x) => x.properties.val > 0.5) : f.data.features;
8633
+ C = C.concat(y), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", a, ", total: ", e += a);
8639
8634
  }
8640
- } else if (x === "wind" && this.showWindFeather) {
8635
+ } else if (B === "wind" && this.showWindFeather) {
8641
8636
  D = !0;
8642
8637
  const A = this.weatherLayers.wind.raw;
8643
8638
  for (const f in A)
8644
8639
  if (f > c && f < h && (!(i <= this.zoom) || f % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
8645
- const w = A[f].lng;
8646
- o > l ? w.forEach((B, d) => {
8640
+ const y = A[f].lng;
8641
+ o > l ? y.forEach((x, d) => {
8647
8642
  var P, Q, S, _;
8648
8643
  if (i < 2) {
8649
- if ((B >= 0 && B <= 360 || B >= -360 && B <= 0) && B % 10 === 0) {
8650
- const H = M.point([B, f], {
8644
+ if ((x >= 0 && x <= 360 || x >= -360 && x <= 0) && x % 10 === 0) {
8645
+ const H = M.point([x, f], {
8651
8646
  dir: ((P = A[f].val) == null ? void 0 : P[d]) || ((Q = A[f].dir) == null ? void 0 : Q[d]),
8652
8647
  spd: A[f].spd[d]
8653
8648
  });
8654
- L.push(H);
8649
+ C.push(H);
8655
8650
  }
8656
- } else if ((B >= o && B <= 180 || B >= -180 && B <= l) && (!(i <= this.zoom) || B % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
8657
- const H = M.point([B, f], {
8651
+ } else if ((x >= o && x <= 180 || x >= -180 && x <= l) && (!(i <= this.zoom) || x % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
8652
+ const H = M.point([x, f], {
8658
8653
  dir: ((S = A[f].val) == null ? void 0 : S[d]) || ((_ = A[f].dir) == null ? void 0 : _[d]),
8659
8654
  spd: A[f].spd[d]
8660
8655
  });
8661
- L.push(H);
8656
+ C.push(H);
8662
8657
  }
8663
- }) : w.forEach((B, d) => {
8658
+ }) : y.forEach((x, d) => {
8664
8659
  var P, Q, S, _;
8665
8660
  if (i < 2) {
8666
- if ((B >= 0 && B <= 360 || B >= -360 && B <= 0) && B % 10 === 0) {
8667
- const H = M.point([B, f], {
8661
+ if ((x >= 0 && x <= 360 || x >= -360 && x <= 0) && x % 10 === 0) {
8662
+ const H = M.point([x, f], {
8668
8663
  dir: ((P = A[f].val) == null ? void 0 : P[d]) || ((Q = A[f].dir) == null ? void 0 : Q[d]),
8669
8664
  spd: A[f].spd[d]
8670
8665
  });
8671
- L.push(H);
8666
+ C.push(H);
8672
8667
  }
8673
- } else if (B >= o && B <= l && (!(i <= this.zoom) || B % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
8674
- const H = M.point([B, f], {
8668
+ } else if (x >= o && x <= l && (!(i <= this.zoom) || x % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
8669
+ const H = M.point([x, f], {
8675
8670
  dir: ((S = A[f].val) == null ? void 0 : S[d]) || ((_ = A[f].dir) == null ? void 0 : _[d]),
8676
8671
  spd: A[f].spd[d]
8677
8672
  });
8678
- L.push(H);
8673
+ C.push(H);
8679
8674
  }
8680
8675
  });
8681
8676
  }
8682
8677
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("wind barb elapsed: ", a, ", total: ", e += a);
8683
- } else if (x === "sig-wave-height") {
8684
- if (this.weatherLayers[x].data)
8685
- L = this.weatherLayers[x].data;
8678
+ } else if (B === "sig-wave-height") {
8679
+ if (this.weatherLayers[B].data)
8680
+ C = this.weatherLayers[B].data;
8686
8681
  else {
8687
8682
  D = !0;
8688
- const A = this.weatherLayers[x].raw;
8683
+ const A = this.weatherLayers[B].raw;
8689
8684
  if (A) {
8690
8685
  const f = [];
8691
- for (const w in A.Polygon) {
8692
- const B = A.Polygon[w];
8693
- for (const d of B)
8686
+ for (const y in A.Polygon) {
8687
+ const x = A.Polygon[y];
8688
+ for (const d of x)
8694
8689
  f.push(
8695
8690
  M.polygon(d, {
8696
- val: Number(w)
8691
+ val: Number(y)
8697
8692
  })
8698
8693
  );
8699
8694
  }
8700
- for (const w in A.Point) {
8701
- const B = A.Point[w];
8702
- for (let d = 0; d < ((y = B.lng) == null ? void 0 : y.length); d++)
8695
+ for (const y in A.Point) {
8696
+ const x = A.Point[y];
8697
+ for (let d = 0; d < ((w = x.lng) == null ? void 0 : w.length); d++)
8703
8698
  f.push(
8704
- M.point([B.lng[d], w], {
8705
- val: Number(B.val[d])
8699
+ M.point([x.lng[d], y], {
8700
+ val: Number(x.val[d])
8706
8701
  })
8707
8702
  );
8708
8703
  }
8709
- L = L.concat(f);
8704
+ C = C.concat(f);
8710
8705
  }
8711
8706
  }
8712
8707
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sigWave elapsed: ", a, ", total: ", e += a);
8713
- } else if (x === "prmsl") {
8714
- if (this.weatherLayers[x].data)
8715
- L = this.weatherLayers[x].data;
8708
+ } else if (B === "prmsl") {
8709
+ if (this.weatherLayers[B].data)
8710
+ C = this.weatherLayers[B].data;
8716
8711
  else {
8717
8712
  D = !0;
8718
- const A = this.weatherLayers[x].raw;
8713
+ const A = this.weatherLayers[B].raw;
8719
8714
  if (A) {
8720
8715
  const f = [];
8721
- for (const w in A.LineString) {
8722
- const B = A.LineString[w];
8723
- for (const d of B)
8716
+ for (const y in A.LineString) {
8717
+ const x = A.LineString[y];
8718
+ for (const d of x)
8724
8719
  f.push(
8725
8720
  M.lineString(d, {
8726
- val: Number(w)
8721
+ val: Number(y)
8727
8722
  })
8728
8723
  );
8729
8724
  }
8730
- for (const w in A.Point)
8731
- A.Point[w].lng.forEach((B, d) => {
8732
- B = q.convertToStdLng(B), f.push(
8733
- M.point([B, w], {
8734
- val: A.Point[w].val[d],
8735
- type: A.Point[w].type[d]
8725
+ for (const y in A.Point)
8726
+ A.Point[y].lng.forEach((x, d) => {
8727
+ x = q.convertToStdLng(x), f.push(
8728
+ M.point([x, y], {
8729
+ val: A.Point[y].val[d],
8730
+ type: A.Point[y].type[d]
8736
8731
  })
8737
8732
  );
8738
8733
  });
8739
- L = L.concat(f);
8734
+ C = C.concat(f);
8740
8735
  }
8741
8736
  }
8742
8737
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", a, ", total: ", e += a);
8743
8738
  }
8744
- L.length && (this.weatherLayers[x].data = M.featureCollection(L)), D && (this.weatherLayers[x].version = Math.random() + 1);
8739
+ C.length && (this.weatherLayers[B].data = M.featureCollection(C)), D && (this.weatherLayers[B].version = Math.random() + 1);
8745
8740
  }
8746
8741
  }
8747
8742
  },
@@ -8776,8 +8771,8 @@ const Ho = {
8776
8771
  this.handleBeforeLayerToggle();
8777
8772
  },
8778
8773
  handleBeforeLayerToggle() {
8779
- var t, e, a, r, i, o, l, c, h, p, n, u, b, v, y, x;
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"] || (l = this.otherLayers) != null && l["time-zones"] || (c = this.otherLayers) != null && c.pirates || (h = this.otherLayers) != null && h.ports || (p = this.otherLayers) != null && p.enc || (n = this.otherLayers) != null && n.world12nm || (u = this.otherLayers) != null && u.worldMarine || (b = this.otherLayers) != null && b.chinaRoute || (v = this.otherLayers) != null && v["voluntary-reporting-area"] || (y = this.otherLayers) != null && y["eca-zones"] || (x = this.otherLayers) != null && x["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
8774
+ var t, e, a, r, i, o, l, c, h, p, n, u, b, v, w, B;
8775
+ (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"] || (l = this.otherLayers) != null && l["time-zones"] || (c = this.otherLayers) != null && c.pirates || (h = this.otherLayers) != null && h.ports || (p = this.otherLayers) != null && p.enc || (n = this.otherLayers) != null && n.world12nm || (u = this.otherLayers) != null && u.worldMarine || (b = this.otherLayers) != null && b.chinaRoute || (v = this.otherLayers) != null && v["voluntary-reporting-area"] || (w = this.otherLayers) != null && w["eca-zones"] || (B = this.otherLayers) != null && B["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
8781
8776
  },
8782
8777
  handleDateChange(t = { tropicals: !1 }) {
8783
8778
  this.fetchWeatherLayers(t), this.fetchOtherLayers({ dayNight: !0 });
@@ -8811,8 +8806,8 @@ const Ho = {
8811
8806
  }
8812
8807
  },
8813
8808
  handle3dToggle(t) {
8814
- var e, a, r, i, o, l, c, h, p, n, u, b, v, y, x, D, L, A, f, w;
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((l = this.viewport) == null ? void 0 : l.particleLayer) && ((h = this.map) != null && h.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((n = this.map) == null || n.moveLayer((p = this.viewport) == null ? void 0 : p.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("move", this.handleDraWeather4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("move", this.handleDraWeather4Image), this.handleDraWeather4Image(), (b = this.map) != null && b.getLayer((u = this.viewport) == null ? void 0 : u.rampColorLayer) && ((v = this.map) != null && v.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((x = this.map) == null || x.moveLayer((y = this.viewport) == null ? void 0 : y.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (L = this.map) != null && L.getLayer((D = this.viewport) == null ? void 0 : D.particleLayer) && ((A = this.map) != null && A.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((w = this.map) == null || w.moveLayer((f = this.viewport) == null ? void 0 : f.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
8809
+ var e, a, r, i, o, l, c, h, p, n, u, b, v, w, B, D, C, A, f, y;
8810
+ 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((l = this.viewport) == null ? void 0 : l.particleLayer) && ((h = this.map) != null && h.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((n = this.map) == null || n.moveLayer((p = this.viewport) == null ? void 0 : p.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("move", this.handleDraWeather4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("move", this.handleDraWeather4Image), this.handleDraWeather4Image(), (b = this.map) != null && b.getLayer((u = this.viewport) == null ? void 0 : u.rampColorLayer) && ((v = this.map) != null && v.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((B = this.map) == null || B.moveLayer((w = this.viewport) == null ? void 0 : w.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (C = this.map) != null && C.getLayer((D = this.viewport) == null ? void 0 : D.particleLayer) && ((A = this.map) != null && A.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((y = this.map) == null || y.moveLayer((f = this.viewport) == null ? void 0 : f.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
8816
8811
  },
8817
8812
  handleParticle(t) {
8818
8813
  this.particleFactor = t, this.weatherLayers[t.key] && (this.weatherLayers[t.key].particle = t.particle), this.activeWeatherLayers.map((r) => {
@@ -8837,7 +8832,7 @@ const Ho = {
8837
8832
  };
8838
8833
  function No(t, e, a, r, i, o) {
8839
8834
  var oe, j, te, Ae, se, le, ce, I, Ce, xe, Be, Ie, Ee, De, Pe, ke, Me, ze, Te, Qe, Se, _e, He, Oe, Ne, je, Re, Fe, Ge, We;
8840
- const l = T("IdmGlLayer"), c = T("IdmENC"), h = T("IdmWorld12nm"), p = T("IdmWorldMarine"), n = T("IdmChinaRoute"), u = T("IdmSigWave"), b = T("IdmSwell"), v = T("IdmPrmsl"), y = T("IdmIceEdge"), x = T("IdmIceCover"), D = T("IdmIceThickness"), L = T("IdmTropicals"), A = T("IdmCurrents"), f = T("IdmCurrentParticle"), w = T("IdmWindBarb"), B = T("IdmWindParticle"), d = T("IdmPrecip3h"), P = T("IdmVisibility"), Q = T("IdmWaterTemp"), S = T("IdmTemp"), _ = T("IdmWarZone"), H = T("IdmGmdssArea"), Y = T("IdmEcaZone"), J = T("IdmAlertZone"), W = T("IdmPort"), de = T("IdmLoadLine"), pe = T("IdmTimezone"), ue = T("IdmVRA"), me = T("IdmSpecialArea"), ge = T("IdmTerminator"), ie = T("IdmLatLng"), ne = T("IdmMeasure"), we = T("IdmPoint");
8835
+ const l = T("IdmGlLayer"), c = T("IdmENC"), h = T("IdmWorld12nm"), p = T("IdmWorldMarine"), n = T("IdmChinaRoute"), u = T("IdmSigWave"), b = T("IdmSwell"), v = T("IdmPrmsl"), w = T("IdmIceEdge"), B = T("IdmIceCover"), D = T("IdmIceThickness"), C = T("IdmTropicals"), A = T("IdmCurrents"), f = T("IdmCurrentParticle"), y = T("IdmWindBarb"), x = T("IdmWindParticle"), d = T("IdmPrecip3h"), P = T("IdmVisibility"), Q = T("IdmWaterTemp"), S = T("IdmTemp"), _ = T("IdmWarZone"), H = T("IdmGmdssArea"), Y = T("IdmEcaZone"), J = T("IdmAlertZone"), W = T("IdmPort"), de = T("IdmLoadLine"), pe = T("IdmTimezone"), ue = T("IdmVRA"), me = T("IdmSpecialArea"), ge = T("IdmTerminator"), ie = T("IdmLatLng"), ne = T("IdmMeasure"), we = T("IdmPoint");
8841
8836
  return a.map ? (m(), g("div", Oo, [
8842
8837
  z(l, N({
8843
8838
  ref: "layer",
@@ -8914,13 +8909,13 @@ function No(t, e, a, r, i, o) {
8914
8909
  "before-layer": a.beforeLayer,
8915
8910
  "active-weather-layers": i.activeWeatherLayers
8916
8911
  }, t.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
8917
- z(y, N({
8912
+ z(w, N({
8918
8913
  viewport: i.viewport,
8919
8914
  factor: (I = i.weatherLayers) == null ? void 0 : I["ice-edge"],
8920
8915
  "toggle-version": a.toggleVersion,
8921
8916
  "before-layer": a.beforeLayer
8922
8917
  }, t.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
8923
- z(x, N({
8918
+ z(B, N({
8924
8919
  viewport: i.viewport,
8925
8920
  factor: (Ce = i.weatherLayers) == null ? void 0 : Ce["ice-cover"],
8926
8921
  "toggle-version": a.toggleVersion,
@@ -8932,7 +8927,7 @@ function No(t, e, a, r, i, o) {
8932
8927
  "toggle-version": a.toggleVersion,
8933
8928
  "before-layer": a.beforeLayer
8934
8929
  }, t.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
8935
- z(L, N({
8930
+ z(C, N({
8936
8931
  map: a.map,
8937
8932
  date: a.ts,
8938
8933
  tropicals: (Be = i.weatherLayers) == null ? void 0 : Be.tropicals,
@@ -8959,7 +8954,7 @@ function No(t, e, a, r, i, o) {
8959
8954
  "before-layer": a.beforeLayer,
8960
8955
  "toggle-version": a.toggleVersion
8961
8956
  }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
8962
- z(w, N({
8957
+ z(y, N({
8963
8958
  ref: "windBarb",
8964
8959
  map: a.map,
8965
8960
  "map-projection": i.mapProjection,
@@ -8975,7 +8970,7 @@ function No(t, e, a, r, i, o) {
8975
8970
  "weather-layers": i.weatherLayers,
8976
8971
  onParticle: o.handleParticle
8977
8972
  }), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "show-wind-feather", "show-wind-particle", "toggle-partice-version", "toggle-version", "weather-layers", "onParticle"]),
8978
- z(B, N({
8973
+ z(x, N({
8979
8974
  viewport: i.viewport,
8980
8975
  factor: (ke = i.weatherLayers) == null ? void 0 : ke["wind-particle"],
8981
8976
  "before-layer": a.beforeLayer,