@idmwx/idmui-gl4 1.5.2 → 1.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -385,8 +385,8 @@ const mi = {
385
385
  return ((c = s.properties) == null ? void 0 : c.id) === ((n = e == null ? void 0 : e.properties) == null ? void 0 : n.id);
386
386
  })[0];
387
387
  o && (this.showMakerInfo = !0, this.form = { ...o.properties }, (r = this.marker) == null || r.remove(), this.$nextTick(() => {
388
- var n, f;
389
- const s = (n = document.getElementById("idm-gl4-zone-info")) == null ? void 0 : n.cloneNode(!0), c = (f = s == null ? void 0 : s.children[1]) == null ? void 0 : f.children[0];
388
+ var n, g;
389
+ const s = (n = document.getElementById("idm-gl4-zone-info")) == null ? void 0 : n.cloneNode(!0), c = (g = s == null ? void 0 : s.children[1]) == null ? void 0 : g.children[0];
390
390
  c && (c.onclick = () => {
391
391
  this.handleRemoveMarker();
392
392
  }), this.marker = new ve.Marker(s).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([230, 0]).addTo(this.map);
@@ -498,7 +498,7 @@ function hi(t, e, o, i, a, r) {
498
498
  default: u(() => [
499
499
  h(c, null, {
500
500
  default: u(() => {
501
- var f;
501
+ var g;
502
502
  return [
503
503
  h(s, {
504
504
  icon: "",
@@ -515,7 +515,7 @@ function hi(t, e, o, i, a, r) {
515
515
  }, 8, ["onClick"]),
516
516
  l("div", {
517
517
  class: "rich-context",
518
- innerHTML: (f = a.form) == null ? void 0 : f.name
518
+ innerHTML: (g = a.form) == null ? void 0 : g.name
519
519
  }, null, 8, di)
520
520
  ];
521
521
  }),
@@ -1482,10 +1482,10 @@ const ui = {
1482
1482
  { label: "Swell", key: "weather.swell", unit: "m" },
1483
1483
  { label: "Current", key: "weather.current", unit: "kts" }
1484
1484
  ], (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || o.dateTimeList.forEach((i, a) => {
1485
- var c, n, f, p, y, w, k, g, z, T, O, M, P, _, L, C, v, A, F, Y, Z, V, ee, $, J, pe, me, Q, ae, de, se, he, ge, H, ne, xe, Le, Pe;
1485
+ var c, n, g, p, y, w, k, f, z, T, O, M, P, _, L, C, v, A, F, Y, Z, V, ee, $, J, pe, me, Q, ae, de, se, he, ge, H, ne, xe, Le, Pe;
1486
1486
  let r = {};
1487
1487
  const s = ((c = ao.pickHourly(t, D(i))) == null ? void 0 : c[0]) || {};
1488
- r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((f = s == null ? void 0 : s.weather) == null ? void 0 : f.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((k = (w = s == null ? void 0 : s.weather) == null ? void 0 : w.precip) == null ? void 0 : k.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((g = s == null ? void 0 : s.weather) == null ? void 0 : g.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (z = s == null ? void 0 : s.weather) == null ? void 0 : z.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (M = (O = s == null ? void 0 : s.weather) == null ? void 0 : O.wind) == null ? void 0 : M.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 = (L = s == null ? void 0 : s.weather) == null ? void 0 : L.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((A = (v = s == null ? void 0 : s.wave) == null ? void 0 : v.sig) == null ? void 0 : A.height, 1) ?? "-", r.sigwaveDir = (Y = (F = s == null ? void 0 : s.wave) == null ? void 0 : F.sig) == null ? void 0 : Y.direction, r.sigwavePeriod = this.computeRoundPrecision((V = (Z = s == null ? void 0 : s.wave) == null ? void 0 : Z.sig) == null ? void 0 : V.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision(($ = (ee = s == null ? void 0 : s.wave) == null ? void 0 : ee.wd) == null ? void 0 : $.height, 1) ?? "-", r.windwaveDir = (pe = (J = s == null ? void 0 : s.wave) == null ? void 0 : J.wd) == null ? void 0 : pe.direction, r.windwavePeriod = this.computeRoundPrecision((Q = (me = s == null ? void 0 : s.wave) == null ? void 0 : me.wd) == null ? void 0 : Q.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((de = (ae = s == null ? void 0 : s.wave) == null ? void 0 : ae.swell) == null ? void 0 : de.height, 1) ?? "-", r.swellDir = (he = (se = s == null ? void 0 : s.wave) == null ? void 0 : se.swell) == null ? void 0 : he.direction, r.swellPeriod = this.computeRoundPrecision((H = (ge = s == null ? void 0 : s.wave) == null ? void 0 : ge.swell) == null ? void 0 : H.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((ne = s == null ? void 0 : s.current) == null ? void 0 : ne.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${a}`] = a * this.interval > 10 ? a * this.interval : "0" + a * this.interval, this.tableData[1][`value${a}`] = r.weatherUrl, this.tableData[2][`value${a}`] = r.temp, this.tableData[3][`value${a}`] = r.precip1h, this.tableData[4][`value${a}`] = r.visibility, this.tableData[5][`value${a}`] = r.windSpeed, this.tableData[6][`value${a}`] = r.sigwaveHeight, this.tableData[7][`value${a}`] = r.swellHeight, this.tableData[8][`value${a}`] = r.currentSpeed;
1488
+ r.utc = s.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (n = s.weather) == null ? void 0 : n.url, r.temp = this.computeRoundPrecision((g = s == null ? void 0 : s.weather) == null ? void 0 : g.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((y = (p = s == null ? void 0 : s.weather) == null ? void 0 : p.precip) == null ? void 0 : y.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((k = (w = s == null ? void 0 : s.weather) == null ? void 0 : w.precip) == null ? void 0 : k.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((f = s == null ? void 0 : s.weather) == null ? void 0 : f.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((T = (z = s == null ? void 0 : s.weather) == null ? void 0 : z.wind) == null ? void 0 : T.kts, 1) ?? "-", r.windDir = (M = (O = s == null ? void 0 : s.weather) == null ? void 0 : O.wind) == null ? void 0 : M.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 = (L = s == null ? void 0 : s.weather) == null ? void 0 : L.wind) == null ? void 0 : C.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((A = (v = s == null ? void 0 : s.wave) == null ? void 0 : v.sig) == null ? void 0 : A.height, 1) ?? "-", r.sigwaveDir = (Y = (F = s == null ? void 0 : s.wave) == null ? void 0 : F.sig) == null ? void 0 : Y.direction, r.sigwavePeriod = this.computeRoundPrecision((V = (Z = s == null ? void 0 : s.wave) == null ? void 0 : Z.sig) == null ? void 0 : V.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision(($ = (ee = s == null ? void 0 : s.wave) == null ? void 0 : ee.wd) == null ? void 0 : $.height, 1) ?? "-", r.windwaveDir = (pe = (J = s == null ? void 0 : s.wave) == null ? void 0 : J.wd) == null ? void 0 : pe.direction, r.windwavePeriod = this.computeRoundPrecision((Q = (me = s == null ? void 0 : s.wave) == null ? void 0 : me.wd) == null ? void 0 : Q.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((de = (ae = s == null ? void 0 : s.wave) == null ? void 0 : ae.swell) == null ? void 0 : de.height, 1) ?? "-", r.swellDir = (he = (se = s == null ? void 0 : s.wave) == null ? void 0 : se.swell) == null ? void 0 : he.direction, r.swellPeriod = this.computeRoundPrecision((H = (ge = s == null ? void 0 : s.wave) == null ? void 0 : ge.swell) == null ? void 0 : H.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((ne = s == null ? void 0 : s.current) == null ? void 0 : ne.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${a}`] = a * this.interval > 10 ? a * this.interval : "0" + a * this.interval, this.tableData[1][`value${a}`] = r.weatherUrl, this.tableData[2][`value${a}`] = r.temp, this.tableData[3][`value${a}`] = r.precip1h, this.tableData[4][`value${a}`] = r.visibility, this.tableData[5][`value${a}`] = r.windSpeed, this.tableData[6][`value${a}`] = r.sigwaveHeight, this.tableData[7][`value${a}`] = r.swellHeight, this.tableData[8][`value${a}`] = r.currentSpeed;
1489
1489
  });
1490
1490
  },
1491
1491
  handleTide() {
@@ -1670,19 +1670,19 @@ const ui = {
1670
1670
  width: "120"
1671
1671
  }, ur = { class: "px-1 text-center" }, gr = { class: "px-1 text-center" }, fr = { class: "px-1 text-center" };
1672
1672
  function yr(t, e, o, i, a, r) {
1673
- const s = x("VBtn"), c = x("VCardTitle"), n = x("VDivider"), f = x("VIcon"), p = x("VBtnToggle"), y = x("VCard");
1673
+ const s = x("VBtn"), c = x("VCardTitle"), n = x("VDivider"), g = x("VIcon"), p = x("VBtnToggle"), y = x("VCard");
1674
1674
  return b(), R(y, { class: "port-detail-container d-flex flex-column justify-start align-center" }, {
1675
1675
  default: u(() => {
1676
1676
  var w, k;
1677
1677
  return [
1678
1678
  h(c, { class: "w-100" }, {
1679
1679
  default: u(() => {
1680
- var g, z, T, O, M;
1680
+ var f, z, T, O, M;
1681
1681
  return [
1682
1682
  l("div", gi, [
1683
1683
  l("div", fi, [
1684
1684
  l("div", {
1685
- class: He(["fi mr-2 rounded elevation-4", `fi-${(g = o.port) != null && g.cntLoCode ? (T = (z = o.port) == null ? void 0 : z.cntLoCode) == null ? void 0 : T.toLowerCase() : "xx"}`]),
1685
+ class: He(["fi mr-2 rounded elevation-4", `fi-${(f = o.port) != null && f.cntLoCode ? (T = (z = o.port) == null ? void 0 : z.cntLoCode) == null ? void 0 : T.toLowerCase() : "xx"}`]),
1686
1686
  style: { width: "36px", height: "24px" }
1687
1687
  }, null, 2),
1688
1688
  l("div", null, m((O = o.port) == null ? void 0 : O.name), 1)
@@ -1714,9 +1714,9 @@ function yr(t, e, o, i, a, r) {
1714
1714
  }),
1715
1715
  h(n, { class: "w-100" }),
1716
1716
  l("div", bi, [
1717
- o.followList.some((g) => {
1717
+ o.followList.some((f) => {
1718
1718
  var z;
1719
- return ((z = g.port) == null ? void 0 : z.id) === o.portId;
1719
+ return ((z = f.port) == null ? void 0 : z.id) === o.portId;
1720
1720
  }) ? (b(), R(s, {
1721
1721
  key: 0,
1722
1722
  class: "text-none text-body-1 rounded flex-1-1-0",
@@ -1727,7 +1727,7 @@ function yr(t, e, o, i, a, r) {
1727
1727
  onClick: r.handleCancelFollow
1728
1728
  }, {
1729
1729
  prepend: u(() => [
1730
- h(f, { color: "warning" })
1730
+ h(g, { color: "warning" })
1731
1731
  ]),
1732
1732
  default: u(() => [
1733
1733
  N(" " + m(t.$t("actions.unfollow")), 1)
@@ -1803,7 +1803,7 @@ function yr(t, e, o, i, a, r) {
1803
1803
  l("div", Fi, [
1804
1804
  h(p, {
1805
1805
  modelValue: a.currentIndex,
1806
- "onUpdate:modelValue": e[0] || (e[0] = (g) => a.currentIndex = g),
1806
+ "onUpdate:modelValue": e[0] || (e[0] = (f) => a.currentIndex = f),
1807
1807
  class: "w-100 gray-card rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
1808
1808
  density: "compact",
1809
1809
  group: "",
@@ -1812,15 +1812,15 @@ function yr(t, e, o, i, a, r) {
1812
1812
  rounded: "1"
1813
1813
  }, {
1814
1814
  default: u(() => [
1815
- (b(!0), S(be, null, we(r.dateList, (g) => (b(), R(s, {
1815
+ (b(!0), S(be, null, we(r.dateList, (f) => (b(), R(s, {
1816
1816
  class: "text-none text-body-1 rounded bg-none flex-1-1-0",
1817
1817
  density: "compact",
1818
1818
  color: "primary",
1819
1819
  height: "26",
1820
- value: g.index
1820
+ value: f.index
1821
1821
  }, {
1822
1822
  default: u(() => [
1823
- N(m(g.label), 1)
1823
+ N(m(f.label), 1)
1824
1824
  ]),
1825
1825
  _: 2
1826
1826
  }, 1032, ["value"]))), 256))
@@ -1829,40 +1829,40 @@ function yr(t, e, o, i, a, r) {
1829
1829
  }, 8, ["modelValue"]),
1830
1830
  l("table", Hi, [
1831
1831
  l("tbody", null, [
1832
- (b(!0), S(be, null, we(a.tableData, (g) => (b(), S("tr", {
1833
- key: g.id
1832
+ (b(!0), S(be, null, we(a.tableData, (f) => (b(), S("tr", {
1833
+ key: f.id
1834
1834
  }, [
1835
1835
  l("th", Gi, [
1836
- N(m(t.$t(`${g.key}`)) + " ", 1),
1837
- g.unit ? (b(), S("span", Wi, " ( " + m(g.unit) + " )", 1)) : I("", !0)
1836
+ N(m(t.$t(`${f.key}`)) + " ", 1),
1837
+ f.unit ? (b(), S("span", Wi, " ( " + m(f.unit) + " )", 1)) : I("", !0)
1838
1838
  ]),
1839
1839
  l("td", Ui, [
1840
- g.img ? (b(), S("img", {
1840
+ f.img ? (b(), S("img", {
1841
1841
  key: 0,
1842
- src: g == null ? void 0 : g.value0,
1842
+ src: f == null ? void 0 : f.value0,
1843
1843
  style: { height: "30px" }
1844
- }, null, 8, Vi)) : (b(), S("span", Yi, m((g == null ? void 0 : g.value0) ?? "-"), 1))
1844
+ }, null, 8, Vi)) : (b(), S("span", Yi, m((f == null ? void 0 : f.value0) ?? "-"), 1))
1845
1845
  ]),
1846
1846
  l("td", Zi, [
1847
- g.img ? (b(), S("img", {
1847
+ f.img ? (b(), S("img", {
1848
1848
  key: 0,
1849
- src: g == null ? void 0 : g.value1,
1849
+ src: f == null ? void 0 : f.value1,
1850
1850
  style: { height: "30px" }
1851
- }, null, 8, qi)) : (b(), S("span", Xi, m((g == null ? void 0 : g.value1) ?? "-"), 1))
1851
+ }, null, 8, qi)) : (b(), S("span", Xi, m((f == null ? void 0 : f.value1) ?? "-"), 1))
1852
1852
  ]),
1853
1853
  l("td", Ki, [
1854
- g.img ? (b(), S("img", {
1854
+ f.img ? (b(), S("img", {
1855
1855
  key: 0,
1856
- src: g == null ? void 0 : g.value2,
1856
+ src: f == null ? void 0 : f.value2,
1857
1857
  style: { height: "30px" }
1858
- }, null, 8, $i)) : (b(), S("span", Qi, m((g == null ? void 0 : g.value2) ?? "-"), 1))
1858
+ }, null, 8, $i)) : (b(), S("span", Qi, m((f == null ? void 0 : f.value2) ?? "-"), 1))
1859
1859
  ]),
1860
1860
  l("td", Ji, [
1861
- g.img ? (b(), S("img", {
1861
+ f.img ? (b(), S("img", {
1862
1862
  key: 0,
1863
- src: g == null ? void 0 : g.value3,
1863
+ src: f == null ? void 0 : f.value3,
1864
1864
  style: { height: "30px" }
1865
- }, null, 8, er)) : (b(), S("span", tr, m((g == null ? void 0 : g.value3) ?? "-"), 1))
1865
+ }, null, 8, er)) : (b(), S("span", tr, m((f == null ? void 0 : f.value3) ?? "-"), 1))
1866
1866
  ])
1867
1867
  ]))), 128))
1868
1868
  ])
@@ -1886,7 +1886,7 @@ function yr(t, e, o, i, a, r) {
1886
1886
  density: "compact",
1887
1887
  variant: "plain",
1888
1888
  size: "small",
1889
- onClick: e[1] || (e[1] = (g) => a.showTideDetail = !1)
1889
+ onClick: e[1] || (e[1] = (f) => a.showTideDetail = !1)
1890
1890
  })) : (b(), R(s, {
1891
1891
  key: 1,
1892
1892
  icon: "mdi-eye-outline",
@@ -1906,12 +1906,12 @@ function yr(t, e, o, i, a, r) {
1906
1906
  l("th", hr, m(t.$t("time.time")) + " ( LT ) ", 1),
1907
1907
  l("th", pr, m(t.$t("tide.height")) + " ( m )", 1)
1908
1908
  ]),
1909
- (b(!0), S(be, null, we(a.tideTableData, (g, z) => {
1909
+ (b(!0), S(be, null, we(a.tideTableData, (f, z) => {
1910
1910
  var T;
1911
1911
  return b(), S("tr", { key: z }, [
1912
- l("td", ur, m(t.$t(`tide.${(T = g == null ? void 0 : g.type) == null ? void 0 : T.toLowerCase()}`)) + " " + m(t.$t("tide.tide")), 1),
1913
- l("td", gr, m(r.computeLocalTime(g == null ? void 0 : g.date, o.port, "MM-DD HH:mm")), 1),
1914
- l("td", fr, m((g == null ? void 0 : g.height) ?? "-") + " m", 1)
1912
+ l("td", ur, m(t.$t(`tide.${(T = f == null ? void 0 : f.type) == null ? void 0 : T.toLowerCase()}`)) + " " + m(t.$t("tide.tide")), 1),
1913
+ l("td", gr, m(r.computeLocalTime(f == null ? void 0 : f.date, o.port, "MM-DD HH:mm")), 1),
1914
+ l("td", fr, m((f == null ? void 0 : f.height) ?? "-") + " m", 1)
1915
1915
  ]);
1916
1916
  }), 128))
1917
1917
  ])
@@ -2066,7 +2066,7 @@ function _r(t, e, o, i, a, r) {
2066
2066
  port: a.port,
2067
2067
  forecastModel: o.forecastModel,
2068
2068
  onClose: r.handleCloseDetail,
2069
- onCloseAllDetail: e[0] || (e[0] = (f) => t.$emit("closeAllDetail", { ports: !0 }))
2069
+ onCloseAllDetail: e[0] || (e[0] = (g) => t.$emit("closeAllDetail", { ports: !0 }))
2070
2070
  }, t.$attrs), null, 16, ["portId", "port", "forecastModel", "onClose"])) : I("", !0)
2071
2071
  ]);
2072
2072
  }
@@ -2935,7 +2935,7 @@ const qr = {
2935
2935
  width: "120"
2936
2936
  }, Ll = { class: "px-1 text-center" }, Pl = { class: "px-1 text-center" }, Cl = { class: "px-1 text-center" };
2937
2937
  function Tl(t, e, o, i, a, r) {
2938
- const s = x("VBtn"), c = x("v-card-title"), n = x("v-divider"), f = x("VBtnToggle"), p = x("v-card");
2938
+ const s = x("VBtn"), c = x("v-card-title"), n = x("v-divider"), g = x("VBtnToggle"), p = x("v-card");
2939
2939
  return b(), R(p, { class: "tide-detail-container d-flex flex-column justify-start align-center" }, {
2940
2940
  default: u(() => {
2941
2941
  var y, w;
@@ -3011,7 +3011,7 @@ function Tl(t, e, o, i, a, r) {
3011
3011
  e[3] || (e[3] = l("div", { class: "text-body-2 text-success ga-2" }, null, -1))
3012
3012
  ]),
3013
3013
  l("div", wl, [
3014
- h(f, {
3014
+ h(g, {
3015
3015
  modelValue: a.currentIndex,
3016
3016
  "onUpdate:modelValue": e[0] || (e[0] = (k) => a.currentIndex = k),
3017
3017
  class: "w-100 gray-card rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",
@@ -3045,9 +3045,9 @@ function Tl(t, e, o, i, a, r) {
3045
3045
  l("th", kl, m(t.$t("time.time")) + " ( LT )", 1),
3046
3046
  l("th", zl, m(t.$t("tide.height")) + " ( m )", 1)
3047
3047
  ]),
3048
- (b(!0), S(be, null, we(a.tideTableData, (k, g) => {
3048
+ (b(!0), S(be, null, we(a.tideTableData, (k, f) => {
3049
3049
  var z;
3050
- return b(), S("tr", { key: g }, [
3050
+ return b(), S("tr", { key: f }, [
3051
3051
  l("td", Ll, m(t.$t(`tide.${(z = k == null ? void 0 : k.type) == null ? void 0 : z.toLowerCase()}`)) + " " + m(t.$t("tide.tide")), 1),
3052
3052
  l("td", Pl, m(r.computeLocalTime(k == null ? void 0 : k.date, o.station, "MM-DD HH:mm")), 1),
3053
3053
  l("td", Cl, m((k == null ? void 0 : k.height) ?? "-") + " m", 1)
@@ -3147,12 +3147,12 @@ function Ol(t, e, o, i, a, r) {
3147
3147
  default: u(() => [
3148
3148
  h(s, { class: "pr-8 text-body-1" }, {
3149
3149
  default: u(() => {
3150
- var f, p;
3150
+ var g, p;
3151
3151
  return [
3152
3152
  l("div", Il, [
3153
3153
  l("div", Al, m(t.$t("tide.tideStation")), 1),
3154
3154
  l("div", Dl, [
3155
- l("label", Rl, m((f = a.hoverStation) == null ? void 0 : f.name) + " , " + m(((p = a.hoverStation) == null ? void 0 : p.Country) || "-"), 1)
3155
+ l("label", Rl, m((g = a.hoverStation) == null ? void 0 : g.name) + " , " + m(((p = a.hoverStation) == null ? void 0 : p.Country) || "-"), 1)
3156
3156
  ])
3157
3157
  ])
3158
3158
  ];
@@ -4337,7 +4337,7 @@ function Yl(t, e, o, i, a, r) {
4337
4337
  forecastModel: o.forecastModel,
4338
4338
  followList: o.followList,
4339
4339
  onClose: r.handleCloseDetail,
4340
- onCloseAllDetail: e[0] || (e[0] = (f) => t.$emit("closeAllDetail", { followPort: !0 }))
4340
+ onCloseAllDetail: e[0] || (e[0] = (g) => t.$emit("closeAllDetail", { followPort: !0 }))
4341
4341
  }, t.$attrs), null, 16, ["portId", "port", "forecastModel", "followList", "onClose"])) : I("", !0)
4342
4342
  ]);
4343
4343
  }
@@ -4445,18 +4445,18 @@ const ql = {
4445
4445
  this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source), (t = this.map) == null || t.on("click", [this.layer], this.handleClick), (e = this.map) == null || e.on("mousemove", [this.layer], this.handleHover), (o = this.map) == null || o.on("mouseleave", [this.layer], this.handleLeave);
4446
4446
  },
4447
4447
  handleClick(t) {
4448
- var o, i, a, r, s, c, n, f, p;
4448
+ var o, i, a, r, s, c, n, g, p;
4449
4449
  const e = t.features[0];
4450
4450
  if (e.properties) {
4451
4451
  const y = e.properties;
4452
4452
  y.lng = e.geometry.coordinates[0], y.lat = e.geometry.coordinates[1];
4453
- const w = D(), k = (o = D(this.realTime)) == null ? void 0 : o.diff(w, "d", !0), g = {
4453
+ const w = D(), k = (o = D(this.realTime)) == null ? void 0 : o.diff(w, "d", !0), f = {
4454
4454
  lat: y.lat,
4455
4455
  lng: y.lng,
4456
4456
  datetime: this.realTime,
4457
4457
  forecastModel: this.forecastModel
4458
4458
  };
4459
- k >= 0 ? (s = (r = (a = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmSpot) == null || s.fetchMeteoData(g) : (p = (f = (n = (c = this.$parent) == null ? void 0 : c.$parent) == null ? void 0 : n.$refs) == null ? void 0 : f.idmSpot) == null || p.fetchHistoryData(g);
4459
+ k >= 0 ? (s = (r = (a = (i = this.$parent) == null ? void 0 : i.$parent) == null ? void 0 : a.$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);
4460
4460
  }
4461
4461
  },
4462
4462
  handleHover(t) {
@@ -4677,8 +4677,8 @@ const es = {
4677
4677
  );
4678
4678
  (await Promise.all(s)).map((n) => {
4679
4679
  var y, w, k;
4680
- const f = ((y = n == null ? void 0 : n.data) == null ? void 0 : y.data) || (n == null ? void 0 : n.data), p = (k = (w = n == null ? void 0 : n.config) == null ? void 0 : w.headers) == null ? void 0 : k.key;
4681
- this.otherLayers[p] = f;
4680
+ const g = ((y = n == null ? void 0 : n.data) == null ? void 0 : y.data) || (n == null ? void 0 : n.data), p = (k = (w = n == null ? void 0 : n.config) == null ? void 0 : w.headers) == null ? void 0 : k.key;
4681
+ this.otherLayers[p] = g;
4682
4682
  });
4683
4683
  }
4684
4684
  }
@@ -4716,7 +4716,7 @@ const es = {
4716
4716
  }, ds = { class: "text-body-2 text-center pt-1" };
4717
4717
  function hs(t, e, o, i, a, r) {
4718
4718
  var J, pe, me, Q, ae, de, se, he, ge;
4719
- const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), f = x("VCardItem"), p = x("VCheckbox"), y = x("VCardText"), w = x("VCard"), k = x("IdmLatLng"), g = x("IdmTerminator"), z = x("IdmTimezone"), T = x("IdmPort"), O = x("IdmAlertZone"), M = x("IdmTideStations"), P = x("IdmEcaZone"), _ = x("IdmWarZone"), L = x("IdmGmdssArea"), C = x("IdmLoadLine"), v = x("IdmWorldMarine"), A = x("IdmVRA"), F = x("IdmSpecialArea"), Y = x("IdmWorld12nm"), Z = x("IdmChinaRoute"), V = x("IdmIceAreas"), ee = x("IdmFollowPort"), $ = x("IdmFollowPosition");
4719
+ const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VCardItem"), p = x("VCheckbox"), y = x("VCardText"), w = x("VCard"), k = x("IdmLatLng"), f = x("IdmTerminator"), z = x("IdmTimezone"), T = x("IdmPort"), O = x("IdmAlertZone"), M = x("IdmTideStations"), P = x("IdmEcaZone"), _ = x("IdmWarZone"), L = x("IdmGmdssArea"), C = x("IdmLoadLine"), v = x("IdmWorldMarine"), A = x("IdmVRA"), F = x("IdmSpecialArea"), Y = x("IdmWorld12nm"), Z = x("IdmChinaRoute"), V = x("IdmIceAreas"), ee = x("IdmFollowPort"), $ = x("IdmFollowPosition");
4720
4720
  return b(), S("div", ts, [
4721
4721
  l("div", {
4722
4722
  class: "menu-bar-box transition px-1 rounded",
@@ -4770,7 +4770,7 @@ function hs(t, e, o, i, a, r) {
4770
4770
  elevation: "0"
4771
4771
  }, {
4772
4772
  default: u(() => [
4773
- h(f, { class: "border-b-thin" }, {
4773
+ h(g, { class: "border-b-thin" }, {
4774
4774
  default: u(() => [
4775
4775
  h(n, {
4776
4776
  class: "text-subtitle-1 font-weight-medium",
@@ -4823,7 +4823,7 @@ function hs(t, e, o, i, a, r) {
4823
4823
  elevation: "0"
4824
4824
  }, {
4825
4825
  default: u(() => [
4826
- h(f, { class: "border-b-thin" }, {
4826
+ h(g, { class: "border-b-thin" }, {
4827
4827
  default: u(() => [
4828
4828
  h(n, {
4829
4829
  class: "text-subtitle-1 font-weight-medium",
@@ -4862,7 +4862,7 @@ function hs(t, e, o, i, a, r) {
4862
4862
  elevation: "0"
4863
4863
  }, {
4864
4864
  default: u(() => [
4865
- h(f, { class: "border-b-thin" }, {
4865
+ h(g, { class: "border-b-thin" }, {
4866
4866
  default: u(() => [
4867
4867
  h(n, {
4868
4868
  class: "text-subtitle-1 font-weight-medium",
@@ -4901,7 +4901,7 @@ function hs(t, e, o, i, a, r) {
4901
4901
  elevation: "0"
4902
4902
  }, {
4903
4903
  default: u(() => [
4904
- h(f, { class: "border-b-thin" }, {
4904
+ h(g, { class: "border-b-thin" }, {
4905
4905
  default: u(() => [
4906
4906
  h(n, {
4907
4907
  class: "text-subtitle-1 font-weight-medium",
@@ -4953,7 +4953,7 @@ function hs(t, e, o, i, a, r) {
4953
4953
  "menu-toggle": o.menuToggle,
4954
4954
  show: a.checkList.includes("graticule")
4955
4955
  }, t.$attrs), null, 16, ["map", "menu-toggle", "show"])) : I("", !0),
4956
- o.map ? (b(), R(g, B({
4956
+ o.map ? (b(), R(f, B({
4957
4957
  key: 1,
4958
4958
  map: o.map,
4959
4959
  area: (J = a.otherLayers) == null ? void 0 : J["day-night"]
@@ -5113,12 +5113,12 @@ class so {
5113
5113
  * @param [lb.x, lb.y, rt.x, rt.y]
5114
5114
  */
5115
5115
  getBoundPixel() {
5116
- var g, z;
5117
- const e = (g = this.map) == null ? void 0 : g.getBounds();
5116
+ var f, z;
5117
+ const e = (f = this.map) == null ? void 0 : f.getBounds();
5118
5118
  if (!e)
5119
5119
  return [];
5120
- const o = ((z = this.map) == null ? void 0 : z.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [c, n] = this.convertNLng(a[0]), [f, p] = this.mercator.px([r, i[1]], o), [y, w] = this.mercator.px([c, a[1]], o), k = Math.round(this.mercator.size * Math.pow(2, o) * (s + n));
5121
- return [y, w, f + k, p];
5120
+ const o = ((z = this.map) == null ? void 0 : z.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [c, n] = this.convertNLng(a[0]), [g, p] = this.mercator.px([r, i[1]], o), [y, w] = this.mercator.px([c, a[1]], o), k = Math.round(this.mercator.size * Math.pow(2, o) * (s + n));
5121
+ return [y, w, g + k, p];
5122
5122
  }
5123
5123
  /**
5124
5124
  * [视窗边界像素宽度]
@@ -5223,13 +5223,13 @@ class Ne {
5223
5223
  if (a) {
5224
5224
  const r = { program: a }, s = e.getProgramParameter(a, e.ACTIVE_ATTRIBUTES);
5225
5225
  for (let n = 0; n < s; n++) {
5226
- const f = e.getActiveAttrib(a, n);
5227
- r[f.name] = e.getAttribLocation(a, f.name);
5226
+ const g = e.getActiveAttrib(a, n);
5227
+ r[g.name] = e.getAttribLocation(a, g.name);
5228
5228
  }
5229
5229
  const c = e.getProgramParameter(a, e.ACTIVE_UNIFORMS);
5230
5230
  for (let n = 0; n < c; n++) {
5231
- const f = e.getActiveUniform(a, n);
5232
- r[f.name] = e.getUniformLocation(a, f.name);
5231
+ const g = e.getActiveUniform(a, n);
5232
+ r[g.name] = e.getUniformLocation(a, g.name);
5233
5233
  }
5234
5234
  return r;
5235
5235
  }
@@ -5244,8 +5244,8 @@ class Ne {
5244
5244
  const c = s.getContext("2d");
5245
5245
  if (c && e) {
5246
5246
  const n = c == null ? void 0 : c.createLinearGradient(0, 0, 256, 0);
5247
- return o.forEach(([f, p]) => {
5248
- n.addColorStop(f, p);
5247
+ return o.forEach(([g, p]) => {
5248
+ n.addColorStop(g, p);
5249
5249
  }), c.fillStyle = n, c.fillRect(0, 0, 256, 1), {
5250
5250
  canvas: s,
5251
5251
  texture: this.createTexture(
@@ -5267,8 +5267,8 @@ class Ne {
5267
5267
  const s = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i), c = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i), n = new Float32Array(a);
5268
5268
  for (let p = 0; p < a; p++)
5269
5269
  n[p] = p;
5270
- const f = this.createDataBuffer(e, "array", n);
5271
- return { resolution: i, total: a, texture0: s, texture1: c, indexBuffer: f };
5270
+ const g = this.createDataBuffer(e, "array", n);
5271
+ return { resolution: i, total: a, texture0: s, texture1: c, indexBuffer: g };
5272
5272
  }
5273
5273
  bind(e, o, i) {
5274
5274
  const a = this.createProgram(e, o, i);
@@ -5283,13 +5283,13 @@ class Ne {
5283
5283
  return {};
5284
5284
  }
5285
5285
  bindParticle(e, o, i, a, r, s) {
5286
- const c = this.createProgramWrapper(e, o, i), n = this.createProgramWrapper(e, a, r), f = this.createProgramWrapper(e, a, s), p = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), y = e.createFramebuffer();
5287
- return { particle: c, screen: n, update: f, quadBuffer: p, frameBuffer: y };
5286
+ const c = this.createProgramWrapper(e, o, i), n = this.createProgramWrapper(e, a, r), g = this.createProgramWrapper(e, a, s), p = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), y = e.createFramebuffer();
5287
+ return { particle: c, screen: n, update: g, quadBuffer: p, frameBuffer: y };
5288
5288
  }
5289
5289
  draw(e, o, i, a, r, s, c) {
5290
- var n, f;
5290
+ var n, g;
5291
5291
  if (o && i) {
5292
- e.resize(), o == null || o.viewport(0, 0, (n = o == null ? void 0 : o.canvas) == null ? void 0 : n.width, (f = o == null ? void 0 : o.canvas) == null ? void 0 : f.height), o.clearColor(0, 0, 0, 0), o.clear(o.COLOR_BUFFER_BIT | o.DEPTH_BUFFER_BIT);
5292
+ e.resize(), o == null || o.viewport(0, 0, (n = o == null ? void 0 : o.canvas) == null ? void 0 : n.width, (g = o == null ? void 0 : o.canvas) == null ? void 0 : g.height), o.clearColor(0, 0, 0, 0), o.clear(o.COLOR_BUFFER_BIT | o.DEPTH_BUFFER_BIT);
5293
5293
  try {
5294
5294
  o.useProgram(i);
5295
5295
  const p = {
@@ -5302,8 +5302,8 @@ class Ne {
5302
5302
  };
5303
5303
  p.resolution && o.uniform2f(p.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), p.image && o.uniform1i(p.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, r), p.color && o.uniform1i(p.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (p.uvRange && o.uniform2f(p.uvRange, c.uvRange[0], c.uvRange[1]), p.sRange && o.uniform2f(p.sRange, c.sRange[0], c.sRange[1])), p.scale && o.uniform1f(p.scale, (c == null ? void 0 : c.scale) || 1);
5304
5304
  const y = e.getBoundPixel(), w = e.map.getZoom() + 1, k = e.getWorldCopy(y, w);
5305
- for (const g of k) {
5306
- const z = (g[0] - y[0]) * e.ratio, T = (g[1] - y[3]) * e.ratio, O = g[2] * e.ratio, [M, P, _, L] = [z, O + z, T, O + T], C = new Float32Array([M, _, P, _, M, L, M, L, P, _, P, L]);
5305
+ for (const f of k) {
5306
+ const z = (f[0] - y[0]) * e.ratio, T = (f[1] - y[3]) * e.ratio, O = f[2] * e.ratio, [M, P, _, L] = [z, O + z, T, O + T], C = new Float32Array([M, _, P, _, M, L, M, L, P, _, P, L]);
5307
5307
  o.bindBuffer(o.ARRAY_BUFFER, s), o.bufferData(o.ARRAY_BUFFER, C, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
5308
5308
  }
5309
5309
  } catch (p) {
@@ -5651,17 +5651,17 @@ const us = {
5651
5651
  else {
5652
5652
  this.map.addSource(this.source, { type: "geojson", data: r });
5653
5653
  for (let s = 0; s < (this.barbs ?? []).length - 1; s++) {
5654
- const c = (this.barbs ?? [])[s] || 0, n = (this.barbs ?? [])[s + 1] || 0, f = c < 10 ? `00${c}kts` : c < 100 ? `0${c}kts` : `${c}kts`, p = new Image(48, 48);
5655
- p.src = "data:image/svg+xml;base64," + window.btoa(this.svgs[f]), p.onload = () => {
5656
- this.map.hasImage(f + "-icon") || this.map.addImage(f + "-icon", p), this.map.addLayer(
5654
+ const c = (this.barbs ?? [])[s] || 0, n = (this.barbs ?? [])[s + 1] || 0, g = c < 10 ? `00${c}kts` : c < 100 ? `0${c}kts` : `${c}kts`, p = new Image(48, 48);
5655
+ p.src = "data:image/svg+xml;base64," + window.btoa(this.svgs[g]), p.onload = () => {
5656
+ this.map.hasImage(g + "-icon") || this.map.addImage(g + "-icon", p), this.map.addLayer(
5657
5657
  {
5658
- id: f,
5658
+ id: g,
5659
5659
  type: "symbol",
5660
5660
  filter: ["all", [">=", "spd", c], ["<", "spd", n]],
5661
5661
  source: this.source,
5662
5662
  layout: {
5663
5663
  "symbol-placement": "point",
5664
- "icon-image": f + "-icon",
5664
+ "icon-image": g + "-icon",
5665
5665
  // mapbox sprite
5666
5666
  "icon-size": 0.5,
5667
5667
  "icon-offset": [0, -20],
@@ -6001,11 +6001,11 @@ const vs = /* @__PURE__ */ X(bs, [["render", xs]]), _s = {
6001
6001
  );
6002
6002
  const s = new Image(48, 48), c = '<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="12518" width="200" height="200"><path d="M481.386772 959.514313 481.386772 334.713224c-56.000432 37.288255-92.523253 55.876612-142.312216 57.787124 85.834924-84.884272 130.528845-195.161888 172.552961-328.434218 40.259936 133.272329 89.39296 238.731196 172.622546 328.434218-54.105269-5.729491-86.780459-21.201881-146.338926-58.965973l0 625.979938L481.386772 959.514313z" p-id="12519" fill="#ffffff"></path></svg>';
6003
6003
  s.src = "data:image/svg+xml;base64," + window.btoa(c);
6004
- const n = new Image(48, 48), f = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
6004
+ const n = new Image(48, 48), g = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
6005
6005
  <path d="M10 2.5V17.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
6006
6006
  <path d="M5 7.5L10 2.5L15 7.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
6007
6007
  </svg>`;
6008
- n.src = "data:image/svg+xml;base64," + window.btoa(f);
6008
+ n.src = "data:image/svg+xml;base64," + window.btoa(g);
6009
6009
  const p = [n];
6010
6010
  let y = 0;
6011
6011
  p.forEach((w) => {
@@ -6788,8 +6788,8 @@ function Gs(t, e, o, i, a, r) {
6788
6788
  text: "Map Layers",
6789
6789
  location: "left"
6790
6790
  }, {
6791
- activator: u(({ props: f }) => [
6792
- h(s, B(f, {
6791
+ activator: u(({ props: g }) => [
6792
+ h(s, B(g, {
6793
6793
  "min-width": "32",
6794
6794
  width: "32",
6795
6795
  height: "32",
@@ -7868,11 +7868,11 @@ const wn = {
7868
7868
  (t == null ? void 0 : t.data.code) === 0 && (this.models = t == null ? void 0 : t.data.data);
7869
7869
  },
7870
7870
  async fetchWeatherLayers(t = {}) {
7871
- var a, r, s, c, n, f, p, y, w;
7871
+ var a, r, s, c, n, g, p, y, w;
7872
7872
  const e = (/* @__PURE__ */ new Date()).valueOf();
7873
7873
  let o = 0, i = 0;
7874
7874
  if (this.map) {
7875
- const k = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, g = (r = this.map) == null ? void 0 : r.getBounds(), z = `${g._sw.lng},${g._sw.lat},${g._ne.lng},${g._ne.lat}`;
7875
+ const k = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, f = (r = this.map) == null ? void 0 : r.getBounds(), z = `${f._sw.lng},${f._sw.lat},${f._ne.lng},${f._ne.lat}`;
7876
7876
  if (this.particleFactor && ((s = this.$refs.layer) != null && s.autoActive)) {
7877
7877
  const T = io.WEATHER_LAYERS.find((O) => {
7878
7878
  var M;
@@ -7918,7 +7918,7 @@ const wn = {
7918
7918
  });
7919
7919
  }
7920
7920
  if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather layers elapsed: ", i, ", total: ", o += i), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
7921
- const P = (f = this.weatherLayers["swell-direction"]) == null ? void 0 : f.raw, _ = (p = this.weatherLayers["swell-height"]) == null ? void 0 : p.raw;
7921
+ const P = (g = this.weatherLayers["swell-direction"]) == null ? void 0 : g.raw, _ = (p = this.weatherLayers["swell-height"]) == null ? void 0 : p.raw;
7922
7922
  delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
7923
7923
  type: "json",
7924
7924
  direction: P,
@@ -7954,7 +7954,7 @@ const wn = {
7954
7954
  t != null && t.sourceChanged || this.weatherWeight !== e ? (this.weatherWeight = e, this.fetchWeatherLayers()) : this.handleWeatherLayerToggle();
7955
7955
  },
7956
7956
  handleRampColorInitial() {
7957
- var t, e, o, i, a, r, s, c, n, f, p, y;
7957
+ var t, e, o, i, a, r, s, c, n, g, p, y;
7958
7958
  this.viewport.map.getSource((t = this.viewport) == null ? void 0 : t.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
7959
7959
  type: "canvas",
7960
7960
  canvas: (o = this.viewport) == null ? void 0 : o.rampColorCanvas,
@@ -7975,7 +7975,7 @@ const wn = {
7975
7975
  canvas: (n = this.viewport) == null ? void 0 : n.particleCanvas,
7976
7976
  animate: !0,
7977
7977
  coordinates: this.viewport.getBoundLngLat()
7978
- }), this.viewport.map.getLayer((f = this.viewport) == null ? void 0 : f.particleLayer) || this.viewport.map.addLayer(
7978
+ }), this.viewport.map.getLayer((g = this.viewport) == null ? void 0 : g.particleLayer) || this.viewport.map.addLayer(
7979
7979
  {
7980
7980
  type: "raster",
7981
7981
  id: (p = this.viewport) == null ? void 0 : p.particleLayer,
@@ -7988,10 +7988,10 @@ const wn = {
7988
7988
  );
7989
7989
  },
7990
7990
  handleDrawWeather4Json() {
7991
- var f, p, y, w, k, g, z;
7991
+ var g, p, y, w, k, f, z;
7992
7992
  const t = (/* @__PURE__ */ new Date()).valueOf();
7993
7993
  let e = 0, o = 0;
7994
- const i = (f = this.map) == null ? void 0 : f.getBounds(), a = (p = this.map) == null ? void 0 : p.getZoom(), r = K.convertToStdLng(i._sw.lng), s = K.convertToStdLng(i._ne.lng), c = Math.floor(i._sw.lat), n = Math.ceil(i._ne.lat);
7994
+ const i = (g = this.map) == null ? void 0 : g.getBounds(), a = (p = this.map) == null ? void 0 : p.getZoom(), r = K.convertToStdLng(i._sw.lng), s = K.convertToStdLng(i._ne.lng), c = Math.floor(i._sw.lat), n = Math.ceil(i._ne.lat);
7995
7995
  for (const T in this.weatherLayers) {
7996
7996
  let O = !1;
7997
7997
  if (this.weatherLayers[T].active && this.weatherLayers[T].type === "json") {
@@ -8107,7 +8107,7 @@ const wn = {
8107
8107
  if (_) {
8108
8108
  if (!_.data) {
8109
8109
  const C = [];
8110
- for (const v in (g = _.raw) == null ? void 0 : g.Polygon) {
8110
+ for (const v in (f = _.raw) == null ? void 0 : f.Polygon) {
8111
8111
  const A = _.raw.Polygon[v];
8112
8112
  for (const F of A)
8113
8113
  C.push(
@@ -8277,7 +8277,7 @@ const wn = {
8277
8277
  }, On = { class: "text-body-1 py-2" }, Bn = { class: "text-body-1 font-weight-medium" }, En = { class: "text-body-2 text-label" }, jn = { class: "text-body-2 text-label mb-3" }, Nn = { class: "text-body-1 font-weight-medium" }, Fn = { class: "text-body-2 text-label" }, Hn = { class: "text-body-2 text-label mb-3" }, Gn = { class: "text-body-1 py-2" }, Wn = { class: "text-body-1 font-weight-medium" }, Un = { class: "text-body-2 text-label" }, Vn = { class: "text-body-2 text-label mb-3" }, Yn = { class: "text-body-1 font-weight-medium" }, Zn = { class: "text-body-2 text-label" }, qn = { class: "text-body-2 text-label mb-3" }, Xn = { class: "text-body-1 py-2" }, Kn = { class: "text-body-1 font-weight-medium" }, $n = { class: "text-body-2 text-label" }, Qn = { class: "text-body-2 text-label mb-3" };
8278
8278
  function Jn(t, e, o, i, a, r) {
8279
8279
  var Q, ae, de, se, he, ge, H, ne, xe, Le, Pe, Ae, De, Re, _e;
8280
- const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"), f = x("VRow"), p = x("VCardText"), y = x("VDivider"), w = x("VCard"), k = x("VSwitch"), g = x("VCardTitle"), z = x("VCardItem"), T = x("VCheckbox"), O = x("VRadio"), M = x("VBtnToggle"), P = x("IdmWindBarb"), _ = x("IdmSigWaveHeight"), L = x("IdmCurrentDirection"), C = x("IdmPrmsl"), v = x("IdmWindParticle"), A = x("IdmCurrentParticle"), F = x("IdmWave"), Y = x("IdmSwell"), Z = x("IdmIceEdge"), V = x("IdmIceCover"), ee = x("IdmIceThickness"), $ = x("IdmPrecip3h"), J = x("IdmVisibility"), pe = x("IdmWaterTemp"), me = x("IdmTemp");
8280
+ const s = x("VBtn"), c = x("VTooltip"), n = x("VCol"), g = x("VRow"), p = x("VCardText"), y = x("VDivider"), w = x("VCard"), k = x("VSwitch"), f = x("VCardTitle"), z = x("VCardItem"), T = x("VCheckbox"), O = x("VRadio"), M = x("VBtnToggle"), P = x("IdmWindBarb"), _ = x("IdmSigWaveHeight"), L = x("IdmCurrentDirection"), C = x("IdmPrmsl"), v = x("IdmWindParticle"), A = x("IdmCurrentParticle"), F = x("IdmWave"), Y = x("IdmSwell"), Z = x("IdmIceEdge"), V = x("IdmIceCover"), ee = x("IdmIceThickness"), $ = x("IdmPrecip3h"), J = x("IdmVisibility"), pe = x("IdmWaterTemp"), me = x("IdmTemp");
8281
8281
  return b(), S("div", xn, [
8282
8282
  l("div", {
8283
8283
  class: "menu-bar-box transition pa-1",
@@ -8343,7 +8343,7 @@ function Jn(t, e, o, i, a, r) {
8343
8343
  h(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
8344
8344
  default: u(() => [
8345
8345
  e[10] || (e[10] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wind Level", -1)),
8346
- h(f, { class: "ma-0 ml-n1 text-body-2" }, {
8346
+ h(g, { class: "ma-0 ml-n1 text-body-2" }, {
8347
8347
  default: u(() => [
8348
8348
  (b(!0), S(be, null, we(a.legend.barbs, (W, te) => (b(), R(n, {
8349
8349
  key: W,
@@ -8372,7 +8372,7 @@ function Jn(t, e, o, i, a, r) {
8372
8372
  h(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
8373
8373
  default: u(() => [
8374
8374
  e[11] || (e[11] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wave Height", -1)),
8375
- h(f, {
8375
+ h(g, {
8376
8376
  class: "ma-0 ml-1",
8377
8377
  style: { width: "100px" }
8378
8378
  }, {
@@ -8404,7 +8404,7 @@ function Jn(t, e, o, i, a, r) {
8404
8404
  h(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
8405
8405
  default: u(() => [
8406
8406
  e[12] || (e[12] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Current", -1)),
8407
- h(f, {
8407
+ h(g, {
8408
8408
  class: "ma-0 ml-n5",
8409
8409
  style: { width: "110px" }
8410
8410
  }, {
@@ -8479,7 +8479,7 @@ function Jn(t, e, o, i, a, r) {
8479
8479
  default: u(() => [
8480
8480
  h(z, { class: "border-b-thin" }, {
8481
8481
  default: u(() => [
8482
- h(g, {
8482
+ h(f, {
8483
8483
  class: "text-subtitle-1 font-weight-medium",
8484
8484
  style: { "font-size": "16px !important" }
8485
8485
  }, {
@@ -8519,7 +8519,7 @@ function Jn(t, e, o, i, a, r) {
8519
8519
  default: u(() => [
8520
8520
  h(z, { class: "border-b-thin" }, {
8521
8521
  default: u(() => [
8522
- h(g, {
8522
+ h(f, {
8523
8523
  class: "text-subtitle-1 font-weight-medium",
8524
8524
  style: { "font-size": "16px !important" }
8525
8525
  }, {
@@ -8679,7 +8679,7 @@ function Jn(t, e, o, i, a, r) {
8679
8679
  default: u(() => [
8680
8680
  h(z, { class: "border-b-thin" }, {
8681
8681
  default: u(() => [
8682
- h(g, {
8682
+ h(f, {
8683
8683
  class: "text-subtitle-1 font-weight-medium",
8684
8684
  style: { "font-size": "16px !important" }
8685
8685
  }, {
@@ -9147,17 +9147,17 @@ class Ya {
9147
9147
  let n = to.find((p) => {
9148
9148
  var y, w, k;
9149
9149
  return ((y = p.models) == null ? void 0 : y.includes(c)) || ((w = p.alias) == null ? void 0 : w.toLowerCase()) === c || ((k = p.name) == null ? void 0 : k.toLowerCase()) === c;
9150
- }), f = oo.find((p) => {
9150
+ }), g = oo.find((p) => {
9151
9151
  var y, w, k;
9152
9152
  return ((y = p.models) == null ? void 0 : y.includes(c)) || ((w = p.alias) == null ? void 0 : w.toLowerCase()) === c || ((k = p.name) == null ? void 0 : k.toLowerCase()) === c;
9153
9153
  });
9154
9154
  n = n || to.find((p) => {
9155
9155
  var y, w;
9156
- return ((y = p.alias) == null ? void 0 : y.toLowerCase()) === ((w = f == null ? void 0 : f.alias) == null ? void 0 : w.toLowerCase());
9157
- }), f = f || oo.find((p) => {
9156
+ return ((y = p.alias) == null ? void 0 : y.toLowerCase()) === ((w = g == null ? void 0 : g.alias) == null ? void 0 : w.toLowerCase());
9157
+ }), g = g || oo.find((p) => {
9158
9158
  var y, w;
9159
9159
  return ((y = p.alias) == null ? void 0 : y.toLowerCase()) === ((w = n == null ? void 0 : n.alias) == null ? void 0 : w.toLowerCase());
9160
- }), n = n || to[0], f = f || oo[0], r.push((o = n.models) != null && o.includes(c) ? c : n.model), s.push((i = f.models) != null && i.includes(c) ? c : f.model);
9160
+ }), n = n || to[0], g = g || oo[0], r.push((o = n.models) != null && o.includes(c) ? c : n.model), s.push((i = g.models) != null && i.includes(c) ? c : g.model);
9161
9161
  }
9162
9162
  return {
9163
9163
  weatherModels: r.join(","),
@@ -9174,8 +9174,8 @@ class Ya {
9174
9174
  }), a;
9175
9175
  }
9176
9176
  static pickHourly(e, o) {
9177
- var i, a, r, s, c, n, f, p, y, w, k, g, z, T, O, M, P, _, L, C, v, A, F, Y, Z, V, ee, $, J, pe, me, Q, ae, de, se, he, ge, H, ne, xe, Le, Pe, Ae, De, Re, _e, W, te, Fe, Me;
9178
- const ue = typeof o == "string" ? D(o) : o, fe = e == null ? void 0 : e.weather, U = e == null ? void 0 : e.marine, Ce = D((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), oe = 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"), re = Ce.clone().add((p = (f = (n = fe == null ? void 0 : fe[0]) == null ? void 0 : n.hourly) == null ? void 0 : f.time) == null ? void 0 : p.at(-1), "h"), Oe = [];
9177
+ var i, a, r, s, c, n, g, p, y, w, k, f, z, T, O, M, P, _, L, C, v, A, F, Y, Z, V, ee, $, J, pe, me, Q, ae, de, se, he, ge, H, ne, xe, Le, Pe, Ae, De, Re, _e, W, te, Fe, Me;
9178
+ const ue = typeof o == "string" ? D(o) : o, fe = e == null ? void 0 : e.weather, U = e == null ? void 0 : e.marine, Ce = D((a = (i = fe == null ? void 0 : fe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), oe = 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"), re = 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 = [];
9179
9179
  if (ue.isBetween(oe, re, "millisecond", "[]")) {
9180
9180
  const j = ue.utc().diff(oe, "h", !1);
9181
9181
  let ye, Ie;
@@ -9189,7 +9189,7 @@ class Ya {
9189
9189
  Ee += (w = q == null ? void 0 : q.precipitation) == null ? void 0 : w.at(Te);
9190
9190
  ye = {
9191
9191
  temp: (k = q == null ? void 0 : q.temperature_2m) == null ? void 0 : k.at(j),
9192
- apparentTemp: (g = q == null ? void 0 : q.apparent_temperature) == null ? void 0 : g.at(j),
9192
+ apparentTemp: (f = q == null ? void 0 : q.apparent_temperature) == null ? void 0 : f.at(j),
9193
9193
  rh: (z = q == null ? void 0 : q.relative_humidity_2m) == null ? void 0 : z.at(j),
9194
9194
  dp: (T = q == null ? void 0 : q.dew_point_2m) == null ? void 0 : T.at(j),
9195
9195
  precip: {
@@ -9261,7 +9261,7 @@ class Ya {
9261
9261
  return Oe;
9262
9262
  }
9263
9263
  static toLegacy(e) {
9264
- var o, i, a, r, s, c, n, f, p, y;
9264
+ var o, i, a, r, s, c, n, g, p, y;
9265
9265
  return {
9266
9266
  wind: (o = e == null ? void 0 : e.weather) == null ? void 0 : o.wind,
9267
9267
  visibility: (i = e == null ? void 0 : e.weather) == null ? void 0 : i.visibility,
@@ -9271,7 +9271,7 @@ class Ya {
9271
9271
  kts: (c = (s = e == null ? void 0 : e.weather) == null ? void 0 : s.wind) == null ? void 0 : c.gusts
9272
9272
  },
9273
9273
  precip: (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip,
9274
- code: (f = e == null ? void 0 : e.weather) == null ? void 0 : f.code,
9274
+ code: (g = e == null ? void 0 : e.weather) == null ? void 0 : g.code,
9275
9275
  name: (p = e == null ? void 0 : e.weather) == null ? void 0 : p.name,
9276
9276
  url: (y = e == null ? void 0 : e.weather) == null ? void 0 : y.url,
9277
9277
  wave: e == null ? void 0 : e.wave,
@@ -9283,7 +9283,7 @@ class Ya {
9283
9283
  };
9284
9284
  }
9285
9285
  static pickDaily(e, o) {
9286
- var i, a, r, s, c, n, f, p, y, w, k, g, z, T, O, M, P, _, L, C, v, A, F, Y, Z, V, ee, $, J, pe, me, Q, ae, de, se, he, ge, H, ne, xe, Le, Pe, Ae, De;
9286
+ var i, a, r, s, c, n, g, p, y, w, k, f, z, T, O, M, P, _, L, C, v, A, F, Y, Z, V, ee, $, J, pe, me, Q, ae, de, se, he, ge, H, ne, xe, Le, Pe, Ae, De;
9287
9287
  const Re = typeof o == "string" ? D(o) : o, _e = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, te = D((r = (a = (i = _e == null ? void 0 : _e[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), Fe = D((n = (c = (s = _e == null ? void 0 : _e[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Me = [];
9288
9288
  if (Re.isBetween(te, Fe, "millisecond", "[]")) {
9289
9289
  let ue, fe;
@@ -9292,7 +9292,7 @@ class Ya {
9292
9292
  for (const Ce of _e) {
9293
9293
  const oe = Ce.daily;
9294
9294
  ue = {
9295
- code: (f = oe.weather_code) == null ? void 0 : f.at(U),
9295
+ code: (g = oe.weather_code) == null ? void 0 : g.at(U),
9296
9296
  temp: {
9297
9297
  max: (p = oe.temperature_2m_max) == null ? void 0 : p.at(U),
9298
9298
  min: (y = oe.temperature_2m_min) == null ? void 0 : y.at(U),
@@ -9300,7 +9300,7 @@ class Ya {
9300
9300
  },
9301
9301
  apparentTemp: {
9302
9302
  max: (k = oe.apparent_temperature_max) == null ? void 0 : k.at(U),
9303
- min: (g = oe.apparent_temperature_min) == null ? void 0 : g.at(U)
9303
+ min: (f = oe.apparent_temperature_min) == null ? void 0 : f.at(U)
9304
9304
  },
9305
9305
  precip: {
9306
9306
  sum: (z = oe.precipitation_sum) == null ? void 0 : z.at(U),
@@ -9962,17 +9962,17 @@ const tc = {
9962
9962
  }
9963
9963
  });
9964
9964
  if (o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("weather links elapsed: ", o, ", total: ", e += o), ((r = n == null ? void 0 : n.data) == null ? void 0 : r.code) === 0) {
9965
- const f = (s = n == null ? void 0 : n.data) == null ? void 0 : s.data;
9966
- await Se.get(f.tropicals, {
9965
+ const g = (s = n == null ? void 0 : n.data) == null ? void 0 : s.data;
9966
+ await Se.get(g.tropicals, {
9967
9967
  headers: {
9968
9968
  Authorization: this.token || this.defaultMeteoToken,
9969
9969
  key: "tropicals"
9970
9970
  },
9971
- responseType: /\.(jpg|png)$/.test(f.tropicals) ? "blob" : "json"
9971
+ responseType: /\.(jpg|png)$/.test(g.tropicals) ? "blob" : "json"
9972
9972
  }).then((p) => {
9973
- var k, g, z;
9973
+ var k, f, z;
9974
9974
  const y = Va.convert2Geojson(((k = p == null ? void 0 : p.data) == null ? void 0 : k.data) || (p == null ? void 0 : p.data));
9975
- ((z = (g = p == null ? void 0 : p.config) == null ? void 0 : g.headers) == null ? void 0 : z.key) && y && (this.tropicals = {
9975
+ ((z = (f = p == null ? void 0 : p.config) == null ? void 0 : f.headers) == null ? void 0 : z.key) && y && (this.tropicals = {
9976
9976
  data: y,
9977
9977
  active: !0,
9978
9978
  cached: !0,
@@ -9990,7 +9990,7 @@ const tc = {
9990
9990
  handleRefresh() {
9991
9991
  var e, o;
9992
9992
  (((o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) || []).forEach((i) => {
9993
- var a, r, s, c, n, f, p, y, w, k, g;
9993
+ var a, r, s, c, n, g, p, y, w, k, f;
9994
9994
  if (((a = i.geometry) == null ? void 0 : a.type) === "Point") {
9995
9995
  let z = "";
9996
9996
  switch (!0) {
@@ -10006,7 +10006,7 @@ const tc = {
10006
10006
  case ((n = i.properties.wind) == null ? void 0 : n.kts) < 79:
10007
10007
  z = "TY";
10008
10008
  break;
10009
- case ((f = i.properties.wind) == null ? void 0 : f.kts) < 94:
10009
+ case ((g = i.properties.wind) == null ? void 0 : g.kts) < 94:
10010
10010
  z = "STY";
10011
10011
  break;
10012
10012
  case ((p = i.properties.wind) == null ? void 0 : p.kts) >= 94:
@@ -10018,15 +10018,15 @@ const tc = {
10018
10018
  }
10019
10019
  i.properties.level = z;
10020
10020
  }
10021
- ((y = i.geometry) == null ? void 0 : y.type) === "Point" && ((w = i.properties) != null && w.important) && (i.properties.format = (g = (k = D(i.properties.date)) == null ? void 0 : k.utcOffset(this.timeZone)) == null ? void 0 : g.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`));
10021
+ ((y = i.geometry) == null ? void 0 : y.type) === "Point" && ((w = i.properties) != null && w.important) && (i.properties.format = (f = (k = D(i.properties.date)) == null ? void 0 : k.utcOffset(this.timeZone)) == null ? void 0 : f.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`));
10022
10022
  }), this.handleInit();
10023
10023
  },
10024
10024
  handleInit() {
10025
- var t, e, o, i, a, r, s, c, n, f, p, y;
10026
- this.handleClear(), this.tropicals && this.map && (this.handleRender(), (t = this.map) == null || t.on("click", this.clickLayers, this.handleClick), (e = this.map) == null || e.on("mousemove", this.hoverLayers, this.handleHover), (o = this.map) == null || o.on("mouseleave", this.hoverLayers, this.handleLeave)), ((r = (a = (i = this.tropicals) == null ? void 0 : i.data) == null ? void 0 : a.features) == null ? void 0 : r.length) > 0 ? (n = (c = (s = this.$parent) == null ? void 0 : s.$refs) == null ? void 0 : c.idmBottomBar) == null || n.handleToggle("tropical", !0) : (y = (p = (f = this.$parent) == null ? void 0 : f.$refs) == null ? void 0 : p.idmBottomBar) == null || y.handleToggle("tropical", !1);
10025
+ var t, e, o, i, a, r, s, c, n, g, p, y;
10026
+ this.handleClear(), this.tropicals && this.map && (this.handleRender(), (t = this.map) == null || t.on("click", this.clickLayers, this.handleClick), (e = this.map) == null || e.on("mousemove", this.hoverLayers, this.handleHover), (o = this.map) == null || o.on("mouseleave", this.hoverLayers, this.handleLeave)), ((r = (a = (i = this.tropicals) == null ? void 0 : i.data) == null ? void 0 : a.features) == null ? void 0 : r.length) > 0 ? (n = (c = (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);
10027
10027
  },
10028
10028
  handleRender() {
10029
- var t, e, o, i, a, r, s, c, n, f;
10029
+ var t, e, o, i, a, r, s, c, n, g;
10030
10030
  if (this.tropicals && this.map) {
10031
10031
  const p = (/* @__PURE__ */ new Date()).valueOf();
10032
10032
  let y = 0, w = 0;
@@ -10129,7 +10129,7 @@ const tc = {
10129
10129
  }
10130
10130
  }, this.beforeLayer), w = (/* @__PURE__ */ new Date()).valueOf() - (p + y), console.log("[tropical] add elapsed: ", w, ", total: ", y += w)), (r = this.map) != null && r.getSource(this.clusterSource) ? ((c = this.map) == null || c.getSource(this.clusterSource).setData((s = this.tropicals) != null && s.active ? this.tropicals.data : this.empty), w = (/* @__PURE__ */ new Date()).valueOf() - (p + y), console.log("[tropical] update elapsed: ", w, ", total: ", y += w)) : (this.map.addSource(this.clusterSource, {
10131
10131
  type: "geojson",
10132
- data: (n = this.tropicals) != null && n.active ? (f = this.tropicals) == null ? void 0 : f.data : this.empty
10132
+ data: (n = this.tropicals) != null && n.active ? (g = this.tropicals) == null ? void 0 : g.data : this.empty
10133
10133
  // cluster: true,
10134
10134
  // clusterRadius: 10, // 聚合半径
10135
10135
  }), this.map.addLayer({
@@ -10253,7 +10253,7 @@ const tc = {
10253
10253
  this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (t = this.interpolateMarkers) == null || t.forEach((a) => a == null ? void 0 : a.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource)), (e = this.map) == null || e.off("click", this.clickLayers, this.handleClick), (o = this.map) == null || o.off("mousemove", this.hoverLayers, this.handleHover), (i = this.map) == null || i.off("mouseleave", this.hoverLayers, this.handleLeave), this.handleCloseInfoMarker();
10254
10254
  },
10255
10255
  handleDateChange() {
10256
- var t, e, o, i, a, r, s, c, n, f, p, y, w, k, g, z, T, O, M, P, _, L, C, v, A, F, Y, Z, V, ee;
10256
+ var t, e, o, i, a, r, s, c, n, g, p, y, w, k, f, z, T, O, M, P, _, L, C, v, A, F, Y, Z, V, ee;
10257
10257
  if ((t = this.interpolateMarkers) == null || t.forEach(($) => $ == null ? void 0 : $.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
10258
10258
  const $ = D(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), J = this.interpolateData.filter((Q) => Q.properties.date === ($ == null ? void 0 : $.format()) && !Q.properties.disabled), pe = this.handleComputePolygons(J), me = G.featureCollection([...J]);
10259
10259
  pe.forEach((Q) => {
@@ -10275,7 +10275,7 @@ const tc = {
10275
10275
  for (const Q of J)
10276
10276
  if (!Q.properties.disabled) {
10277
10277
  let ae = "#f44336";
10278
- ((c = (s = Q.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((f = (n = Q.properties) == null ? void 0 : n.wind) != null && f.kts) ? ae = "#03f869" : ((y = (p = Q.properties) == null ? void 0 : p.wind) == null ? void 0 : y.kts) >= 32 && ((k = (w = Q.properties) == null ? void 0 : w.wind) == null ? void 0 : k.kts) < 47 ? ae = "#f2f202" : ((z = (g = Q.properties) == null ? void 0 : g.wind) == null ? void 0 : z.kts) >= 47 && ((O = (T = Q.properties) == null ? void 0 : T.wind) == null ? void 0 : O.kts) < 63 ? ae = "#ff9100" : ((P = (M = Q.properties) == null ? void 0 : M.wind) == null ? void 0 : P.kts) >= 63 && ((L = (_ = Q.properties) == null ? void 0 : _.wind) == null ? void 0 : L.kts) < 79 ? ae = "#f44336" : ((v = (C = Q.properties) == null ? void 0 : C.wind) == null ? void 0 : v.kts) >= 79 && ((F = (A = Q.properties) == null ? void 0 : A.wind) == null ? void 0 : F.kts) < 94 ? ae = "#f903d0" : ((Z = (Y = Q.properties) == null ? void 0 : Y.wind) == null ? void 0 : Z.kts) >= 94 ? ae = "#8702f9" : ae = "#f44336";
10278
+ ((c = (s = Q.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = Q.properties) == null ? void 0 : n.wind) != null && g.kts) ? ae = "#03f869" : ((y = (p = Q.properties) == null ? void 0 : p.wind) == null ? void 0 : y.kts) >= 32 && ((k = (w = Q.properties) == null ? void 0 : w.wind) == null ? void 0 : k.kts) < 47 ? ae = "#f2f202" : ((z = (f = Q.properties) == null ? void 0 : f.wind) == null ? void 0 : z.kts) >= 47 && ((O = (T = Q.properties) == null ? void 0 : T.wind) == null ? void 0 : O.kts) < 63 ? ae = "#ff9100" : ((P = (M = Q.properties) == null ? void 0 : M.wind) == null ? void 0 : P.kts) >= 63 && ((L = (_ = Q.properties) == null ? void 0 : _.wind) == null ? void 0 : L.kts) < 79 ? ae = "#f44336" : ((v = (C = Q.properties) == null ? void 0 : C.wind) == null ? void 0 : v.kts) >= 79 && ((F = (A = Q.properties) == null ? void 0 : A.wind) == null ? void 0 : F.kts) < 94 ? ae = "#f903d0" : ((Z = (Y = Q.properties) == null ? void 0 : Y.wind) == null ? void 0 : Z.kts) >= 94 ? ae = "#8702f9" : ae = "#f44336";
10279
10279
  const de = `<svg t="1719918955501"
10280
10280
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
10281
10281
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -10299,21 +10299,21 @@ const tc = {
10299
10299
  (V = this.map) != null && V.getSource(this.interpolateSource) && ((ee = this.map) == null || ee.getSource(this.interpolateSource).setData(this.empty));
10300
10300
  },
10301
10301
  handleClick(t) {
10302
- var a, r, s, c, n, f, p, y, w;
10302
+ var a, r, s, c, n, g, p, y, w;
10303
10303
  const e = t.features[0], o = (r = (a = this.tropicals) == null ? void 0 : a.data) == null ? void 0 : r.features.filter(
10304
10304
  (k) => {
10305
- var g;
10306
- return k.geometry.type === "LineString" && k.properties.type === "forecast" && k.properties.name === ((g = e == null ? void 0 : e.properties) == null ? void 0 : g.name);
10305
+ var f;
10306
+ return k.geometry.type === "LineString" && k.properties.type === "forecast" && k.properties.name === ((f = e == null ? void 0 : e.properties) == null ? void 0 : f.name);
10307
10307
  }
10308
10308
  ), i = (c = (s = this.tropicals) == null ? void 0 : s.data) == null ? void 0 : c.features.filter(
10309
10309
  (k) => {
10310
- var g;
10311
- return k.geometry.type === "LineString" && k.properties.type === "history" && k.properties.name === ((g = e == null ? void 0 : e.properties) == null ? void 0 : g.name);
10310
+ var f;
10311
+ return k.geometry.type === "LineString" && k.properties.type === "history" && k.properties.name === ((f = e == null ? void 0 : e.properties) == null ? void 0 : f.name);
10312
10312
  }
10313
10313
  );
10314
10314
  this.activeTropicals = {
10315
10315
  name: (n = e == null ? void 0 : e.properties) == null ? void 0 : n.name,
10316
- nameCn: (f = e == null ? void 0 : e.properties) == null ? void 0 : f.nameCn,
10316
+ nameCn: (g = e == null ? void 0 : e.properties) == null ? void 0 : g.nameCn,
10317
10317
  forecasts: o.map((k) => k.properties),
10318
10318
  history: (p = i[0]) == null ? void 0 : p.properties,
10319
10319
  showCircle: (w = (y = o[0]) == null ? void 0 : y.properties) == null ? void 0 : w.showCircle
@@ -10332,10 +10332,10 @@ const tc = {
10332
10332
  var i, a, r, s, c, n;
10333
10333
  t.disabled = !t.disabled;
10334
10334
  const e = `${t.name}-${t.model}`, o = (a = (i = this.map) == null ? void 0 : i.getSource(this.source)._data) == null ? void 0 : a.features;
10335
- o.forEach((f) => {
10336
- f.properties.category === e && (f.properties.disabled = t.disabled);
10337
- }), this.interpolateData.forEach((f) => {
10338
- f.properties.category === e && (f.properties.disabled = t.disabled);
10335
+ o.forEach((g) => {
10336
+ g.properties.category === e && (g.properties.disabled = t.disabled);
10337
+ }), this.interpolateData.forEach((g) => {
10338
+ g.properties.category === e && (g.properties.disabled = t.disabled);
10339
10339
  }), (s = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || s.setData(G.featureCollection(o)), (n = (c = this.map) == null ? void 0 : c.getSource(this.clusterSource)) == null || n.setData(G.featureCollection(o)), this.handleDateChange();
10340
10340
  },
10341
10341
  handleStrikeProbability(t) {
@@ -10396,7 +10396,7 @@ const tc = {
10396
10396
  this.$emit("tropicalNotification", t);
10397
10397
  },
10398
10398
  handleHover(t) {
10399
- var i;
10399
+ var a, r, s, c, n;
10400
10400
  this.map.getCanvas().style.cursor = "pointer";
10401
10401
  const o = this.map.queryRenderedFeatures(
10402
10402
  t.point,
@@ -10410,9 +10410,16 @@ const tc = {
10410
10410
  ]
10411
10411
  }
10412
10412
  )[0];
10413
- this.hoverPoint = o == null ? void 0 : o.properties, this.hoverPoint && (this.hoverPoint.lng = o.geometry.coordinates[0], this.hoverPoint.lat = o.geometry.coordinates[1], (i = this.hoverMarker) == null || i.remove(), this.showHoverPoint = !0, this.$nextTick(() => {
10414
- const a = document.getElementById("tropicalHoverMarkerInfo").cloneNode(!0);
10415
- this.hoverMarker = new ve.Marker(a).setLngLat(o.geometry.coordinates).setOffset([160, 0]).addTo(this.map);
10413
+ this.hoverPoint = o == null ? void 0 : o.properties;
10414
+ const i = (r = (a = this.tropicals) == null ? void 0 : a.data) == null ? void 0 : r.features.filter(
10415
+ (g) => {
10416
+ var p;
10417
+ return g.geometry.type === "LineString" && g.properties.type === "forecast" && g.properties.name === ((p = o == null ? void 0 : o.properties) == null ? void 0 : p.name);
10418
+ }
10419
+ );
10420
+ this.hoverPoint && (this.hoverPoint.lng = o.geometry.coordinates[0], this.hoverPoint.lat = o.geometry.coordinates[1], this.hoverPoint.update = (c = (s = i == null ? void 0 : i[0]) == null ? void 0 : s.properties) == null ? void 0 : c.date, (n = this.hoverMarker) == null || n.remove(), this.showHoverPoint = !0, this.$nextTick(() => {
10421
+ const g = document.getElementById("tropicalHoverMarkerInfo").cloneNode(!0);
10422
+ this.hoverMarker = new ve.Marker(g).setLngLat(o.geometry.coordinates).setOffset([160, 0]).addTo(this.map);
10416
10423
  }));
10417
10424
  },
10418
10425
  handleLeave() {
@@ -10453,7 +10460,7 @@ const tc = {
10453
10460
  class: "d-flex justify-start align-center"
10454
10461
  }, Vc = { class: "text-label pr-1" }, Yc = { class: "d-flex justify-start align-center" }, Zc = { class: "text-label pr-1" };
10455
10462
  function qc(t, e, o, i, a, r) {
10456
- const s = x("VBtn"), c = x("VTooltip"), n = x("VCardText"), f = x("VDivider"), p = x("VCardActions"), y = x("VCard"), w = x("v-card-title"), k = x("v-divider");
10463
+ const s = x("VBtn"), c = x("VTooltip"), n = x("VCardText"), g = x("VDivider"), p = x("VCardActions"), y = x("VCard"), w = x("v-card-title"), k = x("v-divider");
10457
10464
  return b(), S("div", oc, [
10458
10465
  l("div", {
10459
10466
  class: "menu-bar-box transition pa-1",
@@ -10463,8 +10470,8 @@ function qc(t, e, o, i, a, r) {
10463
10470
  text: t.$t("tropical.tropicals"),
10464
10471
  location: "left"
10465
10472
  }, {
10466
- activator: u(({ props: g }) => [
10467
- h(s, B(g, {
10473
+ activator: u(({ props: f }) => [
10474
+ h(s, B(f, {
10468
10475
  "min-width": "32",
10469
10476
  width: "32",
10470
10477
  height: "32",
@@ -10490,10 +10497,10 @@ function qc(t, e, o, i, a, r) {
10490
10497
  default: u(() => [
10491
10498
  h(n, null, {
10492
10499
  default: u(() => {
10493
- var g, z, T, O, M, P, _, L, C, v, A;
10500
+ var f, z, T, O, M, P, _, L, C, v, A;
10494
10501
  return [
10495
10502
  l("div", ic, [
10496
- l("span", rc, m(o.locale === "en" ? (g = a.activeTropicals) == null ? void 0 : g.name : (z = a.activeTropicals) == null ? void 0 : z.nameCn), 1),
10503
+ l("span", rc, m(o.locale === "en" ? (f = a.activeTropicals) == null ? void 0 : f.name : (z = a.activeTropicals) == null ? void 0 : z.nameCn), 1),
10497
10504
  (O = (T = a.activeTropicals) == null ? void 0 : T.history) != null && O.level ? (b(), S("span", lc, ", " + m((P = (M = a.activeTropicals) == null ? void 0 : M.history) == null ? void 0 : P.level), 1)) : I("", !0)
10498
10505
  ]),
10499
10506
  h(s, {
@@ -10517,15 +10524,15 @@ function qc(t, e, o, i, a, r) {
10517
10524
  }),
10518
10525
  _: 1
10519
10526
  }),
10520
- h(f),
10527
+ h(g),
10521
10528
  h(n, { class: "text-body-1" }, {
10522
10529
  default: u(() => {
10523
- var g, z, T, O, M, P, _, L, C;
10530
+ var f, z, T, O, M, P, _, L, C;
10524
10531
  return [
10525
10532
  l("div", cc, [
10526
10533
  l("div", mc, [
10527
10534
  l("label", dc, m(t.$t("weather.windSpeed")) + " : ", 1),
10528
- l("span", null, m(((z = (g = a.activeTropicals) == null ? void 0 : g.history) == null ? void 0 : z.kts) || "-") + " kts", 1),
10535
+ l("span", null, m(((z = (f = a.activeTropicals) == null ? void 0 : f.history) == null ? void 0 : z.kts) || "-") + " kts", 1),
10529
10536
  l("span", null, ", BF " + m(r.computeBF(((O = (T = a.activeTropicals) == null ? void 0 : T.history) == null ? void 0 : O.kts) || "-")), 1)
10530
10537
  ]),
10531
10538
  l("div", hc, [
@@ -10566,7 +10573,7 @@ function qc(t, e, o, i, a, r) {
10566
10573
  }),
10567
10574
  _: 1
10568
10575
  }),
10569
- h(f),
10576
+ h(g),
10570
10577
  h(p, { class: "d-flex justify-space-between" }, {
10571
10578
  default: u(() => [
10572
10579
  h(s, {
@@ -10575,7 +10582,7 @@ function qc(t, e, o, i, a, r) {
10575
10582
  variant: "text",
10576
10583
  color: a.showLegend ? "primary" : "",
10577
10584
  class: "text-none text-body-1",
10578
- onClick: e[0] || (e[0] = je((g) => a.showLegend = !a.showLegend, ["stop"]))
10585
+ onClick: e[0] || (e[0] = je((f) => a.showLegend = !a.showLegend, ["stop"]))
10579
10586
  }, {
10580
10587
  prepend: u(() => e[5] || (e[5] = [
10581
10588
  l("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
@@ -10591,7 +10598,7 @@ function qc(t, e, o, i, a, r) {
10591
10598
  variant: "text",
10592
10599
  density: "compact",
10593
10600
  class: "text-none text-body-1",
10594
- onClick: e[1] || (e[1] = je((g) => r.handleNotification(a.activeTropicals), ["stop"]))
10601
+ onClick: e[1] || (e[1] = je((f) => r.handleNotification(a.activeTropicals), ["stop"]))
10595
10602
  }, {
10596
10603
  default: u(() => [
10597
10604
  N(m(t.$t("actions.notify")), 1)
@@ -10603,7 +10610,7 @@ function qc(t, e, o, i, a, r) {
10603
10610
  density: "compact",
10604
10611
  "append-icon": "mdi-chevron-right",
10605
10612
  class: "text-none text-body-1",
10606
- onClick: e[2] || (e[2] = je((g) => r.handleStrikeProbability(a.activeTropicals), ["stop"]))
10613
+ onClick: e[2] || (e[2] = je((f) => r.handleStrikeProbability(a.activeTropicals), ["stop"]))
10607
10614
  }, {
10608
10615
  default: u(() => [
10609
10616
  N(m(t.$t("actions.viewReport")), 1)
@@ -10688,10 +10695,10 @@ function qc(t, e, o, i, a, r) {
10688
10695
  default: u(() => [
10689
10696
  h(w, null, {
10690
10697
  default: u(() => {
10691
- var g, z, T;
10698
+ var f, z, T;
10692
10699
  return [
10693
10700
  l("div", Pc, [
10694
- l("span", Cc, m(o.locale === "en" ? (g = a.hoverPoint) == null ? void 0 : g.name : (z = a.hoverPoint) == null ? void 0 : z.nameCn), 1),
10701
+ l("span", Cc, m(o.locale === "en" ? (f = a.hoverPoint) == null ? void 0 : f.name : (z = a.hoverPoint) == null ? void 0 : z.nameCn), 1),
10695
10702
  l("span", Tc, "[ " + m((T = a.hoverPoint) == null ? void 0 : T.level) + " ]", 1)
10696
10703
  ])
10697
10704
  ];
@@ -10701,12 +10708,12 @@ function qc(t, e, o, i, a, r) {
10701
10708
  h(k),
10702
10709
  h(n, { class: "text-body-1" }, {
10703
10710
  default: u(() => {
10704
- var g, z, T, O, M, P, _, L, C, v, A, F, Y, Z, V, ee, $;
10711
+ var f, z, T, O, M, P, _, L, C, v, A, F, Y, Z, V, ee, $;
10705
10712
  return [
10706
10713
  l("div", Sc, [
10707
10714
  l("div", Mc, [
10708
10715
  l("label", Ic, m(t.$t("tropical.updated")) + " : ", 1),
10709
- l("span", null, m(r.computeTzTime((g = a.hoverPoint) == null ? void 0 : g.date, o.timeZone)), 1)
10716
+ l("span", null, m(r.computeTzTime((f = a.hoverPoint) == null ? void 0 : f.update, o.timeZone)), 1)
10710
10717
  ]),
10711
10718
  ((z = a.hoverPoint) == null ? void 0 : z.type) === "forecast" ? (b(), S("div", Ac, [
10712
10719
  l("label", Dc, m(t.$t("tropical.forecast")) + " : ", 1),
@@ -10925,7 +10932,7 @@ const Xc = {
10925
10932
  style: { height: "56px" }
10926
10933
  };
10927
10934
  function em(t, e, o, i, a, r) {
10928
- const s = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"), f = x("VListItemTitle"), p = x("VListItem"), y = x("VList"), w = x("VCardText"), k = x("VCardActions"), g = x("VCard");
10935
+ const s = x("VBtn"), c = x("VDatePicker"), n = x("VDivider"), g = x("VListItemTitle"), p = x("VListItem"), y = x("VList"), w = x("VCardText"), k = x("VCardActions"), f = x("VCard");
10929
10936
  return b(), S("div", Kc, [
10930
10937
  h(s, {
10931
10938
  text: "",
@@ -10939,7 +10946,7 @@ function em(t, e, o, i, a, r) {
10939
10946
  ]),
10940
10947
  _: 1
10941
10948
  }, 8, ["height", "width", "onClick"]),
10942
- a.showDatePicker ? (b(), R(g, {
10949
+ a.showDatePicker ? (b(), R(f, {
10943
10950
  key: 0,
10944
10951
  class: He(["card-box d-flex flex-column", o.position])
10945
10952
  }, {
@@ -10979,7 +10986,7 @@ function em(t, e, o, i, a, r) {
10979
10986
  "min-height": "26"
10980
10987
  }, {
10981
10988
  default: u(() => [
10982
- h(f, {
10989
+ h(g, {
10983
10990
  class: "text-body-2 text-center",
10984
10991
  onClick: (O) => a.currentTime = z
10985
10992
  }, {
@@ -11272,10 +11279,10 @@ const tm = {
11272
11279
  (a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData), this.handleDrawInfoMarker([t.lng, t.lat])), this.loading = !1;
11273
11280
  },
11274
11281
  initTableData(t) {
11275
- var o, i, a, r, s, c, n, f, p, y, w, k, g, z, T, O, M, P, _, L, C, v, A, F, Y, Z, V, ee, $, J, pe, me, Q, ae, de, se, he, ge, H, ne, xe;
11282
+ var o, i, a, r, s, c, n, g, p, y, w, k, f, z, T, O, M, P, _, L, C, v, A, F, Y, Z, V, ee, $, J, pe, me, Q, ae, de, se, he, ge, H, ne, xe;
11276
11283
  this.currentHourData = {}, this.positionGmt = (i = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : r.offset;
11277
11284
  const e = ((s = ao.pickHourly(t, D(this.form.dateTime))) == null ? void 0 : s[0]) || {};
11278
- 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((f = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : f.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((g = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : g.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((M = (O = e == null ? void 0 : e.weather) == null ? void 0 : O.wind) == null ? void 0 : M.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((_ = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : _.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((C = (L = e == null ? void 0 : e.wave) == null ? void 0 : L.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (A = (v = e == null ? void 0 : e.wave) == null ? void 0 : v.sig) == null ? void 0 : A.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((Y = (F = e == null ? void 0 : e.wave) == null ? void 0 : F.sig) == null ? void 0 : Y.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((V = (Z = e == null ? void 0 : e.wave) == null ? void 0 : Z.wd) == null ? void 0 : V.height, 1) ?? "-", this.currentHourData.windwaveDir = ($ = (ee = e == null ? void 0 : e.wave) == null ? void 0 : ee.wd) == null ? void 0 : $.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((pe = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : pe.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((Q = (me = e == null ? void 0 : e.wave) == null ? void 0 : me.swell) == null ? void 0 : Q.height, 1) ?? "-", this.currentHourData.swellDir = (de = (ae = e == null ? void 0 : e.wave) == null ? void 0 : ae.swell) == null ? void 0 : de.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((he = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : he.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ge = e == null ? void 0 : e.current) == null ? void 0 : ge.speed, 1) ?? "-", this.currentHourData.currentDir = (H = e == null ? void 0 : e.current) == null ? void 0 : H.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((ne = e == null ? void 0 : e.current) == null ? void 0 : ne.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (xe = e == null ? void 0 : e.weather) == null ? void 0 : xe.url;
11285
+ 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 = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : f.kts, 1) ?? "-", this.currentHourData.windDir = ((T = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.wind) == null ? void 0 : T.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((M = (O = e == null ? void 0 : e.weather) == null ? void 0 : O.wind) == null ? void 0 : M.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((_ = (P = e == null ? void 0 : e.weather) == null ? void 0 : P.wind) == null ? void 0 : _.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((C = (L = e == null ? void 0 : e.wave) == null ? void 0 : L.sig) == null ? void 0 : C.height, 1) ?? "-", this.currentHourData.sigwaveDir = (A = (v = e == null ? void 0 : e.wave) == null ? void 0 : v.sig) == null ? void 0 : A.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((Y = (F = e == null ? void 0 : e.wave) == null ? void 0 : F.sig) == null ? void 0 : Y.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((V = (Z = e == null ? void 0 : e.wave) == null ? void 0 : Z.wd) == null ? void 0 : V.height, 1) ?? "-", this.currentHourData.windwaveDir = ($ = (ee = e == null ? void 0 : e.wave) == null ? void 0 : ee.wd) == null ? void 0 : $.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((pe = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.wd) == null ? void 0 : pe.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((Q = (me = e == null ? void 0 : e.wave) == null ? void 0 : me.swell) == null ? void 0 : Q.height, 1) ?? "-", this.currentHourData.swellDir = (de = (ae = e == null ? void 0 : e.wave) == null ? void 0 : ae.swell) == null ? void 0 : de.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((he = (se = e == null ? void 0 : e.wave) == null ? void 0 : se.swell) == null ? void 0 : he.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ge = e == null ? void 0 : e.current) == null ? void 0 : ge.speed, 1) ?? "-", this.currentHourData.currentDir = (H = e == null ? void 0 : e.current) == null ? void 0 : H.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((ne = e == null ? void 0 : e.current) == null ? void 0 : ne.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (xe = e == null ? void 0 : e.weather) == null ? void 0 : xe.url;
11279
11286
  },
11280
11287
  handleBind() {
11281
11288
  var t, e;
@@ -11345,7 +11352,7 @@ const tm = {
11345
11352
  "aria-hidden": "true"
11346
11353
  }, vm = ["xlink:href"];
11347
11354
  function _m(t, e, o, i, a, r) {
11348
- const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), f = x("VDivider"), p = x("VTextField"), y = x("VCol"), w = x("VRow"), k = x("DateTimePicker"), g = x("VBtnToggle"), z = x("VCardActions"), T = x("VForm"), O = x("VCardText"), M = x("VCard"), P = x("VIcon");
11355
+ const s = x("VBtn"), c = x("VTooltip"), n = x("VCardTitle"), g = x("VDivider"), p = x("VTextField"), y = x("VCol"), w = x("VRow"), k = x("DateTimePicker"), f = x("VBtnToggle"), z = x("VCardActions"), T = x("VForm"), O = x("VCardText"), M = x("VCard"), P = x("VIcon");
11349
11356
  return b(), S("div", om, [
11350
11357
  l("div", {
11351
11358
  class: "menu-bar-box transition pa-1",
@@ -11400,7 +11407,7 @@ function _m(t, e, o, i, a, r) {
11400
11407
  ]),
11401
11408
  _: 1
11402
11409
  }),
11403
- h(f),
11410
+ h(g),
11404
11411
  h(O, { class: "text-body-1 py-1" }, {
11405
11412
  default: u(() => [
11406
11413
  h(T, {
@@ -11605,7 +11612,7 @@ function _m(t, e, o, i, a, r) {
11605
11612
  class: "pa-0"
11606
11613
  }, {
11607
11614
  default: u(() => [
11608
- h(g, {
11615
+ h(f, {
11609
11616
  modelValue: a.form.forecastModel,
11610
11617
  "onUpdate:modelValue": e[7] || (e[7] = (_) => a.form.forecastModel = _),
11611
11618
  class: "w-100",
@@ -11652,7 +11659,7 @@ function _m(t, e, o, i, a, r) {
11652
11659
  ]),
11653
11660
  _: 1
11654
11661
  }),
11655
- h(f),
11662
+ h(g),
11656
11663
  h(z, { class: "d-flex justify-end align-center ga-4" }, {
11657
11664
  default: u(() => [
11658
11665
  h(s, {
@@ -11724,7 +11731,7 @@ function _m(t, e, o, i, a, r) {
11724
11731
  ]),
11725
11732
  _: 1
11726
11733
  }),
11727
- h(f),
11734
+ h(g),
11728
11735
  h(O, { class: "text-body-1 ml-n8" }, {
11729
11736
  default: u(() => [
11730
11737
  h(w, null, {
@@ -11906,7 +11913,7 @@ function _m(t, e, o, i, a, r) {
11906
11913
  ]),
11907
11914
  _: 1
11908
11915
  }),
11909
- h(f),
11916
+ h(g),
11910
11917
  h(z, { class: "d-flex justify-space-between align-center" }, {
11911
11918
  default: u(() => [
11912
11919
  o.followList.some((_) => {
@@ -12065,7 +12072,7 @@ const zm = {
12065
12072
  }
12066
12073
  },
12067
12074
  handleDrag(t) {
12068
- var o, i, a, r, s, c, n, f, p, y;
12075
+ var o, i, a, r, s, c, n, g, p, y;
12069
12076
  const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
12070
12077
  if ((e == null ? void 0 : e.split("-").length) === 2) {
12071
12078
  const w = this.geojson.filter((T) => T.id === e.split("-")[0])[0];
@@ -12073,24 +12080,24 @@ const zm = {
12073
12080
  var O;
12074
12081
  return ((O = T._element) == null ? void 0 : O.id) === e;
12075
12082
  })[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
12076
- let g;
12083
+ let f;
12077
12084
  w.features.forEach((T, O) => {
12078
12085
  if (T.geometry.type === "Point" && T.properties.id === e.split("-")[1]) {
12079
- g = O;
12086
+ f = O;
12080
12087
  return;
12081
12088
  }
12082
12089
  });
12083
12090
  const z = w.features.filter((T) => T.geometry.type === "Point");
12084
12091
  this.handleTmpPointUpdate(
12085
12092
  w,
12086
- z[g - 1],
12087
- { lng: (f = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : f.lng, lat: (y = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : y.lat, properties: z[g].properties },
12088
- g === z.length - 1 ? void 0 : z[g + 1]
12093
+ z[f - 1],
12094
+ { 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: z[f].properties },
12095
+ f === z.length - 1 ? void 0 : z[f + 1]
12089
12096
  );
12090
12097
  }
12091
12098
  },
12092
12099
  handleDragEnd(t) {
12093
- var o, i, a, r, s, c, n, f, p, y;
12100
+ var o, i, a, r, s, c, n, g, p, y;
12094
12101
  const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
12095
12102
  if ((e == null ? void 0 : e.split("-").length) === 2) {
12096
12103
  const w = this.geojson.filter((z) => z.id === e.split("-")[0])[0];
@@ -12098,8 +12105,8 @@ const zm = {
12098
12105
  var T;
12099
12106
  return ((T = z._element) == null ? void 0 : T.id) === e;
12100
12107
  })[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
12101
- const g = w.features.filter((z) => z.geometry.type === "Point" && z.properties.id === e.split("-")[1])[0];
12102
- g.geometry.coordinates = [(f = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : f.lng, (y = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : y.lat], w.features = w.features.filter((z) => z.geometry.type === "Point"), this.handlePointUpdate(w);
12108
+ const f = w.features.filter((z) => z.geometry.type === "Point" && z.properties.id === e.split("-")[1])[0];
12109
+ 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((z) => z.geometry.type === "Point"), this.handlePointUpdate(w);
12103
12110
  }
12104
12111
  },
12105
12112
  handleContextmenu(t) {
@@ -12108,9 +12115,9 @@ const zm = {
12108
12115
  const e = (r = (a = (i = t.originalEvent) == null ? void 0 : i.target) == null ? void 0 : a.parentElement) == null ? void 0 : r.id;
12109
12116
  if ((e == null ? void 0 : e.split("-").length) === 2) {
12110
12117
  const c = this.geojson.filter((n) => n.id === e.split("-")[0])[0].features.filter((n) => n.geometry.type === "Point");
12111
- if (c.length > 2 && c.filter((f) => f.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
12112
- const f = document.createElement("div");
12113
- f.className = "idm-gl4-measure-contextmenu-marker", f.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new ve.Marker(f).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
12118
+ if (c.length > 2 && c.filter((g) => g.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
12119
+ const g = document.createElement("div");
12120
+ g.className = "idm-gl4-measure-contextmenu-marker", g.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new ve.Marker(g).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
12114
12121
  }
12115
12122
  }
12116
12123
  },
@@ -12119,15 +12126,15 @@ const zm = {
12119
12126
  (o = this.contextmenu) == null || o.remove();
12120
12127
  const e = t.originalEvent.target.className;
12121
12128
  if (e === "marker-close") {
12122
- const n = (a = (i = t.originalEvent) == null ? void 0 : i.srcElement) == null ? void 0 : a.id, f = this.geojson.filter((p) => p.id === n)[0];
12123
- f && this.handleClear(f, !0), this.geojson = this.geojson.filter((p) => p.id !== n), !this.toggle && !((r = this.geojson) != null && r.some((p) => p.closed)) && this.handleUnbind();
12129
+ const n = (a = (i = t.originalEvent) == null ? void 0 : i.srcElement) == null ? void 0 : a.id, g = this.geojson.filter((p) => p.id === n)[0];
12130
+ g && this.handleClear(g, !0), this.geojson = this.geojson.filter((p) => p.id !== n), !this.toggle && !((r = this.geojson) != null && r.some((p) => p.closed)) && this.handleUnbind();
12124
12131
  } else if (e === "del-point") {
12125
- const n = (c = (s = t.originalEvent.target.id) == null ? void 0 : s.replace("del-", "")) == null ? void 0 : c.split("-"), f = this.geojson.filter((p) => p.id === n[0])[0];
12126
- f.features = f.features.filter((p) => p.geometry.type === "Point" && p.properties.id !== n[1]), this.handlePointUpdate(f);
12132
+ const n = (c = (s = t.originalEvent.target.id) == null ? void 0 : s.replace("del-", "")) == null ? void 0 : c.split("-"), g = this.geojson.filter((p) => p.id === n[0])[0];
12133
+ g.features = g.features.filter((p) => p.geometry.type === "Point" && p.properties.id !== n[1]), this.handlePointUpdate(g);
12127
12134
  } else if (e !== "marker-label" && this.toggle) {
12128
12135
  let n = this.geojson.at(-1);
12129
12136
  n || (n = G.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(n)), n.features = n.features.filter((p) => p.geometry.type === "Point");
12130
- const f = G.feature(
12137
+ const g = G.feature(
12131
12138
  {
12132
12139
  type: "Point",
12133
12140
  coordinates: [t.lngLat.lng, t.lngLat.lat]
@@ -12138,7 +12145,7 @@ const zm = {
12138
12145
  sumLabel: "Start"
12139
12146
  }
12140
12147
  );
12141
- n.features.push(f), this.handlePointUpdate(n);
12148
+ n.features.push(g), this.handlePointUpdate(n);
12142
12149
  }
12143
12150
  },
12144
12151
  handlePointUpdate(t) {
@@ -12147,14 +12154,14 @@ const zm = {
12147
12154
  let o = 0;
12148
12155
  const i = [];
12149
12156
  for (let a = 1; a < e.length; a++) {
12150
- const r = e[a - 1], s = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, f = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = Ge.calculateDistance(n, f, c.mode === "RL", 4), y = Ge.calculateBearing(n, f, c.mode === "RL", 2);
12157
+ const r = e[a - 1], s = e[a], 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 = Ge.calculateDistance(n, g, c.mode === "RL", 4), y = Ge.calculateBearing(n, g, c.mode === "RL", 2);
12151
12158
  o = K.roundPrecision(o + p, 4);
12152
12159
  let w;
12153
- c.mode === "RL" ? w = K.convertToMonotonicLng([n, f]) : w = K.convertToMonotonicLng(Ge.interpolateCoordinates(n, f, 200));
12160
+ c.mode === "RL" ? w = K.convertToMonotonicLng([n, g]) : w = K.convertToMonotonicLng(Ge.interpolateCoordinates(n, g, 200));
12154
12161
  const k = G.lineString(w.map((z) => [z.lng, z.lat]));
12155
12162
  k.properties.dist = p, k.properties.bearing = y, k.properties.total = o, k.properties.name = "Line " + this.currentLineIndex, i.push(k);
12156
- const g = e[a];
12157
- g.properties.totalDist = K.roundPrecision((c.totalDist ? c.totalDist : 0) + p, 4), g.properties.sumLabel = g.properties.totalDist + " nm";
12163
+ const f = e[a];
12164
+ f.properties.totalDist = K.roundPrecision((c.totalDist ? c.totalDist : 0) + p, 4), f.properties.sumLabel = f.properties.totalDist + " nm";
12158
12165
  }
12159
12166
  e.push(...i), t.total = o;
12160
12167
  }
@@ -12164,18 +12171,18 @@ const zm = {
12164
12171
  const a = G.featureCollection([]);
12165
12172
  let r, s;
12166
12173
  if (e) {
12167
- const n = e.properties, f = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, p = { lng: o.lng, lat: o.lat };
12168
- r = Ge.calculateDistance(f, p, n.mode === "RL", 4), s = Ge.calculateBearing(f, p, n.mode === "RL", 2);
12174
+ const n = e.properties, g = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, p = { lng: o.lng, lat: o.lat };
12175
+ r = Ge.calculateDistance(g, p, n.mode === "RL", 4), s = Ge.calculateBearing(g, p, n.mode === "RL", 2);
12169
12176
  let y;
12170
- n.mode === "RL" ? y = K.convertToMonotonicLng([f, p]) : y = K.convertToMonotonicLng(Ge.interpolateCoordinates(f, p, 200));
12177
+ n.mode === "RL" ? y = K.convertToMonotonicLng([g, p]) : y = K.convertToMonotonicLng(Ge.interpolateCoordinates(g, p, 200));
12171
12178
  const w = G.lineString(y.map((k) => [k.lng, k.lat]));
12172
12179
  w.properties.dist = r, w.properties.bearing = s, a.features.push(w);
12173
12180
  }
12174
12181
  if (i) {
12175
- const n = o.properties, f = o, p = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
12176
- r = Ge.calculateDistance(f, p, n.mode === "RL", 4), s = Ge.calculateBearing(f, p, n.mode === "RL", 2);
12182
+ const n = o.properties, g = o, p = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
12183
+ r = Ge.calculateDistance(g, p, n.mode === "RL", 4), s = Ge.calculateBearing(g, p, n.mode === "RL", 2);
12177
12184
  let y;
12178
- n.mode === "RL" ? y = K.convertToMonotonicLng([f, p]) : y = K.convertToMonotonicLng(Ge.interpolateCoordinates(f, p, 200));
12185
+ n.mode === "RL" ? y = K.convertToMonotonicLng([g, p]) : y = K.convertToMonotonicLng(Ge.interpolateCoordinates(g, p, 200));
12179
12186
  const w = G.lineString(y.map((k) => [k.lng, k.lat]));
12180
12187
  w.properties.dist = r, w.properties.bearing = s, a.features.push(w);
12181
12188
  }
@@ -12308,21 +12315,21 @@ const zm = {
12308
12315
  for (const c of s) {
12309
12316
  const n = document.createElement("div");
12310
12317
  n.id = `${t.id}-${c.properties.id}`, n.className = `${t.closed ? "idm-gl4-measure-marker closed" : "idm-gl4-measure-marker"}`, n.innerHTML = '<div class="marker-circle"></div>';
12311
- const f = new ve.Marker({ element: n, draggable: !0, contextmenu: !0 }).setLngLat(c.geometry.coordinates).addTo(this.map);
12312
- f.on("drag", this.handleDrag), f.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(f) : this.pointMarkers[t.id] = [f];
12318
+ const g = new ve.Marker({ element: n, draggable: !0, contextmenu: !0 }).setLngLat(c.geometry.coordinates).addTo(this.map);
12319
+ 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];
12313
12320
  }
12314
12321
  if (t.closed) {
12315
- const c = s.at(-1), f = t.features.filter((y) => y.geometry.type === "LineString").at(-1), p = document.createElement("div");
12316
- p.className = "idm-gl4-measure-summary-marker", p.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${f.properties.name}</div>`, this.closeMarkers[t.id] = new ve.Marker(p).setOffset([0, -30]).setLngLat(c.geometry.coordinates).addTo(this.map);
12322
+ const c = s.at(-1), g = t.features.filter((y) => y.geometry.type === "LineString").at(-1), p = document.createElement("div");
12323
+ 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);
12317
12324
  }
12318
12325
  }
12319
12326
  },
12320
12327
  handleClear(t, e = !0) {
12321
- var s, c, n, f, p, y, w, k, g, z;
12328
+ var s, c, n, g, p, y, w, k, f, z;
12322
12329
  const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
12323
- (s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(a) && this.map.removeLayer(a), (n = this.map) != null && n.getLayer(r) && this.map.removeLayer(r), (f = this.map) != null && f.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) => {
12330
+ (s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(a) && this.map.removeLayer(a), (n = this.map) != null && n.getLayer(r) && this.map.removeLayer(r), (g = this.map) != null && g.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (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) => {
12324
12331
  T == null || T.remove();
12325
- }), this.pointMarkers[t.id] = [], (k = this.tipMarker) == null || k.remove(), this.tipMarker = void 0, e && ((g = this.map) != null && g.getSource(o)) && this.map.removeSource(o), e && ((z = this.map) != null && z.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
12332
+ }), this.pointMarkers[t.id] = [], (k = this.tipMarker) == null || k.remove(), this.tipMarker = void 0, e && ((f = this.map) != null && f.getSource(o)) && this.map.removeSource(o), e && ((z = this.map) != null && z.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
12326
12333
  }
12327
12334
  }
12328
12335
  }, Lm = { class: "idm-gl4-measure" };
@@ -12487,7 +12494,7 @@ const Tm = {
12487
12494
  class: "list d-flex flex-wrap pa-2 rounded ga-2"
12488
12495
  }, Om = ["onClick"], Bm = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, Em = { class: "text-body-1" };
12489
12496
  function jm(t, e, o, i, a, r) {
12490
- const s = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"), f = x("VList"), p = x("VMenu"), y = x("VBtn"), w = x("VDivider"), k = x("VTooltip");
12497
+ const s = x("DateTimePicker"), c = x("VListItemTitle"), n = x("VListItem"), g = x("VList"), p = x("VMenu"), y = x("VBtn"), w = x("VDivider"), k = x("VTooltip");
12491
12498
  return b(), S("div", Sm, [
12492
12499
  l("div", {
12493
12500
  class: "timeline-box px-2 d-flex justify-start align-center rounded",
@@ -12501,9 +12508,9 @@ function jm(t, e, o, i, a, r) {
12501
12508
  "day-about": a.dayAbout,
12502
12509
  "interval-hour": a.intervalHour
12503
12510
  }, t.$attrs, {
12504
- onCurrentTimestamp: e[0] || (e[0] = (g) => a.currentTimestamp = g),
12505
- onCurrentRealTime: e[1] || (e[1] = (g) => a.currentRealTime = g),
12506
- onTimestampRange: e[2] || (e[2] = (g) => a.timestampRange = g)
12511
+ onCurrentTimestamp: e[0] || (e[0] = (f) => a.currentTimestamp = f),
12512
+ onCurrentRealTime: e[1] || (e[1] = (f) => a.currentRealTime = f),
12513
+ onTimestampRange: e[2] || (e[2] = (f) => a.timestampRange = f)
12507
12514
  }), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
12508
12515
  h(y, {
12509
12516
  text: "",
@@ -12515,15 +12522,15 @@ function jm(t, e, o, i, a, r) {
12515
12522
  N(m(a.intervalHour) + " h ", 1),
12516
12523
  h(p, { activator: "parent" }, {
12517
12524
  default: u(() => [
12518
- h(f, { class: "pa-1" }, {
12525
+ h(g, { class: "pa-1" }, {
12519
12526
  default: u(() => [
12520
- (b(!0), S(be, null, we(a.intervalOptions, (g, z) => (b(), R(n, {
12527
+ (b(!0), S(be, null, we(a.intervalOptions, (f, z) => (b(), R(n, {
12521
12528
  key: z,
12522
- value: g,
12523
- variant: a.intervalHour === g ? "tonal" : "text",
12529
+ value: f,
12530
+ variant: a.intervalHour === f ? "tonal" : "text",
12524
12531
  color: "primary",
12525
12532
  rounded: "",
12526
- active: a.intervalHour === g,
12533
+ active: a.intervalHour === f,
12527
12534
  height: "30",
12528
12535
  "min-height": "30",
12529
12536
  "min-width": "30",
@@ -12531,10 +12538,10 @@ function jm(t, e, o, i, a, r) {
12531
12538
  }, {
12532
12539
  default: u(() => [
12533
12540
  h(c, {
12534
- onClick: (T) => a.intervalHour = g
12541
+ onClick: (T) => a.intervalHour = f
12535
12542
  }, {
12536
12543
  default: u(() => [
12537
- N(m(g) + "h", 1)
12544
+ N(m(f) + "h", 1)
12538
12545
  ]),
12539
12546
  _: 2
12540
12547
  }, 1032, ["onClick"])
@@ -12634,10 +12641,10 @@ function jm(t, e, o, i, a, r) {
12634
12641
  text: t.$t("weather.windBarbs"),
12635
12642
  location: "top"
12636
12643
  }, {
12637
- activator: u(({ props: g }) => {
12644
+ activator: u(({ props: f }) => {
12638
12645
  var z, T;
12639
12646
  return [
12640
- h(y, B(g, {
12647
+ h(y, B(f, {
12641
12648
  class: "pa-1 d-flex",
12642
12649
  color: (z = o.weatherCheckList) != null && z.includes("wind") ? "primary" : "",
12643
12650
  variant: (T = o.weatherCheckList) != null && T.includes("wind") ? "elevated" : "text",
@@ -12660,10 +12667,10 @@ function jm(t, e, o, i, a, r) {
12660
12667
  text: t.$t("weather.sigWaveHeight"),
12661
12668
  location: "top"
12662
12669
  }, {
12663
- activator: u(({ props: g }) => {
12670
+ activator: u(({ props: f }) => {
12664
12671
  var z, T;
12665
12672
  return [
12666
- h(y, B(g, {
12673
+ h(y, B(f, {
12667
12674
  class: "pa-1 d-flex",
12668
12675
  color: (z = o.weatherCheckList) != null && z.includes("sig-wave-height") ? "primary" : "",
12669
12676
  variant: (T = o.weatherCheckList) != null && T.includes("sig-wave-height") ? "elevated" : "text",
@@ -12673,7 +12680,7 @@ function jm(t, e, o, i, a, r) {
12673
12680
  onClick: e[4] || (e[4] = (O) => r.handleClickFastWeather("sig-wave-height"))
12674
12681
  }), {
12675
12682
  default: u(() => [
12676
- l("i", B(g, { class: "iconfont icon-a-WaveHeight" }), null, 16)
12683
+ l("i", B(f, { class: "iconfont icon-a-WaveHeight" }), null, 16)
12677
12684
  ]),
12678
12685
  _: 2
12679
12686
  }, 1040, ["color", "variant"])
@@ -12685,10 +12692,10 @@ function jm(t, e, o, i, a, r) {
12685
12692
  text: t.$t("weather.currentDirection"),
12686
12693
  location: "top"
12687
12694
  }, {
12688
- activator: u(({ props: g }) => {
12695
+ activator: u(({ props: f }) => {
12689
12696
  var z, T;
12690
12697
  return [
12691
- h(y, B(g, {
12698
+ h(y, B(f, {
12692
12699
  class: "pa-1 d-flex",
12693
12700
  color: (z = o.weatherCheckList) != null && z.includes("current-direction") ? "primary" : "",
12694
12701
  variant: (T = o.weatherCheckList) != null && T.includes("current-direction") ? "elevated" : "text",
@@ -12698,7 +12705,7 @@ function jm(t, e, o, i, a, r) {
12698
12705
  onClick: e[5] || (e[5] = (O) => r.handleClickFastWeather("current-direction"))
12699
12706
  }), {
12700
12707
  default: u(() => [
12701
- l("i", B(g, { class: "iconfont icon-Current" }), null, 16)
12708
+ l("i", B(f, { class: "iconfont icon-Current" }), null, 16)
12702
12709
  ]),
12703
12710
  _: 2
12704
12711
  }, 1040, ["color", "variant"])
@@ -12710,8 +12717,8 @@ function jm(t, e, o, i, a, r) {
12710
12717
  text: t.$t("weather.weatherLayers"),
12711
12718
  location: "top"
12712
12719
  }, {
12713
- activator: u(({ props: g }) => [
12714
- h(y, B(g, {
12720
+ activator: u(({ props: f }) => [
12721
+ h(y, B(f, {
12715
12722
  class: "pa-1 d-flex",
12716
12723
  variant: "text",
12717
12724
  height: "24",
@@ -12720,7 +12727,7 @@ function jm(t, e, o, i, a, r) {
12720
12727
  onClick: r.handleClickFastMore
12721
12728
  }), {
12722
12729
  default: u(() => [
12723
- l("i", B(g, { class: "iconfont icon-dots-align" }), null, 16)
12730
+ l("i", B(f, { class: "iconfont icon-dots-align" }), null, 16)
12724
12731
  ]),
12725
12732
  _: 2
12726
12733
  }, 1040, ["onClick"])
@@ -12739,7 +12746,7 @@ function jm(t, e, o, i, a, r) {
12739
12746
  height: "30",
12740
12747
  class: "px-2 elevation-0 text-body-1 btn-border-2 btn-bg-2",
12741
12748
  color: a.source === "GFS" ? "primary" : "",
12742
- onClick: e[6] || (e[6] = (g) => a.source = "GFS")
12749
+ onClick: e[6] || (e[6] = (f) => a.source = "GFS")
12743
12750
  }, {
12744
12751
  default: u(() => e[15] || (e[15] = [
12745
12752
  N("NOAA", -1)
@@ -12752,7 +12759,7 @@ function jm(t, e, o, i, a, r) {
12752
12759
  height: "30",
12753
12760
  class: "px-2 elevation-0 text-body-1 btn-border-2 btn-bg-2",
12754
12761
  color: a.source === "ECMWF" ? "primary" : "",
12755
- onClick: e[7] || (e[7] = (g) => a.source = "ECMWF")
12762
+ onClick: e[7] || (e[7] = (f) => a.source = "ECMWF")
12756
12763
  }, {
12757
12764
  default: u(() => e[16] || (e[16] = [
12758
12765
  N("ECMWF", -1)
@@ -12767,11 +12774,11 @@ function jm(t, e, o, i, a, r) {
12767
12774
  style: ie({ right: a.right + "px" })
12768
12775
  }, [
12769
12776
  a.showTimezone ? (b(), S("div", Rm, [
12770
- (b(!0), S(be, null, we(a.offsets, (g) => (b(), S("div", {
12771
- key: g,
12777
+ (b(!0), S(be, null, we(a.offsets, (f) => (b(), S("div", {
12778
+ key: f,
12772
12779
  class: "item rounded text-body-2 hover-active",
12773
- onClick: (z) => a.timeZone = g
12774
- }, m(g < 0 ? g : "+" + g), 9, Om))), 128))
12780
+ onClick: (z) => a.timeZone = f
12781
+ }, m(f < 0 ? f : "+" + f), 9, Om))), 128))
12775
12782
  ])) : I("", !0),
12776
12783
  l("div", Bm, [
12777
12784
  h(y, {
@@ -12780,7 +12787,7 @@ function jm(t, e, o, i, a, r) {
12780
12787
  height: "28",
12781
12788
  class: "pa-1 text-body-1",
12782
12789
  color: "primary",
12783
- onClick: e[8] || (e[8] = (g) => a.showTimezone = !a.showTimezone)
12790
+ onClick: e[8] || (e[8] = (f) => a.showTimezone = !a.showTimezone)
12784
12791
  }, {
12785
12792
  default: u(() => [
12786
12793
  N(" UTC " + m(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
@@ -12856,7 +12863,7 @@ const Nm = /* @__PURE__ */ X(Tm, [["render", jm]]), Fm = {
12856
12863
  class: "map-gl4-home"
12857
12864
  };
12858
12865
  function Gm(t, e, o, i, a, r) {
12859
- const s = x("IdmOtherLayer"), c = x("IdmWeatherLayer"), n = x("IdmTropicals"), f = x("IdmMeasure"), p = x("IdmSpot"), y = x("IdmBottomBar");
12866
+ const s = x("IdmOtherLayer"), c = x("IdmWeatherLayer"), n = x("IdmTropicals"), g = x("IdmMeasure"), p = x("IdmSpot"), y = x("IdmBottomBar");
12860
12867
  return b(), S("div", Hm, [
12861
12868
  h(s, B({
12862
12869
  ref: "idmOtherLayers",
@@ -12902,7 +12909,7 @@ function Gm(t, e, o, i, a, r) {
12902
12909
  "forecast-model": o.forecastModel,
12903
12910
  "map-feather": o.mapFeather
12904
12911
  }, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "tropicals", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
12905
- h(f, B({
12912
+ h(g, B({
12906
12913
  map: o.map,
12907
12914
  "map-feather": o.mapFeather
12908
12915
  }, t.$attrs), null, 16, ["map", "map-feather"]),
@@ -12931,7 +12938,7 @@ class Um {
12931
12938
  ce(this, "hi");
12932
12939
  ce(this, "td");
12933
12940
  ce(this, "windy");
12934
- var o, i, a, r, s, c, n, f, p, y, w, k, g, z, T, O, M, P, _, L, C, v, A, F, Y, Z, V, ee, $, J, pe, me, Q, ae, de, se, he, ge, H, ne, xe, Le, Pe, Ae, De, Re, _e, W, te, Fe, Me, ue, fe, U, Ce, oe, re, Oe, j, ye, Ie, Be, Ee, E, q, Ve, Ye, Ze, Te, qe, Xe, Ke, $e, Qe, Je, et, tt, ot, at, 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, Mt, It, At, Dt, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Gt, Wt, Ut, Vt, Yt, Zt, qt, Xt, Kt, Qt, Jt, eo, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Mo, Io, Ao, Do, Ro, Oo, Bo, Eo, jo, No, Fo, Ho, Go, Wo, Uo, Vo, Yo, Zo, qo, Xo, Ko, $o, Qo, Jo, ea, ta, oa, aa, ia, ra, la, sa, na, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ma, Ia, Aa, Da, Ra, Oa, Ba, Ea, ja, Na, Fa, Ha, Ga, Wa, Ua;
12941
+ var o, i, a, r, s, c, n, g, p, y, w, k, f, z, T, O, M, P, _, L, C, v, A, F, Y, Z, V, ee, $, J, pe, me, Q, ae, de, se, he, ge, H, ne, xe, Le, Pe, Ae, De, Re, _e, W, te, Fe, Me, ue, fe, U, Ce, oe, re, Oe, j, ye, Ie, Be, Ee, E, q, Ve, Ye, Ze, Te, qe, Xe, Ke, $e, Qe, Je, et, tt, ot, at, 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, Mt, It, At, Dt, Rt, Ot, Bt, Et, jt, Nt, Ft, Ht, Gt, Wt, Ut, Vt, Yt, Zt, qt, Xt, Kt, Qt, Jt, eo, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, To, So, Mo, Io, Ao, Do, Ro, Oo, Bo, Eo, jo, No, Fo, Ho, Go, Wo, Uo, Vo, Yo, Zo, qo, Xo, Ko, $o, Qo, Jo, ea, ta, oa, aa, ia, ra, la, sa, na, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Ta, Sa, Ma, Ia, Aa, Da, Ra, Oa, Ba, Ea, ja, Na, Fa, Ha, Ga, Wa, Ua;
12935
12942
  this.i4 = {
12936
12943
  source: {
12937
12944
  type: "raster",
@@ -31575,10 +31582,10 @@ class Um {
31575
31582
  (i = (o = this.originStyle) == null ? void 0 : o.light.layers) == null ? void 0 : i.find((d) => d.id === "land"),
31576
31583
  (r = (a = this.originStyle) == null ? void 0 : a.light.layers) == null ? void 0 : r.find((d) => d.id === "water"),
31577
31584
  (c = (s = this.originStyle) == null ? void 0 : s.light.layers) == null ? void 0 : c.find((d) => d.id === "ice-area-fill"),
31578
- (f = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : f.find((d) => d.id === "ice-area-line"),
31585
+ (g = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : g.find((d) => d.id === "ice-area-line"),
31579
31586
  (y = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : y.find((d) => d.id === "loadlines-label"),
31580
31587
  (k = (w = this.originStyle) == null ? void 0 : w.light.layers) == null ? void 0 : k.find((d) => d.id === "loadlines-fill"),
31581
- (z = (g = this.originStyle) == null ? void 0 : g.light.layers) == null ? void 0 : z.find((d) => d.id === "empty-layer-0"),
31588
+ (z = (f = this.originStyle) == null ? void 0 : f.light.layers) == null ? void 0 : z.find((d) => d.id === "empty-layer-0"),
31582
31589
  (O = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : O.find((d) => d.id === "empty-layer-1"),
31583
31590
  (P = (M = this.originStyle) == null ? void 0 : M.light.layers) == null ? void 0 : P.find((d) => d.id === "country-boundaries"),
31584
31591
  (L = (_ = this.originStyle) == null ? void 0 : _.light.layers) == null ? void 0 : L.find((d) => d.id === "water-outline"),