@idmwx/idmui-gl3 4.3.8 → 4.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2,12 +2,12 @@ var Fe = Object.defineProperty;
2
2
  var $e = (a, e, t) => e in a ? Fe(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
3
  var I = (a, e, t) => ($e(a, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  import { LayerHelper as Pe, CompanyHelper as Ce, convertToStandardLng as we } from "@idmwx/idmwx-base";
5
- import { resolveComponent as z, openBlock as x, createElementBlock as _, createElementVNode as l, normalizeStyle as $, normalizeClass as M, Fragment as xe, renderList as _e, toDisplayString as S, createVNode as P, withCtx as Ue, createTextVNode as Ne, createCommentVNode as B, withDirectives as Se, createStaticVNode as Ve, vShow as ke, mergeProps as R } from "vue";
5
+ import { resolveComponent as z, openBlock as x, createElementBlock as _, createElementVNode as l, normalizeStyle as $, normalizeClass as M, Fragment as xe, renderList as _e, toDisplayString as S, createVNode as P, withCtx as Ue, createTextVNode as Oe, createCommentVNode as B, withDirectives as Se, createStaticVNode as Ve, vShow as ke, mergeProps as E } from "vue";
6
6
  import * as C from "@turf/turf";
7
7
  import Ze from "@mapbox/sphericalmercator";
8
8
  import Z from "moment";
9
9
  import K from "mapbox-gl";
10
- import { TropicalHelper as We, LngLatHelper as F, LaneHelper as Q } from "@idm-plugin/geo";
10
+ import { TropicalHelper as Ne, LngLatHelper as F, LaneHelper as Q } from "@idm-plugin/geo";
11
11
  import re from "axios";
12
12
  const T = (a, e) => {
13
13
  const t = a.__vccOpts || a;
@@ -80,16 +80,16 @@ const T = (a, e) => {
80
80
  showLayers: {
81
81
  handler() {
82
82
  this.$nextTick(() => {
83
- var a, e;
84
- this.$emit("menu", this.showLayers ? !1 : this.toggleMenu), this.$emit("toggleVersion", Math.random()), this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
83
+ var a;
84
+ this.$emit("menu", this.showLayers ? !1 : this.toggleMenu), this.$emit("toggleVersion", Math.random()), this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
85
85
  });
86
86
  }
87
87
  },
88
88
  toggleMenu: {
89
89
  handler() {
90
90
  this.$nextTick(() => {
91
- var a, e;
92
- this.showLayers = this.toggleMenu ? !1 : this.showLayers, this.$emit("toggleVersion", Math.random()), this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
91
+ var a;
92
+ this.showLayers = this.toggleMenu ? !1 : this.showLayers, this.$emit("toggleVersion", Math.random()), this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
93
93
  });
94
94
  }
95
95
  }
@@ -226,14 +226,14 @@ function nt(a, e, t, r, i, o) {
226
226
  l("i", { class: "iconfont" }, "", -1)
227
227
  ]), 4),
228
228
  l("div", {
229
- class: M(["list-box", i.showLayers ? "available-layers-show" : ""])
229
+ class: M(["list-box", i.showLayers ? "right-bar" : ""])
230
230
  }, [
231
231
  P(n, { style: { flex: "1" } }, {
232
232
  default: Ue(() => [
233
233
  l("div", Ye, [
234
234
  l("div", Qe, [
235
235
  l("div", null, [
236
- e[15] || (e[15] = Ne(" Weather Layers ")),
236
+ e[15] || (e[15] = Oe(" Weather Layers ")),
237
237
  l("span", Ke, "(" + S(i.weatherLayers.length) + "/12)", 1)
238
238
  ])
239
239
  ]),
@@ -349,8 +349,8 @@ const ct = {
349
349
  },
350
350
  toggleVersion: {
351
351
  handler() {
352
- var a, e;
353
- this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
352
+ var a;
353
+ this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
354
354
  },
355
355
  immediate: !0
356
356
  },
@@ -387,22 +387,22 @@ const ct = {
387
387
  else {
388
388
  this.map.addSource(this.source, { type: "geojson", data: s });
389
389
  for (let c = 0; c < (this.barbs ?? []).length - 1; c++) {
390
- const h = (this.barbs ?? [])[c] || 0, d = (this.barbs ?? [])[c + 1] || 0, p = h < 10 ? `00${h}kts` : h < 100 ? `0${h}kts` : `${h}kts`;
390
+ const h = (this.barbs ?? [])[c] || 0, p = (this.barbs ?? [])[c + 1] || 0, d = h < 10 ? `00${h}kts` : h < 100 ? `0${h}kts` : `${h}kts`;
391
391
  this.map.addLayer(
392
392
  {
393
- id: p,
393
+ id: d,
394
394
  type: "symbol",
395
395
  filter: [
396
396
  "all",
397
397
  // @ts-ignore
398
398
  [">=", "spd", h],
399
399
  // @ts-ignore
400
- ["<", "spd", d]
400
+ ["<", "spd", p]
401
401
  ],
402
402
  source: this.source,
403
403
  layout: {
404
404
  "symbol-placement": "point",
405
- "icon-image": p,
405
+ "icon-image": d,
406
406
  // mapbox sprite
407
407
  "icon-size": 0.14,
408
408
  "icon-offset": [0, -20],
@@ -445,10 +445,10 @@ const ct = {
445
445
  this.map.getSource(this.source) && this.map.removeSource(this.source), this.windBarbLoaded = !1;
446
446
  }
447
447
  }
448
- }, ht = { key: 0 }, dt = {
448
+ }, ht = { key: 0 }, pt = {
449
449
  key: 0,
450
450
  class: "iconfont active"
451
- }, pt = {
451
+ }, dt = {
452
452
  key: 1,
453
453
  class: "iconfont"
454
454
  }, mt = {
@@ -470,7 +470,7 @@ function yt(a, e, t, r, i, o) {
470
470
  class: "flex-start",
471
471
  onClick: e[0] || (e[0] = (...s) => o.handleParticle && o.handleParticle(...s))
472
472
  }, [
473
- t.showParticle ? (x(), _("i", dt, "")) : (x(), _("i", pt, "")),
473
+ t.showParticle ? (x(), _("i", pt, "")) : (x(), _("i", dt, "")),
474
474
  l("span", {
475
475
  class: M(t.showParticle ? "active" : "")
476
476
  }, "Wind Particles", 2)
@@ -489,7 +489,7 @@ function yt(a, e, t, r, i, o) {
489
489
  ], 4)
490
490
  ])) : B("", !0);
491
491
  }
492
- const ft = /* @__PURE__ */ T(ct, [["render", yt], ["__scopeId", "data-v-b6fb74d9"]]);
492
+ const ft = /* @__PURE__ */ T(ct, [["render", yt], ["__scopeId", "data-v-8af725eb"]]);
493
493
  class Te {
494
494
  constructor(e) {
495
495
  I(this, "map");
@@ -535,8 +535,8 @@ class Te {
535
535
  * @param [lb.x, lb.y, rt.x, rt.y]
536
536
  */
537
537
  getBoundPixel() {
538
- const e = this.map.getBounds(), t = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [o, n] = this.convertNLng(r[0]), [s, c] = this.convertNLng(i[0]), [h, d] = this.mercator.px([o, r[1]], t), [p, g] = this.mercator.px([s, i[1]], t), u = Math.round(this.mercator.size * Math.pow(2, t) * (n + c));
539
- return [p, g, h + u, d];
538
+ const e = this.map.getBounds(), t = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [o, n] = this.convertNLng(r[0]), [s, c] = this.convertNLng(i[0]), [h, p] = this.mercator.px([o, r[1]], t), [d, g] = this.mercator.px([s, i[1]], t), u = Math.round(this.mercator.size * Math.pow(2, t) * (n + c));
539
+ return [d, g, h + u, p];
540
540
  }
541
541
  /**
542
542
  * [视窗边界像素宽度]
@@ -551,13 +551,13 @@ class Te {
551
551
  * @param zoom
552
552
  */
553
553
  getWorldCopy(e, t) {
554
- const r = 2 ** t, [i, o, n, s] = e.map((d) => ~~(d / (r * 256))), c = [];
555
- for (let d = s; d <= o; d++)
556
- for (let p = i; p <= n; p++)
557
- c.push([p, d]);
558
- return c.map((d) => {
559
- const p = 2 ** t * 256;
560
- return [d[0] * p, d[1] * p, p];
554
+ const r = 2 ** t, [i, o, n, s] = e.map((p) => ~~(p / (r * 256))), c = [];
555
+ for (let p = s; p <= o; p++)
556
+ for (let d = i; d <= n; d++)
557
+ c.push([d, p]);
558
+ return c.map((p) => {
559
+ const d = 2 ** t * 256;
560
+ return [p[0] * d, p[1] * d, d];
561
561
  });
562
562
  }
563
563
  resize() {
@@ -660,8 +660,8 @@ class ye {
660
660
  const s = n.getContext("2d");
661
661
  if (s && e) {
662
662
  const c = s == null ? void 0 : s.createLinearGradient(0, 0, 256, 0);
663
- return t.forEach(([h, d]) => {
664
- c.addColorStop(h, d);
663
+ return t.forEach(([h, p]) => {
664
+ c.addColorStop(h, p);
665
665
  }), s.fillStyle = c, s.fillRect(0, 0, 256, 1), {
666
666
  canvas: n,
667
667
  texture: this.createTexture(
@@ -678,11 +678,11 @@ class ye {
678
678
  }
679
679
  setupParticle(e, t = 1e3) {
680
680
  const r = Math.ceil(Math.sqrt(t)), i = r * r, o = new Uint8Array(i * 4);
681
- for (let d = 0; d < o.length; d++)
682
- o[d] = Math.floor(Math.random() * 256);
681
+ for (let p = 0; p < o.length; p++)
682
+ o[p] = Math.floor(Math.random() * 256);
683
683
  const n = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, o, r, r), s = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, o, r, r), c = new Float32Array(i);
684
- for (let d = 0; d < i; d++)
685
- c[d] = d;
684
+ for (let p = 0; p < i; p++)
685
+ c[p] = p;
686
686
  const h = this.createDataBuffer(e, "array", c);
687
687
  return { resolution: r, total: i, texture0: n, texture1: s, indexBuffer: h };
688
688
  }
@@ -699,26 +699,26 @@ class ye {
699
699
  return {};
700
700
  }
701
701
  bindParticle(e, t, r, i, o, n) {
702
- const s = this.createProgramWrapper(e, t, r), c = this.createProgramWrapper(e, i, o), h = this.createProgramWrapper(e, i, n), d = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), p = e.createFramebuffer();
703
- return { particle: s, screen: c, update: h, quadBuffer: d, frameBuffer: p };
702
+ const s = this.createProgramWrapper(e, t, r), c = this.createProgramWrapper(e, i, o), h = this.createProgramWrapper(e, i, n), p = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), d = e.createFramebuffer();
703
+ return { particle: s, screen: c, update: h, quadBuffer: p, frameBuffer: d };
704
704
  }
705
705
  draw(e, t, r, i, o, n, s) {
706
706
  var c, h;
707
707
  if (t && r) {
708
708
  e.resize(), t == null || t.viewport(0, 0, (c = t == null ? void 0 : t.canvas) == null ? void 0 : c.width, (h = t == null ? void 0 : t.canvas) == null ? void 0 : h.height), t.clearColor(0, 0, 0, 0), t.clear(t.COLOR_BUFFER_BIT | t.DEPTH_BUFFER_BIT);
709
709
  try {
710
- const d = t.getUniformLocation(r, "u_resolution"), p = t.getUniformLocation(r, "u_image"), g = t.getUniformLocation(r, "u_color");
711
- if (t.useProgram(r), t.uniform2f(d, t.canvas.width * e.ratio, t.canvas.height * e.ratio), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, i), t.uniform1i(p, 0), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, o), t.uniform1i(g, 1), s != null && s.uvRange && (s != null && s.sRange)) {
710
+ const p = t.getUniformLocation(r, "u_resolution"), d = t.getUniformLocation(r, "u_image"), g = t.getUniformLocation(r, "u_color");
711
+ if (t.useProgram(r), t.uniform2f(p, t.canvas.width * e.ratio, t.canvas.height * e.ratio), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, i), t.uniform1i(d, 0), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, o), t.uniform1i(g, 1), s != null && s.uvRange && (s != null && s.sRange)) {
712
712
  const m = t.getUniformLocation(r, "u_range_u_v"), v = t.getUniformLocation(r, "u_range_s");
713
713
  t.uniform2f(m, s.uvRange[0], s.uvRange[1]), t.uniform2f(v, s.sRange[0], s.sRange[1]);
714
714
  }
715
715
  const u = e.getBoundPixel(), y = e.map.getZoom() + 1, f = e.getWorldCopy(u, y);
716
716
  for (const m of f) {
717
- const v = (m[0] - u[0]) * e.ratio, b = (m[1] - u[3]) * e.ratio, w = m[2] * e.ratio, [k, L, D, A] = [v, w + v, b, w + b], N = new Float32Array([k, D, L, D, k, A, k, A, L, D, L, A]);
718
- t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, N, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
717
+ const v = (m[0] - u[0]) * e.ratio, b = (m[1] - u[3]) * e.ratio, w = m[2] * e.ratio, [k, L, D, A] = [v, w + v, b, w + b], O = new Float32Array([k, D, L, D, k, A, k, A, L, D, L, A]);
718
+ t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, O, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
719
719
  }
720
- } catch (d) {
721
- console.log(`render failed...${d}`);
720
+ } catch (p) {
721
+ console.log(`render failed...${p}`);
722
722
  }
723
723
  }
724
724
  }
@@ -763,10 +763,10 @@ class ye {
763
763
  });
764
764
  }
765
765
  }
766
- class W {
766
+ class N {
767
767
  }
768
768
  // 顶点渲染
769
- I(W, "vertexSchema", `
769
+ I(N, "vertexSchema", `
770
770
  //canvas 坐标系上的坐标 (x, y)
771
771
  attribute vec2 a_position; //像素坐标
772
772
  attribute vec2 a_texCoord; //纹理坐标
@@ -781,7 +781,7 @@ I(W, "vertexSchema", `
781
781
  gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
782
782
  v_texCoord = a_texCoord;
783
783
  }`), // 类如风、流等u v双变量片元渲染
784
- I(W, "uvFragmentSchema", `
784
+ I(N, "uvFragmentSchema", `
785
785
  precision mediump float;
786
786
  uniform sampler2D u_image;
787
787
  uniform vec2 u_range_u_v;
@@ -800,7 +800,7 @@ I(W, "uvFragmentSchema", `
800
800
 
801
801
  gl_FragColor = color;
802
802
  }`), // 类如浪、气压等单变量片元渲染
803
- I(W, "fragmentSchema", `
803
+ I(N, "fragmentSchema", `
804
804
  precision mediump float;
805
805
  uniform sampler2D u_image; // 灰度
806
806
  uniform sampler2D u_color; // 色值映射
@@ -2623,8 +2623,8 @@ const bt = {
2623
2623
  },
2624
2624
  toggleVersion: {
2625
2625
  handler() {
2626
- var a, e;
2627
- this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
2626
+ var a;
2627
+ this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
2628
2628
  },
2629
2629
  immediate: !0
2630
2630
  }
@@ -2678,7 +2678,7 @@ const bt = {
2678
2678
  [1, "rgb(91, 136, 161)"]
2679
2679
  ];
2680
2680
  this.rampColor = this.webgl.setup(this.context, a);
2681
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.uvFragmentSchema);
2681
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.uvFragmentSchema);
2682
2682
  this.program = e, this.aPositionBuffer = t;
2683
2683
  }
2684
2684
  this.handleParticleSetup();
@@ -2745,7 +2745,7 @@ function Lt(a, e, t, r, i, o) {
2745
2745
  ]), 4)
2746
2746
  ])) : B("", !0);
2747
2747
  }
2748
- const wt = /* @__PURE__ */ T(bt, [["render", Lt], ["__scopeId", "data-v-41a686d0"]]);
2748
+ const wt = /* @__PURE__ */ T(bt, [["render", Lt], ["__scopeId", "data-v-a3cc30c6"]]);
2749
2749
  const xt = {
2750
2750
  name: "IdmCurrent",
2751
2751
  props: {
@@ -2811,8 +2811,8 @@ const xt = {
2811
2811
  },
2812
2812
  toggleVersion: {
2813
2813
  handler() {
2814
- var a, e;
2815
- this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
2814
+ var a;
2815
+ this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
2816
2816
  },
2817
2817
  immediate: !0
2818
2818
  },
@@ -2950,8 +2950,8 @@ function Pt(a, e, t, r, i, o) {
2950
2950
  ], 4)
2951
2951
  ])) : B("", !0);
2952
2952
  }
2953
- const Tt = /* @__PURE__ */ T(xt, [["render", Pt], ["__scopeId", "data-v-ae630f43"]]);
2954
- const Et = {
2953
+ const Tt = /* @__PURE__ */ T(xt, [["render", Pt], ["__scopeId", "data-v-83a51e73"]]);
2954
+ const Rt = {
2955
2955
  name: "IdmCurrentParticle",
2956
2956
  props: {
2957
2957
  factor: {
@@ -3010,8 +3010,8 @@ const Et = {
3010
3010
  },
3011
3011
  toggleVersion: {
3012
3012
  handler() {
3013
- var a, e;
3014
- this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
3013
+ var a;
3014
+ this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
3015
3015
  },
3016
3016
  immediate: !0
3017
3017
  }
@@ -3056,7 +3056,7 @@ const Et = {
3056
3056
  [1, "rgb(195,194,194)"]
3057
3057
  ];
3058
3058
  this.rampColor = this.webgl.setup(this.context, a);
3059
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.uvFragmentSchema);
3059
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.uvFragmentSchema);
3060
3060
  this.program = e, this.aPositionBuffer = t;
3061
3061
  }
3062
3062
  this.handleParticleSetup();
@@ -3108,10 +3108,10 @@ const Et = {
3108
3108
  });
3109
3109
  }
3110
3110
  }
3111
- }, Rt = { key: 0 };
3111
+ }, Et = { key: 0 };
3112
3112
  function It(a, e, t, r, i, o) {
3113
3113
  var n;
3114
- return (n = t.factor) != null && n.active ? (x(), _("div", Rt, [
3114
+ return (n = t.factor) != null && n.active ? (x(), _("div", Et, [
3115
3115
  l("div", {
3116
3116
  class: "legend-bars flex-center",
3117
3117
  style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
@@ -3126,7 +3126,7 @@ function It(a, e, t, r, i, o) {
3126
3126
  ]), 4)
3127
3127
  ])) : B("", !0);
3128
3128
  }
3129
- const Dt = /* @__PURE__ */ T(Et, [["render", It], ["__scopeId", "data-v-9115889b"]]), At = {
3129
+ const Dt = /* @__PURE__ */ T(Rt, [["render", It], ["__scopeId", "data-v-13f659b1"]]), At = {
3130
3130
  name: "IdmSigWave",
3131
3131
  props: {
3132
3132
  map: {
@@ -3240,7 +3240,7 @@ const Dt = /* @__PURE__ */ T(Et, [["render", It], ["__scopeId", "data-v-9115889b
3240
3240
  function Mt(a, e, t, r, i, o) {
3241
3241
  return x(), _("div");
3242
3242
  }
3243
- const Bt = /* @__PURE__ */ T(At, [["render", Mt]]), Nt = {
3243
+ const Bt = /* @__PURE__ */ T(At, [["render", Mt]]), Ot = {
3244
3244
  name: "IdmSwell",
3245
3245
  props: {
3246
3246
  map: {
@@ -3378,10 +3378,10 @@ const Bt = /* @__PURE__ */ T(At, [["render", Mt]]), Nt = {
3378
3378
  }
3379
3379
  }
3380
3380
  };
3381
- function Wt(a, e, t, r, i, o) {
3381
+ function Nt(a, e, t, r, i, o) {
3382
3382
  return x(), _("div");
3383
3383
  }
3384
- const Ot = /* @__PURE__ */ T(Nt, [["render", Wt]]), jt = {
3384
+ const jt = /* @__PURE__ */ T(Ot, [["render", Nt]]), Wt = {
3385
3385
  name: "IdmPrmsl",
3386
3386
  props: {
3387
3387
  map: {
@@ -3509,7 +3509,7 @@ const Ot = /* @__PURE__ */ T(Nt, [["render", Wt]]), jt = {
3509
3509
  function Ft(a, e, t, r, i, o) {
3510
3510
  return x(), _("div");
3511
3511
  }
3512
- const $t = /* @__PURE__ */ T(jt, [["render", Ft]]), Ut = {
3512
+ const $t = /* @__PURE__ */ T(Wt, [["render", Ft]]), Ut = {
3513
3513
  name: "IdmIceberg",
3514
3514
  props: {
3515
3515
  map: {
@@ -3662,24 +3662,24 @@ const Ht = {
3662
3662
  }), t.forEach((o) => {
3663
3663
  var h;
3664
3664
  let n = 0, s;
3665
- const c = a.filter((d) => {
3666
- var p, g;
3667
- return ((g = (p = d.properties) == null ? void 0 : p.category) == null ? void 0 : g.split("-")[0]) === o;
3665
+ const c = a.filter((p) => {
3666
+ var d, g;
3667
+ return ((g = (d = p.properties) == null ? void 0 : d.category) == null ? void 0 : g.split("-")[0]) === o;
3668
3668
  });
3669
- (h = c.filter((d) => {
3670
- var p, g;
3671
- return ((p = d.geometry) == null ? void 0 : p.type) === "LineString" && ((g = d.properties) == null ? void 0 : g.type) === "forecast";
3672
- })[0]) == null || h.properties.model, c.forEach((d, p) => {
3669
+ (h = c.filter((p) => {
3670
+ var d, g;
3671
+ return ((d = p.geometry) == null ? void 0 : d.type) === "LineString" && ((g = p.properties) == null ? void 0 : g.type) === "forecast";
3672
+ })[0]) == null || h.properties.model, c.forEach((p, d) => {
3673
3673
  var g, u, y, f, m, v;
3674
- ((g = d.geometry) == null ? void 0 : g.type) === "Point" && ((u = d.properties) == null ? void 0 : u.type) === "history" && (n = p, s = s === void 0 ? p : s), ((y = d.geometry) == null ? void 0 : y.type) === "Point" && ((f = d.properties) == null ? void 0 : f.type) === "forecast" && s === void 0 && (s = p), ((m = d.geometry) == null ? void 0 : m.type) === "LineString" && ((v = d.properties) == null || v.type);
3675
- }), c.map((d, p) => {
3674
+ ((g = p.geometry) == null ? void 0 : g.type) === "Point" && ((u = p.properties) == null ? void 0 : u.type) === "history" && (n = d, s = s === void 0 ? d : s), ((y = p.geometry) == null ? void 0 : y.type) === "Point" && ((f = p.properties) == null ? void 0 : f.type) === "forecast" && s === void 0 && (s = d), ((m = p.geometry) == null ? void 0 : m.type) === "LineString" && ((v = p.properties) == null || v.type);
3675
+ }), c.map((p, d) => {
3676
3676
  var g, u, y, f, m, v, b;
3677
- if (((g = d.geometry) == null ? void 0 : g.type) === "LineString" && ((u = d.properties) == null || u.type), ((y = d.geometry) == null ? void 0 : y.type) === "Point" && ((f = d.properties) == null ? void 0 : f.type) === "forecast" && (d.properties.name = o, d.properties.format = Z(d.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((m = d.geometry) == null ? void 0 : m.type) === "Point" && ((v = d.properties) == null ? void 0 : v.type) === "history") {
3678
- d.properties.format = Z(d.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
3679
- const w = Z((b = d.properties) == null ? void 0 : b.date).utc().format("HHmm") === Z().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm");
3680
- d.properties.showHistoryLabel = w || p === n, d.properties.showNameLabel = p === n, d.properties.name = o;
3677
+ if (((g = p.geometry) == null ? void 0 : g.type) === "LineString" && ((u = p.properties) == null || u.type), ((y = p.geometry) == null ? void 0 : y.type) === "Point" && ((f = p.properties) == null ? void 0 : f.type) === "forecast" && (p.properties.name = o, p.properties.format = Z(p.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((m = p.geometry) == null ? void 0 : m.type) === "Point" && ((v = p.properties) == null ? void 0 : v.type) === "history") {
3678
+ p.properties.format = Z(p.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
3679
+ const w = Z((b = p.properties) == null ? void 0 : b.date).utc().format("HHmm") === Z().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm");
3680
+ p.properties.showHistoryLabel = w || d === n, p.properties.showNameLabel = d === n, p.properties.name = o;
3681
3681
  }
3682
- return d;
3682
+ return p;
3683
3683
  });
3684
3684
  }), this.handleInit();
3685
3685
  },
@@ -3940,10 +3940,10 @@ const Ht = {
3940
3940
  }), y = (/* @__PURE__ */ new Date()).valueOf() - (g + u), console.log("[tropical] add elapsed: ", y, ", total: ", u += y));
3941
3941
  }
3942
3942
  this.handleDrawCircle();
3943
- const d = We.interpolate(this.tropicals, 1);
3944
- this.interpolateData = JSON.parse(JSON.stringify(d));
3945
- const p = this.interpolateData.filter((g) => g.properties.name === "kristy" && g.properties.model === "ecmwf");
3946
- console.log(p), this.handleDateChange();
3943
+ const p = Ne.interpolate(this.tropicals, 1);
3944
+ this.interpolateData = JSON.parse(JSON.stringify(p));
3945
+ const d = this.interpolateData.filter((g) => g.properties.name === "kristy" && g.properties.model === "ecmwf");
3946
+ console.log(d), this.handleDateChange();
3947
3947
  }
3948
3948
  },
3949
3949
  handleClear() {
@@ -3951,11 +3951,11 @@ const Ht = {
3951
3951
  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), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource));
3952
3952
  },
3953
3953
  handleDateChange() {
3954
- var a, e, t, r, i, o, n, s, c, h, d, p, g, u, y, f, m, v, b, w, k, L, D, A, N, O, j, H, oe, se, ne, le, ce, he, de, ee;
3954
+ var a, e, t, r, i, o, n, s, c, h, p, d, g, u, y, f, m, v, b, w, k, L, D, A, O, j, W, H, oe, se, ne, le, ce, he, pe, ee;
3955
3955
  if ((a = this.interpolateMarkers) == null || a.forEach((G) => G == null ? void 0 : G.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
3956
- const G = Z(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), J = this.interpolateData.filter((E) => E.properties.date === G.format() && !E.properties.disabled), pe = this.handleComputePolygons(J), X = C.featureCollection([...J]);
3957
- pe.forEach((E) => {
3958
- X.features.push(E);
3956
+ const G = Z(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), J = this.interpolateData.filter((R) => R.properties.date === G.format() && !R.properties.disabled), de = this.handleComputePolygons(J), X = C.featureCollection([...J]);
3957
+ de.forEach((R) => {
3958
+ X.features.push(R);
3959
3959
  }), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(X) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
3960
3960
  type: "geojson",
3961
3961
  data: X
@@ -3970,10 +3970,10 @@ const Ht = {
3970
3970
  "line-width": 1
3971
3971
  }
3972
3972
  })), this.interpolateMarkers = [];
3973
- for (const E of J)
3974
- if (!E.properties.disabled) {
3973
+ for (const R of J)
3974
+ if (!R.properties.disabled) {
3975
3975
  let U = "#f44336";
3976
- ((s = (n = E.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 || !((h = (c = E.properties) == null ? void 0 : c.wind) != null && h.spd) ? U = "#03f869" : ((p = (d = E.properties) == null ? void 0 : d.wind) == null ? void 0 : p.spd) >= 17.2 && ((u = (g = E.properties) == null ? void 0 : g.wind) == null ? void 0 : u.spd) < 24.5 ? U = "#f2f202" : ((f = (y = E.properties) == null ? void 0 : y.wind) == null ? void 0 : f.spd) >= 24.5 && ((v = (m = E.properties) == null ? void 0 : m.wind) == null ? void 0 : v.spd) < 32.7 ? U = "#ff9100" : ((w = (b = E.properties) == null ? void 0 : b.wind) == null ? void 0 : w.spd) >= 32.7 && ((L = (k = E.properties) == null ? void 0 : k.wind) == null ? void 0 : L.spd) < 41.5 ? U = "#f44336" : ((A = (D = E.properties) == null ? void 0 : D.wind) == null ? void 0 : A.spd) >= 41.5 && ((O = (N = E.properties) == null ? void 0 : N.wind) == null ? void 0 : O.spd) < 51 ? U = "#f903d0" : ((H = (j = E.properties) == null ? void 0 : j.wind) == null ? void 0 : H.spd) >= 51 ? U = "#8702f9" : U = "#f44336";
3976
+ ((s = (n = R.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 || !((h = (c = R.properties) == null ? void 0 : c.wind) != null && h.spd) ? U = "#03f869" : ((d = (p = R.properties) == null ? void 0 : p.wind) == null ? void 0 : d.spd) >= 17.2 && ((u = (g = R.properties) == null ? void 0 : g.wind) == null ? void 0 : u.spd) < 24.5 ? U = "#f2f202" : ((f = (y = R.properties) == null ? void 0 : y.wind) == null ? void 0 : f.spd) >= 24.5 && ((v = (m = R.properties) == null ? void 0 : m.wind) == null ? void 0 : v.spd) < 32.7 ? U = "#ff9100" : ((w = (b = R.properties) == null ? void 0 : b.wind) == null ? void 0 : w.spd) >= 32.7 && ((L = (k = R.properties) == null ? void 0 : k.wind) == null ? void 0 : L.spd) < 41.5 ? U = "#f44336" : ((A = (D = R.properties) == null ? void 0 : D.wind) == null ? void 0 : A.spd) >= 41.5 && ((j = (O = R.properties) == null ? void 0 : O.wind) == null ? void 0 : j.spd) < 51 ? U = "#f903d0" : ((H = (W = R.properties) == null ? void 0 : W.wind) == null ? void 0 : H.spd) >= 51 ? U = "#8702f9" : U = "#f44336";
3977
3977
  const me = `<svg t="1719918955501"
3978
3978
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
3979
3979
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -3989,10 +3989,10 @@ const Ht = {
3989
3989
  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"
3990
3990
  fill="#ffffff" p-id="18386"></path>
3991
3991
  </svg>`, q = document.createElement("div");
3992
- q.className = "hurricane-hourly-marker", q.innerHTML = `<div class="${E.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${me}</div>`;
3993
- const ue = new K.Marker(q).setLngLat(E.geometry.coordinates).addTo(this.map);
3994
- if (this.interpolateMarkers.push(ue), (oe = E.properties) != null && oe.showCircle) {
3995
- const te = { radius: 100, coordinates: E.geometry.coordinates }, ae = { radius: 200, coordinates: E.geometry.coordinates }, ie = { radius: 500, coordinates: E.geometry.coordinates };
3992
+ q.className = "hurricane-hourly-marker", q.innerHTML = `<div class="${R.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${me}</div>`;
3993
+ const ue = new K.Marker(q).setLngLat(R.geometry.coordinates).addTo(this.map);
3994
+ if (this.interpolateMarkers.push(ue), (oe = R.properties) != null && oe.showCircle) {
3995
+ const te = { radius: 100, coordinates: R.geometry.coordinates }, ae = { radius: 200, coordinates: R.geometry.coordinates }, ie = { radius: 500, coordinates: R.geometry.coordinates };
3996
3996
  (se = this.circleSourceData) == null || se.features.push(
3997
3997
  C.circle(te.coordinates, te.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
3998
3998
  ), (ne = this.circleSourceData) == null || ne.features.push(
@@ -4004,10 +4004,10 @@ const Ht = {
4004
4004
  (he = (ce = this.map) == null ? void 0 : ce.getSource(this.circleSource)) == null || he.setData(this.circleSourceData);
4005
4005
  }
4006
4006
  } else
4007
- (de = this.map) != null && de.getSource(this.interpolateSource) && ((ee = this.map) == null || ee.getSource(this.interpolateSource).setData(this.empty));
4007
+ (pe = this.map) != null && pe.getSource(this.interpolateSource) && ((ee = this.map) == null || ee.getSource(this.interpolateSource).setData(this.empty));
4008
4008
  },
4009
4009
  handleClick(a) {
4010
- var o, n, s, c, h, d, p, g;
4010
+ var o, n, s, c, h, p, d, g;
4011
4011
  const e = a.features[0], t = (n = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : n.features.filter(
4012
4012
  (u) => {
4013
4013
  var y;
@@ -4027,8 +4027,8 @@ const Ht = {
4027
4027
  this.activeTropicals = {
4028
4028
  name: (h = e == null ? void 0 : e.properties) == null ? void 0 : h.name,
4029
4029
  forecasts: t.map((u) => u.properties),
4030
- history: (d = r[0]) == null ? void 0 : d.properties,
4031
- showCircle: (g = (p = t[0]) == null ? void 0 : p.properties) == null ? void 0 : g.showCircle
4030
+ history: (p = r[0]) == null ? void 0 : p.properties,
4031
+ showCircle: (g = (d = t[0]) == null ? void 0 : d.properties) == null ? void 0 : g.showCircle
4032
4032
  }, this.showTropicals = !0;
4033
4033
  const i = document.getElementById("active-tropical");
4034
4034
  this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new K.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
@@ -4133,7 +4133,7 @@ const Ht = {
4133
4133
  style: { "justify-content": "flex-start" }
4134
4134
  }, oa = { class: "forecast-models" }, sa = ["onClick"], na = { class: "more" };
4135
4135
  function la(a, e, t, r, i, o) {
4136
- var n, s, c, h, d, p, g, u, y, f, m, v, b, w, k;
4136
+ var n, s, c, h, p, d, g, u, y, f, m, v, b, w, k;
4137
4137
  return Se((x(), _("div", Gt, [
4138
4138
  l("div", Jt, [
4139
4139
  l("div", {
@@ -4142,9 +4142,9 @@ function la(a, e, t, r, i, o) {
4142
4142
  }, ""),
4143
4143
  l("div", Xt, [
4144
4144
  (s = (n = i.activeTropicals) == null ? void 0 : n.history) != null && s.level ? (x(), _("span", qt, S((h = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : h.level) + " , ", 1)) : B("", !0),
4145
- Ne(S((d = i.activeTropicals) == null ? void 0 : d.name), 1)
4145
+ Oe(S((p = i.activeTropicals) == null ? void 0 : p.name), 1)
4146
4146
  ]),
4147
- l("div", Yt, " Last update: " + S(o.computeTime(((g = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : g.updated) || ((f = (y = (u = i.activeTropicals) == null ? void 0 : u.forecasts) == null ? void 0 : y.filter((L) => !L.disabled)[0]) == null ? void 0 : f.date))), 1)
4147
+ l("div", Yt, " Last update: " + S(o.computeTime(((g = (d = i.activeTropicals) == null ? void 0 : d.history) == null ? void 0 : g.updated) || ((f = (y = (u = i.activeTropicals) == null ? void 0 : u.forecasts) == null ? void 0 : y.filter((L) => !L.disabled)[0]) == null ? void 0 : f.date))), 1)
4148
4148
  ]),
4149
4149
  l("div", Qt, [
4150
4150
  l("div", Kt, [
@@ -4163,13 +4163,13 @@ function la(a, e, t, r, i, o) {
4163
4163
  e[4] || (e[4] = l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
4164
4164
  l("div", oa, [
4165
4165
  (x(!0), _(xe, null, _e((k = i.activeTropicals) == null ? void 0 : k.forecasts, (L, D) => {
4166
- var A, N, O, j;
4166
+ var A, O, j, W;
4167
4167
  return x(), _("div", {
4168
4168
  key: D,
4169
4169
  class: M([
4170
4170
  "model",
4171
4171
  L.disabled ? "" : "active",
4172
- D > 0 && D < ((N = (A = i.activeTropicals) == null ? void 0 : A.forecasts) == null ? void 0 : N.length) - 1 && ((j = (O = i.activeTropicals) == null ? void 0 : O.forecasts) == null ? void 0 : j.length) > 2 ? "center-child" : ""
4172
+ D > 0 && D < ((O = (A = i.activeTropicals) == null ? void 0 : A.forecasts) == null ? void 0 : O.length) - 1 && ((W = (j = i.activeTropicals) == null ? void 0 : j.forecasts) == null ? void 0 : W.length) > 2 ? "center-child" : ""
4173
4173
  ]),
4174
4174
  onClick: (H) => o.handleForecastToggle(L)
4175
4175
  }, [
@@ -4194,7 +4194,7 @@ function la(a, e, t, r, i, o) {
4194
4194
  [ke, i.showTropicals && !a.$attrs.hideTropicalsLegend]
4195
4195
  ]);
4196
4196
  }
4197
- const Oe = /* @__PURE__ */ T(Ht, [["render", la], ["__scopeId", "data-v-b521de47"]]);
4197
+ const je = /* @__PURE__ */ T(Ht, [["render", la], ["__scopeId", "data-v-b521de47"]]);
4198
4198
  const ca = {
4199
4199
  name: "IdmPrecip3h",
4200
4200
  props: {
@@ -4238,8 +4238,8 @@ const ca = {
4238
4238
  },
4239
4239
  toggleVersion: {
4240
4240
  handler() {
4241
- var a, e;
4242
- this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
4241
+ var a;
4242
+ this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
4243
4243
  },
4244
4244
  immediate: !0
4245
4245
  }
@@ -4283,7 +4283,7 @@ const ca = {
4283
4283
  [1, "rgba(197,5,58,0.8)"]
4284
4284
  ];
4285
4285
  this.rampColor = this.webgl.setup(this.context, a);
4286
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.fragmentSchema);
4286
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4287
4287
  this.program = e, this.aPositionBuffer = t;
4288
4288
  }
4289
4289
  },
@@ -4297,7 +4297,7 @@ const ca = {
4297
4297
  }
4298
4298
  }
4299
4299
  }, ha = { key: 0 };
4300
- function da(a, e, t, r, i, o) {
4300
+ function pa(a, e, t, r, i, o) {
4301
4301
  var n;
4302
4302
  return (n = t.factor) != null && n.active ? (x(), _("div", ha, [
4303
4303
  l("div", {
@@ -4315,7 +4315,7 @@ function da(a, e, t, r, i, o) {
4315
4315
  ]), 4)
4316
4316
  ])) : B("", !0);
4317
4317
  }
4318
- const pa = /* @__PURE__ */ T(ca, [["render", da], ["__scopeId", "data-v-dec867b8"]]);
4318
+ const da = /* @__PURE__ */ T(ca, [["render", pa], ["__scopeId", "data-v-39b1d5ab"]]);
4319
4319
  const ma = {
4320
4320
  name: "IdmVisibility",
4321
4321
  props: {
@@ -4358,8 +4358,8 @@ const ma = {
4358
4358
  },
4359
4359
  toggleVersion: {
4360
4360
  handler() {
4361
- var a, e;
4362
- this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
4361
+ var a;
4362
+ this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
4363
4363
  },
4364
4364
  immediate: !0
4365
4365
  }
@@ -4397,7 +4397,7 @@ const ma = {
4397
4397
  [1, "rgba(144,144,144,0)"]
4398
4398
  ];
4399
4399
  this.rampColor = this.webgl.setup(this.context, a);
4400
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.fragmentSchema);
4400
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4401
4401
  this.program = e, this.aPositionBuffer = t;
4402
4402
  }
4403
4403
  },
@@ -4427,7 +4427,7 @@ function ya(a, e, t, r, i, o) {
4427
4427
  ]), 4)
4428
4428
  ])) : B("", !0);
4429
4429
  }
4430
- const fa = /* @__PURE__ */ T(ma, [["render", ya], ["__scopeId", "data-v-952dee5c"]]);
4430
+ const fa = /* @__PURE__ */ T(ma, [["render", ya], ["__scopeId", "data-v-b05a7795"]]);
4431
4431
  const ga = {
4432
4432
  name: "IdmWaterTemp",
4433
4433
  props: {
@@ -4471,8 +4471,8 @@ const ga = {
4471
4471
  },
4472
4472
  toggleVersion: {
4473
4473
  handler() {
4474
- var a, e;
4475
- this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
4474
+ var a;
4475
+ this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
4476
4476
  },
4477
4477
  immediate: !0
4478
4478
  }
@@ -4517,7 +4517,7 @@ const ga = {
4517
4517
  //
4518
4518
  ];
4519
4519
  this.rampColor = this.webgl.setup(this.context, a);
4520
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.fragmentSchema);
4520
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4521
4521
  this.program = e, this.aPositionBuffer = t;
4522
4522
  }
4523
4523
  },
@@ -4547,7 +4547,7 @@ function va(a, e, t, r, i, o) {
4547
4547
  ]), 4)
4548
4548
  ])) : B("", !0);
4549
4549
  }
4550
- const La = /* @__PURE__ */ T(ga, [["render", va], ["__scopeId", "data-v-67e5094b"]]);
4550
+ const La = /* @__PURE__ */ T(ga, [["render", va], ["__scopeId", "data-v-7653aa0c"]]);
4551
4551
  const wa = {
4552
4552
  name: "IdmTemp",
4553
4553
  props: {
@@ -4591,8 +4591,8 @@ const wa = {
4591
4591
  },
4592
4592
  toggleVersion: {
4593
4593
  handler() {
4594
- var a, e;
4595
- this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
4594
+ var a;
4595
+ this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
4596
4596
  },
4597
4597
  immediate: !0
4598
4598
  }
@@ -4640,7 +4640,7 @@ const wa = {
4640
4640
  [1, "rgb(138, 43, 10)"]
4641
4641
  ];
4642
4642
  this.rampColor = this.webgl.setup(this.context, a);
4643
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.fragmentSchema);
4643
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4644
4644
  this.program = e, this.aPositionBuffer = t;
4645
4645
  }
4646
4646
  },
@@ -4672,7 +4672,7 @@ function _a(a, e, t, r, i, o) {
4672
4672
  ]), 4)
4673
4673
  ])) : B("", !0);
4674
4674
  }
4675
- const Ca = /* @__PURE__ */ T(wa, [["render", _a], ["__scopeId", "data-v-389ea886"]]);
4675
+ const Ca = /* @__PURE__ */ T(wa, [["render", _a], ["__scopeId", "data-v-33206ed4"]]);
4676
4676
  const Sa = {
4677
4677
  name: "IdmArctic",
4678
4678
  props: {
@@ -4716,8 +4716,8 @@ const Sa = {
4716
4716
  },
4717
4717
  toggleVersion: {
4718
4718
  handler() {
4719
- var a, e;
4720
- this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
4719
+ var a;
4720
+ this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
4721
4721
  },
4722
4722
  immediate: !0
4723
4723
  }
@@ -4756,7 +4756,7 @@ const Sa = {
4756
4756
  // 2m
4757
4757
  ];
4758
4758
  this.rampColor = this.webgl.setup(this.context, a);
4759
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.fragmentSchema);
4759
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4760
4760
  this.program = e, this.aPositionBuffer = t;
4761
4761
  }
4762
4762
  },
@@ -4786,7 +4786,7 @@ function za(a, e, t, r, i, o) {
4786
4786
  ]), 4)
4787
4787
  ])) : B("", !0);
4788
4788
  }
4789
- const Pa = /* @__PURE__ */ T(Sa, [["render", za], ["__scopeId", "data-v-db805141"]]);
4789
+ const Pa = /* @__PURE__ */ T(Sa, [["render", za], ["__scopeId", "data-v-76e7bf8f"]]);
4790
4790
  const Ta = {
4791
4791
  name: "IdmPoint",
4792
4792
  emits: ["point", "more"],
@@ -4874,14 +4874,14 @@ const Ta = {
4874
4874
  }
4875
4875
  }
4876
4876
  }
4877
- }, Ea = {
4877
+ }, Ra = {
4878
4878
  id: "point-meteo",
4879
4879
  class: "point-meteo"
4880
- }, Ra = { class: "meteo-box" }, Ia = { class: "header-box" }, Da = { class: "main" }, Aa = { class: "sub" }, Ma = { class: "main-box" }, Ba = { class: "flex-space" }, Na = { class: "flex-space" }, Wa = { class: "flex-space" }, Oa = { class: "flex-space" }, ja = { class: "flex-space" }, Fa = { class: "flex-space" }, $a = { class: "flex-space" }, Ua = { class: "flex-space" }, Va = { class: "flex-space" };
4880
+ }, Ea = { class: "meteo-box" }, Ia = { class: "header-box" }, Da = { class: "main" }, Aa = { class: "sub" }, Ma = { class: "main-box" }, Ba = { class: "flex-space" }, Oa = { class: "flex-space" }, Na = { class: "flex-space" }, ja = { class: "flex-space" }, Wa = { class: "flex-space" }, Fa = { class: "flex-space" }, $a = { class: "flex-space" }, Ua = { class: "flex-space" }, Va = { class: "flex-space" };
4881
4881
  function Za(a, e, t, r, i, o) {
4882
- var n, s, c, h, d, p, g, u, y, f, m, v, b, w, k, L, D, A, N, O, j, H, oe, se, ne, le, ce, he, de, ee, G, J, pe, X, E, U, me, q, ue, te, ae, ie, fe, ge, be, ve, Le;
4883
- return Se((x(), _("div", Ea, [
4884
- l("div", Ra, [
4882
+ var n, s, c, h, p, d, g, u, y, f, m, v, b, w, k, L, D, A, O, j, W, H, oe, se, ne, le, ce, he, pe, ee, G, J, de, X, R, U, me, q, ue, te, ae, ie, fe, ge, be, ve, Le;
4883
+ return Se((x(), _("div", Ra, [
4884
+ l("div", Ea, [
4885
4885
  l("div", Ia, [
4886
4886
  l("div", {
4887
4887
  class: "iconfont close",
@@ -4893,21 +4893,21 @@ function Za(a, e, t, r, i, o) {
4893
4893
  l("div", Ma, [
4894
4894
  l("div", Ba, [
4895
4895
  e[1] || (e[1] = l("label", null, "Wind", -1)),
4896
- l("span", null, S(((d = (h = t.meteo) == null ? void 0 : h.wind) == null ? void 0 : d.direction) || "-") + "/" + S(o.roundPrecision((g = (p = t.meteo) == null ? void 0 : p.wind) == null ? void 0 : g.kts, 1)) + "[kts]/" + S((y = (u = t.meteo) == null ? void 0 : u.wind) == null ? void 0 : y.scale) + "[BF]/" + S(o.roundPrecision((m = (f = t.meteo) == null ? void 0 : f.gusts) == null ? void 0 : m.kts, 1)) + "[kts]", 1)
4896
+ l("span", null, S(((p = (h = t.meteo) == null ? void 0 : h.wind) == null ? void 0 : p.direction) || "-") + "/" + S(o.roundPrecision((g = (d = t.meteo) == null ? void 0 : d.wind) == null ? void 0 : g.kts, 1)) + "[kts]/" + S((y = (u = t.meteo) == null ? void 0 : u.wind) == null ? void 0 : y.scale) + "[BF]/" + S(o.roundPrecision((m = (f = t.meteo) == null ? void 0 : f.gusts) == null ? void 0 : m.kts, 1)) + "[kts]", 1)
4897
4897
  ]),
4898
- l("div", Na, [
4898
+ l("div", Oa, [
4899
4899
  e[2] || (e[2] = l("label", null, "Wind.Wave", -1)),
4900
- 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((D = (L = (k = t.meteo) == null ? void 0 : k.wave) == null ? void 0 : L.wd) == null ? void 0 : D.height, 1)) + "[m]/" + S(o.roundPrecision((O = (N = (A = t.meteo) == null ? void 0 : A.wave) == null ? void 0 : N.wd) == null ? void 0 : O.period, 1)) + "[s]", 1)
4900
+ 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((D = (L = (k = t.meteo) == null ? void 0 : k.wave) == null ? void 0 : L.wd) == null ? void 0 : D.height, 1)) + "[m]/" + S(o.roundPrecision((j = (O = (A = t.meteo) == null ? void 0 : A.wave) == null ? void 0 : O.wd) == null ? void 0 : j.period, 1)) + "[s]", 1)
4901
4901
  ]),
4902
- l("div", Wa, [
4902
+ l("div", Na, [
4903
4903
  e[3] || (e[3] = l("label", null, "Swell", -1)),
4904
- l("span", null, S(((oe = (H = (j = t.meteo) == null ? void 0 : j.wave) == null ? void 0 : H.swell) == null ? void 0 : oe.direction) || "-") + "/" + S(o.roundPrecision((le = (ne = (se = t.meteo) == null ? void 0 : se.wave) == null ? void 0 : ne.swell) == null ? void 0 : le.height, 1)) + "[m]/" + S(o.roundPrecision((de = (he = (ce = t.meteo) == null ? void 0 : ce.wave) == null ? void 0 : he.swell) == null ? void 0 : de.period, 1)) + "[s]", 1)
4904
+ l("span", null, S(((oe = (H = (W = t.meteo) == null ? void 0 : W.wave) == null ? void 0 : H.swell) == null ? void 0 : oe.direction) || "-") + "/" + S(o.roundPrecision((le = (ne = (se = t.meteo) == null ? void 0 : se.wave) == null ? void 0 : ne.swell) == null ? void 0 : le.height, 1)) + "[m]/" + S(o.roundPrecision((pe = (he = (ce = t.meteo) == null ? void 0 : ce.wave) == null ? void 0 : he.swell) == null ? void 0 : pe.period, 1)) + "[s]", 1)
4905
4905
  ]),
4906
- l("div", Oa, [
4906
+ l("div", ja, [
4907
4907
  e[4] || (e[4] = l("label", null, "Sig.Wave", -1)),
4908
- l("span", null, S(((J = (G = (ee = t.meteo) == null ? void 0 : ee.wave) == null ? void 0 : G.sig) == null ? void 0 : J.direction) || "-") + "/" + S(o.roundPrecision((E = (X = (pe = t.meteo) == null ? void 0 : pe.wave) == null ? void 0 : X.sig) == null ? void 0 : E.height, 1)) + "[m]/" + S(o.roundPrecision((q = (me = (U = t.meteo) == null ? void 0 : U.wave) == null ? void 0 : me.sig) == null ? void 0 : q.period, 1)) + "[s]", 1)
4908
+ l("span", null, S(((J = (G = (ee = t.meteo) == null ? void 0 : ee.wave) == null ? void 0 : G.sig) == null ? void 0 : J.direction) || "-") + "/" + S(o.roundPrecision((R = (X = (de = t.meteo) == null ? void 0 : de.wave) == null ? void 0 : X.sig) == null ? void 0 : R.height, 1)) + "[m]/" + S(o.roundPrecision((q = (me = (U = t.meteo) == null ? void 0 : U.wave) == null ? void 0 : me.sig) == null ? void 0 : q.period, 1)) + "[s]", 1)
4909
4909
  ]),
4910
- l("div", ja, [
4910
+ l("div", Wa, [
4911
4911
  e[5] || (e[5] = l("label", null, "Current", -1)),
4912
4912
  l("span", null, S(((te = (ue = t.meteo) == null ? void 0 : ue.current) == null ? void 0 : te.direction) || "-") + "/" + S(o.roundPrecision((ie = (ae = t.meteo) == null ? void 0 : ae.current) == null ? void 0 : ie.kts, 2)) + "[kts]", 1)
4913
4913
  ]),
@@ -5481,7 +5481,7 @@ const ni = {
5481
5481
  this.showPort = !1, this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
5482
5482
  }
5483
5483
  }
5484
- }, li = { id: "port-info" }, ci = { class: "port-box" }, hi = { class: "flex-start" }, di = { class: "flex-start" }, pi = { class: "flex-start" }, mi = {
5484
+ }, li = { id: "port-info" }, ci = { class: "port-box" }, hi = { class: "flex-start" }, pi = { class: "flex-start" }, di = { class: "flex-start" }, mi = {
5485
5485
  class: "flex-start",
5486
5486
  style: { "align-items": "flex-start" }
5487
5487
  };
@@ -5498,11 +5498,11 @@ function ui(a, e, t, r, i, o) {
5498
5498
  onClick: e[1] || (e[1] = (...n) => o.handleEmit && o.handleEmit(...n))
5499
5499
  }, S(i.form.name), 1)
5500
5500
  ]),
5501
- l("div", di, [
5501
+ l("div", pi, [
5502
5502
  e[3] || (e[3] = l("label", null, "Position : ", -1)),
5503
5503
  l("span", null, S(o.computeLat(i.form.lat)) + ", " + S(o.computeLng(i.form.lng)), 1)
5504
5504
  ]),
5505
- l("div", pi, [
5505
+ l("div", di, [
5506
5506
  e[4] || (e[4] = l("label", null, "LoCode : ", -1)),
5507
5507
  l("span", null, S(i.form.loCode || "-"), 1)
5508
5508
  ]),
@@ -5992,8 +5992,8 @@ const zi = /* @__PURE__ */ T(Si, [["render", ki]]), Pi = {
5992
5992
  function Ti(a, e, t, r, i, o) {
5993
5993
  return x(), _("div");
5994
5994
  }
5995
- const Ei = /* @__PURE__ */ T(Pi, [["render", Ti]]);
5996
- const Ri = {
5995
+ const Ri = /* @__PURE__ */ T(Pi, [["render", Ti]]);
5996
+ const Ei = {
5997
5997
  name: "IdmLatLng",
5998
5998
  props: {
5999
5999
  map: {
@@ -6039,8 +6039,8 @@ const Ri = {
6039
6039
  },
6040
6040
  toggleVersion: {
6041
6041
  handler() {
6042
- var a, e, t;
6043
- this.right = (((a = document.getElementsByClassName("legend-bars")[0]) == null ? void 0 : a.clientWidth) || -10) + (((e = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : e.clientWidth) || 0) + (((t = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : t.clientWidth) || 0) + 20;
6042
+ var a, e;
6043
+ this.right = (((a = document.getElementsByClassName("legend-bars")[0]) == null ? void 0 : a.clientWidth) || -10) + (((e = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : e.clientWidth) || 0) + 20;
6044
6044
  },
6045
6045
  immediate: !0
6046
6046
  }
@@ -6160,7 +6160,7 @@ function Ii(a, e, t, r, i, o) {
6160
6160
  l("span", null, S(i.lngLat.lng.pretty), 1)
6161
6161
  ], 4)) : B("", !0);
6162
6162
  }
6163
- const je = /* @__PURE__ */ T(Ri, [["render", Ii], ["__scopeId", "data-v-7367f59b"]]), Di = {
6163
+ const We = /* @__PURE__ */ T(Ei, [["render", Ii], ["__scopeId", "data-v-b0d1ad79"]]), Di = {
6164
6164
  name: "IdmMeasure",
6165
6165
  props: {
6166
6166
  map: {
@@ -6206,8 +6206,8 @@ const je = /* @__PURE__ */ T(Ri, [["render", Ii], ["__scopeId", "data-v-7367f59b
6206
6206
  (a = this.map) == null || a.getCanvas().addEventListener("keydown", this.handleKeydown), (e = this.map) == null || e.on("mousemove", this.handleMove), (t = this.map) == null || t.on("dblclick", this.handleDblClick), (r = this.map) == null || r.on("click", this.handleClick), (i = this.map) == null || i.on("contextmenu", this.handleContextmenu), this.map && (this.map.getCanvas().style.cursor = "crosshair");
6207
6207
  else {
6208
6208
  (o = this.map) == null || o.getCanvas().removeEventListener("keydown", this.handleKeydown), (n = this.map) == null || n.off("mousemove", this.handleMove), (s = this.map) == null || s.off("dblclick", this.handleDblClick), (c = this.map) == null || c.off("click", this.handleClick), (h = this.map) == null || h.off("contextmenu", this.handleContextmenu);
6209
- for (const d of this.geojson)
6210
- this.handleClear(d, !0);
6209
+ for (const p of this.geojson)
6210
+ this.handleClear(p, !0);
6211
6211
  this.geojson = [], this.map && (this.map.getCanvas().style.cursor = "grab");
6212
6212
  }
6213
6213
  },
@@ -6219,7 +6219,7 @@ const je = /* @__PURE__ */ T(Ri, [["render", Ii], ["__scopeId", "data-v-7367f59b
6219
6219
  }
6220
6220
  },
6221
6221
  handleDrag(a) {
6222
- var t, r, i, o, n, s, c, h, d, p;
6222
+ var t, r, i, o, n, s, c, h, p, d;
6223
6223
  const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
6224
6224
  if ((e == null ? void 0 : e.split("-").length) === 2) {
6225
6225
  const g = this.geojson.filter((m) => m.id === e.split("-")[0])[0];
@@ -6238,13 +6238,13 @@ const je = /* @__PURE__ */ T(Ri, [["render", Ii], ["__scopeId", "data-v-7367f59b
6238
6238
  this.handleTmpPointUpdate(
6239
6239
  g,
6240
6240
  f[y - 1],
6241
- { lng: (h = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, lat: (p = (d = a.target) == null ? void 0 : d._lngLat) == null ? void 0 : p.lat, properties: f[y].properties },
6241
+ { lng: (h = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, lat: (d = (p = a.target) == null ? void 0 : p._lngLat) == null ? void 0 : d.lat, properties: f[y].properties },
6242
6242
  y === f.length - 1 ? void 0 : f[y + 1]
6243
6243
  );
6244
6244
  }
6245
6245
  },
6246
6246
  handleDragEnd(a) {
6247
- var t, r, i, o, n, s, c, h, d, p;
6247
+ var t, r, i, o, n, s, c, h, p, d;
6248
6248
  const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
6249
6249
  if ((e == null ? void 0 : e.split("-").length) === 2) {
6250
6250
  const g = this.geojson.filter((f) => f.id === e.split("-")[0])[0];
@@ -6253,7 +6253,7 @@ const je = /* @__PURE__ */ T(Ri, [["render", Ii], ["__scopeId", "data-v-7367f59b
6253
6253
  return ((m = f._element) == null ? void 0 : m.id) === e;
6254
6254
  })[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]);
6255
6255
  const y = g.features.filter((f) => f.geometry.type === "Point" && f.properties.id == e.split("-")[1])[0];
6256
- y.geometry.coordinates = [(h = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, (p = (d = a.target) == null ? void 0 : d._lngLat) == null ? void 0 : p.lat], g.features = g.features.filter((f) => f.geometry.type === "Point"), this.handlePointUpdate(g);
6256
+ y.geometry.coordinates = [(h = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : h.lng, (d = (p = a.target) == null ? void 0 : p._lngLat) == null ? void 0 : d.lat], g.features = g.features.filter((f) => f.geometry.type === "Point"), this.handlePointUpdate(g);
6257
6257
  }
6258
6258
  },
6259
6259
  handleContextmenu(a) {
@@ -6300,12 +6300,12 @@ const je = /* @__PURE__ */ T(Ri, [["render", Ii], ["__scopeId", "data-v-7367f59b
6300
6300
  let t = 0;
6301
6301
  const r = [];
6302
6302
  for (let i = 1; i < e.length; i++) {
6303
- 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] }, d = Q.calculateDistance(c, h, s.mode === "RL", 2), p = Q.calculateBearing(c, h, s.mode === "RL", 2);
6304
- t = F.roundPrecision(t + d, 2);
6303
+ 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] }, p = Q.calculateDistance(c, h, s.mode === "RL", 2), d = Q.calculateBearing(c, h, s.mode === "RL", 2);
6304
+ t = F.roundPrecision(t + p, 2);
6305
6305
  let g;
6306
6306
  s.mode === "RL" ? g = F.convertToMonotonicLng([c, h]) : g = F.convertToMonotonicLng(Q.interpolateCoordinates(c, h, 200));
6307
6307
  const u = C.lineString(g.map((y) => [y.lng, y.lat]));
6308
- u.properties.dist = d, u.properties.bearing = p, u.properties.total = t, r.push(u);
6308
+ u.properties.dist = p, u.properties.bearing = d, u.properties.total = t, r.push(u);
6309
6309
  }
6310
6310
  e.push(...r), a.total = t;
6311
6311
  }
@@ -6315,19 +6315,19 @@ const je = /* @__PURE__ */ T(Ri, [["render", Ii], ["__scopeId", "data-v-7367f59b
6315
6315
  const i = C.featureCollection([]);
6316
6316
  let o, n;
6317
6317
  if (e) {
6318
- const c = e.properties, h = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, d = { lng: t.lng, lat: t.lat };
6319
- o = Q.calculateDistance(h, d, c.mode === "RL", 2), n = Q.calculateBearing(h, d, c.mode === "RL", 2);
6320
- let p;
6321
- c.mode === "RL" ? p = F.convertToMonotonicLng([h, d]) : p = F.convertToMonotonicLng(Q.interpolateCoordinates(h, d, 200));
6322
- const g = C.lineString(p.map((u) => [u.lng, u.lat]));
6318
+ const c = e.properties, h = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, p = { lng: t.lng, lat: t.lat };
6319
+ o = Q.calculateDistance(h, p, c.mode === "RL", 2), n = Q.calculateBearing(h, p, c.mode === "RL", 2);
6320
+ let d;
6321
+ c.mode === "RL" ? d = F.convertToMonotonicLng([h, p]) : d = F.convertToMonotonicLng(Q.interpolateCoordinates(h, p, 200));
6322
+ const g = C.lineString(d.map((u) => [u.lng, u.lat]));
6323
6323
  g.properties.dist = o, g.properties.bearing = n, i.features.push(g);
6324
6324
  }
6325
6325
  if (r) {
6326
- const c = t.properties, h = t, d = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
6327
- o = Q.calculateDistance(h, d, c.mode === "RL", 2), n = Q.calculateBearing(h, d, c.mode === "RL", 2);
6328
- let p;
6329
- c.mode === "RL" ? p = F.convertToMonotonicLng([h, d]) : p = F.convertToMonotonicLng(Q.interpolateCoordinates(h, d, 200));
6330
- const g = C.lineString(p.map((u) => [u.lng, u.lat]));
6326
+ const c = t.properties, h = t, p = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
6327
+ o = Q.calculateDistance(h, p, c.mode === "RL", 2), n = Q.calculateBearing(h, p, c.mode === "RL", 2);
6328
+ let d;
6329
+ c.mode === "RL" ? d = F.convertToMonotonicLng([h, p]) : d = F.convertToMonotonicLng(Q.interpolateCoordinates(h, p, 200));
6330
+ const g = C.lineString(d.map((u) => [u.lng, u.lat]));
6331
6331
  g.properties.dist = o, g.properties.bearing = n, i.features.push(g);
6332
6332
  }
6333
6333
  this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
@@ -6434,17 +6434,17 @@ const je = /* @__PURE__ */ T(Ri, [["render", Ii], ["__scopeId", "data-v-7367f59b
6434
6434
  c.on("drag", this.handleDrag), c.on("dragend", this.handleDragEnd), this.pointMarkers[a.id] ? this.pointMarkers[a.id].push(c) : this.pointMarkers[a.id] = [c];
6435
6435
  }
6436
6436
  if (a.closed) {
6437
- const n = o.at(-1), c = a.features.filter((d) => d.geometry.type === "LineString").at(-1), h = document.createElement("div");
6437
+ const n = o.at(-1), c = a.features.filter((p) => p.geometry.type === "LineString").at(-1), h = document.createElement("div");
6438
6438
  h.className = "point-summary-marker", h.innerHTML = `<div id="${a.id}" class="marker-close">×</div><div class="marker-label">Tol: ${c.properties.total}nm</div>`, this.closeMarkers[a.id] = new K.Marker(h).setOffset([60, 0]).setLngLat(n.geometry.coordinates).addTo(this.map);
6439
6439
  }
6440
6440
  }
6441
6441
  },
6442
6442
  handleClear(a, e = !0) {
6443
- var o, n, s, c, h, d, p, g, u;
6443
+ var o, n, s, c, h, p, d, g, u;
6444
6444
  const t = `${a.id}-${this.source}`, r = `${a.id}-${this.layer}`, i = `${a.id}-${this.labelLayer}`;
6445
- (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, (d = this.pointMarkers[a.id]) == null || d.forEach((y) => {
6445
+ (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, (p = this.pointMarkers[a.id]) == null || p.forEach((y) => {
6446
6446
  y == null || y.remove();
6447
- }), this.pointMarkers[a.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((g = this.map) != null && g.getSource(t)) && this.map.removeSource(t), e && ((u = this.map) != null && u.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
6447
+ }), this.pointMarkers[a.id] = [], (d = this.tipMarker) == null || d.remove(), this.tipMarker = void 0, e && ((g = this.map) != null && g.getSource(t)) && this.map.removeSource(t), e && ((u = this.map) != null && u.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
6448
6448
  }
6449
6449
  }
6450
6450
  };
@@ -6497,21 +6497,21 @@ const Bi = {
6497
6497
  },
6498
6498
  toggleVersion: {
6499
6499
  handler() {
6500
- var a, e;
6501
- this.right = (((a = document.getElementsByClassName("available-layers-show")[0]) == null ? void 0 : a.clientWidth) || 0) + (((e = document.getElementsByClassName("fleet-list-container")[0]) == null ? void 0 : e.clientWidth) || 0) + 10;
6500
+ var a;
6501
+ this.right = (((a = document.getElementsByClassName("right-bar")[0]) == null ? void 0 : a.clientWidth) || 0) + 10;
6502
6502
  },
6503
6503
  immediate: !0
6504
6504
  }
6505
6505
  },
6506
6506
  methods: {}
6507
- }, Ni = { key: 0 }, Wi = { class: "bar-item" };
6508
- function Oi(a, e, t, r, i, o) {
6509
- return t.enabled && t.permission & i.helper.LEVEL.Supper ? (x(), _("div", Ni, [
6507
+ }, Oi = { key: 0 }, Ni = { class: "bar-item" };
6508
+ function ji(a, e, t, r, i, o) {
6509
+ return t.enabled && t.permission & i.helper.LEVEL.Supper ? (x(), _("div", Oi, [
6510
6510
  l("div", {
6511
6511
  class: "menu-bar-box",
6512
6512
  style: $({ position: "absolute", right: i.right + "px", bottom: t.bottom })
6513
6513
  }, [
6514
- l("div", Wi, [
6514
+ l("div", Ni, [
6515
6515
  l("div", {
6516
6516
  class: M(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
6517
6517
  onClick: e[0] || (e[0] = (n) => i.vendor = "hi")
@@ -6528,7 +6528,7 @@ function Oi(a, e, t, r, i, o) {
6528
6528
  ], 4)
6529
6529
  ])) : B("", !0);
6530
6530
  }
6531
- const ji = /* @__PURE__ */ T(Bi, [["render", Oi], ["__scopeId", "data-v-ab627b83"]]);
6531
+ const Wi = /* @__PURE__ */ T(Bi, [["render", ji], ["__scopeId", "data-v-505264e4"]]);
6532
6532
  const Fi = {
6533
6533
  name: "IdmGLV2",
6534
6534
  components: {
@@ -6538,12 +6538,12 @@ const Fi = {
6538
6538
  IdmCurrents: Tt,
6539
6539
  IdmCurrentParticle: Dt,
6540
6540
  IdmSigWave: Bt,
6541
- IdmSwell: Ot,
6541
+ IdmSwell: jt,
6542
6542
  IdmPrmsl: $t,
6543
6543
  // IdmIceEdge,
6544
6544
  IdmIceberg: Zt,
6545
- IdmTropicals: Oe,
6546
- IdmPrecip3h: pa,
6545
+ IdmTropicals: je,
6546
+ IdmPrecip3h: da,
6547
6547
  IdmVisibility: fa,
6548
6548
  IdmWaterTemp: La,
6549
6549
  IdmTemp: Ca,
@@ -6557,11 +6557,11 @@ const Fi = {
6557
6557
  IdmTimezone: wi,
6558
6558
  IdmVRA: Ci,
6559
6559
  IdmSpecialArea: zi,
6560
- IdmTerminator: Ei,
6561
- IdmLatLng: je,
6560
+ IdmTerminator: Ri,
6561
+ IdmLatLng: We,
6562
6562
  IdmMeasure: Mi,
6563
6563
  IdmPoint: Ha,
6564
- IdmENC: ji
6564
+ IdmENC: Wi
6565
6565
  },
6566
6566
  props: {
6567
6567
  map: {
@@ -6631,10 +6631,10 @@ const Fi = {
6631
6631
  },
6632
6632
  activeWeatherLayers: {
6633
6633
  handler() {
6634
- var a, e, t, r, i, o, n, s, c, h, d, p, g, u, y, f, m, v;
6634
+ var a, e, t, r, i, o, n, s, c, h, p, d, g, u, y, f, m, v;
6635
6635
  if (!this.map)
6636
6636
  return !1;
6637
- this.activeWeatherLayers.length > 0 ? ((e = (a = this.map) == null ? void 0 : a.getLayer(this.enc)) == null || e.setLayoutProperty("visibility", "none"), (r = (t = this.map) == null ? void 0 : t.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || r.setLayoutProperty("visibility", "visible"), (o = this.map) != null && o.getLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer) && ((n = this.map) != null && n.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((c = this.map) == null || c.moveLayer((s = this.viewport) == null ? void 0 : s.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (d = this.map) != null && d.getLayer((h = this.viewport) == null ? void 0 : h.particleLayer) && ((p = this.map) != null && p.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((u = this.map) == null || u.moveLayer((g = this.viewport) == null ? void 0 : g.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : ((f = (y = this.map) == null ? void 0 : y.getLayer(this.enc)) == null || f.setLayoutProperty("visibility", "visible"), (v = (m = this.map) == null ? void 0 : m.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || v.setLayoutProperty("visibility", "none"));
6637
+ this.activeWeatherLayers.length > 0 ? ((e = (a = this.map) == null ? void 0 : a.getLayer(this.enc)) == null || e.setLayoutProperty("visibility", "none"), (r = (t = this.map) == null ? void 0 : t.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || r.setLayoutProperty("visibility", "visible"), (o = this.map) != null && o.getLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer) && ((n = this.map) != null && n.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((c = this.map) == null || c.moveLayer((s = this.viewport) == null ? void 0 : s.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (p = this.map) != null && p.getLayer((h = this.viewport) == null ? void 0 : h.particleLayer) && ((d = this.map) != null && d.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((u = this.map) == null || u.moveLayer((g = this.viewport) == null ? void 0 : g.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : ((f = (y = this.map) == null ? void 0 : y.getLayer(this.enc)) == null || f.setLayoutProperty("visibility", "visible"), (v = (m = this.map) == null ? void 0 : m.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || v.setLayoutProperty("visibility", "none"));
6638
6638
  },
6639
6639
  immediate: !0
6640
6640
  }
@@ -6681,7 +6681,7 @@ const Fi = {
6681
6681
  },
6682
6682
  methods: {
6683
6683
  async fetchWeatherLayers(a = { tropicals: !1 }) {
6684
- var i, o, n, s, c, h, d, p;
6684
+ var i, o, n, s, c, h, p, d;
6685
6685
  const e = (/* @__PURE__ */ new Date()).valueOf();
6686
6686
  let t = 0, r = 0;
6687
6687
  if (this.map) {
@@ -6717,8 +6717,8 @@ const Fi = {
6717
6717
  );
6718
6718
  const k = await Promise.all(w);
6719
6719
  this.weatherLayers = {}, k.map((L) => {
6720
- var N, O, j, H;
6721
- const D = ((N = L == null ? void 0 : L.data) == null ? void 0 : N.data) || (L == null ? void 0 : L.data), A = (j = (O = L == null ? void 0 : L.config) == null ? void 0 : O.headers) == null ? void 0 : j.key;
6720
+ var O, j, W, H;
6721
+ const D = ((O = L == null ? void 0 : L.data) == null ? void 0 : O.data) || (L == null ? void 0 : L.data), A = (W = (j = L == null ? void 0 : L.config) == null ? void 0 : j.headers) == null ? void 0 : W.key;
6722
6722
  A && D && (this.weatherLayers[A] = {
6723
6723
  raw: D,
6724
6724
  type: ((H = L == null ? void 0 : L.config) == null ? void 0 : H.responseType) === "blob" ? "image" : "json",
@@ -6730,8 +6730,8 @@ const Fi = {
6730
6730
  key: "tropicals"
6731
6731
  }
6732
6732
  }).then((L) => {
6733
- var N, O, j;
6734
- const D = We.convert2Geojson(((N = L == null ? void 0 : L.data) == null ? void 0 : N.data) || (L == null ? void 0 : L.data)), A = (j = (O = L == null ? void 0 : L.config) == null ? void 0 : O.headers) == null ? void 0 : j.key;
6733
+ var O, j, W;
6734
+ const D = Ne.convert2Geojson(((O = L == null ? void 0 : L.data) == null ? void 0 : O.data) || (L == null ? void 0 : L.data)), A = (W = (j = L == null ? void 0 : L.config) == null ? void 0 : j.headers) == null ? void 0 : W.key;
6735
6735
  this.weatherLayers[A] = {
6736
6736
  data: D,
6737
6737
  active: !0,
@@ -6752,7 +6752,7 @@ const Fi = {
6752
6752
  };
6753
6753
  }
6754
6754
  if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
6755
- const b = (d = this.weatherLayers["current-direction"]) == null ? void 0 : d.raw, w = (p = this.weatherLayers["current-speed"]) == null ? void 0 : p.raw;
6755
+ const b = (p = this.weatherLayers["current-direction"]) == null ? void 0 : p.raw, w = (d = this.weatherLayers["current-speed"]) == null ? void 0 : d.raw;
6756
6756
  delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
6757
6757
  type: "json",
6758
6758
  direction: b,
@@ -6782,19 +6782,19 @@ const Fi = {
6782
6782
  });
6783
6783
  if (((e = s == null ? void 0 : s.data) == null ? void 0 : e.code) === 0) {
6784
6784
  const c = (t = s == null ? void 0 : s.data) == null ? void 0 : t.data, h = [];
6785
- for (const p in c)
6785
+ for (const d in c)
6786
6786
  h.push(
6787
- re.get(c[p], {
6787
+ re.get(c[d], {
6788
6788
  headers: {
6789
6789
  Authorization: this.token || this.defaultMeteoToken,
6790
- key: p
6790
+ key: d
6791
6791
  }
6792
6792
  })
6793
6793
  );
6794
- const d = await Promise.all(h);
6795
- this.otherLayers = { enc: n }, d.map((p) => {
6794
+ const p = await Promise.all(h);
6795
+ this.otherLayers = { enc: n }, p.map((d) => {
6796
6796
  var y, f, m;
6797
- const g = ((y = p == null ? void 0 : p.data) == null ? void 0 : y.data) || (p == null ? void 0 : p.data), u = (m = (f = p == null ? void 0 : p.config) == null ? void 0 : f.headers) == null ? void 0 : m.key;
6797
+ const g = ((y = d == null ? void 0 : d.data) == null ? void 0 : y.data) || (d == null ? void 0 : d.data), u = (m = (f = d == null ? void 0 : d.config) == null ? void 0 : f.headers) == null ? void 0 : m.key;
6798
6798
  this.otherLayers[u] = g;
6799
6799
  });
6800
6800
  }
@@ -6806,18 +6806,18 @@ const Fi = {
6806
6806
  });
6807
6807
  if (((r = s == null ? void 0 : s.data) == null ? void 0 : r.code) === 0) {
6808
6808
  const c = (i = s == null ? void 0 : s.data) == null ? void 0 : i.data, h = [];
6809
- for (const p in c)
6809
+ for (const d in c)
6810
6810
  h.push(
6811
- re.get(c[p], {
6811
+ re.get(c[d], {
6812
6812
  headers: {
6813
6813
  Authorization: this.token || this.defaultMeteoToken,
6814
- key: p
6814
+ key: d
6815
6815
  }
6816
6816
  })
6817
6817
  );
6818
- (await Promise.all(h)).map((p) => {
6818
+ (await Promise.all(h)).map((d) => {
6819
6819
  var y, f, m;
6820
- const g = ((y = p == null ? void 0 : p.data) == null ? void 0 : y.data) || (p == null ? void 0 : p.data), u = (m = (f = p == null ? void 0 : p.config) == null ? void 0 : f.headers) == null ? void 0 : m.key;
6820
+ const g = ((y = d == null ? void 0 : d.data) == null ? void 0 : y.data) || (d == null ? void 0 : d.data), u = (m = (f = d == null ? void 0 : d.config) == null ? void 0 : f.headers) == null ? void 0 : m.key;
6821
6821
  this.otherLayers[u] = g;
6822
6822
  });
6823
6823
  }
@@ -6839,7 +6839,7 @@ const Fi = {
6839
6839
  this.activeWindLayer = !!this.activeWeatherLayers.find((e) => e.key === "wind"), this.$refs.layer && (this.$refs.layer.activeWeatherLayers = this.activeWeatherLayers);
6840
6840
  },
6841
6841
  handleRampColorInitial() {
6842
- var a, e, t, r, i, o, n, s, c, h, d, p;
6842
+ var a, e, t, r, i, o, n, s, c, h, p, d;
6843
6843
  this.viewport.map.getSource((a = this.viewport) == null ? void 0 : a.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
6844
6844
  type: "canvas",
6845
6845
  canvas: (t = this.viewport) == null ? void 0 : t.rampColorCanvas,
@@ -6863,8 +6863,8 @@ const Fi = {
6863
6863
  }), this.viewport.map.getLayer((h = this.viewport) == null ? void 0 : h.particleLayer) || this.viewport.map.addLayer(
6864
6864
  {
6865
6865
  type: "raster",
6866
- id: (d = this.viewport) == null ? void 0 : d.particleLayer,
6867
- source: (p = this.viewport) == null ? void 0 : p.particleSource,
6866
+ id: (p = this.viewport) == null ? void 0 : p.particleLayer,
6867
+ source: (d = this.viewport) == null ? void 0 : d.particleSource,
6868
6868
  layout: {
6869
6869
  visibility: "none"
6870
6870
  }
@@ -6873,7 +6873,7 @@ const Fi = {
6873
6873
  );
6874
6874
  },
6875
6875
  handleDragEndWithZoom4Json() {
6876
- var h, d, p, g;
6876
+ var h, p, d, g;
6877
6877
  const a = (/* @__PURE__ */ new Date()).valueOf();
6878
6878
  let e = 0, t = 0;
6879
6879
  const r = (h = this.map) == null ? void 0 : h.getBounds(), i = this.map.getZoom(), o = we(r._sw.lng), n = we(r._ne.lng), s = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
@@ -6882,7 +6882,7 @@ const Fi = {
6882
6882
  this.weatherLayers[u].active = !1, this.weatherLayers[u].version = Math.random() + 1;
6883
6883
  let y = [];
6884
6884
  if (["swell", "current"].includes(u)) {
6885
- const f = ((d = this.weatherLayers[u]) == null ? void 0 : d.direction) || {};
6885
+ const f = ((p = this.weatherLayers[u]) == null ? void 0 : p.direction) || {};
6886
6886
  for (const m in f)
6887
6887
  if (m > s && m < c && (!(i <= this.zoom) || m % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6888
6888
  const v = f[m].lng;
@@ -6911,7 +6911,7 @@ const Fi = {
6911
6911
  if (m) {
6912
6912
  if (!m.data) {
6913
6913
  const v = [];
6914
- for (const b in (p = m.raw) == null ? void 0 : p.LineString) {
6914
+ for (const b in (d = m.raw) == null ? void 0 : d.LineString) {
6915
6915
  const w = m.raw.LineString[b];
6916
6916
  for (const k of w)
6917
6917
  v.push(
@@ -7085,8 +7085,8 @@ const Fi = {
7085
7085
  this.handleBeforeLayerToggle();
7086
7086
  },
7087
7087
  handleBeforeLayerToggle() {
7088
- var a, e, t, r, i, o, n, s, c, h, d, p, g;
7089
- (a = this.map) != null && a.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (t = this.otherLayers) != null && t["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (o = this.otherLayers) != null && o["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (s = this.otherLayers) != null && s.pirates || (c = this.otherLayers) != null && c.ports || (h = this.otherLayers) != null && h.enc || (d = this.otherLayers) != null && d["voluntary-reporting-area"] || (p = this.otherLayers) != null && p["eca-zones"] || (g = this.otherLayers) != null && g["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
7088
+ var a, e, t, r, i, o, n, s, c, h, p, d, g;
7089
+ (a = this.map) != null && a.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (t = this.otherLayers) != null && t["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (o = this.otherLayers) != null && o["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (s = this.otherLayers) != null && s.pirates || (c = this.otherLayers) != null && c.ports || (h = this.otherLayers) != null && h.enc || (p = this.otherLayers) != null && p["voluntary-reporting-area"] || (d = this.otherLayers) != null && d["eca-zones"] || (g = this.otherLayers) != null && g["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
7090
7090
  },
7091
7091
  handleDateChange(a = { tropicals: !1 }) {
7092
7092
  this.fetchWeatherLayers(a), this.fetchOtherLayers({ dayNight: !0 });
@@ -7133,8 +7133,8 @@ const Fi = {
7133
7133
  });
7134
7134
  },
7135
7135
  handle3dToggle(a) {
7136
- var e, t, r, i, o, n, s, c, h, d, p, g, u, y, f, m, v, b, w, k;
7137
- a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (s = this.map) != null && s.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((d = this.map) == null || d.moveLayer((h = this.viewport) == null ? void 0 : h.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("zoomend", this.handleDragEndWithZoom4Json), this.map.off("dragend", this.handleDragEndWithZoom4Json), this.map.off("move", this.handleDragEndWithZoom4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.handleDragEndWithZoom4Image(), this.handleDragEndWithZoom4Json(), (g = this.map) != null && g.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((u = this.map) != null && u.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((f = this.map) == null || f.moveLayer((y = this.viewport) == null ? void 0 : y.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (v = this.map) != null && v.getLayer((m = this.viewport) == null ? void 0 : m.particleLayer) && ((b = this.map) != null && b.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((k = this.map) == null || k.moveLayer((w = this.viewport) == null ? void 0 : w.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
7136
+ var e, t, r, i, o, n, s, c, h, p, d, g, u, y, f, m, v, b, w, k;
7137
+ a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (s = this.map) != null && s.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((p = this.map) == null || p.moveLayer((h = this.viewport) == null ? void 0 : h.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("zoomend", this.handleDragEndWithZoom4Json), this.map.off("dragend", this.handleDragEndWithZoom4Json), this.map.off("move", this.handleDragEndWithZoom4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.handleDragEndWithZoom4Image(), this.handleDragEndWithZoom4Json(), (g = this.map) != null && g.getLayer((d = this.viewport) == null ? void 0 : d.rampColorLayer) && ((u = this.map) != null && u.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((f = this.map) == null || f.moveLayer((y = this.viewport) == null ? void 0 : y.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (v = this.map) != null && v.getLayer((m = this.viewport) == null ? void 0 : m.particleLayer) && ((b = this.map) != null && b.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((k = this.map) == null || k.moveLayer((w = this.viewport) == null ? void 0 : w.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
7138
7138
  },
7139
7139
  handleParticle(a) {
7140
7140
  this.particleFactor = a, this.fetchWeatherLayers({ tropicals: !1 });
@@ -7145,10 +7145,10 @@ const Fi = {
7145
7145
  className: "map-gl-home"
7146
7146
  };
7147
7147
  function Ui(a, e, t, r, i, o) {
7148
- var ee, G, J, pe, X, E, U, me, q, ue, te, ae, ie, fe, ge, be, ve, Le, ze, Ee, Re, Ie, De, Ae, Me, Be;
7149
- const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), d = z("IdmPrmsl"), p = z("IdmIceberg"), g = z("IdmTropicals"), u = z("IdmCurrents"), y = z("IdmCurrentParticle"), f = z("IdmWindBarb"), m = z("IdmWindParticle"), v = z("IdmPrecip3h"), b = z("IdmVisibility"), w = z("IdmWaterTemp"), k = z("IdmTemp"), L = z("IdmArctic"), D = z("IdmWarZone"), A = z("IdmGmdssArea"), N = z("IdmEcaZone"), O = z("IdmAlertZone"), j = z("IdmPort"), H = z("IdmLoadLine"), oe = z("IdmTimezone"), se = z("IdmVRA"), ne = z("IdmSpecialArea"), le = z("IdmTerminator"), ce = z("IdmLatLng"), he = z("IdmMeasure"), de = z("IdmPoint");
7148
+ var ee, G, J, de, X, R, U, me, q, ue, te, ae, ie, fe, ge, be, ve, Le, ze, Re, Ee, Ie, De, Ae, Me, Be;
7149
+ const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), p = z("IdmPrmsl"), d = z("IdmIceberg"), g = z("IdmTropicals"), u = z("IdmCurrents"), y = z("IdmCurrentParticle"), f = z("IdmWindBarb"), m = z("IdmWindParticle"), v = z("IdmPrecip3h"), b = z("IdmVisibility"), w = z("IdmWaterTemp"), k = z("IdmTemp"), L = z("IdmArctic"), D = z("IdmWarZone"), A = z("IdmGmdssArea"), O = z("IdmEcaZone"), j = z("IdmAlertZone"), W = z("IdmPort"), H = z("IdmLoadLine"), oe = z("IdmTimezone"), se = z("IdmVRA"), ne = z("IdmSpecialArea"), le = z("IdmTerminator"), ce = z("IdmLatLng"), he = z("IdmMeasure"), pe = z("IdmPoint");
7150
7150
  return t.map ? (x(), _("div", $i, [
7151
- P(n, R({
7151
+ P(n, E({
7152
7152
  ref: "layer",
7153
7153
  map: t.map,
7154
7154
  "toggle-version": i.toggleVersion,
@@ -7162,7 +7162,7 @@ function Ui(a, e, t, r, i, o) {
7162
7162
  on3d: o.handle3dToggle,
7163
7163
  onToggleVersion: e[3] || (e[3] = (Y) => i.toggleVersion = Y)
7164
7164
  }), null, 16, ["map", "toggle-version", "map-projection", "onWeather", "onOther", "on3d"]),
7165
- P(s, R({
7165
+ P(s, E({
7166
7166
  map: t.map,
7167
7167
  token: t.token,
7168
7168
  enabled: (ee = i.otherLayers) == null ? void 0 : ee.enc,
@@ -7170,34 +7170,34 @@ function Ui(a, e, t, r, i, o) {
7170
7170
  }, a.$attrs, {
7171
7171
  onEnc: e[4] || (e[4] = (Y) => i.enc = Y)
7172
7172
  }), null, 16, ["map", "token", "enabled", "toggle-version"]),
7173
- P(c, R({
7173
+ P(c, E({
7174
7174
  map: t.map,
7175
7175
  "sig-wave": (G = i.weatherLayers) == null ? void 0 : G["sig-wave-height"],
7176
7176
  "before-layer": t.beforeLayer
7177
7177
  }, a.$attrs), null, 16, ["map", "sig-wave", "before-layer"]),
7178
- P(h, R({
7178
+ P(h, E({
7179
7179
  map: t.map,
7180
7180
  swell: (J = i.weatherLayers) == null ? void 0 : J.swell,
7181
7181
  "before-layer": t.beforeLayer
7182
7182
  }, a.$attrs), null, 16, ["map", "swell", "before-layer"]),
7183
- P(d, R({
7183
+ P(p, E({
7184
7184
  map: t.map,
7185
- prmsl: (pe = i.weatherLayers) == null ? void 0 : pe.prmsl,
7185
+ prmsl: (de = i.weatherLayers) == null ? void 0 : de.prmsl,
7186
7186
  "before-layer": t.beforeLayer,
7187
7187
  "active-weather-layers": i.activeWeatherLayers
7188
7188
  }, a.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
7189
- P(p, R({
7189
+ P(d, E({
7190
7190
  map: t.map,
7191
7191
  iceberg: (X = i.weatherLayers) == null ? void 0 : X.iceberg,
7192
7192
  "before-layer": t.beforeLayer
7193
7193
  }, a.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
7194
- P(g, R({
7194
+ P(g, E({
7195
7195
  map: t.map,
7196
7196
  date: t.ts,
7197
- tropicals: (E = i.weatherLayers) == null ? void 0 : E.tropicals,
7197
+ tropicals: (R = i.weatherLayers) == null ? void 0 : R.tropicals,
7198
7198
  "before-layer": t.beforeLayer
7199
7199
  }, a.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
7200
- P(u, R({
7200
+ P(u, E({
7201
7201
  map: t.map,
7202
7202
  "map-projection": i.mapProjection,
7203
7203
  current: (U = i.weatherLayers) == null ? void 0 : U.current,
@@ -7207,13 +7207,13 @@ function Ui(a, e, t, r, i, o) {
7207
7207
  "toggle-version": i.toggleVersion,
7208
7208
  "weather-layers": i.weatherLayers
7209
7209
  }, a.$attrs, { onParticle: o.handleParticle }), null, 16, ["map", "map-projection", "current", "before-layer", "show-particle", "margin-bottom", "toggle-version", "weather-layers", "onParticle"]),
7210
- P(y, R({
7210
+ P(y, E({
7211
7211
  viewport: i.viewport,
7212
7212
  factor: (me = i.weatherLayers) == null ? void 0 : me["current-particle"],
7213
7213
  "before-layer": t.beforeLayer,
7214
7214
  "toggle-version": i.toggleVersion
7215
7215
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7216
- P(f, R({
7216
+ P(f, E({
7217
7217
  ref: "windBarb",
7218
7218
  map: t.map,
7219
7219
  "map-projection": i.mapProjection,
@@ -7227,101 +7227,101 @@ function Ui(a, e, t, r, i, o) {
7227
7227
  "weather-layers": i.weatherLayers,
7228
7228
  onParticle: o.handleParticle
7229
7229
  }), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "show-particle", "toggle-version", "weather-layers", "onParticle"]),
7230
- P(m, R({
7230
+ P(m, E({
7231
7231
  viewport: i.viewport,
7232
7232
  factor: (te = i.weatherLayers) == null ? void 0 : te["wind-particle"],
7233
7233
  "before-layer": t.beforeLayer,
7234
7234
  "toggle-version": i.toggleVersion
7235
7235
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7236
- P(v, R({
7236
+ P(v, E({
7237
7237
  viewport: i.viewport,
7238
7238
  factor: (ae = i.weatherLayers) == null ? void 0 : ae.precip3h,
7239
7239
  "before-layer": t.beforeLayer,
7240
7240
  "toggle-version": i.toggleVersion
7241
7241
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7242
- P(b, R({
7242
+ P(b, E({
7243
7243
  viewport: i.viewport,
7244
7244
  factor: (ie = i.weatherLayers) == null ? void 0 : ie.visibility,
7245
7245
  "before-layer": t.beforeLayer,
7246
7246
  "toggle-version": i.toggleVersion
7247
7247
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7248
- P(w, R({
7248
+ P(w, E({
7249
7249
  viewport: i.viewport,
7250
7250
  factor: (fe = i.weatherLayers) == null ? void 0 : fe["water-temp"],
7251
7251
  "before-layer": t.beforeLayer,
7252
7252
  "toggle-version": i.toggleVersion
7253
7253
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7254
- P(k, R({
7254
+ P(k, E({
7255
7255
  viewport: i.viewport,
7256
7256
  factor: (ge = i.weatherLayers) == null ? void 0 : ge.temp,
7257
7257
  "before-layer": t.beforeLayer,
7258
7258
  "toggle-version": i.toggleVersion
7259
7259
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7260
- P(L, R({
7260
+ P(L, E({
7261
7261
  viewport: i.viewport,
7262
7262
  factor: (be = i.weatherLayers) == null ? void 0 : be.arctic,
7263
7263
  "before-layer": t.beforeLayer,
7264
7264
  "toggle-version": i.toggleVersion
7265
7265
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7266
- P(D, R({
7266
+ P(D, E({
7267
7267
  map: t.map,
7268
7268
  zone: (ve = i.otherLayers) == null ? void 0 : ve["war-zones"],
7269
7269
  "before-layer": t.beforeLayer
7270
7270
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7271
- P(A, R({
7271
+ P(A, E({
7272
7272
  map: t.map,
7273
7273
  area: (Le = i.otherLayers) == null ? void 0 : Le["gmdss-areas"],
7274
7274
  "before-layer": t.beforeLayer
7275
7275
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
7276
- P(N, R({
7276
+ P(O, E({
7277
7277
  map: t.map,
7278
7278
  zone: (ze = i.otherLayers) == null ? void 0 : ze["eca-zones"],
7279
7279
  "before-layer": t.beforeLayer
7280
7280
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7281
- P(O, R({
7281
+ P(j, E({
7282
7282
  map: t.map,
7283
- zone: (Ee = i.otherLayers) == null ? void 0 : Ee["alert-zones"],
7283
+ zone: (Re = i.otherLayers) == null ? void 0 : Re["alert-zones"],
7284
7284
  "before-layer": t.beforeLayer
7285
7285
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7286
- P(j, R({
7286
+ P(W, E({
7287
7287
  map: t.map,
7288
- port: (Re = i.otherLayers) == null ? void 0 : Re.ports,
7288
+ port: (Ee = i.otherLayers) == null ? void 0 : Ee.ports,
7289
7289
  "before-layer": t.beforeLayer
7290
7290
  }, a.$attrs), null, 16, ["map", "port", "before-layer"]),
7291
- P(H, R({
7291
+ P(H, E({
7292
7292
  map: t.map,
7293
7293
  line: (Ie = i.otherLayers) == null ? void 0 : Ie["load-lines"],
7294
7294
  "before-layer": t.beforeLayer
7295
7295
  }, a.$attrs), null, 16, ["map", "line", "before-layer"]),
7296
- P(oe, R({
7296
+ P(oe, E({
7297
7297
  map: t.map,
7298
7298
  zone: (De = i.otherLayers) == null ? void 0 : De["time-zones"],
7299
7299
  "before-layer": t.beforeLayer
7300
7300
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7301
- P(se, R({
7301
+ P(se, E({
7302
7302
  map: t.map,
7303
7303
  area: (Ae = i.otherLayers) == null ? void 0 : Ae["voluntary-reporting-area"],
7304
7304
  "before-layer": t.beforeLayer
7305
7305
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
7306
- P(ne, R({
7306
+ P(ne, E({
7307
7307
  map: t.map,
7308
7308
  area: (Me = i.otherLayers) == null ? void 0 : Me["special-area"],
7309
7309
  "before-layer": t.beforeLayer
7310
7310
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
7311
- P(le, R({
7311
+ P(le, E({
7312
7312
  map: t.map,
7313
7313
  area: (Be = i.otherLayers) == null ? void 0 : Be["day-night"]
7314
7314
  }, a.$attrs), null, 16, ["map", "area"]),
7315
- P(ce, R({
7315
+ P(ce, E({
7316
7316
  map: t.map,
7317
7317
  show: i.showCoord,
7318
7318
  "toggle-version": i.toggleVersion
7319
7319
  }, a.$attrs), null, 16, ["map", "show", "toggle-version"]),
7320
- P(he, R({
7320
+ P(he, E({
7321
7321
  map: t.map,
7322
7322
  show: i.showMeasure
7323
7323
  }, a.$attrs), null, 16, ["map", "show"]),
7324
- P(de, R({
7324
+ P(pe, E({
7325
7325
  map: t.map,
7326
7326
  show: i.showPoint,
7327
7327
  meteo: i.meteo
@@ -7330,17 +7330,17 @@ function Ui(a, e, t, r, i, o) {
7330
7330
  }
7331
7331
  const Vi = /* @__PURE__ */ T(Fi, [["render", Ui]]), Ki = {
7332
7332
  install(a) {
7333
- a.component("MapboxGL", Vi), a.component("TropicalGL", Oe), a.component("LatLngGL", je);
7333
+ a.component("MapboxGL", Vi), a.component("TropicalGL", je), a.component("LatLngGL", We);
7334
7334
  }
7335
7335
  };
7336
7336
  export {
7337
- je as LatLngGL,
7337
+ We as LatLngGL,
7338
7338
  Vi as MapboxGL,
7339
7339
  Ki as MapboxGLPlugin,
7340
7340
  gt as MapboxHelper,
7341
7341
  V as ParticleSchema,
7342
- Oe as TropicalGL,
7342
+ je as TropicalGL,
7343
7343
  Te as Viewport,
7344
7344
  ye as WebGL,
7345
- W as WebGLSchema
7345
+ N as WebGLSchema
7346
7346
  };