@maptiler/geocoding-control 1.4.2-dev.3 → 2.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/MapLibreBasedGeocodingControl.d.ts +2659 -35
- package/leaflet-controller.d.ts +1 -1
- package/leaflet-controller.js +580 -569
- package/leaflet-controller.js.map +1 -1
- package/leaflet-controller.umd.js +3 -3
- package/leaflet-controller.umd.js.map +1 -1
- package/leaflet.d.ts +74 -16
- package/leaflet.js +1396 -1369
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +3 -3
- package/leaflet.umd.js.map +1 -1
- package/maplibregl-controller.d.ts +7 -7
- package/maplibregl-controller.js +683 -661
- package/maplibregl-controller.js.map +1 -1
- package/maplibregl-controller.umd.js +3 -3
- package/maplibregl-controller.umd.js.map +1 -1
- package/maplibregl.d.ts +2614 -5
- package/maplibregl.js +1563 -1418
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +3 -3
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.d.ts +2614 -5
- package/maptilersdk.js +1574 -1426
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +3 -3
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers-controller.d.ts +1 -1
- package/openlayers-controller.js +308 -306
- package/openlayers-controller.js.map +1 -1
- package/openlayers-controller.umd.js +3 -3
- package/openlayers-controller.umd.js.map +1 -1
- package/openlayers.d.ts +21 -0
- package/openlayers.js +1300 -1318
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +3 -3
- package/openlayers.umd.js.map +1 -1
- package/package.json +17 -17
- package/react.d.ts +4 -4
- package/react.js +811 -798
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/style.css +1 -1
- package/svelte/FeatureItem.svelte +1 -1
- package/svelte/FeatureItem.svelte.d.ts +1 -1
- package/svelte/GeocodingControl.svelte +68 -46
- package/svelte/GeocodingControl.svelte.d.ts +25 -11
- package/svelte/MapLibreBasedGeocodingControl.d.ts +2659 -35
- package/svelte/MapLibreBasedGeocodingControl.js +165 -58
- package/svelte/leaflet-controller.d.ts +1 -1
- package/svelte/leaflet-controller.js +50 -24
- package/svelte/leaflet.d.ts +74 -16
- package/svelte/leaflet.js +26 -15
- package/svelte/maplibregl-controller.d.ts +7 -7
- package/svelte/maplibregl-controller.js +96 -66
- package/svelte/maplibregl.d.ts +2614 -5
- package/svelte/maplibregl.js +10 -7
- package/svelte/maptilersdk.d.ts +2614 -5
- package/svelte/maptilersdk.js +23 -18
- package/svelte/openlayers-controller.d.ts +1 -1
- package/svelte/openlayers-controller.js +4 -1
- package/svelte/openlayers.d.ts +21 -0
- package/svelte/openlayers.js +31 -45
- package/svelte/react.d.ts +4 -4
- package/svelte/react.js +5 -5
- package/svelte/types.d.ts +72 -30
- package/svelte/vanilla.d.ts +14 -1
- package/svelte/vanilla.js +31 -8
- package/types.d.ts +72 -30
- package/vanilla.d.ts +14 -1
- package/vanilla.js +837 -796
- package/vanilla.js.map +1 -1
- package/vanilla.umd.js +1 -1
- package/vanilla.umd.js.map +1 -1
package/vanilla.js
CHANGED
|
@@ -1,72 +1,75 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var bi = Object.defineProperty;
|
|
2
|
+
var vi = Object.getPrototypeOf;
|
|
3
|
+
var Li = Reflect.get;
|
|
4
|
+
var bt = (i) => {
|
|
3
5
|
throw TypeError(i);
|
|
4
6
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var oe = (i, e, t) => (
|
|
8
|
-
|
|
7
|
+
var _i = (i, e, t) => e in i ? bi(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
8
|
+
var nt = (i, e, t) => _i(i, typeof e != "symbol" ? e + "" : e, t), rt = (i, e, t) => e.has(i) || bt("Cannot " + t);
|
|
9
|
+
var oe = (i, e, t) => (rt(i, e, "read from private field"), t ? t.call(i) : e.get(i)), ot = (i, e, t) => e.has(i) ? bt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), vt = (i, e, t, n) => (rt(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t), Lt = (i, e, t) => (rt(i, e, "access private method"), t);
|
|
10
|
+
var _t = (i, e, t) => Li(vi(i), t, e);
|
|
11
|
+
function U() {
|
|
9
12
|
}
|
|
10
|
-
function
|
|
13
|
+
function yi(i, e) {
|
|
11
14
|
for (const t in e) i[t] = e[t];
|
|
12
15
|
return (
|
|
13
16
|
/** @type {T & S} */
|
|
14
17
|
i
|
|
15
18
|
);
|
|
16
19
|
}
|
|
17
|
-
function
|
|
20
|
+
function Ht(i) {
|
|
18
21
|
return i();
|
|
19
22
|
}
|
|
20
|
-
function
|
|
23
|
+
function yt() {
|
|
21
24
|
return /* @__PURE__ */ Object.create(null);
|
|
22
25
|
}
|
|
23
26
|
function ue(i) {
|
|
24
|
-
i.forEach(
|
|
27
|
+
i.forEach(Ht);
|
|
25
28
|
}
|
|
26
|
-
function
|
|
29
|
+
function jt(i) {
|
|
27
30
|
return typeof i == "function";
|
|
28
31
|
}
|
|
29
|
-
function
|
|
32
|
+
function Le(i, e) {
|
|
30
33
|
return i != i ? e == e : i !== e || i && typeof i == "object" || typeof i == "function";
|
|
31
34
|
}
|
|
32
|
-
let
|
|
33
|
-
function
|
|
34
|
-
return i === e ? !0 : (
|
|
35
|
+
let je;
|
|
36
|
+
function K(i, e) {
|
|
37
|
+
return i === e ? !0 : (je || (je = document.createElement("a")), je.href = e, i === je.href);
|
|
35
38
|
}
|
|
36
|
-
function
|
|
39
|
+
function wi(i) {
|
|
37
40
|
return Object.keys(i).length === 0;
|
|
38
41
|
}
|
|
39
|
-
function
|
|
42
|
+
function Ei(i, e, t, n) {
|
|
40
43
|
if (i) {
|
|
41
|
-
const
|
|
42
|
-
return i[0](
|
|
44
|
+
const r = Pt(i, e, t, n);
|
|
45
|
+
return i[0](r);
|
|
43
46
|
}
|
|
44
47
|
}
|
|
45
|
-
function
|
|
46
|
-
return i[1] && n ?
|
|
48
|
+
function Pt(i, e, t, n) {
|
|
49
|
+
return i[1] && n ? yi(t.ctx.slice(), i[1](n(e))) : t.ctx;
|
|
47
50
|
}
|
|
48
|
-
function
|
|
51
|
+
function Si(i, e, t, n) {
|
|
49
52
|
if (i[2] && n) {
|
|
50
|
-
const
|
|
53
|
+
const r = i[2](n(t));
|
|
51
54
|
if (e.dirty === void 0)
|
|
52
|
-
return
|
|
53
|
-
if (typeof
|
|
54
|
-
const l = [], c = Math.max(e.dirty.length,
|
|
55
|
-
for (let
|
|
56
|
-
l[
|
|
55
|
+
return r;
|
|
56
|
+
if (typeof r == "object") {
|
|
57
|
+
const l = [], c = Math.max(e.dirty.length, r.length);
|
|
58
|
+
for (let o = 0; o < c; o += 1)
|
|
59
|
+
l[o] = e.dirty[o] | r[o];
|
|
57
60
|
return l;
|
|
58
61
|
}
|
|
59
|
-
return e.dirty |
|
|
62
|
+
return e.dirty | r;
|
|
60
63
|
}
|
|
61
64
|
return e.dirty;
|
|
62
65
|
}
|
|
63
|
-
function
|
|
64
|
-
if (
|
|
65
|
-
const c =
|
|
66
|
-
i.p(c,
|
|
66
|
+
function pi(i, e, t, n, r, l) {
|
|
67
|
+
if (r) {
|
|
68
|
+
const c = Pt(e, t, n, l);
|
|
69
|
+
i.p(c, r);
|
|
67
70
|
}
|
|
68
71
|
}
|
|
69
|
-
function
|
|
72
|
+
function Ti(i) {
|
|
70
73
|
if (i.ctx.length > 32) {
|
|
71
74
|
const e = [], t = i.ctx.length / 32;
|
|
72
75
|
for (let n = 0; n < t; n++)
|
|
@@ -75,37 +78,37 @@ function gi(i) {
|
|
|
75
78
|
}
|
|
76
79
|
return -1;
|
|
77
80
|
}
|
|
78
|
-
function
|
|
81
|
+
function wt(i) {
|
|
79
82
|
return i ?? "";
|
|
80
83
|
}
|
|
81
|
-
function
|
|
84
|
+
function k(i, e) {
|
|
82
85
|
i.appendChild(e);
|
|
83
86
|
}
|
|
84
|
-
function
|
|
87
|
+
function A(i, e, t) {
|
|
85
88
|
i.insertBefore(e, t || null);
|
|
86
89
|
}
|
|
87
|
-
function
|
|
90
|
+
function O(i) {
|
|
88
91
|
i.parentNode && i.parentNode.removeChild(i);
|
|
89
92
|
}
|
|
90
|
-
function
|
|
93
|
+
function R(i) {
|
|
91
94
|
return document.createElement(i);
|
|
92
95
|
}
|
|
93
96
|
function se(i) {
|
|
94
97
|
return document.createElementNS("http://www.w3.org/2000/svg", i);
|
|
95
98
|
}
|
|
96
|
-
function
|
|
99
|
+
function me(i) {
|
|
97
100
|
return document.createTextNode(i);
|
|
98
101
|
}
|
|
99
|
-
function
|
|
100
|
-
return
|
|
102
|
+
function X() {
|
|
103
|
+
return me(" ");
|
|
101
104
|
}
|
|
102
|
-
function
|
|
103
|
-
return
|
|
105
|
+
function Ni() {
|
|
106
|
+
return me("");
|
|
104
107
|
}
|
|
105
|
-
function
|
|
108
|
+
function V(i, e, t, n) {
|
|
106
109
|
return i.addEventListener(e, t, n), () => i.removeEventListener(e, t, n);
|
|
107
110
|
}
|
|
108
|
-
function
|
|
111
|
+
function ki(i) {
|
|
109
112
|
return function(e) {
|
|
110
113
|
return e.preventDefault(), i.call(this, e);
|
|
111
114
|
};
|
|
@@ -113,187 +116,187 @@ function bi(i) {
|
|
|
113
116
|
function a(i, e, t) {
|
|
114
117
|
t == null ? i.removeAttribute(e) : i.getAttribute(e) !== t && i.setAttribute(e, t);
|
|
115
118
|
}
|
|
116
|
-
function
|
|
119
|
+
function Mi(i) {
|
|
117
120
|
return Array.from(i.childNodes);
|
|
118
121
|
}
|
|
119
|
-
function
|
|
122
|
+
function Re(i, e) {
|
|
120
123
|
e = "" + e, i.data !== e && (i.data = /** @type {string} */
|
|
121
124
|
e);
|
|
122
125
|
}
|
|
123
|
-
function
|
|
126
|
+
function Et(i, e) {
|
|
124
127
|
i.value = e ?? "";
|
|
125
128
|
}
|
|
126
|
-
function
|
|
129
|
+
function fe(i, e, t) {
|
|
127
130
|
i.classList.toggle(e, !!t);
|
|
128
131
|
}
|
|
129
|
-
function
|
|
132
|
+
function Ci(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
|
|
130
133
|
return new CustomEvent(i, { detail: e, bubbles: t, cancelable: n });
|
|
131
134
|
}
|
|
132
|
-
let
|
|
133
|
-
function
|
|
134
|
-
|
|
135
|
+
let De;
|
|
136
|
+
function ze(i) {
|
|
137
|
+
De = i;
|
|
135
138
|
}
|
|
136
|
-
function
|
|
137
|
-
if (!
|
|
138
|
-
return
|
|
139
|
+
function Zt() {
|
|
140
|
+
if (!De) throw new Error("Function called outside component initialization");
|
|
141
|
+
return De;
|
|
139
142
|
}
|
|
140
|
-
function
|
|
141
|
-
|
|
143
|
+
function Wi(i) {
|
|
144
|
+
Zt().$$.on_destroy.push(i);
|
|
142
145
|
}
|
|
143
|
-
function
|
|
144
|
-
const i =
|
|
146
|
+
function zi() {
|
|
147
|
+
const i = Zt();
|
|
145
148
|
return (e, t, { cancelable: n = !1 } = {}) => {
|
|
146
|
-
const
|
|
147
|
-
if (
|
|
148
|
-
const l =
|
|
149
|
+
const r = i.$$.callbacks[e];
|
|
150
|
+
if (r) {
|
|
151
|
+
const l = Ci(
|
|
149
152
|
/** @type {string} */
|
|
150
153
|
e,
|
|
151
154
|
t,
|
|
152
155
|
{ cancelable: n }
|
|
153
156
|
);
|
|
154
|
-
return
|
|
157
|
+
return r.slice().forEach((c) => {
|
|
155
158
|
c.call(i, l);
|
|
156
159
|
}), !l.defaultPrevented;
|
|
157
160
|
}
|
|
158
161
|
return !0;
|
|
159
162
|
};
|
|
160
163
|
}
|
|
161
|
-
function
|
|
164
|
+
function St(i, e) {
|
|
162
165
|
const t = i.$$.callbacks[e.type];
|
|
163
166
|
t && t.slice().forEach((n) => n.call(this, e));
|
|
164
167
|
}
|
|
165
|
-
const
|
|
168
|
+
const Te = [], at = [];
|
|
166
169
|
let Ne = [];
|
|
167
|
-
const
|
|
168
|
-
let
|
|
169
|
-
function
|
|
170
|
-
|
|
170
|
+
const pt = [], Ri = /* @__PURE__ */ Promise.resolve();
|
|
171
|
+
let lt = !1;
|
|
172
|
+
function Di() {
|
|
173
|
+
lt || (lt = !0, Ri.then(qt));
|
|
171
174
|
}
|
|
172
|
-
function
|
|
175
|
+
function ut(i) {
|
|
173
176
|
Ne.push(i);
|
|
174
177
|
}
|
|
175
|
-
const
|
|
176
|
-
let
|
|
177
|
-
function
|
|
178
|
-
if (
|
|
178
|
+
const st = /* @__PURE__ */ new Set();
|
|
179
|
+
let pe = 0;
|
|
180
|
+
function qt() {
|
|
181
|
+
if (pe !== 0)
|
|
179
182
|
return;
|
|
180
|
-
const i =
|
|
183
|
+
const i = De;
|
|
181
184
|
do {
|
|
182
185
|
try {
|
|
183
|
-
for (;
|
|
184
|
-
const e = pe
|
|
185
|
-
|
|
186
|
+
for (; pe < Te.length; ) {
|
|
187
|
+
const e = Te[pe];
|
|
188
|
+
pe++, ze(e), Oi(e.$$);
|
|
186
189
|
}
|
|
187
190
|
} catch (e) {
|
|
188
|
-
throw
|
|
191
|
+
throw Te.length = 0, pe = 0, e;
|
|
189
192
|
}
|
|
190
|
-
for (
|
|
193
|
+
for (ze(null), Te.length = 0, pe = 0; at.length; ) at.pop()();
|
|
191
194
|
for (let e = 0; e < Ne.length; e += 1) {
|
|
192
195
|
const t = Ne[e];
|
|
193
|
-
|
|
196
|
+
st.has(t) || (st.add(t), t());
|
|
194
197
|
}
|
|
195
198
|
Ne.length = 0;
|
|
196
|
-
} while (
|
|
197
|
-
for (;
|
|
198
|
-
|
|
199
|
-
|
|
199
|
+
} while (Te.length);
|
|
200
|
+
for (; pt.length; )
|
|
201
|
+
pt.pop()();
|
|
202
|
+
lt = !1, st.clear(), ze(i);
|
|
200
203
|
}
|
|
201
|
-
function
|
|
204
|
+
function Oi(i) {
|
|
202
205
|
if (i.fragment !== null) {
|
|
203
206
|
i.update(), ue(i.before_update);
|
|
204
207
|
const e = i.dirty;
|
|
205
|
-
i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(
|
|
208
|
+
i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(ut);
|
|
206
209
|
}
|
|
207
210
|
}
|
|
208
|
-
function
|
|
211
|
+
function Ii(i) {
|
|
209
212
|
const e = [], t = [];
|
|
210
213
|
Ne.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), Ne = e;
|
|
211
214
|
}
|
|
212
|
-
const
|
|
213
|
-
let
|
|
214
|
-
function
|
|
215
|
-
|
|
215
|
+
const Pe = /* @__PURE__ */ new Set();
|
|
216
|
+
let ve;
|
|
217
|
+
function Ze() {
|
|
218
|
+
ve = {
|
|
216
219
|
r: 0,
|
|
217
220
|
c: [],
|
|
218
|
-
p:
|
|
221
|
+
p: ve
|
|
219
222
|
// parent group
|
|
220
223
|
};
|
|
221
224
|
}
|
|
222
|
-
function
|
|
223
|
-
|
|
225
|
+
function qe() {
|
|
226
|
+
ve.r || ue(ve.c), ve = ve.p;
|
|
224
227
|
}
|
|
225
|
-
function
|
|
226
|
-
i && i.i && (
|
|
228
|
+
function H(i, e) {
|
|
229
|
+
i && i.i && (Pe.delete(i), i.i(e));
|
|
227
230
|
}
|
|
228
231
|
function Q(i, e, t, n) {
|
|
229
232
|
if (i && i.o) {
|
|
230
|
-
if (
|
|
231
|
-
|
|
232
|
-
|
|
233
|
+
if (Pe.has(i)) return;
|
|
234
|
+
Pe.add(i), ve.c.push(() => {
|
|
235
|
+
Pe.delete(i), n && (t && i.d(1), n());
|
|
233
236
|
}), i.o(e);
|
|
234
237
|
} else n && n();
|
|
235
238
|
}
|
|
236
|
-
function
|
|
239
|
+
function Tt(i) {
|
|
237
240
|
return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i);
|
|
238
241
|
}
|
|
239
|
-
function
|
|
242
|
+
function Ui(i, e) {
|
|
240
243
|
Q(i, 1, 1, () => {
|
|
241
244
|
e.delete(i.key);
|
|
242
245
|
});
|
|
243
246
|
}
|
|
244
|
-
function
|
|
247
|
+
function Ai(i, e, t, n, r, l, c, o, d, u, f, h) {
|
|
245
248
|
let v = i.length, _ = l.length, w = v;
|
|
246
249
|
const W = {};
|
|
247
250
|
for (; w--; ) W[i[w].key] = w;
|
|
248
|
-
const y = [], E = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(),
|
|
251
|
+
const y = [], E = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), z = [];
|
|
249
252
|
for (w = _; w--; ) {
|
|
250
|
-
const g = h(
|
|
251
|
-
let
|
|
252
|
-
|
|
253
|
+
const g = h(r, l, w), m = t(g);
|
|
254
|
+
let M = c.get(m);
|
|
255
|
+
M ? z.push(() => M.p(g, e)) : (M = u(m, g), M.c()), E.set(m, y[w] = M), m in W && C.set(m, Math.abs(w - W[m]));
|
|
253
256
|
}
|
|
254
257
|
const p = /* @__PURE__ */ new Set(), q = /* @__PURE__ */ new Set();
|
|
255
258
|
function b(g) {
|
|
256
|
-
|
|
259
|
+
H(g, 1), g.m(o, f), c.set(g.key, g), f = g.first, _--;
|
|
257
260
|
}
|
|
258
261
|
for (; v && _; ) {
|
|
259
|
-
const g = y[_ - 1], m = i[v - 1],
|
|
260
|
-
g === m ? (f = g.first, v--, _--) : E.has(
|
|
262
|
+
const g = y[_ - 1], m = i[v - 1], M = g.key, j = m.key;
|
|
263
|
+
g === m ? (f = g.first, v--, _--) : E.has(j) ? !c.has(M) || p.has(M) ? b(g) : q.has(j) ? v-- : C.get(M) > C.get(j) ? (q.add(M), b(g)) : (p.add(j), v--) : (d(m, c), v--);
|
|
261
264
|
}
|
|
262
265
|
for (; v--; ) {
|
|
263
266
|
const g = i[v];
|
|
264
267
|
E.has(g.key) || d(g, c);
|
|
265
268
|
}
|
|
266
269
|
for (; _; ) b(y[_ - 1]);
|
|
267
|
-
return ue(
|
|
270
|
+
return ue(z), y;
|
|
268
271
|
}
|
|
269
|
-
function
|
|
272
|
+
function ge(i) {
|
|
270
273
|
i && i.c();
|
|
271
274
|
}
|
|
272
275
|
function ae(i, e, t) {
|
|
273
|
-
const { fragment: n, after_update:
|
|
274
|
-
n && n.m(e, t),
|
|
275
|
-
const l = i.$$.on_mount.map(
|
|
276
|
+
const { fragment: n, after_update: r } = i.$$;
|
|
277
|
+
n && n.m(e, t), ut(() => {
|
|
278
|
+
const l = i.$$.on_mount.map(Ht).filter(jt);
|
|
276
279
|
i.$$.on_destroy ? i.$$.on_destroy.push(...l) : ue(l), i.$$.on_mount = [];
|
|
277
|
-
}),
|
|
280
|
+
}), r.forEach(ut);
|
|
278
281
|
}
|
|
279
282
|
function le(i, e) {
|
|
280
283
|
const t = i.$$;
|
|
281
|
-
t.fragment !== null && (
|
|
284
|
+
t.fragment !== null && (Ii(t.after_update), ue(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
|
|
282
285
|
}
|
|
283
|
-
function
|
|
284
|
-
i.$$.dirty[0] === -1 && (
|
|
286
|
+
function Bi(i, e) {
|
|
287
|
+
i.$$.dirty[0] === -1 && (Te.push(i), Di(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
285
288
|
}
|
|
286
|
-
function
|
|
287
|
-
const d =
|
|
288
|
-
|
|
289
|
+
function _e(i, e, t, n, r, l, c = null, o = [-1]) {
|
|
290
|
+
const d = De;
|
|
291
|
+
ze(i);
|
|
289
292
|
const u = i.$$ = {
|
|
290
293
|
fragment: null,
|
|
291
294
|
ctx: [],
|
|
292
295
|
// state
|
|
293
296
|
props: l,
|
|
294
|
-
update:
|
|
295
|
-
not_equal:
|
|
296
|
-
bound:
|
|
297
|
+
update: U,
|
|
298
|
+
not_equal: r,
|
|
299
|
+
bound: yt(),
|
|
297
300
|
// lifecycle
|
|
298
301
|
on_mount: [],
|
|
299
302
|
on_destroy: [],
|
|
@@ -302,8 +305,8 @@ function Le(i, e, t, n, o, l, c = null, r = [-1]) {
|
|
|
302
305
|
after_update: [],
|
|
303
306
|
context: new Map(e.context || (d ? d.$$.context : [])),
|
|
304
307
|
// everything else
|
|
305
|
-
callbacks:
|
|
306
|
-
dirty:
|
|
308
|
+
callbacks: yt(),
|
|
309
|
+
dirty: o,
|
|
307
310
|
skip_bound: !1,
|
|
308
311
|
root: e.target || d.$$.root
|
|
309
312
|
};
|
|
@@ -311,18 +314,18 @@ function Le(i, e, t, n, o, l, c = null, r = [-1]) {
|
|
|
311
314
|
let f = !1;
|
|
312
315
|
if (u.ctx = t ? t(i, e.props || {}, (h, v, ..._) => {
|
|
313
316
|
const w = _.length ? _[0] : v;
|
|
314
|
-
return u.ctx &&
|
|
317
|
+
return u.ctx && r(u.ctx[h], u.ctx[h] = w) && (!u.skip_bound && u.bound[h] && u.bound[h](w), f && Bi(i, h)), v;
|
|
315
318
|
}) : [], u.update(), f = !0, ue(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
|
|
316
319
|
if (e.hydrate) {
|
|
317
|
-
const h =
|
|
318
|
-
u.fragment && u.fragment.l(h), h.forEach(
|
|
320
|
+
const h = Mi(e.target);
|
|
321
|
+
u.fragment && u.fragment.l(h), h.forEach(O);
|
|
319
322
|
} else
|
|
320
323
|
u.fragment && u.fragment.c();
|
|
321
|
-
e.intro &&
|
|
324
|
+
e.intro && H(i.$$.fragment), ae(i, e.target, e.anchor), qt();
|
|
322
325
|
}
|
|
323
|
-
|
|
326
|
+
ze(d);
|
|
324
327
|
}
|
|
325
|
-
class
|
|
328
|
+
class ye {
|
|
326
329
|
constructor() {
|
|
327
330
|
/**
|
|
328
331
|
* ### PRIVATE API
|
|
@@ -331,7 +334,7 @@ class _e {
|
|
|
331
334
|
*
|
|
332
335
|
* @type {any}
|
|
333
336
|
*/
|
|
334
|
-
|
|
337
|
+
nt(this, "$$");
|
|
335
338
|
/**
|
|
336
339
|
* ### PRIVATE API
|
|
337
340
|
*
|
|
@@ -339,11 +342,11 @@ class _e {
|
|
|
339
342
|
*
|
|
340
343
|
* @type {any}
|
|
341
344
|
*/
|
|
342
|
-
|
|
345
|
+
nt(this, "$$set");
|
|
343
346
|
}
|
|
344
347
|
/** @returns {void} */
|
|
345
348
|
$destroy() {
|
|
346
|
-
le(this, 1), this.$destroy =
|
|
349
|
+
le(this, 1), this.$destroy = U;
|
|
347
350
|
}
|
|
348
351
|
/**
|
|
349
352
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -352,12 +355,12 @@ class _e {
|
|
|
352
355
|
* @returns {() => void}
|
|
353
356
|
*/
|
|
354
357
|
$on(e, t) {
|
|
355
|
-
if (!
|
|
356
|
-
return
|
|
358
|
+
if (!jt(t))
|
|
359
|
+
return U;
|
|
357
360
|
const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
358
361
|
return n.push(t), () => {
|
|
359
|
-
const
|
|
360
|
-
|
|
362
|
+
const r = n.indexOf(t);
|
|
363
|
+
r !== -1 && n.splice(r, 1);
|
|
361
364
|
};
|
|
362
365
|
}
|
|
363
366
|
/**
|
|
@@ -365,60 +368,60 @@ class _e {
|
|
|
365
368
|
* @returns {void}
|
|
366
369
|
*/
|
|
367
370
|
$set(e) {
|
|
368
|
-
this.$$set && !
|
|
371
|
+
this.$$set && !wi(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
369
372
|
}
|
|
370
373
|
}
|
|
371
|
-
const
|
|
372
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
373
|
-
function
|
|
374
|
+
const Fi = "4";
|
|
375
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Fi);
|
|
376
|
+
function Hi(i) {
|
|
374
377
|
let e, t;
|
|
375
378
|
return {
|
|
376
379
|
c() {
|
|
377
380
|
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");
|
|
378
381
|
},
|
|
379
|
-
m(n,
|
|
380
|
-
|
|
382
|
+
m(n, r) {
|
|
383
|
+
A(n, e, r), k(e, t);
|
|
381
384
|
},
|
|
382
|
-
p:
|
|
383
|
-
i:
|
|
384
|
-
o:
|
|
385
|
+
p: U,
|
|
386
|
+
i: U,
|
|
387
|
+
o: U,
|
|
385
388
|
d(n) {
|
|
386
|
-
n &&
|
|
389
|
+
n && O(e);
|
|
387
390
|
}
|
|
388
391
|
};
|
|
389
392
|
}
|
|
390
|
-
class
|
|
393
|
+
class Gt extends ye {
|
|
391
394
|
constructor(e) {
|
|
392
|
-
super(),
|
|
395
|
+
super(), _e(this, e, null, Hi, Le, {});
|
|
393
396
|
}
|
|
394
397
|
}
|
|
395
|
-
function
|
|
398
|
+
function ji(i) {
|
|
396
399
|
let e, t;
|
|
397
400
|
return {
|
|
398
401
|
c() {
|
|
399
402
|
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");
|
|
400
403
|
},
|
|
401
|
-
m(n,
|
|
402
|
-
|
|
404
|
+
m(n, r) {
|
|
405
|
+
A(n, e, r), k(e, t);
|
|
403
406
|
},
|
|
404
|
-
p:
|
|
405
|
-
i:
|
|
406
|
-
o:
|
|
407
|
+
p: U,
|
|
408
|
+
i: U,
|
|
409
|
+
o: U,
|
|
407
410
|
d(n) {
|
|
408
|
-
n &&
|
|
411
|
+
n && O(e);
|
|
409
412
|
}
|
|
410
413
|
};
|
|
411
414
|
}
|
|
412
|
-
class
|
|
415
|
+
class Qt extends ye {
|
|
413
416
|
constructor(e) {
|
|
414
|
-
super(),
|
|
417
|
+
super(), _e(this, e, null, ji, Le, {});
|
|
415
418
|
}
|
|
416
419
|
}
|
|
417
|
-
function
|
|
420
|
+
function Pi(i) {
|
|
418
421
|
let e, t;
|
|
419
422
|
return {
|
|
420
423
|
c() {
|
|
421
|
-
e =
|
|
424
|
+
e = R("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
422
425
|
i[3] + "area.svg") || a(e, "src", t), a(
|
|
423
426
|
e,
|
|
424
427
|
"alt",
|
|
@@ -426,13 +429,13 @@ function Oi(i) {
|
|
|
426
429
|
i[6]
|
|
427
430
|
), a(e, "class", "svelte-ltkwvy");
|
|
428
431
|
},
|
|
429
|
-
m(n,
|
|
430
|
-
|
|
432
|
+
m(n, r) {
|
|
433
|
+
A(n, e, r);
|
|
431
434
|
},
|
|
432
|
-
p(n,
|
|
433
|
-
|
|
434
|
-
8 && !
|
|
435
|
-
n[3] + "area.svg") && a(e, "src", t),
|
|
435
|
+
p(n, r) {
|
|
436
|
+
r & /*iconsBaseUrl*/
|
|
437
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
438
|
+
n[3] + "area.svg") && a(e, "src", t), r & /*placeType*/
|
|
436
439
|
64 && a(
|
|
437
440
|
e,
|
|
438
441
|
"alt",
|
|
@@ -441,15 +444,15 @@ function Oi(i) {
|
|
|
441
444
|
);
|
|
442
445
|
},
|
|
443
446
|
d(n) {
|
|
444
|
-
n &&
|
|
447
|
+
n && O(e);
|
|
445
448
|
}
|
|
446
449
|
};
|
|
447
450
|
}
|
|
448
|
-
function
|
|
451
|
+
function Zi(i) {
|
|
449
452
|
let e, t;
|
|
450
453
|
return {
|
|
451
454
|
c() {
|
|
452
|
-
e =
|
|
455
|
+
e = R("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
453
456
|
i[3] + "reverse.svg") || a(e, "src", t), a(
|
|
454
457
|
e,
|
|
455
458
|
"alt",
|
|
@@ -457,13 +460,13 @@ function Di(i) {
|
|
|
457
460
|
i[6]
|
|
458
461
|
), a(e, "class", "svelte-ltkwvy");
|
|
459
462
|
},
|
|
460
|
-
m(n,
|
|
461
|
-
|
|
463
|
+
m(n, r) {
|
|
464
|
+
A(n, e, r);
|
|
462
465
|
},
|
|
463
|
-
p(n,
|
|
464
|
-
|
|
465
|
-
8 && !
|
|
466
|
-
n[3] + "reverse.svg") && a(e, "src", t),
|
|
466
|
+
p(n, r) {
|
|
467
|
+
r & /*iconsBaseUrl*/
|
|
468
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
469
|
+
n[3] + "reverse.svg") && a(e, "src", t), r & /*placeType*/
|
|
467
470
|
64 && a(
|
|
468
471
|
e,
|
|
469
472
|
"alt",
|
|
@@ -472,15 +475,15 @@ function Di(i) {
|
|
|
472
475
|
);
|
|
473
476
|
},
|
|
474
477
|
d(n) {
|
|
475
|
-
n &&
|
|
478
|
+
n && O(e);
|
|
476
479
|
}
|
|
477
480
|
};
|
|
478
481
|
}
|
|
479
|
-
function
|
|
482
|
+
function qi(i) {
|
|
480
483
|
let e, t;
|
|
481
484
|
return {
|
|
482
485
|
c() {
|
|
483
|
-
e =
|
|
486
|
+
e = R("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
484
487
|
i[3] + "poi.svg") || a(e, "src", t), a(
|
|
485
488
|
e,
|
|
486
489
|
"alt",
|
|
@@ -488,13 +491,13 @@ function Ri(i) {
|
|
|
488
491
|
i[6]
|
|
489
492
|
), a(e, "class", "svelte-ltkwvy");
|
|
490
493
|
},
|
|
491
|
-
m(n,
|
|
492
|
-
|
|
494
|
+
m(n, r) {
|
|
495
|
+
A(n, e, r);
|
|
493
496
|
},
|
|
494
|
-
p(n,
|
|
495
|
-
|
|
496
|
-
8 && !
|
|
497
|
-
n[3] + "poi.svg") && a(e, "src", t),
|
|
497
|
+
p(n, r) {
|
|
498
|
+
r & /*iconsBaseUrl*/
|
|
499
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
500
|
+
n[3] + "poi.svg") && a(e, "src", t), r & /*placeType*/
|
|
498
501
|
64 && a(
|
|
499
502
|
e,
|
|
500
503
|
"alt",
|
|
@@ -503,15 +506,15 @@ function Ri(i) {
|
|
|
503
506
|
);
|
|
504
507
|
},
|
|
505
508
|
d(n) {
|
|
506
|
-
n &&
|
|
509
|
+
n && O(e);
|
|
507
510
|
}
|
|
508
511
|
};
|
|
509
512
|
}
|
|
510
|
-
function
|
|
513
|
+
function Gi(i) {
|
|
511
514
|
let e, t;
|
|
512
515
|
return {
|
|
513
516
|
c() {
|
|
514
|
-
e =
|
|
517
|
+
e = R("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
515
518
|
i[3] + "postal_code.svg") || a(e, "src", t), a(
|
|
516
519
|
e,
|
|
517
520
|
"alt",
|
|
@@ -519,13 +522,13 @@ function Ui(i) {
|
|
|
519
522
|
i[6]
|
|
520
523
|
), a(e, "class", "svelte-ltkwvy");
|
|
521
524
|
},
|
|
522
|
-
m(n,
|
|
523
|
-
|
|
525
|
+
m(n, r) {
|
|
526
|
+
A(n, e, r);
|
|
524
527
|
},
|
|
525
|
-
p(n,
|
|
526
|
-
|
|
527
|
-
8 && !
|
|
528
|
-
n[3] + "postal_code.svg") && a(e, "src", t),
|
|
528
|
+
p(n, r) {
|
|
529
|
+
r & /*iconsBaseUrl*/
|
|
530
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
531
|
+
n[3] + "postal_code.svg") && a(e, "src", t), r & /*placeType*/
|
|
529
532
|
64 && a(
|
|
530
533
|
e,
|
|
531
534
|
"alt",
|
|
@@ -534,15 +537,15 @@ function Ui(i) {
|
|
|
534
537
|
);
|
|
535
538
|
},
|
|
536
539
|
d(n) {
|
|
537
|
-
n &&
|
|
540
|
+
n && O(e);
|
|
538
541
|
}
|
|
539
542
|
};
|
|
540
543
|
}
|
|
541
|
-
function
|
|
544
|
+
function Qi(i) {
|
|
542
545
|
let e, t;
|
|
543
546
|
return {
|
|
544
547
|
c() {
|
|
545
|
-
e =
|
|
548
|
+
e = R("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
546
549
|
i[3] + "street.svg") || a(e, "src", t), a(
|
|
547
550
|
e,
|
|
548
551
|
"alt",
|
|
@@ -550,13 +553,13 @@ function Ii(i) {
|
|
|
550
553
|
i[6]
|
|
551
554
|
), a(e, "class", "svelte-ltkwvy");
|
|
552
555
|
},
|
|
553
|
-
m(n,
|
|
554
|
-
|
|
556
|
+
m(n, r) {
|
|
557
|
+
A(n, e, r);
|
|
555
558
|
},
|
|
556
|
-
p(n,
|
|
557
|
-
|
|
558
|
-
8 && !
|
|
559
|
-
n[3] + "street.svg") && a(e, "src", t),
|
|
559
|
+
p(n, r) {
|
|
560
|
+
r & /*iconsBaseUrl*/
|
|
561
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
562
|
+
n[3] + "street.svg") && a(e, "src", t), r & /*placeType*/
|
|
560
563
|
64 && a(
|
|
561
564
|
e,
|
|
562
565
|
"alt",
|
|
@@ -565,15 +568,15 @@ function Ii(i) {
|
|
|
565
568
|
);
|
|
566
569
|
},
|
|
567
570
|
d(n) {
|
|
568
|
-
n &&
|
|
571
|
+
n && O(e);
|
|
569
572
|
}
|
|
570
573
|
};
|
|
571
574
|
}
|
|
572
|
-
function
|
|
575
|
+
function Ki(i) {
|
|
573
576
|
let e, t;
|
|
574
577
|
return {
|
|
575
578
|
c() {
|
|
576
|
-
e =
|
|
579
|
+
e = R("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
577
580
|
i[3] + "road.svg") || a(e, "src", t), a(
|
|
578
581
|
e,
|
|
579
582
|
"alt",
|
|
@@ -581,13 +584,13 @@ function Ai(i) {
|
|
|
581
584
|
i[6]
|
|
582
585
|
), a(e, "class", "svelte-ltkwvy");
|
|
583
586
|
},
|
|
584
|
-
m(n,
|
|
585
|
-
|
|
587
|
+
m(n, r) {
|
|
588
|
+
A(n, e, r);
|
|
586
589
|
},
|
|
587
|
-
p(n,
|
|
588
|
-
|
|
589
|
-
8 && !
|
|
590
|
-
n[3] + "road.svg") && a(e, "src", t),
|
|
590
|
+
p(n, r) {
|
|
591
|
+
r & /*iconsBaseUrl*/
|
|
592
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
593
|
+
n[3] + "road.svg") && a(e, "src", t), r & /*placeType*/
|
|
591
594
|
64 && a(
|
|
592
595
|
e,
|
|
593
596
|
"alt",
|
|
@@ -596,15 +599,15 @@ function Ai(i) {
|
|
|
596
599
|
);
|
|
597
600
|
},
|
|
598
601
|
d(n) {
|
|
599
|
-
n &&
|
|
602
|
+
n && O(e);
|
|
600
603
|
}
|
|
601
604
|
};
|
|
602
605
|
}
|
|
603
|
-
function
|
|
606
|
+
function Vi(i) {
|
|
604
607
|
let e, t;
|
|
605
608
|
return {
|
|
606
609
|
c() {
|
|
607
|
-
e =
|
|
610
|
+
e = R("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
608
611
|
i[3] + "housenumber.svg") || a(e, "src", t), a(
|
|
609
612
|
e,
|
|
610
613
|
"alt",
|
|
@@ -612,13 +615,13 @@ function Bi(i) {
|
|
|
612
615
|
i[6]
|
|
613
616
|
), a(e, "class", "svelte-ltkwvy");
|
|
614
617
|
},
|
|
615
|
-
m(n,
|
|
616
|
-
|
|
618
|
+
m(n, r) {
|
|
619
|
+
A(n, e, r);
|
|
617
620
|
},
|
|
618
|
-
p(n,
|
|
619
|
-
|
|
620
|
-
8 && !
|
|
621
|
-
n[3] + "housenumber.svg") && a(e, "src", t),
|
|
621
|
+
p(n, r) {
|
|
622
|
+
r & /*iconsBaseUrl*/
|
|
623
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
624
|
+
n[3] + "housenumber.svg") && a(e, "src", t), r & /*placeType*/
|
|
622
625
|
64 && a(
|
|
623
626
|
e,
|
|
624
627
|
"alt",
|
|
@@ -627,15 +630,15 @@ function Bi(i) {
|
|
|
627
630
|
);
|
|
628
631
|
},
|
|
629
632
|
d(n) {
|
|
630
|
-
n &&
|
|
633
|
+
n && O(e);
|
|
631
634
|
}
|
|
632
635
|
};
|
|
633
636
|
}
|
|
634
|
-
function
|
|
635
|
-
let e, t, n,
|
|
637
|
+
function xi(i) {
|
|
638
|
+
let e, t, n, r;
|
|
636
639
|
return {
|
|
637
640
|
c() {
|
|
638
|
-
e =
|
|
641
|
+
e = R("img"), K(e.src, t = /*imageUrl*/
|
|
639
642
|
i[5]) || a(e, "src", t), a(
|
|
640
643
|
e,
|
|
641
644
|
"alt",
|
|
@@ -644,7 +647,7 @@ function Fi(i) {
|
|
|
644
647
|
), a(e, "class", "svelte-ltkwvy");
|
|
645
648
|
},
|
|
646
649
|
m(l, c) {
|
|
647
|
-
|
|
650
|
+
A(l, e, c), n || (r = V(
|
|
648
651
|
e,
|
|
649
652
|
"error",
|
|
650
653
|
/*error_handler*/
|
|
@@ -653,7 +656,7 @@ function Fi(i) {
|
|
|
653
656
|
},
|
|
654
657
|
p(l, c) {
|
|
655
658
|
c & /*imageUrl*/
|
|
656
|
-
32 && !
|
|
659
|
+
32 && !K(e.src, t = /*imageUrl*/
|
|
657
660
|
l[5]) && a(e, "src", t), c & /*category*/
|
|
658
661
|
16 && a(
|
|
659
662
|
e,
|
|
@@ -663,37 +666,37 @@ function Fi(i) {
|
|
|
663
666
|
);
|
|
664
667
|
},
|
|
665
668
|
d(l) {
|
|
666
|
-
l &&
|
|
669
|
+
l && O(e), n = !1, r();
|
|
667
670
|
}
|
|
668
671
|
};
|
|
669
672
|
}
|
|
670
|
-
function
|
|
673
|
+
function Nt(i) {
|
|
671
674
|
let e, t;
|
|
672
675
|
return {
|
|
673
676
|
c() {
|
|
674
|
-
e =
|
|
677
|
+
e = R("span"), t = me(
|
|
675
678
|
/*placeType*/
|
|
676
679
|
i[6]
|
|
677
680
|
), a(e, "class", "secondary svelte-ltkwvy");
|
|
678
681
|
},
|
|
679
|
-
m(n,
|
|
680
|
-
|
|
682
|
+
m(n, r) {
|
|
683
|
+
A(n, e, r), k(e, t);
|
|
681
684
|
},
|
|
682
|
-
p(n,
|
|
683
|
-
|
|
684
|
-
64 &&
|
|
685
|
+
p(n, r) {
|
|
686
|
+
r & /*placeType*/
|
|
687
|
+
64 && Re(
|
|
685
688
|
t,
|
|
686
689
|
/*placeType*/
|
|
687
690
|
n[6]
|
|
688
691
|
);
|
|
689
692
|
},
|
|
690
693
|
d(n) {
|
|
691
|
-
n &&
|
|
694
|
+
n && O(e);
|
|
692
695
|
}
|
|
693
696
|
};
|
|
694
697
|
}
|
|
695
|
-
function
|
|
696
|
-
let e, t, n,
|
|
698
|
+
function Ji(i) {
|
|
699
|
+
let e, t, n, r, l, c, o, d, u, f = (
|
|
697
700
|
/*isReverse*/
|
|
698
701
|
(i[7] ? (
|
|
699
702
|
/*feature*/
|
|
@@ -705,7 +708,7 @@ function zi(i) {
|
|
|
705
708
|
), h, v, _ = (
|
|
706
709
|
/*showPlaceType*/
|
|
707
710
|
i[2] === "always" || /*showPlaceType*/
|
|
708
|
-
i[2] && !/*feature*/
|
|
711
|
+
i[2] !== "never" && !/*feature*/
|
|
709
712
|
i[0].address && !/*feature*/
|
|
710
713
|
i[0].id.startsWith("road.") && !/*feature*/
|
|
711
714
|
i[0].id.startsWith("address.") && !/*feature*/
|
|
@@ -719,49 +722,49 @@ function zi(i) {
|
|
|
719
722
|
/*feature*/
|
|
720
723
|
i[0].place_name.replace(/[^,]*,?\s*/, "")
|
|
721
724
|
)) + ""
|
|
722
|
-
), E, C,
|
|
723
|
-
function p(m,
|
|
724
|
-
return
|
|
725
|
-
1 && (t = null),
|
|
726
|
-
1 && (n = null),
|
|
727
|
-
1 && (
|
|
725
|
+
), E, C, z;
|
|
726
|
+
function p(m, M) {
|
|
727
|
+
return M & /*feature*/
|
|
728
|
+
1 && (t = null), M & /*feature*/
|
|
729
|
+
1 && (n = null), M & /*feature*/
|
|
730
|
+
1 && (r = null), M & /*feature*/
|
|
728
731
|
1 && (l = null), /*imageUrl*/
|
|
729
|
-
m[5] ?
|
|
732
|
+
m[5] ? xi : (
|
|
730
733
|
/*feature*/
|
|
731
|
-
m[0].address ?
|
|
732
|
-
m[0].id.startsWith("road.")), t ?
|
|
733
|
-
m[0].id.startsWith("address.")), n ?
|
|
734
|
-
m[0].id.startsWith("postal_code.")),
|
|
735
|
-
m[0].id.startsWith("poi.")), l ?
|
|
734
|
+
m[0].address ? Vi : (t == null && (t = !!/*feature*/
|
|
735
|
+
m[0].id.startsWith("road.")), t ? Ki : (n == null && (n = !!/*feature*/
|
|
736
|
+
m[0].id.startsWith("address.")), n ? Qi : (r == null && (r = !!/*feature*/
|
|
737
|
+
m[0].id.startsWith("postal_code.")), r ? Gi : (l == null && (l = !!/*feature*/
|
|
738
|
+
m[0].id.startsWith("poi.")), l ? qi : (
|
|
736
739
|
/*isReverse*/
|
|
737
|
-
m[7] ?
|
|
740
|
+
m[7] ? Zi : Pi
|
|
738
741
|
)))))
|
|
739
742
|
);
|
|
740
743
|
}
|
|
741
|
-
let q = p(i, -1), b = q(i), g = _ &&
|
|
744
|
+
let q = p(i, -1), b = q(i), g = _ && Nt(i);
|
|
742
745
|
return {
|
|
743
746
|
c() {
|
|
744
|
-
e =
|
|
747
|
+
e = R("li"), b.c(), c = X(), o = R("span"), d = R("span"), u = R("span"), h = me(f), v = X(), g && g.c(), w = X(), W = R("span"), E = me(y), a(u, "class", "primary svelte-ltkwvy"), a(d, "class", "svelte-ltkwvy"), a(W, "class", "line2 svelte-ltkwvy"), a(o, "class", "texts svelte-ltkwvy"), a(e, "tabindex", "0"), a(
|
|
745
748
|
e,
|
|
746
749
|
"data-selected",
|
|
747
750
|
/*selected*/
|
|
748
751
|
i[1]
|
|
749
|
-
), a(e, "class", "svelte-ltkwvy"),
|
|
752
|
+
), a(e, "class", "svelte-ltkwvy"), fe(
|
|
750
753
|
e,
|
|
751
754
|
"selected",
|
|
752
755
|
/*selected*/
|
|
753
756
|
i[1]
|
|
754
757
|
);
|
|
755
758
|
},
|
|
756
|
-
m(m,
|
|
757
|
-
|
|
758
|
-
|
|
759
|
+
m(m, M) {
|
|
760
|
+
A(m, e, M), b.m(e, null), k(e, c), k(e, o), k(o, d), k(d, u), k(u, h), k(d, v), g && g.m(d, null), k(o, w), k(o, W), k(W, E), C || (z = [
|
|
761
|
+
V(
|
|
759
762
|
e,
|
|
760
763
|
"mouseenter",
|
|
761
764
|
/*mouseenter_handler*/
|
|
762
765
|
i[12]
|
|
763
766
|
),
|
|
764
|
-
|
|
767
|
+
V(
|
|
765
768
|
e,
|
|
766
769
|
"focus",
|
|
767
770
|
/*focus_handler*/
|
|
@@ -769,8 +772,8 @@ function zi(i) {
|
|
|
769
772
|
)
|
|
770
773
|
], C = !0);
|
|
771
774
|
},
|
|
772
|
-
p(m, [
|
|
773
|
-
q === (q = p(m,
|
|
775
|
+
p(m, [M]) {
|
|
776
|
+
q === (q = p(m, M)) && b ? b.p(m, M) : (b.d(1), b = q(m), b && (b.c(), b.m(e, c))), M & /*feature*/
|
|
774
777
|
1 && f !== (f = /*isReverse*/
|
|
775
778
|
(m[7] ? (
|
|
776
779
|
/*feature*/
|
|
@@ -778,59 +781,59 @@ function zi(i) {
|
|
|
778
781
|
) : (
|
|
779
782
|
/*feature*/
|
|
780
783
|
m[0].place_name.replace(/,.*/, "")
|
|
781
|
-
)) + "") &&
|
|
784
|
+
)) + "") && Re(h, f), M & /*showPlaceType, feature, imageUrl*/
|
|
782
785
|
37 && (_ = /*showPlaceType*/
|
|
783
786
|
m[2] === "always" || /*showPlaceType*/
|
|
784
|
-
m[2] && !/*feature*/
|
|
787
|
+
m[2] !== "never" && !/*feature*/
|
|
785
788
|
m[0].address && !/*feature*/
|
|
786
789
|
m[0].id.startsWith("road.") && !/*feature*/
|
|
787
790
|
m[0].id.startsWith("address.") && !/*feature*/
|
|
788
791
|
m[0].id.startsWith("postal_code.") && (!/*feature*/
|
|
789
792
|
m[0].id.startsWith("poi.") || !/*imageUrl*/
|
|
790
793
|
m[5]) && !/*isReverse*/
|
|
791
|
-
m[7]), _ ? g ? g.p(m,
|
|
794
|
+
m[7]), _ ? g ? g.p(m, M) : (g = Nt(m), g.c(), g.m(d, null)) : g && (g.d(1), g = null), M & /*feature*/
|
|
792
795
|
1 && y !== (y = /*isReverse*/
|
|
793
796
|
(m[7] ? "" : (
|
|
794
797
|
/*feature*/
|
|
795
798
|
m[0].place_name.replace(/[^,]*,?\s*/, "")
|
|
796
|
-
)) + "") &&
|
|
799
|
+
)) + "") && Re(E, y), M & /*selected*/
|
|
797
800
|
2 && a(
|
|
798
801
|
e,
|
|
799
802
|
"data-selected",
|
|
800
803
|
/*selected*/
|
|
801
804
|
m[1]
|
|
802
|
-
),
|
|
803
|
-
2 &&
|
|
805
|
+
), M & /*selected*/
|
|
806
|
+
2 && fe(
|
|
804
807
|
e,
|
|
805
808
|
"selected",
|
|
806
809
|
/*selected*/
|
|
807
810
|
m[1]
|
|
808
811
|
);
|
|
809
812
|
},
|
|
810
|
-
i:
|
|
811
|
-
o:
|
|
813
|
+
i: U,
|
|
814
|
+
o: U,
|
|
812
815
|
d(m) {
|
|
813
|
-
m &&
|
|
816
|
+
m && O(e), b.d(), g && g.d(), C = !1, ue(z);
|
|
814
817
|
}
|
|
815
818
|
};
|
|
816
819
|
}
|
|
817
|
-
function
|
|
818
|
-
var
|
|
819
|
-
let n,
|
|
820
|
-
const f = (
|
|
820
|
+
function Xi(i, e, t) {
|
|
821
|
+
var z;
|
|
822
|
+
let n, r, { feature: l } = e, { selected: c = !1 } = e, { showPlaceType: o } = e, { missingIconsCache: d } = e, { iconsBaseUrl: u } = e;
|
|
823
|
+
const f = (z = l.properties) == null ? void 0 : z.categories;
|
|
821
824
|
let h, v, _ = 0, w = l.place_type[0] === "reverse";
|
|
822
825
|
function W() {
|
|
823
826
|
v && d.add(v), t(10, _++, _);
|
|
824
827
|
}
|
|
825
828
|
function y(p) {
|
|
826
|
-
|
|
829
|
+
St.call(this, i, p);
|
|
827
830
|
}
|
|
828
831
|
function E(p) {
|
|
829
|
-
|
|
832
|
+
St.call(this, i, p);
|
|
830
833
|
}
|
|
831
834
|
const C = () => W();
|
|
832
835
|
return i.$$set = (p) => {
|
|
833
|
-
"feature" in p && t(0, l = p.feature), "selected" in p && t(1, c = p.selected), "showPlaceType" in p && t(2,
|
|
836
|
+
"feature" in p && t(0, l = p.feature), "selected" in p && t(1, c = p.selected), "showPlaceType" in p && t(2, o = p.showPlaceType), "missingIconsCache" in p && t(9, d = p.missingIconsCache), "iconsBaseUrl" in p && t(3, u = p.iconsBaseUrl);
|
|
834
837
|
}, i.$$.update = () => {
|
|
835
838
|
var p, q, b, g;
|
|
836
839
|
if (i.$$.dirty & /*loadIconAttempt, index, category, iconsBaseUrl, imageUrl, missingIconsCache*/
|
|
@@ -839,15 +842,15 @@ function Hi(i, e, t) {
|
|
|
839
842
|
t(11, n--, n), t(4, h = f == null ? void 0 : f[n]), t(5, v = h ? u + h.replace(/ /g, "_") + ".svg" : void 0);
|
|
840
843
|
while (n > -1 && (!v || d.has(v)));
|
|
841
844
|
i.$$.dirty & /*feature*/
|
|
842
|
-
1 && t(6,
|
|
845
|
+
1 && t(6, r = ((q = (p = l.properties) == null ? void 0 : p.categories) == null ? void 0 : q.join(", ")) ?? ((g = (b = l.properties) == null ? void 0 : b.place_type_name) == null ? void 0 : g[0]) ?? l.place_type[0]);
|
|
843
846
|
}, t(11, n = (f == null ? void 0 : f.length) ?? 0), [
|
|
844
847
|
l,
|
|
845
848
|
c,
|
|
846
|
-
|
|
849
|
+
o,
|
|
847
850
|
u,
|
|
848
851
|
h,
|
|
849
852
|
v,
|
|
850
|
-
|
|
853
|
+
r,
|
|
851
854
|
w,
|
|
852
855
|
W,
|
|
853
856
|
d,
|
|
@@ -858,9 +861,9 @@ function Hi(i, e, t) {
|
|
|
858
861
|
C
|
|
859
862
|
];
|
|
860
863
|
}
|
|
861
|
-
class
|
|
864
|
+
class Yi extends ye {
|
|
862
865
|
constructor(e) {
|
|
863
|
-
super(),
|
|
866
|
+
super(), _e(this, e, Xi, Ji, Le, {
|
|
864
867
|
feature: 0,
|
|
865
868
|
selected: 1,
|
|
866
869
|
showPlaceType: 2,
|
|
@@ -869,98 +872,98 @@ class ji extends _e {
|
|
|
869
872
|
});
|
|
870
873
|
}
|
|
871
874
|
}
|
|
872
|
-
function
|
|
875
|
+
function $i(i) {
|
|
873
876
|
let e;
|
|
874
877
|
return {
|
|
875
878
|
c() {
|
|
876
|
-
e =
|
|
879
|
+
e = R("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");
|
|
877
880
|
},
|
|
878
881
|
m(t, n) {
|
|
879
|
-
|
|
882
|
+
A(t, e, n);
|
|
880
883
|
},
|
|
881
|
-
p:
|
|
882
|
-
i:
|
|
883
|
-
o:
|
|
884
|
+
p: U,
|
|
885
|
+
i: U,
|
|
886
|
+
o: U,
|
|
884
887
|
d(t) {
|
|
885
|
-
t &&
|
|
888
|
+
t && O(e);
|
|
886
889
|
}
|
|
887
890
|
};
|
|
888
891
|
}
|
|
889
|
-
class
|
|
892
|
+
class en extends ye {
|
|
890
893
|
constructor(e) {
|
|
891
|
-
super(),
|
|
894
|
+
super(), _e(this, e, null, $i, Le, {});
|
|
892
895
|
}
|
|
893
896
|
}
|
|
894
|
-
function
|
|
897
|
+
function tn(i) {
|
|
895
898
|
let e, t;
|
|
896
899
|
return {
|
|
897
900
|
c() {
|
|
898
901
|
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");
|
|
899
902
|
},
|
|
900
|
-
m(n,
|
|
901
|
-
|
|
903
|
+
m(n, r) {
|
|
904
|
+
A(n, e, r), k(e, t);
|
|
902
905
|
},
|
|
903
|
-
p:
|
|
904
|
-
i:
|
|
905
|
-
o:
|
|
906
|
+
p: U,
|
|
907
|
+
i: U,
|
|
908
|
+
o: U,
|
|
906
909
|
d(n) {
|
|
907
|
-
n &&
|
|
910
|
+
n && O(e);
|
|
908
911
|
}
|
|
909
912
|
};
|
|
910
913
|
}
|
|
911
|
-
class
|
|
914
|
+
class nn extends ye {
|
|
912
915
|
constructor(e) {
|
|
913
|
-
super(),
|
|
916
|
+
super(), _e(this, e, null, tn, Le, {});
|
|
914
917
|
}
|
|
915
918
|
}
|
|
916
|
-
function
|
|
919
|
+
function rn(i) {
|
|
917
920
|
let e, t, n;
|
|
918
921
|
return {
|
|
919
922
|
c() {
|
|
920
923
|
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");
|
|
921
924
|
},
|
|
922
|
-
m(
|
|
923
|
-
|
|
925
|
+
m(r, l) {
|
|
926
|
+
A(r, e, l), k(e, t), k(e, n);
|
|
924
927
|
},
|
|
925
|
-
p:
|
|
926
|
-
i:
|
|
927
|
-
o:
|
|
928
|
-
d(
|
|
929
|
-
|
|
928
|
+
p: U,
|
|
929
|
+
i: U,
|
|
930
|
+
o: U,
|
|
931
|
+
d(r) {
|
|
932
|
+
r && O(e);
|
|
930
933
|
}
|
|
931
934
|
};
|
|
932
935
|
}
|
|
933
|
-
class
|
|
936
|
+
class on extends ye {
|
|
934
937
|
constructor(e) {
|
|
935
|
-
super(),
|
|
938
|
+
super(), _e(this, e, null, rn, Le, {});
|
|
936
939
|
}
|
|
937
940
|
}
|
|
938
|
-
function
|
|
939
|
-
const n = e[1],
|
|
940
|
-
return i === n && t ? i : ((i -
|
|
941
|
+
function sn(i, e, t) {
|
|
942
|
+
const n = e[1], r = e[0], l = n - r;
|
|
943
|
+
return i === n && t ? i : ((i - r) % l + l) % l + r;
|
|
941
944
|
}
|
|
942
|
-
function
|
|
945
|
+
function kt(i) {
|
|
943
946
|
const e = [...i];
|
|
944
947
|
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;
|
|
945
948
|
}
|
|
946
|
-
let
|
|
947
|
-
async function
|
|
949
|
+
let Ce;
|
|
950
|
+
async function an(i, e, t) {
|
|
948
951
|
const n = i == null ? void 0 : i.getCenterAndZoom();
|
|
949
|
-
for (const
|
|
950
|
-
if (!(n && (
|
|
951
|
-
if (
|
|
952
|
-
return
|
|
953
|
-
e: if (
|
|
954
|
-
if (
|
|
955
|
-
if (!
|
|
952
|
+
for (const r of e ?? [])
|
|
953
|
+
if (!(n && (r.minZoom != null && r.minZoom > n[0] || r.maxZoom != null && r.maxZoom < n[0]))) {
|
|
954
|
+
if (r.type === "fixed")
|
|
955
|
+
return r.coordinates.join(",");
|
|
956
|
+
e: if (r.type === "client-geolocation") {
|
|
957
|
+
if (Ce && r.cachedLocationExpiry && Ce.time + r.cachedLocationExpiry > Date.now()) {
|
|
958
|
+
if (!Ce.coords)
|
|
956
959
|
break e;
|
|
957
|
-
return
|
|
960
|
+
return Ce.coords;
|
|
958
961
|
}
|
|
959
962
|
let l;
|
|
960
963
|
try {
|
|
961
|
-
return l = await new Promise((c,
|
|
964
|
+
return l = await new Promise((c, o) => {
|
|
962
965
|
t.signal.addEventListener("abort", () => {
|
|
963
|
-
|
|
966
|
+
o(Error("aborted"));
|
|
964
967
|
}), navigator.geolocation.getCurrentPosition(
|
|
965
968
|
(d) => {
|
|
966
969
|
c(
|
|
@@ -968,14 +971,14 @@ async function Ki(i, e, t) {
|
|
|
968
971
|
);
|
|
969
972
|
},
|
|
970
973
|
(d) => {
|
|
971
|
-
|
|
974
|
+
o(d);
|
|
972
975
|
},
|
|
973
|
-
|
|
976
|
+
r
|
|
974
977
|
);
|
|
975
978
|
}), l;
|
|
976
979
|
} catch {
|
|
977
980
|
} finally {
|
|
978
|
-
|
|
981
|
+
r.cachedLocationExpiry && (Ce = {
|
|
979
982
|
time: Date.now(),
|
|
980
983
|
coords: l
|
|
981
984
|
});
|
|
@@ -983,73 +986,73 @@ async function Ki(i, e, t) {
|
|
|
983
986
|
if (t.signal.aborted)
|
|
984
987
|
return;
|
|
985
988
|
}
|
|
986
|
-
if (
|
|
989
|
+
if (r.type === "server-geolocation")
|
|
987
990
|
return "ip";
|
|
988
|
-
if (n &&
|
|
991
|
+
if (n && r.type === "map-center")
|
|
989
992
|
return n[1].toFixed(6) + "," + n[2].toFixed(6);
|
|
990
993
|
}
|
|
991
994
|
}
|
|
992
|
-
const
|
|
993
|
-
function
|
|
995
|
+
const ln = /^(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, Mt = /^([+-]?[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,})$/, Ct = /^(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, Wt = /^(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, zt = /^(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, Rt = /^(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;
|
|
996
|
+
function un(i) {
|
|
994
997
|
if (!["DMS", "DM", "DD"].includes(i))
|
|
995
998
|
throw new Error("invalid format specified");
|
|
996
999
|
if (this.decimalCoordinates && this.decimalCoordinates.trim()) {
|
|
997
|
-
const e = this.decimalCoordinates.split(",").map((_) => Number(_.trim())), t = Number(e[0]), n = Number(e[1]),
|
|
1000
|
+
const e = this.decimalCoordinates.split(",").map((_) => Number(_.trim())), t = Number(e[0]), n = Number(e[1]), r = Math.abs(t), l = Math.abs(n), c = t > 0 ? "N" : "S", o = n > 0 ? "E" : "W";
|
|
998
1001
|
let d;
|
|
999
|
-
i == "DD" && (d = `${
|
|
1000
|
-
const u = Math.floor(
|
|
1002
|
+
i == "DD" && (d = `${r}° ${c}, ${l}° ${o}`);
|
|
1003
|
+
const u = Math.floor(r), f = Math.floor(l), h = (r - u) * 60, v = (l - f) * 60;
|
|
1001
1004
|
if (i == "DM") {
|
|
1002
|
-
let _ =
|
|
1003
|
-
_.endsWith(".000") && w.endsWith(".000") && (_ = _.replace(/\.000$/, ""), w = w.replace(/\.000$/, "")), d = `${u}° ${_}' ${c}, ${f}° ${w}' ${
|
|
1005
|
+
let _ = Dt(h, 3).toFixed(3).padStart(6, "0"), w = Dt(v, 3).toFixed(3).padStart(6, "0");
|
|
1006
|
+
_.endsWith(".000") && w.endsWith(".000") && (_ = _.replace(/\.000$/, ""), w = w.replace(/\.000$/, "")), d = `${u}° ${_}' ${c}, ${f}° ${w}' ${o}`;
|
|
1004
1007
|
}
|
|
1005
1008
|
if (i == "DMS") {
|
|
1006
1009
|
const _ = Math.floor(h), w = Math.floor(v);
|
|
1007
1010
|
let W = ((h - _) * 60).toFixed(1).padStart(4, "0"), y = ((v - w) * 60).toFixed(1).padStart(4, "0");
|
|
1008
1011
|
const E = _.toString().padStart(2, "0"), C = w.toString().padStart(2, "0");
|
|
1009
|
-
W.endsWith(".0") && y.endsWith(".0") && (W = W.replace(/\.0$/, ""), y = y.replace(/\.0$/, "")), d = `${u}° ${E}' ${W}" ${c}, ${f}° ${C}' ${y}" ${
|
|
1012
|
+
W.endsWith(".0") && y.endsWith(".0") && (W = W.replace(/\.0$/, ""), y = y.replace(/\.0$/, "")), d = `${u}° ${E}' ${W}" ${c}, ${f}° ${C}' ${y}" ${o}`;
|
|
1010
1013
|
}
|
|
1011
1014
|
return d;
|
|
1012
1015
|
} else
|
|
1013
1016
|
throw new Error("no decimal coordinates to convert");
|
|
1014
1017
|
}
|
|
1015
|
-
function
|
|
1018
|
+
function Dt(i, e) {
|
|
1016
1019
|
const t = Math.pow(10, e);
|
|
1017
1020
|
return Math.round((i + Number.EPSILON) * t) / t;
|
|
1018
1021
|
}
|
|
1019
|
-
function
|
|
1022
|
+
function ct(i, e) {
|
|
1020
1023
|
e || (e = 5), i = i.replace(/\s+/g, " ").trim();
|
|
1021
|
-
let t = null, n = null,
|
|
1022
|
-
if (
|
|
1024
|
+
let t = null, n = null, r = "", l = "", c = null, o = [], d = !1;
|
|
1025
|
+
if (ln.test(i))
|
|
1023
1026
|
throw new Error("invalid coordinate value");
|
|
1024
|
-
if (
|
|
1025
|
-
if (
|
|
1026
|
-
t = Math.abs(
|
|
1027
|
+
if (Mt.test(i))
|
|
1028
|
+
if (o = Mt.exec(i), d = We(o), d)
|
|
1029
|
+
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), c = "DM";
|
|
1027
1030
|
else
|
|
1028
1031
|
throw new Error("invalid coordinate format");
|
|
1029
|
-
else if (
|
|
1030
|
-
if (
|
|
1031
|
-
if (t =
|
|
1032
|
+
else if (Ct.test(i))
|
|
1033
|
+
if (o = Ct.exec(i), d = We(o), d) {
|
|
1034
|
+
if (t = o[2], n = o[6], t.includes(",") && (t = t.replace(",", ".")), n.includes(",") && (n = n.replace(",", ".")), c = "DD", Number(Math.round(t)) == Number(t))
|
|
1032
1035
|
throw new Error("integer only coordinate provided");
|
|
1033
1036
|
if (Number(Math.round(n)) == Number(n))
|
|
1034
1037
|
throw new Error("integer only coordinate provided");
|
|
1035
|
-
|
|
1038
|
+
o[1] ? (r = o[1], l = o[5]) : o[4] && (r = o[4], l = o[8]);
|
|
1036
1039
|
} else
|
|
1037
1040
|
throw new Error("invalid decimal coordinate format");
|
|
1038
|
-
else if (
|
|
1039
|
-
if (
|
|
1040
|
-
t = Math.abs(parseInt(
|
|
1041
|
+
else if (Wt.test(i))
|
|
1042
|
+
if (o = Wt.exec(i), d = We(o), d)
|
|
1043
|
+
t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60, c = "DM"), o[6] && (t += o[6].replace(",", ".") / 3600, c = "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], l = o[8]) : o[7] && (r = o[7], l = o[14]);
|
|
1041
1044
|
else
|
|
1042
1045
|
throw new Error("invalid DMS coordinates format");
|
|
1043
|
-
else if (
|
|
1044
|
-
if (
|
|
1045
|
-
t = Math.abs(parseInt(
|
|
1046
|
+
else if (zt.test(i))
|
|
1047
|
+
if (o = zt.exec(i), d = We(o), d)
|
|
1048
|
+
t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60, c = "DM"), o[6] && (t += o[6] / 3600, c = "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], l = o[9]) : o[8] && (r = o[8], l = o[16]);
|
|
1046
1049
|
else
|
|
1047
1050
|
throw new Error("invalid DMS coordinates format");
|
|
1048
|
-
else if (
|
|
1049
|
-
if (
|
|
1051
|
+
else if (Rt.test(i)) {
|
|
1052
|
+
if (o = Rt.exec(i), d = We(o), o.filter((u) => u).length <= 5)
|
|
1050
1053
|
throw new Error("invalid coordinates format");
|
|
1051
1054
|
if (d)
|
|
1052
|
-
t = Math.abs(parseInt(
|
|
1055
|
+
t = Math.abs(parseInt(o[2])), o[4] && (t += o[4].replace(",", ".") / 60, c = "DM"), o[6] && (t += o[6].replace(",", ".") / 3600, c = "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], l = o[9]) : o[8] && (r = o[8], l = o[16]);
|
|
1053
1056
|
else
|
|
1054
1057
|
throw new Error("invalid coordinates format");
|
|
1055
1058
|
}
|
|
@@ -1058,14 +1061,14 @@ function ot(i, e) {
|
|
|
1058
1061
|
throw new Error("invalid longitude value");
|
|
1059
1062
|
if (Math.abs(t) >= 90)
|
|
1060
1063
|
throw new Error("invalid latitude value");
|
|
1061
|
-
if (
|
|
1064
|
+
if (r && !l || !r && l)
|
|
1062
1065
|
throw new Error("invalid coordinates value");
|
|
1063
|
-
if (
|
|
1066
|
+
if (r && r == l)
|
|
1064
1067
|
throw new Error("invalid coordinates format");
|
|
1065
1068
|
t.toString().includes(",") && (t = t.replace(",", ".")), n.toString().includes(",") && (n = n.replace(",", "."));
|
|
1066
1069
|
let u = /S|SOUTH/i;
|
|
1067
|
-
u.test(
|
|
1068
|
-
const f =
|
|
1070
|
+
u.test(r) && t > 0 && (t = -1 * t), u = /W|WEST/i, u.test(l) && n > 0 && (n = -1 * n);
|
|
1071
|
+
const f = o[0].trim();
|
|
1069
1072
|
let h, v;
|
|
1070
1073
|
const _ = /[,/;\u0020]/g, w = f.match(_);
|
|
1071
1074
|
if (w == null) {
|
|
@@ -1078,9 +1081,9 @@ function ot(i, e) {
|
|
|
1078
1081
|
if (E == 0)
|
|
1079
1082
|
C = f.indexOf(w[0]), h = f.substring(0, C).trim(), v = f.substring(C + 1).trim();
|
|
1080
1083
|
else {
|
|
1081
|
-
let
|
|
1082
|
-
for (;
|
|
1083
|
-
C = f.indexOf(w[
|
|
1084
|
+
let z = 0, p = 0;
|
|
1085
|
+
for (; z <= E; )
|
|
1086
|
+
C = f.indexOf(w[z], p), p = C + 1, z++;
|
|
1084
1087
|
h = f.substring(0, C).trim(), v = f.substring(C + 1).trim();
|
|
1085
1088
|
}
|
|
1086
1089
|
}
|
|
@@ -1100,23 +1103,23 @@ function ot(i, e) {
|
|
|
1100
1103
|
decimalLongitude: n,
|
|
1101
1104
|
decimalCoordinates: `${t},${n}`,
|
|
1102
1105
|
originalFormat: c,
|
|
1103
|
-
closeEnough:
|
|
1104
|
-
toCoordinateFormat:
|
|
1106
|
+
closeEnough: cn,
|
|
1107
|
+
toCoordinateFormat: un
|
|
1105
1108
|
});
|
|
1106
1109
|
} else
|
|
1107
1110
|
throw new Error("coordinates pattern match failed");
|
|
1108
1111
|
}
|
|
1109
|
-
function
|
|
1112
|
+
function We(i) {
|
|
1110
1113
|
if (!isNaN(i[0]))
|
|
1111
1114
|
return !1;
|
|
1112
1115
|
const e = [...i];
|
|
1113
1116
|
if (e.shift(), e.length % 2 > 0)
|
|
1114
1117
|
return !1;
|
|
1115
|
-
const t = /^[-+]?\d+([\.,]\d+)?$/, n = /[eastsouthnorthwest]+/i,
|
|
1116
|
-
for (let l = 0; l <
|
|
1117
|
-
const c = e[l],
|
|
1118
|
-
if (!(c == null &&
|
|
1119
|
-
if (c == null ||
|
|
1118
|
+
const t = /^[-+]?\d+([\.,]\d+)?$/, n = /[eastsouthnorthwest]+/i, r = e.length / 2;
|
|
1119
|
+
for (let l = 0; l < r; l++) {
|
|
1120
|
+
const c = e[l], o = e[l + r], d = t.test(c) && t.test(o), u = n.test(c) && n.test(o), f = c == o;
|
|
1121
|
+
if (!(c == null && o == null)) {
|
|
1122
|
+
if (c == null || o == null)
|
|
1120
1123
|
return !1;
|
|
1121
1124
|
if (d || u || f)
|
|
1122
1125
|
continue;
|
|
@@ -1125,28 +1128,28 @@ function ke(i) {
|
|
|
1125
1128
|
}
|
|
1126
1129
|
return !0;
|
|
1127
1130
|
}
|
|
1128
|
-
function
|
|
1131
|
+
function Ot(i, e) {
|
|
1129
1132
|
const t = Math.abs(i - e);
|
|
1130
1133
|
return Number(t.toFixed(6)) <= 1e-5;
|
|
1131
1134
|
}
|
|
1132
|
-
function
|
|
1135
|
+
function cn(i) {
|
|
1133
1136
|
if (!i)
|
|
1134
1137
|
throw new Error("coords must be provided");
|
|
1135
1138
|
if (i.includes(",")) {
|
|
1136
1139
|
const e = i.split(",");
|
|
1137
1140
|
if (Number(e[0]) == NaN || Number(e[1]) == NaN)
|
|
1138
1141
|
throw new Error("coords are not valid decimals");
|
|
1139
|
-
return
|
|
1142
|
+
return Ot(this.decimalLatitude, Number(e[0])) && Ot(this.decimalLongitude, e[1]);
|
|
1140
1143
|
} else
|
|
1141
1144
|
throw new Error("coords being tested must be separated by a comma");
|
|
1142
1145
|
}
|
|
1143
|
-
const
|
|
1146
|
+
const dn = Object.freeze({
|
|
1144
1147
|
DMS: "DMS",
|
|
1145
1148
|
DM: "DM",
|
|
1146
1149
|
DD: "DD"
|
|
1147
1150
|
});
|
|
1148
|
-
|
|
1149
|
-
const
|
|
1151
|
+
ct.to = dn;
|
|
1152
|
+
const fn = [
|
|
1150
1153
|
{
|
|
1151
1154
|
verbatimCoordinates: "40.123, -74.123",
|
|
1152
1155
|
verbatimLatitude: "40.123",
|
|
@@ -1287,10 +1290,10 @@ const en = [
|
|
|
1287
1290
|
verbatimLatitude: "40 7 22.8",
|
|
1288
1291
|
verbatimLongitude: "-74 7 22.8"
|
|
1289
1292
|
}
|
|
1290
|
-
],
|
|
1293
|
+
], mn = {
|
|
1291
1294
|
decimalLatitude: 40.123,
|
|
1292
1295
|
decimalLongitude: -74.123
|
|
1293
|
-
},
|
|
1296
|
+
}, gn = [
|
|
1294
1297
|
{
|
|
1295
1298
|
verbatimCoordinates: `50°4'17.698"south, 14°24'2.826"east`,
|
|
1296
1299
|
verbatimLatitude: `50°4'17.698"south`,
|
|
@@ -1375,7 +1378,7 @@ const en = [
|
|
|
1375
1378
|
decimalLatitude: -18.4,
|
|
1376
1379
|
decimalLongitude: 22.75
|
|
1377
1380
|
}
|
|
1378
|
-
],
|
|
1381
|
+
], hn = [
|
|
1379
1382
|
{
|
|
1380
1383
|
verbatimCoordinates: "10.432342S 10.6345345E",
|
|
1381
1384
|
verbatimLatitude: "10.432342S",
|
|
@@ -1510,30 +1513,30 @@ const en = [
|
|
|
1510
1513
|
decimalLongitude: 18.33453
|
|
1511
1514
|
}
|
|
1512
1515
|
];
|
|
1513
|
-
function
|
|
1516
|
+
function bn() {
|
|
1514
1517
|
const i = [];
|
|
1515
|
-
return
|
|
1516
|
-
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...
|
|
1517
|
-
}), [...i, ...
|
|
1518
|
-
}
|
|
1519
|
-
const
|
|
1520
|
-
|
|
1521
|
-
const
|
|
1522
|
-
function
|
|
1518
|
+
return fn.forEach((e) => {
|
|
1519
|
+
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...mn });
|
|
1520
|
+
}), [...i, ...gn, ...hn];
|
|
1521
|
+
}
|
|
1522
|
+
const vn = bn();
|
|
1523
|
+
ct.formats = vn.map((i) => i.verbatimCoordinates);
|
|
1524
|
+
const Ln = ct;
|
|
1525
|
+
function It(i, e, t) {
|
|
1523
1526
|
const n = i.slice();
|
|
1524
|
-
return n[
|
|
1527
|
+
return n[86] = e[t], n[88] = t, n;
|
|
1525
1528
|
}
|
|
1526
|
-
function
|
|
1529
|
+
function Ut(i) {
|
|
1527
1530
|
let e, t;
|
|
1528
|
-
return e = new
|
|
1531
|
+
return e = new en({}), {
|
|
1529
1532
|
c() {
|
|
1530
|
-
|
|
1533
|
+
ge(e.$$.fragment);
|
|
1531
1534
|
},
|
|
1532
|
-
m(n,
|
|
1533
|
-
ae(e, n,
|
|
1535
|
+
m(n, r) {
|
|
1536
|
+
ae(e, n, r), t = !0;
|
|
1534
1537
|
},
|
|
1535
1538
|
i(n) {
|
|
1536
|
-
t || (
|
|
1539
|
+
t || (H(e.$$.fragment, n), t = !0);
|
|
1537
1540
|
},
|
|
1538
1541
|
o(n) {
|
|
1539
1542
|
Q(e.$$.fragment, n), t = !1;
|
|
@@ -1543,39 +1546,39 @@ function Wt(i) {
|
|
|
1543
1546
|
}
|
|
1544
1547
|
};
|
|
1545
1548
|
}
|
|
1546
|
-
function
|
|
1547
|
-
let e, t, n,
|
|
1548
|
-
return t = new
|
|
1549
|
+
function At(i) {
|
|
1550
|
+
let e, t, n, r, l;
|
|
1551
|
+
return t = new nn({}), {
|
|
1549
1552
|
c() {
|
|
1550
|
-
e =
|
|
1553
|
+
e = R("button"), ge(t.$$.fragment), a(e, "type", "button"), a(
|
|
1551
1554
|
e,
|
|
1552
1555
|
"title",
|
|
1553
1556
|
/*reverseButtonTitle*/
|
|
1554
1557
|
i[9]
|
|
1555
|
-
), a(e, "class", "svelte-
|
|
1558
|
+
), a(e, "class", "svelte-bz0zu3"), fe(
|
|
1556
1559
|
e,
|
|
1557
1560
|
"active",
|
|
1558
1561
|
/*reverseActive*/
|
|
1559
1562
|
i[0]
|
|
1560
1563
|
);
|
|
1561
1564
|
},
|
|
1562
|
-
m(c,
|
|
1563
|
-
|
|
1565
|
+
m(c, o) {
|
|
1566
|
+
A(c, e, o), ae(t, e, null), n = !0, r || (l = V(
|
|
1564
1567
|
e,
|
|
1565
1568
|
"click",
|
|
1566
1569
|
/*click_handler_2*/
|
|
1567
|
-
i[
|
|
1568
|
-
),
|
|
1570
|
+
i[70]
|
|
1571
|
+
), r = !0);
|
|
1569
1572
|
},
|
|
1570
|
-
p(c,
|
|
1571
|
-
(!n ||
|
|
1573
|
+
p(c, o) {
|
|
1574
|
+
(!n || o[0] & /*reverseButtonTitle*/
|
|
1572
1575
|
512) && a(
|
|
1573
1576
|
e,
|
|
1574
1577
|
"title",
|
|
1575
1578
|
/*reverseButtonTitle*/
|
|
1576
1579
|
c[9]
|
|
1577
|
-
), (!n ||
|
|
1578
|
-
1) &&
|
|
1580
|
+
), (!n || o[0] & /*reverseActive*/
|
|
1581
|
+
1) && fe(
|
|
1579
1582
|
e,
|
|
1580
1583
|
"active",
|
|
1581
1584
|
/*reverseActive*/
|
|
@@ -1583,193 +1586,193 @@ function Ot(i) {
|
|
|
1583
1586
|
);
|
|
1584
1587
|
},
|
|
1585
1588
|
i(c) {
|
|
1586
|
-
n || (
|
|
1589
|
+
n || (H(t.$$.fragment, c), n = !0);
|
|
1587
1590
|
},
|
|
1588
1591
|
o(c) {
|
|
1589
1592
|
Q(t.$$.fragment, c), n = !1;
|
|
1590
1593
|
},
|
|
1591
1594
|
d(c) {
|
|
1592
|
-
c &&
|
|
1595
|
+
c && O(e), le(t), r = !1, l();
|
|
1593
1596
|
}
|
|
1594
1597
|
};
|
|
1595
1598
|
}
|
|
1596
|
-
function
|
|
1597
|
-
let e, t = [], n = /* @__PURE__ */ new Map(),
|
|
1599
|
+
function _n(i) {
|
|
1600
|
+
let e, t = [], n = /* @__PURE__ */ new Map(), r, l, c, o = Tt(
|
|
1598
1601
|
/*listFeatures*/
|
|
1599
1602
|
i[14]
|
|
1600
1603
|
);
|
|
1601
1604
|
const d = (u) => (
|
|
1602
1605
|
/*feature*/
|
|
1603
|
-
u[
|
|
1604
|
-
(u[
|
|
1605
|
-
u[
|
|
1606
|
+
u[86].id + /*feature*/
|
|
1607
|
+
(u[86].address ? "," + /*feature*/
|
|
1608
|
+
u[86].address : "")
|
|
1606
1609
|
);
|
|
1607
|
-
for (let u = 0; u <
|
|
1608
|
-
let f =
|
|
1609
|
-
n.set(h, t[u] =
|
|
1610
|
+
for (let u = 0; u < o.length; u += 1) {
|
|
1611
|
+
let f = It(i, o, u), h = d(f);
|
|
1612
|
+
n.set(h, t[u] = Bt(h, f));
|
|
1610
1613
|
}
|
|
1611
1614
|
return {
|
|
1612
1615
|
c() {
|
|
1613
|
-
e =
|
|
1616
|
+
e = R("ul");
|
|
1614
1617
|
for (let u = 0; u < t.length; u += 1)
|
|
1615
1618
|
t[u].c();
|
|
1616
|
-
a(e, "class", "svelte-
|
|
1619
|
+
a(e, "class", "options svelte-bz0zu3");
|
|
1617
1620
|
},
|
|
1618
1621
|
m(u, f) {
|
|
1619
|
-
|
|
1622
|
+
A(u, e, f);
|
|
1620
1623
|
for (let h = 0; h < t.length; h += 1)
|
|
1621
1624
|
t[h] && t[h].m(e, null);
|
|
1622
|
-
|
|
1623
|
-
|
|
1625
|
+
r = !0, l || (c = [
|
|
1626
|
+
V(
|
|
1624
1627
|
e,
|
|
1625
1628
|
"mouseleave",
|
|
1626
1629
|
/*mouseleave_handler*/
|
|
1627
|
-
i[
|
|
1630
|
+
i[74]
|
|
1628
1631
|
),
|
|
1629
|
-
|
|
1632
|
+
V(
|
|
1630
1633
|
e,
|
|
1631
1634
|
"blur",
|
|
1632
1635
|
/*blur_handler_1*/
|
|
1633
|
-
i[
|
|
1636
|
+
i[75]
|
|
1634
1637
|
)
|
|
1635
1638
|
], l = !0);
|
|
1636
1639
|
},
|
|
1637
1640
|
p(u, f) {
|
|
1638
1641
|
f[0] & /*listFeatures, showPlaceType, selectedItemIndex, missingIconsCache, iconsBaseUrl, pick*/
|
|
1639
|
-
17880064 && (
|
|
1642
|
+
17880064 && (o = Tt(
|
|
1640
1643
|
/*listFeatures*/
|
|
1641
1644
|
u[14]
|
|
1642
|
-
),
|
|
1645
|
+
), Ze(), t = Ai(t, f, d, 1, u, o, n, e, Ui, Bt, null, It), qe());
|
|
1643
1646
|
},
|
|
1644
1647
|
i(u) {
|
|
1645
|
-
if (!
|
|
1646
|
-
for (let f = 0; f <
|
|
1647
|
-
|
|
1648
|
-
|
|
1648
|
+
if (!r) {
|
|
1649
|
+
for (let f = 0; f < o.length; f += 1)
|
|
1650
|
+
H(t[f]);
|
|
1651
|
+
r = !0;
|
|
1649
1652
|
}
|
|
1650
1653
|
},
|
|
1651
1654
|
o(u) {
|
|
1652
1655
|
for (let f = 0; f < t.length; f += 1)
|
|
1653
1656
|
Q(t[f]);
|
|
1654
|
-
|
|
1657
|
+
r = !1;
|
|
1655
1658
|
},
|
|
1656
1659
|
d(u) {
|
|
1657
|
-
u &&
|
|
1660
|
+
u && O(e);
|
|
1658
1661
|
for (let f = 0; f < t.length; f += 1)
|
|
1659
1662
|
t[f].d();
|
|
1660
1663
|
l = !1, ue(c);
|
|
1661
1664
|
}
|
|
1662
1665
|
};
|
|
1663
1666
|
}
|
|
1664
|
-
function
|
|
1665
|
-
let e, t, n,
|
|
1666
|
-
return t = new
|
|
1667
|
+
function yn(i) {
|
|
1668
|
+
let e, t, n, r, l, c;
|
|
1669
|
+
return t = new Qt({}), {
|
|
1667
1670
|
c() {
|
|
1668
|
-
e =
|
|
1671
|
+
e = R("div"), ge(t.$$.fragment), n = X(), r = R("div"), l = me(
|
|
1669
1672
|
/*noResultsMessage*/
|
|
1670
1673
|
i[7]
|
|
1671
|
-
), a(
|
|
1674
|
+
), a(r, "class", "svelte-bz0zu3"), a(e, "class", "no-results svelte-bz0zu3");
|
|
1672
1675
|
},
|
|
1673
|
-
m(
|
|
1674
|
-
|
|
1676
|
+
m(o, d) {
|
|
1677
|
+
A(o, e, d), ae(t, e, null), k(e, n), k(e, r), k(r, l), c = !0;
|
|
1675
1678
|
},
|
|
1676
|
-
p(
|
|
1679
|
+
p(o, d) {
|
|
1677
1680
|
(!c || d[0] & /*noResultsMessage*/
|
|
1678
|
-
128) &&
|
|
1681
|
+
128) && Re(
|
|
1679
1682
|
l,
|
|
1680
1683
|
/*noResultsMessage*/
|
|
1681
|
-
|
|
1684
|
+
o[7]
|
|
1682
1685
|
);
|
|
1683
1686
|
},
|
|
1684
|
-
i(
|
|
1685
|
-
c || (
|
|
1687
|
+
i(o) {
|
|
1688
|
+
c || (H(t.$$.fragment, o), c = !0);
|
|
1686
1689
|
},
|
|
1687
|
-
o(
|
|
1688
|
-
Q(t.$$.fragment,
|
|
1690
|
+
o(o) {
|
|
1691
|
+
Q(t.$$.fragment, o), c = !1;
|
|
1689
1692
|
},
|
|
1690
|
-
d(
|
|
1691
|
-
|
|
1693
|
+
d(o) {
|
|
1694
|
+
o && O(e), le(t);
|
|
1692
1695
|
}
|
|
1693
1696
|
};
|
|
1694
1697
|
}
|
|
1695
|
-
function
|
|
1698
|
+
function wn(i) {
|
|
1696
1699
|
let e = "", t;
|
|
1697
1700
|
return {
|
|
1698
1701
|
c() {
|
|
1699
|
-
t =
|
|
1702
|
+
t = me(e);
|
|
1700
1703
|
},
|
|
1701
|
-
m(n,
|
|
1702
|
-
|
|
1704
|
+
m(n, r) {
|
|
1705
|
+
A(n, t, r);
|
|
1703
1706
|
},
|
|
1704
|
-
p:
|
|
1705
|
-
i:
|
|
1706
|
-
o:
|
|
1707
|
+
p: U,
|
|
1708
|
+
i: U,
|
|
1709
|
+
o: U,
|
|
1707
1710
|
d(n) {
|
|
1708
|
-
n &&
|
|
1711
|
+
n && O(t);
|
|
1709
1712
|
}
|
|
1710
1713
|
};
|
|
1711
1714
|
}
|
|
1712
|
-
function
|
|
1713
|
-
let e, t, n,
|
|
1714
|
-
return t = new
|
|
1715
|
+
function En(i) {
|
|
1716
|
+
let e, t, n, r, l, c, o, d, u, f, h;
|
|
1717
|
+
return t = new Qt({}), d = new Gt({}), {
|
|
1715
1718
|
c() {
|
|
1716
|
-
e =
|
|
1719
|
+
e = R("div"), ge(t.$$.fragment), n = X(), r = R("div"), l = me(
|
|
1717
1720
|
/*errorMessage*/
|
|
1718
1721
|
i[6]
|
|
1719
|
-
), c =
|
|
1722
|
+
), c = X(), o = R("button"), ge(d.$$.fragment), a(r, "class", "svelte-bz0zu3"), a(o, "class", "svelte-bz0zu3"), a(e, "class", "error svelte-bz0zu3");
|
|
1720
1723
|
},
|
|
1721
1724
|
m(v, _) {
|
|
1722
|
-
|
|
1723
|
-
|
|
1725
|
+
A(v, e, _), ae(t, e, null), k(e, n), k(e, r), k(r, l), k(e, c), k(e, o), ae(d, o, null), u = !0, f || (h = V(
|
|
1726
|
+
o,
|
|
1724
1727
|
"click",
|
|
1725
1728
|
/*click_handler_3*/
|
|
1726
|
-
i[
|
|
1729
|
+
i[71]
|
|
1727
1730
|
), f = !0);
|
|
1728
1731
|
},
|
|
1729
1732
|
p(v, _) {
|
|
1730
1733
|
(!u || _[0] & /*errorMessage*/
|
|
1731
|
-
64) &&
|
|
1734
|
+
64) && Re(
|
|
1732
1735
|
l,
|
|
1733
1736
|
/*errorMessage*/
|
|
1734
1737
|
v[6]
|
|
1735
1738
|
);
|
|
1736
1739
|
},
|
|
1737
1740
|
i(v) {
|
|
1738
|
-
u || (
|
|
1741
|
+
u || (H(t.$$.fragment, v), H(d.$$.fragment, v), u = !0);
|
|
1739
1742
|
},
|
|
1740
1743
|
o(v) {
|
|
1741
1744
|
Q(t.$$.fragment, v), Q(d.$$.fragment, v), u = !1;
|
|
1742
1745
|
},
|
|
1743
1746
|
d(v) {
|
|
1744
|
-
v &&
|
|
1747
|
+
v && O(e), le(t), le(d), f = !1, h();
|
|
1745
1748
|
}
|
|
1746
1749
|
};
|
|
1747
1750
|
}
|
|
1748
|
-
function
|
|
1749
|
-
let t, n,
|
|
1751
|
+
function Bt(i, e) {
|
|
1752
|
+
let t, n, r;
|
|
1750
1753
|
function l() {
|
|
1751
1754
|
return (
|
|
1752
1755
|
/*mouseenter_handler*/
|
|
1753
|
-
e[
|
|
1756
|
+
e[72](
|
|
1754
1757
|
/*i*/
|
|
1755
|
-
e[
|
|
1758
|
+
e[88]
|
|
1756
1759
|
)
|
|
1757
1760
|
);
|
|
1758
1761
|
}
|
|
1759
1762
|
function c() {
|
|
1760
1763
|
return (
|
|
1761
1764
|
/*focus_handler_1*/
|
|
1762
|
-
e[
|
|
1765
|
+
e[73](
|
|
1763
1766
|
/*feature*/
|
|
1764
|
-
e[
|
|
1767
|
+
e[86]
|
|
1765
1768
|
)
|
|
1766
1769
|
);
|
|
1767
1770
|
}
|
|
1768
|
-
return n = new
|
|
1771
|
+
return n = new Yi({
|
|
1769
1772
|
props: {
|
|
1770
1773
|
feature: (
|
|
1771
1774
|
/*feature*/
|
|
1772
|
-
e[
|
|
1775
|
+
e[86]
|
|
1773
1776
|
),
|
|
1774
1777
|
showPlaceType: (
|
|
1775
1778
|
/*showPlaceType*/
|
|
@@ -1778,7 +1781,7 @@ function Dt(i, e) {
|
|
|
1778
1781
|
selected: (
|
|
1779
1782
|
/*selectedItemIndex*/
|
|
1780
1783
|
e[15] === /*i*/
|
|
1781
|
-
e[
|
|
1784
|
+
e[88]
|
|
1782
1785
|
),
|
|
1783
1786
|
missingIconsCache: (
|
|
1784
1787
|
/*missingIconsCache*/
|
|
@@ -1793,99 +1796,99 @@ function Dt(i, e) {
|
|
|
1793
1796
|
key: i,
|
|
1794
1797
|
first: null,
|
|
1795
1798
|
c() {
|
|
1796
|
-
t =
|
|
1799
|
+
t = Ni(), ge(n.$$.fragment), this.first = t;
|
|
1797
1800
|
},
|
|
1798
|
-
m(
|
|
1799
|
-
|
|
1801
|
+
m(o, d) {
|
|
1802
|
+
A(o, t, d), ae(n, o, d), r = !0;
|
|
1800
1803
|
},
|
|
1801
|
-
p(
|
|
1802
|
-
e =
|
|
1804
|
+
p(o, d) {
|
|
1805
|
+
e = o;
|
|
1803
1806
|
const u = {};
|
|
1804
1807
|
d[0] & /*listFeatures*/
|
|
1805
1808
|
16384 && (u.feature = /*feature*/
|
|
1806
|
-
e[
|
|
1809
|
+
e[86]), d[0] & /*showPlaceType*/
|
|
1807
1810
|
1024 && (u.showPlaceType = /*showPlaceType*/
|
|
1808
1811
|
e[10]), d[0] & /*selectedItemIndex, listFeatures*/
|
|
1809
1812
|
49152 && (u.selected = /*selectedItemIndex*/
|
|
1810
1813
|
e[15] === /*i*/
|
|
1811
|
-
e[
|
|
1814
|
+
e[88]), d[0] & /*iconsBaseUrl*/
|
|
1812
1815
|
4096 && (u.iconsBaseUrl = /*iconsBaseUrl*/
|
|
1813
1816
|
e[12]), n.$set(u);
|
|
1814
1817
|
},
|
|
1815
|
-
i(
|
|
1816
|
-
|
|
1818
|
+
i(o) {
|
|
1819
|
+
r || (H(n.$$.fragment, o), r = !0);
|
|
1817
1820
|
},
|
|
1818
|
-
o(
|
|
1819
|
-
Q(n.$$.fragment,
|
|
1821
|
+
o(o) {
|
|
1822
|
+
Q(n.$$.fragment, o), r = !1;
|
|
1820
1823
|
},
|
|
1821
|
-
d(
|
|
1822
|
-
|
|
1824
|
+
d(o) {
|
|
1825
|
+
o && O(t), le(n, o);
|
|
1823
1826
|
}
|
|
1824
1827
|
};
|
|
1825
1828
|
}
|
|
1826
|
-
function
|
|
1827
|
-
let e, t, n,
|
|
1828
|
-
l = new
|
|
1829
|
+
function Sn(i) {
|
|
1830
|
+
let e, t, n, r, l, c, o, d, u, f, h, v, _, w, W, y, E, C, z, p, q, b = !1;
|
|
1831
|
+
l = new on({}), h = new Gt({});
|
|
1829
1832
|
let g = (
|
|
1830
1833
|
/*abortController*/
|
|
1831
|
-
i[19] &&
|
|
1834
|
+
i[19] && Ut()
|
|
1832
1835
|
), m = (
|
|
1833
1836
|
/*enableReverse*/
|
|
1834
|
-
i[5] === !0 &&
|
|
1837
|
+
i[5] === !0 && At(i)
|
|
1835
1838
|
);
|
|
1836
|
-
const
|
|
1839
|
+
const M = (
|
|
1837
1840
|
/*#slots*/
|
|
1838
|
-
i[
|
|
1839
|
-
),
|
|
1840
|
-
|
|
1841
|
+
i[62].default
|
|
1842
|
+
), j = Ei(
|
|
1843
|
+
M,
|
|
1841
1844
|
i,
|
|
1842
1845
|
/*$$scope*/
|
|
1843
|
-
i[
|
|
1846
|
+
i[61],
|
|
1844
1847
|
null
|
|
1845
|
-
),
|
|
1846
|
-
function
|
|
1847
|
-
var
|
|
1848
|
+
), Y = [En, wn, yn, _n], te = [];
|
|
1849
|
+
function B(L, F) {
|
|
1850
|
+
var ie, we;
|
|
1848
1851
|
return (
|
|
1849
1852
|
/*error*/
|
|
1850
1853
|
L[18] ? 0 : (
|
|
1851
1854
|
/*focusedDelayed*/
|
|
1852
1855
|
L[16] ? (
|
|
1853
1856
|
/*listFeatures*/
|
|
1854
|
-
((
|
|
1857
|
+
((ie = L[14]) == null ? void 0 : ie.length) === 0 ? 2 : (
|
|
1855
1858
|
/*focusedDelayed*/
|
|
1856
1859
|
L[16] && /*listFeatures*/
|
|
1857
|
-
((
|
|
1860
|
+
((we = L[14]) != null && we.length) ? 3 : -1
|
|
1858
1861
|
)
|
|
1859
1862
|
) : 1
|
|
1860
1863
|
)
|
|
1861
1864
|
);
|
|
1862
1865
|
}
|
|
1863
|
-
return ~(y =
|
|
1866
|
+
return ~(y = B(i)) && (E = te[y] = Y[y](i)), {
|
|
1864
1867
|
c() {
|
|
1865
|
-
e =
|
|
1866
|
-
|
|
1868
|
+
e = X(), t = R("form"), n = R("div"), r = R("button"), ge(l.$$.fragment), c = X(), o = R("input"), d = X(), u = R("div"), f = R("button"), ge(h.$$.fragment), v = X(), g && g.c(), _ = X(), m && m.c(), w = X(), j && j.c(), W = X(), E && E.c(), a(r, "class", "search-button svelte-bz0zu3"), a(r, "type", "button"), a(
|
|
1869
|
+
o,
|
|
1867
1870
|
"placeholder",
|
|
1868
1871
|
/*placeholder*/
|
|
1869
1872
|
i[8]
|
|
1870
1873
|
), a(
|
|
1871
|
-
|
|
1874
|
+
o,
|
|
1872
1875
|
"aria-label",
|
|
1873
1876
|
/*placeholder*/
|
|
1874
1877
|
i[8]
|
|
1875
|
-
), a(
|
|
1878
|
+
), a(o, "class", "svelte-bz0zu3"), a(f, "type", "button"), a(
|
|
1876
1879
|
f,
|
|
1877
1880
|
"title",
|
|
1878
1881
|
/*clearButtonTitle*/
|
|
1879
1882
|
i[3]
|
|
1880
|
-
), a(f, "class", "svelte-
|
|
1883
|
+
), a(f, "class", "svelte-bz0zu3"), a(u, "class", "clear-button-container svelte-bz0zu3"), fe(
|
|
1881
1884
|
u,
|
|
1882
1885
|
"displayable",
|
|
1883
1886
|
/*searchValue*/
|
|
1884
1887
|
i[1] !== ""
|
|
1885
|
-
), a(n, "class", "input-group svelte-
|
|
1888
|
+
), a(n, "class", "input-group svelte-bz0zu3"), a(t, "tabindex", "0"), a(t, "class", C = wt(
|
|
1886
1889
|
/*className*/
|
|
1887
1890
|
i[2]
|
|
1888
|
-
) + " svelte-
|
|
1891
|
+
) + " svelte-bz0zu3"), fe(
|
|
1889
1892
|
t,
|
|
1890
1893
|
"can-collapse",
|
|
1891
1894
|
/*collapsed*/
|
|
@@ -1894,79 +1897,79 @@ function fn(i) {
|
|
|
1894
1897
|
);
|
|
1895
1898
|
},
|
|
1896
1899
|
m(L, F) {
|
|
1897
|
-
|
|
1898
|
-
|
|
1900
|
+
A(L, e, F), A(L, t, F), k(t, n), k(n, r), ae(l, r, null), k(n, c), k(n, o), i[64](o), Et(
|
|
1901
|
+
o,
|
|
1899
1902
|
/*searchValue*/
|
|
1900
1903
|
i[1]
|
|
1901
|
-
),
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
+
), k(n, d), k(n, u), k(u, f), ae(h, f, null), k(u, v), g && g.m(u, null), k(n, _), m && m.m(n, null), k(n, w), j && j.m(n, null), k(t, W), ~y && te[y].m(t, null), z = !0, p || (q = [
|
|
1905
|
+
V(
|
|
1906
|
+
r,
|
|
1904
1907
|
"click",
|
|
1905
1908
|
/*click_handler*/
|
|
1906
|
-
i[
|
|
1909
|
+
i[63]
|
|
1907
1910
|
),
|
|
1908
|
-
|
|
1909
|
-
|
|
1911
|
+
V(
|
|
1912
|
+
o,
|
|
1910
1913
|
"input",
|
|
1911
1914
|
/*input_1_input_handler*/
|
|
1912
|
-
i[
|
|
1915
|
+
i[65]
|
|
1913
1916
|
),
|
|
1914
|
-
|
|
1915
|
-
|
|
1917
|
+
V(
|
|
1918
|
+
o,
|
|
1916
1919
|
"focus",
|
|
1917
1920
|
/*focus_handler*/
|
|
1918
|
-
i[
|
|
1921
|
+
i[66]
|
|
1919
1922
|
),
|
|
1920
|
-
|
|
1921
|
-
|
|
1923
|
+
V(
|
|
1924
|
+
o,
|
|
1922
1925
|
"blur",
|
|
1923
1926
|
/*blur_handler*/
|
|
1924
|
-
i[
|
|
1927
|
+
i[67]
|
|
1925
1928
|
),
|
|
1926
|
-
|
|
1927
|
-
|
|
1929
|
+
V(
|
|
1930
|
+
o,
|
|
1928
1931
|
"keydown",
|
|
1929
1932
|
/*handleKeyDown*/
|
|
1930
1933
|
i[22]
|
|
1931
1934
|
),
|
|
1932
|
-
|
|
1933
|
-
|
|
1935
|
+
V(
|
|
1936
|
+
o,
|
|
1934
1937
|
"input",
|
|
1935
1938
|
/*input_handler*/
|
|
1936
|
-
i[
|
|
1939
|
+
i[68]
|
|
1937
1940
|
),
|
|
1938
|
-
|
|
1941
|
+
V(
|
|
1939
1942
|
f,
|
|
1940
1943
|
"click",
|
|
1941
1944
|
/*click_handler_1*/
|
|
1942
|
-
i[
|
|
1945
|
+
i[69]
|
|
1943
1946
|
),
|
|
1944
|
-
|
|
1945
|
-
/*
|
|
1947
|
+
V(t, "submit", ki(
|
|
1948
|
+
/*handleSubmit*/
|
|
1946
1949
|
i[21]
|
|
1947
1950
|
))
|
|
1948
1951
|
], p = !0);
|
|
1949
1952
|
},
|
|
1950
1953
|
p(L, F) {
|
|
1951
|
-
(!
|
|
1954
|
+
(!z || F[0] & /*placeholder*/
|
|
1952
1955
|
256) && a(
|
|
1953
|
-
|
|
1956
|
+
o,
|
|
1954
1957
|
"placeholder",
|
|
1955
1958
|
/*placeholder*/
|
|
1956
1959
|
L[8]
|
|
1957
|
-
), (!
|
|
1960
|
+
), (!z || F[0] & /*placeholder*/
|
|
1958
1961
|
256) && a(
|
|
1959
|
-
|
|
1962
|
+
o,
|
|
1960
1963
|
"aria-label",
|
|
1961
1964
|
/*placeholder*/
|
|
1962
1965
|
L[8]
|
|
1963
1966
|
), F[0] & /*searchValue*/
|
|
1964
|
-
2 &&
|
|
1965
|
-
L[1] &&
|
|
1966
|
-
|
|
1967
|
+
2 && o.value !== /*searchValue*/
|
|
1968
|
+
L[1] && Et(
|
|
1969
|
+
o,
|
|
1967
1970
|
/*searchValue*/
|
|
1968
1971
|
L[1]
|
|
1969
|
-
), (!
|
|
1972
|
+
), (!z || F[0] & /*clearButtonTitle*/
|
|
1970
1973
|
8) && a(
|
|
1971
1974
|
f,
|
|
1972
1975
|
"title",
|
|
@@ -1974,46 +1977,46 @@ function fn(i) {
|
|
|
1974
1977
|
L[3]
|
|
1975
1978
|
), /*abortController*/
|
|
1976
1979
|
L[19] ? g ? F[0] & /*abortController*/
|
|
1977
|
-
524288 &&
|
|
1980
|
+
524288 && H(g, 1) : (g = Ut(), g.c(), H(g, 1), g.m(u, null)) : g && (Ze(), Q(g, 1, 1, () => {
|
|
1978
1981
|
g = null;
|
|
1979
|
-
}),
|
|
1980
|
-
2) &&
|
|
1982
|
+
}), qe()), (!z || F[0] & /*searchValue*/
|
|
1983
|
+
2) && fe(
|
|
1981
1984
|
u,
|
|
1982
1985
|
"displayable",
|
|
1983
1986
|
/*searchValue*/
|
|
1984
1987
|
L[1] !== ""
|
|
1985
1988
|
), /*enableReverse*/
|
|
1986
1989
|
L[5] === !0 ? m ? (m.p(L, F), F[0] & /*enableReverse*/
|
|
1987
|
-
32 &&
|
|
1990
|
+
32 && H(m, 1)) : (m = At(L), m.c(), H(m, 1), m.m(n, w)) : m && (Ze(), Q(m, 1, 1, () => {
|
|
1988
1991
|
m = null;
|
|
1989
|
-
}),
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1992
|
+
}), qe()), j && j.p && (!z || F[1] & /*$$scope*/
|
|
1993
|
+
1073741824) && pi(
|
|
1994
|
+
j,
|
|
1995
|
+
M,
|
|
1993
1996
|
L,
|
|
1994
1997
|
/*$$scope*/
|
|
1995
|
-
L[
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
+
L[61],
|
|
1999
|
+
z ? Si(
|
|
2000
|
+
M,
|
|
1998
2001
|
/*$$scope*/
|
|
1999
|
-
L[
|
|
2002
|
+
L[61],
|
|
2000
2003
|
F,
|
|
2001
2004
|
null
|
|
2002
|
-
) :
|
|
2005
|
+
) : Ti(
|
|
2003
2006
|
/*$$scope*/
|
|
2004
|
-
L[
|
|
2007
|
+
L[61]
|
|
2005
2008
|
),
|
|
2006
2009
|
null
|
|
2007
2010
|
);
|
|
2008
|
-
let
|
|
2009
|
-
y =
|
|
2010
|
-
|
|
2011
|
-
}),
|
|
2012
|
-
4 && C !== (C =
|
|
2011
|
+
let ie = y;
|
|
2012
|
+
y = B(L), y === ie ? ~y && te[y].p(L, F) : (E && (Ze(), Q(te[ie], 1, 1, () => {
|
|
2013
|
+
te[ie] = null;
|
|
2014
|
+
}), qe()), ~y ? (E = te[y], E ? E.p(L, F) : (E = te[y] = Y[y](L), E.c()), H(E, 1), E.m(t, null)) : E = null), (!z || F[0] & /*className*/
|
|
2015
|
+
4 && C !== (C = wt(
|
|
2013
2016
|
/*className*/
|
|
2014
2017
|
L[2]
|
|
2015
|
-
) + " svelte-
|
|
2016
|
-
22) &&
|
|
2018
|
+
) + " svelte-bz0zu3")) && a(t, "class", C), (!z || F[0] & /*className, collapsed, searchValue*/
|
|
2019
|
+
22) && fe(
|
|
2017
2020
|
t,
|
|
2018
2021
|
"can-collapse",
|
|
2019
2022
|
/*collapsed*/
|
|
@@ -2022,18 +2025,18 @@ function fn(i) {
|
|
|
2022
2025
|
);
|
|
2023
2026
|
},
|
|
2024
2027
|
i(L) {
|
|
2025
|
-
|
|
2028
|
+
z || (H(b), H(l.$$.fragment, L), H(h.$$.fragment, L), H(g), H(m), H(j, L), H(E), z = !0);
|
|
2026
2029
|
},
|
|
2027
2030
|
o(L) {
|
|
2028
|
-
Q(b), Q(l.$$.fragment, L), Q(h.$$.fragment, L), Q(g), Q(m), Q(
|
|
2031
|
+
Q(b), Q(l.$$.fragment, L), Q(h.$$.fragment, L), Q(g), Q(m), Q(j, L), Q(E), z = !1;
|
|
2029
2032
|
},
|
|
2030
2033
|
d(L) {
|
|
2031
|
-
L && (
|
|
2034
|
+
L && (O(e), O(t)), le(l), i[64](null), le(h), g && g.d(), m && m.d(), j && j.d(L), ~y && te[y].d(), p = !1, ue(q);
|
|
2032
2035
|
}
|
|
2033
2036
|
};
|
|
2034
2037
|
}
|
|
2035
|
-
function
|
|
2036
|
-
let n, { $$slots:
|
|
2038
|
+
function pn(i, e, t) {
|
|
2039
|
+
let n, { $$slots: r = {}, $$scope: l } = e;
|
|
2037
2040
|
const c = {
|
|
2038
2041
|
continental_marine: 4,
|
|
2039
2042
|
country: 4,
|
|
@@ -2058,249 +2061,261 @@ function mn(i, e, t) {
|
|
|
2058
2061
|
"poi.restaurant": 18,
|
|
2059
2062
|
"poi.aerodrome": 13
|
|
2060
2063
|
};
|
|
2061
|
-
let { class:
|
|
2064
|
+
let { class: o = void 0 } = e, { apiKey: d } = e, { bbox: u = void 0 } = e, { clearButtonTitle: f = "clear" } = e, { clearOnBlur: h = !1 } = e, { collapsed: v = !1 } = e, { country: _ = void 0 } = e, { debounceSearch: w = 200 } = e, { enableReverse: W = !1 } = e, { errorMessage: y = "Something went wrong…" } = e, { filter: E = () => !0 } = e, { flyTo: C = !0 } = e, { fuzzyMatch: z = !0 } = e, { language: p = void 0 } = e, { limit: q = void 0 } = e, { mapController: b = void 0 } = e, { minLength: g = 2 } = e, { noResultsMessage: m = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = e, { placeholder: M = "Search" } = e, { proximity: j = [{ type: "server-geolocation" }] } = e, { reverseActive: Y = W === "always" } = e, { reverseButtonTitle: te = "toggle reverse geocoding" } = e, { searchValue: B = "" } = e, { pickedResultStyle: L = "full-geometry" } = e, { showPlaceType: F = "if-needed" } = e, { showResultsWhileTyping: ie = !0 } = e, { autocompleteTimeout: we = void 0 } = e, { selectFirst: Ee = !0 } = e, { flyToSelected: Qe = !1 } = e, { markerOnSelected: Oe = !0 } = e, { types: he = void 0 } = e, { exhaustiveReverseGeocoding: Ke = !1 } = e, { excludeTypes: Ie = !1 } = e, { zoom: Ue = c } = e, { apiUrl: Ve = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: xe = {} } = e, { iconsBaseUrl: ft = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.0-rc.2/icons/" } = e, { adjustUrlQuery: Je = () => {
|
|
2062
2065
|
} } = e;
|
|
2063
|
-
function
|
|
2064
|
-
|
|
2066
|
+
function Vt() {
|
|
2067
|
+
ne.focus();
|
|
2065
2068
|
}
|
|
2066
|
-
function
|
|
2067
|
-
|
|
2069
|
+
function xt() {
|
|
2070
|
+
ne.blur();
|
|
2068
2071
|
}
|
|
2069
|
-
function
|
|
2070
|
-
t(1,
|
|
2071
|
-
|
|
2072
|
+
function mt(s, I = !0, Z = !1) {
|
|
2073
|
+
t(1, B = s), I ? (t(15, D = -1), ht()) : ($e(!Z, Z), setTimeout(() => {
|
|
2074
|
+
ne.focus(), ne.select();
|
|
2072
2075
|
}));
|
|
2073
2076
|
}
|
|
2074
|
-
function
|
|
2075
|
-
t(14,
|
|
2077
|
+
function Jt() {
|
|
2078
|
+
t(14, N = void 0), t(57, S = void 0), t(15, D = -1);
|
|
2076
2079
|
}
|
|
2077
|
-
function
|
|
2080
|
+
function Xt() {
|
|
2078
2081
|
t(56, P = []), t(57, S = void 0);
|
|
2079
2082
|
}
|
|
2080
|
-
let
|
|
2081
|
-
const
|
|
2082
|
-
|
|
2083
|
+
let Se = !1, N, P, S, gt = "", ne, D = -1, re, Ae = [], be, ce, $, Be, Xe;
|
|
2084
|
+
const Yt = /* @__PURE__ */ new Set(), de = zi();
|
|
2085
|
+
function $t() {
|
|
2086
|
+
return !!$;
|
|
2087
|
+
}
|
|
2088
|
+
Wi(() => {
|
|
2083
2089
|
b && (b.setEventHandler(void 0), b.indicateReverse(!1), b.setSelectedMarker(-1), b.setMarkers(void 0, void 0));
|
|
2084
2090
|
});
|
|
2085
|
-
function
|
|
2086
|
-
if (
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2091
|
+
function ht(s) {
|
|
2092
|
+
if (ce && (window.clearTimeout(ce), ce = void 0), $) {
|
|
2093
|
+
window.clearTimeout($), t(58, $ = void 0), ke(B, { exact: !0 });
|
|
2094
|
+
return;
|
|
2095
|
+
}
|
|
2096
|
+
if (D > -1 && N)
|
|
2097
|
+
t(57, S = N[D]), t(1, B = S.place_type[0] === "reverse" ? S.place_name : S.place_name.replace(/,.*/, "")), t(18, re = void 0), t(56, P = void 0), t(15, D = -1);
|
|
2098
|
+
else if (B) {
|
|
2099
|
+
const I = s || !Ye(B);
|
|
2100
|
+
ke(B, { exact: !0 }).then(() => {
|
|
2101
|
+
t(56, P = N), t(57, S = void 0), I && ei();
|
|
2102
|
+
}).catch((Z) => t(18, re = Z));
|
|
2093
2103
|
}
|
|
2094
2104
|
}
|
|
2095
|
-
function
|
|
2105
|
+
function Ye(s) {
|
|
2096
2106
|
try {
|
|
2097
|
-
return
|
|
2107
|
+
return Ln(s, 6);
|
|
2098
2108
|
} catch {
|
|
2099
2109
|
return !1;
|
|
2100
2110
|
}
|
|
2101
2111
|
}
|
|
2102
|
-
async function
|
|
2103
|
-
t(18,
|
|
2104
|
-
const
|
|
2105
|
-
t(19,
|
|
2112
|
+
async function ke(s, { byId: I = !1, exact: Z = !1, appendSpace: ee = !1 } = {}) {
|
|
2113
|
+
t(18, re = void 0), be == null || be.abort();
|
|
2114
|
+
const x = new AbortController();
|
|
2115
|
+
t(19, be = x);
|
|
2106
2116
|
try {
|
|
2107
|
-
const
|
|
2108
|
-
if (p !== void 0 &&
|
|
2109
|
-
const
|
|
2110
|
-
|
|
2117
|
+
const T = Ye(s), G = new URLSearchParams();
|
|
2118
|
+
if (p !== void 0 && G.set("language", Array.isArray(p) ? p.join(",") : p ?? ""), he && G.set("types", he.join(",")), Ie && G.set("excludeTypes", String(Ie)), u && G.set("bbox", u.map((He) => He.toFixed(6)).join(",")), _ && G.set("country", Array.isArray(_) ? _.join(",") : _), !I && !T) {
|
|
2119
|
+
const He = await an(b, j, x);
|
|
2120
|
+
He && G.set("proximity", He), (Z || !ie) && G.set("autocomplete", "false"), G.set("fuzzyMatch", String(z));
|
|
2111
2121
|
}
|
|
2112
|
-
q !== void 0 && (
|
|
2113
|
-
const
|
|
2114
|
-
if (
|
|
2115
|
-
I ? (t(14,
|
|
2122
|
+
q !== void 0 && (Ke || !T || (he == null ? void 0 : he.length) === 1) && G.set("limit", String(q)), G.set("key", d), Je(G);
|
|
2123
|
+
const Fe = Ve + "/" + encodeURIComponent(T ? T.decimalLongitude + "," + T.decimalLatitude : s + (ee ? " " : "")) + ".json?" + G.toString();
|
|
2124
|
+
if (Fe === gt) {
|
|
2125
|
+
I ? (t(14, N = void 0), t(57, S = Ae[0])) : t(14, N = Ae);
|
|
2116
2126
|
return;
|
|
2117
2127
|
}
|
|
2118
|
-
|
|
2119
|
-
const
|
|
2120
|
-
if (!
|
|
2121
|
-
throw new Error(await
|
|
2122
|
-
const
|
|
2123
|
-
|
|
2128
|
+
gt = Fe;
|
|
2129
|
+
const tt = await fetch(Fe, { signal: x.signal, ...xe });
|
|
2130
|
+
if (!tt.ok)
|
|
2131
|
+
throw new Error(await tt.text());
|
|
2132
|
+
const it = await tt.json();
|
|
2133
|
+
de("response", { url: Fe, featureCollection: it }), I ? (t(14, N = void 0), t(57, S = it.features[0]), Ae = [S]) : (t(14, N = it.features.filter(E)), T && N.unshift({
|
|
2124
2134
|
type: "Feature",
|
|
2125
2135
|
properties: {},
|
|
2126
|
-
id: "reverse_" +
|
|
2127
|
-
text:
|
|
2128
|
-
place_name:
|
|
2136
|
+
id: "reverse_" + T.decimalLongitude + "_" + T.decimalLatitude,
|
|
2137
|
+
text: T.decimalLatitude + ", " + T.decimalLongitude,
|
|
2138
|
+
place_name: T.decimalLatitude + ", " + T.decimalLongitude,
|
|
2129
2139
|
place_type: ["reverse"],
|
|
2130
|
-
center: [
|
|
2140
|
+
center: [T.decimalLongitude, T.decimalLatitude],
|
|
2131
2141
|
bbox: [
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2142
|
+
T.decimalLongitude,
|
|
2143
|
+
T.decimalLatitude,
|
|
2144
|
+
T.decimalLongitude,
|
|
2145
|
+
T.decimalLatitude
|
|
2136
2146
|
],
|
|
2137
2147
|
geometry: {
|
|
2138
2148
|
type: "Point",
|
|
2139
|
-
coordinates: [
|
|
2149
|
+
coordinates: [T.decimalLongitude, T.decimalLatitude]
|
|
2140
2150
|
}
|
|
2141
|
-
}),
|
|
2142
|
-
} catch (
|
|
2143
|
-
if (
|
|
2151
|
+
}), Ae = N, T && ne.focus());
|
|
2152
|
+
} catch (T) {
|
|
2153
|
+
if (T && typeof T == "object" && "name" in T && T.name === "AbortError")
|
|
2144
2154
|
return;
|
|
2145
|
-
throw
|
|
2155
|
+
throw T;
|
|
2146
2156
|
} finally {
|
|
2147
|
-
|
|
2157
|
+
x === be && t(19, be = void 0);
|
|
2148
2158
|
}
|
|
2149
2159
|
}
|
|
2150
|
-
function
|
|
2151
|
-
var
|
|
2160
|
+
function ei() {
|
|
2161
|
+
var ee;
|
|
2152
2162
|
if (!(P != null && P.length) || !C)
|
|
2153
2163
|
return;
|
|
2154
|
-
const s = [180, 90, -180, -90], I = !P.some((
|
|
2155
|
-
let
|
|
2156
|
-
for (const
|
|
2157
|
-
const
|
|
2158
|
-
if (
|
|
2159
|
-
for (const
|
|
2160
|
-
s[
|
|
2164
|
+
const s = [180, 90, -180, -90], I = !P.some((x) => !x.matching_text);
|
|
2165
|
+
let Z;
|
|
2166
|
+
for (const x of P) {
|
|
2167
|
+
const T = Me(x);
|
|
2168
|
+
if (Z = Z === void 0 ? T : T === void 0 ? Z : Math.max(Z, T), I || !x.matching_text)
|
|
2169
|
+
for (const G of [0, 1, 2, 3])
|
|
2170
|
+
s[G] = Math[G < 2 ? "min" : "max"](s[G], ((ee = x.bbox) == null ? void 0 : ee[G]) ?? x.center[G % 2]);
|
|
2161
2171
|
}
|
|
2162
|
-
b && P.length > 0 && (S && s[0] === s[2] && s[1] === s[3] ? b.flyTo(S.center, Me(S)) : b.fitBounds(
|
|
2172
|
+
b && P.length > 0 && (S && s[0] === s[2] && s[1] === s[3] ? b.flyTo(S.center, Me(S)) : b.fitBounds(kt(s), 50, Z));
|
|
2163
2173
|
}
|
|
2164
2174
|
function Me(s) {
|
|
2165
|
-
var
|
|
2175
|
+
var Z;
|
|
2166
2176
|
if (!s.bbox || s.bbox[0] !== s.bbox[2] && s.bbox[1] !== s.bbox[3])
|
|
2167
2177
|
return;
|
|
2168
|
-
if (typeof ye == "number")
|
|
2169
|
-
return s.id.startsWith("poi.") || s.id.startsWith("address.") ? Ue : ye;
|
|
2170
2178
|
const I = s.id.replace(/\..*/, "");
|
|
2171
|
-
return (Array.isArray((
|
|
2172
|
-
(
|
|
2173
|
-
const
|
|
2174
|
-
return
|
|
2179
|
+
return (Array.isArray((Z = s.properties) == null ? void 0 : Z.categories) ? s.properties.categories.reduce(
|
|
2180
|
+
(ee, x) => {
|
|
2181
|
+
const T = Ue[I + "." + x];
|
|
2182
|
+
return ee === void 0 ? T : T === void 0 ? ee : Math.max(ee, T);
|
|
2175
2183
|
},
|
|
2176
2184
|
void 0
|
|
2177
|
-
) : void 0) ??
|
|
2185
|
+
) : void 0) ?? Ue[I];
|
|
2178
2186
|
}
|
|
2179
|
-
function
|
|
2180
|
-
t(0,
|
|
2187
|
+
function ti(s) {
|
|
2188
|
+
t(0, Y = W === "always"), t(14, N = void 0), t(57, S = void 0), t(15, D = -1), mt(s[1].toFixed(6) + ", " + sn(s[0], [-180, 180], !0).toFixed(6), !1, !0);
|
|
2181
2189
|
}
|
|
2182
|
-
function
|
|
2183
|
-
if (!
|
|
2190
|
+
function ii(s) {
|
|
2191
|
+
if (!N)
|
|
2184
2192
|
return;
|
|
2185
2193
|
let I = s.key === "ArrowDown" ? 1 : s.key === "ArrowUp" ? -1 : 0;
|
|
2186
|
-
I && (
|
|
2194
|
+
I && (D === (Ee ? 0 : -1) && I === -1 && t(15, D = N.length), t(15, D += I), D >= N.length && t(15, D = -1), D < 0 && Ee && t(15, D = 0), s.preventDefault());
|
|
2187
2195
|
}
|
|
2188
|
-
function
|
|
2189
|
-
if (t(18,
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2196
|
+
function $e(s = !0, I = !1) {
|
|
2197
|
+
if (t(18, re = void 0), ce && (window.clearTimeout(ce), ce = void 0), $ && (window.clearTimeout($), t(58, $ = void 0)), !ie && !I || B.length < g) {
|
|
2198
|
+
t(14, N = void 0);
|
|
2199
|
+
return;
|
|
2200
|
+
}
|
|
2201
|
+
const Z = B;
|
|
2202
|
+
ce = window.setTimeout(
|
|
2203
|
+
() => {
|
|
2204
|
+
ce = void 0, ke(Z).catch((ee) => t(18, re = ee));
|
|
2205
|
+
},
|
|
2206
|
+
s ? w : 0
|
|
2207
|
+
), B.endsWith(" ") || t(58, $ = window.setTimeout(
|
|
2208
|
+
() => {
|
|
2209
|
+
t(58, $ = void 0), ke(Z, { appendSpace: !0 }).catch((ee) => t(18, re = ee));
|
|
2210
|
+
},
|
|
2211
|
+
we
|
|
2212
|
+
));
|
|
2201
2213
|
}
|
|
2202
|
-
function
|
|
2203
|
-
t(57, S = s), t(1,
|
|
2214
|
+
function et(s) {
|
|
2215
|
+
t(57, S = s), t(1, B = s.place_name), t(15, D = -1);
|
|
2204
2216
|
}
|
|
2205
|
-
const
|
|
2206
|
-
function
|
|
2207
|
-
|
|
2208
|
-
|
|
2217
|
+
const ni = () => ne.focus();
|
|
2218
|
+
function ri(s) {
|
|
2219
|
+
at[s ? "unshift" : "push"](() => {
|
|
2220
|
+
ne = s, t(17, ne);
|
|
2209
2221
|
});
|
|
2210
2222
|
}
|
|
2211
|
-
function
|
|
2212
|
-
|
|
2223
|
+
function oi() {
|
|
2224
|
+
B = this.value, t(1, B), t(13, Se), t(28, h);
|
|
2213
2225
|
}
|
|
2214
|
-
const
|
|
2215
|
-
t(1,
|
|
2216
|
-
},
|
|
2217
|
-
|
|
2218
|
-
},
|
|
2226
|
+
const si = () => t(13, Se = !0), ai = () => t(13, Se = !1), li = () => $e(), ui = () => {
|
|
2227
|
+
t(1, B = ""), ne.focus();
|
|
2228
|
+
}, ci = () => t(0, Y = !Y), di = () => t(18, re = void 0), fi = (s) => t(15, D = s), mi = (s) => et(s), gi = () => {
|
|
2229
|
+
Ee || t(15, D = -1);
|
|
2230
|
+
}, hi = () => {
|
|
2219
2231
|
};
|
|
2220
2232
|
return i.$$set = (s) => {
|
|
2221
|
-
"class" in s && t(2,
|
|
2233
|
+
"class" in s && t(2, o = s.class), "apiKey" in s && t(26, d = s.apiKey), "bbox" in s && t(27, u = s.bbox), "clearButtonTitle" in s && t(3, f = s.clearButtonTitle), "clearOnBlur" in s && t(28, h = s.clearOnBlur), "collapsed" in s && t(4, v = s.collapsed), "country" in s && t(29, _ = s.country), "debounceSearch" in s && t(30, w = s.debounceSearch), "enableReverse" in s && t(5, W = s.enableReverse), "errorMessage" in s && t(6, y = s.errorMessage), "filter" in s && t(31, E = s.filter), "flyTo" in s && t(32, C = s.flyTo), "fuzzyMatch" in s && t(33, z = s.fuzzyMatch), "language" in s && t(34, p = s.language), "limit" in s && t(35, q = s.limit), "mapController" in s && t(36, b = s.mapController), "minLength" in s && t(37, g = s.minLength), "noResultsMessage" in s && t(7, m = s.noResultsMessage), "placeholder" in s && t(8, M = s.placeholder), "proximity" in s && t(38, j = s.proximity), "reverseActive" in s && t(0, Y = s.reverseActive), "reverseButtonTitle" in s && t(9, te = s.reverseButtonTitle), "searchValue" in s && t(1, B = s.searchValue), "pickedResultStyle" in s && t(39, L = s.pickedResultStyle), "showPlaceType" in s && t(10, F = s.showPlaceType), "showResultsWhileTyping" in s && t(40, ie = s.showResultsWhileTyping), "autocompleteTimeout" in s && t(41, we = s.autocompleteTimeout), "selectFirst" in s && t(11, Ee = s.selectFirst), "flyToSelected" in s && t(42, Qe = s.flyToSelected), "markerOnSelected" in s && t(43, Oe = s.markerOnSelected), "types" in s && t(44, he = s.types), "exhaustiveReverseGeocoding" in s && t(45, Ke = s.exhaustiveReverseGeocoding), "excludeTypes" in s && t(46, Ie = s.excludeTypes), "zoom" in s && t(47, Ue = s.zoom), "apiUrl" in s && t(48, Ve = s.apiUrl), "fetchParameters" in s && t(49, xe = s.fetchParameters), "iconsBaseUrl" in s && t(12, ft = s.iconsBaseUrl), "adjustUrlQuery" in s && t(50, Je = s.adjustUrlQuery), "$$scope" in s && t(61, l = s.$$scope);
|
|
2222
2234
|
}, i.$$.update = () => {
|
|
2223
2235
|
if (i.$$.dirty[0] & /*enableReverse*/
|
|
2224
|
-
32 && t(0,
|
|
2236
|
+
32 && t(0, Y = W === "always"), i.$$.dirty[0] & /*focused, clearOnBlur*/
|
|
2225
2237
|
268443648 && setTimeout(() => {
|
|
2226
|
-
t(16,
|
|
2238
|
+
t(16, Be = Se), h && !Se && t(1, B = "");
|
|
2227
2239
|
}), i.$$.dirty[0] & /*searchValue, listFeatures*/
|
|
2228
2240
|
16386 | i.$$.dirty[1] & /*minLength*/
|
|
2229
|
-
64 &&
|
|
2230
|
-
67109120 && L && S && !S.address && S.geometry.type === "Point" && S.place_type[0] !== "reverse" &&
|
|
2231
|
-
|
|
2232
|
-
18432 &&
|
|
2233
|
-
2 && t(15,
|
|
2241
|
+
64 && B.length < g && (t(57, S = void 0), t(14, N = void 0), t(18, re = void 0), t(56, P = N)), i.$$.dirty[1] & /*pickedResultStyle, picked*/
|
|
2242
|
+
67109120 && L !== "marker-only" && S && !S.address && S.geometry.type === "Point" && S.place_type[0] !== "reverse" && ke(S.id, { byId: !0 }).catch((s) => t(18, re = s)), i.$$.dirty[1] & /*mapController, picked, prevIdToFly, flyTo*/
|
|
2243
|
+
335544354 && (b && S && S.id !== Xe && C && (!S.bbox || S.bbox[0] === S.bbox[2] && S.bbox[1] === S.bbox[3] ? b.flyTo(S.center, Me(S)) : b.fitBounds(kt(S.bbox), 50, Me(S)), t(14, N = void 0), t(56, P = void 0), t(15, D = -1)), t(59, Xe = S == null ? void 0 : S.id)), i.$$.dirty[0] & /*selectFirst, listFeatures*/
|
|
2244
|
+
18432 && Ee && N != null && N.length && ($t() || t(15, D = 0)), i.$$.dirty[0] & /*searchValue*/
|
|
2245
|
+
2 && t(15, D = -1), i.$$.dirty[0] & /*listFeatures*/
|
|
2234
2246
|
16384 | i.$$.dirty[1] & /*markedFeatures*/
|
|
2235
|
-
33554432 && P !==
|
|
2247
|
+
33554432 && P !== N && t(56, P = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
|
|
2236
2248
|
81921 | i.$$.dirty[1] & /*mapController, markedFeatures*/
|
|
2237
2249
|
33554464 && b && b.setEventHandler((s) => {
|
|
2238
2250
|
switch (s.type) {
|
|
2239
2251
|
case "mapClick":
|
|
2240
|
-
|
|
2252
|
+
Y && ti(s.coordinates);
|
|
2241
2253
|
break;
|
|
2242
2254
|
case "markerClick":
|
|
2243
2255
|
{
|
|
2244
|
-
const I =
|
|
2245
|
-
I &&
|
|
2256
|
+
const I = N == null ? void 0 : N.find((Z) => Z.id === s.id);
|
|
2257
|
+
I && et(I);
|
|
2246
2258
|
}
|
|
2247
2259
|
break;
|
|
2248
2260
|
case "markerMouseEnter":
|
|
2249
|
-
P && t(15,
|
|
2261
|
+
P && t(15, D = Be ? (N == null ? void 0 : N.findIndex((I) => I.id === s.id)) ?? -1 : -1);
|
|
2250
2262
|
break;
|
|
2251
2263
|
case "markerMouseLeave":
|
|
2252
|
-
P && t(15,
|
|
2264
|
+
P && t(15, D = -1);
|
|
2253
2265
|
break;
|
|
2254
2266
|
}
|
|
2255
2267
|
}), i.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
|
|
2256
|
-
49152 && t(
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2268
|
+
49152 && t(60, n = N == null ? void 0 : N[D]), i.$$.dirty[1] & /*mapController, selected, flyTo, flyToSelected*/
|
|
2269
|
+
536872994 && b && n && C && Qe && b.flyTo(n.center, Me(n)), i.$$.dirty[1] & /*markerOnSelected, mapController*/
|
|
2270
|
+
4128 && (Oe || b == null || b.setMarkers(void 0, void 0)), i.$$.dirty[1] & /*mapController, markerOnSelected, markedFeatures, selected*/
|
|
2271
|
+
570429472 && b && Oe && !P && (b.setMarkers(n ? [n] : void 0, void 0), b.setSelectedMarker(n ? 0 : -1)), i.$$.dirty[1] & /*mapController, markedFeatures, picked*/
|
|
2260
2272
|
100663328 && b && b.setMarkers(P, S), i.$$.dirty[0] & /*selectedItemIndex*/
|
|
2261
2273
|
32768 | i.$$.dirty[1] & /*markedFeatures, mapController*/
|
|
2262
|
-
33554464 && P && b && b.setSelectedMarker(
|
|
2274
|
+
33554464 && P && b && b.setSelectedMarker(D), i.$$.dirty[1] & /*selected, autocompleteTimeoutRef*/
|
|
2275
|
+
671088640 && n && (window.clearTimeout($), t(58, $ = void 0)), i.$$.dirty[0] & /*searchValue*/
|
|
2263
2276
|
2 | i.$$.dirty[1] & /*mapController*/
|
|
2264
2277
|
32 && b) {
|
|
2265
|
-
const s =
|
|
2278
|
+
const s = Ye(B);
|
|
2266
2279
|
b.setReverseMarker(s ? [s.decimalLongitude, s.decimalLatitude] : void 0);
|
|
2267
2280
|
}
|
|
2268
2281
|
i.$$.dirty[1] & /*selected*/
|
|
2269
|
-
|
|
2270
|
-
67108864 &&
|
|
2271
|
-
81920 &&
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2282
|
+
536870912 && de("select", { feature: n }), i.$$.dirty[1] & /*picked*/
|
|
2283
|
+
67108864 && de("pick", { feature: S }), i.$$.dirty[0] & /*focusedDelayed, listFeatures*/
|
|
2284
|
+
81920 && de("optionsvisibilitychange", {
|
|
2285
|
+
optionsVisible: Be && !!N
|
|
2286
|
+
}), i.$$.dirty[0] & /*listFeatures*/
|
|
2287
|
+
16384 && de("featureslisted", { features: N }), i.$$.dirty[1] & /*markedFeatures*/
|
|
2288
|
+
33554432 && de("featuresmarked", { features: P }), i.$$.dirty[0] & /*reverseActive*/
|
|
2289
|
+
1 && de("reversetoggle", { reverse: Y }), i.$$.dirty[0] & /*searchValue*/
|
|
2290
|
+
2 && de("querychange", { query: B }), i.$$.dirty[0] & /*reverseActive*/
|
|
2276
2291
|
1 | i.$$.dirty[1] & /*mapController*/
|
|
2277
|
-
32 && b && b.indicateReverse(
|
|
2292
|
+
32 && b && b.indicateReverse(Y);
|
|
2278
2293
|
}, [
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2294
|
+
Y,
|
|
2295
|
+
B,
|
|
2296
|
+
o,
|
|
2282
2297
|
f,
|
|
2283
2298
|
v,
|
|
2284
2299
|
W,
|
|
2285
2300
|
y,
|
|
2286
2301
|
m,
|
|
2287
|
-
k,
|
|
2288
|
-
$,
|
|
2289
|
-
F,
|
|
2290
|
-
re,
|
|
2291
|
-
st,
|
|
2292
|
-
we,
|
|
2293
2302
|
M,
|
|
2294
|
-
R,
|
|
2295
|
-
Ae,
|
|
2296
2303
|
te,
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
+
F,
|
|
2305
|
+
Ee,
|
|
2306
|
+
ft,
|
|
2307
|
+
Se,
|
|
2308
|
+
N,
|
|
2309
|
+
D,
|
|
2310
|
+
Be,
|
|
2311
|
+
ne,
|
|
2312
|
+
re,
|
|
2313
|
+
be,
|
|
2314
|
+
Yt,
|
|
2315
|
+
ht,
|
|
2316
|
+
ii,
|
|
2317
|
+
$e,
|
|
2318
|
+
et,
|
|
2304
2319
|
c,
|
|
2305
2320
|
d,
|
|
2306
2321
|
u,
|
|
@@ -2309,58 +2324,59 @@ function mn(i, e, t) {
|
|
|
2309
2324
|
w,
|
|
2310
2325
|
E,
|
|
2311
2326
|
C,
|
|
2312
|
-
|
|
2327
|
+
z,
|
|
2313
2328
|
p,
|
|
2314
2329
|
q,
|
|
2315
2330
|
b,
|
|
2316
2331
|
g,
|
|
2317
|
-
|
|
2332
|
+
j,
|
|
2318
2333
|
L,
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
De,
|
|
2322
|
-
ge,
|
|
2323
|
-
Ze,
|
|
2324
|
-
Re,
|
|
2325
|
-
ye,
|
|
2326
|
-
Ue,
|
|
2327
|
-
Ge,
|
|
2328
|
-
qe,
|
|
2334
|
+
ie,
|
|
2335
|
+
we,
|
|
2329
2336
|
Qe,
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
P,
|
|
2336
|
-
S,
|
|
2337
|
+
Oe,
|
|
2338
|
+
he,
|
|
2339
|
+
Ke,
|
|
2340
|
+
Ie,
|
|
2341
|
+
Ue,
|
|
2337
2342
|
Ve,
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2343
|
+
xe,
|
|
2344
|
+
Je,
|
|
2345
|
+
Vt,
|
|
2341
2346
|
xt,
|
|
2342
|
-
|
|
2347
|
+
mt,
|
|
2343
2348
|
Jt,
|
|
2344
2349
|
Xt,
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
+
P,
|
|
2351
|
+
S,
|
|
2352
|
+
$,
|
|
2353
|
+
Xe,
|
|
2354
|
+
n,
|
|
2355
|
+
l,
|
|
2356
|
+
r,
|
|
2350
2357
|
ni,
|
|
2351
2358
|
ri,
|
|
2352
2359
|
oi,
|
|
2353
|
-
si
|
|
2360
|
+
si,
|
|
2361
|
+
ai,
|
|
2362
|
+
li,
|
|
2363
|
+
ui,
|
|
2364
|
+
ci,
|
|
2365
|
+
di,
|
|
2366
|
+
fi,
|
|
2367
|
+
mi,
|
|
2368
|
+
gi,
|
|
2369
|
+
hi
|
|
2354
2370
|
];
|
|
2355
2371
|
}
|
|
2356
|
-
let
|
|
2372
|
+
let Tn = class extends ye {
|
|
2357
2373
|
constructor(e) {
|
|
2358
|
-
super(),
|
|
2374
|
+
super(), _e(
|
|
2359
2375
|
this,
|
|
2360
2376
|
e,
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2377
|
+
pn,
|
|
2378
|
+
Sn,
|
|
2379
|
+
Le,
|
|
2364
2380
|
{
|
|
2365
2381
|
ZOOM_DEFAULTS: 25,
|
|
2366
2382
|
class: 2,
|
|
@@ -2386,17 +2402,17 @@ let gn = class extends _e {
|
|
|
2386
2402
|
reverseActive: 0,
|
|
2387
2403
|
reverseButtonTitle: 9,
|
|
2388
2404
|
searchValue: 1,
|
|
2389
|
-
|
|
2405
|
+
pickedResultStyle: 39,
|
|
2390
2406
|
showPlaceType: 10,
|
|
2391
2407
|
showResultsWhileTyping: 40,
|
|
2408
|
+
autocompleteTimeout: 41,
|
|
2392
2409
|
selectFirst: 11,
|
|
2393
|
-
flyToSelected:
|
|
2394
|
-
markerOnSelected:
|
|
2395
|
-
types:
|
|
2396
|
-
exhaustiveReverseGeocoding:
|
|
2397
|
-
excludeTypes:
|
|
2398
|
-
zoom:
|
|
2399
|
-
maxZoom: 47,
|
|
2410
|
+
flyToSelected: 42,
|
|
2411
|
+
markerOnSelected: 43,
|
|
2412
|
+
types: 44,
|
|
2413
|
+
exhaustiveReverseGeocoding: 45,
|
|
2414
|
+
excludeTypes: 46,
|
|
2415
|
+
zoom: 47,
|
|
2400
2416
|
apiUrl: 48,
|
|
2401
2417
|
fetchParameters: 49,
|
|
2402
2418
|
iconsBaseUrl: 12,
|
|
@@ -2430,57 +2446,82 @@ let gn = class extends _e {
|
|
|
2430
2446
|
return this.$$.ctx[55];
|
|
2431
2447
|
}
|
|
2432
2448
|
};
|
|
2433
|
-
const
|
|
2449
|
+
const Nn = new FinalizationRegistry((i) => {
|
|
2434
2450
|
i.$destroy();
|
|
2435
2451
|
});
|
|
2436
|
-
var
|
|
2437
|
-
class
|
|
2452
|
+
var J, Ge, Kt;
|
|
2453
|
+
const dt = class dt extends EventTarget {
|
|
2438
2454
|
constructor({ target: t, ...n }) {
|
|
2439
2455
|
super();
|
|
2440
|
-
|
|
2441
|
-
|
|
2456
|
+
ot(this, Ge);
|
|
2457
|
+
ot(this, J);
|
|
2458
|
+
vt(this, J, new Tn({
|
|
2442
2459
|
target: t,
|
|
2443
2460
|
props: n
|
|
2444
2461
|
}));
|
|
2445
|
-
for (const
|
|
2462
|
+
for (const r of [
|
|
2446
2463
|
"select",
|
|
2447
2464
|
"pick",
|
|
2448
|
-
"
|
|
2449
|
-
"
|
|
2465
|
+
"featureslisted",
|
|
2466
|
+
"featuresmarked",
|
|
2450
2467
|
"response",
|
|
2451
|
-
"
|
|
2452
|
-
"
|
|
2453
|
-
"
|
|
2468
|
+
"optionsvisibilitychange",
|
|
2469
|
+
"reversetoggle",
|
|
2470
|
+
"querychange"
|
|
2454
2471
|
])
|
|
2455
|
-
oe(this,
|
|
2456
|
-
|
|
2472
|
+
oe(this, J).$on(r, (l) => {
|
|
2473
|
+
Lt(this, Ge, Kt).call(this, r, l.detail);
|
|
2474
|
+
});
|
|
2475
|
+
oe(this, J).$on("select", (r) => {
|
|
2476
|
+
const l = new CustomEvent(r.type, {
|
|
2477
|
+
detail: r.detail
|
|
2478
|
+
});
|
|
2479
|
+
this.dispatchEvent(l);
|
|
2480
|
+
}), Nn.register(this, oe(this, J));
|
|
2457
2481
|
}
|
|
2458
2482
|
setOptions(t) {
|
|
2459
|
-
oe(this,
|
|
2483
|
+
oe(this, J).$set(t);
|
|
2460
2484
|
}
|
|
2461
2485
|
setQuery(t, n = !0) {
|
|
2462
|
-
var
|
|
2463
|
-
(
|
|
2486
|
+
var r;
|
|
2487
|
+
(r = oe(this, J)) == null || r.setQuery(t, n);
|
|
2464
2488
|
}
|
|
2465
2489
|
clearMap() {
|
|
2466
2490
|
var t;
|
|
2467
|
-
(t = oe(this,
|
|
2491
|
+
(t = oe(this, J)) == null || t.clearMap();
|
|
2468
2492
|
}
|
|
2469
2493
|
clearList() {
|
|
2470
2494
|
var t;
|
|
2471
|
-
(t = oe(this,
|
|
2495
|
+
(t = oe(this, J)) == null || t.clearList();
|
|
2472
2496
|
}
|
|
2473
2497
|
focus() {
|
|
2474
2498
|
var t;
|
|
2475
|
-
(t = oe(this,
|
|
2499
|
+
(t = oe(this, J)) == null || t.focus();
|
|
2476
2500
|
}
|
|
2477
2501
|
blur() {
|
|
2478
2502
|
var t;
|
|
2479
|
-
(t = oe(this,
|
|
2503
|
+
(t = oe(this, J)) == null || t.blur();
|
|
2480
2504
|
}
|
|
2481
|
-
|
|
2482
|
-
|
|
2505
|
+
addEventListener(t, n, r) {
|
|
2506
|
+
super.addEventListener(t, n, r);
|
|
2507
|
+
}
|
|
2508
|
+
removeEventListener(t, n, r) {
|
|
2509
|
+
super.removeEventListener(t, n, r);
|
|
2510
|
+
}
|
|
2511
|
+
dispatchEvent(t) {
|
|
2512
|
+
return super.dispatchEvent(t);
|
|
2513
|
+
}
|
|
2514
|
+
};
|
|
2515
|
+
J = new WeakMap(), Ge = new WeakSet(), Kt = function(t, n) {
|
|
2516
|
+
return _t(dt.prototype, this, "dispatchEvent").call(
|
|
2517
|
+
this,
|
|
2518
|
+
new CustomEvent(t, {
|
|
2519
|
+
detail: n
|
|
2520
|
+
})
|
|
2521
|
+
);
|
|
2522
|
+
};
|
|
2523
|
+
let Ft = dt;
|
|
2483
2524
|
export {
|
|
2484
|
-
|
|
2525
|
+
Ft as GeocodingControl
|
|
2485
2526
|
};
|
|
2486
2527
|
//# sourceMappingURL=vanilla.js.map
|