@idmwx/idmui-gl4 1.2.6 → 1.2.8

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
@@ -1485,10 +1485,10 @@ const ui = {
1485
1485
  { label: "Swell", key: "weather.swell", unit: "m" },
1486
1486
  { label: "Current", key: "weather.current", unit: "kts" }
1487
1487
  ], (a = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || a.dateTimeList.forEach((i, o) => {
1488
- var c, n, g, p, y, w, v, f, L, T, B, I, P, _, k, C, z, R, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe;
1488
+ var c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe;
1489
1489
  let r = {};
1490
1490
  const s = ((c = oa.pickHourly(t, M(i))) == null ? void 0 : c[0]) || {};
1491
- r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((g = s == null ? void 0 : s.weather) == null ? void 0 : g.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((y = (p = s == null ? void 0 : s.weather) == null ? void 0 : p.precip) == null ? void 0 : y.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((v = (w = s == null ? void 0 : s.weather) == null ? void 0 : w.precip) == null ? void 0 : v.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((f = s == null ? void 0 : s.weather) == null ? void 0 : f.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (L = s == null ? void 0 : s.weather) == null ? void 0 : L.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (I = (B = s == null ? void 0 : s.weather) == null ? void 0 : B.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((_ = (P = s == null ? void 0 : s.weather) == null ? void 0 : P.wind) == null ? void 0 : _.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((C = (k = s == null ? void 0 : s.weather) == null ? void 0 : k.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((R = (z = s == null ? void 0 : s.wave) == null ? void 0 : z.sig) == null ? void 0 : R.height, 1) ?? "-", r.sigwaveDir = (Y = (G = s == null ? void 0 : s.wave) == null ? void 0 : G.sig) == null ? void 0 : Y.direction, r.sigwavePeriod = this.computeRoundPrecision((V = (K = s == null ? void 0 : s.wave) == null ? void 0 : K.sig) == null ? void 0 : V.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((ee = (J = s == null ? void 0 : s.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.height, 1) ?? "-", r.windwaveDir = (re = (Q = s == null ? void 0 : s.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.direction, r.windwavePeriod = this.computeRoundPrecision((pe = (de = s == null ? void 0 : s.wave) == null ? void 0 : de.wd) == null ? void 0 : pe.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((X = (se = s == null ? void 0 : s.wave) == null ? void 0 : se.swell) == null ? void 0 : X.height, 1) ?? "-", r.swellDir = (ue = (oe = s == null ? void 0 : s.wave) == null ? void 0 : oe.swell) == null ? void 0 : ue.direction, r.swellPeriod = this.computeRoundPrecision((F = (ne = s == null ? void 0 : s.wave) == null ? void 0 : ne.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((ce = s == null ? void 0 : s.current) == null ? void 0 : ce.speed, 1) ?? "-", r.currentDir = (xe = s == null ? void 0 : s.current) == null ? void 0 : xe.direction, r.currentSpeed = this.computeRoundPrecision((Le = s == null ? void 0 : s.current) == null ? void 0 : Le.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(s == null ? void 0 : s.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(s == null ? void 0 : s.sst, 0) ?? "-", r.weatherUrls = (Pe = s == null ? void 0 : s.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${o}`] = o * this.interval > 10 ? o * this.interval : "0" + o * this.interval, this.tableData[1][`value${o}`] = r.weatherUrl, this.tableData[2][`value${o}`] = r.temp, this.tableData[3][`value${o}`] = r.precip1h, this.tableData[4][`value${o}`] = r.visibility, this.tableData[5][`value${o}`] = r.windSpeed, this.tableData[6][`value${o}`] = r.sigwaveHeight, this.tableData[7][`value${o}`] = r.swellHeight, this.tableData[8][`value${o}`] = r.currentSpeed;
1491
+ r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((g = s == null ? void 0 : s.weather) == null ? void 0 : g.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((f = (p = s == null ? void 0 : s.weather) == null ? void 0 : p.precip) == null ? void 0 : f.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((v = (w = s == null ? void 0 : s.weather) == null ? void 0 : w.precip) == null ? void 0 : v.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((y = s == null ? void 0 : s.weather) == null ? void 0 : y.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (C = s == null ? void 0 : s.weather) == null ? void 0 : C.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (I = (B = s == null ? void 0 : s.weather) == null ? void 0 : B.wind) == null ? void 0 : I.direction, r.windLevel = this.computeRoundPrecision((_ = (L = s == null ? void 0 : s.weather) == null ? void 0 : L.wind) == null ? void 0 : _.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((P = (k = s == null ? void 0 : s.weather) == null ? void 0 : k.wind) == null ? void 0 : P.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((R = (z = s == null ? void 0 : s.wave) == null ? void 0 : z.sig) == null ? void 0 : R.height, 1) ?? "-", r.sigwaveDir = (Y = (G = s == null ? void 0 : s.wave) == null ? void 0 : G.sig) == null ? void 0 : Y.direction, r.sigwavePeriod = this.computeRoundPrecision((V = (K = s == null ? void 0 : s.wave) == null ? void 0 : K.sig) == null ? void 0 : V.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((ee = (J = s == null ? void 0 : s.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.height, 1) ?? "-", r.windwaveDir = (re = (Q = s == null ? void 0 : s.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.direction, r.windwavePeriod = this.computeRoundPrecision((pe = (de = s == null ? void 0 : s.wave) == null ? void 0 : de.wd) == null ? void 0 : pe.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((X = (se = s == null ? void 0 : s.wave) == null ? void 0 : se.swell) == null ? void 0 : X.height, 1) ?? "-", r.swellDir = (ue = (oe = s == null ? void 0 : s.wave) == null ? void 0 : oe.swell) == null ? void 0 : ue.direction, r.swellPeriod = this.computeRoundPrecision((F = (ne = s == null ? void 0 : s.wave) == null ? void 0 : ne.swell) == null ? void 0 : F.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((ce = s == null ? void 0 : s.current) == null ? void 0 : ce.speed, 1) ?? "-", r.currentDir = (xe = s == null ? void 0 : s.current) == null ? void 0 : xe.direction, r.currentSpeed = this.computeRoundPrecision((Le = s == null ? void 0 : s.current) == null ? void 0 : Le.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(s == null ? void 0 : s.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(s == null ? void 0 : s.sst, 0) ?? "-", r.weatherUrls = (Pe = s == null ? void 0 : s.weather) == null ? void 0 : Pe.url, this.tableData[0][`value${o}`] = o * this.interval > 10 ? o * this.interval : "0" + o * this.interval, this.tableData[1][`value${o}`] = r.weatherUrl, this.tableData[2][`value${o}`] = r.temp, this.tableData[3][`value${o}`] = r.precip1h, this.tableData[4][`value${o}`] = r.visibility, this.tableData[5][`value${o}`] = r.windSpeed, this.tableData[6][`value${o}`] = r.sigwaveHeight, this.tableData[7][`value${o}`] = r.swellHeight, this.tableData[8][`value${o}`] = r.currentSpeed;
1492
1492
  });
1493
1493
  },
1494
1494
  handleTide() {
@@ -1673,19 +1673,19 @@ const ui = {
1673
1673
  width: "120"
1674
1674
  }, ur = { class: "px-1 text-center" }, gr = { class: "px-1 text-center" }, fr = { class: "px-1 text-center" };
1675
1675
  function yr(t, e, a, i, o, r) {
1676
- const s = x("VBtn"), c = x("VCardTitle"), n = x("VDivider"), g = x("VIcon"), p = x("VBtnToggle"), y = x("VCard");
1677
- return b(), A(y, { class: "port-detail-container d-flex flex-column justify-start align-center" }, {
1676
+ const s = x("VBtn"), c = x("VCardTitle"), n = x("VDivider"), g = x("VIcon"), p = x("VBtnToggle"), f = x("VCard");
1677
+ return b(), A(f, { class: "port-detail-container d-flex flex-column justify-start align-center" }, {
1678
1678
  default: u(() => {
1679
1679
  var w, v;
1680
1680
  return [
1681
1681
  d(c, { class: "w-100" }, {
1682
1682
  default: u(() => {
1683
- var f, L, T, B, I;
1683
+ var y, C, T, B, I;
1684
1684
  return [
1685
1685
  l("div", gi, [
1686
1686
  l("div", fi, [
1687
1687
  l("div", {
1688
- class: He(["fi mr-2 rounded elevation-4", `fi-${(f = a.port) != null && f.cntLoCode ? (T = (L = a.port) == null ? void 0 : L.cntLoCode) == null ? void 0 : T.toLowerCase() : "xx"}`]),
1688
+ class: He(["fi mr-2 rounded elevation-4", `fi-${(y = a.port) != null && y.cntLoCode ? (T = (C = a.port) == null ? void 0 : C.cntLoCode) == null ? void 0 : T.toLowerCase() : "xx"}`]),
1689
1689
  style: { width: "36px", height: "24px" }
1690
1690
  }, null, 2),
1691
1691
  l("div", null, h((B = a.port) == null ? void 0 : B.name), 1)
@@ -1717,9 +1717,9 @@ function yr(t, e, a, i, o, r) {
1717
1717
  }),
1718
1718
  d(n, { class: "w-100" }),
1719
1719
  l("div", bi, [
1720
- a.followList.some((f) => {
1721
- var L;
1722
- return ((L = f.port) == null ? void 0 : L.id) === a.portId;
1720
+ a.followList.some((y) => {
1721
+ var C;
1722
+ return ((C = y.port) == null ? void 0 : C.id) === a.portId;
1723
1723
  }) ? (b(), A(s, {
1724
1724
  key: 0,
1725
1725
  class: "text-none text-body-1 rounded flex-1-1-0",
@@ -1806,7 +1806,7 @@ function yr(t, e, a, i, o, r) {
1806
1806
  l("div", Fi, [
1807
1807
  d(p, {
1808
1808
  modelValue: o.currentIndex,
1809
- "onUpdate:modelValue": e[0] || (e[0] = (f) => o.currentIndex = f),
1809
+ "onUpdate:modelValue": e[0] || (e[0] = (y) => o.currentIndex = y),
1810
1810
  class: "w-100 gray-card rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
1811
1811
  density: "compact",
1812
1812
  group: "",
@@ -1815,15 +1815,15 @@ function yr(t, e, a, i, o, r) {
1815
1815
  rounded: "1"
1816
1816
  }, {
1817
1817
  default: u(() => [
1818
- (b(!0), S(be, null, we(r.dateList, (f) => (b(), A(s, {
1818
+ (b(!0), S(be, null, we(r.dateList, (y) => (b(), A(s, {
1819
1819
  class: "text-none text-body-1 rounded bg-none flex-1-1-0",
1820
1820
  density: "compact",
1821
1821
  color: "primary",
1822
1822
  height: "26",
1823
- value: f.index
1823
+ value: y.index
1824
1824
  }, {
1825
1825
  default: u(() => [
1826
- j(h(f.label), 1)
1826
+ j(h(y.label), 1)
1827
1827
  ]),
1828
1828
  _: 2
1829
1829
  }, 1032, ["value"]))), 256))
@@ -1832,40 +1832,40 @@ function yr(t, e, a, i, o, r) {
1832
1832
  }, 8, ["modelValue"]),
1833
1833
  l("table", Hi, [
1834
1834
  l("tbody", null, [
1835
- (b(!0), S(be, null, we(o.tableData, (f) => (b(), S("tr", {
1836
- key: f.id
1835
+ (b(!0), S(be, null, we(o.tableData, (y) => (b(), S("tr", {
1836
+ key: y.id
1837
1837
  }, [
1838
1838
  l("th", Ui, [
1839
- j(h(t.$t(`${f.key}`)) + " ", 1),
1840
- f.unit ? (b(), S("span", Wi, " ( " + h(f.unit) + " )", 1)) : D("", !0)
1839
+ j(h(t.$t(`${y.key}`)) + " ", 1),
1840
+ y.unit ? (b(), S("span", Wi, " ( " + h(y.unit) + " )", 1)) : D("", !0)
1841
1841
  ]),
1842
1842
  l("td", Gi, [
1843
- f.img ? (b(), S("img", {
1843
+ y.img ? (b(), S("img", {
1844
1844
  key: 0,
1845
- src: f == null ? void 0 : f.value0,
1845
+ src: y == null ? void 0 : y.value0,
1846
1846
  style: { height: "30px" }
1847
- }, null, 8, Vi)) : (b(), S("span", Zi, h((f == null ? void 0 : f.value0) ?? "-"), 1))
1847
+ }, null, 8, Vi)) : (b(), S("span", Zi, h((y == null ? void 0 : y.value0) ?? "-"), 1))
1848
1848
  ]),
1849
1849
  l("td", qi, [
1850
- f.img ? (b(), S("img", {
1850
+ y.img ? (b(), S("img", {
1851
1851
  key: 0,
1852
- src: f == null ? void 0 : f.value1,
1852
+ src: y == null ? void 0 : y.value1,
1853
1853
  style: { height: "30px" }
1854
- }, null, 8, Yi)) : (b(), S("span", Ki, h((f == null ? void 0 : f.value1) ?? "-"), 1))
1854
+ }, null, 8, Yi)) : (b(), S("span", Ki, h((y == null ? void 0 : y.value1) ?? "-"), 1))
1855
1855
  ]),
1856
1856
  l("td", Xi, [
1857
- f.img ? (b(), S("img", {
1857
+ y.img ? (b(), S("img", {
1858
1858
  key: 0,
1859
- src: f == null ? void 0 : f.value2,
1859
+ src: y == null ? void 0 : y.value2,
1860
1860
  style: { height: "30px" }
1861
- }, null, 8, $i)) : (b(), S("span", Qi, h((f == null ? void 0 : f.value2) ?? "-"), 1))
1861
+ }, null, 8, $i)) : (b(), S("span", Qi, h((y == null ? void 0 : y.value2) ?? "-"), 1))
1862
1862
  ]),
1863
1863
  l("td", Ji, [
1864
- f.img ? (b(), S("img", {
1864
+ y.img ? (b(), S("img", {
1865
1865
  key: 0,
1866
- src: f == null ? void 0 : f.value3,
1866
+ src: y == null ? void 0 : y.value3,
1867
1867
  style: { height: "30px" }
1868
- }, null, 8, er)) : (b(), S("span", tr, h((f == null ? void 0 : f.value3) ?? "-"), 1))
1868
+ }, null, 8, er)) : (b(), S("span", tr, h((y == null ? void 0 : y.value3) ?? "-"), 1))
1869
1869
  ])
1870
1870
  ]))), 128))
1871
1871
  ])
@@ -1889,7 +1889,7 @@ function yr(t, e, a, i, o, r) {
1889
1889
  density: "compact",
1890
1890
  variant: "plain",
1891
1891
  size: "small",
1892
- onClick: e[1] || (e[1] = (f) => o.showTideDetail = !1)
1892
+ onClick: e[1] || (e[1] = (y) => o.showTideDetail = !1)
1893
1893
  })) : (b(), A(s, {
1894
1894
  key: 1,
1895
1895
  icon: "mdi-eye-outline",
@@ -1909,12 +1909,12 @@ function yr(t, e, a, i, o, r) {
1909
1909
  l("th", hr, h(t.$t("time.time")) + " ( LT ) ", 1),
1910
1910
  l("th", pr, h(t.$t("tide.height")) + " ( m )", 1)
1911
1911
  ]),
1912
- (b(!0), S(be, null, we(o.tideTableData, (f, L) => {
1912
+ (b(!0), S(be, null, we(o.tideTableData, (y, C) => {
1913
1913
  var T;
1914
- return b(), S("tr", { key: L }, [
1915
- l("td", ur, h(t.$t(`tide.${(T = f == null ? void 0 : f.type) == null ? void 0 : T.toLowerCase()}`)) + " " + h(t.$t("tide.tide")), 1),
1916
- l("td", gr, h(r.computeLocalTime(f == null ? void 0 : f.date, a.port, "MM-DD HH:mm")), 1),
1917
- l("td", fr, h((f == null ? void 0 : f.height) ?? "-") + " m", 1)
1914
+ return b(), S("tr", { key: C }, [
1915
+ l("td", ur, h(t.$t(`tide.${(T = y == null ? void 0 : y.type) == null ? void 0 : T.toLowerCase()}`)) + " " + h(t.$t("tide.tide")), 1),
1916
+ l("td", gr, h(r.computeLocalTime(y == null ? void 0 : y.date, a.port, "MM-DD HH:mm")), 1),
1917
+ l("td", fr, h((y == null ? void 0 : y.height) ?? "-") + " m", 1)
1918
1918
  ]);
1919
1919
  }), 128))
1920
1920
  ])
@@ -2941,7 +2941,7 @@ function Tl(t, e, a, i, o, r) {
2941
2941
  const s = x("VBtn"), c = x("v-card-title"), n = x("v-divider"), g = x("VBtnToggle"), p = x("v-card");
2942
2942
  return b(), A(p, { class: "tide-detail-container d-flex flex-column justify-start align-center" }, {
2943
2943
  default: u(() => {
2944
- var y, w;
2944
+ var f, w;
2945
2945
  return [
2946
2946
  d(c, { class: "w-100" }, {
2947
2947
  default: u(() => {
@@ -2989,7 +2989,7 @@ function Tl(t, e, a, i, o, r) {
2989
2989
  l("div", il, [
2990
2990
  l("div", rl, [
2991
2991
  l("div", ll, h(t.$t("tide.region")), 1),
2992
- l("div", sl, h(((y = a.station) == null ? void 0 : y.Country) ?? ((w = a.station) == null ? void 0 : w.city) ?? "-"), 1)
2992
+ l("div", sl, h(((f = a.station) == null ? void 0 : f.Country) ?? ((w = a.station) == null ? void 0 : w.city) ?? "-"), 1)
2993
2993
  ]),
2994
2994
  l("div", nl, [
2995
2995
  l("div", cl, h(t.$t("tide.position")), 1),
@@ -3048,10 +3048,10 @@ function Tl(t, e, a, i, o, r) {
3048
3048
  l("th", kl, h(t.$t("time.time")) + " ( LT )", 1),
3049
3049
  l("th", zl, h(t.$t("tide.height")) + " ( m )", 1)
3050
3050
  ]),
3051
- (b(!0), S(be, null, we(o.tideTableData, (v, f) => {
3052
- var L;
3053
- return b(), S("tr", { key: f }, [
3054
- l("td", Ll, h(t.$t(`tide.${(L = v == null ? void 0 : v.type) == null ? void 0 : L.toLowerCase()}`)) + " " + h(t.$t("tide.tide")), 1),
3051
+ (b(!0), S(be, null, we(o.tideTableData, (v, y) => {
3052
+ var C;
3053
+ return b(), S("tr", { key: y }, [
3054
+ l("td", Ll, h(t.$t(`tide.${(C = v == null ? void 0 : v.type) == null ? void 0 : C.toLowerCase()}`)) + " " + h(t.$t("tide.tide")), 1),
3055
3055
  l("td", Pl, h(r.computeLocalTime(v == null ? void 0 : v.date, a.station, "MM-DD HH:mm")), 1),
3056
3056
  l("td", Cl, h((v == null ? void 0 : v.height) ?? "-") + " m", 1)
3057
3057
  ]);
@@ -5229,15 +5229,15 @@ const Yl = {
5229
5229
  var a, i, o, r, s, c, n, g, p;
5230
5230
  const e = t.features[0];
5231
5231
  if (e.properties) {
5232
- const y = e.properties;
5233
- y.lng = e.geometry.coordinates[0], y.lat = e.geometry.coordinates[1];
5234
- const w = M(), v = (a = M(this.realTime)) == null ? void 0 : a.diff(w, "d", !0), f = {
5235
- lat: y.lat,
5236
- lng: y.lng,
5232
+ const f = e.properties;
5233
+ f.lng = e.geometry.coordinates[0], f.lat = e.geometry.coordinates[1];
5234
+ const w = M(), v = (a = M(this.realTime)) == null ? void 0 : a.diff(w, "d", !0), y = {
5235
+ lat: f.lat,
5236
+ lng: f.lng,
5237
5237
  datetime: this.realTime,
5238
5238
  forecastModel: this.forecastModel
5239
5239
  };
5240
- v >= 0 ? (s = (r = (o = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : o.$refs) == null ? void 0 : r.idmSpot) == null || s.fetchMeteoData(f) : (p = (g = (n = (c = this.$parent) == null ? void 0 : c.$parent) == null ? void 0 : n.$refs) == null ? void 0 : g.idmSpot) == null || p.fetchHistoryData(f);
5240
+ v >= 0 ? (s = (r = (o = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : o.$refs) == null ? void 0 : r.idmSpot) == null || s.fetchMeteoData(y) : (p = (g = (n = (c = this.$parent) == null ? void 0 : c.$parent) == null ? void 0 : n.$refs) == null ? void 0 : g.idmSpot) == null || p.fetchHistoryData(y);
5241
5241
  }
5242
5242
  },
5243
5243
  handleHover(t) {
@@ -5457,8 +5457,8 @@ const es = {
5457
5457
  })
5458
5458
  );
5459
5459
  (await Promise.all(s)).map((n) => {
5460
- var y, w, v;
5461
- const g = ((y = n == null ? void 0 : n.data) == null ? void 0 : y.data) || (n == null ? void 0 : n.data), p = (v = (w = n == null ? void 0 : n.config) == null ? void 0 : w.headers) == null ? void 0 : v.key;
5460
+ var f, w, v;
5461
+ const g = ((f = n == null ? void 0 : n.data) == null ? void 0 : f.data) || (n == null ? void 0 : n.data), p = (v = (w = n == null ? void 0 : n.config) == null ? void 0 : w.headers) == null ? void 0 : v.key;
5462
5462
  this.otherLayers[p] = g;
5463
5463
  });
5464
5464
  }
@@ -5497,7 +5497,7 @@ const es = {
5497
5497
  }, ds = { class: "text-body-2 text-center pt-1" };
5498
5498
  function hs(t, e, a, i, o, r) {
5499
5499
  var Q, re, de, pe, se, X, oe, ue, ne;
5500
- const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VCardItem"), p = x("VCheckbox"), y = x("VCardText"), w = x("VCard"), v = x("IdmLatLng"), f = x("IdmTerminator"), L = x("IdmTimezone"), T = x("IdmPort"), B = x("IdmAlertZone"), I = x("IdmTideStations"), P = x("IdmEcaZone"), _ = x("IdmWarZone"), k = x("IdmGmdssArea"), C = x("IdmLoadLine"), z = x("IdmWorldMarine"), R = x("IdmVRA"), G = x("IdmSpecialArea"), Y = x("IdmWorld12nm"), K = x("IdmChinaRoute"), V = x("IdmIceAreas"), J = x("IdmFollowPort"), ee = x("IdmFollowPosition");
5500
+ const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VCardItem"), p = x("VCheckbox"), f = x("VCardText"), w = x("VCard"), v = x("IdmLatLng"), y = x("IdmTerminator"), C = x("IdmTimezone"), T = x("IdmPort"), B = x("IdmAlertZone"), I = x("IdmTideStations"), L = x("IdmEcaZone"), _ = x("IdmWarZone"), k = x("IdmGmdssArea"), P = x("IdmLoadLine"), z = x("IdmWorldMarine"), R = x("IdmVRA"), G = x("IdmSpecialArea"), Y = x("IdmWorld12nm"), K = x("IdmChinaRoute"), V = x("IdmIceAreas"), J = x("IdmFollowPort"), ee = x("IdmFollowPosition");
5501
5501
  return b(), S("div", ts, [
5502
5502
  l("div", {
5503
5503
  class: "menu-bar-box transition px-1 rounded",
@@ -5565,7 +5565,7 @@ function hs(t, e, a, i, o, r) {
5565
5565
  ]),
5566
5566
  _: 1
5567
5567
  }),
5568
- d(y, { class: "pb-2" }, {
5568
+ d(f, { class: "pb-2" }, {
5569
5569
  default: u(() => [
5570
5570
  l("div", rs, [
5571
5571
  (b(!0), S(be, null, we(o.mapFeathers, (F) => (b(), S("div", {
@@ -5618,7 +5618,7 @@ function hs(t, e, a, i, o, r) {
5618
5618
  ]),
5619
5619
  _: 1
5620
5620
  }),
5621
- d(y, { class: "py-2" }, {
5621
+ d(f, { class: "py-2" }, {
5622
5622
  default: u(() => [
5623
5623
  (b(!0), S(be, null, we(o.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (b(), A(p, {
5624
5624
  key: F.key,
@@ -5657,7 +5657,7 @@ function hs(t, e, a, i, o, r) {
5657
5657
  ]),
5658
5658
  _: 1
5659
5659
  }),
5660
- d(y, { class: "py-2" }, {
5660
+ d(f, { class: "py-2" }, {
5661
5661
  default: u(() => [
5662
5662
  (b(!0), S(be, null, we(o.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (b(), A(p, {
5663
5663
  key: F.key,
@@ -5696,7 +5696,7 @@ function hs(t, e, a, i, o, r) {
5696
5696
  ]),
5697
5697
  _: 1
5698
5698
  }),
5699
- d(y, { class: "py-2" }, {
5699
+ d(f, { class: "py-2" }, {
5700
5700
  default: u(() => [
5701
5701
  d(p, {
5702
5702
  modelValue: o.checkList,
@@ -5734,12 +5734,12 @@ function hs(t, e, a, i, o, r) {
5734
5734
  "menu-toggle": a.menuToggle,
5735
5735
  show: o.checkList.includes("graticule")
5736
5736
  }, t.$attrs), null, 16, ["map", "menu-toggle", "show"])) : D("", !0),
5737
- a.map ? (b(), A(f, O({
5737
+ a.map ? (b(), A(y, O({
5738
5738
  key: 1,
5739
5739
  map: a.map,
5740
5740
  area: (Q = o.otherLayers) == null ? void 0 : Q["day-night"]
5741
5741
  }, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
5742
- a.map ? (b(), A(L, O({
5742
+ a.map ? (b(), A(C, O({
5743
5743
  key: 2,
5744
5744
  map: a.map,
5745
5745
  zone: (re = o.otherLayers) == null ? void 0 : re["time-zones"]
@@ -5774,7 +5774,7 @@ function hs(t, e, a, i, o, r) {
5774
5774
  forecastModel: a.forecastModel,
5775
5775
  "before-layer": "empty-layer-3"
5776
5776
  }, t.$attrs), null, 16, ["map", "gateway", "token", "show", "theme", "realTime", "forecastModel"])) : D("", !0),
5777
- a.map ? (b(), A(P, O({
5777
+ a.map ? (b(), A(L, O({
5778
5778
  key: 6,
5779
5779
  map: a.map,
5780
5780
  zone: (se = o.otherLayers) == null ? void 0 : se["eca-zones"]
@@ -5789,7 +5789,7 @@ function hs(t, e, a, i, o, r) {
5789
5789
  map: a.map,
5790
5790
  area: (oe = o.otherLayers) == null ? void 0 : oe["gmdss-areas"]
5791
5791
  }, t.$attrs), null, 16, ["map", "area"])) : D("", !0),
5792
- a.map ? (b(), A(C, O({
5792
+ a.map ? (b(), A(P, O({
5793
5793
  key: 9,
5794
5794
  map: a.map,
5795
5795
  show: o.checkList.includes("load-lines")
@@ -5894,12 +5894,12 @@ class sa {
5894
5894
  * @param [lb.x, lb.y, rt.x, rt.y]
5895
5895
  */
5896
5896
  getBoundPixel() {
5897
- var f, L;
5898
- const e = (f = this.map) == null ? void 0 : f.getBounds();
5897
+ var y, C;
5898
+ const e = (y = this.map) == null ? void 0 : y.getBounds();
5899
5899
  if (!e)
5900
5900
  return [];
5901
- const a = ((L = this.map) == null ? void 0 : L.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], o = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [c, n] = this.convertNLng(o[0]), [g, p] = this.mercator.px([r, i[1]], a), [y, w] = this.mercator.px([c, o[1]], a), v = Math.round(this.mercator.size * Math.pow(2, a) * (s + n));
5902
- return [y, w, g + v, p];
5901
+ const a = ((C = this.map) == null ? void 0 : C.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], o = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [c, n] = this.convertNLng(o[0]), [g, p] = this.mercator.px([r, i[1]], a), [f, w] = this.mercator.px([c, o[1]], a), v = Math.round(this.mercator.size * Math.pow(2, a) * (s + n));
5902
+ return [f, w, g + v, p];
5903
5903
  }
5904
5904
  /**
5905
5905
  * [视窗边界像素宽度]
@@ -5916,11 +5916,11 @@ class sa {
5916
5916
  getWorldCopy(e, a) {
5917
5917
  const i = 2 ** a, [o, r, s, c] = e.map((p) => ~~(p / (i * 256))), n = [];
5918
5918
  for (let p = c; p <= r; p++)
5919
- for (let y = o; y <= s; y++)
5920
- n.push([y, p]);
5919
+ for (let f = o; f <= s; f++)
5920
+ n.push([f, p]);
5921
5921
  return n.map((p) => {
5922
- const y = 2 ** a * 256;
5923
- return [p[0] * y, p[1] * y, y];
5922
+ const f = 2 ** a * 256;
5923
+ return [p[0] * f, p[1] * f, f];
5924
5924
  });
5925
5925
  }
5926
5926
  resize() {
@@ -6064,8 +6064,8 @@ class je {
6064
6064
  return {};
6065
6065
  }
6066
6066
  bindParticle(e, a, i, o, r, s) {
6067
- const c = this.createProgramWrapper(e, a, i), n = this.createProgramWrapper(e, o, r), g = this.createProgramWrapper(e, o, s), p = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), y = e.createFramebuffer();
6068
- return { particle: c, screen: n, update: g, quadBuffer: p, frameBuffer: y };
6067
+ const c = this.createProgramWrapper(e, a, i), n = this.createProgramWrapper(e, o, r), g = this.createProgramWrapper(e, o, s), p = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), f = e.createFramebuffer();
6068
+ return { particle: c, screen: n, update: g, quadBuffer: p, frameBuffer: f };
6069
6069
  }
6070
6070
  draw(e, a, i, o, r, s, c) {
6071
6071
  var n, g;
@@ -6082,10 +6082,10 @@ class je {
6082
6082
  sRange: a.getUniformLocation(i, "u_range_s")
6083
6083
  };
6084
6084
  p.resolution && a.uniform2f(p.resolution, a.canvas.width * e.ratio, a.canvas.height * e.ratio), a.activeTexture(a.TEXTURE0), a.bindTexture(a.TEXTURE_2D, o), p.image && a.uniform1i(p.image, 0), a.activeTexture(a.TEXTURE1), a.bindTexture(a.TEXTURE_2D, r), p.color && a.uniform1i(p.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (p.uvRange && a.uniform2f(p.uvRange, c.uvRange[0], c.uvRange[1]), p.sRange && a.uniform2f(p.sRange, c.sRange[0], c.sRange[1])), p.scale && a.uniform1f(p.scale, (c == null ? void 0 : c.scale) || 1);
6085
- const y = e.getBoundPixel(), w = e.map.getZoom() + 1, v = e.getWorldCopy(y, w);
6086
- for (const f of v) {
6087
- const L = (f[0] - y[0]) * e.ratio, T = (f[1] - y[3]) * e.ratio, B = f[2] * e.ratio, [I, P, _, k] = [L, B + L, T, B + T], C = new Float32Array([I, _, P, _, I, k, I, k, P, _, P, k]);
6088
- a.bindBuffer(a.ARRAY_BUFFER, s), a.bufferData(a.ARRAY_BUFFER, C, a.STATIC_DRAW), a.drawArrays(a.TRIANGLES, 0, 6);
6085
+ const f = e.getBoundPixel(), w = e.map.getZoom() + 1, v = e.getWorldCopy(f, w);
6086
+ for (const y of v) {
6087
+ const C = (y[0] - f[0]) * e.ratio, T = (y[1] - f[3]) * e.ratio, B = y[2] * e.ratio, [I, L, _, k] = [C, B + C, T, B + T], P = new Float32Array([I, _, L, _, I, k, I, k, L, _, L, k]);
6088
+ a.bindBuffer(a.ARRAY_BUFFER, s), a.bufferData(a.ARRAY_BUFFER, P, a.STATIC_DRAW), a.drawArrays(a.TRIANGLES, 0, 6);
6089
6089
  }
6090
6090
  } catch (p) {
6091
6091
  console.log(`render failed...${p}`);
@@ -6787,10 +6787,10 @@ const vs = /* @__PURE__ */ q(bs, [["render", xs]]), _s = {
6787
6787
  </svg>`;
6788
6788
  n.src = "data:image/svg+xml;base64," + window.btoa(g);
6789
6789
  const p = [n];
6790
- let y = 0;
6790
+ let f = 0;
6791
6791
  p.forEach((w) => {
6792
6792
  w.onload = () => {
6793
- y++, this.map.hasImage("currentDirIcon") || this.map.addImage("currentDirIcon", n), y === 1 && this.map.addLayer(
6793
+ f++, this.map.hasImage("currentDirIcon") || this.map.addImage("currentDirIcon", n), f === 1 && this.map.addLayer(
6794
6794
  {
6795
6795
  id: this.directionLayer,
6796
6796
  type: "symbol",
@@ -8664,11 +8664,11 @@ const bn = {
8664
8664
  (t == null ? void 0 : t.data.code) === 0 && (this.models = t == null ? void 0 : t.data.data);
8665
8665
  },
8666
8666
  async fetchWeatherLayers(t = {}) {
8667
- var o, r, s, c, n, g, p, y, w;
8667
+ var o, r, s, c, n, g, p, f, w;
8668
8668
  const e = (/* @__PURE__ */ new Date()).valueOf();
8669
8669
  let a = 0, i = 0;
8670
8670
  if (this.map) {
8671
- const v = ((o = this.map) == null ? void 0 : o.getZoom()) + 1, f = (r = this.map) == null ? void 0 : r.getBounds(), L = `${f._sw.lng},${f._sw.lat},${f._ne.lng},${f._ne.lat}`;
8671
+ const v = ((o = this.map) == null ? void 0 : o.getZoom()) + 1, y = (r = this.map) == null ? void 0 : r.getBounds(), C = `${y._sw.lng},${y._sw.lat},${y._ne.lng},${y._ne.lat}`;
8672
8672
  if (this.particleFactor && ((s = this.$refs.layer) != null && s.autoActive)) {
8673
8673
  const T = ia.WEATHER_LAYERS.find((B) => {
8674
8674
  var I;
@@ -8680,7 +8680,7 @@ const bn = {
8680
8680
  let T = this.weatherWeight;
8681
8681
  if (T > 0) {
8682
8682
  const B = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], I = await Se.get(
8683
- `${B}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${v}&bbox=${L}&t=${this.realTime}`,
8683
+ `${B}/api/arc/weather/layers2/links?l=${T}&v=${this.forecastModel}&z=${v}&bbox=${C}&t=${this.realTime}`,
8684
8684
  {
8685
8685
  headers: {
8686
8686
  Authorization: this.token || this.defaultMeteoToken
@@ -8688,45 +8688,45 @@ const bn = {
8688
8688
  }
8689
8689
  );
8690
8690
  if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather links elapsed: ", i, ", total: ", a += i), ((c = I == null ? void 0 : I.data) == null ? void 0 : c.code) === 0) {
8691
- const P = (n = I == null ? void 0 : I.data) == null ? void 0 : n.data, _ = [];
8692
- for (const C in P)
8691
+ const L = (n = I == null ? void 0 : I.data) == null ? void 0 : n.data, _ = [];
8692
+ for (const P in L)
8693
8693
  _.push(
8694
- Se.get(P[C], {
8694
+ Se.get(L[P], {
8695
8695
  headers: {
8696
8696
  Authorization: this.token || this.defaultMeteoToken,
8697
- key: C
8697
+ key: P
8698
8698
  },
8699
- responseType: /\.(jpg|png)$/.test(P[C]) ? "blob" : "json"
8699
+ responseType: /\.(jpg|png)$/.test(L[P]) ? "blob" : "json"
8700
8700
  }).catch((z) => {
8701
- console.log(`[${C}] fetch layer error: ${z}`);
8701
+ console.log(`[${P}] fetch layer error: ${z}`);
8702
8702
  })
8703
8703
  );
8704
8704
  const k = await Promise.all(_);
8705
- this.weatherLayers = {}, k.map((C) => {
8705
+ this.weatherLayers = {}, k.map((P) => {
8706
8706
  var G, Y, K, V;
8707
- const z = ((G = C == null ? void 0 : C.data) == null ? void 0 : G.data) || (C == null ? void 0 : C.data);
8708
- let R = (K = (Y = C == null ? void 0 : C.config) == null ? void 0 : Y.headers) == null ? void 0 : K.key;
8707
+ const z = ((G = P == null ? void 0 : P.data) == null ? void 0 : G.data) || (P == null ? void 0 : P.data);
8708
+ let R = (K = (Y = P == null ? void 0 : P.config) == null ? void 0 : Y.headers) == null ? void 0 : K.key;
8709
8709
  R && z && (this.weatherLayers[R] = {
8710
8710
  raw: z,
8711
- type: ((V = C == null ? void 0 : C.config) == null ? void 0 : V.responseType) === "blob" ? "image" : "json",
8711
+ type: ((V = P == null ? void 0 : P.config) == null ? void 0 : V.responseType) === "blob" ? "image" : "json",
8712
8712
  etime: I.data.etime
8713
8713
  });
8714
8714
  });
8715
8715
  }
8716
8716
  if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather layers elapsed: ", i, ", total: ", a += i), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
8717
- const P = (g = this.weatherLayers["swell-direction"]) == null ? void 0 : g.raw, _ = (p = this.weatherLayers["swell-height"]) == null ? void 0 : p.raw;
8717
+ const L = (g = this.weatherLayers["swell-direction"]) == null ? void 0 : g.raw, _ = (p = this.weatherLayers["swell-height"]) == null ? void 0 : p.raw;
8718
8718
  delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
8719
8719
  type: "json",
8720
- direction: P,
8720
+ direction: L,
8721
8721
  height: { raw: _ },
8722
8722
  etime: I.data.etime
8723
8723
  };
8724
8724
  }
8725
8725
  if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
8726
- const P = (y = this.weatherLayers["current-direction"]) == null ? void 0 : y.raw, _ = (w = this.weatherLayers["current-speed"]) == null ? void 0 : w.raw;
8726
+ const L = (f = this.weatherLayers["current-direction"]) == null ? void 0 : f.raw, _ = (w = this.weatherLayers["current-speed"]) == null ? void 0 : w.raw;
8727
8727
  delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
8728
8728
  type: "json",
8729
- direction: P,
8729
+ direction: L,
8730
8730
  speed: { raw: _ },
8731
8731
  etime: I.data.etime
8732
8732
  };
@@ -8750,7 +8750,7 @@ const bn = {
8750
8750
  t != null && t.sourceChanged || this.weatherWeight !== e ? (this.weatherWeight = e, this.fetchWeatherLayers()) : this.handleWeatherLayerToggle();
8751
8751
  },
8752
8752
  handleRampColorInitial() {
8753
- var t, e, a, i, o, r, s, c, n, g, p, y;
8753
+ var t, e, a, i, o, r, s, c, n, g, p, f;
8754
8754
  this.viewport.map.getSource((t = this.viewport) == null ? void 0 : t.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
8755
8755
  type: "canvas",
8756
8756
  canvas: (a = this.viewport) == null ? void 0 : a.rampColorCanvas,
@@ -8775,7 +8775,7 @@ const bn = {
8775
8775
  {
8776
8776
  type: "raster",
8777
8777
  id: (p = this.viewport) == null ? void 0 : p.particleLayer,
8778
- source: (y = this.viewport) == null ? void 0 : y.particleSource,
8778
+ source: (f = this.viewport) == null ? void 0 : f.particleSource,
8779
8779
  layout: {
8780
8780
  visibility: "none"
8781
8781
  }
@@ -8784,7 +8784,7 @@ const bn = {
8784
8784
  );
8785
8785
  },
8786
8786
  handleDrawWeather4Json() {
8787
- var g, p, y, w, v, f, L;
8787
+ var g, p, f, w, v, y, C;
8788
8788
  const t = (/* @__PURE__ */ new Date()).valueOf();
8789
8789
  let e = 0, a = 0;
8790
8790
  const i = (g = this.map) == null ? void 0 : g.getBounds(), o = (p = this.map) == null ? void 0 : p.getZoom(), r = $.convertToStdLng(i._sw.lng), s = $.convertToStdLng(i._ne.lng), c = Math.floor(i._sw.lat), n = Math.ceil(i._ne.lat);
@@ -8794,41 +8794,41 @@ const bn = {
8794
8794
  let I = [];
8795
8795
  if (T === "swell") {
8796
8796
  B = !0;
8797
- const P = ((y = this.weatherLayers[T]) == null ? void 0 : y.direction) || {};
8798
- for (const k in P)
8797
+ const L = ((f = this.weatherLayers[T]) == null ? void 0 : f.direction) || {};
8798
+ for (const k in L)
8799
8799
  if (k > c && k < n && (!(o <= this.zoom) || k % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8800
- const C = P[k].lng;
8801
- r > s ? C.forEach((z, R) => {
8800
+ const P = L[k].lng;
8801
+ r > s ? P.forEach((z, R) => {
8802
8802
  var G, Y, K, V, J, ee;
8803
8803
  if (o < 2) {
8804
8804
  if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
8805
8805
  const Q = H.point([z, k], {
8806
- val: ((G = P[k].val) == null ? void 0 : G[R]) || ((Y = P[k].dir) == null ? void 0 : Y[R]),
8807
- spd: (K = P[k].spd) == null ? void 0 : K[R]
8806
+ val: ((G = L[k].val) == null ? void 0 : G[R]) || ((Y = L[k].dir) == null ? void 0 : Y[R]),
8807
+ spd: (K = L[k].spd) == null ? void 0 : K[R]
8808
8808
  });
8809
8809
  I.push(Q);
8810
8810
  }
8811
8811
  } else if ((z >= r && z <= 180 || z >= -180 && z <= s) && (!(o <= this.zoom) || z % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8812
8812
  const Q = H.point([z, k], {
8813
- val: ((V = P[k].val) == null ? void 0 : V[R]) || ((J = P[k].dir) == null ? void 0 : J[R]),
8814
- spd: (ee = P[k].spd) == null ? void 0 : ee[R]
8813
+ val: ((V = L[k].val) == null ? void 0 : V[R]) || ((J = L[k].dir) == null ? void 0 : J[R]),
8814
+ spd: (ee = L[k].spd) == null ? void 0 : ee[R]
8815
8815
  });
8816
8816
  I.push(Q);
8817
8817
  }
8818
- }) : C.forEach((z, R) => {
8818
+ }) : P.forEach((z, R) => {
8819
8819
  var G, Y, K, V, J, ee;
8820
8820
  if (r < 2) {
8821
8821
  if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
8822
8822
  const Q = H.point([z, k], {
8823
- val: ((G = P[k].val) == null ? void 0 : G[R]) || ((Y = P[k].dir) == null ? void 0 : Y[R]),
8824
- spd: (K = P[k].spd) == null ? void 0 : K[R]
8823
+ val: ((G = L[k].val) == null ? void 0 : G[R]) || ((Y = L[k].dir) == null ? void 0 : Y[R]),
8824
+ spd: (K = L[k].spd) == null ? void 0 : K[R]
8825
8825
  });
8826
8826
  I.push(Q);
8827
8827
  }
8828
8828
  } else if (z >= r && z <= s && (!(o <= this.zoom) || z % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8829
8829
  const Q = H.point([z, k], {
8830
- val: ((V = P[k].val) == null ? void 0 : V[R]) || ((J = P[k].dir) == null ? void 0 : J[R]),
8831
- spd: (ee = P[k].spd) == null ? void 0 : ee[R]
8830
+ val: ((V = L[k].val) == null ? void 0 : V[R]) || ((J = L[k].dir) == null ? void 0 : J[R]),
8831
+ spd: (ee = L[k].spd) == null ? void 0 : ee[R]
8832
8832
  });
8833
8833
  I.push(Q);
8834
8834
  }
@@ -8839,12 +8839,12 @@ const bn = {
8839
8839
  if (_) {
8840
8840
  if (!_.data) {
8841
8841
  const k = [];
8842
- for (const C in (w = _.raw) == null ? void 0 : w.LineString) {
8843
- const z = _.raw.LineString[C];
8842
+ for (const P in (w = _.raw) == null ? void 0 : w.LineString) {
8843
+ const z = _.raw.LineString[P];
8844
8844
  for (const R of z)
8845
8845
  k.push(
8846
8846
  H.lineString(R, {
8847
- val: Number(C)
8847
+ val: Number(P)
8848
8848
  })
8849
8849
  );
8850
8850
  _.data = H.featureCollection(k);
@@ -8858,41 +8858,41 @@ const bn = {
8858
8858
  }
8859
8859
  } else if (T === "current") {
8860
8860
  B = !0;
8861
- const P = ((v = this.weatherLayers[T]) == null ? void 0 : v.direction) || {};
8862
- for (const k in P)
8861
+ const L = ((v = this.weatherLayers[T]) == null ? void 0 : v.direction) || {};
8862
+ for (const k in L)
8863
8863
  if (k > c && k < n && (!(o <= this.zoom) || k % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8864
- const C = P[k].lng;
8865
- r > s ? C.forEach((z, R) => {
8864
+ const P = L[k].lng;
8865
+ r > s ? P.forEach((z, R) => {
8866
8866
  var G, Y, K, V, J, ee;
8867
8867
  if (o < 2) {
8868
8868
  if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
8869
8869
  const Q = H.point([z, k], {
8870
- val: ((G = P[k].val) == null ? void 0 : G[R]) || ((Y = P[k].dir) == null ? void 0 : Y[R]),
8871
- spd: (K = P[k].spd) == null ? void 0 : K[R]
8870
+ val: ((G = L[k].val) == null ? void 0 : G[R]) || ((Y = L[k].dir) == null ? void 0 : Y[R]),
8871
+ spd: (K = L[k].spd) == null ? void 0 : K[R]
8872
8872
  });
8873
8873
  I.push(Q);
8874
8874
  }
8875
8875
  } else if ((z >= r && z <= 180 || z >= -180 && z <= s) && (!(o <= this.zoom) || z % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8876
8876
  const Q = H.point([z, k], {
8877
- val: ((V = P[k].val) == null ? void 0 : V[R]) || ((J = P[k].dir) == null ? void 0 : J[R]),
8878
- spd: (ee = P[k].spd) == null ? void 0 : ee[R]
8877
+ val: ((V = L[k].val) == null ? void 0 : V[R]) || ((J = L[k].dir) == null ? void 0 : J[R]),
8878
+ spd: (ee = L[k].spd) == null ? void 0 : ee[R]
8879
8879
  });
8880
8880
  I.push(Q);
8881
8881
  }
8882
- }) : C.forEach((z, R) => {
8882
+ }) : P.forEach((z, R) => {
8883
8883
  var G, Y, K, V, J, ee;
8884
8884
  if (r < 2) {
8885
8885
  if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
8886
8886
  const Q = H.point([z, k], {
8887
- val: ((G = P[k].val) == null ? void 0 : G[R]) || ((Y = P[k].dir) == null ? void 0 : Y[R]),
8888
- spd: (K = P[k].spd) == null ? void 0 : K[R]
8887
+ val: ((G = L[k].val) == null ? void 0 : G[R]) || ((Y = L[k].dir) == null ? void 0 : Y[R]),
8888
+ spd: (K = L[k].spd) == null ? void 0 : K[R]
8889
8889
  });
8890
8890
  I.push(Q);
8891
8891
  }
8892
8892
  } else if (z >= r && z <= s && (!(o <= this.zoom) || z % (o < this.zoom / 2 ? 5 : 3) === 0)) {
8893
8893
  const Q = H.point([z, k], {
8894
- val: ((V = P[k].val) == null ? void 0 : V[R]) || ((J = P[k].dir) == null ? void 0 : J[R]),
8895
- spd: (ee = P[k].spd) == null ? void 0 : ee[R]
8894
+ val: ((V = L[k].val) == null ? void 0 : V[R]) || ((J = L[k].dir) == null ? void 0 : J[R]),
8895
+ spd: (ee = L[k].spd) == null ? void 0 : ee[R]
8896
8896
  });
8897
8897
  I.push(Q);
8898
8898
  }
@@ -8902,58 +8902,58 @@ const bn = {
8902
8902
  const _ = this.weatherLayers[T].speed;
8903
8903
  if (_) {
8904
8904
  if (!_.data) {
8905
- const C = [];
8906
- for (const z in (f = _.raw) == null ? void 0 : f.Polygon) {
8905
+ const P = [];
8906
+ for (const z in (y = _.raw) == null ? void 0 : y.Polygon) {
8907
8907
  const R = _.raw.Polygon[z];
8908
8908
  for (const G of R)
8909
- C.push(
8909
+ P.push(
8910
8910
  H.polygon(G, {
8911
8911
  val: Number(z)
8912
8912
  })
8913
8913
  );
8914
8914
  }
8915
- _.data = H.featureCollection(C);
8915
+ _.data = H.featureCollection(P);
8916
8916
  }
8917
- const k = o < this.zoom ? _.data.features.filter((C) => C.properties.val > 0.5) : _.data.features;
8917
+ const k = o < this.zoom ? _.data.features.filter((P) => P.properties.val > 0.5) : _.data.features;
8918
8918
  I = I.concat(k), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", a, ", total: ", e += a);
8919
8919
  }
8920
8920
  } else if (T === "wind") {
8921
8921
  B = !0;
8922
- const P = this.weatherLayers.wind.raw;
8923
- for (const _ in P)
8922
+ const L = this.weatherLayers.wind.raw;
8923
+ for (const _ in L)
8924
8924
  if (_ > c && _ < n && (!(o <= this.zoom) || _ % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8925
- const k = P[_].lng;
8926
- r > s ? k.forEach((C, z) => {
8925
+ const k = L[_].lng;
8926
+ r > s ? k.forEach((P, z) => {
8927
8927
  var R, G, Y, K;
8928
8928
  if (o < 2) {
8929
- if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
8930
- const V = H.point([C, _], {
8931
- dir: ((R = P[_].val) == null ? void 0 : R[z]) || ((G = P[_].dir) == null ? void 0 : G[z]),
8932
- spd: P[_].spd[z]
8929
+ if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
8930
+ const V = H.point([P, _], {
8931
+ dir: ((R = L[_].val) == null ? void 0 : R[z]) || ((G = L[_].dir) == null ? void 0 : G[z]),
8932
+ spd: L[_].spd[z]
8933
8933
  });
8934
8934
  I.push(V);
8935
8935
  }
8936
- } else if ((C >= r && C <= 180 || C >= -180 && C <= s) && (!(o <= this.zoom) || C % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8937
- const V = H.point([C, _], {
8938
- dir: ((Y = P[_].val) == null ? void 0 : Y[z]) || ((K = P[_].dir) == null ? void 0 : K[z]),
8939
- spd: P[_].spd[z]
8936
+ } else if ((P >= r && P <= 180 || P >= -180 && P <= s) && (!(o <= this.zoom) || P % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8937
+ const V = H.point([P, _], {
8938
+ dir: ((Y = L[_].val) == null ? void 0 : Y[z]) || ((K = L[_].dir) == null ? void 0 : K[z]),
8939
+ spd: L[_].spd[z]
8940
8940
  });
8941
8941
  I.push(V);
8942
8942
  }
8943
- }) : k.forEach((C, z) => {
8943
+ }) : k.forEach((P, z) => {
8944
8944
  var R, G, Y, K;
8945
8945
  if (o < 2) {
8946
- if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
8947
- const V = H.point([C, _], {
8948
- dir: ((R = P[_].val) == null ? void 0 : R[z]) || ((G = P[_].dir) == null ? void 0 : G[z]),
8949
- spd: P[_].spd[z]
8946
+ if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
8947
+ const V = H.point([P, _], {
8948
+ dir: ((R = L[_].val) == null ? void 0 : R[z]) || ((G = L[_].dir) == null ? void 0 : G[z]),
8949
+ spd: L[_].spd[z]
8950
8950
  });
8951
8951
  I.push(V);
8952
8952
  }
8953
- } else if (C >= r && C <= s && (!(o <= this.zoom) || C % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8954
- const V = H.point([C, _], {
8955
- dir: ((Y = P[_].val) == null ? void 0 : Y[z]) || ((K = P[_].dir) == null ? void 0 : K[z]),
8956
- spd: P[_].spd[z]
8953
+ } else if (P >= r && P <= s && (!(o <= this.zoom) || P % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
8954
+ const V = H.point([P, _], {
8955
+ dir: ((Y = L[_].val) == null ? void 0 : Y[z]) || ((K = L[_].dir) == null ? void 0 : K[z]),
8956
+ spd: L[_].spd[z]
8957
8957
  });
8958
8958
  I.push(V);
8959
8959
  }
@@ -8965,33 +8965,33 @@ const bn = {
8965
8965
  I = this.weatherLayers[T].data;
8966
8966
  else {
8967
8967
  B = !0;
8968
- const P = this.weatherLayers[T].raw;
8969
- if (P) {
8968
+ const L = this.weatherLayers[T].raw;
8969
+ if (L) {
8970
8970
  const _ = [];
8971
- for (const k in P.Polygon) {
8972
- const C = P.Polygon[k];
8973
- for (const z of C)
8971
+ for (const k in L.Polygon) {
8972
+ const P = L.Polygon[k];
8973
+ for (const z of P)
8974
8974
  _.push(
8975
8975
  H.polygon(z, {
8976
8976
  val: Number(k)
8977
8977
  })
8978
8978
  );
8979
8979
  }
8980
- for (const k in P.MultiPolygon) {
8981
- const C = P.MultiPolygon[k];
8982
- for (const z of C)
8980
+ for (const k in L.MultiPolygon) {
8981
+ const P = L.MultiPolygon[k];
8982
+ for (const z of P)
8983
8983
  _.push(
8984
8984
  H.multiPolygon(z, {
8985
8985
  val: Number(k)
8986
8986
  })
8987
8987
  );
8988
8988
  }
8989
- for (const k in P.Point) {
8990
- const C = P.Point[k];
8991
- for (let z = 0; z < ((L = C.lng) == null ? void 0 : L.length); z++)
8989
+ for (const k in L.Point) {
8990
+ const P = L.Point[k];
8991
+ for (let z = 0; z < ((C = P.lng) == null ? void 0 : C.length); z++)
8992
8992
  _.push(
8993
- H.point([C.lng[z], k], {
8994
- val: Number(C.val[z])
8993
+ H.point([P.lng[z], k], {
8994
+ val: Number(P.val[z])
8995
8995
  })
8996
8996
  );
8997
8997
  }
@@ -9004,24 +9004,24 @@ const bn = {
9004
9004
  I = this.weatherLayers[T].data;
9005
9005
  else {
9006
9006
  B = !0;
9007
- const P = this.weatherLayers[T].raw;
9008
- if (P) {
9007
+ const L = this.weatherLayers[T].raw;
9008
+ if (L) {
9009
9009
  const _ = [];
9010
- for (const k in P.LineString) {
9011
- const C = P.LineString[k];
9012
- for (const z of C)
9010
+ for (const k in L.LineString) {
9011
+ const P = L.LineString[k];
9012
+ for (const z of P)
9013
9013
  _.push(
9014
9014
  H.lineString(z, {
9015
9015
  val: Number(k)
9016
9016
  })
9017
9017
  );
9018
9018
  }
9019
- for (const k in P.Point)
9020
- P.Point[k].lng.forEach((C, z) => {
9021
- C = $.convertToStdLng(C), _.push(
9022
- H.point([C, k], {
9023
- val: P.Point[k].val[z],
9024
- type: P.Point[k].type[z]
9019
+ for (const k in L.Point)
9020
+ L.Point[k].lng.forEach((P, z) => {
9021
+ P = $.convertToStdLng(P), _.push(
9022
+ H.point([P, k], {
9023
+ val: L.Point[k].val[z],
9024
+ type: L.Point[k].type[z]
9025
9025
  })
9026
9026
  );
9027
9027
  });
@@ -9073,7 +9073,7 @@ const bn = {
9073
9073
  }, Rn = { class: "text-body-1 py-2" }, On = { class: "text-body-1 font-weight-medium" }, Bn = { class: "text-body-2 text-label" }, En = { class: "text-body-2 text-label mb-3" }, Nn = { class: "text-body-1 font-weight-medium" }, jn = { class: "text-body-2 text-label" }, Fn = { class: "text-body-2 text-label mb-3" }, Hn = { class: "text-body-1 py-2" }, Un = { class: "text-body-1 font-weight-medium" }, Wn = { class: "text-body-2 text-label" }, Gn = { class: "text-body-2 text-label mb-3" }, Vn = { class: "text-body-1 font-weight-medium" }, Zn = { class: "text-body-2 text-label" }, qn = { class: "text-body-2 text-label mb-3" }, Yn = { class: "text-body-1 py-2" }, Kn = { class: "text-body-1 font-weight-medium" }, Xn = { class: "text-body-2 text-label" }, $n = { class: "text-body-2 text-label mb-3" };
9074
9074
  function Qn(t, e, a, i, o, r) {
9075
9075
  var pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e;
9076
- const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"), g = x("VRow"), p = x("VCardText"), y = x("VDivider"), w = x("VCard"), v = x("VSwitch"), f = x("VCardTitle"), L = x("VCardItem"), T = x("VCheckbox"), B = x("VRadio"), I = x("VBtnToggle"), P = x("IdmWindBarb"), _ = x("IdmSigWaveHeight"), k = x("IdmCurrentDirection"), C = x("IdmPrmsl"), z = x("IdmWindParticle"), R = x("IdmCurrentParticle"), G = x("IdmWave"), Y = x("IdmSwell"), K = x("IdmIceEdge"), V = x("IdmIceCover"), J = x("IdmIceThickness"), ee = x("IdmPrecip3h"), Q = x("IdmVisibility"), re = x("IdmWaterTemp"), de = x("IdmTemp");
9076
+ const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"), g = x("VRow"), p = x("VCardText"), f = x("VDivider"), w = x("VCard"), v = x("VSwitch"), y = x("VCardTitle"), C = x("VCardItem"), T = x("VCheckbox"), B = x("VRadio"), I = x("VBtnToggle"), L = x("IdmWindBarb"), _ = x("IdmSigWaveHeight"), k = x("IdmCurrentDirection"), P = x("IdmPrmsl"), z = x("IdmWindParticle"), R = x("IdmCurrentParticle"), G = x("IdmWave"), Y = x("IdmSwell"), K = x("IdmIceEdge"), V = x("IdmIceCover"), J = x("IdmIceThickness"), ee = x("IdmPrecip3h"), Q = x("IdmVisibility"), re = x("IdmWaterTemp"), de = x("IdmTemp");
9077
9077
  return b(), S("div", wn, [
9078
9078
  l("div", {
9079
9079
  class: "menu-bar-box transition pa-1",
@@ -9164,7 +9164,7 @@ function Qn(t, e, a, i, o, r) {
9164
9164
  _: 1,
9165
9165
  __: [9]
9166
9166
  }),
9167
- d(y, { vertical: "" }),
9167
+ d(f, { vertical: "" }),
9168
9168
  d(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
9169
9169
  default: u(() => [
9170
9170
  e[10] || (e[10] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wave Height", -1)),
@@ -9196,7 +9196,7 @@ function Qn(t, e, a, i, o, r) {
9196
9196
  _: 1,
9197
9197
  __: [10]
9198
9198
  }),
9199
- d(y, { vertical: "" }),
9199
+ d(f, { vertical: "" }),
9200
9200
  d(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
9201
9201
  default: u(() => [
9202
9202
  e[11] || (e[11] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Current", -1)),
@@ -9272,9 +9272,9 @@ function Qn(t, e, a, i, o, r) {
9272
9272
  elevation: "0"
9273
9273
  }, {
9274
9274
  default: u(() => [
9275
- d(L, { class: "border-b-thin" }, {
9275
+ d(C, { class: "border-b-thin" }, {
9276
9276
  default: u(() => [
9277
- d(f, {
9277
+ d(y, {
9278
9278
  class: "text-subtitle-1 font-weight-medium",
9279
9279
  style: { "font-size": "16px !important" }
9280
9280
  }, {
@@ -9312,9 +9312,9 @@ function Qn(t, e, a, i, o, r) {
9312
9312
  elevation: "0"
9313
9313
  }, {
9314
9314
  default: u(() => [
9315
- d(L, { class: "border-b-thin" }, {
9315
+ d(C, { class: "border-b-thin" }, {
9316
9316
  default: u(() => [
9317
- d(f, {
9317
+ d(y, {
9318
9318
  class: "text-subtitle-1 font-weight-medium",
9319
9319
  style: { "font-size": "16px !important" }
9320
9320
  }, {
@@ -9427,9 +9427,9 @@ function Qn(t, e, a, i, o, r) {
9427
9427
  elevation: "0"
9428
9428
  }, {
9429
9429
  default: u(() => [
9430
- d(L, { class: "border-b-thin" }, {
9430
+ d(C, { class: "border-b-thin" }, {
9431
9431
  default: u(() => [
9432
- d(f, {
9432
+ d(y, {
9433
9433
  class: "text-subtitle-1 font-weight-medium",
9434
9434
  style: { "font-size": "16px !important" }
9435
9435
  }, {
@@ -9452,7 +9452,7 @@ function Qn(t, e, a, i, o, r) {
9452
9452
  l("div", Nn, h((E = (Ee = (Be = o.models) == null ? void 0 : Be.weather) == null ? void 0 : Ee.ECMWF) == null ? void 0 : E.source) + " " + h((Ve = (Ge = (Z = o.models) == null ? void 0 : Z.weather) == null ? void 0 : Ge.ECMWF) == null ? void 0 : Ve.spatialResolution) + h(t.$t("units.km")) + " " + h((Ke = (Ye = (Te = (Ze = o.models) == null ? void 0 : Ze.weather) == null ? void 0 : Te.ECMWF) == null ? void 0 : Ye.meta) == null ? void 0 : Ke.days) + h(t.$t("units.days")), 1),
9453
9453
  l("div", jn, h(t.$t("weather.source")) + ": ECMWF", 1),
9454
9454
  l("div", Fn, h(t.$t("weather.lastUpdate")) + ": " + h(r.computeDateZ((Je = (Qe = ($e = (Xe = o.models) == null ? void 0 : Xe.weather) == null ? void 0 : $e.ECMWF) == null ? void 0 : Qe.meta) == null ? void 0 : Je.initialisationTime)), 1),
9455
- d(y),
9455
+ d(f),
9456
9456
  l("div", Hn, h(t.$t("weather.wave")), 1),
9457
9457
  l("div", Un, h((ot = (at = (tt = (et = o.models) == null ? void 0 : et.marine) == null ? void 0 : tt.wave) == null ? void 0 : at.NOAA) == null ? void 0 : ot.source) + " " + h((st = (lt = (rt = (it = o.models) == null ? void 0 : it.marine) == null ? void 0 : rt.wave) == null ? void 0 : lt.NOAA) == null ? void 0 : st.spatialResolution) + h(t.$t("units.km")) + " " + h((ht = (dt = (mt = (ct = (nt = o.models) == null ? void 0 : nt.marine) == null ? void 0 : ct.wave) == null ? void 0 : mt.NOAA) == null ? void 0 : dt.meta) == null ? void 0 : ht.days) + h(t.$t("units.days")), 1),
9458
9458
  l("div", Wn, h(t.$t("weather.source")) + ": NOAA", 1),
@@ -9460,7 +9460,7 @@ function Qn(t, e, a, i, o, r) {
9460
9460
  l("div", Vn, h((vt = (xt = (wt = (bt = o.models) == null ? void 0 : bt.marine) == null ? void 0 : wt.wave) == null ? void 0 : xt.ECMWF) == null ? void 0 : vt.source) + " " + h((Lt = (zt = (kt = (_t = o.models) == null ? void 0 : _t.marine) == null ? void 0 : kt.wave) == null ? void 0 : zt.ECMWF) == null ? void 0 : Lt.spatialResolution) + h(t.$t("units.km")) + " " + h((It = (St = (Tt = (Ct = (Pt = o.models) == null ? void 0 : Pt.marine) == null ? void 0 : Ct.wave) == null ? void 0 : Tt.ECMWF) == null ? void 0 : St.meta) == null ? void 0 : It.days) + h(t.$t("units.days")), 1),
9461
9461
  l("div", Zn, h(t.$t("weather.source")) + ": ECMWF", 1),
9462
9462
  l("div", qn, h(t.$t("weather.lastUpdate")) + ": " + h(r.computeDateZ((Ot = (Rt = (Dt = (At = (Mt = o.models) == null ? void 0 : Mt.marine) == null ? void 0 : At.wave) == null ? void 0 : Dt.ECMWF) == null ? void 0 : Rt.meta) == null ? void 0 : Ot.initialisationTime)), 1),
9463
- d(y),
9463
+ d(f),
9464
9464
  l("div", Yn, h(t.$t("weather.currents")), 1),
9465
9465
  l("div", Kn, h((jt = (Nt = (Et = (Bt = o.models) == null ? void 0 : Bt.marine) == null ? void 0 : Et.current) == null ? void 0 : Nt.ECMWF) == null ? void 0 : jt.source) + " " + h((Wt = (Ut = (Ht = (Ft = o.models) == null ? void 0 : Ft.marine) == null ? void 0 : Ht.current) == null ? void 0 : Ut.ECMWF) == null ? void 0 : Wt.spatialResolution) + h(t.$t("units.km")) + " " + h((Yt = (qt = (Zt = (Vt = (Gt = o.models) == null ? void 0 : Gt.marine) == null ? void 0 : Vt.current) == null ? void 0 : Zt.ECMWF) == null ? void 0 : qt.meta) == null ? void 0 : Yt.days) + h(t.$t("units.days")), 1),
9466
9466
  l("div", Xn, h(t.$t("weather.source")) + ": ECMWF", 1),
@@ -9474,7 +9474,7 @@ function Qn(t, e, a, i, o, r) {
9474
9474
  })
9475
9475
  ], 2)
9476
9476
  ], 6),
9477
- a.map ? (b(), A(P, O({
9477
+ a.map ? (b(), A(L, O({
9478
9478
  key: 1,
9479
9479
  ref: "windBarb",
9480
9480
  map: a.map,
@@ -9499,7 +9499,7 @@ function Qn(t, e, a, i, o, r) {
9499
9499
  current: (X = o.weatherLayers) == null ? void 0 : X.current,
9500
9500
  "menu-toggle": a.menuToggle
9501
9501
  }, t.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : D("", !0),
9502
- a.map ? (b(), A(C, O({
9502
+ a.map ? (b(), A(P, O({
9503
9503
  key: 4,
9504
9504
  map: a.map,
9505
9505
  "before-layer": "empty-layer-2",
@@ -9894,18 +9894,18 @@ class Zo {
9894
9894
  const o = e.toLowerCase().split(","), r = [], s = [];
9895
9895
  for (const c of o) {
9896
9896
  let n = ta.find((p) => {
9897
- var y, w, v;
9898
- return ((y = p.models) == null ? void 0 : y.includes(c)) || ((w = p.alias) == null ? void 0 : w.toLowerCase()) === c || ((v = p.name) == null ? void 0 : v.toLowerCase()) === c;
9897
+ var f, w, v;
9898
+ return ((f = p.models) == null ? void 0 : f.includes(c)) || ((w = p.alias) == null ? void 0 : w.toLowerCase()) === c || ((v = p.name) == null ? void 0 : v.toLowerCase()) === c;
9899
9899
  }), g = aa.find((p) => {
9900
- var y, w, v;
9901
- return ((y = p.models) == null ? void 0 : y.includes(c)) || ((w = p.alias) == null ? void 0 : w.toLowerCase()) === c || ((v = p.name) == null ? void 0 : v.toLowerCase()) === c;
9900
+ var f, w, v;
9901
+ return ((f = p.models) == null ? void 0 : f.includes(c)) || ((w = p.alias) == null ? void 0 : w.toLowerCase()) === c || ((v = p.name) == null ? void 0 : v.toLowerCase()) === c;
9902
9902
  });
9903
9903
  n = n || ta.find((p) => {
9904
- var y, w;
9905
- return ((y = p.alias) == null ? void 0 : y.toLowerCase()) === ((w = g == null ? void 0 : g.alias) == null ? void 0 : w.toLowerCase());
9904
+ var f, w;
9905
+ return ((f = p.alias) == null ? void 0 : f.toLowerCase()) === ((w = g == null ? void 0 : g.alias) == null ? void 0 : w.toLowerCase());
9906
9906
  }), g = g || aa.find((p) => {
9907
- var y, w;
9908
- return ((y = p.alias) == null ? void 0 : y.toLowerCase()) === ((w = n == null ? void 0 : n.alias) == null ? void 0 : w.toLowerCase());
9907
+ var f, w;
9908
+ return ((f = p.alias) == null ? void 0 : f.toLowerCase()) === ((w = n == null ? void 0 : n.alias) == null ? void 0 : w.toLowerCase());
9909
9909
  }), n = n || ta[0], g = g || aa[0], r.push((a = n.models) != null && a.includes(c) ? c : n.model), s.push((i = g.models) != null && i.includes(c) ? c : g.model);
9910
9910
  }
9911
9911
  return {
@@ -9923,7 +9923,7 @@ class Zo {
9923
9923
  }), o;
9924
9924
  }
9925
9925
  static pickHourly(e, a) {
9926
- var i, o, r, s, c, n, g, p, y, w, v, f, L, T, B, I, P, _, k, C, z, R, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e, U, ae, Ne, Ie;
9926
+ var i, o, r, s, c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e, U, ae, Ne, Ie;
9927
9927
  const ge = typeof a == "string" ? M(a) : a, fe = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, Ce = M((o = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : o.date).utc(), te = Ce.clone().add((c = (s = (r = fe == null ? void 0 : fe[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), le = Ce.clone().add((p = (g = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : g.time) == null ? void 0 : p.at(-1), "h"), Oe = [];
9928
9928
  if (ge.isBetween(te, le, "millisecond", "[]")) {
9929
9929
  const N = ge.utc().diff(te, "h", !1);
@@ -9933,13 +9933,13 @@ class Zo {
9933
9933
  for (const E of fe) {
9934
9934
  const Z = E == null ? void 0 : E.hourly;
9935
9935
  for (let Te = N - (N - 1) % 3; Te <= N; Te++)
9936
- Be += (y = Z == null ? void 0 : Z.precipitation) == null ? void 0 : y.at(Te);
9936
+ Be += (f = Z == null ? void 0 : Z.precipitation) == null ? void 0 : f.at(Te);
9937
9937
  for (let Te = N - (N - 1) % 6; Te <= N; Te++)
9938
9938
  Ee += (w = Z == null ? void 0 : Z.precipitation) == null ? void 0 : w.at(Te);
9939
9939
  ye = {
9940
9940
  temp: (v = Z == null ? void 0 : Z.temperature_2m) == null ? void 0 : v.at(N),
9941
- apparentTemp: (f = Z == null ? void 0 : Z.apparent_temperature) == null ? void 0 : f.at(N),
9942
- rh: (L = Z == null ? void 0 : Z.relative_humidity_2m) == null ? void 0 : L.at(N),
9941
+ apparentTemp: (y = Z == null ? void 0 : Z.apparent_temperature) == null ? void 0 : y.at(N),
9942
+ rh: (C = Z == null ? void 0 : Z.relative_humidity_2m) == null ? void 0 : C.at(N),
9943
9943
  dp: (T = Z == null ? void 0 : Z.dew_point_2m) == null ? void 0 : T.at(N),
9944
9944
  precip: {
9945
9945
  probability: (B = Z == null ? void 0 : Z.precipitation_probability) == null ? void 0 : B.at(N),
@@ -9947,10 +9947,10 @@ class Zo {
9947
9947
  sum3Hours: Math.round(Be * 100) / 100,
9948
9948
  sum6Hours: Math.round(Ee * 100) / 100
9949
9949
  },
9950
- pmsl: (P = Z == null ? void 0 : Z.pressure_msl) == null ? void 0 : P.at(N),
9950
+ pmsl: (L = Z == null ? void 0 : Z.pressure_msl) == null ? void 0 : L.at(N),
9951
9951
  psurf: (_ = Z == null ? void 0 : Z.surface_pressure) == null ? void 0 : _.at(N),
9952
9952
  code: (k = Z == null ? void 0 : Z.weather_code) == null ? void 0 : k.at(N),
9953
- visibility: this.m2nm((C = Z == null ? void 0 : Z.visibility) == null ? void 0 : C.at(N)),
9953
+ visibility: this.m2nm((P = Z == null ? void 0 : Z.visibility) == null ? void 0 : P.at(N)),
9954
9954
  wind: {
9955
9955
  speed: (z = Z == null ? void 0 : Z.wind_speed_10m) == null ? void 0 : z.at(N),
9956
9956
  kts: (R = Z == null ? void 0 : Z.wind_speed_10m) == null ? void 0 : R.at(N),
@@ -10010,7 +10010,7 @@ class Zo {
10010
10010
  return Oe;
10011
10011
  }
10012
10012
  static toLegacy(e) {
10013
- var a, i, o, r, s, c, n, g, p, y;
10013
+ var a, i, o, r, s, c, n, g, p, f;
10014
10014
  return {
10015
10015
  wind: (a = e == null ? void 0 : e.weather) == null ? void 0 : a.wind,
10016
10016
  visibility: (i = e == null ? void 0 : e.weather) == null ? void 0 : i.visibility,
@@ -10022,7 +10022,7 @@ class Zo {
10022
10022
  precip: (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip,
10023
10023
  code: (g = e == null ? void 0 : e.weather) == null ? void 0 : g.code,
10024
10024
  name: (p = e == null ? void 0 : e.weather) == null ? void 0 : p.name,
10025
- url: (y = e == null ? void 0 : e.weather) == null ? void 0 : y.url,
10025
+ url: (f = e == null ? void 0 : e.weather) == null ? void 0 : f.url,
10026
10026
  wave: e == null ? void 0 : e.wave,
10027
10027
  current: e == null ? void 0 : e.current,
10028
10028
  sst: e == null ? void 0 : e.sst,
@@ -10032,7 +10032,7 @@ class Zo {
10032
10032
  };
10033
10033
  }
10034
10034
  static pickDaily(e, a) {
10035
- var i, o, r, s, c, n, g, p, y, w, v, f, L, T, B, I, P, _, k, C, z, R, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe, Ae, De;
10035
+ var i, o, r, s, c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe, Ae, De;
10036
10036
  const Re = typeof a == "string" ? M(a) : a, _e = e == null ? void 0 : e.weather, U = e == null ? void 0 : e.marine, ae = M((r = (o = (i = _e == null ? void 0 : _e[0]) == null ? void 0 : i.daily) == null ? void 0 : o.time) == null ? void 0 : r.at(0)), Ne = M((n = (c = (s = _e == null ? void 0 : _e[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Ie = [];
10037
10037
  if (Re.isBetween(ae, Ne, "millisecond", "[]")) {
10038
10038
  let ge, fe;
@@ -10044,24 +10044,24 @@ class Zo {
10044
10044
  code: (g = te.weather_code) == null ? void 0 : g.at(W),
10045
10045
  temp: {
10046
10046
  max: (p = te.temperature_2m_max) == null ? void 0 : p.at(W),
10047
- min: (y = te.temperature_2m_min) == null ? void 0 : y.at(W),
10047
+ min: (f = te.temperature_2m_min) == null ? void 0 : f.at(W),
10048
10048
  mean: (w = te.temperature_2m_mean) == null ? void 0 : w.at(W)
10049
10049
  },
10050
10050
  apparentTemp: {
10051
10051
  max: (v = te.apparent_temperature_max) == null ? void 0 : v.at(W),
10052
- min: (f = te.apparent_temperature_min) == null ? void 0 : f.at(W)
10052
+ min: (y = te.apparent_temperature_min) == null ? void 0 : y.at(W)
10053
10053
  },
10054
10054
  precip: {
10055
- sum: (L = te.precipitation_sum) == null ? void 0 : L.at(W),
10055
+ sum: (C = te.precipitation_sum) == null ? void 0 : C.at(W),
10056
10056
  rainSum: (T = te.rain_sum) == null ? void 0 : T.at(W),
10057
10057
  snowfallSum: (B = te.snowfall_sum) == null ? void 0 : B.at(W),
10058
10058
  showersSum: (I = te.showers_sum) == null ? void 0 : I.at(W),
10059
- hours: (P = te.precipitation_hours) == null ? void 0 : P.at(W),
10059
+ hours: (L = te.precipitation_hours) == null ? void 0 : L.at(W),
10060
10060
  probability: (_ = te.precipitation_probability_max) == null ? void 0 : _.at(W)
10061
10061
  },
10062
10062
  rh: {
10063
10063
  max: (k = te.relative_humidity_2m_max) == null ? void 0 : k.at(W),
10064
- min: (C = te.relative_humidity_2m_min) == null ? void 0 : C.at(W),
10064
+ min: (P = te.relative_humidity_2m_min) == null ? void 0 : P.at(W),
10065
10065
  mean: (z = te.relative_humidity_2m_mean) == null ? void 0 : z.at(W)
10066
10066
  },
10067
10067
  wind: {
@@ -10663,7 +10663,7 @@ const ec = {
10663
10663
  methods: {
10664
10664
  handleMenuToggle() {
10665
10665
  var t, e, a;
10666
- this.toggle = !this.toggle, localStorage.setItem(this.tropicalCacheKey, this.toggle), this.toggle ? this.fetchTropicals() : (a = (e = (t = this.$parent) == null ? void 0 : t.$refs) == null ? void 0 : e.idmBottomBar) == null || a.handleToggle("tropical", !1);
10666
+ this.toggle = !this.toggle, localStorage.setItem(this.tropicalCacheKey, this.toggle), this.toggle ? this.fetchTropicals() : (this.handleClear(), (a = (e = (t = this.$parent) == null ? void 0 : t.$refs) == null ? void 0 : e.idmBottomBar) == null || a.handleToggle("tropical", !1));
10667
10667
  },
10668
10668
  async fetchTropicals() {
10669
10669
  var o, r, s;
@@ -10684,10 +10684,10 @@ const ec = {
10684
10684
  },
10685
10685
  responseType: /\.(jpg|png)$/.test(g.tropicals) ? "blob" : "json"
10686
10686
  }).then((p) => {
10687
- var v, f, L;
10688
- const y = Vo.convert2Geojson(((v = p == null ? void 0 : p.data) == null ? void 0 : v.data) || (p == null ? void 0 : p.data));
10689
- ((L = (f = p == null ? void 0 : p.config) == null ? void 0 : f.headers) == null ? void 0 : L.key) && y && (this.tropicals = {
10690
- data: y,
10687
+ var v, y, C;
10688
+ const f = Vo.convert2Geojson(((v = p == null ? void 0 : p.data) == null ? void 0 : v.data) || (p == null ? void 0 : p.data));
10689
+ ((C = (y = p == null ? void 0 : p.config) == null ? void 0 : y.headers) == null ? void 0 : C.key) && f && (this.tropicals = {
10690
+ data: f,
10691
10691
  active: !0,
10692
10692
  cached: !0,
10693
10693
  type: "json",
@@ -10709,15 +10709,15 @@ const ec = {
10709
10709
  }), this.handleInit();
10710
10710
  },
10711
10711
  handleInit() {
10712
- var t, e, a, i, o, r, s, c, n, g, p, y;
10713
- this.handleClear(), this.tropicals && this.map && (this.handleRender(), (t = this.map) == null || t.on("click", this.hoverLayers, this.handleClick), (e = this.map) == null || e.on("mousemove", this.hoverLayers, this.handleHover), (a = this.map) == null || a.on("mouseleave", this.hoverLayers, this.handleLeave)), ((r = (o = (i = this.tropicals) == null ? void 0 : i.data) == null ? void 0 : o.features) == null ? void 0 : r.length) > 0 ? (n = (c = (s = this.$parent) == null ? void 0 : s.$refs) == null ? void 0 : c.idmBottomBar) == null || n.handleToggle("tropical", !0) : (y = (p = (g = this.$parent) == null ? void 0 : g.$refs) == null ? void 0 : p.idmBottomBar) == null || y.handleToggle("tropical", !1);
10712
+ var t, e, a, i, o, r, s, c, n, g, p, f;
10713
+ this.handleClear(), this.tropicals && this.map && (this.handleRender(), (t = this.map) == null || t.on("click", this.hoverLayers, this.handleClick), (e = this.map) == null || e.on("mousemove", this.hoverLayers, this.handleHover), (a = this.map) == null || a.on("mouseleave", this.hoverLayers, this.handleLeave)), ((r = (o = (i = this.tropicals) == null ? void 0 : i.data) == null ? void 0 : o.features) == null ? void 0 : r.length) > 0 ? (n = (c = (s = this.$parent) == null ? void 0 : s.$refs) == null ? void 0 : c.idmBottomBar) == null || n.handleToggle("tropical", !0) : (f = (p = (g = this.$parent) == null ? void 0 : g.$refs) == null ? void 0 : p.idmBottomBar) == null || f.handleToggle("tropical", !1);
10714
10714
  },
10715
10715
  handleRender() {
10716
10716
  var e, a, i, o, r, s, c, n, g, p;
10717
10717
  if (this.tropicals && this.map) {
10718
- const y = (/* @__PURE__ */ new Date()).valueOf();
10718
+ const f = (/* @__PURE__ */ new Date()).valueOf();
10719
10719
  let w = 0, v = 0;
10720
- (e = this.map) != null && e.getSource(this.source) ? ((i = this.map) == null || i.getSource(this.source).setData((a = this.tropicals) != null && a.active ? this.tropicals.data : this.empty), v = (/* @__PURE__ */ new Date()).valueOf() - (y + w), console.log("[tropicals] update elapsed: ", v, ", total: ", w += v)) : (this.map.addSource(this.source, {
10720
+ (e = this.map) != null && e.getSource(this.source) ? ((i = this.map) == null || i.getSource(this.source).setData((a = this.tropicals) != null && a.active ? this.tropicals.data : this.empty), v = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropicals] update elapsed: ", v, ", total: ", w += v)) : (this.map.addSource(this.source, {
10721
10721
  type: "geojson",
10722
10722
  data: (o = this.tropicals) != null && o.active ? (r = this.tropicals) == null ? void 0 : r.data : this.empty
10723
10723
  }), this.map.addLayer({
@@ -10814,7 +10814,7 @@ const ec = {
10814
10814
  ],
10815
10815
  "text-halo-width": 4
10816
10816
  }
10817
- }), v = (/* @__PURE__ */ new Date()).valueOf() - (y + w), console.log("[tropical] add elapsed: ", v, ", total: ", w += v)), (s = this.map) != null && s.getSource(this.clusterSource) ? ((n = this.map) == null || n.getSource(this.clusterSource).setData((c = this.tropicals) != null && c.active ? this.tropicals.data : this.empty), v = (/* @__PURE__ */ new Date()).valueOf() - (y + w), console.log("[tropical] update elapsed: ", v, ", total: ", w += v)) : (this.map.addSource(this.clusterSource, {
10817
+ }), v = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropical] add elapsed: ", v, ", total: ", w += v)), (s = this.map) != null && s.getSource(this.clusterSource) ? ((n = this.map) == null || n.getSource(this.clusterSource).setData((c = this.tropicals) != null && c.active ? this.tropicals.data : this.empty), v = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropical] update elapsed: ", v, ", total: ", w += v)) : (this.map.addSource(this.clusterSource, {
10818
10818
  type: "geojson",
10819
10819
  data: (g = this.tropicals) != null && g.active ? (p = this.tropicals) == null ? void 0 : p.data : this.empty
10820
10820
  // cluster: true,
@@ -10930,7 +10930,7 @@ const ec = {
10930
10930
  "text-halo-color": "#ffffff",
10931
10931
  "text-halo-width": 1
10932
10932
  }
10933
- }), v = (/* @__PURE__ */ new Date()).valueOf() - (y + w), console.log("[tropical] add elapsed: ", v, ", total: ", w += v));
10933
+ }), v = (/* @__PURE__ */ new Date()).valueOf() - (f + w), console.log("[tropical] add elapsed: ", v, ", total: ", w += v));
10934
10934
  }
10935
10935
  this.handleDrawCircle();
10936
10936
  const t = Vo.interpolate(this.tropicals, 1);
@@ -10941,7 +10941,7 @@ const ec = {
10941
10941
  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((r) => r == null ? void 0 : r.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource)), (e = this.map) == null || e.off("click", this.hoverLayers, this.handleClick), (a = this.map) == null || a.off("mousemove", this.hoverLayers, this.handleHover), (i = this.map) == null || i.off("mouseleave", this.hoverLayers, this.handleLeave), this.showTropicalsInfo = !1, (o = this.activeTropicalsMarker) == null || o.remove(), this.activeTropicalsMarker = void 0;
10942
10942
  },
10943
10943
  handleDateChange() {
10944
- var t, e, a, i, o, r, s, c, n, g, p, y, w, v, f, L, T, B, I, P, _, k, C, z, R, G, Y, K, V, J, ee, Q;
10944
+ var t, e, a, i, o, r, s, c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q;
10945
10945
  if ((t = this.interpolateMarkers) == null || t.forEach((re) => re == null ? void 0 : re.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
10946
10946
  const re = M(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), de = this.interpolateData.filter((X) => X.properties.date === (re == null ? void 0 : re.format()) && !X.properties.disabled), pe = this.handleComputePolygons(de), se = H.featureCollection([...de]);
10947
10947
  pe.forEach((X) => {
@@ -10963,7 +10963,7 @@ const ec = {
10963
10963
  for (const X of de)
10964
10964
  if (!X.properties.disabled) {
10965
10965
  let oe = "#f44336";
10966
- ((c = (s = X.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = X.properties) == null ? void 0 : n.wind) != null && g.kts) ? oe = "#03f869" : ((y = (p = X.properties) == null ? void 0 : p.wind) == null ? void 0 : y.kts) >= 32 && ((v = (w = X.properties) == null ? void 0 : w.wind) == null ? void 0 : v.kts) < 47 ? oe = "#f2f202" : ((L = (f = X.properties) == null ? void 0 : f.wind) == null ? void 0 : L.kts) >= 47 && ((B = (T = X.properties) == null ? void 0 : T.wind) == null ? void 0 : B.kts) < 63 ? oe = "#ff9100" : ((P = (I = X.properties) == null ? void 0 : I.wind) == null ? void 0 : P.kts) >= 63 && ((k = (_ = X.properties) == null ? void 0 : _.wind) == null ? void 0 : k.kts) < 79 ? oe = "#f44336" : ((z = (C = X.properties) == null ? void 0 : C.wind) == null ? void 0 : z.kts) >= 79 && ((G = (R = X.properties) == null ? void 0 : R.wind) == null ? void 0 : G.kts) < 94 ? oe = "#f903d0" : ((K = (Y = X.properties) == null ? void 0 : Y.wind) == null ? void 0 : K.kts) >= 94 ? oe = "#8702f9" : oe = "#f44336";
10966
+ ((c = (s = X.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = X.properties) == null ? void 0 : n.wind) != null && g.kts) ? oe = "#03f869" : ((f = (p = X.properties) == null ? void 0 : p.wind) == null ? void 0 : f.kts) >= 32 && ((v = (w = X.properties) == null ? void 0 : w.wind) == null ? void 0 : v.kts) < 47 ? oe = "#f2f202" : ((C = (y = X.properties) == null ? void 0 : y.wind) == null ? void 0 : C.kts) >= 47 && ((B = (T = X.properties) == null ? void 0 : T.wind) == null ? void 0 : B.kts) < 63 ? oe = "#ff9100" : ((L = (I = X.properties) == null ? void 0 : I.wind) == null ? void 0 : L.kts) >= 63 && ((k = (_ = X.properties) == null ? void 0 : _.wind) == null ? void 0 : k.kts) < 79 ? oe = "#f44336" : ((z = (P = X.properties) == null ? void 0 : P.wind) == null ? void 0 : z.kts) >= 79 && ((G = (R = X.properties) == null ? void 0 : R.wind) == null ? void 0 : G.kts) < 94 ? oe = "#f903d0" : ((K = (Y = X.properties) == null ? void 0 : Y.wind) == null ? void 0 : K.kts) >= 94 ? oe = "#8702f9" : oe = "#f44336";
10967
10967
  const ue = `<svg t="1719918955501"
10968
10968
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
10969
10969
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -10987,7 +10987,7 @@ const ec = {
10987
10987
  (ee = this.map) != null && ee.getSource(this.interpolateSource) && ((Q = this.map) == null || Q.getSource(this.interpolateSource).setData(this.empty));
10988
10988
  },
10989
10989
  handleClick(t) {
10990
- var o, r, s, c, n, g, p, y;
10990
+ var o, r, s, c, n, g, p, f;
10991
10991
  const e = t.features[0], a = (r = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : r.features.filter(
10992
10992
  (w) => {
10993
10993
  var v;
@@ -11003,7 +11003,7 @@ const ec = {
11003
11003
  name: (n = e == null ? void 0 : e.properties) == null ? void 0 : n.name,
11004
11004
  forecasts: a.map((w) => w.properties),
11005
11005
  history: (g = i[0]) == null ? void 0 : g.properties,
11006
- showCircle: (y = (p = a[0]) == null ? void 0 : p.properties) == null ? void 0 : y.showCircle
11006
+ showCircle: (f = (p = a[0]) == null ? void 0 : p.properties) == null ? void 0 : f.showCircle
11007
11007
  }, this.showTropicalsInfo = !0, this.$nextTick(() => {
11008
11008
  const w = document.getElementById("idm-tropical-gl4-info");
11009
11009
  this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]) : this.activeTropicalsMarker = new ve.Marker(w).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
@@ -11116,7 +11116,7 @@ const ec = {
11116
11116
  style: { height: "80px" }
11117
11117
  }, kc = { class: "pa-1 d-flex justify-space-between align-center" }, zc = { class: "pa-1 d-flex justify-space-between align-center" };
11118
11118
  function Lc(t, e, a, i, o, r) {
11119
- const s = x("VBtn"), c = x("VTooltip"), n = x("VCardText"), g = x("VDivider"), p = x("VCardActions"), y = x("VCard");
11119
+ const s = x("VBtn"), c = x("VTooltip"), n = x("VCardText"), g = x("VDivider"), p = x("VCardActions"), f = x("VCard");
11120
11120
  return b(), S("div", tc, [
11121
11121
  l("div", {
11122
11122
  class: "menu-bar-box transition pa-1",
@@ -11145,25 +11145,25 @@ function Lc(t, e, a, i, o, r) {
11145
11145
  }, 8, ["text"])
11146
11146
  ], 4),
11147
11147
  o.showTropicalsInfo && !t.$attrs.hideTropicalsLegend ? (b(), S("div", ac, [
11148
- d(y, {
11148
+ d(f, {
11149
11149
  width: "400",
11150
11150
  elevation: "16"
11151
11151
  }, {
11152
11152
  default: u(() => [
11153
11153
  d(n, null, {
11154
11154
  default: u(() => {
11155
- var w, v, f, L, T, B, I, P, _, k;
11155
+ var w, v, y, C, T, B, I, L, _, k;
11156
11156
  return [
11157
11157
  l("div", oc, [
11158
11158
  l("span", ic, h((w = o.activeTropicals) == null ? void 0 : w.name), 1),
11159
- (f = (v = o.activeTropicals) == null ? void 0 : v.history) != null && f.level ? (b(), S("span", rc, ", " + h((T = (L = o.activeTropicals) == null ? void 0 : L.history) == null ? void 0 : T.level), 1)) : D("", !0)
11159
+ (y = (v = o.activeTropicals) == null ? void 0 : v.history) != null && y.level ? (b(), S("span", rc, ", " + h((T = (C = o.activeTropicals) == null ? void 0 : C.history) == null ? void 0 : T.level), 1)) : D("", !0)
11160
11160
  ]),
11161
11161
  d(s, {
11162
11162
  icon: "",
11163
11163
  density: "compact",
11164
11164
  variant: "plain",
11165
11165
  class: "close",
11166
- onClick: e[0] || (e[0] = (C) => o.showTropicalsInfo = !1)
11166
+ onClick: e[0] || (e[0] = (P) => o.showTropicalsInfo = !1)
11167
11167
  }, {
11168
11168
  default: u(() => e[5] || (e[5] = [
11169
11169
  l("i", { class: "iconfont icon-close text-label text-h4" }, null, -1)
@@ -11173,7 +11173,7 @@ function Lc(t, e, a, i, o, r) {
11173
11173
  }),
11174
11174
  l("div", lc, [
11175
11175
  l("span", sc, h(t.$t("actions.lastUpdate")) + ": ", 1),
11176
- l("span", null, h(r.computeTime(((I = (B = o.activeTropicals) == null ? void 0 : B.history) == null ? void 0 : I.updated) || ((k = (_ = (P = o.activeTropicals) == null ? void 0 : P.forecasts) == null ? void 0 : _.filter((C) => !C.disabled)[0]) == null ? void 0 : k.date))), 1)
11176
+ l("span", null, h(r.computeTime(((I = (B = o.activeTropicals) == null ? void 0 : B.history) == null ? void 0 : I.updated) || ((k = (_ = (L = o.activeTropicals) == null ? void 0 : L.forecasts) == null ? void 0 : _.filter((P) => !P.disabled)[0]) == null ? void 0 : k.date))), 1)
11177
11177
  ])
11178
11178
  ];
11179
11179
  }),
@@ -11182,13 +11182,13 @@ function Lc(t, e, a, i, o, r) {
11182
11182
  d(g),
11183
11183
  d(n, { class: "text-body-1" }, {
11184
11184
  default: u(() => {
11185
- var w, v, f, L, T, B, I, P, _;
11185
+ var w, v, y, C, T, B, I, L, _;
11186
11186
  return [
11187
11187
  l("div", nc, [
11188
11188
  l("div", cc, [
11189
11189
  l("label", mc, h(t.$t("weather.windSpeed")) + " : ", 1),
11190
11190
  l("span", null, h(((v = (w = o.activeTropicals) == null ? void 0 : w.history) == null ? void 0 : v.kts) || "-") + " kts", 1),
11191
- l("span", null, ", BF " + h(r.computeBF(((L = (f = o.activeTropicals) == null ? void 0 : f.history) == null ? void 0 : L.kts) || "-")), 1)
11191
+ l("span", null, ", BF " + h(r.computeBF(((C = (y = o.activeTropicals) == null ? void 0 : y.history) == null ? void 0 : C.kts) || "-")), 1)
11192
11192
  ]),
11193
11193
  l("div", dc, [
11194
11194
  l("label", hc, h(t.$t("tropical.pressure")) + " : ", 1),
@@ -11202,14 +11202,14 @@ function Lc(t, e, a, i, o, r) {
11202
11202
  ]),
11203
11203
  l("div", fc, [
11204
11204
  l("label", yc, h(t.$t("tropical.moveDir")) + " : ", 1),
11205
- l("span", null, h(((P = r.computeMovement(o.activeTropicals)) == null ? void 0 : P.deg) || "-") + "°", 1)
11205
+ l("span", null, h(((L = r.computeMovement(o.activeTropicals)) == null ? void 0 : L.deg) || "-") + "°", 1)
11206
11206
  ])
11207
11207
  ]),
11208
11208
  l("div", bc, [
11209
11209
  l("label", wc, h(t.$t("weather.forecastModels")) + " : ", 1),
11210
11210
  l("div", xc, [
11211
- (b(!0), S(be, null, we((_ = o.activeTropicals) == null ? void 0 : _.forecasts, (k, C) => (b(), A(s, {
11212
- key: C,
11211
+ (b(!0), S(be, null, we((_ = o.activeTropicals) == null ? void 0 : _.forecasts, (k, P) => (b(), A(s, {
11212
+ key: P,
11213
11213
  density: "compact",
11214
11214
  variant: k.disabled ? "outlined" : "flat",
11215
11215
  color: k.disabled ? "" : "primary",
@@ -11279,7 +11279,7 @@ function Lc(t, e, a, i, o, r) {
11279
11279
  _: 1
11280
11280
  }),
11281
11281
  l("div", _c, [
11282
- Ue(d(y, {
11282
+ Ue(d(f, {
11283
11283
  width: "400",
11284
11284
  elevation: "16"
11285
11285
  }, {
@@ -11499,7 +11499,7 @@ const Pc = {
11499
11499
  style: { height: "56px" }
11500
11500
  };
11501
11501
  function Mc(t, e, a, i, o, r) {
11502
- const s = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"), g = x("VListItemTitle"), p = x("VListItem"), y = x("VList"), w = x("VCardText"), v = x("VCardActions"), f = x("VCard");
11502
+ const s = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"), g = x("VListItemTitle"), p = x("VListItem"), f = x("VList"), w = x("VCardText"), v = x("VCardActions"), y = x("VCard");
11503
11503
  return b(), S("div", Cc, [
11504
11504
  d(s, {
11505
11505
  text: "",
@@ -11512,7 +11512,7 @@ function Mc(t, e, a, i, o, r) {
11512
11512
  ]),
11513
11513
  _: 1
11514
11514
  }, 8, ["onClick"]),
11515
- o.showDatePicker ? (b(), A(f, {
11515
+ o.showDatePicker ? (b(), A(y, {
11516
11516
  key: 0,
11517
11517
  class: "card-box d-flex flex-column"
11518
11518
  }, {
@@ -11522,7 +11522,7 @@ function Mc(t, e, a, i, o, r) {
11522
11522
  l("div", Tc, [
11523
11523
  d(c, {
11524
11524
  modelValue: o.currentDate,
11525
- "onUpdate:modelValue": e[0] || (e[0] = (L) => o.currentDate = L),
11525
+ "onUpdate:modelValue": e[0] || (e[0] = (C) => o.currentDate = C),
11526
11526
  min: o.dateRange[0],
11527
11527
  max: o.dateRange[1],
11528
11528
  "mode-icon": () => r.currentYear,
@@ -11540,13 +11540,13 @@ function Mc(t, e, a, i, o, r) {
11540
11540
  }),
11541
11541
  l("div", Sc, [
11542
11542
  l("div", Ic, h(o.currentTime), 1),
11543
- d(y, { class: "pa-0 flex-1-1-0" }, {
11543
+ d(f, { class: "pa-0 flex-1-1-0" }, {
11544
11544
  default: u(() => [
11545
- (b(!0), S(be, null, we(r.hourOptions, (L, T) => (b(), A(p, {
11545
+ (b(!0), S(be, null, we(r.hourOptions, (C, T) => (b(), A(p, {
11546
11546
  key: T,
11547
- value: L,
11547
+ value: C,
11548
11548
  color: "primary",
11549
- active: o.currentTime === L,
11549
+ active: o.currentTime === C,
11550
11550
  rounded: "",
11551
11551
  height: "26",
11552
11552
  "min-height": "26"
@@ -11554,10 +11554,10 @@ function Mc(t, e, a, i, o, r) {
11554
11554
  default: u(() => [
11555
11555
  d(g, {
11556
11556
  class: "text-body-2 text-center",
11557
- onClick: (B) => o.currentTime = L
11557
+ onClick: (B) => o.currentTime = C
11558
11558
  }, {
11559
11559
  default: u(() => [
11560
- j(h(L), 1)
11560
+ j(h(C), 1)
11561
11561
  ]),
11562
11562
  _: 2
11563
11563
  }, 1032, ["onClick"])
@@ -11745,7 +11745,7 @@ const Ac = {
11745
11745
  },
11746
11746
  toggle: {
11747
11747
  handler() {
11748
- this.toggle ? this.showForm = !0 : (this.handleCloseForm(), this.handleCloseMeteo()), this.map && this.handleBind();
11748
+ this.toggle ? this.showForm = !0 : (this.showForm = !1, this.showMeteo = !1), this.map && this.handleBind();
11749
11749
  },
11750
11750
  immediate: !0
11751
11751
  },
@@ -11812,9 +11812,7 @@ const Ac = {
11812
11812
  this.showForm = !1, this.cancelForm(), this.toggle = !1;
11813
11813
  },
11814
11814
  async fetchMeteoData(t) {
11815
- this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat;
11816
- debugger;
11817
- this.handleDrawInfoMarker([t.lng, t.lat]), this.meteoData = [];
11815
+ this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat, this.handleDrawInfoMarker([t.lng, t.lat]), this.meteoData = [];
11818
11816
  const { weatherModels: e, marineModels: a } = oa.autoPickMeteoModel(t.forecastModel);
11819
11817
  let i = {
11820
11818
  lat: t.lat,
@@ -11828,7 +11826,7 @@ const Ac = {
11828
11826
  Authorization: this.token || this.defaultMeteoToken
11829
11827
  }
11830
11828
  });
11831
- (o == null ? void 0 : o.data.code) === 0 && (this.meteoData = o == null ? void 0 : o.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData), this.handleDrawInfoMarker([t.lng, t.lat])), this.loading = !1;
11829
+ (o == null ? void 0 : o.data.code) === 0 && (this.meteoData = o == null ? void 0 : o.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData)), this.loading = !1;
11832
11830
  },
11833
11831
  async fetchHistoryData(t) {
11834
11832
  this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat, this.handleDrawInfoMarker([t.lng, t.lat]), this.meteoData = [];
@@ -11848,10 +11846,10 @@ const Ac = {
11848
11846
  (o == null ? void 0 : o.data.code) === 0 && (this.meteoData = o == null ? void 0 : o.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData), this.handleDrawInfoMarker([t.lng, t.lat])), this.loading = !1;
11849
11847
  },
11850
11848
  initTableData(t) {
11851
- var a, i, o, r, s, c, n, g, p, y, w, v, f, L, T, B, I, P, _, k, C, z, R, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe;
11849
+ var a, i, o, r, s, c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe;
11852
11850
  this.currentHourData = {}, this.positionGmt = (i = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : r.offset;
11853
11851
  const e = ((s = oa.pickHourly(t, M(this.form.dateTime))) == null ? void 0 : s[0]) || {};
11854
- 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((y = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : y.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((f = (v = e == null ? void 0 : e.weather) == null ? void 0 : v.wind) == null ? void 0 : f.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (B = e == null ? void 0 : e.weather) == null ? void 0 : B.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((_ = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : _.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((C = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (R = (z = e == null ? void 0 : e.wave) == null ? void 0 : z.sig) == null ? void 0 : R.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((Y = (G = e == null ? void 0 : e.wave) == null ? void 0 : G.sig) == null ? void 0 : Y.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((V = (K = e == null ? void 0 : e.wave) == null ? void 0 : K.wd) == null ? void 0 : V.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((re = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((pe = (de = e == null ? void 0 : e.wave) == null ? void 0 : de.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = (X = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : X.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((ue = (oe = e == null ? void 0 : e.wave) == null ? void 0 : oe.swell) == null ? void 0 : ue.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ne = e == null ? void 0 : e.current) == null ? void 0 : ne.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((ce = e == null ? void 0 : e.current) == null ? void 0 : ce.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (xe = e == null ? void 0 : e.weather) == null ? void 0 : xe.url;
11852
+ this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((f = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : f.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((w = e == null ? void 0 : e.weather) == null ? void 0 : w.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((y = (v = e == null ? void 0 : e.weather) == null ? void 0 : v.wind) == null ? void 0 : y.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (C = e == null ? void 0 : e.weather) == null ? void 0 : C.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((I = (B = e == null ? void 0 : e.weather) == null ? void 0 : B.wind) == null ? void 0 : I.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((_ = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : _.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((P = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : P.height, 1) ?? "-", this.currentHourData.sigwaveDir = (R = (z = e == null ? void 0 : e.wave) == null ? void 0 : z.sig) == null ? void 0 : R.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((Y = (G = e == null ? void 0 : e.wave) == null ? void 0 : G.sig) == null ? void 0 : Y.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((V = (K = e == null ? void 0 : e.wave) == null ? void 0 : K.wd) == null ? void 0 : V.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((re = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : re.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((pe = (de = e == null ? void 0 : e.wave) == null ? void 0 : de.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = (X = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : X.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((ue = (oe = e == null ? void 0 : e.wave) == null ? void 0 : oe.swell) == null ? void 0 : ue.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ne = e == null ? void 0 : e.current) == null ? void 0 : ne.speed, 1) ?? "-", this.currentHourData.currentDir = (F = e == null ? void 0 : e.current) == null ? void 0 : F.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((ce = e == null ? void 0 : e.current) == null ? void 0 : ce.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (xe = e == null ? void 0 : e.weather) == null ? void 0 : xe.url;
11855
11853
  },
11856
11854
  handleBind() {
11857
11855
  var t, e;
@@ -11867,42 +11865,29 @@ const Ac = {
11867
11865
  return !1;
11868
11866
  },
11869
11867
  handleGetPosition(t) {
11870
- var e;
11871
- this.showMeteo = !1, (e = this.positionMarker) == null || e.remove(), this.positionMarker = void 0, this.form.latDegree = Number($.lat2pretty(t.lat).degree), this.form.latMinute = Number($.lat2pretty(t.lat).minute), this.form.latDirection = $.lat2pretty(t.lat).direction, this.form.lngDegree = Number($.lng2pretty(t.lng).degree), this.form.lngMinute = Number($.lng2pretty(t.lng).minute), this.form.lngDirection = $.lng2pretty(t.lng).direction;
11868
+ this.handleCloseMeteo(), this.form.latDegree = Number($.lat2pretty(t.lat).degree), this.form.latMinute = Number($.lat2pretty(t.lat).minute), this.form.latDirection = $.lat2pretty(t.lat).direction, this.form.lngDegree = Number($.lng2pretty(t.lng).degree), this.form.lngMinute = Number($.lng2pretty(t.lng).minute), this.form.lngDirection = $.lng2pretty(t.lng).direction;
11872
11869
  },
11873
11870
  handleDrawInfoMarker(t) {
11874
11871
  t && (this.map.flyTo({
11875
11872
  center: t,
11876
11873
  duration: 300
11877
11874
  }), this.$nextTick(() => {
11878
- var c, n, g, p, y, w, v;
11879
- (c = this.positionMarker) == null || c.remove();
11880
- const e = (n = document.getElementById("idm-position-icon")) == null ? void 0 : n.cloneNode(!0);
11881
- this.positionMarker = new ve.Marker(e).setLngLat(t).setOffset([0, -13]).addTo(this.map), (g = this.meteoInfoMarker) == null || g.remove();
11882
- const a = document.getElementById("idm-gl4-spot-meteo"), i = (p = a == null ? void 0 : a.children[1]) == null ? void 0 : p.children[1], o = (y = a == null ? void 0 : a.children[5]) == null ? void 0 : y.children[0], r = (w = a == null ? void 0 : a.children[5]) == null ? void 0 : w.children[0], s = (v = a == null ? void 0 : a.children[5]) == null ? void 0 : v.children[1];
11883
- i && (i.onclick = () => {
11884
- this.handleCloseMeteo();
11885
- }), o && !this.followList.some((f) => {
11886
- var L, T;
11887
- return ((L = f == null ? void 0 : f.coordinate) == null ? void 0 : L.lng) === this.form.lng && ((T = f == null ? void 0 : f.coordinate) == null ? void 0 : T.lat) === this.form.lat;
11888
- }) && (o.onclick = () => {
11889
- this.handleFollow();
11890
- }), r && this.followList.some((f) => {
11891
- var L, T;
11892
- return ((L = f == null ? void 0 : f.coordinate) == null ? void 0 : L.lng) === this.form.lng && ((T = f == null ? void 0 : f.coordinate) == null ? void 0 : T.lat) === this.form.lat;
11893
- }) && (r.onclick = () => {
11894
- this.handleCancelFollow();
11895
- }), s && (s.onclick = () => {
11896
- this.handleMeteoMore();
11897
- }), this.meteoInfoMarker = new ve.Marker(a).setLngLat(t).setOffset([0, -190]).addTo(this.map);
11875
+ var i, o, r;
11876
+ (i = this.positionMarker) == null || i.remove();
11877
+ const e = (o = document.getElementById("idm-position-icon")) == null ? void 0 : o.cloneNode(!0);
11878
+ this.positionMarker = new ve.Marker(e).setLngLat(t).setOffset([0, -13]).addTo(this.map);
11879
+ const a = document.getElementById("idm-gl4-spot-meteo");
11880
+ this.meteoInfoMarker ? (r = this.meteoInfoMarker) == null || r.setLngLat(t) : this.meteoInfoMarker = new ve.Marker(a).setLngLat(t).setOffset([0, -190]).addTo(this.map);
11898
11881
  }));
11899
11882
  },
11900
11883
  handleMeteoMore() {
11901
11884
  this.form.forecastModel = this.forecastModel, this.$emit("meteoMore", this.form);
11902
11885
  },
11903
11886
  handleCloseMeteo() {
11904
- var t, e;
11905
- this.showMeteo = !1, (t = this.positionMarker) == null || t.remove(), this.positionMarker = void 0, (e = this.meteoInfoMarker) == null || e.remove(), this.meteoInfoMarker = void 0, !this.showForm && !this.showMeteo && (this.toggle = !1);
11887
+ this.showMeteo = !1, this.$nextTick(() => {
11888
+ var t, e;
11889
+ (t = this.positionMarker) == null || t.remove(), this.positionMarker = void 0, (e = this.meteoInfoMarker) == null || e.remove(), this.meteoInfoMarker = void 0;
11890
+ });
11906
11891
  },
11907
11892
  handleFollow() {
11908
11893
  this.$emit("follow", this.form);
@@ -11934,7 +11919,7 @@ const Ac = {
11934
11919
  "aria-hidden": "true"
11935
11920
  }, Qc = ["xlink:href"];
11936
11921
  function Jc(t, e, a, i, o, r) {
11937
- const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VDivider"), p = x("VTextField"), y = x("VCol"), w = x("VRow"), v = x("DateTimePicker"), f = x("VBtnToggle"), L = x("VCardActions"), T = x("VForm"), B = x("VCardText"), I = x("VCard"), P = x("VIcon");
11922
+ const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VDivider"), p = x("VTextField"), f = x("VCol"), w = x("VRow"), v = x("DateTimePicker"), y = x("VBtnToggle"), C = x("VCardActions"), T = x("VForm"), B = x("VCardText"), I = x("VCard"), L = x("VIcon");
11938
11923
  return b(), S("div", Dc, [
11939
11924
  l("div", {
11940
11925
  class: "menu-bar-box transition pa-1",
@@ -12009,7 +11994,7 @@ function Jc(t, e, a, i, o, r) {
12009
11994
  ]),
12010
11995
  d(w, { class: "ma-0" }, {
12011
11996
  default: u(() => [
12012
- d(y, {
11997
+ d(f, {
12013
11998
  cols: "4",
12014
11999
  class: "pa-0 d-flex"
12015
12000
  }, {
@@ -12028,7 +12013,7 @@ function Jc(t, e, a, i, o, r) {
12028
12013
  _: 1,
12029
12014
  __: [10]
12030
12015
  }),
12031
- d(y, {
12016
+ d(f, {
12032
12017
  cols: "6",
12033
12018
  class: "pa-0 d-flex"
12034
12019
  }, {
@@ -12048,7 +12033,7 @@ function Jc(t, e, a, i, o, r) {
12048
12033
  _: 1,
12049
12034
  __: [11]
12050
12035
  }),
12051
- d(y, {
12036
+ d(f, {
12052
12037
  cols: "2",
12053
12038
  class: "pa-0"
12054
12039
  }, {
@@ -12084,7 +12069,7 @@ function Jc(t, e, a, i, o, r) {
12084
12069
  ]),
12085
12070
  d(w, { class: "ma-0" }, {
12086
12071
  default: u(() => [
12087
- d(y, {
12072
+ d(f, {
12088
12073
  cols: "4",
12089
12074
  class: "pa-0 d-flex"
12090
12075
  }, {
@@ -12106,7 +12091,7 @@ function Jc(t, e, a, i, o, r) {
12106
12091
  _: 1,
12107
12092
  __: [12]
12108
12093
  }),
12109
- d(y, {
12094
+ d(f, {
12110
12095
  cols: "6",
12111
12096
  class: "pa-0 d-flex"
12112
12097
  }, {
@@ -12126,7 +12111,7 @@ function Jc(t, e, a, i, o, r) {
12126
12111
  _: 1,
12127
12112
  __: [13]
12128
12113
  }),
12129
- d(y, {
12114
+ d(f, {
12130
12115
  cols: "2",
12131
12116
  class: "pa-0"
12132
12117
  }, {
@@ -12162,7 +12147,7 @@ function Jc(t, e, a, i, o, r) {
12162
12147
  ]),
12163
12148
  d(w, { class: "ma-0 mb-4" }, {
12164
12149
  default: u(() => [
12165
- d(y, {
12150
+ d(f, {
12166
12151
  cols: "12",
12167
12152
  class: "pa-0"
12168
12153
  }, {
@@ -12189,12 +12174,12 @@ function Jc(t, e, a, i, o, r) {
12189
12174
  ]),
12190
12175
  d(w, { class: "ma-0 mb-2" }, {
12191
12176
  default: u(() => [
12192
- d(y, {
12177
+ d(f, {
12193
12178
  cols: "12",
12194
12179
  class: "pa-0"
12195
12180
  }, {
12196
12181
  default: u(() => [
12197
- d(f, {
12182
+ d(y, {
12198
12183
  modelValue: o.form.forecastModel,
12199
12184
  "onUpdate:modelValue": e[7] || (e[7] = (_) => o.form.forecastModel = _),
12200
12185
  class: "w-100",
@@ -12242,7 +12227,7 @@ function Jc(t, e, a, i, o, r) {
12242
12227
  _: 1
12243
12228
  }),
12244
12229
  d(g),
12245
- d(L, { class: "d-flex justify-end align-center ga-4" }, {
12230
+ d(C, { class: "d-flex justify-end align-center ga-4" }, {
12246
12231
  default: u(() => [
12247
12232
  d(s, {
12248
12233
  size: "small",
@@ -12318,7 +12303,7 @@ function Jc(t, e, a, i, o, r) {
12318
12303
  default: u(() => [
12319
12304
  d(w, null, {
12320
12305
  default: u(() => [
12321
- d(y, {
12306
+ d(f, {
12322
12307
  cols: "3",
12323
12308
  class: "pa-2 pl-0 text-right opacity-50"
12324
12309
  }, {
@@ -12327,7 +12312,7 @@ function Jc(t, e, a, i, o, r) {
12327
12312
  ]),
12328
12313
  _: 1
12329
12314
  }),
12330
- d(y, {
12315
+ d(f, {
12331
12316
  cols: "9",
12332
12317
  class: "pa-2 px-0"
12333
12318
  }, {
@@ -12344,7 +12329,7 @@ function Jc(t, e, a, i, o, r) {
12344
12329
  }),
12345
12330
  d(w, null, {
12346
12331
  default: u(() => [
12347
- d(y, {
12332
+ d(f, {
12348
12333
  cols: "3",
12349
12334
  class: "pa-2 pl-0 text-right opacity-50"
12350
12335
  }, {
@@ -12354,7 +12339,7 @@ function Jc(t, e, a, i, o, r) {
12354
12339
  _: 1,
12355
12340
  __: [18]
12356
12341
  }),
12357
- d(y, {
12342
+ d(f, {
12358
12343
  cols: "9",
12359
12344
  class: "pa-2 px-0"
12360
12345
  }, {
@@ -12371,7 +12356,7 @@ function Jc(t, e, a, i, o, r) {
12371
12356
  }),
12372
12357
  d(w, null, {
12373
12358
  default: u(() => [
12374
- d(y, {
12359
+ d(f, {
12375
12360
  cols: "3",
12376
12361
  class: "pa-2 pl-0 text-right opacity-50"
12377
12362
  }, {
@@ -12380,7 +12365,7 @@ function Jc(t, e, a, i, o, r) {
12380
12365
  ]),
12381
12366
  _: 1
12382
12367
  }),
12383
- d(y, {
12368
+ d(f, {
12384
12369
  cols: "4",
12385
12370
  class: "pa-2 px-0 text-left"
12386
12371
  }, {
@@ -12389,7 +12374,7 @@ function Jc(t, e, a, i, o, r) {
12389
12374
  ]),
12390
12375
  _: 1
12391
12376
  }),
12392
- d(y, {
12377
+ d(f, {
12393
12378
  cols: "2",
12394
12379
  class: "pa-2 pl-0 ml-n4 text-right opacity-50"
12395
12380
  }, {
@@ -12398,7 +12383,7 @@ function Jc(t, e, a, i, o, r) {
12398
12383
  ]),
12399
12384
  _: 1
12400
12385
  }),
12401
- d(y, {
12386
+ d(f, {
12402
12387
  cols: "3",
12403
12388
  class: "pa-2 px-0 text-left"
12404
12389
  }, {
@@ -12412,7 +12397,7 @@ function Jc(t, e, a, i, o, r) {
12412
12397
  }),
12413
12398
  d(w, null, {
12414
12399
  default: u(() => [
12415
- d(y, {
12400
+ d(f, {
12416
12401
  cols: "3",
12417
12402
  class: "pa-2 pl-0 text-right opacity-50"
12418
12403
  }, {
@@ -12421,7 +12406,7 @@ function Jc(t, e, a, i, o, r) {
12421
12406
  ]),
12422
12407
  _: 1
12423
12408
  }),
12424
- d(y, {
12409
+ d(f, {
12425
12410
  cols: "4",
12426
12411
  class: "pa-2 px-0 text-left"
12427
12412
  }, {
@@ -12430,7 +12415,7 @@ function Jc(t, e, a, i, o, r) {
12430
12415
  ]),
12431
12416
  _: 1
12432
12417
  }),
12433
- d(y, {
12418
+ d(f, {
12434
12419
  cols: "2",
12435
12420
  class: "pa-2 pl-0 ml-n4 text-right opacity-50"
12436
12421
  }, {
@@ -12439,7 +12424,7 @@ function Jc(t, e, a, i, o, r) {
12439
12424
  ]),
12440
12425
  _: 1
12441
12426
  }),
12442
- d(y, {
12427
+ d(f, {
12443
12428
  cols: "3",
12444
12429
  class: "pa-2 px-0 text-left"
12445
12430
  }, {
@@ -12453,7 +12438,7 @@ function Jc(t, e, a, i, o, r) {
12453
12438
  }),
12454
12439
  d(w, null, {
12455
12440
  default: u(() => [
12456
- d(y, {
12441
+ d(f, {
12457
12442
  cols: "3",
12458
12443
  class: "pa-2 pl-0 text-right opacity-50"
12459
12444
  }, {
@@ -12462,7 +12447,7 @@ function Jc(t, e, a, i, o, r) {
12462
12447
  ]),
12463
12448
  _: 1
12464
12449
  }),
12465
- d(y, {
12450
+ d(f, {
12466
12451
  cols: "4",
12467
12452
  class: "pa-2 px-0 text-left"
12468
12453
  }, {
@@ -12471,7 +12456,7 @@ function Jc(t, e, a, i, o, r) {
12471
12456
  ]),
12472
12457
  _: 1
12473
12458
  }),
12474
- d(y, {
12459
+ d(f, {
12475
12460
  cols: "2",
12476
12461
  class: "pa-2 pl-0 ml-n4 text-right opacity-50"
12477
12462
  }, {
@@ -12480,7 +12465,7 @@ function Jc(t, e, a, i, o, r) {
12480
12465
  ]),
12481
12466
  _: 1
12482
12467
  }),
12483
- d(y, {
12468
+ d(f, {
12484
12469
  cols: "3",
12485
12470
  class: "pa-2 px-0 text-left"
12486
12471
  }, {
@@ -12496,11 +12481,11 @@ function Jc(t, e, a, i, o, r) {
12496
12481
  _: 1
12497
12482
  }),
12498
12483
  d(g),
12499
- d(L, { class: "d-flex justify-space-between align-center" }, {
12484
+ d(C, { class: "d-flex justify-space-between align-center" }, {
12500
12485
  default: u(() => [
12501
12486
  a.followList.some((_) => {
12502
- var k, C;
12503
- return ((k = _ == null ? void 0 : _.coordinate) == null ? void 0 : k.lng) === o.form.lng && ((C = _ == null ? void 0 : _.coordinate) == null ? void 0 : C.lat) === o.form.lat;
12487
+ var k, P;
12488
+ return ((k = _ == null ? void 0 : _.coordinate) == null ? void 0 : k.lng) === o.form.lng && ((P = _ == null ? void 0 : _.coordinate) == null ? void 0 : P.lat) === o.form.lat;
12504
12489
  }) ? (b(), A(s, {
12505
12490
  key: 0,
12506
12491
  class: "text-none text-body-1",
@@ -12512,7 +12497,7 @@ function Jc(t, e, a, i, o, r) {
12512
12497
  onClick: qe(r.handleCancelFollow, ["stop"])
12513
12498
  }, {
12514
12499
  prepend: u(() => [
12515
- d(P, { color: "warning" })
12500
+ d(L, { color: "warning" })
12516
12501
  ]),
12517
12502
  default: u(() => [
12518
12503
  j(" " + h(t.$t("actions.unfollow")), 1)
@@ -12654,7 +12639,7 @@ const tm = {
12654
12639
  }
12655
12640
  },
12656
12641
  handleDrag(t) {
12657
- var a, i, o, r, s, c, n, g, p, y;
12642
+ var a, i, o, r, s, c, n, g, p, f;
12658
12643
  const e = (i = (a = t.target) == null ? void 0 : a._element) == null ? void 0 : i.id;
12659
12644
  if ((e == null ? void 0 : e.split("-").length) === 2) {
12660
12645
  const w = this.geojson.filter((T) => T.id === e.split("-")[0])[0];
@@ -12662,33 +12647,33 @@ const tm = {
12662
12647
  var B;
12663
12648
  return ((B = T._element) == null ? void 0 : B.id) === e;
12664
12649
  })[0].setLngLat([(r = (o = t.target) == null ? void 0 : o._lngLat) == null ? void 0 : r.lng, (c = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
12665
- let f;
12650
+ let y;
12666
12651
  w.features.forEach((T, B) => {
12667
12652
  if (T.geometry.type === "Point" && T.properties.id === e.split("-")[1]) {
12668
- f = B;
12653
+ y = B;
12669
12654
  return;
12670
12655
  }
12671
12656
  });
12672
- const L = w.features.filter((T) => T.geometry.type === "Point");
12657
+ const C = w.features.filter((T) => T.geometry.type === "Point");
12673
12658
  this.handleTmpPointUpdate(
12674
12659
  w,
12675
- L[f - 1],
12676
- { lng: (g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, lat: (y = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : y.lat, properties: L[f].properties },
12677
- f === L.length - 1 ? void 0 : L[f + 1]
12660
+ C[y - 1],
12661
+ { lng: (g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, lat: (f = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : f.lat, properties: C[y].properties },
12662
+ y === C.length - 1 ? void 0 : C[y + 1]
12678
12663
  );
12679
12664
  }
12680
12665
  },
12681
12666
  handleDragEnd(t) {
12682
- var a, i, o, r, s, c, n, g, p, y;
12667
+ var a, i, o, r, s, c, n, g, p, f;
12683
12668
  const e = (i = (a = t.target) == null ? void 0 : a._element) == null ? void 0 : i.id;
12684
12669
  if ((e == null ? void 0 : e.split("-").length) === 2) {
12685
- const w = this.geojson.filter((L) => L.id === e.split("-")[0])[0];
12686
- this.pointMarkers[w.id].filter((L) => {
12670
+ const w = this.geojson.filter((C) => C.id === e.split("-")[0])[0];
12671
+ this.pointMarkers[w.id].filter((C) => {
12687
12672
  var T;
12688
- return ((T = L._element) == null ? void 0 : T.id) === e;
12673
+ return ((T = C._element) == null ? void 0 : T.id) === e;
12689
12674
  })[0].setLngLat([(r = (o = t.target) == null ? void 0 : o._lngLat) == null ? void 0 : r.lng, (c = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
12690
- const f = w.features.filter((L) => L.geometry.type === "Point" && L.properties.id === e.split("-")[1])[0];
12691
- f.geometry.coordinates = [(g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, (y = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : y.lat], w.features = w.features.filter((L) => L.geometry.type === "Point"), this.handlePointUpdate(w);
12675
+ const y = w.features.filter((C) => C.geometry.type === "Point" && C.properties.id === e.split("-")[1])[0];
12676
+ y.geometry.coordinates = [(g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, (f = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : f.lat], w.features = w.features.filter((C) => C.geometry.type === "Point"), this.handlePointUpdate(w);
12692
12677
  }
12693
12678
  },
12694
12679
  handleContextmenu(t) {
@@ -12736,14 +12721,14 @@ const tm = {
12736
12721
  let a = 0;
12737
12722
  const i = [];
12738
12723
  for (let o = 1; o < e.length; o++) {
12739
- const r = e[o - 1], s = e[o], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, g = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = Fe.calculateDistance(n, g, c.mode === "RL", 4), y = Fe.calculateBearing(n, g, c.mode === "RL", 2);
12724
+ const r = e[o - 1], s = e[o], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, g = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = Fe.calculateDistance(n, g, c.mode === "RL", 4), f = Fe.calculateBearing(n, g, c.mode === "RL", 2);
12740
12725
  a = $.roundPrecision(a + p, 4);
12741
12726
  let w;
12742
12727
  c.mode === "RL" ? w = $.convertToMonotonicLng([n, g]) : w = $.convertToMonotonicLng(Fe.interpolateCoordinates(n, g, 200));
12743
- const v = H.lineString(w.map((L) => [L.lng, L.lat]));
12744
- v.properties.dist = p, v.properties.bearing = y, v.properties.total = a, v.properties.name = "Line " + this.currentLineIndex, i.push(v);
12745
- const f = e[o];
12746
- f.properties.totalDist = $.roundPrecision((c.totalDist ? c.totalDist : 0) + p, 4), f.properties.sumLabel = f.properties.totalDist + " nm";
12728
+ const v = H.lineString(w.map((C) => [C.lng, C.lat]));
12729
+ v.properties.dist = p, v.properties.bearing = f, v.properties.total = a, v.properties.name = "Line " + this.currentLineIndex, i.push(v);
12730
+ const y = e[o];
12731
+ y.properties.totalDist = $.roundPrecision((c.totalDist ? c.totalDist : 0) + p, 4), y.properties.sumLabel = y.properties.totalDist + " nm";
12747
12732
  }
12748
12733
  e.push(...i), t.total = a;
12749
12734
  }
@@ -12755,17 +12740,17 @@ const tm = {
12755
12740
  if (e) {
12756
12741
  const n = e.properties, g = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, p = { lng: a.lng, lat: a.lat };
12757
12742
  r = Fe.calculateDistance(g, p, n.mode === "RL", 4), s = Fe.calculateBearing(g, p, n.mode === "RL", 2);
12758
- let y;
12759
- n.mode === "RL" ? y = $.convertToMonotonicLng([g, p]) : y = $.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
12760
- const w = H.lineString(y.map((v) => [v.lng, v.lat]));
12743
+ let f;
12744
+ n.mode === "RL" ? f = $.convertToMonotonicLng([g, p]) : f = $.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
12745
+ const w = H.lineString(f.map((v) => [v.lng, v.lat]));
12761
12746
  w.properties.dist = r, w.properties.bearing = s, o.features.push(w);
12762
12747
  }
12763
12748
  if (i) {
12764
12749
  const n = a.properties, g = a, p = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
12765
12750
  r = Fe.calculateDistance(g, p, n.mode === "RL", 4), s = Fe.calculateBearing(g, p, n.mode === "RL", 2);
12766
- let y;
12767
- n.mode === "RL" ? y = $.convertToMonotonicLng([g, p]) : y = $.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
12768
- const w = H.lineString(y.map((v) => [v.lng, v.lat]));
12751
+ let f;
12752
+ n.mode === "RL" ? f = $.convertToMonotonicLng([g, p]) : f = $.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
12753
+ const w = H.lineString(f.map((v) => [v.lng, v.lat]));
12769
12754
  w.properties.dist = r, w.properties.bearing = s, o.features.push(w);
12770
12755
  }
12771
12756
  this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(o) : this.map.addSource(this.tmpSource, {
@@ -12901,17 +12886,17 @@ const tm = {
12901
12886
  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];
12902
12887
  }
12903
12888
  if (t.closed) {
12904
- const c = s.at(-1), g = t.features.filter((y) => y.geometry.type === "LineString").at(-1), p = document.createElement("div");
12889
+ const c = s.at(-1), g = t.features.filter((f) => f.geometry.type === "LineString").at(-1), p = document.createElement("div");
12905
12890
  p.className = "idm-gl4-measure-summary-marker", p.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${g.properties.name}</div>`, this.closeMarkers[t.id] = new ve.Marker(p).setOffset([0, -30]).setLngLat(c.geometry.coordinates).addTo(this.map);
12906
12891
  }
12907
12892
  }
12908
12893
  },
12909
12894
  handleClear(t, e = !0) {
12910
- var s, c, n, g, p, y, w, v, f, L;
12895
+ var s, c, n, g, p, f, w, v, y, C;
12911
12896
  const a = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, o = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
12912
- (s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(o) && this.map.removeLayer(o), (n = this.map) != null && n.getLayer(r) && this.map.removeLayer(r), (g = this.map) != null && g.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (p = this.map) != null && p.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (y = this.closeMarkers[t.id]) == null || y.remove(), this.closeMarkers[t.id] = void 0, (w = this.pointMarkers[t.id]) == null || w.forEach((T) => {
12897
+ (s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(o) && this.map.removeLayer(o), (n = this.map) != null && n.getLayer(r) && this.map.removeLayer(r), (g = this.map) != null && g.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (p = this.map) != null && p.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (f = this.closeMarkers[t.id]) == null || f.remove(), this.closeMarkers[t.id] = void 0, (w = this.pointMarkers[t.id]) == null || w.forEach((T) => {
12913
12898
  T == null || T.remove();
12914
- }), this.pointMarkers[t.id] = [], (v = this.tipMarker) == null || v.remove(), this.tipMarker = void 0, e && ((f = this.map) != null && f.getSource(a)) && this.map.removeSource(a), e && ((L = this.map) != null && L.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
12899
+ }), this.pointMarkers[t.id] = [], (v = this.tipMarker) == null || v.remove(), this.tipMarker = void 0, e && ((y = this.map) != null && y.getSource(a)) && this.map.removeSource(a), e && ((C = this.map) != null && C.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
12915
12900
  }
12916
12901
  }
12917
12902
  }, am = { class: "idm-gl4-measure" };
@@ -13070,7 +13055,7 @@ const rm = {
13070
13055
  class: "list d-flex flex-wrap pa-2 rounded ga-2"
13071
13056
  }, hm = ["onClick"], pm = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, um = { class: "text-body-1" };
13072
13057
  function gm(t, e, a, i, o, r) {
13073
- const s = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"), g = x("VList"), p = x("VMenu"), y = x("VBtn"), w = x("VDivider"), v = x("VTooltip");
13058
+ const s = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"), g = x("VList"), p = x("VMenu"), f = x("VBtn"), w = x("VDivider"), v = x("VTooltip");
13074
13059
  return b(), S("div", lm, [
13075
13060
  l("div", {
13076
13061
  class: "timeline-box px-2 d-flex justify-start align-center rounded",
@@ -13084,11 +13069,11 @@ function gm(t, e, a, i, o, r) {
13084
13069
  "day-about": o.dayAbout,
13085
13070
  "interval-hour": o.intervalHour
13086
13071
  }, t.$attrs, {
13087
- onCurrentTimestamp: e[0] || (e[0] = (f) => o.currentTimestamp = f),
13088
- onCurrentRealTime: e[1] || (e[1] = (f) => o.currentRealTime = f),
13089
- onTimestampRange: e[2] || (e[2] = (f) => o.timestampRange = f)
13072
+ onCurrentTimestamp: e[0] || (e[0] = (y) => o.currentTimestamp = y),
13073
+ onCurrentRealTime: e[1] || (e[1] = (y) => o.currentRealTime = y),
13074
+ onTimestampRange: e[2] || (e[2] = (y) => o.timestampRange = y)
13090
13075
  }), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
13091
- d(y, {
13076
+ d(f, {
13092
13077
  text: "",
13093
13078
  height: "30",
13094
13079
  class: "text-none elevation-0 btn-border-1 text-body-1",
@@ -13100,13 +13085,13 @@ function gm(t, e, a, i, o, r) {
13100
13085
  default: u(() => [
13101
13086
  d(g, { class: "pa-1" }, {
13102
13087
  default: u(() => [
13103
- (b(!0), S(be, null, we(o.intervalOptions, (f, L) => (b(), A(n, {
13104
- key: L,
13105
- value: f,
13106
- variant: o.intervalHour === f ? "tonal" : "text",
13088
+ (b(!0), S(be, null, we(o.intervalOptions, (y, C) => (b(), A(n, {
13089
+ key: C,
13090
+ value: y,
13091
+ variant: o.intervalHour === y ? "tonal" : "text",
13107
13092
  color: "primary",
13108
13093
  rounded: "",
13109
- active: o.intervalHour === f,
13094
+ active: o.intervalHour === y,
13110
13095
  height: "30",
13111
13096
  "min-height": "30",
13112
13097
  "min-width": "30",
@@ -13114,10 +13099,10 @@ function gm(t, e, a, i, o, r) {
13114
13099
  }, {
13115
13100
  default: u(() => [
13116
13101
  d(c, {
13117
- onClick: (T) => o.intervalHour = f
13102
+ onClick: (T) => o.intervalHour = y
13118
13103
  }, {
13119
13104
  default: u(() => [
13120
- j(h(f) + "h", 1)
13105
+ j(h(y) + "h", 1)
13121
13106
  ]),
13122
13107
  _: 2
13123
13108
  }, 1032, ["onClick"])
@@ -13140,7 +13125,7 @@ function gm(t, e, a, i, o, r) {
13140
13125
  style: { height: "16px" }
13141
13126
  }),
13142
13127
  l("div", nm, [
13143
- d(y, {
13128
+ d(f, {
13144
13129
  icon: "",
13145
13130
  size: "small",
13146
13131
  density: "comfortable",
@@ -13153,7 +13138,7 @@ function gm(t, e, a, i, o, r) {
13153
13138
  _: 1,
13154
13139
  __: [9]
13155
13140
  }, 8, ["onClick"]),
13156
- d(y, {
13141
+ d(f, {
13157
13142
  icon: "",
13158
13143
  size: "small",
13159
13144
  density: "comfortable",
@@ -13166,7 +13151,7 @@ function gm(t, e, a, i, o, r) {
13166
13151
  _: 1,
13167
13152
  __: [10]
13168
13153
  }, 8, ["onClick"]),
13169
- o.paused ? (b(), A(y, {
13154
+ o.paused ? (b(), A(f, {
13170
13155
  key: 0,
13171
13156
  icon: "",
13172
13157
  size: "small",
@@ -13179,7 +13164,7 @@ function gm(t, e, a, i, o, r) {
13179
13164
  ])),
13180
13165
  _: 1,
13181
13166
  __: [11]
13182
- }, 8, ["onClick"])) : (b(), A(y, {
13167
+ }, 8, ["onClick"])) : (b(), A(f, {
13183
13168
  key: 1,
13184
13169
  icon: "",
13185
13170
  size: "small",
@@ -13193,7 +13178,7 @@ function gm(t, e, a, i, o, r) {
13193
13178
  _: 1,
13194
13179
  __: [12]
13195
13180
  }, 8, ["onClick"])),
13196
- d(y, {
13181
+ d(f, {
13197
13182
  icon: "",
13198
13183
  size: "small",
13199
13184
  density: "comfortable",
@@ -13217,12 +13202,12 @@ function gm(t, e, a, i, o, r) {
13217
13202
  text: t.$t("weather.windBarbs"),
13218
13203
  location: "top"
13219
13204
  }, {
13220
- activator: u(({ props: f }) => {
13221
- var L, T;
13205
+ activator: u(({ props: y }) => {
13206
+ var C, T;
13222
13207
  return [
13223
- d(y, O(f, {
13208
+ d(f, O(y, {
13224
13209
  class: "pa-1 d-flex",
13225
- color: (L = a.weatherCheckList) != null && L.includes("wind") ? "primary" : "",
13210
+ color: (C = a.weatherCheckList) != null && C.includes("wind") ? "primary" : "",
13226
13211
  variant: (T = a.weatherCheckList) != null && T.includes("wind") ? "elevated" : "text",
13227
13212
  height: "24",
13228
13213
  width: "24",
@@ -13243,12 +13228,12 @@ function gm(t, e, a, i, o, r) {
13243
13228
  text: t.$t("weather.sigWaveHeight"),
13244
13229
  location: "top"
13245
13230
  }, {
13246
- activator: u(({ props: f }) => {
13247
- var L, T;
13231
+ activator: u(({ props: y }) => {
13232
+ var C, T;
13248
13233
  return [
13249
- d(y, O(f, {
13234
+ d(f, O(y, {
13250
13235
  class: "pa-1 d-flex",
13251
- color: (L = a.weatherCheckList) != null && L.includes("sig-wave-height") ? "primary" : "",
13236
+ color: (C = a.weatherCheckList) != null && C.includes("sig-wave-height") ? "primary" : "",
13252
13237
  variant: (T = a.weatherCheckList) != null && T.includes("sig-wave-height") ? "elevated" : "text",
13253
13238
  height: "24",
13254
13239
  width: "24",
@@ -13256,7 +13241,7 @@ function gm(t, e, a, i, o, r) {
13256
13241
  onClick: e[4] || (e[4] = (B) => r.handleClickFastWeather("sig-wave-height"))
13257
13242
  }), {
13258
13243
  default: u(() => [
13259
- l("i", O(f, { class: "iconfont icon-a-WaveHeight" }), null, 16)
13244
+ l("i", O(y, { class: "iconfont icon-a-WaveHeight" }), null, 16)
13260
13245
  ]),
13261
13246
  _: 2
13262
13247
  }, 1040, ["color", "variant"])
@@ -13268,12 +13253,12 @@ function gm(t, e, a, i, o, r) {
13268
13253
  text: t.$t("weather.currentDirection"),
13269
13254
  location: "top"
13270
13255
  }, {
13271
- activator: u(({ props: f }) => {
13272
- var L, T;
13256
+ activator: u(({ props: y }) => {
13257
+ var C, T;
13273
13258
  return [
13274
- d(y, O(f, {
13259
+ d(f, O(y, {
13275
13260
  class: "pa-1 d-flex",
13276
- color: (L = a.weatherCheckList) != null && L.includes("current-direction") ? "primary" : "",
13261
+ color: (C = a.weatherCheckList) != null && C.includes("current-direction") ? "primary" : "",
13277
13262
  variant: (T = a.weatherCheckList) != null && T.includes("current-direction") ? "elevated" : "text",
13278
13263
  height: "24",
13279
13264
  width: "24",
@@ -13281,7 +13266,7 @@ function gm(t, e, a, i, o, r) {
13281
13266
  onClick: e[5] || (e[5] = (B) => r.handleClickFastWeather("current-direction"))
13282
13267
  }), {
13283
13268
  default: u(() => [
13284
- l("i", O(f, { class: "iconfont icon-Current" }), null, 16)
13269
+ l("i", O(y, { class: "iconfont icon-Current" }), null, 16)
13285
13270
  ]),
13286
13271
  _: 2
13287
13272
  }, 1040, ["color", "variant"])
@@ -13293,8 +13278,8 @@ function gm(t, e, a, i, o, r) {
13293
13278
  text: t.$t("weather.weatherLayers"),
13294
13279
  location: "top"
13295
13280
  }, {
13296
- activator: u(({ props: f }) => [
13297
- d(y, O(f, {
13281
+ activator: u(({ props: y }) => [
13282
+ d(f, O(y, {
13298
13283
  class: "pa-1 d-flex",
13299
13284
  variant: "text",
13300
13285
  height: "24",
@@ -13303,7 +13288,7 @@ function gm(t, e, a, i, o, r) {
13303
13288
  onClick: r.handleClickFastMore
13304
13289
  }), {
13305
13290
  default: u(() => [
13306
- l("i", O(f, { class: "iconfont icon-dots-align" }), null, 16)
13291
+ l("i", O(y, { class: "iconfont icon-dots-align" }), null, 16)
13307
13292
  ]),
13308
13293
  _: 2
13309
13294
  }, 1040, ["onClick"])
@@ -13317,12 +13302,12 @@ function gm(t, e, a, i, o, r) {
13317
13302
  style: { height: "16px" }
13318
13303
  }),
13319
13304
  l("div", mm, [
13320
- d(y, {
13305
+ d(f, {
13321
13306
  text: "",
13322
13307
  height: "30",
13323
13308
  class: "px-2 elevation-0 text-body-1 btn-border-2",
13324
13309
  color: o.source === "GFS" ? "primary" : "",
13325
- onClick: e[6] || (e[6] = (f) => o.source = "GFS")
13310
+ onClick: e[6] || (e[6] = (y) => o.source = "GFS")
13326
13311
  }, {
13327
13312
  default: u(() => e[15] || (e[15] = [
13328
13313
  j("NOAA", -1)
@@ -13330,12 +13315,12 @@ function gm(t, e, a, i, o, r) {
13330
13315
  _: 1,
13331
13316
  __: [15]
13332
13317
  }, 8, ["color"]),
13333
- d(y, {
13318
+ d(f, {
13334
13319
  text: "",
13335
13320
  height: "30",
13336
13321
  class: "px-2 elevation-0 text-body-1 btn-border-2",
13337
13322
  color: o.source === "ECMWF" ? "primary" : "",
13338
- onClick: e[7] || (e[7] = (f) => o.source = "ECMWF")
13323
+ onClick: e[7] || (e[7] = (y) => o.source = "ECMWF")
13339
13324
  }, {
13340
13325
  default: u(() => e[16] || (e[16] = [
13341
13326
  j("ECMWF", -1)
@@ -13350,20 +13335,20 @@ function gm(t, e, a, i, o, r) {
13350
13335
  style: ie({ right: o.right + "px" })
13351
13336
  }, [
13352
13337
  o.showTimezone ? (b(), S("div", dm, [
13353
- (b(!0), S(be, null, we(o.offsets, (f) => (b(), S("div", {
13354
- key: f,
13338
+ (b(!0), S(be, null, we(o.offsets, (y) => (b(), S("div", {
13339
+ key: y,
13355
13340
  class: "item rounded text-body-2 hover-active",
13356
- onClick: (L) => o.timeZone = f
13357
- }, h(f < 0 ? f : "+" + f), 9, hm))), 128))
13341
+ onClick: (C) => o.timeZone = y
13342
+ }, h(y < 0 ? y : "+" + y), 9, hm))), 128))
13358
13343
  ])) : D("", !0),
13359
13344
  l("div", pm, [
13360
- d(y, {
13345
+ d(f, {
13361
13346
  text: "",
13362
13347
  variant: "flat",
13363
13348
  height: "28",
13364
13349
  class: "pa-1 text-body-1",
13365
13350
  color: "primary",
13366
- onClick: e[8] || (e[8] = (f) => o.showTimezone = !o.showTimezone)
13351
+ onClick: e[8] || (e[8] = (y) => o.showTimezone = !o.showTimezone)
13367
13352
  }, {
13368
13353
  default: u(() => [
13369
13354
  j(" UTC " + h(o.timeZone < 0 ? o.timeZone : "+" + o.timeZone), 1)
@@ -13439,7 +13424,7 @@ const fm = /* @__PURE__ */ q(rm, [["render", gm]]), ym = {
13439
13424
  class: "map-gl4-home"
13440
13425
  };
13441
13426
  function wm(t, e, a, i, o, r) {
13442
- const s = x("IdmOtherLayer"), c = x("IdmWeatherLayer"), n = x("IdmTropicals"), g = x("IdmMeasure"), p = x("IdmSpot"), y = x("IdmBottomBar");
13427
+ const s = x("IdmOtherLayer"), c = x("IdmWeatherLayer"), n = x("IdmTropicals"), g = x("IdmMeasure"), p = x("IdmSpot"), f = x("IdmBottomBar");
13443
13428
  return b(), S("div", bm, [
13444
13429
  d(s, O({
13445
13430
  ref: "idmOtherLayers",
@@ -13497,7 +13482,7 @@ function wm(t, e, a, i, o, r) {
13497
13482
  "forecast-model": a.forecastModel,
13498
13483
  "map-feather": a.mapFeather
13499
13484
  }, t.$attrs), null, 16, ["map", "token", "gateway", "forecast-model", "map-feather"]),
13500
- d(y, O({
13485
+ d(f, O({
13501
13486
  ref: "idmBottomBar",
13502
13487
  "forecast-model": a.forecastModel,
13503
13488
  "weather-check-list": o.weatherCheckList,
@@ -13514,7 +13499,7 @@ class vm {
13514
13499
  me(this, "hi");
13515
13500
  me(this, "td");
13516
13501
  me(this, "windy");
13517
- var a, i, o, r, s, c, n, g, p, y, w, v, f, L, T, B, I, P, _, k, C, z, R, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e, U, ae, Ne, Ie, ge, fe, W, Ce, te, le, Oe, N, ye, Me, Be, Ee, E, Z, Ge, Ve, Ze, Te, Ye, Ke, Xe, $e, Qe, Je, et, tt, at, ot, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, It, Mt, At, Dt, Rt, Ot, Bt, Et, Nt, jt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, qt, Yt, Kt, Xt, Qt, Jt, ea, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ia, Ma, Aa, Da, Ra, Oa, Ba, Ea, Na, ja, Fa, Ha, Ua, Wa, Ga, Va, Za, qa, Ya, Ka, Xa, $a, Qa, Ja, eo, to, ao, oo, io, ro, lo, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Io, Mo, Ao, Do, Ro, Oo, Bo, Eo, No, jo, Fo, Ho, Uo, Wo, Go;
13502
+ var a, i, o, r, s, c, n, g, p, f, w, v, y, C, T, B, I, L, _, k, P, z, R, G, Y, K, V, J, ee, Q, re, de, pe, se, X, oe, ue, ne, F, ce, xe, Le, Pe, Ae, De, Re, _e, U, ae, Ne, Ie, ge, fe, W, Ce, te, le, Oe, N, ye, Me, Be, Ee, E, Z, Ge, Ve, Ze, Te, Ye, Ke, Xe, $e, Qe, Je, et, tt, at, ot, it, rt, lt, st, nt, ct, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, Tt, St, It, Mt, At, Dt, Rt, Ot, Bt, Et, Nt, jt, Ft, Ht, Ut, Wt, Gt, Vt, Zt, qt, Yt, Kt, Xt, Qt, Jt, ea, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ia, Ma, Aa, Da, Ra, Oa, Ba, Ea, Na, ja, Fa, Ha, Ua, Wa, Ga, Va, Za, qa, Ya, Ka, Xa, $a, Qa, Ja, eo, to, ao, oo, io, ro, lo, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Io, Mo, Ao, Do, Ro, Oo, Bo, Eo, No, jo, Fo, Ho, Uo, Wo, Go;
13518
13503
  this.i4 = {
13519
13504
  source: {
13520
13505
  type: "raster",
@@ -32110,13 +32095,13 @@ class vm {
32110
32095
  (r = (o = this.originStyle) == null ? void 0 : o.light.layers) == null ? void 0 : r.find((m) => m.id === "water"),
32111
32096
  (c = (s = this.originStyle) == null ? void 0 : s.light.layers) == null ? void 0 : c.find((m) => m.id === "ice-area-fill"),
32112
32097
  (g = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : g.find((m) => m.id === "ice-area-line"),
32113
- (y = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : y.find((m) => m.id === "loadlines-label"),
32098
+ (f = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : f.find((m) => m.id === "loadlines-label"),
32114
32099
  (v = (w = this.originStyle) == null ? void 0 : w.light.layers) == null ? void 0 : v.find((m) => m.id === "loadlines-fill"),
32115
- (L = (f = this.originStyle) == null ? void 0 : f.light.layers) == null ? void 0 : L.find((m) => m.id === "empty-layer-0"),
32100
+ (C = (y = this.originStyle) == null ? void 0 : y.light.layers) == null ? void 0 : C.find((m) => m.id === "empty-layer-0"),
32116
32101
  (B = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : B.find((m) => m.id === "empty-layer-1"),
32117
- (P = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : P.find((m) => m.id === "country-boundaries"),
32102
+ (L = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : L.find((m) => m.id === "country-boundaries"),
32118
32103
  (k = (_ = this.originStyle) == null ? void 0 : _.light.layers) == null ? void 0 : k.find((m) => m.id === "water-outline"),
32119
- (z = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : z.find((m) => m.id === "water-outline2"),
32104
+ (z = (P = this.originStyle) == null ? void 0 : P.light.layers) == null ? void 0 : z.find((m) => m.id === "water-outline2"),
32120
32105
  (G = (R = this.originStyle) == null ? void 0 : R.light.layers) == null ? void 0 : G.find((m) => m.id === "empty-layer-2"),
32121
32106
  (K = (Y = this.originStyle) == null ? void 0 : Y.light.layers) == null ? void 0 : K.find((m) => m.id === "water-line-label"),
32122
32107
  (J = (V = this.originStyle) == null ? void 0 : V.light.layers) == null ? void 0 : J.find((m) => m.id === "water-point-label"),