adminizer 5.1.0-build.28 → 5.2.0-build.30
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/assets/{abnfDiagram-VCTEODGH-uWOVpoSR.js → abnfDiagram-VCTEODGH-BhZn7BLv.js} +1 -1
- package/assets/{add-A_fIlNKI.js → add-DDfJt70P.js} +1 -1
- package/assets/{add-group-C2x6K3tV.js → add-group-Cs3S9VVn.js} +1 -1
- package/assets/{add-user-u61kYlEm.js → add-user-DxI_sJLw.js} +1 -1
- package/assets/ai-assistant/agent.es.js +14736 -11737
- package/assets/app-DM8KzeFz.css +1 -0
- package/assets/app-DOMFUTFw.js +138 -0
- package/assets/{arc--ZX64bmY.js → arc-BRY7wCfa.js} +1 -1
- package/assets/{architectureDiagram-5GKGNRK7-W9AzLZvl.js → architectureDiagram-5GKGNRK7-DfBT7jAW.js} +1 -1
- package/assets/{blockDiagram-I7D4REHJ-BpK_yEa7.js → blockDiagram-I7D4REHJ-CW2mcR7Z.js} +1 -1
- package/assets/{c4Diagram-7LVT6UL2-DiQzU1s0.js → c4Diagram-7LVT6UL2-BGsyO-4Y.js} +1 -1
- package/assets/{catalog-dSCv3Szm.js → catalog-cyCZOCXs.js} +3 -3
- package/assets/channel-Bd-bsjgh.js +1 -0
- package/assets/{chunk-2Q5K7J3B-GPHETbCq.js → chunk-2Q5K7J3B-4EnjsYhG.js} +1 -1
- package/assets/{chunk-5VM5RSS4-bLovkogd.js → chunk-5VM5RSS4-BVzmz0IS.js} +1 -1
- package/assets/{chunk-F27PBJKO-DbkTY41z.js → chunk-F27PBJKO-Bkf9Z4lt.js} +1 -1
- package/assets/{chunk-IMKFNOWR-CL0VAxX7.js → chunk-IMKFNOWR-Dg6Y3xGC.js} +1 -1
- package/assets/{chunk-JWPE2WC7-d1Grk14b.js → chunk-JWPE2WC7-BdVNpqE2.js} +1 -1
- package/assets/{chunk-POPQ4Y6H-CAUhiiNt.js → chunk-POPQ4Y6H-0R-etdBM.js} +1 -1
- package/assets/{chunk-SVP7TREG-C8ADZUEr.js → chunk-SVP7TREG-CdABJwLU.js} +1 -1
- package/assets/{chunk-TICWLB2K-oRqFZabo.js → chunk-TICWLB2K-Da-oSw37.js} +1 -1
- package/assets/{chunk-XXDRQBXY-C3zo4c2P.js → chunk-XXDRQBXY-Ba8BsH2Z.js} +1 -1
- package/assets/classDiagram-ZZMXUADV-BftNBmvr.js +1 -0
- package/assets/classDiagram-v2-VYDZK3BY-BftNBmvr.js +1 -0
- package/assets/controls/ckeditor.es.js +10659 -10551
- package/assets/controls/handsontable.es.js +9053 -8479
- package/assets/controls/jsoneditor.es.js +641 -614
- package/assets/controls/leaflet.es.js +672 -663
- package/assets/controls/toast-ui.es.js +13696 -13676
- package/assets/{cose-bilkent-JH36ORCC-ZPvVaI6n.js → cose-bilkent-JH36ORCC-BYrWDdVx.js} +1 -1
- package/assets/{cynefin-OW5HDTMX-EEL4eqU7.js → cynefin-OW5HDTMX-CwHzXvDB.js} +1 -1
- package/assets/{cynefinDiagram-5FMLGOSQ-DpDFbbrn.js → cynefinDiagram-5FMLGOSQ-V6tH6arn.js} +1 -1
- package/assets/{dagre-GXQ25YYZ-Dtjy1xN1.js → dagre-GXQ25YYZ-CaBvafdG.js} +1 -1
- package/assets/{dashboard-DXs-vdJG.js → dashboard-C27hB1GI.js} +1 -1
- package/assets/{diagram-S7CK7UJ4-BhWisCOy.js → diagram-S7CK7UJ4-85jkE9hd.js} +1 -1
- package/assets/{diagram-UQ7AKVKN-BBH2Mm33.js → diagram-UQ7AKVKN-DHJRq1TM.js} +1 -1
- package/assets/{diagram-VSXAHHWV-B1Xc2cPz.js → diagram-VSXAHHWV-C74VLfSc.js} +1 -1
- package/assets/{diagram-VX7I27RA-CTTYzy1s.js → diagram-VX7I27RA-CVJcG5hn.js} +1 -1
- package/assets/{diagram-Z3DM3KII-DdH0yWH0.js → diagram-Z3DM3KII-B8ybg5RA.js} +1 -1
- package/assets/{docs-BZYlfOON.js → docs-CK6W0Jko.js} +1 -1
- package/assets/{ebnfDiagram-PWID7BFC-R9cSqf0y.js → ebnfDiagram-PWID7BFC-D_gz_iz6.js} +1 -1
- package/assets/{erDiagram-RLTQ6QDP-Bpu-Pm95.js → erDiagram-RLTQ6QDP-D3W95aGH.js} +1 -1
- package/assets/{flowDiagram-HODETNUW-NdXf-fRN.js → flowDiagram-HODETNUW-D2PTWIEg.js} +1 -1
- package/assets/{ganttDiagram-EL5Y4UJY-itQHv_dH.js → ganttDiagram-EL5Y4UJY-TFBUh0C6.js} +1 -1
- package/assets/{gitGraphDiagram-WWUBYQGX-DorHK4Wx.js → gitGraphDiagram-WWUBYQGX-BfFJzeqx.js} +1 -1
- package/assets/{history-DB48MCa8.js → history-DX6CEQqv.js} +1 -1
- package/assets/{infoDiagram-27XIBGKW-FgFATKk4.js → infoDiagram-27XIBGKW-esGmrWiw.js} +1 -1
- package/assets/{init-user-DAXb55S_.js → init-user-D1G_dbcZ.js} +1 -1
- package/assets/{ishikawaDiagram-5VMMS53U-Bjl1a496.js → ishikawaDiagram-5VMMS53U--aGHPnva.js} +1 -1
- package/assets/{journeyDiagram-3NMN7TZE-DU1TmnbI.js → journeyDiagram-3NMN7TZE-03BXeE8O.js} +1 -1
- package/assets/{kanban-definition-UXKFOSKX-BsrlKdcU.js → kanban-definition-UXKFOSKX-JdDv2WHg.js} +1 -1
- package/assets/{layout-C68duuC7.js → layout-Bz6WKClu.js} +1 -1
- package/assets/{linear-DdadsTLS.js → linear-Chzx_9mb.js} +1 -1
- package/assets/{list-D3R3q3Ti.js → list-BuSdZ2Ic.js} +1 -1
- package/assets/{login-DwxC2WD6.js → login-DFWfnrmE.js} +1 -1
- package/assets/manifest.json +277 -277
- package/assets/media-manager-CT4LZgo_.js +7 -0
- package/assets/mermaid.core-Dp-0i8FJ.js +310 -0
- package/assets/{mindmap-definition-YA3MSWOX-BfdP8hOy.js → mindmap-definition-YA3MSWOX-BJSEYobY.js} +1 -1
- package/assets/{module-DKdDlng0.js → module-Cgn-q5gZ.js} +1 -1
- package/assets/{notification-DDWbaooT.js → notification-BrfoqVVT.js} +1 -1
- package/assets/{pegDiagram-XKGWAZYB-BO9cFGCI.js → pegDiagram-XKGWAZYB-ccVsKwl1.js} +1 -1
- package/assets/{pieDiagram-E7YTZNPT-B4KrTpto.js → pieDiagram-E7YTZNPT-B1XZVgNq.js} +1 -1
- package/assets/{quadrantDiagram-AXDQQJYC-BumScZvv.js → quadrantDiagram-AXDQQJYC-CdABEYmF.js} +1 -1
- package/assets/{railroadDiagram-O6MQD6OU-DUDQQC-p.js → railroadDiagram-O6MQD6OU-OX83MXuO.js} +1 -1
- package/assets/{register-5rs1OSaq.js → register-Cxf3Pow-.js} +1 -1
- package/assets/{requirementDiagram-BXWQKSXE-BtNsxNt1.js → requirementDiagram-BXWQKSXE-CD7swf9u.js} +1 -1
- package/assets/{ru-Cf1WWSt0.js → ru-DxiFV21N.js} +1 -1
- package/assets/{sankeyDiagram-P5KCCOFB-xjPcSTcN.js → sankeyDiagram-P5KCCOFB-Cgwq2DVJ.js} +1 -1
- package/assets/{sequenceDiagram-WJ2MYXX4-BVOgA3-B.js → sequenceDiagram-WJ2MYXX4-BgjP07Zh.js} +1 -1
- package/assets/{sizeCapture-INFHLROL-BDI5FsKO.js → sizeCapture-INFHLROL-B-jQ1aKT.js} +1 -1
- package/assets/{stateDiagram-D77RDMKH-DreIJby8.js → stateDiagram-D77RDMKH-Drot14NK.js} +1 -1
- package/assets/stateDiagram-v2-MP3YSRHH-C5VLF0H1.js +1 -0
- package/assets/{swimlanes-42K2YHIH-J_CNnPZv.js → swimlanes-42K2YHIH-lCqHhK1l.js} +1 -1
- package/assets/swimlanesDiagram-VR7AAH4N-4yyX1ZbA.js +8 -0
- package/assets/{timeline-definition-24CTP7MA-BXGN0YmT.js → timeline-definition-24CTP7MA-B-QLcvwc.js} +1 -1
- package/assets/{use-appearance-B2YFalXG.js → use-appearance-B0ck1CR_.js} +1 -1
- package/assets/{user-filters-list-D8WohjvX.js → user-filters-list-ce2cmS5Z.js} +1 -1
- package/assets/{vennDiagram-4TSXK5OY-Mu0lMKUo.js → vennDiagram-4TSXK5OY-2DN2uspP.js} +1 -1
- package/assets/{wardleyDiagram-VM6X3IG4-CXFMI74r.js → wardleyDiagram-VM6X3IG4-C_GODc0p.js} +1 -1
- package/assets/{welcome-DHQx7R11.js → welcome-DaAj6jOI.js} +1 -1
- package/assets/with-app-layout-CwAECGwY.js +34 -0
- package/assets/{xychartDiagram-S5SC5T6Z-DCr7j1YG.js → xychartDiagram-S5SC5T6Z-Cq8htGoW.js} +1 -1
- package/controllers/catalog/FrontendCatalogAdapter.d.ts +5 -5
- package/controllers/catalog/FrontentCatalogAdapter.d.ts +5 -5
- package/controllers/initUser.js +1 -1
- package/helpers/inertiaAddHelper.js +10 -1
- package/helpers/inertiaMenuHelper.d.ts +3 -2
- package/helpers/inertiaMenuHelper.js +9 -4
- package/helpers/navigationAccessHelper.d.ts +5 -0
- package/helpers/navigationAccessHelper.js +13 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/interfaces/adminpanelConfig.d.ts +7 -0
- package/lib/Adminizer.d.ts +2 -0
- package/lib/Adminizer.js +3 -0
- package/lib/admin-links/AdminLinkHandler.js +5 -1
- package/lib/app-manager/AdminizerApp.d.ts +34 -0
- package/lib/app-manager/AppManager.js +35 -0
- package/lib/app-manager/ContextHandler.d.ts +240 -0
- package/lib/app-manager/ContextHandler.js +446 -0
- package/lib/app-manager/ControllerHandler.d.ts +2 -0
- package/lib/app-manager/ControllerHandler.js +7 -0
- package/lib/media-manager/helpers/MediaManagerHelper.d.ts +1 -1
- package/lib/notifications/AbstractNotificationService.d.ts +3 -3
- package/package.json +3 -2
- package/system/bindDocs.js +1 -1
- package/system/bindInertia.js +34 -9
- package/assets/app-CRa5Kokq.js +0 -138
- package/assets/app-TCCHARSx.css +0 -1
- package/assets/channel-DRO88SVn.js +0 -1
- package/assets/classDiagram-ZZMXUADV-Cb-leHEm.js +0 -1
- package/assets/classDiagram-v2-VYDZK3BY-Cb-leHEm.js +0 -1
- package/assets/media-manager-mt4Ykki7.js +0 -6
- package/assets/mermaid.core-DxLHD4PF.js +0 -310
- package/assets/stateDiagram-v2-MP3YSRHH-BNzSJJYe.js +0 -1
- package/assets/swimlanesDiagram-VR7AAH4N-DN5N1rG7.js +0 -8
- package/assets/with-app-layout-Cvg36gxr.js +0 -31
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import { j as O } from "./chunks/jsx-runtime-jIxVPx5o.js";
|
|
2
|
-
import { g as
|
|
3
|
-
const
|
|
4
|
-
function To(
|
|
5
|
-
const a =
|
|
6
|
-
|
|
7
|
-
l !== a.current &&
|
|
2
|
+
import { g as Cs } from "./chunks/_commonjsHelpers-C6fGbg64.js";
|
|
3
|
+
const Ss = window.React.useEffect, zs = window.React.useRef;
|
|
4
|
+
function To(r, l) {
|
|
5
|
+
const a = zs(l);
|
|
6
|
+
Ss(function() {
|
|
7
|
+
l !== a.current && r.attributionControl != null && (a.current != null && r.attributionControl.removeAttribution(a.current), l != null && r.attributionControl.addAttribution(l)), a.current = l;
|
|
8
8
|
}, [
|
|
9
|
-
|
|
9
|
+
r,
|
|
10
10
|
l
|
|
11
11
|
]);
|
|
12
12
|
}
|
|
13
|
-
const
|
|
14
|
-
function
|
|
13
|
+
const Ms = window.React.createContext, Es = window.React.use, Os = 1;
|
|
14
|
+
function As(r) {
|
|
15
15
|
return Object.freeze({
|
|
16
|
-
__version:
|
|
17
|
-
map:
|
|
16
|
+
__version: Os,
|
|
17
|
+
map: r
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
function oi(
|
|
20
|
+
function oi(r, l) {
|
|
21
21
|
return Object.freeze({
|
|
22
|
-
...
|
|
22
|
+
...r,
|
|
23
23
|
...l
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
const Vi =
|
|
26
|
+
const Vi = Ms(null);
|
|
27
27
|
function ri() {
|
|
28
|
-
const
|
|
29
|
-
if (
|
|
28
|
+
const r = Es(Vi);
|
|
29
|
+
if (r == null)
|
|
30
30
|
throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");
|
|
31
|
-
return
|
|
31
|
+
return r;
|
|
32
32
|
}
|
|
33
|
-
const
|
|
34
|
-
function Co(
|
|
33
|
+
const Is = window.React, Ui = window.React.forwardRef, Rs = window.React.useEffect, $i = window.React.useImperativeHandle, Zs = window.React.useState, Bs = window.ReactDOM.createPortal;
|
|
34
|
+
function Co(r) {
|
|
35
35
|
function l(a, h) {
|
|
36
|
-
const { instance: u, context: p } =
|
|
36
|
+
const { instance: u, context: p } = r(a).current;
|
|
37
37
|
$i(h, () => u);
|
|
38
38
|
const { children: m } = a;
|
|
39
|
-
return m == null ? null : /* @__PURE__ */
|
|
39
|
+
return m == null ? null : /* @__PURE__ */ Is.createElement(Vi, {
|
|
40
40
|
value: p
|
|
41
41
|
}, m);
|
|
42
42
|
}
|
|
43
43
|
return /* @__PURE__ */ Ui(l);
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Ns(r) {
|
|
46
46
|
function l(a, h) {
|
|
47
|
-
const [u, p] =
|
|
48
|
-
$i(h, () => m),
|
|
47
|
+
const [u, p] = Zs(!1), { instance: m } = r(a, p).current;
|
|
48
|
+
$i(h, () => m), Rs(function() {
|
|
49
49
|
u && m.update();
|
|
50
50
|
}, [
|
|
51
51
|
m,
|
|
@@ -53,49 +53,49 @@ function Bs(s) {
|
|
|
53
53
|
a.children
|
|
54
54
|
]);
|
|
55
55
|
const b = m._contentNode;
|
|
56
|
-
return b ? /* @__PURE__ */
|
|
56
|
+
return b ? /* @__PURE__ */ Bs(a.children, b) : null;
|
|
57
57
|
}
|
|
58
58
|
return /* @__PURE__ */ Ui(l);
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function Ds(r) {
|
|
61
61
|
function l(a, h) {
|
|
62
|
-
const { instance: u } =
|
|
62
|
+
const { instance: u } = r(a).current;
|
|
63
63
|
return $i(h, () => u), null;
|
|
64
64
|
}
|
|
65
65
|
return /* @__PURE__ */ Ui(l);
|
|
66
66
|
}
|
|
67
|
-
const
|
|
68
|
-
function qi(
|
|
69
|
-
const a =
|
|
70
|
-
|
|
71
|
-
return l != null &&
|
|
72
|
-
a.current != null &&
|
|
67
|
+
const Fs = window.React.useEffect, Ws = window.React.useRef;
|
|
68
|
+
function qi(r, l) {
|
|
69
|
+
const a = Ws(void 0);
|
|
70
|
+
Fs(function() {
|
|
71
|
+
return l != null && r.instance.on(l), a.current = l, function() {
|
|
72
|
+
a.current != null && r.instance.off(a.current), a.current = null;
|
|
73
73
|
};
|
|
74
74
|
}, [
|
|
75
|
-
|
|
75
|
+
r,
|
|
76
76
|
l
|
|
77
77
|
]);
|
|
78
78
|
}
|
|
79
|
-
function si(
|
|
80
|
-
const a =
|
|
79
|
+
function si(r, l) {
|
|
80
|
+
const a = r.pane ?? l.pane;
|
|
81
81
|
return a ? {
|
|
82
|
-
...
|
|
82
|
+
...r,
|
|
83
83
|
pane: a
|
|
84
|
-
} :
|
|
84
|
+
} : r;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function Hs(r, l) {
|
|
87
87
|
return function(h, u) {
|
|
88
|
-
const p = ri(), m =
|
|
88
|
+
const p = ri(), m = r(si(h, p), p);
|
|
89
89
|
return To(p.map, h.attribution), qi(m.current, h.eventHandlers), l(m.current, p, h, u), m;
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
var Ee = { exports: {} };
|
|
93
|
-
var
|
|
94
|
-
function
|
|
95
|
-
return ho || (ho = 1, (function(
|
|
93
|
+
var js = Ee.exports, ho;
|
|
94
|
+
function Gs() {
|
|
95
|
+
return ho || (ho = 1, (function(r, l) {
|
|
96
96
|
(function(a, h) {
|
|
97
97
|
h(l);
|
|
98
|
-
})(
|
|
98
|
+
})(js, (function(a) {
|
|
99
99
|
var h = "1.9.4";
|
|
100
100
|
function u(t) {
|
|
101
101
|
var e, i, n, o;
|
|
@@ -127,16 +127,16 @@ function js() {
|
|
|
127
127
|
return "_leaflet_id" in t || (t._leaflet_id = ++b), t._leaflet_id;
|
|
128
128
|
}
|
|
129
129
|
function g(t, e, i) {
|
|
130
|
-
var n, o,
|
|
130
|
+
var n, o, s, c;
|
|
131
131
|
return c = function() {
|
|
132
|
-
n = !1, o && (
|
|
133
|
-
},
|
|
132
|
+
n = !1, o && (s.apply(i, o), o = !1);
|
|
133
|
+
}, s = function() {
|
|
134
134
|
n ? o = arguments : (t.apply(i, arguments), setTimeout(c, e), n = !0);
|
|
135
|
-
},
|
|
135
|
+
}, s;
|
|
136
136
|
}
|
|
137
137
|
function R(t, e, i) {
|
|
138
|
-
var n = e[1], o = e[0],
|
|
139
|
-
return t === n && i ? t : ((t - o) %
|
|
138
|
+
var n = e[1], o = e[0], s = n - o;
|
|
139
|
+
return t === n && i ? t : ((t - o) % s + s) % s + o;
|
|
140
140
|
}
|
|
141
141
|
function T() {
|
|
142
142
|
return !1;
|
|
@@ -242,8 +242,8 @@ function js() {
|
|
|
242
242
|
return t.statics && u(e, t.statics), t.includes && (Ft(t.includes), u.apply(null, [n].concat(t.includes))), u(n, t), delete n.statics, delete n.includes, n.options && (n.options = i.options ? p(i.options) : {}, u(n.options, t.options)), n._initHooks = [], n.callInitHooks = function() {
|
|
243
243
|
if (!this._initHooksCalled) {
|
|
244
244
|
i.callInitHooks && i.callInitHooks.call(this), this._initHooksCalled = !0;
|
|
245
|
-
for (var
|
|
246
|
-
n._initHooks[
|
|
245
|
+
for (var s = 0, c = n._initHooks.length; s < c; s++)
|
|
246
|
+
n._initHooks[s].call(this);
|
|
247
247
|
}
|
|
248
248
|
}, e;
|
|
249
249
|
}, vt.include = function(t) {
|
|
@@ -278,7 +278,7 @@ function js() {
|
|
|
278
278
|
this._on(n, t[n], e);
|
|
279
279
|
else {
|
|
280
280
|
t = G(t);
|
|
281
|
-
for (var o = 0,
|
|
281
|
+
for (var o = 0, s = t.length; o < s; o++)
|
|
282
282
|
this._on(t[o], e, i);
|
|
283
283
|
}
|
|
284
284
|
return this;
|
|
@@ -302,8 +302,8 @@ function js() {
|
|
|
302
302
|
this._off(n, t[n], e);
|
|
303
303
|
else {
|
|
304
304
|
t = G(t);
|
|
305
|
-
for (var o = arguments.length === 1,
|
|
306
|
-
o ? this._off(t[
|
|
305
|
+
for (var o = arguments.length === 1, s = 0, c = t.length; s < c; s++)
|
|
306
|
+
o ? this._off(t[s]) : this._off(t[s], e, i);
|
|
307
307
|
}
|
|
308
308
|
return this;
|
|
309
309
|
},
|
|
@@ -320,11 +320,11 @@ function js() {
|
|
|
320
320
|
}
|
|
321
321
|
},
|
|
322
322
|
_off: function(t, e, i) {
|
|
323
|
-
var n, o,
|
|
323
|
+
var n, o, s;
|
|
324
324
|
if (this._events && (n = this._events[t], !!n)) {
|
|
325
325
|
if (arguments.length === 1) {
|
|
326
326
|
if (this._firingCount)
|
|
327
|
-
for (o = 0,
|
|
327
|
+
for (o = 0, s = n.length; o < s; o++)
|
|
328
328
|
n[o].fn = T;
|
|
329
329
|
delete this._events[t];
|
|
330
330
|
return;
|
|
@@ -356,8 +356,8 @@ function js() {
|
|
|
356
356
|
var o = this._events[t];
|
|
357
357
|
if (o) {
|
|
358
358
|
this._firingCount = this._firingCount + 1 || 1;
|
|
359
|
-
for (var
|
|
360
|
-
var d = o[
|
|
359
|
+
for (var s = 0, c = o.length; s < c; s++) {
|
|
360
|
+
var d = o[s], f = d.fn;
|
|
361
361
|
d.once && this.off(t, f, d.ctx), f.call(d.ctx || this, n);
|
|
362
362
|
}
|
|
363
363
|
this._firingCount--;
|
|
@@ -373,8 +373,8 @@ function js() {
|
|
|
373
373
|
typeof t != "string" && console.warn('"string" type argument expected');
|
|
374
374
|
var o = e;
|
|
375
375
|
typeof e != "function" && (n = !!e, o = void 0, i = void 0);
|
|
376
|
-
var
|
|
377
|
-
if (
|
|
376
|
+
var s = this._events && this._events[t];
|
|
377
|
+
if (s && s.length && this._listens(t, o, i) !== !1)
|
|
378
378
|
return !0;
|
|
379
379
|
if (n) {
|
|
380
380
|
for (var c in this._eventParents)
|
|
@@ -391,7 +391,7 @@ function js() {
|
|
|
391
391
|
if (!e)
|
|
392
392
|
return !!n.length;
|
|
393
393
|
i === this && (i = void 0);
|
|
394
|
-
for (var o = 0,
|
|
394
|
+
for (var o = 0, s = n.length; o < s; o++)
|
|
395
395
|
if (n[o].fn === e && n[o].ctx === i)
|
|
396
396
|
return o;
|
|
397
397
|
return !1;
|
|
@@ -404,7 +404,7 @@ function js() {
|
|
|
404
404
|
this._on(n, t[n], e, !0);
|
|
405
405
|
else {
|
|
406
406
|
t = G(t);
|
|
407
|
-
for (var o = 0,
|
|
407
|
+
for (var o = 0, s = t.length; o < s; o++)
|
|
408
408
|
this._on(t[o], e, i, !0);
|
|
409
409
|
}
|
|
410
410
|
return this;
|
|
@@ -614,16 +614,16 @@ function js() {
|
|
|
614
614
|
// intersect if they have at least one point in common.
|
|
615
615
|
intersects: function(t) {
|
|
616
616
|
t = ct(t);
|
|
617
|
-
var e = this.min, i = this.max, n = t.min, o = t.max,
|
|
618
|
-
return
|
|
617
|
+
var e = this.min, i = this.max, n = t.min, o = t.max, s = o.x >= e.x && n.x <= i.x, c = o.y >= e.y && n.y <= i.y;
|
|
618
|
+
return s && c;
|
|
619
619
|
},
|
|
620
620
|
// @method overlaps(otherBounds: Bounds): Boolean
|
|
621
621
|
// Returns `true` if the rectangle overlaps the given bounds. Two bounds
|
|
622
622
|
// overlap if their intersection is an area.
|
|
623
623
|
overlaps: function(t) {
|
|
624
624
|
t = ct(t);
|
|
625
|
-
var e = this.min, i = this.max, n = t.min, o = t.max,
|
|
626
|
-
return
|
|
625
|
+
var e = this.min, i = this.max, n = t.min, o = t.max, s = o.x > e.x && n.x < i.x, c = o.y > e.y && n.y < i.y;
|
|
626
|
+
return s && c;
|
|
627
627
|
},
|
|
628
628
|
// @method isValid(): Boolean
|
|
629
629
|
// Returns `true` if the bounds are properly initialized.
|
|
@@ -745,15 +745,15 @@ function js() {
|
|
|
745
745
|
// Returns `true` if the rectangle intersects the given bounds. Two bounds intersect if they have at least one point in common.
|
|
746
746
|
intersects: function(t) {
|
|
747
747
|
t = J(t);
|
|
748
|
-
var e = this._southWest, i = this._northEast, n = t.getSouthWest(), o = t.getNorthEast(),
|
|
749
|
-
return
|
|
748
|
+
var e = this._southWest, i = this._northEast, n = t.getSouthWest(), o = t.getNorthEast(), s = o.lat >= e.lat && n.lat <= i.lat, c = o.lng >= e.lng && n.lng <= i.lng;
|
|
749
|
+
return s && c;
|
|
750
750
|
},
|
|
751
751
|
// @method overlaps(otherBounds: LatLngBounds): Boolean
|
|
752
752
|
// Returns `true` if the rectangle overlaps the given bounds. Two bounds overlap if their intersection is an area.
|
|
753
753
|
overlaps: function(t) {
|
|
754
754
|
t = J(t);
|
|
755
|
-
var e = this._southWest, i = this._northEast, n = t.getSouthWest(), o = t.getNorthEast(),
|
|
756
|
-
return
|
|
755
|
+
var e = this._southWest, i = this._northEast, n = t.getSouthWest(), o = t.getNorthEast(), s = o.lat > e.lat && n.lat < i.lat, c = o.lng > e.lng && n.lng < i.lng;
|
|
756
|
+
return s && c;
|
|
757
757
|
},
|
|
758
758
|
// @method toBBoxString(): String
|
|
759
759
|
// Returns a string with bounding box coordinates in a 'southwest_lng,southwest_lat,northeast_lng,northeast_lat' format. Useful for sending requests to web services that return geo data.
|
|
@@ -800,12 +800,12 @@ function js() {
|
|
|
800
800
|
// @method distanceTo(otherLatLng: LatLng): Number
|
|
801
801
|
// Returns the distance (in meters) to the given `LatLng` calculated using the [Spherical Law of Cosines](https://en.wikipedia.org/wiki/Spherical_law_of_cosines).
|
|
802
802
|
distanceTo: function(t) {
|
|
803
|
-
return
|
|
803
|
+
return kt.distance(this, M(t));
|
|
804
804
|
},
|
|
805
805
|
// @method wrap(): LatLng
|
|
806
806
|
// Returns a new `LatLng` object with the longitude wrapped so it's always between -180 and +180 degrees.
|
|
807
807
|
wrap: function() {
|
|
808
|
-
return
|
|
808
|
+
return kt.wrapLatLng(this);
|
|
809
809
|
},
|
|
810
810
|
// @method toBounds(sizeInMeters: Number): LatLngBounds
|
|
811
811
|
// Returns a new `LatLngBounds` object in which each boundary is `sizeInMeters/2` meters apart from the `LatLng`.
|
|
@@ -902,10 +902,10 @@ function js() {
|
|
|
902
902
|
var e = t.getCenter(), i = this.wrapLatLng(e), n = e.lat - i.lat, o = e.lng - i.lng;
|
|
903
903
|
if (n === 0 && o === 0)
|
|
904
904
|
return t;
|
|
905
|
-
var
|
|
905
|
+
var s = t.getSouthWest(), c = t.getNorthEast(), d = new I(s.lat - n, s.lng - o), f = new I(c.lat - n, c.lng - o);
|
|
906
906
|
return new ut(d, f);
|
|
907
907
|
}
|
|
908
|
-
},
|
|
908
|
+
}, kt = u({}, _t, {
|
|
909
909
|
wrapLng: [-180, 180],
|
|
910
910
|
// Mean Earth Radius, as recommended for use by
|
|
911
911
|
// the International Union of Geodesy and Geophysics,
|
|
@@ -913,7 +913,7 @@ function js() {
|
|
|
913
913
|
R: 6371e3,
|
|
914
914
|
// distance between two geographical points using spherical law of cosines approximation
|
|
915
915
|
distance: function(t, e) {
|
|
916
|
-
var i = Math.PI / 180, n = t.lat * i, o = e.lat * i,
|
|
916
|
+
var i = Math.PI / 180, n = t.lat * i, o = e.lat * i, s = Math.sin((e.lat - t.lat) * i / 2), c = Math.sin((e.lng - t.lng) * i / 2), d = s * s + Math.cos(n) * Math.cos(o) * c * c, f = 2 * Math.atan2(Math.sqrt(d), Math.sqrt(1 - d));
|
|
917
917
|
return this.R * f;
|
|
918
918
|
}
|
|
919
919
|
}), et = 6378137, oe = {
|
|
@@ -969,7 +969,7 @@ function js() {
|
|
|
969
969
|
function zt(t, e, i, n) {
|
|
970
970
|
return new Wt(t, e, i, n);
|
|
971
971
|
}
|
|
972
|
-
var qt = u({},
|
|
972
|
+
var qt = u({}, kt, {
|
|
973
973
|
code: "EPSG:3857",
|
|
974
974
|
projection: oe,
|
|
975
975
|
transformation: (function() {
|
|
@@ -983,15 +983,15 @@ function js() {
|
|
|
983
983
|
return document.createElementNS("http://www.w3.org/2000/svg", t);
|
|
984
984
|
}
|
|
985
985
|
function tn(t, e) {
|
|
986
|
-
var i = "", n, o,
|
|
987
|
-
for (n = 0,
|
|
986
|
+
var i = "", n, o, s, c, d, f;
|
|
987
|
+
for (n = 0, s = t.length; n < s; n++) {
|
|
988
988
|
for (d = t[n], o = 0, c = d.length; o < c; o++)
|
|
989
989
|
f = d[o], i += (o ? "L" : "M") + f.x + " " + f.y;
|
|
990
990
|
i += e ? z.svg ? "z" : "x" : "";
|
|
991
991
|
}
|
|
992
992
|
return i || "M0 0";
|
|
993
993
|
}
|
|
994
|
-
var li = document.documentElement.style, Ie = "ActiveXObject" in window,
|
|
994
|
+
var li = document.documentElement.style, Ie = "ActiveXObject" in window, or = Ie && !document.addEventListener, en = "msLaunchUri" in navigator && !("documentMode" in document), hi = Mt("webkit"), nn = Mt("android"), on = Mt("android 2") || Mt("android 3"), rr = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), sr = nn && Mt("Google") && rr < 537 && !("AudioNode" in window), ci = !!window.opera, rn = !en && Mt("chrome"), sn = Mt("gecko") && !hi && !ci && !Ie, ar = !rn && Mt("safari"), an = Mt("phantom"), ln = "OTransition" in li, lr = navigator.platform.indexOf("Win") === 0, hn = Ie && "transition" in li, ui = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !on, cn = "MozPerspective" in li, hr = !window.L_DISABLE_3D && (hn || ui || cn) && !ln && !an, _e = typeof orientation < "u" || Mt("mobile"), cr = _e && hi, ur = _e && ui, un = !window.PointerEvent && window.MSPointerEvent, dn = !!(window.PointerEvent || un), fn = "ontouchstart" in window || !!window.TouchEvent, dr = !window.L_NO_TOUCH && (fn || dn), fr = _e && ci, mr = _e && sn, pr = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1, _r = (function() {
|
|
995
995
|
var t = !1;
|
|
996
996
|
try {
|
|
997
997
|
var e = Object.defineProperty({}, "passive", {
|
|
@@ -1003,12 +1003,12 @@ function js() {
|
|
|
1003
1003
|
} catch {
|
|
1004
1004
|
}
|
|
1005
1005
|
return t;
|
|
1006
|
-
})(),
|
|
1006
|
+
})(), gr = (function() {
|
|
1007
1007
|
return !!document.createElement("canvas").getContext;
|
|
1008
|
-
})(), di = !!(document.createElementNS && Qi("svg").createSVGRect),
|
|
1008
|
+
})(), di = !!(document.createElementNS && Qi("svg").createSVGRect), vr = !!di && (function() {
|
|
1009
1009
|
var t = document.createElement("div");
|
|
1010
1010
|
return t.innerHTML = "<svg/>", (t.firstChild && t.firstChild.namespaceURI) === "http://www.w3.org/2000/svg";
|
|
1011
|
-
})(),
|
|
1011
|
+
})(), yr = !di && (function() {
|
|
1012
1012
|
try {
|
|
1013
1013
|
var t = document.createElement("div");
|
|
1014
1014
|
t.innerHTML = '<v:shape adj="1"/>';
|
|
@@ -1017,78 +1017,78 @@ function js() {
|
|
|
1017
1017
|
} catch {
|
|
1018
1018
|
return !1;
|
|
1019
1019
|
}
|
|
1020
|
-
})(),
|
|
1020
|
+
})(), br = navigator.platform.indexOf("Mac") === 0, wr = navigator.platform.indexOf("Linux") === 0;
|
|
1021
1021
|
function Mt(t) {
|
|
1022
1022
|
return navigator.userAgent.toLowerCase().indexOf(t) >= 0;
|
|
1023
1023
|
}
|
|
1024
1024
|
var z = {
|
|
1025
1025
|
ie: Ie,
|
|
1026
|
-
ielt9:
|
|
1026
|
+
ielt9: or,
|
|
1027
1027
|
edge: en,
|
|
1028
1028
|
webkit: hi,
|
|
1029
1029
|
android: nn,
|
|
1030
1030
|
android23: on,
|
|
1031
|
-
androidStock:
|
|
1031
|
+
androidStock: sr,
|
|
1032
1032
|
opera: ci,
|
|
1033
1033
|
chrome: rn,
|
|
1034
1034
|
gecko: sn,
|
|
1035
|
-
safari:
|
|
1035
|
+
safari: ar,
|
|
1036
1036
|
phantom: an,
|
|
1037
1037
|
opera12: ln,
|
|
1038
|
-
win:
|
|
1038
|
+
win: lr,
|
|
1039
1039
|
ie3d: hn,
|
|
1040
1040
|
webkit3d: ui,
|
|
1041
1041
|
gecko3d: cn,
|
|
1042
|
-
any3d:
|
|
1042
|
+
any3d: hr,
|
|
1043
1043
|
mobile: _e,
|
|
1044
|
-
mobileWebkit:
|
|
1045
|
-
mobileWebkit3d:
|
|
1044
|
+
mobileWebkit: cr,
|
|
1045
|
+
mobileWebkit3d: ur,
|
|
1046
1046
|
msPointer: un,
|
|
1047
1047
|
pointer: dn,
|
|
1048
|
-
touch:
|
|
1048
|
+
touch: dr,
|
|
1049
1049
|
touchNative: fn,
|
|
1050
|
-
mobileOpera:
|
|
1051
|
-
mobileGecko:
|
|
1052
|
-
retina:
|
|
1053
|
-
passiveEvents:
|
|
1054
|
-
canvas:
|
|
1050
|
+
mobileOpera: fr,
|
|
1051
|
+
mobileGecko: mr,
|
|
1052
|
+
retina: pr,
|
|
1053
|
+
passiveEvents: _r,
|
|
1054
|
+
canvas: gr,
|
|
1055
1055
|
svg: di,
|
|
1056
|
-
vml:
|
|
1057
|
-
inlineSvg:
|
|
1058
|
-
mac:
|
|
1059
|
-
linux:
|
|
1056
|
+
vml: yr,
|
|
1057
|
+
inlineSvg: vr,
|
|
1058
|
+
mac: br,
|
|
1059
|
+
linux: wr
|
|
1060
1060
|
}, mn = z.msPointer ? "MSPointerDown" : "pointerdown", pn = z.msPointer ? "MSPointerMove" : "pointermove", _n = z.msPointer ? "MSPointerUp" : "pointerup", gn = z.msPointer ? "MSPointerCancel" : "pointercancel", fi = {
|
|
1061
1061
|
touchstart: mn,
|
|
1062
1062
|
touchmove: pn,
|
|
1063
1063
|
touchend: _n,
|
|
1064
1064
|
touchcancel: gn
|
|
1065
1065
|
}, vn = {
|
|
1066
|
-
touchstart:
|
|
1066
|
+
touchstart: Cr,
|
|
1067
1067
|
touchmove: Re,
|
|
1068
1068
|
touchend: Re,
|
|
1069
1069
|
touchcancel: Re
|
|
1070
1070
|
}, se = {}, yn = !1;
|
|
1071
|
-
function wr(t, e, i) {
|
|
1072
|
-
return e === "touchstart" && kr(), vn[e] ? (i = vn[e].bind(this, i), t.addEventListener(fi[e], i, !1), i) : (console.warn("wrong event specified:", e), T);
|
|
1073
|
-
}
|
|
1074
1071
|
function xr(t, e, i) {
|
|
1072
|
+
return e === "touchstart" && Tr(), vn[e] ? (i = vn[e].bind(this, i), t.addEventListener(fi[e], i, !1), i) : (console.warn("wrong event specified:", e), T);
|
|
1073
|
+
}
|
|
1074
|
+
function Pr(t, e, i) {
|
|
1075
1075
|
if (!fi[e]) {
|
|
1076
1076
|
console.warn("wrong event specified:", e);
|
|
1077
1077
|
return;
|
|
1078
1078
|
}
|
|
1079
1079
|
t.removeEventListener(fi[e], i, !1);
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1081
|
+
function Lr(t) {
|
|
1082
1082
|
se[t.pointerId] = t;
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1084
|
+
function kr(t) {
|
|
1085
1085
|
se[t.pointerId] && (se[t.pointerId] = t);
|
|
1086
1086
|
}
|
|
1087
1087
|
function bn(t) {
|
|
1088
1088
|
delete se[t.pointerId];
|
|
1089
1089
|
}
|
|
1090
|
-
function
|
|
1091
|
-
yn || (document.addEventListener(mn,
|
|
1090
|
+
function Tr() {
|
|
1091
|
+
yn || (document.addEventListener(mn, Lr, !0), document.addEventListener(pn, kr, !0), document.addEventListener(_n, bn, !0), document.addEventListener(gn, bn, !0), yn = !0);
|
|
1092
1092
|
}
|
|
1093
1093
|
function Re(t, e) {
|
|
1094
1094
|
if (e.pointerType !== (e.MSPOINTER_TYPE_MOUSE || "mouse")) {
|
|
@@ -1098,33 +1098,33 @@ function js() {
|
|
|
1098
1098
|
e.changedTouches = [e], t(e);
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
1101
|
-
function
|
|
1101
|
+
function Cr(t, e) {
|
|
1102
1102
|
e.MSPOINTER_TYPE_TOUCH && e.pointerType === e.MSPOINTER_TYPE_TOUCH && dt(e), Re(t, e);
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1104
|
+
function Sr(t) {
|
|
1105
1105
|
var e = {}, i, n;
|
|
1106
1106
|
for (n in t)
|
|
1107
1107
|
i = t[n], e[n] = i && i.bind ? i.bind(t) : i;
|
|
1108
1108
|
return t = e, e.type = "dblclick", e.detail = 2, e.isTrusted = !1, e._simulated = !0, e;
|
|
1109
1109
|
}
|
|
1110
|
-
var
|
|
1111
|
-
function
|
|
1110
|
+
var zr = 200;
|
|
1111
|
+
function Mr(t, e) {
|
|
1112
1112
|
t.addEventListener("dblclick", e);
|
|
1113
1113
|
var i = 0, n;
|
|
1114
|
-
function o(
|
|
1115
|
-
if (
|
|
1116
|
-
n =
|
|
1114
|
+
function o(s) {
|
|
1115
|
+
if (s.detail !== 1) {
|
|
1116
|
+
n = s.detail;
|
|
1117
1117
|
return;
|
|
1118
1118
|
}
|
|
1119
|
-
if (!(
|
|
1120
|
-
var c = kn(
|
|
1119
|
+
if (!(s.pointerType === "mouse" || s.sourceCapabilities && !s.sourceCapabilities.firesTouchEvents)) {
|
|
1120
|
+
var c = kn(s);
|
|
1121
1121
|
if (!(c.some(function(f) {
|
|
1122
1122
|
return f instanceof HTMLLabelElement && f.attributes.for;
|
|
1123
1123
|
}) && !c.some(function(f) {
|
|
1124
1124
|
return f instanceof HTMLInputElement || f instanceof HTMLSelectElement;
|
|
1125
1125
|
}))) {
|
|
1126
1126
|
var d = Date.now();
|
|
1127
|
-
d - i <=
|
|
1127
|
+
d - i <= zr ? (n++, n === 2 && e(Sr(s))) : n = 1, i = d;
|
|
1128
1128
|
}
|
|
1129
1129
|
}
|
|
1130
1130
|
}
|
|
@@ -1133,7 +1133,7 @@ function js() {
|
|
|
1133
1133
|
simDblclick: o
|
|
1134
1134
|
};
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1136
|
+
function Er(t, e) {
|
|
1137
1137
|
t.removeEventListener("dblclick", e.dblclick), t.removeEventListener("click", e.simDblclick);
|
|
1138
1138
|
}
|
|
1139
1139
|
var mi = Ne(
|
|
@@ -1183,8 +1183,8 @@ function js() {
|
|
|
1183
1183
|
for (var i = G(e), n = 0, o = i.length; n < o; n++)
|
|
1184
1184
|
t.classList.add(i[n]);
|
|
1185
1185
|
else if (!pi(t, e)) {
|
|
1186
|
-
var
|
|
1187
|
-
_i(t, (
|
|
1186
|
+
var s = Be(t);
|
|
1187
|
+
_i(t, (s ? s + " " : "") + e);
|
|
1188
1188
|
}
|
|
1189
1189
|
}
|
|
1190
1190
|
function it(t, e) {
|
|
@@ -1197,9 +1197,9 @@ function js() {
|
|
|
1197
1197
|
return t.correspondingElement && (t = t.correspondingElement), t.className.baseVal === void 0 ? t.className : t.className.baseVal;
|
|
1198
1198
|
}
|
|
1199
1199
|
function bt(t, e) {
|
|
1200
|
-
"opacity" in t.style ? t.style.opacity = e : "filter" in t.style &&
|
|
1200
|
+
"opacity" in t.style ? t.style.opacity = e : "filter" in t.style && Or(t, e);
|
|
1201
1201
|
}
|
|
1202
|
-
function
|
|
1202
|
+
function Or(t, e) {
|
|
1203
1203
|
var i = !1, n = "DXImageTransform.Microsoft.Alpha";
|
|
1204
1204
|
try {
|
|
1205
1205
|
i = t.filters.item(n);
|
|
@@ -1274,7 +1274,7 @@ function js() {
|
|
|
1274
1274
|
boundingClientRect: e
|
|
1275
1275
|
};
|
|
1276
1276
|
}
|
|
1277
|
-
var
|
|
1277
|
+
var Ar = {
|
|
1278
1278
|
__proto__: null,
|
|
1279
1279
|
TRANSFORM: mi,
|
|
1280
1280
|
TRANSITION: ge,
|
|
@@ -1315,8 +1315,8 @@ function js() {
|
|
|
1315
1315
|
Li(t, o, e[o], i);
|
|
1316
1316
|
else {
|
|
1317
1317
|
e = G(e);
|
|
1318
|
-
for (var
|
|
1319
|
-
Li(t, e[
|
|
1318
|
+
for (var s = 0, c = e.length; s < c; s++)
|
|
1319
|
+
Li(t, e[s], i, n);
|
|
1320
1320
|
}
|
|
1321
1321
|
return this;
|
|
1322
1322
|
}
|
|
@@ -1332,8 +1332,8 @@ function js() {
|
|
|
1332
1332
|
return lt(e, d) !== -1;
|
|
1333
1333
|
});
|
|
1334
1334
|
else
|
|
1335
|
-
for (var
|
|
1336
|
-
ki(t, e[
|
|
1335
|
+
for (var s = 0, c = e.length; s < c; s++)
|
|
1336
|
+
ki(t, e[s], i, n);
|
|
1337
1337
|
return this;
|
|
1338
1338
|
}
|
|
1339
1339
|
function Ln(t, e) {
|
|
@@ -1351,19 +1351,19 @@ function js() {
|
|
|
1351
1351
|
var o = e + v(i) + (n ? "_" + v(n) : "");
|
|
1352
1352
|
if (t[Et] && t[Et][o])
|
|
1353
1353
|
return this;
|
|
1354
|
-
var
|
|
1354
|
+
var s = function(d) {
|
|
1355
1355
|
return i.call(n || t, d || window.event);
|
|
1356
|
-
}, c =
|
|
1357
|
-
!z.touchNative && z.pointer && e.indexOf("touch") === 0 ?
|
|
1356
|
+
}, c = s;
|
|
1357
|
+
!z.touchNative && z.pointer && e.indexOf("touch") === 0 ? s = xr(t, e, s) : z.touch && e === "dblclick" ? s = Mr(t, s) : "addEventListener" in t ? e === "touchstart" || e === "touchmove" || e === "wheel" || e === "mousewheel" ? t.addEventListener(Pi[e] || e, s, z.passiveEvents ? { passive: !1 } : !1) : e === "mouseenter" || e === "mouseleave" ? (s = function(d) {
|
|
1358
1358
|
d = d || window.event, Ci(t, d) && c(d);
|
|
1359
|
-
}, t.addEventListener(Pi[e],
|
|
1359
|
+
}, t.addEventListener(Pi[e], s, !1)) : t.addEventListener(e, c, !1) : t.attachEvent("on" + e, s), t[Et] = t[Et] || {}, t[Et][o] = s;
|
|
1360
1360
|
}
|
|
1361
1361
|
function ki(t, e, i, n, o) {
|
|
1362
1362
|
o = o || e + v(i) + (n ? "_" + v(n) : "");
|
|
1363
|
-
var
|
|
1364
|
-
if (!
|
|
1363
|
+
var s = t[Et] && t[Et][o];
|
|
1364
|
+
if (!s)
|
|
1365
1365
|
return this;
|
|
1366
|
-
!z.touchNative && z.pointer && e.indexOf("touch") === 0 ?
|
|
1366
|
+
!z.touchNative && z.pointer && e.indexOf("touch") === 0 ? Pr(t, e, s) : z.touch && e === "dblclick" ? Er(t, s) : "removeEventListener" in t ? t.removeEventListener(Pi[e] || e, s, !1) : t.detachEvent("on" + e, s), t[Et][o] = null;
|
|
1367
1367
|
}
|
|
1368
1368
|
function Xt(t) {
|
|
1369
1369
|
return t.stopPropagation ? t.stopPropagation() : t.originalEvent ? t.originalEvent._stopped = !0 : t.cancelBubble = !0, this;
|
|
@@ -1398,11 +1398,11 @@ function js() {
|
|
|
1398
1398
|
(t.clientY - n.top) / i.y - e.clientTop
|
|
1399
1399
|
);
|
|
1400
1400
|
}
|
|
1401
|
-
var
|
|
1401
|
+
var Ir = z.linux && z.chrome ? window.devicePixelRatio : z.mac ? window.devicePixelRatio * 3 : window.devicePixelRatio > 0 ? 2 * window.devicePixelRatio : 1;
|
|
1402
1402
|
function Cn(t) {
|
|
1403
1403
|
return z.edge ? t.wheelDeltaY / 2 : (
|
|
1404
1404
|
// Don't trust window-geometry-based delta
|
|
1405
|
-
t.deltaY && t.deltaMode === 0 ? -t.deltaY /
|
|
1405
|
+
t.deltaY && t.deltaMode === 0 ? -t.deltaY / Ir : (
|
|
1406
1406
|
// Pixels
|
|
1407
1407
|
t.deltaY && t.deltaMode === 1 ? -t.deltaY * 20 : (
|
|
1408
1408
|
// Lines
|
|
@@ -1438,7 +1438,7 @@ function js() {
|
|
|
1438
1438
|
}
|
|
1439
1439
|
return i !== t;
|
|
1440
1440
|
}
|
|
1441
|
-
var
|
|
1441
|
+
var Rr = {
|
|
1442
1442
|
__proto__: null,
|
|
1443
1443
|
on: B,
|
|
1444
1444
|
off: q,
|
|
@@ -1599,7 +1599,7 @@ function js() {
|
|
|
1599
1599
|
// @method setZoomAround(offset: Point, zoom: Number, options: Zoom options): this
|
|
1600
1600
|
// Zooms the map while keeping a specified pixel on the map (relative to the top-left corner) stationary.
|
|
1601
1601
|
setZoomAround: function(t, e, i) {
|
|
1602
|
-
var n = this.getZoomScale(e), o = this.getSize().divideBy(2),
|
|
1602
|
+
var n = this.getZoomScale(e), o = this.getSize().divideBy(2), s = t instanceof A ? t : this.latLngToContainerPoint(t), c = s.subtract(o).multiplyBy(1 - 1 / n), d = this.containerPointToLatLng(o.add(c));
|
|
1603
1603
|
return this.setView(d, e, { zoom: i });
|
|
1604
1604
|
},
|
|
1605
1605
|
_getBoundsCenterZoom: function(t, e) {
|
|
@@ -1610,7 +1610,7 @@ function js() {
|
|
|
1610
1610
|
center: t.getCenter(),
|
|
1611
1611
|
zoom: o
|
|
1612
1612
|
};
|
|
1613
|
-
var
|
|
1613
|
+
var s = n.subtract(i).divideBy(2), c = this.project(t.getSouthWest(), o), d = this.project(t.getNorthEast(), o), f = this.unproject(c.add(d).divideBy(2).add(s), o);
|
|
1614
1614
|
return {
|
|
1615
1615
|
center: f,
|
|
1616
1616
|
zoom: o
|
|
@@ -1661,12 +1661,12 @@ function js() {
|
|
|
1661
1661
|
if (i = i || {}, i.animate === !1 || !z.any3d)
|
|
1662
1662
|
return this.setView(t, e, i);
|
|
1663
1663
|
this._stop();
|
|
1664
|
-
var n = this.project(this.getCenter()), o = this.project(t),
|
|
1664
|
+
var n = this.project(this.getCenter()), o = this.project(t), s = this.getSize(), c = this._zoom;
|
|
1665
1665
|
t = M(t), e = e === void 0 ? c : e;
|
|
1666
|
-
var d = Math.max(
|
|
1666
|
+
var d = Math.max(s.x, s.y), f = d * this.getZoomScale(c, e), _ = o.distanceTo(n) || 1, x = 1.42, E = x * x;
|
|
1667
1667
|
function H(rt) {
|
|
1668
|
-
var Je = rt ? -1 : 1,
|
|
1669
|
-
return
|
|
1668
|
+
var Je = rt ? -1 : 1, Ps = rt ? f : d, Ls = f * f - d * d + Je * E * E * _ * _, ks = 2 * Ps * E * _, Ni = Ls / ks, lo = Math.sqrt(Ni * Ni + 1) - Ni, Ts = lo < 1e-9 ? -18 : Math.log(lo);
|
|
1669
|
+
return Ts;
|
|
1670
1670
|
}
|
|
1671
1671
|
function pt(rt) {
|
|
1672
1672
|
return (Math.exp(rt) - Math.exp(-rt)) / 2;
|
|
@@ -1681,17 +1681,17 @@ function js() {
|
|
|
1681
1681
|
function me(rt) {
|
|
1682
1682
|
return d * (at(gt) / at(gt + x * rt));
|
|
1683
1683
|
}
|
|
1684
|
-
function
|
|
1684
|
+
function ys(rt) {
|
|
1685
1685
|
return d * (at(gt) * xt(gt + x * rt) - pt(gt)) / E;
|
|
1686
1686
|
}
|
|
1687
|
-
function
|
|
1687
|
+
function bs(rt) {
|
|
1688
1688
|
return 1 - Math.pow(1 - rt, 1.5);
|
|
1689
1689
|
}
|
|
1690
|
-
var
|
|
1690
|
+
var ws = Date.now(), so = (H(1) - gt) / x, xs = i.duration ? 1e3 * i.duration : 1e3 * so * 0.8;
|
|
1691
1691
|
function ao() {
|
|
1692
|
-
var rt = (Date.now() -
|
|
1692
|
+
var rt = (Date.now() - ws) / xs, Je = bs(rt) * so;
|
|
1693
1693
|
rt <= 1 ? (this._flyToFrame = tt(ao, this), this._move(
|
|
1694
|
-
this.unproject(n.add(o.subtract(n).multiplyBy(
|
|
1694
|
+
this.unproject(n.add(o.subtract(n).multiplyBy(ys(Je) / _)), c),
|
|
1695
1695
|
this.getScaleZoom(d / me(Je), c),
|
|
1696
1696
|
{ flyTo: !0 }
|
|
1697
1697
|
)) : this._move(t, e)._moveEnd(!0);
|
|
@@ -1736,10 +1736,10 @@ function js() {
|
|
|
1736
1736
|
// the map will not be panned.
|
|
1737
1737
|
panInside: function(t, e) {
|
|
1738
1738
|
e = e || {};
|
|
1739
|
-
var i = y(e.paddingTopLeft || e.padding || [0, 0]), n = y(e.paddingBottomRight || e.padding || [0, 0]), o = this.project(this.getCenter()),
|
|
1740
|
-
if (!d.contains(
|
|
1739
|
+
var i = y(e.paddingTopLeft || e.padding || [0, 0]), n = y(e.paddingBottomRight || e.padding || [0, 0]), o = this.project(this.getCenter()), s = this.project(t), c = this.getPixelBounds(), d = ct([c.min.add(i), c.max.subtract(n)]), f = d.getSize();
|
|
1740
|
+
if (!d.contains(s)) {
|
|
1741
1741
|
this._enforcingBounds = !0;
|
|
1742
|
-
var _ =
|
|
1742
|
+
var _ = s.subtract(d.getCenter()), x = d.extend(s).getSize().subtract(f);
|
|
1743
1743
|
o.x += _.x < 0 ? -x.x : x.x, o.y += _.y < 0 ? -x.y : x.y, this.panTo(this.unproject(o), e), this._enforcingBounds = !1;
|
|
1744
1744
|
}
|
|
1745
1745
|
return this;
|
|
@@ -1765,8 +1765,8 @@ function js() {
|
|
|
1765
1765
|
}, t === !0 ? { animate: !0 } : t);
|
|
1766
1766
|
var e = this.getSize();
|
|
1767
1767
|
this._sizeChanged = !0, this._lastCenter = null;
|
|
1768
|
-
var i = this.getSize(), n = e.divideBy(2).round(), o = i.divideBy(2).round(),
|
|
1769
|
-
return !
|
|
1768
|
+
var i = this.getSize(), n = e.divideBy(2).round(), o = i.divideBy(2).round(), s = n.subtract(o);
|
|
1769
|
+
return !s.x && !s.y ? this : (t.animate && t.pan ? this.panBy(s) : (t.pan && this._rawPanBy(s), this.fire("move"), t.debounceMoveend ? (clearTimeout(this._sizeTimer), this._sizeTimer = setTimeout(m(this.fire, this, "moveend"), 200)) : this.fire("moveend")), this.fire("resize", {
|
|
1770
1770
|
oldSize: e,
|
|
1771
1771
|
newSize: i
|
|
1772
1772
|
}));
|
|
@@ -1820,10 +1820,10 @@ function js() {
|
|
|
1820
1820
|
},
|
|
1821
1821
|
_handleGeolocationResponse: function(t) {
|
|
1822
1822
|
if (this._container._leaflet_id) {
|
|
1823
|
-
var e = t.coords.latitude, i = t.coords.longitude, n = new I(e, i), o = n.toBounds(t.coords.accuracy * 2),
|
|
1824
|
-
if (
|
|
1823
|
+
var e = t.coords.latitude, i = t.coords.longitude, n = new I(e, i), o = n.toBounds(t.coords.accuracy * 2), s = this._locateOptions;
|
|
1824
|
+
if (s.setView) {
|
|
1825
1825
|
var c = this.getBoundsZoom(o);
|
|
1826
|
-
this.setView(n,
|
|
1826
|
+
this.setView(n, s.maxZoom ? Math.min(c, s.maxZoom) : c);
|
|
1827
1827
|
}
|
|
1828
1828
|
var d = {
|
|
1829
1829
|
latlng: n,
|
|
@@ -1906,8 +1906,8 @@ function js() {
|
|
|
1906
1906
|
// the given bounds in its entirety.
|
|
1907
1907
|
getBoundsZoom: function(t, e, i) {
|
|
1908
1908
|
t = J(t), i = y(i || [0, 0]);
|
|
1909
|
-
var n = this.getZoom() || 0, o = this.getMinZoom(),
|
|
1910
|
-
return n = this.getScaleZoom(pt, n), x && (n = Math.round(n / (x / 100)) * (x / 100), n = e ? Math.ceil(n / x) * x : Math.floor(n / x) * x), Math.max(o, Math.min(
|
|
1909
|
+
var n = this.getZoom() || 0, o = this.getMinZoom(), s = this.getMaxZoom(), c = t.getNorthWest(), d = t.getSouthEast(), f = this.getSize().subtract(i), _ = ct(this.project(d, n), this.project(c, n)).getSize(), x = z.any3d ? this.options.zoomSnap : 1, E = f.x / _.x, H = f.y / _.y, pt = e ? Math.max(E, H) : Math.min(E, H);
|
|
1910
|
+
return n = this.getScaleZoom(pt, n), x && (n = Math.round(n / (x / 100)) * (x / 100), n = e ? Math.ceil(n / x) * x : Math.floor(n / x) * x), Math.max(o, Math.min(s, n));
|
|
1911
1911
|
},
|
|
1912
1912
|
// @method getSize(): Point
|
|
1913
1913
|
// Returns the current size of the map container (in pixels).
|
|
@@ -2146,14 +2146,14 @@ function js() {
|
|
|
2146
2146
|
Math.max(Math.abs(t.x), Math.abs(t.y)) >= this.options.transform3DLimit && this._resetView(this.getCenter(), this.getZoom());
|
|
2147
2147
|
},
|
|
2148
2148
|
_findEventTargets: function(t, e) {
|
|
2149
|
-
for (var i = [], n, o = e === "mouseout" || e === "mouseover",
|
|
2150
|
-
if (n = this._targets[v(
|
|
2149
|
+
for (var i = [], n, o = e === "mouseout" || e === "mouseover", s = t.target || t.srcElement, c = !1; s; ) {
|
|
2150
|
+
if (n = this._targets[v(s)], n && (e === "click" || e === "preclick") && this._draggableMoved(n)) {
|
|
2151
2151
|
c = !0;
|
|
2152
2152
|
break;
|
|
2153
2153
|
}
|
|
2154
|
-
if (n && n.listens(e, !0) && (o && !Ci(
|
|
2154
|
+
if (n && n.listens(e, !0) && (o && !Ci(s, t) || (i.push(n), o)) || s === this._container)
|
|
2155
2155
|
break;
|
|
2156
|
-
|
|
2156
|
+
s = s.parentNode;
|
|
2157
2157
|
}
|
|
2158
2158
|
return !i.length && !c && !o && this.listens(e, !0) && (i = [this]), i;
|
|
2159
2159
|
},
|
|
@@ -2179,9 +2179,9 @@ function js() {
|
|
|
2179
2179
|
}
|
|
2180
2180
|
var o = this._findEventTargets(t, e);
|
|
2181
2181
|
if (i) {
|
|
2182
|
-
for (var
|
|
2183
|
-
i[c].listens(e, !0) &&
|
|
2184
|
-
o =
|
|
2182
|
+
for (var s = [], c = 0; c < i.length; c++)
|
|
2183
|
+
i[c].listens(e, !0) && s.push(i[c]);
|
|
2184
|
+
o = s.concat(o);
|
|
2185
2185
|
}
|
|
2186
2186
|
if (o.length) {
|
|
2187
2187
|
e === "contextmenu" && dt(t);
|
|
@@ -2253,7 +2253,7 @@ function js() {
|
|
|
2253
2253
|
_limitCenter: function(t, e, i) {
|
|
2254
2254
|
if (!i)
|
|
2255
2255
|
return t;
|
|
2256
|
-
var n = this.project(t, e), o = this.getSize().divideBy(2),
|
|
2256
|
+
var n = this.project(t, e), o = this.getSize().divideBy(2), s = new $(n.subtract(o), n.add(o)), c = this._getBoundsOffset(s, i, e);
|
|
2257
2257
|
return Math.abs(c.x) <= 1 && Math.abs(c.y) <= 1 ? t : this.unproject(n.add(c), e);
|
|
2258
2258
|
},
|
|
2259
2259
|
// adjust offset for view to get inside bounds
|
|
@@ -2268,7 +2268,7 @@ function js() {
|
|
|
2268
2268
|
var n = ct(
|
|
2269
2269
|
this.project(e.getNorthEast(), i),
|
|
2270
2270
|
this.project(e.getSouthWest(), i)
|
|
2271
|
-
), o = n.min.subtract(t.min),
|
|
2271
|
+
), o = n.min.subtract(t.min), s = n.max.subtract(t.max), c = this._rebound(o.x, -s.x), d = this._rebound(o.y, -s.y);
|
|
2272
2272
|
return new A(c, d);
|
|
2273
2273
|
},
|
|
2274
2274
|
_rebound: function(t, e) {
|
|
@@ -2329,10 +2329,10 @@ function js() {
|
|
|
2329
2329
|
this._animatingZoom && (this._mapPane && it(this._mapPane, "leaflet-zoom-anim"), this._animatingZoom = !1, this._move(this._animateToCenter, this._animateToZoom, void 0, !0), this._tempFireZoomEvent && this.fire("zoom"), delete this._tempFireZoomEvent, this.fire("move"), this._moveEnd(!0));
|
|
2330
2330
|
}
|
|
2331
2331
|
});
|
|
2332
|
-
function
|
|
2332
|
+
function Zr(t, e) {
|
|
2333
2333
|
return new j(t, e);
|
|
2334
2334
|
}
|
|
2335
|
-
var
|
|
2335
|
+
var Tt = vt.extend({
|
|
2336
2336
|
// @section
|
|
2337
2337
|
// @aka Control Options
|
|
2338
2338
|
options: {
|
|
@@ -2380,7 +2380,7 @@ function js() {
|
|
|
2380
2380
|
this._map && t && t.screenX > 0 && t.screenY > 0 && this._map.getContainer().focus();
|
|
2381
2381
|
}
|
|
2382
2382
|
}), Pe = function(t) {
|
|
2383
|
-
return new
|
|
2383
|
+
return new Tt(t);
|
|
2384
2384
|
};
|
|
2385
2385
|
j.include({
|
|
2386
2386
|
// @method addControl(control: Control): this
|
|
@@ -2395,9 +2395,9 @@ function js() {
|
|
|
2395
2395
|
},
|
|
2396
2396
|
_initControlPos: function() {
|
|
2397
2397
|
var t = this._controlCorners = {}, e = "leaflet-", i = this._controlContainer = V("div", e + "control-container", this._container);
|
|
2398
|
-
function n(o,
|
|
2399
|
-
var c = e + o + " " + e +
|
|
2400
|
-
t[o +
|
|
2398
|
+
function n(o, s) {
|
|
2399
|
+
var c = e + o + " " + e + s;
|
|
2400
|
+
t[o + s] = V("div", c, i);
|
|
2401
2401
|
}
|
|
2402
2402
|
n("top", "left"), n("top", "right"), n("bottom", "left"), n("bottom", "right");
|
|
2403
2403
|
},
|
|
@@ -2407,7 +2407,7 @@ function js() {
|
|
|
2407
2407
|
Q(this._controlContainer), delete this._controlCorners, delete this._controlContainer;
|
|
2408
2408
|
}
|
|
2409
2409
|
});
|
|
2410
|
-
var zn =
|
|
2410
|
+
var zn = Tt.extend({
|
|
2411
2411
|
// @section
|
|
2412
2412
|
// @aka Control.Layers options
|
|
2413
2413
|
options: {
|
|
@@ -2449,7 +2449,7 @@ function js() {
|
|
|
2449
2449
|
return this._container;
|
|
2450
2450
|
},
|
|
2451
2451
|
addTo: function(t) {
|
|
2452
|
-
return
|
|
2452
|
+
return Tt.prototype.addTo.call(this, t), this._expandIfNotCollapsed();
|
|
2453
2453
|
},
|
|
2454
2454
|
onRemove: function() {
|
|
2455
2455
|
this._map.off("zoomend", this._checkDisabledLayers, this);
|
|
@@ -2495,12 +2495,12 @@ function js() {
|
|
|
2495
2495
|
}, this));
|
|
2496
2496
|
var o = this._layersLink = V("a", t + "-toggle", e);
|
|
2497
2497
|
o.href = "#", o.title = "Layers", o.setAttribute("role", "button"), B(o, {
|
|
2498
|
-
keydown: function(
|
|
2499
|
-
|
|
2498
|
+
keydown: function(s) {
|
|
2499
|
+
s.keyCode === 13 && this._expandSafely();
|
|
2500
2500
|
},
|
|
2501
2501
|
// Certain screen readers intercept the key event and instead send a click event
|
|
2502
|
-
click: function(
|
|
2503
|
-
dt(
|
|
2502
|
+
click: function(s) {
|
|
2503
|
+
dt(s), this._expandSafely();
|
|
2504
2504
|
}
|
|
2505
2505
|
}, this), i || this.expand(), this._baseLayersList = V("div", t + "-base", n), this._separator = V("div", t + "-separator", n), this._overlaysList = V("div", t + "-overlays", n), e.appendChild(n);
|
|
2506
2506
|
},
|
|
@@ -2542,8 +2542,8 @@ function js() {
|
|
|
2542
2542
|
t.overlay ? (n = document.createElement("input"), n.type = "checkbox", n.className = "leaflet-control-layers-selector", n.defaultChecked = i) : n = this._createRadioElement("leaflet-base-layers_" + v(this), i), this._layerControlInputs.push(n), n.layerId = v(t.layer), B(n, "click", this._onInputClick, this);
|
|
2543
2543
|
var o = document.createElement("span");
|
|
2544
2544
|
o.innerHTML = " " + t.name;
|
|
2545
|
-
var
|
|
2546
|
-
e.appendChild(
|
|
2545
|
+
var s = document.createElement("span");
|
|
2546
|
+
e.appendChild(s), s.appendChild(n), s.appendChild(o);
|
|
2547
2547
|
var c = t.overlay ? this._overlaysList : this._baseLayersList;
|
|
2548
2548
|
return c.appendChild(e), this._checkDisabledLayers(), e;
|
|
2549
2549
|
},
|
|
@@ -2551,12 +2551,12 @@ function js() {
|
|
|
2551
2551
|
if (!this._preventClick) {
|
|
2552
2552
|
var t = this._layerControlInputs, e, i, n = [], o = [];
|
|
2553
2553
|
this._handlingClick = !0;
|
|
2554
|
-
for (var
|
|
2555
|
-
e = t[
|
|
2556
|
-
for (
|
|
2557
|
-
this._map.hasLayer(o[
|
|
2558
|
-
for (
|
|
2559
|
-
this._map.hasLayer(n[
|
|
2554
|
+
for (var s = t.length - 1; s >= 0; s--)
|
|
2555
|
+
e = t[s], i = this._getLayer(e.layerId).layer, e.checked ? n.push(i) : e.checked || o.push(i);
|
|
2556
|
+
for (s = 0; s < o.length; s++)
|
|
2557
|
+
this._map.hasLayer(o[s]) && this._map.removeLayer(o[s]);
|
|
2558
|
+
for (s = 0; s < n.length; s++)
|
|
2559
|
+
this._map.hasLayer(n[s]) || this._map.addLayer(n[s]);
|
|
2560
2560
|
this._handlingClick = !1, this._refocusOnMap();
|
|
2561
2561
|
}
|
|
2562
2562
|
},
|
|
@@ -2575,9 +2575,9 @@ function js() {
|
|
|
2575
2575
|
q(t, "click", dt), e._preventClick = !1;
|
|
2576
2576
|
});
|
|
2577
2577
|
}
|
|
2578
|
-
}),
|
|
2578
|
+
}), Br = function(t, e, i) {
|
|
2579
2579
|
return new zn(t, e, i);
|
|
2580
|
-
}, Si =
|
|
2580
|
+
}, Si = Tt.extend({
|
|
2581
2581
|
// @section
|
|
2582
2582
|
// @aka Control.Zoom options
|
|
2583
2583
|
options: {
|
|
@@ -2627,8 +2627,8 @@ function js() {
|
|
|
2627
2627
|
!this._disabled && this._map._zoom > this._map.getMinZoom() && this._map.zoomOut(this._map.options.zoomDelta * (t.shiftKey ? 3 : 1));
|
|
2628
2628
|
},
|
|
2629
2629
|
_createButton: function(t, e, i, n, o) {
|
|
2630
|
-
var
|
|
2631
|
-
return
|
|
2630
|
+
var s = V("a", i, n);
|
|
2631
|
+
return s.innerHTML = t, s.href = "#", s.title = e, s.setAttribute("role", "button"), s.setAttribute("aria-label", e), xe(s), B(s, "click", Jt), B(s, "click", o, this), B(s, "click", this._refocusOnMap, this), s;
|
|
2632
2632
|
},
|
|
2633
2633
|
_updateDisabled: function() {
|
|
2634
2634
|
var t = this._map, e = "leaflet-disabled";
|
|
@@ -2640,9 +2640,9 @@ function js() {
|
|
|
2640
2640
|
}), j.addInitHook(function() {
|
|
2641
2641
|
this.options.zoomControl && (this.zoomControl = new Si(), this.addControl(this.zoomControl));
|
|
2642
2642
|
});
|
|
2643
|
-
var
|
|
2643
|
+
var Nr = function(t) {
|
|
2644
2644
|
return new Si(t);
|
|
2645
|
-
}, Mn =
|
|
2645
|
+
}, Mn = Tt.extend({
|
|
2646
2646
|
// @section
|
|
2647
2647
|
// @aka Control.Scale options
|
|
2648
2648
|
options: {
|
|
@@ -2694,16 +2694,16 @@ function js() {
|
|
|
2694
2694
|
var e = Math.pow(10, (Math.floor(t) + "").length - 1), i = t / e;
|
|
2695
2695
|
return i = i >= 10 ? 10 : i >= 5 ? 5 : i >= 3 ? 3 : i >= 2 ? 2 : 1, e * i;
|
|
2696
2696
|
}
|
|
2697
|
-
}),
|
|
2697
|
+
}), Dr = function(t) {
|
|
2698
2698
|
return new Mn(t);
|
|
2699
|
-
},
|
|
2699
|
+
}, Fr = '<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>', zi = Tt.extend({
|
|
2700
2700
|
// @section
|
|
2701
2701
|
// @aka Control.Attribution options
|
|
2702
2702
|
options: {
|
|
2703
2703
|
position: "bottomright",
|
|
2704
2704
|
// @option prefix: String|false = 'Leaflet'
|
|
2705
2705
|
// The HTML text shown before the attributions. Pass `false` to disable.
|
|
2706
|
-
prefix: '<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">' + (z.inlineSvg ?
|
|
2706
|
+
prefix: '<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">' + (z.inlineSvg ? Fr + " " : "") + "Leaflet</a>"
|
|
2707
2707
|
},
|
|
2708
2708
|
initialize: function(t) {
|
|
2709
2709
|
S(this, t), this._attributions = {};
|
|
@@ -2752,10 +2752,10 @@ function js() {
|
|
|
2752
2752
|
}), j.addInitHook(function() {
|
|
2753
2753
|
this.options.attributionControl && new zi().addTo(this);
|
|
2754
2754
|
});
|
|
2755
|
-
var
|
|
2755
|
+
var Wr = function(t) {
|
|
2756
2756
|
return new zi(t);
|
|
2757
2757
|
};
|
|
2758
|
-
|
|
2758
|
+
Tt.Layers = zn, Tt.Zoom = Si, Tt.Scale = Mn, Tt.Attribution = zi, Pe.layers = Br, Pe.zoom = Nr, Pe.scale = Dr, Pe.attribution = Wr;
|
|
2759
2759
|
var Ot = vt.extend({
|
|
2760
2760
|
initialize: function(t) {
|
|
2761
2761
|
this._map = t;
|
|
@@ -2785,7 +2785,7 @@ function js() {
|
|
|
2785
2785
|
Ot.addTo = function(t, e) {
|
|
2786
2786
|
return t.addHandler(e, this), this;
|
|
2787
2787
|
};
|
|
2788
|
-
var
|
|
2788
|
+
var Hr = { Events: K }, En = z.touch ? "touchstart mousedown" : "mousedown", Ht = yt.extend({
|
|
2789
2789
|
options: {
|
|
2790
2790
|
// @section
|
|
2791
2791
|
// @aka Draggable options
|
|
@@ -2851,18 +2851,18 @@ function js() {
|
|
|
2851
2851
|
}
|
|
2852
2852
|
});
|
|
2853
2853
|
function On(t, e, i) {
|
|
2854
|
-
var n, o = [1, 4, 2, 8],
|
|
2855
|
-
for (
|
|
2856
|
-
t[
|
|
2854
|
+
var n, o = [1, 4, 2, 8], s, c, d, f, _, x, E, H;
|
|
2855
|
+
for (s = 0, x = t.length; s < x; s++)
|
|
2856
|
+
t[s]._code = Qt(t[s], e);
|
|
2857
2857
|
for (d = 0; d < 4; d++) {
|
|
2858
|
-
for (E = o[d], n = [],
|
|
2859
|
-
f = t[
|
|
2858
|
+
for (E = o[d], n = [], s = 0, x = t.length, c = x - 1; s < x; c = s++)
|
|
2859
|
+
f = t[s], _ = t[c], f._code & E ? _._code & E || (H = We(_, f, E, e, i), H._code = Qt(H, e), n.push(H)) : (_._code & E && (H = We(_, f, E, e, i), H._code = Qt(H, e), n.push(H)), n.push(f));
|
|
2860
2860
|
t = n;
|
|
2861
2861
|
}
|
|
2862
2862
|
return t;
|
|
2863
2863
|
}
|
|
2864
2864
|
function An(t, e) {
|
|
2865
|
-
var i, n, o,
|
|
2865
|
+
var i, n, o, s, c, d, f, _, x;
|
|
2866
2866
|
if (!t || t.length === 0)
|
|
2867
2867
|
throw new Error("latlngs not passed");
|
|
2868
2868
|
wt(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
|
|
@@ -2874,19 +2874,19 @@ function js() {
|
|
|
2874
2874
|
xt.push(e.project(M([gt.lat - E.lat, gt.lng - E.lng])));
|
|
2875
2875
|
}
|
|
2876
2876
|
for (d = f = _ = 0, i = 0, n = at - 1; i < at; n = i++)
|
|
2877
|
-
o = xt[i],
|
|
2877
|
+
o = xt[i], s = xt[n], c = o.y * s.x - s.y * o.x, f += (o.x + s.x) * c, _ += (o.y + s.y) * c, d += c * 3;
|
|
2878
2878
|
d === 0 ? x = xt[0] : x = [f / d, _ / d];
|
|
2879
2879
|
var me = e.unproject(y(x));
|
|
2880
2880
|
return M([me.lat + E.lat, me.lng + E.lng]);
|
|
2881
2881
|
}
|
|
2882
2882
|
function Mi(t) {
|
|
2883
2883
|
for (var e = 0, i = 0, n = 0, o = 0; o < t.length; o++) {
|
|
2884
|
-
var
|
|
2885
|
-
e +=
|
|
2884
|
+
var s = M(t[o]);
|
|
2885
|
+
e += s.lat, i += s.lng, n++;
|
|
2886
2886
|
}
|
|
2887
2887
|
return M([e / n, i / n]);
|
|
2888
2888
|
}
|
|
2889
|
-
var
|
|
2889
|
+
var jr = {
|
|
2890
2890
|
__proto__: null,
|
|
2891
2891
|
clipPolygon: On,
|
|
2892
2892
|
polygonCenter: An,
|
|
@@ -2896,59 +2896,59 @@ function js() {
|
|
|
2896
2896
|
if (!e || !t.length)
|
|
2897
2897
|
return t.slice();
|
|
2898
2898
|
var i = e * e;
|
|
2899
|
-
return t =
|
|
2899
|
+
return t = Ur(t, i), t = Vr(t, i), t;
|
|
2900
2900
|
}
|
|
2901
2901
|
function Rn(t, e, i) {
|
|
2902
2902
|
return Math.sqrt(Le(t, e, i, !0));
|
|
2903
2903
|
}
|
|
2904
|
-
function
|
|
2904
|
+
function Gr(t, e, i) {
|
|
2905
2905
|
return Le(t, e, i);
|
|
2906
2906
|
}
|
|
2907
|
-
function
|
|
2907
|
+
function Vr(t, e) {
|
|
2908
2908
|
var i = t.length, n = typeof Uint8Array < "u" ? Uint8Array : Array, o = new n(i);
|
|
2909
2909
|
o[0] = o[i - 1] = 1, Ei(t, o, e, 0, i - 1);
|
|
2910
|
-
var
|
|
2911
|
-
for (
|
|
2912
|
-
o[
|
|
2910
|
+
var s, c = [];
|
|
2911
|
+
for (s = 0; s < i; s++)
|
|
2912
|
+
o[s] && c.push(t[s]);
|
|
2913
2913
|
return c;
|
|
2914
2914
|
}
|
|
2915
2915
|
function Ei(t, e, i, n, o) {
|
|
2916
|
-
var
|
|
2916
|
+
var s = 0, c, d, f;
|
|
2917
2917
|
for (d = n + 1; d <= o - 1; d++)
|
|
2918
|
-
f = Le(t[d], t[n], t[o], !0), f >
|
|
2919
|
-
|
|
2918
|
+
f = Le(t[d], t[n], t[o], !0), f > s && (c = d, s = f);
|
|
2919
|
+
s > i && (e[c] = 1, Ei(t, e, i, n, c), Ei(t, e, i, c, o));
|
|
2920
2920
|
}
|
|
2921
|
-
function
|
|
2922
|
-
for (var i = [t[0]], n = 1, o = 0,
|
|
2923
|
-
|
|
2924
|
-
return o <
|
|
2921
|
+
function Ur(t, e) {
|
|
2922
|
+
for (var i = [t[0]], n = 1, o = 0, s = t.length; n < s; n++)
|
|
2923
|
+
$r(t[n], t[o]) > e && (i.push(t[n]), o = n);
|
|
2924
|
+
return o < s - 1 && i.push(t[s - 1]), i;
|
|
2925
2925
|
}
|
|
2926
2926
|
var Zn;
|
|
2927
2927
|
function Bn(t, e, i, n, o) {
|
|
2928
|
-
var
|
|
2928
|
+
var s = n ? Zn : Qt(t, i), c = Qt(e, i), d, f, _;
|
|
2929
2929
|
for (Zn = c; ; ) {
|
|
2930
|
-
if (!(
|
|
2930
|
+
if (!(s | c))
|
|
2931
2931
|
return [t, e];
|
|
2932
|
-
if (
|
|
2932
|
+
if (s & c)
|
|
2933
2933
|
return !1;
|
|
2934
|
-
d =
|
|
2934
|
+
d = s || c, f = We(t, e, d, i, o), _ = Qt(f, i), d === s ? (t = f, s = _) : (e = f, c = _);
|
|
2935
2935
|
}
|
|
2936
2936
|
}
|
|
2937
2937
|
function We(t, e, i, n, o) {
|
|
2938
|
-
var
|
|
2939
|
-
return i & 8 ? (_ = t.x +
|
|
2938
|
+
var s = e.x - t.x, c = e.y - t.y, d = n.min, f = n.max, _, x;
|
|
2939
|
+
return i & 8 ? (_ = t.x + s * (f.y - t.y) / c, x = f.y) : i & 4 ? (_ = t.x + s * (d.y - t.y) / c, x = d.y) : i & 2 ? (_ = f.x, x = t.y + c * (f.x - t.x) / s) : i & 1 && (_ = d.x, x = t.y + c * (d.x - t.x) / s), new A(_, x, o);
|
|
2940
2940
|
}
|
|
2941
2941
|
function Qt(t, e) {
|
|
2942
2942
|
var i = 0;
|
|
2943
2943
|
return t.x < e.min.x ? i |= 1 : t.x > e.max.x && (i |= 2), t.y < e.min.y ? i |= 4 : t.y > e.max.y && (i |= 8), i;
|
|
2944
2944
|
}
|
|
2945
|
-
function
|
|
2945
|
+
function $r(t, e) {
|
|
2946
2946
|
var i = e.x - t.x, n = e.y - t.y;
|
|
2947
2947
|
return i * i + n * n;
|
|
2948
2948
|
}
|
|
2949
2949
|
function Le(t, e, i, n) {
|
|
2950
|
-
var o = e.x,
|
|
2951
|
-
return f > 0 && (_ = ((t.x - o) * c + (t.y -
|
|
2950
|
+
var o = e.x, s = e.y, c = i.x - o, d = i.y - s, f = c * c + d * d, _;
|
|
2951
|
+
return f > 0 && (_ = ((t.x - o) * c + (t.y - s) * d) / f, _ > 1 ? (o = i.x, s = i.y) : _ > 0 && (o += c * _, s += d * _)), c = t.x - o, d = t.y - s, n ? c * c + d * d : new A(o, s);
|
|
2952
2952
|
}
|
|
2953
2953
|
function wt(t) {
|
|
2954
2954
|
return !U(t[0]) || typeof t[0][0] != "object" && typeof t[0][0] < "u";
|
|
@@ -2957,7 +2957,7 @@ function js() {
|
|
|
2957
2957
|
return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."), wt(t);
|
|
2958
2958
|
}
|
|
2959
2959
|
function Dn(t, e) {
|
|
2960
|
-
var i, n, o,
|
|
2960
|
+
var i, n, o, s, c, d, f, _;
|
|
2961
2961
|
if (!t || t.length === 0)
|
|
2962
2962
|
throw new Error("latlngs not passed");
|
|
2963
2963
|
wt(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
|
|
@@ -2973,9 +2973,9 @@ function js() {
|
|
|
2973
2973
|
if (n === 0)
|
|
2974
2974
|
_ = at[0];
|
|
2975
2975
|
else
|
|
2976
|
-
for (i = 0,
|
|
2977
|
-
if (c = at[i], d = at[i + 1], o = c.distanceTo(d),
|
|
2978
|
-
f = (
|
|
2976
|
+
for (i = 0, s = 0; i < pt - 1; i++)
|
|
2977
|
+
if (c = at[i], d = at[i + 1], o = c.distanceTo(d), s += o, s > n) {
|
|
2978
|
+
f = (s - n) / o, _ = [
|
|
2979
2979
|
d.x - f * (d.x - c.x),
|
|
2980
2980
|
d.y - f * (d.y - c.y)
|
|
2981
2981
|
];
|
|
@@ -2984,11 +2984,11 @@ function js() {
|
|
|
2984
2984
|
var gt = e.unproject(y(_));
|
|
2985
2985
|
return M([gt.lat + x.lat, gt.lng + x.lng]);
|
|
2986
2986
|
}
|
|
2987
|
-
var
|
|
2987
|
+
var qr = {
|
|
2988
2988
|
__proto__: null,
|
|
2989
2989
|
simplify: In,
|
|
2990
2990
|
pointToSegmentDistance: Rn,
|
|
2991
|
-
closestPointOnSegment:
|
|
2991
|
+
closestPointOnSegment: Gr,
|
|
2992
2992
|
clipSegment: Bn,
|
|
2993
2993
|
_getEdgeIntersection: We,
|
|
2994
2994
|
_getBitCode: Qt,
|
|
@@ -3009,31 +3009,31 @@ function js() {
|
|
|
3009
3009
|
R_MINOR: 6356752314245179e-9,
|
|
3010
3010
|
bounds: new $([-2003750834279e-5, -1549657073972e-5], [2003750834279e-5, 1876465623138e-5]),
|
|
3011
3011
|
project: function(t) {
|
|
3012
|
-
var e = Math.PI / 180, i = this.R, n = t.lat * e, o = this.R_MINOR / i,
|
|
3012
|
+
var e = Math.PI / 180, i = this.R, n = t.lat * e, o = this.R_MINOR / i, s = Math.sqrt(1 - o * o), c = s * Math.sin(n), d = Math.tan(Math.PI / 4 - n / 2) / Math.pow((1 - c) / (1 + c), s / 2);
|
|
3013
3013
|
return n = -i * Math.log(Math.max(d, 1e-10)), new A(t.lng * e * i, n);
|
|
3014
3014
|
},
|
|
3015
3015
|
unproject: function(t) {
|
|
3016
|
-
for (var e = 180 / Math.PI, i = this.R, n = this.R_MINOR / i, o = Math.sqrt(1 - n * n),
|
|
3017
|
-
_ = o * Math.sin(c), _ = Math.pow((1 - _) / (1 + _), o / 2), f = Math.PI / 2 - 2 * Math.atan(
|
|
3016
|
+
for (var e = 180 / Math.PI, i = this.R, n = this.R_MINOR / i, o = Math.sqrt(1 - n * n), s = Math.exp(-t.y / i), c = Math.PI / 2 - 2 * Math.atan(s), d = 0, f = 0.1, _; d < 15 && Math.abs(f) > 1e-7; d++)
|
|
3017
|
+
_ = o * Math.sin(c), _ = Math.pow((1 - _) / (1 + _), o / 2), f = Math.PI / 2 - 2 * Math.atan(s * _) - c, c += f;
|
|
3018
3018
|
return new I(c * e, t.x * e / i);
|
|
3019
3019
|
}
|
|
3020
|
-
},
|
|
3020
|
+
}, Kr = {
|
|
3021
3021
|
__proto__: null,
|
|
3022
3022
|
LonLat: Oi,
|
|
3023
3023
|
Mercator: Ai,
|
|
3024
3024
|
SphericalMercator: oe
|
|
3025
|
-
},
|
|
3025
|
+
}, Yr = u({}, kt, {
|
|
3026
3026
|
code: "EPSG:3395",
|
|
3027
3027
|
projection: Ai,
|
|
3028
3028
|
transformation: (function() {
|
|
3029
3029
|
var t = 0.5 / (Math.PI * Ai.R);
|
|
3030
3030
|
return zt(t, 0.5, -t, 0.5);
|
|
3031
3031
|
})()
|
|
3032
|
-
}), Fn = u({},
|
|
3032
|
+
}), Fn = u({}, kt, {
|
|
3033
3033
|
code: "EPSG:4326",
|
|
3034
3034
|
projection: Oi,
|
|
3035
3035
|
transformation: zt(1 / 180, 1, -1 / 180, 0.5)
|
|
3036
|
-
}),
|
|
3036
|
+
}), Xr = u({}, _t, {
|
|
3037
3037
|
projection: Oi,
|
|
3038
3038
|
transformation: zt(1, 0, -1, 0),
|
|
3039
3039
|
scale: function(t) {
|
|
@@ -3048,8 +3048,8 @@ function js() {
|
|
|
3048
3048
|
},
|
|
3049
3049
|
infinite: !0
|
|
3050
3050
|
});
|
|
3051
|
-
_t.Earth =
|
|
3052
|
-
var
|
|
3051
|
+
_t.Earth = kt, _t.EPSG3395 = Yr, _t.EPSG3857 = qt, _t.EPSG900913 = re, _t.EPSG4326 = Fn, _t.Simple = Xr;
|
|
3052
|
+
var Ct = yt.extend({
|
|
3053
3053
|
// Classes extending `L.Layer` will inherit the following options:
|
|
3054
3054
|
options: {
|
|
3055
3055
|
// @option pane: String = 'overlayPane'
|
|
@@ -3166,7 +3166,7 @@ function js() {
|
|
|
3166
3166
|
this._layersMaxZoom = e === -1 / 0 ? void 0 : e, this._layersMinZoom = t === 1 / 0 ? void 0 : t, i !== this._getZoomSpan() && this.fire("zoomlevelschange"), this.options.maxZoom === void 0 && this._layersMaxZoom && this.getZoom() > this._layersMaxZoom && this.setZoom(this._layersMaxZoom), this.options.minZoom === void 0 && this._layersMinZoom && this.getZoom() < this._layersMinZoom && this.setZoom(this._layersMinZoom);
|
|
3167
3167
|
}
|
|
3168
3168
|
});
|
|
3169
|
-
var he =
|
|
3169
|
+
var he = Ct.extend({
|
|
3170
3170
|
initialize: function(t, e) {
|
|
3171
3171
|
S(this, e), this._layers = {};
|
|
3172
3172
|
var i, n;
|
|
@@ -3252,7 +3252,7 @@ function js() {
|
|
|
3252
3252
|
getLayerId: function(t) {
|
|
3253
3253
|
return v(t);
|
|
3254
3254
|
}
|
|
3255
|
-
}),
|
|
3255
|
+
}), Jr = function(t, e) {
|
|
3256
3256
|
return new he(t, e);
|
|
3257
3257
|
}, Rt = he.extend({
|
|
3258
3258
|
addLayer: function(t) {
|
|
@@ -3286,7 +3286,7 @@ function js() {
|
|
|
3286
3286
|
}
|
|
3287
3287
|
return t;
|
|
3288
3288
|
}
|
|
3289
|
-
}),
|
|
3289
|
+
}), Qr = function(t, e) {
|
|
3290
3290
|
return new Rt(t, e);
|
|
3291
3291
|
}, ce = vt.extend({
|
|
3292
3292
|
/* @section
|
|
@@ -3364,8 +3364,8 @@ function js() {
|
|
|
3364
3364
|
_setIconStyles: function(t, e) {
|
|
3365
3365
|
var i = this.options, n = i[e + "Size"];
|
|
3366
3366
|
typeof n == "number" && (n = [n, n]);
|
|
3367
|
-
var o = y(n),
|
|
3368
|
-
t.className = "leaflet-marker-" + e + " " + (i.className || ""),
|
|
3367
|
+
var o = y(n), s = y(e === "shadow" && i.shadowAnchor || i.iconAnchor || o && o.divideBy(2, !0));
|
|
3368
|
+
t.className = "leaflet-marker-" + e + " " + (i.className || ""), s && (t.style.marginLeft = -s.x + "px", t.style.marginTop = -s.y + "px"), o && (t.style.width = o.x + "px", t.style.height = o.y + "px");
|
|
3369
3369
|
},
|
|
3370
3370
|
_createImg: function(t, e) {
|
|
3371
3371
|
return e = e || document.createElement("img"), e.src = t, e;
|
|
@@ -3374,7 +3374,7 @@ function js() {
|
|
|
3374
3374
|
return z.retina && this.options[t + "RetinaUrl"] || this.options[t + "Url"];
|
|
3375
3375
|
}
|
|
3376
3376
|
});
|
|
3377
|
-
function
|
|
3377
|
+
function ts(t) {
|
|
3378
3378
|
return new ce(t);
|
|
3379
3379
|
}
|
|
3380
3380
|
var ke = ce.extend({
|
|
@@ -3393,8 +3393,8 @@ function js() {
|
|
|
3393
3393
|
},
|
|
3394
3394
|
_stripUrl: function(t) {
|
|
3395
3395
|
var e = function(i, n, o) {
|
|
3396
|
-
var
|
|
3397
|
-
return
|
|
3396
|
+
var s = n.exec(i);
|
|
3397
|
+
return s && s[o];
|
|
3398
3398
|
};
|
|
3399
3399
|
return t = e(t, /^url\((['"])?(.+)\1\)$/, 2), t && e(t, /^(.*)marker-icon\.png$/, 1);
|
|
3400
3400
|
},
|
|
@@ -3430,14 +3430,14 @@ function js() {
|
|
|
3430
3430
|
return this._draggable && this._draggable._moved;
|
|
3431
3431
|
},
|
|
3432
3432
|
_adjustPan: function(t) {
|
|
3433
|
-
var e = this._marker, i = e._map, n = this._marker.options.autoPanSpeed, o = this._marker.options.autoPanPadding,
|
|
3433
|
+
var e = this._marker, i = e._map, n = this._marker.options.autoPanSpeed, o = this._marker.options.autoPanPadding, s = Yt(e._icon), c = i.getPixelBounds(), d = i.getPixelOrigin(), f = ct(
|
|
3434
3434
|
c.min._subtract(d).add(o),
|
|
3435
3435
|
c.max._subtract(d).subtract(o)
|
|
3436
3436
|
);
|
|
3437
|
-
if (!f.contains(
|
|
3437
|
+
if (!f.contains(s)) {
|
|
3438
3438
|
var _ = y(
|
|
3439
|
-
(Math.max(f.max.x,
|
|
3440
|
-
(Math.max(f.max.y,
|
|
3439
|
+
(Math.max(f.max.x, s.x) - f.max.x) / (c.max.x - f.max.x) - (Math.min(f.min.x, s.x) - f.min.x) / (c.min.x - f.min.x),
|
|
3440
|
+
(Math.max(f.max.y, s.y) - f.max.y) / (c.max.y - f.max.y) - (Math.min(f.min.y, s.y) - f.min.y) / (c.min.y - f.min.y)
|
|
3441
3441
|
).multiplyBy(n);
|
|
3442
3442
|
i.panBy(_, { animate: !1 }), this._draggable._newPos._add(_), this._draggable._startPos._add(_), ot(e._icon, this._draggable._newPos), this._onDrag(t), this._panRequest = tt(this._adjustPan.bind(this, t));
|
|
3443
3443
|
}
|
|
@@ -3455,7 +3455,7 @@ function js() {
|
|
|
3455
3455
|
_onDragEnd: function(t) {
|
|
3456
3456
|
ht(this._panRequest), delete this._oldLatLng, this._marker.fire("moveend").fire("dragend", t);
|
|
3457
3457
|
}
|
|
3458
|
-
}), He =
|
|
3458
|
+
}), He = Ct.extend({
|
|
3459
3459
|
// @section
|
|
3460
3460
|
// @aka Marker options
|
|
3461
3461
|
options: {
|
|
@@ -3580,8 +3580,8 @@ function js() {
|
|
|
3580
3580
|
mouseover: this._bringToFront,
|
|
3581
3581
|
mouseout: this._resetZIndex
|
|
3582
3582
|
}), this.options.autoPanOnFocus && B(i, "focus", this._panOnFocus, this);
|
|
3583
|
-
var o = t.icon.createShadow(this._shadow),
|
|
3584
|
-
o !== this._shadow && (this._removeShadow(),
|
|
3583
|
+
var o = t.icon.createShadow(this._shadow), s = !1;
|
|
3584
|
+
o !== this._shadow && (this._removeShadow(), s = !0), o && (N(o, e), o.alt = ""), this._shadow = o, t.opacity < 1 && this._updateOpacity(), n && this.getPane().appendChild(this._icon), this._initInteraction(), o && s && this.getPane(t.shadowPane).appendChild(this._shadow);
|
|
3585
3585
|
},
|
|
3586
3586
|
_removeIcon: function() {
|
|
3587
3587
|
this.options.riseOnHover && this.off({
|
|
@@ -3640,10 +3640,10 @@ function js() {
|
|
|
3640
3640
|
return this.options.icon.options.tooltipAnchor;
|
|
3641
3641
|
}
|
|
3642
3642
|
});
|
|
3643
|
-
function
|
|
3643
|
+
function es(t, e) {
|
|
3644
3644
|
return new He(t, e);
|
|
3645
3645
|
}
|
|
3646
|
-
var jt =
|
|
3646
|
+
var jt = Ct.extend({
|
|
3647
3647
|
// @section
|
|
3648
3648
|
// @aka Path options
|
|
3649
3649
|
options: {
|
|
@@ -3787,7 +3787,7 @@ function js() {
|
|
|
3787
3787
|
return t.distanceTo(this._point) <= this._radius + this._clickTolerance();
|
|
3788
3788
|
}
|
|
3789
3789
|
});
|
|
3790
|
-
function
|
|
3790
|
+
function is(t, e) {
|
|
3791
3791
|
return new je(t, e);
|
|
3792
3792
|
}
|
|
3793
3793
|
var Ii = je.extend({
|
|
@@ -3818,9 +3818,9 @@ function js() {
|
|
|
3818
3818
|
setStyle: jt.prototype.setStyle,
|
|
3819
3819
|
_project: function() {
|
|
3820
3820
|
var t = this._latlng.lng, e = this._latlng.lat, i = this._map, n = i.options.crs;
|
|
3821
|
-
if (n.distance ===
|
|
3822
|
-
var o = Math.PI / 180,
|
|
3823
|
-
(isNaN(x) || x === 0) && (x =
|
|
3821
|
+
if (n.distance === kt.distance) {
|
|
3822
|
+
var o = Math.PI / 180, s = this._mRadius / kt.R / o, c = i.project([e + s, t]), d = i.project([e - s, t]), f = c.add(d).divideBy(2), _ = i.unproject(f).lat, x = Math.acos((Math.cos(s * o) - Math.sin(e * o) * Math.sin(_ * o)) / (Math.cos(e * o) * Math.cos(_ * o))) / o;
|
|
3823
|
+
(isNaN(x) || x === 0) && (x = s / Math.cos(Math.PI / 180 * e)), this._point = f.subtract(i.getPixelOrigin()), this._radius = isNaN(x) ? 0 : f.x - i.project([_, t - x]).x, this._radiusY = f.y - c.y;
|
|
3824
3824
|
} else {
|
|
3825
3825
|
var E = n.unproject(n.project(this._latlng).subtract([this._mRadius, 0]));
|
|
3826
3826
|
this._point = i.latLngToLayerPoint(this._latlng), this._radius = this._point.x - i.latLngToLayerPoint(E).x;
|
|
@@ -3828,7 +3828,7 @@ function js() {
|
|
|
3828
3828
|
this._updateBounds();
|
|
3829
3829
|
}
|
|
3830
3830
|
});
|
|
3831
|
-
function
|
|
3831
|
+
function ns(t, e, i) {
|
|
3832
3832
|
return new Ii(t, e, i);
|
|
3833
3833
|
}
|
|
3834
3834
|
var Zt = jt.extend({
|
|
@@ -3864,11 +3864,11 @@ function js() {
|
|
|
3864
3864
|
// @method closestLayerPoint(p: Point): Point
|
|
3865
3865
|
// Returns the point closest to `p` on the Polyline.
|
|
3866
3866
|
closestLayerPoint: function(t) {
|
|
3867
|
-
for (var e = 1 / 0, i = null, n = Le, o,
|
|
3867
|
+
for (var e = 1 / 0, i = null, n = Le, o, s, c = 0, d = this._parts.length; c < d; c++)
|
|
3868
3868
|
for (var f = this._parts[c], _ = 1, x = f.length; _ < x; _++) {
|
|
3869
|
-
o = f[_ - 1],
|
|
3870
|
-
var E = n(t, o,
|
|
3871
|
-
E < e && (e = E, i = n(t, o,
|
|
3869
|
+
o = f[_ - 1], s = f[_];
|
|
3870
|
+
var E = n(t, o, s, !0);
|
|
3871
|
+
E < e && (e = E, i = n(t, o, s));
|
|
3872
3872
|
}
|
|
3873
3873
|
return i && (i.distance = Math.sqrt(e)), i;
|
|
3874
3874
|
},
|
|
@@ -3916,14 +3916,14 @@ function js() {
|
|
|
3916
3916
|
},
|
|
3917
3917
|
// recursively turns latlngs into a set of rings with projected coordinates
|
|
3918
3918
|
_projectLatlngs: function(t, e, i) {
|
|
3919
|
-
var n = t[0] instanceof I, o = t.length,
|
|
3919
|
+
var n = t[0] instanceof I, o = t.length, s, c;
|
|
3920
3920
|
if (n) {
|
|
3921
|
-
for (c = [],
|
|
3922
|
-
c[
|
|
3921
|
+
for (c = [], s = 0; s < o; s++)
|
|
3922
|
+
c[s] = this._map.latLngToLayerPoint(t[s]), i.extend(c[s]);
|
|
3923
3923
|
e.push(c);
|
|
3924
3924
|
} else
|
|
3925
|
-
for (
|
|
3926
|
-
this._projectLatlngs(t[
|
|
3925
|
+
for (s = 0; s < o; s++)
|
|
3926
|
+
this._projectLatlngs(t[s], e, i);
|
|
3927
3927
|
},
|
|
3928
3928
|
// clip polyline by renderer bounds so that we have less to render for performance
|
|
3929
3929
|
_clipPoints: function() {
|
|
@@ -3933,8 +3933,8 @@ function js() {
|
|
|
3933
3933
|
this._parts = this._rings;
|
|
3934
3934
|
return;
|
|
3935
3935
|
}
|
|
3936
|
-
var e = this._parts, i, n, o,
|
|
3937
|
-
for (i = 0, o = 0,
|
|
3936
|
+
var e = this._parts, i, n, o, s, c, d, f;
|
|
3937
|
+
for (i = 0, o = 0, s = this._rings.length; i < s; i++)
|
|
3938
3938
|
for (f = this._rings[i], n = 0, c = f.length; n < c - 1; n++)
|
|
3939
3939
|
d = Bn(f[n], f[n + 1], t, n, !0), d && (e[o] = e[o] || [], e[o].push(d[0]), (d[1] !== f[n + 1] || n === c - 2) && (e[o].push(d[1]), o++));
|
|
3940
3940
|
}
|
|
@@ -3952,17 +3952,17 @@ function js() {
|
|
|
3952
3952
|
},
|
|
3953
3953
|
// Needed by the `Canvas` renderer for interactivity
|
|
3954
3954
|
_containsPoint: function(t, e) {
|
|
3955
|
-
var i, n, o,
|
|
3955
|
+
var i, n, o, s, c, d, f = this._clickTolerance();
|
|
3956
3956
|
if (!this._pxBounds || !this._pxBounds.contains(t))
|
|
3957
3957
|
return !1;
|
|
3958
|
-
for (i = 0,
|
|
3958
|
+
for (i = 0, s = this._parts.length; i < s; i++)
|
|
3959
3959
|
for (d = this._parts[i], n = 0, c = d.length, o = c - 1; n < c; o = n++)
|
|
3960
3960
|
if (!(!e && n === 0) && Rn(t, d[o], d[n]) <= f)
|
|
3961
3961
|
return !0;
|
|
3962
3962
|
return !1;
|
|
3963
3963
|
}
|
|
3964
3964
|
});
|
|
3965
|
-
function
|
|
3965
|
+
function os(t, e) {
|
|
3966
3966
|
return new Zt(t, e);
|
|
3967
3967
|
}
|
|
3968
3968
|
Zt._flat = Nn;
|
|
@@ -3997,8 +3997,8 @@ function js() {
|
|
|
3997
3997
|
this._parts = this._rings;
|
|
3998
3998
|
return;
|
|
3999
3999
|
}
|
|
4000
|
-
for (var n = 0, o = this._rings.length,
|
|
4001
|
-
|
|
4000
|
+
for (var n = 0, o = this._rings.length, s; n < o; n++)
|
|
4001
|
+
s = On(this._rings[n], t, !0), s.length && this._parts.push(s);
|
|
4002
4002
|
}
|
|
4003
4003
|
},
|
|
4004
4004
|
_updatePath: function() {
|
|
@@ -4006,16 +4006,16 @@ function js() {
|
|
|
4006
4006
|
},
|
|
4007
4007
|
// Needed by the `Canvas` renderer for interactivity
|
|
4008
4008
|
_containsPoint: function(t) {
|
|
4009
|
-
var e = !1, i, n, o,
|
|
4009
|
+
var e = !1, i, n, o, s, c, d, f, _;
|
|
4010
4010
|
if (!this._pxBounds || !this._pxBounds.contains(t))
|
|
4011
4011
|
return !1;
|
|
4012
|
-
for (
|
|
4013
|
-
for (i = this._parts[
|
|
4012
|
+
for (s = 0, f = this._parts.length; s < f; s++)
|
|
4013
|
+
for (i = this._parts[s], c = 0, _ = i.length, d = _ - 1; c < _; d = c++)
|
|
4014
4014
|
n = i[c], o = i[d], n.y > t.y != o.y > t.y && t.x < (o.x - n.x) * (t.y - n.y) / (o.y - n.y) + n.x && (e = !e);
|
|
4015
4015
|
return e || Zt.prototype._containsPoint.call(this, t, !0);
|
|
4016
4016
|
}
|
|
4017
4017
|
});
|
|
4018
|
-
function
|
|
4018
|
+
function rs(t, e) {
|
|
4019
4019
|
return new ue(t, e);
|
|
4020
4020
|
}
|
|
4021
4021
|
var Bt = Rt.extend({
|
|
@@ -4080,11 +4080,11 @@ function js() {
|
|
|
4080
4080
|
o = e[i], (o.geometries || o.geometry || o.features || o.coordinates) && this.addData(o);
|
|
4081
4081
|
return this;
|
|
4082
4082
|
}
|
|
4083
|
-
var
|
|
4084
|
-
if (
|
|
4083
|
+
var s = this.options;
|
|
4084
|
+
if (s.filter && !s.filter(t))
|
|
4085
4085
|
return this;
|
|
4086
|
-
var c = Ge(t,
|
|
4087
|
-
return c ? (c.feature = $e(t), c.defaultOptions = c.options, this.resetStyle(c),
|
|
4086
|
+
var c = Ge(t, s);
|
|
4087
|
+
return c ? (c.feature = $e(t), c.defaultOptions = c.options, this.resetStyle(c), s.onEachFeature && s.onEachFeature(t, c), this.addLayer(c)) : this;
|
|
4088
4088
|
},
|
|
4089
4089
|
// @method resetStyle( <Path> layer? ): this
|
|
4090
4090
|
// Resets the given vector layer's style to the original GeoJSON style, useful for resetting style after hover events.
|
|
@@ -4104,15 +4104,15 @@ function js() {
|
|
|
4104
4104
|
}
|
|
4105
4105
|
});
|
|
4106
4106
|
function Ge(t, e) {
|
|
4107
|
-
var i = t.type === "Feature" ? t.geometry : t, n = i ? i.coordinates : null, o = [],
|
|
4107
|
+
var i = t.type === "Feature" ? t.geometry : t, n = i ? i.coordinates : null, o = [], s = e && e.pointToLayer, c = e && e.coordsToLatLng || Ri, d, f, _, x;
|
|
4108
4108
|
if (!n && !i)
|
|
4109
4109
|
return null;
|
|
4110
4110
|
switch (i.type) {
|
|
4111
4111
|
case "Point":
|
|
4112
|
-
return d = c(n), Hn(
|
|
4112
|
+
return d = c(n), Hn(s, t, d, e);
|
|
4113
4113
|
case "MultiPoint":
|
|
4114
4114
|
for (_ = 0, x = n.length; _ < x; _++)
|
|
4115
|
-
d = c(n[_]), o.push(Hn(
|
|
4115
|
+
d = c(n[_]), o.push(Hn(s, t, d, e));
|
|
4116
4116
|
return new Rt(o);
|
|
4117
4117
|
case "LineString":
|
|
4118
4118
|
case "MultiLineString":
|
|
@@ -4147,7 +4147,7 @@ function js() {
|
|
|
4147
4147
|
return new I(t[1], t[0], t[2]);
|
|
4148
4148
|
}
|
|
4149
4149
|
function Ve(t, e, i) {
|
|
4150
|
-
for (var n = [], o = 0,
|
|
4150
|
+
for (var n = [], o = 0, s = t.length, c; o < s; o++)
|
|
4151
4151
|
c = e ? Ve(t[o], e - 1, i) : (i || Ri)(t[o]), n.push(c);
|
|
4152
4152
|
return n;
|
|
4153
4153
|
}
|
|
@@ -4155,8 +4155,8 @@ function js() {
|
|
|
4155
4155
|
return t = M(t), t.alt !== void 0 ? [D(t.lng, e), D(t.lat, e), D(t.alt, e)] : [D(t.lng, e), D(t.lat, e)];
|
|
4156
4156
|
}
|
|
4157
4157
|
function Ue(t, e, i, n) {
|
|
4158
|
-
for (var o = [],
|
|
4159
|
-
o.push(e ? Ue(t[
|
|
4158
|
+
for (var o = [], s = 0, c = t.length; s < c; s++)
|
|
4159
|
+
o.push(e ? Ue(t[s], wt(t[s]) ? 0 : e - 1, i, n) : Zi(t[s], n));
|
|
4160
4160
|
return !e && i && o.length > 0 && o.push(o[0].slice()), o;
|
|
4161
4161
|
}
|
|
4162
4162
|
function de(t, e) {
|
|
@@ -4213,11 +4213,11 @@ function js() {
|
|
|
4213
4213
|
var i = e === "GeometryCollection", n = [];
|
|
4214
4214
|
return this.eachLayer(function(o) {
|
|
4215
4215
|
if (o.toGeoJSON) {
|
|
4216
|
-
var
|
|
4216
|
+
var s = o.toGeoJSON(t);
|
|
4217
4217
|
if (i)
|
|
4218
|
-
n.push(
|
|
4218
|
+
n.push(s.geometry);
|
|
4219
4219
|
else {
|
|
4220
|
-
var c = $e(
|
|
4220
|
+
var c = $e(s);
|
|
4221
4221
|
c.type === "FeatureCollection" ? n.push.apply(n, c.features) : n.push(c);
|
|
4222
4222
|
}
|
|
4223
4223
|
}
|
|
@@ -4233,7 +4233,7 @@ function js() {
|
|
|
4233
4233
|
function jn(t, e) {
|
|
4234
4234
|
return new Bt(t, e);
|
|
4235
4235
|
}
|
|
4236
|
-
var
|
|
4236
|
+
var ss = jn, qe = Ct.extend({
|
|
4237
4237
|
// @section
|
|
4238
4238
|
// @aka ImageOverlay options
|
|
4239
4239
|
options: {
|
|
@@ -4356,7 +4356,7 @@ function js() {
|
|
|
4356
4356
|
getCenter: function() {
|
|
4357
4357
|
return this._bounds.getCenter();
|
|
4358
4358
|
}
|
|
4359
|
-
}),
|
|
4359
|
+
}), as = function(t, e, i) {
|
|
4360
4360
|
return new qe(t, e, i);
|
|
4361
4361
|
}, Gn = qe.extend({
|
|
4362
4362
|
// @section
|
|
@@ -4389,16 +4389,16 @@ function js() {
|
|
|
4389
4389
|
return;
|
|
4390
4390
|
}
|
|
4391
4391
|
U(this._url) || (this._url = [this._url]), !this.options.keepAspectRatio && Object.prototype.hasOwnProperty.call(e.style, "objectFit") && (e.style.objectFit = "fill"), e.autoplay = !!this.options.autoplay, e.loop = !!this.options.loop, e.muted = !!this.options.muted, e.playsInline = !!this.options.playsInline;
|
|
4392
|
-
for (var
|
|
4392
|
+
for (var s = 0; s < this._url.length; s++) {
|
|
4393
4393
|
var c = V("source");
|
|
4394
|
-
c.src = this._url[
|
|
4394
|
+
c.src = this._url[s], e.appendChild(c);
|
|
4395
4395
|
}
|
|
4396
4396
|
}
|
|
4397
4397
|
// @method getElement(): HTMLVideoElement
|
|
4398
4398
|
// Returns the instance of [`HTMLVideoElement`](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement)
|
|
4399
4399
|
// used by this overlay.
|
|
4400
4400
|
});
|
|
4401
|
-
function
|
|
4401
|
+
function ls(t, e, i) {
|
|
4402
4402
|
return new Gn(t, e, i);
|
|
4403
4403
|
}
|
|
4404
4404
|
var Vn = qe.extend({
|
|
@@ -4410,10 +4410,10 @@ function js() {
|
|
|
4410
4410
|
// Returns the instance of [`SVGElement`](https://developer.mozilla.org/docs/Web/API/SVGElement)
|
|
4411
4411
|
// used by this overlay.
|
|
4412
4412
|
});
|
|
4413
|
-
function
|
|
4413
|
+
function hs(t, e, i) {
|
|
4414
4414
|
return new Vn(t, e, i);
|
|
4415
4415
|
}
|
|
4416
|
-
var At =
|
|
4416
|
+
var At = Ct.extend({
|
|
4417
4417
|
// @section
|
|
4418
4418
|
// @aka DivOverlay options
|
|
4419
4419
|
options: {
|
|
@@ -4575,7 +4575,7 @@ function js() {
|
|
|
4575
4575
|
var o = e;
|
|
4576
4576
|
return o instanceof t || (o = new t(n).setContent(e)), i && o.setLatLng(i), o;
|
|
4577
4577
|
}
|
|
4578
|
-
}),
|
|
4578
|
+
}), Ct.include({
|
|
4579
4579
|
_initOverlay: function(t, e, i, n) {
|
|
4580
4580
|
var o = i;
|
|
4581
4581
|
return o instanceof t ? (S(o, n), o._source = this) : (o = e && !n ? e : new t(n, this), o.setContent(i)), o;
|
|
@@ -4674,8 +4674,8 @@ function js() {
|
|
|
4674
4674
|
e.width = "", e.whiteSpace = "nowrap";
|
|
4675
4675
|
var i = t.offsetWidth;
|
|
4676
4676
|
i = Math.min(i, this.options.maxWidth), i = Math.max(i, this.options.minWidth), e.width = i + 1 + "px", e.whiteSpace = "", e.height = "";
|
|
4677
|
-
var n = t.offsetHeight, o = this.options.maxHeight,
|
|
4678
|
-
o && n > o ? (e.height = o + "px", N(t,
|
|
4677
|
+
var n = t.offsetHeight, o = this.options.maxHeight, s = "leaflet-popup-scrolled";
|
|
4678
|
+
o && n > o ? (e.height = o + "px", N(t, s)) : it(t, s), this._containerWidth = this._container.offsetWidth;
|
|
4679
4679
|
},
|
|
4680
4680
|
_animateZoom: function(t) {
|
|
4681
4681
|
var e = this._map._latLngToNewLayerPoint(this._latlng, t.zoom, t.center), i = this._getAnchor();
|
|
@@ -4689,14 +4689,14 @@ function js() {
|
|
|
4689
4689
|
}
|
|
4690
4690
|
var t = this._map, e = parseInt(ve(this._container, "marginBottom"), 10) || 0, i = this._container.offsetHeight + e, n = this._containerWidth, o = new A(this._containerLeft, -i - this._containerBottom);
|
|
4691
4691
|
o._add(Yt(this._container));
|
|
4692
|
-
var
|
|
4693
|
-
|
|
4692
|
+
var s = t.layerPointToContainerPoint(o), c = y(this.options.autoPanPadding), d = y(this.options.autoPanPaddingTopLeft || c), f = y(this.options.autoPanPaddingBottomRight || c), _ = t.getSize(), x = 0, E = 0;
|
|
4693
|
+
s.x + n + f.x > _.x && (x = s.x + n - _.x + f.x), s.x - x - d.x < 0 && (x = s.x - d.x), s.y + i + f.y > _.y && (E = s.y + i - _.y + f.y), s.y - E - d.y < 0 && (E = s.y - d.y), (x || E) && (this.options.keepInView && (this._autopanning = !0), t.fire("autopanstart").panBy([x, E]));
|
|
4694
4694
|
}
|
|
4695
4695
|
},
|
|
4696
4696
|
_getAnchor: function() {
|
|
4697
4697
|
return y(this._source && this._source._getPopupAnchor ? this._source._getPopupAnchor() : [0, 0]);
|
|
4698
4698
|
}
|
|
4699
|
-
}),
|
|
4699
|
+
}), cs = function(t, e) {
|
|
4700
4700
|
return new Ke(t, e);
|
|
4701
4701
|
};
|
|
4702
4702
|
j.mergeOptions({
|
|
@@ -4715,7 +4715,7 @@ function js() {
|
|
|
4715
4715
|
closePopup: function(t) {
|
|
4716
4716
|
return t = arguments.length ? t : this._popup, t && t.close(), this;
|
|
4717
4717
|
}
|
|
4718
|
-
}),
|
|
4718
|
+
}), Ct.include({
|
|
4719
4719
|
// @method bindPopup(content: String|HTMLElement|Function|Popup, options?: Popup options): this
|
|
4720
4720
|
// Binds a popup to the layer with the passed `content` and sets up the
|
|
4721
4721
|
// necessary event listeners. If a `Function` is passed it will receive
|
|
@@ -4831,8 +4831,8 @@ function js() {
|
|
|
4831
4831
|
_adjustPan: function() {
|
|
4832
4832
|
},
|
|
4833
4833
|
_setPosition: function(t) {
|
|
4834
|
-
var e, i, n = this._map, o = this._container,
|
|
4835
|
-
d === "top" ? (e = f / 2, i = _) : d === "bottom" ? (e = f / 2, i = 0) : d === "center" ? (e = f / 2, i = _ / 2) : d === "right" ? (e = 0, i = _ / 2) : d === "left" ? (e = f, i = _ / 2) : c.x <
|
|
4834
|
+
var e, i, n = this._map, o = this._container, s = n.latLngToContainerPoint(n.getCenter()), c = n.layerPointToContainerPoint(t), d = this.options.direction, f = o.offsetWidth, _ = o.offsetHeight, x = y(this.options.offset), E = this._getAnchor();
|
|
4835
|
+
d === "top" ? (e = f / 2, i = _) : d === "bottom" ? (e = f / 2, i = 0) : d === "center" ? (e = f / 2, i = _ / 2) : d === "right" ? (e = 0, i = _ / 2) : d === "left" ? (e = f, i = _ / 2) : c.x < s.x ? (d = "right", e = 0, i = _ / 2) : (d = "left", e = f + (x.x + E.x) * 2, i = _ / 2), t = t.subtract(y(e, i, !0)).add(x).add(E), it(o, "leaflet-tooltip-right"), it(o, "leaflet-tooltip-left"), it(o, "leaflet-tooltip-top"), it(o, "leaflet-tooltip-bottom"), N(o, "leaflet-tooltip-" + d), ot(o, t);
|
|
4836
4836
|
},
|
|
4837
4837
|
_updatePosition: function() {
|
|
4838
4838
|
var t = this._map.latLngToLayerPoint(this._latlng);
|
|
@@ -4848,7 +4848,7 @@ function js() {
|
|
|
4848
4848
|
_getAnchor: function() {
|
|
4849
4849
|
return y(this._source && this._source._getTooltipAnchor && !this.options.sticky ? this._source._getTooltipAnchor() : [0, 0]);
|
|
4850
4850
|
}
|
|
4851
|
-
}),
|
|
4851
|
+
}), us = function(t, e) {
|
|
4852
4852
|
return new Ye(t, e);
|
|
4853
4853
|
};
|
|
4854
4854
|
j.include({
|
|
@@ -4865,7 +4865,7 @@ function js() {
|
|
|
4865
4865
|
closeTooltip: function(t) {
|
|
4866
4866
|
return t.close(), this;
|
|
4867
4867
|
}
|
|
4868
|
-
}),
|
|
4868
|
+
}), Ct.include({
|
|
4869
4869
|
// @method bindTooltip(content: String|HTMLElement|Function|Tooltip, options?: Tooltip options): this
|
|
4870
4870
|
// Binds a tooltip to the layer with the passed `content` and sets up the
|
|
4871
4871
|
// necessary event listeners. If a `Function` is passed it will receive
|
|
@@ -4978,11 +4978,11 @@ function js() {
|
|
|
4978
4978
|
return null;
|
|
4979
4979
|
}
|
|
4980
4980
|
});
|
|
4981
|
-
function
|
|
4981
|
+
function ds(t) {
|
|
4982
4982
|
return new Un(t);
|
|
4983
4983
|
}
|
|
4984
4984
|
ce.Default = ke;
|
|
4985
|
-
var Te =
|
|
4985
|
+
var Te = Ct.extend({
|
|
4986
4986
|
// @section
|
|
4987
4987
|
// @aka GridLayer options
|
|
4988
4988
|
options: {
|
|
@@ -5124,8 +5124,8 @@ function js() {
|
|
|
5124
5124
|
this._container && this.options.zIndex !== void 0 && this.options.zIndex !== null && (this._container.style.zIndex = this.options.zIndex);
|
|
5125
5125
|
},
|
|
5126
5126
|
_setAutoZIndex: function(t) {
|
|
5127
|
-
for (var e = this.getPane().children, i = -t(-1 / 0, 1 / 0), n = 0, o = e.length,
|
|
5128
|
-
|
|
5127
|
+
for (var e = this.getPane().children, i = -t(-1 / 0, 1 / 0), n = 0, o = e.length, s; n < o; n++)
|
|
5128
|
+
s = e[n].style.zIndex, e[n] !== this._container && s && (i = t(i, +s));
|
|
5129
5129
|
isFinite(i) && (this.options.zIndex = i + t(-1, 1), this._updateZIndex());
|
|
5130
5130
|
},
|
|
5131
5131
|
_updateOpacity: function() {
|
|
@@ -5135,8 +5135,8 @@ function js() {
|
|
|
5135
5135
|
for (var n in this._tiles) {
|
|
5136
5136
|
var o = this._tiles[n];
|
|
5137
5137
|
if (!(!o.current || !o.loaded)) {
|
|
5138
|
-
var
|
|
5139
|
-
bt(o.el,
|
|
5138
|
+
var s = Math.min(1, (t - o.loaded) / 200);
|
|
5139
|
+
bt(o.el, s), s < 1 ? e = !0 : (o.active ? i = !0 : this._onOpaqueTile(o), o.active = !0);
|
|
5140
5140
|
}
|
|
5141
5141
|
}
|
|
5142
5142
|
i && !this._noPrune && this._pruneTiles(), e && (ht(this._fadeFrame), this._fadeFrame = tt(this._updateOpacity, this));
|
|
@@ -5190,22 +5190,22 @@ function js() {
|
|
|
5190
5190
|
this._removeAllTiles(), this._tileZoom = void 0;
|
|
5191
5191
|
},
|
|
5192
5192
|
_retainParent: function(t, e, i, n) {
|
|
5193
|
-
var o = Math.floor(t / 2),
|
|
5193
|
+
var o = Math.floor(t / 2), s = Math.floor(e / 2), c = i - 1, d = new A(+o, +s);
|
|
5194
5194
|
d.z = +c;
|
|
5195
5195
|
var f = this._tileCoordsToKey(d), _ = this._tiles[f];
|
|
5196
|
-
return _ && _.active ? (_.retain = !0, !0) : (_ && _.loaded && (_.retain = !0), c > n ? this._retainParent(o,
|
|
5196
|
+
return _ && _.active ? (_.retain = !0, !0) : (_ && _.loaded && (_.retain = !0), c > n ? this._retainParent(o, s, c, n) : !1);
|
|
5197
5197
|
},
|
|
5198
5198
|
_retainChildren: function(t, e, i, n) {
|
|
5199
5199
|
for (var o = 2 * t; o < 2 * t + 2; o++)
|
|
5200
|
-
for (var
|
|
5201
|
-
var c = new A(o,
|
|
5200
|
+
for (var s = 2 * e; s < 2 * e + 2; s++) {
|
|
5201
|
+
var c = new A(o, s);
|
|
5202
5202
|
c.z = i + 1;
|
|
5203
5203
|
var d = this._tileCoordsToKey(c), f = this._tiles[d];
|
|
5204
5204
|
if (f && f.active) {
|
|
5205
5205
|
f.retain = !0;
|
|
5206
5206
|
continue;
|
|
5207
5207
|
} else f && f.loaded && (f.retain = !0);
|
|
5208
|
-
i + 1 < n && this._retainChildren(o,
|
|
5208
|
+
i + 1 < n && this._retainChildren(o, s, i + 1, n);
|
|
5209
5209
|
}
|
|
5210
5210
|
},
|
|
5211
5211
|
_resetView: function(t) {
|
|
@@ -5222,8 +5222,8 @@ function js() {
|
|
|
5222
5222
|
_setView: function(t, e, i, n) {
|
|
5223
5223
|
var o = Math.round(e);
|
|
5224
5224
|
this.options.maxZoom !== void 0 && o > this.options.maxZoom || this.options.minZoom !== void 0 && o < this.options.minZoom ? o = void 0 : o = this._clampZoom(o);
|
|
5225
|
-
var
|
|
5226
|
-
(!n ||
|
|
5225
|
+
var s = this.options.updateWhenZooming && o !== this._tileZoom;
|
|
5226
|
+
(!n || s) && (this._tileZoom = o, this._abortLoading && this._abortLoading(), this._updateLevels(), this._resetGrid(), o !== void 0 && this._update(t), i || this._pruneTiles(), this._noPrune = !!i), this._setZoomTransforms(t, e);
|
|
5227
5227
|
},
|
|
5228
5228
|
_setZoomTransforms: function(t, e) {
|
|
5229
5229
|
for (var i in this._levels)
|
|
@@ -5247,8 +5247,8 @@ function js() {
|
|
|
5247
5247
|
!this._map || this._map._animatingZoom || this._update();
|
|
5248
5248
|
},
|
|
5249
5249
|
_getTiledPixelBounds: function(t) {
|
|
5250
|
-
var e = this._map, i = e._animatingZoom ? Math.max(e._animateToZoom, e.getZoom()) : e.getZoom(), n = e.getZoomScale(i, this._tileZoom), o = e.project(t, this._tileZoom).floor(),
|
|
5251
|
-
return new $(o.subtract(
|
|
5250
|
+
var e = this._map, i = e._animatingZoom ? Math.max(e._animateToZoom, e.getZoom()) : e.getZoom(), n = e.getZoomScale(i, this._tileZoom), o = e.project(t, this._tileZoom).floor(), s = e.getSize().divideBy(n * 2);
|
|
5251
|
+
return new $(o.subtract(s), o.add(s));
|
|
5252
5252
|
},
|
|
5253
5253
|
// Private method to load tiles in the grid's active zoom level according to map bounds
|
|
5254
5254
|
_update: function(t) {
|
|
@@ -5256,7 +5256,7 @@ function js() {
|
|
|
5256
5256
|
if (e) {
|
|
5257
5257
|
var i = this._clampZoom(e.getZoom());
|
|
5258
5258
|
if (t === void 0 && (t = e.getCenter()), this._tileZoom !== void 0) {
|
|
5259
|
-
var n = this._getTiledPixelBounds(t), o = this._pxBoundsToTileRange(n),
|
|
5259
|
+
var n = this._getTiledPixelBounds(t), o = this._pxBoundsToTileRange(n), s = o.getCenter(), c = [], d = this.options.keepBuffer, f = new $(
|
|
5260
5260
|
o.getBottomLeft().subtract([d, -d]),
|
|
5261
5261
|
o.getTopRight().add([d, -d])
|
|
5262
5262
|
);
|
|
@@ -5279,7 +5279,7 @@ function js() {
|
|
|
5279
5279
|
}
|
|
5280
5280
|
}
|
|
5281
5281
|
if (c.sort(function(gt, me) {
|
|
5282
|
-
return gt.distanceTo(
|
|
5282
|
+
return gt.distanceTo(s) - me.distanceTo(s);
|
|
5283
5283
|
}), c.length !== 0) {
|
|
5284
5284
|
this._loading || (this._loading = !0, this.fire("loading"));
|
|
5285
5285
|
var xt = document.createDocumentFragment();
|
|
@@ -5306,8 +5306,8 @@ function js() {
|
|
|
5306
5306
|
return this._tileCoordsToBounds(this._keyToTileCoords(t));
|
|
5307
5307
|
},
|
|
5308
5308
|
_tileCoordsToNwSe: function(t) {
|
|
5309
|
-
var e = this._map, i = this.getTileSize(), n = t.scaleBy(i), o = n.add(i),
|
|
5310
|
-
return [
|
|
5309
|
+
var e = this._map, i = this.getTileSize(), n = t.scaleBy(i), o = n.add(i), s = e.unproject(n, t.z), c = e.unproject(o, t.z);
|
|
5310
|
+
return [s, c];
|
|
5311
5311
|
},
|
|
5312
5312
|
// converts tile coordinates to its geographical bounds
|
|
5313
5313
|
_tileCoordsToBounds: function(t) {
|
|
@@ -5382,7 +5382,7 @@ function js() {
|
|
|
5382
5382
|
return !0;
|
|
5383
5383
|
}
|
|
5384
5384
|
});
|
|
5385
|
-
function
|
|
5385
|
+
function fs(t) {
|
|
5386
5386
|
return new Te(t);
|
|
5387
5387
|
}
|
|
5388
5388
|
var fe = Te.extend({
|
|
@@ -5548,8 +5548,8 @@ function js() {
|
|
|
5548
5548
|
for (var n in e)
|
|
5549
5549
|
n in this.options || (i[n] = e[n]);
|
|
5550
5550
|
e = S(this, e);
|
|
5551
|
-
var o = e.detectRetina && z.retina ? 2 : 1,
|
|
5552
|
-
i.width =
|
|
5551
|
+
var o = e.detectRetina && z.retina ? 2 : 1, s = this.getTileSize();
|
|
5552
|
+
i.width = s.x * o, i.height = s.y * o, this.wmsParams = i;
|
|
5553
5553
|
},
|
|
5554
5554
|
onAdd: function(t) {
|
|
5555
5555
|
this._crs = this.options.crs || t.options.crs, this._wmsVersion = parseFloat(this.wmsParams.version);
|
|
@@ -5557,7 +5557,7 @@ function js() {
|
|
|
5557
5557
|
this.wmsParams[e] = this._crs.code, fe.prototype.onAdd.call(this, t);
|
|
5558
5558
|
},
|
|
5559
5559
|
getTileUrl: function(t) {
|
|
5560
|
-
var e = this._tileCoordsToNwSe(t), i = this._crs, n = ct(i.project(e[0]), i.project(e[1])), o = n.min,
|
|
5560
|
+
var e = this._tileCoordsToNwSe(t), i = this._crs, n = ct(i.project(e[0]), i.project(e[1])), o = n.min, s = n.max, c = (this._wmsVersion >= 1.3 && this._crs === Fn ? [o.y, o.x, s.y, s.x] : [o.x, o.y, s.x, s.y]).join(","), d = fe.prototype.getTileUrl.call(this, t);
|
|
5561
5561
|
return d + Y(this.wmsParams, d, this.options.uppercase) + (this.options.uppercase ? "&BBOX=" : "&bbox=") + c;
|
|
5562
5562
|
},
|
|
5563
5563
|
// @method setParams(params: Object, noRedraw?: Boolean): this
|
|
@@ -5566,11 +5566,11 @@ function js() {
|
|
|
5566
5566
|
return u(this.wmsParams, t), e || this.redraw(), this;
|
|
5567
5567
|
}
|
|
5568
5568
|
});
|
|
5569
|
-
function
|
|
5569
|
+
function ms(t, e) {
|
|
5570
5570
|
return new qn(t, e);
|
|
5571
5571
|
}
|
|
5572
|
-
fe.WMS = qn, $n.wms =
|
|
5573
|
-
var Nt =
|
|
5572
|
+
fe.WMS = qn, $n.wms = ms;
|
|
5573
|
+
var Nt = Ct.extend({
|
|
5574
5574
|
// @section
|
|
5575
5575
|
// @aka Renderer options
|
|
5576
5576
|
options: {
|
|
@@ -5604,8 +5604,8 @@ function js() {
|
|
|
5604
5604
|
this._updateTransform(this._map.getCenter(), this._map.getZoom());
|
|
5605
5605
|
},
|
|
5606
5606
|
_updateTransform: function(t, e) {
|
|
5607
|
-
var i = this._map.getZoomScale(e, this._zoom), n = this._map.getSize().multiplyBy(0.5 + this.options.padding), o = this._map.project(this._center, e),
|
|
5608
|
-
z.any3d ? Kt(this._container,
|
|
5607
|
+
var i = this._map.getZoomScale(e, this._zoom), n = this._map.getSize().multiplyBy(0.5 + this.options.padding), o = this._map.project(this._center, e), s = n.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t, e));
|
|
5608
|
+
z.any3d ? Kt(this._container, s, i) : ot(this._container, s);
|
|
5609
5609
|
},
|
|
5610
5610
|
_reset: function() {
|
|
5611
5611
|
this._update(), this._updateTransform(this._center, this._zoom);
|
|
@@ -5735,11 +5735,11 @@ function js() {
|
|
|
5735
5735
|
},
|
|
5736
5736
|
_updatePoly: function(t, e) {
|
|
5737
5737
|
if (this._drawing) {
|
|
5738
|
-
var i, n, o,
|
|
5738
|
+
var i, n, o, s, c = t._parts, d = c.length, f = this._ctx;
|
|
5739
5739
|
if (d) {
|
|
5740
5740
|
for (f.beginPath(), i = 0; i < d; i++) {
|
|
5741
5741
|
for (n = 0, o = c[i].length; n < o; n++)
|
|
5742
|
-
|
|
5742
|
+
s = c[i][n], f[n ? "lineTo" : "moveTo"](s.x, s.y);
|
|
5743
5743
|
e && f.closePath();
|
|
5744
5744
|
}
|
|
5745
5745
|
this._fillStroke(f, t);
|
|
@@ -5821,7 +5821,7 @@ function js() {
|
|
|
5821
5821
|
return function(t) {
|
|
5822
5822
|
return document.createElement("<" + t + ' xmlns="urn:schemas-microsoft.com:vml" class="lvml">');
|
|
5823
5823
|
};
|
|
5824
|
-
})(),
|
|
5824
|
+
})(), ps = {
|
|
5825
5825
|
_initContainer: function() {
|
|
5826
5826
|
this._container = V("div", "leaflet-vml-container");
|
|
5827
5827
|
},
|
|
@@ -5893,8 +5893,8 @@ function js() {
|
|
|
5893
5893
|
this._setPath(t, tn(t._parts, e));
|
|
5894
5894
|
},
|
|
5895
5895
|
_updateCircle: function(t) {
|
|
5896
|
-
var e = t._point, i = Math.max(Math.round(t._radius), 1), n = Math.max(Math.round(t._radiusY), 1) || i, o = "a" + i + "," + n + " 0 1,0 ",
|
|
5897
|
-
this._setPath(t,
|
|
5896
|
+
var e = t._point, i = Math.max(Math.round(t._radius), 1), n = Math.max(Math.round(t._radiusY), 1) || i, o = "a" + i + "," + n + " 0 1,0 ", s = t._empty() ? "M0 0" : "M" + (e.x - i) + "," + e.y + o + i * 2 + ",0 " + o + -i * 2 + ",0 ";
|
|
5897
|
+
this._setPath(t, s);
|
|
5898
5898
|
},
|
|
5899
5899
|
_setPath: function(t, e) {
|
|
5900
5900
|
t._path.setAttribute("d", e);
|
|
@@ -5907,7 +5907,7 @@ function js() {
|
|
|
5907
5907
|
le(t._path);
|
|
5908
5908
|
}
|
|
5909
5909
|
});
|
|
5910
|
-
z.vml && Se.include(
|
|
5910
|
+
z.vml && Se.include(ps);
|
|
5911
5911
|
function Xn(t) {
|
|
5912
5912
|
return z.svg || z.vml ? new Se(t) : null;
|
|
5913
5913
|
}
|
|
@@ -5948,7 +5948,7 @@ function js() {
|
|
|
5948
5948
|
];
|
|
5949
5949
|
}
|
|
5950
5950
|
});
|
|
5951
|
-
function
|
|
5951
|
+
function _s(t, e) {
|
|
5952
5952
|
return new Jn(t, e);
|
|
5953
5953
|
}
|
|
5954
5954
|
Se.create = Xe, Se.pointsToPath = tn, Bt.geometryToLayer = Ge, Bt.coordsToLatLng = Ri, Bt.coordsToLatLngs = Ve, Bt.latLngToCoords = Zi, Bt.latLngsToCoords = Ue, Bt.getFeature = de, Bt.asFeature = $e, j.mergeOptions({
|
|
@@ -6129,7 +6129,7 @@ function js() {
|
|
|
6129
6129
|
}
|
|
6130
6130
|
},
|
|
6131
6131
|
_onPreDragWrap: function() {
|
|
6132
|
-
var t = this._worldWidth, e = Math.round(t / 2), i = this._initialWorldOffset, n = this._draggable._newPos.x, o = (n - e + i) % t + e - i,
|
|
6132
|
+
var t = this._worldWidth, e = Math.round(t / 2), i = this._initialWorldOffset, n = this._draggable._newPos.x, o = (n - e + i) % t + e - i, s = (n + e + i) % t - e - i, c = Math.abs(o + i) < Math.abs(s + i) ? o : s;
|
|
6133
6133
|
this._draggable._absPos = this._draggable._newPos.clone(), this._draggable._newPos.x = c;
|
|
6134
6134
|
},
|
|
6135
6135
|
_onDragEnd: function(t) {
|
|
@@ -6138,7 +6138,7 @@ function js() {
|
|
|
6138
6138
|
e.fire("moveend");
|
|
6139
6139
|
else {
|
|
6140
6140
|
this._prunePositions(+/* @__PURE__ */ new Date());
|
|
6141
|
-
var o = this._lastPos.subtract(this._positions[0]),
|
|
6141
|
+
var o = this._lastPos.subtract(this._positions[0]), s = (this._lastTime - this._times[0]) / 1e3, c = i.easeLinearity, d = o.multiplyBy(c / s), f = d.distanceTo([0, 0]), _ = Math.min(i.inertiaMaxSpeed, f), x = d.multiplyBy(_ / f), E = _ / (i.inertiaDeceleration * c), H = x.multiplyBy(-E / 2).round();
|
|
6142
6142
|
!H.x && !H.y ? e.fire("moveend") : (H = e._limitOffset(H, e.options.maxBounds), tt(function() {
|
|
6143
6143
|
e.panBy(H, {
|
|
6144
6144
|
duration: E,
|
|
@@ -6280,12 +6280,12 @@ function js() {
|
|
|
6280
6280
|
_performZoom: function() {
|
|
6281
6281
|
var t = this._map, e = t.getZoom(), i = this._map.options.zoomSnap || 0;
|
|
6282
6282
|
t._stop();
|
|
6283
|
-
var n = this._delta / (this._map.options.wheelPxPerZoomLevel * 4), o = 4 * Math.log(2 / (1 + Math.exp(-Math.abs(n)))) / Math.LN2,
|
|
6283
|
+
var n = this._delta / (this._map.options.wheelPxPerZoomLevel * 4), o = 4 * Math.log(2 / (1 + Math.exp(-Math.abs(n)))) / Math.LN2, s = i ? Math.ceil(o / i) * i : o, c = t._limitZoom(e + (this._delta > 0 ? s : -s)) - e;
|
|
6284
6284
|
this._delta = 0, this._startTime = null, c && (t.options.scrollWheelZoom === "center" ? t.setZoom(e + c) : t.setZoomAround(this._lastMousePos, e + c));
|
|
6285
6285
|
}
|
|
6286
6286
|
});
|
|
6287
6287
|
j.addInitHook("addHandler", "scrollWheelZoom", no);
|
|
6288
|
-
var
|
|
6288
|
+
var gs = 600;
|
|
6289
6289
|
j.mergeOptions({
|
|
6290
6290
|
// @section Touch interaction options
|
|
6291
6291
|
// @option tapHold: Boolean
|
|
@@ -6308,7 +6308,7 @@ function js() {
|
|
|
6308
6308
|
var e = t.touches[0];
|
|
6309
6309
|
this._startPos = this._newPos = new A(e.clientX, e.clientY), this._holdTimeout = setTimeout(m(function() {
|
|
6310
6310
|
this._cancel(), this._isTapValid() && (B(document, "touchend", dt), B(document, "touchend touchcancel", this._cancelClickPrevent), this._simulateEvent("contextmenu", e));
|
|
6311
|
-
}, this),
|
|
6311
|
+
}, this), gs), B(document, "touchend touchcancel contextmenu", this._cancel, this), B(document, "touchmove", this._onMove, this);
|
|
6312
6312
|
}
|
|
6313
6313
|
},
|
|
6314
6314
|
_cancelClickPrevent: function t() {
|
|
@@ -6374,10 +6374,10 @@ function js() {
|
|
|
6374
6374
|
if (this._center = this._startLatLng, o === 1)
|
|
6375
6375
|
return;
|
|
6376
6376
|
} else {
|
|
6377
|
-
var
|
|
6378
|
-
if (o === 1 &&
|
|
6377
|
+
var s = i._add(n)._divideBy(2)._subtract(this._centerPoint);
|
|
6378
|
+
if (o === 1 && s.x === 0 && s.y === 0)
|
|
6379
6379
|
return;
|
|
6380
|
-
this._center = e.unproject(e.project(this._pinchStartLatLng, this._zoom).subtract(
|
|
6380
|
+
this._center = e.unproject(e.project(this._pinchStartLatLng, this._zoom).subtract(s), this._zoom);
|
|
6381
6381
|
}
|
|
6382
6382
|
this._moved || (e._moveStart(!0, !1), this._moved = !0), ht(this._animRequest);
|
|
6383
6383
|
var c = m(e._move, e, this._center, this._zoom, { pinch: !0, round: !1 }, void 0);
|
|
@@ -6392,32 +6392,32 @@ function js() {
|
|
|
6392
6392
|
this._zooming = !1, ht(this._animRequest), q(document, "touchmove", this._onTouchMove, this), q(document, "touchend touchcancel", this._onTouchEnd, this), this._map.options.zoomAnimation ? this._map._animateZoom(this._center, this._map._limitZoom(this._zoom), !0, this._map.options.zoomSnap) : this._map._resetView(this._center, this._map._limitZoom(this._zoom));
|
|
6393
6393
|
}
|
|
6394
6394
|
});
|
|
6395
|
-
j.addInitHook("addHandler", "touchZoom", ro), j.BoxZoom = Qn, j.DoubleClickZoom = to, j.Drag = eo, j.Keyboard = io, j.ScrollWheelZoom = no, j.TapHold = oo, j.TouchZoom = ro, a.Bounds = $, a.Browser = z, a.CRS = _t, a.Canvas = Kn, a.Circle = Ii, a.CircleMarker = je, a.Class = vt, a.Control =
|
|
6396
|
-
var
|
|
6395
|
+
j.addInitHook("addHandler", "touchZoom", ro), j.BoxZoom = Qn, j.DoubleClickZoom = to, j.Drag = eo, j.Keyboard = io, j.ScrollWheelZoom = no, j.TapHold = oo, j.TouchZoom = ro, a.Bounds = $, a.Browser = z, a.CRS = _t, a.Canvas = Kn, a.Circle = Ii, a.CircleMarker = je, a.Class = vt, a.Control = Tt, a.DivIcon = Un, a.DivOverlay = At, a.DomEvent = Rr, a.DomUtil = Ar, a.Draggable = Ht, a.Evented = yt, a.FeatureGroup = Rt, a.GeoJSON = Bt, a.GridLayer = Te, a.Handler = Ot, a.Icon = ce, a.ImageOverlay = qe, a.LatLng = I, a.LatLngBounds = ut, a.Layer = Ct, a.LayerGroup = he, a.LineUtil = qr, a.Map = j, a.Marker = He, a.Mixin = Hr, a.Path = jt, a.Point = A, a.PolyUtil = jr, a.Polygon = ue, a.Polyline = Zt, a.Popup = Ke, a.PosAnimation = Sn, a.Projection = Kr, a.Rectangle = Jn, a.Renderer = Nt, a.SVG = Se, a.SVGOverlay = Vn, a.TileLayer = fe, a.Tooltip = Ye, a.Transformation = Wt, a.Util = Ae, a.VideoOverlay = Gn, a.bind = m, a.bounds = ct, a.canvas = Yn, a.circle = ns, a.circleMarker = is, a.control = Pe, a.divIcon = ds, a.extend = u, a.featureGroup = Qr, a.geoJSON = jn, a.geoJson = ss, a.gridLayer = fs, a.icon = ts, a.imageOverlay = as, a.latLng = M, a.latLngBounds = J, a.layerGroup = Jr, a.map = Zr, a.marker = es, a.point = y, a.polygon = rs, a.polyline = os, a.popup = cs, a.rectangle = _s, a.setOptions = S, a.stamp = v, a.svg = Xn, a.svgOverlay = hs, a.tileLayer = $n, a.tooltip = us, a.transformation = zt, a.version = h, a.videoOverlay = ls;
|
|
6396
|
+
var vs = window.L;
|
|
6397
6397
|
a.noConflict = function() {
|
|
6398
|
-
return window.L =
|
|
6398
|
+
return window.L = vs, this;
|
|
6399
6399
|
}, window.L = a;
|
|
6400
6400
|
}));
|
|
6401
6401
|
})(Ee, Ee.exports)), Ee.exports;
|
|
6402
6402
|
}
|
|
6403
|
-
var Vt =
|
|
6404
|
-
const So = /* @__PURE__ */
|
|
6405
|
-
function pe(
|
|
6403
|
+
var Vt = Gs();
|
|
6404
|
+
const So = /* @__PURE__ */ Cs(Vt), Vs = window.React.useEffect, Di = window.React.useRef;
|
|
6405
|
+
function pe(r, l, a) {
|
|
6406
6406
|
return Object.freeze({
|
|
6407
|
-
instance:
|
|
6407
|
+
instance: r,
|
|
6408
6408
|
context: l,
|
|
6409
6409
|
container: a
|
|
6410
6410
|
});
|
|
6411
6411
|
}
|
|
6412
|
-
function ai(
|
|
6412
|
+
function ai(r, l) {
|
|
6413
6413
|
return l == null ? function(h, u) {
|
|
6414
6414
|
const p = Di(void 0);
|
|
6415
|
-
return p.current || (p.current =
|
|
6415
|
+
return p.current || (p.current = r(h, u)), p;
|
|
6416
6416
|
} : function(h, u) {
|
|
6417
6417
|
const p = Di(void 0);
|
|
6418
|
-
p.current || (p.current =
|
|
6418
|
+
p.current || (p.current = r(h, u));
|
|
6419
6419
|
const m = Di(h), { instance: b } = p.current;
|
|
6420
|
-
return
|
|
6420
|
+
return Vs(function() {
|
|
6421
6421
|
m.current !== h && (l(b, h, m.current), m.current = h);
|
|
6422
6422
|
}, [
|
|
6423
6423
|
b,
|
|
@@ -6426,83 +6426,83 @@ function ai(s, l) {
|
|
|
6426
6426
|
]), p;
|
|
6427
6427
|
};
|
|
6428
6428
|
}
|
|
6429
|
-
const
|
|
6430
|
-
function zo(
|
|
6431
|
-
|
|
6432
|
-
return (l.layerContainer ?? l.map).addLayer(
|
|
6433
|
-
l.layerContainer?.removeLayer(
|
|
6429
|
+
const Us = window.React.useEffect;
|
|
6430
|
+
function zo(r, l) {
|
|
6431
|
+
Us(function() {
|
|
6432
|
+
return (l.layerContainer ?? l.map).addLayer(r.instance), function() {
|
|
6433
|
+
l.layerContainer?.removeLayer(r.instance), l.map.removeLayer(r.instance);
|
|
6434
6434
|
};
|
|
6435
6435
|
}, [
|
|
6436
6436
|
l,
|
|
6437
|
-
|
|
6437
|
+
r
|
|
6438
6438
|
]);
|
|
6439
6439
|
}
|
|
6440
|
-
function Mo(
|
|
6440
|
+
function Mo(r) {
|
|
6441
6441
|
return function(a) {
|
|
6442
|
-
const h = ri(), u =
|
|
6442
|
+
const h = ri(), u = r(si(a, h), h);
|
|
6443
6443
|
return To(h.map, a.attribution), qi(u.current, a.eventHandlers), zo(u.current, h), u;
|
|
6444
6444
|
};
|
|
6445
6445
|
}
|
|
6446
|
-
const
|
|
6447
|
-
function
|
|
6448
|
-
const a =
|
|
6449
|
-
|
|
6446
|
+
const $s = window.React.useEffect, qs = window.React.useRef;
|
|
6447
|
+
function Ks(r, l) {
|
|
6448
|
+
const a = qs(void 0);
|
|
6449
|
+
$s(function() {
|
|
6450
6450
|
if (l.pathOptions !== a.current) {
|
|
6451
6451
|
const u = l.pathOptions ?? {};
|
|
6452
|
-
|
|
6452
|
+
r.instance.setStyle(u), a.current = u;
|
|
6453
6453
|
}
|
|
6454
6454
|
}, [
|
|
6455
|
-
|
|
6455
|
+
r,
|
|
6456
6456
|
l
|
|
6457
6457
|
]);
|
|
6458
6458
|
}
|
|
6459
|
-
function
|
|
6459
|
+
function Ys(r) {
|
|
6460
6460
|
return function(a) {
|
|
6461
|
-
const h = ri(), u =
|
|
6462
|
-
return qi(u.current, a.eventHandlers), zo(u.current, h),
|
|
6461
|
+
const h = ri(), u = r(si(a, h), h);
|
|
6462
|
+
return qi(u.current, a.eventHandlers), zo(u.current, h), Ks(u.current, a), u;
|
|
6463
6463
|
};
|
|
6464
6464
|
}
|
|
6465
|
-
function
|
|
6466
|
-
const a = ai(
|
|
6465
|
+
function Xs(r, l) {
|
|
6466
|
+
const a = ai(r, l), h = Mo(a);
|
|
6467
6467
|
return Co(h);
|
|
6468
6468
|
}
|
|
6469
|
-
function
|
|
6470
|
-
const a = ai(
|
|
6471
|
-
return
|
|
6469
|
+
function Js(r, l) {
|
|
6470
|
+
const a = ai(r), h = Hs(a, l);
|
|
6471
|
+
return Ns(h);
|
|
6472
6472
|
}
|
|
6473
|
-
function Ki(
|
|
6474
|
-
const a = ai(
|
|
6473
|
+
function Ki(r, l) {
|
|
6474
|
+
const a = ai(r, l), h = Ys(a);
|
|
6475
6475
|
return Co(h);
|
|
6476
6476
|
}
|
|
6477
|
-
function
|
|
6478
|
-
const a = ai(
|
|
6479
|
-
return
|
|
6477
|
+
function Qs(r, l) {
|
|
6478
|
+
const a = ai(r, l), h = Mo(a);
|
|
6479
|
+
return Ds(h);
|
|
6480
6480
|
}
|
|
6481
|
-
function
|
|
6481
|
+
function ta(r, l, a) {
|
|
6482
6482
|
const { opacity: h, zIndex: u } = l;
|
|
6483
|
-
h != null && h !== a.opacity &&
|
|
6483
|
+
h != null && h !== a.opacity && r.setOpacity(h), u != null && u !== a.zIndex && r.setZIndex(u);
|
|
6484
6484
|
}
|
|
6485
6485
|
window.React.useEffect;
|
|
6486
|
-
function
|
|
6486
|
+
function ea() {
|
|
6487
6487
|
return ri().map;
|
|
6488
6488
|
}
|
|
6489
|
-
const co = window.React,
|
|
6490
|
-
function
|
|
6489
|
+
const co = window.React, ia = window.React.forwardRef, na = window.React.useCallback, oa = window.React.useEffect, ra = window.React.useImperativeHandle, sa = window.React.useRef, uo = window.React.useState;
|
|
6490
|
+
function aa({ bounds: r, boundsOptions: l, center: a, children: h, className: u, id: p, placeholder: m, style: b, whenReady: v, zoom: g, ...R }, T) {
|
|
6491
6491
|
const [D] = uo({
|
|
6492
6492
|
className: u,
|
|
6493
6493
|
id: p,
|
|
6494
6494
|
style: b
|
|
6495
|
-
}), [Z, G] = uo(null), S =
|
|
6496
|
-
|
|
6495
|
+
}), [Z, G] = uo(null), S = sa(void 0);
|
|
6496
|
+
ra(T, () => Z?.map ?? null, [
|
|
6497
6497
|
Z
|
|
6498
6498
|
]);
|
|
6499
|
-
const Y =
|
|
6499
|
+
const Y = na((X) => {
|
|
6500
6500
|
if (X !== null && !S.current) {
|
|
6501
6501
|
const U = new Vt.Map(X, R);
|
|
6502
|
-
S.current = U, a != null && g != null ? U.setView(a, g) :
|
|
6502
|
+
S.current = U, a != null && g != null ? U.setView(a, g) : r != null && U.fitBounds(r, l), v != null && U.whenReady(v), G(As(U));
|
|
6503
6503
|
}
|
|
6504
6504
|
}, []);
|
|
6505
|
-
|
|
6505
|
+
oa(() => () => {
|
|
6506
6506
|
Z?.map.remove();
|
|
6507
6507
|
}, [
|
|
6508
6508
|
Z
|
|
@@ -6515,14 +6515,14 @@ function sa({ bounds: s, boundsOptions: l, center: a, children: h, className: u,
|
|
|
6515
6515
|
ref: Y
|
|
6516
6516
|
}, ft);
|
|
6517
6517
|
}
|
|
6518
|
-
const
|
|
6518
|
+
const la = /* @__PURE__ */ ia(aa), ha = Xs(function({ position: l, ...a }, h) {
|
|
6519
6519
|
const u = new Vt.Marker(l, a);
|
|
6520
6520
|
return pe(u, oi(h, {
|
|
6521
6521
|
overlayContainer: u
|
|
6522
6522
|
}));
|
|
6523
6523
|
}, function(l, a, h) {
|
|
6524
6524
|
a.position !== h.position && l.setLatLng(a.position), a.icon != null && a.icon !== h.icon && l.setIcon(a.icon), a.zIndexOffset != null && a.zIndexOffset !== h.zIndexOffset && l.setZIndexOffset(a.zIndexOffset), a.opacity != null && a.opacity !== h.opacity && l.setOpacity(a.opacity), l.dragging != null && a.draggable !== h.draggable && (a.draggable === !0 ? l.dragging.enable() : l.dragging.disable());
|
|
6525
|
-
}),
|
|
6525
|
+
}), ca = Ki(function({ positions: l, ...a }, h) {
|
|
6526
6526
|
const u = new Vt.Polygon(l, a);
|
|
6527
6527
|
return pe(u, oi(h, {
|
|
6528
6528
|
overlayContainer: u
|
|
@@ -6536,11 +6536,11 @@ const aa = /* @__PURE__ */ ea(sa), la = Ys(function({ position: l, ...a }, h) {
|
|
|
6536
6536
|
}));
|
|
6537
6537
|
}, function(l, a, h) {
|
|
6538
6538
|
a.positions !== h.positions && l.setLatLngs(a.positions);
|
|
6539
|
-
}),
|
|
6539
|
+
}), ua = window.React.useEffect, Fi = Js(function(l, a) {
|
|
6540
6540
|
const h = new Vt.Popup(l, a.overlayContainer);
|
|
6541
6541
|
return pe(h, a);
|
|
6542
6542
|
}, function(l, a, { position: h }, u) {
|
|
6543
|
-
|
|
6543
|
+
ua(function() {
|
|
6544
6544
|
const { instance: m } = l;
|
|
6545
6545
|
function b(g) {
|
|
6546
6546
|
g.popup === m && (m.update(), u(!0));
|
|
@@ -6570,26 +6570,26 @@ const aa = /* @__PURE__ */ ea(sa), la = Ys(function({ position: l, ...a }, h) {
|
|
|
6570
6570
|
}));
|
|
6571
6571
|
}, function(l, a, h) {
|
|
6572
6572
|
a.bounds !== h.bounds && l.setBounds(a.bounds);
|
|
6573
|
-
}),
|
|
6573
|
+
}), da = Qs(function({ url: l, ...a }, h) {
|
|
6574
6574
|
const u = new Vt.TileLayer(l, si(a, h));
|
|
6575
6575
|
return pe(u, h);
|
|
6576
6576
|
}, function(l, a, h) {
|
|
6577
|
-
|
|
6577
|
+
ta(l, a, h);
|
|
6578
6578
|
const { url: u } = a;
|
|
6579
6579
|
u != null && u !== h.url && l.setUrl(u);
|
|
6580
6580
|
});
|
|
6581
|
-
var
|
|
6582
|
-
const
|
|
6583
|
-
function Hi(
|
|
6584
|
-
if (typeof
|
|
6585
|
-
return
|
|
6586
|
-
|
|
6581
|
+
var fa = Object.defineProperty, Yi = (r, l) => fa(r, "name", { value: l, configurable: !0 });
|
|
6582
|
+
const ma = window.React;
|
|
6583
|
+
function Hi(r, l) {
|
|
6584
|
+
if (typeof r == "function")
|
|
6585
|
+
return r(l);
|
|
6586
|
+
r != null && (r.current = l);
|
|
6587
6587
|
}
|
|
6588
6588
|
Yi(Hi, "setRef");
|
|
6589
|
-
function Eo(...
|
|
6589
|
+
function Eo(...r) {
|
|
6590
6590
|
return (l) => {
|
|
6591
6591
|
let a = !1;
|
|
6592
|
-
const h =
|
|
6592
|
+
const h = r.map((u) => {
|
|
6593
6593
|
const p = Hi(u, l);
|
|
6594
6594
|
return !a && typeof p == "function" && (a = !0), p;
|
|
6595
6595
|
});
|
|
@@ -6597,20 +6597,20 @@ function Eo(...s) {
|
|
|
6597
6597
|
return () => {
|
|
6598
6598
|
for (let u = 0; u < h.length; u++) {
|
|
6599
6599
|
const p = h[u];
|
|
6600
|
-
typeof p == "function" ? p() : Hi(
|
|
6600
|
+
typeof p == "function" ? p() : Hi(r[u], null);
|
|
6601
6601
|
}
|
|
6602
6602
|
};
|
|
6603
6603
|
};
|
|
6604
6604
|
}
|
|
6605
6605
|
Yi(Eo, "composeRefs");
|
|
6606
|
-
function Oo(...
|
|
6607
|
-
return
|
|
6606
|
+
function Oo(...r) {
|
|
6607
|
+
return ma.useCallback(Eo(...r), r);
|
|
6608
6608
|
}
|
|
6609
6609
|
Yi(Oo, "useComposedRefs");
|
|
6610
|
-
var
|
|
6610
|
+
var pa = Object.defineProperty, Lt = (r, l) => pa(r, "name", { value: l, configurable: !0 });
|
|
6611
6611
|
const Pt = window.React;
|
|
6612
6612
|
// @__NO_SIDE_EFFECTS__
|
|
6613
|
-
function Ao(
|
|
6613
|
+
function Ao(r) {
|
|
6614
6614
|
const l = Pt.forwardRef((a, h) => {
|
|
6615
6615
|
let { children: u, ...p } = a, m = null, b = !1;
|
|
6616
6616
|
const v = [];
|
|
@@ -6619,7 +6619,7 @@ function Ao(s) {
|
|
|
6619
6619
|
b = !0;
|
|
6620
6620
|
const Z = D;
|
|
6621
6621
|
let G = "child" in Z.props ? Z.props.child : Z.props.children;
|
|
6622
|
-
ji(G) && typeof Qe == "function" && (G = Qe(G._payload)), m =
|
|
6622
|
+
ji(G) && typeof Qe == "function" && (G = Qe(G._payload)), m = va(Z, G), v.push(m?.props?.children);
|
|
6623
6623
|
} else
|
|
6624
6624
|
v.push(D);
|
|
6625
6625
|
}), m ? m = Pt.cloneElement(m, void 0, v) : (
|
|
@@ -6633,77 +6633,86 @@ function Ao(s) {
|
|
|
6633
6633
|
if (!m) {
|
|
6634
6634
|
if (u || u === 0)
|
|
6635
6635
|
throw new Error(
|
|
6636
|
-
b ?
|
|
6636
|
+
b ? wa(r) : ba(r)
|
|
6637
6637
|
);
|
|
6638
6638
|
return u;
|
|
6639
6639
|
}
|
|
6640
6640
|
const T = Ro(p, m.props ?? {});
|
|
6641
6641
|
return m.type !== Pt.Fragment && (T.ref = h ? R : g), Pt.cloneElement(m, T);
|
|
6642
6642
|
});
|
|
6643
|
-
return l.displayName = `${
|
|
6643
|
+
return l.displayName = `${r}.Slot`, l;
|
|
6644
6644
|
}
|
|
6645
|
-
|
|
6646
|
-
var
|
|
6645
|
+
Lt(Ao, "createSlot");
|
|
6646
|
+
var _a = /* @__PURE__ */ Ao("Slot"), Io = /* @__PURE__ */ Symbol.for("radix.slottable");
|
|
6647
6647
|
// @__NO_SIDE_EFFECTS__
|
|
6648
|
-
function
|
|
6649
|
-
const l = /* @__PURE__ */
|
|
6650
|
-
return l.displayName = `${
|
|
6648
|
+
function ga(r) {
|
|
6649
|
+
const l = /* @__PURE__ */ Lt((a) => "child" in a ? a.children(a.child) : a.children, "Slottable");
|
|
6650
|
+
return l.displayName = `${r}.Slottable`, l.__radixId = Io, l;
|
|
6651
6651
|
}
|
|
6652
|
-
|
|
6653
|
-
var
|
|
6654
|
-
if ("child" in
|
|
6655
|
-
const a =
|
|
6656
|
-
return Pt.isValidElement(a) ? Pt.cloneElement(a, void 0,
|
|
6652
|
+
Lt(ga, "createSlottable");
|
|
6653
|
+
var va = /* @__PURE__ */ Lt((r, l) => {
|
|
6654
|
+
if ("child" in r.props) {
|
|
6655
|
+
const a = r.props.child;
|
|
6656
|
+
return Pt.isValidElement(a) ? Pt.cloneElement(a, void 0, r.props.children(a.props.children)) : null;
|
|
6657
6657
|
}
|
|
6658
6658
|
return Pt.isValidElement(l) ? l : null;
|
|
6659
6659
|
}, "getSlottableElementFromSlottable");
|
|
6660
|
-
function Ro(
|
|
6660
|
+
function Ro(r, l) {
|
|
6661
6661
|
const a = { ...l };
|
|
6662
6662
|
for (const h in l) {
|
|
6663
|
-
const u =
|
|
6663
|
+
const u = r[h], p = l[h];
|
|
6664
6664
|
/^on[A-Z]/.test(h) ? u && p ? a[h] = (...b) => {
|
|
6665
6665
|
const v = p(...b);
|
|
6666
6666
|
return u(...b), v;
|
|
6667
|
-
} : u && (a[h] = u) : h === "style" ? a[h] = { ...u, ...p } : h === "className"
|
|
6667
|
+
} : u && (a[h] = u) : h === "style" ? a[h] = { ...u, ...p } : h === "className" ? a[h] = [u, p].filter(Boolean).join(" ") : h === "aria-describedby" && (a[h] = Do(p, u));
|
|
6668
6668
|
}
|
|
6669
|
-
return { ...
|
|
6669
|
+
return { ...r, ...a };
|
|
6670
|
+
}
|
|
6671
|
+
Lt(Ro, "mergeProps");
|
|
6672
|
+
function Zo(r) {
|
|
6673
|
+
let l = Object.getOwnPropertyDescriptor(r.props, "ref")?.get, a = l && "isReactWarning" in l && l.isReactWarning;
|
|
6674
|
+
return a ? r.ref : (l = Object.getOwnPropertyDescriptor(r, "ref")?.get, a = l && "isReactWarning" in l && l.isReactWarning, a ? r.props.ref : r.props.ref || r.ref);
|
|
6670
6675
|
}
|
|
6671
|
-
|
|
6672
|
-
function
|
|
6673
|
-
|
|
6674
|
-
return a ? s.ref : (l = Object.getOwnPropertyDescriptor(s, "ref")?.get, a = l && "isReactWarning" in l && l.isReactWarning, a ? s.props.ref : s.props.ref || s.ref);
|
|
6676
|
+
Lt(Zo, "getElementRef");
|
|
6677
|
+
function Bo(r) {
|
|
6678
|
+
return Pt.isValidElement(r) && typeof r.type == "function" && "__radixId" in r.type && r.type.__radixId === Io;
|
|
6675
6679
|
}
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6680
|
+
Lt(Bo, "isSlottable");
|
|
6681
|
+
var ya = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
6682
|
+
function ji(r) {
|
|
6683
|
+
return r != null && typeof r == "object" && "$$typeof" in r && r.$$typeof === ya && "_payload" in r && No(r._payload);
|
|
6679
6684
|
}
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
return s != null && typeof s == "object" && "$$typeof" in s && s.$$typeof === va && "_payload" in s && No(s._payload);
|
|
6685
|
+
Lt(ji, "isLazyComponent");
|
|
6686
|
+
function No(r) {
|
|
6687
|
+
return typeof r == "object" && r !== null && "then" in r;
|
|
6684
6688
|
}
|
|
6685
|
-
|
|
6686
|
-
function
|
|
6687
|
-
|
|
6689
|
+
Lt(No, "isPromiseLike");
|
|
6690
|
+
function Do(...r) {
|
|
6691
|
+
const l = /* @__PURE__ */ new Set();
|
|
6692
|
+
for (const a of r)
|
|
6693
|
+
if (typeof a == "string")
|
|
6694
|
+
for (const h of String(a).trim().split(/\s+/))
|
|
6695
|
+
h && l.add(h);
|
|
6696
|
+
return l.size > 0 ? Array.from(l).join(" ") : void 0;
|
|
6688
6697
|
}
|
|
6689
|
-
|
|
6690
|
-
var
|
|
6691
|
-
function
|
|
6698
|
+
Lt(Do, "concatAriaDescribedby");
|
|
6699
|
+
var ba = /* @__PURE__ */ Lt((r) => `${r} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`, "createSlotError"), wa = /* @__PURE__ */ Lt((r) => `${r} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`, "createSlottableError"), Qe = Pt[" use ".trim().toString()];
|
|
6700
|
+
function Fo(r) {
|
|
6692
6701
|
var l, a, h = "";
|
|
6693
|
-
if (typeof
|
|
6694
|
-
else if (typeof
|
|
6695
|
-
var u =
|
|
6696
|
-
for (l = 0; l < u; l++)
|
|
6697
|
-
} else for (a in
|
|
6702
|
+
if (typeof r == "string" || typeof r == "number") h += r;
|
|
6703
|
+
else if (typeof r == "object") if (Array.isArray(r)) {
|
|
6704
|
+
var u = r.length;
|
|
6705
|
+
for (l = 0; l < u; l++) r[l] && (a = Fo(r[l])) && (h && (h += " "), h += a);
|
|
6706
|
+
} else for (a in r) r[a] && (h && (h += " "), h += a);
|
|
6698
6707
|
return h;
|
|
6699
6708
|
}
|
|
6700
|
-
function
|
|
6701
|
-
for (var
|
|
6709
|
+
function Wo() {
|
|
6710
|
+
for (var r, l, a = 0, h = "", u = arguments.length; a < u; a++) (r = arguments[a]) && (l = Fo(r)) && (h && (h += " "), h += l);
|
|
6702
6711
|
return h;
|
|
6703
6712
|
}
|
|
6704
|
-
const po = (
|
|
6713
|
+
const po = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, _o = Wo, xa = (r, l) => (a) => {
|
|
6705
6714
|
var h;
|
|
6706
|
-
if (l?.variants == null) return _o(
|
|
6715
|
+
if (l?.variants == null) return _o(r, a?.class, a?.className);
|
|
6707
6716
|
const { variants: u, defaultVariants: p } = l, m = Object.keys(u).map((g) => {
|
|
6708
6717
|
const R = a?.[g], T = p?.[g];
|
|
6709
6718
|
if (R === null) return null;
|
|
@@ -6729,116 +6738,116 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
6729
6738
|
D
|
|
6730
6739
|
] : g;
|
|
6731
6740
|
}, []);
|
|
6732
|
-
return _o(
|
|
6733
|
-
},
|
|
6734
|
-
const a = new Array(
|
|
6735
|
-
for (let h = 0; h <
|
|
6736
|
-
a[h] =
|
|
6741
|
+
return _o(r, m, v, a?.class, a?.className);
|
|
6742
|
+
}, Pa = (r, l) => {
|
|
6743
|
+
const a = new Array(r.length + l.length);
|
|
6744
|
+
for (let h = 0; h < r.length; h++)
|
|
6745
|
+
a[h] = r[h];
|
|
6737
6746
|
for (let h = 0; h < l.length; h++)
|
|
6738
|
-
a[
|
|
6747
|
+
a[r.length + h] = l[h];
|
|
6739
6748
|
return a;
|
|
6740
|
-
},
|
|
6741
|
-
classGroupId:
|
|
6749
|
+
}, La = (r, l) => ({
|
|
6750
|
+
classGroupId: r,
|
|
6742
6751
|
validator: l
|
|
6743
|
-
}),
|
|
6744
|
-
nextPart:
|
|
6752
|
+
}), Ho = (r = /* @__PURE__ */ new Map(), l = null, a) => ({
|
|
6753
|
+
nextPart: r,
|
|
6745
6754
|
validators: l,
|
|
6746
6755
|
classGroupId: a
|
|
6747
|
-
}), ni = "-", go = [],
|
|
6748
|
-
const l =
|
|
6756
|
+
}), ni = "-", go = [], ka = "arbitrary..", Ta = (r) => {
|
|
6757
|
+
const l = Sa(r), {
|
|
6749
6758
|
conflictingClassGroups: a,
|
|
6750
6759
|
conflictingClassGroupModifiers: h
|
|
6751
|
-
} =
|
|
6760
|
+
} = r;
|
|
6752
6761
|
return {
|
|
6753
6762
|
getClassGroupId: (m) => {
|
|
6754
6763
|
if (m.startsWith("[") && m.endsWith("]"))
|
|
6755
|
-
return
|
|
6764
|
+
return Ca(m);
|
|
6756
6765
|
const b = m.split(ni), v = b[0] === "" && b.length > 1 ? 1 : 0;
|
|
6757
|
-
return
|
|
6766
|
+
return jo(b, v, l);
|
|
6758
6767
|
},
|
|
6759
6768
|
getConflictingClassGroupIds: (m, b) => {
|
|
6760
6769
|
if (b) {
|
|
6761
6770
|
const v = h[m], g = a[m];
|
|
6762
|
-
return v ? g ?
|
|
6771
|
+
return v ? g ? Pa(g, v) : v : g || go;
|
|
6763
6772
|
}
|
|
6764
6773
|
return a[m] || go;
|
|
6765
6774
|
}
|
|
6766
6775
|
};
|
|
6767
|
-
},
|
|
6768
|
-
if (
|
|
6776
|
+
}, jo = (r, l, a) => {
|
|
6777
|
+
if (r.length - l === 0)
|
|
6769
6778
|
return a.classGroupId;
|
|
6770
|
-
const u =
|
|
6779
|
+
const u = r[l], p = a.nextPart.get(u);
|
|
6771
6780
|
if (p) {
|
|
6772
|
-
const g =
|
|
6781
|
+
const g = jo(r, l + 1, p);
|
|
6773
6782
|
if (g) return g;
|
|
6774
6783
|
}
|
|
6775
6784
|
const m = a.validators;
|
|
6776
6785
|
if (m === null)
|
|
6777
6786
|
return;
|
|
6778
|
-
const b = l === 0 ?
|
|
6787
|
+
const b = l === 0 ? r.join(ni) : r.slice(l).join(ni), v = m.length;
|
|
6779
6788
|
for (let g = 0; g < v; g++) {
|
|
6780
6789
|
const R = m[g];
|
|
6781
6790
|
if (R.validator(b))
|
|
6782
6791
|
return R.classGroupId;
|
|
6783
6792
|
}
|
|
6784
|
-
},
|
|
6785
|
-
const l =
|
|
6786
|
-
return h ?
|
|
6787
|
-
})(),
|
|
6793
|
+
}, Ca = (r) => r.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
6794
|
+
const l = r.slice(1, -1), a = l.indexOf(":"), h = l.slice(0, a);
|
|
6795
|
+
return h ? ka + h : void 0;
|
|
6796
|
+
})(), Sa = (r) => {
|
|
6788
6797
|
const {
|
|
6789
6798
|
theme: l,
|
|
6790
6799
|
classGroups: a
|
|
6791
|
-
} =
|
|
6792
|
-
return
|
|
6793
|
-
},
|
|
6794
|
-
const a =
|
|
6795
|
-
for (const h in
|
|
6796
|
-
const u =
|
|
6800
|
+
} = r;
|
|
6801
|
+
return za(a, l);
|
|
6802
|
+
}, za = (r, l) => {
|
|
6803
|
+
const a = Ho();
|
|
6804
|
+
for (const h in r) {
|
|
6805
|
+
const u = r[h];
|
|
6797
6806
|
Xi(u, a, h, l);
|
|
6798
6807
|
}
|
|
6799
6808
|
return a;
|
|
6800
|
-
}, Xi = (
|
|
6801
|
-
const u =
|
|
6809
|
+
}, Xi = (r, l, a, h) => {
|
|
6810
|
+
const u = r.length;
|
|
6802
6811
|
for (let p = 0; p < u; p++) {
|
|
6803
|
-
const m =
|
|
6804
|
-
|
|
6812
|
+
const m = r[p];
|
|
6813
|
+
Ma(m, l, a, h);
|
|
6805
6814
|
}
|
|
6806
|
-
},
|
|
6807
|
-
if (typeof
|
|
6808
|
-
|
|
6815
|
+
}, Ma = (r, l, a, h) => {
|
|
6816
|
+
if (typeof r == "string") {
|
|
6817
|
+
Ea(r, l, a);
|
|
6809
6818
|
return;
|
|
6810
6819
|
}
|
|
6811
|
-
if (typeof
|
|
6812
|
-
|
|
6820
|
+
if (typeof r == "function") {
|
|
6821
|
+
Oa(r, l, a, h);
|
|
6813
6822
|
return;
|
|
6814
6823
|
}
|
|
6815
|
-
|
|
6816
|
-
},
|
|
6817
|
-
const h =
|
|
6824
|
+
Aa(r, l, a, h);
|
|
6825
|
+
}, Ea = (r, l, a) => {
|
|
6826
|
+
const h = r === "" ? l : Go(l, r);
|
|
6818
6827
|
h.classGroupId = a;
|
|
6819
|
-
},
|
|
6820
|
-
if (
|
|
6821
|
-
Xi(
|
|
6828
|
+
}, Oa = (r, l, a, h) => {
|
|
6829
|
+
if (Ia(r)) {
|
|
6830
|
+
Xi(r(h), l, a, h);
|
|
6822
6831
|
return;
|
|
6823
6832
|
}
|
|
6824
|
-
l.validators === null && (l.validators = []), l.validators.push(
|
|
6825
|
-
},
|
|
6826
|
-
const u = Object.entries(
|
|
6833
|
+
l.validators === null && (l.validators = []), l.validators.push(La(a, r));
|
|
6834
|
+
}, Aa = (r, l, a, h) => {
|
|
6835
|
+
const u = Object.entries(r), p = u.length;
|
|
6827
6836
|
for (let m = 0; m < p; m++) {
|
|
6828
6837
|
const [b, v] = u[m];
|
|
6829
|
-
Xi(v,
|
|
6838
|
+
Xi(v, Go(l, b), a, h);
|
|
6830
6839
|
}
|
|
6831
|
-
},
|
|
6832
|
-
let a =
|
|
6840
|
+
}, Go = (r, l) => {
|
|
6841
|
+
let a = r;
|
|
6833
6842
|
const h = l.split(ni), u = h.length;
|
|
6834
6843
|
for (let p = 0; p < u; p++) {
|
|
6835
6844
|
const m = h[p];
|
|
6836
6845
|
let b = a.nextPart.get(m);
|
|
6837
|
-
b || (b =
|
|
6846
|
+
b || (b = Ho(), a.nextPart.set(m, b)), a = b;
|
|
6838
6847
|
}
|
|
6839
6848
|
return a;
|
|
6840
|
-
},
|
|
6841
|
-
if (
|
|
6849
|
+
}, Ia = (r) => "isThemeGetter" in r && r.isThemeGetter === !0, Ra = (r) => {
|
|
6850
|
+
if (r < 1)
|
|
6842
6851
|
return {
|
|
6843
6852
|
get: () => {
|
|
6844
6853
|
},
|
|
@@ -6847,7 +6856,7 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
6847
6856
|
};
|
|
6848
6857
|
let l = 0, a = /* @__PURE__ */ Object.create(null), h = /* @__PURE__ */ Object.create(null);
|
|
6849
6858
|
const u = (p, m) => {
|
|
6850
|
-
a[p] = m, l++, l >
|
|
6859
|
+
a[p] = m, l++, l > r && (l = 0, h = a, a = /* @__PURE__ */ Object.create(null));
|
|
6851
6860
|
};
|
|
6852
6861
|
return {
|
|
6853
6862
|
get(p) {
|
|
@@ -6861,17 +6870,17 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
6861
6870
|
p in a ? a[p] = m : u(p, m);
|
|
6862
6871
|
}
|
|
6863
6872
|
};
|
|
6864
|
-
}, Gi = "!", vo = ":",
|
|
6865
|
-
modifiers:
|
|
6873
|
+
}, Gi = "!", vo = ":", Za = [], yo = (r, l, a, h, u) => ({
|
|
6874
|
+
modifiers: r,
|
|
6866
6875
|
hasImportantModifier: l,
|
|
6867
6876
|
baseClassName: a,
|
|
6868
6877
|
maybePostfixModifierPosition: h,
|
|
6869
6878
|
isExternal: u
|
|
6870
|
-
}),
|
|
6879
|
+
}), Ba = (r) => {
|
|
6871
6880
|
const {
|
|
6872
6881
|
prefix: l,
|
|
6873
6882
|
experimentalParseClassName: a
|
|
6874
|
-
} =
|
|
6883
|
+
} = r;
|
|
6875
6884
|
let h = (u) => {
|
|
6876
6885
|
const p = [];
|
|
6877
6886
|
let m = 0, b = 0, v = 0, g;
|
|
@@ -6904,7 +6913,7 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
6904
6913
|
};
|
|
6905
6914
|
if (l) {
|
|
6906
6915
|
const u = l + vo, p = h;
|
|
6907
|
-
h = (m) => m.startsWith(u) ? p(m.slice(u.length)) : yo(
|
|
6916
|
+
h = (m) => m.startsWith(u) ? p(m.slice(u.length)) : yo(Za, !1, m, void 0, !0);
|
|
6908
6917
|
}
|
|
6909
6918
|
if (a) {
|
|
6910
6919
|
const u = h;
|
|
@@ -6914,9 +6923,9 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
6914
6923
|
});
|
|
6915
6924
|
}
|
|
6916
6925
|
return h;
|
|
6917
|
-
},
|
|
6926
|
+
}, Na = (r) => {
|
|
6918
6927
|
const l = /* @__PURE__ */ new Map();
|
|
6919
|
-
return
|
|
6928
|
+
return r.orderSensitiveModifiers.forEach((a, h) => {
|
|
6920
6929
|
l.set(a, 1e6 + h);
|
|
6921
6930
|
}), (a) => {
|
|
6922
6931
|
const h = [];
|
|
@@ -6927,26 +6936,26 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
6927
6936
|
}
|
|
6928
6937
|
return u.length > 0 && (u.sort(), h.push(...u)), h;
|
|
6929
6938
|
};
|
|
6930
|
-
},
|
|
6931
|
-
cache:
|
|
6932
|
-
parseClassName:
|
|
6933
|
-
sortModifiers:
|
|
6934
|
-
postfixLookupClassGroupIds:
|
|
6935
|
-
...
|
|
6936
|
-
}),
|
|
6937
|
-
const l = /* @__PURE__ */ Object.create(null), a =
|
|
6939
|
+
}, Da = (r) => ({
|
|
6940
|
+
cache: Ra(r.cacheSize),
|
|
6941
|
+
parseClassName: Ba(r),
|
|
6942
|
+
sortModifiers: Na(r),
|
|
6943
|
+
postfixLookupClassGroupIds: Fa(r),
|
|
6944
|
+
...Ta(r)
|
|
6945
|
+
}), Fa = (r) => {
|
|
6946
|
+
const l = /* @__PURE__ */ Object.create(null), a = r.postfixLookupClassGroups;
|
|
6938
6947
|
if (a)
|
|
6939
6948
|
for (let h = 0; h < a.length; h++)
|
|
6940
6949
|
l[a[h]] = !0;
|
|
6941
6950
|
return l;
|
|
6942
|
-
},
|
|
6951
|
+
}, Wa = /\s+/, Ha = (r, l) => {
|
|
6943
6952
|
const {
|
|
6944
6953
|
parseClassName: a,
|
|
6945
6954
|
getClassGroupId: h,
|
|
6946
6955
|
getConflictingClassGroupIds: u,
|
|
6947
6956
|
sortModifiers: p,
|
|
6948
6957
|
postfixLookupClassGroupIds: m
|
|
6949
|
-
} = l, b = [], v =
|
|
6958
|
+
} = l, b = [], v = r.trim().split(Wa);
|
|
6950
6959
|
let g = "";
|
|
6951
6960
|
for (let R = v.length - 1; R >= 0; R -= 1) {
|
|
6952
6961
|
const T = v[R], {
|
|
@@ -6991,47 +7000,47 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
6991
7000
|
g = T + (g.length > 0 ? " " + g : g);
|
|
6992
7001
|
}
|
|
6993
7002
|
return g;
|
|
6994
|
-
},
|
|
7003
|
+
}, ja = (...r) => {
|
|
6995
7004
|
let l = 0, a, h, u = "";
|
|
6996
|
-
for (; l <
|
|
6997
|
-
(a =
|
|
7005
|
+
for (; l < r.length; )
|
|
7006
|
+
(a = r[l++]) && (h = Vo(a)) && (u && (u += " "), u += h);
|
|
6998
7007
|
return u;
|
|
6999
|
-
},
|
|
7000
|
-
if (typeof
|
|
7001
|
-
return
|
|
7008
|
+
}, Vo = (r) => {
|
|
7009
|
+
if (typeof r == "string")
|
|
7010
|
+
return r;
|
|
7002
7011
|
let l, a = "";
|
|
7003
|
-
for (let h = 0; h <
|
|
7004
|
-
|
|
7012
|
+
for (let h = 0; h < r.length; h++)
|
|
7013
|
+
r[h] && (l = Vo(r[h])) && (a && (a += " "), a += l);
|
|
7005
7014
|
return a;
|
|
7006
|
-
},
|
|
7015
|
+
}, Ga = (r, ...l) => {
|
|
7007
7016
|
let a, h, u, p;
|
|
7008
7017
|
const m = (v) => {
|
|
7009
|
-
const g = l.reduce((R, T) => T(R),
|
|
7010
|
-
return a =
|
|
7018
|
+
const g = l.reduce((R, T) => T(R), r());
|
|
7019
|
+
return a = Da(g), h = a.cache.get, u = a.cache.set, p = b, b(v);
|
|
7011
7020
|
}, b = (v) => {
|
|
7012
7021
|
const g = h(v);
|
|
7013
7022
|
if (g)
|
|
7014
7023
|
return g;
|
|
7015
|
-
const R =
|
|
7024
|
+
const R = Ha(v, a);
|
|
7016
7025
|
return u(v, R), R;
|
|
7017
7026
|
};
|
|
7018
|
-
return p = m, (...v) => p(
|
|
7019
|
-
},
|
|
7020
|
-
const l = (a) => a[
|
|
7021
|
-
return l.isThemeGetter = !0, l.themeKey =
|
|
7022
|
-
},
|
|
7027
|
+
return p = m, (...v) => p(ja(...v));
|
|
7028
|
+
}, Va = [], st = (r) => {
|
|
7029
|
+
const l = (a) => a[r] || Va;
|
|
7030
|
+
return l.isThemeGetter = !0, l.themeKey = r, l;
|
|
7031
|
+
}, Uo = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, $o = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ua = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, $a = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, qa = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ka = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Ya = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Xa = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Gt = (r) => Ua.test(r), F = (r) => !!r && !Number.isNaN(Number(r)), It = (r) => !!r && Number.isInteger(Number(r)), Wi = (r) => r.endsWith("%") && F(r.slice(0, -1)), Dt = (r) => $a.test(r), qo = () => !0, Ja = (r) => (
|
|
7023
7032
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
7024
7033
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
7025
7034
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
7026
|
-
|
|
7027
|
-
), Ji = () => !1,
|
|
7028
|
-
const h =
|
|
7035
|
+
qa.test(r) && !Ka.test(r)
|
|
7036
|
+
), Ji = () => !1, Qa = (r) => Ya.test(r), tl = (r) => Xa.test(r), el = (r) => !P(r) && !k(r), il = (r) => r.startsWith("@container") && (r[10] === "/" && r[11] !== void 0 || r[11] === "s" && r[16] !== void 0 && r.startsWith("-size/", 10) || r[11] === "n" && r[18] !== void 0 && r.startsWith("-normal/", 10)), nl = (r) => Ut(r, Xo, Ji), P = (r) => Uo.test(r), te = (r) => Ut(r, Jo, Ja), bo = (r) => Ut(r, ul, F), ol = (r) => Ut(r, tr, qo), rl = (r) => Ut(r, Qo, Ji), wo = (r) => Ut(r, Ko, Ji), sl = (r) => Ut(r, Yo, tl), ti = (r) => Ut(r, er, Qa), k = (r) => $o.test(r), ze = (r) => ie(r, Jo), al = (r) => ie(r, Qo), xo = (r) => ie(r, Ko), ll = (r) => ie(r, Xo), hl = (r) => ie(r, Yo), ei = (r) => ie(r, er, !0), cl = (r) => ie(r, tr, !0), Ut = (r, l, a) => {
|
|
7037
|
+
const h = Uo.exec(r);
|
|
7029
7038
|
return h ? h[1] ? l(h[1]) : a(h[2]) : !1;
|
|
7030
|
-
}, ie = (
|
|
7031
|
-
const h =
|
|
7039
|
+
}, ie = (r, l, a = !1) => {
|
|
7040
|
+
const h = $o.exec(r);
|
|
7032
7041
|
return h ? h[1] ? l(h[1]) : a : !1;
|
|
7033
|
-
},
|
|
7034
|
-
const
|
|
7042
|
+
}, Ko = (r) => r === "position" || r === "percentage", Yo = (r) => r === "image" || r === "url", Xo = (r) => r === "length" || r === "size" || r === "bg-size", Jo = (r) => r === "length", ul = (r) => r === "number", Qo = (r) => r === "family-name", tr = (r) => r === "number" || r === "weight", er = (r) => r === "shadow", dl = () => {
|
|
7043
|
+
const r = st("color"), l = st("font"), a = st("text"), h = st("font-weight"), u = st("tracking"), p = st("leading"), m = st("breakpoint"), b = st("container"), v = st("spacing"), g = st("radius"), R = st("shadow"), T = st("inset-shadow"), D = st("text-shadow"), Z = st("drop-shadow"), G = st("blur"), S = st("perspective"), Y = st("aspect"), ft = st("ease"), X = st("animate"), U = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], lt = () => [
|
|
7035
7044
|
"center",
|
|
7036
7045
|
"top",
|
|
7037
7046
|
"bottom",
|
|
@@ -7051,11 +7060,11 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
7051
7060
|
"left-bottom"
|
|
7052
7061
|
], mt = () => [...lt(), k, P], C = () => ["auto", "hidden", "clip", "visible", "scroll"], W = () => ["auto", "contain", "none"], w = () => [k, P, v], nt = () => [Gt, "full", "auto", ...w()], $t = () => [It, "none", "subgrid", k, P], tt = () => ["auto", {
|
|
7053
7062
|
span: ["full", It, k, P]
|
|
7054
|
-
}, It, k, P], ht = () => [It, "auto", k, P], Ae = () => ["auto", "min", "max", "fr", k, P], vt = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Ft = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], K = () => ["auto", ...w()], yt = () => [Gt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...w()], A = () => [b, Gt, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...w()], ne = () => [Gt, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...w()], y = () => [
|
|
7063
|
+
}, It, k, P], ht = () => [It, "auto", k, P], Ae = () => ["auto", "min", "max", "fr", k, P], vt = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Ft = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], K = () => ["auto", ...w()], yt = () => [Gt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...w()], A = () => [b, Gt, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...w()], ne = () => [Gt, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...w()], y = () => [r, k, P], $ = () => [...lt(), xo, wo, {
|
|
7055
7064
|
position: [k, P]
|
|
7056
7065
|
}], ct = () => ["no-repeat", {
|
|
7057
7066
|
repeat: ["", "x", "y", "space", "round"]
|
|
7058
|
-
}], ut = () => ["auto", "cover", "contain",
|
|
7067
|
+
}], ut = () => ["auto", "cover", "contain", ll, nl, {
|
|
7059
7068
|
size: [k, P]
|
|
7060
7069
|
}], J = () => [Wi, ze, te], I = () => [
|
|
7061
7070
|
// Deprecated since Tailwind CSS v4.0.0
|
|
@@ -7065,7 +7074,7 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
7065
7074
|
g,
|
|
7066
7075
|
k,
|
|
7067
7076
|
P
|
|
7068
|
-
], M = () => ["", F, ze, te], _t = () => ["solid", "dashed", "dotted", "double"],
|
|
7077
|
+
], M = () => ["", F, ze, te], _t = () => ["solid", "dashed", "dotted", "double"], kt = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], et = () => [F, Wi, xo, wo], oe = () => [
|
|
7069
7078
|
// Deprecated since Tailwind CSS v4.0.0
|
|
7070
7079
|
"",
|
|
7071
7080
|
"none",
|
|
@@ -7080,11 +7089,11 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
7080
7089
|
aspect: ["video"],
|
|
7081
7090
|
blur: [Dt],
|
|
7082
7091
|
breakpoint: [Dt],
|
|
7083
|
-
color: [
|
|
7092
|
+
color: [qo],
|
|
7084
7093
|
container: [Dt],
|
|
7085
7094
|
"drop-shadow": [Dt],
|
|
7086
7095
|
ease: ["in", "out", "in-out"],
|
|
7087
|
-
font: [
|
|
7096
|
+
font: [el],
|
|
7088
7097
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
7089
7098
|
"inset-shadow": [Dt],
|
|
7090
7099
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -7124,7 +7133,7 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
7124
7133
|
* Container Name
|
|
7125
7134
|
* @see https://tailwindcss.com/docs/responsive-design#named-containers
|
|
7126
7135
|
*/
|
|
7127
|
-
"container-named": [
|
|
7136
|
+
"container-named": [il],
|
|
7128
7137
|
/**
|
|
7129
7138
|
* Columns
|
|
7130
7139
|
* @see https://tailwindcss.com/docs/columns
|
|
@@ -7890,7 +7899,7 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
7890
7899
|
* @see https://tailwindcss.com/docs/font-weight
|
|
7891
7900
|
*/
|
|
7892
7901
|
"font-weight": [{
|
|
7893
|
-
font: [h,
|
|
7902
|
+
font: [h, cl, ol]
|
|
7894
7903
|
}],
|
|
7895
7904
|
/**
|
|
7896
7905
|
* Font Stretch
|
|
@@ -7904,7 +7913,7 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
7904
7913
|
* @see https://tailwindcss.com/docs/font-family
|
|
7905
7914
|
*/
|
|
7906
7915
|
"font-family": [{
|
|
7907
|
-
font: [
|
|
7916
|
+
font: [al, rl, l]
|
|
7908
7917
|
}],
|
|
7909
7918
|
/**
|
|
7910
7919
|
* Font Feature Settings
|
|
@@ -8174,7 +8183,7 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
8174
8183
|
}, It, k, P],
|
|
8175
8184
|
radial: ["", k, P],
|
|
8176
8185
|
conic: ["", It, k, P]
|
|
8177
|
-
},
|
|
8186
|
+
}, hl, sl]
|
|
8178
8187
|
}],
|
|
8179
8188
|
/**
|
|
8180
8189
|
* Background Color
|
|
@@ -8679,14 +8688,14 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
8679
8688
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
8680
8689
|
*/
|
|
8681
8690
|
"mix-blend": [{
|
|
8682
|
-
"mix-blend": [...
|
|
8691
|
+
"mix-blend": [...kt(), "plus-darker", "plus-lighter"]
|
|
8683
8692
|
}],
|
|
8684
8693
|
/**
|
|
8685
8694
|
* Background Blend Mode
|
|
8686
8695
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
8687
8696
|
*/
|
|
8688
8697
|
"bg-blend": [{
|
|
8689
|
-
"bg-blend":
|
|
8698
|
+
"bg-blend": kt()
|
|
8690
8699
|
}],
|
|
8691
8700
|
/**
|
|
8692
8701
|
* Mask Clip
|
|
@@ -9718,11 +9727,11 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
9718
9727
|
postfixLookupClassGroups: ["container-type"],
|
|
9719
9728
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
9720
9729
|
};
|
|
9721
|
-
},
|
|
9722
|
-
function
|
|
9723
|
-
return
|
|
9730
|
+
}, fl = /* @__PURE__ */ Ga(dl);
|
|
9731
|
+
function ml(...r) {
|
|
9732
|
+
return fl(Wo(r));
|
|
9724
9733
|
}
|
|
9725
|
-
const
|
|
9734
|
+
const pl = xa(
|
|
9726
9735
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer",
|
|
9727
9736
|
{
|
|
9728
9737
|
variants: {
|
|
@@ -9750,30 +9759,30 @@ const ml = wa(
|
|
|
9750
9759
|
}
|
|
9751
9760
|
);
|
|
9752
9761
|
function Me({
|
|
9753
|
-
className:
|
|
9762
|
+
className: r,
|
|
9754
9763
|
variant: l,
|
|
9755
9764
|
size: a,
|
|
9756
9765
|
asChild: h = !1,
|
|
9757
9766
|
...u
|
|
9758
9767
|
}) {
|
|
9759
|
-
const p = h ?
|
|
9768
|
+
const p = h ? _a : "button";
|
|
9760
9769
|
return /* @__PURE__ */ O.jsx(
|
|
9761
9770
|
p,
|
|
9762
9771
|
{
|
|
9763
9772
|
"data-slot": "button",
|
|
9764
|
-
className:
|
|
9773
|
+
className: ml(pl({ variant: l, size: a, className: r })),
|
|
9765
9774
|
...u
|
|
9766
9775
|
}
|
|
9767
9776
|
);
|
|
9768
9777
|
}
|
|
9769
|
-
const
|
|
9778
|
+
const _l = (r) => r.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), gl = (r) => r.replace(
|
|
9770
9779
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
9771
9780
|
(l, a, h) => h ? h.toUpperCase() : a.toLowerCase()
|
|
9772
|
-
), Po = (
|
|
9773
|
-
const l =
|
|
9781
|
+
), Po = (r) => {
|
|
9782
|
+
const l = gl(r);
|
|
9774
9783
|
return l.charAt(0).toUpperCase() + l.slice(1);
|
|
9775
|
-
},
|
|
9776
|
-
var
|
|
9784
|
+
}, ir = (...r) => r.filter((l, a, h) => !!l && l.trim() !== "" && h.indexOf(l) === a).join(" ").trim();
|
|
9785
|
+
var vl = {
|
|
9777
9786
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9778
9787
|
width: 24,
|
|
9779
9788
|
height: 24,
|
|
@@ -9784,9 +9793,9 @@ var gl = {
|
|
|
9784
9793
|
strokeLinecap: "round",
|
|
9785
9794
|
strokeLinejoin: "round"
|
|
9786
9795
|
};
|
|
9787
|
-
const
|
|
9796
|
+
const yl = window.React.forwardRef, Lo = window.React.createElement, bl = yl(
|
|
9788
9797
|
({
|
|
9789
|
-
color:
|
|
9798
|
+
color: r = "currentColor",
|
|
9790
9799
|
size: l = 24,
|
|
9791
9800
|
strokeWidth: a = 2,
|
|
9792
9801
|
absoluteStrokeWidth: h,
|
|
@@ -9798,12 +9807,12 @@ const vl = window.React.forwardRef, Lo = window.React.createElement, yl = vl(
|
|
|
9798
9807
|
"svg",
|
|
9799
9808
|
{
|
|
9800
9809
|
ref: v,
|
|
9801
|
-
...
|
|
9810
|
+
...vl,
|
|
9802
9811
|
width: l,
|
|
9803
9812
|
height: l,
|
|
9804
|
-
stroke:
|
|
9813
|
+
stroke: r,
|
|
9805
9814
|
strokeWidth: h ? Number(a) * 24 / Number(l) : a,
|
|
9806
|
-
className:
|
|
9815
|
+
className: ir("lucide", u),
|
|
9807
9816
|
...b
|
|
9808
9817
|
},
|
|
9809
9818
|
[
|
|
@@ -9812,23 +9821,23 @@ const vl = window.React.forwardRef, Lo = window.React.createElement, yl = vl(
|
|
|
9812
9821
|
]
|
|
9813
9822
|
)
|
|
9814
9823
|
);
|
|
9815
|
-
const
|
|
9816
|
-
const a =
|
|
9817
|
-
({ className: h, ...u }, p) =>
|
|
9824
|
+
const wl = window.React.forwardRef, xl = window.React.createElement, Oe = (r, l) => {
|
|
9825
|
+
const a = wl(
|
|
9826
|
+
({ className: h, ...u }, p) => xl(bl, {
|
|
9818
9827
|
ref: p,
|
|
9819
9828
|
iconNode: l,
|
|
9820
|
-
className:
|
|
9821
|
-
`lucide-${
|
|
9822
|
-
`lucide-${
|
|
9829
|
+
className: ir(
|
|
9830
|
+
`lucide-${_l(Po(r))}`,
|
|
9831
|
+
`lucide-${r}`,
|
|
9823
9832
|
h
|
|
9824
9833
|
),
|
|
9825
9834
|
...u
|
|
9826
9835
|
})
|
|
9827
9836
|
);
|
|
9828
|
-
return a.displayName = Po(
|
|
9837
|
+
return a.displayName = Po(r), a;
|
|
9829
9838
|
};
|
|
9830
|
-
const
|
|
9831
|
-
const
|
|
9839
|
+
const Pl = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Ll = Oe("check", Pl);
|
|
9840
|
+
const kl = [
|
|
9832
9841
|
[
|
|
9833
9842
|
"path",
|
|
9834
9843
|
{
|
|
@@ -9836,8 +9845,8 @@ const Ll = [
|
|
|
9836
9845
|
key: "yt0hxn"
|
|
9837
9846
|
}
|
|
9838
9847
|
]
|
|
9839
|
-
],
|
|
9840
|
-
const
|
|
9848
|
+
], Tl = Oe("hexagon", kl);
|
|
9849
|
+
const Cl = [
|
|
9841
9850
|
[
|
|
9842
9851
|
"path",
|
|
9843
9852
|
{
|
|
@@ -9846,17 +9855,17 @@ const Tl = [
|
|
|
9846
9855
|
}
|
|
9847
9856
|
],
|
|
9848
9857
|
["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
|
|
9849
|
-
],
|
|
9850
|
-
const
|
|
9858
|
+
], Sl = Oe("map-pin", Cl);
|
|
9859
|
+
const zl = [
|
|
9851
9860
|
["rect", { width: "20", height: "12", x: "2", y: "6", rx: "2", key: "9lu3g6" }]
|
|
9852
|
-
],
|
|
9853
|
-
const
|
|
9861
|
+
], Ml = Oe("rectangle-horizontal", zl);
|
|
9862
|
+
const El = [
|
|
9854
9863
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
9855
9864
|
["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6", key: "4alrt4" }],
|
|
9856
9865
|
["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }],
|
|
9857
9866
|
["line", { x1: "10", x2: "10", y1: "11", y2: "17", key: "1uufr5" }],
|
|
9858
9867
|
["line", { x1: "14", x2: "14", y1: "11", y2: "17", key: "xtxkd" }]
|
|
9859
|
-
],
|
|
9868
|
+
], Ol = Oe("trash-2", El), Al = window.React, ee = window.React.useState, ii = window.React.useEffect, St = window.React.useCallback;
|
|
9860
9869
|
delete So.Icon.Default.prototype._getIconUrl;
|
|
9861
9870
|
So.Icon.Default.mergeOptions({
|
|
9862
9871
|
iconRetinaUrl: "https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-icon-2x.png",
|
|
@@ -9869,8 +9878,8 @@ const ko = {
|
|
|
9869
9878
|
opacity: 1,
|
|
9870
9879
|
fillOpacity: 0.7,
|
|
9871
9880
|
dashArray: "0"
|
|
9872
|
-
},
|
|
9873
|
-
position:
|
|
9881
|
+
}, Il = ({
|
|
9882
|
+
position: r,
|
|
9874
9883
|
onAddMarker: l,
|
|
9875
9884
|
onAddPolygon: a,
|
|
9876
9885
|
onAddRectangle: h,
|
|
@@ -9884,7 +9893,7 @@ const ko = {
|
|
|
9884
9893
|
"top-right": "leaflet-top leaflet-right",
|
|
9885
9894
|
"bottom-left": "leaflet-bottom leaflet-left",
|
|
9886
9895
|
"bottom-right": "leaflet-bottom leaflet-right"
|
|
9887
|
-
}[
|
|
9896
|
+
}[r];
|
|
9888
9897
|
return /* @__PURE__ */ O.jsx("div", { className: `${v} leaflet-control-container`, children: /* @__PURE__ */ O.jsxs("div", { className: "leaflet-control leaflet-bar flex flex-col bg-sidebar [&>button]:border-b", children: [
|
|
9889
9898
|
/* @__PURE__ */ O.jsx(
|
|
9890
9899
|
Me,
|
|
@@ -9897,7 +9906,7 @@ const ko = {
|
|
|
9897
9906
|
},
|
|
9898
9907
|
title: "Add marker",
|
|
9899
9908
|
disabled: b,
|
|
9900
|
-
children: /* @__PURE__ */ O.jsx(
|
|
9909
|
+
children: /* @__PURE__ */ O.jsx(Sl, {})
|
|
9901
9910
|
}
|
|
9902
9911
|
),
|
|
9903
9912
|
/* @__PURE__ */ O.jsx(
|
|
@@ -9911,7 +9920,7 @@ const ko = {
|
|
|
9911
9920
|
},
|
|
9912
9921
|
title: "Add polygon",
|
|
9913
9922
|
disabled: b && m !== "polygon",
|
|
9914
|
-
children: /* @__PURE__ */ O.jsx(
|
|
9923
|
+
children: /* @__PURE__ */ O.jsx(Tl, {})
|
|
9915
9924
|
}
|
|
9916
9925
|
),
|
|
9917
9926
|
/* @__PURE__ */ O.jsx(
|
|
@@ -9925,7 +9934,7 @@ const ko = {
|
|
|
9925
9934
|
},
|
|
9926
9935
|
title: "Add rectangle",
|
|
9927
9936
|
disabled: b,
|
|
9928
|
-
children: /* @__PURE__ */ O.jsx(
|
|
9937
|
+
children: /* @__PURE__ */ O.jsx(Ml, {})
|
|
9929
9938
|
}
|
|
9930
9939
|
),
|
|
9931
9940
|
m === "polygon" && b && /* @__PURE__ */ O.jsx(
|
|
@@ -9938,7 +9947,7 @@ const ko = {
|
|
|
9938
9947
|
variant: "ghost",
|
|
9939
9948
|
size: "sm",
|
|
9940
9949
|
title: "Finish drawing",
|
|
9941
|
-
children: /* @__PURE__ */ O.jsx(
|
|
9950
|
+
children: /* @__PURE__ */ O.jsx(Ll, {})
|
|
9942
9951
|
}
|
|
9943
9952
|
),
|
|
9944
9953
|
/* @__PURE__ */ O.jsx(
|
|
@@ -9952,12 +9961,12 @@ const ko = {
|
|
|
9952
9961
|
size: "sm",
|
|
9953
9962
|
title: "Clear map",
|
|
9954
9963
|
disabled: b,
|
|
9955
|
-
children: /* @__PURE__ */ O.jsx(
|
|
9964
|
+
children: /* @__PURE__ */ O.jsx(Ol, {})
|
|
9956
9965
|
}
|
|
9957
9966
|
)
|
|
9958
9967
|
] }) });
|
|
9959
|
-
},
|
|
9960
|
-
features:
|
|
9968
|
+
}, Rl = ({
|
|
9969
|
+
features: r,
|
|
9961
9970
|
mode: l,
|
|
9962
9971
|
drawingMode: a,
|
|
9963
9972
|
setDrawingMode: h,
|
|
@@ -9966,14 +9975,14 @@ const ko = {
|
|
|
9966
9975
|
onFinishDrawing: m,
|
|
9967
9976
|
allowMarkerMovement: b = !0
|
|
9968
9977
|
}) => {
|
|
9969
|
-
const v =
|
|
9978
|
+
const v = ea(), [g, R] = ee([]), [T, D] = ee(null), [Z, G] = ee(null), S = St((C, W) => {
|
|
9970
9979
|
if (!b) return;
|
|
9971
|
-
const nt = C.target.getLatLng(), $t =
|
|
9980
|
+
const nt = C.target.getLatLng(), $t = r.map((tt) => tt.id === W ? {
|
|
9972
9981
|
...tt,
|
|
9973
9982
|
position: [nt.lat, nt.lng]
|
|
9974
9983
|
} : tt);
|
|
9975
9984
|
u($t);
|
|
9976
|
-
}, [
|
|
9985
|
+
}, [r, u, b]), Y = St(() => {
|
|
9977
9986
|
if (g.length < 3) {
|
|
9978
9987
|
R([]), h("none"), p(!1);
|
|
9979
9988
|
return;
|
|
@@ -9981,13 +9990,13 @@ const ko = {
|
|
|
9981
9990
|
const C = {
|
|
9982
9991
|
id: Date.now(),
|
|
9983
9992
|
polygon: [[...g, g[0]]],
|
|
9984
|
-
popupContent: `Полигон ${
|
|
9993
|
+
popupContent: `Полигон ${r.length + 1}`,
|
|
9985
9994
|
color: `#${Math.floor(Math.random() * 16777215).toString(16)}`
|
|
9986
9995
|
};
|
|
9987
|
-
u([...
|
|
9996
|
+
u([...r, C]), R([]), h("none"), p(!1), v.doubleClickZoom.enable();
|
|
9988
9997
|
}, [
|
|
9989
9998
|
g,
|
|
9990
|
-
|
|
9999
|
+
r,
|
|
9991
10000
|
u,
|
|
9992
10001
|
h,
|
|
9993
10002
|
v,
|
|
@@ -9996,40 +10005,40 @@ const ko = {
|
|
|
9996
10005
|
ii(() => {
|
|
9997
10006
|
m > 0 && a === "polygon" && g.length >= 3 && Y();
|
|
9998
10007
|
}, [m]);
|
|
9999
|
-
const ft =
|
|
10008
|
+
const ft = St(
|
|
10000
10009
|
(C) => {
|
|
10001
10010
|
if (a !== "marker") return;
|
|
10002
10011
|
const W = {
|
|
10003
10012
|
id: Date.now(),
|
|
10004
10013
|
position: [C.lat, C.lng],
|
|
10005
|
-
popupContent: `Маркер ${
|
|
10014
|
+
popupContent: `Маркер ${r.length + 1}`,
|
|
10006
10015
|
draggable: b
|
|
10007
10016
|
};
|
|
10008
|
-
u([...
|
|
10017
|
+
u([...r, W]);
|
|
10009
10018
|
},
|
|
10010
|
-
[
|
|
10011
|
-
), X =
|
|
10019
|
+
[r, u, a, b]
|
|
10020
|
+
), X = St(
|
|
10012
10021
|
(C) => {
|
|
10013
10022
|
if (a !== "polygon") return;
|
|
10014
10023
|
const W = [C.lat, C.lng], w = [...g, W];
|
|
10015
10024
|
R(w), p(!0), v.doubleClickZoom.disable();
|
|
10016
10025
|
},
|
|
10017
10026
|
[g, a, v, p]
|
|
10018
|
-
), U =
|
|
10027
|
+
), U = St(
|
|
10019
10028
|
(C) => {
|
|
10020
10029
|
if (a !== "rectangle") return;
|
|
10021
10030
|
const W = [C.lat, C.lng];
|
|
10022
10031
|
D(W), G(W), p(!0);
|
|
10023
10032
|
},
|
|
10024
10033
|
[a, p]
|
|
10025
|
-
), lt =
|
|
10034
|
+
), lt = St(
|
|
10026
10035
|
(C) => {
|
|
10027
10036
|
if (!T || a !== "rectangle") return;
|
|
10028
10037
|
const W = [C.lat, C.lng];
|
|
10029
10038
|
G(W);
|
|
10030
10039
|
},
|
|
10031
10040
|
[T, a]
|
|
10032
|
-
), mt =
|
|
10041
|
+
), mt = St(() => {
|
|
10033
10042
|
if (!T || !Z) {
|
|
10034
10043
|
D(null), G(null), h("none"), p(!1);
|
|
10035
10044
|
return;
|
|
@@ -10037,14 +10046,14 @@ const ko = {
|
|
|
10037
10046
|
const C = {
|
|
10038
10047
|
id: Date.now(),
|
|
10039
10048
|
rectangle: [T, Z],
|
|
10040
|
-
popupContent: `Прямоугольник ${
|
|
10049
|
+
popupContent: `Прямоугольник ${r.length + 1}`,
|
|
10041
10050
|
color: `#${Math.floor(Math.random() * 16777215).toString(16)}`
|
|
10042
10051
|
};
|
|
10043
|
-
u([...
|
|
10052
|
+
u([...r, C]), D(null), G(null), h("none"), p(!1);
|
|
10044
10053
|
}, [
|
|
10045
10054
|
T,
|
|
10046
10055
|
Z,
|
|
10047
|
-
|
|
10056
|
+
r,
|
|
10048
10057
|
u,
|
|
10049
10058
|
h,
|
|
10050
10059
|
p
|
|
@@ -10081,9 +10090,9 @@ const ko = {
|
|
|
10081
10090
|
p,
|
|
10082
10091
|
v
|
|
10083
10092
|
]), /* @__PURE__ */ O.jsxs(O.Fragment, { children: [
|
|
10084
|
-
|
|
10093
|
+
r.map((C) => /* @__PURE__ */ O.jsxs(Al.Fragment, { children: [
|
|
10085
10094
|
(l === "marker" || l === "all") && C.position && /* @__PURE__ */ O.jsx(
|
|
10086
|
-
|
|
10095
|
+
ha,
|
|
10087
10096
|
{
|
|
10088
10097
|
position: C.position,
|
|
10089
10098
|
draggable: C.draggable !== !1 && b,
|
|
@@ -10105,7 +10114,7 @@ const ko = {
|
|
|
10105
10114
|
}
|
|
10106
10115
|
),
|
|
10107
10116
|
(l === "polygon" || l === "all") && C.polygon && /* @__PURE__ */ O.jsx(
|
|
10108
|
-
|
|
10117
|
+
ca,
|
|
10109
10118
|
{
|
|
10110
10119
|
positions: C.polygon,
|
|
10111
10120
|
pathOptions: { color: C.color || "blue" },
|
|
@@ -10168,8 +10177,8 @@ const ko = {
|
|
|
10168
10177
|
}
|
|
10169
10178
|
)
|
|
10170
10179
|
] });
|
|
10171
|
-
},
|
|
10172
|
-
mode:
|
|
10180
|
+
}, nr = ({
|
|
10181
|
+
mode: r = "all",
|
|
10173
10182
|
initialFeatures: l = [],
|
|
10174
10183
|
center: a = [45.7, 60.1],
|
|
10175
10184
|
zoom: h = 3,
|
|
@@ -10181,26 +10190,26 @@ const ko = {
|
|
|
10181
10190
|
disabled: g,
|
|
10182
10191
|
allowMarkerMovement: R = !0
|
|
10183
10192
|
}) => {
|
|
10184
|
-
const [T, D] = ee(l), [Z, G] = ee("none"), [S, Y] = ee(!1), [ft, X] = ee(0), U =
|
|
10193
|
+
const [T, D] = ee(l), [Z, G] = ee("none"), [S, Y] = ee(!1), [ft, X] = ee(0), U = St(
|
|
10185
10194
|
(W) => {
|
|
10186
10195
|
D(W), m && m(W);
|
|
10187
10196
|
},
|
|
10188
10197
|
[m]
|
|
10189
|
-
), lt =
|
|
10198
|
+
), lt = St(
|
|
10190
10199
|
(W) => {
|
|
10191
10200
|
S || G((w) => w === W ? "none" : W);
|
|
10192
10201
|
},
|
|
10193
10202
|
[S]
|
|
10194
|
-
), mt =
|
|
10203
|
+
), mt = St(() => {
|
|
10195
10204
|
Z === "polygon" && S && X((W) => W + 1);
|
|
10196
|
-
}, [Z, S]), C =
|
|
10205
|
+
}, [Z, S]), C = St(() => {
|
|
10197
10206
|
S || (U([]), G("none"));
|
|
10198
10207
|
}, [U, S]);
|
|
10199
10208
|
return ii(() => {
|
|
10200
10209
|
JSON.stringify(l) !== JSON.stringify(T) && D(l);
|
|
10201
10210
|
}, [l]), /* @__PURE__ */ O.jsxs("div", { className: `${b} ${g ? "pointer-events-none opacity-50" : ""}`, style: { position: "relative", ...v }, children: [
|
|
10202
10211
|
/* @__PURE__ */ O.jsxs(
|
|
10203
|
-
|
|
10212
|
+
la,
|
|
10204
10213
|
{
|
|
10205
10214
|
center: a,
|
|
10206
10215
|
zoom: h,
|
|
@@ -10208,17 +10217,17 @@ const ko = {
|
|
|
10208
10217
|
doubleClickZoom: !0,
|
|
10209
10218
|
children: [
|
|
10210
10219
|
/* @__PURE__ */ O.jsx(
|
|
10211
|
-
|
|
10220
|
+
da,
|
|
10212
10221
|
{
|
|
10213
10222
|
url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
|
|
10214
10223
|
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
|
|
10215
10224
|
}
|
|
10216
10225
|
),
|
|
10217
10226
|
/* @__PURE__ */ O.jsx(
|
|
10218
|
-
|
|
10227
|
+
Rl,
|
|
10219
10228
|
{
|
|
10220
10229
|
features: T,
|
|
10221
|
-
mode:
|
|
10230
|
+
mode: r,
|
|
10222
10231
|
drawingMode: Z,
|
|
10223
10232
|
setDrawingMode: G,
|
|
10224
10233
|
onFeaturesChange: U,
|
|
@@ -10231,7 +10240,7 @@ const ko = {
|
|
|
10231
10240
|
}
|
|
10232
10241
|
),
|
|
10233
10242
|
u && /* @__PURE__ */ O.jsx(
|
|
10234
|
-
|
|
10243
|
+
Il,
|
|
10235
10244
|
{
|
|
10236
10245
|
position: p,
|
|
10237
10246
|
onAddMarker: () => lt("marker"),
|
|
@@ -10298,24 +10307,24 @@ const ko = {
|
|
|
10298
10307
|
}
|
|
10299
10308
|
)
|
|
10300
10309
|
] });
|
|
10301
|
-
},
|
|
10302
|
-
function
|
|
10303
|
-
initialValue:
|
|
10310
|
+
}, Nl = nr;
|
|
10311
|
+
function Dl({
|
|
10312
|
+
initialValue: r,
|
|
10304
10313
|
options: l,
|
|
10305
10314
|
onChange: a,
|
|
10306
10315
|
disabled: h
|
|
10307
10316
|
}) {
|
|
10308
10317
|
return /* @__PURE__ */ O.jsx(
|
|
10309
|
-
|
|
10318
|
+
nr,
|
|
10310
10319
|
{
|
|
10311
10320
|
...l,
|
|
10312
|
-
initialFeatures:
|
|
10321
|
+
initialFeatures: r ?? [],
|
|
10313
10322
|
onFeaturesChange: a,
|
|
10314
10323
|
disabled: h
|
|
10315
10324
|
}
|
|
10316
10325
|
);
|
|
10317
10326
|
}
|
|
10318
10327
|
export {
|
|
10319
|
-
|
|
10320
|
-
|
|
10328
|
+
Nl as Component,
|
|
10329
|
+
Dl as default
|
|
10321
10330
|
};
|