@teritorio/openstreetmap-logical-history-component 0.4.6 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.js +356 -329
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -587,90 +587,94 @@ function ct(e, t) {
|
|
|
587
587
|
}
|
|
588
588
|
//#endregion
|
|
589
589
|
//#region src/components/LoCha/LoChaObject.vue?vue&type=script&setup=true&lang.ts
|
|
590
|
-
var lt = { class: "locha-object" }, ut = { class: "
|
|
590
|
+
var lt = { class: "locha-object" }, ut = { class: "header-row" }, dt = { class: "before-content" }, ft = { class: "wrap" }, pt = ["href"], mt = {
|
|
591
|
+
key: 1,
|
|
592
|
+
class: "fab"
|
|
593
|
+
}, ht = { class: "fab-menu" }, gt = ["href"], _t = ["href", "target"], vt = ["href"], yt = ["href"], bt = { class: "date" }, xt = ["href", "title"], St = /* @__PURE__ */ l({
|
|
591
594
|
__name: "LoChaObject",
|
|
592
595
|
props: {
|
|
593
596
|
feature: {},
|
|
594
|
-
josmTarget: {}
|
|
597
|
+
josmTarget: {},
|
|
598
|
+
compact: { type: Boolean }
|
|
595
599
|
},
|
|
596
|
-
setup(
|
|
600
|
+
setup(n) {
|
|
597
601
|
ee((e) => ({
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
602
|
+
v1a4012b6: u.value,
|
|
603
|
+
v58477c4e: j(G).delete,
|
|
604
|
+
f6b42446: j(G).new
|
|
601
605
|
}));
|
|
602
|
-
let
|
|
603
|
-
switch (
|
|
606
|
+
let o = n, { getStatus: s } = p(et), c = t(() => s(o.feature)), l = t(() => {
|
|
607
|
+
switch (c.value) {
|
|
604
608
|
case "new": return "new";
|
|
605
609
|
case "delete": return "deleted";
|
|
606
610
|
default: return "";
|
|
607
611
|
}
|
|
608
|
-
}),
|
|
609
|
-
return (t,
|
|
610
|
-
a("div",
|
|
612
|
+
}), u = t(() => G[c.value]);
|
|
613
|
+
return (t, s) => (x(), i("article", lt, [a("div", ut, [t.$slots.before ? (x(), i(e, { key: 0 }, [a("div", dt, [E(t.$slots, "before", {}, void 0, !0)]), s[6] ||= a("span", { class: "header-arrow" }, "→", -1)], 64)) : r("", !0), a("header", null, [
|
|
614
|
+
a("div", ft, [
|
|
611
615
|
a("a", {
|
|
612
|
-
href: j(it)(
|
|
616
|
+
href: j(it)(n.feature.properties.objtype, n.feature.properties.id),
|
|
613
617
|
title: "OSM History",
|
|
614
618
|
target: "_blank",
|
|
615
|
-
onClick:
|
|
616
|
-
}, O(`${
|
|
617
|
-
|
|
619
|
+
onClick: s[0] ||= P(() => {}, ["stop"])
|
|
620
|
+
}, O(`${n.feature.properties.objtype}${n.feature.properties.id}-v${n.feature.properties.version}`), 9, pt),
|
|
621
|
+
!n.compact && (c.value === "new" || c.value === "delete") ? (x(), i("div", {
|
|
618
622
|
key: 0,
|
|
619
623
|
class: g(["status-content", {
|
|
620
|
-
"object-new":
|
|
621
|
-
"object-deleted":
|
|
624
|
+
"object-new": c.value === "new",
|
|
625
|
+
"object-deleted": c.value === "delete"
|
|
622
626
|
}])
|
|
623
|
-
}, O(
|
|
624
|
-
|
|
627
|
+
}, O(l.value), 3)) : r("", !0),
|
|
628
|
+
n.compact ? r("", !0) : (x(), i("div", mt, [s[7] ||= a("button", {
|
|
625
629
|
class: "fab-toggle",
|
|
626
630
|
type: "button",
|
|
627
631
|
title: "Tools"
|
|
628
|
-
}, " 🔧 Tools ", -1), a("div",
|
|
632
|
+
}, " 🔧 Tools ", -1), a("div", ht, [
|
|
629
633
|
a("a", {
|
|
630
|
-
href: j(it)(
|
|
634
|
+
href: j(it)(n.feature.properties.objtype, n.feature.properties.id),
|
|
631
635
|
class: "action-btn",
|
|
632
636
|
title: "Edit in OSM iD",
|
|
633
637
|
target: "_blank",
|
|
634
|
-
onClick:
|
|
635
|
-
}, " OSM iD ", 8,
|
|
638
|
+
onClick: s[1] ||= P(() => {}, ["stop"])
|
|
639
|
+
}, " OSM iD ", 8, gt),
|
|
636
640
|
a("a", {
|
|
637
|
-
href: j(ot)(
|
|
641
|
+
href: j(ot)(n.feature.properties.objtype, n.feature.properties.id),
|
|
638
642
|
class: "action-btn",
|
|
639
643
|
title: "Edit in JOSM",
|
|
640
|
-
target:
|
|
641
|
-
onClick:
|
|
642
|
-
}, " JOSM ", 8,
|
|
644
|
+
target: n.josmTarget || "hidden_josm_target",
|
|
645
|
+
onClick: s[2] ||= P(() => {}, ["stop"])
|
|
646
|
+
}, " JOSM ", 8, _t),
|
|
643
647
|
a("a", {
|
|
644
|
-
href: j(st)(
|
|
648
|
+
href: j(st)(n.feature.properties.objtype, n.feature.properties.id),
|
|
645
649
|
class: "action-btn",
|
|
646
650
|
title: "OSM Deep History",
|
|
647
651
|
target: "_blank",
|
|
648
|
-
onClick:
|
|
649
|
-
}, " Deep H ", 8,
|
|
652
|
+
onClick: s[3] ||= P(() => {}, ["stop"])
|
|
653
|
+
}, " Deep H ", 8, vt),
|
|
650
654
|
a("a", {
|
|
651
|
-
href: j(ct)(
|
|
655
|
+
href: j(ct)(n.feature.properties.objtype, n.feature.properties.id),
|
|
652
656
|
class: "action-btn",
|
|
653
657
|
title: "OSM History Viewer",
|
|
654
658
|
target: "_blank",
|
|
655
|
-
onClick:
|
|
656
|
-
}, " OSM H ", 8,
|
|
657
|
-
])])
|
|
659
|
+
onClick: s[4] ||= P(() => {}, ["stop"])
|
|
660
|
+
}, " OSM H ", 8, yt)
|
|
661
|
+
])]))
|
|
658
662
|
]),
|
|
659
|
-
a("p",
|
|
660
|
-
|
|
663
|
+
a("p", bt, " 📅 " + O(o.feature.properties.created), 1),
|
|
664
|
+
n.feature.properties.username ? (x(), i("a", {
|
|
661
665
|
key: 0,
|
|
662
|
-
href: j(at)(
|
|
663
|
-
title: `View ${
|
|
666
|
+
href: j(at)(n.feature.properties.username),
|
|
667
|
+
title: `View ${n.feature.properties.username} OSM profile`,
|
|
664
668
|
target: "_blank",
|
|
665
|
-
onClick:
|
|
666
|
-
}, " 👤" + O(
|
|
667
|
-
]), E(t.$slots, "object-detail", {}, void 0, !0)]));
|
|
669
|
+
onClick: s[5] ||= P(() => {}, ["stop"])
|
|
670
|
+
}, " 👤" + O(n.feature.properties.username), 9, xt)) : r("", !0)
|
|
671
|
+
])]), n.compact ? r("", !0) : E(t.$slots, "object-detail", { key: 0 }, void 0, !0)]));
|
|
668
672
|
}
|
|
669
|
-
}),
|
|
673
|
+
}), Ct = (e, t) => {
|
|
670
674
|
let n = e.__vccOpts || e;
|
|
671
675
|
for (let [e, r] of t) n[e] = r;
|
|
672
676
|
return n;
|
|
673
|
-
},
|
|
677
|
+
}, wt = /* @__PURE__ */ Ct(St, [["__scopeId", "data-v-3cb59a96"]]);
|
|
674
678
|
//#endregion
|
|
675
679
|
//#region node_modules/@turf/bbox/dist/esm/index.js
|
|
676
680
|
function K(e, t = {}) {
|
|
@@ -685,31 +689,31 @@ function K(e, t = {}) {
|
|
|
685
689
|
n[0] > e[0] && (n[0] = e[0]), n[1] > e[1] && (n[1] = e[1]), n[2] < e[0] && (n[2] = e[0]), n[3] < e[1] && (n[3] = e[1]);
|
|
686
690
|
}), n;
|
|
687
691
|
}
|
|
688
|
-
var
|
|
692
|
+
var Tt = K;
|
|
689
693
|
//#endregion
|
|
690
694
|
//#region node_modules/@vueuse/shared/dist/index.js
|
|
691
|
-
function
|
|
695
|
+
function Et(e, t) {
|
|
692
696
|
return d() ? (y(e, t), !0) : !1;
|
|
693
697
|
}
|
|
694
|
-
var
|
|
698
|
+
var Dt = typeof window < "u" && typeof document < "u";
|
|
695
699
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
696
|
-
var
|
|
697
|
-
function
|
|
700
|
+
var Ot = (e) => e != null, kt = Object.prototype.toString, At = (e) => kt.call(e) === "[object Object]", jt = () => {}, Mt = /* @__PURE__ */ Nt();
|
|
701
|
+
function Nt() {
|
|
698
702
|
var e, t;
|
|
699
|
-
return
|
|
703
|
+
return Dt && !!(!((e = window) == null || (e = e.navigator) == null) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
|
|
700
704
|
}
|
|
701
|
-
function
|
|
705
|
+
function Pt(...e) {
|
|
702
706
|
if (e.length !== 1) return k(...e);
|
|
703
707
|
let t = e[0];
|
|
704
708
|
return typeof t == "function" ? C(c(() => ({
|
|
705
709
|
get: t,
|
|
706
|
-
set:
|
|
710
|
+
set: jt
|
|
707
711
|
}))) : w(t);
|
|
708
712
|
}
|
|
709
|
-
function
|
|
713
|
+
function Ft(e) {
|
|
710
714
|
return Array.isArray(e) ? e : [e];
|
|
711
715
|
}
|
|
712
|
-
function
|
|
716
|
+
function It(e, t, n) {
|
|
713
717
|
return M(e, t, {
|
|
714
718
|
...n,
|
|
715
719
|
immediate: !0
|
|
@@ -717,64 +721,64 @@ function Pt(e, t, n) {
|
|
|
717
721
|
}
|
|
718
722
|
//#endregion
|
|
719
723
|
//#region node_modules/@vueuse/core/dist/index.js
|
|
720
|
-
var
|
|
721
|
-
|
|
722
|
-
function
|
|
724
|
+
var Lt = Dt ? window : void 0;
|
|
725
|
+
Dt && window.document, Dt && window.navigator, Dt && window.location;
|
|
726
|
+
function Rt(e) {
|
|
723
727
|
let t = A(e);
|
|
724
728
|
return t?.$el ?? t;
|
|
725
729
|
}
|
|
726
|
-
function
|
|
730
|
+
function zt(...e) {
|
|
727
731
|
let n = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), r = t(() => {
|
|
728
|
-
let t =
|
|
732
|
+
let t = Ft(A(e[0])).filter((e) => e != null);
|
|
729
733
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
730
734
|
});
|
|
731
|
-
return
|
|
732
|
-
r.value?.map((e) =>
|
|
733
|
-
|
|
734
|
-
|
|
735
|
+
return It(() => [
|
|
736
|
+
r.value?.map((e) => Rt(e)) ?? [Lt].filter((e) => e != null),
|
|
737
|
+
Ft(A(r.value ? e[1] : e[0])),
|
|
738
|
+
Ft(j(r.value ? e[2] : e[1])),
|
|
735
739
|
A(r.value ? e[3] : e[2])
|
|
736
740
|
], ([e, t, r, i], a, o) => {
|
|
737
741
|
if (!e?.length || !t?.length || !r?.length) return;
|
|
738
|
-
let s =
|
|
742
|
+
let s = At(i) ? { ...i } : i, c = e.flatMap((e) => t.flatMap((t) => r.map((r) => n(e, t, r, s))));
|
|
739
743
|
o(() => {
|
|
740
744
|
c.forEach((e) => e());
|
|
741
745
|
});
|
|
742
746
|
}, { flush: "post" });
|
|
743
747
|
}
|
|
744
|
-
function
|
|
748
|
+
function Bt() {
|
|
745
749
|
let e = D(!1), t = u();
|
|
746
750
|
return t && v(() => {
|
|
747
751
|
e.value = !0;
|
|
748
752
|
}, t), e;
|
|
749
753
|
}
|
|
750
754
|
/* @__NO_SIDE_EFFECTS__ */
|
|
751
|
-
function
|
|
752
|
-
let n =
|
|
755
|
+
function Vt(e) {
|
|
756
|
+
let n = Bt();
|
|
753
757
|
return t(() => (n.value, !!e()));
|
|
754
758
|
}
|
|
755
|
-
function
|
|
756
|
-
let { root: i, rootMargin: a, threshold: o = 0, window: s =
|
|
759
|
+
function Ht(e, n, r = {}) {
|
|
760
|
+
let { root: i, rootMargin: a, threshold: o = 0, window: s = Lt, immediate: c = !0 } = r, l = /* @__PURE__ */ Vt(() => s && "IntersectionObserver" in s), u = t(() => Ft(A(e)).map(Rt).filter(Ot)), d = jt, f = D(c), p = l.value ? M(() => [
|
|
757
761
|
u.value,
|
|
758
|
-
|
|
762
|
+
Rt(i),
|
|
759
763
|
A(a),
|
|
760
764
|
f.value
|
|
761
765
|
], ([e, t, r]) => {
|
|
762
766
|
if (d(), !f.value || !e.length) return;
|
|
763
767
|
let i = new IntersectionObserver(n, {
|
|
764
|
-
root:
|
|
768
|
+
root: Rt(t),
|
|
765
769
|
rootMargin: r,
|
|
766
770
|
threshold: o
|
|
767
771
|
});
|
|
768
772
|
e.forEach((e) => e && i.observe(e)), d = () => {
|
|
769
|
-
i.disconnect(), d =
|
|
773
|
+
i.disconnect(), d = jt;
|
|
770
774
|
};
|
|
771
775
|
}, {
|
|
772
776
|
immediate: c,
|
|
773
777
|
flush: "post"
|
|
774
|
-
}) :
|
|
778
|
+
}) : jt, m = () => {
|
|
775
779
|
d(), p(), f.value = !1;
|
|
776
780
|
};
|
|
777
|
-
return
|
|
781
|
+
return Et(m), {
|
|
778
782
|
isSupported: l,
|
|
779
783
|
isActive: f,
|
|
780
784
|
pause() {
|
|
@@ -786,42 +790,42 @@ function Bt(e, n, r = {}) {
|
|
|
786
790
|
stop: m
|
|
787
791
|
};
|
|
788
792
|
}
|
|
789
|
-
function
|
|
793
|
+
function Ut(e) {
|
|
790
794
|
return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
|
|
791
795
|
}
|
|
792
|
-
function
|
|
796
|
+
function Wt(e) {
|
|
793
797
|
let t = window.getComputedStyle(e);
|
|
794
798
|
if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientWidth < e.scrollWidth || t.overflowY === "auto" && e.clientHeight < e.scrollHeight) return !0;
|
|
795
799
|
{
|
|
796
800
|
let t = e.parentNode;
|
|
797
|
-
return !t || t.tagName === "BODY" ? !1 :
|
|
801
|
+
return !t || t.tagName === "BODY" ? !1 : Wt(t);
|
|
798
802
|
}
|
|
799
803
|
}
|
|
800
|
-
function
|
|
804
|
+
function Gt(e) {
|
|
801
805
|
let t = e || window.event, n = t.target;
|
|
802
|
-
return
|
|
806
|
+
return Wt(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
|
|
803
807
|
}
|
|
804
|
-
var
|
|
805
|
-
function
|
|
808
|
+
var Kt = /* @__PURE__ */ new WeakMap();
|
|
809
|
+
function qt(e, n = !1) {
|
|
806
810
|
let r = D(n), i = null, a = "";
|
|
807
|
-
M(
|
|
808
|
-
let t =
|
|
811
|
+
M(Pt(e), (e) => {
|
|
812
|
+
let t = Ut(A(e));
|
|
809
813
|
if (t) {
|
|
810
814
|
let e = t;
|
|
811
|
-
if (
|
|
815
|
+
if (Kt.get(e) || Kt.set(e, e.style.overflow), e.style.overflow !== "hidden" && (a = e.style.overflow), e.style.overflow === "hidden") return r.value = !0;
|
|
812
816
|
if (r.value) return e.style.overflow = "hidden";
|
|
813
817
|
}
|
|
814
818
|
}, { immediate: !0 });
|
|
815
819
|
let o = () => {
|
|
816
|
-
let t =
|
|
817
|
-
!t || r.value || (
|
|
818
|
-
|
|
820
|
+
let t = Ut(A(e));
|
|
821
|
+
!t || r.value || (Mt && (i = zt(t, "touchmove", (e) => {
|
|
822
|
+
Gt(e);
|
|
819
823
|
}, { passive: !1 })), t.style.overflow = "hidden", r.value = !0);
|
|
820
824
|
}, s = () => {
|
|
821
|
-
let t =
|
|
822
|
-
!t || !r.value || (
|
|
825
|
+
let t = Ut(A(e));
|
|
826
|
+
!t || !r.value || (Mt && i?.(), t.style.overflow = a, Kt.delete(t), r.value = !1);
|
|
823
827
|
};
|
|
824
|
-
return
|
|
828
|
+
return Et(s), t({
|
|
825
829
|
get() {
|
|
826
830
|
return r.value;
|
|
827
831
|
},
|
|
@@ -832,35 +836,30 @@ function Gt(e, n = !1) {
|
|
|
832
836
|
}
|
|
833
837
|
//#endregion
|
|
834
838
|
//#region node_modules/@vueuse/components/dist/index.js
|
|
835
|
-
var
|
|
836
|
-
typeof t.value == "function" ?
|
|
839
|
+
var Jt = { mounted(e, t) {
|
|
840
|
+
typeof t.value == "function" ? Ht(e, t.value) : Ht(e, ...t.value);
|
|
837
841
|
} };
|
|
838
|
-
function
|
|
842
|
+
function Yt() {
|
|
839
843
|
let e = !1, t = D(!1);
|
|
840
844
|
return (n, r) => {
|
|
841
845
|
if (t.value = r.value, e) return;
|
|
842
846
|
e = !0;
|
|
843
|
-
let i =
|
|
847
|
+
let i = qt(n, r.value);
|
|
844
848
|
M(t, (e) => i.value = e);
|
|
845
849
|
};
|
|
846
850
|
}
|
|
847
|
-
|
|
851
|
+
Yt();
|
|
848
852
|
//#endregion
|
|
849
853
|
//#region src/constants/map.ts
|
|
850
|
-
var
|
|
854
|
+
var Xt = "https://maps.cartoway.com/styles/positron/style.json", Zt = "#f4f4f5", Qt = "bbox", q = "lochas", J = {
|
|
851
855
|
Bbox: {
|
|
852
856
|
id: "bbox-layer",
|
|
853
857
|
type: "line",
|
|
854
|
-
source:
|
|
855
|
-
layout: {
|
|
856
|
-
"line-join": "miter",
|
|
857
|
-
"line-cap": "square"
|
|
858
|
-
},
|
|
858
|
+
source: Qt,
|
|
859
859
|
paint: {
|
|
860
860
|
"line-color": "#000000",
|
|
861
861
|
"line-width": 1,
|
|
862
|
-
"line-dasharray": [2, 2]
|
|
863
|
-
"line-offset": -24
|
|
862
|
+
"line-dasharray": [2, 2]
|
|
864
863
|
}
|
|
865
864
|
},
|
|
866
865
|
PolygonBorder: {
|
|
@@ -908,7 +907,7 @@ var Jt = "https://maps.cartoway.com/styles/positron/style.json", Yt = "#f4f4f5",
|
|
|
908
907
|
["get", "geom"],
|
|
909
908
|
!1
|
|
910
909
|
],
|
|
911
|
-
|
|
910
|
+
Zt,
|
|
912
911
|
[
|
|
913
912
|
"==",
|
|
914
913
|
["get", "is_new"],
|
|
@@ -949,7 +948,7 @@ var Jt = "https://maps.cartoway.com/styles/positron/style.json", Yt = "#f4f4f5",
|
|
|
949
948
|
["get", "geom"],
|
|
950
949
|
!1
|
|
951
950
|
],
|
|
952
|
-
|
|
951
|
+
Zt,
|
|
953
952
|
[
|
|
954
953
|
"==",
|
|
955
954
|
["get", "is_new"],
|
|
@@ -1075,7 +1074,7 @@ var Jt = "https://maps.cartoway.com/styles/positron/style.json", Yt = "#f4f4f5",
|
|
|
1075
1074
|
["get", "geom"],
|
|
1076
1075
|
!1
|
|
1077
1076
|
],
|
|
1078
|
-
|
|
1077
|
+
Zt,
|
|
1079
1078
|
[
|
|
1080
1079
|
"==",
|
|
1081
1080
|
["get", "is_new"],
|
|
@@ -1106,61 +1105,61 @@ var Jt = "https://maps.cartoway.com/styles/positron/style.json", Yt = "#f4f4f5",
|
|
|
1106
1105
|
};
|
|
1107
1106
|
//#endregion
|
|
1108
1107
|
//#region node_modules/@turf/bbox-clip/dist/esm/index.js
|
|
1109
|
-
function
|
|
1110
|
-
var r = e.length, i =
|
|
1108
|
+
function $t(e, t, n) {
|
|
1109
|
+
var r = e.length, i = nn(e[0], t), a = [], o, s, c;
|
|
1111
1110
|
let l, u;
|
|
1112
1111
|
for (n ||= [], o = 1; o < r; o++) {
|
|
1113
|
-
for (l = e[o - 1], u = e[o], s = c =
|
|
1112
|
+
for (l = e[o - 1], u = e[o], s = c = nn(u, t);;) if (!(i | s)) {
|
|
1114
1113
|
a.push(l), s === c ? o === r - 1 && a.push(u) : (a.push(u), o < r - 1 && (n.push(a), a = []));
|
|
1115
1114
|
break;
|
|
1116
1115
|
} else if (i & s) break;
|
|
1117
|
-
else i ? (l =
|
|
1116
|
+
else i ? (l = tn(l, u, i, t), i = nn(l, t)) : (u = tn(l, u, s, t), s = nn(u, t));
|
|
1118
1117
|
i = c;
|
|
1119
1118
|
}
|
|
1120
1119
|
return a.length && n.push(a), n;
|
|
1121
1120
|
}
|
|
1122
|
-
function
|
|
1121
|
+
function en(e, t) {
|
|
1123
1122
|
var n, r, i, a, o, s, c;
|
|
1124
1123
|
for (r = 1; r <= 8; r *= 2) {
|
|
1125
|
-
for (n = [], i = e[e.length - 1], a = !(
|
|
1124
|
+
for (n = [], i = e[e.length - 1], a = !(nn(i, t) & r), o = 0; o < e.length; o++) s = e[o], c = !(nn(s, t) & r), c !== a && n.push(tn(i, s, r, t)), c && n.push(s), i = s, a = c;
|
|
1126
1125
|
if (e = n, !e.length) break;
|
|
1127
1126
|
}
|
|
1128
1127
|
return n;
|
|
1129
1128
|
}
|
|
1130
|
-
function
|
|
1129
|
+
function tn(e, t, n, r) {
|
|
1131
1130
|
return n & 8 ? [e[0] + (t[0] - e[0]) * (r[3] - e[1]) / (t[1] - e[1]), r[3]] : n & 4 ? [e[0] + (t[0] - e[0]) * (r[1] - e[1]) / (t[1] - e[1]), r[1]] : n & 2 ? [r[2], e[1] + (t[1] - e[1]) * (r[2] - e[0]) / (t[0] - e[0])] : n & 1 ? [r[0], e[1] + (t[1] - e[1]) * (r[0] - e[0]) / (t[0] - e[0])] : null;
|
|
1132
1131
|
}
|
|
1133
|
-
function
|
|
1132
|
+
function nn(e, t) {
|
|
1134
1133
|
var n = 0;
|
|
1135
1134
|
return e[0] < t[0] ? n |= 1 : e[0] > t[2] && (n |= 2), e[1] < t[1] ? n |= 4 : e[1] > t[3] && (n |= 8), n;
|
|
1136
1135
|
}
|
|
1137
|
-
function
|
|
1136
|
+
function rn(e, t) {
|
|
1138
1137
|
let n = U(e), r = n.type, i = e.type === "Feature" ? e.properties : {}, a = n.coordinates;
|
|
1139
1138
|
switch (r) {
|
|
1140
1139
|
case "LineString":
|
|
1141
1140
|
case "MultiLineString": {
|
|
1142
1141
|
let e = [];
|
|
1143
1142
|
return r === "LineString" && (a = [a]), a.forEach((n) => {
|
|
1144
|
-
|
|
1143
|
+
$t(n, t, e);
|
|
1145
1144
|
}), e.length === 1 ? L(e[0], i) : _e(e, i);
|
|
1146
1145
|
}
|
|
1147
|
-
case "Polygon": return ge(
|
|
1148
|
-
case "MultiPolygon": return ve(a.map((e) =>
|
|
1146
|
+
case "Polygon": return ge(an(a, t), i);
|
|
1147
|
+
case "MultiPolygon": return ve(a.map((e) => an(e, t)), i);
|
|
1149
1148
|
default: throw Error("geometry " + r + " not supported");
|
|
1150
1149
|
}
|
|
1151
1150
|
}
|
|
1152
|
-
function
|
|
1151
|
+
function an(e, t) {
|
|
1153
1152
|
let n = [];
|
|
1154
1153
|
for (let r of e) {
|
|
1155
|
-
let e =
|
|
1154
|
+
let e = en(r, t);
|
|
1156
1155
|
e.length > 0 && ((e[0][0] !== e[e.length - 1][0] || e[0][1] !== e[e.length - 1][1]) && e.push(e[0]), e.length >= 4 && n.push(e));
|
|
1157
1156
|
}
|
|
1158
1157
|
return n;
|
|
1159
1158
|
}
|
|
1160
|
-
var
|
|
1159
|
+
var on = rn;
|
|
1161
1160
|
//#endregion
|
|
1162
1161
|
//#region node_modules/@turf/bbox-polygon/dist/esm/index.js
|
|
1163
|
-
function
|
|
1162
|
+
function sn(e, t = {}) {
|
|
1164
1163
|
let n = Number(e[0]), r = Number(e[1]), i = Number(e[2]), a = Number(e[3]);
|
|
1165
1164
|
if (e.length === 6) throw Error("@turf/bbox-polygon does not support BBox with 6 positions");
|
|
1166
1165
|
let o = [n, r];
|
|
@@ -1175,8 +1174,8 @@ function an(e, t = {}) {
|
|
|
1175
1174
|
id: t.id
|
|
1176
1175
|
});
|
|
1177
1176
|
}
|
|
1178
|
-
var
|
|
1179
|
-
function
|
|
1177
|
+
var cn = sn, Y = 11102230246251565e-32, X = 134217729, ln = (3 + 8 * Y) * Y;
|
|
1178
|
+
function un(e, t, n, r, i) {
|
|
1180
1179
|
let a, o, s, c, l = t[0], u = r[0], d = 0, f = 0;
|
|
1181
1180
|
u > l == u > -l ? (a = l, l = t[++d]) : (a = u, u = r[++f]);
|
|
1182
1181
|
let p = 0;
|
|
@@ -1185,7 +1184,7 @@ function cn(e, t, n, r, i) {
|
|
|
1185
1184
|
for (; f < n;) o = a + u, c = o - a, s = a - (o - c) + (u - c), u = r[++f], a = o, s !== 0 && (i[p++] = s);
|
|
1186
1185
|
return (a !== 0 || p === 0) && (i[p++] = a), p;
|
|
1187
1186
|
}
|
|
1188
|
-
function
|
|
1187
|
+
function dn(e, t) {
|
|
1189
1188
|
let n = t[0];
|
|
1190
1189
|
for (let r = 1; r < e; r++) n += t[r];
|
|
1191
1190
|
return n;
|
|
@@ -1195,26 +1194,26 @@ function Z(e) {
|
|
|
1195
1194
|
}
|
|
1196
1195
|
//#endregion
|
|
1197
1196
|
//#region node_modules/robust-predicates/esm/orient2d.js
|
|
1198
|
-
var
|
|
1199
|
-
function
|
|
1197
|
+
var fn = (3 + 16 * Y) * Y, pn = (2 + 12 * Y) * Y, mn = (9 + 64 * Y) * Y * Y, hn = Z(4), gn = Z(8), _n = Z(12), vn = Z(16), Q = Z(4);
|
|
1198
|
+
function yn(e, t, n, r, i, a, o) {
|
|
1200
1199
|
let s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T = e - i, E = n - i, D = t - a, O = r - a;
|
|
1201
|
-
b = T * O, f = X * T, p = f - (f - T), m = T - p, f = X * O, h = f - (f - O), g = O - h, x = m * g - (b - p * h - m * h - p * g), S = D * E, f = X * D, p = f - (f - D), m = D - p, f = X * E, h = f - (f - E), g = E - h, C = m * g - (S - p * h - m * h - p * g), _ = x - C, d = x - _,
|
|
1202
|
-
let k =
|
|
1203
|
-
if (k >= A || -k >= A || (d = e - T, s = e - (T + d) + (d - i), d = n - E, l = n - (E + d) + (d - i), d = t - D, c = t - (D + d) + (d - a), d = r - O, u = r - (O + d) + (d - a), s === 0 && c === 0 && l === 0 && u === 0) || (A =
|
|
1200
|
+
b = T * O, f = X * T, p = f - (f - T), m = T - p, f = X * O, h = f - (f - O), g = O - h, x = m * g - (b - p * h - m * h - p * g), S = D * E, f = X * D, p = f - (f - D), m = D - p, f = X * E, h = f - (f - E), g = E - h, C = m * g - (S - p * h - m * h - p * g), _ = x - C, d = x - _, hn[0] = x - (_ + d) + (d - C), v = b + _, d = v - b, y = b - (v - d) + (_ - d), _ = y - S, d = y - _, hn[1] = y - (_ + d) + (d - S), w = v + _, d = w - v, hn[2] = v - (w - d) + (_ - d), hn[3] = w;
|
|
1201
|
+
let k = dn(4, hn), A = pn * o;
|
|
1202
|
+
if (k >= A || -k >= A || (d = e - T, s = e - (T + d) + (d - i), d = n - E, l = n - (E + d) + (d - i), d = t - D, c = t - (D + d) + (d - a), d = r - O, u = r - (O + d) + (d - a), s === 0 && c === 0 && l === 0 && u === 0) || (A = mn * o + ln * Math.abs(k), k += T * u + O * s - (D * l + E * c), k >= A || -k >= A)) return k;
|
|
1204
1203
|
b = s * O, f = X * s, p = f - (f - s), m = s - p, f = X * O, h = f - (f - O), g = O - h, x = m * g - (b - p * h - m * h - p * g), S = c * E, f = X * c, p = f - (f - c), m = c - p, f = X * E, h = f - (f - E), g = E - h, C = m * g - (S - p * h - m * h - p * g), _ = x - C, d = x - _, Q[0] = x - (_ + d) + (d - C), v = b + _, d = v - b, y = b - (v - d) + (_ - d), _ = y - S, d = y - _, Q[1] = y - (_ + d) + (d - S), w = v + _, d = w - v, Q[2] = v - (w - d) + (_ - d), Q[3] = w;
|
|
1205
|
-
let j =
|
|
1204
|
+
let j = un(4, hn, 4, Q, gn);
|
|
1206
1205
|
b = T * u, f = X * T, p = f - (f - T), m = T - p, f = X * u, h = f - (f - u), g = u - h, x = m * g - (b - p * h - m * h - p * g), S = D * l, f = X * D, p = f - (f - D), m = D - p, f = X * l, h = f - (f - l), g = l - h, C = m * g - (S - p * h - m * h - p * g), _ = x - C, d = x - _, Q[0] = x - (_ + d) + (d - C), v = b + _, d = v - b, y = b - (v - d) + (_ - d), _ = y - S, d = y - _, Q[1] = y - (_ + d) + (d - S), w = v + _, d = w - v, Q[2] = v - (w - d) + (_ - d), Q[3] = w;
|
|
1207
|
-
let ee =
|
|
1208
|
-
return b = s * u, f = X * s, p = f - (f - s), m = s - p, f = X * u, h = f - (f - u), g = u - h, x = m * g - (b - p * h - m * h - p * g), S = c * l, f = X * c, p = f - (f - c), m = c - p, f = X * l, h = f - (f - l), g = l - h, C = m * g - (S - p * h - m * h - p * g), _ = x - C, d = x - _, Q[0] = x - (_ + d) + (d - C), v = b + _, d = v - b, y = b - (v - d) + (_ - d), _ = y - S, d = y - _, Q[1] = y - (_ + d) + (d - S), w = v + _, d = w - v, Q[2] = v - (w - d) + (_ - d), Q[3] = w,
|
|
1206
|
+
let ee = un(j, gn, 4, Q, _n);
|
|
1207
|
+
return b = s * u, f = X * s, p = f - (f - s), m = s - p, f = X * u, h = f - (f - u), g = u - h, x = m * g - (b - p * h - m * h - p * g), S = c * l, f = X * c, p = f - (f - c), m = c - p, f = X * l, h = f - (f - l), g = l - h, C = m * g - (S - p * h - m * h - p * g), _ = x - C, d = x - _, Q[0] = x - (_ + d) + (d - C), v = b + _, d = v - b, y = b - (v - d) + (_ - d), _ = y - S, d = y - _, Q[1] = y - (_ + d) + (d - S), w = v + _, d = w - v, Q[2] = v - (w - d) + (_ - d), Q[3] = w, vn[un(ee, _n, 4, Q, vn) - 1];
|
|
1209
1208
|
}
|
|
1210
|
-
function
|
|
1209
|
+
function bn(e, t, n, r, i, a) {
|
|
1211
1210
|
let o = (t - a) * (n - i), s = (e - i) * (r - a), c = o - s, l = Math.abs(o + s);
|
|
1212
|
-
return Math.abs(c) >=
|
|
1211
|
+
return Math.abs(c) >= fn * l ? c : -yn(e, t, n, r, i, a, l);
|
|
1213
1212
|
}
|
|
1214
1213
|
(7 + 56 * Y) * Y, (3 + 28 * Y) * Y, (26 + 288 * Y) * Y * Y, Z(4), Z(4), Z(4), Z(4), Z(4), Z(4), Z(4), Z(4), Z(4), Z(8), Z(8), Z(8), Z(4), Z(8), Z(8), Z(8), Z(12), Z(192), Z(192), (10 + 96 * Y) * Y, (4 + 48 * Y) * Y, (44 + 576 * Y) * Y * Y, Z(4), Z(4), Z(4), Z(4), Z(4), Z(4), Z(4), Z(4), Z(8), Z(8), Z(8), Z(8), Z(8), Z(8), Z(8), Z(8), Z(8), Z(4), Z(4), Z(4), Z(8), Z(16), Z(16), Z(16), Z(32), Z(32), Z(48), Z(64), Z(1152), Z(1152), (16 + 224 * Y) * Y, (5 + 72 * Y) * Y, (71 + 1408 * Y) * Y * Y, Z(4), Z(4), Z(4), Z(4), Z(4), Z(4), Z(4), Z(4), Z(4), Z(4), Z(24), Z(24), Z(24), Z(24), Z(24), Z(24), Z(24), Z(24), Z(24), Z(24), Z(1152), Z(1152), Z(1152), Z(1152), Z(1152), Z(2304), Z(2304), Z(3456), Z(5760), Z(8), Z(8), Z(8), Z(16), Z(24), Z(48), Z(48), Z(96), Z(192), Z(384), Z(384), Z(384), Z(768), Z(96), Z(96), Z(96), Z(1152);
|
|
1215
1214
|
//#endregion
|
|
1216
1215
|
//#region node_modules/point-in-polygon-hao/dist/esm/index.js
|
|
1217
|
-
function
|
|
1216
|
+
function xn(e, t) {
|
|
1218
1217
|
var n, r, i = 0, a, o, s, c, l, u, d, f = e[0], p = e[1], m = t.length;
|
|
1219
1218
|
for (n = 0; n < m; n++) {
|
|
1220
1219
|
r = 0;
|
|
@@ -1224,7 +1223,7 @@ function yn(e, t) {
|
|
|
1224
1223
|
if (d = h[r + 1], c = d[0] - f, l = d[1] - p, s === 0 && l === 0) {
|
|
1225
1224
|
if (c <= 0 && o >= 0 || o <= 0 && c >= 0) return 0;
|
|
1226
1225
|
} else if (l >= 0 && s <= 0 || l <= 0 && s >= 0) {
|
|
1227
|
-
if (a =
|
|
1226
|
+
if (a = bn(o, c, s, l, 0, 0), a === 0) return 0;
|
|
1228
1227
|
(a > 0 && l > 0 && s <= 0 || a < 0 && l <= 0 && s > 0) && i++;
|
|
1229
1228
|
}
|
|
1230
1229
|
u = d, s = l, o = c;
|
|
@@ -1234,26 +1233,26 @@ function yn(e, t) {
|
|
|
1234
1233
|
}
|
|
1235
1234
|
//#endregion
|
|
1236
1235
|
//#region node_modules/@turf/boolean-point-in-polygon/dist/esm/index.js
|
|
1237
|
-
function
|
|
1236
|
+
function Sn(e, t, n = {}) {
|
|
1238
1237
|
if (!e) throw Error("point is required");
|
|
1239
1238
|
if (!t) throw Error("polygon is required");
|
|
1240
1239
|
let r = V(e), i = U(t), a = i.type, o = t.bbox, s = i.coordinates;
|
|
1241
|
-
if (o &&
|
|
1240
|
+
if (o && Cn(r, o) === !1) return !1;
|
|
1242
1241
|
a === "Polygon" && (s = [s]);
|
|
1243
1242
|
let c = !1;
|
|
1244
1243
|
for (var l = 0; l < s.length; ++l) {
|
|
1245
|
-
let e =
|
|
1244
|
+
let e = xn(r, s[l]);
|
|
1246
1245
|
if (e === 0) return !n.ignoreBoundary;
|
|
1247
1246
|
e && (c = !0);
|
|
1248
1247
|
}
|
|
1249
1248
|
return c;
|
|
1250
1249
|
}
|
|
1251
|
-
function
|
|
1250
|
+
function Cn(e, t) {
|
|
1252
1251
|
return t[0] <= e[0] && t[1] <= e[1] && t[2] >= e[0] && t[3] >= e[1];
|
|
1253
1252
|
}
|
|
1254
1253
|
//#endregion
|
|
1255
1254
|
//#region node_modules/@turf/geojson-rbush/dist/esm/index.js
|
|
1256
|
-
var
|
|
1255
|
+
var wn = /* @__PURE__ */ pe((/* @__PURE__ */ de(((e, t) => {
|
|
1257
1256
|
(function(n, r) {
|
|
1258
1257
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n ||= self).RBush = r();
|
|
1259
1258
|
})(e, function() {
|
|
@@ -1471,7 +1470,7 @@ var Sn = /* @__PURE__ */ pe((/* @__PURE__ */ de(((e, t) => {
|
|
|
1471
1470
|
}, r;
|
|
1472
1471
|
});
|
|
1473
1472
|
})))(), 1);
|
|
1474
|
-
function
|
|
1473
|
+
function Tn(e) {
|
|
1475
1474
|
var t;
|
|
1476
1475
|
if (e.bbox) t = e.bbox;
|
|
1477
1476
|
else if (Array.isArray(e) && e.length === 4) t = e;
|
|
@@ -1491,9 +1490,9 @@ function Cn(e) {
|
|
|
1491
1490
|
maxY: t[3]
|
|
1492
1491
|
};
|
|
1493
1492
|
}
|
|
1494
|
-
var
|
|
1493
|
+
var En = class {
|
|
1495
1494
|
constructor(e = 9) {
|
|
1496
|
-
this.tree = new
|
|
1495
|
+
this.tree = new wn.default(e), this.tree.toBBox = Tn;
|
|
1497
1496
|
}
|
|
1498
1497
|
insert(e) {
|
|
1499
1498
|
if (e.type !== "Feature") throw Error("invalid feature");
|
|
@@ -1517,10 +1516,10 @@ var wn = class {
|
|
|
1517
1516
|
return this.tree.clear(), this;
|
|
1518
1517
|
}
|
|
1519
1518
|
search(e) {
|
|
1520
|
-
return R(this.tree.search(
|
|
1519
|
+
return R(this.tree.search(Tn(e)));
|
|
1521
1520
|
}
|
|
1522
1521
|
collides(e) {
|
|
1523
|
-
return this.tree.collides(
|
|
1522
|
+
return this.tree.collides(Tn(e));
|
|
1524
1523
|
}
|
|
1525
1524
|
all() {
|
|
1526
1525
|
return R(this.tree.all());
|
|
@@ -1532,12 +1531,12 @@ var wn = class {
|
|
|
1532
1531
|
return this.tree.fromJSON(e), this;
|
|
1533
1532
|
}
|
|
1534
1533
|
};
|
|
1535
|
-
function
|
|
1536
|
-
return new
|
|
1534
|
+
function Dn(e) {
|
|
1535
|
+
return new En(e);
|
|
1537
1536
|
}
|
|
1538
1537
|
//#endregion
|
|
1539
1538
|
//#region node_modules/@turf/truncate/dist/esm/index.js
|
|
1540
|
-
function
|
|
1539
|
+
function On(e, t) {
|
|
1541
1540
|
if (t ??= {}, !Se(t)) throw Error("options is invalid");
|
|
1542
1541
|
var n = t.precision, r = t.coordinates, i = t.mutate;
|
|
1543
1542
|
if (n = n == null || isNaN(n) ? 6 : n, r = r == null || isNaN(r) ? 3 : r, !e) throw Error("<geojson> is required");
|
|
@@ -1546,24 +1545,24 @@ function En(e, t) {
|
|
|
1546
1545
|
(i === !1 || i === void 0) && (e = JSON.parse(JSON.stringify(e)));
|
|
1547
1546
|
var a = 10 ** n;
|
|
1548
1547
|
return Ce(e, function(e) {
|
|
1549
|
-
|
|
1548
|
+
kn(e, a, r);
|
|
1550
1549
|
}), e;
|
|
1551
1550
|
}
|
|
1552
|
-
function
|
|
1551
|
+
function kn(e, t, n) {
|
|
1553
1552
|
e.length > n && e.splice(n, e.length);
|
|
1554
1553
|
for (var r = 0; r < e.length; r++) e[r] = Math.round(e[r] * t) / t;
|
|
1555
1554
|
return e;
|
|
1556
1555
|
}
|
|
1557
1556
|
//#endregion
|
|
1558
1557
|
//#region node_modules/@turf/line-segment/dist/esm/index.js
|
|
1559
|
-
function
|
|
1558
|
+
function An(e) {
|
|
1560
1559
|
if (!e) throw Error("geojson is required");
|
|
1561
1560
|
let t = [];
|
|
1562
1561
|
return Oe(e, (e) => {
|
|
1563
|
-
|
|
1562
|
+
jn(e, t);
|
|
1564
1563
|
}), R(t);
|
|
1565
1564
|
}
|
|
1566
|
-
function
|
|
1565
|
+
function jn(e, t) {
|
|
1567
1566
|
let n = [], r = e.geometry;
|
|
1568
1567
|
if (r !== null) {
|
|
1569
1568
|
switch (r.type) {
|
|
@@ -1573,20 +1572,20 @@ function kn(e, t) {
|
|
|
1573
1572
|
case "LineString": n = [H(r)];
|
|
1574
1573
|
}
|
|
1575
1574
|
n.forEach((n) => {
|
|
1576
|
-
|
|
1575
|
+
Mn(n, e.properties).forEach((e) => {
|
|
1577
1576
|
e.id = t.length, t.push(e);
|
|
1578
1577
|
});
|
|
1579
1578
|
});
|
|
1580
1579
|
}
|
|
1581
1580
|
}
|
|
1582
|
-
function
|
|
1581
|
+
function Mn(e, t) {
|
|
1583
1582
|
let n = [];
|
|
1584
1583
|
return e.reduce((e, r) => {
|
|
1585
1584
|
let i = L([e, r], t);
|
|
1586
|
-
return i.bbox =
|
|
1585
|
+
return i.bbox = Nn(e, r), n.push(i), r;
|
|
1587
1586
|
}), n;
|
|
1588
1587
|
}
|
|
1589
|
-
function
|
|
1588
|
+
function Nn(e, t) {
|
|
1590
1589
|
let n = e[0], r = e[1], i = t[0], a = t[1];
|
|
1591
1590
|
return [
|
|
1592
1591
|
n < i ? n : i,
|
|
@@ -1597,8 +1596,8 @@ function jn(e, t) {
|
|
|
1597
1596
|
}
|
|
1598
1597
|
//#endregion
|
|
1599
1598
|
//#region node_modules/sweepline-intersections/dist/sweeplineIntersections.esm.js
|
|
1600
|
-
var
|
|
1601
|
-
constructor(e = [], t =
|
|
1599
|
+
var Pn = class {
|
|
1600
|
+
constructor(e = [], t = Fn) {
|
|
1602
1601
|
if (this.data = e, this.length = this.data.length, this.compare = t, this.length > 0) for (let e = (this.length >> 1) - 1; e >= 0; e--) this._down(e);
|
|
1603
1602
|
}
|
|
1604
1603
|
push(e) {
|
|
@@ -1631,16 +1630,16 @@ var Mn = class {
|
|
|
1631
1630
|
t[e] = i;
|
|
1632
1631
|
}
|
|
1633
1632
|
};
|
|
1634
|
-
function
|
|
1633
|
+
function Fn(e, t) {
|
|
1635
1634
|
return e < t ? -1 : e > t ? 1 : 0;
|
|
1636
1635
|
}
|
|
1637
|
-
function
|
|
1636
|
+
function In(e, t) {
|
|
1638
1637
|
return e.p.x > t.p.x ? 1 : e.p.x < t.p.x ? -1 : e.p.y === t.p.y || e.p.y > t.p.y ? 1 : -1;
|
|
1639
1638
|
}
|
|
1640
|
-
function
|
|
1639
|
+
function Ln(e, t) {
|
|
1641
1640
|
return e.rightSweepEvent.p.x > t.rightSweepEvent.p.x ? 1 : e.rightSweepEvent.p.x < t.rightSweepEvent.p.x ? -1 : e.rightSweepEvent.p.y === t.rightSweepEvent.p.y || e.rightSweepEvent.p.y < t.rightSweepEvent.p.y ? 1 : -1;
|
|
1642
1641
|
}
|
|
1643
|
-
var
|
|
1642
|
+
var Rn = class {
|
|
1644
1643
|
constructor(e, t, n, r) {
|
|
1645
1644
|
this.p = {
|
|
1646
1645
|
x: e[0],
|
|
@@ -1651,50 +1650,50 @@ var In = class {
|
|
|
1651
1650
|
return this.p.x === e.p.x && this.p.y === e.p.y;
|
|
1652
1651
|
}
|
|
1653
1652
|
};
|
|
1654
|
-
function
|
|
1653
|
+
function zn(e, t) {
|
|
1655
1654
|
if (e.type === "FeatureCollection") {
|
|
1656
1655
|
let n = e.features;
|
|
1657
|
-
for (let e = 0; e < n.length; e++)
|
|
1658
|
-
} else
|
|
1656
|
+
for (let e = 0; e < n.length; e++) Un(n[e], t);
|
|
1657
|
+
} else Un(e, t);
|
|
1659
1658
|
}
|
|
1660
|
-
var
|
|
1661
|
-
function
|
|
1659
|
+
var Bn = 0, Vn = 0, Hn = 0;
|
|
1660
|
+
function Un(e, t) {
|
|
1662
1661
|
let n = e.type === "Feature" ? e.geometry : e, r = n.coordinates;
|
|
1663
1662
|
(n.type === "Polygon" || n.type === "MultiLineString") && (r = [r]), n.type === "LineString" && (r = [[r]]);
|
|
1664
1663
|
for (let e = 0; e < r.length; e++) for (let n = 0; n < r[e].length; n++) {
|
|
1665
1664
|
let i = r[e][n][0], a = null;
|
|
1666
|
-
|
|
1665
|
+
Vn += 1;
|
|
1667
1666
|
for (let o = 0; o < r[e][n].length - 1; o++) {
|
|
1668
1667
|
a = r[e][n][o + 1];
|
|
1669
|
-
let s = new
|
|
1670
|
-
s.otherEvent = c, c.otherEvent = s,
|
|
1668
|
+
let s = new Rn(i, Bn, Vn, Hn), c = new Rn(a, Bn, Vn, Hn + 1);
|
|
1669
|
+
s.otherEvent = c, c.otherEvent = s, In(s, c) > 0 ? (c.isLeftEndpoint = !0, s.isLeftEndpoint = !1) : (s.isLeftEndpoint = !0, c.isLeftEndpoint = !1), t.push(s), t.push(c), i = a, Hn += 1;
|
|
1671
1670
|
}
|
|
1672
1671
|
}
|
|
1673
|
-
|
|
1672
|
+
Bn += 1;
|
|
1674
1673
|
}
|
|
1675
|
-
var
|
|
1674
|
+
var Wn = class {
|
|
1676
1675
|
constructor(e) {
|
|
1677
1676
|
this.leftSweepEvent = e, this.rightSweepEvent = e.otherEvent;
|
|
1678
1677
|
}
|
|
1679
1678
|
};
|
|
1680
|
-
function
|
|
1679
|
+
function Gn(e, t) {
|
|
1681
1680
|
if (e === null || t === null || e.leftSweepEvent.ringId === t.leftSweepEvent.ringId && (e.rightSweepEvent.isSamePoint(t.leftSweepEvent) || e.rightSweepEvent.isSamePoint(t.leftSweepEvent) || e.rightSweepEvent.isSamePoint(t.rightSweepEvent) || e.leftSweepEvent.isSamePoint(t.leftSweepEvent) || e.leftSweepEvent.isSamePoint(t.rightSweepEvent))) return !1;
|
|
1682
1681
|
let n = e.leftSweepEvent.p.x, r = e.leftSweepEvent.p.y, i = e.rightSweepEvent.p.x, a = e.rightSweepEvent.p.y, o = t.leftSweepEvent.p.x, s = t.leftSweepEvent.p.y, c = t.rightSweepEvent.p.x, l = t.rightSweepEvent.p.y, u = (l - s) * (i - n) - (c - o) * (a - r), d = (c - o) * (r - s) - (l - s) * (n - o), f = (i - n) * (r - s) - (a - r) * (n - o);
|
|
1683
1682
|
if (u === 0) return !1;
|
|
1684
1683
|
let p = d / u, m = f / u;
|
|
1685
1684
|
return p >= 0 && p <= 1 && m >= 0 && m <= 1 ? [n + p * (i - n), r + p * (a - r)] : !1;
|
|
1686
1685
|
}
|
|
1687
|
-
function
|
|
1686
|
+
function Kn(e, t) {
|
|
1688
1687
|
t ||= !1;
|
|
1689
|
-
let n = [], r = new
|
|
1688
|
+
let n = [], r = new Pn([], Ln);
|
|
1690
1689
|
for (; e.length;) {
|
|
1691
1690
|
let i = e.pop();
|
|
1692
1691
|
if (i.isLeftEndpoint) {
|
|
1693
|
-
let e = new
|
|
1692
|
+
let e = new Wn(i);
|
|
1694
1693
|
for (let a = 0; a < r.data.length; a++) {
|
|
1695
1694
|
let o = r.data[a];
|
|
1696
1695
|
if (t && o.leftSweepEvent.featureId === i.featureId) continue;
|
|
1697
|
-
let s =
|
|
1696
|
+
let s = Gn(e, o);
|
|
1698
1697
|
s !== !1 && n.push(s);
|
|
1699
1698
|
}
|
|
1700
1699
|
r.push(e);
|
|
@@ -1702,17 +1701,17 @@ function Wn(e, t) {
|
|
|
1702
1701
|
}
|
|
1703
1702
|
return n;
|
|
1704
1703
|
}
|
|
1705
|
-
function
|
|
1706
|
-
let n = new
|
|
1707
|
-
return
|
|
1704
|
+
function qn(e, t) {
|
|
1705
|
+
let n = new Pn([], In);
|
|
1706
|
+
return zn(e, n), Kn(n, t);
|
|
1708
1707
|
}
|
|
1709
1708
|
//#endregion
|
|
1710
1709
|
//#region node_modules/@turf/line-intersect/dist/esm/index.js
|
|
1711
|
-
var
|
|
1712
|
-
function
|
|
1710
|
+
var Jn = qn;
|
|
1711
|
+
function Yn(e, t, n = {}) {
|
|
1713
1712
|
let { removeDuplicates: r = !0, ignoreSelfIntersections: i = !0 } = n, a = [];
|
|
1714
1713
|
e.type === "FeatureCollection" ? a = a.concat(e.features) : e.type === "Feature" ? a.push(e) : (e.type === "LineString" || e.type === "Polygon" || e.type === "MultiLineString" || e.type === "MultiPolygon") && a.push(I(e)), t.type === "FeatureCollection" ? a = a.concat(t.features) : t.type === "Feature" ? a.push(t) : (t.type === "LineString" || t.type === "Polygon" || t.type === "MultiLineString" || t.type === "MultiPolygon") && a.push(I(t));
|
|
1715
|
-
let o =
|
|
1714
|
+
let o = Jn(R(a), i), s = [];
|
|
1716
1715
|
if (r) {
|
|
1717
1716
|
let e = {};
|
|
1718
1717
|
o.forEach((t) => {
|
|
@@ -1724,23 +1723,23 @@ function qn(e, t, n = {}) {
|
|
|
1724
1723
|
}
|
|
1725
1724
|
//#endregion
|
|
1726
1725
|
//#region node_modules/@turf/distance/dist/esm/index.js
|
|
1727
|
-
function
|
|
1726
|
+
function Xn(e, t, n = {}) {
|
|
1728
1727
|
var r = V(e), i = V(t), a = z(i[1] - r[1]), o = z(i[0] - r[0]), s = z(r[1]), c = z(i[1]), l = Math.sin(a / 2) ** 2 + Math.sin(o / 2) ** 2 * Math.cos(s) * Math.cos(c);
|
|
1729
1728
|
return ye(2 * Math.atan2(Math.sqrt(l), Math.sqrt(1 - l)), n.units);
|
|
1730
1729
|
}
|
|
1731
1730
|
//#endregion
|
|
1732
1731
|
//#region node_modules/@turf/nearest-point-on-line/dist/esm/index.js
|
|
1733
|
-
var
|
|
1732
|
+
var Zn = Object.defineProperty, Qn = Object.defineProperties, $n = Object.getOwnPropertyDescriptors, er = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable, rr = (e, t, n) => t in e ? Zn(e, t, {
|
|
1734
1733
|
enumerable: !0,
|
|
1735
1734
|
configurable: !0,
|
|
1736
1735
|
writable: !0,
|
|
1737
1736
|
value: n
|
|
1738
|
-
}) : e[t] = n,
|
|
1739
|
-
for (var n in t ||= {})
|
|
1740
|
-
if (
|
|
1737
|
+
}) : e[t] = n, ir = (e, t) => {
|
|
1738
|
+
for (var n in t ||= {}) tr.call(t, n) && rr(e, n, t[n]);
|
|
1739
|
+
if (er) for (var n of er(t)) nr.call(t, n) && rr(e, n, t[n]);
|
|
1741
1740
|
return e;
|
|
1742
|
-
},
|
|
1743
|
-
function
|
|
1741
|
+
}, ar = (e, t) => Qn(e, $n(t));
|
|
1742
|
+
function or(e, t, n = {}) {
|
|
1744
1743
|
if (!e || !t) throw Error("lines and inputPoint are required arguments");
|
|
1745
1744
|
let r = V(t), i = he([Infinity, Infinity], {
|
|
1746
1745
|
lineStringIndex: -1,
|
|
@@ -1758,11 +1757,11 @@ function ir(e, t, n = {}) {
|
|
|
1758
1757
|
s !== l && (s = l, o = 0);
|
|
1759
1758
|
let u = H(e);
|
|
1760
1759
|
for (let e = 0; e < u.length - 1; e++) {
|
|
1761
|
-
let s = he(u[e]), c = V(s), d = he(u[e + 1]), f = V(d), p =
|
|
1762
|
-
f[0] === r[0] && f[1] === r[1] ? [m, h] = [f, !0] : c[0] === r[0] && c[1] === r[1] ? [m, h] = [c, !1] : [m, h] =
|
|
1763
|
-
let g =
|
|
1760
|
+
let s = he(u[e]), c = V(s), d = he(u[e + 1]), f = V(d), p = Xn(s, d, n), m, h;
|
|
1761
|
+
f[0] === r[0] && f[1] === r[1] ? [m, h] = [f, !0] : c[0] === r[0] && c[1] === r[1] ? [m, h] = [c, !1] : [m, h] = fr(c, f, r);
|
|
1762
|
+
let g = Xn(t, m, n);
|
|
1764
1763
|
if (g < i.properties.pointDistance) {
|
|
1765
|
-
let t =
|
|
1764
|
+
let t = Xn(s, m, n);
|
|
1766
1765
|
i = he(m, {
|
|
1767
1766
|
lineStringIndex: l,
|
|
1768
1767
|
segmentIndex: h ? e + 1 : e,
|
|
@@ -1774,7 +1773,7 @@ function ir(e, t, n = {}) {
|
|
|
1774
1773
|
index: -1,
|
|
1775
1774
|
location: -1,
|
|
1776
1775
|
dist: Infinity
|
|
1777
|
-
}), i.properties =
|
|
1776
|
+
}), i.properties = ar(ir({}, i.properties), {
|
|
1778
1777
|
multiFeatureIndex: i.properties.lineStringIndex,
|
|
1779
1778
|
index: i.properties.segmentIndex,
|
|
1780
1779
|
location: i.properties.totalDistance,
|
|
@@ -1789,7 +1788,7 @@ function $(e, t) {
|
|
|
1789
1788
|
let [n, r, i] = e, [a, o, s] = t;
|
|
1790
1789
|
return n * a + r * o + i * s;
|
|
1791
1790
|
}
|
|
1792
|
-
function
|
|
1791
|
+
function sr(e, t) {
|
|
1793
1792
|
let [n, r, i] = e, [a, o, s] = t;
|
|
1794
1793
|
return [
|
|
1795
1794
|
r * s - i * o,
|
|
@@ -1797,18 +1796,18 @@ function ar(e, t) {
|
|
|
1797
1796
|
n * o - r * a
|
|
1798
1797
|
];
|
|
1799
1798
|
}
|
|
1800
|
-
function
|
|
1799
|
+
function cr(e) {
|
|
1801
1800
|
return Math.sqrt(e[0] ** 2 + e[1] ** 2 + e[2] ** 2);
|
|
1802
1801
|
}
|
|
1803
|
-
function
|
|
1804
|
-
let t =
|
|
1802
|
+
function lr(e) {
|
|
1803
|
+
let t = cr(e);
|
|
1805
1804
|
return [
|
|
1806
1805
|
e[0] / t,
|
|
1807
1806
|
e[1] / t,
|
|
1808
1807
|
e[2] / t
|
|
1809
1808
|
];
|
|
1810
1809
|
}
|
|
1811
|
-
function
|
|
1810
|
+
function ur(e) {
|
|
1812
1811
|
let t = z(e[1]), n = z(e[0]);
|
|
1813
1812
|
return [
|
|
1814
1813
|
Math.cos(t) * Math.cos(n),
|
|
@@ -1816,144 +1815,144 @@ function cr(e) {
|
|
|
1816
1815
|
Math.sin(t)
|
|
1817
1816
|
];
|
|
1818
1817
|
}
|
|
1819
|
-
function
|
|
1818
|
+
function dr(e) {
|
|
1820
1819
|
let [t, n, r] = e, i = Math.min(Math.max(r, -1), 1), a = be(Math.asin(i));
|
|
1821
1820
|
return [be(Math.atan2(n, t)), a];
|
|
1822
1821
|
}
|
|
1823
|
-
function
|
|
1824
|
-
let r =
|
|
1822
|
+
function fr(e, t, n) {
|
|
1823
|
+
let r = ur(e), i = ur(t), a = ur(n), o = sr(r, i);
|
|
1825
1824
|
if (o[0] === 0 && o[1] === 0 && o[2] === 0) return $(r, i) > 0 ? [[...t], !0] : [[...n], !1];
|
|
1826
|
-
let s =
|
|
1825
|
+
let s = sr(o, a);
|
|
1827
1826
|
if (s[0] === 0 && s[1] === 0 && s[2] === 0) return [[...t], !0];
|
|
1828
|
-
let c = sr(
|
|
1827
|
+
let c = lr(sr(s, o)), l = [
|
|
1829
1828
|
-c[0],
|
|
1830
1829
|
-c[1],
|
|
1831
1830
|
-c[2]
|
|
1832
|
-
], u = $(a, c) > $(a, l) ? c : l, d =
|
|
1833
|
-
return f >= 0 && p >= 0 ? [
|
|
1831
|
+
], u = $(a, c) > $(a, l) ? c : l, d = lr(o), f = $(sr(r, u), d), p = $(sr(u, i), d);
|
|
1832
|
+
return f >= 0 && p >= 0 ? [dr(u), !1] : $(r, a) > $(i, a) ? [[...e], !1] : [[...t], !0];
|
|
1834
1833
|
}
|
|
1835
1834
|
//#endregion
|
|
1836
1835
|
//#region node_modules/@turf/line-split/dist/esm/index.js
|
|
1837
|
-
function
|
|
1836
|
+
function pr(e, t) {
|
|
1838
1837
|
if (!e) throw Error("line is required");
|
|
1839
1838
|
if (!t) throw Error("splitter is required");
|
|
1840
1839
|
let n = Ue(e), r = Ue(t);
|
|
1841
1840
|
if (n !== "LineString") throw Error("line must be LineString");
|
|
1842
1841
|
if (r === "FeatureCollection") throw Error("splitter cannot be a FeatureCollection");
|
|
1843
1842
|
if (r === "GeometryCollection") throw Error("splitter cannot be a GeometryCollection");
|
|
1844
|
-
var i =
|
|
1843
|
+
var i = On(t, { precision: 7 });
|
|
1845
1844
|
switch (e.type !== "Feature" && (e = I(e)), r) {
|
|
1846
|
-
case "Point": return
|
|
1847
|
-
case "MultiPoint": return
|
|
1845
|
+
case "Point": return hr(e, i);
|
|
1846
|
+
case "MultiPoint": return mr(e, i);
|
|
1848
1847
|
case "LineString":
|
|
1849
1848
|
case "MultiLineString":
|
|
1850
1849
|
case "Polygon":
|
|
1851
|
-
case "MultiPolygon": return
|
|
1850
|
+
case "MultiPolygon": return mr(e, Yn(e, i, { ignoreSelfIntersections: !0 }));
|
|
1852
1851
|
}
|
|
1853
1852
|
}
|
|
1854
|
-
function
|
|
1855
|
-
var n = [], r =
|
|
1853
|
+
function mr(e, t) {
|
|
1854
|
+
var n = [], r = Dn();
|
|
1856
1855
|
return Oe(t, function(t) {
|
|
1857
1856
|
if (n.forEach(function(e, t) {
|
|
1858
1857
|
e.id = t;
|
|
1859
|
-
}), !n.length) n =
|
|
1858
|
+
}), !n.length) n = hr(e, t).features, r.load(R(n));
|
|
1860
1859
|
else {
|
|
1861
1860
|
var i = r.search(t);
|
|
1862
1861
|
if (i.features.length) {
|
|
1863
|
-
var a =
|
|
1862
|
+
var a = gr(t, i);
|
|
1864
1863
|
n = n.filter(function(e) {
|
|
1865
1864
|
return e.id !== a.id;
|
|
1866
|
-
}), r.remove(a), we(
|
|
1865
|
+
}), r.remove(a), we(hr(a, t), function(e) {
|
|
1867
1866
|
n.push(e), r.insert(e);
|
|
1868
1867
|
});
|
|
1869
1868
|
}
|
|
1870
1869
|
}
|
|
1871
1870
|
}), R(n);
|
|
1872
1871
|
}
|
|
1873
|
-
function
|
|
1872
|
+
function hr(e, t) {
|
|
1874
1873
|
var n = [], r = H(e)[0], i = H(e)[e.geometry.coordinates.length - 1];
|
|
1875
|
-
if (
|
|
1876
|
-
var a =
|
|
1874
|
+
if (_r(r, V(t)) || _r(i, V(t))) return R([e]);
|
|
1875
|
+
var a = Dn(), o = An(e);
|
|
1877
1876
|
a.load(o);
|
|
1878
1877
|
var s = a.search(t);
|
|
1879
1878
|
if (!s.features.length) return R([e]);
|
|
1880
|
-
var c =
|
|
1879
|
+
var c = gr(t, s), l = Te(o, function(e, r, i) {
|
|
1881
1880
|
var a = H(r)[1], o = V(t);
|
|
1882
|
-
return i === c.id ? (e.push(o), n.push(L(e)),
|
|
1881
|
+
return i === c.id ? (e.push(o), n.push(L(e)), _r(o, a) ? [o] : [o, a]) : (e.push(a), e);
|
|
1883
1882
|
}, [r]);
|
|
1884
1883
|
return l.length > 1 && n.push(L(l)), R(n);
|
|
1885
1884
|
}
|
|
1886
|
-
function
|
|
1885
|
+
function gr(e, t) {
|
|
1887
1886
|
if (!t.features.length) throw Error("lines must contain features");
|
|
1888
1887
|
if (t.features.length === 1) return t.features[0];
|
|
1889
1888
|
var n, r = Infinity;
|
|
1890
1889
|
return we(t, function(t) {
|
|
1891
|
-
var i =
|
|
1890
|
+
var i = or(t, e).properties.dist;
|
|
1892
1891
|
i < r && (n = t, r = i);
|
|
1893
1892
|
}), n;
|
|
1894
1893
|
}
|
|
1895
|
-
function
|
|
1894
|
+
function _r(e, t) {
|
|
1896
1895
|
return e[0] === t[0] && e[1] === t[1];
|
|
1897
1896
|
}
|
|
1898
1897
|
//#endregion
|
|
1899
1898
|
//#region node_modules/@turf/boolean-contains/dist/esm/index.js
|
|
1900
|
-
function
|
|
1899
|
+
function vr(e, t) {
|
|
1901
1900
|
let n = U(e), r = U(t), i = n.type, a = r.type, o = n.coordinates, s = r.coordinates;
|
|
1902
1901
|
switch (i) {
|
|
1903
1902
|
case "Point": switch (a) {
|
|
1904
|
-
case "Point": return
|
|
1903
|
+
case "Point": return Ar(o, s);
|
|
1905
1904
|
default: throw Error("feature2 " + a + " geometry not supported");
|
|
1906
1905
|
}
|
|
1907
1906
|
case "MultiPoint": switch (a) {
|
|
1908
|
-
case "Point": return
|
|
1909
|
-
case "MultiPoint": return
|
|
1907
|
+
case "Point": return xr(n, r);
|
|
1908
|
+
case "MultiPoint": return Sr(n, r);
|
|
1910
1909
|
default: throw Error("feature2 " + a + " geometry not supported");
|
|
1911
1910
|
}
|
|
1912
1911
|
case "LineString": switch (a) {
|
|
1913
1912
|
case "Point": return W(r, n, { ignoreEndVertices: !0 });
|
|
1914
|
-
case "LineString": return
|
|
1915
|
-
case "MultiPoint": return
|
|
1913
|
+
case "LineString": return Tr(n, r);
|
|
1914
|
+
case "MultiPoint": return Cr(n, r);
|
|
1916
1915
|
default: throw Error("feature2 " + a + " geometry not supported");
|
|
1917
1916
|
}
|
|
1918
1917
|
case "Polygon": switch (a) {
|
|
1919
|
-
case "Point": return
|
|
1920
|
-
case "LineString": return
|
|
1921
|
-
case "Polygon": return
|
|
1922
|
-
case "MultiPoint": return
|
|
1923
|
-
case "MultiPolygon": return
|
|
1918
|
+
case "Point": return Sn(r, n, { ignoreBoundary: !0 });
|
|
1919
|
+
case "LineString": return Dr(n, r);
|
|
1920
|
+
case "Polygon": return Or(n, r);
|
|
1921
|
+
case "MultiPoint": return wr(n, r);
|
|
1922
|
+
case "MultiPolygon": return br(n, r);
|
|
1924
1923
|
default: throw Error("feature2 " + a + " geometry not supported");
|
|
1925
1924
|
}
|
|
1926
1925
|
case "MultiPolygon": switch (a) {
|
|
1927
|
-
case "Polygon": return
|
|
1926
|
+
case "Polygon": return yr(n, r);
|
|
1928
1927
|
default: throw Error("feature2 " + a + " geometry not supported");
|
|
1929
1928
|
}
|
|
1930
1929
|
default: throw Error("feature1 " + i + " geometry not supported");
|
|
1931
1930
|
}
|
|
1932
1931
|
}
|
|
1933
|
-
function
|
|
1934
|
-
return e.coordinates.some((e) =>
|
|
1932
|
+
function yr(e, t) {
|
|
1933
|
+
return e.coordinates.some((e) => Or({
|
|
1935
1934
|
type: "Polygon",
|
|
1936
1935
|
coordinates: e
|
|
1937
1936
|
}, t));
|
|
1938
1937
|
}
|
|
1939
|
-
function
|
|
1940
|
-
return t.coordinates.every((t) =>
|
|
1938
|
+
function br(e, t) {
|
|
1939
|
+
return t.coordinates.every((t) => Or(e, {
|
|
1941
1940
|
type: "Polygon",
|
|
1942
1941
|
coordinates: t
|
|
1943
1942
|
}));
|
|
1944
1943
|
}
|
|
1945
|
-
function
|
|
1944
|
+
function xr(e, t) {
|
|
1946
1945
|
let n, r = !1;
|
|
1947
|
-
for (n = 0; n < e.coordinates.length; n++) if (
|
|
1946
|
+
for (n = 0; n < e.coordinates.length; n++) if (Ar(e.coordinates[n], t.coordinates)) {
|
|
1948
1947
|
r = !0;
|
|
1949
1948
|
break;
|
|
1950
1949
|
}
|
|
1951
1950
|
return r;
|
|
1952
1951
|
}
|
|
1953
|
-
function
|
|
1952
|
+
function Sr(e, t) {
|
|
1954
1953
|
for (let n of t.coordinates) {
|
|
1955
1954
|
let t = !1;
|
|
1956
|
-
for (let r of e.coordinates) if (
|
|
1955
|
+
for (let r of e.coordinates) if (Ar(n, r)) {
|
|
1957
1956
|
t = !0;
|
|
1958
1957
|
break;
|
|
1959
1958
|
}
|
|
@@ -1961,16 +1960,16 @@ function br(e, t) {
|
|
|
1961
1960
|
}
|
|
1962
1961
|
return !0;
|
|
1963
1962
|
}
|
|
1964
|
-
function
|
|
1963
|
+
function Cr(e, t) {
|
|
1965
1964
|
let n = !1;
|
|
1966
1965
|
for (let r of t.coordinates) if (W(r, e, { ignoreEndVertices: !0 }) && (n = !0), !W(r, e)) return !1;
|
|
1967
1966
|
return !!n;
|
|
1968
1967
|
}
|
|
1969
|
-
function
|
|
1970
|
-
for (let n of t.coordinates) if (!
|
|
1968
|
+
function wr(e, t) {
|
|
1969
|
+
for (let n of t.coordinates) if (!Sn(n, e, { ignoreBoundary: !0 })) return !1;
|
|
1971
1970
|
return !0;
|
|
1972
1971
|
}
|
|
1973
|
-
function
|
|
1972
|
+
function Tr(e, t) {
|
|
1974
1973
|
let n = !1;
|
|
1975
1974
|
for (let r of t.coordinates) if (W({
|
|
1976
1975
|
type: "Point",
|
|
@@ -1981,58 +1980,58 @@ function Cr(e, t) {
|
|
|
1981
1980
|
}, e, { ignoreEndVertices: !1 })) return !1;
|
|
1982
1981
|
return n;
|
|
1983
1982
|
}
|
|
1984
|
-
function
|
|
1983
|
+
function Er(e, t) {
|
|
1985
1984
|
let n = e.coordinates, r = [];
|
|
1986
1985
|
for (let e = 0; e < n.length - 1; e++) {
|
|
1987
|
-
let i = L([n[e], n[e + 1]]), a =
|
|
1986
|
+
let i = L([n[e], n[e + 1]]), a = pr(i, I(t));
|
|
1988
1987
|
a.features.length === 0 ? r.push(i) : r.push(...a.features);
|
|
1989
1988
|
}
|
|
1990
1989
|
return R(r);
|
|
1991
1990
|
}
|
|
1992
|
-
function
|
|
1993
|
-
if (!
|
|
1994
|
-
for (let n of t.coordinates) if (!
|
|
1995
|
-
let n = !1, r =
|
|
1991
|
+
function Dr(e, t) {
|
|
1992
|
+
if (!kr(K(e), K(t))) return !1;
|
|
1993
|
+
for (let n of t.coordinates) if (!Sn(n, e)) return !1;
|
|
1994
|
+
let n = !1, r = Er(t, e);
|
|
1996
1995
|
for (let t of r.features) {
|
|
1997
|
-
let r =
|
|
1998
|
-
if (!
|
|
1999
|
-
!n &&
|
|
1996
|
+
let r = jr(t.geometry.coordinates[0], t.geometry.coordinates[1]);
|
|
1997
|
+
if (!Sn(r, e)) return !1;
|
|
1998
|
+
!n && Sn(r, e, { ignoreBoundary: !0 }) && (n = !0);
|
|
2000
1999
|
}
|
|
2001
2000
|
return n;
|
|
2002
2001
|
}
|
|
2003
|
-
function
|
|
2004
|
-
if (e.type === "Feature" && e.geometry === null || t.type === "Feature" && t.geometry === null || !
|
|
2002
|
+
function Or(e, t) {
|
|
2003
|
+
if (e.type === "Feature" && e.geometry === null || t.type === "Feature" && t.geometry === null || !kr(K(e), K(t))) return !1;
|
|
2005
2004
|
let n = U(t).coordinates;
|
|
2006
|
-
for (let t of n) for (let n of t) if (!
|
|
2005
|
+
for (let t of n) for (let n of t) if (!Sn(n, e)) return !1;
|
|
2007
2006
|
return !0;
|
|
2008
2007
|
}
|
|
2009
|
-
function
|
|
2008
|
+
function kr(e, t) {
|
|
2010
2009
|
return !(e[0] > t[0] || e[2] < t[2] || e[1] > t[1] || e[3] < t[3]);
|
|
2011
2010
|
}
|
|
2012
|
-
function
|
|
2011
|
+
function Ar(e, t) {
|
|
2013
2012
|
return e[0] === t[0] && e[1] === t[1];
|
|
2014
2013
|
}
|
|
2015
|
-
function
|
|
2014
|
+
function jr(e, t) {
|
|
2016
2015
|
return [(e[0] + t[0]) / 2, (e[1] + t[1]) / 2];
|
|
2017
2016
|
}
|
|
2018
|
-
var
|
|
2017
|
+
var Mr = vr;
|
|
2019
2018
|
//#endregion
|
|
2020
2019
|
//#region node_modules/@turf/envelope/dist/esm/index.js
|
|
2021
|
-
function
|
|
2022
|
-
return
|
|
2020
|
+
function Nr(e) {
|
|
2021
|
+
return sn(K(e));
|
|
2023
2022
|
}
|
|
2024
|
-
var
|
|
2023
|
+
var Pr = Nr;
|
|
2025
2024
|
//#endregion
|
|
2026
2025
|
//#region src/utils/geom.ts
|
|
2027
|
-
function
|
|
2026
|
+
function Fr(e) {
|
|
2028
2027
|
return e.geometry && (e.geometry.type === "LineString" || e.geometry.type === "MultiLineString" || e.geometry.type === "Polygon" || e.geometry.type === "MultiPolygon");
|
|
2029
2028
|
}
|
|
2030
|
-
function
|
|
2031
|
-
let n = e.map((e) => e.geometry ? e.geometry.type === "Point" || e.geometry.type === "MultiPoint" ?
|
|
2032
|
-
return n.length === 0 ? null :
|
|
2029
|
+
function Ir(e, t) {
|
|
2030
|
+
let n = e.map((e) => e.geometry ? e.geometry.type === "Point" || e.geometry.type === "MultiPoint" ? Mr(cn(t), e) ? e : null : Fr(e) ? on(e, t) : null : null).filter((e) => e !== null);
|
|
2031
|
+
return n.length === 0 ? null : Pr(R(n));
|
|
2033
2032
|
}
|
|
2034
|
-
var
|
|
2035
|
-
function
|
|
2033
|
+
var Lr = .001;
|
|
2034
|
+
function Rr(e, t) {
|
|
2036
2035
|
return [
|
|
2037
2036
|
e[0] - t,
|
|
2038
2037
|
e[1] - t,
|
|
@@ -2040,15 +2039,15 @@ function Lr(e, t) {
|
|
|
2040
2039
|
e[3] + t
|
|
2041
2040
|
];
|
|
2042
2041
|
}
|
|
2043
|
-
function Rr(e) {
|
|
2044
|
-
return Lr(e, Fr);
|
|
2045
|
-
}
|
|
2046
2042
|
function zr(e) {
|
|
2047
|
-
return
|
|
2043
|
+
return Rr(e, Lr);
|
|
2044
|
+
}
|
|
2045
|
+
function Br(e) {
|
|
2046
|
+
return e[0] === e[2] || e[1] === e[3];
|
|
2048
2047
|
}
|
|
2049
2048
|
//#endregion
|
|
2050
2049
|
//#region src/components/VMap.vue?vue&type=script&setup=true&lang.ts
|
|
2051
|
-
var
|
|
2050
|
+
var Vr = ["id"], Hr = /* @__PURE__ */ Ct(/* @__PURE__ */ l({
|
|
2052
2051
|
__name: "VMap",
|
|
2053
2052
|
props: {
|
|
2054
2053
|
id: {},
|
|
@@ -2056,7 +2055,7 @@ var Br = ["id"], Vr = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2056
2055
|
bbox: {}
|
|
2057
2056
|
},
|
|
2058
2057
|
setup(e) {
|
|
2059
|
-
let t = e, n = p(nt,
|
|
2058
|
+
let t = e, n = p(nt, Xt), r = {
|
|
2060
2059
|
top: 60,
|
|
2061
2060
|
left: 60,
|
|
2062
2061
|
right: 60,
|
|
@@ -2069,10 +2068,10 @@ var Br = ["id"], Vr = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2069
2068
|
});
|
|
2070
2069
|
function u() {
|
|
2071
2070
|
if (!a.value) {
|
|
2072
|
-
l = t.bbox ?
|
|
2073
|
-
let e = l ?
|
|
2071
|
+
l = t.bbox ? zr(t.bbox) : void 0;
|
|
2072
|
+
let e = l ? Ir(t.features, l) : R(t.features);
|
|
2074
2073
|
if (e) {
|
|
2075
|
-
let i =
|
|
2074
|
+
let i = Tt(e), o = [[i[0], i[1]], [i[2], i[3]]];
|
|
2076
2075
|
a.value = new ie.Map({
|
|
2077
2076
|
hash: !1,
|
|
2078
2077
|
container: `map-${t.id}`,
|
|
@@ -2091,7 +2090,7 @@ var Br = ["id"], Vr = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2091
2090
|
}
|
|
2092
2091
|
function d(e) {
|
|
2093
2092
|
if (!a.value) throw Error("Call initMap() function first.");
|
|
2094
|
-
a.value.addSource(
|
|
2093
|
+
a.value.addSource(Qt, {
|
|
2095
2094
|
type: "geojson",
|
|
2096
2095
|
data: {
|
|
2097
2096
|
type: "Feature",
|
|
@@ -2111,7 +2110,7 @@ var Br = ["id"], Vr = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2111
2110
|
}
|
|
2112
2111
|
function f() {
|
|
2113
2112
|
if (!a.value) throw Error("Call initMap() function first.");
|
|
2114
|
-
|
|
2113
|
+
t.bbox && !Br(t.bbox) && d(t.bbox), a.value.addSource(q, {
|
|
2115
2114
|
type: "geojson",
|
|
2116
2115
|
data: {
|
|
2117
2116
|
type: "FeatureCollection",
|
|
@@ -2151,21 +2150,21 @@ var Br = ["id"], Vr = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2151
2150
|
return (t, n) => re((x(), i("div", {
|
|
2152
2151
|
id: `map-${e.id}`,
|
|
2153
2152
|
class: "v-map"
|
|
2154
|
-
}, null, 8,
|
|
2153
|
+
}, null, 8, Vr)), [[j(Jt), S]]);
|
|
2155
2154
|
}
|
|
2156
|
-
}), [["__scopeId", "data-v-
|
|
2155
|
+
}), [["__scopeId", "data-v-d8de1c60"]]), Ur = ["id"], Wr = { class: "group-header" }, Gr = { class: "header-start" }, Kr = ["href"], qr = ["title"], Jr = {
|
|
2157
2156
|
key: 0,
|
|
2158
2157
|
class: "name-before"
|
|
2159
|
-
},
|
|
2158
|
+
}, Yr = {
|
|
2160
2159
|
key: 1,
|
|
2161
2160
|
class: "name-separator"
|
|
2162
|
-
},
|
|
2161
|
+
}, Xr = {
|
|
2163
2162
|
key: 2,
|
|
2164
2163
|
class: "name-after"
|
|
2165
|
-
},
|
|
2164
|
+
}, Zr = { class: "header-center" }, Qr = { class: "header-end" }, $r = { class: "group-content" }, ei = {
|
|
2166
2165
|
key: 0,
|
|
2167
2166
|
class: "content-start"
|
|
2168
|
-
},
|
|
2167
|
+
}, ti = { key: 0 }, ni = { key: 1 }, ri = /* @__PURE__ */ Ct(/* @__PURE__ */ l({
|
|
2169
2168
|
__name: "LoChaGroup",
|
|
2170
2169
|
props: {
|
|
2171
2170
|
id: {},
|
|
@@ -2175,11 +2174,11 @@ var Br = ["id"], Vr = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2175
2174
|
},
|
|
2176
2175
|
emits: ["navigate"],
|
|
2177
2176
|
setup(n) {
|
|
2178
|
-
ee((e) => ({
|
|
2177
|
+
ee((e) => ({ v62f70e54: u.value }));
|
|
2179
2178
|
let c = n, l = te(), u = t(() => l["content-start"] ? "repeat(4, minmax(0, 1fr))" : "repeat(3, minmax(0, 1fr))"), d = p(tt), { loCha: f, getBeforeFeatures: m, getAfterFeatures: h } = p(et);
|
|
2180
2179
|
if (!f.value) throw Error("LoCha is empty.");
|
|
2181
|
-
let
|
|
2182
|
-
let e = [...new Set(
|
|
2180
|
+
let _ = t(() => m(c.features)), v = t(() => h(c.features)), y = t(() => _.value.length > 0 && v.value.length === 0), b = t(() => _.value.length === 0 && v.value.length > 0), S = t(() => _.value.length === 1 && v.value.length === 1 && !!v.value[0]?.properties.deleted), C = t(() => _.value.length === 1 && v.value.length === 1 && !v.value[0]?.properties.deleted), w = t(() => {
|
|
2181
|
+
let e = [...new Set(_.value.map((e) => e.properties.tags?.name).filter(Boolean))], t = [...new Set(v.value.map((e) => e.properties.tags?.name).filter(Boolean))], n = e.length > 0 ? e.join(", ") : null, r = t.length > 0 ? t.join(", ") : null;
|
|
2183
2182
|
return n === r ? {
|
|
2184
2183
|
before: null,
|
|
2185
2184
|
after: r
|
|
@@ -2187,31 +2186,34 @@ var Br = ["id"], Vr = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2187
2186
|
before: n,
|
|
2188
2187
|
after: r
|
|
2189
2188
|
};
|
|
2190
|
-
}),
|
|
2191
|
-
let { before: e, after: t } =
|
|
2189
|
+
}), D = t(() => {
|
|
2190
|
+
let { before: e, after: t } = w.value;
|
|
2192
2191
|
return e && t ? `${e} → ${t}` : e ?? t ?? void 0;
|
|
2193
2192
|
});
|
|
2194
2193
|
return (t, l) => (x(), i("div", {
|
|
2195
2194
|
id: n.id,
|
|
2196
2195
|
class: "locha-group"
|
|
2197
|
-
}, [a("div",
|
|
2198
|
-
a("div",
|
|
2196
|
+
}, [a("div", Wr, [
|
|
2197
|
+
a("div", Gr, [a("a", {
|
|
2199
2198
|
class: "anchor-button",
|
|
2200
2199
|
href: `#${n.id}`,
|
|
2201
2200
|
onClick: l[0] ||= P((e) => t.$emit("navigate", `#${n.id}`), ["prevent"])
|
|
2202
|
-
}, "🔗", 8,
|
|
2201
|
+
}, "🔗", 8, Kr), a("h3", {
|
|
2203
2202
|
class: "group-name",
|
|
2204
|
-
title:
|
|
2203
|
+
title: D.value
|
|
2205
2204
|
}, [
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
], 8,
|
|
2210
|
-
a("div",
|
|
2211
|
-
a("div",
|
|
2212
|
-
]), a("div",
|
|
2213
|
-
t.$slots["content-start"] ? (x(), i("div",
|
|
2214
|
-
|
|
2205
|
+
w.value.before ? (x(), i("span", Jr, O(w.value.before), 1)) : r("", !0),
|
|
2206
|
+
w.value.before ? (x(), i("span", Yr, " → ")) : r("", !0),
|
|
2207
|
+
w.value.after ? (x(), i("span", Xr, O(w.value.after), 1)) : r("", !0)
|
|
2208
|
+
], 8, qr)]),
|
|
2209
|
+
a("div", Zr, [E(t.$slots, "header-center", { index: n.index }, void 0, !0)]),
|
|
2210
|
+
a("div", Qr, [E(t.$slots, "header-end", { index: n.index }, void 0, !0)])
|
|
2211
|
+
]), a("div", $r, [
|
|
2212
|
+
t.$slots["content-start"] ? (x(), i("div", ei, [E(t.$slots, "content-start", { index: n.index }, void 0, !0)])) : r("", !0),
|
|
2213
|
+
!C.value && !b.value && !S.value ? (x(), i("div", {
|
|
2214
|
+
key: 1,
|
|
2215
|
+
class: g(["before-list", { "list--wide": y.value }])
|
|
2216
|
+
}, [a("ul", null, [(x(!0), i(e, null, T(_.value, (e) => (x(), i("li", { key: e.id }, [s(wt, {
|
|
2215
2217
|
feature: e,
|
|
2216
2218
|
"josm-target": n.josmTarget
|
|
2217
2219
|
}, o({ _: 2 }, [t.$slots["object-detail"] ? {
|
|
@@ -2221,8 +2223,33 @@ var Br = ["id"], Vr = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2221
2223
|
index: n.index
|
|
2222
2224
|
}, void 0, !0)]),
|
|
2223
2225
|
key: "0"
|
|
2224
|
-
} : void 0]), 1032, ["feature", "josm-target"])]))), 128))])]),
|
|
2225
|
-
|
|
2226
|
+
} : void 0]), 1032, ["feature", "josm-target"])]))), 128))])], 2)) : r("", !0),
|
|
2227
|
+
y.value ? r("", !0) : (x(), i("div", {
|
|
2228
|
+
key: 2,
|
|
2229
|
+
class: g(["after-list", { "list--wide": b.value || C.value || S.value }])
|
|
2230
|
+
}, [a("ul", null, [S.value ? (x(), i("li", ti, [s(wt, {
|
|
2231
|
+
feature: v.value[0],
|
|
2232
|
+
"josm-target": n.josmTarget
|
|
2233
|
+
}, {
|
|
2234
|
+
"object-detail": N(() => [E(t.$slots, "object-detail", {
|
|
2235
|
+
feature: _.value[0],
|
|
2236
|
+
index: n.index
|
|
2237
|
+
}, void 0, !0)]),
|
|
2238
|
+
_: 3
|
|
2239
|
+
}, 8, ["feature", "josm-target"])])) : C.value ? (x(), i("li", ni, [s(wt, {
|
|
2240
|
+
feature: v.value[0],
|
|
2241
|
+
"josm-target": n.josmTarget
|
|
2242
|
+
}, {
|
|
2243
|
+
before: N(() => [s(wt, {
|
|
2244
|
+
feature: _.value[0],
|
|
2245
|
+
compact: !0
|
|
2246
|
+
}, null, 8, ["feature"])]),
|
|
2247
|
+
"object-detail": N(() => [E(t.$slots, "object-detail", {
|
|
2248
|
+
feature: v.value[0],
|
|
2249
|
+
index: n.index
|
|
2250
|
+
}, void 0, !0)]),
|
|
2251
|
+
_: 3
|
|
2252
|
+
}, 8, ["feature", "josm-target"])])) : (x(!0), i(e, { key: 2 }, T(v.value, (e) => (x(), i("li", { key: e.id }, [s(wt, {
|
|
2226
2253
|
feature: e,
|
|
2227
2254
|
"josm-target": n.josmTarget
|
|
2228
2255
|
}, o({ _: 2 }, [t.$slots["object-detail"] ? {
|
|
@@ -2232,8 +2259,8 @@ var Br = ["id"], Vr = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2232
2259
|
index: n.index
|
|
2233
2260
|
}, void 0, !0)]),
|
|
2234
2261
|
key: "0"
|
|
2235
|
-
} : void 0]), 1032, ["feature", "josm-target"])]))), 128))])]),
|
|
2236
|
-
s(
|
|
2262
|
+
} : void 0]), 1032, ["feature", "josm-target"])]))), 128))])], 2)),
|
|
2263
|
+
s(Hr, {
|
|
2237
2264
|
id: `${j(d)}-${c.index}`,
|
|
2238
2265
|
features: n.features,
|
|
2239
2266
|
bbox: j(f)?.bbox
|
|
@@ -2242,12 +2269,12 @@ var Br = ["id"], Vr = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2242
2269
|
"features",
|
|
2243
2270
|
"bbox"
|
|
2244
2271
|
])
|
|
2245
|
-
])], 8,
|
|
2272
|
+
])], 8, Ur));
|
|
2246
2273
|
}
|
|
2247
|
-
}), [["__scopeId", "data-v-
|
|
2274
|
+
}), [["__scopeId", "data-v-f0d155b8"]]);
|
|
2248
2275
|
//#endregion
|
|
2249
2276
|
//#region src/utils/scrollToSection.ts
|
|
2250
|
-
function
|
|
2277
|
+
function ii(e, t = {}) {
|
|
2251
2278
|
let { container: n = document, behavior: r = "smooth", block: i = "start", inline: a = "nearest" } = t, o = e.startsWith("#") ? e.slice(1) : e, s = n.querySelector(`#${CSS.escape(o)}`);
|
|
2252
2279
|
return s ? (s.scrollIntoView({
|
|
2253
2280
|
behavior: r,
|
|
@@ -2257,7 +2284,7 @@ function ri(e, t = {}) {
|
|
|
2257
2284
|
}
|
|
2258
2285
|
//#endregion
|
|
2259
2286
|
//#region src/components/LoCha/LoChaGroupList.vue?vue&type=script&setup=true&lang.ts
|
|
2260
|
-
var
|
|
2287
|
+
var ai = ["name"], oi = /* @__PURE__ */ Ct(/* @__PURE__ */ l({
|
|
2261
2288
|
__name: "LoChaGroupList",
|
|
2262
2289
|
props: { hash: {} },
|
|
2263
2290
|
setup(t) {
|
|
@@ -2284,7 +2311,7 @@ var ii = ["name"], ai = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2284
2311
|
hash: e,
|
|
2285
2312
|
instanceId: c
|
|
2286
2313
|
} })), h(() => {
|
|
2287
|
-
y = !1,
|
|
2314
|
+
y = !1, ii(e, { container: d.value ?? void 0 });
|
|
2288
2315
|
});
|
|
2289
2316
|
}
|
|
2290
2317
|
function C(e) {
|
|
@@ -2292,7 +2319,7 @@ var ii = ["name"], ai = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2292
2319
|
t !== c && (u.value = void 0);
|
|
2293
2320
|
}
|
|
2294
2321
|
return M(() => n.hash, (e) => {
|
|
2295
|
-
y || (u.value = e, e && h(() =>
|
|
2322
|
+
y || (u.value = e, e && h(() => ii(e, { container: d.value ?? void 0 })));
|
|
2296
2323
|
}, { immediate: !0 }), v(() => {
|
|
2297
2324
|
window.addEventListener("locha-navigate", C);
|
|
2298
2325
|
let e = window.location.hash;
|
|
@@ -2306,7 +2333,7 @@ var ii = ["name"], ai = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2306
2333
|
}, [a("ul", null, [(x(!0), i(e, null, T(j(r), (e, n) => (x(), i("li", {
|
|
2307
2334
|
key: n,
|
|
2308
2335
|
class: g({ selected: u.value === `#${f(n)}` })
|
|
2309
|
-
}, [s(
|
|
2336
|
+
}, [s(ri, {
|
|
2310
2337
|
id: f(n),
|
|
2311
2338
|
features: e,
|
|
2312
2339
|
index: n,
|
|
@@ -2341,17 +2368,17 @@ var ii = ["name"], ai = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2341
2368
|
])], 2))), 128))]), a("iframe", {
|
|
2342
2369
|
name: _(),
|
|
2343
2370
|
style: { display: "none" }
|
|
2344
|
-
}, null, 8,
|
|
2371
|
+
}, null, 8, ai)], 512));
|
|
2345
2372
|
}
|
|
2346
|
-
}), [["__scopeId", "data-v-178acf78"]]),
|
|
2373
|
+
}), [["__scopeId", "data-v-178acf78"]]), si = {
|
|
2347
2374
|
key: 0,
|
|
2348
2375
|
class: "user-feedback"
|
|
2349
|
-
},
|
|
2376
|
+
}, ci = /* @__PURE__ */ Ct(/* @__PURE__ */ l({
|
|
2350
2377
|
__name: "LoCha",
|
|
2351
2378
|
props: {
|
|
2352
2379
|
id: {},
|
|
2353
2380
|
data: {},
|
|
2354
|
-
mapStyleUrl: { default:
|
|
2381
|
+
mapStyleUrl: { default: Xt },
|
|
2355
2382
|
reasonCollapsed: {
|
|
2356
2383
|
type: Boolean,
|
|
2357
2384
|
default: !0
|
|
@@ -2366,7 +2393,7 @@ var ii = ["name"], ai = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2366
2393
|
let { featureCount: s, groups: c, setLoCha: l } = a, u = t(() => c.value.length === 1);
|
|
2367
2394
|
return M(() => r.data, (e) => {
|
|
2368
2395
|
e && l(e);
|
|
2369
|
-
}, { immediate: !0 }), (t, r) => (x(), i("section", { class: g(["locha", { "locha--single": u.value }]) }, [j(s) ? (x(), n(
|
|
2396
|
+
}, { immediate: !0 }), (t, r) => (x(), i("section", { class: g(["locha", { "locha--single": u.value }]) }, [j(s) ? (x(), n(oi, {
|
|
2370
2397
|
key: 1,
|
|
2371
2398
|
hash: e.hash
|
|
2372
2399
|
}, o({ _: 2 }, [
|
|
@@ -2390,10 +2417,10 @@ var ii = ["name"], ai = /* @__PURE__ */ xt(/* @__PURE__ */ l({
|
|
|
2390
2417
|
fn: N((e) => [E(t.$slots, "content-start", _(f(e)), void 0, !0)]),
|
|
2391
2418
|
key: "3"
|
|
2392
2419
|
} : void 0
|
|
2393
|
-
]), 1032, ["hash"])) : (x(), i("p",
|
|
2420
|
+
]), 1032, ["hash"])) : (x(), i("p", si, " ⚠️ No data "))], 2));
|
|
2394
2421
|
}
|
|
2395
2422
|
}), [["__scopeId", "data-v-791095c2"]]);
|
|
2396
2423
|
//#endregion
|
|
2397
|
-
export {
|
|
2424
|
+
export { ci as LoCha, ii as scrollToSection };
|
|
2398
2425
|
|
|
2399
2426
|
//# sourceMappingURL=index.js.map
|