@idmwx/idmui-gl3 3.4.4 → 3.4.7

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
@@ -1,11 +1,11 @@
1
1
  var rt = Object.defineProperty;
2
2
  var st = (i, e, t) => e in i ? rt(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
3
  var M = (i, e, t) => (st(i, typeof e != "symbol" ? e + "" : e, t), t);
4
- import { LayerHelper as Fe, CompanyHelper as Ve, LngLatHelper as K, convertToMonotonicLng2 as ot, calculateDistance as We, calculateBearing as Ne, convertToMonotonicLng as pe, interpolateCoordinates as je, convertToStandardLng as Ae } from "@idmwx/idmwx-base";
5
- import { resolveComponent as T, openBlock as w, createElementBlock as x, createElementVNode as l, normalizeStyle as N, normalizeClass as z, Fragment as $e, renderList as De, toDisplayString as S, createVNode as E, withCtx as nt, createTextVNode as Qe, createCommentVNode as j, pushScopeId as U, popScopeId as G, withDirectives as ze, vShow as Me, createStaticVNode as lt, mergeProps as R } from "vue";
4
+ import { LayerHelper as Fe, CompanyHelper as Ve, LngLatHelper as Q, convertToMonotonicLng2 as ot, calculateDistance as We, calculateBearing as Ne, convertToMonotonicLng as pe, interpolateCoordinates as je, convertToStandardLng as Ae } from "@idmwx/idmwx-base";
5
+ import { resolveComponent as T, openBlock as w, createElementBlock as x, createElementVNode as l, normalizeStyle as j, normalizeClass as z, Fragment as $e, renderList as De, toDisplayString as S, createVNode as E, withCtx as nt, createTextVNode as Qe, createCommentVNode as O, pushScopeId as U, popScopeId as G, withDirectives as ze, vShow as Me, createStaticVNode as lt, mergeProps as R } from "vue";
6
6
  import * as C from "@turf/turf";
7
7
  import ht from "@mapbox/sphericalmercator";
8
- import q from "moment";
8
+ import K from "moment";
9
9
  import ae from "mapbox-gl";
10
10
  import { TropicalHelper as et } from "@idm-plugin/geo";
11
11
  import ie from "axios";
@@ -140,14 +140,14 @@ const k = (i, e) => {
140
140
  this.source = i, this.handleConfirm();
141
141
  }
142
142
  }
143
- }, X = (i) => (U("data-v-66a5718f"), i = i(), G(), i), dt = { class: "idm-gl-layer" }, pt = { class: "bar-item layer-bars" }, mt = /* @__PURE__ */ X(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), ut = [
143
+ }, X = (i) => (U("data-v-4df358dd"), i = i(), G(), i), dt = { class: "idm-gl-layer" }, pt = { class: "bar-item layer-bars" }, mt = /* @__PURE__ */ X(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), ut = [
144
144
  mt
145
145
  ], ft = { class: "bar-item tool-bars" }, yt = /* @__PURE__ */ X(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), gt = [
146
146
  yt
147
- ], vt = /* @__PURE__ */ X(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), bt = [
148
- vt
149
- ], _t = /* @__PURE__ */ X(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), Lt = [
150
- _t
147
+ ], bt = /* @__PURE__ */ X(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), vt = [
148
+ bt
149
+ ], Lt = /* @__PURE__ */ X(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), _t = [
150
+ Lt
151
151
  ], wt = /* @__PURE__ */ X(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1)), xt = [
152
152
  wt
153
153
  ], Ct = ["onClick"], St = /* @__PURE__ */ X(() => /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1)), Pt = /* @__PURE__ */ X(() => /* @__PURE__ */ l("i", { class: "iconfont" }, "", -1)), Tt = [
@@ -161,7 +161,7 @@ function Ft(i, e, t, r, a, s) {
161
161
  return w(), x("div", dt, [
162
162
  l("div", {
163
163
  class: "menu-bar-box",
164
- style: N({ top: t.top + 10 + "px", right: a.right + "px" })
164
+ style: j({ top: t.top + 10 + "px", right: a.right + "px" })
165
165
  }, [
166
166
  l("div", pt, [
167
167
  l("div", {
@@ -172,7 +172,7 @@ function Ft(i, e, t, r, a, s) {
172
172
  ], 4),
173
173
  l("div", {
174
174
  class: "menu-bar-box",
175
- style: N({ top: t.top + 160 + "px", right: a.right + "px" })
175
+ style: j({ top: t.top + 160 + "px", right: a.right + "px" })
176
176
  }, [
177
177
  l("div", ft, [
178
178
  l("div", {
@@ -182,11 +182,11 @@ function Ft(i, e, t, r, a, s) {
182
182
  l("div", {
183
183
  class: z(a.showPoint ? "menu-icon active" : "menu-icon"),
184
184
  onClick: e[2] || (e[2] = (...o) => s.handlePointToggle && s.handlePointToggle(...o))
185
- }, bt, 2),
185
+ }, vt, 2),
186
186
  l("div", {
187
187
  class: z(a.showCoord ? "menu-icon active" : "menu-icon"),
188
188
  onClick: e[3] || (e[3] = (...o) => s.handleCoordToggle && s.handleCoordToggle(...o))
189
- }, Lt, 2),
189
+ }, _t, 2),
190
190
  l("div", {
191
191
  class: z(a.show3d ? "menu-icon active" : "menu-icon"),
192
192
  onClick: e[4] || (e[4] = (...o) => s.handle3DToggle && s.handle3DToggle(...o))
@@ -195,7 +195,7 @@ function Ft(i, e, t, r, a, s) {
195
195
  ], 4),
196
196
  l("div", {
197
197
  class: "active-layers",
198
- style: N({ right: a.right + "px", bottom: "100px" })
198
+ style: j({ right: a.right + "px", bottom: "100px" })
199
199
  }, [
200
200
  (w(!0), x($e, null, De(a.weatherLayers, (o) => (w(), x("div", {
201
201
  key: o.key,
@@ -208,11 +208,11 @@ function Ft(i, e, t, r, a, s) {
208
208
  ], 4),
209
209
  l("div", {
210
210
  class: "available-layers flex-center",
211
- style: N({ top: t.top + "px", right: a.showLayers ? "0px" : "-240px" })
211
+ style: j({ top: t.top + "px", right: a.showLayers ? "0px" : "-240px" })
212
212
  }, [
213
213
  l("div", {
214
214
  class: "side-bar",
215
- style: N({ right: a.showLayers ? "0px" : "-240px" }),
215
+ style: j({ right: a.showLayers ? "0px" : "-240px" }),
216
216
  onClick: e[5] || (e[5] = (...o) => s.handleMenuToggle && s.handleMenuToggle(...o))
217
217
  }, Tt, 4),
218
218
  l("div", {
@@ -231,7 +231,7 @@ function Ft(i, e, t, r, a, s) {
231
231
  (w(!0), x($e, null, De(a.layers.weather, (o) => (w(), x($e, {
232
232
  key: o.key
233
233
  }, [
234
- o.hide ? j("", !0) : (w(), x("div", {
234
+ o.hide ? O("", !0) : (w(), x("div", {
235
235
  key: 0,
236
236
  class: z(s.computeLayerClass(o, a.weatherLayers)),
237
237
  onClick: (h) => s.handleWeatherLayerPick(o)
@@ -275,7 +275,7 @@ function Ft(i, e, t, r, a, s) {
275
275
  ], 4)
276
276
  ]);
277
277
  }
278
- const Vt = /* @__PURE__ */ k(ct, [["render", Ft], ["__scopeId", "data-v-66a5718f"]]);
278
+ const Vt = /* @__PURE__ */ k(ct, [["render", Ft], ["__scopeId", "data-v-4df358dd"]]);
279
279
  const Ut = {
280
280
  name: "IdmWindBarb",
281
281
  props: {
@@ -413,7 +413,7 @@ const Ut = {
413
413
  },
414
414
  paint: {
415
415
  "icon-opacity": 1,
416
- "icon-color": "#222"
416
+ "text-color": "#222"
417
417
  }
418
418
  },
419
419
  this.beforeLayer
@@ -458,7 +458,7 @@ function Yt(i, e, t, r, a, s) {
458
458
  return (n = t.wind) != null && n.active ? (w(), x("div", Gt, [
459
459
  l("div", {
460
460
  class: "flex-center tool-bars",
461
- style: N([{ position: "absolute" }, { right: a.right + "px", bottom: a.bottom + "px" }])
461
+ style: j([{ position: "absolute" }, { right: a.right + "px", bottom: a.bottom + "px" }])
462
462
  }, [
463
463
  l("div", {
464
464
  class: "flex-start",
@@ -479,11 +479,11 @@ function Yt(i, e, t, r, a, s) {
479
479
  l("span", {
480
480
  class: z(a.showFeather ? "active" : "")
481
481
  }, "Wind Feather", 2)
482
- ])) : j("", !0)
482
+ ])) : O("", !0)
483
483
  ], 4)
484
- ])) : j("", !0);
484
+ ])) : O("", !0);
485
485
  }
486
- const qt = /* @__PURE__ */ k(Ut, [["render", Yt], ["__scopeId", "data-v-59d56055"]]);
486
+ const qt = /* @__PURE__ */ k(Ut, [["render", Yt], ["__scopeId", "data-v-fc7a24ef"]]);
487
487
  class Ue {
488
488
  constructor(e) {
489
489
  M(this, "map");
@@ -703,12 +703,12 @@ class le {
703
703
  try {
704
704
  const f = t.getUniformLocation(r, "u_resolution"), d = t.getUniformLocation(r, "u_image"), m = t.getUniformLocation(r, "u_color");
705
705
  if (t.useProgram(r), t.uniform2f(f, t.canvas.width * e.ratio, t.canvas.height * e.ratio), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, a), t.uniform1i(d, 0), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, s), t.uniform1i(m, 1), o != null && o.uvRange && (o != null && o.sRange)) {
706
- const p = t.getUniformLocation(r, "u_range_u_v"), b = t.getUniformLocation(r, "u_range_s");
707
- t.uniform2f(p, o.uvRange[0], o.uvRange[1]), t.uniform2f(b, o.sRange[0], o.sRange[1]);
706
+ const p = t.getUniformLocation(r, "u_range_u_v"), v = t.getUniformLocation(r, "u_range_s");
707
+ t.uniform2f(p, o.uvRange[0], o.uvRange[1]), t.uniform2f(v, o.sRange[0], o.sRange[1]);
708
708
  }
709
709
  const u = e.getBoundPixel(), g = e.map.getZoom() + 1, y = e.getWorldCopy(u, g);
710
710
  for (const p of y) {
711
- const b = (p[0] - u[0]) * e.ratio, v = (p[1] - u[3]) * e.ratio, L = p[2] * e.ratio, [P, _, I, $] = [b, L + b, v, L + v], D = new Float32Array([P, I, _, I, P, $, P, $, _, I, _, $]);
711
+ const v = (p[0] - u[0]) * e.ratio, b = (p[1] - u[3]) * e.ratio, _ = p[2] * e.ratio, [P, L, I, $] = [v, _ + v, b, _ + b], D = new Float32Array([P, I, L, I, P, $, P, $, L, I, L, $]);
712
712
  t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, D, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
713
713
  }
714
714
  } catch (f) {
@@ -1131,9 +1131,9 @@ function hi(i, e, t, r, a, s) {
1131
1131
  return (n = t.factor) != null && n.active ? (w(), x("div", Qt, [
1132
1132
  l("div", {
1133
1133
  class: "legend-bars flex-center",
1134
- style: N([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
1134
+ style: j([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
1135
1135
  }, li, 4)
1136
- ])) : j("", !0);
1136
+ ])) : O("", !0);
1137
1137
  }
1138
1138
  const ci = /* @__PURE__ */ k(Kt, [["render", hi], ["__scopeId", "data-v-bc5ff165"]]);
1139
1139
  const di = {
@@ -1319,7 +1319,7 @@ function gi(i, e, t, r, a, s) {
1319
1319
  return (n = t.current) != null && n.active ? (w(), x("div", pi, [
1320
1320
  l("div", {
1321
1321
  class: "flex-center tool-bars",
1322
- style: N([{ position: "absolute" }, { right: a.right + "px", bottom: a.bottom + "px" }])
1322
+ style: j([{ position: "absolute" }, { right: a.right + "px", bottom: a.bottom + "px" }])
1323
1323
  }, [
1324
1324
  l("div", {
1325
1325
  class: "flex-start",
@@ -1340,12 +1340,12 @@ function gi(i, e, t, r, a, s) {
1340
1340
  l("span", {
1341
1341
  class: z(a.showJson ? "active" : "")
1342
1342
  }, "Current", 2)
1343
- ])) : j("", !0)
1343
+ ])) : O("", !0)
1344
1344
  ], 4)
1345
- ])) : j("", !0);
1345
+ ])) : O("", !0);
1346
1346
  }
1347
- const vi = /* @__PURE__ */ k(di, [["render", gi], ["__scopeId", "data-v-ce5e09b8"]]);
1348
- const bi = {
1347
+ const bi = /* @__PURE__ */ k(di, [["render", gi], ["__scopeId", "data-v-ce5e09b8"]]);
1348
+ const vi = {
1349
1349
  name: "IdmCurrentParticle",
1350
1350
  props: {
1351
1351
  factor: {
@@ -1506,8 +1506,8 @@ const bi = {
1506
1506
  });
1507
1507
  }
1508
1508
  }
1509
- }, he = (i) => (U("data-v-5f45c14c"), i = i(), G(), i), _i = { key: 0 }, Li = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "kts", -1)), wi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "0", -1)), xi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "0.4", -1)), Ci = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "0.8", -1)), Si = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "1.6", -1)), Pi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "2", -1)), Ti = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "3.2", -1)), Ei = [
1510
- Li,
1509
+ }, he = (i) => (U("data-v-5f45c14c"), i = i(), G(), i), Li = { key: 0 }, _i = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "kts", -1)), wi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "0", -1)), xi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "0.4", -1)), Ci = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "0.8", -1)), Si = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "1.6", -1)), Pi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "2", -1)), Ti = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "3.2", -1)), Ei = [
1510
+ _i,
1511
1511
  wi,
1512
1512
  xi,
1513
1513
  Ci,
@@ -1517,14 +1517,14 @@ const bi = {
1517
1517
  ];
1518
1518
  function ki(i, e, t, r, a, s) {
1519
1519
  var n;
1520
- return (n = t.factor) != null && n.active ? (w(), x("div", _i, [
1520
+ return (n = t.factor) != null && n.active ? (w(), x("div", Li, [
1521
1521
  l("div", {
1522
1522
  class: "legend-bars flex-center",
1523
- style: N([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
1523
+ style: j([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
1524
1524
  }, Ei, 4)
1525
- ])) : j("", !0);
1525
+ ])) : O("", !0);
1526
1526
  }
1527
- const Ri = /* @__PURE__ */ k(bi, [["render", ki], ["__scopeId", "data-v-5f45c14c"]]), Ii = {
1527
+ const Ri = /* @__PURE__ */ k(vi, [["render", ki], ["__scopeId", "data-v-5f45c14c"]]), Ii = {
1528
1528
  name: "IdmSigWave",
1529
1529
  props: {
1530
1530
  map: {
@@ -1971,7 +1971,7 @@ const Vi = {
1971
1971
  type: String
1972
1972
  }
1973
1973
  },
1974
- emits: ["tropical"],
1974
+ emits: ["tropical", "tropicalProbability"],
1975
1975
  data() {
1976
1976
  return {
1977
1977
  source: "tropicals-source",
@@ -1998,7 +1998,7 @@ const Vi = {
1998
1998
  computeTime() {
1999
1999
  return function(i) {
2000
2000
  if (i) {
2001
- const e = q(i).utc();
2001
+ const e = K(i).utc();
2002
2002
  return `${e.format("MMM-DD,HHmm[Z]")} (${e == null ? void 0 : e.fromNow()})`;
2003
2003
  }
2004
2004
  return "-";
@@ -2021,7 +2021,7 @@ const Vi = {
2021
2021
  "tropicals.version": {
2022
2022
  handler() {
2023
2023
  var r, a;
2024
- const i = ((a = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : a.features) || [], e = q().utc().hour(), t = [];
2024
+ const i = ((a = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : a.features) || [], e = K().utc().hour(), t = [];
2025
2025
  i.forEach((s) => {
2026
2026
  var n, o, h;
2027
2027
  (n = s.properties) != null && n.name && !t.includes((o = s.properties) == null ? void 0 : o.name) && t.push((h = s.properties) == null ? void 0 : h.name);
@@ -2036,12 +2036,12 @@ const Vi = {
2036
2036
  var u, g;
2037
2037
  return ((u = m.geometry) == null ? void 0 : u.type) === "LineString" && ((g = m.properties) == null ? void 0 : g.type) === "forecast";
2038
2038
  })[0]) == null ? void 0 : d.properties.model, f.forEach((m, u) => {
2039
- var g, y, p, b, v, L;
2040
- ((g = m.geometry) == null ? void 0 : g.type) === "Point" && ((y = m.properties) == null ? void 0 : y.type) === "history" && (n = u, o = o === void 0 ? u : o), ((p = m.geometry) == null ? void 0 : p.type) === "Point" && ((b = m.properties) == null ? void 0 : b.type) === "forecast" && o === void 0 && (o = u), ((v = m.geometry) == null ? void 0 : v.type) === "LineString" && ((L = m.properties) == null ? void 0 : L.type) === "forecast" && (c = `${s}-${h}`);
2039
+ var g, y, p, v, b, _;
2040
+ ((g = m.geometry) == null ? void 0 : g.type) === "Point" && ((y = m.properties) == null ? void 0 : y.type) === "history" && (n = u, o = o === void 0 ? u : o), ((p = m.geometry) == null ? void 0 : p.type) === "Point" && ((v = m.properties) == null ? void 0 : v.type) === "forecast" && o === void 0 && (o = u), ((b = m.geometry) == null ? void 0 : b.type) === "LineString" && ((_ = m.properties) == null ? void 0 : _.type) === "forecast" && (c = `${s}-${h}`);
2041
2041
  }), f.map((m, u) => {
2042
- var g, y, p, b, v, L, P, _, I, $;
2043
- if (((g = m.geometry) == null ? void 0 : g.type) === "LineString" && ((y = m.properties) == null ? void 0 : y.type) === "forecast" && (m.properties.disabled = ((p = m.properties) == null ? void 0 : p.model) !== h), ((b = m.geometry) == null ? void 0 : b.type) === "Point" && ((v = m.properties) == null ? void 0 : v.type) === "forecast" && (m.properties.disabled = ((L = m.properties) == null ? void 0 : L.category) !== c, m.properties.name = s), ((P = m.geometry) == null ? void 0 : P.type) === "Point" && ((_ = m.properties) == null ? void 0 : _.type) === "history") {
2044
- const D = (($ = (I = m.properties) == null ? void 0 : I.format) == null ? void 0 : $.slice(7, 12)) === q().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm") + "Z";
2042
+ var g, y, p, v, b, _, P, L, I, $;
2043
+ if (((g = m.geometry) == null ? void 0 : g.type) === "LineString" && ((y = m.properties) == null ? void 0 : y.type) === "forecast" && (m.properties.disabled = ((p = m.properties) == null ? void 0 : p.model) !== h), ((v = m.geometry) == null ? void 0 : v.type) === "Point" && ((b = m.properties) == null ? void 0 : b.type) === "forecast" && (m.properties.disabled = ((_ = m.properties) == null ? void 0 : _.category) !== c, m.properties.name = s), ((P = m.geometry) == null ? void 0 : P.type) === "Point" && ((L = m.properties) == null ? void 0 : L.type) === "history") {
2044
+ const D = (($ = (I = m.properties) == null ? void 0 : I.format) == null ? void 0 : $.slice(7, 12)) === K().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm") + "Z";
2045
2045
  m.properties.showHistoryLabel = D || u === n, m.properties.showNameLabel = u === n, m.properties.name = s;
2046
2046
  }
2047
2047
  return m;
@@ -2308,17 +2308,17 @@ const Vi = {
2308
2308
  if (!((f = this.tropicals) != null && f.cached)) {
2309
2309
  const d = et.interpolate(this.tropicals, 1), m = JSON.parse(JSON.stringify(d)), u = [];
2310
2310
  m.forEach((g) => {
2311
- var y, p, b;
2312
- (y = g.properties) != null && y.name && !u.includes((p = g.properties) == null ? void 0 : p.name) && u.push((b = g.properties) == null ? void 0 : b.name);
2311
+ var y, p, v;
2312
+ (y = g.properties) != null && y.name && !u.includes((p = g.properties) == null ? void 0 : p.name) && u.push((v = g.properties) == null ? void 0 : v.name);
2313
2313
  }), u.forEach((g) => {
2314
- var b;
2315
- const p = (b = m.filter((v) => {
2316
- var L;
2317
- return ((L = v.properties) == null ? void 0 : L.name) === g;
2318
- })[0]) == null ? void 0 : b.properties.model;
2319
- m.map((v, L) => {
2320
- var P, _;
2321
- return ((P = v.properties) == null ? void 0 : P.name) === g && (v.properties.disabled = ((_ = v.properties) == null ? void 0 : _.model) !== p), v;
2314
+ var v;
2315
+ const p = (v = m.filter((b) => {
2316
+ var _;
2317
+ return ((_ = b.properties) == null ? void 0 : _.name) === g;
2318
+ })[0]) == null ? void 0 : v.properties.model;
2319
+ m.map((b, _) => {
2320
+ var P, L;
2321
+ return ((P = b.properties) == null ? void 0 : P.name) === g && (b.properties.disabled = ((L = b.properties) == null ? void 0 : L.model) !== p), b;
2322
2322
  });
2323
2323
  }), this.interpolateData = JSON.parse(JSON.stringify(m));
2324
2324
  }
@@ -2330,9 +2330,9 @@ const Vi = {
2330
2330
  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), (i = this.interpolateMarkers) == null || i.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));
2331
2331
  },
2332
2332
  handleDateChange() {
2333
- var i, e, t, r, a, s, n, o, h, c, f, d, m, u, g, y, p, b, v, L, P, _, I, $, D, O, W, H;
2333
+ var i, e, t, r, a, s, n, o, h, c, f, d, m, u, g, y, p, v, b, _, P, L, I, $, D, W, N, H;
2334
2334
  if ((i = this.interpolateMarkers) == null || i.forEach((Z) => Z == null ? void 0 : Z.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
2335
- const Z = q(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), ee = this.interpolateData.filter((A) => A.properties.date === Z.format() && !A.properties.disabled), ce = this.handleComputePolygons(ee), te = C.featureCollection([...ee]);
2335
+ const Z = K(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), ee = this.interpolateData.filter((A) => A.properties.date === Z.format() && !A.properties.disabled), ce = this.handleComputePolygons(ee), te = C.featureCollection([...ee]);
2336
2336
  ce.forEach((A) => {
2337
2337
  te.features.push(A);
2338
2338
  }), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(te) : ((a = this.map) == null || a.addSource(this.interpolateSource, {
@@ -2352,7 +2352,7 @@ const Vi = {
2352
2352
  for (const A of ee)
2353
2353
  if (!A.properties.disabled) {
2354
2354
  let V = "#f44336";
2355
- ((o = (n = A.properties) == null ? void 0 : n.wind) == null ? void 0 : o.spd) < 17.2 ? V = "#03f869" : ((c = (h = A.properties) == null ? void 0 : h.wind) == null ? void 0 : c.spd) >= 17.2 && ((d = (f = A.properties) == null ? void 0 : f.wind) == null ? void 0 : d.spd) < 24.5 ? V = "#f2f202" : ((u = (m = A.properties) == null ? void 0 : m.wind) == null ? void 0 : u.spd) >= 24.5 && ((y = (g = A.properties) == null ? void 0 : g.wind) == null ? void 0 : y.spd) < 32.7 ? V = "#ff9100" : ((b = (p = A.properties) == null ? void 0 : p.wind) == null ? void 0 : b.spd) >= 32.7 && ((L = (v = A.properties) == null ? void 0 : v.wind) == null ? void 0 : L.spd) < 41.5 ? V = "#f44336" : ((_ = (P = A.properties) == null ? void 0 : P.wind) == null ? void 0 : _.spd) >= 41.5 && (($ = (I = A.properties) == null ? void 0 : I.wind) == null ? void 0 : $.spd) < 51 ? V = "#c604a4" : ((O = (D = A.properties) == null ? void 0 : D.wind) == null ? void 0 : O.spd) >= 51 ? V = "#6b05bb" : V = "#f44336";
2355
+ ((o = (n = A.properties) == null ? void 0 : n.wind) == null ? void 0 : o.spd) < 17.2 ? V = "#03f869" : ((c = (h = A.properties) == null ? void 0 : h.wind) == null ? void 0 : c.spd) >= 17.2 && ((d = (f = A.properties) == null ? void 0 : f.wind) == null ? void 0 : d.spd) < 24.5 ? V = "#f2f202" : ((u = (m = A.properties) == null ? void 0 : m.wind) == null ? void 0 : u.spd) >= 24.5 && ((y = (g = A.properties) == null ? void 0 : g.wind) == null ? void 0 : y.spd) < 32.7 ? V = "#ff9100" : ((v = (p = A.properties) == null ? void 0 : p.wind) == null ? void 0 : v.spd) >= 32.7 && ((_ = (b = A.properties) == null ? void 0 : b.wind) == null ? void 0 : _.spd) < 41.5 ? V = "#f44336" : ((L = (P = A.properties) == null ? void 0 : P.wind) == null ? void 0 : L.spd) >= 41.5 && (($ = (I = A.properties) == null ? void 0 : I.wind) == null ? void 0 : $.spd) < 51 ? V = "#c604a4" : ((W = (D = A.properties) == null ? void 0 : D.wind) == null ? void 0 : W.spd) >= 51 ? V = "#6b05bb" : V = "#f44336";
2356
2356
  const de = `<svg t="1719918955501"
2357
2357
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
2358
2358
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -2367,13 +2367,13 @@ const Vi = {
2367
2367
  <path
2368
2368
  d="M420.66666667 959.17a16.08 16.08 0 0 1-15.91-13.49A15.89 15.89 0 0 1 415.50666667 928c1.49-0.55 38.88-14.76 72.79-65.52A354.55 354.55 0 0 1 162.66666667 509.17a450.14 450.14 0 0 1 450.5-450.5 16.07 16.07 0 0 1 15.91 13.48 15.88 15.88 0 0 1-10.75 17.66c-1.58 0.58-39.13 14.9-73.07 65.95A354.22 354.22 0 0 1 871.66666667 509.17a16 16 0 0 1-0.52 4.05A450.14 450.14 0 0 1 420.66666667 959.17zM554.80666667 94.72C351.57666667 123.2 194.66666667 298.21 194.66666667 509.17c0 177.08 144.06 321.74 321.13 322.48a16 16 0 0 1 14.07 23.49c-16.11 30.42-34.27 52.37-50.85 68C682.25666667 894.63 839.16666667 719.63 839.16666667 508.67a15.94 15.94 0 0 1 0.47-3.86C837.30666667 329.33 693.82666667 187 517.80666667 186.67A16 16 0 0 1 503.66666667 163.21c16.21-30.69 34.47-52.79 51.14-68.49z"
2369
2369
  fill="#ffffff" p-id="18386"></path>
2370
- </svg>`, J = document.createElement("div");
2371
- J.className = "hurricane-hourly-marker", J.innerHTML = `<div class="${A.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${de}</div>`;
2372
- const ne = new ae.Marker(J).setLngLat(A.geometry.coordinates).addTo(this.map);
2370
+ </svg>`, Y = document.createElement("div");
2371
+ Y.className = "hurricane-hourly-marker", Y.innerHTML = `<div class="${A.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${de}</div>`;
2372
+ const ne = new ae.Marker(Y).setLngLat(A.geometry.coordinates).addTo(this.map);
2373
2373
  this.interpolateMarkers.push(ne);
2374
2374
  }
2375
2375
  } else
2376
- (W = this.map) != null && W.getSource(this.interpolateSource) && ((H = this.map) == null || H.getSource(this.interpolateSource).setData(this.empty));
2376
+ (N = this.map) != null && N.getSource(this.interpolateSource) && ((H = this.map) == null || H.getSource(this.interpolateSource).setData(this.empty));
2377
2377
  },
2378
2378
  handleClick(i) {
2379
2379
  var s, n, o, h, c, f;
@@ -2460,7 +2460,7 @@ const Vi = {
2460
2460
  return C.lineToPolygon(a, { properties: t });
2461
2461
  }
2462
2462
  }
2463
- }, Ge = (i) => (U("data-v-dfdfd5f2"), i = i(), G(), i), Ui = {
2463
+ }, Ge = (i) => (U("data-v-bb8414b4"), i = i(), G(), i), Ui = {
2464
2464
  id: "active-tropical",
2465
2465
  class: "active-tropical"
2466
2466
  }, Gi = { class: "header-box" }, Hi = { class: "main" }, Xi = { key: 0 }, Zi = { class: "sub" }, Ji = {
@@ -2475,51 +2475,51 @@ const Vi = {
2475
2475
  }, ta = /* @__PURE__ */ Ge(() => /* @__PURE__ */ l("label", null, "Pressure : ", -1)), ia = { class: "row" }, aa = {
2476
2476
  class: "col col-24",
2477
2477
  style: { "justify-content": "flex-start" }
2478
- }, ra = /* @__PURE__ */ Ge(() => /* @__PURE__ */ l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)), sa = { class: "forecast-models" }, oa = ["onClick"], na = /* @__PURE__ */ lt('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-dfdfd5f2></div><div class="row" style="padding:2px 10px;" data-v-dfdfd5f2><div class="legend" data-v-dfdfd5f2><div class="icon td" data-v-dfdfd5f2></div><div class="label" data-v-dfdfd5f2>TD</div></div><div class="legend" data-v-dfdfd5f2><div class="icon ts" data-v-dfdfd5f2></div><div class="label" data-v-dfdfd5f2>TS</div></div><div class="legend" data-v-dfdfd5f2><div class="icon sts" data-v-dfdfd5f2></div><div class="label" data-v-dfdfd5f2>STS</div></div><div class="legend" data-v-dfdfd5f2><div class="icon ty" data-v-dfdfd5f2></div><div class="label" data-v-dfdfd5f2>TY</div></div><div class="legend" data-v-dfdfd5f2><div class="icon sty" data-v-dfdfd5f2></div><div class="label" data-v-dfdfd5f2>STY</div></div><div class="legend" data-v-dfdfd5f2><div class="icon supper-ty" data-v-dfdfd5f2></div><div class="label" data-v-dfdfd5f2>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-dfdfd5f2><div class="legend" data-v-dfdfd5f2><div class="icon history" data-v-dfdfd5f2></div><div class="label" data-v-dfdfd5f2>History</div></div><div class="legend" data-v-dfdfd5f2><div class="icon r7" data-v-dfdfd5f2></div><div class="label" data-v-dfdfd5f2>35kts Radii</div></div><div class="legend" data-v-dfdfd5f2><div class="icon r10" data-v-dfdfd5f2></div><div class="label" data-v-dfdfd5f2>50kts Radii</div></div></div>', 3), la = { class: "more" };
2478
+ }, ra = /* @__PURE__ */ Ge(() => /* @__PURE__ */ l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)), sa = { class: "forecast-models" }, oa = ["onClick"], na = /* @__PURE__ */ lt('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-bb8414b4></div><div class="row" style="padding:2px 10px;" data-v-bb8414b4><div class="legend" data-v-bb8414b4><div class="icon td" data-v-bb8414b4></div><div class="label" data-v-bb8414b4>TD</div></div><div class="legend" data-v-bb8414b4><div class="icon ts" data-v-bb8414b4></div><div class="label" data-v-bb8414b4>TS</div></div><div class="legend" data-v-bb8414b4><div class="icon sts" data-v-bb8414b4></div><div class="label" data-v-bb8414b4>STS</div></div><div class="legend" data-v-bb8414b4><div class="icon ty" data-v-bb8414b4></div><div class="label" data-v-bb8414b4>TY</div></div><div class="legend" data-v-bb8414b4><div class="icon sty" data-v-bb8414b4></div><div class="label" data-v-bb8414b4>STY</div></div><div class="legend" data-v-bb8414b4><div class="icon supper-ty" data-v-bb8414b4></div><div class="label" data-v-bb8414b4>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-bb8414b4><div class="legend" data-v-bb8414b4><div class="icon history" data-v-bb8414b4></div><div class="label" data-v-bb8414b4>History</div></div><div class="legend" data-v-bb8414b4><div class="icon r7" data-v-bb8414b4></div><div class="label" data-v-bb8414b4>35kts Radii</div></div><div class="legend" data-v-bb8414b4><div class="icon r10" data-v-bb8414b4></div><div class="label" data-v-bb8414b4>50kts Radii</div></div></div>', 3), la = { class: "more" };
2479
2479
  function ha(i, e, t, r, a, s) {
2480
- var n, o, h, c, f, d, m, u, g, y, p, b, v, L, P;
2480
+ var n, o, h, c, f, d, m, u, g, y, p, v, b, _, P;
2481
2481
  return ze((w(), x("div", Ui, [
2482
2482
  l("div", Gi, [
2483
2483
  l("div", {
2484
2484
  class: "iconfont close-btn",
2485
- onClick: e[0] || (e[0] = (_) => a.showTropicals = !1)
2485
+ onClick: e[0] || (e[0] = (L) => a.showTropicals = !1)
2486
2486
  }, ""),
2487
2487
  l("div", Hi, [
2488
- (o = (n = a.activeTropicals) == null ? void 0 : n.history) != null && o.level ? (w(), x("span", Xi, S((c = (h = a.activeTropicals) == null ? void 0 : h.history) == null ? void 0 : c.level) + " , ", 1)) : j("", !0),
2488
+ (o = (n = a.activeTropicals) == null ? void 0 : n.history) != null && o.level ? (w(), x("span", Xi, S((c = (h = a.activeTropicals) == null ? void 0 : h.history) == null ? void 0 : c.level) + " , ", 1)) : O("", !0),
2489
2489
  Qe(S((f = a.activeTropicals) == null ? void 0 : f.name), 1)
2490
2490
  ]),
2491
- l("div", Zi, " Last update: " + S(s.computeTime(((m = (d = a.activeTropicals) == null ? void 0 : d.history) == null ? void 0 : m.updated) || ((y = (g = (u = a.activeTropicals) == null ? void 0 : u.forecasts) == null ? void 0 : g.filter((_) => !_.disabled)[0]) == null ? void 0 : y.date))), 1)
2491
+ l("div", Zi, " Last update: " + S(s.computeTime(((m = (d = a.activeTropicals) == null ? void 0 : d.history) == null ? void 0 : m.updated) || ((y = (g = (u = a.activeTropicals) == null ? void 0 : u.forecasts) == null ? void 0 : g.filter((L) => !L.disabled)[0]) == null ? void 0 : y.date))), 1)
2492
2492
  ]),
2493
2493
  l("div", Ji, [
2494
2494
  l("div", Yi, [
2495
2495
  l("div", qi, [
2496
2496
  l("div", Ki, [
2497
2497
  Qi,
2498
- l("span", null, S(((b = (p = a.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : b.kts) || "-") + "[kts]", 1)
2498
+ l("span", null, S(((v = (p = a.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : v.kts) || "-") + "[kts]", 1)
2499
2499
  ]),
2500
2500
  l("div", ea, [
2501
2501
  ta,
2502
- l("span", null, S(((L = (v = a.activeTropicals) == null ? void 0 : v.history) == null ? void 0 : L.pressure) || "-") + "[hPa]", 1)
2502
+ l("span", null, S(((_ = (b = a.activeTropicals) == null ? void 0 : b.history) == null ? void 0 : _.pressure) || "-") + "[hPa]", 1)
2503
2503
  ])
2504
2504
  ]),
2505
2505
  l("div", ia, [
2506
2506
  l("div", aa, [
2507
2507
  ra,
2508
2508
  l("div", sa, [
2509
- (w(!0), x($e, null, De((P = a.activeTropicals) == null ? void 0 : P.forecasts, (_, I) => {
2510
- var $, D, O, W;
2509
+ (w(!0), x($e, null, De((P = a.activeTropicals) == null ? void 0 : P.forecasts, (L, I) => {
2510
+ var $, D, W, N;
2511
2511
  return w(), x("div", {
2512
2512
  key: I,
2513
2513
  class: z([
2514
2514
  "model",
2515
- _.disabled ? "" : "active",
2516
- I > 0 && I < ((D = ($ = a.activeTropicals) == null ? void 0 : $.forecasts) == null ? void 0 : D.length) - 1 && ((W = (O = a.activeTropicals) == null ? void 0 : O.forecasts) == null ? void 0 : W.length) > 2 ? "center-child" : ""
2515
+ L.disabled ? "" : "active",
2516
+ I > 0 && I < ((D = ($ = a.activeTropicals) == null ? void 0 : $.forecasts) == null ? void 0 : D.length) - 1 && ((N = (W = a.activeTropicals) == null ? void 0 : W.forecasts) == null ? void 0 : N.length) > 2 ? "center-child" : ""
2517
2517
  ]),
2518
- onClick: (H) => s.handleForecastToggle(_)
2518
+ onClick: (H) => s.handleForecastToggle(L)
2519
2519
  }, [
2520
2520
  l("span", {
2521
- class: z(_.model)
2522
- }, S(_.model), 3)
2521
+ class: z(L.model)
2522
+ }, S(L.model), 3)
2523
2523
  ], 10, oa);
2524
2524
  }), 128))
2525
2525
  ])
@@ -2530,7 +2530,7 @@ function ha(i, e, t, r, a, s) {
2530
2530
  l("div", la, [
2531
2531
  l("div", {
2532
2532
  class: "button",
2533
- onClick: e[1] || (e[1] = (_) => s.handleStrikeProbability(a.activeTropicals))
2533
+ onClick: e[1] || (e[1] = (L) => s.handleStrikeProbability(a.activeTropicals))
2534
2534
  }, "Strike Probability >>")
2535
2535
  ])
2536
2536
  ])
@@ -2538,7 +2538,7 @@ function ha(i, e, t, r, a, s) {
2538
2538
  [Me, a.showTropicals]
2539
2539
  ]);
2540
2540
  }
2541
- const tt = /* @__PURE__ */ k(Vi, [["render", ha], ["__scopeId", "data-v-dfdfd5f2"]]);
2541
+ const tt = /* @__PURE__ */ k(Vi, [["render", ha], ["__scopeId", "data-v-bb8414b4"]]);
2542
2542
  const ca = {
2543
2543
  name: "IdmPrecip3h",
2544
2544
  props: {
@@ -2640,26 +2640,26 @@ const ca = {
2640
2640
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
2641
2641
  }
2642
2642
  }
2643
- }, se = (i) => (U("data-v-42b977ed"), i = i(), G(), i), da = { key: 0 }, pa = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "mm", -1)), ma = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "1.5", -1)), ua = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "2", -1)), fa = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "3", -1)), ya = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "7", -1)), ga = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "10", -1)), va = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "20", -1)), ba = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "30", -1)), _a = [
2643
+ }, se = (i) => (U("data-v-42b977ed"), i = i(), G(), i), da = { key: 0 }, pa = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "mm", -1)), ma = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "1.5", -1)), ua = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "2", -1)), fa = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "3", -1)), ya = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "7", -1)), ga = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "10", -1)), ba = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "20", -1)), va = /* @__PURE__ */ se(() => /* @__PURE__ */ l("span", null, "30", -1)), La = [
2644
2644
  pa,
2645
2645
  ma,
2646
2646
  ua,
2647
2647
  fa,
2648
2648
  ya,
2649
2649
  ga,
2650
- va,
2651
- ba
2650
+ ba,
2651
+ va
2652
2652
  ];
2653
- function La(i, e, t, r, a, s) {
2653
+ function _a(i, e, t, r, a, s) {
2654
2654
  var n;
2655
2655
  return (n = t.factor) != null && n.active ? (w(), x("div", da, [
2656
2656
  l("div", {
2657
2657
  class: "legend-bars flex-center",
2658
- style: N([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
2659
- }, _a, 4)
2660
- ])) : j("", !0);
2658
+ style: j([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
2659
+ }, La, 4)
2660
+ ])) : O("", !0);
2661
2661
  }
2662
- const wa = /* @__PURE__ */ k(ca, [["render", La], ["__scopeId", "data-v-42b977ed"]]);
2662
+ const wa = /* @__PURE__ */ k(ca, [["render", _a], ["__scopeId", "data-v-42b977ed"]]);
2663
2663
  const xa = {
2664
2664
  name: "IdmVisibility",
2665
2665
  props: {
@@ -2767,9 +2767,9 @@ function Aa(i, e, t, r, a, s) {
2767
2767
  return (n = t.factor) != null && n.active ? (w(), x("div", Ca, [
2768
2768
  l("div", {
2769
2769
  class: "legend-bars flex-center",
2770
- style: N([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
2770
+ style: j([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
2771
2771
  }, Ia, 4)
2772
- ])) : j("", !0);
2772
+ ])) : O("", !0);
2773
2773
  }
2774
2774
  const $a = /* @__PURE__ */ k(xa, [["render", Aa], ["__scopeId", "data-v-2a5fbadd"]]);
2775
2775
  const Da = {
@@ -2887,9 +2887,9 @@ function Va(i, e, t, r, a, s) {
2887
2887
  return (n = t.factor) != null && n.active ? (w(), x("div", za, [
2888
2888
  l("div", {
2889
2889
  class: "legend-bars flex-center",
2890
- style: N([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
2890
+ style: j([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
2891
2891
  }, Fa, 4)
2892
- ])) : j("", !0);
2892
+ ])) : O("", !0);
2893
2893
  }
2894
2894
  const Ua = /* @__PURE__ */ k(Da, [["render", Va], ["__scopeId", "data-v-5b28deaf"]]);
2895
2895
  const Ga = {
@@ -3012,9 +3012,9 @@ function ir(i, e, t, r, a, s) {
3012
3012
  return (n = t.factor) != null && n.active ? (w(), x("div", Ha, [
3013
3013
  l("div", {
3014
3014
  class: "legend-bars flex-center",
3015
- style: N([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
3015
+ style: j([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
3016
3016
  }, tr, 4)
3017
- ])) : j("", !0);
3017
+ ])) : O("", !0);
3018
3018
  }
3019
3019
  const ar = /* @__PURE__ */ k(Ga, [["render", ir], ["__scopeId", "data-v-72cd9cf1"]]);
3020
3020
  const rr = {
@@ -3126,9 +3126,9 @@ function mr(i, e, t, r, a, s) {
3126
3126
  return (n = t.factor) != null && n.active ? (w(), x("div", sr, [
3127
3127
  l("div", {
3128
3128
  class: "legend-bars flex-center",
3129
- style: N([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
3129
+ style: j([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
3130
3130
  }, pr, 4)
3131
- ])) : j("", !0);
3131
+ ])) : O("", !0);
3132
3132
  }
3133
3133
  const ur = /* @__PURE__ */ k(rr, [["render", mr], ["__scopeId", "data-v-2092df03"]]);
3134
3134
  const fr = {
@@ -3173,22 +3173,22 @@ const fr = {
3173
3173
  computed: {
3174
3174
  computeTime() {
3175
3175
  return function(i) {
3176
- return i ? `${q(i).utc().format("MMM-DD,HHmm[Z]")}` : "-";
3176
+ return i ? `${K(i).utc().format("MMM-DD,HHmm[Z]")}` : "-";
3177
3177
  };
3178
3178
  },
3179
3179
  computeLat() {
3180
3180
  return function(i, e = 4) {
3181
- return K.lat2pretty(i, e).pretty;
3181
+ return Q.lat2pretty(i, e).pretty;
3182
3182
  };
3183
3183
  },
3184
3184
  computeLng() {
3185
3185
  return function(i, e = 4) {
3186
- return K.lng2pretty(i, e).pretty;
3186
+ return Q.lng2pretty(i, e).pretty;
3187
3187
  };
3188
3188
  },
3189
3189
  roundPrecision() {
3190
3190
  return function(i, e = 4) {
3191
- return isNaN(i) ? "-" : K.roundPrecision(i, e);
3191
+ return isNaN(i) ? "-" : Q.roundPrecision(i, e);
3192
3192
  };
3193
3193
  }
3194
3194
  },
@@ -3210,38 +3210,44 @@ const fr = {
3210
3210
  }
3211
3211
  }
3212
3212
  }
3213
- }, Q = (i) => (U("data-v-8b51d938"), i = i(), G(), i), yr = {
3213
+ }, J = (i) => (U("data-v-a7923724"), i = i(), G(), i), yr = {
3214
3214
  id: "point-meteo",
3215
3215
  class: "point-meteo"
3216
- }, gr = { class: "meteo-box" }, vr = { class: "header-box" }, br = { class: "main" }, _r = { class: "sub" }, Lr = { class: "main-box" }, wr = { class: "flex-space" }, xr = /* @__PURE__ */ Q(() => /* @__PURE__ */ l("label", null, "Wind", -1)), Cr = { class: "flex-space" }, Sr = /* @__PURE__ */ Q(() => /* @__PURE__ */ l("label", null, "Wind.Wave", -1)), Pr = { class: "flex-space" }, Tr = /* @__PURE__ */ Q(() => /* @__PURE__ */ l("label", null, "Swell", -1)), Er = { class: "flex-space" }, kr = /* @__PURE__ */ Q(() => /* @__PURE__ */ l("label", null, "Sig.Wave", -1)), Rr = { class: "flex-space" }, Ir = /* @__PURE__ */ Q(() => /* @__PURE__ */ l("label", null, "Current", -1)), Ar = { class: "flex-space" }, $r = /* @__PURE__ */ Q(() => /* @__PURE__ */ l("label", null, "Precip", -1)), Dr = { class: "flex-space" }, zr = /* @__PURE__ */ Q(() => /* @__PURE__ */ l("label", null, "Visibility", -1)), Mr = { class: "flex-space" }, Br = /* @__PURE__ */ Q(() => /* @__PURE__ */ l("label", null, "Temp", -1)), Or = { class: "flex-space" }, Wr = /* @__PURE__ */ Q(() => /* @__PURE__ */ l("label", null, "Water Temp", -1));
3217
- function Nr(i, e, t, r, a, s) {
3218
- var n, o, h, c, f, d, m, u, g, y, p, b, v, L, P, _, I, $, D, O, W, H, Z, ee, ce, te, A, V, de, J, ne, ye, ge, ve, be, _e, Le, we, xe, Ce, Se, Pe, Te, Ee, ke, Re, Ie;
3216
+ }, gr = { class: "meteo-box" }, br = { class: "header-box" }, vr = { class: "main" }, Lr = { class: "sub" }, _r = { class: "main-box" }, wr = { class: "flex-space" }, xr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Wind", -1)), Cr = { class: "flex-space" }, Sr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Wind.Wave", -1)), Pr = { class: "flex-space" }, Tr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Swell", -1)), Er = { class: "flex-space" }, kr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Sig.Wave", -1)), Rr = { class: "flex-space" }, Ir = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Current", -1)), Ar = { class: "flex-space" }, $r = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Precip", -1)), Dr = { class: "flex-space" }, zr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Visibility", -1)), Mr = { class: "flex-space" }, Br = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Temp", -1)), Or = { class: "flex-space" }, Wr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Water Temp", -1)), Nr = {
3217
+ key: 0,
3218
+ class: "flex-space",
3219
+ style: { "justify-content": "flex-end" }
3220
+ }, jr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("span", { class: "more" }, "More >>", -1)), Fr = [
3221
+ jr
3222
+ ];
3223
+ function Vr(i, e, t, r, a, s) {
3224
+ var n, o, h, c, f, d, m, u, g, y, p, v, b, _, P, L, I, $, D, W, N, H, Z, ee, ce, te, A, V, de, Y, ne, ye, ge, be, ve, Le, _e, we, xe, Ce, Se, Pe, Te, Ee, ke, Re, Ie;
3219
3225
  return ze((w(), x("div", yr, [
3220
3226
  l("div", gr, [
3221
- l("div", vr, [
3227
+ l("div", br, [
3222
3228
  l("div", {
3223
3229
  class: "iconfont close",
3224
3230
  onClick: e[0] || (e[0] = (Oe) => a.showMeteo = !1)
3225
3231
  }, ""),
3226
- l("div", br, S(s.computeLat((n = t.meteo) == null ? void 0 : n.lat)) + "," + S(s.computeLng((o = t.meteo) == null ? void 0 : o.lng)), 1),
3227
- l("div", _r, S(s.computeTime((h = t.meteo) == null ? void 0 : h.utc)), 1)
3232
+ l("div", vr, S(s.computeLat((n = t.meteo) == null ? void 0 : n.lat)) + "," + S(s.computeLng((o = t.meteo) == null ? void 0 : o.lng)), 1),
3233
+ l("div", Lr, S(s.computeTime((h = t.meteo) == null ? void 0 : h.utc)), 1)
3228
3234
  ]),
3229
- l("div", Lr, [
3235
+ l("div", _r, [
3230
3236
  l("div", wr, [
3231
3237
  xr,
3232
3238
  l("span", null, S(((f = (c = t.meteo) == null ? void 0 : c.wind) == null ? void 0 : f.direction) || "-") + "/" + S(s.roundPrecision((m = (d = t.meteo) == null ? void 0 : d.wind) == null ? void 0 : m.kts, 1)) + "[kts]/" + S((g = (u = t.meteo) == null ? void 0 : u.wind) == null ? void 0 : g.scale) + "[BF]/" + S(s.roundPrecision((p = (y = t.meteo) == null ? void 0 : y.gusts) == null ? void 0 : p.kts, 1)) + "[kts]", 1)
3233
3239
  ]),
3234
3240
  l("div", Cr, [
3235
3241
  Sr,
3236
- l("span", null, S(((L = (v = (b = t.meteo) == null ? void 0 : b.wave) == null ? void 0 : v.wd) == null ? void 0 : L.direction) || "-") + "/" + S(s.roundPrecision((I = (_ = (P = t.meteo) == null ? void 0 : P.wave) == null ? void 0 : _.wd) == null ? void 0 : I.height, 1)) + "[m]/" + S(s.roundPrecision((O = (D = ($ = t.meteo) == null ? void 0 : $.wave) == null ? void 0 : D.wd) == null ? void 0 : O.period, 1)) + "[s]", 1)
3242
+ l("span", null, S(((_ = (b = (v = t.meteo) == null ? void 0 : v.wave) == null ? void 0 : b.wd) == null ? void 0 : _.direction) || "-") + "/" + S(s.roundPrecision((I = (L = (P = t.meteo) == null ? void 0 : P.wave) == null ? void 0 : L.wd) == null ? void 0 : I.height, 1)) + "[m]/" + S(s.roundPrecision((W = (D = ($ = t.meteo) == null ? void 0 : $.wave) == null ? void 0 : D.wd) == null ? void 0 : W.period, 1)) + "[s]", 1)
3237
3243
  ]),
3238
3244
  l("div", Pr, [
3239
3245
  Tr,
3240
- l("span", null, S(((Z = (H = (W = t.meteo) == null ? void 0 : W.wave) == null ? void 0 : H.swell) == null ? void 0 : Z.direction) || "-") + "/" + S(s.roundPrecision((te = (ce = (ee = t.meteo) == null ? void 0 : ee.wave) == null ? void 0 : ce.swell) == null ? void 0 : te.height, 1)) + "[m]/" + S(s.roundPrecision((de = (V = (A = t.meteo) == null ? void 0 : A.wave) == null ? void 0 : V.swell) == null ? void 0 : de.period, 1)) + "[s]", 1)
3246
+ l("span", null, S(((Z = (H = (N = t.meteo) == null ? void 0 : N.wave) == null ? void 0 : H.swell) == null ? void 0 : Z.direction) || "-") + "/" + S(s.roundPrecision((te = (ce = (ee = t.meteo) == null ? void 0 : ee.wave) == null ? void 0 : ce.swell) == null ? void 0 : te.height, 1)) + "[m]/" + S(s.roundPrecision((de = (V = (A = t.meteo) == null ? void 0 : A.wave) == null ? void 0 : V.swell) == null ? void 0 : de.period, 1)) + "[s]", 1)
3241
3247
  ]),
3242
3248
  l("div", Er, [
3243
3249
  kr,
3244
- l("span", null, S(((ye = (ne = (J = t.meteo) == null ? void 0 : J.wave) == null ? void 0 : ne.sig) == null ? void 0 : ye.direction) || "-") + "/" + S(s.roundPrecision((be = (ve = (ge = t.meteo) == null ? void 0 : ge.wave) == null ? void 0 : ve.sig) == null ? void 0 : be.height, 1)) + "[m]/" + S(s.roundPrecision((we = (Le = (_e = t.meteo) == null ? void 0 : _e.wave) == null ? void 0 : Le.sig) == null ? void 0 : we.period, 1)) + "[s]", 1)
3250
+ l("span", null, S(((ye = (ne = (Y = t.meteo) == null ? void 0 : Y.wave) == null ? void 0 : ne.sig) == null ? void 0 : ye.direction) || "-") + "/" + S(s.roundPrecision((ve = (be = (ge = t.meteo) == null ? void 0 : ge.wave) == null ? void 0 : be.sig) == null ? void 0 : ve.height, 1)) + "[m]/" + S(s.roundPrecision((we = (_e = (Le = t.meteo) == null ? void 0 : Le.wave) == null ? void 0 : _e.sig) == null ? void 0 : we.period, 1)) + "[s]", 1)
3245
3251
  ]),
3246
3252
  l("div", Rr, [
3247
3253
  Ir,
@@ -3263,13 +3269,14 @@ function Nr(i, e, t, r, a, s) {
3263
3269
  Wr,
3264
3270
  l("span", null, S(s.roundPrecision((Ie = t.meteo) == null ? void 0 : Ie.waterTemp, 2)) + "[°C]", 1)
3265
3271
  ])
3266
- ])
3272
+ ]),
3273
+ i.$attrs.permission & a.helper.LEVEL.Prime ? (w(), x("div", Nr, Fr)) : O("", !0)
3267
3274
  ])
3268
3275
  ], 512)), [
3269
3276
  [Me, a.showMeteo]
3270
3277
  ]);
3271
3278
  }
3272
- const jr = /* @__PURE__ */ k(fr, [["render", Nr], ["__scopeId", "data-v-8b51d938"]]), Fr = {
3279
+ const Ur = /* @__PURE__ */ k(fr, [["render", Vr], ["__scopeId", "data-v-a7923724"]]), Gr = {
3273
3280
  name: "IdmWarZone",
3274
3281
  props: {
3275
3282
  map: {
@@ -3359,10 +3366,10 @@ const jr = /* @__PURE__ */ k(fr, [["render", Nr], ["__scopeId", "data-v-8b51d938
3359
3366
  }
3360
3367
  }
3361
3368
  };
3362
- function Vr(i, e, t, r, a, s) {
3369
+ function Hr(i, e, t, r, a, s) {
3363
3370
  return w(), x("div");
3364
3371
  }
3365
- const Ur = /* @__PURE__ */ k(Fr, [["render", Vr]]), Gr = {
3372
+ const Xr = /* @__PURE__ */ k(Gr, [["render", Hr]]), Zr = {
3366
3373
  name: "IdmGmdssArea",
3367
3374
  props: {
3368
3375
  map: {
@@ -3482,10 +3489,10 @@ const Ur = /* @__PURE__ */ k(Fr, [["render", Vr]]), Gr = {
3482
3489
  }
3483
3490
  }
3484
3491
  };
3485
- function Hr(i, e, t, r, a, s) {
3492
+ function Jr(i, e, t, r, a, s) {
3486
3493
  return w(), x("div");
3487
3494
  }
3488
- const Xr = /* @__PURE__ */ k(Gr, [["render", Hr]]), Zr = {
3495
+ const Yr = /* @__PURE__ */ k(Zr, [["render", Jr]]), qr = {
3489
3496
  name: "IdmEcaZone",
3490
3497
  props: {
3491
3498
  map: {
@@ -3573,11 +3580,11 @@ const Xr = /* @__PURE__ */ k(Gr, [["render", Hr]]), Zr = {
3573
3580
  }
3574
3581
  }
3575
3582
  };
3576
- function Jr(i, e, t, r, a, s) {
3583
+ function Kr(i, e, t, r, a, s) {
3577
3584
  return w(), x("div");
3578
3585
  }
3579
- const Yr = /* @__PURE__ */ k(Zr, [["render", Jr]]);
3580
- const qr = {
3586
+ const Qr = /* @__PURE__ */ k(qr, [["render", Kr]]);
3587
+ const es = {
3581
3588
  name: "IdmAlertZone",
3582
3589
  props: {
3583
3590
  map: {
@@ -3703,10 +3710,10 @@ const qr = {
3703
3710
  this.map.getLayer(this.polygonLayer) && this.map.removeLayer(this.polygonLayer), this.map.getLayer(this.polygonLayer + "-border") && this.map.removeLayer(this.polygonLayer + "-border"), this.map.getLayer(this.polygonLabelLayer) && this.map.removeLayer(this.polygonLabelLayer), this.map.getLayer(this.lineLayer) && this.map.removeLayer(this.lineLayer), this.map.getLayer(this.lineLabelLayer) && this.map.removeLayer(this.lineLabelLayer), this.map.getLayer(this.pointLayer) && this.map.removeLayer(this.pointLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
3704
3711
  }
3705
3712
  }
3706
- }, Kr = { id: "zone-info" }, Qr = ["innerHTML"];
3707
- function es(i, e, t, r, a, s) {
3713
+ }, ts = { id: "zone-info" }, is = ["innerHTML"];
3714
+ function as(i, e, t, r, a, s) {
3708
3715
  var n;
3709
- return ze((w(), x("div", Kr, [
3716
+ return ze((w(), x("div", ts, [
3710
3717
  l("div", {
3711
3718
  class: "iconfont close",
3712
3719
  onClick: e[0] || (e[0] = (o) => a.showZone = !1)
@@ -3714,13 +3721,13 @@ function es(i, e, t, r, a, s) {
3714
3721
  l("div", {
3715
3722
  class: "rich-context",
3716
3723
  innerHTML: (n = a.form) == null ? void 0 : n.name
3717
- }, null, 8, Qr)
3724
+ }, null, 8, is)
3718
3725
  ], 512)), [
3719
3726
  [Me, a.showZone]
3720
3727
  ]);
3721
3728
  }
3722
- const ts = /* @__PURE__ */ k(qr, [["render", es], ["__scopeId", "data-v-d1cb4e6e"]]);
3723
- const is = {
3729
+ const rs = /* @__PURE__ */ k(es, [["render", as], ["__scopeId", "data-v-d1cb4e6e"]]);
3730
+ const ss = {
3724
3731
  name: "IdmPort",
3725
3732
  props: {
3726
3733
  map: {
@@ -3746,12 +3753,12 @@ const is = {
3746
3753
  computed: {
3747
3754
  computeLat() {
3748
3755
  return function(i) {
3749
- return K.lat2pretty(i, 4).pretty;
3756
+ return Q.lat2pretty(i, 4).pretty;
3750
3757
  };
3751
3758
  },
3752
3759
  computeLng() {
3753
3760
  return function(i) {
3754
- return K.lng2pretty(i, 4).pretty;
3761
+ return Q.lng2pretty(i, 4).pretty;
3755
3762
  };
3756
3763
  }
3757
3764
  },
@@ -3812,33 +3819,33 @@ const is = {
3812
3819
  this.showPort = !1, this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
3813
3820
  }
3814
3821
  }
3815
- }, Be = (i) => (U("data-v-6fdfee96"), i = i(), G(), i), as = { id: "port-info" }, rs = { class: "port-box" }, ss = { class: "flex-start" }, os = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Name : ", -1)), ns = { class: "flex-start" }, ls = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Position : ", -1)), hs = { class: "flex-start" }, cs = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "LoCode : ", -1)), ds = {
3822
+ }, Be = (i) => (U("data-v-6fdfee96"), i = i(), G(), i), os = { id: "port-info" }, ns = { class: "port-box" }, ls = { class: "flex-start" }, hs = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Name : ", -1)), cs = { class: "flex-start" }, ds = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Position : ", -1)), ps = { class: "flex-start" }, ms = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "LoCode : ", -1)), us = {
3816
3823
  class: "flex-start",
3817
3824
  style: { "align-items": "flex-start" }
3818
- }, ps = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Region : ", -1));
3819
- function ms(i, e, t, r, a, s) {
3820
- return ze((w(), x("div", as, [
3825
+ }, fs = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Region : ", -1));
3826
+ function ys(i, e, t, r, a, s) {
3827
+ return ze((w(), x("div", os, [
3821
3828
  l("div", {
3822
3829
  class: "close iconfont",
3823
3830
  onClick: e[0] || (e[0] = (n) => a.showPort = !1)
3824
3831
  }, ""),
3825
- l("div", rs, [
3826
- l("div", ss, [
3827
- os,
3832
+ l("div", ns, [
3833
+ l("div", ls, [
3834
+ hs,
3828
3835
  l("span", {
3829
3836
  onClick: e[1] || (e[1] = (...n) => s.handleEmit && s.handleEmit(...n))
3830
3837
  }, S(a.form.name), 1)
3831
3838
  ]),
3832
- l("div", ns, [
3833
- ls,
3839
+ l("div", cs, [
3840
+ ds,
3834
3841
  l("span", null, S(s.computeLat(a.form.lat)) + ", " + S(s.computeLng(a.form.lng)), 1)
3835
3842
  ]),
3836
- l("div", hs, [
3837
- cs,
3843
+ l("div", ps, [
3844
+ ms,
3838
3845
  l("span", null, S(a.form.loCode || "-"), 1)
3839
3846
  ]),
3840
- l("div", ds, [
3841
- ps,
3847
+ l("div", us, [
3848
+ fs,
3842
3849
  l("span", null, S(a.form.city || "-") + ", " + S(a.form.country || "-"), 1)
3843
3850
  ])
3844
3851
  ])
@@ -3846,7 +3853,7 @@ function ms(i, e, t, r, a, s) {
3846
3853
  [Me, a.showPort]
3847
3854
  ]);
3848
3855
  }
3849
- const us = /* @__PURE__ */ k(is, [["render", ms], ["__scopeId", "data-v-6fdfee96"]]), fs = {
3856
+ const gs = /* @__PURE__ */ k(ss, [["render", ys], ["__scopeId", "data-v-6fdfee96"]]), bs = {
3850
3857
  name: "IdmLoadLine",
3851
3858
  props: {
3852
3859
  map: {
@@ -3916,10 +3923,10 @@ const us = /* @__PURE__ */ k(is, [["render", ms], ["__scopeId", "data-v-6fdfee96
3916
3923
  }
3917
3924
  }
3918
3925
  };
3919
- function ys(i, e, t, r, a, s) {
3926
+ function vs(i, e, t, r, a, s) {
3920
3927
  return w(), x("div");
3921
3928
  }
3922
- const gs = /* @__PURE__ */ k(fs, [["render", ys]]), vs = {
3929
+ const Ls = /* @__PURE__ */ k(bs, [["render", vs]]), _s = {
3923
3930
  name: "IdmTimezone",
3924
3931
  props: {
3925
3932
  map: {
@@ -4084,10 +4091,10 @@ const gs = /* @__PURE__ */ k(fs, [["render", ys]]), vs = {
4084
4091
  }
4085
4092
  }
4086
4093
  };
4087
- function bs(i, e, t, r, a, s) {
4094
+ function ws(i, e, t, r, a, s) {
4088
4095
  return w(), x("div");
4089
4096
  }
4090
- const _s = /* @__PURE__ */ k(vs, [["render", bs]]), Ls = {
4097
+ const xs = /* @__PURE__ */ k(_s, [["render", ws]]), Cs = {
4091
4098
  name: "IdmVoluntaryReportingArea",
4092
4099
  props: {
4093
4100
  map: {
@@ -4175,10 +4182,10 @@ const _s = /* @__PURE__ */ k(vs, [["render", bs]]), Ls = {
4175
4182
  }
4176
4183
  }
4177
4184
  };
4178
- function ws(i, e, t, r, a, s) {
4185
+ function Ss(i, e, t, r, a, s) {
4179
4186
  return w(), x("div");
4180
4187
  }
4181
- const xs = /* @__PURE__ */ k(Ls, [["render", ws]]), Cs = {
4188
+ const Ps = /* @__PURE__ */ k(Cs, [["render", Ss]]), Ts = {
4182
4189
  name: "IdmSpecialArea",
4183
4190
  props: {
4184
4191
  map: {
@@ -4268,10 +4275,10 @@ const xs = /* @__PURE__ */ k(Ls, [["render", ws]]), Cs = {
4268
4275
  }
4269
4276
  }
4270
4277
  };
4271
- function Ss(i, e, t, r, a, s) {
4278
+ function Es(i, e, t, r, a, s) {
4272
4279
  return w(), x("div");
4273
4280
  }
4274
- const Ps = /* @__PURE__ */ k(Cs, [["render", Ss]]), Ts = {
4281
+ const ks = /* @__PURE__ */ k(Ts, [["render", Es]]), Rs = {
4275
4282
  name: "IdmTerminator",
4276
4283
  props: {
4277
4284
  map: {
@@ -4320,11 +4327,11 @@ const Ps = /* @__PURE__ */ k(Cs, [["render", Ss]]), Ts = {
4320
4327
  }
4321
4328
  }
4322
4329
  };
4323
- function Es(i, e, t, r, a, s) {
4330
+ function Is(i, e, t, r, a, s) {
4324
4331
  return w(), x("div");
4325
4332
  }
4326
- const ks = /* @__PURE__ */ k(Ts, [["render", Es]]);
4327
- const Rs = {
4333
+ const As = /* @__PURE__ */ k(Rs, [["render", Is]]);
4334
+ const $s = {
4328
4335
  name: "IdmLatLng",
4329
4336
  props: {
4330
4337
  map: {
@@ -4382,7 +4389,7 @@ const Rs = {
4382
4389
  this.show ? ((i = this.map) == null || i.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
4383
4390
  },
4384
4391
  handleMouseMove(i) {
4385
- const e = i.lngLat, t = K.lng2pretty(e.lng, 2), r = K.lat2pretty(e.lat, 2);
4392
+ const e = i.lngLat, t = Q.lng2pretty(e.lng, 2), r = Q.lat2pretty(e.lat, 2);
4386
4393
  this.lngLat = { lng: t, lat: r };
4387
4394
  },
4388
4395
  handleComputeLatLngs() {
@@ -4479,19 +4486,19 @@ const Rs = {
4479
4486
  (i = this.map) != null && i.getLayer(this.layer) && ((e = this.map) == null || e.removeLayer(this.layer)), (t = this.map) != null && t.getLayer(this.labelLayer) && ((r = this.map) == null || r.removeLayer(this.labelLayer)), (a = this.map) != null && a.getSource(this.source) && ((s = this.map) == null || s.removeSource(this.source));
4480
4487
  }
4481
4488
  }
4482
- }, Is = (i) => (U("data-v-9f51b3f9"), i = i(), G(), i), As = /* @__PURE__ */ Is(() => /* @__PURE__ */ l("span", null, ", ", -1));
4483
- function $s(i, e, t, r, a, s) {
4489
+ }, Ds = (i) => (U("data-v-9f51b3f9"), i = i(), G(), i), zs = /* @__PURE__ */ Ds(() => /* @__PURE__ */ l("span", null, ", ", -1));
4490
+ function Ms(i, e, t, r, a, s) {
4484
4491
  return a.lngLat ? (w(), x("div", {
4485
4492
  key: 0,
4486
4493
  class: "lat-lng-tip",
4487
- style: N({ right: a.right + "px", bottom: t.bottom })
4494
+ style: j({ right: a.right + "px", bottom: t.bottom })
4488
4495
  }, [
4489
4496
  l("span", null, S(a.lngLat.lat.pretty), 1),
4490
- As,
4497
+ zs,
4491
4498
  l("span", null, S(a.lngLat.lng.pretty), 1)
4492
- ], 4)) : j("", !0);
4499
+ ], 4)) : O("", !0);
4493
4500
  }
4494
- const it = /* @__PURE__ */ k(Rs, [["render", $s], ["__scopeId", "data-v-9f51b3f9"]]), Ds = {
4501
+ const it = /* @__PURE__ */ k($s, [["render", Ms], ["__scopeId", "data-v-9f51b3f9"]]), Bs = {
4495
4502
  name: "IdmMeasure",
4496
4503
  props: {
4497
4504
  map: {
@@ -4555,13 +4562,13 @@ const it = /* @__PURE__ */ k(Rs, [["render", $s], ["__scopeId", "data-v-9f51b3f9
4555
4562
  if ((e == null ? void 0 : e.split("-").length) === 2) {
4556
4563
  const m = this.geojson.filter((p) => p.id === e.split("-")[0])[0];
4557
4564
  this.pointMarkers[m.id].filter((p) => {
4558
- var b;
4559
- return ((b = p._element) == null ? void 0 : b.id) === e;
4565
+ var v;
4566
+ return ((v = p._element) == null ? void 0 : v.id) === e;
4560
4567
  })[0].setLngLat([(s = (a = i.target) == null ? void 0 : a._lngLat) == null ? void 0 : s.lng, (o = (n = i.target) == null ? void 0 : n._lngLat) == null ? void 0 : o.lat]);
4561
4568
  let g;
4562
- m.features.forEach((p, b) => {
4569
+ m.features.forEach((p, v) => {
4563
4570
  if (p.geometry.type === "Point" && p.properties.id == e.split("-")[1]) {
4564
- g = b;
4571
+ g = v;
4565
4572
  return;
4566
4573
  }
4567
4574
  });
@@ -4632,7 +4639,7 @@ const it = /* @__PURE__ */ k(Rs, [["render", $s], ["__scopeId", "data-v-9f51b3f9
4632
4639
  const r = [];
4633
4640
  for (let a = 1; a < e.length; a++) {
4634
4641
  const s = e[a - 1], n = e[a], o = s.properties, h = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, c = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, f = We(h, c, o.mode === "RL", 2), d = Ne(h, c, o.mode === "RL", 2);
4635
- t = K.roundPrecision(t + f, 2);
4642
+ t = Q.roundPrecision(t + f, 2);
4636
4643
  let m;
4637
4644
  o.mode === "RL" ? m = pe([h, c]) : m = pe(je(h, c, 200));
4638
4645
  const u = C.lineString(m.map((g) => [g.lng, g.lat]));
@@ -4699,7 +4706,7 @@ const it = /* @__PURE__ */ k(Rs, [["render", $s], ["__scopeId", "data-v-9f51b3f9
4699
4706
  }
4700
4707
  });
4701
4708
  let o;
4702
- if (r ? o = '<div class="marker-label">Drag and drop</div>' : o = `<div class="marker-label">Tol distance: <b>${K.roundPrecision((i.total ?? 0) + s, 2)}</b>nm, bearing: <b>${n}</b>°</div><div class="marker-label">${this.navigation === "RL" ? "RL" : "GC"} mode, using 'Shift' to switch</div><div class="marker-label">Double click to end</div>`, this.tipMarker)
4709
+ if (r ? o = '<div class="marker-label">Drag and drop</div>' : o = `<div class="marker-label">Tol distance: <b>${Q.roundPrecision((i.total ?? 0) + s, 2)}</b>nm, bearing: <b>${n}</b>°</div><div class="marker-label">${this.navigation === "RL" ? "RL" : "GC"} mode, using 'Shift' to switch</div><div class="marker-label">Double click to end</div>`, this.tipMarker)
4703
4710
  this.tipMarker._element.innerHTML = o, this.tipMarker.setLngLat([t.lng, t.lat]);
4704
4711
  else {
4705
4712
  const h = document.createElement("div");
@@ -4779,11 +4786,11 @@ const it = /* @__PURE__ */ k(Rs, [["render", $s], ["__scopeId", "data-v-9f51b3f9
4779
4786
  }
4780
4787
  }
4781
4788
  };
4782
- function zs(i, e, t, r, a, s) {
4789
+ function Os(i, e, t, r, a, s) {
4783
4790
  return w(), x("div");
4784
4791
  }
4785
- const Ms = /* @__PURE__ */ k(Ds, [["render", zs]]);
4786
- const Bs = {
4792
+ const Ws = /* @__PURE__ */ k(Bs, [["render", Os]]);
4793
+ const Ns = {
4787
4794
  name: "IdmENC",
4788
4795
  props: {
4789
4796
  map: {
@@ -4835,38 +4842,38 @@ const Bs = {
4835
4842
  }
4836
4843
  },
4837
4844
  methods: {}
4838
- }, at = (i) => (U("data-v-2d85e33b"), i = i(), G(), i), Os = { key: 0 }, Ws = { class: "bar-item" }, Ns = /* @__PURE__ */ at(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "HI", -1)), js = [
4839
- Ns
4840
- ], Fs = /* @__PURE__ */ at(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "I4", -1)), Vs = [
4841
- Fs
4845
+ }, at = (i) => (U("data-v-2d85e33b"), i = i(), G(), i), js = { key: 0 }, Fs = { class: "bar-item" }, Vs = /* @__PURE__ */ at(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "HI", -1)), Us = [
4846
+ Vs
4847
+ ], Gs = /* @__PURE__ */ at(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "I4", -1)), Hs = [
4848
+ Gs
4842
4849
  ];
4843
- function Us(i, e, t, r, a, s) {
4844
- return t.enabled && t.permission & a.helper.LEVEL.Supper ? (w(), x("div", Os, [
4850
+ function Xs(i, e, t, r, a, s) {
4851
+ return t.enabled && t.permission & a.helper.LEVEL.Supper ? (w(), x("div", js, [
4845
4852
  l("div", {
4846
4853
  class: "menu-bar-box",
4847
- style: N({ position: "absolute", right: a.right + "px", bottom: t.bottom })
4854
+ style: j({ position: "absolute", right: a.right + "px", bottom: t.bottom })
4848
4855
  }, [
4849
- l("div", Ws, [
4856
+ l("div", Fs, [
4850
4857
  l("div", {
4851
4858
  class: z(a.vendor === "hi" ? "menu-icon active" : "menu-icon"),
4852
4859
  onClick: e[0] || (e[0] = (n) => a.vendor = "hi")
4853
- }, js, 2),
4860
+ }, Us, 2),
4854
4861
  l("div", {
4855
4862
  class: z(a.vendor === "i4" ? "menu-icon active" : "menu-icon"),
4856
4863
  onClick: e[1] || (e[1] = (n) => a.vendor = "i4")
4857
- }, Vs, 2)
4864
+ }, Hs, 2)
4858
4865
  ])
4859
4866
  ], 4)
4860
- ])) : j("", !0);
4867
+ ])) : O("", !0);
4861
4868
  }
4862
- const Gs = /* @__PURE__ */ k(Bs, [["render", Us], ["__scopeId", "data-v-2d85e33b"]]);
4863
- const Hs = {
4869
+ const Zs = /* @__PURE__ */ k(Ns, [["render", Xs], ["__scopeId", "data-v-2d85e33b"]]);
4870
+ const Js = {
4864
4871
  name: "IdmGLV2",
4865
4872
  components: {
4866
4873
  IdmGlLayer: Vt,
4867
4874
  IdmWindBarb: qt,
4868
4875
  IdmWindParticle: ci,
4869
- IdmCurrents: vi,
4876
+ IdmCurrents: bi,
4870
4877
  IdmCurrentParticle: Ri,
4871
4878
  IdmSigWave: $i,
4872
4879
  IdmSwell: Mi,
@@ -4879,20 +4886,20 @@ const Hs = {
4879
4886
  IdmWaterTemp: Ua,
4880
4887
  IdmTemp: ar,
4881
4888
  IdmArctic: ur,
4882
- IdmWarZone: Ur,
4883
- IdmGmdssArea: Xr,
4884
- IdmEcaZone: Yr,
4885
- IdmAlertZone: ts,
4886
- IdmPort: us,
4887
- IdmLoadLine: gs,
4888
- IdmTimezone: _s,
4889
- IdmVRA: xs,
4890
- IdmSpecialArea: Ps,
4891
- IdmTerminator: ks,
4889
+ IdmWarZone: Xr,
4890
+ IdmGmdssArea: Yr,
4891
+ IdmEcaZone: Qr,
4892
+ IdmAlertZone: rs,
4893
+ IdmPort: gs,
4894
+ IdmLoadLine: Ls,
4895
+ IdmTimezone: xs,
4896
+ IdmVRA: Ps,
4897
+ IdmSpecialArea: ks,
4898
+ IdmTerminator: As,
4892
4899
  IdmLatLng: it,
4893
- IdmMeasure: Ms,
4894
- IdmPoint: jr,
4895
- IdmENC: Gs
4900
+ IdmMeasure: Ws,
4901
+ IdmPoint: Ur,
4902
+ IdmENC: Zs
4896
4903
  },
4897
4904
  props: {
4898
4905
  map: {
@@ -4938,7 +4945,7 @@ const Hs = {
4938
4945
  watch: {
4939
4946
  ts: {
4940
4947
  handler(i, e) {
4941
- i && e && q(i).utc().format("yyyy-MM-DD HH") !== q(e).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
4948
+ i && e && K(i).utc().format("yyyy-MM-DD HH") !== K(e).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
4942
4949
  this.handleDateChange({ tropicals: !1 });
4943
4950
  });
4944
4951
  },
@@ -4946,16 +4953,17 @@ const Hs = {
4946
4953
  },
4947
4954
  map: {
4948
4955
  handler() {
4949
- this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new Ue(this.map), this.handleRampColorInitial());
4956
+ var i, e, t, r, a, s, n, o, h, c, f, d, m, u, g, y, p;
4957
+ this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new Ue(this.map), this.handleRampColorInitial(), console.log(888, this.activeWeatherLayers), this.activeWeatherLayers.some((v) => ["wind", "current"].includes(v.key)) && ((i = this.particleFactor) != null && i.particle) || this.activeWeatherLayers.some((v) => ["temp", "water-temp"].includes(v.key)) ? ((t = (e = this.map) == null ? void 0 : e.getLayer("grayland")) == null || t.setLayoutProperty("visibility", "visible"), (a = (r = this.map) == null ? void 0 : r.getLayer("darkmap")) == null || a.setLayoutProperty("visibility", "visible"), (s = this.map) != null && s.getLayer("grayland") && ((o = this.map) == null || o.moveLayer((n = this.viewport) == null ? void 0 : n.rampColorLayer, "grayland")), (h = this.map) != null && h.getLayer("grayland") && ((f = this.map) == null || f.moveLayer((c = this.viewport) == null ? void 0 : c.particleLayer, "grayland"))) : ((m = this.map) == null || m.moveLayer((d = this.viewport) == null ? void 0 : d.rampColorLayer, null), (g = (u = this.map) == null ? void 0 : u.getLayer("grayland")) == null || g.setLayoutProperty("visibility", "none"), (p = (y = this.map) == null ? void 0 : y.getLayer("darkmap")) == null || p.setLayoutProperty("visibility", "none")));
4950
4958
  },
4951
4959
  immediate: !0
4952
4960
  },
4953
4961
  activeWeatherLayers: {
4954
4962
  handler() {
4955
4963
  var i, e, t, r, a, s, n, o, h, c, f, d, m, u, g, y, p;
4956
- if (!this.map)
4964
+ if (console.log(999, this.activeWeatherLayers), !this.map)
4957
4965
  return !1;
4958
- this.activeWeatherLayers.some((b) => ["wind", "current"].includes(b.key)) && ((i = this.particleFactor) != null && i.particle) || this.activeWeatherLayers.some((b) => ["temp", "water-temp"].includes(b.key)) ? ((t = (e = this.map) == null ? void 0 : e.getLayer("grayland")) == null || t.setLayoutProperty("visibility", "visible"), (a = (r = this.map) == null ? void 0 : r.getLayer("darkmap")) == null || a.setLayoutProperty("visibility", "visible"), (s = this.map) != null && s.getLayer("grayland") && ((o = this.map) == null || o.moveLayer((n = this.viewport) == null ? void 0 : n.rampColorLayer, "grayland")), (h = this.map) != null && h.getLayer("grayland") && ((f = this.map) == null || f.moveLayer((c = this.viewport) == null ? void 0 : c.particleLayer, "grayland"))) : ((m = this.map) == null || m.moveLayer((d = this.viewport) == null ? void 0 : d.rampColorLayer, null), (g = (u = this.map) == null ? void 0 : u.getLayer("grayland")) == null || g.setLayoutProperty("visibility", "none"), (p = (y = this.map) == null ? void 0 : y.getLayer("darkmap")) == null || p.setLayoutProperty("visibility", "none"));
4966
+ this.activeWeatherLayers.some((v) => ["wind", "current"].includes(v.key)) && ((i = this.particleFactor) != null && i.particle) || this.activeWeatherLayers.some((v) => ["temp", "water-temp"].includes(v.key)) ? ((t = (e = this.map) == null ? void 0 : e.getLayer("grayland")) == null || t.setLayoutProperty("visibility", "visible"), (a = (r = this.map) == null ? void 0 : r.getLayer("darkmap")) == null || a.setLayoutProperty("visibility", "visible"), (s = this.map) != null && s.getLayer("grayland") && ((o = this.map) == null || o.moveLayer((n = this.viewport) == null ? void 0 : n.rampColorLayer, "grayland")), (h = this.map) != null && h.getLayer("grayland") && ((f = this.map) == null || f.moveLayer((c = this.viewport) == null ? void 0 : c.particleLayer, "grayland"))) : ((m = this.map) == null || m.moveLayer((d = this.viewport) == null ? void 0 : d.rampColorLayer, null), (g = (u = this.map) == null ? void 0 : u.getLayer("grayland")) == null || g.setLayoutProperty("visibility", "none"), (p = (y = this.map) == null ? void 0 : y.getLayer("darkmap")) == null || p.setLayoutProperty("visibility", "none"));
4959
4967
  },
4960
4968
  immediate: !0
4961
4969
  },
@@ -4983,50 +4991,50 @@ const Hs = {
4983
4991
  const m = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, u = (s = this.map) == null ? void 0 : s.getBounds(), g = `${u._sw.lng},${u._sw.lat},${u._ne.lng},${u._ne.lat}`;
4984
4992
  if (this.handleRampColorState(), this.particleFactor) {
4985
4993
  const y = Fe.WEATHER_LAYERS.find((p) => {
4986
- var b;
4987
- return ((b = p.peer) == null ? void 0 : b.weight) === this.particleFactor.weight;
4994
+ var v;
4995
+ return ((v = p.peer) == null ? void 0 : v.weight) === this.particleFactor.weight;
4988
4996
  });
4989
4997
  this.particleFactor.particle ? this.weatherWeight = this.weatherWeight & y.weight ? this.weatherWeight : this.weatherWeight + y.weight : this.weatherWeight = this.weatherWeight & y.weight ? this.weatherWeight - y.weight : this.weatherWeight;
4990
4998
  }
4991
4999
  if (this.weatherWeight > 0) {
4992
5000
  let y = this.weatherWeight, p;
4993
5001
  if (i.tropicals || this.weatherWeight & 256 && (p = this.weatherLayers.tropicals, p && (y -= 256, p.version = Math.random() + 1)), y > 0) {
4994
- const b = await ie.get(`${this.gateway}/api/arc/weather/layers/links?l=${y}&v=${this.source}&z=${m}&bbox=${g}&t=${this.ts}`, {
5002
+ const v = await ie.get(`${this.gateway}/api/arc/weather/layers/links?l=${y}&v=${this.source}&z=${m}&bbox=${g}&t=${this.ts}`, {
4995
5003
  headers: {
4996
5004
  Authorization: this.token || this.defaultMeteoToken
4997
5005
  }
4998
5006
  });
4999
- if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((n = b == null ? void 0 : b.data) == null ? void 0 : n.code) === 0) {
5000
- const v = (o = b == null ? void 0 : b.data) == null ? void 0 : o.data, L = [];
5001
- for (const _ in v)
5002
- _ === "ice-edge" && (v[_] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), _ !== "tropicals" && L.push(
5003
- ie.get(v[_], {
5007
+ if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((n = v == null ? void 0 : v.data) == null ? void 0 : n.code) === 0) {
5008
+ const b = (o = v == null ? void 0 : v.data) == null ? void 0 : o.data, _ = [];
5009
+ for (const L in b)
5010
+ L === "ice-edge" && (b[L] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), L !== "tropicals" && _.push(
5011
+ ie.get(b[L], {
5004
5012
  headers: {
5005
5013
  Authorization: this.token || this.defaultMeteoToken,
5006
- key: _
5014
+ key: L
5007
5015
  },
5008
- responseType: /\.(jpg|png)$/.test(v[_]) ? "blob" : "json"
5016
+ responseType: /\.(jpg|png)$/.test(b[L]) ? "blob" : "json"
5009
5017
  }).catch((I) => {
5010
- console.log(`[${_}] fetch layer error: ${I}`);
5018
+ console.log(`[${L}] fetch layer error: ${I}`);
5011
5019
  })
5012
5020
  );
5013
- const P = await Promise.all(L);
5014
- this.weatherLayers = {}, P.map((_) => {
5015
- var D, O, W, H;
5016
- const I = ((D = _ == null ? void 0 : _.data) == null ? void 0 : D.data) || (_ == null ? void 0 : _.data), $ = (W = (O = _ == null ? void 0 : _.config) == null ? void 0 : O.headers) == null ? void 0 : W.key;
5021
+ const P = await Promise.all(_);
5022
+ this.weatherLayers = {}, P.map((L) => {
5023
+ var D, W, N, H;
5024
+ const I = ((D = L == null ? void 0 : L.data) == null ? void 0 : D.data) || (L == null ? void 0 : L.data), $ = (N = (W = L == null ? void 0 : L.config) == null ? void 0 : W.headers) == null ? void 0 : N.key;
5017
5025
  $ && I && (this.weatherLayers[$] = {
5018
5026
  raw: I,
5019
- type: ((H = _ == null ? void 0 : _.config) == null ? void 0 : H.responseType) === "blob" ? "image" : "json",
5027
+ type: ((H = L == null ? void 0 : L.config) == null ? void 0 : H.responseType) === "blob" ? "image" : "json",
5020
5028
  etime: this.ts
5021
5029
  });
5022
- }), v.tropicals && ie.get(v.tropicals, {
5030
+ }), b.tropicals && ie.get(b.tropicals, {
5023
5031
  headers: {
5024
5032
  Authorization: this.token || this.defaultMeteoToken,
5025
5033
  key: "tropicals"
5026
5034
  }
5027
- }).then((_) => {
5028
- var D, O, W;
5029
- const I = et.convert2Geojson(((D = _ == null ? void 0 : _.data) == null ? void 0 : D.data) || (_ == null ? void 0 : _.data)), $ = (W = (O = _ == null ? void 0 : _.config) == null ? void 0 : O.headers) == null ? void 0 : W.key;
5035
+ }).then((L) => {
5036
+ var D, W, N;
5037
+ const I = et.convert2Geojson(((D = L == null ? void 0 : L.data) == null ? void 0 : D.data) || (L == null ? void 0 : L.data)), $ = (N = (W = L == null ? void 0 : L.config) == null ? void 0 : W.headers) == null ? void 0 : N.key;
5030
5038
  this.weatherLayers[$] = {
5031
5039
  data: I,
5032
5040
  active: !0,
@@ -5038,20 +5046,20 @@ const Hs = {
5038
5046
  });
5039
5047
  }
5040
5048
  if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather layers elapsed: ", r, ", total: ", t += r), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
5041
- const v = (h = this.weatherLayers["swell-direction"]) == null ? void 0 : h.raw, L = (c = this.weatherLayers["swell-height"]) == null ? void 0 : c.raw;
5049
+ const b = (h = this.weatherLayers["swell-direction"]) == null ? void 0 : h.raw, _ = (c = this.weatherLayers["swell-height"]) == null ? void 0 : c.raw;
5042
5050
  delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
5043
5051
  type: "json",
5044
- direction: v,
5045
- height: { raw: L },
5052
+ direction: b,
5053
+ height: { raw: _ },
5046
5054
  etime: this.ts
5047
5055
  };
5048
5056
  }
5049
5057
  if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
5050
- const v = (f = this.weatherLayers["current-direction"]) == null ? void 0 : f.raw, L = (d = this.weatherLayers["current-speed"]) == null ? void 0 : d.raw;
5058
+ const b = (f = this.weatherLayers["current-direction"]) == null ? void 0 : f.raw, _ = (d = this.weatherLayers["current-speed"]) == null ? void 0 : d.raw;
5051
5059
  delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
5052
5060
  type: "json",
5053
- direction: v,
5054
- speed: { raw: L },
5061
+ direction: b,
5062
+ speed: { raw: _ },
5055
5063
  etime: this.ts
5056
5064
  };
5057
5065
  }
@@ -5180,24 +5188,24 @@ const Hs = {
5180
5188
  const y = ((f = this.weatherLayers[u]) == null ? void 0 : f.direction) || {};
5181
5189
  for (const p in y)
5182
5190
  if (p > o && p < h && (!(a <= this.zoom) || p % (a < this.zoom / 2 ? 5 : 3) === 0)) {
5183
- const b = y[p].lng;
5184
- s > n ? b.forEach((v, L) => {
5191
+ const v = y[p].lng;
5192
+ s > n ? v.forEach((b, _) => {
5185
5193
  var P;
5186
- if ((v >= s && v <= 180 || v >= -180 && v <= n) && (!(a <= this.zoom) || v % (a < this.zoom / 2 ? 5 : 3) === 0)) {
5187
- const _ = C.point([v, p], {
5188
- val: y[p].val[L],
5189
- spd: (P = y[p].spd) == null ? void 0 : P[L]
5194
+ if ((b >= s && b <= 180 || b >= -180 && b <= n) && (!(a <= this.zoom) || b % (a < this.zoom / 2 ? 5 : 3) === 0)) {
5195
+ const L = C.point([b, p], {
5196
+ val: y[p].val[_],
5197
+ spd: (P = y[p].spd) == null ? void 0 : P[_]
5190
5198
  });
5191
- g.push(_);
5199
+ g.push(L);
5192
5200
  }
5193
- }) : b.forEach((v, L) => {
5201
+ }) : v.forEach((b, _) => {
5194
5202
  var P;
5195
- if (v >= s && v <= n && (!(a <= this.zoom) || v % (a < this.zoom / 2 ? 5 : 3) === 0)) {
5196
- const _ = C.point([v, p], {
5197
- val: y[p].val[L],
5198
- spd: (P = y[p].spd) == null ? void 0 : P[L]
5203
+ if (b >= s && b <= n && (!(a <= this.zoom) || b % (a < this.zoom / 2 ? 5 : 3) === 0)) {
5204
+ const L = C.point([b, p], {
5205
+ val: y[p].val[_],
5206
+ spd: (P = y[p].spd) == null ? void 0 : P[_]
5199
5207
  });
5200
- g.push(_);
5208
+ g.push(L);
5201
5209
  }
5202
5210
  });
5203
5211
  }
@@ -5205,21 +5213,21 @@ const Hs = {
5205
5213
  const p = this.weatherLayers[u].height;
5206
5214
  if (p) {
5207
5215
  if (!p.data) {
5208
- const b = [];
5209
- for (const v in (d = p.raw) == null ? void 0 : d.LineString) {
5210
- const L = p.raw.LineString[v];
5211
- for (const P of L)
5212
- b.push(
5216
+ const v = [];
5217
+ for (const b in (d = p.raw) == null ? void 0 : d.LineString) {
5218
+ const _ = p.raw.LineString[b];
5219
+ for (const P of _)
5220
+ v.push(
5213
5221
  C.lineString(P, {
5214
- val: Number(v)
5222
+ val: Number(b)
5215
5223
  })
5216
5224
  );
5217
- p.data = C.featureCollection(b);
5225
+ p.data = C.featureCollection(v);
5218
5226
  }
5219
5227
  }
5220
5228
  if (p.data) {
5221
- const b = this.handleBboxClip(p.data, r);
5222
- g = g.concat(b);
5229
+ const v = this.handleBboxClip(p.data, r);
5230
+ g = g.concat(v);
5223
5231
  }
5224
5232
  t = (/* @__PURE__ */ new Date()).valueOf() - (i + e), console.log("height elapsed: ", t, ", total: ", e += t);
5225
5233
  }
@@ -5228,40 +5236,40 @@ const Hs = {
5228
5236
  const p = this.weatherLayers[u].speed;
5229
5237
  if (p) {
5230
5238
  if (!p.data) {
5231
- const v = [];
5232
- for (const L in (m = p.raw) == null ? void 0 : m.Polygon) {
5233
- const P = p.raw.Polygon[L];
5234
- for (const _ of P)
5235
- v.push(
5236
- C.polygon(_, {
5237
- val: Number(L)
5239
+ const b = [];
5240
+ for (const _ in (m = p.raw) == null ? void 0 : m.Polygon) {
5241
+ const P = p.raw.Polygon[_];
5242
+ for (const L of P)
5243
+ b.push(
5244
+ C.polygon(L, {
5245
+ val: Number(_)
5238
5246
  })
5239
5247
  );
5240
5248
  }
5241
- p.data = C.featureCollection(v);
5249
+ p.data = C.featureCollection(b);
5242
5250
  }
5243
- const b = a < this.zoom ? p.data.features.filter((v) => v.properties.val > 0.5) : p.data.features;
5244
- g = g.concat(b), t = (/* @__PURE__ */ new Date()).valueOf() - (i + e), console.log("speed elapsed: ", t, ", total: ", e += t);
5251
+ const v = a < this.zoom ? p.data.features.filter((b) => b.properties.val > 0.5) : p.data.features;
5252
+ g = g.concat(v), t = (/* @__PURE__ */ new Date()).valueOf() - (i + e), console.log("speed elapsed: ", t, ", total: ", e += t);
5245
5253
  }
5246
5254
  }
5247
5255
  } else if (u === "wind") {
5248
5256
  const y = this.weatherLayers.wind.raw;
5249
5257
  for (const p in y)
5250
5258
  if (p > o && p < h && (!(a <= this.zoom) || p % (a < this.zoom / 2 ? 5 : 3) === 0)) {
5251
- const b = y[p].lng;
5252
- s > n ? b.forEach((v, L) => {
5253
- if ((v >= s && v <= 180 || v >= -180 && v <= n) && (!(a <= this.zoom) || v % (a < this.zoom / 2 ? 5 : 3) === 0)) {
5254
- const P = C.point([v, p], {
5255
- val: y[p].val[L],
5256
- spd: y[p].spd[L]
5259
+ const v = y[p].lng;
5260
+ s > n ? v.forEach((b, _) => {
5261
+ if ((b >= s && b <= 180 || b >= -180 && b <= n) && (!(a <= this.zoom) || b % (a < this.zoom / 2 ? 5 : 3) === 0)) {
5262
+ const P = C.point([b, p], {
5263
+ val: y[p].val[_],
5264
+ spd: y[p].spd[_]
5257
5265
  });
5258
5266
  g.push(P);
5259
5267
  }
5260
- }) : b.forEach((v, L) => {
5261
- if (v >= s && v <= n && (!(a <= this.zoom) || v % (a < this.zoom / 2 ? 5 : 3) === 0)) {
5262
- const P = C.point([v, p], {
5263
- val: y[p].val[L],
5264
- spd: y[p].spd[L]
5268
+ }) : v.forEach((b, _) => {
5269
+ if (b >= s && b <= n && (!(a <= this.zoom) || b % (a < this.zoom / 2 ? 5 : 3) === 0)) {
5270
+ const P = C.point([b, p], {
5271
+ val: y[p].val[_],
5272
+ spd: y[p].spd[_]
5265
5273
  });
5266
5274
  g.push(P);
5267
5275
  }
@@ -5275,12 +5283,12 @@ const Hs = {
5275
5283
  const y = this.weatherLayers[u].raw;
5276
5284
  if (y) {
5277
5285
  const p = [];
5278
- for (const b in y.Polygon) {
5279
- const v = y.Polygon[b];
5280
- for (const L of v)
5286
+ for (const v in y.Polygon) {
5287
+ const b = y.Polygon[v];
5288
+ for (const _ of b)
5281
5289
  p.push(
5282
- C.polygon(L, {
5283
- val: Number(b)
5290
+ C.polygon(_, {
5291
+ val: Number(v)
5284
5292
  })
5285
5293
  );
5286
5294
  }
@@ -5295,21 +5303,21 @@ const Hs = {
5295
5303
  const y = this.weatherLayers[u].raw;
5296
5304
  if (y) {
5297
5305
  const p = [];
5298
- for (const b in y.LineString) {
5299
- const v = y.LineString[b];
5300
- for (const L of v)
5306
+ for (const v in y.LineString) {
5307
+ const b = y.LineString[v];
5308
+ for (const _ of b)
5301
5309
  p.push(
5302
- C.lineString(L, {
5303
- val: Number(b)
5310
+ C.lineString(_, {
5311
+ val: Number(v)
5304
5312
  })
5305
5313
  );
5306
5314
  }
5307
- for (const b in y.Point)
5308
- y.Point[b].lng.forEach((v, L) => {
5309
- v = Ae(v), p.push(
5310
- C.point([v, b], {
5311
- val: y.Point[b].val[L],
5312
- type: y.Point[b].type[L]
5315
+ for (const v in y.Point)
5316
+ y.Point[v].lng.forEach((b, _) => {
5317
+ b = Ae(b), p.push(
5318
+ C.point([b, v], {
5319
+ val: y.Point[v].val[_],
5320
+ type: y.Point[v].type[_]
5313
5321
  })
5314
5322
  );
5315
5323
  });
@@ -5324,12 +5332,12 @@ const Hs = {
5324
5332
  const y = this.weatherLayers[u].raw;
5325
5333
  if (y) {
5326
5334
  const p = [];
5327
- for (const b in y.LineString) {
5328
- const v = y.LineString[b];
5329
- for (const L of v)
5335
+ for (const v in y.LineString) {
5336
+ const b = y.LineString[v];
5337
+ for (const _ of b)
5330
5338
  p.push(
5331
- C.lineString(L, {
5332
- val: Number(b)
5339
+ C.lineString(_, {
5340
+ val: Number(v)
5333
5341
  })
5334
5342
  );
5335
5343
  }
@@ -5401,7 +5409,7 @@ const Hs = {
5401
5409
  }
5402
5410
  },
5403
5411
  async handlePointChange(i) {
5404
- const e = this.ts ? q(this.ts) : q(), t = {
5412
+ const e = this.ts ? K(this.ts) : K(), t = {
5405
5413
  lat: i.lat,
5406
5414
  lng: i.lng,
5407
5415
  ts: e.utc().format(),
@@ -5425,14 +5433,14 @@ const Hs = {
5425
5433
  this.particleFactor = i, this.fetchWeatherLayers({ tropicals: !1 });
5426
5434
  }
5427
5435
  }
5428
- }, Xs = {
5436
+ }, Ys = {
5429
5437
  key: 0,
5430
5438
  class: "map-gl-home"
5431
5439
  };
5432
- function Zs(i, e, t, r, a, s) {
5433
- var J, ne, ye, ge, ve, be, _e, Le, we, xe, Ce, Se, Pe, Te, Ee, ke, Re, Ie, Oe, He, Xe, Ze, Je, Ye, qe, Ke;
5434
- const n = T("IdmGlLayer"), o = T("IdmENC"), h = T("IdmSigWave"), c = T("IdmSwell"), f = T("IdmPrmsl"), d = T("IdmIceberg"), m = T("IdmTropicals"), u = T("IdmCurrents"), g = T("IdmCurrentParticle"), y = T("IdmWindBarb"), p = T("IdmWindParticle"), b = T("IdmPrecip3h"), v = T("IdmVisibility"), L = T("IdmWaterTemp"), P = T("IdmTemp"), _ = T("IdmArctic"), I = T("IdmWarZone"), $ = T("IdmGmdssArea"), D = T("IdmEcaZone"), O = T("IdmAlertZone"), W = T("IdmPort"), H = T("IdmLoadLine"), Z = T("IdmTimezone"), ee = T("IdmVRA"), ce = T("IdmSpecialArea"), te = T("IdmTerminator"), A = T("IdmLatLng"), V = T("IdmMeasure"), de = T("IdmPoint");
5435
- return t.map ? (w(), x("div", Xs, [
5440
+ function qs(i, e, t, r, a, s) {
5441
+ var Y, ne, ye, ge, be, ve, Le, _e, we, xe, Ce, Se, Pe, Te, Ee, ke, Re, Ie, Oe, He, Xe, Ze, Je, Ye, qe, Ke;
5442
+ const n = T("IdmGlLayer"), o = T("IdmENC"), h = T("IdmSigWave"), c = T("IdmSwell"), f = T("IdmPrmsl"), d = T("IdmIceberg"), m = T("IdmTropicals"), u = T("IdmCurrents"), g = T("IdmCurrentParticle"), y = T("IdmWindBarb"), p = T("IdmWindParticle"), v = T("IdmPrecip3h"), b = T("IdmVisibility"), _ = T("IdmWaterTemp"), P = T("IdmTemp"), L = T("IdmArctic"), I = T("IdmWarZone"), $ = T("IdmGmdssArea"), D = T("IdmEcaZone"), W = T("IdmAlertZone"), N = T("IdmPort"), H = T("IdmLoadLine"), Z = T("IdmTimezone"), ee = T("IdmVRA"), ce = T("IdmSpecialArea"), te = T("IdmTerminator"), A = T("IdmLatLng"), V = T("IdmMeasure"), de = T("IdmPoint");
5443
+ return t.map ? (w(), x("div", Ys, [
5436
5444
  E(n, R({
5437
5445
  ref: "layer",
5438
5446
  map: t.map,
@@ -5440,19 +5448,19 @@ function Zs(i, e, t, r, a, s) {
5440
5448
  }, i.$attrs, {
5441
5449
  onWeather: s.handleWeatherLayerChange,
5442
5450
  onOther: s.handleOtherLayerChange,
5443
- onCoordinate: e[0] || (e[0] = (Y) => a.showCoord = Y),
5444
- onMeasure: e[1] || (e[1] = (Y) => a.showMeasure = Y),
5445
- onPoint: e[2] || (e[2] = (Y) => a.showPoint = Y),
5451
+ onCoordinate: e[0] || (e[0] = (q) => a.showCoord = q),
5452
+ onMeasure: e[1] || (e[1] = (q) => a.showMeasure = q),
5453
+ onPoint: e[2] || (e[2] = (q) => a.showPoint = q),
5446
5454
  on3d: s.handle3dToggle,
5447
- onToggleVersion: e[3] || (e[3] = (Y) => a.toggleVersion = Y)
5455
+ onToggleVersion: e[3] || (e[3] = (q) => a.toggleVersion = q)
5448
5456
  }), null, 16, ["map", "toggle-version", "onWeather", "onOther", "on3d"]),
5449
5457
  E(o, R({
5450
5458
  map: t.map,
5451
5459
  token: t.token,
5452
- enabled: (J = a.otherLayers) == null ? void 0 : J.enc,
5460
+ enabled: (Y = a.otherLayers) == null ? void 0 : Y.enc,
5453
5461
  "toggle-version": a.toggleVersion
5454
5462
  }, i.$attrs, {
5455
- onEnc: e[4] || (e[4] = (Y) => a.enc = Y)
5463
+ onEnc: e[4] || (e[4] = (q) => a.enc = q)
5456
5464
  }), null, 16, ["map", "token", "enabled", "toggle-version"]),
5457
5465
  E(h, R({
5458
5466
  map: t.map,
@@ -5471,18 +5479,18 @@ function Zs(i, e, t, r, a, s) {
5471
5479
  }, i.$attrs), null, 16, ["map", "prmsl", "before-layer"]),
5472
5480
  E(d, R({
5473
5481
  map: t.map,
5474
- iceberg: (ve = a.weatherLayers) == null ? void 0 : ve.iceberg,
5482
+ iceberg: (be = a.weatherLayers) == null ? void 0 : be.iceberg,
5475
5483
  "before-layer": t.beforeLayer
5476
5484
  }, i.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
5477
5485
  E(m, R({
5478
5486
  map: t.map,
5479
5487
  date: t.ts,
5480
- tropicals: (be = a.weatherLayers) == null ? void 0 : be.tropicals,
5488
+ tropicals: (ve = a.weatherLayers) == null ? void 0 : ve.tropicals,
5481
5489
  "before-layer": t.beforeLayer
5482
5490
  }, i.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
5483
5491
  E(u, R({
5484
5492
  map: t.map,
5485
- current: (_e = a.weatherLayers) == null ? void 0 : _e.current,
5493
+ current: (Le = a.weatherLayers) == null ? void 0 : Le.current,
5486
5494
  "before-layer": t.beforeLayer,
5487
5495
  "show-particle": a.showCurrentParticle,
5488
5496
  "margin-bottom": a.activeWindLayer ? a.showRampColor ? "84px" : "56px" : a.showRampColor ? "56px" : "30px",
@@ -5491,7 +5499,7 @@ function Zs(i, e, t, r, a, s) {
5491
5499
  }, i.$attrs, { onParticle: s.handleParticle }), null, 16, ["map", "current", "before-layer", "show-particle", "margin-bottom", "toggle-version", "weather-layers", "onParticle"]),
5492
5500
  E(g, R({
5493
5501
  viewport: a.viewport,
5494
- factor: (Le = a.weatherLayers) == null ? void 0 : Le["current-particle"],
5502
+ factor: (_e = a.weatherLayers) == null ? void 0 : _e["current-particle"],
5495
5503
  "before-layer": t.beforeLayer,
5496
5504
  "toggle-version": a.toggleVersion
5497
5505
  }, i.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
@@ -5514,19 +5522,19 @@ function Zs(i, e, t, r, a, s) {
5514
5522
  "before-layer": t.beforeLayer,
5515
5523
  "toggle-version": a.toggleVersion
5516
5524
  }, i.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
5517
- E(b, R({
5525
+ E(v, R({
5518
5526
  viewport: a.viewport,
5519
5527
  factor: (Se = a.weatherLayers) == null ? void 0 : Se.precip3h,
5520
5528
  "before-layer": t.beforeLayer,
5521
5529
  "toggle-version": a.toggleVersion
5522
5530
  }, i.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
5523
- E(v, R({
5531
+ E(b, R({
5524
5532
  viewport: a.viewport,
5525
5533
  factor: (Pe = a.weatherLayers) == null ? void 0 : Pe.visibility,
5526
5534
  "before-layer": t.beforeLayer,
5527
5535
  "toggle-version": a.toggleVersion
5528
5536
  }, i.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
5529
- E(L, R({
5537
+ E(_, R({
5530
5538
  viewport: a.viewport,
5531
5539
  factor: (Te = a.weatherLayers) == null ? void 0 : Te["water-temp"],
5532
5540
  "before-layer": t.beforeLayer,
@@ -5538,7 +5546,7 @@ function Zs(i, e, t, r, a, s) {
5538
5546
  "before-layer": t.beforeLayer,
5539
5547
  "toggle-version": a.toggleVersion
5540
5548
  }, i.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
5541
- E(_, R({
5549
+ E(L, R({
5542
5550
  viewport: a.viewport,
5543
5551
  factor: (ke = a.weatherLayers) == null ? void 0 : ke.arctic,
5544
5552
  "before-layer": t.beforeLayer,
@@ -5559,12 +5567,12 @@ function Zs(i, e, t, r, a, s) {
5559
5567
  zone: (Oe = a.otherLayers) == null ? void 0 : Oe["eca-zones"],
5560
5568
  "before-layer": t.beforeLayer
5561
5569
  }, i.$attrs), null, 16, ["map", "zone", "before-layer"]),
5562
- E(O, R({
5570
+ E(W, R({
5563
5571
  map: t.map,
5564
5572
  zone: (He = a.otherLayers) == null ? void 0 : He["alert-zones"],
5565
5573
  "before-layer": t.beforeLayer
5566
5574
  }, i.$attrs), null, 16, ["map", "zone", "before-layer"]),
5567
- E(W, R({
5575
+ E(N, R({
5568
5576
  map: t.map,
5569
5577
  port: (Xe = a.otherLayers) == null ? void 0 : Xe.ports,
5570
5578
  "before-layer": t.beforeLayer
@@ -5607,16 +5615,16 @@ function Zs(i, e, t, r, a, s) {
5607
5615
  show: a.showPoint,
5608
5616
  meteo: a.meteo
5609
5617
  }, i.$attrs, { onPoint: s.handlePointChange }), null, 16, ["map", "show", "meteo", "onPoint"])
5610
- ])) : j("", !0);
5618
+ ])) : O("", !0);
5611
5619
  }
5612
- const Js = /* @__PURE__ */ k(Hs, [["render", Zs]]), ro = {
5620
+ const Ks = /* @__PURE__ */ k(Js, [["render", qs]]), no = {
5613
5621
  install(i) {
5614
- i.component("MapboxGL", Js), i.component("TropicalGL", tt), i.component("LatLngGL", it);
5622
+ i.component("MapboxGL", Ks), i.component("TropicalGL", tt), i.component("LatLngGL", it);
5615
5623
  }
5616
5624
  };
5617
5625
  export {
5618
5626
  it as LatLngGL,
5619
- Js as MapboxGL,
5620
- ro as MapboxGLPlugin,
5627
+ Ks as MapboxGL,
5628
+ no as MapboxGLPlugin,
5621
5629
  tt as TropicalGL
5622
5630
  };