@idmui/basic 0.4.1 → 0.4.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.
@@ -2,11 +2,17 @@ export default _sfc_main;
2
2
  declare namespace _sfc_main {
3
3
  const name: string;
4
4
  namespace props {
5
- namespace report {
5
+ namespace issued {
6
6
  export const type: StringConstructor;
7
- const _default: undefined;
7
+ const _default: string;
8
8
  export { _default as default };
9
9
  }
10
+ namespace report {
11
+ const type_1: ObjectConstructor;
12
+ export { type_1 as type };
13
+ function _default_1(): {};
14
+ export { _default_1 as default };
15
+ }
10
16
  }
11
17
  namespace methods {
12
18
  function computeUTCTime(utcTime: any, format: any): string;
package/dist/index.js CHANGED
@@ -13,9 +13,13 @@ const N1 = (i, t) => {
13
13
  }, T6 = {
14
14
  name: "IdmSign",
15
15
  props: {
16
- report: {
16
+ issued: {
17
17
  type: String,
18
- default: void 0
18
+ default: ""
19
+ },
20
+ report: {
21
+ type: Object,
22
+ default: () => ({})
19
23
  }
20
24
  },
21
25
  methods: {
@@ -36,7 +40,7 @@ function V6(i, t, e, h, c, s) {
36
40
  t[0] || (t[0] = p("Issued by ", -1)),
37
41
  t[1] || (t[1] = a("b", null, "ORM", -1)),
38
42
  t[2] || (t[2] = p(" on ", -1)),
39
- a("b", null, l(s.computeUTCTime(i.issued, "YYYY-MM-DD")), 1)
43
+ a("b", null, l(s.computeUTCTime(e.issued, "YYYY-MM-DD")), 1)
40
44
  ])
41
45
  ]),
42
46
  a("div", P6, [
@@ -71,7 +75,7 @@ function V6(i, t, e, h, c, s) {
71
75
  ])
72
76
  ]);
73
77
  }
74
- const R6 = /* @__PURE__ */ N1(T6, [["render", V6], ["__scopeId", "data-v-9d0d1fe3"]]), St = {
78
+ const R6 = /* @__PURE__ */ N1(T6, [["render", V6], ["__scopeId", "data-v-ab0dcb10"]]), St = {
75
79
  install(i) {
76
80
  i.component("IdmSign", R6);
77
81
  }
@@ -97,7 +101,7 @@ const G6 = {
97
101
  return M.utc(i).format(t);
98
102
  }
99
103
  }
100
- }, $6 = { class: "idm-brand-section" }, Y6 = { class: "title-box" }, j6 = { class: "issue-box" };
104
+ }, $6 = { class: "idm-brand-section" }, j6 = { class: "title-box" }, Y6 = { class: "issue-box" };
101
105
  function U6(i, t, e, h, c, s) {
102
106
  return u(), b("div", $6, [
103
107
  t[0] || (t[0] = a("div", { class: "logo-box" }, [
@@ -111,8 +115,8 @@ function U6(i, t, e, h, c, s) {
111
115
  })
112
116
  ])
113
117
  ], -1)),
114
- a("div", Y6, l(e.name), 1),
115
- a("div", j6, [
118
+ a("div", j6, l(e.name), 1),
119
+ a("div", Y6, [
116
120
  a("div", null, l(e.locale === "en" ? "Mail to" : "联系我们") + ": op@ormwx.com", 1),
117
121
  a("div", null, l(e.locale === "en" ? "Issued" : "发布时间") + ": " + l(s.computeUTCTime(e.issued, "MMM-DD, YYYY")), 1)
118
122
  ])
@@ -323,14 +327,14 @@ const i3 = {
323
327
  `<svg t="1740383449285" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10797" width="200" height="200"><path d="M133.8 579l-44.4-44.4c-18.8-18.8-18.8-49.2 0-67.8L478 78c18.8-18.8 49.2-18.8 67.8 0l388.6 388.6c18.8 18.8 18.8 49.2 0 67.8L890 578.8c-19 19-50 18.6-68.6-0.8L592 337.2V912c0 26.6-21.4 48-48 48h-64c-26.6 0-48-21.4-48-48V337.2L202.4 578.2c-18.6 19.6-49.6 20-68.6 0.8z" fill="${m}" p-id="10798"></path></svg>`
324
328
  ), y = new Image(64, 64);
325
329
  y.src = g, y.onload = async () => {
326
- var k, x, E, N, B, W, D, H, A, O, R, G, F, T, Y, j, C, _, L, r, U, n, K, X, Z, t1, a1, i1, l1, s1, o1, r1, n1, e1, S, V, f1, b1, y1, h1, m1, o, F1, B1, T1, I1, E1, W1, P1, O1, V1, R1, G1, $1, Y1, j1, U1, Z1, q1, X1, J1;
330
+ var k, x, E, N, B, W, D, H, A, O, R, G, F, T, j, Y, C, _, L, r, U, n, K, X, Z, t1, a1, i1, l1, s1, o1, r1, n1, e1, S, V, f1, b1, y1, h1, m1, o, F1, B1, T1, I1, E1, W1, P1, O1, V1, R1, G1, $1, j1, Y1, U1, Z1, q1, X1, J1;
327
331
  const z = (x = (k = M.tz(c, this.positionGmt)) == null ? void 0 : k.set({ hour: 0, minute: 0, second: 0, millisecond: 0 })) == null ? void 0 : x.format();
328
332
  for (let d1 = 0; d1 < t * 24; d1++)
329
333
  if (d1 % e === 0) {
330
334
  const D1 = M(z).clone().add(d1, "h").format();
331
335
  (E = this.meteogramData) == null || E.dates.push(D1);
332
336
  const $ = ((N = u2.pickHourly(i, D1)) == null ? void 0 : N[0]) || {};
333
- (W = this.meteogramData) == null || W.temperatures.push(this.roundPrecision((B = $ == null ? void 0 : $.weather) == null ? void 0 : B.temp, 0)), (H = this.meteogramData) == null || H.visibility.push(this.roundPrecision((D = $ == null ? void 0 : $.weather) == null ? void 0 : D.visibility, 1)), (R = this.meteogramData) == null || R.windspeed.push(this.roundPrecision((O = (A = $.weather) == null ? void 0 : A.wind) == null ? void 0 : O.kts, 1)), (T = this.meteogramData) == null || T.windGusts.push(this.roundPrecision((F = (G = $ == null ? void 0 : $.weather) == null ? void 0 : G.wind) == null ? void 0 : F.gusts, 1)), (Y = this.meteogramData) == null || Y.windSpeedReferMax.push(16), (_ = this.meteogramData) == null || _.sigWaveHeight.push(this.roundPrecision((C = (j = $ == null ? void 0 : $.wave) == null ? void 0 : j.sig) == null ? void 0 : C.height)), (U = this.meteogramData) == null || U.swellHeight.push(this.roundPrecision((r = (L = $ == null ? void 0 : $.wave) == null ? void 0 : L.swell) == null ? void 0 : r.height)), (n = this.meteogramData) == null || n.waveHeightRefer.push(1.5);
337
+ (W = this.meteogramData) == null || W.temperatures.push(this.roundPrecision((B = $ == null ? void 0 : $.weather) == null ? void 0 : B.temp, 0)), (H = this.meteogramData) == null || H.visibility.push(this.roundPrecision((D = $ == null ? void 0 : $.weather) == null ? void 0 : D.visibility, 1)), (R = this.meteogramData) == null || R.windspeed.push(this.roundPrecision((O = (A = $.weather) == null ? void 0 : A.wind) == null ? void 0 : O.kts, 1)), (T = this.meteogramData) == null || T.windGusts.push(this.roundPrecision((F = (G = $ == null ? void 0 : $.weather) == null ? void 0 : G.wind) == null ? void 0 : F.gusts, 1)), (j = this.meteogramData) == null || j.windSpeedReferMax.push(16), (_ = this.meteogramData) == null || _.sigWaveHeight.push(this.roundPrecision((C = (Y = $ == null ? void 0 : $.wave) == null ? void 0 : Y.sig) == null ? void 0 : C.height)), (U = this.meteogramData) == null || U.swellHeight.push(this.roundPrecision((r = (L = $ == null ? void 0 : $.wave) == null ? void 0 : L.swell) == null ? void 0 : r.height)), (n = this.meteogramData) == null || n.waveHeightRefer.push(1.5);
334
338
  const s2 = e === 1 ? "sum1Hours" : "sum3Hours";
335
339
  if ((Z = this.meteogramData) == null || Z.precip.push(this.roundPrecision((X = (K = $ == null ? void 0 : $.weather) == null ? void 0 : K.precip) == null ? void 0 : X[s2], 1)), e < 24 && d1 % 12 === 0 && d1 % 24 !== 0 || e >= 24 && d1 % 24 === 0 ? (a1 = this.meteogramData) == null || a1.xDates.push((t1 = M.tz(D1, this.positionGmt)) == null ? void 0 : t1.format("MMM-DD")) : (i1 = this.meteogramData) == null || i1.xDates.push(""), d1 % h === 0 ? (l1 = this.meteogramData) == null || l1.hours.push(this.computeHourLT(D1)) : (s1 = this.meteogramData) == null || s1.hours.push(""), d1 % 12 === 0 ? ((o1 = $.weather) != null && o1.url ? (n1 = this.meteogramData) == null || n1.weatherIcons.push({ symbol: "image://" + ((r1 = $.weather) == null ? void 0 : r1.url), symbolSize: 30 }) : this.meteogramData.weatherIcons.push({ symbol: "image://", symbolSize: 0 }), (S = this.meteogramData) == null || S.weatherNames.push((e1 = $.weather) == null ? void 0 : e1.name)) : ((V = this.meteogramData) == null || V.weatherIcons.push({ symbol: "image://", symbolSize: 0 }), (f1 = this.meteogramData) == null || f1.weatherNames.push("")), d1 % h === 0 ? (h1 = this.meteogramData) == null || h1.windDir.push((y1 = (b1 = $.weather) == null ? void 0 : b1.wind) == null ? void 0 : y1.bearing) : (m1 = this.meteogramData) == null || m1.windDir.push(void 0), d1 % h === 0) {
336
340
  const _1 = document.createElement("canvas"), H1 = _1.getContext("2d");
@@ -350,13 +354,13 @@ const i3 = {
350
354
  }
351
355
  ]), s = { start: void 0, end: void 0 });
352
356
  }
353
- this.meteogramData.singleAxisOffset.l = ((R1 = this.meteogramData) == null ? void 0 : R1.gridOffset.l) + 0.5 / (($1 = (G1 = this.meteogramData) == null ? void 0 : G1.dates) == null ? void 0 : $1.length) * (100 - ((Y1 = this.meteogramData) == null ? void 0 : Y1.gridOffset.l) - ((j1 = this.meteogramData) == null ? void 0 : j1.gridOffset.r)) + "%", this.meteogramData.singleAxisOffset.r = ((U1 = this.meteogramData) == null ? void 0 : U1.gridOffset.r) + 0.5 / ((q1 = (Z1 = this.meteogramData) == null ? void 0 : Z1.dates) == null ? void 0 : q1.length) * (100 - ((X1 = this.meteogramData) == null ? void 0 : X1.gridOffset.l) - ((J1 = this.meteogramData) == null ? void 0 : J1.gridOffset.r)) + "%", this.$nextTick(() => {
357
+ this.meteogramData.singleAxisOffset.l = ((R1 = this.meteogramData) == null ? void 0 : R1.gridOffset.l) + 0.5 / (($1 = (G1 = this.meteogramData) == null ? void 0 : G1.dates) == null ? void 0 : $1.length) * (100 - ((j1 = this.meteogramData) == null ? void 0 : j1.gridOffset.l) - ((Y1 = this.meteogramData) == null ? void 0 : Y1.gridOffset.r)) + "%", this.meteogramData.singleAxisOffset.r = ((U1 = this.meteogramData) == null ? void 0 : U1.gridOffset.r) + 0.5 / ((q1 = (Z1 = this.meteogramData) == null ? void 0 : Z1.dates) == null ? void 0 : q1.length) * (100 - ((X1 = this.meteogramData) == null ? void 0 : X1.gridOffset.l) - ((J1 = this.meteogramData) == null ? void 0 : J1.gridOffset.r)) + "%", this.$nextTick(() => {
354
358
  this.initMeteogramEchart(i);
355
359
  });
356
360
  };
357
361
  },
358
362
  initMeteogramEchart(i) {
359
- var B, W, D, H, A, O, R, G, F, T, Y, j, C, _, L, r, U, n, K, X, Z, t1, a1, i1, l1, s1, o1, r1, n1, e1, S, V, f1, b1, y1, h1, m1, o, F1, B1, T1, I1, E1, W1, P1, O1, V1, R1, G1, $1, Y1, j1, U1, Z1, q1, X1, J1, d1, D1, $, s2, _1, H1, n2, c1, S1, P, h2, A1, o2, g2, m2, p2, f2, b2, y2, w2;
363
+ var B, W, D, H, A, O, R, G, F, T, j, Y, C, _, L, r, U, n, K, X, Z, t1, a1, i1, l1, s1, o1, r1, n1, e1, S, V, f1, b1, y1, h1, m1, o, F1, B1, T1, I1, E1, W1, P1, O1, V1, R1, G1, $1, j1, Y1, U1, Z1, q1, X1, J1, d1, D1, $, s2, _1, H1, n2, c1, S1, P, h2, A1, o2, g2, m2, p2, f2, b2, y2, w2;
360
364
  i.forecastDays;
361
365
  const t = i.interval || 3;
362
366
  let e, h = {
@@ -594,7 +598,7 @@ const i3 = {
594
598
  singleAxis: [
595
599
  {
596
600
  left: (T = (F = this.meteogramData) == null ? void 0 : F.singleAxisOffset) == null ? void 0 : T.l,
597
- right: (j = (Y = this.meteogramData) == null ? void 0 : Y.singleAxisOffset) == null ? void 0 : j.r,
601
+ right: (Y = (j = this.meteogramData) == null ? void 0 : j.singleAxisOffset) == null ? void 0 : Y.r,
598
602
  type: "category",
599
603
  show: !1,
600
604
  axisLine: {
@@ -1026,7 +1030,7 @@ const i3 = {
1026
1030
  },
1027
1031
  {
1028
1032
  left: (G1 = (R1 = this.meteogramData) == null ? void 0 : R1.singleAxisOffset) == null ? void 0 : G1.l,
1029
- right: (Y1 = ($1 = this.meteogramData) == null ? void 0 : $1.singleAxisOffset) == null ? void 0 : Y1.r,
1033
+ right: (j1 = ($1 = this.meteogramData) == null ? void 0 : $1.singleAxisOffset) == null ? void 0 : j1.r,
1030
1034
  type: "category",
1031
1035
  show: !1,
1032
1036
  axisLine: {
@@ -1046,7 +1050,7 @@ const i3 = {
1046
1050
  // 隐藏分割线
1047
1051
  },
1048
1052
  boundaryGap: !1,
1049
- data: (j1 = this.meteogramData) == null ? void 0 : j1.dates,
1053
+ data: (Y1 = this.meteogramData) == null ? void 0 : Y1.dates,
1050
1054
  top: "92%",
1051
1055
  height: "2%"
1052
1056
  }
@@ -1495,7 +1499,7 @@ const i3 = {
1495
1499
  document.getElementById("weatherIconsEchart") && J.dispose(document.getElementById("weatherIconsEchart")), document.getElementById("weatherConditionEchart") && J.dispose(document.getElementById("weatherConditionEchart")), document.getElementById("windIconsEchart") && J.dispose(document.getElementById("windIconsEchart")), document.getElementById("windEchart") && J.dispose(document.getElementById("windEchart")), document.getElementById("waveChart") && J.dispose(document.getElementById("waveChart"));
1496
1500
  },
1497
1501
  initHourlyTableData(i) {
1498
- var s, m, g, y, f, z, k, x, E, N, B, W, D, H, A, O, R, G, F, T, Y, j, C, _, L, r, U, n, K, X, Z, t1, a1, i1, l1, s1, o1, r1, n1, e1, S, V, f1, b1, y1;
1502
+ var s, m, g, y, f, z, k, x, E, N, B, W, D, H, A, O, R, G, F, T, j, Y, C, _, L, r, U, n, K, X, Z, t1, a1, i1, l1, s1, o1, r1, n1, e1, S, V, f1, b1, y1;
1499
1503
  this.hourlyTableData = [];
1500
1504
  const t = i.forecastDays || 7, e = i.interval || 3, h = i.datetime || ((s = this.reportData) == null ? void 0 : s.etime), c = (g = (m = M.tz(h, this.positionGmt)) == null ? void 0 : m.set({ hour: 0, minute: 0, second: 0, millisecond: 0 })) == null ? void 0 : g.format();
1501
1505
  for (let h1 = 0; h1 < t * 24; h1++)
@@ -1514,7 +1518,7 @@ const i3 = {
1514
1518
  windBF: ((O = (A = o == null ? void 0 : o.weather) == null ? void 0 : A.wind) == null ? void 0 : O.scale) ?? "-",
1515
1519
  windGusts: this.roundPrecision((G = (R = o == null ? void 0 : o.weather) == null ? void 0 : R.wind) == null ? void 0 : G.gusts, 1) ?? "-",
1516
1520
  windWaveHeight: this.roundPrecision((T = (F = o == null ? void 0 : o.wave) == null ? void 0 : F.wd) == null ? void 0 : T.height, 1) ?? "-",
1517
- windWavePeriod: this.roundPrecision((j = (Y = o == null ? void 0 : o.wave) == null ? void 0 : Y.wd) == null ? void 0 : j.period, 1) ?? "-",
1521
+ windWavePeriod: this.roundPrecision((Y = (j = o == null ? void 0 : o.wave) == null ? void 0 : j.wd) == null ? void 0 : Y.period, 1) ?? "-",
1518
1522
  windWaveDir: (_ = (C = o == null ? void 0 : o.wave) == null ? void 0 : C.wd) == null ? void 0 : _.direction,
1519
1523
  windWaveBearing: (r = (L = o == null ? void 0 : o.wave) == null ? void 0 : L.wd) == null ? void 0 : r.bearing,
1520
1524
  swellHeight: this.roundPrecision((n = (U = o.wave) == null ? void 0 : U.swell) == null ? void 0 : n.height, 1) ?? "-",
@@ -1681,12 +1685,12 @@ const i3 = {
1681
1685
  colspan: "1",
1682
1686
  class: "border",
1683
1687
  style: { width: "30px" }
1684
- }, Y3 = {
1688
+ }, j3 = {
1685
1689
  rowspan: "1",
1686
1690
  colspan: "1",
1687
1691
  class: "border",
1688
1692
  style: { width: "60px" }
1689
- }, j3 = {
1693
+ }, Y3 = {
1690
1694
  rowspan: "1",
1691
1695
  colspan: "1",
1692
1696
  class: "border",
@@ -1843,7 +1847,7 @@ const i3 = {
1843
1847
  style: { width: "85px" }
1844
1848
  };
1845
1849
  function N0(i, t, e, h, c, s) {
1846
- var g, y, f, z, k, x, E, N, B, W, D, H, A, O, R, G, F, T, Y, j, C, _, L;
1850
+ var g, y, f, z, k, x, E, N, B, W, D, H, A, O, R, G, F, T, j, Y, C, _, L;
1847
1851
  const m = r2("IdmLoading");
1848
1852
  return u(), b("div", {
1849
1853
  class: v(["idm-spot-forecast-report", e.theme === "dark" ? "dark" : "light"])
@@ -1901,7 +1905,7 @@ function N0(i, t, e, h, c, s) {
1901
1905
  !e.loading && ((G = e.reportData) != null && G.showWeatherChart) ? (u(), b("div", x3)) : Q("", !0),
1902
1906
  !e.loading && ((F = e.reportData) != null && F.showWindChart) ? (u(), b("div", v3)) : Q("", !0),
1903
1907
  !e.loading && ((T = e.reportData) != null && T.showWindChart) ? (u(), b("div", z3)) : Q("", !0),
1904
- (Y = e.reportData) != null && Y.showWeatherChart && ((j = e.reportData) != null && j.showWindChart) ? (u(), b("div", k3)) : Q("", !0),
1908
+ (j = e.reportData) != null && j.showWeatherChart && ((Y = e.reportData) != null && Y.showWindChart) ? (u(), b("div", k3)) : Q("", !0),
1905
1909
  !e.loading && ((C = e.reportData) != null && C.showWaveChart) ? (u(), b("div", F3)) : Q("", !0)
1906
1910
  ])) : Q("", !0),
1907
1911
  a("div", _3, [
@@ -1972,12 +1976,12 @@ function N0(i, t, e, h, c, s) {
1972
1976
  t[7] || (t[7] = p("(kts)", -1))
1973
1977
  ]),
1974
1978
  a("th", $3, l(e.locale === "zhHans" ? "等级" : "BF"), 1),
1975
- a("th", Y3, [
1979
+ a("th", j3, [
1976
1980
  p(l(e.locale === "zhHans" ? "阵风" : "Gusts"), 1),
1977
1981
  t[8] || (t[8] = a("br", null, null, -1)),
1978
1982
  t[9] || (t[9] = p("(kts)", -1))
1979
1983
  ]),
1980
- a("th", j3, l(e.locale === "zhHans" ? "方向" : "Dir"), 1),
1984
+ a("th", Y3, l(e.locale === "zhHans" ? "方向" : "Dir"), 1),
1981
1985
  a("th", U3, [
1982
1986
  p(l(e.locale === "zhHans" ? "高度" : "Hgt"), 1),
1983
1987
  t[10] || (t[10] = a("br", null, null, -1)),
@@ -2248,14 +2252,14 @@ const T0 = {
2248
2252
  `<svg t="1740383449285" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10797" width="200" height="200"><path d="M133.8 579l-44.4-44.4c-18.8-18.8-18.8-49.2 0-67.8L478 78c18.8-18.8 49.2-18.8 67.8 0l388.6 388.6c18.8 18.8 18.8 49.2 0 67.8L890 578.8c-19 19-50 18.6-68.6-0.8L592 337.2V912c0 26.6-21.4 48-48 48h-64c-26.6 0-48-21.4-48-48V337.2L202.4 578.2c-18.6 19.6-49.6 20-68.6 0.8z" fill="${m}" p-id="10798"></path></svg>`
2249
2253
  ), y = new Image(64, 64);
2250
2254
  y.src = g, y.onload = async () => {
2251
- var x, E, N, B, W, D, H, A, O, R, G, F, T, Y, j, C, _, L, r, U, n, K, X, Z, t1, a1, i1, l1, s1, o1, r1, n1, e1, S, V, f1, b1, y1, h1, m1, o, F1, B1, T1, I1, E1, W1, P1, O1, V1, R1, G1, $1, Y1, j1, U1, Z1, q1, X1, J1, d1, D1, $, s2, _1, H1, n2;
2255
+ var x, E, N, B, W, D, H, A, O, R, G, F, T, j, Y, C, _, L, r, U, n, K, X, Z, t1, a1, i1, l1, s1, o1, r1, n1, e1, S, V, f1, b1, y1, h1, m1, o, F1, B1, T1, I1, E1, W1, P1, O1, V1, R1, G1, $1, j1, Y1, U1, Z1, q1, X1, J1, d1, D1, $, s2, _1, H1, n2;
2252
2256
  const k = (E = (x = M.tz(c, this.positionGmt)) == null ? void 0 : x.set({ hour: 0, minute: 0, second: 0, millisecond: 0 })) == null ? void 0 : E.format();
2253
2257
  for (let c1 = 0; c1 < t * 24; c1++)
2254
2258
  if (c1 % e === 0) {
2255
2259
  const S1 = M(k).clone().add(c1, "h").format();
2256
2260
  (N = this.meteogramData) == null || N.dates.push(S1);
2257
2261
  const P = ((B = u2.pickHourly(i, S1)) == null ? void 0 : B[0]) || {};
2258
- (D = this.meteogramData) == null || D.temperatures.push(this.roundPrecision((W = P == null ? void 0 : P.weather) == null ? void 0 : W.temp, 0)), (A = this.meteogramData) == null || A.visibility.push(this.roundPrecision((H = P == null ? void 0 : P.weather) == null ? void 0 : H.visibility, 1)), (G = this.meteogramData) == null || G.windspeed.push(this.roundPrecision((R = (O = P.weather) == null ? void 0 : O.wind) == null ? void 0 : R.kts, 1)), (Y = this.meteogramData) == null || Y.windGusts.push(this.roundPrecision((T = (F = P == null ? void 0 : P.weather) == null ? void 0 : F.wind) == null ? void 0 : T.gusts, 1)), (j = this.meteogramData) == null || j.windSpeedReferMax.push(16), (L = this.meteogramData) == null || L.sigWaveHeight.push(this.roundPrecision((_ = (C = P == null ? void 0 : P.wave) == null ? void 0 : C.sig) == null ? void 0 : _.height)), (n = this.meteogramData) == null || n.windWaveHeight.push(this.roundPrecision((U = (r = P == null ? void 0 : P.wave) == null ? void 0 : r.wd) == null ? void 0 : U.height)), (Z = this.meteogramData) == null || Z.swellHeight.push(this.roundPrecision((X = (K = P == null ? void 0 : P.wave) == null ? void 0 : K.swell) == null ? void 0 : X.height)), (t1 = this.meteogramData) == null || t1.waveHeightRefer.push(1.5);
2262
+ (D = this.meteogramData) == null || D.temperatures.push(this.roundPrecision((W = P == null ? void 0 : P.weather) == null ? void 0 : W.temp, 0)), (A = this.meteogramData) == null || A.visibility.push(this.roundPrecision((H = P == null ? void 0 : P.weather) == null ? void 0 : H.visibility, 1)), (G = this.meteogramData) == null || G.windspeed.push(this.roundPrecision((R = (O = P.weather) == null ? void 0 : O.wind) == null ? void 0 : R.kts, 1)), (j = this.meteogramData) == null || j.windGusts.push(this.roundPrecision((T = (F = P == null ? void 0 : P.weather) == null ? void 0 : F.wind) == null ? void 0 : T.gusts, 1)), (Y = this.meteogramData) == null || Y.windSpeedReferMax.push(16), (L = this.meteogramData) == null || L.sigWaveHeight.push(this.roundPrecision((_ = (C = P == null ? void 0 : P.wave) == null ? void 0 : C.sig) == null ? void 0 : _.height)), (n = this.meteogramData) == null || n.windWaveHeight.push(this.roundPrecision((U = (r = P == null ? void 0 : P.wave) == null ? void 0 : r.wd) == null ? void 0 : U.height)), (Z = this.meteogramData) == null || Z.swellHeight.push(this.roundPrecision((X = (K = P == null ? void 0 : P.wave) == null ? void 0 : K.swell) == null ? void 0 : X.height)), (t1 = this.meteogramData) == null || t1.waveHeightRefer.push(1.5);
2259
2263
  const h2 = e === 1 ? "sum1Hours" : "sum3Hours";
2260
2264
  if ((l1 = this.meteogramData) == null || l1.precip.push(this.roundPrecision((i1 = (a1 = P == null ? void 0 : P.weather) == null ? void 0 : a1.precip) == null ? void 0 : i1[h2], 1)), (o1 = this.meteogramData) == null || o1.currentSpd.push(this.roundPrecision((s1 = P == null ? void 0 : P.current) == null ? void 0 : s1.kts, 1)), (r1 = this.meteogramData) == null || r1.sst.push(this.roundPrecision(P == null ? void 0 : P.sst, 0)), e < 24 && c1 % 12 === 0 && c1 % 24 !== 0 || e >= 24 && c1 % 24 === 0 ? (e1 = this.meteogramData) == null || e1.xDates.push((n1 = M.tz(S1, this.positionGmt)) == null ? void 0 : n1.format("MMM-DD")) : (S = this.meteogramData) == null || S.xDates.push(""), c1 % h === 0 ? (V = this.meteogramData) == null || V.hours.push(this.computeHourLT(S1)) : (f1 = this.meteogramData) == null || f1.hours.push(""), c1 % 12 === 0 ? ((b1 = P.weather) != null && b1.url ? (h1 = this.meteogramData) == null || h1.weatherIcons.push({ symbol: "image://" + ((y1 = P.weather) == null ? void 0 : y1.url), symbolSize: 30 }) : this.meteogramData.weatherIcons.push({ symbol: "image://", symbolSize: 0 }), (o = this.meteogramData) == null || o.weatherNames.push((m1 = P.weather) == null ? void 0 : m1.name)) : ((F1 = this.meteogramData) == null || F1.weatherIcons.push({ symbol: "image://", symbolSize: 0 }), (B1 = this.meteogramData) == null || B1.weatherNames.push("")), c1 % h === 0 ? (E1 = this.meteogramData) == null || E1.windDir.push((I1 = (T1 = P.weather) == null ? void 0 : T1.wind) == null ? void 0 : I1.bearing) : (W1 = this.meteogramData) == null || W1.windDir.push(void 0), c1 % h === 0) {
2261
2265
  const A1 = document.createElement("canvas"), o2 = A1.getContext("2d");
@@ -2271,7 +2275,7 @@ const T0 = {
2271
2275
  x: ((R1 = this.meteogramData) == null ? void 0 : R1.gridOffset.l) + s.start / (t * 24) * (100 - ((G1 = this.meteogramData) == null ? void 0 : G1.gridOffset.l) - (($1 = this.meteogramData) == null ? void 0 : $1.gridOffset.r)) + "%"
2272
2276
  },
2273
2277
  {
2274
- x: ((Y1 = this.meteogramData) == null ? void 0 : Y1.gridOffset.l) + (s.end + 1) / (t * 24) * (100 - ((j1 = this.meteogramData) == null ? void 0 : j1.gridOffset.l) - ((U1 = this.meteogramData) == null ? void 0 : U1.gridOffset.r)) + "%"
2278
+ x: ((j1 = this.meteogramData) == null ? void 0 : j1.gridOffset.l) + (s.end + 1) / (t * 24) * (100 - ((Y1 = this.meteogramData) == null ? void 0 : Y1.gridOffset.l) - ((U1 = this.meteogramData) == null ? void 0 : U1.gridOffset.r)) + "%"
2275
2279
  }
2276
2280
  ]), s = { start: void 0, end: void 0 });
2277
2281
  }
@@ -2281,7 +2285,7 @@ const T0 = {
2281
2285
  };
2282
2286
  },
2283
2287
  initMeteogramEchart(i) {
2284
- var W, D, H, A, O, R, G, F, T, Y, j, C, _, L, r, U, n, K, X, Z, t1, a1, i1, l1, s1, o1, r1, n1, e1, S, V, f1, b1, y1, h1, m1, o, F1, B1, T1, I1, E1, W1, P1, O1, V1, R1, G1, $1, Y1, j1, U1, Z1, q1, X1, J1, d1, D1, $, s2, _1, H1, n2, c1, S1, P, h2, A1, o2, g2, m2, p2, f2, b2, y2, w2, w, M1, Q1, K1, e2, t2, a2, i2, q, x2, v2, z2, k2, F2, _2, M2, D2, H2, p1, l2, w1, E2, W2, P2, O2, V2, R2, G2, $2, Y2, j2, U2, Z2, q2, X2, J2, Q2, K2, e6, t6, a6, i6, l6, s6, o6, r6, n6, d6, c6, h6, m6, p6, g6, u6, f6, b6, y6, w6, x6, v6, z6, k6, F6, _6, M6, D6, H6, L6, S6;
2288
+ var W, D, H, A, O, R, G, F, T, j, Y, C, _, L, r, U, n, K, X, Z, t1, a1, i1, l1, s1, o1, r1, n1, e1, S, V, f1, b1, y1, h1, m1, o, F1, B1, T1, I1, E1, W1, P1, O1, V1, R1, G1, $1, j1, Y1, U1, Z1, q1, X1, J1, d1, D1, $, s2, _1, H1, n2, c1, S1, P, h2, A1, o2, g2, m2, p2, f2, b2, y2, w2, w, M1, Q1, K1, e2, t2, a2, i2, q, x2, v2, z2, k2, F2, _2, M2, D2, H2, p1, l2, w1, E2, W2, P2, O2, V2, R2, G2, $2, j2, Y2, U2, Z2, q2, X2, J2, Q2, K2, e6, t6, a6, i6, l6, s6, o6, r6, n6, d6, c6, h6, m6, p6, g6, u6, f6, b6, y6, w6, x6, v6, z6, k6, F6, _6, M6, D6, H6, L6, S6;
2285
2289
  const t = i.interval || 3;
2286
2290
  let e = Math.max(...this.meteogramData.temperatures.filter((d) => typeof d == "number" && !isNaN(d))), h = Math.min(...this.meteogramData.temperatures.filter((d) => typeof d == "number" && !isNaN(d))), c = Math.floor(h / 5) * 5, s = Math.ceil(e / 5) * 5, m = Math.ceil((s - c) / 5);
2287
2291
  c = Math.floor((c - 2 * m) / 5) * 5, s = Math.ceil((s + 1) / 5) * 5, m = Math.ceil((s - c) / 5);
@@ -2388,7 +2392,7 @@ const T0 = {
2388
2392
  },
2389
2393
  {
2390
2394
  left: (F = (G = this.meteogramData) == null ? void 0 : G.singleAxisOffset) == null ? void 0 : F.l,
2391
- right: (Y = (T = this.meteogramData) == null ? void 0 : T.singleAxisOffset) == null ? void 0 : Y.r,
2395
+ right: (j = (T = this.meteogramData) == null ? void 0 : T.singleAxisOffset) == null ? void 0 : j.r,
2392
2396
  type: "category",
2393
2397
  show: !1,
2394
2398
  axisLine: {
@@ -2408,7 +2412,7 @@ const T0 = {
2408
2412
  // 隐藏分割线
2409
2413
  },
2410
2414
  boundaryGap: !1,
2411
- data: (j = this.meteogramData) == null ? void 0 : j.dates,
2415
+ data: (Y = this.meteogramData) == null ? void 0 : Y.dates,
2412
2416
  top: "27%",
2413
2417
  height: "2%"
2414
2418
  },
@@ -2821,7 +2825,7 @@ const T0 = {
2821
2825
  singleAxisIndex: 3,
2822
2826
  coordinateSystem: "singleAxis",
2823
2827
  type: "scatter",
2824
- data: (Y1 = this.meteogramData) == null ? void 0 : Y1.xDates,
2828
+ data: (j1 = this.meteogramData) == null ? void 0 : j1.xDates,
2825
2829
  label: {
2826
2830
  show: !0,
2827
2831
  fontSize: 13,
@@ -2856,7 +2860,7 @@ const T0 = {
2856
2860
  top: "50%",
2857
2861
  height: "50%",
2858
2862
  type: "category",
2859
- data: (j1 = this.meteogramData) == null ? void 0 : j1.dates,
2863
+ data: (Y1 = this.meteogramData) == null ? void 0 : Y1.dates,
2860
2864
  show: !1
2861
2865
  },
2862
2866
  singleAxis: [
@@ -3618,12 +3622,12 @@ const T0 = {
3618
3622
  // 隐藏分割线
3619
3623
  },
3620
3624
  boundaryGap: !1,
3621
- data: (Y2 = this.meteogramData) == null ? void 0 : Y2.dates,
3625
+ data: (j2 = this.meteogramData) == null ? void 0 : j2.dates,
3622
3626
  top: "27%",
3623
3627
  height: "2%"
3624
3628
  },
3625
3629
  {
3626
- left: (U2 = (j2 = this.meteogramData) == null ? void 0 : j2.singleAxisOffset) == null ? void 0 : U2.l,
3630
+ left: (U2 = (Y2 = this.meteogramData) == null ? void 0 : Y2.singleAxisOffset) == null ? void 0 : U2.l,
3627
3631
  right: (q2 = (Z2 = this.meteogramData) == null ? void 0 : Z2.singleAxisOffset) == null ? void 0 : q2.r,
3628
3632
  type: "category",
3629
3633
  show: !1,
@@ -4038,7 +4042,7 @@ const T0 = {
4038
4042
  document.getElementById("tempEchart") && J.dispose(document.getElementById("tempEchart")), document.getElementById("windIconsEchart") && J.dispose(document.getElementById("windIconsEchart")), document.getElementById("precipEchart") && J.dispose(document.getElementById("precipEchart")), document.getElementById("windEchart") && J.dispose(document.getElementById("windEchart")), document.getElementById("waveEchart") && J.dispose(document.getElementById("waveEchart")), document.getElementById("currentEchart") && J.dispose(document.getElementById("currentEchart")), document.getElementById("sstEchart") && J.dispose(document.getElementById("sstEchart"));
4039
4043
  },
4040
4044
  initHourlyTableData(i) {
4041
- var s, m, g, y, f, z, k, x, E, N, B, W, D, H, A, O, R, G, F, T, Y, j, C, _, L, r, U, n, K, X, Z, t1, a1, i1, l1, s1, o1, r1, n1, e1, S, V, f1, b1, y1;
4045
+ var s, m, g, y, f, z, k, x, E, N, B, W, D, H, A, O, R, G, F, T, j, Y, C, _, L, r, U, n, K, X, Z, t1, a1, i1, l1, s1, o1, r1, n1, e1, S, V, f1, b1, y1;
4042
4046
  this.hourlyTableData = [];
4043
4047
  const t = i.forecastDays || 7, e = i.interval || 3, h = (i == null ? void 0 : i.datetime) || ((s = this.reportData) == null ? void 0 : s.etime), c = (g = (m = M.tz(h, this.positionGmt)) == null ? void 0 : m.set({ hour: 0, minute: 0, second: 0, millisecond: 0 })) == null ? void 0 : g.format();
4044
4048
  for (let h1 = 0; h1 < t * 24; h1++)
@@ -4057,7 +4061,7 @@ const T0 = {
4057
4061
  windBF: ((O = (A = o == null ? void 0 : o.weather) == null ? void 0 : A.wind) == null ? void 0 : O.scale) ?? "-",
4058
4062
  windGusts: this.roundPrecision((G = (R = o == null ? void 0 : o.weather) == null ? void 0 : R.wind) == null ? void 0 : G.gusts, 1) ?? "-",
4059
4063
  windWaveHeight: this.roundPrecision((T = (F = o == null ? void 0 : o.wave) == null ? void 0 : F.wd) == null ? void 0 : T.height, 1) ?? "-",
4060
- windWavePeriod: this.roundPrecision((j = (Y = o == null ? void 0 : o.wave) == null ? void 0 : Y.wd) == null ? void 0 : j.period, 1) ?? "-",
4064
+ windWavePeriod: this.roundPrecision((Y = (j = o == null ? void 0 : o.wave) == null ? void 0 : j.wd) == null ? void 0 : Y.period, 1) ?? "-",
4061
4065
  windWaveDir: (_ = (C = o == null ? void 0 : o.wave) == null ? void 0 : C.wd) == null ? void 0 : _.direction,
4062
4066
  windWaveBearing: (r = (L = o == null ? void 0 : o.wave) == null ? void 0 : L.wd) == null ? void 0 : r.bearing,
4063
4067
  swellHeight: this.roundPrecision((n = (U = o.wave) == null ? void 0 : U.swell) == null ? void 0 : n.height, 1) ?? "-",
@@ -4119,7 +4123,7 @@ const T0 = {
4119
4123
  }, R0 = { style: { "margin-left": "8px" } }, G0 = { class: "row" }, $0 = {
4120
4124
  class: "col",
4121
4125
  style: { width: "54%" }
4122
- }, Y0 = { style: { "margin-left": "8px" } }, j0 = { class: "content-box" }, U0 = {
4126
+ }, j0 = { style: { "margin-left": "8px" } }, Y0 = { class: "content-box" }, U0 = {
4123
4127
  key: 0,
4124
4128
  class: "meteogram-echart-section"
4125
4129
  }, Z0 = {
@@ -4329,7 +4333,7 @@ const T0 = {
4329
4333
  colspan: "1",
4330
4334
  class: "border",
4331
4335
  style: { width: "50px", "font-size": "11px", "text-align": "right", "padding-right": "3px" }
4332
- }, Ye = ["src"], je = { key: 1 }, Ue = {
4336
+ }, je = ["src"], Ye = { key: 1 }, Ue = {
4333
4337
  rowspan: "1",
4334
4338
  colspan: "1",
4335
4339
  class: "border",
@@ -4381,7 +4385,7 @@ const T0 = {
4381
4385
  style: { width: "85px" }
4382
4386
  };
4383
4387
  function d4(i, t, e, h, c, s) {
4384
- var g, y, f, z, k, x, E, N, B, W, D, H, A, O, R, G, F, T, Y, j, C, _, L;
4388
+ var g, y, f, z, k, x, E, N, B, W, D, H, A, O, R, G, F, T, j, Y, C, _, L;
4385
4389
  const m = r2("IdmLoading");
4386
4390
  return u(), b("div", I0, [
4387
4391
  (g = e.reportData) != null && g.showSummary ? (u(), b("div", {
@@ -4407,11 +4411,11 @@ function d4(i, t, e, h, c, s) {
4407
4411
  a("span", {
4408
4412
  class: v(["label label-color", e.theme === "dark" ? "dark" : "light"])
4409
4413
  }, l(e.locale === "zhHans" ? "时区" : "Timezone") + ":", 3),
4410
- a("span", Y0, "UTC " + l((N = e.reportData) == null ? void 0 : N.positionOffset), 1)
4414
+ a("span", j0, "UTC " + l((N = e.reportData) == null ? void 0 : N.positionOffset), 1)
4411
4415
  ])
4412
4416
  ])
4413
4417
  ], 2)) : Q("", !0),
4414
- a("div", j0, [
4418
+ a("div", Y0, [
4415
4419
  (B = e.reportData) != null && B.showTempChart || (W = e.reportData) != null && W.showPrecipChart || (D = e.reportData) != null && D.showWindChart || (H = e.reportData) != null && H.showWaveChart || (A = e.reportData) != null && A.showCurrentChart || (O = e.reportData) != null && O.showSstChart ? (u(), b("div", U0, [
4416
4420
  e.loading ? (u(), b("div", {
4417
4421
  key: 0,
@@ -4426,8 +4430,8 @@ function d4(i, t, e, h, c, s) {
4426
4430
  !e.loading && ((G = e.reportData) != null && G.showPrecipChart) ? (u(), b("div", q0)) : Q("", !0),
4427
4431
  !e.loading && ((F = e.reportData) != null && F.showWindChart) ? (u(), b("div", X0)) : Q("", !0),
4428
4432
  !e.loading && ((T = e.reportData) != null && T.showWindChart) ? (u(), b("div", J0)) : Q("", !0),
4429
- !e.loading && ((Y = e.reportData) != null && Y.showWaveChart) ? (u(), b("div", Q0)) : Q("", !0),
4430
- !e.loading && ((j = e.reportData) != null && j.showCurrentChart) ? (u(), b("div", K0)) : Q("", !0),
4433
+ !e.loading && ((j = e.reportData) != null && j.showWaveChart) ? (u(), b("div", Q0)) : Q("", !0),
4434
+ !e.loading && ((Y = e.reportData) != null && Y.showCurrentChart) ? (u(), b("div", K0)) : Q("", !0),
4431
4435
  !e.loading && ((C = e.reportData) != null && C.showSstChart) ? (u(), b("div", ee)) : Q("", !0)
4432
4436
  ])) : Q("", !0),
4433
4437
  a("div", te, [
@@ -4589,7 +4593,7 @@ function d4(i, t, e, h, c, s) {
4589
4593
  class: "iconfont icon",
4590
4594
  src: `data:image/svg+xml;base64,${s.getRotatedWaveArrowBase64(r.windWaveBearing, (this.theme === "dark", "#7cc7b3"))}`,
4591
4595
  style: { width: "11px", height: "11px", display: "inline-block" }
4592
- }, null, 8, Ye)) : (u(), b("span", je, "-"))
4596
+ }, null, 8, je)) : (u(), b("span", Ye, "-"))
4593
4597
  ]),
4594
4598
  a("td", Ue, l(r.windWaveHeight), 1),
4595
4599
  a("td", Ze, l(r.windWavePeriod), 1),
@@ -4712,7 +4716,7 @@ const h4 = {
4712
4716
  });
4713
4717
  },
4714
4718
  initSeasonalEchart() {
4715
- var H, A, O, R, G, F, T, Y, j, C, _, L, r, U;
4719
+ var H, A, O, R, G, F, T, j, Y, C, _, L, r, U;
4716
4720
  let i = Math.max(
4717
4721
  ...[...this.reportData.highTemp, ...this.reportData.lastYearHighTemp].filter((n) => typeof n == "number" && !isNaN(n))
4718
4722
  ), t = Math.min(...[...this.reportData.lowTemp, ...this.reportData.lastYearLowTemp].filter((n) => typeof n == "number" && !isNaN(n))), e = Math.ceil((i + 1) / 5) * 5, h = Math.floor((t - 1) / 5) * 5, c = Math.ceil((e - h) / 5), s = [
@@ -4920,7 +4924,7 @@ const h4 = {
4920
4924
  {
4921
4925
  name: this.locale === "zhHans" ? "风速" : "Wind",
4922
4926
  type: "line",
4923
- data: (Y = this.reportData) == null ? void 0 : Y.windSpeed,
4927
+ data: (j = this.reportData) == null ? void 0 : j.windSpeed,
4924
4928
  show: !0,
4925
4929
  symbol: "none",
4926
4930
  smooth: !1,
@@ -4935,7 +4939,7 @@ const h4 = {
4935
4939
  name: this.locale === "zhHans" ? "去年风速" : "Wind, last year",
4936
4940
  type: "line",
4937
4941
  symbol: "none",
4938
- data: (j = this.reportData) == null ? void 0 : j.lastYearWindSpeed,
4942
+ data: (Y = this.reportData) == null ? void 0 : Y.lastYearWindSpeed,
4939
4943
  show: (C = this.reportData) == null ? void 0 : C.compareToLastYear,
4940
4944
  itemStyle: {
4941
4945
  color: this.theme === "dark" ? "rgba(209, 242, 196, 1)" : "#9af77b"
@@ -7032,7 +7036,7 @@ const R4 = {
7032
7036
  }
7033
7037
  },
7034
7038
  handleDrawHurricaneMarker() {
7035
- var h, c, s, m, g, y, f, z, k, x, E, N, B, W, D, H, A, O, R, G, F, T, Y, j;
7039
+ var h, c, s, m, g, y, f, z, k, x, E, N, B, W, D, H, A, O, R, G, F, T, j, Y;
7036
7040
  const i = C6.interpolate(this.tropicals, 1), t = JSON.parse(JSON.stringify(i)), e = [];
7037
7041
  if (t.forEach((C) => {
7038
7042
  var _, L, r;
@@ -7054,7 +7058,7 @@ const R4 = {
7054
7058
  for (const _ of C)
7055
7059
  if (!_.properties.disabled) {
7056
7060
  let L = "#f44336";
7057
- ((m = (s = _.properties) == null ? void 0 : s.wind) == null ? void 0 : m.kts) < 32 || !((y = (g = _.properties) == null ? void 0 : g.wind) != null && y.kts) ? L = "#03f869" : ((z = (f = _.properties) == null ? void 0 : f.wind) == null ? void 0 : z.kts) >= 32 && ((x = (k = _.properties) == null ? void 0 : k.wind) == null ? void 0 : x.kts) < 47 ? L = "#f2f202" : ((N = (E = _.properties) == null ? void 0 : E.wind) == null ? void 0 : N.kts) >= 47 && ((W = (B = _.properties) == null ? void 0 : B.wind) == null ? void 0 : W.kts) < 63 ? L = "#ff9100" : ((H = (D = _.properties) == null ? void 0 : D.wind) == null ? void 0 : H.kts) >= 63 && ((O = (A = _.properties) == null ? void 0 : A.wind) == null ? void 0 : O.kts) < 79 ? L = "#f44336" : ((G = (R = _.properties) == null ? void 0 : R.wind) == null ? void 0 : G.kts) >= 79 && ((T = (F = _.properties) == null ? void 0 : F.wind) == null ? void 0 : T.kts) < 94 ? L = "#c604a4" : ((j = (Y = _.properties) == null ? void 0 : Y.wind) == null ? void 0 : j.kts) >= 94 ? L = "#6b05bb" : L = "#f44336";
7061
+ ((m = (s = _.properties) == null ? void 0 : s.wind) == null ? void 0 : m.kts) < 32 || !((y = (g = _.properties) == null ? void 0 : g.wind) != null && y.kts) ? L = "#03f869" : ((z = (f = _.properties) == null ? void 0 : f.wind) == null ? void 0 : z.kts) >= 32 && ((x = (k = _.properties) == null ? void 0 : k.wind) == null ? void 0 : x.kts) < 47 ? L = "#f2f202" : ((N = (E = _.properties) == null ? void 0 : E.wind) == null ? void 0 : N.kts) >= 47 && ((W = (B = _.properties) == null ? void 0 : B.wind) == null ? void 0 : W.kts) < 63 ? L = "#ff9100" : ((H = (D = _.properties) == null ? void 0 : D.wind) == null ? void 0 : H.kts) >= 63 && ((O = (A = _.properties) == null ? void 0 : A.wind) == null ? void 0 : O.kts) < 79 ? L = "#f44336" : ((G = (R = _.properties) == null ? void 0 : R.wind) == null ? void 0 : G.kts) >= 79 && ((T = (F = _.properties) == null ? void 0 : F.wind) == null ? void 0 : T.kts) < 94 ? L = "#c604a4" : ((Y = (j = _.properties) == null ? void 0 : j.wind) == null ? void 0 : Y.kts) >= 94 ? L = "#6b05bb" : L = "#f44336";
7058
7062
  const r = `<svg t="1719918955501"
7059
7063
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
7060
7064
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -7082,7 +7086,7 @@ function G4(i, t, e, h, c, s) {
7082
7086
  return null;
7083
7087
  }
7084
7088
  const $4 = /* @__PURE__ */ N1(R4, [["render", G4]]);
7085
- const Y4 = {
7089
+ const j4 = {
7086
7090
  name: "TropicalMapbox",
7087
7091
  props: {
7088
7092
  token: {
@@ -8686,10 +8690,10 @@ const Y4 = {
8686
8690
  });
8687
8691
  }
8688
8692
  }
8689
- }, j4 = { class: "map-box" };
8693
+ }, Y4 = { class: "map-box" };
8690
8694
  function U4(i, t, e, h, c, s) {
8691
8695
  const m = r2("TropicalGL"), g = r2("LatLngGL");
8692
- return u(), b("div", j4, [
8696
+ return u(), b("div", Y4, [
8693
8697
  c.map ? (u(), S2(m, {
8694
8698
  key: 0,
8695
8699
  class: "hurricane",
@@ -8707,7 +8711,7 @@ function U4(i, t, e, h, c, s) {
8707
8711
  }, null, 8, ["map"])) : Q("", !0)
8708
8712
  ]);
8709
8713
  }
8710
- const Z4 = /* @__PURE__ */ N1(Y4, [["render", U4]]), q4 = {
8714
+ const Z4 = /* @__PURE__ */ N1(j4, [["render", U4]]), q4 = {
8711
8715
  props: {
8712
8716
  id: {
8713
8717
  type: String,
@@ -9132,7 +9136,7 @@ const K4 = {
9132
9136
  ];
9133
9137
  },
9134
9138
  async interpolatedRecord(i, t, e = 3) {
9135
- var g, y, f, z, k, x, E, N, B, W, D, H, A, O, R, G, F, T, Y, j, C, _, L, r, U, n, K, X;
9139
+ var g, y, f, z, k, x, E, N, B, W, D, H, A, O, R, G, F, T, j, Y, C, _, L, r, U, n, K, X;
9136
9140
  const h = M(i).set({ second: 0 }).utc();
9137
9141
  let c = e - (h.get("hour") * 60 + h.get("minute")) % (e * 60) / 60, s;
9138
9142
  const m = {};
@@ -9148,7 +9152,7 @@ const K4 = {
9148
9152
  },
9149
9153
  pressure: this.computeInterpolateValue((R = t[s.prev]) == null ? void 0 : R.pressure, (G = t[s.next]) == null ? void 0 : G.pressure, Z),
9150
9154
  wind: {
9151
- kts: this.computeInterpolateValue((T = (F = t[s.prev]) == null ? void 0 : F.wind) == null ? void 0 : T.kts, (j = (Y = t[s.next]) == null ? void 0 : Y.wind) == null ? void 0 : j.kts, Z),
9155
+ kts: this.computeInterpolateValue((T = (F = t[s.prev]) == null ? void 0 : F.wind) == null ? void 0 : T.kts, (Y = (j = t[s.next]) == null ? void 0 : j.wind) == null ? void 0 : Y.kts, Z),
9152
9156
  lat: this.computeInterpolateValue((_ = (C = t[s.prev]) == null ? void 0 : C.wind) == null ? void 0 : _.lat, (r = (L = t[s.next]) == null ? void 0 : L.wind) == null ? void 0 : r.lat, Z),
9153
9157
  lng: this.computeInterpolateValue((n = (U = t[s.prev]) == null ? void 0 : U.wind) == null ? void 0 : n.lng, (X = (K = t[s.next]) == null ? void 0 : K.wind) == null ? void 0 : X.lng, Z)
9154
9158
  }
@@ -9246,13 +9250,13 @@ function wt(i, t, e, h, c, s) {
9246
9250
  ], -1)),
9247
9251
  a("tbody", null, [
9248
9252
  (u(!0), b(B2, null, T2((G = c.activeForecast) == null ? void 0 : G.sample, (F, T) => {
9249
- var Y, j, C, _, L;
9253
+ var j, Y, C, _, L;
9250
9254
  return u(), b("tr", { key: T }, [
9251
9255
  a("td", null, l(F.date), 1),
9252
9256
  a("td", null, l(s.computedLngLat(F.lat, F.lng)), 1),
9253
9257
  a("td", null, l(s.computePrecision(F.pressure ?? "-")), 1),
9254
- a("td", null, l(s.computePrecision(((Y = F == null ? void 0 : F.wind) == null ? void 0 : Y.kts) ?? "-")), 1),
9255
- a("td", null, l(`${s.computePrecision(((j = F == null ? void 0 : F.wind) == null ? void 0 : j.r7) || "-")} / ${s.computePrecision(((C = F == null ? void 0 : F.wind) == null ? void 0 : C.r10) || "-")} nm`), 1),
9258
+ a("td", null, l(s.computePrecision(((j = F == null ? void 0 : F.wind) == null ? void 0 : j.kts) ?? "-")), 1),
9259
+ a("td", null, l(`${s.computePrecision(((Y = F == null ? void 0 : F.wind) == null ? void 0 : Y.r7) || "-")} / ${s.computePrecision(((C = F == null ? void 0 : F.wind) == null ? void 0 : C.r10) || "-")} nm`), 1),
9256
9260
  a("td", null, l(s.computePrecision(((_ = F == null ? void 0 : F.movement) == null ? void 0 : _.deg) ?? "-")), 1),
9257
9261
  a("td", null, l(s.computePrecision(((L = F == null ? void 0 : F.movement) == null ? void 0 : L.kts) ?? "-")), 1)
9258
9262
  ]);