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