@idmwx/idmui-gl3 3.5.5 → 3.5.6

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,7 +1,7 @@
1
1
  var rt = Object.defineProperty;
2
2
  var ot = (a, e, t) => e in a ? rt(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
3
  var R = (a, e, t) => (ot(a, typeof e != "symbol" ? e + "" : e, t), t);
4
- import { LayerHelper as Fe, CompanyHelper as Ve, LngLatHelper as K, convertToMonotonicLng2 as st, calculateDistance as Oe, calculateBearing as We, convertToMonotonicLng as pe, interpolateCoordinates as je, convertToStandardLng as Re } from "@idmwx/idmwx-base";
4
+ import { LayerHelper as Fe, CompanyHelper as Ve, LngLatHelper as K, convertToMonotonicLng2 as st, calculateDistance as We, calculateBearing as Oe, convertToMonotonicLng as pe, interpolateCoordinates as je, convertToStandardLng as Re } from "@idmwx/idmwx-base";
5
5
  import { resolveComponent as z, openBlock as L, createElementBlock as x, createElementVNode as l, normalizeStyle as j, normalizeClass as M, Fragment as Ae, renderList as De, toDisplayString as S, createVNode as P, withCtx as nt, createTextVNode as Ke, createCommentVNode as N, pushScopeId as U, popScopeId as G, withDirectives as $e, vShow as Me, createStaticVNode as lt, mergeProps as I } from "vue";
6
6
  import * as C from "@turf/turf";
7
7
  import ct from "@mapbox/sphericalmercator";
@@ -155,7 +155,7 @@ const T = (a, e) => {
155
155
  ], Pt = { class: "weather-layers" }, Tt = {
156
156
  class: "layers-title",
157
157
  style: { display: "flex", "align-items": "center", "justify-content": "space-between" }
158
- }, It = { style: { "font-size": "12px" } }, Et = { class: "layers-body" }, Rt = ["onClick"], At = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1)), Dt = { class: "other-layers" }, $t = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("div", { class: "layers-title" }, "Other Layers", -1)), Mt = { class: "layers-body" }, Bt = ["onClick"], Nt = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1)), Ot = { class: "source-layers" }, Wt = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("span", { class: "layers-title" }, "Forecast Model", -1)), jt = { class: "layers-body model-box" };
158
+ }, It = { style: { "font-size": "12px" } }, Et = { class: "layers-body" }, Rt = ["onClick"], At = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1)), Dt = { class: "other-layers" }, $t = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("div", { class: "layers-title" }, "Other Layers", -1)), Mt = { class: "layers-body" }, Bt = ["onClick"], Nt = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1)), Wt = { class: "source-layers" }, Ot = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("span", { class: "layers-title" }, "Forecast Model", -1)), jt = { class: "layers-body model-box" };
159
159
  function Ft(a, e, t, r, i, o) {
160
160
  const n = z("ElScrollbar");
161
161
  return L(), x("div", dt, [
@@ -255,8 +255,8 @@ function Ft(a, e, t, r, i, o) {
255
255
  ], 10, Bt))), 128))
256
256
  ])
257
257
  ]),
258
- l("div", Ot, [
259
- Wt,
258
+ l("div", Wt, [
259
+ Ot,
260
260
  l("div", jt, [
261
261
  l("span", {
262
262
  class: M(i.source === "GFS" ? "text active" : "text"),
@@ -706,9 +706,9 @@ class le {
706
706
  const p = t.getUniformLocation(r, "u_range_u_v"), v = t.getUniformLocation(r, "u_range_s");
707
707
  t.uniform2f(p, s.uvRange[0], s.uvRange[1]), t.uniform2f(v, s.sRange[0], s.sRange[1]);
708
708
  }
709
- const u = e.getBoundPixel(), b = e.map.getZoom() + 1, f = e.getWorldCopy(u, b);
709
+ const u = e.getBoundPixel(), g = e.map.getZoom() + 1, f = e.getWorldCopy(u, g);
710
710
  for (const p of f) {
711
- const v = (p[0] - u[0]) * e.ratio, g = (p[1] - u[3]) * e.ratio, w = p[2] * e.ratio, [k, _, E, D] = [v, w + v, g, w + g], $ = new Float32Array([k, E, _, E, k, D, k, D, _, E, _, D]);
711
+ const v = (p[0] - u[0]) * e.ratio, b = (p[1] - u[3]) * e.ratio, w = p[2] * e.ratio, [k, _, E, D] = [v, w + v, b, w + b], $ = new Float32Array([k, E, _, E, k, D, k, D, _, E, _, D]);
712
712
  t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, $, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
713
713
  }
714
714
  } catch (y) {
@@ -2681,8 +2681,8 @@ const Kt = {
2681
2681
  if (!this.particleContext) {
2682
2682
  this.particleContext = this.viewport.particleCanvas.getContext("webgl");
2683
2683
  const a = [
2684
- [0, "rgb(205,255,255)"],
2685
- [1, "rgb(235,255,255)"]
2684
+ [0, "rgb(183,224,224)"],
2685
+ [1, "rgb(217,220,220)"]
2686
2686
  ];
2687
2687
  this.wrapper = this.webgl.bindParticle(
2688
2688
  this.particleContext,
@@ -2720,7 +2720,7 @@ const Kt = {
2720
2720
  });
2721
2721
  }
2722
2722
  }
2723
- }, re = (a) => (U("data-v-bc5ff165"), a = a(), G(), a), ea = { key: 0 }, ta = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "kts", -1)), aa = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "0", -1)), ia = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "5", -1)), ra = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "10", -1)), oa = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "20", -1)), sa = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "30", -1)), na = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "40", -1)), la = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "60", -1)), ca = [
2723
+ }, re = (a) => (U("data-v-6e0050df"), a = a(), G(), a), ea = { key: 0 }, ta = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "kts", -1)), aa = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "0", -1)), ia = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "5", -1)), ra = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "10", -1)), oa = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "20", -1)), sa = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "30", -1)), na = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "40", -1)), la = /* @__PURE__ */ re(() => /* @__PURE__ */ l("span", null, "60", -1)), ca = [
2724
2724
  ta,
2725
2725
  aa,
2726
2726
  ia,
@@ -2739,7 +2739,7 @@ function ha(a, e, t, r, i, o) {
2739
2739
  }, ca, 4)
2740
2740
  ])) : N("", !0);
2741
2741
  }
2742
- const da = /* @__PURE__ */ T(Kt, [["render", ha], ["__scopeId", "data-v-bc5ff165"]]);
2742
+ const da = /* @__PURE__ */ T(Kt, [["render", ha], ["__scopeId", "data-v-6e0050df"]]);
2743
2743
  const pa = {
2744
2744
  name: "IdmCurrent",
2745
2745
  props: {
@@ -3067,8 +3067,8 @@ const _a = {
3067
3067
  if (!this.particleContext) {
3068
3068
  this.particleContext = this.viewport.particleCanvas.getContext("webgl");
3069
3069
  const a = [
3070
- [0, "rgb(205,255,255)"],
3071
- [1, "rgb(235,255,255)"]
3070
+ [0, "rgb(183,224,224)"],
3071
+ [1, "rgb(199,202,202)"]
3072
3072
  ];
3073
3073
  this.wrapper = this.webgl.bindParticle(
3074
3074
  this.particleContext,
@@ -3110,7 +3110,7 @@ const _a = {
3110
3110
  });
3111
3111
  }
3112
3112
  }
3113
- }, ce = (a) => (U("data-v-5f45c14c"), a = a(), G(), a), wa = { key: 0 }, La = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "kts", -1)), xa = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "0", -1)), Ca = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "0.4", -1)), Sa = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "0.8", -1)), ka = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "1.6", -1)), za = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "2", -1)), Pa = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "3.2", -1)), Ta = [
3113
+ }, ce = (a) => (U("data-v-3bf73a1b"), a = a(), G(), a), wa = { key: 0 }, La = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "kts", -1)), xa = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "0", -1)), Ca = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "0.4", -1)), Sa = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "0.8", -1)), ka = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "1.6", -1)), za = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "2", -1)), Pa = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "3.2", -1)), Ta = [
3114
3114
  La,
3115
3115
  xa,
3116
3116
  Ca,
@@ -3128,7 +3128,7 @@ function Ia(a, e, t, r, i, o) {
3128
3128
  }, Ta, 4)
3129
3129
  ])) : N("", !0);
3130
3130
  }
3131
- const Ea = /* @__PURE__ */ T(_a, [["render", Ia], ["__scopeId", "data-v-5f45c14c"]]), Ra = {
3131
+ const Ea = /* @__PURE__ */ T(_a, [["render", Ia], ["__scopeId", "data-v-3bf73a1b"]]), Ra = {
3132
3132
  name: "IdmSigWave",
3133
3133
  props: {
3134
3134
  map: {
@@ -3500,10 +3500,10 @@ const Ba = /* @__PURE__ */ T($a, [["render", Ma]]), Na = {
3500
3500
  }
3501
3501
  }
3502
3502
  };
3503
- function Oa(a, e, t, r, i, o) {
3503
+ function Wa(a, e, t, r, i, o) {
3504
3504
  return L(), x("div");
3505
3505
  }
3506
- const Wa = /* @__PURE__ */ T(Na, [["render", Oa]]), ja = {
3506
+ const Oa = /* @__PURE__ */ T(Na, [["render", Wa]]), ja = {
3507
3507
  name: "IdmIceberg",
3508
3508
  props: {
3509
3509
  map: {
@@ -3635,18 +3635,18 @@ const Ua = {
3635
3635
  var d;
3636
3636
  let n = 0, s, c = "", h = "";
3637
3637
  const y = a.filter((m) => {
3638
- var u, b;
3639
- return ((b = (u = m.properties) == null ? void 0 : u.category) == null ? void 0 : b.split("-")[0]) === o;
3638
+ var u, g;
3639
+ return ((g = (u = m.properties) == null ? void 0 : u.category) == null ? void 0 : g.split("-")[0]) === o;
3640
3640
  });
3641
3641
  c = (d = y.filter((m) => {
3642
- var u, b;
3643
- return ((u = m.geometry) == null ? void 0 : u.type) === "LineString" && ((b = m.properties) == null ? void 0 : b.type) === "forecast";
3642
+ var u, g;
3643
+ return ((u = m.geometry) == null ? void 0 : u.type) === "LineString" && ((g = m.properties) == null ? void 0 : g.type) === "forecast";
3644
3644
  })[0]) == null ? void 0 : d.properties.model, y.forEach((m, u) => {
3645
- var b, f, p, v, g, w;
3646
- ((b = m.geometry) == null ? void 0 : b.type) === "Point" && ((f = m.properties) == null ? void 0 : f.type) === "history" && (n = u, s = s === void 0 ? u : s), ((p = m.geometry) == null ? void 0 : p.type) === "Point" && ((v = m.properties) == null ? void 0 : v.type) === "forecast" && s === void 0 && (s = u), ((g = m.geometry) == null ? void 0 : g.type) === "LineString" && ((w = m.properties) == null ? void 0 : w.type) === "forecast" && (h = `${o}-${c}`);
3645
+ var g, f, p, v, b, w;
3646
+ ((g = m.geometry) == null ? void 0 : g.type) === "Point" && ((f = m.properties) == null ? void 0 : f.type) === "history" && (n = u, s = s === void 0 ? u : s), ((p = m.geometry) == null ? void 0 : p.type) === "Point" && ((v = m.properties) == null ? void 0 : v.type) === "forecast" && s === void 0 && (s = u), ((b = m.geometry) == null ? void 0 : b.type) === "LineString" && ((w = m.properties) == null ? void 0 : w.type) === "forecast" && (h = `${o}-${c}`);
3647
3647
  }), y.map((m, u) => {
3648
- var b, f, p, v, g, w, k, _, E, D;
3649
- if (((b = m.geometry) == null ? void 0 : b.type) === "LineString" && ((f = m.properties) == null ? void 0 : f.type) === "forecast" && (m.properties.disabled = ((p = m.properties) == null ? void 0 : p.model) !== c), ((v = m.geometry) == null ? void 0 : v.type) === "Point" && ((g = m.properties) == null ? void 0 : g.type) === "forecast" && (m.properties.disabled = ((w = m.properties) == null ? void 0 : w.category) !== h, m.properties.name = o), ((k = m.geometry) == null ? void 0 : k.type) === "Point" && ((_ = m.properties) == null ? void 0 : _.type) === "history") {
3648
+ var g, f, p, v, b, w, k, _, E, D;
3649
+ if (((g = m.geometry) == null ? void 0 : g.type) === "LineString" && ((f = m.properties) == null ? void 0 : f.type) === "forecast" && (m.properties.disabled = ((p = m.properties) == null ? void 0 : p.model) !== c), ((v = m.geometry) == null ? void 0 : v.type) === "Point" && ((b = m.properties) == null ? void 0 : b.type) === "forecast" && (m.properties.disabled = ((w = m.properties) == null ? void 0 : w.category) !== h, m.properties.name = o), ((k = m.geometry) == null ? void 0 : k.type) === "Point" && ((_ = m.properties) == null ? void 0 : _.type) === "history") {
3650
3650
  const $ = ((D = (E = m.properties) == null ? void 0 : E.format) == null ? void 0 : D.slice(7, 12)) === Q().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm") + "Z";
3651
3651
  m.properties.showHistoryLabel = $ || u === n, m.properties.showNameLabel = u === n, m.properties.name = o;
3652
3652
  }
@@ -3913,18 +3913,18 @@ const Ua = {
3913
3913
  }
3914
3914
  if (!((y = this.tropicals) != null && y.cached)) {
3915
3915
  const d = et.interpolate(this.tropicals, 1), m = JSON.parse(JSON.stringify(d)), u = [];
3916
- m.forEach((b) => {
3916
+ m.forEach((g) => {
3917
3917
  var f, p, v;
3918
- (f = b.properties) != null && f.name && !u.includes((p = b.properties) == null ? void 0 : p.name) && u.push((v = b.properties) == null ? void 0 : v.name);
3919
- }), u.forEach((b) => {
3918
+ (f = g.properties) != null && f.name && !u.includes((p = g.properties) == null ? void 0 : p.name) && u.push((v = g.properties) == null ? void 0 : v.name);
3919
+ }), u.forEach((g) => {
3920
3920
  var v;
3921
- const p = (v = m.filter((g) => {
3921
+ const p = (v = m.filter((b) => {
3922
3922
  var w;
3923
- return ((w = g.properties) == null ? void 0 : w.name) === b;
3923
+ return ((w = b.properties) == null ? void 0 : w.name) === g;
3924
3924
  })[0]) == null ? void 0 : v.properties.model;
3925
- m.map((g, w) => {
3925
+ m.map((b, w) => {
3926
3926
  var k, _;
3927
- return ((k = g.properties) == null ? void 0 : k.name) === b && (g.properties.disabled = ((_ = g.properties) == null ? void 0 : _.model) !== p), g;
3927
+ return ((k = b.properties) == null ? void 0 : k.name) === g && (b.properties.disabled = ((_ = b.properties) == null ? void 0 : _.model) !== p), b;
3928
3928
  });
3929
3929
  }), this.interpolateData = JSON.parse(JSON.stringify(m));
3930
3930
  }
@@ -3936,7 +3936,7 @@ const Ua = {
3936
3936
  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), (a = this.interpolateMarkers) == null || a.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));
3937
3937
  },
3938
3938
  handleDateChange() {
3939
- var a, e, t, r, i, o, n, s, c, h, y, d, m, u, b, f, p, v, g, w, k, _, E, D, $, O, W, H;
3939
+ var a, e, t, r, i, o, n, s, c, h, y, d, m, u, g, f, p, v, b, w, k, _, E, D, $, W, O, H;
3940
3940
  if ((a = this.interpolateMarkers) == null || a.forEach((X) => X == null ? void 0 : X.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
3941
3941
  const X = Q(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), ee = this.interpolateData.filter((A) => A.properties.date === X.format() && !A.properties.disabled), he = this.handleComputePolygons(ee), te = C.featureCollection([...ee]);
3942
3942
  he.forEach((A) => {
@@ -3958,7 +3958,7 @@ const Ua = {
3958
3958
  for (const A of ee)
3959
3959
  if (!A.properties.disabled) {
3960
3960
  let V = "#f44336";
3961
- ((s = (n = A.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 ? V = "#03f869" : ((h = (c = A.properties) == null ? void 0 : c.wind) == null ? void 0 : h.spd) >= 17.2 && ((d = (y = A.properties) == null ? void 0 : y.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 && ((f = (b = A.properties) == null ? void 0 : b.wind) == null ? void 0 : f.spd) < 32.7 ? V = "#ff9100" : ((v = (p = A.properties) == null ? void 0 : p.wind) == null ? void 0 : v.spd) >= 32.7 && ((w = (g = A.properties) == null ? void 0 : g.wind) == null ? void 0 : w.spd) < 41.5 ? V = "#f44336" : ((_ = (k = A.properties) == null ? void 0 : k.wind) == null ? void 0 : _.spd) >= 41.5 && ((D = (E = A.properties) == null ? void 0 : E.wind) == null ? void 0 : D.spd) < 51 ? V = "#c604a4" : ((O = ($ = A.properties) == null ? void 0 : $.wind) == null ? void 0 : O.spd) >= 51 ? V = "#6b05bb" : V = "#f44336";
3961
+ ((s = (n = A.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 ? V = "#03f869" : ((h = (c = A.properties) == null ? void 0 : c.wind) == null ? void 0 : h.spd) >= 17.2 && ((d = (y = A.properties) == null ? void 0 : y.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 && ((f = (g = A.properties) == null ? void 0 : g.wind) == null ? void 0 : f.spd) < 32.7 ? V = "#ff9100" : ((v = (p = A.properties) == null ? void 0 : p.wind) == null ? void 0 : v.spd) >= 32.7 && ((w = (b = A.properties) == null ? void 0 : b.wind) == null ? void 0 : w.spd) < 41.5 ? V = "#f44336" : ((_ = (k = A.properties) == null ? void 0 : k.wind) == null ? void 0 : _.spd) >= 41.5 && ((D = (E = A.properties) == null ? void 0 : E.wind) == null ? void 0 : D.spd) < 51 ? V = "#c604a4" : ((W = ($ = A.properties) == null ? void 0 : $.wind) == null ? void 0 : W.spd) >= 51 ? V = "#6b05bb" : V = "#f44336";
3962
3962
  const de = `<svg t="1719918955501"
3963
3963
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
3964
3964
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -3979,7 +3979,7 @@ const Ua = {
3979
3979
  this.interpolateMarkers.push(ne);
3980
3980
  }
3981
3981
  } else
3982
- (W = this.map) != null && W.getSource(this.interpolateSource) && ((H = this.map) == null || H.getSource(this.interpolateSource).setData(this.empty));
3982
+ (O = this.map) != null && O.getSource(this.interpolateSource) && ((H = this.map) == null || H.getSource(this.interpolateSource).setData(this.empty));
3983
3983
  },
3984
3984
  handleClick(a) {
3985
3985
  var o, n, s, c, h, y;
@@ -3990,8 +3990,8 @@ const Ua = {
3990
3990
  }
3991
3991
  );
3992
3992
  t.sort((d, m) => {
3993
- var u, b, f, p;
3994
- return ((u = d.properties) == null ? void 0 : u.model) === "cma" ? -1 : ((b = d.properties) == null ? void 0 : b.model) === "jma" ? ((f = m.properties) == null ? void 0 : f.model) === "cma" ? 1 : -1 : d.properties.model === "ecmwf" ? ["jma", "cma"].includes((p = m.properties) == null ? void 0 : p.model) ? 1 : -1 : 0;
3993
+ var u, g, f, p;
3994
+ return ((u = d.properties) == null ? void 0 : u.model) === "cma" ? -1 : ((g = d.properties) == null ? void 0 : g.model) === "jma" ? ((f = m.properties) == null ? void 0 : f.model) === "cma" ? 1 : -1 : d.properties.model === "ecmwf" ? ["jma", "cma"].includes((p = m.properties) == null ? void 0 : p.model) ? 1 : -1 : 0;
3995
3995
  });
3996
3996
  const r = (c = (s = this.tropicals) == null ? void 0 : s.data) == null ? void 0 : c.features.filter(
3997
3997
  (d) => {
@@ -4083,7 +4083,7 @@ const Ua = {
4083
4083
  style: { "justify-content": "flex-start" }
4084
4084
  }, oi = /* @__PURE__ */ Ge(() => /* @__PURE__ */ l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)), si = { class: "forecast-models" }, ni = ["onClick"], li = /* @__PURE__ */ lt('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-cc6ebaba></div><div class="row" style="padding:2px 10px;" data-v-cc6ebaba><div class="legend" data-v-cc6ebaba><div class="icon td" data-v-cc6ebaba></div><div class="label" data-v-cc6ebaba>TD</div></div><div class="legend" data-v-cc6ebaba><div class="icon ts" data-v-cc6ebaba></div><div class="label" data-v-cc6ebaba>TS</div></div><div class="legend" data-v-cc6ebaba><div class="icon sts" data-v-cc6ebaba></div><div class="label" data-v-cc6ebaba>STS</div></div><div class="legend" data-v-cc6ebaba><div class="icon ty" data-v-cc6ebaba></div><div class="label" data-v-cc6ebaba>TY</div></div><div class="legend" data-v-cc6ebaba><div class="icon sty" data-v-cc6ebaba></div><div class="label" data-v-cc6ebaba>STY</div></div><div class="legend" data-v-cc6ebaba><div class="icon supper-ty" data-v-cc6ebaba></div><div class="label" data-v-cc6ebaba>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-cc6ebaba><div class="legend" data-v-cc6ebaba><div class="icon history" data-v-cc6ebaba></div><div class="label" data-v-cc6ebaba>History</div></div><div class="legend" data-v-cc6ebaba><div class="icon r7" data-v-cc6ebaba></div><div class="label" data-v-cc6ebaba>35kts Radii</div></div><div class="legend" data-v-cc6ebaba><div class="icon r10" data-v-cc6ebaba></div><div class="label" data-v-cc6ebaba>50kts Radii</div></div></div>', 3), ci = { class: "more" };
4085
4085
  function hi(a, e, t, r, i, o) {
4086
- var n, s, c, h, y, d, m, u, b, f, p, v, g, w, k;
4086
+ var n, s, c, h, y, d, m, u, g, f, p, v, b, w, k;
4087
4087
  return $e((L(), x("div", Ga, [
4088
4088
  l("div", Ha, [
4089
4089
  l("div", {
@@ -4094,7 +4094,7 @@ function hi(a, e, t, r, i, o) {
4094
4094
  (s = (n = i.activeTropicals) == null ? void 0 : n.history) != null && s.level ? (L(), x("span", Xa, S((h = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : h.level) + " , ", 1)) : N("", !0),
4095
4095
  Ke(S((y = i.activeTropicals) == null ? void 0 : y.name), 1)
4096
4096
  ]),
4097
- l("div", Ja, " Last update: " + S(o.computeTime(((m = (d = i.activeTropicals) == null ? void 0 : d.history) == null ? void 0 : m.updated) || ((f = (b = (u = i.activeTropicals) == null ? void 0 : u.forecasts) == null ? void 0 : b.filter((_) => !_.disabled)[0]) == null ? void 0 : f.date))), 1)
4097
+ l("div", Ja, " Last update: " + S(o.computeTime(((m = (d = i.activeTropicals) == null ? void 0 : d.history) == null ? void 0 : m.updated) || ((f = (g = (u = i.activeTropicals) == null ? void 0 : u.forecasts) == null ? void 0 : g.filter((_) => !_.disabled)[0]) == null ? void 0 : f.date))), 1)
4098
4098
  ]),
4099
4099
  l("div", qa, [
4100
4100
  l("div", Ya, [
@@ -4105,7 +4105,7 @@ function hi(a, e, t, r, i, o) {
4105
4105
  ]),
4106
4106
  l("div", ti, [
4107
4107
  ai,
4108
- l("span", null, S(((w = (g = i.activeTropicals) == null ? void 0 : g.history) == null ? void 0 : w.pressure) || "-") + "[hPa]", 1)
4108
+ l("span", null, S(((w = (b = i.activeTropicals) == null ? void 0 : b.history) == null ? void 0 : w.pressure) || "-") + "[hPa]", 1)
4109
4109
  ])
4110
4110
  ]),
4111
4111
  l("div", ii, [
@@ -4113,13 +4113,13 @@ function hi(a, e, t, r, i, o) {
4113
4113
  oi,
4114
4114
  l("div", si, [
4115
4115
  (L(!0), x(Ae, null, De((k = i.activeTropicals) == null ? void 0 : k.forecasts, (_, E) => {
4116
- var D, $, O, W;
4116
+ var D, $, W, O;
4117
4117
  return L(), x("div", {
4118
4118
  key: E,
4119
4119
  class: M([
4120
4120
  "model",
4121
4121
  _.disabled ? "" : "active",
4122
- E > 0 && E < (($ = (D = i.activeTropicals) == null ? void 0 : D.forecasts) == null ? void 0 : $.length) - 1 && ((W = (O = i.activeTropicals) == null ? void 0 : O.forecasts) == null ? void 0 : W.length) > 2 ? "center-child" : ""
4122
+ E > 0 && E < (($ = (D = i.activeTropicals) == null ? void 0 : D.forecasts) == null ? void 0 : $.length) - 1 && ((O = (W = i.activeTropicals) == null ? void 0 : W.forecasts) == null ? void 0 : O.length) > 2 ? "center-child" : ""
4123
4123
  ]),
4124
4124
  onClick: (H) => o.handleForecastToggle(_)
4125
4125
  }, [
@@ -4480,11 +4480,11 @@ const $i = {
4480
4480
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4481
4481
  }
4482
4482
  }
4483
- }, ue = (a) => (U("data-v-67e5094b"), a = a(), G(), a), Mi = { key: 0 }, Bi = /* @__PURE__ */ ue(() => /* @__PURE__ */ l("span", null, "°C", -1)), Ni = /* @__PURE__ */ ue(() => /* @__PURE__ */ l("span", null, "0", -1)), Oi = /* @__PURE__ */ ue(() => /* @__PURE__ */ l("span", null, "10", -1)), Wi = /* @__PURE__ */ ue(() => /* @__PURE__ */ l("span", null, "20", -1)), ji = /* @__PURE__ */ ue(() => /* @__PURE__ */ l("span", null, "30", -1)), Fi = /* @__PURE__ */ ue(() => /* @__PURE__ */ l("span", null, "40", -1)), Vi = [
4483
+ }, ue = (a) => (U("data-v-67e5094b"), a = a(), G(), a), Mi = { key: 0 }, Bi = /* @__PURE__ */ ue(() => /* @__PURE__ */ l("span", null, "°C", -1)), Ni = /* @__PURE__ */ ue(() => /* @__PURE__ */ l("span", null, "0", -1)), Wi = /* @__PURE__ */ ue(() => /* @__PURE__ */ l("span", null, "10", -1)), Oi = /* @__PURE__ */ ue(() => /* @__PURE__ */ l("span", null, "20", -1)), ji = /* @__PURE__ */ ue(() => /* @__PURE__ */ l("span", null, "30", -1)), Fi = /* @__PURE__ */ ue(() => /* @__PURE__ */ l("span", null, "40", -1)), Vi = [
4484
4484
  Bi,
4485
4485
  Ni,
4486
- Oi,
4487
4486
  Wi,
4487
+ Oi,
4488
4488
  ji,
4489
4489
  Fi
4490
4490
  ];
@@ -4819,7 +4819,7 @@ const fr = {
4819
4819
  }, J = (a) => (U("data-v-fb5b12d6"), a = a(), G(), a), gr = {
4820
4820
  id: "point-meteo",
4821
4821
  class: "point-meteo"
4822
- }, br = { class: "meteo-box" }, vr = { class: "header-box" }, _r = { class: "main" }, wr = { class: "sub" }, Lr = { class: "main-box" }, xr = { class: "flex-space" }, Cr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Wind", -1)), Sr = { class: "flex-space" }, kr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Wind.Wave", -1)), zr = { class: "flex-space" }, Pr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Swell", -1)), Tr = { class: "flex-space" }, Ir = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Sig.Wave", -1)), Er = { class: "flex-space" }, Rr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Current", -1)), Ar = { class: "flex-space" }, Dr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Precip", -1)), $r = { class: "flex-space" }, Mr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Visibility", -1)), Br = { class: "flex-space" }, Nr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Temp", -1)), Or = { class: "flex-space" }, Wr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Water Temp", -1)), jr = {
4822
+ }, br = { class: "meteo-box" }, vr = { class: "header-box" }, _r = { class: "main" }, wr = { class: "sub" }, Lr = { class: "main-box" }, xr = { class: "flex-space" }, Cr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Wind", -1)), Sr = { class: "flex-space" }, kr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Wind.Wave", -1)), zr = { class: "flex-space" }, Pr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Swell", -1)), Tr = { class: "flex-space" }, Ir = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Sig.Wave", -1)), Er = { class: "flex-space" }, Rr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Current", -1)), Ar = { class: "flex-space" }, Dr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Precip", -1)), $r = { class: "flex-space" }, Mr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Visibility", -1)), Br = { class: "flex-space" }, Nr = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Temp", -1)), Wr = { class: "flex-space" }, Or = /* @__PURE__ */ J(() => /* @__PURE__ */ l("label", null, "Water Temp", -1)), jr = {
4823
4823
  key: 0,
4824
4824
  class: "flex-space",
4825
4825
  style: { "justify-content": "flex-end" }
@@ -4827,7 +4827,7 @@ const fr = {
4827
4827
  Fr
4828
4828
  ];
4829
4829
  function Ur(a, e, t, r, i, o) {
4830
- var n, s, c, h, y, d, m, u, b, f, p, v, g, w, k, _, E, D, $, O, W, H, X, ee, he, te, A, V, de, q, ne, fe, ge, be, ve, _e, we, Le, xe, Ce, Se, ke, ze, Pe, Te, Ie, Ee;
4830
+ var n, s, c, h, y, d, m, u, g, f, p, v, b, w, k, _, E, D, $, W, O, H, X, ee, he, te, A, V, de, q, ne, fe, ge, be, ve, _e, we, Le, xe, Ce, Se, ke, ze, Pe, Te, Ie, Ee;
4831
4831
  return $e((L(), x("div", gr, [
4832
4832
  l("div", br, [
4833
4833
  l("div", vr, [
@@ -4841,15 +4841,15 @@ function Ur(a, e, t, r, i, o) {
4841
4841
  l("div", Lr, [
4842
4842
  l("div", xr, [
4843
4843
  Cr,
4844
- l("span", null, S(((y = (h = t.meteo) == null ? void 0 : h.wind) == null ? void 0 : y.direction) || "-") + "/" + S(o.roundPrecision((m = (d = t.meteo) == null ? void 0 : d.wind) == null ? void 0 : m.kts, 1)) + "[kts]/" + S((b = (u = t.meteo) == null ? void 0 : u.wind) == null ? void 0 : b.scale) + "[BF]/" + S(o.roundPrecision((p = (f = t.meteo) == null ? void 0 : f.gusts) == null ? void 0 : p.kts, 1)) + "[kts]", 1)
4844
+ l("span", null, S(((y = (h = t.meteo) == null ? void 0 : h.wind) == null ? void 0 : y.direction) || "-") + "/" + S(o.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(o.roundPrecision((p = (f = t.meteo) == null ? void 0 : f.gusts) == null ? void 0 : p.kts, 1)) + "[kts]", 1)
4845
4845
  ]),
4846
4846
  l("div", Sr, [
4847
4847
  kr,
4848
- l("span", null, S(((w = (g = (v = t.meteo) == null ? void 0 : v.wave) == null ? void 0 : g.wd) == null ? void 0 : w.direction) || "-") + "/" + S(o.roundPrecision((E = (_ = (k = t.meteo) == null ? void 0 : k.wave) == null ? void 0 : _.wd) == null ? void 0 : E.height, 1)) + "[m]/" + S(o.roundPrecision((O = ($ = (D = t.meteo) == null ? void 0 : D.wave) == null ? void 0 : $.wd) == null ? void 0 : O.period, 1)) + "[s]", 1)
4848
+ l("span", null, S(((w = (b = (v = t.meteo) == null ? void 0 : v.wave) == null ? void 0 : b.wd) == null ? void 0 : w.direction) || "-") + "/" + S(o.roundPrecision((E = (_ = (k = t.meteo) == null ? void 0 : k.wave) == null ? void 0 : _.wd) == null ? void 0 : E.height, 1)) + "[m]/" + S(o.roundPrecision((W = ($ = (D = t.meteo) == null ? void 0 : D.wave) == null ? void 0 : $.wd) == null ? void 0 : W.period, 1)) + "[s]", 1)
4849
4849
  ]),
4850
4850
  l("div", zr, [
4851
4851
  Pr,
4852
- l("span", null, S(((X = (H = (W = t.meteo) == null ? void 0 : W.wave) == null ? void 0 : H.swell) == null ? void 0 : X.direction) || "-") + "/" + S(o.roundPrecision((te = (he = (ee = t.meteo) == null ? void 0 : ee.wave) == null ? void 0 : he.swell) == null ? void 0 : te.height, 1)) + "[m]/" + S(o.roundPrecision((de = (V = (A = t.meteo) == null ? void 0 : A.wave) == null ? void 0 : V.swell) == null ? void 0 : de.period, 1)) + "[s]", 1)
4852
+ l("span", null, S(((X = (H = (O = t.meteo) == null ? void 0 : O.wave) == null ? void 0 : H.swell) == null ? void 0 : X.direction) || "-") + "/" + S(o.roundPrecision((te = (he = (ee = t.meteo) == null ? void 0 : ee.wave) == null ? void 0 : he.swell) == null ? void 0 : te.height, 1)) + "[m]/" + S(o.roundPrecision((de = (V = (A = t.meteo) == null ? void 0 : A.wave) == null ? void 0 : V.swell) == null ? void 0 : de.period, 1)) + "[s]", 1)
4853
4853
  ]),
4854
4854
  l("div", Tr, [
4855
4855
  Ir,
@@ -4871,8 +4871,8 @@ function Ur(a, e, t, r, i, o) {
4871
4871
  Nr,
4872
4872
  l("span", null, S(o.roundPrecision((Ie = t.meteo) == null ? void 0 : Ie.temp, 0)) + "[°C]", 1)
4873
4873
  ]),
4874
- l("div", Or, [
4875
- Wr,
4874
+ l("div", Wr, [
4875
+ Or,
4876
4876
  l("span", null, S(o.roundPrecision((Ee = t.meteo) == null ? void 0 : Ee.waterTemp, 2)) + "[°C]", 1)
4877
4877
  ])
4878
4878
  ]),
@@ -6104,7 +6104,7 @@ function No(a, e, t, r, i, o) {
6104
6104
  l("span", null, S(i.lngLat.lng.pretty), 1)
6105
6105
  ], 4)) : N("", !0);
6106
6106
  }
6107
- const at = /* @__PURE__ */ T($o, [["render", No], ["__scopeId", "data-v-51cc4052"]]), Oo = {
6107
+ const at = /* @__PURE__ */ T($o, [["render", No], ["__scopeId", "data-v-51cc4052"]]), Wo = {
6108
6108
  name: "IdmMeasure",
6109
6109
  props: {
6110
6110
  map: {
@@ -6171,19 +6171,19 @@ const at = /* @__PURE__ */ T($o, [["render", No], ["__scopeId", "data-v-51cc4052
6171
6171
  var v;
6172
6172
  return ((v = p._element) == null ? void 0 : v.id) === e;
6173
6173
  })[0].setLngLat([(o = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (s = (n = a.target) == null ? void 0 : n._lngLat) == null ? void 0 : s.lat]);
6174
- let b;
6174
+ let g;
6175
6175
  m.features.forEach((p, v) => {
6176
6176
  if (p.geometry.type === "Point" && p.properties.id == e.split("-")[1]) {
6177
- b = v;
6177
+ g = v;
6178
6178
  return;
6179
6179
  }
6180
6180
  });
6181
6181
  const f = m.features.filter((p) => p.geometry.type === "Point");
6182
6182
  this.handleTmpPointUpdate(
6183
6183
  m,
6184
- f[b - 1],
6185
- { lng: (h = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, lat: (d = (y = a.target) == null ? void 0 : y._lngLat) == null ? void 0 : d.lat, properties: f[b].properties },
6186
- b === f.length - 1 ? void 0 : f[b + 1]
6184
+ f[g - 1],
6185
+ { lng: (h = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, lat: (d = (y = a.target) == null ? void 0 : y._lngLat) == null ? void 0 : d.lat, properties: f[g].properties },
6186
+ g === f.length - 1 ? void 0 : f[g + 1]
6187
6187
  );
6188
6188
  }
6189
6189
  },
@@ -6196,8 +6196,8 @@ const at = /* @__PURE__ */ T($o, [["render", No], ["__scopeId", "data-v-51cc4052
6196
6196
  var p;
6197
6197
  return ((p = f._element) == null ? void 0 : p.id) === e;
6198
6198
  })[0].setLngLat([(o = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : o.lng, (s = (n = a.target) == null ? void 0 : n._lngLat) == null ? void 0 : s.lat]);
6199
- const b = m.features.filter((f) => f.geometry.type === "Point" && f.properties.id == e.split("-")[1])[0];
6200
- b.geometry.coordinates = [(h = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, (d = (y = a.target) == null ? void 0 : y._lngLat) == null ? void 0 : d.lat], m.features = m.features.filter((f) => f.geometry.type === "Point"), this.handlePointUpdate(m);
6199
+ const g = m.features.filter((f) => f.geometry.type === "Point" && f.properties.id == e.split("-")[1])[0];
6200
+ g.geometry.coordinates = [(h = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, (d = (y = a.target) == null ? void 0 : y._lngLat) == null ? void 0 : d.lat], m.features = m.features.filter((f) => f.geometry.type === "Point"), this.handlePointUpdate(m);
6201
6201
  }
6202
6202
  },
6203
6203
  handleContextmenu(a) {
@@ -6244,11 +6244,11 @@ const at = /* @__PURE__ */ T($o, [["render", No], ["__scopeId", "data-v-51cc4052
6244
6244
  let t = 0;
6245
6245
  const r = [];
6246
6246
  for (let i = 1; i < e.length; i++) {
6247
- const o = e[i - 1], n = e[i], s = o.properties, c = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, h = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, y = Oe(c, h, s.mode === "RL", 2), d = We(c, h, s.mode === "RL", 2);
6247
+ const o = e[i - 1], n = e[i], s = o.properties, c = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, h = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, y = We(c, h, s.mode === "RL", 2), d = Oe(c, h, s.mode === "RL", 2);
6248
6248
  t = K.roundPrecision(t + y, 2);
6249
6249
  let m;
6250
6250
  s.mode === "RL" ? m = pe([c, h]) : m = pe(je(c, h, 200));
6251
- const u = C.lineString(m.map((b) => [b.lng, b.lat]));
6251
+ const u = C.lineString(m.map((g) => [g.lng, g.lat]));
6252
6252
  u.properties.dist = y, u.properties.bearing = d, u.properties.total = t, r.push(u);
6253
6253
  }
6254
6254
  e.push(...r), a.total = t;
@@ -6260,7 +6260,7 @@ const at = /* @__PURE__ */ T($o, [["render", No], ["__scopeId", "data-v-51cc4052
6260
6260
  let o, n;
6261
6261
  if (e) {
6262
6262
  const c = e.properties, h = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, y = { lng: t.lng, lat: t.lat };
6263
- o = Oe(h, y, c.mode === "RL", 2), n = We(h, y, c.mode === "RL", 2);
6263
+ o = We(h, y, c.mode === "RL", 2), n = Oe(h, y, c.mode === "RL", 2);
6264
6264
  let d;
6265
6265
  c.mode === "RL" ? d = pe([h, y]) : d = pe(je(h, y, 200));
6266
6266
  const m = C.lineString(d.map((u) => [u.lng, u.lat]));
@@ -6268,7 +6268,7 @@ const at = /* @__PURE__ */ T($o, [["render", No], ["__scopeId", "data-v-51cc4052
6268
6268
  }
6269
6269
  if (r) {
6270
6270
  const c = t.properties, h = t, y = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
6271
- o = Oe(h, y, c.mode === "RL", 2), n = We(h, y, c.mode === "RL", 2);
6271
+ o = We(h, y, c.mode === "RL", 2), n = Oe(h, y, c.mode === "RL", 2);
6272
6272
  let d;
6273
6273
  c.mode === "RL" ? d = pe([h, y]) : d = pe(je(h, y, 200));
6274
6274
  const m = C.lineString(d.map((u) => [u.lng, u.lat]));
@@ -6386,16 +6386,16 @@ const at = /* @__PURE__ */ T($o, [["render", No], ["__scopeId", "data-v-51cc4052
6386
6386
  handleClear(a, e = !0) {
6387
6387
  var o, n, s, c, h, y, d, m, u;
6388
6388
  const t = `${a.id}-${this.source}`, r = `${a.id}-${this.layer}`, i = `${a.id}-${this.labelLayer}`;
6389
- (o = this.map) != null && o.getLayer(r) && this.map.removeLayer(r), (n = this.map) != null && n.getLayer(i) && this.map.removeLayer(i), (s = this.map) != null && s.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (c = this.map) != null && c.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (h = this.closeMarkers[a.id]) == null || h.remove(), this.closeMarkers[a.id] = void 0, (y = this.pointMarkers[a.id]) == null || y.forEach((b) => {
6390
- b == null || b.remove();
6389
+ (o = this.map) != null && o.getLayer(r) && this.map.removeLayer(r), (n = this.map) != null && n.getLayer(i) && this.map.removeLayer(i), (s = this.map) != null && s.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (c = this.map) != null && c.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (h = this.closeMarkers[a.id]) == null || h.remove(), this.closeMarkers[a.id] = void 0, (y = this.pointMarkers[a.id]) == null || y.forEach((g) => {
6390
+ g == null || g.remove();
6391
6391
  }), this.pointMarkers[a.id] = [], (d = this.tipMarker) == null || d.remove(), this.tipMarker = void 0, e && ((m = this.map) != null && m.getSource(t)) && this.map.removeSource(t), e && ((u = this.map) != null && u.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
6392
6392
  }
6393
6393
  }
6394
6394
  };
6395
- function Wo(a, e, t, r, i, o) {
6395
+ function Oo(a, e, t, r, i, o) {
6396
6396
  return L(), x("div");
6397
6397
  }
6398
- const jo = /* @__PURE__ */ T(Oo, [["render", Wo]]);
6398
+ const jo = /* @__PURE__ */ T(Wo, [["render", Oo]]);
6399
6399
  const Fo = {
6400
6400
  name: "IdmENC",
6401
6401
  props: {
@@ -6483,7 +6483,7 @@ const Yo = {
6483
6483
  IdmCurrentParticle: Ea,
6484
6484
  IdmSigWave: Da,
6485
6485
  IdmSwell: Ba,
6486
- IdmPrmsl: Wa,
6486
+ IdmPrmsl: Oa,
6487
6487
  // IdmIceEdge,
6488
6488
  IdmIceberg: Va,
6489
6489
  IdmTropicals: tt,
@@ -6545,6 +6545,7 @@ const Yo = {
6545
6545
  showCurrentParticle: !1,
6546
6546
  toggleVersion: 0,
6547
6547
  enc: "",
6548
+ // enc: 'i4',
6548
6549
  defaultMeteoToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg",
6549
6550
  helper: new Qt()
6550
6551
  };
@@ -6560,31 +6561,35 @@ const Yo = {
6560
6561
  },
6561
6562
  map: {
6562
6563
  handler() {
6563
- 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());
6564
+ var a, e, t, r, i, o, n, s, c, h, y, d, m, u, g, f, p, v;
6565
+ 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(), this.activeWeatherLayers.some((b) => ["wind", "current"].includes(b.key)) && ((a = this.particleFactor) != null && a.particle) || this.activeWeatherLayers.some((b) => ["temp", "water-temp"].includes(b.key)) ? ((t = (e = this.map) == null ? void 0 : e.getLayer("i4")) == null || t.setLayoutProperty("visibility", "none"), (i = (r = this.map) == null ? void 0 : r.getLayer("hi")) == null || i.setLayoutProperty("visibility", "none"), (n = (o = this.map) == null ? void 0 : o.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || n.setLayoutProperty("visibility", "visible"), (s = this.map) != null && s.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id) && ((h = this.map) == null || h.moveLayer((c = this.viewport) == null ? void 0 : c.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (d = this.map) != null && d.getLayer((y = this.viewport) == null ? void 0 : y.particleLayer) && ((u = this.map) == null || u.moveLayer((m = this.viewport) == null ? void 0 : m.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : ((f = (g = this.map) == null ? void 0 : g.getLayer(this.enc)) == null || f.setLayoutProperty("visibility", "visible"), (v = (p = this.map) == null ? void 0 : p.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || v.setLayoutProperty("visibility", "none")));
6564
6566
  },
6565
6567
  immediate: !0
6566
6568
  },
6567
6569
  enc: {
6568
6570
  handler(a, e) {
6571
+ var t, r, i, o, n, s, c, h;
6572
+ a ? ((r = (t = this.map) == null ? void 0 : t.getLayer(a)) == null || r.setLayoutProperty("visibility", "visible"), (o = (i = this.map) == null ? void 0 : i.getLayer(e)) == null || o.setLayoutProperty("visibility", "none")) : ((s = (n = this.map) == null ? void 0 : n.getLayer("i4")) == null || s.setLayoutProperty("visibility", "none"), (h = (c = this.map) == null ? void 0 : c.getLayer("hi")) == null || h.setLayoutProperty("visibility", "none"));
6569
6573
  }
6570
6574
  },
6571
6575
  activeWeatherLayers: {
6572
6576
  handler() {
6573
- var a, e, t, r, i, o, n, s, c, h, y, d, m, u, b, f, p, v;
6577
+ var a, e, t, r, i, o, n, s, c, h, y, d, m, u, g, f;
6574
6578
  if (!this.map)
6575
6579
  return !1;
6576
- this.activeWeatherLayers.some((g) => ["wind", "current"].includes(g.key)) && ((a = this.particleFactor) != null && a.particle) || this.activeWeatherLayers.some((g) => ["temp", "water-temp"].includes(g.key)) ? (console.log(3333), (t = (e = this.map) == null ? void 0 : e.getLayer("i4")) == null || t.setLayoutProperty("visibility", "none"), (i = (r = this.map) == null ? void 0 : r.getLayer("hi")) == null || i.setLayoutProperty("visibility", "none"), (n = (o = this.map) == null ? void 0 : o.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || n.setLayoutProperty("visibility", "visible"), (s = this.map) != null && s.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id) && ((h = this.map) == null || h.moveLayer((c = this.viewport) == null ? void 0 : c.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (d = this.map) != null && d.getLayer((y = this.viewport) == null ? void 0 : y.particleLayer) && ((u = this.map) == null || u.moveLayer((m = this.viewport) == null ? void 0 : m.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : (console.log(44444), (f = (b = this.map) == null ? void 0 : b.getLayer(this.enc)) == null || f.setLayoutProperty("visibility", "visible"), (v = (p = this.map) == null ? void 0 : p.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || v.setLayoutProperty("visibility", "none"));
6580
+ this.activeWeatherLayers.some((p) => ["wind", "current"].includes(p.key)) && ((a = this.particleFactor) != null && a.particle) || this.activeWeatherLayers.some((p) => ["temp", "water-temp"].includes(p.key)) ? ((t = (e = this.map) == null ? void 0 : e.getLayer(this.enc)) == null || t.setLayoutProperty("visibility", "none"), (i = (r = this.map) == null ? void 0 : r.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || i.setLayoutProperty("visibility", "visible"), (o = this.map) != null && o.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id) && ((s = this.map) == null || s.moveLayer((n = this.viewport) == null ? void 0 : n.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (h = this.map) != null && h.getLayer((c = this.viewport) == null ? void 0 : c.particleLayer) && ((d = this.map) == null || d.moveLayer((y = this.viewport) == null ? void 0 : y.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : ((u = (m = this.map) == null ? void 0 : m.getLayer(this.enc)) == null || u.setLayoutProperty("visibility", "visible"), (f = (g = this.map) == null ? void 0 : g.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || f.setLayoutProperty("visibility", "none"));
6577
6581
  },
6578
6582
  immediate: !0
6579
6583
  },
6580
6584
  "particleFactor.particle": {
6581
6585
  handler() {
6586
+ var a, e, t, r, i;
6587
+ this.activeWeatherLayers.some((o) => ["wind", "current"].includes(o.key)) && !((a = this.particleFactor) != null && a.particle) && !this.activeWeatherLayers.some((o) => ["temp", "water-temp"].includes(o.key)) && ((t = this.map) == null || t.moveLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer, null), (i = (r = this.map) == null ? void 0 : r.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || i.setLayoutProperty("visibility", "none"));
6582
6588
  }
6583
6589
  }
6584
6590
  /** for offline map**/
6585
6591
  // activeWeatherLayers: {
6586
6592
  // handler() {
6587
- //
6588
6593
  // if (!this.map) {
6589
6594
  // return false
6590
6595
  // }
@@ -6592,19 +6597,18 @@ const Yo = {
6592
6597
  // (this.activeWeatherLayers.some((item) => ['wind', 'current'].includes(item.key)) && this.particleFactor?.particle) ||
6593
6598
  // this.activeWeatherLayers.some((item) => ['temp', 'water-temp'].includes(item.key))
6594
6599
  // ) {
6595
- // this.map?.setLayoutProperty(this.helper.windy.grayland.layer.id, 'visibility', 'visible')
6596
- // this.map?.setLayoutProperty(this.helper.windy.darkmap.layer.id, 'visibility', 'visible')
6597
- // this.map?.setLayoutProperty(this.helper.countryBoundary.layer.id, 'visibility', 'visible')
6598
- // this.map?.setLayoutProperty(this.helper.i4.layer.id, 'visibility', 'none')
6599
- // this.map?.setLayoutProperty(this.helper.hi.layer.id, 'visibility', 'none')
6600
+ // this.map?.getLayer(this.helper.windy.grayland.layer.id)?.setLayoutProperty('visibility', 'visible')
6601
+ // this.map?.getLayer(this.helper.windy.darkmap.layer.id)?.setLayoutProperty('visibility', 'visible')
6602
+ // this.map?.setLayoutProperty(this.helper.mapboxCustomer.layers.countryLabel.id, 'visibility', 'visible')
6603
+ // this.map?.getLayer(this.enc)?.setLayoutProperty('visibility', 'none')
6600
6604
  // this.map?.getLayer(this.helper.windy.grayland.layer.id) && this.map?.moveLayer(this.viewport?.rampColorLayer, this.helper.windy.grayland.layer.id)
6601
6605
  // this.map?.getLayer(this.helper.windy.grayland.layer.id) && this.map?.moveLayer(this.viewport?.particleLayer, this.helper.windy.grayland.layer.id)
6602
6606
  // } else {
6603
6607
  // this.map?.moveLayer(this.viewport?.rampColorLayer, null)
6604
- // this.map?.setLayoutProperty(this.helper.i4.layer.id, 'visibility', 'visible')
6605
- // this.map?.setLayoutProperty(this.helper.countryBoundary.layer.id, 'visibility', 'none')
6606
- // this.map?.setLayoutProperty(this.helper.windy.grayland.layer.id, 'visibility', 'none')
6607
- // this.map?.setLayoutProperty(this.helper.windy.darkmap.layer.id, 'visibility', 'none')
6608
+ // this.map?.getLayer(this.enc)?.setLayoutProperty('visibility', 'visible')
6609
+ // this.map?.setLayoutProperty(this.helper.mapboxCustomer.layers.countryLabel.id, 'visibility', 'none')
6610
+ // this.map?.getLayer(this.helper.windy.grayland.layer.id)?.setLayoutProperty('visibility', 'none')
6611
+ // this.map?.getLayer(this.helper.windy.darkmap.layer.id)?.setLayoutProperty('visibility', 'none')
6608
6612
  // }
6609
6613
  // },
6610
6614
  // immediate: true,
@@ -6617,16 +6621,9 @@ const Yo = {
6617
6621
  // !this.activeWeatherLayers.some((item) => ['temp', 'water-temp'].includes(item.key))
6618
6622
  // ) {
6619
6623
  // this.map?.moveLayer(this.viewport?.rampColorLayer, null)
6620
- // this.map?.getLayer('grayland')?.setLayoutProperty('visibility', 'none')
6621
- // this.map?.getLayer('darkmap')?.setLayoutProperty('visibility', 'none')
6622
- // }
6623
- // },
6624
- // },
6625
- // enc: {
6626
- // handler(newV, oldV) {
6627
- // if (!this.activeWeatherLayers.some((item) => ['wind', 'temp', 'current'].includes(item.key))) {
6628
- // this.map?.getLayer(newV)?.setLayoutProperty('visibility', 'visible')
6629
- // this.map?.getLayer(oldV)?.setLayoutProperty('visibility', 'none')
6624
+ // this.map?.getLayer(this.helper.windy.grayland.layer.id)?.setLayoutProperty('visibility', 'none')
6625
+ // this.map?.getLayer(this.helper.windy.darkmap.layer.id)?.setLayoutProperty('visibility', 'none')
6626
+ // this.map?.getLayer(this.enc)?.setLayoutProperty('visibility', 'visible')
6630
6627
  // }
6631
6628
  // },
6632
6629
  // },
@@ -6637,7 +6634,7 @@ const Yo = {
6637
6634
  const e = (/* @__PURE__ */ new Date()).valueOf();
6638
6635
  let t = 0, r = 0;
6639
6636
  if (this.map) {
6640
- const m = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, u = (o = this.map) == null ? void 0 : o.getBounds(), b = `${u._sw.lng},${u._sw.lat},${u._ne.lng},${u._ne.lat}`;
6637
+ const m = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, u = (o = this.map) == null ? void 0 : o.getBounds(), g = `${u._sw.lng},${u._sw.lat},${u._ne.lng},${u._ne.lat}`;
6641
6638
  if (this.handleRampColorState(), this.particleFactor) {
6642
6639
  const f = Fe.WEATHER_LAYERS.find((p) => {
6643
6640
  var v;
@@ -6648,42 +6645,42 @@ const Yo = {
6648
6645
  if (this.weatherWeight > 0) {
6649
6646
  let f = this.weatherWeight, p;
6650
6647
  if (a.tropicals || this.weatherWeight & 256 && (p = this.weatherLayers.tropicals, p && (f -= 256, p.version = Math.random() + 1)), f > 0) {
6651
- const v = await ae.get(`${this.gateway}/api/arc/weather/layers/links?l=${f}&v=${this.source}&z=${m}&bbox=${b}&t=${this.ts}`, {
6648
+ const v = await ae.get(`${this.gateway}/api/arc/weather/layers/links?l=${f}&v=${this.source}&z=${m}&bbox=${g}&t=${this.ts}`, {
6652
6649
  headers: {
6653
6650
  Authorization: this.token || this.defaultMeteoToken
6654
6651
  }
6655
6652
  });
6656
6653
  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) {
6657
- const g = (s = v == null ? void 0 : v.data) == null ? void 0 : s.data, w = [];
6658
- for (const _ in g)
6659
- _ === "ice-edge" && (g[_] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), _ !== "tropicals" && w.push(
6660
- ae.get(g[_], {
6654
+ const b = (s = v == null ? void 0 : v.data) == null ? void 0 : s.data, w = [];
6655
+ for (const _ in b)
6656
+ _ === "ice-edge" && (b[_] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), _ !== "tropicals" && w.push(
6657
+ ae.get(b[_], {
6661
6658
  headers: {
6662
6659
  Authorization: this.token || this.defaultMeteoToken,
6663
6660
  key: _
6664
6661
  },
6665
- responseType: /\.(jpg|png)$/.test(g[_]) ? "blob" : "json"
6662
+ responseType: /\.(jpg|png)$/.test(b[_]) ? "blob" : "json"
6666
6663
  }).catch((E) => {
6667
6664
  console.log(`[${_}] fetch layer error: ${E}`);
6668
6665
  })
6669
6666
  );
6670
6667
  const k = await Promise.all(w);
6671
6668
  this.weatherLayers = {}, k.map((_) => {
6672
- var $, O, W, H;
6673
- const E = (($ = _ == null ? void 0 : _.data) == null ? void 0 : $.data) || (_ == null ? void 0 : _.data), D = (W = (O = _ == null ? void 0 : _.config) == null ? void 0 : O.headers) == null ? void 0 : W.key;
6669
+ var $, W, O, H;
6670
+ const E = (($ = _ == null ? void 0 : _.data) == null ? void 0 : $.data) || (_ == null ? void 0 : _.data), D = (O = (W = _ == null ? void 0 : _.config) == null ? void 0 : W.headers) == null ? void 0 : O.key;
6674
6671
  D && E && (this.weatherLayers[D] = {
6675
6672
  raw: E,
6676
6673
  type: ((H = _ == null ? void 0 : _.config) == null ? void 0 : H.responseType) === "blob" ? "image" : "json",
6677
6674
  etime: this.ts
6678
6675
  });
6679
- }), g.tropicals && ae.get(g.tropicals, {
6676
+ }), b.tropicals && ae.get(b.tropicals, {
6680
6677
  headers: {
6681
6678
  Authorization: this.token || this.defaultMeteoToken,
6682
6679
  key: "tropicals"
6683
6680
  }
6684
6681
  }).then((_) => {
6685
- var $, O, W;
6686
- const E = et.convert2Geojson((($ = _ == null ? void 0 : _.data) == null ? void 0 : $.data) || (_ == null ? void 0 : _.data)), D = (W = (O = _ == null ? void 0 : _.config) == null ? void 0 : O.headers) == null ? void 0 : W.key;
6682
+ var $, W, O;
6683
+ const E = et.convert2Geojson((($ = _ == null ? void 0 : _.data) == null ? void 0 : $.data) || (_ == null ? void 0 : _.data)), D = (O = (W = _ == null ? void 0 : _.config) == null ? void 0 : W.headers) == null ? void 0 : O.key;
6687
6684
  this.weatherLayers[D] = {
6688
6685
  data: E,
6689
6686
  active: !0,
@@ -6695,19 +6692,19 @@ const Yo = {
6695
6692
  });
6696
6693
  }
6697
6694
  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"]) {
6698
- const g = (c = this.weatherLayers["swell-direction"]) == null ? void 0 : c.raw, w = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
6695
+ const b = (c = this.weatherLayers["swell-direction"]) == null ? void 0 : c.raw, w = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
6699
6696
  delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
6700
6697
  type: "json",
6701
- direction: g,
6698
+ direction: b,
6702
6699
  height: { raw: w },
6703
6700
  etime: this.ts
6704
6701
  };
6705
6702
  }
6706
6703
  if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
6707
- const g = (y = this.weatherLayers["current-direction"]) == null ? void 0 : y.raw, w = (d = this.weatherLayers["current-speed"]) == null ? void 0 : d.raw;
6704
+ const b = (y = this.weatherLayers["current-direction"]) == null ? void 0 : y.raw, w = (d = this.weatherLayers["current-speed"]) == null ? void 0 : d.raw;
6708
6705
  delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
6709
6706
  type: "json",
6710
- direction: g,
6707
+ direction: b,
6711
6708
  speed: { raw: w },
6712
6709
  etime: this.ts
6713
6710
  };
@@ -6745,8 +6742,8 @@ const Yo = {
6745
6742
  );
6746
6743
  const y = await Promise.all(h);
6747
6744
  this.otherLayers = { enc: n }, y.map((d) => {
6748
- var b, f, p;
6749
- const m = ((b = d == null ? void 0 : d.data) == null ? void 0 : b.data) || (d == null ? void 0 : d.data), u = (p = (f = d == null ? void 0 : d.config) == null ? void 0 : f.headers) == null ? void 0 : p.key;
6745
+ var g, f, p;
6746
+ const m = ((g = d == null ? void 0 : d.data) == null ? void 0 : g.data) || (d == null ? void 0 : d.data), u = (p = (f = d == null ? void 0 : d.config) == null ? void 0 : f.headers) == null ? void 0 : p.key;
6750
6747
  this.otherLayers[u] = m;
6751
6748
  });
6752
6749
  }
@@ -6768,8 +6765,8 @@ const Yo = {
6768
6765
  })
6769
6766
  );
6770
6767
  (await Promise.all(h)).map((d) => {
6771
- var b, f, p;
6772
- const m = ((b = d == null ? void 0 : d.data) == null ? void 0 : b.data) || (d == null ? void 0 : d.data), u = (p = (f = d == null ? void 0 : d.config) == null ? void 0 : f.headers) == null ? void 0 : p.key;
6768
+ var g, f, p;
6769
+ const m = ((g = d == null ? void 0 : d.data) == null ? void 0 : g.data) || (d == null ? void 0 : d.data), u = (p = (f = d == null ? void 0 : d.config) == null ? void 0 : f.headers) == null ? void 0 : p.key;
6773
6770
  this.otherLayers[u] = m;
6774
6771
  });
6775
6772
  }
@@ -6832,29 +6829,29 @@ const Yo = {
6832
6829
  for (const u in this.weatherLayers)
6833
6830
  if (this.weatherLayers[u].active && this.weatherLayers[u].type === "json") {
6834
6831
  this.weatherLayers[u].active = !1, this.weatherLayers[u].version = Math.random() + 1;
6835
- let b = [];
6832
+ let g = [];
6836
6833
  if (["swell", "current"].includes(u)) {
6837
6834
  const f = ((y = this.weatherLayers[u]) == null ? void 0 : y.direction) || {};
6838
6835
  for (const p in f)
6839
6836
  if (p > s && p < c && (!(i <= this.zoom) || p % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6840
6837
  const v = f[p].lng;
6841
- o > n ? v.forEach((g, w) => {
6838
+ o > n ? v.forEach((b, w) => {
6842
6839
  var k;
6843
- if ((g >= o && g <= 180 || g >= -180 && g <= n) && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6844
- const _ = C.point([g, p], {
6840
+ if ((b >= o && b <= 180 || b >= -180 && b <= n) && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6841
+ const _ = C.point([b, p], {
6845
6842
  val: f[p].val[w],
6846
6843
  spd: (k = f[p].spd) == null ? void 0 : k[w]
6847
6844
  });
6848
- b.push(_);
6845
+ g.push(_);
6849
6846
  }
6850
- }) : v.forEach((g, w) => {
6847
+ }) : v.forEach((b, w) => {
6851
6848
  var k;
6852
- if (g >= o && g <= n && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6853
- const _ = C.point([g, p], {
6849
+ if (b >= o && b <= n && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6850
+ const _ = C.point([b, p], {
6854
6851
  val: f[p].val[w],
6855
6852
  spd: (k = f[p].spd) == null ? void 0 : k[w]
6856
6853
  });
6857
- b.push(_);
6854
+ g.push(_);
6858
6855
  }
6859
6856
  });
6860
6857
  }
@@ -6863,12 +6860,12 @@ const Yo = {
6863
6860
  if (p) {
6864
6861
  if (!p.data) {
6865
6862
  const v = [];
6866
- for (const g in (d = p.raw) == null ? void 0 : d.LineString) {
6867
- const w = p.raw.LineString[g];
6863
+ for (const b in (d = p.raw) == null ? void 0 : d.LineString) {
6864
+ const w = p.raw.LineString[b];
6868
6865
  for (const k of w)
6869
6866
  v.push(
6870
6867
  C.lineString(k, {
6871
- val: Number(g)
6868
+ val: Number(b)
6872
6869
  })
6873
6870
  );
6874
6871
  p.data = C.featureCollection(v);
@@ -6876,7 +6873,7 @@ const Yo = {
6876
6873
  }
6877
6874
  if (p.data) {
6878
6875
  const v = this.handleBboxClip(p.data, r);
6879
- b = b.concat(v);
6876
+ g = g.concat(v);
6880
6877
  }
6881
6878
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("height elapsed: ", t, ", total: ", e += t);
6882
6879
  }
@@ -6885,20 +6882,20 @@ const Yo = {
6885
6882
  const p = this.weatherLayers[u].speed;
6886
6883
  if (p) {
6887
6884
  if (!p.data) {
6888
- const g = [];
6885
+ const b = [];
6889
6886
  for (const w in (m = p.raw) == null ? void 0 : m.Polygon) {
6890
6887
  const k = p.raw.Polygon[w];
6891
6888
  for (const _ of k)
6892
- g.push(
6889
+ b.push(
6893
6890
  C.polygon(_, {
6894
6891
  val: Number(w)
6895
6892
  })
6896
6893
  );
6897
6894
  }
6898
- p.data = C.featureCollection(g);
6895
+ p.data = C.featureCollection(b);
6899
6896
  }
6900
- const v = i < this.zoom ? p.data.features.filter((g) => g.properties.val > 0.5) : p.data.features;
6901
- b = b.concat(v), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("speed elapsed: ", t, ", total: ", e += t);
6897
+ const v = i < this.zoom ? p.data.features.filter((b) => b.properties.val > 0.5) : p.data.features;
6898
+ g = g.concat(v), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("speed elapsed: ", t, ", total: ", e += t);
6902
6899
  }
6903
6900
  }
6904
6901
  } else if (u === "wind") {
@@ -6906,55 +6903,55 @@ const Yo = {
6906
6903
  for (const p in f)
6907
6904
  if (p > s && p < c && (!(i <= this.zoom) || p % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6908
6905
  const v = f[p].lng;
6909
- o > n ? v.forEach((g, w) => {
6910
- if ((g >= o && g <= 180 || g >= -180 && g <= n) && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6911
- const k = C.point([g, p], {
6906
+ o > n ? v.forEach((b, w) => {
6907
+ if ((b >= o && b <= 180 || b >= -180 && b <= n) && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6908
+ const k = C.point([b, p], {
6912
6909
  val: f[p].val[w],
6913
6910
  spd: f[p].spd[w]
6914
6911
  });
6915
- b.push(k);
6912
+ g.push(k);
6916
6913
  }
6917
- }) : v.forEach((g, w) => {
6918
- if (g >= o && g <= n && (!(i <= this.zoom) || g % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6919
- const k = C.point([g, p], {
6914
+ }) : v.forEach((b, w) => {
6915
+ if (b >= o && b <= n && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6916
+ const k = C.point([b, p], {
6920
6917
  val: f[p].val[w],
6921
6918
  spd: f[p].spd[w]
6922
6919
  });
6923
- b.push(k);
6920
+ g.push(k);
6924
6921
  }
6925
6922
  });
6926
6923
  }
6927
6924
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("wind barb elapsed: ", t, ", total: ", e += t);
6928
6925
  } else if (u === "sig-wave-height") {
6929
6926
  if (this.weatherLayers[u].data)
6930
- b = this.weatherLayers[u].data;
6927
+ g = this.weatherLayers[u].data;
6931
6928
  else {
6932
6929
  const f = this.weatherLayers[u].raw;
6933
6930
  if (f) {
6934
6931
  const p = [];
6935
6932
  for (const v in f.Polygon) {
6936
- const g = f.Polygon[v];
6937
- for (const w of g)
6933
+ const b = f.Polygon[v];
6934
+ for (const w of b)
6938
6935
  p.push(
6939
6936
  C.polygon(w, {
6940
6937
  val: Number(v)
6941
6938
  })
6942
6939
  );
6943
6940
  }
6944
- b = b.concat(p);
6941
+ g = g.concat(p);
6945
6942
  }
6946
6943
  }
6947
6944
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("sigWave elapsed: ", t, ", total: ", e += t);
6948
6945
  } else if (u === "prmsl") {
6949
6946
  if (this.weatherLayers[u].data)
6950
- b = this.weatherLayers[u].data;
6947
+ g = this.weatherLayers[u].data;
6951
6948
  else {
6952
6949
  const f = this.weatherLayers[u].raw;
6953
6950
  if (f) {
6954
6951
  const p = [];
6955
6952
  for (const v in f.LineString) {
6956
- const g = f.LineString[v];
6957
- for (const w of g)
6953
+ const b = f.LineString[v];
6954
+ for (const w of b)
6958
6955
  p.push(
6959
6956
  C.lineString(w, {
6960
6957
  val: Number(v)
@@ -6962,40 +6959,40 @@ const Yo = {
6962
6959
  );
6963
6960
  }
6964
6961
  for (const v in f.Point)
6965
- f.Point[v].lng.forEach((g, w) => {
6966
- g = Re(g), p.push(
6967
- C.point([g, v], {
6962
+ f.Point[v].lng.forEach((b, w) => {
6963
+ b = Re(b), p.push(
6964
+ C.point([b, v], {
6968
6965
  val: f.Point[v].val[w],
6969
6966
  type: f.Point[v].type[w]
6970
6967
  })
6971
6968
  );
6972
6969
  });
6973
- b = b.concat(p);
6970
+ g = g.concat(p);
6974
6971
  }
6975
6972
  }
6976
6973
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("prmsl elapsed: ", t, ", total: ", e += t);
6977
6974
  } else if (u === "arctic" || u === "iceberg") {
6978
6975
  if (this.weatherLayers[u].data)
6979
- b = this.weatherLayers[u].data;
6976
+ g = this.weatherLayers[u].data;
6980
6977
  else {
6981
6978
  const f = this.weatherLayers[u].raw;
6982
6979
  if (f) {
6983
6980
  const p = [];
6984
6981
  for (const v in f.LineString) {
6985
- const g = f.LineString[v];
6986
- for (const w of g)
6982
+ const b = f.LineString[v];
6983
+ for (const w of b)
6987
6984
  p.push(
6988
6985
  C.lineString(w, {
6989
6986
  val: Number(v)
6990
6987
  })
6991
6988
  );
6992
6989
  }
6993
- b = b.concat(p);
6990
+ g = g.concat(p);
6994
6991
  }
6995
6992
  }
6996
6993
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e);
6997
6994
  }
6998
- console.log(u, " elapsed: ", t, ", total: ", e += t), b.length && (this.weatherLayers[u].data = C.featureCollection(b)), this.weatherLayers[u].active = !0, this.weatherLayers[u].version = Math.random() + 1;
6995
+ console.log(u, " elapsed: ", t, ", total: ", e += t), g.length && (this.weatherLayers[u].data = C.featureCollection(g)), this.weatherLayers[u].active = !0, this.weatherLayers[u].version = Math.random() + 1;
6999
6996
  }
7000
6997
  },
7001
6998
  handleDragEndWithZoom4Image() {
@@ -7088,7 +7085,7 @@ const Yo = {
7088
7085
  };
7089
7086
  function Ko(a, e, t, r, i, o) {
7090
7087
  var q, ne, fe, ge, be, ve, _e, we, Le, xe, Ce, Se, ke, ze, Pe, Te, Ie, Ee, Ne, He, Ze, Xe, Je, qe, Ye, Qe;
7091
- const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), y = z("IdmPrmsl"), d = z("IdmIceberg"), m = z("IdmTropicals"), u = z("IdmCurrents"), b = z("IdmCurrentParticle"), f = z("IdmWindBarb"), p = z("IdmWindParticle"), v = z("IdmPrecip3h"), g = z("IdmVisibility"), w = z("IdmWaterTemp"), k = z("IdmTemp"), _ = z("IdmArctic"), E = z("IdmWarZone"), D = z("IdmGmdssArea"), $ = z("IdmEcaZone"), O = z("IdmAlertZone"), W = z("IdmPort"), H = z("IdmLoadLine"), X = z("IdmTimezone"), ee = z("IdmVRA"), he = z("IdmSpecialArea"), te = z("IdmTerminator"), A = z("IdmLatLng"), V = z("IdmMeasure"), de = z("IdmPoint");
7088
+ const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), y = z("IdmPrmsl"), d = z("IdmIceberg"), m = z("IdmTropicals"), u = z("IdmCurrents"), g = z("IdmCurrentParticle"), f = z("IdmWindBarb"), p = z("IdmWindParticle"), v = z("IdmPrecip3h"), b = z("IdmVisibility"), w = z("IdmWaterTemp"), k = z("IdmTemp"), _ = z("IdmArctic"), E = z("IdmWarZone"), D = z("IdmGmdssArea"), $ = z("IdmEcaZone"), W = z("IdmAlertZone"), O = z("IdmPort"), H = z("IdmLoadLine"), X = z("IdmTimezone"), ee = z("IdmVRA"), he = z("IdmSpecialArea"), te = z("IdmTerminator"), A = z("IdmLatLng"), V = z("IdmMeasure"), de = z("IdmPoint");
7092
7089
  return t.map ? (L(), x("div", Qo, [
7093
7090
  P(n, I({
7094
7091
  ref: "layer",
@@ -7146,7 +7143,7 @@ function Ko(a, e, t, r, i, o) {
7146
7143
  "toggle-version": i.toggleVersion,
7147
7144
  "weather-layers": i.weatherLayers
7148
7145
  }, a.$attrs, { onParticle: o.handleParticle }), null, 16, ["map", "current", "before-layer", "show-particle", "margin-bottom", "toggle-version", "weather-layers", "onParticle"]),
7149
- P(b, I({
7146
+ P(g, I({
7150
7147
  viewport: i.viewport,
7151
7148
  factor: (we = i.weatherLayers) == null ? void 0 : we["current-particle"],
7152
7149
  "before-layer": t.beforeLayer,
@@ -7177,7 +7174,7 @@ function Ko(a, e, t, r, i, o) {
7177
7174
  "before-layer": t.beforeLayer,
7178
7175
  "toggle-version": i.toggleVersion
7179
7176
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7180
- P(g, I({
7177
+ P(b, I({
7181
7178
  viewport: i.viewport,
7182
7179
  factor: (ke = i.weatherLayers) == null ? void 0 : ke.visibility,
7183
7180
  "before-layer": t.beforeLayer,
@@ -7216,12 +7213,12 @@ function Ko(a, e, t, r, i, o) {
7216
7213
  zone: (Ne = i.otherLayers) == null ? void 0 : Ne["eca-zones"],
7217
7214
  "before-layer": t.beforeLayer
7218
7215
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7219
- P(O, I({
7216
+ P(W, I({
7220
7217
  map: t.map,
7221
7218
  zone: (He = i.otherLayers) == null ? void 0 : He["alert-zones"],
7222
7219
  "before-layer": t.beforeLayer
7223
7220
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7224
- P(W, I({
7221
+ P(O, I({
7225
7222
  map: t.map,
7226
7223
  port: (Ze = i.otherLayers) == null ? void 0 : Ze.ports,
7227
7224
  "before-layer": t.beforeLayer