@idmwx/idmui-gl3 6.2.9 → 6.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5,11 +5,11 @@ import { LayerHelper as Ze, CompanyHelper as qe } from "@idm-plugin/tag";
5
5
  import ee from "moment";
6
6
  import Qe from "axios";
7
7
  import Ye from "moment-timezone";
8
- import { resolveComponent as R, openBlock as m, createElementBlock as g, createElementVNode as o, normalizeStyle as he, createVNode as H, withCtx as Ie, normalizeClass as Z, Fragment as V, renderList as $, toDisplayString as I, createCommentVNode as J, createBlock as gt, createTextVNode as le, withDirectives as Fe, createStaticVNode as yt, vShow as Oe, defineComponent as ft, withModifiers as Ve, mergeProps as X } from "vue";
8
+ import { resolveComponent as R, openBlock as u, createElementBlock as g, createElementVNode as o, normalizeStyle as he, createVNode as H, withCtx as Ie, normalizeClass as Z, Fragment as V, renderList as $, toDisplayString as E, createCommentVNode as J, createBlock as gt, createTextVNode as le, withDirectives as Fe, createStaticVNode as yt, vShow as Oe, defineComponent as ft, withModifiers as Ve, mergeProps as X } from "vue";
9
9
  import * as S from "@turf/turf";
10
10
  import At from "@mapbox/sphericalmercator";
11
- import je from "mapbox-gl";
12
- import { TropicalHelper as ct, LngLatHelper as oe, LaneHelper as Re } from "@idm-plugin/geo";
11
+ import Re from "mapbox-gl";
12
+ import { TropicalHelper as ct, LngLatHelper as oe, LaneHelper as je } from "@idm-plugin/geo";
13
13
  import { TidesAssist as $e, Meteo2Assist as Ke } from "@idm-plugin/meteo";
14
14
  const U = (a, e) => {
15
15
  const t = a.__vccOpts || a;
@@ -301,8 +301,8 @@ const U = (a, e) => {
301
301
  class: "radio-tip"
302
302
  };
303
303
  function aa(a, e, t, r, i, s) {
304
- const n = R("ElTooltip"), l = R("ElRadio"), c = R("ElRadioGroup"), p = R("ElScrollbar");
305
- return m(), g("div", vt, [
304
+ const n = R("ElTooltip"), l = R("ElRadio"), c = R("ElRadioGroup"), d = R("ElScrollbar");
305
+ return u(), g("div", vt, [
306
306
  o("div", {
307
307
  class: "menu-bar-box",
308
308
  style: he({ top: t.top + 10 + "px", right: i.right + "px" })
@@ -397,7 +397,7 @@ function aa(a, e, t, r, i, s) {
397
397
  })
398
398
  ])
399
399
  ], 4),
400
- s.hasCollectedLayers ? (m(), g("div", {
400
+ s.hasCollectedLayers ? (u(), g("div", {
401
401
  key: 0,
402
402
  class: "active-layers",
403
403
  style: he({ right: i.right + "px", bottom: "100px" })
@@ -409,39 +409,39 @@ function aa(a, e, t, r, i, s) {
409
409
  style: { "font-size": "28px", "margin-right": "0" },
410
410
  onClick: e[5] || (e[5] = (...h) => s.toggleAutoActive && s.toggleAutoActive(...h))
411
411
  }, [
412
- i.autoActive ? (m(), g("i", xt, "")) : (m(), g("i", _t, ""))
412
+ i.autoActive ? (u(), g("i", xt, "")) : (u(), g("i", _t, ""))
413
413
  ])
414
414
  ]),
415
- (m(!0), g(V, null, $(i.layers.weather.filter((h) => h.collected), (h) => (m(), g("div", {
415
+ (u(!0), g(V, null, $(i.layers.weather.filter((h) => h.collected), (h) => (u(), g("div", {
416
416
  key: h.key,
417
417
  class: Z(s.computeLayerClass(h, i.activeWeatherLayersCollected))
418
418
  }, [
419
419
  o("div", {
420
420
  class: "checkbox",
421
- onClick: (d) => s.handleWeatherLayerPick(h)
421
+ onClick: (p) => s.handleWeatherLayerPick(h)
422
422
  }, null, 8, Bt),
423
423
  o("span", {
424
424
  class: "name",
425
- onClick: (d) => s.handleWeatherLayerPick(h)
426
- }, I(h.name), 9, It),
427
- h.key === "wind" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(), g("div", Et, [
425
+ onClick: (p) => s.handleWeatherLayerPick(h)
426
+ }, E(h.name), 9, It),
427
+ h.key === "wind" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (u(), g("div", Et, [
428
428
  o("i", {
429
429
  class: Z(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
430
- onClick: e[6] || (e[6] = (d) => s.handleToggleWindParticle())
430
+ onClick: e[6] || (e[6] = (p) => s.handleToggleWindParticle())
431
431
  }, "", 2),
432
432
  o("i", {
433
433
  class: Z(["iconfont sub-layer-icon", i.showWindFeatherCollected ? "active" : ""]),
434
- onClick: e[7] || (e[7] = (d) => s.handleToggleWindFeather())
434
+ onClick: e[7] || (e[7] = (p) => s.handleToggleWindFeather())
435
435
  }, "", 2)
436
436
  ])) : J("", !0),
437
- h.key === "current" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(), g("div", kt, [
437
+ h.key === "current" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (u(), g("div", kt, [
438
438
  o("i", {
439
439
  class: Z(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
440
- onClick: e[8] || (e[8] = (d) => s.handleToggleCurrentParticle())
440
+ onClick: e[8] || (e[8] = (p) => s.handleToggleCurrentParticle())
441
441
  }, "", 2),
442
442
  o("i", {
443
443
  class: Z(["iconfont sub-layer-icon", i.showCurrentIsobandCollected ? "active" : ""]),
444
- onClick: e[9] || (e[9] = (d) => s.handleToggleCurrentIsoband())
444
+ onClick: e[9] || (e[9] = (p) => s.handleToggleCurrentIsoband())
445
445
  }, "", 2)
446
446
  ])) : J("", !0)
447
447
  ], 2))), 128))
@@ -460,7 +460,7 @@ function aa(a, e, t, r, i, s) {
460
460
  onClick: e[10] || (e[10] = (...h) => s.handleMenuToggle && s.handleMenuToggle(...h))
461
461
  }, "")
462
462
  ]),
463
- H(p, { style: { flex: "1" } }, {
463
+ H(d, { style: { flex: "1" } }, {
464
464
  default: Ie(() => [
465
465
  o("div", zt, [
466
466
  o("div", Pt, [
@@ -470,51 +470,51 @@ function aa(a, e, t, r, i, s) {
470
470
  style: { "margin-right": "0" },
471
471
  onClick: e[11] || (e[11] = (...h) => s.toggleAutoActive && s.toggleAutoActive(...h))
472
472
  }, [
473
- i.autoActive ? (m(), g("i", Mt, "")) : (m(), g("i", St, ""))
473
+ i.autoActive ? (u(), g("i", Mt, "")) : (u(), g("i", St, ""))
474
474
  ])
475
475
  ]),
476
476
  o("div", Tt, [
477
- (m(!0), g(V, null, $(i.layers.weather, (h) => (m(), g(V, {
477
+ (u(!0), g(V, null, $(i.layers.weather, (h) => (u(), g(V, {
478
478
  key: h.key
479
479
  }, [
480
- h.hide ? J("", !0) : (m(), g("div", {
480
+ h.hide ? J("", !0) : (u(), g("div", {
481
481
  key: 0,
482
482
  class: Z(s.computeLayerClass(h, i.activeWeatherLayersCollected))
483
483
  }, [
484
484
  o("div", Qt, [
485
485
  o("div", {
486
486
  class: "checkbox",
487
- onClick: (d) => s.handleWeatherLayerPick(h)
487
+ onClick: (p) => s.handleWeatherLayerPick(h)
488
488
  }, null, 8, Ht),
489
489
  o("span", {
490
490
  class: "name",
491
- onClick: (d) => s.handleWeatherLayerPick(h)
492
- }, I(h.name), 9, Nt),
493
- h.key === "wind" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(), g("div", Ft, [
491
+ onClick: (p) => s.handleWeatherLayerPick(h)
492
+ }, E(h.name), 9, Nt),
493
+ h.key === "wind" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (u(), g("div", Ft, [
494
494
  o("i", {
495
495
  class: Z(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
496
- onClick: e[12] || (e[12] = (d) => s.handleToggleWindParticle())
496
+ onClick: e[12] || (e[12] = (p) => s.handleToggleWindParticle())
497
497
  }, "", 2),
498
498
  o("i", {
499
499
  class: Z(["iconfont sub-layer-icon", i.showWindFeatherCollected ? "active" : ""]),
500
- onClick: e[13] || (e[13] = (d) => s.handleToggleWindFeather())
500
+ onClick: e[13] || (e[13] = (p) => s.handleToggleWindFeather())
501
501
  }, "", 2)
502
502
  ])) : J("", !0),
503
- h.key === "current" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(), g("div", Ot, [
503
+ h.key === "current" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (u(), g("div", Ot, [
504
504
  o("i", {
505
505
  class: Z(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
506
- onClick: e[14] || (e[14] = (d) => s.handleToggleCurrentParticle())
506
+ onClick: e[14] || (e[14] = (p) => s.handleToggleCurrentParticle())
507
507
  }, "", 2),
508
508
  o("i", {
509
509
  class: Z(["iconfont sub-layer-icon", i.showCurrentIsobandCollected ? "active" : ""]),
510
- onClick: e[15] || (e[15] = (d) => s.handleToggleCurrentIsoband())
510
+ onClick: e[15] || (e[15] = (p) => s.handleToggleCurrentIsoband())
511
511
  }, "", 2)
512
512
  ])) : J("", !0)
513
513
  ]),
514
514
  o("div", {
515
- onClick: (d) => s.handleWeatherLayerCollect(h)
515
+ onClick: (p) => s.handleWeatherLayerCollect(h)
516
516
  }, [
517
- h.collected ? (m(), g("i", jt, "")) : (m(), g("i", Wt, ""))
517
+ h.collected ? (u(), g("i", jt, "")) : (u(), g("i", Wt, ""))
518
518
  ], 8, Rt)
519
519
  ], 2))
520
520
  ], 64))), 128)),
@@ -530,18 +530,18 @@ function aa(a, e, t, r, i, s) {
530
530
  o("div", Gt, [
531
531
  e[26] || (e[26] = o("div", { class: "layers-title" }, "Other Layers", -1)),
532
532
  o("div", Ut, [
533
- (m(!0), g(V, null, $(i.layers.other, (h) => {
534
- var d;
535
- return m(), g("div", {
533
+ (u(!0), g(V, null, $(i.layers.other, (h) => {
534
+ var p;
535
+ return u(), g("div", {
536
536
  key: h.key,
537
537
  class: Z(["layer flex-between", s.computeLayerClass(h, i.activeOtherLayers)]),
538
- onClick: (A) => s.handleOtherLayerPick(h)
538
+ onClick: (v) => s.handleOtherLayerPick(h)
539
539
  }, [
540
540
  o("div", Kt, [
541
541
  o("div", Xt, [
542
- (d = s.computeLayerClass(h, i.activeOtherLayers)) != null && d.includes("active") ? (m(), g("i", Jt, "")) : (m(), g("i", qt, ""))
542
+ (p = s.computeLayerClass(h, i.activeOtherLayers)) != null && p.includes("active") ? (u(), g("i", Jt, "")) : (u(), g("i", qt, ""))
543
543
  ]),
544
- o("span", null, I(h.name), 1)
544
+ o("span", null, E(h.name), 1)
545
545
  ])
546
546
  ], 10, Yt);
547
547
  }), 128))
@@ -557,16 +557,16 @@ function aa(a, e, t, r, i, s) {
557
557
  style: { width: "180px", "align-items": "flex-start" }
558
558
  }, {
559
559
  default: Ie(() => [
560
- (m(!0), g(V, null, $(i.sourceList, (h, d) => (m(), gt(l, {
560
+ (u(!0), g(V, null, $(i.sourceList, (h, p) => (u(), gt(l, {
561
561
  key: `source${h.name}`,
562
562
  value: h.name
563
563
  }, {
564
564
  default: Ie(() => {
565
- var A, b, E, w, k, _;
565
+ var v, C, _, f, k, B;
566
566
  return [
567
- le(I(h.name) + " ", 1),
568
- d !== 0 ? (m(), g("span", $t, I(h.resolution) + "km " + I(h.length) + "days", 1)) : J("", !0),
569
- d === 0 ? (m(), g("div", ea, "Provides the best forecast")) : (E = (b = (A = h == null ? void 0 : h.update) == null ? void 0 : A.default) == null ? void 0 : b.meta) != null && E.initialisationTime ? (m(), g("div", ta, "Update: " + I(s.computeDateZ((_ = (k = (w = h == null ? void 0 : h.update) == null ? void 0 : w.default) == null ? void 0 : k.meta) == null ? void 0 : _.initialisationTime)), 1)) : J("", !0)
567
+ le(E(h.name) + " ", 1),
568
+ p !== 0 ? (u(), g("span", $t, E(h.resolution) + "km " + E(h.length) + "days", 1)) : J("", !0),
569
+ p === 0 ? (u(), g("div", ea, "Provides the best forecast")) : (_ = (C = (v = h == null ? void 0 : h.update) == null ? void 0 : v.default) == null ? void 0 : C.meta) != null && _.initialisationTime ? (u(), g("div", ta, "Update: " + E(s.computeDateZ((B = (k = (f = h == null ? void 0 : h.update) == null ? void 0 : f.default) == null ? void 0 : k.meta) == null ? void 0 : B.initialisationTime)), 1)) : J("", !0)
570
570
  ];
571
571
  }),
572
572
  _: 2
@@ -667,22 +667,22 @@ const ra = {
667
667
  else {
668
668
  this.map.addSource(this.source, { type: "geojson", data: l });
669
669
  for (let c = 0; c < (this.barbs ?? []).length - 1; c++) {
670
- const p = (this.barbs ?? [])[c] || 0, h = (this.barbs ?? [])[c + 1] || 0, d = p < 10 ? `00${p}kts` : p < 100 ? `0${p}kts` : `${p}kts`;
670
+ const d = (this.barbs ?? [])[c] || 0, h = (this.barbs ?? [])[c + 1] || 0, p = d < 10 ? `00${d}kts` : d < 100 ? `0${d}kts` : `${d}kts`;
671
671
  this.map.addLayer(
672
672
  {
673
- id: d,
673
+ id: p,
674
674
  type: "symbol",
675
675
  filter: [
676
676
  "all",
677
677
  // @ts-ignore
678
- [">=", "spd", p],
678
+ [">=", "spd", d],
679
679
  // @ts-ignore
680
680
  ["<", "spd", h]
681
681
  ],
682
682
  source: this.source,
683
683
  layout: {
684
684
  "symbol-placement": "point",
685
- "icon-image": d,
685
+ "icon-image": p,
686
686
  // mapbox sprite
687
687
  "icon-size": 0.14,
688
688
  "icon-offset": [0, -20],
@@ -775,8 +775,8 @@ class et {
775
775
  * @param [lb.x, lb.y, rt.x, rt.y]
776
776
  */
777
777
  getBoundPixel() {
778
- const e = this.map.getBounds(), t = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [s, n] = this.convertNLng(r[0]), [l, c] = this.convertNLng(i[0]), [p, h] = this.mercator.px([s, r[1]], t), [d, A] = this.mercator.px([l, i[1]], t), b = Math.round(this.mercator.size * Math.pow(2, t) * (n + c));
779
- return [d, A, p + b, h];
778
+ const e = this.map.getBounds(), t = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [s, n] = this.convertNLng(r[0]), [l, c] = this.convertNLng(i[0]), [d, h] = this.mercator.px([s, r[1]], t), [p, v] = this.mercator.px([l, i[1]], t), C = Math.round(this.mercator.size * Math.pow(2, t) * (n + c));
779
+ return [p, v, d + C, h];
780
780
  }
781
781
  /**
782
782
  * [视窗边界像素宽度]
@@ -793,11 +793,11 @@ class et {
793
793
  getWorldCopy(e, t) {
794
794
  const r = 2 ** t, [i, s, n, l] = e.map((h) => ~~(h / (r * 256))), c = [];
795
795
  for (let h = l; h <= s; h++)
796
- for (let d = i; d <= n; d++)
797
- c.push([d, h]);
796
+ for (let p = i; p <= n; p++)
797
+ c.push([p, h]);
798
798
  return c.map((h) => {
799
- const d = 2 ** t * 256;
800
- return [h[0] * d, h[1] * d, d];
799
+ const p = 2 ** t * 256;
800
+ return [h[0] * p, h[1] * p, p];
801
801
  });
802
802
  }
803
803
  resize() {
@@ -879,13 +879,13 @@ class We {
879
879
  if (i) {
880
880
  const s = { program: i }, n = e.getProgramParameter(i, e.ACTIVE_ATTRIBUTES);
881
881
  for (let c = 0; c < n; c++) {
882
- const p = e.getActiveAttrib(i, c);
883
- s[p.name] = e.getAttribLocation(i, p.name);
882
+ const d = e.getActiveAttrib(i, c);
883
+ s[d.name] = e.getAttribLocation(i, d.name);
884
884
  }
885
885
  const l = e.getProgramParameter(i, e.ACTIVE_UNIFORMS);
886
886
  for (let c = 0; c < l; c++) {
887
- const p = e.getActiveUniform(i, c);
888
- s[p.name] = e.getUniformLocation(i, p.name);
887
+ const d = e.getActiveUniform(i, c);
888
+ s[d.name] = e.getUniformLocation(i, d.name);
889
889
  }
890
890
  return s;
891
891
  }
@@ -900,8 +900,8 @@ class We {
900
900
  const l = n.getContext("2d");
901
901
  if (l && e) {
902
902
  const c = l == null ? void 0 : l.createLinearGradient(0, 0, 256, 0);
903
- return t.forEach(([p, h]) => {
904
- c.addColorStop(p, h);
903
+ return t.forEach(([d, h]) => {
904
+ c.addColorStop(d, h);
905
905
  }), l.fillStyle = c, l.fillRect(0, 0, 256, 1), {
906
906
  canvas: n,
907
907
  texture: this.createTexture(
@@ -923,8 +923,8 @@ class We {
923
923
  const n = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, s, r, r), l = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, s, r, r), c = new Float32Array(i);
924
924
  for (let h = 0; h < i; h++)
925
925
  c[h] = h;
926
- const p = this.createDataBuffer(e, "array", c);
927
- return { resolution: r, total: i, texture0: n, texture1: l, indexBuffer: p };
926
+ const d = this.createDataBuffer(e, "array", c);
927
+ return { resolution: r, total: i, texture0: n, texture1: l, indexBuffer: d };
928
928
  }
929
929
  bind(e, t, r) {
930
930
  const i = this.createProgram(e, t, r);
@@ -939,13 +939,13 @@ class We {
939
939
  return {};
940
940
  }
941
941
  bindParticle(e, t, r, i, s, n) {
942
- const l = this.createProgramWrapper(e, t, r), c = this.createProgramWrapper(e, i, s), p = this.createProgramWrapper(e, i, n), h = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), d = e.createFramebuffer();
943
- return { particle: l, screen: c, update: p, quadBuffer: h, frameBuffer: d };
942
+ const l = this.createProgramWrapper(e, t, r), c = this.createProgramWrapper(e, i, s), d = this.createProgramWrapper(e, i, n), h = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), p = e.createFramebuffer();
943
+ return { particle: l, screen: c, update: d, quadBuffer: h, frameBuffer: p };
944
944
  }
945
945
  draw(e, t, r, i, s, n, l) {
946
- var c, p;
946
+ var c, d;
947
947
  if (t && r) {
948
- e.resize(), t == null || t.viewport(0, 0, (c = t == null ? void 0 : t.canvas) == null ? void 0 : c.width, (p = t == null ? void 0 : t.canvas) == null ? void 0 : p.height), t.clearColor(0, 0, 0, 0), t.clear(t.COLOR_BUFFER_BIT | t.DEPTH_BUFFER_BIT);
948
+ e.resize(), t == null || t.viewport(0, 0, (c = t == null ? void 0 : t.canvas) == null ? void 0 : c.width, (d = t == null ? void 0 : t.canvas) == null ? void 0 : d.height), t.clearColor(0, 0, 0, 0), t.clear(t.COLOR_BUFFER_BIT | t.DEPTH_BUFFER_BIT);
949
949
  try {
950
950
  t.useProgram(r);
951
951
  const h = {
@@ -957,9 +957,9 @@ class We {
957
957
  sRange: t.getUniformLocation(r, "u_range_s")
958
958
  };
959
959
  h.resolution && t.uniform2f(h.resolution, t.canvas.width * e.ratio, t.canvas.height * e.ratio), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, i), h.image && t.uniform1i(h.image, 0), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, s), h.color && t.uniform1i(h.color, 1), l != null && l.uvRange && (l != null && l.sRange) && (h.uvRange && t.uniform2f(h.uvRange, l.uvRange[0], l.uvRange[1]), h.sRange && t.uniform2f(h.sRange, l.sRange[0], l.sRange[1])), h.scale && t.uniform1f(h.scale, (l == null ? void 0 : l.scale) || 1);
960
- const d = e.getBoundPixel(), A = e.map.getZoom() + 1, b = e.getWorldCopy(d, A);
961
- for (const E of b) {
962
- const w = (E[0] - d[0]) * e.ratio, k = (E[1] - d[3]) * e.ratio, _ = E[2] * e.ratio, [f, v, u, C] = [w, _ + w, k, _ + k], y = new Float32Array([f, u, v, u, f, C, f, C, v, u, v, C]);
960
+ const p = e.getBoundPixel(), v = e.map.getZoom() + 1, C = e.getWorldCopy(p, v);
961
+ for (const _ of C) {
962
+ const f = (_[0] - p[0]) * e.ratio, k = (_[1] - p[3]) * e.ratio, B = _[2] * e.ratio, [A, w, m, L] = [f, B + f, k, B + k], y = new Float32Array([A, m, w, m, A, L, A, L, w, m, w, L]);
963
963
  t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, y, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
964
964
  }
965
965
  } catch (h) {
@@ -3261,7 +3261,7 @@ const la = {
3261
3261
  }, ha = { key: 0 };
3262
3262
  function ca(a, e, t, r, i, s) {
3263
3263
  var n;
3264
- return (n = t.factor) != null && n.active ? (m(), g("div", ha, [
3264
+ return (n = t.factor) != null && n.active ? (u(), g("div", ha, [
3265
3265
  o("div", {
3266
3266
  class: "legend-bars flex-center",
3267
3267
  style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
@@ -3594,7 +3594,7 @@ const ga = {
3594
3594
  }, ya = { key: 0 };
3595
3595
  function fa(a, e, t, r, i, s) {
3596
3596
  var n;
3597
- return (n = t.factor) != null && n.active ? (m(), g("div", ya, [
3597
+ return (n = t.factor) != null && n.active ? (u(), g("div", ya, [
3598
3598
  o("div", {
3599
3599
  class: "legend-bars flex-center",
3600
3600
  style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
@@ -3738,7 +3738,7 @@ const Aa = /* @__PURE__ */ U(ga, [["render", fa], ["__scopeId", "data-v-c2962e63
3738
3738
  }
3739
3739
  };
3740
3740
  function va(a, e, t, r, i, s) {
3741
- return m(), g("div");
3741
+ return u(), g("div");
3742
3742
  }
3743
3743
  const ba = /* @__PURE__ */ U(wa, [["render", va]]), La = {
3744
3744
  name: "IdmSwell",
@@ -3896,7 +3896,7 @@ const ba = /* @__PURE__ */ U(wa, [["render", va]]), La = {
3896
3896
  }
3897
3897
  };
3898
3898
  function Ca(a, e, t, r, i, s) {
3899
- return m(), g("div");
3899
+ return u(), g("div");
3900
3900
  }
3901
3901
  const xa = /* @__PURE__ */ U(La, [["render", Ca]]), _a = {
3902
3902
  name: "IdmPrmsl",
@@ -4034,7 +4034,7 @@ const xa = /* @__PURE__ */ U(La, [["render", Ca]]), _a = {
4034
4034
  }
4035
4035
  };
4036
4036
  function Ba(a, e, t, r, i, s) {
4037
- return m(), g("div");
4037
+ return u(), g("div");
4038
4038
  }
4039
4039
  const Ia = /* @__PURE__ */ U(_a, [["render", Ba]]);
4040
4040
  const Ea = {
@@ -4141,7 +4141,7 @@ const Ea = {
4141
4141
  }, ka = { key: 0 };
4142
4142
  function Da(a, e, t, r, i, s) {
4143
4143
  var n;
4144
- return (n = t.factor) != null && n.active ? (m(), g("div", ka, [
4144
+ return (n = t.factor) != null && n.active ? (u(), g("div", ka, [
4145
4145
  o("div", {
4146
4146
  class: "legend-bars flex-center",
4147
4147
  style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
@@ -4257,7 +4257,7 @@ const Pa = {
4257
4257
  }, Ma = { key: 0 };
4258
4258
  function Sa(a, e, t, r, i, s) {
4259
4259
  var n;
4260
- return (n = t.factor) != null && n.active ? (m(), g("div", Ma, [
4260
+ return (n = t.factor) != null && n.active ? (u(), g("div", Ma, [
4261
4261
  o("div", {
4262
4262
  class: "legend-bars flex-center",
4263
4263
  style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
@@ -4375,7 +4375,7 @@ const Qa = {
4375
4375
  }, Ha = { key: 0 };
4376
4376
  function Na(a, e, t, r, i, s) {
4377
4377
  var n;
4378
- return (n = t.factor) != null && n.active ? (m(), g("div", Ha, [
4378
+ return (n = t.factor) != null && n.active ? (u(), g("div", Ha, [
4379
4379
  o("div", {
4380
4380
  class: "legend-bars flex-center",
4381
4381
  style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
@@ -4708,19 +4708,19 @@ class ht {
4708
4708
  const i = e.toLowerCase().split(","), s = [], n = [];
4709
4709
  for (const l of i) {
4710
4710
  let c = Xe.find((h) => {
4711
- var d, A, b;
4712
- return ((d = h.models) == null ? void 0 : d.includes(l)) || ((A = h.alias) == null ? void 0 : A.toLowerCase()) === l || ((b = h.name) == null ? void 0 : b.toLowerCase()) === l;
4713
- }), p = Je.find((h) => {
4714
- var d, A, b;
4715
- return ((d = h.models) == null ? void 0 : d.includes(l)) || ((A = h.alias) == null ? void 0 : A.toLowerCase()) === l || ((b = h.name) == null ? void 0 : b.toLowerCase()) === l;
4711
+ var p, v, C;
4712
+ return ((p = h.models) == null ? void 0 : p.includes(l)) || ((v = h.alias) == null ? void 0 : v.toLowerCase()) === l || ((C = h.name) == null ? void 0 : C.toLowerCase()) === l;
4713
+ }), d = Je.find((h) => {
4714
+ var p, v, C;
4715
+ return ((p = h.models) == null ? void 0 : p.includes(l)) || ((v = h.alias) == null ? void 0 : v.toLowerCase()) === l || ((C = h.name) == null ? void 0 : C.toLowerCase()) === l;
4716
4716
  });
4717
4717
  c = c || Xe.find((h) => {
4718
- var d, A;
4719
- return ((d = h.alias) == null ? void 0 : d.toLowerCase()) === ((A = p == null ? void 0 : p.alias) == null ? void 0 : A.toLowerCase());
4720
- }), p = p || Je.find((h) => {
4721
- var d, A;
4722
- return ((d = h.alias) == null ? void 0 : d.toLowerCase()) === ((A = c == null ? void 0 : c.alias) == null ? void 0 : A.toLowerCase());
4723
- }), c = c || Xe[0], p = p || Je[0], s.push((t = c.models) != null && t.includes(l) ? l : c.model), n.push((r = p.models) != null && r.includes(l) ? l : p.model);
4718
+ var p, v;
4719
+ return ((p = h.alias) == null ? void 0 : p.toLowerCase()) === ((v = d == null ? void 0 : d.alias) == null ? void 0 : v.toLowerCase());
4720
+ }), d = d || Je.find((h) => {
4721
+ var p, v;
4722
+ return ((p = h.alias) == null ? void 0 : p.toLowerCase()) === ((v = c == null ? void 0 : c.alias) == null ? void 0 : v.toLowerCase());
4723
+ }), c = c || Xe[0], d = d || Je[0], s.push((t = c.models) != null && t.includes(l) ? l : c.model), n.push((r = d.models) != null && r.includes(l) ? l : d.model);
4724
4724
  }
4725
4725
  return {
4726
4726
  weatherModels: s.join(","),
@@ -4737,8 +4737,8 @@ class ht {
4737
4737
  }), i;
4738
4738
  }
4739
4739
  static pickHourly(e, t) {
4740
- var r, i, s, n, l, c, p, h, d, A, b, E, w, k, _, f, v, u, C, y, L, T, D, F, N, j, G, W, me, re, ue, we, ge, ve, ye, Y, te, fe, pe, Ae, xe, be, _e, B, ze, Le, Pe, Ee, He, ke;
4741
- const se = typeof t == "string" ? ee(t) : t, ce = e == null ? void 0 : e.weather, Q = e == null ? void 0 : e.marine, Be = ee((i = (r = ce == null ? void 0 : ce[0]) == null ? void 0 : r.hourly) == null ? void 0 : i.date).utc(), K = Be.clone().add((l = (n = (s = ce == null ? void 0 : ce[0]) == null ? void 0 : s.hourly) == null ? void 0 : n.time) == null ? void 0 : l.at(0), "h"), q = Be.clone().add((h = (p = (c = ce == null ? void 0 : ce[0]) == null ? void 0 : c.hourly) == null ? void 0 : p.time) == null ? void 0 : h.at(-1), "h"), Me = [];
4740
+ var r, i, s, n, l, c, d, h, p, v, C, _, f, k, B, A, w, m, L, y, b, T, D, F, N, j, G, W, me, re, ue, we, ge, ve, ye, Y, te, fe, pe, Ae, xe, be, _e, I, ze, Le, Pe, Ee, He, ke;
4741
+ const se = typeof t == "string" ? ee(t) : t, ce = e == null ? void 0 : e.weather, Q = e == null ? void 0 : e.marine, Be = ee((i = (r = ce == null ? void 0 : ce[0]) == null ? void 0 : r.hourly) == null ? void 0 : i.date).utc(), K = Be.clone().add((l = (n = (s = ce == null ? void 0 : ce[0]) == null ? void 0 : s.hourly) == null ? void 0 : n.time) == null ? void 0 : l.at(0), "h"), q = Be.clone().add((h = (d = (c = ce == null ? void 0 : ce[0]) == null ? void 0 : c.hourly) == null ? void 0 : d.time) == null ? void 0 : h.at(-1), "h"), Me = [];
4742
4742
  if (se.isBetween(K, q, "millisecond", "[]")) {
4743
4743
  const P = se.utc().diff(K, "h", !1);
4744
4744
  let de, De;
@@ -4747,26 +4747,26 @@ class ht {
4747
4747
  for (const z of ce) {
4748
4748
  const O = z == null ? void 0 : z.hourly;
4749
4749
  for (let Ne = P - (P - 1) % 3; Ne <= P; Ne++)
4750
- Se += (d = O == null ? void 0 : O.precipitation) == null ? void 0 : d.at(Ne);
4750
+ Se += (p = O == null ? void 0 : O.precipitation) == null ? void 0 : p.at(Ne);
4751
4751
  for (let Ne = P - (P - 1) % 6; Ne <= P; Ne++)
4752
- Te += (A = O == null ? void 0 : O.precipitation) == null ? void 0 : A.at(Ne);
4752
+ Te += (v = O == null ? void 0 : O.precipitation) == null ? void 0 : v.at(Ne);
4753
4753
  de = {
4754
- temp: (b = O == null ? void 0 : O.temperature_2m) == null ? void 0 : b.at(P),
4755
- apparentTemp: (E = O == null ? void 0 : O.apparent_temperature) == null ? void 0 : E.at(P),
4756
- rh: (w = O == null ? void 0 : O.relative_humidity_2m) == null ? void 0 : w.at(P),
4754
+ temp: (C = O == null ? void 0 : O.temperature_2m) == null ? void 0 : C.at(P),
4755
+ apparentTemp: (_ = O == null ? void 0 : O.apparent_temperature) == null ? void 0 : _.at(P),
4756
+ rh: (f = O == null ? void 0 : O.relative_humidity_2m) == null ? void 0 : f.at(P),
4757
4757
  dp: (k = O == null ? void 0 : O.dew_point_2m) == null ? void 0 : k.at(P),
4758
4758
  precip: {
4759
- probability: (_ = O == null ? void 0 : O.precipitation_probability) == null ? void 0 : _.at(P),
4760
- sum: (f = O == null ? void 0 : O.precipitation) == null ? void 0 : f.at(P),
4759
+ probability: (B = O == null ? void 0 : O.precipitation_probability) == null ? void 0 : B.at(P),
4760
+ sum: (A = O == null ? void 0 : O.precipitation) == null ? void 0 : A.at(P),
4761
4761
  sum3Hours: Math.round(Se * 100) / 100,
4762
4762
  sum6Hours: Math.round(Te * 100) / 100
4763
4763
  },
4764
- pmsl: (v = O == null ? void 0 : O.pressure_msl) == null ? void 0 : v.at(P),
4765
- psurf: (u = O == null ? void 0 : O.surface_pressure) == null ? void 0 : u.at(P),
4766
- code: (C = O == null ? void 0 : O.weather_code) == null ? void 0 : C.at(P),
4764
+ pmsl: (w = O == null ? void 0 : O.pressure_msl) == null ? void 0 : w.at(P),
4765
+ psurf: (m = O == null ? void 0 : O.surface_pressure) == null ? void 0 : m.at(P),
4766
+ code: (L = O == null ? void 0 : O.weather_code) == null ? void 0 : L.at(P),
4767
4767
  visibility: this.m2nm((y = O == null ? void 0 : O.visibility) == null ? void 0 : y.at(P)),
4768
4768
  wind: {
4769
- speed: (L = O == null ? void 0 : O.wind_speed_10m) == null ? void 0 : L.at(P),
4769
+ speed: (b = O == null ? void 0 : O.wind_speed_10m) == null ? void 0 : b.at(P),
4770
4770
  kts: (T = O == null ? void 0 : O.wind_speed_10m) == null ? void 0 : T.at(P),
4771
4771
  degree: (D = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : D.at(P),
4772
4772
  bearing: ((F = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : F.at(P)) !== null ? (((N = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : N.at(P)) + 180) % 360 : null,
@@ -4806,7 +4806,7 @@ class ht {
4806
4806
  degree: (Ae = z == null ? void 0 : z.wind_wave_direction) == null ? void 0 : Ae.at(P),
4807
4807
  bearing: ((xe = z == null ? void 0 : z.wind_wave_direction) == null ? void 0 : xe.at(P)) !== null ? (((be = z == null ? void 0 : z.wind_wave_direction) == null ? void 0 : be.at(P)) + 180) % 360 : null,
4808
4808
  period: (_e = z == null ? void 0 : z.wind_wave_period) == null ? void 0 : _e.at(P),
4809
- peakPeriod: (B = z == null ? void 0 : z.wind_wave_peak_period) == null ? void 0 : B.at(P)
4809
+ peakPeriod: (I = z == null ? void 0 : z.wind_wave_peak_period) == null ? void 0 : I.at(P)
4810
4810
  }
4811
4811
  },
4812
4812
  current: {
@@ -4824,7 +4824,7 @@ class ht {
4824
4824
  return Me;
4825
4825
  }
4826
4826
  static toLegacy(e) {
4827
- var t, r, i, s, n, l, c, p, h, d;
4827
+ var t, r, i, s, n, l, c, d, h, p;
4828
4828
  return {
4829
4829
  wind: (t = e == null ? void 0 : e.weather) == null ? void 0 : t.wind,
4830
4830
  visibility: (r = e == null ? void 0 : e.weather) == null ? void 0 : r.visibility,
@@ -4834,9 +4834,9 @@ class ht {
4834
4834
  kts: (l = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.wind) == null ? void 0 : l.gusts
4835
4835
  },
4836
4836
  precip: (c = e == null ? void 0 : e.weather) == null ? void 0 : c.precip,
4837
- code: (p = e == null ? void 0 : e.weather) == null ? void 0 : p.code,
4837
+ code: (d = e == null ? void 0 : e.weather) == null ? void 0 : d.code,
4838
4838
  name: (h = e == null ? void 0 : e.weather) == null ? void 0 : h.name,
4839
- url: (d = e == null ? void 0 : e.weather) == null ? void 0 : d.url,
4839
+ url: (p = e == null ? void 0 : e.weather) == null ? void 0 : p.url,
4840
4840
  wave: e == null ? void 0 : e.wave,
4841
4841
  current: e == null ? void 0 : e.current,
4842
4842
  sst: e == null ? void 0 : e.sst,
@@ -4846,7 +4846,7 @@ class ht {
4846
4846
  };
4847
4847
  }
4848
4848
  static pickDaily(e, t) {
4849
- var r, i, s, n, l, c, p, h, d, A, b, E, w, k, _, f, v, u, C, y, L, T, D, F, N, j, G, W, me, re, ue, we, ge, ve, ye, Y, te, fe, pe, Ae, xe, be, _e, B;
4849
+ var r, i, s, n, l, c, d, h, p, v, C, _, f, k, B, A, w, m, L, y, b, T, D, F, N, j, G, W, me, re, ue, we, ge, ve, ye, Y, te, fe, pe, Ae, xe, be, _e, I;
4850
4850
  const ze = typeof t == "string" ? ee(t) : t, Le = e == null ? void 0 : e.weather, Pe = e == null ? void 0 : e.marine, Ee = ee((s = (i = (r = Le == null ? void 0 : Le[0]) == null ? void 0 : r.daily) == null ? void 0 : i.time) == null ? void 0 : s.at(0)), He = ee((c = (l = (n = Le == null ? void 0 : Le[0]) == null ? void 0 : n.daily) == null ? void 0 : l.time) == null ? void 0 : c.at(-1)), ke = [];
4851
4851
  if (ze.isBetween(Ee, He, "millisecond", "[]")) {
4852
4852
  let se, ce;
@@ -4855,28 +4855,28 @@ class ht {
4855
4855
  for (const Be of Le) {
4856
4856
  const K = Be.daily;
4857
4857
  se = {
4858
- code: (p = K.weather_code) == null ? void 0 : p.at(Q),
4858
+ code: (d = K.weather_code) == null ? void 0 : d.at(Q),
4859
4859
  temp: {
4860
4860
  max: (h = K.temperature_2m_max) == null ? void 0 : h.at(Q),
4861
- min: (d = K.temperature_2m_min) == null ? void 0 : d.at(Q),
4862
- mean: (A = K.temperature_2m_mean) == null ? void 0 : A.at(Q)
4861
+ min: (p = K.temperature_2m_min) == null ? void 0 : p.at(Q),
4862
+ mean: (v = K.temperature_2m_mean) == null ? void 0 : v.at(Q)
4863
4863
  },
4864
4864
  apparentTemp: {
4865
- max: (b = K.apparent_temperature_max) == null ? void 0 : b.at(Q),
4866
- min: (E = K.apparent_temperature_min) == null ? void 0 : E.at(Q)
4865
+ max: (C = K.apparent_temperature_max) == null ? void 0 : C.at(Q),
4866
+ min: (_ = K.apparent_temperature_min) == null ? void 0 : _.at(Q)
4867
4867
  },
4868
4868
  precip: {
4869
- sum: (w = K.precipitation_sum) == null ? void 0 : w.at(Q),
4869
+ sum: (f = K.precipitation_sum) == null ? void 0 : f.at(Q),
4870
4870
  rainSum: (k = K.rain_sum) == null ? void 0 : k.at(Q),
4871
- snowfallSum: (_ = K.snowfall_sum) == null ? void 0 : _.at(Q),
4872
- showersSum: (f = K.showers_sum) == null ? void 0 : f.at(Q),
4873
- hours: (v = K.precipitation_hours) == null ? void 0 : v.at(Q),
4874
- probability: (u = K.precipitation_probability_max) == null ? void 0 : u.at(Q)
4871
+ snowfallSum: (B = K.snowfall_sum) == null ? void 0 : B.at(Q),
4872
+ showersSum: (A = K.showers_sum) == null ? void 0 : A.at(Q),
4873
+ hours: (w = K.precipitation_hours) == null ? void 0 : w.at(Q),
4874
+ probability: (m = K.precipitation_probability_max) == null ? void 0 : m.at(Q)
4875
4875
  },
4876
4876
  rh: {
4877
- max: (C = K.relative_humidity_2m_max) == null ? void 0 : C.at(Q),
4877
+ max: (L = K.relative_humidity_2m_max) == null ? void 0 : L.at(Q),
4878
4878
  min: (y = K.relative_humidity_2m_min) == null ? void 0 : y.at(Q),
4879
- mean: (L = K.relative_humidity_2m_mean) == null ? void 0 : L.at(Q)
4879
+ mean: (b = K.relative_humidity_2m_mean) == null ? void 0 : b.at(Q)
4880
4880
  },
4881
4881
  wind: {
4882
4882
  speed: (T = K.wind_speed_10m_max) == null ? void 0 : T.at(Q),
@@ -4918,7 +4918,7 @@ class ht {
4918
4918
  degree: (Ae = q.wind_wave_direction_dominant) == null ? void 0 : Ae.at(Q),
4919
4919
  period: (xe = q.wind_wave_period_max) == null ? void 0 : xe.at(Q),
4920
4920
  peakPeriod: (be = q.wind_wave_peak_period_max) == null ? void 0 : be.at(Q),
4921
- bearing: ((_e = q.wind_wave_direction_dominant) == null ? void 0 : _e.at(Q)) !== null ? (((B = q.wind_wave_direction_dominant) == null ? void 0 : B.at(Q)) + 180) % 360 : null
4921
+ bearing: ((_e = q.wind_wave_direction_dominant) == null ? void 0 : _e.at(Q)) !== null ? (((I = q.wind_wave_direction_dominant) == null ? void 0 : I.at(Q)) + 180) % 360 : null
4922
4922
  }
4923
4923
  }
4924
4924
  }, ce.wave = this.parseWave(ce.wave, se == null ? void 0 : se.wind), Object.assign(ke[Be], ce), Be++;
@@ -5344,6 +5344,10 @@ const Oa = {
5344
5344
  },
5345
5345
  permission: {
5346
5346
  type: Number
5347
+ },
5348
+ fromTropicalReport: {
5349
+ type: Boolean,
5350
+ default: !1
5347
5351
  }
5348
5352
  },
5349
5353
  emits: ["tropical", "tropicalProbability", "tropicalNotification"],
@@ -5370,7 +5374,8 @@ const Oa = {
5370
5374
  empty: S.featureCollection([]),
5371
5375
  circleSource: "circle-source",
5372
5376
  circleSourceData: S.featureCollection([]),
5373
- circleLayer: "tropical-circle-layer"
5377
+ circleLayer: "tropical-circle-layer",
5378
+ labelMarkers: []
5374
5379
  };
5375
5380
  },
5376
5381
  computed: {
@@ -5462,16 +5467,16 @@ const Oa = {
5462
5467
  ));
5463
5468
  },
5464
5469
  handleRender() {
5465
- var a, e, t, r, i, s, n, l, c, p;
5470
+ var a, e, t, r, i, s, n, l, c, d, h;
5466
5471
  if (!this.map)
5467
5472
  setTimeout(() => {
5468
5473
  this.handleRender();
5469
5474
  }, 500);
5470
5475
  else {
5471
5476
  if (this.tropicals) {
5472
- const d = (/* @__PURE__ */ new Date()).valueOf();
5473
- let A = 0, b = 0;
5474
- (a = this.map) != null && a.getSource(this.source) ? ((t = this.map) == null || t.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), b = (/* @__PURE__ */ new Date()).valueOf() - (d + A), console.log("[tropicals] update elapsed: ", b, ", total: ", A += b)) : (this.map.addSource(this.source, {
5477
+ const v = (/* @__PURE__ */ new Date()).valueOf();
5478
+ let C = 0, _ = 0;
5479
+ (a = this.map) != null && a.getSource(this.source) ? ((t = this.map) == null || t.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), _ = (/* @__PURE__ */ new Date()).valueOf() - (v + C), console.log("[tropicals] update elapsed: ", _, ", total: ", C += _)) : (this.map.addSource(this.source, {
5475
5480
  type: "geojson",
5476
5481
  data: (r = this.tropicals) != null && r.active ? (i = this.tropicals) == null ? void 0 : i.data : this.empty
5477
5482
  }), this.map.addLayer({
@@ -5568,9 +5573,9 @@ const Oa = {
5568
5573
  ],
5569
5574
  "text-halo-width": 4
5570
5575
  }
5571
- }), b = (/* @__PURE__ */ new Date()).valueOf() - (d + A), console.log("[tropical] add elapsed: ", b, ", total: ", A += b)), (s = this.map) != null && s.getSource(this.clusterSource) ? ((l = this.map) == null || l.getSource(this.clusterSource).setData((n = this.tropicals) != null && n.active ? this.tropicals.data : this.empty), b = (/* @__PURE__ */ new Date()).valueOf() - (d + A), console.log("[tropical] update elapsed: ", b, ", total: ", A += b)) : (this.map.addSource(this.clusterSource, {
5576
+ }), _ = (/* @__PURE__ */ new Date()).valueOf() - (v + C), console.log("[tropical] add elapsed: ", _, ", total: ", C += _)), (s = this.map) != null && s.getSource(this.clusterSource) ? ((l = this.map) == null || l.getSource(this.clusterSource).setData((n = this.tropicals) != null && n.active ? this.tropicals.data : this.empty), _ = (/* @__PURE__ */ new Date()).valueOf() - (v + C), console.log("[tropical] update elapsed: ", _, ", total: ", C += _)) : (this.map.addSource(this.clusterSource, {
5572
5577
  type: "geojson",
5573
- data: (c = this.tropicals) != null && c.active ? (p = this.tropicals) == null ? void 0 : p.data : this.empty
5578
+ data: (c = this.tropicals) != null && c.active ? (d = this.tropicals) == null ? void 0 : d.data : this.empty
5574
5579
  // cluster: true,
5575
5580
  // clusterRadius: 10, // 聚合半径
5576
5581
  }), this.map.addLayer({
@@ -5608,7 +5613,21 @@ const Oa = {
5608
5613
  "#fff"
5609
5614
  ]
5610
5615
  }
5611
- }), this.map.addLayer({
5616
+ }), this.fromTropicalReport ? (h = this.tropicals.data.features) == null || h.filter((f) => f.geometry.type === "Point" && f.properties.type === "forecast").forEach((f) => {
5617
+ var B, A, w, m, L;
5618
+ const k = document.createElement("div");
5619
+ k.style.cssText = "font-size: 12px; color: #000; background-color: rgba(255, 255, 255, 0.8); border: 2px solid rgba(0, 0, 0, 0.3); padding: 4px 8px; border-radius: 6px;", k.innerHTML = `
5620
+ <div style="">
5621
+ <span>${f.properties.format}</span>
5622
+ <span> [${(B = f.properties.model) == null ? void 0 : B.toUpperCase()}]</span>
5623
+ </div>
5624
+ <div>
5625
+ <span>${((m = (w = (A = f.properties) == null ? void 0 : A.movement) == null ? void 0 : w.kts) == null ? void 0 : m.toFixed(0)) || "-"} bft</span> /
5626
+ <span>${((L = f.properties) == null ? void 0 : L.pressure) || "-"} kPa</span>
5627
+ </div>
5628
+ <div style="position: absolute;width: 24px;margin-left: 96px;margin-top: 12px;height: 2px;transform: rotate(45deg);background-color: rgba(0, 0, 0, 0.3);"></div>
5629
+ `, this.labelMarkers.push(new Re.Marker(k).setLngLat(f.geometry.coordinates).setOffset([-60, -40]).addTo(this.map));
5630
+ }) : this.map.addLayer({
5612
5631
  id: this.pointLabelLayer,
5613
5632
  type: "symbol",
5614
5633
  source: this.clusterSource,
@@ -5685,19 +5704,19 @@ const Oa = {
5685
5704
  "text-halo-color": "#0033ff",
5686
5705
  "text-halo-width": 4
5687
5706
  }
5688
- }), b = (/* @__PURE__ */ new Date()).valueOf() - (d + A), console.log("[tropical] add elapsed: ", b, ", total: ", A += b));
5707
+ }), _ = (/* @__PURE__ */ new Date()).valueOf() - (v + C), console.log("[tropical] add elapsed: ", _, ", total: ", C += _));
5689
5708
  }
5690
5709
  this.handleDrawCircle();
5691
- const h = ct.interpolate(this.tropicals, 1);
5692
- this.interpolateData = JSON.parse(JSON.stringify(h)), this.handleDateChange();
5710
+ const p = ct.interpolate(this.tropicals, 1);
5711
+ this.interpolateData = JSON.parse(JSON.stringify(p)), this.handleDateChange();
5693
5712
  }
5694
5713
  },
5695
5714
  handleClear() {
5696
5715
  var a;
5697
- 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));
5716
+ 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), this.labelMarkers.forEach((e) => e == null ? void 0 : e.remove()), this.labelMarkers = []);
5698
5717
  },
5699
5718
  handleDateChange() {
5700
- var a, e, t, r, i, s, n, l, c, p, h, d, A, b, E, w, k, _, f, v, u, C, y, L, T, D, F, N, j, G, W, me;
5719
+ var a, e, t, r, i, s, n, l, c, d, h, p, v, C, _, f, k, B, A, w, m, L, y, b, T, D, F, N, j, G, W, me;
5701
5720
  if ((a = this.interpolateMarkers) == null || a.forEach((re) => re == null ? void 0 : re.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
5702
5721
  const re = ee(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), ue = ee.utc().add(1, "hour").set({ minute: 0, second: 0, millisecond: 0 }), we = re.isBefore(ue) && ue.diff(re, "h") < 2 ? ue.format() : re.format(), ge = this.interpolateData.filter((Y) => Y.properties.date === we && !Y.properties.disabled), ve = this.handleComputePolygons(ge), ye = S.featureCollection([...ge]);
5703
5722
  ve.forEach((Y) => {
@@ -5719,7 +5738,7 @@ const Oa = {
5719
5738
  for (const Y of ge)
5720
5739
  if (!Y.properties.disabled) {
5721
5740
  let te = "#f44336";
5722
- ((l = (n = Y.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((p = (c = Y.properties) == null ? void 0 : c.wind) != null && p.kts) ? te = "#03f869" : ((d = (h = Y.properties) == null ? void 0 : h.wind) == null ? void 0 : d.kts) >= 32 && ((b = (A = Y.properties) == null ? void 0 : A.wind) == null ? void 0 : b.kts) < 47 ? te = "#f2f202" : ((w = (E = Y.properties) == null ? void 0 : E.wind) == null ? void 0 : w.kts) >= 47 && ((_ = (k = Y.properties) == null ? void 0 : k.wind) == null ? void 0 : _.kts) < 63 ? te = "#ff9100" : ((v = (f = Y.properties) == null ? void 0 : f.wind) == null ? void 0 : v.kts) >= 63 && ((C = (u = Y.properties) == null ? void 0 : u.wind) == null ? void 0 : C.kts) < 79 ? te = "#f44336" : ((L = (y = Y.properties) == null ? void 0 : y.wind) == null ? void 0 : L.kts) >= 79 && ((D = (T = Y.properties) == null ? void 0 : T.wind) == null ? void 0 : D.kts) < 94 ? te = "#f903d0" : ((N = (F = Y.properties) == null ? void 0 : F.wind) == null ? void 0 : N.kts) >= 94 ? te = "#8702f9" : te = "#f44336";
5741
+ ((l = (n = Y.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((d = (c = Y.properties) == null ? void 0 : c.wind) != null && d.kts) ? te = "#03f869" : ((p = (h = Y.properties) == null ? void 0 : h.wind) == null ? void 0 : p.kts) >= 32 && ((C = (v = Y.properties) == null ? void 0 : v.wind) == null ? void 0 : C.kts) < 47 ? te = "#f2f202" : ((f = (_ = Y.properties) == null ? void 0 : _.wind) == null ? void 0 : f.kts) >= 47 && ((B = (k = Y.properties) == null ? void 0 : k.wind) == null ? void 0 : B.kts) < 63 ? te = "#ff9100" : ((w = (A = Y.properties) == null ? void 0 : A.wind) == null ? void 0 : w.kts) >= 63 && ((L = (m = Y.properties) == null ? void 0 : m.wind) == null ? void 0 : L.kts) < 79 ? te = "#f44336" : ((b = (y = Y.properties) == null ? void 0 : y.wind) == null ? void 0 : b.kts) >= 79 && ((D = (T = Y.properties) == null ? void 0 : T.wind) == null ? void 0 : D.kts) < 94 ? te = "#f903d0" : ((N = (F = Y.properties) == null ? void 0 : F.wind) == null ? void 0 : N.kts) >= 94 ? te = "#8702f9" : te = "#f44336";
5723
5742
  const fe = `<svg t="1719918955501"
5724
5743
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
5725
5744
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -5736,42 +5755,42 @@ const Oa = {
5736
5755
  fill="#ffffff" p-id="18386"></path>
5737
5756
  </svg>`, pe = document.createElement("div");
5738
5757
  pe.className = "hurricane-hourly-marker", pe.innerHTML = `<div class="${Y.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${fe}</div>`;
5739
- const Ae = new je.Marker(pe).setLngLat(Y.geometry.coordinates).addTo(this.map);
5758
+ const Ae = new Re.Marker(pe).setLngLat(Y.geometry.coordinates).addTo(this.map);
5740
5759
  this.interpolateMarkers.push(Ae), (G = (j = this.map) == null ? void 0 : j.getSource(this.circleSource)) == null || G.setData(this.circleSourceData);
5741
5760
  }
5742
5761
  } else
5743
5762
  (W = this.map) != null && W.getSource(this.interpolateSource) && ((me = this.map) == null || me.getSource(this.interpolateSource).setData(this.empty));
5744
5763
  },
5745
5764
  handleClick(a) {
5746
- var s, n, l, c, p, h, d, A;
5765
+ var s, n, l, c, d, h, p, v;
5747
5766
  const e = a.features[0], t = (n = (s = this.tropicals) == null ? void 0 : s.data) == null ? void 0 : n.features.filter(
5748
- (b) => {
5749
- var E;
5750
- return b.geometry.type === "LineString" && b.properties.type === "forecast" && b.properties.name === ((E = e == null ? void 0 : e.properties) == null ? void 0 : E.name);
5767
+ (C) => {
5768
+ var _;
5769
+ return C.geometry.type === "LineString" && C.properties.type === "forecast" && C.properties.name === ((_ = e == null ? void 0 : e.properties) == null ? void 0 : _.name);
5751
5770
  }
5752
5771
  ), r = (c = (l = this.tropicals) == null ? void 0 : l.data) == null ? void 0 : c.features.filter(
5753
- (b) => {
5754
- var E;
5755
- return b.geometry.type === "LineString" && b.properties.type === "history" && b.properties.name === ((E = e == null ? void 0 : e.properties) == null ? void 0 : E.name);
5772
+ (C) => {
5773
+ var _;
5774
+ return C.geometry.type === "LineString" && C.properties.type === "history" && C.properties.name === ((_ = e == null ? void 0 : e.properties) == null ? void 0 : _.name);
5756
5775
  }
5757
5776
  );
5758
5777
  this.activeTropicals = {
5759
- name: (p = e == null ? void 0 : e.properties) == null ? void 0 : p.name,
5760
- forecasts: t.map((b) => b.properties),
5778
+ name: (d = e == null ? void 0 : e.properties) == null ? void 0 : d.name,
5779
+ forecasts: t.map((C) => C.properties),
5761
5780
  history: (h = r[0]) == null ? void 0 : h.properties,
5762
- showCircle: (A = (d = t[0]) == null ? void 0 : d.properties) == null ? void 0 : A.showCircle
5781
+ showCircle: (v = (p = t[0]) == null ? void 0 : p.properties) == null ? void 0 : v.showCircle
5763
5782
  }, this.showTropicals = !0;
5764
5783
  const i = document.getElementById("idm-tropical-gl3");
5765
- this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new je.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
5784
+ this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new Re.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
5766
5785
  },
5767
5786
  handleForecastToggle(a) {
5768
5787
  var r, i, s, n, l, c;
5769
5788
  a.disabled = !a.disabled;
5770
5789
  const e = `${a.name}-${a.model}`, t = (i = (r = this.map) == null ? void 0 : r.getSource(this.source)._data) == null ? void 0 : i.features;
5771
- t.forEach((p) => {
5772
- p.properties.category === e && (p.properties.disabled = a.disabled);
5773
- }), this.interpolateData.forEach((p) => {
5774
- p.properties.category === e && (p.properties.disabled = a.disabled);
5790
+ t.forEach((d) => {
5791
+ d.properties.category === e && (d.properties.disabled = a.disabled);
5792
+ }), this.interpolateData.forEach((d) => {
5793
+ d.properties.category === e && (d.properties.disabled = a.disabled);
5775
5794
  }), (n = (s = this.map) == null ? void 0 : s.getSource(this.source)) == null || n.setData(S.featureCollection(t)), (c = (l = this.map) == null ? void 0 : l.getSource(this.clusterSource)) == null || c.setData(S.featureCollection(t)), this.handleDateChange();
5776
5795
  },
5777
5796
  handleStrikeProbability(a) {
@@ -5873,49 +5892,49 @@ const Oa = {
5873
5892
  style: { "justify-content": "flex-start" }
5874
5893
  }, ai = { class: "forecast-models" }, ii = ["onClick"], ri = { class: "more" };
5875
5894
  function si(a, e, t, r, i, s) {
5876
- var n, l, c, p, h, d, A, b, E, w, k, _, f, v, u, C, y, L, T;
5877
- return Fe((m(), g("div", Ra, [
5895
+ var n, l, c, d, h, p, v, C, _, f, k, B, A, w, m, L, y, b, T;
5896
+ return Fe((u(), g("div", Ra, [
5878
5897
  o("div", ja, [
5879
5898
  o("div", {
5880
5899
  class: "iconfont close-btn",
5881
5900
  onClick: e[0] || (e[0] = (D) => i.showTropicals = !1)
5882
5901
  }, ""),
5883
5902
  o("div", Wa, [
5884
- (l = (n = i.activeTropicals) == null ? void 0 : n.history) != null && l.level ? (m(), g("span", Ga, I((p = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : p.level) + " , ", 1)) : J("", !0),
5885
- le(I((h = i.activeTropicals) == null ? void 0 : h.name), 1)
5903
+ (l = (n = i.activeTropicals) == null ? void 0 : n.history) != null && l.level ? (u(), g("span", Ga, E((d = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : d.level) + " , ", 1)) : J("", !0),
5904
+ le(E((h = i.activeTropicals) == null ? void 0 : h.name), 1)
5886
5905
  ]),
5887
- o("div", Ua, " Last update: " + I(s.computeTime(((A = (d = i.activeTropicals) == null ? void 0 : d.history) == null ? void 0 : A.updated) || ((w = (E = (b = i.activeTropicals) == null ? void 0 : b.forecasts) == null ? void 0 : E.filter((D) => !D.disabled)[0]) == null ? void 0 : w.date))), 1)
5906
+ o("div", Ua, " Last update: " + E(s.computeTime(((v = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : v.updated) || ((f = (_ = (C = i.activeTropicals) == null ? void 0 : C.forecasts) == null ? void 0 : _.filter((D) => !D.disabled)[0]) == null ? void 0 : f.date))), 1)
5888
5907
  ]),
5889
5908
  o("div", Ya, [
5890
5909
  o("div", Ka, [
5891
5910
  o("div", Xa, [
5892
5911
  o("div", Ja, [
5893
5912
  e[3] || (e[3] = o("label", null, "Wind speed : ", -1)),
5894
- o("span", null, I(((_ = (k = i.activeTropicals) == null ? void 0 : k.history) == null ? void 0 : _.kts) || "-") + " [kts]", 1),
5895
- o("span", null, ", BF " + I(s.computeBF(((v = (f = i.activeTropicals) == null ? void 0 : f.history) == null ? void 0 : v.kts) || 0)), 1)
5913
+ o("span", null, E(((B = (k = i.activeTropicals) == null ? void 0 : k.history) == null ? void 0 : B.kts) || "-") + " [kts]", 1),
5914
+ o("span", null, ", BF " + E(s.computeBF(((w = (A = i.activeTropicals) == null ? void 0 : A.history) == null ? void 0 : w.kts) || 0)), 1)
5896
5915
  ]),
5897
5916
  o("div", qa, [
5898
5917
  e[4] || (e[4] = o("label", null, "Pressure : ", -1)),
5899
- o("span", null, I(((C = (u = i.activeTropicals) == null ? void 0 : u.history) == null ? void 0 : C.pressure) || "-") + " [hPa]", 1)
5918
+ o("span", null, E(((L = (m = i.activeTropicals) == null ? void 0 : m.history) == null ? void 0 : L.pressure) || "-") + " [hPa]", 1)
5900
5919
  ])
5901
5920
  ]),
5902
5921
  o("div", Va, [
5903
5922
  o("div", Za, [
5904
5923
  e[5] || (e[5] = o("label", null, "Move Speed: ", -1)),
5905
- o("span", null, I((y = s.computeMovement(i.activeTropicals)) == null ? void 0 : y.kts) + " [kts]", 1)
5924
+ o("span", null, E((y = s.computeMovement(i.activeTropicals)) == null ? void 0 : y.kts) + " [kts]", 1)
5906
5925
  ]),
5907
5926
  o("div", $a, [
5908
5927
  e[6] || (e[6] = o("label", null, "Move Dir: ", -1)),
5909
- o("span", null, I((L = s.computeMovement(i.activeTropicals)) == null ? void 0 : L.deg) + " [°]", 1)
5928
+ o("span", null, E((b = s.computeMovement(i.activeTropicals)) == null ? void 0 : b.deg) + " [°]", 1)
5910
5929
  ])
5911
5930
  ]),
5912
5931
  o("div", ei, [
5913
5932
  o("div", ti, [
5914
5933
  e[7] || (e[7] = o("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
5915
5934
  o("div", ai, [
5916
- (m(!0), g(V, null, $((T = i.activeTropicals) == null ? void 0 : T.forecasts, (D, F) => {
5935
+ (u(!0), g(V, null, $((T = i.activeTropicals) == null ? void 0 : T.forecasts, (D, F) => {
5917
5936
  var N, j, G, W;
5918
- return m(), g("div", {
5937
+ return u(), g("div", {
5919
5938
  key: F,
5920
5939
  class: Z([
5921
5940
  "model",
@@ -5926,7 +5945,7 @@ function si(a, e, t, r, i, s) {
5926
5945
  }, [
5927
5946
  o("span", {
5928
5947
  class: Z(D.model)
5929
- }, I(D.model), 3)
5948
+ }, E(D.model), 3)
5930
5949
  ], 10, ii);
5931
5950
  }), 128))
5932
5951
  ])
@@ -5935,7 +5954,7 @@ function si(a, e, t, r, i, s) {
5935
5954
  e[8] || (e[8] = yt('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);"></div><div class="row" style="padding:2px 10px;"><div class="legend"><div class="icon td"></div><div class="label">TD</div></div><div class="legend"><div class="icon ts"></div><div class="label">TS</div></div><div class="legend"><div class="icon sts"></div><div class="label">STS</div></div><div class="legend"><div class="icon ty"></div><div class="label">TY</div></div><div class="legend"><div class="icon sty"></div><div class="label">STY</div></div><div class="legend"><div class="icon supper-ty"></div><div class="label">Super TY</div></div></div><div class="row" style="padding:2px 10px;"><div class="legend"><div class="icon history"></div><div class="label">History</div></div><div class="legend"><div class="icon r7"></div><div class="label">35kts Radii</div></div><div class="legend"><div class="icon r10"></div><div class="label">50kts Radii</div></div></div>', 3))
5936
5955
  ]),
5937
5956
  o("div", ri, [
5938
- t.permission & i.helper.LEVEL.Supper ? (m(), g("div", {
5957
+ t.permission & i.helper.LEVEL.Supper ? (u(), g("div", {
5939
5958
  key: 0,
5940
5959
  class: "button",
5941
5960
  style: { "margin-right": "10px" },
@@ -6056,7 +6075,7 @@ const oi = {
6056
6075
  }, ni = { key: 0 };
6057
6076
  function li(a, e, t, r, i, s) {
6058
6077
  var n;
6059
- return (n = t.factor) != null && n.active ? (m(), g("div", ni, [
6078
+ return (n = t.factor) != null && n.active ? (u(), g("div", ni, [
6060
6079
  o("div", {
6061
6080
  class: "legend-bars flex-center",
6062
6081
  style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
@@ -6170,7 +6189,7 @@ const ci = {
6170
6189
  }, di = { key: 0 };
6171
6190
  function pi(a, e, t, r, i, s) {
6172
6191
  var n;
6173
- return (n = t.factor) != null && n.active ? (m(), g("div", di, [
6192
+ return (n = t.factor) != null && n.active ? (u(), g("div", di, [
6174
6193
  o("div", {
6175
6194
  class: "legend-bars flex-center",
6176
6195
  style: he([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
@@ -6290,7 +6309,7 @@ const ui = {
6290
6309
  }, gi = { key: 0 };
6291
6310
  function yi(a, e, t, r, i, s) {
6292
6311
  var n;
6293
- return (n = t.factor) != null && n.active ? (m(), g("div", gi, [
6312
+ return (n = t.factor) != null && n.active ? (u(), g("div", gi, [
6294
6313
  o("div", {
6295
6314
  class: "legend-bars flex-center",
6296
6315
  style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
@@ -6413,7 +6432,7 @@ const Ai = {
6413
6432
  }, wi = { key: 0 };
6414
6433
  function vi(a, e, t, r, i, s) {
6415
6434
  var n;
6416
- return (n = t.factor) != null && n.active ? (m(), g("div", wi, [
6435
+ return (n = t.factor) != null && n.active ? (u(), g("div", wi, [
6417
6436
  o("div", {
6418
6437
  class: "legend-bars flex-center",
6419
6438
  style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
@@ -6435,7 +6454,7 @@ var Li = /* @__PURE__ */ ft({
6435
6454
  name: "LocationFilled",
6436
6455
  __name: "location-filled",
6437
6456
  setup(a) {
6438
- return (e, t) => (m(), g("svg", {
6457
+ return (e, t) => (u(), g("svg", {
6439
6458
  xmlns: "http://www.w3.org/2000/svg",
6440
6459
  viewBox: "0 0 1024 1024"
6441
6460
  }, [
@@ -6643,9 +6662,9 @@ const _i = {
6643
6662
  (n == null ? void 0 : n.data.code) === 0 && (this.meteoData = n == null ? void 0 : n.data.data, this.loading = !1);
6644
6663
  },
6645
6664
  initTableData(a) {
6646
- var e, t, r, i, s, n, l, c, p;
6647
- this.clearTable(), this.positionGmt = (t = (e = a == null ? void 0 : a.weather) == null ? void 0 : e[0]) == null ? void 0 : t.timezone, this.positionOffset = (i = (r = a == null ? void 0 : a.weather) == null ? void 0 : r[0]) == null ? void 0 : i.offset, this.localDate = (n = (s = Ye(this.ts)) == null ? void 0 : s.tz(this.positionGmt)) == null ? void 0 : n.format("MMM-DD/HHmm[LT]"), this.currentHourData = (l = Ke.pickHourly(a, ee(this.ts))) == null ? void 0 : l[0], ((p = (c = this.currentHourData) == null ? void 0 : c.weather) == null ? void 0 : p.isDay) === 0 ? this.isDay = !1 : this.isDay = !0, this.$nextTick(() => {
6648
- var d, A, b, E, w, k, _, f, v, u, C, y, L, T, D, F, N, j, G, W, me, re, ue, we, ge, ve, ye, Y, te, fe, pe, Ae, xe;
6665
+ var e, t, r, i, s, n, l, c, d;
6666
+ this.clearTable(), this.positionGmt = (t = (e = a == null ? void 0 : a.weather) == null ? void 0 : e[0]) == null ? void 0 : t.timezone, this.positionOffset = (i = (r = a == null ? void 0 : a.weather) == null ? void 0 : r[0]) == null ? void 0 : i.offset, this.localDate = (n = (s = Ye(this.ts)) == null ? void 0 : s.tz(this.positionGmt)) == null ? void 0 : n.format("MMM-DD/HHmm[LT]"), this.currentHourData = (l = Ke.pickHourly(a, ee(this.ts))) == null ? void 0 : l[0], ((d = (c = this.currentHourData) == null ? void 0 : c.weather) == null ? void 0 : d.isDay) === 0 ? this.isDay = !1 : this.isDay = !0, this.$nextTick(() => {
6667
+ var p, v, C, _, f, k, B, A, w, m, L, y, b, T, D, F, N, j, G, W, me, re, ue, we, ge, ve, ye, Y, te, fe, pe, Ae, xe;
6649
6668
  if (!document.getElementById("meteoMainBox"))
6650
6669
  return !1;
6651
6670
  if (!this.currentHourData)
@@ -6653,8 +6672,8 @@ const _i = {
6653
6672
  for (let be = 0; be < 8; be++) {
6654
6673
  const _e = Ye(this.ts).tz(this.positionGmt).add(3 * be, "h").format();
6655
6674
  this.tableData.hours.push(_e);
6656
- const B = ((d = Ke.pickHourly(a, _e)) == null ? void 0 : d[0]) || {};
6657
- this.tableData.temp.push(this.roundPrecision((A = B == null ? void 0 : B.weather) == null ? void 0 : A.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((E = (b = B == null ? void 0 : B.weather) == null ? void 0 : b.precip) == null ? void 0 : E.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((k = (w = B == null ? void 0 : B.weather) == null ? void 0 : w.precip) == null ? void 0 : k.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((_ = B == null ? void 0 : B.weather) == null ? void 0 : _.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((v = (f = B == null ? void 0 : B.weather) == null ? void 0 : f.wind) == null ? void 0 : v.kts, 1) ?? "-"), this.tableData.windDir.push((C = (u = B == null ? void 0 : B.weather) == null ? void 0 : u.wind) == null ? void 0 : C.bearing), this.tableData.windGust.push(this.roundPrecision((L = (y = B == null ? void 0 : B.weather) == null ? void 0 : y.wind) == null ? void 0 : L.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((D = (T = B == null ? void 0 : B.wave) == null ? void 0 : T.sig) == null ? void 0 : D.height, 1) ?? "-"), this.tableData.sigwaveDir.push((N = (F = B == null ? void 0 : B.wave) == null ? void 0 : F.sig) == null ? void 0 : N.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((G = (j = B == null ? void 0 : B.wave) == null ? void 0 : j.wd) == null ? void 0 : G.height, 1) ?? "-"), this.tableData.windwaveDir.push((me = (W = B == null ? void 0 : B.wave) == null ? void 0 : W.wd) == null ? void 0 : me.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((ue = (re = B == null ? void 0 : B.wave) == null ? void 0 : re.wd) == null ? void 0 : ue.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((ge = (we = B == null ? void 0 : B.wave) == null ? void 0 : we.swell) == null ? void 0 : ge.height, 1) ?? "-"), this.tableData.swellDir.push((ye = (ve = B == null ? void 0 : B.wave) == null ? void 0 : ve.swell) == null ? void 0 : ye.bearing), this.tableData.swellPeriod.push(this.roundPrecision((te = (Y = B == null ? void 0 : B.wave) == null ? void 0 : Y.swell) == null ? void 0 : te.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((fe = B == null ? void 0 : B.current) == null ? void 0 : fe.speed, 1) ?? "-"), this.tableData.currentDir.push((pe = B == null ? void 0 : B.current) == null ? void 0 : pe.bearing), this.tableData.seaLevel.push(this.roundPrecision(B == null ? void 0 : B.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(B == null ? void 0 : B.sst, 0) ?? "-"), this.tableData.weatherUrls.push((Ae = B == null ? void 0 : B.weather) == null ? void 0 : Ae.url), this.tableData.weatherNames.push(((xe = B == null ? void 0 : B.weather) == null ? void 0 : xe.name) ?? "-");
6675
+ const I = ((p = Ke.pickHourly(a, _e)) == null ? void 0 : p[0]) || {};
6676
+ this.tableData.temp.push(this.roundPrecision((v = I == null ? void 0 : I.weather) == null ? void 0 : v.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((_ = (C = I == null ? void 0 : I.weather) == null ? void 0 : C.precip) == null ? void 0 : _.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((k = (f = I == null ? void 0 : I.weather) == null ? void 0 : f.precip) == null ? void 0 : k.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((B = I == null ? void 0 : I.weather) == null ? void 0 : B.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((w = (A = I == null ? void 0 : I.weather) == null ? void 0 : A.wind) == null ? void 0 : w.kts, 1) ?? "-"), this.tableData.windDir.push((L = (m = I == null ? void 0 : I.weather) == null ? void 0 : m.wind) == null ? void 0 : L.bearing), this.tableData.windGust.push(this.roundPrecision((b = (y = I == null ? void 0 : I.weather) == null ? void 0 : y.wind) == null ? void 0 : b.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((D = (T = I == null ? void 0 : I.wave) == null ? void 0 : T.sig) == null ? void 0 : D.height, 1) ?? "-"), this.tableData.sigwaveDir.push((N = (F = I == null ? void 0 : I.wave) == null ? void 0 : F.sig) == null ? void 0 : N.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((G = (j = I == null ? void 0 : I.wave) == null ? void 0 : j.wd) == null ? void 0 : G.height, 1) ?? "-"), this.tableData.windwaveDir.push((me = (W = I == null ? void 0 : I.wave) == null ? void 0 : W.wd) == null ? void 0 : me.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((ue = (re = I == null ? void 0 : I.wave) == null ? void 0 : re.wd) == null ? void 0 : ue.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((ge = (we = I == null ? void 0 : I.wave) == null ? void 0 : we.swell) == null ? void 0 : ge.height, 1) ?? "-"), this.tableData.swellDir.push((ye = (ve = I == null ? void 0 : I.wave) == null ? void 0 : ve.swell) == null ? void 0 : ye.bearing), this.tableData.swellPeriod.push(this.roundPrecision((te = (Y = I == null ? void 0 : I.wave) == null ? void 0 : Y.swell) == null ? void 0 : te.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((fe = I == null ? void 0 : I.current) == null ? void 0 : fe.speed, 1) ?? "-"), this.tableData.currentDir.push((pe = I == null ? void 0 : I.current) == null ? void 0 : pe.bearing), this.tableData.seaLevel.push(this.roundPrecision(I == null ? void 0 : I.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(I == null ? void 0 : I.sst, 0) ?? "-"), this.tableData.weatherUrls.push((Ae = I == null ? void 0 : I.weather) == null ? void 0 : Ae.url), this.tableData.weatherNames.push(((xe = I == null ? void 0 : I.weather) == null ? void 0 : xe.name) ?? "-");
6658
6677
  }
6659
6678
  });
6660
6679
  },
@@ -6731,7 +6750,7 @@ const _i = {
6731
6750
  this.$nextTick(() => {
6732
6751
  var e;
6733
6752
  const a = document.getElementById("point-meteo");
6734
- this.point && (this.meteoMarker ? (e = this.meteoMarker) == null || e.setLngLat([this.point.lng, this.point.lat]) : this.meteoMarker = new je.Marker(a).setLngLat([this.point.lng, this.point.lat]).addTo(this.map));
6753
+ this.point && (this.meteoMarker ? (e = this.meteoMarker) == null || e.setLngLat([this.point.lng, this.point.lat]) : this.meteoMarker = new Re.Marker(a).setLngLat([this.point.lng, this.point.lat]).addTo(this.map));
6735
6754
  });
6736
6755
  }
6737
6756
  }
@@ -6780,9 +6799,9 @@ const _i = {
6780
6799
  class: "main-box flex-center"
6781
6800
  };
6782
6801
  function Qr(a, e, t, r, i, s) {
6783
- var p, h, d, A, b, E, w, k, _, f, v, u, C, y, L, T, D, F, N, j, G, W, me, re, ue, we, ge, ve, ye, Y, te, fe, pe, Ae, xe, be, _e, B, ze, Le, Pe, Ee, He, ke, se, ce, Q, Be, K, q, Me, P, de, De, Se, Te, z, O, Ge, Ue, ie, Ne, tt, at, it, rt, st, ot;
6802
+ var d, h, p, v, C, _, f, k, B, A, w, m, L, y, b, T, D, F, N, j, G, W, me, re, ue, we, ge, ve, ye, Y, te, fe, pe, Ae, xe, be, _e, I, ze, Le, Pe, Ee, He, ke, se, ce, Q, Be, K, q, Me, P, de, De, Se, Te, z, O, Ge, Ue, ie, Ne, tt, at, it, rt, st, ot;
6784
6803
  const n = R("LocationFilled"), l = R("ElIcon"), c = R("ElTooltip");
6785
- return Fe((m(), g("div", Bi, [
6804
+ return Fe((u(), g("div", Bi, [
6786
6805
  o("div", Ii, [
6787
6806
  o("div", Ei, [
6788
6807
  o("div", ki, [
@@ -6792,14 +6811,14 @@ function Qr(a, e, t, r, i, s) {
6792
6811
  ]),
6793
6812
  _: 1
6794
6813
  }),
6795
- o("div", Di, I(s.computeLat((p = i.point) == null ? void 0 : p.lat)) + "," + I(s.computeLng((h = i.point) == null ? void 0 : h.lng)), 1)
6814
+ o("div", Di, E(s.computeLat((d = i.point) == null ? void 0 : d.lat)) + "," + E(s.computeLng((h = i.point) == null ? void 0 : h.lng)), 1)
6796
6815
  ]),
6797
6816
  o("div", zi, [
6798
- i.showTables ? (m(), g("div", {
6817
+ i.showTables ? (u(), g("div", {
6799
6818
  key: 0,
6800
6819
  class: "iconfont toggle",
6801
6820
  onClick: e[0] || (e[0] = (x) => i.showTables = !i.showTables)
6802
- }, "")) : (m(), g("div", {
6821
+ }, "")) : (u(), g("div", {
6803
6822
  key: 1,
6804
6823
  class: "iconfont toggle",
6805
6824
  onClick: e[1] || (e[1] = (x) => i.showTables = !i.showTables)
@@ -6810,12 +6829,12 @@ function Qr(a, e, t, r, i, s) {
6810
6829
  }, "")
6811
6830
  ])
6812
6831
  ]),
6813
- i.loading ? (m(), g("div", Tr, e[43] || (e[43] = [
6832
+ i.loading ? (u(), g("div", Tr, e[43] || (e[43] = [
6814
6833
  o("img", {
6815
6834
  src: xi,
6816
6835
  alt: ""
6817
6836
  }, null, -1)
6818
- ]))) : (m(), g("div", {
6837
+ ]))) : (u(), g("div", {
6819
6838
  key: 0,
6820
6839
  class: Z(["main-box", i.isDay ? "day-bg" : "night-bg"]),
6821
6840
  id: "meteoMainBox"
@@ -6825,46 +6844,46 @@ function Qr(a, e, t, r, i, s) {
6825
6844
  H(c, {
6826
6845
  placement: "top",
6827
6846
  effect: "light",
6828
- content: (A = (d = i.currentHourData) == null ? void 0 : d.weather) == null ? void 0 : A.name,
6847
+ content: (v = (p = i.currentHourData) == null ? void 0 : p.weather) == null ? void 0 : v.name,
6829
6848
  "show-after": 1e3
6830
6849
  }, {
6831
6850
  default: Ie(() => {
6832
6851
  var x, M, nt, lt;
6833
6852
  return [
6834
- (M = (x = i.currentHourData) == null ? void 0 : x.weather) != null && M.url ? (m(), g("img", {
6853
+ (M = (x = i.currentHourData) == null ? void 0 : x.weather) != null && M.url ? (u(), g("img", {
6835
6854
  key: 0,
6836
6855
  class: "iconfont icon",
6837
6856
  style: { "margin-right": "5px" },
6838
6857
  src: (lt = (nt = i.currentHourData) == null ? void 0 : nt.weather) == null ? void 0 : lt.url
6839
- }, null, 8, Si)) : (m(), g("span", Ti))
6858
+ }, null, 8, Si)) : (u(), g("span", Ti))
6840
6859
  ];
6841
6860
  }),
6842
6861
  _: 1
6843
6862
  }, 8, ["content"]),
6844
6863
  o("div", Qi, [
6845
6864
  o("div", null, [
6846
- le(I(s.roundPrecision((E = (b = i.currentHourData) == null ? void 0 : b.weather) == null ? void 0 : E.temp, 0)), 1),
6865
+ le(E(s.roundPrecision((_ = (C = i.currentHourData) == null ? void 0 : C.weather) == null ? void 0 : _.temp, 0)), 1),
6847
6866
  e[9] || (e[9] = o("span", { style: { "font-size": "14px" } }, "°C", -1))
6848
6867
  ])
6849
6868
  ]),
6850
6869
  o("div", Hi, [
6851
6870
  o("div", Ni, [
6852
6871
  e[10] || (e[10] = o("label", null, "Precip : ", -1)),
6853
- o("span", null, I(s.roundPrecision((_ = (k = (w = i.currentHourData) == null ? void 0 : w.weather) == null ? void 0 : k.precip) == null ? void 0 : _.sum, 0)) + " mm", 1)
6872
+ o("span", null, E(s.roundPrecision((B = (k = (f = i.currentHourData) == null ? void 0 : f.weather) == null ? void 0 : k.precip) == null ? void 0 : B.sum, 0)) + " mm", 1)
6854
6873
  ]),
6855
6874
  o("div", Fi, [
6856
6875
  e[11] || (e[11] = o("label", null, "Visibility : ", -1)),
6857
- o("span", null, I(s.roundPrecision((v = (f = i.currentHourData) == null ? void 0 : f.weather) == null ? void 0 : v.visibility, 0)) + " nm", 1)
6876
+ o("span", null, E(s.roundPrecision((w = (A = i.currentHourData) == null ? void 0 : A.weather) == null ? void 0 : w.visibility, 0)) + " nm", 1)
6858
6877
  ]),
6859
6878
  o("div", Oi, [
6860
6879
  e[12] || (e[12] = o("label", null, "Wind : ", -1)),
6861
- o("span", null, I(s.roundPrecision((y = (C = (u = i.currentHourData) == null ? void 0 : u.weather) == null ? void 0 : C.wind) == null ? void 0 : y.kts, 1)) + " kts", 1)
6880
+ o("span", null, E(s.roundPrecision((y = (L = (m = i.currentHourData) == null ? void 0 : m.weather) == null ? void 0 : L.wind) == null ? void 0 : y.kts, 1)) + " kts", 1)
6862
6881
  ])
6863
6882
  ])
6864
6883
  ]),
6865
6884
  o("div", Ri, [
6866
- o("div", ji, I(i.localDate), 1),
6867
- o("div", Wi, "( UTC " + I(i.positionOffset) + " )", 1)
6885
+ o("div", ji, E(i.localDate), 1),
6886
+ o("div", Wi, "( UTC " + E(i.positionOffset) + " )", 1)
6868
6887
  ])
6869
6888
  ]),
6870
6889
  Fe(o("div", Gi, [
@@ -6896,11 +6915,11 @@ function Qr(a, e, t, r, i, s) {
6896
6915
  le("Hours"),
6897
6916
  o("span", { class: "unit" }, "(LT)")
6898
6917
  ], -1)),
6899
- (m(!0), g(V, null, $(i.tableData.hours, (x) => (m(), g("th", {
6918
+ (u(!0), g(V, null, $(i.tableData.hours, (x) => (u(), g("th", {
6900
6919
  rowspan: "1",
6901
6920
  colspan: "1",
6902
6921
  key: `HourL${x}`
6903
- }, I(s.computeHourL(x)), 1))), 128))
6922
+ }, E(s.computeHourL(x)), 1))), 128))
6904
6923
  ]),
6905
6924
  o("tr", Xi, [
6906
6925
  e[14] || (e[14] = o("th", {
@@ -6911,11 +6930,11 @@ function Qr(a, e, t, r, i, s) {
6911
6930
  le("UTC"),
6912
6931
  o("span", { class: "unit" })
6913
6932
  ], -1)),
6914
- (m(!0), g(V, null, $(i.tableData.hours, (x) => (m(), g("th", {
6933
+ (u(!0), g(V, null, $(i.tableData.hours, (x) => (u(), g("th", {
6915
6934
  rowspan: "1",
6916
6935
  colspan: "1",
6917
6936
  key: `HourZ${x}`
6918
- }, I(s.computeHourZ(x)), 1))), 128))
6937
+ }, E(s.computeHourZ(x)), 1))), 128))
6919
6938
  ]),
6920
6939
  o("tr", Ji, [
6921
6940
  e[15] || (e[15] = o("th", {
@@ -6923,7 +6942,7 @@ function Qr(a, e, t, r, i, s) {
6923
6942
  colspan: "1",
6924
6943
  class: "tr-title"
6925
6944
  }, null, -1)),
6926
- (m(!0), g(V, null, $(i.tableData.weatherUrls, (x, M) => (m(), g("th", {
6945
+ (u(!0), g(V, null, $(i.tableData.weatherUrls, (x, M) => (u(), g("th", {
6927
6946
  rowspan: "1",
6928
6947
  colspan: "1",
6929
6948
  key: `weatherUrls${M}${x}`
@@ -6935,7 +6954,7 @@ function Qr(a, e, t, r, i, s) {
6935
6954
  "show-after": 500
6936
6955
  }, {
6937
6956
  default: Ie(() => [
6938
- x ? (m(), g("img", {
6957
+ x ? (u(), g("img", {
6939
6958
  key: 0,
6940
6959
  class: "iconfont weather-icon",
6941
6960
  src: x,
@@ -6955,11 +6974,11 @@ function Qr(a, e, t, r, i, s) {
6955
6974
  le("Temp"),
6956
6975
  o("span", { class: "unit" }, "°C")
6957
6976
  ], -1)),
6958
- (m(!0), g(V, null, $(i.tableData.temp, (x, M) => (m(), g("td", {
6977
+ (u(!0), g(V, null, $(i.tableData.temp, (x, M) => (u(), g("td", {
6959
6978
  rowspan: "1",
6960
6979
  colspan: "1",
6961
6980
  key: `weatherUrls${M}${x}`
6962
- }, I(x), 1))), 128))
6981
+ }, E(x), 1))), 128))
6963
6982
  ]),
6964
6983
  o("tr", Zi, [
6965
6984
  e[17] || (e[17] = o("td", {
@@ -6970,11 +6989,11 @@ function Qr(a, e, t, r, i, s) {
6970
6989
  le("Precip"),
6971
6990
  o("span", { class: "unit" }, "mm")
6972
6991
  ], -1)),
6973
- (m(!0), g(V, null, $(i.tableData.precip1h, (x, M) => (m(), g("td", {
6992
+ (u(!0), g(V, null, $(i.tableData.precip1h, (x, M) => (u(), g("td", {
6974
6993
  rowspan: "1",
6975
6994
  colspan: "1",
6976
6995
  key: `precip1h${M}${x}`
6977
- }, I(x), 1))), 128))
6996
+ }, E(x), 1))), 128))
6978
6997
  ]),
6979
6998
  o("tr", $i, [
6980
6999
  e[18] || (e[18] = o("td", {
@@ -6985,11 +7004,11 @@ function Qr(a, e, t, r, i, s) {
6985
7004
  le("Visibility"),
6986
7005
  o("span", { class: "unit" }, "nm")
6987
7006
  ], -1)),
6988
- (m(!0), g(V, null, $(i.tableData.visibility, (x, M) => (m(), g("td", {
7007
+ (u(!0), g(V, null, $(i.tableData.visibility, (x, M) => (u(), g("td", {
6989
7008
  rowspan: "1",
6990
7009
  colspan: "1",
6991
7010
  key: `visibility${M}${x}`
6992
- }, I(x), 1))), 128))
7011
+ }, E(x), 1))), 128))
6993
7012
  ]),
6994
7013
  o("tr", er, [
6995
7014
  e[19] || (e[19] = o("td", {
@@ -7000,12 +7019,12 @@ function Qr(a, e, t, r, i, s) {
7000
7019
  le("Wind gust"),
7001
7020
  o("span", { class: "unit" }, "kts")
7002
7021
  ], -1)),
7003
- (m(!0), g(V, null, $(i.tableData.windGust, (x, M) => (m(), g("td", {
7022
+ (u(!0), g(V, null, $(i.tableData.windGust, (x, M) => (u(), g("td", {
7004
7023
  rowspan: "1",
7005
7024
  colspan: "1",
7006
7025
  key: `windGust${M}${x}`
7007
7026
  }, [
7008
- o("span", null, I(x), 1)
7027
+ o("span", null, E(x), 1)
7009
7028
  ]))), 128))
7010
7029
  ])
7011
7030
  ], 512), [
@@ -7021,11 +7040,11 @@ function Qr(a, e, t, r, i, s) {
7021
7040
  le("Hours"),
7022
7041
  o("span", { class: "unit" }, "(LT)")
7023
7042
  ], -1)),
7024
- (m(!0), g(V, null, $(i.tableData.hours, (x, M) => (m(), g("th", {
7043
+ (u(!0), g(V, null, $(i.tableData.hours, (x, M) => (u(), g("th", {
7025
7044
  rowspan: "1",
7026
7045
  colspan: "1",
7027
7046
  key: `currenthoursL${M}${x}`
7028
- }, I(s.computeHourL(x)), 1))), 128))
7047
+ }, E(s.computeHourL(x)), 1))), 128))
7029
7048
  ]),
7030
7049
  o("tr", ir, [
7031
7050
  e[21] || (e[21] = o("th", {
@@ -7036,11 +7055,11 @@ function Qr(a, e, t, r, i, s) {
7036
7055
  le("UTC"),
7037
7056
  o("span", { class: "unit" })
7038
7057
  ], -1)),
7039
- (m(!0), g(V, null, $(i.tableData.hours, (x, M) => (m(), g("th", {
7058
+ (u(!0), g(V, null, $(i.tableData.hours, (x, M) => (u(), g("th", {
7040
7059
  rowspan: "1",
7041
7060
  colspan: "1",
7042
7061
  key: `currenthoursZ${M}${x}`
7043
- }, I(s.computeHourZ(x)), 1))), 128))
7062
+ }, E(s.computeHourZ(x)), 1))), 128))
7044
7063
  ]),
7045
7064
  o("tr", rr, [
7046
7065
  e[22] || (e[22] = o("td", {
@@ -7051,17 +7070,17 @@ function Qr(a, e, t, r, i, s) {
7051
7070
  le("Wind"),
7052
7071
  o("span", { class: "unit" }, "kts")
7053
7072
  ], -1)),
7054
- (m(!0), g(V, null, $(i.tableData.windSpeed, (x, M) => (m(), g("td", {
7073
+ (u(!0), g(V, null, $(i.tableData.windSpeed, (x, M) => (u(), g("td", {
7055
7074
  rowspan: "1",
7056
7075
  colspan: "1",
7057
7076
  key: `windSpeed${M}${x}`
7058
7077
  }, [
7059
- isNaN(i.tableData.windDir[M]) ? J("", !0) : (m(), g("span", {
7078
+ isNaN(i.tableData.windDir[M]) ? J("", !0) : (u(), g("span", {
7060
7079
  key: 0,
7061
7080
  class: "iconfont icon wind",
7062
7081
  style: he({ display: "inline-block", transform: `rotate(${i.tableData.windDir[M]}deg)` })
7063
7082
  }, "", 4)),
7064
- o("span", null, I(x), 1)
7083
+ o("span", null, E(x), 1)
7065
7084
  ]))), 128))
7066
7085
  ]),
7067
7086
  o("tr", sr, [
@@ -7073,17 +7092,17 @@ function Qr(a, e, t, r, i, s) {
7073
7092
  le("Sig Wave"),
7074
7093
  o("span", { class: "unit" }, "m")
7075
7094
  ], -1)),
7076
- (m(!0), g(V, null, $(i.tableData.sigwaveHeight, (x, M) => (m(), g("td", {
7095
+ (u(!0), g(V, null, $(i.tableData.sigwaveHeight, (x, M) => (u(), g("td", {
7077
7096
  rowspan: "1",
7078
7097
  colspan: "1",
7079
7098
  key: `sigwaveHeight${M}${x}`
7080
7099
  }, [
7081
- isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (m(), g("span", {
7100
+ isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (u(), g("span", {
7082
7101
  key: 0,
7083
7102
  class: "iconfont icon sigwave",
7084
7103
  style: he({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[M]}deg)` })
7085
7104
  }, "", 4)),
7086
- o("span", null, I(x), 1)
7105
+ o("span", null, E(x), 1)
7087
7106
  ]))), 128))
7088
7107
  ]),
7089
7108
  o("tr", or, [
@@ -7095,17 +7114,17 @@ function Qr(a, e, t, r, i, s) {
7095
7114
  le("Wind Wave"),
7096
7115
  o("span", { class: "unit" }, "m")
7097
7116
  ], -1)),
7098
- (m(!0), g(V, null, $(i.tableData.windwaveHeight, (x, M) => (m(), g("td", {
7117
+ (u(!0), g(V, null, $(i.tableData.windwaveHeight, (x, M) => (u(), g("td", {
7099
7118
  rowspan: "1",
7100
7119
  colspan: "1",
7101
7120
  key: `windwaveHeight${M}${x}`
7102
7121
  }, [
7103
- isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (m(), g("span", {
7122
+ isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (u(), g("span", {
7104
7123
  key: 0,
7105
7124
  class: "iconfont icon windwave",
7106
7125
  style: he({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[M]}deg)` })
7107
7126
  }, "", 4)),
7108
- o("span", null, I(x), 1)
7127
+ o("span", null, E(x), 1)
7109
7128
  ]))), 128))
7110
7129
  ]),
7111
7130
  o("tr", nr, [
@@ -7117,17 +7136,17 @@ function Qr(a, e, t, r, i, s) {
7117
7136
  le("Swell"),
7118
7137
  o("span", { class: "unit" }, "m")
7119
7138
  ], -1)),
7120
- (m(!0), g(V, null, $(i.tableData.swellHeight, (x, M) => (m(), g("td", {
7139
+ (u(!0), g(V, null, $(i.tableData.swellHeight, (x, M) => (u(), g("td", {
7121
7140
  rowspan: "1",
7122
7141
  colspan: "1",
7123
7142
  key: `swellHeight${M}${x}`
7124
7143
  }, [
7125
- isNaN(i.tableData.swellDir[M]) ? J("", !0) : (m(), g("span", {
7144
+ isNaN(i.tableData.swellDir[M]) ? J("", !0) : (u(), g("span", {
7126
7145
  key: 0,
7127
7146
  class: "iconfont icon swell",
7128
7147
  style: he({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[M]}deg)` })
7129
7148
  }, "", 4)),
7130
- o("span", null, I(x), 1)
7149
+ o("span", null, E(x), 1)
7131
7150
  ]))), 128))
7132
7151
  ]),
7133
7152
  o("tr", lr, [
@@ -7139,18 +7158,18 @@ function Qr(a, e, t, r, i, s) {
7139
7158
  le("Current"),
7140
7159
  o("span", { class: "unit" }, "kts")
7141
7160
  ], -1)),
7142
- (m(!0), g(V, null, $(i.tableData.currentSpeed, (x, M) => (m(), g("td", {
7161
+ (u(!0), g(V, null, $(i.tableData.currentSpeed, (x, M) => (u(), g("td", {
7143
7162
  rowspan: "1",
7144
7163
  colspan: "1",
7145
7164
  key: `currentSpeed${M}${x}`
7146
7165
  }, [
7147
- isNaN(i.tableData.currentDir[M]) ? J("", !0) : (m(), g("span", {
7166
+ isNaN(i.tableData.currentDir[M]) ? J("", !0) : (u(), g("span", {
7148
7167
  key: 0,
7149
7168
  class: "iconfont icon current",
7150
7169
  id: "meteoGrayIcon",
7151
7170
  style: he({ display: "inline-block", transform: `rotate(${i.tableData.currentDir[M]}deg)` })
7152
7171
  }, "", 4)),
7153
- o("span", null, I(x), 1)
7172
+ o("span", null, E(x), 1)
7154
7173
  ]))), 128))
7155
7174
  ])
7156
7175
  ], 512), [
@@ -7166,11 +7185,11 @@ function Qr(a, e, t, r, i, s) {
7166
7185
  le("Hours"),
7167
7186
  o("span", { class: "unit" }, "(LT)")
7168
7187
  ], -1)),
7169
- (m(!0), g(V, null, $(i.tableData.hours, (x, M) => (m(), g("th", {
7188
+ (u(!0), g(V, null, $(i.tableData.hours, (x, M) => (u(), g("th", {
7170
7189
  rowspan: "1",
7171
7190
  colspan: "1",
7172
7191
  key: `seahoursL${M}${x}`
7173
- }, I(s.computeHourL(x)), 1))), 128))
7192
+ }, E(s.computeHourL(x)), 1))), 128))
7174
7193
  ]),
7175
7194
  o("tr", dr, [
7176
7195
  e[28] || (e[28] = o("th", {
@@ -7181,11 +7200,11 @@ function Qr(a, e, t, r, i, s) {
7181
7200
  le("UTC"),
7182
7201
  o("span", { class: "unit" })
7183
7202
  ], -1)),
7184
- (m(!0), g(V, null, $(i.tableData.hours, (x, M) => (m(), g("th", {
7203
+ (u(!0), g(V, null, $(i.tableData.hours, (x, M) => (u(), g("th", {
7185
7204
  rowspan: "1",
7186
7205
  colspan: "1",
7187
7206
  key: `seahoursZ${M}${x}`
7188
- }, I(s.computeHourZ(x)), 1))), 128))
7207
+ }, E(s.computeHourZ(x)), 1))), 128))
7189
7208
  ]),
7190
7209
  o("tr", pr, [
7191
7210
  e[29] || (e[29] = o("td", {
@@ -7196,11 +7215,11 @@ function Qr(a, e, t, r, i, s) {
7196
7215
  le("SeaLevel"),
7197
7216
  o("span", { class: "unit" }, "m")
7198
7217
  ], -1)),
7199
- (m(!0), g(V, null, $(i.tableData.seaLevel, (x, M) => (m(), g("td", {
7218
+ (u(!0), g(V, null, $(i.tableData.seaLevel, (x, M) => (u(), g("td", {
7200
7219
  rowspan: "1",
7201
7220
  colspan: "1",
7202
7221
  key: `SeaLevel${M}${x}`
7203
- }, I(x), 1))), 128))
7222
+ }, E(x), 1))), 128))
7204
7223
  ]),
7205
7224
  o("tr", mr, [
7206
7225
  e[30] || (e[30] = o("td", {
@@ -7211,39 +7230,39 @@ function Qr(a, e, t, r, i, s) {
7211
7230
  le("SeaTemp"),
7212
7231
  o("span", { class: "unit" }, "°C")
7213
7232
  ], -1)),
7214
- (m(!0), g(V, null, $(i.tableData.seaTemp, (x, M) => (m(), g("td", {
7233
+ (u(!0), g(V, null, $(i.tableData.seaTemp, (x, M) => (u(), g("td", {
7215
7234
  rowspan: "1",
7216
7235
  colspan: "1",
7217
7236
  key: `SeaTemp${M}${x}`
7218
- }, I(x), 1))), 128))
7237
+ }, E(x), 1))), 128))
7219
7238
  ])
7220
7239
  ], 512), [
7221
7240
  [Oe, i.activeIndex === 3]
7222
7241
  ]),
7223
- i.activeIndex === 3 ? (m(), g("div", ur, e[31] || (e[31] = [
7242
+ i.activeIndex === 3 ? (u(), g("div", ur, e[31] || (e[31] = [
7224
7243
  o("p", { style: { "font-size": "12px", padding: "12px 20px 0 20px", "line-height": "16px" } }, "*Sea level height accounts for tides, barometer effects, and global variations. Based on mean sea level, accuracy is limited in coastal areas. For coastal navigation, use data from Tides Tab.", -1)
7225
7244
  ]))) : J("", !0),
7226
7245
  Fe(o("table", gr, [
7227
7246
  o("tr", yr, [
7228
- (m(!0), g(V, null, $(i.tideTableData, (x, M) => (m(), g("th", {
7247
+ (u(!0), g(V, null, $(i.tideTableData, (x, M) => (u(), g("th", {
7229
7248
  rowspan: "1",
7230
7249
  colspan: "1",
7231
7250
  key: `Tide-tr-${M}${x}`
7232
- }, I(x.type) + " Tide", 1))), 128))
7251
+ }, E(x.type) + " Tide", 1))), 128))
7233
7252
  ]),
7234
7253
  o("tr", fr, [
7235
- (m(!0), g(V, null, $(i.tideTableData, (x, M) => (m(), g("td", {
7254
+ (u(!0), g(V, null, $(i.tideTableData, (x, M) => (u(), g("td", {
7236
7255
  rowspan: "1",
7237
7256
  colspan: "1",
7238
7257
  key: `Tide-date-${M}${x}`
7239
- }, I(s.computeHourHmmLT(x == null ? void 0 : x.date)), 1))), 128))
7258
+ }, E(s.computeHourHmmLT(x == null ? void 0 : x.date)), 1))), 128))
7240
7259
  ]),
7241
7260
  o("tr", Ar, [
7242
- (m(!0), g(V, null, $(i.tideTableData, (x, M) => (m(), g("td", {
7261
+ (u(!0), g(V, null, $(i.tideTableData, (x, M) => (u(), g("td", {
7243
7262
  rowspan: "1",
7244
7263
  colspan: "1",
7245
7264
  key: `Tide-height-${M}${x}`
7246
- }, I(s.roundPrecision(x == null ? void 0 : x.height, 2)) + " m", 1))), 128))
7265
+ }, E(s.roundPrecision(x == null ? void 0 : x.height, 2)) + " m", 1))), 128))
7247
7266
  ]),
7248
7267
  e[32] || (e[32] = o("tr", { class: "tr-tide flex-center info" }, [
7249
7268
  o("td", null, [
@@ -7254,57 +7273,57 @@ function Qr(a, e, t, r, i, s) {
7254
7273
  [Oe, i.activeIndex === 4]
7255
7274
  ])
7256
7275
  ], 512), [
7257
- [Oe, ((T = (L = i.tableData) == null ? void 0 : L.hours) == null ? void 0 : T.length) > 0 && i.showTables]
7276
+ [Oe, ((T = (b = i.tableData) == null ? void 0 : b.hours) == null ? void 0 : T.length) > 0 && i.showTables]
7258
7277
  ]),
7259
7278
  Fe(o("div", wr, [
7260
7279
  o("div", vr, [
7261
7280
  o("div", br, [
7262
7281
  e[33] || (e[33] = o("div", null, "Wind", -1)),
7263
- o("div", null, I((N = (F = (D = i.currentHourData) == null ? void 0 : D.weather) == null ? void 0 : F.wind) == null ? void 0 : N.direction) + "/" + I(s.roundPrecision((W = (G = (j = i.currentHourData) == null ? void 0 : j.weather) == null ? void 0 : G.wind) == null ? void 0 : W.kts, 1)) + "kts/BF" + I((ue = (re = (me = i.currentHourData) == null ? void 0 : me.weather) == null ? void 0 : re.wind) == null ? void 0 : ue.scale) + "/" + I(s.roundPrecision((ve = (ge = (we = i.currentHourData) == null ? void 0 : we.weather) == null ? void 0 : ge.wind) == null ? void 0 : ve.gusts, 1)) + " kts", 1)
7282
+ o("div", null, E((N = (F = (D = i.currentHourData) == null ? void 0 : D.weather) == null ? void 0 : F.wind) == null ? void 0 : N.direction) + "/" + E(s.roundPrecision((W = (G = (j = i.currentHourData) == null ? void 0 : j.weather) == null ? void 0 : G.wind) == null ? void 0 : W.kts, 1)) + "kts/BF" + E((ue = (re = (me = i.currentHourData) == null ? void 0 : me.weather) == null ? void 0 : re.wind) == null ? void 0 : ue.scale) + "/" + E(s.roundPrecision((ve = (ge = (we = i.currentHourData) == null ? void 0 : we.weather) == null ? void 0 : ge.wind) == null ? void 0 : ve.gusts, 1)) + " kts", 1)
7264
7283
  ]),
7265
7284
  o("div", Lr, [
7266
7285
  e[34] || (e[34] = o("div", null, "Sig wave", -1)),
7267
- o("div", null, I((te = (Y = (ye = i.currentHourData) == null ? void 0 : ye.wave) == null ? void 0 : Y.sig) == null ? void 0 : te.direction) + "/" + I(s.roundPrecision((Ae = (pe = (fe = i.currentHourData) == null ? void 0 : fe.wave) == null ? void 0 : pe.sig) == null ? void 0 : Ae.height, 1)) + "m/" + I(s.roundPrecision((_e = (be = (xe = i.currentHourData) == null ? void 0 : xe.wave) == null ? void 0 : be.sig) == null ? void 0 : _e.period, 1)) + "s", 1)
7286
+ o("div", null, E((te = (Y = (ye = i.currentHourData) == null ? void 0 : ye.wave) == null ? void 0 : Y.sig) == null ? void 0 : te.direction) + "/" + E(s.roundPrecision((Ae = (pe = (fe = i.currentHourData) == null ? void 0 : fe.wave) == null ? void 0 : pe.sig) == null ? void 0 : Ae.height, 1)) + "m/" + E(s.roundPrecision((_e = (be = (xe = i.currentHourData) == null ? void 0 : xe.wave) == null ? void 0 : be.sig) == null ? void 0 : _e.period, 1)) + "s", 1)
7268
7287
  ])
7269
7288
  ]),
7270
7289
  o("div", Cr, [
7271
7290
  o("div", xr, [
7272
7291
  e[35] || (e[35] = o("div", null, "Wind wave", -1)),
7273
- o("div", null, I((Le = (ze = (B = i.currentHourData) == null ? void 0 : B.wave) == null ? void 0 : ze.wd) == null ? void 0 : Le.direction) + "/" + I(s.roundPrecision((He = (Ee = (Pe = i.currentHourData) == null ? void 0 : Pe.wave) == null ? void 0 : Ee.wd) == null ? void 0 : He.height, 1)) + "m/" + I(s.roundPrecision((ce = (se = (ke = i.currentHourData) == null ? void 0 : ke.wave) == null ? void 0 : se.wd) == null ? void 0 : ce.period, 1)) + "s", 1)
7292
+ o("div", null, E((Le = (ze = (I = i.currentHourData) == null ? void 0 : I.wave) == null ? void 0 : ze.wd) == null ? void 0 : Le.direction) + "/" + E(s.roundPrecision((He = (Ee = (Pe = i.currentHourData) == null ? void 0 : Pe.wave) == null ? void 0 : Ee.wd) == null ? void 0 : He.height, 1)) + "m/" + E(s.roundPrecision((ce = (se = (ke = i.currentHourData) == null ? void 0 : ke.wave) == null ? void 0 : se.wd) == null ? void 0 : ce.period, 1)) + "s", 1)
7274
7293
  ]),
7275
7294
  o("div", _r, [
7276
7295
  e[36] || (e[36] = o("div", null, "Swell", -1)),
7277
- o("div", null, I((K = (Be = (Q = i.currentHourData) == null ? void 0 : Q.wave) == null ? void 0 : Be.swell) == null ? void 0 : K.direction) + "/" + I(s.roundPrecision((P = (Me = (q = i.currentHourData) == null ? void 0 : q.wave) == null ? void 0 : Me.swell) == null ? void 0 : P.height, 1)) + "m/" + I(s.roundPrecision((Se = (De = (de = i.currentHourData) == null ? void 0 : de.wave) == null ? void 0 : De.swell) == null ? void 0 : Se.period, 1)) + "s", 1)
7296
+ o("div", null, E((K = (Be = (Q = i.currentHourData) == null ? void 0 : Q.wave) == null ? void 0 : Be.swell) == null ? void 0 : K.direction) + "/" + E(s.roundPrecision((P = (Me = (q = i.currentHourData) == null ? void 0 : q.wave) == null ? void 0 : Me.swell) == null ? void 0 : P.height, 1)) + "m/" + E(s.roundPrecision((Se = (De = (de = i.currentHourData) == null ? void 0 : de.wave) == null ? void 0 : De.swell) == null ? void 0 : Se.period, 1)) + "s", 1)
7278
7297
  ])
7279
7298
  ]),
7280
7299
  o("div", Br, [
7281
7300
  o("div", Ir, [
7282
7301
  e[37] || (e[37] = o("div", null, "Current", -1)),
7283
- o("div", null, I((z = (Te = i.currentHourData) == null ? void 0 : Te.current) == null ? void 0 : z.direction) + "/" + I(s.roundPrecision((Ge = (O = i.currentHourData) == null ? void 0 : O.current) == null ? void 0 : Ge.kts, 2)) + "kts", 1)
7302
+ o("div", null, E((z = (Te = i.currentHourData) == null ? void 0 : Te.current) == null ? void 0 : z.direction) + "/" + E(s.roundPrecision((Ge = (O = i.currentHourData) == null ? void 0 : O.current) == null ? void 0 : Ge.kts, 2)) + "kts", 1)
7284
7303
  ]),
7285
7304
  o("div", Er, [
7286
7305
  e[38] || (e[38] = o("div", null, "Sea level", -1)),
7287
- o("div", null, I(s.roundPrecision((Ue = i.currentHourData) == null ? void 0 : Ue.height, 1)) + "m", 1)
7306
+ o("div", null, E(s.roundPrecision((Ue = i.currentHourData) == null ? void 0 : Ue.height, 1)) + "m", 1)
7288
7307
  ])
7289
7308
  ]),
7290
7309
  o("div", kr, [
7291
7310
  o("div", Dr, [
7292
7311
  e[39] || (e[39] = o("div", null, "Sea Temp", -1)),
7293
- o("div", null, I(s.roundPrecision((ie = i.currentHourData) == null ? void 0 : ie.sst, 1)) + "°C", 1)
7312
+ o("div", null, E(s.roundPrecision((ie = i.currentHourData) == null ? void 0 : ie.sst, 1)) + "°C", 1)
7294
7313
  ]),
7295
7314
  o("div", zr, [
7296
7315
  e[40] || (e[40] = o("div", null, "Visibility", -1)),
7297
- o("div", null, I(s.roundPrecision((tt = (Ne = i.currentHourData) == null ? void 0 : Ne.weather) == null ? void 0 : tt.visibility, 1)) + "nm", 1)
7316
+ o("div", null, E(s.roundPrecision((tt = (Ne = i.currentHourData) == null ? void 0 : Ne.weather) == null ? void 0 : tt.visibility, 1)) + "nm", 1)
7298
7317
  ])
7299
7318
  ]),
7300
7319
  o("div", Pr, [
7301
7320
  o("div", Mr, [
7302
7321
  e[41] || (e[41] = o("div", null, "Temp", -1)),
7303
- o("div", null, I(s.roundPrecision((it = (at = i.currentHourData) == null ? void 0 : at.weather) == null ? void 0 : it.temp, 1)) + "°C", 1)
7322
+ o("div", null, E(s.roundPrecision((it = (at = i.currentHourData) == null ? void 0 : at.weather) == null ? void 0 : it.temp, 1)) + "°C", 1)
7304
7323
  ]),
7305
7324
  o("div", Sr, [
7306
7325
  e[42] || (e[42] = o("div", null, "Precip", -1)),
7307
- o("div", null, I(s.roundPrecision((ot = (st = (rt = i.currentHourData) == null ? void 0 : rt.weather) == null ? void 0 : st.precip) == null ? void 0 : ot.sum3Hours, 1)) + "mm", 1)
7326
+ o("div", null, E(s.roundPrecision((ot = (st = (rt = i.currentHourData) == null ? void 0 : rt.weather) == null ? void 0 : st.precip) == null ? void 0 : ot.sum3Hours, 1)) + "mm", 1)
7308
7327
  ])
7309
7328
  ])
7310
7329
  ], 512), [
@@ -7313,7 +7332,7 @@ function Qr(a, e, t, r, i, s) {
7313
7332
  o("div", {
7314
7333
  class: Z(["action", i.isDay ? "day" : "night"])
7315
7334
  }, [
7316
- t.permission & i.helper.LEVEL.Supper ? (m(), g("div", {
7335
+ t.permission & i.helper.LEVEL.Supper ? (u(), g("div", {
7317
7336
  key: 0,
7318
7337
  class: "button",
7319
7338
  style: { "margin-right": "10px" },
@@ -7423,7 +7442,7 @@ const Hr = /* @__PURE__ */ U(_i, [["render", Qr], ["__scopeId", "data-v-3afdcf26
7423
7442
  }
7424
7443
  };
7425
7444
  function Fr(a, e, t, r, i, s) {
7426
- return m(), g("div");
7445
+ return u(), g("div");
7427
7446
  }
7428
7447
  const Or = /* @__PURE__ */ U(Nr, [["render", Fr]]), Rr = {
7429
7448
  name: "IdmGmdssArea",
@@ -7549,7 +7568,7 @@ const Or = /* @__PURE__ */ U(Nr, [["render", Fr]]), Rr = {
7549
7568
  }
7550
7569
  };
7551
7570
  function jr(a, e, t, r, i, s) {
7552
- return m(), g("div");
7571
+ return u(), g("div");
7553
7572
  }
7554
7573
  const Wr = /* @__PURE__ */ U(Rr, [["render", jr]]), Gr = {
7555
7574
  name: "IdmEcaZone",
@@ -7646,7 +7665,7 @@ const Wr = /* @__PURE__ */ U(Rr, [["render", jr]]), Gr = {
7646
7665
  }
7647
7666
  };
7648
7667
  function Ur(a, e, t, r, i, s) {
7649
- return m(), g("div");
7668
+ return u(), g("div");
7650
7669
  }
7651
7670
  const Yr = /* @__PURE__ */ U(Gr, [["render", Ur]]);
7652
7671
  const Kr = {
@@ -7692,7 +7711,7 @@ const Kr = {
7692
7711
  if (t) {
7693
7712
  this.showZone = !0, this.form = { ...t.properties };
7694
7713
  const i = document.getElementById("idm-gl3-zone-info");
7695
- this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new je.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, 0]).addTo(this.map);
7714
+ this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new Re.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, 0]).addTo(this.map);
7696
7715
  }
7697
7716
  },
7698
7717
  handleRender() {
@@ -7785,7 +7804,7 @@ const Kr = {
7785
7804
  }, Xr = { id: "idm-gl3-zone-info" }, Jr = ["innerHTML"];
7786
7805
  function qr(a, e, t, r, i, s) {
7787
7806
  var n;
7788
- return Fe((m(), g("div", Xr, [
7807
+ return Fe((u(), g("div", Xr, [
7789
7808
  o("div", {
7790
7809
  class: "iconfont close",
7791
7810
  onClick: e[0] || (e[0] = (l) => i.showZone = !1)
@@ -7855,7 +7874,7 @@ const Zr = {
7855
7874
  if (t) {
7856
7875
  this.showPort = !0, this.form = { ...t.properties }, this.form.lng = t.geometry.coordinates[0], this.form.lat = t.geometry.coordinates[1];
7857
7876
  const i = document.getElementById("port-info");
7858
- this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new je.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
7877
+ this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new Re.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
7859
7878
  }
7860
7879
  },
7861
7880
  handleRender() {
@@ -7902,7 +7921,7 @@ const Zr = {
7902
7921
  style: { "align-items": "flex-start" }
7903
7922
  }, ss = { class: "meteo-forecast flex-end" };
7904
7923
  function os(a, e, t, r, i, s) {
7905
- return Fe((m(), g("div", $r, [
7924
+ return Fe((u(), g("div", $r, [
7906
7925
  o("div", {
7907
7926
  class: "close iconfont",
7908
7927
  onClick: e[0] || (e[0] = (n) => i.showPort = !1)
@@ -7910,19 +7929,19 @@ function os(a, e, t, r, i, s) {
7910
7929
  o("div", es, [
7911
7930
  o("div", ts, [
7912
7931
  e[2] || (e[2] = o("label", null, "Name : ", -1)),
7913
- o("span", null, I(i.form.name), 1)
7932
+ o("span", null, E(i.form.name), 1)
7914
7933
  ]),
7915
7934
  o("div", as, [
7916
7935
  e[3] || (e[3] = o("label", null, "Position : ", -1)),
7917
- o("span", null, I(s.computeLat(i.form.lat)) + ", " + I(s.computeLng(i.form.lng)), 1)
7936
+ o("span", null, E(s.computeLat(i.form.lat)) + ", " + E(s.computeLng(i.form.lng)), 1)
7918
7937
  ]),
7919
7938
  o("div", is, [
7920
7939
  e[4] || (e[4] = o("label", null, "LoCode : ", -1)),
7921
- o("span", null, I(i.form.loCode || "-"), 1)
7940
+ o("span", null, E(i.form.loCode || "-"), 1)
7922
7941
  ]),
7923
7942
  o("div", rs, [
7924
7943
  e[5] || (e[5] = o("label", null, "Region : ", -1)),
7925
- o("span", null, I(i.form.zoneName || "-"), 1)
7944
+ o("span", null, E(i.form.zoneName || "-"), 1)
7926
7945
  ]),
7927
7946
  o("div", ss, [
7928
7947
  o("span", {
@@ -8008,7 +8027,7 @@ const ns = /* @__PURE__ */ U(Zr, [["render", os], ["__scopeId", "data-v-39da1804
8008
8027
  }
8009
8028
  };
8010
8029
  function hs(a, e, t, r, i, s) {
8011
- return m(), g("div");
8030
+ return u(), g("div");
8012
8031
  }
8013
8032
  const cs = /* @__PURE__ */ U(ls, [["render", hs]]), ds = {
8014
8033
  name: "IdmTimezone",
@@ -8179,7 +8198,7 @@ const cs = /* @__PURE__ */ U(ls, [["render", hs]]), ds = {
8179
8198
  }
8180
8199
  };
8181
8200
  function ps(a, e, t, r, i, s) {
8182
- return m(), g("div");
8201
+ return u(), g("div");
8183
8202
  }
8184
8203
  const ms = /* @__PURE__ */ U(ds, [["render", ps]]), us = {
8185
8204
  name: "IdmVoluntaryReportingArea",
@@ -8273,7 +8292,7 @@ const ms = /* @__PURE__ */ U(ds, [["render", ps]]), us = {
8273
8292
  }
8274
8293
  };
8275
8294
  function gs(a, e, t, r, i, s) {
8276
- return m(), g("div");
8295
+ return u(), g("div");
8277
8296
  }
8278
8297
  const ys = /* @__PURE__ */ U(us, [["render", gs]]), fs = {
8279
8298
  name: "IdmSpecialArea",
@@ -8369,7 +8388,7 @@ const ys = /* @__PURE__ */ U(us, [["render", gs]]), fs = {
8369
8388
  }
8370
8389
  };
8371
8390
  function As(a, e, t, r, i, s) {
8372
- return m(), g("div");
8391
+ return u(), g("div");
8373
8392
  }
8374
8393
  const ws = /* @__PURE__ */ U(fs, [["render", As]]), vs = {
8375
8394
  name: "IdmTerminator",
@@ -8424,7 +8443,7 @@ const ws = /* @__PURE__ */ U(fs, [["render", As]]), vs = {
8424
8443
  }
8425
8444
  };
8426
8445
  function bs(a, e, t, r, i, s) {
8427
- return m(), g("div");
8446
+ return u(), g("div");
8428
8447
  }
8429
8448
  const Ls = /* @__PURE__ */ U(vs, [["render", bs]]);
8430
8449
  const Cs = {
@@ -8584,14 +8603,14 @@ const Cs = {
8584
8603
  }
8585
8604
  };
8586
8605
  function xs(a, e, t, r, i, s) {
8587
- return i.lngLat ? (m(), g("div", {
8606
+ return i.lngLat ? (u(), g("div", {
8588
8607
  key: 0,
8589
8608
  class: "lat-lng-tip",
8590
8609
  style: he({ right: i.right + "px", bottom: t.bottom })
8591
8610
  }, [
8592
- o("span", null, I(i.lngLat.lat.pretty), 1),
8611
+ o("span", null, E(i.lngLat.lat.pretty), 1),
8593
8612
  e[0] || (e[0] = o("span", null, ", ", -1)),
8594
- o("span", null, I(i.lngLat.lng.pretty), 1)
8613
+ o("span", null, E(i.lngLat.lng.pretty), 1)
8595
8614
  ], 4)) : J("", !0);
8596
8615
  }
8597
8616
  const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7"]]), _s = {
@@ -8660,41 +8679,41 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
8660
8679
  }
8661
8680
  },
8662
8681
  handleDrag(a) {
8663
- var t, r, i, s, n, l, c, p, h, d;
8682
+ var t, r, i, s, n, l, c, d, h, p;
8664
8683
  const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
8665
8684
  if ((e == null ? void 0 : e.split("-").length) === 2) {
8666
- const A = this.geojson.filter((k) => k.id === e.split("-")[0])[0];
8667
- this.pointMarkers[A.id].filter((k) => {
8668
- var _;
8669
- return ((_ = k._element) == null ? void 0 : _.id) === e;
8685
+ const v = this.geojson.filter((k) => k.id === e.split("-")[0])[0];
8686
+ this.pointMarkers[v.id].filter((k) => {
8687
+ var B;
8688
+ return ((B = k._element) == null ? void 0 : B.id) === e;
8670
8689
  })[0].setLngLat([(s = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : s.lng, (l = (n = a.target) == null ? void 0 : n._lngLat) == null ? void 0 : l.lat]);
8671
- let E;
8672
- A.features.forEach((k, _) => {
8690
+ let _;
8691
+ v.features.forEach((k, B) => {
8673
8692
  if (k.geometry.type === "Point" && k.properties.id == e.split("-")[1]) {
8674
- E = _;
8693
+ _ = B;
8675
8694
  return;
8676
8695
  }
8677
8696
  });
8678
- const w = A.features.filter((k) => k.geometry.type === "Point");
8697
+ const f = v.features.filter((k) => k.geometry.type === "Point");
8679
8698
  this.handleTmpPointUpdate(
8680
- A,
8681
- w[E - 1],
8682
- { lng: (p = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : p.lng, lat: (d = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : d.lat, properties: w[E].properties },
8683
- E === w.length - 1 ? void 0 : w[E + 1]
8699
+ v,
8700
+ f[_ - 1],
8701
+ { lng: (d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, lat: (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lat, properties: f[_].properties },
8702
+ _ === f.length - 1 ? void 0 : f[_ + 1]
8684
8703
  );
8685
8704
  }
8686
8705
  },
8687
8706
  handleDragEnd(a) {
8688
- var t, r, i, s, n, l, c, p, h, d;
8707
+ var t, r, i, s, n, l, c, d, h, p;
8689
8708
  const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
8690
8709
  if ((e == null ? void 0 : e.split("-").length) === 2) {
8691
- const A = this.geojson.filter((w) => w.id === e.split("-")[0])[0];
8692
- this.pointMarkers[A.id].filter((w) => {
8710
+ const v = this.geojson.filter((f) => f.id === e.split("-")[0])[0];
8711
+ this.pointMarkers[v.id].filter((f) => {
8693
8712
  var k;
8694
- return ((k = w._element) == null ? void 0 : k.id) === e;
8713
+ return ((k = f._element) == null ? void 0 : k.id) === e;
8695
8714
  })[0].setLngLat([(s = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : s.lng, (l = (n = a.target) == null ? void 0 : n._lngLat) == null ? void 0 : l.lat]);
8696
- const E = A.features.filter((w) => w.geometry.type === "Point" && w.properties.id == e.split("-")[1])[0];
8697
- E.geometry.coordinates = [(p = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : p.lng, (d = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : d.lat], A.features = A.features.filter((w) => w.geometry.type === "Point"), this.handlePointUpdate(A);
8715
+ const _ = v.features.filter((f) => f.geometry.type === "Point" && f.properties.id == e.split("-")[1])[0];
8716
+ _.geometry.coordinates = [(d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lat], v.features = v.features.filter((f) => f.geometry.type === "Point"), this.handlePointUpdate(v);
8698
8717
  }
8699
8718
  },
8700
8719
  handleContextmenu(a) {
@@ -8703,9 +8722,9 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
8703
8722
  const e = (s = (i = (r = a.originalEvent) == null ? void 0 : r.target) == null ? void 0 : i.parentElement) == null ? void 0 : s.id;
8704
8723
  if ((e == null ? void 0 : e.split("-").length) === 2) {
8705
8724
  const l = this.geojson.filter((c) => c.id === e.split("-")[0])[0].features.filter((c) => c.geometry.type === "Point");
8706
- if (l.length > 2 && l.filter((p) => p.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
8707
- const p = document.createElement("div");
8708
- p.className = "point-contextmenu-marker", p.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new je.Marker(p).setOffset([24, 0]).setLngLat([a.lngLat.lng, a.lngLat.lat]).addTo(this.map);
8725
+ if (l.length > 2 && l.filter((d) => d.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
8726
+ const d = document.createElement("div");
8727
+ d.className = "point-contextmenu-marker", d.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new Re.Marker(d).setOffset([24, 0]).setLngLat([a.lngLat.lng, a.lngLat.lat]).addTo(this.map);
8709
8728
  }
8710
8729
  }
8711
8730
  },
@@ -8714,15 +8733,15 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
8714
8733
  (t = this.contextmenu) == null || t.remove();
8715
8734
  const e = a.originalEvent.target.className;
8716
8735
  if (e === "marker-close") {
8717
- const c = (i = (r = a.originalEvent) == null ? void 0 : r.srcElement) == null ? void 0 : i.id, p = this.geojson.filter((h) => h.id === c)[0];
8718
- p && this.handleClear(p, !0), this.geojson = this.geojson.filter((h) => h.id !== c), !this.show && !((s = this.geojson) != null && s.some((h) => h.closed)) && this.handleUnbind();
8736
+ const c = (i = (r = a.originalEvent) == null ? void 0 : r.srcElement) == null ? void 0 : i.id, d = this.geojson.filter((h) => h.id === c)[0];
8737
+ d && this.handleClear(d, !0), this.geojson = this.geojson.filter((h) => h.id !== c), !this.show && !((s = this.geojson) != null && s.some((h) => h.closed)) && this.handleUnbind();
8719
8738
  } else if (e === "del-point") {
8720
- const c = (l = (n = a.originalEvent.target.id) == null ? void 0 : n.replace("del-", "")) == null ? void 0 : l.split("-"), p = this.geojson.filter((h) => h.id === c[0])[0];
8721
- p.features = p.features.filter((h) => h.geometry.type === "Point" && h.properties.id !== c[1]), this.handlePointUpdate(p);
8739
+ const c = (l = (n = a.originalEvent.target.id) == null ? void 0 : n.replace("del-", "")) == null ? void 0 : l.split("-"), d = this.geojson.filter((h) => h.id === c[0])[0];
8740
+ d.features = d.features.filter((h) => h.geometry.type === "Point" && h.properties.id !== c[1]), this.handlePointUpdate(d);
8722
8741
  } else if (e !== "marker-label" && this.show) {
8723
8742
  let c = this.geojson.at(-1);
8724
8743
  c || (c = S.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(c)), c.features = c.features.filter((h) => h.geometry.type === "Point");
8725
- const p = S.feature(
8744
+ const d = S.feature(
8726
8745
  {
8727
8746
  type: "Point",
8728
8747
  coordinates: [a.lngLat.lng, a.lngLat.lat]
@@ -8732,7 +8751,7 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
8732
8751
  mode: this.navigation
8733
8752
  }
8734
8753
  );
8735
- c.features.push(p), this.handlePointUpdate(c);
8754
+ c.features.push(d), this.handlePointUpdate(c);
8736
8755
  }
8737
8756
  },
8738
8757
  handlePointUpdate(a) {
@@ -8741,12 +8760,12 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
8741
8760
  let t = 0;
8742
8761
  const r = [];
8743
8762
  for (let i = 1; i < e.length; i++) {
8744
- const s = e[i - 1], n = e[i], l = s.properties, c = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, h = Re.calculateDistance(c, p, l.mode === "RL", 4), d = Re.calculateBearing(c, p, l.mode === "RL", 2);
8763
+ const s = e[i - 1], n = e[i], l = s.properties, c = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, d = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, h = je.calculateDistance(c, d, l.mode === "RL", 4), p = je.calculateBearing(c, d, l.mode === "RL", 2);
8745
8764
  t = oe.roundPrecision(t + h, 2);
8746
- let A;
8747
- l.mode === "RL" ? A = oe.convertToMonotonicLng([c, p]) : A = oe.convertToMonotonicLng(Re.interpolateCoordinates(c, p, 200));
8748
- const b = S.lineString(A.map((E) => [E.lng, E.lat]));
8749
- b.properties.dist = h, b.properties.bearing = d, b.properties.total = t, r.push(b);
8765
+ let v;
8766
+ l.mode === "RL" ? v = oe.convertToMonotonicLng([c, d]) : v = oe.convertToMonotonicLng(je.interpolateCoordinates(c, d, 200));
8767
+ const C = S.lineString(v.map((_) => [_.lng, _.lat]));
8768
+ C.properties.dist = h, C.properties.bearing = p, C.properties.total = t, r.push(C);
8750
8769
  }
8751
8770
  e.push(...r), a.total = t;
8752
8771
  }
@@ -8756,20 +8775,20 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
8756
8775
  const i = S.featureCollection([]);
8757
8776
  let s, n;
8758
8777
  if (e) {
8759
- const c = e.properties, p = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, h = { lng: t.lng, lat: t.lat };
8760
- s = Re.calculateDistance(p, h, c.mode === "RL", 4), n = Re.calculateBearing(p, h, c.mode === "RL", 2);
8761
- let d;
8762
- c.mode === "RL" ? d = oe.convertToMonotonicLng([p, h]) : d = oe.convertToMonotonicLng(Re.interpolateCoordinates(p, h, 200));
8763
- const A = S.lineString(d.map((b) => [b.lng, b.lat]));
8764
- A.properties.dist = s, A.properties.bearing = n, i.features.push(A);
8778
+ const c = e.properties, d = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, h = { lng: t.lng, lat: t.lat };
8779
+ s = je.calculateDistance(d, h, c.mode === "RL", 4), n = je.calculateBearing(d, h, c.mode === "RL", 2);
8780
+ let p;
8781
+ c.mode === "RL" ? p = oe.convertToMonotonicLng([d, h]) : p = oe.convertToMonotonicLng(je.interpolateCoordinates(d, h, 200));
8782
+ const v = S.lineString(p.map((C) => [C.lng, C.lat]));
8783
+ v.properties.dist = s, v.properties.bearing = n, i.features.push(v);
8765
8784
  }
8766
8785
  if (r) {
8767
- const c = t.properties, p = t, h = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
8768
- s = Re.calculateDistance(p, h, c.mode === "RL", 4), n = Re.calculateBearing(p, h, c.mode === "RL", 2);
8769
- let d;
8770
- c.mode === "RL" ? d = oe.convertToMonotonicLng([p, h]) : d = oe.convertToMonotonicLng(Re.interpolateCoordinates(p, h, 200));
8771
- const A = S.lineString(d.map((b) => [b.lng, b.lat]));
8772
- A.properties.dist = s, A.properties.bearing = n, i.features.push(A);
8786
+ const c = t.properties, d = t, h = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
8787
+ s = je.calculateDistance(d, h, c.mode === "RL", 4), n = je.calculateBearing(d, h, c.mode === "RL", 2);
8788
+ let p;
8789
+ c.mode === "RL" ? p = oe.convertToMonotonicLng([d, h]) : p = oe.convertToMonotonicLng(je.interpolateCoordinates(d, h, 200));
8790
+ const v = S.lineString(p.map((C) => [C.lng, C.lat]));
8791
+ v.properties.dist = s, v.properties.bearing = n, i.features.push(v);
8773
8792
  }
8774
8793
  this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
8775
8794
  type: "geojson",
@@ -8813,7 +8832,7 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
8813
8832
  this.tipMarker._element.innerHTML = l, this.tipMarker.setLngLat([t.lng, t.lat]);
8814
8833
  else {
8815
8834
  const c = document.createElement("div");
8816
- c.className = "tip-marker", c.innerHTML = l, this.tipMarker = new je.Marker(c).setOffset([140, 0]).setLngLat([t.lng, t.lat]).addTo(this.map);
8835
+ c.className = "tip-marker", c.innerHTML = l, this.tipMarker = new Re.Marker(c).setOffset([140, 0]).setLngLat([t.lng, t.lat]).addTo(this.map);
8817
8836
  }
8818
8837
  },
8819
8838
  handleMove(a) {
@@ -8871,26 +8890,26 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
8871
8890
  for (const n of s) {
8872
8891
  const l = document.createElement("div");
8873
8892
  l.id = `${a.id}-${n.properties.id}`, l.className = `${a.closed ? "point-marker closed" : "point-marker"}`, l.innerHTML = '<div class="marker-circle"></div>';
8874
- const c = new je.Marker({ element: l, draggable: !0, contextmenu: !0 }).setLngLat(n.geometry.coordinates).addTo(this.map);
8893
+ const c = new Re.Marker({ element: l, draggable: !0, contextmenu: !0 }).setLngLat(n.geometry.coordinates).addTo(this.map);
8875
8894
  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];
8876
8895
  }
8877
8896
  if (a.closed) {
8878
- const n = s.at(-1), c = a.features.filter((h) => h.geometry.type === "LineString").at(-1), p = document.createElement("div");
8879
- p.className = "point-summary-marker", p.innerHTML = `<div id="${a.id}" class="marker-close">×</div><div class="marker-label">Total: ${c.properties.total}nm</div>`, this.closeMarkers[a.id] = new je.Marker(p).setOffset([60, 0]).setLngLat(n.geometry.coordinates).addTo(this.map);
8897
+ const n = s.at(-1), c = a.features.filter((h) => h.geometry.type === "LineString").at(-1), d = document.createElement("div");
8898
+ d.className = "point-summary-marker", d.innerHTML = `<div id="${a.id}" class="marker-close">×</div><div class="marker-label">Total: ${c.properties.total}nm</div>`, this.closeMarkers[a.id] = new Re.Marker(d).setOffset([60, 0]).setLngLat(n.geometry.coordinates).addTo(this.map);
8880
8899
  }
8881
8900
  }
8882
8901
  },
8883
8902
  handleClear(a, e = !0) {
8884
- var s, n, l, c, p, h, d, A, b;
8903
+ var s, n, l, c, d, h, p, v, C;
8885
8904
  const t = `${a.id}-${this.source}`, r = `${a.id}-${this.layer}`, i = `${a.id}-${this.labelLayer}`;
8886
- (s = this.map) != null && s.getLayer(r) && this.map.removeLayer(r), (n = this.map) != null && n.getLayer(i) && this.map.removeLayer(i), (l = this.map) != null && l.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (c = this.map) != null && c.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (p = this.closeMarkers[a.id]) == null || p.remove(), this.closeMarkers[a.id] = void 0, (h = this.pointMarkers[a.id]) == null || h.forEach((E) => {
8887
- E == null || E.remove();
8888
- }), this.pointMarkers[a.id] = [], (d = this.tipMarker) == null || d.remove(), this.tipMarker = void 0, e && ((A = this.map) != null && A.getSource(t)) && this.map.removeSource(t), e && ((b = this.map) != null && b.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
8905
+ (s = this.map) != null && s.getLayer(r) && this.map.removeLayer(r), (n = this.map) != null && n.getLayer(i) && this.map.removeLayer(i), (l = this.map) != null && l.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (c = this.map) != null && c.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (d = this.closeMarkers[a.id]) == null || d.remove(), this.closeMarkers[a.id] = void 0, (h = this.pointMarkers[a.id]) == null || h.forEach((_) => {
8906
+ _ == null || _.remove();
8907
+ }), this.pointMarkers[a.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((v = this.map) != null && v.getSource(t)) && this.map.removeSource(t), e && ((C = this.map) != null && C.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
8889
8908
  }
8890
8909
  }
8891
8910
  };
8892
8911
  function Bs(a, e, t, r, i, s) {
8893
- return m(), g("div");
8912
+ return u(), g("div");
8894
8913
  }
8895
8914
  const Is = /* @__PURE__ */ U(_s, [["render", Bs]]);
8896
8915
  const Es = {
@@ -8951,7 +8970,7 @@ const Es = {
8951
8970
  }, ks = { key: 0 }, Ds = { class: "bar-item" };
8952
8971
  function zs(a, e, t, r, i, s) {
8953
8972
  const n = R("ElTooltip");
8954
- return t.enabled && t.permission & i.helper.LEVEL.Supper ? (m(), g("div", ks, [
8973
+ return t.enabled && t.permission & i.helper.LEVEL.Supper ? (u(), g("div", ks, [
8955
8974
  o("div", {
8956
8975
  class: "menu-bar-box",
8957
8976
  style: he({ position: "absolute", right: i.right + "px", bottom: t.bottom })
@@ -9250,17 +9269,17 @@ const js = {
9250
9269
  },
9251
9270
  enc: {
9252
9271
  handler(a, e) {
9253
- var t, r, i, s, n, l, c, p;
9254
- a && this.map.getZoom() > 3 ? ((r = (t = this.map) == null ? void 0 : t.getLayer(a)) == null || r.setLayoutProperty("visibility", "visible"), (s = (i = this.map) == null ? void 0 : i.getLayer(e)) == null || s.setLayoutProperty("visibility", "none")) : ((l = (n = this.map) == null ? void 0 : n.getLayer("i4")) == null || l.setLayoutProperty("visibility", "none"), (p = (c = this.map) == null ? void 0 : c.getLayer("hi")) == null || p.setLayoutProperty("visibility", "none"));
9272
+ var t, r, i, s, n, l, c, d;
9273
+ a && this.map.getZoom() > 3 ? ((r = (t = this.map) == null ? void 0 : t.getLayer(a)) == null || r.setLayoutProperty("visibility", "visible"), (s = (i = this.map) == null ? void 0 : i.getLayer(e)) == null || s.setLayoutProperty("visibility", "none")) : ((l = (n = this.map) == null ? void 0 : n.getLayer("i4")) == null || l.setLayoutProperty("visibility", "none"), (d = (c = this.map) == null ? void 0 : c.getLayer("hi")) == null || d.setLayoutProperty("visibility", "none"));
9255
9274
  }
9256
9275
  },
9257
9276
  activeWeatherLayers: {
9258
9277
  handler() {
9259
- var t, r, i, s, n, l, c, p, h, d, A, b, E, w, k, _, f, v, u, C, y, L, T;
9278
+ var t, r, i, s, n, l, c, d, h, p, v, C, _, f, k, B, A, w, m, L, y, b, T;
9260
9279
  if (!this.map)
9261
9280
  return !1;
9262
9281
  const a = this.activeWeatherLayers.some((D) => D.key === "wind" && D.particle === !0 || D.key === "current" && D.particle === !0 || D.key === "ice-edge" || D.key === "ice-thickness" || D.key === "ice-cover" || D.key === "temp" || D.key === "water-temp"), e = this.activeWeatherLayers.some((D) => D.key === "visibility" || D.key === "precip3h");
9263
- this.activeWeatherLayers.length > 0 ? (!a && this.map.getZoom() > 3 && this.enc ? (r = (t = this.map) == null ? void 0 : t.getLayer(this.enc)) == null || r.setLayoutProperty("visibility", "visible") : ((s = (i = this.map) == null ? void 0 : i.getLayer("i4")) == null || s.setLayoutProperty("visibility", "none"), (l = (n = this.map) == null ? void 0 : n.getLayer("hi")) == null || l.setLayoutProperty("visibility", "none")), (p = (c = this.map) == null ? void 0 : c.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || p.setLayoutProperty("visibility", "visible"), (d = this.map) != null && d.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((A = this.map) != null && A.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((E = this.map) == null || E.moveLayer((b = this.viewport) == null ? void 0 : b.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), e && ((k = this.map) == null || k.moveLayer(this.helper.mapboxCustomer.layers.countryBoundary.id, (w = this.viewport) == null ? void 0 : w.rampColorLayer))) : ((f = (_ = this.map) == null ? void 0 : _.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || f.setLayoutProperty("visibility", "none"), this.enc && this.map.getZoom() > 3 ? (u = (v = this.map) == null ? void 0 : v.getLayer(this.enc)) == null || u.setLayoutProperty("visibility", "visible") : ((y = (C = this.map) == null ? void 0 : C.getLayer("i4")) == null || y.setLayoutProperty("visibility", "none"), (T = (L = this.map) == null ? void 0 : L.getLayer("hi")) == null || T.setLayoutProperty("visibility", "none"))), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
9282
+ this.activeWeatherLayers.length > 0 ? (!a && this.map.getZoom() > 3 && this.enc ? (r = (t = this.map) == null ? void 0 : t.getLayer(this.enc)) == null || r.setLayoutProperty("visibility", "visible") : ((s = (i = this.map) == null ? void 0 : i.getLayer("i4")) == null || s.setLayoutProperty("visibility", "none"), (l = (n = this.map) == null ? void 0 : n.getLayer("hi")) == null || l.setLayoutProperty("visibility", "none")), (d = (c = this.map) == null ? void 0 : c.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || d.setLayoutProperty("visibility", "visible"), (p = this.map) != null && p.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((v = this.map) != null && v.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((_ = this.map) == null || _.moveLayer((C = this.viewport) == null ? void 0 : C.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), e && ((k = this.map) == null || k.moveLayer(this.helper.mapboxCustomer.layers.countryBoundary.id, (f = this.viewport) == null ? void 0 : f.rampColorLayer))) : ((A = (B = this.map) == null ? void 0 : B.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || A.setLayoutProperty("visibility", "none"), this.enc && this.map.getZoom() > 3 ? (m = (w = this.map) == null ? void 0 : w.getLayer(this.enc)) == null || m.setLayoutProperty("visibility", "visible") : ((y = (L = this.map) == null ? void 0 : L.getLayer("i4")) == null || y.setLayoutProperty("visibility", "none"), (T = (b = this.map) == null ? void 0 : b.getLayer("hi")) == null || T.setLayoutProperty("visibility", "none"))), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
9264
9283
  },
9265
9284
  immediate: !0
9266
9285
  },
@@ -9312,87 +9331,87 @@ const js = {
9312
9331
  },
9313
9332
  methods: {
9314
9333
  async fetchWeatherLayers(a = { tropicals: !1 }) {
9315
- var i, s, n, l, c, p, h, d, A;
9334
+ var i, s, n, l, c, d, h, p, v;
9316
9335
  const e = (/* @__PURE__ */ new Date()).valueOf();
9317
9336
  let t = 0, r = 0;
9318
9337
  if (this.map) {
9319
- const b = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, E = (s = this.map) == null ? void 0 : s.getBounds(), w = `${E._sw.lng},${E._sw.lat},${E._ne.lng},${E._ne.lat}`;
9338
+ const C = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, _ = (s = this.map) == null ? void 0 : s.getBounds(), f = `${_._sw.lng},${_._sw.lat},${_._ne.lng},${_._ne.lat}`;
9320
9339
  if (this.particleFactor && ((n = this.$refs.layer) != null && n.autoActive)) {
9321
- const k = Ze.WEATHER_LAYERS.find((_) => {
9322
- var f;
9323
- return ((f = _.peer) == null ? void 0 : f.weight) === this.particleFactor.weight;
9340
+ const k = Ze.WEATHER_LAYERS.find((B) => {
9341
+ var A;
9342
+ return ((A = B.peer) == null ? void 0 : A.weight) === this.particleFactor.weight;
9324
9343
  });
9325
9344
  this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & k.weight ? this.weatherWeight : this.weatherWeight + k.weight : this.weatherWeight = this.weatherWeight & k.weight ? this.weatherWeight - k.weight : this.weatherWeight;
9326
9345
  }
9327
9346
  if (this.weatherWeight > 0) {
9328
- let k = this.weatherWeight, _;
9329
- if (a.tropicals || this.weatherWeight & 256 && (_ = this.weatherLayers.tropicals, _ && (k -= 256, _.version = Math.random() + 1)), k > 0) {
9330
- const f = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], v = await Qe.get(`${f}/api/arc/weather/layers2/links?l=${k}&v=${this.source}&z=${b}&bbox=${w}&t=${this.ts}`, {
9347
+ let k = this.weatherWeight, B;
9348
+ if (a.tropicals || this.weatherWeight & 256 && (B = this.weatherLayers.tropicals, B && (k -= 256, B.version = Math.random() + 1)), k > 0) {
9349
+ const A = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], w = await Qe.get(`${A}/api/arc/weather/layers2/links?l=${k}&v=${this.source}&z=${C}&bbox=${f}&t=${this.ts}`, {
9331
9350
  headers: {
9332
9351
  Authorization: this.token || this.defaultMeteoToken
9333
9352
  }
9334
9353
  });
9335
- if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((l = v == null ? void 0 : v.data) == null ? void 0 : l.code) === 0) {
9336
- const u = (c = v == null ? void 0 : v.data) == null ? void 0 : c.data, C = [];
9337
- for (const L in u)
9338
- L !== "tropicals" && C.push(
9339
- Qe.get(u[L], {
9354
+ if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((l = w == null ? void 0 : w.data) == null ? void 0 : l.code) === 0) {
9355
+ const m = (c = w == null ? void 0 : w.data) == null ? void 0 : c.data, L = [];
9356
+ for (const b in m)
9357
+ b !== "tropicals" && L.push(
9358
+ Qe.get(m[b], {
9340
9359
  headers: {
9341
9360
  Authorization: this.token || this.defaultMeteoToken,
9342
- key: L
9361
+ key: b
9343
9362
  },
9344
- responseType: /\.(jpg|png)$/.test(u[L]) ? "blob" : "json"
9363
+ responseType: /\.(jpg|png)$/.test(m[b]) ? "blob" : "json"
9345
9364
  }).catch((T) => {
9346
- console.log(`[${L}] fetch layer error: ${T}`);
9365
+ console.log(`[${b}] fetch layer error: ${T}`);
9347
9366
  })
9348
9367
  );
9349
- const y = await Promise.all(C);
9350
- this.weatherLayers = {}, y.map((L) => {
9368
+ const y = await Promise.all(L);
9369
+ this.weatherLayers = {}, y.map((b) => {
9351
9370
  var F, N, j, G;
9352
- const T = ((F = L == null ? void 0 : L.data) == null ? void 0 : F.data) || (L == null ? void 0 : L.data), D = (j = (N = L == null ? void 0 : L.config) == null ? void 0 : N.headers) == null ? void 0 : j.key;
9371
+ const T = ((F = b == null ? void 0 : b.data) == null ? void 0 : F.data) || (b == null ? void 0 : b.data), D = (j = (N = b == null ? void 0 : b.config) == null ? void 0 : N.headers) == null ? void 0 : j.key;
9353
9372
  D && T && (this.weatherLayers[D] = {
9354
9373
  raw: T,
9355
- type: ((G = L == null ? void 0 : L.config) == null ? void 0 : G.responseType) === "blob" ? "image" : "json",
9356
- etime: v.data.etime
9374
+ type: ((G = b == null ? void 0 : b.config) == null ? void 0 : G.responseType) === "blob" ? "image" : "json",
9375
+ etime: w.data.etime
9357
9376
  });
9358
- }), u.tropicals && Qe.get(u.tropicals, {
9377
+ }), m.tropicals && Qe.get(m.tropicals, {
9359
9378
  headers: {
9360
9379
  Authorization: this.token || this.defaultMeteoToken,
9361
9380
  key: "tropicals"
9362
9381
  }
9363
- }).then((L) => {
9382
+ }).then((b) => {
9364
9383
  var F, N, j;
9365
- const T = ct.convert2Geojson(((F = L == null ? void 0 : L.data) == null ? void 0 : F.data) || (L == null ? void 0 : L.data)), D = (j = (N = L == null ? void 0 : L.config) == null ? void 0 : N.headers) == null ? void 0 : j.key;
9384
+ const T = ct.convert2Geojson(((F = b == null ? void 0 : b.data) == null ? void 0 : F.data) || (b == null ? void 0 : b.data)), D = (j = (N = b == null ? void 0 : b.config) == null ? void 0 : N.headers) == null ? void 0 : j.key;
9366
9385
  this.weatherLayers[D] = {
9367
9386
  data: T,
9368
9387
  active: !0,
9369
9388
  cached: !1,
9370
9389
  type: "json",
9371
- etime: v.data.etime,
9390
+ etime: w.data.etime,
9372
9391
  version: Math.random() + 1
9373
9392
  };
9374
9393
  });
9375
9394
  }
9376
9395
  if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather layers elapsed: ", r, ", total: ", t += r), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
9377
- const u = (p = this.weatherLayers["swell-direction"]) == null ? void 0 : p.raw, C = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
9396
+ const m = (d = this.weatherLayers["swell-direction"]) == null ? void 0 : d.raw, L = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
9378
9397
  delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
9379
9398
  type: "json",
9380
- direction: u,
9381
- height: { raw: C },
9382
- etime: v.data.etime
9399
+ direction: m,
9400
+ height: { raw: L },
9401
+ etime: w.data.etime
9383
9402
  };
9384
9403
  }
9385
9404
  if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
9386
- const u = (d = this.weatherLayers["current-direction"]) == null ? void 0 : d.raw, C = (A = this.weatherLayers["current-speed"]) == null ? void 0 : A.raw;
9405
+ const m = (p = this.weatherLayers["current-direction"]) == null ? void 0 : p.raw, L = (v = this.weatherLayers["current-speed"]) == null ? void 0 : v.raw;
9387
9406
  delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
9388
9407
  type: "json",
9389
- direction: u,
9390
- speed: { raw: C },
9391
- etime: v.data.etime
9408
+ direction: m,
9409
+ speed: { raw: L },
9410
+ etime: w.data.etime
9392
9411
  };
9393
9412
  }
9394
9413
  }
9395
- _ && (_.etime = this.ts, _.cached = !0, this.weatherLayers.tropicals = _);
9414
+ B && (B.etime = this.ts, B.cached = !0, this.weatherLayers.tropicals = B);
9396
9415
  }
9397
9416
  this.handleWeatherLayerToggle(), this.handleDrawWeather4Json();
9398
9417
  }
@@ -9403,58 +9422,58 @@ const js = {
9403
9422
  if (this.map) {
9404
9423
  let s = this.otherWeight;
9405
9424
  if (s) {
9406
- let n = !1, l = !1, c = !1, p = !1;
9407
- if (this.otherWeight & 2048 && (s = this.otherWeight - 2048, n = !0), this.otherWeight & 8192 && (s = s - 8192, l = !0), this.otherWeight & 16384 && (s = s - 16384, c = !0), this.otherWeight & 32768 && (s = s - 32768, p = !0), s) {
9425
+ let n = !1, l = !1, c = !1, d = !1;
9426
+ if (this.otherWeight & 2048 && (s = this.otherWeight - 2048, n = !0), this.otherWeight & 8192 && (s = s - 8192, l = !0), this.otherWeight & 16384 && (s = s - 16384, c = !0), this.otherWeight & 32768 && (s = s - 32768, d = !0), s) {
9408
9427
  if (a.all) {
9409
- const h = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], d = await Qe.get(`${h}/api/arc/other/layers/links?l=${s}&t=${this.ts}`, {
9428
+ const h = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], p = await Qe.get(`${h}/api/arc/other/layers/links?l=${s}&t=${this.ts}`, {
9410
9429
  headers: {
9411
9430
  Authorization: this.token || this.defaultMeteoToken
9412
9431
  }
9413
9432
  });
9414
- if (((e = d == null ? void 0 : d.data) == null ? void 0 : e.code) === 0) {
9415
- const A = (t = d == null ? void 0 : d.data) == null ? void 0 : t.data, b = [];
9416
- for (const w in A)
9417
- b.push(
9418
- Qe.get(A[w], {
9433
+ if (((e = p == null ? void 0 : p.data) == null ? void 0 : e.code) === 0) {
9434
+ const v = (t = p == null ? void 0 : p.data) == null ? void 0 : t.data, C = [];
9435
+ for (const f in v)
9436
+ C.push(
9437
+ Qe.get(v[f], {
9419
9438
  headers: {
9420
9439
  Authorization: this.token || this.defaultMeteoToken,
9421
- key: w
9440
+ key: f
9422
9441
  }
9423
9442
  })
9424
9443
  );
9425
- const E = await Promise.all(b);
9426
- this.otherLayers = { enc: n, world12nm: l, worldMarine: c, chinaRoute: p }, E.map((w) => {
9427
- var f, v, u;
9428
- const k = ((f = w == null ? void 0 : w.data) == null ? void 0 : f.data) || (w == null ? void 0 : w.data), _ = (u = (v = w == null ? void 0 : w.config) == null ? void 0 : v.headers) == null ? void 0 : u.key;
9429
- this.otherLayers[_] = k;
9444
+ const _ = await Promise.all(C);
9445
+ this.otherLayers = { enc: n, world12nm: l, worldMarine: c, chinaRoute: d }, _.map((f) => {
9446
+ var A, w, m;
9447
+ const k = ((A = f == null ? void 0 : f.data) == null ? void 0 : A.data) || (f == null ? void 0 : f.data), B = (m = (w = f == null ? void 0 : f.config) == null ? void 0 : w.headers) == null ? void 0 : m.key;
9448
+ this.otherLayers[B] = k;
9430
9449
  });
9431
9450
  }
9432
9451
  } else if (a.dayNight && s & 1024) {
9433
- const h = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], d = await Qe.get(`${h}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
9452
+ const h = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], p = await Qe.get(`${h}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
9434
9453
  headers: {
9435
9454
  Authorization: this.token || this.defaultMeteoToken
9436
9455
  }
9437
9456
  });
9438
- if (((r = d == null ? void 0 : d.data) == null ? void 0 : r.code) === 0) {
9439
- const A = (i = d == null ? void 0 : d.data) == null ? void 0 : i.data, b = [];
9440
- for (const w in A)
9441
- b.push(
9442
- Qe.get(A[w], {
9457
+ if (((r = p == null ? void 0 : p.data) == null ? void 0 : r.code) === 0) {
9458
+ const v = (i = p == null ? void 0 : p.data) == null ? void 0 : i.data, C = [];
9459
+ for (const f in v)
9460
+ C.push(
9461
+ Qe.get(v[f], {
9443
9462
  headers: {
9444
9463
  Authorization: this.token || this.defaultMeteoToken,
9445
- key: w
9464
+ key: f
9446
9465
  }
9447
9466
  })
9448
9467
  );
9449
- (await Promise.all(b)).map((w) => {
9450
- var f, v, u;
9451
- const k = ((f = w == null ? void 0 : w.data) == null ? void 0 : f.data) || (w == null ? void 0 : w.data), _ = (u = (v = w == null ? void 0 : w.config) == null ? void 0 : v.headers) == null ? void 0 : u.key;
9452
- this.otherLayers[_] = k;
9468
+ (await Promise.all(C)).map((f) => {
9469
+ var A, w, m;
9470
+ const k = ((A = f == null ? void 0 : f.data) == null ? void 0 : A.data) || (f == null ? void 0 : f.data), B = (m = (w = f == null ? void 0 : f.config) == null ? void 0 : w.headers) == null ? void 0 : m.key;
9471
+ this.otherLayers[B] = k;
9453
9472
  });
9454
9473
  }
9455
9474
  }
9456
9475
  } else
9457
- this.otherLayers = { enc: n, world12nm: l, worldMarine: c, chinaRoute: p };
9476
+ this.otherLayers = { enc: n, world12nm: l, worldMarine: c, chinaRoute: d };
9458
9477
  } else
9459
9478
  this.otherLayers = {};
9460
9479
  this.handleBeforeLayerToggle();
@@ -9470,7 +9489,7 @@ const js = {
9470
9489
  this.activeWindLayer = !!this.activeWeatherLayers.find((e) => e.key === "wind"), this.$refs.layer && (this.$refs.layer.activeWeatherLayers = this.activeWeatherLayers);
9471
9490
  },
9472
9491
  handleRampColorInitial() {
9473
- var a, e, t, r, i, s, n, l, c, p, h, d;
9492
+ var a, e, t, r, i, s, n, l, c, d, h, p;
9474
9493
  this.viewport.map.getSource((a = this.viewport) == null ? void 0 : a.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
9475
9494
  type: "canvas",
9476
9495
  canvas: (t = this.viewport) == null ? void 0 : t.rampColorCanvas,
@@ -9491,11 +9510,11 @@ const js = {
9491
9510
  canvas: (c = this.viewport) == null ? void 0 : c.particleCanvas,
9492
9511
  animate: !0,
9493
9512
  coordinates: this.viewport.getBoundLngLat()
9494
- }), this.viewport.map.getLayer((p = this.viewport) == null ? void 0 : p.particleLayer) || this.viewport.map.addLayer(
9513
+ }), this.viewport.map.getLayer((d = this.viewport) == null ? void 0 : d.particleLayer) || this.viewport.map.addLayer(
9495
9514
  {
9496
9515
  type: "raster",
9497
9516
  id: (h = this.viewport) == null ? void 0 : h.particleLayer,
9498
- source: (d = this.viewport) == null ? void 0 : d.particleSource,
9517
+ source: (p = this.viewport) == null ? void 0 : p.particleSource,
9499
9518
  layout: {
9500
9519
  visibility: "none"
9501
9520
  }
@@ -9504,253 +9523,253 @@ const js = {
9504
9523
  );
9505
9524
  },
9506
9525
  handleDrawWeather4Json() {
9507
- var p, h, d, A, b, E;
9526
+ var d, h, p, v, C, _;
9508
9527
  const a = (/* @__PURE__ */ new Date()).valueOf();
9509
9528
  let e = 0, t = 0;
9510
- const r = (p = this.map) == null ? void 0 : p.getBounds(), i = this.map.getZoom(), s = oe.convertToStdLng(r._sw.lng), n = oe.convertToStdLng(r._ne.lng), l = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
9511
- for (const w in this.weatherLayers) {
9529
+ const r = (d = this.map) == null ? void 0 : d.getBounds(), i = this.map.getZoom(), s = oe.convertToStdLng(r._sw.lng), n = oe.convertToStdLng(r._ne.lng), l = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
9530
+ for (const f in this.weatherLayers) {
9512
9531
  let k = !1;
9513
- if (this.weatherLayers[w].active && this.weatherLayers[w].type === "json") {
9514
- let _ = [];
9515
- if (w === "swell") {
9532
+ if (this.weatherLayers[f].active && this.weatherLayers[f].type === "json") {
9533
+ let B = [];
9534
+ if (f === "swell") {
9516
9535
  k = !0;
9517
- const f = ((h = this.weatherLayers[w]) == null ? void 0 : h.direction) || {};
9518
- for (const u in f)
9519
- if (u > l && u < c && (!(i <= this.zoom) || u % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9520
- const C = f[u].lng;
9521
- s > n ? C.forEach((y, L) => {
9536
+ const A = ((h = this.weatherLayers[f]) == null ? void 0 : h.direction) || {};
9537
+ for (const m in A)
9538
+ if (m > l && m < c && (!(i <= this.zoom) || m % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9539
+ const L = A[m].lng;
9540
+ s > n ? L.forEach((y, b) => {
9522
9541
  var T, D, F, N, j, G;
9523
9542
  if (i < 2) {
9524
9543
  if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
9525
- const W = S.point([y, u], {
9526
- val: ((T = f[u].val) == null ? void 0 : T[L]) || ((D = f[u].dir) == null ? void 0 : D[L]),
9527
- spd: (F = f[u].spd) == null ? void 0 : F[L]
9544
+ const W = S.point([y, m], {
9545
+ val: ((T = A[m].val) == null ? void 0 : T[b]) || ((D = A[m].dir) == null ? void 0 : D[b]),
9546
+ spd: (F = A[m].spd) == null ? void 0 : F[b]
9528
9547
  });
9529
- _.push(W);
9548
+ B.push(W);
9530
9549
  }
9531
9550
  } else if ((y >= s && y <= 180 || y >= -180 && y <= n) && (!(i <= this.zoom) || y % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9532
- const W = S.point([y, u], {
9533
- val: ((N = f[u].val) == null ? void 0 : N[L]) || ((j = f[u].dir) == null ? void 0 : j[L]),
9534
- spd: (G = f[u].spd) == null ? void 0 : G[L]
9551
+ const W = S.point([y, m], {
9552
+ val: ((N = A[m].val) == null ? void 0 : N[b]) || ((j = A[m].dir) == null ? void 0 : j[b]),
9553
+ spd: (G = A[m].spd) == null ? void 0 : G[b]
9535
9554
  });
9536
- _.push(W);
9555
+ B.push(W);
9537
9556
  }
9538
- }) : C.forEach((y, L) => {
9557
+ }) : L.forEach((y, b) => {
9539
9558
  var T, D, F, N, j, G;
9540
9559
  if (s < 2) {
9541
9560
  if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
9542
- const W = S.point([y, u], {
9543
- val: ((T = f[u].val) == null ? void 0 : T[L]) || ((D = f[u].dir) == null ? void 0 : D[L]),
9544
- spd: (F = f[u].spd) == null ? void 0 : F[L]
9561
+ const W = S.point([y, m], {
9562
+ val: ((T = A[m].val) == null ? void 0 : T[b]) || ((D = A[m].dir) == null ? void 0 : D[b]),
9563
+ spd: (F = A[m].spd) == null ? void 0 : F[b]
9545
9564
  });
9546
- _.push(W);
9565
+ B.push(W);
9547
9566
  }
9548
9567
  } else if (y >= s && y <= n && (!(i <= this.zoom) || y % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9549
- const W = S.point([y, u], {
9550
- val: ((N = f[u].val) == null ? void 0 : N[L]) || ((j = f[u].dir) == null ? void 0 : j[L]),
9551
- spd: (G = f[u].spd) == null ? void 0 : G[L]
9568
+ const W = S.point([y, m], {
9569
+ val: ((N = A[m].val) == null ? void 0 : N[b]) || ((j = A[m].dir) == null ? void 0 : j[b]),
9570
+ spd: (G = A[m].spd) == null ? void 0 : G[b]
9552
9571
  });
9553
- _.push(W);
9572
+ B.push(W);
9554
9573
  }
9555
9574
  });
9556
9575
  }
9557
9576
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("swell direction elapsed: ", t, ", total: ", e += t);
9558
- const v = this.weatherLayers[w].height;
9559
- if (v) {
9560
- if (!v.data) {
9561
- const u = [];
9562
- for (const C in (d = v.raw) == null ? void 0 : d.LineString) {
9563
- const y = v.raw.LineString[C];
9564
- for (const L of y)
9565
- u.push(
9566
- S.lineString(L, {
9567
- val: Number(C)
9577
+ const w = this.weatherLayers[f].height;
9578
+ if (w) {
9579
+ if (!w.data) {
9580
+ const m = [];
9581
+ for (const L in (p = w.raw) == null ? void 0 : p.LineString) {
9582
+ const y = w.raw.LineString[L];
9583
+ for (const b of y)
9584
+ m.push(
9585
+ S.lineString(b, {
9586
+ val: Number(L)
9568
9587
  })
9569
9588
  );
9570
- v.data = S.featureCollection(u);
9589
+ w.data = S.featureCollection(m);
9571
9590
  }
9572
9591
  }
9573
- if (v.data) {
9574
- const u = this.handleBboxClip(v.data, r);
9575
- _ = _.concat(u);
9592
+ if (w.data) {
9593
+ const m = this.handleBboxClip(w.data, r);
9594
+ B = B.concat(m);
9576
9595
  }
9577
9596
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("swell height elapsed: ", t, ", total: ", e += t);
9578
9597
  }
9579
- } else if (w === "current" && this.showCurrentIsoband) {
9598
+ } else if (f === "current" && this.showCurrentIsoband) {
9580
9599
  k = !0;
9581
- const f = ((A = this.weatherLayers[w]) == null ? void 0 : A.direction) || {};
9582
- for (const u in f)
9583
- if (u > l && u < c && (!(i <= this.zoom) || u % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9584
- const C = f[u].lng;
9585
- s > n ? C.forEach((y, L) => {
9600
+ const A = ((v = this.weatherLayers[f]) == null ? void 0 : v.direction) || {};
9601
+ for (const m in A)
9602
+ if (m > l && m < c && (!(i <= this.zoom) || m % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9603
+ const L = A[m].lng;
9604
+ s > n ? L.forEach((y, b) => {
9586
9605
  var T, D, F, N, j, G;
9587
9606
  if (i < 2) {
9588
9607
  if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
9589
- const W = S.point([y, u], {
9590
- val: ((T = f[u].val) == null ? void 0 : T[L]) || ((D = f[u].dir) == null ? void 0 : D[L]),
9591
- spd: (F = f[u].spd) == null ? void 0 : F[L]
9608
+ const W = S.point([y, m], {
9609
+ val: ((T = A[m].val) == null ? void 0 : T[b]) || ((D = A[m].dir) == null ? void 0 : D[b]),
9610
+ spd: (F = A[m].spd) == null ? void 0 : F[b]
9592
9611
  });
9593
- _.push(W);
9612
+ B.push(W);
9594
9613
  }
9595
9614
  } else if ((y >= s && y <= 180 || y >= -180 && y <= n) && (!(i <= this.zoom) || y % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9596
- const W = S.point([y, u], {
9597
- val: ((N = f[u].val) == null ? void 0 : N[L]) || ((j = f[u].dir) == null ? void 0 : j[L]),
9598
- spd: (G = f[u].spd) == null ? void 0 : G[L]
9615
+ const W = S.point([y, m], {
9616
+ val: ((N = A[m].val) == null ? void 0 : N[b]) || ((j = A[m].dir) == null ? void 0 : j[b]),
9617
+ spd: (G = A[m].spd) == null ? void 0 : G[b]
9599
9618
  });
9600
- _.push(W);
9619
+ B.push(W);
9601
9620
  }
9602
- }) : C.forEach((y, L) => {
9621
+ }) : L.forEach((y, b) => {
9603
9622
  var T, D, F, N, j, G;
9604
9623
  if (s < 2) {
9605
9624
  if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
9606
- const W = S.point([y, u], {
9607
- val: ((T = f[u].val) == null ? void 0 : T[L]) || ((D = f[u].dir) == null ? void 0 : D[L]),
9608
- spd: (F = f[u].spd) == null ? void 0 : F[L]
9625
+ const W = S.point([y, m], {
9626
+ val: ((T = A[m].val) == null ? void 0 : T[b]) || ((D = A[m].dir) == null ? void 0 : D[b]),
9627
+ spd: (F = A[m].spd) == null ? void 0 : F[b]
9609
9628
  });
9610
- _.push(W);
9629
+ B.push(W);
9611
9630
  }
9612
9631
  } else if (y >= s && y <= n && (!(i <= this.zoom) || y % (i < this.zoom / 2 ? 5 : 3) === 0)) {
9613
- const W = S.point([y, u], {
9614
- val: ((N = f[u].val) == null ? void 0 : N[L]) || ((j = f[u].dir) == null ? void 0 : j[L]),
9615
- spd: (G = f[u].spd) == null ? void 0 : G[L]
9632
+ const W = S.point([y, m], {
9633
+ val: ((N = A[m].val) == null ? void 0 : N[b]) || ((j = A[m].dir) == null ? void 0 : j[b]),
9634
+ spd: (G = A[m].spd) == null ? void 0 : G[b]
9616
9635
  });
9617
- _.push(W);
9636
+ B.push(W);
9618
9637
  }
9619
9638
  });
9620
9639
  }
9621
9640
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current direction elapsed: ", t, ", total: ", e += t);
9622
- const v = this.weatherLayers[w].speed;
9623
- if (v) {
9624
- if (!v.data) {
9625
- const C = [];
9626
- for (const y in (b = v.raw) == null ? void 0 : b.Polygon) {
9627
- const L = v.raw.Polygon[y];
9628
- for (const T of L)
9629
- C.push(
9641
+ const w = this.weatherLayers[f].speed;
9642
+ if (w) {
9643
+ if (!w.data) {
9644
+ const L = [];
9645
+ for (const y in (C = w.raw) == null ? void 0 : C.Polygon) {
9646
+ const b = w.raw.Polygon[y];
9647
+ for (const T of b)
9648
+ L.push(
9630
9649
  S.polygon(T, {
9631
9650
  val: Number(y)
9632
9651
  })
9633
9652
  );
9634
9653
  }
9635
- v.data = S.featureCollection(C);
9654
+ w.data = S.featureCollection(L);
9636
9655
  }
9637
- const u = i < this.zoom ? v.data.features.filter((C) => C.properties.val > 0.5) : v.data.features;
9638
- _ = _.concat(u), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current speed elapsed: ", t, ", total: ", e += t);
9656
+ const m = i < this.zoom ? w.data.features.filter((L) => L.properties.val > 0.5) : w.data.features;
9657
+ B = B.concat(m), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current speed elapsed: ", t, ", total: ", e += t);
9639
9658
  }
9640
- } else if (w === "wind" && this.showWindFeather) {
9659
+ } else if (f === "wind" && this.showWindFeather) {
9641
9660
  k = !0;
9642
- const f = this.weatherLayers.wind.raw;
9643
- for (const v in f)
9644
- if (v > l && v < c && (!(i <= this.zoom) || v % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9645
- const u = f[v].lng;
9646
- s > n ? u.forEach((C, y) => {
9647
- var L, T, D, F;
9661
+ const A = this.weatherLayers.wind.raw;
9662
+ for (const w in A)
9663
+ if (w > l && w < c && (!(i <= this.zoom) || w % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9664
+ const m = A[w].lng;
9665
+ s > n ? m.forEach((L, y) => {
9666
+ var b, T, D, F;
9648
9667
  if (i < 2) {
9649
- if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
9650
- const N = S.point([C, v], {
9651
- dir: ((L = f[v].val) == null ? void 0 : L[y]) || ((T = f[v].dir) == null ? void 0 : T[y]),
9652
- spd: f[v].spd[y]
9668
+ if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
9669
+ const N = S.point([L, w], {
9670
+ dir: ((b = A[w].val) == null ? void 0 : b[y]) || ((T = A[w].dir) == null ? void 0 : T[y]),
9671
+ spd: A[w].spd[y]
9653
9672
  });
9654
- _.push(N);
9673
+ B.push(N);
9655
9674
  }
9656
- } else if ((C >= s && C <= 180 || C >= -180 && C <= n) && (!(i <= this.zoom) || C % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9657
- const N = S.point([C, v], {
9658
- dir: ((D = f[v].val) == null ? void 0 : D[y]) || ((F = f[v].dir) == null ? void 0 : F[y]),
9659
- spd: f[v].spd[y]
9675
+ } else if ((L >= s && L <= 180 || L >= -180 && L <= n) && (!(i <= this.zoom) || L % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9676
+ const N = S.point([L, w], {
9677
+ dir: ((D = A[w].val) == null ? void 0 : D[y]) || ((F = A[w].dir) == null ? void 0 : F[y]),
9678
+ spd: A[w].spd[y]
9660
9679
  });
9661
- _.push(N);
9680
+ B.push(N);
9662
9681
  }
9663
- }) : u.forEach((C, y) => {
9664
- var L, T, D, F;
9682
+ }) : m.forEach((L, y) => {
9683
+ var b, T, D, F;
9665
9684
  if (i < 2) {
9666
- if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
9667
- const N = S.point([C, v], {
9668
- dir: ((L = f[v].val) == null ? void 0 : L[y]) || ((T = f[v].dir) == null ? void 0 : T[y]),
9669
- spd: f[v].spd[y]
9685
+ if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
9686
+ const N = S.point([L, w], {
9687
+ dir: ((b = A[w].val) == null ? void 0 : b[y]) || ((T = A[w].dir) == null ? void 0 : T[y]),
9688
+ spd: A[w].spd[y]
9670
9689
  });
9671
- _.push(N);
9690
+ B.push(N);
9672
9691
  }
9673
- } else if (C >= s && C <= n && (!(i <= this.zoom) || C % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9674
- const N = S.point([C, v], {
9675
- dir: ((D = f[v].val) == null ? void 0 : D[y]) || ((F = f[v].dir) == null ? void 0 : F[y]),
9676
- spd: f[v].spd[y]
9692
+ } else if (L >= s && L <= n && (!(i <= this.zoom) || L % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9693
+ const N = S.point([L, w], {
9694
+ dir: ((D = A[w].val) == null ? void 0 : D[y]) || ((F = A[w].dir) == null ? void 0 : F[y]),
9695
+ spd: A[w].spd[y]
9677
9696
  });
9678
- _.push(N);
9697
+ B.push(N);
9679
9698
  }
9680
9699
  });
9681
9700
  }
9682
9701
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("wind barb elapsed: ", t, ", total: ", e += t);
9683
- } else if (w === "sig-wave-height") {
9684
- if (this.weatherLayers[w].data)
9685
- _ = this.weatherLayers[w].data;
9702
+ } else if (f === "sig-wave-height") {
9703
+ if (this.weatherLayers[f].data)
9704
+ B = this.weatherLayers[f].data;
9686
9705
  else {
9687
9706
  k = !0;
9688
- const f = this.weatherLayers[w].raw;
9689
- if (f) {
9690
- const v = [];
9691
- for (const u in f.Polygon) {
9692
- const C = f.Polygon[u];
9693
- for (const y of C)
9694
- v.push(
9707
+ const A = this.weatherLayers[f].raw;
9708
+ if (A) {
9709
+ const w = [];
9710
+ for (const m in A.Polygon) {
9711
+ const L = A.Polygon[m];
9712
+ for (const y of L)
9713
+ w.push(
9695
9714
  S.polygon(y, {
9696
- val: Number(u)
9715
+ val: Number(m)
9697
9716
  })
9698
9717
  );
9699
9718
  }
9700
- for (const u in f.MultiPolygon) {
9701
- const C = f.MultiPolygon[u];
9702
- for (const y of C)
9703
- v.push(
9719
+ for (const m in A.MultiPolygon) {
9720
+ const L = A.MultiPolygon[m];
9721
+ for (const y of L)
9722
+ w.push(
9704
9723
  S.multiPolygon(y, {
9705
- val: Number(u)
9724
+ val: Number(m)
9706
9725
  })
9707
9726
  );
9708
9727
  }
9709
- for (const u in f.Point) {
9710
- const C = f.Point[u];
9711
- for (let y = 0; y < ((E = C.lng) == null ? void 0 : E.length); y++)
9712
- v.push(
9713
- S.point([C.lng[y], u], {
9714
- val: Number(C.val[y])
9728
+ for (const m in A.Point) {
9729
+ const L = A.Point[m];
9730
+ for (let y = 0; y < ((_ = L.lng) == null ? void 0 : _.length); y++)
9731
+ w.push(
9732
+ S.point([L.lng[y], m], {
9733
+ val: Number(L.val[y])
9715
9734
  })
9716
9735
  );
9717
9736
  }
9718
- _ = _.concat(v);
9737
+ B = B.concat(w);
9719
9738
  }
9720
9739
  }
9721
9740
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("sigWave elapsed: ", t, ", total: ", e += t);
9722
- } else if (w === "prmsl") {
9723
- if (this.weatherLayers[w].data)
9724
- _ = this.weatherLayers[w].data;
9741
+ } else if (f === "prmsl") {
9742
+ if (this.weatherLayers[f].data)
9743
+ B = this.weatherLayers[f].data;
9725
9744
  else {
9726
9745
  k = !0;
9727
- const f = this.weatherLayers[w].raw;
9728
- if (f) {
9729
- const v = [];
9730
- for (const u in f.LineString) {
9731
- const C = f.LineString[u];
9732
- for (const y of C)
9733
- v.push(
9746
+ const A = this.weatherLayers[f].raw;
9747
+ if (A) {
9748
+ const w = [];
9749
+ for (const m in A.LineString) {
9750
+ const L = A.LineString[m];
9751
+ for (const y of L)
9752
+ w.push(
9734
9753
  S.lineString(y, {
9735
- val: Number(u)
9754
+ val: Number(m)
9736
9755
  })
9737
9756
  );
9738
9757
  }
9739
- for (const u in f.Point)
9740
- f.Point[u].lng.forEach((C, y) => {
9741
- C = oe.convertToStdLng(C), v.push(
9742
- S.point([C, u], {
9743
- val: f.Point[u].val[y],
9744
- type: f.Point[u].type[y]
9758
+ for (const m in A.Point)
9759
+ A.Point[m].lng.forEach((L, y) => {
9760
+ L = oe.convertToStdLng(L), w.push(
9761
+ S.point([L, m], {
9762
+ val: A.Point[m].val[y],
9763
+ type: A.Point[m].type[y]
9745
9764
  })
9746
9765
  );
9747
9766
  });
9748
- _ = _.concat(v);
9767
+ B = B.concat(w);
9749
9768
  }
9750
9769
  }
9751
9770
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("prmsl elapsed: ", t, ", total: ", e += t);
9752
9771
  }
9753
- _.length && (this.weatherLayers[w].data = S.featureCollection(_)), k && (this.weatherLayers[w].version = Math.random() + 1);
9772
+ B.length && (this.weatherLayers[f].data = S.featureCollection(B)), k && (this.weatherLayers[f].version = Math.random() + 1);
9754
9773
  }
9755
9774
  }
9756
9775
  },
@@ -9786,8 +9805,8 @@ const js = {
9786
9805
  this.handleBeforeLayerToggle();
9787
9806
  },
9788
9807
  handleBeforeLayerToggle() {
9789
- var a, e, t, r, i, s, n, l, c, p, h, d, A, b, E, w;
9790
- (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"] || (s = this.otherLayers) != null && s["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (l = this.otherLayers) != null && l.pirates || (c = this.otherLayers) != null && c.ports || (p = this.otherLayers) != null && p.enc || (h = this.otherLayers) != null && h.world12nm || (d = this.otherLayers) != null && d.worldMarine || (A = this.otherLayers) != null && A.chinaRoute || (b = this.otherLayers) != null && b["voluntary-reporting-area"] || (E = this.otherLayers) != null && E["eca-zones"] || (w = this.otherLayers) != null && w["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
9808
+ var a, e, t, r, i, s, n, l, c, d, h, p, v, C, _, f;
9809
+ (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"] || (s = this.otherLayers) != null && s["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (l = this.otherLayers) != null && l.pirates || (c = this.otherLayers) != null && c.ports || (d = this.otherLayers) != null && d.enc || (h = this.otherLayers) != null && h.world12nm || (p = this.otherLayers) != null && p.worldMarine || (v = this.otherLayers) != null && v.chinaRoute || (C = this.otherLayers) != null && C["voluntary-reporting-area"] || (_ = this.otherLayers) != null && _["eca-zones"] || (f = this.otherLayers) != null && f["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
9791
9810
  },
9792
9811
  handleDateChange(a = { tropicals: !1 }) {
9793
9812
  this.fetchWeatherLayers(a), this.fetchOtherLayers({ dayNight: !0 });
@@ -9821,8 +9840,8 @@ const js = {
9821
9840
  }
9822
9841
  },
9823
9842
  handle3dToggle(a) {
9824
- var e, t, r, i, s, n, l, c, p, h, d, A, b, E, w, k, _, f, v, u;
9825
- 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)) && ((s = this.map) == null || s.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (l = this.map) != null && l.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((h = this.map) == null || h.moveLayer((p = this.viewport) == null ? void 0 : p.particleLayer, this.helper.mapboxCustomer.layers.water.id))) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", (A = this.map) != null && A.getLayer((d = this.viewport) == null ? void 0 : d.rampColorLayer) && ((b = this.map) != null && b.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((w = this.map) == null || w.moveLayer((E = this.viewport) == null ? void 0 : E.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (_ = this.map) != null && _.getLayer((k = this.viewport) == null ? void 0 : k.particleLayer) && ((f = this.map) != null && f.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((u = this.map) == null || u.moveLayer((v = this.viewport) == null ? void 0 : v.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
9843
+ var e, t, r, i, s, n, l, c, d, h, p, v, C, _, f, k, B, A, w, m;
9844
+ 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)) && ((s = this.map) == null || s.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (l = this.map) != null && l.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((h = this.map) == null || h.moveLayer((d = this.viewport) == null ? void 0 : d.particleLayer, this.helper.mapboxCustomer.layers.water.id))) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", (v = this.map) != null && v.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((C = this.map) != null && C.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((f = this.map) == null || f.moveLayer((_ = this.viewport) == null ? void 0 : _.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (B = this.map) != null && B.getLayer((k = this.viewport) == null ? void 0 : k.particleLayer) && ((A = this.map) != null && A.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((m = this.map) == null || m.moveLayer((w = this.viewport) == null ? void 0 : w.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
9826
9845
  },
9827
9846
  handleParticle(a) {
9828
9847
  this.particleFactor = a, this.weatherLayers[a.key] && (this.weatherLayers[a.key].particle = a.particle), this.activeWeatherLayers.map((r) => {
@@ -9846,9 +9865,9 @@ const js = {
9846
9865
  class: "map-gl-home"
9847
9866
  };
9848
9867
  function Gs(a, e, t, r, i, s) {
9849
- var te, fe, pe, Ae, xe, be, _e, B, ze, Le, Pe, Ee, He, ke, se, ce, Q, Be, K, q, Me, P, de, De, Se, Te, z, O, Ge, Ue;
9850
- const n = R("IdmGlLayer"), l = R("IdmENC"), c = R("IdmWorld12nm"), p = R("IdmWorldMarine"), h = R("IdmChinaRoute"), d = R("IdmSigWave"), A = R("IdmSwell"), b = R("IdmPrmsl"), E = R("IdmIceEdge"), w = R("IdmIceCover"), k = R("IdmIceThickness"), _ = R("IdmTropicals"), f = R("IdmCurrents"), v = R("IdmCurrentParticle"), u = R("IdmWindBarb"), C = R("IdmWindParticle"), y = R("IdmPrecip3h"), L = R("IdmVisibility"), T = R("IdmWaterTemp"), D = R("IdmTemp"), F = R("IdmWarZone"), N = R("IdmGmdssArea"), j = R("IdmEcaZone"), G = R("IdmAlertZone"), W = R("IdmPort"), me = R("IdmLoadLine"), re = R("IdmTimezone"), ue = R("IdmVRA"), we = R("IdmSpecialArea"), ge = R("IdmTerminator"), ve = R("IdmLatLng"), ye = R("IdmMeasure"), Y = R("IdmPoint");
9851
- return t.map ? (m(), g("div", Ws, [
9868
+ var te, fe, pe, Ae, xe, be, _e, I, ze, Le, Pe, Ee, He, ke, se, ce, Q, Be, K, q, Me, P, de, De, Se, Te, z, O, Ge, Ue;
9869
+ const n = R("IdmGlLayer"), l = R("IdmENC"), c = R("IdmWorld12nm"), d = R("IdmWorldMarine"), h = R("IdmChinaRoute"), p = R("IdmSigWave"), v = R("IdmSwell"), C = R("IdmPrmsl"), _ = R("IdmIceEdge"), f = R("IdmIceCover"), k = R("IdmIceThickness"), B = R("IdmTropicals"), A = R("IdmCurrents"), w = R("IdmCurrentParticle"), m = R("IdmWindBarb"), L = R("IdmWindParticle"), y = R("IdmPrecip3h"), b = R("IdmVisibility"), T = R("IdmWaterTemp"), D = R("IdmTemp"), F = R("IdmWarZone"), N = R("IdmGmdssArea"), j = R("IdmEcaZone"), G = R("IdmAlertZone"), W = R("IdmPort"), me = R("IdmLoadLine"), re = R("IdmTimezone"), ue = R("IdmVRA"), we = R("IdmSpecialArea"), ge = R("IdmTerminator"), ve = R("IdmLatLng"), ye = R("IdmMeasure"), Y = R("IdmPoint");
9870
+ return t.map ? (u(), g("div", Ws, [
9852
9871
  H(n, X({
9853
9872
  ref: "layer",
9854
9873
  map: t.map,
@@ -9894,7 +9913,7 @@ function Gs(a, e, t, r, i, s) {
9894
9913
  "weather-layers": i.weatherLayers,
9895
9914
  enabled: (fe = i.otherLayers) == null ? void 0 : fe.world12nm
9896
9915
  }, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
9897
- H(p, X({
9916
+ H(d, X({
9898
9917
  map: t.map,
9899
9918
  token: t.token,
9900
9919
  "weather-layers": i.weatherLayers,
@@ -9906,31 +9925,31 @@ function Gs(a, e, t, r, i, s) {
9906
9925
  "weather-layers": i.weatherLayers,
9907
9926
  enabled: (Ae = i.otherLayers) == null ? void 0 : Ae.chinaRoute
9908
9927
  }, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
9909
- H(d, X({
9928
+ H(p, X({
9910
9929
  map: t.map,
9911
9930
  "sig-wave": (xe = i.weatherLayers) == null ? void 0 : xe["sig-wave-height"],
9912
9931
  "before-layer": t.beforeLayer,
9913
9932
  "active-weather-layers": i.activeWeatherLayers
9914
9933
  }, a.$attrs), null, 16, ["map", "sig-wave", "before-layer", "active-weather-layers"]),
9915
- H(A, X({
9934
+ H(v, X({
9916
9935
  map: t.map,
9917
9936
  swell: (be = i.weatherLayers) == null ? void 0 : be.swell,
9918
9937
  "before-layer": t.beforeLayer,
9919
9938
  "active-weather-layers": i.activeWeatherLayers
9920
9939
  }, a.$attrs), null, 16, ["map", "swell", "before-layer", "active-weather-layers"]),
9921
- H(b, X({
9940
+ H(C, X({
9922
9941
  map: t.map,
9923
9942
  prmsl: (_e = i.weatherLayers) == null ? void 0 : _e.prmsl,
9924
9943
  "before-layer": t.beforeLayer,
9925
9944
  "active-weather-layers": i.activeWeatherLayers
9926
9945
  }, a.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
9927
- H(E, X({
9946
+ H(_, X({
9928
9947
  viewport: i.viewport,
9929
- factor: (B = i.weatherLayers) == null ? void 0 : B["ice-edge"],
9948
+ factor: (I = i.weatherLayers) == null ? void 0 : I["ice-edge"],
9930
9949
  "toggle-version": t.toggleVersion,
9931
9950
  "before-layer": t.beforeLayer
9932
9951
  }, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
9933
- H(w, X({
9952
+ H(f, X({
9934
9953
  viewport: i.viewport,
9935
9954
  factor: (ze = i.weatherLayers) == null ? void 0 : ze["ice-cover"],
9936
9955
  "toggle-version": t.toggleVersion,
@@ -9942,13 +9961,13 @@ function Gs(a, e, t, r, i, s) {
9942
9961
  "toggle-version": t.toggleVersion,
9943
9962
  "before-layer": t.beforeLayer
9944
9963
  }, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
9945
- H(_, X({
9964
+ H(B, X({
9946
9965
  map: t.map,
9947
9966
  date: t.ts,
9948
9967
  tropicals: (Pe = i.weatherLayers) == null ? void 0 : Pe.tropicals,
9949
9968
  "before-layer": t.beforeLayer
9950
9969
  }, a.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
9951
- H(f, X({
9970
+ H(A, X({
9952
9971
  map: t.map,
9953
9972
  "map-projection": i.mapProjection,
9954
9973
  current: (Ee = i.weatherLayers) == null ? void 0 : Ee.current,
@@ -9963,13 +9982,13 @@ function Gs(a, e, t, r, i, s) {
9963
9982
  onParticle: s.handleParticle,
9964
9983
  onHandleToggleVersion: s.handleToggleVersion
9965
9984
  }), null, 16, ["map", "map-projection", "current", "before-layer", "show-current-isoband", "show-current-particle", "toggle-partice-version", "margin-bottom", "toggle-version", "weather-layers", "onParticle", "onHandleToggleVersion"]),
9966
- H(v, X({
9985
+ H(w, X({
9967
9986
  viewport: i.viewport,
9968
9987
  factor: (He = i.weatherLayers) == null ? void 0 : He["current-particle"],
9969
9988
  "before-layer": t.beforeLayer,
9970
9989
  "toggle-version": t.toggleVersion
9971
9990
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
9972
- H(u, X({
9991
+ H(m, X({
9973
9992
  ref: "windBarb",
9974
9993
  map: t.map,
9975
9994
  "map-projection": i.mapProjection,
@@ -9985,7 +10004,7 @@ function Gs(a, e, t, r, i, s) {
9985
10004
  "weather-layers": i.weatherLayers,
9986
10005
  onParticle: s.handleParticle
9987
10006
  }), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "show-wind-feather", "show-wind-particle", "toggle-partice-version", "toggle-version", "weather-layers", "onParticle"]),
9988
- H(C, X({
10007
+ H(L, X({
9989
10008
  viewport: i.viewport,
9990
10009
  factor: (ce = i.weatherLayers) == null ? void 0 : ce["wind-particle"],
9991
10010
  "before-layer": t.beforeLayer,
@@ -9997,7 +10016,7 @@ function Gs(a, e, t, r, i, s) {
9997
10016
  "before-layer": t.beforeLayer,
9998
10017
  "toggle-version": t.toggleVersion
9999
10018
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
10000
- H(L, X({
10019
+ H(b, X({
10001
10020
  viewport: i.viewport,
10002
10021
  factor: (Be = i.weatherLayers) == null ? void 0 : Be.visibility,
10003
10022
  "before-layer": t.beforeLayer,