@idmwx/idmui-gl3 6.3.6 → 6.3.8

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,17 +1,17 @@
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 ie = (a, e, t) => (ut(a, typeof e != "symbol" ? e + "" : e, t), t);
3
+ var se = (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
- import ee from "moment";
6
- import Qe from "axios";
5
+ import ae from "moment";
6
+ import He from "axios";
7
7
  import Ye from "moment-timezone";
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";
8
+ import { resolveComponent as R, openBlock as g, createElementBlock as y, createElementVNode as o, normalizeStyle as ge, createVNode as F, withCtx as Pe, normalizeClass as ee, Fragment as $, renderList as te, toDisplayString as k, createCommentVNode as q, createBlock as gt, createTextVNode as ue, withDirectives as Fe, createStaticVNode as yt, vShow as Oe, defineComponent as ft, withModifiers as Ve, mergeProps as X } from "vue";
9
+ import * as Q from "@turf/turf";
10
10
  import At from "@mapbox/sphericalmercator";
11
11
  import Re from "mapbox-gl";
12
- import { TropicalHelper as ct, LngLatHelper as ne, LaneHelper as je } from "@idm-plugin/geo";
12
+ import { TropicalHelper as ct, LngLatHelper as le, LaneHelper as je } from "@idm-plugin/geo";
13
13
  import { TidesAssist as $e, Meteo2Assist as Ke } from "@idm-plugin/meteo";
14
- const U = (a, e) => {
14
+ const Y = (a, e) => {
15
15
  const t = a.__vccOpts || a;
16
16
  for (const [r, i] of e)
17
17
  t[r] = i;
@@ -120,7 +120,7 @@ const U = (a, e) => {
120
120
  return function(a) {
121
121
  var e;
122
122
  if (a) {
123
- const t = ee(a);
123
+ const t = ae(a);
124
124
  return `${(e = t == null ? void 0 : t.utc()) == null ? void 0 : e.format("MMM-DD/HHmm")}Z`;
125
125
  }
126
126
  return "-";
@@ -178,7 +178,7 @@ const U = (a, e) => {
178
178
  async fetchMeteoSource() {
179
179
  var e;
180
180
  this.sourceList = [];
181
- let a = await Qe.get(`${this.gateway}/api/arc/meteo2/models`, {
181
+ let a = await He.get(`${this.gateway}/api/arc/meteo2/models`, {
182
182
  headers: {
183
183
  Authorization: this.token
184
184
  }
@@ -302,10 +302,10 @@ const U = (a, e) => {
302
302
  };
303
303
  function aa(a, e, t, r, i, s) {
304
304
  const n = R("ElTooltip"), l = R("ElRadio"), c = R("ElRadioGroup"), d = R("ElScrollbar");
305
- return u(), g("div", vt, [
305
+ return g(), y("div", vt, [
306
306
  o("div", {
307
307
  class: "menu-bar-box",
308
- style: de({ top: t.top + 10 + "px", right: i.right + "px" })
308
+ style: ge({ top: t.top + 10 + "px", right: i.right + "px" })
309
309
  }, [
310
310
  o("div", bt, [
311
311
  F(n, {
@@ -314,9 +314,9 @@ function aa(a, e, t, r, i, s) {
314
314
  content: "Menu",
315
315
  "show-after": 1e3
316
316
  }, {
317
- default: Ie(() => [
317
+ default: Pe(() => [
318
318
  o("div", {
319
- class: Z(t.layerToggle ? "menu-icon active" : "menu-icon"),
319
+ class: ee(t.layerToggle ? "menu-icon active" : "menu-icon"),
320
320
  onClick: e[0] || (e[0] = (...h) => s.handleMenuToggle && s.handleMenuToggle(...h))
321
321
  }, e[17] || (e[17] = [
322
322
  o("span", { class: "iconfont" }, "", -1)
@@ -328,7 +328,7 @@ function aa(a, e, t, r, i, s) {
328
328
  ], 4),
329
329
  o("div", {
330
330
  class: "menu-bar-box",
331
- style: de({ top: t.top + 160 + "px", right: i.right + "px" })
331
+ style: ge({ top: t.top + 160 + "px", right: i.right + "px" })
332
332
  }, [
333
333
  o("div", Lt, [
334
334
  F(n, {
@@ -337,9 +337,9 @@ function aa(a, e, t, r, i, s) {
337
337
  content: "Measure",
338
338
  "show-after": 1e3
339
339
  }, {
340
- default: Ie(() => [
340
+ default: Pe(() => [
341
341
  o("div", {
342
- class: Z(i.showMeasure ? "menu-icon active" : "menu-icon"),
342
+ class: ee(i.showMeasure ? "menu-icon active" : "menu-icon"),
343
343
  onClick: e[1] || (e[1] = (...h) => s.handleMeasureToggle && s.handleMeasureToggle(...h))
344
344
  }, e[18] || (e[18] = [
345
345
  o("span", { class: "iconfont" }, "", -1)
@@ -353,9 +353,9 @@ function aa(a, e, t, r, i, s) {
353
353
  content: "Point Meteo",
354
354
  "show-after": 1e3
355
355
  }, {
356
- default: Ie(() => [
356
+ default: Pe(() => [
357
357
  o("div", {
358
- class: Z(i.showPoint ? "menu-icon active" : "menu-icon"),
358
+ class: ee(i.showPoint ? "menu-icon active" : "menu-icon"),
359
359
  onClick: e[2] || (e[2] = (...h) => s.handlePointToggle && s.handlePointToggle(...h))
360
360
  }, e[19] || (e[19] = [
361
361
  o("span", { class: "iconfont" }, "", -1)
@@ -369,9 +369,9 @@ function aa(a, e, t, r, i, s) {
369
369
  content: "Grid",
370
370
  "show-after": 1e3
371
371
  }, {
372
- default: Ie(() => [
372
+ default: Pe(() => [
373
373
  o("div", {
374
- class: Z(i.showCoord ? "menu-icon active" : "menu-icon"),
374
+ class: ee(i.showCoord ? "menu-icon active" : "menu-icon"),
375
375
  onClick: e[3] || (e[3] = (...h) => s.handleCoordToggle && s.handleCoordToggle(...h))
376
376
  }, e[20] || (e[20] = [
377
377
  o("span", { class: "iconfont" }, "", -1)
@@ -385,9 +385,9 @@ function aa(a, e, t, r, i, s) {
385
385
  content: "3D",
386
386
  "show-after": 1e3
387
387
  }, {
388
- default: Ie(() => [
388
+ default: Pe(() => [
389
389
  o("div", {
390
- class: Z(i.show3d ? "menu-icon active" : "menu-icon"),
390
+ class: ee(i.show3d ? "menu-icon active" : "menu-icon"),
391
391
  onClick: e[4] || (e[4] = (...h) => s.handle3DToggle && s.handle3DToggle(...h))
392
392
  }, e[21] || (e[21] = [
393
393
  o("span", { class: "iconfont" }, "", -1)
@@ -397,10 +397,10 @@ function aa(a, e, t, r, i, s) {
397
397
  })
398
398
  ])
399
399
  ], 4),
400
- s.hasCollectedLayers ? (u(), g("div", {
400
+ s.hasCollectedLayers ? (g(), y("div", {
401
401
  key: 0,
402
402
  class: "active-layers",
403
- style: de({ right: i.right + "px", bottom: "100px" })
403
+ style: ge({ 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,12 +409,12 @@ 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 ? (u(), g("i", xt, "")) : (u(), g("i", _t, ""))
412
+ i.autoActive ? (g(), y("i", xt, "")) : (g(), y("i", _t, ""))
413
413
  ])
414
414
  ]),
415
- (u(!0), g(V, null, $(i.layers.weather.filter((h) => h.collected), (h) => (u(), g("div", {
415
+ (g(!0), y($, null, te(i.layers.weather.filter((h) => h.collected), (h) => (g(), y("div", {
416
416
  key: h.key,
417
- class: Z(s.computeLayerClass(h, i.activeWeatherLayersCollected))
417
+ class: ee(s.computeLayerClass(h, i.activeWeatherLayersCollected))
418
418
  }, [
419
419
  o("div", {
420
420
  class: "checkbox",
@@ -424,34 +424,34 @@ function aa(a, e, t, r, i, s) {
424
424
  class: "name",
425
425
  onClick: (p) => s.handleWeatherLayerPick(h)
426
426
  }, k(h.name), 9, It),
427
- h.key === "wind" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (u(), g("div", Et, [
427
+ h.key === "wind" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (g(), y("div", Et, [
428
428
  o("i", {
429
- class: Z(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
429
+ class: ee(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
430
430
  onClick: e[6] || (e[6] = (p) => s.handleToggleWindParticle())
431
431
  }, "", 2),
432
432
  o("i", {
433
- class: Z(["iconfont sub-layer-icon", i.showWindFeatherCollected ? "active" : ""]),
433
+ class: ee(["iconfont sub-layer-icon", i.showWindFeatherCollected ? "active" : ""]),
434
434
  onClick: e[7] || (e[7] = (p) => s.handleToggleWindFeather())
435
435
  }, "", 2)
436
- ])) : J("", !0),
437
- h.key === "current" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (u(), g("div", kt, [
436
+ ])) : q("", !0),
437
+ h.key === "current" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (g(), y("div", kt, [
438
438
  o("i", {
439
- class: Z(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
439
+ class: ee(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
440
440
  onClick: e[8] || (e[8] = (p) => s.handleToggleCurrentParticle())
441
441
  }, "", 2),
442
442
  o("i", {
443
- class: Z(["iconfont sub-layer-icon", i.showCurrentIsobandCollected ? "active" : ""]),
443
+ class: ee(["iconfont sub-layer-icon", i.showCurrentIsobandCollected ? "active" : ""]),
444
444
  onClick: e[9] || (e[9] = (p) => s.handleToggleCurrentIsoband())
445
445
  }, "", 2)
446
- ])) : J("", !0)
446
+ ])) : q("", !0)
447
447
  ], 2))), 128))
448
- ], 4)) : J("", !0),
448
+ ], 4)) : q("", !0),
449
449
  o("div", {
450
450
  class: "available-layers flex-center",
451
- style: de({ top: t.top + "px", right: t.layerToggle ? "0px" : "-240px" })
451
+ style: ge({ top: t.top + "px", right: t.layerToggle ? "0px" : "-240px" })
452
452
  }, [
453
453
  o("div", {
454
- class: Z(["list-box", t.layerToggle ? "right-bar" : ""])
454
+ class: ee(["list-box", t.layerToggle ? "right-bar" : ""])
455
455
  }, [
456
456
  o("div", Dt, [
457
457
  e[23] || (e[23] = o("div", null, "Layers", -1)),
@@ -461,7 +461,7 @@ function aa(a, e, t, r, i, s) {
461
461
  }, "")
462
462
  ]),
463
463
  F(d, { style: { flex: "1" } }, {
464
- default: Ie(() => [
464
+ default: Pe(() => [
465
465
  o("div", zt, [
466
466
  o("div", Pt, [
467
467
  e[24] || (e[24] = o("div", null, "Weather Layers", -1)),
@@ -470,16 +470,16 @@ 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 ? (u(), g("i", Mt, "")) : (u(), g("i", St, ""))
473
+ i.autoActive ? (g(), y("i", Mt, "")) : (g(), y("i", St, ""))
474
474
  ])
475
475
  ]),
476
476
  o("div", Tt, [
477
- (u(!0), g(V, null, $(i.layers.weather, (h) => (u(), g(V, {
477
+ (g(!0), y($, null, te(i.layers.weather, (h) => (g(), y($, {
478
478
  key: h.key
479
479
  }, [
480
- h.hide ? J("", !0) : (u(), g("div", {
480
+ h.hide ? q("", !0) : (g(), y("div", {
481
481
  key: 0,
482
- class: Z(s.computeLayerClass(h, i.activeWeatherLayersCollected))
482
+ class: ee(s.computeLayerClass(h, i.activeWeatherLayersCollected))
483
483
  }, [
484
484
  o("div", Qt, [
485
485
  o("div", {
@@ -490,31 +490,31 @@ function aa(a, e, t, r, i, s) {
490
490
  class: "name",
491
491
  onClick: (p) => s.handleWeatherLayerPick(h)
492
492
  }, k(h.name), 9, Nt),
493
- h.key === "wind" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (u(), g("div", Ft, [
493
+ h.key === "wind" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (g(), y("div", Ft, [
494
494
  o("i", {
495
- class: Z(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
495
+ class: ee(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
496
496
  onClick: e[12] || (e[12] = (p) => s.handleToggleWindParticle())
497
497
  }, "", 2),
498
498
  o("i", {
499
- class: Z(["iconfont sub-layer-icon", i.showWindFeatherCollected ? "active" : ""]),
499
+ class: ee(["iconfont sub-layer-icon", i.showWindFeatherCollected ? "active" : ""]),
500
500
  onClick: e[13] || (e[13] = (p) => s.handleToggleWindFeather())
501
501
  }, "", 2)
502
- ])) : J("", !0),
503
- h.key === "current" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (u(), g("div", Ot, [
502
+ ])) : q("", !0),
503
+ h.key === "current" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (g(), y("div", Ot, [
504
504
  o("i", {
505
- class: Z(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
505
+ class: ee(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
506
506
  onClick: e[14] || (e[14] = (p) => s.handleToggleCurrentParticle())
507
507
  }, "", 2),
508
508
  o("i", {
509
- class: Z(["iconfont sub-layer-icon", i.showCurrentIsobandCollected ? "active" : ""]),
509
+ class: ee(["iconfont sub-layer-icon", i.showCurrentIsobandCollected ? "active" : ""]),
510
510
  onClick: e[15] || (e[15] = (p) => s.handleToggleCurrentIsoband())
511
511
  }, "", 2)
512
- ])) : J("", !0)
512
+ ])) : q("", !0)
513
513
  ]),
514
514
  o("div", {
515
515
  onClick: (p) => s.handleWeatherLayerCollect(h)
516
516
  }, [
517
- h.collected ? (u(), g("i", jt, "")) : (u(), g("i", Wt, ""))
517
+ h.collected ? (g(), y("i", jt, "")) : (g(), y("i", Wt, ""))
518
518
  ], 8, Rt)
519
519
  ], 2))
520
520
  ], 64))), 128)),
@@ -530,16 +530,16 @@ 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
- (u(!0), g(V, null, $(i.layers.other, (h) => {
533
+ (g(!0), y($, null, te(i.layers.other, (h) => {
534
534
  var p;
535
- return u(), g("div", {
535
+ return g(), y("div", {
536
536
  key: h.key,
537
- class: Z(["layer flex-between", s.computeLayerClass(h, i.activeOtherLayers)]),
538
- onClick: (b) => s.handleOtherLayerPick(h)
537
+ class: ee(["layer flex-between", s.computeLayerClass(h, i.activeOtherLayers)]),
538
+ onClick: (v) => s.handleOtherLayerPick(h)
539
539
  }, [
540
540
  o("div", Kt, [
541
541
  o("div", Xt, [
542
- (p = s.computeLayerClass(h, i.activeOtherLayers)) != null && p.includes("active") ? (u(), g("i", Jt, "")) : (u(), g("i", qt, ""))
542
+ (p = s.computeLayerClass(h, i.activeOtherLayers)) != null && p.includes("active") ? (g(), y("i", Jt, "")) : (g(), y("i", qt, ""))
543
543
  ]),
544
544
  o("span", null, k(h.name), 1)
545
545
  ])
@@ -556,17 +556,17 @@ function aa(a, e, t, r, i, s) {
556
556
  class: "layer-radio flex-col-start-start",
557
557
  style: { width: "180px", "align-items": "flex-start" }
558
558
  }, {
559
- default: Ie(() => [
560
- (u(!0), g(V, null, $(i.sourceList, (h, p) => (u(), gt(l, {
559
+ default: Pe(() => [
560
+ (g(!0), y($, null, te(i.sourceList, (h, p) => (g(), gt(l, {
561
561
  key: `source${h.name}`,
562
562
  value: h.name
563
563
  }, {
564
- default: Ie(() => {
565
- var b, x, E, A, B, _;
564
+ default: Pe(() => {
565
+ var v, x, E, f, I, _;
566
566
  return [
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)
567
+ ue(k(h.name) + " ", 1),
568
+ p !== 0 ? (g(), y("span", $t, k(h.resolution) + "km " + k(h.length) + "days", 1)) : q("", !0),
569
+ p === 0 ? (g(), y("div", ea, "Provides the best forecast")) : (E = (x = (v = h == null ? void 0 : h.update) == null ? void 0 : v.default) == null ? void 0 : x.meta) != null && E.initialisationTime ? (g(), y("div", ta, "Update: " + k(s.computeDateZ((_ = (I = (f = h == null ? void 0 : h.update) == null ? void 0 : f.default) == null ? void 0 : I.meta) == null ? void 0 : _.initialisationTime)), 1)) : q("", !0)
570
570
  ];
571
571
  }),
572
572
  _: 2
@@ -583,7 +583,7 @@ function aa(a, e, t, r, i, s) {
583
583
  ], 4)
584
584
  ]);
585
585
  }
586
- const ia = /* @__PURE__ */ U(wt, [["render", aa]]);
586
+ const ia = /* @__PURE__ */ Y(wt, [["render", aa]]);
587
587
  const ra = {
588
588
  name: "IdmWindBarb",
589
589
  props: {
@@ -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: T.featureCollection([]),
625
+ empty: Q.featureCollection([]),
626
626
  right: 10,
627
627
  bottom: 125,
628
628
  windBarbLoaded: !1
@@ -729,18 +729,18 @@ const ra = {
729
729
  function sa(a, e, t, r, i, s) {
730
730
  return null;
731
731
  }
732
- const oa = /* @__PURE__ */ U(ra, [["render", sa]]);
732
+ const oa = /* @__PURE__ */ Y(ra, [["render", sa]]);
733
733
  class et {
734
734
  constructor(e) {
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");
735
+ se(this, "map");
736
+ se(this, "mercator");
737
+ se(this, "rampColorLayer");
738
+ se(this, "rampColorSource");
739
+ se(this, "particleLayer");
740
+ se(this, "particleSource");
741
+ se(this, "rampColorCanvas");
742
+ se(this, "particleCanvas");
743
+ se(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]), [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];
778
+ const e = this.map.getBounds(), t = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [s, n] = this.convertNLng(r[0]), [l, c] = this.convertNLng(i[0]), [d, h] = this.mercator.px([s, r[1]], t), [p, v] = this.mercator.px([l, i[1]], t), x = Math.round(this.mercator.size * Math.pow(2, t) * (n + c));
779
+ return [p, v, d + x, h];
780
780
  }
781
781
  /**
782
782
  * [视窗边界像素宽度]
@@ -957,10 +957,10 @@ 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 p = e.getBoundPixel(), b = e.map.getZoom() + 1, x = e.getWorldCopy(p, b);
960
+ const p = e.getBoundPixel(), v = e.map.getZoom() + 1, x = e.getWorldCopy(p, v);
961
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
- t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, y, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
962
+ const f = (E[0] - p[0]) * e.ratio, I = (E[1] - p[3]) * e.ratio, _ = E[2] * e.ratio, [A, w, m, L] = [f, _ + f, I, _ + I], u = new Float32Array([A, m, w, m, A, L, A, L, w, m, w, L]);
963
+ t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, u, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
964
964
  }
965
965
  } catch (h) {
966
966
  console.log(`render failed...${h}`);
@@ -1008,10 +1008,10 @@ class We {
1008
1008
  });
1009
1009
  }
1010
1010
  }
1011
- class le {
1011
+ class he {
1012
1012
  }
1013
1013
  // 顶点渲染
1014
- ie(le, "vertexSchema", `
1014
+ se(he, "vertexSchema", `
1015
1015
  //canvas 坐标系上的坐标 (x, y)
1016
1016
  attribute vec2 a_position; //像素坐标
1017
1017
  attribute vec2 a_texCoord; //纹理坐标
@@ -1026,7 +1026,7 @@ ie(le, "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
- ie(le, "uvFragmentSchema", `
1029
+ se(he, "uvFragmentSchema", `
1030
1030
  precision mediump float;
1031
1031
  uniform sampler2D u_image;
1032
1032
  uniform vec2 u_range_u_v;
@@ -1046,7 +1046,7 @@ ie(le, "uvFragmentSchema", `
1046
1046
 
1047
1047
  gl_FragColor = color;
1048
1048
  }`), // 类如浪、气压等单变量片元渲染
1049
- ie(le, "fragmentSchema", `
1049
+ se(he, "fragmentSchema", `
1050
1050
  precision mediump float;
1051
1051
  uniform sampler2D u_image; // 灰度
1052
1052
  uniform sampler2D u_color; // 色值映射
@@ -1057,9 +1057,9 @@ ie(le, "fragmentSchema", `
1057
1057
  vec4 color = texture2D(u_color, vec2(rgba.r, 0));
1058
1058
  gl_FragColor = color;
1059
1059
  }`);
1060
- class Ce {
1060
+ class Ee {
1061
1061
  }
1062
- ie(Ce, "vertexSchema", `
1062
+ se(Ee, "vertexSchema", `
1063
1063
  precision mediump float;
1064
1064
 
1065
1065
  attribute float a_index; // 索引
@@ -1083,7 +1083,7 @@ ie(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
- }`), ie(Ce, "fragmentSchema", `
1086
+ }`), se(Ee, "fragmentSchema", `
1087
1087
  precision mediump float;
1088
1088
 
1089
1089
  uniform sampler2D u_factor;
@@ -1105,7 +1105,7 @@ ie(Ce, "vertexSchema", `
1105
1105
 
1106
1106
  float f = 1.0 - uv.b;
1107
1107
  gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
1108
- }`), ie(Ce, "quadVertSchema", `
1108
+ }`), se(Ee, "quadVertSchema", `
1109
1109
  precision mediump float;
1110
1110
 
1111
1111
  attribute vec2 a_pos;
@@ -1115,7 +1115,7 @@ ie(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
- }`), ie(Ce, "screenFragmentSchema", `
1118
+ }`), se(Ee, "screenFragmentSchema", `
1119
1119
  precision mediump float;
1120
1120
 
1121
1121
  uniform sampler2D u_screen;
@@ -1127,7 +1127,7 @@ ie(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
- }`), ie(Ce, "updateFragmentSchema", `
1130
+ }`), se(Ee, "updateFragmentSchema", `
1131
1131
  precision mediump float;
1132
1132
 
1133
1133
  uniform sampler2D u_particles;
@@ -1208,12 +1208,12 @@ ie(Ce, "vertexSchema", `
1208
1208
  }`);
1209
1209
  class na {
1210
1210
  constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
1211
- ie(this, "token");
1212
- ie(this, "mapboxCustomer");
1213
- ie(this, "i4");
1214
- ie(this, "hi");
1215
- ie(this, "td");
1216
- ie(this, "windy");
1211
+ se(this, "token");
1212
+ se(this, "mapboxCustomer");
1213
+ se(this, "i4");
1214
+ se(this, "hi");
1215
+ se(this, "td");
1216
+ se(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, le.vertexSchema, le.uvFragmentSchema);
3213
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, he.vertexSchema, he.uvFragmentSchema);
3214
3214
  this.program = e, this.aPositionBuffer = t;
3215
3215
  }
3216
3216
  this.handleParticleSetup();
@@ -3224,11 +3224,11 @@ const la = {
3224
3224
  ];
3225
3225
  this.wrapper = this.webgl.bindParticle(
3226
3226
  this.particleContext,
3227
- Ce.vertexSchema,
3228
- Ce.fragmentSchema,
3229
- Ce.quadVertSchema,
3230
- Ce.screenFragmentSchema,
3231
- Ce.updateFragmentSchema
3227
+ Ee.vertexSchema,
3228
+ Ee.fragmentSchema,
3229
+ Ee.quadVertSchema,
3230
+ Ee.screenFragmentSchema,
3231
+ Ee.updateFragmentSchema
3232
3232
  ), this.wrapper.color = this.webgl.setup(this.particleContext, a, !0, 16, 16), this.wrapper = { ...this.wrapper, ...this.webgl.setupParticle(this.particleContext, 9e3), ...this.webgl.resize(this.viewport, this.particleContext) }, this.viewport.map.on("resize", this.handleResize), this.viewport.map.on("movestart", this.handlePause), this.viewport.map.on("moveend", this.handlePlay);
3233
3233
  }
3234
3234
  },
@@ -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 ? (u(), g("div", ha, [
3264
+ return (n = t.factor) != null && n.active ? (g(), y("div", ha, [
3265
3265
  o("div", {
3266
3266
  class: "legend-bars flex-center",
3267
- style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
3267
+ style: ge([{ 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),
@@ -3275,9 +3275,9 @@ function ca(a, e, t, r, i, s) {
3275
3275
  o("span", null, "40", -1),
3276
3276
  o("span", null, "60", -1)
3277
3277
  ]), 4)
3278
- ])) : J("", !0);
3278
+ ])) : q("", !0);
3279
3279
  }
3280
- const da = /* @__PURE__ */ U(la, [["render", ca], ["__scopeId", "data-v-e5910f11"]]);
3280
+ const da = /* @__PURE__ */ Y(la, [["render", ca], ["__scopeId", "data-v-e5910f11"]]);
3281
3281
  const pa = {
3282
3282
  name: "IdmCurrent",
3283
3283
  props: {
@@ -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: T.featureCollection([]),
3322
+ empty: Q.featureCollection([]),
3323
3323
  right: 10,
3324
3324
  bottom: 95
3325
3325
  };
@@ -3431,7 +3431,7 @@ const pa = {
3431
3431
  function ma(a, e, t, r, i, s) {
3432
3432
  return null;
3433
3433
  }
3434
- const ua = /* @__PURE__ */ U(pa, [["render", ma]]);
3434
+ const ua = /* @__PURE__ */ Y(pa, [["render", ma]]);
3435
3435
  const ga = {
3436
3436
  name: "IdmCurrentParticle",
3437
3437
  props: {
@@ -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, le.vertexSchema, le.uvFragmentSchema);
3541
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, he.vertexSchema, he.uvFragmentSchema);
3542
3542
  this.program = e, this.aPositionBuffer = t;
3543
3543
  }
3544
3544
  this.handleParticleSetup();
@@ -3553,11 +3553,11 @@ const ga = {
3553
3553
  ];
3554
3554
  this.wrapper = this.webgl.bindParticle(
3555
3555
  this.particleContext,
3556
- Ce.vertexSchema,
3557
- Ce.fragmentSchema,
3558
- Ce.quadVertSchema,
3559
- Ce.screenFragmentSchema,
3560
- Ce.updateFragmentSchema
3556
+ Ee.vertexSchema,
3557
+ Ee.fragmentSchema,
3558
+ Ee.quadVertSchema,
3559
+ Ee.screenFragmentSchema,
3560
+ Ee.updateFragmentSchema
3561
3561
  ), this.wrapper.color = this.webgl.setup(this.particleContext, a, !0, 16, 16), this.wrapper = {
3562
3562
  ...this.wrapper,
3563
3563
  ...this.webgl.setupParticle(this.particleContext, 9e3),
@@ -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 ? (u(), g("div", ya, [
3597
+ return (n = t.factor) != null && n.active ? (g(), y("div", ya, [
3598
3598
  o("div", {
3599
3599
  class: "legend-bars flex-center",
3600
- style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
3600
+ style: ge([{ 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),
@@ -3607,9 +3607,9 @@ function fa(a, e, t, r, i, s) {
3607
3607
  o("span", null, "2", -1),
3608
3608
  o("span", null, "3.2", -1)
3609
3609
  ]), 4)
3610
- ])) : J("", !0);
3610
+ ])) : q("", !0);
3611
3611
  }
3612
- const Aa = /* @__PURE__ */ U(ga, [["render", fa], ["__scopeId", "data-v-c2962e63"]]), wa = {
3612
+ const Aa = /* @__PURE__ */ Y(ga, [["render", fa], ["__scopeId", "data-v-c2962e63"]]), wa = {
3613
3613
  name: "IdmSigWave",
3614
3614
  props: {
3615
3615
  map: {
@@ -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: T.featureCollection([])
3633
+ empty: Q.featureCollection([])
3634
3634
  };
3635
3635
  },
3636
3636
  watch: {
@@ -3738,9 +3738,9 @@ 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 u(), g("div");
3741
+ return g(), y("div");
3742
3742
  }
3743
- const ba = /* @__PURE__ */ U(wa, [["render", va]]), La = {
3743
+ const ba = /* @__PURE__ */ Y(wa, [["render", va]]), La = {
3744
3744
  name: "IdmSwell",
3745
3745
  props: {
3746
3746
  map: {
@@ -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: T.featureCollection([])
3765
+ empty: Q.featureCollection([])
3766
3766
  };
3767
3767
  },
3768
3768
  watch: {
@@ -3896,9 +3896,9 @@ const ba = /* @__PURE__ */ U(wa, [["render", va]]), La = {
3896
3896
  }
3897
3897
  };
3898
3898
  function Ca(a, e, t, r, i, s) {
3899
- return u(), g("div");
3899
+ return g(), y("div");
3900
3900
  }
3901
- const xa = /* @__PURE__ */ U(La, [["render", Ca]]), _a = {
3901
+ const xa = /* @__PURE__ */ Y(La, [["render", Ca]]), _a = {
3902
3902
  name: "IdmPrmsl",
3903
3903
  props: {
3904
3904
  map: {
@@ -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: T.featureCollection([])
3926
+ empty: Q.featureCollection([])
3927
3927
  };
3928
3928
  },
3929
3929
  watch: {
@@ -4034,9 +4034,9 @@ const xa = /* @__PURE__ */ U(La, [["render", Ca]]), _a = {
4034
4034
  }
4035
4035
  };
4036
4036
  function Ba(a, e, t, r, i, s) {
4037
- return u(), g("div");
4037
+ return g(), y("div");
4038
4038
  }
4039
- const Ia = /* @__PURE__ */ U(_a, [["render", Ba]]);
4039
+ const Ia = /* @__PURE__ */ Y(_a, [["render", Ba]]);
4040
4040
  const Ea = {
4041
4041
  name: "IdmIceEdge",
4042
4042
  props: {
@@ -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, le.vertexSchema, le.fragmentSchema);
4128
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, he.vertexSchema, he.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 ? (u(), g("div", ka, [
4144
+ return (n = t.factor) != null && n.active ? (g(), y("div", ka, [
4145
4145
  o("div", {
4146
4146
  class: "legend-bars flex-center",
4147
- style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4147
+ style: ge([{ 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),
@@ -4159,9 +4159,9 @@ function Da(a, e, t, r, i, s) {
4159
4159
  o("span", null, "90", -1),
4160
4160
  o("span", null, null, -1)
4161
4161
  ]), 4)
4162
- ])) : J("", !0);
4162
+ ])) : q("", !0);
4163
4163
  }
4164
- const za = /* @__PURE__ */ U(Ea, [["render", Da], ["__scopeId", "data-v-14ae1a6c"]]);
4164
+ const za = /* @__PURE__ */ Y(Ea, [["render", Da], ["__scopeId", "data-v-14ae1a6c"]]);
4165
4165
  const Pa = {
4166
4166
  name: "IdmCover",
4167
4167
  props: {
@@ -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, le.vertexSchema, le.fragmentSchema);
4244
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, he.vertexSchema, he.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 ? (u(), g("div", Ma, [
4260
+ return (n = t.factor) != null && n.active ? (g(), y("div", Ma, [
4261
4261
  o("div", {
4262
4262
  class: "legend-bars flex-center",
4263
- style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4263
+ style: ge([{ 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),
@@ -4269,9 +4269,9 @@ function Sa(a, e, t, r, i, s) {
4269
4269
  o("span", null, "80", -1),
4270
4270
  o("span", null, "100", -1)
4271
4271
  ]), 4)
4272
- ])) : J("", !0);
4272
+ ])) : q("", !0);
4273
4273
  }
4274
- const Ta = /* @__PURE__ */ U(Pa, [["render", Sa], ["__scopeId", "data-v-f21edb81"]]);
4274
+ const Ta = /* @__PURE__ */ Y(Pa, [["render", Sa], ["__scopeId", "data-v-f21edb81"]]);
4275
4275
  const Qa = {
4276
4276
  name: "IdmThickness",
4277
4277
  props: {
@@ -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, le.vertexSchema, le.fragmentSchema);
4362
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, he.vertexSchema, he.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 ? (u(), g("div", Ha, [
4378
+ return (n = t.factor) != null && n.active ? (g(), y("div", Ha, [
4379
4379
  o("div", {
4380
4380
  class: "legend-bars flex-center",
4381
- style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4381
+ style: ge([{ 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),
@@ -4388,9 +4388,9 @@ function Na(a, e, t, r, i, s) {
4388
4388
  o("span", null, "2", -1),
4389
4389
  o("span", null, "3", -1)
4390
4390
  ]), 4)
4391
- ])) : J("", !0);
4391
+ ])) : q("", !0);
4392
4392
  }
4393
- const Fa = /* @__PURE__ */ U(Qa, [["render", Na], ["__scopeId", "data-v-a4c3d2ed"]]), Xe = [
4393
+ const Fa = /* @__PURE__ */ Y(Qa, [["render", Na], ["__scopeId", "data-v-a4c3d2ed"]]), Xe = [
4394
4394
  {
4395
4395
  rank: 0,
4396
4396
  name: "Best Match",
@@ -4708,18 +4708,18 @@ 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 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;
4711
+ var p, v, x;
4712
+ return ((p = h.models) == null ? void 0 : p.includes(l)) || ((v = h.alias) == null ? void 0 : v.toLowerCase()) === l || ((x = h.name) == null ? void 0 : x.toLowerCase()) === l;
4713
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;
4714
+ var p, v, x;
4715
+ return ((p = h.models) == null ? void 0 : p.includes(l)) || ((v = h.alias) == null ? void 0 : v.toLowerCase()) === l || ((x = h.name) == null ? void 0 : x.toLowerCase()) === l;
4716
4716
  });
4717
4717
  c = c || Xe.find((h) => {
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());
4718
+ var p, v;
4719
+ return ((p = h.alias) == null ? void 0 : p.toLowerCase()) === ((v = d == null ? void 0 : d.alias) == null ? void 0 : v.toLowerCase());
4720
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());
4721
+ var p, v;
4722
+ return ((p = h.alias) == null ? void 0 : p.toLowerCase()) === ((v = c == null ? void 0 : c.alias) == null ? void 0 : v.toLowerCase());
4723
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 {
@@ -4737,91 +4737,91 @@ class ht {
4737
4737
  }), i;
4738
4738
  }
4739
4739
  static pickHourly(e, t) {
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
- let Se = 0, Te = 0;
4747
- for (const z of me) {
4748
- const O = z == null ? void 0 : z.hourly;
4749
- for (let Ne = P - (P - 1) % 3; Ne <= P; Ne++)
4750
- Se += (p = O == null ? void 0 : O.precipitation) == null ? void 0 : p.at(Ne);
4751
- for (let Ne = P - (P - 1) % 6; Ne <= P; Ne++)
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
- apparentTemp: (E = O == null ? void 0 : O.apparent_temperature) == null ? void 0 : E.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),
4740
+ var r, i, s, n, l, c, d, h, p, v, x, E, f, I, _, A, w, m, L, u, b, z, D, N, H, j, G, W, ce, re, de, we, pe, ve, me, U, V, ye, ne, fe, xe, be, _e, B, ke, Le, De, Be, ze, Ie;
4741
+ const ie = typeof t == "string" ? ae(t) : t, J = e == null ? void 0 : e.weather, P = e == null ? void 0 : e.marine, Ce = ae((i = (r = J == null ? void 0 : J[0]) == null ? void 0 : r.hourly) == null ? void 0 : i.date).utc(), K = Ce.clone().add((l = (n = (s = J == null ? void 0 : J[0]) == null ? void 0 : s.hourly) == null ? void 0 : n.time) == null ? void 0 : l.at(0), "h"), Z = Ce.clone().add((h = (d = (c = J == null ? void 0 : J[0]) == null ? void 0 : c.hourly) == null ? void 0 : d.time) == null ? void 0 : h.at(-1), "h"), Se = [];
4742
+ if (ie.isBetween(K, Z, "millisecond", "[]")) {
4743
+ const S = ie.utc().diff(K, "h", !1);
4744
+ let Ae, Me;
4745
+ if (J) {
4746
+ let Te = 0, Qe = 0;
4747
+ for (const M of J) {
4748
+ const O = M == null ? void 0 : M.hourly;
4749
+ for (let Ne = S - (S - 1) % 3; Ne <= S; Ne++)
4750
+ Te += (p = O == null ? void 0 : O.precipitation) == null ? void 0 : p.at(Ne);
4751
+ for (let Ne = S - (S - 1) % 6; Ne <= S; Ne++)
4752
+ Qe += (v = O == null ? void 0 : O.precipitation) == null ? void 0 : v.at(Ne);
4753
+ Ae = {
4754
+ temp: (x = O == null ? void 0 : O.temperature_2m) == null ? void 0 : x.at(S),
4755
+ apparentTemp: (E = O == null ? void 0 : O.apparent_temperature) == null ? void 0 : E.at(S),
4756
+ rh: (f = O == null ? void 0 : O.relative_humidity_2m) == null ? void 0 : f.at(S),
4757
+ dp: (I = O == null ? void 0 : O.dew_point_2m) == null ? void 0 : I.at(S),
4758
4758
  precip: {
4759
- probability: (_ = O == null ? void 0 : O.precipitation_probability) == null ? void 0 : _.at(P),
4760
- sum: (f = O == null ? void 0 : O.precipitation) == null ? void 0 : f.at(P),
4761
- sum3Hours: Math.round(Se * 100) / 100,
4762
- sum6Hours: Math.round(Te * 100) / 100
4759
+ probability: (_ = O == null ? void 0 : O.precipitation_probability) == null ? void 0 : _.at(S),
4760
+ sum: (A = O == null ? void 0 : O.precipitation) == null ? void 0 : A.at(S),
4761
+ sum3Hours: Math.round(Te * 100) / 100,
4762
+ sum6Hours: Math.round(Qe * 100) / 100
4763
4763
  },
4764
- pmsl: (v = O == null ? void 0 : O.pressure_msl) == null ? void 0 : v.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
- visibility: this.m2nm((y = O == null ? void 0 : O.visibility) == null ? void 0 : y.at(P)),
4764
+ pmsl: (w = O == null ? void 0 : O.pressure_msl) == null ? void 0 : w.at(S),
4765
+ psurf: (m = O == null ? void 0 : O.surface_pressure) == null ? void 0 : m.at(S),
4766
+ code: (L = O == null ? void 0 : O.weather_code) == null ? void 0 : L.at(S),
4767
+ visibility: this.m2nm((u = O == null ? void 0 : O.visibility) == null ? void 0 : u.at(S)),
4768
4768
  wind: {
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
- degree: (D = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : D.at(P),
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
- gusts: (j = O == null ? void 0 : O.wind_gusts_10m) == null ? void 0 : j.at(P)
4769
+ speed: (b = O == null ? void 0 : O.wind_speed_10m) == null ? void 0 : b.at(S),
4770
+ kts: (z = O == null ? void 0 : O.wind_speed_10m) == null ? void 0 : z.at(S),
4771
+ degree: (D = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : D.at(S),
4772
+ bearing: ((N = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : N.at(S)) !== null ? (((H = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : H.at(S)) + 180) % 360 : null,
4773
+ gusts: (j = O == null ? void 0 : O.wind_gusts_10m) == null ? void 0 : j.at(S)
4774
4774
  },
4775
- isDay: (G = O == null ? void 0 : O.is_day) == null ? void 0 : G.at(P)
4775
+ isDay: (G = O == null ? void 0 : O.is_day) == null ? void 0 : G.at(S)
4776
4776
  };
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
- utc: K.add(P, "h").format(),
4780
- model: z.model,
4781
- weather: { ...ue }
4777
+ const { name: Ge, url: Ue, bg: oe } = this.parseWeatherCode(Ae.code, Ae.isDay);
4778
+ Ae.name = Ge, Ae.url = Ue, Ae.bg = oe, Ae.wind.scale = this.beaufort(this.kts2ms(Ae.wind.kts)), Ae.wind.direction = this.degree2Direction(Ae.wind.degree), Se.push({
4779
+ utc: K.add(S, "h").format(),
4780
+ model: M.model,
4781
+ weather: { ...Ae }
4782
4782
  });
4783
4783
  }
4784
4784
  }
4785
- if (H) {
4786
- let Se = 0;
4787
- for (const Te of H) {
4788
- const z = Te == null ? void 0 : Te.hourly;
4789
- De = {
4785
+ if (P) {
4786
+ let Te = 0;
4787
+ for (const Qe of P) {
4788
+ const M = Qe == null ? void 0 : Qe.hourly;
4789
+ Me = {
4790
4790
  wave: {
4791
4791
  sig: {
4792
- height: (W = z == null ? void 0 : z.wave_height) == null ? void 0 : W.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)
4792
+ height: (W = M == null ? void 0 : M.wave_height) == null ? void 0 : W.at(S),
4793
+ degree: (ce = M == null ? void 0 : M.wave_direction) == null ? void 0 : ce.at(S),
4794
+ bearing: ((re = M == null ? void 0 : M.wave_direction) == null ? void 0 : re.at(S)) !== null ? (((de = M == null ? void 0 : M.wave_direction) == null ? void 0 : de.at(S)) + 180) % 360 : null,
4795
+ period: (we = M == null ? void 0 : M.wave_period) == null ? void 0 : we.at(S)
4796
4796
  },
4797
4797
  swell: {
4798
- height: (se = z == null ? void 0 : z.swell_wave_height) == null ? void 0 : se.at(P),
4799
- degree: (ve = z == null ? void 0 : z.swell_wave_direction) == null ? void 0 : ve.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)
4798
+ height: (pe = M == null ? void 0 : M.swell_wave_height) == null ? void 0 : pe.at(S),
4799
+ degree: (ve = M == null ? void 0 : M.swell_wave_direction) == null ? void 0 : ve.at(S),
4800
+ bearing: ((me = M == null ? void 0 : M.swell_wave_direction) == null ? void 0 : me.at(S)) !== null ? (((U = M == null ? void 0 : M.swell_wave_direction) == null ? void 0 : U.at(S)) + 180) % 360 : null,
4801
+ period: (V = M == null ? void 0 : M.swell_wave_period) == null ? void 0 : V.at(S),
4802
+ peakPeriod: (ye = M == null ? void 0 : M.swell_wave_peak_period) == null ? void 0 : ye.at(S)
4803
4803
  },
4804
4804
  wd: {
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
- 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
- period: (_e = z == null ? void 0 : z.wind_wave_period) == null ? void 0 : _e.at(P),
4809
- peakPeriod: (I = z == null ? void 0 : z.wind_wave_peak_period) == null ? void 0 : I.at(P)
4805
+ height: (ne = M == null ? void 0 : M.wind_wave_height) == null ? void 0 : ne.at(S),
4806
+ degree: (fe = M == null ? void 0 : M.wind_wave_direction) == null ? void 0 : fe.at(S),
4807
+ bearing: ((xe = M == null ? void 0 : M.wind_wave_direction) == null ? void 0 : xe.at(S)) !== null ? (((be = M == null ? void 0 : M.wind_wave_direction) == null ? void 0 : be.at(S)) + 180) % 360 : null,
4808
+ period: (_e = M == null ? void 0 : M.wind_wave_period) == null ? void 0 : _e.at(S),
4809
+ peakPeriod: (B = M == null ? void 0 : M.wind_wave_peak_period) == null ? void 0 : B.at(S)
4810
4810
  }
4811
4811
  },
4812
4812
  current: {
4813
- speed: (ze = z == null ? void 0 : z.ocean_current_velocity) == null ? void 0 : ze.at(P),
4814
- kts: (Le = z == null ? void 0 : z.ocean_current_velocity) == null ? void 0 : Le.at(P),
4815
- degree: (Pe = z == null ? void 0 : z.ocean_current_direction) == null ? void 0 : Pe.at(P),
4816
- bearing: ((Ee = z == null ? void 0 : z.ocean_current_direction) == null ? void 0 : Ee.at(P)) ?? null
4813
+ speed: (ke = M == null ? void 0 : M.ocean_current_velocity) == null ? void 0 : ke.at(S),
4814
+ kts: (Le = M == null ? void 0 : M.ocean_current_velocity) == null ? void 0 : Le.at(S),
4815
+ degree: (De = M == null ? void 0 : M.ocean_current_direction) == null ? void 0 : De.at(S),
4816
+ bearing: ((Be = M == null ? void 0 : M.ocean_current_direction) == null ? void 0 : Be.at(S)) ?? null
4817
4817
  },
4818
- sst: (He = z == null ? void 0 : z.sea_surface_temperature) == null ? void 0 : He.at(P),
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, ue == null ? void 0 : ue.wind), De.current.direction = this.degree2Direction(De.current.degree), Object.assign(Me[Se], De), Se++;
4818
+ sst: (ze = M == null ? void 0 : M.sea_surface_temperature) == null ? void 0 : ze.at(S),
4819
+ height: (Ie = M == null ? void 0 : M.sea_level_height_msl) == null ? void 0 : Ie.at(S)
4820
+ }, Me.wave = this.parseWave(Me.wave, Ae == null ? void 0 : Ae.wind), Me.current.direction = this.degree2Direction(Me.current.degree), Object.assign(Se[Te], Me), Te++;
4821
4821
  }
4822
4822
  }
4823
4823
  }
4824
- return Me;
4824
+ return Se;
4825
4825
  }
4826
4826
  static toLegacy(e) {
4827
4827
  var t, r, i, s, n, l, c, d, h, p;
@@ -4846,86 +4846,86 @@ class ht {
4846
4846
  };
4847
4847
  }
4848
4848
  static pickDaily(e, t) {
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
- 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
- if (ze.isBetween(Ee, He, "millisecond", "[]")) {
4852
- let oe, me;
4853
- const H = ze.diff(Ee, "d", !1);
4849
+ var r, i, s, n, l, c, d, h, p, v, x, E, f, I, _, A, w, m, L, u, b, z, D, N, H, j, G, W, ce, re, de, we, pe, ve, me, U, V, ye, ne, fe, xe, be, _e, B;
4850
+ const ke = typeof t == "string" ? ae(t) : t, Le = e == null ? void 0 : e.weather, De = e == null ? void 0 : e.marine, Be = ae((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)), ze = ae((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)), Ie = [];
4851
+ if (ke.isBetween(Be, ze, "millisecond", "[]")) {
4852
+ let ie, J;
4853
+ const P = ke.diff(Be, "d", !1);
4854
4854
  if (Le)
4855
- for (const Be of Le) {
4856
- const K = Be.daily;
4857
- oe = {
4858
- code: (d = K.weather_code) == null ? void 0 : d.at(H),
4855
+ for (const Ce of Le) {
4856
+ const K = Ce.daily;
4857
+ ie = {
4858
+ code: (d = K.weather_code) == null ? void 0 : d.at(P),
4859
4859
  temp: {
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)
4860
+ max: (h = K.temperature_2m_max) == null ? void 0 : h.at(P),
4861
+ min: (p = K.temperature_2m_min) == null ? void 0 : p.at(P),
4862
+ mean: (v = K.temperature_2m_mean) == null ? void 0 : v.at(P)
4863
4863
  },
4864
4864
  apparentTemp: {
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)
4865
+ max: (x = K.apparent_temperature_max) == null ? void 0 : x.at(P),
4866
+ min: (E = K.apparent_temperature_min) == null ? void 0 : E.at(P)
4867
4867
  },
4868
4868
  precip: {
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)
4869
+ sum: (f = K.precipitation_sum) == null ? void 0 : f.at(P),
4870
+ rainSum: (I = K.rain_sum) == null ? void 0 : I.at(P),
4871
+ snowfallSum: (_ = K.snowfall_sum) == null ? void 0 : _.at(P),
4872
+ showersSum: (A = K.showers_sum) == null ? void 0 : A.at(P),
4873
+ hours: (w = K.precipitation_hours) == null ? void 0 : w.at(P),
4874
+ probability: (m = K.precipitation_probability_max) == null ? void 0 : m.at(P)
4875
4875
  },
4876
4876
  rh: {
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)
4877
+ max: (L = K.relative_humidity_2m_max) == null ? void 0 : L.at(P),
4878
+ min: (u = K.relative_humidity_2m_min) == null ? void 0 : u.at(P),
4879
+ mean: (b = K.relative_humidity_2m_mean) == null ? void 0 : b.at(P)
4880
4880
  },
4881
4881
  wind: {
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
4882
+ speed: (z = K.wind_speed_10m_max) == null ? void 0 : z.at(P),
4883
+ kts: (D = K.wind_speed_10m_max) == null ? void 0 : D.at(P),
4884
+ degree: (N = K.wind_direction_10m_dominant) == null ? void 0 : N.at(P),
4885
+ gusts: (H = K.wind_gusts_10m_max) == null ? void 0 : H.at(P),
4886
+ bearing: ((j = K.wind_direction_10m_dominant) == null ? void 0 : j.at(P)) !== null ? (((G = K.wind_direction_10m_dominant) == null ? void 0 : G.at(P)) + 180) % 360 : null
4887
4887
  }
4888
4888
  };
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
- model: Be.model,
4893
- weather: { ...oe }
4889
+ const { name: Z, url: Se, bg: S } = this.parseWeatherCode(ie.code, !0);
4890
+ ie.name = Z, ie.url = Se, ie.bg = S, ie.wind.scale = this.beaufort(this.kts2ms(ie.wind.kts)), ie.wind.direction = this.degree2Direction(ie.wind.degree), Ie.push({
4891
+ utc: Be.add(P, "d").utc().format(),
4892
+ model: Ce.model,
4893
+ weather: { ...ie }
4894
4894
  });
4895
4895
  }
4896
- if (Pe) {
4897
- let Be = 0;
4898
- for (const K of Pe) {
4899
- const q = K.daily;
4900
- me = {
4896
+ if (De) {
4897
+ let Ce = 0;
4898
+ for (const K of De) {
4899
+ const Z = K.daily;
4900
+ J = {
4901
4901
  wave: {
4902
4902
  sig: {
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
4903
+ height: (W = Z.wave_height_max) == null ? void 0 : W.at(P),
4904
+ degree: (ce = Z.wave_direction_dominant) == null ? void 0 : ce.at(P),
4905
+ period: (re = Z.wave_period_max) == null ? void 0 : re.at(P),
4906
+ bearing: ((de = Z.wave_direction_dominant) == null ? void 0 : de.at(P)) !== null ? (((we = Z.wave_direction_dominant) == null ? void 0 : we.at(P)) + 180) % 360 : null
4907
4907
  },
4908
4908
  swell: {
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),
4909
+ height: (pe = Z.swell_wave_height_max) == null ? void 0 : pe.at(P),
4910
+ degree: (ve = Z.swell_wave_direction_dominant) == null ? void 0 : ve.at(P),
4911
+ period: (me = Z.swell_wave_period_max) == null ? void 0 : me.at(P),
4912
+ peakPeriod: (U = Z.swell_wave_peak_period_max) == null ? void 0 : U.at(P),
4913
4913
  // bearing: daily.swell_wave_direction_dominant?.at(day) !== null ? (daily.swell_wave_direction_dominant?.at(day) + 180) % 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
4914
+ bearing: ((V = Z.swell_wave_direction_dominant) == null ? void 0 : V.at(P)) !== null ? ((ye = Z.swell_wave_direction_dominant) == null ? void 0 : ye.at(P)) % 360 : null
4915
4915
  },
4916
4916
  wd: {
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
4917
+ height: (ne = Z.wind_wave_height_max) == null ? void 0 : ne.at(P),
4918
+ degree: (fe = Z.wind_wave_direction_dominant) == null ? void 0 : fe.at(P),
4919
+ period: (xe = Z.wind_wave_period_max) == null ? void 0 : xe.at(P),
4920
+ peakPeriod: (be = Z.wind_wave_peak_period_max) == null ? void 0 : be.at(P),
4921
+ bearing: ((_e = Z.wind_wave_direction_dominant) == null ? void 0 : _e.at(P)) !== null ? (((B = Z.wind_wave_direction_dominant) == null ? void 0 : B.at(P)) + 180) % 360 : null
4922
4922
  }
4923
4923
  }
4924
- }, me.wave = this.parseWave(me.wave, oe == null ? void 0 : oe.wind), Object.assign(ke[Be], me), Be++;
4924
+ }, J.wave = this.parseWave(J.wave, ie == null ? void 0 : ie.wind), Object.assign(Ie[Ce], J), Ce++;
4925
4925
  }
4926
4926
  }
4927
4927
  }
4928
- return ke;
4928
+ return Ie;
4929
4929
  }
4930
4930
  static parseWave(e, t) {
4931
4931
  if (e.sig.direction = this.degree2Direction(e.sig.degree), e.swell.direction = this.degree2Direction(e.swell.degree), e.wd.direction = this.degree2Direction(e.wd.degree), e.sig.scale = this.douglas(e.sig.height), e.swell.scale = this.douglas(e.swell.height), e.wd.scale = this.douglas(e.wd.height), e.sig.height === 0) {
@@ -5371,9 +5371,9 @@ const Oa = {
5371
5371
  showTropicals: !1,
5372
5372
  activeTropicals: void 0,
5373
5373
  activeTropicalsMarker: void 0,
5374
- empty: T.featureCollection([]),
5374
+ empty: Q.featureCollection([]),
5375
5375
  circleSource: "circle-source",
5376
- circleSourceData: T.featureCollection([]),
5376
+ circleSourceData: Q.featureCollection([]),
5377
5377
  circleLayer: "tropical-circle-layer",
5378
5378
  labelMarkers: []
5379
5379
  };
@@ -5382,7 +5382,7 @@ const Oa = {
5382
5382
  computeTime() {
5383
5383
  return function(a) {
5384
5384
  if (a) {
5385
- const e = ee(a).utcOffset(this.timeZone), t = this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
5385
+ const e = ae(a).utcOffset(this.timeZone), t = this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
5386
5386
  return `${e.format("MMM-DD/HHmm")} [ UTC${t} ] ( ${e == null ? void 0 : e.fromNow()} )`;
5387
5387
  }
5388
5388
  return "-";
@@ -5433,7 +5433,7 @@ const Oa = {
5433
5433
  var e, t;
5434
5434
  (((t = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : t.features) || []).forEach((r) => {
5435
5435
  var i, s;
5436
- ((i = r.geometry) == null ? void 0 : i.type) === "Point" && ((s = r.properties) != null && s.important) && (r.properties.format = ee(r.properties.date).utcOffset(this.timeZone).format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`));
5436
+ ((i = r.geometry) == null ? void 0 : i.type) === "Point" && ((s = r.properties) != null && s.important) && (r.properties.format = ae(r.properties.date).utcOffset(this.timeZone).format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`));
5437
5437
  }), this.handleInit();
5438
5438
  },
5439
5439
  handleInit() {
@@ -5467,7 +5467,7 @@ const Oa = {
5467
5467
  ));
5468
5468
  },
5469
5469
  handleRender() {
5470
- var a, e, t, r, i, s, n, l, c, d, h, p, b;
5470
+ var a, e, t, r, i, s, n, l, c, d, h, p, v;
5471
5471
  if (!this.map)
5472
5472
  setTimeout(() => {
5473
5473
  this.handleRender();
@@ -5475,8 +5475,8 @@ const Oa = {
5475
5475
  else {
5476
5476
  if (this.tropicals) {
5477
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, {
5478
+ let f = 0, I = 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), I = (/* @__PURE__ */ new Date()).valueOf() - (E + f), console.log("[tropicals] update elapsed: ", I, ", total: ", f += I)) : (this.map.addSource(this.source, {
5480
5480
  type: "geojson",
5481
5481
  data: (r = this.tropicals) != null && r.active ? (i = this.tropicals) == null ? void 0 : i.data : this.empty
5482
5482
  }), this.map.addLayer({
@@ -5573,8 +5573,8 @@ const Oa = {
5573
5573
  ],
5574
5574
  "text-halo-width": 4
5575
5575
  }
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);
5576
+ }), I = (/* @__PURE__ */ new Date()).valueOf() - (E + f), console.log("[tropical] add elapsed: ", I, ", total: ", f += I)), (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), I = (/* @__PURE__ */ new Date()).valueOf() - (E + f), console.log("[tropical] update elapsed: ", I, ", total: ", f += I);
5578
5578
  else {
5579
5579
  if (this.map.addSource(this.clusterSource, {
5580
5580
  type: "geojson",
@@ -5616,29 +5616,7 @@ const Oa = {
5616
5616
  "#fff"
5617
5617
  ]
5618
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");
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
5619
+ }), this.fromTropicalReport)
5642
5620
  this.map.addLayer({
5643
5621
  id: this.pointLabelLayer,
5644
5622
  type: "symbol",
@@ -5656,6 +5634,31 @@ const Oa = {
5656
5634
  "text-halo-width": 1
5657
5635
  }
5658
5636
  });
5637
+ else {
5638
+ const _ = (h = this.tropicals.data.features) == null ? void 0 : h.filter((u) => u.geometry.type === "Point" && u.properties.type === "forecast");
5639
+ let A = 0, w = 0, m = 0, L = (v = (p = this.findClosestToNumber(_, "hour", 12)) == null ? void 0 : p.properties) == null ? void 0 : v.hour;
5640
+ _.forEach((u, b) => {
5641
+ var N, H, j, G, W, ce, re, de, we, pe, ve, me, U, V, ye, ne, fe, xe, be, _e, B, ke, Le, De, Be, ze, Ie;
5642
+ let z;
5643
+ const D = this.findClosestToNumber(_, "hour", L + A * 24);
5644
+ if (D && ((N = D == null ? void 0 : D.properties) == null ? void 0 : N.hour) === ((H = u.properties) == null ? void 0 : H.hour) && (z = D), z) {
5645
+ let ie = 0, J = "tropical-marker-box", P = "tropical-marker-line";
5646
+ J = ((W = (G = (j = z.properties) == null ? void 0 : j.wind) == null ? void 0 : G.en) == null ? void 0 : W.toUpperCase()) === "SUPER TY" ? J + " supper" : J + " normal", P = ((de = (re = (ce = z.properties) == null ? void 0 : ce.wind) == null ? void 0 : re.en) == null ? void 0 : de.toUpperCase()) === "SUPER TY" ? P + " supper" : P + " normal", ((pe = (we = z.properties) == null ? void 0 : we.movement) == null ? void 0 : pe.deg) >= 0 && ((me = (ve = z.properties) == null ? void 0 : ve.movement) == null ? void 0 : me.deg) <= 45 || ((V = (U = z.properties) == null ? void 0 : U.movement) == null ? void 0 : V.deg) >= 135 && ((ne = (ye = z.properties) == null ? void 0 : ye.movement) == null ? void 0 : ne.deg) <= 215 || ((xe = (fe = z.properties) == null ? void 0 : fe.movement) == null ? void 0 : xe.deg) >= 315 && ((_e = (be = z.properties) == null ? void 0 : be.movement) == null ? void 0 : _e.deg) <= 360 ? (ie = m % 2 === 0 ? [100, 0] : [-100, 0], J = m % 2 === 0 ? J + " right" : J + " left", P = m % 2 === 0 ? P + " vertical right" : P + " vertical left", m = m + 1) : (ie = w % 2 === 0 ? [60, 40] : [60, -40], J = w % 2 === 0 ? J + " right" : J + " left", P = w % 2 === 0 ? P + " align bottom" : P + " align top", w = w + 1);
5647
+ const Ce = document.createElement("div");
5648
+ Ce.className = J, Ce.innerHTML = `
5649
+ <div style="">
5650
+ <span>${((B = u.properties) == null ? void 0 : B.format) || "-"}</span>
5651
+ <span> [${((De = (Le = (ke = u.properties) == null ? void 0 : ke.wind) == null ? void 0 : Le.en) == null ? void 0 : De.toUpperCase()) || "-"}]</span>
5652
+ </div>
5653
+ <div>
5654
+ <span>BF${((ze = (Be = u.properties) == null ? void 0 : Be.wind) == null ? void 0 : ze.bf) || "-"}</span> /
5655
+ <span>${((Ie = u.properties) == null ? void 0 : Ie.pressure) || "-"} kPa</span>
5656
+ </div>
5657
+ <div class="${P}"></div>
5658
+ `, this.labelMarkers.push(new Re.Marker(Ce).setLngLat(u.geometry.coordinates).setOffset(ie).addTo(this.map)), A = A + 1;
5659
+ }
5660
+ });
5661
+ }
5659
5662
  this.map.addLayer({
5660
5663
  id: this.historyPointCircleLayer + "-border",
5661
5664
  type: "circle",
@@ -5717,7 +5720,7 @@ const Oa = {
5717
5720
  "text-halo-color": "#0033ff",
5718
5721
  "text-halo-width": 4
5719
5722
  }
5720
- }), B = (/* @__PURE__ */ new Date()).valueOf() - (E + A), console.log("[tropical] add elapsed: ", B, ", total: ", A += B);
5723
+ }), I = (/* @__PURE__ */ new Date()).valueOf() - (E + f), console.log("[tropical] add elapsed: ", I, ", total: ", f += I);
5721
5724
  }
5722
5725
  }
5723
5726
  this.handleDrawCircle();
@@ -5741,14 +5744,14 @@ const Oa = {
5741
5744
  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 = []);
5742
5745
  },
5743
5746
  handleDateChange() {
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]);
5747
- ve.forEach((Y) => {
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, {
5747
+ var a, e, t, r, i, s, n, l, c, d, h, p, v, x, E, f, I, _, A, w, m, L, u, b, z, D, N, H, j, G, W, ce;
5748
+ 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) {
5749
+ const re = ae(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), de = ae.utc().add(1, "hour").set({ minute: 0, second: 0, millisecond: 0 }), we = re.isBefore(de) && de.diff(re, "h") < 2 ? de.format() : re.format(), pe = this.interpolateData.filter((U) => U.properties.date === we && !U.properties.disabled), ve = this.handleComputePolygons(pe), me = Q.featureCollection([...pe]);
5750
+ ve.forEach((U) => {
5751
+ me.features.push(U);
5752
+ }), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(me) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
5750
5753
  type: "geojson",
5751
- data: fe
5754
+ data: me
5752
5755
  }), (s = this.map) == null || s.addLayer({
5753
5756
  id: this.interpolateLineLayer,
5754
5757
  type: "line",
@@ -5760,17 +5763,17 @@ const Oa = {
5760
5763
  "line-width": 1
5761
5764
  }
5762
5765
  })), this.interpolateMarkers = [];
5763
- for (const Y of se)
5764
- if (!Y.properties.disabled) {
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"
5766
+ for (const U of pe)
5767
+ if (!U.properties.disabled) {
5768
+ let V = "#f44336";
5769
+ ((l = (n = U.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((d = (c = U.properties) == null ? void 0 : c.wind) != null && d.kts) ? V = "#03f869" : ((p = (h = U.properties) == null ? void 0 : h.wind) == null ? void 0 : p.kts) >= 32 && ((x = (v = U.properties) == null ? void 0 : v.wind) == null ? void 0 : x.kts) < 47 ? V = "#f2f202" : ((f = (E = U.properties) == null ? void 0 : E.wind) == null ? void 0 : f.kts) >= 47 && ((_ = (I = U.properties) == null ? void 0 : I.wind) == null ? void 0 : _.kts) < 63 ? V = "#ff9100" : ((w = (A = U.properties) == null ? void 0 : A.wind) == null ? void 0 : w.kts) >= 63 && ((L = (m = U.properties) == null ? void 0 : m.wind) == null ? void 0 : L.kts) < 79 ? V = "#f44336" : ((b = (u = U.properties) == null ? void 0 : u.wind) == null ? void 0 : b.kts) >= 79 && ((D = (z = U.properties) == null ? void 0 : z.wind) == null ? void 0 : D.kts) < 94 ? V = "#f903d0" : ((H = (N = U.properties) == null ? void 0 : N.wind) == null ? void 0 : H.kts) >= 94 ? V = "#8702f9" : V = "#f44336";
5770
+ const ye = `<svg t="1719918955501"
5768
5771
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
5769
5772
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
5770
5773
  <path
5771
5774
  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"
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}"
5775
+ fill="${V}" p-id="18383"></path>
5776
+ <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="${V}"
5774
5777
  p-id="18384"></path>
5775
5778
  <path
5776
5779
  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"
@@ -5778,16 +5781,16 @@ const Oa = {
5778
5781
  <path
5779
5782
  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"
5780
5783
  fill="#ffffff" p-id="18386"></path>
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);
5784
+ </svg>`, ne = document.createElement("div");
5785
+ ne.className = "hurricane-hourly-marker", ne.innerHTML = `<div class="${U.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${ye}</div>`;
5786
+ const fe = new Re.Marker(ne).setLngLat(U.geometry.coordinates).addTo(this.map);
5787
+ this.interpolateMarkers.push(fe), (G = (j = this.map) == null ? void 0 : j.getSource(this.circleSource)) == null || G.setData(this.circleSourceData);
5785
5788
  }
5786
5789
  } else
5787
- (W = this.map) != null && W.getSource(this.interpolateSource) && ((he = this.map) == null || he.getSource(this.interpolateSource).setData(this.empty));
5790
+ (W = this.map) != null && W.getSource(this.interpolateSource) && ((ce = this.map) == null || ce.getSource(this.interpolateSource).setData(this.empty));
5788
5791
  },
5789
5792
  handleClick(a) {
5790
- var s, n, l, c, d, h, p, b;
5793
+ var s, n, l, c, d, h, p, v;
5791
5794
  const e = a.features[0], t = (n = (s = this.tropicals) == null ? void 0 : s.data) == null ? void 0 : n.features.filter(
5792
5795
  (x) => {
5793
5796
  var E;
@@ -5803,7 +5806,7 @@ const Oa = {
5803
5806
  name: (d = e == null ? void 0 : e.properties) == null ? void 0 : d.name,
5804
5807
  forecasts: t.map((x) => x.properties),
5805
5808
  history: (h = r[0]) == null ? void 0 : h.properties,
5806
- showCircle: (b = (p = t[0]) == null ? void 0 : p.properties) == null ? void 0 : b.showCircle
5809
+ showCircle: (v = (p = t[0]) == null ? void 0 : p.properties) == null ? void 0 : v.showCircle
5807
5810
  }, this.showTropicals = !0;
5808
5811
  const i = document.getElementById("idm-tropical-gl3");
5809
5812
  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);
@@ -5816,7 +5819,7 @@ const Oa = {
5816
5819
  d.properties.category === e && (d.properties.disabled = a.disabled);
5817
5820
  }), this.interpolateData.forEach((d) => {
5818
5821
  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();
5822
+ }), (n = (s = this.map) == null ? void 0 : s.getSource(this.source)) == null || n.setData(Q.featureCollection(t)), (c = (l = this.map) == null ? void 0 : l.getSource(this.clusterSource)) == null || c.setData(Q.featureCollection(t)), this.handleDateChange();
5820
5823
  },
5821
5824
  handleStrikeProbability(a) {
5822
5825
  this.$emit("tropicalProbability", a);
@@ -5876,22 +5879,22 @@ const Oa = {
5876
5879
  let c;
5877
5880
  switch (n) {
5878
5881
  case "ne":
5879
- c = T.lineArc(a, l, 0, 90, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
5882
+ c = Q.lineArc(a, l, 0, 90, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
5880
5883
  break;
5881
5884
  case "se":
5882
- c = T.lineArc(a, l, 90, 180, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
5885
+ c = Q.lineArc(a, l, 90, 180, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
5883
5886
  break;
5884
5887
  case "sw":
5885
- c = T.lineArc(a, l, 180, 270, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
5888
+ c = Q.lineArc(a, l, 180, 270, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
5886
5889
  break;
5887
5890
  case "nw":
5888
- c = T.lineArc(a, l, 270, 360, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
5891
+ c = Q.lineArc(a, l, 270, 360, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
5889
5892
  break;
5890
5893
  }
5891
5894
  r.push(...(s = c == null ? void 0 : c.geometry) == null ? void 0 : s.coordinates);
5892
5895
  }
5893
- const i = T.lineString(r);
5894
- return T.lineToPolygon(i, { properties: t });
5896
+ const i = Q.lineString(r);
5897
+ return Q.lineToPolygon(i, { properties: t });
5895
5898
  }
5896
5899
  }
5897
5900
  }, Ra = {
@@ -5917,26 +5920,26 @@ const Oa = {
5917
5920
  style: { "justify-content": "flex-start" }
5918
5921
  }, ai = { class: "forecast-models" }, ii = ["onClick"], ri = { class: "more" };
5919
5922
  function si(a, e, t, r, i, s) {
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, [
5923
+ var n, l, c, d, h, p, v, x, E, f, I, _, A, w, m, L, u, b, z;
5924
+ return Fe((g(), y("div", Ra, [
5922
5925
  o("div", ja, [
5923
5926
  o("div", {
5924
5927
  class: "iconfont close-btn",
5925
5928
  onClick: e[0] || (e[0] = (D) => i.showTropicals = !1)
5926
5929
  }, ""),
5927
5930
  o("div", Wa, [
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)
5931
+ (l = (n = i.activeTropicals) == null ? void 0 : n.history) != null && l.level ? (g(), y("span", Ga, k((d = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : d.level) + " , ", 1)) : q("", !0),
5932
+ ue(k((h = i.activeTropicals) == null ? void 0 : h.name), 1)
5930
5933
  ]),
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)
5934
+ o("div", Ua, " Last update: " + k(s.computeTime(((v = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : v.updated) || ((f = (E = (x = i.activeTropicals) == null ? void 0 : x.forecasts) == null ? void 0 : E.filter((D) => !D.disabled)[0]) == null ? void 0 : f.date))), 1)
5932
5935
  ]),
5933
5936
  o("div", Ya, [
5934
5937
  o("div", Ka, [
5935
5938
  o("div", Xa, [
5936
5939
  o("div", Ja, [
5937
5940
  e[3] || (e[3] = o("label", null, "Wind speed : ", -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)
5941
+ o("span", null, k(((_ = (I = i.activeTropicals) == null ? void 0 : I.history) == null ? void 0 : _.kts) || "-") + " [kts]", 1),
5942
+ o("span", null, ", BF " + k(s.computeBF(((w = (A = i.activeTropicals) == null ? void 0 : A.history) == null ? void 0 : w.kts) || 0)), 1)
5940
5943
  ]),
5941
5944
  o("div", qa, [
5942
5945
  e[4] || (e[4] = o("label", null, "Pressure : ", -1)),
@@ -5946,30 +5949,30 @@ function si(a, e, t, r, i, s) {
5946
5949
  o("div", Va, [
5947
5950
  o("div", Za, [
5948
5951
  e[5] || (e[5] = o("label", null, "Move Speed: ", -1)),
5949
- o("span", null, k((y = s.computeMovement(i.activeTropicals)) == null ? void 0 : y.kts) + " [kts]", 1)
5952
+ o("span", null, k((u = s.computeMovement(i.activeTropicals)) == null ? void 0 : u.kts) + " [kts]", 1)
5950
5953
  ]),
5951
5954
  o("div", $a, [
5952
5955
  e[6] || (e[6] = o("label", null, "Move Dir: ", -1)),
5953
- o("span", null, k((w = s.computeMovement(i.activeTropicals)) == null ? void 0 : w.deg) + " [°]", 1)
5956
+ o("span", null, k((b = s.computeMovement(i.activeTropicals)) == null ? void 0 : b.deg) + " [°]", 1)
5954
5957
  ])
5955
5958
  ]),
5956
5959
  o("div", ei, [
5957
5960
  o("div", ti, [
5958
5961
  e[7] || (e[7] = o("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
5959
5962
  o("div", ai, [
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
+ (g(!0), y($, null, te((z = i.activeTropicals) == null ? void 0 : z.forecasts, (D, N) => {
5964
+ var H, j, G, W;
5965
+ return g(), y("div", {
5963
5966
  key: N,
5964
- class: Z([
5967
+ class: ee([
5965
5968
  "model",
5966
5969
  D.disabled ? "" : "active",
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" : ""
5970
+ N > 0 && N < ((j = (H = i.activeTropicals) == null ? void 0 : H.forecasts) == null ? void 0 : j.length) - 1 && ((W = (G = i.activeTropicals) == null ? void 0 : G.forecasts) == null ? void 0 : W.length) > 2 ? "center-child" : ""
5968
5971
  ]),
5969
- onClick: (he) => s.handleForecastToggle(D)
5972
+ onClick: (ce) => s.handleForecastToggle(D)
5970
5973
  }, [
5971
5974
  o("span", {
5972
- class: Z(D.model)
5975
+ class: ee(D.model)
5973
5976
  }, k(D.model), 3)
5974
5977
  ], 10, ii);
5975
5978
  }), 128))
@@ -5979,12 +5982,12 @@ function si(a, e, t, r, i, s) {
5979
5982
  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))
5980
5983
  ]),
5981
5984
  o("div", ri, [
5982
- t.permission & i.helper.LEVEL.Supper ? (u(), g("div", {
5985
+ t.permission & i.helper.LEVEL.Supper ? (g(), y("div", {
5983
5986
  key: 0,
5984
5987
  class: "button",
5985
5988
  style: { "margin-right": "10px" },
5986
5989
  onClick: e[1] || (e[1] = (D) => s.handleNotification(i.activeTropicals))
5987
- }, "Notify")) : J("", !0),
5990
+ }, "Notify")) : q("", !0),
5988
5991
  o("div", {
5989
5992
  class: "button",
5990
5993
  onClick: e[2] || (e[2] = (D) => s.handleStrikeProbability(i.activeTropicals))
@@ -5995,7 +5998,7 @@ function si(a, e, t, r, i, s) {
5995
5998
  [Oe, i.showTropicals && !a.$attrs.hideTropicalsLegend]
5996
5999
  ]);
5997
6000
  }
5998
- const dt = /* @__PURE__ */ U(Oa, [["render", si]]);
6001
+ const dt = /* @__PURE__ */ Y(Oa, [["render", si]]);
5999
6002
  const oi = {
6000
6003
  name: "IdmPrecip3h",
6001
6004
  props: {
@@ -6084,7 +6087,7 @@ const oi = {
6084
6087
  [1, "rgba(197,5,58,0.8)"]
6085
6088
  ];
6086
6089
  this.rampColor = this.webgl.setup(this.context, a);
6087
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
6090
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, he.vertexSchema, he.fragmentSchema);
6088
6091
  this.program = e, this.aPositionBuffer = t;
6089
6092
  }
6090
6093
  },
@@ -6100,10 +6103,10 @@ const oi = {
6100
6103
  }, ni = { key: 0 };
6101
6104
  function li(a, e, t, r, i, s) {
6102
6105
  var n;
6103
- return (n = t.factor) != null && n.active ? (u(), g("div", ni, [
6106
+ return (n = t.factor) != null && n.active ? (g(), y("div", ni, [
6104
6107
  o("div", {
6105
6108
  class: "legend-bars flex-center",
6106
- style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
6109
+ style: ge([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
6107
6110
  }, e[0] || (e[0] = [
6108
6111
  o("span", null, "mm", -1),
6109
6112
  o("span", null, "1.5", -1),
@@ -6114,9 +6117,9 @@ function li(a, e, t, r, i, s) {
6114
6117
  o("span", null, "20", -1),
6115
6118
  o("span", null, "30", -1)
6116
6119
  ]), 4)
6117
- ])) : J("", !0);
6120
+ ])) : q("", !0);
6118
6121
  }
6119
- const hi = /* @__PURE__ */ U(oi, [["render", li], ["__scopeId", "data-v-9708a7a3"]]);
6122
+ const hi = /* @__PURE__ */ Y(oi, [["render", li], ["__scopeId", "data-v-9708a7a3"]]);
6120
6123
  const ci = {
6121
6124
  name: "IdmVisibility",
6122
6125
  props: {
@@ -6198,7 +6201,7 @@ const ci = {
6198
6201
  [1, "rgba(144,144,144,0)"]
6199
6202
  ];
6200
6203
  this.rampColor = this.webgl.setup(this.context, a);
6201
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
6204
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, he.vertexSchema, he.fragmentSchema);
6202
6205
  this.program = e, this.aPositionBuffer = t;
6203
6206
  }
6204
6207
  },
@@ -6214,10 +6217,10 @@ const ci = {
6214
6217
  }, di = { key: 0 };
6215
6218
  function pi(a, e, t, r, i, s) {
6216
6219
  var n;
6217
- return (n = t.factor) != null && n.active ? (u(), g("div", di, [
6220
+ return (n = t.factor) != null && n.active ? (g(), y("div", di, [
6218
6221
  o("div", {
6219
6222
  class: "legend-bars flex-center",
6220
- style: de([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
6223
+ style: ge([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
6221
6224
  }, e[0] || (e[0] = [
6222
6225
  o("span", null, "nm", -1),
6223
6226
  o("span", null, "0", -1),
@@ -6226,9 +6229,9 @@ function pi(a, e, t, r, i, s) {
6226
6229
  o("span", null, "3", -1),
6227
6230
  o("span", null, "9", -1)
6228
6231
  ]), 4)
6229
- ])) : J("", !0);
6232
+ ])) : q("", !0);
6230
6233
  }
6231
- const mi = /* @__PURE__ */ U(ci, [["render", pi], ["__scopeId", "data-v-f7b2fb08"]]);
6234
+ const mi = /* @__PURE__ */ Y(ci, [["render", pi], ["__scopeId", "data-v-f7b2fb08"]]);
6232
6235
  const ui = {
6233
6236
  name: "IdmWaterTemp",
6234
6237
  props: {
@@ -6318,7 +6321,7 @@ const ui = {
6318
6321
  //
6319
6322
  ];
6320
6323
  this.rampColor = this.webgl.setup(this.context, a);
6321
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
6324
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, he.vertexSchema, he.fragmentSchema);
6322
6325
  this.program = e, this.aPositionBuffer = t;
6323
6326
  }
6324
6327
  },
@@ -6334,10 +6337,10 @@ const ui = {
6334
6337
  }, gi = { key: 0 };
6335
6338
  function yi(a, e, t, r, i, s) {
6336
6339
  var n;
6337
- return (n = t.factor) != null && n.active ? (u(), g("div", gi, [
6340
+ return (n = t.factor) != null && n.active ? (g(), y("div", gi, [
6338
6341
  o("div", {
6339
6342
  class: "legend-bars flex-center",
6340
- style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
6343
+ style: ge([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
6341
6344
  }, e[0] || (e[0] = [
6342
6345
  o("span", null, "°C", -1),
6343
6346
  o("span", null, "0", -1),
@@ -6346,9 +6349,9 @@ function yi(a, e, t, r, i, s) {
6346
6349
  o("span", null, "30", -1),
6347
6350
  o("span", null, "40", -1)
6348
6351
  ]), 4)
6349
- ])) : J("", !0);
6352
+ ])) : q("", !0);
6350
6353
  }
6351
- const fi = /* @__PURE__ */ U(ui, [["render", yi], ["__scopeId", "data-v-7521f582"]]);
6354
+ const fi = /* @__PURE__ */ Y(ui, [["render", yi], ["__scopeId", "data-v-7521f582"]]);
6352
6355
  const Ai = {
6353
6356
  name: "IdmTemp",
6354
6357
  props: {
@@ -6441,7 +6444,7 @@ const Ai = {
6441
6444
  [1, "rgb(138, 43, 10)"]
6442
6445
  ];
6443
6446
  this.rampColor = this.webgl.setup(this.context, a);
6444
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, le.vertexSchema, le.fragmentSchema);
6447
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, he.vertexSchema, he.fragmentSchema);
6445
6448
  this.program = e, this.aPositionBuffer = t;
6446
6449
  }
6447
6450
  },
@@ -6457,10 +6460,10 @@ const Ai = {
6457
6460
  }, wi = { key: 0 };
6458
6461
  function vi(a, e, t, r, i, s) {
6459
6462
  var n;
6460
- return (n = t.factor) != null && n.active ? (u(), g("div", wi, [
6463
+ return (n = t.factor) != null && n.active ? (g(), y("div", wi, [
6461
6464
  o("div", {
6462
6465
  class: "legend-bars flex-center",
6463
- style: de([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
6466
+ style: ge([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
6464
6467
  }, e[0] || (e[0] = [
6465
6468
  o("span", null, "°C", -1),
6466
6469
  o("span", null, "-20", -1),
@@ -6471,15 +6474,15 @@ function vi(a, e, t, r, i, s) {
6471
6474
  o("span", null, "30", -1),
6472
6475
  o("span", null, "40", -1)
6473
6476
  ]), 4)
6474
- ])) : J("", !0);
6477
+ ])) : q("", !0);
6475
6478
  }
6476
- const bi = /* @__PURE__ */ U(Ai, [["render", vi], ["__scopeId", "data-v-25daaa82"]]);
6479
+ const bi = /* @__PURE__ */ Y(Ai, [["render", vi], ["__scopeId", "data-v-25daaa82"]]);
6477
6480
  /*! Element Plus Icons Vue v2.3.1 */
6478
6481
  var Li = /* @__PURE__ */ ft({
6479
6482
  name: "LocationFilled",
6480
6483
  __name: "location-filled",
6481
6484
  setup(a) {
6482
- return (e, t) => (u(), g("svg", {
6485
+ return (e, t) => (g(), y("svg", {
6483
6486
  xmlns: "http://www.w3.org/2000/svg",
6484
6487
  viewBox: "0 0 1024 1024"
6485
6488
  }, [
@@ -6583,8 +6586,8 @@ const _i = {
6583
6586
  var a;
6584
6587
  if (this.showMeteo && this.ts) {
6585
6588
  this.handleRender();
6586
- const e = ee();
6587
- ((a = ee(this.ts)) == null ? void 0 : a.diff(e, "d", !0)) >= 0 ? await this.fetchMeteoData(this.point, this.ts, 7) : await this.fetchHistoryData(this.point, this.ts), this.initTableData(this.meteoData);
6589
+ const e = ae();
6590
+ ((a = ae(this.ts)) == null ? void 0 : a.diff(e, "d", !0)) >= 0 ? await this.fetchMeteoData(this.point, this.ts, 7) : await this.fetchHistoryData(this.point, this.ts), this.initTableData(this.meteoData);
6588
6591
  }
6589
6592
  }
6590
6593
  },
@@ -6593,8 +6596,8 @@ const _i = {
6593
6596
  var a;
6594
6597
  if (this.showMeteo = !0, this.tideData = {}, this.meteoData = {}, this.showMeteo && this.ts) {
6595
6598
  this.handleRender();
6596
- const e = ee();
6597
- if (((a = ee(this.ts)) == null ? void 0 : a.diff(e, "d", !0)) >= 0 ? await this.fetchMeteoData(this.point, this.ts, 7) : await this.fetchHistoryData(this.point, this.ts), this.initTableData(this.meteoData), this.activeIndex === 4) {
6599
+ const e = ae();
6600
+ if (((a = ae(this.ts)) == null ? void 0 : a.diff(e, "d", !0)) >= 0 ? await this.fetchMeteoData(this.point, this.ts, 7) : await this.fetchHistoryData(this.point, this.ts), this.initTableData(this.meteoData), this.activeIndex === 4) {
6598
6601
  const r = $e.pickDailyExtremes(this.tideData, this.ts);
6599
6602
  (r == null ? void 0 : r.length) > 0 ? this.tideTableData = r : await this.fetchTidesData(this.point, this.ts, 7);
6600
6603
  }
@@ -6605,7 +6608,7 @@ const _i = {
6605
6608
  async handler() {
6606
6609
  var a;
6607
6610
  if (this.showMeteo && this.ts) {
6608
- const e = ee(), t = (a = ee(this.ts)) == null ? void 0 : a.diff(e, "d", !0), i = [0, 1, 2, 3, 4, 5, 6, 7].every((s) => {
6611
+ const e = ae(), t = (a = ae(this.ts)) == null ? void 0 : a.diff(e, "d", !0), i = [0, 1, 2, 3, 4, 5, 6, 7].every((s) => {
6609
6612
  var l;
6610
6613
  const n = Ye(this.ts).tz(this.positionGmt).add(3 * s, "h").format();
6611
6614
  return (l = Ke.pickHourly(this.meteoData, n)) == null ? void 0 : l[0];
@@ -6626,7 +6629,7 @@ const _i = {
6626
6629
  },
6627
6630
  computeHourZ() {
6628
6631
  return function(a) {
6629
- return a ? `${ee(a).utc().format("HH")}Z` : "-";
6632
+ return a ? `${ae(a).utc().format("HH")}Z` : "-";
6630
6633
  };
6631
6634
  },
6632
6635
  computeHourHmmLT() {
@@ -6636,24 +6639,24 @@ const _i = {
6636
6639
  },
6637
6640
  computeLat() {
6638
6641
  return function(a, e = 4) {
6639
- return ne.lat2pretty(a, e).pretty;
6642
+ return le.lat2pretty(a, e).pretty;
6640
6643
  };
6641
6644
  },
6642
6645
  computeLng() {
6643
6646
  return function(a, e = 4) {
6644
- return ne.lng2pretty(a, e).pretty;
6647
+ return le.lng2pretty(a, e).pretty;
6645
6648
  };
6646
6649
  },
6647
6650
  roundPrecision() {
6648
6651
  return function(a, e = 4) {
6649
- return isNaN(a) ? "-" : ne.roundPrecision(a, e);
6652
+ return isNaN(a) ? "-" : le.roundPrecision(a, e);
6650
6653
  };
6651
6654
  }
6652
6655
  },
6653
6656
  methods: {
6654
6657
  async fetchMeteoData(a, e, t) {
6655
6658
  this.loading = !0, this.meteoData = [];
6656
- let r = e ? ee(e).utc().format() : ee().utc().format();
6659
+ let r = e ? ae(e).utc().format() : ae().utc().format();
6657
6660
  const { weatherModels: i, marineModels: s } = Ke.autoPickMeteoModel(this.forecastModel);
6658
6661
  let n = {
6659
6662
  lat: a.lat,
@@ -6662,7 +6665,7 @@ const _i = {
6662
6665
  forecastDays: t ?? 7,
6663
6666
  weatherModels: i,
6664
6667
  marineModels: s
6665
- }, l = await Qe.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, n, {
6668
+ }, l = await He.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, n, {
6666
6669
  headers: {
6667
6670
  Authorization: this.token || this.defaultMeteoToken
6668
6671
  }
@@ -6671,7 +6674,7 @@ const _i = {
6671
6674
  },
6672
6675
  async fetchHistoryData(a, e) {
6673
6676
  this.loading = !0, this.meteoData = [];
6674
- const t = e ? ee(e).utc().format() : ee().utc().format(), { weatherModels: r, marineModels: i } = Ke.autoPickMeteoModel(this.forecastModel), s = {
6677
+ const t = e ? ae(e).utc().format() : ae().utc().format(), { weatherModels: r, marineModels: i } = Ke.autoPickMeteoModel(this.forecastModel), s = {
6675
6678
  lat: a.lat,
6676
6679
  lng: a.lng,
6677
6680
  datetime: t,
@@ -6679,7 +6682,7 @@ const _i = {
6679
6682
  pastDays: 1,
6680
6683
  weatherModels: r,
6681
6684
  marineModels: i
6682
- }, n = await Qe.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, s, {
6685
+ }, n = await He.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, s, {
6683
6686
  headers: {
6684
6687
  Authorization: this.token || this.defaultMeteoToken
6685
6688
  }
@@ -6688,8 +6691,8 @@ const _i = {
6688
6691
  },
6689
6692
  initTableData(a) {
6690
6693
  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;
6694
+ 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, ae(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(() => {
6695
+ var p, v, x, E, f, I, _, A, w, m, L, u, b, z, D, N, H, j, G, W, ce, re, de, we, pe, ve, me, U, V, ye, ne, fe, xe;
6693
6696
  if (!document.getElementById("meteoMainBox"))
6694
6697
  return !1;
6695
6698
  if (!this.currentHourData)
@@ -6697,8 +6700,8 @@ const _i = {
6697
6700
  for (let be = 0; be < 8; be++) {
6698
6701
  const _e = Ye(this.ts).tz(this.positionGmt).add(3 * be, "h").format();
6699
6702
  this.tableData.hours.push(_e);
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) ?? "-");
6703
+ const B = ((p = Ke.pickHourly(a, _e)) == null ? void 0 : p[0]) || {};
6704
+ this.tableData.temp.push(this.roundPrecision((v = B == null ? void 0 : B.weather) == null ? void 0 : v.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((E = (x = B == null ? void 0 : B.weather) == null ? void 0 : x.precip) == null ? void 0 : E.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((I = (f = B == null ? void 0 : B.weather) == null ? void 0 : f.precip) == null ? void 0 : I.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((w = (A = B == null ? void 0 : B.weather) == null ? void 0 : A.wind) == null ? void 0 : w.kts, 1) ?? "-"), this.tableData.windDir.push((L = (m = B == null ? void 0 : B.weather) == null ? void 0 : m.wind) == null ? void 0 : L.bearing), this.tableData.windGust.push(this.roundPrecision((b = (u = B == null ? void 0 : B.weather) == null ? void 0 : u.wind) == null ? void 0 : b.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((D = (z = B == null ? void 0 : B.wave) == null ? void 0 : z.sig) == null ? void 0 : D.height, 1) ?? "-"), this.tableData.sigwaveDir.push((H = (N = B == null ? void 0 : B.wave) == null ? void 0 : N.sig) == null ? void 0 : H.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((ce = (W = B == null ? void 0 : B.wave) == null ? void 0 : W.wd) == null ? void 0 : ce.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((de = (re = B == null ? void 0 : B.wave) == null ? void 0 : re.wd) == null ? void 0 : de.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((pe = (we = B == null ? void 0 : B.wave) == null ? void 0 : we.swell) == null ? void 0 : pe.height, 1) ?? "-"), this.tableData.swellDir.push((me = (ve = B == null ? void 0 : B.wave) == null ? void 0 : ve.swell) == null ? void 0 : me.bearing), this.tableData.swellPeriod.push(this.roundPrecision((V = (U = B == null ? void 0 : B.wave) == null ? void 0 : U.swell) == null ? void 0 : V.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((ye = B == null ? void 0 : B.current) == null ? void 0 : ye.speed, 1) ?? "-"), this.tableData.currentDir.push((ne = B == null ? void 0 : B.current) == null ? void 0 : ne.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((fe = B == null ? void 0 : B.weather) == null ? void 0 : fe.url), this.tableData.weatherNames.push(((xe = B == null ? void 0 : B.weather) == null ? void 0 : xe.name) ?? "-");
6702
6705
  }
6703
6706
  });
6704
6707
  },
@@ -6734,14 +6737,14 @@ const _i = {
6734
6737
  },
6735
6738
  async fetchTidesData(a, e, t) {
6736
6739
  this.tideLoading = !0, this.tideData = {};
6737
- let r = e ? ee(e).utc().format() : ee().utc().format(), i = {
6740
+ let r = e ? ae(e).utc().format() : ae().utc().format(), i = {
6738
6741
  lat: a.lat,
6739
6742
  lng: a.lng,
6740
6743
  date: r,
6741
6744
  forecastDays: t ?? 7,
6742
6745
  extremes: !0,
6743
6746
  heights: !1
6744
- }, s = await Qe.post(`${this.gateway}/api/arc/meteo2/spot/tides/forecast`, i, {
6747
+ }, s = await He.post(`${this.gateway}/api/arc/meteo2/spot/tides/forecast`, i, {
6745
6748
  headers: {
6746
6749
  Authorization: this.token || this.defaultMeteoToken
6747
6750
  }
@@ -6824,14 +6827,14 @@ const _i = {
6824
6827
  class: "main-box flex-center"
6825
6828
  };
6826
6829
  function Qr(a, e, t, r, i, s) {
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;
6830
+ var d, h, p, v, x, E, f, I, _, A, w, m, L, u, b, z, D, N, H, j, G, W, ce, re, de, we, pe, ve, me, U, V, ye, ne, fe, xe, be, _e, B, ke, Le, De, Be, ze, Ie, ie, J, P, Ce, K, Z, Se, S, Ae, Me, Te, Qe, M, O, Ge, Ue, oe, Ne, tt, at, it, rt, st, ot;
6828
6831
  const n = R("LocationFilled"), l = R("ElIcon"), c = R("ElTooltip");
6829
- return Fe((u(), g("div", Bi, [
6832
+ return Fe((g(), y("div", Bi, [
6830
6833
  o("div", Ii, [
6831
6834
  o("div", Ei, [
6832
6835
  o("div", ki, [
6833
6836
  F(l, { size: "22" }, {
6834
- default: Ie(() => [
6837
+ default: Pe(() => [
6835
6838
  F(n)
6836
6839
  ]),
6837
6840
  _: 1
@@ -6839,11 +6842,11 @@ function Qr(a, e, t, r, i, s) {
6839
6842
  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)
6840
6843
  ]),
6841
6844
  o("div", zi, [
6842
- i.showTables ? (u(), g("div", {
6845
+ i.showTables ? (g(), y("div", {
6843
6846
  key: 0,
6844
6847
  class: "iconfont toggle",
6845
6848
  onClick: e[0] || (e[0] = (C) => i.showTables = !i.showTables)
6846
- }, "")) : (u(), g("div", {
6849
+ }, "")) : (g(), y("div", {
6847
6850
  key: 1,
6848
6851
  class: "iconfont toggle",
6849
6852
  onClick: e[1] || (e[1] = (C) => i.showTables = !i.showTables)
@@ -6854,14 +6857,14 @@ function Qr(a, e, t, r, i, s) {
6854
6857
  }, "")
6855
6858
  ])
6856
6859
  ]),
6857
- i.loading ? (u(), g("div", Tr, e[43] || (e[43] = [
6860
+ i.loading ? (g(), y("div", Tr, e[43] || (e[43] = [
6858
6861
  o("img", {
6859
6862
  src: xi,
6860
6863
  alt: ""
6861
6864
  }, null, -1)
6862
- ]))) : (u(), g("div", {
6865
+ ]))) : (g(), y("div", {
6863
6866
  key: 0,
6864
- class: Z(["main-box", i.isDay ? "day-bg" : "night-bg"]),
6867
+ class: ee(["main-box", i.isDay ? "day-bg" : "night-bg"]),
6865
6868
  id: "meteoMainBox"
6866
6869
  }, [
6867
6870
  o("div", Pi, [
@@ -6869,40 +6872,40 @@ function Qr(a, e, t, r, i, s) {
6869
6872
  F(c, {
6870
6873
  placement: "top",
6871
6874
  effect: "light",
6872
- content: (b = (p = i.currentHourData) == null ? void 0 : p.weather) == null ? void 0 : b.name,
6875
+ content: (v = (p = i.currentHourData) == null ? void 0 : p.weather) == null ? void 0 : v.name,
6873
6876
  "show-after": 1e3
6874
6877
  }, {
6875
- default: Ie(() => {
6876
- var C, S, nt, lt;
6878
+ default: Pe(() => {
6879
+ var C, T, nt, lt;
6877
6880
  return [
6878
- (S = (C = i.currentHourData) == null ? void 0 : C.weather) != null && S.url ? (u(), g("img", {
6881
+ (T = (C = i.currentHourData) == null ? void 0 : C.weather) != null && T.url ? (g(), y("img", {
6879
6882
  key: 0,
6880
6883
  class: "iconfont icon",
6881
6884
  style: { "margin-right": "5px" },
6882
6885
  src: (lt = (nt = i.currentHourData) == null ? void 0 : nt.weather) == null ? void 0 : lt.url
6883
- }, null, 8, Si)) : (u(), g("span", Ti))
6886
+ }, null, 8, Si)) : (g(), y("span", Ti))
6884
6887
  ];
6885
6888
  }),
6886
6889
  _: 1
6887
6890
  }, 8, ["content"]),
6888
6891
  o("div", Qi, [
6889
6892
  o("div", null, [
6890
- ce(k(s.roundPrecision((E = (x = i.currentHourData) == null ? void 0 : x.weather) == null ? void 0 : E.temp, 0)), 1),
6893
+ ue(k(s.roundPrecision((E = (x = i.currentHourData) == null ? void 0 : x.weather) == null ? void 0 : E.temp, 0)), 1),
6891
6894
  e[9] || (e[9] = o("span", { style: { "font-size": "14px" } }, "°C", -1))
6892
6895
  ])
6893
6896
  ]),
6894
6897
  o("div", Hi, [
6895
6898
  o("div", Ni, [
6896
6899
  e[10] || (e[10] = o("label", null, "Precip : ", -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)
6900
+ o("span", null, k(s.roundPrecision((_ = (I = (f = i.currentHourData) == null ? void 0 : f.weather) == null ? void 0 : I.precip) == null ? void 0 : _.sum, 0)) + " mm", 1)
6898
6901
  ]),
6899
6902
  o("div", Fi, [
6900
6903
  e[11] || (e[11] = o("label", null, "Visibility : ", -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)
6904
+ o("span", null, k(s.roundPrecision((w = (A = i.currentHourData) == null ? void 0 : A.weather) == null ? void 0 : w.visibility, 0)) + " nm", 1)
6902
6905
  ]),
6903
6906
  o("div", Oi, [
6904
6907
  e[12] || (e[12] = o("label", null, "Wind : ", -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)
6908
+ o("span", null, k(s.roundPrecision((u = (L = (m = i.currentHourData) == null ? void 0 : m.weather) == null ? void 0 : L.wind) == null ? void 0 : u.kts, 1)) + " kts", 1)
6906
6909
  ])
6907
6910
  ])
6908
6911
  ]),
@@ -6914,19 +6917,19 @@ function Qr(a, e, t, r, i, s) {
6914
6917
  Fe(o("div", Gi, [
6915
6918
  o("div", Ui, [
6916
6919
  o("div", {
6917
- class: Z(["menu-item", i.activeIndex === 1 ? "active" : ""]),
6920
+ class: ee(["menu-item", i.activeIndex === 1 ? "active" : ""]),
6918
6921
  onClick: e[3] || (e[3] = Ve((C) => s.handleSelectTab(1), ["prevent"]))
6919
6922
  }, "Basis", 2),
6920
6923
  o("div", {
6921
- class: Z(["menu-item", i.activeIndex === 2 ? "active" : ""]),
6924
+ class: ee(["menu-item", i.activeIndex === 2 ? "active" : ""]),
6922
6925
  onClick: e[4] || (e[4] = Ve((C) => s.handleSelectTab(2), ["prevent"]))
6923
6926
  }, "Wave & Current", 2),
6924
6927
  o("div", {
6925
- class: Z(["menu-item", i.activeIndex === 3 ? "active" : ""]),
6928
+ class: ee(["menu-item", i.activeIndex === 3 ? "active" : ""]),
6926
6929
  onClick: e[5] || (e[5] = Ve((C) => s.handleSelectTab(3), ["prevent"]))
6927
6930
  }, "Sea Surface", 2),
6928
6931
  o("div", {
6929
- class: Z(["menu-item", i.activeIndex === 4 ? "active" : ""]),
6932
+ class: ee(["menu-item", i.activeIndex === 4 ? "active" : ""]),
6930
6933
  onClick: e[6] || (e[6] = Ve((C) => s.handleSelectTab(4), ["prevent"]))
6931
6934
  }, "Tides", 2)
6932
6935
  ]),
@@ -6937,10 +6940,10 @@ function Qr(a, e, t, r, i, s) {
6937
6940
  colspan: "1",
6938
6941
  class: "tr-title"
6939
6942
  }, [
6940
- ce("Hours"),
6943
+ ue("Hours"),
6941
6944
  o("span", { class: "unit" }, "(LT)")
6942
6945
  ], -1)),
6943
- (u(!0), g(V, null, $(i.tableData.hours, (C) => (u(), g("th", {
6946
+ (g(!0), y($, null, te(i.tableData.hours, (C) => (g(), y("th", {
6944
6947
  rowspan: "1",
6945
6948
  colspan: "1",
6946
6949
  key: `HourL${C}`
@@ -6952,10 +6955,10 @@ function Qr(a, e, t, r, i, s) {
6952
6955
  colspan: "1",
6953
6956
  class: "tr-title"
6954
6957
  }, [
6955
- ce("UTC"),
6958
+ ue("UTC"),
6956
6959
  o("span", { class: "unit" })
6957
6960
  ], -1)),
6958
- (u(!0), g(V, null, $(i.tableData.hours, (C) => (u(), g("th", {
6961
+ (g(!0), y($, null, te(i.tableData.hours, (C) => (g(), y("th", {
6959
6962
  rowspan: "1",
6960
6963
  colspan: "1",
6961
6964
  key: `HourZ${C}`
@@ -6967,24 +6970,24 @@ function Qr(a, e, t, r, i, s) {
6967
6970
  colspan: "1",
6968
6971
  class: "tr-title"
6969
6972
  }, null, -1)),
6970
- (u(!0), g(V, null, $(i.tableData.weatherUrls, (C, S) => (u(), g("th", {
6973
+ (g(!0), y($, null, te(i.tableData.weatherUrls, (C, T) => (g(), y("th", {
6971
6974
  rowspan: "1",
6972
6975
  colspan: "1",
6973
- key: `weatherUrls${S}${C}`
6976
+ key: `weatherUrls${T}${C}`
6974
6977
  }, [
6975
6978
  F(c, {
6976
6979
  placement: "top",
6977
6980
  effect: "light",
6978
- content: i.tableData.weatherNames[S],
6981
+ content: i.tableData.weatherNames[T],
6979
6982
  "show-after": 500
6980
6983
  }, {
6981
- default: Ie(() => [
6982
- C ? (u(), g("img", {
6984
+ default: Pe(() => [
6985
+ C ? (g(), y("img", {
6983
6986
  key: 0,
6984
6987
  class: "iconfont weather-icon",
6985
6988
  src: C,
6986
6989
  alt: ""
6987
- }, null, 8, qi)) : J("", !0)
6990
+ }, null, 8, qi)) : q("", !0)
6988
6991
  ]),
6989
6992
  _: 2
6990
6993
  }, 1032, ["content"])
@@ -6996,13 +6999,13 @@ function Qr(a, e, t, r, i, s) {
6996
6999
  colspan: "1",
6997
7000
  class: "tr-title"
6998
7001
  }, [
6999
- ce("Temp"),
7002
+ ue("Temp"),
7000
7003
  o("span", { class: "unit" }, "°C")
7001
7004
  ], -1)),
7002
- (u(!0), g(V, null, $(i.tableData.temp, (C, S) => (u(), g("td", {
7005
+ (g(!0), y($, null, te(i.tableData.temp, (C, T) => (g(), y("td", {
7003
7006
  rowspan: "1",
7004
7007
  colspan: "1",
7005
- key: `weatherUrls${S}${C}`
7008
+ key: `weatherUrls${T}${C}`
7006
7009
  }, k(C), 1))), 128))
7007
7010
  ]),
7008
7011
  o("tr", Zi, [
@@ -7011,13 +7014,13 @@ function Qr(a, e, t, r, i, s) {
7011
7014
  colspan: "1",
7012
7015
  class: "tr-title"
7013
7016
  }, [
7014
- ce("Precip"),
7017
+ ue("Precip"),
7015
7018
  o("span", { class: "unit" }, "mm")
7016
7019
  ], -1)),
7017
- (u(!0), g(V, null, $(i.tableData.precip1h, (C, S) => (u(), g("td", {
7020
+ (g(!0), y($, null, te(i.tableData.precip1h, (C, T) => (g(), y("td", {
7018
7021
  rowspan: "1",
7019
7022
  colspan: "1",
7020
- key: `precip1h${S}${C}`
7023
+ key: `precip1h${T}${C}`
7021
7024
  }, k(C), 1))), 128))
7022
7025
  ]),
7023
7026
  o("tr", $i, [
@@ -7026,13 +7029,13 @@ function Qr(a, e, t, r, i, s) {
7026
7029
  colspan: "1",
7027
7030
  class: "tr-title"
7028
7031
  }, [
7029
- ce("Visibility"),
7032
+ ue("Visibility"),
7030
7033
  o("span", { class: "unit" }, "nm")
7031
7034
  ], -1)),
7032
- (u(!0), g(V, null, $(i.tableData.visibility, (C, S) => (u(), g("td", {
7035
+ (g(!0), y($, null, te(i.tableData.visibility, (C, T) => (g(), y("td", {
7033
7036
  rowspan: "1",
7034
7037
  colspan: "1",
7035
- key: `visibility${S}${C}`
7038
+ key: `visibility${T}${C}`
7036
7039
  }, k(C), 1))), 128))
7037
7040
  ]),
7038
7041
  o("tr", er, [
@@ -7041,13 +7044,13 @@ function Qr(a, e, t, r, i, s) {
7041
7044
  colspan: "1",
7042
7045
  class: "tr-title"
7043
7046
  }, [
7044
- ce("Wind gust"),
7047
+ ue("Wind gust"),
7045
7048
  o("span", { class: "unit" }, "kts")
7046
7049
  ], -1)),
7047
- (u(!0), g(V, null, $(i.tableData.windGust, (C, S) => (u(), g("td", {
7050
+ (g(!0), y($, null, te(i.tableData.windGust, (C, T) => (g(), y("td", {
7048
7051
  rowspan: "1",
7049
7052
  colspan: "1",
7050
- key: `windGust${S}${C}`
7053
+ key: `windGust${T}${C}`
7051
7054
  }, [
7052
7055
  o("span", null, k(C), 1)
7053
7056
  ]))), 128))
@@ -7062,13 +7065,13 @@ function Qr(a, e, t, r, i, s) {
7062
7065
  colspan: "1",
7063
7066
  class: "tr-title"
7064
7067
  }, [
7065
- ce("Hours"),
7068
+ ue("Hours"),
7066
7069
  o("span", { class: "unit" }, "(LT)")
7067
7070
  ], -1)),
7068
- (u(!0), g(V, null, $(i.tableData.hours, (C, S) => (u(), g("th", {
7071
+ (g(!0), y($, null, te(i.tableData.hours, (C, T) => (g(), y("th", {
7069
7072
  rowspan: "1",
7070
7073
  colspan: "1",
7071
- key: `currenthoursL${S}${C}`
7074
+ key: `currenthoursL${T}${C}`
7072
7075
  }, k(s.computeHourL(C)), 1))), 128))
7073
7076
  ]),
7074
7077
  o("tr", ir, [
@@ -7077,13 +7080,13 @@ function Qr(a, e, t, r, i, s) {
7077
7080
  colspan: "1",
7078
7081
  class: "tr-title"
7079
7082
  }, [
7080
- ce("UTC"),
7083
+ ue("UTC"),
7081
7084
  o("span", { class: "unit" })
7082
7085
  ], -1)),
7083
- (u(!0), g(V, null, $(i.tableData.hours, (C, S) => (u(), g("th", {
7086
+ (g(!0), y($, null, te(i.tableData.hours, (C, T) => (g(), y("th", {
7084
7087
  rowspan: "1",
7085
7088
  colspan: "1",
7086
- key: `currenthoursZ${S}${C}`
7089
+ key: `currenthoursZ${T}${C}`
7087
7090
  }, k(s.computeHourZ(C)), 1))), 128))
7088
7091
  ]),
7089
7092
  o("tr", rr, [
@@ -7092,18 +7095,18 @@ function Qr(a, e, t, r, i, s) {
7092
7095
  colspan: "1",
7093
7096
  class: "tr-title"
7094
7097
  }, [
7095
- ce("Wind"),
7098
+ ue("Wind"),
7096
7099
  o("span", { class: "unit" }, "kts")
7097
7100
  ], -1)),
7098
- (u(!0), g(V, null, $(i.tableData.windSpeed, (C, S) => (u(), g("td", {
7101
+ (g(!0), y($, null, te(i.tableData.windSpeed, (C, T) => (g(), y("td", {
7099
7102
  rowspan: "1",
7100
7103
  colspan: "1",
7101
- key: `windSpeed${S}${C}`
7104
+ key: `windSpeed${T}${C}`
7102
7105
  }, [
7103
- isNaN(i.tableData.windDir[S]) ? J("", !0) : (u(), g("span", {
7106
+ isNaN(i.tableData.windDir[T]) ? q("", !0) : (g(), y("span", {
7104
7107
  key: 0,
7105
7108
  class: "iconfont icon wind",
7106
- style: de({ display: "inline-block", transform: `rotate(${i.tableData.windDir[S]}deg)` })
7109
+ style: ge({ display: "inline-block", transform: `rotate(${i.tableData.windDir[T]}deg)` })
7107
7110
  }, "", 4)),
7108
7111
  o("span", null, k(C), 1)
7109
7112
  ]))), 128))
@@ -7114,18 +7117,18 @@ function Qr(a, e, t, r, i, s) {
7114
7117
  colspan: "1",
7115
7118
  class: "tr-title"
7116
7119
  }, [
7117
- ce("Sig Wave"),
7120
+ ue("Sig Wave"),
7118
7121
  o("span", { class: "unit" }, "m")
7119
7122
  ], -1)),
7120
- (u(!0), g(V, null, $(i.tableData.sigwaveHeight, (C, S) => (u(), g("td", {
7123
+ (g(!0), y($, null, te(i.tableData.sigwaveHeight, (C, T) => (g(), y("td", {
7121
7124
  rowspan: "1",
7122
7125
  colspan: "1",
7123
- key: `sigwaveHeight${S}${C}`
7126
+ key: `sigwaveHeight${T}${C}`
7124
7127
  }, [
7125
- isNaN(i.tableData.sigwaveDir[S]) ? J("", !0) : (u(), g("span", {
7128
+ isNaN(i.tableData.sigwaveDir[T]) ? q("", !0) : (g(), y("span", {
7126
7129
  key: 0,
7127
7130
  class: "iconfont icon sigwave",
7128
- style: de({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[S]}deg)` })
7131
+ style: ge({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[T]}deg)` })
7129
7132
  }, "", 4)),
7130
7133
  o("span", null, k(C), 1)
7131
7134
  ]))), 128))
@@ -7136,18 +7139,18 @@ function Qr(a, e, t, r, i, s) {
7136
7139
  colspan: "1",
7137
7140
  class: "tr-title"
7138
7141
  }, [
7139
- ce("Wind Wave"),
7142
+ ue("Wind Wave"),
7140
7143
  o("span", { class: "unit" }, "m")
7141
7144
  ], -1)),
7142
- (u(!0), g(V, null, $(i.tableData.windwaveHeight, (C, S) => (u(), g("td", {
7145
+ (g(!0), y($, null, te(i.tableData.windwaveHeight, (C, T) => (g(), y("td", {
7143
7146
  rowspan: "1",
7144
7147
  colspan: "1",
7145
- key: `windwaveHeight${S}${C}`
7148
+ key: `windwaveHeight${T}${C}`
7146
7149
  }, [
7147
- isNaN(i.tableData.sigwaveDir[S]) ? J("", !0) : (u(), g("span", {
7150
+ isNaN(i.tableData.sigwaveDir[T]) ? q("", !0) : (g(), y("span", {
7148
7151
  key: 0,
7149
7152
  class: "iconfont icon windwave",
7150
- style: de({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[S]}deg)` })
7153
+ style: ge({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[T]}deg)` })
7151
7154
  }, "", 4)),
7152
7155
  o("span", null, k(C), 1)
7153
7156
  ]))), 128))
@@ -7158,18 +7161,18 @@ function Qr(a, e, t, r, i, s) {
7158
7161
  colspan: "1",
7159
7162
  class: "tr-title"
7160
7163
  }, [
7161
- ce("Swell"),
7164
+ ue("Swell"),
7162
7165
  o("span", { class: "unit" }, "m")
7163
7166
  ], -1)),
7164
- (u(!0), g(V, null, $(i.tableData.swellHeight, (C, S) => (u(), g("td", {
7167
+ (g(!0), y($, null, te(i.tableData.swellHeight, (C, T) => (g(), y("td", {
7165
7168
  rowspan: "1",
7166
7169
  colspan: "1",
7167
- key: `swellHeight${S}${C}`
7170
+ key: `swellHeight${T}${C}`
7168
7171
  }, [
7169
- isNaN(i.tableData.swellDir[S]) ? J("", !0) : (u(), g("span", {
7172
+ isNaN(i.tableData.swellDir[T]) ? q("", !0) : (g(), y("span", {
7170
7173
  key: 0,
7171
7174
  class: "iconfont icon swell",
7172
- style: de({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[S]}deg)` })
7175
+ style: ge({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[T]}deg)` })
7173
7176
  }, "", 4)),
7174
7177
  o("span", null, k(C), 1)
7175
7178
  ]))), 128))
@@ -7180,19 +7183,19 @@ function Qr(a, e, t, r, i, s) {
7180
7183
  colspan: "1",
7181
7184
  class: "tr-title"
7182
7185
  }, [
7183
- ce("Current"),
7186
+ ue("Current"),
7184
7187
  o("span", { class: "unit" }, "kts")
7185
7188
  ], -1)),
7186
- (u(!0), g(V, null, $(i.tableData.currentSpeed, (C, S) => (u(), g("td", {
7189
+ (g(!0), y($, null, te(i.tableData.currentSpeed, (C, T) => (g(), y("td", {
7187
7190
  rowspan: "1",
7188
7191
  colspan: "1",
7189
- key: `currentSpeed${S}${C}`
7192
+ key: `currentSpeed${T}${C}`
7190
7193
  }, [
7191
- isNaN(i.tableData.currentDir[S]) ? J("", !0) : (u(), g("span", {
7194
+ isNaN(i.tableData.currentDir[T]) ? q("", !0) : (g(), y("span", {
7192
7195
  key: 0,
7193
7196
  class: "iconfont icon current",
7194
7197
  id: "meteoGrayIcon",
7195
- style: de({ display: "inline-block", transform: `rotate(${i.tableData.currentDir[S]}deg)` })
7198
+ style: ge({ display: "inline-block", transform: `rotate(${i.tableData.currentDir[T]}deg)` })
7196
7199
  }, "", 4)),
7197
7200
  o("span", null, k(C), 1)
7198
7201
  ]))), 128))
@@ -7207,13 +7210,13 @@ function Qr(a, e, t, r, i, s) {
7207
7210
  colspan: "1",
7208
7211
  class: "tr-title"
7209
7212
  }, [
7210
- ce("Hours"),
7213
+ ue("Hours"),
7211
7214
  o("span", { class: "unit" }, "(LT)")
7212
7215
  ], -1)),
7213
- (u(!0), g(V, null, $(i.tableData.hours, (C, S) => (u(), g("th", {
7216
+ (g(!0), y($, null, te(i.tableData.hours, (C, T) => (g(), y("th", {
7214
7217
  rowspan: "1",
7215
7218
  colspan: "1",
7216
- key: `seahoursL${S}${C}`
7219
+ key: `seahoursL${T}${C}`
7217
7220
  }, k(s.computeHourL(C)), 1))), 128))
7218
7221
  ]),
7219
7222
  o("tr", dr, [
@@ -7222,13 +7225,13 @@ function Qr(a, e, t, r, i, s) {
7222
7225
  colspan: "1",
7223
7226
  class: "tr-title"
7224
7227
  }, [
7225
- ce("UTC"),
7228
+ ue("UTC"),
7226
7229
  o("span", { class: "unit" })
7227
7230
  ], -1)),
7228
- (u(!0), g(V, null, $(i.tableData.hours, (C, S) => (u(), g("th", {
7231
+ (g(!0), y($, null, te(i.tableData.hours, (C, T) => (g(), y("th", {
7229
7232
  rowspan: "1",
7230
7233
  colspan: "1",
7231
- key: `seahoursZ${S}${C}`
7234
+ key: `seahoursZ${T}${C}`
7232
7235
  }, k(s.computeHourZ(C)), 1))), 128))
7233
7236
  ]),
7234
7237
  o("tr", pr, [
@@ -7237,13 +7240,13 @@ function Qr(a, e, t, r, i, s) {
7237
7240
  colspan: "1",
7238
7241
  class: "tr-title"
7239
7242
  }, [
7240
- ce("SeaLevel"),
7243
+ ue("SeaLevel"),
7241
7244
  o("span", { class: "unit" }, "m")
7242
7245
  ], -1)),
7243
- (u(!0), g(V, null, $(i.tableData.seaLevel, (C, S) => (u(), g("td", {
7246
+ (g(!0), y($, null, te(i.tableData.seaLevel, (C, T) => (g(), y("td", {
7244
7247
  rowspan: "1",
7245
7248
  colspan: "1",
7246
- key: `SeaLevel${S}${C}`
7249
+ key: `SeaLevel${T}${C}`
7247
7250
  }, k(C), 1))), 128))
7248
7251
  ]),
7249
7252
  o("tr", mr, [
@@ -7252,41 +7255,41 @@ function Qr(a, e, t, r, i, s) {
7252
7255
  colspan: "1",
7253
7256
  class: "tr-title"
7254
7257
  }, [
7255
- ce("SeaTemp"),
7258
+ ue("SeaTemp"),
7256
7259
  o("span", { class: "unit" }, "°C")
7257
7260
  ], -1)),
7258
- (u(!0), g(V, null, $(i.tableData.seaTemp, (C, S) => (u(), g("td", {
7261
+ (g(!0), y($, null, te(i.tableData.seaTemp, (C, T) => (g(), y("td", {
7259
7262
  rowspan: "1",
7260
7263
  colspan: "1",
7261
- key: `SeaTemp${S}${C}`
7264
+ key: `SeaTemp${T}${C}`
7262
7265
  }, k(C), 1))), 128))
7263
7266
  ])
7264
7267
  ], 512), [
7265
7268
  [Oe, i.activeIndex === 3]
7266
7269
  ]),
7267
- i.activeIndex === 3 ? (u(), g("div", ur, e[31] || (e[31] = [
7270
+ i.activeIndex === 3 ? (g(), y("div", ur, e[31] || (e[31] = [
7268
7271
  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)
7269
- ]))) : J("", !0),
7272
+ ]))) : q("", !0),
7270
7273
  Fe(o("table", gr, [
7271
7274
  o("tr", yr, [
7272
- (u(!0), g(V, null, $(i.tideTableData, (C, S) => (u(), g("th", {
7275
+ (g(!0), y($, null, te(i.tideTableData, (C, T) => (g(), y("th", {
7273
7276
  rowspan: "1",
7274
7277
  colspan: "1",
7275
- key: `Tide-tr-${S}${C}`
7278
+ key: `Tide-tr-${T}${C}`
7276
7279
  }, k(C.type) + " Tide", 1))), 128))
7277
7280
  ]),
7278
7281
  o("tr", fr, [
7279
- (u(!0), g(V, null, $(i.tideTableData, (C, S) => (u(), g("td", {
7282
+ (g(!0), y($, null, te(i.tideTableData, (C, T) => (g(), y("td", {
7280
7283
  rowspan: "1",
7281
7284
  colspan: "1",
7282
- key: `Tide-date-${S}${C}`
7285
+ key: `Tide-date-${T}${C}`
7283
7286
  }, k(s.computeHourHmmLT(C == null ? void 0 : C.date)), 1))), 128))
7284
7287
  ]),
7285
7288
  o("tr", Ar, [
7286
- (u(!0), g(V, null, $(i.tideTableData, (C, S) => (u(), g("td", {
7289
+ (g(!0), y($, null, te(i.tideTableData, (C, T) => (g(), y("td", {
7287
7290
  rowspan: "1",
7288
7291
  colspan: "1",
7289
- key: `Tide-height-${S}${C}`
7292
+ key: `Tide-height-${T}${C}`
7290
7293
  }, k(s.roundPrecision(C == null ? void 0 : C.height, 2)) + " m", 1))), 128))
7291
7294
  ]),
7292
7295
  e[32] || (e[32] = o("tr", { class: "tr-tide flex-center info" }, [
@@ -7298,33 +7301,33 @@ function Qr(a, e, t, r, i, s) {
7298
7301
  [Oe, i.activeIndex === 4]
7299
7302
  ])
7300
7303
  ], 512), [
7301
- [Oe, ((M = (w = i.tableData) == null ? void 0 : w.hours) == null ? void 0 : M.length) > 0 && i.showTables]
7304
+ [Oe, ((z = (b = i.tableData) == null ? void 0 : b.hours) == null ? void 0 : z.length) > 0 && i.showTables]
7302
7305
  ]),
7303
7306
  Fe(o("div", wr, [
7304
7307
  o("div", vr, [
7305
7308
  o("div", br, [
7306
7309
  e[33] || (e[33] = o("div", null, "Wind", -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)
7310
+ o("div", null, k((H = (N = (D = i.currentHourData) == null ? void 0 : D.weather) == null ? void 0 : N.wind) == null ? void 0 : H.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((de = (re = (ce = i.currentHourData) == null ? void 0 : ce.weather) == null ? void 0 : re.wind) == null ? void 0 : de.scale) + "/" + k(s.roundPrecision((ve = (pe = (we = i.currentHourData) == null ? void 0 : we.weather) == null ? void 0 : pe.wind) == null ? void 0 : ve.gusts, 1)) + " kts", 1)
7308
7311
  ]),
7309
7312
  o("div", Lr, [
7310
7313
  e[34] || (e[34] = o("div", null, "Sig wave", -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)
7314
+ o("div", null, k((V = (U = (me = i.currentHourData) == null ? void 0 : me.wave) == null ? void 0 : U.sig) == null ? void 0 : V.direction) + "/" + k(s.roundPrecision((fe = (ne = (ye = i.currentHourData) == null ? void 0 : ye.wave) == null ? void 0 : ne.sig) == null ? void 0 : fe.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)
7312
7315
  ])
7313
7316
  ]),
7314
7317
  o("div", Cr, [
7315
7318
  o("div", xr, [
7316
7319
  e[35] || (e[35] = o("div", null, "Wind wave", -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)
7320
+ o("div", null, k((Le = (ke = (B = i.currentHourData) == null ? void 0 : B.wave) == null ? void 0 : ke.wd) == null ? void 0 : Le.direction) + "/" + k(s.roundPrecision((ze = (Be = (De = i.currentHourData) == null ? void 0 : De.wave) == null ? void 0 : Be.wd) == null ? void 0 : ze.height, 1)) + "m/" + k(s.roundPrecision((J = (ie = (Ie = i.currentHourData) == null ? void 0 : Ie.wave) == null ? void 0 : ie.wd) == null ? void 0 : J.period, 1)) + "s", 1)
7318
7321
  ]),
7319
7322
  o("div", _r, [
7320
7323
  e[36] || (e[36] = o("div", null, "Swell", -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)
7324
+ o("div", null, k((K = (Ce = (P = i.currentHourData) == null ? void 0 : P.wave) == null ? void 0 : Ce.swell) == null ? void 0 : K.direction) + "/" + k(s.roundPrecision((S = (Se = (Z = i.currentHourData) == null ? void 0 : Z.wave) == null ? void 0 : Se.swell) == null ? void 0 : S.height, 1)) + "m/" + k(s.roundPrecision((Te = (Me = (Ae = i.currentHourData) == null ? void 0 : Ae.wave) == null ? void 0 : Me.swell) == null ? void 0 : Te.period, 1)) + "s", 1)
7322
7325
  ])
7323
7326
  ]),
7324
7327
  o("div", Br, [
7325
7328
  o("div", Ir, [
7326
7329
  e[37] || (e[37] = o("div", null, "Current", -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)
7330
+ o("div", null, k((M = (Qe = i.currentHourData) == null ? void 0 : Qe.current) == null ? void 0 : M.direction) + "/" + k(s.roundPrecision((Ge = (O = i.currentHourData) == null ? void 0 : O.current) == null ? void 0 : Ge.kts, 2)) + "kts", 1)
7328
7331
  ]),
7329
7332
  o("div", Er, [
7330
7333
  e[38] || (e[38] = o("div", null, "Sea level", -1)),
@@ -7334,7 +7337,7 @@ function Qr(a, e, t, r, i, s) {
7334
7337
  o("div", kr, [
7335
7338
  o("div", Dr, [
7336
7339
  e[39] || (e[39] = o("div", null, "Sea Temp", -1)),
7337
- o("div", null, k(s.roundPrecision((re = i.currentHourData) == null ? void 0 : re.sst, 1)) + "°C", 1)
7340
+ o("div", null, k(s.roundPrecision((oe = i.currentHourData) == null ? void 0 : oe.sst, 1)) + "°C", 1)
7338
7341
  ]),
7339
7342
  o("div", zr, [
7340
7343
  e[40] || (e[40] = o("div", null, "Visibility", -1)),
@@ -7355,14 +7358,14 @@ function Qr(a, e, t, r, i, s) {
7355
7358
  [Oe, !i.showTables]
7356
7359
  ]),
7357
7360
  o("div", {
7358
- class: Z(["action", i.isDay ? "day" : "night"])
7361
+ class: ee(["action", i.isDay ? "day" : "night"])
7359
7362
  }, [
7360
- t.permission & i.helper.LEVEL.Supper ? (u(), g("div", {
7363
+ t.permission & i.helper.LEVEL.Supper ? (g(), y("div", {
7361
7364
  key: 0,
7362
7365
  class: "button",
7363
7366
  style: { "margin-right": "10px" },
7364
7367
  onClick: e[7] || (e[7] = (...C) => s.handleNotify && s.handleNotify(...C))
7365
- }, "Notify")) : J("", !0),
7368
+ }, "Notify")) : q("", !0),
7366
7369
  o("div", {
7367
7370
  onClick: e[8] || (e[8] = (...C) => s.handleMeteoMore && s.handleMeteoMore(...C))
7368
7371
  }, "More >>")
@@ -7373,7 +7376,7 @@ function Qr(a, e, t, r, i, s) {
7373
7376
  [Oe, i.showMeteo]
7374
7377
  ]);
7375
7378
  }
7376
- const Hr = /* @__PURE__ */ U(_i, [["render", Qr], ["__scopeId", "data-v-3afdcf26"]]), Nr = {
7379
+ const Hr = /* @__PURE__ */ Y(_i, [["render", Qr], ["__scopeId", "data-v-3afdcf26"]]), Nr = {
7377
7380
  name: "IdmWarZone",
7378
7381
  props: {
7379
7382
  map: {
@@ -7467,9 +7470,9 @@ const Hr = /* @__PURE__ */ U(_i, [["render", Qr], ["__scopeId", "data-v-3afdcf26
7467
7470
  }
7468
7471
  };
7469
7472
  function Fr(a, e, t, r, i, s) {
7470
- return u(), g("div");
7473
+ return g(), y("div");
7471
7474
  }
7472
- const Or = /* @__PURE__ */ U(Nr, [["render", Fr]]), Rr = {
7475
+ const Or = /* @__PURE__ */ Y(Nr, [["render", Fr]]), Rr = {
7473
7476
  name: "IdmGmdssArea",
7474
7477
  props: {
7475
7478
  map: {
@@ -7593,9 +7596,9 @@ const Or = /* @__PURE__ */ U(Nr, [["render", Fr]]), Rr = {
7593
7596
  }
7594
7597
  };
7595
7598
  function jr(a, e, t, r, i, s) {
7596
- return u(), g("div");
7599
+ return g(), y("div");
7597
7600
  }
7598
- const Wr = /* @__PURE__ */ U(Rr, [["render", jr]]), Gr = {
7601
+ const Wr = /* @__PURE__ */ Y(Rr, [["render", jr]]), Gr = {
7599
7602
  name: "IdmEcaZone",
7600
7603
  props: {
7601
7604
  map: {
@@ -7690,9 +7693,9 @@ const Wr = /* @__PURE__ */ U(Rr, [["render", jr]]), Gr = {
7690
7693
  }
7691
7694
  };
7692
7695
  function Ur(a, e, t, r, i, s) {
7693
- return u(), g("div");
7696
+ return g(), y("div");
7694
7697
  }
7695
- const Yr = /* @__PURE__ */ U(Gr, [["render", Ur]]);
7698
+ const Yr = /* @__PURE__ */ Y(Gr, [["render", Ur]]);
7696
7699
  const Kr = {
7697
7700
  name: "IdmAlertZone",
7698
7701
  props: {
@@ -7829,7 +7832,7 @@ const Kr = {
7829
7832
  }, Xr = { id: "idm-gl3-zone-info" }, Jr = ["innerHTML"];
7830
7833
  function qr(a, e, t, r, i, s) {
7831
7834
  var n;
7832
- return Fe((u(), g("div", Xr, [
7835
+ return Fe((g(), y("div", Xr, [
7833
7836
  o("div", {
7834
7837
  class: "iconfont close",
7835
7838
  onClick: e[0] || (e[0] = (l) => i.showZone = !1)
@@ -7842,7 +7845,7 @@ function qr(a, e, t, r, i, s) {
7842
7845
  [Oe, i.showZone]
7843
7846
  ]);
7844
7847
  }
7845
- const Vr = /* @__PURE__ */ U(Kr, [["render", qr]]);
7848
+ const Vr = /* @__PURE__ */ Y(Kr, [["render", qr]]);
7846
7849
  const Zr = {
7847
7850
  name: "IdmPort",
7848
7851
  props: {
@@ -7872,12 +7875,12 @@ const Zr = {
7872
7875
  computed: {
7873
7876
  computeLat() {
7874
7877
  return function(a) {
7875
- return ne.lat2pretty(a, 4).pretty;
7878
+ return le.lat2pretty(a, 4).pretty;
7876
7879
  };
7877
7880
  },
7878
7881
  computeLng() {
7879
7882
  return function(a) {
7880
- return ne.lng2pretty(a, 4).pretty;
7883
+ return le.lng2pretty(a, 4).pretty;
7881
7884
  };
7882
7885
  }
7883
7886
  },
@@ -7946,7 +7949,7 @@ const Zr = {
7946
7949
  style: { "align-items": "flex-start" }
7947
7950
  }, ss = { class: "meteo-forecast flex-end" };
7948
7951
  function os(a, e, t, r, i, s) {
7949
- return Fe((u(), g("div", $r, [
7952
+ return Fe((g(), y("div", $r, [
7950
7953
  o("div", {
7951
7954
  class: "close iconfont",
7952
7955
  onClick: e[0] || (e[0] = (n) => i.showPort = !1)
@@ -7978,7 +7981,7 @@ function os(a, e, t, r, i, s) {
7978
7981
  [Oe, i.showPort]
7979
7982
  ]);
7980
7983
  }
7981
- const ns = /* @__PURE__ */ U(Zr, [["render", os], ["__scopeId", "data-v-39da1804"]]), ls = {
7984
+ const ns = /* @__PURE__ */ Y(Zr, [["render", os], ["__scopeId", "data-v-39da1804"]]), ls = {
7982
7985
  name: "IdmLoadLine",
7983
7986
  props: {
7984
7987
  map: {
@@ -8052,9 +8055,9 @@ const ns = /* @__PURE__ */ U(Zr, [["render", os], ["__scopeId", "data-v-39da1804
8052
8055
  }
8053
8056
  };
8054
8057
  function hs(a, e, t, r, i, s) {
8055
- return u(), g("div");
8058
+ return g(), y("div");
8056
8059
  }
8057
- const cs = /* @__PURE__ */ U(ls, [["render", hs]]), ds = {
8060
+ const cs = /* @__PURE__ */ Y(ls, [["render", hs]]), ds = {
8058
8061
  name: "IdmTimezone",
8059
8062
  props: {
8060
8063
  map: {
@@ -8223,9 +8226,9 @@ const cs = /* @__PURE__ */ U(ls, [["render", hs]]), ds = {
8223
8226
  }
8224
8227
  };
8225
8228
  function ps(a, e, t, r, i, s) {
8226
- return u(), g("div");
8229
+ return g(), y("div");
8227
8230
  }
8228
- const ms = /* @__PURE__ */ U(ds, [["render", ps]]), us = {
8231
+ const ms = /* @__PURE__ */ Y(ds, [["render", ps]]), us = {
8229
8232
  name: "IdmVoluntaryReportingArea",
8230
8233
  props: {
8231
8234
  map: {
@@ -8317,9 +8320,9 @@ const ms = /* @__PURE__ */ U(ds, [["render", ps]]), us = {
8317
8320
  }
8318
8321
  };
8319
8322
  function gs(a, e, t, r, i, s) {
8320
- return u(), g("div");
8323
+ return g(), y("div");
8321
8324
  }
8322
- const ys = /* @__PURE__ */ U(us, [["render", gs]]), fs = {
8325
+ const ys = /* @__PURE__ */ Y(us, [["render", gs]]), fs = {
8323
8326
  name: "IdmSpecialArea",
8324
8327
  props: {
8325
8328
  map: {
@@ -8349,7 +8352,7 @@ const ys = /* @__PURE__ */ U(us, [["render", gs]]), fs = {
8349
8352
  methods: {
8350
8353
  handleRender() {
8351
8354
  this.map ? (this.handleClear(), this.area && (this.area.features.forEach((a) => {
8352
- a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => ne.convertToMonotonicLng2(e));
8355
+ a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => le.convertToMonotonicLng2(e));
8353
8356
  }), this.map.addSource(this.source, {
8354
8357
  type: "geojson",
8355
8358
  data: this.area
@@ -8413,9 +8416,9 @@ const ys = /* @__PURE__ */ U(us, [["render", gs]]), fs = {
8413
8416
  }
8414
8417
  };
8415
8418
  function As(a, e, t, r, i, s) {
8416
- return u(), g("div");
8419
+ return g(), y("div");
8417
8420
  }
8418
- const ws = /* @__PURE__ */ U(fs, [["render", As]]), vs = {
8421
+ const ws = /* @__PURE__ */ Y(fs, [["render", As]]), vs = {
8419
8422
  name: "IdmTerminator",
8420
8423
  props: {
8421
8424
  map: {
@@ -8468,9 +8471,9 @@ const ws = /* @__PURE__ */ U(fs, [["render", As]]), vs = {
8468
8471
  }
8469
8472
  };
8470
8473
  function bs(a, e, t, r, i, s) {
8471
- return u(), g("div");
8474
+ return g(), y("div");
8472
8475
  }
8473
- const Ls = /* @__PURE__ */ U(vs, [["render", bs]]);
8476
+ const Ls = /* @__PURE__ */ Y(vs, [["render", bs]]);
8474
8477
  const Cs = {
8475
8478
  name: "IdmLatLng",
8476
8479
  props: {
@@ -8529,7 +8532,7 @@ const Cs = {
8529
8532
  this.show ? ((a = this.map) == null || a.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
8530
8533
  },
8531
8534
  handleMouseMove(a) {
8532
- const e = a.lngLat, t = ne.lng2pretty(e.lng, 2), r = ne.lat2pretty(e.lat, 2);
8535
+ const e = a.lngLat, t = le.lng2pretty(e.lng, 2), r = le.lat2pretty(e.lat, 2);
8533
8536
  this.lngLat = { lng: t, lat: r };
8534
8537
  },
8535
8538
  handleComputeLatLngs() {
@@ -8577,7 +8580,7 @@ const Cs = {
8577
8580
  handleZoomEnd() {
8578
8581
  var e;
8579
8582
  const a = this.handleComputeLatLngs();
8580
- (e = this.map) == null || e.getSource(this.source).setData(T.featureCollection(a));
8583
+ (e = this.map) == null || e.getSource(this.source).setData(Q.featureCollection(a));
8581
8584
  },
8582
8585
  handleRender() {
8583
8586
  if (this.map) {
@@ -8627,17 +8630,17 @@ const Cs = {
8627
8630
  }
8628
8631
  };
8629
8632
  function xs(a, e, t, r, i, s) {
8630
- return i.lngLat ? (u(), g("div", {
8633
+ return i.lngLat ? (g(), y("div", {
8631
8634
  key: 0,
8632
8635
  class: "lat-lng-tip",
8633
- style: de({ right: i.right + "px", bottom: t.bottom })
8636
+ style: ge({ right: i.right + "px", bottom: t.bottom })
8634
8637
  }, [
8635
8638
  o("span", null, k(i.lngLat.lat.pretty), 1),
8636
8639
  e[0] || (e[0] = o("span", null, ", ", -1)),
8637
8640
  o("span", null, k(i.lngLat.lng.pretty), 1)
8638
- ], 4)) : J("", !0);
8641
+ ], 4)) : q("", !0);
8639
8642
  }
8640
- const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8"]]), _s = {
8643
+ const pt = /* @__PURE__ */ Y(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8"]]), _s = {
8641
8644
  name: "IdmMeasure",
8642
8645
  props: {
8643
8646
  map: {
@@ -8672,7 +8675,7 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
8672
8675
  else {
8673
8676
  (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");
8674
8677
  let r = this.geojson.find((i) => !i.closed);
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);
8678
+ r && this.handleClear(r, !0), this.geojson = this.geojson.filter((i) => !!i.closed), r = Q.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(r);
8676
8679
  }
8677
8680
  },
8678
8681
  immediate: !0
@@ -8706,24 +8709,24 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
8706
8709
  var t, r, i, s, n, l, c, d, h, p;
8707
8710
  const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
8708
8711
  if ((e == null ? void 0 : e.split("-").length) === 2) {
8709
- const b = this.geojson.filter((B) => B.id === e.split("-")[0])[0];
8710
- this.pointMarkers[b.id].filter((B) => {
8712
+ const v = this.geojson.filter((I) => I.id === e.split("-")[0])[0];
8713
+ this.pointMarkers[v.id].filter((I) => {
8711
8714
  var _;
8712
- return ((_ = B._element) == null ? void 0 : _.id) === e;
8715
+ return ((_ = I._element) == null ? void 0 : _.id) === e;
8713
8716
  })[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]);
8714
8717
  let E;
8715
- b.features.forEach((B, _) => {
8716
- if (B.geometry.type === "Point" && B.properties.id == e.split("-")[1]) {
8718
+ v.features.forEach((I, _) => {
8719
+ if (I.geometry.type === "Point" && I.properties.id == e.split("-")[1]) {
8717
8720
  E = _;
8718
8721
  return;
8719
8722
  }
8720
8723
  });
8721
- const A = b.features.filter((B) => B.geometry.type === "Point");
8724
+ const f = v.features.filter((I) => I.geometry.type === "Point");
8722
8725
  this.handleTmpPointUpdate(
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]
8726
+ v,
8727
+ f[E - 1],
8728
+ { lng: (d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, lat: (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lat, properties: f[E].properties },
8729
+ E === f.length - 1 ? void 0 : f[E + 1]
8727
8730
  );
8728
8731
  }
8729
8732
  },
@@ -8731,13 +8734,13 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
8731
8734
  var t, r, i, s, n, l, c, d, h, p;
8732
8735
  const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
8733
8736
  if ((e == null ? void 0 : e.split("-").length) === 2) {
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;
8737
+ const v = this.geojson.filter((f) => f.id === e.split("-")[0])[0];
8738
+ this.pointMarkers[v.id].filter((f) => {
8739
+ var I;
8740
+ return ((I = f._element) == null ? void 0 : I.id) === e;
8738
8741
  })[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]);
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);
8742
+ const E = v.features.filter((f) => f.geometry.type === "Point" && f.properties.id == e.split("-")[1])[0];
8743
+ 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], v.features = v.features.filter((f) => f.geometry.type === "Point"), this.handlePointUpdate(v);
8741
8744
  }
8742
8745
  },
8743
8746
  handleContextmenu(a) {
@@ -8764,8 +8767,8 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
8764
8767
  d.features = d.features.filter((h) => h.geometry.type === "Point" && h.properties.id !== c[1]), this.handlePointUpdate(d);
8765
8768
  } else if (e !== "marker-label" && this.show) {
8766
8769
  let c = this.geojson.at(-1);
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(
8770
+ c || (c = Q.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(c)), c.features = c.features.filter((h) => h.geometry.type === "Point");
8771
+ const d = Q.feature(
8769
8772
  {
8770
8773
  type: "Point",
8771
8774
  coordinates: [a.lngLat.lng, a.lngLat.lat]
@@ -8785,10 +8788,10 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
8785
8788
  const r = [];
8786
8789
  for (let i = 1; i < e.length; i++) {
8787
8790
  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]));
8791
+ t = le.roundPrecision(t + h, 2);
8792
+ let v;
8793
+ l.mode === "RL" ? v = le.convertToMonotonicLng([c, d]) : v = le.convertToMonotonicLng(je.interpolateCoordinates(c, d, 200));
8794
+ const x = Q.lineString(v.map((E) => [E.lng, E.lat]));
8792
8795
  x.properties.dist = h, x.properties.bearing = p, x.properties.total = t, r.push(x);
8793
8796
  }
8794
8797
  e.push(...r), a.total = t;
@@ -8796,23 +8799,23 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
8796
8799
  return this.handleRender(a), a;
8797
8800
  },
8798
8801
  handleTmpPointUpdate(a, e, t, r) {
8799
- const i = T.featureCollection([]);
8802
+ const i = Q.featureCollection([]);
8800
8803
  let s, n;
8801
8804
  if (e) {
8802
8805
  const c = e.properties, d = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, h = { lng: t.lng, lat: t.lat };
8803
8806
  s = je.calculateDistance(d, h, c.mode === "RL", 4), n = je.calculateBearing(d, h, c.mode === "RL", 2);
8804
8807
  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);
8808
+ c.mode === "RL" ? p = le.convertToMonotonicLng([d, h]) : p = le.convertToMonotonicLng(je.interpolateCoordinates(d, h, 200));
8809
+ const v = Q.lineString(p.map((x) => [x.lng, x.lat]));
8810
+ v.properties.dist = s, v.properties.bearing = n, i.features.push(v);
8808
8811
  }
8809
8812
  if (r) {
8810
8813
  const c = t.properties, d = t, h = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
8811
8814
  s = je.calculateDistance(d, h, c.mode === "RL", 4), n = je.calculateBearing(d, h, c.mode === "RL", 2);
8812
8815
  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);
8816
+ c.mode === "RL" ? p = le.convertToMonotonicLng([d, h]) : p = le.convertToMonotonicLng(je.interpolateCoordinates(d, h, 200));
8817
+ const v = Q.lineString(p.map((x) => [x.lng, x.lat]));
8818
+ v.properties.dist = s, v.properties.bearing = n, i.features.push(v);
8816
8819
  }
8817
8820
  this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
8818
8821
  type: "geojson",
@@ -8852,7 +8855,7 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
8852
8855
  }
8853
8856
  });
8854
8857
  let l;
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)
8858
+ if (r ? l = '<div class="marker-label">Drag and drop</div>' : l = `<div class="marker-label">Total distance: <b>${le.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)
8856
8859
  this.tipMarker._element.innerHTML = l, this.tipMarker.setLngLat([t.lng, t.lat]);
8857
8860
  else {
8858
8861
  const c = document.createElement("div");
@@ -8862,14 +8865,14 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
8862
8865
  handleMove(a) {
8863
8866
  this.map.getCanvas().style.cursor = "crosshair";
8864
8867
  let e = this.geojson.at(-1);
8865
- e || (e = T.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
8868
+ e || (e = Q.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
8866
8869
  const t = e.features.filter((r) => r.geometry.type === "Point");
8867
8870
  t != null && t.length && this.handleTmpPointUpdate(e, t.at(-1), { lng: a.lngLat.lng, lat: a.lngLat.lat });
8868
8871
  },
8869
8872
  handleDblClick(a) {
8870
8873
  a.preventDefault();
8871
8874
  let e = this.geojson.at(-1);
8872
- e.closed = !0, this.handleRender(e), e = T.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e);
8875
+ e.closed = !0, this.handleRender(e), e = Q.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e);
8873
8876
  },
8874
8877
  handleRender(a) {
8875
8878
  var e;
@@ -8924,18 +8927,18 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
8924
8927
  }
8925
8928
  },
8926
8929
  handleClear(a, e = !0) {
8927
- var s, n, l, c, d, h, p, b, x;
8930
+ var s, n, l, c, d, h, p, v, x;
8928
8931
  const t = `${a.id}-${this.source}`, r = `${a.id}-${this.layer}`, i = `${a.id}-${this.labelLayer}`;
8929
8932
  (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) => {
8930
8933
  E == null || E.remove();
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);
8934
+ }), this.pointMarkers[a.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((v = this.map) != null && v.getSource(t)) && this.map.removeSource(t), e && ((x = this.map) != null && x.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
8932
8935
  }
8933
8936
  }
8934
8937
  };
8935
8938
  function Bs(a, e, t, r, i, s) {
8936
- return u(), g("div");
8939
+ return g(), y("div");
8937
8940
  }
8938
- const Is = /* @__PURE__ */ U(_s, [["render", Bs]]);
8941
+ const Is = /* @__PURE__ */ Y(_s, [["render", Bs]]);
8939
8942
  const Es = {
8940
8943
  name: "IdmENC",
8941
8944
  props: {
@@ -8994,10 +8997,10 @@ const Es = {
8994
8997
  }, ks = { key: 0 }, Ds = { class: "bar-item" };
8995
8998
  function zs(a, e, t, r, i, s) {
8996
8999
  const n = R("ElTooltip");
8997
- return t.enabled && t.permission & i.helper.LEVEL.Supper ? (u(), g("div", ks, [
9000
+ return t.enabled && t.permission & i.helper.LEVEL.Supper ? (g(), y("div", ks, [
8998
9001
  o("div", {
8999
9002
  class: "menu-bar-box",
9000
- style: de({ position: "absolute", right: i.right + "px", bottom: t.bottom })
9003
+ style: ge({ position: "absolute", right: i.right + "px", bottom: t.bottom })
9001
9004
  }, [
9002
9005
  o("div", Ds, [
9003
9006
  F(n, {
@@ -9006,9 +9009,9 @@ function zs(a, e, t, r, i, s) {
9006
9009
  content: "Hifleet",
9007
9010
  "show-after": 1e3
9008
9011
  }, {
9009
- default: Ie(() => [
9012
+ default: Pe(() => [
9010
9013
  o("div", {
9011
- class: Z(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
9014
+ class: ee(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
9012
9015
  onClick: e[0] || (e[0] = (l) => i.vendor = "hi")
9013
9016
  }, e[2] || (e[2] = [
9014
9017
  o("span", { class: "iconfont" }, "HI", -1)
@@ -9022,9 +9025,9 @@ function zs(a, e, t, r, i, s) {
9022
9025
  content: "I4insight",
9023
9026
  "show-after": 1e3
9024
9027
  }, {
9025
- default: Ie(() => [
9028
+ default: Pe(() => [
9026
9029
  o("div", {
9027
- class: Z(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
9030
+ class: ee(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
9028
9031
  onClick: e[1] || (e[1] = (l) => i.vendor = "i4")
9029
9032
  }, e[3] || (e[3] = [
9030
9033
  o("span", { class: "iconfont" }, "I4", -1)
@@ -9034,9 +9037,9 @@ function zs(a, e, t, r, i, s) {
9034
9037
  })
9035
9038
  ])
9036
9039
  ], 4)
9037
- ])) : J("", !0);
9040
+ ])) : q("", !0);
9038
9041
  }
9039
- const Ps = /* @__PURE__ */ U(Es, [["render", zs], ["__scopeId", "data-v-8eecd76d"]]), Ms = {
9042
+ const Ps = /* @__PURE__ */ Y(Es, [["render", zs], ["__scopeId", "data-v-8eecd76d"]]), Ms = {
9040
9043
  name: "IdmWorld12nm",
9041
9044
  props: {
9042
9045
  map: {
@@ -9098,7 +9101,7 @@ const Ps = /* @__PURE__ */ U(Es, [["render", zs], ["__scopeId", "data-v-8eecd76d
9098
9101
  function Ss(a, e, t, r, i, s) {
9099
9102
  return null;
9100
9103
  }
9101
- const Ts = /* @__PURE__ */ U(Ms, [["render", Ss]]);
9104
+ const Ts = /* @__PURE__ */ Y(Ms, [["render", Ss]]);
9102
9105
  const Qs = {
9103
9106
  name: "IdmWorldMarine",
9104
9107
  props: {
@@ -9142,7 +9145,7 @@ const Qs = {
9142
9145
  function Hs(a, e, t, r, i, s) {
9143
9146
  return null;
9144
9147
  }
9145
- const Ns = /* @__PURE__ */ U(Qs, [["render", Hs]]), Fs = {
9148
+ const Ns = /* @__PURE__ */ Y(Qs, [["render", Hs]]), Fs = {
9146
9149
  name: "IdmChinaRoute",
9147
9150
  props: {
9148
9151
  map: {
@@ -9183,7 +9186,7 @@ const Ns = /* @__PURE__ */ U(Qs, [["render", Hs]]), Fs = {
9183
9186
  function Os(a, e, t, r, i, s) {
9184
9187
  return null;
9185
9188
  }
9186
- const Rs = /* @__PURE__ */ U(Fs, [["render", Os]]);
9189
+ const Rs = /* @__PURE__ */ Y(Fs, [["render", Os]]);
9187
9190
  const js = {
9188
9191
  name: "IdmGLV2",
9189
9192
  components: {
@@ -9279,7 +9282,7 @@ const js = {
9279
9282
  watch: {
9280
9283
  ts: {
9281
9284
  handler(a, e) {
9282
- a && e && ee(a).utc().format("yyyy-MM-DD HH") !== ee(e).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
9285
+ a && e && ae(a).utc().format("yyyy-MM-DD HH") !== ae(e).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
9283
9286
  this.handleDateChange({ tropicals: !1 });
9284
9287
  });
9285
9288
  },
@@ -9299,11 +9302,11 @@ const js = {
9299
9302
  },
9300
9303
  activeWeatherLayers: {
9301
9304
  handler() {
9302
- var t, r, i, s, n, l, c, d, h, p, b, x, E, A, B, _, f, v, m, L, y, w, M;
9305
+ var t, r, i, s, n, l, c, d, h, p, v, x, E, f, I, _, A, w, m, L, u, b, z;
9303
9306
  if (!this.map)
9304
9307
  return !1;
9305
9308
  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");
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);
9309
+ this.activeWeatherLayers.length > 0 ? (!a && this.map.getZoom() > 3 && this.enc ? (r = (t = this.map) == null ? void 0 : t.getLayer(this.enc)) == null || r.setLayoutProperty("visibility", "visible") : ((s = (i = this.map) == null ? void 0 : i.getLayer("i4")) == null || s.setLayoutProperty("visibility", "none"), (l = (n = this.map) == null ? void 0 : n.getLayer("hi")) == null || l.setLayoutProperty("visibility", "none")), (d = (c = this.map) == null ? void 0 : c.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || d.setLayoutProperty("visibility", "visible"), (p = this.map) != null && p.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((v = this.map) != null && v.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((E = this.map) == null || E.moveLayer((x = this.viewport) == null ? void 0 : x.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), e && ((I = this.map) == null || I.moveLayer(this.helper.mapboxCustomer.layers.countryBoundary.id, (f = this.viewport) == null ? void 0 : f.rampColorLayer))) : ((A = (_ = this.map) == null ? void 0 : _.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || A.setLayoutProperty("visibility", "none"), this.enc && this.map.getZoom() > 3 ? (m = (w = this.map) == null ? void 0 : w.getLayer(this.enc)) == null || m.setLayoutProperty("visibility", "visible") : ((u = (L = this.map) == null ? void 0 : L.getLayer("i4")) == null || u.setLayoutProperty("visibility", "none"), (z = (b = this.map) == null ? void 0 : b.getLayer("hi")) == null || z.setLayoutProperty("visibility", "none"))), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
9307
9310
  },
9308
9311
  immediate: !0
9309
9312
  },
@@ -9355,63 +9358,63 @@ const js = {
9355
9358
  },
9356
9359
  methods: {
9357
9360
  async fetchWeatherLayers(a = { tropicals: !1 }) {
9358
- var i, s, n, l, c, d, h, p, b;
9361
+ var i, s, n, l, c, d, h, p, v;
9359
9362
  const e = (/* @__PURE__ */ new Date()).valueOf();
9360
9363
  let t = 0, r = 0;
9361
9364
  if (this.map) {
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}`;
9365
+ const x = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, E = (s = this.map) == null ? void 0 : s.getBounds(), f = `${E._sw.lng},${E._sw.lat},${E._ne.lng},${E._ne.lat}`;
9363
9366
  if (this.particleFactor && ((n = this.$refs.layer) != null && n.autoActive)) {
9364
- const B = Ze.WEATHER_LAYERS.find((_) => {
9365
- var f;
9366
- return ((f = _.peer) == null ? void 0 : f.weight) === this.particleFactor.weight;
9367
+ const I = Ze.WEATHER_LAYERS.find((_) => {
9368
+ var A;
9369
+ return ((A = _.peer) == null ? void 0 : A.weight) === this.particleFactor.weight;
9367
9370
  });
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;
9371
+ this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & I.weight ? this.weatherWeight : this.weatherWeight + I.weight : this.weatherWeight = this.weatherWeight & I.weight ? this.weatherWeight - I.weight : this.weatherWeight;
9369
9372
  }
9370
9373
  if (this.weatherWeight > 0) {
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}`, {
9374
+ let I = this.weatherWeight, _;
9375
+ if (a.tropicals || this.weatherWeight & 256 && (_ = this.weatherLayers.tropicals, _ && (I -= 256, _.version = Math.random() + 1)), I > 0) {
9376
+ const A = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], w = await He.get(`${A}/api/arc/weather/layers2/links?l=${I}&v=${this.source}&z=${x}&bbox=${f}&t=${this.ts}`, {
9374
9377
  headers: {
9375
9378
  Authorization: this.token || this.defaultMeteoToken
9376
9379
  }
9377
9380
  });
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) {
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], {
9381
+ if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((l = w == null ? void 0 : w.data) == null ? void 0 : l.code) === 0) {
9382
+ const m = (c = w == null ? void 0 : w.data) == null ? void 0 : c.data, L = [];
9383
+ for (const b in m)
9384
+ b !== "tropicals" && L.push(
9385
+ He.get(m[b], {
9383
9386
  headers: {
9384
9387
  Authorization: this.token || this.defaultMeteoToken,
9385
- key: w
9388
+ key: b
9386
9389
  },
9387
- responseType: /\.(jpg|png)$/.test(m[w]) ? "blob" : "json"
9388
- }).catch((M) => {
9389
- console.log(`[${w}] fetch layer error: ${M}`);
9390
+ responseType: /\.(jpg|png)$/.test(m[b]) ? "blob" : "json"
9391
+ }).catch((z) => {
9392
+ console.log(`[${b}] fetch layer error: ${z}`);
9390
9393
  })
9391
9394
  );
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",
9399
- etime: v.data.etime
9395
+ const u = await Promise.all(L);
9396
+ this.weatherLayers = {}, u.map((b) => {
9397
+ var N, H, j, G;
9398
+ const z = ((N = b == null ? void 0 : b.data) == null ? void 0 : N.data) || (b == null ? void 0 : b.data), D = (j = (H = b == null ? void 0 : b.config) == null ? void 0 : H.headers) == null ? void 0 : j.key;
9399
+ D && z && (this.weatherLayers[D] = {
9400
+ raw: z,
9401
+ type: ((G = b == null ? void 0 : b.config) == null ? void 0 : G.responseType) === "blob" ? "image" : "json",
9402
+ etime: w.data.etime
9400
9403
  });
9401
- }), m.tropicals && Qe.get(m.tropicals, {
9404
+ }), m.tropicals && He.get(m.tropicals, {
9402
9405
  headers: {
9403
9406
  Authorization: this.token || this.defaultMeteoToken,
9404
9407
  key: "tropicals"
9405
9408
  }
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;
9409
+ }).then((b) => {
9410
+ var N, H, j;
9411
+ const z = ct.convert2Geojson(((N = b == null ? void 0 : b.data) == null ? void 0 : N.data) || (b == null ? void 0 : b.data)), D = (j = (H = b == null ? void 0 : b.config) == null ? void 0 : H.headers) == null ? void 0 : j.key;
9409
9412
  this.weatherLayers[D] = {
9410
- data: M,
9413
+ data: z,
9411
9414
  active: !0,
9412
9415
  cached: !1,
9413
9416
  type: "json",
9414
- etime: v.data.etime,
9417
+ etime: w.data.etime,
9415
9418
  version: Math.random() + 1
9416
9419
  };
9417
9420
  });
@@ -9422,16 +9425,16 @@ const js = {
9422
9425
  type: "json",
9423
9426
  direction: m,
9424
9427
  height: { raw: L },
9425
- etime: v.data.etime
9428
+ etime: w.data.etime
9426
9429
  };
9427
9430
  }
9428
9431
  if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
9429
- const m = (p = this.weatherLayers["current-direction"]) == null ? void 0 : p.raw, L = (b = this.weatherLayers["current-speed"]) == null ? void 0 : b.raw;
9432
+ const m = (p = this.weatherLayers["current-direction"]) == null ? void 0 : p.raw, L = (v = this.weatherLayers["current-speed"]) == null ? void 0 : v.raw;
9430
9433
  delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
9431
9434
  type: "json",
9432
9435
  direction: m,
9433
9436
  speed: { raw: L },
9434
- etime: v.data.etime
9437
+ etime: w.data.etime
9435
9438
  };
9436
9439
  }
9437
9440
  }
@@ -9449,50 +9452,50 @@ const js = {
9449
9452
  let n = !1, l = !1, c = !1, d = !1;
9450
9453
  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) {
9451
9454
  if (a.all) {
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}`, {
9455
+ const h = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], p = await He.get(`${h}/api/arc/other/layers/links?l=${s}&t=${this.ts}`, {
9453
9456
  headers: {
9454
9457
  Authorization: this.token || this.defaultMeteoToken
9455
9458
  }
9456
9459
  });
9457
9460
  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)
9461
+ const v = (t = p == null ? void 0 : p.data) == null ? void 0 : t.data, x = [];
9462
+ for (const f in v)
9460
9463
  x.push(
9461
- Qe.get(b[A], {
9464
+ He.get(v[f], {
9462
9465
  headers: {
9463
9466
  Authorization: this.token || this.defaultMeteoToken,
9464
- key: A
9467
+ key: f
9465
9468
  }
9466
9469
  })
9467
9470
  );
9468
9471
  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;
9472
+ this.otherLayers = { enc: n, world12nm: l, worldMarine: c, chinaRoute: d }, E.map((f) => {
9473
+ var A, w, m;
9474
+ const I = ((A = f == null ? void 0 : f.data) == null ? void 0 : A.data) || (f == null ? void 0 : f.data), _ = (m = (w = f == null ? void 0 : f.config) == null ? void 0 : w.headers) == null ? void 0 : m.key;
9475
+ this.otherLayers[_] = I;
9473
9476
  });
9474
9477
  }
9475
9478
  } else if (a.dayNight && s & 1024) {
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}`, {
9479
+ const h = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], p = await He.get(`${h}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
9477
9480
  headers: {
9478
9481
  Authorization: this.token || this.defaultMeteoToken
9479
9482
  }
9480
9483
  });
9481
9484
  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)
9485
+ const v = (i = p == null ? void 0 : p.data) == null ? void 0 : i.data, x = [];
9486
+ for (const f in v)
9484
9487
  x.push(
9485
- Qe.get(b[A], {
9488
+ He.get(v[f], {
9486
9489
  headers: {
9487
9490
  Authorization: this.token || this.defaultMeteoToken,
9488
- key: A
9491
+ key: f
9489
9492
  }
9490
9493
  })
9491
9494
  );
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;
9495
+ (await Promise.all(x)).map((f) => {
9496
+ var A, w, m;
9497
+ const I = ((A = f == null ? void 0 : f.data) == null ? void 0 : A.data) || (f == null ? void 0 : f.data), _ = (m = (w = f == null ? void 0 : f.config) == null ? void 0 : w.headers) == null ? void 0 : m.key;
9498
+ this.otherLayers[_] = I;
9496
9499
  });
9497
9500
  }
9498
9501
  }
@@ -9547,253 +9550,253 @@ const js = {
9547
9550
  );
9548
9551
  },
9549
9552
  handleDrawWeather4Json() {
9550
- var d, h, p, b, x, E;
9553
+ var d, h, p, v, x, E;
9551
9554
  const a = (/* @__PURE__ */ new Date()).valueOf();
9552
9555
  let e = 0, t = 0;
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") {
9556
+ const r = (d = this.map) == null ? void 0 : d.getBounds(), i = this.map.getZoom(), s = le.convertToStdLng(r._sw.lng), n = le.convertToStdLng(r._ne.lng), l = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
9557
+ for (const f in this.weatherLayers) {
9558
+ let I = !1;
9559
+ if (this.weatherLayers[f].active && this.weatherLayers[f].type === "json") {
9557
9560
  let _ = [];
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)
9561
+ if (f === "swell") {
9562
+ I = !0;
9563
+ const A = ((h = this.weatherLayers[f]) == null ? void 0 : h.direction) || {};
9564
+ for (const m in A)
9562
9565
  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;
9566
+ const L = A[m].lng;
9567
+ s > n ? L.forEach((u, b) => {
9568
+ var z, D, N, H, j, G;
9566
9569
  if (i < 2) {
9567
- if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
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]
9570
+ if ((u >= 0 && u <= 360 || u >= -360 && u <= 0) && u % 10 === 0) {
9571
+ const W = Q.point([u, m], {
9572
+ val: ((z = A[m].val) == null ? void 0 : z[b]) || ((D = A[m].dir) == null ? void 0 : D[b]),
9573
+ spd: (N = A[m].spd) == null ? void 0 : N[b]
9571
9574
  });
9572
9575
  _.push(W);
9573
9576
  }
9574
- } else if ((y >= s && y <= 180 || y >= -180 && y <= n) && (!(i <= this.zoom) || y % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
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]
9577
+ } else if ((u >= s && u <= 180 || u >= -180 && u <= n) && (!(i <= this.zoom) || u % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9578
+ const W = Q.point([u, m], {
9579
+ val: ((H = A[m].val) == null ? void 0 : H[b]) || ((j = A[m].dir) == null ? void 0 : j[b]),
9580
+ spd: (G = A[m].spd) == null ? void 0 : G[b]
9578
9581
  });
9579
9582
  _.push(W);
9580
9583
  }
9581
- }) : L.forEach((y, w) => {
9582
- var M, D, N, Q, j, G;
9584
+ }) : L.forEach((u, b) => {
9585
+ var z, D, N, H, j, G;
9583
9586
  if (s < 2) {
9584
- if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
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]
9587
+ if ((u >= 0 && u <= 360 || u >= -360 && u <= 0) && u % 10 === 0) {
9588
+ const W = Q.point([u, m], {
9589
+ val: ((z = A[m].val) == null ? void 0 : z[b]) || ((D = A[m].dir) == null ? void 0 : D[b]),
9590
+ spd: (N = A[m].spd) == null ? void 0 : N[b]
9588
9591
  });
9589
9592
  _.push(W);
9590
9593
  }
9591
- } else if (y >= s && y <= n && (!(i <= this.zoom) || y % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
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]
9594
+ } else if (u >= s && u <= n && (!(i <= this.zoom) || u % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9595
+ const W = Q.point([u, m], {
9596
+ val: ((H = A[m].val) == null ? void 0 : H[b]) || ((j = A[m].dir) == null ? void 0 : j[b]),
9597
+ spd: (G = A[m].spd) == null ? void 0 : G[b]
9595
9598
  });
9596
9599
  _.push(W);
9597
9600
  }
9598
9601
  });
9599
9602
  }
9600
9603
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("swell direction elapsed: ", t, ", total: ", e += t);
9601
- const v = this.weatherLayers[A].height;
9602
- if (v) {
9603
- if (!v.data) {
9604
+ const w = this.weatherLayers[f].height;
9605
+ if (w) {
9606
+ if (!w.data) {
9604
9607
  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
+ for (const L in (p = w.raw) == null ? void 0 : p.LineString) {
9609
+ const u = w.raw.LineString[L];
9610
+ for (const b of u)
9608
9611
  m.push(
9609
- T.lineString(w, {
9612
+ Q.lineString(b, {
9610
9613
  val: Number(L)
9611
9614
  })
9612
9615
  );
9613
- v.data = T.featureCollection(m);
9616
+ w.data = Q.featureCollection(m);
9614
9617
  }
9615
9618
  }
9616
- if (v.data) {
9617
- const m = this.handleBboxClip(v.data, r);
9619
+ if (w.data) {
9620
+ const m = this.handleBboxClip(w.data, r);
9618
9621
  _ = _.concat(m);
9619
9622
  }
9620
9623
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("swell height elapsed: ", t, ", total: ", e += t);
9621
9624
  }
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)
9625
+ } else if (f === "current" && this.showCurrentIsoband) {
9626
+ I = !0;
9627
+ const A = ((v = this.weatherLayers[f]) == null ? void 0 : v.direction) || {};
9628
+ for (const m in A)
9626
9629
  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;
9630
+ const L = A[m].lng;
9631
+ s > n ? L.forEach((u, b) => {
9632
+ var z, D, N, H, j, G;
9630
9633
  if (i < 2) {
9631
- if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
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]
9634
+ if ((u >= 0 && u <= 360 || u >= -360 && u <= 0) && u % 10 === 0) {
9635
+ const W = Q.point([u, m], {
9636
+ val: ((z = A[m].val) == null ? void 0 : z[b]) || ((D = A[m].dir) == null ? void 0 : D[b]),
9637
+ spd: (N = A[m].spd) == null ? void 0 : N[b]
9635
9638
  });
9636
9639
  _.push(W);
9637
9640
  }
9638
- } else if ((y >= s && y <= 180 || y >= -180 && y <= n) && (!(i <= this.zoom) || y % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
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]
9641
+ } else if ((u >= s && u <= 180 || u >= -180 && u <= n) && (!(i <= this.zoom) || u % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9642
+ const W = Q.point([u, m], {
9643
+ val: ((H = A[m].val) == null ? void 0 : H[b]) || ((j = A[m].dir) == null ? void 0 : j[b]),
9644
+ spd: (G = A[m].spd) == null ? void 0 : G[b]
9642
9645
  });
9643
9646
  _.push(W);
9644
9647
  }
9645
- }) : L.forEach((y, w) => {
9646
- var M, D, N, Q, j, G;
9648
+ }) : L.forEach((u, b) => {
9649
+ var z, D, N, H, j, G;
9647
9650
  if (s < 2) {
9648
- if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
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]
9651
+ if ((u >= 0 && u <= 360 || u >= -360 && u <= 0) && u % 10 === 0) {
9652
+ const W = Q.point([u, m], {
9653
+ val: ((z = A[m].val) == null ? void 0 : z[b]) || ((D = A[m].dir) == null ? void 0 : D[b]),
9654
+ spd: (N = A[m].spd) == null ? void 0 : N[b]
9652
9655
  });
9653
9656
  _.push(W);
9654
9657
  }
9655
- } else if (y >= s && y <= n && (!(i <= this.zoom) || y % (i < this.zoom / 2 ? 5 : 3) === 0)) {
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]
9658
+ } else if (u >= s && u <= n && (!(i <= this.zoom) || u % (i < this.zoom / 2 ? 5 : 3) === 0)) {
9659
+ const W = Q.point([u, m], {
9660
+ val: ((H = A[m].val) == null ? void 0 : H[b]) || ((j = A[m].dir) == null ? void 0 : j[b]),
9661
+ spd: (G = A[m].spd) == null ? void 0 : G[b]
9659
9662
  });
9660
9663
  _.push(W);
9661
9664
  }
9662
9665
  });
9663
9666
  }
9664
9667
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current direction elapsed: ", t, ", total: ", e += t);
9665
- const v = this.weatherLayers[A].speed;
9666
- if (v) {
9667
- if (!v.data) {
9668
+ const w = this.weatherLayers[f].speed;
9669
+ if (w) {
9670
+ if (!w.data) {
9668
9671
  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
+ for (const u in (x = w.raw) == null ? void 0 : x.Polygon) {
9673
+ const b = w.raw.Polygon[u];
9674
+ for (const z of b)
9672
9675
  L.push(
9673
- T.polygon(M, {
9674
- val: Number(y)
9676
+ Q.polygon(z, {
9677
+ val: Number(u)
9675
9678
  })
9676
9679
  );
9677
9680
  }
9678
- v.data = T.featureCollection(L);
9681
+ w.data = Q.featureCollection(L);
9679
9682
  }
9680
- const m = i < this.zoom ? v.data.features.filter((L) => L.properties.val > 0.5) : v.data.features;
9683
+ const m = i < this.zoom ? w.data.features.filter((L) => L.properties.val > 0.5) : w.data.features;
9681
9684
  _ = _.concat(m), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current speed elapsed: ", t, ", total: ", e += t);
9682
9685
  }
9683
- } else if (A === "wind" && this.showWindFeather) {
9684
- B = !0;
9685
- const f = this.weatherLayers.wind.raw;
9686
- for (const v in f)
9687
- if (v > l && v < c && (!(i <= this.zoom) || v % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9688
- const m = f[v].lng;
9689
- s > n ? m.forEach((L, y) => {
9690
- var w, M, D, N;
9686
+ } else if (f === "wind" && this.showWindFeather) {
9687
+ I = !0;
9688
+ const A = this.weatherLayers.wind.raw;
9689
+ for (const w in A)
9690
+ if (w > l && w < c && (!(i <= this.zoom) || w % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9691
+ const m = A[w].lng;
9692
+ s > n ? m.forEach((L, u) => {
9693
+ var b, z, D, N;
9691
9694
  if (i < 2) {
9692
9695
  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]),
9695
- spd: f[v].spd[y]
9696
+ const H = Q.point([L, w], {
9697
+ dir: ((b = A[w].val) == null ? void 0 : b[u]) || ((z = A[w].dir) == null ? void 0 : z[u]),
9698
+ spd: A[w].spd[u]
9696
9699
  });
9697
- _.push(Q);
9700
+ _.push(H);
9698
9701
  }
9699
9702
  } 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]),
9702
- spd: f[v].spd[y]
9703
+ const H = Q.point([L, w], {
9704
+ dir: ((D = A[w].val) == null ? void 0 : D[u]) || ((N = A[w].dir) == null ? void 0 : N[u]),
9705
+ spd: A[w].spd[u]
9703
9706
  });
9704
- _.push(Q);
9707
+ _.push(H);
9705
9708
  }
9706
- }) : m.forEach((L, y) => {
9707
- var w, M, D, N;
9709
+ }) : m.forEach((L, u) => {
9710
+ var b, z, D, N;
9708
9711
  if (i < 2) {
9709
9712
  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]),
9712
- spd: f[v].spd[y]
9713
+ const H = Q.point([L, w], {
9714
+ dir: ((b = A[w].val) == null ? void 0 : b[u]) || ((z = A[w].dir) == null ? void 0 : z[u]),
9715
+ spd: A[w].spd[u]
9713
9716
  });
9714
- _.push(Q);
9717
+ _.push(H);
9715
9718
  }
9716
9719
  } 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]),
9719
- spd: f[v].spd[y]
9720
+ const H = Q.point([L, w], {
9721
+ dir: ((D = A[w].val) == null ? void 0 : D[u]) || ((N = A[w].dir) == null ? void 0 : N[u]),
9722
+ spd: A[w].spd[u]
9720
9723
  });
9721
- _.push(Q);
9724
+ _.push(H);
9722
9725
  }
9723
9726
  });
9724
9727
  }
9725
9728
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("wind barb elapsed: ", t, ", total: ", e += t);
9726
- } else if (A === "sig-wave-height") {
9727
- if (this.weatherLayers[A].data)
9728
- _ = this.weatherLayers[A].data;
9729
+ } else if (f === "sig-wave-height") {
9730
+ if (this.weatherLayers[f].data)
9731
+ _ = this.weatherLayers[f].data;
9729
9732
  else {
9730
- B = !0;
9731
- const f = this.weatherLayers[A].raw;
9732
- if (f) {
9733
- const v = [];
9734
- for (const m in f.Polygon) {
9735
- const L = f.Polygon[m];
9736
- for (const y of L)
9737
- v.push(
9738
- T.polygon(y, {
9733
+ I = !0;
9734
+ const A = this.weatherLayers[f].raw;
9735
+ if (A) {
9736
+ const w = [];
9737
+ for (const m in A.Polygon) {
9738
+ const L = A.Polygon[m];
9739
+ for (const u of L)
9740
+ w.push(
9741
+ Q.polygon(u, {
9739
9742
  val: Number(m)
9740
9743
  })
9741
9744
  );
9742
9745
  }
9743
- for (const m in f.MultiPolygon) {
9744
- const L = f.MultiPolygon[m];
9745
- for (const y of L)
9746
- v.push(
9747
- T.multiPolygon(y, {
9746
+ for (const m in A.MultiPolygon) {
9747
+ const L = A.MultiPolygon[m];
9748
+ for (const u of L)
9749
+ w.push(
9750
+ Q.multiPolygon(u, {
9748
9751
  val: Number(m)
9749
9752
  })
9750
9753
  );
9751
9754
  }
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++)
9755
- v.push(
9756
- T.point([L.lng[y], m], {
9757
- val: Number(L.val[y])
9755
+ for (const m in A.Point) {
9756
+ const L = A.Point[m];
9757
+ for (let u = 0; u < ((E = L.lng) == null ? void 0 : E.length); u++)
9758
+ w.push(
9759
+ Q.point([L.lng[u], m], {
9760
+ val: Number(L.val[u])
9758
9761
  })
9759
9762
  );
9760
9763
  }
9761
- _ = _.concat(v);
9764
+ _ = _.concat(w);
9762
9765
  }
9763
9766
  }
9764
9767
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("sigWave elapsed: ", t, ", total: ", e += t);
9765
- } else if (A === "prmsl") {
9766
- if (this.weatherLayers[A].data)
9767
- _ = this.weatherLayers[A].data;
9768
+ } else if (f === "prmsl") {
9769
+ if (this.weatherLayers[f].data)
9770
+ _ = this.weatherLayers[f].data;
9768
9771
  else {
9769
- B = !0;
9770
- const f = this.weatherLayers[A].raw;
9771
- if (f) {
9772
- const v = [];
9773
- for (const m in f.LineString) {
9774
- const L = f.LineString[m];
9775
- for (const y of L)
9776
- v.push(
9777
- T.lineString(y, {
9772
+ I = !0;
9773
+ const A = this.weatherLayers[f].raw;
9774
+ if (A) {
9775
+ const w = [];
9776
+ for (const m in A.LineString) {
9777
+ const L = A.LineString[m];
9778
+ for (const u of L)
9779
+ w.push(
9780
+ Q.lineString(u, {
9778
9781
  val: Number(m)
9779
9782
  })
9780
9783
  );
9781
9784
  }
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]
9785
+ for (const m in A.Point)
9786
+ A.Point[m].lng.forEach((L, u) => {
9787
+ L = le.convertToStdLng(L), w.push(
9788
+ Q.point([L, m], {
9789
+ val: A.Point[m].val[u],
9790
+ type: A.Point[m].type[u]
9788
9791
  })
9789
9792
  );
9790
9793
  });
9791
- _ = _.concat(v);
9794
+ _ = _.concat(w);
9792
9795
  }
9793
9796
  }
9794
9797
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("prmsl elapsed: ", t, ", total: ", e += t);
9795
9798
  }
9796
- _.length && (this.weatherLayers[A].data = T.featureCollection(_)), B && (this.weatherLayers[A].version = Math.random() + 1);
9799
+ _.length && (this.weatherLayers[f].data = Q.featureCollection(_)), I && (this.weatherLayers[f].version = Math.random() + 1);
9797
9800
  }
9798
9801
  }
9799
9802
  },
@@ -9804,14 +9807,14 @@ const js = {
9804
9807
  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"));
9805
9808
  },
9806
9809
  handleBboxClip(a, e) {
9807
- const t = [], r = ne.convertToStdLng(e._sw.lng), i = ne.convertToStdLng(e._ne.lng);
9810
+ const t = [], r = le.convertToStdLng(e._sw.lng), i = le.convertToStdLng(e._ne.lng);
9808
9811
  return a.features.forEach((s) => {
9809
9812
  if (s.geometry.type !== "Point")
9810
9813
  if (r > i) {
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);
9814
+ let n = [r, e._sw.lat, 180, e._ne.lat], l = Q.bboxClip(s, n);
9815
+ l.geometry.coordinates.length && t.push(l), n = [-180, e._sw.lat, i, e._ne.lat], l = Q.bboxClip(s, n), l.geometry.coordinates.length && t.push(l);
9813
9816
  } else {
9814
- const n = [r, e._sw.lat, i, e._ne.lat], l = T.bboxClip(s, n);
9817
+ const n = [r, e._sw.lat, i, e._ne.lat], l = Q.bboxClip(s, n);
9815
9818
  l.geometry.coordinates.length && t.push(l);
9816
9819
  }
9817
9820
  else
@@ -9829,8 +9832,8 @@ const js = {
9829
9832
  this.handleBeforeLayerToggle();
9830
9833
  },
9831
9834
  handleBeforeLayerToggle() {
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");
9835
+ var a, e, t, r, i, s, n, l, c, d, h, p, v, x, E, f;
9836
+ (a = this.map) != null && a.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (t = this.otherLayers) != null && t["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (s = this.otherLayers) != null && s["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (l = this.otherLayers) != null && l.pirates || (c = this.otherLayers) != null && c.ports || (d = this.otherLayers) != null && d.enc || (h = this.otherLayers) != null && h.world12nm || (p = this.otherLayers) != null && p.worldMarine || (v = this.otherLayers) != null && v.chinaRoute || (x = this.otherLayers) != null && x["voluntary-reporting-area"] || (E = this.otherLayers) != null && E["eca-zones"] || (f = this.otherLayers) != null && f["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
9834
9837
  },
9835
9838
  handleDateChange(a = { tropicals: !1 }) {
9836
9839
  this.fetchWeatherLayers(a), this.fetchOtherLayers({ dayNight: !0 });
@@ -9864,8 +9867,8 @@ const js = {
9864
9867
  }
9865
9868
  },
9866
9869
  handle3dToggle(a) {
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)));
9870
+ var e, t, r, i, s, n, l, c, d, h, p, v, x, E, f, I, _, A, w, m;
9871
+ a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((s = this.map) == null || s.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (l = this.map) != null && l.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((h = this.map) == null || h.moveLayer((d = this.viewport) == null ? void 0 : d.particleLayer, this.helper.mapboxCustomer.layers.water.id))) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", (v = this.map) != null && v.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((x = this.map) != null && x.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((f = this.map) == null || f.moveLayer((E = this.viewport) == null ? void 0 : E.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (_ = this.map) != null && _.getLayer((I = this.viewport) == null ? void 0 : I.particleLayer) && ((A = this.map) != null && A.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((m = this.map) == null || m.moveLayer((w = this.viewport) == null ? void 0 : w.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
9869
9872
  },
9870
9873
  handleParticle(a) {
9871
9874
  this.particleFactor = a, this.weatherLayers[a.key] && (this.weatherLayers[a.key].particle = a.particle), this.activeWeatherLayers.map((r) => {
@@ -9889,9 +9892,9 @@ const js = {
9889
9892
  class: "map-gl-home"
9890
9893
  };
9891
9894
  function Gs(a, e, t, r, i, s) {
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
+ var V, ye, ne, fe, xe, be, _e, B, ke, Le, De, Be, ze, Ie, ie, J, P, Ce, K, Z, Se, S, Ae, Me, Te, Qe, M, O, Ge, Ue;
9896
+ const n = R("IdmGlLayer"), l = R("IdmENC"), c = R("IdmWorld12nm"), d = R("IdmWorldMarine"), h = R("IdmChinaRoute"), p = R("IdmSigWave"), v = R("IdmSwell"), x = R("IdmPrmsl"), E = R("IdmIceEdge"), f = R("IdmIceCover"), I = R("IdmIceThickness"), _ = R("IdmTropicals"), A = R("IdmCurrents"), w = R("IdmCurrentParticle"), m = R("IdmWindBarb"), L = R("IdmWindParticle"), u = R("IdmPrecip3h"), b = R("IdmVisibility"), z = R("IdmWaterTemp"), D = R("IdmTemp"), N = R("IdmWarZone"), H = R("IdmGmdssArea"), j = R("IdmEcaZone"), G = R("IdmAlertZone"), W = R("IdmPort"), ce = R("IdmLoadLine"), re = R("IdmTimezone"), de = R("IdmVRA"), we = R("IdmSpecialArea"), pe = R("IdmTerminator"), ve = R("IdmLatLng"), me = R("IdmMeasure"), U = R("IdmPoint");
9897
+ return t.map ? (g(), y("div", Ws, [
9895
9898
  F(n, X({
9896
9899
  ref: "layer",
9897
9900
  map: t.map,
@@ -9907,47 +9910,47 @@ function Gs(a, e, t, r, i, s) {
9907
9910
  "forecast-model": t.forecastModel,
9908
9911
  onWeather: s.handleWeatherLayerChange,
9909
9912
  onOther: s.handleOtherLayerChange,
9910
- onToggleWindParticle: e[0] || (e[0] = (re) => i.showWindParticle = re),
9911
- onToggleWindFeather: e[1] || (e[1] = (re) => {
9912
- (i.showWindFeather = re) && s.handleDrawWeather4Json();
9913
+ onToggleWindParticle: e[0] || (e[0] = (oe) => i.showWindParticle = oe),
9914
+ onToggleWindFeather: e[1] || (e[1] = (oe) => {
9915
+ (i.showWindFeather = oe) && s.handleDrawWeather4Json();
9913
9916
  }),
9914
- onToggleCurrentParticle: e[2] || (e[2] = (re) => i.showCurrentParticle = re),
9915
- onToggleCurrentIsoband: e[3] || (e[3] = (re) => {
9916
- (i.showCurrentIsoband = re) && s.handleDrawWeather4Json();
9917
+ onToggleCurrentParticle: e[2] || (e[2] = (oe) => i.showCurrentParticle = oe),
9918
+ onToggleCurrentIsoband: e[3] || (e[3] = (oe) => {
9919
+ (i.showCurrentIsoband = oe) && s.handleDrawWeather4Json();
9917
9920
  }),
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),
9921
+ onToggleWindParticeVersion: e[4] || (e[4] = (oe) => i.toggleWindParticeVersion = Math.random()),
9922
+ onToggleCurrentParticeVersion: e[5] || (e[5] = (oe) => i.toggleCurrentParticeVersion = Math.random()),
9923
+ onCoordinate: e[6] || (e[6] = (oe) => i.showCoord = oe),
9924
+ onMeasure: e[7] || (e[7] = (oe) => i.showMeasure = oe),
9925
+ onPoint: e[8] || (e[8] = (oe) => i.showPoint = oe),
9923
9926
  on3d: s.handle3dToggle,
9924
9927
  onHandleToggleVersion: s.handleToggleVersion
9925
9928
  }), 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"]),
9926
9929
  F(l, X({
9927
9930
  map: t.map,
9928
9931
  token: t.token,
9929
- enabled: (ae = i.otherLayers) == null ? void 0 : ae.enc,
9932
+ enabled: (V = i.otherLayers) == null ? void 0 : V.enc,
9930
9933
  "toggle-version": t.toggleVersion
9931
9934
  }, a.$attrs, {
9932
- onEnc: e[9] || (e[9] = (re) => i.enc = re)
9935
+ onEnc: e[9] || (e[9] = (oe) => i.enc = oe)
9933
9936
  }), null, 16, ["map", "token", "enabled", "toggle-version"]),
9934
9937
  F(c, X({
9935
9938
  map: t.map,
9936
9939
  token: t.token,
9937
9940
  "weather-layers": i.weatherLayers,
9938
- enabled: (Ae = i.otherLayers) == null ? void 0 : Ae.world12nm
9941
+ enabled: (ye = i.otherLayers) == null ? void 0 : ye.world12nm
9939
9942
  }, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
9940
9943
  F(d, X({
9941
9944
  map: t.map,
9942
9945
  token: t.token,
9943
9946
  "weather-layers": i.weatherLayers,
9944
- enabled: (ge = i.otherLayers) == null ? void 0 : ge.worldMarine
9947
+ enabled: (ne = i.otherLayers) == null ? void 0 : ne.worldMarine
9945
9948
  }, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
9946
9949
  F(h, X({
9947
9950
  map: t.map,
9948
9951
  token: t.token,
9949
9952
  "weather-layers": i.weatherLayers,
9950
- enabled: (we = i.otherLayers) == null ? void 0 : we.chinaRoute
9953
+ enabled: (fe = i.otherLayers) == null ? void 0 : fe.chinaRoute
9951
9954
  }, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
9952
9955
  F(p, X({
9953
9956
  map: t.map,
@@ -9955,7 +9958,7 @@ function Gs(a, e, t, r, i, s) {
9955
9958
  "before-layer": t.beforeLayer,
9956
9959
  "active-weather-layers": i.activeWeatherLayers
9957
9960
  }, a.$attrs), null, 16, ["map", "sig-wave", "before-layer", "active-weather-layers"]),
9958
- F(b, X({
9961
+ F(v, X({
9959
9962
  map: t.map,
9960
9963
  swell: (be = i.weatherLayers) == null ? void 0 : be.swell,
9961
9964
  "before-layer": t.beforeLayer,
@@ -9969,17 +9972,17 @@ function Gs(a, e, t, r, i, s) {
9969
9972
  }, a.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
9970
9973
  F(E, X({
9971
9974
  viewport: i.viewport,
9972
- factor: (I = i.weatherLayers) == null ? void 0 : I["ice-edge"],
9975
+ factor: (B = i.weatherLayers) == null ? void 0 : B["ice-edge"],
9973
9976
  "toggle-version": t.toggleVersion,
9974
9977
  "before-layer": t.beforeLayer
9975
9978
  }, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
9976
- F(A, X({
9979
+ F(f, X({
9977
9980
  viewport: i.viewport,
9978
- factor: (ze = i.weatherLayers) == null ? void 0 : ze["ice-cover"],
9981
+ factor: (ke = i.weatherLayers) == null ? void 0 : ke["ice-cover"],
9979
9982
  "toggle-version": t.toggleVersion,
9980
9983
  "before-layer": t.beforeLayer
9981
9984
  }, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
9982
- F(B, X({
9985
+ F(I, X({
9983
9986
  viewport: i.viewport,
9984
9987
  factor: (Le = i.weatherLayers) == null ? void 0 : Le["ice-thickness"],
9985
9988
  "toggle-version": t.toggleVersion,
@@ -9988,13 +9991,13 @@ function Gs(a, e, t, r, i, s) {
9988
9991
  F(_, X({
9989
9992
  map: t.map,
9990
9993
  date: t.ts,
9991
- tropicals: (Pe = i.weatherLayers) == null ? void 0 : Pe.tropicals,
9994
+ tropicals: (De = i.weatherLayers) == null ? void 0 : De.tropicals,
9992
9995
  "before-layer": t.beforeLayer
9993
9996
  }, a.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
9994
- F(f, X({
9997
+ F(A, X({
9995
9998
  map: t.map,
9996
9999
  "map-projection": i.mapProjection,
9997
- current: (Ee = i.weatherLayers) == null ? void 0 : Ee.current,
10000
+ current: (Be = i.weatherLayers) == null ? void 0 : Be.current,
9998
10001
  "before-layer": t.beforeLayer,
9999
10002
  "show-current-isoband": i.showCurrentIsoband,
10000
10003
  "show-current-particle": i.showCurrentParticle,
@@ -10006,9 +10009,9 @@ function Gs(a, e, t, r, i, s) {
10006
10009
  onParticle: s.handleParticle,
10007
10010
  onHandleToggleVersion: s.handleToggleVersion
10008
10011
  }), 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"]),
10009
- F(v, X({
10012
+ F(w, X({
10010
10013
  viewport: i.viewport,
10011
- factor: (He = i.weatherLayers) == null ? void 0 : He["current-particle"],
10014
+ factor: (ze = i.weatherLayers) == null ? void 0 : ze["current-particle"],
10012
10015
  "before-layer": t.beforeLayer,
10013
10016
  "toggle-version": t.toggleVersion
10014
10017
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
@@ -10016,8 +10019,8 @@ function Gs(a, e, t, r, i, s) {
10016
10019
  ref: "windBarb",
10017
10020
  map: t.map,
10018
10021
  "map-projection": i.mapProjection,
10019
- wind: (ke = i.weatherLayers) == null ? void 0 : ke.wind,
10020
- current: (oe = i.weatherLayers) == null ? void 0 : oe.current,
10022
+ wind: (Ie = i.weatherLayers) == null ? void 0 : Ie.wind,
10023
+ current: (ie = i.weatherLayers) == null ? void 0 : ie.current,
10021
10024
  "before-layer": t.beforeLayer,
10022
10025
  "margin-bottom": i.showRampColor ? "56px" : "30px",
10023
10026
  "show-wind-feather": i.showWindFeather,
@@ -10030,23 +10033,23 @@ function Gs(a, e, t, r, i, s) {
10030
10033
  }), 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"]),
10031
10034
  F(L, X({
10032
10035
  viewport: i.viewport,
10033
- factor: (me = i.weatherLayers) == null ? void 0 : me["wind-particle"],
10036
+ factor: (J = i.weatherLayers) == null ? void 0 : J["wind-particle"],
10034
10037
  "before-layer": t.beforeLayer,
10035
10038
  "toggle-version": t.toggleVersion
10036
10039
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
10037
- F(y, X({
10040
+ F(u, X({
10038
10041
  viewport: i.viewport,
10039
- factor: (H = i.weatherLayers) == null ? void 0 : H.precip3h,
10042
+ factor: (P = i.weatherLayers) == null ? void 0 : P.precip3h,
10040
10043
  "before-layer": t.beforeLayer,
10041
10044
  "toggle-version": t.toggleVersion
10042
10045
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
10043
- F(w, X({
10046
+ F(b, X({
10044
10047
  viewport: i.viewport,
10045
- factor: (Be = i.weatherLayers) == null ? void 0 : Be.visibility,
10048
+ factor: (Ce = i.weatherLayers) == null ? void 0 : Ce.visibility,
10046
10049
  "before-layer": t.beforeLayer,
10047
10050
  "toggle-version": t.toggleVersion
10048
10051
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
10049
- F(M, X({
10052
+ F(z, X({
10050
10053
  viewport: i.viewport,
10051
10054
  factor: (K = i.weatherLayers) == null ? void 0 : K["water-temp"],
10052
10055
  "before-layer": t.beforeLayer,
@@ -10054,57 +10057,57 @@ function Gs(a, e, t, r, i, s) {
10054
10057
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
10055
10058
  F(D, X({
10056
10059
  viewport: i.viewport,
10057
- factor: (q = i.weatherLayers) == null ? void 0 : q.temp,
10060
+ factor: (Z = i.weatherLayers) == null ? void 0 : Z.temp,
10058
10061
  "before-layer": t.beforeLayer,
10059
10062
  "toggle-version": t.toggleVersion
10060
10063
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
10061
10064
  F(N, X({
10062
10065
  map: t.map,
10063
- zone: (Me = i.otherLayers) == null ? void 0 : Me["war-zones"],
10066
+ zone: (Se = i.otherLayers) == null ? void 0 : Se["war-zones"],
10064
10067
  "before-layer": t.beforeLayer
10065
10068
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
10066
- F(Q, X({
10069
+ F(H, X({
10067
10070
  map: t.map,
10068
- area: (P = i.otherLayers) == null ? void 0 : P["gmdss-areas"],
10071
+ area: (S = i.otherLayers) == null ? void 0 : S["gmdss-areas"],
10069
10072
  "before-layer": t.beforeLayer
10070
10073
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
10071
10074
  F(j, X({
10072
10075
  map: t.map,
10073
- zone: (ue = i.otherLayers) == null ? void 0 : ue["eca-zones"],
10076
+ zone: (Ae = i.otherLayers) == null ? void 0 : Ae["eca-zones"],
10074
10077
  "before-layer": t.beforeLayer
10075
10078
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
10076
10079
  F(G, X({
10077
10080
  map: t.map,
10078
- zone: (De = i.otherLayers) == null ? void 0 : De["alert-zones"],
10081
+ zone: (Me = i.otherLayers) == null ? void 0 : Me["alert-zones"],
10079
10082
  "before-layer": t.beforeLayer
10080
10083
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
10081
10084
  F(W, X({
10082
10085
  map: t.map,
10083
- port: (Se = i.otherLayers) == null ? void 0 : Se.ports,
10086
+ port: (Te = i.otherLayers) == null ? void 0 : Te.ports,
10084
10087
  "before-layer": t.beforeLayer,
10085
10088
  "forecast-model": t.forecastModel
10086
10089
  }, a.$attrs), null, 16, ["map", "port", "before-layer", "forecast-model"]),
10087
- F(he, X({
10090
+ F(ce, X({
10088
10091
  map: t.map,
10089
- line: (Te = i.otherLayers) == null ? void 0 : Te["load-lines"],
10092
+ line: (Qe = i.otherLayers) == null ? void 0 : Qe["load-lines"],
10090
10093
  "before-layer": t.beforeLayer
10091
10094
  }, a.$attrs), null, 16, ["map", "line", "before-layer"]),
10092
- F(te, X({
10095
+ F(re, X({
10093
10096
  map: t.map,
10094
- zone: (z = i.otherLayers) == null ? void 0 : z["time-zones"],
10097
+ zone: (M = i.otherLayers) == null ? void 0 : M["time-zones"],
10095
10098
  "before-layer": t.beforeLayer
10096
10099
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
10097
- F(pe, X({
10100
+ F(de, X({
10098
10101
  map: t.map,
10099
10102
  area: (O = i.otherLayers) == null ? void 0 : O["voluntary-reporting-area"],
10100
10103
  "before-layer": t.beforeLayer
10101
10104
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
10102
- F(ye, X({
10105
+ F(we, X({
10103
10106
  map: t.map,
10104
10107
  area: (Ge = i.otherLayers) == null ? void 0 : Ge["special-area"],
10105
10108
  "before-layer": t.beforeLayer
10106
10109
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
10107
- F(se, X({
10110
+ F(pe, X({
10108
10111
  map: t.map,
10109
10112
  area: (Ue = i.otherLayers) == null ? void 0 : Ue["day-night"]
10110
10113
  }, a.$attrs), null, 16, ["map", "area"]),
@@ -10113,11 +10116,11 @@ function Gs(a, e, t, r, i, s) {
10113
10116
  show: i.showCoord,
10114
10117
  "toggle-version": t.toggleVersion
10115
10118
  }, a.$attrs), null, 16, ["map", "show", "toggle-version"]),
10116
- F(fe, X({
10119
+ F(me, X({
10117
10120
  map: t.map,
10118
10121
  show: i.showMeasure
10119
10122
  }, a.$attrs), null, 16, ["map", "show"]),
10120
- F(Y, X({
10123
+ F(U, X({
10121
10124
  ref: "idmPoint",
10122
10125
  map: t.map,
10123
10126
  show: i.showPoint,
@@ -10127,9 +10130,9 @@ function Gs(a, e, t, r, i, s) {
10127
10130
  gateway: i.gateway,
10128
10131
  "forecast-model": t.forecastModel
10129
10132
  }, a.$attrs), null, 16, ["map", "show", "meteo", "ts", "token", "gateway", "forecast-model"])
10130
- ], 512)) : J("", !0);
10133
+ ], 512)) : q("", !0);
10131
10134
  }
10132
- const Us = /* @__PURE__ */ U(js, [["render", Gs]]), ao = {
10135
+ const Us = /* @__PURE__ */ Y(js, [["render", Gs]]), ao = {
10133
10136
  install(a) {
10134
10137
  a.component("MapboxGL", Us), a.component("TropicalGL", dt), a.component("LatLngGL", pt);
10135
10138
  }
@@ -10139,9 +10142,9 @@ export {
10139
10142
  Us as MapboxGL,
10140
10143
  ao as MapboxGLPlugin,
10141
10144
  na as MapboxHelper,
10142
- Ce as ParticleSchema,
10145
+ Ee as ParticleSchema,
10143
10146
  dt as TropicalGL,
10144
10147
  et as Viewport,
10145
10148
  We as WebGL,
10146
- le as WebGLSchema
10149
+ he as WebGLSchema
10147
10150
  };