@idmwx/idmui-gl4 0.7.7 → 0.7.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ var Ia = (t, e, o) => e in t ? Ta(t, e, { enumerable: !0, configurable: !0, writ
3
3
  var se = (t, e, o) => (Ia(t, typeof e != "symbol" ? e + "" : e, o), o);
4
4
  import Be from "axios";
5
5
  import { useTheme as Ee } from "vuetify";
6
- import { openBlock as b, createElementBlock as T, resolveComponent as w, withDirectives as He, createBlock as j, withCtx as u, createVNode as m, createElementVNode as l, vShow as We, toDisplayString as y, createTextVNode as G, normalizeStyle as ae, mergeProps as B, normalizeClass as Ye, Fragment as ke, renderList as Le, createCommentVNode as O, withModifiers as Aa } from "vue";
6
+ import { openBlock as b, createElementBlock as T, resolveComponent as w, withDirectives as He, createBlock as j, withCtx as u, createVNode as m, createElementVNode as l, vShow as We, toDisplayString as y, createTextVNode as G, normalizeStyle as ae, mergeProps as B, normalizeClass as Ge, Fragment as ke, renderList as Le, createCommentVNode as O, withModifiers as Aa } from "vue";
7
7
  import we from "mapbox-gl";
8
8
  import { LngLatHelper as oe, TropicalHelper as Pa, LaneHelper as Fe } from "@idm-plugin/geo";
9
9
  import * as E from "@turf/turf";
@@ -1943,7 +1943,7 @@ const Fi = {
1943
1943
  }, Qi = { class: "text-body-2 text-center pt-1" };
1944
1944
  function Ji(t, e, o, i, a, r) {
1945
1945
  var $, ee, Q, le, de, pe, me, K, ie, ue;
1946
- const s = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), g = w("VCardItem"), p = w("VCheckbox"), d = w("VCardText"), f = w("VCard"), z = w("IdmTideStations"), x = w("IdmIceAreas"), S = w("IdmWorld12nm"), C = w("IdmWorldMarine"), N = w("IdmChinaRoute"), M = w("IdmWarZone"), L = w("IdmGmdssArea"), v = w("IdmEcaZone"), k = w("IdmAlertZone"), P = w("IdmPort"), _ = w("IdmLoadLine"), I = w("IdmTimezone"), V = w("IdmVRA"), X = w("IdmSpecialArea"), q = w("IdmTerminator"), Y = w("IdmLatLng");
1946
+ const s = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), g = w("VCardItem"), p = w("VCheckbox"), d = w("VCardText"), f = w("VCard"), z = w("IdmTideStations"), x = w("IdmIceAreas"), S = w("IdmWorld12nm"), C = w("IdmWorldMarine"), N = w("IdmChinaRoute"), M = w("IdmWarZone"), L = w("IdmGmdssArea"), v = w("IdmEcaZone"), _ = w("IdmAlertZone"), P = w("IdmPort"), k = w("IdmLoadLine"), I = w("IdmTimezone"), V = w("IdmVRA"), X = w("IdmSpecialArea"), q = w("IdmTerminator"), Y = w("IdmLatLng");
1947
1947
  return b(), T("div", Hi, [
1948
1948
  l("div", {
1949
1949
  class: "menu-bar-box transition px-1 rounded",
@@ -1972,7 +1972,7 @@ function Ji(t, e, o, i, a, r) {
1972
1972
  }, 8, ["text"])
1973
1973
  ], 4),
1974
1974
  l("div", {
1975
- class: Ye(["available-layers transition", a.toggle ? "right-bar" : ""]),
1975
+ class: Ge(["available-layers transition", a.toggle ? "right-bar" : ""]),
1976
1976
  style: ae({ top: o.top + "px", right: a.toggle ? "0px" : "-280px" })
1977
1977
  }, [
1978
1978
  l("div", Wi, [
@@ -2023,7 +2023,7 @@ function Ji(t, e, o, i, a, r) {
2023
2023
  onClick: (ne) => r.handleToggleMapFeather(F)
2024
2024
  }, [
2025
2025
  l("div", {
2026
- class: Ye([a.mapFeather === F.value ? "active" : "", "img-box"])
2026
+ class: Ge([a.mapFeather === F.value ? "active" : "", "img-box"])
2027
2027
  }, [
2028
2028
  F.value === "dark" ? (b(), T("img", Zi)) : F.value === "nautical" ? (b(), T("img", Xi)) : F.value === "satellite" ? (b(), T("img", qi)) : (b(), T("img", Ki))
2029
2029
  ], 2),
@@ -2220,7 +2220,7 @@ function Ji(t, e, o, i, a, r) {
2220
2220
  map: o.map,
2221
2221
  zone: (Q = a.otherLayers) == null ? void 0 : Q["eca-zones"]
2222
2222
  }, t.$attrs), null, 16, ["map", "zone"])) : O("", !0),
2223
- o.map ? (b(), j(k, B({
2223
+ o.map ? (b(), j(_, B({
2224
2224
  key: 8,
2225
2225
  map: o.map,
2226
2226
  zone: (le = a.otherLayers) == null ? void 0 : le["alert-zones"]
@@ -2234,7 +2234,7 @@ function Ji(t, e, o, i, a, r) {
2234
2234
  port: (de = a.otherLayers) == null ? void 0 : de.ports,
2235
2235
  "forecast-model": o.forecastModel
2236
2236
  }, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "port", "forecast-model"])) : O("", !0),
2237
- o.map ? (b(), j(_, B({
2237
+ o.map ? (b(), j(k, B({
2238
2238
  key: 10,
2239
2239
  map: o.map,
2240
2240
  line: (pe = a.otherLayers) == null ? void 0 : pe["load-lines"]
@@ -2504,7 +2504,7 @@ class Ne {
2504
2504
  p.resolution && o.uniform2f(p.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), p.image && o.uniform1i(p.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, r), p.color && o.uniform1i(p.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (p.uvRange && o.uniform2f(p.uvRange, c.uvRange[0], c.uvRange[1]), p.sRange && o.uniform2f(p.sRange, c.sRange[0], c.sRange[1])), p.scale && o.uniform1f(p.scale, (c == null ? void 0 : c.scale) || 1);
2505
2505
  const d = e.getBoundPixel(), f = e.map.getZoom() + 1, z = e.getWorldCopy(d, f);
2506
2506
  for (const x of z) {
2507
- const S = (x[0] - d[0]) * e.ratio, C = (x[1] - d[3]) * e.ratio, N = x[2] * e.ratio, [M, L, v, k] = [S, N + S, C, N + C], P = new Float32Array([M, v, L, v, M, k, M, k, L, v, L, k]);
2507
+ const S = (x[0] - d[0]) * e.ratio, C = (x[1] - d[3]) * e.ratio, N = x[2] * e.ratio, [M, L, v, _] = [S, N + S, C, N + C], P = new Float32Array([M, v, L, v, M, _, M, _, L, v, L, _]);
2508
2508
  o.bindBuffer(o.ARRAY_BUFFER, s), o.bufferData(o.ARRAY_BUFFER, P, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
2509
2509
  }
2510
2510
  } catch (p) {
@@ -5180,17 +5180,17 @@ const al = {
5180
5180
  key: P
5181
5181
  },
5182
5182
  responseType: /\.(jpg|png)$/.test(L[P]) ? "blob" : "json"
5183
- }).catch((_) => {
5184
- console.log(`[${P}] fetch layer error: ${_}`);
5183
+ }).catch((k) => {
5184
+ console.log(`[${P}] fetch layer error: ${k}`);
5185
5185
  })
5186
5186
  );
5187
- const k = await Promise.all(v);
5188
- this.weatherLayers = {}, k.map((P) => {
5187
+ const _ = await Promise.all(v);
5188
+ this.weatherLayers = {}, _.map((P) => {
5189
5189
  var V, X, q, Y;
5190
- const _ = ((V = P == null ? void 0 : P.data) == null ? void 0 : V.data) || (P == null ? void 0 : P.data);
5190
+ const k = ((V = P == null ? void 0 : P.data) == null ? void 0 : V.data) || (P == null ? void 0 : P.data);
5191
5191
  let I = (q = (X = P == null ? void 0 : P.config) == null ? void 0 : X.headers) == null ? void 0 : q.key;
5192
- I && _ && (this.weatherLayers[I] = {
5193
- raw: _,
5192
+ I && k && (this.weatherLayers[I] = {
5193
+ raw: k,
5194
5194
  type: ((Y = P == null ? void 0 : P.config) == null ? void 0 : Y.responseType) === "blob" ? "image" : "json",
5195
5195
  etime: M.data.etime
5196
5196
  });
@@ -5282,40 +5282,40 @@ const al = {
5282
5282
  if (C === "swell") {
5283
5283
  N = !0;
5284
5284
  const L = ((d = this.weatherLayers[C]) == null ? void 0 : d.direction) || {};
5285
- for (const k in L)
5286
- if (k > c && k < n && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5287
- const P = L[k].lng;
5288
- r > s ? P.forEach((_, I) => {
5285
+ for (const _ in L)
5286
+ if (_ > c && _ < n && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5287
+ const P = L[_].lng;
5288
+ r > s ? P.forEach((k, I) => {
5289
5289
  var V, X, q, Y, $, ee;
5290
5290
  if (a < 2) {
5291
- if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
5292
- const Q = E.point([_, k], {
5293
- val: ((V = L[k].val) == null ? void 0 : V[I]) || ((X = L[k].dir) == null ? void 0 : X[I]),
5294
- spd: (q = L[k].spd) == null ? void 0 : q[I]
5291
+ if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
5292
+ const Q = E.point([k, _], {
5293
+ val: ((V = L[_].val) == null ? void 0 : V[I]) || ((X = L[_].dir) == null ? void 0 : X[I]),
5294
+ spd: (q = L[_].spd) == null ? void 0 : q[I]
5295
5295
  });
5296
5296
  M.push(Q);
5297
5297
  }
5298
- } else if ((_ >= r && _ <= 180 || _ >= -180 && _ <= s) && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5299
- const Q = E.point([_, k], {
5300
- val: ((Y = L[k].val) == null ? void 0 : Y[I]) || (($ = L[k].dir) == null ? void 0 : $[I]),
5301
- spd: (ee = L[k].spd) == null ? void 0 : ee[I]
5298
+ } else if ((k >= r && k <= 180 || k >= -180 && k <= s) && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5299
+ const Q = E.point([k, _], {
5300
+ val: ((Y = L[_].val) == null ? void 0 : Y[I]) || (($ = L[_].dir) == null ? void 0 : $[I]),
5301
+ spd: (ee = L[_].spd) == null ? void 0 : ee[I]
5302
5302
  });
5303
5303
  M.push(Q);
5304
5304
  }
5305
- }) : P.forEach((_, I) => {
5305
+ }) : P.forEach((k, I) => {
5306
5306
  var V, X, q, Y, $, ee;
5307
5307
  if (r < 2) {
5308
- if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
5309
- const Q = E.point([_, k], {
5310
- val: ((V = L[k].val) == null ? void 0 : V[I]) || ((X = L[k].dir) == null ? void 0 : X[I]),
5311
- spd: (q = L[k].spd) == null ? void 0 : q[I]
5308
+ if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
5309
+ const Q = E.point([k, _], {
5310
+ val: ((V = L[_].val) == null ? void 0 : V[I]) || ((X = L[_].dir) == null ? void 0 : X[I]),
5311
+ spd: (q = L[_].spd) == null ? void 0 : q[I]
5312
5312
  });
5313
5313
  M.push(Q);
5314
5314
  }
5315
- } else if (_ >= r && _ <= s && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5316
- const Q = E.point([_, k], {
5317
- val: ((Y = L[k].val) == null ? void 0 : Y[I]) || (($ = L[k].dir) == null ? void 0 : $[I]),
5318
- spd: (ee = L[k].spd) == null ? void 0 : ee[I]
5315
+ } else if (k >= r && k <= s && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5316
+ const Q = E.point([k, _], {
5317
+ val: ((Y = L[_].val) == null ? void 0 : Y[I]) || (($ = L[_].dir) == null ? void 0 : $[I]),
5318
+ spd: (ee = L[_].spd) == null ? void 0 : ee[I]
5319
5319
  });
5320
5320
  M.push(Q);
5321
5321
  }
@@ -5325,61 +5325,61 @@ const al = {
5325
5325
  const v = this.weatherLayers[C].height;
5326
5326
  if (v) {
5327
5327
  if (!v.data) {
5328
- const k = [];
5328
+ const _ = [];
5329
5329
  for (const P in (f = v.raw) == null ? void 0 : f.LineString) {
5330
- const _ = v.raw.LineString[P];
5331
- for (const I of _)
5332
- k.push(
5330
+ const k = v.raw.LineString[P];
5331
+ for (const I of k)
5332
+ _.push(
5333
5333
  E.lineString(I, {
5334
5334
  val: Number(P)
5335
5335
  })
5336
5336
  );
5337
- v.data = E.featureCollection(k);
5337
+ v.data = E.featureCollection(_);
5338
5338
  }
5339
5339
  }
5340
5340
  if (v.data) {
5341
- const k = this.handleBboxClip(v.data, i);
5342
- M = M.concat(k);
5341
+ const _ = this.handleBboxClip(v.data, i);
5342
+ M = M.concat(_);
5343
5343
  }
5344
5344
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", o, ", total: ", e += o);
5345
5345
  }
5346
5346
  } else if (C === "current") {
5347
5347
  N = !0;
5348
5348
  const L = ((z = this.weatherLayers[C]) == null ? void 0 : z.direction) || {};
5349
- for (const k in L)
5350
- if (k > c && k < n && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5351
- const P = L[k].lng;
5352
- r > s ? P.forEach((_, I) => {
5349
+ for (const _ in L)
5350
+ if (_ > c && _ < n && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5351
+ const P = L[_].lng;
5352
+ r > s ? P.forEach((k, I) => {
5353
5353
  var V, X, q, Y, $, ee;
5354
5354
  if (a < 2) {
5355
- if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
5356
- const Q = E.point([_, k], {
5357
- val: ((V = L[k].val) == null ? void 0 : V[I]) || ((X = L[k].dir) == null ? void 0 : X[I]),
5358
- spd: (q = L[k].spd) == null ? void 0 : q[I]
5355
+ if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
5356
+ const Q = E.point([k, _], {
5357
+ val: ((V = L[_].val) == null ? void 0 : V[I]) || ((X = L[_].dir) == null ? void 0 : X[I]),
5358
+ spd: (q = L[_].spd) == null ? void 0 : q[I]
5359
5359
  });
5360
5360
  M.push(Q);
5361
5361
  }
5362
- } else if ((_ >= r && _ <= 180 || _ >= -180 && _ <= s) && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5363
- const Q = E.point([_, k], {
5364
- val: ((Y = L[k].val) == null ? void 0 : Y[I]) || (($ = L[k].dir) == null ? void 0 : $[I]),
5365
- spd: (ee = L[k].spd) == null ? void 0 : ee[I]
5362
+ } else if ((k >= r && k <= 180 || k >= -180 && k <= s) && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5363
+ const Q = E.point([k, _], {
5364
+ val: ((Y = L[_].val) == null ? void 0 : Y[I]) || (($ = L[_].dir) == null ? void 0 : $[I]),
5365
+ spd: (ee = L[_].spd) == null ? void 0 : ee[I]
5366
5366
  });
5367
5367
  M.push(Q);
5368
5368
  }
5369
- }) : P.forEach((_, I) => {
5369
+ }) : P.forEach((k, I) => {
5370
5370
  var V, X, q, Y, $, ee;
5371
5371
  if (r < 2) {
5372
- if ((_ >= 0 && _ <= 360 || _ >= -360 && _ <= 0) && _ % 10 === 0) {
5373
- const Q = E.point([_, k], {
5374
- val: ((V = L[k].val) == null ? void 0 : V[I]) || ((X = L[k].dir) == null ? void 0 : X[I]),
5375
- spd: (q = L[k].spd) == null ? void 0 : q[I]
5372
+ if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
5373
+ const Q = E.point([k, _], {
5374
+ val: ((V = L[_].val) == null ? void 0 : V[I]) || ((X = L[_].dir) == null ? void 0 : X[I]),
5375
+ spd: (q = L[_].spd) == null ? void 0 : q[I]
5376
5376
  });
5377
5377
  M.push(Q);
5378
5378
  }
5379
- } else if (_ >= r && _ <= s && (!(a <= this.zoom) || _ % (a < this.zoom / 2 ? 5 : 3) === 0)) {
5380
- const Q = E.point([_, k], {
5381
- val: ((Y = L[k].val) == null ? void 0 : Y[I]) || (($ = L[k].dir) == null ? void 0 : $[I]),
5382
- spd: (ee = L[k].spd) == null ? void 0 : ee[I]
5379
+ } else if (k >= r && k <= s && (!(a <= this.zoom) || k % (a < this.zoom / 2 ? 5 : 3) === 0)) {
5380
+ const Q = E.point([k, _], {
5381
+ val: ((Y = L[_].val) == null ? void 0 : Y[I]) || (($ = L[_].dir) == null ? void 0 : $[I]),
5382
+ spd: (ee = L[_].spd) == null ? void 0 : ee[I]
5383
5383
  });
5384
5384
  M.push(Q);
5385
5385
  }
@@ -5390,57 +5390,57 @@ const al = {
5390
5390
  if (v) {
5391
5391
  if (!v.data) {
5392
5392
  const P = [];
5393
- for (const _ in (x = v.raw) == null ? void 0 : x.Polygon) {
5394
- const I = v.raw.Polygon[_];
5393
+ for (const k in (x = v.raw) == null ? void 0 : x.Polygon) {
5394
+ const I = v.raw.Polygon[k];
5395
5395
  for (const V of I)
5396
5396
  P.push(
5397
5397
  E.polygon(V, {
5398
- val: Number(_)
5398
+ val: Number(k)
5399
5399
  })
5400
5400
  );
5401
5401
  }
5402
5402
  v.data = E.featureCollection(P);
5403
5403
  }
5404
- const k = a < this.zoom ? v.data.features.filter((P) => P.properties.val > 0.5) : v.data.features;
5405
- M = M.concat(k), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
5404
+ const _ = a < this.zoom ? v.data.features.filter((P) => P.properties.val > 0.5) : v.data.features;
5405
+ M = M.concat(_), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
5406
5406
  }
5407
5407
  } else if (C === "wind") {
5408
5408
  N = !0;
5409
5409
  const L = this.weatherLayers.wind.raw;
5410
5410
  for (const v in L)
5411
5411
  if (v > c && v < n && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5412
- const k = L[v].lng;
5413
- r > s ? k.forEach((P, _) => {
5412
+ const _ = L[v].lng;
5413
+ r > s ? _.forEach((P, k) => {
5414
5414
  var I, V, X, q;
5415
5415
  if (a < 2) {
5416
5416
  if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
5417
5417
  const Y = E.point([P, v], {
5418
- dir: ((I = L[v].val) == null ? void 0 : I[_]) || ((V = L[v].dir) == null ? void 0 : V[_]),
5419
- spd: L[v].spd[_]
5418
+ dir: ((I = L[v].val) == null ? void 0 : I[k]) || ((V = L[v].dir) == null ? void 0 : V[k]),
5419
+ spd: L[v].spd[k]
5420
5420
  });
5421
5421
  M.push(Y);
5422
5422
  }
5423
5423
  } else if ((P >= r && P <= 180 || P >= -180 && P <= s) && (!(a <= this.zoom) || P % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5424
5424
  const Y = E.point([P, v], {
5425
- dir: ((X = L[v].val) == null ? void 0 : X[_]) || ((q = L[v].dir) == null ? void 0 : q[_]),
5426
- spd: L[v].spd[_]
5425
+ dir: ((X = L[v].val) == null ? void 0 : X[k]) || ((q = L[v].dir) == null ? void 0 : q[k]),
5426
+ spd: L[v].spd[k]
5427
5427
  });
5428
5428
  M.push(Y);
5429
5429
  }
5430
- }) : k.forEach((P, _) => {
5430
+ }) : _.forEach((P, k) => {
5431
5431
  var I, V, X, q;
5432
5432
  if (a < 2) {
5433
5433
  if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
5434
5434
  const Y = E.point([P, v], {
5435
- dir: ((I = L[v].val) == null ? void 0 : I[_]) || ((V = L[v].dir) == null ? void 0 : V[_]),
5436
- spd: L[v].spd[_]
5435
+ dir: ((I = L[v].val) == null ? void 0 : I[k]) || ((V = L[v].dir) == null ? void 0 : V[k]),
5436
+ spd: L[v].spd[k]
5437
5437
  });
5438
5438
  M.push(Y);
5439
5439
  }
5440
5440
  } else if (P >= r && P <= s && (!(a <= this.zoom) || P % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5441
5441
  const Y = E.point([P, v], {
5442
- dir: ((X = L[v].val) == null ? void 0 : X[_]) || ((q = L[v].dir) == null ? void 0 : q[_]),
5443
- spd: L[v].spd[_]
5442
+ dir: ((X = L[v].val) == null ? void 0 : X[k]) || ((q = L[v].dir) == null ? void 0 : q[k]),
5443
+ spd: L[v].spd[k]
5444
5444
  });
5445
5445
  M.push(Y);
5446
5446
  }
@@ -5455,30 +5455,30 @@ const al = {
5455
5455
  const L = this.weatherLayers[C].raw;
5456
5456
  if (L) {
5457
5457
  const v = [];
5458
- for (const k in L.Polygon) {
5459
- const P = L.Polygon[k];
5460
- for (const _ of P)
5458
+ for (const _ in L.Polygon) {
5459
+ const P = L.Polygon[_];
5460
+ for (const k of P)
5461
5461
  v.push(
5462
- E.polygon(_, {
5463
- val: Number(k)
5462
+ E.polygon(k, {
5463
+ val: Number(_)
5464
5464
  })
5465
5465
  );
5466
5466
  }
5467
- for (const k in L.MultiPolygon) {
5468
- const P = L.MultiPolygon[k];
5469
- for (const _ of P)
5467
+ for (const _ in L.MultiPolygon) {
5468
+ const P = L.MultiPolygon[_];
5469
+ for (const k of P)
5470
5470
  v.push(
5471
- E.multiPolygon(_, {
5472
- val: Number(k)
5471
+ E.multiPolygon(k, {
5472
+ val: Number(_)
5473
5473
  })
5474
5474
  );
5475
5475
  }
5476
- for (const k in L.Point) {
5477
- const P = L.Point[k];
5478
- for (let _ = 0; _ < ((S = P.lng) == null ? void 0 : S.length); _++)
5476
+ for (const _ in L.Point) {
5477
+ const P = L.Point[_];
5478
+ for (let k = 0; k < ((S = P.lng) == null ? void 0 : S.length); k++)
5479
5479
  v.push(
5480
- E.point([P.lng[_], k], {
5481
- val: Number(P.val[_])
5480
+ E.point([P.lng[k], _], {
5481
+ val: Number(P.val[k])
5482
5482
  })
5483
5483
  );
5484
5484
  }
@@ -5494,21 +5494,21 @@ const al = {
5494
5494
  const L = this.weatherLayers[C].raw;
5495
5495
  if (L) {
5496
5496
  const v = [];
5497
- for (const k in L.LineString) {
5498
- const P = L.LineString[k];
5499
- for (const _ of P)
5497
+ for (const _ in L.LineString) {
5498
+ const P = L.LineString[_];
5499
+ for (const k of P)
5500
5500
  v.push(
5501
- E.lineString(_, {
5502
- val: Number(k)
5501
+ E.lineString(k, {
5502
+ val: Number(_)
5503
5503
  })
5504
5504
  );
5505
5505
  }
5506
- for (const k in L.Point)
5507
- L.Point[k].lng.forEach((P, _) => {
5506
+ for (const _ in L.Point)
5507
+ L.Point[_].lng.forEach((P, k) => {
5508
5508
  P = oe.convertToStdLng(P), v.push(
5509
- E.point([P, k], {
5510
- val: L.Point[k].val[_],
5511
- type: L.Point[k].type[_]
5509
+ E.point([P, _], {
5510
+ val: L.Point[_].val[k],
5511
+ type: L.Point[_].type[k]
5512
5512
  })
5513
5513
  );
5514
5514
  });
@@ -5560,7 +5560,7 @@ const al = {
5560
5560
  }, wl = { class: "text-body-1 py-2" }, xl = { class: "text-body-1 font-weight-medium" }, vl = { class: "text-body-2 opacity-70" }, _l = { class: "text-body-2 opacity-70 mb-3" }, kl = { class: "text-body-1 font-weight-medium" }, zl = { class: "text-body-2 opacity-70" }, Ll = { class: "text-body-2 opacity-70 mb-3" }, Pl = { class: "text-body-1 py-2" }, Cl = { class: "text-body-1 font-weight-medium" }, Sl = { class: "text-body-2 opacity-70" }, Ml = { class: "text-body-2 opacity-70 mb-3" }, Tl = { class: "text-body-1 font-weight-medium" }, Il = { class: "text-body-2 opacity-70" }, Al = { class: "text-body-2 opacity-70 mb-3" }, Rl = { class: "text-body-1 py-2" }, Dl = { class: "text-body-1 font-weight-medium" }, Ol = { class: "text-body-2 opacity-70" }, Bl = { class: "text-body-2 opacity-70 mb-3" };
5561
5561
  function El(t, e, o, i, a, r) {
5562
5562
  var pe, me, K, ie, ue, F, ne, xe, ve, Se, Me, Te, Ie, Ae, ye;
5563
- const s = w("VBtn"), c = w("VTooltip"), n = w("VCol"), g = w("VRow"), p = w("VCardText"), d = w("VDivider"), f = w("VCard"), z = w("VSwitch"), x = w("VCardTitle"), S = w("VCardItem"), C = w("VCheckbox"), N = w("VRadio"), M = w("VBtnToggle"), L = w("IdmWindBarb"), v = w("IdmSigWaveHeight"), k = w("IdmCurrentDirection"), P = w("IdmPrmsl"), _ = w("IdmWindParticle"), I = w("IdmCurrentParticle"), V = w("IdmWave"), X = w("IdmSwell"), q = w("IdmIceEdge"), Y = w("IdmIceCover"), $ = w("IdmIceThickness"), ee = w("IdmPrecip3h"), Q = w("IdmVisibility"), le = w("IdmWaterTemp"), de = w("IdmTemp");
5563
+ const s = w("VBtn"), c = w("VTooltip"), n = w("VCol"), g = w("VRow"), p = w("VCardText"), d = w("VDivider"), f = w("VCard"), z = w("VSwitch"), x = w("VCardTitle"), S = w("VCardItem"), C = w("VCheckbox"), N = w("VRadio"), M = w("VBtnToggle"), L = w("IdmWindBarb"), v = w("IdmSigWaveHeight"), _ = w("IdmCurrentDirection"), P = w("IdmPrmsl"), k = w("IdmWindParticle"), I = w("IdmCurrentParticle"), V = w("IdmWave"), X = w("IdmSwell"), q = w("IdmIceEdge"), Y = w("IdmIceCover"), $ = w("IdmIceThickness"), ee = w("IdmPrecip3h"), Q = w("IdmVisibility"), le = w("IdmWaterTemp"), de = w("IdmTemp");
5564
5564
  return b(), T("div", il, [
5565
5565
  l("div", {
5566
5566
  class: "menu-bar-box transition pa-1",
@@ -5636,7 +5636,7 @@ function El(t, e, o, i, a, r) {
5636
5636
  default: u(() => [
5637
5637
  l("div", ll, [
5638
5638
  l("i", {
5639
- class: Ye(["iconfont", r.barbsIconName[te]]),
5639
+ class: Ge(["iconfont", r.barbsIconName[te]]),
5640
5640
  style: ae({ color: o.theme === "dark" ? "#fff" : "#000" })
5641
5641
  }, null, 6),
5642
5642
  l("span", sl, y(Number(H) < 10 ? `00${H}kts` : Number(H) < 100 ? `0${H}kts` : `${H}kts`), 1)
@@ -5722,7 +5722,7 @@ function El(t, e, o, i, a, r) {
5722
5722
  }, 8, ["style"])) : O("", !0)
5723
5723
  ])) : O("", !0),
5724
5724
  l("div", {
5725
- class: Ye(["available-layers transition flex-center", a.toggle ? "right-bar" : ""]),
5725
+ class: Ge(["available-layers transition flex-center", a.toggle ? "right-bar" : ""]),
5726
5726
  style: ae({ top: o.top + "px", right: a.toggle ? "0px" : "-280px" })
5727
5727
  }, [
5728
5728
  l("div", ul, [
@@ -5755,7 +5755,7 @@ function El(t, e, o, i, a, r) {
5755
5755
  }, 8, ["onClick"])
5756
5756
  ]),
5757
5757
  l("div", {
5758
- class: Ye(["list-box scroll pl-4 pr-2 overflow-y-auto", a.autoActive ? "" : "cursor-not-allowed"])
5758
+ class: Ge(["list-box scroll pl-4 pr-2 overflow-y-auto", a.autoActive ? "" : "cursor-not-allowed"])
5759
5759
  }, [
5760
5760
  m(f, {
5761
5761
  class: "menu-card mx-auto mb-3",
@@ -5933,13 +5933,13 @@ function El(t, e, o, i, a, r) {
5933
5933
  }),
5934
5934
  m(p, { class: "" }, {
5935
5935
  default: u(() => {
5936
- var H, te, je, Pe, he, ge, W, _e, J, re, Re, R, fe, Ce, De, Oe, A, U, Ge, Ue, Ve, ze, Ze, Xe, qe, Ke, Qe, Je, $e, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, St, Mt, Tt, It, At, Rt, Dt, Ot, Bt, Et, jt, Nt, Ft, Ht, Wt, Gt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Qt, Jt;
5936
+ var H, te, je, Pe, he, ge, W, _e, J, re, Re, R, fe, Ce, De, Oe, A, U, Ue, Ve, Ye, ze, Ze, Xe, qe, Ke, Qe, Je, $e, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, St, Mt, Tt, It, At, Rt, Dt, Ot, Bt, Et, jt, Nt, Ft, Ht, Wt, Gt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Qt, Jt;
5937
5937
  return [
5938
5938
  l("div", wl, y(t.$t("weather.atmospheric")), 1),
5939
5939
  l("div", xl, y((je = (te = (H = a.models) == null ? void 0 : H.weather) == null ? void 0 : te.NOAA) == null ? void 0 : je.source) + " " + y((ge = (he = (Pe = a.models) == null ? void 0 : Pe.weather) == null ? void 0 : he.NOAA) == null ? void 0 : ge.spatialResolution) + y(t.$t("units.km")) + " " + y((re = (J = (_e = (W = a.models) == null ? void 0 : W.weather) == null ? void 0 : _e.NOAA) == null ? void 0 : J.meta) == null ? void 0 : re.days) + y(t.$t("units.days")), 1),
5940
5940
  l("div", vl, y(t.$t("weather.source")) + ": NOAA", 1),
5941
5941
  l("div", _l, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateZ((Ce = (fe = (R = (Re = a.models) == null ? void 0 : Re.weather) == null ? void 0 : R.NOAA) == null ? void 0 : fe.meta) == null ? void 0 : Ce.initialisationTime)), 1),
5942
- l("div", kl, y((A = (Oe = (De = a.models) == null ? void 0 : De.weather) == null ? void 0 : Oe.ECMWF) == null ? void 0 : A.source) + " " + y((Ue = (Ge = (U = a.models) == null ? void 0 : U.weather) == null ? void 0 : Ge.ECMWF) == null ? void 0 : Ue.spatialResolution) + y(t.$t("units.km")) + " " + y((Xe = (Ze = (ze = (Ve = a.models) == null ? void 0 : Ve.weather) == null ? void 0 : ze.ECMWF) == null ? void 0 : Ze.meta) == null ? void 0 : Xe.days) + y(t.$t("units.days")), 1),
5942
+ l("div", kl, y((A = (Oe = (De = a.models) == null ? void 0 : De.weather) == null ? void 0 : Oe.ECMWF) == null ? void 0 : A.source) + " " + y((Ve = (Ue = (U = a.models) == null ? void 0 : U.weather) == null ? void 0 : Ue.ECMWF) == null ? void 0 : Ve.spatialResolution) + y(t.$t("units.km")) + " " + y((Xe = (Ze = (ze = (Ye = a.models) == null ? void 0 : Ye.weather) == null ? void 0 : ze.ECMWF) == null ? void 0 : Ze.meta) == null ? void 0 : Xe.days) + y(t.$t("units.days")), 1),
5943
5943
  l("div", zl, y(t.$t("weather.source")) + ": ECMWF", 1),
5944
5944
  l("div", Ll, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateZ((Je = (Qe = (Ke = (qe = a.models) == null ? void 0 : qe.weather) == null ? void 0 : Ke.ECMWF) == null ? void 0 : Qe.meta) == null ? void 0 : Je.initialisationTime)), 1),
5945
5945
  m(d),
@@ -5981,7 +5981,7 @@ function El(t, e, o, i, a, r) {
5981
5981
  "menu-toggle": o.menuToggle,
5982
5982
  "active-weather-layers": a.activeWeatherLayers
5983
5983
  }, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : O("", !0),
5984
- o.map ? (b(), j(k, B({
5984
+ o.map ? (b(), j(_, B({
5985
5985
  key: 3,
5986
5986
  map: o.map,
5987
5987
  "map-feather": o.mapFeather,
@@ -5997,7 +5997,7 @@ function El(t, e, o, i, a, r) {
5997
5997
  "menu-toggle": o.menuToggle,
5998
5998
  "active-weather-layers": a.activeWeatherLayers
5999
5999
  }, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : O("", !0),
6000
- o.map ? (b(), j(_, B({
6000
+ o.map ? (b(), j(k, B({
6001
6001
  key: 5,
6002
6002
  viewport: a.viewport,
6003
6003
  factor: (ue = a.weatherLayers) == null ? void 0 : ue["wind-particle"],
@@ -6413,7 +6413,7 @@ class Ca {
6413
6413
  }), a;
6414
6414
  }
6415
6415
  static pickHourly(e, o) {
6416
- var i, a, r, s, c, n, g, p, d, f, z, x, S, C, N, M, L, v, k, P, _, I, V, X, q, Y, $, ee, Q, le, de, pe, me, K, ie, ue, F, ne, xe, ve, Se, Me, Te, Ie, Ae, ye, H, te, je, Pe;
6416
+ var i, a, r, s, c, n, g, p, d, f, z, x, S, C, N, M, L, v, _, P, k, I, V, X, q, Y, $, ee, Q, le, de, pe, me, K, ie, ue, F, ne, xe, ve, Se, Me, Te, Ie, Ae, ye, H, te, je, Pe;
6417
6417
  const he = typeof o == "string" ? D(o) : o, ge = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, _e = D((a = (i = ge == null ? void 0 : ge[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), J = _e.clone().add((c = (s = (r = ge == null ? void 0 : ge[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), re = _e.clone().add((p = (g = (n = ge == null ? void 0 : ge[0]) == null ? void 0 : n.hourly) == null ? void 0 : g.time) == null ? void 0 : p.at(-1), "h"), Re = [];
6418
6418
  if (he.isBetween(J, re, "millisecond", "[]")) {
6419
6419
  const R = he.utc().diff(J, "h", !1);
@@ -6439,10 +6439,10 @@ class Ca {
6439
6439
  },
6440
6440
  pmsl: (L = U == null ? void 0 : U.pressure_msl) == null ? void 0 : L.at(R),
6441
6441
  psurf: (v = U == null ? void 0 : U.surface_pressure) == null ? void 0 : v.at(R),
6442
- code: (k = U == null ? void 0 : U.weather_code) == null ? void 0 : k.at(R),
6442
+ code: (_ = U == null ? void 0 : U.weather_code) == null ? void 0 : _.at(R),
6443
6443
  visibility: this.m2nm((P = U == null ? void 0 : U.visibility) == null ? void 0 : P.at(R)),
6444
6444
  wind: {
6445
- speed: (_ = U == null ? void 0 : U.wind_speed_10m) == null ? void 0 : _.at(R),
6445
+ speed: (k = U == null ? void 0 : U.wind_speed_10m) == null ? void 0 : k.at(R),
6446
6446
  kts: (I = U == null ? void 0 : U.wind_speed_10m) == null ? void 0 : I.at(R),
6447
6447
  degree: (V = U == null ? void 0 : U.wind_direction_10m) == null ? void 0 : V.at(R),
6448
6448
  bearing: ((X = U == null ? void 0 : U.wind_direction_10m) == null ? void 0 : X.at(R)) !== null ? (((q = U == null ? void 0 : U.wind_direction_10m) == null ? void 0 : q.at(R)) + 180) % 360 : null,
@@ -6450,8 +6450,8 @@ class Ca {
6450
6450
  },
6451
6451
  isDay: ($ = U == null ? void 0 : U.is_day) == null ? void 0 : $.at(R)
6452
6452
  };
6453
- const { name: Ge, url: Ue, bg: Ve } = this.parseWeatherCode(fe.code, fe.isDay);
6454
- fe.name = Ge, fe.url = Ue, fe.bg = Ve, fe.wind.scale = this.beaufort(this.kts2ms(fe.wind.kts)), fe.wind.direction = this.degree2Direction(fe.wind.degree), Re.push({
6453
+ const { name: Ue, url: Ve, bg: Ye } = this.parseWeatherCode(fe.code, fe.isDay);
6454
+ fe.name = Ue, fe.url = Ve, fe.bg = Ye, fe.wind.scale = this.beaufort(this.kts2ms(fe.wind.kts)), fe.wind.direction = this.degree2Direction(fe.wind.degree), Re.push({
6455
6455
  utc: J.add(R, "h").format(),
6456
6456
  model: A.model,
6457
6457
  weather: { ...fe }
@@ -6522,7 +6522,7 @@ class Ca {
6522
6522
  };
6523
6523
  }
6524
6524
  static pickDaily(e, o) {
6525
- var i, a, r, s, c, n, g, p, d, f, z, x, S, C, N, M, L, v, k, P, _, I, V, X, q, Y, $, ee, Q, le, de, pe, me, K, ie, ue, F, ne, xe, ve, Se, Me, Te, Ie;
6525
+ var i, a, r, s, c, n, g, p, d, f, z, x, S, C, N, M, L, v, _, P, k, I, V, X, q, Y, $, ee, Q, le, de, pe, me, K, ie, ue, F, ne, xe, ve, Se, Me, Te, Ie;
6526
6526
  const Ae = typeof o == "string" ? D(o) : o, ye = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, te = D((r = (a = (i = ye == null ? void 0 : ye[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), je = D((n = (c = (s = ye == null ? void 0 : ye[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Pe = [];
6527
6527
  if (Ae.isBetween(te, je, "millisecond", "[]")) {
6528
6528
  let he, ge;
@@ -6550,9 +6550,9 @@ class Ca {
6550
6550
  probability: (v = J.precipitation_probability_max) == null ? void 0 : v.at(W)
6551
6551
  },
6552
6552
  rh: {
6553
- max: (k = J.relative_humidity_2m_max) == null ? void 0 : k.at(W),
6553
+ max: (_ = J.relative_humidity_2m_max) == null ? void 0 : _.at(W),
6554
6554
  min: (P = J.relative_humidity_2m_min) == null ? void 0 : P.at(W),
6555
- mean: (_ = J.relative_humidity_2m_mean) == null ? void 0 : _.at(W)
6555
+ mean: (k = J.relative_humidity_2m_mean) == null ? void 0 : k.at(W)
6556
6556
  },
6557
6557
  wind: {
6558
6558
  speed: (I = J.wind_speed_10m_max) == null ? void 0 : I.at(W),
@@ -7450,7 +7450,7 @@ const Nl = {
7450
7450
  ), this.showTropicalsInfo = !1;
7451
7451
  },
7452
7452
  handleDateChange() {
7453
- var t, e, o, i, a, r, s, c, n, g, p, d, f, z, x, S, C, N, M, L, v, k, P, _, I, V, X, q, Y, $, ee, Q;
7453
+ var t, e, o, i, a, r, s, c, n, g, p, d, f, z, x, S, C, N, M, L, v, _, P, k, I, V, X, q, Y, $, ee, Q;
7454
7454
  if ((t = this.interpolateMarkers) == null || t.forEach((le) => le == null ? void 0 : le.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
7455
7455
  const le = D(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), de = this.interpolateData.filter((K) => K.properties.date === (le == null ? void 0 : le.format()) && !K.properties.disabled), pe = this.handleComputePolygons(de), me = E.featureCollection([...de]);
7456
7456
  pe.forEach((K) => {
@@ -7472,7 +7472,7 @@ const Nl = {
7472
7472
  for (const K of de)
7473
7473
  if (!K.properties.disabled) {
7474
7474
  let ie = "#f44336";
7475
- ((c = (s = K.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = K.properties) == null ? void 0 : n.wind) != null && g.kts) ? ie = "#03f869" : ((d = (p = K.properties) == null ? void 0 : p.wind) == null ? void 0 : d.kts) >= 32 && ((z = (f = K.properties) == null ? void 0 : f.wind) == null ? void 0 : z.kts) < 47 ? ie = "#f2f202" : ((S = (x = K.properties) == null ? void 0 : x.wind) == null ? void 0 : S.kts) >= 47 && ((N = (C = K.properties) == null ? void 0 : C.wind) == null ? void 0 : N.kts) < 63 ? ie = "#ff9100" : ((L = (M = K.properties) == null ? void 0 : M.wind) == null ? void 0 : L.kts) >= 63 && ((k = (v = K.properties) == null ? void 0 : v.wind) == null ? void 0 : k.kts) < 79 ? ie = "#f44336" : ((_ = (P = K.properties) == null ? void 0 : P.wind) == null ? void 0 : _.kts) >= 79 && ((V = (I = K.properties) == null ? void 0 : I.wind) == null ? void 0 : V.kts) < 94 ? ie = "#f903d0" : ((q = (X = K.properties) == null ? void 0 : X.wind) == null ? void 0 : q.kts) >= 94 ? ie = "#8702f9" : ie = "#f44336";
7475
+ ((c = (s = K.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = K.properties) == null ? void 0 : n.wind) != null && g.kts) ? ie = "#03f869" : ((d = (p = K.properties) == null ? void 0 : p.wind) == null ? void 0 : d.kts) >= 32 && ((z = (f = K.properties) == null ? void 0 : f.wind) == null ? void 0 : z.kts) < 47 ? ie = "#f2f202" : ((S = (x = K.properties) == null ? void 0 : x.wind) == null ? void 0 : S.kts) >= 47 && ((N = (C = K.properties) == null ? void 0 : C.wind) == null ? void 0 : N.kts) < 63 ? ie = "#ff9100" : ((L = (M = K.properties) == null ? void 0 : M.wind) == null ? void 0 : L.kts) >= 63 && ((_ = (v = K.properties) == null ? void 0 : v.wind) == null ? void 0 : _.kts) < 79 ? ie = "#f44336" : ((k = (P = K.properties) == null ? void 0 : P.wind) == null ? void 0 : k.kts) >= 79 && ((V = (I = K.properties) == null ? void 0 : I.wind) == null ? void 0 : V.kts) < 94 ? ie = "#f903d0" : ((q = (X = K.properties) == null ? void 0 : X.wind) == null ? void 0 : q.kts) >= 94 ? ie = "#8702f9" : ie = "#f44336";
7476
7476
  const ue = `<svg t="1719918955501"
7477
7477
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
7478
7478
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -7528,7 +7528,7 @@ const Nl = {
7528
7528
  }), (s = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || s.setData(E.featureCollection(o)), (n = (c = this.map) == null ? void 0 : c.getSource(this.clusterSource)) == null || n.setData(E.featureCollection(o)), this.handleDateChange();
7529
7529
  },
7530
7530
  handleStrikeProbability(t) {
7531
- this.$emit("tropicalProbability", index);
7531
+ this.$emit("tropicalProbability", t);
7532
7532
  },
7533
7533
  handleToggleCircles(t) {
7534
7534
  var e, o;
@@ -7650,7 +7650,7 @@ function is(t, e, o, i, a, r) {
7650
7650
  default: u(() => [
7651
7651
  m(n, null, {
7652
7652
  default: u(() => {
7653
- var f, z, x, S, C, N, M, L, v, k;
7653
+ var f, z, x, S, C, N, M, L, v, _;
7654
7654
  return [
7655
7655
  l("div", Wl, [
7656
7656
  l("span", Gl, y((f = a.activeTropicals) == null ? void 0 : f.name), 1),
@@ -7666,7 +7666,7 @@ function is(t, e, o, i, a, r) {
7666
7666
  }),
7667
7667
  l("div", Vl, [
7668
7668
  e[5] || (e[5] = l("span", { class: "opacity-70" }, "Last update: ", -1)),
7669
- l("span", null, y(r.computeTime(((M = (N = a.activeTropicals) == null ? void 0 : N.history) == null ? void 0 : M.updated) || ((k = (v = (L = a.activeTropicals) == null ? void 0 : L.forecasts) == null ? void 0 : v.filter((P) => !P.disabled)[0]) == null ? void 0 : k.date))), 1)
7669
+ l("span", null, y(r.computeTime(((M = (N = a.activeTropicals) == null ? void 0 : N.history) == null ? void 0 : M.updated) || ((_ = (v = (L = a.activeTropicals) == null ? void 0 : L.forecasts) == null ? void 0 : v.filter((P) => !P.disabled)[0]) == null ? void 0 : _.date))), 1)
7670
7670
  ])
7671
7671
  ];
7672
7672
  }),
@@ -7704,19 +7704,19 @@ function is(t, e, o, i, a, r) {
7704
7704
  style: { width: "max-content" }
7705
7705
  }, "Forecast Models : ", -1)),
7706
7706
  l("div", $l, [
7707
- (b(!0), T(ke, null, Le((v = a.activeTropicals) == null ? void 0 : v.forecasts, (k, P) => (b(), j(s, {
7707
+ (b(!0), T(ke, null, Le((v = a.activeTropicals) == null ? void 0 : v.forecasts, (_, P) => (b(), j(s, {
7708
7708
  key: P,
7709
7709
  density: "compact",
7710
- variant: k.disabled ? "outlined btn-border-2" : "flat",
7711
- color: k.disabled ? "" : "primary",
7712
- class: "model text-none text-body-1",
7713
- onClick: (_) => r.handleForecastToggle(k)
7710
+ variant: _.disabled ? "outlined" : "flat",
7711
+ color: _.disabled ? "" : "primary",
7712
+ class: Ge(["model text-none text-body-1", _.disabled ? "" : "btn-border-2"]),
7713
+ onClick: (k) => r.handleForecastToggle(_)
7714
7714
  }, {
7715
7715
  default: u(() => [
7716
- G(y(k.model), 1)
7716
+ G(y(_.model), 1)
7717
7717
  ]),
7718
7718
  _: 2
7719
- }, 1032, ["variant", "color", "onClick"]))), 128))
7719
+ }, 1032, ["variant", "color", "class", "onClick"]))), 128))
7720
7720
  ])
7721
7721
  ])
7722
7722
  ];
@@ -8354,10 +8354,10 @@ const hs = {
8354
8354
  (a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data), this.loading = !1;
8355
8355
  },
8356
8356
  initTableData(t) {
8357
- var o, i, a, r, s, c, n, g, p, d, f, z, x, S, C, N, M, L, v, k, P, _, I, V, X, q, Y, $, ee, Q, le, de, pe, me, K, ie, ue, F, ne, xe, ve;
8357
+ var o, i, a, r, s, c, n, g, p, d, f, z, x, S, C, N, M, L, v, _, P, k, I, V, X, q, Y, $, ee, Q, le, de, pe, me, K, ie, ue, F, ne, xe, ve;
8358
8358
  this.currentHourData = {}, this.positionGmt = (i = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : r.offset;
8359
8359
  const e = ((s = ao.pickHourly(t, D(this.form.dateTime))) == null ? void 0 : s[0]) || {};
8360
- this.currentHourData.utc = e.utc, this.currentHourData.lat = this.form.lat, this.currentHourData.lng = this.form.lng, this.currentHourData.temp = this.roundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((d = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : d.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((f = e == null ? void 0 : e.weather) == null ? void 0 : f.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((x = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.wind) == null ? void 0 : x.kts, 1) ?? "-", this.currentHourData.windDir = (C = (S = e == null ? void 0 : e.weather) == null ? void 0 : S.wind) == null ? void 0 : C.direction, this.currentHourData.windLevel = this.roundPrecision((M = (N = e == null ? void 0 : e.weather) == null ? void 0 : N.wind) == null ? void 0 : M.scale, 0) ?? "-", this.currentHourData.windGust = this.roundPrecision((v = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : v.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.roundPrecision((P = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : P.height, 1) ?? "-", this.currentHourData.sigwaveDir = (I = (_ = e == null ? void 0 : e.wave) == null ? void 0 : _.sig) == null ? void 0 : I.direction, this.currentHourData.sigwavePeriod = this.roundPrecision((X = (V = e == null ? void 0 : e.wave) == null ? void 0 : V.sig) == null ? void 0 : X.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.roundPrecision((Y = (q = e == null ? void 0 : e.wave) == null ? void 0 : q.wd) == null ? void 0 : Y.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.roundPrecision((le = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : le.period, 1) ?? "-", this.currentHourData.swellHeight = this.roundPrecision((pe = (de = e == null ? void 0 : e.wave) == null ? void 0 : de.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = (K = (me = e == null ? void 0 : e.wave) == null ? void 0 : me.swell) == null ? void 0 : K.direction, this.currentHourData.swellPeriod = this.roundPrecision((ue = (ie = e == null ? void 0 : e.wave) == null ? void 0 : ie.swell) == null ? void 0 : ue.period, 1) ?? "-", this.currentHourData.currentSpeed = this.roundPrecision((F = e == null ? void 0 : e.current) == null ? void 0 : F.speed, 1) ?? "-", this.currentHourData.currentDir = (ne = e == null ? void 0 : e.current) == null ? void 0 : ne.direction, this.currentHourData.currentSpeed = this.roundPrecision((xe = e == null ? void 0 : e.current) == null ? void 0 : xe.speed, 1) ?? "-", this.currentHourData.seaLevel = this.roundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.roundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (ve = e == null ? void 0 : e.weather) == null ? void 0 : ve.url;
8360
+ this.currentHourData.utc = e.utc, this.currentHourData.lat = this.form.lat, this.currentHourData.lng = this.form.lng, this.currentHourData.temp = this.roundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((d = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : d.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((f = e == null ? void 0 : e.weather) == null ? void 0 : f.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((x = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.wind) == null ? void 0 : x.kts, 1) ?? "-", this.currentHourData.windDir = (C = (S = e == null ? void 0 : e.weather) == null ? void 0 : S.wind) == null ? void 0 : C.direction, this.currentHourData.windLevel = this.roundPrecision((M = (N = e == null ? void 0 : e.weather) == null ? void 0 : N.wind) == null ? void 0 : M.scale, 0) ?? "-", this.currentHourData.windGust = this.roundPrecision((v = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : v.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.roundPrecision((P = (_ = e == null ? void 0 : e.wave) == null ? void 0 : _.sig) == null ? void 0 : P.height, 1) ?? "-", this.currentHourData.sigwaveDir = (I = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : I.direction, this.currentHourData.sigwavePeriod = this.roundPrecision((X = (V = e == null ? void 0 : e.wave) == null ? void 0 : V.sig) == null ? void 0 : X.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.roundPrecision((Y = (q = e == null ? void 0 : e.wave) == null ? void 0 : q.wd) == null ? void 0 : Y.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.roundPrecision((le = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : le.period, 1) ?? "-", this.currentHourData.swellHeight = this.roundPrecision((pe = (de = e == null ? void 0 : e.wave) == null ? void 0 : de.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = (K = (me = e == null ? void 0 : e.wave) == null ? void 0 : me.swell) == null ? void 0 : K.direction, this.currentHourData.swellPeriod = this.roundPrecision((ue = (ie = e == null ? void 0 : e.wave) == null ? void 0 : ie.swell) == null ? void 0 : ue.period, 1) ?? "-", this.currentHourData.currentSpeed = this.roundPrecision((F = e == null ? void 0 : e.current) == null ? void 0 : F.speed, 1) ?? "-", this.currentHourData.currentDir = (ne = e == null ? void 0 : e.current) == null ? void 0 : ne.direction, this.currentHourData.currentSpeed = this.roundPrecision((xe = e == null ? void 0 : e.current) == null ? void 0 : xe.speed, 1) ?? "-", this.currentHourData.seaLevel = this.roundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.roundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (ve = e == null ? void 0 : e.weather) == null ? void 0 : ve.url;
8361
8361
  },
8362
8362
  handleBind() {
8363
8363
  var t, e;
@@ -8705,7 +8705,7 @@ function Cs(t, e, o, i, a, r) {
8705
8705
  density: "compact",
8706
8706
  height: "30",
8707
8707
  value: "GFS",
8708
- class: Ye(["text-none flex-1-1-0", a.form.forecastModel === "GFS" ? "" : "btn-border-1"]),
8708
+ class: Ge(["text-none flex-1-1-0", a.form.forecastModel === "GFS" ? "" : "btn-border-1"]),
8709
8709
  color: a.form.forecastModel === "GFS" ? "primary" : "",
8710
8710
  "base-color": ""
8711
8711
  }, {
@@ -8718,7 +8718,7 @@ function Cs(t, e, o, i, a, r) {
8718
8718
  m(s, {
8719
8719
  density: "compact",
8720
8720
  height: "30",
8721
- class: Ye(["text-none flex-1-1-0", a.form.forecastModel === "ECMWF" ? "" : "btn-border-1"]),
8721
+ class: Ge(["text-none flex-1-1-0", a.form.forecastModel === "ECMWF" ? "" : "btn-border-1"]),
8722
8722
  color: a.form.forecastModel === "ECMWF" ? "primary" : "",
8723
8723
  "base-color": "",
8724
8724
  value: "ECMWF"
@@ -8787,11 +8787,11 @@ function Cs(t, e, o, i, a, r) {
8787
8787
  default: u(() => [
8788
8788
  m(n, { class: "d-flex justify-space-between align-center" }, {
8789
8789
  default: u(() => {
8790
- var v, k;
8790
+ var v, _;
8791
8791
  return [
8792
8792
  l("div", Ls, [
8793
8793
  e[23] || (e[23] = l("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
8794
- l("div", Ps, y(r.computeLat((v = a.currentHourData) == null ? void 0 : v.lat)) + "," + y(r.computeLng((k = a.currentHourData) == null ? void 0 : k.lng)), 1)
8794
+ l("div", Ps, y(r.computeLat((v = a.currentHourData) == null ? void 0 : v.lat)) + "," + y(r.computeLng((_ = a.currentHourData) == null ? void 0 : _.lng)), 1)
8795
8795
  ]),
8796
8796
  m(s, {
8797
8797
  icon: "",
@@ -9998,7 +9998,7 @@ class qs {
9998
9998
  se(this, "hi");
9999
9999
  se(this, "td");
10000
10000
  se(this, "windy");
10001
- var o, i, a, r, s, c, n, g, p, d, f, z, x, S, C, N, M, L, v, k, P, _, I, V, X, q, Y, $, ee, Q, le, de, pe, me, K, ie, ue, F, ne, xe, ve, Se, Me, Te, Ie, Ae, ye, H, te, je, Pe, he, ge, W, _e, J, re, Re, R, fe, Ce, De, Oe, A, U, Ge, Ue, Ve, ze, Ze, Xe, qe, Ke, Qe, Je, $e, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, St, Mt, Tt, It, At, Rt, Dt, Ot, Bt, Et, jt, Nt, Ft, Ht, Wt, Gt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Qt, Jt, lo, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, So, Mo, To, Io, Ao, Ro, Do, Oo, Bo, Eo, jo, No, Fo, Ho, Wo, Go, Uo, Vo, Yo, Zo, Xo, qo, Ko, Qo, Jo, $o, ea, ta, oa, aa, ia, ra, la, sa, na, ca, ma, ha, da, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La;
10001
+ var o, i, a, r, s, c, n, g, p, d, f, z, x, S, C, N, M, L, v, _, P, k, I, V, X, q, Y, $, ee, Q, le, de, pe, me, K, ie, ue, F, ne, xe, ve, Se, Me, Te, Ie, Ae, ye, H, te, je, Pe, he, ge, W, _e, J, re, Re, R, fe, Ce, De, Oe, A, U, Ue, Ve, Ye, ze, Ze, Xe, qe, Ke, Qe, Je, $e, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, St, Mt, Tt, It, At, Rt, Dt, Ot, Bt, Et, jt, Nt, Ft, Ht, Wt, Gt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Qt, Jt, lo, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, So, Mo, To, Io, Ao, Ro, Do, Oo, Bo, Eo, jo, No, Fo, Ho, Wo, Go, Uo, Vo, Yo, Zo, Xo, qo, Ko, Qo, Jo, $o, ea, ta, oa, aa, ia, ra, la, sa, na, ca, ma, ha, da, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La;
10002
10002
  this.i4 = {
10003
10003
  source: {
10004
10004
  type: "raster",
@@ -28279,8 +28279,8 @@ class qs {
28279
28279
  (S = (x = this.originStyle) == null ? void 0 : x.light.layers) == null ? void 0 : S.find((h) => h.id === "country-boundaries"),
28280
28280
  (N = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : N.find((h) => h.id === "water-outline"),
28281
28281
  (L = (M = this.originStyle) == null ? void 0 : M.light.layers) == null ? void 0 : L.find((h) => h.id === "water-outline2"),
28282
- (k = (v = this.originStyle) == null ? void 0 : v.light.layers) == null ? void 0 : k.find((h) => h.id === "empty-layer-2"),
28283
- (_ = (P = this.originStyle) == null ? void 0 : P.light.layers) == null ? void 0 : _.find((h) => h.id === "water-line-label"),
28282
+ (_ = (v = this.originStyle) == null ? void 0 : v.light.layers) == null ? void 0 : _.find((h) => h.id === "empty-layer-2"),
28283
+ (k = (P = this.originStyle) == null ? void 0 : P.light.layers) == null ? void 0 : k.find((h) => h.id === "water-line-label"),
28284
28284
  (V = (I = this.originStyle) == null ? void 0 : I.light.layers) == null ? void 0 : V.find((h) => h.id === "water-point-label"),
28285
28285
  (q = (X = this.originStyle) == null ? void 0 : X.light.layers) == null ? void 0 : q.find((h) => h.id === "world-12nm-v4-20231025"),
28286
28286
  ($ = (Y = this.originStyle) == null ? void 0 : Y.light.layers) == null ? void 0 : $.find((h) => h.id === "ne-10m-outline"),
@@ -28324,8 +28324,8 @@ class qs {
28324
28324
  (Ce = (fe = this.originStyle) == null ? void 0 : fe.dark.layers) == null ? void 0 : Ce.find((h) => h.id === "water"),
28325
28325
  (Oe = (De = this.originStyle) == null ? void 0 : De.dark.layers) == null ? void 0 : Oe.find((h) => h.id === "ice-area-fill"),
28326
28326
  (U = (A = this.originStyle) == null ? void 0 : A.dark.layers) == null ? void 0 : U.find((h) => h.id === "ice-area-line"),
28327
- (Ue = (Ge = this.originStyle) == null ? void 0 : Ge.dark.layers) == null ? void 0 : Ue.find((h) => h.id === "empty-layer-0"),
28328
- (ze = (Ve = this.originStyle) == null ? void 0 : Ve.dark.layers) == null ? void 0 : ze.find((h) => h.id === "empty-layer-1"),
28327
+ (Ve = (Ue = this.originStyle) == null ? void 0 : Ue.dark.layers) == null ? void 0 : Ve.find((h) => h.id === "empty-layer-0"),
28328
+ (ze = (Ye = this.originStyle) == null ? void 0 : Ye.dark.layers) == null ? void 0 : ze.find((h) => h.id === "empty-layer-1"),
28329
28329
  (Xe = (Ze = this.originStyle) == null ? void 0 : Ze.dark.layers) == null ? void 0 : Xe.find((h) => h.id === "country-boundaries"),
28330
28330
  (Ke = (qe = this.originStyle) == null ? void 0 : qe.dark.layers) == null ? void 0 : Ke.find((h) => h.id === "water-outline"),
28331
28331
  (Je = (Qe = this.originStyle) == null ? void 0 : Qe.dark.layers) == null ? void 0 : Je.find((h) => h.id === "empty-layer-2"),