@idmwx/idmui-gl3 6.2.9 → 6.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,15 +1,15 @@
1
1
  var mt = Object.defineProperty;
2
2
  var ut = (a, e, t) => e in a ? mt(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
- var ae = (a, e, t) => (ut(a, typeof e != "symbol" ? e + "" : e, t), t);
3
+ var ie = (a, e, t) => (ut(a, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  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";
9
- import * as S from "@turf/turf";
8
+ import { resolveComponent as R, openBlock as u, createElementBlock as g, createElementVNode as o, normalizeStyle as de, createVNode as F, withCtx as Ie, normalizeClass as Z, Fragment as V, renderList as $, toDisplayString as k, createCommentVNode as J, createBlock as gt, createTextVNode as ce, withDirectives as Fe, createStaticVNode as yt, vShow as Oe, defineComponent as ft, withModifiers as Ve, mergeProps as X } from "vue";
9
+ import * as T 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 ne, 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,14 +301,14 @@ 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
- style: he({ top: t.top + 10 + "px", right: i.right + "px" })
308
+ style: de({ top: t.top + 10 + "px", right: i.right + "px" })
309
309
  }, [
310
310
  o("div", bt, [
311
- H(n, {
311
+ F(n, {
312
312
  placement: "left",
313
313
  effect: "light",
314
314
  content: "Menu",
@@ -328,10 +328,10 @@ function aa(a, e, t, r, i, s) {
328
328
  ], 4),
329
329
  o("div", {
330
330
  class: "menu-bar-box",
331
- style: he({ top: t.top + 160 + "px", right: i.right + "px" })
331
+ style: de({ top: t.top + 160 + "px", right: i.right + "px" })
332
332
  }, [
333
333
  o("div", Lt, [
334
- H(n, {
334
+ F(n, {
335
335
  placement: "left",
336
336
  effect: "light",
337
337
  content: "Measure",
@@ -347,7 +347,7 @@ function aa(a, e, t, r, i, s) {
347
347
  ]),
348
348
  _: 1
349
349
  }),
350
- H(n, {
350
+ F(n, {
351
351
  placement: "left",
352
352
  effect: "light",
353
353
  content: "Point Meteo",
@@ -363,7 +363,7 @@ function aa(a, e, t, r, i, s) {
363
363
  ]),
364
364
  _: 1
365
365
  }),
366
- H(n, {
366
+ F(n, {
367
367
  placement: "left",
368
368
  effect: "light",
369
369
  content: "Grid",
@@ -379,7 +379,7 @@ function aa(a, e, t, r, i, s) {
379
379
  ]),
380
380
  _: 1
381
381
  }),
382
- H(n, {
382
+ F(n, {
383
383
  placement: "left",
384
384
  effect: "light",
385
385
  content: "3D",
@@ -397,10 +397,10 @@ 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
- style: he({ right: i.right + "px", bottom: "100px" })
403
+ style: de({ right: i.right + "px", bottom: "100px" })
404
404
  }, [
405
405
  o("div", Ct, [
406
406
  e[22] || (e[22] = o("div", { style: { margin: "2px 5px" } }, "Weather Layers", -1)),
@@ -409,46 +409,46 @@ 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
+ }, k(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))
448
448
  ], 4)) : J("", !0),
449
449
  o("div", {
450
450
  class: "available-layers flex-center",
451
- style: he({ top: t.top + "px", right: t.layerToggle ? "0px" : "-240px" })
451
+ style: de({ top: t.top + "px", right: t.layerToggle ? "0px" : "-240px" })
452
452
  }, [
453
453
  o("div", {
454
454
  class: Z(["list-box", t.layerToggle ? "right-bar" : ""])
@@ -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
+ F(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
+ }, k(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: (b) => 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, k(h.name), 1)
545
545
  ])
546
546
  ], 10, Yt);
547
547
  }), 128))
@@ -550,23 +550,23 @@ function aa(a, e, t, r, i, s) {
550
550
  o("div", Vt, [
551
551
  e[27] || (e[27] = o("span", { class: "layers-title" }, "Forecast Model", -1)),
552
552
  o("div", Zt, [
553
- H(c, {
553
+ F(c, {
554
554
  modelValue: i.source,
555
555
  "onUpdate:modelValue": e[16] || (e[16] = (h) => i.source = h),
556
556
  class: "layer-radio flex-col-start-start",
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 b, x, E, A, 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
+ ce(k(h.name) + " ", 1),
568
+ p !== 0 ? (u(), g("span", $t, k(h.resolution) + "km " + k(h.length) + "days", 1)) : J("", !0),
569
+ p === 0 ? (u(), g("div", ea, "Provides the best forecast")) : (E = (x = (b = h == null ? void 0 : h.update) == null ? void 0 : b.default) == null ? void 0 : x.meta) != null && E.initialisationTime ? (u(), g("div", ta, "Update: " + k(s.computeDateZ((_ = (B = (A = h == null ? void 0 : h.update) == null ? void 0 : A.default) == null ? void 0 : B.meta) == null ? void 0 : _.initialisationTime)), 1)) : J("", !0)
570
570
  ];
571
571
  }),
572
572
  _: 2
@@ -622,7 +622,7 @@ const ra = {
622
622
  return {
623
623
  source: "wind-barb-source",
624
624
  barbs: [0, 2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105],
625
- empty: S.featureCollection([]),
625
+ empty: T.featureCollection([]),
626
626
  right: 10,
627
627
  bottom: 125,
628
628
  windBarbLoaded: !1
@@ -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],
@@ -732,15 +732,15 @@ function sa(a, e, t, r, i, s) {
732
732
  const oa = /* @__PURE__ */ U(ra, [["render", sa]]);
733
733
  class et {
734
734
  constructor(e) {
735
- ae(this, "map");
736
- ae(this, "mercator");
737
- ae(this, "rampColorLayer");
738
- ae(this, "rampColorSource");
739
- ae(this, "particleLayer");
740
- ae(this, "particleSource");
741
- ae(this, "rampColorCanvas");
742
- ae(this, "particleCanvas");
743
- ae(this, "ratio");
735
+ ie(this, "map");
736
+ ie(this, "mercator");
737
+ ie(this, "rampColorLayer");
738
+ ie(this, "rampColorSource");
739
+ ie(this, "particleLayer");
740
+ ie(this, "particleSource");
741
+ ie(this, "rampColorCanvas");
742
+ ie(this, "particleCanvas");
743
+ ie(this, "ratio");
744
744
  this.map = e, this.mercator = new At(), this.rampColorLayer = "ramp-color-layer", this.rampColorSource = "ramp-color-source", this.particleLayer = "particle-layer", this.particleSource = "particle-source", this.rampColorCanvas = document.createElement("canvas"), this.particleCanvas = document.createElement("canvas"), this.ratio = window.devicePixelRatio;
745
745
  }
746
746
  /**
@@ -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, b] = this.mercator.px([l, i[1]], t), x = Math.round(this.mercator.size * Math.pow(2, t) * (n + c));
779
+ return [p, b, d + x, 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(), b = e.map.getZoom() + 1, x = e.getWorldCopy(p, b);
961
+ for (const E of x) {
962
+ const A = (E[0] - p[0]) * e.ratio, B = (E[1] - p[3]) * e.ratio, _ = E[2] * e.ratio, [f, v, m, L] = [A, _ + A, B, _ + B], y = new Float32Array([f, m, v, m, f, L, f, L, v, m, v, 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) {
@@ -1008,10 +1008,10 @@ class We {
1008
1008
  });
1009
1009
  }
1010
1010
  }
1011
- class ne {
1011
+ class le {
1012
1012
  }
1013
1013
  // 顶点渲染
1014
- ae(ne, "vertexSchema", `
1014
+ ie(le, "vertexSchema", `
1015
1015
  //canvas 坐标系上的坐标 (x, y)
1016
1016
  attribute vec2 a_position; //像素坐标
1017
1017
  attribute vec2 a_texCoord; //纹理坐标
@@ -1026,7 +1026,7 @@ ae(ne, "vertexSchema", `
1026
1026
  gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
1027
1027
  v_texCoord = a_texCoord;
1028
1028
  }`), // 类如风、流等u v双变量片元渲染
1029
- ae(ne, "uvFragmentSchema", `
1029
+ ie(le, "uvFragmentSchema", `
1030
1030
  precision mediump float;
1031
1031
  uniform sampler2D u_image;
1032
1032
  uniform vec2 u_range_u_v;
@@ -1046,7 +1046,7 @@ ae(ne, "uvFragmentSchema", `
1046
1046
 
1047
1047
  gl_FragColor = color;
1048
1048
  }`), // 类如浪、气压等单变量片元渲染
1049
- ae(ne, "fragmentSchema", `
1049
+ ie(le, "fragmentSchema", `
1050
1050
  precision mediump float;
1051
1051
  uniform sampler2D u_image; // 灰度
1052
1052
  uniform sampler2D u_color; // 色值映射
@@ -1059,7 +1059,7 @@ ae(ne, "fragmentSchema", `
1059
1059
  }`);
1060
1060
  class Ce {
1061
1061
  }
1062
- ae(Ce, "vertexSchema", `
1062
+ ie(Ce, "vertexSchema", `
1063
1063
  precision mediump float;
1064
1064
 
1065
1065
  attribute float a_index; // 索引
@@ -1083,7 +1083,7 @@ ae(Ce, "vertexSchema", `
1083
1083
  gl_PointSize = 1.0;
1084
1084
  // gl_PointSize = u_point;
1085
1085
  gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
1086
- }`), ae(Ce, "fragmentSchema", `
1086
+ }`), ie(Ce, "fragmentSchema", `
1087
1087
  precision mediump float;
1088
1088
 
1089
1089
  uniform sampler2D u_factor;
@@ -1105,7 +1105,7 @@ ae(Ce, "vertexSchema", `
1105
1105
 
1106
1106
  float f = 1.0 - uv.b;
1107
1107
  gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
1108
- }`), ae(Ce, "quadVertSchema", `
1108
+ }`), ie(Ce, "quadVertSchema", `
1109
1109
  precision mediump float;
1110
1110
 
1111
1111
  attribute vec2 a_pos;
@@ -1115,7 +1115,7 @@ ae(Ce, "vertexSchema", `
1115
1115
  void main() {
1116
1116
  v_tex_pos = a_pos;
1117
1117
  gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
1118
- }`), ae(Ce, "screenFragmentSchema", `
1118
+ }`), ie(Ce, "screenFragmentSchema", `
1119
1119
  precision mediump float;
1120
1120
 
1121
1121
  uniform sampler2D u_screen;
@@ -1127,7 +1127,7 @@ ae(Ce, "vertexSchema", `
1127
1127
  vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
1128
1128
  // a hack to guarantee opacity fade out even with a value close to 1.0
1129
1129
  gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
1130
- }`), ae(Ce, "updateFragmentSchema", `
1130
+ }`), ie(Ce, "updateFragmentSchema", `
1131
1131
  precision mediump float;
1132
1132
 
1133
1133
  uniform sampler2D u_particles;
@@ -1208,12 +1208,12 @@ ae(Ce, "vertexSchema", `
1208
1208
  }`);
1209
1209
  class na {
1210
1210
  constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
1211
- ae(this, "token");
1212
- ae(this, "mapboxCustomer");
1213
- ae(this, "i4");
1214
- ae(this, "hi");
1215
- ae(this, "td");
1216
- ae(this, "windy");
1211
+ ie(this, "token");
1212
+ ie(this, "mapboxCustomer");
1213
+ ie(this, "i4");
1214
+ ie(this, "hi");
1215
+ ie(this, "td");
1216
+ ie(this, "windy");
1217
1217
  this.token = e, this.mapboxCustomer = {
1218
1218
  source: this.initialOnlineStyle().sources.composite,
1219
1219
  layers: {
@@ -3210,7 +3210,7 @@ const la = {
3210
3210
  [1, "rgb(91, 136, 161)"]
3211
3211
  ];
3212
3212
  this.rampColor = this.webgl.setup(this.context, a);
3213
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.uvFragmentSchema);
3213
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, le.vertexSchema, le.uvFragmentSchema);
3214
3214
  this.program = e, this.aPositionBuffer = t;
3215
3215
  }
3216
3216
  this.handleParticleSetup();
@@ -3261,10 +3261,10 @@ 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
- style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
3267
+ style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
3268
3268
  }, e[0] || (e[0] = [
3269
3269
  o("span", null, "kts", -1),
3270
3270
  o("span", null, "0", -1),
@@ -3319,7 +3319,7 @@ const pa = {
3319
3319
  directionLayer: "current-direction-layer",
3320
3320
  speedLayer: "current-speed-layer",
3321
3321
  speedLabelLayer: "current-speed-label-layer",
3322
- empty: S.featureCollection([]),
3322
+ empty: T.featureCollection([]),
3323
3323
  right: 10,
3324
3324
  bottom: 95
3325
3325
  };
@@ -3538,7 +3538,7 @@ const ga = {
3538
3538
  [1, "rgb(195,194,194)"]
3539
3539
  ];
3540
3540
  this.rampColor = this.webgl.setup(this.context, a);
3541
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.uvFragmentSchema);
3541
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, le.vertexSchema, le.uvFragmentSchema);
3542
3542
  this.program = e, this.aPositionBuffer = t;
3543
3543
  }
3544
3544
  this.handleParticleSetup();
@@ -3594,10 +3594,10 @@ 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
- style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
3600
+ style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
3601
3601
  }, e[0] || (e[0] = [
3602
3602
  o("span", null, "kts", -1),
3603
3603
  o("span", null, "0", -1),
@@ -3630,7 +3630,7 @@ const Aa = /* @__PURE__ */ U(ga, [["render", fa], ["__scopeId", "data-v-c2962e63
3630
3630
  source: "sig-wave-source",
3631
3631
  heightLayer: "sig-wave-height-layer",
3632
3632
  heightLabelLayer: "sig-wave-height-label-layer",
3633
- empty: S.featureCollection([])
3633
+ empty: T.featureCollection([])
3634
3634
  };
3635
3635
  },
3636
3636
  watch: {
@@ -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",
@@ -3762,7 +3762,7 @@ const ba = /* @__PURE__ */ U(wa, [["render", va]]), La = {
3762
3762
  directionLayer: "swell-direction-layer",
3763
3763
  heightLayer: "swell-height-layer",
3764
3764
  heightLabelLayer: "swell-height-label-layer",
3765
- empty: S.featureCollection([])
3765
+ empty: T.featureCollection([])
3766
3766
  };
3767
3767
  },
3768
3768
  watch: {
@@ -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",
@@ -3923,7 +3923,7 @@ const xa = /* @__PURE__ */ U(La, [["render", Ca]]), _a = {
3923
3923
  layer: "prmsl-layer",
3924
3924
  labelLayer: "prmsl-label-layer",
3925
3925
  pointLabelLayer: "prmsl-point-label-layer",
3926
- empty: S.featureCollection([])
3926
+ empty: T.featureCollection([])
3927
3927
  };
3928
3928
  },
3929
3929
  watch: {
@@ -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 = {
@@ -4125,7 +4125,7 @@ const Ea = {
4125
4125
  // 100%
4126
4126
  ];
4127
4127
  this.rampColor = this.webgl.setup(this.context, a);
4128
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
4128
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
4129
4129
  this.program = e, this.aPositionBuffer = t;
4130
4130
  }
4131
4131
  },
@@ -4141,10 +4141,10 @@ 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
- style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4147
+ style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4148
4148
  }, e[0] || (e[0] = [
4149
4149
  o("span", null, null, -1),
4150
4150
  o("span", { style: { display: "inline-block", position: "relative", left: "-10px" } }, "%", -1),
@@ -4241,7 +4241,7 @@ const Pa = {
4241
4241
  // 100%
4242
4242
  ];
4243
4243
  this.rampColor = this.webgl.setup(this.context, a);
4244
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
4244
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
4245
4245
  this.program = e, this.aPositionBuffer = t;
4246
4246
  }
4247
4247
  },
@@ -4257,10 +4257,10 @@ 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
- style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4263
+ style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4264
4264
  }, e[0] || (e[0] = [
4265
4265
  o("span", null, "%", -1),
4266
4266
  o("span", null, "20", -1),
@@ -4359,7 +4359,7 @@ const Qa = {
4359
4359
  // 4m
4360
4360
  ];
4361
4361
  this.rampColor = this.webgl.setup(this.context, a);
4362
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
4362
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
4363
4363
  this.program = e, this.aPositionBuffer = t;
4364
4364
  }
4365
4365
  },
@@ -4375,10 +4375,10 @@ 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
- style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4381
+ style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4382
4382
  }, e[0] || (e[0] = [
4383
4383
  o("span", null, "m", -1),
4384
4384
  o("span", null, "0", -1),
@@ -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, b, x;
4712
+ return ((p = h.models) == null ? void 0 : p.includes(l)) || ((b = h.alias) == null ? void 0 : b.toLowerCase()) === l || ((x = h.name) == null ? void 0 : x.toLowerCase()) === l;
4713
+ }), d = Je.find((h) => {
4714
+ var p, b, x;
4715
+ return ((p = h.models) == null ? void 0 : p.includes(l)) || ((b = h.alias) == null ? void 0 : b.toLowerCase()) === l || ((x = h.name) == null ? void 0 : x.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, b;
4719
+ return ((p = h.alias) == null ? void 0 : p.toLowerCase()) === ((b = d == null ? void 0 : d.alias) == null ? void 0 : b.toLowerCase());
4720
+ }), d = d || Je.find((h) => {
4721
+ var p, b;
4722
+ return ((p = h.alias) == null ? void 0 : p.toLowerCase()) === ((b = c == null ? void 0 : c.alias) == null ? void 0 : b.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,24 +4737,24 @@ 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 = [];
4742
- if (se.isBetween(K, q, "millisecond", "[]")) {
4743
- const P = se.utc().diff(K, "h", !1);
4744
- let de, De;
4745
- if (ce) {
4740
+ var r, i, s, n, l, c, d, h, p, b, x, E, A, B, _, f, v, m, L, y, w, M, D, N, Q, j, G, W, he, te, pe, ye, se, ve, fe, Y, ae, Ae, ge, we, xe, be, _e, I, ze, Le, Pe, Ee, He, ke;
4741
+ const oe = typeof t == "string" ? ee(t) : t, me = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, Be = ee((i = (r = me == null ? void 0 : me[0]) == null ? void 0 : r.hourly) == null ? void 0 : i.date).utc(), K = Be.clone().add((l = (n = (s = me == null ? void 0 : me[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 = me == null ? void 0 : me[0]) == null ? void 0 : c.hourly) == null ? void 0 : d.time) == null ? void 0 : h.at(-1), "h"), Me = [];
4742
+ if (oe.isBetween(K, q, "millisecond", "[]")) {
4743
+ const P = oe.utc().diff(K, "h", !1);
4744
+ let ue, De;
4745
+ if (me) {
4746
4746
  let Se = 0, Te = 0;
4747
- for (const z of ce) {
4747
+ for (const z of me) {
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);
4753
- de = {
4754
- temp: (b = O == null ? void 0 : O.temperature_2m) == null ? void 0 : b.at(P),
4752
+ Te += (b = O == null ? void 0 : O.precipitation) == null ? void 0 : b.at(Ne);
4753
+ ue = {
4754
+ temp: (x = O == null ? void 0 : O.temperature_2m) == null ? void 0 : x.at(P),
4755
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),
4757
- dp: (k = O == null ? void 0 : O.dew_point_2m) == null ? void 0 : k.at(P),
4756
+ rh: (A = O == null ? void 0 : O.relative_humidity_2m) == null ? void 0 : A.at(P),
4757
+ dp: (B = O == null ? void 0 : O.dew_point_2m) == null ? void 0 : B.at(P),
4758
4758
  precip: {
4759
4759
  probability: (_ = O == null ? void 0 : O.precipitation_probability) == null ? void 0 : _.at(P),
4760
4760
  sum: (f = O == null ? void 0 : O.precipitation) == null ? void 0 : f.at(P),
@@ -4762,51 +4762,51 @@ class ht {
4762
4762
  sum6Hours: Math.round(Te * 100) / 100
4763
4763
  },
4764
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),
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),
4770
- kts: (T = O == null ? void 0 : O.wind_speed_10m) == null ? void 0 : T.at(P),
4769
+ speed: (w = O == null ? void 0 : O.wind_speed_10m) == null ? void 0 : w.at(P),
4770
+ kts: (M = O == null ? void 0 : O.wind_speed_10m) == null ? void 0 : M.at(P),
4771
4771
  degree: (D = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : D.at(P),
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,
4772
+ bearing: ((N = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : N.at(P)) !== null ? (((Q = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : Q.at(P)) + 180) % 360 : null,
4773
4773
  gusts: (j = O == null ? void 0 : O.wind_gusts_10m) == null ? void 0 : j.at(P)
4774
4774
  },
4775
4775
  isDay: (G = O == null ? void 0 : O.is_day) == null ? void 0 : G.at(P)
4776
4776
  };
4777
- const { name: Ge, url: Ue, bg: ie } = this.parseWeatherCode(de.code, de.isDay);
4778
- de.name = Ge, de.url = Ue, de.bg = ie, de.wind.scale = this.beaufort(this.kts2ms(de.wind.kts)), de.wind.direction = this.degree2Direction(de.wind.degree), Me.push({
4777
+ const { name: Ge, url: Ue, bg: re } = this.parseWeatherCode(ue.code, ue.isDay);
4778
+ ue.name = Ge, ue.url = Ue, ue.bg = re, ue.wind.scale = this.beaufort(this.kts2ms(ue.wind.kts)), ue.wind.direction = this.degree2Direction(ue.wind.degree), Me.push({
4779
4779
  utc: K.add(P, "h").format(),
4780
4780
  model: z.model,
4781
- weather: { ...de }
4781
+ weather: { ...ue }
4782
4782
  });
4783
4783
  }
4784
4784
  }
4785
- if (Q) {
4785
+ if (H) {
4786
4786
  let Se = 0;
4787
- for (const Te of Q) {
4787
+ for (const Te of H) {
4788
4788
  const z = Te == null ? void 0 : Te.hourly;
4789
4789
  De = {
4790
4790
  wave: {
4791
4791
  sig: {
4792
4792
  height: (W = z == null ? void 0 : z.wave_height) == null ? void 0 : W.at(P),
4793
- degree: (me = z == null ? void 0 : z.wave_direction) == null ? void 0 : me.at(P),
4794
- bearing: ((re = z == null ? void 0 : z.wave_direction) == null ? void 0 : re.at(P)) !== null ? (((ue = z == null ? void 0 : z.wave_direction) == null ? void 0 : ue.at(P)) + 180) % 360 : null,
4795
- period: (we = z == null ? void 0 : z.wave_period) == null ? void 0 : we.at(P)
4793
+ degree: (he = z == null ? void 0 : z.wave_direction) == null ? void 0 : he.at(P),
4794
+ bearing: ((te = z == null ? void 0 : z.wave_direction) == null ? void 0 : te.at(P)) !== null ? (((pe = z == null ? void 0 : z.wave_direction) == null ? void 0 : pe.at(P)) + 180) % 360 : null,
4795
+ period: (ye = z == null ? void 0 : z.wave_period) == null ? void 0 : ye.at(P)
4796
4796
  },
4797
4797
  swell: {
4798
- height: (ge = z == null ? void 0 : z.swell_wave_height) == null ? void 0 : ge.at(P),
4798
+ height: (se = z == null ? void 0 : z.swell_wave_height) == null ? void 0 : se.at(P),
4799
4799
  degree: (ve = z == null ? void 0 : z.swell_wave_direction) == null ? void 0 : ve.at(P),
4800
- bearing: ((ye = z == null ? void 0 : z.swell_wave_direction) == null ? void 0 : ye.at(P)) !== null ? (((Y = z == null ? void 0 : z.swell_wave_direction) == null ? void 0 : Y.at(P)) + 180) % 360 : null,
4801
- period: (te = z == null ? void 0 : z.swell_wave_period) == null ? void 0 : te.at(P),
4802
- peakPeriod: (fe = z == null ? void 0 : z.swell_wave_peak_period) == null ? void 0 : fe.at(P)
4800
+ bearing: ((fe = z == null ? void 0 : z.swell_wave_direction) == null ? void 0 : fe.at(P)) !== null ? (((Y = z == null ? void 0 : z.swell_wave_direction) == null ? void 0 : Y.at(P)) + 180) % 360 : null,
4801
+ period: (ae = z == null ? void 0 : z.swell_wave_period) == null ? void 0 : ae.at(P),
4802
+ peakPeriod: (Ae = z == null ? void 0 : z.swell_wave_peak_period) == null ? void 0 : Ae.at(P)
4803
4803
  },
4804
4804
  wd: {
4805
- height: (pe = z == null ? void 0 : z.wind_wave_height) == null ? void 0 : pe.at(P),
4806
- degree: (Ae = z == null ? void 0 : z.wind_wave_direction) == null ? void 0 : Ae.at(P),
4805
+ height: (ge = z == null ? void 0 : z.wind_wave_height) == null ? void 0 : ge.at(P),
4806
+ degree: (we = z == null ? void 0 : z.wind_wave_direction) == null ? void 0 : we.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: {
@@ -4817,14 +4817,14 @@ class ht {
4817
4817
  },
4818
4818
  sst: (He = z == null ? void 0 : z.sea_surface_temperature) == null ? void 0 : He.at(P),
4819
4819
  height: (ke = z == null ? void 0 : z.sea_level_height_msl) == null ? void 0 : ke.at(P)
4820
- }, De.wave = this.parseWave(De.wave, de == null ? void 0 : de.wind), De.current.direction = this.degree2Direction(De.current.degree), Object.assign(Me[Se], De), Se++;
4820
+ }, De.wave = this.parseWave(De.wave, ue == null ? void 0 : ue.wind), De.current.direction = this.degree2Direction(De.current.degree), Object.assign(Me[Se], De), Se++;
4821
4821
  }
4822
4822
  }
4823
4823
  }
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,82 +4846,82 @@ 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, b, x, E, A, B, _, f, v, m, L, y, w, M, D, N, Q, j, G, W, he, te, pe, ye, se, ve, fe, Y, ae, Ae, ge, we, 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
- let se, ce;
4853
- const Q = ze.diff(Ee, "d", !1);
4852
+ let oe, me;
4853
+ const H = ze.diff(Ee, "d", !1);
4854
4854
  if (Le)
4855
4855
  for (const Be of Le) {
4856
4856
  const K = Be.daily;
4857
- se = {
4858
- code: (p = K.weather_code) == null ? void 0 : p.at(Q),
4857
+ oe = {
4858
+ code: (d = K.weather_code) == null ? void 0 : d.at(H),
4859
4859
  temp: {
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)
4860
+ max: (h = K.temperature_2m_max) == null ? void 0 : h.at(H),
4861
+ min: (p = K.temperature_2m_min) == null ? void 0 : p.at(H),
4862
+ mean: (b = K.temperature_2m_mean) == null ? void 0 : b.at(H)
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: (x = K.apparent_temperature_max) == null ? void 0 : x.at(H),
4866
+ min: (E = K.apparent_temperature_min) == null ? void 0 : E.at(H)
4867
4867
  },
4868
4868
  precip: {
4869
- sum: (w = K.precipitation_sum) == null ? void 0 : w.at(Q),
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)
4869
+ sum: (A = K.precipitation_sum) == null ? void 0 : A.at(H),
4870
+ rainSum: (B = K.rain_sum) == null ? void 0 : B.at(H),
4871
+ snowfallSum: (_ = K.snowfall_sum) == null ? void 0 : _.at(H),
4872
+ showersSum: (f = K.showers_sum) == null ? void 0 : f.at(H),
4873
+ hours: (v = K.precipitation_hours) == null ? void 0 : v.at(H),
4874
+ probability: (m = K.precipitation_probability_max) == null ? void 0 : m.at(H)
4875
4875
  },
4876
4876
  rh: {
4877
- max: (C = K.relative_humidity_2m_max) == null ? void 0 : C.at(Q),
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)
4877
+ max: (L = K.relative_humidity_2m_max) == null ? void 0 : L.at(H),
4878
+ min: (y = K.relative_humidity_2m_min) == null ? void 0 : y.at(H),
4879
+ mean: (w = K.relative_humidity_2m_mean) == null ? void 0 : w.at(H)
4880
4880
  },
4881
4881
  wind: {
4882
- speed: (T = K.wind_speed_10m_max) == null ? void 0 : T.at(Q),
4883
- kts: (D = K.wind_speed_10m_max) == null ? void 0 : D.at(Q),
4884
- degree: (F = K.wind_direction_10m_dominant) == null ? void 0 : F.at(Q),
4885
- gusts: (N = K.wind_gusts_10m_max) == null ? void 0 : N.at(Q),
4886
- bearing: ((j = K.wind_direction_10m_dominant) == null ? void 0 : j.at(Q)) !== null ? (((G = K.wind_direction_10m_dominant) == null ? void 0 : G.at(Q)) + 180) % 360 : null
4882
+ speed: (M = K.wind_speed_10m_max) == null ? void 0 : M.at(H),
4883
+ kts: (D = K.wind_speed_10m_max) == null ? void 0 : D.at(H),
4884
+ degree: (N = K.wind_direction_10m_dominant) == null ? void 0 : N.at(H),
4885
+ gusts: (Q = K.wind_gusts_10m_max) == null ? void 0 : Q.at(H),
4886
+ bearing: ((j = K.wind_direction_10m_dominant) == null ? void 0 : j.at(H)) !== null ? (((G = K.wind_direction_10m_dominant) == null ? void 0 : G.at(H)) + 180) % 360 : null
4887
4887
  }
4888
4888
  };
4889
- const { name: q, url: Me, bg: P } = this.parseWeatherCode(se.code, !0);
4890
- se.name = q, se.url = Me, se.bg = P, se.wind.scale = this.beaufort(this.kts2ms(se.wind.kts)), se.wind.direction = this.degree2Direction(se.wind.degree), ke.push({
4891
- utc: Ee.add(Q, "d").utc().format(),
4889
+ const { name: q, url: Me, bg: P } = this.parseWeatherCode(oe.code, !0);
4890
+ oe.name = q, oe.url = Me, oe.bg = P, oe.wind.scale = this.beaufort(this.kts2ms(oe.wind.kts)), oe.wind.direction = this.degree2Direction(oe.wind.degree), ke.push({
4891
+ utc: Ee.add(H, "d").utc().format(),
4892
4892
  model: Be.model,
4893
- weather: { ...se }
4893
+ weather: { ...oe }
4894
4894
  });
4895
4895
  }
4896
4896
  if (Pe) {
4897
4897
  let Be = 0;
4898
4898
  for (const K of Pe) {
4899
4899
  const q = K.daily;
4900
- ce = {
4900
+ me = {
4901
4901
  wave: {
4902
4902
  sig: {
4903
- height: (W = q.wave_height_max) == null ? void 0 : W.at(Q),
4904
- degree: (me = q.wave_direction_dominant) == null ? void 0 : me.at(Q),
4905
- period: (re = q.wave_period_max) == null ? void 0 : re.at(Q),
4906
- bearing: ((ue = q.wave_direction_dominant) == null ? void 0 : ue.at(Q)) !== null ? (((we = q.wave_direction_dominant) == null ? void 0 : we.at(Q)) + 180) % 360 : null
4903
+ height: (W = q.wave_height_max) == null ? void 0 : W.at(H),
4904
+ degree: (he = q.wave_direction_dominant) == null ? void 0 : he.at(H),
4905
+ period: (te = q.wave_period_max) == null ? void 0 : te.at(H),
4906
+ bearing: ((pe = q.wave_direction_dominant) == null ? void 0 : pe.at(H)) !== null ? (((ye = q.wave_direction_dominant) == null ? void 0 : ye.at(H)) + 180) % 360 : null
4907
4907
  },
4908
4908
  swell: {
4909
- height: (ge = q.swell_wave_height_max) == null ? void 0 : ge.at(Q),
4910
- degree: (ve = q.swell_wave_direction_dominant) == null ? void 0 : ve.at(Q),
4911
- period: (ye = q.swell_wave_period_max) == null ? void 0 : ye.at(Q),
4912
- peakPeriod: (Y = q.swell_wave_peak_period_max) == null ? void 0 : Y.at(Q),
4909
+ height: (se = q.swell_wave_height_max) == null ? void 0 : se.at(H),
4910
+ degree: (ve = q.swell_wave_direction_dominant) == null ? void 0 : ve.at(H),
4911
+ period: (fe = q.swell_wave_period_max) == null ? void 0 : fe.at(H),
4912
+ peakPeriod: (Y = q.swell_wave_peak_period_max) == null ? void 0 : Y.at(H),
4913
4913
  // bearing: daily.swell_wave_direction_dominant?.at(day) !== null ? (daily.swell_wave_direction_dominant?.at(day) + 180) % 360 : null,
4914
- bearing: ((te = q.swell_wave_direction_dominant) == null ? void 0 : te.at(Q)) !== null ? ((fe = q.swell_wave_direction_dominant) == null ? void 0 : fe.at(Q)) % 360 : null
4914
+ bearing: ((ae = q.swell_wave_direction_dominant) == null ? void 0 : ae.at(H)) !== null ? ((Ae = q.swell_wave_direction_dominant) == null ? void 0 : Ae.at(H)) % 360 : null
4915
4915
  },
4916
4916
  wd: {
4917
- height: (pe = q.wind_wave_height_max) == null ? void 0 : pe.at(Q),
4918
- degree: (Ae = q.wind_wave_direction_dominant) == null ? void 0 : Ae.at(Q),
4919
- period: (xe = q.wind_wave_period_max) == null ? void 0 : xe.at(Q),
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
4917
+ height: (ge = q.wind_wave_height_max) == null ? void 0 : ge.at(H),
4918
+ degree: (we = q.wind_wave_direction_dominant) == null ? void 0 : we.at(H),
4919
+ period: (xe = q.wind_wave_period_max) == null ? void 0 : xe.at(H),
4920
+ peakPeriod: (be = q.wind_wave_peak_period_max) == null ? void 0 : be.at(H),
4921
+ bearing: ((_e = q.wind_wave_direction_dominant) == null ? void 0 : _e.at(H)) !== null ? (((I = q.wind_wave_direction_dominant) == null ? void 0 : I.at(H)) + 180) % 360 : null
4922
4922
  }
4923
4923
  }
4924
- }, ce.wave = this.parseWave(ce.wave, se == null ? void 0 : se.wind), Object.assign(ke[Be], ce), Be++;
4924
+ }, me.wave = this.parseWave(me.wave, oe == null ? void 0 : oe.wind), Object.assign(ke[Be], me), Be++;
4925
4925
  }
4926
4926
  }
4927
4927
  }
@@ -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"],
@@ -5367,10 +5371,11 @@ const Oa = {
5367
5371
  showTropicals: !1,
5368
5372
  activeTropicals: void 0,
5369
5373
  activeTropicalsMarker: void 0,
5370
- empty: S.featureCollection([]),
5374
+ empty: T.featureCollection([]),
5371
5375
  circleSource: "circle-source",
5372
- circleSourceData: S.featureCollection([]),
5373
- circleLayer: "tropical-circle-layer"
5376
+ circleSourceData: T.featureCollection([]),
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, p, b;
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 E = (/* @__PURE__ */ new Date()).valueOf();
5478
+ let A = 0, B = 0;
5479
+ if ((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() - (E + A), console.log("[tropicals] update elapsed: ", B, ", total: ", A += B)) : (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,143 +5573,182 @@ 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, {
5572
- type: "geojson",
5573
- data: (c = this.tropicals) != null && c.active ? (p = this.tropicals) == null ? void 0 : p.data : this.empty
5574
- // cluster: true,
5575
- // clusterRadius: 10, // 聚合半径
5576
- }), this.map.addLayer({
5577
- id: this.pointCircleLayer + "-border",
5578
- type: "circle",
5579
- source: this.clusterSource,
5580
- filter: ["all", ["==", "$type", "Point"], ["==", "type", "forecast"], ["!=", "disabled", !0]],
5581
- paint: {
5582
- "circle-radius": 6,
5583
- "circle-color": "#fff"
5584
- }
5585
- }), this.map.addLayer({
5586
- id: this.pointCircleLayer,
5587
- type: "circle",
5588
- source: this.clusterSource,
5589
- filter: ["all", ["==", "$type", "Point"], ["==", "type", "forecast"], ["!=", "disabled", !0]],
5590
- paint: {
5591
- "circle-radius": 4,
5592
- "circle-color": [
5593
- "case",
5594
- ["boolean", ["==", ["get", "kts", ["get", "wind"]], null]],
5595
- "#03f869",
5596
- ["boolean", ["<", ["get", "kts", ["get", "wind"]], 32]],
5597
- "#03f869",
5598
- ["boolean", ["<", ["get", "kts", ["get", "wind"]], 47]],
5599
- "#f2f202",
5600
- ["boolean", ["<", ["get", "kts", ["get", "wind"]], 63]],
5601
- "#ff9100",
5602
- ["boolean", ["<", ["get", "kts", ["get", "wind"]], 79]],
5603
- "#f44336",
5604
- ["boolean", ["<", ["get", "kts", ["get", "wind"]], 94]],
5605
- "#f903d0",
5606
- ["boolean", [">=", ["get", "kts", ["get", "wind"]], 94]],
5607
- "#8702f9",
5608
- "#fff"
5609
- ]
5610
- }
5611
- }), this.map.addLayer({
5612
- id: this.pointLabelLayer,
5613
- type: "symbol",
5614
- source: this.clusterSource,
5615
- filter: ["all", ["==", "$type", "Point"], ["==", "type", "forecast"], ["!=", "disabled", !0]],
5616
- layout: {
5617
- "text-field": ["get", "format"],
5618
- "text-offset": [0, -0.5],
5619
- "text-anchor": "bottom-left",
5620
- "text-size": 12
5621
- },
5622
- paint: {
5623
- "text-color": "rgba(0, 0, 0, 1)",
5624
- "text-halo-color": "#fff",
5625
- "text-halo-width": 1
5626
- }
5627
- }), this.map.addLayer({
5628
- id: this.historyPointCircleLayer + "-border",
5629
- type: "circle",
5630
- source: this.clusterSource,
5631
- filter: ["all", ["==", "$type", "Point"], ["==", "type", "history"], ["==", "important", !0], ["!=", "disabled", !0]],
5632
- paint: {
5633
- "circle-radius": 7,
5634
- "circle-color": "#fff"
5635
- }
5636
- }), this.map.addLayer({
5637
- id: this.historyPointCircleLayer,
5638
- type: "circle",
5639
- source: this.clusterSource,
5640
- filter: ["all", ["==", "$type", "Point"], ["==", "type", "history"], ["==", "important", !0], ["!=", "disabled", !0]],
5641
- paint: {
5642
- "circle-radius": 5,
5643
- "circle-color": "rgba(0,0,0,0.7)"
5644
- }
5645
- }), this.map.addLayer({
5646
- id: this.historyPointCircleLayer + "-inner",
5647
- type: "circle",
5648
- source: this.clusterSource,
5649
- filter: ["all", ["==", "$type", "Point"], ["==", "type", "history"], ["==", "important", !0], ["!=", "disabled", !0]],
5650
- paint: {
5651
- "circle-radius": 3,
5652
- "circle-color": "#fff"
5653
- }
5654
- }), this.map.addLayer({
5655
- id: this.historyPointLabelLayer,
5656
- type: "symbol",
5657
- source: this.clusterSource,
5658
- filter: ["all", ["==", "$type", "Point"], ["==", "type", "history"], ["==", "important", !0], ["!=", "disabled", !0]],
5659
- layout: {
5660
- "text-field": ["get", "format"],
5661
- "text-offset": [0, -0.5],
5662
- "text-anchor": "bottom-left",
5663
- "text-size": 14
5664
- },
5665
- paint: {
5666
- "text-color": "rgba(0, 0, 0, 1)",
5667
- "text-halo-color": "#fff",
5668
- "text-halo-width": 1
5669
- }
5670
- }), this.map.addLayer({
5671
- id: this.forecastNameLayer,
5672
- type: "symbol",
5673
- source: this.clusterSource,
5674
- filter: ["all", ["==", "$type", "Point"], ["==", "type", "forecast"], ["==", "important", !0]],
5675
- layout: {
5676
- "text-field": ["get", "name"],
5677
- "text-offset": [0, 1.5],
5678
- "text-anchor": "bottom",
5679
- "text-size": 16,
5680
- "text-allow-overlap": !0,
5681
- "text-ignore-placement": !0
5682
- },
5683
- paint: {
5684
- "text-color": "#fff",
5685
- "text-halo-color": "#0033ff",
5686
- "text-halo-width": 4
5687
- }
5688
- }), b = (/* @__PURE__ */ new Date()).valueOf() - (d + A), console.log("[tropical] add elapsed: ", b, ", total: ", A += b));
5576
+ }), B = (/* @__PURE__ */ new Date()).valueOf() - (E + A), console.log("[tropical] add elapsed: ", B, ", total: ", A += B)), (s = this.map) != null && s.getSource(this.clusterSource))
5577
+ (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() - (E + A), console.log("[tropical] update elapsed: ", B, ", total: ", A += B);
5578
+ else {
5579
+ if (this.map.addSource(this.clusterSource, {
5580
+ type: "geojson",
5581
+ data: (c = this.tropicals) != null && c.active ? (d = this.tropicals) == null ? void 0 : d.data : this.empty
5582
+ // cluster: true,
5583
+ // clusterRadius: 10, // 聚合半径
5584
+ }), this.map.addLayer({
5585
+ id: this.pointCircleLayer + "-border",
5586
+ type: "circle",
5587
+ source: this.clusterSource,
5588
+ filter: ["all", ["==", "$type", "Point"], ["==", "type", "forecast"], ["!=", "disabled", !0]],
5589
+ paint: {
5590
+ "circle-radius": 6,
5591
+ "circle-color": "#fff"
5592
+ }
5593
+ }), this.map.addLayer({
5594
+ id: this.pointCircleLayer,
5595
+ type: "circle",
5596
+ source: this.clusterSource,
5597
+ filter: ["all", ["==", "$type", "Point"], ["==", "type", "forecast"], ["!=", "disabled", !0]],
5598
+ paint: {
5599
+ "circle-radius": 4,
5600
+ "circle-color": [
5601
+ "case",
5602
+ ["boolean", ["==", ["get", "kts", ["get", "wind"]], null]],
5603
+ "#03f869",
5604
+ ["boolean", ["<", ["get", "kts", ["get", "wind"]], 32]],
5605
+ "#03f869",
5606
+ ["boolean", ["<", ["get", "kts", ["get", "wind"]], 47]],
5607
+ "#f2f202",
5608
+ ["boolean", ["<", ["get", "kts", ["get", "wind"]], 63]],
5609
+ "#ff9100",
5610
+ ["boolean", ["<", ["get", "kts", ["get", "wind"]], 79]],
5611
+ "#f44336",
5612
+ ["boolean", ["<", ["get", "kts", ["get", "wind"]], 94]],
5613
+ "#f903d0",
5614
+ ["boolean", [">=", ["get", "kts", ["get", "wind"]], 94]],
5615
+ "#8702f9",
5616
+ "#fff"
5617
+ ]
5618
+ }
5619
+ }), this.fromTropicalReport) {
5620
+ const _ = (h = this.tropicals.data.features) == null ? void 0 : h.filter((m) => m.geometry.type === "Point" && m.properties.type === "forecast" && m.properties.name === "fengshen" && m.properties.model === "jma");
5621
+ let f = 0, v = (b = (p = this.findClosestToNumber(_, "hour", 12)) == null ? void 0 : p.properties) == null ? void 0 : b.hour;
5622
+ _.forEach((m, L) => {
5623
+ var M, D, N, Q, j, G, W, he, te;
5624
+ let y;
5625
+ const w = this.findClosestToNumber(_, "hour", v + f * 24);
5626
+ if (w && ((M = w == null ? void 0 : w.properties) == null ? void 0 : M.hour) === ((D = m.properties) == null ? void 0 : D.hour) && (y = w), y) {
5627
+ const pe = f % 2 === 0 ? [-60, -40] : [60, 40], ye = f % 2 === 0 ? "position: absolute;width: 20px;margin-left: 98px;margin-top: 12px;height: 2px;transform: rotate(45deg);background-color: rgba(0, 0, 0, 0.3);" : "position: absolute;width: 20px;margin-left: -8px;margin-top: -54px;height: 2px;transform: rotate(45deg);background-color: rgba(0, 0, 0, 0.3);", se = document.createElement("div");
5628
+ se.style.cssText = "width: 130px;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;", se.innerHTML = `
5629
+ <div style="">
5630
+ <span>${((N = m.properties) == null ? void 0 : N.format) || "-"}</span>
5631
+ <span> [${((G = (j = (Q = m.properties) == null ? void 0 : Q.wind) == null ? void 0 : j.en) == null ? void 0 : G.toUpperCase()) || "-"}]</span>
5632
+ </div>
5633
+ <div>
5634
+ <span>BF${((he = (W = m.properties) == null ? void 0 : W.wind) == null ? void 0 : he.bf) || "-"}</span> /
5635
+ <span>${((te = m.properties) == null ? void 0 : te.pressure) || "-"} kPa</span>
5636
+ </div>
5637
+ <div style="${ye}"></div>
5638
+ `, this.labelMarkers.push(new Re.Marker(se).setLngLat(m.geometry.coordinates).setOffset(pe).addTo(this.map)), f = f + 1;
5639
+ }
5640
+ });
5641
+ } else
5642
+ this.map.addLayer({
5643
+ id: this.pointLabelLayer,
5644
+ type: "symbol",
5645
+ source: this.clusterSource,
5646
+ filter: ["all", ["==", "$type", "Point"], ["==", "type", "forecast"], ["!=", "disabled", !0]],
5647
+ layout: {
5648
+ "text-field": ["get", "format"],
5649
+ "text-offset": [0, -0.5],
5650
+ "text-anchor": "bottom-left",
5651
+ "text-size": 12
5652
+ },
5653
+ paint: {
5654
+ "text-color": "rgba(0, 0, 0, 1)",
5655
+ "text-halo-color": "#fff",
5656
+ "text-halo-width": 1
5657
+ }
5658
+ });
5659
+ this.map.addLayer({
5660
+ id: this.historyPointCircleLayer + "-border",
5661
+ type: "circle",
5662
+ source: this.clusterSource,
5663
+ filter: ["all", ["==", "$type", "Point"], ["==", "type", "history"], ["==", "important", !0], ["!=", "disabled", !0]],
5664
+ paint: {
5665
+ "circle-radius": 7,
5666
+ "circle-color": "#fff"
5667
+ }
5668
+ }), this.map.addLayer({
5669
+ id: this.historyPointCircleLayer,
5670
+ type: "circle",
5671
+ source: this.clusterSource,
5672
+ filter: ["all", ["==", "$type", "Point"], ["==", "type", "history"], ["==", "important", !0], ["!=", "disabled", !0]],
5673
+ paint: {
5674
+ "circle-radius": 5,
5675
+ "circle-color": "rgba(0,0,0,0.7)"
5676
+ }
5677
+ }), this.map.addLayer({
5678
+ id: this.historyPointCircleLayer + "-inner",
5679
+ type: "circle",
5680
+ source: this.clusterSource,
5681
+ filter: ["all", ["==", "$type", "Point"], ["==", "type", "history"], ["==", "important", !0], ["!=", "disabled", !0]],
5682
+ paint: {
5683
+ "circle-radius": 3,
5684
+ "circle-color": "#fff"
5685
+ }
5686
+ }), this.map.addLayer({
5687
+ id: this.historyPointLabelLayer,
5688
+ type: "symbol",
5689
+ source: this.clusterSource,
5690
+ filter: ["all", ["==", "$type", "Point"], ["==", "type", "history"], ["==", "important", !0], ["!=", "disabled", !0]],
5691
+ layout: {
5692
+ "text-field": ["get", "format"],
5693
+ "text-offset": [0, -0.5],
5694
+ "text-anchor": "bottom-left",
5695
+ "text-size": 14
5696
+ },
5697
+ paint: {
5698
+ "text-color": "rgba(0, 0, 0, 1)",
5699
+ "text-halo-color": "#fff",
5700
+ "text-halo-width": 1
5701
+ }
5702
+ }), this.map.addLayer({
5703
+ id: this.forecastNameLayer,
5704
+ type: "symbol",
5705
+ source: this.clusterSource,
5706
+ filter: ["all", ["==", "$type", "Point"], ["==", "type", "forecast"], ["==", "important", !0]],
5707
+ layout: {
5708
+ "text-field": ["get", "name"],
5709
+ "text-offset": [0, 1.5],
5710
+ "text-anchor": "bottom",
5711
+ "text-size": 16,
5712
+ "text-allow-overlap": !0,
5713
+ "text-ignore-placement": !0
5714
+ },
5715
+ paint: {
5716
+ "text-color": "#fff",
5717
+ "text-halo-color": "#0033ff",
5718
+ "text-halo-width": 4
5719
+ }
5720
+ }), B = (/* @__PURE__ */ new Date()).valueOf() - (E + A), console.log("[tropical] add elapsed: ", B, ", total: ", A += B);
5721
+ }
5689
5722
  }
5690
5723
  this.handleDrawCircle();
5691
- const h = ct.interpolate(this.tropicals, 1);
5692
- this.interpolateData = JSON.parse(JSON.stringify(h)), this.handleDateChange();
5724
+ const x = ct.interpolate(this.tropicals, 1);
5725
+ this.interpolateData = JSON.parse(JSON.stringify(x)), this.handleDateChange();
5726
+ }
5727
+ },
5728
+ findClosestToNumber(a, e, t) {
5729
+ var s, n;
5730
+ if (!a.length)
5731
+ return null;
5732
+ let r = a[0], i = Math.abs(((s = r == null ? void 0 : r.properties) == null ? void 0 : s[e]) - t);
5733
+ for (let l = 1; l < a.length; l++) {
5734
+ const c = a[l], d = Math.abs(Number((n = c == null ? void 0 : c.properties) == null ? void 0 : n.hour) - t);
5735
+ d < i && (i = d, r = c);
5693
5736
  }
5737
+ return r;
5694
5738
  },
5695
5739
  handleClear() {
5696
5740
  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));
5741
+ 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
5742
  },
5699
5743
  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;
5701
- 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
- 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]);
5744
+ var a, e, t, r, i, s, n, l, c, d, h, p, b, x, E, A, B, _, f, v, m, L, y, w, M, D, N, Q, j, G, W, he;
5745
+ if ((a = this.interpolateMarkers) == null || a.forEach((te) => te == null ? void 0 : te.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
5746
+ const te = ee(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), pe = ee.utc().add(1, "hour").set({ minute: 0, second: 0, millisecond: 0 }), ye = te.isBefore(pe) && pe.diff(te, "h") < 2 ? pe.format() : te.format(), se = this.interpolateData.filter((Y) => Y.properties.date === ye && !Y.properties.disabled), ve = this.handleComputePolygons(se), fe = T.featureCollection([...se]);
5703
5747
  ve.forEach((Y) => {
5704
- ye.features.push(Y);
5705
- }), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(ye) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
5748
+ fe.features.push(Y);
5749
+ }), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(fe) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
5706
5750
  type: "geojson",
5707
- data: ye
5751
+ data: fe
5708
5752
  }), (s = this.map) == null || s.addLayer({
5709
5753
  id: this.interpolateLineLayer,
5710
5754
  type: "line",
@@ -5716,17 +5760,17 @@ const Oa = {
5716
5760
  "line-width": 1
5717
5761
  }
5718
5762
  })), this.interpolateMarkers = [];
5719
- for (const Y of ge)
5763
+ for (const Y of se)
5720
5764
  if (!Y.properties.disabled) {
5721
- 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";
5723
- const fe = `<svg t="1719918955501"
5765
+ let ae = "#f44336";
5766
+ ((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) ? ae = "#03f869" : ((p = (h = Y.properties) == null ? void 0 : h.wind) == null ? void 0 : p.kts) >= 32 && ((x = (b = Y.properties) == null ? void 0 : b.wind) == null ? void 0 : x.kts) < 47 ? ae = "#f2f202" : ((A = (E = Y.properties) == null ? void 0 : E.wind) == null ? void 0 : A.kts) >= 47 && ((_ = (B = Y.properties) == null ? void 0 : B.wind) == null ? void 0 : _.kts) < 63 ? ae = "#ff9100" : ((v = (f = Y.properties) == null ? void 0 : f.wind) == null ? void 0 : v.kts) >= 63 && ((L = (m = Y.properties) == null ? void 0 : m.wind) == null ? void 0 : L.kts) < 79 ? ae = "#f44336" : ((w = (y = Y.properties) == null ? void 0 : y.wind) == null ? void 0 : w.kts) >= 79 && ((D = (M = Y.properties) == null ? void 0 : M.wind) == null ? void 0 : D.kts) < 94 ? ae = "#f903d0" : ((Q = (N = Y.properties) == null ? void 0 : N.wind) == null ? void 0 : Q.kts) >= 94 ? ae = "#8702f9" : ae = "#f44336";
5767
+ const Ae = `<svg t="1719918955501"
5724
5768
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
5725
5769
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
5726
5770
  <path
5727
5771
  d="M515.17000001 169.34666667c41-77.73 95.33-96 95.33-96-240 0-434.5 194.53-434.5 434.5 0 186.47 150.78 337.7 337.06 338.48C472.11000001 923.66666667 418.00000001 941.83666667 418.00000001 941.83666667c240 0 434.5-194.54 434.5-434.5l0.5 0.5C853.00000001 321.10666667 701.81000001 169.66666667 515.17000001 169.34666667z m-0.67 468A129.5 129.5 0 1 1 644.00000001 507.83666667a129.5 129.5 0 0 1-129.5 129.5z"
5728
- fill="${te}" p-id="18383"></path>
5729
- <path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${te}"
5772
+ fill="${ae}" p-id="18383"></path>
5773
+ <path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${ae}"
5730
5774
  p-id="18384"></path>
5731
5775
  <path
5732
5776
  d="M517.16666667 654.67c-80.23 0-145.5-65.27-145.5-145.5s65.27-145.5 145.5-145.5S662.66666667 428.94 662.66666667 509.17s-65.27 145.5-145.5 145.5z m0-259A113.5 113.5 0 1 0 630.66666667 509.17a113.63 113.63 0 0 0-113.5-113.5z"
@@ -5734,45 +5778,45 @@ const Oa = {
5734
5778
  <path
5735
5779
  d="M420.66666667 959.17a16.08 16.08 0 0 1-15.91-13.49A15.89 15.89 0 0 1 415.50666667 928c1.49-0.55 38.88-14.76 72.79-65.52A354.55 354.55 0 0 1 162.66666667 509.17a450.14 450.14 0 0 1 450.5-450.5 16.07 16.07 0 0 1 15.91 13.48 15.88 15.88 0 0 1-10.75 17.66c-1.58 0.58-39.13 14.9-73.07 65.95A354.22 354.22 0 0 1 871.66666667 509.17a16 16 0 0 1-0.52 4.05A450.14 450.14 0 0 1 420.66666667 959.17zM554.80666667 94.72C351.57666667 123.2 194.66666667 298.21 194.66666667 509.17c0 177.08 144.06 321.74 321.13 322.48a16 16 0 0 1 14.07 23.49c-16.11 30.42-34.27 52.37-50.85 68C682.25666667 894.63 839.16666667 719.63 839.16666667 508.67a15.94 15.94 0 0 1 0.47-3.86C837.30666667 329.33 693.82666667 187 517.80666667 186.67A16 16 0 0 1 503.66666667 163.21c16.21-30.69 34.47-52.79 51.14-68.49z"
5736
5780
  fill="#ffffff" p-id="18386"></path>
5737
- </svg>`, pe = document.createElement("div");
5738
- 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);
5740
- this.interpolateMarkers.push(Ae), (G = (j = this.map) == null ? void 0 : j.getSource(this.circleSource)) == null || G.setData(this.circleSourceData);
5781
+ </svg>`, ge = document.createElement("div");
5782
+ ge.className = "hurricane-hourly-marker", ge.innerHTML = `<div class="${Y.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${Ae}</div>`;
5783
+ const we = new Re.Marker(ge).setLngLat(Y.geometry.coordinates).addTo(this.map);
5784
+ this.interpolateMarkers.push(we), (G = (j = this.map) == null ? void 0 : j.getSource(this.circleSource)) == null || G.setData(this.circleSourceData);
5741
5785
  }
5742
5786
  } else
5743
- (W = this.map) != null && W.getSource(this.interpolateSource) && ((me = this.map) == null || me.getSource(this.interpolateSource).setData(this.empty));
5787
+ (W = this.map) != null && W.getSource(this.interpolateSource) && ((he = this.map) == null || he.getSource(this.interpolateSource).setData(this.empty));
5744
5788
  },
5745
5789
  handleClick(a) {
5746
- var s, n, l, c, p, h, d, A;
5790
+ var s, n, l, c, d, h, p, b;
5747
5791
  const e = a.features[0], t = (n = (s = this.tropicals) == null ? void 0 : s.data) == null ? void 0 : n.features.filter(
5748
- (b) => {
5792
+ (x) => {
5749
5793
  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);
5794
+ return x.geometry.type === "LineString" && x.properties.type === "forecast" && x.properties.name === ((E = e == null ? void 0 : e.properties) == null ? void 0 : E.name);
5751
5795
  }
5752
5796
  ), r = (c = (l = this.tropicals) == null ? void 0 : l.data) == null ? void 0 : c.features.filter(
5753
- (b) => {
5797
+ (x) => {
5754
5798
  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);
5799
+ return x.geometry.type === "LineString" && x.properties.type === "history" && x.properties.name === ((E = e == null ? void 0 : e.properties) == null ? void 0 : E.name);
5756
5800
  }
5757
5801
  );
5758
5802
  this.activeTropicals = {
5759
- name: (p = e == null ? void 0 : e.properties) == null ? void 0 : p.name,
5760
- forecasts: t.map((b) => b.properties),
5803
+ name: (d = e == null ? void 0 : e.properties) == null ? void 0 : d.name,
5804
+ forecasts: t.map((x) => x.properties),
5761
5805
  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
5806
+ showCircle: (b = (p = t[0]) == null ? void 0 : p.properties) == null ? void 0 : b.showCircle
5763
5807
  }, this.showTropicals = !0;
5764
5808
  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);
5809
+ 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
5810
  },
5767
5811
  handleForecastToggle(a) {
5768
5812
  var r, i, s, n, l, c;
5769
5813
  a.disabled = !a.disabled;
5770
5814
  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);
5775
- }), (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();
5815
+ t.forEach((d) => {
5816
+ d.properties.category === e && (d.properties.disabled = a.disabled);
5817
+ }), this.interpolateData.forEach((d) => {
5818
+ d.properties.category === e && (d.properties.disabled = a.disabled);
5819
+ }), (n = (s = this.map) == null ? void 0 : s.getSource(this.source)) == null || n.setData(T.featureCollection(t)), (c = (l = this.map) == null ? void 0 : l.getSource(this.clusterSource)) == null || c.setData(T.featureCollection(t)), this.handleDateChange();
5776
5820
  },
5777
5821
  handleStrikeProbability(a) {
5778
5822
  this.$emit("tropicalProbability", a);
@@ -5832,22 +5876,22 @@ const Oa = {
5832
5876
  let c;
5833
5877
  switch (n) {
5834
5878
  case "ne":
5835
- c = S.lineArc(a, l, 0, 90, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
5879
+ c = T.lineArc(a, l, 0, 90, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
5836
5880
  break;
5837
5881
  case "se":
5838
- c = S.lineArc(a, l, 90, 180, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
5882
+ c = T.lineArc(a, l, 90, 180, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
5839
5883
  break;
5840
5884
  case "sw":
5841
- c = S.lineArc(a, l, 180, 270, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
5885
+ c = T.lineArc(a, l, 180, 270, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
5842
5886
  break;
5843
5887
  case "nw":
5844
- c = S.lineArc(a, l, 270, 360, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
5888
+ c = T.lineArc(a, l, 270, 360, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
5845
5889
  break;
5846
5890
  }
5847
5891
  r.push(...(s = c == null ? void 0 : c.geometry) == null ? void 0 : s.coordinates);
5848
5892
  }
5849
- const i = S.lineString(r);
5850
- return S.lineToPolygon(i, { properties: t });
5893
+ const i = T.lineString(r);
5894
+ return T.lineToPolygon(i, { properties: t });
5851
5895
  }
5852
5896
  }
5853
5897
  }, Ra = {
@@ -5873,60 +5917,60 @@ const Oa = {
5873
5917
  style: { "justify-content": "flex-start" }
5874
5918
  }, ai = { class: "forecast-models" }, ii = ["onClick"], ri = { class: "more" };
5875
5919
  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, [
5920
+ var n, l, c, d, h, p, b, x, E, A, B, _, f, v, m, L, y, w, M;
5921
+ return Fe((u(), g("div", Ra, [
5878
5922
  o("div", ja, [
5879
5923
  o("div", {
5880
5924
  class: "iconfont close-btn",
5881
5925
  onClick: e[0] || (e[0] = (D) => i.showTropicals = !1)
5882
5926
  }, ""),
5883
5927
  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)
5928
+ (l = (n = i.activeTropicals) == null ? void 0 : n.history) != null && l.level ? (u(), g("span", Ga, k((d = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : d.level) + " , ", 1)) : J("", !0),
5929
+ ce(k((h = i.activeTropicals) == null ? void 0 : h.name), 1)
5886
5930
  ]),
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)
5931
+ o("div", Ua, " Last update: " + k(s.computeTime(((b = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : b.updated) || ((A = (E = (x = i.activeTropicals) == null ? void 0 : x.forecasts) == null ? void 0 : E.filter((D) => !D.disabled)[0]) == null ? void 0 : A.date))), 1)
5888
5932
  ]),
5889
5933
  o("div", Ya, [
5890
5934
  o("div", Ka, [
5891
5935
  o("div", Xa, [
5892
5936
  o("div", Ja, [
5893
5937
  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)
5938
+ o("span", null, k(((_ = (B = i.activeTropicals) == null ? void 0 : B.history) == null ? void 0 : _.kts) || "-") + " [kts]", 1),
5939
+ o("span", null, ", BF " + k(s.computeBF(((v = (f = i.activeTropicals) == null ? void 0 : f.history) == null ? void 0 : v.kts) || 0)), 1)
5896
5940
  ]),
5897
5941
  o("div", qa, [
5898
5942
  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)
5943
+ o("span", null, k(((L = (m = i.activeTropicals) == null ? void 0 : m.history) == null ? void 0 : L.pressure) || "-") + " [hPa]", 1)
5900
5944
  ])
5901
5945
  ]),
5902
5946
  o("div", Va, [
5903
5947
  o("div", Za, [
5904
5948
  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)
5949
+ o("span", null, k((y = s.computeMovement(i.activeTropicals)) == null ? void 0 : y.kts) + " [kts]", 1)
5906
5950
  ]),
5907
5951
  o("div", $a, [
5908
5952
  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)
5953
+ o("span", null, k((w = s.computeMovement(i.activeTropicals)) == null ? void 0 : w.deg) + " [°]", 1)
5910
5954
  ])
5911
5955
  ]),
5912
5956
  o("div", ei, [
5913
5957
  o("div", ti, [
5914
5958
  e[7] || (e[7] = o("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
5915
5959
  o("div", ai, [
5916
- (m(!0), g(V, null, $((T = i.activeTropicals) == null ? void 0 : T.forecasts, (D, F) => {
5917
- var N, j, G, W;
5918
- return m(), g("div", {
5919
- key: F,
5960
+ (u(!0), g(V, null, $((M = i.activeTropicals) == null ? void 0 : M.forecasts, (D, N) => {
5961
+ var Q, j, G, W;
5962
+ return u(), g("div", {
5963
+ key: N,
5920
5964
  class: Z([
5921
5965
  "model",
5922
5966
  D.disabled ? "" : "active",
5923
- F > 0 && F < ((j = (N = i.activeTropicals) == null ? void 0 : N.forecasts) == null ? void 0 : j.length) - 1 && ((W = (G = i.activeTropicals) == null ? void 0 : G.forecasts) == null ? void 0 : W.length) > 2 ? "center-child" : ""
5967
+ N > 0 && N < ((j = (Q = i.activeTropicals) == null ? void 0 : Q.forecasts) == null ? void 0 : j.length) - 1 && ((W = (G = i.activeTropicals) == null ? void 0 : G.forecasts) == null ? void 0 : W.length) > 2 ? "center-child" : ""
5924
5968
  ]),
5925
- onClick: (me) => s.handleForecastToggle(D)
5969
+ onClick: (he) => s.handleForecastToggle(D)
5926
5970
  }, [
5927
5971
  o("span", {
5928
5972
  class: Z(D.model)
5929
- }, I(D.model), 3)
5973
+ }, k(D.model), 3)
5930
5974
  ], 10, ii);
5931
5975
  }), 128))
5932
5976
  ])
@@ -5935,7 +5979,7 @@ function si(a, e, t, r, i, s) {
5935
5979
  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
5980
  ]),
5937
5981
  o("div", ri, [
5938
- t.permission & i.helper.LEVEL.Supper ? (m(), g("div", {
5982
+ t.permission & i.helper.LEVEL.Supper ? (u(), g("div", {
5939
5983
  key: 0,
5940
5984
  class: "button",
5941
5985
  style: { "margin-right": "10px" },
@@ -6040,7 +6084,7 @@ const oi = {
6040
6084
  [1, "rgba(197,5,58,0.8)"]
6041
6085
  ];
6042
6086
  this.rampColor = this.webgl.setup(this.context, a);
6043
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
6087
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
6044
6088
  this.program = e, this.aPositionBuffer = t;
6045
6089
  }
6046
6090
  },
@@ -6056,10 +6100,10 @@ const oi = {
6056
6100
  }, ni = { key: 0 };
6057
6101
  function li(a, e, t, r, i, s) {
6058
6102
  var n;
6059
- return (n = t.factor) != null && n.active ? (m(), g("div", ni, [
6103
+ return (n = t.factor) != null && n.active ? (u(), g("div", ni, [
6060
6104
  o("div", {
6061
6105
  class: "legend-bars flex-center",
6062
- style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
6106
+ style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
6063
6107
  }, e[0] || (e[0] = [
6064
6108
  o("span", null, "mm", -1),
6065
6109
  o("span", null, "1.5", -1),
@@ -6154,7 +6198,7 @@ const ci = {
6154
6198
  [1, "rgba(144,144,144,0)"]
6155
6199
  ];
6156
6200
  this.rampColor = this.webgl.setup(this.context, a);
6157
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
6201
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
6158
6202
  this.program = e, this.aPositionBuffer = t;
6159
6203
  }
6160
6204
  },
@@ -6170,10 +6214,10 @@ const ci = {
6170
6214
  }, di = { key: 0 };
6171
6215
  function pi(a, e, t, r, i, s) {
6172
6216
  var n;
6173
- return (n = t.factor) != null && n.active ? (m(), g("div", di, [
6217
+ return (n = t.factor) != null && n.active ? (u(), g("div", di, [
6174
6218
  o("div", {
6175
6219
  class: "legend-bars flex-center",
6176
- style: he([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
6220
+ style: de([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
6177
6221
  }, e[0] || (e[0] = [
6178
6222
  o("span", null, "nm", -1),
6179
6223
  o("span", null, "0", -1),
@@ -6274,7 +6318,7 @@ const ui = {
6274
6318
  //
6275
6319
  ];
6276
6320
  this.rampColor = this.webgl.setup(this.context, a);
6277
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
6321
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
6278
6322
  this.program = e, this.aPositionBuffer = t;
6279
6323
  }
6280
6324
  },
@@ -6290,10 +6334,10 @@ const ui = {
6290
6334
  }, gi = { key: 0 };
6291
6335
  function yi(a, e, t, r, i, s) {
6292
6336
  var n;
6293
- return (n = t.factor) != null && n.active ? (m(), g("div", gi, [
6337
+ return (n = t.factor) != null && n.active ? (u(), g("div", gi, [
6294
6338
  o("div", {
6295
6339
  class: "legend-bars flex-center",
6296
- style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
6340
+ style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
6297
6341
  }, e[0] || (e[0] = [
6298
6342
  o("span", null, "°C", -1),
6299
6343
  o("span", null, "0", -1),
@@ -6397,7 +6441,7 @@ const Ai = {
6397
6441
  [1, "rgb(138, 43, 10)"]
6398
6442
  ];
6399
6443
  this.rampColor = this.webgl.setup(this.context, a);
6400
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
6444
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
6401
6445
  this.program = e, this.aPositionBuffer = t;
6402
6446
  }
6403
6447
  },
@@ -6413,10 +6457,10 @@ const Ai = {
6413
6457
  }, wi = { key: 0 };
6414
6458
  function vi(a, e, t, r, i, s) {
6415
6459
  var n;
6416
- return (n = t.factor) != null && n.active ? (m(), g("div", wi, [
6460
+ return (n = t.factor) != null && n.active ? (u(), g("div", wi, [
6417
6461
  o("div", {
6418
6462
  class: "legend-bars flex-center",
6419
- style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
6463
+ style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
6420
6464
  }, e[0] || (e[0] = [
6421
6465
  o("span", null, "°C", -1),
6422
6466
  o("span", null, "-20", -1),
@@ -6435,7 +6479,7 @@ var Li = /* @__PURE__ */ ft({
6435
6479
  name: "LocationFilled",
6436
6480
  __name: "location-filled",
6437
6481
  setup(a) {
6438
- return (e, t) => (m(), g("svg", {
6482
+ return (e, t) => (u(), g("svg", {
6439
6483
  xmlns: "http://www.w3.org/2000/svg",
6440
6484
  viewBox: "0 0 1024 1024"
6441
6485
  }, [
@@ -6592,17 +6636,17 @@ const _i = {
6592
6636
  },
6593
6637
  computeLat() {
6594
6638
  return function(a, e = 4) {
6595
- return oe.lat2pretty(a, e).pretty;
6639
+ return ne.lat2pretty(a, e).pretty;
6596
6640
  };
6597
6641
  },
6598
6642
  computeLng() {
6599
6643
  return function(a, e = 4) {
6600
- return oe.lng2pretty(a, e).pretty;
6644
+ return ne.lng2pretty(a, e).pretty;
6601
6645
  };
6602
6646
  },
6603
6647
  roundPrecision() {
6604
6648
  return function(a, e = 4) {
6605
- return isNaN(a) ? "-" : oe.roundPrecision(a, e);
6649
+ return isNaN(a) ? "-" : ne.roundPrecision(a, e);
6606
6650
  };
6607
6651
  }
6608
6652
  },
@@ -6643,9 +6687,9 @@ const _i = {
6643
6687
  (n == null ? void 0 : n.data.code) === 0 && (this.meteoData = n == null ? void 0 : n.data.data, this.loading = !1);
6644
6688
  },
6645
6689
  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;
6690
+ var e, t, r, i, s, n, l, c, d;
6691
+ 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(() => {
6692
+ var p, b, x, E, A, B, _, f, v, m, L, y, w, M, D, N, Q, j, G, W, he, te, pe, ye, se, ve, fe, Y, ae, Ae, ge, we, xe;
6649
6693
  if (!document.getElementById("meteoMainBox"))
6650
6694
  return !1;
6651
6695
  if (!this.currentHourData)
@@ -6653,8 +6697,8 @@ const _i = {
6653
6697
  for (let be = 0; be < 8; be++) {
6654
6698
  const _e = Ye(this.ts).tz(this.positionGmt).add(3 * be, "h").format();
6655
6699
  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) ?? "-");
6700
+ const I = ((p = Ke.pickHourly(a, _e)) == null ? void 0 : p[0]) || {};
6701
+ this.tableData.temp.push(this.roundPrecision((b = I == null ? void 0 : I.weather) == null ? void 0 : b.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((E = (x = I == null ? void 0 : I.weather) == null ? void 0 : x.precip) == null ? void 0 : E.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((B = (A = I == null ? void 0 : I.weather) == null ? void 0 : A.precip) == null ? void 0 : B.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((_ = I == null ? void 0 : I.weather) == null ? void 0 : _.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((v = (f = I == null ? void 0 : I.weather) == null ? void 0 : f.wind) == null ? void 0 : v.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((w = (y = I == null ? void 0 : I.weather) == null ? void 0 : y.wind) == null ? void 0 : w.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((D = (M = I == null ? void 0 : I.wave) == null ? void 0 : M.sig) == null ? void 0 : D.height, 1) ?? "-"), this.tableData.sigwaveDir.push((Q = (N = I == null ? void 0 : I.wave) == null ? void 0 : N.sig) == null ? void 0 : Q.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((he = (W = I == null ? void 0 : I.wave) == null ? void 0 : W.wd) == null ? void 0 : he.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((pe = (te = I == null ? void 0 : I.wave) == null ? void 0 : te.wd) == null ? void 0 : pe.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((se = (ye = I == null ? void 0 : I.wave) == null ? void 0 : ye.swell) == null ? void 0 : se.height, 1) ?? "-"), this.tableData.swellDir.push((fe = (ve = I == null ? void 0 : I.wave) == null ? void 0 : ve.swell) == null ? void 0 : fe.bearing), this.tableData.swellPeriod.push(this.roundPrecision((ae = (Y = I == null ? void 0 : I.wave) == null ? void 0 : Y.swell) == null ? void 0 : ae.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((Ae = I == null ? void 0 : I.current) == null ? void 0 : Ae.speed, 1) ?? "-"), this.tableData.currentDir.push((ge = I == null ? void 0 : I.current) == null ? void 0 : ge.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((we = I == null ? void 0 : I.weather) == null ? void 0 : we.url), this.tableData.weatherNames.push(((xe = I == null ? void 0 : I.weather) == null ? void 0 : xe.name) ?? "-");
6658
6702
  }
6659
6703
  });
6660
6704
  },
@@ -6731,7 +6775,7 @@ const _i = {
6731
6775
  this.$nextTick(() => {
6732
6776
  var e;
6733
6777
  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));
6778
+ 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
6779
  });
6736
6780
  }
6737
6781
  }
@@ -6780,110 +6824,110 @@ const _i = {
6780
6824
  class: "main-box flex-center"
6781
6825
  };
6782
6826
  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;
6827
+ var d, h, p, b, x, E, A, B, _, f, v, m, L, y, w, M, D, N, Q, j, G, W, he, te, pe, ye, se, ve, fe, Y, ae, Ae, ge, we, xe, be, _e, I, ze, Le, Pe, Ee, He, ke, oe, me, H, Be, K, q, Me, P, ue, De, Se, Te, z, O, Ge, Ue, re, Ne, tt, at, it, rt, st, ot;
6784
6828
  const n = R("LocationFilled"), l = R("ElIcon"), c = R("ElTooltip");
6785
- return Fe((m(), g("div", Bi, [
6829
+ return Fe((u(), g("div", Bi, [
6786
6830
  o("div", Ii, [
6787
6831
  o("div", Ei, [
6788
6832
  o("div", ki, [
6789
- H(l, { size: "22" }, {
6833
+ F(l, { size: "22" }, {
6790
6834
  default: Ie(() => [
6791
- H(n)
6835
+ F(n)
6792
6836
  ]),
6793
6837
  _: 1
6794
6838
  }),
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)
6839
+ o("div", Di, k(s.computeLat((d = i.point) == null ? void 0 : d.lat)) + "," + k(s.computeLng((h = i.point) == null ? void 0 : h.lng)), 1)
6796
6840
  ]),
6797
6841
  o("div", zi, [
6798
- i.showTables ? (m(), g("div", {
6842
+ i.showTables ? (u(), g("div", {
6799
6843
  key: 0,
6800
6844
  class: "iconfont toggle",
6801
- onClick: e[0] || (e[0] = (x) => i.showTables = !i.showTables)
6802
- }, "")) : (m(), g("div", {
6845
+ onClick: e[0] || (e[0] = (C) => i.showTables = !i.showTables)
6846
+ }, "")) : (u(), g("div", {
6803
6847
  key: 1,
6804
6848
  class: "iconfont toggle",
6805
- onClick: e[1] || (e[1] = (x) => i.showTables = !i.showTables)
6849
+ onClick: e[1] || (e[1] = (C) => i.showTables = !i.showTables)
6806
6850
  }, "")),
6807
6851
  o("div", {
6808
6852
  class: "iconfont close",
6809
- onClick: e[2] || (e[2] = (...x) => s.handleCloseMeteo && s.handleCloseMeteo(...x))
6853
+ onClick: e[2] || (e[2] = (...C) => s.handleCloseMeteo && s.handleCloseMeteo(...C))
6810
6854
  }, "")
6811
6855
  ])
6812
6856
  ]),
6813
- i.loading ? (m(), g("div", Tr, e[43] || (e[43] = [
6857
+ i.loading ? (u(), g("div", Tr, e[43] || (e[43] = [
6814
6858
  o("img", {
6815
6859
  src: xi,
6816
6860
  alt: ""
6817
6861
  }, null, -1)
6818
- ]))) : (m(), g("div", {
6862
+ ]))) : (u(), g("div", {
6819
6863
  key: 0,
6820
6864
  class: Z(["main-box", i.isDay ? "day-bg" : "night-bg"]),
6821
6865
  id: "meteoMainBox"
6822
6866
  }, [
6823
6867
  o("div", Pi, [
6824
6868
  o("div", Mi, [
6825
- H(c, {
6869
+ F(c, {
6826
6870
  placement: "top",
6827
6871
  effect: "light",
6828
- content: (A = (d = i.currentHourData) == null ? void 0 : d.weather) == null ? void 0 : A.name,
6872
+ content: (b = (p = i.currentHourData) == null ? void 0 : p.weather) == null ? void 0 : b.name,
6829
6873
  "show-after": 1e3
6830
6874
  }, {
6831
6875
  default: Ie(() => {
6832
- var x, M, nt, lt;
6876
+ var C, S, nt, lt;
6833
6877
  return [
6834
- (M = (x = i.currentHourData) == null ? void 0 : x.weather) != null && M.url ? (m(), g("img", {
6878
+ (S = (C = i.currentHourData) == null ? void 0 : C.weather) != null && S.url ? (u(), g("img", {
6835
6879
  key: 0,
6836
6880
  class: "iconfont icon",
6837
6881
  style: { "margin-right": "5px" },
6838
6882
  src: (lt = (nt = i.currentHourData) == null ? void 0 : nt.weather) == null ? void 0 : lt.url
6839
- }, null, 8, Si)) : (m(), g("span", Ti))
6883
+ }, null, 8, Si)) : (u(), g("span", Ti))
6840
6884
  ];
6841
6885
  }),
6842
6886
  _: 1
6843
6887
  }, 8, ["content"]),
6844
6888
  o("div", Qi, [
6845
6889
  o("div", null, [
6846
- le(I(s.roundPrecision((E = (b = i.currentHourData) == null ? void 0 : b.weather) == null ? void 0 : E.temp, 0)), 1),
6890
+ ce(k(s.roundPrecision((E = (x = i.currentHourData) == null ? void 0 : x.weather) == null ? void 0 : E.temp, 0)), 1),
6847
6891
  e[9] || (e[9] = o("span", { style: { "font-size": "14px" } }, "°C", -1))
6848
6892
  ])
6849
6893
  ]),
6850
6894
  o("div", Hi, [
6851
6895
  o("div", Ni, [
6852
6896
  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)
6897
+ o("span", null, k(s.roundPrecision((_ = (B = (A = i.currentHourData) == null ? void 0 : A.weather) == null ? void 0 : B.precip) == null ? void 0 : _.sum, 0)) + " mm", 1)
6854
6898
  ]),
6855
6899
  o("div", Fi, [
6856
6900
  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)
6901
+ o("span", null, k(s.roundPrecision((v = (f = i.currentHourData) == null ? void 0 : f.weather) == null ? void 0 : v.visibility, 0)) + " nm", 1)
6858
6902
  ]),
6859
6903
  o("div", Oi, [
6860
6904
  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)
6905
+ o("span", null, k(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
6906
  ])
6863
6907
  ])
6864
6908
  ]),
6865
6909
  o("div", Ri, [
6866
- o("div", ji, I(i.localDate), 1),
6867
- o("div", Wi, "( UTC " + I(i.positionOffset) + " )", 1)
6910
+ o("div", ji, k(i.localDate), 1),
6911
+ o("div", Wi, "( UTC " + k(i.positionOffset) + " )", 1)
6868
6912
  ])
6869
6913
  ]),
6870
6914
  Fe(o("div", Gi, [
6871
6915
  o("div", Ui, [
6872
6916
  o("div", {
6873
6917
  class: Z(["menu-item", i.activeIndex === 1 ? "active" : ""]),
6874
- onClick: e[3] || (e[3] = Ve((x) => s.handleSelectTab(1), ["prevent"]))
6918
+ onClick: e[3] || (e[3] = Ve((C) => s.handleSelectTab(1), ["prevent"]))
6875
6919
  }, "Basis", 2),
6876
6920
  o("div", {
6877
6921
  class: Z(["menu-item", i.activeIndex === 2 ? "active" : ""]),
6878
- onClick: e[4] || (e[4] = Ve((x) => s.handleSelectTab(2), ["prevent"]))
6922
+ onClick: e[4] || (e[4] = Ve((C) => s.handleSelectTab(2), ["prevent"]))
6879
6923
  }, "Wave & Current", 2),
6880
6924
  o("div", {
6881
6925
  class: Z(["menu-item", i.activeIndex === 3 ? "active" : ""]),
6882
- onClick: e[5] || (e[5] = Ve((x) => s.handleSelectTab(3), ["prevent"]))
6926
+ onClick: e[5] || (e[5] = Ve((C) => s.handleSelectTab(3), ["prevent"]))
6883
6927
  }, "Sea Surface", 2),
6884
6928
  o("div", {
6885
6929
  class: Z(["menu-item", i.activeIndex === 4 ? "active" : ""]),
6886
- onClick: e[6] || (e[6] = Ve((x) => s.handleSelectTab(4), ["prevent"]))
6930
+ onClick: e[6] || (e[6] = Ve((C) => s.handleSelectTab(4), ["prevent"]))
6887
6931
  }, "Tides", 2)
6888
6932
  ]),
6889
6933
  Fe(o("table", Yi, [
@@ -6893,14 +6937,14 @@ function Qr(a, e, t, r, i, s) {
6893
6937
  colspan: "1",
6894
6938
  class: "tr-title"
6895
6939
  }, [
6896
- le("Hours"),
6940
+ ce("Hours"),
6897
6941
  o("span", { class: "unit" }, "(LT)")
6898
6942
  ], -1)),
6899
- (m(!0), g(V, null, $(i.tableData.hours, (x) => (m(), g("th", {
6943
+ (u(!0), g(V, null, $(i.tableData.hours, (C) => (u(), g("th", {
6900
6944
  rowspan: "1",
6901
6945
  colspan: "1",
6902
- key: `HourL${x}`
6903
- }, I(s.computeHourL(x)), 1))), 128))
6946
+ key: `HourL${C}`
6947
+ }, k(s.computeHourL(C)), 1))), 128))
6904
6948
  ]),
6905
6949
  o("tr", Xi, [
6906
6950
  e[14] || (e[14] = o("th", {
@@ -6908,14 +6952,14 @@ function Qr(a, e, t, r, i, s) {
6908
6952
  colspan: "1",
6909
6953
  class: "tr-title"
6910
6954
  }, [
6911
- le("UTC"),
6955
+ ce("UTC"),
6912
6956
  o("span", { class: "unit" })
6913
6957
  ], -1)),
6914
- (m(!0), g(V, null, $(i.tableData.hours, (x) => (m(), g("th", {
6958
+ (u(!0), g(V, null, $(i.tableData.hours, (C) => (u(), g("th", {
6915
6959
  rowspan: "1",
6916
6960
  colspan: "1",
6917
- key: `HourZ${x}`
6918
- }, I(s.computeHourZ(x)), 1))), 128))
6961
+ key: `HourZ${C}`
6962
+ }, k(s.computeHourZ(C)), 1))), 128))
6919
6963
  ]),
6920
6964
  o("tr", Ji, [
6921
6965
  e[15] || (e[15] = o("th", {
@@ -6923,22 +6967,22 @@ function Qr(a, e, t, r, i, s) {
6923
6967
  colspan: "1",
6924
6968
  class: "tr-title"
6925
6969
  }, null, -1)),
6926
- (m(!0), g(V, null, $(i.tableData.weatherUrls, (x, M) => (m(), g("th", {
6970
+ (u(!0), g(V, null, $(i.tableData.weatherUrls, (C, S) => (u(), g("th", {
6927
6971
  rowspan: "1",
6928
6972
  colspan: "1",
6929
- key: `weatherUrls${M}${x}`
6973
+ key: `weatherUrls${S}${C}`
6930
6974
  }, [
6931
- H(c, {
6975
+ F(c, {
6932
6976
  placement: "top",
6933
6977
  effect: "light",
6934
- content: i.tableData.weatherNames[M],
6978
+ content: i.tableData.weatherNames[S],
6935
6979
  "show-after": 500
6936
6980
  }, {
6937
6981
  default: Ie(() => [
6938
- x ? (m(), g("img", {
6982
+ C ? (u(), g("img", {
6939
6983
  key: 0,
6940
6984
  class: "iconfont weather-icon",
6941
- src: x,
6985
+ src: C,
6942
6986
  alt: ""
6943
6987
  }, null, 8, qi)) : J("", !0)
6944
6988
  ]),
@@ -6952,14 +6996,14 @@ function Qr(a, e, t, r, i, s) {
6952
6996
  colspan: "1",
6953
6997
  class: "tr-title"
6954
6998
  }, [
6955
- le("Temp"),
6999
+ ce("Temp"),
6956
7000
  o("span", { class: "unit" }, "°C")
6957
7001
  ], -1)),
6958
- (m(!0), g(V, null, $(i.tableData.temp, (x, M) => (m(), g("td", {
7002
+ (u(!0), g(V, null, $(i.tableData.temp, (C, S) => (u(), g("td", {
6959
7003
  rowspan: "1",
6960
7004
  colspan: "1",
6961
- key: `weatherUrls${M}${x}`
6962
- }, I(x), 1))), 128))
7005
+ key: `weatherUrls${S}${C}`
7006
+ }, k(C), 1))), 128))
6963
7007
  ]),
6964
7008
  o("tr", Zi, [
6965
7009
  e[17] || (e[17] = o("td", {
@@ -6967,14 +7011,14 @@ function Qr(a, e, t, r, i, s) {
6967
7011
  colspan: "1",
6968
7012
  class: "tr-title"
6969
7013
  }, [
6970
- le("Precip"),
7014
+ ce("Precip"),
6971
7015
  o("span", { class: "unit" }, "mm")
6972
7016
  ], -1)),
6973
- (m(!0), g(V, null, $(i.tableData.precip1h, (x, M) => (m(), g("td", {
7017
+ (u(!0), g(V, null, $(i.tableData.precip1h, (C, S) => (u(), g("td", {
6974
7018
  rowspan: "1",
6975
7019
  colspan: "1",
6976
- key: `precip1h${M}${x}`
6977
- }, I(x), 1))), 128))
7020
+ key: `precip1h${S}${C}`
7021
+ }, k(C), 1))), 128))
6978
7022
  ]),
6979
7023
  o("tr", $i, [
6980
7024
  e[18] || (e[18] = o("td", {
@@ -6982,14 +7026,14 @@ function Qr(a, e, t, r, i, s) {
6982
7026
  colspan: "1",
6983
7027
  class: "tr-title"
6984
7028
  }, [
6985
- le("Visibility"),
7029
+ ce("Visibility"),
6986
7030
  o("span", { class: "unit" }, "nm")
6987
7031
  ], -1)),
6988
- (m(!0), g(V, null, $(i.tableData.visibility, (x, M) => (m(), g("td", {
7032
+ (u(!0), g(V, null, $(i.tableData.visibility, (C, S) => (u(), g("td", {
6989
7033
  rowspan: "1",
6990
7034
  colspan: "1",
6991
- key: `visibility${M}${x}`
6992
- }, I(x), 1))), 128))
7035
+ key: `visibility${S}${C}`
7036
+ }, k(C), 1))), 128))
6993
7037
  ]),
6994
7038
  o("tr", er, [
6995
7039
  e[19] || (e[19] = o("td", {
@@ -6997,15 +7041,15 @@ function Qr(a, e, t, r, i, s) {
6997
7041
  colspan: "1",
6998
7042
  class: "tr-title"
6999
7043
  }, [
7000
- le("Wind gust"),
7044
+ ce("Wind gust"),
7001
7045
  o("span", { class: "unit" }, "kts")
7002
7046
  ], -1)),
7003
- (m(!0), g(V, null, $(i.tableData.windGust, (x, M) => (m(), g("td", {
7047
+ (u(!0), g(V, null, $(i.tableData.windGust, (C, S) => (u(), g("td", {
7004
7048
  rowspan: "1",
7005
7049
  colspan: "1",
7006
- key: `windGust${M}${x}`
7050
+ key: `windGust${S}${C}`
7007
7051
  }, [
7008
- o("span", null, I(x), 1)
7052
+ o("span", null, k(C), 1)
7009
7053
  ]))), 128))
7010
7054
  ])
7011
7055
  ], 512), [
@@ -7018,14 +7062,14 @@ function Qr(a, e, t, r, i, s) {
7018
7062
  colspan: "1",
7019
7063
  class: "tr-title"
7020
7064
  }, [
7021
- le("Hours"),
7065
+ ce("Hours"),
7022
7066
  o("span", { class: "unit" }, "(LT)")
7023
7067
  ], -1)),
7024
- (m(!0), g(V, null, $(i.tableData.hours, (x, M) => (m(), g("th", {
7068
+ (u(!0), g(V, null, $(i.tableData.hours, (C, S) => (u(), g("th", {
7025
7069
  rowspan: "1",
7026
7070
  colspan: "1",
7027
- key: `currenthoursL${M}${x}`
7028
- }, I(s.computeHourL(x)), 1))), 128))
7071
+ key: `currenthoursL${S}${C}`
7072
+ }, k(s.computeHourL(C)), 1))), 128))
7029
7073
  ]),
7030
7074
  o("tr", ir, [
7031
7075
  e[21] || (e[21] = o("th", {
@@ -7033,14 +7077,14 @@ function Qr(a, e, t, r, i, s) {
7033
7077
  colspan: "1",
7034
7078
  class: "tr-title"
7035
7079
  }, [
7036
- le("UTC"),
7080
+ ce("UTC"),
7037
7081
  o("span", { class: "unit" })
7038
7082
  ], -1)),
7039
- (m(!0), g(V, null, $(i.tableData.hours, (x, M) => (m(), g("th", {
7083
+ (u(!0), g(V, null, $(i.tableData.hours, (C, S) => (u(), g("th", {
7040
7084
  rowspan: "1",
7041
7085
  colspan: "1",
7042
- key: `currenthoursZ${M}${x}`
7043
- }, I(s.computeHourZ(x)), 1))), 128))
7086
+ key: `currenthoursZ${S}${C}`
7087
+ }, k(s.computeHourZ(C)), 1))), 128))
7044
7088
  ]),
7045
7089
  o("tr", rr, [
7046
7090
  e[22] || (e[22] = o("td", {
@@ -7048,20 +7092,20 @@ function Qr(a, e, t, r, i, s) {
7048
7092
  colspan: "1",
7049
7093
  class: "tr-title"
7050
7094
  }, [
7051
- le("Wind"),
7095
+ ce("Wind"),
7052
7096
  o("span", { class: "unit" }, "kts")
7053
7097
  ], -1)),
7054
- (m(!0), g(V, null, $(i.tableData.windSpeed, (x, M) => (m(), g("td", {
7098
+ (u(!0), g(V, null, $(i.tableData.windSpeed, (C, S) => (u(), g("td", {
7055
7099
  rowspan: "1",
7056
7100
  colspan: "1",
7057
- key: `windSpeed${M}${x}`
7101
+ key: `windSpeed${S}${C}`
7058
7102
  }, [
7059
- isNaN(i.tableData.windDir[M]) ? J("", !0) : (m(), g("span", {
7103
+ isNaN(i.tableData.windDir[S]) ? J("", !0) : (u(), g("span", {
7060
7104
  key: 0,
7061
7105
  class: "iconfont icon wind",
7062
- style: he({ display: "inline-block", transform: `rotate(${i.tableData.windDir[M]}deg)` })
7106
+ style: de({ display: "inline-block", transform: `rotate(${i.tableData.windDir[S]}deg)` })
7063
7107
  }, "", 4)),
7064
- o("span", null, I(x), 1)
7108
+ o("span", null, k(C), 1)
7065
7109
  ]))), 128))
7066
7110
  ]),
7067
7111
  o("tr", sr, [
@@ -7070,20 +7114,20 @@ function Qr(a, e, t, r, i, s) {
7070
7114
  colspan: "1",
7071
7115
  class: "tr-title"
7072
7116
  }, [
7073
- le("Sig Wave"),
7117
+ ce("Sig Wave"),
7074
7118
  o("span", { class: "unit" }, "m")
7075
7119
  ], -1)),
7076
- (m(!0), g(V, null, $(i.tableData.sigwaveHeight, (x, M) => (m(), g("td", {
7120
+ (u(!0), g(V, null, $(i.tableData.sigwaveHeight, (C, S) => (u(), g("td", {
7077
7121
  rowspan: "1",
7078
7122
  colspan: "1",
7079
- key: `sigwaveHeight${M}${x}`
7123
+ key: `sigwaveHeight${S}${C}`
7080
7124
  }, [
7081
- isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (m(), g("span", {
7125
+ isNaN(i.tableData.sigwaveDir[S]) ? J("", !0) : (u(), g("span", {
7082
7126
  key: 0,
7083
7127
  class: "iconfont icon sigwave",
7084
- style: he({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[M]}deg)` })
7128
+ style: de({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[S]}deg)` })
7085
7129
  }, "", 4)),
7086
- o("span", null, I(x), 1)
7130
+ o("span", null, k(C), 1)
7087
7131
  ]))), 128))
7088
7132
  ]),
7089
7133
  o("tr", or, [
@@ -7092,20 +7136,20 @@ function Qr(a, e, t, r, i, s) {
7092
7136
  colspan: "1",
7093
7137
  class: "tr-title"
7094
7138
  }, [
7095
- le("Wind Wave"),
7139
+ ce("Wind Wave"),
7096
7140
  o("span", { class: "unit" }, "m")
7097
7141
  ], -1)),
7098
- (m(!0), g(V, null, $(i.tableData.windwaveHeight, (x, M) => (m(), g("td", {
7142
+ (u(!0), g(V, null, $(i.tableData.windwaveHeight, (C, S) => (u(), g("td", {
7099
7143
  rowspan: "1",
7100
7144
  colspan: "1",
7101
- key: `windwaveHeight${M}${x}`
7145
+ key: `windwaveHeight${S}${C}`
7102
7146
  }, [
7103
- isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (m(), g("span", {
7147
+ isNaN(i.tableData.sigwaveDir[S]) ? J("", !0) : (u(), g("span", {
7104
7148
  key: 0,
7105
7149
  class: "iconfont icon windwave",
7106
- style: he({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[M]}deg)` })
7150
+ style: de({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[S]}deg)` })
7107
7151
  }, "", 4)),
7108
- o("span", null, I(x), 1)
7152
+ o("span", null, k(C), 1)
7109
7153
  ]))), 128))
7110
7154
  ]),
7111
7155
  o("tr", nr, [
@@ -7114,20 +7158,20 @@ function Qr(a, e, t, r, i, s) {
7114
7158
  colspan: "1",
7115
7159
  class: "tr-title"
7116
7160
  }, [
7117
- le("Swell"),
7161
+ ce("Swell"),
7118
7162
  o("span", { class: "unit" }, "m")
7119
7163
  ], -1)),
7120
- (m(!0), g(V, null, $(i.tableData.swellHeight, (x, M) => (m(), g("td", {
7164
+ (u(!0), g(V, null, $(i.tableData.swellHeight, (C, S) => (u(), g("td", {
7121
7165
  rowspan: "1",
7122
7166
  colspan: "1",
7123
- key: `swellHeight${M}${x}`
7167
+ key: `swellHeight${S}${C}`
7124
7168
  }, [
7125
- isNaN(i.tableData.swellDir[M]) ? J("", !0) : (m(), g("span", {
7169
+ isNaN(i.tableData.swellDir[S]) ? J("", !0) : (u(), g("span", {
7126
7170
  key: 0,
7127
7171
  class: "iconfont icon swell",
7128
- style: he({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[M]}deg)` })
7172
+ style: de({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[S]}deg)` })
7129
7173
  }, "", 4)),
7130
- o("span", null, I(x), 1)
7174
+ o("span", null, k(C), 1)
7131
7175
  ]))), 128))
7132
7176
  ]),
7133
7177
  o("tr", lr, [
@@ -7136,21 +7180,21 @@ function Qr(a, e, t, r, i, s) {
7136
7180
  colspan: "1",
7137
7181
  class: "tr-title"
7138
7182
  }, [
7139
- le("Current"),
7183
+ ce("Current"),
7140
7184
  o("span", { class: "unit" }, "kts")
7141
7185
  ], -1)),
7142
- (m(!0), g(V, null, $(i.tableData.currentSpeed, (x, M) => (m(), g("td", {
7186
+ (u(!0), g(V, null, $(i.tableData.currentSpeed, (C, S) => (u(), g("td", {
7143
7187
  rowspan: "1",
7144
7188
  colspan: "1",
7145
- key: `currentSpeed${M}${x}`
7189
+ key: `currentSpeed${S}${C}`
7146
7190
  }, [
7147
- isNaN(i.tableData.currentDir[M]) ? J("", !0) : (m(), g("span", {
7191
+ isNaN(i.tableData.currentDir[S]) ? J("", !0) : (u(), g("span", {
7148
7192
  key: 0,
7149
7193
  class: "iconfont icon current",
7150
7194
  id: "meteoGrayIcon",
7151
- style: he({ display: "inline-block", transform: `rotate(${i.tableData.currentDir[M]}deg)` })
7195
+ style: de({ display: "inline-block", transform: `rotate(${i.tableData.currentDir[S]}deg)` })
7152
7196
  }, "", 4)),
7153
- o("span", null, I(x), 1)
7197
+ o("span", null, k(C), 1)
7154
7198
  ]))), 128))
7155
7199
  ])
7156
7200
  ], 512), [
@@ -7163,14 +7207,14 @@ function Qr(a, e, t, r, i, s) {
7163
7207
  colspan: "1",
7164
7208
  class: "tr-title"
7165
7209
  }, [
7166
- le("Hours"),
7210
+ ce("Hours"),
7167
7211
  o("span", { class: "unit" }, "(LT)")
7168
7212
  ], -1)),
7169
- (m(!0), g(V, null, $(i.tableData.hours, (x, M) => (m(), g("th", {
7213
+ (u(!0), g(V, null, $(i.tableData.hours, (C, S) => (u(), g("th", {
7170
7214
  rowspan: "1",
7171
7215
  colspan: "1",
7172
- key: `seahoursL${M}${x}`
7173
- }, I(s.computeHourL(x)), 1))), 128))
7216
+ key: `seahoursL${S}${C}`
7217
+ }, k(s.computeHourL(C)), 1))), 128))
7174
7218
  ]),
7175
7219
  o("tr", dr, [
7176
7220
  e[28] || (e[28] = o("th", {
@@ -7178,14 +7222,14 @@ function Qr(a, e, t, r, i, s) {
7178
7222
  colspan: "1",
7179
7223
  class: "tr-title"
7180
7224
  }, [
7181
- le("UTC"),
7225
+ ce("UTC"),
7182
7226
  o("span", { class: "unit" })
7183
7227
  ], -1)),
7184
- (m(!0), g(V, null, $(i.tableData.hours, (x, M) => (m(), g("th", {
7228
+ (u(!0), g(V, null, $(i.tableData.hours, (C, S) => (u(), g("th", {
7185
7229
  rowspan: "1",
7186
7230
  colspan: "1",
7187
- key: `seahoursZ${M}${x}`
7188
- }, I(s.computeHourZ(x)), 1))), 128))
7231
+ key: `seahoursZ${S}${C}`
7232
+ }, k(s.computeHourZ(C)), 1))), 128))
7189
7233
  ]),
7190
7234
  o("tr", pr, [
7191
7235
  e[29] || (e[29] = o("td", {
@@ -7193,14 +7237,14 @@ function Qr(a, e, t, r, i, s) {
7193
7237
  colspan: "1",
7194
7238
  class: "tr-title"
7195
7239
  }, [
7196
- le("SeaLevel"),
7240
+ ce("SeaLevel"),
7197
7241
  o("span", { class: "unit" }, "m")
7198
7242
  ], -1)),
7199
- (m(!0), g(V, null, $(i.tableData.seaLevel, (x, M) => (m(), g("td", {
7243
+ (u(!0), g(V, null, $(i.tableData.seaLevel, (C, S) => (u(), g("td", {
7200
7244
  rowspan: "1",
7201
7245
  colspan: "1",
7202
- key: `SeaLevel${M}${x}`
7203
- }, I(x), 1))), 128))
7246
+ key: `SeaLevel${S}${C}`
7247
+ }, k(C), 1))), 128))
7204
7248
  ]),
7205
7249
  o("tr", mr, [
7206
7250
  e[30] || (e[30] = o("td", {
@@ -7208,42 +7252,42 @@ function Qr(a, e, t, r, i, s) {
7208
7252
  colspan: "1",
7209
7253
  class: "tr-title"
7210
7254
  }, [
7211
- le("SeaTemp"),
7255
+ ce("SeaTemp"),
7212
7256
  o("span", { class: "unit" }, "°C")
7213
7257
  ], -1)),
7214
- (m(!0), g(V, null, $(i.tableData.seaTemp, (x, M) => (m(), g("td", {
7258
+ (u(!0), g(V, null, $(i.tableData.seaTemp, (C, S) => (u(), g("td", {
7215
7259
  rowspan: "1",
7216
7260
  colspan: "1",
7217
- key: `SeaTemp${M}${x}`
7218
- }, I(x), 1))), 128))
7261
+ key: `SeaTemp${S}${C}`
7262
+ }, k(C), 1))), 128))
7219
7263
  ])
7220
7264
  ], 512), [
7221
7265
  [Oe, i.activeIndex === 3]
7222
7266
  ]),
7223
- i.activeIndex === 3 ? (m(), g("div", ur, e[31] || (e[31] = [
7267
+ i.activeIndex === 3 ? (u(), g("div", ur, e[31] || (e[31] = [
7224
7268
  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
7269
  ]))) : J("", !0),
7226
7270
  Fe(o("table", gr, [
7227
7271
  o("tr", yr, [
7228
- (m(!0), g(V, null, $(i.tideTableData, (x, M) => (m(), g("th", {
7272
+ (u(!0), g(V, null, $(i.tideTableData, (C, S) => (u(), g("th", {
7229
7273
  rowspan: "1",
7230
7274
  colspan: "1",
7231
- key: `Tide-tr-${M}${x}`
7232
- }, I(x.type) + " Tide", 1))), 128))
7275
+ key: `Tide-tr-${S}${C}`
7276
+ }, k(C.type) + " Tide", 1))), 128))
7233
7277
  ]),
7234
7278
  o("tr", fr, [
7235
- (m(!0), g(V, null, $(i.tideTableData, (x, M) => (m(), g("td", {
7279
+ (u(!0), g(V, null, $(i.tideTableData, (C, S) => (u(), g("td", {
7236
7280
  rowspan: "1",
7237
7281
  colspan: "1",
7238
- key: `Tide-date-${M}${x}`
7239
- }, I(s.computeHourHmmLT(x == null ? void 0 : x.date)), 1))), 128))
7282
+ key: `Tide-date-${S}${C}`
7283
+ }, k(s.computeHourHmmLT(C == null ? void 0 : C.date)), 1))), 128))
7240
7284
  ]),
7241
7285
  o("tr", Ar, [
7242
- (m(!0), g(V, null, $(i.tideTableData, (x, M) => (m(), g("td", {
7286
+ (u(!0), g(V, null, $(i.tideTableData, (C, S) => (u(), g("td", {
7243
7287
  rowspan: "1",
7244
7288
  colspan: "1",
7245
- key: `Tide-height-${M}${x}`
7246
- }, I(s.roundPrecision(x == null ? void 0 : x.height, 2)) + " m", 1))), 128))
7289
+ key: `Tide-height-${S}${C}`
7290
+ }, k(s.roundPrecision(C == null ? void 0 : C.height, 2)) + " m", 1))), 128))
7247
7291
  ]),
7248
7292
  e[32] || (e[32] = o("tr", { class: "tr-tide flex-center info" }, [
7249
7293
  o("td", null, [
@@ -7254,57 +7298,57 @@ function Qr(a, e, t, r, i, s) {
7254
7298
  [Oe, i.activeIndex === 4]
7255
7299
  ])
7256
7300
  ], 512), [
7257
- [Oe, ((T = (L = i.tableData) == null ? void 0 : L.hours) == null ? void 0 : T.length) > 0 && i.showTables]
7301
+ [Oe, ((M = (w = i.tableData) == null ? void 0 : w.hours) == null ? void 0 : M.length) > 0 && i.showTables]
7258
7302
  ]),
7259
7303
  Fe(o("div", wr, [
7260
7304
  o("div", vr, [
7261
7305
  o("div", br, [
7262
7306
  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)
7307
+ o("div", null, k((Q = (N = (D = i.currentHourData) == null ? void 0 : D.weather) == null ? void 0 : N.wind) == null ? void 0 : Q.direction) + "/" + k(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" + k((pe = (te = (he = i.currentHourData) == null ? void 0 : he.weather) == null ? void 0 : te.wind) == null ? void 0 : pe.scale) + "/" + k(s.roundPrecision((ve = (se = (ye = i.currentHourData) == null ? void 0 : ye.weather) == null ? void 0 : se.wind) == null ? void 0 : ve.gusts, 1)) + " kts", 1)
7264
7308
  ]),
7265
7309
  o("div", Lr, [
7266
7310
  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)
7311
+ o("div", null, k((ae = (Y = (fe = i.currentHourData) == null ? void 0 : fe.wave) == null ? void 0 : Y.sig) == null ? void 0 : ae.direction) + "/" + k(s.roundPrecision((we = (ge = (Ae = i.currentHourData) == null ? void 0 : Ae.wave) == null ? void 0 : ge.sig) == null ? void 0 : we.height, 1)) + "m/" + k(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
7312
  ])
7269
7313
  ]),
7270
7314
  o("div", Cr, [
7271
7315
  o("div", xr, [
7272
7316
  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)
7317
+ o("div", null, k((Le = (ze = (I = i.currentHourData) == null ? void 0 : I.wave) == null ? void 0 : ze.wd) == null ? void 0 : Le.direction) + "/" + k(s.roundPrecision((He = (Ee = (Pe = i.currentHourData) == null ? void 0 : Pe.wave) == null ? void 0 : Ee.wd) == null ? void 0 : He.height, 1)) + "m/" + k(s.roundPrecision((me = (oe = (ke = i.currentHourData) == null ? void 0 : ke.wave) == null ? void 0 : oe.wd) == null ? void 0 : me.period, 1)) + "s", 1)
7274
7318
  ]),
7275
7319
  o("div", _r, [
7276
7320
  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)
7321
+ o("div", null, k((K = (Be = (H = i.currentHourData) == null ? void 0 : H.wave) == null ? void 0 : Be.swell) == null ? void 0 : K.direction) + "/" + k(s.roundPrecision((P = (Me = (q = i.currentHourData) == null ? void 0 : q.wave) == null ? void 0 : Me.swell) == null ? void 0 : P.height, 1)) + "m/" + k(s.roundPrecision((Se = (De = (ue = i.currentHourData) == null ? void 0 : ue.wave) == null ? void 0 : De.swell) == null ? void 0 : Se.period, 1)) + "s", 1)
7278
7322
  ])
7279
7323
  ]),
7280
7324
  o("div", Br, [
7281
7325
  o("div", Ir, [
7282
7326
  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)
7327
+ o("div", null, k((z = (Te = i.currentHourData) == null ? void 0 : Te.current) == null ? void 0 : z.direction) + "/" + k(s.roundPrecision((Ge = (O = i.currentHourData) == null ? void 0 : O.current) == null ? void 0 : Ge.kts, 2)) + "kts", 1)
7284
7328
  ]),
7285
7329
  o("div", Er, [
7286
7330
  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)
7331
+ o("div", null, k(s.roundPrecision((Ue = i.currentHourData) == null ? void 0 : Ue.height, 1)) + "m", 1)
7288
7332
  ])
7289
7333
  ]),
7290
7334
  o("div", kr, [
7291
7335
  o("div", Dr, [
7292
7336
  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)
7337
+ o("div", null, k(s.roundPrecision((re = i.currentHourData) == null ? void 0 : re.sst, 1)) + "°C", 1)
7294
7338
  ]),
7295
7339
  o("div", zr, [
7296
7340
  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)
7341
+ o("div", null, k(s.roundPrecision((tt = (Ne = i.currentHourData) == null ? void 0 : Ne.weather) == null ? void 0 : tt.visibility, 1)) + "nm", 1)
7298
7342
  ])
7299
7343
  ]),
7300
7344
  o("div", Pr, [
7301
7345
  o("div", Mr, [
7302
7346
  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)
7347
+ o("div", null, k(s.roundPrecision((it = (at = i.currentHourData) == null ? void 0 : at.weather) == null ? void 0 : it.temp, 1)) + "°C", 1)
7304
7348
  ]),
7305
7349
  o("div", Sr, [
7306
7350
  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)
7351
+ o("div", null, k(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
7352
  ])
7309
7353
  ])
7310
7354
  ], 512), [
@@ -7313,14 +7357,14 @@ function Qr(a, e, t, r, i, s) {
7313
7357
  o("div", {
7314
7358
  class: Z(["action", i.isDay ? "day" : "night"])
7315
7359
  }, [
7316
- t.permission & i.helper.LEVEL.Supper ? (m(), g("div", {
7360
+ t.permission & i.helper.LEVEL.Supper ? (u(), g("div", {
7317
7361
  key: 0,
7318
7362
  class: "button",
7319
7363
  style: { "margin-right": "10px" },
7320
- onClick: e[7] || (e[7] = (...x) => s.handleNotify && s.handleNotify(...x))
7364
+ onClick: e[7] || (e[7] = (...C) => s.handleNotify && s.handleNotify(...C))
7321
7365
  }, "Notify")) : J("", !0),
7322
7366
  o("div", {
7323
- onClick: e[8] || (e[8] = (...x) => s.handleMeteoMore && s.handleMeteoMore(...x))
7367
+ onClick: e[8] || (e[8] = (...C) => s.handleMeteoMore && s.handleMeteoMore(...C))
7324
7368
  }, "More >>")
7325
7369
  ], 2)
7326
7370
  ], 2))
@@ -7423,7 +7467,7 @@ const Hr = /* @__PURE__ */ U(_i, [["render", Qr], ["__scopeId", "data-v-3afdcf26
7423
7467
  }
7424
7468
  };
7425
7469
  function Fr(a, e, t, r, i, s) {
7426
- return m(), g("div");
7470
+ return u(), g("div");
7427
7471
  }
7428
7472
  const Or = /* @__PURE__ */ U(Nr, [["render", Fr]]), Rr = {
7429
7473
  name: "IdmGmdssArea",
@@ -7549,7 +7593,7 @@ const Or = /* @__PURE__ */ U(Nr, [["render", Fr]]), Rr = {
7549
7593
  }
7550
7594
  };
7551
7595
  function jr(a, e, t, r, i, s) {
7552
- return m(), g("div");
7596
+ return u(), g("div");
7553
7597
  }
7554
7598
  const Wr = /* @__PURE__ */ U(Rr, [["render", jr]]), Gr = {
7555
7599
  name: "IdmEcaZone",
@@ -7646,7 +7690,7 @@ const Wr = /* @__PURE__ */ U(Rr, [["render", jr]]), Gr = {
7646
7690
  }
7647
7691
  };
7648
7692
  function Ur(a, e, t, r, i, s) {
7649
- return m(), g("div");
7693
+ return u(), g("div");
7650
7694
  }
7651
7695
  const Yr = /* @__PURE__ */ U(Gr, [["render", Ur]]);
7652
7696
  const Kr = {
@@ -7692,7 +7736,7 @@ const Kr = {
7692
7736
  if (t) {
7693
7737
  this.showZone = !0, this.form = { ...t.properties };
7694
7738
  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);
7739
+ 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
7740
  }
7697
7741
  },
7698
7742
  handleRender() {
@@ -7785,7 +7829,7 @@ const Kr = {
7785
7829
  }, Xr = { id: "idm-gl3-zone-info" }, Jr = ["innerHTML"];
7786
7830
  function qr(a, e, t, r, i, s) {
7787
7831
  var n;
7788
- return Fe((m(), g("div", Xr, [
7832
+ return Fe((u(), g("div", Xr, [
7789
7833
  o("div", {
7790
7834
  class: "iconfont close",
7791
7835
  onClick: e[0] || (e[0] = (l) => i.showZone = !1)
@@ -7828,12 +7872,12 @@ const Zr = {
7828
7872
  computed: {
7829
7873
  computeLat() {
7830
7874
  return function(a) {
7831
- return oe.lat2pretty(a, 4).pretty;
7875
+ return ne.lat2pretty(a, 4).pretty;
7832
7876
  };
7833
7877
  },
7834
7878
  computeLng() {
7835
7879
  return function(a) {
7836
- return oe.lng2pretty(a, 4).pretty;
7880
+ return ne.lng2pretty(a, 4).pretty;
7837
7881
  };
7838
7882
  }
7839
7883
  },
@@ -7855,7 +7899,7 @@ const Zr = {
7855
7899
  if (t) {
7856
7900
  this.showPort = !0, this.form = { ...t.properties }, this.form.lng = t.geometry.coordinates[0], this.form.lat = t.geometry.coordinates[1];
7857
7901
  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);
7902
+ 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
7903
  }
7860
7904
  },
7861
7905
  handleRender() {
@@ -7902,7 +7946,7 @@ const Zr = {
7902
7946
  style: { "align-items": "flex-start" }
7903
7947
  }, ss = { class: "meteo-forecast flex-end" };
7904
7948
  function os(a, e, t, r, i, s) {
7905
- return Fe((m(), g("div", $r, [
7949
+ return Fe((u(), g("div", $r, [
7906
7950
  o("div", {
7907
7951
  class: "close iconfont",
7908
7952
  onClick: e[0] || (e[0] = (n) => i.showPort = !1)
@@ -7910,19 +7954,19 @@ function os(a, e, t, r, i, s) {
7910
7954
  o("div", es, [
7911
7955
  o("div", ts, [
7912
7956
  e[2] || (e[2] = o("label", null, "Name : ", -1)),
7913
- o("span", null, I(i.form.name), 1)
7957
+ o("span", null, k(i.form.name), 1)
7914
7958
  ]),
7915
7959
  o("div", as, [
7916
7960
  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)
7961
+ o("span", null, k(s.computeLat(i.form.lat)) + ", " + k(s.computeLng(i.form.lng)), 1)
7918
7962
  ]),
7919
7963
  o("div", is, [
7920
7964
  e[4] || (e[4] = o("label", null, "LoCode : ", -1)),
7921
- o("span", null, I(i.form.loCode || "-"), 1)
7965
+ o("span", null, k(i.form.loCode || "-"), 1)
7922
7966
  ]),
7923
7967
  o("div", rs, [
7924
7968
  e[5] || (e[5] = o("label", null, "Region : ", -1)),
7925
- o("span", null, I(i.form.zoneName || "-"), 1)
7969
+ o("span", null, k(i.form.zoneName || "-"), 1)
7926
7970
  ]),
7927
7971
  o("div", ss, [
7928
7972
  o("span", {
@@ -8008,7 +8052,7 @@ const ns = /* @__PURE__ */ U(Zr, [["render", os], ["__scopeId", "data-v-39da1804
8008
8052
  }
8009
8053
  };
8010
8054
  function hs(a, e, t, r, i, s) {
8011
- return m(), g("div");
8055
+ return u(), g("div");
8012
8056
  }
8013
8057
  const cs = /* @__PURE__ */ U(ls, [["render", hs]]), ds = {
8014
8058
  name: "IdmTimezone",
@@ -8179,7 +8223,7 @@ const cs = /* @__PURE__ */ U(ls, [["render", hs]]), ds = {
8179
8223
  }
8180
8224
  };
8181
8225
  function ps(a, e, t, r, i, s) {
8182
- return m(), g("div");
8226
+ return u(), g("div");
8183
8227
  }
8184
8228
  const ms = /* @__PURE__ */ U(ds, [["render", ps]]), us = {
8185
8229
  name: "IdmVoluntaryReportingArea",
@@ -8273,7 +8317,7 @@ const ms = /* @__PURE__ */ U(ds, [["render", ps]]), us = {
8273
8317
  }
8274
8318
  };
8275
8319
  function gs(a, e, t, r, i, s) {
8276
- return m(), g("div");
8320
+ return u(), g("div");
8277
8321
  }
8278
8322
  const ys = /* @__PURE__ */ U(us, [["render", gs]]), fs = {
8279
8323
  name: "IdmSpecialArea",
@@ -8305,7 +8349,7 @@ const ys = /* @__PURE__ */ U(us, [["render", gs]]), fs = {
8305
8349
  methods: {
8306
8350
  handleRender() {
8307
8351
  this.map ? (this.handleClear(), this.area && (this.area.features.forEach((a) => {
8308
- a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => oe.convertToMonotonicLng2(e));
8352
+ a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => ne.convertToMonotonicLng2(e));
8309
8353
  }), this.map.addSource(this.source, {
8310
8354
  type: "geojson",
8311
8355
  data: this.area
@@ -8369,7 +8413,7 @@ const ys = /* @__PURE__ */ U(us, [["render", gs]]), fs = {
8369
8413
  }
8370
8414
  };
8371
8415
  function As(a, e, t, r, i, s) {
8372
- return m(), g("div");
8416
+ return u(), g("div");
8373
8417
  }
8374
8418
  const ws = /* @__PURE__ */ U(fs, [["render", As]]), vs = {
8375
8419
  name: "IdmTerminator",
@@ -8424,7 +8468,7 @@ const ws = /* @__PURE__ */ U(fs, [["render", As]]), vs = {
8424
8468
  }
8425
8469
  };
8426
8470
  function bs(a, e, t, r, i, s) {
8427
- return m(), g("div");
8471
+ return u(), g("div");
8428
8472
  }
8429
8473
  const Ls = /* @__PURE__ */ U(vs, [["render", bs]]);
8430
8474
  const Cs = {
@@ -8485,13 +8529,12 @@ const Cs = {
8485
8529
  this.show ? ((a = this.map) == null || a.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
8486
8530
  },
8487
8531
  handleMouseMove(a) {
8488
- const e = a.lngLat, t = oe.lng2pretty(e.lng, 2), r = oe.lat2pretty(e.lat, 2);
8532
+ const e = a.lngLat, t = ne.lng2pretty(e.lng, 2), r = ne.lat2pretty(e.lat, 2);
8489
8533
  this.lngLat = { lng: t, lat: r };
8490
8534
  },
8491
8535
  handleComputeLatLngs() {
8492
8536
  var r;
8493
8537
  const a = (r = this.map) == null ? void 0 : r.getZoom();
8494
- console.log(a);
8495
8538
  let e = 30;
8496
8539
  a > 4 ? e = 10 : a > 3 && (e = 15);
8497
8540
  const t = [];
@@ -8534,7 +8577,7 @@ const Cs = {
8534
8577
  handleZoomEnd() {
8535
8578
  var e;
8536
8579
  const a = this.handleComputeLatLngs();
8537
- (e = this.map) == null || e.getSource(this.source).setData(S.featureCollection(a));
8580
+ (e = this.map) == null || e.getSource(this.source).setData(T.featureCollection(a));
8538
8581
  },
8539
8582
  handleRender() {
8540
8583
  if (this.map) {
@@ -8584,17 +8627,17 @@ const Cs = {
8584
8627
  }
8585
8628
  };
8586
8629
  function xs(a, e, t, r, i, s) {
8587
- return i.lngLat ? (m(), g("div", {
8630
+ return i.lngLat ? (u(), g("div", {
8588
8631
  key: 0,
8589
8632
  class: "lat-lng-tip",
8590
- style: he({ right: i.right + "px", bottom: t.bottom })
8633
+ style: de({ right: i.right + "px", bottom: t.bottom })
8591
8634
  }, [
8592
- o("span", null, I(i.lngLat.lat.pretty), 1),
8635
+ o("span", null, k(i.lngLat.lat.pretty), 1),
8593
8636
  e[0] || (e[0] = o("span", null, ", ", -1)),
8594
- o("span", null, I(i.lngLat.lng.pretty), 1)
8637
+ o("span", null, k(i.lngLat.lng.pretty), 1)
8595
8638
  ], 4)) : J("", !0);
8596
8639
  }
8597
- const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7"]]), _s = {
8640
+ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8"]]), _s = {
8598
8641
  name: "IdmMeasure",
8599
8642
  props: {
8600
8643
  map: {
@@ -8629,7 +8672,7 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
8629
8672
  else {
8630
8673
  (a = this.map) == null || a.getCanvas().removeEventListener("keydown", this.handleKeydown), (e = this.map) == null || e.off("mousemove", this.handleMove), (t = this.map) == null || t.off("dblclick", this.handleDblClick), this.map && (this.map.getCanvas().style.cursor = "grab");
8631
8674
  let r = this.geojson.find((i) => !i.closed);
8632
- r && this.handleClear(r, !0), this.geojson = this.geojson.filter((i) => !!i.closed), r = S.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(r);
8675
+ r && this.handleClear(r, !0), this.geojson = this.geojson.filter((i) => !!i.closed), r = T.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(r);
8633
8676
  }
8634
8677
  },
8635
8678
  immediate: !0
@@ -8660,41 +8703,41 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
8660
8703
  }
8661
8704
  },
8662
8705
  handleDrag(a) {
8663
- var t, r, i, s, n, l, c, p, h, d;
8706
+ var t, r, i, s, n, l, c, d, h, p;
8664
8707
  const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
8665
8708
  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) => {
8709
+ const b = this.geojson.filter((B) => B.id === e.split("-")[0])[0];
8710
+ this.pointMarkers[b.id].filter((B) => {
8668
8711
  var _;
8669
- return ((_ = k._element) == null ? void 0 : _.id) === e;
8712
+ return ((_ = B._element) == null ? void 0 : _.id) === e;
8670
8713
  })[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
8714
  let E;
8672
- A.features.forEach((k, _) => {
8673
- if (k.geometry.type === "Point" && k.properties.id == e.split("-")[1]) {
8715
+ b.features.forEach((B, _) => {
8716
+ if (B.geometry.type === "Point" && B.properties.id == e.split("-")[1]) {
8674
8717
  E = _;
8675
8718
  return;
8676
8719
  }
8677
8720
  });
8678
- const w = A.features.filter((k) => k.geometry.type === "Point");
8721
+ const A = b.features.filter((B) => B.geometry.type === "Point");
8679
8722
  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]
8723
+ b,
8724
+ A[E - 1],
8725
+ { 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: A[E].properties },
8726
+ E === A.length - 1 ? void 0 : A[E + 1]
8684
8727
  );
8685
8728
  }
8686
8729
  },
8687
8730
  handleDragEnd(a) {
8688
- var t, r, i, s, n, l, c, p, h, d;
8731
+ var t, r, i, s, n, l, c, d, h, p;
8689
8732
  const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
8690
8733
  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) => {
8693
- var k;
8694
- return ((k = w._element) == null ? void 0 : k.id) === e;
8734
+ const b = this.geojson.filter((A) => A.id === e.split("-")[0])[0];
8735
+ this.pointMarkers[b.id].filter((A) => {
8736
+ var B;
8737
+ return ((B = A._element) == null ? void 0 : B.id) === e;
8695
8738
  })[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);
8739
+ const E = b.features.filter((A) => A.geometry.type === "Point" && A.properties.id == e.split("-")[1])[0];
8740
+ E.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], b.features = b.features.filter((A) => A.geometry.type === "Point"), this.handlePointUpdate(b);
8698
8741
  }
8699
8742
  },
8700
8743
  handleContextmenu(a) {
@@ -8703,9 +8746,9 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
8703
8746
  const e = (s = (i = (r = a.originalEvent) == null ? void 0 : r.target) == null ? void 0 : i.parentElement) == null ? void 0 : s.id;
8704
8747
  if ((e == null ? void 0 : e.split("-").length) === 2) {
8705
8748
  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);
8749
+ if (l.length > 2 && l.filter((d) => d.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
8750
+ const d = document.createElement("div");
8751
+ 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
8752
  }
8710
8753
  }
8711
8754
  },
@@ -8714,15 +8757,15 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
8714
8757
  (t = this.contextmenu) == null || t.remove();
8715
8758
  const e = a.originalEvent.target.className;
8716
8759
  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();
8760
+ 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];
8761
+ 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
8762
  } 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);
8763
+ 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];
8764
+ d.features = d.features.filter((h) => h.geometry.type === "Point" && h.properties.id !== c[1]), this.handlePointUpdate(d);
8722
8765
  } else if (e !== "marker-label" && this.show) {
8723
8766
  let c = this.geojson.at(-1);
8724
- 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(
8767
+ c || (c = T.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(c)), c.features = c.features.filter((h) => h.geometry.type === "Point");
8768
+ const d = T.feature(
8726
8769
  {
8727
8770
  type: "Point",
8728
8771
  coordinates: [a.lngLat.lng, a.lngLat.lat]
@@ -8732,7 +8775,7 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
8732
8775
  mode: this.navigation
8733
8776
  }
8734
8777
  );
8735
- c.features.push(p), this.handlePointUpdate(c);
8778
+ c.features.push(d), this.handlePointUpdate(c);
8736
8779
  }
8737
8780
  },
8738
8781
  handlePointUpdate(a) {
@@ -8741,35 +8784,35 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
8741
8784
  let t = 0;
8742
8785
  const r = [];
8743
8786
  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);
8745
- 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);
8787
+ 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);
8788
+ t = ne.roundPrecision(t + h, 2);
8789
+ let b;
8790
+ l.mode === "RL" ? b = ne.convertToMonotonicLng([c, d]) : b = ne.convertToMonotonicLng(je.interpolateCoordinates(c, d, 200));
8791
+ const x = T.lineString(b.map((E) => [E.lng, E.lat]));
8792
+ x.properties.dist = h, x.properties.bearing = p, x.properties.total = t, r.push(x);
8750
8793
  }
8751
8794
  e.push(...r), a.total = t;
8752
8795
  }
8753
8796
  return this.handleRender(a), a;
8754
8797
  },
8755
8798
  handleTmpPointUpdate(a, e, t, r) {
8756
- const i = S.featureCollection([]);
8799
+ const i = T.featureCollection([]);
8757
8800
  let s, n;
8758
8801
  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);
8802
+ const c = e.properties, d = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, h = { lng: t.lng, lat: t.lat };
8803
+ s = je.calculateDistance(d, h, c.mode === "RL", 4), n = je.calculateBearing(d, h, c.mode === "RL", 2);
8804
+ let p;
8805
+ c.mode === "RL" ? p = ne.convertToMonotonicLng([d, h]) : p = ne.convertToMonotonicLng(je.interpolateCoordinates(d, h, 200));
8806
+ const b = T.lineString(p.map((x) => [x.lng, x.lat]));
8807
+ b.properties.dist = s, b.properties.bearing = n, i.features.push(b);
8765
8808
  }
8766
8809
  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);
8810
+ const c = t.properties, d = t, h = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
8811
+ s = je.calculateDistance(d, h, c.mode === "RL", 4), n = je.calculateBearing(d, h, c.mode === "RL", 2);
8812
+ let p;
8813
+ c.mode === "RL" ? p = ne.convertToMonotonicLng([d, h]) : p = ne.convertToMonotonicLng(je.interpolateCoordinates(d, h, 200));
8814
+ const b = T.lineString(p.map((x) => [x.lng, x.lat]));
8815
+ b.properties.dist = s, b.properties.bearing = n, i.features.push(b);
8773
8816
  }
8774
8817
  this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
8775
8818
  type: "geojson",
@@ -8809,24 +8852,24 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
8809
8852
  }
8810
8853
  });
8811
8854
  let l;
8812
- if (r ? l = '<div class="marker-label">Drag and drop</div>' : l = `<div class="marker-label">Total distance: <b>${oe.roundPrecision((a.total ?? 0) + s, 1)}</b>nm, bearing: <b>${n}</b>°</div><div class="marker-label">${this.navigation === "RL" ? "RL" : "GC"} mode, using 'Shift' to switch</div><div class="marker-label">Double click to end</div>`, this.tipMarker)
8855
+ if (r ? l = '<div class="marker-label">Drag and drop</div>' : l = `<div class="marker-label">Total distance: <b>${ne.roundPrecision((a.total ?? 0) + s, 1)}</b>nm, bearing: <b>${n}</b>°</div><div class="marker-label">${this.navigation === "RL" ? "RL" : "GC"} mode, using 'Shift' to switch</div><div class="marker-label">Double click to end</div>`, this.tipMarker)
8813
8856
  this.tipMarker._element.innerHTML = l, this.tipMarker.setLngLat([t.lng, t.lat]);
8814
8857
  else {
8815
8858
  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);
8859
+ 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
8860
  }
8818
8861
  },
8819
8862
  handleMove(a) {
8820
8863
  this.map.getCanvas().style.cursor = "crosshair";
8821
8864
  let e = this.geojson.at(-1);
8822
- e || (e = S.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
8865
+ e || (e = T.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
8823
8866
  const t = e.features.filter((r) => r.geometry.type === "Point");
8824
8867
  t != null && t.length && this.handleTmpPointUpdate(e, t.at(-1), { lng: a.lngLat.lng, lat: a.lngLat.lat });
8825
8868
  },
8826
8869
  handleDblClick(a) {
8827
8870
  a.preventDefault();
8828
8871
  let e = this.geojson.at(-1);
8829
- e.closed = !0, this.handleRender(e), e = S.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e);
8872
+ e.closed = !0, this.handleRender(e), e = T.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e);
8830
8873
  },
8831
8874
  handleRender(a) {
8832
8875
  var e;
@@ -8871,26 +8914,26 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
8871
8914
  for (const n of s) {
8872
8915
  const l = document.createElement("div");
8873
8916
  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);
8917
+ const c = new Re.Marker({ element: l, draggable: !0, contextmenu: !0 }).setLngLat(n.geometry.coordinates).addTo(this.map);
8875
8918
  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
8919
  }
8877
8920
  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);
8921
+ const n = s.at(-1), c = a.features.filter((h) => h.geometry.type === "LineString").at(-1), d = document.createElement("div");
8922
+ 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
8923
  }
8881
8924
  }
8882
8925
  },
8883
8926
  handleClear(a, e = !0) {
8884
- var s, n, l, c, p, h, d, A, b;
8927
+ var s, n, l, c, d, h, p, b, x;
8885
8928
  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) => {
8929
+ (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((E) => {
8887
8930
  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);
8931
+ }), this.pointMarkers[a.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((b = this.map) != null && b.getSource(t)) && this.map.removeSource(t), e && ((x = this.map) != null && x.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
8889
8932
  }
8890
8933
  }
8891
8934
  };
8892
8935
  function Bs(a, e, t, r, i, s) {
8893
- return m(), g("div");
8936
+ return u(), g("div");
8894
8937
  }
8895
8938
  const Is = /* @__PURE__ */ U(_s, [["render", Bs]]);
8896
8939
  const Es = {
@@ -8951,13 +8994,13 @@ const Es = {
8951
8994
  }, ks = { key: 0 }, Ds = { class: "bar-item" };
8952
8995
  function zs(a, e, t, r, i, s) {
8953
8996
  const n = R("ElTooltip");
8954
- return t.enabled && t.permission & i.helper.LEVEL.Supper ? (m(), g("div", ks, [
8997
+ return t.enabled && t.permission & i.helper.LEVEL.Supper ? (u(), g("div", ks, [
8955
8998
  o("div", {
8956
8999
  class: "menu-bar-box",
8957
- style: he({ position: "absolute", right: i.right + "px", bottom: t.bottom })
9000
+ style: de({ position: "absolute", right: i.right + "px", bottom: t.bottom })
8958
9001
  }, [
8959
9002
  o("div", Ds, [
8960
- H(n, {
9003
+ F(n, {
8961
9004
  placement: "left",
8962
9005
  effect: "light",
8963
9006
  content: "Hifleet",
@@ -8973,7 +9016,7 @@ function zs(a, e, t, r, i, s) {
8973
9016
  ]),
8974
9017
  _: 1
8975
9018
  }),
8976
- H(n, {
9019
+ F(n, {
8977
9020
  placement: "left",
8978
9021
  effect: "light",
8979
9022
  content: "I4insight",
@@ -9250,17 +9293,17 @@ const js = {
9250
9293
  },
9251
9294
  enc: {
9252
9295
  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"));
9296
+ var t, r, i, s, n, l, c, d;
9297
+ 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
9298
  }
9256
9299
  },
9257
9300
  activeWeatherLayers: {
9258
9301
  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;
9302
+ var t, r, i, s, n, l, c, d, h, p, b, x, E, A, B, _, f, v, m, L, y, w, M;
9260
9303
  if (!this.map)
9261
9304
  return !1;
9262
9305
  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);
9306
+ 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) && ((b = this.map) != null && b.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((E = this.map) == null || E.moveLayer((x = this.viewport) == null ? void 0 : x.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), e && ((B = this.map) == null || B.moveLayer(this.helper.mapboxCustomer.layers.countryBoundary.id, (A = this.viewport) == null ? void 0 : A.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 ? (m = (v = this.map) == null ? void 0 : v.getLayer(this.enc)) == null || m.setLayoutProperty("visibility", "visible") : ((y = (L = this.map) == null ? void 0 : L.getLayer("i4")) == null || y.setLayoutProperty("visibility", "none"), (M = (w = this.map) == null ? void 0 : w.getLayer("hi")) == null || M.setLayoutProperty("visibility", "none"))), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
9264
9307
  },
9265
9308
  immediate: !0
9266
9309
  },
@@ -9312,59 +9355,59 @@ const js = {
9312
9355
  },
9313
9356
  methods: {
9314
9357
  async fetchWeatherLayers(a = { tropicals: !1 }) {
9315
- var i, s, n, l, c, p, h, d, A;
9358
+ var i, s, n, l, c, d, h, p, b;
9316
9359
  const e = (/* @__PURE__ */ new Date()).valueOf();
9317
9360
  let t = 0, r = 0;
9318
9361
  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}`;
9362
+ const x = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, E = (s = this.map) == null ? void 0 : s.getBounds(), A = `${E._sw.lng},${E._sw.lat},${E._ne.lng},${E._ne.lat}`;
9320
9363
  if (this.particleFactor && ((n = this.$refs.layer) != null && n.autoActive)) {
9321
- const k = Ze.WEATHER_LAYERS.find((_) => {
9364
+ const B = Ze.WEATHER_LAYERS.find((_) => {
9322
9365
  var f;
9323
9366
  return ((f = _.peer) == null ? void 0 : f.weight) === this.particleFactor.weight;
9324
9367
  });
9325
- 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;
9368
+ this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & B.weight ? this.weatherWeight : this.weatherWeight + B.weight : this.weatherWeight = this.weatherWeight & B.weight ? this.weatherWeight - B.weight : this.weatherWeight;
9326
9369
  }
9327
9370
  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}`, {
9371
+ let B = this.weatherWeight, _;
9372
+ if (a.tropicals || this.weatherWeight & 256 && (_ = this.weatherLayers.tropicals, _ && (B -= 256, _.version = Math.random() + 1)), B > 0) {
9373
+ const f = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], v = await Qe.get(`${f}/api/arc/weather/layers2/links?l=${B}&v=${this.source}&z=${x}&bbox=${A}&t=${this.ts}`, {
9331
9374
  headers: {
9332
9375
  Authorization: this.token || this.defaultMeteoToken
9333
9376
  }
9334
9377
  });
9335
9378
  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], {
9379
+ const m = (c = v == null ? void 0 : v.data) == null ? void 0 : c.data, L = [];
9380
+ for (const w in m)
9381
+ w !== "tropicals" && L.push(
9382
+ Qe.get(m[w], {
9340
9383
  headers: {
9341
9384
  Authorization: this.token || this.defaultMeteoToken,
9342
- key: L
9385
+ key: w
9343
9386
  },
9344
- responseType: /\.(jpg|png)$/.test(u[L]) ? "blob" : "json"
9345
- }).catch((T) => {
9346
- console.log(`[${L}] fetch layer error: ${T}`);
9387
+ responseType: /\.(jpg|png)$/.test(m[w]) ? "blob" : "json"
9388
+ }).catch((M) => {
9389
+ console.log(`[${w}] fetch layer error: ${M}`);
9347
9390
  })
9348
9391
  );
9349
- const y = await Promise.all(C);
9350
- this.weatherLayers = {}, y.map((L) => {
9351
- 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;
9353
- D && T && (this.weatherLayers[D] = {
9354
- raw: T,
9355
- type: ((G = L == null ? void 0 : L.config) == null ? void 0 : G.responseType) === "blob" ? "image" : "json",
9392
+ const y = await Promise.all(L);
9393
+ this.weatherLayers = {}, y.map((w) => {
9394
+ var N, Q, j, G;
9395
+ const M = ((N = w == null ? void 0 : w.data) == null ? void 0 : N.data) || (w == null ? void 0 : w.data), D = (j = (Q = w == null ? void 0 : w.config) == null ? void 0 : Q.headers) == null ? void 0 : j.key;
9396
+ D && M && (this.weatherLayers[D] = {
9397
+ raw: M,
9398
+ type: ((G = w == null ? void 0 : w.config) == null ? void 0 : G.responseType) === "blob" ? "image" : "json",
9356
9399
  etime: v.data.etime
9357
9400
  });
9358
- }), u.tropicals && Qe.get(u.tropicals, {
9401
+ }), m.tropicals && Qe.get(m.tropicals, {
9359
9402
  headers: {
9360
9403
  Authorization: this.token || this.defaultMeteoToken,
9361
9404
  key: "tropicals"
9362
9405
  }
9363
- }).then((L) => {
9364
- 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;
9406
+ }).then((w) => {
9407
+ var N, Q, j;
9408
+ const M = ct.convert2Geojson(((N = w == null ? void 0 : w.data) == null ? void 0 : N.data) || (w == null ? void 0 : w.data)), D = (j = (Q = w == null ? void 0 : w.config) == null ? void 0 : Q.headers) == null ? void 0 : j.key;
9366
9409
  this.weatherLayers[D] = {
9367
- data: T,
9410
+ data: M,
9368
9411
  active: !0,
9369
9412
  cached: !1,
9370
9413
  type: "json",
@@ -9374,20 +9417,20 @@ const js = {
9374
9417
  });
9375
9418
  }
9376
9419
  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;
9420
+ const m = (d = this.weatherLayers["swell-direction"]) == null ? void 0 : d.raw, L = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
9378
9421
  delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
9379
9422
  type: "json",
9380
- direction: u,
9381
- height: { raw: C },
9423
+ direction: m,
9424
+ height: { raw: L },
9382
9425
  etime: v.data.etime
9383
9426
  };
9384
9427
  }
9385
9428
  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;
9429
+ const m = (p = this.weatherLayers["current-direction"]) == null ? void 0 : p.raw, L = (b = this.weatherLayers["current-speed"]) == null ? void 0 : b.raw;
9387
9430
  delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
9388
9431
  type: "json",
9389
- direction: u,
9390
- speed: { raw: C },
9432
+ direction: m,
9433
+ speed: { raw: L },
9391
9434
  etime: v.data.etime
9392
9435
  };
9393
9436
  }
@@ -9403,58 +9446,58 @@ const js = {
9403
9446
  if (this.map) {
9404
9447
  let s = this.otherWeight;
9405
9448
  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) {
9449
+ let n = !1, l = !1, c = !1, d = !1;
9450
+ 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
9451
  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}`, {
9452
+ 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
9453
  headers: {
9411
9454
  Authorization: this.token || this.defaultMeteoToken
9412
9455
  }
9413
9456
  });
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], {
9457
+ if (((e = p == null ? void 0 : p.data) == null ? void 0 : e.code) === 0) {
9458
+ const b = (t = p == null ? void 0 : p.data) == null ? void 0 : t.data, x = [];
9459
+ for (const A in b)
9460
+ x.push(
9461
+ Qe.get(b[A], {
9419
9462
  headers: {
9420
9463
  Authorization: this.token || this.defaultMeteoToken,
9421
- key: w
9464
+ key: A
9422
9465
  }
9423
9466
  })
9424
9467
  );
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;
9468
+ const E = await Promise.all(x);
9469
+ this.otherLayers = { enc: n, world12nm: l, worldMarine: c, chinaRoute: d }, E.map((A) => {
9470
+ var f, v, m;
9471
+ const B = ((f = A == null ? void 0 : A.data) == null ? void 0 : f.data) || (A == null ? void 0 : A.data), _ = (m = (v = A == null ? void 0 : A.config) == null ? void 0 : v.headers) == null ? void 0 : m.key;
9472
+ this.otherLayers[_] = B;
9430
9473
  });
9431
9474
  }
9432
9475
  } 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}`, {
9476
+ 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
9477
  headers: {
9435
9478
  Authorization: this.token || this.defaultMeteoToken
9436
9479
  }
9437
9480
  });
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], {
9481
+ if (((r = p == null ? void 0 : p.data) == null ? void 0 : r.code) === 0) {
9482
+ const b = (i = p == null ? void 0 : p.data) == null ? void 0 : i.data, x = [];
9483
+ for (const A in b)
9484
+ x.push(
9485
+ Qe.get(b[A], {
9443
9486
  headers: {
9444
9487
  Authorization: this.token || this.defaultMeteoToken,
9445
- key: w
9488
+ key: A
9446
9489
  }
9447
9490
  })
9448
9491
  );
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;
9492
+ (await Promise.all(x)).map((A) => {
9493
+ var f, v, m;
9494
+ const B = ((f = A == null ? void 0 : A.data) == null ? void 0 : f.data) || (A == null ? void 0 : A.data), _ = (m = (v = A == null ? void 0 : A.config) == null ? void 0 : v.headers) == null ? void 0 : m.key;
9495
+ this.otherLayers[_] = B;
9453
9496
  });
9454
9497
  }
9455
9498
  }
9456
9499
  } else
9457
- this.otherLayers = { enc: n, world12nm: l, worldMarine: c, chinaRoute: p };
9500
+ this.otherLayers = { enc: n, world12nm: l, worldMarine: c, chinaRoute: d };
9458
9501
  } else
9459
9502
  this.otherLayers = {};
9460
9503
  this.handleBeforeLayerToggle();
@@ -9470,7 +9513,7 @@ const js = {
9470
9513
  this.activeWindLayer = !!this.activeWeatherLayers.find((e) => e.key === "wind"), this.$refs.layer && (this.$refs.layer.activeWeatherLayers = this.activeWeatherLayers);
9471
9514
  },
9472
9515
  handleRampColorInitial() {
9473
- var a, e, t, r, i, s, n, l, c, p, h, d;
9516
+ var a, e, t, r, i, s, n, l, c, d, h, p;
9474
9517
  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
9518
  type: "canvas",
9476
9519
  canvas: (t = this.viewport) == null ? void 0 : t.rampColorCanvas,
@@ -9491,11 +9534,11 @@ const js = {
9491
9534
  canvas: (c = this.viewport) == null ? void 0 : c.particleCanvas,
9492
9535
  animate: !0,
9493
9536
  coordinates: this.viewport.getBoundLngLat()
9494
- }), this.viewport.map.getLayer((p = this.viewport) == null ? void 0 : p.particleLayer) || this.viewport.map.addLayer(
9537
+ }), this.viewport.map.getLayer((d = this.viewport) == null ? void 0 : d.particleLayer) || this.viewport.map.addLayer(
9495
9538
  {
9496
9539
  type: "raster",
9497
9540
  id: (h = this.viewport) == null ? void 0 : h.particleLayer,
9498
- source: (d = this.viewport) == null ? void 0 : d.particleSource,
9541
+ source: (p = this.viewport) == null ? void 0 : p.particleSource,
9499
9542
  layout: {
9500
9543
  visibility: "none"
9501
9544
  }
@@ -9504,214 +9547,214 @@ const js = {
9504
9547
  );
9505
9548
  },
9506
9549
  handleDrawWeather4Json() {
9507
- var p, h, d, A, b, E;
9550
+ var d, h, p, b, x, E;
9508
9551
  const a = (/* @__PURE__ */ new Date()).valueOf();
9509
9552
  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) {
9512
- let k = !1;
9513
- if (this.weatherLayers[w].active && this.weatherLayers[w].type === "json") {
9553
+ const r = (d = this.map) == null ? void 0 : d.getBounds(), i = this.map.getZoom(), s = ne.convertToStdLng(r._sw.lng), n = ne.convertToStdLng(r._ne.lng), l = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
9554
+ for (const A in this.weatherLayers) {
9555
+ let B = !1;
9556
+ if (this.weatherLayers[A].active && this.weatherLayers[A].type === "json") {
9514
9557
  let _ = [];
9515
- if (w === "swell") {
9516
- 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) => {
9522
- var T, D, F, N, j, G;
9558
+ if (A === "swell") {
9559
+ B = !0;
9560
+ const f = ((h = this.weatherLayers[A]) == null ? void 0 : h.direction) || {};
9561
+ for (const m in f)
9562
+ if (m > l && m < c && (!(i <= this.zoom) || m % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9563
+ const L = f[m].lng;
9564
+ s > n ? L.forEach((y, w) => {
9565
+ var M, D, N, Q, j, G;
9523
9566
  if (i < 2) {
9524
9567
  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]
9568
+ const W = T.point([y, m], {
9569
+ val: ((M = f[m].val) == null ? void 0 : M[w]) || ((D = f[m].dir) == null ? void 0 : D[w]),
9570
+ spd: (N = f[m].spd) == null ? void 0 : N[w]
9528
9571
  });
9529
9572
  _.push(W);
9530
9573
  }
9531
9574
  } 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]
9575
+ const W = T.point([y, m], {
9576
+ val: ((Q = f[m].val) == null ? void 0 : Q[w]) || ((j = f[m].dir) == null ? void 0 : j[w]),
9577
+ spd: (G = f[m].spd) == null ? void 0 : G[w]
9535
9578
  });
9536
9579
  _.push(W);
9537
9580
  }
9538
- }) : C.forEach((y, L) => {
9539
- var T, D, F, N, j, G;
9581
+ }) : L.forEach((y, w) => {
9582
+ var M, D, N, Q, j, G;
9540
9583
  if (s < 2) {
9541
9584
  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]
9585
+ const W = T.point([y, m], {
9586
+ val: ((M = f[m].val) == null ? void 0 : M[w]) || ((D = f[m].dir) == null ? void 0 : D[w]),
9587
+ spd: (N = f[m].spd) == null ? void 0 : N[w]
9545
9588
  });
9546
9589
  _.push(W);
9547
9590
  }
9548
9591
  } 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]
9592
+ const W = T.point([y, m], {
9593
+ val: ((Q = f[m].val) == null ? void 0 : Q[w]) || ((j = f[m].dir) == null ? void 0 : j[w]),
9594
+ spd: (G = f[m].spd) == null ? void 0 : G[w]
9552
9595
  });
9553
9596
  _.push(W);
9554
9597
  }
9555
9598
  });
9556
9599
  }
9557
9600
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("swell direction elapsed: ", t, ", total: ", e += t);
9558
- const v = this.weatherLayers[w].height;
9601
+ const v = this.weatherLayers[A].height;
9559
9602
  if (v) {
9560
9603
  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)
9604
+ const m = [];
9605
+ for (const L in (p = v.raw) == null ? void 0 : p.LineString) {
9606
+ const y = v.raw.LineString[L];
9607
+ for (const w of y)
9608
+ m.push(
9609
+ T.lineString(w, {
9610
+ val: Number(L)
9568
9611
  })
9569
9612
  );
9570
- v.data = S.featureCollection(u);
9613
+ v.data = T.featureCollection(m);
9571
9614
  }
9572
9615
  }
9573
9616
  if (v.data) {
9574
- const u = this.handleBboxClip(v.data, r);
9575
- _ = _.concat(u);
9617
+ const m = this.handleBboxClip(v.data, r);
9618
+ _ = _.concat(m);
9576
9619
  }
9577
9620
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("swell height elapsed: ", t, ", total: ", e += t);
9578
9621
  }
9579
- } else if (w === "current" && this.showCurrentIsoband) {
9580
- 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) => {
9586
- var T, D, F, N, j, G;
9622
+ } else if (A === "current" && this.showCurrentIsoband) {
9623
+ B = !0;
9624
+ const f = ((b = this.weatherLayers[A]) == null ? void 0 : b.direction) || {};
9625
+ for (const m in f)
9626
+ if (m > l && m < c && (!(i <= this.zoom) || m % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9627
+ const L = f[m].lng;
9628
+ s > n ? L.forEach((y, w) => {
9629
+ var M, D, N, Q, j, G;
9587
9630
  if (i < 2) {
9588
9631
  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]
9632
+ const W = T.point([y, m], {
9633
+ val: ((M = f[m].val) == null ? void 0 : M[w]) || ((D = f[m].dir) == null ? void 0 : D[w]),
9634
+ spd: (N = f[m].spd) == null ? void 0 : N[w]
9592
9635
  });
9593
9636
  _.push(W);
9594
9637
  }
9595
9638
  } 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]
9639
+ const W = T.point([y, m], {
9640
+ val: ((Q = f[m].val) == null ? void 0 : Q[w]) || ((j = f[m].dir) == null ? void 0 : j[w]),
9641
+ spd: (G = f[m].spd) == null ? void 0 : G[w]
9599
9642
  });
9600
9643
  _.push(W);
9601
9644
  }
9602
- }) : C.forEach((y, L) => {
9603
- var T, D, F, N, j, G;
9645
+ }) : L.forEach((y, w) => {
9646
+ var M, D, N, Q, j, G;
9604
9647
  if (s < 2) {
9605
9648
  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]
9649
+ const W = T.point([y, m], {
9650
+ val: ((M = f[m].val) == null ? void 0 : M[w]) || ((D = f[m].dir) == null ? void 0 : D[w]),
9651
+ spd: (N = f[m].spd) == null ? void 0 : N[w]
9609
9652
  });
9610
9653
  _.push(W);
9611
9654
  }
9612
9655
  } 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]
9656
+ const W = T.point([y, m], {
9657
+ val: ((Q = f[m].val) == null ? void 0 : Q[w]) || ((j = f[m].dir) == null ? void 0 : j[w]),
9658
+ spd: (G = f[m].spd) == null ? void 0 : G[w]
9616
9659
  });
9617
9660
  _.push(W);
9618
9661
  }
9619
9662
  });
9620
9663
  }
9621
9664
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current direction elapsed: ", t, ", total: ", e += t);
9622
- const v = this.weatherLayers[w].speed;
9665
+ const v = this.weatherLayers[A].speed;
9623
9666
  if (v) {
9624
9667
  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(
9630
- S.polygon(T, {
9668
+ const L = [];
9669
+ for (const y in (x = v.raw) == null ? void 0 : x.Polygon) {
9670
+ const w = v.raw.Polygon[y];
9671
+ for (const M of w)
9672
+ L.push(
9673
+ T.polygon(M, {
9631
9674
  val: Number(y)
9632
9675
  })
9633
9676
  );
9634
9677
  }
9635
- v.data = S.featureCollection(C);
9678
+ v.data = T.featureCollection(L);
9636
9679
  }
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);
9680
+ const m = i < this.zoom ? v.data.features.filter((L) => L.properties.val > 0.5) : v.data.features;
9681
+ _ = _.concat(m), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current speed elapsed: ", t, ", total: ", e += t);
9639
9682
  }
9640
- } else if (w === "wind" && this.showWindFeather) {
9641
- k = !0;
9683
+ } else if (A === "wind" && this.showWindFeather) {
9684
+ B = !0;
9642
9685
  const f = this.weatherLayers.wind.raw;
9643
9686
  for (const v in f)
9644
9687
  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;
9688
+ const m = f[v].lng;
9689
+ s > n ? m.forEach((L, y) => {
9690
+ var w, M, D, N;
9648
9691
  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]),
9692
+ if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
9693
+ const Q = T.point([L, v], {
9694
+ dir: ((w = f[v].val) == null ? void 0 : w[y]) || ((M = f[v].dir) == null ? void 0 : M[y]),
9652
9695
  spd: f[v].spd[y]
9653
9696
  });
9654
- _.push(N);
9697
+ _.push(Q);
9655
9698
  }
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]),
9699
+ } else if ((L >= s && L <= 180 || L >= -180 && L <= n) && (!(i <= this.zoom) || L % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9700
+ const Q = T.point([L, v], {
9701
+ dir: ((D = f[v].val) == null ? void 0 : D[y]) || ((N = f[v].dir) == null ? void 0 : N[y]),
9659
9702
  spd: f[v].spd[y]
9660
9703
  });
9661
- _.push(N);
9704
+ _.push(Q);
9662
9705
  }
9663
- }) : u.forEach((C, y) => {
9664
- var L, T, D, F;
9706
+ }) : m.forEach((L, y) => {
9707
+ var w, M, D, N;
9665
9708
  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]),
9709
+ if ((L >= 0 && L <= 360 || L >= -360 && L <= 0) && L % 10 === 0) {
9710
+ const Q = T.point([L, v], {
9711
+ dir: ((w = f[v].val) == null ? void 0 : w[y]) || ((M = f[v].dir) == null ? void 0 : M[y]),
9669
9712
  spd: f[v].spd[y]
9670
9713
  });
9671
- _.push(N);
9714
+ _.push(Q);
9672
9715
  }
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]),
9716
+ } else if (L >= s && L <= n && (!(i <= this.zoom) || L % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9717
+ const Q = T.point([L, v], {
9718
+ dir: ((D = f[v].val) == null ? void 0 : D[y]) || ((N = f[v].dir) == null ? void 0 : N[y]),
9676
9719
  spd: f[v].spd[y]
9677
9720
  });
9678
- _.push(N);
9721
+ _.push(Q);
9679
9722
  }
9680
9723
  });
9681
9724
  }
9682
9725
  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;
9726
+ } else if (A === "sig-wave-height") {
9727
+ if (this.weatherLayers[A].data)
9728
+ _ = this.weatherLayers[A].data;
9686
9729
  else {
9687
- k = !0;
9688
- const f = this.weatherLayers[w].raw;
9730
+ B = !0;
9731
+ const f = this.weatherLayers[A].raw;
9689
9732
  if (f) {
9690
9733
  const v = [];
9691
- for (const u in f.Polygon) {
9692
- const C = f.Polygon[u];
9693
- for (const y of C)
9734
+ for (const m in f.Polygon) {
9735
+ const L = f.Polygon[m];
9736
+ for (const y of L)
9694
9737
  v.push(
9695
- S.polygon(y, {
9696
- val: Number(u)
9738
+ T.polygon(y, {
9739
+ val: Number(m)
9697
9740
  })
9698
9741
  );
9699
9742
  }
9700
- for (const u in f.MultiPolygon) {
9701
- const C = f.MultiPolygon[u];
9702
- for (const y of C)
9743
+ for (const m in f.MultiPolygon) {
9744
+ const L = f.MultiPolygon[m];
9745
+ for (const y of L)
9703
9746
  v.push(
9704
- S.multiPolygon(y, {
9705
- val: Number(u)
9747
+ T.multiPolygon(y, {
9748
+ val: Number(m)
9706
9749
  })
9707
9750
  );
9708
9751
  }
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++)
9752
+ for (const m in f.Point) {
9753
+ const L = f.Point[m];
9754
+ for (let y = 0; y < ((E = L.lng) == null ? void 0 : E.length); y++)
9712
9755
  v.push(
9713
- S.point([C.lng[y], u], {
9714
- val: Number(C.val[y])
9756
+ T.point([L.lng[y], m], {
9757
+ val: Number(L.val[y])
9715
9758
  })
9716
9759
  );
9717
9760
  }
@@ -9719,29 +9762,29 @@ const js = {
9719
9762
  }
9720
9763
  }
9721
9764
  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;
9765
+ } else if (A === "prmsl") {
9766
+ if (this.weatherLayers[A].data)
9767
+ _ = this.weatherLayers[A].data;
9725
9768
  else {
9726
- k = !0;
9727
- const f = this.weatherLayers[w].raw;
9769
+ B = !0;
9770
+ const f = this.weatherLayers[A].raw;
9728
9771
  if (f) {
9729
9772
  const v = [];
9730
- for (const u in f.LineString) {
9731
- const C = f.LineString[u];
9732
- for (const y of C)
9773
+ for (const m in f.LineString) {
9774
+ const L = f.LineString[m];
9775
+ for (const y of L)
9733
9776
  v.push(
9734
- S.lineString(y, {
9735
- val: Number(u)
9777
+ T.lineString(y, {
9778
+ val: Number(m)
9736
9779
  })
9737
9780
  );
9738
9781
  }
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]
9782
+ for (const m in f.Point)
9783
+ f.Point[m].lng.forEach((L, y) => {
9784
+ L = ne.convertToStdLng(L), v.push(
9785
+ T.point([L, m], {
9786
+ val: f.Point[m].val[y],
9787
+ type: f.Point[m].type[y]
9745
9788
  })
9746
9789
  );
9747
9790
  });
@@ -9750,7 +9793,7 @@ const js = {
9750
9793
  }
9751
9794
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("prmsl elapsed: ", t, ", total: ", e += t);
9752
9795
  }
9753
- _.length && (this.weatherLayers[w].data = S.featureCollection(_)), k && (this.weatherLayers[w].version = Math.random() + 1);
9796
+ _.length && (this.weatherLayers[A].data = T.featureCollection(_)), B && (this.weatherLayers[A].version = Math.random() + 1);
9754
9797
  }
9755
9798
  }
9756
9799
  },
@@ -9761,14 +9804,14 @@ const js = {
9761
9804
  this.handleDrawWeather4Json(), !this.activeWeatherLayers.some((l) => l.key === "wind" && l.particle === !0 || l.key === "current" && l.particle === !0 || l.key === "ice-edge" || l.key === "ice-thickness" || l.key === "ice-cover" || l.key === "temp" || l.key === "water-temp") && this.map.getZoom() > 3 && this.enc ? (t = (e = this.map) == null ? void 0 : e.getLayer(this.enc)) == null || t.setLayoutProperty("visibility", "visible") : ((i = (r = this.map) == null ? void 0 : r.getLayer("i4")) == null || i.setLayoutProperty("visibility", "none"), (n = (s = this.map) == null ? void 0 : s.getLayer("hi")) == null || n.setLayoutProperty("visibility", "none"));
9762
9805
  },
9763
9806
  handleBboxClip(a, e) {
9764
- const t = [], r = oe.convertToStdLng(e._sw.lng), i = oe.convertToStdLng(e._ne.lng);
9807
+ const t = [], r = ne.convertToStdLng(e._sw.lng), i = ne.convertToStdLng(e._ne.lng);
9765
9808
  return a.features.forEach((s) => {
9766
9809
  if (s.geometry.type !== "Point")
9767
9810
  if (r > i) {
9768
- let n = [r, e._sw.lat, 180, e._ne.lat], l = S.bboxClip(s, n);
9769
- l.geometry.coordinates.length && t.push(l), n = [-180, e._sw.lat, i, e._ne.lat], l = S.bboxClip(s, n), l.geometry.coordinates.length && t.push(l);
9811
+ let n = [r, e._sw.lat, 180, e._ne.lat], l = T.bboxClip(s, n);
9812
+ l.geometry.coordinates.length && t.push(l), n = [-180, e._sw.lat, i, e._ne.lat], l = T.bboxClip(s, n), l.geometry.coordinates.length && t.push(l);
9770
9813
  } else {
9771
- const n = [r, e._sw.lat, i, e._ne.lat], l = S.bboxClip(s, n);
9814
+ const n = [r, e._sw.lat, i, e._ne.lat], l = T.bboxClip(s, n);
9772
9815
  l.geometry.coordinates.length && t.push(l);
9773
9816
  }
9774
9817
  else
@@ -9786,8 +9829,8 @@ const js = {
9786
9829
  this.handleBeforeLayerToggle();
9787
9830
  },
9788
9831
  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");
9832
+ var a, e, t, r, i, s, n, l, c, d, h, p, b, x, E, A;
9833
+ (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 || (b = this.otherLayers) != null && b.chinaRoute || (x = this.otherLayers) != null && x["voluntary-reporting-area"] || (E = this.otherLayers) != null && E["eca-zones"] || (A = this.otherLayers) != null && A["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
9791
9834
  },
9792
9835
  handleDateChange(a = { tropicals: !1 }) {
9793
9836
  this.fetchWeatherLayers(a), this.fetchOtherLayers({ dayNight: !0 });
@@ -9821,8 +9864,8 @@ const js = {
9821
9864
  }
9822
9865
  },
9823
9866
  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)));
9867
+ var e, t, r, i, s, n, l, c, d, h, p, b, x, E, A, B, _, f, v, m;
9868
+ 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", (b = this.map) != null && b.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((x = this.map) != null && x.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((A = this.map) == null || A.moveLayer((E = this.viewport) == null ? void 0 : E.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (_ = this.map) != null && _.getLayer((B = this.viewport) == null ? void 0 : B.particleLayer) && ((f = this.map) != null && f.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((m = this.map) == null || m.moveLayer((v = this.viewport) == null ? void 0 : v.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
9826
9869
  },
9827
9870
  handleParticle(a) {
9828
9871
  this.particleFactor = a, this.weatherLayers[a.key] && (this.weatherLayers[a.key].particle = a.particle), this.activeWeatherLayers.map((r) => {
@@ -9846,10 +9889,10 @@ const js = {
9846
9889
  class: "map-gl-home"
9847
9890
  };
9848
9891
  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, [
9852
- H(n, X({
9892
+ var ae, Ae, ge, we, xe, be, _e, I, ze, Le, Pe, Ee, He, ke, oe, me, H, Be, K, q, Me, P, ue, De, Se, Te, z, O, Ge, Ue;
9893
+ const n = R("IdmGlLayer"), l = R("IdmENC"), c = R("IdmWorld12nm"), d = R("IdmWorldMarine"), h = R("IdmChinaRoute"), p = R("IdmSigWave"), b = R("IdmSwell"), x = R("IdmPrmsl"), E = R("IdmIceEdge"), A = R("IdmIceCover"), B = R("IdmIceThickness"), _ = R("IdmTropicals"), f = R("IdmCurrents"), v = R("IdmCurrentParticle"), m = R("IdmWindBarb"), L = R("IdmWindParticle"), y = R("IdmPrecip3h"), w = R("IdmVisibility"), M = R("IdmWaterTemp"), D = R("IdmTemp"), N = R("IdmWarZone"), Q = R("IdmGmdssArea"), j = R("IdmEcaZone"), G = R("IdmAlertZone"), W = R("IdmPort"), he = R("IdmLoadLine"), te = R("IdmTimezone"), pe = R("IdmVRA"), ye = R("IdmSpecialArea"), se = R("IdmTerminator"), ve = R("IdmLatLng"), fe = R("IdmMeasure"), Y = R("IdmPoint");
9894
+ return t.map ? (u(), g("div", Ws, [
9895
+ F(n, X({
9853
9896
  ref: "layer",
9854
9897
  map: t.map,
9855
9898
  "toggle-version": t.toggleVersion,
@@ -9864,91 +9907,91 @@ function Gs(a, e, t, r, i, s) {
9864
9907
  "forecast-model": t.forecastModel,
9865
9908
  onWeather: s.handleWeatherLayerChange,
9866
9909
  onOther: s.handleOtherLayerChange,
9867
- onToggleWindParticle: e[0] || (e[0] = (ie) => i.showWindParticle = ie),
9868
- onToggleWindFeather: e[1] || (e[1] = (ie) => {
9869
- (i.showWindFeather = ie) && s.handleDrawWeather4Json();
9910
+ onToggleWindParticle: e[0] || (e[0] = (re) => i.showWindParticle = re),
9911
+ onToggleWindFeather: e[1] || (e[1] = (re) => {
9912
+ (i.showWindFeather = re) && s.handleDrawWeather4Json();
9870
9913
  }),
9871
- onToggleCurrentParticle: e[2] || (e[2] = (ie) => i.showCurrentParticle = ie),
9872
- onToggleCurrentIsoband: e[3] || (e[3] = (ie) => {
9873
- (i.showCurrentIsoband = ie) && s.handleDrawWeather4Json();
9914
+ onToggleCurrentParticle: e[2] || (e[2] = (re) => i.showCurrentParticle = re),
9915
+ onToggleCurrentIsoband: e[3] || (e[3] = (re) => {
9916
+ (i.showCurrentIsoband = re) && s.handleDrawWeather4Json();
9874
9917
  }),
9875
- onToggleWindParticeVersion: e[4] || (e[4] = (ie) => i.toggleWindParticeVersion = Math.random()),
9876
- onToggleCurrentParticeVersion: e[5] || (e[5] = (ie) => i.toggleCurrentParticeVersion = Math.random()),
9877
- onCoordinate: e[6] || (e[6] = (ie) => i.showCoord = ie),
9878
- onMeasure: e[7] || (e[7] = (ie) => i.showMeasure = ie),
9879
- onPoint: e[8] || (e[8] = (ie) => i.showPoint = ie),
9918
+ onToggleWindParticeVersion: e[4] || (e[4] = (re) => i.toggleWindParticeVersion = Math.random()),
9919
+ onToggleCurrentParticeVersion: e[5] || (e[5] = (re) => i.toggleCurrentParticeVersion = Math.random()),
9920
+ onCoordinate: e[6] || (e[6] = (re) => i.showCoord = re),
9921
+ onMeasure: e[7] || (e[7] = (re) => i.showMeasure = re),
9922
+ onPoint: e[8] || (e[8] = (re) => i.showPoint = re),
9880
9923
  on3d: s.handle3dToggle,
9881
9924
  onHandleToggleVersion: s.handleToggleVersion
9882
9925
  }), null, 16, ["map", "toggle-version", "map-projection", "show-wind-feather", "show-wind-particle", "show-current-isoband", "show-current-particle", "token", "gateway", "forecast-model", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
9883
- H(l, X({
9926
+ F(l, X({
9884
9927
  map: t.map,
9885
9928
  token: t.token,
9886
- enabled: (te = i.otherLayers) == null ? void 0 : te.enc,
9929
+ enabled: (ae = i.otherLayers) == null ? void 0 : ae.enc,
9887
9930
  "toggle-version": t.toggleVersion
9888
9931
  }, a.$attrs, {
9889
- onEnc: e[9] || (e[9] = (ie) => i.enc = ie)
9932
+ onEnc: e[9] || (e[9] = (re) => i.enc = re)
9890
9933
  }), null, 16, ["map", "token", "enabled", "toggle-version"]),
9891
- H(c, X({
9934
+ F(c, X({
9892
9935
  map: t.map,
9893
9936
  token: t.token,
9894
9937
  "weather-layers": i.weatherLayers,
9895
- enabled: (fe = i.otherLayers) == null ? void 0 : fe.world12nm
9938
+ enabled: (Ae = i.otherLayers) == null ? void 0 : Ae.world12nm
9896
9939
  }, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
9897
- H(p, X({
9940
+ F(d, X({
9898
9941
  map: t.map,
9899
9942
  token: t.token,
9900
9943
  "weather-layers": i.weatherLayers,
9901
- enabled: (pe = i.otherLayers) == null ? void 0 : pe.worldMarine
9944
+ enabled: (ge = i.otherLayers) == null ? void 0 : ge.worldMarine
9902
9945
  }, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
9903
- H(h, X({
9946
+ F(h, X({
9904
9947
  map: t.map,
9905
9948
  token: t.token,
9906
9949
  "weather-layers": i.weatherLayers,
9907
- enabled: (Ae = i.otherLayers) == null ? void 0 : Ae.chinaRoute
9950
+ enabled: (we = i.otherLayers) == null ? void 0 : we.chinaRoute
9908
9951
  }, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
9909
- H(d, X({
9952
+ F(p, X({
9910
9953
  map: t.map,
9911
9954
  "sig-wave": (xe = i.weatherLayers) == null ? void 0 : xe["sig-wave-height"],
9912
9955
  "before-layer": t.beforeLayer,
9913
9956
  "active-weather-layers": i.activeWeatherLayers
9914
9957
  }, a.$attrs), null, 16, ["map", "sig-wave", "before-layer", "active-weather-layers"]),
9915
- H(A, X({
9958
+ F(b, X({
9916
9959
  map: t.map,
9917
9960
  swell: (be = i.weatherLayers) == null ? void 0 : be.swell,
9918
9961
  "before-layer": t.beforeLayer,
9919
9962
  "active-weather-layers": i.activeWeatherLayers
9920
9963
  }, a.$attrs), null, 16, ["map", "swell", "before-layer", "active-weather-layers"]),
9921
- H(b, X({
9964
+ F(x, X({
9922
9965
  map: t.map,
9923
9966
  prmsl: (_e = i.weatherLayers) == null ? void 0 : _e.prmsl,
9924
9967
  "before-layer": t.beforeLayer,
9925
9968
  "active-weather-layers": i.activeWeatherLayers
9926
9969
  }, a.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
9927
- H(E, X({
9970
+ F(E, X({
9928
9971
  viewport: i.viewport,
9929
- factor: (B = i.weatherLayers) == null ? void 0 : B["ice-edge"],
9972
+ factor: (I = i.weatherLayers) == null ? void 0 : I["ice-edge"],
9930
9973
  "toggle-version": t.toggleVersion,
9931
9974
  "before-layer": t.beforeLayer
9932
9975
  }, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
9933
- H(w, X({
9976
+ F(A, X({
9934
9977
  viewport: i.viewport,
9935
9978
  factor: (ze = i.weatherLayers) == null ? void 0 : ze["ice-cover"],
9936
9979
  "toggle-version": t.toggleVersion,
9937
9980
  "before-layer": t.beforeLayer
9938
9981
  }, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
9939
- H(k, X({
9982
+ F(B, X({
9940
9983
  viewport: i.viewport,
9941
9984
  factor: (Le = i.weatherLayers) == null ? void 0 : Le["ice-thickness"],
9942
9985
  "toggle-version": t.toggleVersion,
9943
9986
  "before-layer": t.beforeLayer
9944
9987
  }, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
9945
- H(_, X({
9988
+ F(_, X({
9946
9989
  map: t.map,
9947
9990
  date: t.ts,
9948
9991
  tropicals: (Pe = i.weatherLayers) == null ? void 0 : Pe.tropicals,
9949
9992
  "before-layer": t.beforeLayer
9950
9993
  }, a.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
9951
- H(f, X({
9994
+ F(f, X({
9952
9995
  map: t.map,
9953
9996
  "map-projection": i.mapProjection,
9954
9997
  current: (Ee = i.weatherLayers) == null ? void 0 : Ee.current,
@@ -9963,18 +10006,18 @@ function Gs(a, e, t, r, i, s) {
9963
10006
  onParticle: s.handleParticle,
9964
10007
  onHandleToggleVersion: s.handleToggleVersion
9965
10008
  }), 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({
10009
+ F(v, X({
9967
10010
  viewport: i.viewport,
9968
10011
  factor: (He = i.weatherLayers) == null ? void 0 : He["current-particle"],
9969
10012
  "before-layer": t.beforeLayer,
9970
10013
  "toggle-version": t.toggleVersion
9971
10014
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
9972
- H(u, X({
10015
+ F(m, X({
9973
10016
  ref: "windBarb",
9974
10017
  map: t.map,
9975
10018
  "map-projection": i.mapProjection,
9976
10019
  wind: (ke = i.weatherLayers) == null ? void 0 : ke.wind,
9977
- current: (se = i.weatherLayers) == null ? void 0 : se.current,
10020
+ current: (oe = i.weatherLayers) == null ? void 0 : oe.current,
9978
10021
  "before-layer": t.beforeLayer,
9979
10022
  "margin-bottom": i.showRampColor ? "56px" : "30px",
9980
10023
  "show-wind-feather": i.showWindFeather,
@@ -9985,96 +10028,96 @@ function Gs(a, e, t, r, i, s) {
9985
10028
  "weather-layers": i.weatherLayers,
9986
10029
  onParticle: s.handleParticle
9987
10030
  }), 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({
10031
+ F(L, X({
9989
10032
  viewport: i.viewport,
9990
- factor: (ce = i.weatherLayers) == null ? void 0 : ce["wind-particle"],
10033
+ factor: (me = i.weatherLayers) == null ? void 0 : me["wind-particle"],
9991
10034
  "before-layer": t.beforeLayer,
9992
10035
  "toggle-version": t.toggleVersion
9993
10036
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
9994
- H(y, X({
10037
+ F(y, X({
9995
10038
  viewport: i.viewport,
9996
- factor: (Q = i.weatherLayers) == null ? void 0 : Q.precip3h,
10039
+ factor: (H = i.weatherLayers) == null ? void 0 : H.precip3h,
9997
10040
  "before-layer": t.beforeLayer,
9998
10041
  "toggle-version": t.toggleVersion
9999
10042
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
10000
- H(L, X({
10043
+ F(w, X({
10001
10044
  viewport: i.viewport,
10002
10045
  factor: (Be = i.weatherLayers) == null ? void 0 : Be.visibility,
10003
10046
  "before-layer": t.beforeLayer,
10004
10047
  "toggle-version": t.toggleVersion
10005
10048
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
10006
- H(T, X({
10049
+ F(M, X({
10007
10050
  viewport: i.viewport,
10008
10051
  factor: (K = i.weatherLayers) == null ? void 0 : K["water-temp"],
10009
10052
  "before-layer": t.beforeLayer,
10010
10053
  "toggle-version": t.toggleVersion
10011
10054
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
10012
- H(D, X({
10055
+ F(D, X({
10013
10056
  viewport: i.viewport,
10014
10057
  factor: (q = i.weatherLayers) == null ? void 0 : q.temp,
10015
10058
  "before-layer": t.beforeLayer,
10016
10059
  "toggle-version": t.toggleVersion
10017
10060
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
10018
- H(F, X({
10061
+ F(N, X({
10019
10062
  map: t.map,
10020
10063
  zone: (Me = i.otherLayers) == null ? void 0 : Me["war-zones"],
10021
10064
  "before-layer": t.beforeLayer
10022
10065
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
10023
- H(N, X({
10066
+ F(Q, X({
10024
10067
  map: t.map,
10025
10068
  area: (P = i.otherLayers) == null ? void 0 : P["gmdss-areas"],
10026
10069
  "before-layer": t.beforeLayer
10027
10070
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
10028
- H(j, X({
10071
+ F(j, X({
10029
10072
  map: t.map,
10030
- zone: (de = i.otherLayers) == null ? void 0 : de["eca-zones"],
10073
+ zone: (ue = i.otherLayers) == null ? void 0 : ue["eca-zones"],
10031
10074
  "before-layer": t.beforeLayer
10032
10075
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
10033
- H(G, X({
10076
+ F(G, X({
10034
10077
  map: t.map,
10035
10078
  zone: (De = i.otherLayers) == null ? void 0 : De["alert-zones"],
10036
10079
  "before-layer": t.beforeLayer
10037
10080
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
10038
- H(W, X({
10081
+ F(W, X({
10039
10082
  map: t.map,
10040
10083
  port: (Se = i.otherLayers) == null ? void 0 : Se.ports,
10041
10084
  "before-layer": t.beforeLayer,
10042
10085
  "forecast-model": t.forecastModel
10043
10086
  }, a.$attrs), null, 16, ["map", "port", "before-layer", "forecast-model"]),
10044
- H(me, X({
10087
+ F(he, X({
10045
10088
  map: t.map,
10046
10089
  line: (Te = i.otherLayers) == null ? void 0 : Te["load-lines"],
10047
10090
  "before-layer": t.beforeLayer
10048
10091
  }, a.$attrs), null, 16, ["map", "line", "before-layer"]),
10049
- H(re, X({
10092
+ F(te, X({
10050
10093
  map: t.map,
10051
10094
  zone: (z = i.otherLayers) == null ? void 0 : z["time-zones"],
10052
10095
  "before-layer": t.beforeLayer
10053
10096
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
10054
- H(ue, X({
10097
+ F(pe, X({
10055
10098
  map: t.map,
10056
10099
  area: (O = i.otherLayers) == null ? void 0 : O["voluntary-reporting-area"],
10057
10100
  "before-layer": t.beforeLayer
10058
10101
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
10059
- H(we, X({
10102
+ F(ye, X({
10060
10103
  map: t.map,
10061
10104
  area: (Ge = i.otherLayers) == null ? void 0 : Ge["special-area"],
10062
10105
  "before-layer": t.beforeLayer
10063
10106
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
10064
- H(ge, X({
10107
+ F(se, X({
10065
10108
  map: t.map,
10066
10109
  area: (Ue = i.otherLayers) == null ? void 0 : Ue["day-night"]
10067
10110
  }, a.$attrs), null, 16, ["map", "area"]),
10068
- H(ve, X({
10111
+ F(ve, X({
10069
10112
  map: t.map,
10070
10113
  show: i.showCoord,
10071
10114
  "toggle-version": t.toggleVersion
10072
10115
  }, a.$attrs), null, 16, ["map", "show", "toggle-version"]),
10073
- H(ye, X({
10116
+ F(fe, X({
10074
10117
  map: t.map,
10075
10118
  show: i.showMeasure
10076
10119
  }, a.$attrs), null, 16, ["map", "show"]),
10077
- H(Y, X({
10120
+ F(Y, X({
10078
10121
  ref: "idmPoint",
10079
10122
  map: t.map,
10080
10123
  show: i.showPoint,
@@ -10100,5 +10143,5 @@ export {
10100
10143
  dt as TropicalGL,
10101
10144
  et as Viewport,
10102
10145
  We as WebGL,
10103
- ne as WebGLSchema
10146
+ le as WebGLSchema
10104
10147
  };