@idmwx/idmui-gl3 4.1.4 → 4.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.js +608 -608
  2. package/dist/index.umd.cjs +13 -13
  3. package/package.json +71 -71
package/dist/index.js CHANGED
@@ -1,20 +1,20 @@
1
- var et = Object.defineProperty;
2
- var tt = (a, e, t) => e in a ? et(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
- var R = (a, e, t) => (tt(a, typeof e != "symbol" ? e + "" : e, t), t);
4
- import { LayerHelper as We, CompanyHelper as Ae, convertToStandardLng as Ie } from "@idmwx/idmwx-base";
5
- import { resolveComponent as z, openBlock as L, createElementBlock as x, createElementVNode as l, normalizeStyle as F, normalizeClass as M, Fragment as Re, renderList as De, toDisplayString as S, createVNode as P, withCtx as at, createTextVNode as Xe, createCommentVNode as $, pushScopeId as H, popScopeId as G, withDirectives as Me, vShow as $e, createStaticVNode as it, mergeProps as I } from "vue";
1
+ var Fe = Object.defineProperty;
2
+ var $e = (a, e, t) => e in a ? Fe(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
+ var I = (a, e, t) => ($e(a, typeof e != "symbol" ? e + "" : e, t), t);
4
+ import { LayerHelper as Pe, CompanyHelper as Ce, convertToStandardLng as we } from "@idmwx/idmwx-base";
5
+ import { resolveComponent as z, openBlock as x, createElementBlock as _, createElementVNode as l, normalizeStyle as $, normalizeClass as M, Fragment as xe, renderList as _e, toDisplayString as S, createVNode as P, withCtx as Ue, createTextVNode as Ne, createCommentVNode as B, withDirectives as Se, createStaticVNode as Ve, vShow as ke, mergeProps as R } from "vue";
6
6
  import * as C from "@turf/turf";
7
- import rt from "@mapbox/sphericalmercator";
7
+ import Ze from "@mapbox/sphericalmercator";
8
8
  import Z from "moment";
9
- import ne from "mapbox-gl";
10
- import { TropicalHelper as qe, LngLatHelper as j, LaneHelper as te } from "@idm-plugin/geo";
11
- import se from "axios";
9
+ import re from "mapbox-gl";
10
+ import { TropicalHelper as We, LngLatHelper as F, LaneHelper as Q } from "@idm-plugin/geo";
11
+ import ie from "axios";
12
12
  const T = (a, e) => {
13
13
  const t = a.__vccOpts || a;
14
14
  for (const [r, i] of e)
15
15
  t[r] = i;
16
16
  return t;
17
- }, ot = {
17
+ }, He = {
18
18
  name: "IdmGlLayer",
19
19
  props: {
20
20
  map: {
@@ -49,8 +49,8 @@ const T = (a, e) => {
49
49
  autoActive: !0,
50
50
  otherLayers: [],
51
51
  layers: {
52
- weather: [...We.WEATHER_LAYERS],
53
- other: [...We.OTHER_LAYERS]
52
+ weather: [...Pe.WEATHER_LAYERS],
53
+ other: [...Pe.OTHER_LAYERS]
54
54
  },
55
55
  weatherLayersCache: "weatherLayersCache",
56
56
  autoActiveCache: "autoActiveCache",
@@ -150,124 +150,124 @@ const T = (a, e) => {
150
150
  this.source = a, this.handleConfirm();
151
151
  }
152
152
  }
153
- }, st = { class: "idm-gl3-layer" }, nt = { class: "bar-item layer-bars" }, lt = /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1), ct = [
154
- lt
155
- ], ht = { class: "bar-item tool-bars" }, dt = /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1), pt = [
156
- dt
157
- ], mt = /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1), ut = [
158
- mt
159
- ], yt = /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1), ft = [
160
- yt
161
- ], gt = /* @__PURE__ */ l("span", { class: "iconfont" }, "", -1), bt = [
162
- gt
163
- ], vt = ["onClick"], _t = /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1), wt = /* @__PURE__ */ l("i", { class: "iconfont" }, "", -1), Lt = [
164
- wt
165
- ], xt = { class: "weather-layers" }, Ct = {
153
+ }, Ge = { class: "idm-gl3-layer" }, Je = { class: "bar-item layer-bars" }, Xe = { class: "bar-item tool-bars" }, qe = ["onClick"], Ye = { class: "weather-layers" }, Qe = {
166
154
  class: "layers-title",
167
155
  style: { display: "flex", "align-items": "center", "justify-content": "space-between" }
168
- }, St = { style: { "font-size": "12px" } }, kt = { class: "layers-body" }, zt = ["onClick"], Pt = /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1), Tt = { class: "other-layers" }, Et = /* @__PURE__ */ l("div", { class: "layers-title" }, "Other Layers", -1), It = { class: "layers-body" }, Rt = ["onClick"], Dt = /* @__PURE__ */ l("div", { class: "checkbox" }, null, -1), At = { class: "source-layers" }, Mt = /* @__PURE__ */ l("span", { class: "layers-title" }, "Forecast Model", -1), $t = { class: "layers-body model-box" };
169
- function Bt(a, e, t, r, i, o) {
156
+ }, Ke = { style: { "font-size": "12px" } }, et = { class: "layers-body" }, tt = ["onClick"], at = { class: "other-layers" }, it = { class: "layers-body" }, rt = ["onClick"], ot = { class: "source-layers" }, st = { class: "layers-body model-box" };
157
+ function nt(a, e, t, r, i, o) {
170
158
  const n = z("ElScrollbar");
171
- return L(), x("div", st, [
159
+ return x(), _("div", Ge, [
172
160
  l("div", {
173
161
  class: "menu-bar-box",
174
- style: F({ top: t.top + 10 + "px", right: i.right + "px" })
162
+ style: $({ top: t.top + 10 + "px", right: i.right + "px" })
175
163
  }, [
176
- l("div", nt, [
164
+ l("div", Je, [
177
165
  l("div", {
178
166
  class: M(i.showLayers ? "menu-icon active" : "menu-icon"),
179
167
  onClick: e[0] || (e[0] = (...s) => o.handleMenuToggle && o.handleMenuToggle(...s))
180
- }, ct, 2)
168
+ }, e[8] || (e[8] = [
169
+ l("span", { class: "iconfont" }, "", -1)
170
+ ]), 2)
181
171
  ])
182
172
  ], 4),
183
173
  l("div", {
184
174
  class: "menu-bar-box",
185
- style: F({ top: t.top + 160 + "px", right: i.right + "px" })
175
+ style: $({ top: t.top + 160 + "px", right: i.right + "px" })
186
176
  }, [
187
- l("div", ht, [
177
+ l("div", Xe, [
188
178
  l("div", {
189
179
  class: M(i.showMeasure ? "menu-icon active" : "menu-icon"),
190
180
  onClick: e[1] || (e[1] = (...s) => o.handleMeasureToggle && o.handleMeasureToggle(...s))
191
- }, pt, 2),
181
+ }, e[9] || (e[9] = [
182
+ l("span", { class: "iconfont" }, "", -1)
183
+ ]), 2),
192
184
  l("div", {
193
185
  class: M(i.showPoint ? "menu-icon active" : "menu-icon"),
194
186
  onClick: e[2] || (e[2] = (...s) => o.handlePointToggle && o.handlePointToggle(...s))
195
- }, ut, 2),
187
+ }, e[10] || (e[10] = [
188
+ l("span", { class: "iconfont" }, "", -1)
189
+ ]), 2),
196
190
  l("div", {
197
191
  class: M(i.showCoord ? "menu-icon active" : "menu-icon"),
198
192
  onClick: e[3] || (e[3] = (...s) => o.handleCoordToggle && o.handleCoordToggle(...s))
199
- }, ft, 2),
193
+ }, e[11] || (e[11] = [
194
+ l("span", { class: "iconfont" }, "", -1)
195
+ ]), 2),
200
196
  l("div", {
201
197
  class: M(i.show3d ? "menu-icon active" : "menu-icon"),
202
198
  onClick: e[4] || (e[4] = (...s) => o.handle3DToggle && o.handle3DToggle(...s))
203
- }, bt, 2)
199
+ }, e[12] || (e[12] = [
200
+ l("span", { class: "iconfont" }, "", -1)
201
+ ]), 2)
204
202
  ])
205
203
  ], 4),
206
204
  l("div", {
207
205
  class: "active-layers",
208
- style: F({ right: i.right + "px", bottom: "100px" })
206
+ style: $({ right: i.right + "px", bottom: "100px" })
209
207
  }, [
210
- (L(!0), x(Re, null, De(i.weatherLayers, (s) => (L(), x("div", {
208
+ (x(!0), _(xe, null, _e(i.weatherLayers, (s) => (x(), _("div", {
211
209
  key: s.key,
212
210
  class: M(o.computeLayerClass(s, i.activeWeatherLayers)),
213
211
  onClick: (c) => o.handleActiveWeatherLayerPick(s)
214
212
  }, [
215
- _t,
213
+ e[13] || (e[13] = l("div", { class: "checkbox" }, null, -1)),
216
214
  l("span", null, S(s.name), 1)
217
- ], 10, vt))), 128))
215
+ ], 10, qe))), 128))
218
216
  ], 4),
219
217
  l("div", {
220
218
  class: "available-layers flex-center",
221
- style: F({ top: t.top + "px", right: i.showLayers ? "0px" : "-240px" })
219
+ style: $({ top: t.top + "px", right: i.showLayers ? "0px" : "-240px" })
222
220
  }, [
223
221
  l("div", {
224
222
  class: "side-bar",
225
- style: F({ right: i.showLayers ? "0px" : "-240px" }),
223
+ style: $({ right: i.showLayers ? "0px" : "-240px" }),
226
224
  onClick: e[5] || (e[5] = (...s) => o.handleMenuToggle && o.handleMenuToggle(...s))
227
- }, Lt, 4),
225
+ }, e[14] || (e[14] = [
226
+ l("i", { class: "iconfont" }, "", -1)
227
+ ]), 4),
228
228
  l("div", {
229
229
  class: M(["list-box", i.showLayers ? "available-layers-show" : ""])
230
230
  }, [
231
231
  P(n, { style: { flex: "1" } }, {
232
- default: at(() => [
233
- l("div", xt, [
234
- l("div", Ct, [
232
+ default: Ue(() => [
233
+ l("div", Ye, [
234
+ l("div", Qe, [
235
235
  l("div", null, [
236
- Xe(" Weather Layers "),
237
- l("span", St, "(" + S(i.weatherLayers.length) + "/12)", 1)
236
+ e[15] || (e[15] = Ne(" Weather Layers ")),
237
+ l("span", Ke, "(" + S(i.weatherLayers.length) + "/12)", 1)
238
238
  ])
239
239
  ]),
240
- l("div", kt, [
241
- (L(!0), x(Re, null, De(i.layers.weather, (s) => (L(), x(Re, {
240
+ l("div", et, [
241
+ (x(!0), _(xe, null, _e(i.layers.weather, (s) => (x(), _(xe, {
242
242
  key: s.key
243
243
  }, [
244
- s.hide ? $("", !0) : (L(), x("div", {
244
+ s.hide ? B("", !0) : (x(), _("div", {
245
245
  key: 0,
246
246
  class: M(o.computeLayerClass(s, i.weatherLayers)),
247
247
  onClick: (c) => o.handleWeatherLayerPick(s)
248
248
  }, [
249
- Pt,
249
+ e[16] || (e[16] = l("div", { class: "checkbox" }, null, -1)),
250
250
  l("span", null, S(s.name), 1)
251
- ], 10, zt))
251
+ ], 10, tt))
252
252
  ], 64))), 128))
253
253
  ])
254
254
  ]),
255
- l("div", Tt, [
256
- Et,
257
- l("div", It, [
258
- (L(!0), x(Re, null, De(i.layers.other, (s) => (L(), x("div", {
255
+ l("div", at, [
256
+ e[18] || (e[18] = l("div", { class: "layers-title" }, "Other Layers", -1)),
257
+ l("div", it, [
258
+ (x(!0), _(xe, null, _e(i.layers.other, (s) => (x(), _("div", {
259
259
  key: s.key,
260
260
  class: M(o.computeLayerClass(s, i.otherLayers)),
261
261
  onClick: (c) => o.handleOtherLayerPick(s)
262
262
  }, [
263
- Dt,
263
+ e[17] || (e[17] = l("div", { class: "checkbox" }, null, -1)),
264
264
  l("span", null, S(s.name), 1)
265
- ], 10, Rt))), 128))
265
+ ], 10, rt))), 128))
266
266
  ])
267
267
  ]),
268
- l("div", At, [
269
- Mt,
270
- l("div", $t, [
268
+ l("div", ot, [
269
+ e[19] || (e[19] = l("span", { class: "layers-title" }, "Forecast Model", -1)),
270
+ l("div", st, [
271
271
  l("span", {
272
272
  class: M(i.source === "GFS" ? "text active" : "text"),
273
273
  onClick: e[6] || (e[6] = (s) => o.handleSourceToggle("GFS"))
@@ -285,8 +285,8 @@ function Bt(a, e, t, r, i, o) {
285
285
  ], 4)
286
286
  ]);
287
287
  }
288
- const Nt = /* @__PURE__ */ T(ot, [["render", Bt]]);
289
- const Wt = {
288
+ const lt = /* @__PURE__ */ T(He, [["render", nt]]);
289
+ const ct = {
290
290
  name: "IdmWindBarb",
291
291
  props: {
292
292
  map: {
@@ -445,63 +445,63 @@ const Wt = {
445
445
  this.map.getSource(this.source) && this.map.removeSource(this.source), this.windBarbLoaded = !1;
446
446
  }
447
447
  }
448
- }, Ot = { key: 0 }, jt = {
448
+ }, ht = { key: 0 }, dt = {
449
449
  key: 0,
450
450
  class: "iconfont active"
451
- }, Ft = {
451
+ }, pt = {
452
452
  key: 1,
453
453
  class: "iconfont"
454
- }, Ut = {
454
+ }, mt = {
455
455
  key: 0,
456
456
  class: "iconfont active"
457
- }, Vt = {
457
+ }, ut = {
458
458
  key: 1,
459
459
  class: "iconfont"
460
460
  };
461
- function Zt(a, e, t, r, i, o) {
461
+ function yt(a, e, t, r, i, o) {
462
462
  var n;
463
- return (n = t.wind) != null && n.active ? (L(), x("div", Ot, [
463
+ return (n = t.wind) != null && n.active ? (x(), _("div", ht, [
464
464
  l("div", {
465
465
  class: "flex-center tool-bars",
466
- style: F([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
466
+ style: $([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
467
467
  }, [
468
- t.mapProjection === "mercator" ? (L(), x("div", {
468
+ t.mapProjection === "mercator" ? (x(), _("div", {
469
469
  key: 0,
470
470
  class: "flex-start",
471
471
  onClick: e[0] || (e[0] = (...s) => o.handleParticle && o.handleParticle(...s))
472
472
  }, [
473
- t.showParticle ? (L(), x("i", jt, "")) : (L(), x("i", Ft, "")),
473
+ t.showParticle ? (x(), _("i", dt, "")) : (x(), _("i", pt, "")),
474
474
  l("span", {
475
475
  class: M(t.showParticle ? "active" : "")
476
476
  }, "Wind Particles", 2)
477
- ])) : $("", !0),
478
- t.showParticle ? (L(), x("div", {
477
+ ])) : B("", !0),
478
+ t.showParticle ? (x(), _("div", {
479
479
  key: 1,
480
480
  class: "flex-start",
481
481
  style: { "margin-left": "16px" },
482
482
  onClick: e[1] || (e[1] = (s) => i.showFeather = !i.showFeather)
483
483
  }, [
484
- i.showFeather ? (L(), x("i", Ut, "")) : (L(), x("i", Vt, "")),
484
+ i.showFeather ? (x(), _("i", mt, "")) : (x(), _("i", ut, "")),
485
485
  l("span", {
486
486
  class: M(i.showFeather ? "active" : "")
487
487
  }, "Wind Feather", 2)
488
- ])) : $("", !0)
488
+ ])) : B("", !0)
489
489
  ], 4)
490
- ])) : $("", !0);
490
+ ])) : B("", !0);
491
491
  }
492
- const Ht = /* @__PURE__ */ T(Wt, [["render", Zt], ["__scopeId", "data-v-b6fb74d9"]]);
493
- class Oe {
492
+ const ft = /* @__PURE__ */ T(ct, [["render", yt], ["__scopeId", "data-v-b6fb74d9"]]);
493
+ class Te {
494
494
  constructor(e) {
495
- R(this, "map");
496
- R(this, "mercator");
497
- R(this, "rampColorLayer");
498
- R(this, "rampColorSource");
499
- R(this, "particleLayer");
500
- R(this, "particleSource");
501
- R(this, "rampColorCanvas");
502
- R(this, "particleCanvas");
503
- R(this, "ratio");
504
- this.map = e, this.mercator = new rt(), this.rampColorLayer = "ramp-color-layer", this.rampColorSource = "ramp-color-source", this.particleLayer = "particle-layer", this.particleSource = "particle-source", this.rampColorCanvas = document.createElement("canvas"), this.particleCanvas = document.createElement("canvas"), this.ratio = window.devicePixelRatio;
495
+ I(this, "map");
496
+ I(this, "mercator");
497
+ I(this, "rampColorLayer");
498
+ I(this, "rampColorSource");
499
+ I(this, "particleLayer");
500
+ I(this, "particleSource");
501
+ I(this, "rampColorCanvas");
502
+ I(this, "particleCanvas");
503
+ I(this, "ratio");
504
+ this.map = e, this.mercator = new Ze(), this.rampColorLayer = "ramp-color-layer", this.rampColorSource = "ramp-color-source", this.particleLayer = "particle-layer", this.particleSource = "particle-source", this.rampColorCanvas = document.createElement("canvas"), this.particleCanvas = document.createElement("canvas"), this.ratio = window.devicePixelRatio;
505
505
  }
506
506
  /**
507
507
  * 转换为[-180, 180]的经度,且包含转换次数
@@ -573,7 +573,7 @@ class Oe {
573
573
  t !== r && this.map.setLayoutProperty(this.particleLayer, "visibility", r);
574
574
  }
575
575
  }
576
- class we {
576
+ class ye {
577
577
  /**
578
578
  * 创建着色器
579
579
  * @see https://webglfundamentals.org/webgl/lessons/zh_cn/webgl-shaders-and-glsl.html
@@ -714,8 +714,8 @@ class we {
714
714
  }
715
715
  const u = e.getBoundPixel(), y = e.map.getZoom() + 1, f = e.getWorldCopy(u, y);
716
716
  for (const m of f) {
717
- const v = (m[0] - u[0]) * e.ratio, b = (m[1] - u[3]) * e.ratio, w = m[2] * e.ratio, [k, _, D, A] = [v, w + v, b, w + b], B = new Float32Array([k, D, _, D, k, A, k, A, _, D, _, A]);
718
- t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, B, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
717
+ const v = (m[0] - u[0]) * e.ratio, b = (m[1] - u[3]) * e.ratio, w = m[2] * e.ratio, [k, L, D, A] = [v, w + v, b, w + b], N = new Float32Array([k, D, L, D, k, A, k, A, L, D, L, A]);
718
+ t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, N, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
719
719
  }
720
720
  } catch (d) {
721
721
  console.log(`render failed...${d}`);
@@ -763,10 +763,10 @@ class we {
763
763
  });
764
764
  }
765
765
  }
766
- class N {
766
+ class W {
767
767
  }
768
768
  // 顶点渲染
769
- R(N, "vertexSchema", `
769
+ I(W, "vertexSchema", `
770
770
  //canvas 坐标系上的坐标 (x, y)
771
771
  attribute vec2 a_position; //像素坐标
772
772
  attribute vec2 a_texCoord; //纹理坐标
@@ -781,7 +781,7 @@ R(N, "vertexSchema", `
781
781
  gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
782
782
  v_texCoord = a_texCoord;
783
783
  }`), // 类如风、流等u v双变量片元渲染
784
- R(N, "uvFragmentSchema", `
784
+ I(W, "uvFragmentSchema", `
785
785
  precision mediump float;
786
786
  uniform sampler2D u_image;
787
787
  uniform vec2 u_range_u_v;
@@ -800,7 +800,7 @@ R(N, "uvFragmentSchema", `
800
800
 
801
801
  gl_FragColor = color;
802
802
  }`), // 类如浪、气压等单变量片元渲染
803
- R(N, "fragmentSchema", `
803
+ I(W, "fragmentSchema", `
804
804
  precision mediump float;
805
805
  uniform sampler2D u_image; // 灰度
806
806
  uniform sampler2D u_color; // 色值映射
@@ -813,7 +813,7 @@ R(N, "fragmentSchema", `
813
813
  }`);
814
814
  class V {
815
815
  }
816
- R(V, "vertexSchema", `
816
+ I(V, "vertexSchema", `
817
817
  precision mediump float;
818
818
 
819
819
  attribute float a_index; // 索引
@@ -837,7 +837,7 @@ R(V, "vertexSchema", `
837
837
  gl_PointSize = 1.0;
838
838
  // gl_PointSize = u_point;
839
839
  gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
840
- }`), R(V, "fragmentSchema", `
840
+ }`), I(V, "fragmentSchema", `
841
841
  precision mediump float;
842
842
 
843
843
  uniform sampler2D u_factor;
@@ -859,7 +859,7 @@ R(V, "vertexSchema", `
859
859
 
860
860
  float f = 1.0 - uv.b;
861
861
  gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
862
- }`), R(V, "quadVertSchema", `
862
+ }`), I(V, "quadVertSchema", `
863
863
  precision mediump float;
864
864
 
865
865
  attribute vec2 a_pos;
@@ -869,7 +869,7 @@ R(V, "vertexSchema", `
869
869
  void main() {
870
870
  v_tex_pos = a_pos;
871
871
  gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
872
- }`), R(V, "screenFragmentSchema", `
872
+ }`), I(V, "screenFragmentSchema", `
873
873
  precision mediump float;
874
874
 
875
875
  uniform sampler2D u_screen;
@@ -881,7 +881,7 @@ R(V, "vertexSchema", `
881
881
  vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
882
882
  // a hack to guarantee opacity fade out even with a value close to 1.0
883
883
  gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
884
- }`), R(V, "updateFragmentSchema", `
884
+ }`), I(V, "updateFragmentSchema", `
885
885
  precision mediump float;
886
886
 
887
887
  uniform sampler2D u_particles;
@@ -960,14 +960,14 @@ R(V, "vertexSchema", `
960
960
  fract(pos * 255.0),
961
961
  floor(pos * 255.0) / 255.0);
962
962
  }`);
963
- class Gt {
963
+ class gt {
964
964
  constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
965
- R(this, "token");
966
- R(this, "mapboxCustomer");
967
- R(this, "i4");
968
- R(this, "hi");
969
- R(this, "td");
970
- R(this, "windy");
965
+ I(this, "token");
966
+ I(this, "mapboxCustomer");
967
+ I(this, "i4");
968
+ I(this, "hi");
969
+ I(this, "td");
970
+ I(this, "windy");
971
971
  this.token = e, this.mapboxCustomer = {
972
972
  source: this.initialOnlineStyle().sources.composite,
973
973
  layers: {
@@ -2564,14 +2564,14 @@ class Gt {
2564
2564
  };
2565
2565
  }
2566
2566
  }
2567
- const Jt = {
2567
+ const bt = {
2568
2568
  name: "IdmWindParticle",
2569
2569
  props: {
2570
2570
  factor: {
2571
2571
  type: Object
2572
2572
  },
2573
2573
  viewport: {
2574
- type: Oe
2574
+ type: Te
2575
2575
  },
2576
2576
  bottom: {
2577
2577
  type: String,
@@ -2588,7 +2588,7 @@ const Jt = {
2588
2588
  texture: void 0,
2589
2589
  rampColor: void 0,
2590
2590
  aPositionBuffer: void 0,
2591
- webgl: new we(),
2591
+ webgl: new ye(),
2592
2592
  etime: void 0,
2593
2593
  wrapper: void 0,
2594
2594
  animation: void 0,
@@ -2678,7 +2678,7 @@ const Jt = {
2678
2678
  [1, "rgb(91, 136, 161)"]
2679
2679
  ];
2680
2680
  this.rampColor = this.webgl.setup(this.context, a);
2681
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.uvFragmentSchema);
2681
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.uvFragmentSchema);
2682
2682
  this.program = e, this.aPositionBuffer = t;
2683
2683
  }
2684
2684
  this.handleParticleSetup();
@@ -2726,27 +2726,27 @@ const Jt = {
2726
2726
  });
2727
2727
  }
2728
2728
  }
2729
- }, le = (a) => (H("data-v-41a686d0"), a = a(), G(), a), Xt = { key: 0 }, qt = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "kts", -1)), Yt = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "0", -1)), Qt = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "5", -1)), Kt = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "10", -1)), ea = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "20", -1)), ta = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "30", -1)), aa = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "40", -1)), ia = /* @__PURE__ */ le(() => /* @__PURE__ */ l("span", null, "60", -1)), ra = [
2730
- qt,
2731
- Yt,
2732
- Qt,
2733
- Kt,
2734
- ea,
2735
- ta,
2736
- aa,
2737
- ia
2738
- ];
2739
- function oa(a, e, t, r, i, o) {
2729
+ }, vt = { key: 0 };
2730
+ function Lt(a, e, t, r, i, o) {
2740
2731
  var n;
2741
- return (n = t.factor) != null && n.active ? (L(), x("div", Xt, [
2732
+ return (n = t.factor) != null && n.active ? (x(), _("div", vt, [
2742
2733
  l("div", {
2743
2734
  class: "legend-bars flex-center",
2744
- style: F([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
2745
- }, ra, 4)
2746
- ])) : $("", !0);
2735
+ style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
2736
+ }, e[0] || (e[0] = [
2737
+ l("span", null, "kts", -1),
2738
+ l("span", null, "0", -1),
2739
+ l("span", null, "5", -1),
2740
+ l("span", null, "10", -1),
2741
+ l("span", null, "20", -1),
2742
+ l("span", null, "30", -1),
2743
+ l("span", null, "40", -1),
2744
+ l("span", null, "60", -1)
2745
+ ]), 4)
2746
+ ])) : B("", !0);
2747
2747
  }
2748
- const sa = /* @__PURE__ */ T(Jt, [["render", oa], ["__scopeId", "data-v-41a686d0"]]);
2749
- const na = {
2748
+ const wt = /* @__PURE__ */ T(bt, [["render", Lt], ["__scopeId", "data-v-41a686d0"]]);
2749
+ const xt = {
2750
2750
  name: "IdmCurrent",
2751
2751
  props: {
2752
2752
  map: {
@@ -2906,59 +2906,59 @@ const na = {
2906
2906
  this.map.getLayer(this.speedLayer) && this.map.removeLayer(this.speedLayer), this.map.getLayer(this.speedLabelLayer) && this.map.removeLayer(this.speedLabelLayer), this.map.getLayer(this.directionLayer) && this.map.removeLayer(this.directionLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
2907
2907
  }
2908
2908
  }
2909
- }, la = { key: 0 }, ca = {
2909
+ }, _t = { key: 0 }, Ct = {
2910
2910
  key: 0,
2911
2911
  class: "iconfont active"
2912
- }, ha = {
2912
+ }, St = {
2913
2913
  key: 1,
2914
2914
  class: "iconfont"
2915
- }, da = {
2915
+ }, kt = {
2916
2916
  key: 0,
2917
2917
  class: "iconfont active"
2918
- }, pa = {
2918
+ }, zt = {
2919
2919
  key: 1,
2920
2920
  class: "iconfont"
2921
2921
  };
2922
- function ma(a, e, t, r, i, o) {
2922
+ function Pt(a, e, t, r, i, o) {
2923
2923
  var n;
2924
- return (n = t.current) != null && n.active ? (L(), x("div", la, [
2924
+ return (n = t.current) != null && n.active ? (x(), _("div", _t, [
2925
2925
  l("div", {
2926
2926
  class: "flex-center tool-bars",
2927
- style: F([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
2927
+ style: $([{ position: "absolute" }, { right: i.right + "px", bottom: i.bottom + "px" }])
2928
2928
  }, [
2929
- t.mapProjection === "mercator" ? (L(), x("div", {
2929
+ t.mapProjection === "mercator" ? (x(), _("div", {
2930
2930
  key: 0,
2931
2931
  class: "flex-start",
2932
2932
  onClick: e[0] || (e[0] = (...s) => o.handleParticle && o.handleParticle(...s))
2933
2933
  }, [
2934
- t.showParticle ? (L(), x("i", ca, "")) : (L(), x("i", ha, "")),
2934
+ t.showParticle ? (x(), _("i", Ct, "")) : (x(), _("i", St, "")),
2935
2935
  l("span", {
2936
2936
  class: M(t.showParticle ? "active" : "")
2937
2937
  }, "Current Particles", 2)
2938
- ])) : $("", !0),
2939
- t.showParticle ? (L(), x("div", {
2938
+ ])) : B("", !0),
2939
+ t.showParticle ? (x(), _("div", {
2940
2940
  key: 1,
2941
2941
  class: "flex-start",
2942
2942
  style: { "margin-left": "16px" },
2943
2943
  onClick: e[1] || (e[1] = (s) => i.showJson = !i.showJson)
2944
2944
  }, [
2945
- i.showJson ? (L(), x("i", da, "")) : (L(), x("i", pa, "")),
2945
+ i.showJson ? (x(), _("i", kt, "")) : (x(), _("i", zt, "")),
2946
2946
  l("span", {
2947
2947
  class: M(i.showJson ? "active" : "")
2948
2948
  }, "Current", 2)
2949
- ])) : $("", !0)
2949
+ ])) : B("", !0)
2950
2950
  ], 4)
2951
- ])) : $("", !0);
2951
+ ])) : B("", !0);
2952
2952
  }
2953
- const ua = /* @__PURE__ */ T(na, [["render", ma], ["__scopeId", "data-v-ae630f43"]]);
2954
- const ya = {
2953
+ const Tt = /* @__PURE__ */ T(xt, [["render", Pt], ["__scopeId", "data-v-ae630f43"]]);
2954
+ const Et = {
2955
2955
  name: "IdmCurrentParticle",
2956
2956
  props: {
2957
2957
  factor: {
2958
2958
  type: Object
2959
2959
  },
2960
2960
  viewport: {
2961
- type: Oe
2961
+ type: Te
2962
2962
  },
2963
2963
  bottom: {
2964
2964
  type: String,
@@ -2975,7 +2975,7 @@ const ya = {
2975
2975
  texture: void 0,
2976
2976
  rampColor: void 0,
2977
2977
  aPositionBuffer: void 0,
2978
- webgl: new we(),
2978
+ webgl: new ye(),
2979
2979
  etime: void 0,
2980
2980
  wrapper: void 0,
2981
2981
  animation: void 0,
@@ -3056,7 +3056,7 @@ const ya = {
3056
3056
  [1, "rgb(195,194,194)"]
3057
3057
  ];
3058
3058
  this.rampColor = this.webgl.setup(this.context, a);
3059
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.uvFragmentSchema);
3059
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.uvFragmentSchema);
3060
3060
  this.program = e, this.aPositionBuffer = t;
3061
3061
  }
3062
3062
  this.handleParticleSetup();
@@ -3108,25 +3108,25 @@ const ya = {
3108
3108
  });
3109
3109
  }
3110
3110
  }
3111
- }, Le = (a) => (H("data-v-9115889b"), a = a(), G(), a), fa = { key: 0 }, ga = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "kts", -1)), ba = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0", -1)), va = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0.4", -1)), _a = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "0.8", -1)), wa = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "1.6", -1)), La = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "2", -1)), xa = /* @__PURE__ */ Le(() => /* @__PURE__ */ l("span", null, "3.2", -1)), Ca = [
3112
- ga,
3113
- ba,
3114
- va,
3115
- _a,
3116
- wa,
3117
- La,
3118
- xa
3119
- ];
3120
- function Sa(a, e, t, r, i, o) {
3111
+ }, Rt = { key: 0 };
3112
+ function It(a, e, t, r, i, o) {
3121
3113
  var n;
3122
- return (n = t.factor) != null && n.active ? (L(), x("div", fa, [
3114
+ return (n = t.factor) != null && n.active ? (x(), _("div", Rt, [
3123
3115
  l("div", {
3124
3116
  class: "legend-bars flex-center",
3125
- style: F([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
3126
- }, Ca, 4)
3127
- ])) : $("", !0);
3117
+ style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
3118
+ }, e[0] || (e[0] = [
3119
+ l("span", null, "kts", -1),
3120
+ l("span", null, "0", -1),
3121
+ l("span", null, "0.4", -1),
3122
+ l("span", null, "0.8", -1),
3123
+ l("span", null, "1.6", -1),
3124
+ l("span", null, "2", -1),
3125
+ l("span", null, "3.2", -1)
3126
+ ]), 4)
3127
+ ])) : B("", !0);
3128
3128
  }
3129
- const ka = /* @__PURE__ */ T(ya, [["render", Sa], ["__scopeId", "data-v-9115889b"]]), za = {
3129
+ const Dt = /* @__PURE__ */ T(Et, [["render", It], ["__scopeId", "data-v-9115889b"]]), At = {
3130
3130
  name: "IdmSigWave",
3131
3131
  props: {
3132
3132
  map: {
@@ -3237,10 +3237,10 @@ const ka = /* @__PURE__ */ T(ya, [["render", Sa], ["__scopeId", "data-v-9115889b
3237
3237
  }
3238
3238
  }
3239
3239
  };
3240
- function Pa(a, e, t, r, i, o) {
3241
- return L(), x("div");
3240
+ function Mt(a, e, t, r, i, o) {
3241
+ return x(), _("div");
3242
3242
  }
3243
- const Ta = /* @__PURE__ */ T(za, [["render", Pa]]), Ea = {
3243
+ const Bt = /* @__PURE__ */ T(At, [["render", Mt]]), Nt = {
3244
3244
  name: "IdmSwell",
3245
3245
  props: {
3246
3246
  map: {
@@ -3378,10 +3378,10 @@ const Ta = /* @__PURE__ */ T(za, [["render", Pa]]), Ea = {
3378
3378
  }
3379
3379
  }
3380
3380
  };
3381
- function Ia(a, e, t, r, i, o) {
3382
- return L(), x("div");
3381
+ function Wt(a, e, t, r, i, o) {
3382
+ return x(), _("div");
3383
3383
  }
3384
- const Ra = /* @__PURE__ */ T(Ea, [["render", Ia]]), Da = {
3384
+ const Ot = /* @__PURE__ */ T(Nt, [["render", Wt]]), jt = {
3385
3385
  name: "IdmPrmsl",
3386
3386
  props: {
3387
3387
  map: {
@@ -3506,10 +3506,10 @@ const Ra = /* @__PURE__ */ T(Ea, [["render", Ia]]), Da = {
3506
3506
  }
3507
3507
  }
3508
3508
  };
3509
- function Aa(a, e, t, r, i, o) {
3510
- return L(), x("div");
3509
+ function Ft(a, e, t, r, i, o) {
3510
+ return x(), _("div");
3511
3511
  }
3512
- const Ma = /* @__PURE__ */ T(Da, [["render", Aa]]), $a = {
3512
+ const $t = /* @__PURE__ */ T(jt, [["render", Ft]]), Ut = {
3513
3513
  name: "IdmIceberg",
3514
3514
  props: {
3515
3515
  map: {
@@ -3566,11 +3566,11 @@ const Ma = /* @__PURE__ */ T(Da, [["render", Aa]]), $a = {
3566
3566
  }
3567
3567
  }
3568
3568
  };
3569
- function Ba(a, e, t, r, i, o) {
3570
- return L(), x("div");
3569
+ function Vt(a, e, t, r, i, o) {
3570
+ return x(), _("div");
3571
3571
  }
3572
- const Na = /* @__PURE__ */ T($a, [["render", Ba]]);
3573
- const Wa = {
3572
+ const Zt = /* @__PURE__ */ T(Ut, [["render", Vt]]);
3573
+ const Ht = {
3574
3574
  name: "IdmTropicals",
3575
3575
  props: {
3576
3576
  map: {
@@ -3590,7 +3590,7 @@ const Wa = {
3590
3590
  emits: ["tropical", "tropicalProbability"],
3591
3591
  data() {
3592
3592
  return {
3593
- helper: Ae,
3593
+ helper: Ce,
3594
3594
  source: "tropicals-source",
3595
3595
  clusterSource: "tropicals-cluster-source",
3596
3596
  historyLayer: "tropicals-history-layer",
@@ -3940,7 +3940,7 @@ const Wa = {
3940
3940
  }), y = (/* @__PURE__ */ new Date()).valueOf() - (g + u), console.log("[tropical] add elapsed: ", y, ", total: ", u += y));
3941
3941
  }
3942
3942
  this.handleDrawCircle();
3943
- const d = qe.interpolate(this.tropicals, 1);
3943
+ const d = We.interpolate(this.tropicals, 1);
3944
3944
  this.interpolateData = JSON.parse(JSON.stringify(d));
3945
3945
  const p = this.interpolateData.filter((g) => g.properties.name === "kristy" && g.properties.model === "ecmwf");
3946
3946
  console.log(p), this.handleDateChange();
@@ -3951,14 +3951,14 @@ const Wa = {
3951
3951
  this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (a = this.interpolateMarkers) == null || a.forEach((e) => e == null ? void 0 : e.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource));
3952
3952
  },
3953
3953
  handleDateChange() {
3954
- var a, e, t, r, i, o, n, s, c, h, d, p, g, u, y, f, m, v, b, w, k, _, D, A, B, W, O, J, de, pe, me, ue, ye, fe, ge, ae;
3955
- if ((a = this.interpolateMarkers) == null || a.forEach((X) => X == null ? void 0 : X.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
3956
- const X = Z(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), Y = this.interpolateData.filter((E) => E.properties.date === X.format() && !E.properties.disabled), be = this.handleComputePolygons(Y), Q = C.featureCollection([...Y]);
3957
- be.forEach((E) => {
3958
- Q.features.push(E);
3959
- }), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(Q) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
3954
+ var a, e, t, r, i, o, n, s, c, h, d, p, g, u, y, f, m, v, b, w, k, L, D, A, N, O, j, H, oe, se, ne, le, ce, he, de, K;
3955
+ if ((a = this.interpolateMarkers) == null || a.forEach((G) => G == null ? void 0 : G.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
3956
+ const G = Z(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), J = this.interpolateData.filter((E) => E.properties.date === G.format() && !E.properties.disabled), pe = this.handleComputePolygons(J), X = C.featureCollection([...J]);
3957
+ pe.forEach((E) => {
3958
+ X.features.push(E);
3959
+ }), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(X) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
3960
3960
  type: "geojson",
3961
- data: Q
3961
+ data: X
3962
3962
  }), (o = this.map) == null || o.addLayer({
3963
3963
  id: this.interpolateLineLayer,
3964
3964
  type: "line",
@@ -3970,11 +3970,11 @@ const Wa = {
3970
3970
  "line-width": 1
3971
3971
  }
3972
3972
  })), this.interpolateMarkers = [];
3973
- for (const E of Y)
3973
+ for (const E of J)
3974
3974
  if (!E.properties.disabled) {
3975
3975
  let U = "#f44336";
3976
- ((s = (n = E.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 || !((h = (c = E.properties) == null ? void 0 : c.wind) != null && h.spd) ? U = "#03f869" : ((p = (d = E.properties) == null ? void 0 : d.wind) == null ? void 0 : p.spd) >= 17.2 && ((u = (g = E.properties) == null ? void 0 : g.wind) == null ? void 0 : u.spd) < 24.5 ? U = "#f2f202" : ((f = (y = E.properties) == null ? void 0 : y.wind) == null ? void 0 : f.spd) >= 24.5 && ((v = (m = E.properties) == null ? void 0 : m.wind) == null ? void 0 : v.spd) < 32.7 ? U = "#ff9100" : ((w = (b = E.properties) == null ? void 0 : b.wind) == null ? void 0 : w.spd) >= 32.7 && ((_ = (k = E.properties) == null ? void 0 : k.wind) == null ? void 0 : _.spd) < 41.5 ? U = "#f44336" : ((A = (D = E.properties) == null ? void 0 : D.wind) == null ? void 0 : A.spd) >= 41.5 && ((W = (B = E.properties) == null ? void 0 : B.wind) == null ? void 0 : W.spd) < 51 ? U = "#f903d0" : ((J = (O = E.properties) == null ? void 0 : O.wind) == null ? void 0 : J.spd) >= 51 ? U = "#8702f9" : U = "#f44336";
3977
- const ve = `<svg t="1719918955501"
3976
+ ((s = (n = E.properties) == null ? void 0 : n.wind) == null ? void 0 : s.spd) < 17.2 || !((h = (c = E.properties) == null ? void 0 : c.wind) != null && h.spd) ? U = "#03f869" : ((p = (d = E.properties) == null ? void 0 : d.wind) == null ? void 0 : p.spd) >= 17.2 && ((u = (g = E.properties) == null ? void 0 : g.wind) == null ? void 0 : u.spd) < 24.5 ? U = "#f2f202" : ((f = (y = E.properties) == null ? void 0 : y.wind) == null ? void 0 : f.spd) >= 24.5 && ((v = (m = E.properties) == null ? void 0 : m.wind) == null ? void 0 : v.spd) < 32.7 ? U = "#ff9100" : ((w = (b = E.properties) == null ? void 0 : b.wind) == null ? void 0 : w.spd) >= 32.7 && ((L = (k = E.properties) == null ? void 0 : k.wind) == null ? void 0 : L.spd) < 41.5 ? U = "#f44336" : ((A = (D = E.properties) == null ? void 0 : D.wind) == null ? void 0 : A.spd) >= 41.5 && ((O = (N = E.properties) == null ? void 0 : N.wind) == null ? void 0 : O.spd) < 51 ? U = "#f903d0" : ((H = (j = E.properties) == null ? void 0 : j.wind) == null ? void 0 : H.spd) >= 51 ? U = "#8702f9" : U = "#f44336";
3977
+ const me = `<svg t="1719918955501"
3978
3978
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
3979
3979
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
3980
3980
  <path
@@ -3988,23 +3988,23 @@ const Wa = {
3988
3988
  <path
3989
3989
  d="M420.66666667 959.17a16.08 16.08 0 0 1-15.91-13.49A15.89 15.89 0 0 1 415.50666667 928c1.49-0.55 38.88-14.76 72.79-65.52A354.55 354.55 0 0 1 162.66666667 509.17a450.14 450.14 0 0 1 450.5-450.5 16.07 16.07 0 0 1 15.91 13.48 15.88 15.88 0 0 1-10.75 17.66c-1.58 0.58-39.13 14.9-73.07 65.95A354.22 354.22 0 0 1 871.66666667 509.17a16 16 0 0 1-0.52 4.05A450.14 450.14 0 0 1 420.66666667 959.17zM554.80666667 94.72C351.57666667 123.2 194.66666667 298.21 194.66666667 509.17c0 177.08 144.06 321.74 321.13 322.48a16 16 0 0 1 14.07 23.49c-16.11 30.42-34.27 52.37-50.85 68C682.25666667 894.63 839.16666667 719.63 839.16666667 508.67a15.94 15.94 0 0 1 0.47-3.86C837.30666667 329.33 693.82666667 187 517.80666667 186.67A16 16 0 0 1 503.66666667 163.21c16.21-30.69 34.47-52.79 51.14-68.49z"
3990
3990
  fill="#ffffff" p-id="18386"></path>
3991
- </svg>`, K = document.createElement("div");
3992
- K.className = "hurricane-hourly-marker", K.innerHTML = `<div class="${E.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${ve}</div>`;
3993
- const _e = new ne.Marker(K).setLngLat(E.geometry.coordinates).addTo(this.map);
3994
- if (this.interpolateMarkers.push(_e), (de = E.properties) != null && de.showCircle) {
3995
- const ie = { radius: 100, coordinates: E.geometry.coordinates }, re = { radius: 200, coordinates: E.geometry.coordinates }, oe = { radius: 500, coordinates: E.geometry.coordinates };
3996
- (pe = this.circleSourceData) == null || pe.features.push(
3997
- C.circle(ie.coordinates, ie.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
3998
- ), (me = this.circleSourceData) == null || me.features.push(
3999
- C.circle(re.coordinates, re.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4000
- ), (ue = this.circleSourceData) == null || ue.features.push(
4001
- C.circle(oe.coordinates, oe.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
3991
+ </svg>`, q = document.createElement("div");
3992
+ q.className = "hurricane-hourly-marker", q.innerHTML = `<div class="${E.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${me}</div>`;
3993
+ const ue = new re.Marker(q).setLngLat(E.geometry.coordinates).addTo(this.map);
3994
+ if (this.interpolateMarkers.push(ue), (oe = E.properties) != null && oe.showCircle) {
3995
+ const ee = { radius: 100, coordinates: E.geometry.coordinates }, te = { radius: 200, coordinates: E.geometry.coordinates }, ae = { radius: 500, coordinates: E.geometry.coordinates };
3996
+ (se = this.circleSourceData) == null || se.features.push(
3997
+ C.circle(ee.coordinates, ee.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
3998
+ ), (ne = this.circleSourceData) == null || ne.features.push(
3999
+ C.circle(te.coordinates, te.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4000
+ ), (le = this.circleSourceData) == null || le.features.push(
4001
+ C.circle(ae.coordinates, ae.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4002
4002
  );
4003
4003
  }
4004
- (fe = (ye = this.map) == null ? void 0 : ye.getSource(this.circleSource)) == null || fe.setData(this.circleSourceData);
4004
+ (he = (ce = this.map) == null ? void 0 : ce.getSource(this.circleSource)) == null || he.setData(this.circleSourceData);
4005
4005
  }
4006
4006
  } else
4007
- (ge = this.map) != null && ge.getSource(this.interpolateSource) && ((ae = this.map) == null || ae.getSource(this.interpolateSource).setData(this.empty));
4007
+ (de = this.map) != null && de.getSource(this.interpolateSource) && ((K = this.map) == null || K.getSource(this.interpolateSource).setData(this.empty));
4008
4008
  },
4009
4009
  handleClick(a) {
4010
4010
  var o, n, s, c, h, d, p, g;
@@ -4031,7 +4031,7 @@ const Wa = {
4031
4031
  showCircle: (g = (p = t[0]) == null ? void 0 : p.properties) == null ? void 0 : g.showCircle
4032
4032
  }, this.showTropicals = !0;
4033
4033
  const i = document.getElementById("active-tropical");
4034
- this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new ne.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
4034
+ this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new re.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
4035
4035
  },
4036
4036
  handleForecastToggle(a) {
4037
4037
  var r, i, o, n, s, c;
@@ -4116,86 +4116,86 @@ const Wa = {
4116
4116
  return C.lineToPolygon(i, { properties: t });
4117
4117
  }
4118
4118
  }
4119
- }, je = (a) => (H("data-v-b521de47"), a = a(), G(), a), Oa = {
4119
+ }, Gt = {
4120
4120
  id: "active-tropical",
4121
4121
  class: "active-tropical"
4122
- }, ja = { class: "header-box" }, Fa = { class: "main" }, Ua = { key: 0 }, Va = { class: "sub" }, Za = {
4122
+ }, Jt = { class: "header-box" }, Xt = { class: "main" }, qt = { key: 0 }, Yt = { class: "sub" }, Qt = {
4123
4123
  id: "meteoBox",
4124
4124
  class: "main-box"
4125
- }, Ha = { class: "content" }, Ga = { class: "row" }, Ja = {
4125
+ }, Kt = { class: "content" }, ea = { class: "row" }, ta = {
4126
4126
  class: "col col-left",
4127
4127
  style: { "justify-content": "flex-start" }
4128
- }, Xa = /* @__PURE__ */ je(() => /* @__PURE__ */ l("label", null, "Wind speed : ", -1)), qa = {
4128
+ }, aa = {
4129
4129
  class: "col col-right",
4130
4130
  style: { "justify-content": "flex-start" }
4131
- }, Ya = /* @__PURE__ */ je(() => /* @__PURE__ */ l("label", null, "Pressure : ", -1)), Qa = { class: "row" }, Ka = {
4131
+ }, ia = { class: "row" }, ra = {
4132
4132
  class: "col col-24",
4133
4133
  style: { "justify-content": "flex-start" }
4134
- }, ei = /* @__PURE__ */ je(() => /* @__PURE__ */ l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)), ti = { class: "forecast-models" }, ai = ["onClick"], ii = /* @__PURE__ */ it('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-b521de47></div><div class="row" style="padding:2px 10px;" data-v-b521de47><div class="legend" data-v-b521de47><div class="icon td" data-v-b521de47></div><div class="label" data-v-b521de47>TD</div></div><div class="legend" data-v-b521de47><div class="icon ts" data-v-b521de47></div><div class="label" data-v-b521de47>TS</div></div><div class="legend" data-v-b521de47><div class="icon sts" data-v-b521de47></div><div class="label" data-v-b521de47>STS</div></div><div class="legend" data-v-b521de47><div class="icon ty" data-v-b521de47></div><div class="label" data-v-b521de47>TY</div></div><div class="legend" data-v-b521de47><div class="icon sty" data-v-b521de47></div><div class="label" data-v-b521de47>STY</div></div><div class="legend" data-v-b521de47><div class="icon supper-ty" data-v-b521de47></div><div class="label" data-v-b521de47>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-b521de47><div class="legend" data-v-b521de47><div class="icon history" data-v-b521de47></div><div class="label" data-v-b521de47>History</div></div><div class="legend" data-v-b521de47><div class="icon r7" data-v-b521de47></div><div class="label" data-v-b521de47>35kts Radii</div></div><div class="legend" data-v-b521de47><div class="icon r10" data-v-b521de47></div><div class="label" data-v-b521de47>50kts Radii</div></div></div>', 3), ri = { class: "more" };
4135
- function oi(a, e, t, r, i, o) {
4134
+ }, oa = { class: "forecast-models" }, sa = ["onClick"], na = { class: "more" };
4135
+ function la(a, e, t, r, i, o) {
4136
4136
  var n, s, c, h, d, p, g, u, y, f, m, v, b, w, k;
4137
- return Me((L(), x("div", Oa, [
4138
- l("div", ja, [
4137
+ return Se((x(), _("div", Gt, [
4138
+ l("div", Jt, [
4139
4139
  l("div", {
4140
4140
  class: "iconfont close-btn",
4141
- onClick: e[0] || (e[0] = (_) => i.showTropicals = !1)
4141
+ onClick: e[0] || (e[0] = (L) => i.showTropicals = !1)
4142
4142
  }, ""),
4143
- l("div", Fa, [
4144
- (s = (n = i.activeTropicals) == null ? void 0 : n.history) != null && s.level ? (L(), x("span", Ua, S((h = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : h.level) + " , ", 1)) : $("", !0),
4145
- Xe(S((d = i.activeTropicals) == null ? void 0 : d.name), 1)
4143
+ l("div", Xt, [
4144
+ (s = (n = i.activeTropicals) == null ? void 0 : n.history) != null && s.level ? (x(), _("span", qt, S((h = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : h.level) + " , ", 1)) : B("", !0),
4145
+ Ne(S((d = i.activeTropicals) == null ? void 0 : d.name), 1)
4146
4146
  ]),
4147
- l("div", Va, " Last update: " + S(o.computeTime(((g = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : g.updated) || ((f = (y = (u = i.activeTropicals) == null ? void 0 : u.forecasts) == null ? void 0 : y.filter((_) => !_.disabled)[0]) == null ? void 0 : f.date))), 1)
4147
+ l("div", Yt, " Last update: " + S(o.computeTime(((g = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : g.updated) || ((f = (y = (u = i.activeTropicals) == null ? void 0 : u.forecasts) == null ? void 0 : y.filter((L) => !L.disabled)[0]) == null ? void 0 : f.date))), 1)
4148
4148
  ]),
4149
- l("div", Za, [
4150
- l("div", Ha, [
4151
- l("div", Ga, [
4152
- l("div", Ja, [
4153
- Xa,
4149
+ l("div", Qt, [
4150
+ l("div", Kt, [
4151
+ l("div", ea, [
4152
+ l("div", ta, [
4153
+ e[2] || (e[2] = l("label", null, "Wind speed : ", -1)),
4154
4154
  l("span", null, S(((v = (m = i.activeTropicals) == null ? void 0 : m.history) == null ? void 0 : v.kts) || "-") + "[kts]", 1)
4155
4155
  ]),
4156
- l("div", qa, [
4157
- Ya,
4156
+ l("div", aa, [
4157
+ e[3] || (e[3] = l("label", null, "Pressure : ", -1)),
4158
4158
  l("span", null, S(((w = (b = i.activeTropicals) == null ? void 0 : b.history) == null ? void 0 : w.pressure) || "-") + "[hPa]", 1)
4159
4159
  ])
4160
4160
  ]),
4161
- l("div", Qa, [
4162
- l("div", Ka, [
4163
- ei,
4164
- l("div", ti, [
4165
- (L(!0), x(Re, null, De((k = i.activeTropicals) == null ? void 0 : k.forecasts, (_, D) => {
4166
- var A, B, W, O;
4167
- return L(), x("div", {
4161
+ l("div", ia, [
4162
+ l("div", ra, [
4163
+ e[4] || (e[4] = l("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
4164
+ l("div", oa, [
4165
+ (x(!0), _(xe, null, _e((k = i.activeTropicals) == null ? void 0 : k.forecasts, (L, D) => {
4166
+ var A, N, O, j;
4167
+ return x(), _("div", {
4168
4168
  key: D,
4169
4169
  class: M([
4170
4170
  "model",
4171
- _.disabled ? "" : "active",
4172
- D > 0 && D < ((B = (A = i.activeTropicals) == null ? void 0 : A.forecasts) == null ? void 0 : B.length) - 1 && ((O = (W = i.activeTropicals) == null ? void 0 : W.forecasts) == null ? void 0 : O.length) > 2 ? "center-child" : ""
4171
+ L.disabled ? "" : "active",
4172
+ D > 0 && D < ((N = (A = i.activeTropicals) == null ? void 0 : A.forecasts) == null ? void 0 : N.length) - 1 && ((j = (O = i.activeTropicals) == null ? void 0 : O.forecasts) == null ? void 0 : j.length) > 2 ? "center-child" : ""
4173
4173
  ]),
4174
- onClick: (J) => o.handleForecastToggle(_)
4174
+ onClick: (H) => o.handleForecastToggle(L)
4175
4175
  }, [
4176
4176
  l("span", {
4177
- class: M(_.model)
4178
- }, S(_.model), 3)
4179
- ], 10, ai);
4177
+ class: M(L.model)
4178
+ }, S(L.model), 3)
4179
+ ], 10, sa);
4180
4180
  }), 128))
4181
4181
  ])
4182
4182
  ])
4183
4183
  ]),
4184
- ii
4184
+ e[5] || (e[5] = Ve('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-b521de47></div><div class="row" style="padding:2px 10px;" data-v-b521de47><div class="legend" data-v-b521de47><div class="icon td" data-v-b521de47></div><div class="label" data-v-b521de47>TD</div></div><div class="legend" data-v-b521de47><div class="icon ts" data-v-b521de47></div><div class="label" data-v-b521de47>TS</div></div><div class="legend" data-v-b521de47><div class="icon sts" data-v-b521de47></div><div class="label" data-v-b521de47>STS</div></div><div class="legend" data-v-b521de47><div class="icon ty" data-v-b521de47></div><div class="label" data-v-b521de47>TY</div></div><div class="legend" data-v-b521de47><div class="icon sty" data-v-b521de47></div><div class="label" data-v-b521de47>STY</div></div><div class="legend" data-v-b521de47><div class="icon supper-ty" data-v-b521de47></div><div class="label" data-v-b521de47>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-b521de47><div class="legend" data-v-b521de47><div class="icon history" data-v-b521de47></div><div class="label" data-v-b521de47>History</div></div><div class="legend" data-v-b521de47><div class="icon r7" data-v-b521de47></div><div class="label" data-v-b521de47>35kts Radii</div></div><div class="legend" data-v-b521de47><div class="icon r10" data-v-b521de47></div><div class="label" data-v-b521de47>50kts Radii</div></div></div>', 3))
4185
4185
  ]),
4186
- l("div", ri, [
4186
+ l("div", na, [
4187
4187
  l("div", {
4188
4188
  class: "button",
4189
- onClick: e[1] || (e[1] = (_) => o.handleStrikeProbability(i.activeTropicals))
4189
+ onClick: e[1] || (e[1] = (L) => o.handleStrikeProbability(i.activeTropicals))
4190
4190
  }, "Strike Probability >>")
4191
4191
  ])
4192
4192
  ])
4193
4193
  ], 512)), [
4194
- [$e, i.showTropicals && !a.$attrs.hideTropicalsLegend]
4194
+ [ke, i.showTropicals && !a.$attrs.hideTropicalsLegend]
4195
4195
  ]);
4196
4196
  }
4197
- const Ye = /* @__PURE__ */ T(Wa, [["render", oi], ["__scopeId", "data-v-b521de47"]]);
4198
- const si = {
4197
+ const Oe = /* @__PURE__ */ T(Ht, [["render", la], ["__scopeId", "data-v-b521de47"]]);
4198
+ const ca = {
4199
4199
  name: "IdmPrecip3h",
4200
4200
  props: {
4201
4201
  factor: {
@@ -4223,7 +4223,7 @@ const si = {
4223
4223
  texture: void 0,
4224
4224
  rampColor: void 0,
4225
4225
  aPositionBuffer: void 0,
4226
- webgl: new we(),
4226
+ webgl: new ye(),
4227
4227
  etime: void 0,
4228
4228
  right: 10
4229
4229
  };
@@ -4283,7 +4283,7 @@ const si = {
4283
4283
  [1, "rgba(197,5,58,0.8)"]
4284
4284
  ];
4285
4285
  this.rampColor = this.webgl.setup(this.context, a);
4286
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4286
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.fragmentSchema);
4287
4287
  this.program = e, this.aPositionBuffer = t;
4288
4288
  }
4289
4289
  },
@@ -4296,27 +4296,27 @@ const si = {
4296
4296
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4297
4297
  }
4298
4298
  }
4299
- }, ce = (a) => (H("data-v-dec867b8"), a = a(), G(), a), ni = { key: 0 }, li = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "mm", -1)), ci = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "1.5", -1)), hi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "2", -1)), di = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "3", -1)), pi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "7", -1)), mi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "10", -1)), ui = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "20", -1)), yi = /* @__PURE__ */ ce(() => /* @__PURE__ */ l("span", null, "30", -1)), fi = [
4300
- li,
4301
- ci,
4302
- hi,
4303
- di,
4304
- pi,
4305
- mi,
4306
- ui,
4307
- yi
4308
- ];
4309
- function gi(a, e, t, r, i, o) {
4299
+ }, ha = { key: 0 };
4300
+ function da(a, e, t, r, i, o) {
4310
4301
  var n;
4311
- return (n = t.factor) != null && n.active ? (L(), x("div", ni, [
4302
+ return (n = t.factor) != null && n.active ? (x(), _("div", ha, [
4312
4303
  l("div", {
4313
4304
  class: "legend-bars flex-center",
4314
- style: F([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4315
- }, fi, 4)
4316
- ])) : $("", !0);
4305
+ style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4306
+ }, e[0] || (e[0] = [
4307
+ l("span", null, "mm", -1),
4308
+ l("span", null, "1.5", -1),
4309
+ l("span", null, "2", -1),
4310
+ l("span", null, "3", -1),
4311
+ l("span", null, "7", -1),
4312
+ l("span", null, "10", -1),
4313
+ l("span", null, "20", -1),
4314
+ l("span", null, "30", -1)
4315
+ ]), 4)
4316
+ ])) : B("", !0);
4317
4317
  }
4318
- const bi = /* @__PURE__ */ T(si, [["render", gi], ["__scopeId", "data-v-dec867b8"]]);
4319
- const vi = {
4318
+ const pa = /* @__PURE__ */ T(ca, [["render", da], ["__scopeId", "data-v-dec867b8"]]);
4319
+ const ma = {
4320
4320
  name: "IdmVisibility",
4321
4321
  props: {
4322
4322
  factor: {
@@ -4344,7 +4344,7 @@ const vi = {
4344
4344
  texture: void 0,
4345
4345
  rampColor: void 0,
4346
4346
  aPositionBuffer: void 0,
4347
- webgl: new we(),
4347
+ webgl: new ye(),
4348
4348
  etime: void 0
4349
4349
  };
4350
4350
  },
@@ -4397,7 +4397,7 @@ const vi = {
4397
4397
  [1, "rgba(144,144,144,0)"]
4398
4398
  ];
4399
4399
  this.rampColor = this.webgl.setup(this.context, a);
4400
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4400
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.fragmentSchema);
4401
4401
  this.program = e, this.aPositionBuffer = t;
4402
4402
  }
4403
4403
  },
@@ -4410,25 +4410,25 @@ const vi = {
4410
4410
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4411
4411
  }
4412
4412
  }
4413
- }, xe = (a) => (H("data-v-952dee5c"), a = a(), G(), a), _i = { key: 0 }, wi = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "nm", -1)), Li = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "0", -1)), xi = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "0.5", -1)), Ci = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "1.5", -1)), Si = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "3", -1)), ki = /* @__PURE__ */ xe(() => /* @__PURE__ */ l("span", null, "9", -1)), zi = [
4414
- wi,
4415
- Li,
4416
- xi,
4417
- Ci,
4418
- Si,
4419
- ki
4420
- ];
4421
- function Pi(a, e, t, r, i, o) {
4413
+ }, ua = { key: 0 };
4414
+ function ya(a, e, t, r, i, o) {
4422
4415
  var n;
4423
- return (n = t.factor) != null && n.active ? (L(), x("div", _i, [
4416
+ return (n = t.factor) != null && n.active ? (x(), _("div", ua, [
4424
4417
  l("div", {
4425
4418
  class: "legend-bars flex-center",
4426
- style: F([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
4427
- }, zi, 4)
4428
- ])) : $("", !0);
4419
+ style: $([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
4420
+ }, e[0] || (e[0] = [
4421
+ l("span", null, "nm", -1),
4422
+ l("span", null, "0", -1),
4423
+ l("span", null, "0.5", -1),
4424
+ l("span", null, "1.5", -1),
4425
+ l("span", null, "3", -1),
4426
+ l("span", null, "9", -1)
4427
+ ]), 4)
4428
+ ])) : B("", !0);
4429
4429
  }
4430
- const Ti = /* @__PURE__ */ T(vi, [["render", Pi], ["__scopeId", "data-v-952dee5c"]]);
4431
- const Ei = {
4430
+ const fa = /* @__PURE__ */ T(ma, [["render", ya], ["__scopeId", "data-v-952dee5c"]]);
4431
+ const ga = {
4432
4432
  name: "IdmWaterTemp",
4433
4433
  props: {
4434
4434
  factor: {
@@ -4456,7 +4456,7 @@ const Ei = {
4456
4456
  texture: void 0,
4457
4457
  rampColor: void 0,
4458
4458
  aPositionBuffer: void 0,
4459
- webgl: new we(),
4459
+ webgl: new ye(),
4460
4460
  etime: void 0,
4461
4461
  right: 10
4462
4462
  };
@@ -4517,7 +4517,7 @@ const Ei = {
4517
4517
  //
4518
4518
  ];
4519
4519
  this.rampColor = this.webgl.setup(this.context, a);
4520
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4520
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.fragmentSchema);
4521
4521
  this.program = e, this.aPositionBuffer = t;
4522
4522
  }
4523
4523
  },
@@ -4530,25 +4530,25 @@ const Ei = {
4530
4530
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4531
4531
  }
4532
4532
  }
4533
- }, Ce = (a) => (H("data-v-67e5094b"), a = a(), G(), a), Ii = { key: 0 }, Ri = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "°C", -1)), Di = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "0", -1)), Ai = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "10", -1)), Mi = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "20", -1)), $i = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "30", -1)), Bi = /* @__PURE__ */ Ce(() => /* @__PURE__ */ l("span", null, "40", -1)), Ni = [
4534
- Ri,
4535
- Di,
4536
- Ai,
4537
- Mi,
4538
- $i,
4539
- Bi
4540
- ];
4541
- function Wi(a, e, t, r, i, o) {
4533
+ }, ba = { key: 0 };
4534
+ function va(a, e, t, r, i, o) {
4542
4535
  var n;
4543
- return (n = t.factor) != null && n.active ? (L(), x("div", Ii, [
4536
+ return (n = t.factor) != null && n.active ? (x(), _("div", ba, [
4544
4537
  l("div", {
4545
4538
  class: "legend-bars flex-center",
4546
- style: F([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4547
- }, Ni, 4)
4548
- ])) : $("", !0);
4539
+ style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4540
+ }, e[0] || (e[0] = [
4541
+ l("span", null, "°C", -1),
4542
+ l("span", null, "0", -1),
4543
+ l("span", null, "10", -1),
4544
+ l("span", null, "20", -1),
4545
+ l("span", null, "30", -1),
4546
+ l("span", null, "40", -1)
4547
+ ]), 4)
4548
+ ])) : B("", !0);
4549
4549
  }
4550
- const Oi = /* @__PURE__ */ T(Ei, [["render", Wi], ["__scopeId", "data-v-67e5094b"]]);
4551
- const ji = {
4550
+ const La = /* @__PURE__ */ T(ga, [["render", va], ["__scopeId", "data-v-67e5094b"]]);
4551
+ const wa = {
4552
4552
  name: "IdmTemp",
4553
4553
  props: {
4554
4554
  factor: {
@@ -4576,7 +4576,7 @@ const ji = {
4576
4576
  texture: void 0,
4577
4577
  rampColor: void 0,
4578
4578
  aPositionBuffer: void 0,
4579
- webgl: new we(),
4579
+ webgl: new ye(),
4580
4580
  etime: void 0,
4581
4581
  right: 10
4582
4582
  };
@@ -4640,7 +4640,7 @@ const ji = {
4640
4640
  [1, "rgb(138, 43, 10)"]
4641
4641
  ];
4642
4642
  this.rampColor = this.webgl.setup(this.context, a);
4643
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4643
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.fragmentSchema);
4644
4644
  this.program = e, this.aPositionBuffer = t;
4645
4645
  }
4646
4646
  },
@@ -4653,27 +4653,27 @@ const ji = {
4653
4653
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4654
4654
  }
4655
4655
  }
4656
- }, he = (a) => (H("data-v-389ea886"), a = a(), G(), a), Fi = { key: 0 }, Ui = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "°C", -1)), Vi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "-20", -1)), Zi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "-10", -1)), Hi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "0", -1)), Gi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "10", -1)), Ji = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "20", -1)), Xi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "30", -1)), qi = /* @__PURE__ */ he(() => /* @__PURE__ */ l("span", null, "40", -1)), Yi = [
4657
- Ui,
4658
- Vi,
4659
- Zi,
4660
- Hi,
4661
- Gi,
4662
- Ji,
4663
- Xi,
4664
- qi
4665
- ];
4666
- function Qi(a, e, t, r, i, o) {
4656
+ }, xa = { key: 0 };
4657
+ function _a(a, e, t, r, i, o) {
4667
4658
  var n;
4668
- return (n = t.factor) != null && n.active ? (L(), x("div", Fi, [
4659
+ return (n = t.factor) != null && n.active ? (x(), _("div", xa, [
4669
4660
  l("div", {
4670
4661
  class: "legend-bars flex-center",
4671
- style: F([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4672
- }, Yi, 4)
4673
- ])) : $("", !0);
4662
+ style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4663
+ }, e[0] || (e[0] = [
4664
+ l("span", null, "°C", -1),
4665
+ l("span", null, "-20", -1),
4666
+ l("span", null, "-10", -1),
4667
+ l("span", null, "0", -1),
4668
+ l("span", null, "10", -1),
4669
+ l("span", null, "20", -1),
4670
+ l("span", null, "30", -1),
4671
+ l("span", null, "40", -1)
4672
+ ]), 4)
4673
+ ])) : B("", !0);
4674
4674
  }
4675
- const Ki = /* @__PURE__ */ T(ji, [["render", Qi], ["__scopeId", "data-v-389ea886"]]);
4676
- const er = {
4675
+ const Ca = /* @__PURE__ */ T(wa, [["render", _a], ["__scopeId", "data-v-389ea886"]]);
4676
+ const Sa = {
4677
4677
  name: "IdmArctic",
4678
4678
  props: {
4679
4679
  factor: {
@@ -4701,7 +4701,7 @@ const er = {
4701
4701
  texture: void 0,
4702
4702
  rampColor: void 0,
4703
4703
  aPositionBuffer: void 0,
4704
- webgl: new we(),
4704
+ webgl: new ye(),
4705
4705
  etime: void 0,
4706
4706
  right: 10
4707
4707
  };
@@ -4756,7 +4756,7 @@ const er = {
4756
4756
  // 2m
4757
4757
  ];
4758
4758
  this.rampColor = this.webgl.setup(this.context, a);
4759
- const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, N.vertexSchema, N.fragmentSchema);
4759
+ const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, W.vertexSchema, W.fragmentSchema);
4760
4760
  this.program = e, this.aPositionBuffer = t;
4761
4761
  }
4762
4762
  },
@@ -4769,25 +4769,25 @@ const er = {
4769
4769
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
4770
4770
  }
4771
4771
  }
4772
- }, Se = (a) => (H("data-v-db805141"), a = a(), G(), a), tr = { key: 0 }, ar = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "m", -1)), ir = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "0", -1)), rr = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "0.5", -1)), or = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "1", -1)), sr = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "1.5", -1)), nr = /* @__PURE__ */ Se(() => /* @__PURE__ */ l("span", null, "2", -1)), lr = [
4773
- ar,
4774
- ir,
4775
- rr,
4776
- or,
4777
- sr,
4778
- nr
4779
- ];
4780
- function cr(a, e, t, r, i, o) {
4772
+ }, ka = { key: 0 };
4773
+ function za(a, e, t, r, i, o) {
4781
4774
  var n;
4782
- return (n = t.factor) != null && n.active ? (L(), x("div", tr, [
4775
+ return (n = t.factor) != null && n.active ? (x(), _("div", ka, [
4783
4776
  l("div", {
4784
4777
  class: "legend-bars flex-center",
4785
- style: F([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4786
- }, lr, 4)
4787
- ])) : $("", !0);
4778
+ style: $([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
4779
+ }, e[0] || (e[0] = [
4780
+ l("span", null, "m", -1),
4781
+ l("span", null, "0", -1),
4782
+ l("span", null, "0.5", -1),
4783
+ l("span", null, "1", -1),
4784
+ l("span", null, "1.5", -1),
4785
+ l("span", null, "2", -1)
4786
+ ]), 4)
4787
+ ])) : B("", !0);
4788
4788
  }
4789
- const hr = /* @__PURE__ */ T(er, [["render", cr], ["__scopeId", "data-v-db805141"]]);
4790
- const dr = {
4789
+ const Pa = /* @__PURE__ */ T(Sa, [["render", za], ["__scopeId", "data-v-db805141"]]);
4790
+ const Ta = {
4791
4791
  name: "IdmPoint",
4792
4792
  emits: ["point", "more"],
4793
4793
  props: {
@@ -4809,7 +4809,7 @@ const dr = {
4809
4809
  return {
4810
4810
  showMeteo: !1,
4811
4811
  meteoMarker: void 0,
4812
- helper: Ae
4812
+ helper: Ce
4813
4813
  };
4814
4814
  },
4815
4815
  watch: {
@@ -4842,17 +4842,17 @@ const dr = {
4842
4842
  },
4843
4843
  computeLat() {
4844
4844
  return function(a, e = 4) {
4845
- return j.lat2pretty(a, e).pretty;
4845
+ return F.lat2pretty(a, e).pretty;
4846
4846
  };
4847
4847
  },
4848
4848
  computeLng() {
4849
4849
  return function(a, e = 4) {
4850
- return j.lng2pretty(a, e).pretty;
4850
+ return F.lng2pretty(a, e).pretty;
4851
4851
  };
4852
4852
  },
4853
4853
  roundPrecision() {
4854
4854
  return function(a, e = 4) {
4855
- return isNaN(a) ? "-" : j.roundPrecision(a, e);
4855
+ return isNaN(a) ? "-" : F.roundPrecision(a, e);
4856
4856
  };
4857
4857
  }
4858
4858
  },
@@ -4870,77 +4870,77 @@ const dr = {
4870
4870
  var a;
4871
4871
  if (this.meteo) {
4872
4872
  const e = document.getElementById("point-meteo");
4873
- this.meteoMarker ? (a = this.meteoMarker) == null || a.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new ne.Marker(e).setLngLat([this.meteo.lng, this.meteo.lat]).addTo(this.map);
4873
+ this.meteoMarker ? (a = this.meteoMarker) == null || a.setLngLat([this.meteo.lng, this.meteo.lat]) : this.meteoMarker = new re.Marker(e).setLngLat([this.meteo.lng, this.meteo.lat]).addTo(this.map);
4874
4874
  }
4875
4875
  }
4876
4876
  }
4877
- }, q = (a) => (H("data-v-22c5d8c1"), a = a(), G(), a), pr = {
4877
+ }, Ea = {
4878
4878
  id: "point-meteo",
4879
4879
  class: "point-meteo"
4880
- }, mr = { class: "meteo-box" }, ur = { class: "header-box" }, yr = { class: "main" }, fr = { class: "sub" }, gr = { class: "main-box" }, br = { class: "flex-space" }, vr = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Wind", -1)), _r = { class: "flex-space" }, wr = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Wind.Wave", -1)), Lr = { class: "flex-space" }, xr = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Swell", -1)), Cr = { class: "flex-space" }, Sr = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Sig.Wave", -1)), kr = { class: "flex-space" }, zr = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Current", -1)), Pr = { class: "flex-space" }, Tr = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Precip", -1)), Er = { class: "flex-space" }, Ir = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Visibility", -1)), Rr = { class: "flex-space" }, Dr = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Temp", -1)), Ar = { class: "flex-space" }, Mr = /* @__PURE__ */ q(() => /* @__PURE__ */ l("label", null, "Water Temp", -1)), $r = {
4880
+ }, Ra = { class: "meteo-box" }, Ia = { class: "header-box" }, Da = { class: "main" }, Aa = { class: "sub" }, Ma = { class: "main-box" }, Ba = { class: "flex-space" }, Na = { class: "flex-space" }, Wa = { class: "flex-space" }, Oa = { class: "flex-space" }, ja = { class: "flex-space" }, Fa = { class: "flex-space" }, $a = { class: "flex-space" }, Ua = { class: "flex-space" }, Va = { class: "flex-space" }, Za = {
4881
4881
  key: 0,
4882
4882
  class: "flex-space",
4883
4883
  style: { "justify-content": "flex-end" }
4884
- }, Br = /* @__PURE__ */ q(() => /* @__PURE__ */ l("span", { class: "more" }, "More >>", -1)), Nr = [
4885
- Br
4886
- ];
4887
- function Wr(a, e, t, r, i, o) {
4888
- var n, s, c, h, d, p, g, u, y, f, m, v, b, w, k, _, D, A, B, W, O, J, de, pe, me, ue, ye, fe, ge, ae, X, Y, be, Q, E, U, ve, K, _e, ie, re, oe, ke, ze, Pe, Te, Ee;
4889
- return Me((L(), x("div", pr, [
4890
- l("div", mr, [
4891
- l("div", ur, [
4884
+ };
4885
+ function Ha(a, e, t, r, i, o) {
4886
+ var n, s, c, h, d, p, g, u, y, f, m, v, b, w, k, L, D, A, N, O, j, H, oe, se, ne, le, ce, he, de, K, G, J, pe, X, E, U, me, q, ue, ee, te, ae, fe, ge, be, ve, Le;
4887
+ return Se((x(), _("div", Ea, [
4888
+ l("div", Ra, [
4889
+ l("div", Ia, [
4892
4890
  l("div", {
4893
4891
  class: "iconfont close",
4894
- onClick: e[0] || (e[0] = (Ne) => i.showMeteo = !1)
4892
+ onClick: e[0] || (e[0] = (ze) => i.showMeteo = !1)
4895
4893
  }, ""),
4896
- l("div", yr, S(o.computeLat((n = t.meteo) == null ? void 0 : n.lat)) + "," + S(o.computeLng((s = t.meteo) == null ? void 0 : s.lng)), 1),
4897
- l("div", fr, S(o.computeTime((c = t.meteo) == null ? void 0 : c.utc)), 1)
4894
+ l("div", Da, S(o.computeLat((n = t.meteo) == null ? void 0 : n.lat)) + "," + S(o.computeLng((s = t.meteo) == null ? void 0 : s.lng)), 1),
4895
+ l("div", Aa, S(o.computeTime((c = t.meteo) == null ? void 0 : c.utc)), 1)
4898
4896
  ]),
4899
- l("div", gr, [
4900
- l("div", br, [
4901
- vr,
4897
+ l("div", Ma, [
4898
+ l("div", Ba, [
4899
+ e[1] || (e[1] = l("label", null, "Wind", -1)),
4902
4900
  l("span", null, S(((d = (h = t.meteo) == null ? void 0 : h.wind) == null ? void 0 : d.direction) || "-") + "/" + S(o.roundPrecision((g = (p = t.meteo) == null ? void 0 : p.wind) == null ? void 0 : g.kts, 1)) + "[kts]/" + S((y = (u = t.meteo) == null ? void 0 : u.wind) == null ? void 0 : y.scale) + "[BF]/" + S(o.roundPrecision((m = (f = t.meteo) == null ? void 0 : f.gusts) == null ? void 0 : m.kts, 1)) + "[kts]", 1)
4903
4901
  ]),
4904
- l("div", _r, [
4905
- wr,
4906
- l("span", null, S(((w = (b = (v = t.meteo) == null ? void 0 : v.wave) == null ? void 0 : b.wd) == null ? void 0 : w.direction) || "-") + "/" + S(o.roundPrecision((D = (_ = (k = t.meteo) == null ? void 0 : k.wave) == null ? void 0 : _.wd) == null ? void 0 : D.height, 1)) + "[m]/" + S(o.roundPrecision((W = (B = (A = t.meteo) == null ? void 0 : A.wave) == null ? void 0 : B.wd) == null ? void 0 : W.period, 1)) + "[s]", 1)
4902
+ l("div", Na, [
4903
+ e[2] || (e[2] = l("label", null, "Wind.Wave", -1)),
4904
+ l("span", null, S(((w = (b = (v = t.meteo) == null ? void 0 : v.wave) == null ? void 0 : b.wd) == null ? void 0 : w.direction) || "-") + "/" + S(o.roundPrecision((D = (L = (k = t.meteo) == null ? void 0 : k.wave) == null ? void 0 : L.wd) == null ? void 0 : D.height, 1)) + "[m]/" + S(o.roundPrecision((O = (N = (A = t.meteo) == null ? void 0 : A.wave) == null ? void 0 : N.wd) == null ? void 0 : O.period, 1)) + "[s]", 1)
4907
4905
  ]),
4908
- l("div", Lr, [
4909
- xr,
4910
- l("span", null, S(((de = (J = (O = t.meteo) == null ? void 0 : O.wave) == null ? void 0 : J.swell) == null ? void 0 : de.direction) || "-") + "/" + S(o.roundPrecision((ue = (me = (pe = t.meteo) == null ? void 0 : pe.wave) == null ? void 0 : me.swell) == null ? void 0 : ue.height, 1)) + "[m]/" + S(o.roundPrecision((ge = (fe = (ye = t.meteo) == null ? void 0 : ye.wave) == null ? void 0 : fe.swell) == null ? void 0 : ge.period, 1)) + "[s]", 1)
4906
+ l("div", Wa, [
4907
+ e[3] || (e[3] = l("label", null, "Swell", -1)),
4908
+ l("span", null, S(((oe = (H = (j = t.meteo) == null ? void 0 : j.wave) == null ? void 0 : H.swell) == null ? void 0 : oe.direction) || "-") + "/" + S(o.roundPrecision((le = (ne = (se = t.meteo) == null ? void 0 : se.wave) == null ? void 0 : ne.swell) == null ? void 0 : le.height, 1)) + "[m]/" + S(o.roundPrecision((de = (he = (ce = t.meteo) == null ? void 0 : ce.wave) == null ? void 0 : he.swell) == null ? void 0 : de.period, 1)) + "[s]", 1)
4911
4909
  ]),
4912
- l("div", Cr, [
4913
- Sr,
4914
- l("span", null, S(((Y = (X = (ae = t.meteo) == null ? void 0 : ae.wave) == null ? void 0 : X.sig) == null ? void 0 : Y.direction) || "-") + "/" + S(o.roundPrecision((E = (Q = (be = t.meteo) == null ? void 0 : be.wave) == null ? void 0 : Q.sig) == null ? void 0 : E.height, 1)) + "[m]/" + S(o.roundPrecision((K = (ve = (U = t.meteo) == null ? void 0 : U.wave) == null ? void 0 : ve.sig) == null ? void 0 : K.period, 1)) + "[s]", 1)
4910
+ l("div", Oa, [
4911
+ e[4] || (e[4] = l("label", null, "Sig.Wave", -1)),
4912
+ l("span", null, S(((J = (G = (K = t.meteo) == null ? void 0 : K.wave) == null ? void 0 : G.sig) == null ? void 0 : J.direction) || "-") + "/" + S(o.roundPrecision((E = (X = (pe = t.meteo) == null ? void 0 : pe.wave) == null ? void 0 : X.sig) == null ? void 0 : E.height, 1)) + "[m]/" + S(o.roundPrecision((q = (me = (U = t.meteo) == null ? void 0 : U.wave) == null ? void 0 : me.sig) == null ? void 0 : q.period, 1)) + "[s]", 1)
4915
4913
  ]),
4916
- l("div", kr, [
4917
- zr,
4918
- l("span", null, S(((ie = (_e = t.meteo) == null ? void 0 : _e.current) == null ? void 0 : ie.direction) || "-") + "/" + S(o.roundPrecision((oe = (re = t.meteo) == null ? void 0 : re.current) == null ? void 0 : oe.kts, 2)) + "[kts]", 1)
4914
+ l("div", ja, [
4915
+ e[5] || (e[5] = l("label", null, "Current", -1)),
4916
+ l("span", null, S(((ee = (ue = t.meteo) == null ? void 0 : ue.current) == null ? void 0 : ee.direction) || "-") + "/" + S(o.roundPrecision((ae = (te = t.meteo) == null ? void 0 : te.current) == null ? void 0 : ae.kts, 2)) + "[kts]", 1)
4919
4917
  ]),
4920
- l("div", Pr, [
4921
- Tr,
4922
- l("span", null, S(o.roundPrecision((ze = (ke = t.meteo) == null ? void 0 : ke.precip) == null ? void 0 : ze.inter6h, 2)) + "[mm]", 1)
4918
+ l("div", Fa, [
4919
+ e[6] || (e[6] = l("label", null, "Precip", -1)),
4920
+ l("span", null, S(o.roundPrecision((ge = (fe = t.meteo) == null ? void 0 : fe.precip) == null ? void 0 : ge.inter6h, 2)) + "[mm]", 1)
4923
4921
  ]),
4924
- l("div", Er, [
4925
- Ir,
4926
- l("span", null, S(o.roundPrecision(((Pe = t.meteo) == null ? void 0 : Pe.visibility) / 1852, 0)) + "[nm]", 1)
4922
+ l("div", $a, [
4923
+ e[7] || (e[7] = l("label", null, "Visibility", -1)),
4924
+ l("span", null, S(o.roundPrecision(((be = t.meteo) == null ? void 0 : be.visibility) / 1852, 0)) + "[nm]", 1)
4927
4925
  ]),
4928
- l("div", Rr, [
4929
- Dr,
4930
- l("span", null, S(o.roundPrecision((Te = t.meteo) == null ? void 0 : Te.temp, 0)) + "[°C]", 1)
4926
+ l("div", Ua, [
4927
+ e[8] || (e[8] = l("label", null, "Temp", -1)),
4928
+ l("span", null, S(o.roundPrecision((ve = t.meteo) == null ? void 0 : ve.temp, 0)) + "[°C]", 1)
4931
4929
  ]),
4932
- l("div", Ar, [
4933
- Mr,
4934
- l("span", null, S(o.roundPrecision((Ee = t.meteo) == null ? void 0 : Ee.waterTemp, 2)) + "[°C]", 1)
4930
+ l("div", Va, [
4931
+ e[9] || (e[9] = l("label", null, "Water Temp", -1)),
4932
+ l("span", null, S(o.roundPrecision((Le = t.meteo) == null ? void 0 : Le.waterTemp, 2)) + "[°C]", 1)
4935
4933
  ])
4936
4934
  ]),
4937
- a.$attrs.permission & i.helper.LEVEL.Prime ? (L(), x("div", $r, Nr)) : $("", !0)
4935
+ a.$attrs.permission & i.helper.LEVEL.Prime ? (x(), _("div", Za, e[10] || (e[10] = [
4936
+ l("span", { class: "more" }, "More >>", -1)
4937
+ ]))) : B("", !0)
4938
4938
  ])
4939
4939
  ], 512)), [
4940
- [$e, i.showMeteo]
4940
+ [ke, i.showMeteo]
4941
4941
  ]);
4942
4942
  }
4943
- const Or = /* @__PURE__ */ T(dr, [["render", Wr], ["__scopeId", "data-v-22c5d8c1"]]), jr = {
4943
+ const Ga = /* @__PURE__ */ T(Ta, [["render", Ha], ["__scopeId", "data-v-22c5d8c1"]]), Ja = {
4944
4944
  name: "IdmWarZone",
4945
4945
  props: {
4946
4946
  map: {
@@ -5030,10 +5030,10 @@ const Or = /* @__PURE__ */ T(dr, [["render", Wr], ["__scopeId", "data-v-22c5d8c1
5030
5030
  }
5031
5031
  }
5032
5032
  };
5033
- function Fr(a, e, t, r, i, o) {
5034
- return L(), x("div");
5033
+ function Xa(a, e, t, r, i, o) {
5034
+ return x(), _("div");
5035
5035
  }
5036
- const Ur = /* @__PURE__ */ T(jr, [["render", Fr]]), Vr = {
5036
+ const qa = /* @__PURE__ */ T(Ja, [["render", Xa]]), Ya = {
5037
5037
  name: "IdmGmdssArea",
5038
5038
  props: {
5039
5039
  map: {
@@ -5153,10 +5153,10 @@ const Ur = /* @__PURE__ */ T(jr, [["render", Fr]]), Vr = {
5153
5153
  }
5154
5154
  }
5155
5155
  };
5156
- function Zr(a, e, t, r, i, o) {
5157
- return L(), x("div");
5156
+ function Qa(a, e, t, r, i, o) {
5157
+ return x(), _("div");
5158
5158
  }
5159
- const Hr = /* @__PURE__ */ T(Vr, [["render", Zr]]), Gr = {
5159
+ const Ka = /* @__PURE__ */ T(Ya, [["render", Qa]]), ei = {
5160
5160
  name: "IdmEcaZone",
5161
5161
  props: {
5162
5162
  map: {
@@ -5244,11 +5244,11 @@ const Hr = /* @__PURE__ */ T(Vr, [["render", Zr]]), Gr = {
5244
5244
  }
5245
5245
  }
5246
5246
  };
5247
- function Jr(a, e, t, r, i, o) {
5248
- return L(), x("div");
5247
+ function ti(a, e, t, r, i, o) {
5248
+ return x(), _("div");
5249
5249
  }
5250
- const Xr = /* @__PURE__ */ T(Gr, [["render", Jr]]);
5251
- const qr = {
5250
+ const ai = /* @__PURE__ */ T(ei, [["render", ti]]);
5251
+ const ii = {
5252
5252
  name: "IdmAlertZone",
5253
5253
  props: {
5254
5254
  map: {
@@ -5374,10 +5374,10 @@ const qr = {
5374
5374
  this.map.getLayer(this.polygonLayer) && this.map.removeLayer(this.polygonLayer), this.map.getLayer(this.polygonLayer + "-border") && this.map.removeLayer(this.polygonLayer + "-border"), this.map.getLayer(this.polygonLabelLayer) && this.map.removeLayer(this.polygonLabelLayer), this.map.getLayer(this.lineLayer) && this.map.removeLayer(this.lineLayer), this.map.getLayer(this.lineLabelLayer) && this.map.removeLayer(this.lineLabelLayer), this.map.getLayer(this.pointLayer) && this.map.removeLayer(this.pointLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
5375
5375
  }
5376
5376
  }
5377
- }, Yr = { id: "zone-info" }, Qr = ["innerHTML"];
5378
- function Kr(a, e, t, r, i, o) {
5377
+ }, ri = { id: "zone-info" }, oi = ["innerHTML"];
5378
+ function si(a, e, t, r, i, o) {
5379
5379
  var n;
5380
- return Me((L(), x("div", Yr, [
5380
+ return Se((x(), _("div", ri, [
5381
5381
  l("div", {
5382
5382
  class: "iconfont close",
5383
5383
  onClick: e[0] || (e[0] = (s) => i.showZone = !1)
@@ -5385,13 +5385,13 @@ function Kr(a, e, t, r, i, o) {
5385
5385
  l("div", {
5386
5386
  class: "rich-context",
5387
5387
  innerHTML: (n = i.form) == null ? void 0 : n.name
5388
- }, null, 8, Qr)
5388
+ }, null, 8, oi)
5389
5389
  ], 512)), [
5390
- [$e, i.showZone]
5390
+ [ke, i.showZone]
5391
5391
  ]);
5392
5392
  }
5393
- const eo = /* @__PURE__ */ T(qr, [["render", Kr], ["__scopeId", "data-v-c0864afc"]]);
5394
- const to = {
5393
+ const ni = /* @__PURE__ */ T(ii, [["render", si], ["__scopeId", "data-v-c0864afc"]]);
5394
+ const li = {
5395
5395
  name: "IdmPort",
5396
5396
  props: {
5397
5397
  map: {
@@ -5417,12 +5417,12 @@ const to = {
5417
5417
  computed: {
5418
5418
  computeLat() {
5419
5419
  return function(a) {
5420
- return j.lat2pretty(a, 4).pretty;
5420
+ return F.lat2pretty(a, 4).pretty;
5421
5421
  };
5422
5422
  },
5423
5423
  computeLng() {
5424
5424
  return function(a) {
5425
- return j.lng2pretty(a, 4).pretty;
5425
+ return F.lng2pretty(a, 4).pretty;
5426
5426
  };
5427
5427
  }
5428
5428
  },
@@ -5444,7 +5444,7 @@ const to = {
5444
5444
  if (t) {
5445
5445
  this.showPort = !0, this.form = { ...t.properties }, this.form.lng = t.geometry.coordinates[0], this.form.lat = t.geometry.coordinates[1];
5446
5446
  const i = document.getElementById("port-info");
5447
- this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new ne.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
5447
+ this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new re.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
5448
5448
  }
5449
5449
  },
5450
5450
  handleEmit() {
@@ -5483,41 +5483,41 @@ const to = {
5483
5483
  this.showPort = !1, this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
5484
5484
  }
5485
5485
  }
5486
- }, Be = (a) => (H("data-v-4ab013cc"), a = a(), G(), a), ao = { id: "port-info" }, io = { class: "port-box" }, ro = { class: "flex-start" }, oo = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Name : ", -1)), so = { class: "flex-start" }, no = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Position : ", -1)), lo = { class: "flex-start" }, co = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "LoCode : ", -1)), ho = {
5486
+ }, ci = { id: "port-info" }, hi = { class: "port-box" }, di = { class: "flex-start" }, pi = { class: "flex-start" }, mi = { class: "flex-start" }, ui = {
5487
5487
  class: "flex-start",
5488
5488
  style: { "align-items": "flex-start" }
5489
- }, po = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("label", null, "Region : ", -1));
5490
- function mo(a, e, t, r, i, o) {
5491
- return Me((L(), x("div", ao, [
5489
+ };
5490
+ function yi(a, e, t, r, i, o) {
5491
+ return Se((x(), _("div", ci, [
5492
5492
  l("div", {
5493
5493
  class: "close iconfont",
5494
5494
  onClick: e[0] || (e[0] = (n) => i.showPort = !1)
5495
5495
  }, ""),
5496
- l("div", io, [
5497
- l("div", ro, [
5498
- oo,
5496
+ l("div", hi, [
5497
+ l("div", di, [
5498
+ e[2] || (e[2] = l("label", null, "Name : ", -1)),
5499
5499
  l("span", {
5500
5500
  onClick: e[1] || (e[1] = (...n) => o.handleEmit && o.handleEmit(...n))
5501
5501
  }, S(i.form.name), 1)
5502
5502
  ]),
5503
- l("div", so, [
5504
- no,
5503
+ l("div", pi, [
5504
+ e[3] || (e[3] = l("label", null, "Position : ", -1)),
5505
5505
  l("span", null, S(o.computeLat(i.form.lat)) + ", " + S(o.computeLng(i.form.lng)), 1)
5506
5506
  ]),
5507
- l("div", lo, [
5508
- co,
5507
+ l("div", mi, [
5508
+ e[4] || (e[4] = l("label", null, "LoCode : ", -1)),
5509
5509
  l("span", null, S(i.form.loCode || "-"), 1)
5510
5510
  ]),
5511
- l("div", ho, [
5512
- po,
5511
+ l("div", ui, [
5512
+ e[5] || (e[5] = l("label", null, "Region : ", -1)),
5513
5513
  l("span", null, S(i.form.city || "-") + ", " + S(i.form.country || "-"), 1)
5514
5514
  ])
5515
5515
  ])
5516
5516
  ], 512)), [
5517
- [$e, i.showPort]
5517
+ [ke, i.showPort]
5518
5518
  ]);
5519
5519
  }
5520
- const uo = /* @__PURE__ */ T(to, [["render", mo], ["__scopeId", "data-v-4ab013cc"]]), yo = {
5520
+ const fi = /* @__PURE__ */ T(li, [["render", yi], ["__scopeId", "data-v-4ab013cc"]]), gi = {
5521
5521
  name: "IdmLoadLine",
5522
5522
  props: {
5523
5523
  map: {
@@ -5587,10 +5587,10 @@ const uo = /* @__PURE__ */ T(to, [["render", mo], ["__scopeId", "data-v-4ab013cc
5587
5587
  }
5588
5588
  }
5589
5589
  };
5590
- function fo(a, e, t, r, i, o) {
5591
- return L(), x("div");
5590
+ function bi(a, e, t, r, i, o) {
5591
+ return x(), _("div");
5592
5592
  }
5593
- const go = /* @__PURE__ */ T(yo, [["render", fo]]), bo = {
5593
+ const vi = /* @__PURE__ */ T(gi, [["render", bi]]), Li = {
5594
5594
  name: "IdmTimezone",
5595
5595
  props: {
5596
5596
  map: {
@@ -5755,10 +5755,10 @@ const go = /* @__PURE__ */ T(yo, [["render", fo]]), bo = {
5755
5755
  }
5756
5756
  }
5757
5757
  };
5758
- function vo(a, e, t, r, i, o) {
5759
- return L(), x("div");
5758
+ function wi(a, e, t, r, i, o) {
5759
+ return x(), _("div");
5760
5760
  }
5761
- const _o = /* @__PURE__ */ T(bo, [["render", vo]]), wo = {
5761
+ const xi = /* @__PURE__ */ T(Li, [["render", wi]]), _i = {
5762
5762
  name: "IdmVoluntaryReportingArea",
5763
5763
  props: {
5764
5764
  map: {
@@ -5846,10 +5846,10 @@ const _o = /* @__PURE__ */ T(bo, [["render", vo]]), wo = {
5846
5846
  }
5847
5847
  }
5848
5848
  };
5849
- function Lo(a, e, t, r, i, o) {
5850
- return L(), x("div");
5849
+ function Ci(a, e, t, r, i, o) {
5850
+ return x(), _("div");
5851
5851
  }
5852
- const xo = /* @__PURE__ */ T(wo, [["render", Lo]]), Co = {
5852
+ const Si = /* @__PURE__ */ T(_i, [["render", Ci]]), ki = {
5853
5853
  name: "IdmSpecialArea",
5854
5854
  props: {
5855
5855
  map: {
@@ -5879,7 +5879,7 @@ const xo = /* @__PURE__ */ T(wo, [["render", Lo]]), Co = {
5879
5879
  methods: {
5880
5880
  handleRender() {
5881
5881
  this.map ? (this.handleClear(), this.area && (this.area.features.forEach((a) => {
5882
- a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => j.convertToMonotonicLng2(e));
5882
+ a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => F.convertToMonotonicLng2(e));
5883
5883
  }), this.map.addSource(this.source, {
5884
5884
  type: "geojson",
5885
5885
  data: this.area
@@ -5939,10 +5939,10 @@ const xo = /* @__PURE__ */ T(wo, [["render", Lo]]), Co = {
5939
5939
  }
5940
5940
  }
5941
5941
  };
5942
- function So(a, e, t, r, i, o) {
5943
- return L(), x("div");
5942
+ function zi(a, e, t, r, i, o) {
5943
+ return x(), _("div");
5944
5944
  }
5945
- const ko = /* @__PURE__ */ T(Co, [["render", So]]), zo = {
5945
+ const Pi = /* @__PURE__ */ T(ki, [["render", zi]]), Ti = {
5946
5946
  name: "IdmTerminator",
5947
5947
  props: {
5948
5948
  map: {
@@ -5991,11 +5991,11 @@ const ko = /* @__PURE__ */ T(Co, [["render", So]]), zo = {
5991
5991
  }
5992
5992
  }
5993
5993
  };
5994
- function Po(a, e, t, r, i, o) {
5995
- return L(), x("div");
5994
+ function Ei(a, e, t, r, i, o) {
5995
+ return x(), _("div");
5996
5996
  }
5997
- const To = /* @__PURE__ */ T(zo, [["render", Po]]);
5998
- const Eo = {
5997
+ const Ri = /* @__PURE__ */ T(Ti, [["render", Ei]]);
5998
+ const Ii = {
5999
5999
  name: "IdmLatLng",
6000
6000
  props: {
6001
6001
  map: {
@@ -6053,7 +6053,7 @@ const Eo = {
6053
6053
  this.show ? ((a = this.map) == null || a.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
6054
6054
  },
6055
6055
  handleMouseMove(a) {
6056
- const e = a.lngLat, t = j.lng2pretty(e.lng, 2), r = j.lat2pretty(e.lat, 2);
6056
+ const e = a.lngLat, t = F.lng2pretty(e.lng, 2), r = F.lat2pretty(e.lat, 2);
6057
6057
  this.lngLat = { lng: t, lat: r };
6058
6058
  },
6059
6059
  handleComputeLatLngs() {
@@ -6150,19 +6150,19 @@ const Eo = {
6150
6150
  (a = this.map) != null && a.getLayer(this.layer) && ((e = this.map) == null || e.removeLayer(this.layer)), (t = this.map) != null && t.getLayer(this.labelLayer) && ((r = this.map) == null || r.removeLayer(this.labelLayer)), (i = this.map) != null && i.getSource(this.source) && ((o = this.map) == null || o.removeSource(this.source));
6151
6151
  }
6152
6152
  }
6153
- }, Io = (a) => (H("data-v-7367f59b"), a = a(), G(), a), Ro = /* @__PURE__ */ Io(() => /* @__PURE__ */ l("span", null, ", ", -1));
6154
- function Do(a, e, t, r, i, o) {
6155
- return i.lngLat ? (L(), x("div", {
6153
+ };
6154
+ function Di(a, e, t, r, i, o) {
6155
+ return i.lngLat ? (x(), _("div", {
6156
6156
  key: 0,
6157
6157
  class: "lat-lng-tip",
6158
- style: F({ right: i.right + "px", bottom: t.bottom })
6158
+ style: $({ right: i.right + "px", bottom: t.bottom })
6159
6159
  }, [
6160
6160
  l("span", null, S(i.lngLat.lat.pretty), 1),
6161
- Ro,
6161
+ e[0] || (e[0] = l("span", null, ", ", -1)),
6162
6162
  l("span", null, S(i.lngLat.lng.pretty), 1)
6163
- ], 4)) : $("", !0);
6163
+ ], 4)) : B("", !0);
6164
6164
  }
6165
- const Qe = /* @__PURE__ */ T(Eo, [["render", Do], ["__scopeId", "data-v-7367f59b"]]), Ao = {
6165
+ const je = /* @__PURE__ */ T(Ii, [["render", Di], ["__scopeId", "data-v-7367f59b"]]), Ai = {
6166
6166
  name: "IdmMeasure",
6167
6167
  props: {
6168
6168
  map: {
@@ -6266,7 +6266,7 @@ const Qe = /* @__PURE__ */ T(Eo, [["render", Do], ["__scopeId", "data-v-7367f59b
6266
6266
  const s = this.geojson.filter((c) => c.id === e.split("-")[0])[0].features.filter((c) => c.geometry.type === "Point");
6267
6267
  if (s.length > 2 && s.filter((h) => h.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
6268
6268
  const h = document.createElement("div");
6269
- h.className = "point-contextmenu-marker", h.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new ne.Marker(h).setOffset([24, 0]).setLngLat([a.lngLat.lng, a.lngLat.lat]).addTo(this.map);
6269
+ h.className = "point-contextmenu-marker", h.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new re.Marker(h).setOffset([24, 0]).setLngLat([a.lngLat.lng, a.lngLat.lat]).addTo(this.map);
6270
6270
  }
6271
6271
  }
6272
6272
  },
@@ -6302,10 +6302,10 @@ const Qe = /* @__PURE__ */ T(Eo, [["render", Do], ["__scopeId", "data-v-7367f59b
6302
6302
  let t = 0;
6303
6303
  const r = [];
6304
6304
  for (let i = 1; i < e.length; i++) {
6305
- const o = e[i - 1], n = e[i], s = o.properties, c = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, h = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, d = te.calculateDistance(c, h, s.mode === "RL", 2), p = te.calculateBearing(c, h, s.mode === "RL", 2);
6306
- t = j.roundPrecision(t + d, 2);
6305
+ const o = e[i - 1], n = e[i], s = o.properties, c = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, h = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, d = Q.calculateDistance(c, h, s.mode === "RL", 2), p = Q.calculateBearing(c, h, s.mode === "RL", 2);
6306
+ t = F.roundPrecision(t + d, 2);
6307
6307
  let g;
6308
- s.mode === "RL" ? g = j.convertToMonotonicLng([c, h]) : g = j.convertToMonotonicLng(te.interpolateCoordinates(c, h, 200));
6308
+ s.mode === "RL" ? g = F.convertToMonotonicLng([c, h]) : g = F.convertToMonotonicLng(Q.interpolateCoordinates(c, h, 200));
6309
6309
  const u = C.lineString(g.map((y) => [y.lng, y.lat]));
6310
6310
  u.properties.dist = d, u.properties.bearing = p, u.properties.total = t, r.push(u);
6311
6311
  }
@@ -6318,17 +6318,17 @@ const Qe = /* @__PURE__ */ T(Eo, [["render", Do], ["__scopeId", "data-v-7367f59b
6318
6318
  let o, n;
6319
6319
  if (e) {
6320
6320
  const c = e.properties, h = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, d = { lng: t.lng, lat: t.lat };
6321
- o = te.calculateDistance(h, d, c.mode === "RL", 2), n = te.calculateBearing(h, d, c.mode === "RL", 2);
6321
+ o = Q.calculateDistance(h, d, c.mode === "RL", 2), n = Q.calculateBearing(h, d, c.mode === "RL", 2);
6322
6322
  let p;
6323
- c.mode === "RL" ? p = j.convertToMonotonicLng([h, d]) : p = j.convertToMonotonicLng(te.interpolateCoordinates(h, d, 200));
6323
+ c.mode === "RL" ? p = F.convertToMonotonicLng([h, d]) : p = F.convertToMonotonicLng(Q.interpolateCoordinates(h, d, 200));
6324
6324
  const g = C.lineString(p.map((u) => [u.lng, u.lat]));
6325
6325
  g.properties.dist = o, g.properties.bearing = n, i.features.push(g);
6326
6326
  }
6327
6327
  if (r) {
6328
6328
  const c = t.properties, h = t, d = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
6329
- o = te.calculateDistance(h, d, c.mode === "RL", 2), n = te.calculateBearing(h, d, c.mode === "RL", 2);
6329
+ o = Q.calculateDistance(h, d, c.mode === "RL", 2), n = Q.calculateBearing(h, d, c.mode === "RL", 2);
6330
6330
  let p;
6331
- c.mode === "RL" ? p = j.convertToMonotonicLng([h, d]) : p = j.convertToMonotonicLng(te.interpolateCoordinates(h, d, 200));
6331
+ c.mode === "RL" ? p = F.convertToMonotonicLng([h, d]) : p = F.convertToMonotonicLng(Q.interpolateCoordinates(h, d, 200));
6332
6332
  const g = C.lineString(p.map((u) => [u.lng, u.lat]));
6333
6333
  g.properties.dist = o, g.properties.bearing = n, i.features.push(g);
6334
6334
  }
@@ -6370,11 +6370,11 @@ const Qe = /* @__PURE__ */ T(Eo, [["render", Do], ["__scopeId", "data-v-7367f59b
6370
6370
  }
6371
6371
  });
6372
6372
  let s;
6373
- if (r ? s = '<div class="marker-label">Drag and drop</div>' : s = `<div class="marker-label">Tol distance: <b>${j.roundPrecision((a.total ?? 0) + o, 2)}</b>nm, bearing: <b>${n}</b>°</div><div class="marker-label">${this.navigation === "RL" ? "RL" : "GC"} mode, using 'Shift' to switch</div><div class="marker-label">Double click to end</div>`, this.tipMarker)
6373
+ if (r ? s = '<div class="marker-label">Drag and drop</div>' : s = `<div class="marker-label">Tol distance: <b>${F.roundPrecision((a.total ?? 0) + o, 2)}</b>nm, bearing: <b>${n}</b>°</div><div class="marker-label">${this.navigation === "RL" ? "RL" : "GC"} mode, using 'Shift' to switch</div><div class="marker-label">Double click to end</div>`, this.tipMarker)
6374
6374
  this.tipMarker._element.innerHTML = s, this.tipMarker.setLngLat([t.lng, t.lat]);
6375
6375
  else {
6376
6376
  const c = document.createElement("div");
6377
- c.className = "tip-marker", c.innerHTML = s, this.tipMarker = new ne.Marker(c).setOffset([140, 0]).setLngLat([t.lng, t.lat]).addTo(this.map);
6377
+ c.className = "tip-marker", c.innerHTML = s, this.tipMarker = new re.Marker(c).setOffset([140, 0]).setLngLat([t.lng, t.lat]).addTo(this.map);
6378
6378
  }
6379
6379
  },
6380
6380
  handleMove(a) {
@@ -6432,12 +6432,12 @@ const Qe = /* @__PURE__ */ T(Eo, [["render", Do], ["__scopeId", "data-v-7367f59b
6432
6432
  for (const n of o) {
6433
6433
  const s = document.createElement("div");
6434
6434
  s.id = `${a.id}-${n.properties.id}`, s.className = `${a.closed ? "point-marker closed" : "point-marker"}`, s.innerHTML = '<div class="marker-circle"></div>';
6435
- const c = new ne.Marker({ element: s, draggable: !0, contextmenu: !0 }).setLngLat(n.geometry.coordinates).addTo(this.map);
6435
+ const c = new re.Marker({ element: s, draggable: !0, contextmenu: !0 }).setLngLat(n.geometry.coordinates).addTo(this.map);
6436
6436
  c.on("drag", this.handleDrag), c.on("dragend", this.handleDragEnd), this.pointMarkers[a.id] ? this.pointMarkers[a.id].push(c) : this.pointMarkers[a.id] = [c];
6437
6437
  }
6438
6438
  if (a.closed) {
6439
6439
  const n = o.at(-1), c = a.features.filter((d) => d.geometry.type === "LineString").at(-1), h = document.createElement("div");
6440
- h.className = "point-summary-marker", h.innerHTML = `<div id="${a.id}" class="marker-close">×</div><div class="marker-label">Tol: ${c.properties.total}nm</div>`, this.closeMarkers[a.id] = new ne.Marker(h).setOffset([60, 0]).setLngLat(n.geometry.coordinates).addTo(this.map);
6440
+ h.className = "point-summary-marker", h.innerHTML = `<div id="${a.id}" class="marker-close">×</div><div class="marker-label">Tol: ${c.properties.total}nm</div>`, this.closeMarkers[a.id] = new re.Marker(h).setOffset([60, 0]).setLngLat(n.geometry.coordinates).addTo(this.map);
6441
6441
  }
6442
6442
  }
6443
6443
  },
@@ -6450,11 +6450,11 @@ const Qe = /* @__PURE__ */ T(Eo, [["render", Do], ["__scopeId", "data-v-7367f59b
6450
6450
  }
6451
6451
  }
6452
6452
  };
6453
- function Mo(a, e, t, r, i, o) {
6454
- return L(), x("div");
6453
+ function Mi(a, e, t, r, i, o) {
6454
+ return x(), _("div");
6455
6455
  }
6456
- const $o = /* @__PURE__ */ T(Ao, [["render", Mo]]);
6457
- const Bo = {
6456
+ const Bi = /* @__PURE__ */ T(Ai, [["render", Mi]]);
6457
+ const Ni = {
6458
6458
  name: "IdmENC",
6459
6459
  props: {
6460
6460
  map: {
@@ -6485,8 +6485,8 @@ const Bo = {
6485
6485
  emits: ["enc"],
6486
6486
  data() {
6487
6487
  return {
6488
- helper: Ae,
6489
- vendor: this.$attrs.permission & Ae.LEVEL.Supper ? "hi" : "i4",
6488
+ helper: Ce,
6489
+ vendor: this.$attrs.permission & Ce.LEVEL.Supper ? "hi" : "i4",
6490
6490
  right: 10
6491
6491
  };
6492
6492
  },
@@ -6506,64 +6506,64 @@ const Bo = {
6506
6506
  }
6507
6507
  },
6508
6508
  methods: {}
6509
- }, Ke = (a) => (H("data-v-ab627b83"), a = a(), G(), a), No = { key: 0 }, Wo = { class: "bar-item" }, Oo = /* @__PURE__ */ Ke(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "HI", -1)), jo = [
6510
- Oo
6511
- ], Fo = /* @__PURE__ */ Ke(() => /* @__PURE__ */ l("span", { class: "iconfont" }, "I4", -1)), Uo = [
6512
- Fo
6513
- ];
6514
- function Vo(a, e, t, r, i, o) {
6515
- return t.enabled && t.permission & i.helper.LEVEL.Supper ? (L(), x("div", No, [
6509
+ }, Wi = { key: 0 }, Oi = { class: "bar-item" };
6510
+ function ji(a, e, t, r, i, o) {
6511
+ return t.enabled && t.permission & i.helper.LEVEL.Supper ? (x(), _("div", Wi, [
6516
6512
  l("div", {
6517
6513
  class: "menu-bar-box",
6518
- style: F({ position: "absolute", right: i.right + "px", bottom: t.bottom })
6514
+ style: $({ position: "absolute", right: i.right + "px", bottom: t.bottom })
6519
6515
  }, [
6520
- l("div", Wo, [
6516
+ l("div", Oi, [
6521
6517
  l("div", {
6522
6518
  class: M(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
6523
6519
  onClick: e[0] || (e[0] = (n) => i.vendor = "hi")
6524
- }, jo, 2),
6520
+ }, e[2] || (e[2] = [
6521
+ l("span", { class: "iconfont" }, "HI", -1)
6522
+ ]), 2),
6525
6523
  l("div", {
6526
6524
  class: M(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
6527
6525
  onClick: e[1] || (e[1] = (n) => i.vendor = "i4")
6528
- }, Uo, 2)
6526
+ }, e[3] || (e[3] = [
6527
+ l("span", { class: "iconfont" }, "I4", -1)
6528
+ ]), 2)
6529
6529
  ])
6530
6530
  ], 4)
6531
- ])) : $("", !0);
6531
+ ])) : B("", !0);
6532
6532
  }
6533
- const Zo = /* @__PURE__ */ T(Bo, [["render", Vo], ["__scopeId", "data-v-ab627b83"]]);
6534
- const Ho = {
6533
+ const Fi = /* @__PURE__ */ T(Ni, [["render", ji], ["__scopeId", "data-v-ab627b83"]]);
6534
+ const $i = {
6535
6535
  name: "IdmGLV2",
6536
6536
  components: {
6537
- IdmGlLayer: Nt,
6538
- IdmWindBarb: Ht,
6539
- IdmWindParticle: sa,
6540
- IdmCurrents: ua,
6541
- IdmCurrentParticle: ka,
6542
- IdmSigWave: Ta,
6543
- IdmSwell: Ra,
6544
- IdmPrmsl: Ma,
6537
+ IdmGlLayer: lt,
6538
+ IdmWindBarb: ft,
6539
+ IdmWindParticle: wt,
6540
+ IdmCurrents: Tt,
6541
+ IdmCurrentParticle: Dt,
6542
+ IdmSigWave: Bt,
6543
+ IdmSwell: Ot,
6544
+ IdmPrmsl: $t,
6545
6545
  // IdmIceEdge,
6546
- IdmIceberg: Na,
6547
- IdmTropicals: Ye,
6548
- IdmPrecip3h: bi,
6549
- IdmVisibility: Ti,
6550
- IdmWaterTemp: Oi,
6551
- IdmTemp: Ki,
6552
- IdmArctic: hr,
6553
- IdmWarZone: Ur,
6554
- IdmGmdssArea: Hr,
6555
- IdmEcaZone: Xr,
6556
- IdmAlertZone: eo,
6557
- IdmPort: uo,
6558
- IdmLoadLine: go,
6559
- IdmTimezone: _o,
6560
- IdmVRA: xo,
6561
- IdmSpecialArea: ko,
6562
- IdmTerminator: To,
6563
- IdmLatLng: Qe,
6564
- IdmMeasure: $o,
6565
- IdmPoint: Or,
6566
- IdmENC: Zo
6546
+ IdmIceberg: Zt,
6547
+ IdmTropicals: Oe,
6548
+ IdmPrecip3h: pa,
6549
+ IdmVisibility: fa,
6550
+ IdmWaterTemp: La,
6551
+ IdmTemp: Ca,
6552
+ IdmArctic: Pa,
6553
+ IdmWarZone: qa,
6554
+ IdmGmdssArea: Ka,
6555
+ IdmEcaZone: ai,
6556
+ IdmAlertZone: ni,
6557
+ IdmPort: fi,
6558
+ IdmLoadLine: vi,
6559
+ IdmTimezone: xi,
6560
+ IdmVRA: Si,
6561
+ IdmSpecialArea: Pi,
6562
+ IdmTerminator: Ri,
6563
+ IdmLatLng: je,
6564
+ IdmMeasure: Bi,
6565
+ IdmPoint: Ga,
6566
+ IdmENC: Fi
6567
6567
  },
6568
6568
  props: {
6569
6569
  map: {
@@ -6607,7 +6607,7 @@ const Ho = {
6607
6607
  enc: "",
6608
6608
  // enc: 'i4',
6609
6609
  defaultMeteoToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg",
6610
- helper: new Gt()
6610
+ helper: new gt()
6611
6611
  };
6612
6612
  },
6613
6613
  watch: {
@@ -6621,7 +6621,7 @@ const Ho = {
6621
6621
  },
6622
6622
  map: {
6623
6623
  handler() {
6624
- this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new Oe(this.map), this.handleRampColorInitial());
6624
+ this.map && (this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.viewport = new Te(this.map), this.handleRampColorInitial());
6625
6625
  },
6626
6626
  immediate: !0
6627
6627
  },
@@ -6689,7 +6689,7 @@ const Ho = {
6689
6689
  if (this.map) {
6690
6690
  const g = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, u = (o = this.map) == null ? void 0 : o.getBounds(), y = `${u._sw.lng},${u._sw.lat},${u._ne.lng},${u._ne.lat}`;
6691
6691
  if (this.handleRampColorState(), this.particleFactor) {
6692
- const f = We.WEATHER_LAYERS.find((m) => {
6692
+ const f = Pe.WEATHER_LAYERS.find((m) => {
6693
6693
  var v;
6694
6694
  return ((v = m.peer) == null ? void 0 : v.weight) === this.particleFactor.weight;
6695
6695
  });
@@ -6698,42 +6698,42 @@ const Ho = {
6698
6698
  if (this.weatherWeight > 0) {
6699
6699
  let f = this.weatherWeight, m;
6700
6700
  if (a.tropicals || this.weatherWeight & 256 && (m = this.weatherLayers.tropicals, m && (f -= 256, m.version = Math.random() + 1)), f > 0) {
6701
- const v = await se.get(`${this.gateway}/api/arc/weather/layers/links?l=${f}&v=${this.source}&z=${g}&bbox=${y}&t=${this.ts}`, {
6701
+ const v = await ie.get(`${this.gateway}/api/arc/weather/layers/links?l=${f}&v=${this.source}&z=${g}&bbox=${y}&t=${this.ts}`, {
6702
6702
  headers: {
6703
6703
  Authorization: this.token || this.defaultMeteoToken
6704
6704
  }
6705
6705
  });
6706
6706
  if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + t), console.log("weather links elapsed: ", r, ", total: ", t += r), ((n = v == null ? void 0 : v.data) == null ? void 0 : n.code) === 0) {
6707
6707
  const b = (s = v == null ? void 0 : v.data) == null ? void 0 : s.data, w = [];
6708
- for (const _ in b)
6709
- _ === "ice-edge" && (b[_] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), _ !== "tropicals" && w.push(
6710
- se.get(b[_], {
6708
+ for (const L in b)
6709
+ L === "ice-edge" && (b[L] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), L !== "tropicals" && w.push(
6710
+ ie.get(b[L], {
6711
6711
  headers: {
6712
6712
  Authorization: this.token || this.defaultMeteoToken,
6713
- key: _
6713
+ key: L
6714
6714
  },
6715
- responseType: /\.(jpg|png)$/.test(b[_]) ? "blob" : "json"
6715
+ responseType: /\.(jpg|png)$/.test(b[L]) ? "blob" : "json"
6716
6716
  }).catch((D) => {
6717
- console.log(`[${_}] fetch layer error: ${D}`);
6717
+ console.log(`[${L}] fetch layer error: ${D}`);
6718
6718
  })
6719
6719
  );
6720
6720
  const k = await Promise.all(w);
6721
- this.weatherLayers = {}, k.map((_) => {
6722
- var B, W, O, J;
6723
- const D = ((B = _ == null ? void 0 : _.data) == null ? void 0 : B.data) || (_ == null ? void 0 : _.data), A = (O = (W = _ == null ? void 0 : _.config) == null ? void 0 : W.headers) == null ? void 0 : O.key;
6721
+ this.weatherLayers = {}, k.map((L) => {
6722
+ var N, O, j, H;
6723
+ const D = ((N = L == null ? void 0 : L.data) == null ? void 0 : N.data) || (L == null ? void 0 : L.data), A = (j = (O = L == null ? void 0 : L.config) == null ? void 0 : O.headers) == null ? void 0 : j.key;
6724
6724
  A && D && (this.weatherLayers[A] = {
6725
6725
  raw: D,
6726
- type: ((J = _ == null ? void 0 : _.config) == null ? void 0 : J.responseType) === "blob" ? "image" : "json",
6726
+ type: ((H = L == null ? void 0 : L.config) == null ? void 0 : H.responseType) === "blob" ? "image" : "json",
6727
6727
  etime: this.ts
6728
6728
  });
6729
- }), b.tropicals && se.get(b.tropicals, {
6729
+ }), b.tropicals && ie.get(b.tropicals, {
6730
6730
  headers: {
6731
6731
  Authorization: this.token || this.defaultMeteoToken,
6732
6732
  key: "tropicals"
6733
6733
  }
6734
- }).then((_) => {
6735
- var B, W, O;
6736
- const D = qe.convert2Geojson(((B = _ == null ? void 0 : _.data) == null ? void 0 : B.data) || (_ == null ? void 0 : _.data)), A = (O = (W = _ == null ? void 0 : _.config) == null ? void 0 : W.headers) == null ? void 0 : O.key;
6734
+ }).then((L) => {
6735
+ var N, O, j;
6736
+ const D = We.convert2Geojson(((N = L == null ? void 0 : L.data) == null ? void 0 : N.data) || (L == null ? void 0 : L.data)), A = (j = (O = L == null ? void 0 : L.config) == null ? void 0 : O.headers) == null ? void 0 : j.key;
6737
6737
  this.weatherLayers[A] = {
6738
6738
  data: D,
6739
6739
  active: !0,
@@ -6777,7 +6777,7 @@ const Ho = {
6777
6777
  let n = !1;
6778
6778
  if (this.otherWeight & 2048 && (o = this.otherWeight - 2048, n = !0), o) {
6779
6779
  if (a.all) {
6780
- const s = await se.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
6780
+ const s = await ie.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
6781
6781
  headers: {
6782
6782
  Authorization: this.token || this.defaultMeteoToken
6783
6783
  }
@@ -6786,7 +6786,7 @@ const Ho = {
6786
6786
  const c = (t = s == null ? void 0 : s.data) == null ? void 0 : t.data, h = [];
6787
6787
  for (const p in c)
6788
6788
  h.push(
6789
- se.get(c[p], {
6789
+ ie.get(c[p], {
6790
6790
  headers: {
6791
6791
  Authorization: this.token || this.defaultMeteoToken,
6792
6792
  key: p
@@ -6801,7 +6801,7 @@ const Ho = {
6801
6801
  });
6802
6802
  }
6803
6803
  } else if (a.dayNight && o & 1024) {
6804
- const s = await se.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
6804
+ const s = await ie.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
6805
6805
  headers: {
6806
6806
  Authorization: this.token || this.defaultMeteoToken
6807
6807
  }
@@ -6810,7 +6810,7 @@ const Ho = {
6810
6810
  const c = (i = s == null ? void 0 : s.data) == null ? void 0 : i.data, h = [];
6811
6811
  for (const p in c)
6812
6812
  h.push(
6813
- se.get(c[p], {
6813
+ ie.get(c[p], {
6814
6814
  headers: {
6815
6815
  Authorization: this.token || this.defaultMeteoToken,
6816
6816
  key: p
@@ -6878,7 +6878,7 @@ const Ho = {
6878
6878
  var h, d, p, g;
6879
6879
  const a = (/* @__PURE__ */ new Date()).valueOf();
6880
6880
  let e = 0, t = 0;
6881
- const r = (h = this.map) == null ? void 0 : h.getBounds(), i = this.map.getZoom(), o = Ie(r._sw.lng), n = Ie(r._ne.lng), s = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
6881
+ const r = (h = this.map) == null ? void 0 : h.getBounds(), i = this.map.getZoom(), o = we(r._sw.lng), n = we(r._ne.lng), s = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
6882
6882
  for (const u in this.weatherLayers)
6883
6883
  if (this.weatherLayers[u].active && this.weatherLayers[u].type === "json") {
6884
6884
  this.weatherLayers[u].active = !1, this.weatherLayers[u].version = Math.random() + 1;
@@ -6891,20 +6891,20 @@ const Ho = {
6891
6891
  o > n ? v.forEach((b, w) => {
6892
6892
  var k;
6893
6893
  if ((b >= o && b <= 180 || b >= -180 && b <= n) && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6894
- const _ = C.point([b, m], {
6894
+ const L = C.point([b, m], {
6895
6895
  val: f[m].val[w],
6896
6896
  spd: (k = f[m].spd) == null ? void 0 : k[w]
6897
6897
  });
6898
- y.push(_);
6898
+ y.push(L);
6899
6899
  }
6900
6900
  }) : v.forEach((b, w) => {
6901
6901
  var k;
6902
6902
  if (b >= o && b <= n && (!(i <= this.zoom) || b % (i < this.zoom / 2 ? 5 : 3) === 0)) {
6903
- const _ = C.point([b, m], {
6903
+ const L = C.point([b, m], {
6904
6904
  val: f[m].val[w],
6905
6905
  spd: (k = f[m].spd) == null ? void 0 : k[w]
6906
6906
  });
6907
- y.push(_);
6907
+ y.push(L);
6908
6908
  }
6909
6909
  });
6910
6910
  }
@@ -6938,9 +6938,9 @@ const Ho = {
6938
6938
  const b = [];
6939
6939
  for (const w in (g = m.raw) == null ? void 0 : g.Polygon) {
6940
6940
  const k = m.raw.Polygon[w];
6941
- for (const _ of k)
6941
+ for (const L of k)
6942
6942
  b.push(
6943
- C.polygon(_, {
6943
+ C.polygon(L, {
6944
6944
  val: Number(w)
6945
6945
  })
6946
6946
  );
@@ -7022,7 +7022,7 @@ const Ho = {
7022
7022
  }
7023
7023
  for (const v in f.Point)
7024
7024
  f.Point[v].lng.forEach((b, w) => {
7025
- b = Ie(b), m.push(
7025
+ b = we(b), m.push(
7026
7026
  C.point([b, v], {
7027
7027
  val: f.Point[v].val[w],
7028
7028
  type: f.Point[v].type[w]
@@ -7062,7 +7062,7 @@ const Ho = {
7062
7062
  this.weatherLayers[a].active && this.weatherLayers[a].type === "image" && (this.weatherLayers[a].active = !0, this.weatherLayers[a].version = Math.random() + 1);
7063
7063
  },
7064
7064
  handleBboxClip(a, e) {
7065
- const t = [], r = Ie(e._sw.lng), i = Ie(e._ne.lng);
7065
+ const t = [], r = we(e._sw.lng), i = we(e._ne.lng);
7066
7066
  return a.features.forEach((o) => {
7067
7067
  if (o.geometry.type !== "Point")
7068
7068
  if (r > i) {
@@ -7123,7 +7123,7 @@ const Ho = {
7123
7123
  ts: e.utc().format(),
7124
7124
  wt: !0,
7125
7125
  src: this.source
7126
- }, r = await se.get(`${this.gateway}/api/arc/meteo/query`, {
7126
+ }, r = await ie.get(`${this.gateway}/api/arc/meteo/query`, {
7127
7127
  params: t,
7128
7128
  headers: {
7129
7129
  Authorization: this.token || this.defaultMeteoToken
@@ -7142,15 +7142,15 @@ const Ho = {
7142
7142
  this.particleFactor = a, this.fetchWeatherLayers({ tropicals: !1 });
7143
7143
  }
7144
7144
  }
7145
- }, Go = {
7145
+ }, Ui = {
7146
7146
  key: 0,
7147
7147
  className: "map-gl-home"
7148
7148
  };
7149
- function Jo(a, e, t, r, i, o) {
7150
- var ae, X, Y, be, Q, E, U, ve, K, _e, ie, re, oe, ke, ze, Pe, Te, Ee, Ne, Fe, Ue, Ve, Ze, He, Ge, Je;
7151
- const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), d = z("IdmPrmsl"), p = z("IdmIceberg"), g = z("IdmTropicals"), u = z("IdmCurrents"), y = z("IdmCurrentParticle"), f = z("IdmWindBarb"), m = z("IdmWindParticle"), v = z("IdmPrecip3h"), b = z("IdmVisibility"), w = z("IdmWaterTemp"), k = z("IdmTemp"), _ = z("IdmArctic"), D = z("IdmWarZone"), A = z("IdmGmdssArea"), B = z("IdmEcaZone"), W = z("IdmAlertZone"), O = z("IdmPort"), J = z("IdmLoadLine"), de = z("IdmTimezone"), pe = z("IdmVRA"), me = z("IdmSpecialArea"), ue = z("IdmTerminator"), ye = z("IdmLatLng"), fe = z("IdmMeasure"), ge = z("IdmPoint");
7152
- return t.map ? (L(), x("div", Go, [
7153
- P(n, I({
7149
+ function Vi(a, e, t, r, i, o) {
7150
+ var K, G, J, pe, X, E, U, me, q, ue, ee, te, ae, fe, ge, be, ve, Le, ze, Ee, Re, Ie, De, Ae, Me, Be;
7151
+ const n = z("IdmGlLayer"), s = z("IdmENC"), c = z("IdmSigWave"), h = z("IdmSwell"), d = z("IdmPrmsl"), p = z("IdmIceberg"), g = z("IdmTropicals"), u = z("IdmCurrents"), y = z("IdmCurrentParticle"), f = z("IdmWindBarb"), m = z("IdmWindParticle"), v = z("IdmPrecip3h"), b = z("IdmVisibility"), w = z("IdmWaterTemp"), k = z("IdmTemp"), L = z("IdmArctic"), D = z("IdmWarZone"), A = z("IdmGmdssArea"), N = z("IdmEcaZone"), O = z("IdmAlertZone"), j = z("IdmPort"), H = z("IdmLoadLine"), oe = z("IdmTimezone"), se = z("IdmVRA"), ne = z("IdmSpecialArea"), le = z("IdmTerminator"), ce = z("IdmLatLng"), he = z("IdmMeasure"), de = z("IdmPoint");
7152
+ return t.map ? (x(), _("div", Ui, [
7153
+ P(n, R({
7154
7154
  ref: "layer",
7155
7155
  map: t.map,
7156
7156
  "toggle-version": i.toggleVersion,
@@ -7158,48 +7158,48 @@ function Jo(a, e, t, r, i, o) {
7158
7158
  }, a.$attrs, {
7159
7159
  onWeather: o.handleWeatherLayerChange,
7160
7160
  onOther: o.handleOtherLayerChange,
7161
- onCoordinate: e[0] || (e[0] = (ee) => i.showCoord = ee),
7162
- onMeasure: e[1] || (e[1] = (ee) => i.showMeasure = ee),
7163
- onPoint: e[2] || (e[2] = (ee) => i.showPoint = ee),
7161
+ onCoordinate: e[0] || (e[0] = (Y) => i.showCoord = Y),
7162
+ onMeasure: e[1] || (e[1] = (Y) => i.showMeasure = Y),
7163
+ onPoint: e[2] || (e[2] = (Y) => i.showPoint = Y),
7164
7164
  on3d: o.handle3dToggle,
7165
- onToggleVersion: e[3] || (e[3] = (ee) => i.toggleVersion = ee)
7165
+ onToggleVersion: e[3] || (e[3] = (Y) => i.toggleVersion = Y)
7166
7166
  }), null, 16, ["map", "toggle-version", "map-projection", "onWeather", "onOther", "on3d"]),
7167
- P(s, I({
7167
+ P(s, R({
7168
7168
  map: t.map,
7169
7169
  token: t.token,
7170
- enabled: (ae = i.otherLayers) == null ? void 0 : ae.enc,
7170
+ enabled: (K = i.otherLayers) == null ? void 0 : K.enc,
7171
7171
  "toggle-version": i.toggleVersion
7172
7172
  }, a.$attrs, {
7173
- onEnc: e[4] || (e[4] = (ee) => i.enc = ee)
7173
+ onEnc: e[4] || (e[4] = (Y) => i.enc = Y)
7174
7174
  }), null, 16, ["map", "token", "enabled", "toggle-version"]),
7175
- P(c, I({
7175
+ P(c, R({
7176
7176
  map: t.map,
7177
- "sig-wave": (X = i.weatherLayers) == null ? void 0 : X["sig-wave-height"],
7177
+ "sig-wave": (G = i.weatherLayers) == null ? void 0 : G["sig-wave-height"],
7178
7178
  "before-layer": t.beforeLayer
7179
7179
  }, a.$attrs), null, 16, ["map", "sig-wave", "before-layer"]),
7180
- P(h, I({
7180
+ P(h, R({
7181
7181
  map: t.map,
7182
- swell: (Y = i.weatherLayers) == null ? void 0 : Y.swell,
7182
+ swell: (J = i.weatherLayers) == null ? void 0 : J.swell,
7183
7183
  "before-layer": t.beforeLayer
7184
7184
  }, a.$attrs), null, 16, ["map", "swell", "before-layer"]),
7185
- P(d, I({
7185
+ P(d, R({
7186
7186
  map: t.map,
7187
- prmsl: (be = i.weatherLayers) == null ? void 0 : be.prmsl,
7187
+ prmsl: (pe = i.weatherLayers) == null ? void 0 : pe.prmsl,
7188
7188
  "before-layer": t.beforeLayer,
7189
7189
  "active-weather-layers": i.activeWeatherLayers
7190
7190
  }, a.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
7191
- P(p, I({
7191
+ P(p, R({
7192
7192
  map: t.map,
7193
- iceberg: (Q = i.weatherLayers) == null ? void 0 : Q.iceberg,
7193
+ iceberg: (X = i.weatherLayers) == null ? void 0 : X.iceberg,
7194
7194
  "before-layer": t.beforeLayer
7195
7195
  }, a.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
7196
- P(g, I({
7196
+ P(g, R({
7197
7197
  map: t.map,
7198
7198
  date: t.ts,
7199
7199
  tropicals: (E = i.weatherLayers) == null ? void 0 : E.tropicals,
7200
7200
  "before-layer": t.beforeLayer
7201
7201
  }, a.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
7202
- P(u, I({
7202
+ P(u, R({
7203
7203
  map: t.map,
7204
7204
  "map-projection": i.mapProjection,
7205
7205
  current: (U = i.weatherLayers) == null ? void 0 : U.current,
@@ -7209,18 +7209,18 @@ function Jo(a, e, t, r, i, o) {
7209
7209
  "toggle-version": i.toggleVersion,
7210
7210
  "weather-layers": i.weatherLayers
7211
7211
  }, a.$attrs, { onParticle: o.handleParticle }), null, 16, ["map", "map-projection", "current", "before-layer", "show-particle", "margin-bottom", "toggle-version", "weather-layers", "onParticle"]),
7212
- P(y, I({
7212
+ P(y, R({
7213
7213
  viewport: i.viewport,
7214
- factor: (ve = i.weatherLayers) == null ? void 0 : ve["current-particle"],
7214
+ factor: (me = i.weatherLayers) == null ? void 0 : me["current-particle"],
7215
7215
  "before-layer": t.beforeLayer,
7216
7216
  "toggle-version": i.toggleVersion
7217
7217
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7218
- P(f, I({
7218
+ P(f, R({
7219
7219
  ref: "windBarb",
7220
7220
  map: t.map,
7221
7221
  "map-projection": i.mapProjection,
7222
- wind: (K = i.weatherLayers) == null ? void 0 : K.wind,
7223
- current: (_e = i.weatherLayers) == null ? void 0 : _e.current,
7222
+ wind: (q = i.weatherLayers) == null ? void 0 : q.wind,
7223
+ current: (ue = i.weatherLayers) == null ? void 0 : ue.current,
7224
7224
  "before-layer": t.beforeLayer,
7225
7225
  "margin-bottom": i.showRampColor ? "56px" : "30px",
7226
7226
  "show-particle": i.showWindParticle
@@ -7229,120 +7229,120 @@ function Jo(a, e, t, r, i, o) {
7229
7229
  "weather-layers": i.weatherLayers,
7230
7230
  onParticle: o.handleParticle
7231
7231
  }), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "show-particle", "toggle-version", "weather-layers", "onParticle"]),
7232
- P(m, I({
7232
+ P(m, R({
7233
7233
  viewport: i.viewport,
7234
- factor: (ie = i.weatherLayers) == null ? void 0 : ie["wind-particle"],
7234
+ factor: (ee = i.weatherLayers) == null ? void 0 : ee["wind-particle"],
7235
7235
  "before-layer": t.beforeLayer,
7236
7236
  "toggle-version": i.toggleVersion
7237
7237
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7238
- P(v, I({
7238
+ P(v, R({
7239
7239
  viewport: i.viewport,
7240
- factor: (re = i.weatherLayers) == null ? void 0 : re.precip3h,
7240
+ factor: (te = i.weatherLayers) == null ? void 0 : te.precip3h,
7241
7241
  "before-layer": t.beforeLayer,
7242
7242
  "toggle-version": i.toggleVersion
7243
7243
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7244
- P(b, I({
7244
+ P(b, R({
7245
7245
  viewport: i.viewport,
7246
- factor: (oe = i.weatherLayers) == null ? void 0 : oe.visibility,
7246
+ factor: (ae = i.weatherLayers) == null ? void 0 : ae.visibility,
7247
7247
  "before-layer": t.beforeLayer,
7248
7248
  "toggle-version": i.toggleVersion
7249
7249
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7250
- P(w, I({
7250
+ P(w, R({
7251
7251
  viewport: i.viewport,
7252
- factor: (ke = i.weatherLayers) == null ? void 0 : ke["water-temp"],
7252
+ factor: (fe = i.weatherLayers) == null ? void 0 : fe["water-temp"],
7253
7253
  "before-layer": t.beforeLayer,
7254
7254
  "toggle-version": i.toggleVersion
7255
7255
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7256
- P(k, I({
7256
+ P(k, R({
7257
7257
  viewport: i.viewport,
7258
- factor: (ze = i.weatherLayers) == null ? void 0 : ze.temp,
7258
+ factor: (ge = i.weatherLayers) == null ? void 0 : ge.temp,
7259
7259
  "before-layer": t.beforeLayer,
7260
7260
  "toggle-version": i.toggleVersion
7261
7261
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7262
- P(_, I({
7262
+ P(L, R({
7263
7263
  viewport: i.viewport,
7264
- factor: (Pe = i.weatherLayers) == null ? void 0 : Pe.arctic,
7264
+ factor: (be = i.weatherLayers) == null ? void 0 : be.arctic,
7265
7265
  "before-layer": t.beforeLayer,
7266
7266
  "toggle-version": i.toggleVersion
7267
7267
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
7268
- P(D, I({
7268
+ P(D, R({
7269
7269
  map: t.map,
7270
- zone: (Te = i.otherLayers) == null ? void 0 : Te["war-zones"],
7270
+ zone: (ve = i.otherLayers) == null ? void 0 : ve["war-zones"],
7271
7271
  "before-layer": t.beforeLayer
7272
7272
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7273
- P(A, I({
7273
+ P(A, R({
7274
7274
  map: t.map,
7275
- area: (Ee = i.otherLayers) == null ? void 0 : Ee["gmdss-areas"],
7275
+ area: (Le = i.otherLayers) == null ? void 0 : Le["gmdss-areas"],
7276
7276
  "before-layer": t.beforeLayer
7277
7277
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
7278
- P(B, I({
7278
+ P(N, R({
7279
7279
  map: t.map,
7280
- zone: (Ne = i.otherLayers) == null ? void 0 : Ne["eca-zones"],
7280
+ zone: (ze = i.otherLayers) == null ? void 0 : ze["eca-zones"],
7281
7281
  "before-layer": t.beforeLayer
7282
7282
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7283
- P(W, I({
7283
+ P(O, R({
7284
7284
  map: t.map,
7285
- zone: (Fe = i.otherLayers) == null ? void 0 : Fe["alert-zones"],
7285
+ zone: (Ee = i.otherLayers) == null ? void 0 : Ee["alert-zones"],
7286
7286
  "before-layer": t.beforeLayer
7287
7287
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7288
- P(O, I({
7288
+ P(j, R({
7289
7289
  map: t.map,
7290
- port: (Ue = i.otherLayers) == null ? void 0 : Ue.ports,
7290
+ port: (Re = i.otherLayers) == null ? void 0 : Re.ports,
7291
7291
  "before-layer": t.beforeLayer
7292
7292
  }, a.$attrs), null, 16, ["map", "port", "before-layer"]),
7293
- P(J, I({
7293
+ P(H, R({
7294
7294
  map: t.map,
7295
- line: (Ve = i.otherLayers) == null ? void 0 : Ve["load-lines"],
7295
+ line: (Ie = i.otherLayers) == null ? void 0 : Ie["load-lines"],
7296
7296
  "before-layer": t.beforeLayer
7297
7297
  }, a.$attrs), null, 16, ["map", "line", "before-layer"]),
7298
- P(de, I({
7298
+ P(oe, R({
7299
7299
  map: t.map,
7300
- zone: (Ze = i.otherLayers) == null ? void 0 : Ze["time-zones"],
7300
+ zone: (De = i.otherLayers) == null ? void 0 : De["time-zones"],
7301
7301
  "before-layer": t.beforeLayer
7302
7302
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
7303
- P(pe, I({
7303
+ P(se, R({
7304
7304
  map: t.map,
7305
- area: (He = i.otherLayers) == null ? void 0 : He["voluntary-reporting-area"],
7305
+ area: (Ae = i.otherLayers) == null ? void 0 : Ae["voluntary-reporting-area"],
7306
7306
  "before-layer": t.beforeLayer
7307
7307
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
7308
- P(me, I({
7308
+ P(ne, R({
7309
7309
  map: t.map,
7310
- area: (Ge = i.otherLayers) == null ? void 0 : Ge["special-area"],
7310
+ area: (Me = i.otherLayers) == null ? void 0 : Me["special-area"],
7311
7311
  "before-layer": t.beforeLayer
7312
7312
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
7313
- P(ue, I({
7313
+ P(le, R({
7314
7314
  map: t.map,
7315
- area: (Je = i.otherLayers) == null ? void 0 : Je["day-night"]
7315
+ area: (Be = i.otherLayers) == null ? void 0 : Be["day-night"]
7316
7316
  }, a.$attrs), null, 16, ["map", "area"]),
7317
- P(ye, I({
7317
+ P(ce, R({
7318
7318
  map: t.map,
7319
7319
  show: i.showCoord,
7320
7320
  "toggle-version": i.toggleVersion
7321
7321
  }, a.$attrs), null, 16, ["map", "show", "toggle-version"]),
7322
- P(fe, I({
7322
+ P(he, R({
7323
7323
  map: t.map,
7324
7324
  show: i.showMeasure
7325
7325
  }, a.$attrs), null, 16, ["map", "show"]),
7326
- P(ge, I({
7326
+ P(de, R({
7327
7327
  map: t.map,
7328
7328
  show: i.showPoint,
7329
7329
  meteo: i.meteo
7330
7330
  }, a.$attrs, { onPoint: o.handlePointChange }), null, 16, ["map", "show", "meteo", "onPoint"])
7331
- ])) : $("", !0);
7331
+ ])) : B("", !0);
7332
7332
  }
7333
- const Xo = /* @__PURE__ */ T(Ho, [["render", Jo]]), rs = {
7333
+ const Zi = /* @__PURE__ */ T($i, [["render", Vi]]), er = {
7334
7334
  install(a) {
7335
- a.component("MapboxGL", Xo), a.component("TropicalGL", Ye), a.component("LatLngGL", Qe);
7335
+ a.component("MapboxGL", Zi), a.component("TropicalGL", Oe), a.component("LatLngGL", je);
7336
7336
  }
7337
7337
  };
7338
7338
  export {
7339
- Qe as LatLngGL,
7340
- Xo as MapboxGL,
7341
- rs as MapboxGLPlugin,
7342
- Gt as MapboxHelper,
7339
+ je as LatLngGL,
7340
+ Zi as MapboxGL,
7341
+ er as MapboxGLPlugin,
7342
+ gt as MapboxHelper,
7343
7343
  V as ParticleSchema,
7344
- Ye as TropicalGL,
7345
- Oe as Viewport,
7346
- we as WebGL,
7347
- N as WebGLSchema
7344
+ Oe as TropicalGL,
7345
+ Te as Viewport,
7346
+ ye as WebGL,
7347
+ W as WebGLSchema
7348
7348
  };