@maptiler/geocoding-control 2.0.0-rc.1 → 2.0.0-rc.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/MapLibreBasedGeocodingControl.d.ts +1436 -1748
- package/leaflet.js +719 -723
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +3 -3
- package/leaflet.umd.js.map +1 -1
- package/maplibregl.d.ts +2625 -0
- package/maplibregl.js +640 -644
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +3 -3
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.d.ts +2620 -0
- package/maptilersdk.js +714 -718
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +3 -3
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers.js +648 -652
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +3 -3
- package/openlayers.umd.js.map +1 -1
- package/package.json +2 -2
- package/react.js +432 -436
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/svelte/FeatureItem.svelte +1 -1
- package/svelte/FeatureItem.svelte.d.ts +2 -2
- package/svelte/GeocodingControl.svelte +13 -20
- package/svelte/GeocodingControl.svelte.d.ts +5 -6
- package/svelte/MapLibreBasedGeocodingControl.d.ts +1436 -1748
- package/svelte/MapLibreBasedGeocodingControl.js +2 -3
- package/svelte/leaflet.js +2 -1
- package/svelte/maplibregl.d.ts +2625 -0
- package/svelte/maptilersdk.d.ts +2620 -0
- package/svelte/openlayers.js +2 -1
- package/svelte/react.js +5 -5
- package/svelte/types.d.ts +57 -27
- package/types.d.ts +57 -27
- package/vanilla.js +450 -454
- package/vanilla.js.map +1 -1
- package/vanilla.umd.js +1 -1
- package/vanilla.umd.js.map +1 -1
package/react.js
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { forwardRef as
|
|
1
|
+
var li = Object.defineProperty;
|
|
2
|
+
var ui = (i, e, t) => e in i ? li(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
|
+
var et = (i, e, t) => ui(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { forwardRef as ci, useRef as dt, useEffect as tt, useImperativeHandle as di, createElement as fi } from "react";
|
|
5
5
|
function I() {
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function mi(i, e) {
|
|
8
8
|
for (const t in e) i[t] = e[t];
|
|
9
9
|
return (
|
|
10
10
|
/** @type {T & S} */
|
|
11
11
|
i
|
|
12
12
|
);
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function Dt(i) {
|
|
15
15
|
return i();
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function ft() {
|
|
18
18
|
return /* @__PURE__ */ Object.create(null);
|
|
19
19
|
}
|
|
20
20
|
function ae(i) {
|
|
21
|
-
i.forEach(
|
|
21
|
+
i.forEach(Dt);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Ot(i) {
|
|
24
24
|
return typeof i == "function";
|
|
25
25
|
}
|
|
26
26
|
function be(i, e) {
|
|
27
27
|
return i != i ? e == e : i !== e || i && typeof i == "object" || typeof i == "function";
|
|
28
28
|
}
|
|
29
|
-
let
|
|
30
|
-
function
|
|
31
|
-
return i === e ? !0 : (
|
|
29
|
+
let Fe;
|
|
30
|
+
function K(i, e) {
|
|
31
|
+
return i === e ? !0 : (Fe || (Fe = document.createElement("a")), Fe.href = e, i === Fe.href);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function gi(i) {
|
|
34
34
|
return Object.keys(i).length === 0;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function hi(i, e, t, r) {
|
|
37
37
|
if (i) {
|
|
38
|
-
const o =
|
|
38
|
+
const o = Ut(i, e, t, r);
|
|
39
39
|
return i[0](o);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
return i[1] && r ?
|
|
42
|
+
function Ut(i, e, t, r) {
|
|
43
|
+
return i[1] && r ? mi(t.ctx.slice(), i[1](r(e))) : t.ctx;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function bi(i, e, t, r) {
|
|
46
46
|
if (i[2] && r) {
|
|
47
47
|
const o = i[2](r(t));
|
|
48
48
|
if (e.dirty === void 0)
|
|
@@ -57,13 +57,13 @@ function vi(i, e, t, r) {
|
|
|
57
57
|
}
|
|
58
58
|
return e.dirty;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function vi(i, e, t, r, o, u) {
|
|
61
61
|
if (o) {
|
|
62
|
-
const a =
|
|
62
|
+
const a = Ut(e, t, r, u);
|
|
63
63
|
i.p(a, o);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function Li(i) {
|
|
67
67
|
if (i.ctx.length > 32) {
|
|
68
68
|
const e = [], t = i.ctx.length / 32;
|
|
69
69
|
for (let r = 0; r < t; r++)
|
|
@@ -72,7 +72,7 @@ function _i(i) {
|
|
|
72
72
|
}
|
|
73
73
|
return -1;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function mt(i) {
|
|
76
76
|
return i ?? "";
|
|
77
77
|
}
|
|
78
78
|
function M(i, e) {
|
|
@@ -96,13 +96,13 @@ function de(i) {
|
|
|
96
96
|
function J() {
|
|
97
97
|
return de(" ");
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function _i() {
|
|
100
100
|
return de("");
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function V(i, e, t, r) {
|
|
103
103
|
return i.addEventListener(e, t, r), () => i.removeEventListener(e, t, r);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function yi(i) {
|
|
106
106
|
return function(e) {
|
|
107
107
|
return e.preventDefault(), i.call(this, e);
|
|
108
108
|
};
|
|
@@ -110,39 +110,39 @@ function wi(i) {
|
|
|
110
110
|
function l(i, e, t) {
|
|
111
111
|
t == null ? i.removeAttribute(e) : i.getAttribute(e) !== t && i.setAttribute(e, t);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function wi(i) {
|
|
114
114
|
return Array.from(i.childNodes);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function We(i, e) {
|
|
117
117
|
e = "" + e, i.data !== e && (i.data = /** @type {string} */
|
|
118
118
|
e);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function gt(i, e) {
|
|
121
121
|
i.value = e ?? "";
|
|
122
122
|
}
|
|
123
123
|
function ce(i, e, t) {
|
|
124
124
|
i.classList.toggle(e, !!t);
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Ei(i, e, { bubbles: t = !1, cancelable: r = !1 } = {}) {
|
|
127
127
|
return new CustomEvent(i, { detail: e, bubbles: t, cancelable: r });
|
|
128
128
|
}
|
|
129
|
-
let
|
|
130
|
-
function
|
|
131
|
-
|
|
129
|
+
let Re;
|
|
130
|
+
function Ce(i) {
|
|
131
|
+
Re = i;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
if (!
|
|
135
|
-
return
|
|
133
|
+
function It() {
|
|
134
|
+
if (!Re) throw new Error("Function called outside component initialization");
|
|
135
|
+
return Re;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
|
|
137
|
+
function Si(i) {
|
|
138
|
+
It().$$.on_destroy.push(i);
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
const i =
|
|
140
|
+
function pi() {
|
|
141
|
+
const i = It();
|
|
142
142
|
return (e, t, { cancelable: r = !1 } = {}) => {
|
|
143
143
|
const o = i.$$.callbacks[e];
|
|
144
144
|
if (o) {
|
|
145
|
-
const u =
|
|
145
|
+
const u = Ei(
|
|
146
146
|
/** @type {string} */
|
|
147
147
|
e,
|
|
148
148
|
t,
|
|
@@ -155,60 +155,60 @@ function Ti() {
|
|
|
155
155
|
return !0;
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function ht(i, e) {
|
|
159
159
|
const t = i.$$.callbacks[e.type];
|
|
160
160
|
t && t.slice().forEach((r) => r.call(this, e));
|
|
161
161
|
}
|
|
162
|
-
const
|
|
163
|
-
let
|
|
164
|
-
const
|
|
165
|
-
let
|
|
166
|
-
function
|
|
167
|
-
|
|
162
|
+
const Se = [], rt = [];
|
|
163
|
+
let pe = [];
|
|
164
|
+
const bt = [], Ti = /* @__PURE__ */ Promise.resolve();
|
|
165
|
+
let nt = !1;
|
|
166
|
+
function Ni() {
|
|
167
|
+
nt || (nt = !0, Ti.then(At));
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
|
|
169
|
+
function ot(i) {
|
|
170
|
+
pe.push(i);
|
|
171
171
|
}
|
|
172
|
-
const
|
|
173
|
-
let
|
|
174
|
-
function
|
|
175
|
-
if (
|
|
172
|
+
const it = /* @__PURE__ */ new Set();
|
|
173
|
+
let Ee = 0;
|
|
174
|
+
function At() {
|
|
175
|
+
if (Ee !== 0)
|
|
176
176
|
return;
|
|
177
|
-
const i =
|
|
177
|
+
const i = Re;
|
|
178
178
|
do {
|
|
179
179
|
try {
|
|
180
|
-
for (;
|
|
181
|
-
const e =
|
|
182
|
-
|
|
180
|
+
for (; Ee < Se.length; ) {
|
|
181
|
+
const e = Se[Ee];
|
|
182
|
+
Ee++, Ce(e), Mi(e.$$);
|
|
183
183
|
}
|
|
184
184
|
} catch (e) {
|
|
185
|
-
throw
|
|
185
|
+
throw Se.length = 0, Ee = 0, e;
|
|
186
186
|
}
|
|
187
|
-
for (
|
|
188
|
-
for (let e = 0; e <
|
|
189
|
-
const t =
|
|
190
|
-
|
|
187
|
+
for (Ce(null), Se.length = 0, Ee = 0; rt.length; ) rt.pop()();
|
|
188
|
+
for (let e = 0; e < pe.length; e += 1) {
|
|
189
|
+
const t = pe[e];
|
|
190
|
+
it.has(t) || (it.add(t), t());
|
|
191
191
|
}
|
|
192
|
-
|
|
193
|
-
} while (
|
|
194
|
-
for (;
|
|
195
|
-
|
|
196
|
-
|
|
192
|
+
pe.length = 0;
|
|
193
|
+
} while (Se.length);
|
|
194
|
+
for (; bt.length; )
|
|
195
|
+
bt.pop()();
|
|
196
|
+
nt = !1, it.clear(), Ce(i);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Mi(i) {
|
|
199
199
|
if (i.fragment !== null) {
|
|
200
200
|
i.update(), ae(i.before_update);
|
|
201
201
|
const e = i.dirty;
|
|
202
|
-
i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(
|
|
202
|
+
i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(ot);
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function ki(i) {
|
|
206
206
|
const e = [], t = [];
|
|
207
|
-
|
|
207
|
+
pe.forEach((r) => i.indexOf(r) === -1 ? e.push(r) : t.push(r)), t.forEach((r) => r()), pe = e;
|
|
208
208
|
}
|
|
209
|
-
const
|
|
209
|
+
const He = /* @__PURE__ */ new Set();
|
|
210
210
|
let he;
|
|
211
|
-
function
|
|
211
|
+
function je() {
|
|
212
212
|
he = {
|
|
213
213
|
r: 0,
|
|
214
214
|
c: [],
|
|
@@ -216,29 +216,29 @@ function Pe() {
|
|
|
216
216
|
// parent group
|
|
217
217
|
};
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function Pe() {
|
|
220
220
|
he.r || ae(he.c), he = he.p;
|
|
221
221
|
}
|
|
222
222
|
function H(i, e) {
|
|
223
|
-
i && i.i && (
|
|
223
|
+
i && i.i && (He.delete(i), i.i(e));
|
|
224
224
|
}
|
|
225
225
|
function Q(i, e, t, r) {
|
|
226
226
|
if (i && i.o) {
|
|
227
|
-
if (
|
|
228
|
-
|
|
229
|
-
|
|
227
|
+
if (He.has(i)) return;
|
|
228
|
+
He.add(i), he.c.push(() => {
|
|
229
|
+
He.delete(i), r && (t && i.d(1), r());
|
|
230
230
|
}), i.o(e);
|
|
231
231
|
} else r && r();
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function vt(i) {
|
|
234
234
|
return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function Ci(i, e) {
|
|
237
237
|
Q(i, 1, 1, () => {
|
|
238
238
|
e.delete(i.key);
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function Wi(i, e, t, r, o, u, a, n, d, c, f, h) {
|
|
242
242
|
let v = i.length, _ = u.length, w = v;
|
|
243
243
|
const W = {};
|
|
244
244
|
for (; w--; ) W[i[w].key] = w;
|
|
@@ -268,21 +268,21 @@ function fe(i) {
|
|
|
268
268
|
}
|
|
269
269
|
function oe(i, e, t) {
|
|
270
270
|
const { fragment: r, after_update: o } = i.$$;
|
|
271
|
-
r && r.m(e, t),
|
|
272
|
-
const u = i.$$.on_mount.map(
|
|
271
|
+
r && r.m(e, t), ot(() => {
|
|
272
|
+
const u = i.$$.on_mount.map(Dt).filter(Ot);
|
|
273
273
|
i.$$.on_destroy ? i.$$.on_destroy.push(...u) : ae(u), i.$$.on_mount = [];
|
|
274
|
-
}), o.forEach(
|
|
274
|
+
}), o.forEach(ot);
|
|
275
275
|
}
|
|
276
276
|
function se(i, e) {
|
|
277
277
|
const t = i.$$;
|
|
278
|
-
t.fragment !== null && (
|
|
278
|
+
t.fragment !== null && (ki(t.after_update), ae(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
i.$$.dirty[0] === -1 && (
|
|
280
|
+
function Ri(i, e) {
|
|
281
|
+
i.$$.dirty[0] === -1 && (Se.push(i), Ni(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
282
282
|
}
|
|
283
283
|
function ve(i, e, t, r, o, u, a = null, n = [-1]) {
|
|
284
|
-
const d =
|
|
285
|
-
|
|
284
|
+
const d = Re;
|
|
285
|
+
Ce(i);
|
|
286
286
|
const c = i.$$ = {
|
|
287
287
|
fragment: null,
|
|
288
288
|
ctx: [],
|
|
@@ -290,7 +290,7 @@ function ve(i, e, t, r, o, u, a = null, n = [-1]) {
|
|
|
290
290
|
props: u,
|
|
291
291
|
update: I,
|
|
292
292
|
not_equal: o,
|
|
293
|
-
bound:
|
|
293
|
+
bound: ft(),
|
|
294
294
|
// lifecycle
|
|
295
295
|
on_mount: [],
|
|
296
296
|
on_destroy: [],
|
|
@@ -299,7 +299,7 @@ function ve(i, e, t, r, o, u, a = null, n = [-1]) {
|
|
|
299
299
|
after_update: [],
|
|
300
300
|
context: new Map(e.context || (d ? d.$$.context : [])),
|
|
301
301
|
// everything else
|
|
302
|
-
callbacks:
|
|
302
|
+
callbacks: ft(),
|
|
303
303
|
dirty: n,
|
|
304
304
|
skip_bound: !1,
|
|
305
305
|
root: e.target || d.$$.root
|
|
@@ -308,16 +308,16 @@ function ve(i, e, t, r, o, u, a = null, n = [-1]) {
|
|
|
308
308
|
let f = !1;
|
|
309
309
|
if (c.ctx = t ? t(i, e.props || {}, (h, v, ..._) => {
|
|
310
310
|
const w = _.length ? _[0] : v;
|
|
311
|
-
return c.ctx && o(c.ctx[h], c.ctx[h] = w) && (!c.skip_bound && c.bound[h] && c.bound[h](w), f &&
|
|
311
|
+
return c.ctx && o(c.ctx[h], c.ctx[h] = w) && (!c.skip_bound && c.bound[h] && c.bound[h](w), f && Ri(i, h)), v;
|
|
312
312
|
}) : [], c.update(), f = !0, ae(c.before_update), c.fragment = r ? r(c.ctx) : !1, e.target) {
|
|
313
313
|
if (e.hydrate) {
|
|
314
|
-
const h =
|
|
314
|
+
const h = wi(e.target);
|
|
315
315
|
c.fragment && c.fragment.l(h), h.forEach(O);
|
|
316
316
|
} else
|
|
317
317
|
c.fragment && c.fragment.c();
|
|
318
|
-
e.intro && H(i.$$.fragment), oe(i, e.target, e.anchor),
|
|
318
|
+
e.intro && H(i.$$.fragment), oe(i, e.target, e.anchor), At();
|
|
319
319
|
}
|
|
320
|
-
|
|
320
|
+
Ce(d);
|
|
321
321
|
}
|
|
322
322
|
class Le {
|
|
323
323
|
constructor() {
|
|
@@ -328,7 +328,7 @@ class Le {
|
|
|
328
328
|
*
|
|
329
329
|
* @type {any}
|
|
330
330
|
*/
|
|
331
|
-
|
|
331
|
+
et(this, "$$");
|
|
332
332
|
/**
|
|
333
333
|
* ### PRIVATE API
|
|
334
334
|
*
|
|
@@ -336,7 +336,7 @@ class Le {
|
|
|
336
336
|
*
|
|
337
337
|
* @type {any}
|
|
338
338
|
*/
|
|
339
|
-
|
|
339
|
+
et(this, "$$set");
|
|
340
340
|
}
|
|
341
341
|
/** @returns {void} */
|
|
342
342
|
$destroy() {
|
|
@@ -349,7 +349,7 @@ class Le {
|
|
|
349
349
|
* @returns {() => void}
|
|
350
350
|
*/
|
|
351
351
|
$on(e, t) {
|
|
352
|
-
if (!
|
|
352
|
+
if (!Ot(t))
|
|
353
353
|
return I;
|
|
354
354
|
const r = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
355
355
|
return r.push(t), () => {
|
|
@@ -362,12 +362,12 @@ class Le {
|
|
|
362
362
|
* @returns {void}
|
|
363
363
|
*/
|
|
364
364
|
$set(e) {
|
|
365
|
-
this.$$set && !
|
|
365
|
+
this.$$set && !gi(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
const
|
|
369
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
370
|
-
function
|
|
368
|
+
const zi = "4";
|
|
369
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(zi);
|
|
370
|
+
function Di(i) {
|
|
371
371
|
let e, t;
|
|
372
372
|
return {
|
|
373
373
|
c() {
|
|
@@ -384,12 +384,12 @@ function Oi(i) {
|
|
|
384
384
|
}
|
|
385
385
|
};
|
|
386
386
|
}
|
|
387
|
-
class
|
|
387
|
+
class Bt extends Le {
|
|
388
388
|
constructor(e) {
|
|
389
|
-
super(), ve(this, e, null,
|
|
389
|
+
super(), ve(this, e, null, Di, be, {});
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function Oi(i) {
|
|
393
393
|
let e, t;
|
|
394
394
|
return {
|
|
395
395
|
c() {
|
|
@@ -406,16 +406,16 @@ function Ui(i) {
|
|
|
406
406
|
}
|
|
407
407
|
};
|
|
408
408
|
}
|
|
409
|
-
class
|
|
409
|
+
class Ft extends Le {
|
|
410
410
|
constructor(e) {
|
|
411
|
-
super(), ve(this, e, null,
|
|
411
|
+
super(), ve(this, e, null, Oi, be, {});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function Ui(i) {
|
|
415
415
|
let e, t;
|
|
416
416
|
return {
|
|
417
417
|
c() {
|
|
418
|
-
e = z("img"),
|
|
418
|
+
e = z("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
419
419
|
i[3] + "area.svg") || l(e, "src", t), l(
|
|
420
420
|
e,
|
|
421
421
|
"alt",
|
|
@@ -428,7 +428,7 @@ function Ii(i) {
|
|
|
428
428
|
},
|
|
429
429
|
p(r, o) {
|
|
430
430
|
o & /*iconsBaseUrl*/
|
|
431
|
-
8 && !
|
|
431
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
432
432
|
r[3] + "area.svg") && l(e, "src", t), o & /*placeType*/
|
|
433
433
|
64 && l(
|
|
434
434
|
e,
|
|
@@ -442,11 +442,11 @@ function Ii(i) {
|
|
|
442
442
|
}
|
|
443
443
|
};
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function Ii(i) {
|
|
446
446
|
let e, t;
|
|
447
447
|
return {
|
|
448
448
|
c() {
|
|
449
|
-
e = z("img"),
|
|
449
|
+
e = z("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
450
450
|
i[3] + "reverse.svg") || l(e, "src", t), l(
|
|
451
451
|
e,
|
|
452
452
|
"alt",
|
|
@@ -459,7 +459,7 @@ function Ai(i) {
|
|
|
459
459
|
},
|
|
460
460
|
p(r, o) {
|
|
461
461
|
o & /*iconsBaseUrl*/
|
|
462
|
-
8 && !
|
|
462
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
463
463
|
r[3] + "reverse.svg") && l(e, "src", t), o & /*placeType*/
|
|
464
464
|
64 && l(
|
|
465
465
|
e,
|
|
@@ -473,11 +473,11 @@ function Ai(i) {
|
|
|
473
473
|
}
|
|
474
474
|
};
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function Ai(i) {
|
|
477
477
|
let e, t;
|
|
478
478
|
return {
|
|
479
479
|
c() {
|
|
480
|
-
e = z("img"),
|
|
480
|
+
e = z("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
481
481
|
i[3] + "poi.svg") || l(e, "src", t), l(
|
|
482
482
|
e,
|
|
483
483
|
"alt",
|
|
@@ -490,7 +490,7 @@ function Bi(i) {
|
|
|
490
490
|
},
|
|
491
491
|
p(r, o) {
|
|
492
492
|
o & /*iconsBaseUrl*/
|
|
493
|
-
8 && !
|
|
493
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
494
494
|
r[3] + "poi.svg") && l(e, "src", t), o & /*placeType*/
|
|
495
495
|
64 && l(
|
|
496
496
|
e,
|
|
@@ -504,11 +504,11 @@ function Bi(i) {
|
|
|
504
504
|
}
|
|
505
505
|
};
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function Bi(i) {
|
|
508
508
|
let e, t;
|
|
509
509
|
return {
|
|
510
510
|
c() {
|
|
511
|
-
e = z("img"),
|
|
511
|
+
e = z("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
512
512
|
i[3] + "postal_code.svg") || l(e, "src", t), l(
|
|
513
513
|
e,
|
|
514
514
|
"alt",
|
|
@@ -521,7 +521,7 @@ function Fi(i) {
|
|
|
521
521
|
},
|
|
522
522
|
p(r, o) {
|
|
523
523
|
o & /*iconsBaseUrl*/
|
|
524
|
-
8 && !
|
|
524
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
525
525
|
r[3] + "postal_code.svg") && l(e, "src", t), o & /*placeType*/
|
|
526
526
|
64 && l(
|
|
527
527
|
e,
|
|
@@ -535,11 +535,11 @@ function Fi(i) {
|
|
|
535
535
|
}
|
|
536
536
|
};
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function Fi(i) {
|
|
539
539
|
let e, t;
|
|
540
540
|
return {
|
|
541
541
|
c() {
|
|
542
|
-
e = z("img"),
|
|
542
|
+
e = z("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
543
543
|
i[3] + "street.svg") || l(e, "src", t), l(
|
|
544
544
|
e,
|
|
545
545
|
"alt",
|
|
@@ -552,7 +552,7 @@ function Hi(i) {
|
|
|
552
552
|
},
|
|
553
553
|
p(r, o) {
|
|
554
554
|
o & /*iconsBaseUrl*/
|
|
555
|
-
8 && !
|
|
555
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
556
556
|
r[3] + "street.svg") && l(e, "src", t), o & /*placeType*/
|
|
557
557
|
64 && l(
|
|
558
558
|
e,
|
|
@@ -566,11 +566,11 @@ function Hi(i) {
|
|
|
566
566
|
}
|
|
567
567
|
};
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function Hi(i) {
|
|
570
570
|
let e, t;
|
|
571
571
|
return {
|
|
572
572
|
c() {
|
|
573
|
-
e = z("img"),
|
|
573
|
+
e = z("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
574
574
|
i[3] + "road.svg") || l(e, "src", t), l(
|
|
575
575
|
e,
|
|
576
576
|
"alt",
|
|
@@ -583,7 +583,7 @@ function ji(i) {
|
|
|
583
583
|
},
|
|
584
584
|
p(r, o) {
|
|
585
585
|
o & /*iconsBaseUrl*/
|
|
586
|
-
8 && !
|
|
586
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
587
587
|
r[3] + "road.svg") && l(e, "src", t), o & /*placeType*/
|
|
588
588
|
64 && l(
|
|
589
589
|
e,
|
|
@@ -597,11 +597,11 @@ function ji(i) {
|
|
|
597
597
|
}
|
|
598
598
|
};
|
|
599
599
|
}
|
|
600
|
-
function
|
|
600
|
+
function ji(i) {
|
|
601
601
|
let e, t;
|
|
602
602
|
return {
|
|
603
603
|
c() {
|
|
604
|
-
e = z("img"),
|
|
604
|
+
e = z("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
605
605
|
i[3] + "housenumber.svg") || l(e, "src", t), l(
|
|
606
606
|
e,
|
|
607
607
|
"alt",
|
|
@@ -614,7 +614,7 @@ function Pi(i) {
|
|
|
614
614
|
},
|
|
615
615
|
p(r, o) {
|
|
616
616
|
o & /*iconsBaseUrl*/
|
|
617
|
-
8 && !
|
|
617
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
618
618
|
r[3] + "housenumber.svg") && l(e, "src", t), o & /*placeType*/
|
|
619
619
|
64 && l(
|
|
620
620
|
e,
|
|
@@ -628,11 +628,11 @@ function Pi(i) {
|
|
|
628
628
|
}
|
|
629
629
|
};
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function Pi(i) {
|
|
632
632
|
let e, t, r, o;
|
|
633
633
|
return {
|
|
634
634
|
c() {
|
|
635
|
-
e = z("img"),
|
|
635
|
+
e = z("img"), K(e.src, t = /*imageUrl*/
|
|
636
636
|
i[5]) || l(e, "src", t), l(
|
|
637
637
|
e,
|
|
638
638
|
"alt",
|
|
@@ -641,7 +641,7 @@ function Zi(i) {
|
|
|
641
641
|
), l(e, "class", "svelte-ltkwvy");
|
|
642
642
|
},
|
|
643
643
|
m(u, a) {
|
|
644
|
-
A(u, e, a), r || (o =
|
|
644
|
+
A(u, e, a), r || (o = V(
|
|
645
645
|
e,
|
|
646
646
|
"error",
|
|
647
647
|
/*error_handler*/
|
|
@@ -650,7 +650,7 @@ function Zi(i) {
|
|
|
650
650
|
},
|
|
651
651
|
p(u, a) {
|
|
652
652
|
a & /*imageUrl*/
|
|
653
|
-
32 && !
|
|
653
|
+
32 && !K(e.src, t = /*imageUrl*/
|
|
654
654
|
u[5]) && l(e, "src", t), a & /*category*/
|
|
655
655
|
16 && l(
|
|
656
656
|
e,
|
|
@@ -664,7 +664,7 @@ function Zi(i) {
|
|
|
664
664
|
}
|
|
665
665
|
};
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function Lt(i) {
|
|
668
668
|
let e, t;
|
|
669
669
|
return {
|
|
670
670
|
c() {
|
|
@@ -678,7 +678,7 @@ function _t(i) {
|
|
|
678
678
|
},
|
|
679
679
|
p(r, o) {
|
|
680
680
|
o & /*placeType*/
|
|
681
|
-
64 &&
|
|
681
|
+
64 && We(
|
|
682
682
|
t,
|
|
683
683
|
/*placeType*/
|
|
684
684
|
r[6]
|
|
@@ -689,7 +689,7 @@ function _t(i) {
|
|
|
689
689
|
}
|
|
690
690
|
};
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function Zi(i) {
|
|
693
693
|
let e, t, r, o, u, a, n, d, c, f = (
|
|
694
694
|
/*isReverse*/
|
|
695
695
|
(i[7] ? (
|
|
@@ -702,7 +702,7 @@ function Gi(i) {
|
|
|
702
702
|
), h, v, _ = (
|
|
703
703
|
/*showPlaceType*/
|
|
704
704
|
i[2] === "always" || /*showPlaceType*/
|
|
705
|
-
i[2] && !/*feature*/
|
|
705
|
+
i[2] !== "never" && !/*feature*/
|
|
706
706
|
i[0].address && !/*feature*/
|
|
707
707
|
i[0].id.startsWith("road.") && !/*feature*/
|
|
708
708
|
i[0].id.startsWith("address.") && !/*feature*/
|
|
@@ -723,19 +723,19 @@ function Gi(i) {
|
|
|
723
723
|
1 && (r = null), k & /*feature*/
|
|
724
724
|
1 && (o = null), k & /*feature*/
|
|
725
725
|
1 && (u = null), /*imageUrl*/
|
|
726
|
-
m[5] ?
|
|
726
|
+
m[5] ? Pi : (
|
|
727
727
|
/*feature*/
|
|
728
|
-
m[0].address ?
|
|
729
|
-
m[0].id.startsWith("road.")), t ?
|
|
730
|
-
m[0].id.startsWith("address.")), r ?
|
|
731
|
-
m[0].id.startsWith("postal_code.")), o ?
|
|
732
|
-
m[0].id.startsWith("poi.")), u ?
|
|
728
|
+
m[0].address ? ji : (t == null && (t = !!/*feature*/
|
|
729
|
+
m[0].id.startsWith("road.")), t ? Hi : (r == null && (r = !!/*feature*/
|
|
730
|
+
m[0].id.startsWith("address.")), r ? Fi : (o == null && (o = !!/*feature*/
|
|
731
|
+
m[0].id.startsWith("postal_code.")), o ? Bi : (u == null && (u = !!/*feature*/
|
|
732
|
+
m[0].id.startsWith("poi.")), u ? Ai : (
|
|
733
733
|
/*isReverse*/
|
|
734
|
-
m[7] ?
|
|
734
|
+
m[7] ? Ii : Ui
|
|
735
735
|
)))))
|
|
736
736
|
);
|
|
737
737
|
}
|
|
738
|
-
let G = p(i, -1), b = G(i), g = _ &&
|
|
738
|
+
let G = p(i, -1), b = G(i), g = _ && Lt(i);
|
|
739
739
|
return {
|
|
740
740
|
c() {
|
|
741
741
|
e = z("li"), b.c(), a = J(), n = z("span"), d = z("span"), c = z("span"), h = de(f), v = J(), g && g.c(), w = J(), W = z("span"), E = de(y), l(c, "class", "primary svelte-ltkwvy"), l(d, "class", "svelte-ltkwvy"), l(W, "class", "line2 svelte-ltkwvy"), l(n, "class", "texts svelte-ltkwvy"), l(e, "tabindex", "0"), l(
|
|
@@ -752,13 +752,13 @@ function Gi(i) {
|
|
|
752
752
|
},
|
|
753
753
|
m(m, k) {
|
|
754
754
|
A(m, e, k), b.m(e, null), M(e, a), M(e, n), M(n, d), M(d, c), M(c, h), M(d, v), g && g.m(d, null), M(n, w), M(n, W), M(W, E), C || (R = [
|
|
755
|
-
|
|
755
|
+
V(
|
|
756
756
|
e,
|
|
757
757
|
"mouseenter",
|
|
758
758
|
/*mouseenter_handler*/
|
|
759
759
|
i[12]
|
|
760
760
|
),
|
|
761
|
-
|
|
761
|
+
V(
|
|
762
762
|
e,
|
|
763
763
|
"focus",
|
|
764
764
|
/*focus_handler*/
|
|
@@ -775,22 +775,22 @@ function Gi(i) {
|
|
|
775
775
|
) : (
|
|
776
776
|
/*feature*/
|
|
777
777
|
m[0].place_name.replace(/,.*/, "")
|
|
778
|
-
)) + "") &&
|
|
778
|
+
)) + "") && We(h, f), k & /*showPlaceType, feature, imageUrl*/
|
|
779
779
|
37 && (_ = /*showPlaceType*/
|
|
780
780
|
m[2] === "always" || /*showPlaceType*/
|
|
781
|
-
m[2] && !/*feature*/
|
|
781
|
+
m[2] !== "never" && !/*feature*/
|
|
782
782
|
m[0].address && !/*feature*/
|
|
783
783
|
m[0].id.startsWith("road.") && !/*feature*/
|
|
784
784
|
m[0].id.startsWith("address.") && !/*feature*/
|
|
785
785
|
m[0].id.startsWith("postal_code.") && (!/*feature*/
|
|
786
786
|
m[0].id.startsWith("poi.") || !/*imageUrl*/
|
|
787
787
|
m[5]) && !/*isReverse*/
|
|
788
|
-
m[7]), _ ? g ? g.p(m, k) : (g =
|
|
788
|
+
m[7]), _ ? g ? g.p(m, k) : (g = Lt(m), g.c(), g.m(d, null)) : g && (g.d(1), g = null), k & /*feature*/
|
|
789
789
|
1 && y !== (y = /*isReverse*/
|
|
790
790
|
(m[7] ? "" : (
|
|
791
791
|
/*feature*/
|
|
792
792
|
m[0].place_name.replace(/[^,]*,?\s*/, "")
|
|
793
|
-
)) + "") &&
|
|
793
|
+
)) + "") && We(E, y), k & /*selected*/
|
|
794
794
|
2 && l(
|
|
795
795
|
e,
|
|
796
796
|
"data-selected",
|
|
@@ -811,7 +811,7 @@ function Gi(i) {
|
|
|
811
811
|
}
|
|
812
812
|
};
|
|
813
813
|
}
|
|
814
|
-
function
|
|
814
|
+
function Gi(i, e, t) {
|
|
815
815
|
var R;
|
|
816
816
|
let r, o, { feature: u } = e, { selected: a = !1 } = e, { showPlaceType: n } = e, { missingIconsCache: d } = e, { iconsBaseUrl: c } = e;
|
|
817
817
|
const f = (R = u.properties) == null ? void 0 : R.categories;
|
|
@@ -820,10 +820,10 @@ function qi(i, e, t) {
|
|
|
820
820
|
v && d.add(v), t(10, _++, _);
|
|
821
821
|
}
|
|
822
822
|
function y(p) {
|
|
823
|
-
|
|
823
|
+
ht.call(this, i, p);
|
|
824
824
|
}
|
|
825
825
|
function E(p) {
|
|
826
|
-
|
|
826
|
+
ht.call(this, i, p);
|
|
827
827
|
}
|
|
828
828
|
const C = () => W();
|
|
829
829
|
return i.$$set = (p) => {
|
|
@@ -855,9 +855,9 @@ function qi(i, e, t) {
|
|
|
855
855
|
C
|
|
856
856
|
];
|
|
857
857
|
}
|
|
858
|
-
class
|
|
858
|
+
class qi extends Le {
|
|
859
859
|
constructor(e) {
|
|
860
|
-
super(), ve(this, e,
|
|
860
|
+
super(), ve(this, e, Gi, Zi, be, {
|
|
861
861
|
feature: 0,
|
|
862
862
|
selected: 1,
|
|
863
863
|
showPlaceType: 2,
|
|
@@ -866,7 +866,7 @@ class Qi extends Le {
|
|
|
866
866
|
});
|
|
867
867
|
}
|
|
868
868
|
}
|
|
869
|
-
function
|
|
869
|
+
function Qi(i) {
|
|
870
870
|
let e;
|
|
871
871
|
return {
|
|
872
872
|
c() {
|
|
@@ -885,7 +885,7 @@ function xi(i) {
|
|
|
885
885
|
}
|
|
886
886
|
class Ki extends Le {
|
|
887
887
|
constructor(e) {
|
|
888
|
-
super(), ve(this, e, null,
|
|
888
|
+
super(), ve(this, e, null, Qi, be, {});
|
|
889
889
|
}
|
|
890
890
|
}
|
|
891
891
|
function Vi(i) {
|
|
@@ -905,12 +905,12 @@ function Vi(i) {
|
|
|
905
905
|
}
|
|
906
906
|
};
|
|
907
907
|
}
|
|
908
|
-
class
|
|
908
|
+
class xi extends Le {
|
|
909
909
|
constructor(e) {
|
|
910
910
|
super(), ve(this, e, null, Vi, be, {});
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
|
-
function
|
|
913
|
+
function Ji(i) {
|
|
914
914
|
let e, t, r;
|
|
915
915
|
return {
|
|
916
916
|
c() {
|
|
@@ -927,31 +927,31 @@ function Xi(i) {
|
|
|
927
927
|
}
|
|
928
928
|
};
|
|
929
929
|
}
|
|
930
|
-
class
|
|
930
|
+
class Xi extends Le {
|
|
931
931
|
constructor(e) {
|
|
932
|
-
super(), ve(this, e, null,
|
|
932
|
+
super(), ve(this, e, null, Ji, be, {});
|
|
933
933
|
}
|
|
934
934
|
}
|
|
935
|
-
function
|
|
935
|
+
function Yi(i, e, t) {
|
|
936
936
|
const r = e[1], o = e[0], u = r - o;
|
|
937
937
|
return i === r && t ? i : ((i - o) % u + u) % u + o;
|
|
938
938
|
}
|
|
939
|
-
function
|
|
939
|
+
function _t(i) {
|
|
940
940
|
const e = [...i];
|
|
941
941
|
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;
|
|
942
942
|
}
|
|
943
|
-
let
|
|
944
|
-
async function
|
|
943
|
+
let Me;
|
|
944
|
+
async function $i(i, e, t) {
|
|
945
945
|
const r = i == null ? void 0 : i.getCenterAndZoom();
|
|
946
946
|
for (const o of e ?? [])
|
|
947
947
|
if (!(r && (o.minZoom != null && o.minZoom > r[0] || o.maxZoom != null && o.maxZoom < r[0]))) {
|
|
948
948
|
if (o.type === "fixed")
|
|
949
949
|
return o.coordinates.join(",");
|
|
950
950
|
e: if (o.type === "client-geolocation") {
|
|
951
|
-
if (
|
|
952
|
-
if (!
|
|
951
|
+
if (Me && o.cachedLocationExpiry && Me.time + o.cachedLocationExpiry > Date.now()) {
|
|
952
|
+
if (!Me.coords)
|
|
953
953
|
break e;
|
|
954
|
-
return
|
|
954
|
+
return Me.coords;
|
|
955
955
|
}
|
|
956
956
|
let u;
|
|
957
957
|
try {
|
|
@@ -972,7 +972,7 @@ async function er(i, e, t) {
|
|
|
972
972
|
}), u;
|
|
973
973
|
} catch {
|
|
974
974
|
} finally {
|
|
975
|
-
o.cachedLocationExpiry && (
|
|
975
|
+
o.cachedLocationExpiry && (Me = {
|
|
976
976
|
time: Date.now(),
|
|
977
977
|
coords: u
|
|
978
978
|
});
|
|
@@ -986,8 +986,8 @@ async function er(i, e, t) {
|
|
|
986
986
|
return r[1].toFixed(6) + "," + r[2].toFixed(6);
|
|
987
987
|
}
|
|
988
988
|
}
|
|
989
|
-
const
|
|
990
|
-
function
|
|
989
|
+
const er = /^(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, yt = /^([+-]?[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,})$/, wt = /^(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, Et = /^(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, St = /^(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, pt = /^(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;
|
|
990
|
+
function tr(i) {
|
|
991
991
|
if (!["DMS", "DM", "DD"].includes(i))
|
|
992
992
|
throw new Error("invalid format specified");
|
|
993
993
|
if (this.decimalCoordinates && this.decimalCoordinates.trim()) {
|
|
@@ -996,7 +996,7 @@ function ir(i) {
|
|
|
996
996
|
i == "DD" && (d = `${o}° ${a}, ${u}° ${n}`);
|
|
997
997
|
const c = Math.floor(o), f = Math.floor(u), h = (o - c) * 60, v = (u - f) * 60;
|
|
998
998
|
if (i == "DM") {
|
|
999
|
-
let _ =
|
|
999
|
+
let _ = Tt(h, 3).toFixed(3).padStart(6, "0"), w = Tt(v, 3).toFixed(3).padStart(6, "0");
|
|
1000
1000
|
_.endsWith(".000") && w.endsWith(".000") && (_ = _.replace(/\.000$/, ""), w = w.replace(/\.000$/, "")), d = `${c}° ${_}' ${a}, ${f}° ${w}' ${n}`;
|
|
1001
1001
|
}
|
|
1002
1002
|
if (i == "DMS") {
|
|
@@ -1009,22 +1009,22 @@ function ir(i) {
|
|
|
1009
1009
|
} else
|
|
1010
1010
|
throw new Error("no decimal coordinates to convert");
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1012
|
+
function Tt(i, e) {
|
|
1013
1013
|
const t = Math.pow(10, e);
|
|
1014
1014
|
return Math.round((i + Number.EPSILON) * t) / t;
|
|
1015
1015
|
}
|
|
1016
|
-
function
|
|
1016
|
+
function st(i, e) {
|
|
1017
1017
|
e || (e = 5), i = i.replace(/\s+/g, " ").trim();
|
|
1018
1018
|
let t = null, r = null, o = "", u = "", a = null, n = [], d = !1;
|
|
1019
|
-
if (
|
|
1019
|
+
if (er.test(i))
|
|
1020
1020
|
throw new Error("invalid coordinate value");
|
|
1021
|
-
if (
|
|
1022
|
-
if (n =
|
|
1021
|
+
if (yt.test(i))
|
|
1022
|
+
if (n = yt.exec(i), d = ke(n), d)
|
|
1023
1023
|
t = Math.abs(n[1]) + n[2] / 60, Number(n[1]) < 0 && (t *= -1), r = Math.abs(n[3]) + n[4] / 60, Number(n[3]) < 0 && (r *= -1), a = "DM";
|
|
1024
1024
|
else
|
|
1025
1025
|
throw new Error("invalid coordinate format");
|
|
1026
|
-
else if (
|
|
1027
|
-
if (n =
|
|
1026
|
+
else if (wt.test(i))
|
|
1027
|
+
if (n = wt.exec(i), d = ke(n), d) {
|
|
1028
1028
|
if (t = n[2], r = n[6], t.includes(",") && (t = t.replace(",", ".")), r.includes(",") && (r = r.replace(",", ".")), a = "DD", Number(Math.round(t)) == Number(t))
|
|
1029
1029
|
throw new Error("integer only coordinate provided");
|
|
1030
1030
|
if (Number(Math.round(r)) == Number(r))
|
|
@@ -1032,18 +1032,18 @@ function at(i, e) {
|
|
|
1032
1032
|
n[1] ? (o = n[1], u = n[5]) : n[4] && (o = n[4], u = n[8]);
|
|
1033
1033
|
} else
|
|
1034
1034
|
throw new Error("invalid decimal coordinate format");
|
|
1035
|
-
else if (
|
|
1036
|
-
if (n =
|
|
1035
|
+
else if (Et.test(i))
|
|
1036
|
+
if (n = Et.exec(i), d = ke(n), d)
|
|
1037
1037
|
t = Math.abs(parseInt(n[2])), n[4] && (t += n[4] / 60, a = "DM"), n[6] && (t += n[6].replace(",", ".") / 3600, a = "DMS"), parseInt(n[2]) < 0 && (t = -1 * t), r = Math.abs(parseInt(n[9])), n[11] && (r += n[11] / 60), n[13] && (r += n[13].replace(",", ".") / 3600), parseInt(n[9]) < 0 && (r = -1 * r), n[1] ? (o = n[1], u = n[8]) : n[7] && (o = n[7], u = n[14]);
|
|
1038
1038
|
else
|
|
1039
1039
|
throw new Error("invalid DMS coordinates format");
|
|
1040
|
-
else if (
|
|
1041
|
-
if (n =
|
|
1040
|
+
else if (St.test(i))
|
|
1041
|
+
if (n = St.exec(i), d = ke(n), d)
|
|
1042
1042
|
t = Math.abs(parseInt(n[2])), n[4] && (t += n[4] / 60, a = "DM"), n[6] && (t += n[6] / 3600, a = "DMS"), parseInt(n[2]) < 0 && (t = -1 * t), r = Math.abs(parseInt(n[10])), n[12] && (r += n[12] / 60), n[14] && (r += n[14] / 3600), parseInt(n[10]) < 0 && (r = -1 * r), n[1] ? (o = n[1], u = n[9]) : n[8] && (o = n[8], u = n[16]);
|
|
1043
1043
|
else
|
|
1044
1044
|
throw new Error("invalid DMS coordinates format");
|
|
1045
|
-
else if (
|
|
1046
|
-
if (n =
|
|
1045
|
+
else if (pt.test(i)) {
|
|
1046
|
+
if (n = pt.exec(i), d = ke(n), n.filter((c) => c).length <= 5)
|
|
1047
1047
|
throw new Error("invalid coordinates format");
|
|
1048
1048
|
if (d)
|
|
1049
1049
|
t = Math.abs(parseInt(n[2])), n[4] && (t += n[4].replace(",", ".") / 60, a = "DM"), n[6] && (t += n[6].replace(",", ".") / 3600, a = "DMS"), parseInt(n[2]) < 0 && (t = -1 * t), r = Math.abs(parseInt(n[10])), n[12] && (r += n[12].replace(",", ".") / 60), n[14] && (r += n[14].replace(",", ".") / 3600), parseInt(n[10]) < 0 && (r = -1 * r), n[1] ? (o = n[1], u = n[9]) : n[8] && (o = n[8], u = n[16]);
|
|
@@ -1097,13 +1097,13 @@ function at(i, e) {
|
|
|
1097
1097
|
decimalLongitude: r,
|
|
1098
1098
|
decimalCoordinates: `${t},${r}`,
|
|
1099
1099
|
originalFormat: a,
|
|
1100
|
-
closeEnough:
|
|
1101
|
-
toCoordinateFormat:
|
|
1100
|
+
closeEnough: ir,
|
|
1101
|
+
toCoordinateFormat: tr
|
|
1102
1102
|
});
|
|
1103
1103
|
} else
|
|
1104
1104
|
throw new Error("coordinates pattern match failed");
|
|
1105
1105
|
}
|
|
1106
|
-
function
|
|
1106
|
+
function ke(i) {
|
|
1107
1107
|
if (!isNaN(i[0]))
|
|
1108
1108
|
return !1;
|
|
1109
1109
|
const e = [...i];
|
|
@@ -1122,28 +1122,28 @@ function Ce(i) {
|
|
|
1122
1122
|
}
|
|
1123
1123
|
return !0;
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1125
|
+
function Nt(i, e) {
|
|
1126
1126
|
const t = Math.abs(i - e);
|
|
1127
1127
|
return Number(t.toFixed(6)) <= 1e-5;
|
|
1128
1128
|
}
|
|
1129
|
-
function
|
|
1129
|
+
function ir(i) {
|
|
1130
1130
|
if (!i)
|
|
1131
1131
|
throw new Error("coords must be provided");
|
|
1132
1132
|
if (i.includes(",")) {
|
|
1133
1133
|
const e = i.split(",");
|
|
1134
1134
|
if (Number(e[0]) == NaN || Number(e[1]) == NaN)
|
|
1135
1135
|
throw new Error("coords are not valid decimals");
|
|
1136
|
-
return
|
|
1136
|
+
return Nt(this.decimalLatitude, Number(e[0])) && Nt(this.decimalLongitude, e[1]);
|
|
1137
1137
|
} else
|
|
1138
1138
|
throw new Error("coords being tested must be separated by a comma");
|
|
1139
1139
|
}
|
|
1140
|
-
const
|
|
1140
|
+
const rr = Object.freeze({
|
|
1141
1141
|
DMS: "DMS",
|
|
1142
1142
|
DM: "DM",
|
|
1143
1143
|
DD: "DD"
|
|
1144
1144
|
});
|
|
1145
|
-
|
|
1146
|
-
const
|
|
1145
|
+
st.to = rr;
|
|
1146
|
+
const nr = [
|
|
1147
1147
|
{
|
|
1148
1148
|
verbatimCoordinates: "40.123, -74.123",
|
|
1149
1149
|
verbatimLatitude: "40.123",
|
|
@@ -1284,10 +1284,10 @@ const or = [
|
|
|
1284
1284
|
verbatimLatitude: "40 7 22.8",
|
|
1285
1285
|
verbatimLongitude: "-74 7 22.8"
|
|
1286
1286
|
}
|
|
1287
|
-
],
|
|
1287
|
+
], or = {
|
|
1288
1288
|
decimalLatitude: 40.123,
|
|
1289
1289
|
decimalLongitude: -74.123
|
|
1290
|
-
},
|
|
1290
|
+
}, sr = [
|
|
1291
1291
|
{
|
|
1292
1292
|
verbatimCoordinates: `50°4'17.698"south, 14°24'2.826"east`,
|
|
1293
1293
|
verbatimLatitude: `50°4'17.698"south`,
|
|
@@ -1372,7 +1372,7 @@ const or = [
|
|
|
1372
1372
|
decimalLatitude: -18.4,
|
|
1373
1373
|
decimalLongitude: 22.75
|
|
1374
1374
|
}
|
|
1375
|
-
],
|
|
1375
|
+
], ar = [
|
|
1376
1376
|
{
|
|
1377
1377
|
verbatimCoordinates: "10.432342S 10.6345345E",
|
|
1378
1378
|
verbatimLatitude: "10.432342S",
|
|
@@ -1507,20 +1507,20 @@ const or = [
|
|
|
1507
1507
|
decimalLongitude: 18.33453
|
|
1508
1508
|
}
|
|
1509
1509
|
];
|
|
1510
|
-
function
|
|
1510
|
+
function lr() {
|
|
1511
1511
|
const i = [];
|
|
1512
|
-
return
|
|
1513
|
-
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...
|
|
1514
|
-
}), [...i, ...
|
|
1515
|
-
}
|
|
1516
|
-
const
|
|
1517
|
-
|
|
1518
|
-
const
|
|
1519
|
-
function
|
|
1512
|
+
return nr.forEach((e) => {
|
|
1513
|
+
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...or });
|
|
1514
|
+
}), [...i, ...sr, ...ar];
|
|
1515
|
+
}
|
|
1516
|
+
const ur = lr();
|
|
1517
|
+
st.formats = ur.map((i) => i.verbatimCoordinates);
|
|
1518
|
+
const cr = st;
|
|
1519
|
+
function Mt(i, e, t) {
|
|
1520
1520
|
const r = i.slice();
|
|
1521
|
-
return r[
|
|
1521
|
+
return r[86] = e[t], r[88] = t, r;
|
|
1522
1522
|
}
|
|
1523
|
-
function
|
|
1523
|
+
function kt(i) {
|
|
1524
1524
|
let e, t;
|
|
1525
1525
|
return e = new Ki({}), {
|
|
1526
1526
|
c() {
|
|
@@ -1540,9 +1540,9 @@ function Ct(i) {
|
|
|
1540
1540
|
}
|
|
1541
1541
|
};
|
|
1542
1542
|
}
|
|
1543
|
-
function
|
|
1543
|
+
function Ct(i) {
|
|
1544
1544
|
let e, t, r, o, u;
|
|
1545
|
-
return t = new
|
|
1545
|
+
return t = new xi({}), {
|
|
1546
1546
|
c() {
|
|
1547
1547
|
e = z("button"), fe(t.$$.fragment), l(e, "type", "button"), l(
|
|
1548
1548
|
e,
|
|
@@ -1557,11 +1557,11 @@ function Wt(i) {
|
|
|
1557
1557
|
);
|
|
1558
1558
|
},
|
|
1559
1559
|
m(a, n) {
|
|
1560
|
-
A(a, e, n), oe(t, e, null), r = !0, o || (u =
|
|
1560
|
+
A(a, e, n), oe(t, e, null), r = !0, o || (u = V(
|
|
1561
1561
|
e,
|
|
1562
1562
|
"click",
|
|
1563
1563
|
/*click_handler_2*/
|
|
1564
|
-
i[
|
|
1564
|
+
i[70]
|
|
1565
1565
|
), o = !0);
|
|
1566
1566
|
},
|
|
1567
1567
|
p(a, n) {
|
|
@@ -1590,20 +1590,20 @@ function Wt(i) {
|
|
|
1590
1590
|
}
|
|
1591
1591
|
};
|
|
1592
1592
|
}
|
|
1593
|
-
function
|
|
1594
|
-
let e, t = [], r = /* @__PURE__ */ new Map(), o, u, a, n =
|
|
1593
|
+
function dr(i) {
|
|
1594
|
+
let e, t = [], r = /* @__PURE__ */ new Map(), o, u, a, n = vt(
|
|
1595
1595
|
/*listFeatures*/
|
|
1596
1596
|
i[14]
|
|
1597
1597
|
);
|
|
1598
1598
|
const d = (c) => (
|
|
1599
1599
|
/*feature*/
|
|
1600
|
-
c[
|
|
1601
|
-
(c[
|
|
1602
|
-
c[
|
|
1600
|
+
c[86].id + /*feature*/
|
|
1601
|
+
(c[86].address ? "," + /*feature*/
|
|
1602
|
+
c[86].address : "")
|
|
1603
1603
|
);
|
|
1604
1604
|
for (let c = 0; c < n.length; c += 1) {
|
|
1605
|
-
let f =
|
|
1606
|
-
r.set(h, t[c] =
|
|
1605
|
+
let f = Mt(i, n, c), h = d(f);
|
|
1606
|
+
r.set(h, t[c] = Wt(h, f));
|
|
1607
1607
|
}
|
|
1608
1608
|
return {
|
|
1609
1609
|
c() {
|
|
@@ -1617,26 +1617,26 @@ function fr(i) {
|
|
|
1617
1617
|
for (let h = 0; h < t.length; h += 1)
|
|
1618
1618
|
t[h] && t[h].m(e, null);
|
|
1619
1619
|
o = !0, u || (a = [
|
|
1620
|
-
|
|
1620
|
+
V(
|
|
1621
1621
|
e,
|
|
1622
1622
|
"mouseleave",
|
|
1623
1623
|
/*mouseleave_handler*/
|
|
1624
|
-
i[
|
|
1624
|
+
i[74]
|
|
1625
1625
|
),
|
|
1626
|
-
|
|
1626
|
+
V(
|
|
1627
1627
|
e,
|
|
1628
1628
|
"blur",
|
|
1629
1629
|
/*blur_handler_1*/
|
|
1630
|
-
i[
|
|
1630
|
+
i[75]
|
|
1631
1631
|
)
|
|
1632
1632
|
], u = !0);
|
|
1633
1633
|
},
|
|
1634
1634
|
p(c, f) {
|
|
1635
1635
|
f[0] & /*listFeatures, showPlaceType, selectedItemIndex, missingIconsCache, iconsBaseUrl, pick*/
|
|
1636
|
-
17880064 && (n =
|
|
1636
|
+
17880064 && (n = vt(
|
|
1637
1637
|
/*listFeatures*/
|
|
1638
1638
|
c[14]
|
|
1639
|
-
),
|
|
1639
|
+
), je(), t = Wi(t, f, d, 1, c, n, r, e, Ci, Wt, null, Mt), Pe());
|
|
1640
1640
|
},
|
|
1641
1641
|
i(c) {
|
|
1642
1642
|
if (!o) {
|
|
@@ -1658,9 +1658,9 @@ function fr(i) {
|
|
|
1658
1658
|
}
|
|
1659
1659
|
};
|
|
1660
1660
|
}
|
|
1661
|
-
function
|
|
1661
|
+
function fr(i) {
|
|
1662
1662
|
let e, t, r, o, u, a;
|
|
1663
|
-
return t = new
|
|
1663
|
+
return t = new Ft({}), {
|
|
1664
1664
|
c() {
|
|
1665
1665
|
e = z("div"), fe(t.$$.fragment), r = J(), o = z("div"), u = de(
|
|
1666
1666
|
/*noResultsMessage*/
|
|
@@ -1672,7 +1672,7 @@ function mr(i) {
|
|
|
1672
1672
|
},
|
|
1673
1673
|
p(n, d) {
|
|
1674
1674
|
(!a || d[0] & /*noResultsMessage*/
|
|
1675
|
-
128) &&
|
|
1675
|
+
128) && We(
|
|
1676
1676
|
u,
|
|
1677
1677
|
/*noResultsMessage*/
|
|
1678
1678
|
n[7]
|
|
@@ -1689,7 +1689,7 @@ function mr(i) {
|
|
|
1689
1689
|
}
|
|
1690
1690
|
};
|
|
1691
1691
|
}
|
|
1692
|
-
function
|
|
1692
|
+
function mr(i) {
|
|
1693
1693
|
let e = "", t;
|
|
1694
1694
|
return {
|
|
1695
1695
|
c() {
|
|
@@ -1706,9 +1706,9 @@ function gr(i) {
|
|
|
1706
1706
|
}
|
|
1707
1707
|
};
|
|
1708
1708
|
}
|
|
1709
|
-
function
|
|
1709
|
+
function gr(i) {
|
|
1710
1710
|
let e, t, r, o, u, a, n, d, c, f, h;
|
|
1711
|
-
return t = new
|
|
1711
|
+
return t = new Ft({}), d = new Bt({}), {
|
|
1712
1712
|
c() {
|
|
1713
1713
|
e = z("div"), fe(t.$$.fragment), r = J(), o = z("div"), u = de(
|
|
1714
1714
|
/*errorMessage*/
|
|
@@ -1716,16 +1716,16 @@ function hr(i) {
|
|
|
1716
1716
|
), a = J(), n = z("button"), fe(d.$$.fragment), l(o, "class", "svelte-bz0zu3"), l(n, "class", "svelte-bz0zu3"), l(e, "class", "error svelte-bz0zu3");
|
|
1717
1717
|
},
|
|
1718
1718
|
m(v, _) {
|
|
1719
|
-
A(v, e, _), oe(t, e, null), M(e, r), M(e, o), M(o, u), M(e, a), M(e, n), oe(d, n, null), c = !0, f || (h =
|
|
1719
|
+
A(v, e, _), oe(t, e, null), M(e, r), M(e, o), M(o, u), M(e, a), M(e, n), oe(d, n, null), c = !0, f || (h = V(
|
|
1720
1720
|
n,
|
|
1721
1721
|
"click",
|
|
1722
1722
|
/*click_handler_3*/
|
|
1723
|
-
i[
|
|
1723
|
+
i[71]
|
|
1724
1724
|
), f = !0);
|
|
1725
1725
|
},
|
|
1726
1726
|
p(v, _) {
|
|
1727
1727
|
(!c || _[0] & /*errorMessage*/
|
|
1728
|
-
64) &&
|
|
1728
|
+
64) && We(
|
|
1729
1729
|
u,
|
|
1730
1730
|
/*errorMessage*/
|
|
1731
1731
|
v[6]
|
|
@@ -1742,31 +1742,31 @@ function hr(i) {
|
|
|
1742
1742
|
}
|
|
1743
1743
|
};
|
|
1744
1744
|
}
|
|
1745
|
-
function
|
|
1745
|
+
function Wt(i, e) {
|
|
1746
1746
|
let t, r, o;
|
|
1747
1747
|
function u() {
|
|
1748
1748
|
return (
|
|
1749
1749
|
/*mouseenter_handler*/
|
|
1750
|
-
e[
|
|
1750
|
+
e[72](
|
|
1751
1751
|
/*i*/
|
|
1752
|
-
e[
|
|
1752
|
+
e[88]
|
|
1753
1753
|
)
|
|
1754
1754
|
);
|
|
1755
1755
|
}
|
|
1756
1756
|
function a() {
|
|
1757
1757
|
return (
|
|
1758
1758
|
/*focus_handler_1*/
|
|
1759
|
-
e[
|
|
1759
|
+
e[73](
|
|
1760
1760
|
/*feature*/
|
|
1761
|
-
e[
|
|
1761
|
+
e[86]
|
|
1762
1762
|
)
|
|
1763
1763
|
);
|
|
1764
1764
|
}
|
|
1765
|
-
return r = new
|
|
1765
|
+
return r = new qi({
|
|
1766
1766
|
props: {
|
|
1767
1767
|
feature: (
|
|
1768
1768
|
/*feature*/
|
|
1769
|
-
e[
|
|
1769
|
+
e[86]
|
|
1770
1770
|
),
|
|
1771
1771
|
showPlaceType: (
|
|
1772
1772
|
/*showPlaceType*/
|
|
@@ -1775,7 +1775,7 @@ function Rt(i, e) {
|
|
|
1775
1775
|
selected: (
|
|
1776
1776
|
/*selectedItemIndex*/
|
|
1777
1777
|
e[15] === /*i*/
|
|
1778
|
-
e[
|
|
1778
|
+
e[88]
|
|
1779
1779
|
),
|
|
1780
1780
|
missingIconsCache: (
|
|
1781
1781
|
/*missingIconsCache*/
|
|
@@ -1790,7 +1790,7 @@ function Rt(i, e) {
|
|
|
1790
1790
|
key: i,
|
|
1791
1791
|
first: null,
|
|
1792
1792
|
c() {
|
|
1793
|
-
t =
|
|
1793
|
+
t = _i(), fe(r.$$.fragment), this.first = t;
|
|
1794
1794
|
},
|
|
1795
1795
|
m(n, d) {
|
|
1796
1796
|
A(n, t, d), oe(r, n, d), o = !0;
|
|
@@ -1800,12 +1800,12 @@ function Rt(i, e) {
|
|
|
1800
1800
|
const c = {};
|
|
1801
1801
|
d[0] & /*listFeatures*/
|
|
1802
1802
|
16384 && (c.feature = /*feature*/
|
|
1803
|
-
e[
|
|
1803
|
+
e[86]), d[0] & /*showPlaceType*/
|
|
1804
1804
|
1024 && (c.showPlaceType = /*showPlaceType*/
|
|
1805
1805
|
e[10]), d[0] & /*selectedItemIndex, listFeatures*/
|
|
1806
1806
|
49152 && (c.selected = /*selectedItemIndex*/
|
|
1807
1807
|
e[15] === /*i*/
|
|
1808
|
-
e[
|
|
1808
|
+
e[88]), d[0] & /*iconsBaseUrl*/
|
|
1809
1809
|
4096 && (c.iconsBaseUrl = /*iconsBaseUrl*/
|
|
1810
1810
|
e[12]), r.$set(c);
|
|
1811
1811
|
},
|
|
@@ -1820,26 +1820,26 @@ function Rt(i, e) {
|
|
|
1820
1820
|
}
|
|
1821
1821
|
};
|
|
1822
1822
|
}
|
|
1823
|
-
function
|
|
1823
|
+
function hr(i) {
|
|
1824
1824
|
let e, t, r, o, u, a, n, d, c, f, h, v, _, w, W, y, E, C, R, p, G, b = !1;
|
|
1825
|
-
u = new
|
|
1825
|
+
u = new Xi({}), h = new Bt({});
|
|
1826
1826
|
let g = (
|
|
1827
1827
|
/*abortController*/
|
|
1828
|
-
i[19] &&
|
|
1828
|
+
i[19] && kt()
|
|
1829
1829
|
), m = (
|
|
1830
|
-
/*
|
|
1831
|
-
i[5]
|
|
1830
|
+
/*reverse*/
|
|
1831
|
+
i[5] !== "never" && Ct(i)
|
|
1832
1832
|
);
|
|
1833
1833
|
const k = (
|
|
1834
1834
|
/*#slots*/
|
|
1835
|
-
i[
|
|
1836
|
-
), j =
|
|
1835
|
+
i[62].default
|
|
1836
|
+
), j = hi(
|
|
1837
1837
|
k,
|
|
1838
1838
|
i,
|
|
1839
1839
|
/*$$scope*/
|
|
1840
|
-
i[
|
|
1840
|
+
i[61],
|
|
1841
1841
|
null
|
|
1842
|
-
), X = [
|
|
1842
|
+
), X = [gr, mr, fr, dr], ee = [];
|
|
1843
1843
|
function B(L, F) {
|
|
1844
1844
|
var te, _e;
|
|
1845
1845
|
return (
|
|
@@ -1879,7 +1879,7 @@ function br(i) {
|
|
|
1879
1879
|
"displayable",
|
|
1880
1880
|
/*searchValue*/
|
|
1881
1881
|
i[1] !== ""
|
|
1882
|
-
), l(r, "class", "input-group svelte-bz0zu3"), l(t, "tabindex", "0"), l(t, "class", C =
|
|
1882
|
+
), l(r, "class", "input-group svelte-bz0zu3"), l(t, "tabindex", "0"), l(t, "class", C = mt(
|
|
1883
1883
|
/*className*/
|
|
1884
1884
|
i[2]
|
|
1885
1885
|
) + " svelte-bz0zu3"), ce(
|
|
@@ -1891,54 +1891,54 @@ function br(i) {
|
|
|
1891
1891
|
);
|
|
1892
1892
|
},
|
|
1893
1893
|
m(L, F) {
|
|
1894
|
-
A(L, e, F), A(L, t, F), M(t, r), M(r, o), oe(u, o, null), M(r, a), M(r, n), i[
|
|
1894
|
+
A(L, e, F), A(L, t, F), M(t, r), M(r, o), oe(u, o, null), M(r, a), M(r, n), i[64](n), gt(
|
|
1895
1895
|
n,
|
|
1896
1896
|
/*searchValue*/
|
|
1897
1897
|
i[1]
|
|
1898
1898
|
), M(r, d), M(r, c), M(c, f), oe(h, f, null), M(c, v), g && g.m(c, null), M(r, _), m && m.m(r, null), M(r, w), j && j.m(r, null), M(t, W), ~y && ee[y].m(t, null), R = !0, p || (G = [
|
|
1899
|
-
|
|
1899
|
+
V(
|
|
1900
1900
|
o,
|
|
1901
1901
|
"click",
|
|
1902
1902
|
/*click_handler*/
|
|
1903
|
-
i[
|
|
1903
|
+
i[63]
|
|
1904
1904
|
),
|
|
1905
|
-
|
|
1905
|
+
V(
|
|
1906
1906
|
n,
|
|
1907
1907
|
"input",
|
|
1908
1908
|
/*input_1_input_handler*/
|
|
1909
|
-
i[
|
|
1909
|
+
i[65]
|
|
1910
1910
|
),
|
|
1911
|
-
|
|
1911
|
+
V(
|
|
1912
1912
|
n,
|
|
1913
1913
|
"focus",
|
|
1914
1914
|
/*focus_handler*/
|
|
1915
|
-
i[
|
|
1915
|
+
i[66]
|
|
1916
1916
|
),
|
|
1917
|
-
|
|
1917
|
+
V(
|
|
1918
1918
|
n,
|
|
1919
1919
|
"blur",
|
|
1920
1920
|
/*blur_handler*/
|
|
1921
|
-
i[
|
|
1921
|
+
i[67]
|
|
1922
1922
|
),
|
|
1923
|
-
|
|
1923
|
+
V(
|
|
1924
1924
|
n,
|
|
1925
1925
|
"keydown",
|
|
1926
1926
|
/*handleKeyDown*/
|
|
1927
1927
|
i[22]
|
|
1928
1928
|
),
|
|
1929
|
-
|
|
1929
|
+
V(
|
|
1930
1930
|
n,
|
|
1931
1931
|
"input",
|
|
1932
1932
|
/*input_handler*/
|
|
1933
|
-
i[
|
|
1933
|
+
i[68]
|
|
1934
1934
|
),
|
|
1935
|
-
|
|
1935
|
+
V(
|
|
1936
1936
|
f,
|
|
1937
1937
|
"click",
|
|
1938
1938
|
/*click_handler_1*/
|
|
1939
|
-
i[
|
|
1939
|
+
i[69]
|
|
1940
1940
|
),
|
|
1941
|
-
|
|
1941
|
+
V(t, "submit", yi(
|
|
1942
1942
|
/*handleSubmit*/
|
|
1943
1943
|
i[21]
|
|
1944
1944
|
))
|
|
@@ -1959,7 +1959,7 @@ function br(i) {
|
|
|
1959
1959
|
L[8]
|
|
1960
1960
|
), F[0] & /*searchValue*/
|
|
1961
1961
|
2 && n.value !== /*searchValue*/
|
|
1962
|
-
L[1] &&
|
|
1962
|
+
L[1] && gt(
|
|
1963
1963
|
n,
|
|
1964
1964
|
/*searchValue*/
|
|
1965
1965
|
L[1]
|
|
@@ -1971,42 +1971,42 @@ function br(i) {
|
|
|
1971
1971
|
L[3]
|
|
1972
1972
|
), /*abortController*/
|
|
1973
1973
|
L[19] ? g ? F[0] & /*abortController*/
|
|
1974
|
-
524288 && H(g, 1) : (g =
|
|
1974
|
+
524288 && H(g, 1) : (g = kt(), g.c(), H(g, 1), g.m(c, null)) : g && (je(), Q(g, 1, 1, () => {
|
|
1975
1975
|
g = null;
|
|
1976
|
-
}),
|
|
1976
|
+
}), Pe()), (!R || F[0] & /*searchValue*/
|
|
1977
1977
|
2) && ce(
|
|
1978
1978
|
c,
|
|
1979
1979
|
"displayable",
|
|
1980
1980
|
/*searchValue*/
|
|
1981
1981
|
L[1] !== ""
|
|
1982
|
-
), /*
|
|
1983
|
-
L[5]
|
|
1984
|
-
32 && H(m, 1)) : (m =
|
|
1982
|
+
), /*reverse*/
|
|
1983
|
+
L[5] !== "never" ? m ? (m.p(L, F), F[0] & /*reverse*/
|
|
1984
|
+
32 && H(m, 1)) : (m = Ct(L), m.c(), H(m, 1), m.m(r, w)) : m && (je(), Q(m, 1, 1, () => {
|
|
1985
1985
|
m = null;
|
|
1986
|
-
}),
|
|
1987
|
-
|
|
1986
|
+
}), Pe()), j && j.p && (!R || F[1] & /*$$scope*/
|
|
1987
|
+
1073741824) && vi(
|
|
1988
1988
|
j,
|
|
1989
1989
|
k,
|
|
1990
1990
|
L,
|
|
1991
1991
|
/*$$scope*/
|
|
1992
|
-
L[
|
|
1993
|
-
R ?
|
|
1992
|
+
L[61],
|
|
1993
|
+
R ? bi(
|
|
1994
1994
|
k,
|
|
1995
1995
|
/*$$scope*/
|
|
1996
|
-
L[
|
|
1996
|
+
L[61],
|
|
1997
1997
|
F,
|
|
1998
1998
|
null
|
|
1999
|
-
) :
|
|
1999
|
+
) : Li(
|
|
2000
2000
|
/*$$scope*/
|
|
2001
|
-
L[
|
|
2001
|
+
L[61]
|
|
2002
2002
|
),
|
|
2003
2003
|
null
|
|
2004
2004
|
);
|
|
2005
2005
|
let te = y;
|
|
2006
|
-
y = B(L), y === te ? ~y && ee[y].p(L, F) : (E && (
|
|
2006
|
+
y = B(L), y === te ? ~y && ee[y].p(L, F) : (E && (je(), Q(ee[te], 1, 1, () => {
|
|
2007
2007
|
ee[te] = null;
|
|
2008
|
-
}),
|
|
2009
|
-
4 && C !== (C =
|
|
2008
|
+
}), Pe()), ~y ? (E = ee[y], E ? E.p(L, F) : (E = ee[y] = X[y](L), E.c()), H(E, 1), E.m(t, null)) : E = null), (!R || F[0] & /*className*/
|
|
2009
|
+
4 && C !== (C = mt(
|
|
2010
2010
|
/*className*/
|
|
2011
2011
|
L[2]
|
|
2012
2012
|
) + " svelte-bz0zu3")) && l(t, "class", C), (!R || F[0] & /*className, collapsed, searchValue*/
|
|
@@ -2025,11 +2025,11 @@ function br(i) {
|
|
|
2025
2025
|
Q(b), Q(u.$$.fragment, L), Q(h.$$.fragment, L), Q(g), Q(m), Q(j, L), Q(E), R = !1;
|
|
2026
2026
|
},
|
|
2027
2027
|
d(L) {
|
|
2028
|
-
L && (O(e), O(t)), se(u), i[
|
|
2028
|
+
L && (O(e), O(t)), se(u), i[64](null), se(h), g && g.d(), m && m.d(), j && j.d(L), ~y && ee[y].d(), p = !1, ae(G);
|
|
2029
2029
|
}
|
|
2030
2030
|
};
|
|
2031
2031
|
}
|
|
2032
|
-
function
|
|
2032
|
+
function br(i, e, t) {
|
|
2033
2033
|
let r, { $$slots: o = {}, $$scope: u } = e;
|
|
2034
2034
|
const a = {
|
|
2035
2035
|
continental_marine: 4,
|
|
@@ -2055,76 +2055,76 @@ function vr(i, e, t) {
|
|
|
2055
2055
|
"poi.restaurant": 18,
|
|
2056
2056
|
"poi.aerodrome": 13
|
|
2057
2057
|
};
|
|
2058
|
-
let { class: n = void 0 } = e, { apiKey: d } = e, { bbox: c = void 0 } = e, { clearButtonTitle: f = "clear" } = e, { clearOnBlur: h = !1 } = e, { collapsed: v = !1 } = e, { country: _ = void 0 } = e, { debounceSearch: w = 200 } = e, {
|
|
2058
|
+
let { class: n = void 0 } = e, { apiKey: d } = e, { bbox: c = void 0 } = e, { clearButtonTitle: f = "clear" } = e, { clearOnBlur: h = !1 } = e, { collapsed: v = !1 } = e, { country: _ = void 0 } = e, { debounceSearch: w = 200 } = e, { reverse: W = "never" } = e, { errorMessage: y = "Something went wrong…" } = e, { filter: E = () => !0 } = e, { flyTo: C = !0 } = e, { fuzzyMatch: R = !0 } = e, { language: p = void 0 } = e, { limit: G = void 0 } = e, { mapController: b = void 0 } = e, { minLength: g = 2 } = e, { noResultsMessage: m = "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: k = "Search" } = e, { proximity: j = [{ type: "server-geolocation" }] } = e, { reverseActive: X = W === "always" } = e, { reverseButtonTitle: ee = "toggle reverse geocoding" } = e, { searchValue: B = "" } = e, { pickedResultStyle: L = "full-geometry" } = e, { showPlaceType: F = "if-needed" } = e, { showResultsWhileTyping: te = !0 } = e, { autocompleteTimeout: _e = void 0 } = e, { selectFirst: ye = !0 } = e, { flyToSelected: Ze = !1 } = e, { markerOnSelected: ze = !0 } = e, { types: me = void 0 } = e, { exhaustiveReverseGeocoding: Ge = !1 } = e, { excludeTypes: De = !1 } = e, { zoom: Oe = a } = e, { apiUrl: qe = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: Qe = {} } = e, { iconsBaseUrl: at = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.0-rc.3/icons/" } = e, { adjustUrlQuery: Ke = () => {
|
|
2059
2059
|
} } = e;
|
|
2060
|
-
function
|
|
2060
|
+
function Ht() {
|
|
2061
2061
|
ie.focus();
|
|
2062
2062
|
}
|
|
2063
|
-
function
|
|
2063
|
+
function jt() {
|
|
2064
2064
|
ie.blur();
|
|
2065
2065
|
}
|
|
2066
|
-
function
|
|
2067
|
-
t(1, B = s), U ? (t(15, D = -1),
|
|
2066
|
+
function lt(s, U = !0, Z = !1) {
|
|
2067
|
+
t(1, B = s), U ? (t(15, D = -1), ct()) : (Je(!Z, Z), setTimeout(() => {
|
|
2068
2068
|
ie.focus(), ie.select();
|
|
2069
2069
|
}));
|
|
2070
2070
|
}
|
|
2071
|
-
function
|
|
2072
|
-
t(14, N = void 0), t(
|
|
2071
|
+
function Pt() {
|
|
2072
|
+
t(14, N = void 0), t(57, S = void 0), t(15, D = -1);
|
|
2073
2073
|
}
|
|
2074
|
-
function
|
|
2075
|
-
t(
|
|
2074
|
+
function Zt() {
|
|
2075
|
+
t(56, P = []), t(57, S = void 0);
|
|
2076
2076
|
}
|
|
2077
|
-
let
|
|
2078
|
-
const
|
|
2079
|
-
function
|
|
2077
|
+
let we = !1, N, P, S, ut = "", ie, D = -1, re, Ue = [], ge, le, Y, Ie, Ve;
|
|
2078
|
+
const Gt = /* @__PURE__ */ new Set(), ue = pi();
|
|
2079
|
+
function qt() {
|
|
2080
2080
|
return !!Y;
|
|
2081
2081
|
}
|
|
2082
|
-
|
|
2082
|
+
Si(() => {
|
|
2083
2083
|
b && (b.setEventHandler(void 0), b.indicateReverse(!1), b.setSelectedMarker(-1), b.setMarkers(void 0, void 0));
|
|
2084
2084
|
});
|
|
2085
|
-
function
|
|
2085
|
+
function ct(s) {
|
|
2086
2086
|
if (le && (window.clearTimeout(le), le = void 0), Y) {
|
|
2087
|
-
window.clearTimeout(Y), t(
|
|
2087
|
+
window.clearTimeout(Y), t(58, Y = void 0), Te(B, { exact: !0 });
|
|
2088
2088
|
return;
|
|
2089
2089
|
}
|
|
2090
2090
|
if (D > -1 && N)
|
|
2091
|
-
t(
|
|
2091
|
+
t(57, S = N[D]), t(1, B = S.place_type[0] === "reverse" ? S.place_name : S.place_name.replace(/,.*/, "")), t(18, re = void 0), t(56, P = void 0), t(15, D = -1);
|
|
2092
2092
|
else if (B) {
|
|
2093
|
-
const U = s || !
|
|
2094
|
-
|
|
2095
|
-
t(
|
|
2093
|
+
const U = s || !xe(B);
|
|
2094
|
+
Te(B, { exact: !0 }).then(() => {
|
|
2095
|
+
t(56, P = N), t(57, S = void 0), U && Qt();
|
|
2096
2096
|
}).catch((Z) => t(18, re = Z));
|
|
2097
2097
|
}
|
|
2098
2098
|
}
|
|
2099
|
-
function
|
|
2099
|
+
function xe(s) {
|
|
2100
2100
|
try {
|
|
2101
|
-
return
|
|
2101
|
+
return cr(s, 6);
|
|
2102
2102
|
} catch {
|
|
2103
2103
|
return !1;
|
|
2104
2104
|
}
|
|
2105
2105
|
}
|
|
2106
|
-
async function
|
|
2106
|
+
async function Te(s, { byId: U = !1, exact: Z = !1, appendSpace: $ = !1 } = {}) {
|
|
2107
2107
|
t(18, re = void 0), ge == null || ge.abort();
|
|
2108
|
-
const
|
|
2109
|
-
t(19, ge =
|
|
2108
|
+
const x = new AbortController();
|
|
2109
|
+
t(19, ge = x);
|
|
2110
2110
|
try {
|
|
2111
|
-
const T =
|
|
2112
|
-
if (p !== void 0 && q.set("language", Array.isArray(p) ? p.join(",") : p ?? ""), me && q.set("types", me.join(",")),
|
|
2113
|
-
const
|
|
2114
|
-
|
|
2111
|
+
const T = xe(s), q = new URLSearchParams();
|
|
2112
|
+
if (p !== void 0 && q.set("language", Array.isArray(p) ? p.join(",") : p ?? ""), me && q.set("types", me.join(",")), De && q.set("excludeTypes", String(De)), c && q.set("bbox", c.map((Be) => Be.toFixed(6)).join(",")), _ && q.set("country", Array.isArray(_) ? _.join(",") : _), !U && !T) {
|
|
2113
|
+
const Be = await $i(b, j, x);
|
|
2114
|
+
Be && q.set("proximity", Be), (Z || !te) && q.set("autocomplete", "false"), q.set("fuzzyMatch", String(R));
|
|
2115
2115
|
}
|
|
2116
|
-
G !== void 0 && (
|
|
2117
|
-
const
|
|
2118
|
-
if (
|
|
2119
|
-
U ? (t(14, N = void 0), t(
|
|
2116
|
+
G !== void 0 && (Ge || !T || (me == null ? void 0 : me.length) === 1) && q.set("limit", String(G)), q.set("key", d), Ke(q);
|
|
2117
|
+
const Ae = qe + "/" + encodeURIComponent(T ? T.decimalLongitude + "," + T.decimalLatitude : s + ($ ? " " : "")) + ".json?" + q.toString();
|
|
2118
|
+
if (Ae === ut) {
|
|
2119
|
+
U ? (t(14, N = void 0), t(57, S = Ue[0])) : t(14, N = Ue);
|
|
2120
2120
|
return;
|
|
2121
2121
|
}
|
|
2122
|
-
|
|
2123
|
-
const
|
|
2124
|
-
if (
|
|
2125
|
-
throw new Error(await
|
|
2126
|
-
const
|
|
2127
|
-
ue("response", { url:
|
|
2122
|
+
ut = Ae;
|
|
2123
|
+
const Ye = await fetch(Ae, { signal: x.signal, ...Qe });
|
|
2124
|
+
if (!Ye.ok)
|
|
2125
|
+
throw new Error(await Ye.text());
|
|
2126
|
+
const $e = await Ye.json();
|
|
2127
|
+
ue("response", { url: Ae, featureCollection: $e }), U ? (t(14, N = void 0), t(57, S = $e.features[0]), Ue = [S]) : (t(14, N = $e.features.filter(E)), T && N.unshift({
|
|
2128
2128
|
type: "Feature",
|
|
2129
2129
|
properties: {},
|
|
2130
2130
|
id: "reverse_" + T.decimalLongitude + "_" + T.decimalLatitude,
|
|
@@ -2142,46 +2142,44 @@ function vr(i, e, t) {
|
|
|
2142
2142
|
type: "Point",
|
|
2143
2143
|
coordinates: [T.decimalLongitude, T.decimalLatitude]
|
|
2144
2144
|
}
|
|
2145
|
-
}),
|
|
2145
|
+
}), Ue = N, T && ie.focus());
|
|
2146
2146
|
} catch (T) {
|
|
2147
2147
|
if (T && typeof T == "object" && "name" in T && T.name === "AbortError")
|
|
2148
2148
|
return;
|
|
2149
2149
|
throw T;
|
|
2150
2150
|
} finally {
|
|
2151
|
-
|
|
2151
|
+
x === ge && t(19, ge = void 0);
|
|
2152
2152
|
}
|
|
2153
2153
|
}
|
|
2154
|
-
function
|
|
2154
|
+
function Qt() {
|
|
2155
2155
|
var $;
|
|
2156
2156
|
if (!(P != null && P.length) || !C)
|
|
2157
2157
|
return;
|
|
2158
|
-
const s = [180, 90, -180, -90], U = !P.some((
|
|
2158
|
+
const s = [180, 90, -180, -90], U = !P.some((x) => !x.matching_text);
|
|
2159
2159
|
let Z;
|
|
2160
|
-
for (const
|
|
2161
|
-
const T =
|
|
2162
|
-
if (Z =
|
|
2160
|
+
for (const x of P) {
|
|
2161
|
+
const T = Ne(x);
|
|
2162
|
+
if (Z = Z === void 0 ? T : T === void 0 ? Z : Math.max(Z, T), U || !x.matching_text)
|
|
2163
2163
|
for (const q of [0, 1, 2, 3])
|
|
2164
|
-
s[q] = Math[q < 2 ? "min" : "max"](s[q], (($ =
|
|
2164
|
+
s[q] = Math[q < 2 ? "min" : "max"](s[q], (($ = x.bbox) == null ? void 0 : $[q]) ?? x.center[q % 2]);
|
|
2165
2165
|
}
|
|
2166
|
-
b && P.length > 0 && (S && s[0] === s[2] && s[1] === s[3] ? b.flyTo(S.center,
|
|
2166
|
+
b && P.length > 0 && (S && s[0] === s[2] && s[1] === s[3] ? b.flyTo(S.center, Ne(S)) : b.fitBounds(_t(s), 50, Z));
|
|
2167
2167
|
}
|
|
2168
|
-
function
|
|
2168
|
+
function Ne(s) {
|
|
2169
2169
|
var Z;
|
|
2170
2170
|
if (!s.bbox || s.bbox[0] !== s.bbox[2] && s.bbox[1] !== s.bbox[3])
|
|
2171
2171
|
return;
|
|
2172
|
-
if (typeof we == "number")
|
|
2173
|
-
return s.id.startsWith("poi.") || s.id.startsWith("address.") ? Ue : we;
|
|
2174
2172
|
const U = s.id.replace(/\..*/, "");
|
|
2175
2173
|
return (Array.isArray((Z = s.properties) == null ? void 0 : Z.categories) ? s.properties.categories.reduce(
|
|
2176
|
-
($,
|
|
2177
|
-
const T =
|
|
2174
|
+
($, x) => {
|
|
2175
|
+
const T = Oe[U + "." + x];
|
|
2178
2176
|
return $ === void 0 ? T : T === void 0 ? $ : Math.max($, T);
|
|
2179
2177
|
},
|
|
2180
2178
|
void 0
|
|
2181
|
-
) : void 0) ??
|
|
2179
|
+
) : void 0) ?? Oe[U];
|
|
2182
2180
|
}
|
|
2183
2181
|
function Kt(s) {
|
|
2184
|
-
t(0, X = W === "always"), t(14, N = void 0), t(
|
|
2182
|
+
t(0, X = W === "always"), t(14, N = void 0), t(57, S = void 0), t(15, D = -1), lt(s[1].toFixed(6) + ", " + Yi(s[0], [-180, 180], !0).toFixed(6), !1, !0);
|
|
2185
2183
|
}
|
|
2186
2184
|
function Vt(s) {
|
|
2187
2185
|
if (!N)
|
|
@@ -2189,60 +2187,60 @@ function vr(i, e, t) {
|
|
|
2189
2187
|
let U = s.key === "ArrowDown" ? 1 : s.key === "ArrowUp" ? -1 : 0;
|
|
2190
2188
|
U && (D === (ye ? 0 : -1) && U === -1 && t(15, D = N.length), t(15, D += U), D >= N.length && t(15, D = -1), D < 0 && ye && t(15, D = 0), s.preventDefault());
|
|
2191
2189
|
}
|
|
2192
|
-
function
|
|
2193
|
-
if (t(18, re = void 0), le && (window.clearTimeout(le), le = void 0), Y && (window.clearTimeout(Y), t(
|
|
2190
|
+
function Je(s = !0, U = !1) {
|
|
2191
|
+
if (t(18, re = void 0), le && (window.clearTimeout(le), le = void 0), Y && (window.clearTimeout(Y), t(58, Y = void 0)), !te && !U || B.length < g) {
|
|
2194
2192
|
t(14, N = void 0);
|
|
2195
2193
|
return;
|
|
2196
2194
|
}
|
|
2197
2195
|
const Z = B;
|
|
2198
2196
|
le = window.setTimeout(
|
|
2199
2197
|
() => {
|
|
2200
|
-
le = void 0,
|
|
2198
|
+
le = void 0, Te(Z).catch(($) => t(18, re = $));
|
|
2201
2199
|
},
|
|
2202
2200
|
s ? w : 0
|
|
2203
|
-
), B.endsWith(" ") || t(
|
|
2201
|
+
), B.endsWith(" ") || t(58, Y = window.setTimeout(
|
|
2204
2202
|
() => {
|
|
2205
|
-
t(
|
|
2203
|
+
t(58, Y = void 0), Te(Z, { appendSpace: !0 }).catch(($) => t(18, re = $));
|
|
2206
2204
|
},
|
|
2207
2205
|
_e
|
|
2208
2206
|
));
|
|
2209
2207
|
}
|
|
2210
|
-
function
|
|
2211
|
-
t(
|
|
2208
|
+
function Xe(s) {
|
|
2209
|
+
t(57, S = s), t(1, B = s.place_name), t(15, D = -1);
|
|
2212
2210
|
}
|
|
2213
|
-
const
|
|
2214
|
-
function
|
|
2215
|
-
|
|
2211
|
+
const xt = () => ie.focus();
|
|
2212
|
+
function Jt(s) {
|
|
2213
|
+
rt[s ? "unshift" : "push"](() => {
|
|
2216
2214
|
ie = s, t(17, ie);
|
|
2217
2215
|
});
|
|
2218
2216
|
}
|
|
2219
|
-
function
|
|
2220
|
-
B = this.value, t(1, B), t(13,
|
|
2217
|
+
function Xt() {
|
|
2218
|
+
B = this.value, t(1, B), t(13, we), t(28, h);
|
|
2221
2219
|
}
|
|
2222
|
-
const
|
|
2220
|
+
const Yt = () => t(13, we = !0), $t = () => t(13, we = !1), ei = () => Je(), ti = () => {
|
|
2223
2221
|
t(1, B = ""), ie.focus();
|
|
2224
|
-
},
|
|
2222
|
+
}, ii = () => t(0, X = !X), ri = () => t(18, re = void 0), ni = (s) => t(15, D = s), oi = (s) => Xe(s), si = () => {
|
|
2225
2223
|
ye || t(15, D = -1);
|
|
2226
|
-
},
|
|
2224
|
+
}, ai = () => {
|
|
2227
2225
|
};
|
|
2228
2226
|
return i.$$set = (s) => {
|
|
2229
|
-
"class" in s && t(2, n = s.class), "apiKey" in s && t(26, d = s.apiKey), "bbox" in s && t(27, c = s.bbox), "clearButtonTitle" in s && t(3, f = s.clearButtonTitle), "clearOnBlur" in s && t(28, h = s.clearOnBlur), "collapsed" in s && t(4, v = s.collapsed), "country" in s && t(29, _ = s.country), "debounceSearch" in s && t(30, w = s.debounceSearch), "
|
|
2227
|
+
"class" in s && t(2, n = s.class), "apiKey" in s && t(26, d = s.apiKey), "bbox" in s && t(27, c = s.bbox), "clearButtonTitle" in s && t(3, f = s.clearButtonTitle), "clearOnBlur" in s && t(28, h = s.clearOnBlur), "collapsed" in s && t(4, v = s.collapsed), "country" in s && t(29, _ = s.country), "debounceSearch" in s && t(30, w = s.debounceSearch), "reverse" in s && t(5, W = s.reverse), "errorMessage" in s && t(6, y = s.errorMessage), "filter" in s && t(31, E = s.filter), "flyTo" in s && t(32, C = s.flyTo), "fuzzyMatch" in s && t(33, R = s.fuzzyMatch), "language" in s && t(34, p = s.language), "limit" in s && t(35, G = s.limit), "mapController" in s && t(36, b = s.mapController), "minLength" in s && t(37, g = s.minLength), "noResultsMessage" in s && t(7, m = s.noResultsMessage), "placeholder" in s && t(8, k = s.placeholder), "proximity" in s && t(38, j = s.proximity), "reverseActive" in s && t(0, X = s.reverseActive), "reverseButtonTitle" in s && t(9, ee = s.reverseButtonTitle), "searchValue" in s && t(1, B = s.searchValue), "pickedResultStyle" in s && t(39, L = s.pickedResultStyle), "showPlaceType" in s && t(10, F = s.showPlaceType), "showResultsWhileTyping" in s && t(40, te = s.showResultsWhileTyping), "autocompleteTimeout" in s && t(41, _e = s.autocompleteTimeout), "selectFirst" in s && t(11, ye = s.selectFirst), "flyToSelected" in s && t(42, Ze = s.flyToSelected), "markerOnSelected" in s && t(43, ze = s.markerOnSelected), "types" in s && t(44, me = s.types), "exhaustiveReverseGeocoding" in s && t(45, Ge = s.exhaustiveReverseGeocoding), "excludeTypes" in s && t(46, De = s.excludeTypes), "zoom" in s && t(47, Oe = s.zoom), "apiUrl" in s && t(48, qe = s.apiUrl), "fetchParameters" in s && t(49, Qe = s.fetchParameters), "iconsBaseUrl" in s && t(12, at = s.iconsBaseUrl), "adjustUrlQuery" in s && t(50, Ke = s.adjustUrlQuery), "$$scope" in s && t(61, u = s.$$scope);
|
|
2230
2228
|
}, i.$$.update = () => {
|
|
2231
|
-
if (i.$$.dirty[0] & /*
|
|
2229
|
+
if (i.$$.dirty[0] & /*reverse*/
|
|
2232
2230
|
32 && t(0, X = W === "always"), i.$$.dirty[0] & /*focused, clearOnBlur*/
|
|
2233
2231
|
268443648 && setTimeout(() => {
|
|
2234
|
-
t(16,
|
|
2232
|
+
t(16, Ie = we), h && !we && t(1, B = "");
|
|
2235
2233
|
}), i.$$.dirty[0] & /*searchValue, listFeatures*/
|
|
2236
2234
|
16386 | i.$$.dirty[1] & /*minLength*/
|
|
2237
|
-
64 && B.length < g && (t(
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
18432 && ye && N != null && N.length && (
|
|
2235
|
+
64 && B.length < g && (t(57, S = void 0), t(14, N = void 0), t(18, re = void 0), t(56, P = N)), i.$$.dirty[1] & /*pickedResultStyle, picked*/
|
|
2236
|
+
67109120 && L !== "marker-only" && S && !S.address && S.geometry.type === "Point" && S.place_type[0] !== "reverse" && Te(S.id, { byId: !0 }).catch((s) => t(18, re = s)), i.$$.dirty[1] & /*mapController, picked, prevIdToFly, flyTo*/
|
|
2237
|
+
335544354 && (b && S && S.id !== Ve && C && (!S.bbox || S.bbox[0] === S.bbox[2] && S.bbox[1] === S.bbox[3] ? b.flyTo(S.center, Ne(S)) : b.fitBounds(_t(S.bbox), 50, Ne(S)), t(14, N = void 0), t(56, P = void 0), t(15, D = -1)), t(59, Ve = S == null ? void 0 : S.id)), i.$$.dirty[0] & /*selectFirst, listFeatures*/
|
|
2238
|
+
18432 && ye && N != null && N.length && (qt() || t(15, D = 0)), i.$$.dirty[0] & /*searchValue*/
|
|
2241
2239
|
2 && t(15, D = -1), i.$$.dirty[0] & /*listFeatures*/
|
|
2242
2240
|
16384 | i.$$.dirty[1] & /*markedFeatures*/
|
|
2243
|
-
|
|
2241
|
+
33554432 && P !== N && t(56, P = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
|
|
2244
2242
|
81921 | i.$$.dirty[1] & /*mapController, markedFeatures*/
|
|
2245
|
-
|
|
2243
|
+
33554464 && b && b.setEventHandler((s) => {
|
|
2246
2244
|
switch (s.type) {
|
|
2247
2245
|
case "mapClick":
|
|
2248
2246
|
X && Kt(s.coordinates);
|
|
@@ -2250,38 +2248,38 @@ function vr(i, e, t) {
|
|
|
2250
2248
|
case "markerClick":
|
|
2251
2249
|
{
|
|
2252
2250
|
const U = N == null ? void 0 : N.find((Z) => Z.id === s.id);
|
|
2253
|
-
U &&
|
|
2251
|
+
U && Xe(U);
|
|
2254
2252
|
}
|
|
2255
2253
|
break;
|
|
2256
2254
|
case "markerMouseEnter":
|
|
2257
|
-
P && t(15, D =
|
|
2255
|
+
P && t(15, D = Ie ? (N == null ? void 0 : N.findIndex((U) => U.id === s.id)) ?? -1 : -1);
|
|
2258
2256
|
break;
|
|
2259
2257
|
case "markerMouseLeave":
|
|
2260
2258
|
P && t(15, D = -1);
|
|
2261
2259
|
break;
|
|
2262
2260
|
}
|
|
2263
2261
|
}), i.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
|
|
2264
|
-
49152 && t(
|
|
2265
|
-
|
|
2266
|
-
4128 && (
|
|
2267
|
-
|
|
2268
|
-
|
|
2262
|
+
49152 && t(60, r = N == null ? void 0 : N[D]), i.$$.dirty[1] & /*mapController, selected, flyTo, flyToSelected*/
|
|
2263
|
+
536872994 && b && r && C && Ze && b.flyTo(r.center, Ne(r)), i.$$.dirty[1] & /*markerOnSelected, mapController*/
|
|
2264
|
+
4128 && (ze || b == null || b.setMarkers(void 0, void 0)), i.$$.dirty[1] & /*mapController, markerOnSelected, markedFeatures, selected*/
|
|
2265
|
+
570429472 && b && ze && !P && (b.setMarkers(r ? [r] : void 0, void 0), b.setSelectedMarker(r ? 0 : -1)), i.$$.dirty[1] & /*mapController, markedFeatures, picked*/
|
|
2266
|
+
100663328 && b && b.setMarkers(P, S), i.$$.dirty[0] & /*selectedItemIndex*/
|
|
2269
2267
|
32768 | i.$$.dirty[1] & /*markedFeatures, mapController*/
|
|
2270
|
-
|
|
2271
|
-
|
|
2268
|
+
33554464 && P && b && b.setSelectedMarker(D), i.$$.dirty[1] & /*selected, autocompleteTimeoutRef*/
|
|
2269
|
+
671088640 && r && (window.clearTimeout(Y), t(58, Y = void 0)), i.$$.dirty[0] & /*searchValue*/
|
|
2272
2270
|
2 | i.$$.dirty[1] & /*mapController*/
|
|
2273
2271
|
32 && b) {
|
|
2274
|
-
const s =
|
|
2272
|
+
const s = xe(B);
|
|
2275
2273
|
b.setReverseMarker(s ? [s.decimalLongitude, s.decimalLatitude] : void 0);
|
|
2276
2274
|
}
|
|
2277
2275
|
i.$$.dirty[1] & /*selected*/
|
|
2278
|
-
|
|
2279
|
-
|
|
2276
|
+
536870912 && ue("select", { feature: r }), i.$$.dirty[1] & /*picked*/
|
|
2277
|
+
67108864 && ue("pick", { feature: S }), i.$$.dirty[0] & /*focusedDelayed, listFeatures*/
|
|
2280
2278
|
81920 && ue("optionsvisibilitychange", {
|
|
2281
|
-
optionsVisible:
|
|
2279
|
+
optionsVisible: Ie && !!N
|
|
2282
2280
|
}), i.$$.dirty[0] & /*listFeatures*/
|
|
2283
2281
|
16384 && ue("featureslisted", { features: N }), i.$$.dirty[1] & /*markedFeatures*/
|
|
2284
|
-
|
|
2282
|
+
33554432 && ue("featuresmarked", { features: P }), i.$$.dirty[0] & /*reverseActive*/
|
|
2285
2283
|
1 && ue("reversetoggle", { reverse: X }), i.$$.dirty[0] & /*searchValue*/
|
|
2286
2284
|
2 && ue("querychange", { query: B }), i.$$.dirty[0] & /*reverseActive*/
|
|
2287
2285
|
1 | i.$$.dirty[1] & /*mapController*/
|
|
@@ -2299,19 +2297,19 @@ function vr(i, e, t) {
|
|
|
2299
2297
|
ee,
|
|
2300
2298
|
F,
|
|
2301
2299
|
ye,
|
|
2302
|
-
|
|
2303
|
-
|
|
2300
|
+
at,
|
|
2301
|
+
we,
|
|
2304
2302
|
N,
|
|
2305
2303
|
D,
|
|
2306
|
-
|
|
2304
|
+
Ie,
|
|
2307
2305
|
ie,
|
|
2308
2306
|
re,
|
|
2309
2307
|
ge,
|
|
2310
|
-
|
|
2311
|
-
|
|
2308
|
+
Gt,
|
|
2309
|
+
ct,
|
|
2312
2310
|
Vt,
|
|
2311
|
+
Je,
|
|
2313
2312
|
Xe,
|
|
2314
|
-
Ye,
|
|
2315
2313
|
a,
|
|
2316
2314
|
d,
|
|
2317
2315
|
c,
|
|
@@ -2329,21 +2327,20 @@ function vr(i, e, t) {
|
|
|
2329
2327
|
L,
|
|
2330
2328
|
te,
|
|
2331
2329
|
_e,
|
|
2330
|
+
Ze,
|
|
2331
|
+
ze,
|
|
2332
|
+
me,
|
|
2332
2333
|
Ge,
|
|
2333
2334
|
De,
|
|
2334
|
-
me,
|
|
2335
|
-
qe,
|
|
2336
2335
|
Oe,
|
|
2337
|
-
|
|
2338
|
-
Ue,
|
|
2336
|
+
qe,
|
|
2339
2337
|
Qe,
|
|
2340
|
-
xe,
|
|
2341
2338
|
Ke,
|
|
2339
|
+
Ht,
|
|
2342
2340
|
jt,
|
|
2341
|
+
lt,
|
|
2343
2342
|
Pt,
|
|
2344
|
-
ut,
|
|
2345
2343
|
Zt,
|
|
2346
|
-
Gt,
|
|
2347
2344
|
P,
|
|
2348
2345
|
S,
|
|
2349
2346
|
Y,
|
|
@@ -2351,6 +2348,7 @@ function vr(i, e, t) {
|
|
|
2351
2348
|
r,
|
|
2352
2349
|
u,
|
|
2353
2350
|
o,
|
|
2351
|
+
xt,
|
|
2354
2352
|
Jt,
|
|
2355
2353
|
Xt,
|
|
2356
2354
|
Yt,
|
|
@@ -2362,17 +2360,16 @@ function vr(i, e, t) {
|
|
|
2362
2360
|
ni,
|
|
2363
2361
|
oi,
|
|
2364
2362
|
si,
|
|
2365
|
-
ai
|
|
2366
|
-
li
|
|
2363
|
+
ai
|
|
2367
2364
|
];
|
|
2368
2365
|
}
|
|
2369
|
-
class
|
|
2366
|
+
class vr extends Le {
|
|
2370
2367
|
constructor(e) {
|
|
2371
2368
|
super(), ve(
|
|
2372
2369
|
this,
|
|
2373
2370
|
e,
|
|
2374
|
-
vr,
|
|
2375
2371
|
br,
|
|
2372
|
+
hr,
|
|
2376
2373
|
be,
|
|
2377
2374
|
{
|
|
2378
2375
|
ZOOM_DEFAULTS: 25,
|
|
@@ -2384,7 +2381,7 @@ class Lr extends Le {
|
|
|
2384
2381
|
collapsed: 4,
|
|
2385
2382
|
country: 29,
|
|
2386
2383
|
debounceSearch: 30,
|
|
2387
|
-
|
|
2384
|
+
reverse: 5,
|
|
2388
2385
|
errorMessage: 6,
|
|
2389
2386
|
filter: 31,
|
|
2390
2387
|
flyTo: 32,
|
|
@@ -2399,7 +2396,7 @@ class Lr extends Le {
|
|
|
2399
2396
|
reverseActive: 0,
|
|
2400
2397
|
reverseButtonTitle: 9,
|
|
2401
2398
|
searchValue: 1,
|
|
2402
|
-
|
|
2399
|
+
pickedResultStyle: 39,
|
|
2403
2400
|
showPlaceType: 10,
|
|
2404
2401
|
showResultsWhileTyping: 40,
|
|
2405
2402
|
autocompleteTimeout: 41,
|
|
@@ -2410,16 +2407,15 @@ class Lr extends Le {
|
|
|
2410
2407
|
exhaustiveReverseGeocoding: 45,
|
|
2411
2408
|
excludeTypes: 46,
|
|
2412
2409
|
zoom: 47,
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
fetchParameters: 50,
|
|
2410
|
+
apiUrl: 48,
|
|
2411
|
+
fetchParameters: 49,
|
|
2416
2412
|
iconsBaseUrl: 12,
|
|
2417
|
-
adjustUrlQuery:
|
|
2418
|
-
focus:
|
|
2419
|
-
blur:
|
|
2420
|
-
setQuery:
|
|
2421
|
-
clearList:
|
|
2422
|
-
clearMap:
|
|
2413
|
+
adjustUrlQuery: 50,
|
|
2414
|
+
focus: 51,
|
|
2415
|
+
blur: 52,
|
|
2416
|
+
setQuery: 53,
|
|
2417
|
+
clearList: 54,
|
|
2418
|
+
clearMap: 55
|
|
2423
2419
|
},
|
|
2424
2420
|
null,
|
|
2425
2421
|
[-1, -1, -1]
|
|
@@ -2429,22 +2425,22 @@ class Lr extends Le {
|
|
|
2429
2425
|
return this.$$.ctx[25];
|
|
2430
2426
|
}
|
|
2431
2427
|
get focus() {
|
|
2432
|
-
return this.$$.ctx[
|
|
2428
|
+
return this.$$.ctx[51];
|
|
2433
2429
|
}
|
|
2434
2430
|
get blur() {
|
|
2435
|
-
return this.$$.ctx[
|
|
2431
|
+
return this.$$.ctx[52];
|
|
2436
2432
|
}
|
|
2437
2433
|
get setQuery() {
|
|
2438
|
-
return this.$$.ctx[
|
|
2434
|
+
return this.$$.ctx[53];
|
|
2439
2435
|
}
|
|
2440
2436
|
get clearList() {
|
|
2441
|
-
return this.$$.ctx[
|
|
2437
|
+
return this.$$.ctx[54];
|
|
2442
2438
|
}
|
|
2443
2439
|
get clearMap() {
|
|
2444
|
-
return this.$$.ctx[
|
|
2440
|
+
return this.$$.ctx[55];
|
|
2445
2441
|
}
|
|
2446
2442
|
}
|
|
2447
|
-
const
|
|
2443
|
+
const Rt = [
|
|
2448
2444
|
"featuresListed",
|
|
2449
2445
|
"featuresMarked",
|
|
2450
2446
|
"optionsVisibilityChange",
|
|
@@ -2453,7 +2449,8 @@ const zt = [
|
|
|
2453
2449
|
"response",
|
|
2454
2450
|
"reverseToggle",
|
|
2455
2451
|
"select"
|
|
2456
|
-
],
|
|
2452
|
+
], Lr = [
|
|
2453
|
+
"adjustUrlQuery",
|
|
2457
2454
|
"apiKey",
|
|
2458
2455
|
"bbox",
|
|
2459
2456
|
"clearButtonTitle",
|
|
@@ -2462,49 +2459,48 @@ const zt = [
|
|
|
2462
2459
|
"country",
|
|
2463
2460
|
"debounceSearch",
|
|
2464
2461
|
"enableReverse",
|
|
2465
|
-
"reverseActive",
|
|
2466
2462
|
"errorMessage",
|
|
2463
|
+
"excludeTypes",
|
|
2467
2464
|
"filter",
|
|
2468
2465
|
"fuzzyMatch",
|
|
2469
2466
|
"language",
|
|
2470
2467
|
"limit",
|
|
2468
|
+
"mapController",
|
|
2471
2469
|
"minLength",
|
|
2472
2470
|
"noResultsMessage",
|
|
2471
|
+
"pickedResultStyle",
|
|
2473
2472
|
"placeholder",
|
|
2474
2473
|
"proximity",
|
|
2474
|
+
"reverseActive",
|
|
2475
2475
|
"reverseButtonTitle",
|
|
2476
|
-
"showFullGeometry",
|
|
2477
2476
|
"showPlaceType",
|
|
2478
2477
|
"showResultsWhileTyping",
|
|
2479
|
-
"adjustUrlQuery",
|
|
2480
2478
|
"types",
|
|
2481
|
-
"
|
|
2482
|
-
"zoom",
|
|
2483
|
-
"mapController"
|
|
2479
|
+
"zoom"
|
|
2484
2480
|
];
|
|
2485
|
-
function
|
|
2481
|
+
function zt(i) {
|
|
2486
2482
|
return "on" + i[0].toUpperCase() + i.slice(1);
|
|
2487
2483
|
}
|
|
2488
|
-
const
|
|
2489
|
-
const r =
|
|
2490
|
-
for (const a of
|
|
2491
|
-
delete u[
|
|
2492
|
-
|
|
2484
|
+
const wr = ci(function(e, t) {
|
|
2485
|
+
const r = dt(), o = dt(), u = { ...e };
|
|
2486
|
+
for (const a of Rt)
|
|
2487
|
+
delete u[zt(a)];
|
|
2488
|
+
tt(() => {
|
|
2493
2489
|
if (!r.current)
|
|
2494
2490
|
throw new Error();
|
|
2495
|
-
const a = new
|
|
2491
|
+
const a = new vr({
|
|
2496
2492
|
target: r.current,
|
|
2497
2493
|
props: u
|
|
2498
2494
|
});
|
|
2499
2495
|
return o.current = a, () => a.$destroy();
|
|
2500
2496
|
}, []);
|
|
2501
|
-
for (const a of
|
|
2502
|
-
|
|
2497
|
+
for (const a of Lr)
|
|
2498
|
+
tt(() => {
|
|
2503
2499
|
o.current && e[a] !== void 0 && o.current.$set({ [a]: e[a] });
|
|
2504
2500
|
}, [e[a]]);
|
|
2505
|
-
for (const a of
|
|
2506
|
-
const n = e[
|
|
2507
|
-
|
|
2501
|
+
for (const a of Rt) {
|
|
2502
|
+
const n = e[zt(a)];
|
|
2503
|
+
tt(
|
|
2508
2504
|
() => {
|
|
2509
2505
|
var d;
|
|
2510
2506
|
return n && ((d = o.current) == null ? void 0 : d.$on(a, (c) => {
|
|
@@ -2514,7 +2510,7 @@ const Er = di(function(e, t) {
|
|
|
2514
2510
|
[n]
|
|
2515
2511
|
);
|
|
2516
2512
|
}
|
|
2517
|
-
return
|
|
2513
|
+
return di(t, () => ({
|
|
2518
2514
|
setQuery: (a, n = !0) => {
|
|
2519
2515
|
var d;
|
|
2520
2516
|
return (d = o.current) == null ? void 0 : d.setQuery(a, n);
|
|
@@ -2535,9 +2531,9 @@ const Er = di(function(e, t) {
|
|
|
2535
2531
|
var a;
|
|
2536
2532
|
return (a = o.current) == null ? void 0 : a.blur();
|
|
2537
2533
|
}
|
|
2538
|
-
})),
|
|
2534
|
+
})), fi("div", { ref: r });
|
|
2539
2535
|
});
|
|
2540
2536
|
export {
|
|
2541
|
-
|
|
2537
|
+
wr as GeocodingControl
|
|
2542
2538
|
};
|
|
2543
2539
|
//# sourceMappingURL=react.js.map
|