@idmwx/idmui-gl4 1.3.6 → 1.3.7

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
@@ -9,7 +9,7 @@ import { LngLatHelper as X, TropicalHelper as Vo, LaneHelper as He } from "@idm-
9
9
  import D from "moment";
10
10
  import { Meteo2Assist as oa, TidesAssist as qo } from "@idm-plugin/meteo";
11
11
  import * as ra from "echarts";
12
- import * as U from "@turf/turf";
12
+ import * as H from "@turf/turf";
13
13
  import { LayerHelper as ia, CompanyHelper as Jo } from "@idm-plugin/tag2";
14
14
  import Qo from "@mapbox/sphericalmercator";
15
15
  import { LayerHelper as ei } from "@idm-plugin/tag";
@@ -1482,10 +1482,10 @@ const ui = {
1482
1482
  { label: "Swell", key: "weather.swell", unit: "m" },
1483
1483
  { label: "Current", key: "weather.current", unit: "kts" }
1484
1484
  ], (a = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || a.dateTimeList.forEach((i, o) => {
1485
- var c, n, g, p, f, w, L, y, k, T, O, I, P, _, z, C, v, A, W, Z, q, V, Q, ee, J, re, he, pe, ne, $, oe, ue, ce, F, me, xe, Le, Pe;
1485
+ var c, n, g, p, f, w, L, y, k, T, O, I, P, _, z, C, v, A, U, Z, q, V, Q, ee, J, re, he, pe, ne, $, oe, ue, ce, F, me, xe, Le, Pe;
1486
1486
  let r = {};
1487
1487
  const s = ((c = oa.pickHourly(t, D(i))) == null ? void 0 : c[0]) || {};
1488
- r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((g = s == null ? void 0 : s.weather) == null ? void 0 : g.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((f = (p = s == null ? void 0 : s.weather) == null ? void 0 : p.precip) == null ? void 0 : f.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((L = (w = s == null ? void 0 : s.weather) == null ? void 0 : w.precip) == null ? void 0 : L.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((y = s == null ? void 0 : s.weather) == null ? void 0 : y.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (k = s == null ? void 0 : s.weather) == null ? void 0 : k.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (I = (O = s == null ? void 0 : s.weather) == null ? void 0 : O.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((_ = (P = s == null ? void 0 : s.weather) == null ? void 0 : P.wind) == null ? void 0 : _.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((C = (z = s == null ? void 0 : s.weather) == null ? void 0 : z.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((A = (v = s == null ? void 0 : s.wave) == null ? void 0 : v.sig) == null ? void 0 : A.height, 1) ?? "-", r.sigwaveDir = (Z = (W = s == null ? void 0 : s.wave) == null ? void 0 : W.sig) == null ? void 0 : Z.direction, r.sigwavePeriod = this.computeRoundPrecision((V = (q = s == null ? void 0 : s.wave) == null ? void 0 : q.sig) == null ? void 0 : V.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((ee = (Q = s == null ? void 0 : s.wave) == null ? void 0 : Q.wd) == null ? void 0 : ee.height, 1) ?? "-", r.windwaveDir = (re = (J = s == null ? void 0 : s.wave) == null ? void 0 : J.wd) == null ? void 0 : re.direction, r.windwavePeriod = this.computeRoundPrecision((pe = (he = s == null ? void 0 : s.wave) == null ? void 0 : he.wd) == null ? void 0 : pe.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision(($ = (ne = s == null ? void 0 : s.wave) == null ? void 0 : ne.swell) == null ? void 0 : $.height, 1) ?? "-", r.swellDir = (ue = (oe = s == null ? void 0 : s.wave) == null ? void 0 : oe.swell) == null ? void 0 : ue.direction, r.swellPeriod = this.computeRoundPrecision((F = (ce = s == null ? void 0 : s.wave) == null ? void 0 : ce.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((me = s == null ? void 0 : s.current) == null ? void 0 : me.speed, 1) ?? "-", r.currentDir = (xe = s == null ? void 0 : s.current) == null ? void 0 : xe.direction, r.currentSpeed = this.computeRoundPrecision((Le = s == null ? void 0 : s.current) == null ? void 0 : Le.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(s == null ? void 0 : s.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(s == null ? void 0 : s.sst, 0) ?? "-", r.weatherUrls = (Pe = s == null ? void 0 : s.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${o}`] = o * this.interval > 10 ? o * this.interval : "0" + o * this.interval, this.tableData[1][`value${o}`] = r.weatherUrl, this.tableData[2][`value${o}`] = r.temp, this.tableData[3][`value${o}`] = r.precip1h, this.tableData[4][`value${o}`] = r.visibility, this.tableData[5][`value${o}`] = r.windSpeed, this.tableData[6][`value${o}`] = r.sigwaveHeight, this.tableData[7][`value${o}`] = r.swellHeight, this.tableData[8][`value${o}`] = r.currentSpeed;
1488
+ r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((g = s == null ? void 0 : s.weather) == null ? void 0 : g.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((f = (p = s == null ? void 0 : s.weather) == null ? void 0 : p.precip) == null ? void 0 : f.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((L = (w = s == null ? void 0 : s.weather) == null ? void 0 : w.precip) == null ? void 0 : L.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((y = s == null ? void 0 : s.weather) == null ? void 0 : y.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (k = s == null ? void 0 : s.weather) == null ? void 0 : k.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (I = (O = s == null ? void 0 : s.weather) == null ? void 0 : O.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((_ = (P = s == null ? void 0 : s.weather) == null ? void 0 : P.wind) == null ? void 0 : _.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((C = (z = s == null ? void 0 : s.weather) == null ? void 0 : z.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((A = (v = s == null ? void 0 : s.wave) == null ? void 0 : v.sig) == null ? void 0 : A.height, 1) ?? "-", r.sigwaveDir = (Z = (U = s == null ? void 0 : s.wave) == null ? void 0 : U.sig) == null ? void 0 : Z.direction, r.sigwavePeriod = this.computeRoundPrecision((V = (q = s == null ? void 0 : s.wave) == null ? void 0 : q.sig) == null ? void 0 : V.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((ee = (Q = s == null ? void 0 : s.wave) == null ? void 0 : Q.wd) == null ? void 0 : ee.height, 1) ?? "-", r.windwaveDir = (re = (J = s == null ? void 0 : s.wave) == null ? void 0 : J.wd) == null ? void 0 : re.direction, r.windwavePeriod = this.computeRoundPrecision((pe = (he = s == null ? void 0 : s.wave) == null ? void 0 : he.wd) == null ? void 0 : pe.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision(($ = (ne = s == null ? void 0 : s.wave) == null ? void 0 : ne.swell) == null ? void 0 : $.height, 1) ?? "-", r.swellDir = (ue = (oe = s == null ? void 0 : s.wave) == null ? void 0 : oe.swell) == null ? void 0 : ue.direction, r.swellPeriod = this.computeRoundPrecision((F = (ce = s == null ? void 0 : s.wave) == null ? void 0 : ce.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((me = s == null ? void 0 : s.current) == null ? void 0 : me.speed, 1) ?? "-", r.currentDir = (xe = s == null ? void 0 : s.current) == null ? void 0 : xe.direction, r.currentSpeed = this.computeRoundPrecision((Le = s == null ? void 0 : s.current) == null ? void 0 : Le.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(s == null ? void 0 : s.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(s == null ? void 0 : s.sst, 0) ?? "-", r.weatherUrls = (Pe = s == null ? void 0 : s.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${o}`] = o * this.interval > 10 ? o * this.interval : "0" + o * this.interval, this.tableData[1][`value${o}`] = r.weatherUrl, this.tableData[2][`value${o}`] = r.temp, this.tableData[3][`value${o}`] = r.precip1h, this.tableData[4][`value${o}`] = r.visibility, this.tableData[5][`value${o}`] = r.windSpeed, this.tableData[6][`value${o}`] = r.sigwaveHeight, this.tableData[7][`value${o}`] = r.swellHeight, this.tableData[8][`value${o}`] = r.currentSpeed;
1489
1489
  });
1490
1490
  },
1491
1491
  handleTide() {
@@ -3324,7 +3324,7 @@ const Fl = {
3324
3324
  handleZoomEnd() {
3325
3325
  var e;
3326
3326
  const t = this.handleComputeLatLngs();
3327
- (e = this.map) == null || e.getSource(this.source).setData(U.featureCollection(t));
3327
+ (e = this.map) == null || e.getSource(this.source).setData(H.featureCollection(t));
3328
3328
  },
3329
3329
  handleRender() {
3330
3330
  if (this.handleClear(), this.map) {
@@ -5494,7 +5494,7 @@ const es = {
5494
5494
  }, ds = { class: "text-body-2 text-center pt-1" };
5495
5495
  function hs(t, e, a, i, o, r) {
5496
5496
  var J, re, he, pe, ne, $, oe, ue, ce;
5497
- const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VCardItem"), p = x("VCheckbox"), f = x("VCardText"), w = x("VCard"), L = x("IdmLatLng"), y = x("IdmTerminator"), k = x("IdmTimezone"), T = x("IdmPort"), O = x("IdmAlertZone"), I = x("IdmTideStations"), P = x("IdmEcaZone"), _ = x("IdmWarZone"), z = x("IdmGmdssArea"), C = x("IdmLoadLine"), v = x("IdmWorldMarine"), A = x("IdmVRA"), W = x("IdmSpecialArea"), Z = x("IdmWorld12nm"), q = x("IdmChinaRoute"), V = x("IdmIceAreas"), Q = x("IdmFollowPort"), ee = x("IdmFollowPosition");
5497
+ const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VCardItem"), p = x("VCheckbox"), f = x("VCardText"), w = x("VCard"), L = x("IdmLatLng"), y = x("IdmTerminator"), k = x("IdmTimezone"), T = x("IdmPort"), O = x("IdmAlertZone"), I = x("IdmTideStations"), P = x("IdmEcaZone"), _ = x("IdmWarZone"), z = x("IdmGmdssArea"), C = x("IdmLoadLine"), v = x("IdmWorldMarine"), A = x("IdmVRA"), U = x("IdmSpecialArea"), Z = x("IdmWorld12nm"), q = x("IdmChinaRoute"), V = x("IdmIceAreas"), Q = x("IdmFollowPort"), ee = x("IdmFollowPosition");
5498
5498
  return b(), S("div", ts, [
5499
5499
  l("div", {
5500
5500
  class: "menu-bar-box transition px-1 rounded",
@@ -5802,7 +5802,7 @@ function hs(t, e, a, i, o, r) {
5802
5802
  map: a.map,
5803
5803
  area: (ue = o.otherLayers) == null ? void 0 : ue["voluntary-reporting-area"]
5804
5804
  }, t.$attrs), null, 16, ["map", "area"])) : M("", !0),
5805
- a.map ? (b(), R(W, B({
5805
+ a.map ? (b(), R(U, B({
5806
5806
  key: 12,
5807
5807
  map: a.map,
5808
5808
  area: (ce = o.otherLayers) == null ? void 0 : ce["special-area"]
@@ -6384,7 +6384,7 @@ const us = {
6384
6384
  showCaption: !1,
6385
6385
  source: "wind-barb-source",
6386
6386
  barbs: [0, 2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105],
6387
- empty: U.featureCollection([]),
6387
+ empty: H.featureCollection([]),
6388
6388
  right: 10,
6389
6389
  bottom: 125,
6390
6390
  windBarbLoaded: !1,
@@ -6703,7 +6703,7 @@ const vs = /* @__PURE__ */ K(bs, [["render", xs]]), _s = {
6703
6703
  directionLayer: "current-direction-layer",
6704
6704
  speedLayer: "current-speed-layer",
6705
6705
  speedLabelLayer: "current-speed-label-layer",
6706
- empty: U.featureCollection([])
6706
+ empty: H.featureCollection([])
6707
6707
  };
6708
6708
  },
6709
6709
  computed: {
@@ -7155,7 +7155,7 @@ const As = /* @__PURE__ */ K(Ss, [["render", Ms], ["__scopeId", "data-v-c069e9e6
7155
7155
  source: "sig-wave-height-source",
7156
7156
  heightLayer: "sig-wave-height-layer",
7157
7157
  heightLabelLayer: "sig-wave-height-label-layer",
7158
- empty: U.featureCollection([])
7158
+ empty: H.featureCollection([])
7159
7159
  };
7160
7160
  },
7161
7161
  watch: {
@@ -7433,7 +7433,7 @@ const js = /* @__PURE__ */ K(Bs, [["render", Es], ["__scopeId", "data-v-214b2a9a
7433
7433
  layer: "prmsl-layer",
7434
7434
  labelLayer: "prmsl-label-layer",
7435
7435
  pointLabelLayer: "prmsl-point-label-layer",
7436
- empty: U.featureCollection([])
7436
+ empty: H.featureCollection([])
7437
7437
  };
7438
7438
  },
7439
7439
  watch: {
@@ -8512,7 +8512,7 @@ const wn = {
8512
8512
  return this.tagLayers.filter((t) => t.overlays).map((t) => t.key);
8513
8513
  },
8514
8514
  rendersKeys() {
8515
- return this.tagLayers.filter((t) => !t.overlays).map((t) => t.key);
8515
+ return this.allLayers.filter((t) => !t.overlays && t.enabled).map((t) => t.key);
8516
8516
  },
8517
8517
  showTipMenu() {
8518
8518
  return this.checkList.includes("wind") || this.checkList.includes("current-direction") || this.checkList.includes("sig-wave-height");
@@ -8557,7 +8557,7 @@ const wn = {
8557
8557
  },
8558
8558
  renderKey: {
8559
8559
  handler(t, e) {
8560
- t && t !== e ? this.checkList = [t] : !t && e && (this.checkList = this.checkList.filter((a) => a !== e));
8560
+ t && t !== e ? t === "wave-group" ? this.checkList = ["wave-group", this.waveToggleValue || "sig-wave"] : t === "ice-forecast" ? this.checkList = ["ice-forecast", this.iceToggleValue || "ice-cover"] : this.checkList = [t] : !t && e && (this.checkList = this.checkList.filter((a) => a !== e));
8561
8561
  }
8562
8562
  },
8563
8563
  checkList: {
@@ -8630,7 +8630,7 @@ const wn = {
8630
8630
  if (this.arraysEqual(t, e))
8631
8631
  return !1;
8632
8632
  const a = [...new Set(t)], i = a == null ? void 0 : a.filter((r) => !(e != null && e.includes(r)))[0], o = e == null ? void 0 : e.filter((r) => !(a != null && a.includes(r)))[0];
8633
- i && (i === "ice-cover" || i === "ice-thickness" || i === "ice-forecast" ? (this.checkList = ["ice-forecast", this.iceToggleValue || "ice-cover"], this.iceToggleValue = this.iceToggleValue || "ice-cover") : i === "wave-group" || i === "swell" || i === "sig-wave" ? (this.checkList = ["wave-group", this.waveToggleValue || "sig-wave"], this.waveToggleValue = this.waveToggleValue || "sig-wave") : this.rendersKeys.includes(i) ? this.checkList = [i] : (this.checkList = a.filter((r) => !this.rendersKeys.includes(r)), this.renderKey = void 0)), o && (o === "ice-forecast" ? (this.checkList = a.filter((r) => !["ice-cover", "ice-thickness", "ice-forecast"].includes(r)), this.iceToggleValue = void 0) : o === "wave-group" ? (this.checkList = a.filter((r) => !["wave-group", "sig-wave", "swell"].includes(r)), this.waveToggleValue = void 0) : this.checkList = a), this.checkList.includes("wind-particle") && (this.showWindParticle = !0), this.checkList.includes("current-particle") && (this.showCurrentParticle = !0), localStorage.setItem(this.cache.checkListKey, JSON.stringify(a)), this.activeWeatherLayers = this.autoActive ? this.allLayers.filter((r) => a.includes(r.key)) : [], this.handleWeatherLayerChange();
8633
+ i && (i === "ice-cover" || i === "ice-thickness" || i === "ice-forecast" ? (this.checkList = ["ice-forecast", this.iceToggleValue || "ice-cover"], this.iceToggleValue = this.iceToggleValue || "ice-cover") : i === "sig-wave" || i === "swell" || i === "wave-group" ? (this.checkList = ["wave-group", this.waveToggleValue || "sig-wave"], this.waveToggleValue = this.waveToggleValue || "sig-wave") : this.rendersKeys.includes(i) ? this.checkList = [i] : (this.checkList = a.filter((r) => !this.rendersKeys.includes(r)), this.renderKey = void 0)), o && (o === "ice-forecast" ? (this.checkList = a.filter((r) => !["ice-cover", "ice-thickness", "ice-forecast"].includes(r)), this.iceToggleValue = void 0) : o === "wave-group" ? (this.checkList = a.filter((r) => !["wave-group", "sig-wave", "swell"].includes(r)), this.waveToggleValue = void 0) : this.checkList = a), this.checkList.includes("wind-particle") && (this.showWindParticle = !0), this.checkList.includes("current-particle") && (this.showCurrentParticle = !0), localStorage.setItem(this.cache.checkListKey, JSON.stringify(a)), this.activeWeatherLayers = this.autoActive ? this.allLayers.filter((r) => a.includes(r.key)) : [], this.handleWeatherLayerChange();
8634
8634
  },
8635
8635
  async fetchModels() {
8636
8636
  this.models = {};
@@ -8681,8 +8681,8 @@ const wn = {
8681
8681
  );
8682
8682
  const z = await Promise.all(_);
8683
8683
  this.weatherLayers = {}, z.map((C) => {
8684
- var W, Z, q, V;
8685
- const v = ((W = C == null ? void 0 : C.data) == null ? void 0 : W.data) || (C == null ? void 0 : C.data);
8684
+ var U, Z, q, V;
8685
+ const v = ((U = C == null ? void 0 : C.data) == null ? void 0 : U.data) || (C == null ? void 0 : C.data);
8686
8686
  let A = (q = (Z = C == null ? void 0 : C.config) == null ? void 0 : Z.headers) == null ? void 0 : q.key;
8687
8687
  A && v && (this.weatherLayers[A] = {
8688
8688
  raw: v,
@@ -8777,34 +8777,34 @@ const wn = {
8777
8777
  if (z > c && z < n && (!(o <= this.zoom) || z % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8778
8778
  const C = P[z].lng;
8779
8779
  r > s ? C.forEach((v, A) => {
8780
- var W, Z, q, V, Q, ee;
8780
+ var U, Z, q, V, Q, ee;
8781
8781
  if (o < 2) {
8782
8782
  if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
8783
- const J = U.point([v, z], {
8784
- val: ((W = P[z].val) == null ? void 0 : W[A]) || ((Z = P[z].dir) == null ? void 0 : Z[A]),
8783
+ const J = H.point([v, z], {
8784
+ val: ((U = P[z].val) == null ? void 0 : U[A]) || ((Z = P[z].dir) == null ? void 0 : Z[A]),
8785
8785
  spd: (q = P[z].spd) == null ? void 0 : q[A]
8786
8786
  });
8787
8787
  I.push(J);
8788
8788
  }
8789
8789
  } else if ((v >= r && v <= 180 || v >= -180 && v <= s) && (!(o <= this.zoom) || v % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8790
- const J = U.point([v, z], {
8790
+ const J = H.point([v, z], {
8791
8791
  val: ((V = P[z].val) == null ? void 0 : V[A]) || ((Q = P[z].dir) == null ? void 0 : Q[A]),
8792
8792
  spd: (ee = P[z].spd) == null ? void 0 : ee[A]
8793
8793
  });
8794
8794
  I.push(J);
8795
8795
  }
8796
8796
  }) : C.forEach((v, A) => {
8797
- var W, Z, q, V, Q, ee;
8797
+ var U, Z, q, V, Q, ee;
8798
8798
  if (r < 2) {
8799
8799
  if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
8800
- const J = U.point([v, z], {
8801
- val: ((W = P[z].val) == null ? void 0 : W[A]) || ((Z = P[z].dir) == null ? void 0 : Z[A]),
8800
+ const J = H.point([v, z], {
8801
+ val: ((U = P[z].val) == null ? void 0 : U[A]) || ((Z = P[z].dir) == null ? void 0 : Z[A]),
8802
8802
  spd: (q = P[z].spd) == null ? void 0 : q[A]
8803
8803
  });
8804
8804
  I.push(J);
8805
8805
  }
8806
8806
  } else if (v >= r && v <= s && (!(o <= this.zoom) || v % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8807
- const J = U.point([v, z], {
8807
+ const J = H.point([v, z], {
8808
8808
  val: ((V = P[z].val) == null ? void 0 : V[A]) || ((Q = P[z].dir) == null ? void 0 : Q[A]),
8809
8809
  spd: (ee = P[z].spd) == null ? void 0 : ee[A]
8810
8810
  });
@@ -8821,11 +8821,11 @@ const wn = {
8821
8821
  const v = _.raw.LineString[C];
8822
8822
  for (const A of v)
8823
8823
  z.push(
8824
- U.lineString(A, {
8824
+ H.lineString(A, {
8825
8825
  val: Number(C)
8826
8826
  })
8827
8827
  );
8828
- _.data = U.featureCollection(z);
8828
+ _.data = H.featureCollection(z);
8829
8829
  }
8830
8830
  }
8831
8831
  if (_.data) {
@@ -8841,34 +8841,34 @@ const wn = {
8841
8841
  if (z > c && z < n && (!(o <= this.zoom) || z % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8842
8842
  const C = P[z].lng;
8843
8843
  r > s ? C.forEach((v, A) => {
8844
- var W, Z, q, V, Q, ee;
8844
+ var U, Z, q, V, Q, ee;
8845
8845
  if (o < 2) {
8846
8846
  if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
8847
- const J = U.point([v, z], {
8848
- val: ((W = P[z].val) == null ? void 0 : W[A]) || ((Z = P[z].dir) == null ? void 0 : Z[A]),
8847
+ const J = H.point([v, z], {
8848
+ val: ((U = P[z].val) == null ? void 0 : U[A]) || ((Z = P[z].dir) == null ? void 0 : Z[A]),
8849
8849
  spd: (q = P[z].spd) == null ? void 0 : q[A]
8850
8850
  });
8851
8851
  I.push(J);
8852
8852
  }
8853
8853
  } else if ((v >= r && v <= 180 || v >= -180 && v <= s) && (!(o <= this.zoom) || v % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8854
- const J = U.point([v, z], {
8854
+ const J = H.point([v, z], {
8855
8855
  val: ((V = P[z].val) == null ? void 0 : V[A]) || ((Q = P[z].dir) == null ? void 0 : Q[A]),
8856
8856
  spd: (ee = P[z].spd) == null ? void 0 : ee[A]
8857
8857
  });
8858
8858
  I.push(J);
8859
8859
  }
8860
8860
  }) : C.forEach((v, A) => {
8861
- var W, Z, q, V, Q, ee;
8861
+ var U, Z, q, V, Q, ee;
8862
8862
  if (r < 2) {
8863
8863
  if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
8864
- const J = U.point([v, z], {
8865
- val: ((W = P[z].val) == null ? void 0 : W[A]) || ((Z = P[z].dir) == null ? void 0 : Z[A]),
8864
+ const J = H.point([v, z], {
8865
+ val: ((U = P[z].val) == null ? void 0 : U[A]) || ((Z = P[z].dir) == null ? void 0 : Z[A]),
8866
8866
  spd: (q = P[z].spd) == null ? void 0 : q[A]
8867
8867
  });
8868
8868
  I.push(J);
8869
8869
  }
8870
8870
  } else if (v >= r && v <= s && (!(o <= this.zoom) || v % (o < this.zoom / 2 ? 5 : 3) === 0)) {
8871
- const J = U.point([v, z], {
8871
+ const J = H.point([v, z], {
8872
8872
  val: ((V = P[z].val) == null ? void 0 : V[A]) || ((Q = P[z].dir) == null ? void 0 : Q[A]),
8873
8873
  spd: (ee = P[z].spd) == null ? void 0 : ee[A]
8874
8874
  });
@@ -8883,14 +8883,14 @@ const wn = {
8883
8883
  const C = [];
8884
8884
  for (const v in (y = _.raw) == null ? void 0 : y.Polygon) {
8885
8885
  const A = _.raw.Polygon[v];
8886
- for (const W of A)
8886
+ for (const U of A)
8887
8887
  C.push(
8888
- U.polygon(W, {
8888
+ H.polygon(U, {
8889
8889
  val: Number(v)
8890
8890
  })
8891
8891
  );
8892
8892
  }
8893
- _.data = U.featureCollection(C);
8893
+ _.data = H.featureCollection(C);
8894
8894
  }
8895
8895
  const z = o < this.zoom ? _.data.features.filter((C) => C.properties.val > 0.5) : _.data.features;
8896
8896
  I = I.concat(z), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", a, ", total: ", e += a);
@@ -8902,34 +8902,34 @@ const wn = {
8902
8902
  if (_ > c && _ < n && (!(o <= this.zoom) || _ % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8903
8903
  const z = P[_].lng;
8904
8904
  r > s ? z.forEach((C, v) => {
8905
- var A, W, Z, q;
8905
+ var A, U, Z, q;
8906
8906
  if (o < 2) {
8907
8907
  if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
8908
- const V = U.point([C, _], {
8909
- dir: ((A = P[_].val) == null ? void 0 : A[v]) || ((W = P[_].dir) == null ? void 0 : W[v]),
8908
+ const V = H.point([C, _], {
8909
+ dir: ((A = P[_].val) == null ? void 0 : A[v]) || ((U = P[_].dir) == null ? void 0 : U[v]),
8910
8910
  spd: P[_].spd[v]
8911
8911
  });
8912
8912
  I.push(V);
8913
8913
  }
8914
8914
  } else if ((C >= r && C <= 180 || C >= -180 && C <= s) && (!(o <= this.zoom) || C % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8915
- const V = U.point([C, _], {
8915
+ const V = H.point([C, _], {
8916
8916
  dir: ((Z = P[_].val) == null ? void 0 : Z[v]) || ((q = P[_].dir) == null ? void 0 : q[v]),
8917
8917
  spd: P[_].spd[v]
8918
8918
  });
8919
8919
  I.push(V);
8920
8920
  }
8921
8921
  }) : z.forEach((C, v) => {
8922
- var A, W, Z, q;
8922
+ var A, U, Z, q;
8923
8923
  if (o < 2) {
8924
8924
  if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
8925
- const V = U.point([C, _], {
8926
- dir: ((A = P[_].val) == null ? void 0 : A[v]) || ((W = P[_].dir) == null ? void 0 : W[v]),
8925
+ const V = H.point([C, _], {
8926
+ dir: ((A = P[_].val) == null ? void 0 : A[v]) || ((U = P[_].dir) == null ? void 0 : U[v]),
8927
8927
  spd: P[_].spd[v]
8928
8928
  });
8929
8929
  I.push(V);
8930
8930
  }
8931
8931
  } else if (C >= r && C <= s && (!(o <= this.zoom) || C % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8932
- const V = U.point([C, _], {
8932
+ const V = H.point([C, _], {
8933
8933
  dir: ((Z = P[_].val) == null ? void 0 : Z[v]) || ((q = P[_].dir) == null ? void 0 : q[v]),
8934
8934
  spd: P[_].spd[v]
8935
8935
  });
@@ -8950,7 +8950,7 @@ const wn = {
8950
8950
  const C = P.Polygon[z];
8951
8951
  for (const v of C)
8952
8952
  _.push(
8953
- U.polygon(v, {
8953
+ H.polygon(v, {
8954
8954
  val: Number(z)
8955
8955
  })
8956
8956
  );
@@ -8959,7 +8959,7 @@ const wn = {
8959
8959
  const C = P.MultiPolygon[z];
8960
8960
  for (const v of C)
8961
8961
  _.push(
8962
- U.multiPolygon(v, {
8962
+ H.multiPolygon(v, {
8963
8963
  val: Number(z)
8964
8964
  })
8965
8965
  );
@@ -8968,7 +8968,7 @@ const wn = {
8968
8968
  const C = P.Point[z];
8969
8969
  for (let v = 0; v < ((k = C.lng) == null ? void 0 : k.length); v++)
8970
8970
  _.push(
8971
- U.point([C.lng[v], z], {
8971
+ H.point([C.lng[v], z], {
8972
8972
  val: Number(C.val[v])
8973
8973
  })
8974
8974
  );
@@ -8989,7 +8989,7 @@ const wn = {
8989
8989
  const C = P.LineString[z];
8990
8990
  for (const v of C)
8991
8991
  _.push(
8992
- U.lineString(v, {
8992
+ H.lineString(v, {
8993
8993
  val: Number(z)
8994
8994
  })
8995
8995
  );
@@ -8997,7 +8997,7 @@ const wn = {
8997
8997
  for (const z in P.Point)
8998
8998
  P.Point[z].lng.forEach((C, v) => {
8999
8999
  C = X.convertToStdLng(C), _.push(
9000
- U.point([C, z], {
9000
+ H.point([C, z], {
9001
9001
  val: P.Point[z].val[v],
9002
9002
  type: P.Point[z].type[v]
9003
9003
  })
@@ -9008,7 +9008,7 @@ const wn = {
9008
9008
  }
9009
9009
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", a, ", total: ", e += a);
9010
9010
  }
9011
- I.length && (this.weatherLayers[T].data = U.featureCollection(I)), O && (this.weatherLayers[T].version = Math.random() + 1);
9011
+ I.length && (this.weatherLayers[T].data = H.featureCollection(I)), O && (this.weatherLayers[T].version = Math.random() + 1);
9012
9012
  }
9013
9013
  }
9014
9014
  },
@@ -9022,10 +9022,10 @@ const wn = {
9022
9022
  return t.features.forEach((r) => {
9023
9023
  if (r.geometry.type !== "Point")
9024
9024
  if (i > o) {
9025
- let s = [i, e._sw.lat, 180, e._ne.lat], c = U.bboxClip(r, s);
9026
- c.geometry.coordinates.length && a.push(c), s = [-180, e._sw.lat, o, e._ne.lat], c = U.bboxClip(r, s), c.geometry.coordinates.length && a.push(c);
9025
+ let s = [i, e._sw.lat, 180, e._ne.lat], c = H.bboxClip(r, s);
9026
+ c.geometry.coordinates.length && a.push(c), s = [-180, e._sw.lat, o, e._ne.lat], c = H.bboxClip(r, s), c.geometry.coordinates.length && a.push(c);
9027
9027
  } else {
9028
- const s = [i, e._sw.lat, o, e._ne.lat], c = U.bboxClip(r, s);
9028
+ const s = [i, e._sw.lat, o, e._ne.lat], c = H.bboxClip(r, s);
9029
9029
  c.geometry.coordinates.length && a.push(c);
9030
9030
  }
9031
9031
  else
@@ -9051,7 +9051,7 @@ const wn = {
9051
9051
  }, On = { class: "text-body-1 py-2" }, Bn = { class: "text-body-1 font-weight-medium" }, Nn = { class: "text-body-2 text-label" }, En = { class: "text-body-2 text-label mb-3" }, jn = { class: "text-body-1 font-weight-medium" }, Fn = { class: "text-body-2 text-label" }, Hn = { class: "text-body-2 text-label mb-3" }, Un = { class: "text-body-1 py-2" }, Wn = { class: "text-body-1 font-weight-medium" }, Gn = { class: "text-body-2 text-label" }, Vn = { class: "text-body-2 text-label mb-3" }, Zn = { class: "text-body-1 font-weight-medium" }, qn = { class: "text-body-2 text-label" }, Yn = { class: "text-body-2 text-label mb-3" }, Kn = { class: "text-body-1 py-2" }, Xn = { class: "text-body-1 font-weight-medium" }, $n = { class: "text-body-2 text-label" }, Jn = { class: "text-body-2 text-label mb-3" };
9052
9052
  function Qn(t, e, a, i, o, r) {
9053
9053
  var pe, ne, $, oe, ue, ce, F, me, xe, Le, Pe, Ae, De, Re, _e;
9054
- const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"), g = x("VRow"), p = x("VCardText"), f = x("VDivider"), w = x("VCard"), L = x("VSwitch"), y = x("VCardTitle"), k = x("VCardItem"), T = x("VCheckbox"), O = x("VRadio"), I = x("VBtnToggle"), P = x("IdmWindBarb"), _ = x("IdmSigWaveHeight"), z = x("IdmCurrentDirection"), C = x("IdmPrmsl"), v = x("IdmWindParticle"), A = x("IdmCurrentParticle"), W = x("IdmWave"), Z = x("IdmSwell"), q = x("IdmIceEdge"), V = x("IdmIceCover"), Q = x("IdmIceThickness"), ee = x("IdmPrecip3h"), J = x("IdmVisibility"), re = x("IdmWaterTemp"), he = x("IdmTemp");
9054
+ const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"), g = x("VRow"), p = x("VCardText"), f = x("VDivider"), w = x("VCard"), L = x("VSwitch"), y = x("VCardTitle"), k = x("VCardItem"), T = x("VCheckbox"), O = x("VRadio"), I = x("VBtnToggle"), P = x("IdmWindBarb"), _ = x("IdmSigWaveHeight"), z = x("IdmCurrentDirection"), C = x("IdmPrmsl"), v = x("IdmWindParticle"), A = x("IdmCurrentParticle"), U = x("IdmWave"), Z = x("IdmSwell"), q = x("IdmIceEdge"), V = x("IdmIceCover"), Q = x("IdmIceThickness"), ee = x("IdmPrecip3h"), J = x("IdmVisibility"), re = x("IdmWaterTemp"), he = x("IdmTemp");
9055
9055
  return b(), S("div", xn, [
9056
9056
  l("div", {
9057
9057
  class: "menu-bar-box transition pa-1",
@@ -9061,8 +9061,8 @@ function Qn(t, e, a, i, o, r) {
9061
9061
  text: t.$t("weather.weatherLayers"),
9062
9062
  location: "left"
9063
9063
  }, {
9064
- activator: u(({ props: H }) => [
9065
- h(s, B(H, {
9064
+ activator: u(({ props: W }) => [
9065
+ h(s, B(W, {
9066
9066
  "min-width": "32",
9067
9067
  width: "32",
9068
9068
  height: "32",
@@ -9088,8 +9088,8 @@ function Qn(t, e, a, i, o, r) {
9088
9088
  text: "Legend",
9089
9089
  location: "left"
9090
9090
  }, {
9091
- activator: u(({ props: H }) => [
9092
- h(s, B(H, {
9091
+ activator: u(({ props: W }) => [
9092
+ h(s, B(W, {
9093
9093
  "min-width": "32",
9094
9094
  width: "32",
9095
9095
  height: "32",
@@ -9119,8 +9119,8 @@ function Qn(t, e, a, i, o, r) {
9119
9119
  e[10] || (e[10] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wind Level", -1)),
9120
9120
  h(g, { class: "ma-0 ml-n1 text-body-2" }, {
9121
9121
  default: u(() => [
9122
- (b(!0), S(be, null, we(o.legend.barbs, (H, te) => (b(), R(n, {
9123
- key: H,
9122
+ (b(!0), S(be, null, we(o.legend.barbs, (W, te) => (b(), R(n, {
9123
+ key: W,
9124
9124
  cols: "6",
9125
9125
  class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
9126
9126
  }, {
@@ -9130,7 +9130,7 @@ function Qn(t, e, a, i, o, r) {
9130
9130
  class: Ge(["iconfont", r.barbsIconName[te]]),
9131
9131
  style: ie({ color: a.theme === "dark" ? "#fff" : "#000" })
9132
9132
  }, null, 6),
9133
- l("span", kn, m(Number(H) < 10 ? `00${H}kts` : Number(H) < 100 ? `0${H}kts` : `${H}kts`), 1)
9133
+ l("span", kn, m(Number(W) < 10 ? `00${W}kts` : Number(W) < 100 ? `0${W}kts` : `${W}kts`), 1)
9134
9134
  ])
9135
9135
  ]),
9136
9136
  _: 2
@@ -9151,7 +9151,7 @@ function Qn(t, e, a, i, o, r) {
9151
9151
  style: { width: "100px" }
9152
9152
  }, {
9153
9153
  default: u(() => [
9154
- (b(!0), S(be, null, we(o.legend.sigWaveHeight, (H, te) => (b(), R(n, {
9154
+ (b(!0), S(be, null, we(o.legend.sigWaveHeight, (W, te) => (b(), R(n, {
9155
9155
  key: te,
9156
9156
  cols: "12",
9157
9157
  class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
@@ -9160,9 +9160,9 @@ function Qn(t, e, a, i, o, r) {
9160
9160
  l("div", zn, [
9161
9161
  te === 0 ? (b(), S("div", Ln)) : (b(), S("div", {
9162
9162
  key: 1,
9163
- style: ie({ width: "24px", height: "12px", background: H.color })
9163
+ style: ie({ width: "24px", height: "12px", background: W.color })
9164
9164
  }, null, 4)),
9165
- l("div", Pn, m(H.label), 1)
9165
+ l("div", Pn, m(W.label), 1)
9166
9166
  ])
9167
9167
  ]),
9168
9168
  _: 2
@@ -9183,7 +9183,7 @@ function Qn(t, e, a, i, o, r) {
9183
9183
  style: { width: "110px" }
9184
9184
  }, {
9185
9185
  default: u(() => [
9186
- (b(!0), S(be, null, we(o.legend.current, (H, te) => (b(), R(n, {
9186
+ (b(!0), S(be, null, we(o.legend.current, (W, te) => (b(), R(n, {
9187
9187
  key: te,
9188
9188
  cols: "12",
9189
9189
  class: "d-flex flex-row justify-center align-center py-1 px-0 ma-0"
@@ -9193,10 +9193,10 @@ function Qn(t, e, a, i, o, r) {
9193
9193
  l("div", Tn, [
9194
9194
  l("i", {
9195
9195
  class: "iconfont icon-a-direction-arrow opacity-80",
9196
- style: ie({ fontSize: 40 * H.size + "px" })
9196
+ style: ie({ fontSize: 40 * W.size + "px" })
9197
9197
  }, null, 4)
9198
9198
  ]),
9199
- l("div", Sn, m(H.label), 1)
9199
+ l("div", Sn, m(W.label), 1)
9200
9200
  ])
9201
9201
  ]),
9202
9202
  _: 2
@@ -9221,7 +9221,7 @@ function Qn(t, e, a, i, o, r) {
9221
9221
  l("div", An, m(t.$t("weather.weather")), 1),
9222
9222
  h(L, {
9223
9223
  modelValue: o.autoActive,
9224
- "onUpdate:modelValue": e[1] || (e[1] = (H) => o.autoActive = H),
9224
+ "onUpdate:modelValue": e[1] || (e[1] = (W) => o.autoActive = W),
9225
9225
  class: "small-switch",
9226
9226
  color: "primary",
9227
9227
  inset: "",
@@ -9266,12 +9266,12 @@ function Qn(t, e, a, i, o, r) {
9266
9266
  }),
9267
9267
  h(p, { class: "py-2" }, {
9268
9268
  default: u(() => [
9269
- (b(!0), S(be, null, we(o.tagLayers.filter((H) => H.overlays), (H) => (b(), R(T, {
9270
- key: H.key,
9269
+ (b(!0), S(be, null, we(o.tagLayers.filter((W) => W.overlays), (W) => (b(), R(T, {
9270
+ key: W.key,
9271
9271
  modelValue: o.checkList,
9272
9272
  "onUpdate:modelValue": e[2] || (e[2] = (te) => o.checkList = te),
9273
- value: H.key,
9274
- label: t.$t(`weather.${H.locale}`),
9273
+ value: W.key,
9274
+ label: t.$t(`weather.${W.locale}`),
9275
9275
  disabled: !o.autoActive,
9276
9276
  color: "primary",
9277
9277
  density: "compact",
@@ -9306,23 +9306,23 @@ function Qn(t, e, a, i, o, r) {
9306
9306
  }),
9307
9307
  h(p, { class: "py-2" }, {
9308
9308
  default: u(() => [
9309
- (b(!0), S(be, null, we(o.tagLayers.filter((H) => !H.overlays && H.key !== "ice-thickness" && H.key !== "swell"), (H) => (b(), S(be, {
9310
- key: H.key
9309
+ (b(!0), S(be, null, we(o.tagLayers.filter((W) => !W.overlays), (W) => (b(), S(be, {
9310
+ key: W.key
9311
9311
  }, [
9312
9312
  h(O, {
9313
9313
  modelValue: o.renderKey,
9314
9314
  "onUpdate:modelValue": e[3] || (e[3] = (te) => o.renderKey = te),
9315
- label: t.$t(`weather.${H.locale}`),
9316
- value: H.key,
9315
+ label: t.$t(`weather.${W.locale}`),
9316
+ value: W.key,
9317
9317
  disabled: !o.autoActive,
9318
9318
  color: "primary",
9319
9319
  density: "compact",
9320
9320
  style: { height: "36px" },
9321
9321
  class: "text-body-2 py-1",
9322
9322
  "hide-details": "",
9323
- onClick: (te) => o.renderKey = o.renderKey === H.key ? "" : H.key
9323
+ onClick: (te) => o.renderKey = o.renderKey === W.key ? "" : W.key
9324
9324
  }, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
9325
- o.renderKey === "wind-particle" && H.key === "wind-particle" ? (b(), S("div", Dn, [
9325
+ o.renderKey === "wind-particle" && W.key === "wind-particle" ? (b(), S("div", Dn, [
9326
9326
  l("span", null, m(t.$t("weather.particleAnimatiom")), 1),
9327
9327
  h(L, {
9328
9328
  modelValue: o.showWindParticle,
@@ -9336,7 +9336,7 @@ function Qn(t, e, a, i, o, r) {
9336
9336
  "hide-details": ""
9337
9337
  }, null, 8, ["modelValue"])
9338
9338
  ])) : M("", !0),
9339
- o.renderKey === "current-particle" && H.key === "current-particle" ? (b(), S("div", Rn, [
9339
+ o.renderKey === "current-particle" && W.key === "current-particle" ? (b(), S("div", Rn, [
9340
9340
  l("span", null, m(t.$t("weather.particleAnimatiom")), 1),
9341
9341
  h(L, {
9342
9342
  modelValue: o.showCurrentParticle,
@@ -9350,7 +9350,7 @@ function Qn(t, e, a, i, o, r) {
9350
9350
  "hide-details": ""
9351
9351
  }, null, 8, ["modelValue"])
9352
9352
  ])) : M("", !0),
9353
- o.renderKey === "wave-group" && H.key === "wave-group" ? (b(), R(I, {
9353
+ o.renderKey === "wave-group" && W.key === "wave-group" ? (b(), R(I, {
9354
9354
  key: 2,
9355
9355
  modelValue: o.waveToggleValue,
9356
9356
  "onUpdate:modelValue": e[6] || (e[6] = (te) => o.waveToggleValue = te),
@@ -9393,7 +9393,7 @@ function Qn(t, e, a, i, o, r) {
9393
9393
  ]),
9394
9394
  _: 1
9395
9395
  }, 8, ["modelValue", "disabled"])) : M("", !0),
9396
- o.renderKey === "ice-forecast" && H.key === "ice-forecast" ? (b(), R(I, {
9396
+ o.renderKey === "ice-forecast" && W.key === "ice-forecast" ? (b(), R(I, {
9397
9397
  key: 3,
9398
9398
  modelValue: o.iceToggleValue,
9399
9399
  "onUpdate:modelValue": e[7] || (e[7] = (te) => o.iceToggleValue = te),
@@ -9464,10 +9464,10 @@ function Qn(t, e, a, i, o, r) {
9464
9464
  }),
9465
9465
  h(p, { class: "" }, {
9466
9466
  default: u(() => {
9467
- var H, te, Fe, Ie, ge, fe, G, Ce, ae, le, Oe, E, ye, Me, Be, Ne, N, Y, Ve, Ze, qe, Te, Ye, Ke, Xe, $e, Je, Qe, et, tt, at, ot, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, It, Mt, At, Dt, Rt, Ot, Bt, Nt, Et, jt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, qt, Yt, Kt, Xt, Jt, Qt, ea;
9467
+ var W, te, Fe, Ie, ge, fe, G, Ce, ae, le, Oe, E, ye, Me, Be, Ne, N, Y, Ve, Ze, qe, Te, Ye, Ke, Xe, $e, Je, Qe, et, tt, at, ot, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, It, Mt, At, Dt, Rt, Ot, Bt, Nt, Et, jt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, qt, Yt, Kt, Xt, Jt, Qt, ea;
9468
9468
  return [
9469
9469
  l("div", On, m(t.$t("weather.atmospheric")), 1),
9470
- l("div", Bn, m((Fe = (te = (H = o.models) == null ? void 0 : H.weather) == null ? void 0 : te.NOAA) == null ? void 0 : Fe.source) + " " + m((fe = (ge = (Ie = o.models) == null ? void 0 : Ie.weather) == null ? void 0 : ge.NOAA) == null ? void 0 : fe.spatialResolution) + m(t.$t("units.km")) + " " + m((le = (ae = (Ce = (G = o.models) == null ? void 0 : G.weather) == null ? void 0 : Ce.NOAA) == null ? void 0 : ae.meta) == null ? void 0 : le.days) + m(t.$t("units.days")), 1),
9470
+ l("div", Bn, m((Fe = (te = (W = o.models) == null ? void 0 : W.weather) == null ? void 0 : te.NOAA) == null ? void 0 : Fe.source) + " " + m((fe = (ge = (Ie = o.models) == null ? void 0 : Ie.weather) == null ? void 0 : ge.NOAA) == null ? void 0 : fe.spatialResolution) + m(t.$t("units.km")) + " " + m((le = (ae = (Ce = (G = o.models) == null ? void 0 : G.weather) == null ? void 0 : Ce.NOAA) == null ? void 0 : ae.meta) == null ? void 0 : le.days) + m(t.$t("units.days")), 1),
9471
9471
  l("div", Nn, m(t.$t("weather.source")) + ": NOAA", 1),
9472
9472
  l("div", En, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateZ((Me = (ye = (E = (Oe = o.models) == null ? void 0 : Oe.weather) == null ? void 0 : E.NOAA) == null ? void 0 : ye.meta) == null ? void 0 : Me.initialisationTime)), 1),
9473
9473
  l("div", jn, m((N = (Ne = (Be = o.models) == null ? void 0 : Be.weather) == null ? void 0 : Ne.ECMWF) == null ? void 0 : N.source) + " " + m((Ze = (Ve = (Y = o.models) == null ? void 0 : Y.weather) == null ? void 0 : Ve.ECMWF) == null ? void 0 : Ze.spatialResolution) + m(t.$t("units.km")) + " " + m((Ke = (Ye = (Te = (qe = o.models) == null ? void 0 : qe.weather) == null ? void 0 : Te.ECMWF) == null ? void 0 : Ye.meta) == null ? void 0 : Ke.days) + m(t.$t("units.days")), 1),
@@ -9540,7 +9540,7 @@ function Qn(t, e, a, i, o, r) {
9540
9540
  factor: (ce = o.weatherLayers) == null ? void 0 : ce["current-particle"],
9541
9541
  "menu-toggle": a.menuToggle
9542
9542
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : M("", !0),
9543
- a.map ? (b(), R(W, B({
9543
+ a.map ? (b(), R(U, B({
9544
9544
  key: 7,
9545
9545
  viewport: o.viewport,
9546
9546
  factor: (F = o.weatherLayers) == null ? void 0 : F["sig-wave"],
@@ -9549,10 +9549,11 @@ function Qn(t, e, a, i, o, r) {
9549
9549
  a.map ? (b(), R(Z, B({
9550
9550
  key: 8,
9551
9551
  map: a.map,
9552
+ viewport: o.viewport,
9552
9553
  factor: (me = o.weatherLayers) == null ? void 0 : me.swell,
9553
9554
  "menu-toggle": a.menuToggle,
9554
9555
  "active-weather-layers": o.activeWeatherLayers
9555
- }, t.$attrs), null, 16, ["map", "factor", "menu-toggle", "active-weather-layers"])) : M("", !0),
9556
+ }, t.$attrs), null, 16, ["map", "viewport", "factor", "menu-toggle", "active-weather-layers"])) : M("", !0),
9556
9557
  a.map ? (b(), R(q, B({
9557
9558
  key: 9,
9558
9559
  viewport: o.viewport,
@@ -9944,7 +9945,7 @@ class Zo {
9944
9945
  }), o;
9945
9946
  }
9946
9947
  static pickHourly(e, a) {
9947
- var i, o, r, s, c, n, g, p, f, w, L, y, k, T, O, I, P, _, z, C, v, A, W, Z, q, V, Q, ee, J, re, he, pe, ne, $, oe, ue, ce, F, me, xe, Le, Pe, Ae, De, Re, _e, H, te, Fe, Ie;
9948
+ var i, o, r, s, c, n, g, p, f, w, L, y, k, T, O, I, P, _, z, C, v, A, U, Z, q, V, Q, ee, J, re, he, pe, ne, $, oe, ue, ce, F, me, xe, Le, Pe, Ae, De, Re, _e, W, te, Fe, Ie;
9948
9949
  const ge = typeof a == "string" ? D(a) : a, fe = e == null ? void 0 : e.weather, G = e == null ? void 0 : e.marine, Ce = D((o = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : o.date).utc(), ae = Ce.clone().add((c = (s = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), le = Ce.clone().add((p = (g = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : g.time) == null ? void 0 : p.at(-1), "h"), Oe = [];
9949
9950
  if (ge.isBetween(ae, le, "millisecond", "[]")) {
9950
9951
  const E = ge.utc().diff(ae, "h", !1);
@@ -9975,7 +9976,7 @@ class Zo {
9975
9976
  wind: {
9976
9977
  speed: (v = Y == null ? void 0 : Y.wind_speed_10m) == null ? void 0 : v.at(E),
9977
9978
  kts: (A = Y == null ? void 0 : Y.wind_speed_10m) == null ? void 0 : A.at(E),
9978
- degree: (W = Y == null ? void 0 : Y.wind_direction_10m) == null ? void 0 : W.at(E),
9979
+ degree: (U = Y == null ? void 0 : Y.wind_direction_10m) == null ? void 0 : U.at(E),
9979
9980
  bearing: ((Z = Y == null ? void 0 : Y.wind_direction_10m) == null ? void 0 : Z.at(E)) !== null ? (((q = Y == null ? void 0 : Y.wind_direction_10m) == null ? void 0 : q.at(E)) + 180) % 360 : null,
9980
9981
  gusts: (V = Y == null ? void 0 : Y.wind_gusts_10m) == null ? void 0 : V.at(E)
9981
9982
  },
@@ -10019,7 +10020,7 @@ class Zo {
10019
10020
  current: {
10020
10021
  speed: (Re = N == null ? void 0 : N.ocean_current_velocity) == null ? void 0 : Re.at(E),
10021
10022
  kts: (_e = N == null ? void 0 : N.ocean_current_velocity) == null ? void 0 : _e.at(E),
10022
- degree: (H = N == null ? void 0 : N.ocean_current_direction) == null ? void 0 : H.at(E),
10023
+ degree: (W = N == null ? void 0 : N.ocean_current_direction) == null ? void 0 : W.at(E),
10023
10024
  bearing: ((te = N == null ? void 0 : N.ocean_current_direction) == null ? void 0 : te.at(E)) ?? null
10024
10025
  },
10025
10026
  sst: (Fe = N == null ? void 0 : N.sea_surface_temperature) == null ? void 0 : Fe.at(E),
@@ -10053,8 +10054,8 @@ class Zo {
10053
10054
  };
10054
10055
  }
10055
10056
  static pickDaily(e, a) {
10056
- var i, o, r, s, c, n, g, p, f, w, L, y, k, T, O, I, P, _, z, C, v, A, W, Z, q, V, Q, ee, J, re, he, pe, ne, $, oe, ue, ce, F, me, xe, Le, Pe, Ae, De;
10057
- const Re = typeof a == "string" ? D(a) : a, _e = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, te = D((r = (o = (i = _e == null ? void 0 : _e[0]) == null ? void 0 : i.daily) == null ? void 0 : o.time) == null ? void 0 : r.at(0)), Fe = D((n = (c = (s = _e == null ? void 0 : _e[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Ie = [];
10057
+ var i, o, r, s, c, n, g, p, f, w, L, y, k, T, O, I, P, _, z, C, v, A, U, Z, q, V, Q, ee, J, re, he, pe, ne, $, oe, ue, ce, F, me, xe, Le, Pe, Ae, De;
10058
+ const Re = typeof a == "string" ? D(a) : a, _e = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, te = D((r = (o = (i = _e == null ? void 0 : _e[0]) == null ? void 0 : i.daily) == null ? void 0 : o.time) == null ? void 0 : r.at(0)), Fe = D((n = (c = (s = _e == null ? void 0 : _e[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Ie = [];
10058
10059
  if (Re.isBetween(te, Fe, "millisecond", "[]")) {
10059
10060
  let ge, fe;
10060
10061
  const G = Re.diff(te, "d", !1);
@@ -10087,7 +10088,7 @@ class Zo {
10087
10088
  },
10088
10089
  wind: {
10089
10090
  speed: (A = ae.wind_speed_10m_max) == null ? void 0 : A.at(G),
10090
- kts: (W = ae.wind_speed_10m_max) == null ? void 0 : W.at(G),
10091
+ kts: (U = ae.wind_speed_10m_max) == null ? void 0 : U.at(G),
10091
10092
  degree: (Z = ae.wind_direction_10m_dominant) == null ? void 0 : Z.at(G),
10092
10093
  gusts: (q = ae.wind_gusts_10m_max) == null ? void 0 : q.at(G),
10093
10094
  bearing: ((V = ae.wind_direction_10m_dominant) == null ? void 0 : V.at(G)) !== null ? (((Q = ae.wind_direction_10m_dominant) == null ? void 0 : Q.at(G)) + 180) % 360 : null
@@ -10100,9 +10101,9 @@ class Zo {
10100
10101
  weather: { ...ge }
10101
10102
  });
10102
10103
  }
10103
- if (H) {
10104
+ if (W) {
10104
10105
  let Ce = 0;
10105
- for (const ae of H) {
10106
+ for (const ae of W) {
10106
10107
  const le = ae.daily;
10107
10108
  fe = {
10108
10109
  wave: {
@@ -10602,9 +10603,9 @@ const tc = {
10602
10603
  showTropicalsInfo: !1,
10603
10604
  activeTropicals: void 0,
10604
10605
  activeTropicalsMarker: void 0,
10605
- empty: U.featureCollection([]),
10606
+ empty: H.featureCollection([]),
10606
10607
  circleSource: "circle-source",
10607
- circleSourceData: U.featureCollection([]),
10608
+ circleSourceData: H.featureCollection([]),
10608
10609
  circleLayer: "tropical-circle-layer",
10609
10610
  showLegend: !1,
10610
10611
  showHoverPoint: !1,
@@ -11017,9 +11018,9 @@ const tc = {
11017
11018
  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((o) => o == null ? void 0 : o.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)), (e = this.map) == null || e.off("click", this.clickLayers, this.handleClick), (a = this.map) == null || a.off("mousemove", this.hoverLayers, this.handleHover), (i = this.map) == null || i.off("mouseleave", this.hoverLayers, this.handleLeave), this.handleCloseInfoMarker();
11018
11019
  },
11019
11020
  handleDateChange() {
11020
- var t, e, a, i, o, r, s, c, n, g, p, f, w, L, y, k, T, O, I, P, _, z, C, v, A, W, Z, q, V, Q, ee, J;
11021
+ var t, e, a, i, o, r, s, c, n, g, p, f, w, L, y, k, T, O, I, P, _, z, C, v, A, U, Z, q, V, Q, ee, J;
11021
11022
  if ((t = this.interpolateMarkers) == null || t.forEach((re) => re == null ? void 0 : re.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
11022
- const re = D(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), he = this.interpolateData.filter(($) => $.properties.date === (re == null ? void 0 : re.format()) && !$.properties.disabled), pe = this.handleComputePolygons(he), ne = U.featureCollection([...he]);
11023
+ const re = D(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), he = this.interpolateData.filter(($) => $.properties.date === (re == null ? void 0 : re.format()) && !$.properties.disabled), pe = this.handleComputePolygons(he), ne = H.featureCollection([...he]);
11023
11024
  pe.forEach(($) => {
11024
11025
  ne.features.push($);
11025
11026
  }), (a = this.map) != null && a.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(ne) : ((o = this.map) == null || o.addSource(this.interpolateSource, {
@@ -11039,7 +11040,7 @@ const tc = {
11039
11040
  for (const $ of he)
11040
11041
  if (!$.properties.disabled) {
11041
11042
  let oe = "#f44336";
11042
- ((c = (s = $.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = $.properties) == null ? void 0 : n.wind) != null && g.kts) ? oe = "#03f869" : ((f = (p = $.properties) == null ? void 0 : p.wind) == null ? void 0 : f.kts) >= 32 && ((L = (w = $.properties) == null ? void 0 : w.wind) == null ? void 0 : L.kts) < 47 ? oe = "#f2f202" : ((k = (y = $.properties) == null ? void 0 : y.wind) == null ? void 0 : k.kts) >= 47 && ((O = (T = $.properties) == null ? void 0 : T.wind) == null ? void 0 : O.kts) < 63 ? oe = "#ff9100" : ((P = (I = $.properties) == null ? void 0 : I.wind) == null ? void 0 : P.kts) >= 63 && ((z = (_ = $.properties) == null ? void 0 : _.wind) == null ? void 0 : z.kts) < 79 ? oe = "#f44336" : ((v = (C = $.properties) == null ? void 0 : C.wind) == null ? void 0 : v.kts) >= 79 && ((W = (A = $.properties) == null ? void 0 : A.wind) == null ? void 0 : W.kts) < 94 ? oe = "#f903d0" : ((q = (Z = $.properties) == null ? void 0 : Z.wind) == null ? void 0 : q.kts) >= 94 ? oe = "#8702f9" : oe = "#f44336";
11043
+ ((c = (s = $.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = $.properties) == null ? void 0 : n.wind) != null && g.kts) ? oe = "#03f869" : ((f = (p = $.properties) == null ? void 0 : p.wind) == null ? void 0 : f.kts) >= 32 && ((L = (w = $.properties) == null ? void 0 : w.wind) == null ? void 0 : L.kts) < 47 ? oe = "#f2f202" : ((k = (y = $.properties) == null ? void 0 : y.wind) == null ? void 0 : k.kts) >= 47 && ((O = (T = $.properties) == null ? void 0 : T.wind) == null ? void 0 : O.kts) < 63 ? oe = "#ff9100" : ((P = (I = $.properties) == null ? void 0 : I.wind) == null ? void 0 : P.kts) >= 63 && ((z = (_ = $.properties) == null ? void 0 : _.wind) == null ? void 0 : z.kts) < 79 ? oe = "#f44336" : ((v = (C = $.properties) == null ? void 0 : C.wind) == null ? void 0 : v.kts) >= 79 && ((U = (A = $.properties) == null ? void 0 : A.wind) == null ? void 0 : U.kts) < 94 ? oe = "#f903d0" : ((q = (Z = $.properties) == null ? void 0 : Z.wind) == null ? void 0 : q.kts) >= 94 ? oe = "#8702f9" : oe = "#f44336";
11043
11044
  const ue = `<svg t="1719918955501"
11044
11045
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
11045
11046
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -11099,7 +11100,7 @@ const tc = {
11099
11100
  g.properties.category === e && (g.properties.disabled = t.disabled);
11100
11101
  }), this.interpolateData.forEach((g) => {
11101
11102
  g.properties.category === e && (g.properties.disabled = t.disabled);
11102
- }), (s = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || s.setData(U.featureCollection(a)), (n = (c = this.map) == null ? void 0 : c.getSource(this.clusterSource)) == null || n.setData(U.featureCollection(a)), this.handleDateChange();
11103
+ }), (s = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || s.setData(H.featureCollection(a)), (n = (c = this.map) == null ? void 0 : c.getSource(this.clusterSource)) == null || n.setData(H.featureCollection(a)), this.handleDateChange();
11103
11104
  },
11104
11105
  handleStrikeProbability(t) {
11105
11106
  this.$emit("tropicalProbability", t);
@@ -11158,22 +11159,22 @@ const tc = {
11158
11159
  let n;
11159
11160
  switch (s) {
11160
11161
  case "ne":
11161
- n = U.lineArc(t, c, 0, 90, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
11162
+ n = H.lineArc(t, c, 0, 90, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
11162
11163
  break;
11163
11164
  case "se":
11164
- n = U.lineArc(t, c, 90, 180, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
11165
+ n = H.lineArc(t, c, 90, 180, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
11165
11166
  break;
11166
11167
  case "sw":
11167
- n = U.lineArc(t, c, 180, 270, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
11168
+ n = H.lineArc(t, c, 180, 270, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
11168
11169
  break;
11169
11170
  case "nw":
11170
- n = U.lineArc(t, c, 270, 360, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
11171
+ n = H.lineArc(t, c, 270, 360, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
11171
11172
  break;
11172
11173
  }
11173
11174
  i.push(...(r = n == null ? void 0 : n.geometry) == null ? void 0 : r.coordinates);
11174
11175
  }
11175
- const o = U.lineString(i);
11176
- return U.lineToPolygon(o, { properties: a });
11176
+ const o = H.lineString(i);
11177
+ return H.lineToPolygon(o, { properties: a });
11177
11178
  },
11178
11179
  handleNotification(t) {
11179
11180
  this.$emit("tropicalNotification", t);
@@ -11338,7 +11339,7 @@ function Yc(t, e, a, i, o, r) {
11338
11339
  color: v.disabled ? "" : "primary",
11339
11340
  "min-width": 30,
11340
11341
  class: Ge(["model text-none text-body-1 px-1", v.disabled ? "" : "btn-border-2"]),
11341
- onClick: Ee((W) => r.handleForecastToggle(v), ["stop"])
11342
+ onClick: Ee((U) => r.handleForecastToggle(v), ["stop"])
11342
11343
  }, {
11343
11344
  default: u(() => [
11344
11345
  j(m(v.model), 1)
@@ -11486,7 +11487,7 @@ function Yc(t, e, a, i, o, r) {
11486
11487
  h(L),
11487
11488
  h(n, { class: "text-body-1" }, {
11488
11489
  default: u(() => {
11489
- var y, k, T, O, I, P, _, z, C, v, A, W, Z, q, V, Q, ee;
11490
+ var y, k, T, O, I, P, _, z, C, v, A, U, Z, q, V, Q, ee;
11490
11491
  return [
11491
11492
  l("div", Sc, [
11492
11493
  l("div", Ic, [
@@ -11513,7 +11514,7 @@ function Yc(t, e, a, i, o, r) {
11513
11514
  l("label", Hc, m(t.$t("weather.pressure")) + " : ", 1),
11514
11515
  l("span", null, m(((A = o.hoverPoint) == null ? void 0 : A.pressure) ?? "-") + " kPa", 1)
11515
11516
  ]),
11516
- ((W = o.hoverPoint) == null ? void 0 : W.type) === "history" ? (b(), S("div", Uc, [
11517
+ ((U = o.hoverPoint) == null ? void 0 : U.type) === "history" ? (b(), S("div", Uc, [
11517
11518
  l("label", Wc, m(t.$t("tropical.moveSpeed")) + " : ", 1),
11518
11519
  l("span", null, m(((q = JSON.parse((Z = o.hoverPoint) == null ? void 0 : Z.movement)) == null ? void 0 : q.kts) ?? "-") + " kts", 1)
11519
11520
  ])) : M("", !0),
@@ -12036,10 +12037,10 @@ const tm = {
12036
12037
  (o == null ? void 0 : o.data.code) === 0 && (this.meteoData = o == null ? void 0 : o.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData), this.handleDrawInfoMarker([t.lng, t.lat])), this.loading = !1;
12037
12038
  },
12038
12039
  initTableData(t) {
12039
- var a, i, o, r, s, c, n, g, p, f, w, L, y, k, T, O, I, P, _, z, C, v, A, W, Z, q, V, Q, ee, J, re, he, pe, ne, $, oe, ue, ce, F, me, xe;
12040
+ var a, i, o, r, s, c, n, g, p, f, w, L, y, k, T, O, I, P, _, z, C, v, A, U, Z, q, V, Q, ee, J, re, he, pe, ne, $, oe, ue, ce, F, me, xe;
12040
12041
  this.currentHourData = {}, this.positionGmt = (i = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : r.offset;
12041
12042
  const e = ((s = oa.pickHourly(t, D(this.form.dateTime))) == null ? void 0 : s[0]) || {};
12042
- this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((f = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : f.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((y = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : y.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (O = e == null ? void 0 : e.weather) == null ? void 0 : O.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((_ = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : _.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((C = (z = e == null ? void 0 : e.wave) == null ? void 0 : z.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (A = (v = e == null ? void 0 : e.wave) == null ? void 0 : v.sig) == null ? void 0 : A.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((Z = (W = e == null ? void 0 : e.wave) == null ? void 0 : W.sig) == null ? void 0 : Z.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((V = (q = e == null ? void 0 : e.wave) == null ? void 0 : q.wd) == null ? void 0 : V.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((re = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : re.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((pe = (he = e == null ? void 0 : e.wave) == null ? void 0 : he.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = ($ = (ne = e == null ? void 0 : e.wave) == null ? void 0 : ne.swell) == null ? void 0 : $.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((ue = (oe = e == null ? void 0 : e.wave) == null ? void 0 : oe.swell) == null ? void 0 : ue.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ce = e == null ? void 0 : e.current) == null ? void 0 : ce.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((me = e == null ? void 0 : e.current) == null ? void 0 : me.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (xe = e == null ? void 0 : e.weather) == null ? void 0 : xe.url;
12043
+ this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((f = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : f.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((y = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : y.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (O = e == null ? void 0 : e.weather) == null ? void 0 : O.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((_ = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : _.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((C = (z = e == null ? void 0 : e.wave) == null ? void 0 : z.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (A = (v = e == null ? void 0 : e.wave) == null ? void 0 : v.sig) == null ? void 0 : A.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((Z = (U = e == null ? void 0 : e.wave) == null ? void 0 : U.sig) == null ? void 0 : Z.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((V = (q = e == null ? void 0 : e.wave) == null ? void 0 : q.wd) == null ? void 0 : V.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((re = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : re.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((pe = (he = e == null ? void 0 : e.wave) == null ? void 0 : he.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = ($ = (ne = e == null ? void 0 : e.wave) == null ? void 0 : ne.swell) == null ? void 0 : $.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((ue = (oe = e == null ? void 0 : e.wave) == null ? void 0 : oe.swell) == null ? void 0 : ue.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ce = e == null ? void 0 : e.current) == null ? void 0 : ce.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((me = e == null ? void 0 : e.current) == null ? void 0 : me.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (xe = e == null ? void 0 : e.weather) == null ? void 0 : xe.url;
12043
12044
  },
12044
12045
  handleBind() {
12045
12046
  var t, e;
@@ -12795,7 +12796,7 @@ const zm = {
12795
12796
  else {
12796
12797
  (t = this.map) == null || t.getCanvas().removeEventListener("keydown", this.handleKeydown), (e = this.map) == null || e.off("mousemove", this.handleMove), (a = this.map) == null || a.off("dblclick", this.handleDblClick), this.map;
12797
12798
  let i = this.geojson.find((o) => !o.closed);
12798
- i && this.handleClear(i, !0), this.geojson = this.geojson.filter((o) => !!o.closed), i = U.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(i);
12799
+ i && this.handleClear(i, !0), this.geojson = this.geojson.filter((o) => !!o.closed), i = H.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(i);
12799
12800
  }
12800
12801
  },
12801
12802
  immediate: !0
@@ -12890,8 +12891,8 @@ const zm = {
12890
12891
  g.features = g.features.filter((p) => p.geometry.type === "Point" && p.properties.id !== n[1]), this.handlePointUpdate(g);
12891
12892
  } else if (e !== "marker-label" && this.toggle) {
12892
12893
  let n = this.geojson.at(-1);
12893
- n || (n = U.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(n)), n.features = n.features.filter((p) => p.geometry.type === "Point");
12894
- const g = U.feature(
12894
+ n || (n = H.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(n)), n.features = n.features.filter((p) => p.geometry.type === "Point");
12895
+ const g = H.feature(
12895
12896
  {
12896
12897
  type: "Point",
12897
12898
  coordinates: [t.lngLat.lng, t.lngLat.lat]
@@ -12915,7 +12916,7 @@ const zm = {
12915
12916
  a = X.roundPrecision(a + p, 4);
12916
12917
  let w;
12917
12918
  c.mode === "RL" ? w = X.convertToMonotonicLng([n, g]) : w = X.convertToMonotonicLng(He.interpolateCoordinates(n, g, 200));
12918
- const L = U.lineString(w.map((k) => [k.lng, k.lat]));
12919
+ const L = H.lineString(w.map((k) => [k.lng, k.lat]));
12919
12920
  L.properties.dist = p, L.properties.bearing = f, L.properties.total = a, L.properties.name = "Line " + this.currentLineIndex, i.push(L);
12920
12921
  const y = e[o];
12921
12922
  y.properties.totalDist = X.roundPrecision((c.totalDist ? c.totalDist : 0) + p, 4), y.properties.sumLabel = y.properties.totalDist + " nm";
@@ -12925,14 +12926,14 @@ const zm = {
12925
12926
  return this.handleRender(t), t;
12926
12927
  },
12927
12928
  handleTmpPointUpdate(t, e, a, i) {
12928
- const o = U.featureCollection([]);
12929
+ const o = H.featureCollection([]);
12929
12930
  let r, s;
12930
12931
  if (e) {
12931
12932
  const n = e.properties, g = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, p = { lng: a.lng, lat: a.lat };
12932
12933
  r = He.calculateDistance(g, p, n.mode === "RL", 4), s = He.calculateBearing(g, p, n.mode === "RL", 2);
12933
12934
  let f;
12934
12935
  n.mode === "RL" ? f = X.convertToMonotonicLng([g, p]) : f = X.convertToMonotonicLng(He.interpolateCoordinates(g, p, 200));
12935
- const w = U.lineString(f.map((L) => [L.lng, L.lat]));
12936
+ const w = H.lineString(f.map((L) => [L.lng, L.lat]));
12936
12937
  w.properties.dist = r, w.properties.bearing = s, o.features.push(w);
12937
12938
  }
12938
12939
  if (i) {
@@ -12940,7 +12941,7 @@ const zm = {
12940
12941
  r = He.calculateDistance(g, p, n.mode === "RL", 4), s = He.calculateBearing(g, p, n.mode === "RL", 2);
12941
12942
  let f;
12942
12943
  n.mode === "RL" ? f = X.convertToMonotonicLng([g, p]) : f = X.convertToMonotonicLng(He.interpolateCoordinates(g, p, 200));
12943
- const w = U.lineString(f.map((L) => [L.lng, L.lat]));
12944
+ const w = H.lineString(f.map((L) => [L.lng, L.lat]));
12944
12945
  w.properties.dist = r, w.properties.bearing = s, o.features.push(w);
12945
12946
  }
12946
12947
  this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(o) : this.map.addSource(this.tmpSource, {
@@ -13002,14 +13003,14 @@ const zm = {
13002
13003
  handleMove(t) {
13003
13004
  this.map.getCanvas().style.cursor = "crosshair";
13004
13005
  let e = this.geojson.at(-1);
13005
- e || (e = U.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
13006
+ e || (e = H.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
13006
13007
  const a = e.features.filter((i) => i.geometry.type === "Point");
13007
13008
  a != null && a.length && this.handleTmpPointUpdate(e, a.at(-1), { lng: t.lngLat.lng, lat: t.lngLat.lat });
13008
13009
  },
13009
13010
  handleDblClick(t) {
13010
13011
  t.preventDefault();
13011
13012
  let e = this.geojson.at(-1);
13012
- e.closed = !0, this.handleRender(e), e = U.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e), this.currentLineIndex++;
13013
+ e.closed = !0, this.handleRender(e), e = H.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e), this.currentLineIndex++;
13013
13014
  },
13014
13015
  handleRender(t) {
13015
13016
  var e;
@@ -13689,7 +13690,7 @@ class Gm {
13689
13690
  de(this, "hi");
13690
13691
  de(this, "td");
13691
13692
  de(this, "windy");
13692
- var a, i, o, r, s, c, n, g, p, f, w, L, y, k, T, O, I, P, _, z, C, v, A, W, Z, q, V, Q, ee, J, re, he, pe, ne, $, oe, ue, ce, F, me, xe, Le, Pe, Ae, De, Re, _e, H, te, Fe, Ie, ge, fe, G, Ce, ae, le, Oe, E, ye, Me, Be, Ne, N, Y, Ve, Ze, qe, Te, Ye, Ke, Xe, $e, Je, Qe, et, tt, at, ot, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, It, Mt, At, Dt, Rt, Ot, Bt, Nt, Et, jt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, qt, Yt, Kt, Xt, Jt, Qt, ea, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ia, Ma, Aa, Da, Ra, Oa, Ba, Na, Ea, ja, Fa, Ha, Ua, Wa, Ga, Va, Za, qa, Ya, Ka, Xa, $a, Ja, Qa, eo, to, ao, oo, io, ro, lo, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Io, Mo, Ao, Do, Ro, Oo, Bo, No, Eo, jo, Fo, Ho, Uo, Wo, Go;
13693
+ var a, i, o, r, s, c, n, g, p, f, w, L, y, k, T, O, I, P, _, z, C, v, A, U, Z, q, V, Q, ee, J, re, he, pe, ne, $, oe, ue, ce, F, me, xe, Le, Pe, Ae, De, Re, _e, W, te, Fe, Ie, ge, fe, G, Ce, ae, le, Oe, E, ye, Me, Be, Ne, N, Y, Ve, Ze, qe, Te, Ye, Ke, Xe, $e, Je, Qe, et, tt, at, ot, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, It, Mt, At, Dt, Rt, Ot, Bt, Nt, Et, jt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, qt, Yt, Kt, Xt, Jt, Qt, ea, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ia, Ma, Aa, Da, Ra, Oa, Ba, Na, Ea, ja, Fa, Ha, Ua, Wa, Ga, Va, Za, qa, Ya, Ka, Xa, $a, Ja, Qa, eo, to, ao, oo, io, ro, lo, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Io, Mo, Ao, Do, Ro, Oo, Bo, No, Eo, jo, Fo, Ho, Uo, Wo, Go;
13693
13694
  this.i4 = {
13694
13695
  source: {
13695
13696
  type: "raster",
@@ -32292,7 +32293,7 @@ class Gm {
32292
32293
  (P = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : P.find((d) => d.id === "country-boundaries"),
32293
32294
  (z = (_ = this.originStyle) == null ? void 0 : _.light.layers) == null ? void 0 : z.find((d) => d.id === "water-outline"),
32294
32295
  (v = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : v.find((d) => d.id === "water-outline2"),
32295
- (W = (A = this.originStyle) == null ? void 0 : A.light.layers) == null ? void 0 : W.find((d) => d.id === "empty-layer-2"),
32296
+ (U = (A = this.originStyle) == null ? void 0 : A.light.layers) == null ? void 0 : U.find((d) => d.id === "empty-layer-2"),
32296
32297
  (q = (Z = this.originStyle) == null ? void 0 : Z.light.layers) == null ? void 0 : q.find((d) => d.id === "water-line-label"),
32297
32298
  (Q = (V = this.originStyle) == null ? void 0 : V.light.layers) == null ? void 0 : Q.find((d) => d.id === "water-point-label"),
32298
32299
  (J = (ee = this.originStyle) == null ? void 0 : ee.light.layers) == null ? void 0 : J.find((d) => d.id === "world-12nm-v4-20231025"),
@@ -32304,7 +32305,7 @@ class Gm {
32304
32305
  (Le = (xe = this.originStyle) == null ? void 0 : xe.light.layers) == null ? void 0 : Le.find((d) => d.id === "admin-0-boundary-bg"),
32305
32306
  (Ae = (Pe = this.originStyle) == null ? void 0 : Pe.light.layers) == null ? void 0 : Ae.find((d) => d.id === "admin-0-boundary"),
32306
32307
  (Re = (De = this.originStyle) == null ? void 0 : De.light.layers) == null ? void 0 : Re.find((d) => d.id === "admin-0-boundary-disputed"),
32307
- (H = (_e = this.originStyle) == null ? void 0 : _e.light.layers) == null ? void 0 : H.find((d) => d.id === "country-label"),
32308
+ (W = (_e = this.originStyle) == null ? void 0 : _e.light.layers) == null ? void 0 : W.find((d) => d.id === "country-label"),
32308
32309
  (Fe = (te = this.originStyle) == null ? void 0 : te.light.layers) == null ? void 0 : Fe.find((d) => d.id === "continent-label"),
32309
32310
  (ge = (Ie = this.originStyle) == null ? void 0 : Ie.light.layers) == null ? void 0 : ge.find((d) => d.id === "tide-stations"),
32310
32311
  (G = (fe = this.originStyle) == null ? void 0 : fe.light.layers) == null ? void 0 : G.find((d) => d.id === "empty-layer-3"),