@idmwx/idmui-gl3 6.5.2 → 6.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +498 -497
- package/dist/index.umd.cjs +8 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,13 +2,13 @@ var mt = Object.defineProperty;
|
|
|
2
2
|
var ut = (a, e, t) => e in a ? mt(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
|
|
3
3
|
var se = (a, e, t) => (ut(a, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
import { LayerHelper as $e, CompanyHelper as Ve } from "@idm-plugin/tag";
|
|
5
|
-
import
|
|
5
|
+
import re from "moment";
|
|
6
6
|
import Ne from "axios";
|
|
7
|
-
import { resolveComponent as
|
|
7
|
+
import { resolveComponent as j, openBlock as u, createElementBlock as g, createElementVNode as o, normalizeStyle as pe, createVNode as O, withCtx as Me, normalizeClass as ae, Fragment as te, renderList as ie, toDisplayString as k, createCommentVNode as q, createBlock as gt, createTextVNode as ve, withDirectives as Oe, createStaticVNode as yt, vShow as Fe, defineComponent as ft, withModifiers as Ze, mergeProps as K } from "vue";
|
|
8
8
|
import * as Q from "@turf/turf";
|
|
9
9
|
import At from "@mapbox/sphericalmercator";
|
|
10
10
|
import Re from "mapbox-gl";
|
|
11
|
-
import { TropicalHelper as ct, LngLatHelper as
|
|
11
|
+
import { TropicalHelper as ct, LngLatHelper as de, LaneHelper as We } from "@idm-plugin/geo";
|
|
12
12
|
import { TidesAssist as et, Meteo2Assist as Ke } from "@idm-plugin/meteo";
|
|
13
13
|
import Xe from "moment-timezone";
|
|
14
14
|
const Y = (a, e) => {
|
|
@@ -120,7 +120,7 @@ const Y = (a, e) => {
|
|
|
120
120
|
return function(a) {
|
|
121
121
|
var e;
|
|
122
122
|
if (a) {
|
|
123
|
-
const t =
|
|
123
|
+
const t = re(a);
|
|
124
124
|
return `${(e = t == null ? void 0 : t.utc()) == null ? void 0 : e.format("MMM-DD/HHmm")}Z`;
|
|
125
125
|
}
|
|
126
126
|
return "-";
|
|
@@ -301,11 +301,11 @@ const Y = (a, e) => {
|
|
|
301
301
|
class: "radio-tip"
|
|
302
302
|
};
|
|
303
303
|
function aa(a, e, t, r, i, s) {
|
|
304
|
-
const n =
|
|
304
|
+
const n = j("ElTooltip"), l = j("ElRadio"), c = j("ElRadioGroup"), d = j("ElScrollbar");
|
|
305
305
|
return u(), g("div", vt, [
|
|
306
306
|
o("div", {
|
|
307
307
|
class: "menu-bar-box",
|
|
308
|
-
style:
|
|
308
|
+
style: pe({ top: t.top + 10 + "px", right: i.right + "px" })
|
|
309
309
|
}, [
|
|
310
310
|
o("div", bt, [
|
|
311
311
|
O(n, {
|
|
@@ -316,7 +316,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
316
316
|
}, {
|
|
317
317
|
default: Me(() => [
|
|
318
318
|
o("div", {
|
|
319
|
-
class:
|
|
319
|
+
class: ae(t.layerToggle ? "menu-icon active" : "menu-icon"),
|
|
320
320
|
onClick: e[0] || (e[0] = (...h) => s.handleMenuToggle && s.handleMenuToggle(...h))
|
|
321
321
|
}, e[17] || (e[17] = [
|
|
322
322
|
o("span", { class: "iconfont" }, "", -1)
|
|
@@ -328,7 +328,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
328
328
|
], 4),
|
|
329
329
|
o("div", {
|
|
330
330
|
class: "menu-bar-box",
|
|
331
|
-
style:
|
|
331
|
+
style: pe({ top: t.top + 160 + "px", right: i.right + "px" })
|
|
332
332
|
}, [
|
|
333
333
|
o("div", Lt, [
|
|
334
334
|
O(n, {
|
|
@@ -339,7 +339,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
339
339
|
}, {
|
|
340
340
|
default: Me(() => [
|
|
341
341
|
o("div", {
|
|
342
|
-
class:
|
|
342
|
+
class: ae(i.showMeasure ? "menu-icon active" : "menu-icon"),
|
|
343
343
|
onClick: e[1] || (e[1] = (...h) => s.handleMeasureToggle && s.handleMeasureToggle(...h))
|
|
344
344
|
}, e[18] || (e[18] = [
|
|
345
345
|
o("span", { class: "iconfont" }, "", -1)
|
|
@@ -355,7 +355,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
355
355
|
}, {
|
|
356
356
|
default: Me(() => [
|
|
357
357
|
o("div", {
|
|
358
|
-
class:
|
|
358
|
+
class: ae(i.showPoint ? "menu-icon active" : "menu-icon"),
|
|
359
359
|
onClick: e[2] || (e[2] = (...h) => s.handlePointToggle && s.handlePointToggle(...h))
|
|
360
360
|
}, e[19] || (e[19] = [
|
|
361
361
|
o("span", { class: "iconfont" }, "", -1)
|
|
@@ -371,7 +371,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
371
371
|
}, {
|
|
372
372
|
default: Me(() => [
|
|
373
373
|
o("div", {
|
|
374
|
-
class:
|
|
374
|
+
class: ae(i.showCoord ? "menu-icon active" : "menu-icon"),
|
|
375
375
|
onClick: e[3] || (e[3] = (...h) => s.handleCoordToggle && s.handleCoordToggle(...h))
|
|
376
376
|
}, e[20] || (e[20] = [
|
|
377
377
|
o("span", { class: "iconfont" }, "", -1)
|
|
@@ -387,7 +387,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
387
387
|
}, {
|
|
388
388
|
default: Me(() => [
|
|
389
389
|
o("div", {
|
|
390
|
-
class:
|
|
390
|
+
class: ae(i.show3d ? "menu-icon active" : "menu-icon"),
|
|
391
391
|
onClick: e[4] || (e[4] = (...h) => s.handle3DToggle && s.handle3DToggle(...h))
|
|
392
392
|
}, e[21] || (e[21] = [
|
|
393
393
|
o("span", { class: "iconfont" }, "", -1)
|
|
@@ -400,7 +400,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
400
400
|
s.hasCollectedLayers ? (u(), g("div", {
|
|
401
401
|
key: 0,
|
|
402
402
|
class: "active-layers",
|
|
403
|
-
style:
|
|
403
|
+
style: pe({ right: i.right + "px", bottom: "100px" })
|
|
404
404
|
}, [
|
|
405
405
|
o("div", Ct, [
|
|
406
406
|
e[22] || (e[22] = o("div", { style: { margin: "2px 5px" } }, "Weather Layers", -1)),
|
|
@@ -412,9 +412,9 @@ function aa(a, e, t, r, i, s) {
|
|
|
412
412
|
i.autoActive ? (u(), g("i", xt, "")) : (u(), g("i", _t, ""))
|
|
413
413
|
])
|
|
414
414
|
]),
|
|
415
|
-
(u(!0), g(
|
|
415
|
+
(u(!0), g(te, null, ie(i.layers.weather.filter((h) => h.collected), (h) => (u(), g("div", {
|
|
416
416
|
key: h.key,
|
|
417
|
-
class:
|
|
417
|
+
class: ae(s.computeLayerClass(h, i.activeWeatherLayersCollected))
|
|
418
418
|
}, [
|
|
419
419
|
o("div", {
|
|
420
420
|
class: "checkbox",
|
|
@@ -426,21 +426,21 @@ function aa(a, e, t, r, i, s) {
|
|
|
426
426
|
}, k(h.name), 9, It),
|
|
427
427
|
h.key === "wind" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (u(), g("div", Et, [
|
|
428
428
|
o("i", {
|
|
429
|
-
class:
|
|
429
|
+
class: ae(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
|
|
430
430
|
onClick: e[6] || (e[6] = (p) => s.handleToggleWindParticle())
|
|
431
431
|
}, "", 2),
|
|
432
432
|
o("i", {
|
|
433
|
-
class:
|
|
433
|
+
class: ae(["iconfont sub-layer-icon", i.showWindFeatherCollected ? "active" : ""]),
|
|
434
434
|
onClick: e[7] || (e[7] = (p) => s.handleToggleWindFeather())
|
|
435
435
|
}, "", 2)
|
|
436
436
|
])) : q("", !0),
|
|
437
437
|
h.key === "current" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (u(), g("div", kt, [
|
|
438
438
|
o("i", {
|
|
439
|
-
class:
|
|
439
|
+
class: ae(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
|
|
440
440
|
onClick: e[8] || (e[8] = (p) => s.handleToggleCurrentParticle())
|
|
441
441
|
}, "", 2),
|
|
442
442
|
o("i", {
|
|
443
|
-
class:
|
|
443
|
+
class: ae(["iconfont sub-layer-icon", i.showCurrentIsobandCollected ? "active" : ""]),
|
|
444
444
|
onClick: e[9] || (e[9] = (p) => s.handleToggleCurrentIsoband())
|
|
445
445
|
}, "", 2)
|
|
446
446
|
])) : q("", !0)
|
|
@@ -448,10 +448,10 @@ function aa(a, e, t, r, i, s) {
|
|
|
448
448
|
], 4)) : q("", !0),
|
|
449
449
|
o("div", {
|
|
450
450
|
class: "available-layers flex-center",
|
|
451
|
-
style:
|
|
451
|
+
style: pe({ top: t.top + "px", right: t.layerToggle ? "0px" : "-240px" })
|
|
452
452
|
}, [
|
|
453
453
|
o("div", {
|
|
454
|
-
class:
|
|
454
|
+
class: ae(["list-box", t.layerToggle ? "right-bar" : ""])
|
|
455
455
|
}, [
|
|
456
456
|
o("div", Dt, [
|
|
457
457
|
e[23] || (e[23] = o("div", null, "Layers", -1)),
|
|
@@ -474,12 +474,12 @@ function aa(a, e, t, r, i, s) {
|
|
|
474
474
|
])
|
|
475
475
|
]),
|
|
476
476
|
o("div", Tt, [
|
|
477
|
-
(u(!0), g(
|
|
477
|
+
(u(!0), g(te, null, ie(i.layers.weather, (h) => (u(), g(te, {
|
|
478
478
|
key: h.key
|
|
479
479
|
}, [
|
|
480
480
|
h.hide ? q("", !0) : (u(), g("div", {
|
|
481
481
|
key: 0,
|
|
482
|
-
class:
|
|
482
|
+
class: ae(s.computeLayerClass(h, i.activeWeatherLayersCollected))
|
|
483
483
|
}, [
|
|
484
484
|
o("div", Qt, [
|
|
485
485
|
o("div", {
|
|
@@ -492,21 +492,21 @@ function aa(a, e, t, r, i, s) {
|
|
|
492
492
|
}, k(h.name), 9, Nt),
|
|
493
493
|
h.key === "wind" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (u(), g("div", Ot, [
|
|
494
494
|
o("i", {
|
|
495
|
-
class:
|
|
495
|
+
class: ae(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
|
|
496
496
|
onClick: e[12] || (e[12] = (p) => s.handleToggleWindParticle())
|
|
497
497
|
}, "", 2),
|
|
498
498
|
o("i", {
|
|
499
|
-
class:
|
|
499
|
+
class: ae(["iconfont sub-layer-icon", i.showWindFeatherCollected ? "active" : ""]),
|
|
500
500
|
onClick: e[13] || (e[13] = (p) => s.handleToggleWindFeather())
|
|
501
501
|
}, "", 2)
|
|
502
502
|
])) : q("", !0),
|
|
503
503
|
h.key === "current" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (u(), g("div", Ft, [
|
|
504
504
|
o("i", {
|
|
505
|
-
class:
|
|
505
|
+
class: ae(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
|
|
506
506
|
onClick: e[14] || (e[14] = (p) => s.handleToggleCurrentParticle())
|
|
507
507
|
}, "", 2),
|
|
508
508
|
o("i", {
|
|
509
|
-
class:
|
|
509
|
+
class: ae(["iconfont sub-layer-icon", i.showCurrentIsobandCollected ? "active" : ""]),
|
|
510
510
|
onClick: e[15] || (e[15] = (p) => s.handleToggleCurrentIsoband())
|
|
511
511
|
}, "", 2)
|
|
512
512
|
])) : q("", !0)
|
|
@@ -530,11 +530,11 @@ function aa(a, e, t, r, i, s) {
|
|
|
530
530
|
o("div", Gt, [
|
|
531
531
|
e[26] || (e[26] = o("div", { class: "layers-title" }, "Other Layers", -1)),
|
|
532
532
|
o("div", Ut, [
|
|
533
|
-
(u(!0), g(
|
|
533
|
+
(u(!0), g(te, null, ie(i.layers.other, (h) => {
|
|
534
534
|
var p;
|
|
535
535
|
return u(), g("div", {
|
|
536
536
|
key: h.key,
|
|
537
|
-
class:
|
|
537
|
+
class: ae(["layer flex-between", s.computeLayerClass(h, i.activeOtherLayers)]),
|
|
538
538
|
onClick: (L) => s.handleOtherLayerPick(h)
|
|
539
539
|
}, [
|
|
540
540
|
o("div", Kt, [
|
|
@@ -557,16 +557,16 @@ function aa(a, e, t, r, i, s) {
|
|
|
557
557
|
style: { width: "180px", "align-items": "flex-start" }
|
|
558
558
|
}, {
|
|
559
559
|
default: Me(() => [
|
|
560
|
-
(u(!0), g(
|
|
560
|
+
(u(!0), g(te, null, ie(i.sourceList, (h, p) => (u(), gt(l, {
|
|
561
561
|
key: `source${h.name}`,
|
|
562
562
|
value: h.name
|
|
563
563
|
}, {
|
|
564
564
|
default: Me(() => {
|
|
565
|
-
var L,
|
|
565
|
+
var L, E, B, y, I, x;
|
|
566
566
|
return [
|
|
567
|
-
|
|
567
|
+
ve(k(h.name) + " ", 1),
|
|
568
568
|
p !== 0 ? (u(), g("span", $t, k(h.resolution) + "km " + k(h.length) + "days", 1)) : q("", !0),
|
|
569
|
-
p === 0 ? (u(), g("div", ea, "Provides the best forecast")) : (
|
|
569
|
+
p === 0 ? (u(), g("div", ea, "Provides the best forecast")) : (B = (E = (L = h == null ? void 0 : h.update) == null ? void 0 : L.default) == null ? void 0 : E.meta) != null && B.initialisationTime ? (u(), g("div", ta, "Update: " + k(s.computeDateZ((x = (I = (y = h == null ? void 0 : h.update) == null ? void 0 : y.default) == null ? void 0 : I.meta) == null ? void 0 : x.initialisationTime)), 1)) : q("", !0)
|
|
570
570
|
];
|
|
571
571
|
}),
|
|
572
572
|
_: 2
|
|
@@ -775,8 +775,8 @@ class tt {
|
|
|
775
775
|
* @param [lb.x, lb.y, rt.x, rt.y]
|
|
776
776
|
*/
|
|
777
777
|
getBoundPixel() {
|
|
778
|
-
const e = this.map.getBounds(), t = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [s, n] = this.convertNLng(r[0]), [l, c] = this.convertNLng(i[0]), [d, h] = this.mercator.px([s, r[1]], t), [p, L] = this.mercator.px([l, i[1]], t),
|
|
779
|
-
return [p, L, d +
|
|
778
|
+
const e = this.map.getBounds(), t = this.map.getZoom() + 1, r = [e._ne.lng, e._ne.lat], i = [e._sw.lng, e._sw.lat], [s, n] = this.convertNLng(r[0]), [l, c] = this.convertNLng(i[0]), [d, h] = this.mercator.px([s, r[1]], t), [p, L] = this.mercator.px([l, i[1]], t), E = Math.round(this.mercator.size * Math.pow(2, t) * (n + c));
|
|
779
|
+
return [p, L, d + E, h];
|
|
780
780
|
}
|
|
781
781
|
/**
|
|
782
782
|
* [视窗边界像素宽度]
|
|
@@ -957,10 +957,10 @@ class je {
|
|
|
957
957
|
sRange: t.getUniformLocation(r, "u_range_s")
|
|
958
958
|
};
|
|
959
959
|
h.resolution && t.uniform2f(h.resolution, t.canvas.width * e.ratio, t.canvas.height * e.ratio), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, i), h.image && t.uniform1i(h.image, 0), t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, s), h.color && t.uniform1i(h.color, 1), l != null && l.uvRange && (l != null && l.sRange) && (h.uvRange && t.uniform2f(h.uvRange, l.uvRange[0], l.uvRange[1]), h.sRange && t.uniform2f(h.sRange, l.sRange[0], l.sRange[1])), h.scale && t.uniform1f(h.scale, (l == null ? void 0 : l.scale) || 1);
|
|
960
|
-
const p = e.getBoundPixel(), L = e.map.getZoom() + 1,
|
|
961
|
-
for (const
|
|
962
|
-
const
|
|
963
|
-
t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER,
|
|
960
|
+
const p = e.getBoundPixel(), L = e.map.getZoom() + 1, E = e.getWorldCopy(p, L);
|
|
961
|
+
for (const B of E) {
|
|
962
|
+
const y = (B[0] - p[0]) * e.ratio, I = (B[1] - p[3]) * e.ratio, x = B[2] * e.ratio, [f, v, m, b] = [y, x + y, I, x + I], A = new Float32Array([f, m, v, m, f, b, f, b, v, m, v, b]);
|
|
963
|
+
t.bindBuffer(t.ARRAY_BUFFER, n), t.bufferData(t.ARRAY_BUFFER, A, t.STATIC_DRAW), t.drawArrays(t.TRIANGLES, 0, 6);
|
|
964
964
|
}
|
|
965
965
|
} catch (h) {
|
|
966
966
|
console.log(`render failed...${h}`);
|
|
@@ -1008,10 +1008,10 @@ class je {
|
|
|
1008
1008
|
});
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
1011
|
-
class
|
|
1011
|
+
class ne {
|
|
1012
1012
|
}
|
|
1013
1013
|
// 顶点渲染
|
|
1014
|
-
se(
|
|
1014
|
+
se(ne, "vertexSchema", `
|
|
1015
1015
|
//canvas 坐标系上的坐标 (x, y)
|
|
1016
1016
|
attribute vec2 a_position; //像素坐标
|
|
1017
1017
|
attribute vec2 a_texCoord; //纹理坐标
|
|
@@ -1026,7 +1026,7 @@ se(oe, "vertexSchema", `
|
|
|
1026
1026
|
gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
|
|
1027
1027
|
v_texCoord = a_texCoord;
|
|
1028
1028
|
}`), // 类如风、流等u v双变量片元渲染
|
|
1029
|
-
se(
|
|
1029
|
+
se(ne, "uvFragmentSchema", `
|
|
1030
1030
|
precision mediump float;
|
|
1031
1031
|
uniform sampler2D u_image;
|
|
1032
1032
|
uniform vec2 u_range_u_v;
|
|
@@ -1046,7 +1046,7 @@ se(oe, "uvFragmentSchema", `
|
|
|
1046
1046
|
|
|
1047
1047
|
gl_FragColor = color;
|
|
1048
1048
|
}`), // 类如浪、气压等单变量片元渲染
|
|
1049
|
-
se(
|
|
1049
|
+
se(ne, "fragmentSchema", `
|
|
1050
1050
|
precision mediump float;
|
|
1051
1051
|
uniform sampler2D u_image; // 灰度
|
|
1052
1052
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -3210,7 +3210,7 @@ const la = {
|
|
|
3210
3210
|
[1, "rgb(91, 136, 161)"]
|
|
3211
3211
|
];
|
|
3212
3212
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
3213
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
3213
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.uvFragmentSchema);
|
|
3214
3214
|
this.program = e, this.aPositionBuffer = t;
|
|
3215
3215
|
}
|
|
3216
3216
|
this.handleParticleSetup();
|
|
@@ -3264,7 +3264,7 @@ function ca(a, e, t, r, i, s) {
|
|
|
3264
3264
|
return (n = t.factor) != null && n.active ? (u(), g("div", ha, [
|
|
3265
3265
|
o("div", {
|
|
3266
3266
|
class: "legend-bars flex-center",
|
|
3267
|
-
style:
|
|
3267
|
+
style: pe([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
3268
3268
|
}, e[0] || (e[0] = [
|
|
3269
3269
|
o("span", null, "kts", -1),
|
|
3270
3270
|
o("span", null, "0", -1),
|
|
@@ -3538,7 +3538,7 @@ const ga = {
|
|
|
3538
3538
|
[1, "rgb(195,194,194)"]
|
|
3539
3539
|
];
|
|
3540
3540
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
3541
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
3541
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.uvFragmentSchema);
|
|
3542
3542
|
this.program = e, this.aPositionBuffer = t;
|
|
3543
3543
|
}
|
|
3544
3544
|
this.handleParticleSetup();
|
|
@@ -3597,7 +3597,7 @@ function fa(a, e, t, r, i, s) {
|
|
|
3597
3597
|
return (n = t.factor) != null && n.active ? (u(), g("div", ya, [
|
|
3598
3598
|
o("div", {
|
|
3599
3599
|
class: "legend-bars flex-center",
|
|
3600
|
-
style:
|
|
3600
|
+
style: pe([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
3601
3601
|
}, e[0] || (e[0] = [
|
|
3602
3602
|
o("span", null, "kts", -1),
|
|
3603
3603
|
o("span", null, "0", -1),
|
|
@@ -3702,7 +3702,7 @@ const wa = {
|
|
|
3702
3702
|
//13
|
|
3703
3703
|
];
|
|
3704
3704
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
3705
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
3705
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
3706
3706
|
this.program = e, this.aPositionBuffer = t;
|
|
3707
3707
|
}
|
|
3708
3708
|
},
|
|
@@ -3721,7 +3721,7 @@ function ba(a, e, t, r, i, s) {
|
|
|
3721
3721
|
return (n = t.factor) != null && n.active ? (u(), g("div", va, [
|
|
3722
3722
|
o("div", {
|
|
3723
3723
|
class: "legend-bars flex-center",
|
|
3724
|
-
style:
|
|
3724
|
+
style: pe([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
3725
3725
|
}, e[0] || (e[0] = [
|
|
3726
3726
|
o("span", null, "m", -1),
|
|
3727
3727
|
o("span", null, "0.5", -1),
|
|
@@ -4249,7 +4249,7 @@ const za = {
|
|
|
4249
4249
|
// 100%
|
|
4250
4250
|
];
|
|
4251
4251
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
4252
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
4252
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
4253
4253
|
this.program = e, this.aPositionBuffer = t;
|
|
4254
4254
|
}
|
|
4255
4255
|
},
|
|
@@ -4268,7 +4268,7 @@ function Sa(a, e, t, r, i, s) {
|
|
|
4268
4268
|
return (n = t.factor) != null && n.active ? (u(), g("div", Ma, [
|
|
4269
4269
|
o("div", {
|
|
4270
4270
|
class: "legend-bars flex-center",
|
|
4271
|
-
style:
|
|
4271
|
+
style: pe([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
4272
4272
|
}, e[0] || (e[0] = [
|
|
4273
4273
|
o("span", null, null, -1),
|
|
4274
4274
|
o("span", { style: { display: "inline-block", position: "relative", left: "-10px" } }, "%", -1),
|
|
@@ -4365,7 +4365,7 @@ const Qa = {
|
|
|
4365
4365
|
// 100%
|
|
4366
4366
|
];
|
|
4367
4367
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
4368
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
4368
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
4369
4369
|
this.program = e, this.aPositionBuffer = t;
|
|
4370
4370
|
}
|
|
4371
4371
|
},
|
|
@@ -4384,7 +4384,7 @@ function Na(a, e, t, r, i, s) {
|
|
|
4384
4384
|
return (n = t.factor) != null && n.active ? (u(), g("div", Ha, [
|
|
4385
4385
|
o("div", {
|
|
4386
4386
|
class: "legend-bars flex-center",
|
|
4387
|
-
style:
|
|
4387
|
+
style: pe([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
4388
4388
|
}, e[0] || (e[0] = [
|
|
4389
4389
|
o("span", null, "%", -1),
|
|
4390
4390
|
o("span", null, "20", -1),
|
|
@@ -4483,7 +4483,7 @@ const Fa = {
|
|
|
4483
4483
|
// 4m
|
|
4484
4484
|
];
|
|
4485
4485
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
4486
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
4486
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
4487
4487
|
this.program = e, this.aPositionBuffer = t;
|
|
4488
4488
|
}
|
|
4489
4489
|
},
|
|
@@ -4502,7 +4502,7 @@ function ja(a, e, t, r, i, s) {
|
|
|
4502
4502
|
return (n = t.factor) != null && n.active ? (u(), g("div", Ra, [
|
|
4503
4503
|
o("div", {
|
|
4504
4504
|
class: "legend-bars flex-center",
|
|
4505
|
-
style:
|
|
4505
|
+
style: pe([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
4506
4506
|
}, e[0] || (e[0] = [
|
|
4507
4507
|
o("span", null, "m", -1),
|
|
4508
4508
|
o("span", null, "0", -1),
|
|
@@ -4832,11 +4832,11 @@ class ht {
|
|
|
4832
4832
|
const i = e.toLowerCase().split(","), s = [], n = [];
|
|
4833
4833
|
for (const l of i) {
|
|
4834
4834
|
let c = Je.find((h) => {
|
|
4835
|
-
var p, L,
|
|
4836
|
-
return ((p = h.models) == null ? void 0 : p.includes(l)) || ((L = h.alias) == null ? void 0 : L.toLowerCase()) === l || ((
|
|
4835
|
+
var p, L, E;
|
|
4836
|
+
return ((p = h.models) == null ? void 0 : p.includes(l)) || ((L = h.alias) == null ? void 0 : L.toLowerCase()) === l || ((E = h.name) == null ? void 0 : E.toLowerCase()) === l;
|
|
4837
4837
|
}), d = qe.find((h) => {
|
|
4838
|
-
var p, L,
|
|
4839
|
-
return ((p = h.models) == null ? void 0 : p.includes(l)) || ((L = h.alias) == null ? void 0 : L.toLowerCase()) === l || ((
|
|
4838
|
+
var p, L, E;
|
|
4839
|
+
return ((p = h.models) == null ? void 0 : p.includes(l)) || ((L = h.alias) == null ? void 0 : L.toLowerCase()) === l || ((E = h.name) == null ? void 0 : E.toLowerCase()) === l;
|
|
4840
4840
|
});
|
|
4841
4841
|
c = c || Je.find((h) => {
|
|
4842
4842
|
var p, L;
|
|
@@ -4861,42 +4861,42 @@ class ht {
|
|
|
4861
4861
|
}), i;
|
|
4862
4862
|
}
|
|
4863
4863
|
static pickHourly(e, t) {
|
|
4864
|
-
var r, i, s, n, l, c, d, h, p, L,
|
|
4865
|
-
const J = typeof t == "string" ?
|
|
4866
|
-
if (J.isBetween(X,
|
|
4864
|
+
var r, i, s, n, l, c, d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z, D, F, H, N, W, G, le, $, oe, fe, me, be, ue, ge, U, Z, he, ce, Ae, Le, xe, _, Ee, Ce, ke, Be, Pe, _e;
|
|
4865
|
+
const J = typeof t == "string" ? re(t) : t, V = e == null ? void 0 : e.weather, S = e == null ? void 0 : e.marine, De = re((i = (r = V == null ? void 0 : V[0]) == null ? void 0 : r.hourly) == null ? void 0 : i.date).utc(), X = De.clone().add((l = (n = (s = V == null ? void 0 : V[0]) == null ? void 0 : s.hourly) == null ? void 0 : n.time) == null ? void 0 : l.at(0), "h"), ee = De.clone().add((h = (d = (c = V == null ? void 0 : V[0]) == null ? void 0 : c.hourly) == null ? void 0 : d.time) == null ? void 0 : h.at(-1), "h"), Te = [];
|
|
4866
|
+
if (J.isBetween(X, ee, "millisecond", "[]")) {
|
|
4867
4867
|
const M = J.utc().diff(X, "h", !1);
|
|
4868
4868
|
let we, Se;
|
|
4869
4869
|
if (V) {
|
|
4870
4870
|
let Qe = 0, He = 0;
|
|
4871
4871
|
for (const P of V) {
|
|
4872
|
-
const
|
|
4872
|
+
const R = P == null ? void 0 : P.hourly;
|
|
4873
4873
|
for (let ze = M - (M - 1) % 3; ze <= M; ze++)
|
|
4874
|
-
Qe += (p =
|
|
4874
|
+
Qe += (p = R == null ? void 0 : R.precipitation) == null ? void 0 : p.at(ze);
|
|
4875
4875
|
for (let ze = M - (M - 1) % 6; ze <= M; ze++)
|
|
4876
|
-
He += (L =
|
|
4876
|
+
He += (L = R == null ? void 0 : R.precipitation) == null ? void 0 : L.at(ze);
|
|
4877
4877
|
we = {
|
|
4878
|
-
temp: (
|
|
4879
|
-
apparentTemp: (
|
|
4880
|
-
rh: (
|
|
4881
|
-
dp: (I =
|
|
4878
|
+
temp: (E = R == null ? void 0 : R.temperature_2m) == null ? void 0 : E.at(M),
|
|
4879
|
+
apparentTemp: (B = R == null ? void 0 : R.apparent_temperature) == null ? void 0 : B.at(M),
|
|
4880
|
+
rh: (y = R == null ? void 0 : R.relative_humidity_2m) == null ? void 0 : y.at(M),
|
|
4881
|
+
dp: (I = R == null ? void 0 : R.dew_point_2m) == null ? void 0 : I.at(M),
|
|
4882
4882
|
precip: {
|
|
4883
|
-
probability: (
|
|
4884
|
-
sum: (
|
|
4883
|
+
probability: (x = R == null ? void 0 : R.precipitation_probability) == null ? void 0 : x.at(M),
|
|
4884
|
+
sum: (f = R == null ? void 0 : R.precipitation) == null ? void 0 : f.at(M),
|
|
4885
4885
|
sum3Hours: Math.round(Qe * 100) / 100,
|
|
4886
4886
|
sum6Hours: Math.round(He * 100) / 100
|
|
4887
4887
|
},
|
|
4888
|
-
pmsl: (v =
|
|
4889
|
-
psurf: (m =
|
|
4890
|
-
code: (b =
|
|
4891
|
-
visibility: this.m2nm((
|
|
4888
|
+
pmsl: (v = R == null ? void 0 : R.pressure_msl) == null ? void 0 : v.at(M),
|
|
4889
|
+
psurf: (m = R == null ? void 0 : R.surface_pressure) == null ? void 0 : m.at(M),
|
|
4890
|
+
code: (b = R == null ? void 0 : R.weather_code) == null ? void 0 : b.at(M),
|
|
4891
|
+
visibility: this.m2nm((A = R == null ? void 0 : R.visibility) == null ? void 0 : A.at(M)),
|
|
4892
4892
|
wind: {
|
|
4893
|
-
speed: (w =
|
|
4894
|
-
kts: (z =
|
|
4895
|
-
degree: (D =
|
|
4896
|
-
bearing: ((
|
|
4897
|
-
gusts: (
|
|
4893
|
+
speed: (w = R == null ? void 0 : R.wind_speed_10m) == null ? void 0 : w.at(M),
|
|
4894
|
+
kts: (z = R == null ? void 0 : R.wind_speed_10m) == null ? void 0 : z.at(M),
|
|
4895
|
+
degree: (D = R == null ? void 0 : R.wind_direction_10m) == null ? void 0 : D.at(M),
|
|
4896
|
+
bearing: ((F = R == null ? void 0 : R.wind_direction_10m) == null ? void 0 : F.at(M)) !== null ? (((H = R == null ? void 0 : R.wind_direction_10m) == null ? void 0 : H.at(M)) + 180) % 360 : null,
|
|
4897
|
+
gusts: (N = R == null ? void 0 : R.wind_gusts_10m) == null ? void 0 : N.at(M)
|
|
4898
4898
|
},
|
|
4899
|
-
isDay: (
|
|
4899
|
+
isDay: (W = R == null ? void 0 : R.is_day) == null ? void 0 : W.at(M)
|
|
4900
4900
|
};
|
|
4901
4901
|
const { name: Ge, url: Ue, bg: Ye } = this.parseWeatherCode(we.code, we.isDay);
|
|
4902
4902
|
we.name = Ge, we.url = Ue, we.bg = Ye, we.wind.scale = this.beaufort(this.kts2ms(we.wind.kts)), we.wind.direction = this.degree2Direction(we.wind.degree), Te.push({
|
|
@@ -4913,24 +4913,24 @@ class ht {
|
|
|
4913
4913
|
Se = {
|
|
4914
4914
|
wave: {
|
|
4915
4915
|
sig: {
|
|
4916
|
-
height: (
|
|
4917
|
-
degree: (
|
|
4918
|
-
bearing: ((
|
|
4919
|
-
period: (
|
|
4916
|
+
height: (G = P == null ? void 0 : P.wave_height) == null ? void 0 : G.at(M),
|
|
4917
|
+
degree: (le = P == null ? void 0 : P.wave_direction) == null ? void 0 : le.at(M),
|
|
4918
|
+
bearing: (($ = P == null ? void 0 : P.wave_direction) == null ? void 0 : $.at(M)) !== null ? (((oe = P == null ? void 0 : P.wave_direction) == null ? void 0 : oe.at(M)) + 180) % 360 : null,
|
|
4919
|
+
period: (fe = P == null ? void 0 : P.wave_period) == null ? void 0 : fe.at(M)
|
|
4920
4920
|
},
|
|
4921
4921
|
swell: {
|
|
4922
4922
|
height: (me = P == null ? void 0 : P.swell_wave_height) == null ? void 0 : me.at(M),
|
|
4923
4923
|
degree: (be = P == null ? void 0 : P.swell_wave_direction) == null ? void 0 : be.at(M),
|
|
4924
4924
|
bearing: ((ue = P == null ? void 0 : P.swell_wave_direction) == null ? void 0 : ue.at(M)) !== null ? (((ge = P == null ? void 0 : P.swell_wave_direction) == null ? void 0 : ge.at(M)) + 180) % 360 : null,
|
|
4925
|
-
period: (
|
|
4925
|
+
period: (U = P == null ? void 0 : P.swell_wave_period) == null ? void 0 : U.at(M),
|
|
4926
4926
|
peakPeriod: (Z = P == null ? void 0 : P.swell_wave_peak_period) == null ? void 0 : Z.at(M)
|
|
4927
4927
|
},
|
|
4928
4928
|
wd: {
|
|
4929
|
-
height: (
|
|
4930
|
-
degree: (
|
|
4929
|
+
height: (he = P == null ? void 0 : P.wind_wave_height) == null ? void 0 : he.at(M),
|
|
4930
|
+
degree: (ce = P == null ? void 0 : P.wind_wave_direction) == null ? void 0 : ce.at(M),
|
|
4931
4931
|
bearing: ((Ae = P == null ? void 0 : P.wind_wave_direction) == null ? void 0 : Ae.at(M)) !== null ? (((Le = P == null ? void 0 : P.wind_wave_direction) == null ? void 0 : Le.at(M)) + 180) % 360 : null,
|
|
4932
4932
|
period: (xe = P == null ? void 0 : P.wind_wave_period) == null ? void 0 : xe.at(M),
|
|
4933
|
-
peakPeriod: (
|
|
4933
|
+
peakPeriod: (_ = P == null ? void 0 : P.wind_wave_peak_period) == null ? void 0 : _.at(M)
|
|
4934
4934
|
}
|
|
4935
4935
|
},
|
|
4936
4936
|
current: {
|
|
@@ -4970,8 +4970,8 @@ class ht {
|
|
|
4970
4970
|
};
|
|
4971
4971
|
}
|
|
4972
4972
|
static pickDaily(e, t) {
|
|
4973
|
-
var r, i, s, n, l, c, d, h, p, L,
|
|
4974
|
-
const Ee = typeof t == "string" ?
|
|
4973
|
+
var r, i, s, n, l, c, d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z, D, F, H, N, W, G, le, $, oe, fe, me, be, ue, ge, U, Z, he, ce, Ae, Le, xe, _;
|
|
4974
|
+
const Ee = typeof t == "string" ? re(t) : t, Ce = e == null ? void 0 : e.weather, ke = e == null ? void 0 : e.marine, Be = re((s = (i = (r = Ce == null ? void 0 : Ce[0]) == null ? void 0 : r.daily) == null ? void 0 : i.time) == null ? void 0 : s.at(0)), Pe = re((c = (l = (n = Ce == null ? void 0 : Ce[0]) == null ? void 0 : n.daily) == null ? void 0 : l.time) == null ? void 0 : c.at(-1)), _e = [];
|
|
4975
4975
|
if (Ee.isBetween(Be, Pe, "millisecond", "[]")) {
|
|
4976
4976
|
let J, V;
|
|
4977
4977
|
const S = Ee.diff(Be, "d", !1);
|
|
@@ -4986,32 +4986,32 @@ class ht {
|
|
|
4986
4986
|
mean: (L = X.temperature_2m_mean) == null ? void 0 : L.at(S)
|
|
4987
4987
|
},
|
|
4988
4988
|
apparentTemp: {
|
|
4989
|
-
max: (
|
|
4990
|
-
min: (
|
|
4989
|
+
max: (E = X.apparent_temperature_max) == null ? void 0 : E.at(S),
|
|
4990
|
+
min: (B = X.apparent_temperature_min) == null ? void 0 : B.at(S)
|
|
4991
4991
|
},
|
|
4992
4992
|
precip: {
|
|
4993
|
-
sum: (
|
|
4993
|
+
sum: (y = X.precipitation_sum) == null ? void 0 : y.at(S),
|
|
4994
4994
|
rainSum: (I = X.rain_sum) == null ? void 0 : I.at(S),
|
|
4995
|
-
snowfallSum: (
|
|
4996
|
-
showersSum: (
|
|
4995
|
+
snowfallSum: (x = X.snowfall_sum) == null ? void 0 : x.at(S),
|
|
4996
|
+
showersSum: (f = X.showers_sum) == null ? void 0 : f.at(S),
|
|
4997
4997
|
hours: (v = X.precipitation_hours) == null ? void 0 : v.at(S),
|
|
4998
4998
|
probability: (m = X.precipitation_probability_max) == null ? void 0 : m.at(S)
|
|
4999
4999
|
},
|
|
5000
5000
|
rh: {
|
|
5001
5001
|
max: (b = X.relative_humidity_2m_max) == null ? void 0 : b.at(S),
|
|
5002
|
-
min: (
|
|
5002
|
+
min: (A = X.relative_humidity_2m_min) == null ? void 0 : A.at(S),
|
|
5003
5003
|
mean: (w = X.relative_humidity_2m_mean) == null ? void 0 : w.at(S)
|
|
5004
5004
|
},
|
|
5005
5005
|
wind: {
|
|
5006
5006
|
speed: (z = X.wind_speed_10m_max) == null ? void 0 : z.at(S),
|
|
5007
5007
|
kts: (D = X.wind_speed_10m_max) == null ? void 0 : D.at(S),
|
|
5008
|
-
degree: (
|
|
5008
|
+
degree: (F = X.wind_direction_10m_dominant) == null ? void 0 : F.at(S),
|
|
5009
5009
|
gusts: (H = X.wind_gusts_10m_max) == null ? void 0 : H.at(S),
|
|
5010
|
-
bearing: ((
|
|
5010
|
+
bearing: ((N = X.wind_direction_10m_dominant) == null ? void 0 : N.at(S)) !== null ? (((W = X.wind_direction_10m_dominant) == null ? void 0 : W.at(S)) + 180) % 360 : null
|
|
5011
5011
|
}
|
|
5012
5012
|
};
|
|
5013
|
-
const { name:
|
|
5014
|
-
J.name =
|
|
5013
|
+
const { name: ee, url: Te, bg: M } = this.parseWeatherCode(J.code, !0);
|
|
5014
|
+
J.name = ee, J.url = Te, J.bg = M, J.wind.scale = this.beaufort(this.kts2ms(J.wind.kts)), J.wind.direction = this.degree2Direction(J.wind.degree), _e.push({
|
|
5015
5015
|
utc: Be.add(S, "d").utc().format(),
|
|
5016
5016
|
model: De.model,
|
|
5017
5017
|
weather: { ...J }
|
|
@@ -5020,29 +5020,29 @@ class ht {
|
|
|
5020
5020
|
if (ke) {
|
|
5021
5021
|
let De = 0;
|
|
5022
5022
|
for (const X of ke) {
|
|
5023
|
-
const
|
|
5023
|
+
const ee = X.daily;
|
|
5024
5024
|
V = {
|
|
5025
5025
|
wave: {
|
|
5026
5026
|
sig: {
|
|
5027
|
-
height: (
|
|
5028
|
-
degree: (
|
|
5029
|
-
period: (
|
|
5030
|
-
bearing: ((
|
|
5027
|
+
height: (G = ee.wave_height_max) == null ? void 0 : G.at(S),
|
|
5028
|
+
degree: (le = ee.wave_direction_dominant) == null ? void 0 : le.at(S),
|
|
5029
|
+
period: ($ = ee.wave_period_max) == null ? void 0 : $.at(S),
|
|
5030
|
+
bearing: ((oe = ee.wave_direction_dominant) == null ? void 0 : oe.at(S)) !== null ? (((fe = ee.wave_direction_dominant) == null ? void 0 : fe.at(S)) + 180) % 360 : null
|
|
5031
5031
|
},
|
|
5032
5032
|
swell: {
|
|
5033
|
-
height: (me =
|
|
5034
|
-
degree: (be =
|
|
5035
|
-
period: (ue =
|
|
5036
|
-
peakPeriod: (ge =
|
|
5033
|
+
height: (me = ee.swell_wave_height_max) == null ? void 0 : me.at(S),
|
|
5034
|
+
degree: (be = ee.swell_wave_direction_dominant) == null ? void 0 : be.at(S),
|
|
5035
|
+
period: (ue = ee.swell_wave_period_max) == null ? void 0 : ue.at(S),
|
|
5036
|
+
peakPeriod: (ge = ee.swell_wave_peak_period_max) == null ? void 0 : ge.at(S),
|
|
5037
5037
|
// bearing: daily.swell_wave_direction_dominant?.at(day) !== null ? (daily.swell_wave_direction_dominant?.at(day) + 180) % 360 : null,
|
|
5038
|
-
bearing: ((
|
|
5038
|
+
bearing: ((U = ee.swell_wave_direction_dominant) == null ? void 0 : U.at(S)) !== null ? ((Z = ee.swell_wave_direction_dominant) == null ? void 0 : Z.at(S)) % 360 : null
|
|
5039
5039
|
},
|
|
5040
5040
|
wd: {
|
|
5041
|
-
height: (
|
|
5042
|
-
degree: (
|
|
5043
|
-
period: (Ae =
|
|
5044
|
-
peakPeriod: (Le =
|
|
5045
|
-
bearing: ((xe =
|
|
5041
|
+
height: (he = ee.wind_wave_height_max) == null ? void 0 : he.at(S),
|
|
5042
|
+
degree: (ce = ee.wind_wave_direction_dominant) == null ? void 0 : ce.at(S),
|
|
5043
|
+
period: (Ae = ee.wind_wave_period_max) == null ? void 0 : Ae.at(S),
|
|
5044
|
+
peakPeriod: (Le = ee.wind_wave_peak_period_max) == null ? void 0 : Le.at(S),
|
|
5045
|
+
bearing: ((xe = ee.wind_wave_direction_dominant) == null ? void 0 : xe.at(S)) !== null ? (((_ = ee.wind_wave_direction_dominant) == null ? void 0 : _.at(S)) + 180) % 360 : null
|
|
5046
5046
|
}
|
|
5047
5047
|
}
|
|
5048
5048
|
}, V.wave = this.parseWave(V.wave, J == null ? void 0 : J.wind), Object.assign(_e[De], V), De++;
|
|
@@ -5506,7 +5506,7 @@ const Ga = {
|
|
|
5506
5506
|
computeTime() {
|
|
5507
5507
|
return function(a) {
|
|
5508
5508
|
if (a) {
|
|
5509
|
-
const e =
|
|
5509
|
+
const e = re(a).utcOffset(this.timeZone), t = this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
|
|
5510
5510
|
return `${e.format("MMM-DD/HHmm")} [ UTC${t} ] ( ${e == null ? void 0 : e.fromNow()} )`;
|
|
5511
5511
|
}
|
|
5512
5512
|
return "-";
|
|
@@ -5557,7 +5557,7 @@ const Ga = {
|
|
|
5557
5557
|
var e, t;
|
|
5558
5558
|
(((t = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : t.features) || []).forEach((r) => {
|
|
5559
5559
|
var i, s;
|
|
5560
|
-
((i = r.geometry) == null ? void 0 : i.type) === "Point" && ((s = r.properties) != null && s.important) && (r.properties.format =
|
|
5560
|
+
((i = r.geometry) == null ? void 0 : i.type) === "Point" && ((s = r.properties) != null && s.important) && (r.properties.format = re(r.properties.date).utcOffset(this.timeZone).format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`));
|
|
5561
5561
|
}), this.handleInit();
|
|
5562
5562
|
},
|
|
5563
5563
|
handleInit() {
|
|
@@ -5598,9 +5598,9 @@ const Ga = {
|
|
|
5598
5598
|
}, 500);
|
|
5599
5599
|
else {
|
|
5600
5600
|
if (this.tropicals) {
|
|
5601
|
-
const
|
|
5602
|
-
let
|
|
5603
|
-
if ((a = this.map) != null && a.getSource(this.source) ? ((t = this.map) == null || t.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), I = (/* @__PURE__ */ new Date()).valueOf() - (
|
|
5601
|
+
const B = (/* @__PURE__ */ new Date()).valueOf();
|
|
5602
|
+
let y = 0, I = 0;
|
|
5603
|
+
if ((a = this.map) != null && a.getSource(this.source) ? ((t = this.map) == null || t.getSource(this.source).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), I = (/* @__PURE__ */ new Date()).valueOf() - (B + y), console.log("[tropicals] update elapsed: ", I, ", total: ", y += I)) : (this.map.addSource(this.source, {
|
|
5604
5604
|
type: "geojson",
|
|
5605
5605
|
data: (r = this.tropicals) != null && r.active ? (i = this.tropicals) == null ? void 0 : i.data : this.empty
|
|
5606
5606
|
}), this.map.addLayer({
|
|
@@ -5697,8 +5697,8 @@ const Ga = {
|
|
|
5697
5697
|
],
|
|
5698
5698
|
"text-halo-width": 4
|
|
5699
5699
|
}
|
|
5700
|
-
}), I = (/* @__PURE__ */ new Date()).valueOf() - (
|
|
5701
|
-
(l = this.map) == null || l.getSource(this.clusterSource).setData((n = this.tropicals) != null && n.active ? this.tropicals.data : this.empty), I = (/* @__PURE__ */ new Date()).valueOf() - (
|
|
5700
|
+
}), I = (/* @__PURE__ */ new Date()).valueOf() - (B + y), console.log("[tropical] add elapsed: ", I, ", total: ", y += I)), (s = this.map) != null && s.getSource(this.clusterSource))
|
|
5701
|
+
(l = this.map) == null || l.getSource(this.clusterSource).setData((n = this.tropicals) != null && n.active ? this.tropicals.data : this.empty), I = (/* @__PURE__ */ new Date()).valueOf() - (B + y), console.log("[tropical] update elapsed: ", I, ", total: ", y += I);
|
|
5702
5702
|
else {
|
|
5703
5703
|
if (this.map.addSource(this.clusterSource, {
|
|
5704
5704
|
type: "geojson",
|
|
@@ -5741,28 +5741,29 @@ const Ga = {
|
|
|
5741
5741
|
]
|
|
5742
5742
|
}
|
|
5743
5743
|
}), this.fromTropicalReport) {
|
|
5744
|
-
const
|
|
5745
|
-
let
|
|
5746
|
-
|
|
5747
|
-
var D,
|
|
5744
|
+
const x = (h = this.tropicals.data.features) == null ? void 0 : h.filter((b) => b.geometry.type === "Point" && b.properties.type === "forecast");
|
|
5745
|
+
let f = 0, v = 0, m = (L = (p = this.findClosestToNumber(x, "hour", 12)) == null ? void 0 : p.properties) == null ? void 0 : L.hour;
|
|
5746
|
+
x.forEach((b, A) => {
|
|
5747
|
+
var D, F, H, N, W, G, le, $, oe, fe, me, be, ue, ge, U, Z, he, ce, Ae, Le, xe, _, Ee, Ce, ke, Be, Pe;
|
|
5748
5748
|
let w;
|
|
5749
|
-
const z = this.findClosestToNumber(
|
|
5750
|
-
if (z && ((D = z == null ? void 0 : z.properties) == null ? void 0 : D.hour) === ((
|
|
5749
|
+
const z = this.findClosestToNumber(x, "hour", m + f * 24);
|
|
5750
|
+
if (z && ((D = z == null ? void 0 : z.properties) == null ? void 0 : D.hour) === ((F = b.properties) == null ? void 0 : F.hour) && (w = z), w) {
|
|
5751
5751
|
let _e = 0, J = "tropical-marker-box", V = "tropical-marker-line";
|
|
5752
|
-
J = ((
|
|
5752
|
+
J = ((W = (N = (H = w.properties) == null ? void 0 : H.wind) == null ? void 0 : N.en) == null ? void 0 : W.toUpperCase()) === "SUPER TY" ? J + " supper" : J + " normal", V = (($ = (le = (G = w.properties) == null ? void 0 : G.wind) == null ? void 0 : le.en) == null ? void 0 : $.toUpperCase()) === "SUPER TY" ? V + " supper" : V + " normal", ((fe = (oe = w.properties) == null ? void 0 : oe.movement) == null ? void 0 : fe.deg) >= 0 && ((be = (me = w.properties) == null ? void 0 : me.movement) == null ? void 0 : be.deg) <= 60 || ((ge = (ue = w.properties) == null ? void 0 : ue.movement) == null ? void 0 : ge.deg) >= 120 && ((Z = (U = w.properties) == null ? void 0 : U.movement) == null ? void 0 : Z.deg) <= 240 || ((ce = (he = w.properties) == null ? void 0 : he.movement) == null ? void 0 : ce.deg) >= 300 && ((Le = (Ae = w.properties) == null ? void 0 : Ae.movement) == null ? void 0 : Le.deg) <= 360 ? (_e = f % 2 === 0 ? [84, 0] : [-84, 0], J = f % 2 === 0 ? J + " right" : J + " left", V = f % 2 === 0 ? V + " vertical right" : V + " vertical left") : (_e = v % 2 === 0 ? [60, -40] : [60, 40], J = v % 2 === 0 ? J + " top" : J + " bottom", V = v % 2 === 0 ? V + " align top" : V + " align bottom", v = v + 1);
|
|
5753
5753
|
const S = document.createElement("div");
|
|
5754
5754
|
S.className = J, S.innerHTML = `
|
|
5755
5755
|
<div style="">
|
|
5756
5756
|
<span>${((xe = b.properties) == null ? void 0 : xe.format) || "-"}</span>
|
|
5757
|
-
<span> [${((Ce = (Ee = (
|
|
5757
|
+
<span> [${((Ce = (Ee = (_ = b.properties) == null ? void 0 : _.wind) == null ? void 0 : Ee.en) == null ? void 0 : Ce.toUpperCase()) || "-"}]</span>
|
|
5758
5758
|
</div>
|
|
5759
5759
|
<div>
|
|
5760
5760
|
<span>BF${((Be = (ke = b.properties) == null ? void 0 : ke.wind) == null ? void 0 : Be.bf) || "-"}</span> /
|
|
5761
5761
|
<span>${((Pe = b.properties) == null ? void 0 : Pe.pressure) || "-"} hPa</span>
|
|
5762
5762
|
</div>
|
|
5763
5763
|
<div class="${V}"></div>
|
|
5764
|
-
`, this.labelMarkers.push(new Re.Marker(S).setLngLat(b.geometry.coordinates).setOffset(_e).addTo(this.map))
|
|
5764
|
+
`, this.labelMarkers.push(new Re.Marker(S).setLngLat(b.geometry.coordinates).setOffset(_e).addTo(this.map));
|
|
5765
5765
|
}
|
|
5766
|
+
f = f + 1;
|
|
5766
5767
|
});
|
|
5767
5768
|
} else
|
|
5768
5769
|
this.map.addLayer({
|
|
@@ -5843,22 +5844,22 @@ const Ga = {
|
|
|
5843
5844
|
"text-halo-color": "#0033ff",
|
|
5844
5845
|
"text-halo-width": 4
|
|
5845
5846
|
}
|
|
5846
|
-
}), I = (/* @__PURE__ */ new Date()).valueOf() - (
|
|
5847
|
+
}), I = (/* @__PURE__ */ new Date()).valueOf() - (B + y), console.log("[tropical] add elapsed: ", I, ", total: ", y += I);
|
|
5847
5848
|
}
|
|
5848
5849
|
}
|
|
5849
5850
|
this.handleDrawCircle();
|
|
5850
|
-
const
|
|
5851
|
-
this.interpolateData = JSON.parse(JSON.stringify(
|
|
5851
|
+
const E = ct.interpolate(this.tropicals, 1);
|
|
5852
|
+
this.interpolateData = JSON.parse(JSON.stringify(E)), this.handleDateChange();
|
|
5852
5853
|
}
|
|
5853
5854
|
},
|
|
5854
5855
|
findClosestToNumber(a, e, t) {
|
|
5855
5856
|
var s, n;
|
|
5856
5857
|
if (!a.length)
|
|
5857
5858
|
return null;
|
|
5858
|
-
let r = a[0], i = Math.abs(((s = r == null ? void 0 : r.properties) == null ? void 0 : s[e]) - t);
|
|
5859
|
+
let r = a == null ? void 0 : a[0], i = Math.abs(((s = r == null ? void 0 : r.properties) == null ? void 0 : s[e]) - t);
|
|
5859
5860
|
for (let l = 1; l < a.length; l++) {
|
|
5860
5861
|
const c = a[l], d = Math.abs(Number((n = c == null ? void 0 : c.properties) == null ? void 0 : n.hour) - t);
|
|
5861
|
-
d
|
|
5862
|
+
d <= i && (i = d, r = c);
|
|
5862
5863
|
}
|
|
5863
5864
|
return r;
|
|
5864
5865
|
},
|
|
@@ -5867,11 +5868,11 @@ const Ga = {
|
|
|
5867
5868
|
this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (a = this.interpolateMarkers) == null || a.forEach((e) => e == null ? void 0 : e.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource), this.labelMarkers.forEach((e) => e == null ? void 0 : e.remove()), this.labelMarkers = []);
|
|
5868
5869
|
},
|
|
5869
5870
|
handleDateChange() {
|
|
5870
|
-
var a, e, t, r, i, s, n, l, c, d, h, p, L,
|
|
5871
|
-
if ((a = this.interpolateMarkers) == null || a.forEach((
|
|
5872
|
-
const
|
|
5873
|
-
be.forEach((
|
|
5874
|
-
ue.features.push(
|
|
5871
|
+
var a, e, t, r, i, s, n, l, c, d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z, D, F, H, N, W, G, le;
|
|
5872
|
+
if ((a = this.interpolateMarkers) == null || a.forEach(($) => $ == null ? void 0 : $.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
5873
|
+
const $ = re(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), oe = re.utc().add(1, "hour").set({ minute: 0, second: 0, millisecond: 0 }), fe = $.isBefore(oe) && oe.diff($, "h") < 2 ? oe.format() : $.format(), me = this.interpolateData.filter((U) => U.properties.date === fe && !U.properties.disabled), be = this.handleComputePolygons(me), ue = Q.featureCollection([...me]);
|
|
5874
|
+
be.forEach((U) => {
|
|
5875
|
+
ue.features.push(U);
|
|
5875
5876
|
}), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(ue) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
|
|
5876
5877
|
type: "geojson",
|
|
5877
5878
|
data: ue
|
|
@@ -5887,14 +5888,14 @@ const Ga = {
|
|
|
5887
5888
|
}
|
|
5888
5889
|
})), this.interpolateMarkers = [];
|
|
5889
5890
|
const ge = [];
|
|
5890
|
-
for (const
|
|
5891
|
+
for (const U of me)
|
|
5891
5892
|
if (ge.some((Z) => {
|
|
5892
|
-
var
|
|
5893
|
-
return Z.properties.name === ((
|
|
5894
|
-
}) || ge.push(
|
|
5893
|
+
var he;
|
|
5894
|
+
return Z.properties.name === ((he = U.properties) == null ? void 0 : he.name);
|
|
5895
|
+
}) || ge.push(U), !U.properties.disabled) {
|
|
5895
5896
|
let Z = "#f44336";
|
|
5896
|
-
((l = (n =
|
|
5897
|
-
const
|
|
5897
|
+
((l = (n = U.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((d = (c = U.properties) == null ? void 0 : c.wind) != null && d.kts) ? Z = "#03f869" : ((p = (h = U.properties) == null ? void 0 : h.wind) == null ? void 0 : p.kts) >= 32 && ((E = (L = U.properties) == null ? void 0 : L.wind) == null ? void 0 : E.kts) < 47 ? Z = "#f2f202" : ((y = (B = U.properties) == null ? void 0 : B.wind) == null ? void 0 : y.kts) >= 47 && ((x = (I = U.properties) == null ? void 0 : I.wind) == null ? void 0 : x.kts) < 63 ? Z = "#ff9100" : ((v = (f = U.properties) == null ? void 0 : f.wind) == null ? void 0 : v.kts) >= 63 && ((b = (m = U.properties) == null ? void 0 : m.wind) == null ? void 0 : b.kts) < 79 ? Z = "#f44336" : ((w = (A = U.properties) == null ? void 0 : A.wind) == null ? void 0 : w.kts) >= 79 && ((D = (z = U.properties) == null ? void 0 : z.wind) == null ? void 0 : D.kts) < 94 ? Z = "#f903d0" : ((H = (F = U.properties) == null ? void 0 : F.wind) == null ? void 0 : H.kts) >= 94 ? Z = "#8702f9" : Z = "#f44336";
|
|
5898
|
+
const he = `<svg t="1719918955501"
|
|
5898
5899
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
5899
5900
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
5900
5901
|
<path
|
|
@@ -5908,33 +5909,33 @@ const Ga = {
|
|
|
5908
5909
|
<path
|
|
5909
5910
|
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"
|
|
5910
5911
|
fill="#ffffff" p-id="18386"></path>
|
|
5911
|
-
</svg>`,
|
|
5912
|
-
|
|
5913
|
-
const Ae = new Re.Marker(
|
|
5914
|
-
this.interpolateMarkers.push(Ae), (
|
|
5912
|
+
</svg>`, ce = document.createElement("div");
|
|
5913
|
+
ce.className = "hurricane-hourly-marker", ce.innerHTML = `<div class="${U.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${he}</div>`;
|
|
5914
|
+
const Ae = new Re.Marker(ce).setLngLat(U.geometry.coordinates).addTo(this.map);
|
|
5915
|
+
this.interpolateMarkers.push(Ae), (W = (N = this.map) == null ? void 0 : N.getSource(this.circleSource)) == null || W.setData(this.circleSourceData);
|
|
5915
5916
|
}
|
|
5916
5917
|
this.$emit("tropicalCenterPoints", ge);
|
|
5917
5918
|
} else
|
|
5918
|
-
(
|
|
5919
|
+
(G = this.map) != null && G.getSource(this.interpolateSource) && ((le = this.map) == null || le.getSource(this.interpolateSource).setData(this.empty));
|
|
5919
5920
|
},
|
|
5920
5921
|
handleClick(a) {
|
|
5921
|
-
var s, n, l, c, d, h, p, L;
|
|
5922
|
-
const e = a.features[0], t = (
|
|
5923
|
-
(
|
|
5924
|
-
var
|
|
5925
|
-
return
|
|
5922
|
+
var s, n, l, c, d, h, p, L, E;
|
|
5923
|
+
const e = (s = a.features) == null ? void 0 : s[0], t = (l = (n = this.tropicals) == null ? void 0 : n.data) == null ? void 0 : l.features.filter(
|
|
5924
|
+
(B) => {
|
|
5925
|
+
var y;
|
|
5926
|
+
return B.geometry.type === "LineString" && B.properties.type === "forecast" && B.properties.name === ((y = e == null ? void 0 : e.properties) == null ? void 0 : y.name);
|
|
5926
5927
|
}
|
|
5927
|
-
), r = (
|
|
5928
|
-
(
|
|
5929
|
-
var
|
|
5930
|
-
return
|
|
5928
|
+
), r = (d = (c = this.tropicals) == null ? void 0 : c.data) == null ? void 0 : d.features.filter(
|
|
5929
|
+
(B) => {
|
|
5930
|
+
var y;
|
|
5931
|
+
return B.geometry.type === "LineString" && B.properties.type === "history" && B.properties.name === ((y = e == null ? void 0 : e.properties) == null ? void 0 : y.name);
|
|
5931
5932
|
}
|
|
5932
5933
|
);
|
|
5933
5934
|
this.activeTropicals = {
|
|
5934
|
-
name: (
|
|
5935
|
-
forecasts: t.map((
|
|
5936
|
-
history: (
|
|
5937
|
-
showCircle: (
|
|
5935
|
+
name: (h = e == null ? void 0 : e.properties) == null ? void 0 : h.name,
|
|
5936
|
+
forecasts: t.map((B) => B.properties),
|
|
5937
|
+
history: (p = r == null ? void 0 : r[0]) == null ? void 0 : p.properties,
|
|
5938
|
+
showCircle: (E = (L = t == null ? void 0 : t[0]) == null ? void 0 : L.properties) == null ? void 0 : E.showCircle
|
|
5938
5939
|
}, this.showTropicals = !0;
|
|
5939
5940
|
const i = document.getElementById("idm-tropical-gl3");
|
|
5940
5941
|
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);
|
|
@@ -6048,60 +6049,60 @@ const Ga = {
|
|
|
6048
6049
|
style: { "justify-content": "flex-start" }
|
|
6049
6050
|
}, oi = { class: "forecast-models" }, ni = ["onClick"], li = { class: "more" };
|
|
6050
6051
|
function hi(a, e, t, r, i, s) {
|
|
6051
|
-
var n, l, c, d, h, p, L,
|
|
6052
|
+
var n, l, c, d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z, D, F, H;
|
|
6052
6053
|
return Oe((u(), g("div", Ua, [
|
|
6053
6054
|
o("div", Ya, [
|
|
6054
6055
|
o("div", {
|
|
6055
6056
|
class: "iconfont close-btn",
|
|
6056
|
-
onClick: e[0] || (e[0] = (
|
|
6057
|
+
onClick: e[0] || (e[0] = (N) => i.showTropicals = !1)
|
|
6057
6058
|
}, ""),
|
|
6058
6059
|
o("div", Ka, [
|
|
6059
|
-
(
|
|
6060
|
-
|
|
6060
|
+
o("span", null, k((l = (n = i.activeTropicals) == null ? void 0 : n.name) == null ? void 0 : l.toUpperCase()), 1),
|
|
6061
|
+
(d = (c = i.activeTropicals) == null ? void 0 : c.history) != null && d.level ? (u(), g("span", Xa, " , " + k((L = (p = (h = i.activeTropicals) == null ? void 0 : h.history) == null ? void 0 : p.level) == null ? void 0 : L.type), 1)) : q("", !0)
|
|
6061
6062
|
]),
|
|
6062
|
-
o("div", Ja, " Last update: " + k(s.computeTime(((
|
|
6063
|
+
o("div", Ja, " Last update: " + k(s.computeTime(((B = (E = i.activeTropicals) == null ? void 0 : E.history) == null ? void 0 : B.updated) || ((f = (x = (I = (y = i.activeTropicals) == null ? void 0 : y.forecasts) == null ? void 0 : I.filter((N) => !N.disabled)) == null ? void 0 : x[0]) == null ? void 0 : f.date))), 1)
|
|
6063
6064
|
]),
|
|
6064
6065
|
o("div", qa, [
|
|
6065
6066
|
o("div", Va, [
|
|
6066
6067
|
o("div", Za, [
|
|
6067
6068
|
o("div", $a, [
|
|
6068
6069
|
e[3] || (e[3] = o("label", null, "Wind speed : ", -1)),
|
|
6069
|
-
o("span", null, k(((
|
|
6070
|
-
o("span", null, ", BF " + k(s.computeBF(((
|
|
6070
|
+
o("span", null, k(((m = (v = i.activeTropicals) == null ? void 0 : v.history) == null ? void 0 : m.kts) || "-") + " [kts]", 1),
|
|
6071
|
+
o("span", null, ", BF " + k(s.computeBF(((A = (b = i.activeTropicals) == null ? void 0 : b.history) == null ? void 0 : A.kts) || 0)), 1)
|
|
6071
6072
|
]),
|
|
6072
6073
|
o("div", ei, [
|
|
6073
6074
|
e[4] || (e[4] = o("label", null, "Pressure : ", -1)),
|
|
6074
|
-
o("span", null, k(((
|
|
6075
|
+
o("span", null, k(((z = (w = i.activeTropicals) == null ? void 0 : w.history) == null ? void 0 : z.pressure) || "-") + " [hPa]", 1)
|
|
6075
6076
|
])
|
|
6076
6077
|
]),
|
|
6077
6078
|
o("div", ti, [
|
|
6078
6079
|
o("div", ai, [
|
|
6079
6080
|
e[5] || (e[5] = o("label", null, "Move Speed: ", -1)),
|
|
6080
|
-
o("span", null, k((
|
|
6081
|
+
o("span", null, k((D = s.computeMovement(i.activeTropicals)) == null ? void 0 : D.kts) + " [kts]", 1)
|
|
6081
6082
|
]),
|
|
6082
6083
|
o("div", ii, [
|
|
6083
6084
|
e[6] || (e[6] = o("label", null, "Move Dir: ", -1)),
|
|
6084
|
-
o("span", null, k((
|
|
6085
|
+
o("span", null, k((F = s.computeMovement(i.activeTropicals)) == null ? void 0 : F.deg) + " [°]", 1)
|
|
6085
6086
|
])
|
|
6086
6087
|
]),
|
|
6087
6088
|
o("div", ri, [
|
|
6088
6089
|
o("div", si, [
|
|
6089
6090
|
e[7] || (e[7] = o("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
6090
6091
|
o("div", oi, [
|
|
6091
|
-
(u(!0), g(
|
|
6092
|
-
var
|
|
6092
|
+
(u(!0), g(te, null, ie((H = i.activeTropicals) == null ? void 0 : H.forecasts, (N, W) => {
|
|
6093
|
+
var G, le, $, oe;
|
|
6093
6094
|
return u(), g("div", {
|
|
6094
|
-
key:
|
|
6095
|
-
class:
|
|
6095
|
+
key: W,
|
|
6096
|
+
class: ae([
|
|
6096
6097
|
"model",
|
|
6097
|
-
|
|
6098
|
-
|
|
6098
|
+
N.disabled ? "" : "active",
|
|
6099
|
+
W > 0 && W < ((le = (G = i.activeTropicals) == null ? void 0 : G.forecasts) == null ? void 0 : le.length) - 1 && ((oe = ($ = i.activeTropicals) == null ? void 0 : $.forecasts) == null ? void 0 : oe.length) > 2 ? "center-child" : ""
|
|
6099
6100
|
]),
|
|
6100
|
-
onClick: (
|
|
6101
|
+
onClick: (fe) => s.handleForecastToggle(N)
|
|
6101
6102
|
}, [
|
|
6102
6103
|
o("span", {
|
|
6103
|
-
class:
|
|
6104
|
-
}, k(
|
|
6104
|
+
class: ae(N.model)
|
|
6105
|
+
}, k(N.model), 3)
|
|
6105
6106
|
], 10, ni);
|
|
6106
6107
|
}), 128))
|
|
6107
6108
|
])
|
|
@@ -6114,11 +6115,11 @@ function hi(a, e, t, r, i, s) {
|
|
|
6114
6115
|
key: 0,
|
|
6115
6116
|
class: "button",
|
|
6116
6117
|
style: { "margin-right": "10px" },
|
|
6117
|
-
onClick: e[1] || (e[1] = (
|
|
6118
|
+
onClick: e[1] || (e[1] = (N) => s.handleNotification(i.activeTropicals))
|
|
6118
6119
|
}, "Notify")) : q("", !0),
|
|
6119
6120
|
o("div", {
|
|
6120
6121
|
class: "button",
|
|
6121
|
-
onClick: e[2] || (e[2] = (
|
|
6122
|
+
onClick: e[2] || (e[2] = (N) => s.handleStrikeProbability(i.activeTropicals))
|
|
6122
6123
|
}, "Strike Probability >>")
|
|
6123
6124
|
])
|
|
6124
6125
|
])
|
|
@@ -6215,7 +6216,7 @@ const ci = {
|
|
|
6215
6216
|
[1, "rgba(197,5,58,0.8)"]
|
|
6216
6217
|
];
|
|
6217
6218
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
6218
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
6219
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
6219
6220
|
this.program = e, this.aPositionBuffer = t;
|
|
6220
6221
|
}
|
|
6221
6222
|
},
|
|
@@ -6234,7 +6235,7 @@ function pi(a, e, t, r, i, s) {
|
|
|
6234
6235
|
return (n = t.factor) != null && n.active ? (u(), g("div", di, [
|
|
6235
6236
|
o("div", {
|
|
6236
6237
|
class: "legend-bars flex-center",
|
|
6237
|
-
style:
|
|
6238
|
+
style: pe([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
6238
6239
|
}, e[0] || (e[0] = [
|
|
6239
6240
|
o("span", null, "mm", -1),
|
|
6240
6241
|
o("span", null, "1.5", -1),
|
|
@@ -6329,7 +6330,7 @@ const ui = {
|
|
|
6329
6330
|
[1, "rgba(144,144,144,0)"]
|
|
6330
6331
|
];
|
|
6331
6332
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
6332
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
6333
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
6333
6334
|
this.program = e, this.aPositionBuffer = t;
|
|
6334
6335
|
}
|
|
6335
6336
|
},
|
|
@@ -6348,7 +6349,7 @@ function yi(a, e, t, r, i, s) {
|
|
|
6348
6349
|
return (n = t.factor) != null && n.active ? (u(), g("div", gi, [
|
|
6349
6350
|
o("div", {
|
|
6350
6351
|
class: "legend-bars flex-center",
|
|
6351
|
-
style:
|
|
6352
|
+
style: pe([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
|
|
6352
6353
|
}, e[0] || (e[0] = [
|
|
6353
6354
|
o("span", null, "nm", -1),
|
|
6354
6355
|
o("span", null, "0", -1),
|
|
@@ -6449,7 +6450,7 @@ const Ai = {
|
|
|
6449
6450
|
//
|
|
6450
6451
|
];
|
|
6451
6452
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
6452
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
6453
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
6453
6454
|
this.program = e, this.aPositionBuffer = t;
|
|
6454
6455
|
}
|
|
6455
6456
|
},
|
|
@@ -6468,7 +6469,7 @@ function vi(a, e, t, r, i, s) {
|
|
|
6468
6469
|
return (n = t.factor) != null && n.active ? (u(), g("div", wi, [
|
|
6469
6470
|
o("div", {
|
|
6470
6471
|
class: "legend-bars flex-center",
|
|
6471
|
-
style:
|
|
6472
|
+
style: pe([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
6472
6473
|
}, e[0] || (e[0] = [
|
|
6473
6474
|
o("span", null, "°C", -1),
|
|
6474
6475
|
o("span", null, "0", -1),
|
|
@@ -6572,7 +6573,7 @@ const Li = {
|
|
|
6572
6573
|
[1, "rgb(138, 43, 10)"]
|
|
6573
6574
|
];
|
|
6574
6575
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
6575
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
6576
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
6576
6577
|
this.program = e, this.aPositionBuffer = t;
|
|
6577
6578
|
}
|
|
6578
6579
|
},
|
|
@@ -6591,7 +6592,7 @@ function xi(a, e, t, r, i, s) {
|
|
|
6591
6592
|
return (n = t.factor) != null && n.active ? (u(), g("div", Ci, [
|
|
6592
6593
|
o("div", {
|
|
6593
6594
|
class: "legend-bars flex-center",
|
|
6594
|
-
style:
|
|
6595
|
+
style: pe([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
6595
6596
|
}, e[0] || (e[0] = [
|
|
6596
6597
|
o("span", null, "°C", -1),
|
|
6597
6598
|
o("span", null, "-20", -1),
|
|
@@ -6714,8 +6715,8 @@ const ki = {
|
|
|
6714
6715
|
var a;
|
|
6715
6716
|
if (this.showMeteo && this.ts) {
|
|
6716
6717
|
this.handleRender();
|
|
6717
|
-
const e =
|
|
6718
|
-
((a =
|
|
6718
|
+
const e = re();
|
|
6719
|
+
((a = re(this.ts)) == null ? void 0 : a.diff(e, "d", !0)) >= 0 ? await this.fetchMeteoData(this.point, this.ts, 7) : await this.fetchHistoryData(this.point, this.ts), this.initTableData(this.meteoData);
|
|
6719
6720
|
}
|
|
6720
6721
|
}
|
|
6721
6722
|
},
|
|
@@ -6724,8 +6725,8 @@ const ki = {
|
|
|
6724
6725
|
var a;
|
|
6725
6726
|
if (this.showMeteo = !0, this.tideData = {}, this.meteoData = {}, this.showMeteo && this.ts) {
|
|
6726
6727
|
this.handleRender();
|
|
6727
|
-
const e =
|
|
6728
|
-
if (((a =
|
|
6728
|
+
const e = re();
|
|
6729
|
+
if (((a = re(this.ts)) == null ? void 0 : a.diff(e, "d", !0)) >= 0 ? await this.fetchMeteoData(this.point, this.ts, 7) : await this.fetchHistoryData(this.point, this.ts), this.initTableData(this.meteoData), this.activeIndex === 4) {
|
|
6729
6730
|
const r = et.pickDailyExtremes(this.tideData, this.ts);
|
|
6730
6731
|
(r == null ? void 0 : r.length) > 0 ? this.tideTableData = r : await this.fetchTidesData(this.point, this.ts, 7);
|
|
6731
6732
|
}
|
|
@@ -6736,7 +6737,7 @@ const ki = {
|
|
|
6736
6737
|
async handler() {
|
|
6737
6738
|
var a;
|
|
6738
6739
|
if (this.showMeteo && this.ts) {
|
|
6739
|
-
const e =
|
|
6740
|
+
const e = re(), t = (a = re(this.ts)) == null ? void 0 : a.diff(e, "d", !0), i = [0, 1, 2, 3, 4, 5, 6, 7].every((s) => {
|
|
6740
6741
|
var l;
|
|
6741
6742
|
const n = Xe(this.ts).tz(this.positionGmt).add(3 * s, "h").format();
|
|
6742
6743
|
return (l = Ke.pickHourly(this.meteoData, n)) == null ? void 0 : l[0];
|
|
@@ -6757,7 +6758,7 @@ const ki = {
|
|
|
6757
6758
|
},
|
|
6758
6759
|
computeHourZ() {
|
|
6759
6760
|
return function(a) {
|
|
6760
|
-
return a ? `${
|
|
6761
|
+
return a ? `${re(a).utc().format("HH")}Z` : "-";
|
|
6761
6762
|
};
|
|
6762
6763
|
},
|
|
6763
6764
|
computeHourHmmLT() {
|
|
@@ -6767,24 +6768,24 @@ const ki = {
|
|
|
6767
6768
|
},
|
|
6768
6769
|
computeLat() {
|
|
6769
6770
|
return function(a, e = 4) {
|
|
6770
|
-
return
|
|
6771
|
+
return de.lat2pretty(a, e).pretty;
|
|
6771
6772
|
};
|
|
6772
6773
|
},
|
|
6773
6774
|
computeLng() {
|
|
6774
6775
|
return function(a, e = 4) {
|
|
6775
|
-
return
|
|
6776
|
+
return de.lng2pretty(a, e).pretty;
|
|
6776
6777
|
};
|
|
6777
6778
|
},
|
|
6778
6779
|
roundPrecision() {
|
|
6779
6780
|
return function(a, e = 4) {
|
|
6780
|
-
return isNaN(a) || a === null || a === void 0 ? "-" :
|
|
6781
|
+
return isNaN(a) || a === null || a === void 0 ? "-" : de.roundPrecision(a, e);
|
|
6781
6782
|
};
|
|
6782
6783
|
}
|
|
6783
6784
|
},
|
|
6784
6785
|
methods: {
|
|
6785
6786
|
async fetchMeteoData(a, e, t) {
|
|
6786
6787
|
this.loading = !0, this.meteoData = [];
|
|
6787
|
-
let r = e ?
|
|
6788
|
+
let r = e ? re(e).utc().format() : re().utc().format();
|
|
6788
6789
|
const { weatherModels: i, marineModels: s } = Ke.autoPickMeteoModel(this.forecastModel);
|
|
6789
6790
|
let n = {
|
|
6790
6791
|
lat: a.lat,
|
|
@@ -6802,7 +6803,7 @@ const ki = {
|
|
|
6802
6803
|
},
|
|
6803
6804
|
async fetchHistoryData(a, e) {
|
|
6804
6805
|
this.loading = !0, this.meteoData = [];
|
|
6805
|
-
const t = e ?
|
|
6806
|
+
const t = e ? re(e).utc().format() : re().utc().format(), { weatherModels: r, marineModels: i } = Ke.autoPickMeteoModel(this.forecastModel), s = {
|
|
6806
6807
|
lat: a.lat,
|
|
6807
6808
|
lng: a.lng,
|
|
6808
6809
|
datetime: t,
|
|
@@ -6819,8 +6820,8 @@ const ki = {
|
|
|
6819
6820
|
},
|
|
6820
6821
|
initTableData(a) {
|
|
6821
6822
|
var e, t, r, i, s, n, l, c, d;
|
|
6822
|
-
this.clearTable(), this.positionGmt = (t = (e = a == null ? void 0 : a.weather) == null ? void 0 : e[0]) == null ? void 0 : t.timezone, this.positionOffset = (i = (r = a == null ? void 0 : a.weather) == null ? void 0 : r[0]) == null ? void 0 : i.offset, this.localDate = (n = (s = Xe(this.ts)) == null ? void 0 : s.tz(this.positionGmt)) == null ? void 0 : n.format("MMM-DD/HHmm[LT]"), this.currentHourData = (l = Ke.pickHourly(a,
|
|
6823
|
-
var p, L,
|
|
6823
|
+
this.clearTable(), this.positionGmt = (t = (e = a == null ? void 0 : a.weather) == null ? void 0 : e[0]) == null ? void 0 : t.timezone, this.positionOffset = (i = (r = a == null ? void 0 : a.weather) == null ? void 0 : r[0]) == null ? void 0 : i.offset, this.localDate = (n = (s = Xe(this.ts)) == null ? void 0 : s.tz(this.positionGmt)) == null ? void 0 : n.format("MMM-DD/HHmm[LT]"), this.currentHourData = (l = Ke.pickHourly(a, re(this.ts))) == null ? void 0 : l[0], ((d = (c = this.currentHourData) == null ? void 0 : c.weather) == null ? void 0 : d.isDay) === 0 ? this.isDay = !1 : this.isDay = !0, this.$nextTick(() => {
|
|
6824
|
+
var p, L, E, B, y, I, x, f, v, m, b, A, w, z, D, F, H, N, W, G, le, $, oe, fe, me, be, ue, ge, U, Z, he, ce, Ae;
|
|
6824
6825
|
if (!document.getElementById("meteoMainBox"))
|
|
6825
6826
|
return !1;
|
|
6826
6827
|
if (!this.currentHourData)
|
|
@@ -6828,8 +6829,8 @@ const ki = {
|
|
|
6828
6829
|
for (let Le = 0; Le < 8; Le++) {
|
|
6829
6830
|
const xe = Xe(this.ts).tz(this.positionGmt).add(3 * Le, "h").format();
|
|
6830
6831
|
this.tableData.hours.push(xe);
|
|
6831
|
-
const
|
|
6832
|
-
this.tableData.temp.push(this.roundPrecision((L =
|
|
6832
|
+
const _ = ((p = Ke.pickHourly(a, xe)) == null ? void 0 : p[0]) || {};
|
|
6833
|
+
this.tableData.temp.push(this.roundPrecision((L = _ == null ? void 0 : _.weather) == null ? void 0 : L.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((B = (E = _ == null ? void 0 : _.weather) == null ? void 0 : E.precip) == null ? void 0 : B.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((I = (y = _ == null ? void 0 : _.weather) == null ? void 0 : y.precip) == null ? void 0 : I.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((x = _ == null ? void 0 : _.weather) == null ? void 0 : x.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((v = (f = _ == null ? void 0 : _.weather) == null ? void 0 : f.wind) == null ? void 0 : v.kts, 1) ?? "-"), this.tableData.windDir.push((b = (m = _ == null ? void 0 : _.weather) == null ? void 0 : m.wind) == null ? void 0 : b.bearing), this.tableData.windGust.push(this.roundPrecision((w = (A = _ == null ? void 0 : _.weather) == null ? void 0 : A.wind) == null ? void 0 : w.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((D = (z = _ == null ? void 0 : _.wave) == null ? void 0 : z.sig) == null ? void 0 : D.height, 1) ?? "-"), this.tableData.sigwaveDir.push((H = (F = _ == null ? void 0 : _.wave) == null ? void 0 : F.sig) == null ? void 0 : H.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((W = (N = _ == null ? void 0 : _.wave) == null ? void 0 : N.wd) == null ? void 0 : W.height, 1) ?? "-"), this.tableData.windwaveDir.push((le = (G = _ == null ? void 0 : _.wave) == null ? void 0 : G.wd) == null ? void 0 : le.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((oe = ($ = _ == null ? void 0 : _.wave) == null ? void 0 : $.wd) == null ? void 0 : oe.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((me = (fe = _ == null ? void 0 : _.wave) == null ? void 0 : fe.swell) == null ? void 0 : me.height, 1) ?? "-"), this.tableData.swellDir.push((ue = (be = _ == null ? void 0 : _.wave) == null ? void 0 : be.swell) == null ? void 0 : ue.bearing), this.tableData.swellPeriod.push(this.roundPrecision((U = (ge = _ == null ? void 0 : _.wave) == null ? void 0 : ge.swell) == null ? void 0 : U.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((Z = _ == null ? void 0 : _.current) == null ? void 0 : Z.speed, 1) ?? "-"), this.tableData.currentDir.push((he = _ == null ? void 0 : _.current) == null ? void 0 : he.bearing), this.tableData.seaLevel.push(this.roundPrecision(_ == null ? void 0 : _.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(_ == null ? void 0 : _.sst, 0) ?? "-"), this.tableData.weatherUrls.push((ce = _ == null ? void 0 : _.weather) == null ? void 0 : ce.url), this.tableData.weatherNames.push(((Ae = _ == null ? void 0 : _.weather) == null ? void 0 : Ae.name) ?? "-");
|
|
6833
6834
|
}
|
|
6834
6835
|
});
|
|
6835
6836
|
},
|
|
@@ -6865,7 +6866,7 @@ const ki = {
|
|
|
6865
6866
|
},
|
|
6866
6867
|
async fetchTidesData(a, e, t) {
|
|
6867
6868
|
this.tideLoading = !0, this.tideData = {};
|
|
6868
|
-
let r = e ?
|
|
6869
|
+
let r = e ? re(e).utc().format() : re().utc().format(), i = {
|
|
6869
6870
|
lat: a.lat,
|
|
6870
6871
|
lng: a.lng,
|
|
6871
6872
|
date: r,
|
|
@@ -6955,8 +6956,8 @@ const ki = {
|
|
|
6955
6956
|
class: "main-box flex-center"
|
|
6956
6957
|
};
|
|
6957
6958
|
function Fr(a, e, t, r, i, s) {
|
|
6958
|
-
var d, h, p, L,
|
|
6959
|
-
const n =
|
|
6959
|
+
var d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z, D, F, H, N, W, G, le, $, oe, fe, me, be, ue, ge, U, Z, he, ce, Ae, Le, xe, _, Ee, Ce, ke, Be, Pe, _e, J, V, S, De, X, ee, Te, M, we, Se, Qe, He, P, R, Ge, Ue, Ye, ze, ye, at, it, rt, st, ot;
|
|
6960
|
+
const n = j("LocationFilled"), l = j("ElIcon"), c = j("ElTooltip");
|
|
6960
6961
|
return Oe((u(), g("div", Di, [
|
|
6961
6962
|
o("div", Pi, [
|
|
6962
6963
|
o("div", zi, [
|
|
@@ -6992,7 +6993,7 @@ function Fr(a, e, t, r, i, s) {
|
|
|
6992
6993
|
}, null, -1)
|
|
6993
6994
|
]))) : (u(), g("div", {
|
|
6994
6995
|
key: 0,
|
|
6995
|
-
class:
|
|
6996
|
+
class: ae(["main-box", i.isDay ? "day-bg" : "night-bg"]),
|
|
6996
6997
|
id: "meteoMainBox"
|
|
6997
6998
|
}, [
|
|
6998
6999
|
o("div", Qi, [
|
|
@@ -7018,22 +7019,22 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7018
7019
|
}, 8, ["content"]),
|
|
7019
7020
|
o("div", Fi, [
|
|
7020
7021
|
o("div", null, [
|
|
7021
|
-
|
|
7022
|
+
ve(k(s.roundPrecision((B = (E = i.currentHourData) == null ? void 0 : E.weather) == null ? void 0 : B.temp, 0)), 1),
|
|
7022
7023
|
e[9] || (e[9] = o("span", { style: { "font-size": "14px" } }, "°C", -1))
|
|
7023
7024
|
])
|
|
7024
7025
|
]),
|
|
7025
7026
|
o("div", Ri, [
|
|
7026
7027
|
o("div", ji, [
|
|
7027
7028
|
e[10] || (e[10] = o("label", null, "Precip : ", -1)),
|
|
7028
|
-
o("span", null, k(s.roundPrecision((
|
|
7029
|
+
o("span", null, k(s.roundPrecision((x = (I = (y = i.currentHourData) == null ? void 0 : y.weather) == null ? void 0 : I.precip) == null ? void 0 : x.sum, 0)) + " mm", 1)
|
|
7029
7030
|
]),
|
|
7030
7031
|
o("div", Wi, [
|
|
7031
7032
|
e[11] || (e[11] = o("label", null, "Visibility : ", -1)),
|
|
7032
|
-
o("span", null, k(s.roundPrecision((v = (
|
|
7033
|
+
o("span", null, k(s.roundPrecision((v = (f = i.currentHourData) == null ? void 0 : f.weather) == null ? void 0 : v.visibility, 0)) + " nm", 1)
|
|
7033
7034
|
]),
|
|
7034
7035
|
o("div", Gi, [
|
|
7035
7036
|
e[12] || (e[12] = o("label", null, "Wind : ", -1)),
|
|
7036
|
-
o("span", null, k(s.roundPrecision((
|
|
7037
|
+
o("span", null, k(s.roundPrecision((A = (b = (m = i.currentHourData) == null ? void 0 : m.weather) == null ? void 0 : b.wind) == null ? void 0 : A.kts, 1)) + " kts", 1)
|
|
7037
7038
|
])
|
|
7038
7039
|
])
|
|
7039
7040
|
]),
|
|
@@ -7045,19 +7046,19 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7045
7046
|
Oe(o("div", Xi, [
|
|
7046
7047
|
o("div", Ji, [
|
|
7047
7048
|
o("div", {
|
|
7048
|
-
class:
|
|
7049
|
+
class: ae(["menu-item", i.activeIndex === 1 ? "active" : ""]),
|
|
7049
7050
|
onClick: e[3] || (e[3] = Ze((C) => s.handleSelectTab(1), ["prevent"]))
|
|
7050
7051
|
}, "Basis", 2),
|
|
7051
7052
|
o("div", {
|
|
7052
|
-
class:
|
|
7053
|
+
class: ae(["menu-item", i.activeIndex === 2 ? "active" : ""]),
|
|
7053
7054
|
onClick: e[4] || (e[4] = Ze((C) => s.handleSelectTab(2), ["prevent"]))
|
|
7054
7055
|
}, "Wave & Current", 2),
|
|
7055
7056
|
o("div", {
|
|
7056
|
-
class:
|
|
7057
|
+
class: ae(["menu-item", i.activeIndex === 3 ? "active" : ""]),
|
|
7057
7058
|
onClick: e[5] || (e[5] = Ze((C) => s.handleSelectTab(3), ["prevent"]))
|
|
7058
7059
|
}, "Sea Surface", 2),
|
|
7059
7060
|
o("div", {
|
|
7060
|
-
class:
|
|
7061
|
+
class: ae(["menu-item", i.activeIndex === 4 ? "active" : ""]),
|
|
7061
7062
|
onClick: e[6] || (e[6] = Ze((C) => s.handleSelectTab(4), ["prevent"]))
|
|
7062
7063
|
}, "Tides", 2)
|
|
7063
7064
|
]),
|
|
@@ -7068,10 +7069,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7068
7069
|
colspan: "1",
|
|
7069
7070
|
class: "tr-title"
|
|
7070
7071
|
}, [
|
|
7071
|
-
|
|
7072
|
+
ve("Hours"),
|
|
7072
7073
|
o("span", { class: "unit" }, "(LT)")
|
|
7073
7074
|
], -1)),
|
|
7074
|
-
(u(!0), g(
|
|
7075
|
+
(u(!0), g(te, null, ie(i.tableData.hours, (C) => (u(), g("th", {
|
|
7075
7076
|
rowspan: "1",
|
|
7076
7077
|
colspan: "1",
|
|
7077
7078
|
key: `HourL${C}`
|
|
@@ -7083,10 +7084,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7083
7084
|
colspan: "1",
|
|
7084
7085
|
class: "tr-title"
|
|
7085
7086
|
}, [
|
|
7086
|
-
|
|
7087
|
+
ve("UTC"),
|
|
7087
7088
|
o("span", { class: "unit" })
|
|
7088
7089
|
], -1)),
|
|
7089
|
-
(u(!0), g(
|
|
7090
|
+
(u(!0), g(te, null, ie(i.tableData.hours, (C) => (u(), g("th", {
|
|
7090
7091
|
rowspan: "1",
|
|
7091
7092
|
colspan: "1",
|
|
7092
7093
|
key: `HourZ${C}`
|
|
@@ -7098,7 +7099,7 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7098
7099
|
colspan: "1",
|
|
7099
7100
|
class: "tr-title"
|
|
7100
7101
|
}, null, -1)),
|
|
7101
|
-
(u(!0), g(
|
|
7102
|
+
(u(!0), g(te, null, ie(i.tableData.weatherUrls, (C, T) => (u(), g("th", {
|
|
7102
7103
|
rowspan: "1",
|
|
7103
7104
|
colspan: "1",
|
|
7104
7105
|
key: `weatherUrls${T}${C}`
|
|
@@ -7127,10 +7128,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7127
7128
|
colspan: "1",
|
|
7128
7129
|
class: "tr-title"
|
|
7129
7130
|
}, [
|
|
7130
|
-
|
|
7131
|
+
ve("Temp"),
|
|
7131
7132
|
o("span", { class: "unit" }, "°C")
|
|
7132
7133
|
], -1)),
|
|
7133
|
-
(u(!0), g(
|
|
7134
|
+
(u(!0), g(te, null, ie(i.tableData.temp, (C, T) => (u(), g("td", {
|
|
7134
7135
|
rowspan: "1",
|
|
7135
7136
|
colspan: "1",
|
|
7136
7137
|
key: `weatherUrls${T}${C}`
|
|
@@ -7142,10 +7143,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7142
7143
|
colspan: "1",
|
|
7143
7144
|
class: "tr-title"
|
|
7144
7145
|
}, [
|
|
7145
|
-
|
|
7146
|
+
ve("Precip"),
|
|
7146
7147
|
o("span", { class: "unit" }, "mm")
|
|
7147
7148
|
], -1)),
|
|
7148
|
-
(u(!0), g(
|
|
7149
|
+
(u(!0), g(te, null, ie(i.tableData.precip1h, (C, T) => (u(), g("td", {
|
|
7149
7150
|
rowspan: "1",
|
|
7150
7151
|
colspan: "1",
|
|
7151
7152
|
key: `precip1h${T}${C}`
|
|
@@ -7157,10 +7158,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7157
7158
|
colspan: "1",
|
|
7158
7159
|
class: "tr-title"
|
|
7159
7160
|
}, [
|
|
7160
|
-
|
|
7161
|
+
ve("Visibility"),
|
|
7161
7162
|
o("span", { class: "unit" }, "nm")
|
|
7162
7163
|
], -1)),
|
|
7163
|
-
(u(!0), g(
|
|
7164
|
+
(u(!0), g(te, null, ie(i.tableData.visibility, (C, T) => (u(), g("td", {
|
|
7164
7165
|
rowspan: "1",
|
|
7165
7166
|
colspan: "1",
|
|
7166
7167
|
key: `visibility${T}${C}`
|
|
@@ -7172,10 +7173,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7172
7173
|
colspan: "1",
|
|
7173
7174
|
class: "tr-title"
|
|
7174
7175
|
}, [
|
|
7175
|
-
|
|
7176
|
+
ve("Wind gust"),
|
|
7176
7177
|
o("span", { class: "unit" }, "kts")
|
|
7177
7178
|
], -1)),
|
|
7178
|
-
(u(!0), g(
|
|
7179
|
+
(u(!0), g(te, null, ie(i.tableData.windGust, (C, T) => (u(), g("td", {
|
|
7179
7180
|
rowspan: "1",
|
|
7180
7181
|
colspan: "1",
|
|
7181
7182
|
key: `windGust${T}${C}`
|
|
@@ -7193,10 +7194,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7193
7194
|
colspan: "1",
|
|
7194
7195
|
class: "tr-title"
|
|
7195
7196
|
}, [
|
|
7196
|
-
|
|
7197
|
+
ve("Hours"),
|
|
7197
7198
|
o("span", { class: "unit" }, "(LT)")
|
|
7198
7199
|
], -1)),
|
|
7199
|
-
(u(!0), g(
|
|
7200
|
+
(u(!0), g(te, null, ie(i.tableData.hours, (C, T) => (u(), g("th", {
|
|
7200
7201
|
rowspan: "1",
|
|
7201
7202
|
colspan: "1",
|
|
7202
7203
|
key: `currenthoursL${T}${C}`
|
|
@@ -7208,10 +7209,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7208
7209
|
colspan: "1",
|
|
7209
7210
|
class: "tr-title"
|
|
7210
7211
|
}, [
|
|
7211
|
-
|
|
7212
|
+
ve("UTC"),
|
|
7212
7213
|
o("span", { class: "unit" })
|
|
7213
7214
|
], -1)),
|
|
7214
|
-
(u(!0), g(
|
|
7215
|
+
(u(!0), g(te, null, ie(i.tableData.hours, (C, T) => (u(), g("th", {
|
|
7215
7216
|
rowspan: "1",
|
|
7216
7217
|
colspan: "1",
|
|
7217
7218
|
key: `currenthoursZ${T}${C}`
|
|
@@ -7223,10 +7224,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7223
7224
|
colspan: "1",
|
|
7224
7225
|
class: "tr-title"
|
|
7225
7226
|
}, [
|
|
7226
|
-
|
|
7227
|
+
ve("Wind"),
|
|
7227
7228
|
o("span", { class: "unit" }, "kts")
|
|
7228
7229
|
], -1)),
|
|
7229
|
-
(u(!0), g(
|
|
7230
|
+
(u(!0), g(te, null, ie(i.tableData.windSpeed, (C, T) => (u(), g("td", {
|
|
7230
7231
|
rowspan: "1",
|
|
7231
7232
|
colspan: "1",
|
|
7232
7233
|
key: `windSpeed${T}${C}`
|
|
@@ -7234,7 +7235,7 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7234
7235
|
isNaN(i.tableData.windDir[T]) ? q("", !0) : (u(), g("span", {
|
|
7235
7236
|
key: 0,
|
|
7236
7237
|
class: "iconfont icon wind",
|
|
7237
|
-
style:
|
|
7238
|
+
style: pe({ display: "inline-block", transform: `rotate(${i.tableData.windDir[T]}deg)` })
|
|
7238
7239
|
}, "", 4)),
|
|
7239
7240
|
o("span", null, k(C), 1)
|
|
7240
7241
|
]))), 128))
|
|
@@ -7245,10 +7246,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7245
7246
|
colspan: "1",
|
|
7246
7247
|
class: "tr-title"
|
|
7247
7248
|
}, [
|
|
7248
|
-
|
|
7249
|
+
ve("Sig Wave"),
|
|
7249
7250
|
o("span", { class: "unit" }, "m")
|
|
7250
7251
|
], -1)),
|
|
7251
|
-
(u(!0), g(
|
|
7252
|
+
(u(!0), g(te, null, ie(i.tableData.sigwaveHeight, (C, T) => (u(), g("td", {
|
|
7252
7253
|
rowspan: "1",
|
|
7253
7254
|
colspan: "1",
|
|
7254
7255
|
key: `sigwaveHeight${T}${C}`
|
|
@@ -7256,7 +7257,7 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7256
7257
|
isNaN(i.tableData.sigwaveDir[T]) ? q("", !0) : (u(), g("span", {
|
|
7257
7258
|
key: 0,
|
|
7258
7259
|
class: "iconfont icon sigwave",
|
|
7259
|
-
style:
|
|
7260
|
+
style: pe({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[T]}deg)` })
|
|
7260
7261
|
}, "", 4)),
|
|
7261
7262
|
o("span", null, k(C), 1)
|
|
7262
7263
|
]))), 128))
|
|
@@ -7267,10 +7268,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7267
7268
|
colspan: "1",
|
|
7268
7269
|
class: "tr-title"
|
|
7269
7270
|
}, [
|
|
7270
|
-
|
|
7271
|
+
ve("Wind Wave"),
|
|
7271
7272
|
o("span", { class: "unit" }, "m")
|
|
7272
7273
|
], -1)),
|
|
7273
|
-
(u(!0), g(
|
|
7274
|
+
(u(!0), g(te, null, ie(i.tableData.windwaveHeight, (C, T) => (u(), g("td", {
|
|
7274
7275
|
rowspan: "1",
|
|
7275
7276
|
colspan: "1",
|
|
7276
7277
|
key: `windwaveHeight${T}${C}`
|
|
@@ -7278,7 +7279,7 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7278
7279
|
isNaN(i.tableData.sigwaveDir[T]) ? q("", !0) : (u(), g("span", {
|
|
7279
7280
|
key: 0,
|
|
7280
7281
|
class: "iconfont icon windwave",
|
|
7281
|
-
style:
|
|
7282
|
+
style: pe({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[T]}deg)` })
|
|
7282
7283
|
}, "", 4)),
|
|
7283
7284
|
o("span", null, k(C), 1)
|
|
7284
7285
|
]))), 128))
|
|
@@ -7289,10 +7290,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7289
7290
|
colspan: "1",
|
|
7290
7291
|
class: "tr-title"
|
|
7291
7292
|
}, [
|
|
7292
|
-
|
|
7293
|
+
ve("Swell"),
|
|
7293
7294
|
o("span", { class: "unit" }, "m")
|
|
7294
7295
|
], -1)),
|
|
7295
|
-
(u(!0), g(
|
|
7296
|
+
(u(!0), g(te, null, ie(i.tableData.swellHeight, (C, T) => (u(), g("td", {
|
|
7296
7297
|
rowspan: "1",
|
|
7297
7298
|
colspan: "1",
|
|
7298
7299
|
key: `swellHeight${T}${C}`
|
|
@@ -7300,7 +7301,7 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7300
7301
|
isNaN(i.tableData.swellDir[T]) ? q("", !0) : (u(), g("span", {
|
|
7301
7302
|
key: 0,
|
|
7302
7303
|
class: "iconfont icon swell",
|
|
7303
|
-
style:
|
|
7304
|
+
style: pe({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[T]}deg)` })
|
|
7304
7305
|
}, "", 4)),
|
|
7305
7306
|
o("span", null, k(C), 1)
|
|
7306
7307
|
]))), 128))
|
|
@@ -7311,10 +7312,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7311
7312
|
colspan: "1",
|
|
7312
7313
|
class: "tr-title"
|
|
7313
7314
|
}, [
|
|
7314
|
-
|
|
7315
|
+
ve("Current"),
|
|
7315
7316
|
o("span", { class: "unit" }, "kts")
|
|
7316
7317
|
], -1)),
|
|
7317
|
-
(u(!0), g(
|
|
7318
|
+
(u(!0), g(te, null, ie(i.tableData.currentSpeed, (C, T) => (u(), g("td", {
|
|
7318
7319
|
rowspan: "1",
|
|
7319
7320
|
colspan: "1",
|
|
7320
7321
|
key: `currentSpeed${T}${C}`
|
|
@@ -7323,7 +7324,7 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7323
7324
|
key: 0,
|
|
7324
7325
|
class: "iconfont icon current",
|
|
7325
7326
|
id: "meteoGrayIcon",
|
|
7326
|
-
style:
|
|
7327
|
+
style: pe({ display: "inline-block", transform: `rotate(${i.tableData.currentDir[T]}deg)` })
|
|
7327
7328
|
}, "", 4)),
|
|
7328
7329
|
o("span", null, k(C), 1)
|
|
7329
7330
|
]))), 128))
|
|
@@ -7338,10 +7339,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7338
7339
|
colspan: "1",
|
|
7339
7340
|
class: "tr-title"
|
|
7340
7341
|
}, [
|
|
7341
|
-
|
|
7342
|
+
ve("Hours"),
|
|
7342
7343
|
o("span", { class: "unit" }, "(LT)")
|
|
7343
7344
|
], -1)),
|
|
7344
|
-
(u(!0), g(
|
|
7345
|
+
(u(!0), g(te, null, ie(i.tableData.hours, (C, T) => (u(), g("th", {
|
|
7345
7346
|
rowspan: "1",
|
|
7346
7347
|
colspan: "1",
|
|
7347
7348
|
key: `seahoursL${T}${C}`
|
|
@@ -7353,10 +7354,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7353
7354
|
colspan: "1",
|
|
7354
7355
|
class: "tr-title"
|
|
7355
7356
|
}, [
|
|
7356
|
-
|
|
7357
|
+
ve("UTC"),
|
|
7357
7358
|
o("span", { class: "unit" })
|
|
7358
7359
|
], -1)),
|
|
7359
|
-
(u(!0), g(
|
|
7360
|
+
(u(!0), g(te, null, ie(i.tableData.hours, (C, T) => (u(), g("th", {
|
|
7360
7361
|
rowspan: "1",
|
|
7361
7362
|
colspan: "1",
|
|
7362
7363
|
key: `seahoursZ${T}${C}`
|
|
@@ -7368,10 +7369,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7368
7369
|
colspan: "1",
|
|
7369
7370
|
class: "tr-title"
|
|
7370
7371
|
}, [
|
|
7371
|
-
|
|
7372
|
+
ve("SeaLevel"),
|
|
7372
7373
|
o("span", { class: "unit" }, "m")
|
|
7373
7374
|
], -1)),
|
|
7374
|
-
(u(!0), g(
|
|
7375
|
+
(u(!0), g(te, null, ie(i.tableData.seaLevel, (C, T) => (u(), g("td", {
|
|
7375
7376
|
rowspan: "1",
|
|
7376
7377
|
colspan: "1",
|
|
7377
7378
|
key: `SeaLevel${T}${C}`
|
|
@@ -7383,10 +7384,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7383
7384
|
colspan: "1",
|
|
7384
7385
|
class: "tr-title"
|
|
7385
7386
|
}, [
|
|
7386
|
-
|
|
7387
|
+
ve("SeaTemp"),
|
|
7387
7388
|
o("span", { class: "unit" }, "°C")
|
|
7388
7389
|
], -1)),
|
|
7389
|
-
(u(!0), g(
|
|
7390
|
+
(u(!0), g(te, null, ie(i.tableData.seaTemp, (C, T) => (u(), g("td", {
|
|
7390
7391
|
rowspan: "1",
|
|
7391
7392
|
colspan: "1",
|
|
7392
7393
|
key: `SeaTemp${T}${C}`
|
|
@@ -7400,21 +7401,21 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7400
7401
|
]))) : q("", !0),
|
|
7401
7402
|
Oe(o("table", wr, [
|
|
7402
7403
|
o("tr", vr, [
|
|
7403
|
-
(u(!0), g(
|
|
7404
|
+
(u(!0), g(te, null, ie(i.tideTableData, (C, T) => (u(), g("th", {
|
|
7404
7405
|
rowspan: "1",
|
|
7405
7406
|
colspan: "1",
|
|
7406
7407
|
key: `Tide-tr-${T}${C}`
|
|
7407
7408
|
}, k(C.type) + " Tide", 1))), 128))
|
|
7408
7409
|
]),
|
|
7409
7410
|
o("tr", br, [
|
|
7410
|
-
(u(!0), g(
|
|
7411
|
+
(u(!0), g(te, null, ie(i.tideTableData, (C, T) => (u(), g("td", {
|
|
7411
7412
|
rowspan: "1",
|
|
7412
7413
|
colspan: "1",
|
|
7413
7414
|
key: `Tide-date-${T}${C}`
|
|
7414
7415
|
}, k(s.computeHourHmmLT(C == null ? void 0 : C.date)), 1))), 128))
|
|
7415
7416
|
]),
|
|
7416
7417
|
o("tr", Lr, [
|
|
7417
|
-
(u(!0), g(
|
|
7418
|
+
(u(!0), g(te, null, ie(i.tideTableData, (C, T) => (u(), g("td", {
|
|
7418
7419
|
rowspan: "1",
|
|
7419
7420
|
colspan: "1",
|
|
7420
7421
|
key: `Tide-height-${T}${C}`
|
|
@@ -7435,27 +7436,27 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7435
7436
|
o("div", xr, [
|
|
7436
7437
|
o("div", _r, [
|
|
7437
7438
|
e[33] || (e[33] = o("div", null, "Wind", -1)),
|
|
7438
|
-
o("div", null, k((H = (
|
|
7439
|
+
o("div", null, k((H = (F = (D = i.currentHourData) == null ? void 0 : D.weather) == null ? void 0 : F.wind) == null ? void 0 : H.direction) + "/" + k(s.roundPrecision((G = (W = (N = i.currentHourData) == null ? void 0 : N.weather) == null ? void 0 : W.wind) == null ? void 0 : G.kts, 1)) + "kts/BF" + k((oe = ($ = (le = i.currentHourData) == null ? void 0 : le.weather) == null ? void 0 : $.wind) == null ? void 0 : oe.scale) + "/" + k(s.roundPrecision((be = (me = (fe = i.currentHourData) == null ? void 0 : fe.weather) == null ? void 0 : me.wind) == null ? void 0 : be.gusts, 1)) + " kts", 1)
|
|
7439
7440
|
]),
|
|
7440
7441
|
o("div", Br, [
|
|
7441
7442
|
e[34] || (e[34] = o("div", null, "Sig wave", -1)),
|
|
7442
|
-
o("div", null, k((
|
|
7443
|
+
o("div", null, k((U = (ge = (ue = i.currentHourData) == null ? void 0 : ue.wave) == null ? void 0 : ge.sig) == null ? void 0 : U.direction) + "/" + k(s.roundPrecision((ce = (he = (Z = i.currentHourData) == null ? void 0 : Z.wave) == null ? void 0 : he.sig) == null ? void 0 : ce.height, 1)) + "m/" + k(s.roundPrecision((xe = (Le = (Ae = i.currentHourData) == null ? void 0 : Ae.wave) == null ? void 0 : Le.sig) == null ? void 0 : xe.period, 1)) + "s", 1)
|
|
7443
7444
|
])
|
|
7444
7445
|
]),
|
|
7445
7446
|
o("div", Ir, [
|
|
7446
7447
|
o("div", Er, [
|
|
7447
7448
|
e[35] || (e[35] = o("div", null, "Wind wave", -1)),
|
|
7448
|
-
o("div", null, k((Ce = (Ee = (
|
|
7449
|
+
o("div", null, k((Ce = (Ee = (_ = i.currentHourData) == null ? void 0 : _.wave) == null ? void 0 : Ee.wd) == null ? void 0 : Ce.direction) + "/" + k(s.roundPrecision((Pe = (Be = (ke = i.currentHourData) == null ? void 0 : ke.wave) == null ? void 0 : Be.wd) == null ? void 0 : Pe.height, 1)) + "m/" + k(s.roundPrecision((V = (J = (_e = i.currentHourData) == null ? void 0 : _e.wave) == null ? void 0 : J.wd) == null ? void 0 : V.period, 1)) + "s", 1)
|
|
7449
7450
|
]),
|
|
7450
7451
|
o("div", kr, [
|
|
7451
7452
|
e[36] || (e[36] = o("div", null, "Swell", -1)),
|
|
7452
|
-
o("div", null, k((X = (De = (S = i.currentHourData) == null ? void 0 : S.wave) == null ? void 0 : De.swell) == null ? void 0 : X.direction) + "/" + k(s.roundPrecision((M = (Te = (
|
|
7453
|
+
o("div", null, k((X = (De = (S = i.currentHourData) == null ? void 0 : S.wave) == null ? void 0 : De.swell) == null ? void 0 : X.direction) + "/" + k(s.roundPrecision((M = (Te = (ee = i.currentHourData) == null ? void 0 : ee.wave) == null ? void 0 : Te.swell) == null ? void 0 : M.height, 1)) + "m/" + k(s.roundPrecision((Qe = (Se = (we = i.currentHourData) == null ? void 0 : we.wave) == null ? void 0 : Se.swell) == null ? void 0 : Qe.period, 1)) + "s", 1)
|
|
7453
7454
|
])
|
|
7454
7455
|
]),
|
|
7455
7456
|
o("div", Dr, [
|
|
7456
7457
|
o("div", Pr, [
|
|
7457
7458
|
e[37] || (e[37] = o("div", null, "Current", -1)),
|
|
7458
|
-
o("div", null, k((P = (He = i.currentHourData) == null ? void 0 : He.current) == null ? void 0 : P.direction) + "/" + k(s.roundPrecision((Ge = (
|
|
7459
|
+
o("div", null, k((P = (He = i.currentHourData) == null ? void 0 : He.current) == null ? void 0 : P.direction) + "/" + k(s.roundPrecision((Ge = (R = i.currentHourData) == null ? void 0 : R.current) == null ? void 0 : Ge.kts, 2)) + "kts", 1)
|
|
7459
7460
|
]),
|
|
7460
7461
|
o("div", zr, [
|
|
7461
7462
|
e[38] || (e[38] = o("div", null, "Sea level", -1)),
|
|
@@ -7486,7 +7487,7 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7486
7487
|
[Fe, !i.showTables]
|
|
7487
7488
|
]),
|
|
7488
7489
|
o("div", {
|
|
7489
|
-
class:
|
|
7490
|
+
class: ae(["action", i.isDay ? "day" : "night"])
|
|
7490
7491
|
}, [
|
|
7491
7492
|
t.permission & i.helper.LEVEL.Supper ? (u(), g("div", {
|
|
7492
7493
|
key: 0,
|
|
@@ -8003,12 +8004,12 @@ const as = {
|
|
|
8003
8004
|
computed: {
|
|
8004
8005
|
computeLat() {
|
|
8005
8006
|
return function(a) {
|
|
8006
|
-
return
|
|
8007
|
+
return de.lat2pretty(a, 4).pretty;
|
|
8007
8008
|
};
|
|
8008
8009
|
},
|
|
8009
8010
|
computeLng() {
|
|
8010
8011
|
return function(a) {
|
|
8011
|
-
return
|
|
8012
|
+
return de.lng2pretty(a, 4).pretty;
|
|
8012
8013
|
};
|
|
8013
8014
|
}
|
|
8014
8015
|
},
|
|
@@ -8480,7 +8481,7 @@ const vs = /* @__PURE__ */ Y(As, [["render", ws]]), bs = {
|
|
|
8480
8481
|
methods: {
|
|
8481
8482
|
handleRender() {
|
|
8482
8483
|
this.map ? (this.handleClear(), this.area && (this.area.features.forEach((a) => {
|
|
8483
|
-
a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) =>
|
|
8484
|
+
a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => de.convertToMonotonicLng2(e));
|
|
8484
8485
|
}), this.map.addSource(this.source, {
|
|
8485
8486
|
type: "geojson",
|
|
8486
8487
|
data: this.area
|
|
@@ -8660,7 +8661,7 @@ const Is = {
|
|
|
8660
8661
|
this.show ? ((a = this.map) == null || a.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
|
|
8661
8662
|
},
|
|
8662
8663
|
handleMouseMove(a) {
|
|
8663
|
-
const e = a.lngLat, t =
|
|
8664
|
+
const e = a.lngLat, t = de.lng2pretty(e.lng, 2), r = de.lat2pretty(e.lat, 2);
|
|
8664
8665
|
this.lngLat = { lng: t, lat: r };
|
|
8665
8666
|
},
|
|
8666
8667
|
handleComputeLatLngs() {
|
|
@@ -8761,7 +8762,7 @@ function Es(a, e, t, r, i, s) {
|
|
|
8761
8762
|
return i.lngLat ? (u(), g("div", {
|
|
8762
8763
|
key: 0,
|
|
8763
8764
|
class: "lat-lng-tip",
|
|
8764
|
-
style:
|
|
8765
|
+
style: pe({ right: i.right + "px", bottom: t.bottom })
|
|
8765
8766
|
}, [
|
|
8766
8767
|
o("span", null, k(i.lngLat.lat.pretty), 1),
|
|
8767
8768
|
e[0] || (e[0] = o("span", null, ", ", -1)),
|
|
@@ -8839,22 +8840,22 @@ const pt = /* @__PURE__ */ Y(Is, [["render", Es], ["__scopeId", "data-v-747fb3c8
|
|
|
8839
8840
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
8840
8841
|
const L = this.geojson.filter((I) => I.id === e.split("-")[0])[0];
|
|
8841
8842
|
this.pointMarkers[L.id].filter((I) => {
|
|
8842
|
-
var
|
|
8843
|
-
return ((
|
|
8843
|
+
var x;
|
|
8844
|
+
return ((x = I._element) == null ? void 0 : x.id) === e;
|
|
8844
8845
|
})[0].setLngLat([(s = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : s.lng, (l = (n = a.target) == null ? void 0 : n._lngLat) == null ? void 0 : l.lat]);
|
|
8845
|
-
let
|
|
8846
|
-
L.features.forEach((I,
|
|
8846
|
+
let B;
|
|
8847
|
+
L.features.forEach((I, x) => {
|
|
8847
8848
|
if (I.geometry.type === "Point" && I.properties.id == e.split("-")[1]) {
|
|
8848
|
-
|
|
8849
|
+
B = x;
|
|
8849
8850
|
return;
|
|
8850
8851
|
}
|
|
8851
8852
|
});
|
|
8852
|
-
const
|
|
8853
|
+
const y = L.features.filter((I) => I.geometry.type === "Point");
|
|
8853
8854
|
this.handleTmpPointUpdate(
|
|
8854
8855
|
L,
|
|
8855
|
-
|
|
8856
|
-
{ lng: (d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, lat: (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lat, properties:
|
|
8857
|
-
|
|
8856
|
+
y[B - 1],
|
|
8857
|
+
{ lng: (d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, lat: (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lat, properties: y[B].properties },
|
|
8858
|
+
B === y.length - 1 ? void 0 : y[B + 1]
|
|
8858
8859
|
);
|
|
8859
8860
|
}
|
|
8860
8861
|
},
|
|
@@ -8862,13 +8863,13 @@ const pt = /* @__PURE__ */ Y(Is, [["render", Es], ["__scopeId", "data-v-747fb3c8
|
|
|
8862
8863
|
var t, r, i, s, n, l, c, d, h, p;
|
|
8863
8864
|
const e = (r = (t = a.target) == null ? void 0 : t._element) == null ? void 0 : r.id;
|
|
8864
8865
|
if ((e == null ? void 0 : e.split("-").length) === 2) {
|
|
8865
|
-
const L = this.geojson.filter((
|
|
8866
|
-
this.pointMarkers[L.id].filter((
|
|
8866
|
+
const L = this.geojson.filter((y) => y.id === e.split("-")[0])[0];
|
|
8867
|
+
this.pointMarkers[L.id].filter((y) => {
|
|
8867
8868
|
var I;
|
|
8868
|
-
return ((I =
|
|
8869
|
+
return ((I = y._element) == null ? void 0 : I.id) === e;
|
|
8869
8870
|
})[0].setLngLat([(s = (i = a.target) == null ? void 0 : i._lngLat) == null ? void 0 : s.lng, (l = (n = a.target) == null ? void 0 : n._lngLat) == null ? void 0 : l.lat]);
|
|
8870
|
-
const
|
|
8871
|
-
|
|
8871
|
+
const B = L.features.filter((y) => y.geometry.type === "Point" && y.properties.id == e.split("-")[1])[0];
|
|
8872
|
+
B.geometry.coordinates = [(d = (c = a.target) == null ? void 0 : c._lngLat) == null ? void 0 : d.lng, (p = (h = a.target) == null ? void 0 : h._lngLat) == null ? void 0 : p.lat], L.features = L.features.filter((y) => y.geometry.type === "Point"), this.handlePointUpdate(L);
|
|
8872
8873
|
}
|
|
8873
8874
|
},
|
|
8874
8875
|
handleContextmenu(a) {
|
|
@@ -8916,11 +8917,11 @@ const pt = /* @__PURE__ */ Y(Is, [["render", Es], ["__scopeId", "data-v-747fb3c8
|
|
|
8916
8917
|
const r = [];
|
|
8917
8918
|
for (let i = 1; i < e.length; i++) {
|
|
8918
8919
|
const s = e[i - 1], n = e[i], l = s.properties, c = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, d = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, h = We.calculateDistance(c, d, l.mode === "RL", 4), p = We.calculateBearing(c, d, l.mode === "RL", 2);
|
|
8919
|
-
t =
|
|
8920
|
+
t = de.roundPrecision(t + h, 2);
|
|
8920
8921
|
let L;
|
|
8921
|
-
l.mode === "RL" ? L =
|
|
8922
|
-
const
|
|
8923
|
-
|
|
8922
|
+
l.mode === "RL" ? L = de.convertToMonotonicLng([c, d]) : L = de.convertToMonotonicLng(We.interpolateCoordinates(c, d, 200));
|
|
8923
|
+
const E = Q.lineString(L.map((B) => [B.lng, B.lat]));
|
|
8924
|
+
E.properties.dist = h, E.properties.bearing = p, E.properties.total = t, r.push(E);
|
|
8924
8925
|
}
|
|
8925
8926
|
e.push(...r), a.total = t;
|
|
8926
8927
|
}
|
|
@@ -8933,16 +8934,16 @@ const pt = /* @__PURE__ */ Y(Is, [["render", Es], ["__scopeId", "data-v-747fb3c8
|
|
|
8933
8934
|
const c = e.properties, d = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, h = { lng: t.lng, lat: t.lat };
|
|
8934
8935
|
s = We.calculateDistance(d, h, c.mode === "RL", 4), n = We.calculateBearing(d, h, c.mode === "RL", 2);
|
|
8935
8936
|
let p;
|
|
8936
|
-
c.mode === "RL" ? p =
|
|
8937
|
-
const L = Q.lineString(p.map((
|
|
8937
|
+
c.mode === "RL" ? p = de.convertToMonotonicLng([d, h]) : p = de.convertToMonotonicLng(We.interpolateCoordinates(d, h, 200));
|
|
8938
|
+
const L = Q.lineString(p.map((E) => [E.lng, E.lat]));
|
|
8938
8939
|
L.properties.dist = s, L.properties.bearing = n, i.features.push(L);
|
|
8939
8940
|
}
|
|
8940
8941
|
if (r) {
|
|
8941
8942
|
const c = t.properties, d = t, h = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
|
|
8942
8943
|
s = We.calculateDistance(d, h, c.mode === "RL", 4), n = We.calculateBearing(d, h, c.mode === "RL", 2);
|
|
8943
8944
|
let p;
|
|
8944
|
-
c.mode === "RL" ? p =
|
|
8945
|
-
const L = Q.lineString(p.map((
|
|
8945
|
+
c.mode === "RL" ? p = de.convertToMonotonicLng([d, h]) : p = de.convertToMonotonicLng(We.interpolateCoordinates(d, h, 200));
|
|
8946
|
+
const L = Q.lineString(p.map((E) => [E.lng, E.lat]));
|
|
8946
8947
|
L.properties.dist = s, L.properties.bearing = n, i.features.push(L);
|
|
8947
8948
|
}
|
|
8948
8949
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
|
|
@@ -8983,7 +8984,7 @@ const pt = /* @__PURE__ */ Y(Is, [["render", Es], ["__scopeId", "data-v-747fb3c8
|
|
|
8983
8984
|
}
|
|
8984
8985
|
});
|
|
8985
8986
|
let l;
|
|
8986
|
-
if (r ? l = '<div class="marker-label">Drag and drop</div>' : l = `<div class="marker-label">Total distance: <b>${
|
|
8987
|
+
if (r ? l = '<div class="marker-label">Drag and drop</div>' : l = `<div class="marker-label">Total distance: <b>${de.roundPrecision((a.total ?? 0) + s, 1)}</b>nm, bearing: <b>${n}</b>°</div><div class="marker-label">${this.navigation === "RL" ? "RL" : "GC"} mode, using 'Shift' to switch</div><div class="marker-label">Double click to end</div>`, this.tipMarker)
|
|
8987
8988
|
this.tipMarker._element.innerHTML = l, this.tipMarker.setLngLat([t.lng, t.lat]);
|
|
8988
8989
|
else {
|
|
8989
8990
|
const c = document.createElement("div");
|
|
@@ -9055,11 +9056,11 @@ const pt = /* @__PURE__ */ Y(Is, [["render", Es], ["__scopeId", "data-v-747fb3c8
|
|
|
9055
9056
|
}
|
|
9056
9057
|
},
|
|
9057
9058
|
handleClear(a, e = !0) {
|
|
9058
|
-
var s, n, l, c, d, h, p, L,
|
|
9059
|
+
var s, n, l, c, d, h, p, L, E;
|
|
9059
9060
|
const t = `${a.id}-${this.source}`, r = `${a.id}-${this.layer}`, i = `${a.id}-${this.labelLayer}`;
|
|
9060
|
-
(s = this.map) != null && s.getLayer(r) && this.map.removeLayer(r), (n = this.map) != null && n.getLayer(i) && this.map.removeLayer(i), (l = this.map) != null && l.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (c = this.map) != null && c.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (d = this.closeMarkers[a.id]) == null || d.remove(), this.closeMarkers[a.id] = void 0, (h = this.pointMarkers[a.id]) == null || h.forEach((
|
|
9061
|
-
|
|
9062
|
-
}), this.pointMarkers[a.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((L = this.map) != null && L.getSource(t)) && this.map.removeSource(t), e && ((
|
|
9061
|
+
(s = this.map) != null && s.getLayer(r) && this.map.removeLayer(r), (n = this.map) != null && n.getLayer(i) && this.map.removeLayer(i), (l = this.map) != null && l.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (c = this.map) != null && c.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (d = this.closeMarkers[a.id]) == null || d.remove(), this.closeMarkers[a.id] = void 0, (h = this.pointMarkers[a.id]) == null || h.forEach((B) => {
|
|
9062
|
+
B == null || B.remove();
|
|
9063
|
+
}), this.pointMarkers[a.id] = [], (p = this.tipMarker) == null || p.remove(), this.tipMarker = void 0, e && ((L = this.map) != null && L.getSource(t)) && this.map.removeSource(t), e && ((E = this.map) != null && E.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
9063
9064
|
}
|
|
9064
9065
|
}
|
|
9065
9066
|
};
|
|
@@ -9124,11 +9125,11 @@ const zs = {
|
|
|
9124
9125
|
methods: {}
|
|
9125
9126
|
}, Ms = { key: 0 }, Ss = { class: "bar-item" };
|
|
9126
9127
|
function Ts(a, e, t, r, i, s) {
|
|
9127
|
-
const n =
|
|
9128
|
+
const n = j("ElTooltip");
|
|
9128
9129
|
return t.enabled && t.permission & i.helper.LEVEL.Supper ? (u(), g("div", Ms, [
|
|
9129
9130
|
o("div", {
|
|
9130
9131
|
class: "menu-bar-box",
|
|
9131
|
-
style:
|
|
9132
|
+
style: pe({ position: "absolute", right: i.right + "px", bottom: t.bottom })
|
|
9132
9133
|
}, [
|
|
9133
9134
|
o("div", Ss, [
|
|
9134
9135
|
O(n, {
|
|
@@ -9139,7 +9140,7 @@ function Ts(a, e, t, r, i, s) {
|
|
|
9139
9140
|
}, {
|
|
9140
9141
|
default: Me(() => [
|
|
9141
9142
|
o("div", {
|
|
9142
|
-
class:
|
|
9143
|
+
class: ae(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
|
|
9143
9144
|
onClick: e[0] || (e[0] = (l) => i.vendor = "hi")
|
|
9144
9145
|
}, e[2] || (e[2] = [
|
|
9145
9146
|
o("span", { class: "iconfont" }, "HI", -1)
|
|
@@ -9155,7 +9156,7 @@ function Ts(a, e, t, r, i, s) {
|
|
|
9155
9156
|
}, {
|
|
9156
9157
|
default: Me(() => [
|
|
9157
9158
|
o("div", {
|
|
9158
|
-
class:
|
|
9159
|
+
class: ae(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
|
|
9159
9160
|
onClick: e[1] || (e[1] = (l) => i.vendor = "i4")
|
|
9160
9161
|
}, e[3] || (e[3] = [
|
|
9161
9162
|
o("span", { class: "iconfont" }, "I4", -1)
|
|
@@ -9411,7 +9412,7 @@ const Ys = {
|
|
|
9411
9412
|
watch: {
|
|
9412
9413
|
ts: {
|
|
9413
9414
|
handler(a, e) {
|
|
9414
|
-
a && e &&
|
|
9415
|
+
a && e && re(a).utc().format("yyyy-MM-DD HH") !== re(e).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
|
|
9415
9416
|
this.handleDateChange({ tropicals: !1 });
|
|
9416
9417
|
});
|
|
9417
9418
|
},
|
|
@@ -9431,11 +9432,11 @@ const Ys = {
|
|
|
9431
9432
|
},
|
|
9432
9433
|
activeWeatherLayers: {
|
|
9433
9434
|
handler() {
|
|
9434
|
-
var t, r, i, s, n, l, c, d, h, p, L,
|
|
9435
|
+
var t, r, i, s, n, l, c, d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z;
|
|
9435
9436
|
if (!this.map)
|
|
9436
9437
|
return !1;
|
|
9437
9438
|
const a = this.activeWeatherLayers.some((D) => D.key === "wind" && D.particle === !0 || D.key === "current" && D.particle === !0 || D.key === "ice-edge" || D.key === "ice-thickness" || D.key === "ice-cover" || D.key === "temp" || D.key === "water-temp"), e = this.activeWeatherLayers.some((D) => D.key === "visibility" || D.key === "precip3h");
|
|
9438
|
-
this.activeWeatherLayers.length > 0 ? (!a && this.map.getZoom() > 3 && this.enc ? (r = (t = this.map) == null ? void 0 : t.getLayer(this.enc)) == null || r.setLayoutProperty("visibility", "visible") : ((s = (i = this.map) == null ? void 0 : i.getLayer("i4")) == null || s.setLayoutProperty("visibility", "none"), (l = (n = this.map) == null ? void 0 : n.getLayer("hi")) == null || l.setLayoutProperty("visibility", "none")), (d = (c = this.map) == null ? void 0 : c.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || d.setLayoutProperty("visibility", "visible"), (p = this.map) != null && p.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((L = this.map) != null && L.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((
|
|
9439
|
+
this.activeWeatherLayers.length > 0 ? (!a && this.map.getZoom() > 3 && this.enc ? (r = (t = this.map) == null ? void 0 : t.getLayer(this.enc)) == null || r.setLayoutProperty("visibility", "visible") : ((s = (i = this.map) == null ? void 0 : i.getLayer("i4")) == null || s.setLayoutProperty("visibility", "none"), (l = (n = this.map) == null ? void 0 : n.getLayer("hi")) == null || l.setLayoutProperty("visibility", "none")), (d = (c = this.map) == null ? void 0 : c.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || d.setLayoutProperty("visibility", "visible"), (p = this.map) != null && p.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((L = this.map) != null && L.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((B = this.map) == null || B.moveLayer((E = this.viewport) == null ? void 0 : E.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), e && ((I = this.map) == null || I.moveLayer(this.helper.mapboxCustomer.layers.countryBoundary.id, (y = this.viewport) == null ? void 0 : y.rampColorLayer))) : ((f = (x = this.map) == null ? void 0 : x.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || f.setLayoutProperty("visibility", "none"), this.enc && this.map.getZoom() > 3 ? (m = (v = this.map) == null ? void 0 : v.getLayer(this.enc)) == null || m.setLayoutProperty("visibility", "visible") : ((A = (b = this.map) == null ? void 0 : b.getLayer("i4")) == null || A.setLayoutProperty("visibility", "none"), (z = (w = this.map) == null ? void 0 : w.getLayer("hi")) == null || z.setLayoutProperty("visibility", "none"))), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
|
|
9439
9440
|
},
|
|
9440
9441
|
immediate: !0
|
|
9441
9442
|
},
|
|
@@ -9491,18 +9492,18 @@ const Ys = {
|
|
|
9491
9492
|
const e = (/* @__PURE__ */ new Date()).valueOf();
|
|
9492
9493
|
let t = 0, r = 0;
|
|
9493
9494
|
if (this.map) {
|
|
9494
|
-
const
|
|
9495
|
+
const E = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, B = (s = this.map) == null ? void 0 : s.getBounds(), y = `${B._sw.lng},${B._sw.lat},${B._ne.lng},${B._ne.lat}`;
|
|
9495
9496
|
if (this.particleFactor && ((n = this.$refs.layer) != null && n.autoActive)) {
|
|
9496
|
-
const I = $e.WEATHER_LAYERS.find((
|
|
9497
|
-
var
|
|
9498
|
-
return ((
|
|
9497
|
+
const I = $e.WEATHER_LAYERS.find((x) => {
|
|
9498
|
+
var f;
|
|
9499
|
+
return ((f = x.peer) == null ? void 0 : f.weight) === this.particleFactor.weight;
|
|
9499
9500
|
});
|
|
9500
9501
|
this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & I.weight ? this.weatherWeight : this.weatherWeight + I.weight : this.weatherWeight = this.weatherWeight & I.weight ? this.weatherWeight - I.weight : this.weatherWeight;
|
|
9501
9502
|
}
|
|
9502
9503
|
if (this.weatherWeight > 0) {
|
|
9503
|
-
let I = this.weatherWeight,
|
|
9504
|
-
if (a.tropicals || this.weatherWeight & 256 && (
|
|
9505
|
-
const
|
|
9504
|
+
let I = this.weatherWeight, x;
|
|
9505
|
+
if (a.tropicals || this.weatherWeight & 256 && (x = this.weatherLayers.tropicals, x && (I -= 256, x.version = Math.random() + 1)), I > 0) {
|
|
9506
|
+
const f = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], v = await Ne.get(`${f}/api/arc/weather/layers2/links?l=${I}&v=${this.source}&z=${E}&bbox=${y}&t=${this.ts}`, {
|
|
9506
9507
|
headers: {
|
|
9507
9508
|
Authorization: this.token || this.defaultMeteoToken
|
|
9508
9509
|
}
|
|
@@ -9521,13 +9522,13 @@ const Ys = {
|
|
|
9521
9522
|
console.log(`[${w}] fetch layer error: ${z}`);
|
|
9522
9523
|
})
|
|
9523
9524
|
);
|
|
9524
|
-
const
|
|
9525
|
-
this.weatherLayers = {},
|
|
9526
|
-
var
|
|
9527
|
-
const z = ((
|
|
9525
|
+
const A = await Promise.all(b);
|
|
9526
|
+
this.weatherLayers = {}, A.map((w) => {
|
|
9527
|
+
var F, H, N, W;
|
|
9528
|
+
const z = ((F = w == null ? void 0 : w.data) == null ? void 0 : F.data) || (w == null ? void 0 : w.data), D = (N = (H = w == null ? void 0 : w.config) == null ? void 0 : H.headers) == null ? void 0 : N.key;
|
|
9528
9529
|
D && z && (this.weatherLayers[D] = {
|
|
9529
9530
|
raw: z,
|
|
9530
|
-
type: ((
|
|
9531
|
+
type: ((W = w == null ? void 0 : w.config) == null ? void 0 : W.responseType) === "blob" ? "image" : "json",
|
|
9531
9532
|
etime: v.data.etime
|
|
9532
9533
|
});
|
|
9533
9534
|
}), m.tropicals && Ne.get(m.tropicals, {
|
|
@@ -9536,8 +9537,8 @@ const Ys = {
|
|
|
9536
9537
|
key: "tropicals"
|
|
9537
9538
|
}
|
|
9538
9539
|
}).then((w) => {
|
|
9539
|
-
var
|
|
9540
|
-
const z = ct.convert2Geojson(((
|
|
9540
|
+
var F, H, N;
|
|
9541
|
+
const z = ct.convert2Geojson(((F = w == null ? void 0 : w.data) == null ? void 0 : F.data) || (w == null ? void 0 : w.data)), D = (N = (H = w == null ? void 0 : w.config) == null ? void 0 : H.headers) == null ? void 0 : N.key;
|
|
9541
9542
|
this.weatherLayers[D] = {
|
|
9542
9543
|
data: z,
|
|
9543
9544
|
active: !0,
|
|
@@ -9567,7 +9568,7 @@ const Ys = {
|
|
|
9567
9568
|
};
|
|
9568
9569
|
}
|
|
9569
9570
|
}
|
|
9570
|
-
|
|
9571
|
+
x && (x.etime = this.ts, x.cached = !0, this.weatherLayers.tropicals = x);
|
|
9571
9572
|
}
|
|
9572
9573
|
this.handleWeatherLayerToggle(), this.handleDrawWeather4Json();
|
|
9573
9574
|
}
|
|
@@ -9587,21 +9588,21 @@ const Ys = {
|
|
|
9587
9588
|
}
|
|
9588
9589
|
});
|
|
9589
9590
|
if (((e = p == null ? void 0 : p.data) == null ? void 0 : e.code) === 0) {
|
|
9590
|
-
const L = (t = p == null ? void 0 : p.data) == null ? void 0 : t.data,
|
|
9591
|
-
for (const
|
|
9592
|
-
|
|
9593
|
-
Ne.get(L[
|
|
9591
|
+
const L = (t = p == null ? void 0 : p.data) == null ? void 0 : t.data, E = [];
|
|
9592
|
+
for (const y in L)
|
|
9593
|
+
E.push(
|
|
9594
|
+
Ne.get(L[y], {
|
|
9594
9595
|
headers: {
|
|
9595
9596
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9596
|
-
key:
|
|
9597
|
+
key: y
|
|
9597
9598
|
}
|
|
9598
9599
|
})
|
|
9599
9600
|
);
|
|
9600
|
-
const
|
|
9601
|
-
this.otherLayers = { enc: n, world12nm: l, worldMarine: c, chinaRoute: d },
|
|
9602
|
-
var
|
|
9603
|
-
const I = ((
|
|
9604
|
-
this.otherLayers[
|
|
9601
|
+
const B = await Promise.all(E);
|
|
9602
|
+
this.otherLayers = { enc: n, world12nm: l, worldMarine: c, chinaRoute: d }, B.map((y) => {
|
|
9603
|
+
var f, v, m;
|
|
9604
|
+
const I = ((f = y == null ? void 0 : y.data) == null ? void 0 : f.data) || (y == null ? void 0 : y.data), x = (m = (v = y == null ? void 0 : y.config) == null ? void 0 : v.headers) == null ? void 0 : m.key;
|
|
9605
|
+
this.otherLayers[x] = I;
|
|
9605
9606
|
});
|
|
9606
9607
|
}
|
|
9607
9608
|
} else if (a.dayNight && s & 1024) {
|
|
@@ -9611,20 +9612,20 @@ const Ys = {
|
|
|
9611
9612
|
}
|
|
9612
9613
|
});
|
|
9613
9614
|
if (((r = p == null ? void 0 : p.data) == null ? void 0 : r.code) === 0) {
|
|
9614
|
-
const L = (i = p == null ? void 0 : p.data) == null ? void 0 : i.data,
|
|
9615
|
-
for (const
|
|
9616
|
-
|
|
9617
|
-
Ne.get(L[
|
|
9615
|
+
const L = (i = p == null ? void 0 : p.data) == null ? void 0 : i.data, E = [];
|
|
9616
|
+
for (const y in L)
|
|
9617
|
+
E.push(
|
|
9618
|
+
Ne.get(L[y], {
|
|
9618
9619
|
headers: {
|
|
9619
9620
|
Authorization: this.token || this.defaultMeteoToken,
|
|
9620
|
-
key:
|
|
9621
|
+
key: y
|
|
9621
9622
|
}
|
|
9622
9623
|
})
|
|
9623
9624
|
);
|
|
9624
|
-
(await Promise.all(
|
|
9625
|
-
var
|
|
9626
|
-
const I = ((
|
|
9627
|
-
this.otherLayers[
|
|
9625
|
+
(await Promise.all(E)).map((y) => {
|
|
9626
|
+
var f, v, m;
|
|
9627
|
+
const I = ((f = y == null ? void 0 : y.data) == null ? void 0 : f.data) || (y == null ? void 0 : y.data), x = (m = (v = y == null ? void 0 : y.config) == null ? void 0 : v.headers) == null ? void 0 : m.key;
|
|
9628
|
+
this.otherLayers[x] = I;
|
|
9628
9629
|
});
|
|
9629
9630
|
}
|
|
9630
9631
|
}
|
|
@@ -9679,64 +9680,64 @@ const Ys = {
|
|
|
9679
9680
|
);
|
|
9680
9681
|
},
|
|
9681
9682
|
handleDrawWeather4Json() {
|
|
9682
|
-
var d, h, p, L,
|
|
9683
|
+
var d, h, p, L, E, B;
|
|
9683
9684
|
const a = (/* @__PURE__ */ new Date()).valueOf();
|
|
9684
9685
|
let e = 0, t = 0;
|
|
9685
|
-
const r = (d = this.map) == null ? void 0 : d.getBounds(), i = this.map.getZoom(), s =
|
|
9686
|
-
for (const
|
|
9686
|
+
const r = (d = this.map) == null ? void 0 : d.getBounds(), i = this.map.getZoom(), s = de.convertToStdLng(r._sw.lng), n = de.convertToStdLng(r._ne.lng), l = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
|
|
9687
|
+
for (const y in this.weatherLayers) {
|
|
9687
9688
|
let I = !1;
|
|
9688
|
-
if (this.weatherLayers[
|
|
9689
|
-
let
|
|
9690
|
-
if (
|
|
9689
|
+
if (this.weatherLayers[y].active && this.weatherLayers[y].type === "json") {
|
|
9690
|
+
let x = [];
|
|
9691
|
+
if (y === "swell") {
|
|
9691
9692
|
I = !0;
|
|
9692
|
-
const
|
|
9693
|
-
for (const m in
|
|
9693
|
+
const f = ((h = this.weatherLayers[y]) == null ? void 0 : h.direction) || {};
|
|
9694
|
+
for (const m in f)
|
|
9694
9695
|
if (m > l && m < c && (!(i <= this.zoom) || m % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9695
|
-
const b =
|
|
9696
|
-
s > n ? b.forEach((
|
|
9697
|
-
var z, D,
|
|
9696
|
+
const b = f[m].lng;
|
|
9697
|
+
s > n ? b.forEach((A, w) => {
|
|
9698
|
+
var z, D, F, H, N, W;
|
|
9698
9699
|
if (i < 2) {
|
|
9699
|
-
if ((
|
|
9700
|
-
const
|
|
9701
|
-
val: ((z =
|
|
9702
|
-
spd: (
|
|
9700
|
+
if ((A >= 0 && A <= 360 || A >= -360 && A <= 0) && A % 10 === 0) {
|
|
9701
|
+
const G = Q.point([A, m], {
|
|
9702
|
+
val: ((z = f[m].val) == null ? void 0 : z[w]) || ((D = f[m].dir) == null ? void 0 : D[w]),
|
|
9703
|
+
spd: (F = f[m].spd) == null ? void 0 : F[w]
|
|
9703
9704
|
});
|
|
9704
|
-
|
|
9705
|
+
x.push(G);
|
|
9705
9706
|
}
|
|
9706
|
-
} else if ((
|
|
9707
|
-
const
|
|
9708
|
-
val: ((H =
|
|
9709
|
-
spd: (
|
|
9707
|
+
} else if ((A >= s && A <= 180 || A >= -180 && A <= n) && (!(i <= this.zoom) || A % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9708
|
+
const G = Q.point([A, m], {
|
|
9709
|
+
val: ((H = f[m].val) == null ? void 0 : H[w]) || ((N = f[m].dir) == null ? void 0 : N[w]),
|
|
9710
|
+
spd: (W = f[m].spd) == null ? void 0 : W[w]
|
|
9710
9711
|
});
|
|
9711
|
-
|
|
9712
|
+
x.push(G);
|
|
9712
9713
|
}
|
|
9713
|
-
}) : b.forEach((
|
|
9714
|
-
var z, D,
|
|
9714
|
+
}) : b.forEach((A, w) => {
|
|
9715
|
+
var z, D, F, H, N, W;
|
|
9715
9716
|
if (s < 2) {
|
|
9716
|
-
if ((
|
|
9717
|
-
const
|
|
9718
|
-
val: ((z =
|
|
9719
|
-
spd: (
|
|
9717
|
+
if ((A >= 0 && A <= 360 || A >= -360 && A <= 0) && A % 10 === 0) {
|
|
9718
|
+
const G = Q.point([A, m], {
|
|
9719
|
+
val: ((z = f[m].val) == null ? void 0 : z[w]) || ((D = f[m].dir) == null ? void 0 : D[w]),
|
|
9720
|
+
spd: (F = f[m].spd) == null ? void 0 : F[w]
|
|
9720
9721
|
});
|
|
9721
|
-
|
|
9722
|
+
x.push(G);
|
|
9722
9723
|
}
|
|
9723
|
-
} else if (
|
|
9724
|
-
const
|
|
9725
|
-
val: ((H =
|
|
9726
|
-
spd: (
|
|
9724
|
+
} else if (A >= s && A <= n && (!(i <= this.zoom) || A % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9725
|
+
const G = Q.point([A, m], {
|
|
9726
|
+
val: ((H = f[m].val) == null ? void 0 : H[w]) || ((N = f[m].dir) == null ? void 0 : N[w]),
|
|
9727
|
+
spd: (W = f[m].spd) == null ? void 0 : W[w]
|
|
9727
9728
|
});
|
|
9728
|
-
|
|
9729
|
+
x.push(G);
|
|
9729
9730
|
}
|
|
9730
9731
|
});
|
|
9731
9732
|
}
|
|
9732
9733
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("swell direction elapsed: ", t, ", total: ", e += t);
|
|
9733
|
-
const v = this.weatherLayers[
|
|
9734
|
+
const v = this.weatherLayers[y].height;
|
|
9734
9735
|
if (v) {
|
|
9735
9736
|
if (!v.data) {
|
|
9736
9737
|
const m = [];
|
|
9737
9738
|
for (const b in (p = v.raw) == null ? void 0 : p.LineString) {
|
|
9738
|
-
const
|
|
9739
|
-
for (const w of
|
|
9739
|
+
const A = v.raw.LineString[b];
|
|
9740
|
+
for (const w of A)
|
|
9740
9741
|
m.push(
|
|
9741
9742
|
Q.lineString(w, {
|
|
9742
9743
|
val: Number(b)
|
|
@@ -9747,185 +9748,185 @@ const Ys = {
|
|
|
9747
9748
|
}
|
|
9748
9749
|
if (v.data) {
|
|
9749
9750
|
const m = this.handleBboxClip(v.data, r);
|
|
9750
|
-
|
|
9751
|
+
x = x.concat(m);
|
|
9751
9752
|
}
|
|
9752
9753
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("swell height elapsed: ", t, ", total: ", e += t);
|
|
9753
9754
|
}
|
|
9754
|
-
} else if (
|
|
9755
|
+
} else if (y === "current" && this.showCurrentIsoband) {
|
|
9755
9756
|
I = !0;
|
|
9756
|
-
const
|
|
9757
|
-
for (const m in
|
|
9757
|
+
const f = ((L = this.weatherLayers[y]) == null ? void 0 : L.direction) || {};
|
|
9758
|
+
for (const m in f)
|
|
9758
9759
|
if (m > l && m < c && (!(i <= this.zoom) || m % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9759
|
-
const b =
|
|
9760
|
-
s > n ? b.forEach((
|
|
9761
|
-
var z, D,
|
|
9760
|
+
const b = f[m].lng;
|
|
9761
|
+
s > n ? b.forEach((A, w) => {
|
|
9762
|
+
var z, D, F, H, N, W;
|
|
9762
9763
|
if (i < 2) {
|
|
9763
|
-
if ((
|
|
9764
|
-
const
|
|
9765
|
-
val: ((z =
|
|
9766
|
-
spd: (
|
|
9764
|
+
if ((A >= 0 && A <= 360 || A >= -360 && A <= 0) && A % 10 === 0) {
|
|
9765
|
+
const G = Q.point([A, m], {
|
|
9766
|
+
val: ((z = f[m].val) == null ? void 0 : z[w]) || ((D = f[m].dir) == null ? void 0 : D[w]),
|
|
9767
|
+
spd: (F = f[m].spd) == null ? void 0 : F[w]
|
|
9767
9768
|
});
|
|
9768
|
-
|
|
9769
|
+
x.push(G);
|
|
9769
9770
|
}
|
|
9770
|
-
} else if ((
|
|
9771
|
-
const
|
|
9772
|
-
val: ((H =
|
|
9773
|
-
spd: (
|
|
9771
|
+
} else if ((A >= s && A <= 180 || A >= -180 && A <= n) && (!(i <= this.zoom) || A % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9772
|
+
const G = Q.point([A, m], {
|
|
9773
|
+
val: ((H = f[m].val) == null ? void 0 : H[w]) || ((N = f[m].dir) == null ? void 0 : N[w]),
|
|
9774
|
+
spd: (W = f[m].spd) == null ? void 0 : W[w]
|
|
9774
9775
|
});
|
|
9775
|
-
|
|
9776
|
+
x.push(G);
|
|
9776
9777
|
}
|
|
9777
|
-
}) : b.forEach((
|
|
9778
|
-
var z, D,
|
|
9778
|
+
}) : b.forEach((A, w) => {
|
|
9779
|
+
var z, D, F, H, N, W;
|
|
9779
9780
|
if (s < 2) {
|
|
9780
|
-
if ((
|
|
9781
|
-
const
|
|
9782
|
-
val: ((z =
|
|
9783
|
-
spd: (
|
|
9781
|
+
if ((A >= 0 && A <= 360 || A >= -360 && A <= 0) && A % 10 === 0) {
|
|
9782
|
+
const G = Q.point([A, m], {
|
|
9783
|
+
val: ((z = f[m].val) == null ? void 0 : z[w]) || ((D = f[m].dir) == null ? void 0 : D[w]),
|
|
9784
|
+
spd: (F = f[m].spd) == null ? void 0 : F[w]
|
|
9784
9785
|
});
|
|
9785
|
-
|
|
9786
|
+
x.push(G);
|
|
9786
9787
|
}
|
|
9787
|
-
} else if (
|
|
9788
|
-
const
|
|
9789
|
-
val: ((H =
|
|
9790
|
-
spd: (
|
|
9788
|
+
} else if (A >= s && A <= n && (!(i <= this.zoom) || A % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
9789
|
+
const G = Q.point([A, m], {
|
|
9790
|
+
val: ((H = f[m].val) == null ? void 0 : H[w]) || ((N = f[m].dir) == null ? void 0 : N[w]),
|
|
9791
|
+
spd: (W = f[m].spd) == null ? void 0 : W[w]
|
|
9791
9792
|
});
|
|
9792
|
-
|
|
9793
|
+
x.push(G);
|
|
9793
9794
|
}
|
|
9794
9795
|
});
|
|
9795
9796
|
}
|
|
9796
9797
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current direction elapsed: ", t, ", total: ", e += t);
|
|
9797
|
-
const v = this.weatherLayers[
|
|
9798
|
+
const v = this.weatherLayers[y].speed;
|
|
9798
9799
|
if (v) {
|
|
9799
9800
|
if (!v.data) {
|
|
9800
9801
|
const b = [];
|
|
9801
|
-
for (const
|
|
9802
|
-
const w = v.raw.Polygon[
|
|
9802
|
+
for (const A in (E = v.raw) == null ? void 0 : E.Polygon) {
|
|
9803
|
+
const w = v.raw.Polygon[A];
|
|
9803
9804
|
for (const z of w)
|
|
9804
9805
|
b.push(
|
|
9805
9806
|
Q.polygon(z, {
|
|
9806
|
-
val: Number(
|
|
9807
|
+
val: Number(A)
|
|
9807
9808
|
})
|
|
9808
9809
|
);
|
|
9809
9810
|
}
|
|
9810
9811
|
v.data = Q.featureCollection(b);
|
|
9811
9812
|
}
|
|
9812
9813
|
const m = i < this.zoom ? v.data.features.filter((b) => b.properties.val > 0.5) : v.data.features;
|
|
9813
|
-
|
|
9814
|
+
x = x.concat(m), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current speed elapsed: ", t, ", total: ", e += t);
|
|
9814
9815
|
}
|
|
9815
|
-
} else if (
|
|
9816
|
+
} else if (y === "wind" && this.showWindFeather) {
|
|
9816
9817
|
I = !0;
|
|
9817
|
-
const
|
|
9818
|
-
for (const v in
|
|
9818
|
+
const f = this.weatherLayers.wind.raw;
|
|
9819
|
+
for (const v in f)
|
|
9819
9820
|
if (v > l && v < c && (!(i <= this.zoom) || v % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9820
|
-
const m =
|
|
9821
|
-
s > n ? m.forEach((b,
|
|
9822
|
-
var w, z, D,
|
|
9821
|
+
const m = f[v].lng;
|
|
9822
|
+
s > n ? m.forEach((b, A) => {
|
|
9823
|
+
var w, z, D, F;
|
|
9823
9824
|
if (i < 2) {
|
|
9824
9825
|
if ((b >= 0 && b <= 360 || b >= -360 && b <= 0) && b % 10 === 0) {
|
|
9825
9826
|
const H = Q.point([b, v], {
|
|
9826
|
-
dir: ((w =
|
|
9827
|
-
spd:
|
|
9827
|
+
dir: ((w = f[v].val) == null ? void 0 : w[A]) || ((z = f[v].dir) == null ? void 0 : z[A]),
|
|
9828
|
+
spd: f[v].spd[A]
|
|
9828
9829
|
});
|
|
9829
|
-
|
|
9830
|
+
x.push(H);
|
|
9830
9831
|
}
|
|
9831
9832
|
} else if ((b >= s && b <= 180 || b >= -180 && b <= n) && (!(i <= this.zoom) || b % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9832
9833
|
const H = Q.point([b, v], {
|
|
9833
|
-
dir: ((D =
|
|
9834
|
-
spd:
|
|
9834
|
+
dir: ((D = f[v].val) == null ? void 0 : D[A]) || ((F = f[v].dir) == null ? void 0 : F[A]),
|
|
9835
|
+
spd: f[v].spd[A]
|
|
9835
9836
|
});
|
|
9836
|
-
|
|
9837
|
+
x.push(H);
|
|
9837
9838
|
}
|
|
9838
|
-
}) : m.forEach((b,
|
|
9839
|
-
var w, z, D,
|
|
9839
|
+
}) : m.forEach((b, A) => {
|
|
9840
|
+
var w, z, D, F;
|
|
9840
9841
|
if (i < 2) {
|
|
9841
9842
|
if ((b >= 0 && b <= 360 || b >= -360 && b <= 0) && b % 10 === 0) {
|
|
9842
9843
|
const H = Q.point([b, v], {
|
|
9843
|
-
dir: ((w =
|
|
9844
|
-
spd:
|
|
9844
|
+
dir: ((w = f[v].val) == null ? void 0 : w[A]) || ((z = f[v].dir) == null ? void 0 : z[A]),
|
|
9845
|
+
spd: f[v].spd[A]
|
|
9845
9846
|
});
|
|
9846
|
-
|
|
9847
|
+
x.push(H);
|
|
9847
9848
|
}
|
|
9848
9849
|
} else if (b >= s && b <= n && (!(i <= this.zoom) || b % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9849
9850
|
const H = Q.point([b, v], {
|
|
9850
|
-
dir: ((D =
|
|
9851
|
-
spd:
|
|
9851
|
+
dir: ((D = f[v].val) == null ? void 0 : D[A]) || ((F = f[v].dir) == null ? void 0 : F[A]),
|
|
9852
|
+
spd: f[v].spd[A]
|
|
9852
9853
|
});
|
|
9853
|
-
|
|
9854
|
+
x.push(H);
|
|
9854
9855
|
}
|
|
9855
9856
|
});
|
|
9856
9857
|
}
|
|
9857
9858
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("wind barb elapsed: ", t, ", total: ", e += t);
|
|
9858
|
-
} else if (
|
|
9859
|
-
if (this.weatherLayers[
|
|
9860
|
-
|
|
9859
|
+
} else if (y === "sig-wave-height") {
|
|
9860
|
+
if (this.weatherLayers[y].data)
|
|
9861
|
+
x = this.weatherLayers[y].data;
|
|
9861
9862
|
else {
|
|
9862
9863
|
I = !0;
|
|
9863
|
-
const
|
|
9864
|
-
if (
|
|
9864
|
+
const f = this.weatherLayers[y].raw;
|
|
9865
|
+
if (f) {
|
|
9865
9866
|
const v = [];
|
|
9866
|
-
for (const m in
|
|
9867
|
-
const b =
|
|
9868
|
-
for (const
|
|
9867
|
+
for (const m in f.Polygon) {
|
|
9868
|
+
const b = f.Polygon[m];
|
|
9869
|
+
for (const A of b)
|
|
9869
9870
|
v.push(
|
|
9870
|
-
Q.polygon(
|
|
9871
|
+
Q.polygon(A, {
|
|
9871
9872
|
val: Number(m)
|
|
9872
9873
|
})
|
|
9873
9874
|
);
|
|
9874
9875
|
}
|
|
9875
|
-
for (const m in
|
|
9876
|
-
const b =
|
|
9877
|
-
for (const
|
|
9876
|
+
for (const m in f.MultiPolygon) {
|
|
9877
|
+
const b = f.MultiPolygon[m];
|
|
9878
|
+
for (const A of b)
|
|
9878
9879
|
v.push(
|
|
9879
|
-
Q.multiPolygon(
|
|
9880
|
+
Q.multiPolygon(A, {
|
|
9880
9881
|
val: Number(m)
|
|
9881
9882
|
})
|
|
9882
9883
|
);
|
|
9883
9884
|
}
|
|
9884
|
-
for (const m in
|
|
9885
|
-
const b =
|
|
9886
|
-
for (let
|
|
9885
|
+
for (const m in f.Point) {
|
|
9886
|
+
const b = f.Point[m];
|
|
9887
|
+
for (let A = 0; A < ((B = b.lng) == null ? void 0 : B.length); A++)
|
|
9887
9888
|
v.push(
|
|
9888
|
-
Q.point([b.lng[
|
|
9889
|
-
val: Number(b.val[
|
|
9889
|
+
Q.point([b.lng[A], m], {
|
|
9890
|
+
val: Number(b.val[A])
|
|
9890
9891
|
})
|
|
9891
9892
|
);
|
|
9892
9893
|
}
|
|
9893
|
-
|
|
9894
|
+
x = x.concat(v);
|
|
9894
9895
|
}
|
|
9895
9896
|
}
|
|
9896
9897
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("sigWave elapsed: ", t, ", total: ", e += t);
|
|
9897
|
-
} else if (
|
|
9898
|
-
if (this.weatherLayers[
|
|
9899
|
-
|
|
9898
|
+
} else if (y === "prmsl") {
|
|
9899
|
+
if (this.weatherLayers[y].data)
|
|
9900
|
+
x = this.weatherLayers[y].data;
|
|
9900
9901
|
else {
|
|
9901
9902
|
I = !0;
|
|
9902
|
-
const
|
|
9903
|
-
if (
|
|
9903
|
+
const f = this.weatherLayers[y].raw;
|
|
9904
|
+
if (f) {
|
|
9904
9905
|
const v = [];
|
|
9905
|
-
for (const m in
|
|
9906
|
-
const b =
|
|
9907
|
-
for (const
|
|
9906
|
+
for (const m in f.LineString) {
|
|
9907
|
+
const b = f.LineString[m];
|
|
9908
|
+
for (const A of b)
|
|
9908
9909
|
v.push(
|
|
9909
|
-
Q.lineString(
|
|
9910
|
+
Q.lineString(A, {
|
|
9910
9911
|
val: Number(m)
|
|
9911
9912
|
})
|
|
9912
9913
|
);
|
|
9913
9914
|
}
|
|
9914
|
-
for (const m in
|
|
9915
|
-
|
|
9916
|
-
b =
|
|
9915
|
+
for (const m in f.Point)
|
|
9916
|
+
f.Point[m].lng.forEach((b, A) => {
|
|
9917
|
+
b = de.convertToStdLng(b), v.push(
|
|
9917
9918
|
Q.point([b, m], {
|
|
9918
|
-
val:
|
|
9919
|
-
type:
|
|
9919
|
+
val: f.Point[m].val[A],
|
|
9920
|
+
type: f.Point[m].type[A]
|
|
9920
9921
|
})
|
|
9921
9922
|
);
|
|
9922
9923
|
});
|
|
9923
|
-
|
|
9924
|
+
x = x.concat(v);
|
|
9924
9925
|
}
|
|
9925
9926
|
}
|
|
9926
9927
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("prmsl elapsed: ", t, ", total: ", e += t);
|
|
9927
9928
|
}
|
|
9928
|
-
|
|
9929
|
+
x.length && (this.weatherLayers[y].data = Q.featureCollection(x)), I && (this.weatherLayers[y].version = Math.random() + 1);
|
|
9929
9930
|
}
|
|
9930
9931
|
}
|
|
9931
9932
|
},
|
|
@@ -9936,7 +9937,7 @@ const Ys = {
|
|
|
9936
9937
|
this.handleDrawWeather4Json(), !this.activeWeatherLayers.some((l) => l.key === "wind" && l.particle === !0 || l.key === "current" && l.particle === !0 || l.key === "ice-edge" || l.key === "ice-thickness" || l.key === "ice-cover" || l.key === "temp" || l.key === "water-temp") && this.map.getZoom() > 3 && this.enc ? (t = (e = this.map) == null ? void 0 : e.getLayer(this.enc)) == null || t.setLayoutProperty("visibility", "visible") : ((i = (r = this.map) == null ? void 0 : r.getLayer("i4")) == null || i.setLayoutProperty("visibility", "none"), (n = (s = this.map) == null ? void 0 : s.getLayer("hi")) == null || n.setLayoutProperty("visibility", "none"));
|
|
9937
9938
|
},
|
|
9938
9939
|
handleBboxClip(a, e) {
|
|
9939
|
-
const t = [], r =
|
|
9940
|
+
const t = [], r = de.convertToStdLng(e._sw.lng), i = de.convertToStdLng(e._ne.lng);
|
|
9940
9941
|
return a.features.forEach((s) => {
|
|
9941
9942
|
if (s.geometry.type !== "Point")
|
|
9942
9943
|
if (r > i) {
|
|
@@ -9961,8 +9962,8 @@ const Ys = {
|
|
|
9961
9962
|
this.handleBeforeLayerToggle();
|
|
9962
9963
|
},
|
|
9963
9964
|
handleBeforeLayerToggle() {
|
|
9964
|
-
var a, e, t, r, i, s, n, l, c, d, h, p, L,
|
|
9965
|
-
(a = this.map) != null && a.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (t = this.otherLayers) != null && t["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (s = this.otherLayers) != null && s["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (l = this.otherLayers) != null && l.pirates || (c = this.otherLayers) != null && c.ports || (d = this.otherLayers) != null && d.enc || (h = this.otherLayers) != null && h.world12nm || (p = this.otherLayers) != null && p.worldMarine || (L = this.otherLayers) != null && L.chinaRoute || (
|
|
9965
|
+
var a, e, t, r, i, s, n, l, c, d, h, p, L, E, B, y;
|
|
9966
|
+
(a = this.map) != null && a.getLayer(this.beforeLayer) && ((e = this.activeWeatherLayers) != null && e.length || (t = this.otherLayers) != null && t["war-zones"] || (r = this.otherLayers) != null && r["gmdss-areas"] || (i = this.otherLayers) != null && i["load-lines"] || (s = this.otherLayers) != null && s["high-risk-area"] || (n = this.otherLayers) != null && n["time-zones"] || (l = this.otherLayers) != null && l.pirates || (c = this.otherLayers) != null && c.ports || (d = this.otherLayers) != null && d.enc || (h = this.otherLayers) != null && h.world12nm || (p = this.otherLayers) != null && p.worldMarine || (L = this.otherLayers) != null && L.chinaRoute || (E = this.otherLayers) != null && E["voluntary-reporting-area"] || (B = this.otherLayers) != null && B["eca-zones"] || (y = this.otherLayers) != null && y["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
|
|
9966
9967
|
},
|
|
9967
9968
|
handleDateChange(a = { tropicals: !1 }) {
|
|
9968
9969
|
this.fetchWeatherLayers(a), this.fetchOtherLayers({ dayNight: !0 });
|
|
@@ -9996,8 +9997,8 @@ const Ys = {
|
|
|
9996
9997
|
}
|
|
9997
9998
|
},
|
|
9998
9999
|
handle3dToggle(a) {
|
|
9999
|
-
var e, t, r, i, s, n, l, c, d, h, p, L,
|
|
10000
|
-
a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((s = this.map) == null || s.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (l = this.map) != null && l.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((h = this.map) == null || h.moveLayer((d = this.viewport) == null ? void 0 : d.particleLayer, this.helper.mapboxCustomer.layers.water.id))) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", (L = this.map) != null && L.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((
|
|
10000
|
+
var e, t, r, i, s, n, l, c, d, h, p, L, E, B, y, I, x, f, v, m;
|
|
10001
|
+
a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((s = this.map) == null || s.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (l = this.map) != null && l.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((h = this.map) == null || h.moveLayer((d = this.viewport) == null ? void 0 : d.particleLayer, this.helper.mapboxCustomer.layers.water.id))) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", (L = this.map) != null && L.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((E = this.map) != null && E.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((y = this.map) == null || y.moveLayer((B = this.viewport) == null ? void 0 : B.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (x = this.map) != null && x.getLayer((I = this.viewport) == null ? void 0 : I.particleLayer) && ((f = this.map) != null && f.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((m = this.map) == null || m.moveLayer((v = this.viewport) == null ? void 0 : v.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
|
|
10001
10002
|
},
|
|
10002
10003
|
handleParticle(a) {
|
|
10003
10004
|
this.particleFactor = a, this.weatherLayers[a.key] && (this.weatherLayers[a.key].particle = a.particle), this.activeWeatherLayers.map((r) => {
|
|
@@ -10021,8 +10022,8 @@ const Ys = {
|
|
|
10021
10022
|
class: "map-gl-home"
|
|
10022
10023
|
};
|
|
10023
10024
|
function Xs(a, e, t, r, i, s) {
|
|
10024
|
-
var Z,
|
|
10025
|
-
const n =
|
|
10025
|
+
var Z, he, ce, Ae, Le, xe, _, Ee, Ce, ke, Be, Pe, _e, J, V, S, De, X, ee, Te, M, we, Se, Qe, He, P, R, Ge, Ue, Ye, ze;
|
|
10026
|
+
const n = j("IdmGlLayer"), l = j("IdmENC"), c = j("IdmWorld12nm"), d = j("IdmWorldMarine"), h = j("IdmChinaRoute"), p = j("IdmSigWave"), L = j("IdmSigWaveHeight"), E = j("IdmSwell"), B = j("IdmPrmsl"), y = j("IdmIceEdge"), I = j("IdmIceCover"), x = j("IdmIceThickness"), f = j("IdmTropicals"), v = j("IdmCurrents"), m = j("IdmCurrentParticle"), b = j("IdmWindBarb"), A = j("IdmWindParticle"), w = j("IdmPrecip3h"), z = j("IdmVisibility"), D = j("IdmWaterTemp"), F = j("IdmTemp"), H = j("IdmWarZone"), N = j("IdmGmdssArea"), W = j("IdmEcaZone"), G = j("IdmAlertZone"), le = j("IdmPort"), $ = j("IdmLoadLine"), oe = j("IdmTimezone"), fe = j("IdmVRA"), me = j("IdmSpecialArea"), be = j("IdmTerminator"), ue = j("IdmLatLng"), ge = j("IdmMeasure"), U = j("IdmPoint");
|
|
10026
10027
|
return t.map ? (u(), g("div", Ks, [
|
|
10027
10028
|
O(n, K({
|
|
10028
10029
|
ref: "layer",
|
|
@@ -10067,13 +10068,13 @@ function Xs(a, e, t, r, i, s) {
|
|
|
10067
10068
|
map: t.map,
|
|
10068
10069
|
token: t.token,
|
|
10069
10070
|
"weather-layers": i.weatherLayers,
|
|
10070
|
-
enabled: (
|
|
10071
|
+
enabled: (he = i.otherLayers) == null ? void 0 : he.world12nm
|
|
10071
10072
|
}, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
10072
10073
|
O(d, K({
|
|
10073
10074
|
map: t.map,
|
|
10074
10075
|
token: t.token,
|
|
10075
10076
|
"weather-layers": i.weatherLayers,
|
|
10076
|
-
enabled: (
|
|
10077
|
+
enabled: (ce = i.otherLayers) == null ? void 0 : ce.worldMarine
|
|
10077
10078
|
}, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
10078
10079
|
O(h, K({
|
|
10079
10080
|
map: t.map,
|
|
@@ -10093,19 +10094,19 @@ function Xs(a, e, t, r, i, s) {
|
|
|
10093
10094
|
"before-layer": t.beforeLayer,
|
|
10094
10095
|
"active-weather-layers": i.activeWeatherLayers
|
|
10095
10096
|
}, a.$attrs), null, 16, ["map", "sig-wave-height", "before-layer", "active-weather-layers"]),
|
|
10096
|
-
O(
|
|
10097
|
+
O(E, K({
|
|
10097
10098
|
map: t.map,
|
|
10098
|
-
swell: (
|
|
10099
|
+
swell: (_ = i.weatherLayers) == null ? void 0 : _.swell,
|
|
10099
10100
|
"before-layer": t.beforeLayer,
|
|
10100
10101
|
"active-weather-layers": i.activeWeatherLayers
|
|
10101
10102
|
}, a.$attrs), null, 16, ["map", "swell", "before-layer", "active-weather-layers"]),
|
|
10102
|
-
O(
|
|
10103
|
+
O(B, K({
|
|
10103
10104
|
map: t.map,
|
|
10104
10105
|
prmsl: (Ee = i.weatherLayers) == null ? void 0 : Ee.prmsl,
|
|
10105
10106
|
"before-layer": t.beforeLayer,
|
|
10106
10107
|
"active-weather-layers": i.activeWeatherLayers
|
|
10107
10108
|
}, a.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
|
|
10108
|
-
O(
|
|
10109
|
+
O(y, K({
|
|
10109
10110
|
viewport: i.viewport,
|
|
10110
10111
|
factor: (Ce = i.weatherLayers) == null ? void 0 : Ce["ice-edge"],
|
|
10111
10112
|
"toggle-version": t.toggleVersion,
|
|
@@ -10117,13 +10118,13 @@ function Xs(a, e, t, r, i, s) {
|
|
|
10117
10118
|
"toggle-version": t.toggleVersion,
|
|
10118
10119
|
"before-layer": t.beforeLayer
|
|
10119
10120
|
}, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
|
|
10120
|
-
O(
|
|
10121
|
+
O(x, K({
|
|
10121
10122
|
viewport: i.viewport,
|
|
10122
10123
|
factor: (Be = i.weatherLayers) == null ? void 0 : Be["ice-thickness"],
|
|
10123
10124
|
"toggle-version": t.toggleVersion,
|
|
10124
10125
|
"before-layer": t.beforeLayer
|
|
10125
10126
|
}, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
|
|
10126
|
-
O(
|
|
10127
|
+
O(f, K({
|
|
10127
10128
|
map: t.map,
|
|
10128
10129
|
date: t.ts,
|
|
10129
10130
|
tropicals: (Pe = i.weatherLayers) == null ? void 0 : Pe.tropicals,
|
|
@@ -10166,7 +10167,7 @@ function Xs(a, e, t, r, i, s) {
|
|
|
10166
10167
|
"weather-layers": i.weatherLayers,
|
|
10167
10168
|
onParticle: s.handleParticle
|
|
10168
10169
|
}), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "show-wind-feather", "show-wind-particle", "toggle-partice-version", "toggle-version", "weather-layers", "onParticle"]),
|
|
10169
|
-
O(
|
|
10170
|
+
O(A, K({
|
|
10170
10171
|
viewport: i.viewport,
|
|
10171
10172
|
factor: (De = i.weatherLayers) == null ? void 0 : De["wind-particle"],
|
|
10172
10173
|
"before-layer": t.beforeLayer,
|
|
@@ -10180,7 +10181,7 @@ function Xs(a, e, t, r, i, s) {
|
|
|
10180
10181
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
10181
10182
|
O(z, K({
|
|
10182
10183
|
viewport: i.viewport,
|
|
10183
|
-
factor: (
|
|
10184
|
+
factor: (ee = i.weatherLayers) == null ? void 0 : ee.visibility,
|
|
10184
10185
|
"before-layer": t.beforeLayer,
|
|
10185
10186
|
"toggle-version": t.toggleVersion
|
|
10186
10187
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
@@ -10190,7 +10191,7 @@ function Xs(a, e, t, r, i, s) {
|
|
|
10190
10191
|
"before-layer": t.beforeLayer,
|
|
10191
10192
|
"toggle-version": t.toggleVersion
|
|
10192
10193
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
10193
|
-
O(
|
|
10194
|
+
O(F, K({
|
|
10194
10195
|
viewport: i.viewport,
|
|
10195
10196
|
factor: (M = i.weatherLayers) == null ? void 0 : M.temp,
|
|
10196
10197
|
"before-layer": t.beforeLayer,
|
|
@@ -10201,38 +10202,38 @@ function Xs(a, e, t, r, i, s) {
|
|
|
10201
10202
|
zone: (we = i.otherLayers) == null ? void 0 : we["war-zones"],
|
|
10202
10203
|
"before-layer": t.beforeLayer
|
|
10203
10204
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
10204
|
-
O(
|
|
10205
|
+
O(N, K({
|
|
10205
10206
|
map: t.map,
|
|
10206
10207
|
area: (Se = i.otherLayers) == null ? void 0 : Se["gmdss-areas"],
|
|
10207
10208
|
"before-layer": t.beforeLayer
|
|
10208
10209
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
10209
|
-
O(
|
|
10210
|
+
O(W, K({
|
|
10210
10211
|
map: t.map,
|
|
10211
10212
|
zone: (Qe = i.otherLayers) == null ? void 0 : Qe["eca-zones"],
|
|
10212
10213
|
"before-layer": t.beforeLayer
|
|
10213
10214
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
10214
|
-
O(
|
|
10215
|
+
O(G, K({
|
|
10215
10216
|
map: t.map,
|
|
10216
10217
|
zone: (He = i.otherLayers) == null ? void 0 : He["alert-zones"],
|
|
10217
10218
|
"before-layer": t.beforeLayer
|
|
10218
10219
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
10219
|
-
O(
|
|
10220
|
+
O(le, K({
|
|
10220
10221
|
map: t.map,
|
|
10221
10222
|
port: (P = i.otherLayers) == null ? void 0 : P.ports,
|
|
10222
10223
|
"before-layer": t.beforeLayer,
|
|
10223
10224
|
"forecast-model": t.forecastModel
|
|
10224
10225
|
}, a.$attrs), null, 16, ["map", "port", "before-layer", "forecast-model"]),
|
|
10225
|
-
O(
|
|
10226
|
+
O($, K({
|
|
10226
10227
|
map: t.map,
|
|
10227
|
-
line: (
|
|
10228
|
+
line: (R = i.otherLayers) == null ? void 0 : R["load-lines"],
|
|
10228
10229
|
"before-layer": t.beforeLayer
|
|
10229
10230
|
}, a.$attrs), null, 16, ["map", "line", "before-layer"]),
|
|
10230
|
-
O(
|
|
10231
|
+
O(oe, K({
|
|
10231
10232
|
map: t.map,
|
|
10232
10233
|
zone: (Ge = i.otherLayers) == null ? void 0 : Ge["time-zones"],
|
|
10233
10234
|
"before-layer": t.beforeLayer
|
|
10234
10235
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
10235
|
-
O(
|
|
10236
|
+
O(fe, K({
|
|
10236
10237
|
map: t.map,
|
|
10237
10238
|
area: (Ue = i.otherLayers) == null ? void 0 : Ue["voluntary-reporting-area"],
|
|
10238
10239
|
"before-layer": t.beforeLayer
|
|
@@ -10255,7 +10256,7 @@ function Xs(a, e, t, r, i, s) {
|
|
|
10255
10256
|
map: t.map,
|
|
10256
10257
|
show: i.showMeasure
|
|
10257
10258
|
}, a.$attrs), null, 16, ["map", "show"]),
|
|
10258
|
-
O(
|
|
10259
|
+
O(U, K({
|
|
10259
10260
|
ref: "idmPoint",
|
|
10260
10261
|
map: t.map,
|
|
10261
10262
|
show: i.showPoint,
|
|
@@ -10281,5 +10282,5 @@ export {
|
|
|
10281
10282
|
dt as TropicalGL,
|
|
10282
10283
|
tt as Viewport,
|
|
10283
10284
|
je as WebGL,
|
|
10284
|
-
|
|
10285
|
+
ne as WebGLSchema
|
|
10285
10286
|
};
|