@idmwx/idmui-gl4 0.8.0 → 0.8.1

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
@@ -3,7 +3,7 @@ var Ia = (t, e, o) => e in t ? Ta(t, e, { enumerable: !0, configurable: !0, writ
3
3
  var se = (t, e, o) => (Ia(t, typeof e != "symbol" ? e + "" : e, o), o);
4
4
  import Be from "axios";
5
5
  import { useTheme as Ee } from "vuetify";
6
- import { openBlock as b, createElementBlock as T, resolveComponent as w, withDirectives as He, createBlock as j, withCtx as u, createVNode as m, createElementVNode as l, vShow as We, toDisplayString as y, createTextVNode as G, normalizeStyle as ae, mergeProps as B, normalizeClass as Ge, Fragment as ke, renderList as Le, createCommentVNode as O, withModifiers as Aa } from "vue";
6
+ import { openBlock as b, createElementBlock as T, resolveComponent as w, withDirectives as He, createBlock as j, withCtx as g, createVNode as m, createElementVNode as l, vShow as We, toDisplayString as y, createTextVNode as G, normalizeStyle as ae, mergeProps as B, normalizeClass as Ge, Fragment as ke, renderList as Le, createCommentVNode as O, withModifiers as Aa } from "vue";
7
7
  import we from "mapbox-gl";
8
8
  import { LngLatHelper as oe, TropicalHelper as Pa, LaneHelper as Fe } from "@idm-plugin/geo";
9
9
  import * as E from "@turf/turf";
@@ -488,10 +488,10 @@ function Za(t, e, o, i, a, r) {
488
488
  class: "scroll",
489
489
  id: "idm-gl4-zone-info"
490
490
  }, {
491
- default: u(() => [
491
+ default: g(() => [
492
492
  m(c, null, {
493
- default: u(() => {
494
- var g;
493
+ default: g(() => {
494
+ var u;
495
495
  return [
496
496
  m(s, {
497
497
  icon: "",
@@ -500,7 +500,7 @@ function Za(t, e, o, i, a, r) {
500
500
  class: "mr-n2 close",
501
501
  onClick: e[0] || (e[0] = (p) => a.showZone = !1)
502
502
  }, {
503
- default: u(() => e[1] || (e[1] = [
503
+ default: g(() => e[1] || (e[1] = [
504
504
  l("i", {
505
505
  class: "iconfont icon-close",
506
506
  style: { "font-size": "16px" }
@@ -511,7 +511,7 @@ function Za(t, e, o, i, a, r) {
511
511
  }),
512
512
  l("div", {
513
513
  class: "rich-context",
514
- innerHTML: (g = a.form) == null ? void 0 : g.name
514
+ innerHTML: (u = a.form) == null ? void 0 : u.name
515
515
  }, null, 8, Ya)
516
516
  ];
517
517
  }),
@@ -630,14 +630,14 @@ const qa = {
630
630
  }
631
631
  }, Ka = { class: "port-box d-flex flex-column justify-center align-start ga-2" }, Qa = { class: "d-flex justify-start align-center" }, Ja = { class: "d-flex justify-start align-center" }, $a = { class: "d-flex justify-start align-center" }, ei = { class: "d-flex justify-start align-center" };
632
632
  function ti(t, e, o, i, a, r) {
633
- const s = w("VBtn"), c = w("v-card-text"), n = w("v-divider"), g = w("v-btn"), p = w("v-card-actions"), d = w("v-card");
633
+ const s = w("VBtn"), c = w("v-card-text"), n = w("v-divider"), u = w("v-btn"), p = w("v-card-actions"), d = w("v-card");
634
634
  return He((b(), j(d, {
635
635
  id: "port-info",
636
636
  ref: "idmPortInfo"
637
637
  }, {
638
- default: u(() => [
638
+ default: g(() => [
639
639
  m(c, { class: "pr-8" }, {
640
- default: u(() => [
640
+ default: g(() => [
641
641
  m(s, {
642
642
  icon: "",
643
643
  density: "compact",
@@ -645,7 +645,7 @@ function ti(t, e, o, i, a, r) {
645
645
  class: "mr-n2 close",
646
646
  onClick: e[0] || (e[0] = (f) => a.showInfo = !1)
647
647
  }, {
648
- default: u(() => e[2] || (e[2] = [
648
+ default: g(() => e[2] || (e[2] = [
649
649
  l("i", {
650
650
  class: "iconfont icon-close",
651
651
  style: { "font-size": "16px" }
@@ -677,15 +677,15 @@ function ti(t, e, o, i, a, r) {
677
677
  }),
678
678
  m(n),
679
679
  m(p, { class: "d-flex justify-end align-center" }, {
680
- default: u(() => [
681
- m(g, {
680
+ default: g(() => [
681
+ m(u, {
682
682
  variant: "text",
683
683
  density: "compact",
684
684
  "append-icon": "mdi-chevron-right",
685
685
  class: "meteo-forecast flex-end text-none",
686
686
  onClick: e[1] || (e[1] = (f) => r.handleClickMeteo(a.form))
687
687
  }, {
688
- default: u(() => e[7] || (e[7] = [
688
+ default: g(() => e[7] || (e[7] = [
689
689
  G(" Meteo Forecast ", -1)
690
690
  ])),
691
691
  _: 1,
@@ -1435,17 +1435,17 @@ const Ci = {
1435
1435
  function Ri(t, e, o, i, a, r) {
1436
1436
  const s = w("VBtn"), c = w("v-card-text"), n = w("v-card");
1437
1437
  return He((b(), j(n, { id: "tidal-station-info" }, {
1438
- default: u(() => [
1438
+ default: g(() => [
1439
1439
  m(c, { class: "pr-8" }, {
1440
- default: u(() => [
1440
+ default: g(() => [
1441
1441
  m(s, {
1442
1442
  icon: "",
1443
1443
  density: "compact",
1444
1444
  variant: "plain",
1445
1445
  class: "mr-n2 close",
1446
- onClick: e[0] || (e[0] = (g) => a.showInfo = !1)
1446
+ onClick: e[0] || (e[0] = (u) => a.showInfo = !1)
1447
1447
  }, {
1448
- default: u(() => e[1] || (e[1] = [
1448
+ default: g(() => e[1] || (e[1] = [
1449
1449
  l("i", {
1450
1450
  class: "iconfont icon-close",
1451
1451
  style: { "font-size": "16px" }
@@ -1877,9 +1877,9 @@ const Fi = {
1877
1877
  }
1878
1878
  });
1879
1879
  if (((o = c == null ? void 0 : c.data) == null ? void 0 : o.code) === 0) {
1880
- const n = (i = c == null ? void 0 : c.data) == null ? void 0 : i.data, g = [];
1880
+ const n = (i = c == null ? void 0 : c.data) == null ? void 0 : i.data, u = [];
1881
1881
  for (const d in n)
1882
- g.push(
1882
+ u.push(
1883
1883
  Be.get(n[d], {
1884
1884
  headers: {
1885
1885
  Authorization: this.token || this.defaultMeteoToken,
@@ -1887,7 +1887,7 @@ const Fi = {
1887
1887
  }
1888
1888
  })
1889
1889
  );
1890
- (await Promise.all(g)).map((d) => {
1890
+ (await Promise.all(u)).map((d) => {
1891
1891
  var x, S, C;
1892
1892
  const f = ((x = d == null ? void 0 : d.data) == null ? void 0 : x.data) || (d == null ? void 0 : d.data), z = (C = (S = d == null ? void 0 : d.config) == null ? void 0 : S.headers) == null ? void 0 : C.key;
1893
1893
  this.otherLayers[z] = f;
@@ -1900,9 +1900,9 @@ const Fi = {
1900
1900
  }
1901
1901
  });
1902
1902
  if (((a = c == null ? void 0 : c.data) == null ? void 0 : a.code) === 0) {
1903
- const n = (r = c == null ? void 0 : c.data) == null ? void 0 : r.data, g = [];
1903
+ const n = (r = c == null ? void 0 : c.data) == null ? void 0 : r.data, u = [];
1904
1904
  for (const d in n)
1905
- g.push(
1905
+ u.push(
1906
1906
  Be.get(n[d], {
1907
1907
  headers: {
1908
1908
  Authorization: this.token || this.defaultMeteoToken,
@@ -1910,7 +1910,7 @@ const Fi = {
1910
1910
  }
1911
1911
  })
1912
1912
  );
1913
- (await Promise.all(g)).map((d) => {
1913
+ (await Promise.all(u)).map((d) => {
1914
1914
  var x, S, C;
1915
1915
  const f = ((x = d == null ? void 0 : d.data) == null ? void 0 : x.data) || (d == null ? void 0 : d.data), z = (C = (S = d == null ? void 0 : d.config) == null ? void 0 : S.headers) == null ? void 0 : C.key;
1916
1916
  this.otherLayers[z] = f;
@@ -1943,7 +1943,7 @@ const Fi = {
1943
1943
  }, Qi = { class: "text-body-2 text-center pt-1" };
1944
1944
  function Ji(t, e, o, i, a, r) {
1945
1945
  var $, ee, Q, le, de, pe, me, K, ie, ue;
1946
- const s = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), g = w("VCardItem"), p = w("VCheckbox"), d = w("VCardText"), f = w("VCard"), z = w("IdmTideStations"), x = w("IdmIceAreas"), S = w("IdmWorld12nm"), C = w("IdmWorldMarine"), N = w("IdmChinaRoute"), M = w("IdmWarZone"), L = w("IdmGmdssArea"), v = w("IdmEcaZone"), _ = w("IdmAlertZone"), P = w("IdmPort"), k = w("IdmLoadLine"), I = w("IdmTimezone"), V = w("IdmVRA"), X = w("IdmSpecialArea"), q = w("IdmTerminator"), Y = w("IdmLatLng");
1946
+ const s = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), u = w("VCardItem"), p = w("VCheckbox"), d = w("VCardText"), f = w("VCard"), z = w("IdmTideStations"), x = w("IdmIceAreas"), S = w("IdmWorld12nm"), C = w("IdmWorldMarine"), N = w("IdmChinaRoute"), M = w("IdmWarZone"), L = w("IdmGmdssArea"), v = w("IdmEcaZone"), _ = w("IdmAlertZone"), P = w("IdmPort"), k = w("IdmLoadLine"), I = w("IdmTimezone"), V = w("IdmVRA"), X = w("IdmSpecialArea"), q = w("IdmTerminator"), Y = w("IdmLatLng");
1947
1947
  return b(), T("div", Hi, [
1948
1948
  l("div", {
1949
1949
  class: "menu-bar-box transition px-1 rounded",
@@ -1953,7 +1953,7 @@ function Ji(t, e, o, i, a, r) {
1953
1953
  text: t.$t("layer.mapLayers"),
1954
1954
  location: "left"
1955
1955
  }, {
1956
- activator: u(({ props: F }) => [
1956
+ activator: g(({ props: F }) => [
1957
1957
  m(s, B(F, {
1958
1958
  "min-width": "32",
1959
1959
  width: "32",
@@ -1961,7 +1961,7 @@ function Ji(t, e, o, i, a, r) {
1961
1961
  class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
1962
1962
  onClick: r.handleMenuToggle
1963
1963
  }), {
1964
- default: u(() => e[5] || (e[5] = [
1964
+ default: g(() => e[5] || (e[5] = [
1965
1965
  l("i", { class: "iconfont icon-Layer text-h4" }, null, -1)
1966
1966
  ])),
1967
1967
  _: 2,
@@ -1984,7 +1984,7 @@ function Ji(t, e, o, i, a, r) {
1984
1984
  class: "mr-n2",
1985
1985
  onClick: r.handleMenuToggle
1986
1986
  }, {
1987
- default: u(() => e[6] || (e[6] = [
1987
+ default: g(() => e[6] || (e[6] = [
1988
1988
  l("i", {
1989
1989
  class: "iconfont icon-close",
1990
1990
  style: { "font-size": "20px" }
@@ -1999,14 +1999,14 @@ function Ji(t, e, o, i, a, r) {
1999
1999
  class: "menu-card mx-auto mb-3",
2000
2000
  elevation: "0"
2001
2001
  }, {
2002
- default: u(() => [
2003
- m(g, { class: "border-b-thin" }, {
2004
- default: u(() => [
2002
+ default: g(() => [
2003
+ m(u, { class: "border-b-thin" }, {
2004
+ default: g(() => [
2005
2005
  m(n, {
2006
2006
  class: "text-subtitle-1 font-weight-medium",
2007
2007
  style: { "font-size": "16px !important" }
2008
2008
  }, {
2009
- default: u(() => [
2009
+ default: g(() => [
2010
2010
  G(y(t.$t("layer.mapFeathers")), 1)
2011
2011
  ]),
2012
2012
  _: 1
@@ -2015,7 +2015,7 @@ function Ji(t, e, o, i, a, r) {
2015
2015
  _: 1
2016
2016
  }),
2017
2017
  m(d, { class: "pb-2" }, {
2018
- default: u(() => [
2018
+ default: g(() => [
2019
2019
  l("div", Vi, [
2020
2020
  (b(!0), T(ke, null, Le(a.mapFeathers, (F) => (b(), T("div", {
2021
2021
  key: F.value,
@@ -2052,14 +2052,14 @@ function Ji(t, e, o, i, a, r) {
2052
2052
  class: "menu-card mx-auto mb-3",
2053
2053
  elevation: "0"
2054
2054
  }, {
2055
- default: u(() => [
2056
- m(g, { class: "border-b-thin" }, {
2057
- default: u(() => [
2055
+ default: g(() => [
2056
+ m(u, { class: "border-b-thin" }, {
2057
+ default: g(() => [
2058
2058
  m(n, {
2059
2059
  class: "text-subtitle-1 font-weight-medium",
2060
2060
  style: { "font-size": "16px !important" }
2061
2061
  }, {
2062
- default: u(() => [
2062
+ default: g(() => [
2063
2063
  G(y(t.$t("layer.pointsOfInteresting")), 1)
2064
2064
  ]),
2065
2065
  _: 1
@@ -2068,7 +2068,7 @@ function Ji(t, e, o, i, a, r) {
2068
2068
  _: 1
2069
2069
  }),
2070
2070
  m(d, { class: "py-2" }, {
2071
- default: u(() => [
2071
+ default: g(() => [
2072
2072
  (b(!0), T(ke, null, Le(a.tagLayers.filter((F) => ["ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (b(), j(p, {
2073
2073
  key: F.key,
2074
2074
  modelValue: a.checkList,
@@ -2091,14 +2091,14 @@ function Ji(t, e, o, i, a, r) {
2091
2091
  class: "menu-card mx-auto mb-3",
2092
2092
  elevation: "0"
2093
2093
  }, {
2094
- default: u(() => [
2095
- m(g, { class: "border-b-thin" }, {
2096
- default: u(() => [
2094
+ default: g(() => [
2095
+ m(u, { class: "border-b-thin" }, {
2096
+ default: g(() => [
2097
2097
  m(n, {
2098
2098
  class: "text-subtitle-1 font-weight-medium",
2099
2099
  style: { "font-size": "16px !important" }
2100
2100
  }, {
2101
- default: u(() => [
2101
+ default: g(() => [
2102
2102
  G(y(t.$t("layer.otherLayers")), 1)
2103
2103
  ]),
2104
2104
  _: 1
@@ -2107,7 +2107,7 @@ function Ji(t, e, o, i, a, r) {
2107
2107
  _: 1
2108
2108
  }),
2109
2109
  m(d, { class: "py-2" }, {
2110
- default: u(() => [
2110
+ default: g(() => [
2111
2111
  (b(!0), T(ke, null, Le(a.tagLayers.filter((F) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(F.key)), (F) => (b(), j(p, {
2112
2112
  key: F.key,
2113
2113
  modelValue: a.checkList,
@@ -2130,14 +2130,14 @@ function Ji(t, e, o, i, a, r) {
2130
2130
  class: "menu-card mx-auto mb-3",
2131
2131
  elevation: "0"
2132
2132
  }, {
2133
- default: u(() => [
2134
- m(g, { class: "border-b-thin" }, {
2135
- default: u(() => [
2133
+ default: g(() => [
2134
+ m(u, { class: "border-b-thin" }, {
2135
+ default: g(() => [
2136
2136
  m(n, {
2137
2137
  class: "text-subtitle-1 font-weight-medium",
2138
2138
  style: { "font-size": "16px !important" }
2139
2139
  }, {
2140
- default: u(() => [
2140
+ default: g(() => [
2141
2141
  G(y(t.$t("layer.myFollows")), 1)
2142
2142
  ]),
2143
2143
  _: 1
@@ -2146,7 +2146,7 @@ function Ji(t, e, o, i, a, r) {
2146
2146
  _: 1
2147
2147
  }),
2148
2148
  m(d, { class: "py-2" }, {
2149
- default: u(() => [
2149
+ default: g(() => [
2150
2150
  m(p, {
2151
2151
  modelValue: a.followList,
2152
2152
  "onUpdate:modelValue": e[3] || (e[3] = (F) => a.followList = F),
@@ -2318,8 +2318,8 @@ class io {
2318
2318
  const e = (x = this.map) == null ? void 0 : x.getBounds();
2319
2319
  if (!e)
2320
2320
  return [];
2321
- const o = ((S = this.map) == null ? void 0 : S.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [c, n] = this.convertNLng(a[0]), [g, p] = this.mercator.px([r, i[1]], o), [d, f] = this.mercator.px([c, a[1]], o), z = Math.round(this.mercator.size * Math.pow(2, o) * (s + n));
2322
- return [d, f, g + z, p];
2321
+ const o = ((S = this.map) == null ? void 0 : S.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [c, n] = this.convertNLng(a[0]), [u, p] = this.mercator.px([r, i[1]], o), [d, f] = this.mercator.px([c, a[1]], o), z = Math.round(this.mercator.size * Math.pow(2, o) * (s + n));
2322
+ return [d, f, u + z, p];
2323
2323
  }
2324
2324
  /**
2325
2325
  * [视窗边界像素宽度]
@@ -2424,13 +2424,13 @@ class Ne {
2424
2424
  if (a) {
2425
2425
  const r = { program: a }, s = e.getProgramParameter(a, e.ACTIVE_ATTRIBUTES);
2426
2426
  for (let n = 0; n < s; n++) {
2427
- const g = e.getActiveAttrib(a, n);
2428
- r[g.name] = e.getAttribLocation(a, g.name);
2427
+ const u = e.getActiveAttrib(a, n);
2428
+ r[u.name] = e.getAttribLocation(a, u.name);
2429
2429
  }
2430
2430
  const c = e.getProgramParameter(a, e.ACTIVE_UNIFORMS);
2431
2431
  for (let n = 0; n < c; n++) {
2432
- const g = e.getActiveUniform(a, n);
2433
- r[g.name] = e.getUniformLocation(a, g.name);
2432
+ const u = e.getActiveUniform(a, n);
2433
+ r[u.name] = e.getUniformLocation(a, u.name);
2434
2434
  }
2435
2435
  return r;
2436
2436
  }
@@ -2445,8 +2445,8 @@ class Ne {
2445
2445
  const c = s.getContext("2d");
2446
2446
  if (c && e) {
2447
2447
  const n = c == null ? void 0 : c.createLinearGradient(0, 0, 256, 0);
2448
- return o.forEach(([g, p]) => {
2449
- n.addColorStop(g, p);
2448
+ return o.forEach(([u, p]) => {
2449
+ n.addColorStop(u, p);
2450
2450
  }), c.fillStyle = n, c.fillRect(0, 0, 256, 1), {
2451
2451
  canvas: s,
2452
2452
  texture: this.createTexture(
@@ -2468,8 +2468,8 @@ class Ne {
2468
2468
  const s = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i), c = this.createTexture(e, e.NEAREST, e.NEAREST, e.CLAMP_TO_EDGE, r, i, i), n = new Float32Array(a);
2469
2469
  for (let p = 0; p < a; p++)
2470
2470
  n[p] = p;
2471
- const g = this.createDataBuffer(e, "array", n);
2472
- return { resolution: i, total: a, texture0: s, texture1: c, indexBuffer: g };
2471
+ const u = this.createDataBuffer(e, "array", n);
2472
+ return { resolution: i, total: a, texture0: s, texture1: c, indexBuffer: u };
2473
2473
  }
2474
2474
  bind(e, o, i) {
2475
2475
  const a = this.createProgram(e, o, i);
@@ -2484,13 +2484,13 @@ class Ne {
2484
2484
  return {};
2485
2485
  }
2486
2486
  bindParticle(e, o, i, a, r, s) {
2487
- const c = this.createProgramWrapper(e, o, i), n = this.createProgramWrapper(e, a, r), g = this.createProgramWrapper(e, a, s), p = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), d = e.createFramebuffer();
2488
- return { particle: c, screen: n, update: g, quadBuffer: p, frameBuffer: d };
2487
+ const c = this.createProgramWrapper(e, o, i), n = this.createProgramWrapper(e, a, r), u = this.createProgramWrapper(e, a, s), p = this.createDataBuffer(e, "array", new Float32Array([0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1])), d = e.createFramebuffer();
2488
+ return { particle: c, screen: n, update: u, quadBuffer: p, frameBuffer: d };
2489
2489
  }
2490
2490
  draw(e, o, i, a, r, s, c) {
2491
- var n, g;
2491
+ var n, u;
2492
2492
  if (o && i) {
2493
- e.resize(), o == null || o.viewport(0, 0, (n = o == null ? void 0 : o.canvas) == null ? void 0 : n.width, (g = o == null ? void 0 : o.canvas) == null ? void 0 : g.height), o.clearColor(0, 0, 0, 0), o.clear(o.COLOR_BUFFER_BIT | o.DEPTH_BUFFER_BIT);
2493
+ e.resize(), o == null || o.viewport(0, 0, (n = o == null ? void 0 : o.canvas) == null ? void 0 : n.width, (u = o == null ? void 0 : o.canvas) == null ? void 0 : u.height), o.clearColor(0, 0, 0, 0), o.clear(o.COLOR_BUFFER_BIT | o.DEPTH_BUFFER_BIT);
2494
2494
  try {
2495
2495
  o.useProgram(i);
2496
2496
  const p = {
@@ -2855,7 +2855,7 @@ const er = {
2855
2855
  else {
2856
2856
  this.map.addSource(this.source, { type: "geojson", data: c });
2857
2857
  for (let n = 0; n < (this.barbs ?? []).length - 1; n++) {
2858
- const g = (this.barbs ?? [])[n] || 0, p = (this.barbs ?? [])[n + 1] || 0, d = g < 10 ? `00${g}kts` : g < 100 ? `0${g}kts` : `${g}kts`, f = new Image(48, 48), z = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(this.svgs[d])));
2858
+ const u = (this.barbs ?? [])[n] || 0, p = (this.barbs ?? [])[n + 1] || 0, d = u < 10 ? `00${u}kts` : u < 100 ? `0${u}kts` : `${u}kts`, f = new Image(48, 48), z = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(this.svgs[d])));
2859
2859
  f.src = z, f.onload = () => {
2860
2860
  this.map.hasImage(d + "-icon") || this.map.addImage(d + "-icon", f), this.map.addLayer(
2861
2861
  {
@@ -2864,7 +2864,7 @@ const er = {
2864
2864
  filter: [
2865
2865
  "all",
2866
2866
  // @ts-ignore
2867
- [">=", "spd", g],
2867
+ [">=", "spd", u],
2868
2868
  // @ts-ignore
2869
2869
  ["<", "spd", p]
2870
2870
  ],
@@ -3218,16 +3218,16 @@ const sr = /* @__PURE__ */ Z(ir, [["render", lr]]), nr = {
3218
3218
  const s = new Image(48, 48);
3219
3219
  let c = '<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="12518" width="200" height="200"><path d="M481.386772 959.514313 481.386772 334.713224c-56.000432 37.288255-92.523253 55.876612-142.312216 57.787124 85.834924-84.884272 130.528845-195.161888 172.552961-328.434218 40.259936 133.272329 89.39296 238.731196 172.622546 328.434218-54.105269-5.729491-86.780459-21.201881-146.338926-58.965973l0 625.979938L481.386772 959.514313z" p-id="12519" fill="#ffffff"></path></svg>', n = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(c)));
3220
3220
  s.src = n;
3221
- const g = new Image(48, 48);
3221
+ const u = new Image(48, 48);
3222
3222
  c = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
3223
3223
  <path d="M10 2.5V17.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3224
3224
  <path d="M5 7.5L10 2.5L15 7.5" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3225
- </svg>`, n = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(c))), g.src = n;
3226
- const p = [g];
3225
+ </svg>`, n = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(c))), u.src = n;
3226
+ const p = [u];
3227
3227
  let d = 0;
3228
3228
  p.forEach((f) => {
3229
3229
  f.onload = () => {
3230
- d++, this.map.hasImage("currentDirIcon") || this.map.addImage("currentDirIcon", g), d === 1 && this.map.addLayer(
3230
+ d++, this.map.hasImage("currentDirIcon") || this.map.addImage("currentDirIcon", u), d === 1 && this.map.addLayer(
3231
3231
  {
3232
3232
  id: this.directionLayer,
3233
3233
  type: "symbol",
@@ -4050,8 +4050,8 @@ function Cr(t, e, o, i, a, r) {
4050
4050
  text: "Map Layers",
4051
4051
  location: "left"
4052
4052
  }, {
4053
- activator: u(({ props: g }) => [
4054
- m(s, B(g, {
4053
+ activator: g(({ props: u }) => [
4054
+ m(s, B(u, {
4055
4055
  "min-width": "32",
4056
4056
  width: "32",
4057
4057
  height: "32",
@@ -4059,7 +4059,7 @@ function Cr(t, e, o, i, a, r) {
4059
4059
  color: a.toggle ? "primary" : "",
4060
4060
  onClick: r.handleMenuToggle
4061
4061
  }), {
4062
- default: u(() => e[0] || (e[0] = [
4062
+ default: g(() => e[0] || (e[0] = [
4063
4063
  l("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
4064
4064
  ])),
4065
4065
  _: 2,
@@ -5147,7 +5147,7 @@ const al = {
5147
5147
  (t == null ? void 0 : t.data.code) === 0 && (this.models = t == null ? void 0 : t.data.data);
5148
5148
  },
5149
5149
  async fetchWeatherLayers(t = {}) {
5150
- var a, r, s, c, n, g, p, d, f;
5150
+ var a, r, s, c, n, u, p, d, f;
5151
5151
  const e = (/* @__PURE__ */ new Date()).valueOf();
5152
5152
  let o = 0, i = 0;
5153
5153
  if (this.map) {
@@ -5197,7 +5197,7 @@ const al = {
5197
5197
  });
5198
5198
  }
5199
5199
  if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather layers elapsed: ", i, ", total: ", o += i), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
5200
- const L = (g = this.weatherLayers["swell-direction"]) == null ? void 0 : g.raw, v = (p = this.weatherLayers["swell-height"]) == null ? void 0 : p.raw;
5200
+ const L = (u = this.weatherLayers["swell-direction"]) == null ? void 0 : u.raw, v = (p = this.weatherLayers["swell-height"]) == null ? void 0 : p.raw;
5201
5201
  delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
5202
5202
  type: "json",
5203
5203
  direction: L,
@@ -5237,7 +5237,7 @@ const al = {
5237
5237
  }, 500);
5238
5238
  },
5239
5239
  handleRampColorInitial() {
5240
- var t, e, o, i, a, r, s, c, n, g, p, d;
5240
+ var t, e, o, i, a, r, s, c, n, u, p, d;
5241
5241
  this.viewport.map.getSource((t = this.viewport) == null ? void 0 : t.rampColorSource) || this.viewport.map.addSource((e = this.viewport) == null ? void 0 : e.rampColorSource, {
5242
5242
  type: "canvas",
5243
5243
  canvas: (o = this.viewport) == null ? void 0 : o.rampColorCanvas,
@@ -5258,7 +5258,7 @@ const al = {
5258
5258
  canvas: (n = this.viewport) == null ? void 0 : n.particleCanvas,
5259
5259
  animate: !0,
5260
5260
  coordinates: this.viewport.getBoundLngLat()
5261
- }), this.viewport.map.getLayer((g = this.viewport) == null ? void 0 : g.particleLayer) || this.viewport.map.addLayer(
5261
+ }), this.viewport.map.getLayer((u = this.viewport) == null ? void 0 : u.particleLayer) || this.viewport.map.addLayer(
5262
5262
  {
5263
5263
  type: "raster",
5264
5264
  id: (p = this.viewport) == null ? void 0 : p.particleLayer,
@@ -5271,10 +5271,10 @@ const al = {
5271
5271
  );
5272
5272
  },
5273
5273
  handleDrawWeather4Json() {
5274
- var g, p, d, f, z, x, S;
5274
+ var u, p, d, f, z, x, S;
5275
5275
  const t = (/* @__PURE__ */ new Date()).valueOf();
5276
5276
  let e = 0, o = 0;
5277
- const i = (g = this.map) == null ? void 0 : g.getBounds(), a = (p = this.map) == null ? void 0 : p.getZoom(), r = oe.convertToStdLng(i._sw.lng), s = oe.convertToStdLng(i._ne.lng), c = Math.floor(i._sw.lat), n = Math.ceil(i._ne.lat);
5277
+ const i = (u = this.map) == null ? void 0 : u.getBounds(), a = (p = this.map) == null ? void 0 : p.getZoom(), r = oe.convertToStdLng(i._sw.lng), s = oe.convertToStdLng(i._ne.lng), c = Math.floor(i._sw.lat), n = Math.ceil(i._ne.lat);
5278
5278
  for (const C in this.weatherLayers) {
5279
5279
  let N = !1;
5280
5280
  if (this.weatherLayers[C].active && this.weatherLayers[C].type === "json") {
@@ -5560,7 +5560,7 @@ const al = {
5560
5560
  }, wl = { class: "text-body-1 py-2" }, xl = { class: "text-body-1 font-weight-medium" }, vl = { class: "text-body-2 opacity-70" }, _l = { class: "text-body-2 opacity-70 mb-3" }, kl = { class: "text-body-1 font-weight-medium" }, zl = { class: "text-body-2 opacity-70" }, Ll = { class: "text-body-2 opacity-70 mb-3" }, Pl = { class: "text-body-1 py-2" }, Cl = { class: "text-body-1 font-weight-medium" }, Sl = { class: "text-body-2 opacity-70" }, Ml = { class: "text-body-2 opacity-70 mb-3" }, Tl = { class: "text-body-1 font-weight-medium" }, Il = { class: "text-body-2 opacity-70" }, Al = { class: "text-body-2 opacity-70 mb-3" }, Rl = { class: "text-body-1 py-2" }, Dl = { class: "text-body-1 font-weight-medium" }, Ol = { class: "text-body-2 opacity-70" }, Bl = { class: "text-body-2 opacity-70 mb-3" };
5561
5561
  function El(t, e, o, i, a, r) {
5562
5562
  var pe, me, K, ie, ue, F, ne, xe, ve, Se, Me, Te, Ie, Ae, ye;
5563
- const s = w("VBtn"), c = w("VTooltip"), n = w("VCol"), g = w("VRow"), p = w("VCardText"), d = w("VDivider"), f = w("VCard"), z = w("VSwitch"), x = w("VCardTitle"), S = w("VCardItem"), C = w("VCheckbox"), N = w("VRadio"), M = w("VBtnToggle"), L = w("IdmWindBarb"), v = w("IdmSigWaveHeight"), _ = w("IdmCurrentDirection"), P = w("IdmPrmsl"), k = w("IdmWindParticle"), I = w("IdmCurrentParticle"), V = w("IdmWave"), X = w("IdmSwell"), q = w("IdmIceEdge"), Y = w("IdmIceCover"), $ = w("IdmIceThickness"), ee = w("IdmPrecip3h"), Q = w("IdmVisibility"), le = w("IdmWaterTemp"), de = w("IdmTemp");
5563
+ const s = w("VBtn"), c = w("VTooltip"), n = w("VCol"), u = w("VRow"), p = w("VCardText"), d = w("VDivider"), f = w("VCard"), z = w("VSwitch"), x = w("VCardTitle"), S = w("VCardItem"), C = w("VCheckbox"), N = w("VRadio"), M = w("VBtnToggle"), L = w("IdmWindBarb"), v = w("IdmSigWaveHeight"), _ = w("IdmCurrentDirection"), P = w("IdmPrmsl"), k = w("IdmWindParticle"), I = w("IdmCurrentParticle"), V = w("IdmWave"), X = w("IdmSwell"), q = w("IdmIceEdge"), Y = w("IdmIceCover"), $ = w("IdmIceThickness"), ee = w("IdmPrecip3h"), Q = w("IdmVisibility"), le = w("IdmWaterTemp"), de = w("IdmTemp");
5564
5564
  return b(), T("div", il, [
5565
5565
  l("div", {
5566
5566
  class: "menu-bar-box transition pa-1",
@@ -5570,7 +5570,7 @@ function El(t, e, o, i, a, r) {
5570
5570
  text: t.$t("weather.weatherLayers"),
5571
5571
  location: "left"
5572
5572
  }, {
5573
- activator: u(({ props: H }) => [
5573
+ activator: g(({ props: H }) => [
5574
5574
  m(s, B(H, {
5575
5575
  "min-width": "32",
5576
5576
  width: "32",
@@ -5578,7 +5578,7 @@ function El(t, e, o, i, a, r) {
5578
5578
  class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
5579
5579
  onClick: r.handleMenuToggle
5580
5580
  }), {
5581
- default: u(() => e[7] || (e[7] = [
5581
+ default: g(() => e[7] || (e[7] = [
5582
5582
  l("i", { class: "iconfont icon-Weather text-h4" }, null, -1)
5583
5583
  ])),
5584
5584
  _: 2,
@@ -5597,7 +5597,7 @@ function El(t, e, o, i, a, r) {
5597
5597
  text: "Legend",
5598
5598
  location: "left"
5599
5599
  }, {
5600
- activator: u(({ props: H }) => [
5600
+ activator: g(({ props: H }) => [
5601
5601
  m(s, B(H, {
5602
5602
  "min-width": "32",
5603
5603
  width: "32",
@@ -5605,7 +5605,7 @@ function El(t, e, o, i, a, r) {
5605
5605
  class: ["text-none pa-0", a.legendToggle ? "bg-primary active-border" : ""],
5606
5606
  onClick: e[0] || (e[0] = (te) => a.legendToggle = !a.legendToggle)
5607
5607
  }), {
5608
- default: u(() => e[8] || (e[8] = [
5608
+ default: g(() => e[8] || (e[8] = [
5609
5609
  l("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
5610
5610
  ])),
5611
5611
  _: 2,
@@ -5622,18 +5622,18 @@ function El(t, e, o, i, a, r) {
5622
5622
  class: "card-info d-flex justify-center align-start",
5623
5623
  style: ae({ position: "absolute", top: "340px", right: a.right + 50 + "px" })
5624
5624
  }, {
5625
- default: u(() => [
5625
+ default: g(() => [
5626
5626
  m(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
5627
- default: u(() => [
5627
+ default: g(() => [
5628
5628
  e[9] || (e[9] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wind Level", -1)),
5629
- m(g, { class: "ma-0 ml-n1 text-body-2" }, {
5630
- default: u(() => [
5629
+ m(u, { class: "ma-0 ml-n1 text-body-2" }, {
5630
+ default: g(() => [
5631
5631
  (b(!0), T(ke, null, Le(a.legend.barbs, (H, te) => (b(), j(n, {
5632
5632
  key: H,
5633
5633
  cols: "6",
5634
5634
  class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
5635
5635
  }, {
5636
- default: u(() => [
5636
+ default: g(() => [
5637
5637
  l("div", ll, [
5638
5638
  l("i", {
5639
5639
  class: Ge(["iconfont", r.barbsIconName[te]]),
@@ -5653,19 +5653,19 @@ function El(t, e, o, i, a, r) {
5653
5653
  }),
5654
5654
  m(d, { vertical: "" }),
5655
5655
  m(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
5656
- default: u(() => [
5656
+ default: g(() => [
5657
5657
  e[10] || (e[10] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Wave Height", -1)),
5658
- m(g, {
5658
+ m(u, {
5659
5659
  class: "ma-0 ml-1",
5660
5660
  style: { width: "100px" }
5661
5661
  }, {
5662
- default: u(() => [
5662
+ default: g(() => [
5663
5663
  (b(!0), T(ke, null, Le(a.legend.sigWaveHeight, (H, te) => (b(), j(n, {
5664
5664
  key: te,
5665
5665
  cols: "12",
5666
5666
  class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
5667
5667
  }, {
5668
- default: u(() => [
5668
+ default: g(() => [
5669
5669
  l("div", nl, [
5670
5670
  te === 0 ? (b(), T("div", cl)) : (b(), T("div", {
5671
5671
  key: 1,
@@ -5685,19 +5685,19 @@ function El(t, e, o, i, a, r) {
5685
5685
  }),
5686
5686
  m(d, { vertical: "" }),
5687
5687
  m(p, { class: "d-flex flex-column justify-center align-start opacity-80 px-4" }, {
5688
- default: u(() => [
5688
+ default: g(() => [
5689
5689
  e[11] || (e[11] = l("div", { class: "text-body-1 font-weight-600 mb-2" }, "Current", -1)),
5690
- m(g, {
5690
+ m(u, {
5691
5691
  class: "ma-0 ml-n5",
5692
5692
  style: { width: "110px" }
5693
5693
  }, {
5694
- default: u(() => [
5694
+ default: g(() => [
5695
5695
  (b(!0), T(ke, null, Le(a.legend.current, (H, te) => (b(), j(n, {
5696
5696
  key: te,
5697
5697
  cols: "12",
5698
5698
  class: "d-flex flex-row justify-center align-center py-1 px-0 ma-0"
5699
5699
  }, {
5700
- default: u(() => [
5700
+ default: g(() => [
5701
5701
  l("div", hl, [
5702
5702
  l("div", dl, [
5703
5703
  l("i", {
@@ -5744,7 +5744,7 @@ function El(t, e, o, i, a, r) {
5744
5744
  class: "mr-n2",
5745
5745
  onClick: r.handleMenuToggle
5746
5746
  }, {
5747
- default: u(() => e[12] || (e[12] = [
5747
+ default: g(() => e[12] || (e[12] = [
5748
5748
  l("i", {
5749
5749
  class: "iconfont icon-close",
5750
5750
  style: { "font-size": "20px" }
@@ -5761,14 +5761,14 @@ function El(t, e, o, i, a, r) {
5761
5761
  class: "menu-card mx-auto mb-3",
5762
5762
  elevation: "0"
5763
5763
  }, {
5764
- default: u(() => [
5764
+ default: g(() => [
5765
5765
  m(S, { class: "border-b-thin" }, {
5766
- default: u(() => [
5766
+ default: g(() => [
5767
5767
  m(x, {
5768
5768
  class: "text-subtitle-1 font-weight-medium",
5769
5769
  style: { "font-size": "16px !important" }
5770
5770
  }, {
5771
- default: u(() => [
5771
+ default: g(() => [
5772
5772
  G(y(t.$t("weather.overlays")), 1)
5773
5773
  ]),
5774
5774
  _: 1
@@ -5777,7 +5777,7 @@ function El(t, e, o, i, a, r) {
5777
5777
  _: 1
5778
5778
  }),
5779
5779
  m(p, { class: "py-2" }, {
5780
- default: u(() => [
5780
+ default: g(() => [
5781
5781
  (b(!0), T(ke, null, Le(a.tagLayers.filter((H) => H.overlays), (H) => (b(), j(C, {
5782
5782
  key: H.key,
5783
5783
  modelValue: a.checkList,
@@ -5801,14 +5801,14 @@ function El(t, e, o, i, a, r) {
5801
5801
  class: "menu-card mx-auto mb-3",
5802
5802
  elevation: "0"
5803
5803
  }, {
5804
- default: u(() => [
5804
+ default: g(() => [
5805
5805
  m(S, { class: "border-b-thin" }, {
5806
- default: u(() => [
5806
+ default: g(() => [
5807
5807
  m(x, {
5808
5808
  class: "text-subtitle-1 font-weight-medium",
5809
5809
  style: { "font-size": "16px !important" }
5810
5810
  }, {
5811
- default: u(() => [
5811
+ default: g(() => [
5812
5812
  G(y(t.$t("weather.renders")), 1)
5813
5813
  ]),
5814
5814
  _: 1
@@ -5817,7 +5817,7 @@ function El(t, e, o, i, a, r) {
5817
5817
  _: 1
5818
5818
  }),
5819
5819
  m(p, { class: "py-2" }, {
5820
- default: u(() => [
5820
+ default: g(() => [
5821
5821
  (b(!0), T(ke, null, Le(a.tagLayers.filter((H) => !H.overlays && H.key !== "ice-thickness"), (H) => (b(), T(ke, {
5822
5822
  key: H.key
5823
5823
  }, [
@@ -5873,7 +5873,7 @@ function El(t, e, o, i, a, r) {
5873
5873
  group: "",
5874
5874
  disabled: !a.autoActive
5875
5875
  }, {
5876
- default: u(() => [
5876
+ default: g(() => [
5877
5877
  m(s, {
5878
5878
  density: "compact",
5879
5879
  height: "30",
@@ -5883,7 +5883,7 @@ function El(t, e, o, i, a, r) {
5883
5883
  "base-color": "grey-lighten-1",
5884
5884
  disabled: !a.autoActive
5885
5885
  }, {
5886
- default: u(() => [
5886
+ default: g(() => [
5887
5887
  G(y(t.$t("weather.coverage")), 1)
5888
5888
  ]),
5889
5889
  _: 1
@@ -5897,7 +5897,7 @@ function El(t, e, o, i, a, r) {
5897
5897
  disabled: !a.autoActive,
5898
5898
  value: "ice-thickness"
5899
5899
  }, {
5900
- default: u(() => [
5900
+ default: g(() => [
5901
5901
  G(y(t.$t("weather.thickness")), 1)
5902
5902
  ]),
5903
5903
  _: 1
@@ -5916,14 +5916,14 @@ function El(t, e, o, i, a, r) {
5916
5916
  class: "menu-card mx-auto mb-3",
5917
5917
  elevation: "0"
5918
5918
  }, {
5919
- default: u(() => [
5919
+ default: g(() => [
5920
5920
  m(S, { class: "border-b-thin" }, {
5921
- default: u(() => [
5921
+ default: g(() => [
5922
5922
  m(x, {
5923
5923
  class: "text-subtitle-1 font-weight-medium",
5924
5924
  style: { "font-size": "16px !important" }
5925
5925
  }, {
5926
- default: u(() => [
5926
+ default: g(() => [
5927
5927
  G(y(t.$t("weather.forecastModel")), 1)
5928
5928
  ]),
5929
5929
  _: 1
@@ -5932,7 +5932,7 @@ function El(t, e, o, i, a, r) {
5932
5932
  _: 1
5933
5933
  }),
5934
5934
  m(p, { class: "" }, {
5935
- default: u(() => {
5935
+ default: g(() => {
5936
5936
  var H, te, je, Pe, he, ge, W, _e, J, re, Re, R, fe, Ce, De, Oe, A, U, Ue, Ve, Ye, ze, Ze, Xe, qe, Ke, Qe, Je, $e, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, St, Mt, Tt, It, At, Rt, Dt, Ot, Bt, Et, jt, Nt, Ft, Ht, Wt, Gt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Qt, Jt;
5937
5937
  return [
5938
5938
  l("div", wl, y(t.$t("weather.atmospheric")), 1),
@@ -6386,17 +6386,17 @@ class Ca {
6386
6386
  let n = eo.find((p) => {
6387
6387
  var d, f, z;
6388
6388
  return ((d = p.models) == null ? void 0 : d.includes(c)) || ((f = p.alias) == null ? void 0 : f.toLowerCase()) === c || ((z = p.name) == null ? void 0 : z.toLowerCase()) === c;
6389
- }), g = to.find((p) => {
6389
+ }), u = to.find((p) => {
6390
6390
  var d, f, z;
6391
6391
  return ((d = p.models) == null ? void 0 : d.includes(c)) || ((f = p.alias) == null ? void 0 : f.toLowerCase()) === c || ((z = p.name) == null ? void 0 : z.toLowerCase()) === c;
6392
6392
  });
6393
6393
  n = n || eo.find((p) => {
6394
6394
  var d, f;
6395
- return ((d = p.alias) == null ? void 0 : d.toLowerCase()) === ((f = g == null ? void 0 : g.alias) == null ? void 0 : f.toLowerCase());
6396
- }), g = g || to.find((p) => {
6395
+ return ((d = p.alias) == null ? void 0 : d.toLowerCase()) === ((f = u == null ? void 0 : u.alias) == null ? void 0 : f.toLowerCase());
6396
+ }), u = u || to.find((p) => {
6397
6397
  var d, f;
6398
6398
  return ((d = p.alias) == null ? void 0 : d.toLowerCase()) === ((f = n == null ? void 0 : n.alias) == null ? void 0 : f.toLowerCase());
6399
- }), n = n || eo[0], g = g || to[0], r.push((o = n.models) != null && o.includes(c) ? c : n.model), s.push((i = g.models) != null && i.includes(c) ? c : g.model);
6399
+ }), n = n || eo[0], u = u || to[0], r.push((o = n.models) != null && o.includes(c) ? c : n.model), s.push((i = u.models) != null && i.includes(c) ? c : u.model);
6400
6400
  }
6401
6401
  return {
6402
6402
  weatherModels: r.join(","),
@@ -6413,8 +6413,8 @@ class Ca {
6413
6413
  }), a;
6414
6414
  }
6415
6415
  static pickHourly(e, o) {
6416
- var i, a, r, s, c, n, g, p, d, f, z, x, S, C, N, M, L, v, _, P, k, I, V, X, q, Y, $, ee, Q, le, de, pe, me, K, ie, ue, F, ne, xe, ve, Se, Me, Te, Ie, Ae, ye, H, te, je, Pe;
6417
- const he = typeof o == "string" ? D(o) : o, ge = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, _e = D((a = (i = ge == null ? void 0 : ge[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), J = _e.clone().add((c = (s = (r = ge == null ? void 0 : ge[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), re = _e.clone().add((p = (g = (n = ge == null ? void 0 : ge[0]) == null ? void 0 : n.hourly) == null ? void 0 : g.time) == null ? void 0 : p.at(-1), "h"), Re = [];
6416
+ var i, a, r, s, c, n, u, p, d, f, z, x, S, C, N, M, L, v, _, P, k, I, V, X, q, Y, $, ee, Q, le, de, pe, me, K, ie, ue, F, ne, xe, ve, Se, Me, Te, Ie, Ae, ye, H, te, je, Pe;
6417
+ const he = typeof o == "string" ? D(o) : o, ge = e == null ? void 0 : e.weather, W = e == null ? void 0 : e.marine, _e = D((a = (i = ge == null ? void 0 : ge[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), J = _e.clone().add((c = (s = (r = ge == null ? void 0 : ge[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : c.at(0), "h"), re = _e.clone().add((p = (u = (n = ge == null ? void 0 : ge[0]) == null ? void 0 : n.hourly) == null ? void 0 : u.time) == null ? void 0 : p.at(-1), "h"), Re = [];
6418
6418
  if (he.isBetween(J, re, "millisecond", "[]")) {
6419
6419
  const R = he.utc().diff(J, "h", !1);
6420
6420
  let fe, Ce;
@@ -6500,7 +6500,7 @@ class Ca {
6500
6500
  return Re;
6501
6501
  }
6502
6502
  static toLegacy(e) {
6503
- var o, i, a, r, s, c, n, g, p, d;
6503
+ var o, i, a, r, s, c, n, u, p, d;
6504
6504
  return {
6505
6505
  wind: (o = e == null ? void 0 : e.weather) == null ? void 0 : o.wind,
6506
6506
  visibility: (i = e == null ? void 0 : e.weather) == null ? void 0 : i.visibility,
@@ -6510,7 +6510,7 @@ class Ca {
6510
6510
  kts: (c = (s = e == null ? void 0 : e.weather) == null ? void 0 : s.wind) == null ? void 0 : c.gusts
6511
6511
  },
6512
6512
  precip: (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip,
6513
- code: (g = e == null ? void 0 : e.weather) == null ? void 0 : g.code,
6513
+ code: (u = e == null ? void 0 : e.weather) == null ? void 0 : u.code,
6514
6514
  name: (p = e == null ? void 0 : e.weather) == null ? void 0 : p.name,
6515
6515
  url: (d = e == null ? void 0 : e.weather) == null ? void 0 : d.url,
6516
6516
  wave: e == null ? void 0 : e.wave,
@@ -6522,7 +6522,7 @@ class Ca {
6522
6522
  };
6523
6523
  }
6524
6524
  static pickDaily(e, o) {
6525
- var i, a, r, s, c, n, g, p, d, f, z, x, S, C, N, M, L, v, _, P, k, I, V, X, q, Y, $, ee, Q, le, de, pe, me, K, ie, ue, F, ne, xe, ve, Se, Me, Te, Ie;
6525
+ var i, a, r, s, c, n, u, p, d, f, z, x, S, C, N, M, L, v, _, P, k, I, V, X, q, Y, $, ee, Q, le, de, pe, me, K, ie, ue, F, ne, xe, ve, Se, Me, Te, Ie;
6526
6526
  const Ae = typeof o == "string" ? D(o) : o, ye = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, te = D((r = (a = (i = ye == null ? void 0 : ye[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), je = D((n = (c = (s = ye == null ? void 0 : ye[0]) == null ? void 0 : s.daily) == null ? void 0 : c.time) == null ? void 0 : n.at(-1)), Pe = [];
6527
6527
  if (Ae.isBetween(te, je, "millisecond", "[]")) {
6528
6528
  let he, ge;
@@ -6531,7 +6531,7 @@ class Ca {
6531
6531
  for (const _e of ye) {
6532
6532
  const J = _e.daily;
6533
6533
  he = {
6534
- code: (g = J.weather_code) == null ? void 0 : g.at(W),
6534
+ code: (u = J.weather_code) == null ? void 0 : u.at(W),
6535
6535
  temp: {
6536
6536
  max: (p = J.temperature_2m_max) == null ? void 0 : p.at(W),
6537
6537
  min: (d = J.temperature_2m_min) == null ? void 0 : d.at(W),
@@ -7140,7 +7140,8 @@ const Nl = {
7140
7140
  },
7141
7141
  methods: {
7142
7142
  handleMenuToggle() {
7143
- this.toggle = !this.toggle, localStorage.setItem(this.tropicalCacheKey, this.toggle), this.toggle ? this.fetchTropicals() : (this.handleClear(), this.$parent.$refs.idmBottomBar.handleToggle("tropical", !1));
7143
+ var t, e, o;
7144
+ this.toggle = !this.toggle, localStorage.setItem(this.tropicalCacheKey, this.toggle), this.toggle ? this.fetchTropicals() : (this.handleClear(), (o = (e = (t = this.$parent) == null ? void 0 : t.$refs) == null ? void 0 : e.idmBottomBar) == null || o.handleToggle("tropical", !1));
7144
7145
  },
7145
7146
  async fetchTropicals() {
7146
7147
  var a, r, s;
@@ -7153,13 +7154,13 @@ const Nl = {
7153
7154
  }
7154
7155
  });
7155
7156
  if (o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("weather links elapsed: ", o, ", total: ", e += o), ((r = n == null ? void 0 : n.data) == null ? void 0 : r.code) === 0) {
7156
- const g = (s = n == null ? void 0 : n.data) == null ? void 0 : s.data;
7157
- await Be.get(g.tropicals, {
7157
+ const u = (s = n == null ? void 0 : n.data) == null ? void 0 : s.data;
7158
+ await Be.get(u.tropicals, {
7158
7159
  headers: {
7159
7160
  Authorization: this.token || this.defaultMeteoToken,
7160
7161
  key: "tropicals"
7161
7162
  },
7162
- responseType: /\.(jpg|png)$/.test(g.tropicals) ? "blob" : "json"
7163
+ responseType: /\.(jpg|png)$/.test(u.tropicals) ? "blob" : "json"
7163
7164
  }).then((p) => {
7164
7165
  var z, x, S;
7165
7166
  const d = Pa.convert2Geojson(((z = p == null ? void 0 : p.data) == null ? void 0 : z.data) || (p == null ? void 0 : p.data));
@@ -7186,7 +7187,7 @@ const Nl = {
7186
7187
  }), this.handleInit();
7187
7188
  },
7188
7189
  handleInit() {
7189
- var t, e, o, i;
7190
+ var t, e, o, i, a, r, s, c, n, u;
7190
7191
  this.tropicals && (this.handleRender(), (t = this.map) == null || t.on(
7191
7192
  "click",
7192
7193
  [
@@ -7200,10 +7201,10 @@ const Nl = {
7200
7201
  this.historyPointLabelLayer
7201
7202
  ],
7202
7203
  this.handleClick
7203
- )), ((i = (o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) == null ? void 0 : i.length) > 0 ? this.$parent.$refs.idmBottomBar.handleToggle("tropical", !0) : this.$parent.$refs.idmBottomBar.handleToggle("tropical", !1);
7204
+ )), ((i = (o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) == null ? void 0 : i.length) > 0 ? (s = (r = (a = this.$parent) == null ? void 0 : a.$refs) == null ? void 0 : r.idmBottomBar) == null || s.handleToggle("tropical", !0) : (u = (n = (c = this.$parent) == null ? void 0 : c.$refs) == null ? void 0 : n.idmBottomBar) == null || u.handleToggle("tropical", !1);
7204
7205
  },
7205
7206
  handleRender() {
7206
- var t, e, o, i, a, r, s, c, n, g;
7207
+ var t, e, o, i, a, r, s, c, n, u;
7207
7208
  if (!this.map)
7208
7209
  setTimeout(() => {
7209
7210
  this.handleRender();
@@ -7311,7 +7312,7 @@ const Nl = {
7311
7312
  }
7312
7313
  }), z = (/* @__PURE__ */ new Date()).valueOf() - (d + f), console.log("[tropical] add elapsed: ", z, ", total: ", f += z)), (r = this.map) != null && r.getSource(this.clusterSource) ? ((c = this.map) == null || c.getSource(this.clusterSource).setData((s = this.tropicals) != null && s.active ? this.tropicals.data : this.empty), z = (/* @__PURE__ */ new Date()).valueOf() - (d + f), console.log("[tropical] update elapsed: ", z, ", total: ", f += z)) : (this.map.addSource(this.clusterSource, {
7313
7314
  type: "geojson",
7314
- data: (n = this.tropicals) != null && n.active ? (g = this.tropicals) == null ? void 0 : g.data : this.empty
7315
+ data: (n = this.tropicals) != null && n.active ? (u = this.tropicals) == null ? void 0 : u.data : this.empty
7315
7316
  // cluster: true,
7316
7317
  // clusterRadius: 10, // 聚合半径
7317
7318
  }), this.map.addLayer({
@@ -7450,7 +7451,7 @@ const Nl = {
7450
7451
  ), this.showTropicalsInfo = !1;
7451
7452
  },
7452
7453
  handleDateChange() {
7453
- var t, e, o, i, a, r, s, c, n, g, p, d, f, z, x, S, C, N, M, L, v, _, P, k, I, V, X, q, Y, $, ee, Q;
7454
+ var t, e, o, i, a, r, s, c, n, u, p, d, f, z, x, S, C, N, M, L, v, _, P, k, I, V, X, q, Y, $, ee, Q;
7454
7455
  if ((t = this.interpolateMarkers) == null || t.forEach((le) => le == null ? void 0 : le.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
7455
7456
  const le = D(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), de = this.interpolateData.filter((K) => K.properties.date === (le == null ? void 0 : le.format()) && !K.properties.disabled), pe = this.handleComputePolygons(de), me = E.featureCollection([...de]);
7456
7457
  pe.forEach((K) => {
@@ -7472,7 +7473,7 @@ const Nl = {
7472
7473
  for (const K of de)
7473
7474
  if (!K.properties.disabled) {
7474
7475
  let ie = "#f44336";
7475
- ((c = (s = K.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((g = (n = K.properties) == null ? void 0 : n.wind) != null && g.kts) ? ie = "#03f869" : ((d = (p = K.properties) == null ? void 0 : p.wind) == null ? void 0 : d.kts) >= 32 && ((z = (f = K.properties) == null ? void 0 : f.wind) == null ? void 0 : z.kts) < 47 ? ie = "#f2f202" : ((S = (x = K.properties) == null ? void 0 : x.wind) == null ? void 0 : S.kts) >= 47 && ((N = (C = K.properties) == null ? void 0 : C.wind) == null ? void 0 : N.kts) < 63 ? ie = "#ff9100" : ((L = (M = K.properties) == null ? void 0 : M.wind) == null ? void 0 : L.kts) >= 63 && ((_ = (v = K.properties) == null ? void 0 : v.wind) == null ? void 0 : _.kts) < 79 ? ie = "#f44336" : ((k = (P = K.properties) == null ? void 0 : P.wind) == null ? void 0 : k.kts) >= 79 && ((V = (I = K.properties) == null ? void 0 : I.wind) == null ? void 0 : V.kts) < 94 ? ie = "#f903d0" : ((q = (X = K.properties) == null ? void 0 : X.wind) == null ? void 0 : q.kts) >= 94 ? ie = "#8702f9" : ie = "#f44336";
7476
+ ((c = (s = K.properties) == null ? void 0 : s.wind) == null ? void 0 : c.kts) < 32 || !((u = (n = K.properties) == null ? void 0 : n.wind) != null && u.kts) ? ie = "#03f869" : ((d = (p = K.properties) == null ? void 0 : p.wind) == null ? void 0 : d.kts) >= 32 && ((z = (f = K.properties) == null ? void 0 : f.wind) == null ? void 0 : z.kts) < 47 ? ie = "#f2f202" : ((S = (x = K.properties) == null ? void 0 : x.wind) == null ? void 0 : S.kts) >= 47 && ((N = (C = K.properties) == null ? void 0 : C.wind) == null ? void 0 : N.kts) < 63 ? ie = "#ff9100" : ((L = (M = K.properties) == null ? void 0 : M.wind) == null ? void 0 : L.kts) >= 63 && ((_ = (v = K.properties) == null ? void 0 : v.wind) == null ? void 0 : _.kts) < 79 ? ie = "#f44336" : ((k = (P = K.properties) == null ? void 0 : P.wind) == null ? void 0 : k.kts) >= 79 && ((V = (I = K.properties) == null ? void 0 : I.wind) == null ? void 0 : V.kts) < 94 ? ie = "#f903d0" : ((q = (X = K.properties) == null ? void 0 : X.wind) == null ? void 0 : q.kts) >= 94 ? ie = "#8702f9" : ie = "#f44336";
7476
7477
  const ue = `<svg t="1719918955501"
7477
7478
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
7478
7479
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -7496,7 +7497,7 @@ const Nl = {
7496
7497
  (ee = this.map) != null && ee.getSource(this.interpolateSource) && ((Q = this.map) == null || Q.getSource(this.interpolateSource).setData(this.empty));
7497
7498
  },
7498
7499
  handleClick(t) {
7499
- var r, s, c, n, g, p, d, f;
7500
+ var r, s, c, n, u, p, d, f;
7500
7501
  const e = t.features[0], o = (s = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : s.features.filter(
7501
7502
  (z) => {
7502
7503
  var x;
@@ -7509,7 +7510,7 @@ const Nl = {
7509
7510
  }
7510
7511
  );
7511
7512
  this.activeTropicals = {
7512
- name: (g = e == null ? void 0 : e.properties) == null ? void 0 : g.name,
7513
+ name: (u = e == null ? void 0 : e.properties) == null ? void 0 : u.name,
7513
7514
  forecasts: o.map((z) => z.properties),
7514
7515
  history: (p = i[0]) == null ? void 0 : p.properties,
7515
7516
  showCircle: (f = (d = o[0]) == null ? void 0 : d.properties) == null ? void 0 : f.showCircle
@@ -7521,10 +7522,10 @@ const Nl = {
7521
7522
  var i, a, r, s, c, n;
7522
7523
  t.disabled = !t.disabled;
7523
7524
  const e = `${t.name}-${t.model}`, o = (a = (i = this.map) == null ? void 0 : i.getSource(this.source)._data) == null ? void 0 : a.features;
7524
- o.forEach((g) => {
7525
- g.properties.category === e && (g.properties.disabled = t.disabled);
7526
- }), this.interpolateData.forEach((g) => {
7527
- g.properties.category === e && (g.properties.disabled = t.disabled);
7525
+ o.forEach((u) => {
7526
+ u.properties.category === e && (u.properties.disabled = t.disabled);
7527
+ }), this.interpolateData.forEach((u) => {
7528
+ u.properties.category === e && (u.properties.disabled = t.disabled);
7528
7529
  }), (s = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || s.setData(E.featureCollection(o)), (n = (c = this.map) == null ? void 0 : c.getSource(this.clusterSource)) == null || n.setData(E.featureCollection(o)), this.handleDateChange();
7529
7530
  },
7530
7531
  handleStrikeProbability(t) {
@@ -7614,7 +7615,7 @@ const Nl = {
7614
7615
  style: { height: "80px" }
7615
7616
  }, os = { class: "pa-1 d-flex justify-space-between align-center" }, as = { class: "pa-1 d-flex justify-space-between align-center" };
7616
7617
  function is(t, e, o, i, a, r) {
7617
- const s = w("VBtn"), c = w("VTooltip"), n = w("VCardText"), g = w("VDivider"), p = w("VCardActions"), d = w("VCard");
7618
+ const s = w("VBtn"), c = w("VTooltip"), n = w("VCardText"), u = w("VDivider"), p = w("VCardActions"), d = w("VCard");
7618
7619
  return b(), T("div", Fl, [
7619
7620
  l("div", {
7620
7621
  class: "menu-bar-box transition pa-1",
@@ -7624,7 +7625,7 @@ function is(t, e, o, i, a, r) {
7624
7625
  text: t.$t("tropical.tropicals"),
7625
7626
  location: "left"
7626
7627
  }, {
7627
- activator: u(({ props: f }) => [
7628
+ activator: g(({ props: f }) => [
7628
7629
  m(s, B(f, {
7629
7630
  "min-width": "32",
7630
7631
  width: "32",
@@ -7632,7 +7633,7 @@ function is(t, e, o, i, a, r) {
7632
7633
  class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
7633
7634
  onClick: r.handleMenuToggle
7634
7635
  }), {
7635
- default: u(() => e[4] || (e[4] = [
7636
+ default: g(() => e[4] || (e[4] = [
7636
7637
  l("i", { class: "iconfont icon-a-Tropicalcyclone text-h4" }, null, -1)
7637
7638
  ])),
7638
7639
  _: 2,
@@ -7647,9 +7648,9 @@ function is(t, e, o, i, a, r) {
7647
7648
  width: "400",
7648
7649
  elevation: "16"
7649
7650
  }, {
7650
- default: u(() => [
7651
+ default: g(() => [
7651
7652
  m(n, null, {
7652
- default: u(() => {
7653
+ default: g(() => {
7653
7654
  var f, z, x, S, C, N, M, L, v, _;
7654
7655
  return [
7655
7656
  l("div", Wl, [
@@ -7672,9 +7673,9 @@ function is(t, e, o, i, a, r) {
7672
7673
  }),
7673
7674
  _: 1
7674
7675
  }),
7675
- m(g),
7676
+ m(u),
7676
7677
  m(n, { class: "text-body-1" }, {
7677
- default: u(() => {
7678
+ default: g(() => {
7678
7679
  var f, z, x, S, C, N, M, L, v;
7679
7680
  return [
7680
7681
  l("div", Yl, [
@@ -7712,7 +7713,7 @@ function is(t, e, o, i, a, r) {
7712
7713
  class: Ge(["model text-none text-body-1", _.disabled ? "" : "btn-border-2"]),
7713
7714
  onClick: (k) => r.handleForecastToggle(_)
7714
7715
  }, {
7715
- default: u(() => [
7716
+ default: g(() => [
7716
7717
  G(y(_.model), 1)
7717
7718
  ]),
7718
7719
  _: 2
@@ -7723,9 +7724,9 @@ function is(t, e, o, i, a, r) {
7723
7724
  }),
7724
7725
  _: 1
7725
7726
  }),
7726
- m(g),
7727
+ m(u),
7727
7728
  m(p, { class: "d-flex justify-space-between" }, {
7728
- default: u(() => [
7729
+ default: g(() => [
7729
7730
  m(s, {
7730
7731
  density: "compact",
7731
7732
  "prepend-icon": "",
@@ -7734,10 +7735,10 @@ function is(t, e, o, i, a, r) {
7734
7735
  class: "text-none text-body-1",
7735
7736
  onClick: e[1] || (e[1] = (f) => a.showLegend = !a.showLegend)
7736
7737
  }, {
7737
- prepend: u(() => e[11] || (e[11] = [
7738
+ prepend: g(() => e[11] || (e[11] = [
7738
7739
  l("i", { class: "iconfont icon-Legend text-h4" }, null, -1)
7739
7740
  ])),
7740
- default: u(() => [
7741
+ default: g(() => [
7741
7742
  e[12] || (e[12] = G(" Legend ", -1))
7742
7743
  ]),
7743
7744
  _: 1,
@@ -7751,7 +7752,7 @@ function is(t, e, o, i, a, r) {
7751
7752
  class: "text-none text-body-1",
7752
7753
  onClick: e[2] || (e[2] = (f) => r.handleNotification(a.activeTropicals))
7753
7754
  }, {
7754
- default: u(() => e[13] || (e[13] = [
7755
+ default: g(() => e[13] || (e[13] = [
7755
7756
  G("Notify", -1)
7756
7757
  ])),
7757
7758
  _: 1,
@@ -7764,7 +7765,7 @@ function is(t, e, o, i, a, r) {
7764
7765
  class: "text-none text-body-1",
7765
7766
  onClick: e[3] || (e[3] = (f) => r.handleStrikeProbability(a.activeTropicals))
7766
7767
  }, {
7767
- default: u(() => e[14] || (e[14] = [
7768
+ default: g(() => e[14] || (e[14] = [
7768
7769
  G("View Report", -1)
7769
7770
  ])),
7770
7771
  _: 1,
@@ -7782,9 +7783,9 @@ function is(t, e, o, i, a, r) {
7782
7783
  width: "400",
7783
7784
  elevation: "16"
7784
7785
  }, {
7785
- default: u(() => [
7786
+ default: g(() => [
7786
7787
  m(n, null, {
7787
- default: u(() => [
7788
+ default: g(() => [
7788
7789
  He(l("div", os, e[15] || (e[15] = [
7789
7790
  l("div", { class: "legend d-flex justify-start align-center" }, [
7790
7791
  l("div", { class: "icon td" }),
@@ -8008,7 +8009,7 @@ const rs = {
8008
8009
  style: { height: "56px" }
8009
8010
  };
8010
8011
  function ms(t, e, o, i, a, r) {
8011
- const s = w("VBtn"), c = w("VDatePicker"), n = w("VDivider"), g = w("VListItemTitle"), p = w("VListItem"), d = w("VList"), f = w("VCardText"), z = w("VCardActions"), x = w("VCard");
8012
+ const s = w("VBtn"), c = w("VDatePicker"), n = w("VDivider"), u = w("VListItemTitle"), p = w("VListItem"), d = w("VList"), f = w("VCardText"), z = w("VCardActions"), x = w("VCard");
8012
8013
  return b(), T("div", ls, [
8013
8014
  m(s, {
8014
8015
  text: "",
@@ -8016,7 +8017,7 @@ function ms(t, e, o, i, a, r) {
8016
8017
  class: "elevation-0 text-body-1 px-2 btn-border-1",
8017
8018
  onClick: r.handleOpenDatePicker
8018
8019
  }, {
8019
- default: u(() => [
8020
+ default: g(() => [
8020
8021
  G(y(a.currentDateTime) + " | UTC " + y(o.timeZone < 0 ? o.timeZone : "+" + o.timeZone), 1)
8021
8022
  ]),
8022
8023
  _: 1
@@ -8025,9 +8026,9 @@ function ms(t, e, o, i, a, r) {
8025
8026
  key: 0,
8026
8027
  class: "card-box d-flex flex-column"
8027
8028
  }, {
8028
- default: u(() => [
8029
+ default: g(() => [
8029
8030
  m(f, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
8030
- default: u(() => [
8031
+ default: g(() => [
8031
8032
  l("div", ss, [
8032
8033
  m(c, {
8033
8034
  modelValue: a.currentDate,
@@ -8050,7 +8051,7 @@ function ms(t, e, o, i, a, r) {
8050
8051
  l("div", ns, [
8051
8052
  l("div", cs, y(a.currentTime), 1),
8052
8053
  m(d, { class: "pa-0 flex-1-1-0" }, {
8053
- default: u(() => [
8054
+ default: g(() => [
8054
8055
  (b(!0), T(ke, null, Le(r.hourOptions, (S, C) => (b(), j(p, {
8055
8056
  key: C,
8056
8057
  value: S,
@@ -8060,12 +8061,12 @@ function ms(t, e, o, i, a, r) {
8060
8061
  height: "26",
8061
8062
  "min-height": "26"
8062
8063
  }, {
8063
- default: u(() => [
8064
- m(g, {
8064
+ default: g(() => [
8065
+ m(u, {
8065
8066
  class: "text-body-2 text-center",
8066
8067
  onClick: (N) => a.currentTime = S
8067
8068
  }, {
8068
- default: u(() => [
8069
+ default: g(() => [
8069
8070
  G(y(S), 1)
8070
8071
  ]),
8071
8072
  _: 2
@@ -8085,14 +8086,14 @@ function ms(t, e, o, i, a, r) {
8085
8086
  class: "justify-end pa-0 pr-4",
8086
8087
  style: { height: "50px" }
8087
8088
  }, {
8088
- default: u(() => [
8089
+ default: g(() => [
8089
8090
  m(s, {
8090
8091
  size: "small",
8091
8092
  variant: "tonal",
8092
8093
  class: "text-none",
8093
8094
  onClick: r.handleCancelDate
8094
8095
  }, {
8095
- default: u(() => e[1] || (e[1] = [
8096
+ default: g(() => e[1] || (e[1] = [
8096
8097
  G("Cancel", -1)
8097
8098
  ])),
8098
8099
  _: 1,
@@ -8105,7 +8106,7 @@ function ms(t, e, o, i, a, r) {
8105
8106
  class: "text-none",
8106
8107
  onClick: r.handleConfirmDate
8107
8108
  }, {
8108
- default: u(() => e[2] || (e[2] = [
8109
+ default: g(() => e[2] || (e[2] = [
8109
8110
  G("Confirm", -1)
8110
8111
  ])),
8111
8112
  _: 1,
@@ -8354,10 +8355,10 @@ const hs = {
8354
8355
  (a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data), this.loading = !1;
8355
8356
  },
8356
8357
  initTableData(t) {
8357
- var o, i, a, r, s, c, n, g, p, d, f, z, x, S, C, N, M, L, v, _, P, k, I, V, X, q, Y, $, ee, Q, le, de, pe, me, K, ie, ue, F, ne, xe, ve;
8358
+ var o, i, a, r, s, c, n, u, p, d, f, z, x, S, C, N, M, L, v, _, P, k, I, V, X, q, Y, $, ee, Q, le, de, pe, me, K, ie, ue, F, ne, xe, ve;
8358
8359
  this.currentHourData = {}, this.positionGmt = (i = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : r.offset;
8359
8360
  const e = ((s = ao.pickHourly(t, D(this.form.dateTime))) == null ? void 0 : s[0]) || {};
8360
- this.currentHourData.utc = e.utc, this.currentHourData.lat = this.form.lat, this.currentHourData.lng = this.form.lng, this.currentHourData.temp = this.roundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((g = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((d = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : d.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((f = e == null ? void 0 : e.weather) == null ? void 0 : f.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((x = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.wind) == null ? void 0 : x.kts, 1) ?? "-", this.currentHourData.windDir = (C = (S = e == null ? void 0 : e.weather) == null ? void 0 : S.wind) == null ? void 0 : C.direction, this.currentHourData.windLevel = this.roundPrecision((M = (N = e == null ? void 0 : e.weather) == null ? void 0 : N.wind) == null ? void 0 : M.scale, 0) ?? "-", this.currentHourData.windGust = this.roundPrecision((v = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : v.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.roundPrecision((P = (_ = e == null ? void 0 : e.wave) == null ? void 0 : _.sig) == null ? void 0 : P.height, 1) ?? "-", this.currentHourData.sigwaveDir = (I = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : I.direction, this.currentHourData.sigwavePeriod = this.roundPrecision((X = (V = e == null ? void 0 : e.wave) == null ? void 0 : V.sig) == null ? void 0 : X.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.roundPrecision((Y = (q = e == null ? void 0 : e.wave) == null ? void 0 : q.wd) == null ? void 0 : Y.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.roundPrecision((le = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : le.period, 1) ?? "-", this.currentHourData.swellHeight = this.roundPrecision((pe = (de = e == null ? void 0 : e.wave) == null ? void 0 : de.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = (K = (me = e == null ? void 0 : e.wave) == null ? void 0 : me.swell) == null ? void 0 : K.direction, this.currentHourData.swellPeriod = this.roundPrecision((ue = (ie = e == null ? void 0 : e.wave) == null ? void 0 : ie.swell) == null ? void 0 : ue.period, 1) ?? "-", this.currentHourData.currentSpeed = this.roundPrecision((F = e == null ? void 0 : e.current) == null ? void 0 : F.speed, 1) ?? "-", this.currentHourData.currentDir = (ne = e == null ? void 0 : e.current) == null ? void 0 : ne.direction, this.currentHourData.currentSpeed = this.roundPrecision((xe = e == null ? void 0 : e.current) == null ? void 0 : xe.speed, 1) ?? "-", this.currentHourData.seaLevel = this.roundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.roundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (ve = e == null ? void 0 : e.weather) == null ? void 0 : ve.url;
8361
+ this.currentHourData.utc = e.utc, this.currentHourData.lat = this.form.lat, this.currentHourData.lng = this.form.lng, this.currentHourData.temp = this.roundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((u = (n = e == null ? void 0 : e.weather) == null ? void 0 : n.precip) == null ? void 0 : u.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((d = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : d.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((f = e == null ? void 0 : e.weather) == null ? void 0 : f.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((x = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.wind) == null ? void 0 : x.kts, 1) ?? "-", this.currentHourData.windDir = (C = (S = e == null ? void 0 : e.weather) == null ? void 0 : S.wind) == null ? void 0 : C.direction, this.currentHourData.windLevel = this.roundPrecision((M = (N = e == null ? void 0 : e.weather) == null ? void 0 : N.wind) == null ? void 0 : M.scale, 0) ?? "-", this.currentHourData.windGust = this.roundPrecision((v = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : v.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.roundPrecision((P = (_ = e == null ? void 0 : e.wave) == null ? void 0 : _.sig) == null ? void 0 : P.height, 1) ?? "-", this.currentHourData.sigwaveDir = (I = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : I.direction, this.currentHourData.sigwavePeriod = this.roundPrecision((X = (V = e == null ? void 0 : e.wave) == null ? void 0 : V.sig) == null ? void 0 : X.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.roundPrecision((Y = (q = e == null ? void 0 : e.wave) == null ? void 0 : q.wd) == null ? void 0 : Y.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.roundPrecision((le = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : le.period, 1) ?? "-", this.currentHourData.swellHeight = this.roundPrecision((pe = (de = e == null ? void 0 : e.wave) == null ? void 0 : de.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = (K = (me = e == null ? void 0 : e.wave) == null ? void 0 : me.swell) == null ? void 0 : K.direction, this.currentHourData.swellPeriod = this.roundPrecision((ue = (ie = e == null ? void 0 : e.wave) == null ? void 0 : ie.swell) == null ? void 0 : ue.period, 1) ?? "-", this.currentHourData.currentSpeed = this.roundPrecision((F = e == null ? void 0 : e.current) == null ? void 0 : F.speed, 1) ?? "-", this.currentHourData.currentDir = (ne = e == null ? void 0 : e.current) == null ? void 0 : ne.direction, this.currentHourData.currentSpeed = this.roundPrecision((xe = e == null ? void 0 : e.current) == null ? void 0 : xe.speed, 1) ?? "-", this.currentHourData.seaLevel = this.roundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.roundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (ve = e == null ? void 0 : e.weather) == null ? void 0 : ve.url;
8361
8362
  },
8362
8363
  handleBind() {
8363
8364
  var t, e;
@@ -8427,7 +8428,7 @@ const hs = {
8427
8428
  "aria-hidden": "true"
8428
8429
  }, zs = ["xlink:href"], Ls = { class: "d-flex justify-start align-center" }, Ps = { class: "mx-2" };
8429
8430
  function Cs(t, e, o, i, a, r) {
8430
- const s = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), g = w("VDivider"), p = w("VTextField"), d = w("VCol"), f = w("VRow"), z = w("DateTimePicker"), x = w("VBtnToggle"), S = w("VCardActions"), C = w("VForm"), N = w("VCardText"), M = w("VCard"), L = w("VIcon");
8431
+ const s = w("VBtn"), c = w("VTooltip"), n = w("VCardTitle"), u = w("VDivider"), p = w("VTextField"), d = w("VCol"), f = w("VRow"), z = w("DateTimePicker"), x = w("VBtnToggle"), S = w("VCardActions"), C = w("VForm"), N = w("VCardText"), M = w("VCard"), L = w("VIcon");
8431
8432
  return b(), T("div", ds, [
8432
8433
  l("div", {
8433
8434
  class: "menu-bar-box transition pa-1",
@@ -8437,7 +8438,7 @@ function Cs(t, e, o, i, a, r) {
8437
8438
  text: t.$t("spot.spotsMeteo"),
8438
8439
  location: "left"
8439
8440
  }, {
8440
- activator: u(({ props: v }) => [
8441
+ activator: g(({ props: v }) => [
8441
8442
  m(s, B(v, {
8442
8443
  "min-width": "32",
8443
8444
  width: "32",
@@ -8445,7 +8446,7 @@ function Cs(t, e, o, i, a, r) {
8445
8446
  class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
8446
8447
  onClick: r.handleMenuToggle
8447
8448
  }), {
8448
- default: u(() => e[8] || (e[8] = [
8449
+ default: g(() => e[8] || (e[8] = [
8449
8450
  l("i", { class: "iconfont icon-a-Spotweather text-h4" }, null, -1)
8450
8451
  ])),
8451
8452
  _: 2,
@@ -8460,9 +8461,9 @@ function Cs(t, e, o, i, a, r) {
8460
8461
  class: "spot-form-card",
8461
8462
  style: ae({ top: o.top + 174 + "px", right: a.right + 50 + "px" })
8462
8463
  }, {
8463
- default: u(() => [
8464
+ default: g(() => [
8464
8465
  m(n, { class: "d-flex justify-space-between align-center" }, {
8465
- default: u(() => [
8466
+ default: g(() => [
8466
8467
  e[10] || (e[10] = l("div", { class: "d-flex justify-start align-center" }, [
8467
8468
  l("div", { class: "text-h6 font-weight-600 mx-2" }, "Spot Weather")
8468
8469
  ], -1)),
@@ -8473,7 +8474,7 @@ function Cs(t, e, o, i, a, r) {
8473
8474
  class: "mr-n2",
8474
8475
  onClick: r.handleCloseForm
8475
8476
  }, {
8476
- default: u(() => e[9] || (e[9] = [
8477
+ default: g(() => e[9] || (e[9] = [
8477
8478
  l("i", {
8478
8479
  class: "iconfont icon-close",
8479
8480
  style: { "font-size": "20px" }
@@ -8486,16 +8487,16 @@ function Cs(t, e, o, i, a, r) {
8486
8487
  _: 1,
8487
8488
  __: [10]
8488
8489
  }),
8489
- m(g),
8490
+ m(u),
8490
8491
  m(N, { class: "text-body-1 py-1" }, {
8491
- default: u(() => [
8492
+ default: g(() => [
8492
8493
  m(C, {
8493
8494
  ref: "spotForm",
8494
8495
  autocomplete: "off",
8495
8496
  class: "form-box",
8496
8497
  onSubmit: Aa(r.submitForm, ["prevent"])
8497
8498
  }, {
8498
- default: u(() => [
8499
+ default: g(() => [
8499
8500
  l("div", ps, [
8500
8501
  (b(), T("svg", us, [
8501
8502
  l("use", {
@@ -8505,12 +8506,12 @@ function Cs(t, e, o, i, a, r) {
8505
8506
  e[11] || (e[11] = l("div", null, "Lng", -1))
8506
8507
  ]),
8507
8508
  m(f, { class: "ma-0" }, {
8508
- default: u(() => [
8509
+ default: g(() => [
8509
8510
  m(d, {
8510
8511
  cols: "4",
8511
8512
  class: "pa-0 d-flex"
8512
8513
  }, {
8513
- default: u(() => [
8514
+ default: g(() => [
8514
8515
  m(p, {
8515
8516
  modelValue: a.form.lngDegree,
8516
8517
  "onUpdate:modelValue": e[0] || (e[0] = (v) => a.form.lngDegree = v),
@@ -8529,7 +8530,7 @@ function Cs(t, e, o, i, a, r) {
8529
8530
  cols: "6",
8530
8531
  class: "pa-0 d-flex"
8531
8532
  }, {
8532
- default: u(() => [
8533
+ default: g(() => [
8533
8534
  m(p, {
8534
8535
  modelValue: a.form.lngMinute,
8535
8536
  "onUpdate:modelValue": e[1] || (e[1] = (v) => a.form.lngMinute = v),
@@ -8549,7 +8550,7 @@ function Cs(t, e, o, i, a, r) {
8549
8550
  cols: "2",
8550
8551
  class: "pa-0"
8551
8552
  }, {
8552
- default: u(() => [
8553
+ default: g(() => [
8553
8554
  m(s, {
8554
8555
  variant: "outlined",
8555
8556
  density: "compact",
@@ -8560,7 +8561,7 @@ function Cs(t, e, o, i, a, r) {
8560
8561
  style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
8561
8562
  onClick: e[2] || (e[2] = (v) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
8562
8563
  }, {
8563
- default: u(() => [
8564
+ default: g(() => [
8564
8565
  G(y(a.form.lngDirection), 1)
8565
8566
  ]),
8566
8567
  _: 1
@@ -8580,12 +8581,12 @@ function Cs(t, e, o, i, a, r) {
8580
8581
  e[14] || (e[14] = l("div", null, "Lat", -1))
8581
8582
  ]),
8582
8583
  m(f, { class: "ma-0" }, {
8583
- default: u(() => [
8584
+ default: g(() => [
8584
8585
  m(d, {
8585
8586
  cols: "4",
8586
8587
  class: "pa-0 d-flex"
8587
8588
  }, {
8588
- default: u(() => [
8589
+ default: g(() => [
8589
8590
  m(p, {
8590
8591
  modelValue: a.form.latDegree,
8591
8592
  "onUpdate:modelValue": e[3] || (e[3] = (v) => a.form.latDegree = v),
@@ -8607,7 +8608,7 @@ function Cs(t, e, o, i, a, r) {
8607
8608
  cols: "6",
8608
8609
  class: "pa-0 d-flex"
8609
8610
  }, {
8610
- default: u(() => [
8611
+ default: g(() => [
8611
8612
  m(p, {
8612
8613
  modelValue: a.form.latMinute,
8613
8614
  "onUpdate:modelValue": e[4] || (e[4] = (v) => a.form.latMinute = v),
@@ -8627,7 +8628,7 @@ function Cs(t, e, o, i, a, r) {
8627
8628
  cols: "2",
8628
8629
  class: "pa-0"
8629
8630
  }, {
8630
- default: u(() => [
8631
+ default: g(() => [
8631
8632
  m(s, {
8632
8633
  variant: "outlined",
8633
8634
  density: "compact",
@@ -8638,7 +8639,7 @@ function Cs(t, e, o, i, a, r) {
8638
8639
  style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
8639
8640
  onClick: e[5] || (e[5] = (v) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
8640
8641
  }, {
8641
- default: u(() => [
8642
+ default: g(() => [
8642
8643
  G(y(a.form.latDirection), 1)
8643
8644
  ]),
8644
8645
  _: 1
@@ -8658,12 +8659,12 @@ function Cs(t, e, o, i, a, r) {
8658
8659
  e[17] || (e[17] = l("div", null, "Date Time", -1))
8659
8660
  ]),
8660
8661
  m(f, { class: "ma-0 mb-4" }, {
8661
- default: u(() => [
8662
+ default: g(() => [
8662
8663
  m(d, {
8663
8664
  cols: "12",
8664
8665
  class: "pa-0"
8665
8666
  }, {
8666
- default: u(() => [
8667
+ default: g(() => [
8667
8668
  m(z, B({
8668
8669
  "date-time": a.form.dateTime,
8669
8670
  "time-zone": o.timeZone
@@ -8685,12 +8686,12 @@ function Cs(t, e, o, i, a, r) {
8685
8686
  e[18] || (e[18] = l("div", null, "Forecast Model", -1))
8686
8687
  ]),
8687
8688
  m(f, { class: "ma-0 mb-2" }, {
8688
- default: u(() => [
8689
+ default: g(() => [
8689
8690
  m(d, {
8690
8691
  cols: "12",
8691
8692
  class: "pa-0"
8692
8693
  }, {
8693
- default: u(() => [
8694
+ default: g(() => [
8694
8695
  m(x, {
8695
8696
  modelValue: a.form.forecastModel,
8696
8697
  "onUpdate:modelValue": e[7] || (e[7] = (v) => a.form.forecastModel = v),
@@ -8700,7 +8701,7 @@ function Cs(t, e, o, i, a, r) {
8700
8701
  density: "compact",
8701
8702
  group: ""
8702
8703
  }, {
8703
- default: u(() => [
8704
+ default: g(() => [
8704
8705
  m(s, {
8705
8706
  density: "compact",
8706
8707
  height: "30",
@@ -8709,7 +8710,7 @@ function Cs(t, e, o, i, a, r) {
8709
8710
  color: a.form.forecastModel === "GFS" ? "primary" : "",
8710
8711
  "base-color": ""
8711
8712
  }, {
8712
- default: u(() => e[19] || (e[19] = [
8713
+ default: g(() => e[19] || (e[19] = [
8713
8714
  G("NOAA", -1)
8714
8715
  ])),
8715
8716
  _: 1,
@@ -8723,7 +8724,7 @@ function Cs(t, e, o, i, a, r) {
8723
8724
  "base-color": "",
8724
8725
  value: "ECMWF"
8725
8726
  }, {
8726
- default: u(() => e[20] || (e[20] = [
8727
+ default: g(() => e[20] || (e[20] = [
8727
8728
  G("ECMWF", -1)
8728
8729
  ])),
8729
8730
  _: 1,
@@ -8738,16 +8739,16 @@ function Cs(t, e, o, i, a, r) {
8738
8739
  ]),
8739
8740
  _: 1
8740
8741
  }),
8741
- m(g),
8742
+ m(u),
8742
8743
  m(S, { class: "d-flex justify-end align-center ga-4" }, {
8743
- default: u(() => [
8744
+ default: g(() => [
8744
8745
  m(s, {
8745
8746
  size: "small",
8746
8747
  variant: "outlined",
8747
8748
  class: "text-none text-body-1",
8748
8749
  onClick: r.handleCloseForm
8749
8750
  }, {
8750
- default: u(() => e[21] || (e[21] = [
8751
+ default: g(() => e[21] || (e[21] = [
8751
8752
  G("Clear", -1)
8752
8753
  ])),
8753
8754
  _: 1,
@@ -8761,7 +8762,7 @@ function Cs(t, e, o, i, a, r) {
8761
8762
  type: "submit",
8762
8763
  class: "text-none text-body-1"
8763
8764
  }, {
8764
- default: u(() => e[22] || (e[22] = [
8765
+ default: g(() => e[22] || (e[22] = [
8765
8766
  G("Confirm", -1)
8766
8767
  ])),
8767
8768
  _: 1,
@@ -8784,9 +8785,9 @@ function Cs(t, e, o, i, a, r) {
8784
8785
  class: "spot-meteo",
8785
8786
  style: { width: "490px", "z-index": "9" }
8786
8787
  }, {
8787
- default: u(() => [
8788
+ default: g(() => [
8788
8789
  m(n, { class: "d-flex justify-space-between align-center" }, {
8789
- default: u(() => {
8790
+ default: g(() => {
8790
8791
  var v, _;
8791
8792
  return [
8792
8793
  l("div", Ls, [
@@ -8800,7 +8801,7 @@ function Cs(t, e, o, i, a, r) {
8800
8801
  class: "mr-n2",
8801
8802
  onClick: r.handleCloseMeteo
8802
8803
  }, {
8803
- default: u(() => e[24] || (e[24] = [
8804
+ default: g(() => e[24] || (e[24] = [
8804
8805
  l("i", {
8805
8806
  class: "iconfont icon-close",
8806
8807
  style: { "font-size": "20px" }
@@ -8813,16 +8814,16 @@ function Cs(t, e, o, i, a, r) {
8813
8814
  }),
8814
8815
  _: 1
8815
8816
  }),
8816
- m(g),
8817
+ m(u),
8817
8818
  m(N, { class: "text-body-1 ml-n8" }, {
8818
- default: u(() => [
8819
+ default: g(() => [
8819
8820
  m(f, null, {
8820
- default: u(() => [
8821
+ default: g(() => [
8821
8822
  m(d, {
8822
8823
  cols: "3",
8823
8824
  class: "pa-2 pl-0 text-right opacity-50"
8824
8825
  }, {
8825
- default: u(() => e[25] || (e[25] = [
8826
+ default: g(() => e[25] || (e[25] = [
8826
8827
  G("Time", -1)
8827
8828
  ])),
8828
8829
  _: 1,
@@ -8832,7 +8833,7 @@ function Cs(t, e, o, i, a, r) {
8832
8833
  cols: "9",
8833
8834
  class: "pa-2 px-0"
8834
8835
  }, {
8835
- default: u(() => {
8836
+ default: g(() => {
8836
8837
  var v;
8837
8838
  return [
8838
8839
  G(y(r.computedTzTime((v = a.currentHourData) == null ? void 0 : v.utc)), 1)
@@ -8844,12 +8845,12 @@ function Cs(t, e, o, i, a, r) {
8844
8845
  _: 1
8845
8846
  }),
8846
8847
  m(f, null, {
8847
- default: u(() => [
8848
+ default: g(() => [
8848
8849
  m(d, {
8849
8850
  cols: "3",
8850
8851
  class: "pa-2 pl-0 text-right opacity-50"
8851
8852
  }, {
8852
- default: u(() => e[26] || (e[26] = [
8853
+ default: g(() => e[26] || (e[26] = [
8853
8854
  G("LT", -1)
8854
8855
  ])),
8855
8856
  _: 1,
@@ -8859,7 +8860,7 @@ function Cs(t, e, o, i, a, r) {
8859
8860
  cols: "9",
8860
8861
  class: "pa-2 px-0"
8861
8862
  }, {
8862
- default: u(() => {
8863
+ default: g(() => {
8863
8864
  var v;
8864
8865
  return [
8865
8866
  G(y(r.computedLocalTime((v = a.currentHourData) == null ? void 0 : v.utc)), 1)
@@ -8871,12 +8872,12 @@ function Cs(t, e, o, i, a, r) {
8871
8872
  _: 1
8872
8873
  }),
8873
8874
  m(f, null, {
8874
- default: u(() => [
8875
+ default: g(() => [
8875
8876
  m(d, {
8876
8877
  cols: "3",
8877
8878
  class: "pa-2 pl-0 text-right opacity-50"
8878
8879
  }, {
8879
- default: u(() => e[27] || (e[27] = [
8880
+ default: g(() => e[27] || (e[27] = [
8880
8881
  G("Wind", -1)
8881
8882
  ])),
8882
8883
  _: 1,
@@ -8886,7 +8887,7 @@ function Cs(t, e, o, i, a, r) {
8886
8887
  cols: "4",
8887
8888
  class: "pa-2 px-0 text-left"
8888
8889
  }, {
8889
- default: u(() => [
8890
+ default: g(() => [
8890
8891
  G(y(a.currentHourData.windDir) + " / " + y(a.currentHourData.windSpeed) + "kts / BF" + y(a.currentHourData.windLevel), 1)
8891
8892
  ]),
8892
8893
  _: 1
@@ -8895,7 +8896,7 @@ function Cs(t, e, o, i, a, r) {
8895
8896
  cols: "2",
8896
8897
  class: "pa-2 pl-0 ml-n4 text-right opacity-50"
8897
8898
  }, {
8898
- default: u(() => e[28] || (e[28] = [
8899
+ default: g(() => e[28] || (e[28] = [
8899
8900
  G("Sig Wave", -1)
8900
8901
  ])),
8901
8902
  _: 1,
@@ -8905,7 +8906,7 @@ function Cs(t, e, o, i, a, r) {
8905
8906
  cols: "3",
8906
8907
  class: "pa-2 px-0 text-left"
8907
8908
  }, {
8908
- default: u(() => [
8909
+ default: g(() => [
8909
8910
  G(y(a.currentHourData.sigwaveDir) + " / " + y(a.currentHourData.sigwaveHeight) + "m / " + y(a.currentHourData.sigwavePeriod) + "s", 1)
8910
8911
  ]),
8911
8912
  _: 1
@@ -8914,12 +8915,12 @@ function Cs(t, e, o, i, a, r) {
8914
8915
  _: 1
8915
8916
  }),
8916
8917
  m(f, null, {
8917
- default: u(() => [
8918
+ default: g(() => [
8918
8919
  m(d, {
8919
8920
  cols: "3",
8920
8921
  class: "pa-2 pl-0 text-right opacity-50"
8921
8922
  }, {
8922
- default: u(() => e[29] || (e[29] = [
8923
+ default: g(() => e[29] || (e[29] = [
8923
8924
  G("Wind Wave", -1)
8924
8925
  ])),
8925
8926
  _: 1,
@@ -8929,7 +8930,7 @@ function Cs(t, e, o, i, a, r) {
8929
8930
  cols: "4",
8930
8931
  class: "pa-2 px-0 text-left"
8931
8932
  }, {
8932
- default: u(() => [
8933
+ default: g(() => [
8933
8934
  G(y(a.currentHourData.windwaveDir) + " / " + y(a.currentHourData.windwaveHeight) + "m / " + y(a.currentHourData.windwavePeriod) + "s", 1)
8934
8935
  ]),
8935
8936
  _: 1
@@ -8938,7 +8939,7 @@ function Cs(t, e, o, i, a, r) {
8938
8939
  cols: "2",
8939
8940
  class: "pa-2 pl-0 ml-n4 text-right opacity-50"
8940
8941
  }, {
8941
- default: u(() => e[30] || (e[30] = [
8942
+ default: g(() => e[30] || (e[30] = [
8942
8943
  G("Swell", -1)
8943
8944
  ])),
8944
8945
  _: 1,
@@ -8948,7 +8949,7 @@ function Cs(t, e, o, i, a, r) {
8948
8949
  cols: "3",
8949
8950
  class: "pa-2 px-0 text-left"
8950
8951
  }, {
8951
- default: u(() => [
8952
+ default: g(() => [
8952
8953
  G(y(a.currentHourData.swellDir) + " / " + y(a.currentHourData.swellHeight) + "m / " + y(a.currentHourData.swellPeriod) + "s", 1)
8953
8954
  ]),
8954
8955
  _: 1
@@ -8957,12 +8958,12 @@ function Cs(t, e, o, i, a, r) {
8957
8958
  _: 1
8958
8959
  }),
8959
8960
  m(f, null, {
8960
- default: u(() => [
8961
+ default: g(() => [
8961
8962
  m(d, {
8962
8963
  cols: "3",
8963
8964
  class: "pa-2 pl-0 text-right opacity-50"
8964
8965
  }, {
8965
- default: u(() => e[31] || (e[31] = [
8966
+ default: g(() => e[31] || (e[31] = [
8966
8967
  G("Current", -1)
8967
8968
  ])),
8968
8969
  _: 1,
@@ -8972,7 +8973,7 @@ function Cs(t, e, o, i, a, r) {
8972
8973
  cols: "4",
8973
8974
  class: "pa-2 px-0 text-left"
8974
8975
  }, {
8975
- default: u(() => [
8976
+ default: g(() => [
8976
8977
  G(y(a.currentHourData.currentDir) + " / " + y(a.currentHourData.currentSpeed) + "kts", 1)
8977
8978
  ]),
8978
8979
  _: 1
@@ -8981,7 +8982,7 @@ function Cs(t, e, o, i, a, r) {
8981
8982
  cols: "2",
8982
8983
  class: "pa-2 pl-0 ml-n4 text-right opacity-50"
8983
8984
  }, {
8984
- default: u(() => e[32] || (e[32] = [
8985
+ default: g(() => e[32] || (e[32] = [
8985
8986
  G("Visibility", -1)
8986
8987
  ])),
8987
8988
  _: 1,
@@ -8991,7 +8992,7 @@ function Cs(t, e, o, i, a, r) {
8991
8992
  cols: "3",
8992
8993
  class: "pa-2 px-0 text-left"
8993
8994
  }, {
8994
- default: u(() => [
8995
+ default: g(() => [
8995
8996
  G(y(a.currentHourData.visibility) + " nm", 1)
8996
8997
  ]),
8997
8998
  _: 1
@@ -9002,9 +9003,9 @@ function Cs(t, e, o, i, a, r) {
9002
9003
  ]),
9003
9004
  _: 1
9004
9005
  }),
9005
- m(g),
9006
+ m(u),
9006
9007
  m(S, { class: "d-flex justify-space-between align-center" }, {
9007
- default: u(() => [
9008
+ default: g(() => [
9008
9009
  m(s, {
9009
9010
  vvariant: "text",
9010
9011
  density: "compact",
@@ -9012,10 +9013,10 @@ function Cs(t, e, o, i, a, r) {
9012
9013
  class: "text-none text-body-1",
9013
9014
  onClick: r.handleFollow
9014
9015
  }, {
9015
- prepend: u(() => [
9016
+ prepend: g(() => [
9016
9017
  m(L, { color: "warning" })
9017
9018
  ]),
9018
- default: u(() => [
9019
+ default: g(() => [
9019
9020
  e[33] || (e[33] = G(" Follow", -1))
9020
9021
  ]),
9021
9022
  _: 1,
@@ -9028,7 +9029,7 @@ function Cs(t, e, o, i, a, r) {
9028
9029
  class: "text-none text-body-1",
9029
9030
  onClick: r.handleMeteoMore
9030
9031
  }, {
9031
- default: u(() => e[34] || (e[34] = [
9032
+ default: g(() => e[34] || (e[34] = [
9032
9033
  G("Forecast", -1)
9033
9034
  ])),
9034
9035
  _: 1,
@@ -9135,7 +9136,7 @@ const Ms = {
9135
9136
  }
9136
9137
  },
9137
9138
  handleDrag(t) {
9138
- var o, i, a, r, s, c, n, g, p, d;
9139
+ var o, i, a, r, s, c, n, u, p, d;
9139
9140
  const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
9140
9141
  if ((e == null ? void 0 : e.split("-").length) === 2) {
9141
9142
  const f = this.geojson.filter((C) => C.id === e.split("-")[0])[0];
@@ -9154,13 +9155,13 @@ const Ms = {
9154
9155
  this.handleTmpPointUpdate(
9155
9156
  f,
9156
9157
  S[x - 1],
9157
- { lng: (g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, lat: (d = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : d.lat, properties: S[x].properties },
9158
+ { lng: (u = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : u.lng, lat: (d = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : d.lat, properties: S[x].properties },
9158
9159
  x === S.length - 1 ? void 0 : S[x + 1]
9159
9160
  );
9160
9161
  }
9161
9162
  },
9162
9163
  handleDragEnd(t) {
9163
- var o, i, a, r, s, c, n, g, p, d;
9164
+ var o, i, a, r, s, c, n, u, p, d;
9164
9165
  const e = (i = (o = t.target) == null ? void 0 : o._element) == null ? void 0 : i.id;
9165
9166
  if ((e == null ? void 0 : e.split("-").length) === 2) {
9166
9167
  const f = this.geojson.filter((S) => S.id === e.split("-")[0])[0];
@@ -9169,7 +9170,7 @@ const Ms = {
9169
9170
  return ((C = S._element) == null ? void 0 : C.id) === e;
9170
9171
  })[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (c = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : c.lat]);
9171
9172
  const x = f.features.filter((S) => S.geometry.type === "Point" && S.properties.id === e.split("-")[1])[0];
9172
- x.geometry.coordinates = [(g = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : g.lng, (d = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : d.lat], f.features = f.features.filter((S) => S.geometry.type === "Point"), this.handlePointUpdate(f);
9173
+ x.geometry.coordinates = [(u = (n = t.target) == null ? void 0 : n._lngLat) == null ? void 0 : u.lng, (d = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : d.lat], f.features = f.features.filter((S) => S.geometry.type === "Point"), this.handlePointUpdate(f);
9173
9174
  }
9174
9175
  },
9175
9176
  handleContextmenu(t) {
@@ -9178,9 +9179,9 @@ const Ms = {
9178
9179
  const e = (r = (a = (i = t.originalEvent) == null ? void 0 : i.target) == null ? void 0 : a.parentElement) == null ? void 0 : r.id;
9179
9180
  if ((e == null ? void 0 : e.split("-").length) === 2) {
9180
9181
  const c = this.geojson.filter((n) => n.id === e.split("-")[0])[0].features.filter((n) => n.geometry.type === "Point");
9181
- if (c.length > 2 && c.filter((g) => g.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
9182
- const g = document.createElement("div");
9183
- g.className = "idm-gl4-measure-contextmenu-marker", g.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new we.Marker(g).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
9182
+ if (c.length > 2 && c.filter((u) => u.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
9183
+ const u = document.createElement("div");
9184
+ u.className = "idm-gl4-measure-contextmenu-marker", u.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new we.Marker(u).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
9184
9185
  }
9185
9186
  }
9186
9187
  },
@@ -9189,15 +9190,15 @@ const Ms = {
9189
9190
  (o = this.contextmenu) == null || o.remove();
9190
9191
  const e = t.originalEvent.target.className;
9191
9192
  if (e === "marker-close") {
9192
- const n = (a = (i = t.originalEvent) == null ? void 0 : i.srcElement) == null ? void 0 : a.id, g = this.geojson.filter((p) => p.id === n)[0];
9193
- g && this.handleClear(g, !0), this.geojson = this.geojson.filter((p) => p.id !== n), !this.toggle && !((r = this.geojson) != null && r.some((p) => p.closed)) && this.handleUnbind();
9193
+ const n = (a = (i = t.originalEvent) == null ? void 0 : i.srcElement) == null ? void 0 : a.id, u = this.geojson.filter((p) => p.id === n)[0];
9194
+ u && this.handleClear(u, !0), this.geojson = this.geojson.filter((p) => p.id !== n), !this.toggle && !((r = this.geojson) != null && r.some((p) => p.closed)) && this.handleUnbind();
9194
9195
  } else if (e === "del-point") {
9195
- const n = (c = (s = t.originalEvent.target.id) == null ? void 0 : s.replace("del-", "")) == null ? void 0 : c.split("-"), g = this.geojson.filter((p) => p.id === n[0])[0];
9196
- g.features = g.features.filter((p) => p.geometry.type === "Point" && p.properties.id !== n[1]), this.handlePointUpdate(g);
9196
+ const n = (c = (s = t.originalEvent.target.id) == null ? void 0 : s.replace("del-", "")) == null ? void 0 : c.split("-"), u = this.geojson.filter((p) => p.id === n[0])[0];
9197
+ u.features = u.features.filter((p) => p.geometry.type === "Point" && p.properties.id !== n[1]), this.handlePointUpdate(u);
9197
9198
  } else if (e !== "marker-label" && this.toggle) {
9198
9199
  let n = this.geojson.at(-1);
9199
9200
  n || (n = E.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(n)), n.features = n.features.filter((p) => p.geometry.type === "Point");
9200
- const g = E.feature(
9201
+ const u = E.feature(
9201
9202
  {
9202
9203
  type: "Point",
9203
9204
  coordinates: [t.lngLat.lng, t.lngLat.lat]
@@ -9208,7 +9209,7 @@ const Ms = {
9208
9209
  sumLabel: "Start"
9209
9210
  }
9210
9211
  );
9211
- n.features.push(g), this.handlePointUpdate(n);
9212
+ n.features.push(u), this.handlePointUpdate(n);
9212
9213
  }
9213
9214
  },
9214
9215
  handlePointUpdate(t) {
@@ -9217,10 +9218,10 @@ const Ms = {
9217
9218
  let o = 0;
9218
9219
  const i = [];
9219
9220
  for (let a = 1; a < e.length; a++) {
9220
- const r = e[a - 1], s = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, g = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = Fe.calculateDistance(n, g, c.mode === "RL", 4), d = Fe.calculateBearing(n, g, c.mode === "RL", 2);
9221
+ const r = e[a - 1], s = e[a], c = r.properties, n = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] }, u = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = Fe.calculateDistance(n, u, c.mode === "RL", 4), d = Fe.calculateBearing(n, u, c.mode === "RL", 2);
9221
9222
  o = oe.roundPrecision(o + p, 4);
9222
9223
  let f;
9223
- c.mode === "RL" ? f = oe.convertToMonotonicLng([n, g]) : f = oe.convertToMonotonicLng(Fe.interpolateCoordinates(n, g, 200));
9224
+ c.mode === "RL" ? f = oe.convertToMonotonicLng([n, u]) : f = oe.convertToMonotonicLng(Fe.interpolateCoordinates(n, u, 200));
9224
9225
  const z = E.lineString(f.map((S) => [S.lng, S.lat]));
9225
9226
  z.properties.dist = p, z.properties.bearing = d, z.properties.total = o, z.properties.name = "Line " + this.currentLineIndex, i.push(z);
9226
9227
  const x = e[a];
@@ -9234,18 +9235,18 @@ const Ms = {
9234
9235
  const a = E.featureCollection([]);
9235
9236
  let r, s;
9236
9237
  if (e) {
9237
- const n = e.properties, g = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, p = { lng: o.lng, lat: o.lat };
9238
- r = Fe.calculateDistance(g, p, n.mode === "RL", 4), s = Fe.calculateBearing(g, p, n.mode === "RL", 2);
9238
+ const n = e.properties, u = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, p = { lng: o.lng, lat: o.lat };
9239
+ r = Fe.calculateDistance(u, p, n.mode === "RL", 4), s = Fe.calculateBearing(u, p, n.mode === "RL", 2);
9239
9240
  let d;
9240
- n.mode === "RL" ? d = oe.convertToMonotonicLng([g, p]) : d = oe.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
9241
+ n.mode === "RL" ? d = oe.convertToMonotonicLng([u, p]) : d = oe.convertToMonotonicLng(Fe.interpolateCoordinates(u, p, 200));
9241
9242
  const f = E.lineString(d.map((z) => [z.lng, z.lat]));
9242
9243
  f.properties.dist = r, f.properties.bearing = s, a.features.push(f);
9243
9244
  }
9244
9245
  if (i) {
9245
- const n = o.properties, g = o, p = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
9246
- r = Fe.calculateDistance(g, p, n.mode === "RL", 4), s = Fe.calculateBearing(g, p, n.mode === "RL", 2);
9246
+ const n = o.properties, u = o, p = { lng: i.geometry.coordinates[0], lat: i.geometry.coordinates[1] };
9247
+ r = Fe.calculateDistance(u, p, n.mode === "RL", 4), s = Fe.calculateBearing(u, p, n.mode === "RL", 2);
9247
9248
  let d;
9248
- n.mode === "RL" ? d = oe.convertToMonotonicLng([g, p]) : d = oe.convertToMonotonicLng(Fe.interpolateCoordinates(g, p, 200));
9249
+ n.mode === "RL" ? d = oe.convertToMonotonicLng([u, p]) : d = oe.convertToMonotonicLng(Fe.interpolateCoordinates(u, p, 200));
9249
9250
  const f = E.lineString(d.map((z) => [z.lng, z.lat]));
9250
9251
  f.properties.dist = r, f.properties.bearing = s, a.features.push(f);
9251
9252
  }
@@ -9378,19 +9379,19 @@ const Ms = {
9378
9379
  for (const c of s) {
9379
9380
  const n = document.createElement("div");
9380
9381
  n.id = `${t.id}-${c.properties.id}`, n.className = `${t.closed ? "idm-gl4-measure-marker closed" : "idm-gl4-measure-marker"}`, n.innerHTML = '<div class="marker-circle"></div>';
9381
- const g = new we.Marker({ element: n, draggable: !0, contextmenu: !0 }).setLngLat(c.geometry.coordinates).addTo(this.map);
9382
- g.on("drag", this.handleDrag), g.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(g) : this.pointMarkers[t.id] = [g];
9382
+ const u = new we.Marker({ element: n, draggable: !0, contextmenu: !0 }).setLngLat(c.geometry.coordinates).addTo(this.map);
9383
+ u.on("drag", this.handleDrag), u.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(u) : this.pointMarkers[t.id] = [u];
9383
9384
  }
9384
9385
  if (t.closed) {
9385
- const c = s.at(-1), g = t.features.filter((d) => d.geometry.type === "LineString").at(-1), p = document.createElement("div");
9386
- p.className = "idm-gl4-measure-summary-marker", p.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${g.properties.name}</div>`, this.closeMarkers[t.id] = new we.Marker(p).setOffset([0, -30]).setLngLat(c.geometry.coordinates).addTo(this.map);
9386
+ const c = s.at(-1), u = t.features.filter((d) => d.geometry.type === "LineString").at(-1), p = document.createElement("div");
9387
+ p.className = "idm-gl4-measure-summary-marker", p.innerHTML = `<div id="${t.id}" class="marker-close">×</div><div class="marker-label">${u.properties.name}</div>`, this.closeMarkers[t.id] = new we.Marker(p).setOffset([0, -30]).setLngLat(c.geometry.coordinates).addTo(this.map);
9387
9388
  }
9388
9389
  }
9389
9390
  },
9390
9391
  handleClear(t, e = !0) {
9391
- var s, c, n, g, p, d, f, z, x, S;
9392
+ var s, c, n, u, p, d, f, z, x, S;
9392
9393
  const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
9393
- (s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(a) && this.map.removeLayer(a), (n = this.map) != null && n.getLayer(r) && this.map.removeLayer(r), (g = this.map) != null && g.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (p = this.map) != null && p.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (d = this.closeMarkers[t.id]) == null || d.remove(), this.closeMarkers[t.id] = void 0, (f = this.pointMarkers[t.id]) == null || f.forEach((C) => {
9394
+ (s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (c = this.map) != null && c.getLayer(a) && this.map.removeLayer(a), (n = this.map) != null && n.getLayer(r) && this.map.removeLayer(r), (u = this.map) != null && u.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (p = this.map) != null && p.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (d = this.closeMarkers[t.id]) == null || d.remove(), this.closeMarkers[t.id] = void 0, (f = this.pointMarkers[t.id]) == null || f.forEach((C) => {
9394
9395
  C == null || C.remove();
9395
9396
  }), this.pointMarkers[t.id] = [], (z = this.tipMarker) == null || z.remove(), this.tipMarker = void 0, e && ((x = this.map) != null && x.getSource(o)) && this.map.removeSource(o), e && ((S = this.map) != null && S.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
9396
9397
  }
@@ -9407,7 +9408,7 @@ function Is(t, e, o, i, a, r) {
9407
9408
  text: t.$t("measure.measure"),
9408
9409
  location: "left"
9409
9410
  }, {
9410
- activator: u(({ props: n }) => [
9411
+ activator: g(({ props: n }) => [
9411
9412
  m(s, B(n, {
9412
9413
  "min-width": "32",
9413
9414
  width: "32",
@@ -9415,7 +9416,7 @@ function Is(t, e, o, i, a, r) {
9415
9416
  class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
9416
9417
  onClick: r.handleMenuToggle
9417
9418
  }), {
9418
- default: u(() => e[0] || (e[0] = [
9419
+ default: g(() => e[0] || (e[0] = [
9419
9420
  l("i", { class: "iconfont icon-a-Measuredistance text-h4" }, null, -1)
9420
9421
  ])),
9421
9422
  _: 2,
@@ -9550,7 +9551,7 @@ const Rs = {
9550
9551
  class: "list d-flex flex-wrap pa-2 rounded ga-2"
9551
9552
  }, Fs = ["onClick"], Hs = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, Ws = { class: "text-body-1" };
9552
9553
  function Gs(t, e, o, i, a, r) {
9553
- const s = w("DateTimePicker"), c = w("VListItemTitle"), n = w("VListItem"), g = w("VList"), p = w("VMenu"), d = w("VBtn"), f = w("VDivider"), z = w("VTooltip");
9554
+ const s = w("DateTimePicker"), c = w("VListItemTitle"), n = w("VListItem"), u = w("VList"), p = w("VMenu"), d = w("VBtn"), f = w("VDivider"), z = w("VTooltip");
9554
9555
  return b(), T("div", Ds, [
9555
9556
  Object.values(a.show).includes(!0) ? (b(), T("div", {
9556
9557
  key: 0,
@@ -9574,12 +9575,12 @@ function Gs(t, e, o, i, a, r) {
9574
9575
  class: "text-none elevation-0 btn-border-1 text-body-1",
9575
9576
  "min-width": "30"
9576
9577
  }, {
9577
- default: u(() => [
9578
+ default: g(() => [
9578
9579
  G(y(a.intervalHour) + " h ", 1),
9579
9580
  m(p, { activator: "parent" }, {
9580
- default: u(() => [
9581
- m(g, { class: "pa-1" }, {
9582
- default: u(() => [
9581
+ default: g(() => [
9582
+ m(u, { class: "pa-1" }, {
9583
+ default: g(() => [
9583
9584
  (b(!0), T(ke, null, Le(a.intervalOptions, (x, S) => (b(), j(n, {
9584
9585
  key: S,
9585
9586
  value: x,
@@ -9592,11 +9593,11 @@ function Gs(t, e, o, i, a, r) {
9592
9593
  "min-width": "30",
9593
9594
  class: "pa-0 text-center text-body-1"
9594
9595
  }, {
9595
- default: u(() => [
9596
+ default: g(() => [
9596
9597
  m(c, {
9597
9598
  onClick: (C) => a.intervalHour = x
9598
9599
  }, {
9599
- default: u(() => [
9600
+ default: g(() => [
9600
9601
  G(y(x) + "h", 1)
9601
9602
  ]),
9602
9603
  _: 2
@@ -9627,7 +9628,7 @@ function Gs(t, e, o, i, a, r) {
9627
9628
  variant: "text",
9628
9629
  onClick: r.handleReset
9629
9630
  }, {
9630
- default: u(() => e[9] || (e[9] = [
9631
+ default: g(() => e[9] || (e[9] = [
9631
9632
  l("i", { class: "iconfont icon-Reset" }, null, -1)
9632
9633
  ])),
9633
9634
  _: 1,
@@ -9640,7 +9641,7 @@ function Gs(t, e, o, i, a, r) {
9640
9641
  variant: "text",
9641
9642
  onClick: r.handleBackward
9642
9643
  }, {
9643
- default: u(() => e[10] || (e[10] = [
9644
+ default: g(() => e[10] || (e[10] = [
9644
9645
  l("i", { class: "iconfont icon-Backward" }, null, -1)
9645
9646
  ])),
9646
9647
  _: 1,
@@ -9654,7 +9655,7 @@ function Gs(t, e, o, i, a, r) {
9654
9655
  variant: "text",
9655
9656
  onClick: r.handlePlay
9656
9657
  }, {
9657
- default: u(() => e[11] || (e[11] = [
9658
+ default: g(() => e[11] || (e[11] = [
9658
9659
  l("i", { class: "iconfont icon-Play" }, null, -1)
9659
9660
  ])),
9660
9661
  _: 1,
@@ -9667,7 +9668,7 @@ function Gs(t, e, o, i, a, r) {
9667
9668
  variant: "text",
9668
9669
  onClick: r.handlePause
9669
9670
  }, {
9670
- default: u(() => e[12] || (e[12] = [
9671
+ default: g(() => e[12] || (e[12] = [
9671
9672
  l("i", { class: "iconfont icon-Pause" }, null, -1)
9672
9673
  ])),
9673
9674
  _: 1,
@@ -9680,7 +9681,7 @@ function Gs(t, e, o, i, a, r) {
9680
9681
  variant: "text",
9681
9682
  onClick: r.handleForward
9682
9683
  }, {
9683
- default: u(() => e[13] || (e[13] = [
9684
+ default: g(() => e[13] || (e[13] = [
9684
9685
  l("i", { class: "iconfont icon-Forward" }, null, -1)
9685
9686
  ])),
9686
9687
  _: 1,
@@ -9697,7 +9698,7 @@ function Gs(t, e, o, i, a, r) {
9697
9698
  text: t.$t("weather.windBarbs"),
9698
9699
  location: "top"
9699
9700
  }, {
9700
- activator: u(({ props: x }) => {
9701
+ activator: g(({ props: x }) => {
9701
9702
  var S, C;
9702
9703
  return [
9703
9704
  m(d, B(x, {
@@ -9709,7 +9710,7 @@ function Gs(t, e, o, i, a, r) {
9709
9710
  "min-width": "24",
9710
9711
  onClick: e[3] || (e[3] = (N) => r.handleClickFastWeather("wind"))
9711
9712
  }), {
9712
- default: u(() => e[14] || (e[14] = [
9713
+ default: g(() => e[14] || (e[14] = [
9713
9714
  l("i", { class: "iconfont icon-a-WindLevel" }, null, -1)
9714
9715
  ])),
9715
9716
  _: 2,
@@ -9723,7 +9724,7 @@ function Gs(t, e, o, i, a, r) {
9723
9724
  text: t.$t("weather.sigWaveHeight"),
9724
9725
  location: "top"
9725
9726
  }, {
9726
- activator: u(({ props: x }) => {
9727
+ activator: g(({ props: x }) => {
9727
9728
  var S, C;
9728
9729
  return [
9729
9730
  m(d, B(x, {
@@ -9735,7 +9736,7 @@ function Gs(t, e, o, i, a, r) {
9735
9736
  "min-width": "24",
9736
9737
  onClick: e[4] || (e[4] = (N) => r.handleClickFastWeather("sig-wave-height"))
9737
9738
  }), {
9738
- default: u(() => [
9739
+ default: g(() => [
9739
9740
  l("i", B(x, { class: "iconfont icon-a-WaveHeight" }), null, 16)
9740
9741
  ]),
9741
9742
  _: 2
@@ -9748,7 +9749,7 @@ function Gs(t, e, o, i, a, r) {
9748
9749
  text: t.$t("weather.currentDirection"),
9749
9750
  location: "top"
9750
9751
  }, {
9751
- activator: u(({ props: x }) => {
9752
+ activator: g(({ props: x }) => {
9752
9753
  var S, C;
9753
9754
  return [
9754
9755
  m(d, B(x, {
@@ -9760,7 +9761,7 @@ function Gs(t, e, o, i, a, r) {
9760
9761
  "min-width": "24",
9761
9762
  onClick: e[5] || (e[5] = (N) => r.handleClickFastWeather("current-direction"))
9762
9763
  }), {
9763
- default: u(() => [
9764
+ default: g(() => [
9764
9765
  l("i", B(x, { class: "iconfont icon-Current" }), null, 16)
9765
9766
  ]),
9766
9767
  _: 2
@@ -9773,7 +9774,7 @@ function Gs(t, e, o, i, a, r) {
9773
9774
  text: t.$t("weather.weatherLayers"),
9774
9775
  location: "top"
9775
9776
  }, {
9776
- activator: u(({ props: x }) => [
9777
+ activator: g(({ props: x }) => [
9777
9778
  m(d, B(x, {
9778
9779
  class: "pa-1 d-flex",
9779
9780
  variant: "text",
@@ -9782,7 +9783,7 @@ function Gs(t, e, o, i, a, r) {
9782
9783
  "min-width": "24",
9783
9784
  onClick: r.handleClickFastMore
9784
9785
  }), {
9785
- default: u(() => [
9786
+ default: g(() => [
9786
9787
  l("i", B(x, { class: "iconfont icon-Weather-11" }), null, 16)
9787
9788
  ]),
9788
9789
  _: 2
@@ -9804,7 +9805,7 @@ function Gs(t, e, o, i, a, r) {
9804
9805
  color: a.source === "GFS" ? "primary" : "",
9805
9806
  onClick: e[6] || (e[6] = (x) => a.source = "GFS")
9806
9807
  }, {
9807
- default: u(() => e[15] || (e[15] = [
9808
+ default: g(() => e[15] || (e[15] = [
9808
9809
  G("NOAA", -1)
9809
9810
  ])),
9810
9811
  _: 1,
@@ -9817,7 +9818,7 @@ function Gs(t, e, o, i, a, r) {
9817
9818
  color: a.source === "ECMWF" ? "primary" : "",
9818
9819
  onClick: e[7] || (e[7] = (x) => a.source = "ECMWF")
9819
9820
  }, {
9820
- default: u(() => e[16] || (e[16] = [
9821
+ default: g(() => e[16] || (e[16] = [
9821
9822
  G("ECMWF", -1)
9822
9823
  ])),
9823
9824
  _: 1,
@@ -9845,7 +9846,7 @@ function Gs(t, e, o, i, a, r) {
9845
9846
  color: "primary",
9846
9847
  onClick: e[8] || (e[8] = (x) => a.showTimezone = !a.showTimezone)
9847
9848
  }, {
9848
- default: u(() => [
9849
+ default: g(() => [
9849
9850
  G(" UTC " + y(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
9850
9851
  ]),
9851
9852
  _: 1
@@ -9921,7 +9922,7 @@ const Us = /* @__PURE__ */ Z(Rs, [["render", Gs]]), Vs = {
9921
9922
  class: "map-gl4-home"
9922
9923
  };
9923
9924
  function Zs(t, e, o, i, a, r) {
9924
- const s = w("IdmOtherLayer"), c = w("IdmWeatherLayer"), n = w("IdmTropicals"), g = w("IdmMeasure"), p = w("IdmSpot"), d = w("IdmBottomBar");
9925
+ const s = w("IdmOtherLayer"), c = w("IdmWeatherLayer"), n = w("IdmTropicals"), u = w("IdmMeasure"), p = w("IdmSpot"), d = w("IdmBottomBar");
9925
9926
  return b(), T("div", Ys, [
9926
9927
  m(s, B({
9927
9928
  ref: "idmOtherLayers",
@@ -9970,7 +9971,7 @@ function Zs(t, e, o, i, a, r) {
9970
9971
  "forecast-model": o.forecastModel,
9971
9972
  "map-feather": o.mapFeather
9972
9973
  }, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "tropicals", "real-time", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
9973
- m(g, B({
9974
+ m(u, B({
9974
9975
  map: o.map,
9975
9976
  "map-feather": o.mapFeather
9976
9977
  }, t.$attrs), null, 16, ["map", "map-feather"]),
@@ -10002,7 +10003,7 @@ class qs {
10002
10003
  se(this, "hi");
10003
10004
  se(this, "td");
10004
10005
  se(this, "windy");
10005
- var o, i, a, r, s, c, n, g, p, d, f, z, x, S, C, N, M, L, v, _, P, k, I, V, X, q, Y, $, ee, Q, le, de, pe, me, K, ie, ue, F, ne, xe, ve, Se, Me, Te, Ie, Ae, ye, H, te, je, Pe, he, ge, W, _e, J, re, Re, R, fe, Ce, De, Oe, A, U, Ue, Ve, Ye, ze, Ze, Xe, qe, Ke, Qe, Je, $e, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, St, Mt, Tt, It, At, Rt, Dt, Ot, Bt, Et, jt, Nt, Ft, Ht, Wt, Gt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Qt, Jt, lo, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, So, Mo, To, Io, Ao, Ro, Do, Oo, Bo, Eo, jo, No, Fo, Ho, Wo, Go, Uo, Vo, Yo, Zo, Xo, qo, Ko, Qo, Jo, $o, ea, ta, oa, aa, ia, ra, la, sa, na, ca, ma, ha, da, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La;
10006
+ var o, i, a, r, s, c, n, u, p, d, f, z, x, S, C, N, M, L, v, _, P, k, I, V, X, q, Y, $, ee, Q, le, de, pe, me, K, ie, ue, F, ne, xe, ve, Se, Me, Te, Ie, Ae, ye, H, te, je, Pe, he, ge, W, _e, J, re, Re, R, fe, Ce, De, Oe, A, U, Ue, Ve, Ye, ze, Ze, Xe, qe, Ke, Qe, Je, $e, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, St, Mt, Tt, It, At, Rt, Dt, Ot, Bt, Et, jt, Nt, Ft, Ht, Wt, Gt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Qt, Jt, lo, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, So, Mo, To, Io, Ao, Ro, Do, Oo, Bo, Eo, jo, No, Fo, Ho, Wo, Go, Uo, Vo, Yo, Zo, Xo, qo, Ko, Qo, Jo, $o, ea, ta, oa, aa, ia, ra, la, sa, na, ca, ma, ha, da, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La;
10006
10007
  this.i4 = {
10007
10008
  source: {
10008
10009
  type: "raster",
@@ -28277,7 +28278,7 @@ class qs {
28277
28278
  (i = (o = this.originStyle) == null ? void 0 : o.light.layers) == null ? void 0 : i.find((h) => h.id === "land"),
28278
28279
  (r = (a = this.originStyle) == null ? void 0 : a.light.layers) == null ? void 0 : r.find((h) => h.id === "water"),
28279
28280
  (c = (s = this.originStyle) == null ? void 0 : s.light.layers) == null ? void 0 : c.find((h) => h.id === "ice-area-fill"),
28280
- (g = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : g.find((h) => h.id === "ice-area-line"),
28281
+ (u = (n = this.originStyle) == null ? void 0 : n.light.layers) == null ? void 0 : u.find((h) => h.id === "ice-area-line"),
28281
28282
  (d = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : d.find((h) => h.id === "empty-layer-0"),
28282
28283
  (z = (f = this.originStyle) == null ? void 0 : f.light.layers) == null ? void 0 : z.find((h) => h.id === "empty-layer-1"),
28283
28284
  (S = (x = this.originStyle) == null ? void 0 : x.light.layers) == null ? void 0 : S.find((h) => h.id === "country-boundaries"),
@@ -28551,7 +28552,7 @@ function en(t, e, o, i, a, r) {
28551
28552
  class: "pa-0 elevation-0",
28552
28553
  onClick: r.handleZoomIn
28553
28554
  }, {
28554
- default: u(() => e[0] || (e[0] = [
28555
+ default: g(() => e[0] || (e[0] = [
28555
28556
  l("i", { class: "iconfont icon-a-Zoomin text-h4" }, null, -1)
28556
28557
  ])),
28557
28558
  _: 1,
@@ -28565,7 +28566,7 @@ function en(t, e, o, i, a, r) {
28565
28566
  class: "elevation-0 pa-0",
28566
28567
  onClick: r.handleZoomOut
28567
28568
  }, {
28568
- default: u(() => e[1] || (e[1] = [
28569
+ default: g(() => e[1] || (e[1] = [
28569
28570
  l("i", { class: "iconfont icon-a-Zoomout text-h4" }, null, -1)
28570
28571
  ])),
28571
28572
  _: 1,