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