@idmwx/idmui-gl4 3.2.9 → 3.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-3VYIPD3A-179f3f44.js → chunk-3VYIPD3A-5f9e7fdc.js} +1 -1
- package/dist/{chunk-ANSXOGKI-6293ca7b.js → chunk-ANSXOGKI-df07024a.js} +1 -1
- package/dist/{chunk-T4JIPPZO-2b609468.js → chunk-T4JIPPZO-2dd67b2b.js} +1 -1
- package/dist/{download-6176491d.js → download-107389da.js} +3 -3
- package/dist/{index-66017208.js → index-8edbbd2b.js} +398 -397
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +18 -18
- package/dist/mapbox/src/components/other/index.vue.d.ts +0 -1
- package/dist/mapbox/src/index.vue.d.ts +4 -0
- package/dist/{rasterize-JS5G2XHH-0e323926.js → rasterize-JS5G2XHH-f2161451.js} +3 -3
- package/dist/style.css +1 -1
- package/dist/{toBlob-dbfe465a.js → toBlob-274d5cc6.js} +3 -3
- package/dist/{toCanvas-a50ef0d0.js → toCanvas-32bca541.js} +2 -2
- package/dist/{toImg-35c24ad8.js → toImg-aac23f7a.js} +3 -3
- package/package.json +1 -1
|
@@ -554,8 +554,8 @@ function zr(t, e, o, i, a, r) {
|
|
|
554
554
|
_: 1
|
|
555
555
|
}, 8, ["class"])) : G("", !0);
|
|
556
556
|
}
|
|
557
|
-
const
|
|
558
|
-
const
|
|
557
|
+
const Cr = /* @__PURE__ */ ie(kr, [["render", zr]]);
|
|
558
|
+
const _r = {
|
|
559
559
|
name: "PortDetail",
|
|
560
560
|
props: {
|
|
561
561
|
simple: {
|
|
@@ -751,10 +751,10 @@ const Cr = {
|
|
|
751
751
|
{ label: "Swell", key: "weather.swell", unit: "m" },
|
|
752
752
|
{ label: "Current", key: "weather.current", unit: "kts" }
|
|
753
753
|
], (o = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || o.dateTimeList.forEach((i, a) => {
|
|
754
|
-
var c, s, d, m, p, u, b, g, h, f, k, v,
|
|
754
|
+
var c, s, d, m, p, u, b, g, h, f, k, v, C, L, P, z, R, S, F, N, B, Q, q, oe, ge, he, E, J, K, ae, Y, O, ee, D, le, fe, Ae, ze;
|
|
755
755
|
let r = {};
|
|
756
756
|
const l = ((c = Vo.pickHourly(t, T(i))) == null ? void 0 : c[0]) || {};
|
|
757
|
-
r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (s = l.weather) == null ? void 0 : s.url, r.temp = this.computeRoundPrecision((d = l == null ? void 0 : l.weather) == null ? void 0 : d.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((p = (m = l == null ? void 0 : l.weather) == null ? void 0 : m.precip) == null ? void 0 : p.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((b = (u = l == null ? void 0 : l.weather) == null ? void 0 : u.precip) == null ? void 0 : b.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((g = l == null ? void 0 : l.weather) == null ? void 0 : g.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((f = (h = l == null ? void 0 : l.weather) == null ? void 0 : h.wind) == null ? void 0 : f.kts, 1) ?? "-", r.windDir = (v = (k = l == null ? void 0 : l.weather) == null ? void 0 : k.wind) == null ? void 0 : v.direction, r.windLevel = this.computeRoundPrecision((L = (
|
|
757
|
+
r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (s = l.weather) == null ? void 0 : s.url, r.temp = this.computeRoundPrecision((d = l == null ? void 0 : l.weather) == null ? void 0 : d.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((p = (m = l == null ? void 0 : l.weather) == null ? void 0 : m.precip) == null ? void 0 : p.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((b = (u = l == null ? void 0 : l.weather) == null ? void 0 : u.precip) == null ? void 0 : b.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((g = l == null ? void 0 : l.weather) == null ? void 0 : g.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((f = (h = l == null ? void 0 : l.weather) == null ? void 0 : h.wind) == null ? void 0 : f.kts, 1) ?? "-", r.windDir = (v = (k = l == null ? void 0 : l.weather) == null ? void 0 : k.wind) == null ? void 0 : v.direction, r.windLevel = this.computeRoundPrecision((L = (C = l == null ? void 0 : l.weather) == null ? void 0 : C.wind) == null ? void 0 : L.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((z = (P = l == null ? void 0 : l.weather) == null ? void 0 : P.wind) == null ? void 0 : z.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((S = (R = l == null ? void 0 : l.wave) == null ? void 0 : R.sig) == null ? void 0 : S.height, 1) ?? "-", r.sigwaveDir = (N = (F = l == null ? void 0 : l.wave) == null ? void 0 : F.sig) == null ? void 0 : N.direction, r.sigwavePeriod = this.computeRoundPrecision((Q = (B = l == null ? void 0 : l.wave) == null ? void 0 : B.sig) == null ? void 0 : Q.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((oe = (q = l == null ? void 0 : l.wave) == null ? void 0 : q.wd) == null ? void 0 : oe.height, 1) ?? "-", r.windwaveDir = (he = (ge = l == null ? void 0 : l.wave) == null ? void 0 : ge.wd) == null ? void 0 : he.direction, r.windwavePeriod = this.computeRoundPrecision((J = (E = l == null ? void 0 : l.wave) == null ? void 0 : E.wd) == null ? void 0 : J.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((ae = (K = l == null ? void 0 : l.wave) == null ? void 0 : K.swell) == null ? void 0 : ae.height, 1) ?? "-", r.swellDir = (O = (Y = l == null ? void 0 : l.wave) == null ? void 0 : Y.swell) == null ? void 0 : O.direction, r.swellPeriod = this.computeRoundPrecision((D = (ee = l == null ? void 0 : l.wave) == null ? void 0 : ee.swell) == null ? void 0 : D.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((le = l == null ? void 0 : l.current) == null ? void 0 : le.speed, 1) ?? "-", r.currentDir = (fe = l == null ? void 0 : l.current) == null ? void 0 : fe.direction, r.currentSpeed = this.computeRoundPrecision((Ae = l == null ? void 0 : l.current) == null ? void 0 : Ae.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(l == null ? void 0 : l.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(l == null ? void 0 : l.sst, 0) ?? "-", r.weatherUrls = (ze = l == null ? void 0 : l.weather) == null ? void 0 : ze.url, this.tableData[0][`value${a}`] = a * this.interval > 10 ? a * this.interval : "0" + a * this.interval, this.tableData[1][`value${a}`] = r.weatherUrl, this.tableData[2][`value${a}`] = r.temp, this.tableData[3][`value${a}`] = r.precip1h, this.tableData[4][`value${a}`] = r.visibility, this.tableData[5][`value${a}`] = r.windSpeed, this.tableData[6][`value${a}`] = r.sigwaveHeight, this.tableData[7][`value${a}`] = r.swellHeight, this.tableData[8][`value${a}`] = r.currentSpeed;
|
|
758
758
|
});
|
|
759
759
|
},
|
|
760
760
|
handleTide() {
|
|
@@ -956,7 +956,7 @@ const Cr = {
|
|
|
956
956
|
}, zl = {
|
|
957
957
|
class: "px-1 text-center text-label font-weight-400",
|
|
958
958
|
width: "120"
|
|
959
|
-
},
|
|
959
|
+
}, Cl = { class: "px-1 text-center" }, _l = { class: "px-1 text-center" }, Ml = { class: "px-1 text-center" };
|
|
960
960
|
function Pl(t, e, o, i, a, r) {
|
|
961
961
|
const l = M("VBtn"), c = M("VCardTitle"), s = M("VDivider"), d = M("VBtnToggle"), m = M("VCard");
|
|
962
962
|
return A(), j(m, {
|
|
@@ -967,7 +967,7 @@ function Pl(t, e, o, i, a, r) {
|
|
|
967
967
|
return [
|
|
968
968
|
w(c, { class: "w-100" }, {
|
|
969
969
|
default: x(() => {
|
|
970
|
-
var g, h, f, k, v,
|
|
970
|
+
var g, h, f, k, v, C;
|
|
971
971
|
return [
|
|
972
972
|
n("div", Mr, [
|
|
973
973
|
n("div", Pr, [
|
|
@@ -1045,7 +1045,7 @@ function Pl(t, e, o, i, a, r) {
|
|
|
1045
1045
|
n("div", null, y(t.$t("port.port")), 1),
|
|
1046
1046
|
n("div", null, [
|
|
1047
1047
|
e[6] || (e[6] = n("label", null, "UN/LOCODE: ", -1)),
|
|
1048
|
-
n("span", null, y((
|
|
1048
|
+
n("span", null, y((C = o.port) == null ? void 0 : C.cntLoCode), 1)
|
|
1049
1049
|
])
|
|
1050
1050
|
])
|
|
1051
1051
|
];
|
|
@@ -1260,8 +1260,8 @@ function Pl(t, e, o, i, a, r) {
|
|
|
1260
1260
|
(A(!0), I(Se, null, Re(a.tideTableData, (g, h) => {
|
|
1261
1261
|
var f;
|
|
1262
1262
|
return A(), I("tr", { key: h }, [
|
|
1263
|
-
n("td",
|
|
1264
|
-
n("td",
|
|
1263
|
+
n("td", Cl, y(t.$t(`tide.${(f = g == null ? void 0 : g.type) == null ? void 0 : f.toLowerCase()}`)) + " " + y(t.$t("tide.tide")), 1),
|
|
1264
|
+
n("td", _l, y(r.computeLocalTime(g == null ? void 0 : g.date, o.port, "MM-DD HH:mm")), 1),
|
|
1265
1265
|
n("td", Ml, y((g == null ? void 0 : g.height) ?? "-") + " m", 1)
|
|
1266
1266
|
]);
|
|
1267
1267
|
}), 128))
|
|
@@ -1275,7 +1275,7 @@ function Pl(t, e, o, i, a, r) {
|
|
|
1275
1275
|
_: 1
|
|
1276
1276
|
}, 8, ["class"]);
|
|
1277
1277
|
}
|
|
1278
|
-
const ua = /* @__PURE__ */ ie(
|
|
1278
|
+
const ua = /* @__PURE__ */ ie(_r, [["render", Pl], ["__scopeId", "data-v-859d2f37"]]);
|
|
1279
1279
|
const Sl = {
|
|
1280
1280
|
name: "IdmPort",
|
|
1281
1281
|
components: {
|
|
@@ -2325,7 +2325,7 @@ const nn = {
|
|
|
2325
2325
|
}, sn = { class: "d-flex justify-space-between align-center" }, cn = { class: "d-flex justify-start text-h5 my-2" }, mn = { class: "d-flex justify-start align-center text-body-1 text-label ga-3" }, dn = { class: "summary-box w-100" }, hn = { class: "d-flex justify-space-between align-center py-2" }, pn = { class: "d-flex justify-center align-center text-h6 ga-2" }, un = {
|
|
2326
2326
|
class: "multi-color-icon",
|
|
2327
2327
|
"aria-hidden": "true"
|
|
2328
|
-
}, gn = ["xlink:href"], fn = { class: "gray-bg-2 rounded d-flex flex-column ga-4 pa-4" }, yn = { class: "w-100 d-flex justify-start align-center" }, bn = { class: "w-30 text-label font-weight-400" }, wn = { class: "flex-1-1-0" }, xn = { class: "w-100 d-flex justify-start align-center" }, vn = { class: "w-30 text-label font-weight-400" }, An = { class: "flex-1-1-0" }, kn = { class: "w-100 d-flex justify-start align-center" }, Ln = { class: "w-30 text-label font-weight-400" }, zn = { class: "flex-1-1-0" },
|
|
2328
|
+
}, gn = ["xlink:href"], fn = { class: "gray-bg-2 rounded d-flex flex-column ga-4 pa-4" }, yn = { class: "w-100 d-flex justify-start align-center" }, bn = { class: "w-30 text-label font-weight-400" }, wn = { class: "flex-1-1-0" }, xn = { class: "w-100 d-flex justify-start align-center" }, vn = { class: "w-30 text-label font-weight-400" }, An = { class: "flex-1-1-0" }, kn = { class: "w-100 d-flex justify-start align-center" }, Ln = { class: "w-30 text-label font-weight-400" }, zn = { class: "flex-1-1-0" }, Cn = { class: "table-box w-100 mt-2 mb-4 d-flex flex-column justify-start align-center" }, _n = { class: "w-100 d-flex justify-space-between align-center py-2" }, Mn = { class: "d-flex justify-center align-center text-h6 ga-2" }, Pn = {
|
|
2329
2329
|
class: "multi-color-icon",
|
|
2330
2330
|
"aria-hidden": "true"
|
|
2331
2331
|
}, Sn = ["xlink:href"], Tn = {
|
|
@@ -2413,8 +2413,8 @@ function Bn(t, e, o, i, a, r) {
|
|
|
2413
2413
|
])
|
|
2414
2414
|
])
|
|
2415
2415
|
]),
|
|
2416
|
-
n("div",
|
|
2417
|
-
n("div",
|
|
2416
|
+
n("div", Cn, [
|
|
2417
|
+
n("div", _n, [
|
|
2418
2418
|
n("div", Mn, [
|
|
2419
2419
|
(A(), I("svg", Pn, [
|
|
2420
2420
|
n("use", {
|
|
@@ -3158,7 +3158,7 @@ const ds = {
|
|
|
3158
3158
|
IdmWarZone: fr,
|
|
3159
3159
|
IdmGmdssArea: wr,
|
|
3160
3160
|
IdmEcaZone: Ar,
|
|
3161
|
-
IdmAlertZone:
|
|
3161
|
+
IdmAlertZone: Cr,
|
|
3162
3162
|
IdmPort: El,
|
|
3163
3163
|
IdmLoadLine: jl,
|
|
3164
3164
|
IdmTimezone: Wl,
|
|
@@ -3228,7 +3228,7 @@ const ds = {
|
|
|
3228
3228
|
type: String
|
|
3229
3229
|
}
|
|
3230
3230
|
},
|
|
3231
|
-
emits: ["map", "other", "menuToggle", "mapFeather", "theme", "followLayerList", "otherCheckList"],
|
|
3231
|
+
emits: ["map", "other", "menuToggle", "mapFeather", "theme", "followLayerList", "otherCheckList", "tempFeatherCount"],
|
|
3232
3232
|
data() {
|
|
3233
3233
|
return {
|
|
3234
3234
|
right: 10,
|
|
@@ -3276,9 +3276,9 @@ const ds = {
|
|
|
3276
3276
|
},
|
|
3277
3277
|
theme: {
|
|
3278
3278
|
handler() {
|
|
3279
|
-
this.theme === "light" ? this.mapFeather = ["light", "nautical"].includes(this.mapFeather) ? this.mapFeather : "light" : this.mapFeather = ["dark", "satellite"].includes(this.mapFeather) ? this.mapFeather : "dark";
|
|
3280
|
-
}
|
|
3281
|
-
immediate:
|
|
3279
|
+
this.theme === "light" ? this.mapFeather = ["light", "nautical"].includes(this.mapFeather) ? this.mapFeather : "light" : this.theme === "dark" && (this.mapFeather = ["dark", "satellite"].includes(this.mapFeather) ? this.mapFeather : "dark");
|
|
3280
|
+
}
|
|
3281
|
+
// immediate: true,
|
|
3282
3282
|
},
|
|
3283
3283
|
mapFeather: {
|
|
3284
3284
|
handler() {
|
|
@@ -3316,7 +3316,7 @@ const ds = {
|
|
|
3316
3316
|
this.$emit("menuToggle", "otherLayers");
|
|
3317
3317
|
},
|
|
3318
3318
|
handleToggleMapFeather(t) {
|
|
3319
|
-
this
|
|
3319
|
+
this.mapFeather = t.value, (this.mapFeather === "light" || this.mapFeather === "dark") && this.$emit("tempFeatherCount");
|
|
3320
3320
|
},
|
|
3321
3321
|
async fetchOtherLayers() {
|
|
3322
3322
|
var e, o;
|
|
@@ -3379,7 +3379,7 @@ const ds = {
|
|
|
3379
3379
|
}, vs = { class: "text-body-2 text-center pt-2" };
|
|
3380
3380
|
function As(t, e, o, i, a, r) {
|
|
3381
3381
|
var ge, he, E, J, K, ae, Y, O, ee;
|
|
3382
|
-
const l = M("VBtn"), c = M("VTooltip"), s = M("VCardTitle"), d = M("VCardItem"), m = M("VCheckbox"), p = M("VCardText"), u = M("VCard"), b = M("IdmPort"), g = M("IdmTideStations"), h = M("IdmLatLng"), f = M("IdmTerminator"), k = M("IdmTimezone"), v = M("IdmAlertZone"),
|
|
3382
|
+
const l = M("VBtn"), c = M("VTooltip"), s = M("VCardTitle"), d = M("VCardItem"), m = M("VCheckbox"), p = M("VCardText"), u = M("VCard"), b = M("IdmPort"), g = M("IdmTideStations"), h = M("IdmLatLng"), f = M("IdmTerminator"), k = M("IdmTimezone"), v = M("IdmAlertZone"), C = M("IdmEcaZone"), L = M("IdmWarZone"), P = M("IdmGmdssArea"), z = M("IdmLoadLine"), R = M("IdmWorldMarine"), S = M("IdmVRA"), F = M("IdmSpecialArea"), N = M("IdmWorld12nm"), B = M("IdmChinaRoute"), Q = M("IdmIceAreas"), q = M("IdmFollowPort"), oe = M("IdmFollowPosition");
|
|
3383
3383
|
return A(), I("div", hs, [
|
|
3384
3384
|
n("div", {
|
|
3385
3385
|
class: ue(["menu-bar-box transition px-1 rounded", o.simple ? "simple" : ""]),
|
|
@@ -3657,7 +3657,7 @@ function As(t, e, o, i, a, r) {
|
|
|
3657
3657
|
"before-layer": "empty-layer-3",
|
|
3658
3658
|
theme: o.theme
|
|
3659
3659
|
}), null, 16, ["map", "simple", "zone", "theme"])) : G("", !0),
|
|
3660
|
-
o.map ? (A(), j(
|
|
3660
|
+
o.map ? (A(), j(C, U({
|
|
3661
3661
|
key: 6,
|
|
3662
3662
|
map: o.map,
|
|
3663
3663
|
zone: (K = a.otherLayers) == null ? void 0 : K["eca-zones"]
|
|
@@ -3969,7 +3969,7 @@ class Je {
|
|
|
3969
3969
|
m.resolution && o.uniform2f(m.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), m.image && o.uniform1i(m.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, r), m.color && o.uniform1i(m.color, 1), c != null && c.uvRange && (c != null && c.sRange) && (m.uvRange && o.uniform2f(m.uvRange, c.uvRange[0], c.uvRange[1]), m.sRange && o.uniform2f(m.sRange, c.sRange[0], c.sRange[1])), m.scale && o.uniform1f(m.scale, (c == null ? void 0 : c.scale) || 1);
|
|
3970
3970
|
const p = e.getBoundPixel(), u = e.map.getZoom() + 1, b = e.getWorldCopy(p, u);
|
|
3971
3971
|
for (const g of b) {
|
|
3972
|
-
const h = (g[0] - p[0]) * e.ratio, f = (g[1] - p[3]) * e.ratio, k = g[2] * e.ratio, [v,
|
|
3972
|
+
const h = (g[0] - p[0]) * e.ratio, f = (g[1] - p[3]) * e.ratio, k = g[2] * e.ratio, [v, C, L, P] = [h, k + h, f, k + f], z = new Float32Array([v, L, C, L, v, P, v, P, C, L, C, P]);
|
|
3973
3973
|
o.bindBuffer(o.ARRAY_BUFFER, l), o.bufferData(o.ARRAY_BUFFER, z, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
|
|
3974
3974
|
}
|
|
3975
3975
|
} catch (m) {
|
|
@@ -4018,10 +4018,10 @@ class Je {
|
|
|
4018
4018
|
});
|
|
4019
4019
|
}
|
|
4020
4020
|
}
|
|
4021
|
-
class
|
|
4021
|
+
class Ce {
|
|
4022
4022
|
}
|
|
4023
4023
|
// 顶点渲染
|
|
4024
|
-
we(
|
|
4024
|
+
we(Ce, "vertexSchema", `
|
|
4025
4025
|
//canvas 坐标系上的坐标 (x, y)
|
|
4026
4026
|
attribute vec2 a_position; //像素坐标
|
|
4027
4027
|
attribute vec2 a_texCoord; //纹理坐标
|
|
@@ -4036,7 +4036,7 @@ we(_e, "vertexSchema", `
|
|
|
4036
4036
|
gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
|
|
4037
4037
|
v_texCoord = a_texCoord;
|
|
4038
4038
|
}`), // 类如风、流等u v双变量片元渲染
|
|
4039
|
-
we(
|
|
4039
|
+
we(Ce, "uvFragmentSchema", `
|
|
4040
4040
|
precision mediump float;
|
|
4041
4041
|
uniform sampler2D u_image;
|
|
4042
4042
|
uniform vec2 u_range_u_v;
|
|
@@ -4056,7 +4056,7 @@ we(_e, "uvFragmentSchema", `
|
|
|
4056
4056
|
|
|
4057
4057
|
gl_FragColor = color;
|
|
4058
4058
|
}`), // 类如浪、气压等单变量片元渲染
|
|
4059
|
-
we(
|
|
4059
|
+
we(Ce, "fragmentSchema", `
|
|
4060
4060
|
precision mediump float;
|
|
4061
4061
|
uniform sampler2D u_image; // 灰度
|
|
4062
4062
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -4362,10 +4362,10 @@ const Ls = {
|
|
|
4362
4362
|
}
|
|
4363
4363
|
}
|
|
4364
4364
|
};
|
|
4365
|
-
function
|
|
4365
|
+
function Cs(t, e, o, i, a, r) {
|
|
4366
4366
|
return null;
|
|
4367
4367
|
}
|
|
4368
|
-
const
|
|
4368
|
+
const _s = /* @__PURE__ */ ie(zs, [["render", Cs]]);
|
|
4369
4369
|
const Ms = {
|
|
4370
4370
|
name: "IdmWindParticle",
|
|
4371
4371
|
props: {
|
|
@@ -4477,7 +4477,7 @@ const Ms = {
|
|
|
4477
4477
|
[1, "rgb(91, 136, 161)"]
|
|
4478
4478
|
];
|
|
4479
4479
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
4480
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
4480
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, Ce.vertexSchema, Ce.uvFragmentSchema);
|
|
4481
4481
|
this.program = e, this.aPositionBuffer = o;
|
|
4482
4482
|
}
|
|
4483
4483
|
this.handleParticleSetup();
|
|
@@ -4814,7 +4814,7 @@ const Es = {
|
|
|
4814
4814
|
[1, "rgb(195,194,194)"]
|
|
4815
4815
|
];
|
|
4816
4816
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
4817
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
4817
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, Ce.vertexSchema, Ce.uvFragmentSchema);
|
|
4818
4818
|
this.program = e, this.aPositionBuffer = o;
|
|
4819
4819
|
}
|
|
4820
4820
|
this.handleParticleSetup();
|
|
@@ -4990,7 +4990,7 @@ const Bs = {
|
|
|
4990
4990
|
//13
|
|
4991
4991
|
];
|
|
4992
4992
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
4993
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
4993
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, Ce.vertexSchema, Ce.fragmentSchema);
|
|
4994
4994
|
this.program = e, this.aPositionBuffer = o;
|
|
4995
4995
|
}
|
|
4996
4996
|
},
|
|
@@ -5257,7 +5257,7 @@ const Ys = {
|
|
|
5257
5257
|
//13
|
|
5258
5258
|
];
|
|
5259
5259
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
5260
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
5260
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, Ce.vertexSchema, Ce.fragmentSchema);
|
|
5261
5261
|
this.program = e, this.aPositionBuffer = o;
|
|
5262
5262
|
}
|
|
5263
5263
|
},
|
|
@@ -5517,7 +5517,7 @@ const $s = {
|
|
|
5517
5517
|
// 100%
|
|
5518
5518
|
];
|
|
5519
5519
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
5520
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
5520
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, Ce.vertexSchema, Ce.fragmentSchema);
|
|
5521
5521
|
this.program = e, this.aPositionBuffer = o;
|
|
5522
5522
|
}
|
|
5523
5523
|
},
|
|
@@ -5634,7 +5634,7 @@ const ac = {
|
|
|
5634
5634
|
// 100%
|
|
5635
5635
|
];
|
|
5636
5636
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
5637
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
5637
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, Ce.vertexSchema, Ce.fragmentSchema);
|
|
5638
5638
|
this.program = e, this.aPositionBuffer = o;
|
|
5639
5639
|
}
|
|
5640
5640
|
},
|
|
@@ -5752,7 +5752,7 @@ const nc = {
|
|
|
5752
5752
|
// 4m
|
|
5753
5753
|
];
|
|
5754
5754
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
5755
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
5755
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, Ce.vertexSchema, Ce.fragmentSchema);
|
|
5756
5756
|
this.program = e, this.aPositionBuffer = o;
|
|
5757
5757
|
}
|
|
5758
5758
|
},
|
|
@@ -5872,7 +5872,7 @@ const dc = {
|
|
|
5872
5872
|
[1, "rgba(197,5,58,0.8)"]
|
|
5873
5873
|
];
|
|
5874
5874
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
5875
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
5875
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, Ce.vertexSchema, Ce.fragmentSchema);
|
|
5876
5876
|
this.program = e, this.aPositionBuffer = o;
|
|
5877
5877
|
}
|
|
5878
5878
|
},
|
|
@@ -5983,7 +5983,7 @@ const gc = {
|
|
|
5983
5983
|
[1, "rgba(144,144,144,0)"]
|
|
5984
5984
|
];
|
|
5985
5985
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
5986
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
5986
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, Ce.vertexSchema, Ce.fragmentSchema);
|
|
5987
5987
|
this.program = e, this.aPositionBuffer = o;
|
|
5988
5988
|
}
|
|
5989
5989
|
},
|
|
@@ -6095,7 +6095,7 @@ const wc = {
|
|
|
6095
6095
|
//
|
|
6096
6096
|
];
|
|
6097
6097
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
6098
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
6098
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, Ce.vertexSchema, Ce.fragmentSchema);
|
|
6099
6099
|
this.program = e, this.aPositionBuffer = o;
|
|
6100
6100
|
}
|
|
6101
6101
|
},
|
|
@@ -6218,7 +6218,7 @@ const kc = {
|
|
|
6218
6218
|
[1, "rgb(138, 43, 10)"]
|
|
6219
6219
|
];
|
|
6220
6220
|
this.rampColor = this.webgl.setup(this.context, t);
|
|
6221
|
-
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context,
|
|
6221
|
+
const { program: e, aPositionBuffer: o } = this.webgl.bind(this.context, Ce.vertexSchema, Ce.fragmentSchema);
|
|
6222
6222
|
this.program = e, this.aPositionBuffer = o;
|
|
6223
6223
|
}
|
|
6224
6224
|
},
|
|
@@ -6250,11 +6250,11 @@ function zc(t, e, o, i, a, r) {
|
|
|
6250
6250
|
]), 4)
|
|
6251
6251
|
])) : G("", !0);
|
|
6252
6252
|
}
|
|
6253
|
-
const
|
|
6254
|
-
const
|
|
6253
|
+
const Cc = /* @__PURE__ */ ie(kc, [["render", zc]]);
|
|
6254
|
+
const _c = {
|
|
6255
6255
|
name: "IdmGlLayer",
|
|
6256
6256
|
components: {
|
|
6257
|
-
IdmWindBarb:
|
|
6257
|
+
IdmWindBarb: _s,
|
|
6258
6258
|
IdmWindParticle: Ts,
|
|
6259
6259
|
IdmCurrentDirection: Ds,
|
|
6260
6260
|
IdmCurrentParticle: js,
|
|
@@ -6268,7 +6268,7 @@ const Cc = {
|
|
|
6268
6268
|
IdmPrecip3h: uc,
|
|
6269
6269
|
IdmVisibility: bc,
|
|
6270
6270
|
IdmWaterTemp: Ac,
|
|
6271
|
-
IdmTemp:
|
|
6271
|
+
IdmTemp: Cc
|
|
6272
6272
|
},
|
|
6273
6273
|
props: {
|
|
6274
6274
|
simple: {
|
|
@@ -6542,7 +6542,7 @@ const Cc = {
|
|
|
6542
6542
|
this.checkList = [...r, i];
|
|
6543
6543
|
else {
|
|
6544
6544
|
const l = o.filter((s) => !this.rendersKeys.includes(s)), c = this.checkList.filter((s) => this.rendersKeys.includes(s));
|
|
6545
|
-
this.checkList = [...l, ...c]
|
|
6545
|
+
this.checkList = [...l, ...c];
|
|
6546
6546
|
}
|
|
6547
6547
|
a && (a === "ice-forecast" ? (this.checkList = o.filter((l) => !["ice-cover", "ice-thickness", "ice-forecast"].includes(l)), this.iceToggleValue = void 0) : a === "wave-group" ? (this.checkList = o.filter((l) => !["wave-group", "sig-wave", "swell"].includes(l)), this.waveToggleValue = void 0) : this.checkList = o), this.checkList.includes("wind-particle") && !(e != null && e.includes("wind-particle")) && (this.showWindParticle = !0), this.checkList.includes("current-particle") && !(e != null && e.includes("current-particle")) && (this.showCurrentParticle = !0), localStorage.setItem(this.cache.checkListKey, JSON.stringify(o)), this.activeWeatherLayers = this.autoActive ? this.allLayers.filter((l) => o.includes(l.key)) : [], this.handleWeatherLayerChange();
|
|
6548
6548
|
},
|
|
@@ -6580,9 +6580,9 @@ const Cc = {
|
|
|
6580
6580
|
}
|
|
6581
6581
|
);
|
|
6582
6582
|
if ((/* @__PURE__ */ new Date()).valueOf() - (e + o), ((l = k == null ? void 0 : k.data) == null ? void 0 : l.code) === 0) {
|
|
6583
|
-
const v = (c = k == null ? void 0 : k.data) == null ? void 0 : c.data,
|
|
6583
|
+
const v = (c = k == null ? void 0 : k.data) == null ? void 0 : c.data, C = [];
|
|
6584
6584
|
for (const P in v)
|
|
6585
|
-
|
|
6585
|
+
C.push(
|
|
6586
6586
|
Ie.get(v[P], {
|
|
6587
6587
|
headers: {
|
|
6588
6588
|
Authorization: this.defaultMeteoToken,
|
|
@@ -6593,7 +6593,7 @@ const Cc = {
|
|
|
6593
6593
|
console.log(`[${P}] fetch layer error: ${z}`);
|
|
6594
6594
|
})
|
|
6595
6595
|
);
|
|
6596
|
-
const L = await Promise.all(
|
|
6596
|
+
const L = await Promise.all(C);
|
|
6597
6597
|
this.weatherLayers = {}, L.map((P) => {
|
|
6598
6598
|
var S, F, N, B;
|
|
6599
6599
|
const z = ((S = P == null ? void 0 : P.data) == null ? void 0 : S.data) || (P == null ? void 0 : P.data);
|
|
@@ -6606,34 +6606,34 @@ const Cc = {
|
|
|
6606
6606
|
});
|
|
6607
6607
|
}
|
|
6608
6608
|
if ((/* @__PURE__ */ new Date()).valueOf() - (e + o), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
|
|
6609
|
-
const v = (s = this.weatherLayers["swell-direction"]) == null ? void 0 : s.raw,
|
|
6609
|
+
const v = (s = this.weatherLayers["swell-direction"]) == null ? void 0 : s.raw, C = (d = this.weatherLayers["swell-height"]) == null ? void 0 : d.raw;
|
|
6610
6610
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
6611
6611
|
type: "json",
|
|
6612
6612
|
direction: v,
|
|
6613
|
-
height: { raw:
|
|
6613
|
+
height: { raw: C },
|
|
6614
6614
|
etime: k.data.etime
|
|
6615
6615
|
};
|
|
6616
6616
|
}
|
|
6617
6617
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
6618
|
-
const v = (m = this.weatherLayers["current-direction"]) == null ? void 0 : m.raw,
|
|
6618
|
+
const v = (m = this.weatherLayers["current-direction"]) == null ? void 0 : m.raw, C = (p = this.weatherLayers["current-speed"]) == null ? void 0 : p.raw;
|
|
6619
6619
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
6620
6620
|
type: "json",
|
|
6621
6621
|
direction: v,
|
|
6622
|
-
speed: { raw:
|
|
6622
|
+
speed: { raw: C },
|
|
6623
6623
|
etime: k.data.etime
|
|
6624
6624
|
};
|
|
6625
6625
|
}
|
|
6626
6626
|
}
|
|
6627
6627
|
}
|
|
6628
6628
|
this.handleWeatherLayerToggle(), this.handleDrawWeather4Json(), this.$nextTick(() => {
|
|
6629
|
-
var h, f, k, v,
|
|
6630
|
-
(
|
|
6629
|
+
var h, f, k, v, C;
|
|
6630
|
+
(C = (v = (k = (f = (h = this.$parent) == null ? void 0 : h.$refs) == null ? void 0 : f.idmBottomBar) == null ? void 0 : k.$refs) == null ? void 0 : v.capture) == null || C.captureCurrentFrame();
|
|
6631
6631
|
});
|
|
6632
6632
|
}
|
|
6633
6633
|
},
|
|
6634
6634
|
handleWeatherLayerToggle() {
|
|
6635
6635
|
for (const t in this.weatherLayers)
|
|
6636
|
-
this.weatherLayers[t].active = !1, this.weatherLayers[t].version = Math.random() + 1
|
|
6636
|
+
this.weatherLayers[t].active = !1, this.weatherLayers[t].version = Math.random() + 1;
|
|
6637
6637
|
for (const t of this.activeWeatherLayers) {
|
|
6638
6638
|
let e = t.key;
|
|
6639
6639
|
e === "current-direction" && (e = "current"), this.weatherLayers[e] && (this.weatherLayers[e].active = !0, this.weatherLayers[e].version = Math.random() + 1, e === "wind-particle" && (this.weatherLayers[e].particle = this.showWindParticle), e === "current-particle" && (this.weatherLayers[e].particle = this.showCurrentParticle));
|
|
@@ -6732,23 +6732,23 @@ const Cc = {
|
|
|
6732
6732
|
});
|
|
6733
6733
|
}
|
|
6734
6734
|
(/* @__PURE__ */ new Date()).valueOf() - (t + e);
|
|
6735
|
-
const
|
|
6736
|
-
if (
|
|
6737
|
-
if (!
|
|
6735
|
+
const C = this.weatherLayers[h].height;
|
|
6736
|
+
if (C) {
|
|
6737
|
+
if (!C.data) {
|
|
6738
6738
|
const L = [];
|
|
6739
|
-
for (const P in (c =
|
|
6740
|
-
const z =
|
|
6739
|
+
for (const P in (c = C.raw) == null ? void 0 : c.LineString) {
|
|
6740
|
+
const z = C.raw.LineString[P];
|
|
6741
6741
|
for (const R of z)
|
|
6742
6742
|
L.push(
|
|
6743
6743
|
W.lineString(R, {
|
|
6744
6744
|
val: Number(P)
|
|
6745
6745
|
})
|
|
6746
6746
|
);
|
|
6747
|
-
|
|
6747
|
+
C.data = W.featureCollection(L);
|
|
6748
6748
|
}
|
|
6749
6749
|
}
|
|
6750
|
-
if (
|
|
6751
|
-
const L = this.handleBboxClip(
|
|
6750
|
+
if (C.data) {
|
|
6751
|
+
const L = this.handleBboxClip(C.data, o);
|
|
6752
6752
|
k = k.concat(L);
|
|
6753
6753
|
}
|
|
6754
6754
|
(/* @__PURE__ */ new Date()).valueOf() - (t + e);
|
|
@@ -6796,12 +6796,12 @@ const Cc = {
|
|
|
6796
6796
|
});
|
|
6797
6797
|
}
|
|
6798
6798
|
(/* @__PURE__ */ new Date()).valueOf() - (t + e);
|
|
6799
|
-
const
|
|
6800
|
-
if (
|
|
6801
|
-
if (!
|
|
6799
|
+
const C = this.weatherLayers[h].speed;
|
|
6800
|
+
if (C) {
|
|
6801
|
+
if (!C.data) {
|
|
6802
6802
|
const P = [];
|
|
6803
|
-
for (const z in (d =
|
|
6804
|
-
const R =
|
|
6803
|
+
for (const z in (d = C.raw) == null ? void 0 : d.Polygon) {
|
|
6804
|
+
const R = C.raw.Polygon[z];
|
|
6805
6805
|
for (const S of R)
|
|
6806
6806
|
P.push(
|
|
6807
6807
|
W.polygon(S, {
|
|
@@ -6809,31 +6809,31 @@ const Cc = {
|
|
|
6809
6809
|
})
|
|
6810
6810
|
);
|
|
6811
6811
|
}
|
|
6812
|
-
|
|
6812
|
+
C.data = W.featureCollection(P);
|
|
6813
6813
|
}
|
|
6814
|
-
const L = i < this.zoom ?
|
|
6814
|
+
const L = i < this.zoom ? C.data.features.filter((P) => P.properties.val > 0.5) : C.data.features;
|
|
6815
6815
|
k = k.concat(L), (/* @__PURE__ */ new Date()).valueOf() - (t + e);
|
|
6816
6816
|
}
|
|
6817
6817
|
} else if (h === "wind") {
|
|
6818
6818
|
f = !0;
|
|
6819
6819
|
const v = this.weatherLayers.wind.raw;
|
|
6820
|
-
for (const
|
|
6821
|
-
if (
|
|
6822
|
-
const L = v[
|
|
6820
|
+
for (const C in v)
|
|
6821
|
+
if (C > b && C < g && (!(i <= this.zoom) || C % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
6822
|
+
const L = v[C].lng;
|
|
6823
6823
|
p > u ? L.forEach((P, z) => {
|
|
6824
6824
|
var R, S, F, N;
|
|
6825
6825
|
if (i < 2) {
|
|
6826
6826
|
if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
|
|
6827
|
-
const B = W.point([P,
|
|
6828
|
-
dir: ((R = v[
|
|
6829
|
-
spd: v[
|
|
6827
|
+
const B = W.point([P, C], {
|
|
6828
|
+
dir: ((R = v[C].val) == null ? void 0 : R[z]) || ((S = v[C].dir) == null ? void 0 : S[z]),
|
|
6829
|
+
spd: v[C].spd[z]
|
|
6830
6830
|
});
|
|
6831
6831
|
k.push(B);
|
|
6832
6832
|
}
|
|
6833
6833
|
} else if ((P >= p && P <= 180 || P >= -180 && P <= u) && (!(i <= this.zoom) || P % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
6834
|
-
const B = W.point([P,
|
|
6835
|
-
dir: ((F = v[
|
|
6836
|
-
spd: v[
|
|
6834
|
+
const B = W.point([P, C], {
|
|
6835
|
+
dir: ((F = v[C].val) == null ? void 0 : F[z]) || ((N = v[C].dir) == null ? void 0 : N[z]),
|
|
6836
|
+
spd: v[C].spd[z]
|
|
6837
6837
|
});
|
|
6838
6838
|
k.push(B);
|
|
6839
6839
|
}
|
|
@@ -6841,16 +6841,16 @@ const Cc = {
|
|
|
6841
6841
|
var R, S, F, N;
|
|
6842
6842
|
if (i < 2) {
|
|
6843
6843
|
if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
|
|
6844
|
-
const B = W.point([P,
|
|
6845
|
-
dir: ((R = v[
|
|
6846
|
-
spd: v[
|
|
6844
|
+
const B = W.point([P, C], {
|
|
6845
|
+
dir: ((R = v[C].val) == null ? void 0 : R[z]) || ((S = v[C].dir) == null ? void 0 : S[z]),
|
|
6846
|
+
spd: v[C].spd[z]
|
|
6847
6847
|
});
|
|
6848
6848
|
k.push(B);
|
|
6849
6849
|
}
|
|
6850
6850
|
} else if (P >= p && P <= u && (!(i <= this.zoom) || P % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
6851
|
-
const B = W.point([P,
|
|
6852
|
-
dir: ((F = v[
|
|
6853
|
-
spd: v[
|
|
6851
|
+
const B = W.point([P, C], {
|
|
6852
|
+
dir: ((F = v[C].val) == null ? void 0 : F[z]) || ((N = v[C].dir) == null ? void 0 : N[z]),
|
|
6853
|
+
spd: v[C].spd[z]
|
|
6854
6854
|
});
|
|
6855
6855
|
k.push(B);
|
|
6856
6856
|
}
|
|
@@ -6864,11 +6864,11 @@ const Cc = {
|
|
|
6864
6864
|
f = !0;
|
|
6865
6865
|
const v = this.weatherLayers[h].raw;
|
|
6866
6866
|
if (v) {
|
|
6867
|
-
const
|
|
6867
|
+
const C = [];
|
|
6868
6868
|
for (const L in v.Polygon) {
|
|
6869
6869
|
const P = v.Polygon[L];
|
|
6870
6870
|
for (const z of P)
|
|
6871
|
-
|
|
6871
|
+
C.push(
|
|
6872
6872
|
W.polygon(z, {
|
|
6873
6873
|
val: Number(L)
|
|
6874
6874
|
})
|
|
@@ -6877,7 +6877,7 @@ const Cc = {
|
|
|
6877
6877
|
for (const L in v.MultiPolygon) {
|
|
6878
6878
|
const P = v.MultiPolygon[L];
|
|
6879
6879
|
for (const z of P)
|
|
6880
|
-
|
|
6880
|
+
C.push(
|
|
6881
6881
|
W.multiPolygon(z, {
|
|
6882
6882
|
val: Number(L)
|
|
6883
6883
|
})
|
|
@@ -6886,13 +6886,13 @@ const Cc = {
|
|
|
6886
6886
|
for (const L in v.Point) {
|
|
6887
6887
|
const P = v.Point[L];
|
|
6888
6888
|
for (let z = 0; z < ((m = P.lng) == null ? void 0 : m.length); z++)
|
|
6889
|
-
|
|
6889
|
+
C.push(
|
|
6890
6890
|
W.point([P.lng[z], L], {
|
|
6891
6891
|
val: Number(P.val[z])
|
|
6892
6892
|
})
|
|
6893
6893
|
);
|
|
6894
6894
|
}
|
|
6895
|
-
k = k.concat(
|
|
6895
|
+
k = k.concat(C);
|
|
6896
6896
|
}
|
|
6897
6897
|
}
|
|
6898
6898
|
(/* @__PURE__ */ new Date()).valueOf() - (t + e);
|
|
@@ -6903,11 +6903,11 @@ const Cc = {
|
|
|
6903
6903
|
f = !0;
|
|
6904
6904
|
const v = this.weatherLayers[h].raw;
|
|
6905
6905
|
if (v) {
|
|
6906
|
-
const
|
|
6906
|
+
const C = [];
|
|
6907
6907
|
for (const L in v.LineString) {
|
|
6908
6908
|
const P = v.LineString[L];
|
|
6909
6909
|
for (const z of P)
|
|
6910
|
-
|
|
6910
|
+
C.push(
|
|
6911
6911
|
W.lineString(z, {
|
|
6912
6912
|
val: Number(L)
|
|
6913
6913
|
})
|
|
@@ -6915,14 +6915,14 @@ const Cc = {
|
|
|
6915
6915
|
}
|
|
6916
6916
|
for (const L in v.Point)
|
|
6917
6917
|
v.Point[L].lng.forEach((P, z) => {
|
|
6918
|
-
P = X.convertToStdLng(P),
|
|
6918
|
+
P = X.convertToStdLng(P), C.push(
|
|
6919
6919
|
W.point([P, L], {
|
|
6920
6920
|
val: v.Point[L].val[z],
|
|
6921
6921
|
type: v.Point[L].type[z]
|
|
6922
6922
|
})
|
|
6923
6923
|
);
|
|
6924
6924
|
});
|
|
6925
|
-
k = k.concat(
|
|
6925
|
+
k = k.concat(C);
|
|
6926
6926
|
}
|
|
6927
6927
|
}
|
|
6928
6928
|
(/* @__PURE__ */ new Date()).valueOf() - (t + e);
|
|
@@ -6933,7 +6933,6 @@ const Cc = {
|
|
|
6933
6933
|
}
|
|
6934
6934
|
},
|
|
6935
6935
|
handleMove4Weather() {
|
|
6936
|
-
console.log(444, "[handleMove4Weather]");
|
|
6937
6936
|
for (const t in this.weatherLayers)
|
|
6938
6937
|
this.weatherLayers[t].active && this.weatherLayers[t].type === "image" && (this.weatherLayers[t].active = !0, this.weatherLayers[t].version = Math.random() + 1);
|
|
6939
6938
|
this.handleDrawWeather4Json();
|
|
@@ -6975,7 +6974,7 @@ const Cc = {
|
|
|
6975
6974
|
}, Vc = { class: "text-body-1 py-2" }, Xc = { class: "text-body-1 font-weight-medium" }, Oc = { class: "text-body-2 text-label" }, Yc = { class: "text-body-2 text-label" }, Hc = { class: "text-body-2 text-label mb-3" }, Uc = { class: "text-body-1 font-weight-medium" }, Jc = { class: "text-body-2 text-label" }, Kc = { class: "text-body-2 text-label" }, Qc = { class: "text-body-2 text-label mb-3" }, qc = { class: "text-body-1 py-2" }, $c = { class: "text-body-1 font-weight-medium" }, em = { class: "text-body-2 text-label" }, tm = { class: "text-body-2 text-label" }, om = { class: "text-body-2 text-label mb-3" }, am = { class: "text-body-1 font-weight-medium" }, im = { class: "text-body-2 text-label" }, rm = { class: "text-body-2 text-label" }, lm = { class: "text-body-2 text-label mb-3" }, nm = { class: "text-body-1 py-2" }, sm = { class: "text-body-1 font-weight-medium" }, cm = { class: "text-body-2 text-label" }, mm = { class: "text-body-2 text-label" }, dm = { class: "text-body-2 text-label mb-3" };
|
|
6976
6975
|
function hm(t, e, o, i, a, r) {
|
|
6977
6976
|
var J, K, ae, Y, O, ee, D, le, fe, Ae, ze, ce, be, ke, Te;
|
|
6978
|
-
const l = M("VBtn"), c = M("VTooltip"), s = M("VCol"), d = M("VRow"), m = M("VCardText"), p = M("VDivider"), u = M("VCard"), b = M("VSwitch"), g = M("VBtnToggle"), h = M("VCardTitle"), f = M("VCardItem"), k = M("VCheckbox"), v = M("VRadio"),
|
|
6977
|
+
const l = M("VBtn"), c = M("VTooltip"), s = M("VCol"), d = M("VRow"), m = M("VCardText"), p = M("VDivider"), u = M("VCard"), b = M("VSwitch"), g = M("VBtnToggle"), h = M("VCardTitle"), f = M("VCardItem"), k = M("VCheckbox"), v = M("VRadio"), C = M("IdmWindBarb"), L = M("IdmSigWaveHeight"), P = M("IdmCurrentDirection"), z = M("IdmPrmsl"), R = M("IdmWindParticle"), S = M("IdmCurrentParticle"), F = M("IdmWave"), N = M("IdmSwell"), B = M("IdmIceEdge"), Q = M("IdmIceCover"), q = M("IdmIceThickness"), oe = M("IdmPrecip3h"), ge = M("IdmVisibility"), he = M("IdmWaterTemp"), E = M("IdmTemp");
|
|
6979
6978
|
return A(), I("div", Mc, [
|
|
6980
6979
|
n("div", {
|
|
6981
6980
|
class: "menu-bar-box transition pa-1",
|
|
@@ -7440,10 +7439,10 @@ function hm(t, e, o, i, a, r) {
|
|
|
7440
7439
|
}),
|
|
7441
7440
|
w(m, { class: "" }, {
|
|
7442
7441
|
default: x(() => {
|
|
7443
|
-
var $, me, Ye, Be,
|
|
7442
|
+
var $, me, Ye, Be, _e, De, re, Me, pe, xe, We, Ue, He, H, ve, Ee, Ze, Ve, te, Ne, ne, ot, at, it, Fe, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, At, kt, Lt, zt, Ct, _t, Mt, Pt, St, Tt, Rt, It, Dt, Et, Gt, Ft, jt, Bt, Nt, Wt, Zt, Vt, Xt, Ot, Yt, Ht, Ut, Jt, Kt, Qt, qt, $t, eo, to, oo, ao, io, ro, lo, no, so, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, Ao, ko, Lo, zo, Co, _o, Mo, Po, So, To, Ro, Io, Do, Eo, Go;
|
|
7444
7443
|
return [
|
|
7445
7444
|
n("div", Vc, y(t.$t("weather.atmospheric")), 1),
|
|
7446
|
-
n("div", Xc, y((Ye = (me = ($ = a.models) == null ? void 0 : $.weather) == null ? void 0 : me.NOAA) == null ? void 0 : Ye.source) + " " + y((De = (
|
|
7445
|
+
n("div", Xc, y((Ye = (me = ($ = a.models) == null ? void 0 : $.weather) == null ? void 0 : me.NOAA) == null ? void 0 : Ye.source) + " " + y((De = (_e = (Be = a.models) == null ? void 0 : Be.weather) == null ? void 0 : _e.NOAA) == null ? void 0 : De.spatialResolution) + y(t.$t("units.km")) + " " + y((xe = (pe = (Me = (re = a.models) == null ? void 0 : re.weather) == null ? void 0 : Me.NOAA) == null ? void 0 : pe.meta) == null ? void 0 : xe.days) + y(t.$t("units.days")), 1),
|
|
7447
7446
|
n("div", Oc, y(t.$t("weather.source")) + ": NOAA", 1),
|
|
7448
7447
|
n("div", Yc, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateUpdate((H = (He = (Ue = (We = a.models) == null ? void 0 : We.weather) == null ? void 0 : Ue.NOAA) == null ? void 0 : He.meta) == null ? void 0 : H.availabilityTime)), 1),
|
|
7449
7448
|
n("div", Hc, y(t.$t("weather.referenceTime")) + ": " + y(r.computeDateZ((Ve = (Ze = (Ee = (ve = a.models) == null ? void 0 : ve.weather) == null ? void 0 : Ee.NOAA) == null ? void 0 : Ze.meta) == null ? void 0 : Ve.initialisationTime)), 1),
|
|
@@ -7453,7 +7452,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
7453
7452
|
n("div", Qc, y(t.$t("weather.referenceTime")) + ": " + y(r.computeDateZ((xt = (wt = (bt = (yt = a.models) == null ? void 0 : yt.weather) == null ? void 0 : bt.ECMWF) == null ? void 0 : wt.meta) == null ? void 0 : xt.initialisationTime)), 1),
|
|
7454
7453
|
w(p),
|
|
7455
7454
|
n("div", qc, y(t.$t("weather.wave")), 1),
|
|
7456
|
-
n("div", $c, y((Lt = (kt = (At = (vt = a.models) == null ? void 0 : vt.marine) == null ? void 0 : At.wave) == null ? void 0 : kt.NOAA) == null ? void 0 : Lt.source) + " " + y((Mt = (
|
|
7455
|
+
n("div", $c, y((Lt = (kt = (At = (vt = a.models) == null ? void 0 : vt.marine) == null ? void 0 : At.wave) == null ? void 0 : kt.NOAA) == null ? void 0 : Lt.source) + " " + y((Mt = (_t = (Ct = (zt = a.models) == null ? void 0 : zt.marine) == null ? void 0 : Ct.wave) == null ? void 0 : _t.NOAA) == null ? void 0 : Mt.spatialResolution) + y(t.$t("units.km")) + " " + y((It = (Rt = (Tt = (St = (Pt = a.models) == null ? void 0 : Pt.marine) == null ? void 0 : St.wave) == null ? void 0 : Tt.NOAA) == null ? void 0 : Rt.meta) == null ? void 0 : It.days) + y(t.$t("units.days")), 1),
|
|
7457
7456
|
n("div", em, y(t.$t("weather.source")) + ": NOAA", 1),
|
|
7458
7457
|
n("div", tm, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateUpdate((jt = (Ft = (Gt = (Et = (Dt = a.models) == null ? void 0 : Dt.marine) == null ? void 0 : Et.wave) == null ? void 0 : Gt.NOAA) == null ? void 0 : Ft.meta) == null ? void 0 : jt.availabilityTime)), 1),
|
|
7459
7458
|
n("div", om, y(t.$t("weather.referenceTime")) + ": " + y(r.computeDateZ((Vt = (Zt = (Wt = (Nt = (Bt = a.models) == null ? void 0 : Bt.marine) == null ? void 0 : Nt.wave) == null ? void 0 : Wt.NOAA) == null ? void 0 : Zt.meta) == null ? void 0 : Vt.initialisationTime)), 1),
|
|
@@ -7463,9 +7462,9 @@ function hm(t, e, o, i, a, r) {
|
|
|
7463
7462
|
n("div", lm, y(t.$t("weather.referenceTime")) + ": " + y(r.computeDateZ((po = (ho = (mo = (co = (so = a.models) == null ? void 0 : so.marine) == null ? void 0 : co.wave) == null ? void 0 : mo.ECMWF) == null ? void 0 : ho.meta) == null ? void 0 : po.initialisationTime)), 1),
|
|
7464
7463
|
w(p),
|
|
7465
7464
|
n("div", nm, y(t.$t("weather.currents")), 1),
|
|
7466
|
-
n("div", sm, y((yo = (fo = (go = (uo = a.models) == null ? void 0 : uo.marine) == null ? void 0 : go.current) == null ? void 0 : fo.ECMWF) == null ? void 0 : yo.source) + " " + y((vo = (xo = (wo = (bo = a.models) == null ? void 0 : bo.marine) == null ? void 0 : wo.current) == null ? void 0 : xo.ECMWF) == null ? void 0 : vo.spatialResolution) + y(t.$t("units.km")) + " " + y((
|
|
7465
|
+
n("div", sm, y((yo = (fo = (go = (uo = a.models) == null ? void 0 : uo.marine) == null ? void 0 : go.current) == null ? void 0 : fo.ECMWF) == null ? void 0 : yo.source) + " " + y((vo = (xo = (wo = (bo = a.models) == null ? void 0 : bo.marine) == null ? void 0 : wo.current) == null ? void 0 : xo.ECMWF) == null ? void 0 : vo.spatialResolution) + y(t.$t("units.km")) + " " + y((Co = (zo = (Lo = (ko = (Ao = a.models) == null ? void 0 : Ao.marine) == null ? void 0 : ko.current) == null ? void 0 : Lo.ECMWF) == null ? void 0 : zo.meta) == null ? void 0 : Co.days) + y(t.$t("units.days")), 1),
|
|
7467
7466
|
n("div", cm, y(t.$t("weather.source")) + ": ECMWF", 1),
|
|
7468
|
-
n("div", mm, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateUpdate((To = (So = (Po = (Mo = (
|
|
7467
|
+
n("div", mm, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateUpdate((To = (So = (Po = (Mo = (_o = a.models) == null ? void 0 : _o.marine) == null ? void 0 : Mo.current) == null ? void 0 : Po.ECMWF) == null ? void 0 : So.meta) == null ? void 0 : To.availabilityTime)), 1),
|
|
7469
7468
|
n("div", dm, y(t.$t("weather.referenceTime")) + ": " + y(r.computeDateZ((Go = (Eo = (Do = (Io = (Ro = a.models) == null ? void 0 : Ro.marine) == null ? void 0 : Io.current) == null ? void 0 : Do.ECMWF) == null ? void 0 : Eo.meta) == null ? void 0 : Go.initialisationTime)), 1)
|
|
7470
7469
|
];
|
|
7471
7470
|
}),
|
|
@@ -7476,7 +7475,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
7476
7475
|
})
|
|
7477
7476
|
], 2)
|
|
7478
7477
|
], 6),
|
|
7479
|
-
o.map ? (A(), j(
|
|
7478
|
+
o.map ? (A(), j(C, U({
|
|
7480
7479
|
key: 1,
|
|
7481
7480
|
ref: "windBarb",
|
|
7482
7481
|
map: o.map,
|
|
@@ -7590,7 +7589,7 @@ function hm(t, e, o, i, a, r) {
|
|
|
7590
7589
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : G("", !0)
|
|
7591
7590
|
]);
|
|
7592
7591
|
}
|
|
7593
|
-
const pm = /* @__PURE__ */ ie(
|
|
7592
|
+
const pm = /* @__PURE__ */ ie(_c, [["render", hm]]), Fo = [
|
|
7594
7593
|
{
|
|
7595
7594
|
rank: 0,
|
|
7596
7595
|
name: "Best Match",
|
|
@@ -7937,7 +7936,7 @@ let wi = class {
|
|
|
7937
7936
|
}), a;
|
|
7938
7937
|
}
|
|
7939
7938
|
static pickHourly(e, o) {
|
|
7940
|
-
var i, a, r, l, c, s, d, m, p, u, b, g, h, f, k, v,
|
|
7939
|
+
var i, a, r, l, c, s, d, m, p, u, b, g, h, f, k, v, C, L, P, z, R, S, F, N, B, Q, q, oe, ge, he, E, J, K, ae, Y, O, ee, D, le, fe, Ae, ze, ce, be, ke, Te, $, me, Ye, Be, _e, De;
|
|
7941
7940
|
const re = typeof o == "string" ? T(o) : o, Me = e == null ? void 0 : e.weather, pe = e == null ? void 0 : e.marine, xe = T((a = (i = Me == null ? void 0 : Me[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), We = xe.clone().add((c = (l = (r = Me == null ? void 0 : Me[0]) == null ? void 0 : r.hourly) == null ? void 0 : l.time) == null ? void 0 : c.at(0), "h"), Ue = xe.clone().add((m = (d = (s = Me == null ? void 0 : Me[0]) == null ? void 0 : s.hourly) == null ? void 0 : d.time) == null ? void 0 : m.at(-1), "h"), He = [];
|
|
7942
7941
|
if (re.isBetween(We, Ue, "millisecond", "[]")) {
|
|
7943
7942
|
const H = re.utc().diff(We, "h", !1);
|
|
@@ -7959,7 +7958,7 @@ let wi = class {
|
|
|
7959
7958
|
dp: (k = ne == null ? void 0 : ne.dew_point_2m) == null ? void 0 : k.at(H),
|
|
7960
7959
|
precip: {
|
|
7961
7960
|
probability: (v = ne == null ? void 0 : ne.precipitation_probability) == null ? void 0 : v.at(H),
|
|
7962
|
-
sum: (
|
|
7961
|
+
sum: (C = ne == null ? void 0 : ne.precipitation) == null ? void 0 : C.at(H),
|
|
7963
7962
|
sum1Hours: (L = ne == null ? void 0 : ne.precipitation) == null ? void 0 : L.at(H),
|
|
7964
7963
|
sum3Hours: Math.round(Ze * 100) / 100,
|
|
7965
7964
|
sum6Hours: Math.round(Ve * 100) / 100,
|
|
@@ -8019,7 +8018,7 @@ let wi = class {
|
|
|
8019
8018
|
degree: (Ye = te == null ? void 0 : te.ocean_current_direction) == null ? void 0 : Ye.at(H),
|
|
8020
8019
|
bearing: ((Be = te == null ? void 0 : te.ocean_current_direction) == null ? void 0 : Be.at(H)) ?? null
|
|
8021
8020
|
},
|
|
8022
|
-
sst: (
|
|
8021
|
+
sst: (_e = te == null ? void 0 : te.sea_surface_temperature) == null ? void 0 : _e.at(H),
|
|
8023
8022
|
height: (De = te == null ? void 0 : te.sea_level_height_msl) == null ? void 0 : De.at(H)
|
|
8024
8023
|
}, Ee.wave = this.parseWave(Ee.wave, ve == null ? void 0 : ve.wind), Ee.current.direction = this.degree2Direction(Ee.current.degree), Object.assign(He[Ze], Ee), Ze++;
|
|
8025
8024
|
}
|
|
@@ -8050,15 +8049,15 @@ let wi = class {
|
|
|
8050
8049
|
};
|
|
8051
8050
|
}
|
|
8052
8051
|
static pickDaily(e, o) {
|
|
8053
|
-
var i, a, r, l, c, s, d, m, p, u, b, g, h, f, k, v,
|
|
8052
|
+
var i, a, r, l, c, s, d, m, p, u, b, g, h, f, k, v, C, L, P, z, R, S, F, N, B, Q, q, oe, ge, he, E, J, K, ae, Y, O, ee, D, le, fe, Ae, ze, ce, be;
|
|
8054
8053
|
const ke = typeof o == "string" ? T(o) : o, Te = e == null ? void 0 : e.weather, $ = e == null ? void 0 : e.marine, me = T((r = (a = (i = Te == null ? void 0 : Te[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), Ye = T((s = (c = (l = Te == null ? void 0 : Te[0]) == null ? void 0 : l.daily) == null ? void 0 : c.time) == null ? void 0 : s.at(-1)), Be = [];
|
|
8055
8054
|
if (ke.isBetween(me, Ye, "millisecond", "[]")) {
|
|
8056
|
-
let
|
|
8055
|
+
let _e, De;
|
|
8057
8056
|
const re = ke.diff(me, "d", !1);
|
|
8058
8057
|
if (Te)
|
|
8059
8058
|
for (const Me of Te) {
|
|
8060
8059
|
const pe = Me.daily;
|
|
8061
|
-
|
|
8060
|
+
_e = {
|
|
8062
8061
|
code: (d = pe.weather_code) == null ? void 0 : d.at(re),
|
|
8063
8062
|
temp: {
|
|
8064
8063
|
max: (m = pe.temperature_2m_max) == null ? void 0 : m.at(re),
|
|
@@ -8074,7 +8073,7 @@ let wi = class {
|
|
|
8074
8073
|
rainSum: (f = pe.rain_sum) == null ? void 0 : f.at(re),
|
|
8075
8074
|
snowfallSum: (k = pe.snowfall_sum) == null ? void 0 : k.at(re),
|
|
8076
8075
|
showersSum: (v = pe.showers_sum) == null ? void 0 : v.at(re),
|
|
8077
|
-
hours: (
|
|
8076
|
+
hours: (C = pe.precipitation_hours) == null ? void 0 : C.at(re),
|
|
8078
8077
|
probability: (L = pe.precipitation_probability_max) == null ? void 0 : L.at(re)
|
|
8079
8078
|
},
|
|
8080
8079
|
rh: {
|
|
@@ -8090,11 +8089,11 @@ let wi = class {
|
|
|
8090
8089
|
bearing: ((Q = pe.wind_direction_10m_dominant) == null ? void 0 : Q.at(re)) !== null ? (((q = pe.wind_direction_10m_dominant) == null ? void 0 : q.at(re)) + 180) % 360 : null
|
|
8091
8090
|
}
|
|
8092
8091
|
};
|
|
8093
|
-
const { name: xe, url: We, bg: Ue } = this.parseWeatherCode(
|
|
8094
|
-
|
|
8092
|
+
const { name: xe, url: We, bg: Ue } = this.parseWeatherCode(_e.code, !0);
|
|
8093
|
+
_e.name = xe, _e.url = We, _e.bg = Ue, _e.wind.scale = this.beaufort(this.kts2ms(_e.wind.kts)), _e.wind.direction = this.degree2Direction(_e.wind.degree), Be.push({
|
|
8095
8094
|
utc: me.add(re, "d").utc().format(),
|
|
8096
8095
|
model: Me.model,
|
|
8097
|
-
weather: { ...
|
|
8096
|
+
weather: { ..._e }
|
|
8098
8097
|
});
|
|
8099
8098
|
}
|
|
8100
8099
|
if ($) {
|
|
@@ -8125,7 +8124,7 @@ let wi = class {
|
|
|
8125
8124
|
bearing: ((ce = xe.wind_wave_direction_dominant) == null ? void 0 : ce.at(re)) !== null ? (((be = xe.wind_wave_direction_dominant) == null ? void 0 : be.at(re)) + 180) % 360 : null
|
|
8126
8125
|
}
|
|
8127
8126
|
}
|
|
8128
|
-
}, De.wave = this.parseWave(De.wave,
|
|
8127
|
+
}, De.wave = this.parseWave(De.wave, _e == null ? void 0 : _e.wind), Object.assign(Be[Me], De), Me++;
|
|
8129
8128
|
}
|
|
8130
8129
|
}
|
|
8131
8130
|
}
|
|
@@ -8763,7 +8762,7 @@ const um = {
|
|
|
8763
8762
|
handleRefresh() {
|
|
8764
8763
|
var e, o;
|
|
8765
8764
|
(((o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) || []).forEach((i) => {
|
|
8766
|
-
var r, l, c, s, d, m, p, u, b, g, h, f, k, v,
|
|
8765
|
+
var r, l, c, s, d, m, p, u, b, g, h, f, k, v, C, L, P, z, R;
|
|
8767
8766
|
let a = "";
|
|
8768
8767
|
switch (!0) {
|
|
8769
8768
|
case (((r = i.properties.wind) == null ? void 0 : r.kts) < 32 || ((l = i.properties) == null ? void 0 : l.kts) < 32):
|
|
@@ -8788,7 +8787,7 @@ const um = {
|
|
|
8788
8787
|
a = "superTy";
|
|
8789
8788
|
break;
|
|
8790
8789
|
}
|
|
8791
|
-
i.properties.levelI18n = a, ((k = i.geometry) == null ? void 0 : k.type) === "Point" && ((v = i.properties) != null && v.important) && (i.properties.format = (L = (
|
|
8790
|
+
i.properties.levelI18n = a, ((k = i.geometry) == null ? void 0 : k.type) === "Point" && ((v = i.properties) != null && v.important) && (i.properties.format = (L = (C = T(i.properties.date)) == null ? void 0 : C.utcOffset(this.timeZone)) == null ? void 0 : L.format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`)), ((P = i.geometry) == null ? void 0 : P.type) === "Point" && (i.properties.Name = ((R = (z = i.properties.name) == null ? void 0 : z.trim()) == null ? void 0 : R.replace(/^./, (S) => S.toUpperCase())) || i.properties.nameCn, i.properties.nameCn = i.properties.nameCn || i.properties.Name || "-");
|
|
8792
8791
|
}), this.handleInit();
|
|
8793
8792
|
},
|
|
8794
8793
|
handleInit() {
|
|
@@ -9040,7 +9039,7 @@ const um = {
|
|
|
9040
9039
|
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), (t = this.interpolateMarkers) == null || t.forEach((a) => a == null ? void 0 : a.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)), (e = this.map) == null || e.off("click", this.clickLayers, this.handleClick), (o = this.map) == null || o.off("mousemove", this.hoverLayers, this.handleHover), (i = this.map) == null || i.off("mouseleave", this.hoverLayers, this.handleLeave), this.handleCloseInfoMarker();
|
|
9041
9040
|
},
|
|
9042
9041
|
handleDateChange() {
|
|
9043
|
-
var t, e, o, i, a, r, l, c, s, d, m, p, u, b, g, h, f, k, v,
|
|
9042
|
+
var t, e, o, i, a, r, l, c, s, d, m, p, u, b, g, h, f, k, v, C, L, P, z, R, S, F, N, B, Q, q, oe, ge, he, E, J;
|
|
9044
9043
|
if ((t = this.interpolateMarkers) == null || t.forEach((K) => K == null ? void 0 : K.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
9045
9044
|
const K = T(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), ae = this.interpolateData.filter((D) => D.properties.date === (K == null ? void 0 : K.format()) && !D.properties.disabled), Y = this.handleComputePolygons(ae), O = W.featureCollection([...ae]);
|
|
9046
9045
|
Y.forEach((D) => {
|
|
@@ -9084,7 +9083,7 @@ const um = {
|
|
|
9084
9083
|
D.properties.nameCn = ce, D.properties.Name = ((m = (d = D.properties.name) == null ? void 0 : d.trim()) == null ? void 0 : m.replace(/^./, (be) => be.toUpperCase())) || D.properties.nameCn, ee.push(D);
|
|
9085
9084
|
}
|
|
9086
9085
|
let le = this.Theme.current.value.colors["tropicals-ty"];
|
|
9087
|
-
((u = (p = D.properties) == null ? void 0 : p.wind) == null ? void 0 : u.kts) < 32 || !((g = (b = D.properties) == null ? void 0 : b.wind) != null && g.kts) ? le = this.Theme.current.value.colors["tropicals-td"] : ((f = (h = D.properties) == null ? void 0 : h.wind) == null ? void 0 : f.kts) >= 32 && ((v = (k = D.properties) == null ? void 0 : k.wind) == null ? void 0 : v.kts) < 47 ? le = this.Theme.current.value.colors["tropicals-ts"] : ((L = (
|
|
9086
|
+
((u = (p = D.properties) == null ? void 0 : p.wind) == null ? void 0 : u.kts) < 32 || !((g = (b = D.properties) == null ? void 0 : b.wind) != null && g.kts) ? le = this.Theme.current.value.colors["tropicals-td"] : ((f = (h = D.properties) == null ? void 0 : h.wind) == null ? void 0 : f.kts) >= 32 && ((v = (k = D.properties) == null ? void 0 : k.wind) == null ? void 0 : v.kts) < 47 ? le = this.Theme.current.value.colors["tropicals-ts"] : ((L = (C = D.properties) == null ? void 0 : C.wind) == null ? void 0 : L.kts) >= 47 && ((z = (P = D.properties) == null ? void 0 : P.wind) == null ? void 0 : z.kts) < 63 ? le = this.Theme.current.value.colors["tropicals-sts"] : ((S = (R = D.properties) == null ? void 0 : R.wind) == null ? void 0 : S.kts) >= 63 && ((N = (F = D.properties) == null ? void 0 : F.wind) == null ? void 0 : N.kts) < 79 ? le = this.Theme.current.value.colors["tropicals-ty"] : ((Q = (B = D.properties) == null ? void 0 : B.wind) == null ? void 0 : Q.kts) >= 79 && ((oe = (q = D.properties) == null ? void 0 : q.wind) == null ? void 0 : oe.kts) < 94 ? le = this.Theme.current.value.colors["tropicals-sty"] : ((he = (ge = D.properties) == null ? void 0 : ge.wind) == null ? void 0 : he.kts) >= 94 ? le = this.Theme.current.value.colors["tropicals-super-ty"] : le = this.Theme.current.value.colors["tropicals-ty"];
|
|
9088
9087
|
const fe = `<svg t="1719918955501"
|
|
9089
9088
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
9090
9089
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -9241,7 +9240,7 @@ const um = {
|
|
|
9241
9240
|
}, gm = { class: "idm-tropical-gl4" }, fm = { class: "pb-1" }, ym = { class: "text-h5 font-weight-600" }, bm = {
|
|
9242
9241
|
key: 0,
|
|
9243
9242
|
class: "text-h5 font-weight-600"
|
|
9244
|
-
}, wm = { class: "text-body-1" }, xm = { class: "text-label" }, vm = { class: "d-flex justify-space-between align-center" }, Am = { class: "w-60" }, km = { class: "text-label pr-1" }, Lm = { class: "flex-1-1-0" }, zm = { class: "text-label pr-1" },
|
|
9243
|
+
}, wm = { class: "text-body-1" }, xm = { class: "text-label" }, vm = { class: "d-flex justify-space-between align-center" }, Am = { class: "w-60" }, km = { class: "text-label pr-1" }, Lm = { class: "flex-1-1-0" }, zm = { class: "text-label pr-1" }, Cm = { class: "py-2 d-flex justify-space-between align-center" }, _m = { class: "w-60" }, Mm = { class: "text-label pr-1" }, Pm = { class: "flex-1-1-0" }, Sm = { class: "text-label pr-1" }, Tm = { class: "d-flex align-center flex-1-1-100 justify-space-between mt-n1" }, Rm = {
|
|
9245
9244
|
class: "text-label pr-1",
|
|
9246
9245
|
style: { width: "70px" }
|
|
9247
9246
|
}, Im = { class: "model-box d-flex justify-end align-center flex-wrap ga-1 pa-1" }, Dm = { class: "more" }, Em = {
|
|
@@ -9251,7 +9250,7 @@ const um = {
|
|
|
9251
9250
|
key: 1,
|
|
9252
9251
|
class: "my-3 w-100",
|
|
9253
9252
|
style: { height: "80px" }
|
|
9254
|
-
}, rd = { class: "legend d-flex justify-start align-center" }, ld = { class: "label" }, nd = { class: "legend d-flex justify-start align-center" }, sd = { class: "label" }, cd = { class: "legend d-flex justify-start align-center" }, md = { class: "label" }, dd = { class: "legend d-flex justify-start align-center" }, hd = { class: "label" }, pd = { class: "legend d-flex justify-start align-center" }, ud = { class: "label" }, gd = { class: "legend d-flex justify-start align-center" }, fd = { class: "label" }, yd = { class: "legend d-flex justify-start align-center" }, bd = { class: "label" }, wd = { class: "legend d-flex justify-start align-center" }, xd = { class: "label" }, vd = { class: "legend d-flex justify-start align-center" }, Ad = { class: "label" }, kd = { class: "legend d-flex justify-start align-center" }, Ld = { class: "label" }, zd = { class: "d-flex justify-star align-center" },
|
|
9253
|
+
}, rd = { class: "legend d-flex justify-start align-center" }, ld = { class: "label" }, nd = { class: "legend d-flex justify-start align-center" }, sd = { class: "label" }, cd = { class: "legend d-flex justify-start align-center" }, md = { class: "label" }, dd = { class: "legend d-flex justify-start align-center" }, hd = { class: "label" }, pd = { class: "legend d-flex justify-start align-center" }, ud = { class: "label" }, gd = { class: "legend d-flex justify-start align-center" }, fd = { class: "label" }, yd = { class: "legend d-flex justify-start align-center" }, bd = { class: "label" }, wd = { class: "legend d-flex justify-start align-center" }, xd = { class: "label" }, vd = { class: "legend d-flex justify-start align-center" }, Ad = { class: "label" }, kd = { class: "legend d-flex justify-start align-center" }, Ld = { class: "label" }, zd = { class: "d-flex justify-star align-center" }, Cd = { class: "font-weight-600 mr-1" }, _d = { class: "" }, Md = { class: "port-box d-flex flex-column justify-center align-start ga-2" }, Pd = {
|
|
9255
9254
|
key: 0,
|
|
9256
9255
|
class: "d-flex justify-start align-center"
|
|
9257
9256
|
}, Sd = { class: "text-label pr-1" }, Td = {
|
|
@@ -9322,11 +9321,11 @@ function Jd(t, e, o, i, a, r) {
|
|
|
9322
9321
|
default: x(() => [
|
|
9323
9322
|
w(s, null, {
|
|
9324
9323
|
default: x(() => {
|
|
9325
|
-
var b, g, h, f, k, v,
|
|
9324
|
+
var b, g, h, f, k, v, C, L, P, z, R, S;
|
|
9326
9325
|
return [
|
|
9327
9326
|
n("div", fm, [
|
|
9328
9327
|
n("span", ym, y(o.locale === "en" ? (b = a.activeTropicals) == null ? void 0 : b.Name : ((g = a.activeTropicals) == null ? void 0 : g.nameCn) || ((h = a.activeTropicals) == null ? void 0 : h.Name) || "-"), 1),
|
|
9329
|
-
(k = (f = a.activeTropicals) == null ? void 0 : f.history) != null && k.levelI18n ? (A(), I("span", bm, " , " + y(t.$t("tropical." + ((
|
|
9328
|
+
(k = (f = a.activeTropicals) == null ? void 0 : f.history) != null && k.levelI18n ? (A(), I("span", bm, " , " + y(t.$t("tropical." + ((C = (v = a.activeTropicals) == null ? void 0 : v.history) == null ? void 0 : C.levelI18n))), 1)) : G("", !0)
|
|
9330
9329
|
]),
|
|
9331
9330
|
w(l, {
|
|
9332
9331
|
icon: "",
|
|
@@ -9352,7 +9351,7 @@ function Jd(t, e, o, i, a, r) {
|
|
|
9352
9351
|
w(d),
|
|
9353
9352
|
w(s, { class: "text-body-1 py-3" }, {
|
|
9354
9353
|
default: x(() => {
|
|
9355
|
-
var b, g, h, f, k, v,
|
|
9354
|
+
var b, g, h, f, k, v, C, L, P;
|
|
9356
9355
|
return [
|
|
9357
9356
|
n("div", vm, [
|
|
9358
9357
|
n("div", Am, [
|
|
@@ -9365,10 +9364,10 @@ function Jd(t, e, o, i, a, r) {
|
|
|
9365
9364
|
n("span", null, y(((v = (k = a.activeTropicals) == null ? void 0 : k.history) == null ? void 0 : v.pressure) || "-") + " hPa", 1)
|
|
9366
9365
|
])
|
|
9367
9366
|
]),
|
|
9368
|
-
n("div",
|
|
9369
|
-
n("div",
|
|
9367
|
+
n("div", Cm, [
|
|
9368
|
+
n("div", _m, [
|
|
9370
9369
|
n("label", Mm, y(t.$t("tropical.moveSpeed")) + " : ", 1),
|
|
9371
|
-
n("span", null, y(((
|
|
9370
|
+
n("span", null, y(((C = r.computeMovement(a.activeTropicals)) == null ? void 0 : C.kts) || "-") + " kts", 1)
|
|
9372
9371
|
]),
|
|
9373
9372
|
n("div", Pm, [
|
|
9374
9373
|
n("label", Sm, y(t.$t("tropical.moveDir")) + " : ", 1),
|
|
@@ -9557,8 +9556,8 @@ function Jd(t, e, o, i, a, r) {
|
|
|
9557
9556
|
var b, g, h, f;
|
|
9558
9557
|
return [
|
|
9559
9558
|
n("div", zd, [
|
|
9560
|
-
n("span",
|
|
9561
|
-
n("span",
|
|
9559
|
+
n("span", Cd, y(o.locale === "en" ? (b = a.hoverPoint) == null ? void 0 : b.Name : ((g = a.hoverPoint) == null ? void 0 : g.nameCn) || ((h = a.hoverPoint) == null ? void 0 : h.Name)), 1),
|
|
9560
|
+
n("span", _d, " [" + y(t.$t("tropical." + ((f = a.hoverPoint) == null ? void 0 : f.levelI18n))) + "]", 1)
|
|
9562
9561
|
])
|
|
9563
9562
|
];
|
|
9564
9563
|
}),
|
|
@@ -9567,7 +9566,7 @@ function Jd(t, e, o, i, a, r) {
|
|
|
9567
9566
|
w(d),
|
|
9568
9567
|
w(s, { class: "text-body-1" }, {
|
|
9569
9568
|
default: x(() => {
|
|
9570
|
-
var b, g, h, f, k, v,
|
|
9569
|
+
var b, g, h, f, k, v, C, L, P, z, R, S, F, N, B, Q, q, oe, ge, he;
|
|
9571
9570
|
return [
|
|
9572
9571
|
n("div", Md, [
|
|
9573
9572
|
((b = a.hoverPoint) == null ? void 0 : b.type) === "forecast" ? (A(), I("div", Pd, [
|
|
@@ -9582,13 +9581,13 @@ function Jd(t, e, o, i, a, r) {
|
|
|
9582
9581
|
n("label", Dd, y(t.$t("tropical.forecast")) + " : ", 1),
|
|
9583
9582
|
n("span", null, y(r.computeTzTime((v = a.hoverPoint) == null ? void 0 : v.date, o.timeZone)), 1)
|
|
9584
9583
|
])) : G("", !0),
|
|
9585
|
-
((
|
|
9584
|
+
((C = a.hoverPoint) == null ? void 0 : C.type) === "forecast" ? (A(), I("div", Ed, [
|
|
9586
9585
|
n("label", Gd, y(t.$t("tropical.model")) + " : ", 1),
|
|
9587
9586
|
n("span", null, y(((L = a.hoverPoint) == null ? void 0 : L.model) ?? "-"), 1)
|
|
9588
9587
|
])) : G("", !0),
|
|
9589
9588
|
((P = a.hoverPoint) == null ? void 0 : P.type) === "forecast" ? (A(), I("div", Fd, [
|
|
9590
9589
|
n("label", jd, y(t.$t("weather.wind")) + " : ", 1),
|
|
9591
|
-
n("span", null, y(((R = JSON.parse((z = a.hoverPoint) == null ? void 0 : z.wind)) == null ? void 0 : R.kts) ?? "-") + " kts", 1)
|
|
9590
|
+
n("span", null, y(((R = JSON.parse(((z = a.hoverPoint) == null ? void 0 : z.wind) || "{}")) == null ? void 0 : R.kts) ?? "-") + " kts", 1)
|
|
9592
9591
|
])) : G("", !0),
|
|
9593
9592
|
((S = a.hoverPoint) == null ? void 0 : S.type) === "history" ? (A(), I("div", Bd, [
|
|
9594
9593
|
n("label", Nd, y(t.$t("weather.wind")) + " : ", 1),
|
|
@@ -9600,11 +9599,11 @@ function Jd(t, e, o, i, a, r) {
|
|
|
9600
9599
|
]),
|
|
9601
9600
|
((B = a.hoverPoint) == null ? void 0 : B.type) === "history" ? (A(), I("div", Vd, [
|
|
9602
9601
|
n("label", Xd, y(t.$t("tropical.moveSpeed")) + " : ", 1),
|
|
9603
|
-
n("span", null, y(((q = JSON.parse((Q = a.hoverPoint) == null ? void 0 : Q.movement)) == null ? void 0 : q.kts) ?? "-") + " kts", 1)
|
|
9602
|
+
n("span", null, y(((q = JSON.parse(((Q = a.hoverPoint) == null ? void 0 : Q.movement) || "{}")) == null ? void 0 : q.kts) ?? "-") + " kts", 1)
|
|
9604
9603
|
])) : G("", !0),
|
|
9605
9604
|
((oe = a.hoverPoint) == null ? void 0 : oe.type) === "history" ? (A(), I("div", Od, [
|
|
9606
9605
|
n("label", Yd, y(t.$t("tropical.moveDir")) + " : ", 1),
|
|
9607
|
-
n("span", null, y(((he = JSON.parse((ge = a.hoverPoint) == null ? void 0 : ge.movement)) == null ? void 0 : he.deg) ?? "-") + " °", 1)
|
|
9606
|
+
n("span", null, y(((he = JSON.parse(((ge = a.hoverPoint) == null ? void 0 : ge.movement) || "{}")) == null ? void 0 : he.deg) ?? "-") + " °", 1)
|
|
9608
9607
|
])) : G("", !0),
|
|
9609
9608
|
n("div", Hd, [
|
|
9610
9609
|
n("label", Ud, y(t.$t("tropical.position")) + " : ", 1),
|
|
@@ -10186,10 +10185,10 @@ const oh = {
|
|
|
10186
10185
|
}), this.loading = !1;
|
|
10187
10186
|
},
|
|
10188
10187
|
initTableData(t) {
|
|
10189
|
-
var o, i, a, r, l, c, s, d, m, p, u, b, g, h, f, k, v,
|
|
10188
|
+
var o, i, a, r, l, c, s, d, m, p, u, b, g, h, f, k, v, C, L, P, z, R, S, F, N, B, Q, q, oe, ge, he, E, J, K, ae, Y, O, ee, D, le, fe;
|
|
10190
10189
|
this.currentHourData = {}, this.positionGmt = (i = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : r.offset;
|
|
10191
10190
|
const e = ((l = Vo.pickHourly(t, T(this.form.dateTime))) == null ? void 0 : l[0]) || {};
|
|
10192
|
-
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((d = (s = e == null ? void 0 : e.weather) == null ? void 0 : s.precip) == null ? void 0 : d.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((p = (m = e == null ? void 0 : e.weather) == null ? void 0 : m.precip) == null ? void 0 : p.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((u = e == null ? void 0 : e.weather) == null ? void 0 : u.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((g = (b = e == null ? void 0 : e.weather) == null ? void 0 : b.wind) == null ? void 0 : g.kts, 1) ?? "-", this.currentHourData.windDir = ((f = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.wind) == null ? void 0 : f.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((v = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : v.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((L = (
|
|
10191
|
+
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((d = (s = e == null ? void 0 : e.weather) == null ? void 0 : s.precip) == null ? void 0 : d.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((p = (m = e == null ? void 0 : e.weather) == null ? void 0 : m.precip) == null ? void 0 : p.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((u = e == null ? void 0 : e.weather) == null ? void 0 : u.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((g = (b = e == null ? void 0 : e.weather) == null ? void 0 : b.wind) == null ? void 0 : g.kts, 1) ?? "-", this.currentHourData.windDir = ((f = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.wind) == null ? void 0 : f.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((v = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : v.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((L = (C = e == null ? void 0 : e.weather) == null ? void 0 : C.wind) == null ? void 0 : L.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((z = (P = e == null ? void 0 : e.wave) == null ? void 0 : P.sig) == null ? void 0 : z.height, 1) ?? "-", this.currentHourData.sigwaveDir = (S = (R = e == null ? void 0 : e.wave) == null ? void 0 : R.sig) == null ? void 0 : S.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((N = (F = e == null ? void 0 : e.wave) == null ? void 0 : F.sig) == null ? void 0 : N.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((Q = (B = e == null ? void 0 : e.wave) == null ? void 0 : B.wd) == null ? void 0 : Q.height, 1) ?? "-", this.currentHourData.windwaveDir = (oe = (q = e == null ? void 0 : e.wave) == null ? void 0 : q.wd) == null ? void 0 : oe.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((he = (ge = e == null ? void 0 : e.wave) == null ? void 0 : ge.wd) == null ? void 0 : he.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((J = (E = e == null ? void 0 : e.wave) == null ? void 0 : E.swell) == null ? void 0 : J.height, 1) ?? "-", this.currentHourData.swellDir = (ae = (K = e == null ? void 0 : e.wave) == null ? void 0 : K.swell) == null ? void 0 : ae.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((O = (Y = e == null ? void 0 : e.wave) == null ? void 0 : Y.swell) == null ? void 0 : O.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ee = e == null ? void 0 : e.current) == null ? void 0 : ee.speed, 1) ?? "-", this.currentHourData.currentDir = (D = e == null ? void 0 : e.current) == null ? void 0 : D.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((le = e == null ? void 0 : e.current) == null ? void 0 : le.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (fe = e == null ? void 0 : e.weather) == null ? void 0 : fe.url;
|
|
10193
10192
|
},
|
|
10194
10193
|
handleBind() {
|
|
10195
10194
|
var t, e;
|
|
@@ -10270,7 +10269,7 @@ const oh = {
|
|
|
10270
10269
|
}, zh = {
|
|
10271
10270
|
cols: "3",
|
|
10272
10271
|
class: "pa-0 px-0 text-left"
|
|
10273
|
-
},
|
|
10272
|
+
}, Ch = { class: "mx-0 py-2 d-flex align-center justify-start" }, _h = {
|
|
10274
10273
|
style: { width: "100px" },
|
|
10275
10274
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
10276
10275
|
}, Mh = {
|
|
@@ -10314,8 +10313,8 @@ function ap(t, e, o, i, a, r) {
|
|
|
10314
10313
|
"open-on-focus": !o.simple,
|
|
10315
10314
|
"open-on-hover": !o.simple
|
|
10316
10315
|
}, {
|
|
10317
|
-
activator: x(({ props:
|
|
10318
|
-
w(l, U(
|
|
10316
|
+
activator: x(({ props: C }) => [
|
|
10317
|
+
w(l, U(C, {
|
|
10319
10318
|
"min-width": "32",
|
|
10320
10319
|
width: "32",
|
|
10321
10320
|
height: "32",
|
|
@@ -10384,7 +10383,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10384
10383
|
default: x(() => [
|
|
10385
10384
|
w(m, {
|
|
10386
10385
|
modelValue: a.form.latDegree,
|
|
10387
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
10386
|
+
"onUpdate:modelValue": e[0] || (e[0] = (C) => a.form.latDegree = C),
|
|
10388
10387
|
rules: a.formRules.latDegree,
|
|
10389
10388
|
label: "",
|
|
10390
10389
|
density: "compact",
|
|
@@ -10407,7 +10406,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10407
10406
|
default: x(() => [
|
|
10408
10407
|
w(m, {
|
|
10409
10408
|
modelValue: a.form.latMinute,
|
|
10410
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
10409
|
+
"onUpdate:modelValue": e[1] || (e[1] = (C) => a.form.latMinute = C),
|
|
10411
10410
|
rules: a.formRules.latMinute,
|
|
10412
10411
|
label: "",
|
|
10413
10412
|
density: "compact",
|
|
@@ -10434,7 +10433,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10434
10433
|
height: "32",
|
|
10435
10434
|
class: "text-body-1 bg-primary",
|
|
10436
10435
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
10437
|
-
onClick: e[2] || (e[2] = (
|
|
10436
|
+
onClick: e[2] || (e[2] = (C) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
|
|
10438
10437
|
}, {
|
|
10439
10438
|
default: x(() => [
|
|
10440
10439
|
Z(y(a.form.latDirection), 1)
|
|
@@ -10462,7 +10461,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10462
10461
|
default: x(() => [
|
|
10463
10462
|
w(m, {
|
|
10464
10463
|
modelValue: a.form.lngDegree,
|
|
10465
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
10464
|
+
"onUpdate:modelValue": e[3] || (e[3] = (C) => a.form.lngDegree = C),
|
|
10466
10465
|
rules: a.formRules.lngDegree,
|
|
10467
10466
|
density: "compact",
|
|
10468
10467
|
variant: "outlined",
|
|
@@ -10482,7 +10481,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10482
10481
|
default: x(() => [
|
|
10483
10482
|
w(m, {
|
|
10484
10483
|
modelValue: a.form.lngMinute,
|
|
10485
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
10484
|
+
"onUpdate:modelValue": e[4] || (e[4] = (C) => a.form.lngMinute = C),
|
|
10486
10485
|
rules: a.formRules.lngMinute,
|
|
10487
10486
|
label: "",
|
|
10488
10487
|
density: "compact",
|
|
@@ -10509,7 +10508,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10509
10508
|
height: "32",
|
|
10510
10509
|
class: "text-body-1 bg-primary",
|
|
10511
10510
|
style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
|
|
10512
|
-
onClick: e[5] || (e[5] = (
|
|
10511
|
+
onClick: e[5] || (e[5] = (C) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
|
|
10513
10512
|
}, {
|
|
10514
10513
|
default: x(() => [
|
|
10515
10514
|
Z(y(a.form.lngDirection), 1)
|
|
@@ -10539,7 +10538,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10539
10538
|
"date-time": a.form.dateTime,
|
|
10540
10539
|
"time-zone": o.timeZone
|
|
10541
10540
|
}, t.$attrs, {
|
|
10542
|
-
onDateTime: e[6] || (e[6] = (
|
|
10541
|
+
onDateTime: e[6] || (e[6] = (C) => a.form.dateTime = C)
|
|
10543
10542
|
}), null, 16, ["date-time", "time-zone"])
|
|
10544
10543
|
]),
|
|
10545
10544
|
_: 1
|
|
@@ -10562,7 +10561,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10562
10561
|
default: x(() => [
|
|
10563
10562
|
w(g, {
|
|
10564
10563
|
modelValue: a.form.forecastModel,
|
|
10565
|
-
"onUpdate:modelValue": e[7] || (e[7] = (
|
|
10564
|
+
"onUpdate:modelValue": e[7] || (e[7] = (C) => a.form.forecastModel = C),
|
|
10566
10565
|
class: "w-100",
|
|
10567
10566
|
rounded: "",
|
|
10568
10567
|
height: "30",
|
|
@@ -10680,11 +10679,11 @@ function ap(t, e, o, i, a, r) {
|
|
|
10680
10679
|
w(d),
|
|
10681
10680
|
w(h, { class: "text-body-1 px-0 py-1" }, {
|
|
10682
10681
|
default: x(() => {
|
|
10683
|
-
var
|
|
10682
|
+
var C, L;
|
|
10684
10683
|
return [
|
|
10685
10684
|
n("div", fh, [
|
|
10686
10685
|
n("div", yh, y(t.$t("time.time")), 1),
|
|
10687
|
-
n("div", bh, y(r.computedTzTime((
|
|
10686
|
+
n("div", bh, y(r.computedTzTime((C = a.currentHourData) == null ? void 0 : C.utc)), 1)
|
|
10688
10687
|
]),
|
|
10689
10688
|
n("div", wh, [
|
|
10690
10689
|
e[22] || (e[22] = n("div", {
|
|
@@ -10699,8 +10698,8 @@ function ap(t, e, o, i, a, r) {
|
|
|
10699
10698
|
n("div", Lh, y(t.$t("weather.sigWave")), 1),
|
|
10700
10699
|
n("div", zh, y(a.currentHourData.sigwaveDir ?? "-") + "/" + y(a.currentHourData.sigwaveHeight ?? "-") + "m/" + y(a.currentHourData.sigwavePeriod ?? "-") + "s ", 1)
|
|
10701
10700
|
]),
|
|
10702
|
-
n("div",
|
|
10703
|
-
n("div",
|
|
10701
|
+
n("div", Ch, [
|
|
10702
|
+
n("div", _h, y(t.$t("weather.windWave")), 1),
|
|
10704
10703
|
n("div", Mh, y(a.currentHourData.windwaveDir ?? "-") + "/" + y(a.currentHourData.windwaveHeight ?? "-") + "m/" + y(a.currentHourData.windwavePeriod ?? "-") + "s ", 1),
|
|
10705
10704
|
n("div", Ph, y(t.$t("weather.swell")), 1),
|
|
10706
10705
|
n("div", Sh, y(a.currentHourData.swellDir ?? "-") + "/" + y(a.currentHourData.swellHeight ?? "-") + "m/" + y(a.currentHourData.swellPeriod ?? "-") + "s ", 1)
|
|
@@ -10718,9 +10717,9 @@ function ap(t, e, o, i, a, r) {
|
|
|
10718
10717
|
w(d),
|
|
10719
10718
|
w(f, { class: "d-flex justify-space-between align-center" }, {
|
|
10720
10719
|
default: x(() => {
|
|
10721
|
-
var
|
|
10720
|
+
var C;
|
|
10722
10721
|
return [
|
|
10723
|
-
(
|
|
10722
|
+
(C = o.followList) != null && C.some((L) => {
|
|
10724
10723
|
var P, z;
|
|
10725
10724
|
return (L == null ? void 0 : L.id) === a.form.followId || ((P = L == null ? void 0 : L.coordinate) == null ? void 0 : P.lng) === a.form.lng && ((z = L == null ? void 0 : L.coordinate) == null ? void 0 : z.lat) === a.form.lat;
|
|
10726
10725
|
}) ? (A(), j(l, {
|
|
@@ -10785,7 +10784,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10785
10784
|
default: x(() => [
|
|
10786
10785
|
w(s, null, {
|
|
10787
10786
|
default: x(() => {
|
|
10788
|
-
var
|
|
10787
|
+
var C;
|
|
10789
10788
|
return [
|
|
10790
10789
|
n("div", Gh, [
|
|
10791
10790
|
n("div", Fh, [
|
|
@@ -10793,7 +10792,7 @@ function ap(t, e, o, i, a, r) {
|
|
|
10793
10792
|
n("div", jh, y(r.computePosition(a.form || a.currentHourData)), 1)
|
|
10794
10793
|
]),
|
|
10795
10794
|
n("div", Bh, [
|
|
10796
|
-
(
|
|
10795
|
+
(C = o.followList) != null && C.some((L) => {
|
|
10797
10796
|
var P, z;
|
|
10798
10797
|
return (L == null ? void 0 : L.id) === a.form.followId || ((P = L == null ? void 0 : L.coordinate) == null ? void 0 : P.lng) === a.form.lng && ((z = L == null ? void 0 : L.coordinate) == null ? void 0 : z.lat) === a.form.lat;
|
|
10799
10798
|
}) ? (A(), j(l, {
|
|
@@ -10851,11 +10850,11 @@ function ap(t, e, o, i, a, r) {
|
|
|
10851
10850
|
w(d),
|
|
10852
10851
|
w(h, { class: "text-body-1 px-0 py-2" }, {
|
|
10853
10852
|
default: x(() => {
|
|
10854
|
-
var
|
|
10853
|
+
var C, L;
|
|
10855
10854
|
return [
|
|
10856
10855
|
n("div", Nh, [
|
|
10857
10856
|
n("div", Wh, y(t.$t("time.time")), 1),
|
|
10858
|
-
n("div", Zh, y(r.computedTzTime((
|
|
10857
|
+
n("div", Zh, y(r.computedTzTime((C = a.currentHourData) == null ? void 0 : C.utc)), 1)
|
|
10859
10858
|
]),
|
|
10860
10859
|
n("div", Vh, [
|
|
10861
10860
|
e[30] || (e[30] = n("div", {
|
|
@@ -12109,7 +12108,7 @@ const cp = {
|
|
|
12109
12108
|
});
|
|
12110
12109
|
}
|
|
12111
12110
|
}
|
|
12112
|
-
}, mp = { class: "text-h6 font-weight-600" }, dp = { class: "text-label mb-1" }, hp = { class: "text-label mb-1" }, pp = { class: "mb-1" }, up = { class: "text-label mb-1" }, gp = { class: "mb-1" }, fp = { class: "text-label mb-1" }, yp = { class: "mb-1" }, bp = { class: "text-label mb-1" }, wp = { class: "color-picker-row d-flex align-start ga-2" }, xp = ["value"], vp = { class: "mb-n2" }, Ap = { class: "text-label mb-1" }, kp = { class: "mb-1" }, Lp = { class: "text-label mb-1" }, zp = { class: "color-picker-row d-flex align-start ga-2" },
|
|
12111
|
+
}, mp = { class: "text-h6 font-weight-600" }, dp = { class: "text-label mb-1" }, hp = { class: "text-label mb-1" }, pp = { class: "mb-1" }, up = { class: "text-label mb-1" }, gp = { class: "mb-1" }, fp = { class: "text-label mb-1" }, yp = { class: "mb-1" }, bp = { class: "text-label mb-1" }, wp = { class: "color-picker-row d-flex align-start ga-2" }, xp = ["value"], vp = { class: "mb-n2" }, Ap = { class: "text-label mb-1" }, kp = { class: "mb-1" }, Lp = { class: "text-label mb-1" }, zp = { class: "color-picker-row d-flex align-start ga-2" }, Cp = ["value"], _p = { class: "mb-n2" }, Mp = { class: "text-label mb-1" }, Pp = {
|
|
12113
12112
|
key: 0,
|
|
12114
12113
|
class: "mb-3"
|
|
12115
12114
|
}, Sp = { class: "text-label mb-1" }, Tp = { class: "mb-1" }, Rp = { class: "text-label mb-1" }, Ip = { class: "color-picker-row d-flex align-start ga-2" }, Dp = ["value"], Ep = { class: "mb-n2" }, Gp = { class: "text-label mb-1" };
|
|
@@ -12175,7 +12174,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12175
12174
|
]),
|
|
12176
12175
|
w(p, {
|
|
12177
12176
|
modelValue: a.markerType,
|
|
12178
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
12177
|
+
"onUpdate:modelValue": e[0] || (e[0] = (C) => a.markerType = C),
|
|
12179
12178
|
mandatory: "",
|
|
12180
12179
|
group: "",
|
|
12181
12180
|
density: "compact",
|
|
@@ -12503,7 +12502,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12503
12502
|
value: a.form.color,
|
|
12504
12503
|
class: "native-color-picker cursor-pointer",
|
|
12505
12504
|
onInput: e[14] || (e[14] = (v) => a.form.color = v.target.value)
|
|
12506
|
-
}, null, 40,
|
|
12505
|
+
}, null, 40, Cp),
|
|
12507
12506
|
w(d, {
|
|
12508
12507
|
modelValue: a.form.color,
|
|
12509
12508
|
"onUpdate:modelValue": e[15] || (e[15] = (v) => a.form.color = v),
|
|
@@ -12514,7 +12513,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12514
12513
|
}, null, 8, ["modelValue", "rules"])
|
|
12515
12514
|
])
|
|
12516
12515
|
]),
|
|
12517
|
-
n("div",
|
|
12516
|
+
n("div", _p, [
|
|
12518
12517
|
n("div", Mp, [
|
|
12519
12518
|
Z(y(t.$t("marker.name")), 1),
|
|
12520
12519
|
e[32] || (e[32] = n("span", { class: "text-danger" }, "*", -1))
|
|
@@ -12575,7 +12574,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12575
12574
|
default: x(() => [
|
|
12576
12575
|
w(m, { class: "px-4 text-body-1" }, {
|
|
12577
12576
|
default: x(() => {
|
|
12578
|
-
var v,
|
|
12577
|
+
var v, C;
|
|
12579
12578
|
return [
|
|
12580
12579
|
(v = o.editLayer) != null && v.id ? G("", !0) : (A(), I("div", Pp, [
|
|
12581
12580
|
n("div", Sp, [
|
|
@@ -12591,7 +12590,7 @@ function Fp(t, e, o, i, a, r) {
|
|
|
12591
12590
|
variant: "flat",
|
|
12592
12591
|
color: "primary",
|
|
12593
12592
|
class: "w-100",
|
|
12594
|
-
disabled: !!((
|
|
12593
|
+
disabled: !!((C = o.editLayer) != null && C.id)
|
|
12595
12594
|
}, {
|
|
12596
12595
|
default: x(() => [
|
|
12597
12596
|
w(l, {
|
|
@@ -13612,27 +13611,27 @@ const du = {
|
|
|
13612
13611
|
const [f, k] = s.geometry.coordinates, v = `<div style="font-size:12px;line-height:1.5;">
|
|
13613
13612
|
<div style="font-weight:600;">${m}</div>
|
|
13614
13613
|
<div>${X.lat2pretty(k, 4).pretty}, ${X.lng2pretty(f, 4).pretty}</div>
|
|
13615
|
-
</div>`,
|
|
13614
|
+
</div>`, C = new ye.Popup({
|
|
13616
13615
|
offset: 40,
|
|
13617
13616
|
closeButton: !1,
|
|
13618
13617
|
closeOnClick: !1,
|
|
13619
13618
|
anchor: "bottom",
|
|
13620
13619
|
className: "marker-popup-dark"
|
|
13621
13620
|
}).setHTML(v), L = new ye.Marker({ color: p }).setLngLat([f, k]).addTo(this.map), P = L.getElement();
|
|
13622
|
-
P.addEventListener("mouseenter", () =>
|
|
13621
|
+
P.addEventListener("mouseenter", () => C.setLngLat([f, k]).addTo(this.map)), P.addEventListener("mouseleave", () => C.remove()), c.push(L);
|
|
13623
13622
|
} else
|
|
13624
13623
|
d === "MultiPoint" && s.geometry.coordinates.forEach(([f, k]) => {
|
|
13625
13624
|
const v = `<div style="font-size:12px;line-height:1.5;">
|
|
13626
13625
|
<div style="font-weight:600;">${m}</div>
|
|
13627
13626
|
<div>${X.lat2pretty(k, 4).pretty}, ${X.lng2pretty(f, 4).pretty}</div>
|
|
13628
|
-
</div>`,
|
|
13627
|
+
</div>`, C = new ye.Popup({
|
|
13629
13628
|
offset: 40,
|
|
13630
13629
|
closeButton: !1,
|
|
13631
13630
|
closeOnClick: !1,
|
|
13632
13631
|
anchor: "bottom",
|
|
13633
13632
|
className: "marker-popup-dark"
|
|
13634
13633
|
}).setHTML(v), L = new ye.Marker({ color: p }).setLngLat([f, k]).addTo(this.map), P = L.getElement();
|
|
13635
|
-
P.addEventListener("mouseenter", () =>
|
|
13634
|
+
P.addEventListener("mouseenter", () => C.setLngLat([f, k]).addTo(this.map)), P.addEventListener("mouseleave", () => C.remove()), c.push(L);
|
|
13636
13635
|
});
|
|
13637
13636
|
}), this.layerMarkers[t.id] = c;
|
|
13638
13637
|
}
|
|
@@ -13776,7 +13775,7 @@ const du = {
|
|
|
13776
13775
|
}, Au = { class: "text-body-1" }, ku = {
|
|
13777
13776
|
key: 2,
|
|
13778
13777
|
class: "list-box w-100 flex-1-1-0 px-4 pb-2 scroll overflow-y-auto"
|
|
13779
|
-
}, Lu = { class: "group-label text-body-1 d-flex justify-space-between align-center py-4" }, zu = { class: "d-flex justify-start align-center pl-2 cursor-pointer" },
|
|
13778
|
+
}, Lu = { class: "group-label text-body-1 d-flex justify-space-between align-center py-4" }, zu = { class: "d-flex justify-start align-center pl-2 cursor-pointer" }, Cu = ["onClick"], _u = { key: 0 }, Mu = {
|
|
13780
13779
|
key: 0,
|
|
13781
13780
|
class: "layer-list flex-1-1-0 overflow-y-hidden pb-2"
|
|
13782
13781
|
}, Pu = { class: "d-flex align-center justify-start ga-2" }, Su = { class: "font-weight-600 layer-name" }, Tu = {
|
|
@@ -13785,7 +13784,7 @@ const du = {
|
|
|
13785
13784
|
};
|
|
13786
13785
|
function Ru(t, e, o, i, a, r) {
|
|
13787
13786
|
var R;
|
|
13788
|
-
const l = M("VBtn"), c = M("VTooltip"), s = M("VSwitch"), d = M("VIcon"), m = M("VTextField"), p = M("VProgressCircular"), u = M("VChip"), b = M("VListItemTitle"), g = M("VListItem"), h = M("VList"), f = M("VCard"), k = M("VMenu"), v = M("VDivider"),
|
|
13787
|
+
const l = M("VBtn"), c = M("VTooltip"), s = M("VSwitch"), d = M("VIcon"), m = M("VTextField"), p = M("VProgressCircular"), u = M("VChip"), b = M("VListItemTitle"), g = M("VListItem"), h = M("VList"), f = M("VCard"), k = M("VMenu"), v = M("VDivider"), C = M("IdmDrawMarker"), L = M("IdmImportMarker"), P = M("IdmGroupDialog"), z = M("DeleteDialog");
|
|
13789
13788
|
return A(), I("div", hu, [
|
|
13790
13789
|
n("div", {
|
|
13791
13790
|
class: "menu-bar-box transition pa-1",
|
|
@@ -13967,9 +13966,9 @@ function Ru(t, e, o, i, a, r) {
|
|
|
13967
13966
|
n("div", {
|
|
13968
13967
|
class: "",
|
|
13969
13968
|
onClick: (B) => S.show = !S.show
|
|
13970
|
-
}, y(S.name), 9,
|
|
13969
|
+
}, y(S.name), 9, Cu)
|
|
13971
13970
|
]),
|
|
13972
|
-
S.name !== "Custom Layers" && !o.simple ? (A(), I("div",
|
|
13971
|
+
S.name !== "Custom Layers" && !o.simple ? (A(), I("div", _u, [
|
|
13973
13972
|
w(l, {
|
|
13974
13973
|
icon: "",
|
|
13975
13974
|
density: "compact",
|
|
@@ -14132,7 +14131,7 @@ function Ru(t, e, o, i, a, r) {
|
|
|
14132
14131
|
}), 128))
|
|
14133
14132
|
]))
|
|
14134
14133
|
], 6),
|
|
14135
|
-
a.drawDialog ? (A(), j(
|
|
14134
|
+
a.drawDialog ? (A(), j(C, {
|
|
14136
14135
|
ref: "drawDialog",
|
|
14137
14136
|
key: ((R = a.currentLayer) == null ? void 0 : R.id) || "new",
|
|
14138
14137
|
map: o.map,
|
|
@@ -14304,7 +14303,7 @@ async function Ke(t, e = {}) {
|
|
|
14304
14303
|
return { ok: !0, data: String(t), status: 200, url: t, fromCache: !1 };
|
|
14305
14304
|
if (o === "dataURL")
|
|
14306
14305
|
return { ok: !0, data: String(t), status: 200, url: t, fromCache: !1, mime: String(t).slice(5).split(";")[0] || "" };
|
|
14307
|
-
let [, f = "", k = ""] = String(t).match(/^data:([^,]*),(.*)$/) || [], v = /;base64/i.test(f) ? atob(k) : decodeURIComponent(k),
|
|
14306
|
+
let [, f = "", k = ""] = String(t).match(/^data:([^,]*),(.*)$/) || [], v = /;base64/i.test(f) ? atob(k) : decodeURIComponent(k), C = new Uint8Array([...v].map((P) => P.charCodeAt(0))), L = new Blob([C], { type: (f || "").split(";")[0] || "" });
|
|
14308
14307
|
return { ok: !0, data: L, status: 200, url: t, fromCache: !1, mime: L.type || "" };
|
|
14309
14308
|
} catch {
|
|
14310
14309
|
return { ok: !1, data: null, status: 0, url: t, fromCache: !1, reason: "special_url_error" };
|
|
@@ -14340,12 +14339,12 @@ async function Ke(t, e = {}) {
|
|
|
14340
14339
|
try {
|
|
14341
14340
|
let f = await fetch(p, { signal: b.signal, credentials: u, headers: l });
|
|
14342
14341
|
if (!f.ok) {
|
|
14343
|
-
let
|
|
14344
|
-
if (r > 0 && Yo.set(s, { until: Date.now() + r, result:
|
|
14342
|
+
let C = { ok: !1, data: null, status: f.status, url: p, fromCache: !1, reason: "http_error" };
|
|
14343
|
+
if (r > 0 && Yo.set(s, { until: Date.now() + r, result: C }), !c) {
|
|
14345
14344
|
let L = `${f.status} ${f.statusText || ""}`.trim();
|
|
14346
14345
|
xi.warnOnce(`http:${f.status}:${o}:${new URL(t, (location == null ? void 0 : location.href) ?? "http://localhost/").origin}`, `HTTP error ${L} while fetching ${o} ${t}`);
|
|
14347
14346
|
}
|
|
14348
|
-
return e.onError && e.onError(
|
|
14347
|
+
return e.onError && e.onError(C), C;
|
|
14349
14348
|
}
|
|
14350
14349
|
if (o === "text")
|
|
14351
14350
|
return { ok: !0, data: await f.text(), status: f.status, url: p, fromCache: !1 };
|
|
@@ -14354,8 +14353,8 @@ async function Ke(t, e = {}) {
|
|
|
14354
14353
|
} catch (f) {
|
|
14355
14354
|
let k = f && typeof f == "object" && "name" in f && f.name === "AbortError" ? String(f.message || "").includes("timeout") ? "timeout" : "abort" : "network", v = { ok: !1, data: null, status: 0, url: p, fromCache: !1, reason: k };
|
|
14356
14355
|
if (!/^blob:/i.test(t) && r > 0 && Yo.set(s, { until: Date.now() + r, result: v }), !c) {
|
|
14357
|
-
let
|
|
14358
|
-
xi.errorOnce(
|
|
14356
|
+
let C = `${k}:${o}:${new URL(t, (location == null ? void 0 : location.href) ?? "http://localhost/").origin}`, L = k === "timeout" ? `Timeout after ${i}ms. Consider increasing timeout or using a proxy for ${t}` : k === "abort" ? `Request aborted while fetching ${o} ${t}` : `Network/CORS issue while fetching ${o} ${t}. A proxy may be required`;
|
|
14357
|
+
xi.errorOnce(C, L);
|
|
14359
14358
|
}
|
|
14360
14359
|
return e.onError && e.onError(v), v;
|
|
14361
14360
|
} finally {
|
|
@@ -14561,10 +14560,10 @@ async function ig(t, e) {
|
|
|
14561
14560
|
let p = (s || c).textContent.trim();
|
|
14562
14561
|
if (!p)
|
|
14563
14562
|
continue;
|
|
14564
|
-
let u = parseInt(d.fontSize, 10) || 24, b = d.fontWeight && d.fontWeight !== "normal" ? d.fontWeight : "normal", g = og(d), h = d.fontVariationSettings && d.fontVariationSettings !== "normal" ? d.fontVariationSettings : "", f = (s || c).className || "", { dataUrl: k, width: v, height:
|
|
14563
|
+
let u = parseInt(d.fontSize, 10) || 24, b = d.fontWeight && d.fontWeight !== "normal" ? d.fontWeight : "normal", g = og(d), h = d.fontVariationSettings && d.fontVariationSettings !== "normal" ? d.fontVariationSettings : "", f = (s || c).className || "", { dataUrl: k, width: v, height: C } = await ag(p, { family: m, weight: b, fontSize: u, color: g, variation: h, className: f });
|
|
14565
14564
|
c.textContent = "";
|
|
14566
14565
|
let L = c.ownerDocument.createElement("img");
|
|
14567
|
-
L.src = k, L.alt = p, L.style.height = `${u}px`, L.style.width = `${Math.max(1, Math.round(v /
|
|
14566
|
+
L.src = k, L.alt = p, L.style.height = `${u}px`, L.style.width = `${Math.max(1, Math.round(v / C * u))}px`, L.style.objectFit = "contain", L.style.verticalAlign = getComputedStyle(c).verticalAlign || "baseline", c.appendChild(L), r++;
|
|
14568
14567
|
} catch {
|
|
14569
14568
|
}
|
|
14570
14569
|
}
|
|
@@ -14836,7 +14835,7 @@ function fg(t) {
|
|
|
14836
14835
|
return t;
|
|
14837
14836
|
let e = /@font-face[^{}]*\{[^}]*\}/gi, o = /* @__PURE__ */ new Set(), i = [];
|
|
14838
14837
|
for (let p of t.match(e) || []) {
|
|
14839
|
-
let u = ((r = p.match(/font-family:\s*([^;]+);/i)) == null ? void 0 : r[1]) || "", b = ta(u), g = (((l = p.match(/font-weight:\s*([^;]+);/i)) == null ? void 0 : l[1]) || "400").trim(), h = (((c = p.match(/font-style:\s*([^;]+);/i)) == null ? void 0 : c[1]) || "normal").trim(), f = (((s = p.match(/font-stretch:\s*([^;]+);/i)) == null ? void 0 : s[1]) || "100%").trim(), k = (((d = p.match(/unicode-range:\s*([^;]+);/i)) == null ? void 0 : d[1]) || "").trim(), v = (((m = p.match(/src\s*:\s*([^;}]+)[;}]/i)) == null ? void 0 : m[1]) || "").trim(),
|
|
14838
|
+
let u = ((r = p.match(/font-family:\s*([^;]+);/i)) == null ? void 0 : r[1]) || "", b = ta(u), g = (((l = p.match(/font-weight:\s*([^;]+);/i)) == null ? void 0 : l[1]) || "400").trim(), h = (((c = p.match(/font-style:\s*([^;]+);/i)) == null ? void 0 : c[1]) || "normal").trim(), f = (((s = p.match(/font-stretch:\s*([^;]+);/i)) == null ? void 0 : s[1]) || "100%").trim(), k = (((d = p.match(/unicode-range:\s*([^;]+);/i)) == null ? void 0 : d[1]) || "").trim(), v = (((m = p.match(/src\s*:\s*([^;}]+)[;}]/i)) == null ? void 0 : m[1]) || "").trim(), C = ba(v, location.href), L = C.length ? C.map((z) => String(z).toLowerCase()).sort().join("|") : v.toLowerCase(), P = [String(b || "").toLowerCase(), g, h, f, k.toLowerCase(), L].join("|");
|
|
14840
14839
|
o.has(P) || (o.add(P), i.push(p));
|
|
14841
14840
|
}
|
|
14842
14841
|
if (i.length === 0)
|
|
@@ -14900,7 +14899,7 @@ async function Qi(t, e, o, i) {
|
|
|
14900
14899
|
}
|
|
14901
14900
|
}
|
|
14902
14901
|
async function bg({ required: t, usedCodepoints: e, exclude: o = void 0, localFonts: i = [], useProxy: a = "" } = {}) {
|
|
14903
|
-
var h, f, k, v,
|
|
14902
|
+
var h, f, k, v, C, L, P, z, R, S, F, N, B, Q, q, oe, ge, he;
|
|
14904
14903
|
t instanceof Set || (t = /* @__PURE__ */ new Set()), e instanceof Set || (e = /* @__PURE__ */ new Set());
|
|
14905
14904
|
let r = /* @__PURE__ */ new Map();
|
|
14906
14905
|
for (let E of t) {
|
|
@@ -14983,7 +14982,7 @@ async function bg({ required: t, usedCodepoints: e, exclude: o = void 0, localFo
|
|
|
14983
14982
|
let O = (((f = Y.match(/font-family:\s*([^;]+);/i)) == null ? void 0 : f[1]) || "").trim(), ee = ta(O);
|
|
14984
14983
|
if (!ee || Qe(ee))
|
|
14985
14984
|
continue;
|
|
14986
|
-
let D = (((k = Y.match(/font-weight:\s*([^;]+);/i)) == null ? void 0 : k[1]) || "400").trim(), le = (((v = Y.match(/font-style:\s*([^;]+);/i)) == null ? void 0 : v[1]) || "normal").trim(), fe = (((
|
|
14985
|
+
let D = (((k = Y.match(/font-weight:\s*([^;]+);/i)) == null ? void 0 : k[1]) || "400").trim(), le = (((v = Y.match(/font-style:\s*([^;]+);/i)) == null ? void 0 : v[1]) || "normal").trim(), fe = (((C = Y.match(/font-stretch:\s*([^;]+);/i)) == null ? void 0 : C[1]) || "100%").trim(), Ae = (((L = Y.match(/unicode-range:\s*([^;]+);/i)) == null ? void 0 : L[1]) || "").trim(), ze = (((P = Y.match(/src\s*:\s*([^;}]+)[;}]/i)) == null ? void 0 : P[1]) || "").trim(), ce = ba(ze, E.href);
|
|
14987
14986
|
if (!l(ee, le, D, fe))
|
|
14988
14987
|
continue;
|
|
14989
14988
|
let be = Ui(Ae);
|
|
@@ -15156,8 +15155,8 @@ async function Ag(t, e, o, i = {}) {
|
|
|
15156
15155
|
let f = p.getPropertyValue(h);
|
|
15157
15156
|
if (!f || f === "none")
|
|
15158
15157
|
continue;
|
|
15159
|
-
let k = Yi(f), v = await Promise.all(k.map((
|
|
15160
|
-
v.some((
|
|
15158
|
+
let k = Yi(f), v = await Promise.all(k.map((C) => Vi(C, i)));
|
|
15159
|
+
v.some((C) => C && C !== "none" && !/^url\(undefined/.test(C)) && m.style.setProperty(h, v.join(", "));
|
|
15161
15160
|
}
|
|
15162
15161
|
for (let h of l) {
|
|
15163
15162
|
let f = p.getPropertyValue(h);
|
|
@@ -15244,18 +15243,18 @@ function zg(t) {
|
|
|
15244
15243
|
o && o.name && !e.some((i) => i.name === o.name) && e.push(o);
|
|
15245
15244
|
return Object.freeze(e);
|
|
15246
15245
|
}
|
|
15247
|
-
function
|
|
15246
|
+
function Cg(t, e, o = !1) {
|
|
15248
15247
|
return !t || t.plugins && !o || (t.plugins = zg(e)), t;
|
|
15249
15248
|
}
|
|
15250
|
-
var
|
|
15249
|
+
var Ci = /* @__PURE__ */ new WeakMap(), sa = /* @__PURE__ */ new Map(), ca = 0;
|
|
15251
15250
|
function Wo() {
|
|
15252
15251
|
ca++;
|
|
15253
15252
|
}
|
|
15254
|
-
var
|
|
15255
|
-
function
|
|
15253
|
+
var _i = !1;
|
|
15254
|
+
function _g(t = document.documentElement) {
|
|
15256
15255
|
var e, o;
|
|
15257
|
-
if (!
|
|
15258
|
-
|
|
15256
|
+
if (!_i) {
|
|
15257
|
+
_i = !0;
|
|
15259
15258
|
try {
|
|
15260
15259
|
new MutationObserver(() => Wo()).observe(t, { subtree: !0, childList: !0, characterData: !0, attributes: !0 });
|
|
15261
15260
|
} catch {
|
|
@@ -15304,11 +15303,11 @@ function Pg(t) {
|
|
|
15304
15303
|
return e || (e = Object.entries(t).sort((o, i) => o[0] < i[0] ? -1 : o[0] > i[0] ? 1 : 0).map(([o, i]) => `${o}:${i}`).join(";"), Mi.set(t, e), e);
|
|
15305
15304
|
}
|
|
15306
15305
|
function Sg(t, e = null, o = {}) {
|
|
15307
|
-
let i =
|
|
15306
|
+
let i = Ci.get(t);
|
|
15308
15307
|
if (i && i.epoch === ca)
|
|
15309
15308
|
return i.snapshot;
|
|
15310
15309
|
let a = e || getComputedStyle(t), r = Mg(a, o);
|
|
15311
|
-
return Gg(t, a, r),
|
|
15310
|
+
return Gg(t, a, r), Ci.set(t, { epoch: ca, snapshot: r }), r;
|
|
15312
15311
|
}
|
|
15313
15312
|
function Tg(t, e) {
|
|
15314
15313
|
return t && t.session && t.persist ? t : t && (t.styleMap || t.styleCache || t.nodeMap) ? { session: t, persist: { snapshotKeyCache: sa, defaultStyle: V.defaultStyle, baseStyle: V.baseStyle, image: V.image, resource: V.resource, background: V.background, font: V.font }, options: e || {} } : { session: V.session, persist: { snapshotKeyCache: sa, defaultStyle: V.defaultStyle, baseStyle: V.baseStyle, image: V.image, resource: V.resource, background: V.background, font: V.font }, options: t || e || {} };
|
|
@@ -15318,7 +15317,7 @@ async function st(t, e, o, i) {
|
|
|
15318
15317
|
if (t.tagName === "STYLE")
|
|
15319
15318
|
return;
|
|
15320
15319
|
let a = Tg(o, i), r = a.options && a.options.cache || "auto";
|
|
15321
|
-
if (r !== "disabled" &&
|
|
15320
|
+
if (r !== "disabled" && _g(document.documentElement), r === "disabled" && !a.session.__bumpedForDisabled && (Wo(), sa.clear(), a.session.__bumpedForDisabled = !0), ya.has((u = t.tagName) == null ? void 0 : u.toLowerCase())) {
|
|
15322
15321
|
let h = (b = t.getAttribute) == null ? void 0 : b.call(t, "style");
|
|
15323
15322
|
h && e.setAttribute("style", h);
|
|
15324
15323
|
}
|
|
@@ -15806,8 +15805,8 @@ async function Ko(t, e, o) {
|
|
|
15806
15805
|
if (await new Promise((v) => requestAnimationFrame(v)), h = t.toDataURL("image/png"), !h || h === "data:,") {
|
|
15807
15806
|
let v = document.createElement("canvas");
|
|
15808
15807
|
v.width = t.width, v.height = t.height;
|
|
15809
|
-
let
|
|
15810
|
-
|
|
15808
|
+
let C = v.getContext("2d");
|
|
15809
|
+
C && (C.drawImage(t, 0, 0), h = v.toDataURL("image/png"));
|
|
15811
15810
|
}
|
|
15812
15811
|
}
|
|
15813
15812
|
} catch {
|
|
@@ -15832,8 +15831,8 @@ async function Ko(t, e, o) {
|
|
|
15832
15831
|
try {
|
|
15833
15832
|
let h = t.getBoundingClientRect(), f = Math.round(h.width || 0), k = Math.round(h.height || 0);
|
|
15834
15833
|
if (!f || !k) {
|
|
15835
|
-
let v = window.getComputedStyle(t),
|
|
15836
|
-
f = Math.round(f ||
|
|
15834
|
+
let v = window.getComputedStyle(t), C = parseFloat(v.width) || 0, L = parseFloat(v.height) || 0, P = parseInt(t.getAttribute("width") || "", 10) || 0, z = parseInt(t.getAttribute("height") || "", 10) || 0, R = t.width || t.naturalWidth || 0, S = t.height || t.naturalHeight || 0;
|
|
15835
|
+
f = Math.round(f || C || P || R || 0), k = Math.round(k || L || z || S || 0);
|
|
15837
15836
|
}
|
|
15838
15837
|
f && (l.dataset.snapdomWidth = String(f)), k && (l.dataset.snapdomHeight = String(k));
|
|
15839
15838
|
} catch {
|
|
@@ -15842,8 +15841,8 @@ async function Ko(t, e, o) {
|
|
|
15842
15841
|
let h = t.getAttribute("style") || "", f = window.getComputedStyle(t), k = (z) => {
|
|
15843
15842
|
let R = h.match(new RegExp(`${z}\\s*:\\s*([^;]+)`, "i")), S = R ? R[1].trim() : f.getPropertyValue(z);
|
|
15844
15843
|
return /%|auto/i.test(String(S || ""));
|
|
15845
|
-
}, v = parseInt(l.dataset.snapdomWidth || "0", 10),
|
|
15846
|
-
L && v && (l.style.width = `${v}px`), P &&
|
|
15844
|
+
}, v = parseInt(l.dataset.snapdomWidth || "0", 10), C = parseInt(l.dataset.snapdomHeight || "0", 10), L = k("width") || !v, P = k("height") || !C;
|
|
15845
|
+
L && v && (l.style.width = `${v}px`), P && C && (l.style.height = `${C}px`), v && (l.style.minWidth = `${v}px`), C && (l.style.minHeight = `${C}px`);
|
|
15847
15846
|
} catch {
|
|
15848
15847
|
}
|
|
15849
15848
|
}
|
|
@@ -15883,8 +15882,8 @@ async function Ko(t, e, o) {
|
|
|
15883
15882
|
l.setAttribute("data-sd", f);
|
|
15884
15883
|
} catch {
|
|
15885
15884
|
}
|
|
15886
|
-
let v = Vg(t.shadowRoot),
|
|
15887
|
-
Xg(l, P +
|
|
15885
|
+
let v = Vg(t.shadowRoot), C = Wg(v, k), L = Yg(v), P = Ug(t, L, k);
|
|
15886
|
+
Xg(l, P + C, f);
|
|
15888
15887
|
let z = document.createDocumentFragment(), R = await aa(Array.from(t.shadowRoot.childNodes), h, o.fast);
|
|
15889
15888
|
z.append(...R.filter((S) => !!S)), l.appendChild(z);
|
|
15890
15889
|
}
|
|
@@ -15895,8 +15894,8 @@ async function Ko(t, e, o) {
|
|
|
15895
15894
|
}).catch(() => {
|
|
15896
15895
|
P(null);
|
|
15897
15896
|
});
|
|
15898
|
-
}, f = ((g = t.assignedNodes) == null ? void 0 : g.call(t, { flatten: !0 })) || [], k = f.length > 0 ? f : Array.from(t.childNodes), v = document.createDocumentFragment(),
|
|
15899
|
-
return v.append(...
|
|
15897
|
+
}, f = ((g = t.assignedNodes) == null ? void 0 : g.call(t, { flatten: !0 })) || [], k = f.length > 0 ? f : Array.from(t.childNodes), v = document.createDocumentFragment(), C = await aa(Array.from(k), h, o.fast);
|
|
15898
|
+
return v.append(...C.filter((L) => !!L)), v;
|
|
15900
15899
|
}
|
|
15901
15900
|
function c(h, f) {
|
|
15902
15901
|
if (i.has(h))
|
|
@@ -15972,7 +15971,7 @@ function l0(t) {
|
|
|
15972
15971
|
b.set(g, h.slice());
|
|
15973
15972
|
return b;
|
|
15974
15973
|
}, s = (u, b, g) => {
|
|
15975
|
-
var v,
|
|
15974
|
+
var v, C;
|
|
15976
15975
|
let h = c(u), f;
|
|
15977
15976
|
try {
|
|
15978
15977
|
f = ((v = g.style) == null ? void 0 : v.counterReset) || getComputedStyle(g).counterReset;
|
|
@@ -15992,7 +15991,7 @@ function l0(t) {
|
|
|
15992
15991
|
}
|
|
15993
15992
|
let k;
|
|
15994
15993
|
try {
|
|
15995
|
-
k = ((
|
|
15994
|
+
k = ((C = g.style) == null ? void 0 : C.counterIncrement) || getComputedStyle(g).counterIncrement;
|
|
15996
15995
|
} catch {
|
|
15997
15996
|
}
|
|
15998
15997
|
if (k && k !== "none")
|
|
@@ -16271,7 +16270,7 @@ async function or(t, e, o, i) {
|
|
|
16271
16270
|
e.replaceChild(ce, O), e.insertBefore(fe, ce);
|
|
16272
16271
|
continue;
|
|
16273
16272
|
}
|
|
16274
|
-
let g = b.content ?? "", h = g === "" || g === "none" || g === "normal", { text: f, incs: k } = d0(t, u, l), v = b.backgroundImage,
|
|
16273
|
+
let g = b.content ?? "", h = g === "" || g === "none" || g === "normal", { text: f, incs: k } = d0(t, u, l), v = b.backgroundImage, C = b.backgroundColor, L = b.fontFamily, P = parseInt(b.fontSize) || 32, z = parseInt(b.fontWeight) || !1, R = b.color || "#000", S = b.borderStyle, F = parseFloat(b.borderWidth), N = b.transform, B = Qe(L), Q = !h && f !== "", q = v && v !== "none", oe = C && C !== "transparent" && C !== "rgba(0, 0, 0, 0)", ge = S && S !== "none" && F > 0, he = N && N !== "none";
|
|
16275
16274
|
if (!(Q || q || oe || ge || he)) {
|
|
16276
16275
|
if (k && k.length && t.parentElement) {
|
|
16277
16276
|
let Y = ct.get(t.parentElement) || /* @__PURE__ */ new Map();
|
|
@@ -16314,7 +16313,7 @@ async function or(t, e, o, i) {
|
|
|
16314
16313
|
} catch (Y) {
|
|
16315
16314
|
console.warn(`[snapdom] Failed to inline background-image for ${u}`, Y);
|
|
16316
16315
|
}
|
|
16317
|
-
oe && (E.style.backgroundColor =
|
|
16316
|
+
oe && (E.style.backgroundColor = C);
|
|
16318
16317
|
let ae = E.childNodes.length > 0 || ((p = E.textContent) == null ? void 0 : p.trim()) !== "" || q || oe || ge || he;
|
|
16319
16318
|
if (k && k.length && t.parentElement) {
|
|
16320
16319
|
let Y = ct.get(t.parentElement) || /* @__PURE__ */ new Map(), O = da(t, l), ee = ha(t, getComputedStyle(t, u), O);
|
|
@@ -16407,25 +16406,25 @@ function h0(t, e) {
|
|
|
16407
16406
|
};
|
|
16408
16407
|
if (!p.size)
|
|
16409
16408
|
return;
|
|
16410
|
-
let v = new Set(p),
|
|
16409
|
+
let v = new Set(p), C = /* @__PURE__ */ new Set();
|
|
16411
16410
|
for (; v.size; ) {
|
|
16412
16411
|
let z = v.values().next().value;
|
|
16413
|
-
if (v.delete(z), !z || m.has(z) ||
|
|
16412
|
+
if (v.delete(z), !z || m.has(z) || C.has(z))
|
|
16414
16413
|
continue;
|
|
16415
16414
|
let R = k(z);
|
|
16416
16415
|
if (!R) {
|
|
16417
|
-
|
|
16416
|
+
C.add(z);
|
|
16418
16417
|
continue;
|
|
16419
16418
|
}
|
|
16420
16419
|
f || (f = o.createElementNS("http://www.w3.org/2000/svg", "defs"), h.appendChild(f));
|
|
16421
16420
|
let S = R.cloneNode(!0);
|
|
16422
|
-
S.id || S.setAttribute("id", z), f.appendChild(S),
|
|
16421
|
+
S.id || S.setAttribute("id", z), f.appendChild(S), C.add(z), m.add(z);
|
|
16423
16422
|
let F = [S, ...S.querySelectorAll("*")];
|
|
16424
16423
|
for (let N of F) {
|
|
16425
16424
|
let B = d(N);
|
|
16426
16425
|
if (B && B.startsWith("#")) {
|
|
16427
16426
|
let q = B.slice(1).trim();
|
|
16428
|
-
q && !m.has(q) && !
|
|
16427
|
+
q && !m.has(q) && !C.has(q) && v.add(q);
|
|
16429
16428
|
}
|
|
16430
16429
|
let Q = ((L = N.getAttribute) == null ? void 0 : L.call(N, "style")) || "";
|
|
16431
16430
|
Q && b(Q, v);
|
|
@@ -16458,11 +16457,11 @@ function p0(t, e) {
|
|
|
16458
16457
|
let h = s.getBoundingClientRect(), f = h.width, k = h.height, v = h.left - i.left;
|
|
16459
16458
|
if (!(f > 0 && k > 0) || !Number.isFinite(v))
|
|
16460
16459
|
continue;
|
|
16461
|
-
let
|
|
16462
|
-
if (!Number.isFinite(
|
|
16460
|
+
let C = p != null ? p + o : o + (a - k - u);
|
|
16461
|
+
if (!Number.isFinite(C))
|
|
16463
16462
|
continue;
|
|
16464
16463
|
let L = Number.parseInt(d.zIndex, 10), P = Number.isFinite(L), z = P ? Math.max(L, 1) + 1 : 2, R = P ? L - 1 : 0, S = g.cloneNode(!1);
|
|
16465
|
-
S.setAttribute(r, "1"), S.style.position = "sticky", S.style.left = `${v}px`, S.style.top = `${
|
|
16464
|
+
S.setAttribute(r, "1"), S.style.position = "sticky", S.style.left = `${v}px`, S.style.top = `${C}px`, S.style.width = `${f}px`, S.style.height = `${k}px`, S.style.visibility = "hidden", S.style.zIndex = String(R), S.style.overflow = "hidden", S.style.background = "transparent", S.style.boxShadow = "none", S.style.filter = "none", (c = g.parentElement) == null || c.insertBefore(S, g), g.style.position = "absolute", g.style.left = `${v}px`, g.style.top = `${C}px`, g.style.bottom = "auto", g.style.zIndex = String(z), g.style.pointerEvents = "none";
|
|
16466
16465
|
}
|
|
16467
16466
|
}
|
|
16468
16467
|
function ji(t) {
|
|
@@ -16645,7 +16644,7 @@ function L0(t) {
|
|
|
16645
16644
|
function z0(t) {
|
|
16646
16645
|
return t.childElementCount > 0 ? !1 : Array.from(t.childNodes).some((e) => e.nodeType === Node.TEXT_NODE);
|
|
16647
16646
|
}
|
|
16648
|
-
function
|
|
16647
|
+
function C0(t, e) {
|
|
16649
16648
|
if (!t || !e || !e.style)
|
|
16650
16649
|
return;
|
|
16651
16650
|
let o = getComputedStyle(t);
|
|
@@ -16667,7 +16666,7 @@ function _0(t, e) {
|
|
|
16667
16666
|
} catch {
|
|
16668
16667
|
}
|
|
16669
16668
|
}
|
|
16670
|
-
function
|
|
16669
|
+
function _0(t) {
|
|
16671
16670
|
let e = document.createTreeWalker(t, NodeFilter.SHOW_COMMENT), o = [];
|
|
16672
16671
|
for (; e.nextNode(); )
|
|
16673
16672
|
o.push(e.currentNode);
|
|
@@ -16699,7 +16698,7 @@ function M0(t, e = {}) {
|
|
|
16699
16698
|
}
|
|
16700
16699
|
}
|
|
16701
16700
|
function P0(t, e = {}) {
|
|
16702
|
-
t && (M0(t, e),
|
|
16701
|
+
t && (M0(t, e), _0(t));
|
|
16703
16702
|
}
|
|
16704
16703
|
function S0(t) {
|
|
16705
16704
|
var e;
|
|
@@ -16832,12 +16831,12 @@ function W0(t, e) {
|
|
|
16832
16831
|
if (r.length === 6 && r.every(Number.isFinite)) {
|
|
16833
16832
|
let [l, c, s, d] = r, m = Math.sqrt(l * l + c * c) || 0, p = 0, u = 0, b = 0, g = 0, h = 0, f = 0;
|
|
16834
16833
|
m > 0 && (p = l / m, u = c / m, b = p * s + u * d, g = s - p * b, h = d - u * b, f = Math.sqrt(g * g + h * h) || 0, f > 0 ? b = b / f : b = 0);
|
|
16835
|
-
let k = m, v = 0,
|
|
16834
|
+
let k = m, v = 0, C = b * f, L = f;
|
|
16836
16835
|
try {
|
|
16837
|
-
e.style.transform = `matrix(${k}, ${v}, ${
|
|
16836
|
+
e.style.transform = `matrix(${k}, ${v}, ${C}, ${L}, 0, 0)`;
|
|
16838
16837
|
} catch {
|
|
16839
16838
|
}
|
|
16840
|
-
return { a: k, b: v, c:
|
|
16839
|
+
return { a: k, b: v, c: C, d: L };
|
|
16841
16840
|
}
|
|
16842
16841
|
}
|
|
16843
16842
|
try {
|
|
@@ -16850,7 +16849,7 @@ function W0(t, e) {
|
|
|
16850
16849
|
function Bi(t, e, o, i, a) {
|
|
16851
16850
|
let r = o.a, l = o.b, c = o.c, s = o.d, d = o.e || 0, m = o.f || 0;
|
|
16852
16851
|
function p(k, v) {
|
|
16853
|
-
let
|
|
16852
|
+
let C = k - i, L = v - a, P = r * C + c * L, z = l * C + s * L;
|
|
16854
16853
|
return P += i + d, z += a + m, [P, z];
|
|
16855
16854
|
}
|
|
16856
16855
|
let u = [p(0, 0), p(t, 0), p(0, e), p(t, e)], b = 1 / 0, g = 1 / 0, h = -1 / 0, f = -1 / 0;
|
|
@@ -16896,8 +16895,8 @@ function V0(t) {
|
|
|
16896
16895
|
}
|
|
16897
16896
|
let h = u("translate");
|
|
16898
16897
|
if (h) {
|
|
16899
|
-
let f = "x" in h && "value" in h.x ? h.x.value : Array.isArray(h) ? (s = h[0]) == null ? void 0 : s.value : 0, k = "y" in h && "value" in h.y ? h.y.value : Array.isArray(h) ? (d = h[1]) == null ? void 0 : d.value : 0, v = "x" in h && ((m = h.x) != null && m.unit) ? h.x.unit : "px",
|
|
16900
|
-
e.translate = `${f}${v} ${k}${
|
|
16898
|
+
let f = "x" in h && "value" in h.x ? h.x.value : Array.isArray(h) ? (s = h[0]) == null ? void 0 : s.value : 0, k = "y" in h && "value" in h.y ? h.y.value : Array.isArray(h) ? (d = h[1]) == null ? void 0 : d.value : 0, v = "x" in h && ((m = h.x) != null && m.unit) ? h.x.unit : "px", C = "y" in h && ((p = h.y) != null && p.unit) ? h.y.unit : "px";
|
|
16899
|
+
e.translate = `${f}${v} ${k}${C}`;
|
|
16901
16900
|
} else {
|
|
16902
16901
|
let f = getComputedStyle(t);
|
|
16903
16902
|
e.translate = f.translate && f.translate !== "none" ? f.translate : null;
|
|
@@ -16946,44 +16945,44 @@ async function ir(t, e) {
|
|
|
16946
16945
|
await $e("beforeSnap", r), await $e("beforeClone", r);
|
|
16947
16946
|
let g = v0(r.element);
|
|
16948
16947
|
try {
|
|
16949
|
-
({ clone: l, classCSS: c, styleCache: s } = await b0(r.element, r.options)), !i && l && (b = W0(r.element, l)), !a && l &&
|
|
16948
|
+
({ clone: l, classCSS: c, styleCache: s } = await b0(r.element, r.options)), !i && l && (b = W0(r.element, l)), !a && l && C0(r.element, l);
|
|
16950
16949
|
} finally {
|
|
16951
16950
|
g();
|
|
16952
16951
|
}
|
|
16953
16952
|
if (r = { clone: l, classCSS: c, styleCache: s, ...r }, await $e("afterClone", r), P0(r.clone), ((v = r.options) == null ? void 0 : v.excludeMode) === "remove")
|
|
16954
16953
|
try {
|
|
16955
16954
|
I0(r.element, r.clone, r.styleCache);
|
|
16956
|
-
} catch (
|
|
16957
|
-
console.warn("[snapdom] shrink pass failed:",
|
|
16955
|
+
} catch (C) {
|
|
16956
|
+
console.warn("[snapdom] shrink pass failed:", C);
|
|
16958
16957
|
}
|
|
16959
16958
|
try {
|
|
16960
16959
|
await ig(r.clone, r.element);
|
|
16961
16960
|
} catch {
|
|
16962
16961
|
}
|
|
16963
|
-
await new Promise((
|
|
16962
|
+
await new Promise((C) => {
|
|
16964
16963
|
nt(async () => {
|
|
16965
|
-
await x0(r.clone, r.options),
|
|
16964
|
+
await x0(r.clone, r.options), C();
|
|
16966
16965
|
}, { fast: o });
|
|
16967
|
-
}), await new Promise((
|
|
16966
|
+
}), await new Promise((C) => {
|
|
16968
16967
|
nt(async () => {
|
|
16969
|
-
await Ag(r.element, r.clone, r.styleCache, r.options),
|
|
16968
|
+
await Ag(r.element, r.clone, r.styleCache, r.options), C();
|
|
16970
16969
|
}, { fast: o });
|
|
16971
|
-
}), e.embedFonts && await new Promise((
|
|
16970
|
+
}), e.embedFonts && await new Promise((C) => {
|
|
16972
16971
|
nt(async () => {
|
|
16973
16972
|
let L = wg(r.element), P = xg(r.element);
|
|
16974
16973
|
if (No()) {
|
|
16975
16974
|
let z = new Set(Array.from(L).map((R) => String(R).split("__")[0]).filter(Boolean));
|
|
16976
16975
|
await vg(z, 1);
|
|
16977
16976
|
}
|
|
16978
|
-
d = await bg({ required: L, usedCodepoints: P, preCached: !1, exclude: r.options.excludeFonts, useProxy: r.options.useProxy }),
|
|
16977
|
+
d = await bg({ required: L, usedCodepoints: P, preCached: !1, exclude: r.options.excludeFonts, useProxy: r.options.useProxy }), C();
|
|
16979
16978
|
}, { fast: o });
|
|
16980
16979
|
});
|
|
16981
16980
|
let h = Hu(r.clone).sort(), f = h.join(",");
|
|
16982
|
-
V.baseStyle.has(f) ? m = V.baseStyle.get(f) : await new Promise((
|
|
16981
|
+
V.baseStyle.has(f) ? m = V.baseStyle.get(f) : await new Promise((C) => {
|
|
16983
16982
|
nt(() => {
|
|
16984
|
-
m = Uu(h), V.baseStyle.set(f, m),
|
|
16983
|
+
m = Uu(h), V.baseStyle.set(f, m), C();
|
|
16985
16984
|
}, { fast: o });
|
|
16986
|
-
}), r = { fontsCSS: d, baseCSS: m, ...r }, await $e("beforeRender", r), await new Promise((
|
|
16985
|
+
}), r = { fontsCSS: d, baseCSS: m, ...r }, await $e("beforeRender", r), await new Promise((C) => {
|
|
16987
16986
|
nt(() => {
|
|
16988
16987
|
var He;
|
|
16989
16988
|
let L = getComputedStyle(r.element), P = r.element.getBoundingClientRect(), z = Math.max(1, se(r.element.offsetWidth || parseFloat(L.width) || P.width || 1)), R = Math.max(1, se(r.element.offsetHeight || parseFloat(L.height) || P.height || 1));
|
|
@@ -17008,14 +17007,14 @@ async function ir(t, e) {
|
|
|
17008
17007
|
he = se(he - D.left), E = se(E - D.top), J = se(J + D.right), K = se(K + D.bottom);
|
|
17009
17008
|
let le = Math.max(1, se(J - he)), fe = Math.max(1, se(K - E)), Ae = q || oe ? se(B / z) : 1, ze = oe || q ? se(Q / R) : 1, ce = Math.max(1, se(le * Ae)), be = Math.max(1, se(fe * ze)), ke = "http://www.w3.org/2000/svg", Te = No() ? 1 : 0, $ = se(Te + (i ? 0 : 1)), me = document.createElementNS(ke, "foreignObject"), Ye = se(he), Be = se(E);
|
|
17010
17009
|
me.setAttribute("x", String(se(-(Ye - $)))), me.setAttribute("y", String(se(-(Be - $)))), me.setAttribute("width", String(se(z + $ * 2))), me.setAttribute("height", String(se(R + $ * 2))), me.style.overflow = "visible";
|
|
17011
|
-
let
|
|
17012
|
-
|
|
17010
|
+
let _e = document.createElement("style");
|
|
17011
|
+
_e.textContent = r.baseCSS + r.fontsCSS + "svg{overflow:visible;} foreignObject{overflow:visible;}" + r.classCSS, me.appendChild(_e);
|
|
17013
17012
|
let De = document.createElement("div");
|
|
17014
17013
|
De.setAttribute("xmlns", "http://www.w3.org/1999/xhtml"), De.style.width = `${se(z)}px`, De.style.height = `${se(R)}px`, De.style.overflow = "visible", r.clone.setAttribute("xmlns", "http://www.w3.org/1999/xhtml"), De.appendChild(r.clone), me.appendChild(De);
|
|
17015
17014
|
let re = new XMLSerializer().serializeToString(me), Me = se(le + $ * 2), pe = se(fe + $ * 2), xe = q || oe;
|
|
17016
17015
|
e.meta = { w0: z, h0: R, vbW: Me, vbH: pe, targetW: B, targetH: Q };
|
|
17017
17016
|
let We = No() && xe ? Me : se(ce + $ * 2), Ue = No() && xe ? pe : se(be + $ * 2);
|
|
17018
|
-
u = `<svg xmlns="${ke}" width="${We}" height="${Ue}" viewBox="0 0 ${Me} ${pe}">` + re + "</svg>", p = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(u)}`, r = { svgString: u, dataURL: p, ...r },
|
|
17017
|
+
u = `<svg xmlns="${ke}" width="${We}" height="${Ue}" viewBox="0 0 ${Me} ${pe}">` + re + "</svg>", p = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(u)}`, r = { svgString: u, dataURL: p, ...r }, C();
|
|
17019
17018
|
}, { fast: o });
|
|
17020
17019
|
}), await $e("afterRender", r);
|
|
17021
17020
|
let k = document.getElementById("snapdom-sandbox");
|
|
@@ -17046,7 +17045,7 @@ async function Q0(t, e) {
|
|
|
17046
17045
|
if (!t)
|
|
17047
17046
|
throw new Error("Element cannot be null or undefined");
|
|
17048
17047
|
let o = J0(e);
|
|
17049
|
-
if (
|
|
17048
|
+
if (Cg(o, e && e.plugins), No() && (o.embedFonts === !0 || $0(t)))
|
|
17050
17049
|
for (let i = 0; i < 3; i++)
|
|
17051
17050
|
try {
|
|
17052
17051
|
await q0(t, e), pa = !1;
|
|
@@ -17058,52 +17057,52 @@ Pe.capture = async (t, e, o) => {
|
|
|
17058
17057
|
if (o !== rr)
|
|
17059
17058
|
throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");
|
|
17060
17059
|
let i = await ir(t, e), a = { img: async (g, h) => {
|
|
17061
|
-
let { toImg: f } = await import("./toImg-
|
|
17060
|
+
let { toImg: f } = await import("./toImg-aac23f7a.js");
|
|
17062
17061
|
return f(i, { ...g, ...h || {} });
|
|
17063
17062
|
}, svg: async (g, h) => {
|
|
17064
|
-
let { toSvg: f } = await import("./toImg-
|
|
17063
|
+
let { toSvg: f } = await import("./toImg-aac23f7a.js");
|
|
17065
17064
|
return f(i, { ...g, ...h || {} });
|
|
17066
17065
|
}, canvas: async (g, h) => {
|
|
17067
|
-
let { toCanvas: f } = await import("./toCanvas-
|
|
17066
|
+
let { toCanvas: f } = await import("./toCanvas-32bca541.js");
|
|
17068
17067
|
return f(i, { ...g, ...h || {} });
|
|
17069
17068
|
}, blob: async (g, h) => {
|
|
17070
|
-
let { toBlob: f } = await import("./toBlob-
|
|
17069
|
+
let { toBlob: f } = await import("./toBlob-274d5cc6.js");
|
|
17071
17070
|
return f(i, { ...g, ...h || {} });
|
|
17072
17071
|
}, png: async (g, h) => {
|
|
17073
|
-
let { rasterize: f } = await import("./rasterize-JS5G2XHH-
|
|
17072
|
+
let { rasterize: f } = await import("./rasterize-JS5G2XHH-f2161451.js");
|
|
17074
17073
|
return f(i, { ...g, ...h || {}, format: "png" });
|
|
17075
17074
|
}, jpeg: async (g, h) => {
|
|
17076
|
-
let { rasterize: f } = await import("./rasterize-JS5G2XHH-
|
|
17075
|
+
let { rasterize: f } = await import("./rasterize-JS5G2XHH-f2161451.js");
|
|
17077
17076
|
return f(i, { ...g, ...h || {}, format: "jpeg" });
|
|
17078
17077
|
}, webp: async (g, h) => {
|
|
17079
|
-
let { rasterize: f } = await import("./rasterize-JS5G2XHH-
|
|
17078
|
+
let { rasterize: f } = await import("./rasterize-JS5G2XHH-f2161451.js");
|
|
17080
17079
|
return f(i, { ...g, ...h || {}, format: "webp" });
|
|
17081
17080
|
}, download: async (g, h) => {
|
|
17082
|
-
let { download: f } = await import("./download-
|
|
17081
|
+
let { download: f } = await import("./download-107389da.js");
|
|
17083
17082
|
return f(i, { ...g, ...h || {} });
|
|
17084
17083
|
} }, r = { ...e, export: { url: i }, exports: { svg: async (g) => {
|
|
17085
|
-
let { toSvg: h } = await import("./toImg-
|
|
17084
|
+
let { toSvg: h } = await import("./toImg-aac23f7a.js");
|
|
17086
17085
|
return h(i, { ...e, ...g || {}, [qe]: !0 });
|
|
17087
17086
|
}, canvas: async (g) => {
|
|
17088
|
-
let { toCanvas: h } = await import("./toCanvas-
|
|
17087
|
+
let { toCanvas: h } = await import("./toCanvas-32bca541.js");
|
|
17089
17088
|
return h(i, { ...e, ...g || {}, [qe]: !0 });
|
|
17090
17089
|
}, png: async (g) => {
|
|
17091
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17090
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-f2161451.js");
|
|
17092
17091
|
return h(i, { ...e, ...g || {}, format: "png", [qe]: !0 });
|
|
17093
17092
|
}, jpeg: async (g) => {
|
|
17094
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17093
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-f2161451.js");
|
|
17095
17094
|
return h(i, { ...e, ...g || {}, format: "jpeg", [qe]: !0 });
|
|
17096
17095
|
}, jpg: async (g) => {
|
|
17097
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17096
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-f2161451.js");
|
|
17098
17097
|
return h(i, { ...e, ...g || {}, format: "jpeg", [qe]: !0 });
|
|
17099
17098
|
}, webp: async (g) => {
|
|
17100
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17099
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-f2161451.js");
|
|
17101
17100
|
return h(i, { ...e, ...g || {}, format: "webp", [qe]: !0 });
|
|
17102
17101
|
}, blob: async (g) => {
|
|
17103
|
-
let { toBlob: h } = await import("./toBlob-
|
|
17102
|
+
let { toBlob: h } = await import("./toBlob-274d5cc6.js");
|
|
17104
17103
|
return h(i, { ...e, ...g || {}, [qe]: !0 });
|
|
17105
17104
|
}, img: async (g) => {
|
|
17106
|
-
let { toImg: h } = await import("./toImg-
|
|
17105
|
+
let { toImg: h } = await import("./toImg-aac23f7a.js");
|
|
17107
17106
|
return h(i, { ...e, ...g || {}, [qe]: !0 });
|
|
17108
17107
|
} } }, l = await Lg("defineExports", r), c = Object.assign({}, ...l.filter((g) => g && typeof g == "object")), s = { ...a, ...c };
|
|
17109
17108
|
s.jpeg && !s.jpg && (s.jpg = (g, h) => s.jpeg(g, h));
|
|
@@ -17117,10 +17116,10 @@ Pe.capture = async (t, e, o) => {
|
|
|
17117
17116
|
let k = s[g];
|
|
17118
17117
|
if (!k)
|
|
17119
17118
|
throw new Error(`[snapdom] Unknown export type: ${g}`);
|
|
17120
|
-
let v = d(g, h),
|
|
17121
|
-
await $e("beforeExport",
|
|
17122
|
-
let L = await k(
|
|
17123
|
-
return await $e("afterExport",
|
|
17119
|
+
let v = d(g, h), C = { ...e, export: { type: g, options: v, url: i } };
|
|
17120
|
+
await $e("beforeExport", C);
|
|
17121
|
+
let L = await k(C, v);
|
|
17122
|
+
return await $e("afterExport", C, L), m || (m = !0, await $e("afterSnap", e)), L;
|
|
17124
17123
|
};
|
|
17125
17124
|
return p = p.then(f);
|
|
17126
17125
|
}
|
|
@@ -17303,8 +17302,8 @@ class ef {
|
|
|
17303
17302
|
const N = this.captureRect.width - S - 12, B = p, Q = this.ctx.imageSmoothingEnabled, q = this.ctx.imageSmoothingQuality;
|
|
17304
17303
|
this.ctx.imageSmoothingEnabled = !0, this.ctx.imageSmoothingQuality = "high", this.ctx.drawImage(this.logoImage, N, B, S, R), this.ctx.imageSmoothingEnabled = Q, this.ctx.imageSmoothingQuality = q;
|
|
17305
17304
|
}
|
|
17306
|
-
const
|
|
17307
|
-
this.frames.push(
|
|
17305
|
+
const C = this.ctx.getImageData(0, 0, this.captureRect.width * i, this.captureRect.height * i);
|
|
17306
|
+
this.frames.push(C), console.log("[GifRecorder] 帧添加成功, 当前帧数:", this.frames.length);
|
|
17308
17307
|
}
|
|
17309
17308
|
/**
|
|
17310
17309
|
* 获取当前帧数
|
|
@@ -17318,8 +17317,8 @@ class ef {
|
|
|
17318
17317
|
async generateGif() {
|
|
17319
17318
|
return this.frames.length === 0 ? (console.warn("[GifRecorder] 没有可用的帧"), null) : new Promise((e, o) => {
|
|
17320
17319
|
const i = window.devicePixelRatio || 1, a = new hr({
|
|
17321
|
-
workers:
|
|
17322
|
-
quality:
|
|
17320
|
+
workers: 4,
|
|
17321
|
+
quality: 1,
|
|
17323
17322
|
width: this.captureRect.width * i,
|
|
17324
17323
|
height: this.captureRect.height * i,
|
|
17325
17324
|
// 使用 node_modules 中的 worker 文件
|
|
@@ -17342,39 +17341,34 @@ class ef {
|
|
|
17342
17341
|
try {
|
|
17343
17342
|
const i = window.devicePixelRatio || 1, a = document.createElement("canvas");
|
|
17344
17343
|
a.width = this.captureRect.width * i, a.height = this.captureRect.height * i;
|
|
17345
|
-
const r = a.getContext("2d");
|
|
17346
|
-
|
|
17347
|
-
|
|
17348
|
-
|
|
17349
|
-
|
|
17350
|
-
|
|
17351
|
-
|
|
17352
|
-
|
|
17353
|
-
|
|
17354
|
-
|
|
17355
|
-
|
|
17356
|
-
|
|
17357
|
-
|
|
17358
|
-
|
|
17359
|
-
|
|
17360
|
-
},
|
|
17361
|
-
|
|
17362
|
-
|
|
17363
|
-
|
|
17364
|
-
console.error("[GifRecorder] MP4 合成失败:", b), o(b);
|
|
17365
|
-
}, d.start();
|
|
17366
|
-
let p = 0;
|
|
17367
|
-
const u = () => {
|
|
17368
|
-
if (p >= this.frames.length) {
|
|
17344
|
+
const r = a.getContext("2d"), l = a.captureStream(0), c = l.getVideoTracks()[0];
|
|
17345
|
+
let s = "video/webm;codecs=vp9", d = "webm";
|
|
17346
|
+
MediaRecorder.isTypeSupported("video/mp4;codecs=h264") ? (s = "video/mp4;codecs=h264", d = "mp4") : MediaRecorder.isTypeSupported("video/mp4") ? (s = "video/mp4", d = "mp4") : MediaRecorder.isTypeSupported("video/webm;codecs=vp9") && (s = "video/webm;codecs=vp9", d = "webm");
|
|
17347
|
+
const m = new MediaRecorder(l, {
|
|
17348
|
+
mimeType: s,
|
|
17349
|
+
videoBitsPerSecond: 8e6
|
|
17350
|
+
// 8 Mbps,确保高清画质
|
|
17351
|
+
}), p = [];
|
|
17352
|
+
m.ondataavailable = (g) => {
|
|
17353
|
+
g.data.size > 0 && p.push(g.data);
|
|
17354
|
+
}, m.onstop = () => {
|
|
17355
|
+
const g = new Blob(p, { type: s });
|
|
17356
|
+
e(g);
|
|
17357
|
+
}, m.onerror = (g) => {
|
|
17358
|
+
console.error("[GifRecorder] MP4 合成失败:", g), o(g);
|
|
17359
|
+
}, m.start();
|
|
17360
|
+
let u = 0;
|
|
17361
|
+
const b = () => {
|
|
17362
|
+
if (u >= this.frames.length) {
|
|
17369
17363
|
setTimeout(() => {
|
|
17370
|
-
|
|
17364
|
+
m.stop();
|
|
17371
17365
|
}, 100);
|
|
17372
17366
|
return;
|
|
17373
17367
|
}
|
|
17374
|
-
const
|
|
17375
|
-
r.putImageData(
|
|
17368
|
+
const g = this.frames[u];
|
|
17369
|
+
r.putImageData(g, 0, 0), u++, typeof c.requestFrame == "function" && c.requestFrame(), setTimeout(b, this._frameDelay);
|
|
17376
17370
|
};
|
|
17377
|
-
|
|
17371
|
+
b();
|
|
17378
17372
|
} catch (i) {
|
|
17379
17373
|
console.error("[GifRecorder] MP4 合成失败:", i), o(i);
|
|
17380
17374
|
}
|
|
@@ -17591,7 +17585,7 @@ const tf = {
|
|
|
17591
17585
|
if (o && o.length > 0)
|
|
17592
17586
|
for (const i of o)
|
|
17593
17587
|
i.url && (i.url.endsWith(".gif") ? this.gifUrl = i.url : i.url.endsWith(".mp4") && (this.mp4Url = i.url));
|
|
17594
|
-
console.log("[BottomBar] 上传成功", this.mp4Url), this.actionStatus = 7;
|
|
17588
|
+
console.log("[BottomBar] 上传成功", this.mp4Url, this.gifUrl), this.actionStatus = 7;
|
|
17595
17589
|
} catch (e) {
|
|
17596
17590
|
console.error("[BottomBar] 上传失败:", e);
|
|
17597
17591
|
}
|
|
@@ -17684,7 +17678,7 @@ function hf(t, e, o, i, a, r) {
|
|
|
17684
17678
|
], 6)) : G("", !0)
|
|
17685
17679
|
]);
|
|
17686
17680
|
}
|
|
17687
|
-
const pf = /* @__PURE__ */ ie(tf, [["render", hf], ["__scopeId", "data-v-
|
|
17681
|
+
const pf = /* @__PURE__ */ ie(tf, [["render", hf], ["__scopeId", "data-v-23ed7fb6"]]);
|
|
17688
17682
|
const uf = {
|
|
17689
17683
|
name: "IdmBottomBar",
|
|
17690
17684
|
components: { DateTimePicker: ea, IdmCapture: pf },
|
|
@@ -18231,7 +18225,7 @@ function Lf(t, e, o, i, a, r) {
|
|
|
18231
18225
|
]);
|
|
18232
18226
|
}
|
|
18233
18227
|
const zf = /* @__PURE__ */ ie(uf, [["render", Lf]]);
|
|
18234
|
-
const
|
|
18228
|
+
const Cf = {
|
|
18235
18229
|
name: "IdmTimePlayer",
|
|
18236
18230
|
components: { DateTimePicker: ea },
|
|
18237
18231
|
props: {
|
|
@@ -18339,14 +18333,14 @@ const _f = {
|
|
|
18339
18333
|
this.step = Math.floor(e / this.frequency), this.animation = requestAnimationFrame(this.animateSpeeds);
|
|
18340
18334
|
}
|
|
18341
18335
|
}
|
|
18342
|
-
},
|
|
18336
|
+
}, _f = { class: "w-100 timeline-box d-flex justify-space-around align-center rounded px-2" };
|
|
18343
18337
|
function Mf(t, e, o, i, a, r) {
|
|
18344
18338
|
const l = M("VBtn"), c = M("DateTimePicker");
|
|
18345
18339
|
return A(), I("div", {
|
|
18346
18340
|
class: "idm-time-player-gl4 d-flex justify-center align-center",
|
|
18347
18341
|
style: de({ bottom: Object.values(a.show).includes(!0) ? o.playerBottom + "px" : "-100px" })
|
|
18348
18342
|
}, [
|
|
18349
|
-
n("div",
|
|
18343
|
+
n("div", _f, [
|
|
18350
18344
|
w(l, {
|
|
18351
18345
|
size: "small",
|
|
18352
18346
|
density: "compact",
|
|
@@ -18439,7 +18433,7 @@ function Mf(t, e, o, i, a, r) {
|
|
|
18439
18433
|
])
|
|
18440
18434
|
], 4);
|
|
18441
18435
|
}
|
|
18442
|
-
const lr = /* @__PURE__ */ ie(
|
|
18436
|
+
const lr = /* @__PURE__ */ ie(Cf, [["render", Mf]]), Pf = {
|
|
18443
18437
|
name: "IdmGL4",
|
|
18444
18438
|
components: {
|
|
18445
18439
|
IdmOtherLayer: ks,
|
|
@@ -18481,6 +18475,7 @@ const lr = /* @__PURE__ */ ie(_f, [["render", Mf]]), Pf = {
|
|
|
18481
18475
|
layerVersion: 0,
|
|
18482
18476
|
autoActive: !0,
|
|
18483
18477
|
tempFeather: "",
|
|
18478
|
+
tempFeatherCount: 0,
|
|
18484
18479
|
tropicals: void 0,
|
|
18485
18480
|
playerBottom: 30,
|
|
18486
18481
|
gateway: "https://cbe.ormwx.com",
|
|
@@ -18494,12 +18489,17 @@ const lr = /* @__PURE__ */ ie(_f, [["render", Mf]]), Pf = {
|
|
|
18494
18489
|
var t, e, o, i, a, r, l;
|
|
18495
18490
|
if (this.map) {
|
|
18496
18491
|
const c = this.autoActive && this.weatherCheckList.some((p) => ["wind-particle", "sig-wave", "swell", "current-particle", "water-temp", "temp"].some((u) => u === p)), s = this.autoActive && this.weatherCheckList.some((p) => ["wind-particle", "sig-wave", "swell", "current-particle", "water-temp", "temp", "sig-wave-height"].some((u) => u === p)), d = this.otherCheckList.some((p) => ["navareas", "eca-zones", "load-lines", "voluntary-reporting-area", "war-zones", "special-area", "ice-areas"].some((u) => u === p)), m = s || d;
|
|
18497
|
-
this.mapFeather === "nautical" ? c && (this.tempFeather = "nautical", this.$emit("mapFeather", "light")) : this.mapFeather === "satellite" ? c && (this.tempFeather = "satellite", this.$emit("mapFeather", "dark")) : (!c && this.tempFeather === "nautical" && (this.tempFeather = "", this.$emit("mapFeather", "nautical")), !c && this.tempFeather === "satellite" && (this.tempFeather = "", this.$emit("mapFeather", "satellite")), m ? ((t = this.map) != null && t.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "visible"), (e = this.map) != null && e.getLayer("water-outline2") && this.map.setLayoutProperty("water-outline2", "visibility", "visible")) : ((o = this.map) != null && o.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "none"), (i = this.map) != null && i.getLayer("water-outline2") && this.map.setLayoutProperty("water-outline2", "visibility", "none"))), s ? ((a = this.map) != null && a.getLayer("ramp-color-layer") && this.map.moveLayer("ramp-color-layer", "empty-layer-0"), (r = this.map) != null && r.getLayer("particle-layer") && this.map.moveLayer("particle-layer", "empty-layer-0"), setTimeout(() => {
|
|
18492
|
+
this.mapFeather === "nautical" ? (this.tempFeatherCount = 1, c && (this.tempFeather = "nautical", this.$emit("mapFeather", "light"))) : this.mapFeather === "satellite" ? (this.tempFeatherCount = 1, c && (this.tempFeather = "satellite", this.$emit("mapFeather", "dark"))) : (!c && this.tempFeather === "nautical" && (this.tempFeather = "", this.$emit("mapFeather", "nautical")), !c && this.tempFeather === "satellite" && (this.tempFeather = "", this.$emit("mapFeather", "satellite")), m ? ((t = this.map) != null && t.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "visible"), (e = this.map) != null && e.getLayer("water-outline2") && this.map.setLayoutProperty("water-outline2", "visibility", "visible")) : ((o = this.map) != null && o.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "none"), (i = this.map) != null && i.getLayer("water-outline2") && this.map.setLayoutProperty("water-outline2", "visibility", "none"))), s ? ((a = this.map) != null && a.getLayer("ramp-color-layer") && this.map.moveLayer("ramp-color-layer", "empty-layer-0"), (r = this.map) != null && r.getLayer("particle-layer") && this.map.moveLayer("particle-layer", "empty-layer-0"), setTimeout(() => {
|
|
18498
18493
|
var p, u;
|
|
18499
18494
|
(p = this.map) != null && p.getLayer("sig-wave-height-layer") && this.map.moveLayer("sig-wave-height-layer", "empty-layer-0"), (u = this.map) != null && u.getLayer("sig-wave-height-label-layer") && this.map.moveLayer("sig-wave-height-label-layer", "empty-layer-0");
|
|
18500
18495
|
}, 1e3)) : (l = this.map) != null && l.getLayer("ramp-color-layer") && this.map.moveLayer("ramp-color-layer", "empty-layer-2");
|
|
18501
18496
|
}
|
|
18502
18497
|
}
|
|
18498
|
+
},
|
|
18499
|
+
tempFeatherCount: {
|
|
18500
|
+
handler() {
|
|
18501
|
+
this.tempFeatherCount >= 2 && (this.tempFeather = "");
|
|
18502
|
+
}
|
|
18503
18503
|
}
|
|
18504
18504
|
},
|
|
18505
18505
|
methods: {
|
|
@@ -18534,7 +18534,8 @@ function Tf(t, e, o, i, a, r) {
|
|
|
18534
18534
|
"map-feather": o.mapFeather
|
|
18535
18535
|
}, t.$attrs, {
|
|
18536
18536
|
onOtherCheckList: r.handleChangeOtherChecklist,
|
|
18537
|
-
onMapFeather: e[0] || (e[0] = (g) => t.$emit("mapFeather", g))
|
|
18537
|
+
onMapFeather: e[0] || (e[0] = (g) => t.$emit("mapFeather", g)),
|
|
18538
|
+
onTempFeatherCount: e[1] || (e[1] = (g) => a.tempFeatherCount = a.tempFeatherCount + 1)
|
|
18538
18539
|
}), null, 16, ["simple", "token", "default-meteo-token", "map", "gateway", "assist-gateway", "forecast-model", "map-feather", "onOtherCheckList"]),
|
|
18539
18540
|
w(c, U({
|
|
18540
18541
|
ref: "idmWeatherLayers",
|
|
@@ -18618,7 +18619,7 @@ class If {
|
|
|
18618
18619
|
we(this, "hi");
|
|
18619
18620
|
we(this, "td");
|
|
18620
18621
|
we(this, "windy");
|
|
18621
|
-
var i, a, r, l, c, s, d, m, p, u, b, g, h, f, k, v,
|
|
18622
|
+
var i, a, r, l, c, s, d, m, p, u, b, g, h, f, k, v, C, L, P, z, R, S, F, N, B, Q, q, oe, ge, he, E, J, K, ae, Y, O, ee, D, le, fe, Ae, ze, ce, be, ke, Te, $, me, Ye, Be, _e, De, re, Me, pe, xe, We, Ue, He, H, ve, Ee, Ze, Ve, te, Ne, ne, ot, at, it, Fe, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, At, kt, Lt, zt, Ct, _t, Mt, Pt, St, Tt, Rt, It, Dt, Et, Gt, Ft, jt, Bt, Nt, Wt, Zt, Vt, Xt, Ot, Yt, Ht, Ut, Jt, Kt, Qt, qt, $t, eo, to, oo, ao, io, ro, lo, no, so, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, Ao, ko, Lo, zo, Co, _o, Mo, Po, So, To, Ro, Io, Do, Eo, Go, wa, xa, va, Aa, ka, La, za, Ca, _a, Ma, Pa, Sa, Ta, Ra, Ia, Da, Ea, Ga, Fa, ja, Ba, Na, Wa, Za, Va, Xa, Oa, Ya, Ha, Ua, Ja, Ka, Qa, qa, $a, ei, ti, oi, ai, ii, ri, li, ni, si, ci, mi, di, hi, pi, ui, gi, fi, yi;
|
|
18622
18623
|
this.i4 = {
|
|
18623
18624
|
source: {
|
|
18624
18625
|
type: "raster",
|
|
@@ -37142,34 +37143,34 @@ class If {
|
|
|
37142
37143
|
composite: this.originStyle.light.sources.composite
|
|
37143
37144
|
},
|
|
37144
37145
|
layers: [
|
|
37145
|
-
(a = (i = this.originStyle) == null ? void 0 : i.light.layers) == null ? void 0 : a.find((
|
|
37146
|
-
(l = (r = this.originStyle) == null ? void 0 : r.light.layers) == null ? void 0 : l.find((
|
|
37147
|
-
(s = (c = this.originStyle) == null ? void 0 : c.light.layers) == null ? void 0 : s.find((
|
|
37148
|
-
(m = (d = this.originStyle) == null ? void 0 : d.light.layers) == null ? void 0 : m.find((
|
|
37149
|
-
(u = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : u.find((
|
|
37150
|
-
(g = (b = this.originStyle) == null ? void 0 : b.light.layers) == null ? void 0 : g.find((
|
|
37151
|
-
(f = (h = this.originStyle) == null ? void 0 : h.light.layers) == null ? void 0 : f.find((
|
|
37152
|
-
(v = (k = this.originStyle) == null ? void 0 : k.light.layers) == null ? void 0 : v.find((
|
|
37153
|
-
(L = (
|
|
37154
|
-
(z = (P = this.originStyle) == null ? void 0 : P.light.layers) == null ? void 0 : z.find((
|
|
37155
|
-
(S = (R = this.originStyle) == null ? void 0 : R.light.layers) == null ? void 0 : S.find((
|
|
37156
|
-
(N = (F = this.originStyle) == null ? void 0 : F.light.layers) == null ? void 0 : N.find((
|
|
37157
|
-
(Q = (B = this.originStyle) == null ? void 0 : B.light.layers) == null ? void 0 : Q.find((
|
|
37158
|
-
(oe = (q = this.originStyle) == null ? void 0 : q.light.layers) == null ? void 0 : oe.find((
|
|
37159
|
-
(he = (ge = this.originStyle) == null ? void 0 : ge.light.layers) == null ? void 0 : he.find((
|
|
37160
|
-
(J = (E = this.originStyle) == null ? void 0 : E.light.layers) == null ? void 0 : J.find((
|
|
37161
|
-
(ae = (K = this.originStyle) == null ? void 0 : K.light.layers) == null ? void 0 : ae.find((
|
|
37162
|
-
(O = (Y = this.originStyle) == null ? void 0 : Y.light.layers) == null ? void 0 : O.find((
|
|
37163
|
-
(D = (ee = this.originStyle) == null ? void 0 : ee.light.layers) == null ? void 0 : D.find((
|
|
37164
|
-
(fe = (le = this.originStyle) == null ? void 0 : le.light.layers) == null ? void 0 : fe.find((
|
|
37165
|
-
(ze = (Ae = this.originStyle) == null ? void 0 : Ae.light.layers) == null ? void 0 : ze.find((
|
|
37166
|
-
(be = (ce = this.originStyle) == null ? void 0 : ce.light.layers) == null ? void 0 : be.find((
|
|
37167
|
-
(Te = (ke = this.originStyle) == null ? void 0 : ke.light.layers) == null ? void 0 : Te.find((
|
|
37168
|
-
(me = ($ = this.originStyle) == null ? void 0 : $.light.layers) == null ? void 0 : me.find((
|
|
37169
|
-
(Be = (Ye = this.originStyle) == null ? void 0 : Ye.light.layers) == null ? void 0 : Be.find((
|
|
37170
|
-
(De = (
|
|
37171
|
-
(Me = (re = this.originStyle) == null ? void 0 : re.light.layers) == null ? void 0 : Me.find((
|
|
37172
|
-
(xe = (pe = this.originStyle) == null ? void 0 : pe.light.layers) == null ? void 0 : xe.find((
|
|
37146
|
+
(a = (i = this.originStyle) == null ? void 0 : i.light.layers) == null ? void 0 : a.find((_) => _.id === "land"),
|
|
37147
|
+
(l = (r = this.originStyle) == null ? void 0 : r.light.layers) == null ? void 0 : l.find((_) => _.id === "water"),
|
|
37148
|
+
(s = (c = this.originStyle) == null ? void 0 : c.light.layers) == null ? void 0 : s.find((_) => _.id === "ice-area-fill"),
|
|
37149
|
+
(m = (d = this.originStyle) == null ? void 0 : d.light.layers) == null ? void 0 : m.find((_) => _.id === "ice-area-line"),
|
|
37150
|
+
(u = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : u.find((_) => _.id === "empty-layer-0"),
|
|
37151
|
+
(g = (b = this.originStyle) == null ? void 0 : b.light.layers) == null ? void 0 : g.find((_) => _.id === "empty-layer-1"),
|
|
37152
|
+
(f = (h = this.originStyle) == null ? void 0 : h.light.layers) == null ? void 0 : f.find((_) => _.id === "country-boundaries"),
|
|
37153
|
+
(v = (k = this.originStyle) == null ? void 0 : k.light.layers) == null ? void 0 : v.find((_) => _.id === "water-outline"),
|
|
37154
|
+
(L = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : L.find((_) => _.id === "water-outline2"),
|
|
37155
|
+
(z = (P = this.originStyle) == null ? void 0 : P.light.layers) == null ? void 0 : z.find((_) => _.id === "empty-layer-2"),
|
|
37156
|
+
(S = (R = this.originStyle) == null ? void 0 : R.light.layers) == null ? void 0 : S.find((_) => _.id === "water-line-label"),
|
|
37157
|
+
(N = (F = this.originStyle) == null ? void 0 : F.light.layers) == null ? void 0 : N.find((_) => _.id === "water-point-label"),
|
|
37158
|
+
(Q = (B = this.originStyle) == null ? void 0 : B.light.layers) == null ? void 0 : Q.find((_) => _.id === "loadlines-label"),
|
|
37159
|
+
(oe = (q = this.originStyle) == null ? void 0 : q.light.layers) == null ? void 0 : oe.find((_) => _.id === "loadlines-fill"),
|
|
37160
|
+
(he = (ge = this.originStyle) == null ? void 0 : ge.light.layers) == null ? void 0 : he.find((_) => _.id === "world-12nm-v4-20231025"),
|
|
37161
|
+
(J = (E = this.originStyle) == null ? void 0 : E.light.layers) == null ? void 0 : J.find((_) => _.id === "ne-10m-outline"),
|
|
37162
|
+
(ae = (K = this.originStyle) == null ? void 0 : K.light.layers) == null ? void 0 : ae.find((_) => _.id === "ne-10m-label"),
|
|
37163
|
+
(O = (Y = this.originStyle) == null ? void 0 : Y.light.layers) == null ? void 0 : O.find((_) => _.id === "china-route-line"),
|
|
37164
|
+
(D = (ee = this.originStyle) == null ? void 0 : ee.light.layers) == null ? void 0 : D.find((_) => _.id === "china-route-fill"),
|
|
37165
|
+
(fe = (le = this.originStyle) == null ? void 0 : le.light.layers) == null ? void 0 : fe.find((_) => _.id === "china-route-label"),
|
|
37166
|
+
(ze = (Ae = this.originStyle) == null ? void 0 : Ae.light.layers) == null ? void 0 : ze.find((_) => _.id === "admin-0-boundary-bg"),
|
|
37167
|
+
(be = (ce = this.originStyle) == null ? void 0 : ce.light.layers) == null ? void 0 : be.find((_) => _.id === "admin-0-boundary"),
|
|
37168
|
+
(Te = (ke = this.originStyle) == null ? void 0 : ke.light.layers) == null ? void 0 : Te.find((_) => _.id === "admin-0-boundary-disputed"),
|
|
37169
|
+
(me = ($ = this.originStyle) == null ? void 0 : $.light.layers) == null ? void 0 : me.find((_) => _.id === "country-label"),
|
|
37170
|
+
(Be = (Ye = this.originStyle) == null ? void 0 : Ye.light.layers) == null ? void 0 : Be.find((_) => _.id === "continent-label"),
|
|
37171
|
+
(De = (_e = this.originStyle) == null ? void 0 : _e.light.layers) == null ? void 0 : De.find((_) => _.id === "tide-stations"),
|
|
37172
|
+
(Me = (re = this.originStyle) == null ? void 0 : re.light.layers) == null ? void 0 : Me.find((_) => _.id === "empty-layer-3"),
|
|
37173
|
+
(xe = (pe = this.originStyle) == null ? void 0 : pe.light.layers) == null ? void 0 : xe.find((_) => _.id === "empty-layer-4")
|
|
37173
37174
|
]
|
|
37174
37175
|
},
|
|
37175
37176
|
dark: {
|
|
@@ -37194,33 +37195,33 @@ class If {
|
|
|
37194
37195
|
protected: !1,
|
|
37195
37196
|
draft: !1,
|
|
37196
37197
|
layers: [
|
|
37197
|
-
(Ze = (Ee = this.originStyle) == null ? void 0 : Ee.dark.layers) == null ? void 0 : Ze.find((
|
|
37198
|
-
(te = (Ve = this.originStyle) == null ? void 0 : Ve.dark.layers) == null ? void 0 : te.find((
|
|
37199
|
-
(ne = (Ne = this.originStyle) == null ? void 0 : Ne.dark.layers) == null ? void 0 : ne.find((
|
|
37200
|
-
(at = (ot = this.originStyle) == null ? void 0 : ot.dark.layers) == null ? void 0 : at.find((
|
|
37201
|
-
(Fe = (it = this.originStyle) == null ? void 0 : it.dark.layers) == null ? void 0 : Fe.find((
|
|
37202
|
-
(dt = (mt = this.originStyle) == null ? void 0 : mt.dark.layers) == null ? void 0 : dt.find((
|
|
37203
|
-
(pt = (ht = this.originStyle) == null ? void 0 : ht.dark.layers) == null ? void 0 : pt.find((
|
|
37204
|
-
(gt = (ut = this.originStyle) == null ? void 0 : ut.dark.layers) == null ? void 0 : gt.find((
|
|
37205
|
-
(yt = (ft = this.originStyle) == null ? void 0 : ft.dark.layers) == null ? void 0 : yt.find((
|
|
37206
|
-
(wt = (bt = this.originStyle) == null ? void 0 : bt.dark.layers) == null ? void 0 : wt.find((
|
|
37207
|
-
(vt = (xt = this.originStyle) == null ? void 0 : xt.dark.layers) == null ? void 0 : vt.find((
|
|
37208
|
-
(kt = (At = this.originStyle) == null ? void 0 : At.dark.layers) == null ? void 0 : kt.find((
|
|
37209
|
-
(zt = (Lt = this.originStyle) == null ? void 0 : Lt.dark.layers) == null ? void 0 : zt.find((
|
|
37210
|
-
(
|
|
37211
|
-
(Pt = (Mt = this.originStyle) == null ? void 0 : Mt.dark.layers) == null ? void 0 : Pt.find((
|
|
37212
|
-
(Tt = (St = this.originStyle) == null ? void 0 : St.dark.layers) == null ? void 0 : Tt.find((
|
|
37213
|
-
(It = (Rt = this.originStyle) == null ? void 0 : Rt.dark.layers) == null ? void 0 : It.find((
|
|
37214
|
-
(Et = (Dt = this.originStyle) == null ? void 0 : Dt.dark.layers) == null ? void 0 : Et.find((
|
|
37215
|
-
(Ft = (Gt = this.originStyle) == null ? void 0 : Gt.dark.layers) == null ? void 0 : Ft.find((
|
|
37216
|
-
(Bt = (jt = this.originStyle) == null ? void 0 : jt.dark.layers) == null ? void 0 : Bt.find((
|
|
37217
|
-
(Wt = (Nt = this.originStyle) == null ? void 0 : Nt.dark.layers) == null ? void 0 : Wt.find((
|
|
37218
|
-
(Vt = (Zt = this.originStyle) == null ? void 0 : Zt.dark.layers) == null ? void 0 : Vt.find((
|
|
37219
|
-
(Ot = (Xt = this.originStyle) == null ? void 0 : Xt.dark.layers) == null ? void 0 : Ot.find((
|
|
37220
|
-
(Ht = (Yt = this.originStyle) == null ? void 0 : Yt.dark.layers) == null ? void 0 : Ht.find((
|
|
37221
|
-
(Jt = (Ut = this.originStyle) == null ? void 0 : Ut.dark.layers) == null ? void 0 : Jt.find((
|
|
37222
|
-
(Qt = (Kt = this.originStyle) == null ? void 0 : Kt.dark.layers) == null ? void 0 : Qt.find((
|
|
37223
|
-
($t = (qt = this.originStyle) == null ? void 0 : qt.dark.layers) == null ? void 0 : $t.find((
|
|
37198
|
+
(Ze = (Ee = this.originStyle) == null ? void 0 : Ee.dark.layers) == null ? void 0 : Ze.find((_) => _.id === "land"),
|
|
37199
|
+
(te = (Ve = this.originStyle) == null ? void 0 : Ve.dark.layers) == null ? void 0 : te.find((_) => _.id === "water"),
|
|
37200
|
+
(ne = (Ne = this.originStyle) == null ? void 0 : Ne.dark.layers) == null ? void 0 : ne.find((_) => _.id === "ice-area-fill"),
|
|
37201
|
+
(at = (ot = this.originStyle) == null ? void 0 : ot.dark.layers) == null ? void 0 : at.find((_) => _.id === "ice-area-line"),
|
|
37202
|
+
(Fe = (it = this.originStyle) == null ? void 0 : it.dark.layers) == null ? void 0 : Fe.find((_) => _.id === "empty-layer-0"),
|
|
37203
|
+
(dt = (mt = this.originStyle) == null ? void 0 : mt.dark.layers) == null ? void 0 : dt.find((_) => _.id === "empty-layer-1"),
|
|
37204
|
+
(pt = (ht = this.originStyle) == null ? void 0 : ht.dark.layers) == null ? void 0 : pt.find((_) => _.id === "country-boundaries"),
|
|
37205
|
+
(gt = (ut = this.originStyle) == null ? void 0 : ut.dark.layers) == null ? void 0 : gt.find((_) => _.id === "water-outline"),
|
|
37206
|
+
(yt = (ft = this.originStyle) == null ? void 0 : ft.dark.layers) == null ? void 0 : yt.find((_) => _.id === "empty-layer-2"),
|
|
37207
|
+
(wt = (bt = this.originStyle) == null ? void 0 : bt.dark.layers) == null ? void 0 : wt.find((_) => _.id === "water-line-label"),
|
|
37208
|
+
(vt = (xt = this.originStyle) == null ? void 0 : xt.dark.layers) == null ? void 0 : vt.find((_) => _.id === "water-point-label"),
|
|
37209
|
+
(kt = (At = this.originStyle) == null ? void 0 : At.dark.layers) == null ? void 0 : kt.find((_) => _.id === "loadlines-label"),
|
|
37210
|
+
(zt = (Lt = this.originStyle) == null ? void 0 : Lt.dark.layers) == null ? void 0 : zt.find((_) => _.id === "loadlines-fill"),
|
|
37211
|
+
(_t = (Ct = this.originStyle) == null ? void 0 : Ct.dark.layers) == null ? void 0 : _t.find((_) => _.id === "world-12nm-v4-20231025"),
|
|
37212
|
+
(Pt = (Mt = this.originStyle) == null ? void 0 : Mt.dark.layers) == null ? void 0 : Pt.find((_) => _.id === "ne-10m-outline"),
|
|
37213
|
+
(Tt = (St = this.originStyle) == null ? void 0 : St.dark.layers) == null ? void 0 : Tt.find((_) => _.id === "ne-10m-label"),
|
|
37214
|
+
(It = (Rt = this.originStyle) == null ? void 0 : Rt.dark.layers) == null ? void 0 : It.find((_) => _.id === "china-route-line"),
|
|
37215
|
+
(Et = (Dt = this.originStyle) == null ? void 0 : Dt.dark.layers) == null ? void 0 : Et.find((_) => _.id === "china-route-fill"),
|
|
37216
|
+
(Ft = (Gt = this.originStyle) == null ? void 0 : Gt.dark.layers) == null ? void 0 : Ft.find((_) => _.id === "china-route-label"),
|
|
37217
|
+
(Bt = (jt = this.originStyle) == null ? void 0 : jt.dark.layers) == null ? void 0 : Bt.find((_) => _.id === "admin-0-boundary-bg"),
|
|
37218
|
+
(Wt = (Nt = this.originStyle) == null ? void 0 : Nt.dark.layers) == null ? void 0 : Wt.find((_) => _.id === "admin-0-boundary"),
|
|
37219
|
+
(Vt = (Zt = this.originStyle) == null ? void 0 : Zt.dark.layers) == null ? void 0 : Vt.find((_) => _.id === "admin-0-boundary-disputed"),
|
|
37220
|
+
(Ot = (Xt = this.originStyle) == null ? void 0 : Xt.dark.layers) == null ? void 0 : Ot.find((_) => _.id === "country-label"),
|
|
37221
|
+
(Ht = (Yt = this.originStyle) == null ? void 0 : Yt.dark.layers) == null ? void 0 : Ht.find((_) => _.id === "continent-label"),
|
|
37222
|
+
(Jt = (Ut = this.originStyle) == null ? void 0 : Ut.dark.layers) == null ? void 0 : Jt.find((_) => _.id === "tide-stations"),
|
|
37223
|
+
(Qt = (Kt = this.originStyle) == null ? void 0 : Kt.dark.layers) == null ? void 0 : Qt.find((_) => _.id === "empty-layer-3"),
|
|
37224
|
+
($t = (qt = this.originStyle) == null ? void 0 : qt.dark.layers) == null ? void 0 : $t.find((_) => _.id === "empty-layer-4")
|
|
37224
37225
|
]
|
|
37225
37226
|
},
|
|
37226
37227
|
satellite: {
|
|
@@ -37243,26 +37244,26 @@ class If {
|
|
|
37243
37244
|
protected: !1,
|
|
37244
37245
|
draft: !1,
|
|
37245
37246
|
layers: [
|
|
37246
|
-
(so = (no = this.originStyle) == null ? void 0 : no.satellite.layers) == null ? void 0 : so.find((
|
|
37247
|
-
(mo = (co = this.originStyle) == null ? void 0 : co.satellite.layers) == null ? void 0 : mo.find((
|
|
37248
|
-
(po = (ho = this.originStyle) == null ? void 0 : ho.satellite.layers) == null ? void 0 : po.find((
|
|
37249
|
-
(go = (uo = this.originStyle) == null ? void 0 : uo.satellite.layers) == null ? void 0 : go.find((
|
|
37250
|
-
(yo = (fo = this.originStyle) == null ? void 0 : fo.satellite.layers) == null ? void 0 : yo.find((
|
|
37251
|
-
(wo = (bo = this.originStyle) == null ? void 0 : bo.satellite.layers) == null ? void 0 : wo.find((
|
|
37252
|
-
(vo = (xo = this.originStyle) == null ? void 0 : xo.satellite.layers) == null ? void 0 : vo.find((
|
|
37253
|
-
(ko = (Ao = this.originStyle) == null ? void 0 : Ao.satellite.layers) == null ? void 0 : ko.find((
|
|
37254
|
-
(zo = (Lo = this.originStyle) == null ? void 0 : Lo.satellite.layers) == null ? void 0 : zo.find((
|
|
37255
|
-
(
|
|
37256
|
-
(Po = (Mo = this.originStyle) == null ? void 0 : Mo.satellite.layers) == null ? void 0 : Po.find((
|
|
37257
|
-
(To = (So = this.originStyle) == null ? void 0 : So.satellite.layers) == null ? void 0 : To.find((
|
|
37258
|
-
(Io = (Ro = this.originStyle) == null ? void 0 : Ro.satellite.layers) == null ? void 0 : Io.find((
|
|
37259
|
-
(Eo = (Do = this.originStyle) == null ? void 0 : Do.satellite.layers) == null ? void 0 : Eo.find((
|
|
37260
|
-
(wa = (Go = this.originStyle) == null ? void 0 : Go.satellite.layers) == null ? void 0 : wa.find((
|
|
37261
|
-
(va = (xa = this.originStyle) == null ? void 0 : xa.satellite.layers) == null ? void 0 : va.find((
|
|
37262
|
-
(ka = (Aa = this.originStyle) == null ? void 0 : Aa.satellite.layers) == null ? void 0 : ka.find((
|
|
37263
|
-
(za = (La = this.originStyle) == null ? void 0 : La.satellite.layers) == null ? void 0 : za.find((
|
|
37264
|
-
(
|
|
37265
|
-
(Pa = (Ma = this.originStyle) == null ? void 0 : Ma.satellite.layers) == null ? void 0 : Pa.find((
|
|
37247
|
+
(so = (no = this.originStyle) == null ? void 0 : no.satellite.layers) == null ? void 0 : so.find((_) => _.id === "background"),
|
|
37248
|
+
(mo = (co = this.originStyle) == null ? void 0 : co.satellite.layers) == null ? void 0 : mo.find((_) => _.id === "satellite"),
|
|
37249
|
+
(po = (ho = this.originStyle) == null ? void 0 : ho.satellite.layers) == null ? void 0 : po.find((_) => _.id === "ice-area-fill"),
|
|
37250
|
+
(go = (uo = this.originStyle) == null ? void 0 : uo.satellite.layers) == null ? void 0 : go.find((_) => _.id === "ice-area-line"),
|
|
37251
|
+
(yo = (fo = this.originStyle) == null ? void 0 : fo.satellite.layers) == null ? void 0 : yo.find((_) => _.id === "empty-layer-0"),
|
|
37252
|
+
(wo = (bo = this.originStyle) == null ? void 0 : bo.satellite.layers) == null ? void 0 : wo.find((_) => _.id === "empty-layer-1"),
|
|
37253
|
+
(vo = (xo = this.originStyle) == null ? void 0 : xo.satellite.layers) == null ? void 0 : vo.find((_) => _.id === "country-boundaries"),
|
|
37254
|
+
(ko = (Ao = this.originStyle) == null ? void 0 : Ao.satellite.layers) == null ? void 0 : ko.find((_) => _.id === "water-outline"),
|
|
37255
|
+
(zo = (Lo = this.originStyle) == null ? void 0 : Lo.satellite.layers) == null ? void 0 : zo.find((_) => _.id === "empty-layer-2"),
|
|
37256
|
+
(_o = (Co = this.originStyle) == null ? void 0 : Co.satellite.layers) == null ? void 0 : _o.find((_) => _.id === "loadlines-label"),
|
|
37257
|
+
(Po = (Mo = this.originStyle) == null ? void 0 : Mo.satellite.layers) == null ? void 0 : Po.find((_) => _.id === "loadlines-fill"),
|
|
37258
|
+
(To = (So = this.originStyle) == null ? void 0 : So.satellite.layers) == null ? void 0 : To.find((_) => _.id === "world-12nm-v4-20231025"),
|
|
37259
|
+
(Io = (Ro = this.originStyle) == null ? void 0 : Ro.satellite.layers) == null ? void 0 : Io.find((_) => _.id === "ne-10m-outline"),
|
|
37260
|
+
(Eo = (Do = this.originStyle) == null ? void 0 : Do.satellite.layers) == null ? void 0 : Eo.find((_) => _.id === "ne-10m-label"),
|
|
37261
|
+
(wa = (Go = this.originStyle) == null ? void 0 : Go.satellite.layers) == null ? void 0 : wa.find((_) => _.id === "china-route-line"),
|
|
37262
|
+
(va = (xa = this.originStyle) == null ? void 0 : xa.satellite.layers) == null ? void 0 : va.find((_) => _.id === "china-route-fill"),
|
|
37263
|
+
(ka = (Aa = this.originStyle) == null ? void 0 : Aa.satellite.layers) == null ? void 0 : ka.find((_) => _.id === "china-route-label"),
|
|
37264
|
+
(za = (La = this.originStyle) == null ? void 0 : La.satellite.layers) == null ? void 0 : za.find((_) => _.id === "tide-stations"),
|
|
37265
|
+
(_a = (Ca = this.originStyle) == null ? void 0 : Ca.satellite.layers) == null ? void 0 : _a.find((_) => _.id === "empty-layer-3"),
|
|
37266
|
+
(Pa = (Ma = this.originStyle) == null ? void 0 : Ma.satellite.layers) == null ? void 0 : Pa.find((_) => _.id === "empty-layer-4")
|
|
37266
37267
|
]
|
|
37267
37268
|
},
|
|
37268
37269
|
nautical: {
|
|
@@ -37322,28 +37323,28 @@ class If {
|
|
|
37322
37323
|
projection: this.originStyle.light.projection,
|
|
37323
37324
|
sources: this.originStyle.light.sources,
|
|
37324
37325
|
layers: [
|
|
37325
|
-
(Ta = (Sa = this.originStyle) == null ? void 0 : Sa.light.layers) == null ? void 0 : Ta.find((
|
|
37326
|
-
(Ia = (Ra = this.originStyle) == null ? void 0 : Ra.light.layers) == null ? void 0 : Ia.find((
|
|
37326
|
+
(Ta = (Sa = this.originStyle) == null ? void 0 : Sa.light.layers) == null ? void 0 : Ta.find((_) => _.id === "land"),
|
|
37327
|
+
(Ia = (Ra = this.originStyle) == null ? void 0 : Ra.light.layers) == null ? void 0 : Ia.find((_) => _.id === "water"),
|
|
37327
37328
|
o ? this.hi.layer : this.i4.layer,
|
|
37328
|
-
(Ea = (Da = this.originStyle) == null ? void 0 : Da.light.layers) == null ? void 0 : Ea.find((
|
|
37329
|
-
(Fa = (Ga = this.originStyle) == null ? void 0 : Ga.light.layers) == null ? void 0 : Fa.find((
|
|
37330
|
-
(Ba = (ja = this.originStyle) == null ? void 0 : ja.light.layers) == null ? void 0 : Ba.find((
|
|
37331
|
-
(Wa = (Na = this.originStyle) == null ? void 0 : Na.light.layers) == null ? void 0 : Wa.find((
|
|
37332
|
-
(Va = (Za = this.originStyle) == null ? void 0 : Za.light.layers) == null ? void 0 : Va.find((
|
|
37333
|
-
(Oa = (Xa = this.originStyle) == null ? void 0 : Xa.light.layers) == null ? void 0 : Oa.find((
|
|
37334
|
-
(Ha = (Ya = this.originStyle) == null ? void 0 : Ya.light.layers) == null ? void 0 : Ha.find((
|
|
37335
|
-
(Ja = (Ua = this.originStyle) == null ? void 0 : Ua.light.layers) == null ? void 0 : Ja.find((
|
|
37336
|
-
(Qa = (Ka = this.originStyle) == null ? void 0 : Ka.light.layers) == null ? void 0 : Qa.find((
|
|
37337
|
-
($a = (qa = this.originStyle) == null ? void 0 : qa.light.layers) == null ? void 0 : $a.find((
|
|
37338
|
-
(ti = (ei = this.originStyle) == null ? void 0 : ei.light.layers) == null ? void 0 : ti.find((
|
|
37339
|
-
(ai = (oi = this.originStyle) == null ? void 0 : oi.light.layers) == null ? void 0 : ai.find((
|
|
37340
|
-
(ri = (ii = this.originStyle) == null ? void 0 : ii.light.layers) == null ? void 0 : ri.find((
|
|
37341
|
-
(ni = (li = this.originStyle) == null ? void 0 : li.light.layers) == null ? void 0 : ni.find((
|
|
37342
|
-
(ci = (si = this.originStyle) == null ? void 0 : si.light.layers) == null ? void 0 : ci.find((
|
|
37343
|
-
(di = (mi = this.originStyle) == null ? void 0 : mi.light.layers) == null ? void 0 : di.find((
|
|
37344
|
-
(pi = (hi = this.originStyle) == null ? void 0 : hi.light.layers) == null ? void 0 : pi.find((
|
|
37345
|
-
(gi = (ui = this.originStyle) == null ? void 0 : ui.light.layers) == null ? void 0 : gi.find((
|
|
37346
|
-
(yi = (fi = this.originStyle) == null ? void 0 : fi.light.layers) == null ? void 0 : yi.find((
|
|
37329
|
+
(Ea = (Da = this.originStyle) == null ? void 0 : Da.light.layers) == null ? void 0 : Ea.find((_) => _.id === "ice-area-fill"),
|
|
37330
|
+
(Fa = (Ga = this.originStyle) == null ? void 0 : Ga.light.layers) == null ? void 0 : Fa.find((_) => _.id === "ice-area-line"),
|
|
37331
|
+
(Ba = (ja = this.originStyle) == null ? void 0 : ja.light.layers) == null ? void 0 : Ba.find((_) => _.id === "empty-layer-0"),
|
|
37332
|
+
(Wa = (Na = this.originStyle) == null ? void 0 : Na.light.layers) == null ? void 0 : Wa.find((_) => _.id === "empty-layer-1"),
|
|
37333
|
+
(Va = (Za = this.originStyle) == null ? void 0 : Za.light.layers) == null ? void 0 : Va.find((_) => _.id === "empty-layer-2"),
|
|
37334
|
+
(Oa = (Xa = this.originStyle) == null ? void 0 : Xa.light.layers) == null ? void 0 : Oa.find((_) => _.id === "country-boundaries"),
|
|
37335
|
+
(Ha = (Ya = this.originStyle) == null ? void 0 : Ya.light.layers) == null ? void 0 : Ha.find((_) => _.id === "water-outline"),
|
|
37336
|
+
(Ja = (Ua = this.originStyle) == null ? void 0 : Ua.light.layers) == null ? void 0 : Ja.find((_) => _.id === "water-outline2"),
|
|
37337
|
+
(Qa = (Ka = this.originStyle) == null ? void 0 : Ka.light.layers) == null ? void 0 : Qa.find((_) => _.id === "loadlines-label"),
|
|
37338
|
+
($a = (qa = this.originStyle) == null ? void 0 : qa.light.layers) == null ? void 0 : $a.find((_) => _.id === "loadlines-fill"),
|
|
37339
|
+
(ti = (ei = this.originStyle) == null ? void 0 : ei.light.layers) == null ? void 0 : ti.find((_) => _.id === "world-12nm-v4-20231025"),
|
|
37340
|
+
(ai = (oi = this.originStyle) == null ? void 0 : oi.light.layers) == null ? void 0 : ai.find((_) => _.id === "ne-10m-outline"),
|
|
37341
|
+
(ri = (ii = this.originStyle) == null ? void 0 : ii.light.layers) == null ? void 0 : ri.find((_) => _.id === "ne-10m-label"),
|
|
37342
|
+
(ni = (li = this.originStyle) == null ? void 0 : li.light.layers) == null ? void 0 : ni.find((_) => _.id === "china-route-line"),
|
|
37343
|
+
(ci = (si = this.originStyle) == null ? void 0 : si.light.layers) == null ? void 0 : ci.find((_) => _.id === "china-route-fill"),
|
|
37344
|
+
(di = (mi = this.originStyle) == null ? void 0 : mi.light.layers) == null ? void 0 : di.find((_) => _.id === "china-route-label"),
|
|
37345
|
+
(pi = (hi = this.originStyle) == null ? void 0 : hi.light.layers) == null ? void 0 : pi.find((_) => _.id === "tide-stations"),
|
|
37346
|
+
(gi = (ui = this.originStyle) == null ? void 0 : ui.light.layers) == null ? void 0 : gi.find((_) => _.id === "empty-layer-3"),
|
|
37347
|
+
(yi = (fi = this.originStyle) == null ? void 0 : fi.light.layers) == null ? void 0 : yi.find((_) => _.id === "empty-layer-4")
|
|
37347
37348
|
]
|
|
37348
37349
|
}
|
|
37349
37350
|
};
|
|
@@ -37936,7 +37937,7 @@ export {
|
|
|
37936
37937
|
Rf as b,
|
|
37937
37938
|
Uf as c,
|
|
37938
37939
|
lr as d,
|
|
37939
|
-
|
|
37940
|
+
Ce as e,
|
|
37940
37941
|
je as f,
|
|
37941
37942
|
If as g,
|
|
37942
37943
|
No as l
|