@maptiler/geocoding-control 2.1.0-rc1 → 2.1.0-with-autocomplete-timeout
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 +970 -951
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +3 -3
- package/leaflet.umd.js.map +1 -1
- package/maplibregl.js +1238 -1219
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +3 -3
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.js +1240 -1221
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +3 -3
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers.js +1033 -1014
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +3 -3
- package/openlayers.umd.js.map +1 -1
- package/package.json +1 -1
- package/react.js +701 -682
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/svelte/GeocodingControl.svelte +45 -17
- package/svelte/GeocodingControl.svelte.d.ts +1 -0
- package/svelte/types.d.ts +1 -0
- package/types.d.ts +1 -0
- package/vanilla.js +713 -694
- 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 _i = Object.defineProperty;
|
|
2
|
+
var yi = (i, e, t) => e in i ? _i(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
|
+
var lt = (i, e, t) => yi(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { forwardRef as wi, useRef as pt, useEffect as ut, useImperativeHandle as pi, createElement as Ei } from "react";
|
|
5
5
|
function P() {
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function Si(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 Ht(i) {
|
|
15
15
|
return i();
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function Et() {
|
|
18
18
|
return /* @__PURE__ */ Object.create(null);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
i.forEach(
|
|
20
|
+
function ue(i) {
|
|
21
|
+
i.forEach(Ht);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Zt(i) {
|
|
24
24
|
return typeof i == "function";
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function _e(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 Ge;
|
|
30
|
+
function X(i, e) {
|
|
31
|
+
return i === e ? !0 : (Ge || (Ge = document.createElement("a")), Ge.href = e, i === Ge.href);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Ti(i) {
|
|
34
34
|
return Object.keys(i).length === 0;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Ni(i, e, t, n) {
|
|
37
37
|
if (i) {
|
|
38
|
-
const r =
|
|
38
|
+
const r = Gt(i, e, t, n);
|
|
39
39
|
return i[0](r);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
return i[1] && n ?
|
|
42
|
+
function Gt(i, e, t, n) {
|
|
43
|
+
return i[1] && n ? Si(t.ctx.slice(), i[1](n(e))) : t.ctx;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function ki(i, e, t, n) {
|
|
46
46
|
if (i[2] && n) {
|
|
47
47
|
const r = i[2](n(t));
|
|
48
48
|
if (e.dirty === void 0)
|
|
@@ -57,13 +57,13 @@ function Ei(i, e, t, n) {
|
|
|
57
57
|
}
|
|
58
58
|
return e.dirty;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function Mi(i, e, t, n, r, u) {
|
|
61
61
|
if (r) {
|
|
62
|
-
const l =
|
|
62
|
+
const l = Gt(e, t, n, u);
|
|
63
63
|
i.p(l, r);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function Ci(i) {
|
|
67
67
|
if (i.ctx.length > 32) {
|
|
68
68
|
const e = [], t = i.ctx.length / 32;
|
|
69
69
|
for (let n = 0; n < t; n++)
|
|
@@ -72,10 +72,10 @@ function Ni(i) {
|
|
|
72
72
|
}
|
|
73
73
|
return -1;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Ve(i) {
|
|
76
76
|
return i ?? "";
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function N(i, e) {
|
|
79
79
|
i.appendChild(e);
|
|
80
80
|
}
|
|
81
81
|
function j(i, e, t) {
|
|
@@ -84,25 +84,25 @@ function j(i, e, t) {
|
|
|
84
84
|
function A(i) {
|
|
85
85
|
i.parentNode && i.parentNode.removeChild(i);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function U(i) {
|
|
88
88
|
return document.createElement(i);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function se(i) {
|
|
91
91
|
return document.createElementNS("http://www.w3.org/2000/svg", i);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function me(i) {
|
|
94
94
|
return document.createTextNode(i);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
return
|
|
96
|
+
function Y() {
|
|
97
|
+
return me(" ");
|
|
98
98
|
}
|
|
99
|
-
function
|
|
100
|
-
return
|
|
99
|
+
function Wi() {
|
|
100
|
+
return me("");
|
|
101
101
|
}
|
|
102
102
|
function Q(i, e, t, n) {
|
|
103
103
|
return i.addEventListener(e, t, n), () => i.removeEventListener(e, t, n);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function zi(i) {
|
|
106
106
|
return function(e) {
|
|
107
107
|
return e.preventDefault(), i.call(this, e);
|
|
108
108
|
};
|
|
@@ -110,39 +110,39 @@ function Mi(i) {
|
|
|
110
110
|
function a(i, e, t) {
|
|
111
111
|
t == null ? i.removeAttribute(e) : i.getAttribute(e) !== t && i.setAttribute(e, t);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function Ri(i) {
|
|
114
114
|
return Array.from(i.childNodes);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Oe(i, e) {
|
|
117
117
|
e = "" + e, i.data !== e && (i.data = /** @type {string} */
|
|
118
118
|
e);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function St(i, e) {
|
|
121
121
|
i.value = e ?? "";
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Te(i, e, t) {
|
|
124
124
|
i.classList.toggle(e, !!t);
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Oi(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
|
|
127
127
|
return new CustomEvent(i, { detail: e, bubbles: t, cancelable: n });
|
|
128
128
|
}
|
|
129
|
-
let
|
|
130
|
-
function
|
|
131
|
-
|
|
129
|
+
let Ue;
|
|
130
|
+
function Re(i) {
|
|
131
|
+
Ue = i;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
if (!
|
|
135
|
-
return
|
|
133
|
+
function qt() {
|
|
134
|
+
if (!Ue) throw new Error("Function called outside component initialization");
|
|
135
|
+
return Ue;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
|
|
137
|
+
function Ui(i) {
|
|
138
|
+
qt().$$.on_destroy.push(i);
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
const i =
|
|
140
|
+
function Qt() {
|
|
141
|
+
const i = qt();
|
|
142
142
|
return (e, t, { cancelable: n = !1 } = {}) => {
|
|
143
143
|
const r = i.$$.callbacks[e];
|
|
144
144
|
if (r) {
|
|
145
|
-
const u =
|
|
145
|
+
const u = Oi(
|
|
146
146
|
/** @type {string} */
|
|
147
147
|
e,
|
|
148
148
|
t,
|
|
@@ -155,134 +155,134 @@ function Zt() {
|
|
|
155
155
|
return !0;
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Di(i, e) {
|
|
159
159
|
const t = i.$$.callbacks[e.type];
|
|
160
160
|
t && t.slice().forEach((n) => n.call(this, e));
|
|
161
161
|
}
|
|
162
|
-
const
|
|
163
|
-
let
|
|
164
|
-
const
|
|
165
|
-
let
|
|
166
|
-
function
|
|
167
|
-
|
|
162
|
+
const Se = [], dt = [];
|
|
163
|
+
let Ne = [];
|
|
164
|
+
const Tt = [], Ii = /* @__PURE__ */ Promise.resolve();
|
|
165
|
+
let ft = !1;
|
|
166
|
+
function Ai() {
|
|
167
|
+
ft || (ft = !0, Ii.then(Kt));
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
|
|
169
|
+
function mt(i) {
|
|
170
|
+
Ne.push(i);
|
|
171
171
|
}
|
|
172
|
-
const
|
|
173
|
-
let
|
|
174
|
-
function
|
|
175
|
-
if (
|
|
172
|
+
const ct = /* @__PURE__ */ new Set();
|
|
173
|
+
let Ee = 0;
|
|
174
|
+
function Kt() {
|
|
175
|
+
if (Ee !== 0)
|
|
176
176
|
return;
|
|
177
|
-
const i =
|
|
177
|
+
const i = Ue;
|
|
178
178
|
do {
|
|
179
179
|
try {
|
|
180
|
-
for (;
|
|
181
|
-
const e =
|
|
182
|
-
|
|
180
|
+
for (; Ee < Se.length; ) {
|
|
181
|
+
const e = Se[Ee];
|
|
182
|
+
Ee++, Re(e), Bi(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 (Re(null), Se.length = 0, Ee = 0; dt.length; ) dt.pop()();
|
|
188
|
+
for (let e = 0; e < Ne.length; e += 1) {
|
|
189
|
+
const t = Ne[e];
|
|
190
|
+
ct.has(t) || (ct.add(t), t());
|
|
191
191
|
}
|
|
192
|
-
|
|
193
|
-
} while (
|
|
194
|
-
for (;
|
|
195
|
-
|
|
196
|
-
|
|
192
|
+
Ne.length = 0;
|
|
193
|
+
} while (Se.length);
|
|
194
|
+
for (; Tt.length; )
|
|
195
|
+
Tt.pop()();
|
|
196
|
+
ft = !1, ct.clear(), Re(i);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Bi(i) {
|
|
199
199
|
if (i.fragment !== null) {
|
|
200
|
-
i.update(),
|
|
200
|
+
i.update(), ue(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(mt);
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function Pi(i) {
|
|
206
206
|
const e = [], t = [];
|
|
207
|
-
|
|
207
|
+
Ne.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), Ne = e;
|
|
208
208
|
}
|
|
209
|
-
const
|
|
210
|
-
let
|
|
211
|
-
function
|
|
212
|
-
|
|
209
|
+
const qe = /* @__PURE__ */ new Set();
|
|
210
|
+
let Le;
|
|
211
|
+
function Qe() {
|
|
212
|
+
Le = {
|
|
213
213
|
r: 0,
|
|
214
214
|
c: [],
|
|
215
|
-
p:
|
|
215
|
+
p: Le
|
|
216
216
|
// parent group
|
|
217
217
|
};
|
|
218
218
|
}
|
|
219
|
-
function
|
|
220
|
-
|
|
219
|
+
function Ke() {
|
|
220
|
+
Le.r || ue(Le.c), Le = Le.p;
|
|
221
221
|
}
|
|
222
|
-
function
|
|
223
|
-
i && i.i && (
|
|
222
|
+
function Z(i, e) {
|
|
223
|
+
i && i.i && (qe.delete(i), i.i(e));
|
|
224
224
|
}
|
|
225
225
|
function K(i, e, t, n) {
|
|
226
226
|
if (i && i.o) {
|
|
227
|
-
if (
|
|
228
|
-
|
|
229
|
-
|
|
227
|
+
if (qe.has(i)) return;
|
|
228
|
+
qe.add(i), Le.c.push(() => {
|
|
229
|
+
qe.delete(i), n && (t && i.d(1), n());
|
|
230
230
|
}), i.o(e);
|
|
231
231
|
} else n && n();
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function Nt(i) {
|
|
234
234
|
return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function ji(i, e) {
|
|
237
237
|
K(i, 1, 1, () => {
|
|
238
238
|
e.delete(i.key);
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
|
-
function
|
|
242
|
-
let b = i.length, _ = u.length,
|
|
241
|
+
function Fi(i, e, t, n, r, u, l, o, d, c, f, g) {
|
|
242
|
+
let b = i.length, _ = u.length, w = b;
|
|
243
243
|
const I = {};
|
|
244
|
-
for (;
|
|
245
|
-
const
|
|
246
|
-
for (
|
|
247
|
-
const L = g(r, u,
|
|
248
|
-
let
|
|
249
|
-
|
|
244
|
+
for (; w--; ) I[i[w].key] = w;
|
|
245
|
+
const S = [], T = /* @__PURE__ */ new Map(), z = /* @__PURE__ */ new Map(), C = [];
|
|
246
|
+
for (w = _; w--; ) {
|
|
247
|
+
const L = g(r, u, w), y = t(L);
|
|
248
|
+
let M = l.get(y);
|
|
249
|
+
M ? C.push(() => M.p(L, e)) : (M = c(y, L), M.c()), T.set(y, S[w] = M), y in I && z.set(y, Math.abs(w - I[y]));
|
|
250
250
|
}
|
|
251
|
-
const q = /* @__PURE__ */ new Set(),
|
|
252
|
-
function
|
|
253
|
-
|
|
251
|
+
const q = /* @__PURE__ */ new Set(), J = /* @__PURE__ */ new Set();
|
|
252
|
+
function k(L) {
|
|
253
|
+
Z(L, 1), L.m(o, f), l.set(L.key, L), f = L.first, _--;
|
|
254
254
|
}
|
|
255
255
|
for (; b && _; ) {
|
|
256
|
-
const L =
|
|
257
|
-
L === y ? (f = L.first, b--, _--) :
|
|
256
|
+
const L = S[_ - 1], y = i[b - 1], M = L.key, m = y.key;
|
|
257
|
+
L === y ? (f = L.first, b--, _--) : T.has(m) ? !l.has(M) || q.has(M) ? k(L) : J.has(m) ? b-- : z.get(M) > z.get(m) ? (J.add(M), k(L)) : (q.add(m), b--) : (d(y, l), b--);
|
|
258
258
|
}
|
|
259
259
|
for (; b--; ) {
|
|
260
260
|
const L = i[b];
|
|
261
|
-
|
|
261
|
+
T.has(L.key) || d(L, l);
|
|
262
262
|
}
|
|
263
|
-
for (; _; )
|
|
264
|
-
return
|
|
263
|
+
for (; _; ) k(S[_ - 1]);
|
|
264
|
+
return ue(C), S;
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function ge(i) {
|
|
267
267
|
i && i.c();
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function ae(i, e, t) {
|
|
270
270
|
const { fragment: n, after_update: r } = i.$$;
|
|
271
|
-
n && n.m(e, t),
|
|
272
|
-
const u = i.$$.on_mount.map(
|
|
273
|
-
i.$$.on_destroy ? i.$$.on_destroy.push(...u) :
|
|
274
|
-
}), r.forEach(
|
|
271
|
+
n && n.m(e, t), mt(() => {
|
|
272
|
+
const u = i.$$.on_mount.map(Ht).filter(Zt);
|
|
273
|
+
i.$$.on_destroy ? i.$$.on_destroy.push(...u) : ue(u), i.$$.on_mount = [];
|
|
274
|
+
}), r.forEach(mt);
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function le(i, e) {
|
|
277
277
|
const t = i.$$;
|
|
278
|
-
t.fragment !== null && (
|
|
278
|
+
t.fragment !== null && (Pi(t.after_update), ue(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 Hi(i, e) {
|
|
281
|
+
i.$$.dirty[0] === -1 && (Se.push(i), Ai(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
282
282
|
}
|
|
283
|
-
function
|
|
284
|
-
const d =
|
|
285
|
-
|
|
283
|
+
function ye(i, e, t, n, r, u, l = null, o = [-1]) {
|
|
284
|
+
const d = Ue;
|
|
285
|
+
Re(i);
|
|
286
286
|
const c = i.$$ = {
|
|
287
287
|
fragment: null,
|
|
288
288
|
ctx: [],
|
|
@@ -290,7 +290,7 @@ function be(i, e, t, n, r, u, l = null, o = [-1]) {
|
|
|
290
290
|
props: u,
|
|
291
291
|
update: P,
|
|
292
292
|
not_equal: r,
|
|
293
|
-
bound:
|
|
293
|
+
bound: Et(),
|
|
294
294
|
// lifecycle
|
|
295
295
|
on_mount: [],
|
|
296
296
|
on_destroy: [],
|
|
@@ -299,7 +299,7 @@ function be(i, e, t, n, r, u, l = null, o = [-1]) {
|
|
|
299
299
|
after_update: [],
|
|
300
300
|
context: new Map(e.context || (d ? d.$$.context : [])),
|
|
301
301
|
// everything else
|
|
302
|
-
callbacks:
|
|
302
|
+
callbacks: Et(),
|
|
303
303
|
dirty: o,
|
|
304
304
|
skip_bound: !1,
|
|
305
305
|
root: e.target || d.$$.root
|
|
@@ -307,19 +307,19 @@ function be(i, e, t, n, r, u, l = null, o = [-1]) {
|
|
|
307
307
|
l && l(c.root);
|
|
308
308
|
let f = !1;
|
|
309
309
|
if (c.ctx = t ? t(i, e.props || {}, (g, b, ..._) => {
|
|
310
|
-
const
|
|
311
|
-
return c.ctx && r(c.ctx[g], c.ctx[g] =
|
|
312
|
-
}) : [], c.update(), f = !0,
|
|
310
|
+
const w = _.length ? _[0] : b;
|
|
311
|
+
return c.ctx && r(c.ctx[g], c.ctx[g] = w) && (!c.skip_bound && c.bound[g] && c.bound[g](w), f && Hi(i, g)), b;
|
|
312
|
+
}) : [], c.update(), f = !0, ue(c.before_update), c.fragment = n ? n(c.ctx) : !1, e.target) {
|
|
313
313
|
if (e.hydrate) {
|
|
314
|
-
const g =
|
|
314
|
+
const g = Ri(e.target);
|
|
315
315
|
c.fragment && c.fragment.l(g), g.forEach(A);
|
|
316
316
|
} else
|
|
317
317
|
c.fragment && c.fragment.c();
|
|
318
|
-
e.intro &&
|
|
318
|
+
e.intro && Z(i.$$.fragment), ae(i, e.target, e.anchor), Kt();
|
|
319
319
|
}
|
|
320
|
-
|
|
320
|
+
Re(d);
|
|
321
321
|
}
|
|
322
|
-
class
|
|
322
|
+
class we {
|
|
323
323
|
constructor() {
|
|
324
324
|
/**
|
|
325
325
|
* ### PRIVATE API
|
|
@@ -328,7 +328,7 @@ class ve {
|
|
|
328
328
|
*
|
|
329
329
|
* @type {any}
|
|
330
330
|
*/
|
|
331
|
-
|
|
331
|
+
lt(this, "$$");
|
|
332
332
|
/**
|
|
333
333
|
* ### PRIVATE API
|
|
334
334
|
*
|
|
@@ -336,11 +336,11 @@ class ve {
|
|
|
336
336
|
*
|
|
337
337
|
* @type {any}
|
|
338
338
|
*/
|
|
339
|
-
|
|
339
|
+
lt(this, "$$set");
|
|
340
340
|
}
|
|
341
341
|
/** @returns {void} */
|
|
342
342
|
$destroy() {
|
|
343
|
-
|
|
343
|
+
le(this, 1), this.$destroy = P;
|
|
344
344
|
}
|
|
345
345
|
/**
|
|
346
346
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -349,7 +349,7 @@ class ve {
|
|
|
349
349
|
* @returns {() => void}
|
|
350
350
|
*/
|
|
351
351
|
$on(e, t) {
|
|
352
|
-
if (!
|
|
352
|
+
if (!Zt(t))
|
|
353
353
|
return P;
|
|
354
354
|
const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
355
355
|
return n.push(t), () => {
|
|
@@ -362,19 +362,19 @@ class ve {
|
|
|
362
362
|
* @returns {void}
|
|
363
363
|
*/
|
|
364
364
|
$set(e) {
|
|
365
|
-
this.$$set && !
|
|
365
|
+
this.$$set && !Ti(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 Gi(i) {
|
|
371
371
|
let e, t;
|
|
372
372
|
return {
|
|
373
373
|
c() {
|
|
374
|
-
e =
|
|
374
|
+
e = se("svg"), t = se("path"), a(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"), a(e, "viewBox", "0 0 14 14"), a(e, "width", "13"), a(e, "height", "13"), a(e, "class", "svelte-en2qvf");
|
|
375
375
|
},
|
|
376
376
|
m(n, r) {
|
|
377
|
-
j(n, e, r),
|
|
377
|
+
j(n, e, r), N(e, t);
|
|
378
378
|
},
|
|
379
379
|
p: P,
|
|
380
380
|
i: P,
|
|
@@ -384,19 +384,19 @@ function ji(i) {
|
|
|
384
384
|
}
|
|
385
385
|
};
|
|
386
386
|
}
|
|
387
|
-
class
|
|
387
|
+
class Vt extends we {
|
|
388
388
|
constructor(e) {
|
|
389
|
-
super(),
|
|
389
|
+
super(), ye(this, e, null, Gi, _e, {});
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function qi(i) {
|
|
393
393
|
let e, t;
|
|
394
394
|
return {
|
|
395
395
|
c() {
|
|
396
|
-
e =
|
|
396
|
+
e = se("svg"), t = se("path"), a(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"), a(e, "viewBox", "0 0 30 30"), a(e, "fill", "none"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "class", "svelte-d2loi5");
|
|
397
397
|
},
|
|
398
398
|
m(n, r) {
|
|
399
|
-
j(n, e, r),
|
|
399
|
+
j(n, e, r), N(e, t);
|
|
400
400
|
},
|
|
401
401
|
p: P,
|
|
402
402
|
i: P,
|
|
@@ -406,16 +406,16 @@ function Fi(i) {
|
|
|
406
406
|
}
|
|
407
407
|
};
|
|
408
408
|
}
|
|
409
|
-
class
|
|
409
|
+
class Jt extends we {
|
|
410
410
|
constructor(e) {
|
|
411
|
-
super(),
|
|
411
|
+
super(), ye(this, e, null, qi, _e, {});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function Qi(i) {
|
|
415
415
|
let e, t;
|
|
416
416
|
return {
|
|
417
417
|
c() {
|
|
418
|
-
e =
|
|
418
|
+
e = U("img"), X(e.src, t = /*iconsBaseUrl*/
|
|
419
419
|
i[3] + "area.svg") || a(e, "src", t), a(
|
|
420
420
|
e,
|
|
421
421
|
"alt",
|
|
@@ -433,7 +433,7 @@ function Hi(i) {
|
|
|
433
433
|
},
|
|
434
434
|
p(n, r) {
|
|
435
435
|
r & /*iconsBaseUrl*/
|
|
436
|
-
8 && !
|
|
436
|
+
8 && !X(e.src, t = /*iconsBaseUrl*/
|
|
437
437
|
n[3] + "area.svg") && a(e, "src", t), r & /*placeType*/
|
|
438
438
|
64 && a(
|
|
439
439
|
e,
|
|
@@ -453,11 +453,11 @@ function Hi(i) {
|
|
|
453
453
|
}
|
|
454
454
|
};
|
|
455
455
|
}
|
|
456
|
-
function
|
|
456
|
+
function Ki(i) {
|
|
457
457
|
let e, t;
|
|
458
458
|
return {
|
|
459
459
|
c() {
|
|
460
|
-
e =
|
|
460
|
+
e = U("img"), X(e.src, t = /*iconsBaseUrl*/
|
|
461
461
|
i[3] + "reverse.svg") || a(e, "src", t), a(
|
|
462
462
|
e,
|
|
463
463
|
"alt",
|
|
@@ -475,7 +475,7 @@ function Zi(i) {
|
|
|
475
475
|
},
|
|
476
476
|
p(n, r) {
|
|
477
477
|
r & /*iconsBaseUrl*/
|
|
478
|
-
8 && !
|
|
478
|
+
8 && !X(e.src, t = /*iconsBaseUrl*/
|
|
479
479
|
n[3] + "reverse.svg") && a(e, "src", t), r & /*placeType*/
|
|
480
480
|
64 && a(
|
|
481
481
|
e,
|
|
@@ -495,11 +495,11 @@ function Zi(i) {
|
|
|
495
495
|
}
|
|
496
496
|
};
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function Vi(i) {
|
|
499
499
|
let e, t;
|
|
500
500
|
return {
|
|
501
501
|
c() {
|
|
502
|
-
e =
|
|
502
|
+
e = U("img"), X(e.src, t = /*iconsBaseUrl*/
|
|
503
503
|
i[3] + "poi.svg") || a(e, "src", t), a(
|
|
504
504
|
e,
|
|
505
505
|
"alt",
|
|
@@ -517,7 +517,7 @@ function Gi(i) {
|
|
|
517
517
|
},
|
|
518
518
|
p(n, r) {
|
|
519
519
|
r & /*iconsBaseUrl*/
|
|
520
|
-
8 && !
|
|
520
|
+
8 && !X(e.src, t = /*iconsBaseUrl*/
|
|
521
521
|
n[3] + "poi.svg") && a(e, "src", t), r & /*placeType*/
|
|
522
522
|
64 && a(
|
|
523
523
|
e,
|
|
@@ -537,11 +537,11 @@ function Gi(i) {
|
|
|
537
537
|
}
|
|
538
538
|
};
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function Ji(i) {
|
|
541
541
|
let e, t;
|
|
542
542
|
return {
|
|
543
543
|
c() {
|
|
544
|
-
e =
|
|
544
|
+
e = U("img"), X(e.src, t = /*iconsBaseUrl*/
|
|
545
545
|
i[3] + "postal_code.svg") || a(e, "src", t), a(
|
|
546
546
|
e,
|
|
547
547
|
"alt",
|
|
@@ -559,7 +559,7 @@ function qi(i) {
|
|
|
559
559
|
},
|
|
560
560
|
p(n, r) {
|
|
561
561
|
r & /*iconsBaseUrl*/
|
|
562
|
-
8 && !
|
|
562
|
+
8 && !X(e.src, t = /*iconsBaseUrl*/
|
|
563
563
|
n[3] + "postal_code.svg") && a(e, "src", t), r & /*placeType*/
|
|
564
564
|
64 && a(
|
|
565
565
|
e,
|
|
@@ -579,11 +579,11 @@ function qi(i) {
|
|
|
579
579
|
}
|
|
580
580
|
};
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function Xi(i) {
|
|
583
583
|
let e, t;
|
|
584
584
|
return {
|
|
585
585
|
c() {
|
|
586
|
-
e =
|
|
586
|
+
e = U("img"), X(e.src, t = /*iconsBaseUrl*/
|
|
587
587
|
i[3] + "street.svg") || a(e, "src", t), a(
|
|
588
588
|
e,
|
|
589
589
|
"alt",
|
|
@@ -601,7 +601,7 @@ function Qi(i) {
|
|
|
601
601
|
},
|
|
602
602
|
p(n, r) {
|
|
603
603
|
r & /*iconsBaseUrl*/
|
|
604
|
-
8 && !
|
|
604
|
+
8 && !X(e.src, t = /*iconsBaseUrl*/
|
|
605
605
|
n[3] + "street.svg") && a(e, "src", t), r & /*placeType*/
|
|
606
606
|
64 && a(
|
|
607
607
|
e,
|
|
@@ -621,11 +621,11 @@ function Qi(i) {
|
|
|
621
621
|
}
|
|
622
622
|
};
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function Yi(i) {
|
|
625
625
|
let e, t;
|
|
626
626
|
return {
|
|
627
627
|
c() {
|
|
628
|
-
e =
|
|
628
|
+
e = U("img"), X(e.src, t = /*iconsBaseUrl*/
|
|
629
629
|
i[3] + "road.svg") || a(e, "src", t), a(
|
|
630
630
|
e,
|
|
631
631
|
"alt",
|
|
@@ -643,7 +643,7 @@ function Ki(i) {
|
|
|
643
643
|
},
|
|
644
644
|
p(n, r) {
|
|
645
645
|
r & /*iconsBaseUrl*/
|
|
646
|
-
8 && !
|
|
646
|
+
8 && !X(e.src, t = /*iconsBaseUrl*/
|
|
647
647
|
n[3] + "road.svg") && a(e, "src", t), r & /*placeType*/
|
|
648
648
|
64 && a(
|
|
649
649
|
e,
|
|
@@ -663,11 +663,11 @@ function Ki(i) {
|
|
|
663
663
|
}
|
|
664
664
|
};
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function xi(i) {
|
|
667
667
|
let e, t;
|
|
668
668
|
return {
|
|
669
669
|
c() {
|
|
670
|
-
e =
|
|
670
|
+
e = U("img"), X(e.src, t = /*iconsBaseUrl*/
|
|
671
671
|
i[3] + "housenumber.svg") || a(e, "src", t), a(
|
|
672
672
|
e,
|
|
673
673
|
"alt",
|
|
@@ -685,7 +685,7 @@ function Vi(i) {
|
|
|
685
685
|
},
|
|
686
686
|
p(n, r) {
|
|
687
687
|
r & /*iconsBaseUrl*/
|
|
688
|
-
8 && !
|
|
688
|
+
8 && !X(e.src, t = /*iconsBaseUrl*/
|
|
689
689
|
n[3] + "housenumber.svg") && a(e, "src", t), r & /*placeType*/
|
|
690
690
|
64 && a(
|
|
691
691
|
e,
|
|
@@ -705,11 +705,11 @@ function Vi(i) {
|
|
|
705
705
|
}
|
|
706
706
|
};
|
|
707
707
|
}
|
|
708
|
-
function
|
|
708
|
+
function $i(i) {
|
|
709
709
|
let e, t, n, r;
|
|
710
710
|
return {
|
|
711
711
|
c() {
|
|
712
|
-
e =
|
|
712
|
+
e = U("img"), X(e.src, t = /*imageUrl*/
|
|
713
713
|
i[5]) || a(e, "src", t), a(
|
|
714
714
|
e,
|
|
715
715
|
"alt",
|
|
@@ -732,7 +732,7 @@ function Ji(i) {
|
|
|
732
732
|
},
|
|
733
733
|
p(u, l) {
|
|
734
734
|
l & /*imageUrl*/
|
|
735
|
-
32 && !
|
|
735
|
+
32 && !X(e.src, t = /*imageUrl*/
|
|
736
736
|
u[5]) && a(e, "src", t), l & /*category*/
|
|
737
737
|
16 && a(
|
|
738
738
|
e,
|
|
@@ -752,21 +752,21 @@ function Ji(i) {
|
|
|
752
752
|
}
|
|
753
753
|
};
|
|
754
754
|
}
|
|
755
|
-
function
|
|
755
|
+
function kt(i) {
|
|
756
756
|
let e, t;
|
|
757
757
|
return {
|
|
758
758
|
c() {
|
|
759
|
-
e =
|
|
759
|
+
e = U("span"), t = me(
|
|
760
760
|
/*placeType*/
|
|
761
761
|
i[6]
|
|
762
762
|
), a(e, "class", "secondary svelte-z7p9pp");
|
|
763
763
|
},
|
|
764
764
|
m(n, r) {
|
|
765
|
-
j(n, e, r),
|
|
765
|
+
j(n, e, r), N(e, t);
|
|
766
766
|
},
|
|
767
767
|
p(n, r) {
|
|
768
768
|
r & /*placeType*/
|
|
769
|
-
64 &&
|
|
769
|
+
64 && Oe(
|
|
770
770
|
t,
|
|
771
771
|
/*placeType*/
|
|
772
772
|
n[6]
|
|
@@ -777,7 +777,7 @@ function St(i) {
|
|
|
777
777
|
}
|
|
778
778
|
};
|
|
779
779
|
}
|
|
780
|
-
function
|
|
780
|
+
function en(i) {
|
|
781
781
|
let e, t, n, r, u, l, o, d, c, f = (
|
|
782
782
|
/*isReverse*/
|
|
783
783
|
(i[8] ? (
|
|
@@ -798,43 +798,43 @@ function Xi(i) {
|
|
|
798
798
|
i[0].id.startsWith("poi.") || !/*imageUrl*/
|
|
799
799
|
i[5]) && !/*isReverse*/
|
|
800
800
|
i[8]
|
|
801
|
-
),
|
|
801
|
+
), w, I, S = (
|
|
802
802
|
/*isReverse*/
|
|
803
803
|
(i[8] ? "" : (
|
|
804
804
|
/*feature*/
|
|
805
805
|
i[0].place_name.replace(/[^,]*,?\s*/, "")
|
|
806
806
|
)) + ""
|
|
807
|
-
),
|
|
808
|
-
function L(
|
|
807
|
+
), T, z, C, q, J, k;
|
|
808
|
+
function L(p, R) {
|
|
809
809
|
return R & /*feature*/
|
|
810
810
|
1 && (t = null), R & /*feature*/
|
|
811
811
|
1 && (n = null), R & /*feature*/
|
|
812
812
|
1 && (r = null), R & /*feature*/
|
|
813
813
|
1 && (u = null), /*imageUrl*/
|
|
814
|
-
|
|
814
|
+
p[5] ? $i : (
|
|
815
815
|
/*feature*/
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
816
|
+
p[0].address ? xi : (t == null && (t = !!/*feature*/
|
|
817
|
+
p[0].id.startsWith("road.")), t ? Yi : (n == null && (n = !!/*feature*/
|
|
818
|
+
p[0].id.startsWith("address.")), n ? Xi : (r == null && (r = !!/*feature*/
|
|
819
|
+
p[0].id.startsWith("postal_code.")), r ? Ji : (u == null && (u = !!/*feature*/
|
|
820
|
+
p[0].id.startsWith("poi.")), u ? Vi : (
|
|
821
821
|
/*isReverse*/
|
|
822
|
-
|
|
822
|
+
p[8] ? Ki : Qi
|
|
823
823
|
)))))
|
|
824
824
|
);
|
|
825
825
|
}
|
|
826
|
-
let y = L(i, -1),
|
|
826
|
+
let y = L(i, -1), M = y(i), m = _ && kt(i);
|
|
827
827
|
return {
|
|
828
828
|
c() {
|
|
829
|
-
e =
|
|
830
|
-
i[1] === "selected"), a(e, "aria-checked",
|
|
831
|
-
i[1] === "picked"), a(e, "class", q =
|
|
829
|
+
e = U("li"), M.c(), l = Y(), o = U("span"), d = U("span"), c = U("span"), g = me(f), b = Y(), m && m.c(), w = Y(), I = U("span"), T = me(S), a(c, "class", "primary svelte-z7p9pp"), a(d, "class", "svelte-z7p9pp"), a(I, "class", "line2 svelte-z7p9pp"), a(o, "class", "texts svelte-z7p9pp"), a(e, "tabindex", "-1"), a(e, "role", "option"), a(e, "aria-selected", z = /*style*/
|
|
830
|
+
i[1] === "selected"), a(e, "aria-checked", C = /*style*/
|
|
831
|
+
i[1] === "picked"), a(e, "class", q = Ve(
|
|
832
832
|
/*style*/
|
|
833
833
|
i[1]
|
|
834
834
|
) + " svelte-z7p9pp");
|
|
835
835
|
},
|
|
836
|
-
m(
|
|
837
|
-
j(
|
|
836
|
+
m(p, R) {
|
|
837
|
+
j(p, e, R), M.m(e, null), N(e, l), N(e, o), N(o, d), N(d, c), N(c, g), N(d, b), m && m.m(d, null), N(o, w), N(o, I), N(I, T), J || (k = [
|
|
838
838
|
Q(
|
|
839
839
|
e,
|
|
840
840
|
"mouseenter",
|
|
@@ -853,74 +853,74 @@ function Xi(i) {
|
|
|
853
853
|
/*click_handler*/
|
|
854
854
|
i[16]
|
|
855
855
|
)
|
|
856
|
-
],
|
|
856
|
+
], J = !0);
|
|
857
857
|
},
|
|
858
|
-
p(
|
|
859
|
-
y === (y = L(
|
|
858
|
+
p(p, [R]) {
|
|
859
|
+
y === (y = L(p, R)) && M ? M.p(p, R) : (M.d(1), M = y(p), M && (M.c(), M.m(e, l))), R & /*feature*/
|
|
860
860
|
1 && f !== (f = /*isReverse*/
|
|
861
|
-
(
|
|
861
|
+
(p[8] ? (
|
|
862
862
|
/*feature*/
|
|
863
|
-
|
|
863
|
+
p[0].place_name
|
|
864
864
|
) : (
|
|
865
865
|
/*feature*/
|
|
866
|
-
|
|
867
|
-
)) + "") &&
|
|
866
|
+
p[0].place_name.replace(/,.*/, "")
|
|
867
|
+
)) + "") && Oe(g, f), R & /*showPlaceType, feature, imageUrl*/
|
|
868
868
|
37 && (_ = /*showPlaceType*/
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
1 &&
|
|
879
|
-
(
|
|
869
|
+
p[2] === "always" || /*showPlaceType*/
|
|
870
|
+
p[2] !== "never" && !/*feature*/
|
|
871
|
+
p[0].address && !/*feature*/
|
|
872
|
+
p[0].id.startsWith("road.") && !/*feature*/
|
|
873
|
+
p[0].id.startsWith("address.") && !/*feature*/
|
|
874
|
+
p[0].id.startsWith("postal_code.") && (!/*feature*/
|
|
875
|
+
p[0].id.startsWith("poi.") || !/*imageUrl*/
|
|
876
|
+
p[5]) && !/*isReverse*/
|
|
877
|
+
p[8]), _ ? m ? m.p(p, R) : (m = kt(p), m.c(), m.m(d, null)) : m && (m.d(1), m = null), R & /*feature*/
|
|
878
|
+
1 && S !== (S = /*isReverse*/
|
|
879
|
+
(p[8] ? "" : (
|
|
880
880
|
/*feature*/
|
|
881
|
-
|
|
882
|
-
)) + "") &&
|
|
881
|
+
p[0].place_name.replace(/[^,]*,?\s*/, "")
|
|
882
|
+
)) + "") && Oe(T, S), R & /*style*/
|
|
883
883
|
2 && z !== (z = /*style*/
|
|
884
|
-
|
|
885
|
-
2 &&
|
|
886
|
-
|
|
887
|
-
2 && q !== (q =
|
|
884
|
+
p[1] === "selected") && a(e, "aria-selected", z), R & /*style*/
|
|
885
|
+
2 && C !== (C = /*style*/
|
|
886
|
+
p[1] === "picked") && a(e, "aria-checked", C), R & /*style*/
|
|
887
|
+
2 && q !== (q = Ve(
|
|
888
888
|
/*style*/
|
|
889
|
-
|
|
889
|
+
p[1]
|
|
890
890
|
) + " svelte-z7p9pp") && a(e, "class", q);
|
|
891
891
|
},
|
|
892
892
|
i: P,
|
|
893
893
|
o: P,
|
|
894
|
-
d(
|
|
895
|
-
|
|
894
|
+
d(p) {
|
|
895
|
+
p && A(e), M.d(), m && m.d(), J = !1, ue(k);
|
|
896
896
|
}
|
|
897
897
|
};
|
|
898
898
|
}
|
|
899
|
-
function
|
|
900
|
-
var
|
|
899
|
+
function tn(i, e, t) {
|
|
900
|
+
var J;
|
|
901
901
|
let n, r, { feature: u } = e, { style: l = "default" } = e, { showPlaceType: o } = e, { missingIconsCache: d } = e, { iconsBaseUrl: c } = e;
|
|
902
|
-
const f =
|
|
903
|
-
let b, _,
|
|
904
|
-
function
|
|
905
|
-
_ && d.add(_), t(11,
|
|
902
|
+
const f = Qt(), g = (J = u.properties) == null ? void 0 : J.categories;
|
|
903
|
+
let b, _, w = 0, I = u.place_type[0] === "reverse";
|
|
904
|
+
function S() {
|
|
905
|
+
_ && d.add(_), t(11, w++, w);
|
|
906
906
|
}
|
|
907
|
-
function
|
|
908
|
-
|
|
907
|
+
function T(k) {
|
|
908
|
+
Di.call(this, i, k);
|
|
909
909
|
}
|
|
910
|
-
const z = () =>
|
|
911
|
-
document.activeElement !==
|
|
910
|
+
const z = () => S(), C = () => f("select", void 0), q = (k) => {
|
|
911
|
+
document.activeElement !== k.target && f("select", void 0);
|
|
912
912
|
};
|
|
913
|
-
return i.$$set = (
|
|
914
|
-
"feature" in
|
|
913
|
+
return i.$$set = (k) => {
|
|
914
|
+
"feature" in k && t(0, u = k.feature), "style" in k && t(1, l = k.style), "showPlaceType" in k && t(2, o = k.showPlaceType), "missingIconsCache" in k && t(10, d = k.missingIconsCache), "iconsBaseUrl" in k && t(3, c = k.iconsBaseUrl);
|
|
915
915
|
}, i.$$.update = () => {
|
|
916
|
-
var
|
|
916
|
+
var k, L, y, M;
|
|
917
917
|
if (i.$$.dirty & /*loadIconAttempt, index, category, iconsBaseUrl, imageUrl, missingIconsCache*/
|
|
918
918
|
7224)
|
|
919
919
|
do
|
|
920
920
|
t(12, n--, n), t(4, b = g == null ? void 0 : g[n]), t(5, _ = b ? c + b.replace(/ /g, "_") + ".svg" : void 0);
|
|
921
921
|
while (n > -1 && (!_ || d.has(_)));
|
|
922
922
|
i.$$.dirty & /*feature*/
|
|
923
|
-
1 && t(6, r = ((L = (
|
|
923
|
+
1 && t(6, r = ((L = (k = u.properties) == null ? void 0 : k.categories) == null ? void 0 : L.join(", ")) ?? ((M = (y = u.properties) == null ? void 0 : y.place_type_name) == null ? void 0 : M[0]) ?? u.place_type[0]);
|
|
924
924
|
}, t(12, n = (g == null ? void 0 : g.length) ?? 0), [
|
|
925
925
|
u,
|
|
926
926
|
l,
|
|
@@ -931,19 +931,19 @@ function Yi(i, e, t) {
|
|
|
931
931
|
r,
|
|
932
932
|
f,
|
|
933
933
|
I,
|
|
934
|
-
|
|
934
|
+
S,
|
|
935
935
|
d,
|
|
936
|
-
|
|
936
|
+
w,
|
|
937
937
|
n,
|
|
938
|
-
|
|
938
|
+
T,
|
|
939
939
|
z,
|
|
940
|
-
|
|
940
|
+
C,
|
|
941
941
|
q
|
|
942
942
|
];
|
|
943
943
|
}
|
|
944
|
-
class
|
|
944
|
+
class nn extends we {
|
|
945
945
|
constructor(e) {
|
|
946
|
-
super(),
|
|
946
|
+
super(), ye(this, e, tn, en, _e, {
|
|
947
947
|
feature: 0,
|
|
948
948
|
style: 1,
|
|
949
949
|
showPlaceType: 2,
|
|
@@ -952,11 +952,11 @@ class xi extends ve {
|
|
|
952
952
|
});
|
|
953
953
|
}
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function rn(i) {
|
|
956
956
|
let e;
|
|
957
957
|
return {
|
|
958
958
|
c() {
|
|
959
|
-
e =
|
|
959
|
+
e = U("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>', a(e, "class", "svelte-7cmwmc");
|
|
960
960
|
},
|
|
961
961
|
m(t, n) {
|
|
962
962
|
j(t, e, n);
|
|
@@ -969,19 +969,19 @@ function $i(i) {
|
|
|
969
969
|
}
|
|
970
970
|
};
|
|
971
971
|
}
|
|
972
|
-
class
|
|
972
|
+
class on extends we {
|
|
973
973
|
constructor(e) {
|
|
974
|
-
super(),
|
|
974
|
+
super(), ye(this, e, null, rn, _e, {});
|
|
975
975
|
}
|
|
976
976
|
}
|
|
977
|
-
function
|
|
977
|
+
function sn(i) {
|
|
978
978
|
let e, t;
|
|
979
979
|
return {
|
|
980
980
|
c() {
|
|
981
|
-
e =
|
|
981
|
+
e = se("svg"), t = se("path"), a(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"), a(e, "viewBox", "0 0 60.006 21.412"), a(e, "width", "14"), a(e, "height", "20"), a(e, "class", "svelte-en2qvf");
|
|
982
982
|
},
|
|
983
983
|
m(n, r) {
|
|
984
|
-
j(n, e, r),
|
|
984
|
+
j(n, e, r), N(e, t);
|
|
985
985
|
},
|
|
986
986
|
p: P,
|
|
987
987
|
i: P,
|
|
@@ -991,19 +991,19 @@ function tn(i) {
|
|
|
991
991
|
}
|
|
992
992
|
};
|
|
993
993
|
}
|
|
994
|
-
class
|
|
994
|
+
class an extends we {
|
|
995
995
|
constructor(e) {
|
|
996
|
-
super(),
|
|
996
|
+
super(), ye(this, e, null, sn, _e, {});
|
|
997
997
|
}
|
|
998
998
|
}
|
|
999
|
-
function
|
|
999
|
+
function ln(i) {
|
|
1000
1000
|
let e, t, n;
|
|
1001
1001
|
return {
|
|
1002
1002
|
c() {
|
|
1003
|
-
e =
|
|
1003
|
+
e = se("svg"), t = se("circle"), n = se("path"), a(t, "cx", "4.789"), a(t, "cy", "4.787"), a(t, "r", "3.85"), a(t, "class", "svelte-1aq105l"), a(n, "d", "M12.063 12.063 7.635 7.635"), a(n, "class", "svelte-1aq105l"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "width", "13"), a(e, "height", "13"), a(e, "viewBox", "0 0 13 13"), a(e, "class", "svelte-1aq105l");
|
|
1004
1004
|
},
|
|
1005
1005
|
m(r, u) {
|
|
1006
|
-
j(r, e, u),
|
|
1006
|
+
j(r, e, u), N(e, t), N(e, n);
|
|
1007
1007
|
},
|
|
1008
1008
|
p: P,
|
|
1009
1009
|
i: P,
|
|
@@ -1013,31 +1013,31 @@ function rn(i) {
|
|
|
1013
1013
|
}
|
|
1014
1014
|
};
|
|
1015
1015
|
}
|
|
1016
|
-
class
|
|
1016
|
+
class un extends we {
|
|
1017
1017
|
constructor(e) {
|
|
1018
|
-
super(),
|
|
1018
|
+
super(), ye(this, e, null, ln, _e, {});
|
|
1019
1019
|
}
|
|
1020
1020
|
}
|
|
1021
|
-
function
|
|
1021
|
+
function cn(i, e, t) {
|
|
1022
1022
|
const n = e[1], r = e[0], u = n - r;
|
|
1023
1023
|
return i === n && t ? i : ((i - r) % u + u) % u + r;
|
|
1024
1024
|
}
|
|
1025
|
-
function
|
|
1025
|
+
function Mt(i) {
|
|
1026
1026
|
const e = [...i];
|
|
1027
1027
|
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;
|
|
1028
1028
|
}
|
|
1029
|
-
let
|
|
1030
|
-
async function
|
|
1029
|
+
let We;
|
|
1030
|
+
async function dn(i, e, t) {
|
|
1031
1031
|
const n = i == null ? void 0 : i.getCenterAndZoom();
|
|
1032
1032
|
for (const r of e ?? [])
|
|
1033
1033
|
if (!(n && (r.minZoom != null && r.minZoom > n[0] || r.maxZoom != null && r.maxZoom < n[0]))) {
|
|
1034
1034
|
if (r.type === "fixed")
|
|
1035
1035
|
return r.coordinates.join(",");
|
|
1036
1036
|
e: if (r.type === "client-geolocation") {
|
|
1037
|
-
if (
|
|
1038
|
-
if (!
|
|
1037
|
+
if (We && r.cachedLocationExpiry && We.time + r.cachedLocationExpiry > Date.now()) {
|
|
1038
|
+
if (!We.coords)
|
|
1039
1039
|
break e;
|
|
1040
|
-
return
|
|
1040
|
+
return We.coords;
|
|
1041
1041
|
}
|
|
1042
1042
|
let u;
|
|
1043
1043
|
try {
|
|
@@ -1058,7 +1058,7 @@ async function an(i, e, t) {
|
|
|
1058
1058
|
}), u;
|
|
1059
1059
|
} catch {
|
|
1060
1060
|
} finally {
|
|
1061
|
-
r.cachedLocationExpiry && (
|
|
1061
|
+
r.cachedLocationExpiry && (We = {
|
|
1062
1062
|
time: Date.now(),
|
|
1063
1063
|
coords: u
|
|
1064
1064
|
});
|
|
@@ -1072,8 +1072,8 @@ async function an(i, e, t) {
|
|
|
1072
1072
|
return n[1].toFixed(6) + "," + n[2].toFixed(6);
|
|
1073
1073
|
}
|
|
1074
1074
|
}
|
|
1075
|
-
const
|
|
1076
|
-
function
|
|
1075
|
+
const fn = /^(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, Ct = /^([+-]?[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, zt = /^(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, Rt = /^(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, Ot = /^(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;
|
|
1076
|
+
function mn(i) {
|
|
1077
1077
|
if (!["DMS", "DM", "DD"].includes(i))
|
|
1078
1078
|
throw new Error("invalid format specified");
|
|
1079
1079
|
if (this.decimalCoordinates && this.decimalCoordinates.trim()) {
|
|
@@ -1082,35 +1082,35 @@ function un(i) {
|
|
|
1082
1082
|
i == "DD" && (d = `${r}° ${l}, ${u}° ${o}`);
|
|
1083
1083
|
const c = Math.floor(r), f = Math.floor(u), g = (r - c) * 60, b = (u - f) * 60;
|
|
1084
1084
|
if (i == "DM") {
|
|
1085
|
-
let _ =
|
|
1086
|
-
_.endsWith(".000") &&
|
|
1085
|
+
let _ = Ut(g, 3).toFixed(3).padStart(6, "0"), w = Ut(b, 3).toFixed(3).padStart(6, "0");
|
|
1086
|
+
_.endsWith(".000") && w.endsWith(".000") && (_ = _.replace(/\.000$/, ""), w = w.replace(/\.000$/, "")), d = `${c}° ${_}' ${l}, ${f}° ${w}' ${o}`;
|
|
1087
1087
|
}
|
|
1088
1088
|
if (i == "DMS") {
|
|
1089
|
-
const _ = Math.floor(g),
|
|
1090
|
-
let I = ((g - _) * 60).toFixed(1).padStart(4, "0"),
|
|
1091
|
-
const
|
|
1092
|
-
I.endsWith(".0") &&
|
|
1089
|
+
const _ = Math.floor(g), w = Math.floor(b);
|
|
1090
|
+
let I = ((g - _) * 60).toFixed(1).padStart(4, "0"), S = ((b - w) * 60).toFixed(1).padStart(4, "0");
|
|
1091
|
+
const T = _.toString().padStart(2, "0"), z = w.toString().padStart(2, "0");
|
|
1092
|
+
I.endsWith(".0") && S.endsWith(".0") && (I = I.replace(/\.0$/, ""), S = S.replace(/\.0$/, "")), d = `${c}° ${T}' ${I}" ${l}, ${f}° ${z}' ${S}" ${o}`;
|
|
1093
1093
|
}
|
|
1094
1094
|
return d;
|
|
1095
1095
|
} else
|
|
1096
1096
|
throw new Error("no decimal coordinates to convert");
|
|
1097
1097
|
}
|
|
1098
|
-
function
|
|
1098
|
+
function Ut(i, e) {
|
|
1099
1099
|
const t = Math.pow(10, e);
|
|
1100
1100
|
return Math.round((i + Number.EPSILON) * t) / t;
|
|
1101
1101
|
}
|
|
1102
|
-
function
|
|
1102
|
+
function gt(i, e) {
|
|
1103
1103
|
e || (e = 5), i = i.replace(/\s+/g, " ").trim();
|
|
1104
1104
|
let t = null, n = null, r = "", u = "", l = null, o = [], d = !1;
|
|
1105
|
-
if (
|
|
1105
|
+
if (fn.test(i))
|
|
1106
1106
|
throw new Error("invalid coordinate value");
|
|
1107
|
-
if (
|
|
1108
|
-
if (o =
|
|
1107
|
+
if (Ct.test(i))
|
|
1108
|
+
if (o = Ct.exec(i), d = ze(o), d)
|
|
1109
1109
|
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), l = "DM";
|
|
1110
1110
|
else
|
|
1111
1111
|
throw new Error("invalid coordinate format");
|
|
1112
|
-
else if (
|
|
1113
|
-
if (o =
|
|
1112
|
+
else if (Wt.test(i))
|
|
1113
|
+
if (o = Wt.exec(i), d = ze(o), d) {
|
|
1114
1114
|
if (t = o[2], n = o[6], t.includes(",") && (t = t.replace(",", ".")), n.includes(",") && (n = n.replace(",", ".")), l = "DD", Number(Math.round(t)) == Number(t))
|
|
1115
1115
|
throw new Error("integer only coordinate provided");
|
|
1116
1116
|
if (Number(Math.round(n)) == Number(n))
|
|
@@ -1118,18 +1118,18 @@ function dt(i, e) {
|
|
|
1118
1118
|
o[1] ? (r = o[1], u = o[5]) : o[4] && (r = o[4], u = o[8]);
|
|
1119
1119
|
} else
|
|
1120
1120
|
throw new Error("invalid decimal coordinate format");
|
|
1121
|
-
else if (
|
|
1122
|
-
if (o =
|
|
1121
|
+
else if (zt.test(i))
|
|
1122
|
+
if (o = zt.exec(i), d = ze(o), d)
|
|
1123
1123
|
t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60, l = "DM"), o[6] && (t += o[6].replace(",", ".") / 3600, l = "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]);
|
|
1124
1124
|
else
|
|
1125
1125
|
throw new Error("invalid DMS coordinates format");
|
|
1126
|
-
else if (
|
|
1127
|
-
if (o =
|
|
1126
|
+
else if (Rt.test(i))
|
|
1127
|
+
if (o = Rt.exec(i), d = ze(o), d)
|
|
1128
1128
|
t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60, l = "DM"), o[6] && (t += o[6] / 3600, l = "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]);
|
|
1129
1129
|
else
|
|
1130
1130
|
throw new Error("invalid DMS coordinates format");
|
|
1131
|
-
else if (
|
|
1132
|
-
if (o =
|
|
1131
|
+
else if (Ot.test(i)) {
|
|
1132
|
+
if (o = Ot.exec(i), d = ze(o), o.filter((c) => c).length <= 5)
|
|
1133
1133
|
throw new Error("invalid coordinates format");
|
|
1134
1134
|
if (d)
|
|
1135
1135
|
t = Math.abs(parseInt(o[2])), o[4] && (t += o[4].replace(",", ".") / 60, l = "DM"), o[6] && (t += o[6].replace(",", ".") / 3600, l = "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]);
|
|
@@ -1150,28 +1150,28 @@ function dt(i, e) {
|
|
|
1150
1150
|
c.test(r) && t > 0 && (t = -1 * t), c = /W|WEST/i, c.test(u) && n > 0 && (n = -1 * n);
|
|
1151
1151
|
const f = o[0].trim();
|
|
1152
1152
|
let g, b;
|
|
1153
|
-
const _ = /[,/;\u0020]/g,
|
|
1154
|
-
if (
|
|
1155
|
-
const
|
|
1156
|
-
g = f.substring(0,
|
|
1153
|
+
const _ = /[,/;\u0020]/g, w = f.match(_);
|
|
1154
|
+
if (w == null) {
|
|
1155
|
+
const T = Math.floor(i.length / 2);
|
|
1156
|
+
g = f.substring(0, T).trim(), b = f.substring(T).trim();
|
|
1157
1157
|
} else {
|
|
1158
|
-
let
|
|
1159
|
-
|
|
1158
|
+
let T;
|
|
1159
|
+
w.length % 2 == 1 ? T = Math.floor(w.length / 2) : T = w.length / 2 - 1;
|
|
1160
1160
|
let z = 0;
|
|
1161
|
-
if (
|
|
1162
|
-
z = f.indexOf(
|
|
1161
|
+
if (T == 0)
|
|
1162
|
+
z = f.indexOf(w[0]), g = f.substring(0, z).trim(), b = f.substring(z + 1).trim();
|
|
1163
1163
|
else {
|
|
1164
|
-
let
|
|
1165
|
-
for (;
|
|
1166
|
-
z = f.indexOf(
|
|
1164
|
+
let C = 0, q = 0;
|
|
1165
|
+
for (; C <= T; )
|
|
1166
|
+
z = f.indexOf(w[C], q), q = z + 1, C++;
|
|
1167
1167
|
g = f.substring(0, z).trim(), b = f.substring(z + 1).trim();
|
|
1168
1168
|
}
|
|
1169
1169
|
}
|
|
1170
1170
|
const I = g.split(".");
|
|
1171
1171
|
if (I.length == 2 && I[1] == 0 && I[1].length != 2)
|
|
1172
1172
|
throw new Error("invalid coordinates format");
|
|
1173
|
-
const
|
|
1174
|
-
if (
|
|
1173
|
+
const S = b.split(".");
|
|
1174
|
+
if (S.length == 2 && S[1] == 0 && S[1].length != 2)
|
|
1175
1175
|
throw new Error("invalid coordinates format");
|
|
1176
1176
|
if (/^\d+$/.test(g) || /^\d+$/.test(b))
|
|
1177
1177
|
throw new Error("degree only coordinate/s provided");
|
|
@@ -1183,13 +1183,13 @@ function dt(i, e) {
|
|
|
1183
1183
|
decimalLongitude: n,
|
|
1184
1184
|
decimalCoordinates: `${t},${n}`,
|
|
1185
1185
|
originalFormat: l,
|
|
1186
|
-
closeEnough:
|
|
1187
|
-
toCoordinateFormat:
|
|
1186
|
+
closeEnough: gn,
|
|
1187
|
+
toCoordinateFormat: mn
|
|
1188
1188
|
});
|
|
1189
1189
|
} else
|
|
1190
1190
|
throw new Error("coordinates pattern match failed");
|
|
1191
1191
|
}
|
|
1192
|
-
function
|
|
1192
|
+
function ze(i) {
|
|
1193
1193
|
if (!isNaN(i[0]))
|
|
1194
1194
|
return !1;
|
|
1195
1195
|
const e = [...i];
|
|
@@ -1208,28 +1208,28 @@ function Te(i) {
|
|
|
1208
1208
|
}
|
|
1209
1209
|
return !0;
|
|
1210
1210
|
}
|
|
1211
|
-
function
|
|
1211
|
+
function Dt(i, e) {
|
|
1212
1212
|
const t = Math.abs(i - e);
|
|
1213
1213
|
return Number(t.toFixed(6)) <= 1e-5;
|
|
1214
1214
|
}
|
|
1215
|
-
function
|
|
1215
|
+
function gn(i) {
|
|
1216
1216
|
if (!i)
|
|
1217
1217
|
throw new Error("coords must be provided");
|
|
1218
1218
|
if (i.includes(",")) {
|
|
1219
1219
|
const e = i.split(",");
|
|
1220
1220
|
if (Number(e[0]) == NaN || Number(e[1]) == NaN)
|
|
1221
1221
|
throw new Error("coords are not valid decimals");
|
|
1222
|
-
return
|
|
1222
|
+
return Dt(this.decimalLatitude, Number(e[0])) && Dt(this.decimalLongitude, e[1]);
|
|
1223
1223
|
} else
|
|
1224
1224
|
throw new Error("coords being tested must be separated by a comma");
|
|
1225
1225
|
}
|
|
1226
|
-
const
|
|
1226
|
+
const hn = Object.freeze({
|
|
1227
1227
|
DMS: "DMS",
|
|
1228
1228
|
DM: "DM",
|
|
1229
1229
|
DD: "DD"
|
|
1230
1230
|
});
|
|
1231
|
-
|
|
1232
|
-
const
|
|
1231
|
+
gt.to = hn;
|
|
1232
|
+
const bn = [
|
|
1233
1233
|
{
|
|
1234
1234
|
verbatimCoordinates: "40.123, -74.123",
|
|
1235
1235
|
verbatimLatitude: "40.123",
|
|
@@ -1370,10 +1370,10 @@ const fn = [
|
|
|
1370
1370
|
verbatimLatitude: "40 7 22.8",
|
|
1371
1371
|
verbatimLongitude: "-74 7 22.8"
|
|
1372
1372
|
}
|
|
1373
|
-
],
|
|
1373
|
+
], vn = {
|
|
1374
1374
|
decimalLatitude: 40.123,
|
|
1375
1375
|
decimalLongitude: -74.123
|
|
1376
|
-
},
|
|
1376
|
+
}, Ln = [
|
|
1377
1377
|
{
|
|
1378
1378
|
verbatimCoordinates: `50°4'17.698"south, 14°24'2.826"east`,
|
|
1379
1379
|
verbatimLatitude: `50°4'17.698"south`,
|
|
@@ -1458,7 +1458,7 @@ const fn = [
|
|
|
1458
1458
|
decimalLatitude: -18.4,
|
|
1459
1459
|
decimalLongitude: 22.75
|
|
1460
1460
|
}
|
|
1461
|
-
],
|
|
1461
|
+
], _n = [
|
|
1462
1462
|
{
|
|
1463
1463
|
verbatimCoordinates: "10.432342S 10.6345345E",
|
|
1464
1464
|
verbatimLatitude: "10.432342S",
|
|
@@ -1593,49 +1593,49 @@ const fn = [
|
|
|
1593
1593
|
decimalLongitude: 18.33453
|
|
1594
1594
|
}
|
|
1595
1595
|
];
|
|
1596
|
-
function
|
|
1596
|
+
function yn() {
|
|
1597
1597
|
const i = [];
|
|
1598
|
-
return
|
|
1599
|
-
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...
|
|
1600
|
-
}), [...i, ...
|
|
1601
|
-
}
|
|
1602
|
-
const
|
|
1603
|
-
|
|
1604
|
-
const
|
|
1605
|
-
function
|
|
1598
|
+
return bn.forEach((e) => {
|
|
1599
|
+
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...vn });
|
|
1600
|
+
}), [...i, ...Ln, ..._n];
|
|
1601
|
+
}
|
|
1602
|
+
const wn = yn();
|
|
1603
|
+
gt.formats = wn.map((i) => i.verbatimCoordinates);
|
|
1604
|
+
const pn = gt;
|
|
1605
|
+
function It(i, e, t) {
|
|
1606
1606
|
const n = i.slice();
|
|
1607
|
-
return n[
|
|
1607
|
+
return n[94] = e[t], n[96] = t, n;
|
|
1608
1608
|
}
|
|
1609
|
-
function
|
|
1609
|
+
function At(i) {
|
|
1610
1610
|
let e, t;
|
|
1611
|
-
return e = new
|
|
1611
|
+
return e = new on({}), {
|
|
1612
1612
|
c() {
|
|
1613
|
-
|
|
1613
|
+
ge(e.$$.fragment);
|
|
1614
1614
|
},
|
|
1615
1615
|
m(n, r) {
|
|
1616
|
-
|
|
1616
|
+
ae(e, n, r), t = !0;
|
|
1617
1617
|
},
|
|
1618
1618
|
i(n) {
|
|
1619
|
-
t || (
|
|
1619
|
+
t || (Z(e.$$.fragment, n), t = !0);
|
|
1620
1620
|
},
|
|
1621
1621
|
o(n) {
|
|
1622
1622
|
K(e.$$.fragment, n), t = !1;
|
|
1623
1623
|
},
|
|
1624
1624
|
d(n) {
|
|
1625
|
-
|
|
1625
|
+
le(e, n);
|
|
1626
1626
|
}
|
|
1627
1627
|
};
|
|
1628
1628
|
}
|
|
1629
|
-
function
|
|
1629
|
+
function Bt(i) {
|
|
1630
1630
|
let e, t, n, r, u;
|
|
1631
|
-
return t = new
|
|
1631
|
+
return t = new an({}), {
|
|
1632
1632
|
c() {
|
|
1633
|
-
e =
|
|
1633
|
+
e = U("button"), ge(t.$$.fragment), a(e, "type", "button"), a(
|
|
1634
1634
|
e,
|
|
1635
1635
|
"title",
|
|
1636
1636
|
/*reverseButtonTitle*/
|
|
1637
1637
|
i[10]
|
|
1638
|
-
), a(e, "class", "svelte-bz0zu3"),
|
|
1638
|
+
), a(e, "class", "svelte-bz0zu3"), Te(
|
|
1639
1639
|
e,
|
|
1640
1640
|
"active",
|
|
1641
1641
|
/*reverseActive*/
|
|
@@ -1643,11 +1643,11 @@ function Dt(i) {
|
|
|
1643
1643
|
);
|
|
1644
1644
|
},
|
|
1645
1645
|
m(l, o) {
|
|
1646
|
-
j(l, e, o),
|
|
1646
|
+
j(l, e, o), ae(t, e, null), n = !0, r || (u = Q(
|
|
1647
1647
|
e,
|
|
1648
1648
|
"click",
|
|
1649
1649
|
/*click_handler_3*/
|
|
1650
|
-
i[
|
|
1650
|
+
i[78]
|
|
1651
1651
|
), r = !0);
|
|
1652
1652
|
},
|
|
1653
1653
|
p(l, o) {
|
|
@@ -1658,7 +1658,7 @@ function Dt(i) {
|
|
|
1658
1658
|
/*reverseButtonTitle*/
|
|
1659
1659
|
l[10]
|
|
1660
1660
|
), (!n || o[0] & /*reverseActive*/
|
|
1661
|
-
1) &&
|
|
1661
|
+
1) && Te(
|
|
1662
1662
|
e,
|
|
1663
1663
|
"active",
|
|
1664
1664
|
/*reverseActive*/
|
|
@@ -1666,34 +1666,34 @@ function Dt(i) {
|
|
|
1666
1666
|
);
|
|
1667
1667
|
},
|
|
1668
1668
|
i(l) {
|
|
1669
|
-
n || (
|
|
1669
|
+
n || (Z(t.$$.fragment, l), n = !0);
|
|
1670
1670
|
},
|
|
1671
1671
|
o(l) {
|
|
1672
1672
|
K(t.$$.fragment, l), n = !1;
|
|
1673
1673
|
},
|
|
1674
1674
|
d(l) {
|
|
1675
|
-
l && A(e),
|
|
1675
|
+
l && A(e), le(t), r = !1, u();
|
|
1676
1676
|
}
|
|
1677
1677
|
};
|
|
1678
1678
|
}
|
|
1679
|
-
function
|
|
1680
|
-
let e, t = [], n = /* @__PURE__ */ new Map(), r, u, l, o =
|
|
1679
|
+
function En(i) {
|
|
1680
|
+
let e, t = [], n = /* @__PURE__ */ new Map(), r, u, l, o = Nt(
|
|
1681
1681
|
/*listFeatures*/
|
|
1682
1682
|
i[13]
|
|
1683
1683
|
);
|
|
1684
1684
|
const d = (c) => (
|
|
1685
1685
|
/*feature*/
|
|
1686
|
-
c[
|
|
1687
|
-
(c[
|
|
1688
|
-
c[
|
|
1686
|
+
c[94].id + /*feature*/
|
|
1687
|
+
(c[94].address ? "," + /*feature*/
|
|
1688
|
+
c[94].address : "")
|
|
1689
1689
|
);
|
|
1690
1690
|
for (let c = 0; c < o.length; c += 1) {
|
|
1691
|
-
let f =
|
|
1692
|
-
n.set(g, t[c] =
|
|
1691
|
+
let f = It(i, o, c), g = d(f);
|
|
1692
|
+
n.set(g, t[c] = Pt(g, f));
|
|
1693
1693
|
}
|
|
1694
1694
|
return {
|
|
1695
1695
|
c() {
|
|
1696
|
-
e =
|
|
1696
|
+
e = U("ul");
|
|
1697
1697
|
for (let c = 0; c < t.length; c += 1)
|
|
1698
1698
|
t[c].c();
|
|
1699
1699
|
a(e, "class", "options svelte-bz0zu3"), a(e, "role", "listbox");
|
|
@@ -1713,7 +1713,7 @@ function _n(i) {
|
|
|
1713
1713
|
e,
|
|
1714
1714
|
"blur",
|
|
1715
1715
|
/*blur_handler_1*/
|
|
1716
|
-
i[
|
|
1716
|
+
i[82]
|
|
1717
1717
|
),
|
|
1718
1718
|
Q(
|
|
1719
1719
|
e,
|
|
@@ -1725,15 +1725,15 @@ function _n(i) {
|
|
|
1725
1725
|
},
|
|
1726
1726
|
p(c, f) {
|
|
1727
1727
|
f[0] & /*listFeatures, showPlaceType, selectedItemIndex, picked, missingIconsCache, iconsBaseUrl, handleMouseEnter, pick*/
|
|
1728
|
-
102823936 && (o =
|
|
1728
|
+
102823936 && (o = Nt(
|
|
1729
1729
|
/*listFeatures*/
|
|
1730
1730
|
c[13]
|
|
1731
|
-
),
|
|
1731
|
+
), Qe(), t = Fi(t, f, d, 1, c, o, n, e, ji, Pt, null, It), Ke());
|
|
1732
1732
|
},
|
|
1733
1733
|
i(c) {
|
|
1734
1734
|
if (!r) {
|
|
1735
1735
|
for (let f = 0; f < o.length; f += 1)
|
|
1736
|
-
|
|
1736
|
+
Z(t[f]);
|
|
1737
1737
|
r = !0;
|
|
1738
1738
|
}
|
|
1739
1739
|
},
|
|
@@ -1746,46 +1746,46 @@ function _n(i) {
|
|
|
1746
1746
|
c && A(e);
|
|
1747
1747
|
for (let f = 0; f < t.length; f += 1)
|
|
1748
1748
|
t[f].d();
|
|
1749
|
-
u = !1,
|
|
1749
|
+
u = !1, ue(l);
|
|
1750
1750
|
}
|
|
1751
1751
|
};
|
|
1752
1752
|
}
|
|
1753
|
-
function
|
|
1753
|
+
function Sn(i) {
|
|
1754
1754
|
let e, t, n, r, u, l;
|
|
1755
|
-
return t = new
|
|
1755
|
+
return t = new Jt({}), {
|
|
1756
1756
|
c() {
|
|
1757
|
-
e =
|
|
1757
|
+
e = U("div"), ge(t.$$.fragment), n = Y(), r = U("div"), u = me(
|
|
1758
1758
|
/*noResultsMessage*/
|
|
1759
1759
|
i[8]
|
|
1760
1760
|
), a(r, "class", "svelte-bz0zu3"), a(e, "class", "no-results svelte-bz0zu3");
|
|
1761
1761
|
},
|
|
1762
1762
|
m(o, d) {
|
|
1763
|
-
j(o, e, d),
|
|
1763
|
+
j(o, e, d), ae(t, e, null), N(e, n), N(e, r), N(r, u), l = !0;
|
|
1764
1764
|
},
|
|
1765
1765
|
p(o, d) {
|
|
1766
1766
|
(!l || d[0] & /*noResultsMessage*/
|
|
1767
|
-
256) &&
|
|
1767
|
+
256) && Oe(
|
|
1768
1768
|
u,
|
|
1769
1769
|
/*noResultsMessage*/
|
|
1770
1770
|
o[8]
|
|
1771
1771
|
);
|
|
1772
1772
|
},
|
|
1773
1773
|
i(o) {
|
|
1774
|
-
l || (
|
|
1774
|
+
l || (Z(t.$$.fragment, o), l = !0);
|
|
1775
1775
|
},
|
|
1776
1776
|
o(o) {
|
|
1777
1777
|
K(t.$$.fragment, o), l = !1;
|
|
1778
1778
|
},
|
|
1779
1779
|
d(o) {
|
|
1780
|
-
o && A(e),
|
|
1780
|
+
o && A(e), le(t);
|
|
1781
1781
|
}
|
|
1782
1782
|
};
|
|
1783
1783
|
}
|
|
1784
|
-
function
|
|
1784
|
+
function Tn(i) {
|
|
1785
1785
|
let e = "", t;
|
|
1786
1786
|
return {
|
|
1787
1787
|
c() {
|
|
1788
|
-
t =
|
|
1788
|
+
t = me(e);
|
|
1789
1789
|
},
|
|
1790
1790
|
m(n, r) {
|
|
1791
1791
|
j(n, t, r);
|
|
@@ -1798,68 +1798,68 @@ function pn(i) {
|
|
|
1798
1798
|
}
|
|
1799
1799
|
};
|
|
1800
1800
|
}
|
|
1801
|
-
function
|
|
1801
|
+
function Nn(i) {
|
|
1802
1802
|
let e, t, n, r, u, l, o, d, c, f, g;
|
|
1803
|
-
return t = new
|
|
1803
|
+
return t = new Jt({}), d = new Vt({}), {
|
|
1804
1804
|
c() {
|
|
1805
|
-
e =
|
|
1805
|
+
e = U("div"), ge(t.$$.fragment), n = Y(), r = U("div"), u = me(
|
|
1806
1806
|
/*errorMessage*/
|
|
1807
1807
|
i[7]
|
|
1808
|
-
), l =
|
|
1808
|
+
), l = Y(), o = U("button"), ge(d.$$.fragment), a(r, "class", "svelte-bz0zu3"), a(o, "class", "svelte-bz0zu3"), a(e, "class", "error svelte-bz0zu3");
|
|
1809
1809
|
},
|
|
1810
1810
|
m(b, _) {
|
|
1811
|
-
j(b, e, _),
|
|
1811
|
+
j(b, e, _), ae(t, e, null), N(e, n), N(e, r), N(r, u), N(e, l), N(e, o), ae(d, o, null), c = !0, f || (g = Q(
|
|
1812
1812
|
o,
|
|
1813
1813
|
"click",
|
|
1814
1814
|
/*click_handler_4*/
|
|
1815
|
-
i[
|
|
1815
|
+
i[79]
|
|
1816
1816
|
), f = !0);
|
|
1817
1817
|
},
|
|
1818
1818
|
p(b, _) {
|
|
1819
1819
|
(!c || _[0] & /*errorMessage*/
|
|
1820
|
-
128) &&
|
|
1820
|
+
128) && Oe(
|
|
1821
1821
|
u,
|
|
1822
1822
|
/*errorMessage*/
|
|
1823
1823
|
b[7]
|
|
1824
1824
|
);
|
|
1825
1825
|
},
|
|
1826
1826
|
i(b) {
|
|
1827
|
-
c || (
|
|
1827
|
+
c || (Z(t.$$.fragment, b), Z(d.$$.fragment, b), c = !0);
|
|
1828
1828
|
},
|
|
1829
1829
|
o(b) {
|
|
1830
1830
|
K(t.$$.fragment, b), K(d.$$.fragment, b), c = !1;
|
|
1831
1831
|
},
|
|
1832
1832
|
d(b) {
|
|
1833
|
-
b && A(e),
|
|
1833
|
+
b && A(e), le(t), le(d), f = !1, g();
|
|
1834
1834
|
}
|
|
1835
1835
|
};
|
|
1836
1836
|
}
|
|
1837
|
-
function
|
|
1837
|
+
function Pt(i, e) {
|
|
1838
1838
|
var o;
|
|
1839
1839
|
let t, n, r;
|
|
1840
1840
|
function u() {
|
|
1841
1841
|
return (
|
|
1842
1842
|
/*mouseenter_handler*/
|
|
1843
|
-
e[
|
|
1843
|
+
e[80](
|
|
1844
1844
|
/*i*/
|
|
1845
|
-
e[
|
|
1845
|
+
e[96]
|
|
1846
1846
|
)
|
|
1847
1847
|
);
|
|
1848
1848
|
}
|
|
1849
1849
|
function l() {
|
|
1850
1850
|
return (
|
|
1851
1851
|
/*select_handler*/
|
|
1852
|
-
e[
|
|
1852
|
+
e[81](
|
|
1853
1853
|
/*feature*/
|
|
1854
|
-
e[
|
|
1854
|
+
e[94]
|
|
1855
1855
|
)
|
|
1856
1856
|
);
|
|
1857
1857
|
}
|
|
1858
|
-
return n = new
|
|
1858
|
+
return n = new nn({
|
|
1859
1859
|
props: {
|
|
1860
1860
|
feature: (
|
|
1861
1861
|
/*feature*/
|
|
1862
|
-
e[
|
|
1862
|
+
e[94]
|
|
1863
1863
|
),
|
|
1864
1864
|
showPlaceType: (
|
|
1865
1865
|
/*showPlaceType*/
|
|
@@ -1868,10 +1868,10 @@ function It(i, e) {
|
|
|
1868
1868
|
style: (
|
|
1869
1869
|
/*selectedItemIndex*/
|
|
1870
1870
|
e[15] === /*i*/
|
|
1871
|
-
e[
|
|
1871
|
+
e[96] ? "selected" : (
|
|
1872
1872
|
/*picked*/
|
|
1873
1873
|
((o = e[14]) == null ? void 0 : o.id) === /*feature*/
|
|
1874
|
-
e[
|
|
1874
|
+
e[94].id ? "picked" : "default"
|
|
1875
1875
|
)
|
|
1876
1876
|
),
|
|
1877
1877
|
missingIconsCache: (
|
|
@@ -1887,10 +1887,10 @@ function It(i, e) {
|
|
|
1887
1887
|
key: i,
|
|
1888
1888
|
first: null,
|
|
1889
1889
|
c() {
|
|
1890
|
-
t =
|
|
1890
|
+
t = Wi(), ge(n.$$.fragment), this.first = t;
|
|
1891
1891
|
},
|
|
1892
1892
|
m(d, c) {
|
|
1893
|
-
j(d, t, c),
|
|
1893
|
+
j(d, t, c), ae(n, d, c), r = !0;
|
|
1894
1894
|
},
|
|
1895
1895
|
p(d, c) {
|
|
1896
1896
|
var g;
|
|
@@ -1898,70 +1898,70 @@ function It(i, e) {
|
|
|
1898
1898
|
const f = {};
|
|
1899
1899
|
c[0] & /*listFeatures*/
|
|
1900
1900
|
8192 && (f.feature = /*feature*/
|
|
1901
|
-
e[
|
|
1901
|
+
e[94]), c[0] & /*showPlaceType*/
|
|
1902
1902
|
2048 && (f.showPlaceType = /*showPlaceType*/
|
|
1903
1903
|
e[11]), c[0] & /*selectedItemIndex, listFeatures, picked*/
|
|
1904
1904
|
57344 && (f.style = /*selectedItemIndex*/
|
|
1905
1905
|
e[15] === /*i*/
|
|
1906
|
-
e[
|
|
1906
|
+
e[96] ? "selected" : (
|
|
1907
1907
|
/*picked*/
|
|
1908
1908
|
((g = e[14]) == null ? void 0 : g.id) === /*feature*/
|
|
1909
|
-
e[
|
|
1909
|
+
e[94].id ? "picked" : "default"
|
|
1910
1910
|
)), c[0] & /*iconsBaseUrl*/
|
|
1911
1911
|
4096 && (f.iconsBaseUrl = /*iconsBaseUrl*/
|
|
1912
1912
|
e[12]), n.$set(f);
|
|
1913
1913
|
},
|
|
1914
1914
|
i(d) {
|
|
1915
|
-
r || (
|
|
1915
|
+
r || (Z(n.$$.fragment, d), r = !0);
|
|
1916
1916
|
},
|
|
1917
1917
|
o(d) {
|
|
1918
1918
|
K(n.$$.fragment, d), r = !1;
|
|
1919
1919
|
},
|
|
1920
1920
|
d(d) {
|
|
1921
|
-
d && A(t),
|
|
1921
|
+
d && A(t), le(n, d);
|
|
1922
1922
|
}
|
|
1923
1923
|
};
|
|
1924
1924
|
}
|
|
1925
|
-
function
|
|
1926
|
-
let e, t, n, r, u, l, o, d, c, f, g, b, _,
|
|
1927
|
-
u = new
|
|
1925
|
+
function kn(i) {
|
|
1926
|
+
let e, t, n, r, u, l, o, d, c, f, g, b, _, w, I, S, T, z, C, q, J, k = !1;
|
|
1927
|
+
u = new un({}), g = new Vt({});
|
|
1928
1928
|
let L = (
|
|
1929
1929
|
/*abortController*/
|
|
1930
|
-
i[20] &&
|
|
1930
|
+
i[20] && At()
|
|
1931
1931
|
), y = (
|
|
1932
1932
|
/*enableReverse*/
|
|
1933
|
-
i[6] === "button" &&
|
|
1933
|
+
i[6] === "button" && Bt(i)
|
|
1934
1934
|
);
|
|
1935
|
-
const
|
|
1935
|
+
const M = (
|
|
1936
1936
|
/*#slots*/
|
|
1937
|
-
i[
|
|
1938
|
-
), m =
|
|
1939
|
-
|
|
1937
|
+
i[69].default
|
|
1938
|
+
), m = Ni(
|
|
1939
|
+
M,
|
|
1940
1940
|
i,
|
|
1941
1941
|
/*$$scope*/
|
|
1942
|
-
i[
|
|
1942
|
+
i[68],
|
|
1943
1943
|
null
|
|
1944
|
-
),
|
|
1945
|
-
function
|
|
1946
|
-
var
|
|
1944
|
+
), p = [Nn, Tn, Sn, En], R = [];
|
|
1945
|
+
function ke(v, O) {
|
|
1946
|
+
var re, F;
|
|
1947
1947
|
return (
|
|
1948
1948
|
/*error*/
|
|
1949
1949
|
v[19] ? 0 : !/*focusedDelayed*/
|
|
1950
1950
|
v[16] && !/*keepListOpen*/
|
|
1951
1951
|
v[4] ? 1 : (
|
|
1952
1952
|
/*listFeatures*/
|
|
1953
|
-
((
|
|
1953
|
+
((re = v[13]) == null ? void 0 : re.length) === 0 ? 2 : (
|
|
1954
1954
|
/*listFeatures*/
|
|
1955
|
-
(
|
|
1955
|
+
(F = v[13]) != null && F.length && /*focusedDelayed*/
|
|
1956
1956
|
(v[16] || /*keepListOpen*/
|
|
1957
1957
|
v[4]) ? 3 : -1
|
|
1958
1958
|
)
|
|
1959
1959
|
)
|
|
1960
1960
|
);
|
|
1961
1961
|
}
|
|
1962
|
-
return ~(
|
|
1962
|
+
return ~(S = ke(i)) && (T = R[S] = p[S](i)), {
|
|
1963
1963
|
c() {
|
|
1964
|
-
e =
|
|
1964
|
+
e = Y(), t = U("form"), n = U("div"), r = U("button"), ge(u.$$.fragment), l = Y(), o = U("input"), d = Y(), c = U("div"), f = U("button"), ge(g.$$.fragment), b = Y(), L && L.c(), _ = Y(), y && y.c(), w = Y(), m && m.c(), I = Y(), T && T.c(), a(r, "class", "search-button svelte-bz0zu3"), a(r, "type", "button"), a(
|
|
1965
1965
|
o,
|
|
1966
1966
|
"placeholder",
|
|
1967
1967
|
/*placeholder*/
|
|
@@ -1976,15 +1976,15 @@ function En(i) {
|
|
|
1976
1976
|
"title",
|
|
1977
1977
|
/*clearButtonTitle*/
|
|
1978
1978
|
i[3]
|
|
1979
|
-
), a(f, "class", "svelte-bz0zu3"), a(c, "class", "clear-button-container svelte-bz0zu3"),
|
|
1979
|
+
), a(f, "class", "svelte-bz0zu3"), a(c, "class", "clear-button-container svelte-bz0zu3"), Te(
|
|
1980
1980
|
c,
|
|
1981
1981
|
"displayable",
|
|
1982
1982
|
/*searchValue*/
|
|
1983
1983
|
i[1] !== ""
|
|
1984
|
-
), a(n, "class", "input-group svelte-bz0zu3"), a(t, "class", z =
|
|
1984
|
+
), a(n, "class", "input-group svelte-bz0zu3"), a(t, "class", z = Ve(
|
|
1985
1985
|
/*className*/
|
|
1986
1986
|
i[2]
|
|
1987
|
-
) + " svelte-bz0zu3"),
|
|
1987
|
+
) + " svelte-bz0zu3"), Te(
|
|
1988
1988
|
t,
|
|
1989
1989
|
"can-collapse",
|
|
1990
1990
|
/*collapsed*/
|
|
@@ -1992,41 +1992,41 @@ function En(i) {
|
|
|
1992
1992
|
i[1] === ""
|
|
1993
1993
|
);
|
|
1994
1994
|
},
|
|
1995
|
-
m(v,
|
|
1996
|
-
j(v, e,
|
|
1995
|
+
m(v, O) {
|
|
1996
|
+
j(v, e, O), j(v, t, O), N(t, n), N(n, r), ae(u, r, null), N(n, l), N(n, o), i[71](o), St(
|
|
1997
1997
|
o,
|
|
1998
1998
|
/*searchValue*/
|
|
1999
1999
|
i[1]
|
|
2000
|
-
),
|
|
2000
|
+
), N(n, d), N(n, c), N(c, f), ae(g, f, null), N(c, b), L && L.m(c, null), N(n, _), y && y.m(n, null), N(n, w), m && m.m(n, null), N(t, I), ~S && R[S].m(t, null), C = !0, q || (J = [
|
|
2001
2001
|
Q(
|
|
2002
2002
|
r,
|
|
2003
2003
|
"click",
|
|
2004
2004
|
/*click_handler*/
|
|
2005
|
-
i[
|
|
2005
|
+
i[70]
|
|
2006
2006
|
),
|
|
2007
2007
|
Q(
|
|
2008
2008
|
o,
|
|
2009
2009
|
"input",
|
|
2010
2010
|
/*input_1_input_handler*/
|
|
2011
|
-
i[
|
|
2011
|
+
i[72]
|
|
2012
2012
|
),
|
|
2013
2013
|
Q(
|
|
2014
2014
|
o,
|
|
2015
2015
|
"focus",
|
|
2016
2016
|
/*focus_handler*/
|
|
2017
|
-
i[
|
|
2017
|
+
i[73]
|
|
2018
2018
|
),
|
|
2019
2019
|
Q(
|
|
2020
2020
|
o,
|
|
2021
2021
|
"blur",
|
|
2022
2022
|
/*blur_handler*/
|
|
2023
|
-
i[
|
|
2023
|
+
i[74]
|
|
2024
2024
|
),
|
|
2025
2025
|
Q(
|
|
2026
2026
|
o,
|
|
2027
2027
|
"click",
|
|
2028
2028
|
/*click_handler_1*/
|
|
2029
|
-
i[
|
|
2029
|
+
i[75]
|
|
2030
2030
|
),
|
|
2031
2031
|
Q(
|
|
2032
2032
|
o,
|
|
@@ -2044,87 +2044,87 @@ function En(i) {
|
|
|
2044
2044
|
o,
|
|
2045
2045
|
"change",
|
|
2046
2046
|
/*change_handler*/
|
|
2047
|
-
i[
|
|
2047
|
+
i[76]
|
|
2048
2048
|
),
|
|
2049
2049
|
Q(
|
|
2050
2050
|
f,
|
|
2051
2051
|
"click",
|
|
2052
2052
|
/*click_handler_2*/
|
|
2053
|
-
i[
|
|
2053
|
+
i[77]
|
|
2054
2054
|
),
|
|
2055
|
-
Q(t, "submit",
|
|
2055
|
+
Q(t, "submit", zi(
|
|
2056
2056
|
/*handleSubmit*/
|
|
2057
2057
|
i[22]
|
|
2058
2058
|
))
|
|
2059
2059
|
], q = !0);
|
|
2060
2060
|
},
|
|
2061
|
-
p(v,
|
|
2062
|
-
(!
|
|
2061
|
+
p(v, O) {
|
|
2062
|
+
(!C || O[0] & /*placeholder*/
|
|
2063
2063
|
512) && a(
|
|
2064
2064
|
o,
|
|
2065
2065
|
"placeholder",
|
|
2066
2066
|
/*placeholder*/
|
|
2067
2067
|
v[9]
|
|
2068
|
-
), (!
|
|
2068
|
+
), (!C || O[0] & /*placeholder*/
|
|
2069
2069
|
512) && a(
|
|
2070
2070
|
o,
|
|
2071
2071
|
"aria-label",
|
|
2072
2072
|
/*placeholder*/
|
|
2073
2073
|
v[9]
|
|
2074
|
-
),
|
|
2074
|
+
), O[0] & /*searchValue*/
|
|
2075
2075
|
2 && o.value !== /*searchValue*/
|
|
2076
|
-
v[1] &&
|
|
2076
|
+
v[1] && St(
|
|
2077
2077
|
o,
|
|
2078
2078
|
/*searchValue*/
|
|
2079
2079
|
v[1]
|
|
2080
|
-
), (!
|
|
2080
|
+
), (!C || O[0] & /*clearButtonTitle*/
|
|
2081
2081
|
8) && a(
|
|
2082
2082
|
f,
|
|
2083
2083
|
"title",
|
|
2084
2084
|
/*clearButtonTitle*/
|
|
2085
2085
|
v[3]
|
|
2086
2086
|
), /*abortController*/
|
|
2087
|
-
v[20] ? L ?
|
|
2088
|
-
1048576 &&
|
|
2087
|
+
v[20] ? L ? O[0] & /*abortController*/
|
|
2088
|
+
1048576 && Z(L, 1) : (L = At(), L.c(), Z(L, 1), L.m(c, null)) : L && (Qe(), K(L, 1, 1, () => {
|
|
2089
2089
|
L = null;
|
|
2090
|
-
}),
|
|
2091
|
-
2) &&
|
|
2090
|
+
}), Ke()), (!C || O[0] & /*searchValue*/
|
|
2091
|
+
2) && Te(
|
|
2092
2092
|
c,
|
|
2093
2093
|
"displayable",
|
|
2094
2094
|
/*searchValue*/
|
|
2095
2095
|
v[1] !== ""
|
|
2096
2096
|
), /*enableReverse*/
|
|
2097
|
-
v[6] === "button" ? y ? (y.p(v,
|
|
2098
|
-
64 &&
|
|
2097
|
+
v[6] === "button" ? y ? (y.p(v, O), O[0] & /*enableReverse*/
|
|
2098
|
+
64 && Z(y, 1)) : (y = Bt(v), y.c(), Z(y, 1), y.m(n, w)) : y && (Qe(), K(y, 1, 1, () => {
|
|
2099
2099
|
y = null;
|
|
2100
|
-
}),
|
|
2101
|
-
|
|
2100
|
+
}), Ke()), m && m.p && (!C || O[2] & /*$$scope*/
|
|
2101
|
+
64) && Mi(
|
|
2102
2102
|
m,
|
|
2103
|
-
|
|
2103
|
+
M,
|
|
2104
2104
|
v,
|
|
2105
2105
|
/*$$scope*/
|
|
2106
|
-
v[
|
|
2107
|
-
|
|
2108
|
-
|
|
2106
|
+
v[68],
|
|
2107
|
+
C ? ki(
|
|
2108
|
+
M,
|
|
2109
2109
|
/*$$scope*/
|
|
2110
|
-
v[
|
|
2111
|
-
|
|
2110
|
+
v[68],
|
|
2111
|
+
O,
|
|
2112
2112
|
null
|
|
2113
|
-
) :
|
|
2113
|
+
) : Ci(
|
|
2114
2114
|
/*$$scope*/
|
|
2115
|
-
v[
|
|
2115
|
+
v[68]
|
|
2116
2116
|
),
|
|
2117
2117
|
null
|
|
2118
2118
|
);
|
|
2119
|
-
let
|
|
2120
|
-
|
|
2121
|
-
R[
|
|
2122
|
-
}),
|
|
2123
|
-
4 && z !== (z =
|
|
2119
|
+
let re = S;
|
|
2120
|
+
S = ke(v), S === re ? ~S && R[S].p(v, O) : (T && (Qe(), K(R[re], 1, 1, () => {
|
|
2121
|
+
R[re] = null;
|
|
2122
|
+
}), Ke()), ~S ? (T = R[S], T ? T.p(v, O) : (T = R[S] = p[S](v), T.c()), Z(T, 1), T.m(t, null)) : T = null), (!C || O[0] & /*className*/
|
|
2123
|
+
4 && z !== (z = Ve(
|
|
2124
2124
|
/*className*/
|
|
2125
2125
|
v[2]
|
|
2126
|
-
) + " svelte-bz0zu3")) && a(t, "class", z), (!
|
|
2127
|
-
38) &&
|
|
2126
|
+
) + " svelte-bz0zu3")) && a(t, "class", z), (!C || O[0] & /*className, collapsed, searchValue*/
|
|
2127
|
+
38) && Te(
|
|
2128
2128
|
t,
|
|
2129
2129
|
"can-collapse",
|
|
2130
2130
|
/*collapsed*/
|
|
@@ -2133,17 +2133,17 @@ function En(i) {
|
|
|
2133
2133
|
);
|
|
2134
2134
|
},
|
|
2135
2135
|
i(v) {
|
|
2136
|
-
|
|
2136
|
+
C || (Z(k), Z(u.$$.fragment, v), Z(g.$$.fragment, v), Z(L), Z(y), Z(m, v), Z(T), C = !0);
|
|
2137
2137
|
},
|
|
2138
2138
|
o(v) {
|
|
2139
|
-
K(
|
|
2139
|
+
K(k), K(u.$$.fragment, v), K(g.$$.fragment, v), K(L), K(y), K(m, v), K(T), C = !1;
|
|
2140
2140
|
},
|
|
2141
2141
|
d(v) {
|
|
2142
|
-
v && (A(e), A(t)),
|
|
2142
|
+
v && (A(e), A(t)), le(u), i[71](null), le(g), L && L.d(), y && y.d(), m && m.d(v), ~S && R[S].d(), q = !1, ue(J);
|
|
2143
2143
|
}
|
|
2144
2144
|
};
|
|
2145
2145
|
}
|
|
2146
|
-
function
|
|
2146
|
+
function Mn(i, e, t) {
|
|
2147
2147
|
let n, r, u, { $$slots: l = {}, $$scope: o } = e;
|
|
2148
2148
|
const d = {
|
|
2149
2149
|
continental_marine: 4,
|
|
@@ -2169,315 +2169,329 @@ function Sn(i, e, t) {
|
|
|
2169
2169
|
"poi.restaurant": 18,
|
|
2170
2170
|
"poi.aerodrome": 13
|
|
2171
2171
|
};
|
|
2172
|
-
let { class: c = void 0 } = e, { apiKey: f } = e, { bbox: g = void 0 } = e, { clearButtonTitle: b = "clear" } = e, { clearOnBlur: _ = !1 } = e, { clearListOnPick:
|
|
2173
|
-
} } = e, { adjustUrl:
|
|
2172
|
+
let { class: c = void 0 } = e, { apiKey: f } = e, { bbox: g = void 0 } = e, { clearButtonTitle: b = "clear" } = e, { clearOnBlur: _ = !1 } = e, { clearListOnPick: w = !1 } = e, { keepListOpen: I = !1 } = e, { collapsed: S = !1 } = e, { country: T = void 0 } = e, { debounceSearch: z = 200 } = e, { enableReverse: C = "never" } = e, { errorMessage: q = "Something went wrong…" } = e, { filter: J = () => !0 } = e, { flyTo: k = !0 } = e, { fuzzyMatch: L = !0 } = e, { language: y = void 0 } = e, { limit: M = void 0 } = e, { mapController: m = void 0 } = e, { minLength: p = 2 } = e, { noResultsMessage: R = "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: ke = "Search" } = e, { proximity: v = [{ type: "server-geolocation" }] } = e, { reverseActive: O = C === "always" } = e, { reverseButtonTitle: re = "toggle reverse geocoding" } = e, { searchValue: F = "" } = e, { pickedResultStyle: De = "full-geometry" } = e, { showPlaceType: ht = "if-needed" } = e, { showResultsWhileTyping: Ie = !0 } = e, { autocompleteTimeout: Je = void 0 } = e, { selectFirst: he = !0 } = e, { flyToSelected: Ae = !1 } = e, { markerOnSelected: Be = !0 } = e, { types: be = void 0 } = e, { exhaustiveReverseGeocoding: Xe = !1 } = e, { excludeTypes: Pe = !1 } = e, { zoom: je = d } = e, { apiUrl: Ye = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: xe = {} } = e, { iconsBaseUrl: bt = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.0-with-autocomplete-timeout/icons/" } = e, { adjustUrlQuery: $e = () => {
|
|
2173
|
+
} } = e, { adjustUrl: et = () => {
|
|
2174
2174
|
} } = e;
|
|
2175
|
-
function
|
|
2175
|
+
function Xt(s) {
|
|
2176
2176
|
$.focus(s);
|
|
2177
2177
|
}
|
|
2178
|
-
function
|
|
2178
|
+
function Yt() {
|
|
2179
2179
|
$.blur();
|
|
2180
2180
|
}
|
|
2181
|
-
function
|
|
2182
|
-
t(1,
|
|
2181
|
+
function vt(s, B = !0, H = !1) {
|
|
2182
|
+
t(1, F = s), B ? (t(15, W = -1), _t()) : (yt(void 0, !H, H), setTimeout(() => {
|
|
2183
2183
|
$.focus(), $.select();
|
|
2184
2184
|
}));
|
|
2185
2185
|
}
|
|
2186
|
-
function
|
|
2187
|
-
t(13,
|
|
2186
|
+
function xt() {
|
|
2187
|
+
t(13, E = void 0), t(14, h = void 0), t(15, W = -1);
|
|
2188
2188
|
}
|
|
2189
|
-
function
|
|
2190
|
-
t(
|
|
2189
|
+
function $t() {
|
|
2190
|
+
t(62, G = []), t(14, h = void 0);
|
|
2191
2191
|
}
|
|
2192
|
-
let
|
|
2193
|
-
const
|
|
2194
|
-
|
|
2192
|
+
let E, G, h, Lt = "", $, W = -1, ie, Fe = [], ve, ce, x, pe, tt, oe = !1;
|
|
2193
|
+
const ei = /* @__PURE__ */ new Set(), de = Qt();
|
|
2194
|
+
function ti() {
|
|
2195
|
+
return !!x;
|
|
2196
|
+
}
|
|
2197
|
+
Ui(() => {
|
|
2195
2198
|
m && (m.setEventHandler(void 0), m.indicateReverse(!1), m.setSelectedMarker(-1), m.setFeatures(void 0, void 0, !1));
|
|
2196
2199
|
});
|
|
2197
|
-
function
|
|
2198
|
-
if (t(17,
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2200
|
+
function _t(s) {
|
|
2201
|
+
if (t(17, oe = !1), ce && (window.clearTimeout(ce), ce = void 0), x) {
|
|
2202
|
+
window.clearTimeout(x), t(63, x = void 0), Me(F, { appendSpace: !0 });
|
|
2203
|
+
return;
|
|
2204
|
+
}
|
|
2205
|
+
if (W > -1 && E)
|
|
2206
|
+
t(14, h = E[W]), t(1, F = h.place_type[0] === "reverse" ? h.place_name : h.place_name.replace(/,.*/, "")), t(19, ie = void 0), t(62, G = void 0), t(15, W = -1);
|
|
2207
|
+
else if (F) {
|
|
2208
|
+
const B = s || !it(F);
|
|
2209
|
+
Me(F, { exact: !0 }).then(() => {
|
|
2210
|
+
t(62, G = E), t(14, h = void 0), B && ii();
|
|
2211
|
+
}).catch((H) => t(19, ie = H));
|
|
2205
2212
|
}
|
|
2206
2213
|
}
|
|
2207
|
-
function
|
|
2214
|
+
function it(s) {
|
|
2208
2215
|
try {
|
|
2209
|
-
return
|
|
2216
|
+
return pn(s, 6);
|
|
2210
2217
|
} catch {
|
|
2211
2218
|
return !1;
|
|
2212
2219
|
}
|
|
2213
2220
|
}
|
|
2214
|
-
async function
|
|
2215
|
-
var
|
|
2216
|
-
t(19,
|
|
2217
|
-
const
|
|
2218
|
-
t(20,
|
|
2221
|
+
async function Me(s, { byId: B = !1, exact: H = !1, appendSpace: ee = !1 } = {}) {
|
|
2222
|
+
var ne, fe;
|
|
2223
|
+
t(19, ie = void 0), ve == null || ve.abort();
|
|
2224
|
+
const V = new AbortController();
|
|
2225
|
+
t(20, ve = V);
|
|
2219
2226
|
try {
|
|
2220
|
-
const
|
|
2221
|
-
if (y !== void 0 &&
|
|
2222
|
-
const
|
|
2223
|
-
|
|
2227
|
+
const D = it(s), ot = new URL(Ye + "/" + encodeURIComponent(D ? D.decimalLongitude + "," + D.decimalLatitude : s + (ee ? " " : "")) + ".json"), te = ot.searchParams;
|
|
2228
|
+
if (y !== void 0 && te.set("language", Array.isArray(y) ? y.join(",") : y ?? ""), be && te.set("types", be.join(",")), Pe && te.set("excludeTypes", String(Pe)), g && te.set("bbox", g.map((Ze) => Ze.toFixed(6)).join(",")), T && te.set("country", Array.isArray(T) ? T.join(",") : T), !B && !D) {
|
|
2229
|
+
const Ze = await dn(m, v, V);
|
|
2230
|
+
Ze && te.set("proximity", Ze), (H || !Ie) && te.set("autocomplete", "false"), te.set("fuzzyMatch", String(L));
|
|
2224
2231
|
}
|
|
2225
|
-
|
|
2226
|
-
const
|
|
2227
|
-
if (
|
|
2228
|
-
B ? (
|
|
2232
|
+
M !== void 0 && (Xe || !D || (be == null ? void 0 : be.length) === 1) && te.set("limit", String(M)), te.set("key", f), $e(te), et(ot);
|
|
2233
|
+
const He = ot.toString();
|
|
2234
|
+
if (He === Lt) {
|
|
2235
|
+
B ? (w && t(13, E = void 0), t(14, h = Fe[0])) : (t(13, E = Fe), ((ne = E[W]) == null ? void 0 : ne.id) !== (r == null ? void 0 : r.id) && t(15, W = -1));
|
|
2229
2236
|
return;
|
|
2230
2237
|
}
|
|
2231
|
-
|
|
2232
|
-
const
|
|
2233
|
-
if (!
|
|
2234
|
-
throw new Error(await
|
|
2235
|
-
const
|
|
2236
|
-
|
|
2238
|
+
Lt = He;
|
|
2239
|
+
const st = await fetch(He, { signal: V.signal, ...xe });
|
|
2240
|
+
if (!st.ok)
|
|
2241
|
+
throw new Error(await st.text());
|
|
2242
|
+
const at = await st.json();
|
|
2243
|
+
de("response", { url: He, featureCollection: at }), B ? (w && t(13, E = void 0), t(14, h = at.features[0]), Fe = [h]) : (t(13, E = at.features.filter(J)), D && E.unshift({
|
|
2237
2244
|
type: "Feature",
|
|
2238
2245
|
properties: {},
|
|
2239
|
-
id: "reverse_" +
|
|
2240
|
-
text:
|
|
2241
|
-
place_name:
|
|
2246
|
+
id: "reverse_" + D.decimalLongitude + "_" + D.decimalLatitude,
|
|
2247
|
+
text: D.decimalLatitude + ", " + D.decimalLongitude,
|
|
2248
|
+
place_name: D.decimalLatitude + ", " + D.decimalLongitude,
|
|
2242
2249
|
place_type: ["reverse"],
|
|
2243
|
-
center: [
|
|
2250
|
+
center: [D.decimalLongitude, D.decimalLatitude],
|
|
2244
2251
|
bbox: [
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2252
|
+
D.decimalLongitude,
|
|
2253
|
+
D.decimalLatitude,
|
|
2254
|
+
D.decimalLongitude,
|
|
2255
|
+
D.decimalLatitude
|
|
2249
2256
|
],
|
|
2250
2257
|
geometry: {
|
|
2251
2258
|
type: "Point",
|
|
2252
|
-
coordinates: [
|
|
2259
|
+
coordinates: [D.decimalLongitude, D.decimalLatitude]
|
|
2253
2260
|
}
|
|
2254
|
-
}),
|
|
2255
|
-
} catch (
|
|
2256
|
-
if (
|
|
2261
|
+
}), Fe = E, ((fe = E[W]) == null ? void 0 : fe.id) !== (r == null ? void 0 : r.id) && t(15, W = -1), D && $.focus());
|
|
2262
|
+
} catch (D) {
|
|
2263
|
+
if (D && typeof D == "object" && "name" in D && D.name === "AbortError")
|
|
2257
2264
|
return;
|
|
2258
|
-
throw
|
|
2265
|
+
throw D;
|
|
2259
2266
|
} finally {
|
|
2260
|
-
|
|
2267
|
+
V === ve && t(20, ve = void 0);
|
|
2261
2268
|
}
|
|
2262
2269
|
}
|
|
2263
|
-
function
|
|
2264
|
-
var
|
|
2265
|
-
if (!(G != null && G.length) || !
|
|
2270
|
+
function ii() {
|
|
2271
|
+
var ee;
|
|
2272
|
+
if (!(G != null && G.length) || !k)
|
|
2266
2273
|
return;
|
|
2267
|
-
const s = [180, 90, -180, -90], B = !G.some((
|
|
2268
|
-
let
|
|
2269
|
-
for (const
|
|
2270
|
-
const
|
|
2271
|
-
if (
|
|
2272
|
-
for (const
|
|
2273
|
-
s[
|
|
2274
|
+
const s = [180, 90, -180, -90], B = !G.some((V) => !V.matching_text);
|
|
2275
|
+
let H;
|
|
2276
|
+
for (const V of G) {
|
|
2277
|
+
const ne = Ce(V);
|
|
2278
|
+
if (H = H === void 0 ? ne : ne === void 0 ? H : Math.max(H, ne), B || !V.matching_text)
|
|
2279
|
+
for (const fe of [0, 1, 2, 3])
|
|
2280
|
+
s[fe] = Math[fe < 2 ? "min" : "max"](s[fe], ((ee = V.bbox) == null ? void 0 : ee[fe]) ?? V.center[fe % 2]);
|
|
2274
2281
|
}
|
|
2275
|
-
m && G.length > 0 && (h && s[0] === s[2] && s[1] === s[3] ? m.flyTo(h.center,
|
|
2282
|
+
m && G.length > 0 && (h && s[0] === s[2] && s[1] === s[3] ? m.flyTo(h.center, Ce(h)) : m.fitBounds(Mt(s), 50, H));
|
|
2276
2283
|
}
|
|
2277
|
-
function
|
|
2278
|
-
!h || !m || (!h.bbox || h.bbox[0] === h.bbox[2] && h.bbox[1] === h.bbox[3] ? m.flyTo(h.center,
|
|
2284
|
+
function nt() {
|
|
2285
|
+
!h || !m || (!h.bbox || h.bbox[0] === h.bbox[2] && h.bbox[1] === h.bbox[3] ? m.flyTo(h.center, Ce(h)) : m.fitBounds(Mt(h.bbox), 50, Ce(h)));
|
|
2279
2286
|
}
|
|
2280
|
-
function
|
|
2281
|
-
var
|
|
2287
|
+
function Ce(s) {
|
|
2288
|
+
var H;
|
|
2282
2289
|
if (!s.bbox || s.bbox[0] !== s.bbox[2] && s.bbox[1] !== s.bbox[3])
|
|
2283
2290
|
return;
|
|
2284
2291
|
const B = s.id.replace(/\..*/, "");
|
|
2285
|
-
return (Array.isArray((
|
|
2286
|
-
(
|
|
2287
|
-
const
|
|
2288
|
-
return
|
|
2292
|
+
return (Array.isArray((H = s.properties) == null ? void 0 : H.categories) ? s.properties.categories.reduce(
|
|
2293
|
+
(ee, V) => {
|
|
2294
|
+
const ne = je[B + "." + V];
|
|
2295
|
+
return ee === void 0 ? ne : ne === void 0 ? ee : Math.max(ee, ne);
|
|
2289
2296
|
},
|
|
2290
2297
|
void 0
|
|
2291
|
-
) : void 0) ??
|
|
2298
|
+
) : void 0) ?? je[B];
|
|
2292
2299
|
}
|
|
2293
|
-
function
|
|
2294
|
-
t(0,
|
|
2300
|
+
function ni(s) {
|
|
2301
|
+
t(0, O = C === "always"), t(13, E = void 0), t(14, h = void 0), t(15, W = -1), vt(s[1].toFixed(6) + ", " + cn(s[0], [-180, 180], !0).toFixed(6), !1, !0);
|
|
2295
2302
|
}
|
|
2296
|
-
function
|
|
2297
|
-
if (!
|
|
2303
|
+
function ri(s) {
|
|
2304
|
+
if (!E)
|
|
2298
2305
|
return;
|
|
2299
2306
|
let B = s.key === "ArrowDown" ? 1 : s.key === "ArrowUp" ? -1 : 0;
|
|
2300
|
-
B && ($.focus(), t(17,
|
|
2307
|
+
B && ($.focus(), t(17, oe = !0), s.preventDefault(), h && W === -1 && t(15, W = E.findIndex((H) => H.id === (h == null ? void 0 : h.id))), W === (h || he ? 0 : -1) && B === -1 && t(15, W = E.length), t(15, W += B), W >= E.length && t(15, W = -1), W < 0 && (h || he) && t(15, W = 0));
|
|
2301
2308
|
}
|
|
2302
|
-
function
|
|
2303
|
-
if (t(19,
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2309
|
+
function yt(s, B = !0, H = !1) {
|
|
2310
|
+
if (t(19, ie = void 0), t(14, h = void 0), t(17, oe = !0), ce && (window.clearTimeout(ce), ce = void 0), x && (window.clearTimeout(x), t(63, x = void 0)), !Ie && !H || F.length < p) {
|
|
2311
|
+
t(13, E = void 0);
|
|
2312
|
+
return;
|
|
2313
|
+
}
|
|
2314
|
+
const ee = F;
|
|
2315
|
+
ce = window.setTimeout(
|
|
2316
|
+
() => {
|
|
2317
|
+
ce = void 0, Me(ee).catch((V) => t(19, ie = V));
|
|
2318
|
+
},
|
|
2319
|
+
B ? z : 0
|
|
2320
|
+
), F.endsWith(" ") || t(63, x = window.setTimeout(
|
|
2321
|
+
() => {
|
|
2322
|
+
t(63, x = void 0), Me(ee, { appendSpace: !0 }).catch((V) => t(19, ie = V));
|
|
2323
|
+
},
|
|
2324
|
+
Je
|
|
2325
|
+
));
|
|
2315
2326
|
}
|
|
2316
|
-
function
|
|
2317
|
-
h && (h == null ? void 0 : h.id) === (s == null ? void 0 : s.id) ?
|
|
2327
|
+
function rt(s) {
|
|
2328
|
+
h && (h == null ? void 0 : h.id) === (s == null ? void 0 : s.id) ? nt() : (t(14, h = s), t(1, F = s.place_name));
|
|
2318
2329
|
}
|
|
2319
|
-
function
|
|
2320
|
-
t(15,
|
|
2330
|
+
function wt(s) {
|
|
2331
|
+
t(15, W = s);
|
|
2321
2332
|
}
|
|
2322
|
-
function
|
|
2323
|
-
(!
|
|
2333
|
+
function oi() {
|
|
2334
|
+
(!he || h) && t(15, W = -1), Ae && nt();
|
|
2324
2335
|
}
|
|
2325
|
-
const
|
|
2326
|
-
function
|
|
2327
|
-
|
|
2336
|
+
const si = () => $.focus();
|
|
2337
|
+
function ai(s) {
|
|
2338
|
+
dt[s ? "unshift" : "push"](() => {
|
|
2328
2339
|
$ = s, t(18, $);
|
|
2329
2340
|
});
|
|
2330
2341
|
}
|
|
2331
|
-
function
|
|
2332
|
-
|
|
2342
|
+
function li() {
|
|
2343
|
+
F = this.value, t(1, F), t(17, oe), t(31, _), t(16, pe);
|
|
2333
2344
|
}
|
|
2334
|
-
const
|
|
2335
|
-
t(1,
|
|
2336
|
-
},
|
|
2345
|
+
const ui = () => t(17, oe = !0), ci = () => t(17, oe = !1), di = () => t(17, oe = !0), fi = () => t(14, h = void 0), mi = () => {
|
|
2346
|
+
t(1, F = ""), $.focus();
|
|
2347
|
+
}, gi = () => t(0, O = !O), hi = () => t(19, ie = void 0), bi = (s) => wt(s), vi = (s) => rt(s), Li = () => {
|
|
2337
2348
|
};
|
|
2338
2349
|
return i.$$set = (s) => {
|
|
2339
|
-
"class" in s && t(2, c = s.class), "apiKey" in s && t(29, f = s.apiKey), "bbox" in s && t(30, g = s.bbox), "clearButtonTitle" in s && t(3, b = s.clearButtonTitle), "clearOnBlur" in s && t(31, _ = s.clearOnBlur), "clearListOnPick" in s && t(32,
|
|
2350
|
+
"class" in s && t(2, c = s.class), "apiKey" in s && t(29, f = s.apiKey), "bbox" in s && t(30, g = s.bbox), "clearButtonTitle" in s && t(3, b = s.clearButtonTitle), "clearOnBlur" in s && t(31, _ = s.clearOnBlur), "clearListOnPick" in s && t(32, w = s.clearListOnPick), "keepListOpen" in s && t(4, I = s.keepListOpen), "collapsed" in s && t(5, S = s.collapsed), "country" in s && t(33, T = s.country), "debounceSearch" in s && t(34, z = s.debounceSearch), "enableReverse" in s && t(6, C = s.enableReverse), "errorMessage" in s && t(7, q = s.errorMessage), "filter" in s && t(35, J = s.filter), "flyTo" in s && t(36, k = s.flyTo), "fuzzyMatch" in s && t(37, L = s.fuzzyMatch), "language" in s && t(38, y = s.language), "limit" in s && t(39, M = s.limit), "mapController" in s && t(40, m = s.mapController), "minLength" in s && t(41, p = s.minLength), "noResultsMessage" in s && t(8, R = s.noResultsMessage), "placeholder" in s && t(9, ke = s.placeholder), "proximity" in s && t(42, v = s.proximity), "reverseActive" in s && t(0, O = s.reverseActive), "reverseButtonTitle" in s && t(10, re = s.reverseButtonTitle), "searchValue" in s && t(1, F = s.searchValue), "pickedResultStyle" in s && t(43, De = s.pickedResultStyle), "showPlaceType" in s && t(11, ht = s.showPlaceType), "showResultsWhileTyping" in s && t(44, Ie = s.showResultsWhileTyping), "autocompleteTimeout" in s && t(45, Je = s.autocompleteTimeout), "selectFirst" in s && t(46, he = s.selectFirst), "flyToSelected" in s && t(47, Ae = s.flyToSelected), "markerOnSelected" in s && t(48, Be = s.markerOnSelected), "types" in s && t(49, be = s.types), "exhaustiveReverseGeocoding" in s && t(50, Xe = s.exhaustiveReverseGeocoding), "excludeTypes" in s && t(51, Pe = s.excludeTypes), "zoom" in s && t(52, je = s.zoom), "apiUrl" in s && t(53, Ye = s.apiUrl), "fetchParameters" in s && t(54, xe = s.fetchParameters), "iconsBaseUrl" in s && t(12, bt = s.iconsBaseUrl), "adjustUrlQuery" in s && t(55, $e = s.adjustUrlQuery), "adjustUrl" in s && t(56, et = s.adjustUrl), "$$scope" in s && t(68, o = s.$$scope);
|
|
2340
2351
|
}, i.$$.update = () => {
|
|
2341
2352
|
if (i.$$.dirty[0] & /*enableReverse*/
|
|
2342
|
-
64 && t(0,
|
|
2353
|
+
64 && t(0, O = C === "always"), i.$$.dirty[0] & /*picked*/
|
|
2343
2354
|
16384 | i.$$.dirty[1] & /*pickedResultStyle*/
|
|
2344
|
-
4096 &&
|
|
2355
|
+
4096 && De !== "marker-only" && h && !h.address && h.geometry.type === "Point" && h.place_type[0] !== "reverse" && Me(h.id, { byId: !0 }).catch((s) => t(19, ie = s)), i.$$.dirty[0] & /*picked*/
|
|
2345
2356
|
16384 | i.$$.dirty[1] & /*mapController, flyTo, clearListOnPick*/
|
|
2346
2357
|
546 | i.$$.dirty[2] & /*prevIdToFly*/
|
|
2347
|
-
|
|
2358
|
+
4 && (m && h && h.id !== tt && k && (nt(), w && t(13, E = void 0), t(62, G = void 0), t(15, W = -1)), t(64, tt = h == null ? void 0 : h.id)), i.$$.dirty[0] & /*focused, focusedDelayed*/
|
|
2348
2359
|
196608 | i.$$.dirty[1] & /*clearOnBlur*/
|
|
2349
2360
|
1 && setTimeout(() => {
|
|
2350
|
-
t(16,
|
|
2361
|
+
t(16, pe = oe), _ && !pe && t(1, F = "");
|
|
2351
2362
|
}), i.$$.dirty[0] & /*searchValue, listFeatures*/
|
|
2352
2363
|
8194 | i.$$.dirty[1] & /*minLength*/
|
|
2353
|
-
1024 &&
|
|
2364
|
+
1024 && F.length < p && (t(13, E = void 0), t(19, ie = void 0), t(62, G = E)), i.$$.dirty[0] & /*listFeatures*/
|
|
2365
|
+
8192 | i.$$.dirty[1] & /*selectFirst*/
|
|
2366
|
+
32768 && he && E != null && E.length && (ti() || t(15, W = 0)), i.$$.dirty[0] & /*listFeatures, selectedItemIndex, picked*/
|
|
2354
2367
|
57344 | i.$$.dirty[1] & /*selectFirst*/
|
|
2355
|
-
|
|
2356
|
-
8192 | i.$$.dirty[
|
|
2357
|
-
|
|
2358
|
-
73729 | i.$$.dirty[1] & /*mapController
|
|
2359
|
-
|
|
2368
|
+
32768 && he && E != null && E.length && W == -1 && !h && t(15, W = 0), i.$$.dirty[0] & /*listFeatures*/
|
|
2369
|
+
8192 | i.$$.dirty[2] & /*markedFeatures*/
|
|
2370
|
+
1 && G !== E && t(62, G = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
|
|
2371
|
+
73729 | i.$$.dirty[1] & /*mapController*/
|
|
2372
|
+
512 | i.$$.dirty[2] & /*markedFeatures*/
|
|
2373
|
+
1 && m && m.setEventHandler((s) => {
|
|
2360
2374
|
switch (s.type) {
|
|
2361
2375
|
case "mapClick":
|
|
2362
|
-
|
|
2376
|
+
O && ni(s.coordinates);
|
|
2363
2377
|
break;
|
|
2364
2378
|
case "markerClick":
|
|
2365
2379
|
{
|
|
2366
|
-
const B =
|
|
2367
|
-
B &&
|
|
2380
|
+
const B = E == null ? void 0 : E.find((H) => H.id === s.id);
|
|
2381
|
+
B && rt(B);
|
|
2368
2382
|
}
|
|
2369
2383
|
break;
|
|
2370
2384
|
case "markerMouseEnter":
|
|
2371
|
-
G && t(15,
|
|
2385
|
+
G && t(15, W = pe ? (E == null ? void 0 : E.findIndex((B) => B.id === s.id)) ?? -1 : -1);
|
|
2372
2386
|
break;
|
|
2373
2387
|
case "markerMouseLeave":
|
|
2374
|
-
G && t(15,
|
|
2388
|
+
G && t(15, W = -1);
|
|
2375
2389
|
break;
|
|
2376
2390
|
}
|
|
2377
2391
|
}), i.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
|
|
2378
|
-
40960 && t(
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
4096 && t(
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
16384 | i.$$.dirty[1] & /*mapController, markerOnSelected
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
16384 | i.$$.dirty[1] & /*mapController
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
32768 | i.$$.dirty[1] & /*
|
|
2391
|
-
|
|
2392
|
+
40960 && t(65, r = E == null ? void 0 : E[W]), i.$$.dirty[1] & /*mapController, flyTo, flyToSelected*/
|
|
2393
|
+
66080 | i.$$.dirty[2] & /*selected*/
|
|
2394
|
+
8 && m && r && k && Ae && m.flyTo(r.center, Ce(r)), i.$$.dirty[1] & /*pickedResultStyle*/
|
|
2395
|
+
4096 && t(67, n = De === "full-geometry-including-polygon-center-marker"), i.$$.dirty[1] & /*markerOnSelected, mapController*/
|
|
2396
|
+
131584 | i.$$.dirty[2] & /*showPolygonMarker*/
|
|
2397
|
+
32 && (Be || m == null || m.setFeatures(void 0, void 0, n)), i.$$.dirty[0] & /*picked*/
|
|
2398
|
+
16384 | i.$$.dirty[1] & /*mapController, markerOnSelected*/
|
|
2399
|
+
131584 | i.$$.dirty[2] & /*markedFeatures, selected, showPolygonMarker*/
|
|
2400
|
+
41 && m && Be && !G && (m.setFeatures(r ? [r] : void 0, h, n), m.setSelectedMarker(r ? 0 : -1)), i.$$.dirty[0] & /*picked*/
|
|
2401
|
+
16384 | i.$$.dirty[1] & /*mapController*/
|
|
2402
|
+
512 | i.$$.dirty[2] & /*markedFeatures, showPolygonMarker*/
|
|
2403
|
+
33 && m && m.setFeatures(G, h, n), i.$$.dirty[0] & /*selectedItemIndex*/
|
|
2404
|
+
32768 | i.$$.dirty[1] & /*mapController*/
|
|
2405
|
+
512 | i.$$.dirty[2] & /*markedFeatures*/
|
|
2406
|
+
1 && G && m && m.setSelectedMarker(W), i.$$.dirty[2] & /*selected, autocompleteTimeoutRef*/
|
|
2407
|
+
10 && r && (window.clearTimeout(x), t(63, x = void 0)), i.$$.dirty[0] & /*searchValue*/
|
|
2392
2408
|
2 | i.$$.dirty[1] & /*mapController*/
|
|
2393
2409
|
512 && m) {
|
|
2394
|
-
const s =
|
|
2410
|
+
const s = it(F);
|
|
2395
2411
|
m.setReverseMarker(s ? [s.decimalLongitude, s.decimalLatitude] : void 0);
|
|
2396
2412
|
}
|
|
2397
2413
|
i.$$.dirty[2] & /*selected*/
|
|
2398
|
-
|
|
2399
|
-
16384 &&
|
|
2400
|
-
73744 && t(
|
|
2401
|
-
|
|
2402
|
-
8192 &&
|
|
2403
|
-
|
|
2404
|
-
1 &&
|
|
2405
|
-
2 &&
|
|
2414
|
+
8 && de("select", { feature: r }), i.$$.dirty[0] & /*picked*/
|
|
2415
|
+
16384 && de("pick", { feature: h }), i.$$.dirty[0] & /*listFeatures, focusedDelayed, keepListOpen*/
|
|
2416
|
+
73744 && t(66, u = !!(E != null && E.length) && (pe || I)), i.$$.dirty[2] & /*optionsVisible*/
|
|
2417
|
+
16 && de("optionsvisibilitychange", { optionsVisible: u }), i.$$.dirty[0] & /*listFeatures*/
|
|
2418
|
+
8192 && de("featureslisted", { features: E }), i.$$.dirty[2] & /*markedFeatures*/
|
|
2419
|
+
1 && de("featuresmarked", { features: G }), i.$$.dirty[0] & /*reverseActive*/
|
|
2420
|
+
1 && de("reversetoggle", { reverse: O }), i.$$.dirty[0] & /*searchValue*/
|
|
2421
|
+
2 && de("querychange", { query: F }), i.$$.dirty[0] & /*reverseActive*/
|
|
2406
2422
|
1 | i.$$.dirty[1] & /*mapController*/
|
|
2407
|
-
512 && m && m.indicateReverse(
|
|
2423
|
+
512 && m && m.indicateReverse(O);
|
|
2408
2424
|
}, [
|
|
2409
|
-
|
|
2410
|
-
|
|
2425
|
+
O,
|
|
2426
|
+
F,
|
|
2411
2427
|
c,
|
|
2412
2428
|
b,
|
|
2413
2429
|
I,
|
|
2414
|
-
|
|
2415
|
-
|
|
2430
|
+
S,
|
|
2431
|
+
C,
|
|
2416
2432
|
q,
|
|
2417
2433
|
R,
|
|
2418
|
-
|
|
2419
|
-
ne,
|
|
2420
|
-
ft,
|
|
2421
|
-
mt,
|
|
2422
|
-
N,
|
|
2423
|
-
h,
|
|
2424
|
-
O,
|
|
2425
|
-
ye,
|
|
2434
|
+
ke,
|
|
2426
2435
|
re,
|
|
2427
|
-
|
|
2428
|
-
te,
|
|
2429
|
-
me,
|
|
2430
|
-
Yt,
|
|
2436
|
+
ht,
|
|
2431
2437
|
bt,
|
|
2438
|
+
E,
|
|
2439
|
+
h,
|
|
2440
|
+
W,
|
|
2441
|
+
pe,
|
|
2442
|
+
oe,
|
|
2443
|
+
$,
|
|
2444
|
+
ie,
|
|
2445
|
+
ve,
|
|
2432
2446
|
ei,
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2447
|
+
_t,
|
|
2448
|
+
ri,
|
|
2449
|
+
yt,
|
|
2450
|
+
rt,
|
|
2451
|
+
wt,
|
|
2452
|
+
oi,
|
|
2437
2453
|
d,
|
|
2438
2454
|
f,
|
|
2439
2455
|
g,
|
|
2440
2456
|
_,
|
|
2441
|
-
|
|
2442
|
-
|
|
2457
|
+
w,
|
|
2458
|
+
T,
|
|
2443
2459
|
z,
|
|
2444
|
-
|
|
2445
|
-
|
|
2460
|
+
J,
|
|
2461
|
+
k,
|
|
2446
2462
|
L,
|
|
2447
2463
|
y,
|
|
2448
|
-
|
|
2464
|
+
M,
|
|
2449
2465
|
m,
|
|
2450
|
-
|
|
2466
|
+
p,
|
|
2451
2467
|
v,
|
|
2452
|
-
Oe,
|
|
2453
|
-
Re,
|
|
2454
|
-
Le,
|
|
2455
|
-
Ue,
|
|
2456
2468
|
De,
|
|
2457
|
-
fe,
|
|
2458
|
-
Qe,
|
|
2459
2469
|
Ie,
|
|
2460
|
-
Ae,
|
|
2461
|
-
Ke,
|
|
2462
|
-
Ve,
|
|
2463
2470
|
Je,
|
|
2471
|
+
he,
|
|
2472
|
+
Ae,
|
|
2473
|
+
Be,
|
|
2474
|
+
be,
|
|
2464
2475
|
Xe,
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2476
|
+
Pe,
|
|
2477
|
+
je,
|
|
2478
|
+
Ye,
|
|
2479
|
+
xe,
|
|
2480
|
+
$e,
|
|
2481
|
+
et,
|
|
2469
2482
|
Xt,
|
|
2483
|
+
Yt,
|
|
2484
|
+
vt,
|
|
2485
|
+
xt,
|
|
2486
|
+
$t,
|
|
2470
2487
|
G,
|
|
2471
|
-
|
|
2488
|
+
x,
|
|
2489
|
+
tt,
|
|
2472
2490
|
r,
|
|
2473
2491
|
u,
|
|
2474
2492
|
n,
|
|
2475
2493
|
o,
|
|
2476
2494
|
l,
|
|
2477
|
-
ii,
|
|
2478
|
-
ni,
|
|
2479
|
-
ri,
|
|
2480
|
-
oi,
|
|
2481
2495
|
si,
|
|
2482
2496
|
ai,
|
|
2483
2497
|
li,
|
|
@@ -2486,17 +2500,21 @@ function Sn(i, e, t) {
|
|
|
2486
2500
|
di,
|
|
2487
2501
|
fi,
|
|
2488
2502
|
mi,
|
|
2489
|
-
gi
|
|
2503
|
+
gi,
|
|
2504
|
+
hi,
|
|
2505
|
+
bi,
|
|
2506
|
+
vi,
|
|
2507
|
+
Li
|
|
2490
2508
|
];
|
|
2491
2509
|
}
|
|
2492
|
-
class
|
|
2510
|
+
class Cn extends we {
|
|
2493
2511
|
constructor(e) {
|
|
2494
|
-
super(),
|
|
2512
|
+
super(), ye(
|
|
2495
2513
|
this,
|
|
2496
2514
|
e,
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2515
|
+
Mn,
|
|
2516
|
+
kn,
|
|
2517
|
+
_e,
|
|
2500
2518
|
{
|
|
2501
2519
|
ZOOM_DEFAULTS: 28,
|
|
2502
2520
|
class: 2,
|
|
@@ -2527,23 +2545,24 @@ class Nn extends ve {
|
|
|
2527
2545
|
pickedResultStyle: 43,
|
|
2528
2546
|
showPlaceType: 11,
|
|
2529
2547
|
showResultsWhileTyping: 44,
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2548
|
+
autocompleteTimeout: 45,
|
|
2549
|
+
selectFirst: 46,
|
|
2550
|
+
flyToSelected: 47,
|
|
2551
|
+
markerOnSelected: 48,
|
|
2552
|
+
types: 49,
|
|
2553
|
+
exhaustiveReverseGeocoding: 50,
|
|
2554
|
+
excludeTypes: 51,
|
|
2555
|
+
zoom: 52,
|
|
2556
|
+
apiUrl: 53,
|
|
2557
|
+
fetchParameters: 54,
|
|
2539
2558
|
iconsBaseUrl: 12,
|
|
2540
|
-
adjustUrlQuery:
|
|
2541
|
-
adjustUrl:
|
|
2542
|
-
focus:
|
|
2543
|
-
blur:
|
|
2544
|
-
setQuery:
|
|
2545
|
-
clearList:
|
|
2546
|
-
clearMap:
|
|
2559
|
+
adjustUrlQuery: 55,
|
|
2560
|
+
adjustUrl: 56,
|
|
2561
|
+
focus: 57,
|
|
2562
|
+
blur: 58,
|
|
2563
|
+
setQuery: 59,
|
|
2564
|
+
clearList: 60,
|
|
2565
|
+
clearMap: 61
|
|
2547
2566
|
},
|
|
2548
2567
|
null,
|
|
2549
2568
|
[-1, -1, -1, -1]
|
|
@@ -2553,22 +2572,22 @@ class Nn extends ve {
|
|
|
2553
2572
|
return this.$$.ctx[28];
|
|
2554
2573
|
}
|
|
2555
2574
|
get focus() {
|
|
2556
|
-
return this.$$.ctx[
|
|
2575
|
+
return this.$$.ctx[57];
|
|
2557
2576
|
}
|
|
2558
2577
|
get blur() {
|
|
2559
|
-
return this.$$.ctx[
|
|
2578
|
+
return this.$$.ctx[58];
|
|
2560
2579
|
}
|
|
2561
2580
|
get setQuery() {
|
|
2562
|
-
return this.$$.ctx[
|
|
2581
|
+
return this.$$.ctx[59];
|
|
2563
2582
|
}
|
|
2564
2583
|
get clearList() {
|
|
2565
|
-
return this.$$.ctx[
|
|
2584
|
+
return this.$$.ctx[60];
|
|
2566
2585
|
}
|
|
2567
2586
|
get clearMap() {
|
|
2568
|
-
return this.$$.ctx[
|
|
2587
|
+
return this.$$.ctx[61];
|
|
2569
2588
|
}
|
|
2570
2589
|
}
|
|
2571
|
-
const
|
|
2590
|
+
const jt = [
|
|
2572
2591
|
"featuresListed",
|
|
2573
2592
|
"featuresMarked",
|
|
2574
2593
|
"optionsVisibilityChange",
|
|
@@ -2577,7 +2596,7 @@ const At = [
|
|
|
2577
2596
|
"response",
|
|
2578
2597
|
"reverseToggle",
|
|
2579
2598
|
"select"
|
|
2580
|
-
],
|
|
2599
|
+
], Wn = [
|
|
2581
2600
|
"adjustUrlQuery",
|
|
2582
2601
|
"adjustUrl",
|
|
2583
2602
|
"apiKey",
|
|
@@ -2617,29 +2636,29 @@ const At = [
|
|
|
2617
2636
|
"types",
|
|
2618
2637
|
"zoom"
|
|
2619
2638
|
];
|
|
2620
|
-
function
|
|
2639
|
+
function Ft(i) {
|
|
2621
2640
|
return "on" + i[0].toUpperCase() + i.slice(1);
|
|
2622
2641
|
}
|
|
2623
|
-
const
|
|
2624
|
-
const n =
|
|
2625
|
-
for (const l of
|
|
2626
|
-
delete u[
|
|
2627
|
-
|
|
2642
|
+
const On = wi(function(e, t) {
|
|
2643
|
+
const n = pt(void 0), r = pt(void 0), u = { ...e };
|
|
2644
|
+
for (const l of jt)
|
|
2645
|
+
delete u[Ft(l)];
|
|
2646
|
+
ut(() => {
|
|
2628
2647
|
if (!n.current)
|
|
2629
2648
|
throw new Error();
|
|
2630
|
-
const l = new
|
|
2649
|
+
const l = new Cn({
|
|
2631
2650
|
target: n.current,
|
|
2632
2651
|
props: u
|
|
2633
2652
|
});
|
|
2634
2653
|
return r.current = l, () => l.$destroy();
|
|
2635
2654
|
}, []);
|
|
2636
|
-
for (const l of
|
|
2637
|
-
|
|
2655
|
+
for (const l of Wn)
|
|
2656
|
+
ut(() => {
|
|
2638
2657
|
r.current && e[l] !== void 0 && r.current.$set({ [l]: e[l] });
|
|
2639
2658
|
}, [e[l]]);
|
|
2640
|
-
for (const l of
|
|
2641
|
-
const o = e[
|
|
2642
|
-
|
|
2659
|
+
for (const l of jt) {
|
|
2660
|
+
const o = e[Ft(l)];
|
|
2661
|
+
ut(
|
|
2643
2662
|
() => {
|
|
2644
2663
|
var d;
|
|
2645
2664
|
return o && ((d = r.current) == null ? void 0 : d.$on(l.toLowerCase(), (c) => {
|
|
@@ -2649,7 +2668,7 @@ const Cn = vi(function(e, t) {
|
|
|
2649
2668
|
[o]
|
|
2650
2669
|
);
|
|
2651
2670
|
}
|
|
2652
|
-
return
|
|
2671
|
+
return pi(t, () => ({
|
|
2653
2672
|
setQuery: (l, o = !0) => {
|
|
2654
2673
|
var d;
|
|
2655
2674
|
return (d = r.current) == null ? void 0 : d.setQuery(l, o);
|
|
@@ -2674,9 +2693,9 @@ const Cn = vi(function(e, t) {
|
|
|
2674
2693
|
var o;
|
|
2675
2694
|
return (o = r.current) == null ? void 0 : o.$set({ reverseActive: l });
|
|
2676
2695
|
}
|
|
2677
|
-
})),
|
|
2696
|
+
})), Ei("div", { ref: n });
|
|
2678
2697
|
});
|
|
2679
2698
|
export {
|
|
2680
|
-
|
|
2699
|
+
On as GeocodingControl
|
|
2681
2700
|
};
|
|
2682
2701
|
//# sourceMappingURL=react.js.map
|