@maptiler/geocoding-control 2.1.0-rc1 → 2.1.0-with-autocomplete-timeout

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/leaflet.js CHANGED
@@ -1,52 +1,52 @@
1
- var En = Object.defineProperty;
2
- var ti = (i) => {
1
+ var Mn = Object.defineProperty;
2
+ var ri = (i) => {
3
3
  throw TypeError(i);
4
4
  };
5
- var Ln = (i, e, t) => e in i ? En(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
6
- var kt = (i, e, t) => Ln(i, typeof e != "symbol" ? e + "" : e, t), ii = (i, e, t) => e.has(i) || ti("Cannot " + t);
7
- var te = (i, e, t) => (ii(i, e, "read from private field"), t ? t.call(i) : e.get(i)), Nt = (i, e, t) => e.has(i) ? ti("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), Pt = (i, e, t, n) => (ii(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t);
8
- import * as ue from "leaflet";
5
+ var Cn = (i, e, t) => e in i ? Mn(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
6
+ var Pt = (i, e, t) => Cn(i, typeof e != "symbol" ? e + "" : e, t), oi = (i, e, t) => e.has(i) || ri("Cannot " + t);
7
+ var ee = (i, e, t) => (oi(i, e, "read from private field"), t ? t.call(i) : e.get(i)), Rt = (i, e, t) => e.has(i) ? ri("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), It = (i, e, t, n) => (oi(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t);
8
+ import * as ae from "leaflet";
9
9
  function D() {
10
10
  }
11
- function Sn(i, e) {
11
+ function kn(i, e) {
12
12
  for (const t in e) i[t] = e[t];
13
13
  return (
14
14
  /** @type {T & S} */
15
15
  i
16
16
  );
17
17
  }
18
- function Ai(i) {
18
+ function Di(i) {
19
19
  return i();
20
20
  }
21
- function ni() {
21
+ function si() {
22
22
  return /* @__PURE__ */ Object.create(null);
23
23
  }
24
- function be(i) {
25
- i.forEach(Ai);
24
+ function ve(i) {
25
+ i.forEach(Di);
26
26
  }
27
- function Wi(i) {
27
+ function Ui(i) {
28
28
  return typeof i == "function";
29
29
  }
30
- function Me(i, e) {
30
+ function Ne(i, e) {
31
31
  return i != i ? e == e : i !== e || i && typeof i == "object" || typeof i == "function";
32
32
  }
33
- let lt;
34
- function X(i, e) {
35
- return i === e ? !0 : (lt || (lt = document.createElement("a")), lt.href = e, i === lt.href);
33
+ let ct;
34
+ function K(i, e) {
35
+ return i === e ? !0 : (ct || (ct = document.createElement("a")), ct.href = e, i === ct.href);
36
36
  }
37
- function xn(i) {
37
+ function Nn(i) {
38
38
  return Object.keys(i).length === 0;
39
39
  }
40
- function Mn(i, e, t, n) {
40
+ function Tn(i, e, t, n) {
41
41
  if (i) {
42
- const r = Bi(i, e, t, n);
42
+ const r = Fi(i, e, t, n);
43
43
  return i[0](r);
44
44
  }
45
45
  }
46
- function Bi(i, e, t, n) {
47
- return i[1] && n ? Sn(t.ctx.slice(), i[1](n(e))) : t.ctx;
46
+ function Fi(i, e, t, n) {
47
+ return i[1] && n ? kn(t.ctx.slice(), i[1](n(e))) : t.ctx;
48
48
  }
49
- function Cn(i, e, t, n) {
49
+ function Pn(i, e, t, n) {
50
50
  if (i[2] && n) {
51
51
  const r = i[2](n(t));
52
52
  if (e.dirty === void 0)
@@ -61,13 +61,13 @@ function Cn(i, e, t, n) {
61
61
  }
62
62
  return e.dirty;
63
63
  }
64
- function kn(i, e, t, n, r, o) {
64
+ function Rn(i, e, t, n, r, o) {
65
65
  if (r) {
66
- const l = Bi(e, t, n, o);
66
+ const l = Fi(e, t, n, o);
67
67
  i.p(l, r);
68
68
  }
69
69
  }
70
- function Nn(i) {
70
+ function In(i) {
71
71
  if (i.ctx.length > 32) {
72
72
  const e = [], t = i.ctx.length / 32;
73
73
  for (let n = 0; n < t; n++)
@@ -76,37 +76,37 @@ function Nn(i) {
76
76
  }
77
77
  return -1;
78
78
  }
79
- function dt(i) {
79
+ function gt(i) {
80
80
  return i ?? "";
81
81
  }
82
- function I(i, e) {
82
+ function O(i, e) {
83
83
  i.appendChild(e);
84
84
  }
85
- function F(i, e, t) {
85
+ function G(i, e, t) {
86
86
  i.insertBefore(e, t || null);
87
87
  }
88
88
  function U(i) {
89
89
  i.parentNode && i.parentNode.removeChild(i);
90
90
  }
91
- function B(i) {
91
+ function W(i) {
92
92
  return document.createElement(i);
93
93
  }
94
- function ce(i) {
94
+ function fe(i) {
95
95
  return document.createElementNS("http://www.w3.org/2000/svg", i);
96
96
  }
97
- function Le(i) {
97
+ function Me(i) {
98
98
  return document.createTextNode(i);
99
99
  }
100
- function ne() {
101
- return Le(" ");
100
+ function ie() {
101
+ return Me(" ");
102
102
  }
103
- function Pn() {
104
- return Le("");
103
+ function On() {
104
+ return Me("");
105
105
  }
106
106
  function H(i, e, t, n) {
107
107
  return i.addEventListener(e, t, n), () => i.removeEventListener(e, t, n);
108
108
  }
109
- function Tn(i) {
109
+ function zn(i) {
110
110
  return function(e) {
111
111
  return e.preventDefault(), i.call(this, e);
112
112
  };
@@ -114,39 +114,39 @@ function Tn(i) {
114
114
  function p(i, e, t) {
115
115
  t == null ? i.removeAttribute(e) : i.getAttribute(e) !== t && i.setAttribute(e, t);
116
116
  }
117
- function Rn(i) {
117
+ function An(i) {
118
118
  return Array.from(i.childNodes);
119
119
  }
120
- function Ze(i, e) {
120
+ function Ve(i, e) {
121
121
  e = "" + e, i.data !== e && (i.data = /** @type {string} */
122
122
  e);
123
123
  }
124
- function ri(i, e) {
124
+ function li(i, e) {
125
125
  i.value = e ?? "";
126
126
  }
127
- function he(i, e, t) {
127
+ function me(i, e, t) {
128
128
  i.classList.toggle(e, !!t);
129
129
  }
130
- function On(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
130
+ function Wn(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
131
131
  return new CustomEvent(i, { detail: e, bubbles: t, cancelable: n });
132
132
  }
133
- let Qe;
134
- function qe(i) {
135
- Qe = i;
133
+ let Ye;
134
+ function He(i) {
135
+ Ye = i;
136
136
  }
137
- function Di() {
138
- if (!Qe) throw new Error("Function called outside component initialization");
139
- return Qe;
137
+ function Gi() {
138
+ if (!Ye) throw new Error("Function called outside component initialization");
139
+ return Ye;
140
140
  }
141
- function In(i) {
142
- Di().$$.on_destroy.push(i);
141
+ function Bn(i) {
142
+ Gi().$$.on_destroy.push(i);
143
143
  }
144
- function Ui() {
145
- const i = Di();
144
+ function ji() {
145
+ const i = Gi();
146
146
  return (e, t, { cancelable: n = !1 } = {}) => {
147
147
  const r = i.$$.callbacks[e];
148
148
  if (r) {
149
- const o = On(
149
+ const o = Wn(
150
150
  /** @type {string} */
151
151
  e,
152
152
  t,
@@ -159,134 +159,134 @@ function Ui() {
159
159
  return !0;
160
160
  };
161
161
  }
162
- function zn(i, e) {
162
+ function Dn(i, e) {
163
163
  const t = i.$$.callbacks[e.type];
164
164
  t && t.slice().forEach((n) => n.call(this, e));
165
165
  }
166
- const Be = [], It = [];
167
- let De = [];
168
- const oi = [], An = /* @__PURE__ */ Promise.resolve();
169
- let zt = !1;
170
- function Wn() {
171
- zt || (zt = !0, An.then(Fi));
166
+ const Ue = [], Wt = [];
167
+ let Fe = [];
168
+ const ui = [], Un = /* @__PURE__ */ Promise.resolve();
169
+ let Bt = !1;
170
+ function Fn() {
171
+ Bt || (Bt = !0, Un.then(qi));
172
172
  }
173
- function At(i) {
174
- De.push(i);
173
+ function Dt(i) {
174
+ Fe.push(i);
175
175
  }
176
- const Tt = /* @__PURE__ */ new Set();
177
- let Ae = 0;
178
- function Fi() {
179
- if (Ae !== 0)
176
+ const Ot = /* @__PURE__ */ new Set();
177
+ let Be = 0;
178
+ function qi() {
179
+ if (Be !== 0)
180
180
  return;
181
- const i = Qe;
181
+ const i = Ye;
182
182
  do {
183
183
  try {
184
- for (; Ae < Be.length; ) {
185
- const e = Be[Ae];
186
- Ae++, qe(e), Bn(e.$$);
184
+ for (; Be < Ue.length; ) {
185
+ const e = Ue[Be];
186
+ Be++, He(e), Gn(e.$$);
187
187
  }
188
188
  } catch (e) {
189
- throw Be.length = 0, Ae = 0, e;
189
+ throw Ue.length = 0, Be = 0, e;
190
190
  }
191
- for (qe(null), Be.length = 0, Ae = 0; It.length; ) It.pop()();
192
- for (let e = 0; e < De.length; e += 1) {
193
- const t = De[e];
194
- Tt.has(t) || (Tt.add(t), t());
191
+ for (He(null), Ue.length = 0, Be = 0; Wt.length; ) Wt.pop()();
192
+ for (let e = 0; e < Fe.length; e += 1) {
193
+ const t = Fe[e];
194
+ Ot.has(t) || (Ot.add(t), t());
195
195
  }
196
- De.length = 0;
197
- } while (Be.length);
198
- for (; oi.length; )
199
- oi.pop()();
200
- zt = !1, Tt.clear(), qe(i);
196
+ Fe.length = 0;
197
+ } while (Ue.length);
198
+ for (; ui.length; )
199
+ ui.pop()();
200
+ Bt = !1, Ot.clear(), He(i);
201
201
  }
202
- function Bn(i) {
202
+ function Gn(i) {
203
203
  if (i.fragment !== null) {
204
- i.update(), be(i.before_update);
204
+ i.update(), ve(i.before_update);
205
205
  const e = i.dirty;
206
- i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(At);
206
+ i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(Dt);
207
207
  }
208
208
  }
209
- function Dn(i) {
209
+ function jn(i) {
210
210
  const e = [], t = [];
211
- De.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), De = e;
211
+ Fe.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), Fe = e;
212
212
  }
213
- const ut = /* @__PURE__ */ new Set();
214
- let Te;
215
- function at() {
216
- Te = {
213
+ const ft = /* @__PURE__ */ new Set();
214
+ let ze;
215
+ function dt() {
216
+ ze = {
217
217
  r: 0,
218
218
  c: [],
219
- p: Te
219
+ p: ze
220
220
  // parent group
221
221
  };
222
222
  }
223
- function ct() {
224
- Te.r || be(Te.c), Te = Te.p;
223
+ function ht() {
224
+ ze.r || ve(ze.c), ze = ze.p;
225
225
  }
226
226
  function Z(i, e) {
227
- i && i.i && (ut.delete(i), i.i(e));
227
+ i && i.i && (ft.delete(i), i.i(e));
228
228
  }
229
229
  function V(i, e, t, n) {
230
230
  if (i && i.o) {
231
- if (ut.has(i)) return;
232
- ut.add(i), Te.c.push(() => {
233
- ut.delete(i), n && (t && i.d(1), n());
231
+ if (ft.has(i)) return;
232
+ ft.add(i), ze.c.push(() => {
233
+ ft.delete(i), n && (t && i.d(1), n());
234
234
  }), i.o(e);
235
235
  } else n && n();
236
236
  }
237
- function si(i) {
237
+ function ai(i) {
238
238
  return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i);
239
239
  }
240
- function Un(i, e) {
240
+ function qn(i, e) {
241
241
  V(i, 1, 1, () => {
242
242
  e.delete(i.key);
243
243
  });
244
244
  }
245
- function Fn(i, e, t, n, r, o, l, s, c, u, h, a) {
246
- let f = i.length, d = o.length, m = f;
245
+ function Zn(i, e, t, n, r, o, l, s, c, u, h, a) {
246
+ let f = i.length, d = o.length, g = f;
247
247
  const b = {};
248
- for (; m--; ) b[i[m].key] = m;
248
+ for (; g--; ) b[i[g].key] = g;
249
249
  const v = [], y = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), _ = [];
250
- for (m = d; m--; ) {
251
- const x = a(r, o, m), S = t(x);
252
- let T = l.get(S);
253
- T ? _.push(() => T.p(x, e)) : (T = u(S, x), T.c()), y.set(S, v[m] = T), S in b && E.set(S, Math.abs(m - b[S]));
250
+ for (g = d; g--; ) {
251
+ const x = a(r, o, g), S = t(x);
252
+ let P = l.get(S);
253
+ P ? _.push(() => P.p(x, e)) : (P = u(S, x), P.c()), y.set(S, v[g] = P), S in b && E.set(S, Math.abs(g - b[S]));
254
254
  }
255
- const L = /* @__PURE__ */ new Set(), P = /* @__PURE__ */ new Set();
255
+ const L = /* @__PURE__ */ new Set(), T = /* @__PURE__ */ new Set();
256
256
  function N(x) {
257
257
  Z(x, 1), x.m(s, h), l.set(x.key, x), h = x.first, d--;
258
258
  }
259
259
  for (; f && d; ) {
260
- const x = v[d - 1], S = i[f - 1], T = x.key, w = S.key;
261
- x === S ? (h = x.first, f--, d--) : y.has(w) ? !l.has(T) || L.has(T) ? N(x) : P.has(w) ? f-- : E.get(T) > E.get(w) ? (P.add(T), N(x)) : (L.add(w), f--) : (c(S, l), f--);
260
+ const x = v[d - 1], S = i[f - 1], P = x.key, w = S.key;
261
+ x === S ? (h = x.first, f--, d--) : y.has(w) ? !l.has(P) || L.has(P) ? N(x) : T.has(w) ? f-- : E.get(P) > E.get(w) ? (T.add(P), N(x)) : (L.add(w), f--) : (c(S, l), f--);
262
262
  }
263
263
  for (; f--; ) {
264
264
  const x = i[f];
265
265
  y.has(x.key) || c(x, l);
266
266
  }
267
267
  for (; d; ) N(v[d - 1]);
268
- return be(_), v;
268
+ return ve(_), v;
269
269
  }
270
- function Se(i) {
270
+ function Ce(i) {
271
271
  i && i.c();
272
272
  }
273
- function pe(i, e, t) {
273
+ function ye(i, e, t) {
274
274
  const { fragment: n, after_update: r } = i.$$;
275
- n && n.m(e, t), At(() => {
276
- const o = i.$$.on_mount.map(Ai).filter(Wi);
277
- i.$$.on_destroy ? i.$$.on_destroy.push(...o) : be(o), i.$$.on_mount = [];
278
- }), r.forEach(At);
275
+ n && n.m(e, t), Dt(() => {
276
+ const o = i.$$.on_mount.map(Di).filter(Ui);
277
+ i.$$.on_destroy ? i.$$.on_destroy.push(...o) : ve(o), i.$$.on_mount = [];
278
+ }), r.forEach(Dt);
279
279
  }
280
- function ye(i, e) {
280
+ function be(i, e) {
281
281
  const t = i.$$;
282
- t.fragment !== null && (Dn(t.after_update), be(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
282
+ t.fragment !== null && (jn(t.after_update), ve(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
283
283
  }
284
- function Gn(i, e) {
285
- i.$$.dirty[0] === -1 && (Be.push(i), Wn(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
284
+ function Qn(i, e) {
285
+ i.$$.dirty[0] === -1 && (Ue.push(i), Fn(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
286
286
  }
287
- function Ce(i, e, t, n, r, o, l = null, s = [-1]) {
288
- const c = Qe;
289
- qe(i);
287
+ function Te(i, e, t, n, r, o, l = null, s = [-1]) {
288
+ const c = Ye;
289
+ He(i);
290
290
  const u = i.$$ = {
291
291
  fragment: null,
292
292
  ctx: [],
@@ -294,7 +294,7 @@ function Ce(i, e, t, n, r, o, l = null, s = [-1]) {
294
294
  props: o,
295
295
  update: D,
296
296
  not_equal: r,
297
- bound: ni(),
297
+ bound: si(),
298
298
  // lifecycle
299
299
  on_mount: [],
300
300
  on_destroy: [],
@@ -303,7 +303,7 @@ function Ce(i, e, t, n, r, o, l = null, s = [-1]) {
303
303
  after_update: [],
304
304
  context: new Map(e.context || (c ? c.$$.context : [])),
305
305
  // everything else
306
- callbacks: ni(),
306
+ callbacks: si(),
307
307
  dirty: s,
308
308
  skip_bound: !1,
309
309
  root: e.target || c.$$.root
@@ -311,19 +311,19 @@ function Ce(i, e, t, n, r, o, l = null, s = [-1]) {
311
311
  l && l(u.root);
312
312
  let h = !1;
313
313
  if (u.ctx = t ? t(i, e.props || {}, (a, f, ...d) => {
314
- const m = d.length ? d[0] : f;
315
- return u.ctx && r(u.ctx[a], u.ctx[a] = m) && (!u.skip_bound && u.bound[a] && u.bound[a](m), h && Gn(i, a)), f;
316
- }) : [], u.update(), h = !0, be(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
314
+ const g = d.length ? d[0] : f;
315
+ return u.ctx && r(u.ctx[a], u.ctx[a] = g) && (!u.skip_bound && u.bound[a] && u.bound[a](g), h && Qn(i, a)), f;
316
+ }) : [], u.update(), h = !0, ve(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
317
317
  if (e.hydrate) {
318
- const a = Rn(e.target);
318
+ const a = An(e.target);
319
319
  u.fragment && u.fragment.l(a), a.forEach(U);
320
320
  } else
321
321
  u.fragment && u.fragment.c();
322
- e.intro && Z(i.$$.fragment), pe(i, e.target, e.anchor), Fi();
322
+ e.intro && Z(i.$$.fragment), ye(i, e.target, e.anchor), qi();
323
323
  }
324
- qe(c);
324
+ He(c);
325
325
  }
326
- class ke {
326
+ class Pe {
327
327
  constructor() {
328
328
  /**
329
329
  * ### PRIVATE API
@@ -332,7 +332,7 @@ class ke {
332
332
  *
333
333
  * @type {any}
334
334
  */
335
- kt(this, "$$");
335
+ Pt(this, "$$");
336
336
  /**
337
337
  * ### PRIVATE API
338
338
  *
@@ -340,11 +340,11 @@ class ke {
340
340
  *
341
341
  * @type {any}
342
342
  */
343
- kt(this, "$$set");
343
+ Pt(this, "$$set");
344
344
  }
345
345
  /** @returns {void} */
346
346
  $destroy() {
347
- ye(this, 1), this.$destroy = D;
347
+ be(this, 1), this.$destroy = D;
348
348
  }
349
349
  /**
350
350
  * @template {Extract<keyof Events, string>} K
@@ -353,7 +353,7 @@ class ke {
353
353
  * @returns {() => void}
354
354
  */
355
355
  $on(e, t) {
356
- if (!Wi(t))
356
+ if (!Ui(t))
357
357
  return D;
358
358
  const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
359
359
  return n.push(t), () => {
@@ -366,19 +366,19 @@ class ke {
366
366
  * @returns {void}
367
367
  */
368
368
  $set(e) {
369
- this.$$set && !xn(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
369
+ this.$$set && !Nn(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
370
370
  }
371
371
  }
372
- const jn = "4";
373
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(jn);
374
- function qn(i) {
372
+ const Hn = "4";
373
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Hn);
374
+ function Vn(i) {
375
375
  let e, t;
376
376
  return {
377
377
  c() {
378
- e = ce("svg"), t = ce("path"), p(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"), p(e, "viewBox", "0 0 14 14"), p(e, "width", "13"), p(e, "height", "13"), p(e, "class", "svelte-en2qvf");
378
+ e = fe("svg"), t = fe("path"), p(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"), p(e, "viewBox", "0 0 14 14"), p(e, "width", "13"), p(e, "height", "13"), p(e, "class", "svelte-en2qvf");
379
379
  },
380
380
  m(n, r) {
381
- F(n, e, r), I(e, t);
381
+ G(n, e, r), O(e, t);
382
382
  },
383
383
  p: D,
384
384
  i: D,
@@ -388,19 +388,19 @@ function qn(i) {
388
388
  }
389
389
  };
390
390
  }
391
- class Gi extends ke {
391
+ class Zi extends Pe {
392
392
  constructor(e) {
393
- super(), Ce(this, e, null, qn, Me, {});
393
+ super(), Te(this, e, null, Vn, Ne, {});
394
394
  }
395
395
  }
396
- function Zn(i) {
396
+ function Yn(i) {
397
397
  let e, t;
398
398
  return {
399
399
  c() {
400
- e = ce("svg"), t = ce("path"), p(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"), p(e, "viewBox", "0 0 30 30"), p(e, "fill", "none"), p(e, "xmlns", "http://www.w3.org/2000/svg"), p(e, "class", "svelte-d2loi5");
400
+ e = fe("svg"), t = fe("path"), p(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"), p(e, "viewBox", "0 0 30 30"), p(e, "fill", "none"), p(e, "xmlns", "http://www.w3.org/2000/svg"), p(e, "class", "svelte-d2loi5");
401
401
  },
402
402
  m(n, r) {
403
- F(n, e, r), I(e, t);
403
+ G(n, e, r), O(e, t);
404
404
  },
405
405
  p: D,
406
406
  i: D,
@@ -410,16 +410,16 @@ function Zn(i) {
410
410
  }
411
411
  };
412
412
  }
413
- class ji extends ke {
413
+ class Qi extends Pe {
414
414
  constructor(e) {
415
- super(), Ce(this, e, null, Zn, Me, {});
415
+ super(), Te(this, e, null, Yn, Ne, {});
416
416
  }
417
417
  }
418
- function Qn(i) {
418
+ function Xn(i) {
419
419
  let e, t;
420
420
  return {
421
421
  c() {
422
- e = B("img"), X(e.src, t = /*iconsBaseUrl*/
422
+ e = W("img"), K(e.src, t = /*iconsBaseUrl*/
423
423
  i[3] + "area.svg") || p(e, "src", t), p(
424
424
  e,
425
425
  "alt",
@@ -433,11 +433,11 @@ function Qn(i) {
433
433
  ), p(e, "class", "svelte-z7p9pp");
434
434
  },
435
435
  m(n, r) {
436
- F(n, e, r);
436
+ G(n, e, r);
437
437
  },
438
438
  p(n, r) {
439
439
  r & /*iconsBaseUrl*/
440
- 8 && !X(e.src, t = /*iconsBaseUrl*/
440
+ 8 && !K(e.src, t = /*iconsBaseUrl*/
441
441
  n[3] + "area.svg") && p(e, "src", t), r & /*placeType*/
442
442
  64 && p(
443
443
  e,
@@ -457,11 +457,11 @@ function Qn(i) {
457
457
  }
458
458
  };
459
459
  }
460
- function Hn(i) {
460
+ function Kn(i) {
461
461
  let e, t;
462
462
  return {
463
463
  c() {
464
- e = B("img"), X(e.src, t = /*iconsBaseUrl*/
464
+ e = W("img"), K(e.src, t = /*iconsBaseUrl*/
465
465
  i[3] + "reverse.svg") || p(e, "src", t), p(
466
466
  e,
467
467
  "alt",
@@ -475,11 +475,11 @@ function Hn(i) {
475
475
  ), p(e, "class", "svelte-z7p9pp");
476
476
  },
477
477
  m(n, r) {
478
- F(n, e, r);
478
+ G(n, e, r);
479
479
  },
480
480
  p(n, r) {
481
481
  r & /*iconsBaseUrl*/
482
- 8 && !X(e.src, t = /*iconsBaseUrl*/
482
+ 8 && !K(e.src, t = /*iconsBaseUrl*/
483
483
  n[3] + "reverse.svg") && p(e, "src", t), r & /*placeType*/
484
484
  64 && p(
485
485
  e,
@@ -499,11 +499,11 @@ function Hn(i) {
499
499
  }
500
500
  };
501
501
  }
502
- function Vn(i) {
502
+ function Jn(i) {
503
503
  let e, t;
504
504
  return {
505
505
  c() {
506
- e = B("img"), X(e.src, t = /*iconsBaseUrl*/
506
+ e = W("img"), K(e.src, t = /*iconsBaseUrl*/
507
507
  i[3] + "poi.svg") || p(e, "src", t), p(
508
508
  e,
509
509
  "alt",
@@ -517,11 +517,11 @@ function Vn(i) {
517
517
  ), p(e, "class", "svelte-z7p9pp");
518
518
  },
519
519
  m(n, r) {
520
- F(n, e, r);
520
+ G(n, e, r);
521
521
  },
522
522
  p(n, r) {
523
523
  r & /*iconsBaseUrl*/
524
- 8 && !X(e.src, t = /*iconsBaseUrl*/
524
+ 8 && !K(e.src, t = /*iconsBaseUrl*/
525
525
  n[3] + "poi.svg") && p(e, "src", t), r & /*placeType*/
526
526
  64 && p(
527
527
  e,
@@ -541,11 +541,11 @@ function Vn(i) {
541
541
  }
542
542
  };
543
543
  }
544
- function Yn(i) {
544
+ function $n(i) {
545
545
  let e, t;
546
546
  return {
547
547
  c() {
548
- e = B("img"), X(e.src, t = /*iconsBaseUrl*/
548
+ e = W("img"), K(e.src, t = /*iconsBaseUrl*/
549
549
  i[3] + "postal_code.svg") || p(e, "src", t), p(
550
550
  e,
551
551
  "alt",
@@ -559,11 +559,11 @@ function Yn(i) {
559
559
  ), p(e, "class", "svelte-z7p9pp");
560
560
  },
561
561
  m(n, r) {
562
- F(n, e, r);
562
+ G(n, e, r);
563
563
  },
564
564
  p(n, r) {
565
565
  r & /*iconsBaseUrl*/
566
- 8 && !X(e.src, t = /*iconsBaseUrl*/
566
+ 8 && !K(e.src, t = /*iconsBaseUrl*/
567
567
  n[3] + "postal_code.svg") && p(e, "src", t), r & /*placeType*/
568
568
  64 && p(
569
569
  e,
@@ -583,11 +583,11 @@ function Yn(i) {
583
583
  }
584
584
  };
585
585
  }
586
- function Xn(i) {
586
+ function er(i) {
587
587
  let e, t;
588
588
  return {
589
589
  c() {
590
- e = B("img"), X(e.src, t = /*iconsBaseUrl*/
590
+ e = W("img"), K(e.src, t = /*iconsBaseUrl*/
591
591
  i[3] + "street.svg") || p(e, "src", t), p(
592
592
  e,
593
593
  "alt",
@@ -601,11 +601,11 @@ function Xn(i) {
601
601
  ), p(e, "class", "svelte-z7p9pp");
602
602
  },
603
603
  m(n, r) {
604
- F(n, e, r);
604
+ G(n, e, r);
605
605
  },
606
606
  p(n, r) {
607
607
  r & /*iconsBaseUrl*/
608
- 8 && !X(e.src, t = /*iconsBaseUrl*/
608
+ 8 && !K(e.src, t = /*iconsBaseUrl*/
609
609
  n[3] + "street.svg") && p(e, "src", t), r & /*placeType*/
610
610
  64 && p(
611
611
  e,
@@ -625,11 +625,11 @@ function Xn(i) {
625
625
  }
626
626
  };
627
627
  }
628
- function Kn(i) {
628
+ function tr(i) {
629
629
  let e, t;
630
630
  return {
631
631
  c() {
632
- e = B("img"), X(e.src, t = /*iconsBaseUrl*/
632
+ e = W("img"), K(e.src, t = /*iconsBaseUrl*/
633
633
  i[3] + "road.svg") || p(e, "src", t), p(
634
634
  e,
635
635
  "alt",
@@ -643,11 +643,11 @@ function Kn(i) {
643
643
  ), p(e, "class", "svelte-z7p9pp");
644
644
  },
645
645
  m(n, r) {
646
- F(n, e, r);
646
+ G(n, e, r);
647
647
  },
648
648
  p(n, r) {
649
649
  r & /*iconsBaseUrl*/
650
- 8 && !X(e.src, t = /*iconsBaseUrl*/
650
+ 8 && !K(e.src, t = /*iconsBaseUrl*/
651
651
  n[3] + "road.svg") && p(e, "src", t), r & /*placeType*/
652
652
  64 && p(
653
653
  e,
@@ -667,11 +667,11 @@ function Kn(i) {
667
667
  }
668
668
  };
669
669
  }
670
- function Jn(i) {
670
+ function ir(i) {
671
671
  let e, t;
672
672
  return {
673
673
  c() {
674
- e = B("img"), X(e.src, t = /*iconsBaseUrl*/
674
+ e = W("img"), K(e.src, t = /*iconsBaseUrl*/
675
675
  i[3] + "housenumber.svg") || p(e, "src", t), p(
676
676
  e,
677
677
  "alt",
@@ -685,11 +685,11 @@ function Jn(i) {
685
685
  ), p(e, "class", "svelte-z7p9pp");
686
686
  },
687
687
  m(n, r) {
688
- F(n, e, r);
688
+ G(n, e, r);
689
689
  },
690
690
  p(n, r) {
691
691
  r & /*iconsBaseUrl*/
692
- 8 && !X(e.src, t = /*iconsBaseUrl*/
692
+ 8 && !K(e.src, t = /*iconsBaseUrl*/
693
693
  n[3] + "housenumber.svg") && p(e, "src", t), r & /*placeType*/
694
694
  64 && p(
695
695
  e,
@@ -709,11 +709,11 @@ function Jn(i) {
709
709
  }
710
710
  };
711
711
  }
712
- function $n(i) {
712
+ function nr(i) {
713
713
  let e, t, n, r;
714
714
  return {
715
715
  c() {
716
- e = B("img"), X(e.src, t = /*imageUrl*/
716
+ e = W("img"), K(e.src, t = /*imageUrl*/
717
717
  i[5]) || p(e, "src", t), p(
718
718
  e,
719
719
  "alt",
@@ -727,7 +727,7 @@ function $n(i) {
727
727
  ), p(e, "class", "svelte-z7p9pp");
728
728
  },
729
729
  m(o, l) {
730
- F(o, e, l), n || (r = H(
730
+ G(o, e, l), n || (r = H(
731
731
  e,
732
732
  "error",
733
733
  /*error_handler*/
@@ -736,7 +736,7 @@ function $n(i) {
736
736
  },
737
737
  p(o, l) {
738
738
  l & /*imageUrl*/
739
- 32 && !X(e.src, t = /*imageUrl*/
739
+ 32 && !K(e.src, t = /*imageUrl*/
740
740
  o[5]) && p(e, "src", t), l & /*category*/
741
741
  16 && p(
742
742
  e,
@@ -756,21 +756,21 @@ function $n(i) {
756
756
  }
757
757
  };
758
758
  }
759
- function li(i) {
759
+ function ci(i) {
760
760
  let e, t;
761
761
  return {
762
762
  c() {
763
- e = B("span"), t = Le(
763
+ e = W("span"), t = Me(
764
764
  /*placeType*/
765
765
  i[6]
766
766
  ), p(e, "class", "secondary svelte-z7p9pp");
767
767
  },
768
768
  m(n, r) {
769
- F(n, e, r), I(e, t);
769
+ G(n, e, r), O(e, t);
770
770
  },
771
771
  p(n, r) {
772
772
  r & /*placeType*/
773
- 64 && Ze(
773
+ 64 && Ve(
774
774
  t,
775
775
  /*placeType*/
776
776
  n[6]
@@ -781,7 +781,7 @@ function li(i) {
781
781
  }
782
782
  };
783
783
  }
784
- function er(i) {
784
+ function rr(i) {
785
785
  let e, t, n, r, o, l, s, c, u, h = (
786
786
  /*isReverse*/
787
787
  (i[8] ? (
@@ -802,43 +802,43 @@ function er(i) {
802
802
  i[0].id.startsWith("poi.") || !/*imageUrl*/
803
803
  i[5]) && !/*isReverse*/
804
804
  i[8]
805
- ), m, b, v = (
805
+ ), g, b, v = (
806
806
  /*isReverse*/
807
807
  (i[8] ? "" : (
808
808
  /*feature*/
809
809
  i[0].place_name.replace(/[^,]*,?\s*/, "")
810
810
  )) + ""
811
- ), y, E, _, L, P, N;
812
- function x(M, R) {
813
- return R & /*feature*/
814
- 1 && (t = null), R & /*feature*/
815
- 1 && (n = null), R & /*feature*/
816
- 1 && (r = null), R & /*feature*/
811
+ ), y, E, _, L, T, N;
812
+ function x(M, I) {
813
+ return I & /*feature*/
814
+ 1 && (t = null), I & /*feature*/
815
+ 1 && (n = null), I & /*feature*/
816
+ 1 && (r = null), I & /*feature*/
817
817
  1 && (o = null), /*imageUrl*/
818
- M[5] ? $n : (
818
+ M[5] ? nr : (
819
819
  /*feature*/
820
- M[0].address ? Jn : (t == null && (t = !!/*feature*/
821
- M[0].id.startsWith("road.")), t ? Kn : (n == null && (n = !!/*feature*/
822
- M[0].id.startsWith("address.")), n ? Xn : (r == null && (r = !!/*feature*/
823
- M[0].id.startsWith("postal_code.")), r ? Yn : (o == null && (o = !!/*feature*/
824
- M[0].id.startsWith("poi.")), o ? Vn : (
820
+ M[0].address ? ir : (t == null && (t = !!/*feature*/
821
+ M[0].id.startsWith("road.")), t ? tr : (n == null && (n = !!/*feature*/
822
+ M[0].id.startsWith("address.")), n ? er : (r == null && (r = !!/*feature*/
823
+ M[0].id.startsWith("postal_code.")), r ? $n : (o == null && (o = !!/*feature*/
824
+ M[0].id.startsWith("poi.")), o ? Jn : (
825
825
  /*isReverse*/
826
- M[8] ? Hn : Qn
826
+ M[8] ? Kn : Xn
827
827
  )))))
828
828
  );
829
829
  }
830
- let S = x(i, -1), T = S(i), w = d && li(i);
830
+ let S = x(i, -1), P = S(i), w = d && ci(i);
831
831
  return {
832
832
  c() {
833
- e = B("li"), T.c(), l = ne(), s = B("span"), c = B("span"), u = B("span"), a = Le(h), f = ne(), w && w.c(), m = ne(), b = B("span"), y = Le(v), p(u, "class", "primary svelte-z7p9pp"), p(c, "class", "svelte-z7p9pp"), p(b, "class", "line2 svelte-z7p9pp"), p(s, "class", "texts svelte-z7p9pp"), p(e, "tabindex", "-1"), p(e, "role", "option"), p(e, "aria-selected", E = /*style*/
833
+ e = W("li"), P.c(), l = ie(), s = W("span"), c = W("span"), u = W("span"), a = Me(h), f = ie(), w && w.c(), g = ie(), b = W("span"), y = Me(v), p(u, "class", "primary svelte-z7p9pp"), p(c, "class", "svelte-z7p9pp"), p(b, "class", "line2 svelte-z7p9pp"), p(s, "class", "texts svelte-z7p9pp"), p(e, "tabindex", "-1"), p(e, "role", "option"), p(e, "aria-selected", E = /*style*/
834
834
  i[1] === "selected"), p(e, "aria-checked", _ = /*style*/
835
- i[1] === "picked"), p(e, "class", L = dt(
835
+ i[1] === "picked"), p(e, "class", L = gt(
836
836
  /*style*/
837
837
  i[1]
838
838
  ) + " svelte-z7p9pp");
839
839
  },
840
- m(M, R) {
841
- F(M, e, R), T.m(e, null), I(e, l), I(e, s), I(s, c), I(c, u), I(u, a), I(c, f), w && w.m(c, null), I(s, m), I(s, b), I(b, y), P || (N = [
840
+ m(M, I) {
841
+ G(M, e, I), P.m(e, null), O(e, l), O(e, s), O(s, c), O(c, u), O(u, a), O(c, f), w && w.m(c, null), O(s, g), O(s, b), O(b, y), T || (N = [
842
842
  H(
843
843
  e,
844
844
  "mouseenter",
@@ -857,10 +857,10 @@ function er(i) {
857
857
  /*click_handler*/
858
858
  i[16]
859
859
  )
860
- ], P = !0);
860
+ ], T = !0);
861
861
  },
862
- p(M, [R]) {
863
- S === (S = x(M, R)) && T ? T.p(M, R) : (T.d(1), T = S(M), T && (T.c(), T.m(e, l))), R & /*feature*/
862
+ p(M, [I]) {
863
+ S === (S = x(M, I)) && P ? P.p(M, I) : (P.d(1), P = S(M), P && (P.c(), P.m(e, l))), I & /*feature*/
864
864
  1 && h !== (h = /*isReverse*/
865
865
  (M[8] ? (
866
866
  /*feature*/
@@ -868,7 +868,7 @@ function er(i) {
868
868
  ) : (
869
869
  /*feature*/
870
870
  M[0].place_name.replace(/,.*/, "")
871
- )) + "") && Ze(a, h), R & /*showPlaceType, feature, imageUrl*/
871
+ )) + "") && Ve(a, h), I & /*showPlaceType, feature, imageUrl*/
872
872
  37 && (d = /*showPlaceType*/
873
873
  M[2] === "always" || /*showPlaceType*/
874
874
  M[2] !== "never" && !/*feature*/
@@ -878,17 +878,17 @@ function er(i) {
878
878
  M[0].id.startsWith("postal_code.") && (!/*feature*/
879
879
  M[0].id.startsWith("poi.") || !/*imageUrl*/
880
880
  M[5]) && !/*isReverse*/
881
- M[8]), d ? w ? w.p(M, R) : (w = li(M), w.c(), w.m(c, null)) : w && (w.d(1), w = null), R & /*feature*/
881
+ M[8]), d ? w ? w.p(M, I) : (w = ci(M), w.c(), w.m(c, null)) : w && (w.d(1), w = null), I & /*feature*/
882
882
  1 && v !== (v = /*isReverse*/
883
883
  (M[8] ? "" : (
884
884
  /*feature*/
885
885
  M[0].place_name.replace(/[^,]*,?\s*/, "")
886
- )) + "") && Ze(y, v), R & /*style*/
886
+ )) + "") && Ve(y, v), I & /*style*/
887
887
  2 && E !== (E = /*style*/
888
- M[1] === "selected") && p(e, "aria-selected", E), R & /*style*/
888
+ M[1] === "selected") && p(e, "aria-selected", E), I & /*style*/
889
889
  2 && _ !== (_ = /*style*/
890
- M[1] === "picked") && p(e, "aria-checked", _), R & /*style*/
891
- 2 && L !== (L = dt(
890
+ M[1] === "picked") && p(e, "aria-checked", _), I & /*style*/
891
+ 2 && L !== (L = gt(
892
892
  /*style*/
893
893
  M[1]
894
894
  ) + " svelte-z7p9pp") && p(e, "class", L);
@@ -896,20 +896,20 @@ function er(i) {
896
896
  i: D,
897
897
  o: D,
898
898
  d(M) {
899
- M && U(e), T.d(), w && w.d(), P = !1, be(N);
899
+ M && U(e), P.d(), w && w.d(), T = !1, ve(N);
900
900
  }
901
901
  };
902
902
  }
903
- function tr(i, e, t) {
904
- var P;
903
+ function or(i, e, t) {
904
+ var T;
905
905
  let n, r, { feature: o } = e, { style: l = "default" } = e, { showPlaceType: s } = e, { missingIconsCache: c } = e, { iconsBaseUrl: u } = e;
906
- const h = Ui(), a = (P = o.properties) == null ? void 0 : P.categories;
907
- let f, d, m = 0, b = o.place_type[0] === "reverse";
906
+ const h = ji(), a = (T = o.properties) == null ? void 0 : T.categories;
907
+ let f, d, g = 0, b = o.place_type[0] === "reverse";
908
908
  function v() {
909
- d && c.add(d), t(11, m++, m);
909
+ d && c.add(d), t(11, g++, g);
910
910
  }
911
911
  function y(N) {
912
- zn.call(this, i, N);
912
+ Dn.call(this, i, N);
913
913
  }
914
914
  const E = () => v(), _ = () => h("select", void 0), L = (N) => {
915
915
  document.activeElement !== N.target && h("select", void 0);
@@ -917,14 +917,14 @@ function tr(i, e, t) {
917
917
  return i.$$set = (N) => {
918
918
  "feature" in N && t(0, o = N.feature), "style" in N && t(1, l = N.style), "showPlaceType" in N && t(2, s = N.showPlaceType), "missingIconsCache" in N && t(10, c = N.missingIconsCache), "iconsBaseUrl" in N && t(3, u = N.iconsBaseUrl);
919
919
  }, i.$$.update = () => {
920
- var N, x, S, T;
920
+ var N, x, S, P;
921
921
  if (i.$$.dirty & /*loadIconAttempt, index, category, iconsBaseUrl, imageUrl, missingIconsCache*/
922
922
  7224)
923
923
  do
924
924
  t(12, n--, n), t(4, f = a == null ? void 0 : a[n]), t(5, d = f ? u + f.replace(/ /g, "_") + ".svg" : void 0);
925
925
  while (n > -1 && (!d || c.has(d)));
926
926
  i.$$.dirty & /*feature*/
927
- 1 && t(6, r = ((x = (N = o.properties) == null ? void 0 : N.categories) == null ? void 0 : x.join(", ")) ?? ((T = (S = o.properties) == null ? void 0 : S.place_type_name) == null ? void 0 : T[0]) ?? o.place_type[0]);
927
+ 1 && t(6, r = ((x = (N = o.properties) == null ? void 0 : N.categories) == null ? void 0 : x.join(", ")) ?? ((P = (S = o.properties) == null ? void 0 : S.place_type_name) == null ? void 0 : P[0]) ?? o.place_type[0]);
928
928
  }, t(12, n = (a == null ? void 0 : a.length) ?? 0), [
929
929
  o,
930
930
  l,
@@ -937,7 +937,7 @@ function tr(i, e, t) {
937
937
  b,
938
938
  v,
939
939
  c,
940
- m,
940
+ g,
941
941
  n,
942
942
  y,
943
943
  E,
@@ -945,9 +945,9 @@ function tr(i, e, t) {
945
945
  L
946
946
  ];
947
947
  }
948
- class ir extends ke {
948
+ class sr extends Pe {
949
949
  constructor(e) {
950
- super(), Ce(this, e, tr, er, Me, {
950
+ super(), Te(this, e, or, rr, Ne, {
951
951
  feature: 0,
952
952
  style: 1,
953
953
  showPlaceType: 2,
@@ -956,14 +956,14 @@ class ir extends ke {
956
956
  });
957
957
  }
958
958
  }
959
- function nr(i) {
959
+ function lr(i) {
960
960
  let e;
961
961
  return {
962
962
  c() {
963
- e = B("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>', p(e, "class", "svelte-7cmwmc");
963
+ e = W("div"), e.innerHTML = '<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>', p(e, "class", "svelte-7cmwmc");
964
964
  },
965
965
  m(t, n) {
966
- F(t, e, n);
966
+ G(t, e, n);
967
967
  },
968
968
  p: D,
969
969
  i: D,
@@ -973,22 +973,22 @@ function nr(i) {
973
973
  }
974
974
  };
975
975
  }
976
- class rr extends ke {
976
+ class ur extends Pe {
977
977
  constructor(e) {
978
- super(), Ce(this, e, null, nr, Me, {});
978
+ super(), Te(this, e, null, lr, Ne, {});
979
979
  }
980
980
  }
981
- function or(i) {
981
+ function ar(i) {
982
982
  let e, t, n;
983
983
  return {
984
984
  c() {
985
- e = ce("svg"), t = ce("path"), p(t, "stroke-width", "4"), p(t, "d", "M 5,33.103579 C 5,17.607779 18.457,5 35,5 C 51.543,5 65,17.607779 65,33.103579 C 65,56.388679 40.4668,76.048179 36.6112,79.137779 C 36.3714,79.329879 36.2116,79.457979 36.1427,79.518879 C 35.8203,79.800879 35.4102,79.942779 35,79.942779 C 34.5899,79.942779 34.1797,79.800879 33.8575,79.518879 C 33.7886,79.457979 33.6289,79.330079 33.3893,79.138079 C 29.5346,76.049279 5,56.389379 5,33.103579 Z M 35.0001,49.386379 C 43.1917,49.386379 49.8323,42.646079 49.8323,34.331379 C 49.8323,26.016779 43.1917,19.276479 35.0001,19.276479 C 26.8085,19.276479 20.1679,26.016779 20.1679,34.331379 C 20.1679,42.646079 26.8085,49.386379 35.0001,49.386379 Z"), p(t, "class", "svelte-gzo3ar"), p(e, "width", n = /*displayIn*/
986
- i[0] === "list" ? 20 : void 0), p(e, "viewBox", "0 0 70 85"), p(e, "fill", "none"), p(e, "class", "svelte-gzo3ar"), he(
985
+ e = fe("svg"), t = fe("path"), p(t, "stroke-width", "4"), p(t, "d", "M 5,33.103579 C 5,17.607779 18.457,5 35,5 C 51.543,5 65,17.607779 65,33.103579 C 65,56.388679 40.4668,76.048179 36.6112,79.137779 C 36.3714,79.329879 36.2116,79.457979 36.1427,79.518879 C 35.8203,79.800879 35.4102,79.942779 35,79.942779 C 34.5899,79.942779 34.1797,79.800879 33.8575,79.518879 C 33.7886,79.457979 33.6289,79.330079 33.3893,79.138079 C 29.5346,76.049279 5,56.389379 5,33.103579 Z M 35.0001,49.386379 C 43.1917,49.386379 49.8323,42.646079 49.8323,34.331379 C 49.8323,26.016779 43.1917,19.276479 35.0001,19.276479 C 26.8085,19.276479 20.1679,26.016779 20.1679,34.331379 C 20.1679,42.646079 26.8085,49.386379 35.0001,49.386379 Z"), p(t, "class", "svelte-gzo3ar"), p(e, "width", n = /*displayIn*/
986
+ i[0] === "list" ? 20 : void 0), p(e, "viewBox", "0 0 70 85"), p(e, "fill", "none"), p(e, "class", "svelte-gzo3ar"), me(
987
987
  e,
988
988
  "in-map",
989
989
  /*displayIn*/
990
990
  i[0] !== "list"
991
- ), he(
991
+ ), me(
992
992
  e,
993
993
  "list-icon",
994
994
  /*displayIn*/
@@ -996,19 +996,19 @@ function or(i) {
996
996
  );
997
997
  },
998
998
  m(r, o) {
999
- F(r, e, o), I(e, t);
999
+ G(r, e, o), O(e, t);
1000
1000
  },
1001
1001
  p(r, [o]) {
1002
1002
  o & /*displayIn*/
1003
1003
  1 && n !== (n = /*displayIn*/
1004
1004
  r[0] === "list" ? 20 : void 0) && p(e, "width", n), o & /*displayIn*/
1005
- 1 && he(
1005
+ 1 && me(
1006
1006
  e,
1007
1007
  "in-map",
1008
1008
  /*displayIn*/
1009
1009
  r[0] !== "list"
1010
1010
  ), o & /*displayIn*/
1011
- 1 && he(
1011
+ 1 && me(
1012
1012
  e,
1013
1013
  "list-icon",
1014
1014
  /*displayIn*/
@@ -1022,25 +1022,25 @@ function or(i) {
1022
1022
  }
1023
1023
  };
1024
1024
  }
1025
- function sr(i, e, t) {
1025
+ function cr(i, e, t) {
1026
1026
  let { displayIn: n } = e;
1027
1027
  return i.$$set = (r) => {
1028
1028
  "displayIn" in r && t(0, n = r.displayIn);
1029
1029
  }, [n];
1030
1030
  }
1031
- class lr extends ke {
1031
+ class fr extends Pe {
1032
1032
  constructor(e) {
1033
- super(), Ce(this, e, sr, or, Me, { displayIn: 0 });
1033
+ super(), Te(this, e, cr, ar, Ne, { displayIn: 0 });
1034
1034
  }
1035
1035
  }
1036
- function ur(i) {
1036
+ function dr(i) {
1037
1037
  let e, t;
1038
1038
  return {
1039
1039
  c() {
1040
- e = ce("svg"), t = ce("path"), p(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"), p(e, "viewBox", "0 0 60.006 21.412"), p(e, "width", "14"), p(e, "height", "20"), p(e, "class", "svelte-en2qvf");
1040
+ e = fe("svg"), t = fe("path"), p(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"), p(e, "viewBox", "0 0 60.006 21.412"), p(e, "width", "14"), p(e, "height", "20"), p(e, "class", "svelte-en2qvf");
1041
1041
  },
1042
1042
  m(n, r) {
1043
- F(n, e, r), I(e, t);
1043
+ G(n, e, r), O(e, t);
1044
1044
  },
1045
1045
  p: D,
1046
1046
  i: D,
@@ -1050,19 +1050,19 @@ function ur(i) {
1050
1050
  }
1051
1051
  };
1052
1052
  }
1053
- class ar extends ke {
1053
+ class hr extends Pe {
1054
1054
  constructor(e) {
1055
- super(), Ce(this, e, null, ur, Me, {});
1055
+ super(), Te(this, e, null, dr, Ne, {});
1056
1056
  }
1057
1057
  }
1058
- function cr(i) {
1058
+ function mr(i) {
1059
1059
  let e, t, n;
1060
1060
  return {
1061
1061
  c() {
1062
- e = ce("svg"), t = ce("circle"), n = ce("path"), p(t, "cx", "4.789"), p(t, "cy", "4.787"), p(t, "r", "3.85"), p(t, "class", "svelte-1aq105l"), p(n, "d", "M12.063 12.063 7.635 7.635"), p(n, "class", "svelte-1aq105l"), p(e, "xmlns", "http://www.w3.org/2000/svg"), p(e, "width", "13"), p(e, "height", "13"), p(e, "viewBox", "0 0 13 13"), p(e, "class", "svelte-1aq105l");
1062
+ e = fe("svg"), t = fe("circle"), n = fe("path"), p(t, "cx", "4.789"), p(t, "cy", "4.787"), p(t, "r", "3.85"), p(t, "class", "svelte-1aq105l"), p(n, "d", "M12.063 12.063 7.635 7.635"), p(n, "class", "svelte-1aq105l"), p(e, "xmlns", "http://www.w3.org/2000/svg"), p(e, "width", "13"), p(e, "height", "13"), p(e, "viewBox", "0 0 13 13"), p(e, "class", "svelte-1aq105l");
1063
1063
  },
1064
1064
  m(r, o) {
1065
- F(r, e, o), I(e, t), I(e, n);
1065
+ G(r, e, o), O(e, t), O(e, n);
1066
1066
  },
1067
1067
  p: D,
1068
1068
  i: D,
@@ -1072,31 +1072,31 @@ function cr(i) {
1072
1072
  }
1073
1073
  };
1074
1074
  }
1075
- class fr extends ke {
1075
+ class gr extends Pe {
1076
1076
  constructor(e) {
1077
- super(), Ce(this, e, null, cr, Me, {});
1077
+ super(), Te(this, e, null, mr, Ne, {});
1078
1078
  }
1079
1079
  }
1080
- function dr(i, e, t) {
1080
+ function pr(i, e, t) {
1081
1081
  const n = e[1], r = e[0], o = n - r;
1082
1082
  return i === n && t ? i : ((i - r) % o + o) % o + r;
1083
1083
  }
1084
- function He(i) {
1084
+ function Xe(i) {
1085
1085
  const e = [...i];
1086
1086
  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;
1087
1087
  }
1088
- let Fe;
1089
- async function hr(i, e, t) {
1088
+ let qe;
1089
+ async function yr(i, e, t) {
1090
1090
  const n = i == null ? void 0 : i.getCenterAndZoom();
1091
1091
  for (const r of e ?? [])
1092
1092
  if (!(n && (r.minZoom != null && r.minZoom > n[0] || r.maxZoom != null && r.maxZoom < n[0]))) {
1093
1093
  if (r.type === "fixed")
1094
1094
  return r.coordinates.join(",");
1095
1095
  e: if (r.type === "client-geolocation") {
1096
- if (Fe && r.cachedLocationExpiry && Fe.time + r.cachedLocationExpiry > Date.now()) {
1097
- if (!Fe.coords)
1096
+ if (qe && r.cachedLocationExpiry && qe.time + r.cachedLocationExpiry > Date.now()) {
1097
+ if (!qe.coords)
1098
1098
  break e;
1099
- return Fe.coords;
1099
+ return qe.coords;
1100
1100
  }
1101
1101
  let o;
1102
1102
  try {
@@ -1117,7 +1117,7 @@ async function hr(i, e, t) {
1117
1117
  }), o;
1118
1118
  } catch {
1119
1119
  } finally {
1120
- r.cachedLocationExpiry && (Fe = {
1120
+ r.cachedLocationExpiry && (qe = {
1121
1121
  time: Date.now(),
1122
1122
  coords: o
1123
1123
  });
@@ -1131,8 +1131,8 @@ async function hr(i, e, t) {
1131
1131
  return n[1].toFixed(6) + "," + n[2].toFixed(6);
1132
1132
  }
1133
1133
  }
1134
- const gr = /^(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, ui = /^([+-]?[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,})$/, ai = /^(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, ci = /^(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, fi = /^(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, di = /^(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;
1135
- function mr(i) {
1134
+ const br = /^(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, fi = /^([+-]?[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,})$/, di = /^(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, hi = /^(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, mi = /^(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, gi = /^(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;
1135
+ function vr(i) {
1136
1136
  if (!["DMS", "DM", "DD"].includes(i))
1137
1137
  throw new Error("invalid format specified");
1138
1138
  if (this.decimalCoordinates && this.decimalCoordinates.trim()) {
@@ -1141,35 +1141,35 @@ function mr(i) {
1141
1141
  i == "DD" && (c = `${r}° ${l}, ${o}° ${s}`);
1142
1142
  const u = Math.floor(r), h = Math.floor(o), a = (r - u) * 60, f = (o - h) * 60;
1143
1143
  if (i == "DM") {
1144
- let d = hi(a, 3).toFixed(3).padStart(6, "0"), m = hi(f, 3).toFixed(3).padStart(6, "0");
1145
- d.endsWith(".000") && m.endsWith(".000") && (d = d.replace(/\.000$/, ""), m = m.replace(/\.000$/, "")), c = `${u}° ${d}' ${l}, ${h}° ${m}' ${s}`;
1144
+ let d = pi(a, 3).toFixed(3).padStart(6, "0"), g = pi(f, 3).toFixed(3).padStart(6, "0");
1145
+ d.endsWith(".000") && g.endsWith(".000") && (d = d.replace(/\.000$/, ""), g = g.replace(/\.000$/, "")), c = `${u}° ${d}' ${l}, ${h}° ${g}' ${s}`;
1146
1146
  }
1147
1147
  if (i == "DMS") {
1148
- const d = Math.floor(a), m = Math.floor(f);
1149
- let b = ((a - d) * 60).toFixed(1).padStart(4, "0"), v = ((f - m) * 60).toFixed(1).padStart(4, "0");
1150
- const y = d.toString().padStart(2, "0"), E = m.toString().padStart(2, "0");
1148
+ const d = Math.floor(a), g = Math.floor(f);
1149
+ let b = ((a - d) * 60).toFixed(1).padStart(4, "0"), v = ((f - g) * 60).toFixed(1).padStart(4, "0");
1150
+ const y = d.toString().padStart(2, "0"), E = g.toString().padStart(2, "0");
1151
1151
  b.endsWith(".0") && v.endsWith(".0") && (b = b.replace(/\.0$/, ""), v = v.replace(/\.0$/, "")), c = `${u}° ${y}' ${b}" ${l}, ${h}° ${E}' ${v}" ${s}`;
1152
1152
  }
1153
1153
  return c;
1154
1154
  } else
1155
1155
  throw new Error("no decimal coordinates to convert");
1156
1156
  }
1157
- function hi(i, e) {
1157
+ function pi(i, e) {
1158
1158
  const t = Math.pow(10, e);
1159
1159
  return Math.round((i + Number.EPSILON) * t) / t;
1160
1160
  }
1161
- function jt(i, e) {
1161
+ function Qt(i, e) {
1162
1162
  e || (e = 5), i = i.replace(/\s+/g, " ").trim();
1163
1163
  let t = null, n = null, r = "", o = "", l = null, s = [], c = !1;
1164
- if (gr.test(i))
1164
+ if (br.test(i))
1165
1165
  throw new Error("invalid coordinate value");
1166
- if (ui.test(i))
1167
- if (s = ui.exec(i), c = Ge(s), c)
1166
+ if (fi.test(i))
1167
+ if (s = fi.exec(i), c = Ze(s), c)
1168
1168
  t = Math.abs(s[1]) + s[2] / 60, Number(s[1]) < 0 && (t *= -1), n = Math.abs(s[3]) + s[4] / 60, Number(s[3]) < 0 && (n *= -1), l = "DM";
1169
1169
  else
1170
1170
  throw new Error("invalid coordinate format");
1171
- else if (ai.test(i))
1172
- if (s = ai.exec(i), c = Ge(s), c) {
1171
+ else if (di.test(i))
1172
+ if (s = di.exec(i), c = Ze(s), c) {
1173
1173
  if (t = s[2], n = s[6], t.includes(",") && (t = t.replace(",", ".")), n.includes(",") && (n = n.replace(",", ".")), l = "DD", Number(Math.round(t)) == Number(t))
1174
1174
  throw new Error("integer only coordinate provided");
1175
1175
  if (Number(Math.round(n)) == Number(n))
@@ -1177,18 +1177,18 @@ function jt(i, e) {
1177
1177
  s[1] ? (r = s[1], o = s[5]) : s[4] && (r = s[4], o = s[8]);
1178
1178
  } else
1179
1179
  throw new Error("invalid decimal coordinate format");
1180
- else if (ci.test(i))
1181
- if (s = ci.exec(i), c = Ge(s), c)
1180
+ else if (hi.test(i))
1181
+ if (s = hi.exec(i), c = Ze(s), c)
1182
1182
  t = Math.abs(parseInt(s[2])), s[4] && (t += s[4] / 60, l = "DM"), s[6] && (t += s[6].replace(",", ".") / 3600, l = "DMS"), parseInt(s[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(s[9])), s[11] && (n += s[11] / 60), s[13] && (n += s[13].replace(",", ".") / 3600), parseInt(s[9]) < 0 && (n = -1 * n), s[1] ? (r = s[1], o = s[8]) : s[7] && (r = s[7], o = s[14]);
1183
1183
  else
1184
1184
  throw new Error("invalid DMS coordinates format");
1185
- else if (fi.test(i))
1186
- if (s = fi.exec(i), c = Ge(s), c)
1185
+ else if (mi.test(i))
1186
+ if (s = mi.exec(i), c = Ze(s), c)
1187
1187
  t = Math.abs(parseInt(s[2])), s[4] && (t += s[4] / 60, l = "DM"), s[6] && (t += s[6] / 3600, l = "DMS"), parseInt(s[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(s[10])), s[12] && (n += s[12] / 60), s[14] && (n += s[14] / 3600), parseInt(s[10]) < 0 && (n = -1 * n), s[1] ? (r = s[1], o = s[9]) : s[8] && (r = s[8], o = s[16]);
1188
1188
  else
1189
1189
  throw new Error("invalid DMS coordinates format");
1190
- else if (di.test(i)) {
1191
- if (s = di.exec(i), c = Ge(s), s.filter((u) => u).length <= 5)
1190
+ else if (gi.test(i)) {
1191
+ if (s = gi.exec(i), c = Ze(s), s.filter((u) => u).length <= 5)
1192
1192
  throw new Error("invalid coordinates format");
1193
1193
  if (c)
1194
1194
  t = Math.abs(parseInt(s[2])), s[4] && (t += s[4].replace(",", ".") / 60, l = "DM"), s[6] && (t += s[6].replace(",", ".") / 3600, l = "DMS"), parseInt(s[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(s[10])), s[12] && (n += s[12].replace(",", ".") / 60), s[14] && (n += s[14].replace(",", ".") / 3600), parseInt(s[10]) < 0 && (n = -1 * n), s[1] ? (r = s[1], o = s[9]) : s[8] && (r = s[8], o = s[16]);
@@ -1209,20 +1209,20 @@ function jt(i, e) {
1209
1209
  u.test(r) && t > 0 && (t = -1 * t), u = /W|WEST/i, u.test(o) && n > 0 && (n = -1 * n);
1210
1210
  const h = s[0].trim();
1211
1211
  let a, f;
1212
- const d = /[,/;\u0020]/g, m = h.match(d);
1213
- if (m == null) {
1212
+ const d = /[,/;\u0020]/g, g = h.match(d);
1213
+ if (g == null) {
1214
1214
  const y = Math.floor(i.length / 2);
1215
1215
  a = h.substring(0, y).trim(), f = h.substring(y).trim();
1216
1216
  } else {
1217
1217
  let y;
1218
- m.length % 2 == 1 ? y = Math.floor(m.length / 2) : y = m.length / 2 - 1;
1218
+ g.length % 2 == 1 ? y = Math.floor(g.length / 2) : y = g.length / 2 - 1;
1219
1219
  let E = 0;
1220
1220
  if (y == 0)
1221
- E = h.indexOf(m[0]), a = h.substring(0, E).trim(), f = h.substring(E + 1).trim();
1221
+ E = h.indexOf(g[0]), a = h.substring(0, E).trim(), f = h.substring(E + 1).trim();
1222
1222
  else {
1223
1223
  let _ = 0, L = 0;
1224
1224
  for (; _ <= y; )
1225
- E = h.indexOf(m[_], L), L = E + 1, _++;
1225
+ E = h.indexOf(g[_], L), L = E + 1, _++;
1226
1226
  a = h.substring(0, E).trim(), f = h.substring(E + 1).trim();
1227
1227
  }
1228
1228
  }
@@ -1242,13 +1242,13 @@ function jt(i, e) {
1242
1242
  decimalLongitude: n,
1243
1243
  decimalCoordinates: `${t},${n}`,
1244
1244
  originalFormat: l,
1245
- closeEnough: pr,
1246
- toCoordinateFormat: mr
1245
+ closeEnough: _r,
1246
+ toCoordinateFormat: vr
1247
1247
  });
1248
1248
  } else
1249
1249
  throw new Error("coordinates pattern match failed");
1250
1250
  }
1251
- function Ge(i) {
1251
+ function Ze(i) {
1252
1252
  if (!isNaN(i[0]))
1253
1253
  return !1;
1254
1254
  const e = [...i];
@@ -1267,28 +1267,28 @@ function Ge(i) {
1267
1267
  }
1268
1268
  return !0;
1269
1269
  }
1270
- function gi(i, e) {
1270
+ function yi(i, e) {
1271
1271
  const t = Math.abs(i - e);
1272
1272
  return Number(t.toFixed(6)) <= 1e-5;
1273
1273
  }
1274
- function pr(i) {
1274
+ function _r(i) {
1275
1275
  if (!i)
1276
1276
  throw new Error("coords must be provided");
1277
1277
  if (i.includes(",")) {
1278
1278
  const e = i.split(",");
1279
1279
  if (Number(e[0]) == NaN || Number(e[1]) == NaN)
1280
1280
  throw new Error("coords are not valid decimals");
1281
- return gi(this.decimalLatitude, Number(e[0])) && gi(this.decimalLongitude, e[1]);
1281
+ return yi(this.decimalLatitude, Number(e[0])) && yi(this.decimalLongitude, e[1]);
1282
1282
  } else
1283
1283
  throw new Error("coords being tested must be separated by a comma");
1284
1284
  }
1285
- const yr = Object.freeze({
1285
+ const wr = Object.freeze({
1286
1286
  DMS: "DMS",
1287
1287
  DM: "DM",
1288
1288
  DD: "DD"
1289
1289
  });
1290
- jt.to = yr;
1291
- const br = [
1290
+ Qt.to = wr;
1291
+ const Er = [
1292
1292
  {
1293
1293
  verbatimCoordinates: "40.123, -74.123",
1294
1294
  verbatimLatitude: "40.123",
@@ -1429,10 +1429,10 @@ const br = [
1429
1429
  verbatimLatitude: "40 7 22.8",
1430
1430
  verbatimLongitude: "-74 7 22.8"
1431
1431
  }
1432
- ], vr = {
1432
+ ], Lr = {
1433
1433
  decimalLatitude: 40.123,
1434
1434
  decimalLongitude: -74.123
1435
- }, _r = [
1435
+ }, Sr = [
1436
1436
  {
1437
1437
  verbatimCoordinates: `50°4'17.698"south, 14°24'2.826"east`,
1438
1438
  verbatimLatitude: `50°4'17.698"south`,
@@ -1517,7 +1517,7 @@ const br = [
1517
1517
  decimalLatitude: -18.4,
1518
1518
  decimalLongitude: 22.75
1519
1519
  }
1520
- ], wr = [
1520
+ ], xr = [
1521
1521
  {
1522
1522
  verbatimCoordinates: "10.432342S 10.6345345E",
1523
1523
  verbatimLatitude: "10.432342S",
@@ -1652,27 +1652,27 @@ const br = [
1652
1652
  decimalLongitude: 18.33453
1653
1653
  }
1654
1654
  ];
1655
- function Er() {
1655
+ function Mr() {
1656
1656
  const i = [];
1657
- return br.forEach((e) => {
1658
- e.decimalLatitude ? i.push(e) : i.push({ ...e, ...vr });
1659
- }), [...i, ..._r, ...wr];
1660
- }
1661
- const Lr = Er();
1662
- jt.formats = Lr.map((i) => i.verbatimCoordinates);
1663
- const Sr = jt;
1664
- function mi(i, e, t) {
1657
+ return Er.forEach((e) => {
1658
+ e.decimalLatitude ? i.push(e) : i.push({ ...e, ...Lr });
1659
+ }), [...i, ...Sr, ...xr];
1660
+ }
1661
+ const Cr = Mr();
1662
+ Qt.formats = Cr.map((i) => i.verbatimCoordinates);
1663
+ const kr = Qt;
1664
+ function bi(i, e, t) {
1665
1665
  const n = i.slice();
1666
- return n[91] = e[t], n[93] = t, n;
1666
+ return n[94] = e[t], n[96] = t, n;
1667
1667
  }
1668
- function pi(i) {
1668
+ function vi(i) {
1669
1669
  let e, t;
1670
- return e = new rr({}), {
1670
+ return e = new ur({}), {
1671
1671
  c() {
1672
- Se(e.$$.fragment);
1672
+ Ce(e.$$.fragment);
1673
1673
  },
1674
1674
  m(n, r) {
1675
- pe(e, n, r), t = !0;
1675
+ ye(e, n, r), t = !0;
1676
1676
  },
1677
1677
  i(n) {
1678
1678
  t || (Z(e.$$.fragment, n), t = !0);
@@ -1681,20 +1681,20 @@ function pi(i) {
1681
1681
  V(e.$$.fragment, n), t = !1;
1682
1682
  },
1683
1683
  d(n) {
1684
- ye(e, n);
1684
+ be(e, n);
1685
1685
  }
1686
1686
  };
1687
1687
  }
1688
- function yi(i) {
1688
+ function _i(i) {
1689
1689
  let e, t, n, r, o;
1690
- return t = new ar({}), {
1690
+ return t = new hr({}), {
1691
1691
  c() {
1692
- e = B("button"), Se(t.$$.fragment), p(e, "type", "button"), p(
1692
+ e = W("button"), Ce(t.$$.fragment), p(e, "type", "button"), p(
1693
1693
  e,
1694
1694
  "title",
1695
1695
  /*reverseButtonTitle*/
1696
1696
  i[10]
1697
- ), p(e, "class", "svelte-bz0zu3"), he(
1697
+ ), p(e, "class", "svelte-bz0zu3"), me(
1698
1698
  e,
1699
1699
  "active",
1700
1700
  /*reverseActive*/
@@ -1702,11 +1702,11 @@ function yi(i) {
1702
1702
  );
1703
1703
  },
1704
1704
  m(l, s) {
1705
- F(l, e, s), pe(t, e, null), n = !0, r || (o = H(
1705
+ G(l, e, s), ye(t, e, null), n = !0, r || (o = H(
1706
1706
  e,
1707
1707
  "click",
1708
1708
  /*click_handler_3*/
1709
- i[76]
1709
+ i[78]
1710
1710
  ), r = !0);
1711
1711
  },
1712
1712
  p(l, s) {
@@ -1717,7 +1717,7 @@ function yi(i) {
1717
1717
  /*reverseButtonTitle*/
1718
1718
  l[10]
1719
1719
  ), (!n || s[0] & /*reverseActive*/
1720
- 1) && he(
1720
+ 1) && me(
1721
1721
  e,
1722
1722
  "active",
1723
1723
  /*reverseActive*/
@@ -1731,34 +1731,34 @@ function yi(i) {
1731
1731
  V(t.$$.fragment, l), n = !1;
1732
1732
  },
1733
1733
  d(l) {
1734
- l && U(e), ye(t), r = !1, o();
1734
+ l && U(e), be(t), r = !1, o();
1735
1735
  }
1736
1736
  };
1737
1737
  }
1738
- function xr(i) {
1739
- let e, t = [], n = /* @__PURE__ */ new Map(), r, o, l, s = si(
1738
+ function Nr(i) {
1739
+ let e, t = [], n = /* @__PURE__ */ new Map(), r, o, l, s = ai(
1740
1740
  /*listFeatures*/
1741
1741
  i[13]
1742
1742
  );
1743
1743
  const c = (u) => (
1744
1744
  /*feature*/
1745
- u[91].id + /*feature*/
1746
- (u[91].address ? "," + /*feature*/
1747
- u[91].address : "")
1745
+ u[94].id + /*feature*/
1746
+ (u[94].address ? "," + /*feature*/
1747
+ u[94].address : "")
1748
1748
  );
1749
1749
  for (let u = 0; u < s.length; u += 1) {
1750
- let h = mi(i, s, u), a = c(h);
1751
- n.set(a, t[u] = bi(a, h));
1750
+ let h = bi(i, s, u), a = c(h);
1751
+ n.set(a, t[u] = wi(a, h));
1752
1752
  }
1753
1753
  return {
1754
1754
  c() {
1755
- e = B("ul");
1755
+ e = W("ul");
1756
1756
  for (let u = 0; u < t.length; u += 1)
1757
1757
  t[u].c();
1758
1758
  p(e, "class", "options svelte-bz0zu3"), p(e, "role", "listbox");
1759
1759
  },
1760
1760
  m(u, h) {
1761
- F(u, e, h);
1761
+ G(u, e, h);
1762
1762
  for (let a = 0; a < t.length; a += 1)
1763
1763
  t[a] && t[a].m(e, null);
1764
1764
  r = !0, o || (l = [
@@ -1772,7 +1772,7 @@ function xr(i) {
1772
1772
  e,
1773
1773
  "blur",
1774
1774
  /*blur_handler_1*/
1775
- i[80]
1775
+ i[82]
1776
1776
  ),
1777
1777
  H(
1778
1778
  e,
@@ -1784,10 +1784,10 @@ function xr(i) {
1784
1784
  },
1785
1785
  p(u, h) {
1786
1786
  h[0] & /*listFeatures, showPlaceType, selectedItemIndex, picked, missingIconsCache, iconsBaseUrl, handleMouseEnter, pick*/
1787
- 102823936 && (s = si(
1787
+ 102823936 && (s = ai(
1788
1788
  /*listFeatures*/
1789
1789
  u[13]
1790
- ), at(), t = Fn(t, h, c, 1, u, s, n, e, Un, bi, null, mi), ct());
1790
+ ), dt(), t = Zn(t, h, c, 1, u, s, n, e, qn, wi, null, bi), ht());
1791
1791
  },
1792
1792
  i(u) {
1793
1793
  if (!r) {
@@ -1805,25 +1805,25 @@ function xr(i) {
1805
1805
  u && U(e);
1806
1806
  for (let h = 0; h < t.length; h += 1)
1807
1807
  t[h].d();
1808
- o = !1, be(l);
1808
+ o = !1, ve(l);
1809
1809
  }
1810
1810
  };
1811
1811
  }
1812
- function Mr(i) {
1812
+ function Tr(i) {
1813
1813
  let e, t, n, r, o, l;
1814
- return t = new ji({}), {
1814
+ return t = new Qi({}), {
1815
1815
  c() {
1816
- e = B("div"), Se(t.$$.fragment), n = ne(), r = B("div"), o = Le(
1816
+ e = W("div"), Ce(t.$$.fragment), n = ie(), r = W("div"), o = Me(
1817
1817
  /*noResultsMessage*/
1818
1818
  i[8]
1819
1819
  ), p(r, "class", "svelte-bz0zu3"), p(e, "class", "no-results svelte-bz0zu3");
1820
1820
  },
1821
1821
  m(s, c) {
1822
- F(s, e, c), pe(t, e, null), I(e, n), I(e, r), I(r, o), l = !0;
1822
+ G(s, e, c), ye(t, e, null), O(e, n), O(e, r), O(r, o), l = !0;
1823
1823
  },
1824
1824
  p(s, c) {
1825
1825
  (!l || c[0] & /*noResultsMessage*/
1826
- 256) && Ze(
1826
+ 256) && Ve(
1827
1827
  o,
1828
1828
  /*noResultsMessage*/
1829
1829
  s[8]
@@ -1836,18 +1836,18 @@ function Mr(i) {
1836
1836
  V(t.$$.fragment, s), l = !1;
1837
1837
  },
1838
1838
  d(s) {
1839
- s && U(e), ye(t);
1839
+ s && U(e), be(t);
1840
1840
  }
1841
1841
  };
1842
1842
  }
1843
- function Cr(i) {
1843
+ function Pr(i) {
1844
1844
  let e = "", t;
1845
1845
  return {
1846
1846
  c() {
1847
- t = Le(e);
1847
+ t = Me(e);
1848
1848
  },
1849
1849
  m(n, r) {
1850
- F(n, t, r);
1850
+ G(n, t, r);
1851
1851
  },
1852
1852
  p: D,
1853
1853
  i: D,
@@ -1857,26 +1857,26 @@ function Cr(i) {
1857
1857
  }
1858
1858
  };
1859
1859
  }
1860
- function kr(i) {
1860
+ function Rr(i) {
1861
1861
  let e, t, n, r, o, l, s, c, u, h, a;
1862
- return t = new ji({}), c = new Gi({}), {
1862
+ return t = new Qi({}), c = new Zi({}), {
1863
1863
  c() {
1864
- e = B("div"), Se(t.$$.fragment), n = ne(), r = B("div"), o = Le(
1864
+ e = W("div"), Ce(t.$$.fragment), n = ie(), r = W("div"), o = Me(
1865
1865
  /*errorMessage*/
1866
1866
  i[7]
1867
- ), l = ne(), s = B("button"), Se(c.$$.fragment), p(r, "class", "svelte-bz0zu3"), p(s, "class", "svelte-bz0zu3"), p(e, "class", "error svelte-bz0zu3");
1867
+ ), l = ie(), s = W("button"), Ce(c.$$.fragment), p(r, "class", "svelte-bz0zu3"), p(s, "class", "svelte-bz0zu3"), p(e, "class", "error svelte-bz0zu3");
1868
1868
  },
1869
1869
  m(f, d) {
1870
- F(f, e, d), pe(t, e, null), I(e, n), I(e, r), I(r, o), I(e, l), I(e, s), pe(c, s, null), u = !0, h || (a = H(
1870
+ G(f, e, d), ye(t, e, null), O(e, n), O(e, r), O(r, o), O(e, l), O(e, s), ye(c, s, null), u = !0, h || (a = H(
1871
1871
  s,
1872
1872
  "click",
1873
1873
  /*click_handler_4*/
1874
- i[77]
1874
+ i[79]
1875
1875
  ), h = !0);
1876
1876
  },
1877
1877
  p(f, d) {
1878
1878
  (!u || d[0] & /*errorMessage*/
1879
- 128) && Ze(
1879
+ 128) && Ve(
1880
1880
  o,
1881
1881
  /*errorMessage*/
1882
1882
  f[7]
@@ -1889,36 +1889,36 @@ function kr(i) {
1889
1889
  V(t.$$.fragment, f), V(c.$$.fragment, f), u = !1;
1890
1890
  },
1891
1891
  d(f) {
1892
- f && U(e), ye(t), ye(c), h = !1, a();
1892
+ f && U(e), be(t), be(c), h = !1, a();
1893
1893
  }
1894
1894
  };
1895
1895
  }
1896
- function bi(i, e) {
1896
+ function wi(i, e) {
1897
1897
  var s;
1898
1898
  let t, n, r;
1899
1899
  function o() {
1900
1900
  return (
1901
1901
  /*mouseenter_handler*/
1902
- e[78](
1902
+ e[80](
1903
1903
  /*i*/
1904
- e[93]
1904
+ e[96]
1905
1905
  )
1906
1906
  );
1907
1907
  }
1908
1908
  function l() {
1909
1909
  return (
1910
1910
  /*select_handler*/
1911
- e[79](
1911
+ e[81](
1912
1912
  /*feature*/
1913
- e[91]
1913
+ e[94]
1914
1914
  )
1915
1915
  );
1916
1916
  }
1917
- return n = new ir({
1917
+ return n = new sr({
1918
1918
  props: {
1919
1919
  feature: (
1920
1920
  /*feature*/
1921
- e[91]
1921
+ e[94]
1922
1922
  ),
1923
1923
  showPlaceType: (
1924
1924
  /*showPlaceType*/
@@ -1927,10 +1927,10 @@ function bi(i, e) {
1927
1927
  style: (
1928
1928
  /*selectedItemIndex*/
1929
1929
  e[15] === /*i*/
1930
- e[93] ? "selected" : (
1930
+ e[96] ? "selected" : (
1931
1931
  /*picked*/
1932
1932
  ((s = e[14]) == null ? void 0 : s.id) === /*feature*/
1933
- e[91].id ? "picked" : "default"
1933
+ e[94].id ? "picked" : "default"
1934
1934
  )
1935
1935
  ),
1936
1936
  missingIconsCache: (
@@ -1946,10 +1946,10 @@ function bi(i, e) {
1946
1946
  key: i,
1947
1947
  first: null,
1948
1948
  c() {
1949
- t = Pn(), Se(n.$$.fragment), this.first = t;
1949
+ t = On(), Ce(n.$$.fragment), this.first = t;
1950
1950
  },
1951
1951
  m(c, u) {
1952
- F(c, t, u), pe(n, c, u), r = !0;
1952
+ G(c, t, u), ye(n, c, u), r = !0;
1953
1953
  },
1954
1954
  p(c, u) {
1955
1955
  var a;
@@ -1957,15 +1957,15 @@ function bi(i, e) {
1957
1957
  const h = {};
1958
1958
  u[0] & /*listFeatures*/
1959
1959
  8192 && (h.feature = /*feature*/
1960
- e[91]), u[0] & /*showPlaceType*/
1960
+ e[94]), u[0] & /*showPlaceType*/
1961
1961
  2048 && (h.showPlaceType = /*showPlaceType*/
1962
1962
  e[11]), u[0] & /*selectedItemIndex, listFeatures, picked*/
1963
1963
  57344 && (h.style = /*selectedItemIndex*/
1964
1964
  e[15] === /*i*/
1965
- e[93] ? "selected" : (
1965
+ e[96] ? "selected" : (
1966
1966
  /*picked*/
1967
1967
  ((a = e[14]) == null ? void 0 : a.id) === /*feature*/
1968
- e[91].id ? "picked" : "default"
1968
+ e[94].id ? "picked" : "default"
1969
1969
  )), u[0] & /*iconsBaseUrl*/
1970
1970
  4096 && (h.iconsBaseUrl = /*iconsBaseUrl*/
1971
1971
  e[12]), n.$set(h);
@@ -1977,32 +1977,32 @@ function bi(i, e) {
1977
1977
  V(n.$$.fragment, c), r = !1;
1978
1978
  },
1979
1979
  d(c) {
1980
- c && U(t), ye(n, c);
1980
+ c && U(t), be(n, c);
1981
1981
  }
1982
1982
  };
1983
1983
  }
1984
- function Nr(i) {
1985
- let e, t, n, r, o, l, s, c, u, h, a, f, d, m, b, v, y, E, _, L, P, N = !1;
1986
- o = new fr({}), a = new Gi({});
1984
+ function Ir(i) {
1985
+ let e, t, n, r, o, l, s, c, u, h, a, f, d, g, b, v, y, E, _, L, T, N = !1;
1986
+ o = new gr({}), a = new Zi({});
1987
1987
  let x = (
1988
1988
  /*abortController*/
1989
- i[20] && pi()
1989
+ i[20] && vi()
1990
1990
  ), S = (
1991
1991
  /*enableReverse*/
1992
- i[6] === "button" && yi(i)
1992
+ i[6] === "button" && _i(i)
1993
1993
  );
1994
- const T = (
1994
+ const P = (
1995
1995
  /*#slots*/
1996
- i[67].default
1997
- ), w = Mn(
1998
- T,
1996
+ i[69].default
1997
+ ), w = Tn(
1998
+ P,
1999
1999
  i,
2000
2000
  /*$$scope*/
2001
- i[66],
2001
+ i[68],
2002
2002
  null
2003
- ), M = [kr, Cr, Mr, xr], R = [];
2004
- function K(C, A) {
2005
- var oe, j;
2003
+ ), M = [Rr, Pr, Tr, Nr], I = [];
2004
+ function J(C, z) {
2005
+ var oe, F;
2006
2006
  return (
2007
2007
  /*error*/
2008
2008
  C[19] ? 0 : !/*focusedDelayed*/
@@ -2011,16 +2011,16 @@ function Nr(i) {
2011
2011
  /*listFeatures*/
2012
2012
  ((oe = C[13]) == null ? void 0 : oe.length) === 0 ? 2 : (
2013
2013
  /*listFeatures*/
2014
- (j = C[13]) != null && j.length && /*focusedDelayed*/
2014
+ (F = C[13]) != null && F.length && /*focusedDelayed*/
2015
2015
  (C[16] || /*keepListOpen*/
2016
2016
  C[4]) ? 3 : -1
2017
2017
  )
2018
2018
  )
2019
2019
  );
2020
2020
  }
2021
- return ~(v = K(i)) && (y = R[v] = M[v](i)), {
2021
+ return ~(v = J(i)) && (y = I[v] = M[v](i)), {
2022
2022
  c() {
2023
- e = ne(), t = B("form"), n = B("div"), r = B("button"), Se(o.$$.fragment), l = ne(), s = B("input"), c = ne(), u = B("div"), h = B("button"), Se(a.$$.fragment), f = ne(), x && x.c(), d = ne(), S && S.c(), m = ne(), w && w.c(), b = ne(), y && y.c(), p(r, "class", "search-button svelte-bz0zu3"), p(r, "type", "button"), p(
2023
+ e = ie(), t = W("form"), n = W("div"), r = W("button"), Ce(o.$$.fragment), l = ie(), s = W("input"), c = ie(), u = W("div"), h = W("button"), Ce(a.$$.fragment), f = ie(), x && x.c(), d = ie(), S && S.c(), g = ie(), w && w.c(), b = ie(), y && y.c(), p(r, "class", "search-button svelte-bz0zu3"), p(r, "type", "button"), p(
2024
2024
  s,
2025
2025
  "placeholder",
2026
2026
  /*placeholder*/
@@ -2035,15 +2035,15 @@ function Nr(i) {
2035
2035
  "title",
2036
2036
  /*clearButtonTitle*/
2037
2037
  i[3]
2038
- ), p(h, "class", "svelte-bz0zu3"), p(u, "class", "clear-button-container svelte-bz0zu3"), he(
2038
+ ), p(h, "class", "svelte-bz0zu3"), p(u, "class", "clear-button-container svelte-bz0zu3"), me(
2039
2039
  u,
2040
2040
  "displayable",
2041
2041
  /*searchValue*/
2042
2042
  i[1] !== ""
2043
- ), p(n, "class", "input-group svelte-bz0zu3"), p(t, "class", E = dt(
2043
+ ), p(n, "class", "input-group svelte-bz0zu3"), p(t, "class", E = gt(
2044
2044
  /*className*/
2045
2045
  i[2]
2046
- ) + " svelte-bz0zu3"), he(
2046
+ ) + " svelte-bz0zu3"), me(
2047
2047
  t,
2048
2048
  "can-collapse",
2049
2049
  /*collapsed*/
@@ -2051,41 +2051,41 @@ function Nr(i) {
2051
2051
  i[1] === ""
2052
2052
  );
2053
2053
  },
2054
- m(C, A) {
2055
- F(C, e, A), F(C, t, A), I(t, n), I(n, r), pe(o, r, null), I(n, l), I(n, s), i[69](s), ri(
2054
+ m(C, z) {
2055
+ G(C, e, z), G(C, t, z), O(t, n), O(n, r), ye(o, r, null), O(n, l), O(n, s), i[71](s), li(
2056
2056
  s,
2057
2057
  /*searchValue*/
2058
2058
  i[1]
2059
- ), I(n, c), I(n, u), I(u, h), pe(a, h, null), I(u, f), x && x.m(u, null), I(n, d), S && S.m(n, null), I(n, m), w && w.m(n, null), I(t, b), ~v && R[v].m(t, null), _ = !0, L || (P = [
2059
+ ), O(n, c), O(n, u), O(u, h), ye(a, h, null), O(u, f), x && x.m(u, null), O(n, d), S && S.m(n, null), O(n, g), w && w.m(n, null), O(t, b), ~v && I[v].m(t, null), _ = !0, L || (T = [
2060
2060
  H(
2061
2061
  r,
2062
2062
  "click",
2063
2063
  /*click_handler*/
2064
- i[68]
2064
+ i[70]
2065
2065
  ),
2066
2066
  H(
2067
2067
  s,
2068
2068
  "input",
2069
2069
  /*input_1_input_handler*/
2070
- i[70]
2070
+ i[72]
2071
2071
  ),
2072
2072
  H(
2073
2073
  s,
2074
2074
  "focus",
2075
2075
  /*focus_handler*/
2076
- i[71]
2076
+ i[73]
2077
2077
  ),
2078
2078
  H(
2079
2079
  s,
2080
2080
  "blur",
2081
2081
  /*blur_handler*/
2082
- i[72]
2082
+ i[74]
2083
2083
  ),
2084
2084
  H(
2085
2085
  s,
2086
2086
  "click",
2087
2087
  /*click_handler_1*/
2088
- i[73]
2088
+ i[75]
2089
2089
  ),
2090
2090
  H(
2091
2091
  s,
@@ -2103,87 +2103,87 @@ function Nr(i) {
2103
2103
  s,
2104
2104
  "change",
2105
2105
  /*change_handler*/
2106
- i[74]
2106
+ i[76]
2107
2107
  ),
2108
2108
  H(
2109
2109
  h,
2110
2110
  "click",
2111
2111
  /*click_handler_2*/
2112
- i[75]
2112
+ i[77]
2113
2113
  ),
2114
- H(t, "submit", Tn(
2114
+ H(t, "submit", zn(
2115
2115
  /*handleSubmit*/
2116
2116
  i[22]
2117
2117
  ))
2118
2118
  ], L = !0);
2119
2119
  },
2120
- p(C, A) {
2121
- (!_ || A[0] & /*placeholder*/
2120
+ p(C, z) {
2121
+ (!_ || z[0] & /*placeholder*/
2122
2122
  512) && p(
2123
2123
  s,
2124
2124
  "placeholder",
2125
2125
  /*placeholder*/
2126
2126
  C[9]
2127
- ), (!_ || A[0] & /*placeholder*/
2127
+ ), (!_ || z[0] & /*placeholder*/
2128
2128
  512) && p(
2129
2129
  s,
2130
2130
  "aria-label",
2131
2131
  /*placeholder*/
2132
2132
  C[9]
2133
- ), A[0] & /*searchValue*/
2133
+ ), z[0] & /*searchValue*/
2134
2134
  2 && s.value !== /*searchValue*/
2135
- C[1] && ri(
2135
+ C[1] && li(
2136
2136
  s,
2137
2137
  /*searchValue*/
2138
2138
  C[1]
2139
- ), (!_ || A[0] & /*clearButtonTitle*/
2139
+ ), (!_ || z[0] & /*clearButtonTitle*/
2140
2140
  8) && p(
2141
2141
  h,
2142
2142
  "title",
2143
2143
  /*clearButtonTitle*/
2144
2144
  C[3]
2145
2145
  ), /*abortController*/
2146
- C[20] ? x ? A[0] & /*abortController*/
2147
- 1048576 && Z(x, 1) : (x = pi(), x.c(), Z(x, 1), x.m(u, null)) : x && (at(), V(x, 1, 1, () => {
2146
+ C[20] ? x ? z[0] & /*abortController*/
2147
+ 1048576 && Z(x, 1) : (x = vi(), x.c(), Z(x, 1), x.m(u, null)) : x && (dt(), V(x, 1, 1, () => {
2148
2148
  x = null;
2149
- }), ct()), (!_ || A[0] & /*searchValue*/
2150
- 2) && he(
2149
+ }), ht()), (!_ || z[0] & /*searchValue*/
2150
+ 2) && me(
2151
2151
  u,
2152
2152
  "displayable",
2153
2153
  /*searchValue*/
2154
2154
  C[1] !== ""
2155
2155
  ), /*enableReverse*/
2156
- C[6] === "button" ? S ? (S.p(C, A), A[0] & /*enableReverse*/
2157
- 64 && Z(S, 1)) : (S = yi(C), S.c(), Z(S, 1), S.m(n, m)) : S && (at(), V(S, 1, 1, () => {
2156
+ C[6] === "button" ? S ? (S.p(C, z), z[0] & /*enableReverse*/
2157
+ 64 && Z(S, 1)) : (S = _i(C), S.c(), Z(S, 1), S.m(n, g)) : S && (dt(), V(S, 1, 1, () => {
2158
2158
  S = null;
2159
- }), ct()), w && w.p && (!_ || A[2] & /*$$scope*/
2160
- 16) && kn(
2159
+ }), ht()), w && w.p && (!_ || z[2] & /*$$scope*/
2160
+ 64) && Rn(
2161
2161
  w,
2162
- T,
2162
+ P,
2163
2163
  C,
2164
2164
  /*$$scope*/
2165
- C[66],
2166
- _ ? Cn(
2167
- T,
2165
+ C[68],
2166
+ _ ? Pn(
2167
+ P,
2168
2168
  /*$$scope*/
2169
- C[66],
2170
- A,
2169
+ C[68],
2170
+ z,
2171
2171
  null
2172
- ) : Nn(
2172
+ ) : In(
2173
2173
  /*$$scope*/
2174
- C[66]
2174
+ C[68]
2175
2175
  ),
2176
2176
  null
2177
2177
  );
2178
2178
  let oe = v;
2179
- v = K(C), v === oe ? ~v && R[v].p(C, A) : (y && (at(), V(R[oe], 1, 1, () => {
2180
- R[oe] = null;
2181
- }), ct()), ~v ? (y = R[v], y ? y.p(C, A) : (y = R[v] = M[v](C), y.c()), Z(y, 1), y.m(t, null)) : y = null), (!_ || A[0] & /*className*/
2182
- 4 && E !== (E = dt(
2179
+ v = J(C), v === oe ? ~v && I[v].p(C, z) : (y && (dt(), V(I[oe], 1, 1, () => {
2180
+ I[oe] = null;
2181
+ }), ht()), ~v ? (y = I[v], y ? y.p(C, z) : (y = I[v] = M[v](C), y.c()), Z(y, 1), y.m(t, null)) : y = null), (!_ || z[0] & /*className*/
2182
+ 4 && E !== (E = gt(
2183
2183
  /*className*/
2184
2184
  C[2]
2185
- ) + " svelte-bz0zu3")) && p(t, "class", E), (!_ || A[0] & /*className, collapsed, searchValue*/
2186
- 38) && he(
2185
+ ) + " svelte-bz0zu3")) && p(t, "class", E), (!_ || z[0] & /*className, collapsed, searchValue*/
2186
+ 38) && me(
2187
2187
  t,
2188
2188
  "can-collapse",
2189
2189
  /*collapsed*/
@@ -2198,11 +2198,11 @@ function Nr(i) {
2198
2198
  V(N), V(o.$$.fragment, C), V(a.$$.fragment, C), V(x), V(S), V(w, C), V(y), _ = !1;
2199
2199
  },
2200
2200
  d(C) {
2201
- C && (U(e), U(t)), ye(o), i[69](null), ye(a), x && x.d(), S && S.d(), w && w.d(C), ~v && R[v].d(), L = !1, be(P);
2201
+ C && (U(e), U(t)), be(o), i[71](null), be(a), x && x.d(), S && S.d(), w && w.d(C), ~v && I[v].d(), L = !1, ve(T);
2202
2202
  }
2203
2203
  };
2204
2204
  }
2205
- function Pr(i, e, t) {
2205
+ function Or(i, e, t) {
2206
2206
  let n, r, o, { $$slots: l = {}, $$scope: s } = e;
2207
2207
  const c = {
2208
2208
  continental_marine: 4,
@@ -2228,334 +2228,352 @@ function Pr(i, e, t) {
2228
2228
  "poi.restaurant": 18,
2229
2229
  "poi.aerodrome": 13
2230
2230
  };
2231
- let { class: u = void 0 } = e, { apiKey: h } = e, { bbox: a = void 0 } = e, { clearButtonTitle: f = "clear" } = e, { clearOnBlur: d = !1 } = e, { clearListOnPick: m = !1 } = e, { keepListOpen: b = !1 } = e, { collapsed: v = !1 } = e, { country: y = void 0 } = e, { debounceSearch: E = 200 } = e, { enableReverse: _ = "never" } = e, { errorMessage: L = "Something went wrong…" } = e, { filter: P = () => !0 } = e, { flyTo: N = !0 } = e, { fuzzyMatch: x = !0 } = e, { language: S = void 0 } = e, { limit: T = void 0 } = e, { mapController: w = void 0 } = e, { minLength: M = 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: K = "Search" } = e, { proximity: C = [{ type: "server-geolocation" }] } = e, { reverseActive: A = _ === "always" } = e, { reverseButtonTitle: oe = "toggle reverse geocoding" } = e, { searchValue: j = "" } = e, { pickedResultStyle: Je = "full-geometry" } = e, { showPlaceType: Vt = "if-needed" } = e, { showResultsWhileTyping: $e = !0 } = e, { selectFirst: Oe = !0 } = e, { flyToSelected: et = !1 } = e, { markerOnSelected: tt = !0 } = e, { types: Ne = void 0 } = e, { exhaustiveReverseGeocoding: mt = !1 } = e, { excludeTypes: it = !1 } = e, { zoom: nt = c } = e, { apiUrl: pt = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: yt = {} } = e, { iconsBaseUrl: Yt = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.0-rc1/icons/" } = e, { adjustUrlQuery: bt = () => {
2232
- } } = e, { adjustUrl: vt = () => {
2231
+ let { class: u = void 0 } = e, { apiKey: h } = e, { bbox: a = void 0 } = e, { clearButtonTitle: f = "clear" } = e, { clearOnBlur: d = !1 } = e, { clearListOnPick: g = !1 } = e, { keepListOpen: b = !1 } = e, { collapsed: v = !1 } = e, { country: y = void 0 } = e, { debounceSearch: E = 200 } = e, { enableReverse: _ = "never" } = e, { errorMessage: L = "Something went wrong…" } = e, { filter: T = () => !0 } = e, { flyTo: N = !0 } = e, { fuzzyMatch: x = !0 } = e, { language: S = void 0 } = e, { limit: P = void 0 } = e, { mapController: w = void 0 } = e, { minLength: M = 2 } = e, { noResultsMessage: I = "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: J = "Search" } = e, { proximity: C = [{ type: "server-geolocation" }] } = e, { reverseActive: z = _ === "always" } = e, { reverseButtonTitle: oe = "toggle reverse geocoding" } = e, { searchValue: F = "" } = e, { pickedResultStyle: tt = "full-geometry" } = e, { showPlaceType: Kt = "if-needed" } = e, { showResultsWhileTyping: it = !0 } = e, { autocompleteTimeout: bt = void 0 } = e, { selectFirst: Re = !0 } = e, { flyToSelected: nt = !1 } = e, { markerOnSelected: rt = !0 } = e, { types: Ie = void 0 } = e, { exhaustiveReverseGeocoding: vt = !1 } = e, { excludeTypes: ot = !1 } = e, { zoom: st = c } = e, { apiUrl: _t = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: wt = {} } = e, { iconsBaseUrl: Jt = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.0-with-autocomplete-timeout/icons/" } = e, { adjustUrlQuery: Et = () => {
2232
+ } } = e, { adjustUrl: Lt = () => {
2233
2233
  } } = e;
2234
- function $i(g) {
2235
- se.focus(g);
2234
+ function nn(m) {
2235
+ se.focus(m);
2236
2236
  }
2237
- function en() {
2237
+ function rn() {
2238
2238
  se.blur();
2239
2239
  }
2240
- function Xt(g, G = !0, q = !1) {
2241
- t(1, j = g), G ? (t(15, W = -1), Jt()) : ($t(void 0, !q, q), setTimeout(() => {
2240
+ function $t(m, j = !0, q = !1) {
2241
+ t(1, F = m), j ? (t(15, A = -1), ti()) : (ii(void 0, !q, q), setTimeout(() => {
2242
2242
  se.focus(), se.select();
2243
2243
  }));
2244
2244
  }
2245
- function tn() {
2246
- t(13, O = void 0), t(14, k = void 0), t(15, W = -1);
2245
+ function on() {
2246
+ t(13, R = void 0), t(14, k = void 0), t(15, A = -1);
2247
+ }
2248
+ function sn() {
2249
+ t(62, Q = []), t(14, k = void 0);
2247
2250
  }
2248
- function nn() {
2249
- t(61, Q = []), t(14, k = void 0);
2251
+ let R, Q, k, ei = "", se, A = -1, de, lt = [], Oe, _e, ne, We, St, ge = !1;
2252
+ const ln = /* @__PURE__ */ new Set(), we = ji();
2253
+ function un() {
2254
+ return !!ne;
2250
2255
  }
2251
- let O, Q, k, Kt = "", se, W = -1, fe, rt = [], Pe, Ie, ze, _t, ge = !1;
2252
- const rn = /* @__PURE__ */ new Set(), ve = Ui();
2253
- In(() => {
2256
+ Bn(() => {
2254
2257
  w && (w.setEventHandler(void 0), w.indicateReverse(!1), w.setSelectedMarker(-1), w.setFeatures(void 0, void 0, !1));
2255
2258
  });
2256
- function Jt(g) {
2257
- if (t(17, ge = !1), Ie && (clearTimeout(Ie), Ie = void 0), W > -1 && O)
2258
- t(14, k = O[W]), t(1, j = k.place_type[0] === "reverse" ? k.place_name : k.place_name.replace(/,.*/, "")), t(19, fe = void 0), t(61, Q = void 0), t(15, W = -1);
2259
- else if (j) {
2260
- const G = g || !wt(j);
2261
- Et(j, { exact: !0 }).then(() => {
2262
- t(61, Q = O), t(14, k = void 0), G && on();
2263
- }).catch((q) => t(19, fe = q));
2259
+ function ti(m) {
2260
+ if (t(17, ge = !1), _e && (window.clearTimeout(_e), _e = void 0), ne) {
2261
+ window.clearTimeout(ne), t(63, ne = void 0), Ge(F, { appendSpace: !0 });
2262
+ return;
2263
+ }
2264
+ if (A > -1 && R)
2265
+ t(14, k = R[A]), t(1, F = k.place_type[0] === "reverse" ? k.place_name : k.place_name.replace(/,.*/, "")), t(19, de = void 0), t(62, Q = void 0), t(15, A = -1);
2266
+ else if (F) {
2267
+ const j = m || !xt(F);
2268
+ Ge(F, { exact: !0 }).then(() => {
2269
+ t(62, Q = R), t(14, k = void 0), j && an();
2270
+ }).catch((q) => t(19, de = q));
2264
2271
  }
2265
2272
  }
2266
- function wt(g) {
2273
+ function xt(m) {
2267
2274
  try {
2268
- return Sr(g, 6);
2275
+ return kr(m, 6);
2269
2276
  } catch {
2270
2277
  return !1;
2271
2278
  }
2272
2279
  }
2273
- async function Et(g, { byId: G = !1, exact: q = !1 } = {}) {
2274
- var ee, de;
2275
- t(19, fe = void 0), Pe == null || Pe.abort();
2276
- const $ = new AbortController();
2277
- t(20, Pe = $);
2280
+ async function Ge(m, { byId: j = !1, exact: q = !1, appendSpace: le = !1 } = {}) {
2281
+ var he, Ee;
2282
+ t(19, de = void 0), Oe == null || Oe.abort();
2283
+ const Y = new AbortController();
2284
+ t(20, Oe = Y);
2278
2285
  try {
2279
- const z = wt(g), xt = new URL(pt + "/" + encodeURIComponent(z ? z.decimalLongitude + "," + z.decimalLatitude : g) + ".json"), le = xt.searchParams;
2280
- if (S !== void 0 && le.set("language", Array.isArray(S) ? S.join(",") : S ?? ""), Ne && le.set("types", Ne.join(",")), it && le.set("excludeTypes", String(it)), a && le.set("bbox", a.map((st) => st.toFixed(6)).join(",")), y && le.set("country", Array.isArray(y) ? y.join(",") : y), !G && !z) {
2281
- const st = await hr(w, C, $);
2282
- st && le.set("proximity", st), (q || !$e) && le.set("autocomplete", "false"), le.set("fuzzyMatch", String(x));
2286
+ const B = xt(m), kt = new URL(_t + "/" + encodeURIComponent(B ? B.decimalLongitude + "," + B.decimalLatitude : m + (le ? " " : "")) + ".json"), ue = kt.searchParams;
2287
+ if (S !== void 0 && ue.set("language", Array.isArray(S) ? S.join(",") : S ?? ""), Ie && ue.set("types", Ie.join(",")), ot && ue.set("excludeTypes", String(ot)), a && ue.set("bbox", a.map((at) => at.toFixed(6)).join(",")), y && ue.set("country", Array.isArray(y) ? y.join(",") : y), !j && !B) {
2288
+ const at = await yr(w, C, Y);
2289
+ at && ue.set("proximity", at), (q || !it) && ue.set("autocomplete", "false"), ue.set("fuzzyMatch", String(x));
2283
2290
  }
2284
- T !== void 0 && (mt || !z || (Ne == null ? void 0 : Ne.length) === 1) && le.set("limit", String(T)), le.set("key", h), bt(le), vt(xt);
2285
- const ot = xt.toString();
2286
- if (ot === Kt) {
2287
- G ? (m && t(13, O = void 0), t(14, k = rt[0])) : (t(13, O = rt), ((ee = O[W]) == null ? void 0 : ee.id) !== (r == null ? void 0 : r.id) && t(15, W = -1));
2291
+ P !== void 0 && (vt || !B || (Ie == null ? void 0 : Ie.length) === 1) && ue.set("limit", String(P)), ue.set("key", h), Et(ue), Lt(kt);
2292
+ const ut = kt.toString();
2293
+ if (ut === ei) {
2294
+ j ? (g && t(13, R = void 0), t(14, k = lt[0])) : (t(13, R = lt), ((he = R[A]) == null ? void 0 : he.id) !== (r == null ? void 0 : r.id) && t(15, A = -1));
2288
2295
  return;
2289
2296
  }
2290
- Kt = ot;
2291
- const Mt = await fetch(ot, { signal: $.signal, ...yt });
2292
- if (!Mt.ok)
2293
- throw new Error(await Mt.text());
2294
- const Ct = await Mt.json();
2295
- ve("response", { url: ot, featureCollection: Ct }), G ? (m && t(13, O = void 0), t(14, k = Ct.features[0]), rt = [k]) : (t(13, O = Ct.features.filter(P)), z && O.unshift({
2297
+ ei = ut;
2298
+ const Nt = await fetch(ut, { signal: Y.signal, ...wt });
2299
+ if (!Nt.ok)
2300
+ throw new Error(await Nt.text());
2301
+ const Tt = await Nt.json();
2302
+ we("response", { url: ut, featureCollection: Tt }), j ? (g && t(13, R = void 0), t(14, k = Tt.features[0]), lt = [k]) : (t(13, R = Tt.features.filter(T)), B && R.unshift({
2296
2303
  type: "Feature",
2297
2304
  properties: {},
2298
- id: "reverse_" + z.decimalLongitude + "_" + z.decimalLatitude,
2299
- text: z.decimalLatitude + ", " + z.decimalLongitude,
2300
- place_name: z.decimalLatitude + ", " + z.decimalLongitude,
2305
+ id: "reverse_" + B.decimalLongitude + "_" + B.decimalLatitude,
2306
+ text: B.decimalLatitude + ", " + B.decimalLongitude,
2307
+ place_name: B.decimalLatitude + ", " + B.decimalLongitude,
2301
2308
  place_type: ["reverse"],
2302
- center: [z.decimalLongitude, z.decimalLatitude],
2309
+ center: [B.decimalLongitude, B.decimalLatitude],
2303
2310
  bbox: [
2304
- z.decimalLongitude,
2305
- z.decimalLatitude,
2306
- z.decimalLongitude,
2307
- z.decimalLatitude
2311
+ B.decimalLongitude,
2312
+ B.decimalLatitude,
2313
+ B.decimalLongitude,
2314
+ B.decimalLatitude
2308
2315
  ],
2309
2316
  geometry: {
2310
2317
  type: "Point",
2311
- coordinates: [z.decimalLongitude, z.decimalLatitude]
2318
+ coordinates: [B.decimalLongitude, B.decimalLatitude]
2312
2319
  }
2313
- }), rt = O, ((de = O[W]) == null ? void 0 : de.id) !== (r == null ? void 0 : r.id) && t(15, W = -1), z && se.focus());
2314
- } catch (z) {
2315
- if (z && typeof z == "object" && "name" in z && z.name === "AbortError")
2320
+ }), lt = R, ((Ee = R[A]) == null ? void 0 : Ee.id) !== (r == null ? void 0 : r.id) && t(15, A = -1), B && se.focus());
2321
+ } catch (B) {
2322
+ if (B && typeof B == "object" && "name" in B && B.name === "AbortError")
2316
2323
  return;
2317
- throw z;
2324
+ throw B;
2318
2325
  } finally {
2319
- $ === Pe && t(20, Pe = void 0);
2326
+ Y === Oe && t(20, Oe = void 0);
2320
2327
  }
2321
2328
  }
2322
- function on() {
2323
- var $;
2329
+ function an() {
2330
+ var le;
2324
2331
  if (!(Q != null && Q.length) || !N)
2325
2332
  return;
2326
- const g = [180, 90, -180, -90], G = !Q.some((ee) => !ee.matching_text);
2333
+ const m = [180, 90, -180, -90], j = !Q.some((Y) => !Y.matching_text);
2327
2334
  let q;
2328
- for (const ee of Q) {
2329
- const de = Ue(ee);
2330
- if (q = q === void 0 ? de : de === void 0 ? q : Math.max(q, de), G || !ee.matching_text)
2331
- for (const z of [0, 1, 2, 3])
2332
- g[z] = Math[z < 2 ? "min" : "max"](g[z], (($ = ee.bbox) == null ? void 0 : $[z]) ?? ee.center[z % 2]);
2335
+ for (const Y of Q) {
2336
+ const he = je(Y);
2337
+ if (q = q === void 0 ? he : he === void 0 ? q : Math.max(q, he), j || !Y.matching_text)
2338
+ for (const Ee of [0, 1, 2, 3])
2339
+ m[Ee] = Math[Ee < 2 ? "min" : "max"](m[Ee], ((le = Y.bbox) == null ? void 0 : le[Ee]) ?? Y.center[Ee % 2]);
2333
2340
  }
2334
- w && Q.length > 0 && (k && g[0] === g[2] && g[1] === g[3] ? w.flyTo(k.center, Ue(k)) : w.fitBounds(He(g), 50, q));
2341
+ w && Q.length > 0 && (k && m[0] === m[2] && m[1] === m[3] ? w.flyTo(k.center, je(k)) : w.fitBounds(Xe(m), 50, q));
2335
2342
  }
2336
- function Lt() {
2337
- !k || !w || (!k.bbox || k.bbox[0] === k.bbox[2] && k.bbox[1] === k.bbox[3] ? w.flyTo(k.center, Ue(k)) : w.fitBounds(He(k.bbox), 50, Ue(k)));
2343
+ function Mt() {
2344
+ !k || !w || (!k.bbox || k.bbox[0] === k.bbox[2] && k.bbox[1] === k.bbox[3] ? w.flyTo(k.center, je(k)) : w.fitBounds(Xe(k.bbox), 50, je(k)));
2338
2345
  }
2339
- function Ue(g) {
2346
+ function je(m) {
2340
2347
  var q;
2341
- if (!g.bbox || g.bbox[0] !== g.bbox[2] && g.bbox[1] !== g.bbox[3])
2348
+ if (!m.bbox || m.bbox[0] !== m.bbox[2] && m.bbox[1] !== m.bbox[3])
2342
2349
  return;
2343
- const G = g.id.replace(/\..*/, "");
2344
- return (Array.isArray((q = g.properties) == null ? void 0 : q.categories) ? g.properties.categories.reduce(
2345
- ($, ee) => {
2346
- const de = nt[G + "." + ee];
2347
- return $ === void 0 ? de : de === void 0 ? $ : Math.max($, de);
2350
+ const j = m.id.replace(/\..*/, "");
2351
+ return (Array.isArray((q = m.properties) == null ? void 0 : q.categories) ? m.properties.categories.reduce(
2352
+ (le, Y) => {
2353
+ const he = st[j + "." + Y];
2354
+ return le === void 0 ? he : he === void 0 ? le : Math.max(le, he);
2348
2355
  },
2349
2356
  void 0
2350
- ) : void 0) ?? nt[G];
2357
+ ) : void 0) ?? st[j];
2351
2358
  }
2352
- function sn(g) {
2353
- t(0, A = _ === "always"), t(13, O = void 0), t(14, k = void 0), t(15, W = -1), Xt(g[1].toFixed(6) + ", " + dr(g[0], [-180, 180], !0).toFixed(6), !1, !0);
2359
+ function cn(m) {
2360
+ t(0, z = _ === "always"), t(13, R = void 0), t(14, k = void 0), t(15, A = -1), $t(m[1].toFixed(6) + ", " + pr(m[0], [-180, 180], !0).toFixed(6), !1, !0);
2354
2361
  }
2355
- function ln(g) {
2356
- if (!O)
2362
+ function fn(m) {
2363
+ if (!R)
2357
2364
  return;
2358
- let G = g.key === "ArrowDown" ? 1 : g.key === "ArrowUp" ? -1 : 0;
2359
- G && (se.focus(), t(17, ge = !0), g.preventDefault(), k && W === -1 && t(15, W = O.findIndex((q) => q.id === (k == null ? void 0 : k.id))), W === (k || Oe ? 0 : -1) && G === -1 && t(15, W = O.length), t(15, W += G), W >= O.length && t(15, W = -1), W < 0 && (k || Oe) && t(15, W = 0));
2365
+ let j = m.key === "ArrowDown" ? 1 : m.key === "ArrowUp" ? -1 : 0;
2366
+ j && (se.focus(), t(17, ge = !0), m.preventDefault(), k && A === -1 && t(15, A = R.findIndex((q) => q.id === (k == null ? void 0 : k.id))), A === (k || Re ? 0 : -1) && j === -1 && t(15, A = R.length), t(15, A += j), A >= R.length && t(15, A = -1), A < 0 && (k || Re) && t(15, A = 0));
2360
2367
  }
2361
- function $t(g, G = !0, q = !1) {
2362
- if (t(19, fe = void 0), t(14, k = void 0), t(17, ge = !0), $e || q) {
2363
- if (Ie && clearTimeout(Ie), j.length < M)
2364
- return;
2365
- const $ = j;
2366
- Ie = window.setTimeout(
2367
- () => {
2368
- Et($).catch((ee) => t(19, fe = ee));
2369
- },
2370
- G ? E : 0
2371
- );
2372
- } else
2373
- t(13, O = void 0), t(19, fe = void 0);
2368
+ function ii(m, j = !0, q = !1) {
2369
+ if (t(19, de = void 0), t(14, k = void 0), t(17, ge = !0), _e && (window.clearTimeout(_e), _e = void 0), ne && (window.clearTimeout(ne), t(63, ne = void 0)), !it && !q || F.length < M) {
2370
+ t(13, R = void 0);
2371
+ return;
2372
+ }
2373
+ const le = F;
2374
+ _e = window.setTimeout(
2375
+ () => {
2376
+ _e = void 0, Ge(le).catch((Y) => t(19, de = Y));
2377
+ },
2378
+ j ? E : 0
2379
+ ), F.endsWith(" ") || t(63, ne = window.setTimeout(
2380
+ () => {
2381
+ t(63, ne = void 0), Ge(le, { appendSpace: !0 }).catch((Y) => t(19, de = Y));
2382
+ },
2383
+ bt
2384
+ ));
2374
2385
  }
2375
- function St(g) {
2376
- k && (k == null ? void 0 : k.id) === (g == null ? void 0 : g.id) ? Lt() : (t(14, k = g), t(1, j = g.place_name));
2386
+ function Ct(m) {
2387
+ k && (k == null ? void 0 : k.id) === (m == null ? void 0 : m.id) ? Mt() : (t(14, k = m), t(1, F = m.place_name));
2377
2388
  }
2378
- function ei(g) {
2379
- t(15, W = g);
2389
+ function ni(m) {
2390
+ t(15, A = m);
2380
2391
  }
2381
- function un() {
2382
- (!Oe || k) && t(15, W = -1), et && Lt();
2392
+ function dn() {
2393
+ (!Re || k) && t(15, A = -1), nt && Mt();
2383
2394
  }
2384
- const an = () => se.focus();
2385
- function cn(g) {
2386
- It[g ? "unshift" : "push"](() => {
2387
- se = g, t(18, se);
2395
+ const hn = () => se.focus();
2396
+ function mn(m) {
2397
+ Wt[m ? "unshift" : "push"](() => {
2398
+ se = m, t(18, se);
2388
2399
  });
2389
2400
  }
2390
- function fn() {
2391
- j = this.value, t(1, j), t(17, ge), t(31, d), t(16, ze);
2401
+ function gn() {
2402
+ F = this.value, t(1, F), t(17, ge), t(31, d), t(16, We);
2392
2403
  }
2393
- const dn = () => t(17, ge = !0), hn = () => t(17, ge = !1), gn = () => t(17, ge = !0), mn = () => t(14, k = void 0), pn = () => {
2394
- t(1, j = ""), se.focus();
2395
- }, yn = () => t(0, A = !A), bn = () => t(19, fe = void 0), vn = (g) => ei(g), _n = (g) => St(g), wn = () => {
2404
+ const pn = () => t(17, ge = !0), yn = () => t(17, ge = !1), bn = () => t(17, ge = !0), vn = () => t(14, k = void 0), _n = () => {
2405
+ t(1, F = ""), se.focus();
2406
+ }, wn = () => t(0, z = !z), En = () => t(19, de = void 0), Ln = (m) => ni(m), Sn = (m) => Ct(m), xn = () => {
2396
2407
  };
2397
- return i.$$set = (g) => {
2398
- "class" in g && t(2, u = g.class), "apiKey" in g && t(29, h = g.apiKey), "bbox" in g && t(30, a = g.bbox), "clearButtonTitle" in g && t(3, f = g.clearButtonTitle), "clearOnBlur" in g && t(31, d = g.clearOnBlur), "clearListOnPick" in g && t(32, m = g.clearListOnPick), "keepListOpen" in g && t(4, b = g.keepListOpen), "collapsed" in g && t(5, v = g.collapsed), "country" in g && t(33, y = g.country), "debounceSearch" in g && t(34, E = g.debounceSearch), "enableReverse" in g && t(6, _ = g.enableReverse), "errorMessage" in g && t(7, L = g.errorMessage), "filter" in g && t(35, P = g.filter), "flyTo" in g && t(36, N = g.flyTo), "fuzzyMatch" in g && t(37, x = g.fuzzyMatch), "language" in g && t(38, S = g.language), "limit" in g && t(39, T = g.limit), "mapController" in g && t(40, w = g.mapController), "minLength" in g && t(41, M = g.minLength), "noResultsMessage" in g && t(8, R = g.noResultsMessage), "placeholder" in g && t(9, K = g.placeholder), "proximity" in g && t(42, C = g.proximity), "reverseActive" in g && t(0, A = g.reverseActive), "reverseButtonTitle" in g && t(10, oe = g.reverseButtonTitle), "searchValue" in g && t(1, j = g.searchValue), "pickedResultStyle" in g && t(43, Je = g.pickedResultStyle), "showPlaceType" in g && t(11, Vt = g.showPlaceType), "showResultsWhileTyping" in g && t(44, $e = g.showResultsWhileTyping), "selectFirst" in g && t(45, Oe = g.selectFirst), "flyToSelected" in g && t(46, et = g.flyToSelected), "markerOnSelected" in g && t(47, tt = g.markerOnSelected), "types" in g && t(48, Ne = g.types), "exhaustiveReverseGeocoding" in g && t(49, mt = g.exhaustiveReverseGeocoding), "excludeTypes" in g && t(50, it = g.excludeTypes), "zoom" in g && t(51, nt = g.zoom), "apiUrl" in g && t(52, pt = g.apiUrl), "fetchParameters" in g && t(53, yt = g.fetchParameters), "iconsBaseUrl" in g && t(12, Yt = g.iconsBaseUrl), "adjustUrlQuery" in g && t(54, bt = g.adjustUrlQuery), "adjustUrl" in g && t(55, vt = g.adjustUrl), "$$scope" in g && t(66, s = g.$$scope);
2408
+ return i.$$set = (m) => {
2409
+ "class" in m && t(2, u = m.class), "apiKey" in m && t(29, h = m.apiKey), "bbox" in m && t(30, a = m.bbox), "clearButtonTitle" in m && t(3, f = m.clearButtonTitle), "clearOnBlur" in m && t(31, d = m.clearOnBlur), "clearListOnPick" in m && t(32, g = m.clearListOnPick), "keepListOpen" in m && t(4, b = m.keepListOpen), "collapsed" in m && t(5, v = m.collapsed), "country" in m && t(33, y = m.country), "debounceSearch" in m && t(34, E = m.debounceSearch), "enableReverse" in m && t(6, _ = m.enableReverse), "errorMessage" in m && t(7, L = m.errorMessage), "filter" in m && t(35, T = m.filter), "flyTo" in m && t(36, N = m.flyTo), "fuzzyMatch" in m && t(37, x = m.fuzzyMatch), "language" in m && t(38, S = m.language), "limit" in m && t(39, P = m.limit), "mapController" in m && t(40, w = m.mapController), "minLength" in m && t(41, M = m.minLength), "noResultsMessage" in m && t(8, I = m.noResultsMessage), "placeholder" in m && t(9, J = m.placeholder), "proximity" in m && t(42, C = m.proximity), "reverseActive" in m && t(0, z = m.reverseActive), "reverseButtonTitle" in m && t(10, oe = m.reverseButtonTitle), "searchValue" in m && t(1, F = m.searchValue), "pickedResultStyle" in m && t(43, tt = m.pickedResultStyle), "showPlaceType" in m && t(11, Kt = m.showPlaceType), "showResultsWhileTyping" in m && t(44, it = m.showResultsWhileTyping), "autocompleteTimeout" in m && t(45, bt = m.autocompleteTimeout), "selectFirst" in m && t(46, Re = m.selectFirst), "flyToSelected" in m && t(47, nt = m.flyToSelected), "markerOnSelected" in m && t(48, rt = m.markerOnSelected), "types" in m && t(49, Ie = m.types), "exhaustiveReverseGeocoding" in m && t(50, vt = m.exhaustiveReverseGeocoding), "excludeTypes" in m && t(51, ot = m.excludeTypes), "zoom" in m && t(52, st = m.zoom), "apiUrl" in m && t(53, _t = m.apiUrl), "fetchParameters" in m && t(54, wt = m.fetchParameters), "iconsBaseUrl" in m && t(12, Jt = m.iconsBaseUrl), "adjustUrlQuery" in m && t(55, Et = m.adjustUrlQuery), "adjustUrl" in m && t(56, Lt = m.adjustUrl), "$$scope" in m && t(68, s = m.$$scope);
2399
2410
  }, i.$$.update = () => {
2400
2411
  if (i.$$.dirty[0] & /*enableReverse*/
2401
- 64 && t(0, A = _ === "always"), i.$$.dirty[0] & /*picked*/
2412
+ 64 && t(0, z = _ === "always"), i.$$.dirty[0] & /*picked*/
2402
2413
  16384 | i.$$.dirty[1] & /*pickedResultStyle*/
2403
- 4096 && Je !== "marker-only" && k && !k.address && k.geometry.type === "Point" && k.place_type[0] !== "reverse" && Et(k.id, { byId: !0 }).catch((g) => t(19, fe = g)), i.$$.dirty[0] & /*picked*/
2414
+ 4096 && tt !== "marker-only" && k && !k.address && k.geometry.type === "Point" && k.place_type[0] !== "reverse" && Ge(k.id, { byId: !0 }).catch((m) => t(19, de = m)), i.$$.dirty[0] & /*picked*/
2404
2415
  16384 | i.$$.dirty[1] & /*mapController, flyTo, clearListOnPick*/
2405
2416
  546 | i.$$.dirty[2] & /*prevIdToFly*/
2406
- 1 && (w && k && k.id !== _t && N && (Lt(), m && t(13, O = void 0), t(61, Q = void 0), t(15, W = -1)), t(62, _t = k == null ? void 0 : k.id)), i.$$.dirty[0] & /*focused, focusedDelayed*/
2417
+ 4 && (w && k && k.id !== St && N && (Mt(), g && t(13, R = void 0), t(62, Q = void 0), t(15, A = -1)), t(64, St = k == null ? void 0 : k.id)), i.$$.dirty[0] & /*focused, focusedDelayed*/
2407
2418
  196608 | i.$$.dirty[1] & /*clearOnBlur*/
2408
2419
  1 && setTimeout(() => {
2409
- t(16, ze = ge), d && !ze && t(1, j = "");
2420
+ t(16, We = ge), d && !We && t(1, F = "");
2410
2421
  }), i.$$.dirty[0] & /*searchValue, listFeatures*/
2411
2422
  8194 | i.$$.dirty[1] & /*minLength*/
2412
- 1024 && j.length < M && (t(13, O = void 0), t(19, fe = void 0), t(61, Q = O)), i.$$.dirty[0] & /*listFeatures, selectedItemIndex, picked*/
2423
+ 1024 && F.length < M && (t(13, R = void 0), t(19, de = void 0), t(62, Q = R)), i.$$.dirty[0] & /*listFeatures*/
2424
+ 8192 | i.$$.dirty[1] & /*selectFirst*/
2425
+ 32768 && Re && R != null && R.length && (un() || t(15, A = 0)), i.$$.dirty[0] & /*listFeatures, selectedItemIndex, picked*/
2413
2426
  57344 | i.$$.dirty[1] & /*selectFirst*/
2414
- 16384 && Oe && O != null && O.length && W == -1 && !k && t(15, W = 0), i.$$.dirty[0] & /*listFeatures*/
2415
- 8192 | i.$$.dirty[1] & /*markedFeatures*/
2416
- 1073741824 && Q !== O && t(61, Q = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
2417
- 73729 | i.$$.dirty[1] & /*mapController, markedFeatures*/
2418
- 1073742336 && w && w.setEventHandler((g) => {
2419
- switch (g.type) {
2427
+ 32768 && Re && R != null && R.length && A == -1 && !k && t(15, A = 0), i.$$.dirty[0] & /*listFeatures*/
2428
+ 8192 | i.$$.dirty[2] & /*markedFeatures*/
2429
+ 1 && Q !== R && t(62, Q = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
2430
+ 73729 | i.$$.dirty[1] & /*mapController*/
2431
+ 512 | i.$$.dirty[2] & /*markedFeatures*/
2432
+ 1 && w && w.setEventHandler((m) => {
2433
+ switch (m.type) {
2420
2434
  case "mapClick":
2421
- A && sn(g.coordinates);
2435
+ z && cn(m.coordinates);
2422
2436
  break;
2423
2437
  case "markerClick":
2424
2438
  {
2425
- const G = O == null ? void 0 : O.find((q) => q.id === g.id);
2426
- G && St(G);
2439
+ const j = R == null ? void 0 : R.find((q) => q.id === m.id);
2440
+ j && Ct(j);
2427
2441
  }
2428
2442
  break;
2429
2443
  case "markerMouseEnter":
2430
- Q && t(15, W = ze ? (O == null ? void 0 : O.findIndex((G) => G.id === g.id)) ?? -1 : -1);
2444
+ Q && t(15, A = We ? (R == null ? void 0 : R.findIndex((j) => j.id === m.id)) ?? -1 : -1);
2431
2445
  break;
2432
2446
  case "markerMouseLeave":
2433
- Q && t(15, W = -1);
2447
+ Q && t(15, A = -1);
2434
2448
  break;
2435
2449
  }
2436
2450
  }), i.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
2437
- 40960 && t(63, r = O == null ? void 0 : O[W]), i.$$.dirty[1] & /*mapController, flyTo, flyToSelected*/
2438
- 33312 | i.$$.dirty[2] & /*selected*/
2439
- 2 && w && r && N && et && w.flyTo(r.center, Ue(r)), i.$$.dirty[1] & /*pickedResultStyle*/
2440
- 4096 && t(65, n = Je === "full-geometry-including-polygon-center-marker"), i.$$.dirty[1] & /*markerOnSelected, mapController*/
2441
- 66048 | i.$$.dirty[2] & /*showPolygonMarker*/
2442
- 8 && (tt || w == null || w.setFeatures(void 0, void 0, n)), i.$$.dirty[0] & /*picked*/
2443
- 16384 | i.$$.dirty[1] & /*mapController, markerOnSelected, markedFeatures*/
2444
- 1073807872 | i.$$.dirty[2] & /*selected, showPolygonMarker*/
2445
- 10 && w && tt && !Q && (w.setFeatures(r ? [r] : void 0, k, n), w.setSelectedMarker(r ? 0 : -1)), i.$$.dirty[0] & /*picked*/
2446
- 16384 | i.$$.dirty[1] & /*mapController, markedFeatures*/
2447
- 1073742336 | i.$$.dirty[2] & /*showPolygonMarker*/
2448
- 8 && w && w.setFeatures(Q, k, n), i.$$.dirty[0] & /*selectedItemIndex*/
2449
- 32768 | i.$$.dirty[1] & /*markedFeatures, mapController*/
2450
- 1073742336 && Q && w && w.setSelectedMarker(W), i.$$.dirty[0] & /*searchValue*/
2451
+ 40960 && t(65, r = R == null ? void 0 : R[A]), i.$$.dirty[1] & /*mapController, flyTo, flyToSelected*/
2452
+ 66080 | i.$$.dirty[2] & /*selected*/
2453
+ 8 && w && r && N && nt && w.flyTo(r.center, je(r)), i.$$.dirty[1] & /*pickedResultStyle*/
2454
+ 4096 && t(67, n = tt === "full-geometry-including-polygon-center-marker"), i.$$.dirty[1] & /*markerOnSelected, mapController*/
2455
+ 131584 | i.$$.dirty[2] & /*showPolygonMarker*/
2456
+ 32 && (rt || w == null || w.setFeatures(void 0, void 0, n)), i.$$.dirty[0] & /*picked*/
2457
+ 16384 | i.$$.dirty[1] & /*mapController, markerOnSelected*/
2458
+ 131584 | i.$$.dirty[2] & /*markedFeatures, selected, showPolygonMarker*/
2459
+ 41 && w && rt && !Q && (w.setFeatures(r ? [r] : void 0, k, n), w.setSelectedMarker(r ? 0 : -1)), i.$$.dirty[0] & /*picked*/
2460
+ 16384 | i.$$.dirty[1] & /*mapController*/
2461
+ 512 | i.$$.dirty[2] & /*markedFeatures, showPolygonMarker*/
2462
+ 33 && w && w.setFeatures(Q, k, n), i.$$.dirty[0] & /*selectedItemIndex*/
2463
+ 32768 | i.$$.dirty[1] & /*mapController*/
2464
+ 512 | i.$$.dirty[2] & /*markedFeatures*/
2465
+ 1 && Q && w && w.setSelectedMarker(A), i.$$.dirty[2] & /*selected, autocompleteTimeoutRef*/
2466
+ 10 && r && (window.clearTimeout(ne), t(63, ne = void 0)), i.$$.dirty[0] & /*searchValue*/
2451
2467
  2 | i.$$.dirty[1] & /*mapController*/
2452
2468
  512 && w) {
2453
- const g = wt(j);
2454
- w.setReverseMarker(g ? [g.decimalLongitude, g.decimalLatitude] : void 0);
2469
+ const m = xt(F);
2470
+ w.setReverseMarker(m ? [m.decimalLongitude, m.decimalLatitude] : void 0);
2455
2471
  }
2456
2472
  i.$$.dirty[2] & /*selected*/
2457
- 2 && ve("select", { feature: r }), i.$$.dirty[0] & /*picked*/
2458
- 16384 && ve("pick", { feature: k }), i.$$.dirty[0] & /*listFeatures, focusedDelayed, keepListOpen*/
2459
- 73744 && t(64, o = !!(O != null && O.length) && (ze || b)), i.$$.dirty[2] & /*optionsVisible*/
2460
- 4 && ve("optionsvisibilitychange", { optionsVisible: o }), i.$$.dirty[0] & /*listFeatures*/
2461
- 8192 && ve("featureslisted", { features: O }), i.$$.dirty[1] & /*markedFeatures*/
2462
- 1073741824 && ve("featuresmarked", { features: Q }), i.$$.dirty[0] & /*reverseActive*/
2463
- 1 && ve("reversetoggle", { reverse: A }), i.$$.dirty[0] & /*searchValue*/
2464
- 2 && ve("querychange", { query: j }), i.$$.dirty[0] & /*reverseActive*/
2473
+ 8 && we("select", { feature: r }), i.$$.dirty[0] & /*picked*/
2474
+ 16384 && we("pick", { feature: k }), i.$$.dirty[0] & /*listFeatures, focusedDelayed, keepListOpen*/
2475
+ 73744 && t(66, o = !!(R != null && R.length) && (We || b)), i.$$.dirty[2] & /*optionsVisible*/
2476
+ 16 && we("optionsvisibilitychange", { optionsVisible: o }), i.$$.dirty[0] & /*listFeatures*/
2477
+ 8192 && we("featureslisted", { features: R }), i.$$.dirty[2] & /*markedFeatures*/
2478
+ 1 && we("featuresmarked", { features: Q }), i.$$.dirty[0] & /*reverseActive*/
2479
+ 1 && we("reversetoggle", { reverse: z }), i.$$.dirty[0] & /*searchValue*/
2480
+ 2 && we("querychange", { query: F }), i.$$.dirty[0] & /*reverseActive*/
2465
2481
  1 | i.$$.dirty[1] & /*mapController*/
2466
- 512 && w && w.indicateReverse(A);
2482
+ 512 && w && w.indicateReverse(z);
2467
2483
  }, [
2468
- A,
2469
- j,
2484
+ z,
2485
+ F,
2470
2486
  u,
2471
2487
  f,
2472
2488
  b,
2473
2489
  v,
2474
2490
  _,
2475
2491
  L,
2476
- R,
2477
- K,
2492
+ I,
2493
+ J,
2478
2494
  oe,
2479
- Vt,
2480
- Yt,
2481
- O,
2495
+ Kt,
2496
+ Jt,
2497
+ R,
2482
2498
  k,
2483
- W,
2484
- ze,
2499
+ A,
2500
+ We,
2485
2501
  ge,
2486
2502
  se,
2487
- fe,
2488
- Pe,
2489
- rn,
2490
- Jt,
2503
+ de,
2504
+ Oe,
2491
2505
  ln,
2492
- $t,
2493
- St,
2494
- ei,
2495
- un,
2506
+ ti,
2507
+ fn,
2508
+ ii,
2509
+ Ct,
2510
+ ni,
2511
+ dn,
2496
2512
  c,
2497
2513
  h,
2498
2514
  a,
2499
2515
  d,
2500
- m,
2516
+ g,
2501
2517
  y,
2502
2518
  E,
2503
- P,
2519
+ T,
2504
2520
  N,
2505
2521
  x,
2506
2522
  S,
2507
- T,
2523
+ P,
2508
2524
  w,
2509
2525
  M,
2510
2526
  C,
2511
- Je,
2512
- $e,
2513
- Oe,
2514
- et,
2515
2527
  tt,
2516
- Ne,
2517
- mt,
2518
2528
  it,
2519
- nt,
2520
- pt,
2521
- yt,
2522
2529
  bt,
2530
+ Re,
2531
+ nt,
2532
+ rt,
2533
+ Ie,
2523
2534
  vt,
2524
- $i,
2525
- en,
2526
- Xt,
2527
- tn,
2535
+ ot,
2536
+ st,
2537
+ _t,
2538
+ wt,
2539
+ Et,
2540
+ Lt,
2528
2541
  nn,
2542
+ rn,
2543
+ $t,
2544
+ on,
2545
+ sn,
2529
2546
  Q,
2530
- _t,
2547
+ ne,
2548
+ St,
2531
2549
  r,
2532
2550
  o,
2533
2551
  n,
2534
2552
  s,
2535
2553
  l,
2536
- an,
2537
- cn,
2538
- fn,
2539
- dn,
2540
2554
  hn,
2541
- gn,
2542
2555
  mn,
2556
+ gn,
2543
2557
  pn,
2544
2558
  yn,
2545
2559
  bn,
2546
2560
  vn,
2547
2561
  _n,
2548
- wn
2562
+ wn,
2563
+ En,
2564
+ Ln,
2565
+ Sn,
2566
+ xn
2549
2567
  ];
2550
2568
  }
2551
- let Tr = class extends ke {
2569
+ let zr = class extends Pe {
2552
2570
  constructor(e) {
2553
- super(), Ce(
2571
+ super(), Te(
2554
2572
  this,
2555
2573
  e,
2556
- Pr,
2557
- Nr,
2558
- Me,
2574
+ Or,
2575
+ Ir,
2576
+ Ne,
2559
2577
  {
2560
2578
  ZOOM_DEFAULTS: 28,
2561
2579
  class: 2,
@@ -2586,23 +2604,24 @@ let Tr = class extends ke {
2586
2604
  pickedResultStyle: 43,
2587
2605
  showPlaceType: 11,
2588
2606
  showResultsWhileTyping: 44,
2589
- selectFirst: 45,
2590
- flyToSelected: 46,
2591
- markerOnSelected: 47,
2592
- types: 48,
2593
- exhaustiveReverseGeocoding: 49,
2594
- excludeTypes: 50,
2595
- zoom: 51,
2596
- apiUrl: 52,
2597
- fetchParameters: 53,
2607
+ autocompleteTimeout: 45,
2608
+ selectFirst: 46,
2609
+ flyToSelected: 47,
2610
+ markerOnSelected: 48,
2611
+ types: 49,
2612
+ exhaustiveReverseGeocoding: 50,
2613
+ excludeTypes: 51,
2614
+ zoom: 52,
2615
+ apiUrl: 53,
2616
+ fetchParameters: 54,
2598
2617
  iconsBaseUrl: 12,
2599
- adjustUrlQuery: 54,
2600
- adjustUrl: 55,
2601
- focus: 56,
2602
- blur: 57,
2603
- setQuery: 58,
2604
- clearList: 59,
2605
- clearMap: 60
2618
+ adjustUrlQuery: 55,
2619
+ adjustUrl: 56,
2620
+ focus: 57,
2621
+ blur: 58,
2622
+ setQuery: 59,
2623
+ clearList: 60,
2624
+ clearMap: 61
2606
2625
  },
2607
2626
  null,
2608
2627
  [-1, -1, -1, -1]
@@ -2612,26 +2631,26 @@ let Tr = class extends ke {
2612
2631
  return this.$$.ctx[28];
2613
2632
  }
2614
2633
  get focus() {
2615
- return this.$$.ctx[56];
2634
+ return this.$$.ctx[57];
2616
2635
  }
2617
2636
  get blur() {
2618
- return this.$$.ctx[57];
2637
+ return this.$$.ctx[58];
2619
2638
  }
2620
2639
  get setQuery() {
2621
- return this.$$.ctx[58];
2640
+ return this.$$.ctx[59];
2622
2641
  }
2623
2642
  get clearList() {
2624
- return this.$$.ctx[59];
2643
+ return this.$$.ctx[60];
2625
2644
  }
2626
2645
  get clearMap() {
2627
- return this.$$.ctx[60];
2646
+ return this.$$.ctx[61];
2628
2647
  }
2629
2648
  };
2630
- function Ve(i, e, t = {}) {
2649
+ function Ke(i, e, t = {}) {
2631
2650
  const n = { type: "Feature" };
2632
2651
  return (t.id === 0 || t.id) && (n.id = t.id), t.bbox && (n.bbox = t.bbox), n.properties = e || {}, n.geometry = i, n;
2633
2652
  }
2634
- function qt(i, e, t = {}) {
2653
+ function Ht(i, e, t = {}) {
2635
2654
  for (const r of i) {
2636
2655
  if (r.length < 4)
2637
2656
  throw new Error(
@@ -2643,31 +2662,31 @@ function qt(i, e, t = {}) {
2643
2662
  if (r[r.length - 1][o] !== r[0][o])
2644
2663
  throw new Error("First and last Position are not equivalent.");
2645
2664
  }
2646
- return Ve({
2665
+ return Ke({
2647
2666
  type: "Polygon",
2648
2667
  coordinates: i
2649
2668
  }, e, t);
2650
2669
  }
2651
- function Ye(i, e = {}) {
2670
+ function Je(i, e = {}) {
2652
2671
  const t = { type: "FeatureCollection" };
2653
2672
  return e.id && (t.id = e.id), e.bbox && (t.bbox = e.bbox), t.features = i, t;
2654
2673
  }
2655
- function qi(i, e, t = {}) {
2656
- return Ve({
2674
+ function Hi(i, e, t = {}) {
2675
+ return Ke({
2657
2676
  type: "MultiPolygon",
2658
2677
  coordinates: i
2659
2678
  }, e, t);
2660
2679
  }
2661
- function Zi(i, e, t) {
2680
+ function Vi(i, e, t) {
2662
2681
  if (i !== null)
2663
- for (var n, r, o, l, s, c, u, h = 0, a = 0, f, d = i.type, m = d === "FeatureCollection", b = d === "Feature", v = m ? i.features.length : 1, y = 0; y < v; y++) {
2664
- u = m ? i.features[y].geometry : b ? i.geometry : i, f = u ? u.type === "GeometryCollection" : !1, s = f ? u.geometries.length : 1;
2682
+ for (var n, r, o, l, s, c, u, h = 0, a = 0, f, d = i.type, g = d === "FeatureCollection", b = d === "Feature", v = g ? i.features.length : 1, y = 0; y < v; y++) {
2683
+ u = g ? i.features[y].geometry : b ? i.geometry : i, f = u ? u.type === "GeometryCollection" : !1, s = f ? u.geometries.length : 1;
2665
2684
  for (var E = 0; E < s; E++) {
2666
2685
  var _ = 0, L = 0;
2667
2686
  if (l = f ? u.geometries[E] : u, l !== null) {
2668
2687
  c = l.coordinates;
2669
- var P = l.type;
2670
- switch (h = 0, P) {
2688
+ var T = l.type;
2689
+ switch (h = 0, T) {
2671
2690
  case null:
2672
2691
  break;
2673
2692
  case "Point":
@@ -2692,9 +2711,9 @@ function Zi(i, e, t) {
2692
2711
  L
2693
2712
  ) === !1)
2694
2713
  return !1;
2695
- a++, P === "MultiPoint" && _++;
2714
+ a++, T === "MultiPoint" && _++;
2696
2715
  }
2697
- P === "LineString" && _++;
2716
+ T === "LineString" && _++;
2698
2717
  break;
2699
2718
  case "Polygon":
2700
2719
  case "MultiLineString":
@@ -2710,9 +2729,9 @@ function Zi(i, e, t) {
2710
2729
  return !1;
2711
2730
  a++;
2712
2731
  }
2713
- P === "MultiLineString" && _++, P === "Polygon" && L++;
2732
+ T === "MultiLineString" && _++, T === "Polygon" && L++;
2714
2733
  }
2715
- P === "Polygon" && _++;
2734
+ T === "Polygon" && _++;
2716
2735
  break;
2717
2736
  case "MultiPolygon":
2718
2737
  for (n = 0; n < c.length; n++) {
@@ -2735,7 +2754,7 @@ function Zi(i, e, t) {
2735
2754
  break;
2736
2755
  case "GeometryCollection":
2737
2756
  for (n = 0; n < l.geometries.length; n++)
2738
- if (Zi(l.geometries[n], e) === !1)
2757
+ if (Vi(l.geometries[n], e) === !1)
2739
2758
  return !1;
2740
2759
  break;
2741
2760
  default:
@@ -2745,10 +2764,10 @@ function Zi(i, e, t) {
2745
2764
  }
2746
2765
  }
2747
2766
  }
2748
- function Zt(i, e) {
2749
- var t, n, r, o, l, s, c, u, h, a, f = 0, d = i.type === "FeatureCollection", m = i.type === "Feature", b = d ? i.features.length : 1;
2767
+ function Vt(i, e) {
2768
+ var t, n, r, o, l, s, c, u, h, a, f = 0, d = i.type === "FeatureCollection", g = i.type === "Feature", b = d ? i.features.length : 1;
2750
2769
  for (t = 0; t < b; t++) {
2751
- for (s = d ? i.features[t].geometry : m ? i.geometry : i, u = d ? i.features[t].properties : m ? i.properties : {}, h = d ? i.features[t].bbox : m ? i.bbox : void 0, a = d ? i.features[t].id : m ? i.id : void 0, c = s ? s.type === "GeometryCollection" : !1, l = c ? s.geometries.length : 1, r = 0; r < l; r++) {
2770
+ for (s = d ? i.features[t].geometry : g ? i.geometry : i, u = d ? i.features[t].properties : g ? i.properties : {}, h = d ? i.features[t].bbox : g ? i.bbox : void 0, a = d ? i.features[t].id : g ? i.id : void 0, c = s ? s.type === "GeometryCollection" : !1, l = c ? s.geometries.length : 1, r = 0; r < l; r++) {
2752
2771
  if (o = c ? s.geometries[r] : s, o === null) {
2753
2772
  if (e(
2754
2773
  null,
@@ -2796,8 +2815,8 @@ function Zt(i, e) {
2796
2815
  f++;
2797
2816
  }
2798
2817
  }
2799
- function Rr(i, e) {
2800
- Zt(i, function(t, n, r, o, l) {
2818
+ function Ar(i, e) {
2819
+ Vt(i, function(t, n, r, o, l) {
2801
2820
  var s = t === null ? null : t.type;
2802
2821
  switch (s) {
2803
2822
  case null:
@@ -2805,7 +2824,7 @@ function Rr(i, e) {
2805
2824
  case "LineString":
2806
2825
  case "Polygon":
2807
2826
  return e(
2808
- Ve(t, r, { bbox: o, id: l }),
2827
+ Ke(t, r, { bbox: o, id: l }),
2809
2828
  n,
2810
2829
  0
2811
2830
  ) === !1 ? !1 : void 0;
@@ -2827,28 +2846,28 @@ function Rr(i, e) {
2827
2846
  type: c,
2828
2847
  coordinates: h
2829
2848
  };
2830
- if (e(Ve(a, r), n, u) === !1)
2849
+ if (e(Ke(a, r), n, u) === !1)
2831
2850
  return !1;
2832
2851
  }
2833
2852
  });
2834
2853
  }
2835
- function Or(i, e = {}) {
2854
+ function Wr(i, e = {}) {
2836
2855
  if (i.bbox != null && e.recompute !== !0)
2837
2856
  return i.bbox;
2838
2857
  const t = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
2839
- return Zi(i, (n) => {
2858
+ return Vi(i, (n) => {
2840
2859
  t[0] > n[0] && (t[0] = n[0]), t[1] > n[1] && (t[1] = n[1]), t[2] < n[0] && (t[2] = n[0]), t[3] < n[1] && (t[3] = n[1]);
2841
2860
  }), t;
2842
2861
  }
2843
- var Wt = Or;
2844
- function Ir(i) {
2862
+ var Ut = Wr;
2863
+ function Br(i) {
2845
2864
  if (!i)
2846
2865
  throw new Error("geojson is required");
2847
2866
  switch (i.type) {
2848
2867
  case "Feature":
2849
- return Qi(i);
2868
+ return Yi(i);
2850
2869
  case "FeatureCollection":
2851
- return zr(i);
2870
+ return Dr(i);
2852
2871
  case "Point":
2853
2872
  case "LineString":
2854
2873
  case "Polygon":
@@ -2856,12 +2875,12 @@ function Ir(i) {
2856
2875
  case "MultiLineString":
2857
2876
  case "MultiPolygon":
2858
2877
  case "GeometryCollection":
2859
- return Qt(i);
2878
+ return Yt(i);
2860
2879
  default:
2861
2880
  throw new Error("unknown GeoJSON type");
2862
2881
  }
2863
2882
  }
2864
- function Qi(i) {
2883
+ function Yi(i) {
2865
2884
  const e = { type: "Feature" };
2866
2885
  return Object.keys(i).forEach((t) => {
2867
2886
  switch (t) {
@@ -2872,16 +2891,16 @@ function Qi(i) {
2872
2891
  default:
2873
2892
  e[t] = i[t];
2874
2893
  }
2875
- }), e.properties = Hi(i.properties), i.geometry == null ? e.geometry = null : e.geometry = Qt(i.geometry), e;
2894
+ }), e.properties = Xi(i.properties), i.geometry == null ? e.geometry = null : e.geometry = Yt(i.geometry), e;
2876
2895
  }
2877
- function Hi(i) {
2896
+ function Xi(i) {
2878
2897
  const e = {};
2879
2898
  return i && Object.keys(i).forEach((t) => {
2880
2899
  const n = i[t];
2881
- typeof n == "object" ? n === null ? e[t] = null : Array.isArray(n) ? e[t] = n.map((r) => r) : e[t] = Hi(n) : e[t] = n;
2900
+ typeof n == "object" ? n === null ? e[t] = null : Array.isArray(n) ? e[t] = n.map((r) => r) : e[t] = Xi(n) : e[t] = n;
2882
2901
  }), e;
2883
2902
  }
2884
- function zr(i) {
2903
+ function Dr(i) {
2885
2904
  const e = { type: "FeatureCollection" };
2886
2905
  return Object.keys(i).forEach((t) => {
2887
2906
  switch (t) {
@@ -2891,17 +2910,17 @@ function zr(i) {
2891
2910
  default:
2892
2911
  e[t] = i[t];
2893
2912
  }
2894
- }), e.features = i.features.map((t) => Qi(t)), e;
2913
+ }), e.features = i.features.map((t) => Yi(t)), e;
2895
2914
  }
2896
- function Qt(i) {
2915
+ function Yt(i) {
2897
2916
  const e = { type: i.type };
2898
- return i.bbox && (e.bbox = i.bbox), i.type === "GeometryCollection" ? (e.geometries = i.geometries.map((t) => Qt(t)), e) : (e.coordinates = Vi(i.coordinates), e);
2917
+ return i.bbox && (e.bbox = i.bbox), i.type === "GeometryCollection" ? (e.geometries = i.geometries.map((t) => Yt(t)), e) : (e.coordinates = Ki(i.coordinates), e);
2899
2918
  }
2900
- function Vi(i) {
2919
+ function Ki(i) {
2901
2920
  const e = i;
2902
- return typeof e[0] != "object" ? e.slice() : e.map((t) => Vi(t));
2921
+ return typeof e[0] != "object" ? e.slice() : e.map((t) => Ki(t));
2903
2922
  }
2904
- var Ar = Ir;
2923
+ var Ur = Br;
2905
2924
  /**
2906
2925
  * splaytree v3.1.2
2907
2926
  * Fast Splay tree for Node and browser
@@ -2924,7 +2943,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
2924
2943
  See the Apache Version 2.0 License for specific language governing permissions
2925
2944
  and limitations under the License.
2926
2945
  ***************************************************************************** */
2927
- function Wr(i, e) {
2946
+ function Fr(i, e) {
2928
2947
  var t = { label: 0, sent: function() {
2929
2948
  if (o[0] & 1) throw o[1];
2930
2949
  return o[1];
@@ -2984,7 +3003,7 @@ function Wr(i, e) {
2984
3003
  return { value: u[0] ? u[1] : void 0, done: !0 };
2985
3004
  }
2986
3005
  }
2987
- var xe = (
3006
+ var ke = (
2988
3007
  /** @class */
2989
3008
  /* @__PURE__ */ function() {
2990
3009
  function i(e, t) {
@@ -2993,11 +3012,11 @@ var xe = (
2993
3012
  return i;
2994
3013
  }()
2995
3014
  );
2996
- function Br(i, e) {
3015
+ function Gr(i, e) {
2997
3016
  return i > e ? 1 : i < e ? -1 : 0;
2998
3017
  }
2999
- function _e(i, e, t) {
3000
- for (var n = new xe(null, null), r = n, o = n; ; ) {
3018
+ function Le(i, e, t) {
3019
+ for (var n = new ke(null, null), r = n, o = n; ; ) {
3001
3020
  var l = t(i, e.key);
3002
3021
  if (l < 0) {
3003
3022
  if (e.left === null)
@@ -3022,46 +3041,46 @@ function _e(i, e, t) {
3022
3041
  }
3023
3042
  return r.right = e.left, o.left = e.right, e.left = n.right, e.right = n.left, e;
3024
3043
  }
3025
- function Rt(i, e, t, n) {
3026
- var r = new xe(i, e);
3044
+ function zt(i, e, t, n) {
3045
+ var r = new ke(i, e);
3027
3046
  if (t === null)
3028
3047
  return r.left = r.right = null, r;
3029
- t = _e(i, t, n);
3048
+ t = Le(i, t, n);
3030
3049
  var o = n(i, t.key);
3031
3050
  return o < 0 ? (r.left = t.left, r.right = t, t.left = null) : o >= 0 && (r.right = t.right, r.left = t, t.right = null), r;
3032
3051
  }
3033
- function vi(i, e, t) {
3052
+ function Ei(i, e, t) {
3034
3053
  var n = null, r = null;
3035
3054
  if (e) {
3036
- e = _e(i, e, t);
3055
+ e = Le(i, e, t);
3037
3056
  var o = t(e.key, i);
3038
3057
  o === 0 ? (n = e.left, r = e.right) : o < 0 ? (r = e.right, e.right = null, n = e) : (n = e.left, e.left = null, r = e);
3039
3058
  }
3040
3059
  return { left: n, right: r };
3041
3060
  }
3042
- function Dr(i, e, t) {
3043
- return e === null ? i : (i === null || (e = _e(i.key, e, t), e.left = i), e);
3061
+ function jr(i, e, t) {
3062
+ return e === null ? i : (i === null || (e = Le(i.key, e, t), e.left = i), e);
3044
3063
  }
3045
- function Bt(i, e, t, n, r) {
3064
+ function Ft(i, e, t, n, r) {
3046
3065
  if (i) {
3047
3066
  n("" + e + (t ? "└── " : "├── ") + r(i) + `
3048
3067
  `);
3049
3068
  var o = e + (t ? " " : "│ ");
3050
- i.left && Bt(i.left, o, !1, n, r), i.right && Bt(i.right, o, !0, n, r);
3069
+ i.left && Ft(i.left, o, !1, n, r), i.right && Ft(i.right, o, !0, n, r);
3051
3070
  }
3052
3071
  }
3053
- var Ht = (
3072
+ var Xt = (
3054
3073
  /** @class */
3055
3074
  function() {
3056
3075
  function i(e) {
3057
- e === void 0 && (e = Br), this._root = null, this._size = 0, this._comparator = e;
3076
+ e === void 0 && (e = Gr), this._root = null, this._size = 0, this._comparator = e;
3058
3077
  }
3059
3078
  return i.prototype.insert = function(e, t) {
3060
- return this._size++, this._root = Rt(e, t, this._root, this._comparator);
3079
+ return this._size++, this._root = zt(e, t, this._root, this._comparator);
3061
3080
  }, i.prototype.add = function(e, t) {
3062
- var n = new xe(e, t);
3081
+ var n = new ke(e, t);
3063
3082
  this._root === null && (n.left = n.right = null, this._size++, this._root = n);
3064
- var r = this._comparator, o = _e(e, this._root, r), l = r(e, o.key);
3083
+ var r = this._comparator, o = Le(e, this._root, r), l = r(e, o.key);
3065
3084
  return l === 0 ? this._root = o : (l < 0 ? (n.left = o.left, n.right = o, o.left = null) : l > 0 && (n.right = o.right, n.left = o, o.right = null), this._size++, this._root = n), this._root;
3066
3085
  }, i.prototype.remove = function(e) {
3067
3086
  this._root = this._remove(e, this._root, this._comparator);
@@ -3069,15 +3088,15 @@ var Ht = (
3069
3088
  var r;
3070
3089
  if (t === null)
3071
3090
  return null;
3072
- t = _e(e, t, n);
3091
+ t = Le(e, t, n);
3073
3092
  var o = n(e, t.key);
3074
- return o === 0 ? (t.left === null ? r = t.right : (r = _e(e, t.left, n), r.right = t.right), this._size--, r) : t;
3093
+ return o === 0 ? (t.left === null ? r = t.right : (r = Le(e, t.left, n), r.right = t.right), this._size--, r) : t;
3075
3094
  }, i.prototype.pop = function() {
3076
3095
  var e = this._root;
3077
3096
  if (e) {
3078
3097
  for (; e.left; )
3079
3098
  e = e.left;
3080
- return this._root = _e(e.key, this._root, this._comparator), this._root = this._remove(e.key, this._root, this._comparator), { key: e.key, data: e.data };
3099
+ return this._root = Le(e.key, this._root, this._comparator), this._root = this._remove(e.key, this._root, this._comparator), { key: e.key, data: e.data };
3081
3100
  }
3082
3101
  return null;
3083
3102
  }, i.prototype.findStatic = function(e) {
@@ -3089,7 +3108,7 @@ var Ht = (
3089
3108
  }
3090
3109
  return null;
3091
3110
  }, i.prototype.find = function(e) {
3092
- return this._root && (this._root = _e(e, this._root, this._comparator), this._comparator(e, this._root.key) !== 0) ? null : this._root;
3111
+ return this._root && (this._root = Le(e, this._root, this._comparator), this._comparator(e, this._root.key) !== 0) ? null : this._root;
3093
3112
  }, i.prototype.contains = function(e) {
3094
3113
  for (var t = this._root, n = this._comparator; t; ) {
3095
3114
  var r = n(e, t.key);
@@ -3182,15 +3201,15 @@ var Ht = (
3182
3201
  }, i.prototype.clear = function() {
3183
3202
  return this._root = null, this._size = 0, this;
3184
3203
  }, i.prototype.toList = function() {
3185
- return Fr(this._root);
3204
+ return Zr(this._root);
3186
3205
  }, i.prototype.load = function(e, t, n) {
3187
3206
  t === void 0 && (t = []), n === void 0 && (n = !1);
3188
3207
  var r = e.length, o = this._comparator;
3189
- if (n && Ft(e, t, 0, r - 1, o), this._root === null)
3190
- this._root = Dt(e, t, 0, r), this._size = r;
3208
+ if (n && qt(e, t, 0, r - 1, o), this._root === null)
3209
+ this._root = Gt(e, t, 0, r), this._size = r;
3191
3210
  else {
3192
- var l = Gr(this.toList(), Ur(e, t), o);
3193
- r = this._size + r, this._root = Ut({ head: l }, 0, r);
3211
+ var l = Qr(this.toList(), qr(e, t), o);
3212
+ r = this._size + r, this._root = jt({ head: l }, 0, r);
3194
3213
  }
3195
3214
  return this;
3196
3215
  }, i.prototype.isEmpty = function() {
@@ -3212,17 +3231,17 @@ var Ht = (
3212
3231
  return String(n.key);
3213
3232
  });
3214
3233
  var t = [];
3215
- return Bt(this._root, "", !0, function(n) {
3234
+ return Ft(this._root, "", !0, function(n) {
3216
3235
  return t.push(n);
3217
3236
  }, e), t.join("");
3218
3237
  }, i.prototype.update = function(e, t, n) {
3219
- var r = this._comparator, o = vi(e, this._root, r), l = o.left, s = o.right;
3220
- r(e, t) < 0 ? s = Rt(t, n, s, r) : l = Rt(t, n, l, r), this._root = Dr(l, s, r);
3238
+ var r = this._comparator, o = Ei(e, this._root, r), l = o.left, s = o.right;
3239
+ r(e, t) < 0 ? s = zt(t, n, s, r) : l = zt(t, n, l, r), this._root = jr(l, s, r);
3221
3240
  }, i.prototype.split = function(e) {
3222
- return vi(e, this._root, this._comparator);
3241
+ return Ei(e, this._root, this._comparator);
3223
3242
  }, i.prototype[Symbol.iterator] = function() {
3224
3243
  var e, t, n;
3225
- return Wr(this, function(r) {
3244
+ return Fr(this, function(r) {
3226
3245
  switch (r.label) {
3227
3246
  case 0:
3228
3247
  e = this._root, t = [], n = !1, r.label = 1;
@@ -3246,38 +3265,38 @@ var Ht = (
3246
3265
  }, i;
3247
3266
  }()
3248
3267
  );
3249
- function Dt(i, e, t, n) {
3268
+ function Gt(i, e, t, n) {
3250
3269
  var r = n - t;
3251
3270
  if (r > 0) {
3252
- var o = t + Math.floor(r / 2), l = i[o], s = e[o], c = new xe(l, s);
3253
- return c.left = Dt(i, e, t, o), c.right = Dt(i, e, o + 1, n), c;
3271
+ var o = t + Math.floor(r / 2), l = i[o], s = e[o], c = new ke(l, s);
3272
+ return c.left = Gt(i, e, t, o), c.right = Gt(i, e, o + 1, n), c;
3254
3273
  }
3255
3274
  return null;
3256
3275
  }
3257
- function Ur(i, e) {
3258
- for (var t = new xe(null, null), n = t, r = 0; r < i.length; r++)
3259
- n = n.next = new xe(i[r], e[r]);
3276
+ function qr(i, e) {
3277
+ for (var t = new ke(null, null), n = t, r = 0; r < i.length; r++)
3278
+ n = n.next = new ke(i[r], e[r]);
3260
3279
  return n.next = null, t.next;
3261
3280
  }
3262
- function Fr(i) {
3263
- for (var e = i, t = [], n = !1, r = new xe(null, null), o = r; !n; )
3281
+ function Zr(i) {
3282
+ for (var e = i, t = [], n = !1, r = new ke(null, null), o = r; !n; )
3264
3283
  e ? (t.push(e), e = e.left) : t.length > 0 ? (e = o = o.next = t.pop(), e = e.right) : n = !0;
3265
3284
  return o.next = null, r.next;
3266
3285
  }
3267
- function Ut(i, e, t) {
3286
+ function jt(i, e, t) {
3268
3287
  var n = t - e;
3269
3288
  if (n > 0) {
3270
- var r = e + Math.floor(n / 2), o = Ut(i, e, r), l = i.head;
3271
- return l.left = o, i.head = i.head.next, l.right = Ut(i, r + 1, t), l;
3289
+ var r = e + Math.floor(n / 2), o = jt(i, e, r), l = i.head;
3290
+ return l.left = o, i.head = i.head.next, l.right = jt(i, r + 1, t), l;
3272
3291
  }
3273
3292
  return null;
3274
3293
  }
3275
- function Gr(i, e, t) {
3276
- for (var n = new xe(null, null), r = n, o = i, l = e; o !== null && l !== null; )
3294
+ function Qr(i, e, t) {
3295
+ for (var n = new ke(null, null), r = n, o = i, l = e; o !== null && l !== null; )
3277
3296
  t(o.key, l.key) < 0 ? (r.next = o, o = o.next) : (r.next = l, l = l.next), r = r.next;
3278
3297
  return o !== null ? r.next = o : l !== null && (r.next = l), n.next;
3279
3298
  }
3280
- function Ft(i, e, t, n, r) {
3299
+ function qt(i, e, t, n, r) {
3281
3300
  if (!(t >= n)) {
3282
3301
  for (var o = i[t + n >> 1], l = t - 1, s = n + 1; ; ) {
3283
3302
  do
@@ -3291,11 +3310,11 @@ function Ft(i, e, t, n, r) {
3291
3310
  var c = i[l];
3292
3311
  i[l] = i[s], i[s] = c, c = e[l], e[l] = e[s], e[s] = c;
3293
3312
  }
3294
- Ft(i, e, t, s, r), Ft(i, e, s + 1, n, r);
3313
+ qt(i, e, t, s, r), qt(i, e, s + 1, n, r);
3295
3314
  }
3296
3315
  }
3297
- const me = 11102230246251565e-32, Y = 134217729, jr = (3 + 8 * me) * me;
3298
- function Ot(i, e, t, n, r) {
3316
+ const pe = 11102230246251565e-32, X = 134217729, Hr = (3 + 8 * pe) * pe;
3317
+ function At(i, e, t, n, r) {
3299
3318
  let o, l, s, c, u = e[0], h = n[0], a = 0, f = 0;
3300
3319
  h > u == h > -u ? (o = u, u = e[++a]) : (o = h, h = n[++f]);
3301
3320
  let d = 0;
@@ -3308,34 +3327,34 @@ function Ot(i, e, t, n, r) {
3308
3327
  l = o + h, c = l - o, s = o - (l - c) + (h - c), h = n[++f], o = l, s !== 0 && (r[d++] = s);
3309
3328
  return (o !== 0 || d === 0) && (r[d++] = o), d;
3310
3329
  }
3311
- function qr(i, e) {
3330
+ function Vr(i, e) {
3312
3331
  let t = e[0];
3313
3332
  for (let n = 1; n < i; n++) t += e[n];
3314
3333
  return t;
3315
3334
  }
3316
- function Ke(i) {
3335
+ function et(i) {
3317
3336
  return new Float64Array(i);
3318
3337
  }
3319
- const Zr = (3 + 16 * me) * me, Qr = (2 + 12 * me) * me, Hr = (9 + 64 * me) * me * me, We = Ke(4), _i = Ke(8), wi = Ke(12), Ei = Ke(16), J = Ke(4);
3320
- function Vr(i, e, t, n, r, o, l) {
3321
- let s, c, u, h, a, f, d, m, b, v, y, E, _, L, P, N, x, S;
3322
- const T = i - r, w = t - r, M = e - o, R = n - o;
3323
- L = T * R, f = Y * T, d = f - (f - T), m = T - d, f = Y * R, b = f - (f - R), v = R - b, P = m * v - (L - d * b - m * b - d * v), N = M * w, f = Y * M, d = f - (f - M), m = M - d, f = Y * w, b = f - (f - w), v = w - b, x = m * v - (N - d * b - m * b - d * v), y = P - x, a = P - y, We[0] = P - (y + a) + (a - x), E = L + y, a = E - L, _ = L - (E - a) + (y - a), y = _ - N, a = _ - y, We[1] = _ - (y + a) + (a - N), S = E + y, a = S - E, We[2] = E - (S - a) + (y - a), We[3] = S;
3324
- let K = qr(4, We), C = Qr * l;
3325
- if (K >= C || -K >= C || (a = i - T, s = i - (T + a) + (a - r), a = t - w, u = t - (w + a) + (a - r), a = e - M, c = e - (M + a) + (a - o), a = n - R, h = n - (R + a) + (a - o), s === 0 && c === 0 && u === 0 && h === 0) || (C = Hr * l + jr * Math.abs(K), K += T * h + R * s - (M * u + w * c), K >= C || -K >= C)) return K;
3326
- L = s * R, f = Y * s, d = f - (f - s), m = s - d, f = Y * R, b = f - (f - R), v = R - b, P = m * v - (L - d * b - m * b - d * v), N = c * w, f = Y * c, d = f - (f - c), m = c - d, f = Y * w, b = f - (f - w), v = w - b, x = m * v - (N - d * b - m * b - d * v), y = P - x, a = P - y, J[0] = P - (y + a) + (a - x), E = L + y, a = E - L, _ = L - (E - a) + (y - a), y = _ - N, a = _ - y, J[1] = _ - (y + a) + (a - N), S = E + y, a = S - E, J[2] = E - (S - a) + (y - a), J[3] = S;
3327
- const A = Ot(4, We, 4, J, _i);
3328
- L = T * h, f = Y * T, d = f - (f - T), m = T - d, f = Y * h, b = f - (f - h), v = h - b, P = m * v - (L - d * b - m * b - d * v), N = M * u, f = Y * M, d = f - (f - M), m = M - d, f = Y * u, b = f - (f - u), v = u - b, x = m * v - (N - d * b - m * b - d * v), y = P - x, a = P - y, J[0] = P - (y + a) + (a - x), E = L + y, a = E - L, _ = L - (E - a) + (y - a), y = _ - N, a = _ - y, J[1] = _ - (y + a) + (a - N), S = E + y, a = S - E, J[2] = E - (S - a) + (y - a), J[3] = S;
3329
- const oe = Ot(A, _i, 4, J, wi);
3330
- L = s * h, f = Y * s, d = f - (f - s), m = s - d, f = Y * h, b = f - (f - h), v = h - b, P = m * v - (L - d * b - m * b - d * v), N = c * u, f = Y * c, d = f - (f - c), m = c - d, f = Y * u, b = f - (f - u), v = u - b, x = m * v - (N - d * b - m * b - d * v), y = P - x, a = P - y, J[0] = P - (y + a) + (a - x), E = L + y, a = E - L, _ = L - (E - a) + (y - a), y = _ - N, a = _ - y, J[1] = _ - (y + a) + (a - N), S = E + y, a = S - E, J[2] = E - (S - a) + (y - a), J[3] = S;
3331
- const j = Ot(oe, wi, 4, J, Ei);
3332
- return Ei[j - 1];
3333
- }
3334
- function Yr(i, e, t, n, r, o) {
3338
+ const Yr = (3 + 16 * pe) * pe, Xr = (2 + 12 * pe) * pe, Kr = (9 + 64 * pe) * pe * pe, De = et(4), Li = et(8), Si = et(12), xi = et(16), $ = et(4);
3339
+ function Jr(i, e, t, n, r, o, l) {
3340
+ let s, c, u, h, a, f, d, g, b, v, y, E, _, L, T, N, x, S;
3341
+ const P = i - r, w = t - r, M = e - o, I = n - o;
3342
+ L = P * I, f = X * P, d = f - (f - P), g = P - d, f = X * I, b = f - (f - I), v = I - b, T = g * v - (L - d * b - g * b - d * v), N = M * w, f = X * M, d = f - (f - M), g = M - d, f = X * w, b = f - (f - w), v = w - b, x = g * v - (N - d * b - g * b - d * v), y = T - x, a = T - y, De[0] = T - (y + a) + (a - x), E = L + y, a = E - L, _ = L - (E - a) + (y - a), y = _ - N, a = _ - y, De[1] = _ - (y + a) + (a - N), S = E + y, a = S - E, De[2] = E - (S - a) + (y - a), De[3] = S;
3343
+ let J = Vr(4, De), C = Xr * l;
3344
+ if (J >= C || -J >= C || (a = i - P, s = i - (P + a) + (a - r), a = t - w, u = t - (w + a) + (a - r), a = e - M, c = e - (M + a) + (a - o), a = n - I, h = n - (I + a) + (a - o), s === 0 && c === 0 && u === 0 && h === 0) || (C = Kr * l + Hr * Math.abs(J), J += P * h + I * s - (M * u + w * c), J >= C || -J >= C)) return J;
3345
+ L = s * I, f = X * s, d = f - (f - s), g = s - d, f = X * I, b = f - (f - I), v = I - b, T = g * v - (L - d * b - g * b - d * v), N = c * w, f = X * c, d = f - (f - c), g = c - d, f = X * w, b = f - (f - w), v = w - b, x = g * v - (N - d * b - g * b - d * v), y = T - x, a = T - y, $[0] = T - (y + a) + (a - x), E = L + y, a = E - L, _ = L - (E - a) + (y - a), y = _ - N, a = _ - y, $[1] = _ - (y + a) + (a - N), S = E + y, a = S - E, $[2] = E - (S - a) + (y - a), $[3] = S;
3346
+ const z = At(4, De, 4, $, Li);
3347
+ L = P * h, f = X * P, d = f - (f - P), g = P - d, f = X * h, b = f - (f - h), v = h - b, T = g * v - (L - d * b - g * b - d * v), N = M * u, f = X * M, d = f - (f - M), g = M - d, f = X * u, b = f - (f - u), v = u - b, x = g * v - (N - d * b - g * b - d * v), y = T - x, a = T - y, $[0] = T - (y + a) + (a - x), E = L + y, a = E - L, _ = L - (E - a) + (y - a), y = _ - N, a = _ - y, $[1] = _ - (y + a) + (a - N), S = E + y, a = S - E, $[2] = E - (S - a) + (y - a), $[3] = S;
3348
+ const oe = At(z, Li, 4, $, Si);
3349
+ L = s * h, f = X * s, d = f - (f - s), g = s - d, f = X * h, b = f - (f - h), v = h - b, T = g * v - (L - d * b - g * b - d * v), N = c * u, f = X * c, d = f - (f - c), g = c - d, f = X * u, b = f - (f - u), v = u - b, x = g * v - (N - d * b - g * b - d * v), y = T - x, a = T - y, $[0] = T - (y + a) + (a - x), E = L + y, a = E - L, _ = L - (E - a) + (y - a), y = _ - N, a = _ - y, $[1] = _ - (y + a) + (a - N), S = E + y, a = S - E, $[2] = E - (S - a) + (y - a), $[3] = S;
3350
+ const F = At(oe, Si, 4, $, xi);
3351
+ return xi[F - 1];
3352
+ }
3353
+ function $r(i, e, t, n, r, o) {
3335
3354
  const l = (e - o) * (t - r), s = (i - r) * (n - o), c = l - s, u = Math.abs(l + s);
3336
- return Math.abs(c) >= Zr * u ? c : -Vr(i, e, t, n, r, o, u);
3355
+ return Math.abs(c) >= Yr * u ? c : -Jr(i, e, t, n, r, o, u);
3337
3356
  }
3338
- const je = (i, e) => i.ll.x <= e.x && e.x <= i.ur.x && i.ll.y <= e.y && e.y <= i.ur.y, Gt = (i, e) => {
3357
+ const Qe = (i, e) => i.ll.x <= e.x && e.x <= i.ur.x && i.ll.y <= e.y && e.y <= i.ur.y, Zt = (i, e) => {
3339
3358
  if (e.ur.x < i.ll.x || i.ur.x < e.ll.x || e.ur.y < i.ll.y || i.ur.y < e.ll.y) return null;
3340
3359
  const t = i.ll.x < e.ll.x ? e.ll.x : i.ll.x, n = i.ur.x < e.ur.x ? i.ur.x : e.ur.x, r = i.ll.y < e.ll.y ? e.ll.y : i.ll.y, o = i.ur.y < e.ur.y ? i.ur.y : e.ur.y;
3341
3360
  return {
@@ -3349,20 +3368,20 @@ const je = (i, e) => i.ll.x <= e.x && e.x <= i.ur.x && i.ll.y <= e.y && e.y <= i
3349
3368
  }
3350
3369
  };
3351
3370
  };
3352
- let we = Number.EPSILON;
3353
- we === void 0 && (we = Math.pow(2, -52));
3354
- const Xr = we * we, Li = (i, e) => {
3355
- if (-we < i && i < we && -we < e && e < we)
3371
+ let Se = Number.EPSILON;
3372
+ Se === void 0 && (Se = Math.pow(2, -52));
3373
+ const eo = Se * Se, Mi = (i, e) => {
3374
+ if (-Se < i && i < Se && -Se < e && e < Se)
3356
3375
  return 0;
3357
3376
  const t = i - e;
3358
- return t * t < Xr * i * e ? 0 : i < e ? -1 : 1;
3377
+ return t * t < eo * i * e ? 0 : i < e ? -1 : 1;
3359
3378
  };
3360
- class Kr {
3379
+ class to {
3361
3380
  constructor() {
3362
3381
  this.reset();
3363
3382
  }
3364
3383
  reset() {
3365
- this.xRounder = new Si(), this.yRounder = new Si();
3384
+ this.xRounder = new Ci(), this.yRounder = new Ci();
3366
3385
  }
3367
3386
  round(e, t) {
3368
3387
  return {
@@ -3371,9 +3390,9 @@ class Kr {
3371
3390
  };
3372
3391
  }
3373
3392
  }
3374
- class Si {
3393
+ class Ci {
3375
3394
  constructor() {
3376
- this.tree = new Ht(), this.round(0);
3395
+ this.tree = new Xt(), this.round(0);
3377
3396
  }
3378
3397
  // Note: this can rounds input values backwards or forwards.
3379
3398
  // You might ask, why not restrict this to just rounding
@@ -3384,16 +3403,16 @@ class Si {
3384
3403
  // angle for t-intersections).
3385
3404
  round(e) {
3386
3405
  const t = this.tree.add(e), n = this.tree.prev(t);
3387
- if (n !== null && Li(t.key, n.key) === 0)
3406
+ if (n !== null && Mi(t.key, n.key) === 0)
3388
3407
  return this.tree.remove(e), n.key;
3389
3408
  const r = this.tree.next(t);
3390
- return r !== null && Li(t.key, r.key) === 0 ? (this.tree.remove(e), r.key) : e;
3409
+ return r !== null && Mi(t.key, r.key) === 0 ? (this.tree.remove(e), r.key) : e;
3391
3410
  }
3392
3411
  }
3393
- const Xe = new Kr(), ft = (i, e) => i.x * e.y - i.y * e.x, Yi = (i, e) => i.x * e.x + i.y * e.y, xi = (i, e, t) => {
3394
- const n = Yr(i.x, i.y, e.x, e.y, t.x, t.y);
3412
+ const $e = new to(), mt = (i, e) => i.x * e.y - i.y * e.x, Ji = (i, e) => i.x * e.x + i.y * e.y, ki = (i, e, t) => {
3413
+ const n = $r(i.x, i.y, e.x, e.y, t.x, t.y);
3395
3414
  return n > 0 ? -1 : n < 0 ? 1 : 0;
3396
- }, ht = (i) => Math.sqrt(Yi(i, i)), Jr = (i, e, t) => {
3415
+ }, pt = (i) => Math.sqrt(Ji(i, i)), io = (i, e, t) => {
3397
3416
  const n = {
3398
3417
  x: e.x - i.x,
3399
3418
  y: e.y - i.y
@@ -3401,8 +3420,8 @@ const Xe = new Kr(), ft = (i, e) => i.x * e.y - i.y * e.x, Yi = (i, e) => i.x *
3401
3420
  x: t.x - i.x,
3402
3421
  y: t.y - i.y
3403
3422
  };
3404
- return ft(r, n) / ht(r) / ht(n);
3405
- }, $r = (i, e, t) => {
3423
+ return mt(r, n) / pt(r) / pt(n);
3424
+ }, no = (i, e, t) => {
3406
3425
  const n = {
3407
3426
  x: e.x - i.x,
3408
3427
  y: e.y - i.y
@@ -3410,24 +3429,24 @@ const Xe = new Kr(), ft = (i, e) => i.x * e.y - i.y * e.x, Yi = (i, e) => i.x *
3410
3429
  x: t.x - i.x,
3411
3430
  y: t.y - i.y
3412
3431
  };
3413
- return Yi(r, n) / ht(r) / ht(n);
3414
- }, Mi = (i, e, t) => e.y === 0 ? null : {
3432
+ return Ji(r, n) / pt(r) / pt(n);
3433
+ }, Ni = (i, e, t) => e.y === 0 ? null : {
3415
3434
  x: i.x + e.x / e.y * (t - i.y),
3416
3435
  y: t
3417
- }, Ci = (i, e, t) => e.x === 0 ? null : {
3436
+ }, Ti = (i, e, t) => e.x === 0 ? null : {
3418
3437
  x: t,
3419
3438
  y: i.y + e.y / e.x * (t - i.x)
3420
- }, eo = (i, e, t, n) => {
3421
- if (e.x === 0) return Ci(t, n, i.x);
3422
- if (n.x === 0) return Ci(i, e, t.x);
3423
- if (e.y === 0) return Mi(t, n, i.y);
3424
- if (n.y === 0) return Mi(i, e, t.y);
3425
- const r = ft(e, n);
3439
+ }, ro = (i, e, t, n) => {
3440
+ if (e.x === 0) return Ti(t, n, i.x);
3441
+ if (n.x === 0) return Ti(i, e, t.x);
3442
+ if (e.y === 0) return Ni(t, n, i.y);
3443
+ if (n.y === 0) return Ni(i, e, t.y);
3444
+ const r = mt(e, n);
3426
3445
  if (r == 0) return null;
3427
3446
  const o = {
3428
3447
  x: t.x - i.x,
3429
3448
  y: t.y - i.y
3430
- }, l = ft(o, e) / r, s = ft(o, n) / r, c = i.x + s * e.x, u = t.x + l * n.x, h = i.y + s * e.y, a = t.y + l * n.y, f = (c + u) / 2, d = (h + a) / 2;
3449
+ }, l = mt(o, e) / r, s = mt(o, n) / r, c = i.x + s * e.x, u = t.x + l * n.x, h = i.y + s * e.y, a = t.y + l * n.y, f = (c + u) / 2, d = (h + a) / 2;
3431
3450
  return {
3432
3451
  x: f,
3433
3452
  y: d
@@ -3437,7 +3456,7 @@ class re {
3437
3456
  // for ordering sweep events in the sweep event queue
3438
3457
  static compare(e, t) {
3439
3458
  const n = re.comparePoints(e.point, t.point);
3440
- return n !== 0 ? n : (e.point !== t.point && e.link(t), e.isLeft !== t.isLeft ? e.isLeft ? 1 : -1 : Ee.compare(e.segment, t.segment));
3459
+ return n !== 0 ? n : (e.point !== t.point && e.link(t), e.isLeft !== t.isLeft ? e.isLeft ? 1 : -1 : xe.compare(e.segment, t.segment));
3441
3460
  }
3442
3461
  // for ordering points in sweep line order
3443
3462
  static comparePoints(e, t) {
@@ -3492,8 +3511,8 @@ class re {
3492
3511
  const t = /* @__PURE__ */ new Map(), n = (r) => {
3493
3512
  const o = r.otherSE;
3494
3513
  t.set(r, {
3495
- sine: Jr(this.point, e.point, o.point),
3496
- cosine: $r(this.point, e.point, o.point)
3514
+ sine: io(this.point, e.point, o.point),
3515
+ cosine: no(this.point, e.point, o.point)
3497
3516
  });
3498
3517
  };
3499
3518
  return (r, o) => {
@@ -3509,8 +3528,8 @@ class re {
3509
3528
  };
3510
3529
  }
3511
3530
  }
3512
- let to = 0;
3513
- class Ee {
3531
+ let oo = 0;
3532
+ class xe {
3514
3533
  /* This compare() function is for ordering segments in the sweep
3515
3534
  * line tree, and does so according to the following criteria:
3516
3535
  *
@@ -3558,16 +3577,16 @@ class Ee {
3558
3577
  if (a > 0) return -1;
3559
3578
  }
3560
3579
  if (o !== l) {
3561
- const a = u - s, f = o - n, d = h - c, m = l - r;
3562
- if (a > f && d < m) return 1;
3563
- if (a < f && d > m) return -1;
3580
+ const a = u - s, f = o - n, d = h - c, g = l - r;
3581
+ if (a > f && d < g) return 1;
3582
+ if (a < f && d > g) return -1;
3564
3583
  }
3565
3584
  return o > l ? 1 : o < l || u < h ? -1 : u > h ? 1 : e.id < t.id ? -1 : e.id > t.id ? 1 : 0;
3566
3585
  }
3567
3586
  /* Warning: a reference to ringWindings input will be stored,
3568
3587
  * and possibly will be later modified */
3569
3588
  constructor(e, t, n, r) {
3570
- this.id = ++to, this.leftSE = e, e.segment = this, e.otherSE = t, this.rightSE = t, t.segment = this, t.otherSE = e, this.rings = n, this.windings = r;
3589
+ this.id = ++oo, this.leftSE = e, e.segment = this, e.otherSE = t, this.rightSE = t, t.segment = this, t.otherSE = e, this.rings = n, this.windings = r;
3571
3590
  }
3572
3591
  static fromRing(e, t, n) {
3573
3592
  let r, o, l;
@@ -3578,7 +3597,7 @@ class Ee {
3578
3597
  r = t, o = e, l = -1;
3579
3598
  else throw new Error(`Tried to create degenerate segment at [${e.x}, ${e.y}]`);
3580
3599
  const c = new re(r, !0), u = new re(o, !1);
3581
- return new Ee(c, u, [n], [l]);
3600
+ return new xe(c, u, [n], [l]);
3582
3601
  }
3583
3602
  /* When a segment is split, the rightSE is replaced with a new sweep event */
3584
3603
  replaceRightSE(e) {
@@ -3646,9 +3665,9 @@ class Ee {
3646
3665
  * Else, return null.
3647
3666
  */
3648
3667
  getIntersection(e) {
3649
- const t = this.bbox(), n = e.bbox(), r = Gt(t, n);
3668
+ const t = this.bbox(), n = e.bbox(), r = Zt(t, n);
3650
3669
  if (r === null) return null;
3651
- const o = this.leftSE.point, l = this.rightSE.point, s = e.leftSE.point, c = e.rightSE.point, u = je(t, s) && this.comparePoint(s) === 0, h = je(n, o) && e.comparePoint(o) === 0, a = je(t, c) && this.comparePoint(c) === 0, f = je(n, l) && e.comparePoint(l) === 0;
3670
+ const o = this.leftSE.point, l = this.rightSE.point, s = e.leftSE.point, c = e.rightSE.point, u = Qe(t, s) && this.comparePoint(s) === 0, h = Qe(n, o) && e.comparePoint(o) === 0, a = Qe(t, c) && this.comparePoint(c) === 0, f = Qe(n, l) && e.comparePoint(l) === 0;
3652
3671
  if (h && u)
3653
3672
  return f && !a ? l : !f && a ? c : null;
3654
3673
  if (h)
@@ -3658,8 +3677,8 @@ class Ee {
3658
3677
  if (f && a) return null;
3659
3678
  if (f) return l;
3660
3679
  if (a) return c;
3661
- const d = eo(o, this.vector(), s, e.vector());
3662
- return d === null || !je(r, d) ? null : Xe.round(d.x, d.y);
3680
+ const d = ro(o, this.vector(), s, e.vector());
3681
+ return d === null || !Qe(r, d) ? null : $e.round(d.x, d.y);
3663
3682
  }
3664
3683
  /**
3665
3684
  * Split the given segment into multiple segments on the given points.
@@ -3676,7 +3695,7 @@ class Ee {
3676
3695
  split(e) {
3677
3696
  const t = [], n = e.events !== void 0, r = new re(e, !0), o = new re(e, !1), l = this.rightSE;
3678
3697
  this.replaceRightSE(o), t.push(o), t.push(r);
3679
- const s = new Ee(r, l, this.rings.slice(), this.windings.slice());
3698
+ const s = new xe(r, l, this.rings.slice(), this.windings.slice());
3680
3699
  return re.comparePoints(s.leftSE.point, s.rightSE.point) > 0 && s.swapEvents(), re.comparePoints(this.leftSE.point, this.rightSE.point) > 0 && this.swapEvents(), n && (r.checkForConsuming(), o.checkForConsuming()), t;
3681
3700
  }
3682
3701
  /* Swap which event is left and right */
@@ -3692,7 +3711,7 @@ class Ee {
3692
3711
  let t = this, n = e;
3693
3712
  for (; t.consumedBy; ) t = t.consumedBy;
3694
3713
  for (; n.consumedBy; ) n = n.consumedBy;
3695
- const r = Ee.compare(t, n);
3714
+ const r = xe.compare(t, n);
3696
3715
  if (r !== 0) {
3697
3716
  if (r > 0) {
3698
3717
  const o = t;
@@ -3762,7 +3781,7 @@ class Ee {
3762
3781
  if (this.consumedBy) return !1;
3763
3782
  if (this._isInResult !== void 0) return this._isInResult;
3764
3783
  const e = this.beforeState().multiPolys, t = this.afterState().multiPolys;
3765
- switch (ae.type) {
3784
+ switch (ce.type) {
3766
3785
  case "union": {
3767
3786
  const n = e.length === 0, r = t.length === 0;
3768
3787
  this._isInResult = n !== r;
@@ -3770,7 +3789,7 @@ class Ee {
3770
3789
  }
3771
3790
  case "intersection": {
3772
3791
  let n, r;
3773
- e.length < t.length ? (n = e.length, r = t.length) : (n = t.length, r = e.length), this._isInResult = r === ae.numMultiPolys && n < r;
3792
+ e.length < t.length ? (n = e.length, r = t.length) : (n = t.length, r = e.length), this._isInResult = r === ce.numMultiPolys && n < r;
3774
3793
  break;
3775
3794
  }
3776
3795
  case "xor": {
@@ -3784,18 +3803,18 @@ class Ee {
3784
3803
  break;
3785
3804
  }
3786
3805
  default:
3787
- throw new Error(`Unrecognized operation type found ${ae.type}`);
3806
+ throw new Error(`Unrecognized operation type found ${ce.type}`);
3788
3807
  }
3789
3808
  return this._isInResult;
3790
3809
  }
3791
3810
  }
3792
- class ki {
3811
+ class Pi {
3793
3812
  constructor(e, t, n) {
3794
3813
  if (!Array.isArray(e) || e.length === 0)
3795
3814
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
3796
3815
  if (this.poly = t, this.isExterior = n, this.segments = [], typeof e[0][0] != "number" || typeof e[0][1] != "number")
3797
3816
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
3798
- const r = Xe.round(e[0][0], e[0][1]);
3817
+ const r = $e.round(e[0][0], e[0][1]);
3799
3818
  this.bbox = {
3800
3819
  ll: {
3801
3820
  x: r.x,
@@ -3810,10 +3829,10 @@ class ki {
3810
3829
  for (let l = 1, s = e.length; l < s; l++) {
3811
3830
  if (typeof e[l][0] != "number" || typeof e[l][1] != "number")
3812
3831
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
3813
- let c = Xe.round(e[l][0], e[l][1]);
3814
- c.x === o.x && c.y === o.y || (this.segments.push(Ee.fromRing(o, c, this)), c.x < this.bbox.ll.x && (this.bbox.ll.x = c.x), c.y < this.bbox.ll.y && (this.bbox.ll.y = c.y), c.x > this.bbox.ur.x && (this.bbox.ur.x = c.x), c.y > this.bbox.ur.y && (this.bbox.ur.y = c.y), o = c);
3832
+ let c = $e.round(e[l][0], e[l][1]);
3833
+ c.x === o.x && c.y === o.y || (this.segments.push(xe.fromRing(o, c, this)), c.x < this.bbox.ll.x && (this.bbox.ll.x = c.x), c.y < this.bbox.ll.y && (this.bbox.ll.y = c.y), c.x > this.bbox.ur.x && (this.bbox.ur.x = c.x), c.y > this.bbox.ur.y && (this.bbox.ur.y = c.y), o = c);
3815
3834
  }
3816
- (r.x !== o.x || r.y !== o.y) && this.segments.push(Ee.fromRing(o, r, this));
3835
+ (r.x !== o.x || r.y !== o.y) && this.segments.push(xe.fromRing(o, r, this));
3817
3836
  }
3818
3837
  getSweepEvents() {
3819
3838
  const e = [];
@@ -3824,11 +3843,11 @@ class ki {
3824
3843
  return e;
3825
3844
  }
3826
3845
  }
3827
- class io {
3846
+ class so {
3828
3847
  constructor(e, t) {
3829
3848
  if (!Array.isArray(e))
3830
3849
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
3831
- this.exteriorRing = new ki(e[0], this, !0), this.bbox = {
3850
+ this.exteriorRing = new Pi(e[0], this, !0), this.bbox = {
3832
3851
  ll: {
3833
3852
  x: this.exteriorRing.bbox.ll.x,
3834
3853
  y: this.exteriorRing.bbox.ll.y
@@ -3839,7 +3858,7 @@ class io {
3839
3858
  }
3840
3859
  }, this.interiorRings = [];
3841
3860
  for (let n = 1, r = e.length; n < r; n++) {
3842
- const o = new ki(e[n], this, !1);
3861
+ const o = new Pi(e[n], this, !1);
3843
3862
  o.bbox.ll.x < this.bbox.ll.x && (this.bbox.ll.x = o.bbox.ll.x), o.bbox.ll.y < this.bbox.ll.y && (this.bbox.ll.y = o.bbox.ll.y), o.bbox.ur.x > this.bbox.ur.x && (this.bbox.ur.x = o.bbox.ur.x), o.bbox.ur.y > this.bbox.ur.y && (this.bbox.ur.y = o.bbox.ur.y), this.interiorRings.push(o);
3844
3863
  }
3845
3864
  this.multiPoly = t;
@@ -3854,7 +3873,7 @@ class io {
3854
3873
  return e;
3855
3874
  }
3856
3875
  }
3857
- class Ni {
3876
+ class Ri {
3858
3877
  constructor(e, t) {
3859
3878
  if (!Array.isArray(e))
3860
3879
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
@@ -3873,7 +3892,7 @@ class Ni {
3873
3892
  }
3874
3893
  };
3875
3894
  for (let n = 0, r = e.length; n < r; n++) {
3876
- const o = new io(e[n], this);
3895
+ const o = new so(e[n], this);
3877
3896
  o.bbox.ll.x < this.bbox.ll.x && (this.bbox.ll.x = o.bbox.ll.x), o.bbox.ll.y < this.bbox.ll.y && (this.bbox.ll.y = o.bbox.ll.y), o.bbox.ur.x > this.bbox.ur.x && (this.bbox.ur.x = o.bbox.ur.x), o.bbox.ur.y > this.bbox.ur.y && (this.bbox.ur.y = o.bbox.ur.y), this.polys.push(o);
3878
3897
  }
3879
3898
  this.isSubject = t;
@@ -3888,7 +3907,7 @@ class Ni {
3888
3907
  return e;
3889
3908
  }
3890
3909
  }
3891
- class gt {
3910
+ class yt {
3892
3911
  /* Given the segments from the sweep line pass, compute & return a series
3893
3912
  * of closed rings from all the segments marked to be part of the result */
3894
3913
  static factory(e) {
@@ -3917,18 +3936,18 @@ class gt {
3917
3936
  }
3918
3937
  if (d !== null) {
3919
3938
  const b = a.splice(d)[0], v = u.splice(b.index);
3920
- v.unshift(v[0].otherSE), t.push(new gt(v.reverse()));
3939
+ v.unshift(v[0].otherSE), t.push(new yt(v.reverse()));
3921
3940
  continue;
3922
3941
  }
3923
3942
  a.push({
3924
3943
  index: u.length,
3925
3944
  point: s.point
3926
3945
  });
3927
- const m = s.getLeftmostComparator(l);
3928
- c = f.sort(m)[0].otherSE;
3946
+ const g = s.getLeftmostComparator(l);
3947
+ c = f.sort(g)[0].otherSE;
3929
3948
  break;
3930
3949
  }
3931
- t.push(new gt(u));
3950
+ t.push(new yt(u));
3932
3951
  }
3933
3952
  return t;
3934
3953
  }
@@ -3943,11 +3962,11 @@ class gt {
3943
3962
  const t = [e];
3944
3963
  for (let u = 1, h = this.events.length - 1; u < h; u++) {
3945
3964
  const a = this.events[u].point, f = this.events[u + 1].point;
3946
- xi(a, e, f) !== 0 && (t.push(a), e = a);
3965
+ ki(a, e, f) !== 0 && (t.push(a), e = a);
3947
3966
  }
3948
3967
  if (t.length === 1) return null;
3949
3968
  const n = t[0], r = t[1];
3950
- xi(n, e, r) === 0 && t.shift(), t.push(t[0]);
3969
+ ki(n, e, r) === 0 && t.shift(), t.push(t[0]);
3951
3970
  const o = this.isExteriorRing() ? 1 : -1, l = this.isExteriorRing() ? 0 : t.length - 1, s = this.isExteriorRing() ? t.length : -1, c = [];
3952
3971
  for (let u = l; u != s; u += o) c.push([t[u].x, t[u].y]);
3953
3972
  return c;
@@ -3979,7 +3998,7 @@ class gt {
3979
3998
  }
3980
3999
  }
3981
4000
  }
3982
- class Pi {
4001
+ class Ii {
3983
4002
  constructor(e) {
3984
4003
  this.exteriorRing = e, e.poly = this, this.interiorRings = [];
3985
4004
  }
@@ -3996,7 +4015,7 @@ class Pi {
3996
4015
  return e;
3997
4016
  }
3998
4017
  }
3999
- class no {
4018
+ class lo {
4000
4019
  constructor(e) {
4001
4020
  this.rings = e, this.polys = this._composePolys(e);
4002
4021
  }
@@ -4013,19 +4032,19 @@ class no {
4013
4032
  for (let n = 0, r = e.length; n < r; n++) {
4014
4033
  const o = e[n];
4015
4034
  if (!o.poly)
4016
- if (o.isExteriorRing()) t.push(new Pi(o));
4035
+ if (o.isExteriorRing()) t.push(new Ii(o));
4017
4036
  else {
4018
4037
  const l = o.enclosingRing();
4019
- l.poly || t.push(new Pi(l)), l.poly.addInterior(o);
4038
+ l.poly || t.push(new Ii(l)), l.poly.addInterior(o);
4020
4039
  }
4021
4040
  }
4022
4041
  return t;
4023
4042
  }
4024
4043
  }
4025
- class ro {
4044
+ class uo {
4026
4045
  constructor(e) {
4027
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Ee.compare;
4028
- this.queue = e, this.tree = new Ht(t), this.segments = [];
4046
+ let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : xe.compare;
4047
+ this.queue = e, this.tree = new Xt(t), this.segments = [];
4029
4048
  }
4030
4049
  process(e) {
4031
4050
  const t = e.segment, n = [];
@@ -4044,7 +4063,7 @@ class ro {
4044
4063
  const a = s.getIntersection(t);
4045
4064
  if (a !== null && (t.isAnEndpoint(a) || (u = a), !s.isAnEndpoint(a))) {
4046
4065
  const f = this._splitSafely(s, a);
4047
- for (let d = 0, m = f.length; d < m; d++)
4066
+ for (let d = 0, g = f.length; d < g; d++)
4048
4067
  n.push(f[d]);
4049
4068
  }
4050
4069
  }
@@ -4053,7 +4072,7 @@ class ro {
4053
4072
  const a = c.getIntersection(t);
4054
4073
  if (a !== null && (t.isAnEndpoint(a) || (h = a), !c.isAnEndpoint(a))) {
4055
4074
  const f = this._splitSafely(c, a);
4056
- for (let d = 0, m = f.length; d < m; d++)
4075
+ for (let d = 0, g = f.length; d < g; d++)
4057
4076
  n.push(f[d]);
4058
4077
  }
4059
4078
  }
@@ -4061,7 +4080,7 @@ class ro {
4061
4080
  let a = null;
4062
4081
  u === null ? a = h : h === null ? a = u : a = re.comparePoints(u, h) <= 0 ? u : h, this.queue.remove(t.rightSE), n.push(t.rightSE);
4063
4082
  const f = t.split(a);
4064
- for (let d = 0, m = f.length; d < m; d++)
4083
+ for (let d = 0, g = f.length; d < g; d++)
4065
4084
  n.push(f[d]);
4066
4085
  }
4067
4086
  n.length > 0 ? (this.tree.remove(t), n.push(e)) : (this.segments.push(t), t.prev = s);
@@ -4095,33 +4114,33 @@ class ro {
4095
4114
  return r.push(n), e.consumedBy === void 0 && this.tree.add(e), r;
4096
4115
  }
4097
4116
  }
4098
- const Ti = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, oo = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6;
4099
- class so {
4117
+ const Oi = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, ao = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6;
4118
+ class co {
4100
4119
  run(e, t, n) {
4101
- ae.type = e, Xe.reset();
4102
- const r = [new Ni(t, !0)];
4120
+ ce.type = e, $e.reset();
4121
+ const r = [new Ri(t, !0)];
4103
4122
  for (let a = 0, f = n.length; a < f; a++)
4104
- r.push(new Ni(n[a], !1));
4105
- if (ae.numMultiPolys = r.length, ae.type === "difference") {
4123
+ r.push(new Ri(n[a], !1));
4124
+ if (ce.numMultiPolys = r.length, ce.type === "difference") {
4106
4125
  const a = r[0];
4107
4126
  let f = 1;
4108
4127
  for (; f < r.length; )
4109
- Gt(r[f].bbox, a.bbox) !== null ? f++ : r.splice(f, 1);
4128
+ Zt(r[f].bbox, a.bbox) !== null ? f++ : r.splice(f, 1);
4110
4129
  }
4111
- if (ae.type === "intersection")
4130
+ if (ce.type === "intersection")
4112
4131
  for (let a = 0, f = r.length; a < f; a++) {
4113
4132
  const d = r[a];
4114
- for (let m = a + 1, b = r.length; m < b; m++)
4115
- if (Gt(d.bbox, r[m].bbox) === null) return [];
4133
+ for (let g = a + 1, b = r.length; g < b; g++)
4134
+ if (Zt(d.bbox, r[g].bbox) === null) return [];
4116
4135
  }
4117
- const o = new Ht(re.compare);
4136
+ const o = new Xt(re.compare);
4118
4137
  for (let a = 0, f = r.length; a < f; a++) {
4119
4138
  const d = r[a].getSweepEvents();
4120
- for (let m = 0, b = d.length; m < b; m++)
4121
- if (o.insert(d[m]), o.size > Ti)
4139
+ for (let g = 0, b = d.length; g < b; g++)
4140
+ if (o.insert(d[g]), o.size > Oi)
4122
4141
  throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big).");
4123
4142
  }
4124
- const l = new ro(o);
4143
+ const l = new uo(o);
4125
4144
  let s = o.size, c = o.pop();
4126
4145
  for (; c; ) {
4127
4146
  const a = c.key;
@@ -4129,78 +4148,78 @@ class so {
4129
4148
  const d = a.segment;
4130
4149
  throw new Error(`Unable to pop() ${a.isLeft ? "left" : "right"} SweepEvent [${a.point.x}, ${a.point.y}] from segment #${d.id} [${d.leftSE.point.x}, ${d.leftSE.point.y}] -> [${d.rightSE.point.x}, ${d.rightSE.point.y}] from queue.`);
4131
4150
  }
4132
- if (o.size > Ti)
4151
+ if (o.size > Oi)
4133
4152
  throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big).");
4134
- if (l.segments.length > oo)
4153
+ if (l.segments.length > ao)
4135
4154
  throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments).");
4136
4155
  const f = l.process(a);
4137
- for (let d = 0, m = f.length; d < m; d++) {
4156
+ for (let d = 0, g = f.length; d < g; d++) {
4138
4157
  const b = f[d];
4139
4158
  b.consumedBy === void 0 && o.insert(b);
4140
4159
  }
4141
4160
  s = o.size, c = o.pop();
4142
4161
  }
4143
- Xe.reset();
4144
- const u = gt.factory(l.segments);
4145
- return new no(u).getGeom();
4162
+ $e.reset();
4163
+ const u = yt.factory(l.segments);
4164
+ return new lo(u).getGeom();
4146
4165
  }
4147
4166
  }
4148
- const ae = new so(), lo = function(i) {
4167
+ const ce = new co(), fo = function(i) {
4149
4168
  for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
4150
4169
  t[n - 1] = arguments[n];
4151
- return ae.run("union", i, t);
4152
- }, uo = function(i) {
4170
+ return ce.run("union", i, t);
4171
+ }, ho = function(i) {
4153
4172
  for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
4154
4173
  t[n - 1] = arguments[n];
4155
- return ae.run("intersection", i, t);
4156
- }, ao = function(i) {
4174
+ return ce.run("intersection", i, t);
4175
+ }, mo = function(i) {
4157
4176
  for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
4158
4177
  t[n - 1] = arguments[n];
4159
- return ae.run("xor", i, t);
4160
- }, co = function(i) {
4178
+ return ce.run("xor", i, t);
4179
+ }, go = function(i) {
4161
4180
  for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
4162
4181
  t[n - 1] = arguments[n];
4163
- return ae.run("difference", i, t);
4182
+ return ce.run("difference", i, t);
4164
4183
  };
4165
- var Xi = {
4166
- union: lo,
4167
- intersection: uo,
4168
- xor: ao,
4169
- difference: co
4184
+ var $i = {
4185
+ union: fo,
4186
+ intersection: ho,
4187
+ xor: mo,
4188
+ difference: go
4170
4189
  };
4171
- function fo(i, e = {}) {
4190
+ function po(i, e = {}) {
4172
4191
  const t = [];
4173
- if (Zt(i, (r) => {
4192
+ if (Vt(i, (r) => {
4174
4193
  t.push(r.coordinates);
4175
4194
  }), t.length < 2)
4176
4195
  throw new Error("Must have at least 2 geometries");
4177
- const n = Xi.union(t[0], ...t.slice(1));
4178
- return n.length === 0 ? null : n.length === 1 ? qt(n[0], e.properties) : qi(n, e.properties);
4196
+ const n = $i.union(t[0], ...t.slice(1));
4197
+ return n.length === 0 ? null : n.length === 1 ? Ht(n[0], e.properties) : Hi(n, e.properties);
4179
4198
  }
4180
- var Ki = fo;
4181
- function ho(i) {
4199
+ var en = po;
4200
+ function yo(i) {
4182
4201
  const e = [];
4183
- if (Zt(i, (r) => {
4202
+ if (Vt(i, (r) => {
4184
4203
  e.push(r.coordinates);
4185
4204
  }), e.length < 2)
4186
4205
  throw new Error("Must have at least two features");
4187
- const t = i.features[0].properties || {}, n = Xi.difference(e[0], ...e.slice(1));
4188
- return n.length === 0 ? null : n.length === 1 ? qt(n[0], t) : qi(n, t);
4206
+ const t = i.features[0].properties || {}, n = $i.difference(e[0], ...e.slice(1));
4207
+ return n.length === 0 ? null : n.length === 1 ? Ht(n[0], t) : Hi(n, t);
4189
4208
  }
4190
- var go = ho;
4191
- function mo(i) {
4209
+ var bo = yo;
4210
+ function vo(i) {
4192
4211
  if (!i)
4193
4212
  throw new Error("geojson is required");
4194
4213
  var e = [];
4195
- return Rr(i, function(t) {
4214
+ return Ar(i, function(t) {
4196
4215
  e.push(t);
4197
- }), Ye(e);
4216
+ }), Je(e);
4198
4217
  }
4199
- var po = mo;
4200
- function Ri(i, e) {
4201
- const t = go(
4202
- Ye([
4203
- qt([
4218
+ var _o = vo;
4219
+ function zi(i, e) {
4220
+ const t = bo(
4221
+ Je([
4222
+ Ht([
4204
4223
  [
4205
4224
  [180, 90],
4206
4225
  [-180, 90],
@@ -4215,10 +4234,10 @@ function Ri(i, e) {
4215
4234
  if (!t)
4216
4235
  return;
4217
4236
  t.properties = { isMask: !0 };
4218
- const n = He(Wt(i)), r = (n[2] - n[0]) / 360 / 1e3, o = n[0] < -180, l = n[2] > 180, s = po(i);
4237
+ const n = Xe(Ut(i)), r = (n[2] - n[0]) / 360 / 1e3, o = n[0] < -180, l = n[2] > 180, s = _o(i);
4219
4238
  if (s.features.length > 1 && (o || l))
4220
4239
  for (const c of s.features) {
4221
- const u = He(Wt(c));
4240
+ const u = Xe(Ut(c));
4222
4241
  if (l && u[0] < -180 + r)
4223
4242
  for (const h of c.geometry.coordinates)
4224
4243
  for (const a of h)
@@ -4229,13 +4248,13 @@ function Ri(i, e) {
4229
4248
  a[0] -= 360 - r;
4230
4249
  }
4231
4250
  e(
4232
- Ye([
4233
- s.features.length < 2 ? i : Ki(s) ?? i,
4251
+ Je([
4252
+ s.features.length < 2 ? i : en(s) ?? i,
4234
4253
  t
4235
4254
  ])
4236
4255
  );
4237
4256
  }
4238
- const Oi = (i) => {
4257
+ const Ai = (i) => {
4239
4258
  var n, r, o;
4240
4259
  const e = (n = i == null ? void 0 : i.geometry) == null ? void 0 : n.type, t = (r = i == null ? void 0 : i.properties) != null && r.isMask ? 0 : e === "LineString" || e === "MultiLineString" ? 3 : 2;
4241
4260
  return {
@@ -4247,12 +4266,12 @@ const Oi = (i) => {
4247
4266
  lineCap: "butt"
4248
4267
  };
4249
4268
  };
4250
- function yo(i, e = !0, t = !0, n = {}, r = {}, o = Oi) {
4269
+ function wo(i, e = !0, t = !0, n = {}, r = {}, o = Ai) {
4251
4270
  let l;
4252
4271
  const s = [];
4253
4272
  let c, u;
4254
- const h = ue.geoJSON(void 0, {
4255
- style: o === !0 ? Oi : o === !1 ? void 0 : o ?? void 0,
4273
+ const h = ae.geoJSON(void 0, {
4274
+ style: o === !0 ? Ai : o === !1 ? void 0 : o ?? void 0,
4256
4275
  interactive: !1
4257
4276
  }).addTo(i), a = (d) => {
4258
4277
  l == null || l({
@@ -4260,11 +4279,11 @@ function yo(i, e = !0, t = !0, n = {}, r = {}, o = Oi) {
4260
4279
  coordinates: [d.latlng.lng, d.latlng.lat]
4261
4280
  });
4262
4281
  };
4263
- function f(d, m = !1) {
4282
+ function f(d, g = !1) {
4264
4283
  const b = document.createElement("div");
4265
- return new lr({ props: { displayIn: "leaflet" }, target: b }), new ue.Marker(d, {
4266
- interactive: m,
4267
- icon: new ue.DivIcon({
4284
+ return new fr({ props: { displayIn: "leaflet" }, target: b }), new ae.Marker(d, {
4285
+ interactive: g,
4286
+ icon: new ae.DivIcon({
4268
4287
  html: b,
4269
4288
  className: "",
4270
4289
  iconAnchor: [12, 26],
@@ -4277,17 +4296,17 @@ function yo(i, e = !0, t = !0, n = {}, r = {}, o = Oi) {
4277
4296
  setEventHandler(d) {
4278
4297
  d ? (l = d, i.on("click", a)) : (l = void 0, i.off("click", a));
4279
4298
  },
4280
- flyTo(d, m) {
4281
- i.flyTo([d[1], d[0]], m, { duration: 2, ...n });
4299
+ flyTo(d, g) {
4300
+ i.flyTo([d[1], d[0]], g, { duration: 2, ...n });
4282
4301
  },
4283
- fitBounds(d, m, b) {
4302
+ fitBounds(d, g, b) {
4284
4303
  i.flyToBounds(
4285
4304
  [
4286
4305
  [d[1], d[0]],
4287
4306
  [d[3], d[2]]
4288
4307
  ],
4289
4308
  {
4290
- padding: [m, m],
4309
+ padding: [g, g],
4291
4310
  duration: 2,
4292
4311
  ...b ? { maxZoom: b } : {},
4293
4312
  ...r
@@ -4301,73 +4320,73 @@ function yo(i, e = !0, t = !0, n = {}, r = {}, o = Oi) {
4301
4320
  var b;
4302
4321
  if (!e)
4303
4322
  return;
4304
- const m = d && [d[1], d[0]];
4305
- u ? m ? u.setLatLng(m) : (u.remove(), u = void 0) : m && (e instanceof Function ? u = e(i) ?? void 0 : (u = (typeof e == "object" ? new ue.Marker(m, e) : f(m)).addTo(i), (b = u.getElement()) == null || b.classList.add("marker-reverse")));
4323
+ const g = d && [d[1], d[0]];
4324
+ u ? g ? u.setLatLng(g) : (u.remove(), u = void 0) : g && (e instanceof Function ? u = e(i) ?? void 0 : (u = (typeof e == "object" ? new ae.Marker(g, e) : f(g)).addTo(i), (b = u.getElement()) == null || b.classList.add("marker-reverse")));
4306
4325
  },
4307
- setFeatures(d, m, b) {
4326
+ setFeatures(d, g, b) {
4308
4327
  function v(y) {
4309
4328
  h.clearLayers(), y && h.addData(y);
4310
4329
  }
4311
4330
  for (const y of s)
4312
4331
  y.remove();
4313
4332
  s.length = 0, v();
4314
- e: if (m) {
4333
+ e: if (g) {
4315
4334
  let y = !1;
4316
- if (m.geometry.type === "GeometryCollection") {
4317
- const E = m.geometry.geometries.filter(
4335
+ if (g.geometry.type === "GeometryCollection") {
4336
+ const E = g.geometry.geometries.filter(
4318
4337
  (_) => _.type === "Polygon" || _.type === "MultiPolygon"
4319
4338
  );
4320
4339
  t: if (E.length > 0) {
4321
- const _ = Ki(
4322
- Ye(E.map((L) => Ve(L)))
4340
+ const _ = en(
4341
+ Je(E.map((L) => Ke(L)))
4323
4342
  );
4324
4343
  if (!_)
4325
4344
  break t;
4326
- Ri(
4345
+ zi(
4327
4346
  {
4328
- ...m,
4347
+ ...g,
4329
4348
  geometry: _.geometry
4330
4349
  },
4331
4350
  v
4332
4351
  ), y = !0;
4333
4352
  } else {
4334
- const _ = m.geometry.geometries.filter(
4353
+ const _ = g.geometry.geometries.filter(
4335
4354
  (L) => L.type === "LineString" || L.type === "MultiLineString"
4336
4355
  );
4337
4356
  _.length > 0 && (v({
4338
- ...m,
4357
+ ...g,
4339
4358
  geometry: { type: "GeometryCollection", geometries: _ }
4340
4359
  }), y = !0);
4341
4360
  }
4342
4361
  }
4343
4362
  if (!y) {
4344
- if (m.geometry.type === "Polygon" || m.geometry.type === "MultiPolygon")
4345
- Ri(m, (E) => {
4363
+ if (g.geometry.type === "Polygon" || g.geometry.type === "MultiPolygon")
4364
+ zi(g, (E) => {
4346
4365
  if (!E)
4347
4366
  return;
4348
- const _ = [...E.features], L = He(Wt(m)), P = L[2] - L[0];
4349
- L[0] - P / 4 < -180 && _.push(...Ii(E, -360).features), L[2] + P / 4 > 180 && _.push(...Ii(E, 360).features), v(Ye(_));
4367
+ const _ = [...E.features], L = Xe(Ut(g)), T = L[2] - L[0];
4368
+ L[0] - T / 4 < -180 && _.push(...Wi(E, -360).features), L[2] + T / 4 > 180 && _.push(...Wi(E, 360).features), v(Je(_));
4350
4369
  });
4351
- else if (m.geometry.type === "LineString" || m.geometry.type === "MultiLineString") {
4352
- v(m);
4370
+ else if (g.geometry.type === "LineString" || g.geometry.type === "MultiLineString") {
4371
+ v(g);
4353
4372
  break e;
4354
4373
  }
4355
4374
  }
4356
- if (!b && m.geometry.type !== "Point")
4375
+ if (!b && g.geometry.type !== "Point")
4357
4376
  break e;
4358
4377
  if (e instanceof Function) {
4359
- const E = e(i, m);
4378
+ const E = e(i, g);
4360
4379
  E && s.push(E.addTo(i));
4361
4380
  } else if (e) {
4362
- const E = [m.center[1], m.center[0]];
4381
+ const E = [g.center[1], g.center[0]];
4363
4382
  s.push(
4364
- typeof e == "object" ? new ue.Marker(E, e) : f(E).addTo(i)
4383
+ typeof e == "object" ? new ae.Marker(E, e) : f(E).addTo(i)
4365
4384
  );
4366
4385
  }
4367
4386
  }
4368
4387
  if (t)
4369
4388
  for (const y of d ?? []) {
4370
- if (y === m)
4389
+ if (y === g)
4371
4390
  continue;
4372
4391
  const E = [
4373
4392
  y.center[1],
@@ -4378,15 +4397,15 @@ function yo(i, e = !0, t = !0, n = {}, r = {}, o = Oi) {
4378
4397
  if (_ = t(i, y), !_)
4379
4398
  continue;
4380
4399
  } else
4381
- _ = (typeof t == "object" ? new ue.Marker(E, t) : f(E, !0)).addTo(i).bindTooltip(
4400
+ _ = (typeof t == "object" ? new ae.Marker(E, t) : f(E, !0)).addTo(i).bindTooltip(
4382
4401
  y.place_type[0] === "reverse" ? y.place_name : y.place_name.replace(/,.*/, ""),
4383
4402
  {
4384
4403
  direction: "top"
4385
4404
  }
4386
4405
  );
4387
4406
  const L = _.getElement();
4388
- L && (L.addEventListener("click", (P) => {
4389
- P.stopPropagation(), l == null || l({ type: "markerClick", id: y.id });
4407
+ L && (L.addEventListener("click", (T) => {
4408
+ T.stopPropagation(), l == null || l({ type: "markerClick", id: y.id });
4390
4409
  }), L.addEventListener("mouseenter", () => {
4391
4410
  l == null || l({ type: "markerMouseEnter", id: y.id });
4392
4411
  }), L.addEventListener("mouseleave", () => {
@@ -4395,8 +4414,8 @@ function yo(i, e = !0, t = !0, n = {}, r = {}, o = Oi) {
4395
4414
  }
4396
4415
  },
4397
4416
  setSelectedMarker(d) {
4398
- var m, b;
4399
- c && ((m = c.getElement()) == null || m.classList.toggle("marker-selected", !1)), c = d > -1 ? s[d] : void 0, (b = c == null ? void 0 : c.getElement()) == null || b.classList.toggle("marker-selected", !0);
4417
+ var g, b;
4418
+ c && ((g = c.getElement()) == null || g.classList.toggle("marker-selected", !1)), c = d > -1 ? s[d] : void 0, (b = c == null ? void 0 : c.getElement()) == null || b.classList.toggle("marker-selected", !0);
4400
4419
  },
4401
4420
  getCenterAndZoom() {
4402
4421
  const d = i.getCenter();
@@ -4404,35 +4423,35 @@ function yo(i, e = !0, t = !0, n = {}, r = {}, o = Oi) {
4404
4423
  }
4405
4424
  };
4406
4425
  }
4407
- function Ii(i, e) {
4408
- const t = Ar(i);
4426
+ function Wi(i, e) {
4427
+ const t = Ur(i);
4409
4428
  for (const n of t.features)
4410
4429
  if (n.geometry.type == "MultiPolygon")
4411
4430
  for (const r of n.geometry.coordinates)
4412
- zi(r, e);
4431
+ Bi(r, e);
4413
4432
  else
4414
- zi(n.geometry.coordinates, e);
4433
+ Bi(n.geometry.coordinates, e);
4415
4434
  return t;
4416
4435
  }
4417
- function zi(i, e) {
4436
+ function Bi(i, e) {
4418
4437
  for (const t of i)
4419
4438
  for (const n of t)
4420
4439
  n[0] += e;
4421
4440
  }
4422
- class Ji extends ue.Control {
4441
+ class tn extends ae.Control {
4423
4442
  }
4424
- ue.Util.extend(Ji.prototype, ue.Evented.prototype);
4425
- var ie, Re;
4426
- class bo extends Ji {
4443
+ ae.Util.extend(tn.prototype, ae.Evented.prototype);
4444
+ var te, Ae;
4445
+ class Eo extends tn {
4427
4446
  constructor(t) {
4428
4447
  super(t);
4429
- Nt(this, ie);
4430
- Nt(this, Re);
4431
- Pt(this, Re, t);
4448
+ Rt(this, te);
4449
+ Rt(this, Ae);
4450
+ It(this, Ae, t);
4432
4451
  }
4433
4452
  onAdd(t) {
4434
4453
  const n = document.createElement("div");
4435
- n.className = "leaflet-ctrl-geocoder", ue.DomEvent.disableClickPropagation(n), ue.DomEvent.disableScrollPropagation(n);
4454
+ n.className = "leaflet-ctrl-geocoder", ae.DomEvent.disableClickPropagation(n), ae.DomEvent.disableScrollPropagation(n);
4436
4455
  const {
4437
4456
  marker: r,
4438
4457
  showResultMarkers: o,
@@ -4440,7 +4459,7 @@ class bo extends Ji {
4440
4459
  fullGeometryStyle: s,
4441
4460
  position: c,
4442
4461
  ...u
4443
- } = te(this, Re), h = typeof l == "boolean" ? {} : l, a = yo(
4462
+ } = ee(this, Ae), h = typeof l == "boolean" ? {} : l, a = wo(
4444
4463
  t,
4445
4464
  r,
4446
4465
  o,
@@ -4448,7 +4467,7 @@ class bo extends Ji {
4448
4467
  h,
4449
4468
  s
4450
4469
  );
4451
- Pt(this, ie, new Tr({
4470
+ It(this, te, new zr({
4452
4471
  target: n,
4453
4472
  props: {
4454
4473
  mapController: a,
@@ -4467,7 +4486,7 @@ class bo extends Ji {
4467
4486
  querychange: void 0
4468
4487
  };
4469
4488
  for (const d in f)
4470
- te(this, ie).$on(d, (m) => this.fire(d, m.detail));
4489
+ ee(this, te).$on(d, (g) => this.fire(d, g.detail));
4471
4490
  return n;
4472
4491
  }
4473
4492
  /**
@@ -4477,15 +4496,15 @@ class bo extends Ji {
4477
4496
  */
4478
4497
  setOptions(t) {
4479
4498
  var c;
4480
- Object.assign(te(this, Re), t);
4499
+ Object.assign(ee(this, Ae), t);
4481
4500
  const {
4482
4501
  marker: n,
4483
4502
  showResultMarkers: r,
4484
4503
  flyTo: o,
4485
4504
  fullGeometryStyle: l,
4486
4505
  ...s
4487
- } = te(this, Re);
4488
- (c = te(this, ie)) == null || c.$set(s);
4506
+ } = ee(this, Ae);
4507
+ (c = ee(this, te)) == null || c.$set(s);
4489
4508
  }
4490
4509
  /**
4491
4510
  * Set the content of search input box.
@@ -4495,21 +4514,21 @@ class bo extends Ji {
4495
4514
  */
4496
4515
  setQuery(t, n = !0) {
4497
4516
  var r;
4498
- (r = te(this, ie)) == null || r.setQuery(t, n);
4517
+ (r = ee(this, te)) == null || r.setQuery(t, n);
4499
4518
  }
4500
4519
  /**
4501
4520
  * Clear geocoding search results from the map.
4502
4521
  */
4503
4522
  clearMap() {
4504
4523
  var t;
4505
- (t = te(this, ie)) == null || t.clearMap();
4524
+ (t = ee(this, te)) == null || t.clearMap();
4506
4525
  }
4507
4526
  /**
4508
4527
  * Clear search result list.
4509
4528
  */
4510
4529
  clearList() {
4511
4530
  var t;
4512
- (t = te(this, ie)) == null || t.clearList();
4531
+ (t = ee(this, te)) == null || t.clearList();
4513
4532
  }
4514
4533
  /**
4515
4534
  * Set reverse geocoding mode.
@@ -4518,7 +4537,7 @@ class bo extends Ji {
4518
4537
  */
4519
4538
  setReverseMode(t) {
4520
4539
  var n;
4521
- (n = te(this, ie)) == null || n.$set({ reverseActive: t });
4540
+ (n = ee(this, te)) == null || n.$set({ reverseActive: t });
4522
4541
  }
4523
4542
  /**
4524
4543
  * Focus the search input box.
@@ -4527,27 +4546,27 @@ class bo extends Ji {
4527
4546
  */
4528
4547
  focus(t) {
4529
4548
  var n;
4530
- (n = te(this, ie)) == null || n.focus(t);
4549
+ (n = ee(this, te)) == null || n.focus(t);
4531
4550
  }
4532
4551
  /**
4533
4552
  * Blur the search input box.
4534
4553
  */
4535
4554
  blur() {
4536
4555
  var t;
4537
- (t = te(this, ie)) == null || t.blur();
4556
+ (t = ee(this, te)) == null || t.blur();
4538
4557
  }
4539
4558
  onRemove() {
4540
4559
  var t;
4541
- (t = te(this, ie)) == null || t.$destroy();
4560
+ (t = ee(this, te)) == null || t.$destroy();
4542
4561
  }
4543
4562
  }
4544
- ie = new WeakMap(), Re = new WeakMap();
4545
- function vo(...i) {
4546
- return new bo(...i);
4563
+ te = new WeakMap(), Ae = new WeakMap();
4564
+ function Lo(...i) {
4565
+ return new Eo(...i);
4547
4566
  }
4548
- window.L && typeof window.L == "object" && typeof window.L.control == "function" && (window.L.control.maptilerGeocoding = vo);
4567
+ window.L && typeof window.L == "object" && typeof window.L.control == "function" && (window.L.control.maptilerGeocoding = Lo);
4549
4568
  export {
4550
- bo as GeocodingControl,
4551
- yo as createLeafletMapController
4569
+ Eo as GeocodingControl,
4570
+ wo as createLeafletMapController
4552
4571
  };
4553
4572
  //# sourceMappingURL=leaflet.js.map