@abi-software/flatmapvuer 1.5.6-beta.1 → 1.5.6-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/flatmapvuer.js +341 -337
- package/dist/flatmapvuer.umd.cjs +22 -20
- package/package.json +2 -2
- package/src/services/flatmapQueries.js +0 -1
package/dist/flatmapvuer.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getCurrentScope as Uj, onScopeDispose as $M, unref as vt, getCurrentInstance as G1, onMounted as $1, nextTick as i1, ref as Ie, readonly as Gj, watch as on, defineComponent as mr, openBlock as ae, createElementBlock as Ye, createElementVNode as Ze, warn as uet, watchEffect as $j, onBeforeUnmount as Vs, inject as ln, computed as Kt, isRef as Q2, shallowRef as CQ, onBeforeMount as het, provide as no, mergeProps as tl, renderSlot as Pr, toRef as
|
|
1
|
+
import { getCurrentScope as Uj, onScopeDispose as $M, unref as vt, getCurrentInstance as G1, onMounted as $1, nextTick as i1, ref as Ie, readonly as Gj, watch as on, defineComponent as mr, openBlock as ae, createElementBlock as Ye, createElementVNode as Ze, warn as uet, watchEffect as $j, onBeforeUnmount as Vs, inject as ln, computed as Kt, isRef as Q2, shallowRef as CQ, onBeforeMount as het, provide as no, mergeProps as tl, renderSlot as Pr, toRef as Z2, onUnmounted as det, createBlock as Hr, Transition as ad, withCtx as fe, withDirectives as Ti, normalizeClass as Be, normalizeStyle as M1, vShow as Bo, Fragment as J1, createVNode as Ce, reactive as c3, onActivated as pet, onUpdated as Tet, resolveDynamicComponent as Ms, createCommentVNode as Dr, cloneVNode as fet, Text as Wj, Comment as Qet, Teleport as met, onDeactivated as get, toDisplayString as fi, useSlots as dg, toRaw as Ch, withModifiers as m1, vModelCheckbox as kQ, createTextVNode as xn, toRefs as i0, vModelRadio as Zj, h as v7, createSlots as qj, resolveComponent as Ls, resolveDirective as yet, toHandlerKey as vet, renderList as Ja, withKeys as ou, vModelText as _et, createApp as bet, pushScopeId as WM, popScopeId as ZM, createStaticVNode as Let, hasInjectionContext as wet, markRaw as ws, effectScope as xet, isReactive as qM } from "vue";
|
|
2
2
|
import { MapSvgIcon as Eet, MapSvgSpriteColor as Met } from "@abi-software/svg-sprite";
|
|
3
3
|
import { Tooltip as Het, TreeControls as Aet, DrawToolbar as Oet } from "@abi-software/map-utilities";
|
|
4
4
|
const i4 = (t, e, { checkForDefaultPrevented: r = !0 } = {}) => (i) => {
|
|
@@ -2667,7 +2667,7 @@ const d3 = g2(Z2t), mS = Symbol("formContextKey"), DQ = Symbol("formItemContextK
|
|
|
2667
2667
|
return !!(!(t.label || t.ariaLabel) && e && e.inputIds && ((a = e.inputIds) == null ? void 0 : a.length) <= 1);
|
|
2668
2668
|
});
|
|
2669
2669
|
return $1(() => {
|
|
2670
|
-
o = on([
|
|
2670
|
+
o = on([Z2(t, "id"), r], ([a, u]) => {
|
|
2671
2671
|
const d = a ?? (u ? void 0 : j5().value);
|
|
2672
2672
|
d !== i.value && (e != null && e.removeInputId && (i.value && e.removeInputId(i.value), !(n != null && n.value) && !u && d && e.addInputId(d)), i.value = d);
|
|
2673
2673
|
}, { immediate: !0 });
|
|
@@ -2761,7 +2761,7 @@ const d3 = g2(Z2t), mS = Symbol("formContextKey"), DQ = Symbol("formItemContextK
|
|
|
2761
2761
|
const F = () => {
|
|
2762
2762
|
document.onselectstart !== T && (document.onselectstart = T);
|
|
2763
2763
|
};
|
|
2764
|
-
return ta(
|
|
2764
|
+
return ta(Z2(r, "scrollbarElement"), "mousemove", k), ta(Z2(r, "scrollbarElement"), "mouseleave", R), (U, $) => (ae(), Hr(ad, {
|
|
2765
2765
|
name: vt(n).b("fade"),
|
|
2766
2766
|
persisted: ""
|
|
2767
2767
|
}, {
|
|
@@ -3737,7 +3737,7 @@ const Nst = 0, Dst = (t) => {
|
|
|
3737
3737
|
}
|
|
3738
3738
|
});
|
|
3739
3739
|
var Ust = /* @__PURE__ */ Hn(zst, [["__file", "content.vue"]]);
|
|
3740
|
-
const Gst = g2(dst), bS = Symbol("elTooltip"),
|
|
3740
|
+
const Gst = g2(dst), bS = Symbol("elTooltip"), G2 = Sn({
|
|
3741
3741
|
...H2t,
|
|
3742
3742
|
...nU,
|
|
3743
3743
|
appendTo: {
|
|
@@ -3778,7 +3778,7 @@ const Gst = g2(dst), bS = Symbol("elTooltip"), $2 = Sn({
|
|
|
3778
3778
|
} = vot("visible"), qst = Sn({
|
|
3779
3779
|
...Xz,
|
|
3780
3780
|
...$st,
|
|
3781
|
-
|
|
3781
|
+
...G2,
|
|
3782
3782
|
...Fh,
|
|
3783
3783
|
...Kz,
|
|
3784
3784
|
showArrow: {
|
|
@@ -3804,7 +3804,7 @@ const Gst = g2(dst), bS = Symbol("elTooltip"), $2 = Sn({
|
|
|
3804
3804
|
const r = t, n = Bn("tooltip"), { controlled: i, id: o, open: s, onOpen: a, onClose: u, onToggle: d } = ln(bS, void 0), T = Ie(null), f = () => {
|
|
3805
3805
|
if (vt(i) || r.disabled)
|
|
3806
3806
|
return !0;
|
|
3807
|
-
}, Q =
|
|
3807
|
+
}, Q = Z2(r, "trigger"), y = i4(f, ql(Q, "hover", a)), _ = i4(f, ql(Q, "hover", u)), L = i4(f, ql(Q, "click", (R) => {
|
|
3808
3808
|
R.button === 0 && d(R);
|
|
3809
3809
|
})), E = i4(f, ql(Q, "focus", a)), x = i4(f, ql(Q, "focus", u)), O = i4(f, ql(Q, "contextmenu", (R) => {
|
|
3810
3810
|
R.preventDefault(), d(R);
|
|
@@ -3860,7 +3860,7 @@ const iU = g2(nat), iat = mr({
|
|
|
3860
3860
|
inheritAttrs: !1
|
|
3861
3861
|
}), oat = /* @__PURE__ */ mr({
|
|
3862
3862
|
...iat,
|
|
3863
|
-
props:
|
|
3863
|
+
props: G2,
|
|
3864
3864
|
setup(t, { expose: e }) {
|
|
3865
3865
|
const r = t, { selector: n } = jz(), i = Bn("tooltip"), o = Ie(null);
|
|
3866
3866
|
let s;
|
|
@@ -3992,9 +3992,9 @@ const aat = mr({
|
|
|
3992
3992
|
indicator: u,
|
|
3993
3993
|
toggleReason: d
|
|
3994
3994
|
}), { onOpen: y, onClose: _ } = A2t({
|
|
3995
|
-
showAfter:
|
|
3996
|
-
hideAfter:
|
|
3997
|
-
autoClose:
|
|
3995
|
+
showAfter: Z2(n, "showAfter"),
|
|
3996
|
+
hideAfter: Z2(n, "hideAfter"),
|
|
3997
|
+
autoClose: Z2(n, "autoClose"),
|
|
3998
3998
|
open: T,
|
|
3999
3999
|
close: f
|
|
4000
4000
|
}), L = Kt(() => E4(n.visible) && !Q.value);
|
|
@@ -4002,7 +4002,7 @@ const aat = mr({
|
|
|
4002
4002
|
controlled: L,
|
|
4003
4003
|
id: i,
|
|
4004
4004
|
open: Gj(u),
|
|
4005
|
-
trigger:
|
|
4005
|
+
trigger: Z2(n, "trigger"),
|
|
4006
4006
|
onOpen: (x) => {
|
|
4007
4007
|
y(x);
|
|
4008
4008
|
},
|
|
@@ -4829,8 +4829,8 @@ const Oat = {
|
|
|
4829
4829
|
setup(t) {
|
|
4830
4830
|
const e = t;
|
|
4831
4831
|
no(sU, c3({
|
|
4832
|
-
size:
|
|
4833
|
-
type:
|
|
4832
|
+
size: Z2(e, "size"),
|
|
4833
|
+
type: Z2(e, "type")
|
|
4834
4834
|
}));
|
|
4835
4835
|
const r = Bn("button");
|
|
4836
4836
|
return (n, i) => (ae(), Ye("div", {
|
|
@@ -6298,7 +6298,7 @@ const U3t = "data-el-collection-item", G3t = (t) => {
|
|
|
6298
6298
|
}, _b = Sn({
|
|
6299
6299
|
trigger: Fh.trigger,
|
|
6300
6300
|
effect: {
|
|
6301
|
-
|
|
6301
|
+
...G2.effect,
|
|
6302
6302
|
default: "light"
|
|
6303
6303
|
},
|
|
6304
6304
|
type: {
|
|
@@ -6354,7 +6354,7 @@ const U3t = "data-el-collection-item", G3t = (t) => {
|
|
|
6354
6354
|
buttonProps: {
|
|
6355
6355
|
type: Gr(Object)
|
|
6356
6356
|
},
|
|
6357
|
-
teleported:
|
|
6357
|
+
teleported: G2.teleported
|
|
6358
6358
|
});
|
|
6359
6359
|
Sn({
|
|
6360
6360
|
command: {
|
|
@@ -6939,7 +6939,7 @@ const e4t = Sn({
|
|
|
6939
6939
|
type: Number,
|
|
6940
6940
|
default: 1
|
|
6941
6941
|
},
|
|
6942
|
-
teleported:
|
|
6942
|
+
teleported: G2.teleported,
|
|
6943
6943
|
persistent: {
|
|
6944
6944
|
type: Boolean,
|
|
6945
6945
|
default: !0
|
|
@@ -7415,22 +7415,22 @@ const a4t = Sn({
|
|
|
7415
7415
|
trigger: Fh.trigger,
|
|
7416
7416
|
placement: _b.placement,
|
|
7417
7417
|
disabled: Fh.disabled,
|
|
7418
|
-
visible:
|
|
7419
|
-
transition:
|
|
7418
|
+
visible: G2.visible,
|
|
7419
|
+
transition: G2.transition,
|
|
7420
7420
|
popperOptions: _b.popperOptions,
|
|
7421
7421
|
tabindex: _b.tabindex,
|
|
7422
|
-
content:
|
|
7423
|
-
popperStyle:
|
|
7424
|
-
popperClass:
|
|
7422
|
+
content: G2.content,
|
|
7423
|
+
popperStyle: G2.popperStyle,
|
|
7424
|
+
popperClass: G2.popperClass,
|
|
7425
7425
|
enterable: {
|
|
7426
|
-
|
|
7426
|
+
...G2.enterable,
|
|
7427
7427
|
default: !0
|
|
7428
7428
|
},
|
|
7429
7429
|
effect: {
|
|
7430
|
-
|
|
7430
|
+
...G2.effect,
|
|
7431
7431
|
default: "light"
|
|
7432
7432
|
},
|
|
7433
|
-
teleported:
|
|
7433
|
+
teleported: G2.teleported,
|
|
7434
7434
|
title: String,
|
|
7435
7435
|
width: {
|
|
7436
7436
|
type: [String, Number],
|
|
@@ -8580,21 +8580,21 @@ var Zo = function(t) {
|
|
|
8580
8580
|
return e6t(r6t(t));
|
|
8581
8581
|
}, cu = function(t) {
|
|
8582
8582
|
return t && t.Math === Math && t;
|
|
8583
|
-
},
|
|
8583
|
+
}, X2 = (
|
|
8584
8584
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
8585
8585
|
cu(typeof globalThis == "object" && globalThis) || cu(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
|
|
8586
8586
|
cu(typeof self == "object" && self) || cu(typeof P == "object" && P) || cu(typeof P == "object" && P) || // eslint-disable-next-line no-new-func -- fallback
|
|
8587
8587
|
/* @__PURE__ */ function() {
|
|
8588
8588
|
return this;
|
|
8589
8589
|
}() || Function("return this")()
|
|
8590
|
-
), RU = { exports: {} }, LI =
|
|
8590
|
+
), RU = { exports: {} }, LI = X2, n6t = Object.defineProperty, MS = function(t, e) {
|
|
8591
8591
|
try {
|
|
8592
8592
|
n6t(LI, t, { value: e, configurable: !0, writable: !0 });
|
|
8593
8593
|
} catch {
|
|
8594
8594
|
LI[t] = e;
|
|
8595
8595
|
}
|
|
8596
8596
|
return e;
|
|
8597
|
-
}, i6t =
|
|
8597
|
+
}, i6t = X2, o6t = MS, wI = "__core-js_shared__", xI = RU.exports = i6t[wI] || o6t(wI, {});
|
|
8598
8598
|
(xI.versions || (xI.versions = [])).push({
|
|
8599
8599
|
version: "3.37.0",
|
|
8600
8600
|
mode: "global",
|
|
@@ -8610,14 +8610,14 @@ var SS = RU.exports, EI = SS, NU = function(t, e) {
|
|
|
8610
8610
|
return u6t(c6t(t), e);
|
|
8611
8611
|
}, h6t = io, d6t = 0, p6t = Math.random(), T6t = h6t(1 .toString), HS = function(t) {
|
|
8612
8612
|
return "Symbol(" + (t === void 0 ? "" : t) + ")_" + T6t(++d6t + p6t, 36);
|
|
8613
|
-
}, f6t = typeof navigator < "u" && String(navigator.userAgent) || "", FU =
|
|
8613
|
+
}, f6t = typeof navigator < "u" && String(navigator.userAgent) || "", FU = X2, xb = f6t, MI = FU.process, SI = FU.Deno, HI = MI && MI.versions || SI && SI.version, AI = HI && HI.v8, Js, FQ;
|
|
8614
8614
|
AI && (Js = AI.split("."), FQ = Js[0] > 0 && Js[0] < 4 ? 1 : +(Js[0] + Js[1]));
|
|
8615
8615
|
!FQ && xb && (Js = xb.match(/Edge\/(\d+)/), (!Js || Js[1] >= 74) && (Js = xb.match(/Chrome\/(\d+)/), Js && (FQ = +Js[1])));
|
|
8616
|
-
var Q6t = FQ, OI = Q6t, m6t = Zo, g6t =
|
|
8616
|
+
var Q6t = FQ, OI = Q6t, m6t = Zo, g6t = X2, y6t = g6t.String, BU = !!Object.getOwnPropertySymbols && !m6t(function() {
|
|
8617
8617
|
var t = Symbol("symbol detection");
|
|
8618
8618
|
return !y6t(t) || !(Object(t) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
8619
8619
|
!Symbol.sham && OI && OI < 41;
|
|
8620
|
-
}), v6t = BU, jU = v6t && !Symbol.sham && typeof Symbol.iterator == "symbol", _6t =
|
|
8620
|
+
}), v6t = BU, jU = v6t && !Symbol.sham && typeof Symbol.iterator == "symbol", _6t = X2, b6t = NU, CI = v3, L6t = HS, w6t = BU, x6t = jU, q7 = _6t.Symbol, Eb = b6t("wks"), E6t = x6t ? q7.for || q7 : q7 && q7.withoutSetter || L6t, Rs = function(t) {
|
|
8621
8621
|
return CI(Eb, t) || (Eb[t] = w6t && CI(q7, t) ? q7[t] : E6t("Symbol." + t)), Eb[t];
|
|
8622
8622
|
}, Mb = typeof document == "object" && document.all, Eo = typeof Mb > "u" && Mb !== void 0 ? function(t) {
|
|
8623
8623
|
return typeof t == "function" || t === Mb;
|
|
@@ -8639,7 +8639,7 @@ var Q6t = FQ, OI = Q6t, m6t = Zo, g6t = K2, y6t = g6t.String, BU = !!Object.getO
|
|
|
8639
8639
|
value: 42,
|
|
8640
8640
|
writable: !1
|
|
8641
8641
|
}).prototype !== 42;
|
|
8642
|
-
}), _3 = {}, I6t =
|
|
8642
|
+
}), _3 = {}, I6t = X2, kI = Ns, bx = I6t.document, P6t = kI(bx) && kI(bx.createElement), AS = function(t) {
|
|
8643
8643
|
return P6t ? bx.createElement(t) : {};
|
|
8644
8644
|
}, V6t = ha, R6t = Zo, N6t = AS, GU = !V6t && !R6t(function() {
|
|
8645
8645
|
return Object.defineProperty(N6t("div"), "a", {
|
|
@@ -8649,7 +8649,7 @@ var Q6t = FQ, OI = Q6t, m6t = Zo, g6t = K2, y6t = g6t.String, BU = !!Object.getO
|
|
|
8649
8649
|
}).a !== 7;
|
|
8650
8650
|
}), D6t = ES, Jp = Function.prototype.call, C4 = D6t ? Jp.bind(Jp) : function() {
|
|
8651
8651
|
return Jp.apply(Jp, arguments);
|
|
8652
|
-
}, Sb =
|
|
8652
|
+
}, Sb = X2, F6t = Eo, B6t = function(t) {
|
|
8653
8653
|
return F6t(t) ? t : void 0;
|
|
8654
8654
|
}, Qd = function(t, e) {
|
|
8655
8655
|
return arguments.length < 2 ? B6t(Sb[t]) : Sb[t] && Sb[t][e];
|
|
@@ -8804,7 +8804,7 @@ Ex[xx] === void 0 && i5t(Ex, xx, {
|
|
|
8804
8804
|
});
|
|
8805
8805
|
var o5t = function(t) {
|
|
8806
8806
|
Ex[xx][t] = !0;
|
|
8807
|
-
}, gd = {}, s5t =
|
|
8807
|
+
}, gd = {}, s5t = X2, a5t = Eo, UI = s5t.WeakMap, l5t = a5t(UI) && /native code/.test(String(UI)), RS = function(t, e) {
|
|
8808
8808
|
return {
|
|
8809
8809
|
enumerable: !(t & 1),
|
|
8810
8810
|
configurable: !(t & 2),
|
|
@@ -8815,7 +8815,7 @@ var o5t = function(t) {
|
|
|
8815
8815
|
return u5t.f(t, e, h5t(1, r));
|
|
8816
8816
|
} : function(t, e, r) {
|
|
8817
8817
|
return t[e] = r, t;
|
|
8818
|
-
}, d5t = l5t, YU =
|
|
8818
|
+
}, d5t = l5t, YU = X2, p5t = Ns, T5t = Ig, Nb = v3, Db = SS, f5t = PS, Q5t = kg, GI = "Object already initialized", Mx = YU.TypeError, m5t = YU.WeakMap, BQ, Bh, jQ, g5t = function(t) {
|
|
8819
8819
|
return jQ(t) ? Bh(t) : BQ(t, {});
|
|
8820
8820
|
}, y5t = function(t) {
|
|
8821
8821
|
return function(e) {
|
|
@@ -8930,7 +8930,7 @@ var rlt = Qd, nlt = io, ilt = Vg, olt = aG, slt = d0, alt = nlt([].concat), llt
|
|
|
8930
8930
|
return r === ylt ? !0 : r === glt ? !1 : Tlt(e) ? plt(e) : !!e;
|
|
8931
8931
|
}, Qlt = yd.normalize = function(t) {
|
|
8932
8932
|
return String(t).replace(flt, ".").toLowerCase();
|
|
8933
|
-
}, mlt = yd.data = {}, glt = yd.NATIVE = "N", ylt = yd.POLYFILL = "P", lG = yd, nT =
|
|
8933
|
+
}, mlt = yd.data = {}, glt = yd.NATIVE = "N", ylt = yd.POLYFILL = "P", lG = yd, nT = X2, vlt = NS.f, _lt = Ig, blt = ec, Llt = MS, wlt = dlt, xlt = lG, b3 = function(t, e) {
|
|
8934
8934
|
var r = t.target, n = t.global, i = t.stat, o, s, a, u, d, T;
|
|
8935
8935
|
if (n ? s = nT : i ? s = nT[r] || Llt(r, {}) : s = nT[r] && nT[r].prototype, s)
|
|
8936
8936
|
for (a in e) {
|
|
@@ -9266,7 +9266,7 @@ var tct = function(t, e) {
|
|
|
9266
9266
|
TP && // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
9267
9267
|
ect(n = e.constructor) && n !== r && rct(i = n.prototype) && i !== r.prototype && TP(t, i), t
|
|
9268
9268
|
);
|
|
9269
|
-
}, ict = b3, oct =
|
|
9269
|
+
}, ict = b3, oct = X2, sct = io, fP = lG, act = ec, lct = wG, cct = MG, uct = SG, hct = Eo, dct = fd, zb = Ns, Ub = Zo, pct = tct, Tct = Rg, fct = nct, Qct = function(t, e, r) {
|
|
9270
9270
|
var n = t.indexOf("Map") !== -1, i = t.indexOf("Weak") !== -1, o = n ? "set" : "add", s = oct[t], a = s && s.prototype, u = s, d = {}, T = function(x) {
|
|
9271
9271
|
var O = sct(a[x]);
|
|
9272
9272
|
act(
|
|
@@ -9614,7 +9614,7 @@ S9t(String, "String", function(t) {
|
|
|
9614
9614
|
var t = A9t(this), e = t.string, r = t.index, n;
|
|
9615
9615
|
return r >= e.length ? OP(void 0, !0) : (n = E9t(e, r), t.index += n.length, OP(n, !1));
|
|
9616
9616
|
});
|
|
9617
|
-
var O9t =
|
|
9617
|
+
var O9t = X2, C9t = O9t, k9t = C9t, I9t = k9t.Set, P9t = {
|
|
9618
9618
|
CSSRuleList: 0,
|
|
9619
9619
|
CSSStyleDeclaration: 0,
|
|
9620
9620
|
CSSValueList: 0,
|
|
@@ -9646,7 +9646,7 @@ var O9t = K2, C9t = O9t, k9t = C9t, I9t = k9t.Set, P9t = {
|
|
|
9646
9646
|
TextTrackCueList: 0,
|
|
9647
9647
|
TextTrackList: 0,
|
|
9648
9648
|
TouchList: 0
|
|
9649
|
-
}, V9t = AS, Wb = V9t("span").classList, CP = Wb && Wb.constructor && Wb.constructor.prototype, R9t = CP === Object.prototype ? void 0 : CP, kP =
|
|
9649
|
+
}, V9t = AS, Wb = V9t("span").classList, CP = Wb && Wb.constructor && Wb.constructor.prototype, R9t = CP === Object.prototype ? void 0 : CP, kP = X2, UG = P9t, N9t = R9t, s9 = x7t, IP = Ig, D9t = Rg, F9t = Rs, Zb = F9t("iterator"), qb = s9.values, GG = function(t, e) {
|
|
9650
9650
|
if (t) {
|
|
9651
9651
|
if (t[Zb] !== qb)
|
|
9652
9652
|
try {
|
|
@@ -10233,7 +10233,7 @@ var $G = { exports: {} };
|
|
|
10233
10233
|
function Ri(h) {
|
|
10234
10234
|
return !h.some(Number.isNaN);
|
|
10235
10235
|
}
|
|
10236
|
-
const
|
|
10236
|
+
const Y2 = { aliceblue: [240, 248, 255], antiquewhite: [250, 235, 215], aqua: [0, 255, 255], aquamarine: [127, 255, 212], azure: [240, 255, 255], beige: [245, 245, 220], bisque: [255, 228, 196], black: [0, 0, 0], blanchedalmond: [255, 235, 205], blue: [0, 0, 255], blueviolet: [138, 43, 226], brown: [165, 42, 42], burlywood: [222, 184, 135], cadetblue: [95, 158, 160], chartreuse: [127, 255, 0], chocolate: [210, 105, 30], coral: [255, 127, 80], cornflowerblue: [100, 149, 237], cornsilk: [255, 248, 220], crimson: [220, 20, 60], cyan: [0, 255, 255], darkblue: [0, 0, 139], darkcyan: [0, 139, 139], darkgoldenrod: [184, 134, 11], darkgray: [169, 169, 169], darkgreen: [0, 100, 0], darkgrey: [169, 169, 169], darkkhaki: [189, 183, 107], darkmagenta: [139, 0, 139], darkolivegreen: [85, 107, 47], darkorange: [255, 140, 0], darkorchid: [153, 50, 204], darkred: [139, 0, 0], darksalmon: [233, 150, 122], darkseagreen: [143, 188, 143], darkslateblue: [72, 61, 139], darkslategray: [47, 79, 79], darkslategrey: [47, 79, 79], darkturquoise: [0, 206, 209], darkviolet: [148, 0, 211], deeppink: [255, 20, 147], deepskyblue: [0, 191, 255], dimgray: [105, 105, 105], dimgrey: [105, 105, 105], dodgerblue: [30, 144, 255], firebrick: [178, 34, 34], floralwhite: [255, 250, 240], forestgreen: [34, 139, 34], fuchsia: [255, 0, 255], gainsboro: [220, 220, 220], ghostwhite: [248, 248, 255], gold: [255, 215, 0], goldenrod: [218, 165, 32], gray: [128, 128, 128], green: [0, 128, 0], greenyellow: [173, 255, 47], grey: [128, 128, 128], honeydew: [240, 255, 240], hotpink: [255, 105, 180], indianred: [205, 92, 92], indigo: [75, 0, 130], ivory: [255, 255, 240], khaki: [240, 230, 140], lavender: [230, 230, 250], lavenderblush: [255, 240, 245], lawngreen: [124, 252, 0], lemonchiffon: [255, 250, 205], lightblue: [173, 216, 230], lightcoral: [240, 128, 128], lightcyan: [224, 255, 255], lightgoldenrodyellow: [250, 250, 210], lightgray: [211, 211, 211], lightgreen: [144, 238, 144], lightgrey: [211, 211, 211], lightpink: [255, 182, 193], lightsalmon: [255, 160, 122], lightseagreen: [32, 178, 170], lightskyblue: [135, 206, 250], lightslategray: [119, 136, 153], lightslategrey: [119, 136, 153], lightsteelblue: [176, 196, 222], lightyellow: [255, 255, 224], lime: [0, 255, 0], limegreen: [50, 205, 50], linen: [250, 240, 230], magenta: [255, 0, 255], maroon: [128, 0, 0], mediumaquamarine: [102, 205, 170], mediumblue: [0, 0, 205], mediumorchid: [186, 85, 211], mediumpurple: [147, 112, 219], mediumseagreen: [60, 179, 113], mediumslateblue: [123, 104, 238], mediumspringgreen: [0, 250, 154], mediumturquoise: [72, 209, 204], mediumvioletred: [199, 21, 133], midnightblue: [25, 25, 112], mintcream: [245, 255, 250], mistyrose: [255, 228, 225], moccasin: [255, 228, 181], navajowhite: [255, 222, 173], navy: [0, 0, 128], oldlace: [253, 245, 230], olive: [128, 128, 0], olivedrab: [107, 142, 35], orange: [255, 165, 0], orangered: [255, 69, 0], orchid: [218, 112, 214], palegoldenrod: [238, 232, 170], palegreen: [152, 251, 152], paleturquoise: [175, 238, 238], palevioletred: [219, 112, 147], papayawhip: [255, 239, 213], peachpuff: [255, 218, 185], peru: [205, 133, 63], pink: [255, 192, 203], plum: [221, 160, 221], powderblue: [176, 224, 230], purple: [128, 0, 128], rebeccapurple: [102, 51, 153], red: [255, 0, 0], rosybrown: [188, 143, 143], royalblue: [65, 105, 225], saddlebrown: [139, 69, 19], salmon: [250, 128, 114], sandybrown: [244, 164, 96], seagreen: [46, 139, 87], seashell: [255, 245, 238], sienna: [160, 82, 45], silver: [192, 192, 192], skyblue: [135, 206, 235], slateblue: [106, 90, 205], slategray: [112, 128, 144], slategrey: [112, 128, 144], snow: [255, 250, 250], springgreen: [0, 255, 127], steelblue: [70, 130, 180], tan: [210, 180, 140], teal: [0, 128, 128], thistle: [216, 191, 216], tomato: [255, 99, 71], turquoise: [64, 224, 208], violet: [238, 130, 238], wheat: [245, 222, 179], white: [255, 255, 255], whitesmoke: [245, 245, 245], yellow: [255, 255, 0], yellowgreen: [154, 205, 50] };
|
|
10237
10237
|
class tn {
|
|
10238
10238
|
constructor(c, p, g, w = 1, H = !0) {
|
|
10239
10239
|
this.r = c, this.g = p, this.b = g, this.a = w, H || (this.r *= w, this.g *= w, this.b *= w, w || this.overwriteGetter("rgb", [c, p, g, w]));
|
|
@@ -10246,7 +10246,7 @@ var $G = { exports: {} };
|
|
|
10246
10246
|
const p = function(g) {
|
|
10247
10247
|
if ((g = g.toLowerCase().trim()) === "transparent")
|
|
10248
10248
|
return [0, 0, 0, 0];
|
|
10249
|
-
const w =
|
|
10249
|
+
const w = Y2[g];
|
|
10250
10250
|
if (w) {
|
|
10251
10251
|
const [A, C, N] = w;
|
|
10252
10252
|
return [A / 255, C / 255, N / 255, 1];
|
|
@@ -10374,7 +10374,7 @@ var $G = { exports: {} };
|
|
|
10374
10374
|
return JSON.stringify(this.values);
|
|
10375
10375
|
}
|
|
10376
10376
|
}
|
|
10377
|
-
const
|
|
10377
|
+
const J2 = /* @__PURE__ */ new Set(["center", "left", "right", "top", "bottom", "top-left", "top-right", "bottom-left", "bottom-right"]);
|
|
10378
10378
|
class _n {
|
|
10379
10379
|
constructor(c) {
|
|
10380
10380
|
this.values = c.slice();
|
|
@@ -10385,7 +10385,7 @@ var $G = { exports: {} };
|
|
|
10385
10385
|
if (Array.isArray(c) && !(c.length < 1) && c.length % 2 == 0) {
|
|
10386
10386
|
for (let p = 0; p < c.length; p += 2) {
|
|
10387
10387
|
const g = c[p], w = c[p + 1];
|
|
10388
|
-
if (typeof g != "string" || !
|
|
10388
|
+
if (typeof g != "string" || !J2.has(g) || !Array.isArray(w) || w.length !== 2 || typeof w[0] != "number" || typeof w[1] != "number")
|
|
10389
10389
|
return;
|
|
10390
10390
|
}
|
|
10391
10391
|
return new _n(c);
|
|
@@ -10499,7 +10499,7 @@ var $G = { exports: {} };
|
|
|
10499
10499
|
return this.message;
|
|
10500
10500
|
}
|
|
10501
10501
|
}
|
|
10502
|
-
const
|
|
10502
|
+
const ts = { string: Fr, number: xe, boolean: _r, object: y1 };
|
|
10503
10503
|
class d1 {
|
|
10504
10504
|
constructor(c, p) {
|
|
10505
10505
|
this.type = c, this.args = p;
|
|
@@ -10513,9 +10513,9 @@ var $G = { exports: {} };
|
|
|
10513
10513
|
let C, N;
|
|
10514
10514
|
if (c.length > 2) {
|
|
10515
10515
|
const z = c[1];
|
|
10516
|
-
if (typeof z != "string" || !(z in
|
|
10516
|
+
if (typeof z != "string" || !(z in ts) || z === "object")
|
|
10517
10517
|
return p.error('The item type argument of "array" must be one of string, number, boolean', 1);
|
|
10518
|
-
C =
|
|
10518
|
+
C = ts[z], w++;
|
|
10519
10519
|
} else
|
|
10520
10520
|
C = wr;
|
|
10521
10521
|
if (c.length > 3) {
|
|
@@ -10525,9 +10525,9 @@ var $G = { exports: {} };
|
|
|
10525
10525
|
}
|
|
10526
10526
|
g = ot(C, N);
|
|
10527
10527
|
} else {
|
|
10528
|
-
if (!
|
|
10528
|
+
if (!ts[H])
|
|
10529
10529
|
throw new Error(`Types doesn't contain name = ${H}`);
|
|
10530
|
-
g =
|
|
10530
|
+
g = ts[H];
|
|
10531
10531
|
}
|
|
10532
10532
|
const A = [];
|
|
10533
10533
|
for (; w < c.length; w++) {
|
|
@@ -11656,7 +11656,7 @@ var $G = { exports: {} };
|
|
|
11656
11656
|
var C;
|
|
11657
11657
|
return A;
|
|
11658
11658
|
}
|
|
11659
|
-
class
|
|
11659
|
+
class es {
|
|
11660
11660
|
constructor(c, p) {
|
|
11661
11661
|
this.type = _r, this.geojson = c, this.geometries = p;
|
|
11662
11662
|
}
|
|
@@ -11672,13 +11672,13 @@ var $G = { exports: {} };
|
|
|
11672
11672
|
A === "Polygon" && w.push(C), A === "MultiPolygon" && w.push(...C);
|
|
11673
11673
|
}
|
|
11674
11674
|
if (w.length)
|
|
11675
|
-
return new
|
|
11675
|
+
return new es(g, { type: "MultiPolygon", coordinates: w });
|
|
11676
11676
|
} else if (g.type === "Feature") {
|
|
11677
11677
|
const w = g.geometry.type;
|
|
11678
11678
|
if (w === "Polygon" || w === "MultiPolygon")
|
|
11679
|
-
return new
|
|
11679
|
+
return new es(g, g.geometry);
|
|
11680
11680
|
} else if (g.type === "Polygon" || g.type === "MultiPolygon")
|
|
11681
|
-
return new
|
|
11681
|
+
return new es(g, g);
|
|
11682
11682
|
}
|
|
11683
11683
|
return p.error("'within' expression requires valid geojson object that contains polygon geometry type.");
|
|
11684
11684
|
}
|
|
@@ -11776,13 +11776,13 @@ var $G = { exports: {} };
|
|
|
11776
11776
|
}
|
|
11777
11777
|
};
|
|
11778
11778
|
function _c(h, c, p, g, w) {
|
|
11779
|
-
|
|
11779
|
+
rs(h, c, p, g || h.length - 1, w || bc);
|
|
11780
11780
|
}
|
|
11781
|
-
function
|
|
11781
|
+
function rs(h, c, p, g, w) {
|
|
11782
11782
|
for (; g > p; ) {
|
|
11783
11783
|
if (g - p > 600) {
|
|
11784
11784
|
var H = g - p + 1, A = c - p + 1, C = Math.log(H), N = 0.5 * Math.exp(2 * C / 3), z = 0.5 * Math.sqrt(C * N * (H - N) / H) * (A - H / 2 < 0 ? -1 : 1);
|
|
11785
|
-
|
|
11785
|
+
rs(h, c, Math.max(p, Math.floor(c - A * N / H + z)), Math.min(g, Math.floor(c + (H - A) * N / H + z)), w);
|
|
11786
11786
|
}
|
|
11787
11787
|
var W = h[c], X = p, tt = g;
|
|
11788
11788
|
for (va(h, p, c), w(h[g], W) > 0 && va(h, p, g); X < tt; ) {
|
|
@@ -11966,7 +11966,7 @@ var $G = { exports: {} };
|
|
|
11966
11966
|
}
|
|
11967
11967
|
return w;
|
|
11968
11968
|
}
|
|
11969
|
-
function
|
|
11969
|
+
function ns(h, c) {
|
|
11970
11970
|
for (const p of h)
|
|
11971
11971
|
for (const g of p)
|
|
11972
11972
|
if (ya(g, c, !0))
|
|
@@ -11978,9 +11978,9 @@ var $G = { exports: {} };
|
|
|
11978
11978
|
if (g !== 1 / 0 && L2(w, H, p) >= g)
|
|
11979
11979
|
return g;
|
|
11980
11980
|
if (_2(w, H)) {
|
|
11981
|
-
if (
|
|
11981
|
+
if (ns(h, c))
|
|
11982
11982
|
return 0;
|
|
11983
|
-
} else if (
|
|
11983
|
+
} else if (ns(c, h))
|
|
11984
11984
|
return 0;
|
|
11985
11985
|
let A = 1 / 0;
|
|
11986
11986
|
for (const C of h)
|
|
@@ -12176,7 +12176,7 @@ var $G = { exports: {} };
|
|
|
12176
12176
|
return !0;
|
|
12177
12177
|
}
|
|
12178
12178
|
}
|
|
12179
|
-
const Oo = { "==": v0, "!=": yl, ">": vl, "<": Nn, ">=": Xo, "<=": gc, array: d1, at: I, boolean: d1, case: it, coalesce: dr, collator: ga, format: H3, image: A3, in: G, "index-of": B, interpolate: un, "interpolate-hcl": un, "interpolate-lab": un, length: N4, let: uo, literal: h1, match: q, number: d1, "number-format": R4, object: d1, slice: ht, step: qt, string: d1, "to-boolean": e1, "to-color": e1, "to-number": e1, "to-string": e1, var: Yr, within:
|
|
12179
|
+
const Oo = { "==": v0, "!=": yl, ">": vl, "<": Nn, ">=": Xo, "<=": gc, array: d1, at: I, boolean: d1, case: it, coalesce: dr, collator: ga, format: H3, image: A3, in: G, "index-of": B, interpolate: un, "interpolate-hcl": un, "interpolate-lab": un, length: N4, let: uo, literal: h1, match: q, number: d1, "number-format": R4, object: d1, slice: ht, step: qt, string: d1, "to-boolean": e1, "to-color": e1, "to-number": e1, "to-string": e1, var: Yr, within: es, distance: Ko };
|
|
12180
12180
|
class ho {
|
|
12181
12181
|
constructor(c, p, g, w) {
|
|
12182
12182
|
this.name = c, this.type = p, this._evaluate = g, this.args = w;
|
|
@@ -12257,34 +12257,34 @@ var $G = { exports: {} };
|
|
|
12257
12257
|
const p = c[h];
|
|
12258
12258
|
return p === void 0 ? null : p;
|
|
12259
12259
|
}
|
|
12260
|
-
function
|
|
12260
|
+
function is(h) {
|
|
12261
12261
|
return { type: h };
|
|
12262
12262
|
}
|
|
12263
12263
|
function P3(h) {
|
|
12264
12264
|
if (h instanceof Yr)
|
|
12265
12265
|
return P3(h.boundExpression);
|
|
12266
|
-
if (h instanceof ho && h.name === "error" || h instanceof ga || h instanceof
|
|
12266
|
+
if (h instanceof ho && h.name === "error" || h instanceof ga || h instanceof es || h instanceof Ko)
|
|
12267
12267
|
return !1;
|
|
12268
12268
|
const c = h instanceof e1 || h instanceof d1;
|
|
12269
12269
|
let p = !0;
|
|
12270
12270
|
return h.eachChild((g) => {
|
|
12271
12271
|
p = c ? p && P3(g) : p && g instanceof h1;
|
|
12272
|
-
}), !!p &&
|
|
12272
|
+
}), !!p && os(h) && La(h, ["zoom", "heatmap-density", "line-progress", "accumulated", "is-supported-script"]);
|
|
12273
12273
|
}
|
|
12274
|
-
function
|
|
12275
|
-
if (h instanceof ho && (h.name === "get" && h.args.length === 1 || h.name === "feature-state" || h.name === "has" && h.args.length === 1 || h.name === "properties" || h.name === "geometry-type" || h.name === "id" || /^filter-/.test(h.name)) || h instanceof
|
|
12274
|
+
function os(h) {
|
|
12275
|
+
if (h instanceof ho && (h.name === "get" && h.args.length === 1 || h.name === "feature-state" || h.name === "has" && h.args.length === 1 || h.name === "properties" || h.name === "geometry-type" || h.name === "id" || /^filter-/.test(h.name)) || h instanceof es || h instanceof Ko)
|
|
12276
12276
|
return !1;
|
|
12277
12277
|
let c = !0;
|
|
12278
12278
|
return h.eachChild((p) => {
|
|
12279
|
-
c && !
|
|
12279
|
+
c && !os(p) && (c = !1);
|
|
12280
12280
|
}), c;
|
|
12281
12281
|
}
|
|
12282
|
-
function
|
|
12282
|
+
function ss(h) {
|
|
12283
12283
|
if (h instanceof ho && h.name === "feature-state")
|
|
12284
12284
|
return !1;
|
|
12285
12285
|
let c = !0;
|
|
12286
12286
|
return h.eachChild((p) => {
|
|
12287
|
-
c && !
|
|
12287
|
+
c && !ss(p) && (c = !1);
|
|
12288
12288
|
}), c;
|
|
12289
12289
|
}
|
|
12290
12290
|
function La(h, c) {
|
|
@@ -12424,17 +12424,17 @@ var $G = { exports: {} };
|
|
|
12424
12424
|
}], typeof: [Fr, [wr], (h, [c]) => st(Qn(c.evaluate(h)))], "to-rgba": [ot(xe, 4), [Vn], (h, [c]) => {
|
|
12425
12425
|
const [p, g, w, H] = c.evaluate(h).rgb;
|
|
12426
12426
|
return [255 * p, 255 * g, 255 * w, H];
|
|
12427
|
-
}], rgb: [Vn, [xe, xe, xe], Yo], rgba: [Vn, [xe, xe, xe, xe], Yo], has: { type: _r, overloads: [[[Fr], (h, [c]) => S0(c.evaluate(h), h.properties())], [[Fr, y1], (h, [c, p]) => S0(c.evaluate(h), p.evaluate(h))]] }, get: { type: wr, overloads: [[[Fr], (h, [c]) => x2(c.evaluate(h), h.properties())], [[Fr, y1], (h, [c, p]) => x2(c.evaluate(h), p.evaluate(h))]] }, "feature-state": [wr, [Fr], (h, [c]) => x2(c.evaluate(h), h.featureState || {})], properties: [y1, [], (h) => h.properties()], "geometry-type": [Fr, [], (h) => h.geometryType()], id: [wr, [], (h) => h.id()], zoom: [xe, [], (h) => h.globals.zoom], "heatmap-density": [xe, [], (h) => h.globals.heatmapDensity || 0], "line-progress": [xe, [], (h) => h.globals.lineProgress || 0], accumulated: [wr, [], (h) => h.globals.accumulated === void 0 ? null : h.globals.accumulated], "+": [xe,
|
|
12427
|
+
}], rgb: [Vn, [xe, xe, xe], Yo], rgba: [Vn, [xe, xe, xe, xe], Yo], has: { type: _r, overloads: [[[Fr], (h, [c]) => S0(c.evaluate(h), h.properties())], [[Fr, y1], (h, [c, p]) => S0(c.evaluate(h), p.evaluate(h))]] }, get: { type: wr, overloads: [[[Fr], (h, [c]) => x2(c.evaluate(h), h.properties())], [[Fr, y1], (h, [c, p]) => x2(c.evaluate(h), p.evaluate(h))]] }, "feature-state": [wr, [Fr], (h, [c]) => x2(c.evaluate(h), h.featureState || {})], properties: [y1, [], (h) => h.properties()], "geometry-type": [Fr, [], (h) => h.geometryType()], id: [wr, [], (h) => h.id()], zoom: [xe, [], (h) => h.globals.zoom], "heatmap-density": [xe, [], (h) => h.globals.heatmapDensity || 0], "line-progress": [xe, [], (h) => h.globals.lineProgress || 0], accumulated: [wr, [], (h) => h.globals.accumulated === void 0 ? null : h.globals.accumulated], "+": [xe, is(xe), (h, c) => {
|
|
12428
12428
|
let p = 0;
|
|
12429
12429
|
for (const g of c)
|
|
12430
12430
|
p += g.evaluate(h);
|
|
12431
12431
|
return p;
|
|
12432
|
-
}], "*": [xe,
|
|
12432
|
+
}], "*": [xe, is(xe), (h, c) => {
|
|
12433
12433
|
let p = 1;
|
|
12434
12434
|
for (const g of c)
|
|
12435
12435
|
p *= g.evaluate(h);
|
|
12436
12436
|
return p;
|
|
12437
|
-
}], "-": { type: xe, overloads: [[[xe, xe], (h, [c, p]) => c.evaluate(h) - p.evaluate(h)], [[xe], (h, [c]) => -c.evaluate(h)]] }, "/": [xe, [xe, xe], (h, [c, p]) => c.evaluate(h) / p.evaluate(h)], "%": [xe, [xe, xe], (h, [c, p]) => c.evaluate(h) % p.evaluate(h)], ln2: [xe, [], () => Math.LN2], pi: [xe, [], () => Math.PI], e: [xe, [], () => Math.E], "^": [xe, [xe, xe], (h, [c, p]) => Math.pow(c.evaluate(h), p.evaluate(h))], sqrt: [xe, [xe], (h, [c]) => Math.sqrt(c.evaluate(h))], log10: [xe, [xe], (h, [c]) => Math.log(c.evaluate(h)) / Math.LN10], ln: [xe, [xe], (h, [c]) => Math.log(c.evaluate(h))], log2: [xe, [xe], (h, [c]) => Math.log(c.evaluate(h)) / Math.LN2], sin: [xe, [xe], (h, [c]) => Math.sin(c.evaluate(h))], cos: [xe, [xe], (h, [c]) => Math.cos(c.evaluate(h))], tan: [xe, [xe], (h, [c]) => Math.tan(c.evaluate(h))], asin: [xe, [xe], (h, [c]) => Math.asin(c.evaluate(h))], acos: [xe, [xe], (h, [c]) => Math.acos(c.evaluate(h))], atan: [xe, [xe], (h, [c]) => Math.atan(c.evaluate(h))], min: [xe,
|
|
12437
|
+
}], "-": { type: xe, overloads: [[[xe, xe], (h, [c, p]) => c.evaluate(h) - p.evaluate(h)], [[xe], (h, [c]) => -c.evaluate(h)]] }, "/": [xe, [xe, xe], (h, [c, p]) => c.evaluate(h) / p.evaluate(h)], "%": [xe, [xe, xe], (h, [c, p]) => c.evaluate(h) % p.evaluate(h)], ln2: [xe, [], () => Math.LN2], pi: [xe, [], () => Math.PI], e: [xe, [], () => Math.E], "^": [xe, [xe, xe], (h, [c, p]) => Math.pow(c.evaluate(h), p.evaluate(h))], sqrt: [xe, [xe], (h, [c]) => Math.sqrt(c.evaluate(h))], log10: [xe, [xe], (h, [c]) => Math.log(c.evaluate(h)) / Math.LN10], ln: [xe, [xe], (h, [c]) => Math.log(c.evaluate(h))], log2: [xe, [xe], (h, [c]) => Math.log(c.evaluate(h)) / Math.LN2], sin: [xe, [xe], (h, [c]) => Math.sin(c.evaluate(h))], cos: [xe, [xe], (h, [c]) => Math.cos(c.evaluate(h))], tan: [xe, [xe], (h, [c]) => Math.tan(c.evaluate(h))], asin: [xe, [xe], (h, [c]) => Math.asin(c.evaluate(h))], acos: [xe, [xe], (h, [c]) => Math.acos(c.evaluate(h))], atan: [xe, [xe], (h, [c]) => Math.atan(c.evaluate(h))], min: [xe, is(xe), (h, c) => Math.min(...c.map((p) => p.evaluate(h)))], max: [xe, is(xe), (h, c) => Math.max(...c.map((p) => p.evaluate(h)))], abs: [xe, [xe], (h, [c]) => Math.abs(c.evaluate(h))], round: [xe, [xe], (h, [c]) => {
|
|
12438
12438
|
const p = c.evaluate(h);
|
|
12439
12439
|
return p < 0 ? -Math.round(-p) : Math.round(p);
|
|
12440
12440
|
}], floor: [xe, [xe], (h, [c]) => Math.floor(c.evaluate(h))], ceil: [xe, [xe], (h, [c]) => Math.ceil(c.evaluate(h))], "filter-==": [_r, [Fr, wr], (h, [c, p]) => h.properties()[c.value] === p.value], "filter-id-==": [_r, [wr], (h, [c]) => h.id() === c.value], "filter-type-==": [_r, [Fr], (h, [c]) => h.geometryType() === c.value], "filter-<": [_r, [Fr, wr], (h, [c, p]) => {
|
|
@@ -12469,12 +12469,12 @@ var $G = { exports: {} };
|
|
|
12469
12469
|
w[C] > g ? A = C - 1 : H = C + 1;
|
|
12470
12470
|
}
|
|
12471
12471
|
return !1;
|
|
12472
|
-
}(h.properties()[c.value], p.value, 0, p.value.length - 1)], all: { type: _r, overloads: [[[_r, _r], (h, [c, p]) => c.evaluate(h) && p.evaluate(h)], [
|
|
12472
|
+
}(h.properties()[c.value], p.value, 0, p.value.length - 1)], all: { type: _r, overloads: [[[_r, _r], (h, [c, p]) => c.evaluate(h) && p.evaluate(h)], [is(_r), (h, c) => {
|
|
12473
12473
|
for (const p of c)
|
|
12474
12474
|
if (!p.evaluate(h))
|
|
12475
12475
|
return !1;
|
|
12476
12476
|
return !0;
|
|
12477
|
-
}]] }, any: { type: _r, overloads: [[[_r, _r], (h, [c, p]) => c.evaluate(h) || p.evaluate(h)], [
|
|
12477
|
+
}]] }, any: { type: _r, overloads: [[[_r, _r], (h, [c, p]) => c.evaluate(h) || p.evaluate(h)], [is(_r), (h, c) => {
|
|
12478
12478
|
for (const p of c)
|
|
12479
12479
|
if (p.evaluate(h))
|
|
12480
12480
|
return !0;
|
|
@@ -12482,7 +12482,7 @@ var $G = { exports: {} };
|
|
|
12482
12482
|
}]] }, "!": [_r, [_r], (h, [c]) => !c.evaluate(h)], "is-supported-script": [_r, [Fr], (h, [c]) => {
|
|
12483
12483
|
const p = h.globals && h.globals.isSupportedScript;
|
|
12484
12484
|
return !p || p(c.evaluate(h));
|
|
12485
|
-
}], upcase: [Fr, [Fr], (h, [c]) => c.evaluate(h).toUpperCase()], downcase: [Fr, [Fr], (h, [c]) => c.evaluate(h).toLowerCase()], concat: [Fr,
|
|
12485
|
+
}], upcase: [Fr, [Fr], (h, [c]) => c.evaluate(h).toUpperCase()], downcase: [Fr, [Fr], (h, [c]) => c.evaluate(h).toLowerCase()], concat: [Fr, is(wr), (h, c) => c.map((p) => Ui(p.evaluate(h))).join("")], "resolved-locale": [Fr, [Pi], (h, [c]) => c.evaluate(h).resolvedLocale()] });
|
|
12486
12486
|
class gi {
|
|
12487
12487
|
constructor(c, p) {
|
|
12488
12488
|
var g;
|
|
@@ -12517,7 +12517,7 @@ var $G = { exports: {} };
|
|
|
12517
12517
|
}
|
|
12518
12518
|
class A1 {
|
|
12519
12519
|
constructor(c, p) {
|
|
12520
|
-
this.kind = c, this._styleExpression = p, this.isStateDependent = c !== "constant" && !
|
|
12520
|
+
this.kind = c, this._styleExpression = p, this.isStateDependent = c !== "constant" && !ss(p.expression);
|
|
12521
12521
|
}
|
|
12522
12522
|
evaluateWithoutErrorHandling(c, p, g, w, H, A) {
|
|
12523
12523
|
return this._styleExpression.evaluateWithoutErrorHandling(c, p, g, w, H, A);
|
|
@@ -12528,7 +12528,7 @@ var $G = { exports: {} };
|
|
|
12528
12528
|
}
|
|
12529
12529
|
class Ai {
|
|
12530
12530
|
constructor(c, p, g, w) {
|
|
12531
|
-
this.kind = c, this.zoomStops = g, this._styleExpression = p, this.isStateDependent = c !== "camera" && !
|
|
12531
|
+
this.kind = c, this.zoomStops = g, this._styleExpression = p, this.isStateDependent = c !== "camera" && !ss(p.expression), this.interpolationType = w;
|
|
12532
12532
|
}
|
|
12533
12533
|
evaluateWithoutErrorHandling(c, p, g, w, H, A) {
|
|
12534
12534
|
return this._styleExpression.evaluateWithoutErrorHandling(c, p, g, w, H, A);
|
|
@@ -12544,13 +12544,13 @@ var $G = { exports: {} };
|
|
|
12544
12544
|
const p = _1(h, c);
|
|
12545
12545
|
if (p.result === "error")
|
|
12546
12546
|
return p;
|
|
12547
|
-
const g = p.value.expression, w =
|
|
12547
|
+
const g = p.value.expression, w = os(g);
|
|
12548
12548
|
if (!w && !Jo(c))
|
|
12549
12549
|
return zs([new Xn("", "data expressions not supported")]);
|
|
12550
12550
|
const H = La(g, ["zoom"]);
|
|
12551
12551
|
if (!H && !H0(c))
|
|
12552
12552
|
return zs([new Xn("", "zoom expressions not supported")]);
|
|
12553
|
-
const A =
|
|
12553
|
+
const A = as(g);
|
|
12554
12554
|
return A || H ? A instanceof Xn ? zs([A]) : A instanceof un && !A0(c) ? zs([new Xn("", '"interpolate" expressions cannot be used with this property')]) : V3(A ? new Ai(w ? "camera" : "composite", p.value, A.labels, A instanceof un ? A.interpolation : void 0) : new A1(w ? "constant" : "source", p.value)) : zs([new Xn("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);
|
|
12555
12555
|
}
|
|
12556
12556
|
class ko {
|
|
@@ -12564,18 +12564,18 @@ var $G = { exports: {} };
|
|
|
12564
12564
|
return { _parameters: c._parameters, _specification: c._specification };
|
|
12565
12565
|
}
|
|
12566
12566
|
}
|
|
12567
|
-
function
|
|
12567
|
+
function as(h) {
|
|
12568
12568
|
let c = null;
|
|
12569
12569
|
if (h instanceof uo)
|
|
12570
|
-
c =
|
|
12570
|
+
c = as(h.result);
|
|
12571
12571
|
else if (h instanceof dr) {
|
|
12572
12572
|
for (const p of h.args)
|
|
12573
|
-
if (c =
|
|
12573
|
+
if (c = as(p), c)
|
|
12574
12574
|
break;
|
|
12575
12575
|
} else
|
|
12576
12576
|
(h instanceof qt || h instanceof un) && h.input instanceof ho && h.input.name === "zoom" && (c = h);
|
|
12577
12577
|
return c instanceof Xn || h.eachChild((p) => {
|
|
12578
|
-
const g =
|
|
12578
|
+
const g = as(p);
|
|
12579
12579
|
g instanceof Xn ? c = g : !c && g ? c = new Xn("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.') : c && g && c !== g && (c = new Xn("", 'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'));
|
|
12580
12580
|
}), c;
|
|
12581
12581
|
}
|
|
@@ -12610,12 +12610,12 @@ var $G = { exports: {} };
|
|
|
12610
12610
|
return !0;
|
|
12611
12611
|
}
|
|
12612
12612
|
}
|
|
12613
|
-
const
|
|
12613
|
+
const ls = { type: "boolean", default: !1, transition: !1, "property-type": "data-driven", expression: { interpolated: !1, parameters: ["zoom", "feature"] } };
|
|
12614
12614
|
function X4(h) {
|
|
12615
12615
|
if (h == null)
|
|
12616
12616
|
return { filter: () => !0, needGeometry: !1 };
|
|
12617
12617
|
E2(h) || (h = wn(h));
|
|
12618
|
-
const c = _1(h,
|
|
12618
|
+
const c = _1(h, ls);
|
|
12619
12619
|
if (c.result === "error")
|
|
12620
12620
|
throw new Error(c.value.map((p) => `${p.key}: ${p.message}`).join(", "));
|
|
12621
12621
|
return { filter: (p, g, w) => c.value.evaluate(p, g, {}, w), needGeometry: wl(h) };
|
|
@@ -12637,7 +12637,7 @@ var $G = { exports: {} };
|
|
|
12637
12637
|
if (!h)
|
|
12638
12638
|
return !0;
|
|
12639
12639
|
const c = h[0];
|
|
12640
|
-
return h.length <= 1 ? c !== "any" : c === "==" ? mn(h[1], h[2], "==") : c === "!=" ? Gi(mn(h[1], h[2], "==")) : c === "<" || c === ">" || c === "<=" || c === ">=" ? mn(h[1], h[2], c) : c === "any" ? (p = h.slice(1), ["any"].concat(p.map(wn))) : c === "all" ? ["all"].concat(h.slice(1).map(wn)) : c === "none" ? ["all"].concat(h.slice(1).map(wn).map(Gi)) : c === "in" ?
|
|
12640
|
+
return h.length <= 1 ? c !== "any" : c === "==" ? mn(h[1], h[2], "==") : c === "!=" ? Gi(mn(h[1], h[2], "==")) : c === "<" || c === ">" || c === "<=" || c === ">=" ? mn(h[1], h[2], c) : c === "any" ? (p = h.slice(1), ["any"].concat(p.map(wn))) : c === "all" ? ["all"].concat(h.slice(1).map(wn)) : c === "none" ? ["all"].concat(h.slice(1).map(wn).map(Gi)) : c === "in" ? cs(h[1], h.slice(2)) : c === "!in" ? Gi(cs(h[1], h.slice(2))) : c === "has" ? To(h[1]) : c !== "!has" || Gi(To(h[1]));
|
|
12641
12641
|
var p;
|
|
12642
12642
|
}
|
|
12643
12643
|
function mn(h, c, p) {
|
|
@@ -12650,7 +12650,7 @@ var $G = { exports: {} };
|
|
|
12650
12650
|
return [`filter-${p}`, h, c];
|
|
12651
12651
|
}
|
|
12652
12652
|
}
|
|
12653
|
-
function
|
|
12653
|
+
function cs(h, c) {
|
|
12654
12654
|
if (c.length === 0)
|
|
12655
12655
|
return !1;
|
|
12656
12656
|
switch (h) {
|
|
@@ -12813,21 +12813,21 @@ var $G = { exports: {} };
|
|
|
12813
12813
|
return p !== "categorical" || Tt !== "number" || isFinite(Lt) && Math.floor(Lt) === Lt ? p !== "categorical" && Tt === "number" && w !== void 0 && Lt < w ? [new ye(at.key, Et, "stop domain values must appear in ascending order")] : (w = Lt, p === "categorical" && Lt in A ? [new ye(at.key, Et, "stop domain values must be unique")] : (A[Lt] = !0, [])) : [new ye(at.key, Et, `integer expected, found ${Lt}`)];
|
|
12814
12814
|
}
|
|
12815
12815
|
}
|
|
12816
|
-
function
|
|
12816
|
+
function us(h) {
|
|
12817
12817
|
const c = (h.expressionContext === "property" ? Co : _1)(O1(h.value), h.valueSpec);
|
|
12818
12818
|
if (c.result === "error")
|
|
12819
12819
|
return c.value.map((g) => new ye(`${h.key}${g.key}`, h.value, g.message));
|
|
12820
12820
|
const p = c.value.expression || c.value._styleExpression.expression;
|
|
12821
12821
|
if (h.expressionContext === "property" && h.propertyKey === "text-font" && !p.outputDefined())
|
|
12822
12822
|
return [new ye(h.key, h.value, `Invalid data expression for "${h.propertyKey}". Output values must be contained as literals within the expression.`)];
|
|
12823
|
-
if (h.expressionContext === "property" && h.propertyType === "layout" && !
|
|
12823
|
+
if (h.expressionContext === "property" && h.propertyType === "layout" && !ss(p))
|
|
12824
12824
|
return [new ye(h.key, h.value, '"feature-state" data expressions are not supported with layout properties.')];
|
|
12825
|
-
if (h.expressionContext === "filter" && !
|
|
12825
|
+
if (h.expressionContext === "filter" && !ss(p))
|
|
12826
12826
|
return [new ye(h.key, h.value, '"feature-state" data expressions are not supported with filters.')];
|
|
12827
12827
|
if (h.expressionContext && h.expressionContext.indexOf("cluster") === 0) {
|
|
12828
12828
|
if (!La(p, ["zoom", "feature-state"]))
|
|
12829
12829
|
return [new ye(h.key, h.value, '"zoom" and "feature-state" expressions are not supported with cluster properties.')];
|
|
12830
|
-
if (h.expressionContext === "cluster-initial" && !
|
|
12830
|
+
if (h.expressionContext === "cluster-initial" && !os(p))
|
|
12831
12831
|
return [new ye(h.key, h.value, "Feature data expressions are not supported with initial expression part of cluster properties.")];
|
|
12832
12832
|
}
|
|
12833
12833
|
return [];
|
|
@@ -12837,7 +12837,7 @@ var $G = { exports: {} };
|
|
|
12837
12837
|
return Array.isArray(g.values) ? g.values.indexOf(Dn(p)) === -1 && w.push(new ye(c, p, `expected one of [${g.values.join(", ")}], ${JSON.stringify(p)} found`)) : Object.keys(g.values).indexOf(Dn(p)) === -1 && w.push(new ye(c, p, `expected one of [${Object.keys(g.values).join(", ")}], ${JSON.stringify(p)} found`)), w;
|
|
12838
12838
|
}
|
|
12839
12839
|
function wa(h) {
|
|
12840
|
-
return E2(O1(h.value)) ?
|
|
12840
|
+
return E2(O1(h.value)) ? us(bi({}, h, { expressionContext: "filter", valueSpec: { value: "boolean" } })) : R3(h);
|
|
12841
12841
|
}
|
|
12842
12842
|
function R3(h) {
|
|
12843
12843
|
const c = h.value, p = h.key;
|
|
@@ -12968,7 +12968,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
12968
12968
|
if (C = Wi({ key: p, value: c, valueSpec: g.source_geojson, style: w, styleSpec: g, validateSpec: H, objectElementValidators: xl }), c.cluster)
|
|
12969
12969
|
for (const N in c.clusterProperties) {
|
|
12970
12970
|
const [z, W] = c.clusterProperties[N], X = typeof z == "string" ? [z, ["accumulated"], ["get", N]] : z;
|
|
12971
|
-
C.push(...
|
|
12971
|
+
C.push(...us({ key: `${p}.${N}.map`, value: W, validateSpec: H, expressionContext: "cluster-map" })), C.push(...us({ key: `${p}.${N}.reduce`, value: X, validateSpec: H, expressionContext: "cluster-reduce" }));
|
|
12972
12972
|
}
|
|
12973
12973
|
return C;
|
|
12974
12974
|
case "video":
|
|
@@ -13046,9 +13046,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13046
13046
|
A = A.concat(g[C] ? h.validateSpec({ key: C, value: c[C], valueSpec: g[C], style: w, styleSpec: p }) : [new ye(C, c[C], `unknown property "${C}"`)]);
|
|
13047
13047
|
return A;
|
|
13048
13048
|
}, string: N3, formatted: function(h) {
|
|
13049
|
-
return N3(h).length === 0 ? [] :
|
|
13049
|
+
return N3(h).length === 0 ? [] : us(h);
|
|
13050
13050
|
}, resolvedImage: function(h) {
|
|
13051
|
-
return N3(h).length === 0 ? [] :
|
|
13051
|
+
return N3(h).length === 0 ? [] : us(h);
|
|
13052
13052
|
}, padding: function(h) {
|
|
13053
13053
|
const c = h.key, p = h.value;
|
|
13054
13054
|
if (kt(p) === "array") {
|
|
@@ -13072,7 +13072,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13072
13072
|
}, sprite: Ac };
|
|
13073
13073
|
function Y4(h) {
|
|
13074
13074
|
const c = h.value, p = h.valueSpec, g = h.styleSpec;
|
|
13075
|
-
return h.validateSpec = Y4, p.expression && ne(Dn(c)) ? Us(h) : p.expression && yi(O1(c)) ?
|
|
13075
|
+
return h.validateSpec = Y4, p.expression && ne(Dn(c)) ? Us(h) : p.expression && yi(O1(c)) ? us(h) : p.type && El[p.type] ? El[p.type](h) : Wi(bi({}, h, { valueSpec: p.type ? g[p.type] : p }));
|
|
13076
13076
|
}
|
|
13077
13077
|
function Tp(h) {
|
|
13078
13078
|
const c = h.value, p = h.key, g = N3(h);
|
|
@@ -13082,7 +13082,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13082
13082
|
let p = [];
|
|
13083
13083
|
return p = p.concat(Y4({ key: "", value: h, valueSpec: c.$root, styleSpec: c, style: h, validateSpec: Y4, objectElementValidators: { glyphs: Tp, "*": () => [] } })), h.constants && (p = p.concat(M2({ key: "constants", value: h.constants, style: h, styleSpec: c, validateSpec: Y4 }))), Oc(p);
|
|
13084
13084
|
}
|
|
13085
|
-
function
|
|
13085
|
+
function hs(h) {
|
|
13086
13086
|
return function(c) {
|
|
13087
13087
|
return h({ ...c, validateSpec: Y4 });
|
|
13088
13088
|
};
|
|
@@ -13095,7 +13095,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13095
13095
|
return Oc(h.apply(this, c));
|
|
13096
13096
|
};
|
|
13097
13097
|
}
|
|
13098
|
-
e2.source = S2(
|
|
13098
|
+
e2.source = S2(hs(O0)), e2.sprite = S2(hs(Ac)), e2.glyphs = S2(hs(Tp)), e2.light = S2(hs(Mc)), e2.sky = S2(hs(Sc)), e2.terrain = S2(hs(Hc)), e2.layer = S2(hs(Ec)), e2.filter = S2(hs(wa)), e2.paintProperty = S2(hs(Gs)), e2.layoutProperty = S2(hs(xc));
|
|
13099
13099
|
const D3 = e2, T_ = D3.light, f_ = D3.sky, fp = D3.paintProperty, Qp = D3.layoutProperty;
|
|
13100
13100
|
function Cc(h, c) {
|
|
13101
13101
|
let p = !1;
|
|
@@ -13525,7 +13525,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13525
13525
|
return w;
|
|
13526
13526
|
}
|
|
13527
13527
|
}
|
|
13528
|
-
class
|
|
13528
|
+
class ds {
|
|
13529
13529
|
constructor(c, p, g) {
|
|
13530
13530
|
this.property = c, this.value = p, this.parameters = g;
|
|
13531
13531
|
}
|
|
@@ -13566,17 +13566,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13566
13566
|
this.specification = c, this.overrides = p;
|
|
13567
13567
|
}
|
|
13568
13568
|
possiblyEvaluate(c, p, g, w) {
|
|
13569
|
-
return new
|
|
13569
|
+
return new ds(this, c.expression.kind === "constant" || c.expression.kind === "camera" ? { kind: "constant", value: c.expression.evaluate(p, null, {}, g, w) } : c.expression, p);
|
|
13570
13570
|
}
|
|
13571
13571
|
interpolate(c, p, g) {
|
|
13572
13572
|
if (c.value.kind !== "constant" || p.value.kind !== "constant")
|
|
13573
13573
|
return c;
|
|
13574
13574
|
if (c.value.value === void 0 || p.value.value === void 0)
|
|
13575
|
-
return new
|
|
13575
|
+
return new ds(this, { kind: "constant", value: void 0 }, c.parameters);
|
|
13576
13576
|
const w = xr[this.specification.type];
|
|
13577
13577
|
if (w) {
|
|
13578
13578
|
const H = w(c.value.value, p.value.value, g);
|
|
13579
|
-
return new
|
|
13579
|
+
return new ds(this, { kind: "constant", value: H }, c.parameters);
|
|
13580
13580
|
}
|
|
13581
13581
|
return c;
|
|
13582
13582
|
}
|
|
@@ -13587,16 +13587,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13587
13587
|
class Al extends Mr {
|
|
13588
13588
|
possiblyEvaluate(c, p, g, w) {
|
|
13589
13589
|
if (c.value === void 0)
|
|
13590
|
-
return new
|
|
13590
|
+
return new ds(this, { kind: "constant", value: void 0 }, p);
|
|
13591
13591
|
if (c.expression.kind === "constant") {
|
|
13592
13592
|
const H = c.expression.evaluate(p, null, {}, g, w), A = c.property.specification.type === "resolvedImage" && typeof H != "string" ? H.name : H, C = this._calculate(A, A, A, p);
|
|
13593
|
-
return new
|
|
13593
|
+
return new ds(this, { kind: "constant", value: C }, p);
|
|
13594
13594
|
}
|
|
13595
13595
|
if (c.expression.kind === "camera") {
|
|
13596
13596
|
const H = this._calculate(c.expression.evaluate({ zoom: p.zoom - 1 }), c.expression.evaluate({ zoom: p.zoom }), c.expression.evaluate({ zoom: p.zoom + 1 }), p);
|
|
13597
|
-
return new
|
|
13597
|
+
return new ds(this, { kind: "constant", value: H }, p);
|
|
13598
13598
|
}
|
|
13599
|
-
return new
|
|
13599
|
+
return new ds(this, c.expression, p);
|
|
13600
13600
|
}
|
|
13601
13601
|
evaluate(c, p, g, w, H, A) {
|
|
13602
13602
|
if (c.kind === "source") {
|
|
@@ -13729,7 +13729,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
13729
13729
|
isStateDependent() {
|
|
13730
13730
|
for (const c in this.paint._values) {
|
|
13731
13731
|
const p = this.paint.get(c);
|
|
13732
|
-
if (p instanceof
|
|
13732
|
+
if (p instanceof ds && Jo(p.property.specification) && (p.value.kind === "source" || p.value.kind === "composite") && p.value.isStateDependent)
|
|
13733
13733
|
return !0;
|
|
13734
13734
|
}
|
|
13735
13735
|
return !1;
|
|
@@ -14363,7 +14363,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14363
14363
|
}
|
|
14364
14364
|
class q1 extends j {
|
|
14365
14365
|
}
|
|
14366
|
-
class
|
|
14366
|
+
class ps extends j {
|
|
14367
14367
|
}
|
|
14368
14368
|
class i6 extends Y {
|
|
14369
14369
|
}
|
|
@@ -14662,7 +14662,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
14662
14662
|
if (!g(H))
|
|
14663
14663
|
continue;
|
|
14664
14664
|
const A = c.paint.get(H);
|
|
14665
|
-
if (!(A instanceof
|
|
14665
|
+
if (!(A instanceof ds && Jo(A.property.specification)))
|
|
14666
14666
|
continue;
|
|
14667
14667
|
const C = mJ(H, c.type), N = A.value, z = A.property.specification.type, W = A.property.useIntegerZoom, X = A.property.specification["property-type"], tt = X === "cross-faded" || X === "cross-faded-data-driven";
|
|
14668
14668
|
if (N.kind === "constant")
|
|
@@ -15476,7 +15476,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15476
15476
|
}
|
|
15477
15477
|
class P_ {
|
|
15478
15478
|
constructor(c) {
|
|
15479
|
-
this.zoom = c.zoom, this.overscaling = c.overscaling, this.layers = c.layers, this.layerIds = this.layers.map((p) => p.id), this.index = c.index, this.hasPattern = !1, this.patternFeatures = [], this.layoutVertexArray = new
|
|
15479
|
+
this.zoom = c.zoom, this.overscaling = c.overscaling, this.layers = c.layers, this.layerIds = this.layers.map((p) => p.id), this.index = c.index, this.hasPattern = !1, this.patternFeatures = [], this.layoutVertexArray = new ps(), this.indexArray = new A2(), this.indexArray2 = new b1(), this.programConfigurations = new R0(c.layers, c.zoom), this.segments = new an(), this.segments2 = new an(), this.stateDependentLayerIds = this.layers.filter((p) => p.isStateDependent()).map((p) => p.id);
|
|
15480
15480
|
}
|
|
15481
15481
|
populate(c, p, g) {
|
|
15482
15482
|
this.hasPattern = k_("fill", this.layers, p);
|
|
@@ -15811,7 +15811,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
15811
15811
|
for (const sr of ut) {
|
|
15812
15812
|
const rr = [], ue = [];
|
|
15813
15813
|
for (const gr of sr) {
|
|
15814
|
-
const pr = gr.x, Ir = gr.y, Fn = Et[0] * pr + Et[4] * Ir + Et[12], Pn = Et[1] * pr + Et[5] * Ir + Et[13], p1 = Et[2] * pr + Et[6] * Ir + Et[14],
|
|
15814
|
+
const pr = gr.x, Ir = gr.y, Fn = Et[0] * pr + Et[4] * Ir + Et[12], Pn = Et[1] * pr + Et[5] * Ir + Et[13], p1 = Et[2] * pr + Et[6] * Ir + Et[14], Ts = Et[3] * pr + Et[7] * Ir + Et[15], V1 = p1 + _e, T1 = Ts + Xe, go = Fn + Er, yo = Pn + je, vo = p1 + Re, Oi = Ts + Qr, f1 = new f((Fn + Bt) / T1, (Pn + ee) / T1);
|
|
15815
15815
|
f1.z = V1 / T1, rr.push(f1);
|
|
15816
15816
|
const X1 = new f(go / Oi, yo / Oi);
|
|
15817
15817
|
X1.z = vo / Oi, ue.push(X1);
|
|
@@ -16646,7 +16646,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
16646
16646
|
const Pt = [], Bt = { positionedLines: Pt, text: Tt.toString(), top: W[1], bottom: W[1], left: W[0], right: W[0], writingMode: X, iconsInText: !1, verticalizable: !1 };
|
|
16647
16647
|
return function(ee, _e, Xe, Er, je, Re, Qr, sr, rr, ue, gr, pr) {
|
|
16648
16648
|
let Ir = 0, Fn = Kc, Pn = 0, p1 = 0;
|
|
16649
|
-
const
|
|
16649
|
+
const Ts = sr === "right" ? 1 : sr === "left" ? 0 : 0.5;
|
|
16650
16650
|
let V1 = 0;
|
|
16651
16651
|
for (const Oi of je) {
|
|
16652
16652
|
Oi.trim();
|
|
@@ -16661,15 +16661,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
16661
16661
|
for (let No = 0; No < Oi.length(); No++) {
|
|
16662
16662
|
const fn = Oi.getSection(No), Un = Oi.getSectionIndex(No), ii = Oi.getCharCode(No);
|
|
16663
16663
|
let s2 = 0, xi = null, Wl = null, Ha = null, Aa = r1;
|
|
16664
|
-
const
|
|
16664
|
+
const fs = !(rr === s.ah.horizontal || !gr && !Rc(ii) || gr && (Pp[ii] || (T1 = ii, new RegExp("\\p{sc=Arab}", "u").test(String.fromCodePoint(T1)))));
|
|
16665
16665
|
if (fn.imageName) {
|
|
16666
16666
|
const I2 = Er[fn.imageName];
|
|
16667
16667
|
if (!I2)
|
|
16668
16668
|
continue;
|
|
16669
16669
|
Ha = fn.imageName, ee.iconsInText = ee.iconsInText || !0, Wl = I2.paddedRect;
|
|
16670
16670
|
const L1 = I2.displaySize;
|
|
16671
|
-
fn.scale = fn.scale * r1 / pr, xi = { width: L1[0], height: L1[1], left: Ro, top: -hC, advance:
|
|
16672
|
-
const z3 =
|
|
16671
|
+
fn.scale = fn.scale * r1 / pr, xi = { width: L1[0], height: L1[1], left: Ro, top: -hC, advance: fs ? L1[1] : L1[0] }, s2 = X1 + (r1 - L1[1] * fn.scale), Aa = xi.advance;
|
|
16672
|
+
const z3 = fs ? L1[0] * fn.scale - r1 * f1 : L1[1] * fn.scale - r1 * f1;
|
|
16673
16673
|
z3 > 0 && z3 > N1 && (N1 = z3);
|
|
16674
16674
|
} else {
|
|
16675
16675
|
const I2 = Xe[fn.fontStack], L1 = I2 && I2[ii];
|
|
@@ -16683,9 +16683,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
16683
16683
|
}
|
|
16684
16684
|
s2 = (f1 - fn.scale) * r1;
|
|
16685
16685
|
}
|
|
16686
|
-
|
|
16686
|
+
fs ? (ee.verticalizable = !0, _o.push({ glyph: ii, imageName: Ha, x: Ir, y: Fn + s2, vertical: fs, scale: fn.scale, fontStack: fn.fontStack, sectionIndex: Un, metrics: xi, rect: Wl }), Ir += Aa * fn.scale + ue) : (_o.push({ glyph: ii, imageName: Ha, x: Ir, y: Fn + s2, vertical: fs, scale: fn.scale, fontStack: fn.fontStack, sectionIndex: Un, metrics: xi, rect: Wl }), Ir += xi.advance * fn.scale + ue);
|
|
16687
16687
|
}
|
|
16688
|
-
_o.length !== 0 && (Pn = Math.max(Ir - ue, Pn), Ctt(_o, 0, _o.length - 1,
|
|
16688
|
+
_o.length !== 0 && (Pn = Math.max(Ir - ue, Pn), Ctt(_o, 0, _o.length - 1, Ts, N1)), Ir = 0;
|
|
16689
16689
|
const k2 = Re * f1 + N1;
|
|
16690
16690
|
R1.lineOffset = Math.max(N1, X1), Fn += k2, p1 = Math.max(k2, p1), ++V1;
|
|
16691
16691
|
}
|
|
@@ -16698,7 +16698,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
16698
16698
|
for (const s2 of Oi)
|
|
16699
16699
|
for (const xi of s2.positionedGlyphs)
|
|
16700
16700
|
xi.x += Un, xi.y += ii;
|
|
16701
|
-
})(ee.positionedLines,
|
|
16701
|
+
})(ee.positionedLines, Ts, yo, vo, Pn, p1, Re, go, je.length), ee.top += -vo * go, ee.bottom = ee.top + go, ee.left += -yo * Pn, ee.right = ee.left + Pn;
|
|
16702
16702
|
}(Bt, c, p, g, Lt, A, C, N, X, z, tt, ut), !function(ee) {
|
|
16703
16703
|
for (const _e of ee)
|
|
16704
16704
|
if (_e.positionedGlyphs.length !== 0)
|
|
@@ -17188,7 +17188,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17188
17188
|
continue;
|
|
17189
17189
|
const p = this.paint.get(c), g = new LC(p), w = new gi(g, p.property.specification);
|
|
17190
17190
|
let H = null;
|
|
17191
|
-
H = p.value.kind === "constant" || p.value.kind === "source" ? new A1("source", w) : new Ai("composite", w, p.value.zoomStops), this.paint._values[c] = new
|
|
17191
|
+
H = p.value.kind === "constant" || p.value.kind === "source" ? new A1("source", w) : new Ai("composite", w, p.value.zoomStops), this.paint._values[c] = new ds(p.property, H, p.parameters);
|
|
17192
17192
|
}
|
|
17193
17193
|
}
|
|
17194
17194
|
_handleOverridablePaintPropertyUpdate(c, p, g) {
|
|
@@ -17778,7 +17778,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
17778
17778
|
(H.textFitWidth || H.textFitHeight) && (z = gC(h)), Et = Np(W, 0, ue[0]), Pt = Np(X, 0, ue[1]), $t = Np(W, ue[0], ue[2]), Bt = Np(X, ue[1], ue[3]), ee = ue[0] - Et, Xe = ue[1] - Pt, _e = gr - $t, Er = pr - Bt;
|
|
17779
17779
|
}
|
|
17780
17780
|
const je = z.x1, Re = z.y1, Qr = z.x2 - je, sr = z.y2 - Re, rr = (ue, gr, pr, Ir) => {
|
|
17781
|
-
const Fn = Dp(ue.stretch - Et, $t, Qr, je), Pn = Fp(ue.fixed - ee, _e, ue.stretch, at), p1 = Dp(gr.stretch - Pt, Bt, sr, Re),
|
|
17781
|
+
const Fn = Dp(ue.stretch - Et, $t, Qr, je), Pn = Fp(ue.fixed - ee, _e, ue.stretch, at), p1 = Dp(gr.stretch - Pt, Bt, sr, Re), Ts = Fp(gr.fixed - Xe, Er, gr.stretch, ut), V1 = Dp(pr.stretch - Et, $t, Qr, je), T1 = Fp(pr.fixed - ee, _e, pr.stretch, at), go = Dp(Ir.stretch - Pt, Bt, sr, Re), yo = Fp(Ir.fixed - Xe, Er, Ir.stretch, ut), vo = new f(Fn, p1), Oi = new f(V1, p1), f1 = new f(V1, go), X1 = new f(Fn, go), R1 = new f(Pn / A, Ts / A), _o = new f(T1 / A, yo / A), N1 = c * Math.PI / 180;
|
|
17782
17782
|
if (N1) {
|
|
17783
17783
|
const fn = Math.sin(N1), Un = Math.cos(N1), ii = [Un, -fn, fn, Un];
|
|
17784
17784
|
vo._matMult(ii), Oi._matMult(ii), X1._matMult(ii), f1._matMult(ii);
|
|
@@ -18036,9 +18036,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
18036
18036
|
let sr;
|
|
18037
18037
|
g && Qr !== "none" && (h.allowVerticalPlacement && p.vertical && (sr = yC(g, p.vertical, Qr, tt.get("icon-text-fit-padding"), at, Tt)), ut && (g = yC(g, ut, Qr, tt.get("icon-text-fit-padding"), at, Tt)));
|
|
18038
18038
|
const rr = (ue, gr) => {
|
|
18039
|
-
gr.x < 0 || gr.x >= Zi || gr.y < 0 || gr.y >= Zi || function(pr, Ir, Fn, Pn, p1,
|
|
18039
|
+
gr.x < 0 || gr.x >= Zi || gr.y < 0 || gr.y >= Zi || function(pr, Ir, Fn, Pn, p1, Ts, V1, T1, go, yo, vo, Oi, f1, X1, R1, _o, N1, k2, No, fn, Un, ii, s2, xi, Wl) {
|
|
18040
18040
|
const Ha = pr.addToLineVertexArray(Ir, Fn);
|
|
18041
|
-
let Aa,
|
|
18041
|
+
let Aa, fs, I2, L1, z3 = 0, iu = 0, tk = 0, ek = 0, lb = -1, cb = -1;
|
|
18042
18042
|
const U3 = {};
|
|
18043
18043
|
let rk = Il("");
|
|
18044
18044
|
if (pr.allowVerticalPlacement && Pn.vertical) {
|
|
@@ -18047,7 +18047,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
18047
18047
|
}
|
|
18048
18048
|
if (p1) {
|
|
18049
18049
|
const K1 = T1.layout.get("icon-rotate").evaluate(Un, {}), P2 = T1.layout.get("icon-text-fit") !== "none", B0 = GC(p1, K1, s2, P2), Zs = V1 ? GC(V1, K1, s2, P2) : void 0;
|
|
18050
|
-
|
|
18050
|
+
fs = new Bp(go, Ir, yo, vo, Oi, p1, N1, k2, !1, K1), z3 = 4 * B0.length;
|
|
18051
18051
|
const j0 = pr.iconSizeData;
|
|
18052
18052
|
let Oa = null;
|
|
18053
18053
|
j0.kind === "source" ? (Oa = [Sa * T1.layout.get("icon-size").evaluate(Un, {})], Oa[0] > d6 && It(`${pr.layerIds[0]}: Value for "icon-size" is >= ${Jc}. Reduce your "icon-size".`)) : j0.kind === "composite" && (Oa = [Sa * ii.compositeIconSizes[0].evaluate(Un, {}, xi), Sa * ii.compositeIconSizes[1].evaluate(Un, {}, xi)], (Oa[0] > d6 || Oa[1] > d6) && It(`${pr.layerIds[0]}: Value for "icon-size" is >= ${Jc}. Reduce your "icon-size".`)), pr.addSymbols(pr.icon, B0, Oa, fn, No, Un, s.ah.none, Ir, Ha.lineStartIndex, Ha.lineLength, -1, xi), lb = pr.icon.placedSymbolArray.length - 1, Zs && (iu = 4 * Zs.length, pr.addSymbols(pr.icon, Zs, Oa, fn, No, Un, s.ah.vertical, Ir, Ha.lineStartIndex, Ha.lineLength, -1, xi), cb = pr.icon.placedSymbolArray.length - 1);
|
|
@@ -18061,14 +18061,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
18061
18061
|
Aa = new Bp(go, Ir, yo, vo, Oi, P2, f1, X1, R1, Zs);
|
|
18062
18062
|
}
|
|
18063
18063
|
const B0 = P2.positionedLines.length === 1;
|
|
18064
|
-
if (tk += qC(pr, Ir, P2,
|
|
18064
|
+
if (tk += qC(pr, Ir, P2, Ts, T1, R1, Un, _o, Ha, Pn.vertical ? s.ah.horizontal : s.ah.horizontalOnly, B0 ? nk : [K1], U3, lb, ii, xi), B0)
|
|
18065
18065
|
break;
|
|
18066
18066
|
}
|
|
18067
|
-
Pn.vertical && (ek += qC(pr, Ir, Pn.vertical,
|
|
18068
|
-
const Ytt = Aa ? Aa.boxStartIndex : pr.collisionBoxArray.length, Jtt = Aa ? Aa.boxEndIndex : pr.collisionBoxArray.length, tet = I2 ? I2.boxStartIndex : pr.collisionBoxArray.length, eet = I2 ? I2.boxEndIndex : pr.collisionBoxArray.length, ret =
|
|
18067
|
+
Pn.vertical && (ek += qC(pr, Ir, Pn.vertical, Ts, T1, R1, Un, _o, Ha, s.ah.vertical, ["vertical"], U3, cb, ii, xi));
|
|
18068
|
+
const Ytt = Aa ? Aa.boxStartIndex : pr.collisionBoxArray.length, Jtt = Aa ? Aa.boxEndIndex : pr.collisionBoxArray.length, tet = I2 ? I2.boxStartIndex : pr.collisionBoxArray.length, eet = I2 ? I2.boxEndIndex : pr.collisionBoxArray.length, ret = fs ? fs.boxStartIndex : pr.collisionBoxArray.length, net = fs ? fs.boxEndIndex : pr.collisionBoxArray.length, iet = L1 ? L1.boxStartIndex : pr.collisionBoxArray.length, oet = L1 ? L1.boxEndIndex : pr.collisionBoxArray.length;
|
|
18069
18069
|
let Ws = -1;
|
|
18070
18070
|
const zp = (K1, P2) => K1 && K1.circleDiameter ? Math.max(K1.circleDiameter, P2) : P2;
|
|
18071
|
-
Ws = zp(Aa, Ws), Ws = zp(I2, Ws), Ws = zp(
|
|
18071
|
+
Ws = zp(Aa, Ws), Ws = zp(I2, Ws), Ws = zp(fs, Ws), Ws = zp(L1, Ws);
|
|
18072
18072
|
const ik = Ws > -1 ? 1 : 0;
|
|
18073
18073
|
ik && (Ws *= Wl / r1), pr.glyphOffsetArray.length >= Ul.MAX_GLYPHS && It("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), Un.sortKey !== void 0 && pr.addToSortKeyRanges(pr.symbolInstances.length, Un.sortKey);
|
|
18074
18074
|
const set = ZC(T1, Un, xi), [aet, cet] = function(K1, P2) {
|
|
@@ -18122,7 +18122,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
18122
18122
|
const fn = Er[rr.imageName];
|
|
18123
18123
|
pr = fn.sdf, Ir = fn.pixelRatio, gr = Ro / Ir;
|
|
18124
18124
|
}
|
|
18125
|
-
const
|
|
18125
|
+
const Ts = _e ? [rr.x + p1, rr.y] : [0, 0];
|
|
18126
18126
|
let V1 = _e ? [0, 0] : [rr.x + p1 + Bt[0], rr.y + Bt[1] - Fn], T1 = [0, 0];
|
|
18127
18127
|
Pn && (T1 = V1, V1 = [0, 0]);
|
|
18128
18128
|
const go = rr.metrics.isDoubleResolution ? 2 : 1, yo = (rr.metrics.left - gr) * rr.scale - p1 + V1[0], vo = (-rr.metrics.top - gr) * rr.scale + V1[1], Oi = yo + ue.w / go * rr.scale / Ir, f1 = vo + ue.h / go * rr.scale / Ir, X1 = new f(yo, vo), R1 = new f(Oi, vo), _o = new f(yo, f1), N1 = new f(Oi, f1);
|
|
@@ -18135,7 +18135,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
18135
18135
|
X1._matMult(ii), R1._matMult(ii), _o._matMult(ii), N1._matMult(ii);
|
|
18136
18136
|
}
|
|
18137
18137
|
const k2 = new f(0, 0), No = new f(0, 0);
|
|
18138
|
-
Qr.push({ tl: X1, tr: R1, bl: _o, br: N1, tex: ue, writingMode: Pt.writingMode, glyphOffset:
|
|
18138
|
+
Qr.push({ tl: X1, tr: R1, bl: _o, br: N1, tex: ue, writingMode: Pt.writingMode, glyphOffset: Ts, sectionIndex: rr.sectionIndex, isSDF: pr, pixelOffsetTL: k2, pixelOffsetBR: No, minFontScaleX: 0, minFontScaleY: 0 });
|
|
18139
18139
|
}
|
|
18140
18140
|
return Qr;
|
|
18141
18141
|
}(0, p, C, w, H, A, g, h.allowVerticalPlacement), Lt = h.textSizeData;
|
|
@@ -18801,12 +18801,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
18801
18801
|
Br.version === 1 && s.w(`Vector tile source "${this.source}" layer "${br}" does not use vector tile spec v2 and therefore may have some rendering errors.`);
|
|
18802
18802
|
const cn = At.encode(br), Kn = [];
|
|
18803
18803
|
for (let Li = 0; Li < Br.length; Li++) {
|
|
18804
|
-
const Ri = Br.feature(Li),
|
|
18805
|
-
Kn.push({ feature: Ri, id:
|
|
18804
|
+
const Ri = Br.feature(Li), Y2 = Vt.getId(Ri, br);
|
|
18805
|
+
Kn.push({ feature: Ri, id: Y2, index: Li, sourceLayerIndex: cn });
|
|
18806
18806
|
}
|
|
18807
18807
|
for (const Li of Yt[br]) {
|
|
18808
18808
|
const Ri = Li[0];
|
|
18809
|
-
Ri.source !== this.source && s.w(`layer.source = ${Ri.source} does not equal this.source = ${this.source}`), Ri.minzoom && this.zoom < Math.floor(Ri.minzoom) || Ri.maxzoom && this.zoom >= Ri.maxzoom || Ri.visibility !== "none" && (T(Li, this.zoom, pt), (jt[Ri.id] = Ri.createBucket({ index: Vt.bucketLayerIDs.length, layers: Li, zoom: this.zoom, pixelRatio: this.pixelRatio, overscaling: this.overscaling, collisionBoxArray: this.collisionBoxArray, sourceLayerIndex: cn, sourceID: this.source })).populate(Kn, St, this.tileID.canonical), Vt.bucketLayerIDs.push(Li.map((
|
|
18809
|
+
Ri.source !== this.source && s.w(`layer.source = ${Ri.source} does not equal this.source = ${this.source}`), Ri.minzoom && this.zoom < Math.floor(Ri.minzoom) || Ri.maxzoom && this.zoom >= Ri.maxzoom || Ri.visibility !== "none" && (T(Li, this.zoom, pt), (jt[Ri.id] = Ri.createBucket({ index: Vt.bucketLayerIDs.length, layers: Li, zoom: this.zoom, pixelRatio: this.pixelRatio, overscaling: this.overscaling, collisionBoxArray: this.collisionBoxArray, sourceLayerIndex: cn, sourceID: this.source })).populate(Kn, St, this.tileID.canonical), Vt.bucketLayerIDs.push(Li.map((Y2) => Y2.id)));
|
|
18810
18810
|
}
|
|
18811
18811
|
}
|
|
18812
18812
|
const le = s.aF(St.glyphDependencies, (br) => Object.keys(br).map(Number));
|
|
@@ -22398,8 +22398,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
22398
22398
|
for (let ri = 0; ri < nn; ri++) {
|
|
22399
22399
|
const C1 = ri / Math.max(nn - 1, 1), H2 = ur.lerp(C1), ni = H2.x + Se, Qo = H2.y + Se;
|
|
22400
22400
|
Ht.push(ni, Qo, tr, 0);
|
|
22401
|
-
const Z1 = ni - tr, k1 = Qo - tr, q1 = ni + tr,
|
|
22402
|
-
if (De = De && this.isOffscreen(Z1, k1, q1,
|
|
22401
|
+
const Z1 = ni - tr, k1 = Qo - tr, q1 = ni + tr, ps = Qo + tr;
|
|
22402
|
+
if (De = De && this.isOffscreen(Z1, k1, q1, ps), we = we || this.isInsideGrid(Z1, k1, q1, ps), l !== "always" && this.grid.hitTestCircle(ni, Qo, tr, l, lt) && (he = !0, !K))
|
|
22403
22403
|
return { circles: [], offscreen: !1, collisionDetected: he };
|
|
22404
22404
|
}
|
|
22405
22405
|
}
|
|
@@ -22584,8 +22584,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
22584
22584
|
return;
|
|
22585
22585
|
if (ft)
|
|
22586
22586
|
return void (this.placements[Pe.crossTileID] = new br(!1, !1, !1));
|
|
22587
|
-
let nn = !1, ri = !1, C1 = !0, H2 = null, ni = { box: null, placeable: !1, offscreen: null }, Qo = { box: null, placeable: !1, offscreen: null }, Z1 = null, k1 = null, q1 = null,
|
|
22588
|
-
$e.textFeatureIndex ?
|
|
22587
|
+
let nn = !1, ri = !1, C1 = !0, H2 = null, ni = { box: null, placeable: !1, offscreen: null }, Qo = { box: null, placeable: !1, offscreen: null }, Z1 = null, k1 = null, q1 = null, ps = 0, i6 = 0, Cl = 0;
|
|
22588
|
+
$e.textFeatureIndex ? ps = $e.textFeatureIndex : Pe.useRuntimeCollisionCircles && (ps = Pe.featureIndex), $e.verticalTextFeatureIndex && (i6 = $e.verticalTextFeatureIndex);
|
|
22589
22589
|
const o6 = $e.textBox;
|
|
22590
22590
|
if (o6) {
|
|
22591
22591
|
const i2 = (b1) => {
|
|
@@ -22653,7 +22653,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
22653
22653
|
const n2 = Ht || Pe.numHorizontalGlyphVertices === 0 && Pe.numVerticalGlyphVertices === 0, kl = Ot || Pe.numIconVertices === 0;
|
|
22654
22654
|
n2 || kl ? kl ? n2 || (ri = ri && nn) : nn = ri && nn : ri = nn = ri && nn;
|
|
22655
22655
|
const Fc = ri && q1.placeable;
|
|
22656
|
-
if (nn && Z1.placeable && this.collisionIndex.insertCollisionBox(Z1.box, bt, M.get("text-ignore-placement"), b.bucketInstanceId, Qo && Qo.placeable && i6 ? i6 :
|
|
22656
|
+
if (nn && Z1.placeable && this.collisionIndex.insertCollisionBox(Z1.box, bt, M.get("text-ignore-placement"), b.bucketInstanceId, Qo && Qo.placeable && i6 ? i6 : ps, Mt.ID), Fc && this.collisionIndex.insertCollisionBox(q1.box, Dt, M.get("icon-ignore-placement"), b.bucketInstanceId, Cl, Mt.ID), k1 && nn && this.collisionIndex.insertCollisionCircles(k1.circles, bt, M.get("text-ignore-placement"), b.bucketInstanceId, ps, Mt.ID), v && this.storeCollisionData(b.bucketInstanceId, kr, $e, Z1, q1, k1), Pe.crossTileID === 0)
|
|
22657
22657
|
throw new Error("symbolInstance.crossTileID can't be 0");
|
|
22658
22658
|
if (b.bucketInstanceId === 0)
|
|
22659
22659
|
throw new Error("bucket.bucketInstanceId can't be 0");
|
|
@@ -22776,13 +22776,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
22776
22776
|
}
|
|
22777
22777
|
if (Ae.textBox || Ae.verticalTextBox) {
|
|
22778
22778
|
let Pe;
|
|
22779
|
-
Ae.textBox && (Pe = De), Ae.verticalTextBox && (Pe = tr),
|
|
22779
|
+
Ae.textBox && (Pe = De), Ae.verticalTextBox && (Pe = tr), Y2(l.textCollisionBox.collisionVertexArray, Wt.text.placed, !Nr || Pe, Oe.text, ur.x, ur.y);
|
|
22780
22780
|
}
|
|
22781
22781
|
}
|
|
22782
22782
|
if (Ae.iconBox || Ae.verticalIconBox) {
|
|
22783
22783
|
const Nr = !!(!tr && Ae.verticalIconBox);
|
|
22784
22784
|
let Pe;
|
|
22785
|
-
Ae.iconBox && (Pe = Nr), Ae.verticalIconBox && (Pe = !Nr),
|
|
22785
|
+
Ae.iconBox && (Pe = Nr), Ae.verticalIconBox && (Pe = !Nr), Y2(l.iconCollisionBox.collisionVertexArray, Wt.icon.placed, Pe, Oe.icon, ft ? ur.x : 0, ft ? ur.y : 0);
|
|
22786
22786
|
}
|
|
22787
22787
|
}
|
|
22788
22788
|
}
|
|
@@ -22813,19 +22813,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
22813
22813
|
this.stale = !0;
|
|
22814
22814
|
}
|
|
22815
22815
|
}
|
|
22816
|
-
function
|
|
22816
|
+
function Y2(S, l, m, v, b, M) {
|
|
22817
22817
|
v && v.length !== 0 || (v = [0, 0, 0, 0]);
|
|
22818
22818
|
const V = v[0] - Se, D = v[1] - Se, j = v[2] - Se, Z = v[3] - Se;
|
|
22819
22819
|
S.emplaceBack(l ? 1 : 0, m ? 1 : 0, b || 0, M || 0, V, D), S.emplaceBack(l ? 1 : 0, m ? 1 : 0, b || 0, M || 0, j, D), S.emplaceBack(l ? 1 : 0, m ? 1 : 0, b || 0, M || 0, j, Z), S.emplaceBack(l ? 1 : 0, m ? 1 : 0, b || 0, M || 0, V, Z);
|
|
22820
22820
|
}
|
|
22821
|
-
const tn = Math.pow(2, 25), zi = Math.pow(2, 24), lo = Math.pow(2, 17), Xr = Math.pow(2, 16), Yn = Math.pow(2, 9),
|
|
22821
|
+
const tn = Math.pow(2, 25), zi = Math.pow(2, 24), lo = Math.pow(2, 17), Xr = Math.pow(2, 16), Yn = Math.pow(2, 9), J2 = Math.pow(2, 8), _n = Math.pow(2, 1);
|
|
22822
22822
|
function pn(S) {
|
|
22823
22823
|
if (S.opacity === 0 && !S.placed)
|
|
22824
22824
|
return 0;
|
|
22825
22825
|
if (S.opacity === 1 && S.placed)
|
|
22826
22826
|
return 4294967295;
|
|
22827
22827
|
const l = S.placed ? 1 : 0, m = Math.floor(127 * S.opacity);
|
|
22828
|
-
return m * tn + l * zi + m * lo + l * Xr + m * Yn + l *
|
|
22828
|
+
return m * tn + l * zi + m * lo + l * Xr + m * Yn + l * J2 + m * _n + l;
|
|
22829
22829
|
}
|
|
22830
22830
|
const co = 0;
|
|
22831
22831
|
function u1() {
|
|
@@ -22940,7 +22940,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
22940
22940
|
return Object.values(this._symbolsByKey).map(({ crossTileIDs: l }) => l);
|
|
22941
22941
|
}
|
|
22942
22942
|
}
|
|
22943
|
-
class
|
|
22943
|
+
class ts {
|
|
22944
22944
|
constructor() {
|
|
22945
22945
|
this.maxCrossTileID = 0;
|
|
22946
22946
|
}
|
|
@@ -23010,7 +23010,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
23010
23010
|
}
|
|
23011
23011
|
class v2 {
|
|
23012
23012
|
constructor() {
|
|
23013
|
-
this.layerIndexes = {}, this.crossTileIDs = new
|
|
23013
|
+
this.layerIndexes = {}, this.crossTileIDs = new ts(), this.maxBucketInstanceId = 0, this.bucketsInCurrentPlacement = {};
|
|
23014
23014
|
}
|
|
23015
23015
|
addLayer(l, m, v) {
|
|
23016
23016
|
let b = this.layerIndexes[l.id];
|
|
@@ -24684,7 +24684,7 @@ uniform ${K} ${Y} u_${lt};
|
|
|
24684
24684
|
(l !== this.current || this.dirty) && (this.gl.depthFunc(l), this.current = l, this.dirty = !1);
|
|
24685
24685
|
}
|
|
24686
24686
|
}
|
|
24687
|
-
class
|
|
24687
|
+
class es extends hn {
|
|
24688
24688
|
getDefault() {
|
|
24689
24689
|
return !1;
|
|
24690
24690
|
}
|
|
@@ -24714,7 +24714,7 @@ uniform ${K} ${Y} u_${lt};
|
|
|
24714
24714
|
(l.r !== m.r || l.g !== m.g || l.b !== m.b || l.a !== m.a || this.dirty) && (this.gl.blendColor(l.r, l.g, l.b, l.a), this.current = l, this.dirty = !1);
|
|
24715
24715
|
}
|
|
24716
24716
|
}
|
|
24717
|
-
class
|
|
24717
|
+
class rs extends hn {
|
|
24718
24718
|
getDefault() {
|
|
24719
24719
|
return this.gl.FUNC_ADD;
|
|
24720
24720
|
}
|
|
@@ -24940,7 +24940,7 @@ uniform ${K} ${Y} u_${lt};
|
|
|
24940
24940
|
class Lc {
|
|
24941
24941
|
constructor(l) {
|
|
24942
24942
|
var m, v;
|
|
24943
|
-
if (this.gl = l, this.clearColor = new O3(this), this.clearDepth = new vc(this), this.clearStencil = new ya(this), this.colorMask = new D4(this), this.depthMask = new F4(this), this.stencilMask = new _l(this), this.stencilFunc = new Ao(this), this.stencilOp = new B4(this), this.stencilTest = new b0(this), this.depthRange = new bl(this), this.depthTest = new L0(this), this.depthFunc = new C3(this), this.blend = new
|
|
24943
|
+
if (this.gl = l, this.clearColor = new O3(this), this.clearDepth = new vc(this), this.clearStencil = new ya(this), this.colorMask = new D4(this), this.depthMask = new F4(this), this.stencilMask = new _l(this), this.stencilFunc = new Ao(this), this.stencilOp = new B4(this), this.stencilTest = new b0(this), this.depthRange = new bl(this), this.depthTest = new L0(this), this.depthFunc = new C3(this), this.blend = new es(this), this.blendFunc = new w0(this), this.blendColor = new _c(this), this.blendEquation = new rs(this), this.cullFace = new va(this), this.cullFaceSide = new bc(this), this.frontFace = new j4(this), this.program = new x0(this), this.activeTexture = new k3(this), this.viewport = new z4(this), this.bindFramebuffer = new U4(this), this.bindRenderbuffer = new G4(this), this.bindTexture = new Bs(this), this.bindVertexBuffer = new Ll(this), this.bindElementBuffer = new $4(this), this.bindVertexArray = new b2(this), this.pixelStoreUnpack = new E0(this), this.pixelStoreUnpackPremultiplyAlpha = new M0(this), this.pixelStoreUnpackFlipY = new W4(this), this.extTextureFilterAnisotropic = l.getExtension("EXT_texture_filter_anisotropic") || l.getExtension("MOZ_EXT_texture_filter_anisotropic") || l.getExtension("WEBKIT_EXT_texture_filter_anisotropic"), this.extTextureFilterAnisotropic && (this.extTextureFilterAnisotropicMax = l.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)), this.maxTextureSize = l.getParameter(l.MAX_TEXTURE_SIZE), _2(l)) {
|
|
24944
24944
|
this.HALF_FLOAT = l.HALF_FLOAT;
|
|
24945
24945
|
const b = l.getExtension("EXT_color_buffer_half_float");
|
|
24946
24946
|
this.RGBA16F = (m = l.RGBA16F) !== null && m !== void 0 ? m : b == null ? void 0 : b.RGBA16F_EXT, this.RGB16F = (v = l.RGB16F) !== null && v !== void 0 ? v : b == null ? void 0 : b.RGB16F_EXT, l.getExtension("EXT_color_buffer_float");
|
|
@@ -25004,13 +25004,13 @@ uniform ${K} ${Y} u_${lt};
|
|
|
25004
25004
|
}
|
|
25005
25005
|
}
|
|
25006
25006
|
$r.ReadOnly = !1, $r.ReadWrite = !0, $r.disabled = new $r(519, $r.ReadOnly, [0, 1]);
|
|
25007
|
-
const
|
|
25007
|
+
const ns = 7680;
|
|
25008
25008
|
class An {
|
|
25009
25009
|
constructor(l, m, v, b, M, V) {
|
|
25010
25010
|
this.test = l, this.ref = m, this.mask = v, this.fail = b, this.depthFail = M, this.pass = V;
|
|
25011
25011
|
}
|
|
25012
25012
|
}
|
|
25013
|
-
An.disabled = new An({ func: 519, mask: 0 }, 0, 0,
|
|
25013
|
+
An.disabled = new An({ func: 519, mask: 0 }, 0, 0, ns, ns, ns);
|
|
25014
25014
|
class bn {
|
|
25015
25015
|
constructor(l, m, v) {
|
|
25016
25016
|
this.enable = l, this.mode = m, this.frontFace = v;
|
|
@@ -25136,7 +25136,7 @@ uniform ${K} ${Y} u_${lt};
|
|
|
25136
25136
|
const an = m.layout.get("icon-size").constantOr(0) !== 1 || ur.iconsNeedLinear;
|
|
25137
25137
|
H2 = Ae.imageAtlasTexture, ni = $e || S.options.rotating || S.options.zooming || an || ei ? ft.LINEAR : ft.NEAREST, C1 = Ae.imageAtlasTexture.size;
|
|
25138
25138
|
}
|
|
25139
|
-
const q1 = Or(Ae, 1, S.transform.zoom),
|
|
25139
|
+
const q1 = Or(Ae, 1, S.transform.zoom), ps = Nt ? Oe.posMatrix : ba, i6 = Vi(ps, Ht, Mt, S.transform, q1), Cl = Rn(ps, Ht, Mt, S.transform, q1), o6 = Rn(Oe.posMatrix, Ht, Mt, S.transform, q1), n2 = wt.translatePosition(S.transform, Ae, M, V), kl = we && ur.hasTextData(), Fc = m.layout.get("icon-text-fit") !== "none" && kl && ur.hasIconData();
|
|
25140
25140
|
if (Ot) {
|
|
25141
25141
|
const an = S.style.map.terrain ? (s6, a6) => S.style.map.terrain.getElevation(Oe, s6, a6) : null, F3 = m.layout.get("text-rotation-alignment") === "map";
|
|
25142
25142
|
pt(ur, Oe.posMatrix, S, b, i6, o6, Ht, Z, F3, wt, Oe.toUnwrapped(), Qt.width, Qt.height, n2, an);
|
|
@@ -25177,10 +25177,10 @@ uniform ${K} ${Y} u_${lt};
|
|
|
25177
25177
|
const Y = j.programConfigurations.get(m.id), lt = S.useProgram("heatmap", Y), ft = S.style.map.terrain.getTerrainData(v);
|
|
25178
25178
|
lt.draw(b, M.TRIANGLES, $r.disabled, V, D, bn.disabled, un(v.posMatrix, l, S.transform.zoom, m.paint.get("heatmap-intensity")), ft, m.id, j.layoutVertexBuffer, j.indexBuffer, j.segments, m.paint, S.transform.zoom, Y);
|
|
25179
25179
|
}
|
|
25180
|
-
function
|
|
25180
|
+
function is(S, l, m) {
|
|
25181
25181
|
const v = S.context, b = v.gl;
|
|
25182
25182
|
v.setColorMode(S.colorModeForRenderPass());
|
|
25183
|
-
const M =
|
|
25183
|
+
const M = os(v, l), V = m.key, D = l.heatmapFbos.get(V);
|
|
25184
25184
|
D && (v.activeTexture.set(b.TEXTURE0), b.bindTexture(b.TEXTURE_2D, D.colorAttachment.get()), v.activeTexture.set(b.TEXTURE1), M.bind(b.LINEAR, b.CLAMP_TO_EDGE), S.useProgram("heatmapTexture").draw(v, b.TRIANGLES, $r.disabled, An.disabled, S.colorModeForRenderPass(), bn.disabled, pe(S, l, 0, 1), null, l.id, S.rasterBoundsBuffer, S.quadTriangleIndexBuffer, S.rasterBoundsSegments, l.paint, S.transform.zoom), D.destroy(), l.heatmapFbos.delete(V));
|
|
25185
25185
|
}
|
|
25186
25186
|
function P3(S, l, m) {
|
|
@@ -25192,10 +25192,10 @@ uniform ${K} ${Y} u_${lt};
|
|
|
25192
25192
|
const Z = S.createFramebuffer(l, m, !1, !1);
|
|
25193
25193
|
return Z.colorAttachment.set(V), Z;
|
|
25194
25194
|
}
|
|
25195
|
-
function
|
|
25195
|
+
function os(S, l) {
|
|
25196
25196
|
return l.colorRampTexture || (l.colorRampTexture = new rt(S, l.colorRamp, S.gl.RGBA)), l.colorRampTexture;
|
|
25197
25197
|
}
|
|
25198
|
-
function
|
|
25198
|
+
function ss(S, l, m, v, b) {
|
|
25199
25199
|
if (!m || !v || !v.imageAtlas)
|
|
25200
25200
|
return;
|
|
25201
25201
|
const M = v.imageAtlas.patternPositions;
|
|
@@ -25219,7 +25219,7 @@ uniform ${K} ${Y} u_${lt};
|
|
|
25219
25219
|
if (!Nt)
|
|
25220
25220
|
continue;
|
|
25221
25221
|
const Dt = Nt.programConfigurations.get(m.id), Wt = S.useProgram(ft, Dt), he = S.style.map.terrain && S.style.map.terrain.getTerrainData(Ot);
|
|
25222
|
-
K && (S.context.activeTexture.set(D.TEXTURE0), bt.imageAtlasTexture.bind(D.LINEAR, D.CLAMP_TO_EDGE), Dt.updatePaintBuffers(Y)),
|
|
25222
|
+
K && (S.context.activeTexture.set(D.TEXTURE0), bt.imageAtlasTexture.bind(D.LINEAR, D.CLAMP_TO_EDGE), Dt.updatePaintBuffers(Y)), ss(Dt, j, Ht, bt, m);
|
|
25223
25223
|
const we = he ? Ot : null, De = S.translatePosMatrix(we ? we.posMatrix : Ot.posMatrix, bt, m.paint.get("fill-translate"), m.paint.get("fill-translate-anchor"));
|
|
25224
25224
|
if (V) {
|
|
25225
25225
|
wt = Nt.indexBuffer2, Mt = Nt.segments2;
|
|
@@ -25237,7 +25237,7 @@ uniform ${K} ${Y} u_${lt};
|
|
|
25237
25237
|
if (!Ht)
|
|
25238
25238
|
continue;
|
|
25239
25239
|
const Ot = S.style.map.terrain && S.style.map.terrain.getTerrainData(wt), bt = Ht.programConfigurations.get(m.id), Nt = S.useProgram(Y ? "fillExtrusionPattern" : "fillExtrusion", bt);
|
|
25240
|
-
Y && (S.context.activeTexture.set(j.TEXTURE0), Mt.imageAtlasTexture.bind(j.LINEAR, j.CLAMP_TO_EDGE), bt.updatePaintBuffers(lt)),
|
|
25240
|
+
Y && (S.context.activeTexture.set(j.TEXTURE0), Mt.imageAtlasTexture.bind(j.LINEAR, j.CLAMP_TO_EDGE), bt.updatePaintBuffers(lt)), ss(bt, Z, Qt, Mt, m);
|
|
25241
25241
|
const Dt = S.translatePosMatrix(wt.posMatrix, Mt, m.paint.get("fill-extrusion-translate"), m.paint.get("fill-extrusion-translate-anchor")), Wt = m.paint.get("fill-extrusion-vertical-gradient"), he = Y ? mt(Dt, S, Wt, ft, wt, lt, Mt) : ht(Dt, S, Wt, ft);
|
|
25242
25242
|
Nt.draw(D, D.gl.TRIANGLES, b, M, V, bn.backCCW, he, Ot, m.id, Ht.layoutVertexBuffer, Ht.indexBuffer, Ht.segments, m.paint, S.transform.zoom, bt, S.style.map.terrain && Ht.centroidVertexBuffer);
|
|
25243
25243
|
}
|
|
@@ -25548,7 +25548,7 @@ uniform ${K} ${Y} u_${lt};
|
|
|
25548
25548
|
if (M.style.map.terrain) {
|
|
25549
25549
|
for (const K of j) {
|
|
25550
25550
|
const Y = V.getTile(K);
|
|
25551
|
-
V.hasRenderableParent(K) || (M.renderPass === "offscreen" ? x2(M, Y, D, K) : M.renderPass === "translucent" &&
|
|
25551
|
+
V.hasRenderableParent(K) || (M.renderPass === "offscreen" ? x2(M, Y, D, K) : M.renderPass === "translucent" && is(M, D, K));
|
|
25552
25552
|
}
|
|
25553
25553
|
Z.viewport.set([0, 0, M.width, M.height]);
|
|
25554
25554
|
} else
|
|
@@ -25575,7 +25575,7 @@ uniform ${K} ${Y} u_${lt};
|
|
|
25575
25575
|
const lt = K.context, ft = lt.gl;
|
|
25576
25576
|
lt.setColorMode(K.colorModeForRenderPass());
|
|
25577
25577
|
const Qt = Y.heatmapFbos.get(a.aU);
|
|
25578
|
-
Qt && (lt.activeTexture.set(ft.TEXTURE0), ft.bindTexture(ft.TEXTURE_2D, Qt.colorAttachment.get()), lt.activeTexture.set(ft.TEXTURE1),
|
|
25578
|
+
Qt && (lt.activeTexture.set(ft.TEXTURE0), ft.bindTexture(ft.TEXTURE_2D, Qt.colorAttachment.get()), lt.activeTexture.set(ft.TEXTURE1), os(lt, Y).bind(ft.LINEAR, ft.CLAMP_TO_EDGE), K.useProgram("heatmapTexture").draw(lt, ft.TRIANGLES, $r.disabled, An.disabled, K.colorModeForRenderPass(), bn.disabled, pe(K, Y, 0, 1), null, Y.id, K.viewportBuffer, K.quadTriangleIndexBuffer, K.viewportSegments, Y.paint, K.transform.zoom));
|
|
25579
25579
|
}(M, D);
|
|
25580
25580
|
})(l, m, v, b);
|
|
25581
25581
|
break;
|
|
@@ -26204,7 +26204,7 @@ uniform ${K} ${Y} u_${lt};
|
|
|
26204
26204
|
return a.af(b, b, this.modelViewProjectionMatrix), b[2] / b[3];
|
|
26205
26205
|
}
|
|
26206
26206
|
}
|
|
26207
|
-
function
|
|
26207
|
+
function as(S, l) {
|
|
26208
26208
|
let m, v = !1, b = null, M = null;
|
|
26209
26209
|
const V = () => {
|
|
26210
26210
|
b = null, v && (S.apply(M, m), b = setTimeout(V, l), v = !1);
|
|
@@ -26243,7 +26243,7 @@ uniform ${K} ${Y} u_${lt};
|
|
|
26243
26243
|
M.startsWith("#&") ? M = M.slice(0, 1) + M.slice(2) : M === "#" && (M = "");
|
|
26244
26244
|
let V = window.location.href.replace(/(#.+)?$/, M);
|
|
26245
26245
|
V = V.replace("&&", "&"), window.history.replaceState(window.history.state, null, V);
|
|
26246
|
-
}, this._updateHash =
|
|
26246
|
+
}, this._updateHash = as(this._updateHashUnthrottled, 300), this._hashName = l && encodeURIComponent(l);
|
|
26247
26247
|
}
|
|
26248
26248
|
addTo(l) {
|
|
26249
26249
|
return this._map = l, addEventListener("hashchange", this._onHashChange, !1), this._map.on("moveend", this._updateHash), this;
|
|
@@ -26266,7 +26266,7 @@ uniform ${K} ${Y} u_${lt};
|
|
|
26266
26266
|
return `#${K}`;
|
|
26267
26267
|
}
|
|
26268
26268
|
}
|
|
26269
|
-
const
|
|
26269
|
+
const ls = { linearity: 0.3, easing: a.b8(0, 0, 0.3, 1) }, X4 = a.e({ deceleration: 2500, maxSpeed: 1400 }, ls), wc = a.e({ deceleration: 20, maxSpeed: 1400 }, ls), wl = a.e({ deceleration: 1e3, maxSpeed: 360 }, ls), wn = a.e({ deceleration: 1e3, maxSpeed: 90 }, ls);
|
|
26270
26270
|
class mn {
|
|
26271
26271
|
constructor(l) {
|
|
26272
26272
|
this._map = l, this.clear();
|
|
@@ -26291,19 +26291,19 @@ uniform ${K} ${Y} u_${lt};
|
|
|
26291
26291
|
const v = this._inertiaBuffer[this._inertiaBuffer.length - 1].time - this._inertiaBuffer[0].time, b = {};
|
|
26292
26292
|
if (m.pan.mag()) {
|
|
26293
26293
|
const M = To(m.pan.mag(), v, a.e({}, X4, l || {}));
|
|
26294
|
-
b.offset = m.pan.mult(M.amount / m.pan.mag()), b.center = this._map.transform.center,
|
|
26294
|
+
b.offset = m.pan.mult(M.amount / m.pan.mag()), b.center = this._map.transform.center, cs(b, M);
|
|
26295
26295
|
}
|
|
26296
26296
|
if (m.zoom) {
|
|
26297
26297
|
const M = To(m.zoom, v, wc);
|
|
26298
|
-
b.zoom = this._map.transform.zoom + M.amount,
|
|
26298
|
+
b.zoom = this._map.transform.zoom + M.amount, cs(b, M);
|
|
26299
26299
|
}
|
|
26300
26300
|
if (m.bearing) {
|
|
26301
26301
|
const M = To(m.bearing, v, wl);
|
|
26302
|
-
b.bearing = this._map.transform.bearing + a.ac(M.amount, -179, 179),
|
|
26302
|
+
b.bearing = this._map.transform.bearing + a.ac(M.amount, -179, 179), cs(b, M);
|
|
26303
26303
|
}
|
|
26304
26304
|
if (m.pitch) {
|
|
26305
26305
|
const M = To(m.pitch, v, wn);
|
|
26306
|
-
b.pitch = this._map.transform.pitch + M.amount,
|
|
26306
|
+
b.pitch = this._map.transform.pitch + M.amount, cs(b, M);
|
|
26307
26307
|
}
|
|
26308
26308
|
if (b.zoom || b.bearing) {
|
|
26309
26309
|
const M = m.pinchAround === void 0 ? m.around : m.pinchAround;
|
|
@@ -26312,7 +26312,7 @@ uniform ${K} ${Y} u_${lt};
|
|
|
26312
26312
|
return this.clear(), a.e(b, { noMoveStart: !0 });
|
|
26313
26313
|
}
|
|
26314
26314
|
}
|
|
26315
|
-
function
|
|
26315
|
+
function cs(S, l) {
|
|
26316
26316
|
(!S.duration || S.duration < l.duration) && (S.duration = l.duration, S.easing = l.easing);
|
|
26317
26317
|
}
|
|
26318
26318
|
function To(S, l, m) {
|
|
@@ -26572,7 +26572,7 @@ uniform ${K} ${Y} u_${lt};
|
|
|
26572
26572
|
}
|
|
26573
26573
|
}
|
|
26574
26574
|
}
|
|
26575
|
-
class
|
|
26575
|
+
class us {
|
|
26576
26576
|
constructor(l) {
|
|
26577
26577
|
this._tr = new O1(l), this._zoomIn = new Us({ numTouches: 1, numTaps: 2 }), this._zoomOut = new Us({ numTouches: 2, numTaps: 1 }), this.reset();
|
|
26578
26578
|
}
|
|
@@ -26925,7 +26925,7 @@ uniform ${K} ${Y} u_${lt};
|
|
|
26925
26925
|
}
|
|
26926
26926
|
return this._rotationDisabled && (v = 0, b = 0), { cameraAnimation: (D) => {
|
|
26927
26927
|
const j = this._tr;
|
|
26928
|
-
D.easeTo({ duration: 300, easeId: "keyboardHandler", easing:
|
|
26928
|
+
D.easeTo({ duration: 300, easeId: "keyboardHandler", easing: hs, zoom: m ? Math.round(j.zoom) + m * (l.shiftKey ? 2 : 1) : j.zoom, bearing: j.bearing + v * this._bearingStep, pitch: j.pitch + b * this._pitchStep, offset: [-M * this._panStep, -V * this._panStep], center: j.center }, { originalEvent: l });
|
|
26929
26929
|
} };
|
|
26930
26930
|
}
|
|
26931
26931
|
enable() {
|
|
@@ -26947,7 +26947,7 @@ uniform ${K} ${Y} u_${lt};
|
|
|
26947
26947
|
this._rotationDisabled = !1;
|
|
26948
26948
|
}
|
|
26949
26949
|
}
|
|
26950
|
-
function
|
|
26950
|
+
function hs(S) {
|
|
26951
26951
|
return S * (2 - S);
|
|
26952
26952
|
}
|
|
26953
26953
|
const Oc = 4.000244140625;
|
|
@@ -27267,7 +27267,7 @@ uniform ${K} ${Y} u_${lt};
|
|
|
27267
27267
|
this._add("boxZoom", b), l.interactive && l.boxZoom && b.enable();
|
|
27268
27268
|
const M = m.cooperativeGestures = new J4(m, l.cooperativeGestures);
|
|
27269
27269
|
this._add("cooperativeGestures", M), l.cooperativeGestures && M.enable();
|
|
27270
|
-
const V = new
|
|
27270
|
+
const V = new us(m), D = new T_(m);
|
|
27271
27271
|
m.doubleClickZoom = new D3(D, V), this._add("tapZoom", V), this._add("clickZoom", D), l.interactive && l.doubleClickZoom && m.doubleClickZoom.enable();
|
|
27272
27272
|
const j = new f_();
|
|
27273
27273
|
this._add("tapDragZoom", j);
|
|
@@ -28299,7 +28299,7 @@ uniform ${K} ${Y} u_${lt};
|
|
|
28299
28299
|
}
|
|
28300
28300
|
const vp = { positionOptions: { enableHighAccuracy: !1, maximumAge: 0, timeout: 6e3 }, fitBoundsOptions: { maxZoom: 15 }, trackUserLocation: !1, showAccuracyCircle: !0, showUserLocation: !0 };
|
|
28301
28301
|
let C0 = 0, k0 = !1;
|
|
28302
|
-
const
|
|
28302
|
+
const ds = { maxWidth: 100, unit: "metric" };
|
|
28303
28303
|
function I0(S, l, m) {
|
|
28304
28304
|
const v = m && m.maxWidth || 100, b = S._container.clientHeight / 2, M = S.unproject([0, b]), V = S.unproject([v, b]), D = M.distanceTo(V);
|
|
28305
28305
|
if (m && m.unit === "imperial") {
|
|
@@ -28571,7 +28571,7 @@ uniform ${K} ${Y} u_${lt};
|
|
|
28571
28571
|
}), typeof window < "u") {
|
|
28572
28572
|
addEventListener("online", this._onWindowOnline, !1);
|
|
28573
28573
|
let m = !1;
|
|
28574
|
-
const v =
|
|
28574
|
+
const v = as((b) => {
|
|
28575
28575
|
this._trackResize && !this._removed && (this.resize(b), this.redraw());
|
|
28576
28576
|
}, 50);
|
|
28577
28577
|
this._resizeObserver = new ResizeObserver((b) => {
|
|
@@ -29268,7 +29268,7 @@ uniform ${K} ${Y} u_${lt};
|
|
|
29268
29268
|
I0(this._map, this._container, this.options);
|
|
29269
29269
|
}, this.setUnit = (l) => {
|
|
29270
29270
|
this.options.unit = l, I0(this._map, this._container, this.options);
|
|
29271
|
-
}, this.options = Object.assign(Object.assign({},
|
|
29271
|
+
}, this.options = Object.assign(Object.assign({}, ds), S);
|
|
29272
29272
|
}
|
|
29273
29273
|
getDefaultPosition() {
|
|
29274
29274
|
return "bottom-left";
|
|
@@ -35130,7 +35130,7 @@ function Igt(t, e = 0) {
|
|
|
35130
35130
|
clearTimeout(r), r = setTimeout(() => t.apply(this, n), e);
|
|
35131
35131
|
};
|
|
35132
35132
|
}
|
|
35133
|
-
const
|
|
35133
|
+
const gs = "pathways", Pgt = "ilxtr:", am = [
|
|
35134
35134
|
{ type: "cns", label: "CNS", colour: "#9B1FC1" },
|
|
35135
35135
|
{ type: "intracardiac", label: "Local circuit neuron", colour: "#F19E38" },
|
|
35136
35136
|
{ type: "para-pre", label: "Parasympathetic pre-ganglionic", colour: "#3F8F4A" },
|
|
@@ -35885,7 +35885,7 @@ function oZ(t) {
|
|
|
35885
35885
|
return !1;
|
|
35886
35886
|
return !0;
|
|
35887
35887
|
}
|
|
35888
|
-
function
|
|
35888
|
+
function Qs(t, e, r) {
|
|
35889
35889
|
Object.defineProperty(t, e, {
|
|
35890
35890
|
enumerable: !1,
|
|
35891
35891
|
configurable: !1,
|
|
@@ -37666,7 +37666,7 @@ class ci extends $gt.EventEmitter {
|
|
|
37666
37666
|
`Graph.constructor: invalid 'allowSelfLoops' option. Expecting a boolean but got "${e.allowSelfLoops}".`
|
|
37667
37667
|
);
|
|
37668
37668
|
const r = e.type === "mixed" ? sZ : e.type === "directed" ? aZ : lZ;
|
|
37669
|
-
|
|
37669
|
+
Qs(this, "NodeDataClass", r);
|
|
37670
37670
|
const n = "geid_" + evt() + "_";
|
|
37671
37671
|
let i = 0;
|
|
37672
37672
|
const o = () => {
|
|
@@ -37676,7 +37676,7 @@ class ci extends $gt.EventEmitter {
|
|
|
37676
37676
|
while (this._edges.has(s));
|
|
37677
37677
|
return s;
|
|
37678
37678
|
};
|
|
37679
|
-
|
|
37679
|
+
Qs(this, "_attributes", {}), Qs(this, "_nodes", /* @__PURE__ */ new Map()), Qs(this, "_edges", /* @__PURE__ */ new Map()), Qs(this, "_directedSize", 0), Qs(this, "_undirectedSize", 0), Qs(this, "_directedSelfLoopCount", 0), Qs(this, "_undirectedSelfLoopCount", 0), Qs(this, "_edgeKeyGenerator", o), Qs(this, "_options", e), NR.forEach((s) => Qs(this, s, this[s])), Xs(this, "order", () => this._nodes.size), Xs(this, "size", () => this._edges.size), Xs(this, "directedSize", () => this._directedSize), Xs(this, "undirectedSize", () => this._undirectedSize), Xs(
|
|
37680
37680
|
this,
|
|
37681
37681
|
"selfLoopCount",
|
|
37682
37682
|
() => this._directedSelfLoopCount + this._undirectedSelfLoopCount
|
|
@@ -39178,7 +39178,7 @@ class ci extends $gt.EventEmitter {
|
|
|
39178
39178
|
const i = {};
|
|
39179
39179
|
for (const o in this)
|
|
39180
39180
|
this.hasOwnProperty(o) && !NR.has(o) && typeof this[o] != "function" && typeof o != "symbol" && (i[o] = this[o]);
|
|
39181
|
-
return i.attributes = this._attributes, i.nodes = e, i.edges = r,
|
|
39181
|
+
return i.attributes = this._attributes, i.nodes = e, i.edges = r, Qs(i, "constructor", this.constructor), i;
|
|
39182
39182
|
}
|
|
39183
39183
|
}
|
|
39184
39184
|
typeof Symbol < "u" && (ci.prototype[Symbol.for("nodejs.util.inspect.custom")] = ci.prototype.inspect);
|
|
@@ -40145,7 +40145,7 @@ class GH {
|
|
|
40145
40145
|
}
|
|
40146
40146
|
}
|
|
40147
40147
|
v9 = /* @__PURE__ */ new WeakMap();
|
|
40148
|
-
class
|
|
40148
|
+
class K2 extends GH {
|
|
40149
40149
|
constructor(e, r, n) {
|
|
40150
40150
|
super(`${e}_${r}`), this.__sourceLayer = n, this.__lastPaintStyle = {};
|
|
40151
40151
|
}
|
|
@@ -40173,7 +40173,7 @@ class Y2 extends GH {
|
|
|
40173
40173
|
};
|
|
40174
40174
|
}
|
|
40175
40175
|
}
|
|
40176
|
-
class Gvt extends
|
|
40176
|
+
class Gvt extends K2 {
|
|
40177
40177
|
constructor(e, r) {
|
|
40178
40178
|
super(e, "body", r);
|
|
40179
40179
|
}
|
|
@@ -40203,7 +40203,7 @@ class Gvt extends Y2 {
|
|
|
40203
40203
|
};
|
|
40204
40204
|
}
|
|
40205
40205
|
}
|
|
40206
|
-
class $vt extends
|
|
40206
|
+
class $vt extends K2 {
|
|
40207
40207
|
constructor(e, r) {
|
|
40208
40208
|
super(e, "fill", r);
|
|
40209
40209
|
}
|
|
@@ -40267,7 +40267,7 @@ class $vt extends Y2 {
|
|
|
40267
40267
|
};
|
|
40268
40268
|
}
|
|
40269
40269
|
}
|
|
40270
|
-
class Wvt extends
|
|
40270
|
+
class Wvt extends K2 {
|
|
40271
40271
|
constructor(e, r) {
|
|
40272
40272
|
super(e, "border", r);
|
|
40273
40273
|
}
|
|
@@ -40299,7 +40299,7 @@ class Wvt extends Y2 {
|
|
|
40299
40299
|
};
|
|
40300
40300
|
}
|
|
40301
40301
|
}
|
|
40302
|
-
class RZ extends
|
|
40302
|
+
class RZ extends K2 {
|
|
40303
40303
|
constructor(e, r, n = {}) {
|
|
40304
40304
|
const i = "dashed" in n && n.dashed;
|
|
40305
40305
|
super(e, `feature-${i ? "line-dash" : "line"}`, r), this.__dashed = i;
|
|
@@ -40406,7 +40406,7 @@ function NZ(t = {}) {
|
|
|
40406
40406
|
]
|
|
40407
40407
|
]] : [];
|
|
40408
40408
|
}
|
|
40409
|
-
class qvt extends
|
|
40409
|
+
class qvt extends K2 {
|
|
40410
40410
|
constructor(e, r) {
|
|
40411
40411
|
super(e, "annotated-path", r);
|
|
40412
40412
|
}
|
|
@@ -40469,7 +40469,7 @@ class qvt extends Y2 {
|
|
|
40469
40469
|
};
|
|
40470
40470
|
}
|
|
40471
40471
|
}
|
|
40472
|
-
class Yg extends
|
|
40472
|
+
class Yg extends K2 {
|
|
40473
40473
|
constructor(e, r, n = {}) {
|
|
40474
40474
|
const i = "dashed" in n && n.dashed, o = "highlight" in n && n.highlight;
|
|
40475
40475
|
super(e, `path${o ? "-highlight" : ""}-${i ? "line-dash" : "line"}`, r), this.__dashed = i, this.__highlight = o;
|
|
@@ -40594,7 +40594,7 @@ class Yvt extends Yg {
|
|
|
40594
40594
|
super(e, r, { dashed: !0, highlight: !0 });
|
|
40595
40595
|
}
|
|
40596
40596
|
}
|
|
40597
|
-
class DZ extends
|
|
40597
|
+
class DZ extends K2 {
|
|
40598
40598
|
constructor(e, r, n) {
|
|
40599
40599
|
super(e, `nerve-centreline-${r}`, n), this.__type = r;
|
|
40600
40600
|
}
|
|
@@ -40666,7 +40666,7 @@ class t_t extends DZ {
|
|
|
40666
40666
|
super(e, "track", r);
|
|
40667
40667
|
}
|
|
40668
40668
|
}
|
|
40669
|
-
class e_t extends
|
|
40669
|
+
class e_t extends K2 {
|
|
40670
40670
|
constructor(e, r) {
|
|
40671
40671
|
super(e, "node-fill", r);
|
|
40672
40672
|
}
|
|
@@ -40703,7 +40703,7 @@ class e_t extends Y2 {
|
|
|
40703
40703
|
};
|
|
40704
40704
|
}
|
|
40705
40705
|
}
|
|
40706
|
-
class r_t extends
|
|
40706
|
+
class r_t extends K2 {
|
|
40707
40707
|
constructor(e, r) {
|
|
40708
40708
|
super(e, "nerve-path", r);
|
|
40709
40709
|
}
|
|
@@ -40769,7 +40769,7 @@ class r_t extends Y2 {
|
|
|
40769
40769
|
};
|
|
40770
40770
|
}
|
|
40771
40771
|
}
|
|
40772
|
-
class n_t extends
|
|
40772
|
+
class n_t extends K2 {
|
|
40773
40773
|
constructor(e, r) {
|
|
40774
40774
|
super(e, "nerve-border", r);
|
|
40775
40775
|
}
|
|
@@ -40816,7 +40816,7 @@ class n_t extends Y2 {
|
|
|
40816
40816
|
};
|
|
40817
40817
|
}
|
|
40818
40818
|
}
|
|
40819
|
-
class i_t extends
|
|
40819
|
+
class i_t extends K2 {
|
|
40820
40820
|
constructor(e, r) {
|
|
40821
40821
|
super(e, "nerve-fill", r);
|
|
40822
40822
|
}
|
|
@@ -40887,7 +40887,7 @@ class i_t extends Y2 {
|
|
|
40887
40887
|
};
|
|
40888
40888
|
}
|
|
40889
40889
|
}
|
|
40890
|
-
class o_t extends
|
|
40890
|
+
class o_t extends K2 {
|
|
40891
40891
|
constructor(e, r) {
|
|
40892
40892
|
super(e, "large-symbol", r);
|
|
40893
40893
|
}
|
|
@@ -40928,7 +40928,7 @@ class o_t extends Y2 {
|
|
|
40928
40928
|
};
|
|
40929
40929
|
}
|
|
40930
40930
|
}
|
|
40931
|
-
class s_t extends
|
|
40931
|
+
class s_t extends K2 {
|
|
40932
40932
|
constructor(e, r) {
|
|
40933
40933
|
super(e, "small-symbol", r);
|
|
40934
40934
|
}
|
|
@@ -48078,7 +48078,7 @@ function TEt(t, e) {
|
|
|
48078
48078
|
return !1;
|
|
48079
48079
|
return !0;
|
|
48080
48080
|
}
|
|
48081
|
-
function
|
|
48081
|
+
function W2(t) {
|
|
48082
48082
|
if (!Number.isFinite(t))
|
|
48083
48083
|
throw new Error(`Invalid number ${JSON.stringify(t)}`);
|
|
48084
48084
|
return t;
|
|
@@ -48098,13 +48098,13 @@ class fEt extends TX {
|
|
|
48098
48098
|
return this[0];
|
|
48099
48099
|
}
|
|
48100
48100
|
set x(e) {
|
|
48101
|
-
this[0] =
|
|
48101
|
+
this[0] = W2(e);
|
|
48102
48102
|
}
|
|
48103
48103
|
get y() {
|
|
48104
48104
|
return this[1];
|
|
48105
48105
|
}
|
|
48106
48106
|
set y(e) {
|
|
48107
|
-
this[1] =
|
|
48107
|
+
this[1] = W2(e);
|
|
48108
48108
|
}
|
|
48109
48109
|
/**
|
|
48110
48110
|
* Returns the length of the vector from the origin to the point described by this vector
|
|
@@ -48145,13 +48145,13 @@ class fEt extends TX {
|
|
|
48145
48145
|
const i = this[n] - e[n];
|
|
48146
48146
|
r += i * i;
|
|
48147
48147
|
}
|
|
48148
|
-
return
|
|
48148
|
+
return W2(r);
|
|
48149
48149
|
}
|
|
48150
48150
|
dot(e) {
|
|
48151
48151
|
let r = 0;
|
|
48152
48152
|
for (let n = 0; n < this.ELEMENTS; ++n)
|
|
48153
48153
|
r += this[n] * e[n];
|
|
48154
|
-
return
|
|
48154
|
+
return W2(r);
|
|
48155
48155
|
}
|
|
48156
48156
|
// MODIFIERS
|
|
48157
48157
|
normalize() {
|
|
@@ -48184,7 +48184,7 @@ class fEt extends TX {
|
|
|
48184
48184
|
return this.distanceSquared(e);
|
|
48185
48185
|
}
|
|
48186
48186
|
getComponent(e) {
|
|
48187
|
-
return NN(e >= 0 && e < this.ELEMENTS, "index is out of range"),
|
|
48187
|
+
return NN(e >= 0 && e < this.ELEMENTS, "index is out of range"), W2(this[e]);
|
|
48188
48188
|
}
|
|
48189
48189
|
setComponent(e, r) {
|
|
48190
48190
|
return NN(e >= 0 && e < this.ELEMENTS, "index is out of range"), this[e] = r, this.check();
|
|
@@ -48314,7 +48314,7 @@ class m3 extends fEt {
|
|
|
48314
48314
|
* @param z
|
|
48315
48315
|
*/
|
|
48316
48316
|
constructor(e = 0, r = 0, n = 0) {
|
|
48317
|
-
super(-0, -0, -0), arguments.length === 1 && P8(e) ? this.copy(e) : (As.debug && (
|
|
48317
|
+
super(-0, -0, -0), arguments.length === 1 && P8(e) ? this.copy(e) : (As.debug && (W2(e), W2(r), W2(n)), this[0] = e, this[1] = r, this[2] = n);
|
|
48318
48318
|
}
|
|
48319
48319
|
set(e, r, n) {
|
|
48320
48320
|
return this[0] = e, this[1] = r, this[2] = n, this.check();
|
|
@@ -48323,7 +48323,7 @@ class m3 extends fEt {
|
|
|
48323
48323
|
return this[0] = e[0], this[1] = e[1], this[2] = e[2], this.check();
|
|
48324
48324
|
}
|
|
48325
48325
|
fromObject(e) {
|
|
48326
|
-
return As.debug && (
|
|
48326
|
+
return As.debug && (W2(e.x), W2(e.y), W2(e.z)), this[0] = e.x, this[1] = e.y, this[2] = e.z, this.check();
|
|
48327
48327
|
}
|
|
48328
48328
|
toObject(e) {
|
|
48329
48329
|
return e.x = this[0], e.y = this[1], e.z = this[2], e;
|
|
@@ -48336,7 +48336,7 @@ class m3 extends fEt {
|
|
|
48336
48336
|
return this[2];
|
|
48337
48337
|
}
|
|
48338
48338
|
set z(e) {
|
|
48339
|
-
this[2] =
|
|
48339
|
+
this[2] = W2(e);
|
|
48340
48340
|
}
|
|
48341
48341
|
// ACCESSORS
|
|
48342
48342
|
angle(e) {
|
|
@@ -48412,7 +48412,7 @@ class kEt extends TX {
|
|
|
48412
48412
|
}
|
|
48413
48413
|
// By default assumes row major indices
|
|
48414
48414
|
setElement(e, r, n) {
|
|
48415
|
-
return this[r * this.RANK + e] =
|
|
48415
|
+
return this[r * this.RANK + e] = W2(n), this;
|
|
48416
48416
|
}
|
|
48417
48417
|
getColumn(e, r = new Array(this.RANK).fill(-0)) {
|
|
48418
48418
|
const n = e * this.RANK;
|
|
@@ -57884,7 +57884,7 @@ var hK = { exports: {} };
|
|
|
57884
57884
|
}
|
|
57885
57885
|
return !1;
|
|
57886
57886
|
}
|
|
57887
|
-
var Se = Zt(s.style, "touchAction"), lr = Se !== i, Or = "compute", vn = "auto", zr = "manipulation", br = "none", Br = "pan-x", cn = "pan-y", Kn =
|
|
57887
|
+
var Se = Zt(s.style, "touchAction"), lr = Se !== i, Or = "compute", vn = "auto", zr = "manipulation", br = "none", Br = "pan-x", cn = "pan-y", Kn = Y2();
|
|
57888
57888
|
function Li(B, q) {
|
|
57889
57889
|
this.manager = B, this.set(q);
|
|
57890
57890
|
}
|
|
@@ -57945,7 +57945,7 @@ var hK = { exports: {} };
|
|
|
57945
57945
|
var q = nt(B, Br), it = nt(B, cn);
|
|
57946
57946
|
return q && it ? br : q || it ? q ? Br : cn : nt(B, zr) ? zr : vn;
|
|
57947
57947
|
}
|
|
57948
|
-
function
|
|
57948
|
+
function Y2() {
|
|
57949
57949
|
if (!lr)
|
|
57950
57950
|
return !1;
|
|
57951
57951
|
var B = {}, q = e.CSS && e.CSS.supports;
|
|
@@ -57953,7 +57953,7 @@ var hK = { exports: {} };
|
|
|
57953
57953
|
B[it] = q ? e.CSS.supports("touch-action", it) : !0;
|
|
57954
57954
|
}), B;
|
|
57955
57955
|
}
|
|
57956
|
-
var tn = 1, zi = 2, lo = 4, Xr = 8, Yn = Xr,
|
|
57956
|
+
var tn = 1, zi = 2, lo = 4, Xr = 8, Yn = Xr, J2 = 16, _n = 32;
|
|
57957
57957
|
function pn(B) {
|
|
57958
57958
|
this.options = L({}, this.defaults, B || {}), this.id = re(), this.manager = null, this.options.enable = F(this.options.enable, !0), this.state = tn, this.simultaneous = {}, this.requireFail = [];
|
|
57959
57959
|
}
|
|
@@ -58073,7 +58073,7 @@ var hK = { exports: {} };
|
|
|
58073
58073
|
this.reset(), this.state = _n;
|
|
58074
58074
|
return;
|
|
58075
58075
|
}
|
|
58076
|
-
this.state & (Yn |
|
|
58076
|
+
this.state & (Yn | J2 | _n) && (this.state = tn), this.state = this.process(q), this.state & (zi | lo | Xr | J2) && this.tryEmit(q);
|
|
58077
58077
|
},
|
|
58078
58078
|
/**
|
|
58079
58079
|
* return the state of the recognizer
|
|
@@ -58101,7 +58101,7 @@ var hK = { exports: {} };
|
|
|
58101
58101
|
}
|
|
58102
58102
|
};
|
|
58103
58103
|
function co(B) {
|
|
58104
|
-
return B &
|
|
58104
|
+
return B & J2 ? "cancel" : B & Xr ? "end" : B & lo ? "move" : B & zi ? "start" : "";
|
|
58105
58105
|
}
|
|
58106
58106
|
function u1(B) {
|
|
58107
58107
|
return B == ar ? "down" : B == Ge ? "up" : B == Tr ? "left" : B == qe ? "right" : "";
|
|
@@ -58143,7 +58143,7 @@ var hK = { exports: {} };
|
|
|
58143
58143
|
*/
|
|
58144
58144
|
process: function(B) {
|
|
58145
58145
|
var q = this.state, it = B.eventType, ht = q & (zi | lo), mt = this.attrTest(B);
|
|
58146
|
-
return ht && (it & de || !mt) ? q |
|
|
58146
|
+
return ht && (it & de || !mt) ? q | J2 : ht || mt ? it & me ? q | Xr : q & zi ? q | lo : zi : _n;
|
|
58147
58147
|
}
|
|
58148
58148
|
});
|
|
58149
58149
|
function h1() {
|
|
@@ -58204,10 +58204,10 @@ var hK = { exports: {} };
|
|
|
58204
58204
|
this._super.emit.call(this, B);
|
|
58205
58205
|
}
|
|
58206
58206
|
});
|
|
58207
|
-
function
|
|
58207
|
+
function ts() {
|
|
58208
58208
|
pn.apply(this, arguments), this._timer = null, this._input = null;
|
|
58209
58209
|
}
|
|
58210
|
-
O(
|
|
58210
|
+
O(ts, pn, {
|
|
58211
58211
|
/**
|
|
58212
58212
|
* @namespace
|
|
58213
58213
|
* @memberof PressRecognizer
|
|
@@ -58392,7 +58392,7 @@ var hK = { exports: {} };
|
|
|
58392
58392
|
[h1, { direction: Ct }, ["swipe"]],
|
|
58393
58393
|
[e1],
|
|
58394
58394
|
[e1, { event: "doubletap", taps: 2 }, ["tap"]],
|
|
58395
|
-
[
|
|
58395
|
+
[ts]
|
|
58396
58396
|
],
|
|
58397
58397
|
/**
|
|
58398
58398
|
* Some CSS properties can be used to improve the working of Hammer.
|
|
@@ -58598,7 +58598,7 @@ var hK = { exports: {} };
|
|
|
58598
58598
|
STATE_CHANGED: lo,
|
|
58599
58599
|
STATE_ENDED: Xr,
|
|
58600
58600
|
STATE_RECOGNIZED: Yn,
|
|
58601
|
-
STATE_CANCELLED:
|
|
58601
|
+
STATE_CANCELLED: J2,
|
|
58602
58602
|
STATE_FAILED: _n,
|
|
58603
58603
|
DIRECTION_NONE: Ue,
|
|
58604
58604
|
DIRECTION_LEFT: Tr,
|
|
@@ -58623,7 +58623,7 @@ var hK = { exports: {} };
|
|
|
58623
58623
|
Swipe: v2,
|
|
58624
58624
|
Pinch: jn,
|
|
58625
58625
|
Rotate: d1,
|
|
58626
|
-
Press:
|
|
58626
|
+
Press: ts,
|
|
58627
58627
|
on: U,
|
|
58628
58628
|
off: $,
|
|
58629
58629
|
each: y,
|
|
@@ -62996,12 +62996,12 @@ const Na = "features";
|
|
|
62996
62996
|
function XE(t) {
|
|
62997
62997
|
return "layer" in t && t.layer.id === UH;
|
|
62998
62998
|
}
|
|
62999
|
-
var bh, iQ, Q8, km, Xa,
|
|
62999
|
+
var bh, iQ, Q8, km, Xa, $2, Im, Pm, Lh, Vm, U6, wh, Rm, oQ, KE, YE, IK, xh, sQ, w1, j1, aQ, JE;
|
|
63000
63000
|
class Pkt {
|
|
63001
63001
|
constructor(e, r, n) {
|
|
63002
|
-
Ft(this, wh), Ft(this, oQ), Ft(this, YE), Ft(this, xh), Ft(this, w1), Ft(this, aQ), Ft(this, bh, !0), Ft(this, iQ, void 0), Ft(this, Q8, void 0), Ft(this, km, void 0), Ft(this, Xa, void 0), Ft(this,
|
|
63002
|
+
Ft(this, wh), Ft(this, oQ), Ft(this, YE), Ft(this, xh), Ft(this, w1), Ft(this, aQ), Ft(this, bh, !0), Ft(this, iQ, void 0), Ft(this, Q8, void 0), Ft(this, km, void 0), Ft(this, Xa, void 0), Ft(this, $2, void 0), Ft(this, Im, []), Ft(this, Pm, []), Ft(this, Lh, []), Ft(this, Vm, void 0), Ft(this, U6, []), Jt(this, Q8, r.id), Jt(this, km, r), Jt(this, $2, e.map), Jt(this, iQ, r.description), Jt(this, Xa, n), Jt(this, Vm, e.options.separateLayers);
|
|
63003
63003
|
const i = `${r.id}_${Na}`, o = e.options.separateLayers ? i : Na;
|
|
63004
|
-
if (J(this,
|
|
63004
|
+
if (J(this, $2).getSource(Tm).vectorLayerIds.indexOf(o) >= 0) {
|
|
63005
63005
|
const a = new Gvt(i, o);
|
|
63006
63006
|
se(this, wh, Rm).call(this, a.style(r, J(this, Xa)), !0), J(this, U6).push(a);
|
|
63007
63007
|
}
|
|
@@ -63013,7 +63013,7 @@ class Pkt {
|
|
|
63013
63013
|
}
|
|
63014
63014
|
} else
|
|
63015
63015
|
J(this, Xa).activeRasterLayer = !1;
|
|
63016
|
-
const s = J(this,
|
|
63016
|
+
const s = J(this, $2).getSource("vector-tiles");
|
|
63017
63017
|
if (typeof s < "u") {
|
|
63018
63018
|
const a = se(this, xh, sQ).call(this, Na), u = s.vectorLayerIds.includes(a);
|
|
63019
63019
|
u && (se(this, w1, j1).call(this, $vt, Na, !1, !0), se(this, w1, j1).call(this, Zvt, Na, !1, !0), se(this, w1, j1).call(this, RZ, Na, !1, !0), se(this, w1, j1).call(this, Wvt, Na, !1, !0), se(this, w1, j1).call(this, e_t, Na)), se(this, YE, IK).call(this), u && (se(this, w1, j1).call(this, o_t, Na), e.options.tooltips || se(this, w1, j1).call(this, s_t, Na));
|
|
@@ -63041,35 +63041,35 @@ class Pkt {
|
|
|
63041
63041
|
}
|
|
63042
63042
|
setFlatPathMode(e) {
|
|
63043
63043
|
for (const r of J(this, Pm))
|
|
63044
|
-
J(this,
|
|
63044
|
+
J(this, $2).setLayoutProperty(r.id, "visibility", e ? "visible" : "none");
|
|
63045
63045
|
}
|
|
63046
63046
|
setPaint(e) {
|
|
63047
63047
|
for (const r of J(this, U6)) {
|
|
63048
63048
|
const n = r.paintStyle(e, !0);
|
|
63049
63049
|
for (const [i, o] of Object.entries(n))
|
|
63050
|
-
J(this,
|
|
63050
|
+
J(this, $2).setPaintProperty(r.id, i, o, { validate: !1 });
|
|
63051
63051
|
}
|
|
63052
63052
|
se(this, aQ, JE).call(this, e);
|
|
63053
63053
|
}
|
|
63054
63054
|
clearVisibilityFilter() {
|
|
63055
63055
|
for (const e of J(this, U6))
|
|
63056
|
-
J(this,
|
|
63056
|
+
J(this, $2).setFilter(e.id, e.defaultFilter(), { validate: !1 });
|
|
63057
63057
|
}
|
|
63058
63058
|
setVisibilityFilter(e) {
|
|
63059
63059
|
for (const r of J(this, U6)) {
|
|
63060
63060
|
const n = r.defaultFilter();
|
|
63061
63061
|
let i = null;
|
|
63062
|
-
n ? n[0] === "all" ? Array.isArray(e) && e[0] === "all" ? i = [...n, ...e.slice(1)] : i = [...n, e] : e[0] === "all" ? i = [...e, n] : i = [e, n] : i = e, i && J(this,
|
|
63062
|
+
n ? n[0] === "all" ? Array.isArray(e) && e[0] === "all" ? i = [...n, ...e.slice(1)] : i = [...n, e] : e[0] === "all" ? i = [...e, n] : i = [e, n] : i = e, i && J(this, $2).setFilter(r.id, i, { validate: !0 });
|
|
63063
63063
|
}
|
|
63064
63064
|
}
|
|
63065
63065
|
}
|
|
63066
|
-
bh = /* @__PURE__ */ new WeakMap(), iQ = /* @__PURE__ */ new WeakMap(), Q8 = /* @__PURE__ */ new WeakMap(), km = /* @__PURE__ */ new WeakMap(), Xa = /* @__PURE__ */ new WeakMap(),
|
|
63067
|
-
J(this,
|
|
63066
|
+
bh = /* @__PURE__ */ new WeakMap(), iQ = /* @__PURE__ */ new WeakMap(), Q8 = /* @__PURE__ */ new WeakMap(), km = /* @__PURE__ */ new WeakMap(), Xa = /* @__PURE__ */ new WeakMap(), $2 = /* @__PURE__ */ new WeakMap(), Im = /* @__PURE__ */ new WeakMap(), Pm = /* @__PURE__ */ new WeakMap(), Lh = /* @__PURE__ */ new WeakMap(), Vm = /* @__PURE__ */ new WeakMap(), U6 = /* @__PURE__ */ new WeakMap(), wh = /* @__PURE__ */ new WeakSet(), Rm = function(t, e = !1) {
|
|
63067
|
+
J(this, $2).addLayer(t), e && J(this, Im).push(t);
|
|
63068
63068
|
}, oQ = /* @__PURE__ */ new WeakSet(), KE = function(t, e = !0) {
|
|
63069
|
-
J(this,
|
|
63069
|
+
J(this, $2).setLayoutProperty(t, "visibility", e ? "visible" : "none");
|
|
63070
63070
|
}, YE = /* @__PURE__ */ new WeakSet(), IK = function() {
|
|
63071
|
-
const t = se(this, xh, sQ).call(this,
|
|
63072
|
-
J(this,
|
|
63071
|
+
const t = se(this, xh, sQ).call(this, gs);
|
|
63072
|
+
J(this, $2).getSource("vector-tiles").vectorLayerIds.includes(t) && (se(this, w1, j1).call(this, qvt, gs, !0, !0), se(this, w1, j1).call(this, Jvt, gs), se(this, w1, j1).call(this, t_t, gs), se(this, w1, j1).call(this, Yg, gs, !0, !0), se(this, w1, j1).call(this, Xvt, gs, !0, !0), se(this, w1, j1).call(this, n_t, gs, !0), se(this, w1, j1).call(this, i_t, gs, !0), se(this, w1, j1).call(this, r_t, gs, !0), se(this, w1, j1).call(this, Kvt, gs, !0), se(this, w1, j1).call(this, Yvt, gs, !0));
|
|
63073
63073
|
}, xh = /* @__PURE__ */ new WeakSet(), sQ = function(t) {
|
|
63074
63074
|
return (J(this, Vm) ? `${J(this, Q8)}_${t}` : t).replaceAll("/", "_");
|
|
63075
63075
|
}, w1 = /* @__PURE__ */ new WeakSet(), j1 = function(t, e, r = !1, n = !1) {
|
|
@@ -63081,7 +63081,7 @@ bh = /* @__PURE__ */ new WeakMap(), iQ = /* @__PURE__ */ new WeakMap(), Q8 = /*
|
|
|
63081
63081
|
}, aQ = /* @__PURE__ */ new WeakSet(), JE = function(t) {
|
|
63082
63082
|
const e = !("colour" in t) || t.colour;
|
|
63083
63083
|
for (const r of J(this, Lh))
|
|
63084
|
-
J(this,
|
|
63084
|
+
J(this, $2).setLayoutProperty(
|
|
63085
63085
|
r.id,
|
|
63086
63086
|
"visibility",
|
|
63087
63087
|
e && J(this, bh) ? "visible" : "none",
|
|
@@ -64995,11 +64995,11 @@ var RK = { exports: {} };
|
|
|
64995
64995
|
}) && (G.bbox = Ri(G).bbox(), this.update(G));
|
|
64996
64996
|
});
|
|
64997
64997
|
};
|
|
64998
|
-
var
|
|
64998
|
+
var Y2 = n(xt.exports), tn = -90;
|
|
64999
64999
|
function zi(I, G) {
|
|
65000
65000
|
var B = tn, q = 90, it = tn, ht = 90, mt = 270, qt = -270;
|
|
65001
65001
|
I.forEach(function(ve) {
|
|
65002
|
-
var Me =
|
|
65002
|
+
var Me = Y2(ve), be = Me[1], fr = Me[3], kn = Me[0], xr = Me[2];
|
|
65003
65003
|
be > B && (B = be), fr < q && (q = fr), fr > it && (it = fr), be < ht && (ht = be), kn < mt && (mt = kn), xr > qt && (qt = xr);
|
|
65004
65004
|
});
|
|
65005
65005
|
var ce = G;
|
|
@@ -65148,7 +65148,7 @@ var RK = { exports: {} };
|
|
|
65148
65148
|
B.length > 1 && this.map.fire(x.UNCOMBINE_FEATURES, { createdFeatures: B, deletedFeatures: q }), this.fireActionable();
|
|
65149
65149
|
}
|
|
65150
65150
|
};
|
|
65151
|
-
var Yn = ki(k.VERTEX),
|
|
65151
|
+
var Yn = ki(k.VERTEX), J2 = ki(k.MIDPOINT), _n = { fireUpdate: function() {
|
|
65152
65152
|
this.map.fire(x.UPDATE, { action: O.CHANGE_COORDINATES, features: this.getSelected().map(function(I) {
|
|
65153
65153
|
return I.toGeoJSON();
|
|
65154
65154
|
}) });
|
|
@@ -65210,13 +65210,13 @@ var RK = { exports: {} };
|
|
|
65210
65210
|
return I.feature.removeCoordinate(G);
|
|
65211
65211
|
}), this.fireUpdate(), I.selectedCoordPaths = [], this.clearSelectedCoordinates(), this.fireActionable(I), I.feature.isValid() === !1 && (this.deleteFeature([I.featureId]), this.changeMode(E.SIMPLE_SELECT, {}));
|
|
65212
65212
|
}, onMouseMove: function(I, G) {
|
|
65213
|
-
var B = Ii(G), q = Yn(G), it =
|
|
65213
|
+
var B = Ii(G), q = Yn(G), it = J2(G), ht = I.selectedCoordPaths.length === 0;
|
|
65214
65214
|
return B && ht || q && !ht ? this.updateUIClasses({ mouse: y.MOVE }) : this.updateUIClasses({ mouse: y.NONE }), (q || B || it) && I.dragMoving && this.fireUpdate(), this.stopDragging(I), !0;
|
|
65215
65215
|
}, onMouseOut: function(I) {
|
|
65216
65216
|
return I.dragMoving && this.fireUpdate(), !0;
|
|
65217
65217
|
} };
|
|
65218
65218
|
_n.onTouchStart = _n.onMouseDown = function(I, G) {
|
|
65219
|
-
return Yn(G) ? this.onVertex(I, G) : Ii(G) ? this.onFeature(I, G) :
|
|
65219
|
+
return Yn(G) ? this.onVertex(I, G) : Ii(G) ? this.onFeature(I, G) : J2(G) ? this.onMidpoint(I, G) : void 0;
|
|
65220
65220
|
}, _n.onDrag = function(I, G) {
|
|
65221
65221
|
if (I.canDragMove === !0) {
|
|
65222
65222
|
I.dragMoving = !0, G.originalEvent.stopPropagation();
|
|
@@ -65335,7 +65335,7 @@ var RK = { exports: {} };
|
|
|
65335
65335
|
return B(G);
|
|
65336
65336
|
G.geometry.coordinates.length < 2 || (G.properties.meta = k.FEATURE, B(Pi(I.line.id, G.geometry.coordinates[I.direction === "forward" ? G.geometry.coordinates.length - 2 : 1], "" + (I.direction === "forward" ? G.geometry.coordinates.length - 2 : 1), !1)), B(G));
|
|
65337
65337
|
};
|
|
65338
|
-
var Ui = { simple_select: Xr, direct_select: _n, draw_point: pn, draw_polygon: u1, draw_line_string: Qn }, h1 = { defaultMode: E.SIMPLE_SELECT, keybindings: !0, touchEnabled: !0, clickBuffer: 2, touchBuffer: 25, boxSelect: !0, displayControlsDefault: !0, styles: Ji, modes: Ui, controls: {}, userProperties: !1 }, jn = { point: !0, line_string: !0, polygon: !0, trash: !0, combine_features: !0, uncombine_features: !0 },
|
|
65338
|
+
var Ui = { simple_select: Xr, direct_select: _n, draw_point: pn, draw_polygon: u1, draw_line_string: Qn }, h1 = { defaultMode: E.SIMPLE_SELECT, keybindings: !0, touchEnabled: !0, clickBuffer: 2, touchBuffer: 25, boxSelect: !0, displayControlsDefault: !0, styles: Ji, modes: Ui, controls: {}, userProperties: !1 }, jn = { point: !0, line_string: !0, polygon: !0, trash: !0, combine_features: !0, uncombine_features: !0 }, ts = { point: !1, line_string: !1, polygon: !1, trash: !1, combine_features: !1, uncombine_features: !1 };
|
|
65339
65339
|
function d1(I, G) {
|
|
65340
65340
|
return I.map(function(B) {
|
|
65341
65341
|
return B.source ? B : Rr(B, { id: B.id + "." + G, source: G === "hot" ? Q.HOT : Q.COLD });
|
|
@@ -65369,7 +65369,7 @@ var RK = { exports: {} };
|
|
|
65369
65369
|
Fe[++ne] = Lr;
|
|
65370
65370
|
}), Fe;
|
|
65371
65371
|
}
|
|
65372
|
-
var _2, hn, O3, vc = Array.prototype, ya = Function.prototype, D4 = Object.prototype, F4 = Xo["__core-js_shared__"], _l = ya.toString, Ao = D4.hasOwnProperty, B4 = (_2 = /[^.]+$/.exec(F4 && F4.keys && F4.keys.IE_PROTO || "")) ? "Symbol(src)_1." + _2 : "", b0 = D4.toString, bl = RegExp("^" + _l.call(Ao).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), L0 = H3 ? Xo.Buffer : void 0, C3 = Xo.Symbol,
|
|
65372
|
+
var _2, hn, O3, vc = Array.prototype, ya = Function.prototype, D4 = Object.prototype, F4 = Xo["__core-js_shared__"], _l = ya.toString, Ao = D4.hasOwnProperty, B4 = (_2 = /[^.]+$/.exec(F4 && F4.keys && F4.keys.IE_PROTO || "")) ? "Symbol(src)_1." + _2 : "", b0 = D4.toString, bl = RegExp("^" + _l.call(Ao).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), L0 = H3 ? Xo.Buffer : void 0, C3 = Xo.Symbol, es = Xo.Uint8Array, w0 = D4.propertyIsEnumerable, _c = vc.splice, rs = C3 ? C3.toStringTag : void 0, va = Object.getOwnPropertySymbols, bc = L0 ? L0.isBuffer : void 0, j4 = (hn = Object.keys, O3 = Object, function(kt) {
|
|
65373
65373
|
return hn(O3(kt));
|
|
65374
65374
|
}), x0 = Oo(Xo, "DataView"), k3 = Oo(Xo, "Map"), z4 = Oo(Xo, "Promise"), U4 = Oo(Xo, "Set"), G4 = Oo(Xo, "WeakMap"), Bs = Oo(Object, "create"), Ll = x2(x0), $4 = x2(k3), b2 = x2(z4), E0 = x2(U4), M0 = x2(G4), W4 = C3 ? C3.prototype : void 0, _a = W4 ? W4.valueOf : void 0;
|
|
65375
65375
|
function L2(kt) {
|
|
@@ -65403,7 +65403,7 @@ var RK = { exports: {} };
|
|
|
65403
65403
|
this.size = ne.size;
|
|
65404
65404
|
}
|
|
65405
65405
|
function Lc(kt, ne) {
|
|
65406
|
-
var Fe =
|
|
65406
|
+
var Fe = os(kt), Lr = !Fe && P3(kt), Ln = !Fe && !Lr && ss(kt), rn = !Fe && !Lr && !Ln && H0(kt), Jn = Fe || Lr || Ln || rn, wi = Jn ? function(yi, _1) {
|
|
65407
65407
|
for (var A1 = -1, Ai = Array(yi); ++A1 < yi; )
|
|
65408
65408
|
Ai[A1] = _1(A1);
|
|
65409
65409
|
return Ai;
|
|
@@ -65414,48 +65414,48 @@ var RK = { exports: {} };
|
|
|
65414
65414
|
}
|
|
65415
65415
|
function $r(kt, ne) {
|
|
65416
65416
|
for (var Fe = kt.length; Fe--; )
|
|
65417
|
-
if (
|
|
65417
|
+
if (is(kt[Fe][0], ne))
|
|
65418
65418
|
return Fe;
|
|
65419
65419
|
return -1;
|
|
65420
65420
|
}
|
|
65421
|
-
function
|
|
65422
|
-
return kt == null ? kt === void 0 ? "[object Undefined]" : "[object Null]" :
|
|
65423
|
-
var Fe = Ao.call(ne,
|
|
65421
|
+
function ns(kt) {
|
|
65422
|
+
return kt == null ? kt === void 0 ? "[object Undefined]" : "[object Null]" : rs && rs in Object(kt) ? function(ne) {
|
|
65423
|
+
var Fe = Ao.call(ne, rs), Lr = ne[rs];
|
|
65424
65424
|
try {
|
|
65425
|
-
ne[
|
|
65425
|
+
ne[rs] = void 0;
|
|
65426
65426
|
var Ln = !0;
|
|
65427
65427
|
} catch {
|
|
65428
65428
|
}
|
|
65429
65429
|
var rn = b0.call(ne);
|
|
65430
|
-
return Ln && (Fe ? ne[
|
|
65430
|
+
return Ln && (Fe ? ne[rs] = Lr : delete ne[rs]), rn;
|
|
65431
65431
|
}(kt) : function(ne) {
|
|
65432
65432
|
return b0.call(ne);
|
|
65433
65433
|
}(kt);
|
|
65434
65434
|
}
|
|
65435
65435
|
function An(kt) {
|
|
65436
|
-
return Jo(kt) &&
|
|
65436
|
+
return Jo(kt) && ns(kt) == it;
|
|
65437
65437
|
}
|
|
65438
65438
|
function bn(kt, ne, Fe, Lr, Ln) {
|
|
65439
65439
|
return kt === ne || (kt == null || ne == null || !Jo(kt) && !Jo(ne) ? kt != kt && ne != ne : function(rn, Jn, wi, po, gi, yi) {
|
|
65440
|
-
var _1 =
|
|
65441
|
-
if (E2 &&
|
|
65442
|
-
if (!
|
|
65440
|
+
var _1 = os(rn), A1 = os(Jn), Ai = _1 ? ht : Yo(rn), Co = A1 ? ht : Yo(Jn), ko = (Ai = Ai == it ? fr : Ai) == fr, as = (Co = Co == it ? fr : Co) == fr, E2 = Ai == Co;
|
|
65441
|
+
if (E2 && ss(rn)) {
|
|
65442
|
+
if (!ss(Jn))
|
|
65443
65443
|
return !1;
|
|
65444
65444
|
_1 = !0, ko = !1;
|
|
65445
65445
|
}
|
|
65446
65446
|
if (E2 && !ko)
|
|
65447
|
-
return yi || (yi = new Mn()), _1 || H0(rn) ? ba(rn, Jn, wi, po, gi, yi) : function(wn, mn,
|
|
65448
|
-
switch (
|
|
65447
|
+
return yi || (yi = new Mn()), _1 || H0(rn) ? ba(rn, Jn, wi, po, gi, yi) : function(wn, mn, cs, To, Gi, $i, t2) {
|
|
65448
|
+
switch (cs) {
|
|
65449
65449
|
case zn:
|
|
65450
65450
|
if (wn.byteLength != mn.byteLength || wn.byteOffset != mn.byteOffset)
|
|
65451
65451
|
return !1;
|
|
65452
65452
|
wn = wn.buffer, mn = mn.buffer;
|
|
65453
65453
|
case Ni:
|
|
65454
|
-
return !(wn.byteLength != mn.byteLength || !$i(new
|
|
65454
|
+
return !(wn.byteLength != mn.byteLength || !$i(new es(wn), new es(mn)));
|
|
65455
65455
|
case mt:
|
|
65456
65456
|
case qt:
|
|
65457
65457
|
case be:
|
|
65458
|
-
return
|
|
65458
|
+
return is(+wn, +mn);
|
|
65459
65459
|
case ce:
|
|
65460
65460
|
return wn.name == mn.name && wn.message == mn.message;
|
|
65461
65461
|
case xr:
|
|
@@ -65480,14 +65480,14 @@ var RK = { exports: {} };
|
|
|
65480
65480
|
return !1;
|
|
65481
65481
|
}(rn, Jn, Ai, wi, po, gi, yi);
|
|
65482
65482
|
if (!(1 & wi)) {
|
|
65483
|
-
var
|
|
65484
|
-
if (
|
|
65485
|
-
var wc =
|
|
65483
|
+
var ls = ko && Ao.call(rn, "__wrapped__"), X4 = as && Ao.call(Jn, "__wrapped__");
|
|
65484
|
+
if (ls || X4) {
|
|
65485
|
+
var wc = ls ? rn.value() : rn, wl = X4 ? Jn.value() : Jn;
|
|
65486
65486
|
return yi || (yi = new Mn()), gi(wc, wl, wi, po, yi);
|
|
65487
65487
|
}
|
|
65488
65488
|
}
|
|
65489
|
-
return E2 ? (yi || (yi = new Mn()), function(wn, mn,
|
|
65490
|
-
var t2 = 1 &
|
|
65489
|
+
return E2 ? (yi || (yi = new Mn()), function(wn, mn, cs, To, Gi, $i) {
|
|
65490
|
+
var t2 = 1 & cs, M2 = q4(wn), Dn = M2.length, O1 = q4(mn).length;
|
|
65491
65491
|
if (Dn != O1 && !t2)
|
|
65492
65492
|
return !1;
|
|
65493
65493
|
for (var Wi = Dn; Wi--; ) {
|
|
@@ -65500,17 +65500,17 @@ var RK = { exports: {} };
|
|
|
65500
65500
|
return K4 == mn;
|
|
65501
65501
|
var Us = !0;
|
|
65502
65502
|
$i.set(wn, mn), $i.set(mn, wn);
|
|
65503
|
-
for (var
|
|
65503
|
+
for (var us = t2; ++Wi < Dn; ) {
|
|
65504
65504
|
var fo = wn[Io = M2[Wi]], wa = mn[Io];
|
|
65505
65505
|
if (To)
|
|
65506
65506
|
var R3 = t2 ? To(wa, fo, Io, mn, wn, $i) : To(fo, wa, Io, wn, mn, $i);
|
|
65507
|
-
if (!(R3 === void 0 ? fo === wa || Gi(fo, wa,
|
|
65507
|
+
if (!(R3 === void 0 ? fo === wa || Gi(fo, wa, cs, To, $i) : R3)) {
|
|
65508
65508
|
Us = !1;
|
|
65509
65509
|
break;
|
|
65510
65510
|
}
|
|
65511
|
-
|
|
65511
|
+
us || (us = Io == "constructor");
|
|
65512
65512
|
}
|
|
65513
|
-
if (Us && !
|
|
65513
|
+
if (Us && !us) {
|
|
65514
65514
|
var xa = wn.constructor, Gs = mn.constructor;
|
|
65515
65515
|
xa == Gs || !("constructor" in wn) || !("constructor" in mn) || typeof xa == "function" && xa instanceof xa && typeof Gs == "function" && Gs instanceof Gs || (Us = !1);
|
|
65516
65516
|
}
|
|
@@ -65550,10 +65550,10 @@ var RK = { exports: {} };
|
|
|
65550
65550
|
break;
|
|
65551
65551
|
}
|
|
65552
65552
|
if (A1) {
|
|
65553
|
-
if (!yc(ne, function(
|
|
65554
|
-
if (
|
|
65553
|
+
if (!yc(ne, function(as, E2) {
|
|
65554
|
+
if (ls = E2, !A1.has(ls) && (Ai === as || Ln(Ai, as, Fe, Lr, rn)))
|
|
65555
65555
|
return A1.push(E2);
|
|
65556
|
-
var
|
|
65556
|
+
var ls;
|
|
65557
65557
|
})) {
|
|
65558
65558
|
_1 = !1;
|
|
65559
65559
|
break;
|
|
@@ -65568,7 +65568,7 @@ var RK = { exports: {} };
|
|
|
65568
65568
|
function q4(kt) {
|
|
65569
65569
|
return function(ne, Fe, Lr) {
|
|
65570
65570
|
var Ln = Fe(ne);
|
|
65571
|
-
return
|
|
65571
|
+
return os(ne) ? Ln : function(rn, Jn) {
|
|
65572
65572
|
for (var wi = -1, po = Jn.length, gi = rn.length; ++wi < po; )
|
|
65573
65573
|
rn[gi + wi] = Jn[wi];
|
|
65574
65574
|
return rn;
|
|
@@ -65663,7 +65663,7 @@ var RK = { exports: {} };
|
|
|
65663
65663
|
}));
|
|
65664
65664
|
} : function() {
|
|
65665
65665
|
return [];
|
|
65666
|
-
}, Yo =
|
|
65666
|
+
}, Yo = ns;
|
|
65667
65667
|
function S0(kt, ne) {
|
|
65668
65668
|
return !!(ne = ne ?? q) && (typeof kt == "number" || yl.test(kt)) && kt > -1 && kt % 1 == 0 && kt < ne;
|
|
65669
65669
|
}
|
|
@@ -65680,11 +65680,11 @@ var RK = { exports: {} };
|
|
|
65680
65680
|
}
|
|
65681
65681
|
return "";
|
|
65682
65682
|
}
|
|
65683
|
-
function
|
|
65683
|
+
function is(kt, ne) {
|
|
65684
65684
|
return kt === ne || kt != kt && ne != ne;
|
|
65685
65685
|
}
|
|
65686
65686
|
(x0 && Yo(new x0(new ArrayBuffer(1))) != zn || k3 && Yo(new k3()) != Me || z4 && Yo(z4.resolve()) != kn || U4 && Yo(new U4()) != un || G4 && Yo(new G4()) != Tn) && (Yo = function(kt) {
|
|
65687
|
-
var ne =
|
|
65687
|
+
var ne = ns(kt), Fe = ne == fr ? kt.constructor : void 0, Lr = Fe ? x2(Fe) : "";
|
|
65688
65688
|
if (Lr)
|
|
65689
65689
|
switch (Lr) {
|
|
65690
65690
|
case Ll:
|
|
@@ -65704,13 +65704,13 @@ var RK = { exports: {} };
|
|
|
65704
65704
|
return arguments;
|
|
65705
65705
|
}()) ? An : function(kt) {
|
|
65706
65706
|
return Jo(kt) && Ao.call(kt, "callee") && !w0.call(kt, "callee");
|
|
65707
|
-
},
|
|
65707
|
+
}, os = Array.isArray, ss = bc || function() {
|
|
65708
65708
|
return !1;
|
|
65709
65709
|
};
|
|
65710
65710
|
function La(kt) {
|
|
65711
65711
|
if (!zs(kt))
|
|
65712
65712
|
return !1;
|
|
65713
|
-
var ne =
|
|
65713
|
+
var ne = ns(kt);
|
|
65714
65714
|
return ne == ve || ne == "[object GeneratorFunction]" || ne == "[object AsyncFunction]" || ne == "[object Proxy]";
|
|
65715
65715
|
}
|
|
65716
65716
|
function V3(kt) {
|
|
@@ -65728,7 +65728,7 @@ var RK = { exports: {} };
|
|
|
65728
65728
|
return kt(ne);
|
|
65729
65729
|
};
|
|
65730
65730
|
}(Ho) : function(kt) {
|
|
65731
|
-
return Jo(kt) && V3(kt.length) && !!Nn[
|
|
65731
|
+
return Jo(kt) && V3(kt.length) && !!Nn[ns(kt)];
|
|
65732
65732
|
};
|
|
65733
65733
|
function A0(kt) {
|
|
65734
65734
|
return (ne = kt) != null && V3(ne.length) && !La(ne) ? Lc(kt) : I3(kt);
|
|
@@ -65750,7 +65750,7 @@ var RK = { exports: {} };
|
|
|
65750
65750
|
var B = { options: I = function(it) {
|
|
65751
65751
|
it === void 0 && (it = {});
|
|
65752
65752
|
var ht = Rr(it);
|
|
65753
|
-
return it.controls || (ht.controls = {}), it.displayControlsDefault === !1 ? ht.controls = Rr(
|
|
65753
|
+
return it.controls || (ht.controls = {}), it.displayControlsDefault === !1 ? ht.controls = Rr(ts, it.controls) : ht.controls = Rr(jn, it.controls), (ht = Rr(h1, ht)).styles = d1(ht.styles, "cold").concat(d1(ht.styles, "hot")), ht;
|
|
65754
65754
|
}(I) };
|
|
65755
65755
|
G = function(it, ht) {
|
|
65756
65756
|
return ht.modes = E, ht.getFeatureIdsAt = function(mt) {
|
|
@@ -65934,34 +65934,34 @@ O9 = /* @__PURE__ */ new WeakSet(), fQ = function(t) {
|
|
|
65934
65934
|
}, P6 = /* @__PURE__ */ new WeakSet(), h5 = function(t, e) {
|
|
65935
65935
|
e.id && this.__uncommittedFeatureIds.add(e.id), this.__flatmap.annotationEvent(t, e);
|
|
65936
65936
|
};
|
|
65937
|
-
var l2, c2,
|
|
65937
|
+
var l2, c2, ys, rM, QQ, Ga, C9, U2, R7, N7, d5;
|
|
65938
65938
|
class Kkt {
|
|
65939
65939
|
constructor(e, r) {
|
|
65940
|
-
Ft(this, l2, void 0), Ft(this, c2, void 0), Ft(this,
|
|
65940
|
+
Ft(this, l2, void 0), Ft(this, c2, void 0), Ft(this, ys, void 0), Ft(this, rM, void 0), Ft(this, QQ, void 0), Ft(this, Ga, void 0), Ft(this, C9, void 0), Ft(this, U2, void 0), Ft(this, R7, !1), Ft(this, N7, void 0), Ft(this, d5, void 0), Jt(this, rM, e), Jt(this, C9, void 0), Jt(this, d5, r);
|
|
65941
65941
|
}
|
|
65942
65942
|
getDefaultPosition() {
|
|
65943
65943
|
return "top-right";
|
|
65944
65944
|
}
|
|
65945
65945
|
onAdd(e) {
|
|
65946
|
-
Jt(this, C9, e), Jt(this,
|
|
65946
|
+
Jt(this, C9, e), Jt(this, ys, document.createElement("div")), J(this, ys).id = "centreline-nerve-ctrl", J(this, ys).className = "maplibregl-ctrl", Jt(this, Ga, document.createElement("div")), J(this, Ga).id = "centreline-key-text", J(this, Ga).className = "flatmap-nerve-grid centreline-nerve-grid", Jt(this, U2, J(this, d5).getNerveDetails().sort((n, i) => n.label.localeCompare(i.label)));
|
|
65947
65947
|
const r = [];
|
|
65948
65948
|
r.push('<label class="heading" for="nerve-all-nerves">PATH NERVES:</label></div><input id="nerve-all-nerves" type="checkbox" checked/>'), r.push('<label for="show-centrelines">Show centrelines?</label></div><input id="show-centrelines" type="checkbox"/>'), r.push('<label for="nerve-NO-NERVES">No associated nerves</label></div><input id="nerve-NO-NERVES" type="checkbox" checked/>');
|
|
65949
65949
|
for (const n of J(this, U2))
|
|
65950
65950
|
n.models !== "NO-NERVES" && r.push(`<label for="nerve-${n.models}">${n.label}</label></div><input id="nerve-${n.models}" type="checkbox" checked/>`);
|
|
65951
65951
|
return Jt(this, N7, new Map(J(this, U2).map((n) => [n.models, !0]))), J(this, Ga).innerHTML = r.join(`
|
|
65952
|
-
`), Jt(this, c2, J(this, U2).length), Jt(this, QQ, Math.trunc(J(this, U2).length / 2)), Jt(this, l2, document.createElement("button")), J(this, l2).id = "centreline-key-button", J(this, l2).className = "control-button text-button", J(this, l2).setAttribute("type", "button"), J(this, l2).setAttribute("aria-label", "Neuron paths associated with nerves"), J(this, l2).setAttribute("control-visible", "false"), J(this, l2).textContent = "NERVES", J(this, l2).title = "Show/hide neuron paths associated with nerves", J(this,
|
|
65952
|
+
`), Jt(this, c2, J(this, U2).length), Jt(this, QQ, Math.trunc(J(this, U2).length / 2)), Jt(this, l2, document.createElement("button")), J(this, l2).id = "centreline-key-button", J(this, l2).className = "control-button text-button", J(this, l2).setAttribute("type", "button"), J(this, l2).setAttribute("aria-label", "Neuron paths associated with nerves"), J(this, l2).setAttribute("control-visible", "false"), J(this, l2).textContent = "NERVES", J(this, l2).title = "Show/hide neuron paths associated with nerves", J(this, ys).appendChild(J(this, l2)), J(this, ys).addEventListener("click", this.onClick_.bind(this)), J(this, ys);
|
|
65953
65953
|
}
|
|
65954
65954
|
onRemove() {
|
|
65955
|
-
J(this,
|
|
65955
|
+
J(this, ys).parentNode.removeChild(J(this, ys)), Jt(this, C9, void 0);
|
|
65956
65956
|
}
|
|
65957
65957
|
onClick_(e) {
|
|
65958
65958
|
if (e.target.id === "centreline-key-button")
|
|
65959
65959
|
if (J(this, l2).getAttribute("control-visible") === "false") {
|
|
65960
|
-
J(this,
|
|
65960
|
+
J(this, ys).appendChild(J(this, Ga)), J(this, l2).setAttribute("control-visible", "true");
|
|
65961
65961
|
const r = document.getElementById("nerve-all-nerves");
|
|
65962
65962
|
r.indeterminate = J(this, c2) < J(this, U2).length && J(this, c2) > 0, J(this, Ga).focus();
|
|
65963
65963
|
} else
|
|
65964
|
-
Jt(this, Ga, J(this,
|
|
65964
|
+
Jt(this, Ga, J(this, ys).removeChild(J(this, Ga))), J(this, l2).setAttribute("control-visible", "false");
|
|
65965
65965
|
else if (e.target.tagName === "INPUT") {
|
|
65966
65966
|
if (e.target.id === "nerve-all-nerves") {
|
|
65967
65967
|
e.target.indeterminate && (e.target.checked = J(this, c2) >= J(this, QQ), e.target.indeterminate = !1), e.target.checked ? Jt(this, c2, J(this, U2).length) : Jt(this, c2, 0);
|
|
@@ -65984,7 +65984,7 @@ class Kkt {
|
|
|
65984
65984
|
e.stopPropagation();
|
|
65985
65985
|
}
|
|
65986
65986
|
}
|
|
65987
|
-
l2 = /* @__PURE__ */ new WeakMap(), c2 = /* @__PURE__ */ new WeakMap(),
|
|
65987
|
+
l2 = /* @__PURE__ */ new WeakMap(), c2 = /* @__PURE__ */ new WeakMap(), ys = /* @__PURE__ */ new WeakMap(), rM = /* @__PURE__ */ new WeakMap(), QQ = /* @__PURE__ */ new WeakMap(), Ga = /* @__PURE__ */ new WeakMap(), C9 = /* @__PURE__ */ new WeakMap(), U2 = /* @__PURE__ */ new WeakMap(), R7 = /* @__PURE__ */ new WeakMap(), N7 = /* @__PURE__ */ new WeakMap(), d5 = /* @__PURE__ */ new WeakMap();
|
|
65988
65988
|
class Ykt {
|
|
65989
65989
|
constructor(e, r) {
|
|
65990
65990
|
this._flatmap = e, this._map = void 0, this.__pathTypes = r;
|
|
@@ -94458,20 +94458,20 @@ var Mzt = P && P.__createBinding || (Object.create ? function(t, e, r, n) {
|
|
|
94458
94458
|
return t && t.__esModule ? t : { default: t };
|
|
94459
94459
|
};
|
|
94460
94460
|
Object.defineProperty(cp, "__esModule", { value: !0 });
|
|
94461
|
-
var Azt = o_(Cn), Ozt = Hzt(Vr), Czt = o_(y2), D5 = o_(mi()), g1 = o_(Qc),
|
|
94462
|
-
|
|
94461
|
+
var Azt = o_(Cn), Ozt = Hzt(Vr), Czt = o_(y2), D5 = o_(mi()), g1 = o_(Qc), q2 = {};
|
|
94462
|
+
q2.NewCommand = function(t, e) {
|
|
94463
94463
|
var r = g1.default.GetCsNameArgument(t, e), n = g1.default.GetArgCount(t, e), i = t.GetBrackets(e), o = t.GetArgument(e);
|
|
94464
|
-
g1.default.addMacro(t, r,
|
|
94464
|
+
g1.default.addMacro(t, r, q2.Macro, [o, n, i]);
|
|
94465
94465
|
};
|
|
94466
|
-
|
|
94466
|
+
q2.NewEnvironment = function(t, e) {
|
|
94467
94467
|
var r = D5.default.trimSpaces(t.GetArgument(e)), n = g1.default.GetArgCount(t, e), i = t.GetBrackets(e), o = t.GetArgument(e), s = t.GetArgument(e);
|
|
94468
|
-
g1.default.addEnvironment(t, r,
|
|
94468
|
+
g1.default.addEnvironment(t, r, q2.BeginEnv, [!0, o, s, n, i]);
|
|
94469
94469
|
};
|
|
94470
|
-
|
|
94470
|
+
q2.MacroDef = function(t, e) {
|
|
94471
94471
|
var r = g1.default.GetCSname(t, e), n = g1.default.GetTemplate(t, e, "\\" + r), i = t.GetArgument(e);
|
|
94472
|
-
n instanceof Array ? g1.default.addMacro(t, r,
|
|
94472
|
+
n instanceof Array ? g1.default.addMacro(t, r, q2.MacroWithTemplate, [i].concat(n)) : g1.default.addMacro(t, r, q2.Macro, [i, n]);
|
|
94473
94473
|
};
|
|
94474
|
-
|
|
94474
|
+
q2.Let = function(t, e) {
|
|
94475
94475
|
var r = g1.default.GetCSname(t, e), n = t.GetNext();
|
|
94476
94476
|
n === "=" && (t.i++, n = t.GetNext());
|
|
94477
94477
|
var i = t.configuration.handlers;
|
|
@@ -94506,9 +94506,9 @@ X2.Let = function(t, e) {
|
|
|
94506
94506
|
g1.default.addDelimiter(t, "\\" + r, T.char, T.attributes);
|
|
94507
94507
|
return;
|
|
94508
94508
|
}
|
|
94509
|
-
g1.default.addMacro(t, r,
|
|
94509
|
+
g1.default.addMacro(t, r, q2.Macro, [n]);
|
|
94510
94510
|
};
|
|
94511
|
-
|
|
94511
|
+
q2.MacroWithTemplate = function(t, e, r, n) {
|
|
94512
94512
|
for (var i = [], o = 4; o < arguments.length; o++)
|
|
94513
94513
|
i[o - 4] = arguments[o];
|
|
94514
94514
|
var s = parseInt(n, 10);
|
|
@@ -94522,7 +94522,7 @@ X2.MacroWithTemplate = function(t, e, r, n) {
|
|
|
94522
94522
|
}
|
|
94523
94523
|
t.string = D5.default.addArgs(t, r, t.string.slice(t.i)), t.i = 0, D5.default.checkMaxMacros(t);
|
|
94524
94524
|
};
|
|
94525
|
-
|
|
94525
|
+
q2.BeginEnv = function(t, e, r, n, i, o) {
|
|
94526
94526
|
if (e.getProperty("end") && t.stack.env.closing === e.getName()) {
|
|
94527
94527
|
delete t.stack.env.closing;
|
|
94528
94528
|
var s = t.string.slice(t.i);
|
|
@@ -94540,8 +94540,8 @@ X2.BeginEnv = function(t, e, r, n, i, o) {
|
|
|
94540
94540
|
}
|
|
94541
94541
|
return t.string = D5.default.addArgs(t, r, t.string.slice(t.i)), t.i = 0, t.itemFactory.create("beginEnv").setProperty("name", e.getName());
|
|
94542
94542
|
};
|
|
94543
|
-
|
|
94544
|
-
cp.default =
|
|
94543
|
+
q2.Macro = Czt.default.Macro;
|
|
94544
|
+
cp.default = q2;
|
|
94545
94545
|
var up = {}, kzt = P && P.__extends || /* @__PURE__ */ function() {
|
|
94546
94546
|
var t = function(e, r) {
|
|
94547
94547
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
@@ -98475,7 +98475,7 @@ var JUt = p_(Mo()), kj = p_(Cn), tGt = p_(mi()), eGt = Cr, Ij = p_(Qi), Pj = Sr,
|
|
|
98475
98475
|
pp.TextParser = rGt;
|
|
98476
98476
|
var nGt = P && P.__importDefault || function(t) {
|
|
98477
98477
|
return t && t.__esModule ? t : { default: t };
|
|
98478
|
-
}, iGt = Vr,
|
|
98478
|
+
}, iGt = Vr, ms = ao, oGt = mc, sGt = nGt(mi()), aGt = pp;
|
|
98479
98479
|
new iGt.CommandMap("textcomp-macros", {
|
|
98480
98480
|
textasciicircum: ["Insert", "^"],
|
|
98481
98481
|
textasciitilde: ["Insert", "~"],
|
|
@@ -98582,18 +98582,18 @@ new iGt.CommandMap("textcomp-macros", {
|
|
|
98582
98582
|
textdied: ["Insert", "†"],
|
|
98583
98583
|
textdivorced: ["Insert", "⚮"],
|
|
98584
98584
|
textmarried: ["Insert", "⚭"],
|
|
98585
|
-
textcentoldstyle: ["Insert", "¢",
|
|
98586
|
-
textdollaroldstyle: ["Insert", "$",
|
|
98587
|
-
textzerooldstyle: ["Insert", "0",
|
|
98588
|
-
textoneoldstyle: ["Insert", "1",
|
|
98589
|
-
texttwooldstyle: ["Insert", "2",
|
|
98590
|
-
textthreeoldstyle: ["Insert", "3",
|
|
98591
|
-
textfouroldstyle: ["Insert", "4",
|
|
98592
|
-
textfiveoldstyle: ["Insert", "5",
|
|
98593
|
-
textsixoldstyle: ["Insert", "6",
|
|
98594
|
-
textsevenoldstyle: ["Insert", "7",
|
|
98595
|
-
texteightoldstyle: ["Insert", "8",
|
|
98596
|
-
textnineoldstyle: ["Insert", "9",
|
|
98585
|
+
textcentoldstyle: ["Insert", "¢", ms.TexConstant.Variant.OLDSTYLE],
|
|
98586
|
+
textdollaroldstyle: ["Insert", "$", ms.TexConstant.Variant.OLDSTYLE],
|
|
98587
|
+
textzerooldstyle: ["Insert", "0", ms.TexConstant.Variant.OLDSTYLE],
|
|
98588
|
+
textoneoldstyle: ["Insert", "1", ms.TexConstant.Variant.OLDSTYLE],
|
|
98589
|
+
texttwooldstyle: ["Insert", "2", ms.TexConstant.Variant.OLDSTYLE],
|
|
98590
|
+
textthreeoldstyle: ["Insert", "3", ms.TexConstant.Variant.OLDSTYLE],
|
|
98591
|
+
textfouroldstyle: ["Insert", "4", ms.TexConstant.Variant.OLDSTYLE],
|
|
98592
|
+
textfiveoldstyle: ["Insert", "5", ms.TexConstant.Variant.OLDSTYLE],
|
|
98593
|
+
textsixoldstyle: ["Insert", "6", ms.TexConstant.Variant.OLDSTYLE],
|
|
98594
|
+
textsevenoldstyle: ["Insert", "7", ms.TexConstant.Variant.OLDSTYLE],
|
|
98595
|
+
texteightoldstyle: ["Insert", "8", ms.TexConstant.Variant.OLDSTYLE],
|
|
98596
|
+
textnineoldstyle: ["Insert", "9", ms.TexConstant.Variant.OLDSTYLE]
|
|
98597
98597
|
}, {
|
|
98598
98598
|
Insert: function(t, e, r, n) {
|
|
98599
98599
|
if (t instanceof aGt.TextParser) {
|
|
@@ -99256,7 +99256,7 @@ class SGt {
|
|
|
99256
99256
|
}
|
|
99257
99257
|
__featureEvent(e, r, n = {}) {
|
|
99258
99258
|
const i = Object.assign({}, r.properties, n);
|
|
99259
|
-
return XE(r) ? this._flatmap.markerEvent(e, r.id, i) : r.sourceLayer ===
|
|
99259
|
+
return XE(r) ? this._flatmap.markerEvent(e, r.id, i) : r.sourceLayer === gs ? this._flatmap.featureEvent(e, this.__pathManager.pathProperties(r)) : "properties" in r ? this._flatmap.featureEvent(e, i) : !1;
|
|
99260
99260
|
}
|
|
99261
99261
|
__resetFeatureDisplay() {
|
|
99262
99262
|
this.removeTooltip_(), this._map.getCanvas().style.cursor = "default", this.resetActiveFeatures_();
|
|
@@ -99692,12 +99692,12 @@ const HGt = [
|
|
|
99692
99692
|
class Wo {
|
|
99693
99693
|
}
|
|
99694
99694
|
dt(Wo, "FUNCTIONAL", "functional"), dt(Wo, "ANATOMICAL", "anatomical"), dt(Wo, "CENTRELINE", "centreline"), dt(Wo, "GENERIC", "flatmap");
|
|
99695
|
-
var Z9, q9, R6,
|
|
99695
|
+
var Z9, q9, R6, vs, X9, N6, g8, AQ, BM;
|
|
99696
99696
|
class IGt {
|
|
99697
99697
|
constructor(e, r, n, i) {
|
|
99698
|
-
Ft(this, AQ), Ft(this, Z9, void 0), Ft(this, q9, []), Ft(this, R6, ""), Ft(this,
|
|
99698
|
+
Ft(this, AQ), Ft(this, Z9, void 0), Ft(this, q9, []), Ft(this, R6, ""), Ft(this, vs, void 0), Ft(this, X9, void 0), Ft(this, N6, -1), Ft(this, g8, /* @__PURE__ */ new Map()), Jt(this, vs, r), Jt(this, Z9, r.url()), this.__id = n.id, this.__uuid = n.uuid, this.__details = n.details, this.__provenance = n.provenance, this.__created = n.created, this.__taxon = n.taxon, this.__biologicalSex = n.biologicalSex, this._mapNumber = n.number, J(this, q9).push(n.callback), this._layers = n.layers, this._markers = n.markers, this._options = n.options, this._pathways = n.pathways, this._resolve = i, this._map = null, this.__searchIndex = new zQt(this), this.__idToAnnotation = /* @__PURE__ */ new Map(), this.__datasetToFeatureIds = /* @__PURE__ */ new Map(), this.__modelToFeatureIds = /* @__PURE__ */ new Map(), this.__mapSourceToFeatureIds = /* @__PURE__ */ new Map(), this.__annIdToFeatureId = /* @__PURE__ */ new Map(), this.__taxonToFeatureIds = /* @__PURE__ */ new Map(), this.__featurePropertyValues = /* @__PURE__ */ new Map(), Jt(this, X9, new Pvt(n.sparcTermGraph));
|
|
99699
99699
|
const o = n.details.connectivity;
|
|
99700
|
-
o === void 0 ? Jt(this, R6, J(this,
|
|
99700
|
+
o === void 0 ? Jt(this, R6, J(this, vs).latestSource) : "knowledge-source" in o ? Jt(this, R6, o["knowledge-source"]) : "npo" in o ? Jt(this, R6, `${o.npo.release}-npo`) : Jt(this, R6, J(this, vs).latestSource);
|
|
99701
99701
|
for (const [a, u] of Object.entries(n.annotations))
|
|
99702
99702
|
this.__saveAnnotation(a, u), this.__searchIndex.indexMetadata(a, u);
|
|
99703
99703
|
for (const [a, u] of Object.entries(n.style.sources))
|
|
@@ -99739,7 +99739,7 @@ class IGt {
|
|
|
99739
99739
|
for (const r of this._options.images)
|
|
99740
99740
|
await this.addImage(r.id, r.url, "", r.options);
|
|
99741
99741
|
await Dvt(this._map);
|
|
99742
|
-
const e = await J(this,
|
|
99742
|
+
const e = await J(this, vs).loadJSON(`flatmap/${this.__uuid}/termgraph`);
|
|
99743
99743
|
J(this, X9).load(e), this._userInteractions = new SGt(this), Jt(this, N6, 1);
|
|
99744
99744
|
}
|
|
99745
99745
|
/**
|
|
@@ -100694,15 +100694,34 @@ class IGt {
|
|
|
100694
100694
|
* @return {EntityLabel[]} An ``EntityLabel`` array.
|
|
100695
100695
|
*/
|
|
100696
100696
|
async queryLabels(e) {
|
|
100697
|
-
const r = Array.isArray(e) ? e : [e];
|
|
100698
|
-
|
|
100699
|
-
|
|
100700
|
-
|
|
100701
|
-
|
|
100702
|
-
|
|
100703
|
-
|
|
100704
|
-
|
|
100705
|
-
|
|
100697
|
+
const r = [], n = Array.isArray(e) ? e : [e];
|
|
100698
|
+
if (n.length > 0)
|
|
100699
|
+
if (J(this, vs).knowledgeSchema >= nR) {
|
|
100700
|
+
const i = await J(this, vs).queryKnowledge(
|
|
100701
|
+
`select source, entity, knowledge from knowledge
|
|
100702
|
+
where (source=? or source is null)
|
|
100703
|
+
and entity in (?${", ?".repeat(n.length - 1)})`,
|
|
100704
|
+
[J(this, R6), ...n]
|
|
100705
|
+
);
|
|
100706
|
+
let o = null;
|
|
100707
|
+
for (const s of i)
|
|
100708
|
+
if (s[1] !== o) {
|
|
100709
|
+
const a = JSON.parse(s[2]);
|
|
100710
|
+
r.push({
|
|
100711
|
+
entity: s[1],
|
|
100712
|
+
label: a.label || s[1]
|
|
100713
|
+
}), o = s[1];
|
|
100714
|
+
}
|
|
100715
|
+
} else
|
|
100716
|
+
return (await J(this, vs).queryKnowledge(
|
|
100717
|
+
`select entity, label from labels
|
|
100718
|
+
where entity in (?${", ?".repeat(n.length - 1)})`,
|
|
100719
|
+
n
|
|
100720
|
+
)).map((i) => ({
|
|
100721
|
+
entity: i[0],
|
|
100722
|
+
label: i[1]
|
|
100723
|
+
}));
|
|
100724
|
+
return r;
|
|
100706
100725
|
}
|
|
100707
100726
|
/**
|
|
100708
100727
|
* Get knowledge about an entity from the flatmap's server's knowledge store.
|
|
@@ -100711,33 +100730,18 @@ class IGt {
|
|
|
100711
100730
|
* @return {Object} JSON describing the entity.
|
|
100712
100731
|
*/
|
|
100713
100732
|
async queryKnowledge(e) {
|
|
100714
|
-
const r = J(this,
|
|
100715
|
-
"select knowledge from knowledge where source=? and entity=?",
|
|
100733
|
+
const r = J(this, vs).knowledgeSchema >= nR ? await J(this, vs).queryKnowledge(
|
|
100734
|
+
"select knowledge from knowledge where (source=? or source is null) and entity=? order by source desc",
|
|
100716
100735
|
[J(this, R6), e]
|
|
100717
|
-
) : await J(this,
|
|
100736
|
+
) : await J(this, vs).queryKnowledge(
|
|
100718
100737
|
"select knowledge from knowledge where entity=?",
|
|
100719
100738
|
[e]
|
|
100720
100739
|
);
|
|
100721
|
-
return r.length ? JSON.parse(r) : {};
|
|
100722
|
-
}
|
|
100723
|
-
/**
|
|
100724
|
-
* Get publications about an entity from the flatmap's server's knowledge store.
|
|
100725
|
-
*
|
|
100726
|
-
* @param {string} entity The URI of an entity.
|
|
100727
|
-
* @return {string[]} A list of publication URIs.
|
|
100728
|
-
*/
|
|
100729
|
-
async queryPublications(e) {
|
|
100730
|
-
return (J(this, G2).knowledgeSchema >= nR ? await J(this, G2).queryKnowledge(
|
|
100731
|
-
"select distinct publication from publications where source=? and entity=?",
|
|
100732
|
-
[J(this, R6), e]
|
|
100733
|
-
) : await J(this, G2).queryKnowledge(
|
|
100734
|
-
"select distinct publication from publications where entity=?",
|
|
100735
|
-
[e]
|
|
100736
|
-
)).map((r) => r[0]);
|
|
100740
|
+
return r.length ? JSON.parse(r[0]) : {};
|
|
100737
100741
|
}
|
|
100738
100742
|
//==========================================================================
|
|
100739
100743
|
}
|
|
100740
|
-
Z9 = /* @__PURE__ */ new WeakMap(), q9 = /* @__PURE__ */ new WeakMap(), R6 = /* @__PURE__ */ new WeakMap(),
|
|
100744
|
+
Z9 = /* @__PURE__ */ new WeakMap(), q9 = /* @__PURE__ */ new WeakMap(), R6 = /* @__PURE__ */ new WeakMap(), vs = /* @__PURE__ */ new WeakMap(), X9 = /* @__PURE__ */ new WeakMap(), N6 = /* @__PURE__ */ new WeakMap(), g8 = /* @__PURE__ */ new WeakMap(), AQ = /* @__PURE__ */ new WeakSet(), BM = async function(t) {
|
|
100741
100745
|
if (!J(this, g8).has(t)) {
|
|
100742
100746
|
const e = await this.queryLabels(t);
|
|
100743
100747
|
if (e.length && "label" in e[0])
|
|
@@ -101377,7 +101381,7 @@ function GM(t, e, r = {}, n, i, o) {
|
|
|
101377
101381
|
for (const ct in nt) {
|
|
101378
101382
|
const rt = nt[ct];
|
|
101379
101383
|
if (Q2(rt) && !Fj(rt) || qM(rt))
|
|
101380
|
-
process.env.NODE_ENV !== "production" && i ? df(L.value, ct,
|
|
101384
|
+
process.env.NODE_ENV !== "production" && i ? df(L.value, ct, Z2(nt, ct)) : o || (_ && jGt(rt) && (Q2(rt) ? rt.value = _[ct] : UM(rt, _[ct])), n.state.value[t][ct] = rt), process.env.NODE_ENV !== "production" && F.state.push(ct);
|
|
101381
101385
|
else if (typeof rt == "function") {
|
|
101382
101386
|
const gt = process.env.NODE_ENV !== "production" && i ? rt : R(ct, rt);
|
|
101383
101387
|
nt[ct] = gt, process.env.NODE_ENV !== "production" && (F.actions[ct] = rt), a.actions[ct] = rt;
|
|
@@ -101402,10 +101406,10 @@ function GM(t, e, r = {}, n, i, o) {
|
|
|
101402
101406
|
const gt = ct.$state[rt], It = $.$state[rt];
|
|
101403
101407
|
typeof gt == "object" && J5(gt) && J5(It) ? dJ(gt, It) : ct.$state[rt] = It;
|
|
101404
101408
|
}
|
|
101405
|
-
df($, rt,
|
|
101409
|
+
df($, rt, Z2(ct.$state, rt));
|
|
101406
101410
|
}), Object.keys($.$state).forEach((rt) => {
|
|
101407
101411
|
rt in ct.$state || ex($, rt);
|
|
101408
|
-
}), d = !1, T = !1, n.state.value[t] =
|
|
101412
|
+
}), d = !1, T = !1, n.state.value[t] = Z2(ct._hmrPayload, "hotState"), T = !0, i1().then(() => {
|
|
101409
101413
|
d = !0;
|
|
101410
101414
|
});
|
|
101411
101415
|
for (const rt in ct._hmrPayload.actions) {
|