@maptiler/geocoding-control 2.1.3-rc1 → 2.1.3
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/leaflet.js +914 -931
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +13 -13
- package/leaflet.umd.js.map +1 -1
- package/maplibregl.js +911 -928
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +13 -13
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.js +912 -929
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +13 -13
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers.js +932 -949
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +13 -13
- package/openlayers.umd.js.map +1 -1
- package/package.json +1 -1
- package/react.js +642 -659
- package/react.js.map +1 -1
- package/react.umd.js +13 -13
- package/react.umd.js.map +1 -1
- package/svelte/FeatureItem.svelte +1 -1
- package/svelte/GeocodingControl.svelte +17 -45
- package/svelte/GeocodingControl.svelte.d.ts +0 -1
- package/svelte/info.json +1 -1
- package/svelte/types.d.ts +0 -1
- package/types.d.ts +0 -1
- package/vanilla.js +770 -787
- package/vanilla.js.map +1 -1
- package/vanilla.umd.js +12 -12
- package/vanilla.umd.js.map +1 -1
package/leaflet.js
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var jn = Object.defineProperty;
|
|
2
|
+
var _i = (i) => {
|
|
3
3
|
throw TypeError(i);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var I = (i, e, t) =>
|
|
7
|
-
var
|
|
8
|
-
import * as
|
|
9
|
-
function
|
|
5
|
+
var Hn = (i, e, t) => e in i ? jn(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
6
|
+
var I = (i, e, t) => Hn(i, typeof e != "symbol" ? e + "" : e, t), Si = (i, e, t) => e.has(i) || _i("Cannot " + t);
|
|
7
|
+
var ve = (i, e, t) => (Si(i, e, "read from private field"), t ? t.call(i) : e.get(i)), Jt = (i, e, t) => e.has(i) ? _i("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), $t = (i, e, t, n) => (Si(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t);
|
|
8
|
+
import * as ke from "leaflet";
|
|
9
|
+
function ee() {
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function Vn(i, e) {
|
|
12
12
|
for (const t in e) i[t] = e[t];
|
|
13
13
|
return (
|
|
14
14
|
/** @type {T & S} */
|
|
15
15
|
i
|
|
16
16
|
);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function en(i) {
|
|
19
19
|
return i();
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function xi() {
|
|
22
22
|
return /* @__PURE__ */ Object.create(null);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
i.forEach(
|
|
24
|
+
function He(i) {
|
|
25
|
+
i.forEach(en);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function tn(i) {
|
|
28
28
|
return typeof i == "function";
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Je(i, e) {
|
|
31
31
|
return i != i ? e == e : i !== e || i && typeof i == "object" || typeof i == "function";
|
|
32
32
|
}
|
|
33
|
-
let
|
|
34
|
-
function
|
|
35
|
-
return i === e ? !0 : (
|
|
33
|
+
let kt;
|
|
34
|
+
function ge(i, e) {
|
|
35
|
+
return i === e ? !0 : (kt || (kt = document.createElement("a")), kt.href = e, i === kt.href);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Kn(i) {
|
|
38
38
|
return Object.keys(i).length === 0;
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function Yn(i, e, t, n) {
|
|
41
41
|
if (i) {
|
|
42
|
-
const r =
|
|
42
|
+
const r = nn(i, e, t, n);
|
|
43
43
|
return i[0](r);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
return i[1] && n ?
|
|
46
|
+
function nn(i, e, t, n) {
|
|
47
|
+
return i[1] && n ? Vn(t.ctx.slice(), i[1](n(e))) : t.ctx;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function Xn(i, e, t, n) {
|
|
50
50
|
return i[2], e.dirty;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Qn(i, e, t, n, r, u) {
|
|
53
53
|
if (r) {
|
|
54
|
-
const a =
|
|
54
|
+
const a = nn(e, t, n, u);
|
|
55
55
|
i.p(a, r);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function Jn(i) {
|
|
59
59
|
if (i.ctx.length > 32) {
|
|
60
60
|
const e = [], t = i.ctx.length / 32;
|
|
61
61
|
for (let n = 0; n < t; n++)
|
|
@@ -64,37 +64,37 @@ function ir(i) {
|
|
|
64
64
|
}
|
|
65
65
|
return -1;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function Dt(i) {
|
|
68
68
|
return i ?? "";
|
|
69
69
|
}
|
|
70
70
|
function Z(i, e) {
|
|
71
71
|
i.appendChild(e);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function te(i, e, t) {
|
|
74
74
|
i.insertBefore(e, t || null);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function $(i) {
|
|
77
77
|
i.parentNode && i.parentNode.removeChild(i);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Q(i) {
|
|
80
80
|
return document.createElement(i);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Re(i) {
|
|
83
83
|
return document.createElementNS("http://www.w3.org/2000/svg", i);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function Xe(i) {
|
|
86
86
|
return document.createTextNode(i);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
return
|
|
88
|
+
function Le() {
|
|
89
|
+
return Xe(" ");
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
return
|
|
91
|
+
function $n() {
|
|
92
|
+
return Xe("");
|
|
93
93
|
}
|
|
94
94
|
function fe(i, e, t, n) {
|
|
95
95
|
return i.addEventListener(e, t, n), () => i.removeEventListener(e, t, n);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function er(i) {
|
|
98
98
|
return function(e) {
|
|
99
99
|
return e.preventDefault(), i.call(this, e);
|
|
100
100
|
};
|
|
@@ -102,39 +102,39 @@ function rr(i) {
|
|
|
102
102
|
function x(i, e, t) {
|
|
103
103
|
t == null ? i.removeAttribute(e) : i.getAttribute(e) !== t && i.setAttribute(e, t);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function tr(i) {
|
|
106
106
|
return Array.from(i.childNodes);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function _t(i, e) {
|
|
109
109
|
e = "" + e, i.data !== e && (i.data = /** @type {string} */
|
|
110
110
|
e);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function Ti(i, e) {
|
|
113
113
|
i.value = e ?? "";
|
|
114
114
|
}
|
|
115
115
|
function We(i, e, t) {
|
|
116
116
|
i.classList.toggle(e, !!t);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function ir(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
|
|
119
119
|
return new CustomEvent(i, { detail: e, bubbles: t, cancelable: n });
|
|
120
120
|
}
|
|
121
|
-
let
|
|
122
|
-
function
|
|
123
|
-
|
|
121
|
+
let St;
|
|
122
|
+
function Lt(i) {
|
|
123
|
+
St = i;
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
if (!
|
|
127
|
-
return
|
|
125
|
+
function rn() {
|
|
126
|
+
if (!St) throw new Error("Function called outside component initialization");
|
|
127
|
+
return St;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
|
|
129
|
+
function nr(i) {
|
|
130
|
+
rn().$$.on_destroy.push(i);
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
const i =
|
|
132
|
+
function sn() {
|
|
133
|
+
const i = rn();
|
|
134
134
|
return (e, t, { cancelable: n = !1 } = {}) => {
|
|
135
135
|
const r = i.$$.callbacks[e];
|
|
136
136
|
if (r) {
|
|
137
|
-
const u =
|
|
137
|
+
const u = ir(
|
|
138
138
|
/** @type {string} */
|
|
139
139
|
e,
|
|
140
140
|
t,
|
|
@@ -147,90 +147,90 @@ function un() {
|
|
|
147
147
|
return !0;
|
|
148
148
|
};
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function rr(i, e) {
|
|
151
151
|
const t = i.$$.callbacks[e.type];
|
|
152
152
|
t && t.slice().forEach((n) => n.call(this, e));
|
|
153
153
|
}
|
|
154
|
-
const
|
|
155
|
-
let
|
|
156
|
-
const
|
|
157
|
-
let
|
|
158
|
-
function
|
|
159
|
-
|
|
154
|
+
const ft = [], ni = [];
|
|
155
|
+
let ct = [];
|
|
156
|
+
const Mi = [], sr = /* @__PURE__ */ Promise.resolve();
|
|
157
|
+
let ri = !1;
|
|
158
|
+
function or() {
|
|
159
|
+
ri || (ri = !0, sr.then(on));
|
|
160
160
|
}
|
|
161
|
-
function
|
|
162
|
-
|
|
161
|
+
function si(i) {
|
|
162
|
+
ct.push(i);
|
|
163
163
|
}
|
|
164
|
-
const
|
|
165
|
-
let
|
|
166
|
-
function
|
|
167
|
-
if (
|
|
164
|
+
const ei = /* @__PURE__ */ new Set();
|
|
165
|
+
let at = 0;
|
|
166
|
+
function on() {
|
|
167
|
+
if (at !== 0)
|
|
168
168
|
return;
|
|
169
|
-
const i =
|
|
169
|
+
const i = St;
|
|
170
170
|
do {
|
|
171
171
|
try {
|
|
172
|
-
for (;
|
|
173
|
-
const e =
|
|
174
|
-
|
|
172
|
+
for (; at < ft.length; ) {
|
|
173
|
+
const e = ft[at];
|
|
174
|
+
at++, Lt(e), lr(e.$$);
|
|
175
175
|
}
|
|
176
176
|
} catch (e) {
|
|
177
|
-
throw
|
|
177
|
+
throw ft.length = 0, at = 0, e;
|
|
178
178
|
}
|
|
179
|
-
for (
|
|
180
|
-
for (let e = 0; e <
|
|
181
|
-
const t =
|
|
182
|
-
|
|
179
|
+
for (Lt(null), ft.length = 0, at = 0; ni.length; ) ni.pop()();
|
|
180
|
+
for (let e = 0; e < ct.length; e += 1) {
|
|
181
|
+
const t = ct[e];
|
|
182
|
+
ei.has(t) || (ei.add(t), t());
|
|
183
183
|
}
|
|
184
|
-
|
|
185
|
-
} while (
|
|
186
|
-
for (;
|
|
187
|
-
|
|
188
|
-
|
|
184
|
+
ct.length = 0;
|
|
185
|
+
} while (ft.length);
|
|
186
|
+
for (; Mi.length; )
|
|
187
|
+
Mi.pop()();
|
|
188
|
+
ri = !1, ei.clear(), Lt(i);
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function lr(i) {
|
|
191
191
|
if (i.fragment !== null) {
|
|
192
|
-
i.update(),
|
|
192
|
+
i.update(), He(i.before_update);
|
|
193
193
|
const e = i.dirty;
|
|
194
|
-
i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(
|
|
194
|
+
i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(si);
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function ur(i) {
|
|
198
198
|
const e = [], t = [];
|
|
199
|
-
|
|
199
|
+
ct.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), ct = e;
|
|
200
200
|
}
|
|
201
|
-
const
|
|
202
|
-
let
|
|
203
|
-
function
|
|
204
|
-
|
|
201
|
+
const At = /* @__PURE__ */ new Set();
|
|
202
|
+
let st;
|
|
203
|
+
function It() {
|
|
204
|
+
st = {
|
|
205
205
|
r: 0,
|
|
206
206
|
c: [],
|
|
207
|
-
p:
|
|
207
|
+
p: st
|
|
208
208
|
// parent group
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
|
-
function
|
|
212
|
-
|
|
211
|
+
function Bt() {
|
|
212
|
+
st.r || He(st.c), st = st.p;
|
|
213
213
|
}
|
|
214
214
|
function oe(i, e) {
|
|
215
|
-
i && i.i && (
|
|
215
|
+
i && i.i && (At.delete(i), i.i(e));
|
|
216
216
|
}
|
|
217
217
|
function ce(i, e, t, n) {
|
|
218
218
|
if (i && i.o) {
|
|
219
|
-
if (
|
|
220
|
-
|
|
221
|
-
|
|
219
|
+
if (At.has(i)) return;
|
|
220
|
+
At.add(i), st.c.push(() => {
|
|
221
|
+
At.delete(i), n && (t && i.d(1), n());
|
|
222
222
|
}), i.o(e);
|
|
223
223
|
} else n && n();
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function Ci(i) {
|
|
226
226
|
return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function ar(i, e) {
|
|
229
229
|
ce(i, 1, 1, () => {
|
|
230
230
|
e.delete(i.key);
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function fr(i, e, t, n, r, u, a, o, g, c, L, _) {
|
|
234
234
|
let C = i.length, M = u.length, N = C;
|
|
235
235
|
const P = {};
|
|
236
236
|
for (; N--; ) P[i[N].key] = N;
|
|
@@ -253,36 +253,36 @@ function gr(i, e, t, n, r, u, a, o, g, c, L, _) {
|
|
|
253
253
|
k.has(G.key) || g(G, a);
|
|
254
254
|
}
|
|
255
255
|
for (; M; ) V(R[M - 1]);
|
|
256
|
-
return
|
|
256
|
+
return He(O), R;
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function Qe(i) {
|
|
259
259
|
i && i.c();
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function qe(i, e, t) {
|
|
262
262
|
const { fragment: n, after_update: r } = i.$$;
|
|
263
|
-
n && n.m(e, t),
|
|
264
|
-
const u = i.$$.on_mount.map(
|
|
265
|
-
i.$$.on_destroy ? i.$$.on_destroy.push(...u) :
|
|
266
|
-
}), r.forEach(
|
|
263
|
+
n && n.m(e, t), si(() => {
|
|
264
|
+
const u = i.$$.on_mount.map(en).filter(tn);
|
|
265
|
+
i.$$.on_destroy ? i.$$.on_destroy.push(...u) : He(u), i.$$.on_mount = [];
|
|
266
|
+
}), r.forEach(si);
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function Ze(i, e) {
|
|
269
269
|
const t = i.$$;
|
|
270
|
-
t.fragment !== null && (
|
|
270
|
+
t.fragment !== null && (ur(t.after_update), He(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
|
|
271
271
|
}
|
|
272
|
-
function
|
|
273
|
-
i.$$.dirty[0] === -1 && (
|
|
272
|
+
function cr(i, e) {
|
|
273
|
+
i.$$.dirty[0] === -1 && (ft.push(i), or(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
274
274
|
}
|
|
275
|
-
function
|
|
276
|
-
const g =
|
|
277
|
-
|
|
275
|
+
function $e(i, e, t, n, r, u, a = null, o = [-1]) {
|
|
276
|
+
const g = St;
|
|
277
|
+
Lt(i);
|
|
278
278
|
const c = i.$$ = {
|
|
279
279
|
fragment: null,
|
|
280
280
|
ctx: [],
|
|
281
281
|
// state
|
|
282
282
|
props: u,
|
|
283
|
-
update:
|
|
283
|
+
update: ee,
|
|
284
284
|
not_equal: r,
|
|
285
|
-
bound:
|
|
285
|
+
bound: xi(),
|
|
286
286
|
// lifecycle
|
|
287
287
|
on_mount: [],
|
|
288
288
|
on_destroy: [],
|
|
@@ -291,7 +291,7 @@ function tt(i, e, t, n, r, u, a = null, o = [-1]) {
|
|
|
291
291
|
after_update: [],
|
|
292
292
|
context: new Map(e.context || (g ? g.$$.context : [])),
|
|
293
293
|
// everything else
|
|
294
|
-
callbacks:
|
|
294
|
+
callbacks: xi(),
|
|
295
295
|
dirty: o,
|
|
296
296
|
skip_bound: !1,
|
|
297
297
|
root: e.target || g.$$.root
|
|
@@ -300,18 +300,18 @@ function tt(i, e, t, n, r, u, a = null, o = [-1]) {
|
|
|
300
300
|
let L = !1;
|
|
301
301
|
if (c.ctx = t ? t(i, e.props || {}, (_, C, ...M) => {
|
|
302
302
|
const N = M.length ? M[0] : C;
|
|
303
|
-
return c.ctx && r(c.ctx[_], c.ctx[_] = N) && (!c.skip_bound && c.bound[_] && c.bound[_](N), L &&
|
|
304
|
-
}) : [], c.update(), L = !0,
|
|
303
|
+
return c.ctx && r(c.ctx[_], c.ctx[_] = N) && (!c.skip_bound && c.bound[_] && c.bound[_](N), L && cr(i, _)), C;
|
|
304
|
+
}) : [], c.update(), L = !0, He(c.before_update), c.fragment = n ? n(c.ctx) : !1, e.target) {
|
|
305
305
|
if (e.hydrate) {
|
|
306
|
-
const _ =
|
|
307
|
-
c.fragment && c.fragment.l(_), _.forEach(
|
|
306
|
+
const _ = tr(e.target);
|
|
307
|
+
c.fragment && c.fragment.l(_), _.forEach($);
|
|
308
308
|
} else
|
|
309
309
|
c.fragment && c.fragment.c();
|
|
310
|
-
e.intro && oe(i.$$.fragment),
|
|
310
|
+
e.intro && oe(i.$$.fragment), qe(i, e.target, e.anchor), on();
|
|
311
311
|
}
|
|
312
|
-
|
|
312
|
+
Lt(g);
|
|
313
313
|
}
|
|
314
|
-
class
|
|
314
|
+
class et {
|
|
315
315
|
constructor() {
|
|
316
316
|
/**
|
|
317
317
|
* ### PRIVATE API
|
|
@@ -332,7 +332,7 @@ class it {
|
|
|
332
332
|
}
|
|
333
333
|
/** @returns {void} */
|
|
334
334
|
$destroy() {
|
|
335
|
-
|
|
335
|
+
Ze(this, 1), this.$destroy = ee;
|
|
336
336
|
}
|
|
337
337
|
/**
|
|
338
338
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -341,8 +341,8 @@ class it {
|
|
|
341
341
|
* @returns {() => void}
|
|
342
342
|
*/
|
|
343
343
|
$on(e, t) {
|
|
344
|
-
if (!
|
|
345
|
-
return
|
|
344
|
+
if (!tn(t))
|
|
345
|
+
return ee;
|
|
346
346
|
const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
347
347
|
return n.push(t), () => {
|
|
348
348
|
const r = n.indexOf(t);
|
|
@@ -354,60 +354,60 @@ class it {
|
|
|
354
354
|
* @returns {void}
|
|
355
355
|
*/
|
|
356
356
|
$set(e) {
|
|
357
|
-
this.$$set && !
|
|
357
|
+
this.$$set && !Kn(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
const
|
|
361
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
362
|
-
function
|
|
360
|
+
const hr = "4";
|
|
361
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(hr);
|
|
362
|
+
function dr(i) {
|
|
363
363
|
let e, t;
|
|
364
364
|
return {
|
|
365
365
|
c() {
|
|
366
|
-
e =
|
|
366
|
+
e = Re("svg"), t = Re("path"), x(t, "d", "M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"), x(e, "viewBox", "0 0 14 14"), x(e, "width", "13"), x(e, "height", "13"), x(e, "class", "svelte-en2qvf");
|
|
367
367
|
},
|
|
368
368
|
m(n, r) {
|
|
369
|
-
|
|
369
|
+
te(n, e, r), Z(e, t);
|
|
370
370
|
},
|
|
371
|
-
p:
|
|
372
|
-
i:
|
|
373
|
-
o:
|
|
371
|
+
p: ee,
|
|
372
|
+
i: ee,
|
|
373
|
+
o: ee,
|
|
374
374
|
d(n) {
|
|
375
|
-
n &&
|
|
375
|
+
n && $(e);
|
|
376
376
|
}
|
|
377
377
|
};
|
|
378
378
|
}
|
|
379
|
-
class
|
|
379
|
+
class ln extends et {
|
|
380
380
|
constructor(e) {
|
|
381
|
-
super(),
|
|
381
|
+
super(), $e(this, e, null, dr, Je, {});
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function gr(i) {
|
|
385
385
|
let e, t;
|
|
386
386
|
return {
|
|
387
387
|
c() {
|
|
388
|
-
e =
|
|
388
|
+
e = Re("svg"), t = Re("path"), x(t, "d", "M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"), x(e, "viewBox", "0 0 30 30"), x(e, "fill", "none"), x(e, "xmlns", "http://www.w3.org/2000/svg"), x(e, "class", "svelte-d2loi5");
|
|
389
389
|
},
|
|
390
390
|
m(n, r) {
|
|
391
|
-
|
|
391
|
+
te(n, e, r), Z(e, t);
|
|
392
392
|
},
|
|
393
|
-
p:
|
|
394
|
-
i:
|
|
395
|
-
o:
|
|
393
|
+
p: ee,
|
|
394
|
+
i: ee,
|
|
395
|
+
o: ee,
|
|
396
396
|
d(n) {
|
|
397
|
-
n &&
|
|
397
|
+
n && $(e);
|
|
398
398
|
}
|
|
399
399
|
};
|
|
400
400
|
}
|
|
401
|
-
class
|
|
401
|
+
class un extends et {
|
|
402
402
|
constructor(e) {
|
|
403
|
-
super(),
|
|
403
|
+
super(), $e(this, e, null, gr, Je, {});
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function mr(i) {
|
|
407
407
|
let e, t;
|
|
408
408
|
return {
|
|
409
409
|
c() {
|
|
410
|
-
e =
|
|
410
|
+
e = Q("img"), ge(e.src, t = /*iconsBaseUrl*/
|
|
411
411
|
i[3] + "area.svg") || x(e, "src", t), x(
|
|
412
412
|
e,
|
|
413
413
|
"alt",
|
|
@@ -421,11 +421,11 @@ function vr(i) {
|
|
|
421
421
|
), x(e, "class", "svelte-w9y5n9");
|
|
422
422
|
},
|
|
423
423
|
m(n, r) {
|
|
424
|
-
|
|
424
|
+
te(n, e, r);
|
|
425
425
|
},
|
|
426
426
|
p(n, r) {
|
|
427
427
|
r & /*iconsBaseUrl*/
|
|
428
|
-
8 && !
|
|
428
|
+
8 && !ge(e.src, t = /*iconsBaseUrl*/
|
|
429
429
|
n[3] + "area.svg") && x(e, "src", t), r & /*placeType*/
|
|
430
430
|
128 && x(
|
|
431
431
|
e,
|
|
@@ -441,15 +441,15 @@ function vr(i) {
|
|
|
441
441
|
);
|
|
442
442
|
},
|
|
443
443
|
d(n) {
|
|
444
|
-
n &&
|
|
444
|
+
n && $(e);
|
|
445
445
|
}
|
|
446
446
|
};
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function pr(i) {
|
|
449
449
|
let e, t;
|
|
450
450
|
return {
|
|
451
451
|
c() {
|
|
452
|
-
e =
|
|
452
|
+
e = Q("img"), ge(e.src, t = /*iconsBaseUrl*/
|
|
453
453
|
i[3] + "reverse.svg") || x(e, "src", t), x(
|
|
454
454
|
e,
|
|
455
455
|
"alt",
|
|
@@ -463,11 +463,11 @@ function wr(i) {
|
|
|
463
463
|
), x(e, "class", "svelte-w9y5n9");
|
|
464
464
|
},
|
|
465
465
|
m(n, r) {
|
|
466
|
-
|
|
466
|
+
te(n, e, r);
|
|
467
467
|
},
|
|
468
468
|
p(n, r) {
|
|
469
469
|
r & /*iconsBaseUrl*/
|
|
470
|
-
8 && !
|
|
470
|
+
8 && !ge(e.src, t = /*iconsBaseUrl*/
|
|
471
471
|
n[3] + "reverse.svg") && x(e, "src", t), r & /*placeType*/
|
|
472
472
|
128 && x(
|
|
473
473
|
e,
|
|
@@ -483,15 +483,15 @@ function wr(i) {
|
|
|
483
483
|
);
|
|
484
484
|
},
|
|
485
485
|
d(n) {
|
|
486
|
-
n &&
|
|
486
|
+
n && $(e);
|
|
487
487
|
}
|
|
488
488
|
};
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function yr(i) {
|
|
491
491
|
let e, t;
|
|
492
492
|
return {
|
|
493
493
|
c() {
|
|
494
|
-
e =
|
|
494
|
+
e = Q("img"), ge(e.src, t = /*iconsBaseUrl*/
|
|
495
495
|
i[3] + "poi.svg") || x(e, "src", t), x(
|
|
496
496
|
e,
|
|
497
497
|
"alt",
|
|
@@ -505,11 +505,11 @@ function Er(i) {
|
|
|
505
505
|
), x(e, "class", "svelte-w9y5n9");
|
|
506
506
|
},
|
|
507
507
|
m(n, r) {
|
|
508
|
-
|
|
508
|
+
te(n, e, r);
|
|
509
509
|
},
|
|
510
510
|
p(n, r) {
|
|
511
511
|
r & /*iconsBaseUrl*/
|
|
512
|
-
8 && !
|
|
512
|
+
8 && !ge(e.src, t = /*iconsBaseUrl*/
|
|
513
513
|
n[3] + "poi.svg") && x(e, "src", t), r & /*placeType*/
|
|
514
514
|
128 && x(
|
|
515
515
|
e,
|
|
@@ -525,15 +525,15 @@ function Er(i) {
|
|
|
525
525
|
);
|
|
526
526
|
},
|
|
527
527
|
d(n) {
|
|
528
|
-
n &&
|
|
528
|
+
n && $(e);
|
|
529
529
|
}
|
|
530
530
|
};
|
|
531
531
|
}
|
|
532
|
-
function
|
|
532
|
+
function br(i) {
|
|
533
533
|
let e, t;
|
|
534
534
|
return {
|
|
535
535
|
c() {
|
|
536
|
-
e =
|
|
536
|
+
e = Q("img"), ge(e.src, t = /*iconsBaseUrl*/
|
|
537
537
|
i[3] + "postal_code.svg") || x(e, "src", t), x(
|
|
538
538
|
e,
|
|
539
539
|
"alt",
|
|
@@ -547,11 +547,11 @@ function Lr(i) {
|
|
|
547
547
|
), x(e, "class", "svelte-w9y5n9");
|
|
548
548
|
},
|
|
549
549
|
m(n, r) {
|
|
550
|
-
|
|
550
|
+
te(n, e, r);
|
|
551
551
|
},
|
|
552
552
|
p(n, r) {
|
|
553
553
|
r & /*iconsBaseUrl*/
|
|
554
|
-
8 && !
|
|
554
|
+
8 && !ge(e.src, t = /*iconsBaseUrl*/
|
|
555
555
|
n[3] + "postal_code.svg") && x(e, "src", t), r & /*placeType*/
|
|
556
556
|
128 && x(
|
|
557
557
|
e,
|
|
@@ -567,15 +567,15 @@ function Lr(i) {
|
|
|
567
567
|
);
|
|
568
568
|
},
|
|
569
569
|
d(n) {
|
|
570
|
-
n &&
|
|
570
|
+
n && $(e);
|
|
571
571
|
}
|
|
572
572
|
};
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function vr(i) {
|
|
575
575
|
let e, t;
|
|
576
576
|
return {
|
|
577
577
|
c() {
|
|
578
|
-
e =
|
|
578
|
+
e = Q("img"), ge(e.src, t = /*iconsBaseUrl*/
|
|
579
579
|
i[3] + "street.svg") || x(e, "src", t), x(
|
|
580
580
|
e,
|
|
581
581
|
"alt",
|
|
@@ -589,11 +589,11 @@ function _r(i) {
|
|
|
589
589
|
), x(e, "class", "svelte-w9y5n9");
|
|
590
590
|
},
|
|
591
591
|
m(n, r) {
|
|
592
|
-
|
|
592
|
+
te(n, e, r);
|
|
593
593
|
},
|
|
594
594
|
p(n, r) {
|
|
595
595
|
r & /*iconsBaseUrl*/
|
|
596
|
-
8 && !
|
|
596
|
+
8 && !ge(e.src, t = /*iconsBaseUrl*/
|
|
597
597
|
n[3] + "street.svg") && x(e, "src", t), r & /*placeType*/
|
|
598
598
|
128 && x(
|
|
599
599
|
e,
|
|
@@ -609,15 +609,15 @@ function _r(i) {
|
|
|
609
609
|
);
|
|
610
610
|
},
|
|
611
611
|
d(n) {
|
|
612
|
-
n &&
|
|
612
|
+
n && $(e);
|
|
613
613
|
}
|
|
614
614
|
};
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function wr(i) {
|
|
617
617
|
let e, t;
|
|
618
618
|
return {
|
|
619
619
|
c() {
|
|
620
|
-
e =
|
|
620
|
+
e = Q("img"), ge(e.src, t = /*iconsBaseUrl*/
|
|
621
621
|
i[3] + "road.svg") || x(e, "src", t), x(
|
|
622
622
|
e,
|
|
623
623
|
"alt",
|
|
@@ -631,11 +631,11 @@ function Sr(i) {
|
|
|
631
631
|
), x(e, "class", "svelte-w9y5n9");
|
|
632
632
|
},
|
|
633
633
|
m(n, r) {
|
|
634
|
-
|
|
634
|
+
te(n, e, r);
|
|
635
635
|
},
|
|
636
636
|
p(n, r) {
|
|
637
637
|
r & /*iconsBaseUrl*/
|
|
638
|
-
8 && !
|
|
638
|
+
8 && !ge(e.src, t = /*iconsBaseUrl*/
|
|
639
639
|
n[3] + "road.svg") && x(e, "src", t), r & /*placeType*/
|
|
640
640
|
128 && x(
|
|
641
641
|
e,
|
|
@@ -651,15 +651,15 @@ function Sr(i) {
|
|
|
651
651
|
);
|
|
652
652
|
},
|
|
653
653
|
d(n) {
|
|
654
|
-
n &&
|
|
654
|
+
n && $(e);
|
|
655
655
|
}
|
|
656
656
|
};
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function Er(i) {
|
|
659
659
|
let e, t;
|
|
660
660
|
return {
|
|
661
661
|
c() {
|
|
662
|
-
e =
|
|
662
|
+
e = Q("img"), ge(e.src, t = /*iconsBaseUrl*/
|
|
663
663
|
i[3] + "housenumber.svg") || x(e, "src", t), x(
|
|
664
664
|
e,
|
|
665
665
|
"alt",
|
|
@@ -673,11 +673,11 @@ function xr(i) {
|
|
|
673
673
|
), x(e, "class", "svelte-w9y5n9");
|
|
674
674
|
},
|
|
675
675
|
m(n, r) {
|
|
676
|
-
|
|
676
|
+
te(n, e, r);
|
|
677
677
|
},
|
|
678
678
|
p(n, r) {
|
|
679
679
|
r & /*iconsBaseUrl*/
|
|
680
|
-
8 && !
|
|
680
|
+
8 && !ge(e.src, t = /*iconsBaseUrl*/
|
|
681
681
|
n[3] + "housenumber.svg") && x(e, "src", t), r & /*placeType*/
|
|
682
682
|
128 && x(
|
|
683
683
|
e,
|
|
@@ -693,15 +693,15 @@ function xr(i) {
|
|
|
693
693
|
);
|
|
694
694
|
},
|
|
695
695
|
d(n) {
|
|
696
|
-
n &&
|
|
696
|
+
n && $(e);
|
|
697
697
|
}
|
|
698
698
|
};
|
|
699
699
|
}
|
|
700
|
-
function
|
|
700
|
+
function Lr(i) {
|
|
701
701
|
let e, t, n, r;
|
|
702
702
|
return {
|
|
703
703
|
c() {
|
|
704
|
-
e =
|
|
704
|
+
e = Q("img"), ge(e.src, t = /*imageUrl*/
|
|
705
705
|
i[5]) || x(e, "src", t), x(
|
|
706
706
|
e,
|
|
707
707
|
"alt",
|
|
@@ -715,7 +715,7 @@ function Tr(i) {
|
|
|
715
715
|
), x(e, "class", "svelte-w9y5n9");
|
|
716
716
|
},
|
|
717
717
|
m(u, a) {
|
|
718
|
-
|
|
718
|
+
te(u, e, a), n || (r = fe(
|
|
719
719
|
e,
|
|
720
720
|
"error",
|
|
721
721
|
/*error_handler*/
|
|
@@ -724,7 +724,7 @@ function Tr(i) {
|
|
|
724
724
|
},
|
|
725
725
|
p(u, a) {
|
|
726
726
|
a & /*imageUrl*/
|
|
727
|
-
32 && !
|
|
727
|
+
32 && !ge(e.src, t = /*imageUrl*/
|
|
728
728
|
u[5]) && x(e, "src", t), a & /*category*/
|
|
729
729
|
16 && x(
|
|
730
730
|
e,
|
|
@@ -740,25 +740,25 @@ function Tr(i) {
|
|
|
740
740
|
);
|
|
741
741
|
},
|
|
742
742
|
d(u) {
|
|
743
|
-
u &&
|
|
743
|
+
u && $(e), n = !1, r();
|
|
744
744
|
}
|
|
745
745
|
};
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function _r(i) {
|
|
748
748
|
let e, t;
|
|
749
749
|
return {
|
|
750
750
|
c() {
|
|
751
|
-
e =
|
|
751
|
+
e = Q("div"), x(e, "class", "sprite-icon svelte-w9y5n9"), x(e, "style", t = `
|
|
752
752
|
width: ${/*spriteIcon*/
|
|
753
753
|
i[6].width / Se}px;
|
|
754
754
|
height: ${/*spriteIcon*/
|
|
755
755
|
i[6].height / Se}px;
|
|
756
756
|
background-image: url(${/*iconsBaseUrl*/
|
|
757
|
-
i[3]}sprite${
|
|
757
|
+
i[3]}sprite${oi}.png);
|
|
758
758
|
background-position: -${/*spriteIcon*/
|
|
759
759
|
i[6].x / Se}px -${/*spriteIcon*/
|
|
760
760
|
i[6].y / Se}px;
|
|
761
|
-
background-size: ${
|
|
761
|
+
background-size: ${Oe.width / Se}px ${Oe.height / Se}px;
|
|
762
762
|
`), x(
|
|
763
763
|
e,
|
|
764
764
|
"title",
|
|
@@ -767,7 +767,7 @@ function Mr(i) {
|
|
|
767
767
|
);
|
|
768
768
|
},
|
|
769
769
|
m(n, r) {
|
|
770
|
-
|
|
770
|
+
te(n, e, r);
|
|
771
771
|
},
|
|
772
772
|
p(n, r) {
|
|
773
773
|
r & /*spriteIcon, iconsBaseUrl*/
|
|
@@ -777,11 +777,11 @@ function Mr(i) {
|
|
|
777
777
|
height: ${/*spriteIcon*/
|
|
778
778
|
n[6].height / Se}px;
|
|
779
779
|
background-image: url(${/*iconsBaseUrl*/
|
|
780
|
-
n[3]}sprite${
|
|
780
|
+
n[3]}sprite${oi}.png);
|
|
781
781
|
background-position: -${/*spriteIcon*/
|
|
782
782
|
n[6].x / Se}px -${/*spriteIcon*/
|
|
783
783
|
n[6].y / Se}px;
|
|
784
|
-
background-size: ${
|
|
784
|
+
background-size: ${Oe.width / Se}px ${Oe.height / Se}px;
|
|
785
785
|
`) && x(e, "style", t), r & /*placeType*/
|
|
786
786
|
128 && x(
|
|
787
787
|
e,
|
|
@@ -791,36 +791,36 @@ function Mr(i) {
|
|
|
791
791
|
);
|
|
792
792
|
},
|
|
793
793
|
d(n) {
|
|
794
|
-
n &&
|
|
794
|
+
n && $(e);
|
|
795
795
|
}
|
|
796
796
|
};
|
|
797
797
|
}
|
|
798
|
-
function
|
|
798
|
+
function Ni(i) {
|
|
799
799
|
let e, t;
|
|
800
800
|
return {
|
|
801
801
|
c() {
|
|
802
|
-
e =
|
|
802
|
+
e = Q("span"), t = Xe(
|
|
803
803
|
/*placeType*/
|
|
804
804
|
i[7]
|
|
805
805
|
), x(e, "class", "secondary svelte-w9y5n9");
|
|
806
806
|
},
|
|
807
807
|
m(n, r) {
|
|
808
|
-
|
|
808
|
+
te(n, e, r), Z(e, t);
|
|
809
809
|
},
|
|
810
810
|
p(n, r) {
|
|
811
811
|
r & /*placeType*/
|
|
812
|
-
128 &&
|
|
812
|
+
128 && _t(
|
|
813
813
|
t,
|
|
814
814
|
/*placeType*/
|
|
815
815
|
n[7]
|
|
816
816
|
);
|
|
817
817
|
},
|
|
818
818
|
d(n) {
|
|
819
|
-
n &&
|
|
819
|
+
n && $(e);
|
|
820
820
|
}
|
|
821
821
|
};
|
|
822
822
|
}
|
|
823
|
-
function
|
|
823
|
+
function Sr(i) {
|
|
824
824
|
let e, t, n, r, u, a, o, g, c, L = (
|
|
825
825
|
/*isReverse*/
|
|
826
826
|
(i[8] ? (
|
|
@@ -853,34 +853,34 @@ function Cr(i) {
|
|
|
853
853
|
1 && (t = null), h & /*feature*/
|
|
854
854
|
1 && (n = null), h & /*feature*/
|
|
855
855
|
1 && (r = null), h & /*feature*/
|
|
856
|
-
1 && (u = null),
|
|
857
|
-
m[6] ?
|
|
856
|
+
1 && (u = null), Oe && /*spriteIcon*/
|
|
857
|
+
m[6] ? _r : (
|
|
858
858
|
/*imageUrl*/
|
|
859
|
-
m[5] ?
|
|
859
|
+
m[5] ? Lr : (
|
|
860
860
|
/*feature*/
|
|
861
|
-
m[0].address ?
|
|
862
|
-
m[0].id.startsWith("road.")), t ?
|
|
863
|
-
m[0].id.startsWith("address.")), n ?
|
|
864
|
-
m[0].id.startsWith("postal_code.")), r ?
|
|
865
|
-
m[0].id.startsWith("poi.")), u ?
|
|
861
|
+
m[0].address ? Er : (t == null && (t = !!/*feature*/
|
|
862
|
+
m[0].id.startsWith("road.")), t ? wr : (n == null && (n = !!/*feature*/
|
|
863
|
+
m[0].id.startsWith("address.")), n ? vr : (r == null && (r = !!/*feature*/
|
|
864
|
+
m[0].id.startsWith("postal_code.")), r ? br : (u == null && (u = !!/*feature*/
|
|
865
|
+
m[0].id.startsWith("poi.")), u ? yr : (
|
|
866
866
|
/*isReverse*/
|
|
867
|
-
m[8] ?
|
|
867
|
+
m[8] ? pr : mr
|
|
868
868
|
)))))
|
|
869
869
|
)
|
|
870
870
|
);
|
|
871
871
|
}
|
|
872
|
-
let s = G(i, -1), l = s(i), f = M &&
|
|
872
|
+
let s = G(i, -1), l = s(i), f = M && Ni(i);
|
|
873
873
|
return {
|
|
874
874
|
c() {
|
|
875
|
-
e =
|
|
875
|
+
e = Q("li"), l.c(), a = Le(), o = Q("span"), g = Q("span"), c = Q("span"), _ = Xe(L), C = Le(), f && f.c(), N = Le(), P = Q("span"), k = Xe(R), x(c, "class", "primary svelte-w9y5n9"), x(g, "class", "svelte-w9y5n9"), x(P, "class", "line2 svelte-w9y5n9"), x(o, "class", "texts svelte-w9y5n9"), x(e, "tabindex", "-1"), x(e, "role", "option"), x(e, "aria-selected", S = /*style*/
|
|
876
876
|
i[1] === "selected"), x(e, "aria-checked", O = /*style*/
|
|
877
|
-
i[1] === "picked"), x(e, "class", D =
|
|
877
|
+
i[1] === "picked"), x(e, "class", D = Dt(
|
|
878
878
|
/*style*/
|
|
879
879
|
i[1]
|
|
880
880
|
) + " svelte-w9y5n9");
|
|
881
881
|
},
|
|
882
882
|
m(m, h) {
|
|
883
|
-
|
|
883
|
+
te(m, e, h), l.m(e, null), Z(e, a), Z(e, o), Z(o, g), Z(g, c), Z(c, _), Z(g, C), f && f.m(g, null), Z(o, N), Z(o, P), Z(P, k), H || (V = [
|
|
884
884
|
fe(
|
|
885
885
|
e,
|
|
886
886
|
"mouseenter",
|
|
@@ -910,7 +910,7 @@ function Cr(i) {
|
|
|
910
910
|
) : (
|
|
911
911
|
/*feature*/
|
|
912
912
|
m[0].place_name.replace(/,.*/, "")
|
|
913
|
-
)) + "") &&
|
|
913
|
+
)) + "") && _t(_, L), h & /*showPlaceType, feature, imageUrl, isReverse*/
|
|
914
914
|
293 && (M = /*showPlaceType*/
|
|
915
915
|
m[2] === "always" || /*showPlaceType*/
|
|
916
916
|
m[2] !== "never" && !/*feature*/
|
|
@@ -920,56 +920,56 @@ function Cr(i) {
|
|
|
920
920
|
m[0].id.startsWith("postal_code.") && (!/*feature*/
|
|
921
921
|
m[0].id.startsWith("poi.") || !/*imageUrl*/
|
|
922
922
|
m[5]) && !/*isReverse*/
|
|
923
|
-
m[8]), M ? f ? f.p(m, h) : (f =
|
|
923
|
+
m[8]), M ? f ? f.p(m, h) : (f = Ni(m), f.c(), f.m(g, null)) : f && (f.d(1), f = null), h & /*isReverse, feature*/
|
|
924
924
|
257 && R !== (R = /*isReverse*/
|
|
925
925
|
(m[8] ? "" : (
|
|
926
926
|
/*feature*/
|
|
927
927
|
m[0].place_name.replace(/[^,]*,?\s*/, "")
|
|
928
|
-
)) + "") &&
|
|
928
|
+
)) + "") && _t(k, R), h & /*style*/
|
|
929
929
|
2 && S !== (S = /*style*/
|
|
930
930
|
m[1] === "selected") && x(e, "aria-selected", S), h & /*style*/
|
|
931
931
|
2 && O !== (O = /*style*/
|
|
932
932
|
m[1] === "picked") && x(e, "aria-checked", O), h & /*style*/
|
|
933
|
-
2 && D !== (D =
|
|
933
|
+
2 && D !== (D = Dt(
|
|
934
934
|
/*style*/
|
|
935
935
|
m[1]
|
|
936
936
|
) + " svelte-w9y5n9") && x(e, "class", D);
|
|
937
937
|
},
|
|
938
|
-
i:
|
|
939
|
-
o:
|
|
938
|
+
i: ee,
|
|
939
|
+
o: ee,
|
|
940
940
|
d(m) {
|
|
941
|
-
m &&
|
|
941
|
+
m && $(e), l.d(), f && f.d(), H = !1, He(V);
|
|
942
942
|
}
|
|
943
943
|
};
|
|
944
944
|
}
|
|
945
|
-
const
|
|
946
|
-
let
|
|
947
|
-
function
|
|
945
|
+
const an = devicePixelRatio > 1.25, oi = an ? "@2x" : "", Se = an ? 2 : 1;
|
|
946
|
+
let Oe, Ot;
|
|
947
|
+
function xr(i, e, t) {
|
|
948
948
|
let n, r, u, { feature: a } = e, { style: o = "default" } = e, { showPlaceType: g } = e, { missingIconsCache: c } = e, { iconsBaseUrl: L } = e;
|
|
949
|
-
const _ =
|
|
949
|
+
const _ = sn();
|
|
950
950
|
let C, M, N, P;
|
|
951
951
|
function R() {
|
|
952
|
-
|
|
953
|
-
|
|
952
|
+
Ot ?? (Ot = fetch(`${L}sprite${oi}.json`).then((s) => s.json()).then((s) => {
|
|
953
|
+
Oe = s;
|
|
954
954
|
}).catch(() => {
|
|
955
|
-
|
|
955
|
+
Oe = null;
|
|
956
956
|
}));
|
|
957
957
|
}
|
|
958
958
|
function k() {
|
|
959
959
|
M && c.add(M), S();
|
|
960
960
|
}
|
|
961
961
|
function S() {
|
|
962
|
-
|
|
962
|
+
Oe !== void 0 ? O() : (R(), Ot == null || Ot.then(O));
|
|
963
963
|
}
|
|
964
964
|
function O() {
|
|
965
965
|
do {
|
|
966
|
-
if (P--, t(4, C = n == null ? void 0 : n[P]), t(6, N = C ?
|
|
966
|
+
if (P--, t(4, C = n == null ? void 0 : n[P]), t(6, N = C ? Oe == null ? void 0 : Oe.icons[C] : void 0), N)
|
|
967
967
|
break;
|
|
968
968
|
t(5, M = C ? L + C.replace(/ /g, "_") + ".svg" : void 0);
|
|
969
969
|
} while (P > -1 && (!M || c.has(M)));
|
|
970
970
|
}
|
|
971
971
|
function D(s) {
|
|
972
|
-
|
|
972
|
+
rr.call(this, i, s);
|
|
973
973
|
}
|
|
974
974
|
const H = () => k(), V = () => _("select", void 0), G = (s) => {
|
|
975
975
|
document.activeElement !== s.target && _("select", void 0);
|
|
@@ -1003,9 +1003,9 @@ function Nr(i, e, t) {
|
|
|
1003
1003
|
G
|
|
1004
1004
|
];
|
|
1005
1005
|
}
|
|
1006
|
-
class
|
|
1006
|
+
class Tr extends et {
|
|
1007
1007
|
constructor(e) {
|
|
1008
|
-
super(),
|
|
1008
|
+
super(), $e(this, e, xr, Sr, Je, {
|
|
1009
1009
|
feature: 0,
|
|
1010
1010
|
style: 1,
|
|
1011
1011
|
showPlaceType: 2,
|
|
@@ -1014,33 +1014,33 @@ class kr extends it {
|
|
|
1014
1014
|
});
|
|
1015
1015
|
}
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1017
|
+
function Mr(i) {
|
|
1018
1018
|
let e;
|
|
1019
1019
|
return {
|
|
1020
1020
|
c() {
|
|
1021
|
-
e =
|
|
1021
|
+
e = Q("div"), e.innerHTML = '<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>', x(e, "class", "svelte-7cmwmc");
|
|
1022
1022
|
},
|
|
1023
1023
|
m(t, n) {
|
|
1024
|
-
|
|
1024
|
+
te(t, e, n);
|
|
1025
1025
|
},
|
|
1026
|
-
p:
|
|
1027
|
-
i:
|
|
1028
|
-
o:
|
|
1026
|
+
p: ee,
|
|
1027
|
+
i: ee,
|
|
1028
|
+
o: ee,
|
|
1029
1029
|
d(t) {
|
|
1030
|
-
t &&
|
|
1030
|
+
t && $(e);
|
|
1031
1031
|
}
|
|
1032
1032
|
};
|
|
1033
1033
|
}
|
|
1034
|
-
class
|
|
1034
|
+
class Cr extends et {
|
|
1035
1035
|
constructor(e) {
|
|
1036
|
-
super(),
|
|
1036
|
+
super(), $e(this, e, null, Mr, Je, {});
|
|
1037
1037
|
}
|
|
1038
1038
|
}
|
|
1039
|
-
function
|
|
1039
|
+
function Nr(i) {
|
|
1040
1040
|
let e, t, n;
|
|
1041
1041
|
return {
|
|
1042
1042
|
c() {
|
|
1043
|
-
e =
|
|
1043
|
+
e = Re("svg"), t = Re("path"), x(t, "stroke-width", "4"), x(t, "d", "M 5,33.103579 C 5,17.607779 18.457,5 35,5 C 51.543,5 65,17.607779 65,33.103579 C 65,56.388679 40.4668,76.048179 36.6112,79.137779 C 36.3714,79.329879 36.2116,79.457979 36.1427,79.518879 C 35.8203,79.800879 35.4102,79.942779 35,79.942779 C 34.5899,79.942779 34.1797,79.800879 33.8575,79.518879 C 33.7886,79.457979 33.6289,79.330079 33.3893,79.138079 C 29.5346,76.049279 5,56.389379 5,33.103579 Z M 35.0001,49.386379 C 43.1917,49.386379 49.8323,42.646079 49.8323,34.331379 C 49.8323,26.016779 43.1917,19.276479 35.0001,19.276479 C 26.8085,19.276479 20.1679,26.016779 20.1679,34.331379 C 20.1679,42.646079 26.8085,49.386379 35.0001,49.386379 Z"), x(t, "class", "svelte-gzo3ar"), x(e, "width", n = /*displayIn*/
|
|
1044
1044
|
i[0] === "list" ? 20 : void 0), x(e, "viewBox", "0 0 70 85"), x(e, "fill", "none"), x(e, "class", "svelte-gzo3ar"), We(
|
|
1045
1045
|
e,
|
|
1046
1046
|
"in-map",
|
|
@@ -1054,7 +1054,7 @@ function Pr(i) {
|
|
|
1054
1054
|
);
|
|
1055
1055
|
},
|
|
1056
1056
|
m(r, u) {
|
|
1057
|
-
|
|
1057
|
+
te(r, e, u), Z(e, t);
|
|
1058
1058
|
},
|
|
1059
1059
|
p(r, [u]) {
|
|
1060
1060
|
u & /*displayIn*/
|
|
@@ -1073,88 +1073,88 @@ function Pr(i) {
|
|
|
1073
1073
|
r[0] === "list"
|
|
1074
1074
|
);
|
|
1075
1075
|
},
|
|
1076
|
-
i:
|
|
1077
|
-
o:
|
|
1076
|
+
i: ee,
|
|
1077
|
+
o: ee,
|
|
1078
1078
|
d(r) {
|
|
1079
|
-
r &&
|
|
1079
|
+
r && $(e);
|
|
1080
1080
|
}
|
|
1081
1081
|
};
|
|
1082
1082
|
}
|
|
1083
|
-
function
|
|
1083
|
+
function kr(i, e, t) {
|
|
1084
1084
|
let { displayIn: n } = e;
|
|
1085
1085
|
return i.$$set = (r) => {
|
|
1086
1086
|
"displayIn" in r && t(0, n = r.displayIn);
|
|
1087
1087
|
}, [n];
|
|
1088
1088
|
}
|
|
1089
|
-
class
|
|
1089
|
+
class Or extends et {
|
|
1090
1090
|
constructor(e) {
|
|
1091
|
-
super(),
|
|
1091
|
+
super(), $e(this, e, kr, Nr, Je, { displayIn: 0 });
|
|
1092
1092
|
}
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function Rr(i) {
|
|
1095
1095
|
let e, t;
|
|
1096
1096
|
return {
|
|
1097
1097
|
c() {
|
|
1098
|
-
e =
|
|
1098
|
+
e = Re("svg"), t = Re("path"), x(t, "d", "M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"), x(e, "viewBox", "0 0 60.006 21.412"), x(e, "width", "14"), x(e, "height", "20"), x(e, "class", "svelte-en2qvf");
|
|
1099
1099
|
},
|
|
1100
1100
|
m(n, r) {
|
|
1101
|
-
|
|
1101
|
+
te(n, e, r), Z(e, t);
|
|
1102
1102
|
},
|
|
1103
|
-
p:
|
|
1104
|
-
i:
|
|
1105
|
-
o:
|
|
1103
|
+
p: ee,
|
|
1104
|
+
i: ee,
|
|
1105
|
+
o: ee,
|
|
1106
1106
|
d(n) {
|
|
1107
|
-
n &&
|
|
1107
|
+
n && $(e);
|
|
1108
1108
|
}
|
|
1109
1109
|
};
|
|
1110
1110
|
}
|
|
1111
|
-
class
|
|
1111
|
+
class Pr extends et {
|
|
1112
1112
|
constructor(e) {
|
|
1113
|
-
super(),
|
|
1113
|
+
super(), $e(this, e, null, Rr, Je, {});
|
|
1114
1114
|
}
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1116
|
+
function Ar(i) {
|
|
1117
1117
|
let e, t, n;
|
|
1118
1118
|
return {
|
|
1119
1119
|
c() {
|
|
1120
|
-
e =
|
|
1120
|
+
e = Re("svg"), t = Re("circle"), n = Re("path"), x(t, "cx", "4.789"), x(t, "cy", "4.787"), x(t, "r", "3.85"), x(t, "class", "svelte-1aq105l"), x(n, "d", "M12.063 12.063 7.635 7.635"), x(n, "class", "svelte-1aq105l"), x(e, "xmlns", "http://www.w3.org/2000/svg"), x(e, "width", "13"), x(e, "height", "13"), x(e, "viewBox", "0 0 13 13"), x(e, "class", "svelte-1aq105l");
|
|
1121
1121
|
},
|
|
1122
1122
|
m(r, u) {
|
|
1123
|
-
|
|
1123
|
+
te(r, e, u), Z(e, t), Z(e, n);
|
|
1124
1124
|
},
|
|
1125
|
-
p:
|
|
1126
|
-
i:
|
|
1127
|
-
o:
|
|
1125
|
+
p: ee,
|
|
1126
|
+
i: ee,
|
|
1127
|
+
o: ee,
|
|
1128
1128
|
d(r) {
|
|
1129
|
-
r &&
|
|
1129
|
+
r && $(e);
|
|
1130
1130
|
}
|
|
1131
1131
|
};
|
|
1132
1132
|
}
|
|
1133
|
-
class
|
|
1133
|
+
class Ir extends et {
|
|
1134
1134
|
constructor(e) {
|
|
1135
|
-
super(),
|
|
1135
|
+
super(), $e(this, e, null, Ar, Je, {});
|
|
1136
1136
|
}
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1138
|
+
function Br(i, e, t) {
|
|
1139
1139
|
const n = e[1], r = e[0], u = n - r;
|
|
1140
1140
|
return i === n && t ? i : ((i - r) % u + u) % u + r;
|
|
1141
1141
|
}
|
|
1142
|
-
function
|
|
1142
|
+
function xt(i) {
|
|
1143
1143
|
const e = [...i];
|
|
1144
1144
|
return e[2] < e[0] && (Math.abs((e[0] + e[2] + 360) / 2) > Math.abs((e[0] - 360 + e[2]) / 2) ? e[0] -= 360 : e[2] += 360), e;
|
|
1145
1145
|
}
|
|
1146
|
-
let
|
|
1147
|
-
async function
|
|
1146
|
+
let pt;
|
|
1147
|
+
async function Gr(i, e, t) {
|
|
1148
1148
|
const n = i == null ? void 0 : i.getCenterAndZoom();
|
|
1149
1149
|
for (const r of e ?? [])
|
|
1150
1150
|
if (!(n && (r.minZoom != null && r.minZoom > n[0] || r.maxZoom != null && r.maxZoom < n[0]))) {
|
|
1151
1151
|
if (r.type === "fixed")
|
|
1152
1152
|
return r.coordinates.join(",");
|
|
1153
1153
|
e: if (r.type === "client-geolocation") {
|
|
1154
|
-
if (
|
|
1155
|
-
if (!
|
|
1154
|
+
if (pt && r.cachedLocationExpiry && pt.time + r.cachedLocationExpiry > Date.now()) {
|
|
1155
|
+
if (!pt.coords)
|
|
1156
1156
|
break e;
|
|
1157
|
-
return
|
|
1157
|
+
return pt.coords;
|
|
1158
1158
|
}
|
|
1159
1159
|
let u;
|
|
1160
1160
|
try {
|
|
@@ -1175,7 +1175,7 @@ async function Ur(i, e, t) {
|
|
|
1175
1175
|
}), u;
|
|
1176
1176
|
} catch {
|
|
1177
1177
|
} finally {
|
|
1178
|
-
r.cachedLocationExpiry && (
|
|
1178
|
+
r.cachedLocationExpiry && (pt = {
|
|
1179
1179
|
time: Date.now(),
|
|
1180
1180
|
coords: u
|
|
1181
1181
|
});
|
|
@@ -1189,8 +1189,8 @@ async function Ur(i, e, t) {
|
|
|
1189
1189
|
return n[1].toFixed(6) + "," + n[2].toFixed(6);
|
|
1190
1190
|
}
|
|
1191
1191
|
}
|
|
1192
|
-
const
|
|
1193
|
-
function
|
|
1192
|
+
const Wr = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(EAST|WEST|[EW])?$/i, ki = /^([+-]?[0-8]?[0-9])\s+([0-5]?[0-9]\.\d{3,})[\s,]{1,}([+-]?[0-1]?[0-9]?[0-9])\s+([0-5]?[0-9]\.\d{3,})$/, Oi = /^(NORTH|SOUTH|[NS])?[\s]*([+-]?[0-8]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(NORTH|SOUTH|[NS])?[\s]*[,/;]?[\s]*(EAST|WEST|[EW])?[\s]*([+-]?[0-1]?[0-9]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(EAST|WEST|[EW])?$/i, Ri = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(EAST|WEST|[EW])?$/i, Pi = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)\s*(EAST|WEST|[EW])?$/i, Ai = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|’’|´´|["″”\.])?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|´´|’’|["″”\.])?\s*(EAST|WEST|[EW])?$/i;
|
|
1193
|
+
function Dr(i) {
|
|
1194
1194
|
if (!["DMS", "DM", "DD"].includes(i))
|
|
1195
1195
|
throw new Error("invalid format specified");
|
|
1196
1196
|
if (this.decimalCoordinates && this.decimalCoordinates.trim()) {
|
|
@@ -1199,7 +1199,7 @@ function qr(i) {
|
|
|
1199
1199
|
i == "DD" && (g = `${r}° ${a}, ${u}° ${o}`);
|
|
1200
1200
|
const c = Math.floor(r), L = Math.floor(u), _ = (r - c) * 60, C = (u - L) * 60;
|
|
1201
1201
|
if (i == "DM") {
|
|
1202
|
-
let M =
|
|
1202
|
+
let M = Ii(_, 3).toFixed(3).padStart(6, "0"), N = Ii(C, 3).toFixed(3).padStart(6, "0");
|
|
1203
1203
|
M.endsWith(".000") && N.endsWith(".000") && (M = M.replace(/\.000$/, ""), N = N.replace(/\.000$/, "")), g = `${c}° ${M}' ${a}, ${L}° ${N}' ${o}`;
|
|
1204
1204
|
}
|
|
1205
1205
|
if (i == "DMS") {
|
|
@@ -1212,22 +1212,22 @@ function qr(i) {
|
|
|
1212
1212
|
} else
|
|
1213
1213
|
throw new Error("no decimal coordinates to convert");
|
|
1214
1214
|
}
|
|
1215
|
-
function
|
|
1215
|
+
function Ii(i, e) {
|
|
1216
1216
|
const t = Math.pow(10, e);
|
|
1217
1217
|
return Math.round((i + Number.EPSILON) * t) / t;
|
|
1218
1218
|
}
|
|
1219
|
-
function
|
|
1219
|
+
function hi(i, e) {
|
|
1220
1220
|
e || (e = 5), i = i.replace(/\s+/g, " ").trim();
|
|
1221
1221
|
let t = null, n = null, r = "", u = "", a = null, o = [], g = !1;
|
|
1222
|
-
if (
|
|
1222
|
+
if (Wr.test(i))
|
|
1223
1223
|
throw new Error("invalid coordinate value");
|
|
1224
|
-
if (
|
|
1225
|
-
if (o =
|
|
1224
|
+
if (ki.test(i))
|
|
1225
|
+
if (o = ki.exec(i), g = yt(o), g)
|
|
1226
1226
|
t = Math.abs(o[1]) + o[2] / 60, Number(o[1]) < 0 && (t *= -1), n = Math.abs(o[3]) + o[4] / 60, Number(o[3]) < 0 && (n *= -1), a = "DM";
|
|
1227
1227
|
else
|
|
1228
1228
|
throw new Error("invalid coordinate format");
|
|
1229
|
-
else if (
|
|
1230
|
-
if (o =
|
|
1229
|
+
else if (Oi.test(i))
|
|
1230
|
+
if (o = Oi.exec(i), g = yt(o), g) {
|
|
1231
1231
|
if (t = o[2], n = o[6], t.includes(",") && (t = t.replace(",", ".")), n.includes(",") && (n = n.replace(",", ".")), a = "DD", Number(Math.round(t)) == Number(t))
|
|
1232
1232
|
throw new Error("integer only coordinate provided");
|
|
1233
1233
|
if (Number(Math.round(n)) == Number(n))
|
|
@@ -1235,18 +1235,18 @@ function gi(i, e) {
|
|
|
1235
1235
|
o[1] ? (r = o[1], u = o[5]) : o[4] && (r = o[4], u = o[8]);
|
|
1236
1236
|
} else
|
|
1237
1237
|
throw new Error("invalid decimal coordinate format");
|
|
1238
|
-
else if (
|
|
1239
|
-
if (o =
|
|
1238
|
+
else if (Ri.test(i))
|
|
1239
|
+
if (o = Ri.exec(i), g = yt(o), g)
|
|
1240
1240
|
t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60, a = "DM"), o[6] && (t += o[6].replace(",", ".") / 3600, a = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[9])), o[11] && (n += o[11] / 60), o[13] && (n += o[13].replace(",", ".") / 3600), parseInt(o[9]) < 0 && (n = -1 * n), o[1] ? (r = o[1], u = o[8]) : o[7] && (r = o[7], u = o[14]);
|
|
1241
1241
|
else
|
|
1242
1242
|
throw new Error("invalid DMS coordinates format");
|
|
1243
|
-
else if (
|
|
1244
|
-
if (o =
|
|
1243
|
+
else if (Pi.test(i))
|
|
1244
|
+
if (o = Pi.exec(i), g = yt(o), g)
|
|
1245
1245
|
t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60, a = "DM"), o[6] && (t += o[6] / 3600, a = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[10])), o[12] && (n += o[12] / 60), o[14] && (n += o[14] / 3600), parseInt(o[10]) < 0 && (n = -1 * n), o[1] ? (r = o[1], u = o[9]) : o[8] && (r = o[8], u = o[16]);
|
|
1246
1246
|
else
|
|
1247
1247
|
throw new Error("invalid DMS coordinates format");
|
|
1248
|
-
else if (
|
|
1249
|
-
if (o =
|
|
1248
|
+
else if (Ai.test(i)) {
|
|
1249
|
+
if (o = Ai.exec(i), g = yt(o), o.filter((c) => c).length <= 5)
|
|
1250
1250
|
throw new Error("invalid coordinates format");
|
|
1251
1251
|
if (g)
|
|
1252
1252
|
t = Math.abs(parseInt(o[2])), o[4] && (t += o[4].replace(",", ".") / 60, a = "DM"), o[6] && (t += o[6].replace(",", ".") / 3600, a = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[10])), o[12] && (n += o[12].replace(",", ".") / 60), o[14] && (n += o[14].replace(",", ".") / 3600), parseInt(o[10]) < 0 && (n = -1 * n), o[1] ? (r = o[1], u = o[9]) : o[8] && (r = o[8], u = o[16]);
|
|
@@ -1300,13 +1300,13 @@ function gi(i, e) {
|
|
|
1300
1300
|
decimalLongitude: n,
|
|
1301
1301
|
decimalCoordinates: `${t},${n}`,
|
|
1302
1302
|
originalFormat: a,
|
|
1303
|
-
closeEnough:
|
|
1304
|
-
toCoordinateFormat:
|
|
1303
|
+
closeEnough: zr,
|
|
1304
|
+
toCoordinateFormat: Dr
|
|
1305
1305
|
});
|
|
1306
1306
|
} else
|
|
1307
1307
|
throw new Error("coordinates pattern match failed");
|
|
1308
1308
|
}
|
|
1309
|
-
function
|
|
1309
|
+
function yt(i) {
|
|
1310
1310
|
if (!isNaN(i[0]))
|
|
1311
1311
|
return !1;
|
|
1312
1312
|
const e = [...i];
|
|
@@ -1325,28 +1325,28 @@ function vt(i) {
|
|
|
1325
1325
|
}
|
|
1326
1326
|
return !0;
|
|
1327
1327
|
}
|
|
1328
|
-
function
|
|
1328
|
+
function Bi(i, e) {
|
|
1329
1329
|
const t = Math.abs(i - e);
|
|
1330
1330
|
return Number(t.toFixed(6)) <= 1e-5;
|
|
1331
1331
|
}
|
|
1332
|
-
function
|
|
1332
|
+
function zr(i) {
|
|
1333
1333
|
if (!i)
|
|
1334
1334
|
throw new Error("coords must be provided");
|
|
1335
1335
|
if (i.includes(",")) {
|
|
1336
1336
|
const e = i.split(",");
|
|
1337
1337
|
if (Number(e[0]) == NaN || Number(e[1]) == NaN)
|
|
1338
1338
|
throw new Error("coords are not valid decimals");
|
|
1339
|
-
return
|
|
1339
|
+
return Bi(this.decimalLatitude, Number(e[0])) && Bi(this.decimalLongitude, e[1]);
|
|
1340
1340
|
} else
|
|
1341
1341
|
throw new Error("coords being tested must be separated by a comma");
|
|
1342
1342
|
}
|
|
1343
|
-
const
|
|
1343
|
+
const Ur = Object.freeze({
|
|
1344
1344
|
DMS: "DMS",
|
|
1345
1345
|
DM: "DM",
|
|
1346
1346
|
DD: "DD"
|
|
1347
1347
|
});
|
|
1348
|
-
|
|
1349
|
-
const
|
|
1348
|
+
hi.to = Ur;
|
|
1349
|
+
const Fr = [
|
|
1350
1350
|
{
|
|
1351
1351
|
verbatimCoordinates: "40.123, -74.123",
|
|
1352
1352
|
verbatimLatitude: "40.123",
|
|
@@ -1487,10 +1487,10 @@ const Hr = [
|
|
|
1487
1487
|
verbatimLatitude: "40 7 22.8",
|
|
1488
1488
|
verbatimLongitude: "-74 7 22.8"
|
|
1489
1489
|
}
|
|
1490
|
-
],
|
|
1490
|
+
], qr = {
|
|
1491
1491
|
decimalLatitude: 40.123,
|
|
1492
1492
|
decimalLongitude: -74.123
|
|
1493
|
-
},
|
|
1493
|
+
}, Zr = [
|
|
1494
1494
|
{
|
|
1495
1495
|
verbatimCoordinates: `50°4'17.698"south, 14°24'2.826"east`,
|
|
1496
1496
|
verbatimLatitude: `50°4'17.698"south`,
|
|
@@ -1575,7 +1575,7 @@ const Hr = [
|
|
|
1575
1575
|
decimalLatitude: -18.4,
|
|
1576
1576
|
decimalLongitude: 22.75
|
|
1577
1577
|
}
|
|
1578
|
-
],
|
|
1578
|
+
], jr = [
|
|
1579
1579
|
{
|
|
1580
1580
|
verbatimCoordinates: "10.432342S 10.6345345E",
|
|
1581
1581
|
verbatimLatitude: "10.432342S",
|
|
@@ -1710,27 +1710,27 @@ const Hr = [
|
|
|
1710
1710
|
decimalLongitude: 18.33453
|
|
1711
1711
|
}
|
|
1712
1712
|
];
|
|
1713
|
-
function
|
|
1713
|
+
function Hr() {
|
|
1714
1714
|
const i = [];
|
|
1715
|
-
return
|
|
1716
|
-
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...
|
|
1717
|
-
}), [...i, ...
|
|
1718
|
-
}
|
|
1719
|
-
const
|
|
1720
|
-
|
|
1721
|
-
const
|
|
1722
|
-
function
|
|
1715
|
+
return Fr.forEach((e) => {
|
|
1716
|
+
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...qr });
|
|
1717
|
+
}), [...i, ...Zr, ...jr];
|
|
1718
|
+
}
|
|
1719
|
+
const Vr = Hr();
|
|
1720
|
+
hi.formats = Vr.map((i) => i.verbatimCoordinates);
|
|
1721
|
+
const Kr = hi;
|
|
1722
|
+
function Gi(i, e, t) {
|
|
1723
1723
|
const n = i.slice();
|
|
1724
|
-
return n[
|
|
1724
|
+
return n[97] = e[t], n[99] = t, n;
|
|
1725
1725
|
}
|
|
1726
|
-
function
|
|
1726
|
+
function Wi(i) {
|
|
1727
1727
|
let e, t;
|
|
1728
|
-
return e = new
|
|
1728
|
+
return e = new Cr({}), {
|
|
1729
1729
|
c() {
|
|
1730
|
-
|
|
1730
|
+
Qe(e.$$.fragment);
|
|
1731
1731
|
},
|
|
1732
1732
|
m(n, r) {
|
|
1733
|
-
|
|
1733
|
+
qe(e, n, r), t = !0;
|
|
1734
1734
|
},
|
|
1735
1735
|
i(n) {
|
|
1736
1736
|
t || (oe(e.$$.fragment, n), t = !0);
|
|
@@ -1739,15 +1739,15 @@ function Ui(i) {
|
|
|
1739
1739
|
ce(e.$$.fragment, n), t = !1;
|
|
1740
1740
|
},
|
|
1741
1741
|
d(n) {
|
|
1742
|
-
|
|
1742
|
+
Ze(e, n);
|
|
1743
1743
|
}
|
|
1744
1744
|
};
|
|
1745
1745
|
}
|
|
1746
|
-
function
|
|
1746
|
+
function Di(i) {
|
|
1747
1747
|
let e, t, n, r, u;
|
|
1748
|
-
return t = new
|
|
1748
|
+
return t = new Pr({}), {
|
|
1749
1749
|
c() {
|
|
1750
|
-
e =
|
|
1750
|
+
e = Q("button"), Qe(t.$$.fragment), x(e, "type", "button"), x(
|
|
1751
1751
|
e,
|
|
1752
1752
|
"title",
|
|
1753
1753
|
/*reverseButtonTitle*/
|
|
@@ -1760,11 +1760,11 @@ function Fi(i) {
|
|
|
1760
1760
|
);
|
|
1761
1761
|
},
|
|
1762
1762
|
m(a, o) {
|
|
1763
|
-
|
|
1763
|
+
te(a, e, o), qe(t, e, null), n = !0, r || (u = fe(
|
|
1764
1764
|
e,
|
|
1765
1765
|
"click",
|
|
1766
1766
|
/*click_handler_3*/
|
|
1767
|
-
i[
|
|
1767
|
+
i[79]
|
|
1768
1768
|
), r = !0);
|
|
1769
1769
|
},
|
|
1770
1770
|
p(a, o) {
|
|
@@ -1789,34 +1789,34 @@ function Fi(i) {
|
|
|
1789
1789
|
ce(t.$$.fragment, a), n = !1;
|
|
1790
1790
|
},
|
|
1791
1791
|
d(a) {
|
|
1792
|
-
a &&
|
|
1792
|
+
a && $(e), Ze(t), r = !1, u();
|
|
1793
1793
|
}
|
|
1794
1794
|
};
|
|
1795
1795
|
}
|
|
1796
|
-
function
|
|
1797
|
-
let e, t = [], n = /* @__PURE__ */ new Map(), r, u, a, o =
|
|
1796
|
+
function Yr(i) {
|
|
1797
|
+
let e, t = [], n = /* @__PURE__ */ new Map(), r, u, a, o = Ci(
|
|
1798
1798
|
/*listFeatures*/
|
|
1799
1799
|
i[13]
|
|
1800
1800
|
);
|
|
1801
1801
|
const g = (c) => (
|
|
1802
1802
|
/*feature*/
|
|
1803
|
-
c[
|
|
1804
|
-
(c[
|
|
1805
|
-
c[
|
|
1803
|
+
c[97].id + /*feature*/
|
|
1804
|
+
(c[97].address ? "," + /*feature*/
|
|
1805
|
+
c[97].address : "")
|
|
1806
1806
|
);
|
|
1807
1807
|
for (let c = 0; c < o.length; c += 1) {
|
|
1808
|
-
let L =
|
|
1809
|
-
n.set(_, t[c] =
|
|
1808
|
+
let L = Gi(i, o, c), _ = g(L);
|
|
1809
|
+
n.set(_, t[c] = zi(_, L));
|
|
1810
1810
|
}
|
|
1811
1811
|
return {
|
|
1812
1812
|
c() {
|
|
1813
|
-
e =
|
|
1813
|
+
e = Q("ul");
|
|
1814
1814
|
for (let c = 0; c < t.length; c += 1)
|
|
1815
1815
|
t[c].c();
|
|
1816
1816
|
x(e, "class", "options svelte-bz0zu3"), x(e, "role", "listbox");
|
|
1817
1817
|
},
|
|
1818
1818
|
m(c, L) {
|
|
1819
|
-
|
|
1819
|
+
te(c, e, L);
|
|
1820
1820
|
for (let _ = 0; _ < t.length; _ += 1)
|
|
1821
1821
|
t[_] && t[_].m(e, null);
|
|
1822
1822
|
r = !0, u || (a = [
|
|
@@ -1830,7 +1830,7 @@ function $r(i) {
|
|
|
1830
1830
|
e,
|
|
1831
1831
|
"blur",
|
|
1832
1832
|
/*blur_handler_1*/
|
|
1833
|
-
i[
|
|
1833
|
+
i[83]
|
|
1834
1834
|
),
|
|
1835
1835
|
fe(
|
|
1836
1836
|
e,
|
|
@@ -1842,10 +1842,10 @@ function $r(i) {
|
|
|
1842
1842
|
},
|
|
1843
1843
|
p(c, L) {
|
|
1844
1844
|
L[0] & /*listFeatures, showPlaceType, selectedItemIndex, picked, missingIconsCache, iconsBaseUrl, handleMouseEnter, pick*/
|
|
1845
|
-
102823936 && (o =
|
|
1845
|
+
102823936 && (o = Ci(
|
|
1846
1846
|
/*listFeatures*/
|
|
1847
1847
|
c[13]
|
|
1848
|
-
),
|
|
1848
|
+
), It(), t = fr(t, L, g, 1, c, o, n, e, ar, zi, null, Gi), Bt());
|
|
1849
1849
|
},
|
|
1850
1850
|
i(c) {
|
|
1851
1851
|
if (!r) {
|
|
@@ -1860,28 +1860,28 @@ function $r(i) {
|
|
|
1860
1860
|
r = !1;
|
|
1861
1861
|
},
|
|
1862
1862
|
d(c) {
|
|
1863
|
-
c &&
|
|
1863
|
+
c && $(e);
|
|
1864
1864
|
for (let L = 0; L < t.length; L += 1)
|
|
1865
1865
|
t[L].d();
|
|
1866
|
-
u = !1,
|
|
1866
|
+
u = !1, He(a);
|
|
1867
1867
|
}
|
|
1868
1868
|
};
|
|
1869
1869
|
}
|
|
1870
|
-
function
|
|
1870
|
+
function Xr(i) {
|
|
1871
1871
|
let e, t, n, r, u, a;
|
|
1872
|
-
return t = new
|
|
1872
|
+
return t = new un({}), {
|
|
1873
1873
|
c() {
|
|
1874
|
-
e =
|
|
1874
|
+
e = Q("div"), Qe(t.$$.fragment), n = Le(), r = Q("div"), u = Xe(
|
|
1875
1875
|
/*noResultsMessage*/
|
|
1876
1876
|
i[8]
|
|
1877
1877
|
), x(r, "class", "svelte-bz0zu3"), x(e, "class", "no-results svelte-bz0zu3");
|
|
1878
1878
|
},
|
|
1879
1879
|
m(o, g) {
|
|
1880
|
-
|
|
1880
|
+
te(o, e, g), qe(t, e, null), Z(e, n), Z(e, r), Z(r, u), a = !0;
|
|
1881
1881
|
},
|
|
1882
1882
|
p(o, g) {
|
|
1883
1883
|
(!a || g[0] & /*noResultsMessage*/
|
|
1884
|
-
256) &&
|
|
1884
|
+
256) && _t(
|
|
1885
1885
|
u,
|
|
1886
1886
|
/*noResultsMessage*/
|
|
1887
1887
|
o[8]
|
|
@@ -1894,47 +1894,47 @@ function es(i) {
|
|
|
1894
1894
|
ce(t.$$.fragment, o), a = !1;
|
|
1895
1895
|
},
|
|
1896
1896
|
d(o) {
|
|
1897
|
-
o &&
|
|
1897
|
+
o && $(e), Ze(t);
|
|
1898
1898
|
}
|
|
1899
1899
|
};
|
|
1900
1900
|
}
|
|
1901
|
-
function
|
|
1901
|
+
function Qr(i) {
|
|
1902
1902
|
let e = "", t;
|
|
1903
1903
|
return {
|
|
1904
1904
|
c() {
|
|
1905
|
-
t =
|
|
1905
|
+
t = Xe(e);
|
|
1906
1906
|
},
|
|
1907
1907
|
m(n, r) {
|
|
1908
|
-
|
|
1908
|
+
te(n, t, r);
|
|
1909
1909
|
},
|
|
1910
|
-
p:
|
|
1911
|
-
i:
|
|
1912
|
-
o:
|
|
1910
|
+
p: ee,
|
|
1911
|
+
i: ee,
|
|
1912
|
+
o: ee,
|
|
1913
1913
|
d(n) {
|
|
1914
|
-
n &&
|
|
1914
|
+
n && $(t);
|
|
1915
1915
|
}
|
|
1916
1916
|
};
|
|
1917
1917
|
}
|
|
1918
|
-
function
|
|
1918
|
+
function Jr(i) {
|
|
1919
1919
|
let e, t, n, r, u, a, o, g, c, L, _;
|
|
1920
|
-
return t = new
|
|
1920
|
+
return t = new un({}), g = new ln({}), {
|
|
1921
1921
|
c() {
|
|
1922
|
-
e =
|
|
1922
|
+
e = Q("div"), Qe(t.$$.fragment), n = Le(), r = Q("div"), u = Xe(
|
|
1923
1923
|
/*errorMessage*/
|
|
1924
1924
|
i[7]
|
|
1925
|
-
), a =
|
|
1925
|
+
), a = Le(), o = Q("button"), Qe(g.$$.fragment), x(r, "class", "svelte-bz0zu3"), x(o, "class", "svelte-bz0zu3"), x(e, "class", "error svelte-bz0zu3");
|
|
1926
1926
|
},
|
|
1927
1927
|
m(C, M) {
|
|
1928
|
-
|
|
1928
|
+
te(C, e, M), qe(t, e, null), Z(e, n), Z(e, r), Z(r, u), Z(e, a), Z(e, o), qe(g, o, null), c = !0, L || (_ = fe(
|
|
1929
1929
|
o,
|
|
1930
1930
|
"click",
|
|
1931
1931
|
/*click_handler_4*/
|
|
1932
|
-
i[
|
|
1932
|
+
i[80]
|
|
1933
1933
|
), L = !0);
|
|
1934
1934
|
},
|
|
1935
1935
|
p(C, M) {
|
|
1936
1936
|
(!c || M[0] & /*errorMessage*/
|
|
1937
|
-
128) &&
|
|
1937
|
+
128) && _t(
|
|
1938
1938
|
u,
|
|
1939
1939
|
/*errorMessage*/
|
|
1940
1940
|
C[7]
|
|
@@ -1947,36 +1947,36 @@ function is(i) {
|
|
|
1947
1947
|
ce(t.$$.fragment, C), ce(g.$$.fragment, C), c = !1;
|
|
1948
1948
|
},
|
|
1949
1949
|
d(C) {
|
|
1950
|
-
C &&
|
|
1950
|
+
C && $(e), Ze(t), Ze(g), L = !1, _();
|
|
1951
1951
|
}
|
|
1952
1952
|
};
|
|
1953
1953
|
}
|
|
1954
|
-
function
|
|
1954
|
+
function zi(i, e) {
|
|
1955
1955
|
var o;
|
|
1956
1956
|
let t, n, r;
|
|
1957
1957
|
function u() {
|
|
1958
1958
|
return (
|
|
1959
1959
|
/*mouseenter_handler*/
|
|
1960
|
-
e[
|
|
1960
|
+
e[81](
|
|
1961
1961
|
/*i*/
|
|
1962
|
-
e[
|
|
1962
|
+
e[99]
|
|
1963
1963
|
)
|
|
1964
1964
|
);
|
|
1965
1965
|
}
|
|
1966
1966
|
function a() {
|
|
1967
1967
|
return (
|
|
1968
1968
|
/*select_handler*/
|
|
1969
|
-
e[
|
|
1969
|
+
e[82](
|
|
1970
1970
|
/*feature*/
|
|
1971
|
-
e[
|
|
1971
|
+
e[97]
|
|
1972
1972
|
)
|
|
1973
1973
|
);
|
|
1974
1974
|
}
|
|
1975
|
-
return n = new
|
|
1975
|
+
return n = new Tr({
|
|
1976
1976
|
props: {
|
|
1977
1977
|
feature: (
|
|
1978
1978
|
/*feature*/
|
|
1979
|
-
e[
|
|
1979
|
+
e[97]
|
|
1980
1980
|
),
|
|
1981
1981
|
showPlaceType: (
|
|
1982
1982
|
/*showPlaceType*/
|
|
@@ -1985,10 +1985,10 @@ function qi(i, e) {
|
|
|
1985
1985
|
style: (
|
|
1986
1986
|
/*selectedItemIndex*/
|
|
1987
1987
|
e[15] === /*i*/
|
|
1988
|
-
e[
|
|
1988
|
+
e[99] ? "selected" : (
|
|
1989
1989
|
/*picked*/
|
|
1990
1990
|
((o = e[14]) == null ? void 0 : o.id) === /*feature*/
|
|
1991
|
-
e[
|
|
1991
|
+
e[97].id ? "picked" : "default"
|
|
1992
1992
|
)
|
|
1993
1993
|
),
|
|
1994
1994
|
missingIconsCache: (
|
|
@@ -2004,10 +2004,10 @@ function qi(i, e) {
|
|
|
2004
2004
|
key: i,
|
|
2005
2005
|
first: null,
|
|
2006
2006
|
c() {
|
|
2007
|
-
t =
|
|
2007
|
+
t = $n(), Qe(n.$$.fragment), this.first = t;
|
|
2008
2008
|
},
|
|
2009
2009
|
m(g, c) {
|
|
2010
|
-
|
|
2010
|
+
te(g, t, c), qe(n, g, c), r = !0;
|
|
2011
2011
|
},
|
|
2012
2012
|
p(g, c) {
|
|
2013
2013
|
var _;
|
|
@@ -2015,15 +2015,15 @@ function qi(i, e) {
|
|
|
2015
2015
|
const L = {};
|
|
2016
2016
|
c[0] & /*listFeatures*/
|
|
2017
2017
|
8192 && (L.feature = /*feature*/
|
|
2018
|
-
e[
|
|
2018
|
+
e[97]), c[0] & /*showPlaceType*/
|
|
2019
2019
|
2048 && (L.showPlaceType = /*showPlaceType*/
|
|
2020
2020
|
e[11]), c[0] & /*selectedItemIndex, listFeatures, picked*/
|
|
2021
2021
|
57344 && (L.style = /*selectedItemIndex*/
|
|
2022
2022
|
e[15] === /*i*/
|
|
2023
|
-
e[
|
|
2023
|
+
e[99] ? "selected" : (
|
|
2024
2024
|
/*picked*/
|
|
2025
2025
|
((_ = e[14]) == null ? void 0 : _.id) === /*feature*/
|
|
2026
|
-
e[
|
|
2026
|
+
e[97].id ? "picked" : "default"
|
|
2027
2027
|
)), c[0] & /*iconsBaseUrl*/
|
|
2028
2028
|
4096 && (L.iconsBaseUrl = /*iconsBaseUrl*/
|
|
2029
2029
|
e[12]), n.$set(L);
|
|
@@ -2035,30 +2035,30 @@ function qi(i, e) {
|
|
|
2035
2035
|
ce(n.$$.fragment, g), r = !1;
|
|
2036
2036
|
},
|
|
2037
2037
|
d(g) {
|
|
2038
|
-
g &&
|
|
2038
|
+
g && $(t), Ze(n, g);
|
|
2039
2039
|
}
|
|
2040
2040
|
};
|
|
2041
2041
|
}
|
|
2042
|
-
function
|
|
2042
|
+
function $r(i) {
|
|
2043
2043
|
let e, t, n, r, u, a, o, g, c, L, _, C, M, N, P, R, k, S, O, D, H, V = !1;
|
|
2044
|
-
u = new
|
|
2044
|
+
u = new Ir({}), _ = new ln({});
|
|
2045
2045
|
let G = (
|
|
2046
2046
|
/*abortController*/
|
|
2047
|
-
i[20] &&
|
|
2047
|
+
i[20] && Wi()
|
|
2048
2048
|
), s = (
|
|
2049
2049
|
/*enableReverse*/
|
|
2050
|
-
i[6] === "button" &&
|
|
2050
|
+
i[6] === "button" && Di(i)
|
|
2051
2051
|
);
|
|
2052
2052
|
const l = (
|
|
2053
2053
|
/*#slots*/
|
|
2054
|
-
i[
|
|
2055
|
-
), f =
|
|
2054
|
+
i[70].default
|
|
2055
|
+
), f = Yn(
|
|
2056
2056
|
l,
|
|
2057
2057
|
i,
|
|
2058
2058
|
/*$$scope*/
|
|
2059
|
-
i[
|
|
2059
|
+
i[69],
|
|
2060
2060
|
null
|
|
2061
|
-
), m = [
|
|
2061
|
+
), m = [Jr, Qr, Xr, Yr], h = [];
|
|
2062
2062
|
function b(p, d) {
|
|
2063
2063
|
var y, v;
|
|
2064
2064
|
return (
|
|
@@ -2078,7 +2078,7 @@ function ns(i) {
|
|
|
2078
2078
|
}
|
|
2079
2079
|
return ~(R = b(i)) && (k = h[R] = m[R](i)), {
|
|
2080
2080
|
c() {
|
|
2081
|
-
e =
|
|
2081
|
+
e = Le(), t = Q("form"), n = Q("div"), r = Q("button"), Qe(u.$$.fragment), a = Le(), o = Q("input"), g = Le(), c = Q("div"), L = Q("button"), Qe(_.$$.fragment), C = Le(), G && G.c(), M = Le(), s && s.c(), N = Le(), f && f.c(), P = Le(), k && k.c(), x(r, "class", "search-button svelte-bz0zu3"), x(r, "type", "button"), x(
|
|
2082
2082
|
o,
|
|
2083
2083
|
"placeholder",
|
|
2084
2084
|
/*placeholder*/
|
|
@@ -2098,7 +2098,7 @@ function ns(i) {
|
|
|
2098
2098
|
"displayable",
|
|
2099
2099
|
/*searchValue*/
|
|
2100
2100
|
i[1] !== ""
|
|
2101
|
-
), x(n, "class", "input-group svelte-bz0zu3"), x(t, "class", S =
|
|
2101
|
+
), x(n, "class", "input-group svelte-bz0zu3"), x(t, "class", S = Dt(
|
|
2102
2102
|
/*className*/
|
|
2103
2103
|
i[2]
|
|
2104
2104
|
) + " svelte-bz0zu3"), We(
|
|
@@ -2110,40 +2110,40 @@ function ns(i) {
|
|
|
2110
2110
|
);
|
|
2111
2111
|
},
|
|
2112
2112
|
m(p, d) {
|
|
2113
|
-
|
|
2113
|
+
te(p, e, d), te(p, t, d), Z(t, n), Z(n, r), qe(u, r, null), Z(n, a), Z(n, o), i[72](o), Ti(
|
|
2114
2114
|
o,
|
|
2115
2115
|
/*searchValue*/
|
|
2116
2116
|
i[1]
|
|
2117
|
-
), Z(n, g), Z(n, c), Z(c, L),
|
|
2117
|
+
), Z(n, g), Z(n, c), Z(c, L), qe(_, L, null), Z(c, C), G && G.m(c, null), Z(n, M), s && s.m(n, null), Z(n, N), f && f.m(n, null), Z(t, P), ~R && h[R].m(t, null), O = !0, D || (H = [
|
|
2118
2118
|
fe(
|
|
2119
2119
|
r,
|
|
2120
2120
|
"click",
|
|
2121
2121
|
/*click_handler*/
|
|
2122
|
-
i[
|
|
2122
|
+
i[71]
|
|
2123
2123
|
),
|
|
2124
2124
|
fe(
|
|
2125
2125
|
o,
|
|
2126
2126
|
"input",
|
|
2127
2127
|
/*input_1_input_handler*/
|
|
2128
|
-
i[
|
|
2128
|
+
i[73]
|
|
2129
2129
|
),
|
|
2130
2130
|
fe(
|
|
2131
2131
|
o,
|
|
2132
2132
|
"focus",
|
|
2133
2133
|
/*focus_handler*/
|
|
2134
|
-
i[
|
|
2134
|
+
i[74]
|
|
2135
2135
|
),
|
|
2136
2136
|
fe(
|
|
2137
2137
|
o,
|
|
2138
2138
|
"blur",
|
|
2139
2139
|
/*blur_handler*/
|
|
2140
|
-
i[
|
|
2140
|
+
i[75]
|
|
2141
2141
|
),
|
|
2142
2142
|
fe(
|
|
2143
2143
|
o,
|
|
2144
2144
|
"click",
|
|
2145
2145
|
/*click_handler_1*/
|
|
2146
|
-
i[
|
|
2146
|
+
i[76]
|
|
2147
2147
|
),
|
|
2148
2148
|
fe(
|
|
2149
2149
|
o,
|
|
@@ -2161,15 +2161,15 @@ function ns(i) {
|
|
|
2161
2161
|
o,
|
|
2162
2162
|
"change",
|
|
2163
2163
|
/*change_handler*/
|
|
2164
|
-
i[
|
|
2164
|
+
i[77]
|
|
2165
2165
|
),
|
|
2166
2166
|
fe(
|
|
2167
2167
|
L,
|
|
2168
2168
|
"click",
|
|
2169
2169
|
/*click_handler_2*/
|
|
2170
|
-
i[
|
|
2170
|
+
i[78]
|
|
2171
2171
|
),
|
|
2172
|
-
fe(t, "submit",
|
|
2172
|
+
fe(t, "submit", er(
|
|
2173
2173
|
/*handleSubmit*/
|
|
2174
2174
|
i[22]
|
|
2175
2175
|
))
|
|
@@ -2190,7 +2190,7 @@ function ns(i) {
|
|
|
2190
2190
|
p[9]
|
|
2191
2191
|
), d[0] & /*searchValue*/
|
|
2192
2192
|
2 && o.value !== /*searchValue*/
|
|
2193
|
-
p[1] &&
|
|
2193
|
+
p[1] && Ti(
|
|
2194
2194
|
o,
|
|
2195
2195
|
/*searchValue*/
|
|
2196
2196
|
p[1]
|
|
@@ -2202,9 +2202,9 @@ function ns(i) {
|
|
|
2202
2202
|
p[3]
|
|
2203
2203
|
), /*abortController*/
|
|
2204
2204
|
p[20] ? G ? d[0] & /*abortController*/
|
|
2205
|
-
1048576 && oe(G, 1) : (G =
|
|
2205
|
+
1048576 && oe(G, 1) : (G = Wi(), G.c(), oe(G, 1), G.m(c, null)) : G && (It(), ce(G, 1, 1, () => {
|
|
2206
2206
|
G = null;
|
|
2207
|
-
}),
|
|
2207
|
+
}), Bt()), (!O || d[0] & /*searchValue*/
|
|
2208
2208
|
2) && We(
|
|
2209
2209
|
c,
|
|
2210
2210
|
"displayable",
|
|
@@ -2212,32 +2212,32 @@ function ns(i) {
|
|
|
2212
2212
|
p[1] !== ""
|
|
2213
2213
|
), /*enableReverse*/
|
|
2214
2214
|
p[6] === "button" ? s ? (s.p(p, d), d[0] & /*enableReverse*/
|
|
2215
|
-
64 && oe(s, 1)) : (s =
|
|
2215
|
+
64 && oe(s, 1)) : (s = Di(p), s.c(), oe(s, 1), s.m(n, N)) : s && (It(), ce(s, 1, 1, () => {
|
|
2216
2216
|
s = null;
|
|
2217
|
-
}),
|
|
2218
|
-
|
|
2217
|
+
}), Bt()), f && f.p && (!O || d[2] & /*$$scope*/
|
|
2218
|
+
128) && Qn(
|
|
2219
2219
|
f,
|
|
2220
2220
|
l,
|
|
2221
2221
|
p,
|
|
2222
2222
|
/*$$scope*/
|
|
2223
|
-
p[
|
|
2224
|
-
O ?
|
|
2223
|
+
p[69],
|
|
2224
|
+
O ? Xn(
|
|
2225
2225
|
l,
|
|
2226
2226
|
/*$$scope*/
|
|
2227
|
-
p[
|
|
2227
|
+
p[69],
|
|
2228
2228
|
d,
|
|
2229
2229
|
null
|
|
2230
|
-
) :
|
|
2230
|
+
) : Jn(
|
|
2231
2231
|
/*$$scope*/
|
|
2232
|
-
p[
|
|
2232
|
+
p[69]
|
|
2233
2233
|
),
|
|
2234
2234
|
null
|
|
2235
2235
|
);
|
|
2236
2236
|
let y = R;
|
|
2237
|
-
R = b(p), R === y ? ~R && h[R].p(p, d) : (k && (
|
|
2237
|
+
R = b(p), R === y ? ~R && h[R].p(p, d) : (k && (It(), ce(h[y], 1, 1, () => {
|
|
2238
2238
|
h[y] = null;
|
|
2239
|
-
}),
|
|
2240
|
-
4 && S !== (S =
|
|
2239
|
+
}), Bt()), ~R ? (k = h[R], k ? k.p(p, d) : (k = h[R] = m[R](p), k.c()), oe(k, 1), k.m(t, null)) : k = null), (!O || d[0] & /*className*/
|
|
2240
|
+
4 && S !== (S = Dt(
|
|
2241
2241
|
/*className*/
|
|
2242
2242
|
p[2]
|
|
2243
2243
|
) + " svelte-bz0zu3")) && x(t, "class", S), (!O || d[0] & /*className, collapsed, searchValue*/
|
|
@@ -2256,11 +2256,11 @@ function ns(i) {
|
|
|
2256
2256
|
ce(V), ce(u.$$.fragment, p), ce(_.$$.fragment, p), ce(G), ce(s), ce(f, p), ce(k), O = !1;
|
|
2257
2257
|
},
|
|
2258
2258
|
d(p) {
|
|
2259
|
-
p && (
|
|
2259
|
+
p && ($(e), $(t)), Ze(u), i[72](null), Ze(_), G && G.d(), s && s.d(), f && f.d(p), ~R && h[R].d(), D = !1, He(H);
|
|
2260
2260
|
}
|
|
2261
2261
|
};
|
|
2262
2262
|
}
|
|
2263
|
-
function
|
|
2263
|
+
function es(i, e, t) {
|
|
2264
2264
|
let n, r, u, { $$slots: a = {}, $$scope: o } = e;
|
|
2265
2265
|
const g = {
|
|
2266
2266
|
continental_marine: 4,
|
|
@@ -2288,271 +2288,257 @@ function rs(i, e, t) {
|
|
|
2288
2288
|
};
|
|
2289
2289
|
let { class: c = void 0 } = e, { apiKey: L } = e, { bbox: _ = void 0 } = e, { clearButtonTitle: C = "clear" } = e, { clearOnBlur: M = !1 } = e, { clearListOnPick: N = !1 } = e, { keepListOpen: P = !1 } = e, { collapsed: R = !1 } = e, { country: k = void 0 } = e, { debounceSearch: S = 200 } = e, { enableReverse: O = "never" } = e, { errorMessage: D = "Something went wrong…" } = e, { filter: H = () => !0 } = e, { flyTo: V = !0 } = e, { fuzzyMatch: G = !0 } = e, { language: s = void 0 } = e, { limit: l = void 0 } = e;
|
|
2290
2290
|
const f = 41415112612;
|
|
2291
|
-
let { reverseGeocodingLimit: m = f } = e, { mapController: h = void 0 } = e, { minLength: b = 2 } = e, { noResultsMessage: p = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = e, { placeholder: d = "Search" } = e, { proximity: y = [{ type: "server-geolocation" }] } = e, { reverseActive: v = O === "always" } = e, { reverseButtonTitle: w = "toggle reverse geocoding" } = e, { searchValue: T = "" } = e, { pickedResultStyle: A = "full-geometry" } = e, { showPlaceType: B = "if-needed" } = e, { showResultsWhileTyping: q = !0 } = e, {
|
|
2292
|
-
const
|
|
2293
|
-
let { reverseGeocodingTypes:
|
|
2294
|
-
const
|
|
2295
|
-
let { reverseGeocodingExcludeTypes:
|
|
2296
|
-
} } = e, { adjustUrl:
|
|
2291
|
+
let { reverseGeocodingLimit: m = f } = e, { mapController: h = void 0 } = e, { minLength: b = 2 } = e, { noResultsMessage: p = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = e, { placeholder: d = "Search" } = e, { proximity: y = [{ type: "server-geolocation" }] } = e, { reverseActive: v = O === "always" } = e, { reverseButtonTitle: w = "toggle reverse geocoding" } = e, { searchValue: T = "" } = e, { pickedResultStyle: A = "full-geometry" } = e, { showPlaceType: B = "if-needed" } = e, { showResultsWhileTyping: q = !0 } = e, { selectFirst: K = !0 } = e, { flyToSelected: ie = !1 } = e, { markerOnSelected: F = !0 } = e, { types: j = void 0 } = e;
|
|
2292
|
+
const ue = [];
|
|
2293
|
+
let { reverseGeocodingTypes: ze = ue } = e, { exhaustiveReverseGeocoding: tt = !1 } = e, { excludeTypes: it = !1 } = e;
|
|
2294
|
+
const pe = void 0;
|
|
2295
|
+
let { reverseGeocodingExcludeTypes: Pe = pe } = e, { zoom: he = g } = e, { apiUrl: ae = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: J = {} } = e, { iconsBaseUrl: pi = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.3/icons/" } = e, { adjustUrlQuery: Zt = () => {
|
|
2296
|
+
} } = e, { adjustUrl: jt = () => {
|
|
2297
2297
|
} } = e;
|
|
2298
|
-
function
|
|
2298
|
+
function Ln(E) {
|
|
2299
2299
|
Ce.focus(E);
|
|
2300
2300
|
}
|
|
2301
|
-
function
|
|
2301
|
+
function _n() {
|
|
2302
2302
|
Ce.blur();
|
|
2303
2303
|
}
|
|
2304
|
-
function
|
|
2305
|
-
t(1, T = E), ne ? (t(15,
|
|
2304
|
+
function yi(E, ne = !0, se = !1) {
|
|
2305
|
+
t(1, T = E), ne ? (t(15, Y = -1), vi()) : (wi(void 0, !se, se), setTimeout(() => {
|
|
2306
2306
|
Ce.focus(), Ce.select();
|
|
2307
2307
|
}));
|
|
2308
2308
|
}
|
|
2309
|
-
function
|
|
2310
|
-
t(13, U = void 0), t(14, W = void 0), t(15,
|
|
2311
|
-
}
|
|
2312
|
-
function Cn() {
|
|
2313
|
-
t(65, ae = []), t(14, W = void 0);
|
|
2309
|
+
function Sn() {
|
|
2310
|
+
t(13, U = void 0), t(14, W = void 0), t(15, Y = -1);
|
|
2314
2311
|
}
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
function kn() {
|
|
2318
|
-
return !!Le;
|
|
2312
|
+
function xn() {
|
|
2313
|
+
t(64, le = []), t(14, W = void 0);
|
|
2319
2314
|
}
|
|
2320
|
-
|
|
2315
|
+
let U, le, W, bi = "", Ce, Y = -1, Ae, Ct = [], nt, lt, ut, Ht, Ue = !1;
|
|
2316
|
+
const Tn = /* @__PURE__ */ new Set(), Ve = sn();
|
|
2317
|
+
nr(() => {
|
|
2321
2318
|
h && (h.setEventHandler(void 0), h.indicateReverse(!1), h.setSelectedMarker(-1), h.setFeatures(void 0, void 0, !1));
|
|
2322
2319
|
});
|
|
2323
|
-
function
|
|
2324
|
-
if (t(17,
|
|
2325
|
-
|
|
2326
|
-
return;
|
|
2327
|
-
}
|
|
2328
|
-
if (K > -1 && U)
|
|
2329
|
-
t(14, W = U[K]), t(1, T = W.place_type[0] === "reverse" ? W.place_name : W.place_name.replace(/,.*/, "")), t(19, Ae = void 0), t(65, ae = void 0), t(15, K = -1);
|
|
2320
|
+
function vi(E) {
|
|
2321
|
+
if (t(17, Ue = !1), lt && (clearTimeout(lt), lt = void 0), Y > -1 && U)
|
|
2322
|
+
t(14, W = U[Y]), t(1, T = W.place_type[0] === "reverse" ? W.place_name : W.place_name.replace(/,.*/, "")), t(19, Ae = void 0), t(64, le = void 0), t(15, Y = -1);
|
|
2330
2323
|
else if (T) {
|
|
2331
|
-
const ne = E || !
|
|
2332
|
-
|
|
2333
|
-
t(
|
|
2324
|
+
const ne = E || !Vt(T);
|
|
2325
|
+
Kt(T, { exact: !0 }).then(() => {
|
|
2326
|
+
t(64, le = U), t(14, W = void 0), ne && Mn();
|
|
2334
2327
|
}).catch((se) => t(19, Ae = se));
|
|
2335
2328
|
}
|
|
2336
2329
|
}
|
|
2337
|
-
function
|
|
2330
|
+
function Vt(E) {
|
|
2338
2331
|
try {
|
|
2339
|
-
return
|
|
2332
|
+
return Kr(E, 6);
|
|
2340
2333
|
} catch {
|
|
2341
2334
|
return !1;
|
|
2342
2335
|
}
|
|
2343
2336
|
}
|
|
2344
|
-
async function
|
|
2345
|
-
var
|
|
2346
|
-
t(19, Ae = void 0),
|
|
2347
|
-
const
|
|
2348
|
-
t(20,
|
|
2337
|
+
async function Kt(E, { byId: ne = !1, exact: se = !1 } = {}) {
|
|
2338
|
+
var be, Ie, Ke;
|
|
2339
|
+
t(19, Ae = void 0), nt == null || nt.abort();
|
|
2340
|
+
const ye = new AbortController();
|
|
2341
|
+
t(20, nt = ye);
|
|
2349
2342
|
try {
|
|
2350
|
-
const
|
|
2343
|
+
const X = Vt(E), dt = new URL(ae + "/" + encodeURIComponent(X ? X.decimalLongitude + "," + X.decimalLatitude : E) + ".json"), _e = dt.searchParams;
|
|
2351
2344
|
s !== void 0 && _e.set("language", Array.isArray(s) ? s.join(",") : s ?? "");
|
|
2352
|
-
const [
|
|
2353
|
-
let Be = (
|
|
2345
|
+
const [Qt] = (h == null ? void 0 : h.getCenterAndZoom()) ?? [];
|
|
2346
|
+
let Be = (be = !X || ze === ue ? j : ze) == null ? void 0 : be.map((de) => typeof de == "string" ? de : Qt === void 0 || (de[0] ?? 0) <= Qt && Qt < (de[1] ?? 1 / 0) ? de[2] : void 0).filter((de) => de !== void 0);
|
|
2354
2347
|
Be && (Be = [...new Set(Be)], _e.set("types", Be.join(",")));
|
|
2355
|
-
const
|
|
2356
|
-
if (
|
|
2357
|
-
const
|
|
2358
|
-
|
|
2348
|
+
const Li = !X || Pe === pe ? it : Pe;
|
|
2349
|
+
if (Li && _e.set("excludeTypes", String(Li)), _ && _e.set("bbox", _.map((de) => de.toFixed(6)).join(",")), k && _e.set("country", Array.isArray(k) ? k.join(",") : k), !ne && !X) {
|
|
2350
|
+
const de = await Gr(h, y, ye);
|
|
2351
|
+
de && _e.set("proximity", de), (se || !q) && _e.set("autocomplete", "false"), _e.set("fuzzyMatch", String(G));
|
|
2359
2352
|
}
|
|
2360
|
-
const
|
|
2361
|
-
|
|
2362
|
-
const
|
|
2363
|
-
if (
|
|
2364
|
-
ne ? (N && t(13, U = void 0), t(14, W =
|
|
2353
|
+
const gt = m === f ? l : m;
|
|
2354
|
+
gt !== void 0 && gt > 1 && (Be == null ? void 0 : Be.length) !== 1 && console.warn("For reverse geocoding when limit > 1 then types must contain single value."), X ? (gt === 1 || gt !== void 0 && (tt || (Be == null ? void 0 : Be.length) === 1)) && _e.set("limit", String(gt)) : l !== void 0 && _e.set("limit", String(l)), _e.set("key", L), Zt(_e), jt(dt);
|
|
2355
|
+
const Zn = dt.searchParams.get("types") === "" && dt.searchParams.get("excludeTypes") !== "true", Nt = dt.toString();
|
|
2356
|
+
if (Nt === bi) {
|
|
2357
|
+
ne ? (N && t(13, U = void 0), t(14, W = Ct[0])) : (t(13, U = Ct), ((Ie = U[Y]) == null ? void 0 : Ie.id) !== (r == null ? void 0 : r.id) && t(15, Y = -1));
|
|
2365
2358
|
return;
|
|
2366
2359
|
}
|
|
2367
|
-
|
|
2368
|
-
let
|
|
2369
|
-
if (
|
|
2370
|
-
|
|
2360
|
+
bi = Nt;
|
|
2361
|
+
let mt;
|
|
2362
|
+
if (Zn)
|
|
2363
|
+
mt = { type: "FeatureCollection", features: [] };
|
|
2371
2364
|
else {
|
|
2372
|
-
const
|
|
2373
|
-
if (!
|
|
2374
|
-
throw new Error(await
|
|
2375
|
-
|
|
2365
|
+
const de = await fetch(Nt, { signal: ye.signal, ...J });
|
|
2366
|
+
if (!de.ok)
|
|
2367
|
+
throw new Error(await de.text());
|
|
2368
|
+
mt = await de.json();
|
|
2376
2369
|
}
|
|
2377
|
-
|
|
2370
|
+
Ve("response", { url: Nt, featureCollection: mt }), ne ? (N && t(13, U = void 0), t(14, W = mt.features[0]), Ct = [W]) : (t(13, U = mt.features.filter(H)), X && U.unshift({
|
|
2378
2371
|
type: "Feature",
|
|
2379
2372
|
properties: {},
|
|
2380
|
-
id: "reverse_" +
|
|
2381
|
-
text:
|
|
2382
|
-
place_name:
|
|
2373
|
+
id: "reverse_" + X.decimalLongitude + "_" + X.decimalLatitude,
|
|
2374
|
+
text: X.decimalLatitude + ", " + X.decimalLongitude,
|
|
2375
|
+
place_name: X.decimalLatitude + ", " + X.decimalLongitude,
|
|
2383
2376
|
place_type: ["reverse"],
|
|
2384
|
-
center: [
|
|
2377
|
+
center: [X.decimalLongitude, X.decimalLatitude],
|
|
2385
2378
|
bbox: [
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2379
|
+
X.decimalLongitude,
|
|
2380
|
+
X.decimalLatitude,
|
|
2381
|
+
X.decimalLongitude,
|
|
2382
|
+
X.decimalLatitude
|
|
2390
2383
|
],
|
|
2391
2384
|
geometry: {
|
|
2392
2385
|
type: "Point",
|
|
2393
|
-
coordinates: [
|
|
2386
|
+
coordinates: [X.decimalLongitude, X.decimalLatitude]
|
|
2394
2387
|
}
|
|
2395
|
-
}),
|
|
2396
|
-
} catch (
|
|
2397
|
-
if (
|
|
2388
|
+
}), Ct = U, ((Ke = U[Y]) == null ? void 0 : Ke.id) !== (r == null ? void 0 : r.id) && t(15, Y = -1), X && Ce.focus());
|
|
2389
|
+
} catch (X) {
|
|
2390
|
+
if (X && typeof X == "object" && "name" in X && X.name === "AbortError")
|
|
2398
2391
|
return;
|
|
2399
|
-
throw
|
|
2392
|
+
throw X;
|
|
2400
2393
|
} finally {
|
|
2401
|
-
|
|
2394
|
+
ye === nt && t(20, nt = void 0);
|
|
2402
2395
|
}
|
|
2403
2396
|
}
|
|
2404
|
-
function
|
|
2405
|
-
var
|
|
2406
|
-
if (!(
|
|
2397
|
+
function Mn() {
|
|
2398
|
+
var ye;
|
|
2399
|
+
if (!(le != null && le.length) || !V)
|
|
2407
2400
|
return;
|
|
2408
|
-
const E = [180, 90, -180, -90], ne = !
|
|
2401
|
+
const E = [180, 90, -180, -90], ne = !le.some((be) => !be.matching_text);
|
|
2409
2402
|
let se;
|
|
2410
|
-
for (const
|
|
2411
|
-
const Ie =
|
|
2412
|
-
if (se = se === void 0 ? Ie : Ie === void 0 ? se : Math.max(se, Ie), ne || !
|
|
2413
|
-
for (const
|
|
2414
|
-
E[
|
|
2403
|
+
for (const be of le) {
|
|
2404
|
+
const Ie = ht(be);
|
|
2405
|
+
if (se = se === void 0 ? Ie : Ie === void 0 ? se : Math.max(se, Ie), ne || !be.matching_text)
|
|
2406
|
+
for (const Ke of [0, 1, 2, 3])
|
|
2407
|
+
E[Ke] = Math[Ke < 2 ? "min" : "max"](E[Ke], ((ye = be.bbox) == null ? void 0 : ye[Ke]) ?? be.center[Ke % 2]);
|
|
2415
2408
|
}
|
|
2416
|
-
h &&
|
|
2409
|
+
h && le.length > 0 && (W && E[0] === E[2] && E[1] === E[3] ? h.flyTo(W.center, ht(W)) : h.fitBounds(xt(E), 50, se));
|
|
2417
2410
|
}
|
|
2418
|
-
function
|
|
2419
|
-
!W || !h || (!W.bbox || W.bbox[0] === W.bbox[2] && W.bbox[1] === W.bbox[3] ? h.flyTo(W.center,
|
|
2411
|
+
function Yt() {
|
|
2412
|
+
!W || !h || (!W.bbox || W.bbox[0] === W.bbox[2] && W.bbox[1] === W.bbox[3] ? h.flyTo(W.center, ht(W)) : h.fitBounds(xt(W.bbox), 50, ht(W)));
|
|
2420
2413
|
}
|
|
2421
|
-
function
|
|
2414
|
+
function ht(E) {
|
|
2422
2415
|
var se;
|
|
2423
2416
|
if (!E.bbox || E.bbox[0] !== E.bbox[2] && E.bbox[1] !== E.bbox[3])
|
|
2424
2417
|
return;
|
|
2425
2418
|
const ne = E.id.replace(/\..*/, "");
|
|
2426
2419
|
return (Array.isArray((se = E.properties) == null ? void 0 : se.categories) ? E.properties.categories.reduce(
|
|
2427
|
-
(
|
|
2428
|
-
const Ie =
|
|
2429
|
-
return
|
|
2420
|
+
(ye, be) => {
|
|
2421
|
+
const Ie = he[ne + "." + be];
|
|
2422
|
+
return ye === void 0 ? Ie : Ie === void 0 ? ye : Math.max(ye, Ie);
|
|
2430
2423
|
},
|
|
2431
2424
|
void 0
|
|
2432
|
-
) : void 0) ??
|
|
2425
|
+
) : void 0) ?? he[ne];
|
|
2433
2426
|
}
|
|
2434
|
-
function
|
|
2435
|
-
t(0, v = O === "always"), t(13, U = void 0), t(14, W = void 0), t(15,
|
|
2427
|
+
function Cn(E) {
|
|
2428
|
+
t(0, v = O === "always"), t(13, U = void 0), t(14, W = void 0), t(15, Y = -1), yi(E[1].toFixed(6) + ", " + Br(E[0], [-180, 180], !0).toFixed(6), !1, !0);
|
|
2436
2429
|
}
|
|
2437
|
-
function
|
|
2430
|
+
function Nn(E) {
|
|
2438
2431
|
if (!U)
|
|
2439
2432
|
return;
|
|
2440
2433
|
let ne = E.key === "ArrowDown" ? 1 : E.key === "ArrowUp" ? -1 : 0;
|
|
2441
|
-
ne && (Ce.focus(), t(17,
|
|
2434
|
+
ne && (Ce.focus(), t(17, Ue = !0), E.preventDefault(), W && Y === -1 && t(15, Y = U.findIndex((se) => se.id === (W == null ? void 0 : W.id))), Y === (W || K ? 0 : -1) && ne === -1 && t(15, Y = U.length), t(15, Y += ne), Y >= U.length && t(15, Y = -1), Y < 0 && (W || K) && t(15, Y = 0));
|
|
2442
2435
|
}
|
|
2443
|
-
function
|
|
2444
|
-
if (t(19, Ae = void 0), t(14, W = void 0), t(17,
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
()
|
|
2456
|
-
t(66, Le = void 0), dt(Ne, { appendSpace: !0 }).catch((de) => t(19, Ae = de));
|
|
2457
|
-
},
|
|
2458
|
-
J
|
|
2459
|
-
));
|
|
2436
|
+
function wi(E, ne = !0, se = !1) {
|
|
2437
|
+
if (t(19, Ae = void 0), t(14, W = void 0), t(17, Ue = !0), q || se) {
|
|
2438
|
+
if (lt && clearTimeout(lt), T.length < b)
|
|
2439
|
+
return;
|
|
2440
|
+
const ye = T;
|
|
2441
|
+
lt = window.setTimeout(
|
|
2442
|
+
() => {
|
|
2443
|
+
Kt(ye).catch((be) => t(19, Ae = be));
|
|
2444
|
+
},
|
|
2445
|
+
ne ? S : 0
|
|
2446
|
+
);
|
|
2447
|
+
} else
|
|
2448
|
+
t(13, U = void 0), t(19, Ae = void 0);
|
|
2460
2449
|
}
|
|
2461
|
-
function
|
|
2462
|
-
W && (W == null ? void 0 : W.id) === (E == null ? void 0 : E.id) ?
|
|
2450
|
+
function Xt(E) {
|
|
2451
|
+
W && (W == null ? void 0 : W.id) === (E == null ? void 0 : E.id) ? Yt() : (t(14, W = E), t(1, T = E.place_name));
|
|
2463
2452
|
}
|
|
2464
|
-
function
|
|
2465
|
-
t(15,
|
|
2453
|
+
function Ei(E) {
|
|
2454
|
+
t(15, Y = E);
|
|
2466
2455
|
}
|
|
2467
|
-
function
|
|
2468
|
-
(!
|
|
2456
|
+
function kn() {
|
|
2457
|
+
(!K || W) && t(15, Y = -1), ie && Yt();
|
|
2469
2458
|
}
|
|
2470
|
-
const
|
|
2471
|
-
function
|
|
2472
|
-
|
|
2459
|
+
const On = () => Ce.focus();
|
|
2460
|
+
function Rn(E) {
|
|
2461
|
+
ni[E ? "unshift" : "push"](() => {
|
|
2473
2462
|
Ce = E, t(18, Ce);
|
|
2474
2463
|
});
|
|
2475
2464
|
}
|
|
2476
|
-
function
|
|
2477
|
-
T = this.value, t(1, T), t(17,
|
|
2465
|
+
function Pn() {
|
|
2466
|
+
T = this.value, t(1, T), t(17, Ue), t(31, M), t(16, ut);
|
|
2478
2467
|
}
|
|
2479
|
-
const
|
|
2468
|
+
const An = () => t(17, Ue = !0), In = () => t(17, Ue = !1), Bn = () => t(17, Ue = !0), Gn = () => t(14, W = void 0), Wn = () => {
|
|
2480
2469
|
t(1, T = ""), t(14, W = void 0), Ce.focus();
|
|
2481
|
-
},
|
|
2470
|
+
}, Dn = () => t(0, v = !v), zn = () => t(19, Ae = void 0), Un = (E) => Ei(E), Fn = (E) => Xt(E), qn = () => {
|
|
2482
2471
|
};
|
|
2483
2472
|
return i.$$set = (E) => {
|
|
2484
|
-
"class" in E && t(2, c = E.class), "apiKey" in E && t(29, L = E.apiKey), "bbox" in E && t(30, _ = E.bbox), "clearButtonTitle" in E && t(3, C = E.clearButtonTitle), "clearOnBlur" in E && t(31, M = E.clearOnBlur), "clearListOnPick" in E && t(32, N = E.clearListOnPick), "keepListOpen" in E && t(4, P = E.keepListOpen), "collapsed" in E && t(5, R = E.collapsed), "country" in E && t(33, k = E.country), "debounceSearch" in E && t(34, S = E.debounceSearch), "enableReverse" in E && t(6, O = E.enableReverse), "errorMessage" in E && t(7, D = E.errorMessage), "filter" in E && t(35, H = E.filter), "flyTo" in E && t(36, V = E.flyTo), "fuzzyMatch" in E && t(37, G = E.fuzzyMatch), "language" in E && t(38, s = E.language), "limit" in E && t(39, l = E.limit), "reverseGeocodingLimit" in E && t(40, m = E.reverseGeocodingLimit), "mapController" in E && t(41, h = E.mapController), "minLength" in E && t(42, b = E.minLength), "noResultsMessage" in E && t(8, p = E.noResultsMessage), "placeholder" in E && t(9, d = E.placeholder), "proximity" in E && t(43, y = E.proximity), "reverseActive" in E && t(0, v = E.reverseActive), "reverseButtonTitle" in E && t(10, w = E.reverseButtonTitle), "searchValue" in E && t(1, T = E.searchValue), "pickedResultStyle" in E && t(44, A = E.pickedResultStyle), "showPlaceType" in E && t(11, B = E.showPlaceType), "showResultsWhileTyping" in E && t(45, q = E.showResultsWhileTyping), "
|
|
2473
|
+
"class" in E && t(2, c = E.class), "apiKey" in E && t(29, L = E.apiKey), "bbox" in E && t(30, _ = E.bbox), "clearButtonTitle" in E && t(3, C = E.clearButtonTitle), "clearOnBlur" in E && t(31, M = E.clearOnBlur), "clearListOnPick" in E && t(32, N = E.clearListOnPick), "keepListOpen" in E && t(4, P = E.keepListOpen), "collapsed" in E && t(5, R = E.collapsed), "country" in E && t(33, k = E.country), "debounceSearch" in E && t(34, S = E.debounceSearch), "enableReverse" in E && t(6, O = E.enableReverse), "errorMessage" in E && t(7, D = E.errorMessage), "filter" in E && t(35, H = E.filter), "flyTo" in E && t(36, V = E.flyTo), "fuzzyMatch" in E && t(37, G = E.fuzzyMatch), "language" in E && t(38, s = E.language), "limit" in E && t(39, l = E.limit), "reverseGeocodingLimit" in E && t(40, m = E.reverseGeocodingLimit), "mapController" in E && t(41, h = E.mapController), "minLength" in E && t(42, b = E.minLength), "noResultsMessage" in E && t(8, p = E.noResultsMessage), "placeholder" in E && t(9, d = E.placeholder), "proximity" in E && t(43, y = E.proximity), "reverseActive" in E && t(0, v = E.reverseActive), "reverseButtonTitle" in E && t(10, w = E.reverseButtonTitle), "searchValue" in E && t(1, T = E.searchValue), "pickedResultStyle" in E && t(44, A = E.pickedResultStyle), "showPlaceType" in E && t(11, B = E.showPlaceType), "showResultsWhileTyping" in E && t(45, q = E.showResultsWhileTyping), "selectFirst" in E && t(46, K = E.selectFirst), "flyToSelected" in E && t(47, ie = E.flyToSelected), "markerOnSelected" in E && t(48, F = E.markerOnSelected), "types" in E && t(49, j = E.types), "reverseGeocodingTypes" in E && t(50, ze = E.reverseGeocodingTypes), "exhaustiveReverseGeocoding" in E && t(51, tt = E.exhaustiveReverseGeocoding), "excludeTypes" in E && t(52, it = E.excludeTypes), "reverseGeocodingExcludeTypes" in E && t(53, Pe = E.reverseGeocodingExcludeTypes), "zoom" in E && t(54, he = E.zoom), "apiUrl" in E && t(55, ae = E.apiUrl), "fetchParameters" in E && t(56, J = E.fetchParameters), "iconsBaseUrl" in E && t(12, pi = E.iconsBaseUrl), "adjustUrlQuery" in E && t(57, Zt = E.adjustUrlQuery), "adjustUrl" in E && t(58, jt = E.adjustUrl), "$$scope" in E && t(69, o = E.$$scope);
|
|
2485
2474
|
}, i.$$.update = () => {
|
|
2486
2475
|
if (i.$$.dirty[0] & /*enableReverse*/
|
|
2487
2476
|
64 && t(0, v = O === "always"), i.$$.dirty[0] & /*picked*/
|
|
2488
2477
|
16384 | i.$$.dirty[1] & /*pickedResultStyle*/
|
|
2489
|
-
8192 && A !== "marker-only" && W && !W.address && W.geometry.type === "Point" && W.place_type[0] !== "reverse" &&
|
|
2478
|
+
8192 && A !== "marker-only" && W && !W.address && W.geometry.type === "Point" && W.place_type[0] !== "reverse" && Kt(W.id, { byId: !0 }).catch((E) => t(19, Ae = E)), i.$$.dirty[0] & /*picked*/
|
|
2490
2479
|
16384 | i.$$.dirty[1] & /*mapController, flyTo, clearListOnPick*/
|
|
2491
2480
|
1058 | i.$$.dirty[2] & /*prevIdToFly*/
|
|
2492
|
-
|
|
2481
|
+
8 && (h && W && W.id !== Ht && V && (Yt(), N && t(13, U = void 0), t(64, le = void 0), t(15, Y = -1)), t(65, Ht = W == null ? void 0 : W.id)), i.$$.dirty[0] & /*focused, focusedDelayed*/
|
|
2493
2482
|
196608 | i.$$.dirty[1] & /*clearOnBlur*/
|
|
2494
2483
|
1 && setTimeout(() => {
|
|
2495
|
-
t(16,
|
|
2484
|
+
t(16, ut = Ue), M && !ut && t(1, T = "");
|
|
2496
2485
|
}), i.$$.dirty[0] & /*searchValue, listFeatures*/
|
|
2497
2486
|
8194 | i.$$.dirty[1] & /*minLength*/
|
|
2498
|
-
2048 && T.length < b && (t(13, U = void 0), t(19, Ae = void 0), t(
|
|
2499
|
-
8192 | i.$$.dirty[1] & /*selectFirst*/
|
|
2500
|
-
65536 && Q && U != null && U.length && (kn() || t(15, K = 0)), i.$$.dirty[0] & /*listFeatures, selectedItemIndex, picked*/
|
|
2487
|
+
2048 && T.length < b && (t(13, U = void 0), t(19, Ae = void 0), t(64, le = U)), i.$$.dirty[0] & /*listFeatures, selectedItemIndex, picked*/
|
|
2501
2488
|
57344 | i.$$.dirty[1] & /*selectFirst*/
|
|
2502
|
-
|
|
2489
|
+
32768 && K && U != null && U.length && Y == -1 && !W && t(15, Y = 0), i.$$.dirty[0] & /*listFeatures*/
|
|
2503
2490
|
8192 | i.$$.dirty[2] & /*markedFeatures*/
|
|
2504
|
-
|
|
2491
|
+
4 && le !== U && t(64, le = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
|
|
2505
2492
|
73729 | i.$$.dirty[1] & /*mapController*/
|
|
2506
2493
|
1024 | i.$$.dirty[2] & /*markedFeatures*/
|
|
2507
|
-
|
|
2494
|
+
4 && h && h.setEventHandler((E) => {
|
|
2508
2495
|
switch (E.type) {
|
|
2509
2496
|
case "mapClick":
|
|
2510
|
-
v &&
|
|
2497
|
+
v && Cn(E.coordinates);
|
|
2511
2498
|
break;
|
|
2512
2499
|
case "markerClick":
|
|
2513
2500
|
{
|
|
2514
2501
|
const ne = U == null ? void 0 : U.find((se) => se.id === E.id);
|
|
2515
|
-
ne &&
|
|
2502
|
+
ne && Xt(ne);
|
|
2516
2503
|
}
|
|
2517
2504
|
break;
|
|
2518
2505
|
case "markerMouseEnter":
|
|
2519
|
-
|
|
2506
|
+
le && t(15, Y = ut ? (U == null ? void 0 : U.findIndex((ne) => ne.id === E.id)) ?? -1 : -1);
|
|
2520
2507
|
break;
|
|
2521
2508
|
case "markerMouseLeave":
|
|
2522
|
-
|
|
2509
|
+
le && t(15, Y = -1);
|
|
2523
2510
|
break;
|
|
2524
2511
|
}
|
|
2525
2512
|
}), i.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
|
|
2526
|
-
40960 && t(
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
8192 && t(
|
|
2530
|
-
|
|
2531
|
-
|
|
2513
|
+
40960 && t(66, r = U == null ? void 0 : U[Y]), i.$$.dirty[1] & /*mapController, flyTo, flyToSelected*/
|
|
2514
|
+
66592 | i.$$.dirty[2] & /*selected*/
|
|
2515
|
+
16 && h && r && V && ie && h.flyTo(r.center, ht(r)), i.$$.dirty[1] & /*pickedResultStyle*/
|
|
2516
|
+
8192 && t(68, n = A === "full-geometry-including-polygon-center-marker"), i.$$.dirty[1] & /*markerOnSelected, mapController*/
|
|
2517
|
+
132096 | i.$$.dirty[2] & /*showPolygonMarker*/
|
|
2518
|
+
64 && (F || h == null || h.setFeatures(void 0, void 0, n)), i.$$.dirty[0] & /*picked*/
|
|
2532
2519
|
16384 | i.$$.dirty[1] & /*mapController, markerOnSelected*/
|
|
2533
|
-
|
|
2534
|
-
|
|
2520
|
+
132096 | i.$$.dirty[2] & /*markedFeatures, selected, showPolygonMarker*/
|
|
2521
|
+
84 && h && F && !le && (h.setFeatures(r ? [r] : void 0, W, n), h.setSelectedMarker(r ? 0 : -1)), i.$$.dirty[0] & /*picked*/
|
|
2535
2522
|
16384 | i.$$.dirty[1] & /*mapController*/
|
|
2536
2523
|
1024 | i.$$.dirty[2] & /*markedFeatures, showPolygonMarker*/
|
|
2537
|
-
|
|
2524
|
+
68 && h && h.setFeatures(le, W, n), i.$$.dirty[0] & /*selectedItemIndex*/
|
|
2538
2525
|
32768 | i.$$.dirty[1] & /*mapController*/
|
|
2539
2526
|
1024 | i.$$.dirty[2] & /*markedFeatures*/
|
|
2540
|
-
|
|
2541
|
-
80 && r && (window.clearTimeout(Le), t(66, Le = void 0)), i.$$.dirty[0] & /*searchValue*/
|
|
2527
|
+
4 && le && h && h.setSelectedMarker(Y), i.$$.dirty[0] & /*searchValue*/
|
|
2542
2528
|
2 | i.$$.dirty[1] & /*mapController*/
|
|
2543
2529
|
1024 && h) {
|
|
2544
|
-
const E =
|
|
2530
|
+
const E = Vt(T);
|
|
2545
2531
|
h.setReverseMarker(E ? [E.decimalLongitude, E.decimalLatitude] : void 0);
|
|
2546
2532
|
}
|
|
2547
2533
|
i.$$.dirty[2] & /*selected*/
|
|
2548
|
-
|
|
2549
|
-
16384 &&
|
|
2550
|
-
73744 && t(
|
|
2551
|
-
|
|
2552
|
-
8192 &&
|
|
2553
|
-
|
|
2554
|
-
1 &&
|
|
2555
|
-
2 &&
|
|
2534
|
+
16 && Ve("select", { feature: r }), i.$$.dirty[0] & /*picked*/
|
|
2535
|
+
16384 && Ve("pick", { feature: W }), i.$$.dirty[0] & /*listFeatures, focusedDelayed, keepListOpen*/
|
|
2536
|
+
73744 && t(67, u = !!(U != null && U.length) && (ut || P)), i.$$.dirty[2] & /*optionsVisible*/
|
|
2537
|
+
32 && Ve("optionsvisibilitychange", { optionsVisible: u }), i.$$.dirty[0] & /*listFeatures*/
|
|
2538
|
+
8192 && Ve("featureslisted", { features: U }), i.$$.dirty[2] & /*markedFeatures*/
|
|
2539
|
+
4 && Ve("featuresmarked", { features: le }), i.$$.dirty[0] & /*reverseActive*/
|
|
2540
|
+
1 && Ve("reversetoggle", { reverse: v }), i.$$.dirty[0] & /*searchValue*/
|
|
2541
|
+
2 && Ve("querychange", { query: T }), i.$$.dirty[0] & /*reverseActive*/
|
|
2556
2542
|
1 | i.$$.dirty[1] & /*mapController*/
|
|
2557
2543
|
1024 && h && h.indicateReverse(v);
|
|
2558
2544
|
}, [
|
|
@@ -2568,22 +2554,22 @@ function rs(i, e, t) {
|
|
|
2568
2554
|
d,
|
|
2569
2555
|
w,
|
|
2570
2556
|
B,
|
|
2571
|
-
|
|
2557
|
+
pi,
|
|
2572
2558
|
U,
|
|
2573
2559
|
W,
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2560
|
+
Y,
|
|
2561
|
+
ut,
|
|
2562
|
+
Ue,
|
|
2577
2563
|
Ce,
|
|
2578
2564
|
Ae,
|
|
2579
|
-
|
|
2565
|
+
nt,
|
|
2566
|
+
Tn,
|
|
2567
|
+
vi,
|
|
2580
2568
|
Nn,
|
|
2569
|
+
wi,
|
|
2570
|
+
Xt,
|
|
2581
2571
|
Ei,
|
|
2582
|
-
|
|
2583
|
-
Li,
|
|
2584
|
-
Jt,
|
|
2585
|
-
_i,
|
|
2586
|
-
An,
|
|
2572
|
+
kn,
|
|
2587
2573
|
g,
|
|
2588
2574
|
L,
|
|
2589
2575
|
_,
|
|
@@ -2602,33 +2588,35 @@ function rs(i, e, t) {
|
|
|
2602
2588
|
y,
|
|
2603
2589
|
A,
|
|
2604
2590
|
q,
|
|
2605
|
-
|
|
2606
|
-
|
|
2591
|
+
K,
|
|
2592
|
+
ie,
|
|
2607
2593
|
F,
|
|
2608
2594
|
j,
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2595
|
+
ze,
|
|
2596
|
+
tt,
|
|
2597
|
+
it,
|
|
2598
|
+
Pe,
|
|
2613
2599
|
he,
|
|
2614
|
-
ue,
|
|
2615
|
-
$,
|
|
2616
|
-
Ht,
|
|
2617
|
-
Vt,
|
|
2618
|
-
Kt,
|
|
2619
|
-
xn,
|
|
2620
|
-
Tn,
|
|
2621
|
-
vi,
|
|
2622
|
-
Mn,
|
|
2623
|
-
Cn,
|
|
2624
2600
|
ae,
|
|
2625
|
-
|
|
2626
|
-
|
|
2601
|
+
J,
|
|
2602
|
+
Zt,
|
|
2603
|
+
jt,
|
|
2604
|
+
Ln,
|
|
2605
|
+
_n,
|
|
2606
|
+
yi,
|
|
2607
|
+
Sn,
|
|
2608
|
+
xn,
|
|
2609
|
+
le,
|
|
2610
|
+
Ht,
|
|
2627
2611
|
r,
|
|
2628
2612
|
u,
|
|
2629
2613
|
n,
|
|
2630
2614
|
o,
|
|
2631
2615
|
a,
|
|
2616
|
+
On,
|
|
2617
|
+
Rn,
|
|
2618
|
+
Pn,
|
|
2619
|
+
An,
|
|
2632
2620
|
In,
|
|
2633
2621
|
Bn,
|
|
2634
2622
|
Gn,
|
|
@@ -2637,21 +2625,17 @@ function rs(i, e, t) {
|
|
|
2637
2625
|
zn,
|
|
2638
2626
|
Un,
|
|
2639
2627
|
Fn,
|
|
2640
|
-
qn
|
|
2641
|
-
Zn,
|
|
2642
|
-
jn,
|
|
2643
|
-
Hn,
|
|
2644
|
-
Vn
|
|
2628
|
+
qn
|
|
2645
2629
|
];
|
|
2646
2630
|
}
|
|
2647
|
-
let
|
|
2631
|
+
let ts = class extends et {
|
|
2648
2632
|
constructor(e) {
|
|
2649
|
-
super(),
|
|
2633
|
+
super(), $e(
|
|
2650
2634
|
this,
|
|
2651
2635
|
e,
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2636
|
+
es,
|
|
2637
|
+
$r,
|
|
2638
|
+
Je,
|
|
2655
2639
|
{
|
|
2656
2640
|
ZOOM_DEFAULTS: 28,
|
|
2657
2641
|
class: 2,
|
|
@@ -2683,26 +2667,25 @@ let ss = class extends it {
|
|
|
2683
2667
|
pickedResultStyle: 44,
|
|
2684
2668
|
showPlaceType: 11,
|
|
2685
2669
|
showResultsWhileTyping: 45,
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
fetchParameters: 57,
|
|
2670
|
+
selectFirst: 46,
|
|
2671
|
+
flyToSelected: 47,
|
|
2672
|
+
markerOnSelected: 48,
|
|
2673
|
+
types: 49,
|
|
2674
|
+
reverseGeocodingTypes: 50,
|
|
2675
|
+
exhaustiveReverseGeocoding: 51,
|
|
2676
|
+
excludeTypes: 52,
|
|
2677
|
+
reverseGeocodingExcludeTypes: 53,
|
|
2678
|
+
zoom: 54,
|
|
2679
|
+
apiUrl: 55,
|
|
2680
|
+
fetchParameters: 56,
|
|
2698
2681
|
iconsBaseUrl: 12,
|
|
2699
|
-
adjustUrlQuery:
|
|
2700
|
-
adjustUrl:
|
|
2701
|
-
focus:
|
|
2702
|
-
blur:
|
|
2703
|
-
setQuery:
|
|
2704
|
-
clearList:
|
|
2705
|
-
clearMap:
|
|
2682
|
+
adjustUrlQuery: 57,
|
|
2683
|
+
adjustUrl: 58,
|
|
2684
|
+
focus: 59,
|
|
2685
|
+
blur: 60,
|
|
2686
|
+
setQuery: 61,
|
|
2687
|
+
clearList: 62,
|
|
2688
|
+
clearMap: 63
|
|
2706
2689
|
},
|
|
2707
2690
|
null,
|
|
2708
2691
|
[-1, -1, -1, -1]
|
|
@@ -2712,26 +2695,26 @@ let ss = class extends it {
|
|
|
2712
2695
|
return this.$$.ctx[28];
|
|
2713
2696
|
}
|
|
2714
2697
|
get focus() {
|
|
2715
|
-
return this.$$.ctx[
|
|
2698
|
+
return this.$$.ctx[59];
|
|
2716
2699
|
}
|
|
2717
2700
|
get blur() {
|
|
2718
|
-
return this.$$.ctx[
|
|
2701
|
+
return this.$$.ctx[60];
|
|
2719
2702
|
}
|
|
2720
2703
|
get setQuery() {
|
|
2721
|
-
return this.$$.ctx[
|
|
2704
|
+
return this.$$.ctx[61];
|
|
2722
2705
|
}
|
|
2723
2706
|
get clearList() {
|
|
2724
|
-
return this.$$.ctx[
|
|
2707
|
+
return this.$$.ctx[62];
|
|
2725
2708
|
}
|
|
2726
2709
|
get clearMap() {
|
|
2727
|
-
return this.$$.ctx[
|
|
2710
|
+
return this.$$.ctx[63];
|
|
2728
2711
|
}
|
|
2729
2712
|
};
|
|
2730
|
-
function
|
|
2713
|
+
function Tt(i, e, t = {}) {
|
|
2731
2714
|
const n = { type: "Feature" };
|
|
2732
2715
|
return (t.id === 0 || t.id) && (n.id = t.id), t.bbox && (n.bbox = t.bbox), n.properties = e || {}, n.geometry = i, n;
|
|
2733
2716
|
}
|
|
2734
|
-
function
|
|
2717
|
+
function di(i, e, t = {}) {
|
|
2735
2718
|
for (const r of i) {
|
|
2736
2719
|
if (r.length < 4)
|
|
2737
2720
|
throw new Error(
|
|
@@ -2743,22 +2726,22 @@ function mi(i, e, t = {}) {
|
|
|
2743
2726
|
if (r[r.length - 1][u] !== r[0][u])
|
|
2744
2727
|
throw new Error("First and last Position are not equivalent.");
|
|
2745
2728
|
}
|
|
2746
|
-
return
|
|
2729
|
+
return Tt({
|
|
2747
2730
|
type: "Polygon",
|
|
2748
2731
|
coordinates: i
|
|
2749
2732
|
}, e, t);
|
|
2750
2733
|
}
|
|
2751
|
-
function
|
|
2734
|
+
function Mt(i, e = {}) {
|
|
2752
2735
|
const t = { type: "FeatureCollection" };
|
|
2753
2736
|
return e.id && (t.id = e.id), e.bbox && (t.bbox = e.bbox), t.features = i, t;
|
|
2754
2737
|
}
|
|
2755
|
-
function
|
|
2756
|
-
return
|
|
2738
|
+
function fn(i, e, t = {}) {
|
|
2739
|
+
return Tt({
|
|
2757
2740
|
type: "MultiPolygon",
|
|
2758
2741
|
coordinates: i
|
|
2759
2742
|
}, e, t);
|
|
2760
2743
|
}
|
|
2761
|
-
function
|
|
2744
|
+
function cn(i, e, t) {
|
|
2762
2745
|
if (i !== null)
|
|
2763
2746
|
for (var n, r, u, a, o, g, c, L = 0, _ = 0, C, M = i.type, N = M === "FeatureCollection", P = M === "Feature", R = N ? i.features.length : 1, k = 0; k < R; k++) {
|
|
2764
2747
|
c = N ? i.features[k].geometry : P ? i.geometry : i, C = c ? c.type === "GeometryCollection" : !1, o = C ? c.geometries.length : 1;
|
|
@@ -2835,7 +2818,7 @@ function gn(i, e, t) {
|
|
|
2835
2818
|
break;
|
|
2836
2819
|
case "GeometryCollection":
|
|
2837
2820
|
for (n = 0; n < a.geometries.length; n++)
|
|
2838
|
-
if (
|
|
2821
|
+
if (cn(a.geometries[n], e) === !1)
|
|
2839
2822
|
return !1;
|
|
2840
2823
|
break;
|
|
2841
2824
|
default:
|
|
@@ -2845,7 +2828,7 @@ function gn(i, e, t) {
|
|
|
2845
2828
|
}
|
|
2846
2829
|
}
|
|
2847
2830
|
}
|
|
2848
|
-
function
|
|
2831
|
+
function gi(i, e) {
|
|
2849
2832
|
var t, n, r, u, a, o, g, c, L, _, C = 0, M = i.type === "FeatureCollection", N = i.type === "Feature", P = M ? i.features.length : 1;
|
|
2850
2833
|
for (t = 0; t < P; t++) {
|
|
2851
2834
|
for (o = M ? i.features[t].geometry : N ? i.geometry : i, c = M ? i.features[t].properties : N ? i.properties : {}, L = M ? i.features[t].bbox : N ? i.bbox : void 0, _ = M ? i.features[t].id : N ? i.id : void 0, g = o ? o.type === "GeometryCollection" : !1, a = g ? o.geometries.length : 1, r = 0; r < a; r++) {
|
|
@@ -2896,8 +2879,8 @@ function pi(i, e) {
|
|
|
2896
2879
|
C++;
|
|
2897
2880
|
}
|
|
2898
2881
|
}
|
|
2899
|
-
function
|
|
2900
|
-
|
|
2882
|
+
function is(i, e) {
|
|
2883
|
+
gi(i, function(t, n, r, u, a) {
|
|
2901
2884
|
var o = t === null ? null : t.type;
|
|
2902
2885
|
switch (o) {
|
|
2903
2886
|
case null:
|
|
@@ -2905,7 +2888,7 @@ function os(i, e) {
|
|
|
2905
2888
|
case "LineString":
|
|
2906
2889
|
case "Polygon":
|
|
2907
2890
|
return e(
|
|
2908
|
-
|
|
2891
|
+
Tt(t, r, { bbox: u, id: a }),
|
|
2909
2892
|
n,
|
|
2910
2893
|
0
|
|
2911
2894
|
) === !1 ? !1 : void 0;
|
|
@@ -2927,28 +2910,28 @@ function os(i, e) {
|
|
|
2927
2910
|
type: g,
|
|
2928
2911
|
coordinates: L
|
|
2929
2912
|
};
|
|
2930
|
-
if (e(
|
|
2913
|
+
if (e(Tt(_, r), n, c) === !1)
|
|
2931
2914
|
return !1;
|
|
2932
2915
|
}
|
|
2933
2916
|
});
|
|
2934
2917
|
}
|
|
2935
|
-
function
|
|
2918
|
+
function ns(i, e = {}) {
|
|
2936
2919
|
if (i.bbox != null && e.recompute !== !0)
|
|
2937
2920
|
return i.bbox;
|
|
2938
2921
|
const t = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
2939
|
-
return
|
|
2922
|
+
return cn(i, (n) => {
|
|
2940
2923
|
t[0] > n[0] && (t[0] = n[0]), t[1] > n[1] && (t[1] = n[1]), t[2] < n[0] && (t[2] = n[0]), t[3] < n[1] && (t[3] = n[1]);
|
|
2941
2924
|
}), t;
|
|
2942
2925
|
}
|
|
2943
|
-
var
|
|
2944
|
-
function
|
|
2926
|
+
var li = ns;
|
|
2927
|
+
function rs(i) {
|
|
2945
2928
|
if (!i)
|
|
2946
2929
|
throw new Error("geojson is required");
|
|
2947
2930
|
switch (i.type) {
|
|
2948
2931
|
case "Feature":
|
|
2949
|
-
return
|
|
2932
|
+
return hn(i);
|
|
2950
2933
|
case "FeatureCollection":
|
|
2951
|
-
return
|
|
2934
|
+
return ss(i);
|
|
2952
2935
|
case "Point":
|
|
2953
2936
|
case "LineString":
|
|
2954
2937
|
case "Polygon":
|
|
@@ -2956,12 +2939,12 @@ function us(i) {
|
|
|
2956
2939
|
case "MultiLineString":
|
|
2957
2940
|
case "MultiPolygon":
|
|
2958
2941
|
case "GeometryCollection":
|
|
2959
|
-
return
|
|
2942
|
+
return mi(i);
|
|
2960
2943
|
default:
|
|
2961
2944
|
throw new Error("unknown GeoJSON type");
|
|
2962
2945
|
}
|
|
2963
2946
|
}
|
|
2964
|
-
function
|
|
2947
|
+
function hn(i) {
|
|
2965
2948
|
const e = { type: "Feature" };
|
|
2966
2949
|
return Object.keys(i).forEach((t) => {
|
|
2967
2950
|
switch (t) {
|
|
@@ -2972,16 +2955,16 @@ function mn(i) {
|
|
|
2972
2955
|
default:
|
|
2973
2956
|
e[t] = i[t];
|
|
2974
2957
|
}
|
|
2975
|
-
}), e.properties =
|
|
2958
|
+
}), e.properties = dn(i.properties), i.geometry == null ? e.geometry = null : e.geometry = mi(i.geometry), e;
|
|
2976
2959
|
}
|
|
2977
|
-
function
|
|
2960
|
+
function dn(i) {
|
|
2978
2961
|
const e = {};
|
|
2979
2962
|
return i && Object.keys(i).forEach((t) => {
|
|
2980
2963
|
const n = i[t];
|
|
2981
|
-
typeof n == "object" ? n === null ? e[t] = null : Array.isArray(n) ? e[t] = n.map((r) => r) : e[t] =
|
|
2964
|
+
typeof n == "object" ? n === null ? e[t] = null : Array.isArray(n) ? e[t] = n.map((r) => r) : e[t] = dn(n) : e[t] = n;
|
|
2982
2965
|
}), e;
|
|
2983
2966
|
}
|
|
2984
|
-
function
|
|
2967
|
+
function ss(i) {
|
|
2985
2968
|
const e = { type: "FeatureCollection" };
|
|
2986
2969
|
return Object.keys(i).forEach((t) => {
|
|
2987
2970
|
switch (t) {
|
|
@@ -2991,18 +2974,18 @@ function as(i) {
|
|
|
2991
2974
|
default:
|
|
2992
2975
|
e[t] = i[t];
|
|
2993
2976
|
}
|
|
2994
|
-
}), e.features = i.features.map((t) =>
|
|
2977
|
+
}), e.features = i.features.map((t) => hn(t)), e;
|
|
2995
2978
|
}
|
|
2996
|
-
function
|
|
2979
|
+
function mi(i) {
|
|
2997
2980
|
const e = { type: i.type };
|
|
2998
|
-
return i.bbox && (e.bbox = i.bbox), i.type === "GeometryCollection" ? (e.geometries = i.geometries.map((t) =>
|
|
2981
|
+
return i.bbox && (e.bbox = i.bbox), i.type === "GeometryCollection" ? (e.geometries = i.geometries.map((t) => mi(t)), e) : (e.coordinates = gn(i.coordinates), e);
|
|
2999
2982
|
}
|
|
3000
|
-
function
|
|
2983
|
+
function gn(i) {
|
|
3001
2984
|
const e = i;
|
|
3002
|
-
return typeof e[0] != "object" ? e.slice() : e.map((t) =>
|
|
2985
|
+
return typeof e[0] != "object" ? e.slice() : e.map((t) => gn(t));
|
|
3003
2986
|
}
|
|
3004
|
-
var
|
|
3005
|
-
function
|
|
2987
|
+
var os = rs, ls = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, ti = Math.ceil, Te = Math.floor, me = "[BigNumber Error] ", Ui = me + "Number primitive has more than 15 significant digits: ", Ne = 1e14, z = 14, Fi = 9007199254740991, ii = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], Ye = 1e7, we = 1e9;
|
|
2988
|
+
function mn(i) {
|
|
3006
2989
|
var e, t, n, r = S.prototype = { constructor: S, toString: null, valueOf: null }, u = new S(1), a = 20, o = 4, g = -7, c = 21, L = -1e7, _ = 1e7, C = !1, M = 1, N = 0, P = {
|
|
3007
2990
|
prefix: "",
|
|
3008
2991
|
groupSize: 3,
|
|
@@ -3030,7 +3013,7 @@ function bn(i) {
|
|
|
3030
3013
|
}
|
|
3031
3014
|
v = String(s);
|
|
3032
3015
|
} else {
|
|
3033
|
-
if (!
|
|
3016
|
+
if (!ls.test(v = String(s))) return n(w, v, d);
|
|
3034
3017
|
w.s = v.charCodeAt(0) == 45 ? (v = v.slice(1), -1) : 1;
|
|
3035
3018
|
}
|
|
3036
3019
|
(b = v.indexOf(".")) > -1 && (v = v.replace(".", "")), (p = v.search(/e/i)) > 0 ? (b < 0 && (b = p), b += +v.slice(p + 1), v = v.substring(0, p)) : b < 0 && (b = v.length);
|
|
@@ -3040,7 +3023,7 @@ function bn(i) {
|
|
|
3040
3023
|
if (v = String(s), d = typeof s == "number") {
|
|
3041
3024
|
if (s * 0 != 0) return n(w, v, d, l);
|
|
3042
3025
|
if (w.s = 1 / s < 0 ? (v = v.slice(1), -1) : 1, S.DEBUG && v.replace(/^0\.0*|\./, "").length > 15)
|
|
3043
|
-
throw Error(
|
|
3026
|
+
throw Error(Ui + s);
|
|
3044
3027
|
} else
|
|
3045
3028
|
w.s = v.charCodeAt(0) === 45 ? (v = v.slice(1), -1) : 1;
|
|
3046
3029
|
for (f = R.slice(0, l), b = p = 0, y = v.length; p < y; p++)
|
|
@@ -3061,8 +3044,8 @@ function bn(i) {
|
|
|
3061
3044
|
for (p = 0; v.charCodeAt(p) === 48; p++) ;
|
|
3062
3045
|
for (y = v.length; v.charCodeAt(--y) === 48; ) ;
|
|
3063
3046
|
if (v = v.slice(p, ++y)) {
|
|
3064
|
-
if (y -= p, d && S.DEBUG && y > 15 && (s >
|
|
3065
|
-
throw Error(
|
|
3047
|
+
if (y -= p, d && S.DEBUG && y > 15 && (s > Fi || s !== Te(s)))
|
|
3048
|
+
throw Error(Ui + w.s * s);
|
|
3066
3049
|
if ((b = b - p - 1) > _)
|
|
3067
3050
|
w.c = w.e = null;
|
|
3068
3051
|
else if (b < L)
|
|
@@ -3080,38 +3063,38 @@ function bn(i) {
|
|
|
3080
3063
|
} else
|
|
3081
3064
|
w.c = [w.e = 0];
|
|
3082
3065
|
}
|
|
3083
|
-
S.clone =
|
|
3066
|
+
S.clone = mn, S.ROUND_UP = 0, S.ROUND_DOWN = 1, S.ROUND_CEIL = 2, S.ROUND_FLOOR = 3, S.ROUND_HALF_UP = 4, S.ROUND_HALF_DOWN = 5, S.ROUND_HALF_EVEN = 6, S.ROUND_HALF_CEIL = 7, S.ROUND_HALF_FLOOR = 8, S.EUCLID = 9, S.config = S.set = function(s) {
|
|
3084
3067
|
var l, f;
|
|
3085
3068
|
if (s != null)
|
|
3086
3069
|
if (typeof s == "object") {
|
|
3087
|
-
if (s.hasOwnProperty(l = "DECIMAL_PLACES") && (f = s[l], re(f, 0,
|
|
3070
|
+
if (s.hasOwnProperty(l = "DECIMAL_PLACES") && (f = s[l], re(f, 0, we, l), a = f), s.hasOwnProperty(l = "ROUNDING_MODE") && (f = s[l], re(f, 0, 8, l), o = f), s.hasOwnProperty(l = "EXPONENTIAL_AT") && (f = s[l], f && f.pop ? (re(f[0], -1e9, 0, l), re(f[1], 0, we, l), g = f[0], c = f[1]) : (re(f, -1e9, we, l), g = -(c = f < 0 ? -f : f))), s.hasOwnProperty(l = "RANGE"))
|
|
3088
3071
|
if (f = s[l], f && f.pop)
|
|
3089
|
-
re(f[0], -1e9, -1, l), re(f[1], 1,
|
|
3090
|
-
else if (re(f, -1e9,
|
|
3072
|
+
re(f[0], -1e9, -1, l), re(f[1], 1, we, l), L = f[0], _ = f[1];
|
|
3073
|
+
else if (re(f, -1e9, we, l), f)
|
|
3091
3074
|
L = -(_ = f < 0 ? -f : f);
|
|
3092
3075
|
else
|
|
3093
|
-
throw Error(
|
|
3076
|
+
throw Error(me + l + " cannot be zero: " + f);
|
|
3094
3077
|
if (s.hasOwnProperty(l = "CRYPTO"))
|
|
3095
3078
|
if (f = s[l], f === !!f)
|
|
3096
3079
|
if (f)
|
|
3097
3080
|
if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes))
|
|
3098
3081
|
C = f;
|
|
3099
3082
|
else
|
|
3100
|
-
throw C = !f, Error(
|
|
3083
|
+
throw C = !f, Error(me + "crypto unavailable");
|
|
3101
3084
|
else
|
|
3102
3085
|
C = f;
|
|
3103
3086
|
else
|
|
3104
|
-
throw Error(
|
|
3105
|
-
if (s.hasOwnProperty(l = "MODULO_MODE") && (f = s[l], re(f, 0, 9, l), M = f), s.hasOwnProperty(l = "POW_PRECISION") && (f = s[l], re(f, 0,
|
|
3087
|
+
throw Error(me + l + " not true or false: " + f);
|
|
3088
|
+
if (s.hasOwnProperty(l = "MODULO_MODE") && (f = s[l], re(f, 0, 9, l), M = f), s.hasOwnProperty(l = "POW_PRECISION") && (f = s[l], re(f, 0, we, l), N = f), s.hasOwnProperty(l = "FORMAT"))
|
|
3106
3089
|
if (f = s[l], typeof f == "object") P = f;
|
|
3107
|
-
else throw Error(
|
|
3090
|
+
else throw Error(me + l + " not an object: " + f);
|
|
3108
3091
|
if (s.hasOwnProperty(l = "ALPHABET"))
|
|
3109
3092
|
if (f = s[l], typeof f == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(f))
|
|
3110
3093
|
k = f.slice(0, 10) == "0123456789", R = f;
|
|
3111
3094
|
else
|
|
3112
|
-
throw Error(
|
|
3095
|
+
throw Error(me + l + " invalid: " + f);
|
|
3113
3096
|
} else
|
|
3114
|
-
throw Error(
|
|
3097
|
+
throw Error(me + "Object expected: " + s);
|
|
3115
3098
|
return {
|
|
3116
3099
|
DECIMAL_PLACES: a,
|
|
3117
3100
|
ROUNDING_MODE: o,
|
|
@@ -3128,20 +3111,20 @@ function bn(i) {
|
|
|
3128
3111
|
if (!S.DEBUG) return !0;
|
|
3129
3112
|
var l, f, m = s.c, h = s.e, b = s.s;
|
|
3130
3113
|
e: if ({}.toString.call(m) == "[object Array]") {
|
|
3131
|
-
if ((b === 1 || b === -1) && h >= -1e9 && h <=
|
|
3114
|
+
if ((b === 1 || b === -1) && h >= -1e9 && h <= we && h === Te(h)) {
|
|
3132
3115
|
if (m[0] === 0) {
|
|
3133
3116
|
if (h === 0 && m.length === 1) return !0;
|
|
3134
3117
|
break e;
|
|
3135
3118
|
}
|
|
3136
3119
|
if (l = (h + 1) % z, l < 1 && (l += z), String(m[0]).length == l) {
|
|
3137
3120
|
for (l = 0; l < m.length; l++)
|
|
3138
|
-
if (f = m[l], f < 0 || f >=
|
|
3121
|
+
if (f = m[l], f < 0 || f >= Ne || f !== Te(f)) break e;
|
|
3139
3122
|
if (f !== 0) return !0;
|
|
3140
3123
|
}
|
|
3141
3124
|
}
|
|
3142
3125
|
} else if (m === null && h === null && (b === null || b === 1 || b === -1))
|
|
3143
3126
|
return !0;
|
|
3144
|
-
throw Error(
|
|
3127
|
+
throw Error(me + "Invalid BigNumber: " + s);
|
|
3145
3128
|
}, S.maximum = S.max = function() {
|
|
3146
3129
|
return D(arguments, -1);
|
|
3147
3130
|
}, S.minimum = S.min = function() {
|
|
@@ -3154,7 +3137,7 @@ function bn(i) {
|
|
|
3154
3137
|
};
|
|
3155
3138
|
return function(f) {
|
|
3156
3139
|
var m, h, b, p, d, y = 0, v = [], w = new S(u);
|
|
3157
|
-
if (f == null ? f = a : re(f, 0,
|
|
3140
|
+
if (f == null ? f = a : re(f, 0, we), p = ti(f / z), C)
|
|
3158
3141
|
if (crypto.getRandomValues) {
|
|
3159
3142
|
for (m = crypto.getRandomValues(new Uint32Array(p *= 2)); y < p; )
|
|
3160
3143
|
d = m[y] * 131072 + (m[y + 1] >>> 11), d >= 9e15 ? (h = crypto.getRandomValues(new Uint32Array(2)), m[y] = h[0], m[y + 1] = h[1]) : (v.push(d % 1e14), y += 2);
|
|
@@ -3164,11 +3147,11 @@ function bn(i) {
|
|
|
3164
3147
|
d = (m[y] & 31) * 281474976710656 + m[y + 1] * 1099511627776 + m[y + 2] * 4294967296 + m[y + 3] * 16777216 + (m[y + 4] << 16) + (m[y + 5] << 8) + m[y + 6], d >= 9e15 ? crypto.randomBytes(7).copy(m, y) : (v.push(d % 1e14), y += 7);
|
|
3165
3148
|
y = p / 7;
|
|
3166
3149
|
} else
|
|
3167
|
-
throw C = !1, Error(
|
|
3150
|
+
throw C = !1, Error(me + "crypto unavailable");
|
|
3168
3151
|
if (!C)
|
|
3169
3152
|
for (; y < p; )
|
|
3170
3153
|
d = l(), d < 9e15 && (v[y++] = d % 1e14);
|
|
3171
|
-
for (p = v[--y], f %= z, p && f && (d =
|
|
3154
|
+
for (p = v[--y], f %= z, p && f && (d = ii[z - f], v[y] = Te(p / d) * d); v[y] === 0; v.pop(), y--) ;
|
|
3172
3155
|
if (y < 0)
|
|
3173
3156
|
v = [b = 0];
|
|
3174
3157
|
else {
|
|
@@ -3192,31 +3175,31 @@ function bn(i) {
|
|
|
3192
3175
|
return d.reverse();
|
|
3193
3176
|
}
|
|
3194
3177
|
return function(f, m, h, b, p) {
|
|
3195
|
-
var d, y, v, w, T, A, B, q,
|
|
3196
|
-
for (
|
|
3197
|
-
|
|
3178
|
+
var d, y, v, w, T, A, B, q, K = f.indexOf("."), ie = a, F = o;
|
|
3179
|
+
for (K >= 0 && (w = N, N = 0, f = f.replace(".", ""), q = new S(m), A = q.pow(f.length - K), N = w, q.c = l(
|
|
3180
|
+
Fe(xe(A.c), A.e, "0"),
|
|
3198
3181
|
10,
|
|
3199
3182
|
h,
|
|
3200
3183
|
s
|
|
3201
3184
|
), q.e = q.c.length), B = l(f, m, h, p ? (d = R, s) : (d = s, R)), v = w = B.length; B[--w] == 0; B.pop()) ;
|
|
3202
3185
|
if (!B[0]) return d.charAt(0);
|
|
3203
|
-
if (
|
|
3204
|
-
f = T ?
|
|
3186
|
+
if (K < 0 ? --v : (A.c = B, A.e = v, A.s = b, A = e(A, q, ie, F, h), B = A.c, T = A.r, v = A.e), y = v + ie + 1, K = B[y], w = h / 2, T = T || y < 0 || B[y + 1] != null, T = F < 4 ? (K != null || T) && (F == 0 || F == (A.s < 0 ? 3 : 2)) : K > w || K == w && (F == 4 || T || F == 6 && B[y - 1] & 1 || F == (A.s < 0 ? 8 : 7)), y < 1 || !B[0])
|
|
3187
|
+
f = T ? Fe(d.charAt(1), -ie, d.charAt(0)) : d.charAt(0);
|
|
3205
3188
|
else {
|
|
3206
3189
|
if (B.length = y, T)
|
|
3207
3190
|
for (--h; ++B[--y] > h; )
|
|
3208
3191
|
B[y] = 0, y || (++v, B = [1].concat(B));
|
|
3209
3192
|
for (w = B.length; !B[--w]; ) ;
|
|
3210
|
-
for (
|
|
3211
|
-
f =
|
|
3193
|
+
for (K = 0, f = ""; K <= w; f += d.charAt(B[K++])) ;
|
|
3194
|
+
f = Fe(f, v, d.charAt(0));
|
|
3212
3195
|
}
|
|
3213
3196
|
return f;
|
|
3214
3197
|
};
|
|
3215
3198
|
}(), e = /* @__PURE__ */ function() {
|
|
3216
3199
|
function s(m, h, b) {
|
|
3217
|
-
var p, d, y, v, w = 0, T = m.length, A = h %
|
|
3200
|
+
var p, d, y, v, w = 0, T = m.length, A = h % Ye, B = h / Ye | 0;
|
|
3218
3201
|
for (m = m.slice(); T--; )
|
|
3219
|
-
y = m[T] %
|
|
3202
|
+
y = m[T] % Ye, v = m[T] / Ye | 0, p = B * y + v * A, d = A * y + p % Ye * Ye + w, w = (d / b | 0) + (p / Ye | 0) + B * v, m[T] = d % b;
|
|
3220
3203
|
return w && (m = [w].concat(m)), m;
|
|
3221
3204
|
}
|
|
3222
3205
|
function l(m, h, b, p) {
|
|
@@ -3237,53 +3220,53 @@ function bn(i) {
|
|
|
3237
3220
|
for (; !m[0] && m.length > 1; m.splice(0, 1)) ;
|
|
3238
3221
|
}
|
|
3239
3222
|
return function(m, h, b, p, d) {
|
|
3240
|
-
var y, v, w, T, A, B, q,
|
|
3241
|
-
if (!
|
|
3223
|
+
var y, v, w, T, A, B, q, K, ie, F, j, ue, ze, tt, it, pe, Pe, he = m.s == h.s ? 1 : -1, ae = m.c, J = h.c;
|
|
3224
|
+
if (!ae || !ae[0] || !J || !J[0])
|
|
3242
3225
|
return new S(
|
|
3243
3226
|
// Return NaN if either NaN, or both Infinity or 0.
|
|
3244
|
-
!m.s || !h.s || (
|
|
3227
|
+
!m.s || !h.s || (ae ? J && ae[0] == J[0] : !J) ? NaN : (
|
|
3245
3228
|
// Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
|
|
3246
|
-
|
|
3229
|
+
ae && ae[0] == 0 || !J ? he * 0 : he / 0
|
|
3247
3230
|
)
|
|
3248
3231
|
);
|
|
3249
|
-
for (
|
|
3250
|
-
if (
|
|
3251
|
-
|
|
3232
|
+
for (K = new S(he), ie = K.c = [], v = m.e - h.e, he = b + v + 1, d || (d = Ne, v = Me(m.e / z) - Me(h.e / z), he = he / z | 0), w = 0; J[w] == (ae[w] || 0); w++) ;
|
|
3233
|
+
if (J[w] > (ae[w] || 0) && v--, he < 0)
|
|
3234
|
+
ie.push(1), T = !0;
|
|
3252
3235
|
else {
|
|
3253
|
-
for (
|
|
3254
|
-
|
|
3236
|
+
for (tt = ae.length, pe = J.length, w = 0, he += 2, A = Te(d / (J[0] + 1)), A > 1 && (J = s(J, A, d), ae = s(ae, A, d), pe = J.length, tt = ae.length), ze = pe, F = ae.slice(0, pe), j = F.length; j < pe; F[j++] = 0) ;
|
|
3237
|
+
Pe = J.slice(), Pe = [0].concat(Pe), it = J[0], J[1] >= d / 2 && it++;
|
|
3255
3238
|
do {
|
|
3256
|
-
if (A = 0, y = l(
|
|
3257
|
-
if (
|
|
3258
|
-
for (A >= d && (A = d - 1), B = s(
|
|
3259
|
-
A--, f(B, pe < q ?
|
|
3239
|
+
if (A = 0, y = l(J, F, pe, j), y < 0) {
|
|
3240
|
+
if (ue = F[0], pe != j && (ue = ue * d + (F[1] || 0)), A = Te(ue / it), A > 1)
|
|
3241
|
+
for (A >= d && (A = d - 1), B = s(J, A, d), q = B.length, j = F.length; l(B, F, q, j) == 1; )
|
|
3242
|
+
A--, f(B, pe < q ? Pe : J, q, d), q = B.length, y = 1;
|
|
3260
3243
|
else
|
|
3261
|
-
A == 0 && (y = A = 1), B =
|
|
3244
|
+
A == 0 && (y = A = 1), B = J.slice(), q = B.length;
|
|
3262
3245
|
if (q < j && (B = [0].concat(B)), f(F, B, j, d), j = F.length, y == -1)
|
|
3263
|
-
for (; l(
|
|
3264
|
-
A++, f(F, pe < j ?
|
|
3246
|
+
for (; l(J, F, pe, j) < 1; )
|
|
3247
|
+
A++, f(F, pe < j ? Pe : J, j, d), j = F.length;
|
|
3265
3248
|
} else y === 0 && (A++, F = [0]);
|
|
3266
|
-
|
|
3267
|
-
} while ((
|
|
3268
|
-
T = F[0] != null,
|
|
3249
|
+
ie[w++] = A, F[0] ? F[j++] = ae[ze] || 0 : (F = [ae[ze]], j = 1);
|
|
3250
|
+
} while ((ze++ < tt || F[0] != null) && he--);
|
|
3251
|
+
T = F[0] != null, ie[0] || ie.splice(0, 1);
|
|
3269
3252
|
}
|
|
3270
|
-
if (d ==
|
|
3271
|
-
for (w = 1, he =
|
|
3272
|
-
V(
|
|
3253
|
+
if (d == Ne) {
|
|
3254
|
+
for (w = 1, he = ie[0]; he >= 10; he /= 10, w++) ;
|
|
3255
|
+
V(K, b + (K.e = w + v * z - 1) + 1, p, T);
|
|
3273
3256
|
} else
|
|
3274
|
-
|
|
3275
|
-
return
|
|
3257
|
+
K.e = v, K.r = +T;
|
|
3258
|
+
return K;
|
|
3276
3259
|
};
|
|
3277
3260
|
}();
|
|
3278
3261
|
function O(s, l, f, m) {
|
|
3279
3262
|
var h, b, p, d, y;
|
|
3280
3263
|
if (f == null ? f = o : re(f, 0, 8), !s.c) return s.toString();
|
|
3281
3264
|
if (h = s.c[0], p = s.e, l == null)
|
|
3282
|
-
y = xe(s.c), y = m == 1 || m == 2 && (p <= g || p >= c) ?
|
|
3265
|
+
y = xe(s.c), y = m == 1 || m == 2 && (p <= g || p >= c) ? Pt(y, p) : Fe(y, p, "0");
|
|
3283
3266
|
else if (s = V(new S(s), l, f), b = s.e, y = xe(s.c), d = y.length, m == 1 || m == 2 && (l <= b || b <= g)) {
|
|
3284
3267
|
for (; d < l; y += "0", d++) ;
|
|
3285
|
-
y =
|
|
3286
|
-
} else if (l -= p, y =
|
|
3268
|
+
y = Pt(y, b);
|
|
3269
|
+
} else if (l -= p, y = Fe(y, b, "0"), b + 1 > d) {
|
|
3287
3270
|
if (--l > 0) for (y += "."; l--; y += "0") ;
|
|
3288
3271
|
} else if (l += b - d, l > 0)
|
|
3289
3272
|
for (b + 1 == d && (y += "."); l--; y += "0") ;
|
|
@@ -3291,7 +3274,7 @@ function bn(i) {
|
|
|
3291
3274
|
}
|
|
3292
3275
|
function D(s, l) {
|
|
3293
3276
|
for (var f, m, h = 1, b = new S(s[0]); h < s.length; h++)
|
|
3294
|
-
m = new S(s[h]), (!m.s || (f =
|
|
3277
|
+
m = new S(s[h]), (!m.s || (f = rt(b, m)) === l || f === 0 && b.s === l) && (b = m);
|
|
3295
3278
|
return b;
|
|
3296
3279
|
}
|
|
3297
3280
|
function H(s, l, f) {
|
|
@@ -3311,20 +3294,20 @@ function bn(i) {
|
|
|
3311
3294
|
}), y && (v = y, w = w.replace(l, "$1").replace(f, "0.$1")), p != w))
|
|
3312
3295
|
return new S(w, v);
|
|
3313
3296
|
if (S.DEBUG)
|
|
3314
|
-
throw Error(
|
|
3297
|
+
throw Error(me + "Not a" + (y ? " base " + y : "") + " number: " + p);
|
|
3315
3298
|
b.s = null;
|
|
3316
3299
|
}
|
|
3317
3300
|
b.c = b.e = null;
|
|
3318
3301
|
};
|
|
3319
3302
|
}();
|
|
3320
3303
|
function V(s, l, f, m) {
|
|
3321
|
-
var h, b, p, d, y, v, w, T = s.c, A =
|
|
3304
|
+
var h, b, p, d, y, v, w, T = s.c, A = ii;
|
|
3322
3305
|
if (T) {
|
|
3323
3306
|
e: {
|
|
3324
3307
|
for (h = 1, d = T[0]; d >= 10; d /= 10, h++) ;
|
|
3325
3308
|
if (b = l - h, b < 0)
|
|
3326
3309
|
b += z, p = l, y = T[v = 0], w = Te(y / A[h - p - 1] % 10);
|
|
3327
|
-
else if (v =
|
|
3310
|
+
else if (v = ti((b + 1) / z), v >= T.length)
|
|
3328
3311
|
if (m) {
|
|
3329
3312
|
for (; T.length <= v; T.push(0)) ;
|
|
3330
3313
|
y = w = 0, h = 1, b %= z, p = b - z + 1;
|
|
@@ -3345,10 +3328,10 @@ function bn(i) {
|
|
|
3345
3328
|
if (v == 0) {
|
|
3346
3329
|
for (b = 1, p = T[0]; p >= 10; p /= 10, b++) ;
|
|
3347
3330
|
for (p = T[0] += d, d = 1; p >= 10; p /= 10, d++) ;
|
|
3348
|
-
b != d && (s.e++, T[0] ==
|
|
3331
|
+
b != d && (s.e++, T[0] == Ne && (T[0] = 1));
|
|
3349
3332
|
break;
|
|
3350
3333
|
} else {
|
|
3351
|
-
if (T[v] += d, T[v] !=
|
|
3334
|
+
if (T[v] += d, T[v] != Ne) break;
|
|
3352
3335
|
T[v--] = 0, d = 1;
|
|
3353
3336
|
}
|
|
3354
3337
|
for (b = T.length; T[--b] === 0; T.pop()) ;
|
|
@@ -3359,17 +3342,17 @@ function bn(i) {
|
|
|
3359
3342
|
}
|
|
3360
3343
|
function G(s) {
|
|
3361
3344
|
var l, f = s.e;
|
|
3362
|
-
return f === null ? s.toString() : (l = xe(s.c), l = f <= g || f >= c ?
|
|
3345
|
+
return f === null ? s.toString() : (l = xe(s.c), l = f <= g || f >= c ? Pt(l, f) : Fe(l, f, "0"), s.s < 0 ? "-" + l : l);
|
|
3363
3346
|
}
|
|
3364
3347
|
return r.absoluteValue = r.abs = function() {
|
|
3365
3348
|
var s = new S(this);
|
|
3366
3349
|
return s.s < 0 && (s.s = 1), s;
|
|
3367
3350
|
}, r.comparedTo = function(s, l) {
|
|
3368
|
-
return
|
|
3351
|
+
return rt(this, new S(s, l));
|
|
3369
3352
|
}, r.decimalPlaces = r.dp = function(s, l) {
|
|
3370
3353
|
var f, m, h, b = this;
|
|
3371
3354
|
if (s != null)
|
|
3372
|
-
return re(s, 0,
|
|
3355
|
+
return re(s, 0, we), l == null ? l = o : re(l, 0, 8), V(new S(b), s + b.e + 1, l);
|
|
3373
3356
|
if (!(f = b.c)) return null;
|
|
3374
3357
|
if (m = ((h = f.length - 1) - Me(this.e / z)) * z, h = f[h]) for (; h % 10 == 0; h /= 10, m--) ;
|
|
3375
3358
|
return m < 0 && (m = 0), m;
|
|
@@ -3380,18 +3363,18 @@ function bn(i) {
|
|
|
3380
3363
|
}, r.exponentiatedBy = r.pow = function(s, l) {
|
|
3381
3364
|
var f, m, h, b, p, d, y, v, w, T = this;
|
|
3382
3365
|
if (s = new S(s), s.c && !s.isInteger())
|
|
3383
|
-
throw Error(
|
|
3366
|
+
throw Error(me + "Exponent not an integer: " + G(s));
|
|
3384
3367
|
if (l != null && (l = new S(l)), d = s.e > 14, !T.c || !T.c[0] || T.c[0] == 1 && !T.e && T.c.length == 1 || !s.c || !s.c[0])
|
|
3385
|
-
return w = new S(Math.pow(+G(T), d ? s.s * (2 -
|
|
3368
|
+
return w = new S(Math.pow(+G(T), d ? s.s * (2 - Rt(s)) : +G(s))), l ? w.mod(l) : w;
|
|
3386
3369
|
if (y = s.s < 0, l) {
|
|
3387
3370
|
if (l.c ? !l.c[0] : !l.s) return new S(NaN);
|
|
3388
3371
|
m = !y && T.isInteger() && l.isInteger(), m && (T = T.mod(l));
|
|
3389
3372
|
} else {
|
|
3390
3373
|
if (s.e > 9 && (T.e > 0 || T.e < -1 || (T.e == 0 ? T.c[0] > 1 || d && T.c[1] >= 24e7 : T.c[0] < 8e13 || d && T.c[0] <= 9999975e7)))
|
|
3391
|
-
return b = T.s < 0 &&
|
|
3392
|
-
N && (b =
|
|
3374
|
+
return b = T.s < 0 && Rt(s) ? -0 : 0, T.e > -1 && (b = 1 / b), new S(y ? 1 / b : b);
|
|
3375
|
+
N && (b = ti(N / z + 2));
|
|
3393
3376
|
}
|
|
3394
|
-
for (d ? (f = new S(0.5), y && (s.s = 1), v =
|
|
3377
|
+
for (d ? (f = new S(0.5), y && (s.s = 1), v = Rt(s)) : (h = Math.abs(+G(s)), v = h % 2), w = new S(u); ; ) {
|
|
3395
3378
|
if (v) {
|
|
3396
3379
|
if (w = w.times(T), !w.c) break;
|
|
3397
3380
|
b ? w.c.length > b && (w.c.length = b) : m && (w = w.mod(l));
|
|
@@ -3400,7 +3383,7 @@ function bn(i) {
|
|
|
3400
3383
|
if (h = Te(h / 2), h === 0) break;
|
|
3401
3384
|
v = h % 2;
|
|
3402
3385
|
} else if (s = s.times(f), V(s, s.e + 1, 1), s.e > 14)
|
|
3403
|
-
v =
|
|
3386
|
+
v = Rt(s);
|
|
3404
3387
|
else {
|
|
3405
3388
|
if (h = +G(s), h === 0) break;
|
|
3406
3389
|
v = h % 2;
|
|
@@ -3412,19 +3395,19 @@ function bn(i) {
|
|
|
3412
3395
|
var l = new S(this);
|
|
3413
3396
|
return s == null ? s = o : re(s, 0, 8), V(l, l.e + 1, s);
|
|
3414
3397
|
}, r.isEqualTo = r.eq = function(s, l) {
|
|
3415
|
-
return
|
|
3398
|
+
return rt(this, new S(s, l)) === 0;
|
|
3416
3399
|
}, r.isFinite = function() {
|
|
3417
3400
|
return !!this.c;
|
|
3418
3401
|
}, r.isGreaterThan = r.gt = function(s, l) {
|
|
3419
|
-
return
|
|
3402
|
+
return rt(this, new S(s, l)) > 0;
|
|
3420
3403
|
}, r.isGreaterThanOrEqualTo = r.gte = function(s, l) {
|
|
3421
|
-
return (l =
|
|
3404
|
+
return (l = rt(this, new S(s, l))) === 1 || l === 0;
|
|
3422
3405
|
}, r.isInteger = function() {
|
|
3423
3406
|
return !!this.c && Me(this.e / z) > this.c.length - 2;
|
|
3424
3407
|
}, r.isLessThan = r.lt = function(s, l) {
|
|
3425
|
-
return
|
|
3408
|
+
return rt(this, new S(s, l)) < 0;
|
|
3426
3409
|
}, r.isLessThanOrEqualTo = r.lte = function(s, l) {
|
|
3427
|
-
return (l =
|
|
3410
|
+
return (l = rt(this, new S(s, l))) === -1 || l === 0;
|
|
3428
3411
|
}, r.isNaN = function() {
|
|
3429
3412
|
return !this.s;
|
|
3430
3413
|
}, r.isNegative = function() {
|
|
@@ -3457,10 +3440,10 @@ function bn(i) {
|
|
|
3457
3440
|
break;
|
|
3458
3441
|
}
|
|
3459
3442
|
if (b && (h = w, w = T, T = h, s.s = -s.s), l = (m = T.length) - (f = w.length), l > 0) for (; l--; w[f++] = 0) ;
|
|
3460
|
-
for (l =
|
|
3443
|
+
for (l = Ne - 1; m > d; ) {
|
|
3461
3444
|
if (w[--m] < T[m]) {
|
|
3462
3445
|
for (f = m; f && !w[--f]; w[f] = l) ;
|
|
3463
|
-
--w[f], w[m] +=
|
|
3446
|
+
--w[f], w[m] += Ne;
|
|
3464
3447
|
}
|
|
3465
3448
|
w[m] -= T[m];
|
|
3466
3449
|
}
|
|
@@ -3470,13 +3453,13 @@ function bn(i) {
|
|
|
3470
3453
|
var f, m, h = this;
|
|
3471
3454
|
return s = new S(s, l), !h.c || !s.s || s.c && !s.c[0] ? new S(NaN) : !s.c || h.c && !h.c[0] ? new S(h) : (M == 9 ? (m = s.s, s.s = 1, f = e(h, s, 0, 3), s.s = m, f.s *= m) : f = e(h, s, 0, M), s = h.minus(f.times(s)), !s.c[0] && M == 1 && (s.s = h.s), s);
|
|
3472
3455
|
}, r.multipliedBy = r.times = function(s, l) {
|
|
3473
|
-
var f, m, h, b, p, d, y, v, w, T, A, B, q,
|
|
3474
|
-
if (!j || !
|
|
3475
|
-
return !F.s || !s.s || j && !j[0] && !
|
|
3476
|
-
for (m = Me(F.e / z) + Me(s.e / z), s.s *= F.s, y = j.length, T =
|
|
3477
|
-
for (
|
|
3478
|
-
for (f = 0, A =
|
|
3479
|
-
v = j[--p] %
|
|
3456
|
+
var f, m, h, b, p, d, y, v, w, T, A, B, q, K, ie, F = this, j = F.c, ue = (s = new S(s, l)).c;
|
|
3457
|
+
if (!j || !ue || !j[0] || !ue[0])
|
|
3458
|
+
return !F.s || !s.s || j && !j[0] && !ue || ue && !ue[0] && !j ? s.c = s.e = s.s = null : (s.s *= F.s, !j || !ue ? s.c = s.e = null : (s.c = [0], s.e = 0)), s;
|
|
3459
|
+
for (m = Me(F.e / z) + Me(s.e / z), s.s *= F.s, y = j.length, T = ue.length, y < T && (q = j, j = ue, ue = q, h = y, y = T, T = h), h = y + T, q = []; h--; q.push(0)) ;
|
|
3460
|
+
for (K = Ne, ie = Ye, h = T; --h >= 0; ) {
|
|
3461
|
+
for (f = 0, A = ue[h] % ie, B = ue[h] / ie | 0, p = y, b = h + p; b > h; )
|
|
3462
|
+
v = j[--p] % ie, w = j[p] / ie | 0, d = B * v + w * A, v = A * v + d % ie * ie + q[b] + f, f = (v / K | 0) + (d / ie | 0) + B * w, q[b--] = v % K;
|
|
3480
3463
|
q[b] = f;
|
|
3481
3464
|
}
|
|
3482
3465
|
return f ? ++m : q.splice(0, 1), H(s, q, m);
|
|
@@ -3498,12 +3481,12 @@ function bn(i) {
|
|
|
3498
3481
|
f.reverse();
|
|
3499
3482
|
}
|
|
3500
3483
|
for (h = d.length, l = y.length, h - l < 0 && (f = y, y = d, d = f, l = h), h = 0; l; )
|
|
3501
|
-
h = (d[--l] = d[l] + y[l] + h) /
|
|
3484
|
+
h = (d[--l] = d[l] + y[l] + h) / Ne | 0, d[l] = Ne === d[l] ? 0 : d[l] % Ne;
|
|
3502
3485
|
return h && (d = [h].concat(d), ++p), H(s, d, p);
|
|
3503
3486
|
}, r.precision = r.sd = function(s, l) {
|
|
3504
3487
|
var f, m, h, b = this;
|
|
3505
3488
|
if (s != null && s !== !!s)
|
|
3506
|
-
return re(s, 1,
|
|
3489
|
+
return re(s, 1, we), l == null ? l = o : re(l, 0, 8), V(new S(b), s, l);
|
|
3507
3490
|
if (!(f = b.c)) return null;
|
|
3508
3491
|
if (h = f.length - 1, m = h * z + 1, h = f[h]) {
|
|
3509
3492
|
for (; h % 10 == 0; h /= 10, m--) ;
|
|
@@ -3511,7 +3494,7 @@ function bn(i) {
|
|
|
3511
3494
|
}
|
|
3512
3495
|
return s && b.e + 1 > m && (m = b.e + 1), m;
|
|
3513
3496
|
}, r.shiftedBy = function(s) {
|
|
3514
|
-
return re(s, -9007199254740991,
|
|
3497
|
+
return re(s, -9007199254740991, Fi), this.times("1e" + s);
|
|
3515
3498
|
}, r.squareRoot = r.sqrt = function() {
|
|
3516
3499
|
var s, l, f, m, h, b = this, p = b.c, d = b.s, y = b.e, v = a + 4, w = new S("0.5");
|
|
3517
3500
|
if (d !== 1 || !p || !p[0])
|
|
@@ -3532,15 +3515,15 @@ function bn(i) {
|
|
|
3532
3515
|
}
|
|
3533
3516
|
return V(f, f.e + a + 1, o, s);
|
|
3534
3517
|
}, r.toExponential = function(s, l) {
|
|
3535
|
-
return s != null && (re(s, 0,
|
|
3518
|
+
return s != null && (re(s, 0, we), s++), O(this, s, l, 1);
|
|
3536
3519
|
}, r.toFixed = function(s, l) {
|
|
3537
|
-
return s != null && (re(s, 0,
|
|
3520
|
+
return s != null && (re(s, 0, we), s = s + this.e + 1), O(this, s, l);
|
|
3538
3521
|
}, r.toFormat = function(s, l, f) {
|
|
3539
3522
|
var m, h = this;
|
|
3540
3523
|
if (f == null)
|
|
3541
3524
|
s != null && l && typeof l == "object" ? (f = l, l = null) : s && typeof s == "object" ? (f = s, s = l = null) : f = P;
|
|
3542
3525
|
else if (typeof f != "object")
|
|
3543
|
-
throw Error(
|
|
3526
|
+
throw Error(me + "Argument not an object: " + f);
|
|
3544
3527
|
if (m = h.toFixed(s, l), h.c) {
|
|
3545
3528
|
var b, p = m.split("."), d = +f.groupSize, y = +f.secondaryGroupSize, v = f.groupSeparator || "", w = p[0], T = p[1], A = h.s < 0, B = A ? w.slice(1) : w, q = B.length;
|
|
3546
3529
|
if (y && (b = d, d = y, y = b, q -= b), d > 0 && q > 0) {
|
|
@@ -3556,9 +3539,9 @@ function bn(i) {
|
|
|
3556
3539
|
}, r.toFraction = function(s) {
|
|
3557
3540
|
var l, f, m, h, b, p, d, y, v, w, T, A, B = this, q = B.c;
|
|
3558
3541
|
if (s != null && (d = new S(s), !d.isInteger() && (d.c || d.s !== 1) || d.lt(u)))
|
|
3559
|
-
throw Error(
|
|
3542
|
+
throw Error(me + "Argument " + (d.isInteger() ? "out of range: " : "not an integer: ") + G(d));
|
|
3560
3543
|
if (!q) return new S(B);
|
|
3561
|
-
for (l = new S(u), v = f = new S(u), m = y = new S(u), A = xe(q), b = l.e = A.length - B.e - 1, l.c[0] =
|
|
3544
|
+
for (l = new S(u), v = f = new S(u), m = y = new S(u), A = xe(q), b = l.e = A.length - B.e - 1, l.c[0] = ii[(p = b % z) < 0 ? z + p : p], s = !s || d.comparedTo(l) > 0 ? b > 0 ? l : v : d, p = _, _ = 1 / 0, d = new S(A), y.c[0] = 0; w = e(d, l, 0, 1), h = f.plus(w.times(m)), h.comparedTo(s) != 1; )
|
|
3562
3545
|
f = m, m = h, v = y.plus(w.times(h = v)), y = h, l = d.minus(w.times(h = l)), d = h;
|
|
3563
3546
|
return h = e(s.minus(f), m, 0, 1), y = y.plus(h.times(v)), f = f.plus(h.times(m)), y.s = v.s = B.s, b = b * 2, T = e(v, m, b, o).minus(B).abs().comparedTo(
|
|
3564
3547
|
e(y, f, b, o).minus(B).abs()
|
|
@@ -3566,10 +3549,10 @@ function bn(i) {
|
|
|
3566
3549
|
}, r.toNumber = function() {
|
|
3567
3550
|
return +G(this);
|
|
3568
3551
|
}, r.toPrecision = function(s, l) {
|
|
3569
|
-
return s != null && re(s, 1,
|
|
3552
|
+
return s != null && re(s, 1, we), O(this, s, l, 2);
|
|
3570
3553
|
}, r.toString = function(s) {
|
|
3571
3554
|
var l, f = this, m = f.s, h = f.e;
|
|
3572
|
-
return h === null ? m ? (l = "Infinity", m < 0 && (l = "-" + l)) : l = "NaN" : (s == null ? l = h <= g || h >= c ?
|
|
3555
|
+
return h === null ? m ? (l = "Infinity", m < 0 && (l = "-" + l)) : l = "NaN" : (s == null ? l = h <= g || h >= c ? Pt(xe(f.c), h) : Fe(xe(f.c), h, "0") : s === 10 && k ? (f = V(new S(f), a + h + 1, o), l = Fe(xe(f.c), f.e, "0")) : (re(s, 2, R.length, "Base"), l = t(Fe(xe(f.c), h, "0"), 10, s, m, !0)), m < 0 && f.c[0] && (l = "-" + l)), l;
|
|
3573
3556
|
}, r.valueOf = r.toJSON = function() {
|
|
3574
3557
|
return G(this);
|
|
3575
3558
|
}, r._isBigNumber = !0, r[Symbol.toStringTag] = "BigNumber", r[Symbol.for("nodejs.util.inspect.custom")] = r.valueOf, i != null && S.set(i), S;
|
|
@@ -3586,7 +3569,7 @@ function xe(i) {
|
|
|
3586
3569
|
for (r = u.length; u.charCodeAt(--r) === 48; ) ;
|
|
3587
3570
|
return u.slice(0, r + 1 || 1);
|
|
3588
3571
|
}
|
|
3589
|
-
function
|
|
3572
|
+
function rt(i, e) {
|
|
3590
3573
|
var t, n, r = i.c, u = e.c, a = i.s, o = e.s, g = i.e, c = e.e;
|
|
3591
3574
|
if (!a || !o) return null;
|
|
3592
3575
|
if (t = r && !r[0], n = u && !u[0], t || n) return t ? n ? 0 : -o : a;
|
|
@@ -3598,16 +3581,16 @@ function ot(i, e) {
|
|
|
3598
3581
|
}
|
|
3599
3582
|
function re(i, e, t, n) {
|
|
3600
3583
|
if (i < e || i > t || i !== Te(i))
|
|
3601
|
-
throw Error(
|
|
3584
|
+
throw Error(me + (n || "Argument") + (typeof i == "number" ? i < e || i > t ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(i));
|
|
3602
3585
|
}
|
|
3603
|
-
function
|
|
3586
|
+
function Rt(i) {
|
|
3604
3587
|
var e = i.c.length - 1;
|
|
3605
3588
|
return Me(i.e / z) == e && i.c[e] % 2 != 0;
|
|
3606
3589
|
}
|
|
3607
|
-
function
|
|
3590
|
+
function Pt(i, e) {
|
|
3608
3591
|
return (i.length > 1 ? i.charAt(0) + "." + i.slice(1) : i) + (e < 0 ? "e" : "e+") + e;
|
|
3609
3592
|
}
|
|
3610
|
-
function
|
|
3593
|
+
function Fe(i, e, t) {
|
|
3611
3594
|
var n, r;
|
|
3612
3595
|
if (e < 0) {
|
|
3613
3596
|
for (r = t + "."; ++e; r += t) ;
|
|
@@ -3618,18 +3601,18 @@ function Ue(i, e, t) {
|
|
|
3618
3601
|
} else e < n && (i = i.slice(0, e) + "." + i.slice(e));
|
|
3619
3602
|
return i;
|
|
3620
3603
|
}
|
|
3621
|
-
var De =
|
|
3604
|
+
var De = mn(), us = class {
|
|
3622
3605
|
constructor(i) {
|
|
3623
3606
|
I(this, "key");
|
|
3624
3607
|
I(this, "left", null);
|
|
3625
3608
|
I(this, "right", null);
|
|
3626
3609
|
this.key = i;
|
|
3627
3610
|
}
|
|
3628
|
-
},
|
|
3611
|
+
}, bt = class extends us {
|
|
3629
3612
|
constructor(i) {
|
|
3630
3613
|
super(i);
|
|
3631
3614
|
}
|
|
3632
|
-
},
|
|
3615
|
+
}, as = class {
|
|
3633
3616
|
constructor() {
|
|
3634
3617
|
I(this, "size", 0);
|
|
3635
3618
|
I(this, "modificationCount", 0);
|
|
@@ -3727,13 +3710,13 @@ var De = bn(), hs = class {
|
|
|
3727
3710
|
has: (i) => this.has(i)
|
|
3728
3711
|
};
|
|
3729
3712
|
}
|
|
3730
|
-
},
|
|
3713
|
+
}, Ji, $i, zt = class wt extends as {
|
|
3731
3714
|
constructor(t, n) {
|
|
3732
3715
|
super();
|
|
3733
3716
|
I(this, "root", null);
|
|
3734
3717
|
I(this, "compare");
|
|
3735
3718
|
I(this, "validKey");
|
|
3736
|
-
I(this,
|
|
3719
|
+
I(this, Ji, "[object Set]");
|
|
3737
3720
|
this.compare = t ?? this.defaultCompare(), this.validKey = n ?? ((r) => r != null && r != null);
|
|
3738
3721
|
}
|
|
3739
3722
|
delete(t) {
|
|
@@ -3751,11 +3734,11 @@ var De = bn(), hs = class {
|
|
|
3751
3734
|
}
|
|
3752
3735
|
add(t) {
|
|
3753
3736
|
const n = this.splay(t);
|
|
3754
|
-
return n != 0 && this.addNewRoot(new
|
|
3737
|
+
return n != 0 && this.addNewRoot(new bt(t), n), this;
|
|
3755
3738
|
}
|
|
3756
3739
|
addAndReturn(t) {
|
|
3757
3740
|
const n = this.splay(t);
|
|
3758
|
-
return n != 0 && this.addNewRoot(new
|
|
3741
|
+
return n != 0 && this.addNewRoot(new bt(t), n), this.root.key;
|
|
3759
3742
|
}
|
|
3760
3743
|
addAll(t) {
|
|
3761
3744
|
for (const n of t)
|
|
@@ -3803,7 +3786,7 @@ var De = bn(), hs = class {
|
|
|
3803
3786
|
return r.key;
|
|
3804
3787
|
}
|
|
3805
3788
|
retainAll(t) {
|
|
3806
|
-
const n = new
|
|
3789
|
+
const n = new wt(this.compare, this.validKey), r = this.modificationCount;
|
|
3807
3790
|
for (const u of t) {
|
|
3808
3791
|
if (r != this.modificationCount)
|
|
3809
3792
|
throw "Concurrent modification during iteration.";
|
|
@@ -3815,13 +3798,13 @@ var De = bn(), hs = class {
|
|
|
3815
3798
|
return !this.validKey(t) || this.splay(t) != 0 ? null : this.root.key;
|
|
3816
3799
|
}
|
|
3817
3800
|
intersection(t) {
|
|
3818
|
-
const n = new
|
|
3801
|
+
const n = new wt(this.compare, this.validKey);
|
|
3819
3802
|
for (const r of this)
|
|
3820
3803
|
t.has(r) && n.add(r);
|
|
3821
3804
|
return n;
|
|
3822
3805
|
}
|
|
3823
3806
|
difference(t) {
|
|
3824
|
-
const n = new
|
|
3807
|
+
const n = new wt(this.compare, this.validKey);
|
|
3825
3808
|
for (const r of this)
|
|
3826
3809
|
t.has(r) || n.add(r);
|
|
3827
3810
|
return n;
|
|
@@ -3831,7 +3814,7 @@ var De = bn(), hs = class {
|
|
|
3831
3814
|
return n.addAll(t), n;
|
|
3832
3815
|
}
|
|
3833
3816
|
clone() {
|
|
3834
|
-
const t = new
|
|
3817
|
+
const t = new wt(this.compare, this.validKey);
|
|
3835
3818
|
return t.size = this.size, t.root = this.copyNode(this.root), t;
|
|
3836
3819
|
}
|
|
3837
3820
|
copyNode(t) {
|
|
@@ -3840,23 +3823,23 @@ var De = bn(), hs = class {
|
|
|
3840
3823
|
let o, g;
|
|
3841
3824
|
do {
|
|
3842
3825
|
if (o = u.left, g = u.right, o != null) {
|
|
3843
|
-
const c = new
|
|
3826
|
+
const c = new bt(o.key);
|
|
3844
3827
|
a.left = c, n(o, c);
|
|
3845
3828
|
}
|
|
3846
3829
|
if (g != null) {
|
|
3847
|
-
const c = new
|
|
3830
|
+
const c = new bt(g.key);
|
|
3848
3831
|
a.right = c, u = g, a = c;
|
|
3849
3832
|
}
|
|
3850
3833
|
} while (g != null);
|
|
3851
3834
|
}
|
|
3852
|
-
const r = new
|
|
3835
|
+
const r = new bt(t.key);
|
|
3853
3836
|
return n(t, r), r;
|
|
3854
3837
|
}
|
|
3855
3838
|
toSet() {
|
|
3856
3839
|
return this.clone();
|
|
3857
3840
|
}
|
|
3858
3841
|
entries() {
|
|
3859
|
-
return new
|
|
3842
|
+
return new cs(this.wrap());
|
|
3860
3843
|
}
|
|
3861
3844
|
keys() {
|
|
3862
3845
|
return this[Symbol.iterator]();
|
|
@@ -3864,10 +3847,10 @@ var De = bn(), hs = class {
|
|
|
3864
3847
|
values() {
|
|
3865
3848
|
return this[Symbol.iterator]();
|
|
3866
3849
|
}
|
|
3867
|
-
[(
|
|
3868
|
-
return new
|
|
3850
|
+
[($i = Symbol.iterator, Ji = Symbol.toStringTag, $i)]() {
|
|
3851
|
+
return new fs(this.wrap());
|
|
3869
3852
|
}
|
|
3870
|
-
},
|
|
3853
|
+
}, pn = class {
|
|
3871
3854
|
constructor(i) {
|
|
3872
3855
|
I(this, "tree");
|
|
3873
3856
|
I(this, "path", new Array());
|
|
@@ -3916,65 +3899,65 @@ var De = bn(), hs = class {
|
|
|
3916
3899
|
i = this.path.pop();
|
|
3917
3900
|
return this.path.length > 0;
|
|
3918
3901
|
}
|
|
3919
|
-
},
|
|
3902
|
+
}, fs = class extends pn {
|
|
3920
3903
|
getValue(i) {
|
|
3921
3904
|
return i.key;
|
|
3922
3905
|
}
|
|
3923
|
-
},
|
|
3906
|
+
}, cs = class extends pn {
|
|
3924
3907
|
getValue(i) {
|
|
3925
3908
|
return [i.key, i.key];
|
|
3926
3909
|
}
|
|
3927
|
-
},
|
|
3928
|
-
const e = i ? (t, n) => n.minus(t).abs().isLessThanOrEqualTo(i) :
|
|
3910
|
+
}, yn = (i) => () => i, ui = (i) => {
|
|
3911
|
+
const e = i ? (t, n) => n.minus(t).abs().isLessThanOrEqualTo(i) : yn(!1);
|
|
3929
3912
|
return (t, n) => e(t, n) ? 0 : t.comparedTo(n);
|
|
3930
3913
|
};
|
|
3931
|
-
function
|
|
3914
|
+
function hs(i) {
|
|
3932
3915
|
const e = i ? (t, n, r, u, a) => t.exponentiatedBy(2).isLessThanOrEqualTo(
|
|
3933
3916
|
u.minus(n).exponentiatedBy(2).plus(a.minus(r).exponentiatedBy(2)).times(i)
|
|
3934
|
-
) :
|
|
3917
|
+
) : yn(!1);
|
|
3935
3918
|
return (t, n, r) => {
|
|
3936
3919
|
const u = t.x, a = t.y, o = r.x, g = r.y, c = a.minus(g).times(n.x.minus(o)).minus(u.minus(o).times(n.y.minus(g)));
|
|
3937
3920
|
return e(c, u, a, o, g) ? 0 : c.comparedTo(0);
|
|
3938
3921
|
};
|
|
3939
3922
|
}
|
|
3940
|
-
var
|
|
3923
|
+
var ds = (i) => i, gs = (i) => {
|
|
3941
3924
|
if (i) {
|
|
3942
|
-
const e = new
|
|
3925
|
+
const e = new zt(ui(i)), t = new zt(ui(i)), n = (u, a) => a.addAndReturn(u), r = (u) => ({
|
|
3943
3926
|
x: n(u.x, e),
|
|
3944
3927
|
y: n(u.y, t)
|
|
3945
3928
|
});
|
|
3946
3929
|
return r({ x: new De(0), y: new De(0) }), r;
|
|
3947
3930
|
}
|
|
3948
|
-
return
|
|
3949
|
-
},
|
|
3931
|
+
return ds;
|
|
3932
|
+
}, ai = (i) => ({
|
|
3950
3933
|
set: (e) => {
|
|
3951
|
-
|
|
3934
|
+
je = ai(e);
|
|
3952
3935
|
},
|
|
3953
|
-
reset: () =>
|
|
3954
|
-
compare:
|
|
3955
|
-
snap:
|
|
3956
|
-
orient:
|
|
3957
|
-
}),
|
|
3936
|
+
reset: () => ai(i),
|
|
3937
|
+
compare: ui(i),
|
|
3938
|
+
snap: gs(i),
|
|
3939
|
+
orient: hs(i)
|
|
3940
|
+
}), je = ai(), vt = (i, e) => i.ll.x.isLessThanOrEqualTo(e.x) && e.x.isLessThanOrEqualTo(i.ur.x) && i.ll.y.isLessThanOrEqualTo(e.y) && e.y.isLessThanOrEqualTo(i.ur.y), fi = (i, e) => {
|
|
3958
3941
|
if (e.ur.x.isLessThan(i.ll.x) || i.ur.x.isLessThan(e.ll.x) || e.ur.y.isLessThan(i.ll.y) || i.ur.y.isLessThan(e.ll.y))
|
|
3959
3942
|
return null;
|
|
3960
3943
|
const t = i.ll.x.isLessThan(e.ll.x) ? e.ll.x : i.ll.x, n = i.ur.x.isLessThan(e.ur.x) ? i.ur.x : e.ur.x, r = i.ll.y.isLessThan(e.ll.y) ? e.ll.y : i.ll.y, u = i.ur.y.isLessThan(e.ur.y) ? i.ur.y : e.ur.y;
|
|
3961
3944
|
return { ll: { x: t, y: r }, ur: { x: n, y: u } };
|
|
3962
|
-
},
|
|
3945
|
+
}, Gt = (i, e) => i.x.times(e.y).minus(i.y.times(e.x)), bn = (i, e) => i.x.times(e.x).plus(i.y.times(e.y)), Ut = (i) => bn(i, i).sqrt(), ms = (i, e, t) => {
|
|
3963
3946
|
const n = { x: e.x.minus(i.x), y: e.y.minus(i.y) }, r = { x: t.x.minus(i.x), y: t.y.minus(i.y) };
|
|
3964
|
-
return
|
|
3965
|
-
},
|
|
3947
|
+
return Gt(r, n).div(Ut(r)).div(Ut(n));
|
|
3948
|
+
}, ps = (i, e, t) => {
|
|
3966
3949
|
const n = { x: e.x.minus(i.x), y: e.y.minus(i.y) }, r = { x: t.x.minus(i.x), y: t.y.minus(i.y) };
|
|
3967
|
-
return
|
|
3968
|
-
},
|
|
3969
|
-
if (e.x.isZero()) return
|
|
3970
|
-
if (n.x.isZero()) return
|
|
3971
|
-
if (e.y.isZero()) return
|
|
3972
|
-
if (n.y.isZero()) return
|
|
3973
|
-
const r =
|
|
3950
|
+
return bn(r, n).div(Ut(r)).div(Ut(n));
|
|
3951
|
+
}, qi = (i, e, t) => e.y.isZero() ? null : { x: i.x.plus(e.x.div(e.y).times(t.minus(i.y))), y: t }, Zi = (i, e, t) => e.x.isZero() ? null : { x: t, y: i.y.plus(e.y.div(e.x).times(t.minus(i.x))) }, ys = (i, e, t, n) => {
|
|
3952
|
+
if (e.x.isZero()) return Zi(t, n, i.x);
|
|
3953
|
+
if (n.x.isZero()) return Zi(i, e, t.x);
|
|
3954
|
+
if (e.y.isZero()) return qi(t, n, i.y);
|
|
3955
|
+
if (n.y.isZero()) return qi(i, e, t.y);
|
|
3956
|
+
const r = Gt(e, n);
|
|
3974
3957
|
if (r.isZero()) return null;
|
|
3975
|
-
const u = { x: t.x.minus(i.x), y: t.y.minus(i.y) }, a =
|
|
3958
|
+
const u = { x: t.x.minus(i.x), y: t.y.minus(i.y) }, a = Gt(u, e).div(r), o = Gt(u, n).div(r), g = i.x.plus(o.times(e.x)), c = t.x.plus(a.times(n.x)), L = i.y.plus(o.times(e.y)), _ = t.y.plus(a.times(n.y)), C = g.plus(c).div(2), M = L.plus(_).div(2);
|
|
3976
3959
|
return { x: C, y: M };
|
|
3977
|
-
}, Ge = class
|
|
3960
|
+
}, Ge = class vn {
|
|
3978
3961
|
// Warning: 'point' input will be modified and re-used (for performance)
|
|
3979
3962
|
constructor(e, t) {
|
|
3980
3963
|
I(this, "point");
|
|
@@ -3986,8 +3969,8 @@ var ys = (i) => i, bs = (i) => {
|
|
|
3986
3969
|
}
|
|
3987
3970
|
// for ordering sweep events in the sweep event queue
|
|
3988
3971
|
static compare(e, t) {
|
|
3989
|
-
const n =
|
|
3990
|
-
return n !== 0 ? n : (e.point !== t.point && e.link(t), e.isLeft !== t.isLeft ? e.isLeft ? 1 : -1 :
|
|
3972
|
+
const n = vn.comparePoints(e.point, t.point);
|
|
3973
|
+
return n !== 0 ? n : (e.point !== t.point && e.link(t), e.isLeft !== t.isLeft ? e.isLeft ? 1 : -1 : qt.compare(e.segment, t.segment));
|
|
3991
3974
|
}
|
|
3992
3975
|
// for ordering points in sweep line order
|
|
3993
3976
|
static comparePoints(e, t) {
|
|
@@ -4038,8 +4021,8 @@ var ys = (i) => i, bs = (i) => {
|
|
|
4038
4021
|
const t = /* @__PURE__ */ new Map(), n = (r) => {
|
|
4039
4022
|
const u = r.otherSE;
|
|
4040
4023
|
t.set(r, {
|
|
4041
|
-
sine:
|
|
4042
|
-
cosine:
|
|
4024
|
+
sine: ms(this.point, e.point, u.point),
|
|
4025
|
+
cosine: ps(this.point, e.point, u.point)
|
|
4043
4026
|
});
|
|
4044
4027
|
};
|
|
4045
4028
|
return (r, u) => {
|
|
@@ -4048,7 +4031,7 @@ var ys = (i) => i, bs = (i) => {
|
|
|
4048
4031
|
return a.isGreaterThanOrEqualTo(0) && g.isGreaterThanOrEqualTo(0) ? o.isLessThan(c) ? 1 : o.isGreaterThan(c) ? -1 : 0 : a.isLessThan(0) && g.isLessThan(0) ? o.isLessThan(c) ? -1 : o.isGreaterThan(c) ? 1 : 0 : g.isLessThan(a) ? -1 : g.isGreaterThan(a) ? 1 : 0;
|
|
4049
4032
|
};
|
|
4050
4033
|
}
|
|
4051
|
-
},
|
|
4034
|
+
}, bs = class ci {
|
|
4052
4035
|
constructor(e) {
|
|
4053
4036
|
I(this, "events");
|
|
4054
4037
|
I(this, "poly");
|
|
@@ -4089,7 +4072,7 @@ var ys = (i) => i, bs = (i) => {
|
|
|
4089
4072
|
}
|
|
4090
4073
|
if (M !== null) {
|
|
4091
4074
|
const P = _.splice(M)[0], R = c.splice(P.index);
|
|
4092
|
-
R.unshift(R[0].otherSE), t.push(new
|
|
4075
|
+
R.unshift(R[0].otherSE), t.push(new ci(R.reverse()));
|
|
4093
4076
|
continue;
|
|
4094
4077
|
}
|
|
4095
4078
|
_.push({
|
|
@@ -4100,7 +4083,7 @@ var ys = (i) => i, bs = (i) => {
|
|
|
4100
4083
|
g = C.sort(N)[0].otherSE;
|
|
4101
4084
|
break;
|
|
4102
4085
|
}
|
|
4103
|
-
t.push(new
|
|
4086
|
+
t.push(new ci(c));
|
|
4104
4087
|
}
|
|
4105
4088
|
return t;
|
|
4106
4089
|
}
|
|
@@ -4109,11 +4092,11 @@ var ys = (i) => i, bs = (i) => {
|
|
|
4109
4092
|
const t = [e];
|
|
4110
4093
|
for (let c = 1, L = this.events.length - 1; c < L; c++) {
|
|
4111
4094
|
const _ = this.events[c].point, C = this.events[c + 1].point;
|
|
4112
|
-
|
|
4095
|
+
je.orient(_, e, C) !== 0 && (t.push(_), e = _);
|
|
4113
4096
|
}
|
|
4114
4097
|
if (t.length === 1) return null;
|
|
4115
4098
|
const n = t[0], r = t[1];
|
|
4116
|
-
|
|
4099
|
+
je.orient(n, e, r) === 0 && t.shift(), t.push(t[0]);
|
|
4117
4100
|
const u = this.isExteriorRing() ? 1 : -1, a = this.isExteriorRing() ? 0 : t.length - 1, o = this.isExteriorRing() ? t.length : -1, g = [];
|
|
4118
4101
|
for (let c = a; c != o; c += u)
|
|
4119
4102
|
g.push([t[c].x.toNumber(), t[c].y.toNumber()]);
|
|
@@ -4146,7 +4129,7 @@ var ys = (i) => i, bs = (i) => {
|
|
|
4146
4129
|
t = n.prevInResult(), n = t ? t.prevInResult() : null;
|
|
4147
4130
|
}
|
|
4148
4131
|
}
|
|
4149
|
-
},
|
|
4132
|
+
}, ji = class {
|
|
4150
4133
|
constructor(i) {
|
|
4151
4134
|
I(this, "exteriorRing");
|
|
4152
4135
|
I(this, "interiorRings");
|
|
@@ -4165,7 +4148,7 @@ var ys = (i) => i, bs = (i) => {
|
|
|
4165
4148
|
}
|
|
4166
4149
|
return e;
|
|
4167
4150
|
}
|
|
4168
|
-
},
|
|
4151
|
+
}, vs = class {
|
|
4169
4152
|
constructor(i) {
|
|
4170
4153
|
I(this, "rings");
|
|
4171
4154
|
I(this, "polys");
|
|
@@ -4185,20 +4168,20 @@ var ys = (i) => i, bs = (i) => {
|
|
|
4185
4168
|
for (let n = 0, r = i.length; n < r; n++) {
|
|
4186
4169
|
const u = i[n];
|
|
4187
4170
|
if (!u.poly)
|
|
4188
|
-
if (u.isExteriorRing()) e.push(new
|
|
4171
|
+
if (u.isExteriorRing()) e.push(new ji(u));
|
|
4189
4172
|
else {
|
|
4190
4173
|
const a = u.enclosingRing();
|
|
4191
|
-
a != null && a.poly || e.push(new
|
|
4174
|
+
a != null && a.poly || e.push(new ji(a)), (t = a == null ? void 0 : a.poly) == null || t.addInterior(u);
|
|
4192
4175
|
}
|
|
4193
4176
|
}
|
|
4194
4177
|
return e;
|
|
4195
4178
|
}
|
|
4196
|
-
},
|
|
4197
|
-
constructor(i, e =
|
|
4179
|
+
}, ws = class {
|
|
4180
|
+
constructor(i, e = qt.compare) {
|
|
4198
4181
|
I(this, "queue");
|
|
4199
4182
|
I(this, "tree");
|
|
4200
4183
|
I(this, "segments");
|
|
4201
|
-
this.queue = i, this.tree = new
|
|
4184
|
+
this.queue = i, this.tree = new zt(e), this.segments = [];
|
|
4202
4185
|
}
|
|
4203
4186
|
process(i) {
|
|
4204
4187
|
const e = i.segment, t = [];
|
|
@@ -4271,35 +4254,35 @@ var ys = (i) => i, bs = (i) => {
|
|
|
4271
4254
|
const n = i.split(e);
|
|
4272
4255
|
return n.push(t), i.consumedBy === void 0 && this.tree.add(i), n;
|
|
4273
4256
|
}
|
|
4274
|
-
},
|
|
4257
|
+
}, Es = class {
|
|
4275
4258
|
constructor() {
|
|
4276
4259
|
I(this, "type");
|
|
4277
4260
|
I(this, "numMultiPolys");
|
|
4278
4261
|
}
|
|
4279
4262
|
run(i, e, t) {
|
|
4280
|
-
|
|
4281
|
-
const n = [new
|
|
4263
|
+
Et.type = i;
|
|
4264
|
+
const n = [new Vi(e, !0)];
|
|
4282
4265
|
for (let c = 0, L = t.length; c < L; c++)
|
|
4283
|
-
n.push(new
|
|
4284
|
-
if (
|
|
4266
|
+
n.push(new Vi(t[c], !1));
|
|
4267
|
+
if (Et.numMultiPolys = n.length, Et.type === "difference") {
|
|
4285
4268
|
const c = n[0];
|
|
4286
4269
|
let L = 1;
|
|
4287
4270
|
for (; L < n.length; )
|
|
4288
|
-
|
|
4271
|
+
fi(n[L].bbox, c.bbox) !== null ? L++ : n.splice(L, 1);
|
|
4289
4272
|
}
|
|
4290
|
-
if (
|
|
4273
|
+
if (Et.type === "intersection")
|
|
4291
4274
|
for (let c = 0, L = n.length; c < L; c++) {
|
|
4292
4275
|
const _ = n[c];
|
|
4293
4276
|
for (let C = c + 1, M = n.length; C < M; C++)
|
|
4294
|
-
if (
|
|
4277
|
+
if (fi(_.bbox, n[C].bbox) === null) return [];
|
|
4295
4278
|
}
|
|
4296
|
-
const r = new
|
|
4279
|
+
const r = new zt(Ge.compare);
|
|
4297
4280
|
for (let c = 0, L = n.length; c < L; c++) {
|
|
4298
4281
|
const _ = n[c].getSweepEvents();
|
|
4299
4282
|
for (let C = 0, M = _.length; C < M; C++)
|
|
4300
4283
|
r.add(_[C]);
|
|
4301
4284
|
}
|
|
4302
|
-
const u = new
|
|
4285
|
+
const u = new ws(r);
|
|
4303
4286
|
let a = null;
|
|
4304
4287
|
for (r.size != 0 && (a = r.first(), r.delete(a)); a; ) {
|
|
4305
4288
|
const c = u.process(a);
|
|
@@ -4309,11 +4292,11 @@ var ys = (i) => i, bs = (i) => {
|
|
|
4309
4292
|
}
|
|
4310
4293
|
r.size != 0 ? (a = r.first(), r.delete(a)) : a = null;
|
|
4311
4294
|
}
|
|
4312
|
-
|
|
4313
|
-
const o =
|
|
4314
|
-
return new
|
|
4295
|
+
je.reset();
|
|
4296
|
+
const o = bs.factory(u.segments);
|
|
4297
|
+
return new vs(o).getGeom();
|
|
4315
4298
|
}
|
|
4316
|
-
},
|
|
4299
|
+
}, Et = new Es(), Ft = Et, Ls = 0, qt = class Wt {
|
|
4317
4300
|
/* Warning: a reference to ringWindings input will be stored,
|
|
4318
4301
|
* and possibly will be later modified */
|
|
4319
4302
|
constructor(e, t, n, r) {
|
|
@@ -4329,7 +4312,7 @@ var ys = (i) => i, bs = (i) => {
|
|
|
4329
4312
|
I(this, "_beforeState");
|
|
4330
4313
|
I(this, "_afterState");
|
|
4331
4314
|
I(this, "_isInResult");
|
|
4332
|
-
this.id = ++
|
|
4315
|
+
this.id = ++Ls, this.leftSE = e, e.segment = this, e.otherSE = t, this.rightSE = t, t.segment = this, t.otherSE = e, this.rings = n, this.windings = r;
|
|
4333
4316
|
}
|
|
4334
4317
|
/* This compare() function is for ordering segments in the sweep
|
|
4335
4318
|
* line tree, and does so according to the following criteria:
|
|
@@ -4396,7 +4379,7 @@ var ys = (i) => i, bs = (i) => {
|
|
|
4396
4379
|
`Tried to create degenerate segment at [${e.x}, ${e.y}]`
|
|
4397
4380
|
);
|
|
4398
4381
|
const g = new Ge(r, !0), c = new Ge(u, !1);
|
|
4399
|
-
return new
|
|
4382
|
+
return new Wt(g, c, [n], [a]);
|
|
4400
4383
|
}
|
|
4401
4384
|
/* When a segment is split, the rightSE is replaced with a new sweep event */
|
|
4402
4385
|
replaceRightSE(e) {
|
|
@@ -4433,7 +4416,7 @@ var ys = (i) => i, bs = (i) => {
|
|
|
4433
4416
|
* -1: point lies below the segment (to the right of vertical)
|
|
4434
4417
|
*/
|
|
4435
4418
|
comparePoint(e) {
|
|
4436
|
-
return
|
|
4419
|
+
return je.orient(this.leftSE.point, e, this.rightSE.point);
|
|
4437
4420
|
}
|
|
4438
4421
|
/**
|
|
4439
4422
|
* Given another segment, returns the first non-trivial intersection
|
|
@@ -4451,9 +4434,9 @@ var ys = (i) => i, bs = (i) => {
|
|
|
4451
4434
|
* Else, return null.
|
|
4452
4435
|
*/
|
|
4453
4436
|
getIntersection(e) {
|
|
4454
|
-
const t = this.bbox(), n = e.bbox(), r =
|
|
4437
|
+
const t = this.bbox(), n = e.bbox(), r = fi(t, n);
|
|
4455
4438
|
if (r === null) return null;
|
|
4456
|
-
const u = this.leftSE.point, a = this.rightSE.point, o = e.leftSE.point, g = e.rightSE.point, c =
|
|
4439
|
+
const u = this.leftSE.point, a = this.rightSE.point, o = e.leftSE.point, g = e.rightSE.point, c = vt(t, o) && this.comparePoint(o) === 0, L = vt(n, u) && e.comparePoint(u) === 0, _ = vt(t, g) && this.comparePoint(g) === 0, C = vt(n, a) && e.comparePoint(a) === 0;
|
|
4457
4440
|
if (L && c)
|
|
4458
4441
|
return C && !_ ? a : !C && _ ? g : null;
|
|
4459
4442
|
if (L)
|
|
@@ -4463,8 +4446,8 @@ var ys = (i) => i, bs = (i) => {
|
|
|
4463
4446
|
if (C && _) return null;
|
|
4464
4447
|
if (C) return a;
|
|
4465
4448
|
if (_) return g;
|
|
4466
|
-
const M =
|
|
4467
|
-
return M === null || !
|
|
4449
|
+
const M = ys(u, this.vector(), o, e.vector());
|
|
4450
|
+
return M === null || !vt(r, M) ? null : je.snap(M);
|
|
4468
4451
|
}
|
|
4469
4452
|
/**
|
|
4470
4453
|
* Split the given segment into multiple segments on the given points.
|
|
@@ -4481,7 +4464,7 @@ var ys = (i) => i, bs = (i) => {
|
|
|
4481
4464
|
split(e) {
|
|
4482
4465
|
const t = [], n = e.events !== void 0, r = new Ge(e, !0), u = new Ge(e, !1), a = this.rightSE;
|
|
4483
4466
|
this.replaceRightSE(u), t.push(u), t.push(r);
|
|
4484
|
-
const o = new
|
|
4467
|
+
const o = new Wt(
|
|
4485
4468
|
r,
|
|
4486
4469
|
a,
|
|
4487
4470
|
this.rings.slice(),
|
|
@@ -4502,7 +4485,7 @@ var ys = (i) => i, bs = (i) => {
|
|
|
4502
4485
|
let t = this, n = e;
|
|
4503
4486
|
for (; t.consumedBy; ) t = t.consumedBy;
|
|
4504
4487
|
for (; n.consumedBy; ) n = n.consumedBy;
|
|
4505
|
-
const r =
|
|
4488
|
+
const r = Wt.compare(t, n);
|
|
4506
4489
|
if (r !== 0) {
|
|
4507
4490
|
if (r > 0) {
|
|
4508
4491
|
const u = t;
|
|
@@ -4573,7 +4556,7 @@ var ys = (i) => i, bs = (i) => {
|
|
|
4573
4556
|
if (this.consumedBy) return !1;
|
|
4574
4557
|
if (this._isInResult !== void 0) return this._isInResult;
|
|
4575
4558
|
const e = this.beforeState().multiPolys, t = this.afterState().multiPolys;
|
|
4576
|
-
switch (
|
|
4559
|
+
switch (Ft.type) {
|
|
4577
4560
|
case "union": {
|
|
4578
4561
|
const n = e.length === 0, r = t.length === 0;
|
|
4579
4562
|
this._isInResult = n !== r;
|
|
@@ -4581,7 +4564,7 @@ var ys = (i) => i, bs = (i) => {
|
|
|
4581
4564
|
}
|
|
4582
4565
|
case "intersection": {
|
|
4583
4566
|
let n, r;
|
|
4584
|
-
e.length < t.length ? (n = e.length, r = t.length) : (n = t.length, r = e.length), this._isInResult = r ===
|
|
4567
|
+
e.length < t.length ? (n = e.length, r = t.length) : (n = t.length, r = e.length), this._isInResult = r === Ft.numMultiPolys && n < r;
|
|
4585
4568
|
break;
|
|
4586
4569
|
}
|
|
4587
4570
|
case "xor": {
|
|
@@ -4597,7 +4580,7 @@ var ys = (i) => i, bs = (i) => {
|
|
|
4597
4580
|
}
|
|
4598
4581
|
return this._isInResult;
|
|
4599
4582
|
}
|
|
4600
|
-
},
|
|
4583
|
+
}, Hi = class {
|
|
4601
4584
|
constructor(i, e, t) {
|
|
4602
4585
|
I(this, "poly");
|
|
4603
4586
|
I(this, "isExterior");
|
|
@@ -4607,7 +4590,7 @@ var ys = (i) => i, bs = (i) => {
|
|
|
4607
4590
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
4608
4591
|
if (this.poly = e, this.isExterior = t, this.segments = [], typeof i[0][0] != "number" || typeof i[0][1] != "number")
|
|
4609
4592
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
4610
|
-
const n =
|
|
4593
|
+
const n = je.snap({ x: new De(i[0][0]), y: new De(i[0][1]) });
|
|
4611
4594
|
this.bbox = {
|
|
4612
4595
|
ll: { x: n.x, y: n.y },
|
|
4613
4596
|
ur: { x: n.x, y: n.y }
|
|
@@ -4616,10 +4599,10 @@ var ys = (i) => i, bs = (i) => {
|
|
|
4616
4599
|
for (let u = 1, a = i.length; u < a; u++) {
|
|
4617
4600
|
if (typeof i[u][0] != "number" || typeof i[u][1] != "number")
|
|
4618
4601
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
4619
|
-
const o =
|
|
4620
|
-
o.x.eq(r.x) && o.y.eq(r.y) || (this.segments.push(
|
|
4602
|
+
const o = je.snap({ x: new De(i[u][0]), y: new De(i[u][1]) });
|
|
4603
|
+
o.x.eq(r.x) && o.y.eq(r.y) || (this.segments.push(qt.fromRing(r, o, this)), o.x.isLessThan(this.bbox.ll.x) && (this.bbox.ll.x = o.x), o.y.isLessThan(this.bbox.ll.y) && (this.bbox.ll.y = o.y), o.x.isGreaterThan(this.bbox.ur.x) && (this.bbox.ur.x = o.x), o.y.isGreaterThan(this.bbox.ur.y) && (this.bbox.ur.y = o.y), r = o);
|
|
4621
4604
|
}
|
|
4622
|
-
(!n.x.eq(r.x) || !n.y.eq(r.y)) && this.segments.push(
|
|
4605
|
+
(!n.x.eq(r.x) || !n.y.eq(r.y)) && this.segments.push(qt.fromRing(r, n, this));
|
|
4623
4606
|
}
|
|
4624
4607
|
getSweepEvents() {
|
|
4625
4608
|
const i = [];
|
|
@@ -4629,7 +4612,7 @@ var ys = (i) => i, bs = (i) => {
|
|
|
4629
4612
|
}
|
|
4630
4613
|
return i;
|
|
4631
4614
|
}
|
|
4632
|
-
},
|
|
4615
|
+
}, _s = class {
|
|
4633
4616
|
constructor(i, e) {
|
|
4634
4617
|
I(this, "multiPoly");
|
|
4635
4618
|
I(this, "exteriorRing");
|
|
@@ -4637,12 +4620,12 @@ var ys = (i) => i, bs = (i) => {
|
|
|
4637
4620
|
I(this, "bbox");
|
|
4638
4621
|
if (!Array.isArray(i))
|
|
4639
4622
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
4640
|
-
this.exteriorRing = new
|
|
4623
|
+
this.exteriorRing = new Hi(i[0], this, !0), this.bbox = {
|
|
4641
4624
|
ll: { x: this.exteriorRing.bbox.ll.x, y: this.exteriorRing.bbox.ll.y },
|
|
4642
4625
|
ur: { x: this.exteriorRing.bbox.ur.x, y: this.exteriorRing.bbox.ur.y }
|
|
4643
4626
|
}, this.interiorRings = [];
|
|
4644
4627
|
for (let t = 1, n = i.length; t < n; t++) {
|
|
4645
|
-
const r = new
|
|
4628
|
+
const r = new Hi(i[t], this, !1);
|
|
4646
4629
|
r.bbox.ll.x.isLessThan(this.bbox.ll.x) && (this.bbox.ll.x = r.bbox.ll.x), r.bbox.ll.y.isLessThan(this.bbox.ll.y) && (this.bbox.ll.y = r.bbox.ll.y), r.bbox.ur.x.isGreaterThan(this.bbox.ur.x) && (this.bbox.ur.x = r.bbox.ur.x), r.bbox.ur.y.isGreaterThan(this.bbox.ur.y) && (this.bbox.ur.y = r.bbox.ur.y), this.interiorRings.push(r);
|
|
4647
4630
|
}
|
|
4648
4631
|
this.multiPoly = e;
|
|
@@ -4656,7 +4639,7 @@ var ys = (i) => i, bs = (i) => {
|
|
|
4656
4639
|
}
|
|
4657
4640
|
return i;
|
|
4658
4641
|
}
|
|
4659
|
-
},
|
|
4642
|
+
}, Vi = class {
|
|
4660
4643
|
constructor(i, e) {
|
|
4661
4644
|
I(this, "isSubject");
|
|
4662
4645
|
I(this, "polys");
|
|
@@ -4672,7 +4655,7 @@ var ys = (i) => i, bs = (i) => {
|
|
|
4672
4655
|
ur: { x: new De(Number.NEGATIVE_INFINITY), y: new De(Number.NEGATIVE_INFINITY) }
|
|
4673
4656
|
};
|
|
4674
4657
|
for (let t = 0, n = i.length; t < n; t++) {
|
|
4675
|
-
const r = new
|
|
4658
|
+
const r = new _s(i[t], this);
|
|
4676
4659
|
r.bbox.ll.x.isLessThan(this.bbox.ll.x) && (this.bbox.ll.x = r.bbox.ll.x), r.bbox.ll.y.isLessThan(this.bbox.ll.y) && (this.bbox.ll.y = r.bbox.ll.y), r.bbox.ur.x.isGreaterThan(this.bbox.ur.x) && (this.bbox.ur.x = r.bbox.ur.x), r.bbox.ur.y.isGreaterThan(this.bbox.ur.y) && (this.bbox.ur.y = r.bbox.ur.y), this.polys.push(r);
|
|
4677
4660
|
}
|
|
4678
4661
|
this.isSubject = e;
|
|
@@ -4686,40 +4669,40 @@ var ys = (i) => i, bs = (i) => {
|
|
|
4686
4669
|
}
|
|
4687
4670
|
return i;
|
|
4688
4671
|
}
|
|
4689
|
-
},
|
|
4690
|
-
|
|
4691
|
-
function
|
|
4672
|
+
}, Ss = (i, ...e) => Ft.run("union", i, e), xs = (i, ...e) => Ft.run("difference", i, e);
|
|
4673
|
+
je.set;
|
|
4674
|
+
function Ts(i, e = {}) {
|
|
4692
4675
|
const t = [];
|
|
4693
|
-
if (
|
|
4676
|
+
if (gi(i, (r) => {
|
|
4694
4677
|
t.push(r.coordinates);
|
|
4695
4678
|
}), t.length < 2)
|
|
4696
4679
|
throw new Error("Must have at least 2 geometries");
|
|
4697
|
-
const n =
|
|
4698
|
-
return n.length === 0 ? null : n.length === 1 ?
|
|
4680
|
+
const n = Ss(t[0], ...t.slice(1));
|
|
4681
|
+
return n.length === 0 ? null : n.length === 1 ? di(n[0], e.properties) : fn(n, e.properties);
|
|
4699
4682
|
}
|
|
4700
|
-
var
|
|
4701
|
-
function
|
|
4683
|
+
var wn = Ts;
|
|
4684
|
+
function Ms(i) {
|
|
4702
4685
|
const e = [];
|
|
4703
|
-
if (
|
|
4686
|
+
if (gi(i, (r) => {
|
|
4704
4687
|
e.push(r.coordinates);
|
|
4705
4688
|
}), e.length < 2)
|
|
4706
4689
|
throw new Error("Must have at least two features");
|
|
4707
|
-
const t = i.features[0].properties || {}, n =
|
|
4708
|
-
return n.length === 0 ? null : n.length === 1 ?
|
|
4690
|
+
const t = i.features[0].properties || {}, n = xs(e[0], ...e.slice(1));
|
|
4691
|
+
return n.length === 0 ? null : n.length === 1 ? di(n[0], t) : fn(n, t);
|
|
4709
4692
|
}
|
|
4710
|
-
var
|
|
4711
|
-
function
|
|
4693
|
+
var Cs = Ms;
|
|
4694
|
+
function Ns(i) {
|
|
4712
4695
|
if (!i) throw new Error("geojson is required");
|
|
4713
4696
|
var e = [];
|
|
4714
|
-
return
|
|
4697
|
+
return is(i, function(t) {
|
|
4715
4698
|
e.push(t);
|
|
4716
|
-
}),
|
|
4699
|
+
}), Mt(e);
|
|
4717
4700
|
}
|
|
4718
|
-
var
|
|
4719
|
-
function
|
|
4720
|
-
const t =
|
|
4721
|
-
|
|
4722
|
-
|
|
4701
|
+
var ks = Ns;
|
|
4702
|
+
function Ki(i, e) {
|
|
4703
|
+
const t = Cs(
|
|
4704
|
+
Mt([
|
|
4705
|
+
di([
|
|
4723
4706
|
[
|
|
4724
4707
|
[180, 90],
|
|
4725
4708
|
[-180, 90],
|
|
@@ -4734,10 +4717,10 @@ function Qi(i, e) {
|
|
|
4734
4717
|
if (!t)
|
|
4735
4718
|
return;
|
|
4736
4719
|
t.properties = { isMask: !0 };
|
|
4737
|
-
const n =
|
|
4720
|
+
const n = xt(li(i)), r = (n[2] - n[0]) / 360 / 1e3, u = n[0] < -180, a = n[2] > 180, o = ks(i);
|
|
4738
4721
|
if (o.features.length > 1 && (u || a))
|
|
4739
4722
|
for (const g of o.features) {
|
|
4740
|
-
const c =
|
|
4723
|
+
const c = xt(li(g));
|
|
4741
4724
|
if (a && c[0] < -180 + r)
|
|
4742
4725
|
for (const L of g.geometry.coordinates)
|
|
4743
4726
|
for (const _ of L)
|
|
@@ -4748,13 +4731,13 @@ function Qi(i, e) {
|
|
|
4748
4731
|
_[0] -= 360 - r;
|
|
4749
4732
|
}
|
|
4750
4733
|
e(
|
|
4751
|
-
|
|
4752
|
-
o.features.length < 2 ? i :
|
|
4734
|
+
Mt([
|
|
4735
|
+
o.features.length < 2 ? i : wn(o) ?? i,
|
|
4753
4736
|
t
|
|
4754
4737
|
])
|
|
4755
4738
|
);
|
|
4756
4739
|
}
|
|
4757
|
-
const
|
|
4740
|
+
const Yi = (i) => {
|
|
4758
4741
|
var n, r, u;
|
|
4759
4742
|
const e = (n = i == null ? void 0 : i.geometry) == null ? void 0 : n.type, t = (r = i == null ? void 0 : i.properties) != null && r.isMask ? 0 : e === "LineString" || e === "MultiLineString" ? 3 : 2;
|
|
4760
4743
|
return {
|
|
@@ -4766,12 +4749,12 @@ const Ji = (i) => {
|
|
|
4766
4749
|
lineCap: "butt"
|
|
4767
4750
|
};
|
|
4768
4751
|
};
|
|
4769
|
-
function
|
|
4752
|
+
function Os(i, e = !0, t = !0, n = {}, r = {}, u = Yi) {
|
|
4770
4753
|
let a;
|
|
4771
4754
|
const o = [];
|
|
4772
4755
|
let g, c;
|
|
4773
|
-
const L =
|
|
4774
|
-
style: u === !0 ?
|
|
4756
|
+
const L = ke.geoJSON(void 0, {
|
|
4757
|
+
style: u === !0 ? Yi : u === !1 ? void 0 : u ?? void 0,
|
|
4775
4758
|
interactive: !1
|
|
4776
4759
|
}).addTo(i), _ = (M) => {
|
|
4777
4760
|
a == null || a({
|
|
@@ -4781,9 +4764,9 @@ function Is(i, e = !0, t = !0, n = {}, r = {}, u = Ji) {
|
|
|
4781
4764
|
};
|
|
4782
4765
|
function C(M, N = !1) {
|
|
4783
4766
|
const P = document.createElement("div");
|
|
4784
|
-
return new
|
|
4767
|
+
return new Or({ props: { displayIn: "leaflet" }, target: P }), new ke.Marker(M, {
|
|
4785
4768
|
interactive: N,
|
|
4786
|
-
icon: new
|
|
4769
|
+
icon: new ke.DivIcon({
|
|
4787
4770
|
html: P,
|
|
4788
4771
|
className: "",
|
|
4789
4772
|
iconAnchor: [12, 26],
|
|
@@ -4821,7 +4804,7 @@ function Is(i, e = !0, t = !0, n = {}, r = {}, u = Ji) {
|
|
|
4821
4804
|
if (!e)
|
|
4822
4805
|
return;
|
|
4823
4806
|
const N = M && [M[1], M[0]];
|
|
4824
|
-
c ? N ? c.setLatLng(N) : (c.remove(), c = void 0) : N && (e instanceof Function ? c = e(i) ?? void 0 : (c = (typeof e == "object" ? new
|
|
4807
|
+
c ? N ? c.setLatLng(N) : (c.remove(), c = void 0) : N && (e instanceof Function ? c = e(i) ?? void 0 : (c = (typeof e == "object" ? new ke.Marker(N, e) : C(N)).addTo(i), (P = c.getElement()) == null || P.classList.add("marker-reverse")));
|
|
4825
4808
|
},
|
|
4826
4809
|
setFeatures(M, N, P) {
|
|
4827
4810
|
function R(k) {
|
|
@@ -4837,12 +4820,12 @@ function Is(i, e = !0, t = !0, n = {}, r = {}, u = Ji) {
|
|
|
4837
4820
|
(O) => O.type === "Polygon" || O.type === "MultiPolygon"
|
|
4838
4821
|
);
|
|
4839
4822
|
t: if (S.length > 0) {
|
|
4840
|
-
const O =
|
|
4841
|
-
|
|
4823
|
+
const O = wn(
|
|
4824
|
+
Mt(S.map((D) => Tt(D)))
|
|
4842
4825
|
);
|
|
4843
4826
|
if (!O)
|
|
4844
4827
|
break t;
|
|
4845
|
-
|
|
4828
|
+
Ki(
|
|
4846
4829
|
{
|
|
4847
4830
|
...N,
|
|
4848
4831
|
geometry: O.geometry
|
|
@@ -4861,11 +4844,11 @@ function Is(i, e = !0, t = !0, n = {}, r = {}, u = Ji) {
|
|
|
4861
4844
|
}
|
|
4862
4845
|
if (!k) {
|
|
4863
4846
|
if (N.geometry.type === "Polygon" || N.geometry.type === "MultiPolygon")
|
|
4864
|
-
|
|
4847
|
+
Ki(N, (S) => {
|
|
4865
4848
|
if (!S)
|
|
4866
4849
|
return;
|
|
4867
|
-
const O = [...S.features], D =
|
|
4868
|
-
D[0] - H / 4 < -180 && O.push(
|
|
4850
|
+
const O = [...S.features], D = xt(li(N)), H = D[2] - D[0];
|
|
4851
|
+
D[0] - H / 4 < -180 && O.push(...Xi(S, -360).features), D[2] + H / 4 > 180 && O.push(...Xi(S, 360).features), R(Mt(O));
|
|
4869
4852
|
});
|
|
4870
4853
|
else if (N.geometry.type === "LineString" || N.geometry.type === "MultiLineString") {
|
|
4871
4854
|
R(N);
|
|
@@ -4880,7 +4863,7 @@ function Is(i, e = !0, t = !0, n = {}, r = {}, u = Ji) {
|
|
|
4880
4863
|
} else if (e) {
|
|
4881
4864
|
const S = [N.center[1], N.center[0]];
|
|
4882
4865
|
o.push(
|
|
4883
|
-
typeof e == "object" ? new
|
|
4866
|
+
typeof e == "object" ? new ke.Marker(S, e) : C(S).addTo(i)
|
|
4884
4867
|
);
|
|
4885
4868
|
}
|
|
4886
4869
|
}
|
|
@@ -4897,7 +4880,7 @@ function Is(i, e = !0, t = !0, n = {}, r = {}, u = Ji) {
|
|
|
4897
4880
|
if (O = t(i, k), !O)
|
|
4898
4881
|
continue;
|
|
4899
4882
|
} else
|
|
4900
|
-
O = (typeof t == "object" ? new
|
|
4883
|
+
O = (typeof t == "object" ? new ke.Marker(S, t) : C(S, !0)).addTo(i).bindTooltip(
|
|
4901
4884
|
k.place_type[0] === "reverse" ? k.place_name : k.place_name.replace(/,.*/, ""),
|
|
4902
4885
|
{
|
|
4903
4886
|
direction: "top"
|
|
@@ -4923,35 +4906,35 @@ function Is(i, e = !0, t = !0, n = {}, r = {}, u = Ji) {
|
|
|
4923
4906
|
}
|
|
4924
4907
|
};
|
|
4925
4908
|
}
|
|
4926
|
-
function
|
|
4927
|
-
const t =
|
|
4909
|
+
function Xi(i, e) {
|
|
4910
|
+
const t = os(i);
|
|
4928
4911
|
for (const n of t.features)
|
|
4929
4912
|
if (n.geometry.type == "MultiPolygon")
|
|
4930
4913
|
for (const r of n.geometry.coordinates)
|
|
4931
|
-
|
|
4914
|
+
Qi(r, e);
|
|
4932
4915
|
else
|
|
4933
|
-
|
|
4916
|
+
Qi(n.geometry.coordinates, e);
|
|
4934
4917
|
return t;
|
|
4935
4918
|
}
|
|
4936
|
-
function
|
|
4919
|
+
function Qi(i, e) {
|
|
4937
4920
|
for (const t of i)
|
|
4938
4921
|
for (const n of t)
|
|
4939
4922
|
n[0] += e;
|
|
4940
4923
|
}
|
|
4941
|
-
class
|
|
4924
|
+
class En extends ke.Control {
|
|
4942
4925
|
}
|
|
4943
|
-
|
|
4944
|
-
var
|
|
4945
|
-
class
|
|
4926
|
+
ke.Util.extend(En.prototype, ke.Evented.prototype);
|
|
4927
|
+
var Ee, ot;
|
|
4928
|
+
class Rs extends En {
|
|
4946
4929
|
constructor(t) {
|
|
4947
4930
|
super(t);
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4931
|
+
Jt(this, Ee);
|
|
4932
|
+
Jt(this, ot);
|
|
4933
|
+
$t(this, ot, t);
|
|
4951
4934
|
}
|
|
4952
4935
|
onAdd(t) {
|
|
4953
4936
|
const n = document.createElement("div");
|
|
4954
|
-
n.className = "leaflet-ctrl-geocoder",
|
|
4937
|
+
n.className = "leaflet-ctrl-geocoder", ke.DomEvent.disableClickPropagation(n), ke.DomEvent.disableScrollPropagation(n);
|
|
4955
4938
|
const {
|
|
4956
4939
|
marker: r,
|
|
4957
4940
|
showResultMarkers: u,
|
|
@@ -4959,7 +4942,7 @@ class Bs extends Sn {
|
|
|
4959
4942
|
fullGeometryStyle: o,
|
|
4960
4943
|
position: g,
|
|
4961
4944
|
...c
|
|
4962
|
-
} =
|
|
4945
|
+
} = ve(this, ot), L = typeof a == "boolean" ? {} : a, _ = Os(
|
|
4963
4946
|
t,
|
|
4964
4947
|
r,
|
|
4965
4948
|
u,
|
|
@@ -4967,7 +4950,7 @@ class Bs extends Sn {
|
|
|
4967
4950
|
L,
|
|
4968
4951
|
o
|
|
4969
4952
|
);
|
|
4970
|
-
|
|
4953
|
+
$t(this, Ee, new ts({
|
|
4971
4954
|
target: n,
|
|
4972
4955
|
props: {
|
|
4973
4956
|
mapController: _,
|
|
@@ -4986,7 +4969,7 @@ class Bs extends Sn {
|
|
|
4986
4969
|
querychange: void 0
|
|
4987
4970
|
};
|
|
4988
4971
|
for (const M in C)
|
|
4989
|
-
|
|
4972
|
+
ve(this, Ee).$on(M, (N) => this.fire(M, N.detail));
|
|
4990
4973
|
return n;
|
|
4991
4974
|
}
|
|
4992
4975
|
/**
|
|
@@ -4996,15 +4979,15 @@ class Bs extends Sn {
|
|
|
4996
4979
|
*/
|
|
4997
4980
|
setOptions(t) {
|
|
4998
4981
|
var g;
|
|
4999
|
-
Object.assign(
|
|
4982
|
+
Object.assign(ve(this, ot), t);
|
|
5000
4983
|
const {
|
|
5001
4984
|
marker: n,
|
|
5002
4985
|
showResultMarkers: r,
|
|
5003
4986
|
flyTo: u,
|
|
5004
4987
|
fullGeometryStyle: a,
|
|
5005
4988
|
...o
|
|
5006
|
-
} =
|
|
5007
|
-
(g =
|
|
4989
|
+
} = ve(this, ot);
|
|
4990
|
+
(g = ve(this, Ee)) == null || g.$set(o);
|
|
5008
4991
|
}
|
|
5009
4992
|
/**
|
|
5010
4993
|
* Set the content of search input box.
|
|
@@ -5014,21 +4997,21 @@ class Bs extends Sn {
|
|
|
5014
4997
|
*/
|
|
5015
4998
|
setQuery(t, n = !0) {
|
|
5016
4999
|
var r;
|
|
5017
|
-
(r =
|
|
5000
|
+
(r = ve(this, Ee)) == null || r.setQuery(t, n);
|
|
5018
5001
|
}
|
|
5019
5002
|
/**
|
|
5020
5003
|
* Clear geocoding search results from the map.
|
|
5021
5004
|
*/
|
|
5022
5005
|
clearMap() {
|
|
5023
5006
|
var t;
|
|
5024
|
-
(t =
|
|
5007
|
+
(t = ve(this, Ee)) == null || t.clearMap();
|
|
5025
5008
|
}
|
|
5026
5009
|
/**
|
|
5027
5010
|
* Clear search result list.
|
|
5028
5011
|
*/
|
|
5029
5012
|
clearList() {
|
|
5030
5013
|
var t;
|
|
5031
|
-
(t =
|
|
5014
|
+
(t = ve(this, Ee)) == null || t.clearList();
|
|
5032
5015
|
}
|
|
5033
5016
|
/**
|
|
5034
5017
|
* Set reverse geocoding mode.
|
|
@@ -5037,7 +5020,7 @@ class Bs extends Sn {
|
|
|
5037
5020
|
*/
|
|
5038
5021
|
setReverseMode(t) {
|
|
5039
5022
|
var n;
|
|
5040
|
-
(n =
|
|
5023
|
+
(n = ve(this, Ee)) == null || n.$set({ reverseActive: t });
|
|
5041
5024
|
}
|
|
5042
5025
|
/**
|
|
5043
5026
|
* Focus the search input box.
|
|
@@ -5046,27 +5029,27 @@ class Bs extends Sn {
|
|
|
5046
5029
|
*/
|
|
5047
5030
|
focus(t) {
|
|
5048
5031
|
var n;
|
|
5049
|
-
(n =
|
|
5032
|
+
(n = ve(this, Ee)) == null || n.focus(t);
|
|
5050
5033
|
}
|
|
5051
5034
|
/**
|
|
5052
5035
|
* Blur the search input box.
|
|
5053
5036
|
*/
|
|
5054
5037
|
blur() {
|
|
5055
5038
|
var t;
|
|
5056
|
-
(t =
|
|
5039
|
+
(t = ve(this, Ee)) == null || t.blur();
|
|
5057
5040
|
}
|
|
5058
5041
|
onRemove() {
|
|
5059
5042
|
var t;
|
|
5060
|
-
(t =
|
|
5043
|
+
(t = ve(this, Ee)) == null || t.$destroy();
|
|
5061
5044
|
}
|
|
5062
5045
|
}
|
|
5063
|
-
|
|
5064
|
-
function
|
|
5065
|
-
return new
|
|
5046
|
+
Ee = new WeakMap(), ot = new WeakMap();
|
|
5047
|
+
function Ps(...i) {
|
|
5048
|
+
return new Rs(...i);
|
|
5066
5049
|
}
|
|
5067
|
-
window.L && typeof window.L == "object" && typeof window.L.control == "function" && (window.L.control.maptilerGeocoding =
|
|
5050
|
+
window.L && typeof window.L == "object" && typeof window.L.control == "function" && (window.L.control.maptilerGeocoding = Ps);
|
|
5068
5051
|
export {
|
|
5069
|
-
|
|
5070
|
-
|
|
5052
|
+
Rs as GeocodingControl,
|
|
5053
|
+
Os as createLeafletMapController
|
|
5071
5054
|
};
|
|
5072
5055
|
//# sourceMappingURL=leaflet.js.map
|