@idmwx/idmui-gl3 5.5.3 → 5.5.5

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
@@ -5,7 +5,7 @@ import { LayerHelper as Ke, CompanyHelper as Xe } from "@idm-plugin/tag";
5
5
  import F from "moment";
6
6
  import le from "axios";
7
7
  import Ge from "moment-timezone";
8
- import { resolveComponent as z, openBlock as g, createElementBlock as f, createElementVNode as s, normalizeStyle as J, createVNode as k, withCtx as ae, normalizeClass as H, Fragment as _, renderList as N, toDisplayString as B, createCommentVNode as O, createBlock as pt, createTextVNode as U, withDirectives as fe, createStaticVNode as mt, vShow as we, defineComponent as ut, withModifiers as Ue, mergeProps as S } from "vue";
8
+ import { resolveComponent as z, openBlock as g, createElementBlock as f, createElementVNode as s, normalizeStyle as J, createVNode as k, withCtx as ae, normalizeClass as H, Fragment as _, renderList as N, toDisplayString as B, createCommentVNode as O, createBlock as pt, createTextVNode as Y, withDirectives as fe, createStaticVNode as mt, vShow as we, defineComponent as ut, withModifiers as Ue, mergeProps as S } from "vue";
9
9
  import * as D from "@turf/turf";
10
10
  import gt from "@mapbox/sphericalmercator";
11
11
  import ve from "mapbox-gl";
@@ -63,7 +63,7 @@ const T = (t, e) => {
63
63
  default: void 0
64
64
  }
65
65
  },
66
- emits: ["weather", "other", "toggleWindParticle", "toggleWindFeather", "toggleCurrentParticle", "toggleCurrentIsoband", "toggleParticeVersion", "coordinate", "measure", "point", "3d", "layerToggle", "handleToggleVersion", "login", "forecastModel"],
66
+ emits: ["weather", "other", "toggleWindParticle", "toggleWindFeather", "toggleCurrentParticle", "toggleCurrentIsoband", "toggleWindParticeVersion", "toggleCurrentParticeVersion", "coordinate", "measure", "point", "3d", "layerToggle", "handleToggleVersion", "login", "forecastModel"],
67
67
  data() {
68
68
  return {
69
69
  autoActive: !0,
@@ -74,20 +74,21 @@ const T = (t, e) => {
74
74
  other: [...Ke.OTHER_LAYERS.filter((t) => t.enabled)]
75
75
  },
76
76
  activeWeatherLayers: [],
77
+ activeWeatherLayersCollected: [],
77
78
  activeOtherLayers: [],
78
79
  autoActiveCache: "autoActiveCache",
79
80
  activeWeatherLayersCache: "activeWeatherLayersCache",
80
81
  activeOtherLayersCache: "activeOtherLayersCache",
81
82
  collectedLayerCache: "collectedLayerCache",
82
83
  sourceCache: "defaultSourceCache",
83
- windFeatherCache: "windFeatherCache",
84
- currentIsobandCache: "currentIsobandCache",
84
+ windFeatherCollectedCache: "windFeatherCollectedCache",
85
+ currentIsobandCollectedCache: "currentIsobandCollectedCache",
85
86
  showCoord: !1,
86
87
  showMeasure: !1,
87
88
  showPoint: !1,
88
89
  show3d: !1,
89
90
  version: {
90
- v: "0.0.9",
91
+ v: "0.1.0",
91
92
  k: "glCacheVersion"
92
93
  },
93
94
  source: "GFS",
@@ -137,6 +138,11 @@ const T = (t, e) => {
137
138
  t && t !== e && this.$emit("forecastModel", this.source), t && e && t !== e && this.handleConfirm();
138
139
  }
139
140
  },
141
+ activeWeatherLayers: {
142
+ handler(t, e) {
143
+ this.autoActive && (this.activeWeatherLayersCollected = this.activeWeatherLayers, localStorage.setItem(this.activeWeatherLayersCache, JSON.stringify(this.activeWeatherLayers)), console.log(999999));
144
+ }
145
+ },
140
146
  showWindParticle: {
141
147
  handler(t, e) {
142
148
  this.autoActive && (this.showWindParticleCollected = this.showWindParticle);
@@ -144,7 +150,7 @@ const T = (t, e) => {
144
150
  },
145
151
  showWindFeather: {
146
152
  handler(t, e) {
147
- this.autoActive && (this.showWindFeatherCollected = this.showWindFeather);
153
+ this.autoActive && (this.showWindFeatherCollected = this.showWindFeather, localStorage.setItem(this.windFeatherCollectedCache, this.showWindFeatherCollected));
148
154
  }
149
155
  },
150
156
  showCurrentParticle: {
@@ -154,7 +160,7 @@ const T = (t, e) => {
154
160
  },
155
161
  showCurrentIsoband: {
156
162
  handler(t, e) {
157
- this.autoActive && (this.showCurrentIsobandCollected = this.showCurrentIsoband);
163
+ this.autoActive && (this.showCurrentIsobandCollected = this.showCurrentIsoband, localStorage.setItem(this.currentIsobandCollectedCache, this.showCurrentIsobandCollected));
158
164
  }
159
165
  }
160
166
  },
@@ -174,7 +180,7 @@ const T = (t, e) => {
174
180
  },
175
181
  fetchCache() {
176
182
  const t = localStorage.getItem(this.version.k);
177
- this.version.v !== t && (localStorage.removeItem(this.activeWeatherLayersCache), localStorage.removeItem(this.collectedLayerCache), localStorage.removeItem(this.activeOtherLayersCache), localStorage.removeItem(this.windFeatherCache), localStorage.removeItem(this.currentIsobandCache), localStorage.setItem(this.version.k, this.version.v));
183
+ this.version.v !== t && (localStorage.removeItem(this.autoActiveCache), localStorage.removeItem(this.activeWeatherLayersCache), localStorage.removeItem(this.collectedLayerCache), localStorage.removeItem(this.activeOtherLayersCache), localStorage.removeItem(this.windFeatherCollectedCache), localStorage.removeItem(this.currentIsobandCollectedCache), localStorage.setItem(this.version.k, this.version.v));
178
184
  let e = localStorage.getItem(this.autoActiveCache);
179
185
  this.autoActive = e !== "false", e = localStorage.getItem(this.collectedLayerCache);
180
186
  let a = JSON.parse(
@@ -188,12 +194,15 @@ const T = (t, e) => {
188
194
  { weight: 4096, name: "Pressure", key: "prmsl", enabled: !0, type: "json" },
189
195
  { weight: 256, name: "Tropicals", key: "tropicals", enabled: !0, type: "json" }
190
196
  ]
191
- )), e = localStorage.getItem(this.activeWeatherLayersCache), a = JSON.parse(e), this.autoActive && (this.activeWeatherLayers = [...a]), a.some((r) => r.key === "wind" && r.particle) && this.$emit("toggleWindParticle", !0), localStorage.getItem(this.windFeatherCache) === "true" && this.$emit("toggleWindFeather", !0), a.some((r) => r.key === "current" && r.particle) && this.$emit("toggleCurrentParticle", !0), localStorage.getItem(this.currentIsobandCache) === "true" && this.$emit("toggleCurrentIsoband", !0), a.some((r) => r.key === "wind" && !r.particle && localStorage.getItem(this.windFeatherCache) === "false") && (a = a.filter((r) => r.key !== "wind")), a.some((r) => r.key === "current" && !r.particle && localStorage.getItem(this.currentIsobandCache) === "false") && (a = a.filter((r) => r.key !== "current")), e = localStorage.getItem(this.activeOtherLayersCache), a = JSON.parse(e || '[{"weight":4,"name":"ECA Zones","key":"eca-zones","enabled":true,"type":"json"}, {"weight": 2048,"name": "ENC","key": "enc","h5": true,"enabled": true,"type": "origin"}]'), this.activeOtherLayers = a, e = localStorage.getItem(this.sourceCache), this.source = e ? e === "CMEMS" ? "ECMWF" : e : this.source, this.$emit("forecastModel", this.source);
197
+ )), e = localStorage.getItem(this.activeWeatherLayersCache), a = JSON.parse(e), this.autoActive ? this.activeWeatherLayers = [...a] : this.activeWeatherLayersCollected = [...a], a.some((r) => r.key === "wind" && r.particle) && (this.$emit("toggleWindParticle", !0), this.showWindParticleCollected = !0), a.some((r) => r.key === "current" && r.particle) && (this.$emit("toggleCurrentParticle", !0), this.showCurrentParticleCollected = !0), this.showWindFeatherCollected = JSON.parse(localStorage.getItem(this.windFeatherCollectedCache)), this.showCurrentIsobandCollected = JSON.parse(localStorage.getItem(this.currentIsobandCollectedCache)), this.autoActive && (this.$emit("toggleWindFeather", this.showWindFeatherCollected), this.$emit("toggleCurrentIsoband", this.showCurrentIsobandCollected)), a.some((r) => r.key === "wind" && !r.particle && !this.showWindFeatherCollected) && (a = a.filter((r) => r.key !== "wind")), a.some((r) => r.key === "current" && !r.particle && !this.showCurrentIsobandCollected) && (a = a.filter((r) => r.key !== "current")), e = localStorage.getItem(this.activeOtherLayersCache), a = JSON.parse(e || '[{"weight":4,"name":"ECA Zones","key":"eca-zones","enabled":true,"type":"json"}, {"weight": 2048,"name": "ENC","key": "enc","h5": true,"enabled": true,"type": "origin"}]'), this.activeOtherLayers = a, e = localStorage.getItem(this.sourceCache), this.source = e ? e === "CMEMS" ? "ECMWF" : e : this.source, this.$emit("forecastModel", this.source);
192
198
  },
193
199
  handleConfirm() {
194
- var e;
195
- const t = (e = this.sourceList.find((a) => a.name === this.source)) == null ? void 0 : e.code;
196
- this.$emit("weather", this.activeWeatherLayers, t), this.$emit("other", this.activeOtherLayers), localStorage.setItem(this.autoActiveCache, this.autoActive), localStorage.setItem(this.sourceCache, this.source);
200
+ var t;
201
+ if (this.autoActive) {
202
+ const e = (t = this.sourceList.find((a) => a.name === this.source)) == null ? void 0 : t.code;
203
+ this.$emit("weather", JSON.parse(localStorage.getItem(this.activeWeatherLayersCache)), e);
204
+ }
205
+ this.$emit("other", this.activeOtherLayers), localStorage.setItem(this.autoActiveCache, this.autoActive), localStorage.setItem(this.sourceCache, this.source);
197
206
  },
198
207
  handleWeatherLayerPick(t) {
199
208
  var a;
@@ -207,23 +216,23 @@ const T = (t, e) => {
207
216
  r.key === "wind" && this.showWindFeather && (r.particle = !1);
208
217
  }), this.activeWeatherLayers = this.activeWeatherLayers.filter((r) => r.type === "json" && !(["wind", "current"].includes(r.key) && r.particle))), this.activeWeatherLayers.push(t));
209
218
  const e = (a = this.sourceList.find((r) => r.name === this.source)) == null ? void 0 : a.code;
210
- this.$emit("weather", this.activeWeatherLayers, e), localStorage.setItem(this.activeWeatherLayersCache, JSON.stringify(this.activeWeatherLayers));
219
+ this.$emit("weather", this.activeWeatherLayers, e);
211
220
  },
212
221
  handleWeatherLayerCollect(t) {
213
222
  var e;
214
223
  !t.collected && ((e = this.layers.weather.filter((a) => a.collected)) == null ? void 0 : e.length) >= 6 && (this.layers.weather.filter((a) => a.collected)[0].collected = !1), t.collected = !t.collected, localStorage.setItem(this.collectedLayerCache, JSON.stringify(this.layers.weather)), this.$emit("handleToggleVersion");
215
224
  },
216
225
  handleToggleWindParticle() {
217
- !this.showWindFeather && this.showWindParticle ? this.handleWeatherLayerPick({ weight: 1, name: "Wind", key: "wind", enabled: !0, type: "json", particle: !0 }) : (this.showCurrentParticle && (this.$emit("toggleCurrentParticle", !1), this.showCurrentIsoband || (this.activeWeatherLayers = this.activeWeatherLayers.filter((t) => t.key !== "current"), localStorage.setItem(this.activeWeatherLayersCache, JSON.stringify(this.activeWeatherLayers)))), this.$emit("toggleWindParticle", !this.showWindParticle), this.$emit("toggleParticeVersion"));
226
+ !this.showWindFeather && this.showWindParticle ? this.handleWeatherLayerPick({ weight: 1, name: "Wind", key: "wind", enabled: !0, type: "json", particle: !0 }) : (this.showCurrentParticle && (this.$emit("toggleCurrentParticle", !1), this.showCurrentIsoband || (this.activeWeatherLayers = this.activeWeatherLayers.filter((t) => t.key !== "current"))), this.$emit("toggleWindParticle", !this.showWindParticle), this.$emit("toggleWindParticeVersion"));
218
227
  },
219
228
  handleToggleWindFeather() {
220
- this.showWindFeather && !this.showWindParticle && this.handleWeatherLayerPick({ weight: 1, name: "Wind", key: "wind", enabled: !0, type: "json", particle: !0 }), this.$emit("toggleWindFeather", !this.showWindFeather), localStorage.setItem(this.windFeatherCache, !this.showWindFeather);
229
+ this.showWindFeather && !this.showWindParticle && this.handleWeatherLayerPick({ weight: 1, name: "Wind", key: "wind", enabled: !0, type: "json", particle: !0 }), this.$emit("toggleWindFeather", !this.showWindFeather);
221
230
  },
222
231
  handleToggleCurrentParticle() {
223
- !this.showCurrentIsoband && this.showCurrentParticle ? this.handleWeatherLayerPick({ weight: 96, name: "Current", key: "current", vendor: "cmems", merge: !0, h5: !0, enabled: !0 }) : (this.showWindParticle && (this.$emit("toggleWindParticle", !1), this.$emit("toggleParticeVersion"), this.showWindFeather || (this.activeWeatherLayers = this.activeWeatherLayers.filter((t) => t.key !== "wind"), localStorage.setItem(this.activeWeatherLayersCache, JSON.stringify(this.activeWeatherLayers)))), this.$emit("toggleCurrentParticle", !this.showCurrentParticle), this.$emit("toggleParticeVersion"));
232
+ !this.showCurrentIsoband && this.showCurrentParticle ? this.handleWeatherLayerPick({ weight: 96, name: "Current", key: "current", enabled: !0, type: "json", particle: !0 }) : (this.showWindParticle && (this.$emit("toggleWindParticle", !1), this.showWindFeather || (this.activeWeatherLayers = this.activeWeatherLayers.filter((t) => t.key !== "wind"))), this.$emit("toggleCurrentParticle", !this.showCurrentParticle), this.$emit("toggleCurrentParticeVersion"));
224
233
  },
225
234
  handleToggleCurrentIsoband() {
226
- this.showCurrentIsoband && !this.showCurrentParticle && this.handleWeatherLayerPick({ weight: 96, name: "Current", key: "current", vendor: "cmems", merge: !0, h5: !0, enabled: !0 }), this.$emit("toggleCurrentIsoband", !this.showCurrentIsoband), localStorage.setItem(this.currentIsobandCache, !this.showCurrentIsoband);
235
+ this.showCurrentIsoband && !this.showCurrentParticle && this.handleWeatherLayerPick({ weight: 96, name: "Current", key: "current", vendor: "cmems", merge: !0, h5: !0, enabled: !0 }), this.$emit("toggleCurrentIsoband", !this.showCurrentIsoband);
227
236
  },
228
237
  handleOtherLayerPick(t) {
229
238
  this.activeOtherLayers.some((e) => e.key === t.key) ? this.activeOtherLayers = this.activeOtherLayers.filter((e) => e.key !== t.key) : t.enabled && this.activeOtherLayers.push(t), localStorage.setItem(this.activeOtherLayersCache, JSON.stringify(this.activeOtherLayers)), this.$emit("other", this.activeOtherLayers);
@@ -234,7 +243,7 @@ const T = (t, e) => {
234
243
  toggleAutoActive() {
235
244
  var e;
236
245
  const t = (e = this.sourceList.find((a) => a.name === this.source)) == null ? void 0 : e.code;
237
- this.autoActive = !this.autoActive, localStorage.setItem(this.autoActiveCache, this.autoActive), this.autoActive ? this.$emit("weather", this.activeWeatherLayers, t) : this.$emit("weather", [], t);
246
+ this.autoActive = !this.autoActive, localStorage.setItem(this.autoActiveCache, this.autoActive), this.autoActive ? (this.$emit("weather", this.activeWeatherLayersCollected, t), this.$emit("toggleWindFeather", localStorage.getItem(this.windFeatherCollectedCache) === "true"), this.$emit("toggleCurrentIsoband", localStorage.getItem(this.currentIsobandCollectedCache) === "true")) : (this.$emit("weather", [], t), this.$emit("toggleWindFeather", !1), this.$emit("toggleCurrentIsoband", !1));
238
247
  },
239
248
  handleCoordToggle() {
240
249
  this.showCoord = !this.showCoord, this.$emit("coordinate", this.showCoord);
@@ -406,7 +415,7 @@ function $t(t, e, a, r, i, o) {
406
415
  ]),
407
416
  (g(!0), f(_, null, N(i.layers.weather.filter((n) => n.collected), (n) => (g(), f("div", {
408
417
  key: n.key,
409
- class: H(o.computeLayerClass(n, i.activeWeatherLayers))
418
+ class: H(o.computeLayerClass(n, i.activeWeatherLayersCollected))
410
419
  }, [
411
420
  s("div", {
412
421
  class: "checkbox",
@@ -416,7 +425,7 @@ function $t(t, e, a, r, i, o) {
416
425
  class: "name",
417
426
  onClick: (d) => o.handleWeatherLayerPick(n)
418
427
  }, B(n.name), 9, xt),
419
- n.key === "wind" && i.activeWeatherLayers.some((d) => d.key === n.key) ? (g(), f("div", Bt, [
428
+ n.key === "wind" && i.activeWeatherLayersCollected.some((d) => d.key === n.key) ? (g(), f("div", Bt, [
420
429
  s("i", {
421
430
  class: H(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
422
431
  onClick: e[6] || (e[6] = (d) => o.handleToggleWindParticle())
@@ -426,7 +435,7 @@ function $t(t, e, a, r, i, o) {
426
435
  onClick: e[7] || (e[7] = (d) => o.handleToggleWindFeather())
427
436
  }, "", 2)
428
437
  ])) : O("", !0),
429
- n.key === "current" && i.activeWeatherLayers.some((d) => d.key === n.key) ? (g(), f("div", It, [
438
+ n.key === "current" && i.activeWeatherLayersCollected.some((d) => d.key === n.key) ? (g(), f("div", It, [
430
439
  s("i", {
431
440
  class: H(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
432
441
  onClick: e[8] || (e[8] = (d) => o.handleToggleCurrentParticle())
@@ -471,7 +480,7 @@ function $t(t, e, a, r, i, o) {
471
480
  }, [
472
481
  n.hide ? O("", !0) : (g(), f("div", {
473
482
  key: 0,
474
- class: H(o.computeLayerClass(n, i.activeWeatherLayers))
483
+ class: H(o.computeLayerClass(n, i.activeWeatherLayersCollected))
475
484
  }, [
476
485
  s("div", Tt, [
477
486
  s("div", {
@@ -482,7 +491,7 @@ function $t(t, e, a, r, i, o) {
482
491
  class: "name",
483
492
  onClick: (d) => o.handleWeatherLayerPick(n)
484
493
  }, B(n.name), 9, St),
485
- n.key === "wind" && i.activeWeatherLayers.some((d) => d.key === n.key) ? (g(), f("div", _t, [
494
+ n.key === "wind" && i.activeWeatherLayersCollected.some((d) => d.key === n.key) ? (g(), f("div", _t, [
486
495
  s("i", {
487
496
  class: H(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
488
497
  onClick: e[12] || (e[12] = (d) => o.handleToggleWindParticle())
@@ -492,7 +501,7 @@ function $t(t, e, a, r, i, o) {
492
501
  onClick: e[13] || (e[13] = (d) => o.handleToggleWindFeather())
493
502
  }, "", 2)
494
503
  ])) : O("", !0),
495
- n.key === "current" && i.activeWeatherLayers.some((d) => d.key === n.key) ? (g(), f("div", Ht, [
504
+ n.key === "current" && i.activeWeatherLayersCollected.some((d) => d.key === n.key) ? (g(), f("div", Ht, [
496
505
  s("i", {
497
506
  class: H(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
498
507
  onClick: e[14] || (e[14] = (d) => o.handleToggleCurrentParticle())
@@ -556,7 +565,7 @@ function $t(t, e, a, r, i, o) {
556
565
  default: ae(() => {
557
566
  var b, u, A, w, m, v;
558
567
  return [
559
- U(B(n.name) + " ", 1),
568
+ Y(B(n.name) + " ", 1),
560
569
  d !== 0 ? (g(), f("span", qt, B(n.resolution) + "km " + B(n.length) + "days", 1)) : O("", !0),
561
570
  d === 0 ? (g(), f("div", Vt, "Provides the best forecast")) : (A = (u = (b = n == null ? void 0 : n.update) == null ? void 0 : b.default) == null ? void 0 : u.meta) != null && A.initialisationTime ? (g(), f("div", Zt, "Update: " + B(o.computeDateZ((v = (m = (w = n == null ? void 0 : n.update) == null ? void 0 : w.default) == null ? void 0 : m.meta) == null ? void 0 : v.initialisationTime)), 1)) : O("", !0)
562
571
  ];
@@ -4514,7 +4523,7 @@ const Da = {
4514
4523
  this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (t = this.interpolateMarkers) == null || t.forEach((e) => e == null ? void 0 : e.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource));
4515
4524
  },
4516
4525
  handleDateChange() {
4517
- var t, e, a, r, i, o, l, c, h, p, n, d, b, u, A, w, m, v, y, L, P, M, I, j, W, Y, K, V, ee, ce, he, de, pe, me, ue, ge;
4526
+ var t, e, a, r, i, o, l, c, h, p, n, d, b, u, A, w, m, v, y, L, P, M, I, j, W, K, X, V, ee, ce, he, de, pe, me, ue, ge;
4518
4527
  if ((t = this.interpolateMarkers) == null || t.forEach((te) => te == null ? void 0 : te.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
4519
4528
  const te = F(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), oe = this.interpolateData.filter((Q) => Q.properties.date === te.format() && !Q.properties.disabled), Ae = this.handleComputePolygons(oe), ie = D.featureCollection([...oe]);
4520
4529
  Ae.forEach((Q) => {
@@ -4536,7 +4545,7 @@ const Da = {
4536
4545
  for (const Q of oe)
4537
4546
  if (!Q.properties.disabled) {
4538
4547
  let q = "#f44336";
4539
- ((c = (l = Q.properties) == null ? void 0 : l.wind) == null ? void 0 : c.spd) < 17.2 || !((p = (h = Q.properties) == null ? void 0 : h.wind) != null && p.spd) ? q = "#03f869" : ((d = (n = Q.properties) == null ? void 0 : n.wind) == null ? void 0 : d.spd) >= 17.2 && ((u = (b = Q.properties) == null ? void 0 : b.wind) == null ? void 0 : u.spd) < 24.5 ? q = "#f2f202" : ((w = (A = Q.properties) == null ? void 0 : A.wind) == null ? void 0 : w.spd) >= 24.5 && ((v = (m = Q.properties) == null ? void 0 : m.wind) == null ? void 0 : v.spd) < 32.7 ? q = "#ff9100" : ((L = (y = Q.properties) == null ? void 0 : y.wind) == null ? void 0 : L.spd) >= 32.7 && ((M = (P = Q.properties) == null ? void 0 : P.wind) == null ? void 0 : M.spd) < 41.5 ? q = "#f44336" : ((j = (I = Q.properties) == null ? void 0 : I.wind) == null ? void 0 : j.spd) >= 41.5 && ((Y = (W = Q.properties) == null ? void 0 : W.wind) == null ? void 0 : Y.spd) < 51 ? q = "#f903d0" : ((V = (K = Q.properties) == null ? void 0 : K.wind) == null ? void 0 : V.spd) >= 51 ? q = "#8702f9" : q = "#f44336";
4548
+ ((c = (l = Q.properties) == null ? void 0 : l.wind) == null ? void 0 : c.spd) < 17.2 || !((p = (h = Q.properties) == null ? void 0 : h.wind) != null && p.spd) ? q = "#03f869" : ((d = (n = Q.properties) == null ? void 0 : n.wind) == null ? void 0 : d.spd) >= 17.2 && ((u = (b = Q.properties) == null ? void 0 : b.wind) == null ? void 0 : u.spd) < 24.5 ? q = "#f2f202" : ((w = (A = Q.properties) == null ? void 0 : A.wind) == null ? void 0 : w.spd) >= 24.5 && ((v = (m = Q.properties) == null ? void 0 : m.wind) == null ? void 0 : v.spd) < 32.7 ? q = "#ff9100" : ((L = (y = Q.properties) == null ? void 0 : y.wind) == null ? void 0 : L.spd) >= 32.7 && ((M = (P = Q.properties) == null ? void 0 : P.wind) == null ? void 0 : M.spd) < 41.5 ? q = "#f44336" : ((j = (I = Q.properties) == null ? void 0 : I.wind) == null ? void 0 : j.spd) >= 41.5 && ((K = (W = Q.properties) == null ? void 0 : W.wind) == null ? void 0 : K.spd) < 51 ? q = "#f903d0" : ((V = (X = Q.properties) == null ? void 0 : X.wind) == null ? void 0 : V.spd) >= 51 ? q = "#8702f9" : q = "#f44336";
4540
4549
  const ye = `<svg t="1719918955501"
4541
4550
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
4542
4551
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -4705,7 +4714,7 @@ function Wa(t, e, a, r, i, o) {
4705
4714
  }, ""),
4706
4715
  s("div", za, [
4707
4716
  (c = (l = i.activeTropicals) == null ? void 0 : l.history) != null && c.level ? (g(), f("span", Ma, B((p = (h = i.activeTropicals) == null ? void 0 : h.history) == null ? void 0 : p.level) + " , ", 1)) : O("", !0),
4708
- U(B((n = i.activeTropicals) == null ? void 0 : n.name), 1)
4717
+ Y(B((n = i.activeTropicals) == null ? void 0 : n.name), 1)
4709
4718
  ]),
4710
4719
  s("div", Ta, " Last update: " + B(o.computeTime(((b = (d = i.activeTropicals) == null ? void 0 : d.history) == null ? void 0 : b.updated) || ((w = (A = (u = i.activeTropicals) == null ? void 0 : u.forecasts) == null ? void 0 : A.filter((M) => !M.disabled)[0]) == null ? void 0 : w.date))), 1)
4711
4720
  ]),
@@ -4726,13 +4735,13 @@ function Wa(t, e, a, r, i, o) {
4726
4735
  e[4] || (e[4] = s("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
4727
4736
  s("div", Ra, [
4728
4737
  (g(!0), f(_, null, N((P = i.activeTropicals) == null ? void 0 : P.forecasts, (M, I) => {
4729
- var j, W, Y, K;
4738
+ var j, W, K, X;
4730
4739
  return g(), f("div", {
4731
4740
  key: I,
4732
4741
  class: H([
4733
4742
  "model",
4734
4743
  M.disabled ? "" : "active",
4735
- I > 0 && I < ((W = (j = i.activeTropicals) == null ? void 0 : j.forecasts) == null ? void 0 : W.length) - 1 && ((K = (Y = i.activeTropicals) == null ? void 0 : Y.forecasts) == null ? void 0 : K.length) > 2 ? "center-child" : ""
4744
+ I > 0 && I < ((W = (j = i.activeTropicals) == null ? void 0 : j.forecasts) == null ? void 0 : W.length) - 1 && ((X = (K = i.activeTropicals) == null ? void 0 : K.forecasts) == null ? void 0 : X.length) > 2 ? "center-child" : ""
4736
4745
  ]),
4737
4746
  onClick: (V) => o.handleForecastToggle(M)
4738
4747
  }, [
@@ -5561,7 +5570,7 @@ const ui = {
5561
5570
  initTableData(t) {
5562
5571
  var e, a, r, i, o, l, c, h, p;
5563
5572
  this.clearTable(), this.positionGmt = (a = (e = t == null ? void 0 : t.weather) == null ? void 0 : e[0]) == null ? void 0 : a.timezone, this.positionOffset = (i = (r = t == null ? void 0 : t.weather) == null ? void 0 : r[0]) == null ? void 0 : i.offset, this.localDate = (l = (o = Ge(this.ts)) == null ? void 0 : o.tz(this.positionGmt)) == null ? void 0 : l.format("MMM-DD/HHmm[LT]"), this.currentHourData = (c = We.pickHourly(t, F(this.ts))) == null ? void 0 : c[0], ((p = (h = this.currentHourData) == null ? void 0 : h.weather) == null ? void 0 : p.isDay) === 0 ? this.isDay = !1 : this.isDay = !0, this.$nextTick(() => {
5564
- var d, b, u, A, w, m, v, y, L, P, M, I, j, W, Y, K, V, ee, ce, he, de, pe, me, ue, ge, te, oe, Ae, ie, Q, q, ye, re;
5573
+ var d, b, u, A, w, m, v, y, L, P, M, I, j, W, K, X, V, ee, ce, he, de, pe, me, ue, ge, te, oe, Ae, ie, Q, q, ye, re;
5565
5574
  if (!document.getElementById("meteoMainBox"))
5566
5575
  return !1;
5567
5576
  if (!this.currentHourData)
@@ -5570,7 +5579,7 @@ const ui = {
5570
5579
  const ne = Ge(this.ts).tz(this.positionGmt).add(3 * se, "h").format();
5571
5580
  this.tableData.hours.push(ne);
5572
5581
  const x = ((d = We.pickHourly(t, ne)) == null ? void 0 : d[0]) || {};
5573
- this.tableData.temp.push(this.roundPrecision((b = x == null ? void 0 : x.weather) == null ? void 0 : b.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((A = (u = x == null ? void 0 : x.weather) == null ? void 0 : u.precip) == null ? void 0 : A.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((m = (w = x == null ? void 0 : x.weather) == null ? void 0 : w.precip) == null ? void 0 : m.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((v = x == null ? void 0 : x.weather) == null ? void 0 : v.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((L = (y = x == null ? void 0 : x.weather) == null ? void 0 : y.wind) == null ? void 0 : L.kts, 1) ?? "-"), this.tableData.windDir.push((M = (P = x == null ? void 0 : x.weather) == null ? void 0 : P.wind) == null ? void 0 : M.bearing), this.tableData.windGust.push(this.roundPrecision((j = (I = x == null ? void 0 : x.weather) == null ? void 0 : I.wind) == null ? void 0 : j.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((Y = (W = x == null ? void 0 : x.wave) == null ? void 0 : W.sig) == null ? void 0 : Y.height, 1) ?? "-"), this.tableData.sigwaveDir.push((V = (K = x == null ? void 0 : x.wave) == null ? void 0 : K.sig) == null ? void 0 : V.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((ce = (ee = x == null ? void 0 : x.wave) == null ? void 0 : ee.wd) == null ? void 0 : ce.height, 1) ?? "-"), this.tableData.windwaveDir.push((de = (he = x == null ? void 0 : x.wave) == null ? void 0 : he.wd) == null ? void 0 : de.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((me = (pe = x == null ? void 0 : x.wave) == null ? void 0 : pe.wd) == null ? void 0 : me.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((ge = (ue = x == null ? void 0 : x.wave) == null ? void 0 : ue.swell) == null ? void 0 : ge.height, 1) ?? "-"), this.tableData.swellDir.push((oe = (te = x == null ? void 0 : x.wave) == null ? void 0 : te.swell) == null ? void 0 : oe.bearing), this.tableData.swellPeriod.push(this.roundPrecision((ie = (Ae = x == null ? void 0 : x.wave) == null ? void 0 : Ae.swell) == null ? void 0 : ie.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((Q = x == null ? void 0 : x.current) == null ? void 0 : Q.speed, 1) ?? "-"), this.tableData.currentDir.push((q = x == null ? void 0 : x.current) == null ? void 0 : q.bearing), this.tableData.seaLevel.push(this.roundPrecision(x == null ? void 0 : x.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(x == null ? void 0 : x.sst, 0) ?? "-"), this.tableData.weatherUrls.push((ye = x == null ? void 0 : x.weather) == null ? void 0 : ye.url), this.tableData.weatherNames.push(((re = x == null ? void 0 : x.weather) == null ? void 0 : re.name) ?? "-");
5582
+ this.tableData.temp.push(this.roundPrecision((b = x == null ? void 0 : x.weather) == null ? void 0 : b.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((A = (u = x == null ? void 0 : x.weather) == null ? void 0 : u.precip) == null ? void 0 : A.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((m = (w = x == null ? void 0 : x.weather) == null ? void 0 : w.precip) == null ? void 0 : m.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((v = x == null ? void 0 : x.weather) == null ? void 0 : v.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((L = (y = x == null ? void 0 : x.weather) == null ? void 0 : y.wind) == null ? void 0 : L.kts, 1) ?? "-"), this.tableData.windDir.push((M = (P = x == null ? void 0 : x.weather) == null ? void 0 : P.wind) == null ? void 0 : M.bearing), this.tableData.windGust.push(this.roundPrecision((j = (I = x == null ? void 0 : x.weather) == null ? void 0 : I.wind) == null ? void 0 : j.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((K = (W = x == null ? void 0 : x.wave) == null ? void 0 : W.sig) == null ? void 0 : K.height, 1) ?? "-"), this.tableData.sigwaveDir.push((V = (X = x == null ? void 0 : x.wave) == null ? void 0 : X.sig) == null ? void 0 : V.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((ce = (ee = x == null ? void 0 : x.wave) == null ? void 0 : ee.wd) == null ? void 0 : ce.height, 1) ?? "-"), this.tableData.windwaveDir.push((de = (he = x == null ? void 0 : x.wave) == null ? void 0 : he.wd) == null ? void 0 : de.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((me = (pe = x == null ? void 0 : x.wave) == null ? void 0 : pe.wd) == null ? void 0 : me.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((ge = (ue = x == null ? void 0 : x.wave) == null ? void 0 : ue.swell) == null ? void 0 : ge.height, 1) ?? "-"), this.tableData.swellDir.push((oe = (te = x == null ? void 0 : x.wave) == null ? void 0 : te.swell) == null ? void 0 : oe.bearing), this.tableData.swellPeriod.push(this.roundPrecision((ie = (Ae = x == null ? void 0 : x.wave) == null ? void 0 : Ae.swell) == null ? void 0 : ie.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((Q = x == null ? void 0 : x.current) == null ? void 0 : Q.speed, 1) ?? "-"), this.tableData.currentDir.push((q = x == null ? void 0 : x.current) == null ? void 0 : q.bearing), this.tableData.seaLevel.push(this.roundPrecision(x == null ? void 0 : x.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(x == null ? void 0 : x.sst, 0) ?? "-"), this.tableData.weatherUrls.push((ye = x == null ? void 0 : x.weather) == null ? void 0 : ye.url), this.tableData.weatherNames.push(((re = x == null ? void 0 : x.weather) == null ? void 0 : re.name) ?? "-");
5574
5583
  }
5575
5584
  });
5576
5585
  },
@@ -5693,7 +5702,7 @@ const ui = {
5693
5702
  class: "main-box flex-center"
5694
5703
  };
5695
5704
  function Br(t, e, a, r, i, o) {
5696
- var p, n, d, b, u, A, w, m, v, y, L, P, M, I, j, W, Y, K, V, ee, ce, he, de, pe, me, ue, ge, te, oe, Ae, ie, Q, q, ye, re, se, ne, x, Le, xe, Be, Ie, Ee, De, Pe, ke, ze, Me, Te, Qe, Se, _e, He, Oe, Ne, je, Re, Fe, X, qe, Ve, Ze, $e, et, tt, at, it, rt;
5705
+ var p, n, d, b, u, A, w, m, v, y, L, P, M, I, j, W, K, X, V, ee, ce, he, de, pe, me, ue, ge, te, oe, Ae, ie, Q, q, ye, re, se, ne, x, Le, xe, Be, Ie, Ee, De, Pe, ke, ze, Me, Te, Qe, Se, _e, He, Oe, Ne, je, Re, Fe, U, qe, Ve, Ze, $e, et, tt, at, it, rt;
5697
5706
  const l = z("LocationFilled"), c = z("ElIcon"), h = z("ElTooltip");
5698
5707
  return fe((g(), f("div", gi, [
5699
5708
  s("div", Ai, [
@@ -5753,7 +5762,7 @@ function Br(t, e, a, r, i, o) {
5753
5762
  }, 8, ["content"]),
5754
5763
  s("div", Bi, [
5755
5764
  s("div", null, [
5756
- U(B(o.roundPrecision((A = (u = i.currentHourData) == null ? void 0 : u.weather) == null ? void 0 : A.temp, 0)), 1),
5765
+ Y(B(o.roundPrecision((A = (u = i.currentHourData) == null ? void 0 : u.weather) == null ? void 0 : A.temp, 0)), 1),
5757
5766
  e[8] || (e[8] = s("span", { style: { "font-size": "14px" } }, "°C", -1))
5758
5767
  ])
5759
5768
  ]),
@@ -5803,7 +5812,7 @@ function Br(t, e, a, r, i, o) {
5803
5812
  colspan: "1",
5804
5813
  class: "tr-title"
5805
5814
  }, [
5806
- U("Hours"),
5815
+ Y("Hours"),
5807
5816
  s("span", { class: "unit" }, "(LT)")
5808
5817
  ], -1)),
5809
5818
  (g(!0), f(_, null, N(i.tableData.hours, (C) => (g(), f("th", {
@@ -5818,7 +5827,7 @@ function Br(t, e, a, r, i, o) {
5818
5827
  colspan: "1",
5819
5828
  class: "tr-title"
5820
5829
  }, [
5821
- U("UTC"),
5830
+ Y("UTC"),
5822
5831
  s("span", { class: "unit" })
5823
5832
  ], -1)),
5824
5833
  (g(!0), f(_, null, N(i.tableData.hours, (C) => (g(), f("th", {
@@ -5861,7 +5870,7 @@ function Br(t, e, a, r, i, o) {
5861
5870
  colspan: "1",
5862
5871
  class: "tr-title"
5863
5872
  }, [
5864
- U("Temp"),
5873
+ Y("Temp"),
5865
5874
  s("span", { class: "unit" }, "°C")
5866
5875
  ], -1)),
5867
5876
  (g(!0), f(_, null, N(i.tableData.temp, (C, E) => (g(), f("td", {
@@ -5876,7 +5885,7 @@ function Br(t, e, a, r, i, o) {
5876
5885
  colspan: "1",
5877
5886
  class: "tr-title"
5878
5887
  }, [
5879
- U("Precip"),
5888
+ Y("Precip"),
5880
5889
  s("span", { class: "unit" }, "mm")
5881
5890
  ], -1)),
5882
5891
  (g(!0), f(_, null, N(i.tableData.precip1h, (C, E) => (g(), f("td", {
@@ -5891,7 +5900,7 @@ function Br(t, e, a, r, i, o) {
5891
5900
  colspan: "1",
5892
5901
  class: "tr-title"
5893
5902
  }, [
5894
- U("Visibility"),
5903
+ Y("Visibility"),
5895
5904
  s("span", { class: "unit" }, "nm")
5896
5905
  ], -1)),
5897
5906
  (g(!0), f(_, null, N(i.tableData.visibility, (C, E) => (g(), f("td", {
@@ -5906,7 +5915,7 @@ function Br(t, e, a, r, i, o) {
5906
5915
  colspan: "1",
5907
5916
  class: "tr-title"
5908
5917
  }, [
5909
- U("Wind gust"),
5918
+ Y("Wind gust"),
5910
5919
  s("span", { class: "unit" }, "kts")
5911
5920
  ], -1)),
5912
5921
  (g(!0), f(_, null, N(i.tableData.windGust, (C, E) => (g(), f("td", {
@@ -5932,7 +5941,7 @@ function Br(t, e, a, r, i, o) {
5932
5941
  colspan: "1",
5933
5942
  class: "tr-title"
5934
5943
  }, [
5935
- U("Hours"),
5944
+ Y("Hours"),
5936
5945
  s("span", { class: "unit" }, "(LT)")
5937
5946
  ], -1)),
5938
5947
  (g(!0), f(_, null, N(i.tableData.hours, (C, E) => (g(), f("th", {
@@ -5947,7 +5956,7 @@ function Br(t, e, a, r, i, o) {
5947
5956
  colspan: "1",
5948
5957
  class: "tr-title"
5949
5958
  }, [
5950
- U("UTC"),
5959
+ Y("UTC"),
5951
5960
  s("span", { class: "unit" })
5952
5961
  ], -1)),
5953
5962
  (g(!0), f(_, null, N(i.tableData.hours, (C, E) => (g(), f("th", {
@@ -5962,7 +5971,7 @@ function Br(t, e, a, r, i, o) {
5962
5971
  colspan: "1",
5963
5972
  class: "tr-title"
5964
5973
  }, [
5965
- U("Wind"),
5974
+ Y("Wind"),
5966
5975
  s("span", { class: "unit" }, "kts")
5967
5976
  ], -1)),
5968
5977
  (g(!0), f(_, null, N(i.tableData.windSpeed, (C, E) => (g(), f("td", {
@@ -5984,7 +5993,7 @@ function Br(t, e, a, r, i, o) {
5984
5993
  colspan: "1",
5985
5994
  class: "tr-title"
5986
5995
  }, [
5987
- U("Sig Wave"),
5996
+ Y("Sig Wave"),
5988
5997
  s("span", { class: "unit" }, "m")
5989
5998
  ], -1)),
5990
5999
  (g(!0), f(_, null, N(i.tableData.sigwaveHeight, (C, E) => (g(), f("td", {
@@ -6006,7 +6015,7 @@ function Br(t, e, a, r, i, o) {
6006
6015
  colspan: "1",
6007
6016
  class: "tr-title"
6008
6017
  }, [
6009
- U("Wind Wave"),
6018
+ Y("Wind Wave"),
6010
6019
  s("span", { class: "unit" }, "m")
6011
6020
  ], -1)),
6012
6021
  (g(!0), f(_, null, N(i.tableData.windwaveHeight, (C, E) => (g(), f("td", {
@@ -6028,7 +6037,7 @@ function Br(t, e, a, r, i, o) {
6028
6037
  colspan: "1",
6029
6038
  class: "tr-title"
6030
6039
  }, [
6031
- U("Swell"),
6040
+ Y("Swell"),
6032
6041
  s("span", { class: "unit" }, "m")
6033
6042
  ], -1)),
6034
6043
  (g(!0), f(_, null, N(i.tableData.swellHeight, (C, E) => (g(), f("td", {
@@ -6050,7 +6059,7 @@ function Br(t, e, a, r, i, o) {
6050
6059
  colspan: "1",
6051
6060
  class: "tr-title"
6052
6061
  }, [
6053
- U("Current"),
6062
+ Y("Current"),
6054
6063
  s("span", { class: "unit" }, "kts")
6055
6064
  ], -1)),
6056
6065
  (g(!0), f(_, null, N(i.tableData.currentSpeed, (C, E) => (g(), f("td", {
@@ -6077,7 +6086,7 @@ function Br(t, e, a, r, i, o) {
6077
6086
  colspan: "1",
6078
6087
  class: "tr-title"
6079
6088
  }, [
6080
- U("Hours"),
6089
+ Y("Hours"),
6081
6090
  s("span", { class: "unit" }, "(LT)")
6082
6091
  ], -1)),
6083
6092
  (g(!0), f(_, null, N(i.tableData.hours, (C, E) => (g(), f("th", {
@@ -6092,7 +6101,7 @@ function Br(t, e, a, r, i, o) {
6092
6101
  colspan: "1",
6093
6102
  class: "tr-title"
6094
6103
  }, [
6095
- U("UTC"),
6104
+ Y("UTC"),
6096
6105
  s("span", { class: "unit" })
6097
6106
  ], -1)),
6098
6107
  (g(!0), f(_, null, N(i.tableData.hours, (C, E) => (g(), f("th", {
@@ -6107,7 +6116,7 @@ function Br(t, e, a, r, i, o) {
6107
6116
  colspan: "1",
6108
6117
  class: "tr-title"
6109
6118
  }, [
6110
- U("SeaLevel"),
6119
+ Y("SeaLevel"),
6111
6120
  s("span", { class: "unit" }, "m")
6112
6121
  ], -1)),
6113
6122
  (g(!0), f(_, null, N(i.tableData.seaLevel, (C, E) => (g(), f("td", {
@@ -6122,7 +6131,7 @@ function Br(t, e, a, r, i, o) {
6122
6131
  colspan: "1",
6123
6132
  class: "tr-title"
6124
6133
  }, [
6125
- U("SeaTemp"),
6134
+ Y("SeaTemp"),
6126
6135
  s("span", { class: "unit" }, "°C")
6127
6136
  ], -1)),
6128
6137
  (g(!0), f(_, null, N(i.tableData.seaTemp, (C, E) => (g(), f("td", {
@@ -6172,7 +6181,7 @@ function Br(t, e, a, r, i, o) {
6172
6181
  s("div", cr, [
6173
6182
  s("div", hr, [
6174
6183
  e[32] || (e[32] = s("div", null, "Wind", -1)),
6175
- s("div", null, B((V = (K = (Y = i.currentHourData) == null ? void 0 : Y.weather) == null ? void 0 : K.wind) == null ? void 0 : V.direction) + "/" + B(o.roundPrecision((he = (ce = (ee = i.currentHourData) == null ? void 0 : ee.weather) == null ? void 0 : ce.wind) == null ? void 0 : he.kts, 1)) + "kts/BF" + B((me = (pe = (de = i.currentHourData) == null ? void 0 : de.weather) == null ? void 0 : pe.wind) == null ? void 0 : me.scale) + "/" + B(o.roundPrecision((te = (ge = (ue = i.currentHourData) == null ? void 0 : ue.weather) == null ? void 0 : ge.wind) == null ? void 0 : te.gusts, 1)) + " kts", 1)
6184
+ s("div", null, B((V = (X = (K = i.currentHourData) == null ? void 0 : K.weather) == null ? void 0 : X.wind) == null ? void 0 : V.direction) + "/" + B(o.roundPrecision((he = (ce = (ee = i.currentHourData) == null ? void 0 : ee.weather) == null ? void 0 : ce.wind) == null ? void 0 : he.kts, 1)) + "kts/BF" + B((me = (pe = (de = i.currentHourData) == null ? void 0 : de.weather) == null ? void 0 : pe.wind) == null ? void 0 : me.scale) + "/" + B(o.roundPrecision((te = (ge = (ue = i.currentHourData) == null ? void 0 : ue.weather) == null ? void 0 : ge.wind) == null ? void 0 : te.gusts, 1)) + " kts", 1)
6176
6185
  ]),
6177
6186
  s("div", dr, [
6178
6187
  e[33] || (e[33] = s("div", null, "Sig wave", -1)),
@@ -6192,7 +6201,7 @@ function Br(t, e, a, r, i, o) {
6192
6201
  s("div", gr, [
6193
6202
  s("div", Ar, [
6194
6203
  e[36] || (e[36] = s("div", null, "Current", -1)),
6195
- s("div", null, B((Re = (je = i.currentHourData) == null ? void 0 : je.current) == null ? void 0 : Re.direction) + "/" + B(o.roundPrecision((X = (Fe = i.currentHourData) == null ? void 0 : Fe.current) == null ? void 0 : X.kts, 2)) + "kts", 1)
6204
+ s("div", null, B((Re = (je = i.currentHourData) == null ? void 0 : je.current) == null ? void 0 : Re.direction) + "/" + B(o.roundPrecision((U = (Fe = i.currentHourData) == null ? void 0 : Fe.current) == null ? void 0 : U.kts, 2)) + "kts", 1)
6196
6205
  ]),
6197
6206
  s("div", yr, [
6198
6207
  e[37] || (e[37] = s("div", null, "Sea level", -1)),
@@ -8087,7 +8096,8 @@ const Mo = {
8087
8096
  activeWindLayer: !1,
8088
8097
  showWindFeather: !1,
8089
8098
  showWindParticle: !1,
8090
- toggleParticeVersion: 0,
8099
+ toggleWindParticeVersion: 0,
8100
+ toggleCurrentParticeVersion: 0,
8091
8101
  showCurrentIsoband: !1,
8092
8102
  showCurrentParticle: !1,
8093
8103
  enc: "",
@@ -8210,8 +8220,8 @@ const Mo = {
8210
8220
  );
8211
8221
  const M = await Promise.all(P);
8212
8222
  this.weatherLayers = {}, M.map((I) => {
8213
- var Y, K, V, ee;
8214
- const j = ((Y = I == null ? void 0 : I.data) == null ? void 0 : Y.data) || (I == null ? void 0 : I.data), W = (V = (K = I == null ? void 0 : I.config) == null ? void 0 : K.headers) == null ? void 0 : V.key;
8223
+ var K, X, V, ee;
8224
+ const j = ((K = I == null ? void 0 : I.data) == null ? void 0 : K.data) || (I == null ? void 0 : I.data), W = (V = (X = I == null ? void 0 : I.config) == null ? void 0 : X.headers) == null ? void 0 : V.key;
8215
8225
  W && j && (this.weatherLayers[W] = {
8216
8226
  raw: j,
8217
8227
  type: ((ee = I == null ? void 0 : I.config) == null ? void 0 : ee.responseType) === "blob" ? "image" : "json",
@@ -8223,8 +8233,8 @@ const Mo = {
8223
8233
  key: "tropicals"
8224
8234
  }
8225
8235
  }).then((I) => {
8226
- var Y, K, V;
8227
- const j = nt.convert2Geojson(((Y = I == null ? void 0 : I.data) == null ? void 0 : Y.data) || (I == null ? void 0 : I.data)), W = (V = (K = I == null ? void 0 : I.config) == null ? void 0 : K.headers) == null ? void 0 : V.key;
8236
+ var K, X, V;
8237
+ const j = nt.convert2Geojson(((K = I == null ? void 0 : I.data) == null ? void 0 : K.data) || (I == null ? void 0 : I.data)), W = (V = (X = I == null ? void 0 : I.config) == null ? void 0 : X.headers) == null ? void 0 : V.key;
8228
8238
  this.weatherLayers[W] = {
8229
8239
  data: j,
8230
8240
  active: !0,
@@ -8651,13 +8661,13 @@ const Mo = {
8651
8661
  handleParticle(t) {
8652
8662
  this.particleFactor = t, this.weatherLayers[t.key] && (this.weatherLayers[t.key].particle = t.particle), this.activeWeatherLayers.map((r) => {
8653
8663
  var i;
8654
- return r.key === t.key ? r.particle = t.particle : (i = Object.keys(r)) != null && i.some((o) => o === "particle") && (r.particle = !1), r;
8664
+ return r.key === t.key ? r.particle = t.particle : t.particle && ((i = Object.keys(r)) != null && i.some((o) => o === "particle")) && (r.particle = !1), r;
8655
8665
  });
8656
8666
  let e = localStorage.getItem("activeWeatherLayersCache");
8657
8667
  const a = JSON.parse(e) || [];
8658
8668
  a == null || a.forEach((r) => {
8659
8669
  var i;
8660
- r.key === t.key ? r.particle = t.particle : (i = Object.keys(r)) != null && i.some((o) => o === "particle") && (r.particle = !1);
8670
+ r.key === t.key ? r.particle = t.particle : t.particle && ((i = Object.keys(r)) != null && i.some((o) => o === "particle")) && (r.particle = !1);
8661
8671
  }), localStorage.setItem("activeWeatherLayersCache", JSON.stringify(a)), this.fetchWeatherLayers({ tropicals: !1 });
8662
8672
  },
8663
8673
  handleToggleVersion() {
@@ -8671,7 +8681,7 @@ const Mo = {
8671
8681
  };
8672
8682
  function Qo(t, e, a, r, i, o) {
8673
8683
  var Ae, ie, Q, q, ye, re, se, ne, x, Le, xe, Be, Ie, Ee, De, Pe, ke, ze, Me, Te, Qe, Se, _e, He, Oe, Ne, je, Re, Fe;
8674
- const l = z("IdmGlLayer"), c = z("IdmENC"), h = z("IdmWorld12nm"), p = z("IdmWorldMarine"), n = z("IdmChinaRoute"), d = z("IdmSigWave"), b = z("IdmSwell"), u = z("IdmPrmsl"), A = z("IdmIceberg"), w = z("IdmTropicals"), m = z("IdmCurrents"), v = z("IdmCurrentParticle"), y = z("IdmWindBarb"), L = z("IdmWindParticle"), P = z("IdmPrecip3h"), M = z("IdmVisibility"), I = z("IdmWaterTemp"), j = z("IdmTemp"), W = z("IdmArctic"), Y = z("IdmWarZone"), K = z("IdmGmdssArea"), V = z("IdmEcaZone"), ee = z("IdmAlertZone"), ce = z("IdmPort"), he = z("IdmLoadLine"), de = z("IdmTimezone"), pe = z("IdmVRA"), me = z("IdmSpecialArea"), ue = z("IdmTerminator"), ge = z("IdmLatLng"), te = z("IdmMeasure"), oe = z("IdmPoint");
8684
+ const l = z("IdmGlLayer"), c = z("IdmENC"), h = z("IdmWorld12nm"), p = z("IdmWorldMarine"), n = z("IdmChinaRoute"), d = z("IdmSigWave"), b = z("IdmSwell"), u = z("IdmPrmsl"), A = z("IdmIceberg"), w = z("IdmTropicals"), m = z("IdmCurrents"), v = z("IdmCurrentParticle"), y = z("IdmWindBarb"), L = z("IdmWindParticle"), P = z("IdmPrecip3h"), M = z("IdmVisibility"), I = z("IdmWaterTemp"), j = z("IdmTemp"), W = z("IdmArctic"), K = z("IdmWarZone"), X = z("IdmGmdssArea"), V = z("IdmEcaZone"), ee = z("IdmAlertZone"), ce = z("IdmPort"), he = z("IdmLoadLine"), de = z("IdmTimezone"), pe = z("IdmVRA"), me = z("IdmSpecialArea"), ue = z("IdmTerminator"), ge = z("IdmLatLng"), te = z("IdmMeasure"), oe = z("IdmPoint");
8675
8685
  return a.map ? (g(), f("div", To, [
8676
8686
  k(l, S({
8677
8687
  ref: "layer",
@@ -8688,14 +8698,15 @@ function Qo(t, e, a, r, i, o) {
8688
8698
  "forecast-model": a.forecastModel,
8689
8699
  onWeather: o.handleWeatherLayerChange,
8690
8700
  onOther: o.handleOtherLayerChange,
8691
- onToggleWindParticle: e[0] || (e[0] = (X) => i.showWindParticle = X),
8692
- onToggleWindFeather: e[1] || (e[1] = (X) => i.showWindFeather = X),
8693
- onToggleCurrentParticle: e[2] || (e[2] = (X) => i.showCurrentParticle = X),
8694
- onToggleCurrentIsoband: e[3] || (e[3] = (X) => i.showCurrentIsoband = X),
8695
- onToggleParticeVersion: e[4] || (e[4] = (X) => i.toggleParticeVersion = Math.random()),
8696
- onCoordinate: e[5] || (e[5] = (X) => i.showCoord = X),
8697
- onMeasure: e[6] || (e[6] = (X) => i.showMeasure = X),
8698
- onPoint: e[7] || (e[7] = (X) => i.showPoint = X),
8701
+ onToggleWindParticle: e[0] || (e[0] = (U) => i.showWindParticle = U),
8702
+ onToggleWindFeather: e[1] || (e[1] = (U) => i.showWindFeather = U),
8703
+ onToggleCurrentParticle: e[2] || (e[2] = (U) => i.showCurrentParticle = U),
8704
+ onToggleCurrentIsoband: e[3] || (e[3] = (U) => i.showCurrentIsoband = U),
8705
+ onToggleWindParticeVersion: e[4] || (e[4] = (U) => i.toggleWindParticeVersion = Math.random()),
8706
+ onToggleCurrentParticeVersion: e[5] || (e[5] = (U) => i.toggleCurrentParticeVersion = Math.random()),
8707
+ onCoordinate: e[6] || (e[6] = (U) => i.showCoord = U),
8708
+ onMeasure: e[7] || (e[7] = (U) => i.showMeasure = U),
8709
+ onPoint: e[8] || (e[8] = (U) => i.showPoint = U),
8699
8710
  on3d: o.handle3dToggle,
8700
8711
  onHandleToggleVersion: o.handleToggleVersion
8701
8712
  }), null, 16, ["map", "toggle-version", "map-projection", "show-wind-feather", "show-wind-particle", "show-current-isoband", "show-current-particle", "token", "gateway", "forecast-model", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
@@ -8705,7 +8716,7 @@ function Qo(t, e, a, r, i, o) {
8705
8716
  enabled: (Ae = i.otherLayers) == null ? void 0 : Ae.enc,
8706
8717
  "toggle-version": a.toggleVersion
8707
8718
  }, t.$attrs, {
8708
- onEnc: e[8] || (e[8] = (X) => i.enc = X)
8719
+ onEnc: e[9] || (e[9] = (U) => i.enc = U)
8709
8720
  }), null, 16, ["map", "token", "enabled", "toggle-version"]),
8710
8721
  k(h, S({
8711
8722
  map: a.map,
@@ -8761,14 +8772,14 @@ function Qo(t, e, a, r, i, o) {
8761
8772
  "before-layer": a.beforeLayer,
8762
8773
  "show-current-isoband": i.showCurrentIsoband,
8763
8774
  "show-current-particle": i.showCurrentParticle,
8764
- "toggle-partice-version": i.toggleParticeVersion,
8775
+ toggleParticeVersion: i.toggleCurrentParticeVersion,
8765
8776
  "margin-bottom": i.activeWindLayer ? i.showRampColor ? "84px" : "56px" : i.showRampColor ? "56px" : "30px",
8766
8777
  "toggle-version": a.toggleVersion,
8767
8778
  "weather-layers": i.weatherLayers
8768
8779
  }, t.$attrs, {
8769
8780
  onParticle: o.handleParticle,
8770
8781
  onHandleToggleVersion: o.handleToggleVersion
8771
- }), null, 16, ["map", "map-projection", "current", "before-layer", "show-current-isoband", "show-current-particle", "toggle-partice-version", "margin-bottom", "toggle-version", "weather-layers", "onParticle", "onHandleToggleVersion"]),
8782
+ }), null, 16, ["map", "map-projection", "current", "before-layer", "show-current-isoband", "show-current-particle", "toggleParticeVersion", "margin-bottom", "toggle-version", "weather-layers", "onParticle", "onHandleToggleVersion"]),
8772
8783
  k(v, S({
8773
8784
  viewport: i.viewport,
8774
8785
  factor: (xe = i.weatherLayers) == null ? void 0 : xe["current-particle"],
@@ -8785,12 +8796,12 @@ function Qo(t, e, a, r, i, o) {
8785
8796
  "margin-bottom": i.showRampColor ? "56px" : "30px",
8786
8797
  "show-wind-feather": i.showWindFeather,
8787
8798
  "show-wind-particle": i.showWindParticle,
8788
- "toggle-partice-version": i.toggleParticeVersion
8799
+ toggleParticeVersion: i.toggleWindParticeVersion
8789
8800
  }, t.$attrs, {
8790
8801
  "toggle-version": a.toggleVersion,
8791
8802
  "weather-layers": i.weatherLayers,
8792
8803
  onParticle: o.handleParticle
8793
- }), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "show-wind-feather", "show-wind-particle", "toggle-partice-version", "toggle-version", "weather-layers", "onParticle"]),
8804
+ }), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "show-wind-feather", "show-wind-particle", "toggleParticeVersion", "toggle-version", "weather-layers", "onParticle"]),
8794
8805
  k(L, S({
8795
8806
  viewport: i.viewport,
8796
8807
  factor: (Ee = i.weatherLayers) == null ? void 0 : Ee["wind-particle"],
@@ -8827,12 +8838,12 @@ function Qo(t, e, a, r, i, o) {
8827
8838
  "before-layer": a.beforeLayer,
8828
8839
  "toggle-version": a.toggleVersion
8829
8840
  }, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
8830
- k(Y, S({
8841
+ k(K, S({
8831
8842
  map: a.map,
8832
8843
  zone: (Te = i.otherLayers) == null ? void 0 : Te["war-zones"],
8833
8844
  "before-layer": a.beforeLayer
8834
8845
  }, t.$attrs), null, 16, ["map", "zone", "before-layer"]),
8835
- k(K, S({
8846
+ k(X, S({
8836
8847
  map: a.map,
8837
8848
  area: (Qe = i.otherLayers) == null ? void 0 : Qe["gmdss-areas"],
8838
8849
  "before-layer": a.beforeLayer