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