@idmwx/idmui-gl4 1.8.5 → 1.8.6

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
@@ -3,7 +3,7 @@ var Ka = (t, e, o) => e in t ? $a(t, e, { enumerable: !0, configurable: !0, writ
3
3
  var he = (t, e, o) => (Ka(t, typeof e != "symbol" ? e + "" : e, o), o);
4
4
  import Se from "axios";
5
5
  import { useTheme as Le } from "vuetify";
6
- import { openBlock as y, createElementBlock as M, resolveComponent as x, createBlock as R, withCtx as f, createVNode as p, withModifiers as je, createElementVNode as s, createCommentVNode as D, normalizeClass as Ye, toDisplayString as m, createTextVNode as J, Fragment as be, renderList as we, withDirectives as Ve, vShow as Ze, mergeProps as B, normalizeStyle as ae } from "vue";
6
+ import { openBlock as y, createElementBlock as M, resolveComponent as x, createBlock as R, withCtx as f, createVNode as u, withModifiers as je, createElementVNode as s, createCommentVNode as D, normalizeClass as Ye, toDisplayString as m, createTextVNode as J, Fragment as be, renderList as we, withDirectives as Ve, vShow as Ze, mergeProps as B, normalizeStyle as ae } from "vue";
7
7
  import xe from "mapbox-gl";
8
8
  import S from "moment";
9
9
  import { LngLatHelper as X, TropicalHelper as Za, LaneHelper as We } from "@idm-plugin/geo";
@@ -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, 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];
388
+ var n, g;
389
+ const l = (n = document.getElementById("idm-gl4-zone-info")) == null ? void 0 : n.cloneNode(!0), c = (g = l == null ? void 0 : l.children[1]) == null ? void 0 : g.children[0];
390
390
  c && (c.onclick = () => {
391
391
  this.handleRemoveMarker();
392
392
  }), this.marker = new xe.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
- p(c, null, {
499
+ u(c, null, {
500
500
  default: f(() => {
501
- var u;
501
+ var g;
502
502
  return [
503
- p(l, {
503
+ u(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: (u = a.form) == null ? void 0 : u.name
518
+ innerHTML: (g = a.form) == null ? void 0 : g.name
519
519
  }, null, 8, di)
520
520
  ];
521
521
  }),
@@ -1490,10 +1490,10 @@ const ui = {
1490
1490
  { label: "Swell", key: "weather.swell", unit: "m" },
1491
1491
  { label: "Current", key: "weather.current", unit: "kts" }
1492
1492
  ], (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || o.dateTimeList.forEach((i, a) => {
1493
- var c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, F, Z, Y, V, ee, Q, $, ce, le, me, K, ie, pe, de, ue, N, se, ve, Pe, Ce;
1493
+ var c, n, g, h, b, w, L, p, z, T, O, I, P, k, v, C, _, A, N, V, Y, Z, ee, Q, $, ce, le, me, K, ie, pe, de, ue, F, se, ve, Pe, Ce;
1494
1494
  let r = {};
1495
1495
  const l = ((c = Co.pickHourly(t, S(i))) == null ? void 0 : c[0]) || {};
1496
- 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((_ = (w = l == null ? void 0 : l.weather) == null ? void 0 : w.precip) == null ? void 0 : _.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((g = l == null ? void 0 : l.weather) == null ? void 0 : g.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (P = l == null ? void 0 : l.weather) == null ? void 0 : P.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((z = (L = l == null ? void 0 : l.weather) == null ? void 0 : L.wind) == null ? void 0 : z.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((C = (v = l == null ? void 0 : l.weather) == null ? void 0 : v.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((A = (k = l == null ? void 0 : l.wave) == null ? void 0 : k.sig) == null ? void 0 : A.height, 1) ?? "-", r.sigwaveDir = (Z = (F = l == null ? void 0 : l.wave) == null ? void 0 : F.sig) == null ? void 0 : Z.direction, r.sigwavePeriod = this.computeRoundPrecision((V = (Y = l == null ? void 0 : l.wave) == null ? void 0 : Y.sig) == null ? void 0 : V.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 = (ce = ($ = l == null ? void 0 : l.wave) == null ? void 0 : $.wd) == null ? void 0 : ce.direction, r.windwavePeriod = this.computeRoundPrecision((me = (le = l == null ? void 0 : l.wave) == null ? void 0 : le.wd) == null ? void 0 : me.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((ie = (K = l == null ? void 0 : l.wave) == null ? void 0 : K.swell) == null ? void 0 : ie.height, 1) ?? "-", r.swellDir = (de = (pe = l == null ? void 0 : l.wave) == null ? void 0 : pe.swell) == null ? void 0 : de.direction, r.swellPeriod = this.computeRoundPrecision((N = (ue = l == null ? void 0 : l.wave) == null ? void 0 : ue.swell) == null ? void 0 : N.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((se = l == null ? void 0 : l.current) == null ? void 0 : se.speed, 1) ?? "-", r.currentDir = (ve = l == null ? void 0 : l.current) == null ? void 0 : ve.direction, r.currentSpeed = this.computeRoundPrecision((Pe = l == null ? void 0 : l.current) == null ? void 0 : Pe.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 = (Ce = l == null ? void 0 : l.weather) == null ? void 0 : Ce.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;
1496
+ 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((g = l == null ? void 0 : l.weather) == null ? void 0 : g.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((L = (w = l == null ? void 0 : l.weather) == null ? void 0 : w.precip) == null ? void 0 : L.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((p = l == null ? void 0 : l.weather) == null ? void 0 : p.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((k = (P = l == null ? void 0 : l.weather) == null ? void 0 : P.wind) == null ? void 0 : k.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((C = (v = l == null ? void 0 : l.weather) == null ? void 0 : v.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((A = (_ = l == null ? void 0 : l.wave) == null ? void 0 : _.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((Z = (Y = l == null ? void 0 : l.wave) == null ? void 0 : Y.sig) == null ? void 0 : Z.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 = (ce = ($ = l == null ? void 0 : l.wave) == null ? void 0 : $.wd) == null ? void 0 : ce.direction, r.windwavePeriod = this.computeRoundPrecision((me = (le = l == null ? void 0 : l.wave) == null ? void 0 : le.wd) == null ? void 0 : me.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((ie = (K = l == null ? void 0 : l.wave) == null ? void 0 : K.swell) == null ? void 0 : ie.height, 1) ?? "-", r.swellDir = (de = (pe = l == null ? void 0 : l.wave) == null ? void 0 : pe.swell) == null ? void 0 : de.direction, r.swellPeriod = this.computeRoundPrecision((F = (ue = l == null ? void 0 : l.wave) == null ? void 0 : ue.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((se = l == null ? void 0 : l.current) == null ? void 0 : se.speed, 1) ?? "-", r.currentDir = (ve = l == null ? void 0 : l.current) == null ? void 0 : ve.direction, r.currentSpeed = this.computeRoundPrecision((Pe = l == null ? void 0 : l.current) == null ? void 0 : Pe.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 = (Ce = l == null ? void 0 : l.weather) == null ? void 0 : Ce.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;
1497
1497
  });
1498
1498
  },
1499
1499
  handleTide() {
@@ -1678,24 +1678,24 @@ const ui = {
1678
1678
  width: "120"
1679
1679
  }, ur = { class: "px-1 text-center" }, gr = { class: "px-1 text-center" }, fr = { class: "px-1 text-center" };
1680
1680
  function yr(t, e, o, i, a, r) {
1681
- const l = x("VBtn"), c = x("VCardTitle"), n = x("VDivider"), u = x("VIcon"), h = x("VBtnToggle"), b = x("VCard");
1681
+ const l = x("VBtn"), c = x("VCardTitle"), n = x("VDivider"), g = x("VIcon"), h = x("VBtnToggle"), b = x("VCard");
1682
1682
  return y(), R(b, { class: "port-detail-container d-flex flex-column justify-start align-center" }, {
1683
1683
  default: f(() => {
1684
- var w, _;
1684
+ var w, L;
1685
1685
  return [
1686
- p(c, { class: "w-100" }, {
1686
+ u(c, { class: "w-100" }, {
1687
1687
  default: f(() => {
1688
- var g, P, T, O, I;
1688
+ var p, z, T, O, I;
1689
1689
  return [
1690
1690
  s("div", gi, [
1691
1691
  s("div", fi, [
1692
1692
  s("div", {
1693
- class: Ye(["fi mr-2 rounded elevation-4", `fi-${(g = o.port) != null && g.cntLoCode ? (T = (P = o.port) == null ? void 0 : P.cntLoCode) == null ? void 0 : T.toLowerCase() : "xx"}`]),
1693
+ class: Ye(["fi mr-2 rounded elevation-4", `fi-${(p = o.port) != null && p.cntLoCode ? (T = (z = o.port) == null ? void 0 : z.cntLoCode) == null ? void 0 : T.toLowerCase() : "xx"}`]),
1694
1694
  style: { width: "36px", height: "24px" }
1695
1695
  }, null, 2),
1696
1696
  s("div", null, m((O = o.port) == null ? void 0 : O.name), 1)
1697
1697
  ]),
1698
- p(l, {
1698
+ u(l, {
1699
1699
  icon: "",
1700
1700
  density: "compact",
1701
1701
  variant: "plain",
@@ -1720,11 +1720,11 @@ function yr(t, e, o, i, a, r) {
1720
1720
  }),
1721
1721
  _: 1
1722
1722
  }),
1723
- p(n, { class: "w-100" }),
1723
+ u(n, { class: "w-100" }),
1724
1724
  s("div", bi, [
1725
- o.followList.some((g) => {
1726
- var P;
1727
- return ((P = g.port) == null ? void 0 : P.id) === o.portId;
1725
+ o.followList.some((p) => {
1726
+ var z;
1727
+ return ((z = p.port) == null ? void 0 : z.id) === o.portId;
1728
1728
  }) ? (y(), R(l, {
1729
1729
  key: 0,
1730
1730
  class: "text-none text-body-1 rounded flex-1-1-0 btn-bg-3",
@@ -1735,7 +1735,7 @@ function yr(t, e, o, i, a, r) {
1735
1735
  onClick: r.handleCancelFollow
1736
1736
  }, {
1737
1737
  prepend: f(() => [
1738
- p(u, { color: "warning" })
1738
+ u(g, { color: "warning" })
1739
1739
  ]),
1740
1740
  default: f(() => [
1741
1741
  J(" " + m(t.$t("actions.unfollow")), 1)
@@ -1755,7 +1755,7 @@ function yr(t, e, o, i, a, r) {
1755
1755
  ]),
1756
1756
  _: 1
1757
1757
  }, 8, ["onClick"])),
1758
- p(l, {
1758
+ u(l, {
1759
1759
  class: "text-none text-body-1 rounded flex-1-1-0 btn-bg-3",
1760
1760
  variant: "tonal",
1761
1761
  density: "compact",
@@ -1784,7 +1784,7 @@ function yr(t, e, o, i, a, r) {
1784
1784
  s("div", Li, [
1785
1785
  s("div", Pi, [
1786
1786
  s("div", Ci, m(t.$t("port.region")), 1),
1787
- s("div", Ti, m(((w = o.port) == null ? void 0 : w.region) ?? ((_ = o.port) == null ? void 0 : _.city) ?? "-"), 1)
1787
+ s("div", Ti, m(((w = o.port) == null ? void 0 : w.region) ?? ((L = o.port) == null ? void 0 : L.city) ?? "-"), 1)
1788
1788
  ]),
1789
1789
  s("div", Si, [
1790
1790
  s("div", Mi, m(t.$t("port.position")), 1),
@@ -1809,9 +1809,9 @@ function yr(t, e, o, i, a, r) {
1809
1809
  e[5] || (e[5] = s("div", { class: "text-body-2 text-success ga-2" }, null, -1))
1810
1810
  ]),
1811
1811
  s("div", Fi, [
1812
- p(h, {
1812
+ u(h, {
1813
1813
  modelValue: a.currentIndex,
1814
- "onUpdate:modelValue": e[0] || (e[0] = (g) => a.currentIndex = g),
1814
+ "onUpdate:modelValue": e[0] || (e[0] = (p) => a.currentIndex = p),
1815
1815
  class: "w-100 gray-bg-1 rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
1816
1816
  density: "compact",
1817
1817
  group: "",
@@ -1820,15 +1820,15 @@ function yr(t, e, o, i, a, r) {
1820
1820
  rounded: "1"
1821
1821
  }, {
1822
1822
  default: f(() => [
1823
- (y(!0), M(be, null, we(r.dateList, (g) => (y(), R(l, {
1823
+ (y(!0), M(be, null, we(r.dateList, (p) => (y(), R(l, {
1824
1824
  class: "text-none text-body-1 rounded bg-none flex-1-1-0",
1825
1825
  density: "compact",
1826
1826
  color: "primary",
1827
1827
  height: "26",
1828
- value: g.index
1828
+ value: p.index
1829
1829
  }, {
1830
1830
  default: f(() => [
1831
- J(m(g.label), 1)
1831
+ J(m(p.label), 1)
1832
1832
  ]),
1833
1833
  _: 2
1834
1834
  }, 1032, ["value"]))), 256))
@@ -1837,40 +1837,40 @@ function yr(t, e, o, i, a, r) {
1837
1837
  }, 8, ["modelValue"]),
1838
1838
  s("table", Hi, [
1839
1839
  s("tbody", null, [
1840
- (y(!0), M(be, null, we(a.tableData, (g) => (y(), M("tr", {
1841
- key: g.id
1840
+ (y(!0), M(be, null, we(a.tableData, (p) => (y(), M("tr", {
1841
+ key: p.id
1842
1842
  }, [
1843
1843
  s("th", Gi, [
1844
- J(m(t.$t(`${g.key}`)) + " ", 1),
1845
- g.unit ? (y(), M("span", Ui, " ( " + m(g.unit) + " )", 1)) : D("", !0)
1844
+ J(m(t.$t(`${p.key}`)) + " ", 1),
1845
+ p.unit ? (y(), M("span", Ui, " ( " + m(p.unit) + " )", 1)) : D("", !0)
1846
1846
  ]),
1847
1847
  s("td", Wi, [
1848
- g.img ? (y(), M("img", {
1848
+ p.img ? (y(), M("img", {
1849
1849
  key: 0,
1850
- src: g == null ? void 0 : g.value0,
1850
+ src: p == null ? void 0 : p.value0,
1851
1851
  style: { height: "30px" }
1852
- }, null, 8, Vi)) : (y(), M("span", Zi, m((g == null ? void 0 : g.value0) ?? "-"), 1))
1852
+ }, null, 8, Vi)) : (y(), M("span", Zi, m((p == null ? void 0 : p.value0) ?? "-"), 1))
1853
1853
  ]),
1854
1854
  s("td", Yi, [
1855
- g.img ? (y(), M("img", {
1855
+ p.img ? (y(), M("img", {
1856
1856
  key: 0,
1857
- src: g == null ? void 0 : g.value1,
1857
+ src: p == null ? void 0 : p.value1,
1858
1858
  style: { height: "30px" }
1859
- }, null, 8, qi)) : (y(), M("span", Xi, m((g == null ? void 0 : g.value1) ?? "-"), 1))
1859
+ }, null, 8, qi)) : (y(), M("span", Xi, m((p == null ? void 0 : p.value1) ?? "-"), 1))
1860
1860
  ]),
1861
1861
  s("td", $i, [
1862
- g.img ? (y(), M("img", {
1862
+ p.img ? (y(), M("img", {
1863
1863
  key: 0,
1864
- src: g == null ? void 0 : g.value2,
1864
+ src: p == null ? void 0 : p.value2,
1865
1865
  style: { height: "30px" }
1866
- }, null, 8, Ki)) : (y(), M("span", Ji, m((g == null ? void 0 : g.value2) ?? "-"), 1))
1866
+ }, null, 8, Ki)) : (y(), M("span", Ji, m((p == null ? void 0 : p.value2) ?? "-"), 1))
1867
1867
  ]),
1868
1868
  s("td", Qi, [
1869
- g.img ? (y(), M("img", {
1869
+ p.img ? (y(), M("img", {
1870
1870
  key: 0,
1871
- src: g == null ? void 0 : g.value3,
1871
+ src: p == null ? void 0 : p.value3,
1872
1872
  style: { height: "30px" }
1873
- }, null, 8, er)) : (y(), M("span", tr, m((g == null ? void 0 : g.value3) ?? "-"), 1))
1873
+ }, null, 8, er)) : (y(), M("span", tr, m((p == null ? void 0 : p.value3) ?? "-"), 1))
1874
1874
  ])
1875
1875
  ]))), 128))
1876
1876
  ])
@@ -1894,7 +1894,7 @@ function yr(t, e, o, i, a, r) {
1894
1894
  density: "compact",
1895
1895
  variant: "plain",
1896
1896
  size: "small",
1897
- onClick: e[1] || (e[1] = (g) => a.showTideDetail = !1)
1897
+ onClick: e[1] || (e[1] = (p) => a.showTideDetail = !1)
1898
1898
  })) : (y(), R(l, {
1899
1899
  key: 1,
1900
1900
  icon: "mdi-eye-outline",
@@ -1914,12 +1914,12 @@ function yr(t, e, o, i, a, r) {
1914
1914
  s("th", hr, m(t.$t("time.time")) + " ( LT ) ", 1),
1915
1915
  s("th", pr, m(t.$t("tide.height")) + " ( m )", 1)
1916
1916
  ]),
1917
- (y(!0), M(be, null, we(a.tideTableData, (g, P) => {
1917
+ (y(!0), M(be, null, we(a.tideTableData, (p, z) => {
1918
1918
  var T;
1919
- return y(), M("tr", { key: P }, [
1920
- s("td", ur, m(t.$t(`tide.${(T = g == null ? void 0 : g.type) == null ? void 0 : T.toLowerCase()}`)) + " " + m(t.$t("tide.tide")), 1),
1921
- s("td", gr, m(r.computeLocalTime(g == null ? void 0 : g.date, o.port, "MM-DD HH:mm")), 1),
1922
- s("td", fr, m((g == null ? void 0 : g.height) ?? "-") + " m", 1)
1919
+ return y(), M("tr", { key: z }, [
1920
+ s("td", ur, m(t.$t(`tide.${(T = p == null ? void 0 : p.type) == null ? void 0 : T.toLowerCase()}`)) + " " + m(t.$t("tide.tide")), 1),
1921
+ s("td", gr, m(r.computeLocalTime(p == null ? void 0 : p.date, o.port, "MM-DD HH:mm")), 1),
1922
+ s("td", fr, m((p == null ? void 0 : p.height) ?? "-") + " m", 1)
1923
1923
  ]);
1924
1924
  }), 128))
1925
1925
  ])
@@ -2043,12 +2043,12 @@ const br = {
2043
2043
  function _r(t, e, o, i, a, r) {
2044
2044
  const l = x("VCardText"), c = x("VCard"), n = x("PortDetail");
2045
2045
  return y(), M("div", null, [
2046
- Ve(p(c, {
2046
+ Ve(u(c, {
2047
2047
  id: "idmPortInfo",
2048
2048
  ref: "idmPortInfo"
2049
2049
  }, {
2050
2050
  default: f(() => [
2051
- p(l, { class: "text-body-1 pr-8" }, {
2051
+ u(l, { class: "text-body-1 pr-8" }, {
2052
2052
  default: f(() => [
2053
2053
  s("div", wr, [
2054
2054
  s("div", null, m(t.$t("port.port")), 1),
@@ -2074,7 +2074,7 @@ function _r(t, e, o, i, a, r) {
2074
2074
  port: a.port,
2075
2075
  forecastModel: o.forecastModel,
2076
2076
  onClose: r.handleCloseDetail,
2077
- onCloseAllDetail: e[0] || (e[0] = (u) => t.$emit("closeAllDetail", { ports: !0 }))
2077
+ onCloseAllDetail: e[0] || (e[0] = (g) => t.$emit("closeAllDetail", { ports: !0 }))
2078
2078
  }, t.$attrs), null, 16, ["portId", "port", "forecastModel", "onClose"])) : D("", !0)
2079
2079
  ]);
2080
2080
  }
@@ -2976,20 +2976,20 @@ const qr = {
2976
2976
  width: "120"
2977
2977
  }, Ls = { class: "px-1 text-center" }, Ps = { class: "px-1 text-center" }, Cs = { class: "px-1 text-center" };
2978
2978
  function Ts(t, e, o, i, a, r) {
2979
- const l = x("VBtn"), c = x("v-card-title"), n = x("v-divider"), u = x("VBtnToggle"), h = x("v-card");
2979
+ const l = x("VBtn"), c = x("v-card-title"), n = x("v-divider"), g = x("VBtnToggle"), h = x("v-card");
2980
2980
  return y(), R(h, { class: "tide-detail-container d-flex flex-column justify-start align-center" }, {
2981
2981
  default: f(() => {
2982
2982
  var b, w;
2983
2983
  return [
2984
- p(c, { class: "w-100" }, {
2984
+ u(c, { class: "w-100" }, {
2985
2985
  default: f(() => {
2986
- var _;
2986
+ var L;
2987
2987
  return [
2988
2988
  s("div", Xr, [
2989
2989
  s("div", $r, [
2990
- s("div", null, m((_ = o.station) == null ? void 0 : _.name), 1)
2990
+ s("div", null, m((L = o.station) == null ? void 0 : L.name), 1)
2991
2991
  ]),
2992
- p(l, {
2992
+ u(l, {
2993
2993
  icon: "",
2994
2994
  density: "compact",
2995
2995
  variant: "plain",
@@ -3010,7 +3010,7 @@ function Ts(t, e, o, i, a, r) {
3010
3010
  }),
3011
3011
  _: 1
3012
3012
  }),
3013
- p(n, { class: "w-100" }),
3013
+ u(n, { class: "w-100" }),
3014
3014
  s("div", Jr, [
3015
3015
  s("div", Qr, [
3016
3016
  s("div", es, [
@@ -3052,9 +3052,9 @@ function Ts(t, e, o, i, a, r) {
3052
3052
  e[3] || (e[3] = s("div", { class: "text-body-2 text-success ga-2" }, null, -1))
3053
3053
  ]),
3054
3054
  s("div", ws, [
3055
- p(u, {
3055
+ u(g, {
3056
3056
  modelValue: a.currentIndex,
3057
- "onUpdate:modelValue": e[0] || (e[0] = (_) => a.currentIndex = _),
3057
+ "onUpdate:modelValue": e[0] || (e[0] = (L) => a.currentIndex = L),
3058
3058
  class: "w-100 gray-bg-1 rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
3059
3059
  density: "compact",
3060
3060
  group: "",
@@ -3063,15 +3063,15 @@ function Ts(t, e, o, i, a, r) {
3063
3063
  rounded: "1"
3064
3064
  }, {
3065
3065
  default: f(() => [
3066
- (y(!0), M(be, null, we(r.dateList, (_) => (y(), R(l, {
3066
+ (y(!0), M(be, null, we(r.dateList, (L) => (y(), R(l, {
3067
3067
  class: "text-none text-body-1 rounded bg-none flex-1-1-0",
3068
3068
  density: "compact",
3069
3069
  color: "primary",
3070
3070
  height: "26",
3071
- value: _.index
3071
+ value: L.index
3072
3072
  }, {
3073
3073
  default: f(() => [
3074
- J(m(_.label), 1)
3074
+ J(m(L.label), 1)
3075
3075
  ]),
3076
3076
  _: 2
3077
3077
  }, 1032, ["value"]))), 256))
@@ -3086,12 +3086,12 @@ function Ts(t, e, o, i, a, r) {
3086
3086
  s("th", ks, m(t.$t("time.time")) + " ( LT )", 1),
3087
3087
  s("th", zs, m(t.$t("tide.height")) + " ( m )", 1)
3088
3088
  ]),
3089
- (y(!0), M(be, null, we(a.tideTableData, (_, g) => {
3090
- var P;
3091
- return y(), M("tr", { key: g }, [
3092
- s("td", Ls, m(t.$t(`tide.${(P = _ == null ? void 0 : _.type) == null ? void 0 : P.toLowerCase()}`)) + " " + m(t.$t("tide.tide")), 1),
3093
- s("td", Ps, m(r.computeLocalTime(_ == null ? void 0 : _.date, o.station, "MM-DD HH:mm")), 1),
3094
- s("td", Cs, m((_ == null ? void 0 : _.height) ?? "-") + " m", 1)
3089
+ (y(!0), M(be, null, we(a.tideTableData, (L, p) => {
3090
+ var z;
3091
+ return y(), M("tr", { key: p }, [
3092
+ s("td", Ls, m(t.$t(`tide.${(z = L == null ? void 0 : L.type) == null ? void 0 : z.toLowerCase()}`)) + " " + m(t.$t("tide.tide")), 1),
3093
+ s("td", Ps, m(r.computeLocalTime(L == null ? void 0 : L.date, o.station, "MM-DD HH:mm")), 1),
3094
+ s("td", Cs, m((L == null ? void 0 : L.height) ?? "-") + " m", 1)
3095
3095
  ]);
3096
3096
  }), 128))
3097
3097
  ])
@@ -3184,16 +3184,16 @@ const Ms = {
3184
3184
  function Os(t, e, o, i, a, r) {
3185
3185
  const l = x("v-card-text"), c = x("v-card"), n = x("TideDetail");
3186
3186
  return y(), M("div", null, [
3187
- Ve(p(c, { id: "idmTidalInfo" }, {
3187
+ Ve(u(c, { id: "idmTidalInfo" }, {
3188
3188
  default: f(() => [
3189
- p(l, { class: "pr-8 text-body-1" }, {
3189
+ u(l, { class: "pr-8 text-body-1" }, {
3190
3190
  default: f(() => {
3191
- var u, h;
3191
+ var g, h;
3192
3192
  return [
3193
3193
  s("div", Is, [
3194
3194
  s("div", Ds, m(t.$t("tide.tideStation")), 1),
3195
3195
  s("div", As, [
3196
- s("label", Rs, m((u = a.hoverStation) == null ? void 0 : u.name) + " , " + m(((h = a.hoverStation) == null ? void 0 : h.Country) || "-"), 1)
3196
+ s("label", Rs, m((g = a.hoverStation) == null ? void 0 : g.name) + " , " + m(((h = a.hoverStation) == null ? void 0 : h.Country) || "-"), 1)
3197
3197
  ])
3198
3198
  ])
3199
3199
  ];
@@ -4346,12 +4346,12 @@ const Gs = {
4346
4346
  function Zs(t, e, o, i, a, r) {
4347
4347
  const l = x("v-card-text"), c = x("v-card"), n = x("PortDetail");
4348
4348
  return y(), M("div", null, [
4349
- Ve(p(c, {
4349
+ Ve(u(c, {
4350
4350
  id: "idmFollowPortInfo",
4351
4351
  ref: "idmFollowPortInfo"
4352
4352
  }, {
4353
4353
  default: f(() => [
4354
- p(l, { class: "text-body-1 pr-8" }, {
4354
+ u(l, { class: "text-body-1 pr-8" }, {
4355
4355
  default: f(() => [
4356
4356
  s("div", Us, [
4357
4357
  s("div", null, m(t.$t("port.port")), 1),
@@ -4378,7 +4378,7 @@ function Zs(t, e, o, i, a, r) {
4378
4378
  forecastModel: o.forecastModel,
4379
4379
  followList: o.followList,
4380
4380
  onClose: r.handleCloseDetail,
4381
- onCloseAllDetail: e[0] || (e[0] = (u) => t.$emit("closeAllDetail", { followPort: !0 }))
4381
+ onCloseAllDetail: e[0] || (e[0] = (g) => t.$emit("closeAllDetail", { followPort: !0 }))
4382
4382
  }, t.$attrs), null, 16, ["portId", "port", "forecastModel", "followList", "onClose"])) : D("", !0)
4383
4383
  ]);
4384
4384
  }
@@ -4486,18 +4486,18 @@ const qs = {
4486
4486
  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);
4487
4487
  },
4488
4488
  handleClick(t) {
4489
- var o, i, a, r, l, c, n, u, h;
4489
+ var o, i, a, r, l, c, n, g, h;
4490
4490
  const e = t.features[0];
4491
4491
  if (e.properties) {
4492
4492
  const b = e.properties;
4493
4493
  b.lng = e.geometry.coordinates[0], b.lat = e.geometry.coordinates[1];
4494
- const w = S(), _ = (o = S(this.realTime)) == null ? void 0 : o.diff(w, "d", !0), g = {
4494
+ const w = S(), L = (o = S(this.realTime)) == null ? void 0 : o.diff(w, "d", !0), p = {
4495
4495
  lat: b.lat,
4496
4496
  lng: b.lng,
4497
4497
  datetime: this.realTime,
4498
4498
  forecastModel: this.forecastModel
4499
4499
  };
4500
- _ >= 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);
4500
+ L >= 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(p) : (h = (g = (n = (c = this.$parent) == null ? void 0 : c.$parent) == null ? void 0 : n.$refs) == null ? void 0 : g.idmSpot) == null || h.fetchHistoryData(p);
4501
4501
  }
4502
4502
  },
4503
4503
  handleHover(t) {
@@ -4526,7 +4526,7 @@ function Js(t, e, o, i, a, r) {
4526
4526
  ref: "idmFollowPositionInfo"
4527
4527
  }, {
4528
4528
  default: f(() => [
4529
- p(l, { class: "text-body-1 pr-8" }, {
4529
+ u(l, { class: "text-body-1 pr-8" }, {
4530
4530
  default: f(() => [
4531
4531
  s("div", Xs, [
4532
4532
  e[0] || (e[0] = s("div", null, "Location", -1)),
@@ -4717,9 +4717,9 @@ const el = {
4717
4717
  })
4718
4718
  );
4719
4719
  (await Promise.all(l)).map((n) => {
4720
- var b, w, _;
4721
- const u = ((b = n == null ? void 0 : n.data) == null ? void 0 : b.data) || (n == null ? void 0 : n.data), h = (_ = (w = n == null ? void 0 : n.config) == null ? void 0 : w.headers) == null ? void 0 : _.key;
4722
- this.otherLayers[h] = u;
4720
+ var b, w, L;
4721
+ const g = ((b = n == null ? void 0 : n.data) == null ? void 0 : b.data) || (n == null ? void 0 : n.data), h = (L = (w = n == null ? void 0 : n.config) == null ? void 0 : w.headers) == null ? void 0 : L.key;
4722
+ this.otherLayers[h] = g;
4723
4723
  });
4724
4724
  }
4725
4725
  }
@@ -4757,18 +4757,18 @@ const el = {
4757
4757
  }, dl = { class: "text-body-2 text-center pt-1" };
4758
4758
  function hl(t, e, o, i, a, r) {
4759
4759
  var $, ce, le, me, K, ie, pe, de, ue;
4760
- const l = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), u = x("VCardItem"), h = x("VCheckbox"), b = x("VCardText"), w = x("VCard"), _ = x("IdmLatLng"), g = x("IdmTerminator"), P = x("IdmTimezone"), T = x("IdmPort"), O = x("IdmAlertZone"), I = x("IdmTideStations"), L = x("IdmEcaZone"), z = x("IdmWarZone"), v = x("IdmGmdssArea"), C = x("IdmLoadLine"), k = x("IdmWorldMarine"), A = x("IdmVRA"), F = x("IdmSpecialArea"), Z = x("IdmWorld12nm"), Y = x("IdmChinaRoute"), V = x("IdmIceAreas"), ee = x("IdmFollowPort"), Q = x("IdmFollowPosition");
4760
+ const l = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VCardItem"), h = x("VCheckbox"), b = x("VCardText"), w = x("VCard"), L = x("IdmLatLng"), p = x("IdmTerminator"), z = x("IdmTimezone"), T = x("IdmPort"), O = x("IdmAlertZone"), I = x("IdmTideStations"), P = x("IdmEcaZone"), k = x("IdmWarZone"), v = x("IdmGmdssArea"), C = x("IdmLoadLine"), _ = x("IdmWorldMarine"), A = x("IdmVRA"), N = x("IdmSpecialArea"), V = x("IdmWorld12nm"), Y = x("IdmChinaRoute"), Z = x("IdmIceAreas"), ee = x("IdmFollowPort"), Q = x("IdmFollowPosition");
4761
4761
  return y(), M("div", tl, [
4762
4762
  s("div", {
4763
4763
  class: "menu-bar-box transition px-1 rounded",
4764
4764
  style: ae({ top: o.top + 10 + "px", right: a.right + "px" })
4765
4765
  }, [
4766
- p(c, {
4766
+ u(c, {
4767
4767
  text: t.$t("layer.mapLayers"),
4768
4768
  location: "left"
4769
4769
  }, {
4770
- activator: f(({ props: N }) => [
4771
- p(l, B(N, {
4770
+ activator: f(({ props: F }) => [
4771
+ u(l, B(F, {
4772
4772
  "min-width": "32",
4773
4773
  width: "32",
4774
4774
  height: "32",
@@ -4791,7 +4791,7 @@ function hl(t, e, o, i, a, r) {
4791
4791
  }, [
4792
4792
  s("div", ol, [
4793
4793
  s("div", al, m(t.$t("layer.layers")), 1),
4794
- p(l, {
4794
+ u(l, {
4795
4795
  icon: "",
4796
4796
  density: "compact",
4797
4797
  variant: "plain",
@@ -4806,14 +4806,14 @@ function hl(t, e, o, i, a, r) {
4806
4806
  }, 8, ["onClick"])
4807
4807
  ]),
4808
4808
  s("div", il, [
4809
- p(w, {
4809
+ u(w, {
4810
4810
  class: "block-bg mx-auto mb-3",
4811
4811
  elevation: "0"
4812
4812
  }, {
4813
4813
  default: f(() => [
4814
- p(u, { class: "border-b-thin" }, {
4814
+ u(g, { class: "border-b-thin" }, {
4815
4815
  default: f(() => [
4816
- p(n, {
4816
+ u(n, {
4817
4817
  class: "text-subtitle-1 font-weight-medium",
4818
4818
  style: { "font-size": "16px !important" }
4819
4819
  }, {
@@ -4825,28 +4825,28 @@ function hl(t, e, o, i, a, r) {
4825
4825
  ]),
4826
4826
  _: 1
4827
4827
  }),
4828
- p(b, { class: "pb-2" }, {
4828
+ u(b, { class: "pb-2" }, {
4829
4829
  default: f(() => [
4830
4830
  s("div", rl, [
4831
- (y(!0), M(be, null, we(a.mapFeathers, (N) => (y(), M("div", {
4832
- key: N.value,
4831
+ (y(!0), M(be, null, we(a.mapFeathers, (F) => (y(), M("div", {
4832
+ key: F.value,
4833
4833
  class: "mb-2 feather-item",
4834
- onClick: (se) => r.handleToggleMapFeather(N)
4834
+ onClick: (se) => r.handleToggleMapFeather(F)
4835
4835
  }, [
4836
4836
  s("div", {
4837
- class: Ye([a.mapFeather === N.value ? "active" : "", "img-box"])
4837
+ class: Ye([a.mapFeather === F.value ? "active" : "", "img-box"])
4838
4838
  }, [
4839
- N.value === "dark" ? (y(), M("img", ll)) : N.value === "nautical" ? (y(), M("img", nl)) : N.value === "satellite" ? (y(), M("img", cl)) : (y(), M("img", ml))
4839
+ F.value === "dark" ? (y(), M("img", ll)) : F.value === "nautical" ? (y(), M("img", nl)) : F.value === "satellite" ? (y(), M("img", cl)) : (y(), M("img", ml))
4840
4840
  ], 2),
4841
- s("div", dl, m(t.$t(`layer.${N.locale}`)), 1)
4841
+ s("div", dl, m(t.$t(`layer.${F.locale}`)), 1)
4842
4842
  ], 8, sl))), 128))
4843
4843
  ]),
4844
- (y(!0), M(be, null, we(a.tagLayers.filter((N) => ["graticule", "day-night", "time-zones"].includes(N.key)), (N) => (y(), R(h, {
4845
- key: N.key,
4844
+ (y(!0), M(be, null, we(a.tagLayers.filter((F) => ["graticule", "day-night", "time-zones"].includes(F.key)), (F) => (y(), R(h, {
4845
+ key: F.key,
4846
4846
  modelValue: a.checkList,
4847
4847
  "onUpdate:modelValue": e[0] || (e[0] = (se) => a.checkList = se),
4848
- value: N.key,
4849
- label: t.$t(`layer.${N.locale}`),
4848
+ value: F.key,
4849
+ label: t.$t(`layer.${F.locale}`),
4850
4850
  color: "primary",
4851
4851
  density: "compact",
4852
4852
  style: { height: "36px" },
@@ -4859,14 +4859,14 @@ function hl(t, e, o, i, a, r) {
4859
4859
  ]),
4860
4860
  _: 1
4861
4861
  }),
4862
- p(w, {
4862
+ u(w, {
4863
4863
  class: "block-bg mx-auto mb-3",
4864
4864
  elevation: "0"
4865
4865
  }, {
4866
4866
  default: f(() => [
4867
- p(u, { class: "border-b-thin" }, {
4867
+ u(g, { class: "border-b-thin" }, {
4868
4868
  default: f(() => [
4869
- p(n, {
4869
+ u(n, {
4870
4870
  class: "text-subtitle-1 font-weight-medium",
4871
4871
  style: { "font-size": "16px !important" }
4872
4872
  }, {
@@ -4878,14 +4878,14 @@ function hl(t, e, o, i, a, r) {
4878
4878
  ]),
4879
4879
  _: 1
4880
4880
  }),
4881
- p(b, { class: "py-2" }, {
4881
+ u(b, { class: "py-2" }, {
4882
4882
  default: f(() => [
4883
- (y(!0), M(be, null, we(a.tagLayers.filter((N) => ["ports", "alert-zones", "tidal-stations"].includes(N.key)), (N) => (y(), R(h, {
4884
- key: N.key,
4883
+ (y(!0), M(be, null, we(a.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (y(), R(h, {
4884
+ key: F.key,
4885
4885
  modelValue: a.checkList,
4886
4886
  "onUpdate:modelValue": e[1] || (e[1] = (se) => a.checkList = se),
4887
- value: N.key,
4888
- label: t.$t(`layer.${N.locale}`),
4887
+ value: F.key,
4888
+ label: t.$t(`layer.${F.locale}`),
4889
4889
  color: "primary",
4890
4890
  density: "compact",
4891
4891
  style: { height: "36px" },
@@ -4898,14 +4898,14 @@ function hl(t, e, o, i, a, r) {
4898
4898
  ]),
4899
4899
  _: 1
4900
4900
  }),
4901
- p(w, {
4901
+ u(w, {
4902
4902
  class: "block-bg mx-auto mb-3",
4903
4903
  elevation: "0"
4904
4904
  }, {
4905
4905
  default: f(() => [
4906
- p(u, { class: "border-b-thin" }, {
4906
+ u(g, { class: "border-b-thin" }, {
4907
4907
  default: f(() => [
4908
- p(n, {
4908
+ u(n, {
4909
4909
  class: "text-subtitle-1 font-weight-medium",
4910
4910
  style: { "font-size": "16px !important" }
4911
4911
  }, {
@@ -4917,14 +4917,14 @@ function hl(t, e, o, i, a, r) {
4917
4917
  ]),
4918
4918
  _: 1
4919
4919
  }),
4920
- p(b, { class: "py-2" }, {
4920
+ u(b, { class: "py-2" }, {
4921
4921
  default: f(() => [
4922
- (y(!0), M(be, null, we(a.tagLayers.filter((N) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(N.key)), (N) => (y(), R(h, {
4923
- key: N.key,
4922
+ (y(!0), M(be, null, we(a.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (y(), R(h, {
4923
+ key: F.key,
4924
4924
  modelValue: a.checkList,
4925
4925
  "onUpdate:modelValue": e[2] || (e[2] = (se) => a.checkList = se),
4926
- value: N.key,
4927
- label: t.$t(`layer.${N.locale}`),
4926
+ value: F.key,
4927
+ label: t.$t(`layer.${F.locale}`),
4928
4928
  color: "primary",
4929
4929
  density: "compact",
4930
4930
  style: { height: "36px" },
@@ -4937,14 +4937,14 @@ function hl(t, e, o, i, a, r) {
4937
4937
  ]),
4938
4938
  _: 1
4939
4939
  }),
4940
- p(w, {
4940
+ u(w, {
4941
4941
  class: "block-bg mx-auto mb-3",
4942
4942
  elevation: "0"
4943
4943
  }, {
4944
4944
  default: f(() => [
4945
- p(u, { class: "border-b-thin" }, {
4945
+ u(g, { class: "border-b-thin" }, {
4946
4946
  default: f(() => [
4947
- p(n, {
4947
+ u(n, {
4948
4948
  class: "text-subtitle-1 font-weight-medium",
4949
4949
  style: { "font-size": "16px !important" }
4950
4950
  }, {
@@ -4956,11 +4956,11 @@ function hl(t, e, o, i, a, r) {
4956
4956
  ]),
4957
4957
  _: 1
4958
4958
  }),
4959
- p(b, { class: "py-2" }, {
4959
+ u(b, { class: "py-2" }, {
4960
4960
  default: f(() => [
4961
- p(h, {
4961
+ u(h, {
4962
4962
  modelValue: a.checkList,
4963
- "onUpdate:modelValue": e[3] || (e[3] = (N) => a.checkList = N),
4963
+ "onUpdate:modelValue": e[3] || (e[3] = (F) => a.checkList = F),
4964
4964
  value: "follow-ports",
4965
4965
  label: t.$t("layer.ports"),
4966
4966
  color: "primary",
@@ -4969,9 +4969,9 @@ function hl(t, e, o, i, a, r) {
4969
4969
  class: "flex-1-0-100 text-body-2",
4970
4970
  "hide-details": ""
4971
4971
  }, null, 8, ["modelValue", "label"]),
4972
- p(h, {
4972
+ u(h, {
4973
4973
  modelValue: a.checkList,
4974
- "onUpdate:modelValue": e[4] || (e[4] = (N) => a.checkList = N),
4974
+ "onUpdate:modelValue": e[4] || (e[4] = (F) => a.checkList = F),
4975
4975
  value: "follow-positions",
4976
4976
  label: t.$t("layer.locations"),
4977
4977
  color: "primary",
@@ -4988,18 +4988,18 @@ function hl(t, e, o, i, a, r) {
4988
4988
  })
4989
4989
  ])
4990
4990
  ], 6),
4991
- o.map ? (y(), R(_, B({
4991
+ o.map ? (y(), R(L, B({
4992
4992
  key: 0,
4993
4993
  map: o.map,
4994
4994
  "menu-toggle": o.menuToggle,
4995
4995
  show: a.checkList.includes("graticule")
4996
4996
  }, t.$attrs), null, 16, ["map", "menu-toggle", "show"])) : D("", !0),
4997
- o.map ? (y(), R(g, B({
4997
+ o.map ? (y(), R(p, B({
4998
4998
  key: 1,
4999
4999
  map: o.map,
5000
5000
  area: ($ = a.otherLayers) == null ? void 0 : $["day-night"]
5001
5001
  }, t.$attrs, { "before-layer": "empty-layer-2" }), null, 16, ["map", "area"])) : D("", !0),
5002
- o.map ? (y(), R(P, B({
5002
+ o.map ? (y(), R(z, B({
5003
5003
  key: 2,
5004
5004
  map: o.map,
5005
5005
  zone: (ce = a.otherLayers) == null ? void 0 : ce["time-zones"],
@@ -5036,12 +5036,12 @@ function hl(t, e, o, i, a, r) {
5036
5036
  forecastModel: o.forecastModel,
5037
5037
  "before-layer": "empty-layer-3"
5038
5038
  }, t.$attrs), null, 16, ["map", "gateway", "token", "defaultMeteoToken", "show", "theme", "realTime", "forecastModel"])) : D("", !0),
5039
- o.map ? (y(), R(L, B({
5039
+ o.map ? (y(), R(P, B({
5040
5040
  key: 6,
5041
5041
  map: o.map,
5042
5042
  zone: (K = a.otherLayers) == null ? void 0 : K["eca-zones"]
5043
5043
  }, t.$attrs), null, 16, ["map", "zone"])) : D("", !0),
5044
- o.map ? (y(), R(z, B({
5044
+ o.map ? (y(), R(k, B({
5045
5045
  key: 7,
5046
5046
  map: o.map,
5047
5047
  zone: (ie = a.otherLayers) == null ? void 0 : ie["war-zones"]
@@ -5056,7 +5056,7 @@ function hl(t, e, o, i, a, r) {
5056
5056
  map: o.map,
5057
5057
  show: a.checkList.includes("load-lines")
5058
5058
  }, t.$attrs), null, 16, ["map", "show"])) : D("", !0),
5059
- o.map ? (y(), R(k, B({
5059
+ o.map ? (y(), R(_, B({
5060
5060
  key: 10,
5061
5061
  map: o.map,
5062
5062
  token: o.token,
@@ -5067,12 +5067,12 @@ function hl(t, e, o, i, a, r) {
5067
5067
  map: o.map,
5068
5068
  area: (de = a.otherLayers) == null ? void 0 : de["voluntary-reporting-area"]
5069
5069
  }, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
5070
- o.map ? (y(), R(F, B({
5070
+ o.map ? (y(), R(N, B({
5071
5071
  key: 12,
5072
5072
  map: o.map,
5073
5073
  area: (ue = a.otherLayers) == null ? void 0 : ue["special-area"]
5074
5074
  }, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
5075
- o.map ? (y(), R(Z, B({
5075
+ o.map ? (y(), R(V, B({
5076
5076
  key: 13,
5077
5077
  map: o.map,
5078
5078
  token: o.token,
@@ -5084,7 +5084,7 @@ function hl(t, e, o, i, a, r) {
5084
5084
  token: o.token,
5085
5085
  show: a.checkList.includes("chinaRoute")
5086
5086
  }, t.$attrs), null, 16, ["map", "token", "show"])) : D("", !0),
5087
- o.map ? (y(), R(V, B({
5087
+ o.map ? (y(), R(Z, B({
5088
5088
  key: 15,
5089
5089
  map: o.map,
5090
5090
  show: a.checkList.includes("ice-areas")
@@ -5156,12 +5156,12 @@ class Do {
5156
5156
  * @param [lb.x, lb.y, rt.x, rt.y]
5157
5157
  */
5158
5158
  getBoundPixel() {
5159
- var g, P;
5160
- const e = (g = this.map) == null ? void 0 : g.getBounds();
5159
+ var p, z;
5160
+ const e = (p = this.map) == null ? void 0 : p.getBounds();
5161
5161
  if (!e)
5162
5162
  return [];
5163
- const o = ((P = this.map) == null ? void 0 : P.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, w] = this.mercator.px([c, a[1]], o), _ = Math.round(this.mercator.size * Math.pow(2, o) * (l + n));
5164
- return [b, w, u + _, h];
5163
+ 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]), [g, h] = this.mercator.px([r, i[1]], o), [b, w] = this.mercator.px([c, a[1]], o), L = Math.round(this.mercator.size * Math.pow(2, o) * (l + n));
5164
+ return [b, w, g + L, h];
5165
5165
  }
5166
5166
  /**
5167
5167
  * [视窗边界像素宽度]
@@ -5266,13 +5266,13 @@ class Ne {
5266
5266
  if (a) {
5267
5267
  const r = { program: a }, l = e.getProgramParameter(a, e.ACTIVE_ATTRIBUTES);
5268
5268
  for (let n = 0; n < l; n++) {
5269
- const u = e.getActiveAttrib(a, n);
5270
- r[u.name] = e.getAttribLocation(a, u.name);
5269
+ const g = e.getActiveAttrib(a, n);
5270
+ r[g.name] = e.getAttribLocation(a, g.name);
5271
5271
  }
5272
5272
  const c = e.getProgramParameter(a, e.ACTIVE_UNIFORMS);
5273
5273
  for (let n = 0; n < c; n++) {
5274
- const u = e.getActiveUniform(a, n);
5275
- r[u.name] = e.getUniformLocation(a, u.name);
5274
+ const g = e.getActiveUniform(a, n);
5275
+ r[g.name] = e.getUniformLocation(a, g.name);
5276
5276
  }
5277
5277
  return r;
5278
5278
  }
@@ -5287,8 +5287,8 @@ class Ne {
5287
5287
  const c = l.getContext("2d");
5288
5288
  if (c && e) {
5289
5289
  const n = c == null ? void 0 : c.createLinearGradient(0, 0, 256, 0);
5290
- return o.forEach(([u, h]) => {
5291
- n.addColorStop(u, h);
5290
+ return o.forEach(([g, h]) => {
5291
+ n.addColorStop(g, h);
5292
5292
  }), c.fillStyle = n, c.fillRect(0, 0, 256, 1), {
5293
5293
  canvas: l,
5294
5294
  texture: this.createTexture(
@@ -5310,8 +5310,8 @@ class Ne {
5310
5310
  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);
5311
5311
  for (let h = 0; h < a; h++)
5312
5312
  n[h] = h;
5313
- const u = this.createDataBuffer(e, "array", n);
5314
- return { resolution: i, total: a, texture0: l, texture1: c, indexBuffer: u };
5313
+ const g = this.createDataBuffer(e, "array", n);
5314
+ return { resolution: i, total: a, texture0: l, texture1: c, indexBuffer: g };
5315
5315
  }
5316
5316
  bind(e, o, i) {
5317
5317
  const a = this.createProgram(e, o, i);
@@ -5326,13 +5326,13 @@ class Ne {
5326
5326
  return {};
5327
5327
  }
5328
5328
  bindParticle(e, o, i, a, r, l) {
5329
- 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();
5330
- return { particle: c, screen: n, update: u, quadBuffer: h, frameBuffer: b };
5329
+ const c = this.createProgramWrapper(e, o, i), n = this.createProgramWrapper(e, a, r), g = 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();
5330
+ return { particle: c, screen: n, update: g, quadBuffer: h, frameBuffer: b };
5331
5331
  }
5332
5332
  draw(e, o, i, a, r, l, c) {
5333
- var n, u;
5333
+ var n, g;
5334
5334
  if (o && i) {
5335
- 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);
5335
+ e.resize(), o == null || o.viewport(0, 0, (n = o == null ? void 0 : o.canvas) == null ? void 0 : n.width, (g = o == null ? void 0 : o.canvas) == null ? void 0 : g.height), o.clearColor(0, 0, 0, 0), o.clear(o.COLOR_BUFFER_BIT | o.DEPTH_BUFFER_BIT);
5336
5336
  try {
5337
5337
  o.useProgram(i);
5338
5338
  const h = {
@@ -5344,9 +5344,9 @@ class Ne {
5344
5344
  sRange: o.getUniformLocation(i, "u_range_s")
5345
5345
  };
5346
5346
  h.resolution && o.uniform2f(h.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), h.image && o.uniform1i(h.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, r), h.color && o.uniform1i(h.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (h.uvRange && o.uniform2f(h.uvRange, c.uvRange[0], c.uvRange[1]), h.sRange && o.uniform2f(h.sRange, c.sRange[0], c.sRange[1])), h.scale && o.uniform1f(h.scale, (c == null ? void 0 : c.scale) || 1);
5347
- const b = e.getBoundPixel(), w = e.map.getZoom() + 1, _ = e.getWorldCopy(b, w);
5348
- for (const g of _) {
5349
- const P = (g[0] - b[0]) * e.ratio, T = (g[1] - b[3]) * e.ratio, O = g[2] * e.ratio, [I, L, z, v] = [P, O + P, T, O + T], C = new Float32Array([I, z, L, z, I, v, I, v, L, z, L, v]);
5347
+ const b = e.getBoundPixel(), w = e.map.getZoom() + 1, L = e.getWorldCopy(b, w);
5348
+ for (const p of L) {
5349
+ const z = (p[0] - b[0]) * e.ratio, T = (p[1] - b[3]) * e.ratio, O = p[2] * e.ratio, [I, P, k, v] = [z, O + z, T, O + T], C = new Float32Array([I, k, P, k, I, v, I, v, P, k, P, v]);
5350
5350
  o.bindBuffer(o.ARRAY_BUFFER, l), o.bufferData(o.ARRAY_BUFFER, C, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
5351
5351
  }
5352
5352
  } catch (h) {
@@ -5694,17 +5694,17 @@ const ul = {
5694
5694
  else {
5695
5695
  this.map.addSource(this.source, { type: "geojson", data: r });
5696
5696
  for (let l = 0; l < (this.barbs ?? []).length - 1; l++) {
5697
- 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);
5698
- h.src = "data:image/svg+xml;base64," + window.btoa(this.svgs[u]), h.onload = () => {
5699
- this.map.hasImage(u + "-icon") || this.map.addImage(u + "-icon", h), this.map.addLayer(
5697
+ const c = (this.barbs ?? [])[l] || 0, n = (this.barbs ?? [])[l + 1] || 0, g = c < 10 ? `00${c}kts` : c < 100 ? `0${c}kts` : `${c}kts`, h = new Image(48, 48);
5698
+ h.src = "data:image/svg+xml;base64," + window.btoa(this.svgs[g]), h.onload = () => {
5699
+ this.map.hasImage(g + "-icon") || this.map.addImage(g + "-icon", h), this.map.addLayer(
5700
5700
  {
5701
- id: u,
5701
+ id: g,
5702
5702
  type: "symbol",
5703
5703
  filter: ["all", [">=", "spd", c], ["<", "spd", n]],
5704
5704
  source: this.source,
5705
5705
  layout: {
5706
5706
  "symbol-placement": "point",
5707
- "icon-image": u + "-icon",
5707
+ "icon-image": g + "-icon",
5708
5708
  // mapbox sprite
5709
5709
  "icon-size": 0.5,
5710
5710
  "icon-offset": [0, -20],
@@ -6044,11 +6044,11 @@ const vl = /* @__PURE__ */ q(bl, [["render", xl]]), _l = {
6044
6044
  );
6045
6045
  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>';
6046
6046
  l.src = "data:image/svg+xml;base64," + window.btoa(c);
6047
- 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">
6047
+ const n = new Image(48, 48), g = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
6048
6048
  <path d="M10 2.5V17.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
6049
6049
  <path d="M5 7.5L10 2.5L15 7.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
6050
6050
  </svg>`;
6051
- n.src = "data:image/svg+xml;base64," + window.btoa(u);
6051
+ n.src = "data:image/svg+xml;base64," + window.btoa(g);
6052
6052
  const h = [n];
6053
6053
  let b = 0;
6054
6054
  h.forEach((w) => {
@@ -6827,12 +6827,12 @@ function Gl(t, e, o, i, a, r) {
6827
6827
  class: "menu-bar-box pa-1 rounded",
6828
6828
  style: ae({ right: a.right + "px" })
6829
6829
  }, [
6830
- p(c, {
6830
+ u(c, {
6831
6831
  text: "Map Layers",
6832
6832
  location: "left"
6833
6833
  }, {
6834
- activator: f(({ props: u }) => [
6835
- p(l, B(u, {
6834
+ activator: f(({ props: g }) => [
6835
+ u(l, B(g, {
6836
6836
  "min-width": "32",
6837
6837
  width: "32",
6838
6838
  height: "32",
@@ -7911,11 +7911,11 @@ const wn = {
7911
7911
  (t == null ? void 0 : t.data.code) === 0 && (this.models = t == null ? void 0 : t.data.data);
7912
7912
  },
7913
7913
  async fetchWeatherLayers(t = {}) {
7914
- var a, r, l, c, n, u, h, b, w;
7914
+ var a, r, l, c, n, g, h, b, w;
7915
7915
  const e = (/* @__PURE__ */ new Date()).valueOf();
7916
7916
  let o = 0, i = 0;
7917
7917
  if (this.map) {
7918
- const _ = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, g = (r = this.map) == null ? void 0 : r.getBounds(), P = `${g._sw.lng},${g._sw.lat},${g._ne.lng},${g._ne.lat}`;
7918
+ const L = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, p = (r = this.map) == null ? void 0 : r.getBounds(), z = `${p._sw.lng},${p._sw.lat},${p._ne.lng},${p._ne.lat}`;
7919
7919
  if (this.particleFactor && ((l = this.$refs.layer) != null && l.autoActive)) {
7920
7920
  const T = To.WEATHER_LAYERS.find((O) => {
7921
7921
  var I;
@@ -7927,7 +7927,7 @@ const wn = {
7927
7927
  let T = this.weatherWeight;
7928
7928
  if (T > 0) {
7929
7929
  const O = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], I = await Se.get(
7930
- `${O}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${_}&bbox=${P}&t=${this.realTime}`,
7930
+ `${O}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${L}&bbox=${z}&t=${this.realTime}`,
7931
7931
  {
7932
7932
  headers: {
7933
7933
  Authorization: this.defaultMeteoToken
@@ -7935,46 +7935,46 @@ const wn = {
7935
7935
  }
7936
7936
  );
7937
7937
  if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather links elapsed: ", i, ", total: ", o += i), ((c = I == null ? void 0 : I.data) == null ? void 0 : c.code) === 0) {
7938
- const L = (n = I == null ? void 0 : I.data) == null ? void 0 : n.data, z = [];
7939
- for (const C in L)
7940
- z.push(
7941
- Se.get(L[C], {
7938
+ const P = (n = I == null ? void 0 : I.data) == null ? void 0 : n.data, k = [];
7939
+ for (const C in P)
7940
+ k.push(
7941
+ Se.get(P[C], {
7942
7942
  headers: {
7943
7943
  Authorization: this.defaultMeteoToken,
7944
7944
  key: C
7945
7945
  },
7946
- responseType: /\.(jpg|png)$/.test(L[C]) ? "blob" : "json"
7947
- }).catch((k) => {
7948
- console.log(`[${C}] fetch layer error: ${k}`);
7946
+ responseType: /\.(jpg|png)$/.test(P[C]) ? "blob" : "json"
7947
+ }).catch((_) => {
7948
+ console.log(`[${C}] fetch layer error: ${_}`);
7949
7949
  })
7950
7950
  );
7951
- const v = await Promise.all(z);
7951
+ const v = await Promise.all(k);
7952
7952
  this.weatherLayers = {}, v.map((C) => {
7953
- var F, Z, Y, V;
7954
- const k = ((F = C == null ? void 0 : C.data) == null ? void 0 : F.data) || (C == null ? void 0 : C.data);
7955
- let A = (Y = (Z = C == null ? void 0 : C.config) == null ? void 0 : Z.headers) == null ? void 0 : Y.key;
7956
- A && k && (this.weatherLayers[A] = {
7957
- raw: k,
7958
- type: ((V = C == null ? void 0 : C.config) == null ? void 0 : V.responseType) === "blob" ? "image" : "json",
7953
+ var N, V, Y, Z;
7954
+ const _ = ((N = C == null ? void 0 : C.data) == null ? void 0 : N.data) || (C == null ? void 0 : C.data);
7955
+ let A = (Y = (V = C == null ? void 0 : C.config) == null ? void 0 : V.headers) == null ? void 0 : Y.key;
7956
+ A && _ && (this.weatherLayers[A] = {
7957
+ raw: _,
7958
+ type: ((Z = C == null ? void 0 : C.config) == null ? void 0 : Z.responseType) === "blob" ? "image" : "json",
7959
7959
  etime: I.data.etime
7960
7960
  });
7961
7961
  });
7962
7962
  }
7963
7963
  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"]) {
7964
- const L = (u = this.weatherLayers["swell-direction"]) == null ? void 0 : u.raw, z = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
7964
+ const P = (g = this.weatherLayers["swell-direction"]) == null ? void 0 : g.raw, k = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
7965
7965
  delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
7966
7966
  type: "json",
7967
- direction: L,
7968
- height: { raw: z },
7967
+ direction: P,
7968
+ height: { raw: k },
7969
7969
  etime: I.data.etime
7970
7970
  };
7971
7971
  }
7972
7972
  if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
7973
- const L = (b = this.weatherLayers["current-direction"]) == null ? void 0 : b.raw, z = (w = this.weatherLayers["current-speed"]) == null ? void 0 : w.raw;
7973
+ const P = (b = this.weatherLayers["current-direction"]) == null ? void 0 : b.raw, k = (w = this.weatherLayers["current-speed"]) == null ? void 0 : w.raw;
7974
7974
  delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
7975
7975
  type: "json",
7976
- direction: L,
7977
- speed: { raw: z },
7976
+ direction: P,
7977
+ speed: { raw: k },
7978
7978
  etime: I.data.etime
7979
7979
  };
7980
7980
  }
@@ -7997,7 +7997,7 @@ const wn = {
7997
7997
  t != null && t.sourceChanged || this.weatherWeight !== e ? (this.weatherWeight = e, this.fetchWeatherLayers()) : this.handleWeatherLayerToggle();
7998
7998
  },
7999
7999
  handleRampColorInitial() {
8000
- var t, e, o, i, a, r, l, c, n, u, h, b;
8000
+ var t, e, o, i, a, r, l, c, n, g, h, b;
8001
8001
  this.viewport.map.getSource((t = this.viewport) == null ? void 0 : t.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
8002
8002
  type: "canvas",
8003
8003
  canvas: (o = this.viewport) == null ? void 0 : o.rampColorCanvas,
@@ -8018,7 +8018,7 @@ const wn = {
8018
8018
  canvas: (n = this.viewport) == null ? void 0 : n.particleCanvas,
8019
8019
  animate: !0,
8020
8020
  coordinates: this.viewport.getBoundLngLat()
8021
- }), this.viewport.map.getLayer((u = this.viewport) == null ? void 0 : u.particleLayer) || this.viewport.map.addLayer(
8021
+ }), this.viewport.map.getLayer((g = this.viewport) == null ? void 0 : g.particleLayer) || this.viewport.map.addLayer(
8022
8022
  {
8023
8023
  type: "raster",
8024
8024
  id: (h = this.viewport) == null ? void 0 : h.particleLayer,
@@ -8031,180 +8031,180 @@ const wn = {
8031
8031
  );
8032
8032
  },
8033
8033
  handleDrawWeather4Json() {
8034
- var r, l, c, n, u, h, b;
8034
+ var r, l, c, n, g, h, b;
8035
8035
  const t = (/* @__PURE__ */ new Date()).valueOf();
8036
8036
  let e = 0, o = 0;
8037
8037
  const i = (r = this.map) == null ? void 0 : r.getBounds(), a = (l = this.map) == null ? void 0 : l.getZoom();
8038
8038
  if (i && a) {
8039
- const w = X.convertToStdLng(i._sw.lng), _ = X.convertToStdLng(i._ne.lng), g = Math.floor(i._sw.lat), P = Math.ceil(i._ne.lat);
8039
+ const w = X.convertToStdLng(i._sw.lng), L = X.convertToStdLng(i._ne.lng), p = Math.floor(i._sw.lat), z = Math.ceil(i._ne.lat);
8040
8040
  for (const T in this.weatherLayers) {
8041
8041
  let O = !1;
8042
8042
  if (this.weatherLayers[T].active && this.weatherLayers[T].type === "json") {
8043
8043
  let I = [];
8044
8044
  if (T === "swell") {
8045
8045
  O = !0;
8046
- const L = ((c = this.weatherLayers[T]) == null ? void 0 : c.direction) || {};
8047
- for (const v in L)
8048
- if (v > g && v < P && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8049
- const C = L[v].lng;
8050
- w > _ ? C.forEach((k, A) => {
8051
- var F, Z, Y, V, ee, Q;
8046
+ const P = ((c = this.weatherLayers[T]) == null ? void 0 : c.direction) || {};
8047
+ for (const v in P)
8048
+ if (v > p && v < z && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8049
+ const C = P[v].lng;
8050
+ w > L ? C.forEach((_, A) => {
8051
+ var N, V, Y, Z, ee, Q;
8052
8052
  if (a < 2) {
8053
- if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
8054
- const $ = H.point([k, v], {
8055
- val: ((F = L[v].val) == null ? void 0 : F[A]) || ((Z = L[v].dir) == null ? void 0 : Z[A]),
8056
- spd: (Y = L[v].spd) == null ? void 0 : Y[A]
8053
+ if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
8054
+ const $ = H.point([_, v], {
8055
+ val: ((N = P[v].val) == null ? void 0 : N[A]) || ((V = P[v].dir) == null ? void 0 : V[A]),
8056
+ spd: (Y = P[v].spd) == null ? void 0 : Y[A]
8057
8057
  });
8058
8058
  I.push($);
8059
8059
  }
8060
- } else if ((k >= w && k <= 180 || k >= -180 && k <= _) && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8061
- const $ = H.point([k, v], {
8062
- val: ((V = L[v].val) == null ? void 0 : V[A]) || ((ee = L[v].dir) == null ? void 0 : ee[A]),
8063
- spd: (Q = L[v].spd) == null ? void 0 : Q[A]
8060
+ } else if ((_ >= w && _ <= 180 || _ >= -180 && _ <= L) && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8061
+ const $ = H.point([_, v], {
8062
+ val: ((Z = P[v].val) == null ? void 0 : Z[A]) || ((ee = P[v].dir) == null ? void 0 : ee[A]),
8063
+ spd: (Q = P[v].spd) == null ? void 0 : Q[A]
8064
8064
  });
8065
8065
  I.push($);
8066
8066
  }
8067
- }) : C.forEach((k, A) => {
8068
- var F, Z, Y, V, ee, Q;
8067
+ }) : C.forEach((_, A) => {
8068
+ var N, V, Y, Z, ee, Q;
8069
8069
  if (w < 2) {
8070
- if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
8071
- const $ = H.point([k, v], {
8072
- val: ((F = L[v].val) == null ? void 0 : F[A]) || ((Z = L[v].dir) == null ? void 0 : Z[A]),
8073
- spd: (Y = L[v].spd) == null ? void 0 : Y[A]
8070
+ if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
8071
+ const $ = H.point([_, v], {
8072
+ val: ((N = P[v].val) == null ? void 0 : N[A]) || ((V = P[v].dir) == null ? void 0 : V[A]),
8073
+ spd: (Y = P[v].spd) == null ? void 0 : Y[A]
8074
8074
  });
8075
8075
  I.push($);
8076
8076
  }
8077
- } else if (k >= w && k <= _ && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8078
- const $ = H.point([k, v], {
8079
- val: ((V = L[v].val) == null ? void 0 : V[A]) || ((ee = L[v].dir) == null ? void 0 : ee[A]),
8080
- spd: (Q = L[v].spd) == null ? void 0 : Q[A]
8077
+ } else if (_ >= w && _ <= L && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8078
+ const $ = H.point([_, v], {
8079
+ val: ((Z = P[v].val) == null ? void 0 : Z[A]) || ((ee = P[v].dir) == null ? void 0 : ee[A]),
8080
+ spd: (Q = P[v].spd) == null ? void 0 : Q[A]
8081
8081
  });
8082
8082
  I.push($);
8083
8083
  }
8084
8084
  });
8085
8085
  }
8086
8086
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell direction elapsed: ", o, ", total: ", e += o);
8087
- const z = this.weatherLayers[T].height;
8088
- if (z) {
8089
- if (!z.data) {
8087
+ const k = this.weatherLayers[T].height;
8088
+ if (k) {
8089
+ if (!k.data) {
8090
8090
  const v = [];
8091
- for (const C in (n = z.raw) == null ? void 0 : n.LineString) {
8092
- const k = z.raw.LineString[C];
8093
- for (const A of k)
8091
+ for (const C in (n = k.raw) == null ? void 0 : n.LineString) {
8092
+ const _ = k.raw.LineString[C];
8093
+ for (const A of _)
8094
8094
  v.push(
8095
8095
  H.lineString(A, {
8096
8096
  val: Number(C)
8097
8097
  })
8098
8098
  );
8099
- z.data = H.featureCollection(v);
8099
+ k.data = H.featureCollection(v);
8100
8100
  }
8101
8101
  }
8102
- if (z.data) {
8103
- const v = this.handleBboxClip(z.data, i);
8102
+ if (k.data) {
8103
+ const v = this.handleBboxClip(k.data, i);
8104
8104
  I = I.concat(v);
8105
8105
  }
8106
8106
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", o, ", total: ", e += o);
8107
8107
  }
8108
8108
  } else if (T === "current") {
8109
8109
  O = !0;
8110
- const L = ((u = this.weatherLayers[T]) == null ? void 0 : u.direction) || {};
8111
- for (const v in L)
8112
- if (v > g && v < P && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8113
- const C = L[v].lng;
8114
- w > _ ? C.forEach((k, A) => {
8115
- var F, Z, Y, V, ee, Q;
8110
+ const P = ((g = this.weatherLayers[T]) == null ? void 0 : g.direction) || {};
8111
+ for (const v in P)
8112
+ if (v > p && v < z && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8113
+ const C = P[v].lng;
8114
+ w > L ? C.forEach((_, A) => {
8115
+ var N, V, Y, Z, ee, Q;
8116
8116
  if (a < 2) {
8117
- if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
8118
- const $ = H.point([k, v], {
8119
- val: ((F = L[v].val) == null ? void 0 : F[A]) || ((Z = L[v].dir) == null ? void 0 : Z[A]),
8120
- spd: (Y = L[v].spd) == null ? void 0 : Y[A]
8117
+ if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
8118
+ const $ = H.point([_, v], {
8119
+ val: ((N = P[v].val) == null ? void 0 : N[A]) || ((V = P[v].dir) == null ? void 0 : V[A]),
8120
+ spd: (Y = P[v].spd) == null ? void 0 : Y[A]
8121
8121
  });
8122
8122
  I.push($);
8123
8123
  }
8124
- } else if ((k >= w && k <= 180 || k >= -180 && k <= _) && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8125
- const $ = H.point([k, v], {
8126
- val: ((V = L[v].val) == null ? void 0 : V[A]) || ((ee = L[v].dir) == null ? void 0 : ee[A]),
8127
- spd: (Q = L[v].spd) == null ? void 0 : Q[A]
8124
+ } else if ((_ >= w && _ <= 180 || _ >= -180 && _ <= L) && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8125
+ const $ = H.point([_, v], {
8126
+ val: ((Z = P[v].val) == null ? void 0 : Z[A]) || ((ee = P[v].dir) == null ? void 0 : ee[A]),
8127
+ spd: (Q = P[v].spd) == null ? void 0 : Q[A]
8128
8128
  });
8129
8129
  I.push($);
8130
8130
  }
8131
- }) : C.forEach((k, A) => {
8132
- var F, Z, Y, V, ee, Q;
8131
+ }) : C.forEach((_, A) => {
8132
+ var N, V, Y, Z, ee, Q;
8133
8133
  if (w < 2) {
8134
- if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
8135
- const $ = H.point([k, v], {
8136
- val: ((F = L[v].val) == null ? void 0 : F[A]) || ((Z = L[v].dir) == null ? void 0 : Z[A]),
8137
- spd: (Y = L[v].spd) == null ? void 0 : Y[A]
8134
+ if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
8135
+ const $ = H.point([_, v], {
8136
+ val: ((N = P[v].val) == null ? void 0 : N[A]) || ((V = P[v].dir) == null ? void 0 : V[A]),
8137
+ spd: (Y = P[v].spd) == null ? void 0 : Y[A]
8138
8138
  });
8139
8139
  I.push($);
8140
8140
  }
8141
- } else if (k >= w && k <= _ && (!(a <= this.zoom) || k % (a < this.zoom / 2 ? 5 : 3) === 0)) {
8142
- const $ = H.point([k, v], {
8143
- val: ((V = L[v].val) == null ? void 0 : V[A]) || ((ee = L[v].dir) == null ? void 0 : ee[A]),
8144
- spd: (Q = L[v].spd) == null ? void 0 : Q[A]
8141
+ } else if (_ >= w && _ <= L && (!(a <= this.zoom) || _ % (a < this.zoom / 2 ? 5 : 3) === 0)) {
8142
+ const $ = H.point([_, v], {
8143
+ val: ((Z = P[v].val) == null ? void 0 : Z[A]) || ((ee = P[v].dir) == null ? void 0 : ee[A]),
8144
+ spd: (Q = P[v].spd) == null ? void 0 : Q[A]
8145
8145
  });
8146
8146
  I.push($);
8147
8147
  }
8148
8148
  });
8149
8149
  }
8150
8150
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current direction elapsed: ", o, ", total: ", e += o);
8151
- const z = this.weatherLayers[T].speed;
8152
- if (z) {
8153
- if (!z.data) {
8151
+ const k = this.weatherLayers[T].speed;
8152
+ if (k) {
8153
+ if (!k.data) {
8154
8154
  const C = [];
8155
- for (const k in (h = z.raw) == null ? void 0 : h.Polygon) {
8156
- const A = z.raw.Polygon[k];
8157
- for (const F of A)
8155
+ for (const _ in (h = k.raw) == null ? void 0 : h.Polygon) {
8156
+ const A = k.raw.Polygon[_];
8157
+ for (const N of A)
8158
8158
  C.push(
8159
- H.polygon(F, {
8160
- val: Number(k)
8159
+ H.polygon(N, {
8160
+ val: Number(_)
8161
8161
  })
8162
8162
  );
8163
8163
  }
8164
- z.data = H.featureCollection(C);
8164
+ k.data = H.featureCollection(C);
8165
8165
  }
8166
- const v = a < this.zoom ? z.data.features.filter((C) => C.properties.val > 0.5) : z.data.features;
8166
+ const v = a < this.zoom ? k.data.features.filter((C) => C.properties.val > 0.5) : k.data.features;
8167
8167
  I = I.concat(v), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
8168
8168
  }
8169
8169
  } else if (T === "wind") {
8170
8170
  O = !0;
8171
- const L = this.weatherLayers.wind.raw;
8172
- for (const z in L)
8173
- if (z > g && z < P && (!(a <= this.zoom) || z % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8174
- const v = L[z].lng;
8175
- w > _ ? v.forEach((C, k) => {
8176
- var A, F, Z, Y;
8171
+ const P = this.weatherLayers.wind.raw;
8172
+ for (const k in P)
8173
+ if (k > p && k < z && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8174
+ const v = P[k].lng;
8175
+ w > L ? v.forEach((C, _) => {
8176
+ var A, N, V, Y;
8177
8177
  if (a < 2) {
8178
8178
  if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
8179
- const V = H.point([C, z], {
8180
- dir: ((A = L[z].val) == null ? void 0 : A[k]) || ((F = L[z].dir) == null ? void 0 : F[k]),
8181
- spd: L[z].spd[k]
8179
+ const Z = H.point([C, k], {
8180
+ dir: ((A = P[k].val) == null ? void 0 : A[_]) || ((N = P[k].dir) == null ? void 0 : N[_]),
8181
+ spd: P[k].spd[_]
8182
8182
  });
8183
- I.push(V);
8183
+ I.push(Z);
8184
8184
  }
8185
- } else if ((C >= w && C <= 180 || C >= -180 && C <= _) && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8186
- const V = H.point([C, z], {
8187
- dir: ((Z = L[z].val) == null ? void 0 : Z[k]) || ((Y = L[z].dir) == null ? void 0 : Y[k]),
8188
- spd: L[z].spd[k]
8185
+ } else if ((C >= w && C <= 180 || C >= -180 && C <= L) && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8186
+ const Z = H.point([C, k], {
8187
+ dir: ((V = P[k].val) == null ? void 0 : V[_]) || ((Y = P[k].dir) == null ? void 0 : Y[_]),
8188
+ spd: P[k].spd[_]
8189
8189
  });
8190
- I.push(V);
8190
+ I.push(Z);
8191
8191
  }
8192
- }) : v.forEach((C, k) => {
8193
- var A, F, Z, Y;
8192
+ }) : v.forEach((C, _) => {
8193
+ var A, N, V, Y;
8194
8194
  if (a < 2) {
8195
8195
  if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
8196
- const V = H.point([C, z], {
8197
- dir: ((A = L[z].val) == null ? void 0 : A[k]) || ((F = L[z].dir) == null ? void 0 : F[k]),
8198
- spd: L[z].spd[k]
8196
+ const Z = H.point([C, k], {
8197
+ dir: ((A = P[k].val) == null ? void 0 : A[_]) || ((N = P[k].dir) == null ? void 0 : N[_]),
8198
+ spd: P[k].spd[_]
8199
8199
  });
8200
- I.push(V);
8200
+ I.push(Z);
8201
8201
  }
8202
- } else if (C >= w && C <= _ && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8203
- const V = H.point([C, z], {
8204
- dir: ((Z = L[z].val) == null ? void 0 : Z[k]) || ((Y = L[z].dir) == null ? void 0 : Y[k]),
8205
- spd: L[z].spd[k]
8202
+ } else if (C >= w && C <= L && (!(a <= this.zoom) || C % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
8203
+ const Z = H.point([C, k], {
8204
+ dir: ((V = P[k].val) == null ? void 0 : V[_]) || ((Y = P[k].dir) == null ? void 0 : Y[_]),
8205
+ spd: P[k].spd[_]
8206
8206
  });
8207
- I.push(V);
8207
+ I.push(Z);
8208
8208
  }
8209
8209
  });
8210
8210
  }
@@ -8214,37 +8214,37 @@ const wn = {
8214
8214
  I = this.weatherLayers[T].data;
8215
8215
  else {
8216
8216
  O = !0;
8217
- const L = this.weatherLayers[T].raw;
8218
- if (L) {
8219
- const z = [];
8220
- for (const v in L.Polygon) {
8221
- const C = L.Polygon[v];
8222
- for (const k of C)
8223
- z.push(
8224
- H.polygon(k, {
8217
+ const P = this.weatherLayers[T].raw;
8218
+ if (P) {
8219
+ const k = [];
8220
+ for (const v in P.Polygon) {
8221
+ const C = P.Polygon[v];
8222
+ for (const _ of C)
8223
+ k.push(
8224
+ H.polygon(_, {
8225
8225
  val: Number(v)
8226
8226
  })
8227
8227
  );
8228
8228
  }
8229
- for (const v in L.MultiPolygon) {
8230
- const C = L.MultiPolygon[v];
8231
- for (const k of C)
8232
- z.push(
8233
- H.multiPolygon(k, {
8229
+ for (const v in P.MultiPolygon) {
8230
+ const C = P.MultiPolygon[v];
8231
+ for (const _ of C)
8232
+ k.push(
8233
+ H.multiPolygon(_, {
8234
8234
  val: Number(v)
8235
8235
  })
8236
8236
  );
8237
8237
  }
8238
- for (const v in L.Point) {
8239
- const C = L.Point[v];
8240
- for (let k = 0; k < ((b = C.lng) == null ? void 0 : b.length); k++)
8241
- z.push(
8242
- H.point([C.lng[k], v], {
8243
- val: Number(C.val[k])
8238
+ for (const v in P.Point) {
8239
+ const C = P.Point[v];
8240
+ for (let _ = 0; _ < ((b = C.lng) == null ? void 0 : b.length); _++)
8241
+ k.push(
8242
+ H.point([C.lng[_], v], {
8243
+ val: Number(C.val[_])
8244
8244
  })
8245
8245
  );
8246
8246
  }
8247
- I = I.concat(z);
8247
+ I = I.concat(k);
8248
8248
  }
8249
8249
  }
8250
8250
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sig-wave-height elapsed: ", o, ", total: ", e += o);
@@ -8253,28 +8253,28 @@ const wn = {
8253
8253
  I = this.weatherLayers[T].data;
8254
8254
  else {
8255
8255
  O = !0;
8256
- const L = this.weatherLayers[T].raw;
8257
- if (L) {
8258
- const z = [];
8259
- for (const v in L.LineString) {
8260
- const C = L.LineString[v];
8261
- for (const k of C)
8262
- z.push(
8263
- H.lineString(k, {
8256
+ const P = this.weatherLayers[T].raw;
8257
+ if (P) {
8258
+ const k = [];
8259
+ for (const v in P.LineString) {
8260
+ const C = P.LineString[v];
8261
+ for (const _ of C)
8262
+ k.push(
8263
+ H.lineString(_, {
8264
8264
  val: Number(v)
8265
8265
  })
8266
8266
  );
8267
8267
  }
8268
- for (const v in L.Point)
8269
- L.Point[v].lng.forEach((C, k) => {
8270
- C = X.convertToStdLng(C), z.push(
8268
+ for (const v in P.Point)
8269
+ P.Point[v].lng.forEach((C, _) => {
8270
+ C = X.convertToStdLng(C), k.push(
8271
8271
  H.point([C, v], {
8272
- val: L.Point[v].val[k],
8273
- type: L.Point[v].type[k]
8272
+ val: P.Point[v].val[_],
8273
+ type: P.Point[v].type[_]
8274
8274
  })
8275
8275
  );
8276
8276
  });
8277
- I = I.concat(z);
8277
+ I = I.concat(k);
8278
8278
  }
8279
8279
  }
8280
8280
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", o, ", total: ", e += o);
@@ -8322,19 +8322,19 @@ const wn = {
8322
8322
  class: "d-flex justify-start align-center ga-4 pl-6"
8323
8323
  }, 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" }, Nn = { class: "text-body-2 text-label mb-3" }, Fn = { class: "text-body-1 font-weight-medium" }, Hn = { class: "text-body-2 text-label" }, Gn = { class: "text-body-2 text-label" }, Un = { class: "text-body-2 text-label mb-3" }, Wn = { class: "text-body-1 py-2" }, Vn = { class: "text-body-1 font-weight-medium" }, Zn = { class: "text-body-2 text-label" }, Yn = { class: "text-body-2 text-label" }, qn = { class: "text-body-2 text-label mb-3" }, Xn = { class: "text-body-1 font-weight-medium" }, $n = { class: "text-body-2 text-label" }, Kn = { class: "text-body-2 text-label" }, Jn = { class: "text-body-2 text-label mb-3" }, Qn = { class: "text-body-1 py-2" }, ec = { class: "text-body-1 font-weight-medium" }, tc = { class: "text-body-2 text-label" }, oc = { class: "text-body-2 text-label" }, ac = { class: "text-body-2 text-label mb-3" };
8324
8324
  function ic(t, e, o, i, a, r) {
8325
- var me, K, ie, pe, de, ue, N, se, ve, Pe, Ce, De, Ae, Re, ke;
8326
- const l = x("VBtn"), c = x("VTooltip"), n = x("VCol"), u = x("VRow"), h = x("VCardText"), b = x("VDivider"), w = x("VCard"), _ = x("VSwitch"), g = x("VCardTitle"), P = x("VCardItem"), T = x("VCheckbox"), O = x("VRadio"), I = x("VBtnToggle"), L = x("IdmWindBarb"), z = x("IdmSigWaveHeight"), v = x("IdmCurrentDirection"), C = x("IdmPrmsl"), k = x("IdmWindParticle"), A = x("IdmCurrentParticle"), F = x("IdmWave"), Z = x("IdmSwell"), Y = x("IdmIceEdge"), V = x("IdmIceCover"), ee = x("IdmIceThickness"), Q = x("IdmPrecip3h"), $ = x("IdmVisibility"), ce = x("IdmWaterTemp"), le = x("IdmTemp");
8325
+ var me, K, ie, pe, de, ue, F, se, ve, Pe, Ce, De, Ae, Re, ke;
8326
+ const l = x("VBtn"), c = x("VTooltip"), n = x("VCol"), g = x("VRow"), h = x("VCardText"), b = x("VDivider"), w = x("VCard"), L = x("VSwitch"), p = x("VCardTitle"), z = x("VCardItem"), T = x("VCheckbox"), O = x("VRadio"), I = x("VBtnToggle"), P = x("IdmWindBarb"), k = x("IdmSigWaveHeight"), v = x("IdmCurrentDirection"), C = x("IdmPrmsl"), _ = x("IdmWindParticle"), A = x("IdmCurrentParticle"), N = x("IdmWave"), V = x("IdmSwell"), Y = x("IdmIceEdge"), Z = x("IdmIceCover"), ee = x("IdmIceThickness"), Q = x("IdmPrecip3h"), $ = x("IdmVisibility"), ce = x("IdmWaterTemp"), le = x("IdmTemp");
8327
8327
  return y(), M("div", xn, [
8328
8328
  s("div", {
8329
8329
  class: "menu-bar-box transition pa-1",
8330
8330
  style: ae({ top: o.top + 94 + "px", right: a.right + "px" })
8331
8331
  }, [
8332
- p(c, {
8332
+ u(c, {
8333
8333
  text: t.$t("weather.weatherLayers"),
8334
8334
  location: "left"
8335
8335
  }, {
8336
8336
  activator: f(({ props: G }) => [
8337
- p(l, B(G, {
8337
+ u(l, B(G, {
8338
8338
  "min-width": "32",
8339
8339
  width: "32",
8340
8340
  height: "32",
@@ -8356,12 +8356,12 @@ function ic(t, e, o, i, a, r) {
8356
8356
  class: "menu-bar-box pa-1 rounded",
8357
8357
  style: ae({ right: a.right + "px" })
8358
8358
  }, [
8359
- p(c, {
8359
+ u(c, {
8360
8360
  text: "Legend",
8361
8361
  location: "left"
8362
8362
  }, {
8363
8363
  activator: f(({ props: G }) => [
8364
- p(l, B(G, {
8364
+ u(l, B(G, {
8365
8365
  "min-width": "32",
8366
8366
  width: "32",
8367
8367
  height: "32",
@@ -8386,10 +8386,10 @@ function ic(t, e, o, i, a, r) {
8386
8386
  style: ae({ position: "absolute", top: "340px", right: a.right + 50 + "px" })
8387
8387
  }, {
8388
8388
  default: f(() => [
8389
- p(h, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
8389
+ u(h, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
8390
8390
  default: f(() => [
8391
8391
  e[10] || (e[10] = s("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wind Level", -1)),
8392
- p(u, { class: "ma-0 ml-n1 text-body-2" }, {
8392
+ u(g, { class: "ma-0 ml-n1 text-body-2" }, {
8393
8393
  default: f(() => [
8394
8394
  (y(!0), M(be, null, we(a.legend.barbs, (G, te) => (y(), R(n, {
8395
8395
  key: G,
@@ -8414,11 +8414,11 @@ function ic(t, e, o, i, a, r) {
8414
8414
  _: 1,
8415
8415
  __: [10]
8416
8416
  }),
8417
- p(b, { vertical: "" }),
8418
- p(h, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
8417
+ u(b, { vertical: "" }),
8418
+ u(h, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
8419
8419
  default: f(() => [
8420
8420
  e[11] || (e[11] = s("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wave Height", -1)),
8421
- p(u, {
8421
+ u(g, {
8422
8422
  class: "ma-0 ml-1",
8423
8423
  style: { width: "100px" }
8424
8424
  }, {
@@ -8446,11 +8446,11 @@ function ic(t, e, o, i, a, r) {
8446
8446
  _: 1,
8447
8447
  __: [11]
8448
8448
  }),
8449
- p(b, { vertical: "" }),
8450
- p(h, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
8449
+ u(b, { vertical: "" }),
8450
+ u(h, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
8451
8451
  default: f(() => [
8452
8452
  e[12] || (e[12] = s("div", { class: "text-body-1 font-weight-600 mb-2" }, "Current", -1)),
8453
- p(u, {
8453
+ u(g, {
8454
8454
  class: "ma-0 ml-n5",
8455
8455
  style: { width: "110px" }
8456
8456
  }, {
@@ -8491,7 +8491,7 @@ function ic(t, e, o, i, a, r) {
8491
8491
  s("div", Mn, [
8492
8492
  s("div", In, [
8493
8493
  s("div", Dn, m(t.$t("weather.weather")), 1),
8494
- p(_, {
8494
+ u(L, {
8495
8495
  modelValue: a.autoActive,
8496
8496
  "onUpdate:modelValue": e[1] || (e[1] = (G) => a.autoActive = G),
8497
8497
  class: "small-switch",
@@ -8501,7 +8501,7 @@ function ic(t, e, o, i, a, r) {
8501
8501
  "hide-details": ""
8502
8502
  }, null, 8, ["modelValue"])
8503
8503
  ]),
8504
- p(l, {
8504
+ u(l, {
8505
8505
  icon: "",
8506
8506
  density: "compact",
8507
8507
  variant: "plain",
@@ -8518,14 +8518,14 @@ function ic(t, e, o, i, a, r) {
8518
8518
  s("div", {
8519
8519
  class: Ye(["list-box scroll pl-4 pr-2 overflow-y-auto", a.autoActive ? "" : "cursor-not-allowed"])
8520
8520
  }, [
8521
- p(w, {
8521
+ u(w, {
8522
8522
  class: "block-bg mx-auto mb-3",
8523
8523
  elevation: "0"
8524
8524
  }, {
8525
8525
  default: f(() => [
8526
- p(P, { class: "border-b-thin" }, {
8526
+ u(z, { class: "border-b-thin" }, {
8527
8527
  default: f(() => [
8528
- p(g, {
8528
+ u(p, {
8529
8529
  class: "text-subtitle-1 font-weight-medium",
8530
8530
  style: { "font-size": "16px !important" }
8531
8531
  }, {
@@ -8537,7 +8537,7 @@ function ic(t, e, o, i, a, r) {
8537
8537
  ]),
8538
8538
  _: 1
8539
8539
  }),
8540
- p(h, { class: "py-2" }, {
8540
+ u(h, { class: "py-2" }, {
8541
8541
  default: f(() => [
8542
8542
  (y(!0), M(be, null, we(a.tagLayers.filter((G) => G.overlays), (G) => (y(), R(T, {
8543
8543
  key: G.key,
@@ -8558,14 +8558,14 @@ function ic(t, e, o, i, a, r) {
8558
8558
  ]),
8559
8559
  _: 1
8560
8560
  }),
8561
- p(w, {
8561
+ u(w, {
8562
8562
  class: "block-bg mx-auto mb-3",
8563
8563
  elevation: "0"
8564
8564
  }, {
8565
8565
  default: f(() => [
8566
- p(P, { class: "border-b-thin" }, {
8566
+ u(z, { class: "border-b-thin" }, {
8567
8567
  default: f(() => [
8568
- p(g, {
8568
+ u(p, {
8569
8569
  class: "text-subtitle-1 font-weight-medium",
8570
8570
  style: { "font-size": "16px !important" }
8571
8571
  }, {
@@ -8577,12 +8577,12 @@ function ic(t, e, o, i, a, r) {
8577
8577
  ]),
8578
8578
  _: 1
8579
8579
  }),
8580
- p(h, { class: "py-2" }, {
8580
+ u(h, { class: "py-2" }, {
8581
8581
  default: f(() => [
8582
8582
  (y(!0), M(be, null, we(a.tagLayers.filter((G) => !G.overlays), (G) => (y(), M(be, {
8583
8583
  key: G.key
8584
8584
  }, [
8585
- p(O, {
8585
+ u(O, {
8586
8586
  modelValue: a.renderKey,
8587
8587
  "onUpdate:modelValue": e[3] || (e[3] = (te) => a.renderKey = te),
8588
8588
  label: t.$t(`weather.${G.locale}`),
@@ -8597,7 +8597,7 @@ function ic(t, e, o, i, a, r) {
8597
8597
  }, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
8598
8598
  a.renderKey === "wind-particle" && G.key === "wind-particle" ? (y(), M("div", An, [
8599
8599
  s("span", null, m(t.$t("weather.particleAnimatiom")), 1),
8600
- p(_, {
8600
+ u(L, {
8601
8601
  modelValue: a.showWindParticle,
8602
8602
  "onUpdate:modelValue": e[4] || (e[4] = (te) => a.showWindParticle = te),
8603
8603
  label: "",
@@ -8612,7 +8612,7 @@ function ic(t, e, o, i, a, r) {
8612
8612
  ])) : D("", !0),
8613
8613
  a.renderKey === "current-particle" && G.key === "current-particle" ? (y(), M("div", Rn, [
8614
8614
  s("span", null, m(t.$t("weather.particleAnimatiom")), 1),
8615
- p(_, {
8615
+ u(L, {
8616
8616
  modelValue: a.showCurrentParticle,
8617
8617
  "onUpdate:modelValue": e[5] || (e[5] = (te) => a.showCurrentParticle = te),
8618
8618
  label: "",
@@ -8637,7 +8637,7 @@ function ic(t, e, o, i, a, r) {
8637
8637
  disabled: !a.autoActive
8638
8638
  }, {
8639
8639
  default: f(() => [
8640
- p(l, {
8640
+ u(l, {
8641
8641
  density: "compact",
8642
8642
  height: "30",
8643
8643
  value: "sig-wave",
@@ -8651,7 +8651,7 @@ function ic(t, e, o, i, a, r) {
8651
8651
  ]),
8652
8652
  _: 1
8653
8653
  }, 8, ["color", "disabled"]),
8654
- p(l, {
8654
+ u(l, {
8655
8655
  density: "compact",
8656
8656
  height: "30",
8657
8657
  class: "w-50 text-none px-2 text-body-1",
@@ -8680,7 +8680,7 @@ function ic(t, e, o, i, a, r) {
8680
8680
  disabled: !a.autoActive
8681
8681
  }, {
8682
8682
  default: f(() => [
8683
- p(l, {
8683
+ u(l, {
8684
8684
  density: "compact",
8685
8685
  height: "30",
8686
8686
  value: "ice-cover",
@@ -8694,7 +8694,7 @@ function ic(t, e, o, i, a, r) {
8694
8694
  ]),
8695
8695
  _: 1
8696
8696
  }, 8, ["color", "disabled"]),
8697
- p(l, {
8697
+ u(l, {
8698
8698
  density: "compact",
8699
8699
  height: "30",
8700
8700
  class: "w-50 text-none px-2 text-body-1",
@@ -8718,14 +8718,14 @@ function ic(t, e, o, i, a, r) {
8718
8718
  ]),
8719
8719
  _: 1
8720
8720
  }),
8721
- p(w, {
8721
+ u(w, {
8722
8722
  class: "block-bg mx-auto mb-3",
8723
8723
  elevation: "0"
8724
8724
  }, {
8725
8725
  default: f(() => [
8726
- p(P, { class: "border-b-thin" }, {
8726
+ u(z, { class: "border-b-thin" }, {
8727
8727
  default: f(() => [
8728
- p(g, {
8728
+ u(p, {
8729
8729
  class: "text-subtitle-1 font-weight-medium",
8730
8730
  style: { "font-size": "16px !important" }
8731
8731
  }, {
@@ -8737,7 +8737,7 @@ function ic(t, e, o, i, a, r) {
8737
8737
  ]),
8738
8738
  _: 1
8739
8739
  }),
8740
- p(h, { class: "" }, {
8740
+ u(h, { class: "" }, {
8741
8741
  default: f(() => {
8742
8742
  var G, te, Fe, Me, ge, Te, U, fe, oe, re, Oe, He, Ge, E, ye, Ie, Be, Ee, j, Ue, W, qe, Xe, $e, _e, Ke, Je, Qe, 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, Ut, Wt, Vt, Zt, Yt, qt, Xt, Kt, Jt, Qt, eo, to, oo, ao, io, ro, so, lo, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo;
8743
8743
  return [
@@ -8750,7 +8750,7 @@ function ic(t, e, o, i, a, r) {
8750
8750
  s("div", Hn, m(t.$t("weather.source")) + ": ECMWF", 1),
8751
8751
  s("div", Gn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((at = (ot = (tt = (et = a.models) == null ? void 0 : et.weather) == null ? void 0 : tt.ECMWF) == null ? void 0 : ot.meta) == null ? void 0 : at.availabilityTime)), 1),
8752
8752
  s("div", Un, m(t.$t("weather.referenceTime")) + ": " + m(r.computeDateZ((lt = (st = (rt = (it = a.models) == null ? void 0 : it.weather) == null ? void 0 : rt.ECMWF) == null ? void 0 : st.meta) == null ? void 0 : lt.initialisationTime)), 1),
8753
- p(b),
8753
+ u(b),
8754
8754
  s("div", Wn, m(t.$t("weather.wave")), 1),
8755
8755
  s("div", Vn, m((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.source) + " " + m((gt = (ut = (pt = (ht = a.models) == null ? void 0 : ht.marine) == null ? void 0 : pt.wave) == null ? void 0 : ut.NOAA) == null ? void 0 : gt.spatialResolution) + m(t.$t("units.km")) + " " + m((xt = (wt = (bt = (yt = (ft = a.models) == null ? void 0 : ft.marine) == null ? void 0 : yt.wave) == null ? void 0 : bt.NOAA) == null ? void 0 : wt.meta) == null ? void 0 : xt.days) + m(t.$t("units.days")), 1),
8756
8756
  s("div", Zn, m(t.$t("weather.source")) + ": NOAA", 1),
@@ -8760,7 +8760,7 @@ function ic(t, e, o, i, a, r) {
8760
8760
  s("div", $n, m(t.$t("weather.source")) + ": ECMWF", 1),
8761
8761
  s("div", Kn, m(t.$t("weather.lastUpdate")) + ": " + m(r.computeDateUpdate((qt = (Yt = (Zt = (Vt = (Wt = a.models) == null ? void 0 : Wt.marine) == null ? void 0 : Vt.wave) == null ? void 0 : Zt.ECMWF) == null ? void 0 : Yt.meta) == null ? void 0 : qt.availabilityTime)), 1),
8762
8762
  s("div", Jn, m(t.$t("weather.referenceTime")) + ": " + m(r.computeDateZ((eo = (Qt = (Jt = (Kt = (Xt = a.models) == null ? void 0 : Xt.marine) == null ? void 0 : Kt.wave) == null ? void 0 : Jt.ECMWF) == null ? void 0 : Qt.meta) == null ? void 0 : eo.initialisationTime)), 1),
8763
- p(b),
8763
+ u(b),
8764
8764
  s("div", Qn, m(t.$t("weather.currents")), 1),
8765
8765
  s("div", ec, m((io = (ao = (oo = (to = a.models) == null ? void 0 : to.marine) == null ? void 0 : oo.current) == null ? void 0 : ao.ECMWF) == null ? void 0 : io.source) + " " + m((no = (lo = (so = (ro = a.models) == null ? void 0 : ro.marine) == null ? void 0 : so.current) == null ? void 0 : lo.ECMWF) == null ? void 0 : no.spatialResolution) + m(t.$t("units.km")) + " " + m((uo = (po = (ho = (mo = (co = a.models) == null ? void 0 : co.marine) == null ? void 0 : mo.current) == null ? void 0 : ho.ECMWF) == null ? void 0 : po.meta) == null ? void 0 : uo.days) + m(t.$t("units.days")), 1),
8766
8766
  s("div", tc, m(t.$t("weather.source")) + ": ECMWF", 1),
@@ -8775,7 +8775,7 @@ function ic(t, e, o, i, a, r) {
8775
8775
  })
8776
8776
  ], 2)
8777
8777
  ], 6),
8778
- o.map ? (y(), R(L, B({
8778
+ o.map ? (y(), R(P, B({
8779
8779
  key: 1,
8780
8780
  ref: "windBarb",
8781
8781
  map: o.map,
@@ -8784,7 +8784,7 @@ function ic(t, e, o, i, a, r) {
8784
8784
  wind: (me = a.weatherLayers) == null ? void 0 : me.wind,
8785
8785
  "menu-toggle": o.menuToggle
8786
8786
  }, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : D("", !0),
8787
- o.map ? (y(), R(z, B({
8787
+ o.map ? (y(), R(k, B({
8788
8788
  key: 2,
8789
8789
  map: o.map,
8790
8790
  "before-layer": "empty-layer-2",
@@ -8808,7 +8808,7 @@ function ic(t, e, o, i, a, r) {
8808
8808
  "menu-toggle": o.menuToggle,
8809
8809
  "active-weather-layers": a.activeWeatherLayers
8810
8810
  }, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : D("", !0),
8811
- o.map ? (y(), R(k, B({
8811
+ o.map ? (y(), R(_, B({
8812
8812
  key: 5,
8813
8813
  viewport: a.viewport,
8814
8814
  factor: (de = a.weatherLayers) == null ? void 0 : de["wind-particle"],
@@ -8820,13 +8820,13 @@ function ic(t, e, o, i, a, r) {
8820
8820
  factor: (ue = a.weatherLayers) == null ? void 0 : ue["current-particle"],
8821
8821
  "menu-toggle": o.menuToggle
8822
8822
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
8823
- o.map ? (y(), R(F, B({
8823
+ o.map ? (y(), R(N, B({
8824
8824
  key: 7,
8825
8825
  viewport: a.viewport,
8826
- factor: (N = a.weatherLayers) == null ? void 0 : N["sig-wave"],
8826
+ factor: (F = a.weatherLayers) == null ? void 0 : F["sig-wave"],
8827
8827
  "menu-toggle": o.menuToggle
8828
8828
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
8829
- o.map ? (y(), R(Z, B({
8829
+ o.map ? (y(), R(V, B({
8830
8830
  key: 8,
8831
8831
  map: o.map,
8832
8832
  viewport: a.viewport,
@@ -8840,7 +8840,7 @@ function ic(t, e, o, i, a, r) {
8840
8840
  factor: (ve = a.weatherLayers) == null ? void 0 : ve["ice-edge"],
8841
8841
  "menu-toggle": o.menuToggle
8842
8842
  }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle"])) : D("", !0),
8843
- o.map ? (y(), R(V, B({
8843
+ o.map ? (y(), R(Z, B({
8844
8844
  key: 10,
8845
8845
  viewport: a.viewport,
8846
8846
  factor: (Pe = a.weatherLayers) == null ? void 0 : Pe["ice-cover"],
@@ -9196,19 +9196,19 @@ class Ya {
9196
9196
  const a = e.toLowerCase().split(","), r = [], l = [];
9197
9197
  for (const c of a) {
9198
9198
  let n = Lo.find((h) => {
9199
- var b, w, _;
9200
- return ((b = h.models) == null ? void 0 : b.includes(c)) || ((w = h.alias) == null ? void 0 : w.toLowerCase()) === c || ((_ = h.name) == null ? void 0 : _.toLowerCase()) === c;
9201
- }), u = Po.find((h) => {
9202
- var b, w, _;
9203
- return ((b = h.models) == null ? void 0 : b.includes(c)) || ((w = h.alias) == null ? void 0 : w.toLowerCase()) === c || ((_ = h.name) == null ? void 0 : _.toLowerCase()) === c;
9199
+ var b, w, L;
9200
+ return ((b = h.models) == null ? void 0 : b.includes(c)) || ((w = h.alias) == null ? void 0 : w.toLowerCase()) === c || ((L = h.name) == null ? void 0 : L.toLowerCase()) === c;
9201
+ }), g = Po.find((h) => {
9202
+ var b, w, L;
9203
+ return ((b = h.models) == null ? void 0 : b.includes(c)) || ((w = h.alias) == null ? void 0 : w.toLowerCase()) === c || ((L = h.name) == null ? void 0 : L.toLowerCase()) === c;
9204
9204
  });
9205
9205
  n = n || Lo.find((h) => {
9206
9206
  var b, w;
9207
- return ((b = h.alias) == null ? void 0 : b.toLowerCase()) === ((w = u == null ? void 0 : u.alias) == null ? void 0 : w.toLowerCase());
9208
- }), u = u || Po.find((h) => {
9207
+ return ((b = h.alias) == null ? void 0 : b.toLowerCase()) === ((w = g == null ? void 0 : g.alias) == null ? void 0 : w.toLowerCase());
9208
+ }), g = g || Po.find((h) => {
9209
9209
  var b, w;
9210
9210
  return ((b = h.alias) == null ? void 0 : b.toLowerCase()) === ((w = n == null ? void 0 : n.alias) == null ? void 0 : w.toLowerCase());
9211
- }), n = n || Lo[0], u = u || Po[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);
9211
+ }), n = n || Lo[0], g = g || Po[0], r.push((o = n.models) != null && o.includes(c) ? c : n.model), l.push((i = g.models) != null && i.includes(c) ? c : g.model);
9212
9212
  }
9213
9213
  return {
9214
9214
  weatherModels: r.join(","),
@@ -9225,8 +9225,8 @@ class Ya {
9225
9225
  }), a;
9226
9226
  }
9227
9227
  static pickHourly(e, o) {
9228
- var i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, F, Z, Y, V, ee, Q, $, ce, le, me, K, ie, pe, de, ue, N, se, ve, Pe, Ce, De, Ae, Re, ke, G, te, Fe, Me, ge, Te;
9229
- const U = typeof o == "string" ? S(o) : o, fe = e == null ? void 0 : e.weather, oe = e == null ? void 0 : e.marine, re = S((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), Oe = re.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"), He = re.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"), Ge = [];
9228
+ var i, a, r, l, c, n, g, h, b, w, L, p, z, T, O, I, P, k, v, C, _, A, N, V, Y, Z, ee, Q, $, ce, le, me, K, ie, pe, de, ue, F, se, ve, Pe, Ce, De, Ae, Re, ke, G, te, Fe, Me, ge, Te;
9229
+ const U = typeof o == "string" ? S(o) : o, fe = e == null ? void 0 : e.weather, oe = e == null ? void 0 : e.marine, re = S((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), Oe = re.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"), He = re.clone().add((h = (g = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : g.time) == null ? void 0 : h.at(-1), "h"), Ge = [];
9230
9230
  if (U.isBetween(Oe, He, "millisecond", "[]")) {
9231
9231
  const E = U.utc().diff(Oe, "h", !1);
9232
9232
  let ye, Ie;
@@ -9239,29 +9239,29 @@ class Ya {
9239
9239
  for (let _e = E - (E - 1) % 6; _e <= E; _e++)
9240
9240
  Ee += (w = W == null ? void 0 : W.precipitation) == null ? void 0 : w.at(_e);
9241
9241
  for (let _e = E - (E - 1) % 12; _e <= E; _e++)
9242
- j += (_ = W == null ? void 0 : W.precipitation) == null ? void 0 : _.at(_e);
9242
+ j += (L = W == null ? void 0 : W.precipitation) == null ? void 0 : L.at(_e);
9243
9243
  ye = {
9244
- temp: (g = W == null ? void 0 : W.temperature_2m) == null ? void 0 : g.at(E),
9245
- apparentTemp: (P = W == null ? void 0 : W.apparent_temperature) == null ? void 0 : P.at(E),
9244
+ temp: (p = W == null ? void 0 : W.temperature_2m) == null ? void 0 : p.at(E),
9245
+ apparentTemp: (z = W == null ? void 0 : W.apparent_temperature) == null ? void 0 : z.at(E),
9246
9246
  rh: (T = W == null ? void 0 : W.relative_humidity_2m) == null ? void 0 : T.at(E),
9247
9247
  dp: (O = W == null ? void 0 : W.dew_point_2m) == null ? void 0 : O.at(E),
9248
9248
  precip: {
9249
9249
  probability: (I = W == null ? void 0 : W.precipitation_probability) == null ? void 0 : I.at(E),
9250
- sum: (L = W == null ? void 0 : W.precipitation) == null ? void 0 : L.at(E),
9251
- sum1Hours: (z = W == null ? void 0 : W.precipitation) == null ? void 0 : z.at(E),
9250
+ sum: (P = W == null ? void 0 : W.precipitation) == null ? void 0 : P.at(E),
9251
+ sum1Hours: (k = W == null ? void 0 : W.precipitation) == null ? void 0 : k.at(E),
9252
9252
  sum3Hours: Math.round(Be * 100) / 100,
9253
9253
  sum6Hours: Math.round(Ee * 100) / 100,
9254
9254
  sum12Hours: Math.round(j * 100) / 100
9255
9255
  },
9256
9256
  pmsl: (v = W == null ? void 0 : W.pressure_msl) == null ? void 0 : v.at(E),
9257
9257
  psurf: (C = W == null ? void 0 : W.surface_pressure) == null ? void 0 : C.at(E),
9258
- code: (k = W == null ? void 0 : W.weather_code) == null ? void 0 : k.at(E),
9258
+ code: (_ = W == null ? void 0 : W.weather_code) == null ? void 0 : _.at(E),
9259
9259
  visibility: this.m2nm((A = W == null ? void 0 : W.visibility) == null ? void 0 : A.at(E)),
9260
9260
  wind: {
9261
- speed: (F = W == null ? void 0 : W.wind_speed_10m) == null ? void 0 : F.at(E),
9262
- kts: (Z = W == null ? void 0 : W.wind_speed_10m) == null ? void 0 : Z.at(E),
9261
+ speed: (N = W == null ? void 0 : W.wind_speed_10m) == null ? void 0 : N.at(E),
9262
+ kts: (V = W == null ? void 0 : W.wind_speed_10m) == null ? void 0 : V.at(E),
9263
9263
  degree: (Y = W == null ? void 0 : W.wind_direction_10m) == null ? void 0 : Y.at(E),
9264
- bearing: ((V = W == null ? void 0 : W.wind_direction_10m) == null ? void 0 : V.at(E)) !== null ? (((ee = W == null ? void 0 : W.wind_direction_10m) == null ? void 0 : ee.at(E)) + 180) % 360 : null,
9264
+ bearing: ((Z = W == null ? void 0 : W.wind_direction_10m) == null ? void 0 : Z.at(E)) !== null ? (((ee = W == null ? void 0 : W.wind_direction_10m) == null ? void 0 : ee.at(E)) + 180) % 360 : null,
9265
9265
  gusts: (Q = W == null ? void 0 : W.wind_gusts_10m) == null ? void 0 : Q.at(E)
9266
9266
  },
9267
9267
  isDay: ($ = W == null ? void 0 : W.is_day) == null ? void 0 : $.at(E)
@@ -9289,7 +9289,7 @@ class Ya {
9289
9289
  swell: {
9290
9290
  height: (pe = j == null ? void 0 : j.swell_wave_height) == null ? void 0 : pe.at(E),
9291
9291
  degree: (de = j == null ? void 0 : j.swell_wave_direction) == null ? void 0 : de.at(E),
9292
- bearing: ((ue = j == null ? void 0 : j.swell_wave_direction) == null ? void 0 : ue.at(E)) !== null ? (((N = j == null ? void 0 : j.swell_wave_direction) == null ? void 0 : N.at(E)) + 180) % 360 : null,
9292
+ bearing: ((ue = j == null ? void 0 : j.swell_wave_direction) == null ? void 0 : ue.at(E)) !== null ? (((F = j == null ? void 0 : j.swell_wave_direction) == null ? void 0 : F.at(E)) + 180) % 360 : null,
9293
9293
  period: (se = j == null ? void 0 : j.swell_wave_period) == null ? void 0 : se.at(E),
9294
9294
  peakPeriod: (ve = j == null ? void 0 : j.swell_wave_peak_period) == null ? void 0 : ve.at(E)
9295
9295
  },
@@ -9316,7 +9316,7 @@ class Ya {
9316
9316
  return Ge;
9317
9317
  }
9318
9318
  static toLegacy(e) {
9319
- var o, i, a, r, l, c, n, u, h, b;
9319
+ var o, i, a, r, l, c, n, g, h, b;
9320
9320
  return {
9321
9321
  wind: (o = e == null ? void 0 : e.weather) == null ? void 0 : o.wind,
9322
9322
  visibility: (i = e == null ? void 0 : e.weather) == null ? void 0 : i.visibility,
@@ -9326,7 +9326,7 @@ class Ya {
9326
9326
  kts: (c = (l = e == null ? void 0 : e.weather) == null ? void 0 : l.wind) == null ? void 0 : c.gusts
9327
9327
  },
9328
9328
  precip: (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip,
9329
- code: (u = e == null ? void 0 : e.weather) == null ? void 0 : u.code,
9329
+ code: (g = e == null ? void 0 : e.weather) == null ? void 0 : g.code,
9330
9330
  name: (h = e == null ? void 0 : e.weather) == null ? void 0 : h.name,
9331
9331
  url: (b = e == null ? void 0 : e.weather) == null ? void 0 : b.url,
9332
9332
  wave: e == null ? void 0 : e.wave,
@@ -9338,7 +9338,7 @@ class Ya {
9338
9338
  };
9339
9339
  }
9340
9340
  static pickDaily(e, o) {
9341
- var i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, F, Z, Y, V, ee, Q, $, ce, le, me, K, ie, pe, de, ue, N, se, ve, Pe, Ce, De, Ae;
9341
+ var i, a, r, l, c, n, g, h, b, w, L, p, z, T, O, I, P, k, v, C, _, A, N, V, Y, Z, ee, Q, $, ce, le, me, K, ie, pe, de, ue, F, se, ve, Pe, Ce, De, Ae;
9342
9342
  const Re = typeof o == "string" ? S(o) : o, ke = e == null ? void 0 : e.weather, G = e == null ? void 0 : e.marine, te = S((r = (a = (i = ke == null ? void 0 : ke[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), Fe = S((n = (c = (l = ke == null ? void 0 : ke[0]) == null ? void 0 : l.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Me = [];
9343
9343
  if (Re.isBetween(te, Fe, "millisecond", "[]")) {
9344
9344
  let ge, Te;
@@ -9347,35 +9347,35 @@ class Ya {
9347
9347
  for (const fe of ke) {
9348
9348
  const oe = fe.daily;
9349
9349
  ge = {
9350
- code: (u = oe.weather_code) == null ? void 0 : u.at(U),
9350
+ code: (g = oe.weather_code) == null ? void 0 : g.at(U),
9351
9351
  temp: {
9352
9352
  max: (h = oe.temperature_2m_max) == null ? void 0 : h.at(U),
9353
9353
  min: (b = oe.temperature_2m_min) == null ? void 0 : b.at(U),
9354
9354
  mean: (w = oe.temperature_2m_mean) == null ? void 0 : w.at(U)
9355
9355
  },
9356
9356
  apparentTemp: {
9357
- max: (_ = oe.apparent_temperature_max) == null ? void 0 : _.at(U),
9358
- min: (g = oe.apparent_temperature_min) == null ? void 0 : g.at(U)
9357
+ max: (L = oe.apparent_temperature_max) == null ? void 0 : L.at(U),
9358
+ min: (p = oe.apparent_temperature_min) == null ? void 0 : p.at(U)
9359
9359
  },
9360
9360
  precip: {
9361
- sum: (P = oe.precipitation_sum) == null ? void 0 : P.at(U),
9361
+ sum: (z = oe.precipitation_sum) == null ? void 0 : z.at(U),
9362
9362
  rainSum: (T = oe.rain_sum) == null ? void 0 : T.at(U),
9363
9363
  snowfallSum: (O = oe.snowfall_sum) == null ? void 0 : O.at(U),
9364
9364
  showersSum: (I = oe.showers_sum) == null ? void 0 : I.at(U),
9365
- hours: (L = oe.precipitation_hours) == null ? void 0 : L.at(U),
9366
- probability: (z = oe.precipitation_probability_max) == null ? void 0 : z.at(U)
9365
+ hours: (P = oe.precipitation_hours) == null ? void 0 : P.at(U),
9366
+ probability: (k = oe.precipitation_probability_max) == null ? void 0 : k.at(U)
9367
9367
  },
9368
9368
  rh: {
9369
9369
  max: (v = oe.relative_humidity_2m_max) == null ? void 0 : v.at(U),
9370
9370
  min: (C = oe.relative_humidity_2m_min) == null ? void 0 : C.at(U),
9371
- mean: (k = oe.relative_humidity_2m_mean) == null ? void 0 : k.at(U)
9371
+ mean: (_ = oe.relative_humidity_2m_mean) == null ? void 0 : _.at(U)
9372
9372
  },
9373
9373
  wind: {
9374
9374
  speed: (A = oe.wind_speed_10m_max) == null ? void 0 : A.at(U),
9375
- kts: (F = oe.wind_speed_10m_max) == null ? void 0 : F.at(U),
9376
- degree: (Z = oe.wind_direction_10m_dominant) == null ? void 0 : Z.at(U),
9375
+ kts: (N = oe.wind_speed_10m_max) == null ? void 0 : N.at(U),
9376
+ degree: (V = oe.wind_direction_10m_dominant) == null ? void 0 : V.at(U),
9377
9377
  gusts: (Y = oe.wind_gusts_10m_max) == null ? void 0 : Y.at(U),
9378
- bearing: ((V = oe.wind_direction_10m_dominant) == null ? void 0 : V.at(U)) !== null ? (((ee = oe.wind_direction_10m_dominant) == null ? void 0 : ee.at(U)) + 180) % 360 : null
9378
+ bearing: ((Z = oe.wind_direction_10m_dominant) == null ? void 0 : Z.at(U)) !== null ? (((ee = oe.wind_direction_10m_dominant) == null ? void 0 : ee.at(U)) + 180) % 360 : null
9379
9379
  }
9380
9380
  };
9381
9381
  const { name: re, url: Oe, bg: He } = this.parseWeatherCode(ge.code, !0);
@@ -9403,7 +9403,7 @@ class Ya {
9403
9403
  period: (pe = re.swell_wave_period_max) == null ? void 0 : pe.at(U),
9404
9404
  peakPeriod: (de = re.swell_wave_peak_period_max) == null ? void 0 : de.at(U),
9405
9405
  // bearing: daily.swell_wave_direction_dominant?.at(day) !== null ? (daily.swell_wave_direction_dominant?.at(day) + 180) % 360 : null,
9406
- bearing: ((ue = re.swell_wave_direction_dominant) == null ? void 0 : ue.at(U)) !== null ? ((N = re.swell_wave_direction_dominant) == null ? void 0 : N.at(U)) % 360 : null
9406
+ bearing: ((ue = re.swell_wave_direction_dominant) == null ? void 0 : ue.at(U)) !== null ? ((F = re.swell_wave_direction_dominant) == null ? void 0 : F.at(U)) % 360 : null
9407
9407
  },
9408
9408
  wd: {
9409
9409
  height: (se = re.wind_wave_height_max) == null ? void 0 : se.at(U),
@@ -10017,17 +10017,17 @@ const sc = {
10017
10017
  }
10018
10018
  });
10019
10019
  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) {
10020
- const u = (l = n == null ? void 0 : n.data) == null ? void 0 : l.data;
10021
- await Se.get(u.tropicals, {
10020
+ const g = (l = n == null ? void 0 : n.data) == null ? void 0 : l.data;
10021
+ await Se.get(g.tropicals, {
10022
10022
  headers: {
10023
10023
  Authorization: this.defaultMeteoToken,
10024
10024
  key: "tropicals"
10025
10025
  },
10026
- responseType: /\.(jpg|png)$/.test(u.tropicals) ? "blob" : "json"
10026
+ responseType: /\.(jpg|png)$/.test(g.tropicals) ? "blob" : "json"
10027
10027
  }).then((h) => {
10028
- var _, g, P;
10029
- const b = Za.convert2Geojson(((_ = h == null ? void 0 : h.data) == null ? void 0 : _.data) || (h == null ? void 0 : h.data));
10030
- ((P = (g = h == null ? void 0 : h.config) == null ? void 0 : g.headers) == null ? void 0 : P.key) && b && (this.tropicals = {
10028
+ var L, p, z;
10029
+ const b = Za.convert2Geojson(((L = h == null ? void 0 : h.data) == null ? void 0 : L.data) || (h == null ? void 0 : h.data));
10030
+ ((z = (p = h == null ? void 0 : h.config) == null ? void 0 : p.headers) == null ? void 0 : z.key) && b && (this.tropicals = {
10031
10031
  data: b,
10032
10032
  active: !0,
10033
10033
  cached: !0,
@@ -10045,7 +10045,7 @@ const sc = {
10045
10045
  handleRefresh() {
10046
10046
  var e, o;
10047
10047
  (((o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) || []).forEach((i) => {
10048
- var a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z;
10048
+ var a, r, l, c, n, g, h, b, w, L, p, z, T, O, I, P, k;
10049
10049
  if (((a = i.geometry) == null ? void 0 : a.type) === "Point") {
10050
10050
  let v = "";
10051
10051
  switch (!0) {
@@ -10055,16 +10055,16 @@ const sc = {
10055
10055
  case (((c = i.properties.wind) == null ? void 0 : c.kts) < 47 || ((n = i.properties) == null ? void 0 : n.kts) < 47):
10056
10056
  v = "TS";
10057
10057
  break;
10058
- case (((u = i.properties.wind) == null ? void 0 : u.kts) < 63 || ((h = i.properties) == null ? void 0 : h.kts) < 63):
10058
+ case (((g = i.properties.wind) == null ? void 0 : g.kts) < 63 || ((h = i.properties) == null ? void 0 : h.kts) < 63):
10059
10059
  v = "STS";
10060
10060
  break;
10061
10061
  case (((b = i.properties.wind) == null ? void 0 : b.kts) < 79 || ((w = i.properties) == null ? void 0 : w.kts) < 79):
10062
10062
  v = "TY";
10063
10063
  break;
10064
- case (((_ = i.properties.wind) == null ? void 0 : _.kts) < 94 || ((g = i.properties) == null ? void 0 : g.kts) < 94):
10064
+ case (((L = i.properties.wind) == null ? void 0 : L.kts) < 94 || ((p = i.properties) == null ? void 0 : p.kts) < 94):
10065
10065
  v = "STY";
10066
10066
  break;
10067
- case (((P = i.properties.wind) == null ? void 0 : P.kts) >= 94 || ((T = i.properties) == null ? void 0 : T.kts) >= 94):
10067
+ case (((z = i.properties.wind) == null ? void 0 : z.kts) >= 94 || ((T = i.properties) == null ? void 0 : T.kts) >= 94):
10068
10068
  v = "Super TY";
10069
10069
  break;
10070
10070
  default:
@@ -10073,15 +10073,15 @@ const sc = {
10073
10073
  }
10074
10074
  i.properties.level = v;
10075
10075
  }
10076
- ((O = i.geometry) == null ? void 0 : O.type) === "Point" && ((I = i.properties) != null && I.important) && (i.properties.format = (z = (L = S(i.properties.date)) == null ? void 0 : L.utcOffset(this.timeZone)) == null ? void 0 : z.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`));
10076
+ ((O = i.geometry) == null ? void 0 : O.type) === "Point" && ((I = i.properties) != null && I.important) && (i.properties.format = (k = (P = S(i.properties.date)) == null ? void 0 : P.utcOffset(this.timeZone)) == null ? void 0 : k.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`), i.properties.nameCn = i.properties.nameCn || i.properties.name || "-");
10077
10077
  }), this.handleInit();
10078
10078
  },
10079
10079
  handleInit() {
10080
- var t, e, o, i, a, r, l, c, n, u, h, b;
10081
- 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);
10080
+ var t, e, o, i, a, r, l, c, n, g, h, b;
10081
+ 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 = (g = this.$parent) == null ? void 0 : g.$refs) == null ? void 0 : h.idmBottomBar) == null || b.handleToggle("tropical", !1);
10082
10082
  },
10083
10083
  handleRender() {
10084
- var t, e, o, i, a, r, l, c, n, u;
10084
+ var t, e, o, i, a, r, l, c, n, g;
10085
10085
  if (this.tropicals && this.map) {
10086
10086
  const h = (/* @__PURE__ */ new Date()).valueOf();
10087
10087
  let b = 0, w = 0;
@@ -10184,7 +10184,7 @@ const sc = {
10184
10184
  }
10185
10185
  }, this.beforeLayer), w = (/* @__PURE__ */ new Date()).valueOf() - (h + b), console.log("[tropical] add elapsed: ", w, ", total: ", b += w)), (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), w = (/* @__PURE__ */ new Date()).valueOf() - (h + b), console.log("[tropical] update elapsed: ", w, ", total: ", b += w)) : (this.map.addSource(this.clusterSource, {
10186
10186
  type: "geojson",
10187
- data: (n = this.tropicals) != null && n.active ? (u = this.tropicals) == null ? void 0 : u.data : this.empty
10187
+ data: (n = this.tropicals) != null && n.active ? (g = this.tropicals) == null ? void 0 : g.data : this.empty
10188
10188
  // cluster: true,
10189
10189
  // clusterRadius: 10, // 聚合半径
10190
10190
  }), this.map.addLayer({
@@ -10299,8 +10299,8 @@ const sc = {
10299
10299
  "text-halo-width": 1
10300
10300
  }
10301
10301
  }, this.beforeLayer), w = (/* @__PURE__ */ new Date()).valueOf() - (h + b), console.log("[tropical] add elapsed: ", w, ", total: ", b += w));
10302
- const _ = Za.interpolate(this.tropicals, 1);
10303
- this.interpolateData = JSON.parse(JSON.stringify(_)), this.handleDateChange();
10302
+ const L = Za.interpolate(this.tropicals, 1);
10303
+ this.interpolateData = JSON.parse(JSON.stringify(L)), this.handleDateChange();
10304
10304
  }
10305
10305
  },
10306
10306
  handleClear() {
@@ -10308,7 +10308,7 @@ const sc = {
10308
10308
  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();
10309
10309
  },
10310
10310
  handleDateChange() {
10311
- var t, e, o, i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, F, Z, Y, V, ee;
10311
+ var t, e, o, i, a, r, l, c, n, g, h, b, w, L, p, z, T, O, I, P, k, v, C, _, A, N, V, Y, Z, ee;
10312
10312
  if ((t = this.interpolateMarkers) == null || t.forEach((Q) => Q == null ? void 0 : Q.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
10313
10313
  const Q = S(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), $ = this.interpolateData.filter((K) => K.properties.date === (Q == null ? void 0 : Q.format()) && !K.properties.disabled), ce = this.handleComputePolygons($), le = H.featureCollection([...$]);
10314
10314
  ce.forEach((K) => {
@@ -10330,12 +10330,12 @@ const sc = {
10330
10330
  const me = [];
10331
10331
  for (const K of $)
10332
10332
  if (!K.properties.disabled) {
10333
- me.some((N) => {
10333
+ me.some((F) => {
10334
10334
  var se;
10335
- return N.properties.name === ((se = K.properties) == null ? void 0 : se.name);
10335
+ return F.properties.name === ((se = K.properties) == null ? void 0 : se.name);
10336
10336
  }) || me.push(K);
10337
10337
  let ie = "#f44336";
10338
- ((c = (l = K.properties) == null ? void 0 : l.wind) == null ? void 0 : c.kts) < 32 || !((u = (n = K.properties) == null ? void 0 : n.wind) != null && u.kts) ? ie = "#03f869" : ((b = (h = K.properties) == null ? void 0 : h.wind) == null ? void 0 : b.kts) >= 32 && ((_ = (w = K.properties) == null ? void 0 : w.wind) == null ? void 0 : _.kts) < 47 ? ie = "#f2f202" : ((P = (g = K.properties) == null ? void 0 : g.wind) == null ? void 0 : P.kts) >= 47 && ((O = (T = K.properties) == null ? void 0 : T.wind) == null ? void 0 : O.kts) < 63 ? ie = "#ff9100" : ((L = (I = K.properties) == null ? void 0 : I.wind) == null ? void 0 : L.kts) >= 63 && ((v = (z = K.properties) == null ? void 0 : z.wind) == null ? void 0 : v.kts) < 79 ? ie = "#f44336" : ((k = (C = K.properties) == null ? void 0 : C.wind) == null ? void 0 : k.kts) >= 79 && ((F = (A = K.properties) == null ? void 0 : A.wind) == null ? void 0 : F.kts) < 94 ? ie = "#f903d0" : ((Y = (Z = K.properties) == null ? void 0 : Z.wind) == null ? void 0 : Y.kts) >= 94 ? ie = "#8702f9" : ie = "#f44336";
10338
+ ((c = (l = K.properties) == null ? void 0 : l.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = K.properties) == null ? void 0 : n.wind) != null && g.kts) ? ie = "#03f869" : ((b = (h = K.properties) == null ? void 0 : h.wind) == null ? void 0 : b.kts) >= 32 && ((L = (w = K.properties) == null ? void 0 : w.wind) == null ? void 0 : L.kts) < 47 ? ie = "#f2f202" : ((z = (p = K.properties) == null ? void 0 : p.wind) == null ? void 0 : z.kts) >= 47 && ((O = (T = K.properties) == null ? void 0 : T.wind) == null ? void 0 : O.kts) < 63 ? ie = "#ff9100" : ((P = (I = K.properties) == null ? void 0 : I.wind) == null ? void 0 : P.kts) >= 63 && ((v = (k = K.properties) == null ? void 0 : k.wind) == null ? void 0 : v.kts) < 79 ? ie = "#f44336" : ((_ = (C = K.properties) == null ? void 0 : C.wind) == null ? void 0 : _.kts) >= 79 && ((N = (A = K.properties) == null ? void 0 : A.wind) == null ? void 0 : N.kts) < 94 ? ie = "#f903d0" : ((Y = (V = K.properties) == null ? void 0 : V.wind) == null ? void 0 : Y.kts) >= 94 ? ie = "#8702f9" : ie = "#f44336";
10339
10339
  const pe = `<svg t="1719918955501"
10340
10340
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
10341
10341
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -10357,30 +10357,30 @@ const sc = {
10357
10357
  }
10358
10358
  this.$emit("tropicalCenterPoints", me);
10359
10359
  } else
10360
- (V = this.map) != null && V.getSource(this.interpolateSource) && ((ee = this.map) == null || ee.getSource(this.interpolateSource).setData(this.empty));
10360
+ (Z = this.map) != null && Z.getSource(this.interpolateSource) && ((ee = this.map) == null || ee.getSource(this.interpolateSource).setData(this.empty));
10361
10361
  },
10362
10362
  handleClick(t) {
10363
- var a, r, l, c, n, u, h, b, w;
10363
+ var a, r, l, c, n, g, h, b, w, L;
10364
10364
  const e = t.features[0], o = (r = (a = this.tropicals) == null ? void 0 : a.data) == null ? void 0 : r.features.filter(
10365
- (_) => {
10366
- var g;
10367
- return _.geometry.type === "LineString" && _.properties.type === "forecast" && _.properties.name === ((g = e == null ? void 0 : e.properties) == null ? void 0 : g.name);
10365
+ (p) => {
10366
+ var z;
10367
+ return p.geometry.type === "LineString" && p.properties.type === "forecast" && p.properties.name === ((z = e == null ? void 0 : e.properties) == null ? void 0 : z.name);
10368
10368
  }
10369
10369
  ), i = (c = (l = this.tropicals) == null ? void 0 : l.data) == null ? void 0 : c.features.filter(
10370
- (_) => {
10371
- var g;
10372
- return _.geometry.type === "LineString" && _.properties.type === "history" && _.properties.name === ((g = e == null ? void 0 : e.properties) == null ? void 0 : g.name);
10370
+ (p) => {
10371
+ var z;
10372
+ return p.geometry.type === "LineString" && p.properties.type === "history" && p.properties.name === ((z = e == null ? void 0 : e.properties) == null ? void 0 : z.name);
10373
10373
  }
10374
10374
  );
10375
10375
  this.activeTropicals = {
10376
- name: (n = e == null ? void 0 : e.properties) == null ? void 0 : n.name,
10377
- nameCn: (u = e == null ? void 0 : e.properties) == null ? void 0 : u.nameCn,
10378
- forecasts: o.map((_) => _.properties),
10379
- history: (h = i[0]) == null ? void 0 : h.properties,
10380
- showCircle: (w = (b = o[0]) == null ? void 0 : b.properties) == null ? void 0 : w.showCircle
10376
+ name: ((n = e == null ? void 0 : e.properties) == null ? void 0 : n.name) || "-",
10377
+ nameCn: ((g = e == null ? void 0 : e.properties) == null ? void 0 : g.nameCn) || ((h = e == null ? void 0 : e.properties) == null ? void 0 : h.name) || "-",
10378
+ forecasts: o.map((p) => p.properties),
10379
+ history: (b = i[0]) == null ? void 0 : b.properties,
10380
+ showCircle: (L = (w = o[0]) == null ? void 0 : w.properties) == null ? void 0 : L.showCircle
10381
10381
  }, this.showTropicalsInfo = !0, this.$nextTick(() => {
10382
- const _ = document.getElementById("idm-tropical-gl4-info");
10383
- this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]) : this.activeTropicalsMarker = new xe.Marker(_).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
10382
+ const p = document.getElementById("idm-tropical-gl4-info");
10383
+ this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]) : this.activeTropicalsMarker = new xe.Marker(p).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
10384
10384
  });
10385
10385
  },
10386
10386
  handleCloseInfoMarker() {
@@ -10393,10 +10393,10 @@ const sc = {
10393
10393
  var i, a, r, l, c, n;
10394
10394
  t.disabled = !t.disabled;
10395
10395
  const e = `${t.name}-${t.model}`, o = (a = (i = this.map) == null ? void 0 : i.getSource(this.source)._data) == null ? void 0 : a.features;
10396
- o.forEach((u) => {
10397
- u.properties.category === e && (u.properties.disabled = t.disabled);
10398
- }), this.interpolateData.forEach((u) => {
10399
- u.properties.category === e && (u.properties.disabled = t.disabled);
10396
+ o.forEach((g) => {
10397
+ g.properties.category === e && (g.properties.disabled = t.disabled);
10398
+ }), this.interpolateData.forEach((g) => {
10399
+ g.properties.category === e && (g.properties.disabled = t.disabled);
10400
10400
  }), (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();
10401
10401
  },
10402
10402
  handleStrikeProbability(t) {
@@ -10473,14 +10473,14 @@ const sc = {
10473
10473
  )[0];
10474
10474
  this.hoverPoint = o == null ? void 0 : o.properties;
10475
10475
  const i = (r = (a = this.tropicals) == null ? void 0 : a.data) == null ? void 0 : r.features.filter(
10476
- (u) => {
10476
+ (g) => {
10477
10477
  var h;
10478
- return u.geometry.type === "LineString" && u.properties.type === "forecast" && u.properties.name === ((h = o == null ? void 0 : o.properties) == null ? void 0 : h.name);
10478
+ return g.geometry.type === "LineString" && g.properties.type === "forecast" && g.properties.name === ((h = o == null ? void 0 : o.properties) == null ? void 0 : h.name);
10479
10479
  }
10480
10480
  );
10481
10481
  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(() => {
10482
- const u = document.getElementById("tropicalHoverMarkerInfo").cloneNode(!0);
10483
- this.hoverMarker = new xe.Marker(u).setLngLat(o.geometry.coordinates).setOffset([160, 0]).addTo(this.map);
10482
+ const g = document.getElementById("tropicalHoverMarkerInfo").cloneNode(!0);
10483
+ this.hoverMarker = new xe.Marker(g).setLngLat(o.geometry.coordinates).setOffset([160, 0]).addTo(this.map);
10484
10484
  }));
10485
10485
  },
10486
10486
  handleLeave() {
@@ -10527,18 +10527,18 @@ const sc = {
10527
10527
  class: "d-flex justify-start align-center"
10528
10528
  }, Jc = { class: "text-label pr-1" }, Qc = { class: "d-flex justify-start align-center" }, em = { class: "text-label pr-1" };
10529
10529
  function tm(t, e, o, i, a, r) {
10530
- const l = x("VBtn"), c = x("VTooltip"), n = x("VCardText"), u = x("VDivider"), h = x("VCardActions"), b = x("VCard"), w = x("v-card-title"), _ = x("v-divider");
10530
+ const l = x("VBtn"), c = x("VTooltip"), n = x("VCardText"), g = x("VDivider"), h = x("VCardActions"), b = x("VCard"), w = x("v-card-title"), L = x("v-divider");
10531
10531
  return y(), M("div", lc, [
10532
10532
  s("div", {
10533
10533
  class: "menu-bar-box transition pa-1",
10534
10534
  style: ae({ top: o.top + 134 + "px", right: a.right + "px" })
10535
10535
  }, [
10536
- p(c, {
10536
+ u(c, {
10537
10537
  text: t.$t("tropical.tropicals"),
10538
10538
  location: "left"
10539
10539
  }, {
10540
- activator: f(({ props: g }) => [
10541
- p(l, B(g, {
10540
+ activator: f(({ props: p }) => [
10541
+ u(l, B(p, {
10542
10542
  "min-width": "32",
10543
10543
  width: "32",
10544
10544
  height: "32",
@@ -10556,21 +10556,21 @@ function tm(t, e, o, i, a, r) {
10556
10556
  }, 8, ["text"])
10557
10557
  ], 4),
10558
10558
  a.showTropicalsInfo && !t.$attrs.hideTropicalsLegend ? (y(), M("div", nc, [
10559
- p(b, {
10559
+ u(b, {
10560
10560
  "min-width": "400",
10561
10561
  elevation: "16",
10562
10562
  "max-width": "500"
10563
10563
  }, {
10564
10564
  default: f(() => [
10565
- p(n, null, {
10565
+ u(n, null, {
10566
10566
  default: f(() => {
10567
- var g, P, T, O, I, L, z, v, C, k, A;
10567
+ var p, z, T, O, I, P, k, v, C, _, A, N;
10568
10568
  return [
10569
10569
  s("div", cc, [
10570
- s("span", mc, m(o.locale === "en" ? (g = a.activeTropicals) == null ? void 0 : g.name : (P = a.activeTropicals) == null ? void 0 : P.nameCn), 1),
10571
- (O = (T = a.activeTropicals) == null ? void 0 : T.history) != null && O.level ? (y(), M("span", dc, ", " + m((L = (I = a.activeTropicals) == null ? void 0 : I.history) == null ? void 0 : L.level), 1)) : D("", !0)
10570
+ s("span", mc, m(o.locale === "en" ? (p = a.activeTropicals) == null ? void 0 : p.name : ((z = a.activeTropicals) == null ? void 0 : z.nameCn) || ((T = a.activeTropicals) == null ? void 0 : T.name) || "-"), 1),
10571
+ (I = (O = a.activeTropicals) == null ? void 0 : O.history) != null && I.level ? (y(), M("span", dc, ", " + m((k = (P = a.activeTropicals) == null ? void 0 : P.history) == null ? void 0 : k.level), 1)) : D("", !0)
10572
10572
  ]),
10573
- p(l, {
10573
+ u(l, {
10574
10574
  icon: "",
10575
10575
  density: "compact",
10576
10576
  variant: "plain",
@@ -10585,32 +10585,32 @@ function tm(t, e, o, i, a, r) {
10585
10585
  }, 8, ["onClick"]),
10586
10586
  s("div", hc, [
10587
10587
  s("span", pc, m(t.$t("actions.lastUpdate")) + ": ", 1),
10588
- s("span", null, m(r.computeTime(((v = (z = a.activeTropicals) == null ? void 0 : z.history) == null ? void 0 : v.updated) || ((A = (k = (C = a.activeTropicals) == null ? void 0 : C.forecasts) == null ? void 0 : k.filter((F) => !F.disabled)[0]) == null ? void 0 : A.date), o.timeZone)), 1)
10588
+ s("span", null, m(r.computeTime(((C = (v = a.activeTropicals) == null ? void 0 : v.history) == null ? void 0 : C.updated) || ((N = (A = (_ = a.activeTropicals) == null ? void 0 : _.forecasts) == null ? void 0 : A.filter((V) => !V.disabled)[0]) == null ? void 0 : N.date), o.timeZone)), 1)
10589
10589
  ])
10590
10590
  ];
10591
10591
  }),
10592
10592
  _: 1
10593
10593
  }),
10594
- p(u),
10595
- p(n, { class: "text-body-1" }, {
10594
+ u(g),
10595
+ u(n, { class: "text-body-1" }, {
10596
10596
  default: f(() => {
10597
- var g, P, T, O, I, L, z, v, C;
10597
+ var p, z, T, O, I, P, k, v, C;
10598
10598
  return [
10599
10599
  s("div", uc, [
10600
10600
  s("div", gc, [
10601
10601
  s("label", fc, m(t.$t("weather.windSpeed")) + " : ", 1),
10602
- s("span", null, m(((P = (g = a.activeTropicals) == null ? void 0 : g.history) == null ? void 0 : P.kts) || "-") + " kts", 1),
10602
+ s("span", null, m(((z = (p = a.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : z.kts) || "-") + " kts", 1),
10603
10603
  s("span", null, ", BF " + m(r.computeBF(((O = (T = a.activeTropicals) == null ? void 0 : T.history) == null ? void 0 : O.kts) || "-")), 1)
10604
10604
  ]),
10605
10605
  s("div", yc, [
10606
10606
  s("label", bc, m(t.$t("weather.pressure")) + " : ", 1),
10607
- s("span", null, m(((L = (I = a.activeTropicals) == null ? void 0 : I.history) == null ? void 0 : L.pressure) || "-") + " hPa", 1)
10607
+ s("span", null, m(((P = (I = a.activeTropicals) == null ? void 0 : I.history) == null ? void 0 : P.pressure) || "-") + " hPa", 1)
10608
10608
  ])
10609
10609
  ]),
10610
10610
  s("div", wc, [
10611
10611
  s("div", xc, [
10612
10612
  s("label", vc, m(t.$t("tropical.moveSpeed")) + " : ", 1),
10613
- s("span", null, m(((z = r.computeMovement(a.activeTropicals)) == null ? void 0 : z.kts) || "-") + " kts", 1)
10613
+ s("span", null, m(((k = r.computeMovement(a.activeTropicals)) == null ? void 0 : k.kts) || "-") + " kts", 1)
10614
10614
  ]),
10615
10615
  s("div", _c, [
10616
10616
  s("label", kc, m(t.$t("tropical.moveDir")) + " : ", 1),
@@ -10620,17 +10620,17 @@ function tm(t, e, o, i, a, r) {
10620
10620
  s("div", zc, [
10621
10621
  s("label", Lc, m(t.$t("weather.forecastModels")) + " : ", 1),
10622
10622
  s("div", Pc, [
10623
- (y(!0), M(be, null, we((C = a.activeTropicals) == null ? void 0 : C.forecasts, (k, A) => (y(), R(l, {
10623
+ (y(!0), M(be, null, we((C = a.activeTropicals) == null ? void 0 : C.forecasts, (_, A) => (y(), R(l, {
10624
10624
  key: A,
10625
10625
  density: "compact",
10626
- variant: k.disabled ? "text" : "flat",
10627
- color: k.disabled ? "" : "primary",
10626
+ variant: _.disabled ? "text" : "flat",
10627
+ color: _.disabled ? "" : "primary",
10628
10628
  "min-width": 30,
10629
- class: Ye(["model text-none text-body-1 px-1", k.disabled ? "btn-border-1 btn-bg-1" : ""]),
10630
- onClick: je((F) => r.handleForecastToggle(k), ["stop"])
10629
+ class: Ye(["model text-none text-body-1 px-1", _.disabled ? "btn-border-1 btn-bg-1" : ""]),
10630
+ onClick: je((N) => r.handleForecastToggle(_), ["stop"])
10631
10631
  }, {
10632
10632
  default: f(() => [
10633
- J(m(k.model), 1)
10633
+ J(m(_.model), 1)
10634
10634
  ]),
10635
10635
  _: 2
10636
10636
  }, 1032, ["variant", "color", "class", "onClick"]))), 128))
@@ -10640,16 +10640,16 @@ function tm(t, e, o, i, a, r) {
10640
10640
  }),
10641
10641
  _: 1
10642
10642
  }),
10643
- p(u),
10644
- p(h, { class: "d-flex justify-space-between" }, {
10643
+ u(g),
10644
+ u(h, { class: "d-flex justify-space-between" }, {
10645
10645
  default: f(() => [
10646
- p(l, {
10646
+ u(l, {
10647
10647
  density: "compact",
10648
10648
  "prepend-icon": "",
10649
10649
  variant: "text",
10650
10650
  color: a.showLegend ? "primary" : "",
10651
10651
  class: "text-none text-body-1",
10652
- onClick: e[0] || (e[0] = je((g) => a.showLegend = !a.showLegend, ["stop"]))
10652
+ onClick: e[0] || (e[0] = je((p) => a.showLegend = !a.showLegend, ["stop"]))
10653
10653
  }, {
10654
10654
  prepend: f(() => e[5] || (e[5] = [
10655
10655
  s("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
@@ -10665,19 +10665,19 @@ function tm(t, e, o, i, a, r) {
10665
10665
  variant: "text",
10666
10666
  density: "compact",
10667
10667
  class: "text-none text-body-1",
10668
- onClick: e[1] || (e[1] = je((g) => r.handleNotification(a.activeTropicals), ["stop"]))
10668
+ onClick: e[1] || (e[1] = je((p) => r.handleNotification(a.activeTropicals), ["stop"]))
10669
10669
  }, {
10670
10670
  default: f(() => [
10671
10671
  J(m(t.$t("actions.notify")), 1)
10672
10672
  ]),
10673
10673
  _: 1
10674
10674
  })) : D("", !0),
10675
- p(l, {
10675
+ u(l, {
10676
10676
  variant: "text",
10677
10677
  density: "compact",
10678
10678
  "append-icon": "mdi-chevron-right",
10679
10679
  class: "text-none text-body-1",
10680
- onClick: e[2] || (e[2] = je((g) => r.handleStrikeProbability(a.activeTropicals), ["stop"]))
10680
+ onClick: e[2] || (e[2] = je((p) => r.handleStrikeProbability(a.activeTropicals), ["stop"]))
10681
10681
  }, {
10682
10682
  default: f(() => [
10683
10683
  J(m(t.$t("actions.viewReport")), 1)
@@ -10692,9 +10692,9 @@ function tm(t, e, o, i, a, r) {
10692
10692
  _: 1
10693
10693
  }),
10694
10694
  s("div", Tc, [
10695
- Ve(p(b, { elevation: "16" }, {
10695
+ Ve(u(b, { elevation: "16" }, {
10696
10696
  default: f(() => [
10697
- p(n, null, {
10697
+ u(n, null, {
10698
10698
  default: f(() => [
10699
10699
  Ve(s("div", Sc, e[6] || (e[6] = [
10700
10700
  s("div", { class: "legend d-flex justify-start align-center" }, [
@@ -10754,33 +10754,33 @@ function tm(t, e, o, i, a, r) {
10754
10754
  ])
10755
10755
  ])
10756
10756
  ])) : D("", !0),
10757
- Ve(p(b, {
10757
+ Ve(u(b, {
10758
10758
  id: "tropicalHoverMarkerInfo",
10759
10759
  elevation: "16",
10760
10760
  "max-width": "280"
10761
10761
  }, {
10762
10762
  default: f(() => [
10763
- p(w, null, {
10763
+ u(w, null, {
10764
10764
  default: f(() => {
10765
- var g, P, T;
10765
+ var p, z, T, O;
10766
10766
  return [
10767
10767
  s("div", Ic, [
10768
- s("span", Dc, m(o.locale === "en" ? (g = a.hoverPoint) == null ? void 0 : g.name : (P = a.hoverPoint) == null ? void 0 : P.nameCn), 1),
10769
- s("span", Ac, "[ " + m((T = a.hoverPoint) == null ? void 0 : T.level) + " ]", 1)
10768
+ s("span", Dc, m(o.locale === "en" ? (p = a.hoverPoint) == null ? void 0 : p.name : ((z = a.hoverPoint) == null ? void 0 : z.nameCn) || ((T = a.hoverPoint) == null ? void 0 : T.name)), 1),
10769
+ s("span", Ac, "[ " + m((O = a.hoverPoint) == null ? void 0 : O.level) + " ]", 1)
10770
10770
  ])
10771
10771
  ];
10772
10772
  }),
10773
10773
  _: 1
10774
10774
  }),
10775
- p(_),
10776
- p(n, { class: "text-body-1" }, {
10775
+ u(L),
10776
+ u(n, { class: "text-body-1" }, {
10777
10777
  default: f(() => {
10778
- var g, P, T, O, I, L, z, v, C, k, A, F, Z, Y, V, ee, Q, $, ce, le;
10778
+ var p, z, T, O, I, P, k, v, C, _, A, N, V, Y, Z, ee, Q, $, ce, le;
10779
10779
  return [
10780
10780
  s("div", Rc, [
10781
- ((g = a.hoverPoint) == null ? void 0 : g.type) === "forecast" ? (y(), M("div", Oc, [
10781
+ ((p = a.hoverPoint) == null ? void 0 : p.type) === "forecast" ? (y(), M("div", Oc, [
10782
10782
  s("label", Bc, m(t.$t("tropical.updated")) + " : ", 1),
10783
- s("span", null, m(r.computeTzTime((P = a.hoverPoint) == null ? void 0 : P.update, o.timeZone)), 1)
10783
+ s("span", null, m(r.computeTzTime((z = a.hoverPoint) == null ? void 0 : z.update, o.timeZone)), 1)
10784
10784
  ])) : D("", !0),
10785
10785
  ((T = a.hoverPoint) == null ? void 0 : T.type) === "forecast" ? (y(), M("div", Ec, [
10786
10786
  s("label", jc, m(t.$t("tropical.forecast")) + " : ", 1),
@@ -10788,25 +10788,25 @@ function tm(t, e, o, i, a, r) {
10788
10788
  ])) : D("", !0),
10789
10789
  ((I = a.hoverPoint) == null ? void 0 : I.type) === "history" ? (y(), M("div", Nc, [
10790
10790
  s("label", Fc, m(t.$t("tropical.forecast")) + " : ", 1),
10791
- s("span", null, m(r.computeTzTime((L = a.hoverPoint) == null ? void 0 : L.date, o.timeZone)), 1)
10791
+ s("span", null, m(r.computeTzTime((P = a.hoverPoint) == null ? void 0 : P.date, o.timeZone)), 1)
10792
10792
  ])) : D("", !0),
10793
- ((z = a.hoverPoint) == null ? void 0 : z.type) === "forecast" ? (y(), M("div", Hc, [
10793
+ ((k = a.hoverPoint) == null ? void 0 : k.type) === "forecast" ? (y(), M("div", Hc, [
10794
10794
  s("label", Gc, m(t.$t("tropical.model")) + " : ", 1),
10795
10795
  s("span", null, m(((v = a.hoverPoint) == null ? void 0 : v.model) ?? "-"), 1)
10796
10796
  ])) : D("", !0),
10797
10797
  ((C = a.hoverPoint) == null ? void 0 : C.type) === "forecast" ? (y(), M("div", Uc, [
10798
10798
  s("label", Wc, m(t.$t("weather.wind")) + " : ", 1),
10799
- s("span", null, m(((A = JSON.parse((k = a.hoverPoint) == null ? void 0 : k.wind)) == null ? void 0 : A.kts) ?? "-") + " kts", 1)
10799
+ s("span", null, m(((A = JSON.parse((_ = a.hoverPoint) == null ? void 0 : _.wind)) == null ? void 0 : A.kts) ?? "-") + " kts", 1)
10800
10800
  ])) : D("", !0),
10801
- ((F = a.hoverPoint) == null ? void 0 : F.type) === "history" ? (y(), M("div", Vc, [
10801
+ ((N = a.hoverPoint) == null ? void 0 : N.type) === "history" ? (y(), M("div", Vc, [
10802
10802
  s("label", Zc, m(t.$t("weather.wind")) + " : ", 1),
10803
- s("span", null, m(((Z = a.hoverPoint) == null ? void 0 : Z.kts) ?? "-") + " kts", 1)
10803
+ s("span", null, m(((V = a.hoverPoint) == null ? void 0 : V.kts) ?? "-") + " kts", 1)
10804
10804
  ])) : D("", !0),
10805
10805
  s("div", Yc, [
10806
10806
  s("label", qc, m(t.$t("weather.pressure")) + " : ", 1),
10807
10807
  s("span", null, m(((Y = a.hoverPoint) == null ? void 0 : Y.pressure) ?? "-") + " hPa", 1)
10808
10808
  ]),
10809
- ((V = a.hoverPoint) == null ? void 0 : V.type) === "history" ? (y(), M("div", Xc, [
10809
+ ((Z = a.hoverPoint) == null ? void 0 : Z.type) === "history" ? (y(), M("div", Xc, [
10810
10810
  s("label", $c, m(t.$t("tropical.moveSpeed")) + " : ", 1),
10811
10811
  s("span", null, m(((Q = JSON.parse((ee = a.hoverPoint) == null ? void 0 : ee.movement)) == null ? void 0 : Q.kts) ?? "-") + " kts", 1)
10812
10812
  ])) : D("", !0),
@@ -11021,9 +11021,9 @@ const om = {
11021
11021
  style: { height: "56px" }
11022
11022
  };
11023
11023
  function lm(t, e, o, i, a, r) {
11024
- const l = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"), u = x("VListItemTitle"), h = x("VListItem"), b = x("VList"), w = x("VCardText"), _ = x("VCardActions"), g = x("VCard");
11024
+ const l = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"), g = x("VListItemTitle"), h = x("VListItem"), b = x("VList"), w = x("VCardText"), L = x("VCardActions"), p = x("VCard");
11025
11025
  return y(), M("div", am, [
11026
- p(l, {
11026
+ u(l, {
11027
11027
  text: "",
11028
11028
  height: o.height,
11029
11029
  width: o.width,
@@ -11035,18 +11035,18 @@ function lm(t, e, o, i, a, r) {
11035
11035
  ]),
11036
11036
  _: 1
11037
11037
  }, 8, ["height", "width", "onClick"]),
11038
- a.showDatePicker ? (y(), R(g, {
11038
+ a.showDatePicker ? (y(), R(p, {
11039
11039
  key: 0,
11040
11040
  class: "card-box d-flex flex-column border",
11041
11041
  style: ae(r.getStyle)
11042
11042
  }, {
11043
11043
  default: f(() => [
11044
- p(w, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
11044
+ u(w, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
11045
11045
  default: f(() => [
11046
11046
  s("div", im, [
11047
- p(c, {
11047
+ u(c, {
11048
11048
  modelValue: a.currentDate,
11049
- "onUpdate:modelValue": e[0] || (e[0] = (P) => a.currentDate = P),
11049
+ "onUpdate:modelValue": e[0] || (e[0] = (z) => a.currentDate = z),
11050
11050
  min: a.minDate,
11051
11051
  max: a.maxDate,
11052
11052
  "mode-icon": () => r.currentYear,
@@ -11058,30 +11058,30 @@ function lm(t, e, o, i, a, r) {
11058
11058
  "onUpdate:month": r.handleUpdateMonth
11059
11059
  }, null, 8, ["modelValue", "min", "max", "mode-icon", "onUpdate:month"])
11060
11060
  ]),
11061
- p(n, {
11061
+ u(n, {
11062
11062
  class: "h-100",
11063
11063
  vertical: ""
11064
11064
  }),
11065
11065
  s("div", rm, [
11066
11066
  s("div", sm, m(a.currentTime), 1),
11067
- p(b, { class: "pa-0 flex-1-1-0 scroll" }, {
11067
+ u(b, { class: "pa-0 flex-1-1-0 scroll" }, {
11068
11068
  default: f(() => [
11069
- (y(!0), M(be, null, we(r.hourOptions, (P, T) => (y(), R(h, {
11069
+ (y(!0), M(be, null, we(r.hourOptions, (z, T) => (y(), R(h, {
11070
11070
  key: T,
11071
- value: P,
11071
+ value: z,
11072
11072
  color: "primary",
11073
- active: a.currentTime === P,
11073
+ active: a.currentTime === z,
11074
11074
  rounded: "",
11075
11075
  height: "26",
11076
11076
  "min-height": "26"
11077
11077
  }, {
11078
11078
  default: f(() => [
11079
- p(u, {
11079
+ u(g, {
11080
11080
  class: "text-body-2 font-weight-600 text-center",
11081
- onClick: (O) => a.currentTime = P
11081
+ onClick: (O) => a.currentTime = z
11082
11082
  }, {
11083
11083
  default: f(() => [
11084
- J(m(P), 1)
11084
+ J(m(z), 1)
11085
11085
  ]),
11086
11086
  _: 2
11087
11087
  }, 1032, ["onClick"])
@@ -11095,13 +11095,13 @@ function lm(t, e, o, i, a, r) {
11095
11095
  ]),
11096
11096
  _: 1
11097
11097
  }),
11098
- p(n),
11099
- p(_, {
11098
+ u(n),
11099
+ u(L, {
11100
11100
  class: "justify-end pa-0 pr-4",
11101
11101
  style: { height: "50px" }
11102
11102
  }, {
11103
11103
  default: f(() => [
11104
- p(l, {
11104
+ u(l, {
11105
11105
  size: "small",
11106
11106
  variant: "tonal",
11107
11107
  class: "text-none text-body-2",
@@ -11113,7 +11113,7 @@ function lm(t, e, o, i, a, r) {
11113
11113
  _: 1,
11114
11114
  __: [1]
11115
11115
  }, 8, ["onClick"]),
11116
- p(l, {
11116
+ u(l, {
11117
11117
  size: "small",
11118
11118
  variant: "flat",
11119
11119
  color: "primary",
@@ -11377,10 +11377,10 @@ const nm = {
11377
11377
  (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;
11378
11378
  },
11379
11379
  initTableData(t) {
11380
- var o, i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, F, Z, Y, V, ee, Q, $, ce, le, me, K, ie, pe, de, ue, N, se, ve;
11380
+ var o, i, a, r, l, c, n, g, h, b, w, L, p, z, T, O, I, P, k, v, C, _, A, N, V, Y, Z, ee, Q, $, ce, le, me, K, ie, pe, de, ue, F, se, ve;
11381
11381
  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;
11382
11382
  const e = ((l = Co.pickHourly(t, S(this.form.dateTime))) == null ? void 0 : l[0]) || {};
11383
- 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((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((g = (_ = e == null ? void 0 : e.weather) == null ? void 0 : _.wind) == null ? void 0 : g.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.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((z = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : z.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((C = (v = e == null ? void 0 : e.wave) == null ? void 0 : v.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (A = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : A.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((Z = (F = e == null ? void 0 : e.wave) == null ? void 0 : F.sig) == null ? void 0 : Z.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((V = (Y = e == null ? void 0 : e.wave) == null ? void 0 : Y.wd) == null ? void 0 : V.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((ce = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : ce.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((me = (le = e == null ? void 0 : e.wave) == null ? void 0 : le.swell) == null ? void 0 : me.height, 1) ?? "-", this.currentHourData.swellDir = (ie = (K = e == null ? void 0 : e.wave) == null ? void 0 : K.swell) == null ? void 0 : ie.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((de = (pe = e == null ? void 0 : e.wave) == null ? void 0 : pe.swell) == null ? void 0 : de.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ue = e == null ? void 0 : e.current) == null ? void 0 : ue.speed, 1) ?? "-", this.currentHourData.currentDir = (N = e == null ? void 0 : e.current) == null ? void 0 : N.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((se = e == null ? void 0 : e.current) == null ? void 0 : se.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 = (ve = e == null ? void 0 : e.weather) == null ? void 0 : ve.url;
11383
+ this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((b = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.precip) == null ? void 0 : b.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((p = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : p.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((k = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : k.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((C = (v = e == null ? void 0 : e.wave) == null ? void 0 : v.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (A = (_ = e == null ? void 0 : e.wave) == null ? void 0 : _.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((Z = (Y = e == null ? void 0 : e.wave) == null ? void 0 : Y.wd) == null ? void 0 : Z.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((ce = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : ce.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((me = (le = e == null ? void 0 : e.wave) == null ? void 0 : le.swell) == null ? void 0 : me.height, 1) ?? "-", this.currentHourData.swellDir = (ie = (K = e == null ? void 0 : e.wave) == null ? void 0 : K.swell) == null ? void 0 : ie.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((de = (pe = e == null ? void 0 : e.wave) == null ? void 0 : pe.swell) == null ? void 0 : de.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ue = e == null ? void 0 : e.current) == null ? void 0 : ue.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((se = e == null ? void 0 : e.current) == null ? void 0 : se.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 = (ve = e == null ? void 0 : e.weather) == null ? void 0 : ve.url;
11384
11384
  },
11385
11385
  handleBind() {
11386
11386
  var t, e;
@@ -11489,18 +11489,18 @@ const nm = {
11489
11489
  "aria-hidden": "true"
11490
11490
  }, qm = ["xlink:href"];
11491
11491
  function Xm(t, e, o, i, a, r) {
11492
- const l = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), u = x("VDivider"), h = x("VTextField"), b = x("VCol"), w = x("VRow"), _ = x("DateTimePicker"), g = x("VBtnToggle"), P = x("VCardText"), T = x("VCardActions"), O = x("VForm"), I = x("VCard"), L = x("VIcon");
11492
+ const l = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VDivider"), h = x("VTextField"), b = x("VCol"), w = x("VRow"), L = x("DateTimePicker"), p = x("VBtnToggle"), z = x("VCardText"), T = x("VCardActions"), O = x("VForm"), I = x("VCard"), P = x("VIcon");
11493
11493
  return y(), M("div", cm, [
11494
11494
  s("div", {
11495
11495
  class: "menu-bar-box transition pa-1",
11496
11496
  style: ae({ top: o.top + 174 + "px", right: a.right + "px" })
11497
11497
  }, [
11498
- p(c, {
11498
+ u(c, {
11499
11499
  text: t.$t("spot.spotsMeteo"),
11500
11500
  location: "left"
11501
11501
  }, {
11502
- activator: f(({ props: z }) => [
11503
- p(l, B(z, {
11502
+ activator: f(({ props: k }) => [
11503
+ u(l, B(k, {
11504
11504
  "min-width": "32",
11505
11505
  width: "32",
11506
11506
  height: "32",
@@ -11523,12 +11523,12 @@ function Xm(t, e, o, i, a, r) {
11523
11523
  style: ae({ top: o.top + 174 + "px", right: a.right + 50 + "px" })
11524
11524
  }, {
11525
11525
  default: f(() => [
11526
- p(n, { class: "d-flex justify-space-between align-center" }, {
11526
+ u(n, { class: "d-flex justify-space-between align-center" }, {
11527
11527
  default: f(() => [
11528
11528
  s("div", mm, [
11529
11529
  s("div", dm, m(t.$t("spot.spotWeather")), 1)
11530
11530
  ]),
11531
- p(l, {
11531
+ u(l, {
11532
11532
  icon: "",
11533
11533
  density: "compact",
11534
11534
  variant: "plain",
@@ -11544,15 +11544,15 @@ function Xm(t, e, o, i, a, r) {
11544
11544
  ]),
11545
11545
  _: 1
11546
11546
  }),
11547
- p(u),
11548
- p(O, {
11547
+ u(g),
11548
+ u(O, {
11549
11549
  ref: "spotForm",
11550
11550
  autocomplete: "off",
11551
11551
  class: "form-box",
11552
11552
  onSubmit: je(r.submitForm, ["prevent"])
11553
11553
  }, {
11554
11554
  default: f(() => [
11555
- p(P, { class: "text-body-1 py-1" }, {
11555
+ u(z, { class: "text-body-1 py-1" }, {
11556
11556
  default: f(() => [
11557
11557
  s("div", hm, [
11558
11558
  (y(), M("svg", pm, [
@@ -11562,16 +11562,16 @@ function Xm(t, e, o, i, a, r) {
11562
11562
  ])),
11563
11563
  s("div", null, m(t.$t("spot.lng")), 1)
11564
11564
  ]),
11565
- p(w, { class: "ma-0" }, {
11565
+ u(w, { class: "ma-0" }, {
11566
11566
  default: f(() => [
11567
- p(b, {
11567
+ u(b, {
11568
11568
  cols: "4",
11569
11569
  class: "pa-0 d-flex"
11570
11570
  }, {
11571
11571
  default: f(() => [
11572
- p(h, {
11572
+ u(h, {
11573
11573
  modelValue: a.form.lngDegree,
11574
- "onUpdate:modelValue": e[0] || (e[0] = (z) => a.form.lngDegree = z),
11574
+ "onUpdate:modelValue": e[0] || (e[0] = (k) => a.form.lngDegree = k),
11575
11575
  rules: a.formRules.lngDegree,
11576
11576
  density: "compact",
11577
11577
  variant: "outlined",
@@ -11584,14 +11584,14 @@ function Xm(t, e, o, i, a, r) {
11584
11584
  _: 1,
11585
11585
  __: [10]
11586
11586
  }),
11587
- p(b, {
11587
+ u(b, {
11588
11588
  cols: "6",
11589
11589
  class: "pa-0 d-flex"
11590
11590
  }, {
11591
11591
  default: f(() => [
11592
- p(h, {
11592
+ u(h, {
11593
11593
  modelValue: a.form.lngMinute,
11594
- "onUpdate:modelValue": e[1] || (e[1] = (z) => a.form.lngMinute = z),
11594
+ "onUpdate:modelValue": e[1] || (e[1] = (k) => a.form.lngMinute = k),
11595
11595
  rules: a.formRules.lngMinute,
11596
11596
  label: "",
11597
11597
  density: "compact",
@@ -11605,12 +11605,12 @@ function Xm(t, e, o, i, a, r) {
11605
11605
  _: 1,
11606
11606
  __: [11]
11607
11607
  }),
11608
- p(b, {
11608
+ u(b, {
11609
11609
  cols: "2",
11610
11610
  class: "pa-0"
11611
11611
  }, {
11612
11612
  default: f(() => [
11613
- p(l, {
11613
+ u(l, {
11614
11614
  variant: "outlined",
11615
11615
  density: "compact",
11616
11616
  width: "32",
@@ -11618,7 +11618,7 @@ function Xm(t, e, o, i, a, r) {
11618
11618
  height: "32",
11619
11619
  class: "text-body-1 btn-bg-1",
11620
11620
  style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
11621
- onClick: e[2] || (e[2] = (z) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
11621
+ onClick: e[2] || (e[2] = (k) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
11622
11622
  }, {
11623
11623
  default: f(() => [
11624
11624
  J(m(a.form.lngDirection), 1)
@@ -11639,16 +11639,16 @@ function Xm(t, e, o, i, a, r) {
11639
11639
  ])),
11640
11640
  s("div", null, m(t.$t("spot.lat")), 1)
11641
11641
  ]),
11642
- p(w, { class: "ma-0" }, {
11642
+ u(w, { class: "ma-0" }, {
11643
11643
  default: f(() => [
11644
- p(b, {
11644
+ u(b, {
11645
11645
  cols: "4",
11646
11646
  class: "pa-0 d-flex"
11647
11647
  }, {
11648
11648
  default: f(() => [
11649
- p(h, {
11649
+ u(h, {
11650
11650
  modelValue: a.form.latDegree,
11651
- "onUpdate:modelValue": e[3] || (e[3] = (z) => a.form.latDegree = z),
11651
+ "onUpdate:modelValue": e[3] || (e[3] = (k) => a.form.latDegree = k),
11652
11652
  rules: a.formRules.latDegree,
11653
11653
  label: "",
11654
11654
  density: "compact",
@@ -11664,14 +11664,14 @@ function Xm(t, e, o, i, a, r) {
11664
11664
  _: 1,
11665
11665
  __: [12]
11666
11666
  }),
11667
- p(b, {
11667
+ u(b, {
11668
11668
  cols: "6",
11669
11669
  class: "pa-0 d-flex"
11670
11670
  }, {
11671
11671
  default: f(() => [
11672
- p(h, {
11672
+ u(h, {
11673
11673
  modelValue: a.form.latMinute,
11674
- "onUpdate:modelValue": e[4] || (e[4] = (z) => a.form.latMinute = z),
11674
+ "onUpdate:modelValue": e[4] || (e[4] = (k) => a.form.latMinute = k),
11675
11675
  rules: a.formRules.latMinute,
11676
11676
  label: "",
11677
11677
  density: "compact",
@@ -11685,12 +11685,12 @@ function Xm(t, e, o, i, a, r) {
11685
11685
  _: 1,
11686
11686
  __: [13]
11687
11687
  }),
11688
- p(b, {
11688
+ u(b, {
11689
11689
  cols: "2",
11690
11690
  class: "pa-0"
11691
11691
  }, {
11692
11692
  default: f(() => [
11693
- p(l, {
11693
+ u(l, {
11694
11694
  variant: "outlined",
11695
11695
  density: "compact",
11696
11696
  width: "32",
@@ -11698,7 +11698,7 @@ function Xm(t, e, o, i, a, r) {
11698
11698
  height: "32",
11699
11699
  class: "text-body-1 btn-bg-1",
11700
11700
  style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
11701
- onClick: e[5] || (e[5] = (z) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
11701
+ onClick: e[5] || (e[5] = (k) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
11702
11702
  }, {
11703
11703
  default: f(() => [
11704
11704
  J(m(a.form.latDirection), 1)
@@ -11719,18 +11719,18 @@ function Xm(t, e, o, i, a, r) {
11719
11719
  ])),
11720
11720
  s("div", null, m(t.$t("spot.dateTime")), 1)
11721
11721
  ]),
11722
- p(w, { class: "ma-0 mb-4" }, {
11722
+ u(w, { class: "ma-0 mb-4" }, {
11723
11723
  default: f(() => [
11724
- p(b, {
11724
+ u(b, {
11725
11725
  cols: "12",
11726
11726
  class: "pa-0"
11727
11727
  }, {
11728
11728
  default: f(() => [
11729
- p(_, B({
11729
+ u(L, B({
11730
11730
  "date-time": a.form.dateTime,
11731
11731
  "time-zone": o.timeZone
11732
11732
  }, t.$attrs, {
11733
- onDateTime: e[6] || (e[6] = (z) => a.form.dateTime = z)
11733
+ onDateTime: e[6] || (e[6] = (k) => a.form.dateTime = k)
11734
11734
  }), null, 16, ["date-time", "time-zone"])
11735
11735
  ]),
11736
11736
  _: 1
@@ -11746,16 +11746,16 @@ function Xm(t, e, o, i, a, r) {
11746
11746
  ])),
11747
11747
  s("div", null, m(t.$t("weather.forecastModel")), 1)
11748
11748
  ]),
11749
- p(w, { class: "ma-0 mb-2" }, {
11749
+ u(w, { class: "ma-0 mb-2" }, {
11750
11750
  default: f(() => [
11751
- p(b, {
11751
+ u(b, {
11752
11752
  cols: "12",
11753
11753
  class: "pa-0"
11754
11754
  }, {
11755
11755
  default: f(() => [
11756
- p(g, {
11756
+ u(p, {
11757
11757
  modelValue: a.form.forecastModel,
11758
- "onUpdate:modelValue": e[7] || (e[7] = (z) => a.form.forecastModel = z),
11758
+ "onUpdate:modelValue": e[7] || (e[7] = (k) => a.form.forecastModel = k),
11759
11759
  class: "w-100",
11760
11760
  rounded: "",
11761
11761
  height: "30",
@@ -11763,7 +11763,7 @@ function Xm(t, e, o, i, a, r) {
11763
11763
  group: ""
11764
11764
  }, {
11765
11765
  default: f(() => [
11766
- p(l, {
11766
+ u(l, {
11767
11767
  density: "compact",
11768
11768
  height: "30",
11769
11769
  value: "GFS",
@@ -11777,7 +11777,7 @@ function Xm(t, e, o, i, a, r) {
11777
11777
  _: 1,
11778
11778
  __: [14]
11779
11779
  }, 8, ["class", "color"]),
11780
- p(l, {
11780
+ u(l, {
11781
11781
  density: "compact",
11782
11782
  height: "30",
11783
11783
  class: Ye(["text-none flex-1-1-0", a.form.forecastModel === "ECMWF" ? "" : "btn-border-1 btn-bg-1"]),
@@ -11803,10 +11803,10 @@ function Xm(t, e, o, i, a, r) {
11803
11803
  ]),
11804
11804
  _: 1
11805
11805
  }),
11806
- p(u),
11807
- p(T, { class: "d-flex justify-end align-center ga-4" }, {
11806
+ u(g),
11807
+ u(T, { class: "d-flex justify-end align-center ga-4" }, {
11808
11808
  default: f(() => [
11809
- p(l, {
11809
+ u(l, {
11810
11810
  size: "small",
11811
11811
  variant: "outlined",
11812
11812
  class: "text-none text-body-1 btn-border-1 btn-bg-1",
@@ -11817,7 +11817,7 @@ function Xm(t, e, o, i, a, r) {
11817
11817
  ]),
11818
11818
  _: 1
11819
11819
  }, 8, ["onClick"]),
11820
- p(l, {
11820
+ u(l, {
11821
11821
  ref: "submitSpot",
11822
11822
  loading: a.loading,
11823
11823
  size: "small",
@@ -11847,13 +11847,13 @@ function Xm(t, e, o, i, a, r) {
11847
11847
  style: { width: "490px", "z-index": "9" }
11848
11848
  }, {
11849
11849
  default: f(() => [
11850
- p(n, { class: "d-flex justify-space-between align-center" }, {
11850
+ u(n, { class: "d-flex justify-space-between align-center" }, {
11851
11851
  default: f(() => [
11852
11852
  s("div", zm, [
11853
11853
  e[16] || (e[16] = s("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
11854
11854
  s("div", Lm, m(r.computePosition(a.form || a.currentHourData)), 1)
11855
11855
  ]),
11856
- p(l, {
11856
+ u(l, {
11857
11857
  class: "mr-n2",
11858
11858
  density: "comfortable",
11859
11859
  icon: "",
@@ -11872,14 +11872,14 @@ function Xm(t, e, o, i, a, r) {
11872
11872
  ]),
11873
11873
  _: 1
11874
11874
  }),
11875
- p(u),
11876
- p(P, { class: "text-body-1 px-0 py-1" }, {
11875
+ u(g),
11876
+ u(z, { class: "text-body-1 px-0 py-1" }, {
11877
11877
  default: f(() => {
11878
- var z, v;
11878
+ var k, v;
11879
11879
  return [
11880
11880
  s("div", Pm, [
11881
11881
  s("div", Cm, m(t.$t("time.time")), 1),
11882
- s("div", Tm, m(r.computedTzTime((z = a.currentHourData) == null ? void 0 : z.utc)), 1)
11882
+ s("div", Tm, m(r.computedTzTime((k = a.currentHourData) == null ? void 0 : k.utc)), 1)
11883
11883
  ]),
11884
11884
  s("div", Sm, [
11885
11885
  e[18] || (e[18] = s("div", {
@@ -11910,12 +11910,12 @@ function Xm(t, e, o, i, a, r) {
11910
11910
  }),
11911
11911
  _: 1
11912
11912
  }),
11913
- p(u),
11914
- p(T, { class: "d-flex justify-space-between align-center" }, {
11913
+ u(g),
11914
+ u(T, { class: "d-flex justify-space-between align-center" }, {
11915
11915
  default: f(() => [
11916
- o.followList.some((z) => {
11916
+ o.followList.some((k) => {
11917
11917
  var v, C;
11918
- return ((v = z == null ? void 0 : z.coordinate) == null ? void 0 : v.lng) === a.form.lng && ((C = z == null ? void 0 : z.coordinate) == null ? void 0 : C.lat) === a.form.lat;
11918
+ return ((v = k == null ? void 0 : k.coordinate) == null ? void 0 : v.lng) === a.form.lng && ((C = k == null ? void 0 : k.coordinate) == null ? void 0 : C.lat) === a.form.lat;
11919
11919
  }) ? (y(), R(l, {
11920
11920
  key: 0,
11921
11921
  class: "text-none text-body-1",
@@ -11927,7 +11927,7 @@ function Xm(t, e, o, i, a, r) {
11927
11927
  onClick: je(r.handleCancelFollow, ["stop"])
11928
11928
  }, {
11929
11929
  prepend: f(() => [
11930
- p(L, {
11930
+ u(P, {
11931
11931
  color: "warning",
11932
11932
  style: { "font-size": "20px", "margin-top": "-2px" }
11933
11933
  })
@@ -11947,14 +11947,14 @@ function Xm(t, e, o, i, a, r) {
11947
11947
  onClick: je(r.handleFollow, ["stop"])
11948
11948
  }, {
11949
11949
  prepend: f(() => [
11950
- p(L, { style: { "font-size": "20px", "margin-top": "-2px" } })
11950
+ u(P, { style: { "font-size": "20px", "margin-top": "-2px" } })
11951
11951
  ]),
11952
11952
  default: f(() => [
11953
11953
  J(m(t.$t("actions.follow")) + " ", 1)
11954
11954
  ]),
11955
11955
  _: 1
11956
11956
  }, 8, ["onClick"])),
11957
- p(l, {
11957
+ u(l, {
11958
11958
  height: "32",
11959
11959
  variant: "text",
11960
11960
  density: "compact",
@@ -12075,7 +12075,7 @@ const Km = {
12075
12075
  }
12076
12076
  },
12077
12077
  handleDrag(t) {
12078
- var o, i, a, r, l, c, n, u, h, b;
12078
+ var o, i, a, r, l, c, n, g, h, b;
12079
12079
  const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
12080
12080
  if ((e == null ? void 0 : e.split("-").length) === 2) {
12081
12081
  const w = this.geojson.filter((T) => T.id === e.split("-")[0])[0];
@@ -12083,33 +12083,33 @@ const Km = {
12083
12083
  var O;
12084
12084
  return ((O = T._element) == null ? void 0 : O.id) === e;
12085
12085
  })[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]);
12086
- let g;
12086
+ let p;
12087
12087
  w.features.forEach((T, O) => {
12088
12088
  if (T.geometry.type === "Point" && T.properties.id === e.split("-")[1]) {
12089
- g = O;
12089
+ p = O;
12090
12090
  return;
12091
12091
  }
12092
12092
  });
12093
- const P = w.features.filter((T) => T.geometry.type === "Point");
12093
+ const z = w.features.filter((T) => T.geometry.type === "Point");
12094
12094
  this.handleTmpPointUpdate(
12095
12095
  w,
12096
- P[g - 1],
12097
- { 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: P[g].properties },
12098
- g === P.length - 1 ? void 0 : P[g + 1]
12096
+ z[p - 1],
12097
+ { lng: (g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, lat: (b = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : b.lat, properties: z[p].properties },
12098
+ p === z.length - 1 ? void 0 : z[p + 1]
12099
12099
  );
12100
12100
  }
12101
12101
  },
12102
12102
  handleDragEnd(t) {
12103
- var o, i, a, r, l, c, n, u, h, b;
12103
+ var o, i, a, r, l, c, n, g, h, b;
12104
12104
  const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
12105
12105
  if ((e == null ? void 0 : e.split("-").length) === 2) {
12106
- const w = this.geojson.filter((P) => P.id === e.split("-")[0])[0];
12107
- this.pointMarkers[w.id].filter((P) => {
12106
+ const w = this.geojson.filter((z) => z.id === e.split("-")[0])[0];
12107
+ this.pointMarkers[w.id].filter((z) => {
12108
12108
  var T;
12109
- return ((T = P._element) == null ? void 0 : T.id) === e;
12109
+ return ((T = z._element) == null ? void 0 : T.id) === e;
12110
12110
  })[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]);
12111
- const g = w.features.filter((P) => P.geometry.type === "Point" && P.properties.id === e.split("-")[1])[0];
12112
- 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], w.features = w.features.filter((P) => P.geometry.type === "Point"), this.handlePointUpdate(w);
12111
+ const p = w.features.filter((z) => z.geometry.type === "Point" && z.properties.id === e.split("-")[1])[0];
12112
+ p.geometry.coordinates = [(g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, (b = (h = t.target) == null ? void 0 : h._lngLat) == null ? void 0 : b.lat], w.features = w.features.filter((z) => z.geometry.type === "Point"), this.handlePointUpdate(w);
12113
12113
  }
12114
12114
  },
12115
12115
  handleContextmenu(t) {
@@ -12118,9 +12118,9 @@ const Km = {
12118
12118
  const e = (r = (a = (i = t.originalEvent) == null ? void 0 : i.target) == null ? void 0 : a.parentElement) == null ? void 0 : r.id;
12119
12119
  if ((e == null ? void 0 : e.split("-").length) === 2) {
12120
12120
  const c = this.geojson.filter((n) => n.id === e.split("-")[0])[0].features.filter((n) => n.geometry.type === "Point");
12121
- if (c.length > 2 && c.filter((u) => u.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
12122
- const u = document.createElement("div");
12123
- u.className = "idm-gl4-measure-contextmenu-marker", u.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new xe.Marker(u).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
12121
+ if (c.length > 2 && c.filter((g) => g.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
12122
+ const g = document.createElement("div");
12123
+ g.className = "idm-gl4-measure-contextmenu-marker", g.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new xe.Marker(g).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
12124
12124
  }
12125
12125
  }
12126
12126
  },
@@ -12129,15 +12129,15 @@ const Km = {
12129
12129
  (o = this.contextmenu) == null || o.remove();
12130
12130
  const e = t.originalEvent.target.className;
12131
12131
  if (e === "marker-close") {
12132
- 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];
12133
- 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();
12132
+ const n = (a = (i = t.originalEvent) == null ? void 0 : i.srcElement) == null ? void 0 : a.id, g = this.geojson.filter((h) => h.id === n)[0];
12133
+ g && this.handleClear(g, !0), this.geojson = this.geojson.filter((h) => h.id !== n), !this.toggle && !((r = this.geojson) != null && r.some((h) => h.closed)) && this.handleUnbind();
12134
12134
  } else if (e === "del-point") {
12135
- 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];
12136
- u.features = u.features.filter((h) => h.geometry.type === "Point" && h.properties.id !== n[1]), this.handlePointUpdate(u);
12135
+ const n = (c = (l = t.originalEvent.target.id) == null ? void 0 : l.replace("del-", "")) == null ? void 0 : c.split("-"), g = this.geojson.filter((h) => h.id === n[0])[0];
12136
+ g.features = g.features.filter((h) => h.geometry.type === "Point" && h.properties.id !== n[1]), this.handlePointUpdate(g);
12137
12137
  } else if (e !== "marker-label" && this.toggle) {
12138
12138
  let n = this.geojson.at(-1);
12139
12139
  n || (n = H.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(n)), n.features = n.features.filter((h) => h.geometry.type === "Point");
12140
- const u = H.feature(
12140
+ const g = H.feature(
12141
12141
  {
12142
12142
  type: "Point",
12143
12143
  coordinates: [t.lngLat.lng, t.lngLat.lat]
@@ -12148,7 +12148,7 @@ const Km = {
12148
12148
  sumLabel: "Start"
12149
12149
  }
12150
12150
  );
12151
- n.features.push(u), this.handlePointUpdate(n);
12151
+ n.features.push(g), this.handlePointUpdate(n);
12152
12152
  }
12153
12153
  },
12154
12154
  handlePointUpdate(t) {
@@ -12157,14 +12157,14 @@ const Km = {
12157
12157
  let o = 0;
12158
12158
  const i = [];
12159
12159
  for (let a = 1; a < e.length; a++) {
12160
- 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 = We.calculateDistance(n, u, c.mode === "RL", 4), b = We.calculateBearing(n, u, c.mode === "RL", 2);
12160
+ const r = e[a - 1], l = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, g = { lng: l.geometry.coordinates[0], lat: l.geometry.coordinates[1] }, h = We.calculateDistance(n, g, c.mode === "RL", 4), b = We.calculateBearing(n, g, c.mode === "RL", 2);
12161
12161
  o = X.roundPrecision(o + h, 4);
12162
12162
  let w;
12163
- c.mode === "RL" ? w = X.convertToMonotonicLng([n, u]) : w = X.convertToMonotonicLng(We.interpolateCoordinates(n, u, 200));
12164
- const _ = H.lineString(w.map((P) => [P.lng, P.lat]));
12165
- _.properties.dist = h, _.properties.bearing = b, _.properties.total = o, _.properties.name = "Line " + this.currentLineIndex, i.push(_);
12166
- const g = e[a];
12167
- g.properties.totalDist = X.roundPrecision((c.totalDist ? c.totalDist : 0) + h, 4), g.properties.sumLabel = g.properties.totalDist + " nm";
12163
+ c.mode === "RL" ? w = X.convertToMonotonicLng([n, g]) : w = X.convertToMonotonicLng(We.interpolateCoordinates(n, g, 200));
12164
+ const L = H.lineString(w.map((z) => [z.lng, z.lat]));
12165
+ L.properties.dist = h, L.properties.bearing = b, L.properties.total = o, L.properties.name = "Line " + this.currentLineIndex, i.push(L);
12166
+ const p = e[a];
12167
+ p.properties.totalDist = X.roundPrecision((c.totalDist ? c.totalDist : 0) + h, 4), p.properties.sumLabel = p.properties.totalDist + " nm";
12168
12168
  }
12169
12169
  e.push(...i), t.total = o;
12170
12170
  }
@@ -12174,19 +12174,19 @@ const Km = {
12174
12174
  const a = H.featureCollection([]);
12175
12175
  let r, l;
12176
12176
  if (e) {
12177
- const n = e.properties, u = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, h = { lng: o.lng, lat: o.lat };
12178
- r = We.calculateDistance(u, h, n.mode === "RL", 4), l = We.calculateBearing(u, h, n.mode === "RL", 2);
12177
+ const n = e.properties, g = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, h = { lng: o.lng, lat: o.lat };
12178
+ r = We.calculateDistance(g, h, n.mode === "RL", 4), l = We.calculateBearing(g, h, n.mode === "RL", 2);
12179
12179
  let b;
12180
- n.mode === "RL" ? b = X.convertToMonotonicLng([u, h]) : b = X.convertToMonotonicLng(We.interpolateCoordinates(u, h, 200));
12181
- const w = H.lineString(b.map((_) => [_.lng, _.lat]));
12180
+ n.mode === "RL" ? b = X.convertToMonotonicLng([g, h]) : b = X.convertToMonotonicLng(We.interpolateCoordinates(g, h, 200));
12181
+ const w = H.lineString(b.map((L) => [L.lng, L.lat]));
12182
12182
  w.properties.dist = r, w.properties.bearing = l, a.features.push(w);
12183
12183
  }
12184
12184
  if (i) {
12185
- const n = o.properties, u = o, h = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
12186
- r = We.calculateDistance(u, h, n.mode === "RL", 4), l = We.calculateBearing(u, h, n.mode === "RL", 2);
12185
+ const n = o.properties, g = o, h = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
12186
+ r = We.calculateDistance(g, h, n.mode === "RL", 4), l = We.calculateBearing(g, h, n.mode === "RL", 2);
12187
12187
  let b;
12188
- n.mode === "RL" ? b = X.convertToMonotonicLng([u, h]) : b = X.convertToMonotonicLng(We.interpolateCoordinates(u, h, 200));
12189
- const w = H.lineString(b.map((_) => [_.lng, _.lat]));
12188
+ n.mode === "RL" ? b = X.convertToMonotonicLng([g, h]) : b = X.convertToMonotonicLng(We.interpolateCoordinates(g, h, 200));
12189
+ const w = H.lineString(b.map((L) => [L.lng, L.lat]));
12190
12190
  w.properties.dist = r, w.properties.bearing = l, a.features.push(w);
12191
12191
  }
12192
12192
  this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(a) : this.map.addSource(this.tmpSource, {
@@ -12318,21 +12318,21 @@ const Km = {
12318
12318
  for (const c of l) {
12319
12319
  const n = document.createElement("div");
12320
12320
  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>';
12321
- const u = new xe.Marker({ element: n, draggable: !0, contextmenu: !0 }).setLngLat(c.geometry.coordinates).addTo(this.map);
12322
- 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];
12321
+ const g = new xe.Marker({ element: n, draggable: !0, contextmenu: !0 }).setLngLat(c.geometry.coordinates).addTo(this.map);
12322
+ g.on("drag", this.handleDrag), g.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(g) : this.pointMarkers[t.id] = [g];
12323
12323
  }
12324
12324
  if (t.closed) {
12325
- const c = l.at(-1), u = t.features.filter((b) => b.geometry.type === "LineString").at(-1), h = document.createElement("div");
12326
- 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 xe.Marker(h).setOffset([0, -30]).setLngLat(c.geometry.coordinates).addTo(this.map);
12325
+ const c = l.at(-1), g = t.features.filter((b) => b.geometry.type === "LineString").at(-1), h = document.createElement("div");
12326
+ h.className = "idm-gl4-measure-summary-marker", h.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${g.properties.name}</div>`, this.closeMarkers[t.id] = new xe.Marker(h).setOffset([0, -30]).setLngLat(c.geometry.coordinates).addTo(this.map);
12327
12327
  }
12328
12328
  }
12329
12329
  },
12330
12330
  handleClear(t, e = !0) {
12331
- var l, c, n, u, h, b, w, _, g, P;
12331
+ var l, c, n, g, h, b, w, L, p, z;
12332
12332
  const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
12333
- (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, (w = this.pointMarkers[t.id]) == null || w.forEach((T) => {
12333
+ (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), (g = this.map) != null && g.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, (w = this.pointMarkers[t.id]) == null || w.forEach((T) => {
12334
12334
  T == null || T.remove();
12335
- }), this.pointMarkers[t.id] = [], (_ = this.tipMarker) == null || _.remove(), this.tipMarker = void 0, e && ((g = this.map) != null && g.getSource(o)) && this.map.removeSource(o), e && ((P = this.map) != null && P.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
12335
+ }), this.pointMarkers[t.id] = [], (L = this.tipMarker) == null || L.remove(), this.tipMarker = void 0, e && ((p = this.map) != null && p.getSource(o)) && this.map.removeSource(o), e && ((z = this.map) != null && z.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
12336
12336
  }
12337
12337
  }
12338
12338
  }, Jm = { class: "idm-gl4-measure" };
@@ -12343,12 +12343,12 @@ function Qm(t, e, o, i, a, r) {
12343
12343
  class: "menu-bar-box transition pa-1",
12344
12344
  style: ae({ top: o.top + 214 + "px", right: a.right + "px" })
12345
12345
  }, [
12346
- p(c, {
12346
+ u(c, {
12347
12347
  text: t.$t("measure.measure"),
12348
12348
  location: "left"
12349
12349
  }, {
12350
12350
  activator: f(({ props: n }) => [
12351
- p(l, B(n, {
12351
+ u(l, B(n, {
12352
12352
  "min-width": "32",
12353
12353
  width: "32",
12354
12354
  height: "32",
@@ -12498,26 +12498,26 @@ const td = {
12498
12498
  class: "list d-flex flex-wrap pa-2 rounded ga-2"
12499
12499
  }, nd = ["onClick"], cd = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, md = { class: "text-body-1" };
12500
12500
  function dd(t, e, o, i, a, r) {
12501
- const l = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"), u = x("VList"), h = x("VMenu"), b = x("VBtn"), w = x("VDivider"), _ = x("VTooltip");
12501
+ const l = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"), g = x("VList"), h = x("VMenu"), b = x("VBtn"), w = x("VDivider"), L = x("VTooltip");
12502
12502
  return y(), M("div", od, [
12503
12503
  s("div", {
12504
12504
  class: "timeline-box px-2 d-flex justify-start align-center rounded",
12505
12505
  style: ae({ right: a.right + 146 + "px", bottom: Object.values(a.show).includes(!0) ? "10px" : "-100px" })
12506
12506
  }, [
12507
12507
  s("div", ad, [
12508
- p(l, B({
12508
+ u(l, B({
12509
12509
  ref: "dateTimePicker",
12510
12510
  "date-time": a.currentDateTimeZ,
12511
12511
  "time-zone": a.timeZone,
12512
12512
  "day-about": a.dayAbout,
12513
12513
  "interval-hour": a.intervalHour
12514
12514
  }, t.$attrs, {
12515
- onCurrentTimestamp: e[0] || (e[0] = (g) => a.currentTimestamp = g),
12516
- onCurrentRealTime: e[1] || (e[1] = (g) => a.currentRealTime = g),
12517
- onMinTimestamp: e[2] || (e[2] = (g) => a.minTimestamp = g),
12518
- onMaxTimestamp: e[3] || (e[3] = (g) => a.maxTimestamp = g)
12515
+ onCurrentTimestamp: e[0] || (e[0] = (p) => a.currentTimestamp = p),
12516
+ onCurrentRealTime: e[1] || (e[1] = (p) => a.currentRealTime = p),
12517
+ onMinTimestamp: e[2] || (e[2] = (p) => a.minTimestamp = p),
12518
+ onMaxTimestamp: e[3] || (e[3] = (p) => a.maxTimestamp = p)
12519
12519
  }), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
12520
- p(b, {
12520
+ u(b, {
12521
12521
  text: "",
12522
12522
  height: "30",
12523
12523
  class: "text-none elevation-0 btn-border-1 btn-bg-1 text-body-1",
@@ -12525,28 +12525,28 @@ function dd(t, e, o, i, a, r) {
12525
12525
  }, {
12526
12526
  default: f(() => [
12527
12527
  J(m(a.intervalHour) + " h ", 1),
12528
- p(h, { activator: "parent" }, {
12528
+ u(h, { activator: "parent" }, {
12529
12529
  default: f(() => [
12530
- p(u, { class: "pa-1" }, {
12530
+ u(g, { class: "pa-1" }, {
12531
12531
  default: f(() => [
12532
- (y(!0), M(be, null, we(a.intervalOptions, (g, P) => (y(), R(n, {
12533
- key: P,
12534
- value: g,
12535
- variant: a.intervalHour === g ? "tonal" : "text",
12532
+ (y(!0), M(be, null, we(a.intervalOptions, (p, z) => (y(), R(n, {
12533
+ key: z,
12534
+ value: p,
12535
+ variant: a.intervalHour === p ? "tonal" : "text",
12536
12536
  color: "primary",
12537
12537
  rounded: "",
12538
- active: a.intervalHour === g,
12538
+ active: a.intervalHour === p,
12539
12539
  height: "30",
12540
12540
  "min-height": "30",
12541
12541
  "min-width": "30",
12542
12542
  class: "pa-0 text-center text-body-1"
12543
12543
  }, {
12544
12544
  default: f(() => [
12545
- p(c, {
12546
- onClick: (T) => a.intervalHour = g
12545
+ u(c, {
12546
+ onClick: (T) => a.intervalHour = p
12547
12547
  }, {
12548
12548
  default: f(() => [
12549
- J(m(g) + "h", 1)
12549
+ J(m(p) + "h", 1)
12550
12550
  ]),
12551
12551
  _: 2
12552
12552
  }, 1032, ["onClick"])
@@ -12563,13 +12563,13 @@ function dd(t, e, o, i, a, r) {
12563
12563
  _: 1
12564
12564
  })
12565
12565
  ]),
12566
- p(w, {
12566
+ u(w, {
12567
12567
  vertical: "",
12568
12568
  class: "mx-2 my-3",
12569
12569
  style: { height: "16px" }
12570
12570
  }),
12571
12571
  s("div", id, [
12572
- p(b, {
12572
+ u(b, {
12573
12573
  icon: "",
12574
12574
  size: "small",
12575
12575
  density: "comfortable",
@@ -12582,7 +12582,7 @@ function dd(t, e, o, i, a, r) {
12582
12582
  _: 1,
12583
12583
  __: [10]
12584
12584
  }, 8, ["onClick"]),
12585
- p(b, {
12585
+ u(b, {
12586
12586
  icon: "",
12587
12587
  size: "small",
12588
12588
  density: "comfortable",
@@ -12622,7 +12622,7 @@ function dd(t, e, o, i, a, r) {
12622
12622
  _: 1,
12623
12623
  __: [13]
12624
12624
  }, 8, ["onClick"])),
12625
- p(b, {
12625
+ u(b, {
12626
12626
  icon: "",
12627
12627
  size: "small",
12628
12628
  density: "comfortable",
@@ -12636,22 +12636,22 @@ function dd(t, e, o, i, a, r) {
12636
12636
  __: [14]
12637
12637
  }, 8, ["onClick"])
12638
12638
  ]),
12639
- p(w, {
12639
+ u(w, {
12640
12640
  vertical: "",
12641
12641
  class: "mx-2 my-3",
12642
12642
  style: { height: "16px" }
12643
12643
  }),
12644
12644
  s("div", rd, [
12645
- p(_, {
12645
+ u(L, {
12646
12646
  text: t.$t("weather.windBarbs"),
12647
12647
  location: "top"
12648
12648
  }, {
12649
- activator: f(({ props: g }) => {
12650
- var P, T;
12649
+ activator: f(({ props: p }) => {
12650
+ var z, T;
12651
12651
  return [
12652
- p(b, B(g, {
12652
+ u(b, B(p, {
12653
12653
  class: "pa-1 d-flex",
12654
- color: (P = o.weatherCheckList) != null && P.includes("wind") ? "primary" : "",
12654
+ color: (z = o.weatherCheckList) != null && z.includes("wind") ? "primary" : "",
12655
12655
  variant: (T = o.weatherCheckList) != null && T.includes("wind") ? "elevated" : "text",
12656
12656
  height: "24",
12657
12657
  width: "24",
@@ -12668,16 +12668,16 @@ function dd(t, e, o, i, a, r) {
12668
12668
  }),
12669
12669
  _: 1
12670
12670
  }, 8, ["text"]),
12671
- p(_, {
12671
+ u(L, {
12672
12672
  text: t.$t("weather.sigWaveHeight"),
12673
12673
  location: "top"
12674
12674
  }, {
12675
- activator: f(({ props: g }) => {
12676
- var P, T;
12675
+ activator: f(({ props: p }) => {
12676
+ var z, T;
12677
12677
  return [
12678
- p(b, B(g, {
12678
+ u(b, B(p, {
12679
12679
  class: "pa-1 d-flex",
12680
- color: (P = o.weatherCheckList) != null && P.includes("sig-wave-height") ? "primary" : "",
12680
+ color: (z = o.weatherCheckList) != null && z.includes("sig-wave-height") ? "primary" : "",
12681
12681
  variant: (T = o.weatherCheckList) != null && T.includes("sig-wave-height") ? "elevated" : "text",
12682
12682
  height: "24",
12683
12683
  width: "24",
@@ -12685,7 +12685,7 @@ function dd(t, e, o, i, a, r) {
12685
12685
  onClick: e[5] || (e[5] = (O) => r.handleClickFastWeather("sig-wave-height"))
12686
12686
  }), {
12687
12687
  default: f(() => [
12688
- s("i", B(g, { class: "iconfont icon-a-WaveHeight" }), null, 16)
12688
+ s("i", B(p, { class: "iconfont icon-a-WaveHeight" }), null, 16)
12689
12689
  ]),
12690
12690
  _: 2
12691
12691
  }, 1040, ["color", "variant"])
@@ -12693,16 +12693,16 @@ function dd(t, e, o, i, a, r) {
12693
12693
  }),
12694
12694
  _: 1
12695
12695
  }, 8, ["text"]),
12696
- p(_, {
12696
+ u(L, {
12697
12697
  text: t.$t("weather.currentDirection"),
12698
12698
  location: "top"
12699
12699
  }, {
12700
- activator: f(({ props: g }) => {
12701
- var P, T;
12700
+ activator: f(({ props: p }) => {
12701
+ var z, T;
12702
12702
  return [
12703
- p(b, B(g, {
12703
+ u(b, B(p, {
12704
12704
  class: "pa-1 d-flex",
12705
- color: (P = o.weatherCheckList) != null && P.includes("current-direction") ? "primary" : "",
12705
+ color: (z = o.weatherCheckList) != null && z.includes("current-direction") ? "primary" : "",
12706
12706
  variant: (T = o.weatherCheckList) != null && T.includes("current-direction") ? "elevated" : "text",
12707
12707
  height: "24",
12708
12708
  width: "24",
@@ -12710,7 +12710,7 @@ function dd(t, e, o, i, a, r) {
12710
12710
  onClick: e[6] || (e[6] = (O) => r.handleClickFastWeather("current-direction"))
12711
12711
  }), {
12712
12712
  default: f(() => [
12713
- s("i", B(g, { class: "iconfont icon-Current" }), null, 16)
12713
+ s("i", B(p, { class: "iconfont icon-Current" }), null, 16)
12714
12714
  ]),
12715
12715
  _: 2
12716
12716
  }, 1040, ["color", "variant"])
@@ -12718,12 +12718,12 @@ function dd(t, e, o, i, a, r) {
12718
12718
  }),
12719
12719
  _: 1
12720
12720
  }, 8, ["text"]),
12721
- p(_, {
12721
+ u(L, {
12722
12722
  text: t.$t("weather.weatherLayers"),
12723
12723
  location: "top"
12724
12724
  }, {
12725
- activator: f(({ props: g }) => [
12726
- p(b, B(g, {
12725
+ activator: f(({ props: p }) => [
12726
+ u(b, B(p, {
12727
12727
  class: "pa-1 d-flex",
12728
12728
  variant: "text",
12729
12729
  height: "24",
@@ -12732,7 +12732,7 @@ function dd(t, e, o, i, a, r) {
12732
12732
  onClick: r.handleClickFastMore
12733
12733
  }), {
12734
12734
  default: f(() => [
12735
- s("i", B(g, { class: "iconfont icon-dots-align" }), null, 16)
12735
+ s("i", B(p, { class: "iconfont icon-dots-align" }), null, 16)
12736
12736
  ]),
12737
12737
  _: 2
12738
12738
  }, 1040, ["onClick"])
@@ -12740,18 +12740,18 @@ function dd(t, e, o, i, a, r) {
12740
12740
  _: 1
12741
12741
  }, 8, ["text"])
12742
12742
  ]),
12743
- p(w, {
12743
+ u(w, {
12744
12744
  vertical: "",
12745
12745
  class: "mx-2 mr-3 my-3",
12746
12746
  style: { height: "16px" }
12747
12747
  }),
12748
12748
  s("div", sd, [
12749
- p(b, {
12749
+ u(b, {
12750
12750
  text: "",
12751
12751
  height: "30",
12752
12752
  class: "px-2 elevation-0 text-body-1 btn-border-2 btn-bg-2",
12753
12753
  color: a.source === "GFS" ? "primary" : "",
12754
- onClick: e[7] || (e[7] = (g) => a.source = "GFS")
12754
+ onClick: e[7] || (e[7] = (p) => a.source = "GFS")
12755
12755
  }, {
12756
12756
  default: f(() => e[16] || (e[16] = [
12757
12757
  J("NOAA", -1)
@@ -12759,12 +12759,12 @@ function dd(t, e, o, i, a, r) {
12759
12759
  _: 1,
12760
12760
  __: [16]
12761
12761
  }, 8, ["color"]),
12762
- p(b, {
12762
+ u(b, {
12763
12763
  text: "",
12764
12764
  height: "30",
12765
12765
  class: "px-2 elevation-0 text-body-1 btn-border-2 btn-bg-2",
12766
12766
  color: a.source === "ECMWF" ? "primary" : "",
12767
- onClick: e[8] || (e[8] = (g) => a.source = "ECMWF")
12767
+ onClick: e[8] || (e[8] = (p) => a.source = "ECMWF")
12768
12768
  }, {
12769
12769
  default: f(() => e[17] || (e[17] = [
12770
12770
  J("ECMWF", -1)
@@ -12779,20 +12779,20 @@ function dd(t, e, o, i, a, r) {
12779
12779
  style: ae({ right: a.right + "px" })
12780
12780
  }, [
12781
12781
  a.showTimezone ? (y(), M("div", ld, [
12782
- (y(!0), M(be, null, we(a.offsets, (g) => (y(), M("div", {
12783
- key: g,
12782
+ (y(!0), M(be, null, we(a.offsets, (p) => (y(), M("div", {
12783
+ key: p,
12784
12784
  class: "item rounded text-body-2 hover-active",
12785
- onClick: (P) => a.timeZone = g
12786
- }, m(g < 0 ? g : "+" + g), 9, nd))), 128))
12785
+ onClick: (z) => a.timeZone = p
12786
+ }, m(p < 0 ? p : "+" + p), 9, nd))), 128))
12787
12787
  ])) : D("", !0),
12788
12788
  s("div", cd, [
12789
- p(b, {
12789
+ u(b, {
12790
12790
  text: "",
12791
12791
  variant: "flat",
12792
12792
  height: "28",
12793
12793
  class: "pa-1 text-body-1",
12794
12794
  color: "primary",
12795
- onClick: e[9] || (e[9] = (g) => a.showTimezone = !a.showTimezone)
12795
+ onClick: e[9] || (e[9] = (p) => a.showTimezone = !a.showTimezone)
12796
12796
  }, {
12797
12797
  default: f(() => [
12798
12798
  J(" UTC " + m(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
@@ -12868,9 +12868,9 @@ const hd = /* @__PURE__ */ q(td, [["render", dd]]), pd = {
12868
12868
  class: "map-gl4-home"
12869
12869
  };
12870
12870
  function gd(t, e, o, i, a, r) {
12871
- const l = x("IdmOtherLayer"), c = x("IdmWeatherLayer"), n = x("IdmTropicals"), u = x("IdmMeasure"), h = x("IdmSpot"), b = x("IdmBottomBar");
12871
+ const l = x("IdmOtherLayer"), c = x("IdmWeatherLayer"), n = x("IdmTropicals"), g = x("IdmMeasure"), h = x("IdmSpot"), b = x("IdmBottomBar");
12872
12872
  return y(), M("div", ud, [
12873
- p(l, B({
12873
+ u(l, B({
12874
12874
  ref: "idmOtherLayers",
12875
12875
  token: o.token,
12876
12876
  "default-meteo-token": a.defaultMeteoToken,
@@ -12885,7 +12885,7 @@ function gd(t, e, o, i, a, r) {
12885
12885
  a.otherCheckList = w, a.layerVersion = a.layerVersion + 1;
12886
12886
  })
12887
12887
  }), null, 16, ["token", "default-meteo-token", "map", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
12888
- p(c, B({
12888
+ u(c, B({
12889
12889
  ref: "idmWeatherLayers",
12890
12890
  map: o.map,
12891
12891
  "before-layer": "empty-layer-2",
@@ -12903,7 +12903,7 @@ function gd(t, e, o, i, a, r) {
12903
12903
  a.weatherCheckList = w, a.layerVersion = a.layerVersion + 1;
12904
12904
  })
12905
12905
  }), null, 16, ["map", "token", "default-meteo-token", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
12906
- p(n, B({
12906
+ u(n, B({
12907
12907
  map: o.map,
12908
12908
  token: o.token,
12909
12909
  "default-meteo-token": a.defaultMeteoToken,
@@ -12914,11 +12914,11 @@ function gd(t, e, o, i, a, r) {
12914
12914
  "forecast-model": o.forecastModel,
12915
12915
  "map-feather": o.mapFeather
12916
12916
  }, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "tropicals", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
12917
- p(u, B({
12917
+ u(g, B({
12918
12918
  map: o.map,
12919
12919
  "map-feather": o.mapFeather
12920
12920
  }, t.$attrs), null, 16, ["map", "map-feather"]),
12921
- p(h, B({
12921
+ u(h, B({
12922
12922
  ref: "idmSpot",
12923
12923
  map: o.map,
12924
12924
  token: o.token,
@@ -12927,7 +12927,7 @@ function gd(t, e, o, i, a, r) {
12927
12927
  "forecast-model": o.forecastModel,
12928
12928
  "map-feather": o.mapFeather
12929
12929
  }, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "gateway", "forecast-model", "map-feather"]),
12930
- p(b, B({
12930
+ u(b, B({
12931
12931
  ref: "idmBottomBar",
12932
12932
  "forecast-model": o.forecastModel,
12933
12933
  "weather-check-list": a.weatherCheckList,
@@ -12944,7 +12944,7 @@ class yd {
12944
12944
  he(this, "hi");
12945
12945
  he(this, "td");
12946
12946
  he(this, "windy");
12947
- var o, i, a, r, l, c, n, u, h, b, w, _, g, P, T, O, I, L, z, v, C, k, A, F, Z, Y, V, ee, Q, $, ce, le, me, K, ie, pe, de, ue, N, se, ve, Pe, Ce, De, Ae, Re, ke, G, te, Fe, Me, ge, Te, U, fe, oe, re, Oe, He, Ge, E, ye, Ie, Be, Ee, j, Ue, W, qe, Xe, $e, _e, Ke, Je, Qe, 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, Ut, Wt, Vt, Zt, Yt, qt, Xt, Kt, Jt, Qt, eo, to, oo, ao, io, ro, so, lo, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Ro, Oo, Bo, Eo, jo, No, Fo, Ho, Go, Uo, Wo, Vo, Zo, Yo, qo, Xo, $o, Ko, Jo, Qo, 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, Ua, Wa, Va;
12947
+ var o, i, a, r, l, c, n, g, h, b, w, L, p, z, T, O, I, P, k, v, C, _, A, N, V, Y, Z, ee, Q, $, ce, le, me, K, ie, pe, de, ue, F, se, ve, Pe, Ce, De, Ae, Re, ke, G, te, Fe, Me, ge, Te, U, fe, oe, re, Oe, He, Ge, E, ye, Ie, Be, Ee, j, Ue, W, qe, Xe, $e, _e, Ke, Je, Qe, 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, Ut, Wt, Vt, Zt, Yt, qt, Xt, Kt, Jt, Qt, eo, to, oo, ao, io, ro, so, lo, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Ro, Oo, Bo, Eo, jo, No, Fo, Ho, Go, Uo, Wo, Vo, Zo, Yo, qo, Xo, $o, Ko, Jo, Qo, 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, Ua, Wa, Va;
12948
12948
  this.i4 = {
12949
12949
  source: {
12950
12950
  type: "raster",
@@ -31588,23 +31588,23 @@ class yd {
31588
31588
  (i = (o = this.originStyle) == null ? void 0 : o.light.layers) == null ? void 0 : i.find((d) => d.id === "land"),
31589
31589
  (r = (a = this.originStyle) == null ? void 0 : a.light.layers) == null ? void 0 : r.find((d) => d.id === "water"),
31590
31590
  (c = (l = this.originStyle) == null ? void 0 : l.light.layers) == null ? void 0 : c.find((d) => d.id === "ice-area-fill"),
31591
- (u = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : u.find((d) => d.id === "ice-area-line"),
31591
+ (g = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : g.find((d) => d.id === "ice-area-line"),
31592
31592
  (b = (h = this.originStyle) == null ? void 0 : h.light.layers) == null ? void 0 : b.find((d) => d.id === "loadlines-label"),
31593
- (_ = (w = this.originStyle) == null ? void 0 : w.light.layers) == null ? void 0 : _.find((d) => d.id === "loadlines-fill"),
31594
- (P = (g = this.originStyle) == null ? void 0 : g.light.layers) == null ? void 0 : P.find((d) => d.id === "empty-layer-0"),
31593
+ (L = (w = this.originStyle) == null ? void 0 : w.light.layers) == null ? void 0 : L.find((d) => d.id === "loadlines-fill"),
31594
+ (z = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : z.find((d) => d.id === "empty-layer-0"),
31595
31595
  (O = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : O.find((d) => d.id === "empty-layer-1"),
31596
- (L = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : L.find((d) => d.id === "country-boundaries"),
31597
- (v = (z = this.originStyle) == null ? void 0 : z.light.layers) == null ? void 0 : v.find((d) => d.id === "water-outline"),
31598
- (k = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : k.find((d) => d.id === "water-outline2"),
31599
- (F = (A = this.originStyle) == null ? void 0 : A.light.layers) == null ? void 0 : F.find((d) => d.id === "empty-layer-2"),
31600
- (Y = (Z = this.originStyle) == null ? void 0 : Z.light.layers) == null ? void 0 : Y.find((d) => d.id === "water-line-label"),
31601
- (ee = (V = this.originStyle) == null ? void 0 : V.light.layers) == null ? void 0 : ee.find((d) => d.id === "water-point-label"),
31596
+ (P = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : P.find((d) => d.id === "country-boundaries"),
31597
+ (v = (k = this.originStyle) == null ? void 0 : k.light.layers) == null ? void 0 : v.find((d) => d.id === "water-outline"),
31598
+ (_ = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : _.find((d) => d.id === "water-outline2"),
31599
+ (N = (A = this.originStyle) == null ? void 0 : A.light.layers) == null ? void 0 : N.find((d) => d.id === "empty-layer-2"),
31600
+ (Y = (V = this.originStyle) == null ? void 0 : V.light.layers) == null ? void 0 : Y.find((d) => d.id === "water-line-label"),
31601
+ (ee = (Z = this.originStyle) == null ? void 0 : Z.light.layers) == null ? void 0 : ee.find((d) => d.id === "water-point-label"),
31602
31602
  ($ = (Q = this.originStyle) == null ? void 0 : Q.light.layers) == null ? void 0 : $.find((d) => d.id === "world-12nm-v4-20231025"),
31603
31603
  (le = (ce = this.originStyle) == null ? void 0 : ce.light.layers) == null ? void 0 : le.find((d) => d.id === "ne-10m-outline"),
31604
31604
  (K = (me = this.originStyle) == null ? void 0 : me.light.layers) == null ? void 0 : K.find((d) => d.id === "ne-10m-label"),
31605
31605
  (pe = (ie = this.originStyle) == null ? void 0 : ie.light.layers) == null ? void 0 : pe.find((d) => d.id === "china-route-line"),
31606
31606
  (ue = (de = this.originStyle) == null ? void 0 : de.light.layers) == null ? void 0 : ue.find((d) => d.id === "china-route-fill"),
31607
- (se = (N = this.originStyle) == null ? void 0 : N.light.layers) == null ? void 0 : se.find((d) => d.id === "china-route-label"),
31607
+ (se = (F = this.originStyle) == null ? void 0 : F.light.layers) == null ? void 0 : se.find((d) => d.id === "china-route-label"),
31608
31608
  (Pe = (ve = this.originStyle) == null ? void 0 : ve.light.layers) == null ? void 0 : Pe.find((d) => d.id === "admin-0-boundary-bg"),
31609
31609
  (De = (Ce = this.originStyle) == null ? void 0 : Ce.light.layers) == null ? void 0 : De.find((d) => d.id === "admin-0-boundary"),
31610
31610
  (Re = (Ae = this.originStyle) == null ? void 0 : Ae.light.layers) == null ? void 0 : Re.find((d) => d.id === "admin-0-boundary-disputed"),
@@ -31913,7 +31913,7 @@ function kd(t, e, o, i, a, r) {
31913
31913
  style: ae({ top: o.top + 268 + "px", right: a.right + "px" })
31914
31914
  }, [
31915
31915
  s("div", xd, [
31916
- p(l, {
31916
+ u(l, {
31917
31917
  "min-width": "32",
31918
31918
  width: "32",
31919
31919
  height: "32",
@@ -31927,7 +31927,7 @@ function kd(t, e, o, i, a, r) {
31927
31927
  __: [0]
31928
31928
  }, 8, ["onClick"]),
31929
31929
  s("div", vd, m(a.zoom ? Math.floor(a.zoom) : 0), 1),
31930
- p(l, {
31930
+ u(l, {
31931
31931
  "min-width": "32",
31932
31932
  width: "32",
31933
31933
  height: "32",
@@ -32138,9 +32138,9 @@ const Ld = {
32138
32138
  ref: "idmGl4DatePicker"
32139
32139
  }, Cd = { class: "pa-0" };
32140
32140
  function Td(t, e, o, i, a, r) {
32141
- const l = x("VBtn"), c = x("VDatePicker"), n = x("VCardText"), u = x("VDivider"), h = x("VCardActions"), b = x("VCard");
32141
+ const l = x("VBtn"), c = x("VDatePicker"), n = x("VCardText"), g = x("VDivider"), h = x("VCardActions"), b = x("VCard");
32142
32142
  return y(), M("div", Pd, [
32143
- p(l, {
32143
+ u(l, {
32144
32144
  text: "",
32145
32145
  height: o.height,
32146
32146
  width: o.width,
@@ -32158,10 +32158,10 @@ function Td(t, e, o, i, a, r) {
32158
32158
  style: ae(r.getStyle)
32159
32159
  }, {
32160
32160
  default: f(() => [
32161
- p(n, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
32161
+ u(n, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
32162
32162
  default: f(() => [
32163
32163
  s("div", Cd, [
32164
- p(c, {
32164
+ u(c, {
32165
32165
  modelValue: a.dateRange,
32166
32166
  "onUpdate:modelValue": e[0] || (e[0] = (w) => a.dateRange = w),
32167
32167
  min: a.minDate,
@@ -32179,13 +32179,13 @@ function Td(t, e, o, i, a, r) {
32179
32179
  ]),
32180
32180
  _: 1
32181
32181
  }),
32182
- p(u),
32183
- p(h, {
32182
+ u(g),
32183
+ u(h, {
32184
32184
  class: "justify-end pa-0 pr-4",
32185
32185
  style: { height: "50px" }
32186
32186
  }, {
32187
32187
  default: f(() => [
32188
- p(l, {
32188
+ u(l, {
32189
32189
  size: "small",
32190
32190
  variant: "tonal",
32191
32191
  class: "text-none text-body-2",
@@ -32197,7 +32197,7 @@ function Td(t, e, o, i, a, r) {
32197
32197
  _: 1,
32198
32198
  __: [1]
32199
32199
  }, 8, ["onClick"]),
32200
- p(l, {
32200
+ u(l, {
32201
32201
  size: "small",
32202
32202
  variant: "flat",
32203
32203
  color: "primary",