@idmui/spot 1.0.8 → 1.1.0

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.
@@ -1,5 +1,5 @@
1
1
  import te from "moment";
2
- import le from "moment-timezone";
2
+ import ce from "moment-timezone";
3
3
  import { ArrowRightBold as Qd, Calendar as bd, Download as Fd, Search as Id } from "@element-plus/icons-vue";
4
4
  import { LngLatHelper as Wi } from "@idm-plugin/geo";
5
5
  import { openBlock as IA, createElementBlock as EA, createElementVNode as I, toDisplayString as OA, markRaw as xd, resolveComponent as sr, createVNode as zt, withCtx as Er, Fragment as ke, renderList as Te, createBlock as Ss, normalizeClass as Le, createTextVNode as _A, createCommentVNode as Ur, withDirectives as ql, vShow as Xl, createStaticVNode as Ed } from "vue";
@@ -861,6 +861,7 @@ class or {
861
861
  */
862
862
  static autoPickMeteoModel(A = "best_match") {
863
863
  var e, r;
864
+ A = A == null ? void 0 : A.toLowerCase(), A = A === "ec" ? "ecmwf" : A;
864
865
  const n = A.toLowerCase().split(","), i = [], a = [];
865
866
  for (const o of n) {
866
867
  let c = Ms.find((d) => {
@@ -1066,7 +1067,8 @@ class or {
1066
1067
  degree: (oA = HA.swell_wave_direction_dominant) == null ? void 0 : oA.at(wA),
1067
1068
  period: (CA = HA.swell_wave_period_max) == null ? void 0 : CA.at(wA),
1068
1069
  peakPeriod: (b = HA.swell_wave_peak_period_max) == null ? void 0 : b.at(wA),
1069
- bearing: ((M = HA.swell_wave_direction_dominant) == null ? void 0 : M.at(wA)) !== null ? (((P = HA.swell_wave_direction_dominant) == null ? void 0 : P.at(wA)) + 180) % 360 : null
1070
+ // bearing: daily.swell_wave_direction_dominant?.at(day) !== null ? (daily.swell_wave_direction_dominant?.at(day) + 180) % 360 : null,
1071
+ bearing: ((M = HA.swell_wave_direction_dominant) == null ? void 0 : M.at(wA)) !== null ? ((P = HA.swell_wave_direction_dominant) == null ? void 0 : P.at(wA)) % 360 : null
1070
1072
  },
1071
1073
  wd: {
1072
1074
  height: (N = HA.wind_wave_height_max) == null ? void 0 : N.at(wA),
@@ -1084,16 +1086,16 @@ class or {
1084
1086
  }
1085
1087
  static parseWave(A, e) {
1086
1088
  if (A.sig.direction = this.degree2Direction(A.sig.degree), A.swell.direction = this.degree2Direction(A.swell.degree), A.wd.direction = this.degree2Direction(A.wd.degree), A.sig.scale = this.douglas(A.sig.height), A.swell.scale = this.douglas(A.swell.height), A.wd.scale = this.douglas(A.wd.height), A.sig.height === 0) {
1087
- const r = Math.sqrt(Math.pow(A.swell.height || 0, 2) + Math.pow(A.wd.height || 0, 2)), n = 0.28 * Math.pow(this.kts2ms((e == null ? void 0 : e.kts) || 0), 2) / 9.80665;
1088
- A.sig.height = Math.round(Math.max(r, n) * 100) / 100;
1089
+ const r = Math.sqrt(Math.pow(A.swell.height || 0, 2) + Math.pow(A.wd.height || 0, 2));
1090
+ A.sig.height = Math.round(r * 100) / 100;
1089
1091
  }
1090
1092
  if (A.swell.height === 0) {
1091
- const r = Math.sqrt(Math.abs(Math.pow(A.sig.height || 0, 2) - Math.pow(A.wd.height || 0, 2))), n = 0.28 * Math.pow(this.kts2ms((e == null ? void 0 : e.kts) || 0), 2) / 9.80665;
1092
- A.swell.height = Math.round((Math.min(r, n) || n) * 100) / 100;
1093
+ const r = Math.sqrt(Math.abs(Math.pow(A.sig.height || 0, 2) - Math.pow(A.wd.height || 0, 2))), n = 0.28 * Math.pow(this.kts2ms((e == null ? void 0 : e.kts) || 0), 2) / 48.0665;
1094
+ A.swell.height = Math.round(Math.min(r, n) * 100) / 100;
1093
1095
  }
1094
1096
  if (A.wd.height === 0 || A.wd.height > A.sig.height) {
1095
- const r = Math.sqrt(Math.abs(Math.pow(A.sig.height || 0, 2) - Math.pow(A.swell.height || 0, 2))), n = 0.28 * Math.pow(this.kts2ms((e == null ? void 0 : e.kts) || 0), 2) / 9.80665;
1096
- A.wd.height = Math.round((Math.min(r, n) || n) * 100) / 100;
1097
+ const r = Math.sqrt(Math.abs(Math.pow(A.sig.height || 0, 2) - Math.pow(A.swell.height || 0, 2))), n = 0.28 * Math.pow(this.kts2ms((e == null ? void 0 : e.kts) || 0), 2) / 48.0665;
1098
+ A.wd.height = Math.round(Math.min(r, n) * 100) / 100;
1097
1099
  }
1098
1100
  return A.swell.height > A.sig.height && (A.swell.height = Math.round(A.sig.height * 0.76 * 100) / 100), A.sig.period || (A.sig.period = Math.round(5 * Math.sqrt(A.sig.height))), A.swell.period || (A.swell.period = Math.round(5 * Math.sqrt(A.swell.height))), A.wd.period || (A.wd.period = Math.round(5 * Math.sqrt(A.wd.height))), A;
1099
1101
  }
@@ -12021,15 +12023,15 @@ function cg(t) {
12021
12023
  mA = O[fA], 0 < O[fA] && (pA[aA[mA]++] = fA);
12022
12024
  if (aA[15] == 1)
12023
12025
  return (O = new F()).g = 0, O.value = pA[0], cA(E, TA, 1, FA, O), FA;
12024
- var SA, KA = -1, kA = FA - 1, $A = 0, XA = 1, ce = 1, VA = 1 << H;
12026
+ var SA, KA = -1, kA = FA - 1, $A = 0, XA = 1, le = 1, VA = 1 << H;
12025
12027
  for (fA = 0, mA = 1, rA = 2; mA <= H; ++mA, rA <<= 1) {
12026
- if (XA += ce <<= 1, 0 > (ce -= nA[mA]))
12028
+ if (XA += le <<= 1, 0 > (le -= nA[mA]))
12027
12029
  return 0;
12028
12030
  for (; 0 < nA[mA]; --nA[mA])
12029
12031
  (O = new F()).g = mA, O.value = pA[fA++], cA(E, TA + $A, rA, VA, O), $A = Y($A, mA);
12030
12032
  }
12031
12033
  for (mA = H + 1, rA = 2; 15 >= mA; ++mA, rA <<= 1) {
12032
- if (XA += ce <<= 1, 0 > (ce -= nA[mA]))
12034
+ if (XA += le <<= 1, 0 > (le -= nA[mA]))
12033
12035
  return 0;
12034
12036
  for (; 0 < nA[mA]; --nA[mA]) {
12035
12037
  if (O = new F(), ($A & kA) != KA) {
@@ -12358,8 +12360,8 @@ function cg(t) {
12358
12360
  case 0:
12359
12361
  var FA = rA, nA = pA, aA = H, SA = D, KA = (VA = O).Ea;
12360
12362
  FA == 0 && (Ul(mA, fA, null, null, 1, aA, SA), ee(mA, fA + 1, 0, 0, KA - 1, aA, SA + 1), fA += KA, SA += KA, ++FA);
12361
- for (var kA = 1 << VA.b, $A = kA - 1, XA = lA(KA, VA.b), ce = VA.K, VA = VA.w + (FA >> VA.b) * XA; FA < nA; ) {
12362
- var Ee = ce, He = VA, xe = 1;
12363
+ for (var kA = 1 << VA.b, $A = kA - 1, XA = lA(KA, VA.b), le = VA.K, VA = VA.w + (FA >> VA.b) * XA; FA < nA; ) {
12364
+ var Ee = le, He = VA, xe = 1;
12363
12365
  for (Qs(mA, fA, aA, SA - KA, 1, aA, SA); xe < KA; ) {
12364
12366
  var Ce = (xe & ~$A) + kA;
12365
12367
  Ce > KA && (Ce = KA), (0, fn[Ee[He++] >> 8 & 15])(mA, fA + +xe, aA, SA + xe - KA, Ce - xe, aA, SA + xe), xe = Ce;
@@ -12370,9 +12372,9 @@ function cg(t) {
12370
12372
  break;
12371
12373
  case 1:
12372
12374
  for (TA = mA, nA = fA, KA = (mA = O.Ea) - (SA = mA & ~(aA = (fA = 1 << O.b) - 1)), FA = lA(mA, O.b), kA = O.K, O = O.w + (rA >> O.b) * FA; rA < pA; ) {
12373
- for ($A = kA, XA = O, ce = new eA(), VA = nA + SA, Ee = nA + mA; nA < VA; )
12374
- UA($A[XA++], ce), zn(ce, TA, nA, fA, H, D), nA += fA, D += fA;
12375
- nA < Ee && (UA($A[XA++], ce), zn(ce, TA, nA, KA, H, D), nA += KA, D += KA), ++rA & aA || (O += FA);
12375
+ for ($A = kA, XA = O, le = new eA(), VA = nA + SA, Ee = nA + mA; nA < VA; )
12376
+ UA($A[XA++], le), zn(le, TA, nA, fA, H, D), nA += fA, D += fA;
12377
+ nA < Ee && (UA($A[XA++], le), zn(le, TA, nA, KA, H, D), nA += KA, D += KA), ++rA & aA || (O += FA);
12376
12378
  }
12377
12379
  break;
12378
12380
  case 3:
@@ -12493,8 +12495,8 @@ function cg(t) {
12493
12495
  if (H & aA || (SA = Ge(rA, H, D)), A(SA != null), SA.Qb && (l[pA] = SA.qb, KA = !0), !KA)
12494
12496
  if (z(O), SA.jc) {
12495
12497
  kA = O, $A = l;
12496
- var XA = pA, ce = SA.pd[M(kA) & Ft - 1];
12497
- A(SA.jc), 256 > ce.g ? (N(kA, kA.u + ce.g), $A[XA] = ce.value, kA = 0) : (N(kA, kA.u + ce.g - 256), A(256 <= ce.value), kA = ce.value), kA == 0 && (KA = !0);
12498
+ var XA = pA, le = SA.pd[M(kA) & Ft - 1];
12499
+ A(SA.jc), 256 > le.g ? (N(kA, kA.u + le.g), $A[XA] = le.value, kA = 0) : (N(kA, kA.u + le.g - 256), A(256 <= le.value), kA = le.value), kA == 0 && (KA = !0);
12498
12500
  } else
12499
12501
  kA = ht(SA.G[0], SA.H[0], O);
12500
12502
  if (O.h)
@@ -12570,12 +12572,12 @@ function cg(t) {
12570
12572
  case 3:
12571
12573
  var KA, kA = oA(nA, 8) + 1, $A = 16 < kA ? 0 : 4 < kA ? 1 : 2 < kA ? 2 : 3;
12572
12574
  if (mA[0] = lA(aA.Ea, $A), aA.b = $A, KA = FA = Tr(kA, 1, 0, TA, aA.K)) {
12573
- var XA, ce = kA, VA = aA, Ee = 1 << (8 >> VA.b), He = i(Ee);
12575
+ var XA, le = kA, VA = aA, Ee = 1 << (8 >> VA.b), He = i(Ee);
12574
12576
  if (He == null)
12575
12577
  KA = 0;
12576
12578
  else {
12577
12579
  var xe = VA.K[0], Ce = VA.w;
12578
- for (He[0] = VA.K[0][0], XA = 1; XA < 1 * ce; ++XA)
12580
+ for (He[0] = VA.K[0][0], XA = 1; XA < 1 * le; ++XA)
12579
12581
  He[XA] = wA(xe[Ce + XA], He[XA - 1]);
12580
12582
  for (; XA < 4 * Ee; ++XA)
12581
12583
  He[XA] = 0;
@@ -12986,21 +12988,21 @@ function cg(t) {
12986
12988
  for (fA.M = 0; fA.M < fA.Va; ++fA.M) {
12987
12989
  var FA, nA = fA.Jc[fA.M & fA.Xb], aA = fA.m, SA = fA;
12988
12990
  for (FA = 0; FA < SA.za; ++FA) {
12989
- var KA = aA, kA = SA, $A = kA.Ac, XA = kA.Bc + 4 * FA, ce = kA.zc, VA = kA.ya[kA.aa + FA];
12991
+ var KA = aA, kA = SA, $A = kA.Ac, XA = kA.Bc + 4 * FA, le = kA.zc, VA = kA.ya[kA.aa + FA];
12990
12992
  if (kA.Qa.Bb ? VA.$b = gA(KA, kA.Pa.jb[0]) ? 2 + gA(KA, kA.Pa.jb[2]) : gA(KA, kA.Pa.jb[1]) : VA.$b = 0, kA.kc && (VA.Ad = gA(KA, kA.Bd)), VA.Za = !gA(KA, 145) + 0, VA.Za) {
12991
12993
  var Ee = VA.Ob, He = 0;
12992
12994
  for (kA = 0; 4 > kA; ++kA) {
12993
- var xe, Ce = ce[0 + kA];
12995
+ var xe, Ce = le[0 + kA];
12994
12996
  for (xe = 0; 4 > xe; ++xe) {
12995
12997
  Ce = Vf[$A[XA + xe]][Ce];
12996
12998
  for (var Ke = yh[gA(KA, Ce[0])]; 0 < Ke; )
12997
12999
  Ke = yh[2 * Ke + gA(KA, Ce[Ke])];
12998
13000
  Ce = -Ke, $A[XA + xe] = Ce;
12999
13001
  }
13000
- r(Ee, He, $A, XA, 4), He += 4, ce[0 + kA] = Ce;
13002
+ r(Ee, He, $A, XA, 4), He += 4, le[0 + kA] = Ce;
13001
13003
  }
13002
13004
  } else
13003
- Ce = gA(KA, 156) ? gA(KA, 128) ? 1 : 3 : gA(KA, 163) ? 2 : 0, VA.Ob[0] = Ce, n($A, XA, Ce, 4), n(ce, 0, Ce, 4);
13005
+ Ce = gA(KA, 156) ? gA(KA, 128) ? 1 : 3 : gA(KA, 163) ? 2 : 0, VA.Ob[0] = Ce, n($A, XA, Ce, 4), n(le, 0, Ce, 4);
13004
13006
  VA.Dd = gA(KA, 142) ? gA(KA, 114) ? gA(KA, 183) ? 1 : 3 : 2 : 0;
13005
13007
  }
13006
13008
  if (SA.m.Ka)
@@ -13010,7 +13012,7 @@ function cg(t) {
13010
13012
  KA.la = $A.la = 0, FA.Za || (KA.Na = $A.Na = 0), FA.Hc = 0, FA.Gc = 0, FA.ia = 0;
13011
13013
  else {
13012
13014
  var Pe, pe;
13013
- if (KA = $A, $A = SA, XA = aA.Pa.Xc, ce = aA.ya[aA.aa + aA.ja], VA = aA.pb[ce.$b], kA = ce.ad, Ee = 0, He = aA.rb[aA.sb - 1], Ce = xe = 0, n(kA, Ee, 0, 384), ce.Za)
13015
+ if (KA = $A, $A = SA, XA = aA.Pa.Xc, le = aA.ya[aA.aa + aA.ja], VA = aA.pb[le.$b], kA = le.ad, Ee = 0, He = aA.rb[aA.sb - 1], Ce = xe = 0, n(kA, Ee, 0, 384), le.Za)
13014
13016
  var gt = 0, Jt = XA[3];
13015
13017
  else {
13016
13018
  Ke = i(16);
@@ -13039,14 +13041,14 @@ function cg(t) {
13039
13041
  }
13040
13042
  Ce |= pe << 4 * Pe, Jt |= Ne << 4 << Pe, gt |= (240 & nr) << Pe;
13041
13043
  }
13042
- KA.la = Jt, He.la = gt, ce.Hc = xe, ce.Gc = Ce, ce.ia = 43690 & Ce ? 0 : VA.ia, XA = !(xe | Ce);
13044
+ KA.la = Jt, He.la = gt, le.Hc = xe, le.Gc = Ce, le.ia = 43690 & Ce ? 0 : VA.ia, XA = !(xe | Ce);
13043
13045
  }
13044
13046
  if (0 < aA.L && (aA.wa[aA.Y + aA.ja] = aA.gd[FA.$b][FA.Za], aA.wa[aA.Y + aA.ja].La |= !XA), SA.Ka)
13045
13047
  return rt(fA, 7, "Premature end-of-file encountered.");
13046
13048
  }
13047
13049
  if (is(fA), aA = TA, SA = 1, FA = (nA = fA).D, KA = 0 < nA.L && nA.M >= nA.zb && nA.M <= nA.Va, nA.Aa == 0)
13048
13050
  A: {
13049
- if (FA.M = nA.M, FA.uc = KA, ms(nA, FA), SA = 1, FA = (pe = nA.D).Nb, KA = (Ce = Ra[nA.L]) * nA.R, $A = Ce / 2 * nA.B, Ke = 16 * FA * nA.R, Zt = 8 * FA * nA.B, XA = nA.sa, ce = nA.ta - KA + Ke, VA = nA.qa, kA = nA.ra - $A + Zt, Ee = nA.Ha, He = nA.Ia - $A + Zt, nr = (Ne = pe.M) == 0, xe = Ne >= nA.Va - 1, nA.Aa == 2 && ms(nA, pe), pe.uc)
13051
+ if (FA.M = nA.M, FA.uc = KA, ms(nA, FA), SA = 1, FA = (pe = nA.D).Nb, KA = (Ce = Ra[nA.L]) * nA.R, $A = Ce / 2 * nA.B, Ke = 16 * FA * nA.R, Zt = 8 * FA * nA.B, XA = nA.sa, le = nA.ta - KA + Ke, VA = nA.qa, kA = nA.ra - $A + Zt, Ee = nA.Ha, He = nA.Ia - $A + Zt, nr = (Ne = pe.M) == 0, xe = Ne >= nA.Va - 1, nA.Aa == 2 && ms(nA, pe), pe.uc)
13050
13052
  for (ir = (ft = nA).D.M, A(ft.D.uc), pe = ft.yb; pe < ft.Hb; ++pe) {
13051
13053
  gt = pe, Jt = ir;
13052
13054
  var vt = (It = ($e = ft).D).Nb;
@@ -13061,13 +13063,13 @@ function cg(t) {
13061
13063
  }
13062
13064
  }
13063
13065
  if (nA.ia && alert("todo:DitherRow"), aA.put != null) {
13064
- if (pe = 16 * Ne, Ne = 16 * (Ne + 1), nr ? (aA.y = nA.sa, aA.O = nA.ta + Ke, aA.f = nA.qa, aA.N = nA.ra + Zt, aA.ea = nA.Ha, aA.W = nA.Ia + Zt) : (pe -= Ce, aA.y = XA, aA.O = ce, aA.f = VA, aA.N = kA, aA.ea = Ee, aA.W = He), xe || (Ne -= Ce), Ne > aA.o && (Ne = aA.o), aA.F = null, aA.J = null, nA.Fa != null && 0 < nA.Fa.length && pe < Ne && (aA.J = Bs(nA, aA, pe, Ne - pe), aA.F = nA.mb, aA.F == null && aA.F.length == 0)) {
13066
+ if (pe = 16 * Ne, Ne = 16 * (Ne + 1), nr ? (aA.y = nA.sa, aA.O = nA.ta + Ke, aA.f = nA.qa, aA.N = nA.ra + Zt, aA.ea = nA.Ha, aA.W = nA.Ia + Zt) : (pe -= Ce, aA.y = XA, aA.O = le, aA.f = VA, aA.N = kA, aA.ea = Ee, aA.W = He), xe || (Ne -= Ce), Ne > aA.o && (Ne = aA.o), aA.F = null, aA.J = null, nA.Fa != null && 0 < nA.Fa.length && pe < Ne && (aA.J = Bs(nA, aA, pe, Ne - pe), aA.F = nA.mb, aA.F == null && aA.F.length == 0)) {
13065
13067
  SA = rt(nA, 3, "Could not decode alpha data.");
13066
13068
  break A;
13067
13069
  }
13068
13070
  pe < aA.j && (Ce = aA.j - pe, pe = aA.j, A(!(1 & Ce)), aA.O += nA.R * Ce, aA.N += nA.B * (Ce >> 1), aA.W += nA.B * (Ce >> 1), aA.F != null && (aA.J += aA.width * Ce)), pe < Ne && (aA.O += aA.v, aA.N += aA.v >> 1, aA.W += aA.v >> 1, aA.F != null && (aA.J += aA.v), aA.ka = pe - aA.j, aA.U = aA.va - aA.v, aA.T = Ne - pe, SA = aA.put(aA));
13069
13071
  }
13070
- FA + 1 != nA.Ic || xe || (r(nA.sa, nA.ta - KA, XA, ce + 16 * nA.R, KA), r(nA.qa, nA.ra - $A, VA, kA + 8 * nA.B, $A), r(nA.Ha, nA.Ia - $A, Ee, He + 8 * nA.B, $A));
13072
+ FA + 1 != nA.Ic || xe || (r(nA.sa, nA.ta - KA, XA, le + 16 * nA.R, KA), r(nA.qa, nA.ra - $A, VA, kA + 8 * nA.B, $A), r(nA.Ha, nA.Ia - $A, Ee, He + 8 * nA.B, $A));
13071
13073
  }
13072
13074
  if (!SA)
13073
13075
  return rt(fA, 6, "Output aborted.");
@@ -13522,14 +13524,14 @@ function cg(t) {
13522
13524
  }
13523
13525
  function xA(s, l, g) {
13524
13526
  T[s] = function(p, C, x, E, D, H, O, rA, pA, mA, fA, TA, FA, nA, aA, SA, KA) {
13525
- var kA, $A = KA - 1 >> 1, XA = D[H + 0] | O[rA + 0] << 16, ce = pA[mA + 0] | fA[TA + 0] << 16;
13527
+ var kA, $A = KA - 1 >> 1, XA = D[H + 0] | O[rA + 0] << 16, le = pA[mA + 0] | fA[TA + 0] << 16;
13526
13528
  A(p != null);
13527
- var VA = 3 * XA + ce + 131074 >> 2;
13528
- for (l(p[C + 0], 255 & VA, VA >> 16, FA, nA), x != null && (VA = 3 * ce + XA + 131074 >> 2, l(x[E + 0], 255 & VA, VA >> 16, aA, SA)), kA = 1; kA <= $A; ++kA) {
13529
- var Ee = D[H + kA] | O[rA + kA] << 16, He = pA[mA + kA] | fA[TA + kA] << 16, xe = XA + Ee + ce + He + 524296, Ce = xe + 2 * (Ee + ce) >> 3;
13530
- VA = Ce + XA >> 1, XA = (xe = xe + 2 * (XA + He) >> 3) + Ee >> 1, l(p[C + 2 * kA - 1], 255 & VA, VA >> 16, FA, nA + (2 * kA - 1) * g), l(p[C + 2 * kA - 0], 255 & XA, XA >> 16, FA, nA + (2 * kA - 0) * g), x != null && (VA = xe + ce >> 1, XA = Ce + He >> 1, l(x[E + 2 * kA - 1], 255 & VA, VA >> 16, aA, SA + (2 * kA - 1) * g), l(x[E + 2 * kA + 0], 255 & XA, XA >> 16, aA, SA + (2 * kA + 0) * g)), XA = Ee, ce = He;
13529
+ var VA = 3 * XA + le + 131074 >> 2;
13530
+ for (l(p[C + 0], 255 & VA, VA >> 16, FA, nA), x != null && (VA = 3 * le + XA + 131074 >> 2, l(x[E + 0], 255 & VA, VA >> 16, aA, SA)), kA = 1; kA <= $A; ++kA) {
13531
+ var Ee = D[H + kA] | O[rA + kA] << 16, He = pA[mA + kA] | fA[TA + kA] << 16, xe = XA + Ee + le + He + 524296, Ce = xe + 2 * (Ee + le) >> 3;
13532
+ VA = Ce + XA >> 1, XA = (xe = xe + 2 * (XA + He) >> 3) + Ee >> 1, l(p[C + 2 * kA - 1], 255 & VA, VA >> 16, FA, nA + (2 * kA - 1) * g), l(p[C + 2 * kA - 0], 255 & XA, XA >> 16, FA, nA + (2 * kA - 0) * g), x != null && (VA = xe + le >> 1, XA = Ce + He >> 1, l(x[E + 2 * kA - 1], 255 & VA, VA >> 16, aA, SA + (2 * kA - 1) * g), l(x[E + 2 * kA + 0], 255 & XA, XA >> 16, aA, SA + (2 * kA + 0) * g)), XA = Ee, le = He;
13531
13533
  }
13532
- 1 & KA || (VA = 3 * XA + ce + 131074 >> 2, l(p[C + KA - 1], 255 & VA, VA >> 16, FA, nA + (KA - 1) * g), x != null && (VA = 3 * ce + XA + 131074 >> 2, l(x[E + KA - 1], 255 & VA, VA >> 16, aA, SA + (KA - 1) * g)));
13534
+ 1 & KA || (VA = 3 * XA + le + 131074 >> 2, l(p[C + KA - 1], 255 & VA, VA >> 16, FA, nA + (KA - 1) * g), x != null && (VA = 3 * le + XA + 131074 >> 2, l(x[E + KA - 1], 255 & VA, VA >> 16, aA, SA + (KA - 1) * g)));
13533
13535
  };
13534
13536
  }
13535
13537
  function GA() {
@@ -13669,12 +13671,12 @@ function cg(t) {
13669
13671
  nA = 7;
13670
13672
  break A;
13671
13673
  }
13672
- var XA = DA(SA, FA[0] + 8), ce = 1 + LA(SA, FA[0] + 12);
13673
- if (2147483648 <= ce * (SA = 1 + LA(SA, FA[0] + 15))) {
13674
+ var XA = DA(SA, FA[0] + 8), le = 1 + LA(SA, FA[0] + 12);
13675
+ if (2147483648 <= le * (SA = 1 + LA(SA, FA[0] + 15))) {
13674
13676
  nA = 3;
13675
13677
  break A;
13676
13678
  }
13677
- $A != null && ($A[0] = XA), KA != null && (KA[0] = ce), kA != null && (kA[0] = SA), FA[0] += 18, nA[0] -= 18, VA[0] = 1;
13679
+ $A != null && ($A[0] = XA), KA != null && (KA[0] = le), kA != null && (kA[0] = SA), FA[0] += 18, nA[0] -= 18, VA[0] = 1;
13678
13680
  }
13679
13681
  nA = 0;
13680
13682
  }
@@ -13696,7 +13698,7 @@ function cg(t) {
13696
13698
  A: {
13697
13699
  XA = s, nA = l, aA = g;
13698
13700
  var VA = fA.gb;
13699
- KA = fA.na, kA = fA.P, $A = fA.Sa, ce = 22, A(XA != null), A(aA != null), SA = nA[0];
13701
+ KA = fA.na, kA = fA.P, $A = fA.Sa, le = 22, A(XA != null), A(aA != null), SA = nA[0];
13700
13702
  var Ee = aA[0];
13701
13703
  for (A(KA != null), A($A != null), KA[0] = null, kA[0] = null, $A[0] = 0; ; ) {
13702
13704
  if (nA[0] = SA, aA[0] = Ee, 8 > Ee) {
@@ -13709,7 +13711,7 @@ function cg(t) {
13709
13711
  break A;
13710
13712
  }
13711
13713
  var xe = 8 + He + 1 & -2;
13712
- if (ce += xe, 0 < VA && ce > VA) {
13714
+ if (le += xe, 0 < VA && le > VA) {
13713
13715
  nA = 3;
13714
13716
  break A;
13715
13717
  }
@@ -13729,10 +13731,10 @@ function cg(t) {
13729
13731
  }
13730
13732
  g = [g], fA.Ja = [fA.Ja], fA.xa = [fA.xa];
13731
13733
  A:
13732
- if (VA = s, nA = l, aA = g, KA = fA.gb[0], kA = fA.Ja, $A = fA.xa, XA = nA[0], SA = !e(VA, XA, "VP8 "), ce = !e(VA, XA, "VP8L"), A(VA != null), A(aA != null), A(kA != null), A($A != null), 8 > aA[0])
13734
+ if (VA = s, nA = l, aA = g, KA = fA.gb[0], kA = fA.Ja, $A = fA.xa, XA = nA[0], SA = !e(VA, XA, "VP8 "), le = !e(VA, XA, "VP8L"), A(VA != null), A(aA != null), A(kA != null), A($A != null), 8 > aA[0])
13733
13735
  nA = 7;
13734
13736
  else {
13735
- if (SA || ce) {
13737
+ if (SA || le) {
13736
13738
  if (VA = DA(VA, XA + 4), 12 <= KA && VA > KA - 12) {
13737
13739
  nA = 3;
13738
13740
  break A;
@@ -13741,7 +13743,7 @@ function cg(t) {
13741
13743
  nA = 7;
13742
13744
  break A;
13743
13745
  }
13744
- kA[0] = VA, nA[0] += 8, aA[0] -= 8, $A[0] = ce;
13746
+ kA[0] = VA, nA[0] += 8, aA[0] -= 8, $A[0] = le;
13745
13747
  } else
13746
13748
  $A[0] = 5 <= aA[0] && VA[XA + 0] == 47 && !(VA[XA + 4] >> 5), kA[0] = aA[0];
13747
13749
  nA = 0;
@@ -14463,7 +14465,7 @@ function(t) {
14463
14465
  */
14464
14466
  function(t) {
14465
14467
  function A() {
14466
- return (ue.canvg ? Promise.resolve(ue.canvg) : import("./index.es-bfb798c8.js")).catch(function(e) {
14468
+ return (ue.canvg ? Promise.resolve(ue.canvg) : import("./index.es-b4042971.js")).catch(function(e) {
14467
14469
  return Promise.reject(new Error("Could not load canvg: " + e));
14468
14470
  }).then(function(e) {
14469
14471
  return e.default ? e.default : e;
@@ -15435,7 +15437,7 @@ const gm = {
15435
15437
  computeHourLT() {
15436
15438
  return function(t) {
15437
15439
  if (t) {
15438
- const A = le(t).tz(this.positionGmt);
15440
+ const A = ce(t).tz(this.positionGmt);
15439
15441
  return `${A == null ? void 0 : A.format("HH")}`;
15440
15442
  }
15441
15443
  return "-";
@@ -15453,7 +15455,7 @@ const gm = {
15453
15455
  computeWeekLT() {
15454
15456
  return function(t) {
15455
15457
  if (t) {
15456
- const A = le(t).tz(this.positionGmt);
15458
+ const A = ce(t).tz(this.positionGmt);
15457
15459
  return `${A == null ? void 0 : A.format("dddd")}`;
15458
15460
  }
15459
15461
  return "-";
@@ -15462,7 +15464,7 @@ const gm = {
15462
15464
  computeMMMDDLT() {
15463
15465
  return function(t) {
15464
15466
  if (t) {
15465
- const A = le(t).tz(this.positionGmt);
15467
+ const A = ce(t).tz(this.positionGmt);
15466
15468
  return `${A == null ? void 0 : A.format("MMM-DD")}`;
15467
15469
  }
15468
15470
  return "-";
@@ -15471,7 +15473,7 @@ const gm = {
15471
15473
  computeMMMDDHHmmLT() {
15472
15474
  return function(t) {
15473
15475
  if (t) {
15474
- const A = le(t).tz(this.positionGmt);
15476
+ const A = ce(t).tz(this.positionGmt);
15475
15477
  return `${A == null ? void 0 : A.format("MMM-DD/HHmm")}`;
15476
15478
  }
15477
15479
  return "-";
@@ -15480,7 +15482,7 @@ const gm = {
15480
15482
  computeMMMDDyyyyLT() {
15481
15483
  return function(t) {
15482
15484
  if (t) {
15483
- const A = le(t).tz(this.positionGmt);
15485
+ const A = ce(t).tz(this.positionGmt);
15484
15486
  return `${A == null ? void 0 : A.format("MMM-DD, yyyy")}`;
15485
15487
  }
15486
15488
  return "-";
@@ -15663,7 +15665,7 @@ const gm = {
15663
15665
  if (this.meteoData = void 0, !this.token)
15664
15666
  return !1;
15665
15667
  this.loading.meteogramEchart = !0, this.loading.hourlyTable = !0;
15666
- const { weatherModels: A, marineModels: e } = or.autoPickMeteoModel(this.forecastModel), r = le(this.dateRangeZ[0] || this.etime).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0 }).format(), n = {
15668
+ const { weatherModels: A, marineModels: e } = or.autoPickMeteoModel(this.forecastModel), r = ce(this.dateRangeZ[0] || this.etime).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0 }).format(), n = {
15667
15669
  lat: this.position.lat,
15668
15670
  lng: this.position.lng,
15669
15671
  datetime: r,
@@ -15686,20 +15688,20 @@ const gm = {
15686
15688
  this.menuIndex === 2 ? (await this.fetchForecastMeteo(7), this.initInfo(), this.initWeatherEchart(), this.handleMeteogramData7(this.meteoData), this.initHoursTableData()) : this.menuIndex === 3 ? (await this.fetchForecastMeteo(14), this.handleMeteogramData14(this.meteoData), this.initDaysTableData(), this.initHourlyTableData(this.meteoData)) : this.menuIndex === 4 && (await this.fetchSeasonalData(), this.initSeasonalEchart());
15687
15689
  },
15688
15690
  initInfo() {
15689
- this.activeIndex = le(this.etime).tz(this.positionGmt).hour(), this.pickedDate = le(this.etime).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format();
15691
+ this.activeIndex = ce(this.etime).tz(this.positionGmt).hour(), this.pickedDate = ce(this.etime).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format();
15690
15692
  },
15691
15693
  initDatePickerInfo() {
15692
15694
  if (!this.dateRangeZ[0] || !this.dateRange[1]) {
15693
15695
  this.dateRangeZ = [te(this.etime).add(-7, "day").utc().format(), te(this.etime).add(-1, "day").utc().format()];
15694
15696
  const t = [
15695
- le(this.dateRangeZ[0]).tz(this.positionGmt).format("yyyy-MM-DD"),
15696
- le(this.dateRangeZ[1]).tz(this.positionGmt).format("yyyy-MM-DD")
15697
+ ce(this.dateRangeZ[0]).tz(this.positionGmt).format("yyyy-MM-DD"),
15698
+ ce(this.dateRangeZ[1]).tz(this.positionGmt).format("yyyy-MM-DD")
15697
15699
  ];
15698
15700
  this.dateRange = [te(t[0]).format(), te(t[1]).format()];
15699
15701
  } else {
15700
15702
  const t = [
15701
- le(this.dateRangeZ[0]).tz(this.positionGmt).format("yyyy-MM-DD"),
15702
- le(this.dateRangeZ[1]).tz(this.positionGmt).format("yyyy-MM-DD")
15703
+ ce(this.dateRangeZ[0]).tz(this.positionGmt).format("yyyy-MM-DD"),
15704
+ ce(this.dateRangeZ[1]).tz(this.positionGmt).format("yyyy-MM-DD")
15703
15705
  ];
15704
15706
  this.dateRange = [te(t[0]).format(), te(t[1]).format()];
15705
15707
  }
@@ -15745,7 +15747,7 @@ const gm = {
15745
15747
  this.loading.weatherEchart = !1;
15746
15748
  for (let q = 0; q < 7; q++) {
15747
15749
  const V = te(this.pickedDate).clone().add(q, "d").format();
15748
- t.push(le(V).tz(this.positionGmt).format("yyyy-MM-DD")), A.push(this.computeMMMDDLT(V)), e.push(q === 0 ? "Today" : this.computeWeekLT(V));
15750
+ t.push(ce(V).tz(this.positionGmt).format("yyyy-MM-DD")), A.push(this.computeMMMDDLT(V)), e.push(q === 0 ? "Today" : this.computeWeekLT(V));
15749
15751
  const tA = ((_ = or.pickDaily(this.meteoData, V)) == null ? void 0 : _[0]) || {};
15750
15752
  if (r.push(this.roundPrecision(((J = (W = tA.weather) == null ? void 0 : W.temp) == null ? void 0 : J.min) - 5, 0)), n.push(this.roundPrecision((X = (Z = tA.weather) == null ? void 0 : Z.temp) == null ? void 0 : X.max, 0)), o.push(this.roundPrecision((Y = (T = tA.weather) == null ? void 0 : T.wind) == null ? void 0 : Y.kts, 1) ?? "- kts"), u.push(this.roundPrecision((U = (cA = tA.weather) == null ? void 0 : cA.precip) == null ? void 0 : U.sum, 1) ?? "- mm"), (F = tA.weather) != null && F.url) {
15751
15753
  const N = await this.convertSvgUrlToBase64((K = tA.weather) == null ? void 0 : K.url);
@@ -16076,7 +16078,7 @@ const gm = {
16076
16078
  return !1;
16077
16079
  q.setOption(L), q.on("click", (V) => {
16078
16080
  const tA = V.dataIndex, oA = t[tA].split("-");
16079
- this.pickedDate = le().tz(this.positionGmt).set({ year: oA[0], month: Number(oA[1] - 1), date: Number(oA[2]), hour: 0, minute: 0, second: 0, millisecond: 0 }).format(), this.pickedWeek = tA === 0 ? "Today" : this.computeWeekLT(this.pickedDate), this.activeIndex = tA === 0 ? le(this.etime).tz(this.positionGmt).hour() : void 0, this.initHoursTableData(), L.series[3].markArea = {
16081
+ this.pickedDate = ce().tz(this.positionGmt).set({ year: oA[0], month: Number(oA[1] - 1), date: Number(oA[2]), hour: 0, minute: 0, second: 0, millisecond: 0 }).format(), this.pickedWeek = tA === 0 ? "Today" : this.computeWeekLT(this.pickedDate), this.activeIndex = tA === 0 ? ce(this.etime).tz(this.positionGmt).hour() : void 0, this.initHoursTableData(), L.series[3].markArea = {
16080
16082
  itemStyle: {
16081
16083
  color: "rgba(64,159,255,0.25)"
16082
16084
  },
@@ -16128,12 +16130,12 @@ const gm = {
16128
16130
  n.src = r, n.onload = async () => {
16129
16131
  var a, o, c, u, d, w, B, f, m, Q, S, v, L, _, W, J, Z, X, T, Y, cA, U, F, K, k, iA, AA, q, V, tA, oA, CA, b, M, P, N, z, sA, uA, gA, yA, bA, LA, DA, jA, dA, R, zA, lA, wA, MA, eA, HA, qA, PA, WA, ee, j, UA;
16130
16132
  this.loading.meteogramEchart = !1;
16131
- const i = le(this.etime).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format();
16133
+ const i = ce(this.etime).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format();
16132
16134
  for (let vA = 0; vA < 7 * 24; vA++) {
16133
16135
  const RA = te(i).clone().add(vA, "h").format();
16134
16136
  (a = this.meteogramData) == null || a.dates.push(RA);
16135
16137
  const QA = ((o = or.pickHourly(t, RA)) == null ? void 0 : o[0]) || {};
16136
- if (vA % 12 === 0 && vA % 24 !== 0 ? (c = this.meteogramData) == null || c.xDates.push(le(RA).tz(this.positionGmt).format("MMM-DD")) : (u = this.meteogramData) == null || u.xDates.push(""), vA % 3 === 0 ? (d = this.meteogramData) == null || d.hours.push(this.computeHourLT(RA)) : (w = this.meteogramData) == null || w.hours.push(""), (f = this.meteogramData) == null || f.temperaturesX.push([RA, this.roundPrecision((B = QA == null ? void 0 : QA.weather) == null ? void 0 : B.temp, 0)]), (Q = this.meteogramData) == null || Q.temperaturesY.push(this.roundPrecision((m = QA == null ? void 0 : QA.weather) == null ? void 0 : m.temp, 0)), (L = this.meteogramData) == null || L.precip.push(this.roundPrecision((v = (S = QA == null ? void 0 : QA.weather) == null ? void 0 : S.precip) == null ? void 0 : v.sum, 1)), (W = this.meteogramData) == null || W.visibilityX.push([RA, this.roundPrecision((_ = QA == null ? void 0 : QA.weather) == null ? void 0 : _.visibility, 1)]), (Z = this.meteogramData) == null || Z.visibilityY.push(this.roundPrecision((J = QA == null ? void 0 : QA.weather) == null ? void 0 : J.visibility, 1)), (Y = this.meteogramData) == null || Y.windspeed.push(this.roundPrecision((T = (X = QA.weather) == null ? void 0 : X.wind) == null ? void 0 : T.kts, 1)), (F = this.meteogramData) == null || F.windGusts.push(this.roundPrecision((U = (cA = QA == null ? void 0 : QA.weather) == null ? void 0 : cA.wind) == null ? void 0 : U.gusts, 1)), (iA = this.meteogramData) == null || iA.sigWaveHeight.push(this.roundPrecision((k = (K = QA == null ? void 0 : QA.wave) == null ? void 0 : K.sig) == null ? void 0 : k.height)), (V = this.meteogramData) == null || V.swellHeight.push(this.roundPrecision((q = (AA = QA == null ? void 0 : QA.wave) == null ? void 0 : AA.swell) == null ? void 0 : q.height)), vA % 6 === 0) {
16138
+ if (vA % 12 === 0 && vA % 24 !== 0 ? (c = this.meteogramData) == null || c.xDates.push(ce(RA).tz(this.positionGmt).format("MMM-DD")) : (u = this.meteogramData) == null || u.xDates.push(""), vA % 3 === 0 ? (d = this.meteogramData) == null || d.hours.push(this.computeHourLT(RA)) : (w = this.meteogramData) == null || w.hours.push(""), (f = this.meteogramData) == null || f.temperaturesX.push([RA, this.roundPrecision((B = QA == null ? void 0 : QA.weather) == null ? void 0 : B.temp, 0)]), (Q = this.meteogramData) == null || Q.temperaturesY.push(this.roundPrecision((m = QA == null ? void 0 : QA.weather) == null ? void 0 : m.temp, 0)), (L = this.meteogramData) == null || L.precip.push(this.roundPrecision((v = (S = QA == null ? void 0 : QA.weather) == null ? void 0 : S.precip) == null ? void 0 : v.sum, 1)), (W = this.meteogramData) == null || W.visibilityX.push([RA, this.roundPrecision((_ = QA == null ? void 0 : QA.weather) == null ? void 0 : _.visibility, 1)]), (Z = this.meteogramData) == null || Z.visibilityY.push(this.roundPrecision((J = QA == null ? void 0 : QA.weather) == null ? void 0 : J.visibility, 1)), (Y = this.meteogramData) == null || Y.windspeed.push(this.roundPrecision((T = (X = QA.weather) == null ? void 0 : X.wind) == null ? void 0 : T.kts, 1)), (F = this.meteogramData) == null || F.windGusts.push(this.roundPrecision((U = (cA = QA == null ? void 0 : QA.weather) == null ? void 0 : cA.wind) == null ? void 0 : U.gusts, 1)), (iA = this.meteogramData) == null || iA.sigWaveHeight.push(this.roundPrecision((k = (K = QA == null ? void 0 : QA.wave) == null ? void 0 : K.sig) == null ? void 0 : k.height)), (V = this.meteogramData) == null || V.swellHeight.push(this.roundPrecision((q = (AA = QA == null ? void 0 : QA.wave) == null ? void 0 : AA.swell) == null ? void 0 : q.height)), vA % 6 === 0) {
16137
16139
  if ((tA = QA.weather) != null && tA.url) {
16138
16140
  const hA = await this.convertSvgUrlToBase64((oA = QA.weather) == null ? void 0 : oA.url);
16139
16141
  (CA = this.meteogramData) == null || CA.weatherIcons.push({ symbol: "image://" + hA, symbolSize: 30 });
@@ -16199,12 +16201,12 @@ const gm = {
16199
16201
  o.src = a, o.onload = async () => {
16200
16202
  var u, d, w, B, f, m, Q, S, v, L, _, W, J, Z, X, T, Y, cA, U, F, K, k, iA, AA, q, V, tA, oA, CA, b, M, P, N, z, sA, uA, gA, yA, bA, LA, DA, jA, dA, R, zA, lA, wA, MA, eA, HA, qA, PA, WA, ee, j, UA, vA, RA, QA, hA;
16201
16203
  this.loading.meteogramEchart = !1;
16202
- const c = le(n).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format();
16204
+ const c = ce(n).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format();
16203
16205
  for (let NA = 0; NA < r * 24; NA++) {
16204
16206
  const ne = te(c).clone().add(NA, "h").format();
16205
16207
  (u = this.meteogramData) == null || u.dates.push(ne);
16206
16208
  const YA = ((d = or.pickHourly(t, ne)) == null ? void 0 : d[0]) || {};
16207
- if ((B = this.meteogramData) == null || B.temperaturesY.push(this.roundPrecision((w = YA == null ? void 0 : YA.weather) == null ? void 0 : w.temp, 0)), (m = this.meteogramData) == null || m.visibilityY.push(this.roundPrecision((f = YA == null ? void 0 : YA.weather) == null ? void 0 : f.visibility, 1)), (v = this.meteogramData) == null || v.windspeed.push(this.roundPrecision((S = (Q = YA.weather) == null ? void 0 : Q.wind) == null ? void 0 : S.kts, 1)), (W = this.meteogramData) == null || W.windGusts.push(this.roundPrecision((_ = (L = YA == null ? void 0 : YA.weather) == null ? void 0 : L.wind) == null ? void 0 : _.gusts, 1)), (X = this.meteogramData) == null || X.sigWaveHeight.push(this.roundPrecision((Z = (J = YA == null ? void 0 : YA.wave) == null ? void 0 : J.sig) == null ? void 0 : Z.height)), (cA = this.meteogramData) == null || cA.swellHeight.push(this.roundPrecision((Y = (T = YA == null ? void 0 : YA.wave) == null ? void 0 : T.swell) == null ? void 0 : Y.height)), NA % 3 === 0 ? ((K = this.meteogramData) == null || K.precip.push(this.roundPrecision((F = (U = YA == null ? void 0 : YA.weather) == null ? void 0 : U.precip) == null ? void 0 : F.sum3Hours, 1)), (iA = this.meteogramData) == null || iA.temperaturesX.push([ne, this.roundPrecision((k = YA == null ? void 0 : YA.weather) == null ? void 0 : k.temp, 0)]), (q = this.meteogramData) == null || q.visibilityX.push([ne, this.roundPrecision((AA = YA == null ? void 0 : YA.weather) == null ? void 0 : AA.visibility, 1)])) : (V = this.meteogramData) == null || V.precip.push(null), NA % 12 === 0 && NA % 24 !== 0 ? (tA = this.meteogramData) == null || tA.xDates.push(le(ne).tz(this.positionGmt).format("MMM-DD")) : (oA = this.meteogramData) == null || oA.xDates.push(""), NA % 6 === 0 ? (CA = this.meteogramData) == null || CA.hours.push(this.computeHourLT(ne)) : (b = this.meteogramData) == null || b.hours.push(""), NA % 12 === 0) {
16209
+ if ((B = this.meteogramData) == null || B.temperaturesY.push(this.roundPrecision((w = YA == null ? void 0 : YA.weather) == null ? void 0 : w.temp, 0)), (m = this.meteogramData) == null || m.visibilityY.push(this.roundPrecision((f = YA == null ? void 0 : YA.weather) == null ? void 0 : f.visibility, 1)), (v = this.meteogramData) == null || v.windspeed.push(this.roundPrecision((S = (Q = YA.weather) == null ? void 0 : Q.wind) == null ? void 0 : S.kts, 1)), (W = this.meteogramData) == null || W.windGusts.push(this.roundPrecision((_ = (L = YA == null ? void 0 : YA.weather) == null ? void 0 : L.wind) == null ? void 0 : _.gusts, 1)), (X = this.meteogramData) == null || X.sigWaveHeight.push(this.roundPrecision((Z = (J = YA == null ? void 0 : YA.wave) == null ? void 0 : J.sig) == null ? void 0 : Z.height)), (cA = this.meteogramData) == null || cA.swellHeight.push(this.roundPrecision((Y = (T = YA == null ? void 0 : YA.wave) == null ? void 0 : T.swell) == null ? void 0 : Y.height)), NA % 3 === 0 ? ((K = this.meteogramData) == null || K.precip.push(this.roundPrecision((F = (U = YA == null ? void 0 : YA.weather) == null ? void 0 : U.precip) == null ? void 0 : F.sum3Hours, 1)), (iA = this.meteogramData) == null || iA.temperaturesX.push([ne, this.roundPrecision((k = YA == null ? void 0 : YA.weather) == null ? void 0 : k.temp, 0)]), (q = this.meteogramData) == null || q.visibilityX.push([ne, this.roundPrecision((AA = YA == null ? void 0 : YA.weather) == null ? void 0 : AA.visibility, 1)])) : (V = this.meteogramData) == null || V.precip.push(null), NA % 12 === 0 && NA % 24 !== 0 ? (tA = this.meteogramData) == null || tA.xDates.push(ce(ne).tz(this.positionGmt).format("MMM-DD")) : (oA = this.meteogramData) == null || oA.xDates.push(""), NA % 6 === 0 ? (CA = this.meteogramData) == null || CA.hours.push(this.computeHourLT(ne)) : (b = this.meteogramData) == null || b.hours.push(""), NA % 12 === 0) {
16208
16210
  if ((M = YA.weather) != null && M.url) {
16209
16211
  const ae = await this.convertSvgUrlToBase64((P = YA.weather) == null ? void 0 : P.url);
16210
16212
  (N = this.meteogramData) == null || N.weatherIcons.push({ symbol: "image://" + ae, symbolSize: 30 });
@@ -16407,7 +16409,7 @@ const gm = {
16407
16409
  return !1;
16408
16410
  {
16409
16411
  let Ue = "";
16410
- return this.menuIndex === 2 ? (((YA = hA[1]) == null ? void 0 : YA.value) < 2 ? Ue = "rgba(172, 210, 255, 1)" : ((ae = hA[1]) == null ? void 0 : ae.value) <= 3.9 ? Ue = "rgba(3, 248, 103, 1)" : ((Qe = hA[1]) == null ? void 0 : Qe.value) <= 7.9 ? Ue = "rgba(190, 226, 2, 18)" : ((ge = hA[1]) == null ? void 0 : ge.value) <= 19.9 ? Ue = "rgba(248, 1, 1, 1)" : ((et = hA[1]) == null ? void 0 : et.value) >= 20 ? Ue = "rgba(197, 5, 58, 1)" : Ue = "rgba(172, 210, 255, 1)", `<div style="font-size: 13px;"><strong>${le((me = this.meteogramData) == null ? void 0 : me.dates[NA]).tz(this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
16412
+ return this.menuIndex === 2 ? (((YA = hA[1]) == null ? void 0 : YA.value) < 2 ? Ue = "rgba(172, 210, 255, 1)" : ((ae = hA[1]) == null ? void 0 : ae.value) <= 3.9 ? Ue = "rgba(3, 248, 103, 1)" : ((Qe = hA[1]) == null ? void 0 : Qe.value) <= 7.9 ? Ue = "rgba(190, 226, 2, 18)" : ((ge = hA[1]) == null ? void 0 : ge.value) <= 19.9 ? Ue = "rgba(248, 1, 1, 1)" : ((et = hA[1]) == null ? void 0 : et.value) >= 20 ? Ue = "rgba(197, 5, 58, 1)" : Ue = "rgba(172, 210, 255, 1)", `<div style="font-size: 13px;"><strong>${ce((me = this.meteogramData) == null ? void 0 : me.dates[NA]).tz(this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
16411
16413
  <div style="display: ${(We = this.meteogramData) != null && We.weatherNames[NA] ? "block" : "none"}; font-size: 13px;">
16412
16414
  <span>Weather : </span><strong>${(tt = this.meteogramData) == null ? void 0 : tt.weatherNames[NA]}</strong>
16413
16415
  </div>
@@ -16423,7 +16425,7 @@ const gm = {
16423
16425
  <span style="display:inline-block; height: 10px;width: 10px;border-radius: 50%;background-color: #c346a9;}"></span>
16424
16426
  <span>Visibility : </span><strong>${(Ve = (er = hA[2]) == null ? void 0 : er.value) == null ? void 0 : Ve[1]}</strong><span style="padding-left: 3px;">nm</span>
16425
16427
  </div>`) : (((Ut = hA[1]) == null ? void 0 : Ut.value) < 5 ? Ue = "rgba(172, 210, 255, 1)" : ((Lt = hA[1]) == null ? void 0 : Lt.value) <= 9.9 ? Ue = "rgba(3, 248, 103, 1)" : ((ie = hA[1]) == null ? void 0 : ie.value) <= 24.9 ? Ue = "rgba(190, 226, 2, 18)" : ((bt = hA[1]) == null ? void 0 : bt.value) <= 49.9 ? Ue = "rgba(248, 1, 1, 1)" : ((Dt = hA[1]) == null ? void 0 : Dt.value) > 50 ? Ue = "rgba(197, 5, 58, 1)" : Ue = "rgba(172, 210, 255, 1)", NA % 3 === 0 ? `<div style="font-size: 13px;"
16426
- <strong>${le((ht = this.meteogramData) == null ? void 0 : ht.dates[NA]).tz(this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong>
16428
+ <strong>${ce((ht = this.meteogramData) == null ? void 0 : ht.dates[NA]).tz(this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong>
16427
16429
  </div>
16428
16430
  <div style="display: ${(Ye = this.meteogramData) != null && Ye.weatherNames[NA] ? "block" : "none"}; font-size: 13px;">
16429
16431
  <span>Weather : </span><strong>${(Ge = this.meteogramData) == null ? void 0 : Ge.weatherNames[NA]}</strong>
@@ -16782,7 +16784,7 @@ const gm = {
16782
16784
  formatter: (hA) => {
16783
16785
  var ne, YA, ae, Qe, ge, et, me, We, tt, be;
16784
16786
  const NA = (ne = hA == null ? void 0 : hA[0]) == null ? void 0 : ne.dataIndex;
16785
- return hA.find((oe) => oe.seriesType === "scatter") ? !1 : `<div style="font-size: 13px;"><strong>${le((YA = this.meteogramData) == null ? void 0 : YA.dates[NA]).tz(this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
16787
+ return hA.find((oe) => oe.seriesType === "scatter") ? !1 : `<div style="font-size: 13px;"><strong>${ce((YA = this.meteogramData) == null ? void 0 : YA.dates[NA]).tz(this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
16786
16788
  <div style="font-size: 13px;display: ${isNaN((ae = hA[0]) == null ? void 0 : ae.value) ? "none" : "block"}">
16787
16789
  <span style="display:inline-block; height: 10px;width: 10px;border-radius: 50%;background-color: #60c43e;}"></span>
16788
16790
  <span>Wind Speed : </span><strong>${(Qe = hA[0]) == null ? void 0 : Qe.value}</strong><span style="padding-left: 3px;">kts</span>
@@ -17098,10 +17100,10 @@ const gm = {
17098
17100
  precip: [],
17099
17101
  lastYearPrecip: []
17100
17102
  };
17101
- const t = le(this.etime).tz(this.positionGmt).date() >= 14 ? le(this.etime).tz(this.positionGmt).month() + 1 : le(this.etime).tz(this.positionGmt).month(), A = le(this.etime).tz(this.positionGmt).set({ month: t });
17103
+ const t = ce(this.etime).tz(this.positionGmt).date() >= 14 ? ce(this.etime).tz(this.positionGmt).month() + 1 : ce(this.etime).tz(this.positionGmt).month(), A = ce(this.etime).tz(this.positionGmt).set({ month: t });
17102
17104
  this.monthsOptions = [];
17103
17105
  for (let q = 0; q < 6; q++) {
17104
- const V = le(this.etime).tz(this.positionGmt).set({ year: A.year(), month: A.month() + q, date: 1, hour: 0, minute: 0, second: 0 });
17106
+ const V = ce(this.etime).tz(this.positionGmt).set({ year: A.year(), month: A.month() + q, date: 1, hour: 0, minute: 0, second: 0 });
17105
17107
  this.monthsOptions.push({
17106
17108
  date: V.format(),
17107
17109
  month: V.format("MMMM yyyy"),
@@ -17113,8 +17115,8 @@ const gm = {
17113
17115
  let e = {
17114
17116
  lat: this.position.lat,
17115
17117
  lng: this.position.lng,
17116
- startDate: le().tz(this.positionGmt).set({ year: this.currentMonth.y, month: this.currentMonth.m, date: 1, hour: 0, minute: 0, second: 0 }).format(),
17117
- endDate: le().tz(this.positionGmt).set({ year: this.currentMonth.y, month: this.currentMonth.m + 1, date: 1, hour: 0, minute: 0, second: 0 }).format(),
17118
+ startDate: ce().tz(this.positionGmt).set({ year: this.currentMonth.y, month: this.currentMonth.m, date: 1, hour: 0, minute: 0, second: 0 }).format(),
17119
+ endDate: ce().tz(this.positionGmt).set({ year: this.currentMonth.y, month: this.currentMonth.m + 1, date: 1, hour: 0, minute: 0, second: 0 }).format(),
17118
17120
  pastYear: 1
17119
17121
  }, r = await Fn.post(`${this.gateway}/api/arc/meteo2/spot/seasonal`, e, {
17120
17122
  headers: {
@@ -17124,15 +17126,15 @@ const gm = {
17124
17126
  if ((r == null ? void 0 : r.data.code) === 0) {
17125
17127
  let q = (n = r == null ? void 0 : r.data.data) == null ? void 0 : n.seasonal;
17126
17128
  this.etime = (i = r == null ? void 0 : r.data) == null ? void 0 : i.etime, this.positionGmt = (o = (a = q == null ? void 0 : q.weather) == null ? void 0 : a[0]) == null ? void 0 : o.timezone, this.positionOffset = (u = (c = q == null ? void 0 : q.weather) == null ? void 0 : c[0]) == null ? void 0 : u.offset, this.issuedDate = te(this.etime).utc().format("MMM-DD/HHmm[Z], YYYY");
17127
- let V = le(this.etime).tz(this.positionGmt).set({ year: this.currentMonth.y, month: this.currentMonth.m, date: 1, hour: 0, minute: 0, second: 0 }).format();
17129
+ let V = ce(this.etime).tz(this.positionGmt).set({ year: this.currentMonth.y, month: this.currentMonth.m, date: 1, hour: 0, minute: 0, second: 0 }).format();
17128
17130
  const tA = te(e.endDate).diff(te(e.startDate), "day", !0);
17129
17131
  for (let P = 0; P < tA; P++) {
17130
17132
  const N = te(V).clone().add(P, "d").format(), z = ((d = or.pickDaily(q, N)) == null ? void 0 : d[0]) || {};
17131
- (w = this.seasonalData) == null || w.dates.push(le(N).tz(this.positionGmt).format("MMM-DD")), (B = this.seasonalData) == null || B.xDates.push(le(N).tz(this.positionGmt).format("DD")), (Q = this.seasonalData) == null || Q.highTemp.push(this.roundPrecision((m = (f = z == null ? void 0 : z.weather) == null ? void 0 : f.temp) == null ? void 0 : m.max, 0)), (L = this.seasonalData) == null || L.lowTemp.push(this.roundPrecision((v = (S = z == null ? void 0 : z.weather) == null ? void 0 : S.temp) == null ? void 0 : v.min, 0)), (J = this.seasonalData) == null || J.windSpeed.push(this.roundPrecision((W = (_ = z.weather) == null ? void 0 : _.wind) == null ? void 0 : W.kts, 1)), (T = this.seasonalData) == null || T.windDirection.push((X = (Z = z.weather) == null ? void 0 : Z.wind) == null ? void 0 : X.direction), (U = this.seasonalData) == null || U.precip.push(this.roundPrecision((cA = (Y = z == null ? void 0 : z.weather) == null ? void 0 : Y.precip) == null ? void 0 : cA.sum, 1));
17133
+ (w = this.seasonalData) == null || w.dates.push(ce(N).tz(this.positionGmt).format("MMM-DD")), (B = this.seasonalData) == null || B.xDates.push(ce(N).tz(this.positionGmt).format("DD")), (Q = this.seasonalData) == null || Q.highTemp.push(this.roundPrecision((m = (f = z == null ? void 0 : z.weather) == null ? void 0 : f.temp) == null ? void 0 : m.max, 0)), (L = this.seasonalData) == null || L.lowTemp.push(this.roundPrecision((v = (S = z == null ? void 0 : z.weather) == null ? void 0 : S.temp) == null ? void 0 : v.min, 0)), (J = this.seasonalData) == null || J.windSpeed.push(this.roundPrecision((W = (_ = z.weather) == null ? void 0 : _.wind) == null ? void 0 : W.kts, 1)), (T = this.seasonalData) == null || T.windDirection.push((X = (Z = z.weather) == null ? void 0 : Z.wind) == null ? void 0 : X.direction), (U = this.seasonalData) == null || U.precip.push(this.roundPrecision((cA = (Y = z == null ? void 0 : z.weather) == null ? void 0 : Y.precip) == null ? void 0 : cA.sum, 1));
17132
17134
  }
17133
17135
  (((K = (F = r == null ? void 0 : r.data.data) == null ? void 0 : F.past) == null ? void 0 : K.reverse()) || []).forEach((P, N) => {
17134
17136
  var z, sA, uA, gA, yA, bA, LA, DA, jA, dA, R, zA, lA;
17135
- V = le(this.etime).tz(this.positionGmt).set({ year: this.currentMonth.y - (N + 1), month: this.currentMonth.m, date: 1, hour: 0, minute: 0, second: 0 }).format();
17137
+ V = ce(this.etime).tz(this.positionGmt).set({ year: this.currentMonth.y - (N + 1), month: this.currentMonth.m, date: 1, hour: 0, minute: 0, second: 0 }).format();
17136
17138
  for (let wA = 0; wA < tA; wA++) {
17137
17139
  const MA = te(V).clone().add(wA, "d").format(), eA = ((z = or.pickDaily(P, MA)) == null ? void 0 : z[0]) || {};
17138
17140
  (gA = this.seasonalData) == null || gA.lastYearHighTemp.push(this.roundPrecision((uA = (sA = eA == null ? void 0 : eA.weather) == null ? void 0 : sA.temp) == null ? void 0 : uA.max, 0)), (LA = this.seasonalData) == null || LA.lastYearLowTemp.push(this.roundPrecision((bA = (yA = eA == null ? void 0 : eA.weather) == null ? void 0 : yA.temp) == null ? void 0 : bA.min, 0)), (dA = this.seasonalData) == null || dA.lastYearWindSpeed.push(this.roundPrecision((jA = (DA = eA.weather) == null ? void 0 : DA.wind) == null ? void 0 : jA.kts, 1)), (lA = this.seasonalData) == null || lA.lastYearPrecip.push(this.roundPrecision((zA = (R = eA == null ? void 0 : eA.weather) == null ? void 0 : R.precip) == null ? void 0 : zA.sum, 1));
@@ -17696,7 +17698,7 @@ const gm = {
17696
17698
  async initDaysTableData() {
17697
17699
  var A, e, r, n, i, a, o, c, u, d, w, B, f, m, Q, S, v, L, _, W, J, Z, X, T, Y, cA, U, F, K, k, iA, AA, q, V, tA, oA, CA, b;
17698
17700
  this.daysTableData = [];
17699
- const t = le(this.etime).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format();
17701
+ const t = ce(this.etime).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format();
17700
17702
  for (let M = 0; M < 14; M++) {
17701
17703
  const P = te(t).clone().add(M, "d").format(), N = ((A = or.pickDaily(this.meteoData, P)) == null ? void 0 : A[0]) || {};
17702
17704
  let z = "";
@@ -17729,7 +17731,7 @@ const gm = {
17729
17731
  initHourlyTableData(t, A, e, r) {
17730
17732
  var o, c, u, d, w, B, f, m, Q, S, v, L, _, W, J, Z, X, T, Y, cA, U, F, K, k, iA, AA, q, V, tA, oA, CA, b, M, P, N, z, sA, uA, gA, yA, bA, LA, DA, jA;
17731
17733
  this.hourlyTableData = [];
17732
- const n = A || 14, i = e || this.etime, a = le(i).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format();
17734
+ const n = A || 14, i = e || this.etime, a = ce(i).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format();
17733
17735
  for (let dA = 0; dA < n * 24; dA++) {
17734
17736
  let R, zA;
17735
17737
  if (dA % 3 === 0 && (zA = 3), r ? dA % 3 === 0 && (R = te(a).clone().add(dA, "h").format()) : dA < 3 * 24 ? R = te(a).clone().add(dA, "h").format() : dA < 7 * 24 ? dA % 3 === 0 && (R = te(a).clone().add(dA, "h").format()) : dA % 6 === 0 && (R = te(a).clone().add(dA, "h").format()), R) {
@@ -17824,7 +17826,7 @@ const gm = {
17824
17826
  return !1;
17825
17827
  this.loading.downloading = !0;
17826
17828
  let t = 7, A, e = 1;
17827
- this.menuIndex === 1 ? (t = te(this.dateRangeZ[1]).diff(te(this.dateRangeZ[0]), "d", !0) + 1, A = le(this.dateRangeZ[0] || this.etime).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0 }).format(), e = 3) : this.menuIndex === 2 ? (t = 7, A = le(this.etime).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0 }).format(), e = 1) : this.menuIndex === 3 && (t = 14, A = le(this.etime).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0 }).format(), e = 3);
17829
+ this.menuIndex === 1 ? (t = te(this.dateRangeZ[1]).diff(te(this.dateRangeZ[0]), "d", !0) + 1, A = ce(this.dateRangeZ[0] || this.etime).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0 }).format(), e = 3) : this.menuIndex === 2 ? (t = 7, e = 1) : this.menuIndex === 3 && (t = 14, e = 3);
17828
17830
  const r = {
17829
17831
  lat: this.position.lat,
17830
17832
  lng: this.position.lng,
@@ -19408,7 +19410,7 @@ function sC(t, A, e, r, n, i) {
19408
19410
  }, 8, ["modelValue", "title"])
19409
19411
  ]);
19410
19412
  }
19411
- const aC = /* @__PURE__ */ oh(gm, [["render", sC], ["__scopeId", "data-v-6ad3111a"]]), B4 = {
19413
+ const aC = /* @__PURE__ */ oh(gm, [["render", sC], ["__scopeId", "data-v-0f698010"]]), B4 = {
19412
19414
  install(t) {
19413
19415
  t.component("SpotWeather", aC);
19414
19416
  }
@@ -19459,7 +19461,7 @@ const oC = {
19459
19461
  computeHourLT() {
19460
19462
  return function(t) {
19461
19463
  if (t) {
19462
- const A = le(t).tz(this.positionGmt);
19464
+ const A = ce(t).tz(this.positionGmt);
19463
19465
  return `${A == null ? void 0 : A.format("HH")}`;
19464
19466
  }
19465
19467
  return "-";
@@ -19477,7 +19479,7 @@ const oC = {
19477
19479
  computeWeekLT() {
19478
19480
  return function(t) {
19479
19481
  if (t) {
19480
- const A = le(t).tz(this.positionGmt);
19482
+ const A = ce(t).tz(this.positionGmt);
19481
19483
  return `${A == null ? void 0 : A.format("dddd")}`;
19482
19484
  }
19483
19485
  return "-";
@@ -19486,7 +19488,7 @@ const oC = {
19486
19488
  computeMMMDDLT() {
19487
19489
  return function(t) {
19488
19490
  if (t) {
19489
- const A = le(t).tz(this.positionGmt);
19491
+ const A = ce(t).tz(this.positionGmt);
19490
19492
  return `${A == null ? void 0 : A.format("MMM-DD")}`;
19491
19493
  }
19492
19494
  return "-";
@@ -19495,7 +19497,7 @@ const oC = {
19495
19497
  computeMMMDDHHmmLT() {
19496
19498
  return function(t) {
19497
19499
  if (t) {
19498
- const A = le(t).tz(this.positionGmt);
19500
+ const A = ce(t).tz(this.positionGmt);
19499
19501
  return `${A == null ? void 0 : A.format("MMM-DD/HHmm")}`;
19500
19502
  }
19501
19503
  return "-";
@@ -19504,7 +19506,7 @@ const oC = {
19504
19506
  computeMMMDDyyyyLT() {
19505
19507
  return function(t) {
19506
19508
  if (t) {
19507
- const A = le(t).tz(this.positionGmt);
19509
+ const A = ce(t).tz(this.positionGmt);
19508
19510
  return `${A == null ? void 0 : A.format("MMM-DD, yyyy")}`;
19509
19511
  }
19510
19512
  return "-";
@@ -19553,7 +19555,7 @@ const oC = {
19553
19555
  this.disposeEcharts(), this.initInfo(), this.handleMeteogramData14(this.meteoData, this.forecastDays, this.meteoData.datetime), this.initHourlyTableData(this.meteoData, this.forecastDays);
19554
19556
  },
19555
19557
  initInfo() {
19556
- this.activeIndex = le(this.etime).tz(this.positionGmt).hour(), this.pickedDate = le(this.etime).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format();
19558
+ this.activeIndex = ce(this.etime).tz(this.positionGmt).hour(), this.pickedDate = ce(this.etime).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format();
19557
19559
  },
19558
19560
  handleMeteogramData7(t) {
19559
19561
  this.meteogramData = {
@@ -19587,12 +19589,12 @@ const oC = {
19587
19589
  n.src = r, n.onload = async () => {
19588
19590
  var a, o, c, u, d, w, B, f, m, Q, S, v, L, _, W, J, Z, X, T, Y, cA, U, F, K, k, iA, AA, q, V, tA, oA, CA, b, M, P, N, z, sA, uA, gA, yA, bA, LA, DA, jA, dA, R, zA, lA, wA, MA, eA, HA, qA, PA, WA, ee;
19589
19591
  this.loading.meteogramEchart = !1;
19590
- const i = le(this.etime).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format();
19592
+ const i = ce(this.etime).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format();
19591
19593
  for (let j = 0; j < 7 * 24; j++) {
19592
19594
  const UA = te(i).clone().add(j, "h").format();
19593
19595
  (a = this.meteogramData) == null || a.dates.push(UA);
19594
19596
  const vA = ((o = or.pickHourly(t, UA)) == null ? void 0 : o[0]) || {};
19595
- if (j % 12 === 0 && j % 24 !== 0 ? (c = this.meteogramData) == null || c.xDates.push(le(UA).tz(this.positionGmt).format("MMM-DD")) : (u = this.meteogramData) == null || u.xDates.push(""), j % 3 === 0 ? (d = this.meteogramData) == null || d.hours.push(this.computeHourLT(UA)) : (w = this.meteogramData) == null || w.hours.push(""), (f = this.meteogramData) == null || f.temperaturesX.push([UA, this.roundPrecision((B = vA == null ? void 0 : vA.weather) == null ? void 0 : B.temp, 0)]), (Q = this.meteogramData) == null || Q.temperaturesY.push(this.roundPrecision((m = vA == null ? void 0 : vA.weather) == null ? void 0 : m.temp, 0)), (L = this.meteogramData) == null || L.precip.push(this.roundPrecision((v = (S = vA == null ? void 0 : vA.weather) == null ? void 0 : S.precip) == null ? void 0 : v.sum, 1)), (W = this.meteogramData) == null || W.visibility.push(this.roundPrecision((_ = vA == null ? void 0 : vA.weather) == null ? void 0 : _.visibility, 1)), (X = this.meteogramData) == null || X.windspeed.push(this.roundPrecision((Z = (J = vA.weather) == null ? void 0 : J.wind) == null ? void 0 : Z.kts, 1)), (cA = this.meteogramData) == null || cA.windGusts.push(this.roundPrecision((Y = (T = vA == null ? void 0 : vA.weather) == null ? void 0 : T.wind) == null ? void 0 : Y.gusts, 1)), (K = this.meteogramData) == null || K.sigWaveHeight.push(this.roundPrecision((F = (U = vA == null ? void 0 : vA.wave) == null ? void 0 : U.sig) == null ? void 0 : F.height)), (AA = this.meteogramData) == null || AA.swellHeight.push(this.roundPrecision((iA = (k = vA == null ? void 0 : vA.wave) == null ? void 0 : k.swell) == null ? void 0 : iA.height)), j % 6 === 0) {
19597
+ if (j % 12 === 0 && j % 24 !== 0 ? (c = this.meteogramData) == null || c.xDates.push(ce(UA).tz(this.positionGmt).format("MMM-DD")) : (u = this.meteogramData) == null || u.xDates.push(""), j % 3 === 0 ? (d = this.meteogramData) == null || d.hours.push(this.computeHourLT(UA)) : (w = this.meteogramData) == null || w.hours.push(""), (f = this.meteogramData) == null || f.temperaturesX.push([UA, this.roundPrecision((B = vA == null ? void 0 : vA.weather) == null ? void 0 : B.temp, 0)]), (Q = this.meteogramData) == null || Q.temperaturesY.push(this.roundPrecision((m = vA == null ? void 0 : vA.weather) == null ? void 0 : m.temp, 0)), (L = this.meteogramData) == null || L.precip.push(this.roundPrecision((v = (S = vA == null ? void 0 : vA.weather) == null ? void 0 : S.precip) == null ? void 0 : v.sum, 1)), (W = this.meteogramData) == null || W.visibility.push(this.roundPrecision((_ = vA == null ? void 0 : vA.weather) == null ? void 0 : _.visibility, 1)), (X = this.meteogramData) == null || X.windspeed.push(this.roundPrecision((Z = (J = vA.weather) == null ? void 0 : J.wind) == null ? void 0 : Z.kts, 1)), (cA = this.meteogramData) == null || cA.windGusts.push(this.roundPrecision((Y = (T = vA == null ? void 0 : vA.weather) == null ? void 0 : T.wind) == null ? void 0 : Y.gusts, 1)), (K = this.meteogramData) == null || K.sigWaveHeight.push(this.roundPrecision((F = (U = vA == null ? void 0 : vA.wave) == null ? void 0 : U.sig) == null ? void 0 : F.height)), (AA = this.meteogramData) == null || AA.swellHeight.push(this.roundPrecision((iA = (k = vA == null ? void 0 : vA.wave) == null ? void 0 : k.swell) == null ? void 0 : iA.height)), j % 6 === 0) {
19596
19598
  if ((q = vA.weather) != null && q.url) {
19597
19599
  const RA = await this.convertSvgUrlToBase64((V = vA.weather) == null ? void 0 : V.url);
19598
19600
  (tA = this.meteogramData) == null || tA.weatherIcons.push({ symbol: "image://" + RA, symbolSize: 30 });
@@ -19657,12 +19659,12 @@ const oC = {
19657
19659
  o.src = a, o.onload = async () => {
19658
19660
  var u, d, w, B, f, m, Q, S, v, L, _, W, J, Z, X, T, Y, cA, U, F, K, k, iA, AA, q, V, tA, oA, CA, b, M, P, N, z, sA, uA, gA, yA, bA, LA, DA, jA, dA, R, zA, lA, wA, MA, eA, HA, qA, PA, WA, ee, j, UA, vA, RA;
19659
19661
  this.loading.meteogramEchart = !1;
19660
- const c = le(n).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format();
19662
+ const c = ce(n).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format();
19661
19663
  for (let QA = 0; QA < r * 24; QA++) {
19662
19664
  const hA = te(c).clone().add(QA, "h").format();
19663
19665
  (u = this.meteogramData) == null || u.dates.push(hA);
19664
19666
  const NA = ((d = or.pickHourly(t, hA)) == null ? void 0 : d[0]) || {};
19665
- if ((B = this.meteogramData) == null || B.temperaturesY.push(this.roundPrecision((w = NA == null ? void 0 : NA.weather) == null ? void 0 : w.temp, 0)), (m = this.meteogramData) == null || m.visibility.push(this.roundPrecision((f = NA == null ? void 0 : NA.weather) == null ? void 0 : f.visibility, 1)), (v = this.meteogramData) == null || v.windspeed.push(this.roundPrecision((S = (Q = NA.weather) == null ? void 0 : Q.wind) == null ? void 0 : S.kts, 1)), (W = this.meteogramData) == null || W.windGusts.push(this.roundPrecision((_ = (L = NA == null ? void 0 : NA.weather) == null ? void 0 : L.wind) == null ? void 0 : _.gusts, 1)), (X = this.meteogramData) == null || X.sigWaveHeight.push(this.roundPrecision((Z = (J = NA == null ? void 0 : NA.wave) == null ? void 0 : J.sig) == null ? void 0 : Z.height)), (cA = this.meteogramData) == null || cA.swellHeight.push(this.roundPrecision((Y = (T = NA == null ? void 0 : NA.wave) == null ? void 0 : T.swell) == null ? void 0 : Y.height)), QA % 3 === 0 ? ((K = this.meteogramData) == null || K.precip.push(this.roundPrecision((F = (U = NA == null ? void 0 : NA.weather) == null ? void 0 : U.precip) == null ? void 0 : F.sum3Hours, 1)), (iA = this.meteogramData) == null || iA.temperaturesX.push([hA, this.roundPrecision((k = NA == null ? void 0 : NA.weather) == null ? void 0 : k.temp, 0)])) : (AA = this.meteogramData) == null || AA.precip.push(null), QA % 12 === 0 && QA % 24 !== 0 ? (q = this.meteogramData) == null || q.xDates.push(le(hA).tz(this.positionGmt).format("MMM-DD")) : (V = this.meteogramData) == null || V.xDates.push(""), QA % 6 === 0 ? (tA = this.meteogramData) == null || tA.hours.push(this.computeHourLT(hA)) : (oA = this.meteogramData) == null || oA.hours.push(""), QA % 12 === 0) {
19667
+ if ((B = this.meteogramData) == null || B.temperaturesY.push(this.roundPrecision((w = NA == null ? void 0 : NA.weather) == null ? void 0 : w.temp, 0)), (m = this.meteogramData) == null || m.visibility.push(this.roundPrecision((f = NA == null ? void 0 : NA.weather) == null ? void 0 : f.visibility, 1)), (v = this.meteogramData) == null || v.windspeed.push(this.roundPrecision((S = (Q = NA.weather) == null ? void 0 : Q.wind) == null ? void 0 : S.kts, 1)), (W = this.meteogramData) == null || W.windGusts.push(this.roundPrecision((_ = (L = NA == null ? void 0 : NA.weather) == null ? void 0 : L.wind) == null ? void 0 : _.gusts, 1)), (X = this.meteogramData) == null || X.sigWaveHeight.push(this.roundPrecision((Z = (J = NA == null ? void 0 : NA.wave) == null ? void 0 : J.sig) == null ? void 0 : Z.height)), (cA = this.meteogramData) == null || cA.swellHeight.push(this.roundPrecision((Y = (T = NA == null ? void 0 : NA.wave) == null ? void 0 : T.swell) == null ? void 0 : Y.height)), QA % 3 === 0 ? ((K = this.meteogramData) == null || K.precip.push(this.roundPrecision((F = (U = NA == null ? void 0 : NA.weather) == null ? void 0 : U.precip) == null ? void 0 : F.sum3Hours, 1)), (iA = this.meteogramData) == null || iA.temperaturesX.push([hA, this.roundPrecision((k = NA == null ? void 0 : NA.weather) == null ? void 0 : k.temp, 0)])) : (AA = this.meteogramData) == null || AA.precip.push(null), QA % 12 === 0 && QA % 24 !== 0 ? (q = this.meteogramData) == null || q.xDates.push(ce(hA).tz(this.positionGmt).format("MMM-DD")) : (V = this.meteogramData) == null || V.xDates.push(""), QA % 6 === 0 ? (tA = this.meteogramData) == null || tA.hours.push(this.computeHourLT(hA)) : (oA = this.meteogramData) == null || oA.hours.push(""), QA % 12 === 0) {
19666
19668
  if ((CA = NA.weather) != null && CA.url) {
19667
19669
  const ne = await this.convertSvgUrlToBase64((b = NA.weather) == null ? void 0 : b.url);
19668
19670
  (M = this.meteogramData) == null || M.weatherIcons.push({ symbol: "image://" + ne, symbolSize: 30 });
@@ -19866,7 +19868,7 @@ const oC = {
19866
19868
  return !1;
19867
19869
  {
19868
19870
  let Ie = "";
19869
- return t === 7 ? (((YA = hA[1]) == null ? void 0 : YA.value) < 2 ? Ie = "rgba(172, 210, 255, 1)" : ((ae = hA[1]) == null ? void 0 : ae.value) <= 3.9 ? Ie = "rgba(3, 248, 103, 1)" : ((Qe = hA[1]) == null ? void 0 : Qe.value) <= 7.9 ? Ie = "rgba(190, 226, 2, 18)" : ((ge = hA[1]) == null ? void 0 : ge.value) <= 19.9 ? Ie = "rgba(248, 1, 1, 1)" : ((et = hA[1]) == null ? void 0 : et.value) >= 20 ? Ie = "rgba(197, 5, 58, 1)" : Ie = "rgba(172, 210, 255, 1)", `<div style="font-size: 13px;"><strong>${le((me = this.meteogramData) == null ? void 0 : me.dates[NA]).tz(this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
19871
+ return t === 7 ? (((YA = hA[1]) == null ? void 0 : YA.value) < 2 ? Ie = "rgba(172, 210, 255, 1)" : ((ae = hA[1]) == null ? void 0 : ae.value) <= 3.9 ? Ie = "rgba(3, 248, 103, 1)" : ((Qe = hA[1]) == null ? void 0 : Qe.value) <= 7.9 ? Ie = "rgba(190, 226, 2, 18)" : ((ge = hA[1]) == null ? void 0 : ge.value) <= 19.9 ? Ie = "rgba(248, 1, 1, 1)" : ((et = hA[1]) == null ? void 0 : et.value) >= 20 ? Ie = "rgba(197, 5, 58, 1)" : Ie = "rgba(172, 210, 255, 1)", `<div style="font-size: 13px;"><strong>${ce((me = this.meteogramData) == null ? void 0 : me.dates[NA]).tz(this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
19870
19872
  <div style="display: ${(We = this.meteogramData) != null && We.weatherNames[NA] ? "block" : "none"}; font-size: 13px;">
19871
19873
  <span>Weather : </span><strong>${(tt = this.meteogramData) == null ? void 0 : tt.weatherNames[NA]}</strong>
19872
19874
  </div>
@@ -19882,7 +19884,7 @@ const oC = {
19882
19884
  <span style="display:inline-block; height: 10px;width: 10px;border-radius: 50%;background-color: #c346a9;}"></span>
19883
19885
  <span>Visibility : </span><strong>${(er = hA[2]) == null ? void 0 : er.value}</strong><span style="padding-left: 3px;">nm</span>
19884
19886
  </div>`) : t === 14 ? (((Ve = hA[1]) == null ? void 0 : Ve.value) < 5 ? Ie = "rgba(172, 210, 255, 1)" : ((Ut = hA[1]) == null ? void 0 : Ut.value) <= 9.9 ? Ie = "rgba(3, 248, 103, 1)" : ((Lt = hA[1]) == null ? void 0 : Lt.value) <= 24.9 ? Ie = "rgba(190, 226, 2, 18)" : ((ie = hA[1]) == null ? void 0 : ie.value) <= 49.9 ? Ie = "rgba(248, 1, 1, 1)" : ((bt = hA[1]) == null ? void 0 : bt.value) > 50 ? Ie = "rgba(197, 5, 58, 1)" : Ie = "rgba(172, 210, 255, 1)", NA % 3 === 0 ? `<div style="font-size: 13px;"
19885
- <strong>${le((Dt = this.meteogramData) == null ? void 0 : Dt.dates[NA]).tz(this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong>
19887
+ <strong>${ce((Dt = this.meteogramData) == null ? void 0 : Dt.dates[NA]).tz(this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong>
19886
19888
  </div>
19887
19889
  <div style="display: ${(ht = this.meteogramData) != null && ht.weatherNames[NA] ? "block" : "none"}; font-size: 13px;">
19888
19890
  <span>Weather : </span><strong>${(Ye = this.meteogramData) == null ? void 0 : Ye.weatherNames[NA]}</strong>
@@ -20241,7 +20243,7 @@ const oC = {
20241
20243
  formatter: (hA) => {
20242
20244
  var ne, YA, ae, Qe, ge, et, me, We, tt, be;
20243
20245
  const NA = (ne = hA == null ? void 0 : hA[0]) == null ? void 0 : ne.dataIndex;
20244
- return hA.find((oe) => oe.seriesType === "scatter") ? !1 : `<div style="font-size: 13px;"><strong>${le((YA = this.meteogramData) == null ? void 0 : YA.dates[NA]).tz(this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
20246
+ return hA.find((oe) => oe.seriesType === "scatter") ? !1 : `<div style="font-size: 13px;"><strong>${ce((YA = this.meteogramData) == null ? void 0 : YA.dates[NA]).tz(this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
20245
20247
  <div style="font-size: 13px;display: ${isNaN((ae = hA[0]) == null ? void 0 : ae.value) ? "none" : "block"}">
20246
20248
  <span style="display:inline-block; height: 10px;width: 10px;border-radius: 50%;background-color: #60c43e;}"></span>
20247
20249
  <span>Wind Speed : </span><strong>${(Qe = hA[0]) == null ? void 0 : Qe.value}</strong><span style="padding-left: 3px;">kts</span>
@@ -20544,7 +20546,7 @@ const oC = {
20544
20546
  initHourlyTableData(t, A) {
20545
20547
  var i, a, o, c, u, d, w, B, f, m, Q, S, v, L, _, W, J, Z, X, T, Y, cA, U, F, K, k, iA, AA, q, V, tA, oA, CA, b, M, P, N, z, sA, uA, gA, yA, bA, LA, DA, jA, dA, R, zA;
20546
20548
  this.hourlyTableData = [];
20547
- const e = A || 14, r = ((o = (a = (i = t == null ? void 0 : t.weather) == null ? void 0 : i[0]) == null ? void 0 : a.hourly) == null ? void 0 : o.date) || this.etime, n = le(r).tz(this.positionGmt).format();
20549
+ const e = A || 14, r = ((o = (a = (i = t == null ? void 0 : t.weather) == null ? void 0 : i[0]) == null ? void 0 : a.hourly) == null ? void 0 : o.date) || this.etime, n = ce(r).tz(this.positionGmt).format();
20548
20550
  debugger;
20549
20551
  for (let lA = 0; lA < e * 24; lA++) {
20550
20552
  let wA, MA;