@idmwx/idmui-gl3 4.6.1 → 4.6.2
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 +765 -668
- package/dist/index.umd.cjs +5 -5
- package/dist/mapbox/src/components/other/point.vue.d.ts +0 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var G0 = Object.defineProperty;
|
|
2
2
|
var V0 = (z, M, b) => M in z ? G0(z, M, { enumerable: !0, configurable: !0, writable: !0, value: b }) : z[M] = b;
|
|
3
|
-
var
|
|
4
|
-
import { LayerHelper as
|
|
5
|
-
import { resolveComponent as
|
|
3
|
+
var H = (z, M, b) => (V0(z, typeof M != "symbol" ? M + "" : M, b), b);
|
|
4
|
+
import { LayerHelper as x0, CompanyHelper as S0 } from "@idm-plugin/tag";
|
|
5
|
+
import { resolveComponent as x, openBlock as l, createElementBlock as f, createElementVNode as c, normalizeStyle as z0, createVNode as T, withCtx as n0, normalizeClass as V, Fragment as G, renderList as J, toDisplayString as w, createCommentVNode as F, createTextVNode as Z, withDirectives as T0, createStaticVNode as K0, vShow as w0, defineComponent as J0, withModifiers as v0, mergeProps as j } from "vue";
|
|
6
6
|
import * as v from "@turf/turf";
|
|
7
7
|
import Q0 from "@mapbox/sphericalmercator";
|
|
8
|
-
import
|
|
8
|
+
import e0 from "moment";
|
|
9
9
|
import L0 from "mapbox-gl";
|
|
10
|
-
import { TropicalHelper as I0, LngLatHelper as
|
|
10
|
+
import { TropicalHelper as I0, LngLatHelper as Q, LaneHelper as u0 } from "@idm-plugin/geo";
|
|
11
11
|
import { Meteo2Assist as D0 } from "@idm-plugin/meteo";
|
|
12
12
|
import B0 from "axios";
|
|
13
13
|
const D = (z, M) => {
|
|
@@ -62,9 +62,9 @@ const D = (z, M) => {
|
|
|
62
62
|
autoActive: !0,
|
|
63
63
|
layers: {
|
|
64
64
|
weather: [
|
|
65
|
-
...
|
|
65
|
+
...x0.WEATHER_LAYERS.filter((z) => !["swell-height", "swell-direction", "current-direction", "current-speed"].includes(z.key))
|
|
66
66
|
],
|
|
67
|
-
other: [...
|
|
67
|
+
other: [...x0.OTHER_LAYERS.filter((z) => z.key !== "world12nm" && z.enabled)]
|
|
68
68
|
},
|
|
69
69
|
activeWeatherLayers: [],
|
|
70
70
|
activeOtherLayers: [],
|
|
@@ -222,11 +222,11 @@ const D = (z, M) => {
|
|
|
222
222
|
class: "iconfont"
|
|
223
223
|
}, X1 = { class: "source-layers card-bg" }, v1 = { class: "layers-body" };
|
|
224
224
|
function T1(z, M, b, O, p, o) {
|
|
225
|
-
const e =
|
|
226
|
-
return
|
|
225
|
+
const e = x("ElTooltip"), t = x("ElRadio"), q = x("ElRadioGroup"), r = x("ElScrollbar");
|
|
226
|
+
return l(), f("div", Z0, [
|
|
227
227
|
c("div", {
|
|
228
228
|
class: "menu-bar-box",
|
|
229
|
-
style:
|
|
229
|
+
style: z0({ top: b.top + 10 + "px", right: p.right + "px" })
|
|
230
230
|
}, [
|
|
231
231
|
c("div", Y0, [
|
|
232
232
|
T(e, {
|
|
@@ -237,7 +237,7 @@ function T1(z, M, b, O, p, o) {
|
|
|
237
237
|
}, {
|
|
238
238
|
default: n0(() => [
|
|
239
239
|
c("div", {
|
|
240
|
-
class:
|
|
240
|
+
class: V(b.layerToggle ? "menu-icon active" : "menu-icon"),
|
|
241
241
|
onClick: M[0] || (M[0] = (...a) => o.handleMenuToggle && o.handleMenuToggle(...a))
|
|
242
242
|
}, M[17] || (M[17] = [
|
|
243
243
|
c("span", { class: "iconfont" }, "", -1)
|
|
@@ -249,7 +249,7 @@ function T1(z, M, b, O, p, o) {
|
|
|
249
249
|
], 4),
|
|
250
250
|
c("div", {
|
|
251
251
|
class: "menu-bar-box",
|
|
252
|
-
style:
|
|
252
|
+
style: z0({ top: b.top + 160 + "px", right: p.right + "px" })
|
|
253
253
|
}, [
|
|
254
254
|
c("div", M1, [
|
|
255
255
|
T(e, {
|
|
@@ -260,7 +260,7 @@ function T1(z, M, b, O, p, o) {
|
|
|
260
260
|
}, {
|
|
261
261
|
default: n0(() => [
|
|
262
262
|
c("div", {
|
|
263
|
-
class:
|
|
263
|
+
class: V(p.showMeasure ? "menu-icon active" : "menu-icon"),
|
|
264
264
|
onClick: M[1] || (M[1] = (...a) => o.handleMeasureToggle && o.handleMeasureToggle(...a))
|
|
265
265
|
}, M[18] || (M[18] = [
|
|
266
266
|
c("span", { class: "iconfont" }, "", -1)
|
|
@@ -276,7 +276,7 @@ function T1(z, M, b, O, p, o) {
|
|
|
276
276
|
}, {
|
|
277
277
|
default: n0(() => [
|
|
278
278
|
c("div", {
|
|
279
|
-
class:
|
|
279
|
+
class: V(p.showPoint ? "menu-icon active" : "menu-icon"),
|
|
280
280
|
onClick: M[2] || (M[2] = (...a) => o.handlePointToggle && o.handlePointToggle(...a))
|
|
281
281
|
}, M[19] || (M[19] = [
|
|
282
282
|
c("span", { class: "iconfont" }, "", -1)
|
|
@@ -292,7 +292,7 @@ function T1(z, M, b, O, p, o) {
|
|
|
292
292
|
}, {
|
|
293
293
|
default: n0(() => [
|
|
294
294
|
c("div", {
|
|
295
|
-
class:
|
|
295
|
+
class: V(p.showCoord ? "menu-icon active" : "menu-icon"),
|
|
296
296
|
onClick: M[3] || (M[3] = (...a) => o.handleCoordToggle && o.handleCoordToggle(...a))
|
|
297
297
|
}, M[20] || (M[20] = [
|
|
298
298
|
c("span", { class: "iconfont" }, "", -1)
|
|
@@ -308,7 +308,7 @@ function T1(z, M, b, O, p, o) {
|
|
|
308
308
|
}, {
|
|
309
309
|
default: n0(() => [
|
|
310
310
|
c("div", {
|
|
311
|
-
class:
|
|
311
|
+
class: V(p.show3d ? "menu-icon active" : "menu-icon"),
|
|
312
312
|
onClick: M[4] || (M[4] = (...a) => o.handle3DToggle && o.handle3DToggle(...a))
|
|
313
313
|
}, M[21] || (M[21] = [
|
|
314
314
|
c("span", { class: "iconfont" }, "", -1)
|
|
@@ -318,10 +318,10 @@ function T1(z, M, b, O, p, o) {
|
|
|
318
318
|
})
|
|
319
319
|
])
|
|
320
320
|
], 4),
|
|
321
|
-
o.hasCollectedLayers ? (
|
|
321
|
+
o.hasCollectedLayers ? (l(), f("div", {
|
|
322
322
|
key: 0,
|
|
323
323
|
class: "active-layers",
|
|
324
|
-
style:
|
|
324
|
+
style: z0({ right: p.right + "px", bottom: "100px" })
|
|
325
325
|
}, [
|
|
326
326
|
c("div", b1, [
|
|
327
327
|
M[22] || (M[22] = c("div", { style: { margin: "2px 5px" } }, "My Favorites", -1)),
|
|
@@ -330,12 +330,12 @@ function T1(z, M, b, O, p, o) {
|
|
|
330
330
|
style: { "font-size": "28px", "margin-right": "0" },
|
|
331
331
|
onClick: M[5] || (M[5] = (...a) => o.toggleAutoActive && o.toggleAutoActive(...a))
|
|
332
332
|
}, [
|
|
333
|
-
p.autoActive ? (
|
|
333
|
+
p.autoActive ? (l(), f("i", z1, "")) : (l(), f("i", p1, ""))
|
|
334
334
|
])
|
|
335
335
|
]),
|
|
336
|
-
(
|
|
336
|
+
(l(!0), f(G, null, J(p.layers.weather.filter((a) => a.collected), (a) => (l(), f("div", {
|
|
337
337
|
key: a.key,
|
|
338
|
-
class:
|
|
338
|
+
class: V(o.computeLayerClass(a, p.activeWeatherLayers))
|
|
339
339
|
}, [
|
|
340
340
|
c("div", {
|
|
341
341
|
class: "checkbox",
|
|
@@ -344,35 +344,35 @@ function T1(z, M, b, O, p, o) {
|
|
|
344
344
|
c("span", {
|
|
345
345
|
class: "name",
|
|
346
346
|
onClick: (i) => o.handleWeatherLayerPick(a)
|
|
347
|
-
},
|
|
348
|
-
a.key === "wind" && p.activeWeatherLayers.some((i) => i.key === a.key) ? (
|
|
347
|
+
}, w(a.name), 9, o1),
|
|
348
|
+
a.key === "wind" && p.activeWeatherLayers.some((i) => i.key === a.key) ? (l(), f("div", c1, [
|
|
349
349
|
c("i", {
|
|
350
|
-
class:
|
|
350
|
+
class: V(["iconfont sub-layer-icon", b.showWindParticle ? "active" : ""]),
|
|
351
351
|
onClick: M[6] || (M[6] = (i) => o.handleToggleWindParticle())
|
|
352
352
|
}, "", 2),
|
|
353
353
|
c("i", {
|
|
354
|
-
class:
|
|
354
|
+
class: V(["iconfont sub-layer-icon", b.showWindFeather ? "active" : ""]),
|
|
355
355
|
onClick: M[7] || (M[7] = (i) => o.handleToggleWindFeather())
|
|
356
356
|
}, "", 2)
|
|
357
|
-
])) :
|
|
358
|
-
a.key === "current" && p.activeWeatherLayers.some((i) => i.key === a.key) ? (
|
|
357
|
+
])) : F("", !0),
|
|
358
|
+
a.key === "current" && p.activeWeatherLayers.some((i) => i.key === a.key) ? (l(), f("div", e1, [
|
|
359
359
|
c("i", {
|
|
360
|
-
class:
|
|
360
|
+
class: V(["iconfont sub-layer-icon", b.showCurrentParticle ? "active" : ""]),
|
|
361
361
|
onClick: M[8] || (M[8] = (i) => o.handleToggleCurrentParticle())
|
|
362
362
|
}, "", 2),
|
|
363
363
|
c("i", {
|
|
364
|
-
class:
|
|
364
|
+
class: V(["iconfont sub-layer-icon", b.showCurrentIsoband ? "active" : ""]),
|
|
365
365
|
onClick: M[9] || (M[9] = (i) => o.handleToggleCurrentIsoband())
|
|
366
366
|
}, "", 2)
|
|
367
|
-
])) :
|
|
367
|
+
])) : F("", !0)
|
|
368
368
|
], 2))), 128))
|
|
369
|
-
], 4)) :
|
|
369
|
+
], 4)) : F("", !0),
|
|
370
370
|
c("div", {
|
|
371
371
|
class: "available-layers flex-center",
|
|
372
|
-
style:
|
|
372
|
+
style: z0({ top: b.top + "px", right: b.layerToggle ? "0px" : "-240px" })
|
|
373
373
|
}, [
|
|
374
374
|
c("div", {
|
|
375
|
-
class:
|
|
375
|
+
class: V(["list-box", b.layerToggle ? "right-bar" : ""])
|
|
376
376
|
}, [
|
|
377
377
|
c("div", A1, [
|
|
378
378
|
M[23] || (M[23] = c("div", null, "Layers", -1)),
|
|
@@ -391,16 +391,16 @@ function T1(z, M, b, O, p, o) {
|
|
|
391
391
|
style: { "margin-right": "0" },
|
|
392
392
|
onClick: M[11] || (M[11] = (...a) => o.toggleAutoActive && o.toggleAutoActive(...a))
|
|
393
393
|
}, [
|
|
394
|
-
p.autoActive ? (
|
|
394
|
+
p.autoActive ? (l(), f("i", q1, "")) : (l(), f("i", i1, ""))
|
|
395
395
|
])
|
|
396
396
|
]),
|
|
397
397
|
c("div", r1, [
|
|
398
|
-
(
|
|
398
|
+
(l(!0), f(G, null, J(p.layers.weather, (a) => (l(), f(G, {
|
|
399
399
|
key: a.key
|
|
400
400
|
}, [
|
|
401
|
-
a.hide ?
|
|
401
|
+
a.hide ? F("", !0) : (l(), f("div", {
|
|
402
402
|
key: 0,
|
|
403
|
-
class:
|
|
403
|
+
class: V(o.computeLayerClass(a, p.activeWeatherLayers))
|
|
404
404
|
}, [
|
|
405
405
|
c("div", n1, [
|
|
406
406
|
c("div", {
|
|
@@ -410,32 +410,32 @@ function T1(z, M, b, O, p, o) {
|
|
|
410
410
|
c("span", {
|
|
411
411
|
class: "name",
|
|
412
412
|
onClick: (i) => o.handleWeatherLayerPick(a)
|
|
413
|
-
},
|
|
414
|
-
a.key === "wind" && p.activeWeatherLayers.some((i) => i.key === a.key) ? (
|
|
413
|
+
}, w(a.name), 9, W1),
|
|
414
|
+
a.key === "wind" && p.activeWeatherLayers.some((i) => i.key === a.key) ? (l(), f("div", s1, [
|
|
415
415
|
c("i", {
|
|
416
|
-
class:
|
|
416
|
+
class: V(["iconfont sub-layer-icon", b.showWindParticle ? "active" : ""]),
|
|
417
417
|
onClick: M[12] || (M[12] = (i) => o.handleToggleWindParticle())
|
|
418
418
|
}, "", 2),
|
|
419
419
|
c("i", {
|
|
420
|
-
class:
|
|
420
|
+
class: V(["iconfont sub-layer-icon", b.showWindFeather ? "active" : ""]),
|
|
421
421
|
onClick: M[13] || (M[13] = (i) => o.handleToggleWindFeather())
|
|
422
422
|
}, "", 2)
|
|
423
|
-
])) :
|
|
424
|
-
a.key === "current" && p.activeWeatherLayers.some((i) => i.key === a.key) ? (
|
|
423
|
+
])) : F("", !0),
|
|
424
|
+
a.key === "current" && p.activeWeatherLayers.some((i) => i.key === a.key) ? (l(), f("div", l1, [
|
|
425
425
|
c("i", {
|
|
426
|
-
class:
|
|
426
|
+
class: V(["iconfont sub-layer-icon", b.showCurrentParticle ? "active" : ""]),
|
|
427
427
|
onClick: M[14] || (M[14] = (i) => o.handleToggleCurrentParticle())
|
|
428
428
|
}, "", 2),
|
|
429
429
|
c("i", {
|
|
430
|
-
class:
|
|
430
|
+
class: V(["iconfont sub-layer-icon", b.showCurrentIsoband ? "active" : ""]),
|
|
431
431
|
onClick: M[15] || (M[15] = (i) => o.handleToggleCurrentIsoband())
|
|
432
432
|
}, "", 2)
|
|
433
|
-
])) :
|
|
433
|
+
])) : F("", !0)
|
|
434
434
|
]),
|
|
435
435
|
c("div", {
|
|
436
436
|
onClick: (i) => o.handleWeatherLayerCollect(a)
|
|
437
437
|
}, [
|
|
438
|
-
a.collected ? (
|
|
438
|
+
a.collected ? (l(), f("i", u1, "")) : (l(), f("i", L1, ""))
|
|
439
439
|
], 8, f1)
|
|
440
440
|
], 2))
|
|
441
441
|
], 64))), 128)),
|
|
@@ -451,18 +451,18 @@ function T1(z, M, b, O, p, o) {
|
|
|
451
451
|
c("div", R1, [
|
|
452
452
|
M[26] || (M[26] = c("div", { class: "layers-title" }, "Other Layers", -1)),
|
|
453
453
|
c("div", h1, [
|
|
454
|
-
(
|
|
454
|
+
(l(!0), f(G, null, J(p.layers.other, (a) => {
|
|
455
455
|
var i;
|
|
456
|
-
return
|
|
456
|
+
return l(), f("div", {
|
|
457
457
|
key: a.key,
|
|
458
|
-
class:
|
|
459
|
-
onClick: (
|
|
458
|
+
class: V(["layer flex-between", o.computeLayerClass(a, p.activeOtherLayers)]),
|
|
459
|
+
onClick: (L) => o.handleOtherLayerPick(a)
|
|
460
460
|
}, [
|
|
461
461
|
c("div", N1, [
|
|
462
462
|
c("div", B1, [
|
|
463
|
-
(i = o.computeLayerClass(a, p.activeOtherLayers)) != null && i.includes("active") ? (
|
|
463
|
+
(i = o.computeLayerClass(a, p.activeOtherLayers)) != null && i.includes("active") ? (l(), f("i", y1, "")) : (l(), f("i", g1, ""))
|
|
464
464
|
]),
|
|
465
|
-
c("span", null,
|
|
465
|
+
c("span", null, w(a.name), 1)
|
|
466
466
|
])
|
|
467
467
|
], 10, m1);
|
|
468
468
|
}), 128))
|
|
@@ -479,13 +479,13 @@ function T1(z, M, b, O, p, o) {
|
|
|
479
479
|
default: n0(() => [
|
|
480
480
|
T(t, { value: "GFS" }, {
|
|
481
481
|
default: n0(() => M[27] || (M[27] = [
|
|
482
|
-
|
|
482
|
+
Z("GFS")
|
|
483
483
|
])),
|
|
484
484
|
_: 1
|
|
485
485
|
}),
|
|
486
486
|
T(t, { value: "CMEMS" }, {
|
|
487
487
|
default: n0(() => M[28] || (M[28] = [
|
|
488
|
-
|
|
488
|
+
Z("CMEMS")
|
|
489
489
|
])),
|
|
490
490
|
_: 1
|
|
491
491
|
})
|
|
@@ -652,20 +652,20 @@ const C1 = {
|
|
|
652
652
|
}, _1 = { key: 0 };
|
|
653
653
|
function x1(z, M, b, O, p, o) {
|
|
654
654
|
var e;
|
|
655
|
-
return (e = b.wind) != null && e.active ? (
|
|
655
|
+
return (e = b.wind) != null && e.active ? (l(), f("div", _1)) : F("", !0);
|
|
656
656
|
}
|
|
657
657
|
const S1 = /* @__PURE__ */ D(C1, [["render", x1]]);
|
|
658
658
|
class E0 {
|
|
659
659
|
constructor(M) {
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
660
|
+
H(this, "map");
|
|
661
|
+
H(this, "mercator");
|
|
662
|
+
H(this, "rampColorLayer");
|
|
663
|
+
H(this, "rampColorSource");
|
|
664
|
+
H(this, "particleLayer");
|
|
665
|
+
H(this, "particleSource");
|
|
666
|
+
H(this, "rampColorCanvas");
|
|
667
|
+
H(this, "particleCanvas");
|
|
668
|
+
H(this, "ratio");
|
|
669
669
|
this.map = M, this.mercator = new Q0(), this.rampColorLayer = "ramp-color-layer", this.rampColorSource = "ramp-color-source", this.particleLayer = "particle-layer", this.particleSource = "particle-source", this.rampColorCanvas = document.createElement("canvas"), this.particleCanvas = document.createElement("canvas"), this.ratio = window.devicePixelRatio;
|
|
670
670
|
}
|
|
671
671
|
/**
|
|
@@ -700,8 +700,8 @@ class E0 {
|
|
|
700
700
|
* @param [lb.x, lb.y, rt.x, rt.y]
|
|
701
701
|
*/
|
|
702
702
|
getBoundPixel() {
|
|
703
|
-
const M = this.map.getBounds(), b = this.map.getZoom() + 1, O = [M._ne.lng, M._ne.lat], p = [M._sw.lng, M._sw.lat], [o, e] = this.convertNLng(O[0]), [t, q] = this.convertNLng(p[0]), [r, a] = this.mercator.px([o, O[1]], b), [i,
|
|
704
|
-
return [i,
|
|
703
|
+
const M = this.map.getBounds(), b = this.map.getZoom() + 1, O = [M._ne.lng, M._ne.lat], p = [M._sw.lng, M._sw.lat], [o, e] = this.convertNLng(O[0]), [t, q] = this.convertNLng(p[0]), [r, a] = this.mercator.px([o, O[1]], b), [i, L] = this.mercator.px([t, p[1]], b), n = Math.round(this.mercator.size * Math.pow(2, b) * (e + q));
|
|
704
|
+
return [i, L, r + n, a];
|
|
705
705
|
}
|
|
706
706
|
/**
|
|
707
707
|
* [视窗边界像素宽度]
|
|
@@ -872,15 +872,15 @@ class g0 {
|
|
|
872
872
|
if (b && O) {
|
|
873
873
|
M.resize(), b == null || b.viewport(0, 0, (q = b == null ? void 0 : b.canvas) == null ? void 0 : q.width, (r = b == null ? void 0 : b.canvas) == null ? void 0 : r.height), b.clearColor(0, 0, 0, 0), b.clear(b.COLOR_BUFFER_BIT | b.DEPTH_BUFFER_BIT);
|
|
874
874
|
try {
|
|
875
|
-
const a = b.getUniformLocation(O, "u_resolution"), i = b.getUniformLocation(O, "u_image"),
|
|
876
|
-
if (b.useProgram(O), b.uniform2f(a, b.canvas.width * M.ratio, b.canvas.height * M.ratio), b.activeTexture(b.TEXTURE0), b.bindTexture(b.TEXTURE_2D, p), b.uniform1i(i, 0), b.activeTexture(b.TEXTURE1), b.bindTexture(b.TEXTURE_2D, o), b.uniform1i(
|
|
875
|
+
const a = b.getUniformLocation(O, "u_resolution"), i = b.getUniformLocation(O, "u_image"), L = b.getUniformLocation(O, "u_color");
|
|
876
|
+
if (b.useProgram(O), b.uniform2f(a, b.canvas.width * M.ratio, b.canvas.height * M.ratio), b.activeTexture(b.TEXTURE0), b.bindTexture(b.TEXTURE_2D, p), b.uniform1i(i, 0), b.activeTexture(b.TEXTURE1), b.bindTexture(b.TEXTURE_2D, o), b.uniform1i(L, 1), t != null && t.uvRange && (t != null && t.sRange)) {
|
|
877
877
|
const d = b.getUniformLocation(O, "u_range_u_v"), m = b.getUniformLocation(O, "u_range_s");
|
|
878
878
|
b.uniform2f(d, t.uvRange[0], t.uvRange[1]), b.uniform2f(m, t.sRange[0], t.sRange[1]);
|
|
879
879
|
}
|
|
880
|
-
const n = M.getBoundPixel(), h = M.map.getZoom() + 1,
|
|
881
|
-
for (const d of
|
|
882
|
-
const m = (d[0] - n[0]) * M.ratio,
|
|
883
|
-
b.bindBuffer(b.ARRAY_BUFFER, e), b.bufferData(b.ARRAY_BUFFER,
|
|
880
|
+
const n = M.getBoundPixel(), h = M.map.getZoom() + 1, u = M.getWorldCopy(n, h);
|
|
881
|
+
for (const d of u) {
|
|
882
|
+
const m = (d[0] - n[0]) * M.ratio, R = (d[1] - n[3]) * M.ratio, g = d[2] * M.ratio, [C, y, B, _] = [m, g + m, R, g + R], $ = new Float32Array([C, B, y, B, C, _, C, _, y, B, y, _]);
|
|
883
|
+
b.bindBuffer(b.ARRAY_BUFFER, e), b.bufferData(b.ARRAY_BUFFER, $, b.STATIC_DRAW), b.drawArrays(b.TRIANGLES, 0, 6);
|
|
884
884
|
}
|
|
885
885
|
} catch (a) {
|
|
886
886
|
console.log(`render failed...${a}`);
|
|
@@ -928,10 +928,10 @@ class g0 {
|
|
|
928
928
|
});
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
|
-
class
|
|
931
|
+
class p0 {
|
|
932
932
|
}
|
|
933
933
|
// 顶点渲染
|
|
934
|
-
|
|
934
|
+
H(p0, "vertexSchema", `
|
|
935
935
|
//canvas 坐标系上的坐标 (x, y)
|
|
936
936
|
attribute vec2 a_position; //像素坐标
|
|
937
937
|
attribute vec2 a_texCoord; //纹理坐标
|
|
@@ -946,7 +946,7 @@ U(z0, "vertexSchema", `
|
|
|
946
946
|
gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
|
|
947
947
|
v_texCoord = a_texCoord;
|
|
948
948
|
}`), // 类如风、流等u v双变量片元渲染
|
|
949
|
-
|
|
949
|
+
H(p0, "uvFragmentSchema", `
|
|
950
950
|
precision mediump float;
|
|
951
951
|
uniform sampler2D u_image;
|
|
952
952
|
uniform vec2 u_range_u_v;
|
|
@@ -965,7 +965,7 @@ U(z0, "uvFragmentSchema", `
|
|
|
965
965
|
|
|
966
966
|
gl_FragColor = color;
|
|
967
967
|
}`), // 类如浪、气压等单变量片元渲染
|
|
968
|
-
|
|
968
|
+
H(p0, "fragmentSchema", `
|
|
969
969
|
precision mediump float;
|
|
970
970
|
uniform sampler2D u_image; // 灰度
|
|
971
971
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -976,9 +976,9 @@ U(z0, "fragmentSchema", `
|
|
|
976
976
|
vec4 color = texture2D(u_color, vec2(rgba.r, 0));
|
|
977
977
|
gl_FragColor = color;
|
|
978
978
|
}`);
|
|
979
|
-
class
|
|
979
|
+
class A0 {
|
|
980
980
|
}
|
|
981
|
-
|
|
981
|
+
H(A0, "vertexSchema", `
|
|
982
982
|
precision mediump float;
|
|
983
983
|
|
|
984
984
|
attribute float a_index; // 索引
|
|
@@ -1002,7 +1002,7 @@ U(e0, "vertexSchema", `
|
|
|
1002
1002
|
gl_PointSize = 1.0;
|
|
1003
1003
|
// gl_PointSize = u_point;
|
|
1004
1004
|
gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
|
|
1005
|
-
}`),
|
|
1005
|
+
}`), H(A0, "fragmentSchema", `
|
|
1006
1006
|
precision mediump float;
|
|
1007
1007
|
|
|
1008
1008
|
uniform sampler2D u_factor;
|
|
@@ -1024,7 +1024,7 @@ U(e0, "vertexSchema", `
|
|
|
1024
1024
|
|
|
1025
1025
|
float f = 1.0 - uv.b;
|
|
1026
1026
|
gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
|
|
1027
|
-
}`),
|
|
1027
|
+
}`), H(A0, "quadVertSchema", `
|
|
1028
1028
|
precision mediump float;
|
|
1029
1029
|
|
|
1030
1030
|
attribute vec2 a_pos;
|
|
@@ -1034,7 +1034,7 @@ U(e0, "vertexSchema", `
|
|
|
1034
1034
|
void main() {
|
|
1035
1035
|
v_tex_pos = a_pos;
|
|
1036
1036
|
gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
|
|
1037
|
-
}`),
|
|
1037
|
+
}`), H(A0, "screenFragmentSchema", `
|
|
1038
1038
|
precision mediump float;
|
|
1039
1039
|
|
|
1040
1040
|
uniform sampler2D u_screen;
|
|
@@ -1046,7 +1046,7 @@ U(e0, "vertexSchema", `
|
|
|
1046
1046
|
vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
|
|
1047
1047
|
// a hack to guarantee opacity fade out even with a value close to 1.0
|
|
1048
1048
|
gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
|
|
1049
|
-
}`),
|
|
1049
|
+
}`), H(A0, "updateFragmentSchema", `
|
|
1050
1050
|
precision mediump float;
|
|
1051
1051
|
|
|
1052
1052
|
uniform sampler2D u_particles;
|
|
@@ -1127,12 +1127,12 @@ U(e0, "vertexSchema", `
|
|
|
1127
1127
|
}`);
|
|
1128
1128
|
class E1 {
|
|
1129
1129
|
constructor(M = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1130
|
+
H(this, "token");
|
|
1131
|
+
H(this, "mapboxCustomer");
|
|
1132
|
+
H(this, "i4");
|
|
1133
|
+
H(this, "hi");
|
|
1134
|
+
H(this, "td");
|
|
1135
|
+
H(this, "windy");
|
|
1136
1136
|
this.token = M, this.mapboxCustomer = {
|
|
1137
1137
|
source: this.initialOnlineStyle().sources.composite,
|
|
1138
1138
|
layers: {
|
|
@@ -2843,7 +2843,7 @@ const P1 = {
|
|
|
2843
2843
|
[1, "rgb(91, 136, 161)"]
|
|
2844
2844
|
];
|
|
2845
2845
|
this.rampColor = this.webgl.setup(this.context, z);
|
|
2846
|
-
const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context,
|
|
2846
|
+
const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, p0.vertexSchema, p0.uvFragmentSchema);
|
|
2847
2847
|
this.program = M, this.aPositionBuffer = b;
|
|
2848
2848
|
}
|
|
2849
2849
|
this.handleParticleSetup();
|
|
@@ -2857,11 +2857,11 @@ const P1 = {
|
|
|
2857
2857
|
];
|
|
2858
2858
|
this.wrapper = this.webgl.bindParticle(
|
|
2859
2859
|
this.particleContext,
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2860
|
+
A0.vertexSchema,
|
|
2861
|
+
A0.fragmentSchema,
|
|
2862
|
+
A0.quadVertSchema,
|
|
2863
|
+
A0.screenFragmentSchema,
|
|
2864
|
+
A0.updateFragmentSchema
|
|
2865
2865
|
), this.wrapper.color = this.webgl.setup(this.particleContext, z, !0, 16, 16), this.wrapper = { ...this.wrapper, ...this.webgl.setupParticle(this.particleContext, 9e3), ...this.webgl.resize(this.viewport, this.particleContext) }, this.viewport.map.on("resize", this.handleResize), this.viewport.map.on("movestart", this.handlePause), this.viewport.map.on("moveend", this.handlePlay);
|
|
2866
2866
|
}
|
|
2867
2867
|
},
|
|
@@ -2894,10 +2894,10 @@ const P1 = {
|
|
|
2894
2894
|
}, k1 = { key: 0 };
|
|
2895
2895
|
function D1(z, M, b, O, p, o) {
|
|
2896
2896
|
var e;
|
|
2897
|
-
return (e = b.factor) != null && e.active ? (
|
|
2897
|
+
return (e = b.factor) != null && e.active ? (l(), f("div", k1, [
|
|
2898
2898
|
c("div", {
|
|
2899
2899
|
class: "legend-bars flex-center",
|
|
2900
|
-
style:
|
|
2900
|
+
style: z0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
|
|
2901
2901
|
}, M[0] || (M[0] = [
|
|
2902
2902
|
c("span", null, "kts", -1),
|
|
2903
2903
|
c("span", null, "0", -1),
|
|
@@ -2908,7 +2908,7 @@ function D1(z, M, b, O, p, o) {
|
|
|
2908
2908
|
c("span", null, "40", -1),
|
|
2909
2909
|
c("span", null, "60", -1)
|
|
2910
2910
|
]), 4)
|
|
2911
|
-
])) :
|
|
2911
|
+
])) : F("", !0);
|
|
2912
2912
|
}
|
|
2913
2913
|
const I1 = /* @__PURE__ */ D(P1, [["render", D1], ["__scopeId", "data-v-24e5434b"]]);
|
|
2914
2914
|
const j1 = {
|
|
@@ -3067,7 +3067,7 @@ const j1 = {
|
|
|
3067
3067
|
}, F1 = { key: 0 };
|
|
3068
3068
|
function U1(z, M, b, O, p, o) {
|
|
3069
3069
|
var e;
|
|
3070
|
-
return (e = b.current) != null && e.active ? (
|
|
3070
|
+
return (e = b.current) != null && e.active ? (l(), f("div", F1)) : F("", !0);
|
|
3071
3071
|
}
|
|
3072
3072
|
const H1 = /* @__PURE__ */ D(j1, [["render", U1]]);
|
|
3073
3073
|
const G1 = {
|
|
@@ -3175,7 +3175,7 @@ const G1 = {
|
|
|
3175
3175
|
[1, "rgb(195,194,194)"]
|
|
3176
3176
|
];
|
|
3177
3177
|
this.rampColor = this.webgl.setup(this.context, z);
|
|
3178
|
-
const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context,
|
|
3178
|
+
const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, p0.vertexSchema, p0.uvFragmentSchema);
|
|
3179
3179
|
this.program = M, this.aPositionBuffer = b;
|
|
3180
3180
|
}
|
|
3181
3181
|
this.handleParticleSetup();
|
|
@@ -3189,11 +3189,11 @@ const G1 = {
|
|
|
3189
3189
|
];
|
|
3190
3190
|
this.wrapper = this.webgl.bindParticle(
|
|
3191
3191
|
this.particleContext,
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3192
|
+
A0.vertexSchema,
|
|
3193
|
+
A0.fragmentSchema,
|
|
3194
|
+
A0.quadVertSchema,
|
|
3195
|
+
A0.screenFragmentSchema,
|
|
3196
|
+
A0.updateFragmentSchema
|
|
3197
3197
|
), this.wrapper.color = this.webgl.setup(this.particleContext, z, !0, 16, 16), this.wrapper = {
|
|
3198
3198
|
...this.wrapper,
|
|
3199
3199
|
...this.webgl.setupParticle(this.particleContext, 12e3),
|
|
@@ -3230,10 +3230,10 @@ const G1 = {
|
|
|
3230
3230
|
}, V1 = { key: 0 };
|
|
3231
3231
|
function K1(z, M, b, O, p, o) {
|
|
3232
3232
|
var e;
|
|
3233
|
-
return (e = b.factor) != null && e.active ? (
|
|
3233
|
+
return (e = b.factor) != null && e.active ? (l(), f("div", V1, [
|
|
3234
3234
|
c("div", {
|
|
3235
3235
|
class: "legend-bars flex-center",
|
|
3236
|
-
style:
|
|
3236
|
+
style: z0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
|
|
3237
3237
|
}, M[0] || (M[0] = [
|
|
3238
3238
|
c("span", null, "kts", -1),
|
|
3239
3239
|
c("span", null, "0", -1),
|
|
@@ -3243,7 +3243,7 @@ function K1(z, M, b, O, p, o) {
|
|
|
3243
3243
|
c("span", null, "2", -1),
|
|
3244
3244
|
c("span", null, "3.2", -1)
|
|
3245
3245
|
]), 4)
|
|
3246
|
-
])) :
|
|
3246
|
+
])) : F("", !0);
|
|
3247
3247
|
}
|
|
3248
3248
|
const J1 = /* @__PURE__ */ D(G1, [["render", K1], ["__scopeId", "data-v-6d4fd206"]]), Q1 = {
|
|
3249
3249
|
name: "IdmSigWave",
|
|
@@ -3365,7 +3365,7 @@ const J1 = /* @__PURE__ */ D(G1, [["render", K1], ["__scopeId", "data-v-6d4fd206
|
|
|
3365
3365
|
}
|
|
3366
3366
|
};
|
|
3367
3367
|
function $1(z, M, b, O, p, o) {
|
|
3368
|
-
return
|
|
3368
|
+
return l(), f("div");
|
|
3369
3369
|
}
|
|
3370
3370
|
const Z1 = /* @__PURE__ */ D(Q1, [["render", $1]]), Y1 = {
|
|
3371
3371
|
name: "IdmSwell",
|
|
@@ -3523,7 +3523,7 @@ const Z1 = /* @__PURE__ */ D(Q1, [["render", $1]]), Y1 = {
|
|
|
3523
3523
|
}
|
|
3524
3524
|
};
|
|
3525
3525
|
function M2(z, M, b, O, p, o) {
|
|
3526
|
-
return
|
|
3526
|
+
return l(), f("div");
|
|
3527
3527
|
}
|
|
3528
3528
|
const b2 = /* @__PURE__ */ D(Y1, [["render", M2]]), z2 = {
|
|
3529
3529
|
name: "IdmPrmsl",
|
|
@@ -3663,7 +3663,7 @@ const b2 = /* @__PURE__ */ D(Y1, [["render", M2]]), z2 = {
|
|
|
3663
3663
|
}
|
|
3664
3664
|
};
|
|
3665
3665
|
function p2(z, M, b, O, p, o) {
|
|
3666
|
-
return
|
|
3666
|
+
return l(), f("div");
|
|
3667
3667
|
}
|
|
3668
3668
|
const O2 = /* @__PURE__ */ D(z2, [["render", p2]]), o2 = {
|
|
3669
3669
|
name: "IdmIceberg",
|
|
@@ -3723,7 +3723,7 @@ const O2 = /* @__PURE__ */ D(z2, [["render", p2]]), o2 = {
|
|
|
3723
3723
|
}
|
|
3724
3724
|
};
|
|
3725
3725
|
function c2(z, M, b, O, p, o) {
|
|
3726
|
-
return
|
|
3726
|
+
return l(), f("div");
|
|
3727
3727
|
}
|
|
3728
3728
|
const e2 = /* @__PURE__ */ D(o2, [["render", c2]]);
|
|
3729
3729
|
const A2 = {
|
|
@@ -3746,7 +3746,7 @@ const A2 = {
|
|
|
3746
3746
|
emits: ["tropical", "tropicalProbability"],
|
|
3747
3747
|
data() {
|
|
3748
3748
|
return {
|
|
3749
|
-
helper:
|
|
3749
|
+
helper: S0,
|
|
3750
3750
|
source: "tropicals-source",
|
|
3751
3751
|
clusterSource: "tropicals-cluster-source",
|
|
3752
3752
|
historyLayer: "tropicals-history-layer",
|
|
@@ -3774,7 +3774,7 @@ const A2 = {
|
|
|
3774
3774
|
computeTime() {
|
|
3775
3775
|
return function(z) {
|
|
3776
3776
|
if (z) {
|
|
3777
|
-
const M =
|
|
3777
|
+
const M = e0(z).utc().utcOffset(this.timeZone), b = this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
|
|
3778
3778
|
return `${M.format("MMM-DD,HHmm")}[ UTC ${b} ] ( ${M == null ? void 0 : M.fromNow()} )`;
|
|
3779
3779
|
}
|
|
3780
3780
|
return "-";
|
|
@@ -3811,7 +3811,7 @@ const A2 = {
|
|
|
3811
3811
|
methods: {
|
|
3812
3812
|
handleRefresh() {
|
|
3813
3813
|
var O, p;
|
|
3814
|
-
const z = ((p = (O = this.tropicals) == null ? void 0 : O.data) == null ? void 0 : p.features) || [], M =
|
|
3814
|
+
const z = ((p = (O = this.tropicals) == null ? void 0 : O.data) == null ? void 0 : p.features) || [], M = e0().utc().hour(), b = [];
|
|
3815
3815
|
z.forEach((o) => {
|
|
3816
3816
|
var e, t, q;
|
|
3817
3817
|
(e = o.properties) != null && e.name && !b.includes((t = o.properties) == null ? void 0 : t.name) && b.push((q = o.properties) == null ? void 0 : q.name);
|
|
@@ -3819,21 +3819,21 @@ const A2 = {
|
|
|
3819
3819
|
var r;
|
|
3820
3820
|
let e = 0, t;
|
|
3821
3821
|
const q = z.filter((a) => {
|
|
3822
|
-
var i,
|
|
3823
|
-
return ((
|
|
3822
|
+
var i, L;
|
|
3823
|
+
return ((L = (i = a.properties) == null ? void 0 : i.category) == null ? void 0 : L.split("-")[0]) === o;
|
|
3824
3824
|
});
|
|
3825
3825
|
(r = q.filter((a) => {
|
|
3826
|
-
var i,
|
|
3827
|
-
return ((i = a.geometry) == null ? void 0 : i.type) === "LineString" && ((
|
|
3826
|
+
var i, L;
|
|
3827
|
+
return ((i = a.geometry) == null ? void 0 : i.type) === "LineString" && ((L = a.properties) == null ? void 0 : L.type) === "forecast";
|
|
3828
3828
|
})[0]) == null || r.properties.model, q.forEach((a, i) => {
|
|
3829
|
-
var
|
|
3830
|
-
((
|
|
3829
|
+
var L, n, h, u, d, m;
|
|
3830
|
+
((L = a.geometry) == null ? void 0 : L.type) === "Point" && ((n = a.properties) == null ? void 0 : n.type) === "history" && (e = i, t = t === void 0 ? i : t), ((h = a.geometry) == null ? void 0 : h.type) === "Point" && ((u = a.properties) == null ? void 0 : u.type) === "forecast" && t === void 0 && (t = i), ((d = a.geometry) == null ? void 0 : d.type) === "LineString" && ((m = a.properties) == null || m.type);
|
|
3831
3831
|
}), q.map((a, i) => {
|
|
3832
|
-
var
|
|
3833
|
-
if (((
|
|
3834
|
-
a.properties.format =
|
|
3835
|
-
const
|
|
3836
|
-
a.properties.showHistoryLabel =
|
|
3832
|
+
var L, n, h, u, d, m, R;
|
|
3833
|
+
if (((L = a.geometry) == null ? void 0 : L.type) === "LineString" && ((n = a.properties) == null || n.type), ((h = a.geometry) == null ? void 0 : h.type) === "Point" && ((u = a.properties) == null ? void 0 : u.type) === "forecast" && (a.properties.name = o, a.properties.format = e0(a.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((d = a.geometry) == null ? void 0 : d.type) === "Point" && ((m = a.properties) == null ? void 0 : m.type) === "history") {
|
|
3834
|
+
a.properties.format = e0(a.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
|
|
3835
|
+
const g = e0((R = a.properties) == null ? void 0 : R.date).utc().format("HHmm") === e0().utc().hour(Math.floor(M / 6) * 6).minute("00").format("HHmm");
|
|
3836
|
+
a.properties.showHistoryLabel = g || i === e, a.properties.showNameLabel = i === e, a.properties.name = o;
|
|
3837
3837
|
}
|
|
3838
3838
|
return a;
|
|
3839
3839
|
});
|
|
@@ -3878,8 +3878,8 @@ const A2 = {
|
|
|
3878
3878
|
else {
|
|
3879
3879
|
if (this.tropicals) {
|
|
3880
3880
|
const i = (/* @__PURE__ */ new Date()).valueOf();
|
|
3881
|
-
let
|
|
3882
|
-
(z = this.map) != null && z.getSource(this.source) ? ((b = this.map) == null || b.getSource(this.source).setData((M = this.tropicals) != null && M.active ? this.tropicals.data : this.empty), n = (/* @__PURE__ */ new Date()).valueOf() - (i +
|
|
3881
|
+
let L = 0, n = 0;
|
|
3882
|
+
(z = this.map) != null && z.getSource(this.source) ? ((b = this.map) == null || b.getSource(this.source).setData((M = this.tropicals) != null && M.active ? this.tropicals.data : this.empty), n = (/* @__PURE__ */ new Date()).valueOf() - (i + L), console.log("[tropicals] update elapsed: ", n, ", total: ", L += n)) : (this.map.addSource(this.source, {
|
|
3883
3883
|
type: "geojson",
|
|
3884
3884
|
data: (O = this.tropicals) != null && O.active ? (p = this.tropicals) == null ? void 0 : p.data : this.empty
|
|
3885
3885
|
}), this.map.addLayer({
|
|
@@ -3976,7 +3976,7 @@ const A2 = {
|
|
|
3976
3976
|
],
|
|
3977
3977
|
"text-halo-width": 4
|
|
3978
3978
|
}
|
|
3979
|
-
}), n = (/* @__PURE__ */ new Date()).valueOf() - (i +
|
|
3979
|
+
}), n = (/* @__PURE__ */ new Date()).valueOf() - (i + L), console.log("[tropical] add elapsed: ", n, ", total: ", L += n)), (o = this.map) != null && o.getSource(this.clusterSource) ? ((t = this.map) == null || t.getSource(this.clusterSource).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), n = (/* @__PURE__ */ new Date()).valueOf() - (i + L), console.log("[tropical] update elapsed: ", n, ", total: ", L += n)) : (this.map.addSource(this.clusterSource, {
|
|
3980
3980
|
type: "geojson",
|
|
3981
3981
|
data: (q = this.tropicals) != null && q.active ? (r = this.tropicals) == null ? void 0 : r.data : this.empty
|
|
3982
3982
|
// cluster: true,
|
|
@@ -4093,7 +4093,7 @@ const A2 = {
|
|
|
4093
4093
|
"text-halo-color": "#0033ff",
|
|
4094
4094
|
"text-halo-width": 4
|
|
4095
4095
|
}
|
|
4096
|
-
}), n = (/* @__PURE__ */ new Date()).valueOf() - (i +
|
|
4096
|
+
}), n = (/* @__PURE__ */ new Date()).valueOf() - (i + L), console.log("[tropical] add elapsed: ", n, ", total: ", L += n));
|
|
4097
4097
|
}
|
|
4098
4098
|
this.handleDrawCircle();
|
|
4099
4099
|
const a = I0.interpolate(this.tropicals, 1);
|
|
@@ -4105,9 +4105,9 @@ const A2 = {
|
|
|
4105
4105
|
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), (z = this.interpolateMarkers) == null || z.forEach((M) => M == null ? void 0 : M.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));
|
|
4106
4106
|
},
|
|
4107
4107
|
handleDateChange() {
|
|
4108
|
-
var z, M, b, O, p, o, e, t, q, r, a, i,
|
|
4108
|
+
var z, M, b, O, p, o, e, t, q, r, a, i, L, n, h, u, d, m, R, g, C, y, B, _, $, Y, M0, t0, W0, s0, a0, d0, b0, l0, f0, i0;
|
|
4109
4109
|
if ((z = this.interpolateMarkers) == null || z.forEach((q0) => q0 == null ? void 0 : q0.remove()), this.circleSourceData.features = [], (M = this.interpolateData) != null && M.length && this.tropicals.active) {
|
|
4110
|
-
const q0 =
|
|
4110
|
+
const q0 = e0(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), I = this.interpolateData.filter((k) => k.properties.date === q0.format() && !k.properties.disabled), X0 = this.handleComputePolygons(I), R0 = v.featureCollection([...I]);
|
|
4111
4111
|
X0.forEach((k) => {
|
|
4112
4112
|
R0.features.push(k);
|
|
4113
4113
|
}), (b = this.map) != null && b.getSource(this.interpolateSource) ? (O = this.map) == null || O.getSource(this.interpolateSource).setData(R0) : ((p = this.map) == null || p.addSource(this.interpolateSource, {
|
|
@@ -4124,17 +4124,17 @@ const A2 = {
|
|
|
4124
4124
|
"line-width": 1
|
|
4125
4125
|
}
|
|
4126
4126
|
})), this.interpolateMarkers = [];
|
|
4127
|
-
for (const k of
|
|
4127
|
+
for (const k of I)
|
|
4128
4128
|
if (!k.properties.disabled) {
|
|
4129
|
-
let
|
|
4130
|
-
((t = (e = k.properties) == null ? void 0 : e.wind) == null ? void 0 : t.spd) < 17.2 || !((r = (q = k.properties) == null ? void 0 : q.wind) != null && r.spd) ?
|
|
4129
|
+
let O0 = "#f44336";
|
|
4130
|
+
((t = (e = k.properties) == null ? void 0 : e.wind) == null ? void 0 : t.spd) < 17.2 || !((r = (q = k.properties) == null ? void 0 : q.wind) != null && r.spd) ? O0 = "#03f869" : ((i = (a = k.properties) == null ? void 0 : a.wind) == null ? void 0 : i.spd) >= 17.2 && ((n = (L = k.properties) == null ? void 0 : L.wind) == null ? void 0 : n.spd) < 24.5 ? O0 = "#f2f202" : ((u = (h = k.properties) == null ? void 0 : h.wind) == null ? void 0 : u.spd) >= 24.5 && ((m = (d = k.properties) == null ? void 0 : d.wind) == null ? void 0 : m.spd) < 32.7 ? O0 = "#ff9100" : ((g = (R = k.properties) == null ? void 0 : R.wind) == null ? void 0 : g.spd) >= 32.7 && ((y = (C = k.properties) == null ? void 0 : C.wind) == null ? void 0 : y.spd) < 41.5 ? O0 = "#f44336" : ((_ = (B = k.properties) == null ? void 0 : B.wind) == null ? void 0 : _.spd) >= 41.5 && ((Y = ($ = k.properties) == null ? void 0 : $.wind) == null ? void 0 : Y.spd) < 51 ? O0 = "#f903d0" : ((t0 = (M0 = k.properties) == null ? void 0 : M0.wind) == null ? void 0 : t0.spd) >= 51 ? O0 = "#8702f9" : O0 = "#f44336";
|
|
4131
4131
|
const r0 = `<svg t="1719918955501"
|
|
4132
4132
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
4133
4133
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
4134
4134
|
<path
|
|
4135
4135
|
d="M515.17000001 169.34666667c41-77.73 95.33-96 95.33-96-240 0-434.5 194.53-434.5 434.5 0 186.47 150.78 337.7 337.06 338.48C472.11000001 923.66666667 418.00000001 941.83666667 418.00000001 941.83666667c240 0 434.5-194.54 434.5-434.5l0.5 0.5C853.00000001 321.10666667 701.81000001 169.66666667 515.17000001 169.34666667z m-0.67 468A129.5 129.5 0 1 1 644.00000001 507.83666667a129.5 129.5 0 0 1-129.5 129.5z"
|
|
4136
|
-
fill="${
|
|
4137
|
-
<path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${
|
|
4136
|
+
fill="${O0}" p-id="18383"></path>
|
|
4137
|
+
<path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${O0}"
|
|
4138
4138
|
p-id="18384"></path>
|
|
4139
4139
|
<path
|
|
4140
4140
|
d="M517.16666667 654.67c-80.23 0-145.5-65.27-145.5-145.5s65.27-145.5 145.5-145.5S662.66666667 428.94 662.66666667 509.17s-65.27 145.5-145.5 145.5z m0-259A113.5 113.5 0 1 0 630.66666667 509.17a113.63 113.63 0 0 0-113.5-113.5z"
|
|
@@ -4142,10 +4142,10 @@ const A2 = {
|
|
|
4142
4142
|
<path
|
|
4143
4143
|
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"
|
|
4144
4144
|
fill="#ffffff" p-id="18386"></path>
|
|
4145
|
-
</svg>`,
|
|
4146
|
-
|
|
4147
|
-
const
|
|
4148
|
-
if (this.interpolateMarkers.push(
|
|
4145
|
+
</svg>`, E = document.createElement("div");
|
|
4146
|
+
E.className = "hurricane-hourly-marker", E.innerHTML = `<div class="${k.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${r0}</div>`;
|
|
4147
|
+
const o0 = new L0.Marker(E).setLngLat(k.geometry.coordinates).addTo(this.map);
|
|
4148
|
+
if (this.interpolateMarkers.push(o0), (W0 = k.properties) != null && W0.showCircle) {
|
|
4149
4149
|
const h0 = { radius: 100, coordinates: k.geometry.coordinates }, m0 = { radius: 200, coordinates: k.geometry.coordinates }, y0 = { radius: 500, coordinates: k.geometry.coordinates };
|
|
4150
4150
|
(s0 = this.circleSourceData) == null || s0.features.push(
|
|
4151
4151
|
v.circle(h0.coordinates, h0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
@@ -4155,13 +4155,13 @@ const A2 = {
|
|
|
4155
4155
|
v.circle(y0.coordinates, y0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4156
4156
|
);
|
|
4157
4157
|
}
|
|
4158
|
-
(l0 = (
|
|
4158
|
+
(l0 = (b0 = this.map) == null ? void 0 : b0.getSource(this.circleSource)) == null || l0.setData(this.circleSourceData);
|
|
4159
4159
|
}
|
|
4160
4160
|
} else
|
|
4161
4161
|
(f0 = this.map) != null && f0.getSource(this.interpolateSource) && ((i0 = this.map) == null || i0.getSource(this.interpolateSource).setData(this.empty));
|
|
4162
4162
|
},
|
|
4163
4163
|
handleClick(z) {
|
|
4164
|
-
var o, e, t, q, r, a, i,
|
|
4164
|
+
var o, e, t, q, r, a, i, L;
|
|
4165
4165
|
const M = z.features[0], b = (e = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : e.features.filter(
|
|
4166
4166
|
(n) => {
|
|
4167
4167
|
var h;
|
|
@@ -4169,8 +4169,8 @@ const A2 = {
|
|
|
4169
4169
|
}
|
|
4170
4170
|
);
|
|
4171
4171
|
b.sort((n, h) => {
|
|
4172
|
-
var
|
|
4173
|
-
return ((
|
|
4172
|
+
var u, d, m, R;
|
|
4173
|
+
return ((u = n.properties) == null ? void 0 : u.model) === "cma" ? -1 : ((d = n.properties) == null ? void 0 : d.model) === "jma" ? ((m = h.properties) == null ? void 0 : m.model) === "cma" ? 1 : -1 : n.properties.model === "ecmwf" ? ["jma", "cma"].includes((R = h.properties) == null ? void 0 : R.model) ? 1 : -1 : 0;
|
|
4174
4174
|
});
|
|
4175
4175
|
const O = (q = (t = this.tropicals) == null ? void 0 : t.data) == null ? void 0 : q.features.filter(
|
|
4176
4176
|
(n) => {
|
|
@@ -4182,7 +4182,7 @@ const A2 = {
|
|
|
4182
4182
|
name: (r = M == null ? void 0 : M.properties) == null ? void 0 : r.name,
|
|
4183
4183
|
forecasts: b.map((n) => n.properties),
|
|
4184
4184
|
history: (a = O[0]) == null ? void 0 : a.properties,
|
|
4185
|
-
showCircle: (
|
|
4185
|
+
showCircle: (L = (i = b[0]) == null ? void 0 : i.properties) == null ? void 0 : L.showCircle
|
|
4186
4186
|
}, this.showTropicals = !0;
|
|
4187
4187
|
const p = document.getElementById("active-tropical");
|
|
4188
4188
|
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.activeTropicalsMarker = new L0.Marker(p).setLngLat([z.lngLat.lng, z.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
@@ -4287,49 +4287,49 @@ const A2 = {
|
|
|
4287
4287
|
style: { "justify-content": "flex-start" }
|
|
4288
4288
|
}, L2 = { class: "forecast-models" }, R2 = ["onClick"], h2 = { class: "more" };
|
|
4289
4289
|
function m2(z, M, b, O, p, o) {
|
|
4290
|
-
var e, t, q, r, a, i,
|
|
4291
|
-
return T0((
|
|
4290
|
+
var e, t, q, r, a, i, L, n, h, u, d, m, R, g, C;
|
|
4291
|
+
return T0((l(), f("div", t2, [
|
|
4292
4292
|
c("div", a2, [
|
|
4293
4293
|
c("div", {
|
|
4294
4294
|
class: "iconfont close-btn",
|
|
4295
|
-
onClick: M[0] || (M[0] = (
|
|
4295
|
+
onClick: M[0] || (M[0] = (y) => p.showTropicals = !1)
|
|
4296
4296
|
}, ""),
|
|
4297
4297
|
c("div", q2, [
|
|
4298
|
-
(t = (e = p.activeTropicals) == null ? void 0 : e.history) != null && t.level ? (
|
|
4299
|
-
|
|
4298
|
+
(t = (e = p.activeTropicals) == null ? void 0 : e.history) != null && t.level ? (l(), f("span", i2, w((r = (q = p.activeTropicals) == null ? void 0 : q.history) == null ? void 0 : r.level) + " , ", 1)) : F("", !0),
|
|
4299
|
+
Z(w((a = p.activeTropicals) == null ? void 0 : a.name), 1)
|
|
4300
4300
|
]),
|
|
4301
|
-
c("div", r2, " Last update: " +
|
|
4301
|
+
c("div", r2, " Last update: " + w(o.computeTime(((L = (i = p.activeTropicals) == null ? void 0 : i.history) == null ? void 0 : L.updated) || ((u = (h = (n = p.activeTropicals) == null ? void 0 : n.forecasts) == null ? void 0 : h.filter((y) => !y.disabled)[0]) == null ? void 0 : u.date))), 1)
|
|
4302
4302
|
]),
|
|
4303
4303
|
c("div", n2, [
|
|
4304
4304
|
c("div", d2, [
|
|
4305
4305
|
c("div", W2, [
|
|
4306
4306
|
c("div", s2, [
|
|
4307
4307
|
M[2] || (M[2] = c("label", null, "Wind speed : ", -1)),
|
|
4308
|
-
c("span", null,
|
|
4308
|
+
c("span", null, w(((m = (d = p.activeTropicals) == null ? void 0 : d.history) == null ? void 0 : m.kts) || "-") + "[kts]", 1)
|
|
4309
4309
|
]),
|
|
4310
4310
|
c("div", l2, [
|
|
4311
4311
|
M[3] || (M[3] = c("label", null, "Pressure : ", -1)),
|
|
4312
|
-
c("span", null,
|
|
4312
|
+
c("span", null, w(((g = (R = p.activeTropicals) == null ? void 0 : R.history) == null ? void 0 : g.pressure) || "-") + "[hPa]", 1)
|
|
4313
4313
|
])
|
|
4314
4314
|
]),
|
|
4315
4315
|
c("div", f2, [
|
|
4316
4316
|
c("div", u2, [
|
|
4317
4317
|
M[4] || (M[4] = c("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
4318
4318
|
c("div", L2, [
|
|
4319
|
-
(
|
|
4320
|
-
var
|
|
4321
|
-
return
|
|
4322
|
-
key:
|
|
4323
|
-
class:
|
|
4319
|
+
(l(!0), f(G, null, J((C = p.activeTropicals) == null ? void 0 : C.forecasts, (y, B) => {
|
|
4320
|
+
var _, $, Y, M0;
|
|
4321
|
+
return l(), f("div", {
|
|
4322
|
+
key: B,
|
|
4323
|
+
class: V([
|
|
4324
4324
|
"model",
|
|
4325
|
-
|
|
4326
|
-
|
|
4325
|
+
y.disabled ? "" : "active",
|
|
4326
|
+
B > 0 && B < (($ = (_ = p.activeTropicals) == null ? void 0 : _.forecasts) == null ? void 0 : $.length) - 1 && ((M0 = (Y = p.activeTropicals) == null ? void 0 : Y.forecasts) == null ? void 0 : M0.length) > 2 ? "center-child" : ""
|
|
4327
4327
|
]),
|
|
4328
|
-
onClick: (t0) => o.handleForecastToggle(
|
|
4328
|
+
onClick: (t0) => o.handleForecastToggle(y)
|
|
4329
4329
|
}, [
|
|
4330
4330
|
c("span", {
|
|
4331
|
-
class:
|
|
4332
|
-
},
|
|
4331
|
+
class: V(y.model)
|
|
4332
|
+
}, w(y.model), 3)
|
|
4333
4333
|
], 10, R2);
|
|
4334
4334
|
}), 128))
|
|
4335
4335
|
])
|
|
@@ -4340,7 +4340,7 @@ function m2(z, M, b, O, p, o) {
|
|
|
4340
4340
|
c("div", h2, [
|
|
4341
4341
|
c("div", {
|
|
4342
4342
|
class: "button",
|
|
4343
|
-
onClick: M[1] || (M[1] = (
|
|
4343
|
+
onClick: M[1] || (M[1] = (y) => o.handleStrikeProbability(p.activeTropicals))
|
|
4344
4344
|
}, "Strike Probability >>")
|
|
4345
4345
|
])
|
|
4346
4346
|
])
|
|
@@ -4437,7 +4437,7 @@ const N2 = {
|
|
|
4437
4437
|
[1, "rgba(197,5,58,0.8)"]
|
|
4438
4438
|
];
|
|
4439
4439
|
this.rampColor = this.webgl.setup(this.context, z);
|
|
4440
|
-
const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context,
|
|
4440
|
+
const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, p0.vertexSchema, p0.fragmentSchema);
|
|
4441
4441
|
this.program = M, this.aPositionBuffer = b;
|
|
4442
4442
|
}
|
|
4443
4443
|
},
|
|
@@ -4453,10 +4453,10 @@ const N2 = {
|
|
|
4453
4453
|
}, B2 = { key: 0 };
|
|
4454
4454
|
function y2(z, M, b, O, p, o) {
|
|
4455
4455
|
var e;
|
|
4456
|
-
return (e = b.factor) != null && e.active ? (
|
|
4456
|
+
return (e = b.factor) != null && e.active ? (l(), f("div", B2, [
|
|
4457
4457
|
c("div", {
|
|
4458
4458
|
class: "legend-bars flex-center",
|
|
4459
|
-
style:
|
|
4459
|
+
style: z0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
|
|
4460
4460
|
}, M[0] || (M[0] = [
|
|
4461
4461
|
c("span", null, "mm", -1),
|
|
4462
4462
|
c("span", null, "1.5", -1),
|
|
@@ -4467,7 +4467,7 @@ function y2(z, M, b, O, p, o) {
|
|
|
4467
4467
|
c("span", null, "20", -1),
|
|
4468
4468
|
c("span", null, "30", -1)
|
|
4469
4469
|
]), 4)
|
|
4470
|
-
])) :
|
|
4470
|
+
])) : F("", !0);
|
|
4471
4471
|
}
|
|
4472
4472
|
const g2 = /* @__PURE__ */ D(N2, [["render", y2], ["__scopeId", "data-v-9708a7a3"]]);
|
|
4473
4473
|
const X2 = {
|
|
@@ -4551,7 +4551,7 @@ const X2 = {
|
|
|
4551
4551
|
[1, "rgba(144,144,144,0)"]
|
|
4552
4552
|
];
|
|
4553
4553
|
this.rampColor = this.webgl.setup(this.context, z);
|
|
4554
|
-
const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context,
|
|
4554
|
+
const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, p0.vertexSchema, p0.fragmentSchema);
|
|
4555
4555
|
this.program = M, this.aPositionBuffer = b;
|
|
4556
4556
|
}
|
|
4557
4557
|
},
|
|
@@ -4567,10 +4567,10 @@ const X2 = {
|
|
|
4567
4567
|
}, v2 = { key: 0 };
|
|
4568
4568
|
function T2(z, M, b, O, p, o) {
|
|
4569
4569
|
var e;
|
|
4570
|
-
return (e = b.factor) != null && e.active ? (
|
|
4570
|
+
return (e = b.factor) != null && e.active ? (l(), f("div", v2, [
|
|
4571
4571
|
c("div", {
|
|
4572
4572
|
class: "legend-bars flex-center",
|
|
4573
|
-
style:
|
|
4573
|
+
style: z0([{ position: "absolute" }, { right: z.right + "px", bottom: b.bottom }])
|
|
4574
4574
|
}, M[0] || (M[0] = [
|
|
4575
4575
|
c("span", null, "nm", -1),
|
|
4576
4576
|
c("span", null, "0", -1),
|
|
@@ -4579,7 +4579,7 @@ function T2(z, M, b, O, p, o) {
|
|
|
4579
4579
|
c("span", null, "3", -1),
|
|
4580
4580
|
c("span", null, "9", -1)
|
|
4581
4581
|
]), 4)
|
|
4582
|
-
])) :
|
|
4582
|
+
])) : F("", !0);
|
|
4583
4583
|
}
|
|
4584
4584
|
const w2 = /* @__PURE__ */ D(X2, [["render", T2], ["__scopeId", "data-v-f7b2fb08"]]);
|
|
4585
4585
|
const C2 = {
|
|
@@ -4671,7 +4671,7 @@ const C2 = {
|
|
|
4671
4671
|
//
|
|
4672
4672
|
];
|
|
4673
4673
|
this.rampColor = this.webgl.setup(this.context, z);
|
|
4674
|
-
const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context,
|
|
4674
|
+
const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, p0.vertexSchema, p0.fragmentSchema);
|
|
4675
4675
|
this.program = M, this.aPositionBuffer = b;
|
|
4676
4676
|
}
|
|
4677
4677
|
},
|
|
@@ -4687,10 +4687,10 @@ const C2 = {
|
|
|
4687
4687
|
}, _2 = { key: 0 };
|
|
4688
4688
|
function x2(z, M, b, O, p, o) {
|
|
4689
4689
|
var e;
|
|
4690
|
-
return (e = b.factor) != null && e.active ? (
|
|
4690
|
+
return (e = b.factor) != null && e.active ? (l(), f("div", _2, [
|
|
4691
4691
|
c("div", {
|
|
4692
4692
|
class: "legend-bars flex-center",
|
|
4693
|
-
style:
|
|
4693
|
+
style: z0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
|
|
4694
4694
|
}, M[0] || (M[0] = [
|
|
4695
4695
|
c("span", null, "°C", -1),
|
|
4696
4696
|
c("span", null, "0", -1),
|
|
@@ -4699,7 +4699,7 @@ function x2(z, M, b, O, p, o) {
|
|
|
4699
4699
|
c("span", null, "30", -1),
|
|
4700
4700
|
c("span", null, "40", -1)
|
|
4701
4701
|
]), 4)
|
|
4702
|
-
])) :
|
|
4702
|
+
])) : F("", !0);
|
|
4703
4703
|
}
|
|
4704
4704
|
const S2 = /* @__PURE__ */ D(C2, [["render", x2], ["__scopeId", "data-v-7521f582"]]);
|
|
4705
4705
|
const E2 = {
|
|
@@ -4794,7 +4794,7 @@ const E2 = {
|
|
|
4794
4794
|
[1, "rgb(138, 43, 10)"]
|
|
4795
4795
|
];
|
|
4796
4796
|
this.rampColor = this.webgl.setup(this.context, z);
|
|
4797
|
-
const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context,
|
|
4797
|
+
const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, p0.vertexSchema, p0.fragmentSchema);
|
|
4798
4798
|
this.program = M, this.aPositionBuffer = b;
|
|
4799
4799
|
}
|
|
4800
4800
|
},
|
|
@@ -4810,10 +4810,10 @@ const E2 = {
|
|
|
4810
4810
|
}, P2 = { key: 0 };
|
|
4811
4811
|
function k2(z, M, b, O, p, o) {
|
|
4812
4812
|
var e;
|
|
4813
|
-
return (e = b.factor) != null && e.active ? (
|
|
4813
|
+
return (e = b.factor) != null && e.active ? (l(), f("div", P2, [
|
|
4814
4814
|
c("div", {
|
|
4815
4815
|
class: "legend-bars flex-center",
|
|
4816
|
-
style:
|
|
4816
|
+
style: z0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
|
|
4817
4817
|
}, M[0] || (M[0] = [
|
|
4818
4818
|
c("span", null, "°C", -1),
|
|
4819
4819
|
c("span", null, "-20", -1),
|
|
@@ -4824,7 +4824,7 @@ function k2(z, M, b, O, p, o) {
|
|
|
4824
4824
|
c("span", null, "30", -1),
|
|
4825
4825
|
c("span", null, "40", -1)
|
|
4826
4826
|
]), 4)
|
|
4827
|
-
])) :
|
|
4827
|
+
])) : F("", !0);
|
|
4828
4828
|
}
|
|
4829
4829
|
const D2 = /* @__PURE__ */ D(E2, [["render", k2], ["__scopeId", "data-v-25daaa82"]]);
|
|
4830
4830
|
const I2 = {
|
|
@@ -4910,7 +4910,7 @@ const I2 = {
|
|
|
4910
4910
|
// 2m
|
|
4911
4911
|
];
|
|
4912
4912
|
this.rampColor = this.webgl.setup(this.context, z);
|
|
4913
|
-
const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context,
|
|
4913
|
+
const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, p0.vertexSchema, p0.fragmentSchema);
|
|
4914
4914
|
this.program = M, this.aPositionBuffer = b;
|
|
4915
4915
|
}
|
|
4916
4916
|
},
|
|
@@ -4926,10 +4926,10 @@ const I2 = {
|
|
|
4926
4926
|
}, j2 = { key: 0 };
|
|
4927
4927
|
function F2(z, M, b, O, p, o) {
|
|
4928
4928
|
var e;
|
|
4929
|
-
return (e = b.factor) != null && e.active ? (
|
|
4929
|
+
return (e = b.factor) != null && e.active ? (l(), f("div", j2, [
|
|
4930
4930
|
c("div", {
|
|
4931
4931
|
class: "legend-bars flex-center",
|
|
4932
|
-
style:
|
|
4932
|
+
style: z0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
|
|
4933
4933
|
}, M[0] || (M[0] = [
|
|
4934
4934
|
c("span", null, "m", -1),
|
|
4935
4935
|
c("span", null, "0", -1),
|
|
@@ -4938,7 +4938,7 @@ function F2(z, M, b, O, p, o) {
|
|
|
4938
4938
|
c("span", null, "1.5", -1),
|
|
4939
4939
|
c("span", null, "2", -1)
|
|
4940
4940
|
]), 4)
|
|
4941
|
-
])) :
|
|
4941
|
+
])) : F("", !0);
|
|
4942
4942
|
}
|
|
4943
4943
|
const U2 = /* @__PURE__ */ D(I2, [["render", F2], ["__scopeId", "data-v-5bb73794"]]);
|
|
4944
4944
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
@@ -4946,7 +4946,7 @@ var H2 = /* @__PURE__ */ J0({
|
|
|
4946
4946
|
name: "LocationFilled",
|
|
4947
4947
|
__name: "location-filled",
|
|
4948
4948
|
setup(z) {
|
|
4949
|
-
return (M, b) => (
|
|
4949
|
+
return (M, b) => (l(), f("svg", {
|
|
4950
4950
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4951
4951
|
viewBox: "0 0 1024 1024"
|
|
4952
4952
|
}, [
|
|
@@ -4968,29 +4968,29 @@ var F0 = { exports: {} }, U0 = { exports: {} };
|
|
|
4968
4968
|
//! license : MIT
|
|
4969
4969
|
//! github.com/moment/moment-timezone
|
|
4970
4970
|
(function(M, b) {
|
|
4971
|
-
z.exports ? z.exports = b(
|
|
4971
|
+
z.exports ? z.exports = b(e0) : b(M.moment);
|
|
4972
4972
|
})(V2, function(M) {
|
|
4973
4973
|
M.version === void 0 && M.default && (M = M.default);
|
|
4974
4974
|
var b = "0.5.47", O = {}, p = {}, o = {}, e = {}, t = {}, q;
|
|
4975
4975
|
(!M || typeof M.version != "string") && r0("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");
|
|
4976
4976
|
var r = M.version.split("."), a = +r[0], i = +r[1];
|
|
4977
4977
|
(a < 2 || a === 2 && i < 6) && r0("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js " + M.version + ". See momentjs.com");
|
|
4978
|
-
function
|
|
4978
|
+
function L(A) {
|
|
4979
4979
|
return A > 96 ? A - 87 : A > 64 ? A - 29 : A - 48;
|
|
4980
4980
|
}
|
|
4981
4981
|
function n(A) {
|
|
4982
|
-
var W = 0, s = A.split("."), N = s[0], X = s[1] || "",
|
|
4983
|
-
for (A.charCodeAt(0) === 45 && (W = 1,
|
|
4984
|
-
|
|
4982
|
+
var W = 0, s = A.split("."), N = s[0], X = s[1] || "", S = 1, K, P = 0, U = 1;
|
|
4983
|
+
for (A.charCodeAt(0) === 45 && (W = 1, U = -1), W; W < N.length; W++)
|
|
4984
|
+
K = L(N.charCodeAt(W)), P = 60 * P + K;
|
|
4985
4985
|
for (W = 0; W < X.length; W++)
|
|
4986
|
-
|
|
4987
|
-
return
|
|
4986
|
+
S = S / 60, K = L(X.charCodeAt(W)), P += K * S;
|
|
4987
|
+
return P * U;
|
|
4988
4988
|
}
|
|
4989
4989
|
function h(A) {
|
|
4990
4990
|
for (var W = 0; W < A.length; W++)
|
|
4991
4991
|
A[W] = n(A[W]);
|
|
4992
4992
|
}
|
|
4993
|
-
function
|
|
4993
|
+
function u(A, W) {
|
|
4994
4994
|
for (var s = 0; s < W; s++)
|
|
4995
4995
|
A[s] = Math.round((A[s - 1] || 0) + A[s] * 6e4);
|
|
4996
4996
|
A[W - 1] = 1 / 0;
|
|
@@ -5003,7 +5003,7 @@ var F0 = { exports: {} }, U0 = { exports: {} };
|
|
|
5003
5003
|
}
|
|
5004
5004
|
function m(A) {
|
|
5005
5005
|
var W = A.split("|"), s = W[2].split(" "), N = W[3].split(""), X = W[4].split(" ");
|
|
5006
|
-
return h(s), h(N), h(X),
|
|
5006
|
+
return h(s), h(N), h(X), u(X, N.length), {
|
|
5007
5007
|
name: W[0],
|
|
5008
5008
|
abbrs: d(W[1].split(" "), N),
|
|
5009
5009
|
offsets: d(s, N),
|
|
@@ -5011,10 +5011,10 @@ var F0 = { exports: {} }, U0 = { exports: {} };
|
|
|
5011
5011
|
population: W[5] | 0
|
|
5012
5012
|
};
|
|
5013
5013
|
}
|
|
5014
|
-
function
|
|
5014
|
+
function R(A) {
|
|
5015
5015
|
A && this._set(m(A));
|
|
5016
5016
|
}
|
|
5017
|
-
function
|
|
5017
|
+
function g(A, W) {
|
|
5018
5018
|
var s = W.length;
|
|
5019
5019
|
if (A < W[0])
|
|
5020
5020
|
return 0;
|
|
@@ -5022,17 +5022,17 @@ var F0 = { exports: {} }, U0 = { exports: {} };
|
|
|
5022
5022
|
return s - 1;
|
|
5023
5023
|
if (A >= W[s - 1])
|
|
5024
5024
|
return -1;
|
|
5025
|
-
for (var N, X = 0,
|
|
5026
|
-
N = Math.floor((X +
|
|
5027
|
-
return
|
|
5025
|
+
for (var N, X = 0, S = s - 1; S - X > 1; )
|
|
5026
|
+
N = Math.floor((X + S) / 2), W[N] <= A ? X = N : S = N;
|
|
5027
|
+
return S;
|
|
5028
5028
|
}
|
|
5029
|
-
|
|
5029
|
+
R.prototype = {
|
|
5030
5030
|
_set: function(A) {
|
|
5031
5031
|
this.name = A.name, this.abbrs = A.abbrs, this.untils = A.untils, this.offsets = A.offsets, this.population = A.population;
|
|
5032
5032
|
},
|
|
5033
5033
|
_index: function(A) {
|
|
5034
5034
|
var W = +A, s = this.untils, N;
|
|
5035
|
-
if (N =
|
|
5035
|
+
if (N = g(W, s), N >= 0)
|
|
5036
5036
|
return N;
|
|
5037
5037
|
},
|
|
5038
5038
|
countries: function() {
|
|
@@ -5042,10 +5042,10 @@ var F0 = { exports: {} }, U0 = { exports: {} };
|
|
|
5042
5042
|
});
|
|
5043
5043
|
},
|
|
5044
5044
|
parse: function(A) {
|
|
5045
|
-
var W = +A, s = this.offsets, N = this.untils, X = N.length - 1,
|
|
5046
|
-
for (
|
|
5047
|
-
if (
|
|
5048
|
-
return s[
|
|
5045
|
+
var W = +A, s = this.offsets, N = this.untils, X = N.length - 1, S, K, P, U;
|
|
5046
|
+
for (U = 0; U < X; U++)
|
|
5047
|
+
if (S = s[U], K = s[U + 1], P = s[U && U - 1], S < K && E.moveAmbiguousForward ? S = K : S > P && E.moveInvalidForward && (S = P), W < N[U] - S * 6e4)
|
|
5048
|
+
return s[U];
|
|
5049
5049
|
return s[X];
|
|
5050
5050
|
},
|
|
5051
5051
|
abbr: function(A) {
|
|
@@ -5058,51 +5058,51 @@ var F0 = { exports: {} }, U0 = { exports: {} };
|
|
|
5058
5058
|
return this.offsets[this._index(A)];
|
|
5059
5059
|
}
|
|
5060
5060
|
};
|
|
5061
|
-
function
|
|
5061
|
+
function C(A, W) {
|
|
5062
5062
|
this.name = A, this.zones = W;
|
|
5063
5063
|
}
|
|
5064
|
-
function
|
|
5064
|
+
function y(A) {
|
|
5065
5065
|
var W = A.toTimeString(), s = W.match(/\([a-z ]+\)/i);
|
|
5066
5066
|
s && s[0] ? (s = s[0].match(/[A-Z]/g), s = s ? s.join("") : void 0) : (s = W.match(/[A-Z]{3,5}/g), s = s ? s[0] : void 0), s === "GMT" && (s = void 0), this.at = +A, this.abbr = s, this.offset = A.getTimezoneOffset();
|
|
5067
5067
|
}
|
|
5068
|
-
function
|
|
5068
|
+
function B(A) {
|
|
5069
5069
|
this.zone = A, this.offsetScore = 0, this.abbrScore = 0;
|
|
5070
5070
|
}
|
|
5071
|
-
|
|
5071
|
+
B.prototype.scoreOffsetAt = function(A) {
|
|
5072
5072
|
this.offsetScore += Math.abs(this.zone.utcOffset(A.at) - A.offset), this.zone.abbr(A.at).replace(/[^A-Z]/g, "") !== A.abbr && this.abbrScore++;
|
|
5073
5073
|
};
|
|
5074
|
-
function
|
|
5074
|
+
function _(A, W) {
|
|
5075
5075
|
for (var s, N; N = ((W.at - A.at) / 12e4 | 0) * 6e4; )
|
|
5076
|
-
s = new
|
|
5076
|
+
s = new y(new Date(A.at + N)), s.offset === A.offset ? A = s : W = s;
|
|
5077
5077
|
return A;
|
|
5078
5078
|
}
|
|
5079
|
-
function
|
|
5080
|
-
var A = (/* @__PURE__ */ new Date()).getFullYear() - 2, W = new
|
|
5081
|
-
for (
|
|
5082
|
-
|
|
5083
|
-
for (
|
|
5084
|
-
N.push(new
|
|
5079
|
+
function $() {
|
|
5080
|
+
var A = (/* @__PURE__ */ new Date()).getFullYear() - 2, W = new y(new Date(A, 0, 1)), s = W.offset, N = [W], X, S, K, P;
|
|
5081
|
+
for (P = 1; P < 48; P++)
|
|
5082
|
+
K = new Date(A, P, 1).getTimezoneOffset(), K !== s && (S = new y(new Date(A, P, 1)), X = _(W, S), N.push(X), N.push(new y(new Date(X.at + 6e4))), W = S, s = K);
|
|
5083
|
+
for (P = 0; P < 4; P++)
|
|
5084
|
+
N.push(new y(new Date(A + P, 0, 1))), N.push(new y(new Date(A + P, 6, 1)));
|
|
5085
5085
|
return N;
|
|
5086
5086
|
}
|
|
5087
|
-
function
|
|
5087
|
+
function Y(A, W) {
|
|
5088
5088
|
return A.offsetScore !== W.offsetScore ? A.offsetScore - W.offsetScore : A.abbrScore !== W.abbrScore ? A.abbrScore - W.abbrScore : A.zone.population !== W.zone.population ? W.zone.population - A.zone.population : W.zone.name.localeCompare(A.zone.name);
|
|
5089
5089
|
}
|
|
5090
|
-
function
|
|
5090
|
+
function M0(A, W) {
|
|
5091
5091
|
var s, N;
|
|
5092
5092
|
for (h(W), s = 0; s < W.length; s++)
|
|
5093
5093
|
N = W[s], t[N] = t[N] || {}, t[N][A] = !0;
|
|
5094
5094
|
}
|
|
5095
5095
|
function t0(A) {
|
|
5096
|
-
var W = A.length, s = {}, N = [], X = {},
|
|
5097
|
-
for (
|
|
5098
|
-
if (
|
|
5099
|
-
|
|
5100
|
-
for (
|
|
5101
|
-
|
|
5102
|
-
X[
|
|
5096
|
+
var W = A.length, s = {}, N = [], X = {}, S, K, P, U;
|
|
5097
|
+
for (S = 0; S < W; S++)
|
|
5098
|
+
if (P = A[S].offset, !X.hasOwnProperty(P)) {
|
|
5099
|
+
U = t[P] || {};
|
|
5100
|
+
for (K in U)
|
|
5101
|
+
U.hasOwnProperty(K) && (s[K] = !0);
|
|
5102
|
+
X[P] = !0;
|
|
5103
5103
|
}
|
|
5104
|
-
for (
|
|
5105
|
-
s.hasOwnProperty(
|
|
5104
|
+
for (S in s)
|
|
5105
|
+
s.hasOwnProperty(S) && N.push(e[S]);
|
|
5106
5106
|
return N;
|
|
5107
5107
|
}
|
|
5108
5108
|
function W0() {
|
|
@@ -5116,13 +5116,13 @@ var F0 = { exports: {} }, U0 = { exports: {} };
|
|
|
5116
5116
|
}
|
|
5117
5117
|
} catch {
|
|
5118
5118
|
}
|
|
5119
|
-
var s =
|
|
5120
|
-
for (
|
|
5121
|
-
for (
|
|
5122
|
-
|
|
5123
|
-
|
|
5119
|
+
var s = $(), N = s.length, X = t0(s), S = [], K, P, U;
|
|
5120
|
+
for (P = 0; P < X.length; P++) {
|
|
5121
|
+
for (K = new B(b0(X[P])), U = 0; U < N; U++)
|
|
5122
|
+
K.scoreOffsetAt(s[U]);
|
|
5123
|
+
S.push(K);
|
|
5124
5124
|
}
|
|
5125
|
-
return
|
|
5125
|
+
return S.sort(Y), S.length > 0 ? S[0].zone.name : void 0;
|
|
5126
5126
|
}
|
|
5127
5127
|
function s0(A) {
|
|
5128
5128
|
return (!q || A) && (q = W0()), q;
|
|
@@ -5133,12 +5133,12 @@ var F0 = { exports: {} }, U0 = { exports: {} };
|
|
|
5133
5133
|
function d0(A) {
|
|
5134
5134
|
var W, s, N, X;
|
|
5135
5135
|
for (typeof A == "string" && (A = [A]), W = 0; W < A.length; W++)
|
|
5136
|
-
N = A[W].split("|"), s = N[0], X = a0(s), O[X] = A[W], e[X] = s,
|
|
5136
|
+
N = A[W].split("|"), s = N[0], X = a0(s), O[X] = A[W], e[X] = s, M0(X, N[2].split(" "));
|
|
5137
5137
|
}
|
|
5138
|
-
function
|
|
5138
|
+
function b0(A, W) {
|
|
5139
5139
|
A = a0(A);
|
|
5140
5140
|
var s = O[A], N;
|
|
5141
|
-
return s instanceof
|
|
5141
|
+
return s instanceof R ? s : typeof s == "string" ? (s = new R(s), O[A] = s, s) : p[A] && W !== b0 && (N = b0(p[A], b0)) ? (s = O[A] = new R(), s._set(N), s.name = e[A], s) : null;
|
|
5142
5142
|
}
|
|
5143
5143
|
function l0() {
|
|
5144
5144
|
var A, W = [];
|
|
@@ -5158,20 +5158,20 @@ var F0 = { exports: {} }, U0 = { exports: {} };
|
|
|
5158
5158
|
var W, s, N, X;
|
|
5159
5159
|
if (!(!A || !A.length))
|
|
5160
5160
|
for (W = 0; W < A.length; W++)
|
|
5161
|
-
X = A[W].split("|"), s = X[0].toUpperCase(), N = X[1].split(" "), o[s] = new
|
|
5161
|
+
X = A[W].split("|"), s = X[0].toUpperCase(), N = X[1].split(" "), o[s] = new C(
|
|
5162
5162
|
s,
|
|
5163
5163
|
N
|
|
5164
5164
|
);
|
|
5165
5165
|
}
|
|
5166
|
-
function
|
|
5166
|
+
function I(A) {
|
|
5167
5167
|
return A = A.toUpperCase(), o[A] || null;
|
|
5168
5168
|
}
|
|
5169
5169
|
function X0(A, W) {
|
|
5170
|
-
if (A =
|
|
5170
|
+
if (A = I(A), !A)
|
|
5171
5171
|
return null;
|
|
5172
5172
|
var s = A.zones.sort();
|
|
5173
5173
|
return W ? s.map(function(N) {
|
|
5174
|
-
var X =
|
|
5174
|
+
var X = b0(N);
|
|
5175
5175
|
return {
|
|
5176
5176
|
name: N,
|
|
5177
5177
|
offset: X.utcOffset(/* @__PURE__ */ new Date())
|
|
@@ -5179,37 +5179,37 @@ var F0 = { exports: {} }, U0 = { exports: {} };
|
|
|
5179
5179
|
}) : s;
|
|
5180
5180
|
}
|
|
5181
5181
|
function R0(A) {
|
|
5182
|
-
d0(A.zones), i0(A.links), q0(A.countries),
|
|
5182
|
+
d0(A.zones), i0(A.links), q0(A.countries), E.dataVersion = A.version;
|
|
5183
5183
|
}
|
|
5184
5184
|
function k(A) {
|
|
5185
|
-
return k.didShowError || (k.didShowError = !0, r0("moment.tz.zoneExists('" + A + "') has been deprecated in favor of !moment.tz.zone('" + A + "')")), !!
|
|
5185
|
+
return k.didShowError || (k.didShowError = !0, r0("moment.tz.zoneExists('" + A + "') has been deprecated in favor of !moment.tz.zone('" + A + "')")), !!b0(A);
|
|
5186
5186
|
}
|
|
5187
|
-
function
|
|
5187
|
+
function O0(A) {
|
|
5188
5188
|
var W = A._f === "X" || A._f === "x";
|
|
5189
5189
|
return !!(A._a && A._tzm === void 0 && !W);
|
|
5190
5190
|
}
|
|
5191
5191
|
function r0(A) {
|
|
5192
5192
|
typeof console < "u" && typeof console.error == "function" && console.error(A);
|
|
5193
5193
|
}
|
|
5194
|
-
function
|
|
5194
|
+
function E(A) {
|
|
5195
5195
|
var W = Array.prototype.slice.call(arguments, 0, -1), s = arguments[arguments.length - 1], N = M.utc.apply(null, W), X;
|
|
5196
|
-
return !M.isMoment(A) &&
|
|
5196
|
+
return !M.isMoment(A) && O0(N) && (X = b0(s)) && N.add(X.parse(N), "minutes"), N.tz(s), N;
|
|
5197
5197
|
}
|
|
5198
|
-
|
|
5199
|
-
var
|
|
5200
|
-
M.tz =
|
|
5198
|
+
E.version = b, E.dataVersion = "", E._zones = O, E._links = p, E._names = e, E._countries = o, E.add = d0, E.link = i0, E.load = R0, E.zone = b0, E.zoneExists = k, E.guess = s0, E.names = l0, E.Zone = R, E.unpack = m, E.unpackBase60 = n, E.needsOffset = O0, E.moveInvalidForward = !0, E.moveAmbiguousForward = !1, E.countries = f0, E.zonesForCountry = X0;
|
|
5199
|
+
var o0 = M.fn;
|
|
5200
|
+
M.tz = E, M.defaultZone = null, M.updateOffset = function(A, W) {
|
|
5201
5201
|
var s = M.defaultZone, N;
|
|
5202
|
-
if (A._z === void 0 && (s &&
|
|
5202
|
+
if (A._z === void 0 && (s && O0(A) && !A._isUTC && A.isValid() && (A._d = M.utc(A._a)._d, A.utc().add(s.parse(A), "minutes")), A._z = s), A._z)
|
|
5203
5203
|
if (N = A._z.utcOffset(A), Math.abs(N) < 16 && (N = N / 60), A.utcOffset !== void 0) {
|
|
5204
5204
|
var X = A._z;
|
|
5205
5205
|
A.utcOffset(-N, W), A._z = X;
|
|
5206
5206
|
} else
|
|
5207
5207
|
A.zone(N, W);
|
|
5208
|
-
},
|
|
5208
|
+
}, o0.tz = function(A, W) {
|
|
5209
5209
|
if (A) {
|
|
5210
5210
|
if (typeof A != "string")
|
|
5211
5211
|
throw new Error("Time zone name must be a string, got " + A + " [" + typeof A + "]");
|
|
5212
|
-
return this._z =
|
|
5212
|
+
return this._z = b0(A), this._z ? M.updateOffset(this, W) : r0("Moment Timezone has no data for " + A + ". See http://momentjs.com/timezone/docs/#/data-loading/."), this;
|
|
5213
5213
|
}
|
|
5214
5214
|
if (this._z)
|
|
5215
5215
|
return this._z.name;
|
|
@@ -5229,8 +5229,8 @@ var F0 = { exports: {} }, U0 = { exports: {} };
|
|
|
5229
5229
|
return arguments.length > 0 && (this._z = null), A.apply(this, arguments);
|
|
5230
5230
|
};
|
|
5231
5231
|
}
|
|
5232
|
-
|
|
5233
|
-
return (a < 2 || a === 2 && i < 9) && r0("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js " + M.version + "."), M.defaultZone = A ?
|
|
5232
|
+
o0.zoneName = h0(o0.zoneName), o0.zoneAbbr = h0(o0.zoneAbbr), o0.utc = m0(o0.utc), o0.local = m0(o0.local), o0.utcOffset = y0(o0.utcOffset), M.tz.setDefault = function(A) {
|
|
5233
|
+
return (a < 2 || a === 2 && i < 9) && r0("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js " + M.version + "."), M.defaultZone = A ? b0(A) : null, M;
|
|
5234
5234
|
};
|
|
5235
5235
|
var N0 = M.momentProperties;
|
|
5236
5236
|
return Object.prototype.toString.call(N0) === "[object Array]" ? (N0.push("_z"), N0.push("_a")) : N0 && (N0._z = null), M;
|
|
@@ -6092,7 +6092,7 @@ const Q2 = "2025a", $2 = [
|
|
|
6092
6092
|
var bM = F0.exports = J2;
|
|
6093
6093
|
bM.tz.load(MM);
|
|
6094
6094
|
var zM = F0.exports;
|
|
6095
|
-
const
|
|
6095
|
+
const _0 = /* @__PURE__ */ K2(zM);
|
|
6096
6096
|
const pM = {
|
|
6097
6097
|
name: "IdmPoint",
|
|
6098
6098
|
components: { LocationFilled: G2 },
|
|
@@ -6127,7 +6127,6 @@ const pM = {
|
|
|
6127
6127
|
positionGmt: void 0,
|
|
6128
6128
|
localDate: void 0,
|
|
6129
6129
|
meteoMarker: void 0,
|
|
6130
|
-
helper: v0,
|
|
6131
6130
|
activeIndex: 1
|
|
6132
6131
|
};
|
|
6133
6132
|
},
|
|
@@ -6157,27 +6156,27 @@ const pM = {
|
|
|
6157
6156
|
computed: {
|
|
6158
6157
|
computeHourL() {
|
|
6159
6158
|
return function(z) {
|
|
6160
|
-
return z ? `${
|
|
6159
|
+
return z ? `${_0(z).tz(this.positionGmt).format("HH")}` : "-";
|
|
6161
6160
|
};
|
|
6162
6161
|
},
|
|
6163
6162
|
computeHourZ() {
|
|
6164
6163
|
return function(z) {
|
|
6165
|
-
return z ? `${
|
|
6164
|
+
return z ? `${e0(z).utc().format("HH")}Z` : "-";
|
|
6166
6165
|
};
|
|
6167
6166
|
},
|
|
6168
6167
|
computeLat() {
|
|
6169
6168
|
return function(z, M = 4) {
|
|
6170
|
-
return
|
|
6169
|
+
return Q.lat2pretty(z, M).pretty;
|
|
6171
6170
|
};
|
|
6172
6171
|
},
|
|
6173
6172
|
computeLng() {
|
|
6174
6173
|
return function(z, M = 4) {
|
|
6175
|
-
return
|
|
6174
|
+
return Q.lng2pretty(z, M).pretty;
|
|
6176
6175
|
};
|
|
6177
6176
|
},
|
|
6178
6177
|
roundPrecision() {
|
|
6179
6178
|
return function(z, M = 4) {
|
|
6180
|
-
return isNaN(z) ? "-" :
|
|
6179
|
+
return isNaN(z) ? "-" : Q.roundPrecision(z, M);
|
|
6181
6180
|
};
|
|
6182
6181
|
}
|
|
6183
6182
|
},
|
|
@@ -6185,8 +6184,8 @@ const pM = {
|
|
|
6185
6184
|
},
|
|
6186
6185
|
methods: {
|
|
6187
6186
|
initTableData() {
|
|
6188
|
-
var z, M, b, O, p, o, e, t, q, r, a, i,
|
|
6189
|
-
this.currentHourData = (z = D0.pickHourly(this.meteoData, this.ts ?
|
|
6187
|
+
var z, M, b, O, p, o, e, t, q, r, a, i, L, n, h, u, d, m, R, g, C, y, B, _, $, Y, M0, t0, W0, s0, a0, d0, b0, l0, f0;
|
|
6188
|
+
this.currentHourData = (z = D0.pickHourly(this.meteoData, this.ts ? e0(this.ts) : e0())) == null ? void 0 : z[0], this.positionGmt = (b = (M = this.meteoData.weather) == null ? void 0 : M[0]) == null ? void 0 : b.timezone, this.localDate = _0(this.ts).tz(this.positionGmt).format("MMM-DD/HHmm[LT]"), this.tableData = {
|
|
6190
6189
|
hours: [],
|
|
6191
6190
|
utcHours: [],
|
|
6192
6191
|
weatherUrls: [],
|
|
@@ -6207,14 +6206,15 @@ const pM = {
|
|
|
6207
6206
|
swellDir: [],
|
|
6208
6207
|
swellPeriod: [],
|
|
6209
6208
|
currentSpeed: [],
|
|
6210
|
-
currentDir: []
|
|
6209
|
+
currentDir: [],
|
|
6210
|
+
seaLevel: [],
|
|
6211
|
+
seaTemp: []
|
|
6211
6212
|
};
|
|
6212
6213
|
for (let i0 = 0; i0 < 8; i0++) {
|
|
6213
|
-
const q0 =
|
|
6214
|
-
debugger;
|
|
6214
|
+
const q0 = _0(this.ts).tz(this.positionGmt).add(3 * i0, "h").format();
|
|
6215
6215
|
this.tableData.hours.push(q0);
|
|
6216
|
-
const
|
|
6217
|
-
this.tableData.weatherUrls.push((p =
|
|
6216
|
+
const I = ((O = D0.pickHourly(this.meteoData, q0)) == null ? void 0 : O[0]) || {};
|
|
6217
|
+
this.tableData.weatherUrls.push((p = I.weather) == null ? void 0 : p.url), this.tableData.temp.push(this.roundPrecision((o = I.weather) == null ? void 0 : o.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((t = (e = I.weather) == null ? void 0 : e.precip) == null ? void 0 : t.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((r = (q = I.weather) == null ? void 0 : q.precip) == null ? void 0 : r.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((a = I.weather) == null ? void 0 : a.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((L = (i = I.weather) == null ? void 0 : i.wind) == null ? void 0 : L.kts, 1) ?? "-"), this.tableData.windDir.push((h = (n = I.weather) == null ? void 0 : n.wind) == null ? void 0 : h.bearing), this.tableData.windGust.push(this.roundPrecision((d = (u = I.weather) == null ? void 0 : u.wind) == null ? void 0 : d.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((R = (m = I.wave) == null ? void 0 : m.sig) == null ? void 0 : R.height, 1) ?? "-"), this.tableData.sigwaveDir.push((C = (g = I.wave) == null ? void 0 : g.sig) == null ? void 0 : C.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((B = (y = I.wave) == null ? void 0 : y.wd) == null ? void 0 : B.height, 1) ?? "-"), this.tableData.windwaveDir.push(($ = (_ = I.wave) == null ? void 0 : _.wd) == null ? void 0 : $.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((M0 = (Y = I.wave) == null ? void 0 : Y.wd) == null ? void 0 : M0.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((W0 = (t0 = I.wave) == null ? void 0 : t0.swell) == null ? void 0 : W0.height, 1) ?? "-"), this.tableData.swellDir.push((a0 = (s0 = I.wave) == null ? void 0 : s0.swell) == null ? void 0 : a0.bearing), this.tableData.swellPeriod.push(this.roundPrecision((b0 = (d0 = I.wave) == null ? void 0 : d0.swell) == null ? void 0 : b0.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((l0 = I.current) == null ? void 0 : l0.speed, 1) ?? "-"), this.tableData.currentDir.push((f0 = I.current) == null ? void 0 : f0.bearing), this.tableData.seaLevel.push(this.roundPrecision(I.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(I.sst, 1) ?? "-");
|
|
6218
6218
|
}
|
|
6219
6219
|
},
|
|
6220
6220
|
handleSelectTab(z) {
|
|
@@ -6248,14 +6248,17 @@ const pM = {
|
|
|
6248
6248
|
}, oM = { class: "meteo-box" }, cM = { class: "header-box flex-between" }, eM = { class: "flex-center" }, AM = { class: "lnglat" }, tM = { class: "main-box" }, aM = { class: "summary-row flex-between" }, qM = { class: "summary flex-center" }, iM = ["src"], rM = { class: "temp" }, nM = { class: "des info" }, dM = { class: "flex-start" }, WM = { class: "flex-start" }, sM = { class: "flex-start" }, lM = { class: "date flex-col-center-end" }, fM = { class: "" }, uM = { class: "" }, LM = { class: "detail-box" }, RM = { class: "menu-header flex-start" }, hM = {
|
|
6249
6249
|
key: 0,
|
|
6250
6250
|
class: "basic-table"
|
|
6251
|
-
}, mM = { class: "
|
|
6251
|
+
}, mM = { class: "hour" }, NM = { class: "hour" }, BM = { class: "icon" }, yM = ["src"], gM = { class: "text" }, XM = { class: "text" }, vM = { class: "text" }, TM = { class: "text" }, wM = {
|
|
6252
6252
|
key: 1,
|
|
6253
6253
|
class: "wave-current-table"
|
|
6254
|
-
}, CM = { class: "
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
|
|
6254
|
+
}, CM = { class: "hour" }, _M = { class: "hour" }, xM = { class: "icon" }, SM = ["src"], EM = { class: "text" }, PM = { class: "text" }, kM = { class: "text" }, DM = { class: "text" }, IM = {
|
|
6255
|
+
key: 2,
|
|
6256
|
+
class: "sea-table"
|
|
6257
|
+
}, jM = { class: "hour" }, FM = { class: "hour" }, UM = { class: "icon" }, HM = ["src"], GM = { class: "text" }, VM = { class: "text" };
|
|
6258
|
+
function KM(z, M, b, O, p, o) {
|
|
6259
|
+
var q, r, a, i, L, n, h, u, d, m, R, g, C, y;
|
|
6260
|
+
const e = x("LocationFilled"), t = x("ElIcon");
|
|
6261
|
+
return l(), f("div", null, [
|
|
6259
6262
|
T0(c("div", OM, [
|
|
6260
6263
|
c("div", oM, [
|
|
6261
6264
|
c("div", cM, [
|
|
@@ -6266,11 +6269,11 @@ function IM(z, M, b, O, p, o) {
|
|
|
6266
6269
|
]),
|
|
6267
6270
|
_: 1
|
|
6268
6271
|
}),
|
|
6269
|
-
c("div", AM,
|
|
6272
|
+
c("div", AM, w(o.computeLat((q = p.meteoData) == null ? void 0 : q.lat)) + "," + w(o.computeLng((r = p.meteoData) == null ? void 0 : r.lng)), 1)
|
|
6270
6273
|
]),
|
|
6271
6274
|
c("div", {
|
|
6272
6275
|
class: "iconfont close",
|
|
6273
|
-
onClick: M[0] || (M[0] = (
|
|
6276
|
+
onClick: M[0] || (M[0] = (B) => p.showMeteo = !1)
|
|
6274
6277
|
}, "")
|
|
6275
6278
|
]),
|
|
6276
6279
|
c("div", tM, [
|
|
@@ -6283,297 +6286,391 @@ function IM(z, M, b, O, p, o) {
|
|
|
6283
6286
|
}, null, 8, iM),
|
|
6284
6287
|
c("div", rM, [
|
|
6285
6288
|
c("span", null, [
|
|
6286
|
-
|
|
6287
|
-
M[
|
|
6289
|
+
Z(w(o.roundPrecision((n = (L = p.currentHourData) == null ? void 0 : L.weather) == null ? void 0 : n.temp, 0)), 1),
|
|
6290
|
+
M[5] || (M[5] = c("span", { style: { "font-size": "14px" } }, "°C", -1))
|
|
6288
6291
|
])
|
|
6289
6292
|
]),
|
|
6290
6293
|
c("div", nM, [
|
|
6291
6294
|
c("div", dM, [
|
|
6292
|
-
M[
|
|
6293
|
-
c("span", null,
|
|
6295
|
+
M[6] || (M[6] = c("label", null, "Precip : ", -1)),
|
|
6296
|
+
c("span", null, w(o.roundPrecision((d = (u = (h = p.currentHourData) == null ? void 0 : h.weather) == null ? void 0 : u.precip) == null ? void 0 : d.sum, 0)) + " mm", 1)
|
|
6294
6297
|
]),
|
|
6295
6298
|
c("div", WM, [
|
|
6296
|
-
M[
|
|
6297
|
-
c("span", null,
|
|
6299
|
+
M[7] || (M[7] = c("label", null, "Visibility : ", -1)),
|
|
6300
|
+
c("span", null, w(o.roundPrecision((R = (m = p.currentHourData) == null ? void 0 : m.weather) == null ? void 0 : R.visibility, 0)) + " nm", 1)
|
|
6298
6301
|
]),
|
|
6299
6302
|
c("div", sM, [
|
|
6300
|
-
M[
|
|
6301
|
-
c("span", null,
|
|
6303
|
+
M[8] || (M[8] = c("label", null, "Wind : ", -1)),
|
|
6304
|
+
c("span", null, w(o.roundPrecision((y = (C = (g = p.currentHourData) == null ? void 0 : g.weather) == null ? void 0 : C.wind) == null ? void 0 : y.kts, 1)) + " kts", 1)
|
|
6302
6305
|
])
|
|
6303
6306
|
])
|
|
6304
6307
|
]),
|
|
6305
6308
|
c("div", lM, [
|
|
6306
|
-
c("div", fM,
|
|
6307
|
-
c("div", uM,
|
|
6309
|
+
c("div", fM, w(p.localDate), 1),
|
|
6310
|
+
c("div", uM, w(p.positionGmt), 1)
|
|
6308
6311
|
])
|
|
6309
6312
|
]),
|
|
6310
6313
|
c("div", LM, [
|
|
6311
6314
|
c("div", RM, [
|
|
6312
6315
|
c("div", {
|
|
6313
|
-
class:
|
|
6314
|
-
onClick: M[1] || (M[1] =
|
|
6316
|
+
class: V(["menu-item", p.activeIndex === 1 ? "active" : ""]),
|
|
6317
|
+
onClick: M[1] || (M[1] = v0((B) => o.handleSelectTab(1), ["prevent"]))
|
|
6315
6318
|
}, "Basis", 2),
|
|
6316
6319
|
c("div", {
|
|
6317
|
-
class:
|
|
6318
|
-
onClick: M[2] || (M[2] =
|
|
6319
|
-
}, "Wave & Current", 2)
|
|
6320
|
+
class: V(["menu-item", p.activeIndex === 2 ? "active" : ""]),
|
|
6321
|
+
onClick: M[2] || (M[2] = v0((B) => o.handleSelectTab(2), ["prevent"]))
|
|
6322
|
+
}, "Wave & Current", 2),
|
|
6323
|
+
c("div", {
|
|
6324
|
+
class: V(["menu-item", p.activeIndex === 3 ? "active" : ""]),
|
|
6325
|
+
onClick: M[3] || (M[3] = v0((B) => o.handleSelectTab(3), ["prevent"]))
|
|
6326
|
+
}, "Sea Surface", 2)
|
|
6320
6327
|
]),
|
|
6321
|
-
p.activeIndex === 1 ? (
|
|
6328
|
+
p.activeIndex === 1 ? (l(), f("table", hM, [
|
|
6322
6329
|
c("tr", mM, [
|
|
6323
|
-
M[
|
|
6330
|
+
M[9] || (M[9] = c("th", {
|
|
6324
6331
|
rowspan: "1",
|
|
6325
6332
|
colspan: "1",
|
|
6326
6333
|
class: "tr-title"
|
|
6327
6334
|
}, [
|
|
6328
|
-
|
|
6329
|
-
c("span", { class: "unit" })
|
|
6335
|
+
Z("Hours"),
|
|
6336
|
+
c("span", { class: "unit" }, "(LT)")
|
|
6330
6337
|
], -1)),
|
|
6331
|
-
(
|
|
6338
|
+
(l(!0), f(G, null, J(p.tableData.hours, (B) => (l(), f("th", {
|
|
6332
6339
|
rowspan: "1",
|
|
6333
6340
|
colspan: "1",
|
|
6334
6341
|
key: Math.random()
|
|
6335
|
-
},
|
|
6342
|
+
}, w(o.computeHourL(B)), 1))), 128))
|
|
6336
6343
|
]),
|
|
6337
6344
|
c("tr", NM, [
|
|
6338
|
-
M[
|
|
6345
|
+
M[10] || (M[10] = c("th", {
|
|
6339
6346
|
rowspan: "1",
|
|
6340
6347
|
colspan: "1",
|
|
6341
6348
|
class: "tr-title"
|
|
6342
|
-
},
|
|
6343
|
-
|
|
6349
|
+
}, [
|
|
6350
|
+
Z("UTC"),
|
|
6351
|
+
c("span", { class: "unit" })
|
|
6352
|
+
], -1)),
|
|
6353
|
+
(l(!0), f(G, null, J(p.tableData.hours, (B) => (l(), f("th", {
|
|
6344
6354
|
rowspan: "1",
|
|
6345
6355
|
colspan: "1",
|
|
6346
6356
|
key: Math.random()
|
|
6347
|
-
},
|
|
6357
|
+
}, w(o.computeHourZ(B)), 1))), 128))
|
|
6348
6358
|
]),
|
|
6349
6359
|
c("tr", BM, [
|
|
6350
|
-
M[
|
|
6360
|
+
M[11] || (M[11] = c("th", {
|
|
6351
6361
|
rowspan: "1",
|
|
6352
6362
|
colspan: "1",
|
|
6353
6363
|
class: "tr-title"
|
|
6354
6364
|
}, null, -1)),
|
|
6355
|
-
(
|
|
6365
|
+
(l(!0), f(G, null, J(p.tableData.weatherUrls, (B) => (l(), f("th", {
|
|
6356
6366
|
rowspan: "1",
|
|
6357
6367
|
colspan: "1",
|
|
6358
6368
|
key: Math.random()
|
|
6359
6369
|
}, [
|
|
6360
6370
|
c("img", {
|
|
6361
6371
|
class: "iconfont weather-icon",
|
|
6362
|
-
src:
|
|
6372
|
+
src: B
|
|
6363
6373
|
}, null, 8, yM)
|
|
6364
6374
|
]))), 128))
|
|
6365
6375
|
]),
|
|
6366
6376
|
c("tr", gM, [
|
|
6367
|
-
M[
|
|
6377
|
+
M[12] || (M[12] = c("td", {
|
|
6368
6378
|
rowspan: "1",
|
|
6369
6379
|
colspan: "1",
|
|
6370
6380
|
class: "tr-title"
|
|
6371
6381
|
}, [
|
|
6372
|
-
|
|
6382
|
+
Z("Temp"),
|
|
6373
6383
|
c("span", { class: "unit" }, "°C")
|
|
6374
6384
|
], -1)),
|
|
6375
|
-
(
|
|
6385
|
+
(l(!0), f(G, null, J(p.tableData.temp, (B) => (l(), f("td", {
|
|
6376
6386
|
rowspan: "1",
|
|
6377
6387
|
colspan: "1",
|
|
6378
6388
|
key: Math.random()
|
|
6379
|
-
},
|
|
6389
|
+
}, w(B), 1))), 128))
|
|
6380
6390
|
]),
|
|
6381
6391
|
c("tr", XM, [
|
|
6382
|
-
M[
|
|
6392
|
+
M[13] || (M[13] = c("td", {
|
|
6383
6393
|
rowspan: "1",
|
|
6384
6394
|
colspan: "1",
|
|
6385
6395
|
class: "tr-title"
|
|
6386
6396
|
}, [
|
|
6387
|
-
|
|
6397
|
+
Z("Precip"),
|
|
6388
6398
|
c("span", { class: "unit" }, "mm")
|
|
6389
6399
|
], -1)),
|
|
6390
|
-
(
|
|
6400
|
+
(l(!0), f(G, null, J(p.tableData.precip1h, (B) => (l(), f("td", {
|
|
6391
6401
|
rowspan: "1",
|
|
6392
6402
|
colspan: "1",
|
|
6393
6403
|
key: Math.random()
|
|
6394
|
-
},
|
|
6404
|
+
}, w(B), 1))), 128))
|
|
6395
6405
|
]),
|
|
6396
6406
|
c("tr", vM, [
|
|
6397
|
-
M[
|
|
6407
|
+
M[14] || (M[14] = c("td", {
|
|
6398
6408
|
rowspan: "1",
|
|
6399
6409
|
colspan: "1",
|
|
6400
6410
|
class: "tr-title"
|
|
6401
6411
|
}, [
|
|
6402
|
-
|
|
6412
|
+
Z("Visibility"),
|
|
6403
6413
|
c("span", { class: "unit" }, "nm")
|
|
6404
6414
|
], -1)),
|
|
6405
|
-
(
|
|
6415
|
+
(l(!0), f(G, null, J(p.tableData.visibility, (B) => (l(), f("td", {
|
|
6406
6416
|
rowspan: "1",
|
|
6407
6417
|
colspan: "1",
|
|
6408
6418
|
key: Math.random()
|
|
6409
|
-
},
|
|
6419
|
+
}, w(B), 1))), 128))
|
|
6410
6420
|
]),
|
|
6411
6421
|
c("tr", TM, [
|
|
6412
|
-
M[
|
|
6422
|
+
M[15] || (M[15] = c("td", {
|
|
6413
6423
|
rowspan: "1",
|
|
6414
6424
|
colspan: "1",
|
|
6415
6425
|
class: "tr-title"
|
|
6416
6426
|
}, [
|
|
6417
|
-
|
|
6427
|
+
Z("Wind"),
|
|
6418
6428
|
c("span", { class: "unit" }, "kts")
|
|
6419
6429
|
], -1)),
|
|
6420
|
-
(
|
|
6430
|
+
(l(!0), f(G, null, J(p.tableData.windSpeed, (B, _) => (l(), f("td", {
|
|
6421
6431
|
rowspan: "1",
|
|
6422
6432
|
colspan: "1",
|
|
6423
6433
|
key: Math.random()
|
|
6424
6434
|
}, [
|
|
6425
|
-
|
|
6435
|
+
isNaN(p.tableData.windDir[_]) ? F("", !0) : (l(), f("span", {
|
|
6436
|
+
key: 0,
|
|
6426
6437
|
class: "iconfont icon blue",
|
|
6427
|
-
style:
|
|
6428
|
-
}, "", 4),
|
|
6429
|
-
c("span", null,
|
|
6438
|
+
style: z0({ display: "inline-block", transform: `rotate(${p.tableData.windDir[_]}deg)` })
|
|
6439
|
+
}, "", 4)),
|
|
6440
|
+
c("span", null, w(B), 1)
|
|
6430
6441
|
]))), 128))
|
|
6431
6442
|
])
|
|
6432
|
-
])) :
|
|
6433
|
-
p.activeIndex === 2 ? (
|
|
6443
|
+
])) : F("", !0),
|
|
6444
|
+
p.activeIndex === 2 ? (l(), f("table", wM, [
|
|
6434
6445
|
c("tr", CM, [
|
|
6435
|
-
M[
|
|
6446
|
+
M[16] || (M[16] = c("th", {
|
|
6436
6447
|
rowspan: "1",
|
|
6437
6448
|
colspan: "1",
|
|
6438
6449
|
class: "tr-title"
|
|
6439
6450
|
}, [
|
|
6440
|
-
|
|
6441
|
-
c("span", { class: "unit" })
|
|
6451
|
+
Z("Hours"),
|
|
6452
|
+
c("span", { class: "unit" }, "(LT)")
|
|
6442
6453
|
], -1)),
|
|
6443
|
-
(
|
|
6454
|
+
(l(!0), f(G, null, J(p.tableData.hours, (B) => (l(), f("th", {
|
|
6444
6455
|
rowspan: "1",
|
|
6445
6456
|
colspan: "1",
|
|
6446
6457
|
key: Math.random()
|
|
6447
|
-
},
|
|
6458
|
+
}, w(o.computeHourL(B)), 1))), 128))
|
|
6448
6459
|
]),
|
|
6449
6460
|
c("tr", _M, [
|
|
6450
|
-
M[
|
|
6461
|
+
M[17] || (M[17] = c("th", {
|
|
6451
6462
|
rowspan: "1",
|
|
6452
|
-
colspan: "1"
|
|
6453
|
-
|
|
6454
|
-
|
|
6463
|
+
colspan: "1",
|
|
6464
|
+
class: "tr-title"
|
|
6465
|
+
}, [
|
|
6466
|
+
Z("UTC"),
|
|
6467
|
+
c("span", { class: "unit" })
|
|
6468
|
+
], -1)),
|
|
6469
|
+
(l(!0), f(G, null, J(p.tableData.hours, (B) => (l(), f("th", {
|
|
6455
6470
|
rowspan: "1",
|
|
6456
6471
|
colspan: "1",
|
|
6457
6472
|
key: Math.random()
|
|
6458
|
-
},
|
|
6473
|
+
}, w(o.computeHourZ(B)), 1))), 128))
|
|
6459
6474
|
]),
|
|
6460
6475
|
c("tr", xM, [
|
|
6461
|
-
M[
|
|
6476
|
+
M[18] || (M[18] = c("th", {
|
|
6462
6477
|
rowspan: "1",
|
|
6463
6478
|
colspan: "1"
|
|
6464
6479
|
}, null, -1)),
|
|
6465
|
-
(
|
|
6480
|
+
(l(!0), f(G, null, J(p.tableData.weatherUrls, (B) => (l(), f("th", {
|
|
6466
6481
|
rowspan: "1",
|
|
6467
6482
|
colspan: "1",
|
|
6468
6483
|
key: Math.random()
|
|
6469
6484
|
}, [
|
|
6470
6485
|
c("img", {
|
|
6471
6486
|
class: "iconfont weather-icon",
|
|
6472
|
-
src:
|
|
6487
|
+
src: B
|
|
6473
6488
|
}, null, 8, SM)
|
|
6474
6489
|
]))), 128))
|
|
6475
6490
|
]),
|
|
6476
6491
|
c("tr", EM, [
|
|
6477
|
-
M[
|
|
6492
|
+
M[19] || (M[19] = c("td", {
|
|
6478
6493
|
rowspan: "1",
|
|
6479
6494
|
colspan: "1",
|
|
6480
6495
|
class: "tr-title"
|
|
6481
6496
|
}, [
|
|
6482
|
-
|
|
6497
|
+
Z("Sig Wave"),
|
|
6483
6498
|
c("span", { class: "unit" }, "m")
|
|
6484
6499
|
], -1)),
|
|
6485
|
-
(
|
|
6500
|
+
(l(!0), f(G, null, J(p.tableData.sigwaveHeight, (B, _) => (l(), f("td", {
|
|
6486
6501
|
rowspan: "1",
|
|
6487
6502
|
colspan: "1",
|
|
6488
6503
|
key: Math.random()
|
|
6489
6504
|
}, [
|
|
6490
|
-
|
|
6505
|
+
isNaN(p.tableData.sigwaveDir[_]) ? F("", !0) : (l(), f("span", {
|
|
6506
|
+
key: 0,
|
|
6491
6507
|
class: "iconfont icon blue",
|
|
6492
|
-
style:
|
|
6493
|
-
}, "", 4),
|
|
6494
|
-
c("span", null,
|
|
6508
|
+
style: z0({ display: "inline-block", transform: `rotate(${p.tableData.sigwaveDir[_]}deg)` })
|
|
6509
|
+
}, "", 4)),
|
|
6510
|
+
c("span", null, w(B), 1)
|
|
6495
6511
|
]))), 128))
|
|
6496
6512
|
]),
|
|
6497
6513
|
c("tr", PM, [
|
|
6498
|
-
M[
|
|
6514
|
+
M[20] || (M[20] = c("td", {
|
|
6499
6515
|
rowspan: "1",
|
|
6500
6516
|
colspan: "1",
|
|
6501
6517
|
class: "tr-title"
|
|
6502
6518
|
}, [
|
|
6503
|
-
|
|
6519
|
+
Z("Wind Wave"),
|
|
6504
6520
|
c("span", { class: "unit" }, "m")
|
|
6505
6521
|
], -1)),
|
|
6506
|
-
(
|
|
6522
|
+
(l(!0), f(G, null, J(p.tableData.windwaveHeight, (B, _) => (l(), f("td", {
|
|
6507
6523
|
rowspan: "1",
|
|
6508
6524
|
colspan: "1",
|
|
6509
6525
|
key: Math.random()
|
|
6510
6526
|
}, [
|
|
6511
|
-
|
|
6527
|
+
isNaN(p.tableData.sigwaveDir[_]) ? F("", !0) : (l(), f("span", {
|
|
6528
|
+
key: 0,
|
|
6512
6529
|
class: "iconfont icon orange",
|
|
6513
|
-
style:
|
|
6514
|
-
}, "", 4),
|
|
6515
|
-
c("span", null,
|
|
6530
|
+
style: z0({ display: "inline-block", transform: `rotate(${p.tableData.sigwaveDir[_]}deg)` })
|
|
6531
|
+
}, "", 4)),
|
|
6532
|
+
c("span", null, w(B), 1)
|
|
6516
6533
|
]))), 128))
|
|
6517
6534
|
]),
|
|
6518
6535
|
c("tr", kM, [
|
|
6519
|
-
M[
|
|
6536
|
+
M[21] || (M[21] = c("td", {
|
|
6520
6537
|
rowspan: "1",
|
|
6521
6538
|
colspan: "1",
|
|
6522
6539
|
class: "tr-title"
|
|
6523
6540
|
}, [
|
|
6524
|
-
|
|
6541
|
+
Z("Swell"),
|
|
6525
6542
|
c("span", { class: "unit" }, "m")
|
|
6526
6543
|
], -1)),
|
|
6527
|
-
(
|
|
6544
|
+
(l(!0), f(G, null, J(p.tableData.swellHeight, (B, _) => (l(), f("td", {
|
|
6528
6545
|
rowspan: "1",
|
|
6529
6546
|
colspan: "1",
|
|
6530
6547
|
key: Math.random()
|
|
6531
6548
|
}, [
|
|
6532
|
-
|
|
6549
|
+
isNaN(p.tableData.swellDir[_]) ? F("", !0) : (l(), f("span", {
|
|
6550
|
+
key: 0,
|
|
6533
6551
|
class: "iconfont icon orange",
|
|
6534
|
-
style:
|
|
6535
|
-
}, "", 4),
|
|
6536
|
-
c("span", null,
|
|
6552
|
+
style: z0({ display: "inline-block", transform: `rotate(${p.tableData.swellDir[_]}deg)` })
|
|
6553
|
+
}, "", 4)),
|
|
6554
|
+
c("span", null, w(B), 1)
|
|
6537
6555
|
]))), 128))
|
|
6538
6556
|
]),
|
|
6539
6557
|
c("tr", DM, [
|
|
6540
|
-
M[
|
|
6558
|
+
M[22] || (M[22] = c("td", {
|
|
6541
6559
|
rowspan: "1",
|
|
6542
6560
|
colspan: "1",
|
|
6543
6561
|
class: "tr-title"
|
|
6544
6562
|
}, [
|
|
6545
|
-
|
|
6563
|
+
Z("Current"),
|
|
6546
6564
|
c("span", { class: "unit" }, "kts")
|
|
6547
6565
|
], -1)),
|
|
6548
|
-
(
|
|
6566
|
+
(l(!0), f(G, null, J(p.tableData.currentSpeed, (B, _) => (l(), f("td", {
|
|
6549
6567
|
rowspan: "1",
|
|
6550
6568
|
colspan: "1",
|
|
6551
6569
|
key: Math.random()
|
|
6552
6570
|
}, [
|
|
6553
|
-
|
|
6571
|
+
isNaN(p.tableData.currentDir[_]) ? F("", !0) : (l(), f("span", {
|
|
6572
|
+
key: 0,
|
|
6554
6573
|
class: "iconfont icon gray",
|
|
6555
|
-
style:
|
|
6556
|
-
}, "", 4),
|
|
6557
|
-
c("span", null,
|
|
6574
|
+
style: z0({ display: "inline-block", transform: `rotate(${p.tableData.currentDir[_]}deg)` })
|
|
6575
|
+
}, "", 4)),
|
|
6576
|
+
c("span", null, w(B), 1)
|
|
6577
|
+
]))), 128))
|
|
6578
|
+
])
|
|
6579
|
+
])) : F("", !0),
|
|
6580
|
+
p.activeIndex === 3 ? (l(), f("table", IM, [
|
|
6581
|
+
c("tr", jM, [
|
|
6582
|
+
M[23] || (M[23] = c("th", {
|
|
6583
|
+
rowspan: "1",
|
|
6584
|
+
colspan: "1",
|
|
6585
|
+
class: "tr-title"
|
|
6586
|
+
}, [
|
|
6587
|
+
Z("Hours"),
|
|
6588
|
+
c("span", { class: "unit" }, "(LT)")
|
|
6589
|
+
], -1)),
|
|
6590
|
+
(l(!0), f(G, null, J(p.tableData.hours, (B) => (l(), f("th", {
|
|
6591
|
+
rowspan: "1",
|
|
6592
|
+
colspan: "1",
|
|
6593
|
+
key: Math.random()
|
|
6594
|
+
}, w(o.computeHourL(B)), 1))), 128))
|
|
6595
|
+
]),
|
|
6596
|
+
c("tr", FM, [
|
|
6597
|
+
M[24] || (M[24] = c("th", {
|
|
6598
|
+
rowspan: "1",
|
|
6599
|
+
colspan: "1",
|
|
6600
|
+
class: "tr-title"
|
|
6601
|
+
}, [
|
|
6602
|
+
Z("UTC"),
|
|
6603
|
+
c("span", { class: "unit" })
|
|
6604
|
+
], -1)),
|
|
6605
|
+
(l(!0), f(G, null, J(p.tableData.hours, (B) => (l(), f("th", {
|
|
6606
|
+
rowspan: "1",
|
|
6607
|
+
colspan: "1",
|
|
6608
|
+
key: Math.random()
|
|
6609
|
+
}, w(o.computeHourZ(B)), 1))), 128))
|
|
6610
|
+
]),
|
|
6611
|
+
c("tr", UM, [
|
|
6612
|
+
M[25] || (M[25] = c("th", {
|
|
6613
|
+
rowspan: "1",
|
|
6614
|
+
colspan: "1",
|
|
6615
|
+
class: "tr-title"
|
|
6616
|
+
}, null, -1)),
|
|
6617
|
+
(l(!0), f(G, null, J(p.tableData.weatherUrls, (B) => (l(), f("th", {
|
|
6618
|
+
rowspan: "1",
|
|
6619
|
+
colspan: "1",
|
|
6620
|
+
key: Math.random()
|
|
6621
|
+
}, [
|
|
6622
|
+
c("img", {
|
|
6623
|
+
class: "iconfont weather-icon",
|
|
6624
|
+
src: B
|
|
6625
|
+
}, null, 8, HM)
|
|
6558
6626
|
]))), 128))
|
|
6627
|
+
]),
|
|
6628
|
+
c("tr", GM, [
|
|
6629
|
+
M[26] || (M[26] = c("td", {
|
|
6630
|
+
rowspan: "1",
|
|
6631
|
+
colspan: "1",
|
|
6632
|
+
class: "tr-title"
|
|
6633
|
+
}, [
|
|
6634
|
+
Z("SeaLevel"),
|
|
6635
|
+
c("span", { class: "unit" }, "°C")
|
|
6636
|
+
], -1)),
|
|
6637
|
+
(l(!0), f(G, null, J(p.tableData.seaLevel, (B) => (l(), f("td", {
|
|
6638
|
+
rowspan: "1",
|
|
6639
|
+
colspan: "1",
|
|
6640
|
+
key: Math.random()
|
|
6641
|
+
}, w(B), 1))), 128))
|
|
6642
|
+
]),
|
|
6643
|
+
c("tr", VM, [
|
|
6644
|
+
M[27] || (M[27] = c("td", {
|
|
6645
|
+
rowspan: "1",
|
|
6646
|
+
colspan: "1",
|
|
6647
|
+
class: "tr-title"
|
|
6648
|
+
}, [
|
|
6649
|
+
Z("SeaTemp"),
|
|
6650
|
+
c("span", { class: "unit" }, "mm")
|
|
6651
|
+
], -1)),
|
|
6652
|
+
(l(!0), f(G, null, J(p.tableData.seaTemp, (B) => (l(), f("td", {
|
|
6653
|
+
rowspan: "1",
|
|
6654
|
+
colspan: "1",
|
|
6655
|
+
key: Math.random()
|
|
6656
|
+
}, w(B), 1))), 128))
|
|
6559
6657
|
])
|
|
6560
|
-
])) :
|
|
6658
|
+
])) : F("", !0)
|
|
6561
6659
|
])
|
|
6562
6660
|
]),
|
|
6563
|
-
|
|
6564
|
-
key: 0,
|
|
6661
|
+
c("div", {
|
|
6565
6662
|
class: "more",
|
|
6566
|
-
onClick: M[
|
|
6567
|
-
}, M[
|
|
6663
|
+
onClick: M[4] || (M[4] = v0((...B) => z.handleMore && z.handleMore(...B), ["prevent"]))
|
|
6664
|
+
}, M[28] || (M[28] = [
|
|
6568
6665
|
c("span", { class: "more" }, "More >>", -1)
|
|
6569
|
-
]))
|
|
6666
|
+
]))
|
|
6570
6667
|
])
|
|
6571
6668
|
], 512), [
|
|
6572
6669
|
[w0, p.showMeteo]
|
|
6573
6670
|
])
|
|
6574
6671
|
]);
|
|
6575
6672
|
}
|
|
6576
|
-
const
|
|
6673
|
+
const JM = /* @__PURE__ */ D(pM, [["render", KM], ["__scopeId", "data-v-bcdcbd77"]]), QM = {
|
|
6577
6674
|
name: "IdmWarZone",
|
|
6578
6675
|
props: {
|
|
6579
6676
|
map: {
|
|
@@ -6663,10 +6760,10 @@ const jM = /* @__PURE__ */ D(pM, [["render", IM], ["__scopeId", "data-v-2c4fcf8e
|
|
|
6663
6760
|
}
|
|
6664
6761
|
}
|
|
6665
6762
|
};
|
|
6666
|
-
function
|
|
6667
|
-
return
|
|
6763
|
+
function $M(z, M, b, O, p, o) {
|
|
6764
|
+
return l(), f("div");
|
|
6668
6765
|
}
|
|
6669
|
-
const
|
|
6766
|
+
const ZM = /* @__PURE__ */ D(QM, [["render", $M]]), YM = {
|
|
6670
6767
|
name: "IdmGmdssArea",
|
|
6671
6768
|
props: {
|
|
6672
6769
|
map: {
|
|
@@ -6786,10 +6883,10 @@ const HM = /* @__PURE__ */ D(FM, [["render", UM]]), GM = {
|
|
|
6786
6883
|
}
|
|
6787
6884
|
}
|
|
6788
6885
|
};
|
|
6789
|
-
function
|
|
6790
|
-
return
|
|
6886
|
+
function Mb(z, M, b, O, p, o) {
|
|
6887
|
+
return l(), f("div");
|
|
6791
6888
|
}
|
|
6792
|
-
const
|
|
6889
|
+
const bb = /* @__PURE__ */ D(YM, [["render", Mb]]), zb = {
|
|
6793
6890
|
name: "IdmEcaZone",
|
|
6794
6891
|
props: {
|
|
6795
6892
|
map: {
|
|
@@ -6877,11 +6974,11 @@ const KM = /* @__PURE__ */ D(GM, [["render", VM]]), JM = {
|
|
|
6877
6974
|
}
|
|
6878
6975
|
}
|
|
6879
6976
|
};
|
|
6880
|
-
function
|
|
6881
|
-
return
|
|
6977
|
+
function pb(z, M, b, O, p, o) {
|
|
6978
|
+
return l(), f("div");
|
|
6882
6979
|
}
|
|
6883
|
-
const
|
|
6884
|
-
const
|
|
6980
|
+
const Ob = /* @__PURE__ */ D(zb, [["render", pb]]);
|
|
6981
|
+
const ob = {
|
|
6885
6982
|
name: "IdmAlertZone",
|
|
6886
6983
|
props: {
|
|
6887
6984
|
map: {
|
|
@@ -7011,10 +7108,10 @@ const ZM = {
|
|
|
7011
7108
|
this.map.getLayer(this.polygonLayer) && this.map.removeLayer(this.polygonLayer), this.map.getLayer(this.polygonLayer + "-border") && this.map.removeLayer(this.polygonLayer + "-border"), this.map.getLayer(this.polygonLabelLayer) && this.map.removeLayer(this.polygonLabelLayer), this.map.getLayer(this.lineLayer) && this.map.removeLayer(this.lineLayer), this.map.getLayer(this.lineLabelLayer) && this.map.removeLayer(this.lineLabelLayer), this.map.getLayer(this.pointLayer) && this.map.removeLayer(this.pointLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
7012
7109
|
}
|
|
7013
7110
|
}
|
|
7014
|
-
},
|
|
7015
|
-
function
|
|
7111
|
+
}, cb = { id: "idm-gl3-zone-info" }, eb = ["innerHTML"];
|
|
7112
|
+
function Ab(z, M, b, O, p, o) {
|
|
7016
7113
|
var e;
|
|
7017
|
-
return T0((
|
|
7114
|
+
return T0((l(), f("div", cb, [
|
|
7018
7115
|
c("div", {
|
|
7019
7116
|
class: "iconfont close",
|
|
7020
7117
|
onClick: M[0] || (M[0] = (t) => p.showZone = !1)
|
|
@@ -7022,13 +7119,13 @@ function bb(z, M, b, O, p, o) {
|
|
|
7022
7119
|
c("div", {
|
|
7023
7120
|
class: "rich-context",
|
|
7024
7121
|
innerHTML: (e = p.form) == null ? void 0 : e.name
|
|
7025
|
-
}, null, 8,
|
|
7122
|
+
}, null, 8, eb)
|
|
7026
7123
|
], 512)), [
|
|
7027
7124
|
[w0, p.showZone]
|
|
7028
7125
|
]);
|
|
7029
7126
|
}
|
|
7030
|
-
const
|
|
7031
|
-
const
|
|
7127
|
+
const tb = /* @__PURE__ */ D(ob, [["render", Ab]]);
|
|
7128
|
+
const ab = {
|
|
7032
7129
|
name: "IdmPort",
|
|
7033
7130
|
props: {
|
|
7034
7131
|
map: {
|
|
@@ -7054,12 +7151,12 @@ const pb = {
|
|
|
7054
7151
|
computed: {
|
|
7055
7152
|
computeLat() {
|
|
7056
7153
|
return function(z) {
|
|
7057
|
-
return
|
|
7154
|
+
return Q.lat2pretty(z, 4).pretty;
|
|
7058
7155
|
};
|
|
7059
7156
|
},
|
|
7060
7157
|
computeLng() {
|
|
7061
7158
|
return function(z) {
|
|
7062
|
-
return
|
|
7159
|
+
return Q.lng2pretty(z, 4).pretty;
|
|
7063
7160
|
};
|
|
7064
7161
|
}
|
|
7065
7162
|
},
|
|
@@ -7120,41 +7217,41 @@ const pb = {
|
|
|
7120
7217
|
this.showPort = !1, this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
7121
7218
|
}
|
|
7122
7219
|
}
|
|
7123
|
-
},
|
|
7220
|
+
}, qb = { id: "port-info" }, ib = { class: "port-box" }, rb = { class: "flex-start" }, nb = { class: "flex-start" }, db = { class: "flex-start" }, Wb = {
|
|
7124
7221
|
class: "flex-start",
|
|
7125
7222
|
style: { "align-items": "flex-start" }
|
|
7126
7223
|
};
|
|
7127
|
-
function
|
|
7128
|
-
return T0((
|
|
7224
|
+
function sb(z, M, b, O, p, o) {
|
|
7225
|
+
return T0((l(), f("div", qb, [
|
|
7129
7226
|
c("div", {
|
|
7130
7227
|
class: "close iconfont",
|
|
7131
7228
|
onClick: M[0] || (M[0] = (e) => p.showPort = !1)
|
|
7132
7229
|
}, ""),
|
|
7133
|
-
c("div",
|
|
7134
|
-
c("div",
|
|
7230
|
+
c("div", ib, [
|
|
7231
|
+
c("div", rb, [
|
|
7135
7232
|
M[2] || (M[2] = c("label", null, "Name : ", -1)),
|
|
7136
7233
|
c("span", {
|
|
7137
7234
|
onClick: M[1] || (M[1] = (...e) => o.handleEmit && o.handleEmit(...e))
|
|
7138
|
-
},
|
|
7235
|
+
}, w(p.form.name), 1)
|
|
7139
7236
|
]),
|
|
7140
|
-
c("div",
|
|
7237
|
+
c("div", nb, [
|
|
7141
7238
|
M[3] || (M[3] = c("label", null, "Position : ", -1)),
|
|
7142
|
-
c("span", null,
|
|
7239
|
+
c("span", null, w(o.computeLat(p.form.lat)) + ", " + w(o.computeLng(p.form.lng)), 1)
|
|
7143
7240
|
]),
|
|
7144
|
-
c("div",
|
|
7241
|
+
c("div", db, [
|
|
7145
7242
|
M[4] || (M[4] = c("label", null, "LoCode : ", -1)),
|
|
7146
|
-
c("span", null,
|
|
7243
|
+
c("span", null, w(p.form.loCode || "-"), 1)
|
|
7147
7244
|
]),
|
|
7148
|
-
c("div",
|
|
7245
|
+
c("div", Wb, [
|
|
7149
7246
|
M[5] || (M[5] = c("label", null, "Region : ", -1)),
|
|
7150
|
-
c("span", null,
|
|
7247
|
+
c("span", null, w(p.form.zoneName || "-"), 1)
|
|
7151
7248
|
])
|
|
7152
7249
|
])
|
|
7153
7250
|
], 512)), [
|
|
7154
7251
|
[w0, p.showPort]
|
|
7155
7252
|
]);
|
|
7156
7253
|
}
|
|
7157
|
-
const
|
|
7254
|
+
const lb = /* @__PURE__ */ D(ab, [["render", sb], ["__scopeId", "data-v-c07e4c45"]]), fb = {
|
|
7158
7255
|
name: "IdmLoadLine",
|
|
7159
7256
|
props: {
|
|
7160
7257
|
map: {
|
|
@@ -7224,10 +7321,10 @@ const qb = /* @__PURE__ */ D(pb, [["render", ab], ["__scopeId", "data-v-c07e4c45
|
|
|
7224
7321
|
}
|
|
7225
7322
|
}
|
|
7226
7323
|
};
|
|
7227
|
-
function
|
|
7228
|
-
return
|
|
7324
|
+
function ub(z, M, b, O, p, o) {
|
|
7325
|
+
return l(), f("div");
|
|
7229
7326
|
}
|
|
7230
|
-
const
|
|
7327
|
+
const Lb = /* @__PURE__ */ D(fb, [["render", ub]]), Rb = {
|
|
7231
7328
|
name: "IdmTimezone",
|
|
7232
7329
|
props: {
|
|
7233
7330
|
map: {
|
|
@@ -7392,10 +7489,10 @@ const nb = /* @__PURE__ */ D(ib, [["render", rb]]), db = {
|
|
|
7392
7489
|
}
|
|
7393
7490
|
}
|
|
7394
7491
|
};
|
|
7395
|
-
function
|
|
7396
|
-
return
|
|
7492
|
+
function hb(z, M, b, O, p, o) {
|
|
7493
|
+
return l(), f("div");
|
|
7397
7494
|
}
|
|
7398
|
-
const
|
|
7495
|
+
const mb = /* @__PURE__ */ D(Rb, [["render", hb]]), Nb = {
|
|
7399
7496
|
name: "IdmVoluntaryReportingArea",
|
|
7400
7497
|
props: {
|
|
7401
7498
|
map: {
|
|
@@ -7483,10 +7580,10 @@ const sb = /* @__PURE__ */ D(db, [["render", Wb]]), lb = {
|
|
|
7483
7580
|
}
|
|
7484
7581
|
}
|
|
7485
7582
|
};
|
|
7486
|
-
function
|
|
7487
|
-
return
|
|
7583
|
+
function Bb(z, M, b, O, p, o) {
|
|
7584
|
+
return l(), f("div");
|
|
7488
7585
|
}
|
|
7489
|
-
const
|
|
7586
|
+
const yb = /* @__PURE__ */ D(Nb, [["render", Bb]]), gb = {
|
|
7490
7587
|
name: "IdmSpecialArea",
|
|
7491
7588
|
props: {
|
|
7492
7589
|
map: {
|
|
@@ -7516,7 +7613,7 @@ const ub = /* @__PURE__ */ D(lb, [["render", fb]]), Lb = {
|
|
|
7516
7613
|
methods: {
|
|
7517
7614
|
handleRender() {
|
|
7518
7615
|
this.map ? (this.handleClear(), this.area && (this.area.features.forEach((z) => {
|
|
7519
|
-
z.geometry.type === "Polygon" && z.geometry.coordinates.forEach((M) =>
|
|
7616
|
+
z.geometry.type === "Polygon" && z.geometry.coordinates.forEach((M) => Q.convertToMonotonicLng2(M));
|
|
7520
7617
|
}), this.map.addSource(this.source, {
|
|
7521
7618
|
type: "geojson",
|
|
7522
7619
|
data: this.area
|
|
@@ -7576,10 +7673,10 @@ const ub = /* @__PURE__ */ D(lb, [["render", fb]]), Lb = {
|
|
|
7576
7673
|
}
|
|
7577
7674
|
}
|
|
7578
7675
|
};
|
|
7579
|
-
function
|
|
7580
|
-
return
|
|
7676
|
+
function Xb(z, M, b, O, p, o) {
|
|
7677
|
+
return l(), f("div");
|
|
7581
7678
|
}
|
|
7582
|
-
const
|
|
7679
|
+
const vb = /* @__PURE__ */ D(gb, [["render", Xb]]), Tb = {
|
|
7583
7680
|
name: "IdmTerminator",
|
|
7584
7681
|
props: {
|
|
7585
7682
|
map: {
|
|
@@ -7628,11 +7725,11 @@ const hb = /* @__PURE__ */ D(Lb, [["render", Rb]]), mb = {
|
|
|
7628
7725
|
}
|
|
7629
7726
|
}
|
|
7630
7727
|
};
|
|
7631
|
-
function
|
|
7632
|
-
return
|
|
7728
|
+
function wb(z, M, b, O, p, o) {
|
|
7729
|
+
return l(), f("div");
|
|
7633
7730
|
}
|
|
7634
|
-
const
|
|
7635
|
-
const
|
|
7731
|
+
const Cb = /* @__PURE__ */ D(Tb, [["render", wb]]);
|
|
7732
|
+
const _b = {
|
|
7636
7733
|
name: "IdmLatLng",
|
|
7637
7734
|
props: {
|
|
7638
7735
|
map: {
|
|
@@ -7690,7 +7787,7 @@ const yb = {
|
|
|
7690
7787
|
this.show ? ((z = this.map) == null || z.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (M = this.map) == null || M.off("zoomend", this.handleZoomEnd));
|
|
7691
7788
|
},
|
|
7692
7789
|
handleMouseMove(z) {
|
|
7693
|
-
const M = z.lngLat, b =
|
|
7790
|
+
const M = z.lngLat, b = Q.lng2pretty(M.lng, 2), O = Q.lat2pretty(M.lat, 2);
|
|
7694
7791
|
this.lngLat = { lng: b, lat: O };
|
|
7695
7792
|
},
|
|
7696
7793
|
handleComputeLatLngs() {
|
|
@@ -7788,18 +7885,18 @@ const yb = {
|
|
|
7788
7885
|
}
|
|
7789
7886
|
}
|
|
7790
7887
|
};
|
|
7791
|
-
function
|
|
7792
|
-
return p.lngLat ? (
|
|
7888
|
+
function xb(z, M, b, O, p, o) {
|
|
7889
|
+
return p.lngLat ? (l(), f("div", {
|
|
7793
7890
|
key: 0,
|
|
7794
7891
|
class: "lat-lng-tip",
|
|
7795
|
-
style:
|
|
7892
|
+
style: z0({ right: p.right + "px", bottom: b.bottom })
|
|
7796
7893
|
}, [
|
|
7797
|
-
c("span", null,
|
|
7894
|
+
c("span", null, w(p.lngLat.lat.pretty), 1),
|
|
7798
7895
|
M[0] || (M[0] = c("span", null, ", ", -1)),
|
|
7799
|
-
c("span", null,
|
|
7800
|
-
], 4)) :
|
|
7896
|
+
c("span", null, w(p.lngLat.lng.pretty), 1)
|
|
7897
|
+
], 4)) : F("", !0);
|
|
7801
7898
|
}
|
|
7802
|
-
const H0 = /* @__PURE__ */ D(
|
|
7899
|
+
const H0 = /* @__PURE__ */ D(_b, [["render", xb], ["__scopeId", "data-v-73241fe7"]]), Sb = {
|
|
7803
7900
|
name: "IdmMeasure",
|
|
7804
7901
|
props: {
|
|
7805
7902
|
map: {
|
|
@@ -7861,24 +7958,24 @@ const H0 = /* @__PURE__ */ D(yb, [["render", gb], ["__scopeId", "data-v-73241fe7
|
|
|
7861
7958
|
var b, O, p, o, e, t, q, r, a, i;
|
|
7862
7959
|
const M = (O = (b = z.target) == null ? void 0 : b._element) == null ? void 0 : O.id;
|
|
7863
7960
|
if ((M == null ? void 0 : M.split("-").length) === 2) {
|
|
7864
|
-
const
|
|
7865
|
-
this.pointMarkers[
|
|
7961
|
+
const L = this.geojson.filter((d) => d.id === M.split("-")[0])[0];
|
|
7962
|
+
this.pointMarkers[L.id].filter((d) => {
|
|
7866
7963
|
var m;
|
|
7867
7964
|
return ((m = d._element) == null ? void 0 : m.id) === M;
|
|
7868
7965
|
})[0].setLngLat([(o = (p = z.target) == null ? void 0 : p._lngLat) == null ? void 0 : o.lng, (t = (e = z.target) == null ? void 0 : e._lngLat) == null ? void 0 : t.lat]);
|
|
7869
7966
|
let h;
|
|
7870
|
-
|
|
7967
|
+
L.features.forEach((d, m) => {
|
|
7871
7968
|
if (d.geometry.type === "Point" && d.properties.id == M.split("-")[1]) {
|
|
7872
7969
|
h = m;
|
|
7873
7970
|
return;
|
|
7874
7971
|
}
|
|
7875
7972
|
});
|
|
7876
|
-
const
|
|
7973
|
+
const u = L.features.filter((d) => d.geometry.type === "Point");
|
|
7877
7974
|
this.handleTmpPointUpdate(
|
|
7878
|
-
|
|
7879
|
-
|
|
7880
|
-
{ lng: (r = (q = z.target) == null ? void 0 : q._lngLat) == null ? void 0 : r.lng, lat: (i = (a = z.target) == null ? void 0 : a._lngLat) == null ? void 0 : i.lat, properties:
|
|
7881
|
-
h ===
|
|
7975
|
+
L,
|
|
7976
|
+
u[h - 1],
|
|
7977
|
+
{ lng: (r = (q = z.target) == null ? void 0 : q._lngLat) == null ? void 0 : r.lng, lat: (i = (a = z.target) == null ? void 0 : a._lngLat) == null ? void 0 : i.lat, properties: u[h].properties },
|
|
7978
|
+
h === u.length - 1 ? void 0 : u[h + 1]
|
|
7882
7979
|
);
|
|
7883
7980
|
}
|
|
7884
7981
|
},
|
|
@@ -7886,13 +7983,13 @@ const H0 = /* @__PURE__ */ D(yb, [["render", gb], ["__scopeId", "data-v-73241fe7
|
|
|
7886
7983
|
var b, O, p, o, e, t, q, r, a, i;
|
|
7887
7984
|
const M = (O = (b = z.target) == null ? void 0 : b._element) == null ? void 0 : O.id;
|
|
7888
7985
|
if ((M == null ? void 0 : M.split("-").length) === 2) {
|
|
7889
|
-
const
|
|
7890
|
-
this.pointMarkers[
|
|
7986
|
+
const L = this.geojson.filter((u) => u.id === M.split("-")[0])[0];
|
|
7987
|
+
this.pointMarkers[L.id].filter((u) => {
|
|
7891
7988
|
var d;
|
|
7892
|
-
return ((d =
|
|
7989
|
+
return ((d = u._element) == null ? void 0 : d.id) === M;
|
|
7893
7990
|
})[0].setLngLat([(o = (p = z.target) == null ? void 0 : p._lngLat) == null ? void 0 : o.lng, (t = (e = z.target) == null ? void 0 : e._lngLat) == null ? void 0 : t.lat]);
|
|
7894
|
-
const h =
|
|
7895
|
-
h.geometry.coordinates = [(r = (q = z.target) == null ? void 0 : q._lngLat) == null ? void 0 : r.lng, (i = (a = z.target) == null ? void 0 : a._lngLat) == null ? void 0 : i.lat],
|
|
7991
|
+
const h = L.features.filter((u) => u.geometry.type === "Point" && u.properties.id == M.split("-")[1])[0];
|
|
7992
|
+
h.geometry.coordinates = [(r = (q = z.target) == null ? void 0 : q._lngLat) == null ? void 0 : r.lng, (i = (a = z.target) == null ? void 0 : a._lngLat) == null ? void 0 : i.lat], L.features = L.features.filter((u) => u.geometry.type === "Point"), this.handlePointUpdate(L);
|
|
7896
7993
|
}
|
|
7897
7994
|
},
|
|
7898
7995
|
handleContextmenu(z) {
|
|
@@ -7940,10 +8037,10 @@ const H0 = /* @__PURE__ */ D(yb, [["render", gb], ["__scopeId", "data-v-73241fe7
|
|
|
7940
8037
|
const O = [];
|
|
7941
8038
|
for (let p = 1; p < M.length; p++) {
|
|
7942
8039
|
const o = M[p - 1], e = M[p], t = o.properties, q = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, r = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, a = u0.calculateDistance(q, r, t.mode === "RL", 2), i = u0.calculateBearing(q, r, t.mode === "RL", 2);
|
|
7943
|
-
b =
|
|
7944
|
-
let
|
|
7945
|
-
t.mode === "RL" ?
|
|
7946
|
-
const n = v.lineString(
|
|
8040
|
+
b = Q.roundPrecision(b + a, 2);
|
|
8041
|
+
let L;
|
|
8042
|
+
t.mode === "RL" ? L = Q.convertToMonotonicLng([q, r]) : L = Q.convertToMonotonicLng(u0.interpolateCoordinates(q, r, 200));
|
|
8043
|
+
const n = v.lineString(L.map((h) => [h.lng, h.lat]));
|
|
7947
8044
|
n.properties.dist = a, n.properties.bearing = i, n.properties.total = b, O.push(n);
|
|
7948
8045
|
}
|
|
7949
8046
|
M.push(...O), z.total = b;
|
|
@@ -7957,17 +8054,17 @@ const H0 = /* @__PURE__ */ D(yb, [["render", gb], ["__scopeId", "data-v-73241fe7
|
|
|
7957
8054
|
const q = M.properties, r = { lng: M.geometry.coordinates[0], lat: M.geometry.coordinates[1] }, a = { lng: b.lng, lat: b.lat };
|
|
7958
8055
|
o = u0.calculateDistance(r, a, q.mode === "RL", 2), e = u0.calculateBearing(r, a, q.mode === "RL", 2);
|
|
7959
8056
|
let i;
|
|
7960
|
-
q.mode === "RL" ? i =
|
|
7961
|
-
const
|
|
7962
|
-
|
|
8057
|
+
q.mode === "RL" ? i = Q.convertToMonotonicLng([r, a]) : i = Q.convertToMonotonicLng(u0.interpolateCoordinates(r, a, 200));
|
|
8058
|
+
const L = v.lineString(i.map((n) => [n.lng, n.lat]));
|
|
8059
|
+
L.properties.dist = o, L.properties.bearing = e, p.features.push(L);
|
|
7963
8060
|
}
|
|
7964
8061
|
if (O) {
|
|
7965
8062
|
const q = b.properties, r = b, a = { lng: O.geometry.coordinates[0], lat: O.geometry.coordinates[1] };
|
|
7966
8063
|
o = u0.calculateDistance(r, a, q.mode === "RL", 2), e = u0.calculateBearing(r, a, q.mode === "RL", 2);
|
|
7967
8064
|
let i;
|
|
7968
|
-
q.mode === "RL" ? i =
|
|
7969
|
-
const
|
|
7970
|
-
|
|
8065
|
+
q.mode === "RL" ? i = Q.convertToMonotonicLng([r, a]) : i = Q.convertToMonotonicLng(u0.interpolateCoordinates(r, a, 200));
|
|
8066
|
+
const L = v.lineString(i.map((n) => [n.lng, n.lat]));
|
|
8067
|
+
L.properties.dist = o, L.properties.bearing = e, p.features.push(L);
|
|
7971
8068
|
}
|
|
7972
8069
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(p) : this.map.addSource(this.tmpSource, {
|
|
7973
8070
|
type: "geojson",
|
|
@@ -8007,7 +8104,7 @@ const H0 = /* @__PURE__ */ D(yb, [["render", gb], ["__scopeId", "data-v-73241fe7
|
|
|
8007
8104
|
}
|
|
8008
8105
|
});
|
|
8009
8106
|
let t;
|
|
8010
|
-
if (O ? t = '<div class="marker-label">Drag and drop</div>' : t = `<div class="marker-label">Tol distance: <b>${
|
|
8107
|
+
if (O ? t = '<div class="marker-label">Drag and drop</div>' : t = `<div class="marker-label">Tol distance: <b>${Q.roundPrecision((z.total ?? 0) + o, 2)}</b>nm, bearing: <b>${e}</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)
|
|
8011
8108
|
this.tipMarker._element.innerHTML = t, this.tipMarker.setLngLat([b.lng, b.lat]);
|
|
8012
8109
|
else {
|
|
8013
8110
|
const q = document.createElement("div");
|
|
@@ -8079,19 +8176,19 @@ const H0 = /* @__PURE__ */ D(yb, [["render", gb], ["__scopeId", "data-v-73241fe7
|
|
|
8079
8176
|
}
|
|
8080
8177
|
},
|
|
8081
8178
|
handleClear(z, M = !0) {
|
|
8082
|
-
var o, e, t, q, r, a, i,
|
|
8179
|
+
var o, e, t, q, r, a, i, L, n;
|
|
8083
8180
|
const b = `${z.id}-${this.source}`, O = `${z.id}-${this.layer}`, p = `${z.id}-${this.labelLayer}`;
|
|
8084
8181
|
(o = this.map) != null && o.getLayer(O) && this.map.removeLayer(O), (e = this.map) != null && e.getLayer(p) && this.map.removeLayer(p), (t = this.map) != null && t.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (q = this.map) != null && q.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (r = this.closeMarkers[z.id]) == null || r.remove(), this.closeMarkers[z.id] = void 0, (a = this.pointMarkers[z.id]) == null || a.forEach((h) => {
|
|
8085
8182
|
h == null || h.remove();
|
|
8086
|
-
}), this.pointMarkers[z.id] = [], (i = this.tipMarker) == null || i.remove(), this.tipMarker = void 0, M && ((
|
|
8183
|
+
}), this.pointMarkers[z.id] = [], (i = this.tipMarker) == null || i.remove(), this.tipMarker = void 0, M && ((L = this.map) != null && L.getSource(b)) && this.map.removeSource(b), M && ((n = this.map) != null && n.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
8087
8184
|
}
|
|
8088
8185
|
}
|
|
8089
8186
|
};
|
|
8090
|
-
function
|
|
8091
|
-
return
|
|
8187
|
+
function Eb(z, M, b, O, p, o) {
|
|
8188
|
+
return l(), f("div");
|
|
8092
8189
|
}
|
|
8093
|
-
const
|
|
8094
|
-
const
|
|
8190
|
+
const Pb = /* @__PURE__ */ D(Sb, [["render", Eb]]);
|
|
8191
|
+
const kb = {
|
|
8095
8192
|
name: "IdmENC",
|
|
8096
8193
|
props: {
|
|
8097
8194
|
map: {
|
|
@@ -8122,8 +8219,8 @@ const wb = {
|
|
|
8122
8219
|
emits: ["enc"],
|
|
8123
8220
|
data() {
|
|
8124
8221
|
return {
|
|
8125
|
-
helper:
|
|
8126
|
-
vendor: this.$attrs.permission &
|
|
8222
|
+
helper: S0,
|
|
8223
|
+
vendor: this.$attrs.permission & S0.LEVEL.Supper ? "hi" : "i4",
|
|
8127
8224
|
right: 10
|
|
8128
8225
|
};
|
|
8129
8226
|
},
|
|
@@ -8143,15 +8240,15 @@ const wb = {
|
|
|
8143
8240
|
}
|
|
8144
8241
|
},
|
|
8145
8242
|
methods: {}
|
|
8146
|
-
},
|
|
8147
|
-
function
|
|
8148
|
-
const e =
|
|
8149
|
-
return b.enabled && b.permission & p.helper.LEVEL.Supper ? (
|
|
8243
|
+
}, Db = { key: 0 }, Ib = { class: "bar-item" };
|
|
8244
|
+
function jb(z, M, b, O, p, o) {
|
|
8245
|
+
const e = x("ElTooltip");
|
|
8246
|
+
return b.enabled && b.permission & p.helper.LEVEL.Supper ? (l(), f("div", Db, [
|
|
8150
8247
|
c("div", {
|
|
8151
8248
|
class: "menu-bar-box",
|
|
8152
|
-
style:
|
|
8249
|
+
style: z0({ position: "absolute", right: p.right + "px", bottom: b.bottom })
|
|
8153
8250
|
}, [
|
|
8154
|
-
c("div",
|
|
8251
|
+
c("div", Ib, [
|
|
8155
8252
|
T(e, {
|
|
8156
8253
|
placement: "left",
|
|
8157
8254
|
effect: "light",
|
|
@@ -8160,7 +8257,7 @@ function xb(z, M, b, O, p, o) {
|
|
|
8160
8257
|
}, {
|
|
8161
8258
|
default: n0(() => [
|
|
8162
8259
|
c("div", {
|
|
8163
|
-
class:
|
|
8260
|
+
class: V(p.vendor === "hi" ? "menu-icon active" : "menu-icon"),
|
|
8164
8261
|
onClick: M[0] || (M[0] = (t) => p.vendor = "hi")
|
|
8165
8262
|
}, M[2] || (M[2] = [
|
|
8166
8263
|
c("span", { class: "iconfont" }, "HI", -1)
|
|
@@ -8176,7 +8273,7 @@ function xb(z, M, b, O, p, o) {
|
|
|
8176
8273
|
}, {
|
|
8177
8274
|
default: n0(() => [
|
|
8178
8275
|
c("div", {
|
|
8179
|
-
class:
|
|
8276
|
+
class: V(p.vendor === "i4" ? "menu-icon active" : "menu-icon"),
|
|
8180
8277
|
onClick: M[1] || (M[1] = (t) => p.vendor = "i4")
|
|
8181
8278
|
}, M[3] || (M[3] = [
|
|
8182
8279
|
c("span", { class: "iconfont" }, "I4", -1)
|
|
@@ -8186,10 +8283,10 @@ function xb(z, M, b, O, p, o) {
|
|
|
8186
8283
|
})
|
|
8187
8284
|
])
|
|
8188
8285
|
], 4)
|
|
8189
|
-
])) :
|
|
8286
|
+
])) : F("", !0);
|
|
8190
8287
|
}
|
|
8191
|
-
const
|
|
8192
|
-
const
|
|
8288
|
+
const Fb = /* @__PURE__ */ D(kb, [["render", jb], ["__scopeId", "data-v-150235f7"]]);
|
|
8289
|
+
const Ub = {
|
|
8193
8290
|
name: "IdmGLV2",
|
|
8194
8291
|
components: {
|
|
8195
8292
|
IdmGlLayer: w1,
|
|
@@ -8208,20 +8305,20 @@ const Eb = {
|
|
|
8208
8305
|
IdmWaterTemp: S2,
|
|
8209
8306
|
IdmTemp: D2,
|
|
8210
8307
|
IdmArctic: U2,
|
|
8211
|
-
IdmWarZone:
|
|
8212
|
-
IdmGmdssArea:
|
|
8213
|
-
IdmEcaZone:
|
|
8214
|
-
IdmAlertZone:
|
|
8215
|
-
IdmPort:
|
|
8216
|
-
IdmLoadLine:
|
|
8217
|
-
IdmTimezone:
|
|
8218
|
-
IdmVRA:
|
|
8219
|
-
IdmSpecialArea:
|
|
8220
|
-
IdmTerminator:
|
|
8308
|
+
IdmWarZone: ZM,
|
|
8309
|
+
IdmGmdssArea: bb,
|
|
8310
|
+
IdmEcaZone: Ob,
|
|
8311
|
+
IdmAlertZone: tb,
|
|
8312
|
+
IdmPort: lb,
|
|
8313
|
+
IdmLoadLine: Lb,
|
|
8314
|
+
IdmTimezone: mb,
|
|
8315
|
+
IdmVRA: yb,
|
|
8316
|
+
IdmSpecialArea: vb,
|
|
8317
|
+
IdmTerminator: Cb,
|
|
8221
8318
|
IdmLatLng: H0,
|
|
8222
|
-
IdmMeasure:
|
|
8223
|
-
IdmPoint:
|
|
8224
|
-
IdmENC:
|
|
8319
|
+
IdmMeasure: Pb,
|
|
8320
|
+
IdmPoint: JM,
|
|
8321
|
+
IdmENC: Fb
|
|
8225
8322
|
},
|
|
8226
8323
|
props: {
|
|
8227
8324
|
map: {
|
|
@@ -8275,7 +8372,7 @@ const Eb = {
|
|
|
8275
8372
|
watch: {
|
|
8276
8373
|
ts: {
|
|
8277
8374
|
handler(z, M) {
|
|
8278
|
-
z && M &&
|
|
8375
|
+
z && M && e0(z).utc().format("yyyy-MM-DD HH") !== e0(M).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
|
|
8279
8376
|
this.handleDateChange({ tropicals: !1 });
|
|
8280
8377
|
});
|
|
8281
8378
|
},
|
|
@@ -8295,10 +8392,10 @@ const Eb = {
|
|
|
8295
8392
|
},
|
|
8296
8393
|
activeWeatherLayers: {
|
|
8297
8394
|
handler() {
|
|
8298
|
-
var z, M, b, O, p, o, e, t, q, r, a, i,
|
|
8395
|
+
var z, M, b, O, p, o, e, t, q, r, a, i, L, n, h, u, d, m;
|
|
8299
8396
|
if (!this.map)
|
|
8300
8397
|
return !1;
|
|
8301
|
-
this.activeWeatherLayers.length > 0 ? ((M = (z = this.map) == null ? void 0 : z.getLayer(this.enc)) == null || M.setLayoutProperty("visibility", "none"), (O = (b = this.map) == null ? void 0 : b.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || O.setLayoutProperty("visibility", "visible"), (o = this.map) != null && o.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((e = this.map) != null && e.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((q = this.map) == null || q.moveLayer((t = this.viewport) == null ? void 0 : t.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (a = this.map) != null && a.getLayer((r = this.viewport) == null ? void 0 : r.particleLayer) && ((i = this.map) != null && i.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((n = this.map) == null || n.moveLayer((
|
|
8398
|
+
this.activeWeatherLayers.length > 0 ? ((M = (z = this.map) == null ? void 0 : z.getLayer(this.enc)) == null || M.setLayoutProperty("visibility", "none"), (O = (b = this.map) == null ? void 0 : b.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || O.setLayoutProperty("visibility", "visible"), (o = this.map) != null && o.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((e = this.map) != null && e.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((q = this.map) == null || q.moveLayer((t = this.viewport) == null ? void 0 : t.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (a = this.map) != null && a.getLayer((r = this.viewport) == null ? void 0 : r.particleLayer) && ((i = this.map) != null && i.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((n = this.map) == null || n.moveLayer((L = this.viewport) == null ? void 0 : L.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : ((u = (h = this.map) == null ? void 0 : h.getLayer(this.enc)) == null || u.setLayoutProperty("visibility", "visible"), (m = (d = this.map) == null ? void 0 : d.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || m.setLayoutProperty("visibility", "none")), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
|
|
8302
8399
|
},
|
|
8303
8400
|
immediate: !0
|
|
8304
8401
|
},
|
|
@@ -8354,55 +8451,55 @@ const Eb = {
|
|
|
8354
8451
|
const M = (/* @__PURE__ */ new Date()).valueOf();
|
|
8355
8452
|
let b = 0, O = 0;
|
|
8356
8453
|
if (this.map) {
|
|
8357
|
-
const
|
|
8454
|
+
const L = ((p = this.map) == null ? void 0 : p.getZoom()) + 1, n = (o = this.map) == null ? void 0 : o.getBounds(), h = `${n._sw.lng},${n._sw.lat},${n._ne.lng},${n._ne.lat}`;
|
|
8358
8455
|
if (this.particleFactor) {
|
|
8359
|
-
const
|
|
8456
|
+
const u = x0.WEATHER_LAYERS.find((d) => {
|
|
8360
8457
|
var m;
|
|
8361
8458
|
return ((m = d.peer) == null ? void 0 : m.weight) === this.particleFactor.weight;
|
|
8362
8459
|
});
|
|
8363
|
-
this.particleFactor.particle ? this.weatherWeight = this.weatherWeight &
|
|
8460
|
+
this.particleFactor.particle ? this.weatherWeight = this.weatherWeight & u.weight ? this.weatherWeight : this.weatherWeight + u.weight : this.weatherWeight = this.weatherWeight & u.weight ? this.weatherWeight - u.weight : this.weatherWeight;
|
|
8364
8461
|
}
|
|
8365
8462
|
if (this.weatherWeight > 0) {
|
|
8366
|
-
let
|
|
8367
|
-
if (z.tropicals || this.weatherWeight & 256 && (d = this.weatherLayers.tropicals, d && (
|
|
8368
|
-
const m = await B0.get(`${this.gateway}/api/arc/weather/layers/links?l=${
|
|
8463
|
+
let u = this.weatherWeight, d;
|
|
8464
|
+
if (z.tropicals || this.weatherWeight & 256 && (d = this.weatherLayers.tropicals, d && (u -= 256, d.version = Math.random() + 1)), u > 0) {
|
|
8465
|
+
const m = await B0.get(`${this.gateway}/api/arc/weather/layers/links?l=${u}&v=${this.source}&z=${L}&bbox=${h}&t=${this.ts}`, {
|
|
8369
8466
|
headers: {
|
|
8370
8467
|
Authorization: this.token || this.defaultMeteoToken
|
|
8371
8468
|
}
|
|
8372
8469
|
});
|
|
8373
8470
|
if (O = (/* @__PURE__ */ new Date()).valueOf() - (M + b), console.log("weather links elapsed: ", O, ", total: ", b += O), ((e = m == null ? void 0 : m.data) == null ? void 0 : e.code) === 0) {
|
|
8374
|
-
const
|
|
8375
|
-
for (const
|
|
8376
|
-
|
|
8377
|
-
B0.get(
|
|
8471
|
+
const R = (t = m == null ? void 0 : m.data) == null ? void 0 : t.data, g = [];
|
|
8472
|
+
for (const y in R)
|
|
8473
|
+
y === "ice-edge" && (R[y] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), y !== "tropicals" && g.push(
|
|
8474
|
+
B0.get(R[y], {
|
|
8378
8475
|
headers: {
|
|
8379
8476
|
Authorization: this.token || this.defaultMeteoToken,
|
|
8380
|
-
key:
|
|
8477
|
+
key: y
|
|
8381
8478
|
},
|
|
8382
|
-
responseType: /\.(jpg|png)$/.test(
|
|
8383
|
-
}).catch((
|
|
8384
|
-
console.log(`[${
|
|
8479
|
+
responseType: /\.(jpg|png)$/.test(R[y]) ? "blob" : "json"
|
|
8480
|
+
}).catch((B) => {
|
|
8481
|
+
console.log(`[${y}] fetch layer error: ${B}`);
|
|
8385
8482
|
})
|
|
8386
8483
|
);
|
|
8387
|
-
const
|
|
8388
|
-
this.weatherLayers = {},
|
|
8389
|
-
var
|
|
8390
|
-
const
|
|
8391
|
-
|
|
8392
|
-
raw:
|
|
8393
|
-
type: ((t0 =
|
|
8484
|
+
const C = await Promise.all(g);
|
|
8485
|
+
this.weatherLayers = {}, C.map((y) => {
|
|
8486
|
+
var $, Y, M0, t0;
|
|
8487
|
+
const B = (($ = y == null ? void 0 : y.data) == null ? void 0 : $.data) || (y == null ? void 0 : y.data), _ = (M0 = (Y = y == null ? void 0 : y.config) == null ? void 0 : Y.headers) == null ? void 0 : M0.key;
|
|
8488
|
+
_ && B && (this.weatherLayers[_] = {
|
|
8489
|
+
raw: B,
|
|
8490
|
+
type: ((t0 = y == null ? void 0 : y.config) == null ? void 0 : t0.responseType) === "blob" ? "image" : "json",
|
|
8394
8491
|
etime: this.ts
|
|
8395
8492
|
});
|
|
8396
|
-
}),
|
|
8493
|
+
}), R.tropicals && B0.get(R.tropicals, {
|
|
8397
8494
|
headers: {
|
|
8398
8495
|
Authorization: this.token || this.defaultMeteoToken,
|
|
8399
8496
|
key: "tropicals"
|
|
8400
8497
|
}
|
|
8401
|
-
}).then((
|
|
8402
|
-
var
|
|
8403
|
-
const
|
|
8404
|
-
this.weatherLayers[
|
|
8405
|
-
data:
|
|
8498
|
+
}).then((y) => {
|
|
8499
|
+
var $, Y, M0;
|
|
8500
|
+
const B = I0.convert2Geojson((($ = y == null ? void 0 : y.data) == null ? void 0 : $.data) || (y == null ? void 0 : y.data)), _ = (M0 = (Y = y == null ? void 0 : y.config) == null ? void 0 : Y.headers) == null ? void 0 : M0.key;
|
|
8501
|
+
this.weatherLayers[_] = {
|
|
8502
|
+
data: B,
|
|
8406
8503
|
active: !0,
|
|
8407
8504
|
cached: !1,
|
|
8408
8505
|
type: "json",
|
|
@@ -8412,20 +8509,20 @@ const Eb = {
|
|
|
8412
8509
|
});
|
|
8413
8510
|
}
|
|
8414
8511
|
if (O = (/* @__PURE__ */ new Date()).valueOf() - (M + b), console.log("weather layers elapsed: ", O, ", total: ", b += O), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
|
|
8415
|
-
const
|
|
8512
|
+
const R = (q = this.weatherLayers["swell-direction"]) == null ? void 0 : q.raw, g = (r = this.weatherLayers["swell-height"]) == null ? void 0 : r.raw;
|
|
8416
8513
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
8417
8514
|
type: "json",
|
|
8418
|
-
direction:
|
|
8419
|
-
height: { raw:
|
|
8515
|
+
direction: R,
|
|
8516
|
+
height: { raw: g },
|
|
8420
8517
|
etime: this.ts
|
|
8421
8518
|
};
|
|
8422
8519
|
}
|
|
8423
8520
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
8424
|
-
const
|
|
8521
|
+
const R = (a = this.weatherLayers["current-direction"]) == null ? void 0 : a.raw, g = (i = this.weatherLayers["current-speed"]) == null ? void 0 : i.raw;
|
|
8425
8522
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
8426
8523
|
type: "json",
|
|
8427
|
-
direction:
|
|
8428
|
-
speed: { raw:
|
|
8524
|
+
direction: R,
|
|
8525
|
+
speed: { raw: g },
|
|
8429
8526
|
etime: this.ts
|
|
8430
8527
|
};
|
|
8431
8528
|
}
|
|
@@ -8462,9 +8559,9 @@ const Eb = {
|
|
|
8462
8559
|
);
|
|
8463
8560
|
const a = await Promise.all(r);
|
|
8464
8561
|
this.otherLayers = { enc: e }, a.map((i) => {
|
|
8465
|
-
var h,
|
|
8466
|
-
const
|
|
8467
|
-
this.otherLayers[n] =
|
|
8562
|
+
var h, u, d;
|
|
8563
|
+
const L = ((h = i == null ? void 0 : i.data) == null ? void 0 : h.data) || (i == null ? void 0 : i.data), n = (d = (u = i == null ? void 0 : i.config) == null ? void 0 : u.headers) == null ? void 0 : d.key;
|
|
8564
|
+
this.otherLayers[n] = L;
|
|
8468
8565
|
});
|
|
8469
8566
|
}
|
|
8470
8567
|
} else if (z.dayNight && o & 1024) {
|
|
@@ -8485,9 +8582,9 @@ const Eb = {
|
|
|
8485
8582
|
})
|
|
8486
8583
|
);
|
|
8487
8584
|
(await Promise.all(r)).map((i) => {
|
|
8488
|
-
var h,
|
|
8489
|
-
const
|
|
8490
|
-
this.otherLayers[n] =
|
|
8585
|
+
var h, u, d;
|
|
8586
|
+
const L = ((h = i == null ? void 0 : i.data) == null ? void 0 : h.data) || (i == null ? void 0 : i.data), n = (d = (u = i == null ? void 0 : i.config) == null ? void 0 : u.headers) == null ? void 0 : d.key;
|
|
8587
|
+
this.otherLayers[n] = L;
|
|
8491
8588
|
});
|
|
8492
8589
|
}
|
|
8493
8590
|
}
|
|
@@ -8542,36 +8639,36 @@ const Eb = {
|
|
|
8542
8639
|
);
|
|
8543
8640
|
},
|
|
8544
8641
|
handleDragEndWithZoom4Json() {
|
|
8545
|
-
var r, a, i,
|
|
8642
|
+
var r, a, i, L;
|
|
8546
8643
|
const z = (/* @__PURE__ */ new Date()).valueOf();
|
|
8547
8644
|
let M = 0, b = 0;
|
|
8548
|
-
const O = (r = this.map) == null ? void 0 : r.getBounds(), p = this.map.getZoom(), o =
|
|
8645
|
+
const O = (r = this.map) == null ? void 0 : r.getBounds(), p = this.map.getZoom(), o = Q.convertToStdLng(O._sw.lng), e = Q.convertToStdLng(O._ne.lng), t = Math.floor(O._sw.lat), q = Math.ceil(O._ne.lat);
|
|
8549
8646
|
for (const n in this.weatherLayers)
|
|
8550
8647
|
if (this.weatherLayers[n].active && this.weatherLayers[n].type === "json") {
|
|
8551
8648
|
this.weatherLayers[n].active = !1, this.weatherLayers[n].version = Math.random() + 1;
|
|
8552
8649
|
let h = [];
|
|
8553
8650
|
if (["swell", "current"].includes(n)) {
|
|
8554
|
-
const
|
|
8555
|
-
for (const d in
|
|
8651
|
+
const u = ((a = this.weatherLayers[n]) == null ? void 0 : a.direction) || {};
|
|
8652
|
+
for (const d in u)
|
|
8556
8653
|
if (d > t && d < q && (!(p <= this.zoom) || d % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8557
|
-
const m =
|
|
8558
|
-
o > e ? m.forEach((
|
|
8559
|
-
var
|
|
8560
|
-
if ((
|
|
8561
|
-
const
|
|
8562
|
-
val:
|
|
8563
|
-
spd: (
|
|
8654
|
+
const m = u[d].lng;
|
|
8655
|
+
o > e ? m.forEach((R, g) => {
|
|
8656
|
+
var C;
|
|
8657
|
+
if ((R >= o && R <= 180 || R >= -180 && R <= e) && (!(p <= this.zoom) || R % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8658
|
+
const y = v.point([R, d], {
|
|
8659
|
+
val: u[d].val[g],
|
|
8660
|
+
spd: (C = u[d].spd) == null ? void 0 : C[g]
|
|
8564
8661
|
});
|
|
8565
|
-
h.push(
|
|
8662
|
+
h.push(y);
|
|
8566
8663
|
}
|
|
8567
|
-
}) : m.forEach((
|
|
8568
|
-
var
|
|
8569
|
-
if (
|
|
8570
|
-
const
|
|
8571
|
-
val:
|
|
8572
|
-
spd: (
|
|
8664
|
+
}) : m.forEach((R, g) => {
|
|
8665
|
+
var C;
|
|
8666
|
+
if (R >= o && R <= e && (!(p <= this.zoom) || R % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8667
|
+
const y = v.point([R, d], {
|
|
8668
|
+
val: u[d].val[g],
|
|
8669
|
+
spd: (C = u[d].spd) == null ? void 0 : C[g]
|
|
8573
8670
|
});
|
|
8574
|
-
h.push(
|
|
8671
|
+
h.push(y);
|
|
8575
8672
|
}
|
|
8576
8673
|
});
|
|
8577
8674
|
}
|
|
@@ -8580,12 +8677,12 @@ const Eb = {
|
|
|
8580
8677
|
if (d) {
|
|
8581
8678
|
if (!d.data) {
|
|
8582
8679
|
const m = [];
|
|
8583
|
-
for (const
|
|
8584
|
-
const
|
|
8585
|
-
for (const
|
|
8680
|
+
for (const R in (i = d.raw) == null ? void 0 : i.LineString) {
|
|
8681
|
+
const g = d.raw.LineString[R];
|
|
8682
|
+
for (const C of g)
|
|
8586
8683
|
m.push(
|
|
8587
|
-
v.lineString(
|
|
8588
|
-
val: Number(
|
|
8684
|
+
v.lineString(C, {
|
|
8685
|
+
val: Number(R)
|
|
8589
8686
|
})
|
|
8590
8687
|
);
|
|
8591
8688
|
d.data = v.featureCollection(m);
|
|
@@ -8602,42 +8699,42 @@ const Eb = {
|
|
|
8602
8699
|
const d = this.weatherLayers[n].speed;
|
|
8603
8700
|
if (d) {
|
|
8604
8701
|
if (!d.data) {
|
|
8605
|
-
const
|
|
8606
|
-
for (const
|
|
8607
|
-
const
|
|
8608
|
-
for (const
|
|
8609
|
-
|
|
8610
|
-
v.polygon(
|
|
8611
|
-
val: Number(
|
|
8702
|
+
const R = [];
|
|
8703
|
+
for (const g in (L = d.raw) == null ? void 0 : L.Polygon) {
|
|
8704
|
+
const C = d.raw.Polygon[g];
|
|
8705
|
+
for (const y of C)
|
|
8706
|
+
R.push(
|
|
8707
|
+
v.polygon(y, {
|
|
8708
|
+
val: Number(g)
|
|
8612
8709
|
})
|
|
8613
8710
|
);
|
|
8614
8711
|
}
|
|
8615
|
-
d.data = v.featureCollection(
|
|
8712
|
+
d.data = v.featureCollection(R);
|
|
8616
8713
|
}
|
|
8617
|
-
const m = p < this.zoom ? d.data.features.filter((
|
|
8714
|
+
const m = p < this.zoom ? d.data.features.filter((R) => R.properties.val > 0.5) : d.data.features;
|
|
8618
8715
|
h = h.concat(m), b = (/* @__PURE__ */ new Date()).valueOf() - (z + M), console.log("speed elapsed: ", b, ", total: ", M += b);
|
|
8619
8716
|
}
|
|
8620
8717
|
}
|
|
8621
8718
|
} else if (n === "wind") {
|
|
8622
|
-
const
|
|
8623
|
-
for (const d in
|
|
8719
|
+
const u = this.weatherLayers.wind.raw;
|
|
8720
|
+
for (const d in u)
|
|
8624
8721
|
if (d > t && d < q && (!(p <= this.zoom) || d % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8625
|
-
const m =
|
|
8626
|
-
o > e ? m.forEach((
|
|
8627
|
-
if ((
|
|
8628
|
-
const
|
|
8629
|
-
val:
|
|
8630
|
-
spd:
|
|
8722
|
+
const m = u[d].lng;
|
|
8723
|
+
o > e ? m.forEach((R, g) => {
|
|
8724
|
+
if ((R >= o && R <= 180 || R >= -180 && R <= e) && (!(p <= this.zoom) || R % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8725
|
+
const C = v.point([R, d], {
|
|
8726
|
+
val: u[d].val[g],
|
|
8727
|
+
spd: u[d].spd[g]
|
|
8631
8728
|
});
|
|
8632
|
-
h.push(
|
|
8729
|
+
h.push(C);
|
|
8633
8730
|
}
|
|
8634
|
-
}) : m.forEach((
|
|
8635
|
-
if (
|
|
8636
|
-
const
|
|
8637
|
-
val:
|
|
8638
|
-
spd:
|
|
8731
|
+
}) : m.forEach((R, g) => {
|
|
8732
|
+
if (R >= o && R <= e && (!(p <= this.zoom) || R % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8733
|
+
const C = v.point([R, d], {
|
|
8734
|
+
val: u[d].val[g],
|
|
8735
|
+
spd: u[d].spd[g]
|
|
8639
8736
|
});
|
|
8640
|
-
h.push(
|
|
8737
|
+
h.push(C);
|
|
8641
8738
|
}
|
|
8642
8739
|
});
|
|
8643
8740
|
}
|
|
@@ -8646,23 +8743,23 @@ const Eb = {
|
|
|
8646
8743
|
if (this.weatherLayers[n].data)
|
|
8647
8744
|
h = this.weatherLayers[n].data;
|
|
8648
8745
|
else {
|
|
8649
|
-
const
|
|
8650
|
-
if (
|
|
8746
|
+
const u = this.weatherLayers[n].raw;
|
|
8747
|
+
if (u) {
|
|
8651
8748
|
const d = [];
|
|
8652
|
-
for (const m in
|
|
8653
|
-
const
|
|
8654
|
-
for (const
|
|
8749
|
+
for (const m in u.Polygon) {
|
|
8750
|
+
const R = u.Polygon[m];
|
|
8751
|
+
for (const g of R)
|
|
8655
8752
|
d.push(
|
|
8656
|
-
v.polygon(
|
|
8753
|
+
v.polygon(g, {
|
|
8657
8754
|
val: Number(m)
|
|
8658
8755
|
})
|
|
8659
8756
|
);
|
|
8660
8757
|
}
|
|
8661
|
-
for (const m in
|
|
8662
|
-
const
|
|
8663
|
-
for (const
|
|
8758
|
+
for (const m in u.Point) {
|
|
8759
|
+
const R = u.Point[m];
|
|
8760
|
+
for (const g of R)
|
|
8664
8761
|
d.push(
|
|
8665
|
-
...v.points(
|
|
8762
|
+
...v.points(g, {
|
|
8666
8763
|
val: Number(m)
|
|
8667
8764
|
}).features
|
|
8668
8765
|
);
|
|
@@ -8675,24 +8772,24 @@ const Eb = {
|
|
|
8675
8772
|
if (this.weatherLayers[n].data)
|
|
8676
8773
|
h = this.weatherLayers[n].data;
|
|
8677
8774
|
else {
|
|
8678
|
-
const
|
|
8679
|
-
if (
|
|
8775
|
+
const u = this.weatherLayers[n].raw;
|
|
8776
|
+
if (u) {
|
|
8680
8777
|
const d = [];
|
|
8681
|
-
for (const m in
|
|
8682
|
-
const
|
|
8683
|
-
for (const
|
|
8778
|
+
for (const m in u.LineString) {
|
|
8779
|
+
const R = u.LineString[m];
|
|
8780
|
+
for (const g of R)
|
|
8684
8781
|
d.push(
|
|
8685
|
-
v.lineString(
|
|
8782
|
+
v.lineString(g, {
|
|
8686
8783
|
val: Number(m)
|
|
8687
8784
|
})
|
|
8688
8785
|
);
|
|
8689
8786
|
}
|
|
8690
|
-
for (const m in
|
|
8691
|
-
|
|
8692
|
-
|
|
8693
|
-
v.point([
|
|
8694
|
-
val:
|
|
8695
|
-
type:
|
|
8787
|
+
for (const m in u.Point)
|
|
8788
|
+
u.Point[m].lng.forEach((R, g) => {
|
|
8789
|
+
R = Q.convertToStdLng(R), d.push(
|
|
8790
|
+
v.point([R, m], {
|
|
8791
|
+
val: u.Point[m].val[g],
|
|
8792
|
+
type: u.Point[m].type[g]
|
|
8696
8793
|
})
|
|
8697
8794
|
);
|
|
8698
8795
|
});
|
|
@@ -8704,14 +8801,14 @@ const Eb = {
|
|
|
8704
8801
|
if (this.weatherLayers[n].data)
|
|
8705
8802
|
h = this.weatherLayers[n].data;
|
|
8706
8803
|
else {
|
|
8707
|
-
const
|
|
8708
|
-
if (
|
|
8804
|
+
const u = this.weatherLayers[n].raw;
|
|
8805
|
+
if (u) {
|
|
8709
8806
|
const d = [];
|
|
8710
|
-
for (const m in
|
|
8711
|
-
const
|
|
8712
|
-
for (const
|
|
8807
|
+
for (const m in u.LineString) {
|
|
8808
|
+
const R = u.LineString[m];
|
|
8809
|
+
for (const g of R)
|
|
8713
8810
|
d.push(
|
|
8714
|
-
v.lineString(
|
|
8811
|
+
v.lineString(g, {
|
|
8715
8812
|
val: Number(m)
|
|
8716
8813
|
})
|
|
8717
8814
|
);
|
|
@@ -8729,7 +8826,7 @@ const Eb = {
|
|
|
8729
8826
|
this.weatherLayers[z].active && this.weatherLayers[z].type === "image" && (this.weatherLayers[z].active = !0, this.weatherLayers[z].version = Math.random() + 1);
|
|
8730
8827
|
},
|
|
8731
8828
|
handleBboxClip(z, M) {
|
|
8732
|
-
const b = [], O =
|
|
8829
|
+
const b = [], O = Q.convertToStdLng(M._sw.lng), p = Q.convertToStdLng(M._ne.lng);
|
|
8733
8830
|
return z.features.forEach((o) => {
|
|
8734
8831
|
if (o.geometry.type !== "Point")
|
|
8735
8832
|
if (O > p) {
|
|
@@ -8754,8 +8851,8 @@ const Eb = {
|
|
|
8754
8851
|
this.handleBeforeLayerToggle();
|
|
8755
8852
|
},
|
|
8756
8853
|
handleBeforeLayerToggle() {
|
|
8757
|
-
var z, M, b, O, p, o, e, t, q, r, a, i,
|
|
8758
|
-
(z = this.map) != null && z.getLayer(this.beforeLayer) && ((M = this.activeWeatherLayers) != null && M.length || (b = this.otherLayers) != null && b["war-zones"] || (O = this.otherLayers) != null && O["gmdss-areas"] || (p = this.otherLayers) != null && p["load-lines"] || (o = this.otherLayers) != null && o["high-risk-area"] || (e = this.otherLayers) != null && e["time-zones"] || (t = this.otherLayers) != null && t.pirates || (q = this.otherLayers) != null && q.ports || (r = this.otherLayers) != null && r.enc || (a = this.otherLayers) != null && a["voluntary-reporting-area"] || (i = this.otherLayers) != null && i["eca-zones"] || (
|
|
8854
|
+
var z, M, b, O, p, o, e, t, q, r, a, i, L;
|
|
8855
|
+
(z = this.map) != null && z.getLayer(this.beforeLayer) && ((M = this.activeWeatherLayers) != null && M.length || (b = this.otherLayers) != null && b["war-zones"] || (O = this.otherLayers) != null && O["gmdss-areas"] || (p = this.otherLayers) != null && p["load-lines"] || (o = this.otherLayers) != null && o["high-risk-area"] || (e = this.otherLayers) != null && e["time-zones"] || (t = this.otherLayers) != null && t.pirates || (q = this.otherLayers) != null && q.ports || (r = this.otherLayers) != null && r.enc || (a = this.otherLayers) != null && a["voluntary-reporting-area"] || (i = this.otherLayers) != null && i["eca-zones"] || (L = this.otherLayers) != null && L["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
|
|
8759
8856
|
},
|
|
8760
8857
|
handleDateChange(z = { tropicals: !1 }) {
|
|
8761
8858
|
this.fetchWeatherLayers(z), this.fetchOtherLayers({ dayNight: !0 });
|
|
@@ -8789,11 +8886,11 @@ const Eb = {
|
|
|
8789
8886
|
}
|
|
8790
8887
|
},
|
|
8791
8888
|
async handlePointChange(z) {
|
|
8792
|
-
const M = this.ts ?
|
|
8889
|
+
const M = this.ts ? e0(this.ts).utc().format() : e0().utc().format(), b = {
|
|
8793
8890
|
lat: z.lat,
|
|
8794
8891
|
lng: z.lng,
|
|
8795
8892
|
datetime: M,
|
|
8796
|
-
forecastDays:
|
|
8893
|
+
forecastDays: 1,
|
|
8797
8894
|
selfHosted: !1
|
|
8798
8895
|
}, O = await B0.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, b, {
|
|
8799
8896
|
headers: {
|
|
@@ -8806,8 +8903,8 @@ const Eb = {
|
|
|
8806
8903
|
});
|
|
8807
8904
|
},
|
|
8808
8905
|
handle3dToggle(z) {
|
|
8809
|
-
var M, b, O, p, o, e, t, q, r, a, i,
|
|
8810
|
-
z ? (this.map.setProjection("globe"), this.mapProjection = "globe", (b = this.map) != null && b.getLayer((M = this.viewport) == null ? void 0 : M.rampColorLayer) && ((O = this.map) != null && O.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.particleLayer) && ((q = this.map) != null && q.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((a = this.map) == null || a.moveLayer((r = this.viewport) == null ? void 0 : r.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("zoomend", this.handleDragEndWithZoom4Json), this.map.off("dragend", this.handleDragEndWithZoom4Json), this.map.off("move", this.handleDragEndWithZoom4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.handleDragEndWithZoom4Image(), this.handleDragEndWithZoom4Json(), (
|
|
8906
|
+
var M, b, O, p, o, e, t, q, r, a, i, L, n, h, u, d, m, R, g, C;
|
|
8907
|
+
z ? (this.map.setProjection("globe"), this.mapProjection = "globe", (b = this.map) != null && b.getLayer((M = this.viewport) == null ? void 0 : M.rampColorLayer) && ((O = this.map) != null && O.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.particleLayer) && ((q = this.map) != null && q.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((a = this.map) == null || a.moveLayer((r = this.viewport) == null ? void 0 : r.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("zoomend", this.handleDragEndWithZoom4Json), this.map.off("dragend", this.handleDragEndWithZoom4Json), this.map.off("move", this.handleDragEndWithZoom4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.handleDragEndWithZoom4Image(), this.handleDragEndWithZoom4Json(), (L = this.map) != null && L.getLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer) && ((n = this.map) != null && n.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((u = this.map) == null || u.moveLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (m = this.map) != null && m.getLayer((d = this.viewport) == null ? void 0 : d.particleLayer) && ((R = this.map) != null && R.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((C = this.map) == null || C.moveLayer((g = this.viewport) == null ? void 0 : g.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
|
|
8811
8908
|
},
|
|
8812
8909
|
handleParticle(z) {
|
|
8813
8910
|
this.particleFactor = z, this.weatherLayers[z.key] && (this.weatherLayers[z.key].particle = z.particle), this.activeWeatherLayers.map((O) => {
|
|
@@ -8825,15 +8922,15 @@ const Eb = {
|
|
|
8825
8922
|
this.$emit("toggleVersion", Math.random());
|
|
8826
8923
|
}
|
|
8827
8924
|
}
|
|
8828
|
-
},
|
|
8925
|
+
}, Hb = {
|
|
8829
8926
|
key: 0,
|
|
8830
8927
|
className: "map-gl-home"
|
|
8831
8928
|
};
|
|
8832
|
-
function
|
|
8833
|
-
var i0, q0,
|
|
8834
|
-
const e =
|
|
8835
|
-
return b.map ? (
|
|
8836
|
-
T(e,
|
|
8929
|
+
function Gb(z, M, b, O, p, o) {
|
|
8930
|
+
var i0, q0, I, X0, R0, k, O0, r0, E, o0, h0, m0, y0, N0, A, W, s, N, X, S, K, P, U, C0, P0, k0;
|
|
8931
|
+
const e = x("IdmGlLayer"), t = x("IdmENC"), q = x("IdmSigWave"), r = x("IdmSwell"), a = x("IdmPrmsl"), i = x("IdmIceberg"), L = x("IdmTropicals"), n = x("IdmCurrents"), h = x("IdmCurrentParticle"), u = x("IdmWindBarb"), d = x("IdmWindParticle"), m = x("IdmPrecip3h"), R = x("IdmVisibility"), g = x("IdmWaterTemp"), C = x("IdmTemp"), y = x("IdmArctic"), B = x("IdmWarZone"), _ = x("IdmGmdssArea"), $ = x("IdmEcaZone"), Y = x("IdmAlertZone"), M0 = x("IdmPort"), t0 = x("IdmLoadLine"), W0 = x("IdmTimezone"), s0 = x("IdmVRA"), a0 = x("IdmSpecialArea"), d0 = x("IdmTerminator"), b0 = x("IdmLatLng"), l0 = x("IdmMeasure"), f0 = x("IdmPoint");
|
|
8932
|
+
return b.map ? (l(), f("div", Hb, [
|
|
8933
|
+
T(e, j({
|
|
8837
8934
|
ref: "layer",
|
|
8838
8935
|
map: b.map,
|
|
8839
8936
|
"toggle-version": b.toggleVersion,
|
|
@@ -8845,57 +8942,57 @@ function kb(z, M, b, O, p, o) {
|
|
|
8845
8942
|
}, z.$attrs, {
|
|
8846
8943
|
onWeather: o.handleWeatherLayerChange,
|
|
8847
8944
|
onOther: o.handleOtherLayerChange,
|
|
8848
|
-
onToggleWindParticle: M[0] || (M[0] = (
|
|
8849
|
-
onToggleWindFeather: M[1] || (M[1] = (
|
|
8850
|
-
onToggleCurrentParticle: M[2] || (M[2] = (
|
|
8851
|
-
onToggleCurrentIsoband: M[3] || (M[3] = (
|
|
8852
|
-
onCoordinate: M[4] || (M[4] = (
|
|
8853
|
-
onMeasure: M[5] || (M[5] = (
|
|
8854
|
-
onPoint: M[6] || (M[6] = (
|
|
8945
|
+
onToggleWindParticle: M[0] || (M[0] = (c0) => p.showWindParticle = c0),
|
|
8946
|
+
onToggleWindFeather: M[1] || (M[1] = (c0) => p.showWindFeather = c0),
|
|
8947
|
+
onToggleCurrentParticle: M[2] || (M[2] = (c0) => p.showCurrentParticle = c0),
|
|
8948
|
+
onToggleCurrentIsoband: M[3] || (M[3] = (c0) => p.showCurrentIsoband = c0),
|
|
8949
|
+
onCoordinate: M[4] || (M[4] = (c0) => p.showCoord = c0),
|
|
8950
|
+
onMeasure: M[5] || (M[5] = (c0) => p.showMeasure = c0),
|
|
8951
|
+
onPoint: M[6] || (M[6] = (c0) => p.showPoint = c0),
|
|
8855
8952
|
on3d: o.handle3dToggle,
|
|
8856
8953
|
onHandleToggleVersion: o.handleToggleVersion
|
|
8857
8954
|
}), null, 16, ["map", "toggle-version", "map-projection", "showWindFeather", "showWindParticle", "showCurrentIsoband", "showCurrentParticle", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
|
|
8858
|
-
T(t,
|
|
8955
|
+
T(t, j({
|
|
8859
8956
|
map: b.map,
|
|
8860
8957
|
token: b.token,
|
|
8861
8958
|
enabled: (i0 = p.otherLayers) == null ? void 0 : i0.enc,
|
|
8862
8959
|
"toggle-version": b.toggleVersion
|
|
8863
8960
|
}, z.$attrs, {
|
|
8864
|
-
onEnc: M[7] || (M[7] = (
|
|
8961
|
+
onEnc: M[7] || (M[7] = (c0) => p.enc = c0)
|
|
8865
8962
|
}), null, 16, ["map", "token", "enabled", "toggle-version"]),
|
|
8866
|
-
T(q,
|
|
8963
|
+
T(q, j({
|
|
8867
8964
|
map: b.map,
|
|
8868
8965
|
"sig-wave": (q0 = p.weatherLayers) == null ? void 0 : q0["sig-wave-height"],
|
|
8869
8966
|
"before-layer": b.beforeLayer,
|
|
8870
8967
|
activeWeatherLayers: p.activeWeatherLayers
|
|
8871
8968
|
}, z.$attrs), null, 16, ["map", "sig-wave", "before-layer", "activeWeatherLayers"]),
|
|
8872
|
-
T(r,
|
|
8969
|
+
T(r, j({
|
|
8873
8970
|
map: b.map,
|
|
8874
|
-
swell: (
|
|
8971
|
+
swell: (I = p.weatherLayers) == null ? void 0 : I.swell,
|
|
8875
8972
|
"before-layer": b.beforeLayer,
|
|
8876
8973
|
activeWeatherLayers: p.activeWeatherLayers
|
|
8877
8974
|
}, z.$attrs), null, 16, ["map", "swell", "before-layer", "activeWeatherLayers"]),
|
|
8878
|
-
T(a,
|
|
8975
|
+
T(a, j({
|
|
8879
8976
|
map: b.map,
|
|
8880
8977
|
prmsl: (X0 = p.weatherLayers) == null ? void 0 : X0.prmsl,
|
|
8881
8978
|
"before-layer": b.beforeLayer,
|
|
8882
8979
|
"active-weather-layers": p.activeWeatherLayers
|
|
8883
8980
|
}, z.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
|
|
8884
|
-
T(i,
|
|
8981
|
+
T(i, j({
|
|
8885
8982
|
map: b.map,
|
|
8886
8983
|
iceberg: (R0 = p.weatherLayers) == null ? void 0 : R0.iceberg,
|
|
8887
8984
|
"before-layer": b.beforeLayer
|
|
8888
8985
|
}, z.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
|
|
8889
|
-
T(
|
|
8986
|
+
T(L, j({
|
|
8890
8987
|
map: b.map,
|
|
8891
8988
|
date: b.ts,
|
|
8892
8989
|
tropicals: (k = p.weatherLayers) == null ? void 0 : k.tropicals,
|
|
8893
8990
|
"before-layer": b.beforeLayer
|
|
8894
8991
|
}, z.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
|
|
8895
|
-
T(n,
|
|
8992
|
+
T(n, j({
|
|
8896
8993
|
map: b.map,
|
|
8897
8994
|
"map-projection": p.mapProjection,
|
|
8898
|
-
current: (
|
|
8995
|
+
current: (O0 = p.weatherLayers) == null ? void 0 : O0.current,
|
|
8899
8996
|
"before-layer": b.beforeLayer,
|
|
8900
8997
|
showCurrentIsoband: p.showCurrentIsoband,
|
|
8901
8998
|
showCurrentParticle: p.showCurrentParticle,
|
|
@@ -8906,18 +9003,18 @@ function kb(z, M, b, O, p, o) {
|
|
|
8906
9003
|
onParticle: o.handleParticle,
|
|
8907
9004
|
onHandleToggleVersion: o.handleToggleVersion
|
|
8908
9005
|
}), null, 16, ["map", "map-projection", "current", "before-layer", "showCurrentIsoband", "showCurrentParticle", "margin-bottom", "toggle-version", "weather-layers", "onParticle", "onHandleToggleVersion"]),
|
|
8909
|
-
T(h,
|
|
9006
|
+
T(h, j({
|
|
8910
9007
|
viewport: p.viewport,
|
|
8911
9008
|
factor: (r0 = p.weatherLayers) == null ? void 0 : r0["current-particle"],
|
|
8912
9009
|
"before-layer": b.beforeLayer,
|
|
8913
9010
|
"toggle-version": b.toggleVersion
|
|
8914
9011
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
8915
|
-
T(
|
|
9012
|
+
T(u, j({
|
|
8916
9013
|
ref: "windBarb",
|
|
8917
9014
|
map: b.map,
|
|
8918
9015
|
"map-projection": p.mapProjection,
|
|
8919
|
-
wind: (
|
|
8920
|
-
current: (
|
|
9016
|
+
wind: (E = p.weatherLayers) == null ? void 0 : E.wind,
|
|
9017
|
+
current: (o0 = p.weatherLayers) == null ? void 0 : o0.current,
|
|
8921
9018
|
"before-layer": b.beforeLayer,
|
|
8922
9019
|
"margin-bottom": p.showRampColor ? "56px" : "30px",
|
|
8923
9020
|
showWindFeather: p.showWindFeather,
|
|
@@ -8927,122 +9024,122 @@ function kb(z, M, b, O, p, o) {
|
|
|
8927
9024
|
"weather-layers": p.weatherLayers,
|
|
8928
9025
|
onParticle: o.handleParticle
|
|
8929
9026
|
}), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "showWindFeather", "showWindParticle", "toggle-version", "weather-layers", "onParticle"]),
|
|
8930
|
-
T(d,
|
|
9027
|
+
T(d, j({
|
|
8931
9028
|
viewport: p.viewport,
|
|
8932
9029
|
factor: (h0 = p.weatherLayers) == null ? void 0 : h0["wind-particle"],
|
|
8933
9030
|
"before-layer": b.beforeLayer,
|
|
8934
9031
|
"toggle-version": b.toggleVersion
|
|
8935
9032
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
8936
|
-
T(m,
|
|
9033
|
+
T(m, j({
|
|
8937
9034
|
viewport: p.viewport,
|
|
8938
9035
|
factor: (m0 = p.weatherLayers) == null ? void 0 : m0.precip3h,
|
|
8939
9036
|
"before-layer": b.beforeLayer,
|
|
8940
9037
|
"toggle-version": b.toggleVersion
|
|
8941
9038
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
8942
|
-
T(
|
|
9039
|
+
T(R, j({
|
|
8943
9040
|
viewport: p.viewport,
|
|
8944
9041
|
factor: (y0 = p.weatherLayers) == null ? void 0 : y0.visibility,
|
|
8945
9042
|
"before-layer": b.beforeLayer,
|
|
8946
9043
|
"toggle-version": b.toggleVersion
|
|
8947
9044
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
8948
|
-
T(
|
|
9045
|
+
T(g, j({
|
|
8949
9046
|
viewport: p.viewport,
|
|
8950
9047
|
factor: (N0 = p.weatherLayers) == null ? void 0 : N0["water-temp"],
|
|
8951
9048
|
"before-layer": b.beforeLayer,
|
|
8952
9049
|
"toggle-version": b.toggleVersion
|
|
8953
9050
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
8954
|
-
T(
|
|
9051
|
+
T(C, j({
|
|
8955
9052
|
viewport: p.viewport,
|
|
8956
9053
|
factor: (A = p.weatherLayers) == null ? void 0 : A.temp,
|
|
8957
9054
|
"before-layer": b.beforeLayer,
|
|
8958
9055
|
"toggle-version": b.toggleVersion
|
|
8959
9056
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
8960
|
-
T(
|
|
9057
|
+
T(y, j({
|
|
8961
9058
|
viewport: p.viewport,
|
|
8962
9059
|
factor: (W = p.weatherLayers) == null ? void 0 : W.arctic,
|
|
8963
9060
|
"before-layer": b.beforeLayer,
|
|
8964
9061
|
"toggle-version": b.toggleVersion
|
|
8965
9062
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
8966
|
-
T(
|
|
9063
|
+
T(B, j({
|
|
8967
9064
|
map: b.map,
|
|
8968
9065
|
zone: (s = p.otherLayers) == null ? void 0 : s["war-zones"],
|
|
8969
9066
|
"before-layer": b.beforeLayer
|
|
8970
9067
|
}, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
8971
|
-
T(
|
|
9068
|
+
T(_, j({
|
|
8972
9069
|
map: b.map,
|
|
8973
9070
|
area: (N = p.otherLayers) == null ? void 0 : N["gmdss-areas"],
|
|
8974
9071
|
"before-layer": b.beforeLayer
|
|
8975
9072
|
}, z.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
8976
|
-
T(
|
|
9073
|
+
T($, j({
|
|
8977
9074
|
map: b.map,
|
|
8978
9075
|
zone: (X = p.otherLayers) == null ? void 0 : X["eca-zones"],
|
|
8979
9076
|
"before-layer": b.beforeLayer
|
|
8980
9077
|
}, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
8981
|
-
T(
|
|
9078
|
+
T(Y, j({
|
|
8982
9079
|
map: b.map,
|
|
8983
|
-
zone: (
|
|
9080
|
+
zone: (S = p.otherLayers) == null ? void 0 : S["alert-zones"],
|
|
8984
9081
|
"before-layer": b.beforeLayer
|
|
8985
9082
|
}, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
8986
|
-
T(
|
|
9083
|
+
T(M0, j({
|
|
8987
9084
|
map: b.map,
|
|
8988
|
-
port: (
|
|
9085
|
+
port: (K = p.otherLayers) == null ? void 0 : K.ports,
|
|
8989
9086
|
"before-layer": b.beforeLayer
|
|
8990
9087
|
}, z.$attrs), null, 16, ["map", "port", "before-layer"]),
|
|
8991
|
-
T(t0,
|
|
9088
|
+
T(t0, j({
|
|
8992
9089
|
map: b.map,
|
|
8993
|
-
line: (
|
|
9090
|
+
line: (P = p.otherLayers) == null ? void 0 : P["load-lines"],
|
|
8994
9091
|
"before-layer": b.beforeLayer
|
|
8995
9092
|
}, z.$attrs), null, 16, ["map", "line", "before-layer"]),
|
|
8996
|
-
T(W0,
|
|
9093
|
+
T(W0, j({
|
|
8997
9094
|
map: b.map,
|
|
8998
|
-
zone: (
|
|
9095
|
+
zone: (U = p.otherLayers) == null ? void 0 : U["time-zones"],
|
|
8999
9096
|
"before-layer": b.beforeLayer
|
|
9000
9097
|
}, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
9001
|
-
T(s0,
|
|
9098
|
+
T(s0, j({
|
|
9002
9099
|
map: b.map,
|
|
9003
9100
|
area: (C0 = p.otherLayers) == null ? void 0 : C0["voluntary-reporting-area"],
|
|
9004
9101
|
"before-layer": b.beforeLayer
|
|
9005
9102
|
}, z.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
9006
|
-
T(a0,
|
|
9103
|
+
T(a0, j({
|
|
9007
9104
|
map: b.map,
|
|
9008
9105
|
area: (P0 = p.otherLayers) == null ? void 0 : P0["special-area"],
|
|
9009
9106
|
"before-layer": b.beforeLayer
|
|
9010
9107
|
}, z.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
9011
|
-
T(d0,
|
|
9108
|
+
T(d0, j({
|
|
9012
9109
|
map: b.map,
|
|
9013
9110
|
area: (k0 = p.otherLayers) == null ? void 0 : k0["day-night"]
|
|
9014
9111
|
}, z.$attrs), null, 16, ["map", "area"]),
|
|
9015
|
-
T(
|
|
9112
|
+
T(b0, j({
|
|
9016
9113
|
map: b.map,
|
|
9017
9114
|
show: p.showCoord,
|
|
9018
9115
|
"toggle-version": b.toggleVersion
|
|
9019
9116
|
}, z.$attrs), null, 16, ["map", "show", "toggle-version"]),
|
|
9020
|
-
T(l0,
|
|
9117
|
+
T(l0, j({
|
|
9021
9118
|
map: b.map,
|
|
9022
9119
|
show: p.showMeasure
|
|
9023
9120
|
}, z.$attrs), null, 16, ["map", "show"]),
|
|
9024
|
-
T(f0,
|
|
9121
|
+
T(f0, j({
|
|
9025
9122
|
map: b.map,
|
|
9026
9123
|
show: p.showPoint,
|
|
9027
9124
|
meteo: p.meteo,
|
|
9028
9125
|
ts: b.ts,
|
|
9029
9126
|
token: b.token
|
|
9030
9127
|
}, z.$attrs, { onPoint: o.handlePointChange }), null, 16, ["map", "show", "meteo", "ts", "token", "onPoint"])
|
|
9031
|
-
])) :
|
|
9128
|
+
])) : F("", !0);
|
|
9032
9129
|
}
|
|
9033
|
-
const
|
|
9130
|
+
const Vb = /* @__PURE__ */ D(Ub, [["render", Gb]]), pz = {
|
|
9034
9131
|
install(z) {
|
|
9035
|
-
z.component("MapboxGL",
|
|
9132
|
+
z.component("MapboxGL", Vb), z.component("TropicalGL", j0), z.component("LatLngGL", H0);
|
|
9036
9133
|
}
|
|
9037
9134
|
};
|
|
9038
9135
|
export {
|
|
9039
9136
|
H0 as LatLngGL,
|
|
9040
|
-
|
|
9041
|
-
|
|
9137
|
+
Vb as MapboxGL,
|
|
9138
|
+
pz as MapboxGLPlugin,
|
|
9042
9139
|
E1 as MapboxHelper,
|
|
9043
|
-
|
|
9140
|
+
A0 as ParticleSchema,
|
|
9044
9141
|
j0 as TropicalGL,
|
|
9045
9142
|
E0 as Viewport,
|
|
9046
9143
|
g0 as WebGL,
|
|
9047
|
-
|
|
9144
|
+
p0 as WebGLSchema
|
|
9048
9145
|
};
|