@idmwx/idmui-gl4 1.6.3 → 1.6.4

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
@@ -1,12 +1,12 @@
1
1
  var $a = Object.defineProperty;
2
2
  var Ka = (t, e, o) => e in t ? $a(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
3
- var ce = (t, e, o) => (Ka(t, typeof e != "symbol" ? e + "" : e, o), o);
3
+ var de = (t, e, o) => (Ka(t, typeof e != "symbol" ? e + "" : e, o), o);
4
4
  import Se from "axios";
5
5
  import { useTheme as ze } from "vuetify";
6
- import { openBlock as y, createElementBlock as S, resolveComponent as w, createBlock as R, withCtx as f, createVNode as u, withModifiers as je, createElementVNode as s, createCommentVNode as D, normalizeClass as Ne, toDisplayString as m, createTextVNode as X, Fragment as be, renderList as we, withDirectives as We, vShow as Ue, mergeProps as B, normalizeStyle as ie } from "vue";
6
+ import { openBlock as y, createElementBlock as S, resolveComponent as w, createBlock as R, withCtx as f, createVNode as p, withModifiers as je, createElementVNode as s, createCommentVNode as D, normalizeClass as Ne, toDisplayString as m, createTextVNode as $, Fragment as be, renderList as we, withDirectives as We, vShow as Ue, mergeProps as B, normalizeStyle as ie } from "vue";
7
7
  import ve from "mapbox-gl";
8
8
  import M from "moment";
9
- import { LngLatHelper as $, TropicalHelper as Va, LaneHelper as Ge } from "@idm-plugin/geo";
9
+ import { LngLatHelper as K, TropicalHelper as Va, LaneHelper as Ge } from "@idm-plugin/geo";
10
10
  import { Meteo2Assist as ao, TidesAssist as Ya } from "@idm-plugin/meteo";
11
11
  import * as ro from "echarts";
12
12
  import * as H from "@turf/turf";
@@ -385,8 +385,8 @@ const mi = {
385
385
  return ((c = l.properties) == null ? void 0 : c.id) === ((n = e == null ? void 0 : e.properties) == null ? void 0 : n.id);
386
386
  })[0];
387
387
  o && (this.showMakerInfo = !0, this.form = { ...o.properties }, (r = this.marker) == null || r.remove(), this.$nextTick(() => {
388
- var n, p;
389
- const l = (n = document.getElementById("idm-gl4-zone-info")) == null ? void 0 : n.cloneNode(!0), c = (p = l == null ? void 0 : l.children[1]) == null ? void 0 : p.children[0];
388
+ var n, u;
389
+ const l = (n = document.getElementById("idm-gl4-zone-info")) == null ? void 0 : n.cloneNode(!0), c = (u = l == null ? void 0 : l.children[1]) == null ? void 0 : u.children[0];
390
390
  c && (c.onclick = () => {
391
391
  this.handleRemoveMarker();
392
392
  }), this.marker = new ve.Marker(l).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([230, 0]).addTo(this.map);
@@ -496,11 +496,11 @@ function hi(t, e, o, i, a, r) {
496
496
  id: "idm-gl4-zone-info"
497
497
  }, {
498
498
  default: f(() => [
499
- u(c, null, {
499
+ p(c, null, {
500
500
  default: f(() => {
501
- var p;
501
+ var u;
502
502
  return [
503
- u(l, {
503
+ p(l, {
504
504
  icon: "",
505
505
  density: "compact",
506
506
  variant: "plain",
@@ -515,7 +515,7 @@ function hi(t, e, o, i, a, r) {
515
515
  }, 8, ["onClick"]),
516
516
  s("div", {
517
517
  class: "rich-context",
518
- innerHTML: (p = a.form) == null ? void 0 : p.name
518
+ innerHTML: (u = a.form) == null ? void 0 : u.name
519
519
  }, null, 8, di)
520
520
  ];
521
521
  }),
@@ -1365,7 +1365,7 @@ const ui = {
1365
1365
  computed: {
1366
1366
  dateList() {
1367
1367
  var o, i, a, r;
1368
- const t = [], e = (o = this.port) != null && o.lng && ((i = this.port) != null && i.lat) ? $.guessTimeZoneOffset((a = this.port) == null ? void 0 : a.lng, (r = this.port) == null ? void 0 : r.lat) : 0;
1368
+ const t = [], e = (o = this.port) != null && o.lng && ((i = this.port) != null && i.lat) ? K.guessTimeZoneOffset((a = this.port) == null ? void 0 : a.lng, (r = this.port) == null ? void 0 : r.lat) : 0;
1369
1369
  for (let l = 0; l < 4; l++) {
1370
1370
  let c = {
1371
1371
  index: l,
@@ -1386,7 +1386,7 @@ const ui = {
1386
1386
  return function(t, e, o = "yyyy-MM-DD HH:mm") {
1387
1387
  if (!t || !e || e.lng === null || e.lng === void 0 || isNaN(e.lng) || e.lat === null || e.lat === void 0 || isNaN(e.lat))
1388
1388
  return "-";
1389
- const i = e != null && e.lng && (e != null && e.lat) ? $.guessTimeZoneOffset(e == null ? void 0 : e.lng, e == null ? void 0 : e.lat) : 0;
1389
+ const i = e != null && e.lng && (e != null && e.lat) ? K.guessTimeZoneOffset(e == null ? void 0 : e.lng, e == null ? void 0 : e.lat) : 0;
1390
1390
  return M(t).utcOffset(i).format(o);
1391
1391
  };
1392
1392
  },
@@ -1394,18 +1394,18 @@ const ui = {
1394
1394
  return function(t) {
1395
1395
  if (!t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat))
1396
1396
  return "-";
1397
- const e = $.guessTimeZoneOffset(t == null ? void 0 : t.lng, t == null ? void 0 : t.lat);
1397
+ const e = K.guessTimeZoneOffset(t == null ? void 0 : t.lng, t == null ? void 0 : t.lat);
1398
1398
  return "( UTC " + (e >= 0 ? "+" : "") + e + " )";
1399
1399
  };
1400
1400
  },
1401
1401
  computePosition() {
1402
1402
  return function(t) {
1403
- return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" : $.lat2pretty(t == null ? void 0 : t.lat, 2).pretty + " / " + $.lng2pretty(t == null ? void 0 : t.lng, 2).pretty;
1403
+ return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" : K.lat2pretty(t == null ? void 0 : t.lat, 2).pretty + " / " + K.lng2pretty(t == null ? void 0 : t.lng, 2).pretty;
1404
1404
  };
1405
1405
  },
1406
1406
  computeRoundPrecision() {
1407
1407
  return function(t, e = 4) {
1408
- return t == null || isNaN(t) || isNaN(e) ? "-" : $.roundPrecision(t, e);
1408
+ return t == null || isNaN(t) || isNaN(e) ? "-" : K.roundPrecision(t, e);
1409
1409
  };
1410
1410
  }
1411
1411
  },
@@ -1487,10 +1487,10 @@ const ui = {
1487
1487
  { label: "Swell", key: "weather.swell", unit: "m" },
1488
1488
  { label: "Current", key: "weather.current", unit: "kts" }
1489
1489
  ], (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || o.dateTimeList.forEach((i, a) => {
1490
- var c, n, p, h, b, x, k, g, z, T, O, I, P, _, L, C, v, A, N, V, Z, U, ee, K, J, pe, me, Q, ae, de, le, he, ge, F, ne, xe, Le, Pe;
1490
+ var c, n, u, h, b, x, k, g, z, T, O, I, P, _, L, C, v, A, N, V, Z, U, ee, Q, X, ne, se, J, ae, he, ce, pe, ge, F, me, xe, Le, Pe;
1491
1491
  let r = {};
1492
1492
  const l = ((c = ao.pickHourly(t, M(i))) == null ? void 0 : c[0]) || {};
1493
- r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = l.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((p = l == null ? void 0 : l.weather) == null ? void 0 : p.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((b = (h = l == null ? void 0 : l.weather) == null ? void 0 : h.precip) == null ? void 0 : b.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((k = (x = l == null ? void 0 : l.weather) == null ? void 0 : x.precip) == null ? void 0 : k.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((g = l == null ? void 0 : l.weather) == null ? void 0 : g.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (z = l == null ? void 0 : l.weather) == null ? void 0 : z.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (I = (O = l == null ? void 0 : l.weather) == null ? void 0 : O.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((_ = (P = l == null ? void 0 : l.weather) == null ? void 0 : P.wind) == null ? void 0 : _.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((C = (L = l == null ? void 0 : l.weather) == null ? void 0 : L.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((A = (v = l == null ? void 0 : l.wave) == null ? void 0 : v.sig) == null ? void 0 : A.height, 1) ?? "-", r.sigwaveDir = (V = (N = l == null ? void 0 : l.wave) == null ? void 0 : N.sig) == null ? void 0 : V.direction, r.sigwavePeriod = this.computeRoundPrecision((U = (Z = l == null ? void 0 : l.wave) == null ? void 0 : Z.sig) == null ? void 0 : U.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((K = (ee = l == null ? void 0 : l.wave) == null ? void 0 : ee.wd) == null ? void 0 : K.height, 1) ?? "-", r.windwaveDir = (pe = (J = l == null ? void 0 : l.wave) == null ? void 0 : J.wd) == null ? void 0 : pe.direction, r.windwavePeriod = this.computeRoundPrecision((Q = (me = l == null ? void 0 : l.wave) == null ? void 0 : me.wd) == null ? void 0 : Q.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((de = (ae = l == null ? void 0 : l.wave) == null ? void 0 : ae.swell) == null ? void 0 : de.height, 1) ?? "-", r.swellDir = (he = (le = l == null ? void 0 : l.wave) == null ? void 0 : le.swell) == null ? void 0 : he.direction, r.swellPeriod = this.computeRoundPrecision((F = (ge = l == null ? void 0 : l.wave) == null ? void 0 : ge.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((ne = l == null ? void 0 : l.current) == null ? void 0 : ne.speed, 1) ?? "-", r.currentDir = (xe = l == null ? void 0 : l.current) == null ? void 0 : xe.direction, r.currentSpeed = this.computeRoundPrecision((Le = l == null ? void 0 : l.current) == null ? void 0 : Le.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(l == null ? void 0 : l.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(l == null ? void 0 : l.sst, 0) ?? "-", r.weatherUrls = (Pe = l == null ? void 0 : l.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${a}`] = a * this.interval > 10 ? a * this.interval : "0" + a * this.interval, this.tableData[1][`value${a}`] = r.weatherUrl, this.tableData[2][`value${a}`] = r.temp, this.tableData[3][`value${a}`] = r.precip1h, this.tableData[4][`value${a}`] = r.visibility, this.tableData[5][`value${a}`] = r.windSpeed, this.tableData[6][`value${a}`] = r.sigwaveHeight, this.tableData[7][`value${a}`] = r.swellHeight, this.tableData[8][`value${a}`] = r.currentSpeed;
1493
+ r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = l.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((u = l == null ? void 0 : l.weather) == null ? void 0 : u.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((b = (h = l == null ? void 0 : l.weather) == null ? void 0 : h.precip) == null ? void 0 : b.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((k = (x = l == null ? void 0 : l.weather) == null ? void 0 : x.precip) == null ? void 0 : k.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((g = l == null ? void 0 : l.weather) == null ? void 0 : g.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (z = l == null ? void 0 : l.weather) == null ? void 0 : z.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (I = (O = l == null ? void 0 : l.weather) == null ? void 0 : O.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((_ = (P = l == null ? void 0 : l.weather) == null ? void 0 : P.wind) == null ? void 0 : _.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((C = (L = l == null ? void 0 : l.weather) == null ? void 0 : L.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((A = (v = l == null ? void 0 : l.wave) == null ? void 0 : v.sig) == null ? void 0 : A.height, 1) ?? "-", r.sigwaveDir = (V = (N = l == null ? void 0 : l.wave) == null ? void 0 : N.sig) == null ? void 0 : V.direction, r.sigwavePeriod = this.computeRoundPrecision((U = (Z = l == null ? void 0 : l.wave) == null ? void 0 : Z.sig) == null ? void 0 : U.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((Q = (ee = l == null ? void 0 : l.wave) == null ? void 0 : ee.wd) == null ? void 0 : Q.height, 1) ?? "-", r.windwaveDir = (ne = (X = l == null ? void 0 : l.wave) == null ? void 0 : X.wd) == null ? void 0 : ne.direction, r.windwavePeriod = this.computeRoundPrecision((J = (se = l == null ? void 0 : l.wave) == null ? void 0 : se.wd) == null ? void 0 : J.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((he = (ae = l == null ? void 0 : l.wave) == null ? void 0 : ae.swell) == null ? void 0 : he.height, 1) ?? "-", r.swellDir = (pe = (ce = l == null ? void 0 : l.wave) == null ? void 0 : ce.swell) == null ? void 0 : pe.direction, r.swellPeriod = this.computeRoundPrecision((F = (ge = l == null ? void 0 : l.wave) == null ? void 0 : ge.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((me = l == null ? void 0 : l.current) == null ? void 0 : me.speed, 1) ?? "-", r.currentDir = (xe = l == null ? void 0 : l.current) == null ? void 0 : xe.direction, r.currentSpeed = this.computeRoundPrecision((Le = l == null ? void 0 : l.current) == null ? void 0 : Le.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(l == null ? void 0 : l.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(l == null ? void 0 : l.sst, 0) ?? "-", r.weatherUrls = (Pe = l == null ? void 0 : l.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${a}`] = a * this.interval > 10 ? a * this.interval : "0" + a * this.interval, this.tableData[1][`value${a}`] = r.weatherUrl, this.tableData[2][`value${a}`] = r.temp, this.tableData[3][`value${a}`] = r.precip1h, this.tableData[4][`value${a}`] = r.visibility, this.tableData[5][`value${a}`] = r.windSpeed, this.tableData[6][`value${a}`] = r.sigwaveHeight, this.tableData[7][`value${a}`] = r.swellHeight, this.tableData[8][`value${a}`] = r.currentSpeed;
1494
1494
  });
1495
1495
  },
1496
1496
  handleTide() {
@@ -1675,12 +1675,12 @@ const ui = {
1675
1675
  width: "120"
1676
1676
  }, ur = { class: "px-1 text-center" }, gr = { class: "px-1 text-center" }, fr = { class: "px-1 text-center" };
1677
1677
  function yr(t, e, o, i, a, r) {
1678
- const l = w("VBtn"), c = w("VCardTitle"), n = w("VDivider"), p = w("VIcon"), h = w("VBtnToggle"), b = w("VCard");
1678
+ const l = w("VBtn"), c = w("VCardTitle"), n = w("VDivider"), u = w("VIcon"), h = w("VBtnToggle"), b = w("VCard");
1679
1679
  return y(), R(b, { class: "port-detail-container d-flex flex-column justify-start align-center" }, {
1680
1680
  default: f(() => {
1681
1681
  var x, k;
1682
1682
  return [
1683
- u(c, { class: "w-100" }, {
1683
+ p(c, { class: "w-100" }, {
1684
1684
  default: f(() => {
1685
1685
  var g, z, T, O, I;
1686
1686
  return [
@@ -1692,7 +1692,7 @@ function yr(t, e, o, i, a, r) {
1692
1692
  }, null, 2),
1693
1693
  s("div", null, m((O = o.port) == null ? void 0 : O.name), 1)
1694
1694
  ]),
1695
- u(l, {
1695
+ p(l, {
1696
1696
  icon: "",
1697
1697
  density: "compact",
1698
1698
  variant: "plain",
@@ -1717,7 +1717,7 @@ function yr(t, e, o, i, a, r) {
1717
1717
  }),
1718
1718
  _: 1
1719
1719
  }),
1720
- u(n, { class: "w-100" }),
1720
+ p(n, { class: "w-100" }),
1721
1721
  s("div", bi, [
1722
1722
  o.followList.some((g) => {
1723
1723
  var z;
@@ -1732,10 +1732,10 @@ function yr(t, e, o, i, a, r) {
1732
1732
  onClick: r.handleCancelFollow
1733
1733
  }, {
1734
1734
  prepend: f(() => [
1735
- u(p, { color: "warning" })
1735
+ p(u, { color: "warning" })
1736
1736
  ]),
1737
1737
  default: f(() => [
1738
- X(" " + m(t.$t("actions.unfollow")), 1)
1738
+ $(" " + m(t.$t("actions.unfollow")), 1)
1739
1739
  ]),
1740
1740
  _: 1
1741
1741
  }, 8, ["onClick"])) : (y(), R(l, {
@@ -1748,11 +1748,11 @@ function yr(t, e, o, i, a, r) {
1748
1748
  onClick: r.handleFollow
1749
1749
  }, {
1750
1750
  default: f(() => [
1751
- X(m(t.$t("actions.follow")), 1)
1751
+ $(m(t.$t("actions.follow")), 1)
1752
1752
  ]),
1753
1753
  _: 1
1754
1754
  }, 8, ["onClick"])),
1755
- u(l, {
1755
+ p(l, {
1756
1756
  class: "text-none text-body-1 rounded flex-1-1-0",
1757
1757
  variant: "tonal",
1758
1758
  density: "compact",
@@ -1760,7 +1760,7 @@ function yr(t, e, o, i, a, r) {
1760
1760
  onClick: r.handleMeteoMore
1761
1761
  }, {
1762
1762
  default: f(() => [
1763
- X(m(t.$t("actions.7dayForcast")), 1)
1763
+ $(m(t.$t("actions.7dayForcast")), 1)
1764
1764
  ]),
1765
1765
  _: 1
1766
1766
  }, 8, ["onClick"])
@@ -1806,7 +1806,7 @@ function yr(t, e, o, i, a, r) {
1806
1806
  e[5] || (e[5] = s("div", { class: "text-body-2 text-success ga-2" }, null, -1))
1807
1807
  ]),
1808
1808
  s("div", Fi, [
1809
- u(h, {
1809
+ p(h, {
1810
1810
  modelValue: a.currentIndex,
1811
1811
  "onUpdate:modelValue": e[0] || (e[0] = (g) => a.currentIndex = g),
1812
1812
  class: "w-100 gray-card rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
@@ -1825,7 +1825,7 @@ function yr(t, e, o, i, a, r) {
1825
1825
  value: g.index
1826
1826
  }, {
1827
1827
  default: f(() => [
1828
- X(m(g.label), 1)
1828
+ $(m(g.label), 1)
1829
1829
  ]),
1830
1830
  _: 2
1831
1831
  }, 1032, ["value"]))), 256))
@@ -1838,7 +1838,7 @@ function yr(t, e, o, i, a, r) {
1838
1838
  key: g.id
1839
1839
  }, [
1840
1840
  s("th", Gi, [
1841
- X(m(t.$t(`${g.key}`)) + " ", 1),
1841
+ $(m(t.$t(`${g.key}`)) + " ", 1),
1842
1842
  g.unit ? (y(), S("span", Wi, " ( " + m(g.unit) + " )", 1)) : D("", !0)
1843
1843
  ]),
1844
1844
  s("td", Ui, [
@@ -2040,12 +2040,12 @@ const br = {
2040
2040
  function _r(t, e, o, i, a, r) {
2041
2041
  const l = w("VCardText"), c = w("VCard"), n = w("PortDetail");
2042
2042
  return y(), S("div", null, [
2043
- We(u(c, {
2043
+ We(p(c, {
2044
2044
  id: "idmPortInfo",
2045
2045
  ref: "idmPortInfo"
2046
2046
  }, {
2047
2047
  default: f(() => [
2048
- u(l, { class: "text-body-1 pr-8" }, {
2048
+ p(l, { class: "text-body-1 pr-8" }, {
2049
2049
  default: f(() => [
2050
2050
  s("div", wr, [
2051
2051
  s("div", null, m(t.$t("port.port")), 1),
@@ -2071,7 +2071,7 @@ function _r(t, e, o, i, a, r) {
2071
2071
  port: a.port,
2072
2072
  forecastModel: o.forecastModel,
2073
2073
  onClose: r.handleCloseDetail,
2074
- onCloseAllDetail: e[0] || (e[0] = (p) => t.$emit("closeAllDetail", { ports: !0 }))
2074
+ onCloseAllDetail: e[0] || (e[0] = (u) => t.$emit("closeAllDetail", { ports: !0 }))
2075
2075
  }, t.$attrs), null, 16, ["portId", "port", "forecastModel", "onClose"])) : D("", !0)
2076
2076
  ]);
2077
2077
  }
@@ -2424,7 +2424,7 @@ const Dr = /* @__PURE__ */ Y(Mr, [["render", Ir]]), Ar = {
2424
2424
  methods: {
2425
2425
  handleRender() {
2426
2426
  this.handleClear(), this.area && (this.area.features.forEach((t) => {
2427
- t.geometry.type === "Polygon" && t.geometry.coordinates.forEach((e) => $.convertToMonotonicLng2(e));
2427
+ t.geometry.type === "Polygon" && t.geometry.coordinates.forEach((e) => K.convertToMonotonicLng2(e));
2428
2428
  }), this.map.addSource(this.source, {
2429
2429
  type: "geojson",
2430
2430
  data: this.area
@@ -2724,7 +2724,7 @@ const qr = {
2724
2724
  computed: {
2725
2725
  dateList() {
2726
2726
  var o, i, a, r;
2727
- const t = [], e = (o = this.station) != null && o.lng && ((i = this.station) != null && i.lat) ? $.guessTimeZoneOffset((a = this.station) == null ? void 0 : a.lng, (r = this.station) == null ? void 0 : r.lat) : 0;
2727
+ const t = [], e = (o = this.station) != null && o.lng && ((i = this.station) != null && i.lat) ? K.guessTimeZoneOffset((a = this.station) == null ? void 0 : a.lng, (r = this.station) == null ? void 0 : r.lat) : 0;
2728
2728
  for (let l = 0; l < 4; l++) {
2729
2729
  let c = {
2730
2730
  index: l,
@@ -2743,7 +2743,7 @@ const qr = {
2743
2743
  return function(t, e, o = "yyyy-MM-DD HH:mm") {
2744
2744
  if (!t || !e || e.lng === null || e.lng === void 0 || isNaN(e.lng) || e.lat === null || e.lat === void 0 || isNaN(e.lat))
2745
2745
  return "-";
2746
- const i = e != null && e.lng && (e != null && e.lat) ? $.guessTimeZoneOffset(e == null ? void 0 : e.lng, e == null ? void 0 : e.lat) : 0;
2746
+ const i = e != null && e.lng && (e != null && e.lat) ? K.guessTimeZoneOffset(e == null ? void 0 : e.lng, e == null ? void 0 : e.lat) : 0;
2747
2747
  return M(t).utcOffset(i).format(o);
2748
2748
  };
2749
2749
  },
@@ -2751,18 +2751,18 @@ const qr = {
2751
2751
  return function(t) {
2752
2752
  if (!t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat))
2753
2753
  return "-";
2754
- const e = $.guessTimeZoneOffset(t == null ? void 0 : t.lng, t == null ? void 0 : t.lat);
2754
+ const e = K.guessTimeZoneOffset(t == null ? void 0 : t.lng, t == null ? void 0 : t.lat);
2755
2755
  return "( UTC " + (e >= 0 ? "+" : "") + e + " )";
2756
2756
  };
2757
2757
  },
2758
2758
  computePosition() {
2759
2759
  return function(t) {
2760
- return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" : $.lat2pretty(t == null ? void 0 : t.lat, 2).pretty + " / " + $.lng2pretty(t == null ? void 0 : t.lng, 2).pretty;
2760
+ return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" : K.lat2pretty(t == null ? void 0 : t.lat, 2).pretty + " / " + K.lng2pretty(t == null ? void 0 : t.lng, 2).pretty;
2761
2761
  };
2762
2762
  },
2763
2763
  computeRoundPrecision() {
2764
2764
  return function(t, e = 4) {
2765
- return t == null || isNaN(t) || isNaN(e) ? "-" : $.roundPrecision(t, e);
2765
+ return t == null || isNaN(t) || isNaN(e) ? "-" : K.roundPrecision(t, e);
2766
2766
  };
2767
2767
  }
2768
2768
  },
@@ -2940,12 +2940,12 @@ const qr = {
2940
2940
  width: "120"
2941
2941
  }, Ls = { class: "px-1 text-center" }, Ps = { class: "px-1 text-center" }, Cs = { class: "px-1 text-center" };
2942
2942
  function Ts(t, e, o, i, a, r) {
2943
- const l = w("VBtn"), c = w("v-card-title"), n = w("v-divider"), p = w("VBtnToggle"), h = w("v-card");
2943
+ const l = w("VBtn"), c = w("v-card-title"), n = w("v-divider"), u = w("VBtnToggle"), h = w("v-card");
2944
2944
  return y(), R(h, { class: "tide-detail-container d-flex flex-column justify-start align-center" }, {
2945
2945
  default: f(() => {
2946
2946
  var b, x;
2947
2947
  return [
2948
- u(c, { class: "w-100" }, {
2948
+ p(c, { class: "w-100" }, {
2949
2949
  default: f(() => {
2950
2950
  var k;
2951
2951
  return [
@@ -2953,7 +2953,7 @@ function Ts(t, e, o, i, a, r) {
2953
2953
  s("div", $r, [
2954
2954
  s("div", null, m((k = o.station) == null ? void 0 : k.name), 1)
2955
2955
  ]),
2956
- u(l, {
2956
+ p(l, {
2957
2957
  icon: "",
2958
2958
  density: "compact",
2959
2959
  variant: "plain",
@@ -2974,7 +2974,7 @@ function Ts(t, e, o, i, a, r) {
2974
2974
  }),
2975
2975
  _: 1
2976
2976
  }),
2977
- u(n, { class: "w-100" }),
2977
+ p(n, { class: "w-100" }),
2978
2978
  s("div", Qr, [
2979
2979
  s("div", Jr, [
2980
2980
  s("div", es, [
@@ -3016,7 +3016,7 @@ function Ts(t, e, o, i, a, r) {
3016
3016
  e[3] || (e[3] = s("div", { class: "text-body-2 text-success ga-2" }, null, -1))
3017
3017
  ]),
3018
3018
  s("div", ws, [
3019
- u(p, {
3019
+ p(u, {
3020
3020
  modelValue: a.currentIndex,
3021
3021
  "onUpdate:modelValue": e[0] || (e[0] = (k) => a.currentIndex = k),
3022
3022
  class: "w-100 gray-card rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
@@ -3035,7 +3035,7 @@ function Ts(t, e, o, i, a, r) {
3035
3035
  value: k.index
3036
3036
  }, {
3037
3037
  default: f(() => [
3038
- X(m(k.label), 1)
3038
+ $(m(k.label), 1)
3039
3039
  ]),
3040
3040
  _: 2
3041
3041
  }, 1032, ["value"]))), 256))
@@ -3148,16 +3148,16 @@ const Ms = {
3148
3148
  function Os(t, e, o, i, a, r) {
3149
3149
  const l = w("v-card-text"), c = w("v-card"), n = w("TideDetail");
3150
3150
  return y(), S("div", null, [
3151
- We(u(c, { id: "idmTidalInfo" }, {
3151
+ We(p(c, { id: "idmTidalInfo" }, {
3152
3152
  default: f(() => [
3153
- u(l, { class: "pr-8 text-body-1" }, {
3153
+ p(l, { class: "pr-8 text-body-1" }, {
3154
3154
  default: f(() => {
3155
- var p, h;
3155
+ var u, h;
3156
3156
  return [
3157
3157
  s("div", Is, [
3158
3158
  s("div", Ds, m(t.$t("tide.tideStation")), 1),
3159
3159
  s("div", As, [
3160
- s("label", Rs, m((p = a.hoverStation) == null ? void 0 : p.name) + " , " + m(((h = a.hoverStation) == null ? void 0 : h.Country) || "-"), 1)
3160
+ s("label", Rs, m((u = a.hoverStation) == null ? void 0 : u.name) + " , " + m(((h = a.hoverStation) == null ? void 0 : h.Country) || "-"), 1)
3161
3161
  ])
3162
3162
  ])
3163
3163
  ];
@@ -3271,7 +3271,7 @@ const Fs = {
3271
3271
  },
3272
3272
  "lngLat.e": {
3273
3273
  handler(t) {
3274
- this.lngLat.lng = $.lng2pretty(t == null ? void 0 : t.lng, 2).pretty, this.lngLat.lat = $.lat2pretty(t == null ? void 0 : t.lat, 2).pretty, this.lngLat.str = `[${t == null ? void 0 : t.lng.toFixed(4)}, ${t == null ? void 0 : t.lat.toFixed(4)}]`;
3274
+ this.lngLat.lng = K.lng2pretty(t == null ? void 0 : t.lng, 2).pretty, this.lngLat.lat = K.lat2pretty(t == null ? void 0 : t.lat, 2).pretty, this.lngLat.str = `[${t == null ? void 0 : t.lng.toFixed(4)}, ${t == null ? void 0 : t.lat.toFixed(4)}]`;
3275
3275
  },
3276
3276
  immediate: !0
3277
3277
  }
@@ -4310,12 +4310,12 @@ const Gs = {
4310
4310
  function Zs(t, e, o, i, a, r) {
4311
4311
  const l = w("v-card-text"), c = w("v-card"), n = w("PortDetail");
4312
4312
  return y(), S("div", null, [
4313
- We(u(c, {
4313
+ We(p(c, {
4314
4314
  id: "idmFollowPortInfo",
4315
4315
  ref: "idmFollowPortInfo"
4316
4316
  }, {
4317
4317
  default: f(() => [
4318
- u(l, { class: "text-body-1 pr-8" }, {
4318
+ p(l, { class: "text-body-1 pr-8" }, {
4319
4319
  default: f(() => [
4320
4320
  s("div", Ws, [
4321
4321
  s("div", null, m(t.$t("port.port")), 1),
@@ -4342,7 +4342,7 @@ function Zs(t, e, o, i, a, r) {
4342
4342
  forecastModel: o.forecastModel,
4343
4343
  followList: o.followList,
4344
4344
  onClose: r.handleCloseDetail,
4345
- onCloseAllDetail: e[0] || (e[0] = (p) => t.$emit("closeAllDetail", { followPort: !0 }))
4345
+ onCloseAllDetail: e[0] || (e[0] = (u) => t.$emit("closeAllDetail", { followPort: !0 }))
4346
4346
  }, t.$attrs), null, 16, ["portId", "port", "forecastModel", "followList", "onClose"])) : D("", !0)
4347
4347
  ]);
4348
4348
  }
@@ -4384,7 +4384,7 @@ const qs = {
4384
4384
  computed: {
4385
4385
  computePosition() {
4386
4386
  return function(t) {
4387
- return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" : $.lat2pretty(t == null ? void 0 : t.lat, 2).pretty + " / " + $.lng2pretty(t == null ? void 0 : t.lng, 2).pretty;
4387
+ return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" : K.lat2pretty(t == null ? void 0 : t.lat, 2).pretty + " / " + K.lng2pretty(t == null ? void 0 : t.lng, 2).pretty;
4388
4388
  };
4389
4389
  }
4390
4390
  },
@@ -4450,7 +4450,7 @@ const qs = {
4450
4450
  this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source), (t = this.map) == null || t.on("click", [this.layer], this.handleClick), (e = this.map) == null || e.on("mousemove", [this.layer], this.handleHover), (o = this.map) == null || o.on("mouseleave", [this.layer], this.handleLeave);
4451
4451
  },
4452
4452
  handleClick(t) {
4453
- var o, i, a, r, l, c, n, p, h;
4453
+ var o, i, a, r, l, c, n, u, h;
4454
4454
  const e = t.features[0];
4455
4455
  if (e.properties) {
4456
4456
  const b = e.properties;
@@ -4461,7 +4461,7 @@ const qs = {
4461
4461
  datetime: this.realTime,
4462
4462
  forecastModel: this.forecastModel
4463
4463
  };
4464
- k >= 0 ? (l = (r = (a = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmSpot) == null || l.fetchMeteoData(g) : (h = (p = (n = (c = this.$parent) == null ? void 0 : c.$parent) == null ? void 0 : n.$refs) == null ? void 0 : p.idmSpot) == null || h.fetchHistoryData(g);
4464
+ k >= 0 ? (l = (r = (a = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmSpot) == null || l.fetchMeteoData(g) : (h = (u = (n = (c = this.$parent) == null ? void 0 : c.$parent) == null ? void 0 : n.$refs) == null ? void 0 : u.idmSpot) == null || h.fetchHistoryData(g);
4465
4465
  }
4466
4466
  },
4467
4467
  handleHover(t) {
@@ -4490,7 +4490,7 @@ function Qs(t, e, o, i, a, r) {
4490
4490
  ref: "idmFollowPositionInfo"
4491
4491
  }, {
4492
4492
  default: f(() => [
4493
- u(l, { class: "text-body-1 pr-8" }, {
4493
+ p(l, { class: "text-body-1 pr-8" }, {
4494
4494
  default: f(() => [
4495
4495
  s("div", Xs, [
4496
4496
  e[0] || (e[0] = s("div", null, "Location", -1)),
@@ -4682,8 +4682,8 @@ const el = {
4682
4682
  );
4683
4683
  (await Promise.all(l)).map((n) => {
4684
4684
  var b, x, k;
4685
- const p = ((b = n == null ? void 0 : n.data) == null ? void 0 : b.data) || (n == null ? void 0 : n.data), h = (k = (x = n == null ? void 0 : n.config) == null ? void 0 : x.headers) == null ? void 0 : k.key;
4686
- this.otherLayers[h] = p;
4685
+ const u = ((b = n == null ? void 0 : n.data) == null ? void 0 : b.data) || (n == null ? void 0 : n.data), h = (k = (x = n == null ? void 0 : n.config) == null ? void 0 : x.headers) == null ? void 0 : k.key;
4686
+ this.otherLayers[h] = u;
4687
4687
  });
4688
4688
  }
4689
4689
  }
@@ -4720,19 +4720,19 @@ const el = {
4720
4720
  class: "border rounded-sm"
4721
4721
  }, dl = { class: "text-body-2 text-center pt-1" };
4722
4722
  function hl(t, e, o, i, a, r) {
4723
- var J, pe, me, Q, ae, de, le, he, ge;
4724
- const l = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), p = w("VCardItem"), h = w("VCheckbox"), b = w("VCardText"), x = w("VCard"), k = w("IdmLatLng"), g = w("IdmTerminator"), z = w("IdmTimezone"), T = w("IdmPort"), O = w("IdmAlertZone"), I = w("IdmTideStations"), P = w("IdmEcaZone"), _ = w("IdmWarZone"), L = w("IdmGmdssArea"), C = w("IdmLoadLine"), v = w("IdmWorldMarine"), A = w("IdmVRA"), N = w("IdmSpecialArea"), V = w("IdmWorld12nm"), Z = w("IdmChinaRoute"), U = w("IdmIceAreas"), ee = w("IdmFollowPort"), K = w("IdmFollowPosition");
4723
+ var X, ne, se, J, ae, he, ce, pe, ge;
4724
+ const l = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), u = w("VCardItem"), h = w("VCheckbox"), b = w("VCardText"), x = w("VCard"), k = w("IdmLatLng"), g = w("IdmTerminator"), z = w("IdmTimezone"), T = w("IdmPort"), O = w("IdmAlertZone"), I = w("IdmTideStations"), P = w("IdmEcaZone"), _ = w("IdmWarZone"), L = w("IdmGmdssArea"), C = w("IdmLoadLine"), v = w("IdmWorldMarine"), A = w("IdmVRA"), N = w("IdmSpecialArea"), V = w("IdmWorld12nm"), Z = w("IdmChinaRoute"), U = w("IdmIceAreas"), ee = w("IdmFollowPort"), Q = w("IdmFollowPosition");
4725
4725
  return y(), S("div", tl, [
4726
4726
  s("div", {
4727
4727
  class: "menu-bar-box transition px-1 rounded",
4728
4728
  style: ie({ top: o.top + 10 + "px", right: a.right + "px" })
4729
4729
  }, [
4730
- u(c, {
4730
+ p(c, {
4731
4731
  text: t.$t("layer.mapLayers"),
4732
4732
  location: "left"
4733
4733
  }, {
4734
4734
  activator: f(({ props: F }) => [
4735
- u(l, B(F, {
4735
+ p(l, B(F, {
4736
4736
  "min-width": "32",
4737
4737
  width: "32",
4738
4738
  height: "32",
@@ -4755,7 +4755,7 @@ function hl(t, e, o, i, a, r) {
4755
4755
  }, [
4756
4756
  s("div", ol, [
4757
4757
  s("div", al, m(t.$t("layer.layers")), 1),
4758
- u(l, {
4758
+ p(l, {
4759
4759
  icon: "",
4760
4760
  density: "compact",
4761
4761
  variant: "plain",
@@ -4770,32 +4770,32 @@ function hl(t, e, o, i, a, r) {
4770
4770
  }, 8, ["onClick"])
4771
4771
  ]),
4772
4772
  s("div", il, [
4773
- u(x, {
4773
+ p(x, {
4774
4774
  class: "block-bg mx-auto mb-3",
4775
4775
  elevation: "0"
4776
4776
  }, {
4777
4777
  default: f(() => [
4778
- u(p, { class: "border-b-thin" }, {
4778
+ p(u, { class: "border-b-thin" }, {
4779
4779
  default: f(() => [
4780
- u(n, {
4780
+ p(n, {
4781
4781
  class: "text-subtitle-1 font-weight-medium",
4782
4782
  style: { "font-size": "16px !important" }
4783
4783
  }, {
4784
4784
  default: f(() => [
4785
- X(m(t.$t("layer.mapFeathers")), 1)
4785
+ $(m(t.$t("layer.mapFeathers")), 1)
4786
4786
  ]),
4787
4787
  _: 1
4788
4788
  })
4789
4789
  ]),
4790
4790
  _: 1
4791
4791
  }),
4792
- u(b, { class: "pb-2" }, {
4792
+ p(b, { class: "pb-2" }, {
4793
4793
  default: f(() => [
4794
4794
  s("div", rl, [
4795
4795
  (y(!0), S(be, null, we(a.mapFeathers, (F) => (y(), S("div", {
4796
4796
  key: F.value,
4797
4797
  class: "mb-2 feather-item",
4798
- onClick: (ne) => r.handleToggleMapFeather(F)
4798
+ onClick: (me) => r.handleToggleMapFeather(F)
4799
4799
  }, [
4800
4800
  s("div", {
4801
4801
  class: Ne([a.mapFeather === F.value ? "active" : "", "img-box"])
@@ -4808,7 +4808,7 @@ function hl(t, e, o, i, a, r) {
4808
4808
  (y(!0), S(be, null, we(a.tagLayers.filter((F) => ["graticule", "day-night", "time-zones"].includes(F.key)), (F) => (y(), R(h, {
4809
4809
  key: F.key,
4810
4810
  modelValue: a.checkList,
4811
- "onUpdate:modelValue": e[0] || (e[0] = (ne) => a.checkList = ne),
4811
+ "onUpdate:modelValue": e[0] || (e[0] = (me) => a.checkList = me),
4812
4812
  value: F.key,
4813
4813
  label: t.$t(`layer.${F.locale}`),
4814
4814
  color: "primary",
@@ -4823,31 +4823,31 @@ function hl(t, e, o, i, a, r) {
4823
4823
  ]),
4824
4824
  _: 1
4825
4825
  }),
4826
- u(x, {
4826
+ p(x, {
4827
4827
  class: "block-bg mx-auto mb-3",
4828
4828
  elevation: "0"
4829
4829
  }, {
4830
4830
  default: f(() => [
4831
- u(p, { class: "border-b-thin" }, {
4831
+ p(u, { class: "border-b-thin" }, {
4832
4832
  default: f(() => [
4833
- u(n, {
4833
+ p(n, {
4834
4834
  class: "text-subtitle-1 font-weight-medium",
4835
4835
  style: { "font-size": "16px !important" }
4836
4836
  }, {
4837
4837
  default: f(() => [
4838
- X(m(t.$t("layer.pointsOfInteresting")), 1)
4838
+ $(m(t.$t("layer.pointsOfInteresting")), 1)
4839
4839
  ]),
4840
4840
  _: 1
4841
4841
  })
4842
4842
  ]),
4843
4843
  _: 1
4844
4844
  }),
4845
- u(b, { class: "py-2" }, {
4845
+ p(b, { class: "py-2" }, {
4846
4846
  default: f(() => [
4847
4847
  (y(!0), S(be, null, we(a.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (y(), R(h, {
4848
4848
  key: F.key,
4849
4849
  modelValue: a.checkList,
4850
- "onUpdate:modelValue": e[1] || (e[1] = (ne) => a.checkList = ne),
4850
+ "onUpdate:modelValue": e[1] || (e[1] = (me) => a.checkList = me),
4851
4851
  value: F.key,
4852
4852
  label: t.$t(`layer.${F.locale}`),
4853
4853
  color: "primary",
@@ -4862,31 +4862,31 @@ function hl(t, e, o, i, a, r) {
4862
4862
  ]),
4863
4863
  _: 1
4864
4864
  }),
4865
- u(x, {
4865
+ p(x, {
4866
4866
  class: "block-bg mx-auto mb-3",
4867
4867
  elevation: "0"
4868
4868
  }, {
4869
4869
  default: f(() => [
4870
- u(p, { class: "border-b-thin" }, {
4870
+ p(u, { class: "border-b-thin" }, {
4871
4871
  default: f(() => [
4872
- u(n, {
4872
+ p(n, {
4873
4873
  class: "text-subtitle-1 font-weight-medium",
4874
4874
  style: { "font-size": "16px !important" }
4875
4875
  }, {
4876
4876
  default: f(() => [
4877
- X(m(t.$t("layer.otherLayers")), 1)
4877
+ $(m(t.$t("layer.otherLayers")), 1)
4878
4878
  ]),
4879
4879
  _: 1
4880
4880
  })
4881
4881
  ]),
4882
4882
  _: 1
4883
4883
  }),
4884
- u(b, { class: "py-2" }, {
4884
+ p(b, { class: "py-2" }, {
4885
4885
  default: f(() => [
4886
4886
  (y(!0), S(be, null, we(a.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (y(), R(h, {
4887
4887
  key: F.key,
4888
4888
  modelValue: a.checkList,
4889
- "onUpdate:modelValue": e[2] || (e[2] = (ne) => a.checkList = ne),
4889
+ "onUpdate:modelValue": e[2] || (e[2] = (me) => a.checkList = me),
4890
4890
  value: F.key,
4891
4891
  label: t.$t(`layer.${F.locale}`),
4892
4892
  color: "primary",
@@ -4901,28 +4901,28 @@ function hl(t, e, o, i, a, r) {
4901
4901
  ]),
4902
4902
  _: 1
4903
4903
  }),
4904
- u(x, {
4904
+ p(x, {
4905
4905
  class: "block-bg mx-auto mb-3",
4906
4906
  elevation: "0"
4907
4907
  }, {
4908
4908
  default: f(() => [
4909
- u(p, { class: "border-b-thin" }, {
4909
+ p(u, { class: "border-b-thin" }, {
4910
4910
  default: f(() => [
4911
- u(n, {
4911
+ p(n, {
4912
4912
  class: "text-subtitle-1 font-weight-medium",
4913
4913
  style: { "font-size": "16px !important" }
4914
4914
  }, {
4915
4915
  default: f(() => [
4916
- X(m(t.$t("layer.myFollows")), 1)
4916
+ $(m(t.$t("layer.myFollows")), 1)
4917
4917
  ]),
4918
4918
  _: 1
4919
4919
  })
4920
4920
  ]),
4921
4921
  _: 1
4922
4922
  }),
4923
- u(b, { class: "py-2" }, {
4923
+ p(b, { class: "py-2" }, {
4924
4924
  default: f(() => [
4925
- u(h, {
4925
+ p(h, {
4926
4926
  modelValue: a.checkList,
4927
4927
  "onUpdate:modelValue": e[3] || (e[3] = (F) => a.checkList = F),
4928
4928
  value: "follow-ports",
@@ -4933,7 +4933,7 @@ function hl(t, e, o, i, a, r) {
4933
4933
  class: "flex-1-0-100 text-body-2",
4934
4934
  "hide-details": ""
4935
4935
  }, null, 8, ["modelValue", "label"]),
4936
- u(h, {
4936
+ p(h, {
4937
4937
  modelValue: a.checkList,
4938
4938
  "onUpdate:modelValue": e[4] || (e[4] = (F) => a.checkList = F),
4939
4939
  value: "follow-positions",
@@ -4961,18 +4961,18 @@ function hl(t, e, o, i, a, r) {
4961
4961
  o.map ? (y(), R(g, B({
4962
4962
  key: 1,
4963
4963
  map: o.map,
4964
- area: (J = a.otherLayers) == null ? void 0 : J["day-night"]
4964
+ area: (X = a.otherLayers) == null ? void 0 : X["day-night"]
4965
4965
  }, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
4966
4966
  o.map ? (y(), R(z, B({
4967
4967
  key: 2,
4968
4968
  map: o.map,
4969
- zone: (pe = a.otherLayers) == null ? void 0 : pe["time-zones"]
4969
+ zone: (ne = a.otherLayers) == null ? void 0 : ne["time-zones"]
4970
4970
  }, t.$attrs), null, 16, ["map", "zone"])) : D("", !0),
4971
4971
  o.map ? (y(), R(T, B({
4972
4972
  key: 3,
4973
4973
  ref: "idmPorts",
4974
4974
  map: o.map,
4975
- ports: (me = a.otherLayers) == null ? void 0 : me.ports,
4975
+ ports: (se = a.otherLayers) == null ? void 0 : se.ports,
4976
4976
  gateway: o.gateway,
4977
4977
  token: o.token,
4978
4978
  "forecast-model": o.forecastModel,
@@ -4981,7 +4981,7 @@ function hl(t, e, o, i, a, r) {
4981
4981
  o.map ? (y(), R(O, B({
4982
4982
  key: 4,
4983
4983
  map: o.map,
4984
- zone: (Q = a.otherLayers) == null ? void 0 : Q["alert-zones"]
4984
+ zone: (J = a.otherLayers) == null ? void 0 : J["alert-zones"]
4985
4985
  }, t.$attrs, {
4986
4986
  "before-layer": "empty-layer-3",
4987
4987
  theme: o.theme
@@ -5006,12 +5006,12 @@ function hl(t, e, o, i, a, r) {
5006
5006
  o.map ? (y(), R(_, B({
5007
5007
  key: 7,
5008
5008
  map: o.map,
5009
- zone: (de = a.otherLayers) == null ? void 0 : de["war-zones"]
5009
+ zone: (he = a.otherLayers) == null ? void 0 : he["war-zones"]
5010
5010
  }, t.$attrs), null, 16, ["map", "zone"])) : D("", !0),
5011
5011
  o.map ? (y(), R(L, B({
5012
5012
  key: 8,
5013
5013
  map: o.map,
5014
- area: (le = a.otherLayers) == null ? void 0 : le["gmdss-areas"]
5014
+ area: (ce = a.otherLayers) == null ? void 0 : ce["gmdss-areas"]
5015
5015
  }, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
5016
5016
  o.map ? (y(), R(C, B({
5017
5017
  key: 9,
@@ -5027,7 +5027,7 @@ function hl(t, e, o, i, a, r) {
5027
5027
  o.map ? (y(), R(A, B({
5028
5028
  key: 11,
5029
5029
  map: o.map,
5030
- area: (he = a.otherLayers) == null ? void 0 : he["voluntary-reporting-area"]
5030
+ area: (pe = a.otherLayers) == null ? void 0 : pe["voluntary-reporting-area"]
5031
5031
  }, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
5032
5032
  o.map ? (y(), R(N, B({
5033
5033
  key: 12,
@@ -5061,7 +5061,7 @@ function hl(t, e, o, i, a, r) {
5061
5061
  "forecast-model": o.forecastModel,
5062
5062
  realTime: o.realTime
5063
5063
  }, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "show", "gateway", "token", "forecast-model", "realTime"])) : D("", !0),
5064
- o.map ? (y(), R(K, B({
5064
+ o.map ? (y(), R(Q, B({
5065
5065
  key: 17,
5066
5066
  ref: "idmFollowPosition",
5067
5067
  map: o.map,
@@ -5074,15 +5074,15 @@ function hl(t, e, o, i, a, r) {
5074
5074
  const pl = /* @__PURE__ */ Y(el, [["render", hl]]);
5075
5075
  class lo {
5076
5076
  constructor(e) {
5077
- ce(this, "map");
5078
- ce(this, "mercator");
5079
- ce(this, "rampColorLayer");
5080
- ce(this, "rampColorSource");
5081
- ce(this, "particleLayer");
5082
- ce(this, "particleSource");
5083
- ce(this, "rampColorCanvas");
5084
- ce(this, "particleCanvas");
5085
- ce(this, "ratio");
5077
+ de(this, "map");
5078
+ de(this, "mercator");
5079
+ de(this, "rampColorLayer");
5080
+ de(this, "rampColorSource");
5081
+ de(this, "particleLayer");
5082
+ de(this, "particleSource");
5083
+ de(this, "rampColorCanvas");
5084
+ de(this, "particleCanvas");
5085
+ de(this, "ratio");
5086
5086
  this.map = e, this.mercator = new Ja(), this.rampColorLayer = "ramp-color-layer", this.rampColorSource = "ramp-color-source", this.particleLayer = "particle-layer", this.particleSource = "particle-source", this.rampColorCanvas = document.createElement("canvas"), this.particleCanvas = document.createElement("canvas"), this.ratio = window.devicePixelRatio;
5087
5087
  }
5088
5088
  /**
@@ -5122,8 +5122,8 @@ class lo {
5122
5122
  const e = (g = this.map) == null ? void 0 : g.getBounds();
5123
5123
  if (!e)
5124
5124
  return [];
5125
- const o = ((z = this.map) == null ? void 0 : z.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, l] = this.convertNLng(i[0]), [c, n] = this.convertNLng(a[0]), [p, h] = this.mercator.px([r, i[1]], o), [b, x] = this.mercator.px([c, a[1]], o), k = Math.round(this.mercator.size * Math.pow(2, o) * (l + n));
5126
- return [b, x, p + k, h];
5125
+ const o = ((z = this.map) == null ? void 0 : z.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, l] = this.convertNLng(i[0]), [c, n] = this.convertNLng(a[0]), [u, h] = this.mercator.px([r, i[1]], o), [b, x] = this.mercator.px([c, a[1]], o), k = Math.round(this.mercator.size * Math.pow(2, o) * (l + n));
5126
+ return [b, x, u + k, h];
5127
5127
  }
5128
5128
  /**
5129
5129
  * [视窗边界像素宽度]
@@ -5228,13 +5228,13 @@ class Fe {
5228
5228
  if (a) {
5229
5229
  const r = { program: a }, l = e.getProgramParameter(a, e.ACTIVE_ATTRIBUTES);
5230
5230
  for (let n = 0; n < l; n++) {
5231
- const p = e.getActiveAttrib(a, n);
5232
- r[p.name] = e.getAttribLocation(a, p.name);
5231
+ const u = e.getActiveAttrib(a, n);
5232
+ r[u.name] = e.getAttribLocation(a, u.name);
5233
5233
  }
5234
5234
  const c = e.getProgramParameter(a, e.ACTIVE_UNIFORMS);
5235
5235
  for (let n = 0; n < c; n++) {
5236
- const p = e.getActiveUniform(a, n);
5237
- r[p.name] = e.getUniformLocation(a, p.name);
5236
+ const u = e.getActiveUniform(a, n);
5237
+ r[u.name] = e.getUniformLocation(a, u.name);
5238
5238
  }
5239
5239
  return r;
5240
5240
  }
@@ -5249,8 +5249,8 @@ class Fe {
5249
5249
  const c = l.getContext("2d");
5250
5250
  if (c && e) {
5251
5251
  const n = c == null ? void 0 : c.createLinearGradient(0, 0, 256, 0);
5252
- return o.forEach(([p, h]) => {
5253
- n.addColorStop(p, h);
5252
+ return o.forEach(([u, h]) => {
5253
+ n.addColorStop(u, h);
5254
5254
  }), c.fillStyle = n, c.fillRect(0, 0, 256, 1), {
5255
5255
  canvas: l,
5256
5256
  texture: this.createTexture(
@@ -5272,8 +5272,8 @@ class Fe {
5272
5272
  const l = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i), c = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i), n = new Float32Array(a);
5273
5273
  for (let h = 0; h < a; h++)
5274
5274
  n[h] = h;
5275
- const p = this.createDataBuffer(e, "array", n);
5276
- return { resolution: i, total: a, texture0: l, texture1: c, indexBuffer: p };
5275
+ const u = this.createDataBuffer(e, "array", n);
5276
+ return { resolution: i, total: a, texture0: l, texture1: c, indexBuffer: u };
5277
5277
  }
5278
5278
  bind(e, o, i) {
5279
5279
  const a = this.createProgram(e, o, i);
@@ -5288,13 +5288,13 @@ class Fe {
5288
5288
  return {};
5289
5289
  }
5290
5290
  bindParticle(e, o, i, a, r, l) {
5291
- const c = this.createProgramWrapper(e, o, i), n = this.createProgramWrapper(e, a, r), p = this.createProgramWrapper(e, a, l), h = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), b = e.createFramebuffer();
5292
- return { particle: c, screen: n, update: p, quadBuffer: h, frameBuffer: b };
5291
+ const c = this.createProgramWrapper(e, o, i), n = this.createProgramWrapper(e, a, r), u = this.createProgramWrapper(e, a, l), h = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), b = e.createFramebuffer();
5292
+ return { particle: c, screen: n, update: u, quadBuffer: h, frameBuffer: b };
5293
5293
  }
5294
5294
  draw(e, o, i, a, r, l, c) {
5295
- var n, p;
5295
+ var n, u;
5296
5296
  if (o && i) {
5297
- e.resize(), o == null || o.viewport(0, 0, (n = o == null ? void 0 : o.canvas) == null ? void 0 : n.width, (p = o == null ? void 0 : o.canvas) == null ? void 0 : p.height), o.clearColor(0, 0, 0, 0), o.clear(o.COLOR_BUFFER_BIT | o.DEPTH_BUFFER_BIT);
5297
+ e.resize(), o == null || o.viewport(0, 0, (n = o == null ? void 0 : o.canvas) == null ? void 0 : n.width, (u = o == null ? void 0 : o.canvas) == null ? void 0 : u.height), o.clearColor(0, 0, 0, 0), o.clear(o.COLOR_BUFFER_BIT | o.DEPTH_BUFFER_BIT);
5298
5298
  try {
5299
5299
  o.useProgram(i);
5300
5300
  const h = {
@@ -5357,10 +5357,10 @@ class Fe {
5357
5357
  });
5358
5358
  }
5359
5359
  }
5360
- class se {
5360
+ class le {
5361
5361
  }
5362
5362
  // 顶点渲染
5363
- ce(se, "vertexSchema", `
5363
+ de(le, "vertexSchema", `
5364
5364
  //canvas 坐标系上的坐标 (x, y)
5365
5365
  attribute vec2 a_position; //像素坐标
5366
5366
  attribute vec2 a_texCoord; //纹理坐标
@@ -5375,7 +5375,7 @@ ce(se, "vertexSchema", `
5375
5375
  gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
5376
5376
  v_texCoord = a_texCoord;
5377
5377
  }`), // 类如风、流等u v双变量片元渲染
5378
- ce(se, "uvFragmentSchema", `
5378
+ de(le, "uvFragmentSchema", `
5379
5379
  precision mediump float;
5380
5380
  uniform sampler2D u_image;
5381
5381
  uniform vec2 u_range_u_v;
@@ -5395,7 +5395,7 @@ ce(se, "uvFragmentSchema", `
5395
5395
 
5396
5396
  gl_FragColor = color;
5397
5397
  }`), // 类如浪、气压等单变量片元渲染
5398
- ce(se, "fragmentSchema", `
5398
+ de(le, "fragmentSchema", `
5399
5399
  precision mediump float;
5400
5400
  uniform sampler2D u_image; // 灰度
5401
5401
  uniform sampler2D u_color; // 色值映射
@@ -5408,7 +5408,7 @@ ce(se, "fragmentSchema", `
5408
5408
  }`);
5409
5409
  class ke {
5410
5410
  }
5411
- ce(ke, "vertexSchema", `
5411
+ de(ke, "vertexSchema", `
5412
5412
  precision mediump float;
5413
5413
 
5414
5414
  attribute float a_index; // 索引
@@ -5432,7 +5432,7 @@ ce(ke, "vertexSchema", `
5432
5432
  gl_PointSize = 1.0;
5433
5433
  // gl_PointSize = u_point;
5434
5434
  gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
5435
- }`), ce(ke, "fragmentSchema", `
5435
+ }`), de(ke, "fragmentSchema", `
5436
5436
  precision mediump float;
5437
5437
 
5438
5438
  uniform sampler2D u_factor;
@@ -5454,7 +5454,7 @@ ce(ke, "vertexSchema", `
5454
5454
 
5455
5455
  float f = 1.0 - uv.b;
5456
5456
  gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
5457
- }`), ce(ke, "quadVertSchema", `
5457
+ }`), de(ke, "quadVertSchema", `
5458
5458
  precision mediump float;
5459
5459
 
5460
5460
  attribute vec2 a_pos;
@@ -5464,7 +5464,7 @@ ce(ke, "vertexSchema", `
5464
5464
  void main() {
5465
5465
  v_tex_pos = a_pos;
5466
5466
  gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
5467
- }`), ce(ke, "screenFragmentSchema", `
5467
+ }`), de(ke, "screenFragmentSchema", `
5468
5468
  precision mediump float;
5469
5469
 
5470
5470
  uniform sampler2D u_screen;
@@ -5476,7 +5476,7 @@ ce(ke, "vertexSchema", `
5476
5476
  vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
5477
5477
  // a hack to guarantee opacity fade out even with a value close to 1.0
5478
5478
  gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
5479
- }`), ce(ke, "updateFragmentSchema", `
5479
+ }`), de(ke, "updateFragmentSchema", `
5480
5480
  precision mediump float;
5481
5481
 
5482
5482
  uniform sampler2D u_particles;
@@ -5656,17 +5656,17 @@ const ul = {
5656
5656
  else {
5657
5657
  this.map.addSource(this.source, { type: "geojson", data: r });
5658
5658
  for (let l = 0; l < (this.barbs ?? []).length - 1; l++) {
5659
- const c = (this.barbs ?? [])[l] || 0, n = (this.barbs ?? [])[l + 1] || 0, p = c < 10 ? `00${c}kts` : c < 100 ? `0${c}kts` : `${c}kts`, h = new Image(48, 48);
5660
- h.src = "data:image/svg+xml;base64," + window.btoa(this.svgs[p]), h.onload = () => {
5661
- this.map.hasImage(p + "-icon") || this.map.addImage(p + "-icon", h), this.map.addLayer(
5659
+ const c = (this.barbs ?? [])[l] || 0, n = (this.barbs ?? [])[l + 1] || 0, u = c < 10 ? `00${c}kts` : c < 100 ? `0${c}kts` : `${c}kts`, h = new Image(48, 48);
5660
+ h.src = "data:image/svg+xml;base64," + window.btoa(this.svgs[u]), h.onload = () => {
5661
+ this.map.hasImage(u + "-icon") || this.map.addImage(u + "-icon", h), this.map.addLayer(
5662
5662
  {
5663
- id: p,
5663
+ id: u,
5664
5664
  type: "symbol",
5665
5665
  filter: ["all", [">=", "spd", c], ["<", "spd", n]],
5666
5666
  source: this.source,
5667
5667
  layout: {
5668
5668
  "symbol-placement": "point",
5669
- "icon-image": p + "-icon",
5669
+ "icon-image": u + "-icon",
5670
5670
  // mapbox sprite
5671
5671
  "icon-size": 0.5,
5672
5672
  "icon-offset": [0, -20],
@@ -5824,7 +5824,7 @@ const bl = {
5824
5824
  [1, "rgb(91, 136, 161)"]
5825
5825
  ];
5826
5826
  this.rampColor = this.webgl.setup(this.context, t);
5827
- const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, se.vertexSchema, se.uvFragmentSchema);
5827
+ const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, le.vertexSchema, le.uvFragmentSchema);
5828
5828
  this.program = e, this.aPositionBuffer = o;
5829
5829
  }
5830
5830
  this.handleParticleSetup();
@@ -6006,11 +6006,11 @@ const vl = /* @__PURE__ */ Y(bl, [["render", xl]]), _l = {
6006
6006
  );
6007
6007
  const l = new Image(48, 48), c = '<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="12518" width="200" height="200"><path d="M481.386772 959.514313 481.386772 334.713224c-56.000432 37.288255-92.523253 55.876612-142.312216 57.787124 85.834924-84.884272 130.528845-195.161888 172.552961-328.434218 40.259936 133.272329 89.39296 238.731196 172.622546 328.434218-54.105269-5.729491-86.780459-21.201881-146.338926-58.965973l0 625.979938L481.386772 959.514313z" p-id="12519" fill="#ffffff"></path></svg>';
6008
6008
  l.src = "data:image/svg+xml;base64," + window.btoa(c);
6009
- const n = new Image(48, 48), p = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
6009
+ const n = new Image(48, 48), u = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
6010
6010
  <path d="M10 2.5V17.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
6011
6011
  <path d="M5 7.5L10 2.5L15 7.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
6012
6012
  </svg>`;
6013
- n.src = "data:image/svg+xml;base64," + window.btoa(p);
6013
+ n.src = "data:image/svg+xml;base64," + window.btoa(u);
6014
6014
  const h = [n];
6015
6015
  let b = 0;
6016
6016
  h.forEach((x) => {
@@ -6157,7 +6157,7 @@ const Ll = {
6157
6157
  [1, "rgb(195,194,194)"]
6158
6158
  ];
6159
6159
  this.rampColor = this.webgl.setup(this.context, t);
6160
- const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, se.vertexSchema, se.uvFragmentSchema);
6160
+ const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, le.vertexSchema, le.uvFragmentSchema);
6161
6161
  this.program = e, this.aPositionBuffer = o;
6162
6162
  }
6163
6163
  this.handleParticleSetup();
@@ -6329,7 +6329,7 @@ const Sl = {
6329
6329
  //13
6330
6330
  ];
6331
6331
  this.rampColor = this.webgl.setup(this.context, t);
6332
- const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
6332
+ const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
6333
6333
  this.program = e, this.aPositionBuffer = o;
6334
6334
  }
6335
6335
  },
@@ -6601,7 +6601,7 @@ const Bl = {
6601
6601
  //13
6602
6602
  ];
6603
6603
  this.rampColor = this.webgl.setup(this.context, t);
6604
- const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
6604
+ const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
6605
6605
  this.program = e, this.aPositionBuffer = o;
6606
6606
  }
6607
6607
  },
@@ -6789,12 +6789,12 @@ function Gl(t, e, o, i, a, r) {
6789
6789
  class: "menu-bar-box pa-1 rounded",
6790
6790
  style: ie({ right: a.right + "px" })
6791
6791
  }, [
6792
- u(c, {
6792
+ p(c, {
6793
6793
  text: "Map Layers",
6794
6794
  location: "left"
6795
6795
  }, {
6796
- activator: f(({ props: p }) => [
6797
- u(l, B(p, {
6796
+ activator: f(({ props: u }) => [
6797
+ p(l, B(u, {
6798
6798
  "min-width": "32",
6799
6799
  width: "32",
6800
6800
  height: "32",
@@ -6900,7 +6900,7 @@ const Ul = {
6900
6900
  // 100%
6901
6901
  ];
6902
6902
  this.rampColor = this.webgl.setup(this.context, t);
6903
- const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
6903
+ const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
6904
6904
  this.program = e, this.aPositionBuffer = o;
6905
6905
  }
6906
6906
  },
@@ -7013,7 +7013,7 @@ const ql = {
7013
7013
  // 100%
7014
7014
  ];
7015
7015
  this.rampColor = this.webgl.setup(this.context, t);
7016
- const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
7016
+ const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
7017
7017
  this.program = e, this.aPositionBuffer = o;
7018
7018
  }
7019
7019
  },
@@ -7127,7 +7127,7 @@ const Ql = {
7127
7127
  // 4m
7128
7128
  ];
7129
7129
  this.rampColor = this.webgl.setup(this.context, t);
7130
- const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
7130
+ const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
7131
7131
  this.program = e, this.aPositionBuffer = o;
7132
7132
  }
7133
7133
  },
@@ -7243,7 +7243,7 @@ const on = {
7243
7243
  [1, "rgba(197,5,58,0.8)"]
7244
7244
  ];
7245
7245
  this.rampColor = this.webgl.setup(this.context, t);
7246
- const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
7246
+ const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
7247
7247
  this.program = e, this.aPositionBuffer = o;
7248
7248
  }
7249
7249
  },
@@ -7350,7 +7350,7 @@ const ln = {
7350
7350
  [1, "rgba(144,144,144,0)"]
7351
7351
  ];
7352
7352
  this.rampColor = this.webgl.setup(this.context, t);
7353
- const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
7353
+ const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
7354
7354
  this.program = e, this.aPositionBuffer = o;
7355
7355
  }
7356
7356
  },
@@ -7458,7 +7458,7 @@ const dn = {
7458
7458
  //
7459
7459
  ];
7460
7460
  this.rampColor = this.webgl.setup(this.context, t);
7461
- const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
7461
+ const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
7462
7462
  this.program = e, this.aPositionBuffer = o;
7463
7463
  }
7464
7464
  },
@@ -7577,7 +7577,7 @@ const gn = {
7577
7577
  [1, "rgb(138, 43, 10)"]
7578
7578
  ];
7579
7579
  this.rampColor = this.webgl.setup(this.context, t);
7580
- const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, se.vertexSchema, se.fragmentSchema);
7580
+ const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
7581
7581
  this.program = e, this.aPositionBuffer = o;
7582
7582
  }
7583
7583
  },
@@ -7873,7 +7873,7 @@ const wn = {
7873
7873
  (t == null ? void 0 : t.data.code) === 0 && (this.models = t == null ? void 0 : t.data.data);
7874
7874
  },
7875
7875
  async fetchWeatherLayers(t = {}) {
7876
- var a, r, l, c, n, p, h, b, x;
7876
+ var a, r, l, c, n, u, h, b, x;
7877
7877
  const e = (/* @__PURE__ */ new Date()).valueOf();
7878
7878
  let o = 0, i = 0;
7879
7879
  if (this.map) {
@@ -7923,7 +7923,7 @@ const wn = {
7923
7923
  });
7924
7924
  }
7925
7925
  if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather layers elapsed: ", i, ", total: ", o += i), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
7926
- const P = (p = this.weatherLayers["swell-direction"]) == null ? void 0 : p.raw, _ = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
7926
+ const P = (u = this.weatherLayers["swell-direction"]) == null ? void 0 : u.raw, _ = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
7927
7927
  delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
7928
7928
  type: "json",
7929
7929
  direction: P,
@@ -7959,7 +7959,7 @@ const wn = {
7959
7959
  t != null && t.sourceChanged || this.weatherWeight !== e ? (this.weatherWeight = e, this.fetchWeatherLayers()) : this.handleWeatherLayerToggle();
7960
7960
  },
7961
7961
  handleRampColorInitial() {
7962
- var t, e, o, i, a, r, l, c, n, p, h, b;
7962
+ var t, e, o, i, a, r, l, c, n, u, h, b;
7963
7963
  this.viewport.map.getSource((t = this.viewport) == null ? void 0 : t.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
7964
7964
  type: "canvas",
7965
7965
  canvas: (o = this.viewport) == null ? void 0 : o.rampColorCanvas,
@@ -7980,7 +7980,7 @@ const wn = {
7980
7980
  canvas: (n = this.viewport) == null ? void 0 : n.particleCanvas,
7981
7981
  animate: !0,
7982
7982
  coordinates: this.viewport.getBoundLngLat()
7983
- }), this.viewport.map.getLayer((p = this.viewport) == null ? void 0 : p.particleLayer) || this.viewport.map.addLayer(
7983
+ }), this.viewport.map.getLayer((u = this.viewport) == null ? void 0 : u.particleLayer) || this.viewport.map.addLayer(
7984
7984
  {
7985
7985
  type: "raster",
7986
7986
  id: (h = this.viewport) == null ? void 0 : h.particleLayer,
@@ -7993,10 +7993,10 @@ const wn = {
7993
7993
  );
7994
7994
  },
7995
7995
  handleDrawWeather4Json() {
7996
- var p, h, b, x, k, g, z;
7996
+ var u, h, b, x, k, g, z;
7997
7997
  const t = (/* @__PURE__ */ new Date()).valueOf();
7998
7998
  let e = 0, o = 0;
7999
- const i = (p = this.map) == null ? void 0 : p.getBounds(), a = (h = this.map) == null ? void 0 : h.getZoom(), r = $.convertToStdLng(i._sw.lng), l = $.convertToStdLng(i._ne.lng), c = Math.floor(i._sw.lat), n = Math.ceil(i._ne.lat);
7999
+ const i = (u = this.map) == null ? void 0 : u.getBounds(), a = (h = this.map) == null ? void 0 : h.getZoom(), r = K.convertToStdLng(i._sw.lng), l = K.convertToStdLng(i._ne.lng), c = Math.floor(i._sw.lat), n = Math.ceil(i._ne.lat);
8000
8000
  for (const T in this.weatherLayers) {
8001
8001
  let O = !1;
8002
8002
  if (this.weatherLayers[T].active && this.weatherLayers[T].type === "json") {
@@ -8008,38 +8008,38 @@ const wn = {
8008
8008
  if (L > c && L < n && (!(a <= this.zoom) || L % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8009
8009
  const C = P[L].lng;
8010
8010
  r > l ? C.forEach((v, A) => {
8011
- var N, V, Z, U, ee, K;
8011
+ var N, V, Z, U, ee, Q;
8012
8012
  if (a < 2) {
8013
8013
  if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
8014
- const J = H.point([v, L], {
8014
+ const X = H.point([v, L], {
8015
8015
  val: ((N = P[L].val) == null ? void 0 : N[A]) || ((V = P[L].dir) == null ? void 0 : V[A]),
8016
8016
  spd: (Z = P[L].spd) == null ? void 0 : Z[A]
8017
8017
  });
8018
- I.push(J);
8018
+ I.push(X);
8019
8019
  }
8020
8020
  } else if ((v >= r && v <= 180 || v >= -180 && v <= l) && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8021
- const J = H.point([v, L], {
8021
+ const X = H.point([v, L], {
8022
8022
  val: ((U = P[L].val) == null ? void 0 : U[A]) || ((ee = P[L].dir) == null ? void 0 : ee[A]),
8023
- spd: (K = P[L].spd) == null ? void 0 : K[A]
8023
+ spd: (Q = P[L].spd) == null ? void 0 : Q[A]
8024
8024
  });
8025
- I.push(J);
8025
+ I.push(X);
8026
8026
  }
8027
8027
  }) : C.forEach((v, A) => {
8028
- var N, V, Z, U, ee, K;
8028
+ var N, V, Z, U, ee, Q;
8029
8029
  if (r < 2) {
8030
8030
  if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
8031
- const J = H.point([v, L], {
8031
+ const X = H.point([v, L], {
8032
8032
  val: ((N = P[L].val) == null ? void 0 : N[A]) || ((V = P[L].dir) == null ? void 0 : V[A]),
8033
8033
  spd: (Z = P[L].spd) == null ? void 0 : Z[A]
8034
8034
  });
8035
- I.push(J);
8035
+ I.push(X);
8036
8036
  }
8037
8037
  } else if (v >= r && v <= l && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8038
- const J = H.point([v, L], {
8038
+ const X = H.point([v, L], {
8039
8039
  val: ((U = P[L].val) == null ? void 0 : U[A]) || ((ee = P[L].dir) == null ? void 0 : ee[A]),
8040
- spd: (K = P[L].spd) == null ? void 0 : K[A]
8040
+ spd: (Q = P[L].spd) == null ? void 0 : Q[A]
8041
8041
  });
8042
- I.push(J);
8042
+ I.push(X);
8043
8043
  }
8044
8044
  });
8045
8045
  }
@@ -8072,38 +8072,38 @@ const wn = {
8072
8072
  if (L > c && L < n && (!(a <= this.zoom) || L % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8073
8073
  const C = P[L].lng;
8074
8074
  r > l ? C.forEach((v, A) => {
8075
- var N, V, Z, U, ee, K;
8075
+ var N, V, Z, U, ee, Q;
8076
8076
  if (a < 2) {
8077
8077
  if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
8078
- const J = H.point([v, L], {
8078
+ const X = H.point([v, L], {
8079
8079
  val: ((N = P[L].val) == null ? void 0 : N[A]) || ((V = P[L].dir) == null ? void 0 : V[A]),
8080
8080
  spd: (Z = P[L].spd) == null ? void 0 : Z[A]
8081
8081
  });
8082
- I.push(J);
8082
+ I.push(X);
8083
8083
  }
8084
8084
  } else if ((v >= r && v <= 180 || v >= -180 && v <= l) && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8085
- const J = H.point([v, L], {
8085
+ const X = H.point([v, L], {
8086
8086
  val: ((U = P[L].val) == null ? void 0 : U[A]) || ((ee = P[L].dir) == null ? void 0 : ee[A]),
8087
- spd: (K = P[L].spd) == null ? void 0 : K[A]
8087
+ spd: (Q = P[L].spd) == null ? void 0 : Q[A]
8088
8088
  });
8089
- I.push(J);
8089
+ I.push(X);
8090
8090
  }
8091
8091
  }) : C.forEach((v, A) => {
8092
- var N, V, Z, U, ee, K;
8092
+ var N, V, Z, U, ee, Q;
8093
8093
  if (r < 2) {
8094
8094
  if ((v >= 0 && v <= 360 || v >= -360 && v <= 0) && v % 10 === 0) {
8095
- const J = H.point([v, L], {
8095
+ const X = H.point([v, L], {
8096
8096
  val: ((N = P[L].val) == null ? void 0 : N[A]) || ((V = P[L].dir) == null ? void 0 : V[A]),
8097
8097
  spd: (Z = P[L].spd) == null ? void 0 : Z[A]
8098
8098
  });
8099
- I.push(J);
8099
+ I.push(X);
8100
8100
  }
8101
8101
  } else if (v >= r && v <= l && (!(a <= this.zoom) || v % (a < this.zoom / 2 ? 5 : 3) === 0)) {
8102
- const J = H.point([v, L], {
8102
+ const X = H.point([v, L], {
8103
8103
  val: ((U = P[L].val) == null ? void 0 : U[A]) || ((ee = P[L].dir) == null ? void 0 : ee[A]),
8104
- spd: (K = P[L].spd) == null ? void 0 : K[A]
8104
+ spd: (Q = P[L].spd) == null ? void 0 : Q[A]
8105
8105
  });
8106
- I.push(J);
8106
+ I.push(X);
8107
8107
  }
8108
8108
  });
8109
8109
  }
@@ -8227,7 +8227,7 @@ const wn = {
8227
8227
  }
8228
8228
  for (const L in P.Point)
8229
8229
  P.Point[L].lng.forEach((C, v) => {
8230
- C = $.convertToStdLng(C), _.push(
8230
+ C = K.convertToStdLng(C), _.push(
8231
8231
  H.point([C, L], {
8232
8232
  val: P.Point[L].val[v],
8233
8233
  type: P.Point[L].type[v]
@@ -8249,7 +8249,7 @@ const wn = {
8249
8249
  this.handleDrawWeather4Json();
8250
8250
  },
8251
8251
  handleBboxClip(t, e) {
8252
- const o = [], i = $.convertToStdLng(e._sw.lng), a = $.convertToStdLng(e._ne.lng);
8252
+ const o = [], i = K.convertToStdLng(e._sw.lng), a = K.convertToStdLng(e._ne.lng);
8253
8253
  return t.features.forEach((r) => {
8254
8254
  if (r.geometry.type !== "Point")
8255
8255
  if (i > a) {
@@ -8281,19 +8281,19 @@ const wn = {
8281
8281
  class: "d-flex justify-start align-center ga-4 pl-6"
8282
8282
  }, On = { class: "text-body-1 py-2" }, Bn = { class: "text-body-1 font-weight-medium" }, En = { class: "text-body-2 text-label" }, jn = { class: "text-body-2 text-label mb-3" }, Nn = { class: "text-body-1 font-weight-medium" }, Fn = { class: "text-body-2 text-label" }, Hn = { class: "text-body-2 text-label mb-3" }, Gn = { class: "text-body-1 py-2" }, Wn = { class: "text-body-1 font-weight-medium" }, Un = { class: "text-body-2 text-label" }, Vn = { class: "text-body-2 text-label mb-3" }, Zn = { class: "text-body-1 font-weight-medium" }, Yn = { class: "text-body-2 text-label" }, qn = { class: "text-body-2 text-label mb-3" }, Xn = { class: "text-body-1 py-2" }, $n = { class: "text-body-1 font-weight-medium" }, Kn = { class: "text-body-2 text-label" }, Qn = { class: "text-body-2 text-label mb-3" };
8283
8283
  function Jn(t, e, o, i, a, r) {
8284
- var Q, ae, de, le, he, ge, F, ne, xe, Le, Pe, De, Ae, Re, _e;
8285
- const l = w("VBtn"), c = w("VTooltip"), n = w("VCol"), p = w("VRow"), h = w("VCardText"), b = w("VDivider"), x = w("VCard"), k = w("VSwitch"), g = w("VCardTitle"), z = w("VCardItem"), T = w("VCheckbox"), O = w("VRadio"), I = w("VBtnToggle"), P = w("IdmWindBarb"), _ = w("IdmSigWaveHeight"), L = w("IdmCurrentDirection"), C = w("IdmPrmsl"), v = w("IdmWindParticle"), A = w("IdmCurrentParticle"), N = w("IdmWave"), V = w("IdmSwell"), Z = w("IdmIceEdge"), U = w("IdmIceCover"), ee = w("IdmIceThickness"), K = w("IdmPrecip3h"), J = w("IdmVisibility"), pe = w("IdmWaterTemp"), me = w("IdmTemp");
8284
+ var J, ae, he, ce, pe, ge, F, me, xe, Le, Pe, De, Ae, Re, _e;
8285
+ const l = w("VBtn"), c = w("VTooltip"), n = w("VCol"), u = w("VRow"), h = w("VCardText"), b = w("VDivider"), x = w("VCard"), k = w("VSwitch"), g = w("VCardTitle"), z = w("VCardItem"), T = w("VCheckbox"), O = w("VRadio"), I = w("VBtnToggle"), P = w("IdmWindBarb"), _ = w("IdmSigWaveHeight"), L = w("IdmCurrentDirection"), C = w("IdmPrmsl"), v = w("IdmWindParticle"), A = w("IdmCurrentParticle"), N = w("IdmWave"), V = w("IdmSwell"), Z = w("IdmIceEdge"), U = w("IdmIceCover"), ee = w("IdmIceThickness"), Q = w("IdmPrecip3h"), X = w("IdmVisibility"), ne = w("IdmWaterTemp"), se = w("IdmTemp");
8286
8286
  return y(), S("div", xn, [
8287
8287
  s("div", {
8288
8288
  class: "menu-bar-box transition pa-1",
8289
8289
  style: ie({ top: o.top + 94 + "px", right: a.right + "px" })
8290
8290
  }, [
8291
- u(c, {
8291
+ p(c, {
8292
8292
  text: t.$t("weather.weatherLayers"),
8293
8293
  location: "left"
8294
8294
  }, {
8295
8295
  activator: f(({ props: G }) => [
8296
- u(l, B(G, {
8296
+ p(l, B(G, {
8297
8297
  "min-width": "32",
8298
8298
  width: "32",
8299
8299
  height: "32",
@@ -8315,12 +8315,12 @@ function Jn(t, e, o, i, a, r) {
8315
8315
  class: "menu-bar-box pa-1 rounded",
8316
8316
  style: ie({ right: a.right + "px" })
8317
8317
  }, [
8318
- u(c, {
8318
+ p(c, {
8319
8319
  text: "Legend",
8320
8320
  location: "left"
8321
8321
  }, {
8322
8322
  activator: f(({ props: G }) => [
8323
- u(l, B(G, {
8323
+ p(l, B(G, {
8324
8324
  "min-width": "32",
8325
8325
  width: "32",
8326
8326
  height: "32",
@@ -8345,10 +8345,10 @@ function Jn(t, e, o, i, a, r) {
8345
8345
  style: ie({ position: "absolute", top: "340px", right: a.right + 50 + "px" })
8346
8346
  }, {
8347
8347
  default: f(() => [
8348
- u(h, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
8348
+ p(h, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
8349
8349
  default: f(() => [
8350
8350
  e[10] || (e[10] = s("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wind Level", -1)),
8351
- u(p, { class: "ma-0 ml-n1 text-body-2" }, {
8351
+ p(u, { class: "ma-0 ml-n1 text-body-2" }, {
8352
8352
  default: f(() => [
8353
8353
  (y(!0), S(be, null, we(a.legend.barbs, (G, te) => (y(), R(n, {
8354
8354
  key: G,
@@ -8373,11 +8373,11 @@ function Jn(t, e, o, i, a, r) {
8373
8373
  _: 1,
8374
8374
  __: [10]
8375
8375
  }),
8376
- u(b, { vertical: "" }),
8377
- u(h, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
8376
+ p(b, { vertical: "" }),
8377
+ p(h, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
8378
8378
  default: f(() => [
8379
8379
  e[11] || (e[11] = s("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wave Height", -1)),
8380
- u(p, {
8380
+ p(u, {
8381
8381
  class: "ma-0 ml-1",
8382
8382
  style: { width: "100px" }
8383
8383
  }, {
@@ -8405,11 +8405,11 @@ function Jn(t, e, o, i, a, r) {
8405
8405
  _: 1,
8406
8406
  __: [11]
8407
8407
  }),
8408
- u(b, { vertical: "" }),
8409
- u(h, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
8408
+ p(b, { vertical: "" }),
8409
+ p(h, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
8410
8410
  default: f(() => [
8411
8411
  e[12] || (e[12] = s("div", { class: "text-body-1 font-weight-600 mb-2" }, "Current", -1)),
8412
- u(p, {
8412
+ p(u, {
8413
8413
  class: "ma-0 ml-n5",
8414
8414
  style: { width: "110px" }
8415
8415
  }, {
@@ -8450,7 +8450,7 @@ function Jn(t, e, o, i, a, r) {
8450
8450
  s("div", Mn, [
8451
8451
  s("div", In, [
8452
8452
  s("div", Dn, m(t.$t("weather.weather")), 1),
8453
- u(k, {
8453
+ p(k, {
8454
8454
  modelValue: a.autoActive,
8455
8455
  "onUpdate:modelValue": e[1] || (e[1] = (G) => a.autoActive = G),
8456
8456
  class: "small-switch",
@@ -8460,7 +8460,7 @@ function Jn(t, e, o, i, a, r) {
8460
8460
  "hide-details": ""
8461
8461
  }, null, 8, ["modelValue"])
8462
8462
  ]),
8463
- u(l, {
8463
+ p(l, {
8464
8464
  icon: "",
8465
8465
  density: "compact",
8466
8466
  variant: "plain",
@@ -8477,26 +8477,26 @@ function Jn(t, e, o, i, a, r) {
8477
8477
  s("div", {
8478
8478
  class: Ne(["list-box scroll pl-4 pr-2 overflow-y-auto", a.autoActive ? "" : "cursor-not-allowed"])
8479
8479
  }, [
8480
- u(x, {
8480
+ p(x, {
8481
8481
  class: "block-bg mx-auto mb-3",
8482
8482
  elevation: "0"
8483
8483
  }, {
8484
8484
  default: f(() => [
8485
- u(z, { class: "border-b-thin" }, {
8485
+ p(z, { class: "border-b-thin" }, {
8486
8486
  default: f(() => [
8487
- u(g, {
8487
+ p(g, {
8488
8488
  class: "text-subtitle-1 font-weight-medium",
8489
8489
  style: { "font-size": "16px !important" }
8490
8490
  }, {
8491
8491
  default: f(() => [
8492
- X(m(t.$t("weather.overlays")), 1)
8492
+ $(m(t.$t("weather.overlays")), 1)
8493
8493
  ]),
8494
8494
  _: 1
8495
8495
  })
8496
8496
  ]),
8497
8497
  _: 1
8498
8498
  }),
8499
- u(h, { class: "py-2" }, {
8499
+ p(h, { class: "py-2" }, {
8500
8500
  default: f(() => [
8501
8501
  (y(!0), S(be, null, we(a.tagLayers.filter((G) => G.overlays), (G) => (y(), R(T, {
8502
8502
  key: G.key,
@@ -8517,31 +8517,31 @@ function Jn(t, e, o, i, a, r) {
8517
8517
  ]),
8518
8518
  _: 1
8519
8519
  }),
8520
- u(x, {
8520
+ p(x, {
8521
8521
  class: "block-bg mx-auto mb-3",
8522
8522
  elevation: "0"
8523
8523
  }, {
8524
8524
  default: f(() => [
8525
- u(z, { class: "border-b-thin" }, {
8525
+ p(z, { class: "border-b-thin" }, {
8526
8526
  default: f(() => [
8527
- u(g, {
8527
+ p(g, {
8528
8528
  class: "text-subtitle-1 font-weight-medium",
8529
8529
  style: { "font-size": "16px !important" }
8530
8530
  }, {
8531
8531
  default: f(() => [
8532
- X(m(t.$t("weather.renders")), 1)
8532
+ $(m(t.$t("weather.renders")), 1)
8533
8533
  ]),
8534
8534
  _: 1
8535
8535
  })
8536
8536
  ]),
8537
8537
  _: 1
8538
8538
  }),
8539
- u(h, { class: "py-2" }, {
8539
+ p(h, { class: "py-2" }, {
8540
8540
  default: f(() => [
8541
8541
  (y(!0), S(be, null, we(a.tagLayers.filter((G) => !G.overlays), (G) => (y(), S(be, {
8542
8542
  key: G.key
8543
8543
  }, [
8544
- u(O, {
8544
+ p(O, {
8545
8545
  modelValue: a.renderKey,
8546
8546
  "onUpdate:modelValue": e[3] || (e[3] = (te) => a.renderKey = te),
8547
8547
  label: t.$t(`weather.${G.locale}`),
@@ -8556,7 +8556,7 @@ function Jn(t, e, o, i, a, r) {
8556
8556
  }, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
8557
8557
  a.renderKey === "wind-particle" && G.key === "wind-particle" ? (y(), S("div", An, [
8558
8558
  s("span", null, m(t.$t("weather.particleAnimatiom")), 1),
8559
- u(k, {
8559
+ p(k, {
8560
8560
  modelValue: a.showWindParticle,
8561
8561
  "onUpdate:modelValue": e[4] || (e[4] = (te) => a.showWindParticle = te),
8562
8562
  label: "",
@@ -8571,7 +8571,7 @@ function Jn(t, e, o, i, a, r) {
8571
8571
  ])) : D("", !0),
8572
8572
  a.renderKey === "current-particle" && G.key === "current-particle" ? (y(), S("div", Rn, [
8573
8573
  s("span", null, m(t.$t("weather.particleAnimatiom")), 1),
8574
- u(k, {
8574
+ p(k, {
8575
8575
  modelValue: a.showCurrentParticle,
8576
8576
  "onUpdate:modelValue": e[5] || (e[5] = (te) => a.showCurrentParticle = te),
8577
8577
  label: "",
@@ -8596,7 +8596,7 @@ function Jn(t, e, o, i, a, r) {
8596
8596
  disabled: !a.autoActive
8597
8597
  }, {
8598
8598
  default: f(() => [
8599
- u(l, {
8599
+ p(l, {
8600
8600
  density: "compact",
8601
8601
  height: "30",
8602
8602
  value: "sig-wave",
@@ -8606,11 +8606,11 @@ function Jn(t, e, o, i, a, r) {
8606
8606
  disabled: !a.autoActive
8607
8607
  }, {
8608
8608
  default: f(() => [
8609
- X(m(t.$t("weather.significant")), 1)
8609
+ $(m(t.$t("weather.significant")), 1)
8610
8610
  ]),
8611
8611
  _: 1
8612
8612
  }, 8, ["color", "disabled"]),
8613
- u(l, {
8613
+ p(l, {
8614
8614
  density: "compact",
8615
8615
  height: "30",
8616
8616
  class: "w-50 text-none px-2 text-body-1",
@@ -8620,7 +8620,7 @@ function Jn(t, e, o, i, a, r) {
8620
8620
  value: "swell"
8621
8621
  }, {
8622
8622
  default: f(() => [
8623
- X(m(t.$t("weather.swell")), 1)
8623
+ $(m(t.$t("weather.swell")), 1)
8624
8624
  ]),
8625
8625
  _: 1
8626
8626
  }, 8, ["color", "disabled"])
@@ -8639,7 +8639,7 @@ function Jn(t, e, o, i, a, r) {
8639
8639
  disabled: !a.autoActive
8640
8640
  }, {
8641
8641
  default: f(() => [
8642
- u(l, {
8642
+ p(l, {
8643
8643
  density: "compact",
8644
8644
  height: "30",
8645
8645
  value: "ice-cover",
@@ -8649,11 +8649,11 @@ function Jn(t, e, o, i, a, r) {
8649
8649
  disabled: !a.autoActive
8650
8650
  }, {
8651
8651
  default: f(() => [
8652
- X(m(t.$t("weather.coverage")), 1)
8652
+ $(m(t.$t("weather.coverage")), 1)
8653
8653
  ]),
8654
8654
  _: 1
8655
8655
  }, 8, ["color", "disabled"]),
8656
- u(l, {
8656
+ p(l, {
8657
8657
  density: "compact",
8658
8658
  height: "30",
8659
8659
  class: "w-50 text-none px-2 text-body-1",
@@ -8663,7 +8663,7 @@ function Jn(t, e, o, i, a, r) {
8663
8663
  value: "ice-thickness"
8664
8664
  }, {
8665
8665
  default: f(() => [
8666
- X(m(t.$t("weather.thickness")), 1)
8666
+ $(m(t.$t("weather.thickness")), 1)
8667
8667
  ]),
8668
8668
  _: 1
8669
8669
  }, 8, ["color", "disabled"])
@@ -8677,26 +8677,26 @@ function Jn(t, e, o, i, a, r) {
8677
8677
  ]),
8678
8678
  _: 1
8679
8679
  }),
8680
- u(x, {
8680
+ p(x, {
8681
8681
  class: "block-bg mx-auto mb-3",
8682
8682
  elevation: "0"
8683
8683
  }, {
8684
8684
  default: f(() => [
8685
- u(z, { class: "border-b-thin" }, {
8685
+ p(z, { class: "border-b-thin" }, {
8686
8686
  default: f(() => [
8687
- u(g, {
8687
+ p(g, {
8688
8688
  class: "text-subtitle-1 font-weight-medium",
8689
8689
  style: { "font-size": "16px !important" }
8690
8690
  }, {
8691
8691
  default: f(() => [
8692
- X(m(t.$t("weather.forecastModel")), 1)
8692
+ $(m(t.$t("weather.forecastModel")), 1)
8693
8693
  ]),
8694
8694
  _: 1
8695
8695
  })
8696
8696
  ]),
8697
8697
  _: 1
8698
8698
  }),
8699
- u(h, { class: "" }, {
8699
+ p(h, { class: "" }, {
8700
8700
  default: f(() => {
8701
8701
  var G, te, He, Me, ue, fe, W, Ce, oe, re, Oe, j, ye, Ie, Be, Ee, E, q, Ve, Ze, Ye, Te, qe, Xe, $e, Ke, Qe, Je, et, tt, ot, at, it, rt, st, lt, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, Mt, It, Dt, At, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Gt, Wt, Ut, Vt, Zt, Yt, qt, Xt, Kt, Qt, Jt, eo;
8702
8702
  return [
@@ -8707,7 +8707,7 @@ function Jn(t, e, o, i, a, r) {
8707
8707
  s("div", Nn, m((E = (Ee = (Be = a.models) == null ? void 0 : Be.weather) == null ? void 0 : Ee.ECMWF) == null ? void 0 : E.source) + " " + m((Ze = (Ve = (q = a.models) == null ? void 0 : q.weather) == null ? void 0 : Ve.ECMWF) == null ? void 0 : Ze.spatialResolution) + m(t.$t("units.km")) + " " + m((Xe = (qe = (Te = (Ye = a.models) == null ? void 0 : Ye.weather) == null ? void 0 : Te.ECMWF) == null ? void 0 : qe.meta) == null ? void 0 : Xe.days) + m(t.$t("units.days")), 1),
8708
8708
  s("div", Fn, m(t.$t("weather.source")) + ": ECMWF", 1),
8709
8709
  s("div", Hn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateZ((Je = (Qe = (Ke = ($e = a.models) == null ? void 0 : $e.weather) == null ? void 0 : Ke.ECMWF) == null ? void 0 : Qe.meta) == null ? void 0 : Je.initialisationTime)), 1),
8710
- u(b),
8710
+ p(b),
8711
8711
  s("div", Gn, m(t.$t("weather.wave")), 1),
8712
8712
  s("div", Wn, m((at = (ot = (tt = (et = a.models) == null ? void 0 : et.marine) == null ? void 0 : tt.wave) == null ? void 0 : ot.NOAA) == null ? void 0 : at.source) + " " + m((lt = (st = (rt = (it = a.models) == null ? void 0 : it.marine) == null ? void 0 : rt.wave) == null ? void 0 : st.NOAA) == null ? void 0 : lt.spatialResolution) + m(t.$t("units.km")) + " " + m((ht = (dt = (mt = (ct = (nt = a.models) == null ? void 0 : nt.marine) == null ? void 0 : ct.wave) == null ? void 0 : mt.NOAA) == null ? void 0 : dt.meta) == null ? void 0 : ht.days) + m(t.$t("units.days")), 1),
8713
8713
  s("div", Un, m(t.$t("weather.source")) + ": NOAA", 1),
@@ -8715,7 +8715,7 @@ function Jn(t, e, o, i, a, r) {
8715
8715
  s("div", Zn, m((vt = (xt = (wt = (bt = a.models) == null ? void 0 : bt.marine) == null ? void 0 : wt.wave) == null ? void 0 : xt.ECMWF) == null ? void 0 : vt.source) + " " + m((Lt = (zt = (kt = (_t = a.models) == null ? void 0 : _t.marine) == null ? void 0 : kt.wave) == null ? void 0 : zt.ECMWF) == null ? void 0 : Lt.spatialResolution) + m(t.$t("units.km")) + " " + m((Mt = (St = (Tt = (Ct = (Pt = a.models) == null ? void 0 : Pt.marine) == null ? void 0 : Ct.wave) == null ? void 0 : Tt.ECMWF) == null ? void 0 : St.meta) == null ? void 0 : Mt.days) + m(t.$t("units.days")), 1),
8716
8716
  s("div", Yn, m(t.$t("weather.source")) + ": ECMWF", 1),
8717
8717
  s("div", qn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateZ((Ot = (Rt = (At = (Dt = (It = a.models) == null ? void 0 : It.marine) == null ? void 0 : Dt.wave) == null ? void 0 : At.ECMWF) == null ? void 0 : Rt.meta) == null ? void 0 : Ot.initialisationTime)), 1),
8718
- u(b),
8718
+ p(b),
8719
8719
  s("div", Xn, m(t.$t("weather.currents")), 1),
8720
8720
  s("div", $n, m((Nt = (jt = (Et = (Bt = a.models) == null ? void 0 : Bt.marine) == null ? void 0 : Et.current) == null ? void 0 : jt.ECMWF) == null ? void 0 : Nt.source) + " " + m((Wt = (Gt = (Ht = (Ft = a.models) == null ? void 0 : Ft.marine) == null ? void 0 : Ht.current) == null ? void 0 : Gt.ECMWF) == null ? void 0 : Wt.spatialResolution) + m(t.$t("units.km")) + " " + m((qt = (Yt = (Zt = (Vt = (Ut = a.models) == null ? void 0 : Ut.marine) == null ? void 0 : Vt.current) == null ? void 0 : Zt.ECMWF) == null ? void 0 : Yt.meta) == null ? void 0 : qt.days) + m(t.$t("units.days")), 1),
8721
8721
  s("div", Kn, m(t.$t("weather.source")) + ": ECMWF", 1),
@@ -8735,7 +8735,7 @@ function Jn(t, e, o, i, a, r) {
8735
8735
  map: o.map,
8736
8736
  "map-feather": o.mapFeather,
8737
8737
  "before-layer": "empty-layer-3",
8738
- wind: (Q = a.weatherLayers) == null ? void 0 : Q.wind,
8738
+ wind: (J = a.weatherLayers) == null ? void 0 : J.wind,
8739
8739
  "menu-toggle": o.menuToggle
8740
8740
  }, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : D("", !0),
8741
8741
  o.map ? (y(), R(_, B({
@@ -8751,21 +8751,21 @@ function Jn(t, e, o, i, a, r) {
8751
8751
  map: o.map,
8752
8752
  "map-feather": o.mapFeather,
8753
8753
  "before-layer": "empty-layer-2",
8754
- current: (de = a.weatherLayers) == null ? void 0 : de.current,
8754
+ current: (he = a.weatherLayers) == null ? void 0 : he.current,
8755
8755
  "menu-toggle": o.menuToggle
8756
8756
  }, t.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : D("", !0),
8757
8757
  o.map ? (y(), R(C, B({
8758
8758
  key: 4,
8759
8759
  map: o.map,
8760
8760
  "before-layer": "empty-layer-2",
8761
- prmsl: (le = a.weatherLayers) == null ? void 0 : le.prmsl,
8761
+ prmsl: (ce = a.weatherLayers) == null ? void 0 : ce.prmsl,
8762
8762
  "menu-toggle": o.menuToggle,
8763
8763
  "active-weather-layers": a.activeWeatherLayers
8764
8764
  }, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : D("", !0),
8765
8765
  o.map ? (y(), R(v, B({
8766
8766
  key: 5,
8767
8767
  viewport: a.viewport,
8768
- factor: (he = a.weatherLayers) == null ? void 0 : he["wind-particle"],
8768
+ factor: (pe = a.weatherLayers) == null ? void 0 : pe["wind-particle"],
8769
8769
  "menu-toggle": o.menuToggle
8770
8770
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
8771
8771
  o.map ? (y(), R(A, B({
@@ -8784,7 +8784,7 @@ function Jn(t, e, o, i, a, r) {
8784
8784
  key: 8,
8785
8785
  map: o.map,
8786
8786
  viewport: a.viewport,
8787
- factor: (ne = a.weatherLayers) == null ? void 0 : ne.swell,
8787
+ factor: (me = a.weatherLayers) == null ? void 0 : me.swell,
8788
8788
  "menu-toggle": o.menuToggle,
8789
8789
  "active-weather-layers": a.activeWeatherLayers
8790
8790
  }, t.$attrs), null, 16, ["map", "viewport", "factor", "menu-toggle", "active-weather-layers"])) : D("", !0),
@@ -8806,25 +8806,25 @@ function Jn(t, e, o, i, a, r) {
8806
8806
  factor: (Pe = a.weatherLayers) == null ? void 0 : Pe["ice-thickness"],
8807
8807
  "menu-toggle": o.menuToggle
8808
8808
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
8809
- o.map ? (y(), R(K, B({
8809
+ o.map ? (y(), R(Q, B({
8810
8810
  key: 12,
8811
8811
  viewport: a.viewport,
8812
8812
  factor: (De = a.weatherLayers) == null ? void 0 : De.precip3h,
8813
8813
  "menu-toggle": o.menuToggle
8814
8814
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
8815
- o.map ? (y(), R(J, B({
8815
+ o.map ? (y(), R(X, B({
8816
8816
  key: 13,
8817
8817
  viewport: a.viewport,
8818
8818
  factor: (Ae = a.weatherLayers) == null ? void 0 : Ae.visibility,
8819
8819
  "menu-toggle": o.menuToggle
8820
8820
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
8821
- o.map ? (y(), R(pe, B({
8821
+ o.map ? (y(), R(ne, B({
8822
8822
  key: 14,
8823
8823
  viewport: a.viewport,
8824
8824
  factor: (Re = a.weatherLayers) == null ? void 0 : Re["water-temp"],
8825
8825
  "menu-toggle": o.menuToggle
8826
8826
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
8827
- o.map ? (y(), R(me, B({
8827
+ o.map ? (y(), R(se, B({
8828
8828
  key: 15,
8829
8829
  viewport: a.viewport,
8830
8830
  factor: (_e = a.weatherLayers) == null ? void 0 : _e.temp,
@@ -9152,17 +9152,17 @@ class Za {
9152
9152
  let n = to.find((h) => {
9153
9153
  var b, x, k;
9154
9154
  return ((b = h.models) == null ? void 0 : b.includes(c)) || ((x = h.alias) == null ? void 0 : x.toLowerCase()) === c || ((k = h.name) == null ? void 0 : k.toLowerCase()) === c;
9155
- }), p = oo.find((h) => {
9155
+ }), u = oo.find((h) => {
9156
9156
  var b, x, k;
9157
9157
  return ((b = h.models) == null ? void 0 : b.includes(c)) || ((x = h.alias) == null ? void 0 : x.toLowerCase()) === c || ((k = h.name) == null ? void 0 : k.toLowerCase()) === c;
9158
9158
  });
9159
9159
  n = n || to.find((h) => {
9160
9160
  var b, x;
9161
- return ((b = h.alias) == null ? void 0 : b.toLowerCase()) === ((x = p == null ? void 0 : p.alias) == null ? void 0 : x.toLowerCase());
9162
- }), p = p || oo.find((h) => {
9161
+ return ((b = h.alias) == null ? void 0 : b.toLowerCase()) === ((x = u == null ? void 0 : u.alias) == null ? void 0 : x.toLowerCase());
9162
+ }), u = u || oo.find((h) => {
9163
9163
  var b, x;
9164
9164
  return ((b = h.alias) == null ? void 0 : b.toLowerCase()) === ((x = n == null ? void 0 : n.alias) == null ? void 0 : x.toLowerCase());
9165
- }), n = n || to[0], p = p || oo[0], r.push((o = n.models) != null && o.includes(c) ? c : n.model), l.push((i = p.models) != null && i.includes(c) ? c : p.model);
9165
+ }), n = n || to[0], u = u || oo[0], r.push((o = n.models) != null && o.includes(c) ? c : n.model), l.push((i = u.models) != null && i.includes(c) ? c : u.model);
9166
9166
  }
9167
9167
  return {
9168
9168
  weatherModels: r.join(","),
@@ -9179,8 +9179,8 @@ class Za {
9179
9179
  }), a;
9180
9180
  }
9181
9181
  static pickHourly(e, o) {
9182
- var i, a, r, l, c, n, p, h, b, x, k, g, z, T, O, I, P, _, L, C, v, A, N, V, Z, U, ee, K, J, pe, me, Q, ae, de, le, he, ge, F, ne, xe, Le, Pe, De, Ae, Re, _e, G, te, He, Me;
9183
- const ue = typeof o == "string" ? M(o) : o, fe = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, Ce = M((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), oe = Ce.clone().add((c = (l = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : l.time) == null ? void 0 : c.at(0), "h"), re = Ce.clone().add((h = (p = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : p.time) == null ? void 0 : h.at(-1), "h"), Oe = [];
9182
+ var i, a, r, l, c, n, u, h, b, x, k, g, z, T, O, I, P, _, L, C, v, A, N, V, Z, U, ee, Q, X, ne, se, J, ae, he, ce, pe, ge, F, me, xe, Le, Pe, De, Ae, Re, _e, G, te, He, Me;
9183
+ const ue = typeof o == "string" ? M(o) : o, fe = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, Ce = M((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), oe = Ce.clone().add((c = (l = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : l.time) == null ? void 0 : c.at(0), "h"), re = Ce.clone().add((h = (u = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : u.time) == null ? void 0 : h.at(-1), "h"), Oe = [];
9184
9184
  if (ue.isBetween(oe, re, "millisecond", "[]")) {
9185
9185
  const j = ue.utc().diff(oe, "h", !1);
9186
9186
  let ye, Ie;
@@ -9231,20 +9231,20 @@ class Za {
9231
9231
  Ie = {
9232
9232
  wave: {
9233
9233
  sig: {
9234
- height: (K = E == null ? void 0 : E.wave_height) == null ? void 0 : K.at(j),
9235
- degree: (J = E == null ? void 0 : E.wave_direction) == null ? void 0 : J.at(j),
9236
- bearing: ((pe = E == null ? void 0 : E.wave_direction) == null ? void 0 : pe.at(j)) !== null ? (((me = E == null ? void 0 : E.wave_direction) == null ? void 0 : me.at(j)) + 180) % 360 : null,
9237
- period: (Q = E == null ? void 0 : E.wave_period) == null ? void 0 : Q.at(j)
9234
+ height: (Q = E == null ? void 0 : E.wave_height) == null ? void 0 : Q.at(j),
9235
+ degree: (X = E == null ? void 0 : E.wave_direction) == null ? void 0 : X.at(j),
9236
+ bearing: ((ne = E == null ? void 0 : E.wave_direction) == null ? void 0 : ne.at(j)) !== null ? (((se = E == null ? void 0 : E.wave_direction) == null ? void 0 : se.at(j)) + 180) % 360 : null,
9237
+ period: (J = E == null ? void 0 : E.wave_period) == null ? void 0 : J.at(j)
9238
9238
  },
9239
9239
  swell: {
9240
9240
  height: (ae = E == null ? void 0 : E.swell_wave_height) == null ? void 0 : ae.at(j),
9241
- degree: (de = E == null ? void 0 : E.swell_wave_direction) == null ? void 0 : de.at(j),
9242
- bearing: ((le = E == null ? void 0 : E.swell_wave_direction) == null ? void 0 : le.at(j)) !== null ? (((he = E == null ? void 0 : E.swell_wave_direction) == null ? void 0 : he.at(j)) + 180) % 360 : null,
9241
+ degree: (he = E == null ? void 0 : E.swell_wave_direction) == null ? void 0 : he.at(j),
9242
+ bearing: ((ce = E == null ? void 0 : E.swell_wave_direction) == null ? void 0 : ce.at(j)) !== null ? (((pe = E == null ? void 0 : E.swell_wave_direction) == null ? void 0 : pe.at(j)) + 180) % 360 : null,
9243
9243
  period: (ge = E == null ? void 0 : E.swell_wave_period) == null ? void 0 : ge.at(j),
9244
9244
  peakPeriod: (F = E == null ? void 0 : E.swell_wave_peak_period) == null ? void 0 : F.at(j)
9245
9245
  },
9246
9246
  wd: {
9247
- height: (ne = E == null ? void 0 : E.wind_wave_height) == null ? void 0 : ne.at(j),
9247
+ height: (me = E == null ? void 0 : E.wind_wave_height) == null ? void 0 : me.at(j),
9248
9248
  degree: (xe = E == null ? void 0 : E.wind_wave_direction) == null ? void 0 : xe.at(j),
9249
9249
  bearing: ((Le = E == null ? void 0 : E.wind_wave_direction) == null ? void 0 : Le.at(j)) !== null ? (((Pe = E == null ? void 0 : E.wind_wave_direction) == null ? void 0 : Pe.at(j)) + 180) % 360 : null,
9250
9250
  period: (De = E == null ? void 0 : E.wind_wave_period) == null ? void 0 : De.at(j),
@@ -9266,7 +9266,7 @@ class Za {
9266
9266
  return Oe;
9267
9267
  }
9268
9268
  static toLegacy(e) {
9269
- var o, i, a, r, l, c, n, p, h, b;
9269
+ var o, i, a, r, l, c, n, u, h, b;
9270
9270
  return {
9271
9271
  wind: (o = e == null ? void 0 : e.weather) == null ? void 0 : o.wind,
9272
9272
  visibility: (i = e == null ? void 0 : e.weather) == null ? void 0 : i.visibility,
@@ -9276,7 +9276,7 @@ class Za {
9276
9276
  kts: (c = (l = e == null ? void 0 : e.weather) == null ? void 0 : l.wind) == null ? void 0 : c.gusts
9277
9277
  },
9278
9278
  precip: (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip,
9279
- code: (p = e == null ? void 0 : e.weather) == null ? void 0 : p.code,
9279
+ code: (u = e == null ? void 0 : e.weather) == null ? void 0 : u.code,
9280
9280
  name: (h = e == null ? void 0 : e.weather) == null ? void 0 : h.name,
9281
9281
  url: (b = e == null ? void 0 : e.weather) == null ? void 0 : b.url,
9282
9282
  wave: e == null ? void 0 : e.wave,
@@ -9288,7 +9288,7 @@ class Za {
9288
9288
  };
9289
9289
  }
9290
9290
  static pickDaily(e, o) {
9291
- var i, a, r, l, c, n, p, h, b, x, k, g, z, T, O, I, P, _, L, C, v, A, N, V, Z, U, ee, K, J, pe, me, Q, ae, de, le, he, ge, F, ne, xe, Le, Pe, De, Ae;
9291
+ var i, a, r, l, c, n, u, h, b, x, k, g, z, T, O, I, P, _, L, C, v, A, N, V, Z, U, ee, Q, X, ne, se, J, ae, he, ce, pe, ge, F, me, xe, Le, Pe, De, Ae;
9292
9292
  const Re = typeof o == "string" ? M(o) : o, _e = e == null ? void 0 : e.weather, G = e == null ? void 0 : e.marine, te = M((r = (a = (i = _e == null ? void 0 : _e[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), He = M((n = (c = (l = _e == null ? void 0 : _e[0]) == null ? void 0 : l.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Me = [];
9293
9293
  if (Re.isBetween(te, He, "millisecond", "[]")) {
9294
9294
  let ue, fe;
@@ -9297,7 +9297,7 @@ class Za {
9297
9297
  for (const Ce of _e) {
9298
9298
  const oe = Ce.daily;
9299
9299
  ue = {
9300
- code: (p = oe.weather_code) == null ? void 0 : p.at(W),
9300
+ code: (u = oe.weather_code) == null ? void 0 : u.at(W),
9301
9301
  temp: {
9302
9302
  max: (h = oe.temperature_2m_max) == null ? void 0 : h.at(W),
9303
9303
  min: (b = oe.temperature_2m_min) == null ? void 0 : b.at(W),
@@ -9342,21 +9342,21 @@ class Za {
9342
9342
  fe = {
9343
9343
  wave: {
9344
9344
  sig: {
9345
- height: (K = re.wave_height_max) == null ? void 0 : K.at(W),
9346
- degree: (J = re.wave_direction_dominant) == null ? void 0 : J.at(W),
9347
- period: (pe = re.wave_period_max) == null ? void 0 : pe.at(W),
9348
- bearing: ((me = re.wave_direction_dominant) == null ? void 0 : me.at(W)) !== null ? (((Q = re.wave_direction_dominant) == null ? void 0 : Q.at(W)) + 180) % 360 : null
9345
+ height: (Q = re.wave_height_max) == null ? void 0 : Q.at(W),
9346
+ degree: (X = re.wave_direction_dominant) == null ? void 0 : X.at(W),
9347
+ period: (ne = re.wave_period_max) == null ? void 0 : ne.at(W),
9348
+ bearing: ((se = re.wave_direction_dominant) == null ? void 0 : se.at(W)) !== null ? (((J = re.wave_direction_dominant) == null ? void 0 : J.at(W)) + 180) % 360 : null
9349
9349
  },
9350
9350
  swell: {
9351
9351
  height: (ae = re.swell_wave_height_max) == null ? void 0 : ae.at(W),
9352
- degree: (de = re.swell_wave_direction_dominant) == null ? void 0 : de.at(W),
9353
- period: (le = re.swell_wave_period_max) == null ? void 0 : le.at(W),
9354
- peakPeriod: (he = re.swell_wave_peak_period_max) == null ? void 0 : he.at(W),
9352
+ degree: (he = re.swell_wave_direction_dominant) == null ? void 0 : he.at(W),
9353
+ period: (ce = re.swell_wave_period_max) == null ? void 0 : ce.at(W),
9354
+ peakPeriod: (pe = re.swell_wave_peak_period_max) == null ? void 0 : pe.at(W),
9355
9355
  // bearing: daily.swell_wave_direction_dominant?.at(day) !== null ? (daily.swell_wave_direction_dominant?.at(day) + 180) % 360 : null,
9356
9356
  bearing: ((ge = re.swell_wave_direction_dominant) == null ? void 0 : ge.at(W)) !== null ? ((F = re.swell_wave_direction_dominant) == null ? void 0 : F.at(W)) % 360 : null
9357
9357
  },
9358
9358
  wd: {
9359
- height: (ne = re.wind_wave_height_max) == null ? void 0 : ne.at(W),
9359
+ height: (me = re.wind_wave_height_max) == null ? void 0 : me.at(W),
9360
9360
  degree: (xe = re.wind_wave_direction_dominant) == null ? void 0 : xe.at(W),
9361
9361
  period: (Le = re.wind_wave_period_max) == null ? void 0 : Le.at(W),
9362
9362
  peakPeriod: (Pe = re.wind_wave_peak_period_max) == null ? void 0 : Pe.at(W),
@@ -9904,7 +9904,7 @@ const tc = {
9904
9904
  };
9905
9905
  },
9906
9906
  computePosition() {
9907
- return (t) => !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" : $.lat2pretty(t == null ? void 0 : t.lat, 2).pretty + " / " + $.lng2pretty(t == null ? void 0 : t.lng, 2).pretty;
9907
+ return (t) => !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" : K.lat2pretty(t == null ? void 0 : t.lat, 2).pretty + " / " + K.lng2pretty(t == null ? void 0 : t.lng, 2).pretty;
9908
9908
  }
9909
9909
  },
9910
9910
  watch: {
@@ -9967,13 +9967,13 @@ const tc = {
9967
9967
  }
9968
9968
  });
9969
9969
  if (o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("weather links elapsed: ", o, ", total: ", e += o), ((r = n == null ? void 0 : n.data) == null ? void 0 : r.code) === 0) {
9970
- const p = (l = n == null ? void 0 : n.data) == null ? void 0 : l.data;
9971
- await Se.get(p.tropicals, {
9970
+ const u = (l = n == null ? void 0 : n.data) == null ? void 0 : l.data;
9971
+ await Se.get(u.tropicals, {
9972
9972
  headers: {
9973
9973
  Authorization: this.token || this.defaultMeteoToken,
9974
9974
  key: "tropicals"
9975
9975
  },
9976
- responseType: /\.(jpg|png)$/.test(p.tropicals) ? "blob" : "json"
9976
+ responseType: /\.(jpg|png)$/.test(u.tropicals) ? "blob" : "json"
9977
9977
  }).then((h) => {
9978
9978
  var k, g, z;
9979
9979
  const b = Va.convert2Geojson(((k = h == null ? void 0 : h.data) == null ? void 0 : k.data) || (h == null ? void 0 : h.data));
@@ -9995,7 +9995,7 @@ const tc = {
9995
9995
  handleRefresh() {
9996
9996
  var e, o;
9997
9997
  (((o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) || []).forEach((i) => {
9998
- var a, r, l, c, n, p, h, b, x, k, g;
9998
+ var a, r, l, c, n, u, h, b, x, k, g;
9999
9999
  if (((a = i.geometry) == null ? void 0 : a.type) === "Point") {
10000
10000
  let z = "";
10001
10001
  switch (!0) {
@@ -10011,7 +10011,7 @@ const tc = {
10011
10011
  case ((n = i.properties.wind) == null ? void 0 : n.kts) < 79:
10012
10012
  z = "TY";
10013
10013
  break;
10014
- case ((p = i.properties.wind) == null ? void 0 : p.kts) < 94:
10014
+ case ((u = i.properties.wind) == null ? void 0 : u.kts) < 94:
10015
10015
  z = "STY";
10016
10016
  break;
10017
10017
  case ((h = i.properties.wind) == null ? void 0 : h.kts) >= 94:
@@ -10027,11 +10027,11 @@ const tc = {
10027
10027
  }), this.handleInit();
10028
10028
  },
10029
10029
  handleInit() {
10030
- var t, e, o, i, a, r, l, c, n, p, h, b;
10031
- this.handleClear(), this.tropicals && this.map && (this.handleRender(), (t = this.map) == null || t.on("click", this.clickLayers, this.handleClick), (e = this.map) == null || e.on("mousemove", this.hoverLayers, this.handleHover), (o = this.map) == null || o.on("mouseleave", this.hoverLayers, this.handleLeave)), ((r = (a = (i = this.tropicals) == null ? void 0 : i.data) == null ? void 0 : a.features) == null ? void 0 : r.length) > 0 ? (n = (c = (l = this.$parent) == null ? void 0 : l.$refs) == null ? void 0 : c.idmBottomBar) == null || n.handleToggle("tropical", !0) : (b = (h = (p = this.$parent) == null ? void 0 : p.$refs) == null ? void 0 : h.idmBottomBar) == null || b.handleToggle("tropical", !1);
10030
+ var t, e, o, i, a, r, l, c, n, u, h, b;
10031
+ this.handleClear(), this.tropicals && this.map && (this.handleRender(), (t = this.map) == null || t.on("click", this.clickLayers, this.handleClick), (e = this.map) == null || e.on("mousemove", this.hoverLayers, this.handleHover), (o = this.map) == null || o.on("mouseleave", this.hoverLayers, this.handleLeave)), ((r = (a = (i = this.tropicals) == null ? void 0 : i.data) == null ? void 0 : a.features) == null ? void 0 : r.length) > 0 ? (n = (c = (l = this.$parent) == null ? void 0 : l.$refs) == null ? void 0 : c.idmBottomBar) == null || n.handleToggle("tropical", !0) : (b = (h = (u = this.$parent) == null ? void 0 : u.$refs) == null ? void 0 : h.idmBottomBar) == null || b.handleToggle("tropical", !1);
10032
10032
  },
10033
10033
  handleRender() {
10034
- var t, e, o, i, a, r, l, c, n, p;
10034
+ var t, e, o, i, a, r, l, c, n, u;
10035
10035
  if (this.tropicals && this.map) {
10036
10036
  const h = (/* @__PURE__ */ new Date()).valueOf();
10037
10037
  let b = 0, x = 0;
@@ -10134,7 +10134,7 @@ const tc = {
10134
10134
  }
10135
10135
  }, this.beforeLayer), x = (/* @__PURE__ */ new Date()).valueOf() - (h + b), console.log("[tropical] add elapsed: ", x, ", total: ", b += x)), (r = this.map) != null && r.getSource(this.clusterSource) ? ((c = this.map) == null || c.getSource(this.clusterSource).setData((l = this.tropicals) != null && l.active ? this.tropicals.data : this.empty), x = (/* @__PURE__ */ new Date()).valueOf() - (h + b), console.log("[tropical] update elapsed: ", x, ", total: ", b += x)) : (this.map.addSource(this.clusterSource, {
10136
10136
  type: "geojson",
10137
- data: (n = this.tropicals) != null && n.active ? (p = this.tropicals) == null ? void 0 : p.data : this.empty
10137
+ data: (n = this.tropicals) != null && n.active ? (u = this.tropicals) == null ? void 0 : u.data : this.empty
10138
10138
  // cluster: true,
10139
10139
  // clusterRadius: 10, // 聚合半径
10140
10140
  }), this.map.addLayer({
@@ -10258,14 +10258,14 @@ const tc = {
10258
10258
  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((a) => a == null ? void 0 : a.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)), (e = this.map) == null || e.off("click", this.clickLayers, this.handleClick), (o = this.map) == null || o.off("mousemove", this.hoverLayers, this.handleHover), (i = this.map) == null || i.off("mouseleave", this.hoverLayers, this.handleLeave), this.handleCloseInfoMarker();
10259
10259
  },
10260
10260
  handleDateChange() {
10261
- var t, e, o, i, a, r, l, c, n, p, h, b, x, k, g, z, T, O, I, P, _, L, C, v, A, N, V, Z, U, ee;
10262
- if ((t = this.interpolateMarkers) == null || t.forEach((K) => K == null ? void 0 : K.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
10263
- const K = M(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), J = this.interpolateData.filter((Q) => Q.properties.date === (K == null ? void 0 : K.format()) && !Q.properties.disabled), pe = this.handleComputePolygons(J), me = H.featureCollection([...J]);
10264
- pe.forEach((Q) => {
10265
- me.features.push(Q);
10266
- }), (o = this.map) != null && o.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(me) : ((a = this.map) == null || a.addSource(this.interpolateSource, {
10261
+ var t, e, o, i, a, r, l, c, n, u, h, b, x, k, g, z, T, O, I, P, _, L, C, v, A, N, V, Z, U, ee;
10262
+ if ((t = this.interpolateMarkers) == null || t.forEach((Q) => Q == null ? void 0 : Q.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
10263
+ const Q = M(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), X = this.interpolateData.filter((J) => J.properties.date === (Q == null ? void 0 : Q.format()) && !J.properties.disabled), ne = this.handleComputePolygons(X), se = H.featureCollection([...X]);
10264
+ ne.forEach((J) => {
10265
+ se.features.push(J);
10266
+ }), (o = this.map) != null && o.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(se) : ((a = this.map) == null || a.addSource(this.interpolateSource, {
10267
10267
  type: "geojson",
10268
- data: me
10268
+ data: se
10269
10269
  }), (r = this.map) == null || r.addLayer({
10270
10270
  id: this.interpolateLineLayer,
10271
10271
  type: "line",
@@ -10277,11 +10277,11 @@ const tc = {
10277
10277
  "line-width": 1
10278
10278
  }
10279
10279
  }, "empty-layer-3")), this.interpolateMarkers = [];
10280
- for (const Q of J)
10281
- if (!Q.properties.disabled) {
10280
+ for (const J of X)
10281
+ if (!J.properties.disabled) {
10282
10282
  let ae = "#f44336";
10283
- ((c = (l = Q.properties) == null ? void 0 : l.wind) == null ? void 0 : c.kts) < 32 || !((p = (n = Q.properties) == null ? void 0 : n.wind) != null && p.kts) ? ae = "#03f869" : ((b = (h = Q.properties) == null ? void 0 : h.wind) == null ? void 0 : b.kts) >= 32 && ((k = (x = Q.properties) == null ? void 0 : x.wind) == null ? void 0 : k.kts) < 47 ? ae = "#f2f202" : ((z = (g = Q.properties) == null ? void 0 : g.wind) == null ? void 0 : z.kts) >= 47 && ((O = (T = Q.properties) == null ? void 0 : T.wind) == null ? void 0 : O.kts) < 63 ? ae = "#ff9100" : ((P = (I = Q.properties) == null ? void 0 : I.wind) == null ? void 0 : P.kts) >= 63 && ((L = (_ = Q.properties) == null ? void 0 : _.wind) == null ? void 0 : L.kts) < 79 ? ae = "#f44336" : ((v = (C = Q.properties) == null ? void 0 : C.wind) == null ? void 0 : v.kts) >= 79 && ((N = (A = Q.properties) == null ? void 0 : A.wind) == null ? void 0 : N.kts) < 94 ? ae = "#f903d0" : ((Z = (V = Q.properties) == null ? void 0 : V.wind) == null ? void 0 : Z.kts) >= 94 ? ae = "#8702f9" : ae = "#f44336";
10284
- const de = `<svg t="1719918955501"
10283
+ ((c = (l = J.properties) == null ? void 0 : l.wind) == null ? void 0 : c.kts) < 32 || !((u = (n = J.properties) == null ? void 0 : n.wind) != null && u.kts) ? ae = "#03f869" : ((b = (h = J.properties) == null ? void 0 : h.wind) == null ? void 0 : b.kts) >= 32 && ((k = (x = J.properties) == null ? void 0 : x.wind) == null ? void 0 : k.kts) < 47 ? ae = "#f2f202" : ((z = (g = J.properties) == null ? void 0 : g.wind) == null ? void 0 : z.kts) >= 47 && ((O = (T = J.properties) == null ? void 0 : T.wind) == null ? void 0 : O.kts) < 63 ? ae = "#ff9100" : ((P = (I = J.properties) == null ? void 0 : I.wind) == null ? void 0 : P.kts) >= 63 && ((L = (_ = J.properties) == null ? void 0 : _.wind) == null ? void 0 : L.kts) < 79 ? ae = "#f44336" : ((v = (C = J.properties) == null ? void 0 : C.wind) == null ? void 0 : v.kts) >= 79 && ((N = (A = J.properties) == null ? void 0 : A.wind) == null ? void 0 : N.kts) < 94 ? ae = "#f903d0" : ((Z = (V = J.properties) == null ? void 0 : V.wind) == null ? void 0 : Z.kts) >= 94 ? ae = "#8702f9" : ae = "#f44336";
10284
+ const he = `<svg t="1719918955501"
10285
10285
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
10286
10286
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
10287
10287
  <path
@@ -10295,16 +10295,16 @@ const tc = {
10295
10295
  <path
10296
10296
  d="M420.66666667 959.17a16.08 16.08 0 0 1-15.91-13.49A15.89 15.89 0 0 1 415.50666667 928c1.49-0.55 38.88-14.76 72.79-65.52A354.55 354.55 0 0 1 162.66666667 509.17a450.14 450.14 0 0 1 450.5-450.5 16.07 16.07 0 0 1 15.91 13.48 15.88 15.88 0 0 1-10.75 17.66c-1.58 0.58-39.13 14.9-73.07 65.95A354.22 354.22 0 0 1 871.66666667 509.17a16 16 0 0 1-0.52 4.05A450.14 450.14 0 0 1 420.66666667 959.17zM554.80666667 94.72C351.57666667 123.2 194.66666667 298.21 194.66666667 509.17c0 177.08 144.06 321.74 321.13 322.48a16 16 0 0 1 14.07 23.49c-16.11 30.42-34.27 52.37-50.85 68C682.25666667 894.63 839.16666667 719.63 839.16666667 508.67a15.94 15.94 0 0 1 0.47-3.86C837.30666667 329.33 693.82666667 187 517.80666667 186.67A16 16 0 0 1 503.66666667 163.21c16.21-30.69 34.47-52.79 51.14-68.49z"
10297
10297
  fill="#ffffff" p-id="18386"></path>
10298
- </svg>`, le = document.createElement("div");
10299
- le.className = "idm-tropical-gl4-hourly-marker", le.innerHTML = `<div class="${Q.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${de}</div>`;
10300
- const he = new ve.Marker(le).setLngLat(Q.geometry.coordinates).addTo(this.map);
10301
- this.interpolateMarkers.push(he);
10298
+ </svg>`, ce = document.createElement("div");
10299
+ ce.className = "idm-tropical-gl4-hourly-marker", ce.innerHTML = `<div class="${J.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${he}</div>`;
10300
+ const pe = new ve.Marker(ce).setLngLat(J.geometry.coordinates).addTo(this.map);
10301
+ this.interpolateMarkers.push(pe);
10302
10302
  }
10303
10303
  } else
10304
10304
  (U = this.map) != null && U.getSource(this.interpolateSource) && ((ee = this.map) == null || ee.getSource(this.interpolateSource).setData(this.empty));
10305
10305
  },
10306
10306
  handleClick(t) {
10307
- var a, r, l, c, n, p, h, b, x;
10307
+ var a, r, l, c, n, u, h, b, x;
10308
10308
  const e = t.features[0], o = (r = (a = this.tropicals) == null ? void 0 : a.data) == null ? void 0 : r.features.filter(
10309
10309
  (k) => {
10310
10310
  var g;
@@ -10318,7 +10318,7 @@ const tc = {
10318
10318
  );
10319
10319
  this.activeTropicals = {
10320
10320
  name: (n = e == null ? void 0 : e.properties) == null ? void 0 : n.name,
10321
- nameCn: (p = e == null ? void 0 : e.properties) == null ? void 0 : p.nameCn,
10321
+ nameCn: (u = e == null ? void 0 : e.properties) == null ? void 0 : u.nameCn,
10322
10322
  forecasts: o.map((k) => k.properties),
10323
10323
  history: (h = i[0]) == null ? void 0 : h.properties,
10324
10324
  showCircle: (x = (b = o[0]) == null ? void 0 : b.properties) == null ? void 0 : x.showCircle
@@ -10337,10 +10337,10 @@ const tc = {
10337
10337
  var i, a, r, l, c, n;
10338
10338
  t.disabled = !t.disabled;
10339
10339
  const e = `${t.name}-${t.model}`, o = (a = (i = this.map) == null ? void 0 : i.getSource(this.source)._data) == null ? void 0 : a.features;
10340
- o.forEach((p) => {
10341
- p.properties.category === e && (p.properties.disabled = t.disabled);
10342
- }), this.interpolateData.forEach((p) => {
10343
- p.properties.category === e && (p.properties.disabled = t.disabled);
10340
+ o.forEach((u) => {
10341
+ u.properties.category === e && (u.properties.disabled = t.disabled);
10342
+ }), this.interpolateData.forEach((u) => {
10343
+ u.properties.category === e && (u.properties.disabled = t.disabled);
10344
10344
  }), (l = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || l.setData(H.featureCollection(o)), (n = (c = this.map) == null ? void 0 : c.getSource(this.clusterSource)) == null || n.setData(H.featureCollection(o)), this.handleDateChange();
10345
10345
  },
10346
10346
  handleStrikeProbability(t) {
@@ -10417,14 +10417,14 @@ const tc = {
10417
10417
  )[0];
10418
10418
  this.hoverPoint = o == null ? void 0 : o.properties;
10419
10419
  const i = (r = (a = this.tropicals) == null ? void 0 : a.data) == null ? void 0 : r.features.filter(
10420
- (p) => {
10420
+ (u) => {
10421
10421
  var h;
10422
- return p.geometry.type === "LineString" && p.properties.type === "forecast" && p.properties.name === ((h = o == null ? void 0 : o.properties) == null ? void 0 : h.name);
10422
+ return u.geometry.type === "LineString" && u.properties.type === "forecast" && u.properties.name === ((h = o == null ? void 0 : o.properties) == null ? void 0 : h.name);
10423
10423
  }
10424
10424
  );
10425
10425
  this.hoverPoint && (this.hoverPoint.lng = o.geometry.coordinates[0], this.hoverPoint.lat = o.geometry.coordinates[1], this.hoverPoint.update = (c = (l = i == null ? void 0 : i[0]) == null ? void 0 : l.properties) == null ? void 0 : c.date, (n = this.hoverMarker) == null || n.remove(), this.showHoverPoint = !0, this.$nextTick(() => {
10426
- const p = document.getElementById("tropicalHoverMarkerInfo").cloneNode(!0);
10427
- this.hoverMarker = new ve.Marker(p).setLngLat(o.geometry.coordinates).setOffset([160, 0]).addTo(this.map);
10426
+ const u = document.getElementById("tropicalHoverMarkerInfo").cloneNode(!0);
10427
+ this.hoverMarker = new ve.Marker(u).setLngLat(o.geometry.coordinates).setOffset([160, 0]).addTo(this.map);
10428
10428
  }));
10429
10429
  },
10430
10430
  handleLeave() {
@@ -10445,38 +10445,44 @@ const tc = {
10445
10445
  }, vc = { class: "model-box d-flex justify-end align-center flex-wrap ga-1 pa-1" }, _c = { class: "more" }, kc = {
10446
10446
  class: "my-3",
10447
10447
  style: { height: "80px", width: "100%" }
10448
- }, zc = { class: "pa-1 d-flex justify-space-between align-center" }, Lc = { class: "pa-1 d-flex justify-space-between align-center" }, Pc = { class: "d-flex justify-star align-center" }, Cc = { class: "font-weight-600 mr-1" }, Tc = { class: "" }, Sc = { class: "port-box d-flex flex-column justify-center align-start ga-2" }, Mc = { class: "d-flex justify-start align-center" }, Ic = { class: "text-label pr-1" }, Dc = {
10448
+ }, zc = { class: "pa-1 d-flex justify-space-between align-center" }, Lc = { class: "pa-1 d-flex justify-space-between align-center" }, Pc = { class: "d-flex justify-star align-center" }, Cc = { class: "font-weight-600 mr-1" }, Tc = { class: "" }, Sc = { class: "port-box d-flex flex-column justify-center align-start ga-2" }, Mc = {
10449
10449
  key: 0,
10450
10450
  class: "d-flex justify-start align-center"
10451
- }, Ac = { class: "text-label pr-1" }, Rc = {
10451
+ }, Ic = { class: "text-label pr-1" }, Dc = {
10452
10452
  key: 1,
10453
10453
  class: "d-flex justify-start align-center"
10454
- }, Oc = { class: "text-label pr-1" }, Bc = {
10454
+ }, Ac = { class: "text-label pr-1" }, Rc = {
10455
10455
  key: 2,
10456
10456
  class: "d-flex justify-start align-center"
10457
- }, Ec = { class: "text-label pr-1" }, jc = {
10457
+ }, Oc = { class: "text-label pr-1" }, Bc = {
10458
10458
  key: 3,
10459
10459
  class: "d-flex justify-start align-center"
10460
- }, Nc = { class: "text-label pr-1" }, Fc = { class: "d-flex justify-start align-center" }, Hc = { class: "text-label pr-1" }, Gc = {
10460
+ }, Ec = { class: "text-label pr-1" }, jc = {
10461
10461
  key: 4,
10462
10462
  class: "d-flex justify-start align-center"
10463
- }, Wc = { class: "text-label pr-1" }, Uc = {
10463
+ }, Nc = { class: "text-label pr-1" }, Fc = {
10464
10464
  key: 5,
10465
10465
  class: "d-flex justify-start align-center"
10466
- }, Vc = { class: "text-label pr-1" }, Zc = { class: "d-flex justify-start align-center" }, Yc = { class: "text-label pr-1" };
10467
- function qc(t, e, o, i, a, r) {
10468
- const l = w("VBtn"), c = w("VTooltip"), n = w("VCardText"), p = w("VDivider"), h = w("VCardActions"), b = w("VCard"), x = w("v-card-title"), k = w("v-divider");
10466
+ }, Hc = { class: "text-label pr-1" }, Gc = { class: "d-flex justify-start align-center" }, Wc = { class: "text-label pr-1" }, Uc = {
10467
+ key: 6,
10468
+ class: "d-flex justify-start align-center"
10469
+ }, Vc = { class: "text-label pr-1" }, Zc = {
10470
+ key: 7,
10471
+ class: "d-flex justify-start align-center"
10472
+ }, Yc = { class: "text-label pr-1" }, qc = { class: "d-flex justify-start align-center" }, Xc = { class: "text-label pr-1" };
10473
+ function $c(t, e, o, i, a, r) {
10474
+ const l = w("VBtn"), c = w("VTooltip"), n = w("VCardText"), u = w("VDivider"), h = w("VCardActions"), b = w("VCard"), x = w("v-card-title"), k = w("v-divider");
10469
10475
  return y(), S("div", oc, [
10470
10476
  s("div", {
10471
10477
  class: "menu-bar-box transition pa-1",
10472
10478
  style: ie({ top: o.top + 134 + "px", right: a.right + "px" })
10473
10479
  }, [
10474
- u(c, {
10480
+ p(c, {
10475
10481
  text: t.$t("tropical.tropicals"),
10476
10482
  location: "left"
10477
10483
  }, {
10478
10484
  activator: f(({ props: g }) => [
10479
- u(l, B(g, {
10485
+ p(l, B(g, {
10480
10486
  "min-width": "32",
10481
10487
  width: "32",
10482
10488
  height: "32",
@@ -10494,13 +10500,13 @@ function qc(t, e, o, i, a, r) {
10494
10500
  }, 8, ["text"])
10495
10501
  ], 4),
10496
10502
  a.showTropicalsInfo && !t.$attrs.hideTropicalsLegend ? (y(), S("div", ac, [
10497
- u(b, {
10503
+ p(b, {
10498
10504
  "min-width": "400",
10499
10505
  elevation: "16",
10500
10506
  "max-width": "500"
10501
10507
  }, {
10502
10508
  default: f(() => [
10503
- u(n, null, {
10509
+ p(n, null, {
10504
10510
  default: f(() => {
10505
10511
  var g, z, T, O, I, P, _, L, C, v, A;
10506
10512
  return [
@@ -10508,7 +10514,7 @@ function qc(t, e, o, i, a, r) {
10508
10514
  s("span", rc, m(o.locale === "en" ? (g = a.activeTropicals) == null ? void 0 : g.name : (z = a.activeTropicals) == null ? void 0 : z.nameCn), 1),
10509
10515
  (O = (T = a.activeTropicals) == null ? void 0 : T.history) != null && O.level ? (y(), S("span", sc, ", " + m((P = (I = a.activeTropicals) == null ? void 0 : I.history) == null ? void 0 : P.level), 1)) : D("", !0)
10510
10516
  ]),
10511
- u(l, {
10517
+ p(l, {
10512
10518
  icon: "",
10513
10519
  density: "compact",
10514
10520
  variant: "plain",
@@ -10529,8 +10535,8 @@ function qc(t, e, o, i, a, r) {
10529
10535
  }),
10530
10536
  _: 1
10531
10537
  }),
10532
- u(p),
10533
- u(n, { class: "text-body-1" }, {
10538
+ p(u),
10539
+ p(n, { class: "text-body-1" }, {
10534
10540
  default: f(() => {
10535
10541
  var g, z, T, O, I, P, _, L, C;
10536
10542
  return [
@@ -10568,7 +10574,7 @@ function qc(t, e, o, i, a, r) {
10568
10574
  onClick: je((N) => r.handleForecastToggle(v), ["stop"])
10569
10575
  }, {
10570
10576
  default: f(() => [
10571
- X(m(v.model), 1)
10577
+ $(m(v.model), 1)
10572
10578
  ]),
10573
10579
  _: 2
10574
10580
  }, 1032, ["variant", "color", "class", "onClick"]))), 128))
@@ -10578,10 +10584,10 @@ function qc(t, e, o, i, a, r) {
10578
10584
  }),
10579
10585
  _: 1
10580
10586
  }),
10581
- u(p),
10582
- u(h, { class: "d-flex justify-space-between" }, {
10587
+ p(u),
10588
+ p(h, { class: "d-flex justify-space-between" }, {
10583
10589
  default: f(() => [
10584
- u(l, {
10590
+ p(l, {
10585
10591
  density: "compact",
10586
10592
  "prepend-icon": "",
10587
10593
  variant: "text",
@@ -10593,7 +10599,7 @@ function qc(t, e, o, i, a, r) {
10593
10599
  s("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
10594
10600
  ])),
10595
10601
  default: f(() => [
10596
- X(" " + m(t.$t("weather.legend")), 1)
10602
+ $(" " + m(t.$t("weather.legend")), 1)
10597
10603
  ]),
10598
10604
  _: 1
10599
10605
  }, 8, ["color"]),
@@ -10606,11 +10612,11 @@ function qc(t, e, o, i, a, r) {
10606
10612
  onClick: e[1] || (e[1] = je((g) => r.handleNotification(a.activeTropicals), ["stop"]))
10607
10613
  }, {
10608
10614
  default: f(() => [
10609
- X(m(t.$t("actions.notify")), 1)
10615
+ $(m(t.$t("actions.notify")), 1)
10610
10616
  ]),
10611
10617
  _: 1
10612
10618
  })) : D("", !0),
10613
- u(l, {
10619
+ p(l, {
10614
10620
  variant: "text",
10615
10621
  density: "compact",
10616
10622
  "append-icon": "mdi-chevron-right",
@@ -10618,7 +10624,7 @@ function qc(t, e, o, i, a, r) {
10618
10624
  onClick: e[2] || (e[2] = je((g) => r.handleStrikeProbability(a.activeTropicals), ["stop"]))
10619
10625
  }, {
10620
10626
  default: f(() => [
10621
- X(m(t.$t("actions.viewReport")), 1)
10627
+ $(m(t.$t("actions.viewReport")), 1)
10622
10628
  ]),
10623
10629
  _: 1
10624
10630
  })
@@ -10630,9 +10636,9 @@ function qc(t, e, o, i, a, r) {
10630
10636
  _: 1
10631
10637
  }),
10632
10638
  s("div", kc, [
10633
- We(u(b, { elevation: "16" }, {
10639
+ We(p(b, { elevation: "16" }, {
10634
10640
  default: f(() => [
10635
- u(n, null, {
10641
+ p(n, null, {
10636
10642
  default: f(() => [
10637
10643
  We(s("div", zc, e[6] || (e[6] = [
10638
10644
  s("div", { class: "legend d-flex justify-start align-center" }, [
@@ -10692,13 +10698,13 @@ function qc(t, e, o, i, a, r) {
10692
10698
  ])
10693
10699
  ])
10694
10700
  ])) : D("", !0),
10695
- We(u(b, {
10701
+ We(p(b, {
10696
10702
  id: "tropicalHoverMarkerInfo",
10697
10703
  elevation: "16",
10698
10704
  "max-width": "280"
10699
10705
  }, {
10700
10706
  default: f(() => [
10701
- u(x, null, {
10707
+ p(x, null, {
10702
10708
  default: f(() => {
10703
10709
  var g, z, T;
10704
10710
  return [
@@ -10710,46 +10716,50 @@ function qc(t, e, o, i, a, r) {
10710
10716
  }),
10711
10717
  _: 1
10712
10718
  }),
10713
- u(k),
10714
- u(n, { class: "text-body-1" }, {
10719
+ p(k),
10720
+ p(n, { class: "text-body-1" }, {
10715
10721
  default: f(() => {
10716
- var g, z, T, O, I, P, _, L, C, v, A, N, V, Z, U, ee, K;
10722
+ var g, z, T, O, I, P, _, L, C, v, A, N, V, Z, U, ee, Q, X, ne, se;
10717
10723
  return [
10718
10724
  s("div", Sc, [
10719
- s("div", Mc, [
10725
+ ((g = a.hoverPoint) == null ? void 0 : g.type) === "forecast" ? (y(), S("div", Mc, [
10720
10726
  s("label", Ic, m(t.$t("tropical.updated")) + " : ", 1),
10721
- s("span", null, m(r.computeTzTime((g = a.hoverPoint) == null ? void 0 : g.update, o.timeZone)), 1)
10722
- ]),
10723
- ((z = a.hoverPoint) == null ? void 0 : z.type) === "forecast" ? (y(), S("div", Dc, [
10727
+ s("span", null, m(r.computeTzTime((z = a.hoverPoint) == null ? void 0 : z.update, o.timeZone)), 1)
10728
+ ])) : D("", !0),
10729
+ ((T = a.hoverPoint) == null ? void 0 : T.type) === "forecast" ? (y(), S("div", Dc, [
10724
10730
  s("label", Ac, m(t.$t("tropical.forecast")) + " : ", 1),
10725
- s("span", null, m(r.computeTzTime((T = a.hoverPoint) == null ? void 0 : T.date, o.timeZone)), 1)
10731
+ s("span", null, m(r.computeTzTime((O = a.hoverPoint) == null ? void 0 : O.date, o.timeZone)), 1)
10726
10732
  ])) : D("", !0),
10727
- ((O = a.hoverPoint) == null ? void 0 : O.type) === "forecast" ? (y(), S("div", Rc, [
10728
- s("label", Oc, m(t.$t("tropical.model")) + " : ", 1),
10729
- s("span", null, m(((I = a.hoverPoint) == null ? void 0 : I.model) ?? "-"), 1)
10733
+ ((I = a.hoverPoint) == null ? void 0 : I.type) === "history" ? (y(), S("div", Rc, [
10734
+ s("label", Oc, m(t.$t("tropical.forecast")) + " : ", 1),
10735
+ s("span", null, m(r.computeTzTime((P = a.hoverPoint) == null ? void 0 : P.date, o.timeZone)), 1)
10730
10736
  ])) : D("", !0),
10731
- ((P = a.hoverPoint) == null ? void 0 : P.type) === "forecast" ? (y(), S("div", Bc, [
10732
- s("label", Ec, m(t.$t("weather.wind")) + " : ", 1),
10733
- s("span", null, m(((L = JSON.parse((_ = a.hoverPoint) == null ? void 0 : _.wind)) == null ? void 0 : L.kts) ?? "-") + " kts", 1)
10737
+ ((_ = a.hoverPoint) == null ? void 0 : _.type) === "forecast" ? (y(), S("div", Bc, [
10738
+ s("label", Ec, m(t.$t("tropical.model")) + " : ", 1),
10739
+ s("span", null, m(((L = a.hoverPoint) == null ? void 0 : L.model) ?? "-"), 1)
10734
10740
  ])) : D("", !0),
10735
- ((C = a.hoverPoint) == null ? void 0 : C.type) === "history" ? (y(), S("div", jc, [
10741
+ ((C = a.hoverPoint) == null ? void 0 : C.type) === "forecast" ? (y(), S("div", jc, [
10736
10742
  s("label", Nc, m(t.$t("weather.wind")) + " : ", 1),
10737
- s("span", null, m(((v = a.hoverPoint) == null ? void 0 : v.kts) ?? "-") + " kts", 1)
10743
+ s("span", null, m(((A = JSON.parse((v = a.hoverPoint) == null ? void 0 : v.wind)) == null ? void 0 : A.kts) ?? "-") + " kts", 1)
10738
10744
  ])) : D("", !0),
10739
- s("div", Fc, [
10740
- s("label", Hc, m(t.$t("weather.pressure")) + " : ", 1),
10741
- s("span", null, m(((A = a.hoverPoint) == null ? void 0 : A.pressure) ?? "-") + " kPa", 1)
10742
- ]),
10743
- ((N = a.hoverPoint) == null ? void 0 : N.type) === "history" ? (y(), S("div", Gc, [
10744
- s("label", Wc, m(t.$t("tropical.moveSpeed")) + " : ", 1),
10745
- s("span", null, m(((Z = JSON.parse((V = a.hoverPoint) == null ? void 0 : V.movement)) == null ? void 0 : Z.kts) ?? "-") + " kts", 1)
10745
+ ((N = a.hoverPoint) == null ? void 0 : N.type) === "history" ? (y(), S("div", Fc, [
10746
+ s("label", Hc, m(t.$t("weather.wind")) + " : ", 1),
10747
+ s("span", null, m(((V = a.hoverPoint) == null ? void 0 : V.kts) ?? "-") + " kts", 1)
10746
10748
  ])) : D("", !0),
10749
+ s("div", Gc, [
10750
+ s("label", Wc, m(t.$t("weather.pressure")) + " : ", 1),
10751
+ s("span", null, m(((Z = a.hoverPoint) == null ? void 0 : Z.pressure) ?? "-") + " kPa", 1)
10752
+ ]),
10747
10753
  ((U = a.hoverPoint) == null ? void 0 : U.type) === "history" ? (y(), S("div", Uc, [
10748
- s("label", Vc, m(t.$t("tropical.moveDir")) + " : ", 1),
10749
- s("span", null, m(((K = JSON.parse((ee = a.hoverPoint) == null ? void 0 : ee.movement)) == null ? void 0 : K.deg) ?? "-") + " °", 1)
10754
+ s("label", Vc, m(t.$t("tropical.moveSpeed")) + " : ", 1),
10755
+ s("span", null, m(((Q = JSON.parse((ee = a.hoverPoint) == null ? void 0 : ee.movement)) == null ? void 0 : Q.kts) ?? "-") + " kts", 1)
10750
10756
  ])) : D("", !0),
10751
- s("div", Zc, [
10752
- s("label", Yc, m(t.$t("tropical.position")) + " : ", 1),
10757
+ ((X = a.hoverPoint) == null ? void 0 : X.type) === "history" ? (y(), S("div", Zc, [
10758
+ s("label", Yc, m(t.$t("tropical.moveDir")) + " : ", 1),
10759
+ s("span", null, m(((se = JSON.parse((ne = a.hoverPoint) == null ? void 0 : ne.movement)) == null ? void 0 : se.deg) ?? "-") + " °", 1)
10760
+ ])) : D("", !0),
10761
+ s("div", qc, [
10762
+ s("label", Xc, m(t.$t("tropical.position")) + " : ", 1),
10753
10763
  s("span", null, m(r.computePosition(a.hoverPoint)), 1)
10754
10764
  ])
10755
10765
  ])
@@ -10764,8 +10774,8 @@ function qc(t, e, o, i, a, r) {
10764
10774
  ])
10765
10775
  ]);
10766
10776
  }
10767
- const Xa = /* @__PURE__ */ Y(tc, [["render", qc]]);
10768
- const Xc = {
10777
+ const Xa = /* @__PURE__ */ Y(tc, [["render", $c]]);
10778
+ const Kc = {
10769
10779
  name: "DateTimePicker",
10770
10780
  props: {
10771
10781
  width: {
@@ -10919,23 +10929,23 @@ const Xc = {
10919
10929
  e && !e.contains(t.target) && (this.showDatePicker = !1);
10920
10930
  }
10921
10931
  }
10922
- }, $c = {
10932
+ }, Qc = {
10923
10933
  class: "idm-gl4-time-picker",
10924
10934
  ref: "idmGl4Timepicker"
10925
- }, Kc = {
10935
+ }, Jc = {
10926
10936
  class: "pa-0",
10927
10937
  style: { width: "250px" }
10928
- }, Qc = {
10938
+ }, em = {
10929
10939
  class: "h-100 pa-0 d-flex flex-column justify-start align-center",
10930
10940
  style: { width: "100px" }
10931
- }, Jc = {
10941
+ }, tm = {
10932
10942
  class: "d-flex justify-center align-center text-body-2",
10933
10943
  style: { height: "56px" }
10934
10944
  };
10935
- function em(t, e, o, i, a, r) {
10936
- const l = w("VBtn"), c = w("VDatePicker"), n = w("VDivider"), p = w("VListItemTitle"), h = w("VListItem"), b = w("VList"), x = w("VCardText"), k = w("VCardActions"), g = w("VCard");
10937
- return y(), S("div", $c, [
10938
- u(l, {
10945
+ function om(t, e, o, i, a, r) {
10946
+ const l = w("VBtn"), c = w("VDatePicker"), n = w("VDivider"), u = w("VListItemTitle"), h = w("VListItem"), b = w("VList"), x = w("VCardText"), k = w("VCardActions"), g = w("VCard");
10947
+ return y(), S("div", Qc, [
10948
+ p(l, {
10939
10949
  text: "",
10940
10950
  height: o.height,
10941
10951
  width: o.width,
@@ -10943,7 +10953,7 @@ function em(t, e, o, i, a, r) {
10943
10953
  onClick: r.handleOpenDatePicker
10944
10954
  }, {
10945
10955
  default: f(() => [
10946
- X(m(a.currentDateTime) + " | UTC " + m(o.timeZone < 0 ? o.timeZone : "+" + o.timeZone), 1)
10956
+ $(m(a.currentDateTime) + " | UTC " + m(o.timeZone < 0 ? o.timeZone : "+" + o.timeZone), 1)
10947
10957
  ]),
10948
10958
  _: 1
10949
10959
  }, 8, ["height", "width", "onClick"]),
@@ -10952,10 +10962,10 @@ function em(t, e, o, i, a, r) {
10952
10962
  class: Ne(["card-box d-flex flex-column", o.position])
10953
10963
  }, {
10954
10964
  default: f(() => [
10955
- u(x, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
10965
+ p(x, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
10956
10966
  default: f(() => [
10957
- s("div", Kc, [
10958
- u(c, {
10967
+ s("div", Jc, [
10968
+ p(c, {
10959
10969
  modelValue: a.currentDate,
10960
10970
  "onUpdate:modelValue": e[0] || (e[0] = (z) => a.currentDate = z),
10961
10971
  min: a.minDate,
@@ -10969,13 +10979,13 @@ function em(t, e, o, i, a, r) {
10969
10979
  "onUpdate:month": r.handleUpdateMonth
10970
10980
  }, null, 8, ["modelValue", "min", "max", "mode-icon", "onUpdate:month"])
10971
10981
  ]),
10972
- u(n, {
10982
+ p(n, {
10973
10983
  class: "h-100",
10974
10984
  vertical: ""
10975
10985
  }),
10976
- s("div", Qc, [
10977
- s("div", Jc, m(a.currentTime), 1),
10978
- u(b, { class: "pa-0 flex-1-1-0" }, {
10986
+ s("div", em, [
10987
+ s("div", tm, m(a.currentTime), 1),
10988
+ p(b, { class: "pa-0 flex-1-1-0" }, {
10979
10989
  default: f(() => [
10980
10990
  (y(!0), S(be, null, we(r.hourOptions, (z, T) => (y(), R(h, {
10981
10991
  key: T,
@@ -10987,12 +10997,12 @@ function em(t, e, o, i, a, r) {
10987
10997
  "min-height": "26"
10988
10998
  }, {
10989
10999
  default: f(() => [
10990
- u(p, {
11000
+ p(u, {
10991
11001
  class: "text-body-2 text-center",
10992
11002
  onClick: (O) => a.currentTime = z
10993
11003
  }, {
10994
11004
  default: f(() => [
10995
- X(m(z), 1)
11005
+ $(m(z), 1)
10996
11006
  ]),
10997
11007
  _: 2
10998
11008
  }, 1032, ["onClick"])
@@ -11006,33 +11016,33 @@ function em(t, e, o, i, a, r) {
11006
11016
  ]),
11007
11017
  _: 1
11008
11018
  }),
11009
- u(n),
11010
- u(k, {
11019
+ p(n),
11020
+ p(k, {
11011
11021
  class: "justify-end pa-0 pr-4",
11012
11022
  style: { height: "50px" }
11013
11023
  }, {
11014
11024
  default: f(() => [
11015
- u(l, {
11025
+ p(l, {
11016
11026
  size: "small",
11017
11027
  variant: "tonal",
11018
11028
  class: "text-none text-body-2",
11019
11029
  onClick: r.handleCancelDate
11020
11030
  }, {
11021
11031
  default: f(() => e[1] || (e[1] = [
11022
- X("Cancel", -1)
11032
+ $("Cancel", -1)
11023
11033
  ])),
11024
11034
  _: 1,
11025
11035
  __: [1]
11026
11036
  }, 8, ["onClick"]),
11027
- u(l, {
11037
+ p(l, {
11028
11038
  size: "small",
11029
- variant: "tonal",
11039
+ variant: "flat",
11030
11040
  color: "primary",
11031
11041
  class: "text-none text-body-2",
11032
11042
  onClick: r.handleConfirmDate
11033
11043
  }, {
11034
11044
  default: f(() => e[2] || (e[2] = [
11035
- X("Confirm", -1)
11045
+ $("Confirm", -1)
11036
11046
  ])),
11037
11047
  _: 1,
11038
11048
  __: [2]
@@ -11045,8 +11055,8 @@ function em(t, e, o, i, a, r) {
11045
11055
  }, 8, ["class"])) : D("", !0)
11046
11056
  ], 512);
11047
11057
  }
11048
- const no = /* @__PURE__ */ Y(Xc, [["render", em]]);
11049
- const tm = {
11058
+ const no = /* @__PURE__ */ Y(Kc, [["render", om]]);
11059
+ const am = {
11050
11060
  name: "IdmPoint",
11051
11061
  components: {
11052
11062
  DateTimePicker: no
@@ -11160,12 +11170,12 @@ const tm = {
11160
11170
  },
11161
11171
  computePosition() {
11162
11172
  return function(t) {
11163
- return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" : $.lat2pretty(t == null ? void 0 : t.lat, 2).pretty + " / " + $.lng2pretty(t == null ? void 0 : t.lng, 2).pretty;
11173
+ return !t || t.lng === null || t.lng === void 0 || isNaN(t.lng) || t.lat === null || t.lat === void 0 || isNaN(t.lat) ? "-" : K.lat2pretty(t == null ? void 0 : t.lat, 2).pretty + " / " + K.lng2pretty(t == null ? void 0 : t.lng, 2).pretty;
11164
11174
  };
11165
11175
  },
11166
11176
  computeRoundPrecision() {
11167
11177
  return function(t, e = 4) {
11168
- return t == null || isNaN(t) || isNaN(e) ? "-" : $.roundPrecision(t, e);
11178
+ return t == null || isNaN(t) || isNaN(e) ? "-" : K.roundPrecision(t, e);
11169
11179
  };
11170
11180
  }
11171
11181
  },
@@ -11285,10 +11295,10 @@ const tm = {
11285
11295
  (a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.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;
11286
11296
  },
11287
11297
  initTableData(t) {
11288
- var o, i, a, r, l, c, n, p, h, b, x, k, g, z, T, O, I, P, _, L, C, v, A, N, V, Z, U, ee, K, J, pe, me, Q, ae, de, le, he, ge, F, ne, xe;
11298
+ var o, i, a, r, l, c, n, u, h, b, x, k, g, z, T, O, I, P, _, L, C, v, A, N, V, Z, U, ee, Q, X, ne, se, J, ae, he, ce, pe, ge, F, me, xe;
11289
11299
  this.currentHourData = {}, this.positionGmt = (i = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : r.offset;
11290
11300
  const e = ((l = ao.pickHourly(t, M(this.form.dateTime))) == null ? void 0 : l[0]) || {};
11291
- 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((p = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : p.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((b = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.precip) == null ? void 0 : b.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((x = e == null ? void 0 : e.weather) == null ? void 0 : x.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((g = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : g.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.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 = (L = e == null ? void 0 : e.wave) == null ? void 0 : L.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((V = (N = e == null ? void 0 : e.wave) == null ? void 0 : N.sig) == null ? void 0 : V.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((U = (Z = e == null ? void 0 : e.wave) == null ? void 0 : Z.wd) == null ? void 0 : U.height, 1) ?? "-", this.currentHourData.windwaveDir = (K = (ee = e == null ? void 0 : e.wave) == null ? void 0 : ee.wd) == null ? void 0 : K.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((pe = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : pe.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((Q = (me = e == null ? void 0 : e.wave) == null ? void 0 : me.swell) == null ? void 0 : Q.height, 1) ?? "-", this.currentHourData.swellDir = (de = (ae = e == null ? void 0 : e.wave) == null ? void 0 : ae.swell) == null ? void 0 : de.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((he = (le = e == null ? void 0 : e.wave) == null ? void 0 : le.swell) == null ? void 0 : he.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ge = e == null ? void 0 : e.current) == null ? void 0 : ge.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((ne = e == null ? void 0 : e.current) == null ? void 0 : ne.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;
11301
+ 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((u = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : u.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((b = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.precip) == null ? void 0 : b.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((x = e == null ? void 0 : e.weather) == null ? void 0 : x.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((g = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : g.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.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 = (L = e == null ? void 0 : e.wave) == null ? void 0 : L.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((V = (N = e == null ? void 0 : e.wave) == null ? void 0 : N.sig) == null ? void 0 : V.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((U = (Z = e == null ? void 0 : e.wave) == null ? void 0 : Z.wd) == null ? void 0 : U.height, 1) ?? "-", this.currentHourData.windwaveDir = (Q = (ee = e == null ? void 0 : e.wave) == null ? void 0 : ee.wd) == null ? void 0 : Q.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((ne = (X = e == null ? void 0 : e.wave) == null ? void 0 : X.wd) == null ? void 0 : ne.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((J = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : J.height, 1) ?? "-", this.currentHourData.swellDir = (he = (ae = e == null ? void 0 : e.wave) == null ? void 0 : ae.swell) == null ? void 0 : he.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((pe = (ce = e == null ? void 0 : e.wave) == null ? void 0 : ce.swell) == null ? void 0 : pe.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ge = e == null ? void 0 : e.current) == null ? void 0 : ge.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;
11292
11302
  },
11293
11303
  handleBind() {
11294
11304
  var t, e;
@@ -11304,7 +11314,7 @@ const tm = {
11304
11314
  return !1;
11305
11315
  },
11306
11316
  handleGetPosition(t) {
11307
- this.form.latDegree = Number($.lat2pretty(t.lat).degree), this.form.latMinute = Number($.lat2pretty(t.lat).minute), this.form.latDirection = $.lat2pretty(t.lat).direction, this.form.lngDegree = Number($.lng2pretty(t.lng).degree), this.form.lngMinute = Number($.lng2pretty(t.lng).minute), this.form.lngDirection = $.lng2pretty(t.lng).direction;
11317
+ this.form.latDegree = Number(K.lat2pretty(t.lat).degree), this.form.latMinute = Number(K.lat2pretty(t.lat).minute), this.form.latDirection = K.lat2pretty(t.lat).direction, this.form.lngDegree = Number(K.lng2pretty(t.lng).degree), this.form.lngMinute = Number(K.lng2pretty(t.lng).minute), this.form.lngDirection = K.lng2pretty(t.lng).direction;
11308
11318
  },
11309
11319
  handleDrawInfoMarker(t) {
11310
11320
  t && (this.map.flyTo({
@@ -11340,75 +11350,75 @@ const tm = {
11340
11350
  this.$emit("cancelFollow", t);
11341
11351
  }
11342
11352
  }
11343
- }, om = { class: "idm-gl4-spot" }, am = { class: "d-flex justify-start align-center" }, im = { class: "text-h6 font-weight-600 mx-2" }, rm = { class: "d-flex justify-start align-center ga-1 mb-1" }, sm = {
11353
+ }, im = { class: "idm-gl4-spot" }, rm = { class: "d-flex justify-start align-center" }, sm = { class: "text-h6 font-weight-600 mx-2" }, lm = { class: "d-flex justify-start align-center ga-1 mb-1" }, nm = {
11344
11354
  class: "multi-color-icon",
11345
11355
  "aria-hidden": "true"
11346
- }, lm = ["xlink:href"], nm = { class: "d-flex justify-start align-center ga-1 mb-1" }, cm = {
11356
+ }, cm = ["xlink:href"], mm = { class: "d-flex justify-start align-center ga-1 mb-1" }, dm = {
11347
11357
  class: "multi-color-icon",
11348
11358
  "aria-hidden": "true"
11349
- }, mm = ["xlink:href"], dm = { class: "d-flex justify-start align-center ga-1 mb-1" }, hm = {
11359
+ }, hm = ["xlink:href"], pm = { class: "d-flex justify-start align-center ga-1 mb-1" }, um = {
11350
11360
  class: "multi-color-icon",
11351
11361
  "aria-hidden": "true"
11352
- }, pm = ["xlink:href"], um = { class: "d-flex justify-start align-center ga-1 mb-1" }, gm = {
11362
+ }, gm = ["xlink:href"], fm = { class: "d-flex justify-start align-center ga-1 mb-1" }, ym = {
11353
11363
  class: "multi-color-icon",
11354
11364
  "aria-hidden": "true"
11355
- }, fm = ["xlink:href"], ym = { class: "d-flex justify-start align-center" }, bm = { class: "mx-2" }, wm = { class: "mx-0 py-2 d-flex align-center justify-start" }, xm = {
11365
+ }, bm = ["xlink:href"], wm = { class: "d-flex justify-start align-center" }, xm = { class: "mx-2" }, vm = { class: "mx-0 py-2 d-flex align-center justify-start" }, _m = {
11356
11366
  style: { width: "100px" },
11357
11367
  class: "pa-0 pr-2 text-right opacity-50"
11358
- }, vm = { class: "pa-0 px-0" }, _m = { class: "mx-0 py-2 d-flex align-center justify-start" }, km = {
11368
+ }, km = { class: "pa-0 px-0" }, zm = { class: "mx-0 py-2 d-flex align-center justify-start" }, Lm = {
11359
11369
  cols: "9",
11360
11370
  class: "pa-0 px-0"
11361
- }, zm = { class: "mx-0 py-2 d-flex align-center justify-start" }, Lm = {
11371
+ }, Pm = { class: "mx-0 py-2 d-flex align-center justify-start" }, Cm = {
11362
11372
  style: { width: "100px" },
11363
11373
  class: "pa-0 pr-2 text-right opacity-50"
11364
- }, Pm = {
11365
- style: { width: "160px" },
11374
+ }, Tm = {
11375
+ style: { width: "150px" },
11366
11376
  class: "pa-0 text-left"
11367
- }, Cm = {
11377
+ }, Sm = {
11368
11378
  style: { width: "80px" },
11369
11379
  class: "pa-0 pr-2 text-right opacity-50"
11370
- }, Tm = {
11380
+ }, Mm = {
11371
11381
  cols: "3",
11372
11382
  class: "pa-0 px-0 text-left"
11373
- }, Sm = { class: "mx-0 py-2 d-flex align-center justify-start" }, Mm = {
11383
+ }, Im = { class: "mx-0 py-2 d-flex align-center justify-start" }, Dm = {
11374
11384
  style: { width: "100px" },
11375
11385
  class: "pa-0 pr-2 text-right opacity-50"
11376
- }, Im = {
11377
- style: { width: "160px" },
11386
+ }, Am = {
11387
+ style: { width: "150px" },
11378
11388
  class: "pa-0 text-left"
11379
- }, Dm = {
11389
+ }, Rm = {
11380
11390
  style: { width: "80px" },
11381
11391
  class: "pa-0 pr-2 text-right opacity-50"
11382
- }, Am = {
11392
+ }, Om = {
11383
11393
  cols: "3",
11384
11394
  class: "pa-0 text-left"
11385
- }, Rm = { class: "mx-0 py-2 d-flex align-center justify-start" }, Om = {
11395
+ }, Bm = { class: "mx-0 py-2 d-flex align-center justify-start" }, Em = {
11386
11396
  style: { width: "100px" },
11387
11397
  class: "pa-0 pr-2 text-right opacity-50"
11388
- }, Bm = {
11389
- style: { width: "160px" },
11398
+ }, jm = {
11399
+ style: { width: "150px" },
11390
11400
  class: "pa-0 text-left"
11391
- }, Em = {
11401
+ }, Nm = {
11392
11402
  style: { width: "80px" },
11393
11403
  class: "pa-0 pr-2 text-right opacity-50"
11394
- }, jm = { class: "pa-0 text-left" }, Nm = { id: "idm-position-icon" }, Fm = {
11404
+ }, Fm = { class: "pa-0 text-left" }, Hm = { id: "idm-position-icon" }, Gm = {
11395
11405
  class: "multi-color-icon",
11396
11406
  style: { height: "30px", width: "30px" },
11397
11407
  "aria-hidden": "true"
11398
- }, Hm = ["xlink:href"];
11399
- function Gm(t, e, o, i, a, r) {
11400
- const l = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), p = w("VDivider"), h = w("VTextField"), b = w("VCol"), x = w("VRow"), k = w("DateTimePicker"), g = w("VBtnToggle"), z = w("VCardActions"), T = w("VForm"), O = w("VCardText"), I = w("VCard"), P = w("VIcon");
11401
- return y(), S("div", om, [
11408
+ }, Wm = ["xlink:href"];
11409
+ function Um(t, e, o, i, a, r) {
11410
+ const l = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), u = w("VDivider"), h = w("VTextField"), b = w("VCol"), x = w("VRow"), k = w("DateTimePicker"), g = w("VBtnToggle"), z = w("VCardActions"), T = w("VForm"), O = w("VCardText"), I = w("VCard"), P = w("VIcon");
11411
+ return y(), S("div", im, [
11402
11412
  s("div", {
11403
11413
  class: "menu-bar-box transition pa-1",
11404
11414
  style: ie({ top: o.top + 174 + "px", right: a.right + "px" })
11405
11415
  }, [
11406
- u(c, {
11416
+ p(c, {
11407
11417
  text: t.$t("spot.spotsMeteo"),
11408
11418
  location: "left"
11409
11419
  }, {
11410
11420
  activator: f(({ props: _ }) => [
11411
- u(l, B(_, {
11421
+ p(l, B(_, {
11412
11422
  "min-width": "32",
11413
11423
  width: "32",
11414
11424
  height: "32",
@@ -11431,12 +11441,12 @@ function Gm(t, e, o, i, a, r) {
11431
11441
  style: ie({ top: o.top + 174 + "px", right: a.right + 50 + "px" })
11432
11442
  }, {
11433
11443
  default: f(() => [
11434
- u(n, { class: "d-flex justify-space-between align-center" }, {
11444
+ p(n, { class: "d-flex justify-space-between align-center" }, {
11435
11445
  default: f(() => [
11436
- s("div", am, [
11437
- s("div", im, m(t.$t("spot.spotWeather")), 1)
11446
+ s("div", rm, [
11447
+ s("div", sm, m(t.$t("spot.spotWeather")), 1)
11438
11448
  ]),
11439
- u(l, {
11449
+ p(l, {
11440
11450
  icon: "",
11441
11451
  density: "compact",
11442
11452
  variant: "plain",
@@ -11452,32 +11462,32 @@ function Gm(t, e, o, i, a, r) {
11452
11462
  ]),
11453
11463
  _: 1
11454
11464
  }),
11455
- u(p),
11456
- u(O, { class: "text-body-1 py-1" }, {
11465
+ p(u),
11466
+ p(O, { class: "text-body-1 py-1" }, {
11457
11467
  default: f(() => [
11458
- u(T, {
11468
+ p(T, {
11459
11469
  ref: "spotForm",
11460
11470
  autocomplete: "off",
11461
11471
  class: "form-box",
11462
11472
  onSubmit: je(r.submitForm, ["prevent"])
11463
11473
  }, {
11464
11474
  default: f(() => [
11465
- s("div", rm, [
11466
- (y(), S("svg", sm, [
11475
+ s("div", lm, [
11476
+ (y(), S("svg", nm, [
11467
11477
  s("use", {
11468
11478
  "xlink:href": `#icon-lng-${o.theme}`
11469
- }, null, 8, lm)
11479
+ }, null, 8, cm)
11470
11480
  ])),
11471
11481
  s("div", null, m(t.$t("spot.lng")), 1)
11472
11482
  ]),
11473
- u(x, { class: "ma-0" }, {
11483
+ p(x, { class: "ma-0" }, {
11474
11484
  default: f(() => [
11475
- u(b, {
11485
+ p(b, {
11476
11486
  cols: "4",
11477
11487
  class: "pa-0 d-flex"
11478
11488
  }, {
11479
11489
  default: f(() => [
11480
- u(h, {
11490
+ p(h, {
11481
11491
  modelValue: a.form.lngDegree,
11482
11492
  "onUpdate:modelValue": e[0] || (e[0] = (_) => a.form.lngDegree = _),
11483
11493
  rules: a.formRules.lngDegree,
@@ -11492,12 +11502,12 @@ function Gm(t, e, o, i, a, r) {
11492
11502
  _: 1,
11493
11503
  __: [10]
11494
11504
  }),
11495
- u(b, {
11505
+ p(b, {
11496
11506
  cols: "6",
11497
11507
  class: "pa-0 d-flex"
11498
11508
  }, {
11499
11509
  default: f(() => [
11500
- u(h, {
11510
+ p(h, {
11501
11511
  modelValue: a.form.lngMinute,
11502
11512
  "onUpdate:modelValue": e[1] || (e[1] = (_) => a.form.lngMinute = _),
11503
11513
  rules: a.formRules.lngMinute,
@@ -11513,12 +11523,12 @@ function Gm(t, e, o, i, a, r) {
11513
11523
  _: 1,
11514
11524
  __: [11]
11515
11525
  }),
11516
- u(b, {
11526
+ p(b, {
11517
11527
  cols: "2",
11518
11528
  class: "pa-0"
11519
11529
  }, {
11520
11530
  default: f(() => [
11521
- u(l, {
11531
+ p(l, {
11522
11532
  variant: "outlined",
11523
11533
  density: "compact",
11524
11534
  width: "32",
@@ -11529,7 +11539,7 @@ function Gm(t, e, o, i, a, r) {
11529
11539
  onClick: e[2] || (e[2] = (_) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
11530
11540
  }, {
11531
11541
  default: f(() => [
11532
- X(m(a.form.lngDirection), 1)
11542
+ $(m(a.form.lngDirection), 1)
11533
11543
  ]),
11534
11544
  _: 1
11535
11545
  })
@@ -11539,22 +11549,22 @@ function Gm(t, e, o, i, a, r) {
11539
11549
  ]),
11540
11550
  _: 1
11541
11551
  }),
11542
- s("div", nm, [
11543
- (y(), S("svg", cm, [
11552
+ s("div", mm, [
11553
+ (y(), S("svg", dm, [
11544
11554
  s("use", {
11545
11555
  "xlink:href": `#icon-lng-${o.theme}`
11546
- }, null, 8, mm)
11556
+ }, null, 8, hm)
11547
11557
  ])),
11548
11558
  s("div", null, m(t.$t("spot.lat")), 1)
11549
11559
  ]),
11550
- u(x, { class: "ma-0" }, {
11560
+ p(x, { class: "ma-0" }, {
11551
11561
  default: f(() => [
11552
- u(b, {
11562
+ p(b, {
11553
11563
  cols: "4",
11554
11564
  class: "pa-0 d-flex"
11555
11565
  }, {
11556
11566
  default: f(() => [
11557
- u(h, {
11567
+ p(h, {
11558
11568
  modelValue: a.form.latDegree,
11559
11569
  "onUpdate:modelValue": e[3] || (e[3] = (_) => a.form.latDegree = _),
11560
11570
  rules: a.formRules.latDegree,
@@ -11572,12 +11582,12 @@ function Gm(t, e, o, i, a, r) {
11572
11582
  _: 1,
11573
11583
  __: [12]
11574
11584
  }),
11575
- u(b, {
11585
+ p(b, {
11576
11586
  cols: "6",
11577
11587
  class: "pa-0 d-flex"
11578
11588
  }, {
11579
11589
  default: f(() => [
11580
- u(h, {
11590
+ p(h, {
11581
11591
  modelValue: a.form.latMinute,
11582
11592
  "onUpdate:modelValue": e[4] || (e[4] = (_) => a.form.latMinute = _),
11583
11593
  rules: a.formRules.latMinute,
@@ -11593,12 +11603,12 @@ function Gm(t, e, o, i, a, r) {
11593
11603
  _: 1,
11594
11604
  __: [13]
11595
11605
  }),
11596
- u(b, {
11606
+ p(b, {
11597
11607
  cols: "2",
11598
11608
  class: "pa-0"
11599
11609
  }, {
11600
11610
  default: f(() => [
11601
- u(l, {
11611
+ p(l, {
11602
11612
  variant: "outlined",
11603
11613
  density: "compact",
11604
11614
  width: "32",
@@ -11609,7 +11619,7 @@ function Gm(t, e, o, i, a, r) {
11609
11619
  onClick: e[5] || (e[5] = (_) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
11610
11620
  }, {
11611
11621
  default: f(() => [
11612
- X(m(a.form.latDirection), 1)
11622
+ $(m(a.form.latDirection), 1)
11613
11623
  ]),
11614
11624
  _: 1
11615
11625
  })
@@ -11619,22 +11629,22 @@ function Gm(t, e, o, i, a, r) {
11619
11629
  ]),
11620
11630
  _: 1
11621
11631
  }),
11622
- s("div", dm, [
11623
- (y(), S("svg", hm, [
11632
+ s("div", pm, [
11633
+ (y(), S("svg", um, [
11624
11634
  s("use", {
11625
11635
  "xlink:href": `#icon-date-time-${o.theme}`
11626
- }, null, 8, pm)
11636
+ }, null, 8, gm)
11627
11637
  ])),
11628
11638
  s("div", null, m(t.$t("spot.dateTime")), 1)
11629
11639
  ]),
11630
- u(x, { class: "ma-0 mb-4" }, {
11640
+ p(x, { class: "ma-0 mb-4" }, {
11631
11641
  default: f(() => [
11632
- u(b, {
11642
+ p(b, {
11633
11643
  cols: "12",
11634
11644
  class: "pa-0"
11635
11645
  }, {
11636
11646
  default: f(() => [
11637
- u(k, B({
11647
+ p(k, B({
11638
11648
  "date-time": a.form.dateTime,
11639
11649
  "time-zone": o.timeZone
11640
11650
  }, t.$attrs, {
@@ -11646,22 +11656,22 @@ function Gm(t, e, o, i, a, r) {
11646
11656
  ]),
11647
11657
  _: 1
11648
11658
  }),
11649
- s("div", um, [
11650
- (y(), S("svg", gm, [
11659
+ s("div", fm, [
11660
+ (y(), S("svg", ym, [
11651
11661
  s("use", {
11652
11662
  "xlink:href": `#icon-forecast-model-${o.theme}`
11653
- }, null, 8, fm)
11663
+ }, null, 8, bm)
11654
11664
  ])),
11655
11665
  s("div", null, m(t.$t("weather.forecastModel")), 1)
11656
11666
  ]),
11657
- u(x, { class: "ma-0 mb-2" }, {
11667
+ p(x, { class: "ma-0 mb-2" }, {
11658
11668
  default: f(() => [
11659
- u(b, {
11669
+ p(b, {
11660
11670
  cols: "12",
11661
11671
  class: "pa-0"
11662
11672
  }, {
11663
11673
  default: f(() => [
11664
- u(g, {
11674
+ p(g, {
11665
11675
  modelValue: a.form.forecastModel,
11666
11676
  "onUpdate:modelValue": e[7] || (e[7] = (_) => a.form.forecastModel = _),
11667
11677
  class: "w-100",
@@ -11671,7 +11681,7 @@ function Gm(t, e, o, i, a, r) {
11671
11681
  group: ""
11672
11682
  }, {
11673
11683
  default: f(() => [
11674
- u(l, {
11684
+ p(l, {
11675
11685
  density: "compact",
11676
11686
  height: "30",
11677
11687
  value: "GFS",
@@ -11680,12 +11690,12 @@ function Gm(t, e, o, i, a, r) {
11680
11690
  "base-color": ""
11681
11691
  }, {
11682
11692
  default: f(() => e[14] || (e[14] = [
11683
- X("NOAA", -1)
11693
+ $("NOAA", -1)
11684
11694
  ])),
11685
11695
  _: 1,
11686
11696
  __: [14]
11687
11697
  }, 8, ["class", "color"]),
11688
- u(l, {
11698
+ p(l, {
11689
11699
  density: "compact",
11690
11700
  height: "30",
11691
11701
  class: Ne(["text-none flex-1-1-0", a.form.forecastModel === "ECMWF" ? "" : "btn-border-1 btn-bg-1"]),
@@ -11694,7 +11704,7 @@ function Gm(t, e, o, i, a, r) {
11694
11704
  value: "ECMWF"
11695
11705
  }, {
11696
11706
  default: f(() => e[15] || (e[15] = [
11697
- X("ECMWF", -1)
11707
+ $("ECMWF", -1)
11698
11708
  ])),
11699
11709
  _: 1,
11700
11710
  __: [15]
@@ -11708,21 +11718,21 @@ function Gm(t, e, o, i, a, r) {
11708
11718
  ]),
11709
11719
  _: 1
11710
11720
  }),
11711
- u(p),
11712
- u(z, { class: "d-flex justify-end align-center ga-4" }, {
11721
+ p(u),
11722
+ p(z, { class: "d-flex justify-end align-center ga-4" }, {
11713
11723
  default: f(() => [
11714
- u(l, {
11724
+ p(l, {
11715
11725
  size: "small",
11716
11726
  variant: "outlined",
11717
- class: "text-none text-body-1",
11727
+ class: "text-none text-body-1 btn-border-1 btn-bg-1",
11718
11728
  onClick: r.cancelForm
11719
11729
  }, {
11720
11730
  default: f(() => [
11721
- X(m(t.$t("actions.clear")), 1)
11731
+ $(m(t.$t("actions.clear")), 1)
11722
11732
  ]),
11723
11733
  _: 1
11724
11734
  }, 8, ["onClick"]),
11725
- u(l, {
11735
+ p(l, {
11726
11736
  ref: "submitSpot",
11727
11737
  loading: a.loading,
11728
11738
  size: "small",
@@ -11732,7 +11742,7 @@ function Gm(t, e, o, i, a, r) {
11732
11742
  class: "text-none text-body-1"
11733
11743
  }, {
11734
11744
  default: f(() => [
11735
- X(m(t.$t("actions.confirm")), 1)
11745
+ $(m(t.$t("actions.confirm")), 1)
11736
11746
  ]),
11737
11747
  _: 1
11738
11748
  }, 8, ["loading"])
@@ -11755,13 +11765,13 @@ function Gm(t, e, o, i, a, r) {
11755
11765
  style: { width: "490px", "z-index": "9" }
11756
11766
  }, {
11757
11767
  default: f(() => [
11758
- u(n, { class: "d-flex justify-space-between align-center" }, {
11768
+ p(n, { class: "d-flex justify-space-between align-center" }, {
11759
11769
  default: f(() => [
11760
- s("div", ym, [
11770
+ s("div", wm, [
11761
11771
  e[16] || (e[16] = s("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
11762
- s("div", bm, m(r.computePosition(a.form || a.currentHourData)), 1)
11772
+ s("div", xm, m(r.computePosition(a.form || a.currentHourData)), 1)
11763
11773
  ]),
11764
- u(l, {
11774
+ p(l, {
11765
11775
  class: "mr-n2",
11766
11776
  density: "comfortable",
11767
11777
  icon: "",
@@ -11780,46 +11790,46 @@ function Gm(t, e, o, i, a, r) {
11780
11790
  ]),
11781
11791
  _: 1
11782
11792
  }),
11783
- u(p),
11784
- u(O, { class: "text-body-1 px-0 py-1" }, {
11793
+ p(u),
11794
+ p(O, { class: "text-body-1 px-0 py-1" }, {
11785
11795
  default: f(() => {
11786
11796
  var _, L;
11787
11797
  return [
11788
- s("div", wm, [
11789
- s("div", xm, m(t.$t("time.time")), 1),
11790
- s("div", vm, m(r.computedTzTime((_ = a.currentHourData) == null ? void 0 : _.utc)), 1)
11798
+ s("div", vm, [
11799
+ s("div", _m, m(t.$t("time.time")), 1),
11800
+ s("div", km, m(r.computedTzTime((_ = a.currentHourData) == null ? void 0 : _.utc)), 1)
11791
11801
  ]),
11792
- s("div", _m, [
11802
+ s("div", zm, [
11793
11803
  e[18] || (e[18] = s("div", {
11794
11804
  style: { width: "100px" },
11795
11805
  class: "pa-0 pr-2 text-right opacity-50"
11796
11806
  }, "LT", -1)),
11797
- s("div", km, m(r.computedLocalTime((L = a.currentHourData) == null ? void 0 : L.utc)), 1)
11807
+ s("div", Lm, m(r.computedLocalTime((L = a.currentHourData) == null ? void 0 : L.utc)), 1)
11798
11808
  ]),
11799
- s("div", zm, [
11800
- s("div", Lm, m(t.$t("weather.wind")), 1),
11801
- s("div", Pm, m(a.currentHourData.windDir ?? "-") + "/" + m(a.currentHourData.windSpeed ?? "-") + "kts/BF" + m(a.currentHourData.windLevel ?? "-"), 1),
11802
- s("div", Cm, m(t.$t("weather.sigWave")), 1),
11803
- s("div", Tm, m(a.currentHourData.sigwaveDir ?? "-") + "/" + m(a.currentHourData.sigwaveHeight ?? "-") + "m/" + m(a.currentHourData.sigwavePeriod ?? "-") + "s", 1)
11809
+ s("div", Pm, [
11810
+ s("div", Cm, m(t.$t("weather.wind")), 1),
11811
+ s("div", Tm, m(a.currentHourData.windDir ?? "-") + "/" + m(a.currentHourData.windSpeed ?? "-") + "kts/BF" + m(a.currentHourData.windLevel ?? "-"), 1),
11812
+ s("div", Sm, m(t.$t("weather.sigWave")), 1),
11813
+ s("div", Mm, m(a.currentHourData.sigwaveDir ?? "-") + "/" + m(a.currentHourData.sigwaveHeight ?? "-") + "m/" + m(a.currentHourData.sigwavePeriod ?? "-") + "s", 1)
11804
11814
  ]),
11805
- s("div", Sm, [
11806
- s("div", Mm, m(t.$t("weather.windWave")), 1),
11807
- s("div", Im, m(a.currentHourData.windwaveDir ?? "-") + "/" + m(a.currentHourData.windwaveHeight ?? "-") + "m/" + m(a.currentHourData.windwavePeriod ?? "-") + "s", 1),
11808
- s("div", Dm, m(t.$t("weather.swell")), 1),
11809
- s("div", Am, m(a.currentHourData.swellDir ?? "-") + "/" + m(a.currentHourData.swellHeight ?? "-") + "m/" + m(a.currentHourData.swellPeriod ?? "-") + "s", 1)
11815
+ s("div", Im, [
11816
+ s("div", Dm, m(t.$t("weather.windWave")), 1),
11817
+ s("div", Am, m(a.currentHourData.windwaveDir ?? "-") + "/" + m(a.currentHourData.windwaveHeight ?? "-") + "m/" + m(a.currentHourData.windwavePeriod ?? "-") + "s", 1),
11818
+ s("div", Rm, m(t.$t("weather.swell")), 1),
11819
+ s("div", Om, m(a.currentHourData.swellDir ?? "-") + "/" + m(a.currentHourData.swellHeight ?? "-") + "m/" + m(a.currentHourData.swellPeriod ?? "-") + "s", 1)
11810
11820
  ]),
11811
- s("div", Rm, [
11812
- s("div", Om, m(t.$t("weather.current")), 1),
11813
- s("div", Bm, m(a.currentHourData.currentDir ?? "-") + "/" + m(a.currentHourData.currentSpeed ?? "-") + "kts", 1),
11814
- s("div", Em, m(t.$t("weather.visibility")), 1),
11815
- s("div", jm, m(a.currentHourData.visibility ?? "-") + " nm", 1)
11821
+ s("div", Bm, [
11822
+ s("div", Em, m(t.$t("weather.current")), 1),
11823
+ s("div", jm, m(a.currentHourData.currentDir ?? "-") + "/" + m(a.currentHourData.currentSpeed ?? "-") + "kts", 1),
11824
+ s("div", Nm, m(t.$t("weather.visibility")), 1),
11825
+ s("div", Fm, m(a.currentHourData.visibility ?? "-") + " nm", 1)
11816
11826
  ])
11817
11827
  ];
11818
11828
  }),
11819
11829
  _: 1
11820
11830
  }),
11821
- u(p),
11822
- u(z, { class: "d-flex justify-space-between align-center" }, {
11831
+ p(u),
11832
+ p(z, { class: "d-flex justify-space-between align-center" }, {
11823
11833
  default: f(() => [
11824
11834
  o.followList.some((_) => {
11825
11835
  var L, C;
@@ -11835,10 +11845,13 @@ function Gm(t, e, o, i, a, r) {
11835
11845
  onClick: je(r.handleCancelFollow, ["stop"])
11836
11846
  }, {
11837
11847
  prepend: f(() => [
11838
- u(P, { color: "warning" })
11848
+ p(P, {
11849
+ color: "warning",
11850
+ style: { "font-size": "20px", "margin-top": "-2px" }
11851
+ })
11839
11852
  ]),
11840
11853
  default: f(() => [
11841
- X(" " + m(t.$t("actions.unfollow")), 1)
11854
+ $(" " + m(t.$t("actions.unfollow")), 1)
11842
11855
  ]),
11843
11856
  _: 1
11844
11857
  }, 8, ["onClick"])) : (y(), R(l, {
@@ -11851,12 +11864,15 @@ function Gm(t, e, o, i, a, r) {
11851
11864
  "prepend-icon": "mdi-star-outline",
11852
11865
  onClick: je(r.handleFollow, ["stop"])
11853
11866
  }, {
11867
+ prepend: f(() => [
11868
+ p(P, { style: { "font-size": "20px", "margin-top": "-2px" } })
11869
+ ]),
11854
11870
  default: f(() => [
11855
- X(m(t.$t("actions.follow")), 1)
11871
+ $(m(t.$t("actions.follow")) + " ", 1)
11856
11872
  ]),
11857
11873
  _: 1
11858
11874
  }, 8, ["onClick"])),
11859
- u(l, {
11875
+ p(l, {
11860
11876
  height: "32",
11861
11877
  variant: "text",
11862
11878
  density: "compact",
@@ -11865,7 +11881,7 @@ function Gm(t, e, o, i, a, r) {
11865
11881
  onClick: je(r.handleMeteoMore, ["stop"])
11866
11882
  }, {
11867
11883
  default: f(() => [
11868
- X(m(t.$t("spot.forecast")), 1)
11884
+ $(m(t.$t("spot.forecast")), 1)
11869
11885
  ]),
11870
11886
  _: 1
11871
11887
  }, 8, ["onClick"])
@@ -11875,19 +11891,19 @@ function Gm(t, e, o, i, a, r) {
11875
11891
  ]),
11876
11892
  _: 1
11877
11893
  })) : D("", !0),
11878
- We(s("div", Nm, [
11879
- (y(), S("svg", Fm, [
11894
+ We(s("div", Hm, [
11895
+ (y(), S("svg", Gm, [
11880
11896
  s("use", {
11881
11897
  "xlink:href": `#icon-spot-${o.theme}`
11882
- }, null, 8, Hm)
11898
+ }, null, 8, Wm)
11883
11899
  ]))
11884
11900
  ], 512), [
11885
11901
  [Ue, a.showMeteo]
11886
11902
  ])
11887
11903
  ]);
11888
11904
  }
11889
- const Wm = /* @__PURE__ */ Y(tm, [["render", Gm]]);
11890
- const Um = {
11905
+ const Vm = /* @__PURE__ */ Y(am, [["render", Um]]);
11906
+ const Zm = {
11891
11907
  name: "IdmMeasure",
11892
11908
  props: {
11893
11909
  map: {
@@ -11977,7 +11993,7 @@ const Um = {
11977
11993
  }
11978
11994
  },
11979
11995
  handleDrag(t) {
11980
- var o, i, a, r, l, c, n, p, h, b;
11996
+ var o, i, a, r, l, c, n, u, h, b;
11981
11997
  const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
11982
11998
  if ((e == null ? void 0 : e.split("-").length) === 2) {
11983
11999
  const x = this.geojson.filter((T) => T.id === e.split("-")[0])[0];
@@ -11996,13 +12012,13 @@ const Um = {
11996
12012
  this.handleTmpPointUpdate(
11997
12013
  x,
11998
12014
  z[g - 1],
11999
- { lng: (p = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : p.lng, lat: (b = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : b.lat, properties: z[g].properties },
12015
+ { lng: (u = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : u.lng, lat: (b = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : b.lat, properties: z[g].properties },
12000
12016
  g === z.length - 1 ? void 0 : z[g + 1]
12001
12017
  );
12002
12018
  }
12003
12019
  },
12004
12020
  handleDragEnd(t) {
12005
- var o, i, a, r, l, c, n, p, h, b;
12021
+ var o, i, a, r, l, c, n, u, h, b;
12006
12022
  const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
12007
12023
  if ((e == null ? void 0 : e.split("-").length) === 2) {
12008
12024
  const x = this.geojson.filter((z) => z.id === e.split("-")[0])[0];
@@ -12011,7 +12027,7 @@ const Um = {
12011
12027
  return ((T = z._element) == null ? void 0 : T.id) === e;
12012
12028
  })[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (l = t.target) == null ? void 0 : l._lngLat) == null ? void 0 : c.lat]);
12013
12029
  const g = x.features.filter((z) => z.geometry.type === "Point" && z.properties.id === e.split("-")[1])[0];
12014
- g.geometry.coordinates = [(p = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : p.lng, (b = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : b.lat], x.features = x.features.filter((z) => z.geometry.type === "Point"), this.handlePointUpdate(x);
12030
+ g.geometry.coordinates = [(u = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : u.lng, (b = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : b.lat], x.features = x.features.filter((z) => z.geometry.type === "Point"), this.handlePointUpdate(x);
12015
12031
  }
12016
12032
  },
12017
12033
  handleContextmenu(t) {
@@ -12020,9 +12036,9 @@ const Um = {
12020
12036
  const e = (r = (a = (i = t.originalEvent) == null ? void 0 : i.target) == null ? void 0 : a.parentElement) == null ? void 0 : r.id;
12021
12037
  if ((e == null ? void 0 : e.split("-").length) === 2) {
12022
12038
  const c = this.geojson.filter((n) => n.id === e.split("-")[0])[0].features.filter((n) => n.geometry.type === "Point");
12023
- if (c.length > 2 && c.filter((p) => p.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
12024
- const p = document.createElement("div");
12025
- p.className = "idm-gl4-measure-contextmenu-marker", p.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new ve.Marker(p).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
12039
+ if (c.length > 2 && c.filter((u) => u.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
12040
+ const u = document.createElement("div");
12041
+ u.className = "idm-gl4-measure-contextmenu-marker", u.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new ve.Marker(u).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
12026
12042
  }
12027
12043
  }
12028
12044
  },
@@ -12031,15 +12047,15 @@ const Um = {
12031
12047
  (o = this.contextmenu) == null || o.remove();
12032
12048
  const e = t.originalEvent.target.className;
12033
12049
  if (e === "marker-close") {
12034
- const n = (a = (i = t.originalEvent) == null ? void 0 : i.srcElement) == null ? void 0 : a.id, p = this.geojson.filter((h) => h.id === n)[0];
12035
- p && this.handleClear(p, !0), this.geojson = this.geojson.filter((h) => h.id !== n), !this.toggle && !((r = this.geojson) != null && r.some((h) => h.closed)) && this.handleUnbind();
12050
+ const n = (a = (i = t.originalEvent) == null ? void 0 : i.srcElement) == null ? void 0 : a.id, u = this.geojson.filter((h) => h.id === n)[0];
12051
+ u && this.handleClear(u, !0), this.geojson = this.geojson.filter((h) => h.id !== n), !this.toggle && !((r = this.geojson) != null && r.some((h) => h.closed)) && this.handleUnbind();
12036
12052
  } else if (e === "del-point") {
12037
- const n = (c = (l = t.originalEvent.target.id) == null ? void 0 : l.replace("del-", "")) == null ? void 0 : c.split("-"), p = this.geojson.filter((h) => h.id === n[0])[0];
12038
- p.features = p.features.filter((h) => h.geometry.type === "Point" && h.properties.id !== n[1]), this.handlePointUpdate(p);
12053
+ const n = (c = (l = t.originalEvent.target.id) == null ? void 0 : l.replace("del-", "")) == null ? void 0 : c.split("-"), u = this.geojson.filter((h) => h.id === n[0])[0];
12054
+ u.features = u.features.filter((h) => h.geometry.type === "Point" && h.properties.id !== n[1]), this.handlePointUpdate(u);
12039
12055
  } else if (e !== "marker-label" && this.toggle) {
12040
12056
  let n = this.geojson.at(-1);
12041
12057
  n || (n = H.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(n)), n.features = n.features.filter((h) => h.geometry.type === "Point");
12042
- const p = H.feature(
12058
+ const u = H.feature(
12043
12059
  {
12044
12060
  type: "Point",
12045
12061
  coordinates: [t.lngLat.lng, t.lngLat.lat]
@@ -12050,7 +12066,7 @@ const Um = {
12050
12066
  sumLabel: "Start"
12051
12067
  }
12052
12068
  );
12053
- n.features.push(p), this.handlePointUpdate(n);
12069
+ n.features.push(u), this.handlePointUpdate(n);
12054
12070
  }
12055
12071
  },
12056
12072
  handlePointUpdate(t) {
@@ -12059,14 +12075,14 @@ const Um = {
12059
12075
  let o = 0;
12060
12076
  const i = [];
12061
12077
  for (let a = 1; a < e.length; a++) {
12062
- const r = e[a - 1], l = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, p = { lng: l.geometry.coordinates[0], lat: l.geometry.coordinates[1] }, h = Ge.calculateDistance(n, p, c.mode === "RL", 4), b = Ge.calculateBearing(n, p, c.mode === "RL", 2);
12063
- o = $.roundPrecision(o + h, 4);
12078
+ const r = e[a - 1], l = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, u = { lng: l.geometry.coordinates[0], lat: l.geometry.coordinates[1] }, h = Ge.calculateDistance(n, u, c.mode === "RL", 4), b = Ge.calculateBearing(n, u, c.mode === "RL", 2);
12079
+ o = K.roundPrecision(o + h, 4);
12064
12080
  let x;
12065
- c.mode === "RL" ? x = $.convertToMonotonicLng([n, p]) : x = $.convertToMonotonicLng(Ge.interpolateCoordinates(n, p, 200));
12081
+ c.mode === "RL" ? x = K.convertToMonotonicLng([n, u]) : x = K.convertToMonotonicLng(Ge.interpolateCoordinates(n, u, 200));
12066
12082
  const k = H.lineString(x.map((z) => [z.lng, z.lat]));
12067
12083
  k.properties.dist = h, k.properties.bearing = b, k.properties.total = o, k.properties.name = "Line " + this.currentLineIndex, i.push(k);
12068
12084
  const g = e[a];
12069
- g.properties.totalDist = $.roundPrecision((c.totalDist ? c.totalDist : 0) + h, 4), g.properties.sumLabel = g.properties.totalDist + " nm";
12085
+ g.properties.totalDist = K.roundPrecision((c.totalDist ? c.totalDist : 0) + h, 4), g.properties.sumLabel = g.properties.totalDist + " nm";
12070
12086
  }
12071
12087
  e.push(...i), t.total = o;
12072
12088
  }
@@ -12076,18 +12092,18 @@ const Um = {
12076
12092
  const a = H.featureCollection([]);
12077
12093
  let r, l;
12078
12094
  if (e) {
12079
- const n = e.properties, p = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, h = { lng: o.lng, lat: o.lat };
12080
- r = Ge.calculateDistance(p, h, n.mode === "RL", 4), l = Ge.calculateBearing(p, h, n.mode === "RL", 2);
12095
+ const n = e.properties, u = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, h = { lng: o.lng, lat: o.lat };
12096
+ r = Ge.calculateDistance(u, h, n.mode === "RL", 4), l = Ge.calculateBearing(u, h, n.mode === "RL", 2);
12081
12097
  let b;
12082
- n.mode === "RL" ? b = $.convertToMonotonicLng([p, h]) : b = $.convertToMonotonicLng(Ge.interpolateCoordinates(p, h, 200));
12098
+ n.mode === "RL" ? b = K.convertToMonotonicLng([u, h]) : b = K.convertToMonotonicLng(Ge.interpolateCoordinates(u, h, 200));
12083
12099
  const x = H.lineString(b.map((k) => [k.lng, k.lat]));
12084
12100
  x.properties.dist = r, x.properties.bearing = l, a.features.push(x);
12085
12101
  }
12086
12102
  if (i) {
12087
- const n = o.properties, p = o, h = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
12088
- r = Ge.calculateDistance(p, h, n.mode === "RL", 4), l = Ge.calculateBearing(p, h, n.mode === "RL", 2);
12103
+ const n = o.properties, u = o, h = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
12104
+ r = Ge.calculateDistance(u, h, n.mode === "RL", 4), l = Ge.calculateBearing(u, h, n.mode === "RL", 2);
12089
12105
  let b;
12090
- n.mode === "RL" ? b = $.convertToMonotonicLng([p, h]) : b = $.convertToMonotonicLng(Ge.interpolateCoordinates(p, h, 200));
12106
+ n.mode === "RL" ? b = K.convertToMonotonicLng([u, h]) : b = K.convertToMonotonicLng(Ge.interpolateCoordinates(u, h, 200));
12091
12107
  const x = H.lineString(b.map((k) => [k.lng, k.lat]));
12092
12108
  x.properties.dist = r, x.properties.bearing = l, a.features.push(x);
12093
12109
  }
@@ -12133,7 +12149,7 @@ const Um = {
12133
12149
  if (i)
12134
12150
  c = `<div class="marker-label">${this.$t("measure.dragTips")}</div>`;
12135
12151
  else {
12136
- const n = $.roundPrecision((t.total ?? 0) + r, 1);
12152
+ const n = K.roundPrecision((t.total ?? 0) + r, 1);
12137
12153
  c = `<div class="marker-label">${this.$t("measure.totalDistance")}: <b>${n}</b>nm, ${this.$t(
12138
12154
  "measure.bearing"
12139
12155
  )}: <b>${l}</b>°</div><div class="marker-label"> ${this.$t("measure.mode")}${this.navigation === "RL" ? "RL" : "GC"}, ${this.$t(
@@ -12220,37 +12236,37 @@ const Um = {
12220
12236
  for (const c of l) {
12221
12237
  const n = document.createElement("div");
12222
12238
  n.id = `${t.id}-${c.properties.id}`, n.className = `${t.closed ? "idm-gl4-measure-marker closed" : "idm-gl4-measure-marker"}`, n.innerHTML = '<div class="marker-circle"></div>';
12223
- const p = new ve.Marker({ element: n, draggable: !0, contextmenu: !0 }).setLngLat(c.geometry.coordinates).addTo(this.map);
12224
- p.on("drag", this.handleDrag), p.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(p) : this.pointMarkers[t.id] = [p];
12239
+ const u = new ve.Marker({ element: n, draggable: !0, contextmenu: !0 }).setLngLat(c.geometry.coordinates).addTo(this.map);
12240
+ u.on("drag", this.handleDrag), u.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(u) : this.pointMarkers[t.id] = [u];
12225
12241
  }
12226
12242
  if (t.closed) {
12227
- const c = l.at(-1), p = t.features.filter((b) => b.geometry.type === "LineString").at(-1), h = document.createElement("div");
12228
- h.className = "idm-gl4-measure-summary-marker", h.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${p.properties.name}</div>`, this.closeMarkers[t.id] = new ve.Marker(h).setOffset([0, -30]).setLngLat(c.geometry.coordinates).addTo(this.map);
12243
+ const c = l.at(-1), u = t.features.filter((b) => b.geometry.type === "LineString").at(-1), h = document.createElement("div");
12244
+ h.className = "idm-gl4-measure-summary-marker", h.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${u.properties.name}</div>`, this.closeMarkers[t.id] = new ve.Marker(h).setOffset([0, -30]).setLngLat(c.geometry.coordinates).addTo(this.map);
12229
12245
  }
12230
12246
  }
12231
12247
  },
12232
12248
  handleClear(t, e = !0) {
12233
- var l, c, n, p, h, b, x, k, g, z;
12249
+ var l, c, n, u, h, b, x, k, g, z;
12234
12250
  const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
12235
- (l = this.map) != null && l.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(a) && this.map.removeLayer(a), (n = this.map) != null && n.getLayer(r) && this.map.removeLayer(r), (p = this.map) != null && p.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (h = this.map) != null && h.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (b = this.closeMarkers[t.id]) == null || b.remove(), this.closeMarkers[t.id] = void 0, (x = this.pointMarkers[t.id]) == null || x.forEach((T) => {
12251
+ (l = this.map) != null && l.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(a) && this.map.removeLayer(a), (n = this.map) != null && n.getLayer(r) && this.map.removeLayer(r), (u = this.map) != null && u.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (h = this.map) != null && h.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (b = this.closeMarkers[t.id]) == null || b.remove(), this.closeMarkers[t.id] = void 0, (x = this.pointMarkers[t.id]) == null || x.forEach((T) => {
12236
12252
  T == null || T.remove();
12237
12253
  }), this.pointMarkers[t.id] = [], (k = this.tipMarker) == null || k.remove(), this.tipMarker = void 0, e && ((g = this.map) != null && g.getSource(o)) && this.map.removeSource(o), e && ((z = this.map) != null && z.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
12238
12254
  }
12239
12255
  }
12240
- }, Vm = { class: "idm-gl4-measure" };
12241
- function Zm(t, e, o, i, a, r) {
12256
+ }, Ym = { class: "idm-gl4-measure" };
12257
+ function qm(t, e, o, i, a, r) {
12242
12258
  const l = w("VBtn"), c = w("VTooltip");
12243
- return y(), S("div", Vm, [
12259
+ return y(), S("div", Ym, [
12244
12260
  s("div", {
12245
12261
  class: "menu-bar-box transition pa-1",
12246
12262
  style: ie({ top: o.top + 214 + "px", right: a.right + "px" })
12247
12263
  }, [
12248
- u(c, {
12264
+ p(c, {
12249
12265
  text: t.$t("measure.measure"),
12250
12266
  location: "left"
12251
12267
  }, {
12252
12268
  activator: f(({ props: n }) => [
12253
- u(l, B(n, {
12269
+ p(l, B(n, {
12254
12270
  "min-width": "32",
12255
12271
  width: "32",
12256
12272
  height: "32",
@@ -12269,8 +12285,8 @@ function Zm(t, e, o, i, a, r) {
12269
12285
  ], 4)
12270
12286
  ]);
12271
12287
  }
12272
- const Ym = /* @__PURE__ */ Y(Um, [["render", Zm]]);
12273
- const qm = {
12288
+ const Xm = /* @__PURE__ */ Y(Zm, [["render", qm]]);
12289
+ const $m = {
12274
12290
  name: "IdmBottomBar",
12275
12291
  components: { DateTimePicker: no },
12276
12292
  props: {
@@ -12395,19 +12411,19 @@ const qm = {
12395
12411
  this.$parent.$refs.idmWeatherLayers.handleMenuToggle();
12396
12412
  }
12397
12413
  }
12398
- }, Xm = { class: "idm-bottom-bar-gl4" }, $m = { class: "date-box d-flex ga-2 mr-2" }, Km = { class: "play-btns-box d-flex justify-center align-center cursor-pointer" }, Qm = { class: "fast-weathers-box d-flex justify-center align-center ga-2 cursor-pointer" }, Jm = { class: "model-box d-flex justify-center align-center ga-2 my-2" }, ed = {
12414
+ }, Km = { class: "idm-bottom-bar-gl4" }, Qm = { class: "date-box d-flex ga-2 mr-2" }, Jm = { class: "play-btns-box d-flex justify-center align-center cursor-pointer" }, ed = { class: "fast-weathers-box d-flex justify-center align-center ga-2 cursor-pointer" }, td = { class: "model-box d-flex justify-center align-center ga-2 my-2" }, od = {
12399
12415
  key: 0,
12400
12416
  class: "list d-flex flex-wrap pa-2 rounded ga-2"
12401
- }, td = ["onClick"], od = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, ad = { class: "text-body-1" };
12402
- function id(t, e, o, i, a, r) {
12403
- const l = w("DateTimePicker"), c = w("VListItemTitle"), n = w("VListItem"), p = w("VList"), h = w("VMenu"), b = w("VBtn"), x = w("VDivider"), k = w("VTooltip");
12404
- return y(), S("div", Xm, [
12417
+ }, ad = ["onClick"], id = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, rd = { class: "text-body-1" };
12418
+ function sd(t, e, o, i, a, r) {
12419
+ const l = w("DateTimePicker"), c = w("VListItemTitle"), n = w("VListItem"), u = w("VList"), h = w("VMenu"), b = w("VBtn"), x = w("VDivider"), k = w("VTooltip");
12420
+ return y(), S("div", Km, [
12405
12421
  s("div", {
12406
12422
  class: "timeline-box px-2 d-flex justify-start align-center rounded",
12407
12423
  style: ie({ right: a.right + 146 + "px", bottom: Object.values(a.show).includes(!0) ? "10px" : "-100px" })
12408
12424
  }, [
12409
- s("div", $m, [
12410
- u(l, B({
12425
+ s("div", Qm, [
12426
+ p(l, B({
12411
12427
  ref: "dateTimePicker",
12412
12428
  "date-time": a.currentDateTimeZ,
12413
12429
  "time-zone": a.timeZone,
@@ -12419,17 +12435,17 @@ function id(t, e, o, i, a, r) {
12419
12435
  onMinTimestamp: e[2] || (e[2] = (g) => a.minTimestamp = g),
12420
12436
  onMaxTimestamp: e[3] || (e[3] = (g) => a.maxTimestamp = g)
12421
12437
  }), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
12422
- u(b, {
12438
+ p(b, {
12423
12439
  text: "",
12424
12440
  height: "30",
12425
12441
  class: "text-none elevation-0 btn-border-1 btn-bg-1 text-body-1",
12426
12442
  "min-width": "30"
12427
12443
  }, {
12428
12444
  default: f(() => [
12429
- X(m(a.intervalHour) + " h ", 1),
12430
- u(h, { activator: "parent" }, {
12445
+ $(m(a.intervalHour) + " h ", 1),
12446
+ p(h, { activator: "parent" }, {
12431
12447
  default: f(() => [
12432
- u(p, { class: "pa-1" }, {
12448
+ p(u, { class: "pa-1" }, {
12433
12449
  default: f(() => [
12434
12450
  (y(!0), S(be, null, we(a.intervalOptions, (g, z) => (y(), R(n, {
12435
12451
  key: z,
@@ -12444,11 +12460,11 @@ function id(t, e, o, i, a, r) {
12444
12460
  class: "pa-0 text-center text-body-1"
12445
12461
  }, {
12446
12462
  default: f(() => [
12447
- u(c, {
12463
+ p(c, {
12448
12464
  onClick: (T) => a.intervalHour = g
12449
12465
  }, {
12450
12466
  default: f(() => [
12451
- X(m(g) + "h", 1)
12467
+ $(m(g) + "h", 1)
12452
12468
  ]),
12453
12469
  _: 2
12454
12470
  }, 1032, ["onClick"])
@@ -12465,13 +12481,13 @@ function id(t, e, o, i, a, r) {
12465
12481
  _: 1
12466
12482
  })
12467
12483
  ]),
12468
- u(x, {
12484
+ p(x, {
12469
12485
  vertical: "",
12470
12486
  class: "mx-2 my-3",
12471
12487
  style: { height: "16px" }
12472
12488
  }),
12473
- s("div", Km, [
12474
- u(b, {
12489
+ s("div", Jm, [
12490
+ p(b, {
12475
12491
  icon: "",
12476
12492
  size: "small",
12477
12493
  density: "comfortable",
@@ -12484,7 +12500,7 @@ function id(t, e, o, i, a, r) {
12484
12500
  _: 1,
12485
12501
  __: [10]
12486
12502
  }, 8, ["onClick"]),
12487
- u(b, {
12503
+ p(b, {
12488
12504
  icon: "",
12489
12505
  size: "small",
12490
12506
  density: "comfortable",
@@ -12524,7 +12540,7 @@ function id(t, e, o, i, a, r) {
12524
12540
  _: 1,
12525
12541
  __: [13]
12526
12542
  }, 8, ["onClick"])),
12527
- u(b, {
12543
+ p(b, {
12528
12544
  icon: "",
12529
12545
  size: "small",
12530
12546
  density: "comfortable",
@@ -12538,20 +12554,20 @@ function id(t, e, o, i, a, r) {
12538
12554
  __: [14]
12539
12555
  }, 8, ["onClick"])
12540
12556
  ]),
12541
- u(x, {
12557
+ p(x, {
12542
12558
  vertical: "",
12543
12559
  class: "mx-2 my-3",
12544
12560
  style: { height: "16px" }
12545
12561
  }),
12546
- s("div", Qm, [
12547
- u(k, {
12562
+ s("div", ed, [
12563
+ p(k, {
12548
12564
  text: t.$t("weather.windBarbs"),
12549
12565
  location: "top"
12550
12566
  }, {
12551
12567
  activator: f(({ props: g }) => {
12552
12568
  var z, T;
12553
12569
  return [
12554
- u(b, B(g, {
12570
+ p(b, B(g, {
12555
12571
  class: "pa-1 d-flex",
12556
12572
  color: (z = o.weatherCheckList) != null && z.includes("wind") ? "primary" : "",
12557
12573
  variant: (T = o.weatherCheckList) != null && T.includes("wind") ? "elevated" : "text",
@@ -12570,14 +12586,14 @@ function id(t, e, o, i, a, r) {
12570
12586
  }),
12571
12587
  _: 1
12572
12588
  }, 8, ["text"]),
12573
- u(k, {
12589
+ p(k, {
12574
12590
  text: t.$t("weather.sigWaveHeight"),
12575
12591
  location: "top"
12576
12592
  }, {
12577
12593
  activator: f(({ props: g }) => {
12578
12594
  var z, T;
12579
12595
  return [
12580
- u(b, B(g, {
12596
+ p(b, B(g, {
12581
12597
  class: "pa-1 d-flex",
12582
12598
  color: (z = o.weatherCheckList) != null && z.includes("sig-wave-height") ? "primary" : "",
12583
12599
  variant: (T = o.weatherCheckList) != null && T.includes("sig-wave-height") ? "elevated" : "text",
@@ -12595,14 +12611,14 @@ function id(t, e, o, i, a, r) {
12595
12611
  }),
12596
12612
  _: 1
12597
12613
  }, 8, ["text"]),
12598
- u(k, {
12614
+ p(k, {
12599
12615
  text: t.$t("weather.currentDirection"),
12600
12616
  location: "top"
12601
12617
  }, {
12602
12618
  activator: f(({ props: g }) => {
12603
12619
  var z, T;
12604
12620
  return [
12605
- u(b, B(g, {
12621
+ p(b, B(g, {
12606
12622
  class: "pa-1 d-flex",
12607
12623
  color: (z = o.weatherCheckList) != null && z.includes("current-direction") ? "primary" : "",
12608
12624
  variant: (T = o.weatherCheckList) != null && T.includes("current-direction") ? "elevated" : "text",
@@ -12620,12 +12636,12 @@ function id(t, e, o, i, a, r) {
12620
12636
  }),
12621
12637
  _: 1
12622
12638
  }, 8, ["text"]),
12623
- u(k, {
12639
+ p(k, {
12624
12640
  text: t.$t("weather.weatherLayers"),
12625
12641
  location: "top"
12626
12642
  }, {
12627
12643
  activator: f(({ props: g }) => [
12628
- u(b, B(g, {
12644
+ p(b, B(g, {
12629
12645
  class: "pa-1 d-flex",
12630
12646
  variant: "text",
12631
12647
  height: "24",
@@ -12642,13 +12658,13 @@ function id(t, e, o, i, a, r) {
12642
12658
  _: 1
12643
12659
  }, 8, ["text"])
12644
12660
  ]),
12645
- u(x, {
12661
+ p(x, {
12646
12662
  vertical: "",
12647
12663
  class: "mx-2 mr-3 my-3",
12648
12664
  style: { height: "16px" }
12649
12665
  }),
12650
- s("div", Jm, [
12651
- u(b, {
12666
+ s("div", td, [
12667
+ p(b, {
12652
12668
  text: "",
12653
12669
  height: "30",
12654
12670
  class: "px-2 elevation-0 text-body-1 btn-border-2 btn-bg-2",
@@ -12656,12 +12672,12 @@ function id(t, e, o, i, a, r) {
12656
12672
  onClick: e[7] || (e[7] = (g) => a.source = "GFS")
12657
12673
  }, {
12658
12674
  default: f(() => e[16] || (e[16] = [
12659
- X("NOAA", -1)
12675
+ $("NOAA", -1)
12660
12676
  ])),
12661
12677
  _: 1,
12662
12678
  __: [16]
12663
12679
  }, 8, ["color"]),
12664
- u(b, {
12680
+ p(b, {
12665
12681
  text: "",
12666
12682
  height: "30",
12667
12683
  class: "px-2 elevation-0 text-body-1 btn-border-2 btn-bg-2",
@@ -12669,7 +12685,7 @@ function id(t, e, o, i, a, r) {
12669
12685
  onClick: e[8] || (e[8] = (g) => a.source = "ECMWF")
12670
12686
  }, {
12671
12687
  default: f(() => e[17] || (e[17] = [
12672
- X("ECMWF", -1)
12688
+ $("ECMWF", -1)
12673
12689
  ])),
12674
12690
  _: 1,
12675
12691
  __: [17]
@@ -12680,15 +12696,15 @@ function id(t, e, o, i, a, r) {
12680
12696
  class: "timezone-box d-flex flex-column justify-space-between align-end",
12681
12697
  style: ie({ right: a.right + "px" })
12682
12698
  }, [
12683
- a.showTimezone ? (y(), S("div", ed, [
12699
+ a.showTimezone ? (y(), S("div", od, [
12684
12700
  (y(!0), S(be, null, we(a.offsets, (g) => (y(), S("div", {
12685
12701
  key: g,
12686
12702
  class: "item rounded text-body-2 hover-active",
12687
12703
  onClick: (z) => a.timeZone = g
12688
- }, m(g < 0 ? g : "+" + g), 9, td))), 128))
12704
+ }, m(g < 0 ? g : "+" + g), 9, ad))), 128))
12689
12705
  ])) : D("", !0),
12690
- s("div", od, [
12691
- u(b, {
12706
+ s("div", id, [
12707
+ p(b, {
12692
12708
  text: "",
12693
12709
  variant: "flat",
12694
12710
  height: "28",
@@ -12697,24 +12713,24 @@ function id(t, e, o, i, a, r) {
12697
12713
  onClick: e[9] || (e[9] = (g) => a.showTimezone = !a.showTimezone)
12698
12714
  }, {
12699
12715
  default: f(() => [
12700
- X(" UTC " + m(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
12716
+ $(" UTC " + m(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
12701
12717
  ]),
12702
12718
  _: 1
12703
12719
  }),
12704
- s("span", ad, m(a.currentRealTime), 1)
12720
+ s("span", rd, m(a.currentRealTime), 1)
12705
12721
  ])
12706
12722
  ], 4)
12707
12723
  ]);
12708
12724
  }
12709
- const rd = /* @__PURE__ */ Y(qm, [["render", id]]), sd = {
12725
+ const ld = /* @__PURE__ */ Y($m, [["render", sd]]), nd = {
12710
12726
  name: "IdmGL4",
12711
12727
  components: {
12712
12728
  IdmOtherLayer: pl,
12713
12729
  IdmWeatherLayer: ec,
12714
12730
  IdmTropicals: Xa,
12715
- IdmMeasure: Ym,
12716
- IdmSpot: Wm,
12717
- IdmBottomBar: rd
12731
+ IdmMeasure: Xm,
12732
+ IdmSpot: Vm,
12733
+ IdmBottomBar: ld
12718
12734
  },
12719
12735
  props: {
12720
12736
  map: {
@@ -12765,14 +12781,14 @@ const rd = /* @__PURE__ */ Y(qm, [["render", id]]), sd = {
12765
12781
  }
12766
12782
  },
12767
12783
  methods: {}
12768
- }, ld = {
12784
+ }, cd = {
12769
12785
  ref: "mapHomeGl4",
12770
12786
  class: "map-gl4-home"
12771
12787
  };
12772
- function nd(t, e, o, i, a, r) {
12773
- const l = w("IdmOtherLayer"), c = w("IdmWeatherLayer"), n = w("IdmTropicals"), p = w("IdmMeasure"), h = w("IdmSpot"), b = w("IdmBottomBar");
12774
- return y(), S("div", ld, [
12775
- u(l, B({
12788
+ function md(t, e, o, i, a, r) {
12789
+ const l = w("IdmOtherLayer"), c = w("IdmWeatherLayer"), n = w("IdmTropicals"), u = w("IdmMeasure"), h = w("IdmSpot"), b = w("IdmBottomBar");
12790
+ return y(), S("div", cd, [
12791
+ p(l, B({
12776
12792
  ref: "idmOtherLayers",
12777
12793
  token: o.token,
12778
12794
  "default-meteo-token": a.defaultMeteoToken,
@@ -12787,7 +12803,7 @@ function nd(t, e, o, i, a, r) {
12787
12803
  a.otherCheckList = x, a.layerVersion = a.layerVersion + 1;
12788
12804
  })
12789
12805
  }), null, 16, ["token", "default-meteo-token", "map", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
12790
- u(c, B({
12806
+ p(c, B({
12791
12807
  ref: "idmWeatherLayers",
12792
12808
  map: o.map,
12793
12809
  "before-layer": "empty-layer-2",
@@ -12805,7 +12821,7 @@ function nd(t, e, o, i, a, r) {
12805
12821
  a.weatherCheckList = x, a.layerVersion = a.layerVersion + 1;
12806
12822
  })
12807
12823
  }), null, 16, ["map", "token", "default-meteo-token", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
12808
- u(n, B({
12824
+ p(n, B({
12809
12825
  map: o.map,
12810
12826
  token: o.token,
12811
12827
  "default-meteo-token": a.defaultMeteoToken,
@@ -12816,11 +12832,11 @@ function nd(t, e, o, i, a, r) {
12816
12832
  "forecast-model": o.forecastModel,
12817
12833
  "map-feather": o.mapFeather
12818
12834
  }, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "tropicals", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
12819
- u(p, B({
12835
+ p(u, B({
12820
12836
  map: o.map,
12821
12837
  "map-feather": o.mapFeather
12822
12838
  }, t.$attrs), null, 16, ["map", "map-feather"]),
12823
- u(h, B({
12839
+ p(h, B({
12824
12840
  ref: "idmSpot",
12825
12841
  map: o.map,
12826
12842
  token: o.token,
@@ -12828,7 +12844,7 @@ function nd(t, e, o, i, a, r) {
12828
12844
  "forecast-model": o.forecastModel,
12829
12845
  "map-feather": o.mapFeather
12830
12846
  }, t.$attrs), null, 16, ["map", "token", "gateway", "forecast-model", "map-feather"]),
12831
- u(b, B({
12847
+ p(b, B({
12832
12848
  ref: "idmBottomBar",
12833
12849
  "forecast-model": o.forecastModel,
12834
12850
  "weather-check-list": a.weatherCheckList,
@@ -12836,16 +12852,16 @@ function nd(t, e, o, i, a, r) {
12836
12852
  }, t.$attrs), null, 16, ["forecast-model", "weather-check-list", "map-feather"])
12837
12853
  ], 512);
12838
12854
  }
12839
- const cd = /* @__PURE__ */ Y(sd, [["render", nd]]);
12840
- class md {
12855
+ const dd = /* @__PURE__ */ Y(nd, [["render", md]]);
12856
+ class hd {
12841
12857
  constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
12842
- ce(this, "originStyle");
12843
- ce(this, "mapboxStyle");
12844
- ce(this, "i4");
12845
- ce(this, "hi");
12846
- ce(this, "td");
12847
- ce(this, "windy");
12848
- var o, i, a, r, l, c, n, p, h, b, x, k, g, z, T, O, I, P, _, L, C, v, A, N, V, Z, U, ee, K, J, pe, me, Q, ae, de, le, he, ge, F, ne, xe, Le, Pe, De, Ae, Re, _e, G, te, He, Me, ue, fe, W, Ce, oe, re, Oe, j, ye, Ie, Be, Ee, E, q, Ve, Ze, Ye, Te, qe, Xe, $e, Ke, Qe, Je, et, tt, ot, at, it, rt, st, lt, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, Mt, It, Dt, At, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Gt, Wt, Ut, Vt, Zt, Yt, qt, Xt, Kt, Qt, Jt, eo, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Mo, Io, Do, Ao, Ro, Oo, Bo, Eo, jo, No, Fo, Ho, Go, Wo, Uo, Vo, Zo, Yo, qo, Xo, $o, Ko, Qo, Jo, ea, ta, oa, aa, ia, ra, sa, la, na, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ma, Ia, Da, Aa, Ra, Oa, Ba, Ea, ja, Na, Fa, Ha, Ga, Wa, Ua;
12858
+ de(this, "originStyle");
12859
+ de(this, "mapboxStyle");
12860
+ de(this, "i4");
12861
+ de(this, "hi");
12862
+ de(this, "td");
12863
+ de(this, "windy");
12864
+ var o, i, a, r, l, c, n, u, h, b, x, k, g, z, T, O, I, P, _, L, C, v, A, N, V, Z, U, ee, Q, X, ne, se, J, ae, he, ce, pe, ge, F, me, xe, Le, Pe, De, Ae, Re, _e, G, te, He, Me, ue, fe, W, Ce, oe, re, Oe, j, ye, Ie, Be, Ee, E, q, Ve, Ze, Ye, Te, qe, Xe, $e, Ke, Qe, Je, et, tt, ot, at, it, rt, st, lt, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, Mt, It, Dt, At, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Gt, Wt, Ut, Vt, Zt, Yt, qt, Xt, Kt, Qt, Jt, eo, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Mo, Io, Do, Ao, Ro, Oo, Bo, Eo, jo, No, Fo, Ho, Go, Wo, Uo, Vo, Zo, Yo, qo, Xo, $o, Ko, Qo, Jo, ea, ta, oa, aa, ia, ra, sa, la, na, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ma, Ia, Da, Aa, Ra, Oa, Ba, Ea, ja, Na, Fa, Ha, Ga, Wa, Ua;
12849
12865
  this.i4 = {
12850
12866
  source: {
12851
12867
  type: "raster",
@@ -31489,7 +31505,7 @@ class md {
31489
31505
  (i = (o = this.originStyle) == null ? void 0 : o.light.layers) == null ? void 0 : i.find((d) => d.id === "land"),
31490
31506
  (r = (a = this.originStyle) == null ? void 0 : a.light.layers) == null ? void 0 : r.find((d) => d.id === "water"),
31491
31507
  (c = (l = this.originStyle) == null ? void 0 : l.light.layers) == null ? void 0 : c.find((d) => d.id === "ice-area-fill"),
31492
- (p = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : p.find((d) => d.id === "ice-area-line"),
31508
+ (u = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : u.find((d) => d.id === "ice-area-line"),
31493
31509
  (b = (h = this.originStyle) == null ? void 0 : h.light.layers) == null ? void 0 : b.find((d) => d.id === "loadlines-label"),
31494
31510
  (k = (x = this.originStyle) == null ? void 0 : x.light.layers) == null ? void 0 : k.find((d) => d.id === "loadlines-fill"),
31495
31511
  (z = (g = this.originStyle) == null ? void 0 : g.light.layers) == null ? void 0 : z.find((d) => d.id === "empty-layer-0"),
@@ -31500,12 +31516,12 @@ class md {
31500
31516
  (N = (A = this.originStyle) == null ? void 0 : A.light.layers) == null ? void 0 : N.find((d) => d.id === "empty-layer-2"),
31501
31517
  (Z = (V = this.originStyle) == null ? void 0 : V.light.layers) == null ? void 0 : Z.find((d) => d.id === "water-line-label"),
31502
31518
  (ee = (U = this.originStyle) == null ? void 0 : U.light.layers) == null ? void 0 : ee.find((d) => d.id === "water-point-label"),
31503
- (J = (K = this.originStyle) == null ? void 0 : K.light.layers) == null ? void 0 : J.find((d) => d.id === "world-12nm-v4-20231025"),
31504
- (me = (pe = this.originStyle) == null ? void 0 : pe.light.layers) == null ? void 0 : me.find((d) => d.id === "ne-10m-outline"),
31505
- (ae = (Q = this.originStyle) == null ? void 0 : Q.light.layers) == null ? void 0 : ae.find((d) => d.id === "ne-10m-label"),
31506
- (le = (de = this.originStyle) == null ? void 0 : de.light.layers) == null ? void 0 : le.find((d) => d.id === "china-route-line"),
31507
- (ge = (he = this.originStyle) == null ? void 0 : he.light.layers) == null ? void 0 : ge.find((d) => d.id === "china-route-fill"),
31508
- (ne = (F = this.originStyle) == null ? void 0 : F.light.layers) == null ? void 0 : ne.find((d) => d.id === "china-route-label"),
31519
+ (X = (Q = this.originStyle) == null ? void 0 : Q.light.layers) == null ? void 0 : X.find((d) => d.id === "world-12nm-v4-20231025"),
31520
+ (se = (ne = this.originStyle) == null ? void 0 : ne.light.layers) == null ? void 0 : se.find((d) => d.id === "ne-10m-outline"),
31521
+ (ae = (J = this.originStyle) == null ? void 0 : J.light.layers) == null ? void 0 : ae.find((d) => d.id === "ne-10m-label"),
31522
+ (ce = (he = this.originStyle) == null ? void 0 : he.light.layers) == null ? void 0 : ce.find((d) => d.id === "china-route-line"),
31523
+ (ge = (pe = this.originStyle) == null ? void 0 : pe.light.layers) == null ? void 0 : ge.find((d) => d.id === "china-route-fill"),
31524
+ (me = (F = this.originStyle) == null ? void 0 : F.light.layers) == null ? void 0 : me.find((d) => d.id === "china-route-label"),
31509
31525
  (Le = (xe = this.originStyle) == null ? void 0 : xe.light.layers) == null ? void 0 : Le.find((d) => d.id === "admin-0-boundary-bg"),
31510
31526
  (De = (Pe = this.originStyle) == null ? void 0 : Pe.light.layers) == null ? void 0 : De.find((d) => d.id === "admin-0-boundary"),
31511
31527
  (Re = (Ae = this.originStyle) == null ? void 0 : Ae.light.layers) == null ? void 0 : Re.find((d) => d.id === "admin-0-boundary-disputed"),
@@ -31702,7 +31718,7 @@ class md {
31702
31718
  };
31703
31719
  }
31704
31720
  }
31705
- const dd = {
31721
+ const pd = {
31706
31722
  name: "MapInitial",
31707
31723
  props: {
31708
31724
  token: {
@@ -31763,7 +31779,7 @@ const dd = {
31763
31779
  },
31764
31780
  methods: {
31765
31781
  async initOnlineMap() {
31766
- this.helper = new md(this.token), ve.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
31782
+ this.helper = new hd(this.token), ve.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
31767
31783
  const t = new ve.Map({
31768
31784
  container: "map",
31769
31785
  // style: 'mapbox://styles/neatchenheng/cmd894dwn036m01rf7anc0k0d', //light
@@ -31804,17 +31820,17 @@ const dd = {
31804
31820
  this.zoom > 2 && (this.zoom = Math.floor(this.zoom) - 1, (t = this.map) == null || t.flyTo({ zoom: this.zoom, duration: 500 }));
31805
31821
  }
31806
31822
  }
31807
- }, hd = { class: "mapbox-initial-gl4" }, pd = { class: "v-btn--variant-elevated rounded" }, ud = { class: "zoom" }, gd = { class: "position-absolute left-0 bottom-0 ma-2 my-1 text-caption text-label opacity-70" };
31808
- function fd(t, e, o, i, a, r) {
31823
+ }, ud = { class: "mapbox-initial-gl4" }, gd = { class: "v-btn--variant-elevated rounded" }, fd = { class: "zoom" }, yd = { class: "position-absolute left-0 bottom-0 ma-2 my-1 text-caption text-label opacity-70" };
31824
+ function bd(t, e, o, i, a, r) {
31809
31825
  const l = w("VBtn");
31810
- return y(), S("div", hd, [
31826
+ return y(), S("div", ud, [
31811
31827
  e[5] || (e[5] = s("div", { id: "map" }, null, -1)),
31812
31828
  s("div", {
31813
31829
  class: "menu-bar-box transition px-1 rounded d-flex flex-column",
31814
31830
  style: ie({ top: o.top + 268 + "px", right: a.right + "px" })
31815
31831
  }, [
31816
- s("div", pd, [
31817
- u(l, {
31832
+ s("div", gd, [
31833
+ p(l, {
31818
31834
  "min-width": "32",
31819
31835
  width: "32",
31820
31836
  height: "32",
@@ -31827,8 +31843,8 @@ function fd(t, e, o, i, a, r) {
31827
31843
  _: 1,
31828
31844
  __: [0]
31829
31845
  }, 8, ["onClick"]),
31830
- s("div", ud, m(a.zoom ? Math.floor(a.zoom) : 0), 1),
31831
- u(l, {
31846
+ s("div", fd, m(a.zoom ? Math.floor(a.zoom) : 0), 1),
31847
+ p(l, {
31832
31848
  "min-width": "32",
31833
31849
  width: "32",
31834
31850
  height: "32",
@@ -31843,7 +31859,7 @@ function fd(t, e, o, i, a, r) {
31843
31859
  }, 8, ["onClick"])
31844
31860
  ])
31845
31861
  ], 4),
31846
- s("div", gd, [
31862
+ s("div", yd, [
31847
31863
  e[2] || (e[2] = s("span", null, "© 2023", -1)),
31848
31864
  s("span", null, "-" + m(r.computeYear), 1),
31849
31865
  e[3] || (e[3] = s("span", { class: "text-uppercase ma-2" }, "ormwx.com", -1)),
@@ -31855,8 +31871,8 @@ function fd(t, e, o, i, a, r) {
31855
31871
  ])
31856
31872
  ]);
31857
31873
  }
31858
- const yd = /* @__PURE__ */ Y(dd, [["render", fd]]);
31859
- const bd = {
31874
+ const wd = /* @__PURE__ */ Y(pd, [["render", bd]]);
31875
+ const xd = {
31860
31876
  name: "DateRangePicker",
31861
31877
  props: {
31862
31878
  width: {
@@ -32005,14 +32021,14 @@ const bd = {
32005
32021
  e && !e.contains(t.target) && (this.showDatePicker = !1);
32006
32022
  }
32007
32023
  }
32008
- }, wd = {
32024
+ }, vd = {
32009
32025
  class: "idm-gl4-date-picker",
32010
32026
  ref: "idmGl4DatePicker"
32011
- }, xd = { class: "pa-0" };
32012
- function vd(t, e, o, i, a, r) {
32013
- const l = w("VBtn"), c = w("VDatePicker"), n = w("VCardText"), p = w("VDivider"), h = w("VCardActions"), b = w("VCard");
32014
- return y(), S("div", wd, [
32015
- u(l, {
32027
+ }, _d = { class: "pa-0" };
32028
+ function kd(t, e, o, i, a, r) {
32029
+ const l = w("VBtn"), c = w("VDatePicker"), n = w("VCardText"), u = w("VDivider"), h = w("VCardActions"), b = w("VCard");
32030
+ return y(), S("div", vd, [
32031
+ p(l, {
32016
32032
  text: "",
32017
32033
  height: o.height,
32018
32034
  width: o.width,
@@ -32020,7 +32036,7 @@ function vd(t, e, o, i, a, r) {
32020
32036
  onClick: r.handleOpenDatePicker
32021
32037
  }, {
32022
32038
  default: f(() => [
32023
- X(m(a.dateRangeStr), 1)
32039
+ $(m(a.dateRangeStr), 1)
32024
32040
  ]),
32025
32041
  _: 1
32026
32042
  }, 8, ["height", "width", "onClick"]),
@@ -32029,10 +32045,10 @@ function vd(t, e, o, i, a, r) {
32029
32045
  class: Ne(["card-box d-flex flex-column", o.position])
32030
32046
  }, {
32031
32047
  default: f(() => [
32032
- u(n, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
32048
+ p(n, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
32033
32049
  default: f(() => [
32034
- s("div", xd, [
32035
- u(c, {
32050
+ s("div", _d, [
32051
+ p(c, {
32036
32052
  modelValue: a.dateRange,
32037
32053
  "onUpdate:modelValue": e[0] || (e[0] = (x) => a.dateRange = x),
32038
32054
  min: a.minDate,
@@ -32050,33 +32066,33 @@ function vd(t, e, o, i, a, r) {
32050
32066
  ]),
32051
32067
  _: 1
32052
32068
  }),
32053
- u(p),
32054
- u(h, {
32069
+ p(u),
32070
+ p(h, {
32055
32071
  class: "justify-end pa-0 pr-4",
32056
32072
  style: { height: "50px" }
32057
32073
  }, {
32058
32074
  default: f(() => [
32059
- u(l, {
32075
+ p(l, {
32060
32076
  size: "small",
32061
32077
  variant: "tonal",
32062
32078
  class: "text-none text-body-2",
32063
32079
  onClick: r.handleCancelDate
32064
32080
  }, {
32065
32081
  default: f(() => e[1] || (e[1] = [
32066
- X("Cancel", -1)
32082
+ $("Cancel", -1)
32067
32083
  ])),
32068
32084
  _: 1,
32069
32085
  __: [1]
32070
32086
  }, 8, ["onClick"]),
32071
- u(l, {
32087
+ p(l, {
32072
32088
  size: "small",
32073
- variant: "tonal",
32089
+ variant: "flat",
32074
32090
  color: "primary",
32075
32091
  class: "text-none text-body-2",
32076
32092
  onClick: r.handleConfirmDate
32077
32093
  }, {
32078
32094
  default: f(() => e[2] || (e[2] = [
32079
- X("Confirm", -1)
32095
+ $("Confirm", -1)
32080
32096
  ])),
32081
32097
  _: 1,
32082
32098
  __: [2]
@@ -32089,22 +32105,22 @@ function vd(t, e, o, i, a, r) {
32089
32105
  }, 8, ["class"])) : D("", !0)
32090
32106
  ], 512);
32091
32107
  }
32092
- const _d = /* @__PURE__ */ Y(bd, [["render", vd]]), Rd = {
32108
+ const zd = /* @__PURE__ */ Y(xd, [["render", kd]]), Bd = {
32093
32109
  install(t) {
32094
- t.component("MapInitial", yd), t.component("MapboxGL", cd), t.component("TropicalGL", Xa), t.component("LatLngGL", qa), t.component("DateTimePicker", no), t.component("DateRangePicker", _d), t.component("PortDetail", so);
32110
+ t.component("MapInitial", wd), t.component("MapboxGL", dd), t.component("TropicalGL", Xa), t.component("LatLngGL", qa), t.component("DateTimePicker", no), t.component("DateRangePicker", zd), t.component("PortDetail", so);
32095
32111
  }
32096
32112
  };
32097
32113
  export {
32098
- _d as DateRangePicker,
32114
+ zd as DateRangePicker,
32099
32115
  no as DateTimePicker,
32100
32116
  qa as LatLngGL,
32101
- yd as MapInitial,
32102
- cd as MapboxGL,
32103
- Rd as MapboxGLPlugin,
32117
+ wd as MapInitial,
32118
+ dd as MapboxGL,
32119
+ Bd as MapboxGLPlugin,
32104
32120
  ke as ParticleSchema,
32105
32121
  so as PortDetail,
32106
32122
  Xa as TropicalGL,
32107
32123
  lo as Viewport,
32108
32124
  Fe as WebGL,
32109
- se as WebGLSchema
32125
+ le as WebGLSchema
32110
32126
  };