@idmwx/idmui-gl3 6.2.5 → 6.2.7

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,11 +1,11 @@
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
3
  var te = (a, e, t) => (ut(a, typeof e != "symbol" ? e + "" : e, t), t);
4
- import { LayerHelper as Ve, CompanyHelper as Ze } from "@idm-plugin/tag";
4
+ import { LayerHelper as Ze, CompanyHelper as qe } from "@idm-plugin/tag";
5
5
  import ee from "moment";
6
6
  import Qe from "axios";
7
7
  import Ye from "moment-timezone";
8
- import { resolveComponent as R, openBlock as m, createElementBlock as u, createElementVNode as o, normalizeStyle as le, createVNode as H, withCtx as Ie, normalizeClass as Z, Fragment as V, renderList as $, toDisplayString as I, createCommentVNode as J, createBlock as gt, createTextVNode as ne, withDirectives as Fe, createStaticVNode as yt, vShow as Oe, defineComponent as ft, withModifiers as qe, mergeProps as X } from "vue";
8
+ import { resolveComponent as R, openBlock as m, createElementBlock as g, createElementVNode as o, normalizeStyle as le, createVNode as H, withCtx as Ie, normalizeClass as Z, Fragment as V, renderList as $, toDisplayString as I, createCommentVNode as J, createBlock as gt, createTextVNode as ne, withDirectives as Fe, createStaticVNode as yt, vShow as Oe, defineComponent as ft, withModifiers as Ve, mergeProps as X } from "vue";
9
9
  import * as S from "@turf/turf";
10
10
  import At from "@mapbox/sphericalmercator";
11
11
  import je from "mapbox-gl";
@@ -72,9 +72,9 @@ const U = (a, e) => {
72
72
  autoActive: !0,
73
73
  layers: {
74
74
  weather: [
75
- ...Ve.WEATHER_LAYERS.filter((a) => !["swell-height", "swell-direction", "current-direction", "current-speed"].includes(a.key))
75
+ ...Ze.WEATHER_LAYERS.filter((a) => !["swell-height", "swell-direction", "current-direction", "current-speed"].includes(a.key))
76
76
  ],
77
- other: [...Ve.OTHER_LAYERS.filter((a) => a.enabled)]
77
+ other: [...Ze.OTHER_LAYERS.filter((a) => a.enabled)]
78
78
  },
79
79
  activeWeatherLayers: [],
80
80
  activeWeatherLayersCollected: [],
@@ -302,7 +302,7 @@ 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"), p = R("ElScrollbar");
305
- return m(), u("div", vt, [
305
+ return m(), g("div", vt, [
306
306
  o("div", {
307
307
  class: "menu-bar-box",
308
308
  style: le({ top: t.top + 10 + "px", right: i.right + "px" })
@@ -397,7 +397,7 @@ function aa(a, e, t, r, i, s) {
397
397
  })
398
398
  ])
399
399
  ], 4),
400
- s.hasCollectedLayers ? (m(), u("div", {
400
+ s.hasCollectedLayers ? (m(), g("div", {
401
401
  key: 0,
402
402
  class: "active-layers",
403
403
  style: le({ right: i.right + "px", bottom: "100px" })
@@ -409,10 +409,10 @@ function aa(a, e, t, r, i, s) {
409
409
  style: { "font-size": "28px", "margin-right": "0" },
410
410
  onClick: e[5] || (e[5] = (...h) => s.toggleAutoActive && s.toggleAutoActive(...h))
411
411
  }, [
412
- i.autoActive ? (m(), u("i", xt, "")) : (m(), u("i", _t, ""))
412
+ i.autoActive ? (m(), g("i", xt, "")) : (m(), g("i", _t, ""))
413
413
  ])
414
414
  ]),
415
- (m(!0), u(V, null, $(i.layers.weather.filter((h) => h.collected), (h) => (m(), u("div", {
415
+ (m(!0), g(V, null, $(i.layers.weather.filter((h) => h.collected), (h) => (m(), g("div", {
416
416
  key: h.key,
417
417
  class: Z(s.computeLayerClass(h, i.activeWeatherLayersCollected))
418
418
  }, [
@@ -424,7 +424,7 @@ function aa(a, e, t, r, i, s) {
424
424
  class: "name",
425
425
  onClick: (d) => s.handleWeatherLayerPick(h)
426
426
  }, I(h.name), 9, It),
427
- h.key === "wind" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(), u("div", Et, [
427
+ h.key === "wind" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(), g("div", Et, [
428
428
  o("i", {
429
429
  class: Z(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
430
430
  onClick: e[6] || (e[6] = (d) => s.handleToggleWindParticle())
@@ -434,7 +434,7 @@ function aa(a, e, t, r, i, s) {
434
434
  onClick: e[7] || (e[7] = (d) => s.handleToggleWindFeather())
435
435
  }, "", 2)
436
436
  ])) : J("", !0),
437
- h.key === "current" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(), u("div", kt, [
437
+ h.key === "current" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(), g("div", kt, [
438
438
  o("i", {
439
439
  class: Z(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
440
440
  onClick: e[8] || (e[8] = (d) => s.handleToggleCurrentParticle())
@@ -470,14 +470,14 @@ function aa(a, e, t, r, i, s) {
470
470
  style: { "margin-right": "0" },
471
471
  onClick: e[11] || (e[11] = (...h) => s.toggleAutoActive && s.toggleAutoActive(...h))
472
472
  }, [
473
- i.autoActive ? (m(), u("i", Mt, "")) : (m(), u("i", St, ""))
473
+ i.autoActive ? (m(), g("i", Mt, "")) : (m(), g("i", St, ""))
474
474
  ])
475
475
  ]),
476
476
  o("div", Tt, [
477
- (m(!0), u(V, null, $(i.layers.weather, (h) => (m(), u(V, {
477
+ (m(!0), g(V, null, $(i.layers.weather, (h) => (m(), g(V, {
478
478
  key: h.key
479
479
  }, [
480
- h.hide ? J("", !0) : (m(), u("div", {
480
+ h.hide ? J("", !0) : (m(), g("div", {
481
481
  key: 0,
482
482
  class: Z(s.computeLayerClass(h, i.activeWeatherLayersCollected))
483
483
  }, [
@@ -490,7 +490,7 @@ function aa(a, e, t, r, i, s) {
490
490
  class: "name",
491
491
  onClick: (d) => s.handleWeatherLayerPick(h)
492
492
  }, I(h.name), 9, Nt),
493
- h.key === "wind" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(), u("div", Ft, [
493
+ h.key === "wind" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(), g("div", Ft, [
494
494
  o("i", {
495
495
  class: Z(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
496
496
  onClick: e[12] || (e[12] = (d) => s.handleToggleWindParticle())
@@ -500,7 +500,7 @@ function aa(a, e, t, r, i, s) {
500
500
  onClick: e[13] || (e[13] = (d) => s.handleToggleWindFeather())
501
501
  }, "", 2)
502
502
  ])) : J("", !0),
503
- h.key === "current" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(), u("div", Ot, [
503
+ h.key === "current" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(), g("div", Ot, [
504
504
  o("i", {
505
505
  class: Z(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
506
506
  onClick: e[14] || (e[14] = (d) => s.handleToggleCurrentParticle())
@@ -514,7 +514,7 @@ function aa(a, e, t, r, i, s) {
514
514
  o("div", {
515
515
  onClick: (d) => s.handleWeatherLayerCollect(h)
516
516
  }, [
517
- h.collected ? (m(), u("i", jt, "")) : (m(), u("i", Wt, ""))
517
+ h.collected ? (m(), g("i", jt, "")) : (m(), g("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
- (m(!0), u(V, null, $(i.layers.other, (h) => {
533
+ (m(!0), g(V, null, $(i.layers.other, (h) => {
534
534
  var d;
535
- return m(), u("div", {
535
+ return m(), g("div", {
536
536
  key: h.key,
537
537
  class: Z(["layer flex-between", s.computeLayerClass(h, i.activeOtherLayers)]),
538
538
  onClick: (A) => s.handleOtherLayerPick(h)
539
539
  }, [
540
540
  o("div", Kt, [
541
541
  o("div", Xt, [
542
- (d = s.computeLayerClass(h, i.activeOtherLayers)) != null && d.includes("active") ? (m(), u("i", Jt, "")) : (m(), u("i", qt, ""))
542
+ (d = s.computeLayerClass(h, i.activeOtherLayers)) != null && d.includes("active") ? (m(), g("i", Jt, "")) : (m(), g("i", qt, ""))
543
543
  ]),
544
544
  o("span", null, I(h.name), 1)
545
545
  ])
@@ -557,16 +557,16 @@ function aa(a, e, t, r, i, s) {
557
557
  style: { width: "180px", "align-items": "flex-start" }
558
558
  }, {
559
559
  default: Ie(() => [
560
- (m(!0), u(V, null, $(i.sourceList, (h, d) => (m(), gt(l, {
560
+ (m(!0), g(V, null, $(i.sourceList, (h, d) => (m(), gt(l, {
561
561
  key: `source${h.name}`,
562
562
  value: h.name
563
563
  }, {
564
564
  default: Ie(() => {
565
- var A, v, E, w, k, _;
565
+ var A, b, E, w, k, _;
566
566
  return [
567
567
  ne(I(h.name) + " ", 1),
568
- d !== 0 ? (m(), u("span", $t, I(h.resolution) + "km " + I(h.length) + "days", 1)) : J("", !0),
569
- d === 0 ? (m(), u("div", ea, "Provides the best forecast")) : (E = (v = (A = h == null ? void 0 : h.update) == null ? void 0 : A.default) == null ? void 0 : v.meta) != null && E.initialisationTime ? (m(), u("div", ta, "Update: " + I(s.computeDateZ((_ = (k = (w = h == null ? void 0 : h.update) == null ? void 0 : w.default) == null ? void 0 : k.meta) == null ? void 0 : _.initialisationTime)), 1)) : J("", !0)
568
+ d !== 0 ? (m(), g("span", $t, I(h.resolution) + "km " + I(h.length) + "days", 1)) : J("", !0),
569
+ d === 0 ? (m(), g("div", ea, "Provides the best forecast")) : (E = (b = (A = h == null ? void 0 : h.update) == null ? void 0 : A.default) == null ? void 0 : b.meta) != null && E.initialisationTime ? (m(), g("div", ta, "Update: " + I(s.computeDateZ((_ = (k = (w = h == null ? void 0 : h.update) == null ? void 0 : w.default) == null ? void 0 : k.meta) == null ? void 0 : _.initialisationTime)), 1)) : J("", !0)
570
570
  ];
571
571
  }),
572
572
  _: 2
@@ -775,8 +775,8 @@ class et {
775
775
  * @param [lb.x, lb.y, rt.x, rt.y]
776
776
  */
777
777
  getBoundPixel() {
778
- const e = this.map.getBounds(), t = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [s, n] = this.convertNLng(r[0]), [l, c] = this.convertNLng(i[0]), [p, h] = this.mercator.px([s, r[1]], t), [d, A] = this.mercator.px([l, i[1]], t), v = Math.round(this.mercator.size * Math.pow(2, t) * (n + c));
779
- return [d, A, p + v, 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]), [p, h] = this.mercator.px([s, r[1]], t), [d, A] = this.mercator.px([l, i[1]], t), b = Math.round(this.mercator.size * Math.pow(2, t) * (n + c));
779
+ return [d, A, p + b, h];
780
780
  }
781
781
  /**
782
782
  * [视窗边界像素宽度]
@@ -957,9 +957,9 @@ class We {
957
957
  sRange: t.getUniformLocation(r, "u_range_s")
958
958
  };
959
959
  h.resolution && t.uniform2f(h.resolution, t.canvas.width * e.ratio, t.canvas.height * e.ratio), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, i), h.image && t.uniform1i(h.image, 0), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, s), h.color && t.uniform1i(h.color, 1), l != null && l.uvRange && (l != null && l.sRange) && (h.uvRange && t.uniform2f(h.uvRange, l.uvRange[0], l.uvRange[1]), h.sRange && t.uniform2f(h.sRange, l.sRange[0], l.sRange[1])), h.scale && t.uniform1f(h.scale, (l == null ? void 0 : l.scale) || 1);
960
- const d = e.getBoundPixel(), A = e.map.getZoom() + 1, v = e.getWorldCopy(d, A);
961
- for (const E of v) {
962
- const w = (E[0] - d[0]) * e.ratio, k = (E[1] - d[3]) * e.ratio, _ = E[2] * e.ratio, [f, b, g, C] = [w, _ + w, k, _ + k], y = new Float32Array([f, g, b, g, f, C, f, C, b, g, b, C]);
960
+ const d = e.getBoundPixel(), A = e.map.getZoom() + 1, b = e.getWorldCopy(d, A);
961
+ for (const E of b) {
962
+ const w = (E[0] - d[0]) * e.ratio, k = (E[1] - d[3]) * e.ratio, _ = E[2] * e.ratio, [f, v, u, C] = [w, _ + w, k, _ + k], y = new Float32Array([f, u, v, u, f, C, f, C, v, u, v, C]);
963
963
  t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, y, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
964
964
  }
965
965
  } catch (h) {
@@ -3260,7 +3260,7 @@ const la = {
3260
3260
  }, ha = { key: 0 };
3261
3261
  function ca(a, e, t, r, i, s) {
3262
3262
  var n;
3263
- return (n = t.factor) != null && n.active ? (m(), u("div", ha, [
3263
+ return (n = t.factor) != null && n.active ? (m(), g("div", ha, [
3264
3264
  o("div", {
3265
3265
  class: "legend-bars flex-center",
3266
3266
  style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
@@ -3276,7 +3276,7 @@ function ca(a, e, t, r, i, s) {
3276
3276
  ]), 4)
3277
3277
  ])) : J("", !0);
3278
3278
  }
3279
- const da = /* @__PURE__ */ U(la, [["render", ca], ["__scopeId", "data-v-14070127"]]);
3279
+ const da = /* @__PURE__ */ U(la, [["render", ca], ["__scopeId", "data-v-24e5434b"]]);
3280
3280
  const pa = {
3281
3281
  name: "IdmCurrent",
3282
3282
  props: {
@@ -3593,7 +3593,7 @@ const ga = {
3593
3593
  }, ya = { key: 0 };
3594
3594
  function fa(a, e, t, r, i, s) {
3595
3595
  var n;
3596
- return (n = t.factor) != null && n.active ? (m(), u("div", ya, [
3596
+ return (n = t.factor) != null && n.active ? (m(), g("div", ya, [
3597
3597
  o("div", {
3598
3598
  class: "legend-bars flex-center",
3599
3599
  style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
@@ -3608,7 +3608,7 @@ function fa(a, e, t, r, i, s) {
3608
3608
  ]), 4)
3609
3609
  ])) : J("", !0);
3610
3610
  }
3611
- const Aa = /* @__PURE__ */ U(ga, [["render", fa], ["__scopeId", "data-v-02a8206f"]]), wa = {
3611
+ const Aa = /* @__PURE__ */ U(ga, [["render", fa], ["__scopeId", "data-v-c2962e63"]]), wa = {
3612
3612
  name: "IdmSigWave",
3613
3613
  props: {
3614
3614
  map: {
@@ -3737,7 +3737,7 @@ const Aa = /* @__PURE__ */ U(ga, [["render", fa], ["__scopeId", "data-v-02a8206f
3737
3737
  }
3738
3738
  };
3739
3739
  function va(a, e, t, r, i, s) {
3740
- return m(), u("div");
3740
+ return m(), g("div");
3741
3741
  }
3742
3742
  const ba = /* @__PURE__ */ U(wa, [["render", va]]), La = {
3743
3743
  name: "IdmSwell",
@@ -3895,7 +3895,7 @@ const ba = /* @__PURE__ */ U(wa, [["render", va]]), La = {
3895
3895
  }
3896
3896
  };
3897
3897
  function Ca(a, e, t, r, i, s) {
3898
- return m(), u("div");
3898
+ return m(), g("div");
3899
3899
  }
3900
3900
  const xa = /* @__PURE__ */ U(La, [["render", Ca]]), _a = {
3901
3901
  name: "IdmPrmsl",
@@ -4033,7 +4033,7 @@ const xa = /* @__PURE__ */ U(La, [["render", Ca]]), _a = {
4033
4033
  }
4034
4034
  };
4035
4035
  function Ba(a, e, t, r, i, s) {
4036
- return m(), u("div");
4036
+ return m(), g("div");
4037
4037
  }
4038
4038
  const Ia = /* @__PURE__ */ U(_a, [["render", Ba]]);
4039
4039
  const Ea = {
@@ -4140,7 +4140,7 @@ const Ea = {
4140
4140
  }, ka = { key: 0 };
4141
4141
  function Da(a, e, t, r, i, s) {
4142
4142
  var n;
4143
- return (n = t.factor) != null && n.active ? (m(), u("div", ka, [
4143
+ return (n = t.factor) != null && n.active ? (m(), g("div", ka, [
4144
4144
  o("div", {
4145
4145
  class: "legend-bars flex-center",
4146
4146
  style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
@@ -4160,7 +4160,7 @@ function Da(a, e, t, r, i, s) {
4160
4160
  ]), 4)
4161
4161
  ])) : J("", !0);
4162
4162
  }
4163
- const za = /* @__PURE__ */ U(Ea, [["render", Da], ["__scopeId", "data-v-ae31802c"]]);
4163
+ const za = /* @__PURE__ */ U(Ea, [["render", Da], ["__scopeId", "data-v-14ae1a6c"]]);
4164
4164
  const Pa = {
4165
4165
  name: "IdmCover",
4166
4166
  props: {
@@ -4256,7 +4256,7 @@ const Pa = {
4256
4256
  }, Ma = { key: 0 };
4257
4257
  function Sa(a, e, t, r, i, s) {
4258
4258
  var n;
4259
- return (n = t.factor) != null && n.active ? (m(), u("div", Ma, [
4259
+ return (n = t.factor) != null && n.active ? (m(), g("div", Ma, [
4260
4260
  o("div", {
4261
4261
  class: "legend-bars flex-center",
4262
4262
  style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
@@ -4270,7 +4270,7 @@ function Sa(a, e, t, r, i, s) {
4270
4270
  ]), 4)
4271
4271
  ])) : J("", !0);
4272
4272
  }
4273
- const Ta = /* @__PURE__ */ U(Pa, [["render", Sa], ["__scopeId", "data-v-026a5595"]]);
4273
+ const Ta = /* @__PURE__ */ U(Pa, [["render", Sa], ["__scopeId", "data-v-f21edb81"]]);
4274
4274
  const Qa = {
4275
4275
  name: "IdmThickness",
4276
4276
  props: {
@@ -4374,7 +4374,7 @@ const Qa = {
4374
4374
  }, Ha = { key: 0 };
4375
4375
  function Na(a, e, t, r, i, s) {
4376
4376
  var n;
4377
- return (n = t.factor) != null && n.active ? (m(), u("div", Ha, [
4377
+ return (n = t.factor) != null && n.active ? (m(), g("div", Ha, [
4378
4378
  o("div", {
4379
4379
  class: "legend-bars flex-center",
4380
4380
  style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
@@ -4389,7 +4389,7 @@ function Na(a, e, t, r, i, s) {
4389
4389
  ]), 4)
4390
4390
  ])) : J("", !0);
4391
4391
  }
4392
- const Fa = /* @__PURE__ */ U(Qa, [["render", Na], ["__scopeId", "data-v-348d48fb"]]), Xe = [
4392
+ const Fa = /* @__PURE__ */ U(Qa, [["render", Na], ["__scopeId", "data-v-a4c3d2ed"]]), Xe = [
4393
4393
  {
4394
4394
  rank: 0,
4395
4395
  name: "Best Match",
@@ -4690,7 +4690,7 @@ class ht {
4690
4690
  * @return 与之对应的大气模式
4691
4691
  */
4692
4692
  static autoPickPeerModel(e, t, r = "copernicus") {
4693
- if (t = this.autoPickLayerModel(t, r), Ve.WEATHER_LAYERS.reduce((i, s) => s.atmos ? i + s.weight : i, 0) & e.weight) {
4693
+ if (t = this.autoPickLayerModel(t, r), Ze.WEATHER_LAYERS.reduce((i, s) => s.atmos ? i + s.weight : i, 0) & e.weight) {
4694
4694
  if (t === "copernicus")
4695
4695
  return "ecmwf";
4696
4696
  } else if (t === "ecmwf")
@@ -4707,11 +4707,11 @@ class ht {
4707
4707
  const i = e.toLowerCase().split(","), s = [], n = [];
4708
4708
  for (const l of i) {
4709
4709
  let c = Xe.find((h) => {
4710
- var d, A, v;
4711
- return ((d = h.models) == null ? void 0 : d.includes(l)) || ((A = h.alias) == null ? void 0 : A.toLowerCase()) === l || ((v = h.name) == null ? void 0 : v.toLowerCase()) === l;
4710
+ var d, A, b;
4711
+ return ((d = h.models) == null ? void 0 : d.includes(l)) || ((A = h.alias) == null ? void 0 : A.toLowerCase()) === l || ((b = h.name) == null ? void 0 : b.toLowerCase()) === l;
4712
4712
  }), p = Je.find((h) => {
4713
- var d, A, v;
4714
- return ((d = h.models) == null ? void 0 : d.includes(l)) || ((A = h.alias) == null ? void 0 : A.toLowerCase()) === l || ((v = h.name) == null ? void 0 : v.toLowerCase()) === l;
4713
+ var d, A, b;
4714
+ return ((d = h.models) == null ? void 0 : d.includes(l)) || ((A = h.alias) == null ? void 0 : A.toLowerCase()) === l || ((b = h.name) == null ? void 0 : b.toLowerCase()) === l;
4715
4715
  });
4716
4716
  c = c || Xe.find((h) => {
4717
4717
  var d, A;
@@ -4736,7 +4736,7 @@ class ht {
4736
4736
  }), i;
4737
4737
  }
4738
4738
  static pickHourly(e, t) {
4739
- var r, i, s, n, l, c, p, h, d, A, v, E, w, k, _, f, b, g, C, y, L, T, D, F, N, j, G, W, me, he, ue, fe, ge, Y, ae, Ae, pe, ye, Le, Ce, xe, we, _e, B, ze, ve, Pe, Ee, He, ke;
4739
+ var r, i, s, n, l, c, p, h, d, A, b, E, w, k, _, f, v, u, C, y, L, T, D, F, N, j, G, W, me, he, ue, fe, ge, Y, ae, Ae, pe, ye, Le, Ce, xe, we, _e, B, ze, ve, Pe, Ee, He, ke;
4740
4740
  const re = typeof t == "string" ? ee(t) : t, ce = e == null ? void 0 : e.weather, Q = e == null ? void 0 : e.marine, Be = ee((i = (r = ce == null ? void 0 : ce[0]) == null ? void 0 : r.hourly) == null ? void 0 : i.date).utc(), K = Be.clone().add((l = (n = (s = ce == null ? void 0 : ce[0]) == null ? void 0 : s.hourly) == null ? void 0 : n.time) == null ? void 0 : l.at(0), "h"), q = Be.clone().add((h = (p = (c = ce == null ? void 0 : ce[0]) == null ? void 0 : c.hourly) == null ? void 0 : p.time) == null ? void 0 : h.at(-1), "h"), Me = [];
4741
4741
  if (re.isBetween(K, q, "millisecond", "[]")) {
4742
4742
  const P = re.utc().diff(K, "h", !1);
@@ -4750,7 +4750,7 @@ class ht {
4750
4750
  for (let Ne = P - (P - 1) % 6; Ne <= P; Ne++)
4751
4751
  Te += (A = O == null ? void 0 : O.precipitation) == null ? void 0 : A.at(Ne);
4752
4752
  de = {
4753
- temp: (v = O == null ? void 0 : O.temperature_2m) == null ? void 0 : v.at(P),
4753
+ temp: (b = O == null ? void 0 : O.temperature_2m) == null ? void 0 : b.at(P),
4754
4754
  apparentTemp: (E = O == null ? void 0 : O.apparent_temperature) == null ? void 0 : E.at(P),
4755
4755
  rh: (w = O == null ? void 0 : O.relative_humidity_2m) == null ? void 0 : w.at(P),
4756
4756
  dp: (k = O == null ? void 0 : O.dew_point_2m) == null ? void 0 : k.at(P),
@@ -4760,8 +4760,8 @@ class ht {
4760
4760
  sum3Hours: Math.round(Se * 100) / 100,
4761
4761
  sum6Hours: Math.round(Te * 100) / 100
4762
4762
  },
4763
- pmsl: (b = O == null ? void 0 : O.pressure_msl) == null ? void 0 : b.at(P),
4764
- psurf: (g = O == null ? void 0 : O.surface_pressure) == null ? void 0 : g.at(P),
4763
+ pmsl: (v = O == null ? void 0 : O.pressure_msl) == null ? void 0 : v.at(P),
4764
+ psurf: (u = O == null ? void 0 : O.surface_pressure) == null ? void 0 : u.at(P),
4765
4765
  code: (C = O == null ? void 0 : O.weather_code) == null ? void 0 : C.at(P),
4766
4766
  visibility: this.m2nm((y = O == null ? void 0 : O.visibility) == null ? void 0 : y.at(P)),
4767
4767
  wind: {
@@ -4845,7 +4845,7 @@ class ht {
4845
4845
  };
4846
4846
  }
4847
4847
  static pickDaily(e, t) {
4848
- var r, i, s, n, l, c, p, h, d, A, v, E, w, k, _, f, b, g, C, y, L, T, D, F, N, j, G, W, me, he, ue, fe, ge, Y, ae, Ae, pe, ye, Le, Ce, xe, we, _e, B;
4848
+ var r, i, s, n, l, c, p, h, d, A, b, E, w, k, _, f, v, u, C, y, L, T, D, F, N, j, G, W, me, he, ue, fe, ge, Y, ae, Ae, pe, ye, Le, Ce, xe, we, _e, B;
4849
4849
  const ze = typeof t == "string" ? ee(t) : t, ve = e == null ? void 0 : e.weather, Pe = e == null ? void 0 : e.marine, Ee = ee((s = (i = (r = ve == null ? void 0 : ve[0]) == null ? void 0 : r.daily) == null ? void 0 : i.time) == null ? void 0 : s.at(0)), He = ee((c = (l = (n = ve == null ? void 0 : ve[0]) == null ? void 0 : n.daily) == null ? void 0 : l.time) == null ? void 0 : c.at(-1)), ke = [];
4850
4850
  if (ze.isBetween(Ee, He, "millisecond", "[]")) {
4851
4851
  let re, ce;
@@ -4861,7 +4861,7 @@ class ht {
4861
4861
  mean: (A = K.temperature_2m_mean) == null ? void 0 : A.at(Q)
4862
4862
  },
4863
4863
  apparentTemp: {
4864
- max: (v = K.apparent_temperature_max) == null ? void 0 : v.at(Q),
4864
+ max: (b = K.apparent_temperature_max) == null ? void 0 : b.at(Q),
4865
4865
  min: (E = K.apparent_temperature_min) == null ? void 0 : E.at(Q)
4866
4866
  },
4867
4867
  precip: {
@@ -4869,8 +4869,8 @@ class ht {
4869
4869
  rainSum: (k = K.rain_sum) == null ? void 0 : k.at(Q),
4870
4870
  snowfallSum: (_ = K.snowfall_sum) == null ? void 0 : _.at(Q),
4871
4871
  showersSum: (f = K.showers_sum) == null ? void 0 : f.at(Q),
4872
- hours: (b = K.precipitation_hours) == null ? void 0 : b.at(Q),
4873
- probability: (g = K.precipitation_probability_max) == null ? void 0 : g.at(Q)
4872
+ hours: (v = K.precipitation_hours) == null ? void 0 : v.at(Q),
4873
+ probability: (u = K.precipitation_probability_max) == null ? void 0 : u.at(Q)
4874
4874
  },
4875
4875
  rh: {
4876
4876
  max: (C = K.relative_humidity_2m_max) == null ? void 0 : C.at(Q),
@@ -5340,7 +5340,7 @@ const Oa = {
5340
5340
  emits: ["tropical", "tropicalProbability", "tropicalNotification"],
5341
5341
  data() {
5342
5342
  return {
5343
- helper: Ze,
5343
+ helper: qe,
5344
5344
  source: "tropicals-source",
5345
5345
  clusterSource: "tropicals-cluster-source",
5346
5346
  historyLayer: "tropicals-history-layer",
@@ -5461,8 +5461,8 @@ const Oa = {
5461
5461
  else {
5462
5462
  if (this.tropicals) {
5463
5463
  const d = (/* @__PURE__ */ new Date()).valueOf();
5464
- let A = 0, v = 0;
5465
- (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), v = (/* @__PURE__ */ new Date()).valueOf() - (d + A), console.log("[tropicals] update elapsed: ", v, ", total: ", A += v)) : (this.map.addSource(this.source, {
5464
+ let A = 0, b = 0;
5465
+ (a = this.map) != null && a.getSource(this.source) ? ((t = this.map) == null || t.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), b = (/* @__PURE__ */ new Date()).valueOf() - (d + A), console.log("[tropicals] update elapsed: ", b, ", total: ", A += b)) : (this.map.addSource(this.source, {
5466
5466
  type: "geojson",
5467
5467
  data: (r = this.tropicals) != null && r.active ? (i = this.tropicals) == null ? void 0 : i.data : this.empty
5468
5468
  }), this.map.addLayer({
@@ -5559,7 +5559,7 @@ const Oa = {
5559
5559
  ],
5560
5560
  "text-halo-width": 4
5561
5561
  }
5562
- }), v = (/* @__PURE__ */ new Date()).valueOf() - (d + A), console.log("[tropical] add elapsed: ", v, ", total: ", A += v)), (s = this.map) != null && s.getSource(this.clusterSource) ? ((l = this.map) == null || l.getSource(this.clusterSource).setData((n = this.tropicals) != null && n.active ? this.tropicals.data : this.empty), v = (/* @__PURE__ */ new Date()).valueOf() - (d + A), console.log("[tropical] update elapsed: ", v, ", total: ", A += v)) : (this.map.addSource(this.clusterSource, {
5562
+ }), b = (/* @__PURE__ */ new Date()).valueOf() - (d + A), console.log("[tropical] add elapsed: ", b, ", total: ", A += b)), (s = this.map) != null && s.getSource(this.clusterSource) ? ((l = this.map) == null || l.getSource(this.clusterSource).setData((n = this.tropicals) != null && n.active ? this.tropicals.data : this.empty), b = (/* @__PURE__ */ new Date()).valueOf() - (d + A), console.log("[tropical] update elapsed: ", b, ", total: ", A += b)) : (this.map.addSource(this.clusterSource, {
5563
5563
  type: "geojson",
5564
5564
  data: (c = this.tropicals) != null && c.active ? (p = this.tropicals) == null ? void 0 : p.data : this.empty
5565
5565
  // cluster: true,
@@ -5676,7 +5676,7 @@ const Oa = {
5676
5676
  "text-halo-color": "#0033ff",
5677
5677
  "text-halo-width": 4
5678
5678
  }
5679
- }), v = (/* @__PURE__ */ new Date()).valueOf() - (d + A), console.log("[tropical] add elapsed: ", v, ", total: ", A += v));
5679
+ }), b = (/* @__PURE__ */ new Date()).valueOf() - (d + A), console.log("[tropical] add elapsed: ", b, ", total: ", A += b));
5680
5680
  }
5681
5681
  this.handleDrawCircle();
5682
5682
  const h = ct.interpolate(this.tropicals, 1);
@@ -5688,7 +5688,7 @@ const Oa = {
5688
5688
  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));
5689
5689
  },
5690
5690
  handleDateChange() {
5691
- var a, e, t, r, i, s, n, l, c, p, h, d, A, v, E, w, k, _, f, b, g, C, y, L, T, D, F, N, j, G, W, me;
5691
+ var a, e, t, r, i, s, n, l, c, p, h, d, A, b, E, w, k, _, f, v, u, C, y, L, T, D, F, N, j, G, W, me;
5692
5692
  if ((a = this.interpolateMarkers) == null || a.forEach((he) => he == null ? void 0 : he.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
5693
5693
  const he = ee(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), ue = this.interpolateData.filter((Y) => Y.properties.date === he.format() && !Y.properties.disabled), fe = this.handleComputePolygons(ue), ge = S.featureCollection([...ue]);
5694
5694
  fe.forEach((Y) => {
@@ -5710,7 +5710,7 @@ const Oa = {
5710
5710
  for (const Y of ue)
5711
5711
  if (!Y.properties.disabled) {
5712
5712
  let ae = "#f44336";
5713
- ((l = (n = Y.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((p = (c = Y.properties) == null ? void 0 : c.wind) != null && p.kts) ? ae = "#03f869" : ((d = (h = Y.properties) == null ? void 0 : h.wind) == null ? void 0 : d.kts) >= 32 && ((v = (A = Y.properties) == null ? void 0 : A.wind) == null ? void 0 : v.kts) < 47 ? ae = "#f2f202" : ((w = (E = Y.properties) == null ? void 0 : E.wind) == null ? void 0 : w.kts) >= 47 && ((_ = (k = Y.properties) == null ? void 0 : k.wind) == null ? void 0 : _.kts) < 63 ? ae = "#ff9100" : ((b = (f = Y.properties) == null ? void 0 : f.wind) == null ? void 0 : b.kts) >= 63 && ((C = (g = Y.properties) == null ? void 0 : g.wind) == null ? void 0 : C.kts) < 79 ? ae = "#f44336" : ((L = (y = Y.properties) == null ? void 0 : y.wind) == null ? void 0 : L.kts) >= 79 && ((D = (T = Y.properties) == null ? void 0 : T.wind) == null ? void 0 : D.kts) < 94 ? ae = "#f903d0" : ((N = (F = Y.properties) == null ? void 0 : F.wind) == null ? void 0 : N.kts) >= 94 ? ae = "#8702f9" : ae = "#f44336";
5713
+ ((l = (n = Y.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((p = (c = Y.properties) == null ? void 0 : c.wind) != null && p.kts) ? ae = "#03f869" : ((d = (h = Y.properties) == null ? void 0 : h.wind) == null ? void 0 : d.kts) >= 32 && ((b = (A = Y.properties) == null ? void 0 : A.wind) == null ? void 0 : b.kts) < 47 ? ae = "#f2f202" : ((w = (E = Y.properties) == null ? void 0 : E.wind) == null ? void 0 : w.kts) >= 47 && ((_ = (k = Y.properties) == null ? void 0 : k.wind) == null ? void 0 : _.kts) < 63 ? ae = "#ff9100" : ((v = (f = Y.properties) == null ? void 0 : f.wind) == null ? void 0 : v.kts) >= 63 && ((C = (u = Y.properties) == null ? void 0 : u.wind) == null ? void 0 : C.kts) < 79 ? ae = "#f44336" : ((L = (y = Y.properties) == null ? void 0 : y.wind) == null ? void 0 : L.kts) >= 79 && ((D = (T = Y.properties) == null ? void 0 : T.wind) == null ? void 0 : D.kts) < 94 ? ae = "#f903d0" : ((N = (F = Y.properties) == null ? void 0 : F.wind) == null ? void 0 : N.kts) >= 94 ? ae = "#8702f9" : ae = "#f44336";
5714
5714
  const Ae = `<svg t="1719918955501"
5715
5715
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
5716
5716
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -5736,19 +5736,19 @@ const Oa = {
5736
5736
  handleClick(a) {
5737
5737
  var s, n, l, c, p, h, d, A;
5738
5738
  const e = a.features[0], t = (n = (s = this.tropicals) == null ? void 0 : s.data) == null ? void 0 : n.features.filter(
5739
- (v) => {
5739
+ (b) => {
5740
5740
  var E;
5741
- return v.geometry.type === "LineString" && v.properties.type === "forecast" && v.properties.name === ((E = e == null ? void 0 : e.properties) == null ? void 0 : E.name);
5741
+ return b.geometry.type === "LineString" && b.properties.type === "forecast" && b.properties.name === ((E = e == null ? void 0 : e.properties) == null ? void 0 : E.name);
5742
5742
  }
5743
5743
  ), r = (c = (l = this.tropicals) == null ? void 0 : l.data) == null ? void 0 : c.features.filter(
5744
- (v) => {
5744
+ (b) => {
5745
5745
  var E;
5746
- return v.geometry.type === "LineString" && v.properties.type === "history" && v.properties.name === ((E = e == null ? void 0 : e.properties) == null ? void 0 : E.name);
5746
+ return b.geometry.type === "LineString" && b.properties.type === "history" && b.properties.name === ((E = e == null ? void 0 : e.properties) == null ? void 0 : E.name);
5747
5747
  }
5748
5748
  );
5749
5749
  this.activeTropicals = {
5750
5750
  name: (p = e == null ? void 0 : e.properties) == null ? void 0 : p.name,
5751
- forecasts: t.map((v) => v.properties),
5751
+ forecasts: t.map((b) => b.properties),
5752
5752
  history: (h = r[0]) == null ? void 0 : h.properties,
5753
5753
  showCircle: (A = (d = t[0]) == null ? void 0 : d.properties) == null ? void 0 : A.showCircle
5754
5754
  }, this.showTropicals = !0;
@@ -5864,18 +5864,18 @@ const Oa = {
5864
5864
  style: { "justify-content": "flex-start" }
5865
5865
  }, ai = { class: "forecast-models" }, ii = ["onClick"], ri = { class: "more" };
5866
5866
  function si(a, e, t, r, i, s) {
5867
- var n, l, c, p, h, d, A, v, E, w, k, _, f, b, g, C, y, L, T;
5868
- return Fe((m(), u("div", Ra, [
5867
+ var n, l, c, p, h, d, A, b, E, w, k, _, f, v, u, C, y, L, T;
5868
+ return Fe((m(), g("div", Ra, [
5869
5869
  o("div", ja, [
5870
5870
  o("div", {
5871
5871
  class: "iconfont close-btn",
5872
5872
  onClick: e[0] || (e[0] = (D) => i.showTropicals = !1)
5873
5873
  }, ""),
5874
5874
  o("div", Wa, [
5875
- (l = (n = i.activeTropicals) == null ? void 0 : n.history) != null && l.level ? (m(), u("span", Ga, I((p = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : p.level) + " , ", 1)) : J("", !0),
5875
+ (l = (n = i.activeTropicals) == null ? void 0 : n.history) != null && l.level ? (m(), g("span", Ga, I((p = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : p.level) + " , ", 1)) : J("", !0),
5876
5876
  ne(I((h = i.activeTropicals) == null ? void 0 : h.name), 1)
5877
5877
  ]),
5878
- o("div", Ua, " Last update: " + I(s.computeTime(((A = (d = i.activeTropicals) == null ? void 0 : d.history) == null ? void 0 : A.updated) || ((w = (E = (v = i.activeTropicals) == null ? void 0 : v.forecasts) == null ? void 0 : E.filter((D) => !D.disabled)[0]) == null ? void 0 : w.date))), 1)
5878
+ o("div", Ua, " Last update: " + I(s.computeTime(((A = (d = i.activeTropicals) == null ? void 0 : d.history) == null ? void 0 : A.updated) || ((w = (E = (b = i.activeTropicals) == null ? void 0 : b.forecasts) == null ? void 0 : E.filter((D) => !D.disabled)[0]) == null ? void 0 : w.date))), 1)
5879
5879
  ]),
5880
5880
  o("div", Ya, [
5881
5881
  o("div", Ka, [
@@ -5883,11 +5883,11 @@ function si(a, e, t, r, i, s) {
5883
5883
  o("div", Ja, [
5884
5884
  e[3] || (e[3] = o("label", null, "Wind speed : ", -1)),
5885
5885
  o("span", null, I(((_ = (k = i.activeTropicals) == null ? void 0 : k.history) == null ? void 0 : _.kts) || "-") + " [kts]", 1),
5886
- o("span", null, ", BF " + I(s.computeBF(((b = (f = i.activeTropicals) == null ? void 0 : f.history) == null ? void 0 : b.kts) || 0)), 1)
5886
+ o("span", null, ", BF " + I(s.computeBF(((v = (f = i.activeTropicals) == null ? void 0 : f.history) == null ? void 0 : v.kts) || 0)), 1)
5887
5887
  ]),
5888
5888
  o("div", qa, [
5889
5889
  e[4] || (e[4] = o("label", null, "Pressure : ", -1)),
5890
- o("span", null, I(((C = (g = i.activeTropicals) == null ? void 0 : g.history) == null ? void 0 : C.pressure) || "-") + " [hPa]", 1)
5890
+ o("span", null, I(((C = (u = i.activeTropicals) == null ? void 0 : u.history) == null ? void 0 : C.pressure) || "-") + " [hPa]", 1)
5891
5891
  ])
5892
5892
  ]),
5893
5893
  o("div", Va, [
@@ -5904,9 +5904,9 @@ function si(a, e, t, r, i, s) {
5904
5904
  o("div", ti, [
5905
5905
  e[7] || (e[7] = o("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
5906
5906
  o("div", ai, [
5907
- (m(!0), u(V, null, $((T = i.activeTropicals) == null ? void 0 : T.forecasts, (D, F) => {
5907
+ (m(!0), g(V, null, $((T = i.activeTropicals) == null ? void 0 : T.forecasts, (D, F) => {
5908
5908
  var N, j, G, W;
5909
- return m(), u("div", {
5909
+ return m(), g("div", {
5910
5910
  key: F,
5911
5911
  class: Z([
5912
5912
  "model",
@@ -5926,7 +5926,7 @@ function si(a, e, t, r, i, s) {
5926
5926
  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))
5927
5927
  ]),
5928
5928
  o("div", ri, [
5929
- t.permission & i.helper.LEVEL.Supper ? (m(), u("div", {
5929
+ t.permission & i.helper.LEVEL.Supper ? (m(), g("div", {
5930
5930
  key: 0,
5931
5931
  class: "button",
5932
5932
  style: { "margin-right": "10px" },
@@ -6047,7 +6047,7 @@ const oi = {
6047
6047
  }, ni = { key: 0 };
6048
6048
  function li(a, e, t, r, i, s) {
6049
6049
  var n;
6050
- return (n = t.factor) != null && n.active ? (m(), u("div", ni, [
6050
+ return (n = t.factor) != null && n.active ? (m(), g("div", ni, [
6051
6051
  o("div", {
6052
6052
  class: "legend-bars flex-center",
6053
6053
  style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
@@ -6063,7 +6063,7 @@ function li(a, e, t, r, i, s) {
6063
6063
  ]), 4)
6064
6064
  ])) : J("", !0);
6065
6065
  }
6066
- const hi = /* @__PURE__ */ U(oi, [["render", li], ["__scopeId", "data-v-e83717bd"]]);
6066
+ const hi = /* @__PURE__ */ U(oi, [["render", li], ["__scopeId", "data-v-9708a7a3"]]);
6067
6067
  const ci = {
6068
6068
  name: "IdmVisibility",
6069
6069
  props: {
@@ -6161,7 +6161,7 @@ const ci = {
6161
6161
  }, di = { key: 0 };
6162
6162
  function pi(a, e, t, r, i, s) {
6163
6163
  var n;
6164
- return (n = t.factor) != null && n.active ? (m(), u("div", di, [
6164
+ return (n = t.factor) != null && n.active ? (m(), g("div", di, [
6165
6165
  o("div", {
6166
6166
  class: "legend-bars flex-center",
6167
6167
  style: le([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
@@ -6175,7 +6175,7 @@ function pi(a, e, t, r, i, s) {
6175
6175
  ]), 4)
6176
6176
  ])) : J("", !0);
6177
6177
  }
6178
- const mi = /* @__PURE__ */ U(ci, [["render", pi], ["__scopeId", "data-v-1c8a9237"]]);
6178
+ const mi = /* @__PURE__ */ U(ci, [["render", pi], ["__scopeId", "data-v-f7b2fb08"]]);
6179
6179
  const ui = {
6180
6180
  name: "IdmWaterTemp",
6181
6181
  props: {
@@ -6281,7 +6281,7 @@ const ui = {
6281
6281
  }, gi = { key: 0 };
6282
6282
  function yi(a, e, t, r, i, s) {
6283
6283
  var n;
6284
- return (n = t.factor) != null && n.active ? (m(), u("div", gi, [
6284
+ return (n = t.factor) != null && n.active ? (m(), g("div", gi, [
6285
6285
  o("div", {
6286
6286
  class: "legend-bars flex-center",
6287
6287
  style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
@@ -6295,7 +6295,7 @@ function yi(a, e, t, r, i, s) {
6295
6295
  ]), 4)
6296
6296
  ])) : J("", !0);
6297
6297
  }
6298
- const fi = /* @__PURE__ */ U(ui, [["render", yi], ["__scopeId", "data-v-8974924d"]]);
6298
+ const fi = /* @__PURE__ */ U(ui, [["render", yi], ["__scopeId", "data-v-7521f582"]]);
6299
6299
  const Ai = {
6300
6300
  name: "IdmTemp",
6301
6301
  props: {
@@ -6404,7 +6404,7 @@ const Ai = {
6404
6404
  }, wi = { key: 0 };
6405
6405
  function vi(a, e, t, r, i, s) {
6406
6406
  var n;
6407
- return (n = t.factor) != null && n.active ? (m(), u("div", wi, [
6407
+ return (n = t.factor) != null && n.active ? (m(), g("div", wi, [
6408
6408
  o("div", {
6409
6409
  class: "legend-bars flex-center",
6410
6410
  style: le([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
@@ -6420,13 +6420,13 @@ function vi(a, e, t, r, i, s) {
6420
6420
  ]), 4)
6421
6421
  ])) : J("", !0);
6422
6422
  }
6423
- const bi = /* @__PURE__ */ U(Ai, [["render", vi], ["__scopeId", "data-v-d709ba86"]]);
6423
+ const bi = /* @__PURE__ */ U(Ai, [["render", vi], ["__scopeId", "data-v-25daaa82"]]);
6424
6424
  /*! Element Plus Icons Vue v2.3.1 */
6425
6425
  var Li = /* @__PURE__ */ ft({
6426
6426
  name: "LocationFilled",
6427
6427
  __name: "location-filled",
6428
6428
  setup(a) {
6429
- return (e, t) => (m(), u("svg", {
6429
+ return (e, t) => (m(), g("svg", {
6430
6430
  xmlns: "http://www.w3.org/2000/svg",
6431
6431
  viewBox: "0 0 1024 1024"
6432
6432
  }, [
@@ -6462,11 +6462,15 @@ const _i = {
6462
6462
  },
6463
6463
  forecastModel: {
6464
6464
  type: String
6465
+ },
6466
+ permission: {
6467
+ type: Number
6465
6468
  }
6466
6469
  },
6467
- emits: ["meteoMore"],
6470
+ emits: ["meteoMore", "meteoNotify"],
6468
6471
  data() {
6469
6472
  return {
6473
+ helper: qe,
6470
6474
  showMeteo: !1,
6471
6475
  loading: !1,
6472
6476
  point: {},
@@ -6632,7 +6636,7 @@ const _i = {
6632
6636
  initTableData(a) {
6633
6637
  var e, t, r, i, s, n, l, c, p;
6634
6638
  this.clearTable(), this.positionGmt = (t = (e = a == null ? void 0 : a.weather) == null ? void 0 : e[0]) == null ? void 0 : t.timezone, this.positionOffset = (i = (r = a == null ? void 0 : a.weather) == null ? void 0 : r[0]) == null ? void 0 : i.offset, this.localDate = (n = (s = Ye(this.ts)) == null ? void 0 : s.tz(this.positionGmt)) == null ? void 0 : n.format("MMM-DD/HHmm[LT]"), this.currentHourData = (l = Ke.pickHourly(a, ee(this.ts))) == null ? void 0 : l[0], ((p = (c = this.currentHourData) == null ? void 0 : c.weather) == null ? void 0 : p.isDay) === 0 ? this.isDay = !1 : this.isDay = !0, this.$nextTick(() => {
6635
- var d, A, v, E, w, k, _, f, b, g, C, y, L, T, D, F, N, j, G, W, me, he, ue, fe, ge, Y, ae, Ae, pe, ye, Le, Ce, xe;
6639
+ var d, A, b, E, w, k, _, f, v, u, C, y, L, T, D, F, N, j, G, W, me, he, ue, fe, ge, Y, ae, Ae, pe, ye, Le, Ce, xe;
6636
6640
  if (!document.getElementById("meteoMainBox"))
6637
6641
  return !1;
6638
6642
  if (!this.currentHourData)
@@ -6641,7 +6645,7 @@ const _i = {
6641
6645
  const _e = Ye(this.ts).tz(this.positionGmt).add(3 * we, "h").format();
6642
6646
  this.tableData.hours.push(_e);
6643
6647
  const B = ((d = Ke.pickHourly(a, _e)) == null ? void 0 : d[0]) || {};
6644
- this.tableData.temp.push(this.roundPrecision((A = B == null ? void 0 : B.weather) == null ? void 0 : A.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((E = (v = B == null ? void 0 : B.weather) == null ? void 0 : v.precip) == null ? void 0 : E.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((k = (w = B == null ? void 0 : B.weather) == null ? void 0 : w.precip) == null ? void 0 : k.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((_ = B == null ? void 0 : B.weather) == null ? void 0 : _.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((b = (f = B == null ? void 0 : B.weather) == null ? void 0 : f.wind) == null ? void 0 : b.kts, 1) ?? "-"), this.tableData.windDir.push((C = (g = B == null ? void 0 : B.weather) == null ? void 0 : g.wind) == null ? void 0 : C.bearing), this.tableData.windGust.push(this.roundPrecision((L = (y = B == null ? void 0 : B.weather) == null ? void 0 : y.wind) == null ? void 0 : L.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((D = (T = B == null ? void 0 : B.wave) == null ? void 0 : T.sig) == null ? void 0 : D.height, 1) ?? "-"), this.tableData.sigwaveDir.push((N = (F = B == null ? void 0 : B.wave) == null ? void 0 : F.sig) == null ? void 0 : N.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((G = (j = B == null ? void 0 : B.wave) == null ? void 0 : j.wd) == null ? void 0 : G.height, 1) ?? "-"), this.tableData.windwaveDir.push((me = (W = B == null ? void 0 : B.wave) == null ? void 0 : W.wd) == null ? void 0 : me.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((ue = (he = B == null ? void 0 : B.wave) == null ? void 0 : he.wd) == null ? void 0 : ue.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((ge = (fe = B == null ? void 0 : B.wave) == null ? void 0 : fe.swell) == null ? void 0 : ge.height, 1) ?? "-"), this.tableData.swellDir.push((ae = (Y = B == null ? void 0 : B.wave) == null ? void 0 : Y.swell) == null ? void 0 : ae.bearing), this.tableData.swellPeriod.push(this.roundPrecision((pe = (Ae = B == null ? void 0 : B.wave) == null ? void 0 : Ae.swell) == null ? void 0 : pe.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((Le = B == null ? void 0 : B.current) == null ? void 0 : Le.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((Ce = B == null ? void 0 : B.weather) == null ? void 0 : Ce.url), this.tableData.weatherNames.push(((xe = B == null ? void 0 : B.weather) == null ? void 0 : xe.name) ?? "-");
6648
+ this.tableData.temp.push(this.roundPrecision((A = B == null ? void 0 : B.weather) == null ? void 0 : A.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((E = (b = B == null ? void 0 : B.weather) == null ? void 0 : b.precip) == null ? void 0 : E.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((k = (w = B == null ? void 0 : B.weather) == null ? void 0 : w.precip) == null ? void 0 : k.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((_ = B == null ? void 0 : B.weather) == null ? void 0 : _.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((v = (f = B == null ? void 0 : B.weather) == null ? void 0 : f.wind) == null ? void 0 : v.kts, 1) ?? "-"), this.tableData.windDir.push((C = (u = B == null ? void 0 : B.weather) == null ? void 0 : u.wind) == null ? void 0 : C.bearing), this.tableData.windGust.push(this.roundPrecision((L = (y = B == null ? void 0 : B.weather) == null ? void 0 : y.wind) == null ? void 0 : L.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((D = (T = B == null ? void 0 : B.wave) == null ? void 0 : T.sig) == null ? void 0 : D.height, 1) ?? "-"), this.tableData.sigwaveDir.push((N = (F = B == null ? void 0 : B.wave) == null ? void 0 : F.sig) == null ? void 0 : N.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((G = (j = B == null ? void 0 : B.wave) == null ? void 0 : j.wd) == null ? void 0 : G.height, 1) ?? "-"), this.tableData.windwaveDir.push((me = (W = B == null ? void 0 : B.wave) == null ? void 0 : W.wd) == null ? void 0 : me.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((ue = (he = B == null ? void 0 : B.wave) == null ? void 0 : he.wd) == null ? void 0 : ue.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((ge = (fe = B == null ? void 0 : B.wave) == null ? void 0 : fe.swell) == null ? void 0 : ge.height, 1) ?? "-"), this.tableData.swellDir.push((ae = (Y = B == null ? void 0 : B.wave) == null ? void 0 : Y.swell) == null ? void 0 : ae.bearing), this.tableData.swellPeriod.push(this.roundPrecision((pe = (Ae = B == null ? void 0 : B.wave) == null ? void 0 : Ae.swell) == null ? void 0 : pe.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((Le = B == null ? void 0 : B.current) == null ? void 0 : Le.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((Ce = B == null ? void 0 : B.weather) == null ? void 0 : Ce.url), this.tableData.weatherNames.push(((xe = B == null ? void 0 : B.weather) == null ? void 0 : xe.name) ?? "-");
6645
6649
  }
6646
6650
  });
6647
6651
  },
@@ -6708,6 +6712,9 @@ const _i = {
6708
6712
  handleMeteoMore() {
6709
6713
  this.point.forecastModel = this.forecastModel, this.$emit("meteoMore", this.point);
6710
6714
  },
6715
+ handleNotify() {
6716
+ this.point.forecastModel = this.forecastModel, this.point.datetime = this.ts, this.$emit("meteoNotify", this.point);
6717
+ },
6711
6718
  handleCloseMeteo() {
6712
6719
  this.showMeteo = !1;
6713
6720
  },
@@ -6764,9 +6771,9 @@ const _i = {
6764
6771
  class: "main-box flex-center"
6765
6772
  };
6766
6773
  function Qr(a, e, t, r, i, s) {
6767
- var p, h, d, A, v, E, w, k, _, f, b, g, C, y, L, T, D, F, N, j, G, W, me, he, ue, fe, ge, Y, ae, Ae, pe, ye, Le, Ce, xe, we, _e, B, ze, ve, Pe, Ee, He, ke, re, ce, Q, Be, K, q, Me, P, de, De, Se, Te, z, O, Ge, Ue, ie, Ne, tt, at, it, rt, st, ot;
6774
+ var p, h, d, A, b, E, w, k, _, f, v, u, C, y, L, T, D, F, N, j, G, W, me, he, ue, fe, ge, Y, ae, Ae, pe, ye, Le, Ce, xe, we, _e, B, ze, ve, Pe, Ee, He, ke, re, ce, Q, Be, K, q, Me, P, de, De, Se, Te, z, O, Ge, Ue, ie, Ne, tt, at, it, rt, st, ot;
6768
6775
  const n = R("LocationFilled"), l = R("ElIcon"), c = R("ElTooltip");
6769
- return Fe((m(), u("div", Bi, [
6776
+ return Fe((m(), g("div", Bi, [
6770
6777
  o("div", Ii, [
6771
6778
  o("div", Ei, [
6772
6779
  o("div", ki, [
@@ -6779,11 +6786,11 @@ function Qr(a, e, t, r, i, s) {
6779
6786
  o("div", Di, I(s.computeLat((p = i.point) == null ? void 0 : p.lat)) + "," + I(s.computeLng((h = i.point) == null ? void 0 : h.lng)), 1)
6780
6787
  ]),
6781
6788
  o("div", zi, [
6782
- i.showTables ? (m(), u("div", {
6789
+ i.showTables ? (m(), g("div", {
6783
6790
  key: 0,
6784
6791
  class: "iconfont toggle",
6785
6792
  onClick: e[0] || (e[0] = (x) => i.showTables = !i.showTables)
6786
- }, "")) : (m(), u("div", {
6793
+ }, "")) : (m(), g("div", {
6787
6794
  key: 1,
6788
6795
  class: "iconfont toggle",
6789
6796
  onClick: e[1] || (e[1] = (x) => i.showTables = !i.showTables)
@@ -6794,9 +6801,12 @@ function Qr(a, e, t, r, i, s) {
6794
6801
  }, "")
6795
6802
  ])
6796
6803
  ]),
6797
- i.loading ? (m(), u("div", Tr, e[42] || (e[42] = [
6798
- o("img", { src: xi }, null, -1)
6799
- ]))) : (m(), u("div", {
6804
+ i.loading ? (m(), g("div", Tr, e[43] || (e[43] = [
6805
+ o("img", {
6806
+ src: xi,
6807
+ alt: ""
6808
+ }, null, -1)
6809
+ ]))) : (m(), g("div", {
6800
6810
  key: 0,
6801
6811
  class: Z(["main-box", i.isDay ? "day-bg" : "night-bg"]),
6802
6812
  id: "meteoMainBox"
@@ -6812,34 +6822,34 @@ function Qr(a, e, t, r, i, s) {
6812
6822
  default: Ie(() => {
6813
6823
  var x, M, nt, lt;
6814
6824
  return [
6815
- (M = (x = i.currentHourData) == null ? void 0 : x.weather) != null && M.url ? (m(), u("img", {
6825
+ (M = (x = i.currentHourData) == null ? void 0 : x.weather) != null && M.url ? (m(), g("img", {
6816
6826
  key: 0,
6817
6827
  class: "iconfont icon",
6818
6828
  style: { "margin-right": "5px" },
6819
6829
  src: (lt = (nt = i.currentHourData) == null ? void 0 : nt.weather) == null ? void 0 : lt.url
6820
- }, null, 8, Si)) : (m(), u("span", Ti))
6830
+ }, null, 8, Si)) : (m(), g("span", Ti))
6821
6831
  ];
6822
6832
  }),
6823
6833
  _: 1
6824
6834
  }, 8, ["content"]),
6825
6835
  o("div", Qi, [
6826
6836
  o("div", null, [
6827
- ne(I(s.roundPrecision((E = (v = i.currentHourData) == null ? void 0 : v.weather) == null ? void 0 : E.temp, 0)), 1),
6828
- e[8] || (e[8] = o("span", { style: { "font-size": "14px" } }, "°C", -1))
6837
+ ne(I(s.roundPrecision((E = (b = i.currentHourData) == null ? void 0 : b.weather) == null ? void 0 : E.temp, 0)), 1),
6838
+ e[9] || (e[9] = o("span", { style: { "font-size": "14px" } }, "°C", -1))
6829
6839
  ])
6830
6840
  ]),
6831
6841
  o("div", Hi, [
6832
6842
  o("div", Ni, [
6833
- e[9] || (e[9] = o("label", null, "Precip : ", -1)),
6843
+ e[10] || (e[10] = o("label", null, "Precip : ", -1)),
6834
6844
  o("span", null, I(s.roundPrecision((_ = (k = (w = i.currentHourData) == null ? void 0 : w.weather) == null ? void 0 : k.precip) == null ? void 0 : _.sum, 0)) + " mm", 1)
6835
6845
  ]),
6836
6846
  o("div", Fi, [
6837
- e[10] || (e[10] = o("label", null, "Visibility : ", -1)),
6838
- o("span", null, I(s.roundPrecision((b = (f = i.currentHourData) == null ? void 0 : f.weather) == null ? void 0 : b.visibility, 0)) + " nm", 1)
6847
+ e[11] || (e[11] = o("label", null, "Visibility : ", -1)),
6848
+ o("span", null, I(s.roundPrecision((v = (f = i.currentHourData) == null ? void 0 : f.weather) == null ? void 0 : v.visibility, 0)) + " nm", 1)
6839
6849
  ]),
6840
6850
  o("div", Oi, [
6841
- e[11] || (e[11] = o("label", null, "Wind : ", -1)),
6842
- o("span", null, I(s.roundPrecision((y = (C = (g = i.currentHourData) == null ? void 0 : g.weather) == null ? void 0 : C.wind) == null ? void 0 : y.kts, 1)) + " kts", 1)
6851
+ e[12] || (e[12] = o("label", null, "Wind : ", -1)),
6852
+ o("span", null, I(s.roundPrecision((y = (C = (u = i.currentHourData) == null ? void 0 : u.weather) == null ? void 0 : C.wind) == null ? void 0 : y.kts, 1)) + " kts", 1)
6843
6853
  ])
6844
6854
  ])
6845
6855
  ]),
@@ -6852,24 +6862,24 @@ function Qr(a, e, t, r, i, s) {
6852
6862
  o("div", Ui, [
6853
6863
  o("div", {
6854
6864
  class: Z(["menu-item", i.activeIndex === 1 ? "active" : ""]),
6855
- onClick: e[3] || (e[3] = qe((x) => s.handleSelectTab(1), ["prevent"]))
6865
+ onClick: e[3] || (e[3] = Ve((x) => s.handleSelectTab(1), ["prevent"]))
6856
6866
  }, "Basis", 2),
6857
6867
  o("div", {
6858
6868
  class: Z(["menu-item", i.activeIndex === 2 ? "active" : ""]),
6859
- onClick: e[4] || (e[4] = qe((x) => s.handleSelectTab(2), ["prevent"]))
6869
+ onClick: e[4] || (e[4] = Ve((x) => s.handleSelectTab(2), ["prevent"]))
6860
6870
  }, "Wave & Current", 2),
6861
6871
  o("div", {
6862
6872
  class: Z(["menu-item", i.activeIndex === 3 ? "active" : ""]),
6863
- onClick: e[5] || (e[5] = qe((x) => s.handleSelectTab(3), ["prevent"]))
6873
+ onClick: e[5] || (e[5] = Ve((x) => s.handleSelectTab(3), ["prevent"]))
6864
6874
  }, "Sea Surface", 2),
6865
6875
  o("div", {
6866
6876
  class: Z(["menu-item", i.activeIndex === 4 ? "active" : ""]),
6867
- onClick: e[6] || (e[6] = qe((x) => s.handleSelectTab(4), ["prevent"]))
6877
+ onClick: e[6] || (e[6] = Ve((x) => s.handleSelectTab(4), ["prevent"]))
6868
6878
  }, "Tides", 2)
6869
6879
  ]),
6870
6880
  Fe(o("table", Yi, [
6871
6881
  o("tr", Ki, [
6872
- e[12] || (e[12] = o("th", {
6882
+ e[13] || (e[13] = o("th", {
6873
6883
  rowspan: "1",
6874
6884
  colspan: "1",
6875
6885
  class: "tr-title"
@@ -6877,14 +6887,14 @@ function Qr(a, e, t, r, i, s) {
6877
6887
  ne("Hours"),
6878
6888
  o("span", { class: "unit" }, "(LT)")
6879
6889
  ], -1)),
6880
- (m(!0), u(V, null, $(i.tableData.hours, (x) => (m(), u("th", {
6890
+ (m(!0), g(V, null, $(i.tableData.hours, (x) => (m(), g("th", {
6881
6891
  rowspan: "1",
6882
6892
  colspan: "1",
6883
6893
  key: `HourL${x}`
6884
6894
  }, I(s.computeHourL(x)), 1))), 128))
6885
6895
  ]),
6886
6896
  o("tr", Xi, [
6887
- e[13] || (e[13] = o("th", {
6897
+ e[14] || (e[14] = o("th", {
6888
6898
  rowspan: "1",
6889
6899
  colspan: "1",
6890
6900
  class: "tr-title"
@@ -6892,19 +6902,19 @@ function Qr(a, e, t, r, i, s) {
6892
6902
  ne("UTC"),
6893
6903
  o("span", { class: "unit" })
6894
6904
  ], -1)),
6895
- (m(!0), u(V, null, $(i.tableData.hours, (x) => (m(), u("th", {
6905
+ (m(!0), g(V, null, $(i.tableData.hours, (x) => (m(), g("th", {
6896
6906
  rowspan: "1",
6897
6907
  colspan: "1",
6898
6908
  key: `HourZ${x}`
6899
6909
  }, I(s.computeHourZ(x)), 1))), 128))
6900
6910
  ]),
6901
6911
  o("tr", Ji, [
6902
- e[14] || (e[14] = o("th", {
6912
+ e[15] || (e[15] = o("th", {
6903
6913
  rowspan: "1",
6904
6914
  colspan: "1",
6905
6915
  class: "tr-title"
6906
6916
  }, null, -1)),
6907
- (m(!0), u(V, null, $(i.tableData.weatherUrls, (x, M) => (m(), u("th", {
6917
+ (m(!0), g(V, null, $(i.tableData.weatherUrls, (x, M) => (m(), g("th", {
6908
6918
  rowspan: "1",
6909
6919
  colspan: "1",
6910
6920
  key: `weatherUrls${M}${x}`
@@ -6916,10 +6926,11 @@ function Qr(a, e, t, r, i, s) {
6916
6926
  "show-after": 500
6917
6927
  }, {
6918
6928
  default: Ie(() => [
6919
- x ? (m(), u("img", {
6929
+ x ? (m(), g("img", {
6920
6930
  key: 0,
6921
6931
  class: "iconfont weather-icon",
6922
- src: x
6932
+ src: x,
6933
+ alt: ""
6923
6934
  }, null, 8, qi)) : J("", !0)
6924
6935
  ]),
6925
6936
  _: 2
@@ -6927,7 +6938,7 @@ function Qr(a, e, t, r, i, s) {
6927
6938
  ]))), 128))
6928
6939
  ]),
6929
6940
  o("tr", Vi, [
6930
- e[15] || (e[15] = o("td", {
6941
+ e[16] || (e[16] = o("td", {
6931
6942
  rowspan: "1",
6932
6943
  colspan: "1",
6933
6944
  class: "tr-title"
@@ -6935,14 +6946,14 @@ function Qr(a, e, t, r, i, s) {
6935
6946
  ne("Temp"),
6936
6947
  o("span", { class: "unit" }, "°C")
6937
6948
  ], -1)),
6938
- (m(!0), u(V, null, $(i.tableData.temp, (x, M) => (m(), u("td", {
6949
+ (m(!0), g(V, null, $(i.tableData.temp, (x, M) => (m(), g("td", {
6939
6950
  rowspan: "1",
6940
6951
  colspan: "1",
6941
6952
  key: `weatherUrls${M}${x}`
6942
6953
  }, I(x), 1))), 128))
6943
6954
  ]),
6944
6955
  o("tr", Zi, [
6945
- e[16] || (e[16] = o("td", {
6956
+ e[17] || (e[17] = o("td", {
6946
6957
  rowspan: "1",
6947
6958
  colspan: "1",
6948
6959
  class: "tr-title"
@@ -6950,14 +6961,14 @@ function Qr(a, e, t, r, i, s) {
6950
6961
  ne("Precip"),
6951
6962
  o("span", { class: "unit" }, "mm")
6952
6963
  ], -1)),
6953
- (m(!0), u(V, null, $(i.tableData.precip1h, (x, M) => (m(), u("td", {
6964
+ (m(!0), g(V, null, $(i.tableData.precip1h, (x, M) => (m(), g("td", {
6954
6965
  rowspan: "1",
6955
6966
  colspan: "1",
6956
6967
  key: `precip1h${M}${x}`
6957
6968
  }, I(x), 1))), 128))
6958
6969
  ]),
6959
6970
  o("tr", $i, [
6960
- e[17] || (e[17] = o("td", {
6971
+ e[18] || (e[18] = o("td", {
6961
6972
  rowspan: "1",
6962
6973
  colspan: "1",
6963
6974
  class: "tr-title"
@@ -6965,14 +6976,14 @@ function Qr(a, e, t, r, i, s) {
6965
6976
  ne("Visibility"),
6966
6977
  o("span", { class: "unit" }, "nm")
6967
6978
  ], -1)),
6968
- (m(!0), u(V, null, $(i.tableData.visibility, (x, M) => (m(), u("td", {
6979
+ (m(!0), g(V, null, $(i.tableData.visibility, (x, M) => (m(), g("td", {
6969
6980
  rowspan: "1",
6970
6981
  colspan: "1",
6971
6982
  key: `visibility${M}${x}`
6972
6983
  }, I(x), 1))), 128))
6973
6984
  ]),
6974
6985
  o("tr", er, [
6975
- e[18] || (e[18] = o("td", {
6986
+ e[19] || (e[19] = o("td", {
6976
6987
  rowspan: "1",
6977
6988
  colspan: "1",
6978
6989
  class: "tr-title"
@@ -6980,7 +6991,7 @@ function Qr(a, e, t, r, i, s) {
6980
6991
  ne("Wind gust"),
6981
6992
  o("span", { class: "unit" }, "kts")
6982
6993
  ], -1)),
6983
- (m(!0), u(V, null, $(i.tableData.windGust, (x, M) => (m(), u("td", {
6994
+ (m(!0), g(V, null, $(i.tableData.windGust, (x, M) => (m(), g("td", {
6984
6995
  rowspan: "1",
6985
6996
  colspan: "1",
6986
6997
  key: `windGust${M}${x}`
@@ -6993,7 +7004,7 @@ function Qr(a, e, t, r, i, s) {
6993
7004
  ]),
6994
7005
  Fe(o("table", tr, [
6995
7006
  o("tr", ar, [
6996
- e[19] || (e[19] = o("th", {
7007
+ e[20] || (e[20] = o("th", {
6997
7008
  rowspan: "1",
6998
7009
  colspan: "1",
6999
7010
  class: "tr-title"
@@ -7001,14 +7012,14 @@ function Qr(a, e, t, r, i, s) {
7001
7012
  ne("Hours"),
7002
7013
  o("span", { class: "unit" }, "(LT)")
7003
7014
  ], -1)),
7004
- (m(!0), u(V, null, $(i.tableData.hours, (x, M) => (m(), u("th", {
7015
+ (m(!0), g(V, null, $(i.tableData.hours, (x, M) => (m(), g("th", {
7005
7016
  rowspan: "1",
7006
7017
  colspan: "1",
7007
7018
  key: `currenthoursL${M}${x}`
7008
7019
  }, I(s.computeHourL(x)), 1))), 128))
7009
7020
  ]),
7010
7021
  o("tr", ir, [
7011
- e[20] || (e[20] = o("th", {
7022
+ e[21] || (e[21] = o("th", {
7012
7023
  rowspan: "1",
7013
7024
  colspan: "1",
7014
7025
  class: "tr-title"
@@ -7016,14 +7027,14 @@ function Qr(a, e, t, r, i, s) {
7016
7027
  ne("UTC"),
7017
7028
  o("span", { class: "unit" })
7018
7029
  ], -1)),
7019
- (m(!0), u(V, null, $(i.tableData.hours, (x, M) => (m(), u("th", {
7030
+ (m(!0), g(V, null, $(i.tableData.hours, (x, M) => (m(), g("th", {
7020
7031
  rowspan: "1",
7021
7032
  colspan: "1",
7022
7033
  key: `currenthoursZ${M}${x}`
7023
7034
  }, I(s.computeHourZ(x)), 1))), 128))
7024
7035
  ]),
7025
7036
  o("tr", rr, [
7026
- e[21] || (e[21] = o("td", {
7037
+ e[22] || (e[22] = o("td", {
7027
7038
  rowspan: "1",
7028
7039
  colspan: "1",
7029
7040
  class: "tr-title"
@@ -7031,12 +7042,12 @@ function Qr(a, e, t, r, i, s) {
7031
7042
  ne("Wind"),
7032
7043
  o("span", { class: "unit" }, "kts")
7033
7044
  ], -1)),
7034
- (m(!0), u(V, null, $(i.tableData.windSpeed, (x, M) => (m(), u("td", {
7045
+ (m(!0), g(V, null, $(i.tableData.windSpeed, (x, M) => (m(), g("td", {
7035
7046
  rowspan: "1",
7036
7047
  colspan: "1",
7037
7048
  key: `windSpeed${M}${x}`
7038
7049
  }, [
7039
- isNaN(i.tableData.windDir[M]) ? J("", !0) : (m(), u("span", {
7050
+ isNaN(i.tableData.windDir[M]) ? J("", !0) : (m(), g("span", {
7040
7051
  key: 0,
7041
7052
  class: "iconfont icon wind",
7042
7053
  style: le({ display: "inline-block", transform: `rotate(${i.tableData.windDir[M]}deg)` })
@@ -7045,7 +7056,7 @@ function Qr(a, e, t, r, i, s) {
7045
7056
  ]))), 128))
7046
7057
  ]),
7047
7058
  o("tr", sr, [
7048
- e[22] || (e[22] = o("td", {
7059
+ e[23] || (e[23] = o("td", {
7049
7060
  rowspan: "1",
7050
7061
  colspan: "1",
7051
7062
  class: "tr-title"
@@ -7053,12 +7064,12 @@ function Qr(a, e, t, r, i, s) {
7053
7064
  ne("Sig Wave"),
7054
7065
  o("span", { class: "unit" }, "m")
7055
7066
  ], -1)),
7056
- (m(!0), u(V, null, $(i.tableData.sigwaveHeight, (x, M) => (m(), u("td", {
7067
+ (m(!0), g(V, null, $(i.tableData.sigwaveHeight, (x, M) => (m(), g("td", {
7057
7068
  rowspan: "1",
7058
7069
  colspan: "1",
7059
7070
  key: `sigwaveHeight${M}${x}`
7060
7071
  }, [
7061
- isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (m(), u("span", {
7072
+ isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (m(), g("span", {
7062
7073
  key: 0,
7063
7074
  class: "iconfont icon sigwave",
7064
7075
  style: le({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[M]}deg)` })
@@ -7067,7 +7078,7 @@ function Qr(a, e, t, r, i, s) {
7067
7078
  ]))), 128))
7068
7079
  ]),
7069
7080
  o("tr", or, [
7070
- e[23] || (e[23] = o("td", {
7081
+ e[24] || (e[24] = o("td", {
7071
7082
  rowspan: "1",
7072
7083
  colspan: "1",
7073
7084
  class: "tr-title"
@@ -7075,12 +7086,12 @@ function Qr(a, e, t, r, i, s) {
7075
7086
  ne("Wind Wave"),
7076
7087
  o("span", { class: "unit" }, "m")
7077
7088
  ], -1)),
7078
- (m(!0), u(V, null, $(i.tableData.windwaveHeight, (x, M) => (m(), u("td", {
7089
+ (m(!0), g(V, null, $(i.tableData.windwaveHeight, (x, M) => (m(), g("td", {
7079
7090
  rowspan: "1",
7080
7091
  colspan: "1",
7081
7092
  key: `windwaveHeight${M}${x}`
7082
7093
  }, [
7083
- isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (m(), u("span", {
7094
+ isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (m(), g("span", {
7084
7095
  key: 0,
7085
7096
  class: "iconfont icon windwave",
7086
7097
  style: le({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[M]}deg)` })
@@ -7089,7 +7100,7 @@ function Qr(a, e, t, r, i, s) {
7089
7100
  ]))), 128))
7090
7101
  ]),
7091
7102
  o("tr", nr, [
7092
- e[24] || (e[24] = o("td", {
7103
+ e[25] || (e[25] = o("td", {
7093
7104
  rowspan: "1",
7094
7105
  colspan: "1",
7095
7106
  class: "tr-title"
@@ -7097,12 +7108,12 @@ function Qr(a, e, t, r, i, s) {
7097
7108
  ne("Swell"),
7098
7109
  o("span", { class: "unit" }, "m")
7099
7110
  ], -1)),
7100
- (m(!0), u(V, null, $(i.tableData.swellHeight, (x, M) => (m(), u("td", {
7111
+ (m(!0), g(V, null, $(i.tableData.swellHeight, (x, M) => (m(), g("td", {
7101
7112
  rowspan: "1",
7102
7113
  colspan: "1",
7103
7114
  key: `swellHeight${M}${x}`
7104
7115
  }, [
7105
- isNaN(i.tableData.swellDir[M]) ? J("", !0) : (m(), u("span", {
7116
+ isNaN(i.tableData.swellDir[M]) ? J("", !0) : (m(), g("span", {
7106
7117
  key: 0,
7107
7118
  class: "iconfont icon swell",
7108
7119
  style: le({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[M]}deg)` })
@@ -7111,7 +7122,7 @@ function Qr(a, e, t, r, i, s) {
7111
7122
  ]))), 128))
7112
7123
  ]),
7113
7124
  o("tr", lr, [
7114
- e[25] || (e[25] = o("td", {
7125
+ e[26] || (e[26] = o("td", {
7115
7126
  rowspan: "1",
7116
7127
  colspan: "1",
7117
7128
  class: "tr-title"
@@ -7119,12 +7130,12 @@ function Qr(a, e, t, r, i, s) {
7119
7130
  ne("Current"),
7120
7131
  o("span", { class: "unit" }, "kts")
7121
7132
  ], -1)),
7122
- (m(!0), u(V, null, $(i.tableData.currentSpeed, (x, M) => (m(), u("td", {
7133
+ (m(!0), g(V, null, $(i.tableData.currentSpeed, (x, M) => (m(), g("td", {
7123
7134
  rowspan: "1",
7124
7135
  colspan: "1",
7125
7136
  key: `currentSpeed${M}${x}`
7126
7137
  }, [
7127
- isNaN(i.tableData.currentDir[M]) ? J("", !0) : (m(), u("span", {
7138
+ isNaN(i.tableData.currentDir[M]) ? J("", !0) : (m(), g("span", {
7128
7139
  key: 0,
7129
7140
  class: "iconfont icon current",
7130
7141
  id: "meteoGrayIcon",
@@ -7138,7 +7149,7 @@ function Qr(a, e, t, r, i, s) {
7138
7149
  ]),
7139
7150
  Fe(o("table", hr, [
7140
7151
  o("tr", cr, [
7141
- e[26] || (e[26] = o("th", {
7152
+ e[27] || (e[27] = o("th", {
7142
7153
  rowspan: "1",
7143
7154
  colspan: "1",
7144
7155
  class: "tr-title"
@@ -7146,14 +7157,14 @@ function Qr(a, e, t, r, i, s) {
7146
7157
  ne("Hours"),
7147
7158
  o("span", { class: "unit" }, "(LT)")
7148
7159
  ], -1)),
7149
- (m(!0), u(V, null, $(i.tableData.hours, (x, M) => (m(), u("th", {
7160
+ (m(!0), g(V, null, $(i.tableData.hours, (x, M) => (m(), g("th", {
7150
7161
  rowspan: "1",
7151
7162
  colspan: "1",
7152
7163
  key: `seahoursL${M}${x}`
7153
7164
  }, I(s.computeHourL(x)), 1))), 128))
7154
7165
  ]),
7155
7166
  o("tr", dr, [
7156
- e[27] || (e[27] = o("th", {
7167
+ e[28] || (e[28] = o("th", {
7157
7168
  rowspan: "1",
7158
7169
  colspan: "1",
7159
7170
  class: "tr-title"
@@ -7161,14 +7172,14 @@ function Qr(a, e, t, r, i, s) {
7161
7172
  ne("UTC"),
7162
7173
  o("span", { class: "unit" })
7163
7174
  ], -1)),
7164
- (m(!0), u(V, null, $(i.tableData.hours, (x, M) => (m(), u("th", {
7175
+ (m(!0), g(V, null, $(i.tableData.hours, (x, M) => (m(), g("th", {
7165
7176
  rowspan: "1",
7166
7177
  colspan: "1",
7167
7178
  key: `seahoursZ${M}${x}`
7168
7179
  }, I(s.computeHourZ(x)), 1))), 128))
7169
7180
  ]),
7170
7181
  o("tr", pr, [
7171
- e[28] || (e[28] = o("td", {
7182
+ e[29] || (e[29] = o("td", {
7172
7183
  rowspan: "1",
7173
7184
  colspan: "1",
7174
7185
  class: "tr-title"
@@ -7176,14 +7187,14 @@ function Qr(a, e, t, r, i, s) {
7176
7187
  ne("SeaLevel"),
7177
7188
  o("span", { class: "unit" }, "m")
7178
7189
  ], -1)),
7179
- (m(!0), u(V, null, $(i.tableData.seaLevel, (x, M) => (m(), u("td", {
7190
+ (m(!0), g(V, null, $(i.tableData.seaLevel, (x, M) => (m(), g("td", {
7180
7191
  rowspan: "1",
7181
7192
  colspan: "1",
7182
7193
  key: `SeaLevel${M}${x}`
7183
7194
  }, I(x), 1))), 128))
7184
7195
  ]),
7185
7196
  o("tr", mr, [
7186
- e[29] || (e[29] = o("td", {
7197
+ e[30] || (e[30] = o("td", {
7187
7198
  rowspan: "1",
7188
7199
  colspan: "1",
7189
7200
  class: "tr-title"
@@ -7191,7 +7202,7 @@ function Qr(a, e, t, r, i, s) {
7191
7202
  ne("SeaTemp"),
7192
7203
  o("span", { class: "unit" }, "°C")
7193
7204
  ], -1)),
7194
- (m(!0), u(V, null, $(i.tableData.seaTemp, (x, M) => (m(), u("td", {
7205
+ (m(!0), g(V, null, $(i.tableData.seaTemp, (x, M) => (m(), g("td", {
7195
7206
  rowspan: "1",
7196
7207
  colspan: "1",
7197
7208
  key: `SeaTemp${M}${x}`
@@ -7200,33 +7211,35 @@ function Qr(a, e, t, r, i, s) {
7200
7211
  ], 512), [
7201
7212
  [Oe, i.activeIndex === 3]
7202
7213
  ]),
7203
- i.activeIndex === 3 ? (m(), u("div", ur, e[30] || (e[30] = [
7214
+ i.activeIndex === 3 ? (m(), g("div", ur, e[31] || (e[31] = [
7204
7215
  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)
7205
7216
  ]))) : J("", !0),
7206
7217
  Fe(o("table", gr, [
7207
7218
  o("tr", yr, [
7208
- (m(!0), u(V, null, $(i.tideTableData, (x, M) => (m(), u("th", {
7219
+ (m(!0), g(V, null, $(i.tideTableData, (x, M) => (m(), g("th", {
7209
7220
  rowspan: "1",
7210
7221
  colspan: "1",
7211
7222
  key: `Tide-tr-${M}${x}`
7212
7223
  }, I(x.type) + " Tide", 1))), 128))
7213
7224
  ]),
7214
7225
  o("tr", fr, [
7215
- (m(!0), u(V, null, $(i.tideTableData, (x, M) => (m(), u("td", {
7226
+ (m(!0), g(V, null, $(i.tideTableData, (x, M) => (m(), g("td", {
7216
7227
  rowspan: "1",
7217
7228
  colspan: "1",
7218
7229
  key: `Tide-date-${M}${x}`
7219
7230
  }, I(s.computeHourHmmLT(x == null ? void 0 : x.date)), 1))), 128))
7220
7231
  ]),
7221
7232
  o("tr", Ar, [
7222
- (m(!0), u(V, null, $(i.tideTableData, (x, M) => (m(), u("td", {
7233
+ (m(!0), g(V, null, $(i.tideTableData, (x, M) => (m(), g("td", {
7223
7234
  rowspan: "1",
7224
7235
  colspan: "1",
7225
7236
  key: `Tide-height-${M}${x}`
7226
7237
  }, I(s.roundPrecision(x == null ? void 0 : x.height, 2)) + " m", 1))), 128))
7227
7238
  ]),
7228
- e[31] || (e[31] = o("tr", { class: "tr-tide flex-center info" }, [
7229
- o("span", null, "Tide Datum: Chart Datum")
7239
+ e[32] || (e[32] = o("tr", { class: "tr-tide flex-center info" }, [
7240
+ o("td", null, [
7241
+ o("span", null, "Tide Datum: Chart Datum")
7242
+ ])
7230
7243
  ], -1))
7231
7244
  ], 512), [
7232
7245
  [Oe, i.activeIndex === 4]
@@ -7237,51 +7250,51 @@ function Qr(a, e, t, r, i, s) {
7237
7250
  Fe(o("div", wr, [
7238
7251
  o("div", vr, [
7239
7252
  o("div", br, [
7240
- e[32] || (e[32] = o("div", null, "Wind", -1)),
7253
+ e[33] || (e[33] = o("div", null, "Wind", -1)),
7241
7254
  o("div", null, I((N = (F = (D = i.currentHourData) == null ? void 0 : D.weather) == null ? void 0 : F.wind) == null ? void 0 : N.direction) + "/" + I(s.roundPrecision((W = (G = (j = i.currentHourData) == null ? void 0 : j.weather) == null ? void 0 : G.wind) == null ? void 0 : W.kts, 1)) + "kts/BF" + I((ue = (he = (me = i.currentHourData) == null ? void 0 : me.weather) == null ? void 0 : he.wind) == null ? void 0 : ue.scale) + "/" + I(s.roundPrecision((Y = (ge = (fe = i.currentHourData) == null ? void 0 : fe.weather) == null ? void 0 : ge.wind) == null ? void 0 : Y.gusts, 1)) + " kts", 1)
7242
7255
  ]),
7243
7256
  o("div", Lr, [
7244
- e[33] || (e[33] = o("div", null, "Sig wave", -1)),
7257
+ e[34] || (e[34] = o("div", null, "Sig wave", -1)),
7245
7258
  o("div", null, I((pe = (Ae = (ae = i.currentHourData) == null ? void 0 : ae.wave) == null ? void 0 : Ae.sig) == null ? void 0 : pe.direction) + "/" + I(s.roundPrecision((Ce = (Le = (ye = i.currentHourData) == null ? void 0 : ye.wave) == null ? void 0 : Le.sig) == null ? void 0 : Ce.height, 1)) + "m/" + I(s.roundPrecision((_e = (we = (xe = i.currentHourData) == null ? void 0 : xe.wave) == null ? void 0 : we.sig) == null ? void 0 : _e.period, 1)) + "s", 1)
7246
7259
  ])
7247
7260
  ]),
7248
7261
  o("div", Cr, [
7249
7262
  o("div", xr, [
7250
- e[34] || (e[34] = o("div", null, "Wind wave", -1)),
7263
+ e[35] || (e[35] = o("div", null, "Wind wave", -1)),
7251
7264
  o("div", null, I((ve = (ze = (B = i.currentHourData) == null ? void 0 : B.wave) == null ? void 0 : ze.wd) == null ? void 0 : ve.direction) + "/" + I(s.roundPrecision((He = (Ee = (Pe = i.currentHourData) == null ? void 0 : Pe.wave) == null ? void 0 : Ee.wd) == null ? void 0 : He.height, 1)) + "m/" + I(s.roundPrecision((ce = (re = (ke = i.currentHourData) == null ? void 0 : ke.wave) == null ? void 0 : re.wd) == null ? void 0 : ce.period, 1)) + "s", 1)
7252
7265
  ]),
7253
7266
  o("div", _r, [
7254
- e[35] || (e[35] = o("div", null, "Swell", -1)),
7267
+ e[36] || (e[36] = o("div", null, "Swell", -1)),
7255
7268
  o("div", null, I((K = (Be = (Q = i.currentHourData) == null ? void 0 : Q.wave) == null ? void 0 : Be.swell) == null ? void 0 : K.direction) + "/" + I(s.roundPrecision((P = (Me = (q = i.currentHourData) == null ? void 0 : q.wave) == null ? void 0 : Me.swell) == null ? void 0 : P.height, 1)) + "m/" + I(s.roundPrecision((Se = (De = (de = i.currentHourData) == null ? void 0 : de.wave) == null ? void 0 : De.swell) == null ? void 0 : Se.period, 1)) + "s", 1)
7256
7269
  ])
7257
7270
  ]),
7258
7271
  o("div", Br, [
7259
7272
  o("div", Ir, [
7260
- e[36] || (e[36] = o("div", null, "Current", -1)),
7273
+ e[37] || (e[37] = o("div", null, "Current", -1)),
7261
7274
  o("div", null, I((z = (Te = i.currentHourData) == null ? void 0 : Te.current) == null ? void 0 : z.direction) + "/" + I(s.roundPrecision((Ge = (O = i.currentHourData) == null ? void 0 : O.current) == null ? void 0 : Ge.kts, 2)) + "kts", 1)
7262
7275
  ]),
7263
7276
  o("div", Er, [
7264
- e[37] || (e[37] = o("div", null, "Sea level", -1)),
7277
+ e[38] || (e[38] = o("div", null, "Sea level", -1)),
7265
7278
  o("div", null, I(s.roundPrecision((Ue = i.currentHourData) == null ? void 0 : Ue.height, 1)) + "m", 1)
7266
7279
  ])
7267
7280
  ]),
7268
7281
  o("div", kr, [
7269
7282
  o("div", Dr, [
7270
- e[38] || (e[38] = o("div", null, "Sea Temp", -1)),
7283
+ e[39] || (e[39] = o("div", null, "Sea Temp", -1)),
7271
7284
  o("div", null, I(s.roundPrecision((ie = i.currentHourData) == null ? void 0 : ie.sst, 1)) + "°C", 1)
7272
7285
  ]),
7273
7286
  o("div", zr, [
7274
- e[39] || (e[39] = o("div", null, "Visibility", -1)),
7287
+ e[40] || (e[40] = o("div", null, "Visibility", -1)),
7275
7288
  o("div", null, I(s.roundPrecision((tt = (Ne = i.currentHourData) == null ? void 0 : Ne.weather) == null ? void 0 : tt.visibility, 1)) + "nm", 1)
7276
7289
  ])
7277
7290
  ]),
7278
7291
  o("div", Pr, [
7279
7292
  o("div", Mr, [
7280
- e[40] || (e[40] = o("div", null, "Temp", -1)),
7293
+ e[41] || (e[41] = o("div", null, "Temp", -1)),
7281
7294
  o("div", null, I(s.roundPrecision((it = (at = i.currentHourData) == null ? void 0 : at.weather) == null ? void 0 : it.temp, 1)) + "°C", 1)
7282
7295
  ]),
7283
7296
  o("div", Sr, [
7284
- e[41] || (e[41] = o("div", null, "Precip", -1)),
7297
+ e[42] || (e[42] = o("div", null, "Precip", -1)),
7285
7298
  o("div", null, I(s.roundPrecision((ot = (st = (rt = i.currentHourData) == null ? void 0 : rt.weather) == null ? void 0 : st.precip) == null ? void 0 : ot.sum3Hours, 1)) + "mm", 1)
7286
7299
  ])
7287
7300
  ])
@@ -7289,16 +7302,25 @@ function Qr(a, e, t, r, i, s) {
7289
7302
  [Oe, !i.showTables]
7290
7303
  ]),
7291
7304
  o("div", {
7292
- class: Z(["more", i.isDay ? "day" : "night"]),
7293
- onClick: e[7] || (e[7] = (...x) => s.handleMeteoMore && s.handleMeteoMore(...x))
7294
- }, "More >>", 2)
7305
+ class: Z(["action", i.isDay ? "day" : "night"])
7306
+ }, [
7307
+ t.permission & i.helper.LEVEL.Supper ? (m(), g("div", {
7308
+ key: 0,
7309
+ class: "button",
7310
+ style: { "margin-right": "10px" },
7311
+ onClick: e[7] || (e[7] = (...x) => s.handleNotify && s.handleNotify(...x))
7312
+ }, "Notify")) : J("", !0),
7313
+ o("div", {
7314
+ onClick: e[8] || (e[8] = (...x) => s.handleMeteoMore && s.handleMeteoMore(...x))
7315
+ }, "More >>")
7316
+ ], 2)
7295
7317
  ], 2))
7296
7318
  ])
7297
7319
  ], 512)), [
7298
7320
  [Oe, i.showMeteo]
7299
7321
  ]);
7300
7322
  }
7301
- const Hr = /* @__PURE__ */ U(_i, [["render", Qr], ["__scopeId", "data-v-fa02c365"]]), Nr = {
7323
+ const Hr = /* @__PURE__ */ U(_i, [["render", Qr], ["__scopeId", "data-v-3afdcf26"]]), Nr = {
7302
7324
  name: "IdmWarZone",
7303
7325
  props: {
7304
7326
  map: {
@@ -7392,7 +7414,7 @@ const Hr = /* @__PURE__ */ U(_i, [["render", Qr], ["__scopeId", "data-v-fa02c365
7392
7414
  }
7393
7415
  };
7394
7416
  function Fr(a, e, t, r, i, s) {
7395
- return m(), u("div");
7417
+ return m(), g("div");
7396
7418
  }
7397
7419
  const Or = /* @__PURE__ */ U(Nr, [["render", Fr]]), Rr = {
7398
7420
  name: "IdmGmdssArea",
@@ -7518,7 +7540,7 @@ const Or = /* @__PURE__ */ U(Nr, [["render", Fr]]), Rr = {
7518
7540
  }
7519
7541
  };
7520
7542
  function jr(a, e, t, r, i, s) {
7521
- return m(), u("div");
7543
+ return m(), g("div");
7522
7544
  }
7523
7545
  const Wr = /* @__PURE__ */ U(Rr, [["render", jr]]), Gr = {
7524
7546
  name: "IdmEcaZone",
@@ -7615,7 +7637,7 @@ const Wr = /* @__PURE__ */ U(Rr, [["render", jr]]), Gr = {
7615
7637
  }
7616
7638
  };
7617
7639
  function Ur(a, e, t, r, i, s) {
7618
- return m(), u("div");
7640
+ return m(), g("div");
7619
7641
  }
7620
7642
  const Yr = /* @__PURE__ */ U(Gr, [["render", Ur]]);
7621
7643
  const Kr = {
@@ -7754,7 +7776,7 @@ const Kr = {
7754
7776
  }, Xr = { id: "idm-gl3-zone-info" }, Jr = ["innerHTML"];
7755
7777
  function qr(a, e, t, r, i, s) {
7756
7778
  var n;
7757
- return Fe((m(), u("div", Xr, [
7779
+ return Fe((m(), g("div", Xr, [
7758
7780
  o("div", {
7759
7781
  class: "iconfont close",
7760
7782
  onClick: e[0] || (e[0] = (l) => i.showZone = !1)
@@ -7871,7 +7893,7 @@ const Zr = {
7871
7893
  style: { "align-items": "flex-start" }
7872
7894
  }, ss = { class: "meteo-forecast flex-end" };
7873
7895
  function os(a, e, t, r, i, s) {
7874
- return Fe((m(), u("div", $r, [
7896
+ return Fe((m(), g("div", $r, [
7875
7897
  o("div", {
7876
7898
  class: "close iconfont",
7877
7899
  onClick: e[0] || (e[0] = (n) => i.showPort = !1)
@@ -7903,7 +7925,7 @@ function os(a, e, t, r, i, s) {
7903
7925
  [Oe, i.showPort]
7904
7926
  ]);
7905
7927
  }
7906
- const ns = /* @__PURE__ */ U(Zr, [["render", os], ["__scopeId", "data-v-2fc5fc5e"]]), ls = {
7928
+ const ns = /* @__PURE__ */ U(Zr, [["render", os], ["__scopeId", "data-v-39da1804"]]), ls = {
7907
7929
  name: "IdmLoadLine",
7908
7930
  props: {
7909
7931
  map: {
@@ -7977,7 +7999,7 @@ const ns = /* @__PURE__ */ U(Zr, [["render", os], ["__scopeId", "data-v-2fc5fc5e
7977
7999
  }
7978
8000
  };
7979
8001
  function hs(a, e, t, r, i, s) {
7980
- return m(), u("div");
8002
+ return m(), g("div");
7981
8003
  }
7982
8004
  const cs = /* @__PURE__ */ U(ls, [["render", hs]]), ds = {
7983
8005
  name: "IdmTimezone",
@@ -8148,7 +8170,7 @@ const cs = /* @__PURE__ */ U(ls, [["render", hs]]), ds = {
8148
8170
  }
8149
8171
  };
8150
8172
  function ps(a, e, t, r, i, s) {
8151
- return m(), u("div");
8173
+ return m(), g("div");
8152
8174
  }
8153
8175
  const ms = /* @__PURE__ */ U(ds, [["render", ps]]), us = {
8154
8176
  name: "IdmVoluntaryReportingArea",
@@ -8242,7 +8264,7 @@ const ms = /* @__PURE__ */ U(ds, [["render", ps]]), us = {
8242
8264
  }
8243
8265
  };
8244
8266
  function gs(a, e, t, r, i, s) {
8245
- return m(), u("div");
8267
+ return m(), g("div");
8246
8268
  }
8247
8269
  const ys = /* @__PURE__ */ U(us, [["render", gs]]), fs = {
8248
8270
  name: "IdmSpecialArea",
@@ -8338,7 +8360,7 @@ const ys = /* @__PURE__ */ U(us, [["render", gs]]), fs = {
8338
8360
  }
8339
8361
  };
8340
8362
  function As(a, e, t, r, i, s) {
8341
- return m(), u("div");
8363
+ return m(), g("div");
8342
8364
  }
8343
8365
  const ws = /* @__PURE__ */ U(fs, [["render", As]]), vs = {
8344
8366
  name: "IdmTerminator",
@@ -8393,7 +8415,7 @@ const ws = /* @__PURE__ */ U(fs, [["render", As]]), vs = {
8393
8415
  }
8394
8416
  };
8395
8417
  function bs(a, e, t, r, i, s) {
8396
- return m(), u("div");
8418
+ return m(), g("div");
8397
8419
  }
8398
8420
  const Ls = /* @__PURE__ */ U(vs, [["render", bs]]);
8399
8421
  const Cs = {
@@ -8553,7 +8575,7 @@ const Cs = {
8553
8575
  }
8554
8576
  };
8555
8577
  function xs(a, e, t, r, i, s) {
8556
- return i.lngLat ? (m(), u("div", {
8578
+ return i.lngLat ? (m(), g("div", {
8557
8579
  key: 0,
8558
8580
  class: "lat-lng-tip",
8559
8581
  style: le({ right: i.right + "px", bottom: t.bottom })
@@ -8563,7 +8585,7 @@ function xs(a, e, t, r, i, s) {
8563
8585
  o("span", null, I(i.lngLat.lng.pretty), 1)
8564
8586
  ], 4)) : J("", !0);
8565
8587
  }
8566
- const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-ad66a24c"]]), _s = {
8588
+ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7"]]), _s = {
8567
8589
  name: "IdmMeasure",
8568
8590
  props: {
8569
8591
  map: {
@@ -8714,8 +8736,8 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-ad66a24c
8714
8736
  t = se.roundPrecision(t + h, 2);
8715
8737
  let A;
8716
8738
  l.mode === "RL" ? A = se.convertToMonotonicLng([c, p]) : A = se.convertToMonotonicLng(Re.interpolateCoordinates(c, p, 200));
8717
- const v = S.lineString(A.map((E) => [E.lng, E.lat]));
8718
- v.properties.dist = h, v.properties.bearing = d, v.properties.total = t, r.push(v);
8739
+ const b = S.lineString(A.map((E) => [E.lng, E.lat]));
8740
+ b.properties.dist = h, b.properties.bearing = d, b.properties.total = t, r.push(b);
8719
8741
  }
8720
8742
  e.push(...r), a.total = t;
8721
8743
  }
@@ -8729,7 +8751,7 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-ad66a24c
8729
8751
  s = Re.calculateDistance(p, h, c.mode === "RL", 4), n = Re.calculateBearing(p, h, c.mode === "RL", 2);
8730
8752
  let d;
8731
8753
  c.mode === "RL" ? d = se.convertToMonotonicLng([p, h]) : d = se.convertToMonotonicLng(Re.interpolateCoordinates(p, h, 200));
8732
- const A = S.lineString(d.map((v) => [v.lng, v.lat]));
8754
+ const A = S.lineString(d.map((b) => [b.lng, b.lat]));
8733
8755
  A.properties.dist = s, A.properties.bearing = n, i.features.push(A);
8734
8756
  }
8735
8757
  if (r) {
@@ -8737,7 +8759,7 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-ad66a24c
8737
8759
  s = Re.calculateDistance(p, h, c.mode === "RL", 4), n = Re.calculateBearing(p, h, c.mode === "RL", 2);
8738
8760
  let d;
8739
8761
  c.mode === "RL" ? d = se.convertToMonotonicLng([p, h]) : d = se.convertToMonotonicLng(Re.interpolateCoordinates(p, h, 200));
8740
- const A = S.lineString(d.map((v) => [v.lng, v.lat]));
8762
+ const A = S.lineString(d.map((b) => [b.lng, b.lat]));
8741
8763
  A.properties.dist = s, A.properties.bearing = n, i.features.push(A);
8742
8764
  }
8743
8765
  this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
@@ -8850,16 +8872,16 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-ad66a24c
8850
8872
  }
8851
8873
  },
8852
8874
  handleClear(a, e = !0) {
8853
- var s, n, l, c, p, h, d, A, v;
8875
+ var s, n, l, c, p, h, d, A, b;
8854
8876
  const t = `${a.id}-${this.source}`, r = `${a.id}-${this.layer}`, i = `${a.id}-${this.labelLayer}`;
8855
8877
  (s = this.map) != null && s.getLayer(r) && this.map.removeLayer(r), (n = this.map) != null && n.getLayer(i) && this.map.removeLayer(i), (l = this.map) != null && l.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (c = this.map) != null && c.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (p = this.closeMarkers[a.id]) == null || p.remove(), this.closeMarkers[a.id] = void 0, (h = this.pointMarkers[a.id]) == null || h.forEach((E) => {
8856
8878
  E == null || E.remove();
8857
- }), this.pointMarkers[a.id] = [], (d = this.tipMarker) == null || d.remove(), this.tipMarker = void 0, e && ((A = this.map) != null && A.getSource(t)) && this.map.removeSource(t), e && ((v = this.map) != null && v.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
8879
+ }), this.pointMarkers[a.id] = [], (d = this.tipMarker) == null || d.remove(), this.tipMarker = void 0, e && ((A = this.map) != null && A.getSource(t)) && this.map.removeSource(t), e && ((b = this.map) != null && b.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
8858
8880
  }
8859
8881
  }
8860
8882
  };
8861
8883
  function Bs(a, e, t, r, i, s) {
8862
- return m(), u("div");
8884
+ return m(), g("div");
8863
8885
  }
8864
8886
  const Is = /* @__PURE__ */ U(_s, [["render", Bs]]);
8865
8887
  const Es = {
@@ -8893,7 +8915,7 @@ const Es = {
8893
8915
  emits: ["enc"],
8894
8916
  data() {
8895
8917
  return {
8896
- helper: Ze,
8918
+ helper: qe,
8897
8919
  vendor: "",
8898
8920
  right: 10
8899
8921
  };
@@ -8914,13 +8936,13 @@ const Es = {
8914
8936
  }
8915
8937
  },
8916
8938
  mounted() {
8917
- this.vendor = this.permission & Ze.LEVEL.Supper ? "hi" : "i4";
8939
+ this.vendor = this.permission & qe.LEVEL.Supper ? "hi" : "i4";
8918
8940
  },
8919
8941
  methods: {}
8920
8942
  }, ks = { key: 0 }, Ds = { class: "bar-item" };
8921
8943
  function zs(a, e, t, r, i, s) {
8922
8944
  const n = R("ElTooltip");
8923
- return t.enabled && t.permission & i.helper.LEVEL.Supper ? (m(), u("div", ks, [
8945
+ return t.enabled && t.permission & i.helper.LEVEL.Supper ? (m(), g("div", ks, [
8924
8946
  o("div", {
8925
8947
  class: "menu-bar-box",
8926
8948
  style: le({ position: "absolute", right: i.right + "px", bottom: t.bottom })
@@ -8962,7 +8984,7 @@ function zs(a, e, t, r, i, s) {
8962
8984
  ], 4)
8963
8985
  ])) : J("", !0);
8964
8986
  }
8965
- const Ps = /* @__PURE__ */ U(Es, [["render", zs], ["__scopeId", "data-v-8ff97b39"]]), Ms = {
8987
+ const Ps = /* @__PURE__ */ U(Es, [["render", zs], ["__scopeId", "data-v-8eecd76d"]]), Ms = {
8966
8988
  name: "IdmWorld12nm",
8967
8989
  props: {
8968
8990
  map: {
@@ -9225,11 +9247,11 @@ const js = {
9225
9247
  },
9226
9248
  activeWeatherLayers: {
9227
9249
  handler() {
9228
- var t, r, i, s, n, l, c, p, h, d, A, v, E, w, k, _, f, b, g, C, y, L, T;
9250
+ var t, r, i, s, n, l, c, p, h, d, A, b, E, w, k, _, f, v, u, C, y, L, T;
9229
9251
  if (!this.map)
9230
9252
  return !1;
9231
9253
  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");
9232
- this.activeWeatherLayers.length > 0 ? (!a && this.map.getZoom() > 3 && this.enc ? (r = (t = this.map) == null ? void 0 : t.getLayer(this.enc)) == null || r.setLayoutProperty("visibility", "visible") : ((s = (i = this.map) == null ? void 0 : i.getLayer("i4")) == null || s.setLayoutProperty("visibility", "none"), (l = (n = this.map) == null ? void 0 : n.getLayer("hi")) == null || l.setLayoutProperty("visibility", "none")), (p = (c = this.map) == null ? void 0 : c.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || p.setLayoutProperty("visibility", "visible"), (d = this.map) != null && d.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((A = this.map) != null && A.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((E = this.map) == null || E.moveLayer((v = this.viewport) == null ? void 0 : v.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), e && ((k = this.map) == null || k.moveLayer(this.helper.mapboxCustomer.layers.countryBoundary.id, (w = this.viewport) == null ? void 0 : w.rampColorLayer))) : ((f = (_ = this.map) == null ? void 0 : _.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || f.setLayoutProperty("visibility", "none"), this.enc && this.map.getZoom() > 3 ? (g = (b = this.map) == null ? void 0 : b.getLayer(this.enc)) == null || g.setLayoutProperty("visibility", "visible") : ((y = (C = this.map) == null ? void 0 : C.getLayer("i4")) == null || y.setLayoutProperty("visibility", "none"), (T = (L = this.map) == null ? void 0 : L.getLayer("hi")) == null || T.setLayoutProperty("visibility", "none"))), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
9254
+ this.activeWeatherLayers.length > 0 ? (!a && this.map.getZoom() > 3 && this.enc ? (r = (t = this.map) == null ? void 0 : t.getLayer(this.enc)) == null || r.setLayoutProperty("visibility", "visible") : ((s = (i = this.map) == null ? void 0 : i.getLayer("i4")) == null || s.setLayoutProperty("visibility", "none"), (l = (n = this.map) == null ? void 0 : n.getLayer("hi")) == null || l.setLayoutProperty("visibility", "none")), (p = (c = this.map) == null ? void 0 : c.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || p.setLayoutProperty("visibility", "visible"), (d = this.map) != null && d.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((A = this.map) != null && A.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((E = this.map) == null || E.moveLayer((b = this.viewport) == null ? void 0 : b.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), e && ((k = this.map) == null || k.moveLayer(this.helper.mapboxCustomer.layers.countryBoundary.id, (w = this.viewport) == null ? void 0 : w.rampColorLayer))) : ((f = (_ = this.map) == null ? void 0 : _.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || f.setLayoutProperty("visibility", "none"), this.enc && this.map.getZoom() > 3 ? (u = (v = this.map) == null ? void 0 : v.getLayer(this.enc)) == null || u.setLayoutProperty("visibility", "visible") : ((y = (C = this.map) == null ? void 0 : C.getLayer("i4")) == null || y.setLayoutProperty("visibility", "none"), (T = (L = this.map) == null ? void 0 : L.getLayer("hi")) == null || T.setLayoutProperty("visibility", "none"))), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
9233
9255
  },
9234
9256
  immediate: !0
9235
9257
  },
@@ -9285,9 +9307,9 @@ const js = {
9285
9307
  const e = (/* @__PURE__ */ new Date()).valueOf();
9286
9308
  let t = 0, r = 0;
9287
9309
  if (this.map) {
9288
- const v = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, E = (s = this.map) == null ? void 0 : s.getBounds(), w = `${E._sw.lng},${E._sw.lat},${E._ne.lng},${E._ne.lat}`;
9310
+ const b = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, E = (s = this.map) == null ? void 0 : s.getBounds(), w = `${E._sw.lng},${E._sw.lat},${E._ne.lng},${E._ne.lat}`;
9289
9311
  if (this.particleFactor && ((n = this.$refs.layer) != null && n.autoActive)) {
9290
- const k = Ve.WEATHER_LAYERS.find((_) => {
9312
+ const k = Ze.WEATHER_LAYERS.find((_) => {
9291
9313
  var f;
9292
9314
  return ((f = _.peer) == null ? void 0 : f.weight) === this.particleFactor.weight;
9293
9315
  });
@@ -9296,21 +9318,21 @@ const js = {
9296
9318
  if (this.weatherWeight > 0) {
9297
9319
  let k = this.weatherWeight, _;
9298
9320
  if (a.tropicals || this.weatherWeight & 256 && (_ = this.weatherLayers.tropicals, _ && (k -= 256, _.version = Math.random() + 1)), k > 0) {
9299
- const f = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], b = await Qe.get(`${f}/api/arc/weather/layers2/links?l=${k}&v=${this.source}&z=${v}&bbox=${w}&t=${this.ts}`, {
9321
+ const f = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], v = await Qe.get(`${f}/api/arc/weather/layers2/links?l=${k}&v=${this.source}&z=${b}&bbox=${w}&t=${this.ts}`, {
9300
9322
  headers: {
9301
9323
  Authorization: this.token || this.defaultMeteoToken
9302
9324
  }
9303
9325
  });
9304
- if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((l = b == null ? void 0 : b.data) == null ? void 0 : l.code) === 0) {
9305
- const g = (c = b == null ? void 0 : b.data) == null ? void 0 : c.data, C = [];
9306
- for (const L in g)
9326
+ 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) {
9327
+ const u = (c = v == null ? void 0 : v.data) == null ? void 0 : c.data, C = [];
9328
+ for (const L in u)
9307
9329
  L !== "tropicals" && C.push(
9308
- Qe.get(g[L], {
9330
+ Qe.get(u[L], {
9309
9331
  headers: {
9310
9332
  Authorization: this.token || this.defaultMeteoToken,
9311
9333
  key: L
9312
9334
  },
9313
- responseType: /\.(jpg|png)$/.test(g[L]) ? "blob" : "json"
9335
+ responseType: /\.(jpg|png)$/.test(u[L]) ? "blob" : "json"
9314
9336
  }).catch((T) => {
9315
9337
  console.log(`[${L}] fetch layer error: ${T}`);
9316
9338
  })
@@ -9322,9 +9344,9 @@ const js = {
9322
9344
  D && T && (this.weatherLayers[D] = {
9323
9345
  raw: T,
9324
9346
  type: ((G = L == null ? void 0 : L.config) == null ? void 0 : G.responseType) === "blob" ? "image" : "json",
9325
- etime: b.data.etime
9347
+ etime: v.data.etime
9326
9348
  });
9327
- }), g.tropicals && Qe.get(g.tropicals, {
9349
+ }), u.tropicals && Qe.get(u.tropicals, {
9328
9350
  headers: {
9329
9351
  Authorization: this.token || this.defaultMeteoToken,
9330
9352
  key: "tropicals"
@@ -9337,27 +9359,27 @@ const js = {
9337
9359
  active: !0,
9338
9360
  cached: !1,
9339
9361
  type: "json",
9340
- etime: b.data.etime,
9362
+ etime: v.data.etime,
9341
9363
  version: Math.random() + 1
9342
9364
  };
9343
9365
  });
9344
9366
  }
9345
9367
  if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather layers elapsed: ", r, ", total: ", t += r), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
9346
- const g = (p = this.weatherLayers["swell-direction"]) == null ? void 0 : p.raw, C = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
9368
+ const u = (p = this.weatherLayers["swell-direction"]) == null ? void 0 : p.raw, C = (h = this.weatherLayers["swell-height"]) == null ? void 0 : h.raw;
9347
9369
  delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
9348
9370
  type: "json",
9349
- direction: g,
9371
+ direction: u,
9350
9372
  height: { raw: C },
9351
- etime: b.data.etime
9373
+ etime: v.data.etime
9352
9374
  };
9353
9375
  }
9354
9376
  if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
9355
- const g = (d = this.weatherLayers["current-direction"]) == null ? void 0 : d.raw, C = (A = this.weatherLayers["current-speed"]) == null ? void 0 : A.raw;
9377
+ const u = (d = this.weatherLayers["current-direction"]) == null ? void 0 : d.raw, C = (A = this.weatherLayers["current-speed"]) == null ? void 0 : A.raw;
9356
9378
  delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
9357
9379
  type: "json",
9358
- direction: g,
9380
+ direction: u,
9359
9381
  speed: { raw: C },
9360
- etime: b.data.etime
9382
+ etime: v.data.etime
9361
9383
  };
9362
9384
  }
9363
9385
  }
@@ -9381,9 +9403,9 @@ const js = {
9381
9403
  }
9382
9404
  });
9383
9405
  if (((e = d == null ? void 0 : d.data) == null ? void 0 : e.code) === 0) {
9384
- const A = (t = d == null ? void 0 : d.data) == null ? void 0 : t.data, v = [];
9406
+ const A = (t = d == null ? void 0 : d.data) == null ? void 0 : t.data, b = [];
9385
9407
  for (const w in A)
9386
- v.push(
9408
+ b.push(
9387
9409
  Qe.get(A[w], {
9388
9410
  headers: {
9389
9411
  Authorization: this.token || this.defaultMeteoToken,
@@ -9391,10 +9413,10 @@ const js = {
9391
9413
  }
9392
9414
  })
9393
9415
  );
9394
- const E = await Promise.all(v);
9416
+ const E = await Promise.all(b);
9395
9417
  this.otherLayers = { enc: n, world12nm: l, worldMarine: c, chinaRoute: p }, E.map((w) => {
9396
- var f, b, g;
9397
- const k = ((f = w == null ? void 0 : w.data) == null ? void 0 : f.data) || (w == null ? void 0 : w.data), _ = (g = (b = w == null ? void 0 : w.config) == null ? void 0 : b.headers) == null ? void 0 : g.key;
9418
+ var f, v, u;
9419
+ const k = ((f = w == null ? void 0 : w.data) == null ? void 0 : f.data) || (w == null ? void 0 : w.data), _ = (u = (v = w == null ? void 0 : w.config) == null ? void 0 : v.headers) == null ? void 0 : u.key;
9398
9420
  this.otherLayers[_] = k;
9399
9421
  });
9400
9422
  }
@@ -9405,9 +9427,9 @@ const js = {
9405
9427
  }
9406
9428
  });
9407
9429
  if (((r = d == null ? void 0 : d.data) == null ? void 0 : r.code) === 0) {
9408
- const A = (i = d == null ? void 0 : d.data) == null ? void 0 : i.data, v = [];
9430
+ const A = (i = d == null ? void 0 : d.data) == null ? void 0 : i.data, b = [];
9409
9431
  for (const w in A)
9410
- v.push(
9432
+ b.push(
9411
9433
  Qe.get(A[w], {
9412
9434
  headers: {
9413
9435
  Authorization: this.token || this.defaultMeteoToken,
@@ -9415,9 +9437,9 @@ const js = {
9415
9437
  }
9416
9438
  })
9417
9439
  );
9418
- (await Promise.all(v)).map((w) => {
9419
- var f, b, g;
9420
- const k = ((f = w == null ? void 0 : w.data) == null ? void 0 : f.data) || (w == null ? void 0 : w.data), _ = (g = (b = w == null ? void 0 : w.config) == null ? void 0 : b.headers) == null ? void 0 : g.key;
9440
+ (await Promise.all(b)).map((w) => {
9441
+ var f, v, u;
9442
+ const k = ((f = w == null ? void 0 : w.data) == null ? void 0 : f.data) || (w == null ? void 0 : w.data), _ = (u = (v = w == null ? void 0 : w.config) == null ? void 0 : v.headers) == null ? void 0 : u.key;
9421
9443
  this.otherLayers[_] = k;
9422
9444
  });
9423
9445
  }
@@ -9473,7 +9495,7 @@ const js = {
9473
9495
  );
9474
9496
  },
9475
9497
  handleDrawWeather4Json() {
9476
- var p, h, d, A, v, E;
9498
+ var p, h, d, A, b, E;
9477
9499
  const a = (/* @__PURE__ */ new Date()).valueOf();
9478
9500
  let e = 0, t = 0;
9479
9501
  const r = (p = this.map) == null ? void 0 : p.getBounds(), i = this.map.getZoom(), s = se.convertToStdLng(r._sw.lng), n = se.convertToStdLng(r._ne.lng), l = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
@@ -9484,23 +9506,23 @@ const js = {
9484
9506
  if (w === "swell") {
9485
9507
  k = !0;
9486
9508
  const f = ((h = this.weatherLayers[w]) == null ? void 0 : h.direction) || {};
9487
- for (const g in f)
9488
- if (g > l && g < c && (!(i <= this.zoom) || g % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9489
- const C = f[g].lng;
9509
+ for (const u in f)
9510
+ if (u > l && u < c && (!(i <= this.zoom) || u % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9511
+ const C = f[u].lng;
9490
9512
  s > n ? C.forEach((y, L) => {
9491
9513
  var T, D, F, N, j, G;
9492
9514
  if (i < 2) {
9493
9515
  if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
9494
- const W = S.point([y, g], {
9495
- val: ((T = f[g].val) == null ? void 0 : T[L]) || ((D = f[g].dir) == null ? void 0 : D[L]),
9496
- spd: (F = f[g].spd) == null ? void 0 : F[L]
9516
+ const W = S.point([y, u], {
9517
+ val: ((T = f[u].val) == null ? void 0 : T[L]) || ((D = f[u].dir) == null ? void 0 : D[L]),
9518
+ spd: (F = f[u].spd) == null ? void 0 : F[L]
9497
9519
  });
9498
9520
  _.push(W);
9499
9521
  }
9500
9522
  } else if ((y >= s && y <= 180 || y >= -180 && y <= n) && (!(i <= this.zoom) || y % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9501
- const W = S.point([y, g], {
9502
- val: ((N = f[g].val) == null ? void 0 : N[L]) || ((j = f[g].dir) == null ? void 0 : j[L]),
9503
- spd: (G = f[g].spd) == null ? void 0 : G[L]
9523
+ const W = S.point([y, u], {
9524
+ val: ((N = f[u].val) == null ? void 0 : N[L]) || ((j = f[u].dir) == null ? void 0 : j[L]),
9525
+ spd: (G = f[u].spd) == null ? void 0 : G[L]
9504
9526
  });
9505
9527
  _.push(W);
9506
9528
  }
@@ -9508,63 +9530,63 @@ const js = {
9508
9530
  var T, D, F, N, j, G;
9509
9531
  if (s < 2) {
9510
9532
  if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
9511
- const W = S.point([y, g], {
9512
- val: ((T = f[g].val) == null ? void 0 : T[L]) || ((D = f[g].dir) == null ? void 0 : D[L]),
9513
- spd: (F = f[g].spd) == null ? void 0 : F[L]
9533
+ const W = S.point([y, u], {
9534
+ val: ((T = f[u].val) == null ? void 0 : T[L]) || ((D = f[u].dir) == null ? void 0 : D[L]),
9535
+ spd: (F = f[u].spd) == null ? void 0 : F[L]
9514
9536
  });
9515
9537
  _.push(W);
9516
9538
  }
9517
9539
  } else if (y >= s && y <= n && (!(i <= this.zoom) || y % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9518
- const W = S.point([y, g], {
9519
- val: ((N = f[g].val) == null ? void 0 : N[L]) || ((j = f[g].dir) == null ? void 0 : j[L]),
9520
- spd: (G = f[g].spd) == null ? void 0 : G[L]
9540
+ const W = S.point([y, u], {
9541
+ val: ((N = f[u].val) == null ? void 0 : N[L]) || ((j = f[u].dir) == null ? void 0 : j[L]),
9542
+ spd: (G = f[u].spd) == null ? void 0 : G[L]
9521
9543
  });
9522
9544
  _.push(W);
9523
9545
  }
9524
9546
  });
9525
9547
  }
9526
9548
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("swell direction elapsed: ", t, ", total: ", e += t);
9527
- const b = this.weatherLayers[w].height;
9528
- if (b) {
9529
- if (!b.data) {
9530
- const g = [];
9531
- for (const C in (d = b.raw) == null ? void 0 : d.LineString) {
9532
- const y = b.raw.LineString[C];
9549
+ const v = this.weatherLayers[w].height;
9550
+ if (v) {
9551
+ if (!v.data) {
9552
+ const u = [];
9553
+ for (const C in (d = v.raw) == null ? void 0 : d.LineString) {
9554
+ const y = v.raw.LineString[C];
9533
9555
  for (const L of y)
9534
- g.push(
9556
+ u.push(
9535
9557
  S.lineString(L, {
9536
9558
  val: Number(C)
9537
9559
  })
9538
9560
  );
9539
- b.data = S.featureCollection(g);
9561
+ v.data = S.featureCollection(u);
9540
9562
  }
9541
9563
  }
9542
- if (b.data) {
9543
- const g = this.handleBboxClip(b.data, r);
9544
- _ = _.concat(g);
9564
+ if (v.data) {
9565
+ const u = this.handleBboxClip(v.data, r);
9566
+ _ = _.concat(u);
9545
9567
  }
9546
9568
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("swell height elapsed: ", t, ", total: ", e += t);
9547
9569
  }
9548
9570
  } else if (w === "current" && this.showCurrentIsoband) {
9549
9571
  k = !0;
9550
9572
  const f = ((A = this.weatherLayers[w]) == null ? void 0 : A.direction) || {};
9551
- for (const g in f)
9552
- if (g > l && g < c && (!(i <= this.zoom) || g % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9553
- const C = f[g].lng;
9573
+ for (const u in f)
9574
+ if (u > l && u < c && (!(i <= this.zoom) || u % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9575
+ const C = f[u].lng;
9554
9576
  s > n ? C.forEach((y, L) => {
9555
9577
  var T, D, F, N, j, G;
9556
9578
  if (i < 2) {
9557
9579
  if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
9558
- const W = S.point([y, g], {
9559
- val: ((T = f[g].val) == null ? void 0 : T[L]) || ((D = f[g].dir) == null ? void 0 : D[L]),
9560
- spd: (F = f[g].spd) == null ? void 0 : F[L]
9580
+ const W = S.point([y, u], {
9581
+ val: ((T = f[u].val) == null ? void 0 : T[L]) || ((D = f[u].dir) == null ? void 0 : D[L]),
9582
+ spd: (F = f[u].spd) == null ? void 0 : F[L]
9561
9583
  });
9562
9584
  _.push(W);
9563
9585
  }
9564
9586
  } else if ((y >= s && y <= 180 || y >= -180 && y <= n) && (!(i <= this.zoom) || y % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9565
- const W = S.point([y, g], {
9566
- val: ((N = f[g].val) == null ? void 0 : N[L]) || ((j = f[g].dir) == null ? void 0 : j[L]),
9567
- spd: (G = f[g].spd) == null ? void 0 : G[L]
9587
+ const W = S.point([y, u], {
9588
+ val: ((N = f[u].val) == null ? void 0 : N[L]) || ((j = f[u].dir) == null ? void 0 : j[L]),
9589
+ spd: (G = f[u].spd) == null ? void 0 : G[L]
9568
9590
  });
9569
9591
  _.push(W);
9570
9592
  }
@@ -9572,28 +9594,28 @@ const js = {
9572
9594
  var T, D, F, N, j, G;
9573
9595
  if (s < 2) {
9574
9596
  if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
9575
- const W = S.point([y, g], {
9576
- val: ((T = f[g].val) == null ? void 0 : T[L]) || ((D = f[g].dir) == null ? void 0 : D[L]),
9577
- spd: (F = f[g].spd) == null ? void 0 : F[L]
9597
+ const W = S.point([y, u], {
9598
+ val: ((T = f[u].val) == null ? void 0 : T[L]) || ((D = f[u].dir) == null ? void 0 : D[L]),
9599
+ spd: (F = f[u].spd) == null ? void 0 : F[L]
9578
9600
  });
9579
9601
  _.push(W);
9580
9602
  }
9581
9603
  } else if (y >= s && y <= n && (!(i <= this.zoom) || y % (i < this.zoom / 2 ? 5 : 3) === 0)) {
9582
- const W = S.point([y, g], {
9583
- val: ((N = f[g].val) == null ? void 0 : N[L]) || ((j = f[g].dir) == null ? void 0 : j[L]),
9584
- spd: (G = f[g].spd) == null ? void 0 : G[L]
9604
+ const W = S.point([y, u], {
9605
+ val: ((N = f[u].val) == null ? void 0 : N[L]) || ((j = f[u].dir) == null ? void 0 : j[L]),
9606
+ spd: (G = f[u].spd) == null ? void 0 : G[L]
9585
9607
  });
9586
9608
  _.push(W);
9587
9609
  }
9588
9610
  });
9589
9611
  }
9590
9612
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current direction elapsed: ", t, ", total: ", e += t);
9591
- const b = this.weatherLayers[w].speed;
9592
- if (b) {
9593
- if (!b.data) {
9613
+ const v = this.weatherLayers[w].speed;
9614
+ if (v) {
9615
+ if (!v.data) {
9594
9616
  const C = [];
9595
- for (const y in (v = b.raw) == null ? void 0 : v.Polygon) {
9596
- const L = b.raw.Polygon[y];
9617
+ for (const y in (b = v.raw) == null ? void 0 : b.Polygon) {
9618
+ const L = v.raw.Polygon[y];
9597
9619
  for (const T of L)
9598
9620
  C.push(
9599
9621
  S.polygon(T, {
@@ -9601,48 +9623,48 @@ const js = {
9601
9623
  })
9602
9624
  );
9603
9625
  }
9604
- b.data = S.featureCollection(C);
9626
+ v.data = S.featureCollection(C);
9605
9627
  }
9606
- const g = i < this.zoom ? b.data.features.filter((C) => C.properties.val > 0.5) : b.data.features;
9607
- _ = _.concat(g), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current speed elapsed: ", t, ", total: ", e += t);
9628
+ const u = i < this.zoom ? v.data.features.filter((C) => C.properties.val > 0.5) : v.data.features;
9629
+ _ = _.concat(u), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current speed elapsed: ", t, ", total: ", e += t);
9608
9630
  }
9609
9631
  } else if (w === "wind" && this.showWindFeather) {
9610
9632
  k = !0;
9611
9633
  const f = this.weatherLayers.wind.raw;
9612
- for (const b in f)
9613
- if (b > l && b < c && (!(i <= this.zoom) || b % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9614
- const g = f[b].lng;
9615
- s > n ? g.forEach((C, y) => {
9634
+ for (const v in f)
9635
+ if (v > l && v < c && (!(i <= this.zoom) || v % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9636
+ const u = f[v].lng;
9637
+ s > n ? u.forEach((C, y) => {
9616
9638
  var L, T, D, F;
9617
9639
  if (i < 2) {
9618
9640
  if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
9619
- const N = S.point([C, b], {
9620
- dir: ((L = f[b].val) == null ? void 0 : L[y]) || ((T = f[b].dir) == null ? void 0 : T[y]),
9621
- spd: f[b].spd[y]
9641
+ const N = S.point([C, v], {
9642
+ dir: ((L = f[v].val) == null ? void 0 : L[y]) || ((T = f[v].dir) == null ? void 0 : T[y]),
9643
+ spd: f[v].spd[y]
9622
9644
  });
9623
9645
  _.push(N);
9624
9646
  }
9625
9647
  } else if ((C >= s && C <= 180 || C >= -180 && C <= n) && (!(i <= this.zoom) || C % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9626
- const N = S.point([C, b], {
9627
- dir: ((D = f[b].val) == null ? void 0 : D[y]) || ((F = f[b].dir) == null ? void 0 : F[y]),
9628
- spd: f[b].spd[y]
9648
+ const N = S.point([C, v], {
9649
+ dir: ((D = f[v].val) == null ? void 0 : D[y]) || ((F = f[v].dir) == null ? void 0 : F[y]),
9650
+ spd: f[v].spd[y]
9629
9651
  });
9630
9652
  _.push(N);
9631
9653
  }
9632
- }) : g.forEach((C, y) => {
9654
+ }) : u.forEach((C, y) => {
9633
9655
  var L, T, D, F;
9634
9656
  if (i < 2) {
9635
9657
  if ((C >= 0 && C <= 360 || C >= -360 && C <= 0) && C % 10 === 0) {
9636
- const N = S.point([C, b], {
9637
- dir: ((L = f[b].val) == null ? void 0 : L[y]) || ((T = f[b].dir) == null ? void 0 : T[y]),
9638
- spd: f[b].spd[y]
9658
+ const N = S.point([C, v], {
9659
+ dir: ((L = f[v].val) == null ? void 0 : L[y]) || ((T = f[v].dir) == null ? void 0 : T[y]),
9660
+ spd: f[v].spd[y]
9639
9661
  });
9640
9662
  _.push(N);
9641
9663
  }
9642
9664
  } else if (C >= s && C <= n && (!(i <= this.zoom) || C % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
9643
- const N = S.point([C, b], {
9644
- dir: ((D = f[b].val) == null ? void 0 : D[y]) || ((F = f[b].dir) == null ? void 0 : F[y]),
9645
- spd: f[b].spd[y]
9665
+ const N = S.point([C, v], {
9666
+ dir: ((D = f[v].val) == null ? void 0 : D[y]) || ((F = f[v].dir) == null ? void 0 : F[y]),
9667
+ spd: f[v].spd[y]
9646
9668
  });
9647
9669
  _.push(N);
9648
9670
  }
@@ -9656,26 +9678,35 @@ const js = {
9656
9678
  k = !0;
9657
9679
  const f = this.weatherLayers[w].raw;
9658
9680
  if (f) {
9659
- const b = [];
9660
- for (const g in f.Polygon) {
9661
- const C = f.Polygon[g];
9681
+ const v = [];
9682
+ for (const u in f.Polygon) {
9683
+ const C = f.Polygon[u];
9662
9684
  for (const y of C)
9663
- b.push(
9685
+ v.push(
9664
9686
  S.polygon(y, {
9665
- val: Number(g)
9687
+ val: Number(u)
9688
+ })
9689
+ );
9690
+ }
9691
+ for (const u in f.MultiPolygon) {
9692
+ const C = f.MultiPolygon[u];
9693
+ for (const y of C)
9694
+ v.push(
9695
+ S.multiPolygon(y, {
9696
+ val: Number(u)
9666
9697
  })
9667
9698
  );
9668
9699
  }
9669
- for (const g in f.Point) {
9670
- const C = f.Point[g];
9700
+ for (const u in f.Point) {
9701
+ const C = f.Point[u];
9671
9702
  for (let y = 0; y < ((E = C.lng) == null ? void 0 : E.length); y++)
9672
- b.push(
9673
- S.point([C.lng[y], g], {
9703
+ v.push(
9704
+ S.point([C.lng[y], u], {
9674
9705
  val: Number(C.val[y])
9675
9706
  })
9676
9707
  );
9677
9708
  }
9678
- _ = _.concat(b);
9709
+ _ = _.concat(v);
9679
9710
  }
9680
9711
  }
9681
9712
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("sigWave elapsed: ", t, ", total: ", e += t);
@@ -9686,26 +9717,26 @@ const js = {
9686
9717
  k = !0;
9687
9718
  const f = this.weatherLayers[w].raw;
9688
9719
  if (f) {
9689
- const b = [];
9690
- for (const g in f.LineString) {
9691
- const C = f.LineString[g];
9720
+ const v = [];
9721
+ for (const u in f.LineString) {
9722
+ const C = f.LineString[u];
9692
9723
  for (const y of C)
9693
- b.push(
9724
+ v.push(
9694
9725
  S.lineString(y, {
9695
- val: Number(g)
9726
+ val: Number(u)
9696
9727
  })
9697
9728
  );
9698
9729
  }
9699
- for (const g in f.Point)
9700
- f.Point[g].lng.forEach((C, y) => {
9701
- C = se.convertToStdLng(C), b.push(
9702
- S.point([C, g], {
9703
- val: f.Point[g].val[y],
9704
- type: f.Point[g].type[y]
9730
+ for (const u in f.Point)
9731
+ f.Point[u].lng.forEach((C, y) => {
9732
+ C = se.convertToStdLng(C), v.push(
9733
+ S.point([C, u], {
9734
+ val: f.Point[u].val[y],
9735
+ type: f.Point[u].type[y]
9705
9736
  })
9706
9737
  );
9707
9738
  });
9708
- _ = _.concat(b);
9739
+ _ = _.concat(v);
9709
9740
  }
9710
9741
  }
9711
9742
  t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("prmsl elapsed: ", t, ", total: ", e += t);
@@ -9746,8 +9777,8 @@ const js = {
9746
9777
  this.handleBeforeLayerToggle();
9747
9778
  },
9748
9779
  handleBeforeLayerToggle() {
9749
- var a, e, t, r, i, s, n, l, c, p, h, d, A, v, E, w;
9750
- (a = this.map) != null && a.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (t = this.otherLayers) != null && t["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (s = this.otherLayers) != null && s["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (l = this.otherLayers) != null && l.pirates || (c = this.otherLayers) != null && c.ports || (p = this.otherLayers) != null && p.enc || (h = this.otherLayers) != null && h.world12nm || (d = this.otherLayers) != null && d.worldMarine || (A = this.otherLayers) != null && A.chinaRoute || (v = this.otherLayers) != null && v["voluntary-reporting-area"] || (E = this.otherLayers) != null && E["eca-zones"] || (w = this.otherLayers) != null && w["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
9780
+ var a, e, t, r, i, s, n, l, c, p, h, d, A, b, E, w;
9781
+ (a = this.map) != null && a.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (t = this.otherLayers) != null && t["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (s = this.otherLayers) != null && s["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (l = this.otherLayers) != null && l.pirates || (c = this.otherLayers) != null && c.ports || (p = this.otherLayers) != null && p.enc || (h = this.otherLayers) != null && h.world12nm || (d = this.otherLayers) != null && d.worldMarine || (A = this.otherLayers) != null && A.chinaRoute || (b = this.otherLayers) != null && b["voluntary-reporting-area"] || (E = this.otherLayers) != null && E["eca-zones"] || (w = this.otherLayers) != null && w["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
9751
9782
  },
9752
9783
  handleDateChange(a = { tropicals: !1 }) {
9753
9784
  this.fetchWeatherLayers(a), this.fetchOtherLayers({ dayNight: !0 });
@@ -9777,12 +9808,12 @@ const js = {
9777
9808
  }, 500);
9778
9809
  else {
9779
9810
  const e = a == null ? void 0 : a.reduce((t, r) => t + (r == null ? void 0 : r.weight), 0);
9780
- a.find((t) => t.key === "enc") ? this.enc = this.$attrs.permission & Ze.LEVEL.Supper ? "hi" : "i4" : this.enc = "", this.otherWeight != e && (this.otherWeight = e, this.fetchOtherLayers({ all: !0 }));
9811
+ a.find((t) => t.key === "enc") ? this.enc = this.$attrs.permission & qe.LEVEL.Supper ? "hi" : "i4" : this.enc = "", this.otherWeight != e && (this.otherWeight = e, this.fetchOtherLayers({ all: !0 }));
9781
9812
  }
9782
9813
  },
9783
9814
  handle3dToggle(a) {
9784
- var e, t, r, i, s, n, l, c, p, h, d, A, v, E, w, k, _, f, b, g;
9785
- a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((s = this.map) == null || s.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (l = this.map) != null && l.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((h = this.map) == null || h.moveLayer((p = this.viewport) == null ? void 0 : p.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("move", this.handleDraWeather4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("move", this.handleDraWeather4Image), this.handleDraWeather4Image(), (A = this.map) != null && A.getLayer((d = this.viewport) == null ? void 0 : d.rampColorLayer) && ((v = this.map) != null && v.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((w = this.map) == null || w.moveLayer((E = this.viewport) == null ? void 0 : E.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (_ = this.map) != null && _.getLayer((k = this.viewport) == null ? void 0 : k.particleLayer) && ((f = this.map) != null && f.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((g = this.map) == null || g.moveLayer((b = this.viewport) == null ? void 0 : b.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
9815
+ var e, t, r, i, s, n, l, c, p, h, d, A, b, E, w, k, _, f, v, u;
9816
+ a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((s = this.map) == null || s.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (l = this.map) != null && l.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((h = this.map) == null || h.moveLayer((p = this.viewport) == null ? void 0 : p.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("move", this.handleDraWeather4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("move", this.handleDraWeather4Image), this.handleDraWeather4Image(), (A = this.map) != null && A.getLayer((d = this.viewport) == null ? void 0 : d.rampColorLayer) && ((b = this.map) != null && b.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((w = this.map) == null || w.moveLayer((E = this.viewport) == null ? void 0 : E.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (_ = this.map) != null && _.getLayer((k = this.viewport) == null ? void 0 : k.particleLayer) && ((f = this.map) != null && f.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((u = this.map) == null || u.moveLayer((v = this.viewport) == null ? void 0 : v.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
9786
9817
  },
9787
9818
  handleParticle(a) {
9788
9819
  this.particleFactor = a, this.weatherLayers[a.key] && (this.weatherLayers[a.key].particle = a.particle), this.activeWeatherLayers.map((r) => {
@@ -9807,8 +9838,8 @@ const js = {
9807
9838
  };
9808
9839
  function Gs(a, e, t, r, i, s) {
9809
9840
  var pe, ye, Le, Ce, xe, we, _e, B, ze, ve, Pe, Ee, He, ke, re, ce, Q, Be, K, q, Me, P, de, De, Se, Te, z, O, Ge, Ue;
9810
- const n = R("IdmGlLayer"), l = R("IdmENC"), c = R("IdmWorld12nm"), p = R("IdmWorldMarine"), h = R("IdmChinaRoute"), d = R("IdmSigWave"), A = R("IdmSwell"), v = R("IdmPrmsl"), E = R("IdmIceEdge"), w = R("IdmIceCover"), k = R("IdmIceThickness"), _ = R("IdmTropicals"), f = R("IdmCurrents"), b = R("IdmCurrentParticle"), g = R("IdmWindBarb"), C = R("IdmWindParticle"), y = R("IdmPrecip3h"), L = R("IdmVisibility"), T = R("IdmWaterTemp"), D = R("IdmTemp"), F = R("IdmWarZone"), N = R("IdmGmdssArea"), j = R("IdmEcaZone"), G = R("IdmAlertZone"), W = R("IdmPort"), me = R("IdmLoadLine"), he = R("IdmTimezone"), ue = R("IdmVRA"), fe = R("IdmSpecialArea"), ge = R("IdmTerminator"), Y = R("IdmLatLng"), ae = R("IdmMeasure"), Ae = R("IdmPoint");
9811
- return t.map ? (m(), u("div", Ws, [
9841
+ const n = R("IdmGlLayer"), l = R("IdmENC"), c = R("IdmWorld12nm"), p = R("IdmWorldMarine"), h = R("IdmChinaRoute"), d = R("IdmSigWave"), A = R("IdmSwell"), b = R("IdmPrmsl"), E = R("IdmIceEdge"), w = R("IdmIceCover"), k = R("IdmIceThickness"), _ = R("IdmTropicals"), f = R("IdmCurrents"), v = R("IdmCurrentParticle"), u = R("IdmWindBarb"), C = R("IdmWindParticle"), y = R("IdmPrecip3h"), L = R("IdmVisibility"), T = R("IdmWaterTemp"), D = R("IdmTemp"), F = R("IdmWarZone"), N = R("IdmGmdssArea"), j = R("IdmEcaZone"), G = R("IdmAlertZone"), W = R("IdmPort"), me = R("IdmLoadLine"), he = R("IdmTimezone"), ue = R("IdmVRA"), fe = R("IdmSpecialArea"), ge = R("IdmTerminator"), Y = R("IdmLatLng"), ae = R("IdmMeasure"), Ae = R("IdmPoint");
9842
+ return t.map ? (m(), g("div", Ws, [
9812
9843
  H(n, X({
9813
9844
  ref: "layer",
9814
9845
  map: t.map,
@@ -9878,7 +9909,7 @@ function Gs(a, e, t, r, i, s) {
9878
9909
  "before-layer": t.beforeLayer,
9879
9910
  "active-weather-layers": i.activeWeatherLayers
9880
9911
  }, a.$attrs), null, 16, ["map", "swell", "before-layer", "active-weather-layers"]),
9881
- H(v, X({
9912
+ H(b, X({
9882
9913
  map: t.map,
9883
9914
  prmsl: (_e = i.weatherLayers) == null ? void 0 : _e.prmsl,
9884
9915
  "before-layer": t.beforeLayer,
@@ -9923,13 +9954,13 @@ function Gs(a, e, t, r, i, s) {
9923
9954
  onParticle: s.handleParticle,
9924
9955
  onHandleToggleVersion: s.handleToggleVersion
9925
9956
  }), 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"]),
9926
- H(b, X({
9957
+ H(v, X({
9927
9958
  viewport: i.viewport,
9928
9959
  factor: (He = i.weatherLayers) == null ? void 0 : He["current-particle"],
9929
9960
  "before-layer": t.beforeLayer,
9930
9961
  "toggle-version": t.toggleVersion
9931
9962
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
9932
- H(g, X({
9963
+ H(u, X({
9933
9964
  ref: "windBarb",
9934
9965
  map: t.map,
9935
9966
  "map-projection": i.mapProjection,