@maptiler/geocoding-control 1.4.2-dev.2 → 1.4.2-dev.3

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,30 +1,30 @@
1
- var an = Object.defineProperty;
2
- var Zt = (i) => {
1
+ var cn = Object.defineProperty;
2
+ var qt = (i) => {
3
3
  throw TypeError(i);
4
4
  };
5
- var cn = (i, e, t) => e in i ? an(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
6
- var _t = (i, e, t) => cn(i, typeof e != "symbol" ? e + "" : e, t), qt = (i, e, t) => e.has(i) || Zt("Cannot " + t);
7
- var se = (i, e, t) => (qt(i, e, "read from private field"), t ? t.call(i) : e.get(i)), Et = (i, e, t) => e.has(i) ? Zt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), it = (i, e, t, n) => (qt(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t);
5
+ var fn = (i, e, t) => e in i ? cn(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
6
+ var Et = (i, e, t) => fn(i, typeof e != "symbol" ? e + "" : e, t), Qt = (i, e, t) => e.has(i) || qt("Cannot " + t);
7
+ var se = (i, e, t) => (Qt(i, e, "read from private field"), t ? t.call(i) : e.get(i)), Lt = (i, e, t) => e.has(i) ? qt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), it = (i, e, t, n) => (Qt(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t);
8
8
  import * as de from "leaflet";
9
9
  function A() {
10
10
  }
11
- function fn(i, e) {
11
+ function dn(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 Mi(i) {
18
+ function Ci(i) {
19
19
  return i();
20
20
  }
21
- function Qt() {
21
+ function Ht() {
22
22
  return /* @__PURE__ */ Object.create(null);
23
23
  }
24
24
  function ye(i) {
25
- i.forEach(Mi);
25
+ i.forEach(Ci);
26
26
  }
27
- function Ci(i) {
27
+ function ki(i) {
28
28
  return typeof i == "function";
29
29
  }
30
30
  function Se(i, e) {
@@ -34,17 +34,17 @@ let nt;
34
34
  function X(i, e) {
35
35
  return i === e ? !0 : (nt || (nt = document.createElement("a")), nt.href = e, i === nt.href);
36
36
  }
37
- function dn(i) {
37
+ function hn(i) {
38
38
  return Object.keys(i).length === 0;
39
39
  }
40
- function hn(i, e, t, n) {
40
+ function gn(i, e, t, n) {
41
41
  if (i) {
42
- const r = ki(i, e, t, n);
42
+ const r = Ni(i, e, t, n);
43
43
  return i[0](r);
44
44
  }
45
45
  }
46
- function ki(i, e, t, n) {
47
- return i[1] && n ? fn(t.ctx.slice(), i[1](n(e))) : t.ctx;
46
+ function Ni(i, e, t, n) {
47
+ return i[1] && n ? dn(t.ctx.slice(), i[1](n(e))) : t.ctx;
48
48
  }
49
49
  function mn(i, e, t, n) {
50
50
  if (i[2] && n) {
@@ -61,13 +61,13 @@ function mn(i, e, t, n) {
61
61
  }
62
62
  return e.dirty;
63
63
  }
64
- function gn(i, e, t, n, r, o) {
64
+ function yn(i, e, t, n, r, o) {
65
65
  if (r) {
66
- const l = ki(e, t, n, o);
66
+ const l = Ni(e, t, n, o);
67
67
  i.p(l, r);
68
68
  }
69
69
  }
70
- function yn(i) {
70
+ function pn(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,13 +76,13 @@ function yn(i) {
76
76
  }
77
77
  return -1;
78
78
  }
79
- function Ht(i) {
79
+ function Vt(i) {
80
80
  return i ?? "";
81
81
  }
82
82
  function T(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 B(i) {
@@ -100,13 +100,13 @@ function _e(i) {
100
100
  function te() {
101
101
  return _e(" ");
102
102
  }
103
- function pn() {
103
+ function vn() {
104
104
  return _e("");
105
105
  }
106
106
  function J(i, e, t, n) {
107
107
  return i.addEventListener(e, t, n), () => i.removeEventListener(e, t, n);
108
108
  }
109
- function vn(i) {
109
+ function bn(i) {
110
110
  return function(e) {
111
111
  return e.preventDefault(), i.call(this, e);
112
112
  };
@@ -114,39 +114,39 @@ function vn(i) {
114
114
  function y(i, e, t) {
115
115
  t == null ? i.removeAttribute(e) : i.getAttribute(e) !== t && i.setAttribute(e, t);
116
116
  }
117
- function bn(i) {
117
+ function wn(i) {
118
118
  return Array.from(i.childNodes);
119
119
  }
120
- function Ge(i, e) {
120
+ function je(i, e) {
121
121
  e = "" + e, i.data !== e && (i.data = /** @type {string} */
122
122
  e);
123
123
  }
124
- function Vt(i, e) {
124
+ function Yt(i, e) {
125
125
  i.value = e ?? "";
126
126
  }
127
127
  function re(i, e, t) {
128
128
  i.classList.toggle(e, !!t);
129
129
  }
130
- function wn(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
130
+ function _n(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
131
131
  return new CustomEvent(i, { detail: e, bubbles: t, cancelable: n });
132
132
  }
133
- let je;
133
+ let Ze;
134
134
  function ze(i) {
135
- je = i;
135
+ Ze = i;
136
136
  }
137
- function Ni() {
138
- if (!je) throw new Error("Function called outside component initialization");
139
- return je;
137
+ function Pi() {
138
+ if (!Ze) throw new Error("Function called outside component initialization");
139
+ return Ze;
140
140
  }
141
- function _n(i) {
142
- Ni().$$.on_destroy.push(i);
141
+ function En(i) {
142
+ Pi().$$.on_destroy.push(i);
143
143
  }
144
- function En() {
145
- const i = Ni();
144
+ function Ln() {
145
+ const i = Pi();
146
146
  return (e, t, { cancelable: n = !1 } = {}) => {
147
147
  const r = i.$$.callbacks[e];
148
148
  if (r) {
149
- const o = wn(
149
+ const o = _n(
150
150
  /** @type {string} */
151
151
  e,
152
152
  t,
@@ -159,69 +159,69 @@ function En() {
159
159
  return !0;
160
160
  };
161
161
  }
162
- function Yt(i, e) {
162
+ function Xt(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 We = [], Mt = [];
167
- let Ae = [];
168
- const Xt = [], Ln = /* @__PURE__ */ Promise.resolve();
169
- let Ct = !1;
170
- function Sn() {
171
- Ct || (Ct = !0, Ln.then(Pi));
166
+ const Ae = [], Ct = [];
167
+ let Be = [];
168
+ const Kt = [], Sn = /* @__PURE__ */ Promise.resolve();
169
+ let kt = !1;
170
+ function xn() {
171
+ kt || (kt = !0, Sn.then(Ti));
172
172
  }
173
- function kt(i) {
174
- Ae.push(i);
173
+ function Nt(i) {
174
+ Be.push(i);
175
175
  }
176
- const Lt = /* @__PURE__ */ new Set();
177
- let Ie = 0;
178
- function Pi() {
179
- if (Ie !== 0)
176
+ const St = /* @__PURE__ */ new Set();
177
+ let Oe = 0;
178
+ function Ti() {
179
+ if (Oe !== 0)
180
180
  return;
181
- const i = je;
181
+ const i = Ze;
182
182
  do {
183
183
  try {
184
- for (; Ie < We.length; ) {
185
- const e = We[Ie];
186
- Ie++, ze(e), xn(e.$$);
184
+ for (; Oe < Ae.length; ) {
185
+ const e = Ae[Oe];
186
+ Oe++, ze(e), Mn(e.$$);
187
187
  }
188
188
  } catch (e) {
189
- throw We.length = 0, Ie = 0, e;
189
+ throw Ae.length = 0, Oe = 0, e;
190
190
  }
191
- for (ze(null), We.length = 0, Ie = 0; Mt.length; ) Mt.pop()();
192
- for (let e = 0; e < Ae.length; e += 1) {
193
- const t = Ae[e];
194
- Lt.has(t) || (Lt.add(t), t());
191
+ for (ze(null), Ae.length = 0, Oe = 0; Ct.length; ) Ct.pop()();
192
+ for (let e = 0; e < Be.length; e += 1) {
193
+ const t = Be[e];
194
+ St.has(t) || (St.add(t), t());
195
195
  }
196
- Ae.length = 0;
197
- } while (We.length);
198
- for (; Xt.length; )
199
- Xt.pop()();
200
- Ct = !1, Lt.clear(), ze(i);
196
+ Be.length = 0;
197
+ } while (Ae.length);
198
+ for (; Kt.length; )
199
+ Kt.pop()();
200
+ kt = !1, St.clear(), ze(i);
201
201
  }
202
- function xn(i) {
202
+ function Mn(i) {
203
203
  if (i.fragment !== null) {
204
204
  i.update(), ye(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(kt);
206
+ i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(Nt);
207
207
  }
208
208
  }
209
- function Mn(i) {
209
+ function Cn(i) {
210
210
  const e = [], t = [];
211
- Ae.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), Ae = e;
211
+ Be.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), Be = e;
212
212
  }
213
213
  const rt = /* @__PURE__ */ new Set();
214
- let ke;
214
+ let Ne;
215
215
  function ot() {
216
- ke = {
216
+ Ne = {
217
217
  r: 0,
218
218
  c: [],
219
- p: ke
219
+ p: Ne
220
220
  // parent group
221
221
  };
222
222
  }
223
223
  function st() {
224
- ke.r || ye(ke.c), ke = ke.p;
224
+ Ne.r || ye(Ne.c), Ne = Ne.p;
225
225
  }
226
226
  function Z(i, e) {
227
227
  i && i.i && (rt.delete(i), i.i(e));
@@ -229,28 +229,28 @@ function Z(i, e) {
229
229
  function V(i, e, t, n) {
230
230
  if (i && i.o) {
231
231
  if (rt.has(i)) return;
232
- rt.add(i), ke.c.push(() => {
232
+ rt.add(i), Ne.c.push(() => {
233
233
  rt.delete(i), n && (t && i.d(1), n());
234
234
  }), i.o(e);
235
235
  } else n && n();
236
236
  }
237
- function Kt(i) {
237
+ function Jt(i) {
238
238
  return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i);
239
239
  }
240
- function Cn(i, e) {
240
+ function kn(i, e) {
241
241
  V(i, 1, 1, () => {
242
242
  e.delete(i.key);
243
243
  });
244
244
  }
245
- function kn(i, e, t, n, r, o, l, s, c, u, h, a) {
246
- let f = i.length, d = o.length, g = f;
245
+ function Nn(i, e, t, n, r, o, l, s, c, u, h, a) {
246
+ let f = i.length, d = o.length, m = f;
247
247
  const p = {};
248
- for (; g--; ) p[i[g].key] = g;
248
+ for (; m--; ) p[i[m].key] = m;
249
249
  const v = [], b = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Map(), E = [];
250
- for (g = d; g--; ) {
251
- const L = a(r, o, g), w = t(L);
250
+ for (m = d; m--; ) {
251
+ const L = a(r, o, m), w = t(L);
252
252
  let k = l.get(w);
253
- k ? E.push(() => k.p(L, e)) : (k = u(w, L), k.c()), b.set(w, v[g] = k), w in p && S.set(w, Math.abs(g - p[w]));
253
+ k ? E.push(() => k.p(L, e)) : (k = u(w, L), k.c()), b.set(w, v[m] = k), w in p && S.set(w, Math.abs(m - p[w]));
254
254
  }
255
255
  const _ = /* @__PURE__ */ new Set(), C = /* @__PURE__ */ new Set();
256
256
  function x(L) {
@@ -270,22 +270,22 @@ function kn(i, e, t, n, r, o, l, s, c, u, h, a) {
270
270
  function Ee(i) {
271
271
  i && i.c();
272
272
  }
273
- function me(i, e, t) {
273
+ function ge(i, e, t) {
274
274
  const { fragment: n, after_update: r } = i.$$;
275
- n && n.m(e, t), kt(() => {
276
- const o = i.$$.on_mount.map(Mi).filter(Ci);
275
+ n && n.m(e, t), Nt(() => {
276
+ const o = i.$$.on_mount.map(Ci).filter(ki);
277
277
  i.$$.on_destroy ? i.$$.on_destroy.push(...o) : ye(o), i.$$.on_mount = [];
278
- }), r.forEach(kt);
278
+ }), r.forEach(Nt);
279
279
  }
280
- function ge(i, e) {
280
+ function me(i, e) {
281
281
  const t = i.$$;
282
- t.fragment !== null && (Mn(t.after_update), ye(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
282
+ t.fragment !== null && (Cn(t.after_update), ye(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
283
283
  }
284
- function Nn(i, e) {
285
- i.$$.dirty[0] === -1 && (We.push(i), Sn(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
284
+ function Pn(i, e) {
285
+ i.$$.dirty[0] === -1 && (Ae.push(i), xn(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
286
286
  }
287
287
  function xe(i, e, t, n, r, o, l = null, s = [-1]) {
288
- const c = je;
288
+ const c = Ze;
289
289
  ze(i);
290
290
  const u = i.$$ = {
291
291
  fragment: null,
@@ -294,7 +294,7 @@ function xe(i, e, t, n, r, o, l = null, s = [-1]) {
294
294
  props: o,
295
295
  update: A,
296
296
  not_equal: r,
297
- bound: Qt(),
297
+ bound: Ht(),
298
298
  // lifecycle
299
299
  on_mount: [],
300
300
  on_destroy: [],
@@ -303,7 +303,7 @@ function xe(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: Qt(),
306
+ callbacks: Ht(),
307
307
  dirty: s,
308
308
  skip_bound: !1,
309
309
  root: e.target || c.$$.root
@@ -311,15 +311,15 @@ function xe(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 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 && Nn(i, a)), f;
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 && Pn(i, a)), f;
316
316
  }) : [], u.update(), h = !0, ye(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
317
317
  if (e.hydrate) {
318
- const a = bn(e.target);
318
+ const a = wn(e.target);
319
319
  u.fragment && u.fragment.l(a), a.forEach(B);
320
320
  } else
321
321
  u.fragment && u.fragment.c();
322
- e.intro && Z(i.$$.fragment), me(i, e.target, e.anchor), Pi();
322
+ e.intro && Z(i.$$.fragment), ge(i, e.target, e.anchor), Ti();
323
323
  }
324
324
  ze(c);
325
325
  }
@@ -332,7 +332,7 @@ class Me {
332
332
  *
333
333
  * @type {any}
334
334
  */
335
- _t(this, "$$");
335
+ Et(this, "$$");
336
336
  /**
337
337
  * ### PRIVATE API
338
338
  *
@@ -340,11 +340,11 @@ class Me {
340
340
  *
341
341
  * @type {any}
342
342
  */
343
- _t(this, "$$set");
343
+ Et(this, "$$set");
344
344
  }
345
345
  /** @returns {void} */
346
346
  $destroy() {
347
- ge(this, 1), this.$destroy = A;
347
+ me(this, 1), this.$destroy = A;
348
348
  }
349
349
  /**
350
350
  * @template {Extract<keyof Events, string>} K
@@ -353,7 +353,7 @@ class Me {
353
353
  * @returns {() => void}
354
354
  */
355
355
  $on(e, t) {
356
- if (!Ci(t))
356
+ if (!ki(t))
357
357
  return A;
358
358
  const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
359
359
  return n.push(t), () => {
@@ -366,19 +366,19 @@ class Me {
366
366
  * @returns {void}
367
367
  */
368
368
  $set(e) {
369
- this.$$set && !dn(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
369
+ this.$$set && !hn(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
370
370
  }
371
371
  }
372
- const Pn = "4";
373
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Pn);
374
- function Tn(i) {
372
+ const Tn = "4";
373
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Tn);
374
+ function Rn(i) {
375
375
  let e, t;
376
376
  return {
377
377
  c() {
378
378
  e = ue("svg"), t = ue("path"), y(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"), y(e, "viewBox", "0 0 14 14"), y(e, "width", "13"), y(e, "height", "13"), y(e, "class", "svelte-en2qvf");
379
379
  },
380
380
  m(n, r) {
381
- F(n, e, r), T(e, t);
381
+ G(n, e, r), T(e, t);
382
382
  },
383
383
  p: A,
384
384
  i: A,
@@ -388,19 +388,19 @@ function Tn(i) {
388
388
  }
389
389
  };
390
390
  }
391
- class Ti extends Me {
391
+ class Ri extends Me {
392
392
  constructor(e) {
393
- super(), xe(this, e, null, Tn, Se, {});
393
+ super(), xe(this, e, null, Rn, Se, {});
394
394
  }
395
395
  }
396
- function Rn(i) {
396
+ function In(i) {
397
397
  let e, t;
398
398
  return {
399
399
  c() {
400
400
  e = ue("svg"), t = ue("path"), y(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"), y(e, "viewBox", "0 0 30 30"), y(e, "fill", "none"), y(e, "xmlns", "http://www.w3.org/2000/svg"), y(e, "class", "svelte-d2loi5");
401
401
  },
402
402
  m(n, r) {
403
- F(n, e, r), T(e, t);
403
+ G(n, e, r), T(e, t);
404
404
  },
405
405
  p: A,
406
406
  i: A,
@@ -410,12 +410,12 @@ function Rn(i) {
410
410
  }
411
411
  };
412
412
  }
413
- class Ri extends Me {
413
+ class Ii extends Me {
414
414
  constructor(e) {
415
- super(), xe(this, e, null, Rn, Se, {});
415
+ super(), xe(this, e, null, In, Se, {});
416
416
  }
417
417
  }
418
- function In(i) {
418
+ function On(i) {
419
419
  let e, t;
420
420
  return {
421
421
  c() {
@@ -428,7 +428,7 @@ function In(i) {
428
428
  ), y(e, "class", "svelte-ltkwvy");
429
429
  },
430
430
  m(n, r) {
431
- F(n, e, r);
431
+ G(n, e, r);
432
432
  },
433
433
  p(n, r) {
434
434
  r & /*iconsBaseUrl*/
@@ -446,7 +446,7 @@ function In(i) {
446
446
  }
447
447
  };
448
448
  }
449
- function On(i) {
449
+ function Wn(i) {
450
450
  let e, t;
451
451
  return {
452
452
  c() {
@@ -459,7 +459,7 @@ function On(i) {
459
459
  ), y(e, "class", "svelte-ltkwvy");
460
460
  },
461
461
  m(n, r) {
462
- F(n, e, r);
462
+ G(n, e, r);
463
463
  },
464
464
  p(n, r) {
465
465
  r & /*iconsBaseUrl*/
@@ -477,7 +477,7 @@ function On(i) {
477
477
  }
478
478
  };
479
479
  }
480
- function Wn(i) {
480
+ function An(i) {
481
481
  let e, t;
482
482
  return {
483
483
  c() {
@@ -490,7 +490,7 @@ function Wn(i) {
490
490
  ), y(e, "class", "svelte-ltkwvy");
491
491
  },
492
492
  m(n, r) {
493
- F(n, e, r);
493
+ G(n, e, r);
494
494
  },
495
495
  p(n, r) {
496
496
  r & /*iconsBaseUrl*/
@@ -508,7 +508,7 @@ function Wn(i) {
508
508
  }
509
509
  };
510
510
  }
511
- function An(i) {
511
+ function Bn(i) {
512
512
  let e, t;
513
513
  return {
514
514
  c() {
@@ -521,7 +521,7 @@ function An(i) {
521
521
  ), y(e, "class", "svelte-ltkwvy");
522
522
  },
523
523
  m(n, r) {
524
- F(n, e, r);
524
+ G(n, e, r);
525
525
  },
526
526
  p(n, r) {
527
527
  r & /*iconsBaseUrl*/
@@ -539,7 +539,7 @@ function An(i) {
539
539
  }
540
540
  };
541
541
  }
542
- function Bn(i) {
542
+ function Dn(i) {
543
543
  let e, t;
544
544
  return {
545
545
  c() {
@@ -552,7 +552,7 @@ function Bn(i) {
552
552
  ), y(e, "class", "svelte-ltkwvy");
553
553
  },
554
554
  m(n, r) {
555
- F(n, e, r);
555
+ G(n, e, r);
556
556
  },
557
557
  p(n, r) {
558
558
  r & /*iconsBaseUrl*/
@@ -570,7 +570,7 @@ function Bn(i) {
570
570
  }
571
571
  };
572
572
  }
573
- function Dn(i) {
573
+ function Un(i) {
574
574
  let e, t;
575
575
  return {
576
576
  c() {
@@ -583,7 +583,7 @@ function Dn(i) {
583
583
  ), y(e, "class", "svelte-ltkwvy");
584
584
  },
585
585
  m(n, r) {
586
- F(n, e, r);
586
+ G(n, e, r);
587
587
  },
588
588
  p(n, r) {
589
589
  r & /*iconsBaseUrl*/
@@ -601,7 +601,7 @@ function Dn(i) {
601
601
  }
602
602
  };
603
603
  }
604
- function Un(i) {
604
+ function Gn(i) {
605
605
  let e, t;
606
606
  return {
607
607
  c() {
@@ -614,7 +614,7 @@ function Un(i) {
614
614
  ), y(e, "class", "svelte-ltkwvy");
615
615
  },
616
616
  m(n, r) {
617
- F(n, e, r);
617
+ G(n, e, r);
618
618
  },
619
619
  p(n, r) {
620
620
  r & /*iconsBaseUrl*/
@@ -645,7 +645,7 @@ function Fn(i) {
645
645
  ), y(e, "class", "svelte-ltkwvy");
646
646
  },
647
647
  m(o, l) {
648
- F(o, e, l), n || (r = J(
648
+ G(o, e, l), n || (r = J(
649
649
  e,
650
650
  "error",
651
651
  /*error_handler*/
@@ -668,7 +668,7 @@ function Fn(i) {
668
668
  }
669
669
  };
670
670
  }
671
- function Jt(i) {
671
+ function $t(i) {
672
672
  let e, t;
673
673
  return {
674
674
  c() {
@@ -678,11 +678,11 @@ function Jt(i) {
678
678
  ), y(e, "class", "secondary svelte-ltkwvy");
679
679
  },
680
680
  m(n, r) {
681
- F(n, e, r), T(e, t);
681
+ G(n, e, r), T(e, t);
682
682
  },
683
683
  p(n, r) {
684
684
  r & /*placeType*/
685
- 64 && Ge(
685
+ 64 && je(
686
686
  t,
687
687
  /*placeType*/
688
688
  n[6]
@@ -714,7 +714,7 @@ function zn(i) {
714
714
  i[0].id.startsWith("poi.") || !/*imageUrl*/
715
715
  i[5]) && !/*isReverse*/
716
716
  i[7]
717
- ), g, p, v = (
717
+ ), m, p, v = (
718
718
  /*isReverse*/
719
719
  (i[7] ? "" : (
720
720
  /*feature*/
@@ -729,20 +729,20 @@ function zn(i) {
729
729
  1 && (o = null), /*imageUrl*/
730
730
  w[5] ? Fn : (
731
731
  /*feature*/
732
- w[0].address ? Un : (t == null && (t = !!/*feature*/
733
- w[0].id.startsWith("road.")), t ? Dn : (n == null && (n = !!/*feature*/
734
- w[0].id.startsWith("address.")), n ? Bn : (r == null && (r = !!/*feature*/
735
- w[0].id.startsWith("postal_code.")), r ? An : (o == null && (o = !!/*feature*/
736
- w[0].id.startsWith("poi.")), o ? Wn : (
732
+ w[0].address ? Gn : (t == null && (t = !!/*feature*/
733
+ w[0].id.startsWith("road.")), t ? Un : (n == null && (n = !!/*feature*/
734
+ w[0].id.startsWith("address.")), n ? Dn : (r == null && (r = !!/*feature*/
735
+ w[0].id.startsWith("postal_code.")), r ? Bn : (o == null && (o = !!/*feature*/
736
+ w[0].id.startsWith("poi.")), o ? An : (
737
737
  /*isReverse*/
738
- w[7] ? On : In
738
+ w[7] ? Wn : On
739
739
  )))))
740
740
  );
741
741
  }
742
- let C = _(i, -1), x = C(i), L = d && Jt(i);
742
+ let C = _(i, -1), x = C(i), L = d && $t(i);
743
743
  return {
744
744
  c() {
745
- e = W("li"), x.c(), l = te(), s = W("span"), c = W("span"), u = W("span"), a = _e(h), f = te(), L && L.c(), g = te(), p = W("span"), b = _e(v), y(u, "class", "primary svelte-ltkwvy"), y(c, "class", "svelte-ltkwvy"), y(p, "class", "line2 svelte-ltkwvy"), y(s, "class", "texts svelte-ltkwvy"), y(e, "tabindex", "0"), y(
745
+ e = W("li"), x.c(), l = te(), s = W("span"), c = W("span"), u = W("span"), a = _e(h), f = te(), L && L.c(), m = te(), p = W("span"), b = _e(v), y(u, "class", "primary svelte-ltkwvy"), y(c, "class", "svelte-ltkwvy"), y(p, "class", "line2 svelte-ltkwvy"), y(s, "class", "texts svelte-ltkwvy"), y(e, "tabindex", "0"), y(
746
746
  e,
747
747
  "data-selected",
748
748
  /*selected*/
@@ -755,7 +755,7 @@ function zn(i) {
755
755
  );
756
756
  },
757
757
  m(w, k) {
758
- F(w, e, k), x.m(e, null), T(e, l), T(e, s), T(s, c), T(c, u), T(u, a), T(c, f), L && L.m(c, null), T(s, g), T(s, p), T(p, b), S || (E = [
758
+ G(w, e, k), x.m(e, null), T(e, l), T(e, s), T(s, c), T(c, u), T(u, a), T(c, f), L && L.m(c, null), T(s, m), T(s, p), T(p, b), S || (E = [
759
759
  J(
760
760
  e,
761
761
  "mouseenter",
@@ -779,7 +779,7 @@ function zn(i) {
779
779
  ) : (
780
780
  /*feature*/
781
781
  w[0].place_name.replace(/,.*/, "")
782
- )) + "") && Ge(a, h), k & /*showPlaceType, feature, imageUrl*/
782
+ )) + "") && je(a, h), k & /*showPlaceType, feature, imageUrl*/
783
783
  37 && (d = /*showPlaceType*/
784
784
  w[2] === "always" || /*showPlaceType*/
785
785
  w[2] && !/*feature*/
@@ -789,12 +789,12 @@ function zn(i) {
789
789
  w[0].id.startsWith("postal_code.") && (!/*feature*/
790
790
  w[0].id.startsWith("poi.") || !/*imageUrl*/
791
791
  w[5]) && !/*isReverse*/
792
- w[7]), d ? L ? L.p(w, k) : (L = Jt(w), L.c(), L.m(c, null)) : L && (L.d(1), L = null), k & /*feature*/
792
+ w[7]), d ? L ? L.p(w, k) : (L = $t(w), L.c(), L.m(c, null)) : L && (L.d(1), L = null), k & /*feature*/
793
793
  1 && v !== (v = /*isReverse*/
794
794
  (w[7] ? "" : (
795
795
  /*feature*/
796
796
  w[0].place_name.replace(/[^,]*,?\s*/, "")
797
- )) + "") && Ge(b, v), k & /*selected*/
797
+ )) + "") && je(b, v), k & /*selected*/
798
798
  2 && y(
799
799
  e,
800
800
  "data-selected",
@@ -815,19 +815,19 @@ function zn(i) {
815
815
  }
816
816
  };
817
817
  }
818
- function Gn(i, e, t) {
818
+ function jn(i, e, t) {
819
819
  var E;
820
820
  let n, r, { feature: o } = e, { selected: l = !1 } = e, { showPlaceType: s } = e, { missingIconsCache: c } = e, { iconsBaseUrl: u } = e;
821
821
  const h = (E = o.properties) == null ? void 0 : E.categories;
822
- let a, f, d = 0, g = o.place_type[0] === "reverse";
822
+ let a, f, d = 0, m = o.place_type[0] === "reverse";
823
823
  function p() {
824
824
  f && c.add(f), t(10, d++, d);
825
825
  }
826
826
  function v(_) {
827
- Yt.call(this, i, _);
827
+ Xt.call(this, i, _);
828
828
  }
829
829
  function b(_) {
830
- Yt.call(this, i, _);
830
+ Xt.call(this, i, _);
831
831
  }
832
832
  const S = () => p();
833
833
  return i.$$set = (_) => {
@@ -849,7 +849,7 @@ function Gn(i, e, t) {
849
849
  a,
850
850
  f,
851
851
  r,
852
- g,
852
+ m,
853
853
  p,
854
854
  c,
855
855
  d,
@@ -859,9 +859,9 @@ function Gn(i, e, t) {
859
859
  S
860
860
  ];
861
861
  }
862
- class jn extends Me {
862
+ class Zn extends Me {
863
863
  constructor(e) {
864
- super(), xe(this, e, Gn, zn, Se, {
864
+ super(), xe(this, e, jn, zn, Se, {
865
865
  feature: 0,
866
866
  selected: 1,
867
867
  showPlaceType: 2,
@@ -870,14 +870,14 @@ class jn extends Me {
870
870
  });
871
871
  }
872
872
  }
873
- function Zn(i) {
873
+ function qn(i) {
874
874
  let e;
875
875
  return {
876
876
  c() {
877
877
  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>', y(e, "class", "svelte-7cmwmc");
878
878
  },
879
879
  m(t, n) {
880
- F(t, e, n);
880
+ G(t, e, n);
881
881
  },
882
882
  p: A,
883
883
  i: A,
@@ -887,12 +887,12 @@ function Zn(i) {
887
887
  }
888
888
  };
889
889
  }
890
- class qn extends Me {
890
+ class Qn extends Me {
891
891
  constructor(e) {
892
- super(), xe(this, e, null, Zn, Se, {});
892
+ super(), xe(this, e, null, qn, Se, {});
893
893
  }
894
894
  }
895
- function Qn(i) {
895
+ function Hn(i) {
896
896
  let e, t, n;
897
897
  return {
898
898
  c() {
@@ -910,7 +910,7 @@ function Qn(i) {
910
910
  );
911
911
  },
912
912
  m(r, o) {
913
- F(r, e, o), T(e, t);
913
+ G(r, e, o), T(e, t);
914
914
  },
915
915
  p(r, [o]) {
916
916
  o & /*displayIn*/
@@ -936,25 +936,25 @@ function Qn(i) {
936
936
  }
937
937
  };
938
938
  }
939
- function Hn(i, e, t) {
939
+ function Vn(i, e, t) {
940
940
  let { displayIn: n } = e;
941
941
  return i.$$set = (r) => {
942
942
  "displayIn" in r && t(0, n = r.displayIn);
943
943
  }, [n];
944
944
  }
945
- class Vn extends Me {
945
+ class Yn extends Me {
946
946
  constructor(e) {
947
- super(), xe(this, e, Hn, Qn, Se, { displayIn: 0 });
947
+ super(), xe(this, e, Vn, Hn, Se, { displayIn: 0 });
948
948
  }
949
949
  }
950
- function Yn(i) {
950
+ function Xn(i) {
951
951
  let e, t;
952
952
  return {
953
953
  c() {
954
954
  e = ue("svg"), t = ue("path"), y(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"), y(e, "viewBox", "0 0 60.006 21.412"), y(e, "width", "14"), y(e, "height", "20"), y(e, "class", "svelte-en2qvf");
955
955
  },
956
956
  m(n, r) {
957
- F(n, e, r), T(e, t);
957
+ G(n, e, r), T(e, t);
958
958
  },
959
959
  p: A,
960
960
  i: A,
@@ -964,19 +964,19 @@ function Yn(i) {
964
964
  }
965
965
  };
966
966
  }
967
- class Xn extends Me {
967
+ class Kn extends Me {
968
968
  constructor(e) {
969
- super(), xe(this, e, null, Yn, Se, {});
969
+ super(), xe(this, e, null, Xn, Se, {});
970
970
  }
971
971
  }
972
- function Kn(i) {
972
+ function Jn(i) {
973
973
  let e, t, n;
974
974
  return {
975
975
  c() {
976
976
  e = ue("svg"), t = ue("circle"), n = ue("path"), y(t, "cx", "4.789"), y(t, "cy", "4.787"), y(t, "r", "3.85"), y(t, "class", "svelte-1aq105l"), y(n, "d", "M12.063 12.063 7.635 7.635"), y(n, "class", "svelte-1aq105l"), y(e, "xmlns", "http://www.w3.org/2000/svg"), y(e, "width", "13"), y(e, "height", "13"), y(e, "viewBox", "0 0 13 13"), y(e, "class", "svelte-1aq105l");
977
977
  },
978
978
  m(r, o) {
979
- F(r, e, o), T(e, t), T(e, n);
979
+ G(r, e, o), T(e, t), T(e, n);
980
980
  },
981
981
  p: A,
982
982
  i: A,
@@ -986,31 +986,31 @@ function Kn(i) {
986
986
  }
987
987
  };
988
988
  }
989
- class Jn extends Me {
989
+ class $n extends Me {
990
990
  constructor(e) {
991
- super(), xe(this, e, null, Kn, Se, {});
991
+ super(), xe(this, e, null, Jn, Se, {});
992
992
  }
993
993
  }
994
- function $n(i, e, t) {
994
+ function er(i, e, t) {
995
995
  const n = e[1], r = e[0], o = n - r;
996
996
  return i === n && t ? i : ((i - r) % o + o) % o + r;
997
997
  }
998
- function Ze(i) {
998
+ function qe(i) {
999
999
  const e = [...i];
1000
1000
  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;
1001
1001
  }
1002
- let De;
1003
- async function er(i, e, t) {
1002
+ let Ue;
1003
+ async function tr(i, e, t) {
1004
1004
  const n = i == null ? void 0 : i.getCenterAndZoom();
1005
1005
  for (const r of e ?? [])
1006
1006
  if (!(n && (r.minZoom != null && r.minZoom > n[0] || r.maxZoom != null && r.maxZoom < n[0]))) {
1007
1007
  if (r.type === "fixed")
1008
1008
  return r.coordinates.join(",");
1009
1009
  e: if (r.type === "client-geolocation") {
1010
- if (De && r.cachedLocationExpiry && De.time + r.cachedLocationExpiry > Date.now()) {
1011
- if (!De.coords)
1010
+ if (Ue && r.cachedLocationExpiry && Ue.time + r.cachedLocationExpiry > Date.now()) {
1011
+ if (!Ue.coords)
1012
1012
  break e;
1013
- return De.coords;
1013
+ return Ue.coords;
1014
1014
  }
1015
1015
  let o;
1016
1016
  try {
@@ -1031,7 +1031,7 @@ async function er(i, e, t) {
1031
1031
  }), o;
1032
1032
  } catch {
1033
1033
  } finally {
1034
- r.cachedLocationExpiry && (De = {
1034
+ r.cachedLocationExpiry && (Ue = {
1035
1035
  time: Date.now(),
1036
1036
  coords: o
1037
1037
  });
@@ -1045,8 +1045,8 @@ async function er(i, e, t) {
1045
1045
  return n[1].toFixed(6) + "," + n[2].toFixed(6);
1046
1046
  }
1047
1047
  }
1048
- const tr = /^(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, $t = /^([+-]?[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,})$/, ei = /^(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, ti = /^(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, ii = /^(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, ni = /^(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;
1049
- function ir(i) {
1048
+ const ir = /^(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, ei = /^([+-]?[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,})$/, ti = /^(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, ii = /^(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, ni = /^(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, ri = /^(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;
1049
+ function nr(i) {
1050
1050
  if (!["DMS", "DM", "DD"].includes(i))
1051
1051
  throw new Error("invalid format specified");
1052
1052
  if (this.decimalCoordinates && this.decimalCoordinates.trim()) {
@@ -1055,35 +1055,35 @@ function ir(i) {
1055
1055
  i == "DD" && (c = `${r}° ${l}, ${o}° ${s}`);
1056
1056
  const u = Math.floor(r), h = Math.floor(o), a = (r - u) * 60, f = (o - h) * 60;
1057
1057
  if (i == "DM") {
1058
- let d = ri(a, 3).toFixed(3).padStart(6, "0"), g = ri(f, 3).toFixed(3).padStart(6, "0");
1059
- d.endsWith(".000") && g.endsWith(".000") && (d = d.replace(/\.000$/, ""), g = g.replace(/\.000$/, "")), c = `${u}° ${d}' ${l}, ${h}° ${g}' ${s}`;
1058
+ let d = oi(a, 3).toFixed(3).padStart(6, "0"), m = oi(f, 3).toFixed(3).padStart(6, "0");
1059
+ d.endsWith(".000") && m.endsWith(".000") && (d = d.replace(/\.000$/, ""), m = m.replace(/\.000$/, "")), c = `${u}° ${d}' ${l}, ${h}° ${m}' ${s}`;
1060
1060
  }
1061
1061
  if (i == "DMS") {
1062
- const d = Math.floor(a), g = Math.floor(f);
1063
- let p = ((a - d) * 60).toFixed(1).padStart(4, "0"), v = ((f - g) * 60).toFixed(1).padStart(4, "0");
1064
- const b = d.toString().padStart(2, "0"), S = g.toString().padStart(2, "0");
1062
+ const d = Math.floor(a), m = Math.floor(f);
1063
+ let p = ((a - d) * 60).toFixed(1).padStart(4, "0"), v = ((f - m) * 60).toFixed(1).padStart(4, "0");
1064
+ const b = d.toString().padStart(2, "0"), S = m.toString().padStart(2, "0");
1065
1065
  p.endsWith(".0") && v.endsWith(".0") && (p = p.replace(/\.0$/, ""), v = v.replace(/\.0$/, "")), c = `${u}° ${b}' ${p}" ${l}, ${h}° ${S}' ${v}" ${s}`;
1066
1066
  }
1067
1067
  return c;
1068
1068
  } else
1069
1069
  throw new Error("no decimal coordinates to convert");
1070
1070
  }
1071
- function ri(i, e) {
1071
+ function oi(i, e) {
1072
1072
  const t = Math.pow(10, e);
1073
1073
  return Math.round((i + Number.EPSILON) * t) / t;
1074
1074
  }
1075
- function Wt(i, e) {
1075
+ function At(i, e) {
1076
1076
  e || (e = 5), i = i.replace(/\s+/g, " ").trim();
1077
1077
  let t = null, n = null, r = "", o = "", l = null, s = [], c = !1;
1078
- if (tr.test(i))
1078
+ if (ir.test(i))
1079
1079
  throw new Error("invalid coordinate value");
1080
- if ($t.test(i))
1081
- if (s = $t.exec(i), c = Ue(s), c)
1080
+ if (ei.test(i))
1081
+ if (s = ei.exec(i), c = Ge(s), c)
1082
1082
  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";
1083
1083
  else
1084
1084
  throw new Error("invalid coordinate format");
1085
- else if (ei.test(i))
1086
- if (s = ei.exec(i), c = Ue(s), c) {
1085
+ else if (ti.test(i))
1086
+ if (s = ti.exec(i), c = Ge(s), c) {
1087
1087
  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))
1088
1088
  throw new Error("integer only coordinate provided");
1089
1089
  if (Number(Math.round(n)) == Number(n))
@@ -1091,18 +1091,18 @@ function Wt(i, e) {
1091
1091
  s[1] ? (r = s[1], o = s[5]) : s[4] && (r = s[4], o = s[8]);
1092
1092
  } else
1093
1093
  throw new Error("invalid decimal coordinate format");
1094
- else if (ti.test(i))
1095
- if (s = ti.exec(i), c = Ue(s), c)
1094
+ else if (ii.test(i))
1095
+ if (s = ii.exec(i), c = Ge(s), c)
1096
1096
  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]);
1097
1097
  else
1098
1098
  throw new Error("invalid DMS coordinates format");
1099
- else if (ii.test(i))
1100
- if (s = ii.exec(i), c = Ue(s), c)
1099
+ else if (ni.test(i))
1100
+ if (s = ni.exec(i), c = Ge(s), c)
1101
1101
  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]);
1102
1102
  else
1103
1103
  throw new Error("invalid DMS coordinates format");
1104
- else if (ni.test(i)) {
1105
- if (s = ni.exec(i), c = Ue(s), s.filter((u) => u).length <= 5)
1104
+ else if (ri.test(i)) {
1105
+ if (s = ri.exec(i), c = Ge(s), s.filter((u) => u).length <= 5)
1106
1106
  throw new Error("invalid coordinates format");
1107
1107
  if (c)
1108
1108
  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]);
@@ -1123,20 +1123,20 @@ function Wt(i, e) {
1123
1123
  u.test(r) && t > 0 && (t = -1 * t), u = /W|WEST/i, u.test(o) && n > 0 && (n = -1 * n);
1124
1124
  const h = s[0].trim();
1125
1125
  let a, f;
1126
- const d = /[,/;\u0020]/g, g = h.match(d);
1127
- if (g == null) {
1126
+ const d = /[,/;\u0020]/g, m = h.match(d);
1127
+ if (m == null) {
1128
1128
  const b = Math.floor(i.length / 2);
1129
1129
  a = h.substring(0, b).trim(), f = h.substring(b).trim();
1130
1130
  } else {
1131
1131
  let b;
1132
- g.length % 2 == 1 ? b = Math.floor(g.length / 2) : b = g.length / 2 - 1;
1132
+ m.length % 2 == 1 ? b = Math.floor(m.length / 2) : b = m.length / 2 - 1;
1133
1133
  let S = 0;
1134
1134
  if (b == 0)
1135
- S = h.indexOf(g[0]), a = h.substring(0, S).trim(), f = h.substring(S + 1).trim();
1135
+ S = h.indexOf(m[0]), a = h.substring(0, S).trim(), f = h.substring(S + 1).trim();
1136
1136
  else {
1137
1137
  let E = 0, _ = 0;
1138
1138
  for (; E <= b; )
1139
- S = h.indexOf(g[E], _), _ = S + 1, E++;
1139
+ S = h.indexOf(m[E], _), _ = S + 1, E++;
1140
1140
  a = h.substring(0, S).trim(), f = h.substring(S + 1).trim();
1141
1141
  }
1142
1142
  }
@@ -1156,13 +1156,13 @@ function Wt(i, e) {
1156
1156
  decimalLongitude: n,
1157
1157
  decimalCoordinates: `${t},${n}`,
1158
1158
  originalFormat: l,
1159
- closeEnough: nr,
1160
- toCoordinateFormat: ir
1159
+ closeEnough: rr,
1160
+ toCoordinateFormat: nr
1161
1161
  });
1162
1162
  } else
1163
1163
  throw new Error("coordinates pattern match failed");
1164
1164
  }
1165
- function Ue(i) {
1165
+ function Ge(i) {
1166
1166
  if (!isNaN(i[0]))
1167
1167
  return !1;
1168
1168
  const e = [...i];
@@ -1181,28 +1181,28 @@ function Ue(i) {
1181
1181
  }
1182
1182
  return !0;
1183
1183
  }
1184
- function oi(i, e) {
1184
+ function si(i, e) {
1185
1185
  const t = Math.abs(i - e);
1186
1186
  return Number(t.toFixed(6)) <= 1e-5;
1187
1187
  }
1188
- function nr(i) {
1188
+ function rr(i) {
1189
1189
  if (!i)
1190
1190
  throw new Error("coords must be provided");
1191
1191
  if (i.includes(",")) {
1192
1192
  const e = i.split(",");
1193
1193
  if (Number(e[0]) == NaN || Number(e[1]) == NaN)
1194
1194
  throw new Error("coords are not valid decimals");
1195
- return oi(this.decimalLatitude, Number(e[0])) && oi(this.decimalLongitude, e[1]);
1195
+ return si(this.decimalLatitude, Number(e[0])) && si(this.decimalLongitude, e[1]);
1196
1196
  } else
1197
1197
  throw new Error("coords being tested must be separated by a comma");
1198
1198
  }
1199
- const rr = Object.freeze({
1199
+ const or = Object.freeze({
1200
1200
  DMS: "DMS",
1201
1201
  DM: "DM",
1202
1202
  DD: "DD"
1203
1203
  });
1204
- Wt.to = rr;
1205
- const or = [
1204
+ At.to = or;
1205
+ const sr = [
1206
1206
  {
1207
1207
  verbatimCoordinates: "40.123, -74.123",
1208
1208
  verbatimLatitude: "40.123",
@@ -1343,10 +1343,10 @@ const or = [
1343
1343
  verbatimLatitude: "40 7 22.8",
1344
1344
  verbatimLongitude: "-74 7 22.8"
1345
1345
  }
1346
- ], sr = {
1346
+ ], lr = {
1347
1347
  decimalLatitude: 40.123,
1348
1348
  decimalLongitude: -74.123
1349
- }, lr = [
1349
+ }, ur = [
1350
1350
  {
1351
1351
  verbatimCoordinates: `50°4'17.698"south, 14°24'2.826"east`,
1352
1352
  verbatimLatitude: `50°4'17.698"south`,
@@ -1431,7 +1431,7 @@ const or = [
1431
1431
  decimalLatitude: -18.4,
1432
1432
  decimalLongitude: 22.75
1433
1433
  }
1434
- ], ur = [
1434
+ ], ar = [
1435
1435
  {
1436
1436
  verbatimCoordinates: "10.432342S 10.6345345E",
1437
1437
  verbatimLatitude: "10.432342S",
@@ -1566,27 +1566,27 @@ const or = [
1566
1566
  decimalLongitude: 18.33453
1567
1567
  }
1568
1568
  ];
1569
- function ar() {
1569
+ function cr() {
1570
1570
  const i = [];
1571
- return or.forEach((e) => {
1572
- e.decimalLatitude ? i.push(e) : i.push({ ...e, ...sr });
1573
- }), [...i, ...lr, ...ur];
1574
- }
1575
- const cr = ar();
1576
- Wt.formats = cr.map((i) => i.verbatimCoordinates);
1577
- const fr = Wt;
1578
- function si(i, e, t) {
1571
+ return sr.forEach((e) => {
1572
+ e.decimalLatitude ? i.push(e) : i.push({ ...e, ...lr });
1573
+ }), [...i, ...ur, ...ar];
1574
+ }
1575
+ const fr = cr();
1576
+ At.formats = fr.map((i) => i.verbatimCoordinates);
1577
+ const dr = At;
1578
+ function li(i, e, t) {
1579
1579
  const n = i.slice();
1580
- return n[83] = e[t], n[85] = t, n;
1580
+ return n[84] = e[t], n[86] = t, n;
1581
1581
  }
1582
- function li(i) {
1582
+ function ui(i) {
1583
1583
  let e, t;
1584
- return e = new qn({}), {
1584
+ return e = new Qn({}), {
1585
1585
  c() {
1586
1586
  Ee(e.$$.fragment);
1587
1587
  },
1588
1588
  m(n, r) {
1589
- me(e, n, r), t = !0;
1589
+ ge(e, n, r), t = !0;
1590
1590
  },
1591
1591
  i(n) {
1592
1592
  t || (Z(e.$$.fragment, n), t = !0);
@@ -1595,13 +1595,13 @@ function li(i) {
1595
1595
  V(e.$$.fragment, n), t = !1;
1596
1596
  },
1597
1597
  d(n) {
1598
- ge(e, n);
1598
+ me(e, n);
1599
1599
  }
1600
1600
  };
1601
1601
  }
1602
- function ui(i) {
1602
+ function ai(i) {
1603
1603
  let e, t, n, r, o;
1604
- return t = new Xn({}), {
1604
+ return t = new Kn({}), {
1605
1605
  c() {
1606
1606
  e = W("button"), Ee(t.$$.fragment), y(e, "type", "button"), y(
1607
1607
  e,
@@ -1616,11 +1616,11 @@ function ui(i) {
1616
1616
  );
1617
1617
  },
1618
1618
  m(l, s) {
1619
- F(l, e, s), me(t, e, null), n = !0, r || (o = J(
1619
+ G(l, e, s), ge(t, e, null), n = !0, r || (o = J(
1620
1620
  e,
1621
1621
  "click",
1622
1622
  /*click_handler_2*/
1623
- i[68]
1623
+ i[69]
1624
1624
  ), r = !0);
1625
1625
  },
1626
1626
  p(l, s) {
@@ -1645,24 +1645,24 @@ function ui(i) {
1645
1645
  V(t.$$.fragment, l), n = !1;
1646
1646
  },
1647
1647
  d(l) {
1648
- l && B(e), ge(t), r = !1, o();
1648
+ l && B(e), me(t), r = !1, o();
1649
1649
  }
1650
1650
  };
1651
1651
  }
1652
- function dr(i) {
1653
- let e, t = [], n = /* @__PURE__ */ new Map(), r, o, l, s = Kt(
1652
+ function hr(i) {
1653
+ let e, t = [], n = /* @__PURE__ */ new Map(), r, o, l, s = Jt(
1654
1654
  /*listFeatures*/
1655
1655
  i[14]
1656
1656
  );
1657
1657
  const c = (u) => (
1658
1658
  /*feature*/
1659
- u[83].id + /*feature*/
1660
- (u[83].address ? "," + /*feature*/
1661
- u[83].address : "")
1659
+ u[84].id + /*feature*/
1660
+ (u[84].address ? "," + /*feature*/
1661
+ u[84].address : "")
1662
1662
  );
1663
1663
  for (let u = 0; u < s.length; u += 1) {
1664
- let h = si(i, s, u), a = c(h);
1665
- n.set(a, t[u] = ai(a, h));
1664
+ let h = li(i, s, u), a = c(h);
1665
+ n.set(a, t[u] = ci(a, h));
1666
1666
  }
1667
1667
  return {
1668
1668
  c() {
@@ -1672,7 +1672,7 @@ function dr(i) {
1672
1672
  y(e, "class", "svelte-1uvos7g");
1673
1673
  },
1674
1674
  m(u, h) {
1675
- F(u, e, h);
1675
+ G(u, e, h);
1676
1676
  for (let a = 0; a < t.length; a += 1)
1677
1677
  t[a] && t[a].m(e, null);
1678
1678
  r = !0, o || (l = [
@@ -1680,22 +1680,22 @@ function dr(i) {
1680
1680
  e,
1681
1681
  "mouseleave",
1682
1682
  /*mouseleave_handler*/
1683
- i[72]
1683
+ i[73]
1684
1684
  ),
1685
1685
  J(
1686
1686
  e,
1687
1687
  "blur",
1688
1688
  /*blur_handler_1*/
1689
- i[73]
1689
+ i[74]
1690
1690
  )
1691
1691
  ], o = !0);
1692
1692
  },
1693
1693
  p(u, h) {
1694
1694
  h[0] & /*listFeatures, showPlaceType, selectedItemIndex, missingIconsCache, iconsBaseUrl, pick*/
1695
- 17880064 && (s = Kt(
1695
+ 17880064 && (s = Jt(
1696
1696
  /*listFeatures*/
1697
1697
  u[14]
1698
- ), ot(), t = kn(t, h, c, 1, u, s, n, e, Cn, ai, null, si), st());
1698
+ ), ot(), t = Nn(t, h, c, 1, u, s, n, e, kn, ci, null, li), st());
1699
1699
  },
1700
1700
  i(u) {
1701
1701
  if (!r) {
@@ -1717,9 +1717,9 @@ function dr(i) {
1717
1717
  }
1718
1718
  };
1719
1719
  }
1720
- function hr(i) {
1720
+ function gr(i) {
1721
1721
  let e, t, n, r, o, l;
1722
- return t = new Ri({}), {
1722
+ return t = new Ii({}), {
1723
1723
  c() {
1724
1724
  e = W("div"), Ee(t.$$.fragment), n = te(), r = W("div"), o = _e(
1725
1725
  /*noResultsMessage*/
@@ -1727,11 +1727,11 @@ function hr(i) {
1727
1727
  ), y(r, "class", "svelte-1uvos7g"), y(e, "class", "no-results svelte-1uvos7g");
1728
1728
  },
1729
1729
  m(s, c) {
1730
- F(s, e, c), me(t, e, null), T(e, n), T(e, r), T(r, o), l = !0;
1730
+ G(s, e, c), ge(t, e, null), T(e, n), T(e, r), T(r, o), l = !0;
1731
1731
  },
1732
1732
  p(s, c) {
1733
1733
  (!l || c[0] & /*noResultsMessage*/
1734
- 128) && Ge(
1734
+ 128) && je(
1735
1735
  o,
1736
1736
  /*noResultsMessage*/
1737
1737
  s[7]
@@ -1744,7 +1744,7 @@ function hr(i) {
1744
1744
  V(t.$$.fragment, s), l = !1;
1745
1745
  },
1746
1746
  d(s) {
1747
- s && B(e), ge(t);
1747
+ s && B(e), me(t);
1748
1748
  }
1749
1749
  };
1750
1750
  }
@@ -1755,7 +1755,7 @@ function mr(i) {
1755
1755
  t = _e(e);
1756
1756
  },
1757
1757
  m(n, r) {
1758
- F(n, t, r);
1758
+ G(n, t, r);
1759
1759
  },
1760
1760
  p: A,
1761
1761
  i: A,
@@ -1765,9 +1765,9 @@ function mr(i) {
1765
1765
  }
1766
1766
  };
1767
1767
  }
1768
- function gr(i) {
1768
+ function yr(i) {
1769
1769
  let e, t, n, r, o, l, s, c, u, h, a;
1770
- return t = new Ri({}), c = new Ti({}), {
1770
+ return t = new Ii({}), c = new Ri({}), {
1771
1771
  c() {
1772
1772
  e = W("div"), Ee(t.$$.fragment), n = te(), r = W("div"), o = _e(
1773
1773
  /*errorMessage*/
@@ -1775,16 +1775,16 @@ function gr(i) {
1775
1775
  ), l = te(), s = W("button"), Ee(c.$$.fragment), y(r, "class", "svelte-1uvos7g"), y(s, "class", "svelte-1uvos7g"), y(e, "class", "error svelte-1uvos7g");
1776
1776
  },
1777
1777
  m(f, d) {
1778
- F(f, e, d), me(t, e, null), T(e, n), T(e, r), T(r, o), T(e, l), T(e, s), me(c, s, null), u = !0, h || (a = J(
1778
+ G(f, e, d), ge(t, e, null), T(e, n), T(e, r), T(r, o), T(e, l), T(e, s), ge(c, s, null), u = !0, h || (a = J(
1779
1779
  s,
1780
1780
  "click",
1781
1781
  /*click_handler_3*/
1782
- i[69]
1782
+ i[70]
1783
1783
  ), h = !0);
1784
1784
  },
1785
1785
  p(f, d) {
1786
1786
  (!u || d[0] & /*errorMessage*/
1787
- 64) && Ge(
1787
+ 64) && je(
1788
1788
  o,
1789
1789
  /*errorMessage*/
1790
1790
  f[6]
@@ -1797,35 +1797,35 @@ function gr(i) {
1797
1797
  V(t.$$.fragment, f), V(c.$$.fragment, f), u = !1;
1798
1798
  },
1799
1799
  d(f) {
1800
- f && B(e), ge(t), ge(c), h = !1, a();
1800
+ f && B(e), me(t), me(c), h = !1, a();
1801
1801
  }
1802
1802
  };
1803
1803
  }
1804
- function ai(i, e) {
1804
+ function ci(i, e) {
1805
1805
  let t, n, r;
1806
1806
  function o() {
1807
1807
  return (
1808
1808
  /*mouseenter_handler*/
1809
- e[70](
1809
+ e[71](
1810
1810
  /*i*/
1811
- e[85]
1811
+ e[86]
1812
1812
  )
1813
1813
  );
1814
1814
  }
1815
1815
  function l() {
1816
1816
  return (
1817
1817
  /*focus_handler_1*/
1818
- e[71](
1818
+ e[72](
1819
1819
  /*feature*/
1820
- e[83]
1820
+ e[84]
1821
1821
  )
1822
1822
  );
1823
1823
  }
1824
- return n = new jn({
1824
+ return n = new Zn({
1825
1825
  props: {
1826
1826
  feature: (
1827
1827
  /*feature*/
1828
- e[83]
1828
+ e[84]
1829
1829
  ),
1830
1830
  showPlaceType: (
1831
1831
  /*showPlaceType*/
@@ -1834,7 +1834,7 @@ function ai(i, e) {
1834
1834
  selected: (
1835
1835
  /*selectedItemIndex*/
1836
1836
  e[15] === /*i*/
1837
- e[85]
1837
+ e[86]
1838
1838
  ),
1839
1839
  missingIconsCache: (
1840
1840
  /*missingIconsCache*/
@@ -1849,22 +1849,22 @@ function ai(i, e) {
1849
1849
  key: i,
1850
1850
  first: null,
1851
1851
  c() {
1852
- t = pn(), Ee(n.$$.fragment), this.first = t;
1852
+ t = vn(), Ee(n.$$.fragment), this.first = t;
1853
1853
  },
1854
1854
  m(s, c) {
1855
- F(s, t, c), me(n, s, c), r = !0;
1855
+ G(s, t, c), ge(n, s, c), r = !0;
1856
1856
  },
1857
1857
  p(s, c) {
1858
1858
  e = s;
1859
1859
  const u = {};
1860
1860
  c[0] & /*listFeatures*/
1861
1861
  16384 && (u.feature = /*feature*/
1862
- e[83]), c[0] & /*showPlaceType*/
1862
+ e[84]), c[0] & /*showPlaceType*/
1863
1863
  1024 && (u.showPlaceType = /*showPlaceType*/
1864
1864
  e[10]), c[0] & /*selectedItemIndex, listFeatures*/
1865
1865
  49152 && (u.selected = /*selectedItemIndex*/
1866
1866
  e[15] === /*i*/
1867
- e[85]), c[0] & /*iconsBaseUrl*/
1867
+ e[86]), c[0] & /*iconsBaseUrl*/
1868
1868
  4096 && (u.iconsBaseUrl = /*iconsBaseUrl*/
1869
1869
  e[12]), n.$set(u);
1870
1870
  },
@@ -1875,31 +1875,31 @@ function ai(i, e) {
1875
1875
  V(n.$$.fragment, s), r = !1;
1876
1876
  },
1877
1877
  d(s) {
1878
- s && B(t), ge(n, s);
1878
+ s && B(t), me(n, s);
1879
1879
  }
1880
1880
  };
1881
1881
  }
1882
- function yr(i) {
1883
- let e, t, n, r, o, l, s, c, u, h, a, f, d, g, p, v, b, S, E, _, C, x = !1;
1884
- o = new Jn({}), a = new Ti({});
1882
+ function pr(i) {
1883
+ let e, t, n, r, o, l, s, c, u, h, a, f, d, m, p, v, b, S, E, _, C, x = !1;
1884
+ o = new $n({}), a = new Ri({});
1885
1885
  let L = (
1886
1886
  /*abortController*/
1887
- i[19] && li()
1887
+ i[19] && ui()
1888
1888
  ), w = (
1889
1889
  /*enableReverse*/
1890
- i[5] === !0 && ui(i)
1890
+ i[5] === !0 && ai(i)
1891
1891
  );
1892
1892
  const k = (
1893
1893
  /*#slots*/
1894
- i[60].default
1895
- ), I = hn(
1894
+ i[61].default
1895
+ ), I = gn(
1896
1896
  k,
1897
1897
  i,
1898
1898
  /*$$scope*/
1899
- i[59],
1899
+ i[60],
1900
1900
  null
1901
- ), D = [gr, mr, hr, dr], z = [];
1902
- function O(M, G) {
1901
+ ), D = [yr, mr, gr, hr], F = [];
1902
+ function O(M, z) {
1903
1903
  var $, oe;
1904
1904
  return (
1905
1905
  /*error*/
@@ -1916,9 +1916,9 @@ function yr(i) {
1916
1916
  )
1917
1917
  );
1918
1918
  }
1919
- return ~(v = O(i)) && (b = z[v] = D[v](i)), {
1919
+ return ~(v = O(i)) && (b = F[v] = D[v](i)), {
1920
1920
  c() {
1921
- e = te(), t = W("form"), n = W("div"), r = W("button"), Ee(o.$$.fragment), l = te(), s = W("input"), c = te(), u = W("div"), h = W("button"), Ee(a.$$.fragment), f = te(), L && L.c(), d = te(), w && w.c(), g = te(), I && I.c(), p = te(), b && b.c(), y(r, "class", "search-button svelte-1uvos7g"), y(r, "type", "button"), y(
1921
+ e = te(), t = W("form"), n = W("div"), r = W("button"), Ee(o.$$.fragment), l = te(), s = W("input"), c = te(), u = W("div"), h = W("button"), Ee(a.$$.fragment), f = te(), L && L.c(), d = te(), w && w.c(), m = te(), I && I.c(), p = te(), b && b.c(), y(r, "class", "search-button svelte-1uvos7g"), y(r, "type", "button"), y(
1922
1922
  s,
1923
1923
  "placeholder",
1924
1924
  /*placeholder*/
@@ -1938,7 +1938,7 @@ function yr(i) {
1938
1938
  "displayable",
1939
1939
  /*searchValue*/
1940
1940
  i[1] !== ""
1941
- ), y(n, "class", "input-group svelte-1uvos7g"), y(t, "tabindex", "0"), y(t, "class", S = Ht(
1941
+ ), y(n, "class", "input-group svelte-1uvos7g"), y(t, "tabindex", "0"), y(t, "class", S = Vt(
1942
1942
  /*className*/
1943
1943
  i[2]
1944
1944
  ) + " svelte-1uvos7g"), re(
@@ -1949,35 +1949,35 @@ function yr(i) {
1949
1949
  i[1] === ""
1950
1950
  );
1951
1951
  },
1952
- m(M, G) {
1953
- F(M, e, G), F(M, t, G), T(t, n), T(n, r), me(o, r, null), T(n, l), T(n, s), i[62](s), Vt(
1952
+ m(M, z) {
1953
+ G(M, e, z), G(M, t, z), T(t, n), T(n, r), ge(o, r, null), T(n, l), T(n, s), i[63](s), Yt(
1954
1954
  s,
1955
1955
  /*searchValue*/
1956
1956
  i[1]
1957
- ), T(n, c), T(n, u), T(u, h), me(a, h, null), T(u, f), L && L.m(u, null), T(n, d), w && w.m(n, null), T(n, g), I && I.m(n, null), T(t, p), ~v && z[v].m(t, null), E = !0, _ || (C = [
1957
+ ), T(n, c), T(n, u), T(u, h), ge(a, h, null), T(u, f), L && L.m(u, null), T(n, d), w && w.m(n, null), T(n, m), I && I.m(n, null), T(t, p), ~v && F[v].m(t, null), E = !0, _ || (C = [
1958
1958
  J(
1959
1959
  r,
1960
1960
  "click",
1961
1961
  /*click_handler*/
1962
- i[61]
1962
+ i[62]
1963
1963
  ),
1964
1964
  J(
1965
1965
  s,
1966
1966
  "input",
1967
1967
  /*input_1_input_handler*/
1968
- i[63]
1968
+ i[64]
1969
1969
  ),
1970
1970
  J(
1971
1971
  s,
1972
1972
  "focus",
1973
1973
  /*focus_handler*/
1974
- i[64]
1974
+ i[65]
1975
1975
  ),
1976
1976
  J(
1977
1977
  s,
1978
1978
  "blur",
1979
1979
  /*blur_handler*/
1980
- i[65]
1980
+ i[66]
1981
1981
  ),
1982
1982
  J(
1983
1983
  s,
@@ -1989,86 +1989,86 @@ function yr(i) {
1989
1989
  s,
1990
1990
  "input",
1991
1991
  /*input_handler*/
1992
- i[66]
1992
+ i[67]
1993
1993
  ),
1994
1994
  J(
1995
1995
  h,
1996
1996
  "click",
1997
1997
  /*click_handler_1*/
1998
- i[67]
1998
+ i[68]
1999
1999
  ),
2000
- J(t, "submit", vn(
2000
+ J(t, "submit", bn(
2001
2001
  /*handleOnSubmit*/
2002
2002
  i[21]
2003
2003
  ))
2004
2004
  ], _ = !0);
2005
2005
  },
2006
- p(M, G) {
2007
- (!E || G[0] & /*placeholder*/
2006
+ p(M, z) {
2007
+ (!E || z[0] & /*placeholder*/
2008
2008
  256) && y(
2009
2009
  s,
2010
2010
  "placeholder",
2011
2011
  /*placeholder*/
2012
2012
  M[8]
2013
- ), (!E || G[0] & /*placeholder*/
2013
+ ), (!E || z[0] & /*placeholder*/
2014
2014
  256) && y(
2015
2015
  s,
2016
2016
  "aria-label",
2017
2017
  /*placeholder*/
2018
2018
  M[8]
2019
- ), G[0] & /*searchValue*/
2019
+ ), z[0] & /*searchValue*/
2020
2020
  2 && s.value !== /*searchValue*/
2021
- M[1] && Vt(
2021
+ M[1] && Yt(
2022
2022
  s,
2023
2023
  /*searchValue*/
2024
2024
  M[1]
2025
- ), (!E || G[0] & /*clearButtonTitle*/
2025
+ ), (!E || z[0] & /*clearButtonTitle*/
2026
2026
  8) && y(
2027
2027
  h,
2028
2028
  "title",
2029
2029
  /*clearButtonTitle*/
2030
2030
  M[3]
2031
2031
  ), /*abortController*/
2032
- M[19] ? L ? G[0] & /*abortController*/
2033
- 524288 && Z(L, 1) : (L = li(), L.c(), Z(L, 1), L.m(u, null)) : L && (ot(), V(L, 1, 1, () => {
2032
+ M[19] ? L ? z[0] & /*abortController*/
2033
+ 524288 && Z(L, 1) : (L = ui(), L.c(), Z(L, 1), L.m(u, null)) : L && (ot(), V(L, 1, 1, () => {
2034
2034
  L = null;
2035
- }), st()), (!E || G[0] & /*searchValue*/
2035
+ }), st()), (!E || z[0] & /*searchValue*/
2036
2036
  2) && re(
2037
2037
  u,
2038
2038
  "displayable",
2039
2039
  /*searchValue*/
2040
2040
  M[1] !== ""
2041
2041
  ), /*enableReverse*/
2042
- M[5] === !0 ? w ? (w.p(M, G), G[0] & /*enableReverse*/
2043
- 32 && Z(w, 1)) : (w = ui(M), w.c(), Z(w, 1), w.m(n, g)) : w && (ot(), V(w, 1, 1, () => {
2042
+ M[5] === !0 ? w ? (w.p(M, z), z[0] & /*enableReverse*/
2043
+ 32 && Z(w, 1)) : (w = ai(M), w.c(), Z(w, 1), w.m(n, m)) : w && (ot(), V(w, 1, 1, () => {
2044
2044
  w = null;
2045
- }), st()), I && I.p && (!E || G[1] & /*$$scope*/
2046
- 268435456) && gn(
2045
+ }), st()), I && I.p && (!E || z[1] & /*$$scope*/
2046
+ 536870912) && yn(
2047
2047
  I,
2048
2048
  k,
2049
2049
  M,
2050
2050
  /*$$scope*/
2051
- M[59],
2051
+ M[60],
2052
2052
  E ? mn(
2053
2053
  k,
2054
2054
  /*$$scope*/
2055
- M[59],
2056
- G,
2055
+ M[60],
2056
+ z,
2057
2057
  null
2058
- ) : yn(
2058
+ ) : pn(
2059
2059
  /*$$scope*/
2060
- M[59]
2060
+ M[60]
2061
2061
  ),
2062
2062
  null
2063
2063
  );
2064
2064
  let $ = v;
2065
- v = O(M), v === $ ? ~v && z[v].p(M, G) : (b && (ot(), V(z[$], 1, 1, () => {
2066
- z[$] = null;
2067
- }), st()), ~v ? (b = z[v], b ? b.p(M, G) : (b = z[v] = D[v](M), b.c()), Z(b, 1), b.m(t, null)) : b = null), (!E || G[0] & /*className*/
2068
- 4 && S !== (S = Ht(
2065
+ v = O(M), v === $ ? ~v && F[v].p(M, z) : (b && (ot(), V(F[$], 1, 1, () => {
2066
+ F[$] = null;
2067
+ }), st()), ~v ? (b = F[v], b ? b.p(M, z) : (b = F[v] = D[v](M), b.c()), Z(b, 1), b.m(t, null)) : b = null), (!E || z[0] & /*className*/
2068
+ 4 && S !== (S = Vt(
2069
2069
  /*className*/
2070
2070
  M[2]
2071
- ) + " svelte-1uvos7g")) && y(t, "class", S), (!E || G[0] & /*className, collapsed, searchValue*/
2071
+ ) + " svelte-1uvos7g")) && y(t, "class", S), (!E || z[0] & /*className, collapsed, searchValue*/
2072
2072
  22) && re(
2073
2073
  t,
2074
2074
  "can-collapse",
@@ -2084,11 +2084,11 @@ function yr(i) {
2084
2084
  V(x), V(o.$$.fragment, M), V(a.$$.fragment, M), V(L), V(w), V(I, M), V(b), E = !1;
2085
2085
  },
2086
2086
  d(M) {
2087
- M && (B(e), B(t)), ge(o), i[62](null), ge(a), L && L.d(), w && w.d(), I && I.d(M), ~v && z[v].d(), _ = !1, ye(C);
2087
+ M && (B(e), B(t)), me(o), i[63](null), me(a), L && L.d(), w && w.d(), I && I.d(M), ~v && F[v].d(), _ = !1, ye(C);
2088
2088
  }
2089
2089
  };
2090
2090
  }
2091
- function pr(i, e, t) {
2091
+ function vr(i, e, t) {
2092
2092
  let n, { $$slots: r = {}, $$scope: o } = e;
2093
2093
  const l = {
2094
2094
  continental_marine: 4,
@@ -2114,69 +2114,69 @@ function pr(i, e, t) {
2114
2114
  "poi.restaurant": 18,
2115
2115
  "poi.aerodrome": 13
2116
2116
  };
2117
- let { class: s = void 0 } = e, { apiKey: c } = e, { bbox: u = void 0 } = e, { clearButtonTitle: h = "clear" } = e, { clearOnBlur: a = !1 } = e, { collapsed: f = !1 } = e, { country: d = void 0 } = e, { debounceSearch: g = 200 } = e, { enableReverse: p = !1 } = e, { errorMessage: v = "Something went wrong…" } = e, { filter: b = () => !0 } = e, { flyTo: S = !0 } = e, { fuzzyMatch: E = !0 } = e, { language: _ = void 0 } = e, { limit: C = void 0 } = e, { mapController: x = void 0 } = e, { minLength: L = 2 } = e, { noResultsMessage: w = "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: I = [{ type: "server-geolocation" }] } = e, { reverseActive: D = p === "always" } = e, { reverseButtonTitle: z = "toggle reverse geocoding" } = e, { searchValue: O = "" } = e, { showFullGeometry: M = !0 } = e, { showPlaceType: G = "ifNeeded" } = e, { showResultsWhileTyping: $ = !0 } = e, { selectFirst: oe = !0 } = e, { flyToSelected: ct = !1 } = e, { markerOnSelected: Ye = !0 } = e, { types: Xe = void 0 } = e, { excludeTypes: Ke = !1 } = e, { zoom: Pe = l } = e, { maxZoom: Je = void 0 } = e, { apiUrl: ft = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: dt = {} } = e, { iconsBaseUrl: Ft = "https://cdn.maptiler.com/maptiler-geocoding-control/v1.4.2-dev.2/icons/" } = e, { adjustUrlQuery: ht = () => {
2117
+ let { class: s = void 0 } = e, { apiKey: c } = e, { bbox: u = void 0 } = e, { clearButtonTitle: h = "clear" } = e, { clearOnBlur: a = !1 } = e, { collapsed: f = !1 } = e, { country: d = void 0 } = e, { debounceSearch: m = 200 } = e, { enableReverse: p = !1 } = e, { errorMessage: v = "Something went wrong…" } = e, { filter: b = () => !0 } = e, { flyTo: S = !0 } = e, { fuzzyMatch: E = !0 } = e, { language: _ = void 0 } = e, { limit: C = void 0 } = e, { mapController: x = void 0 } = e, { minLength: L = 2 } = e, { noResultsMessage: w = "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: I = [{ type: "server-geolocation" }] } = e, { reverseActive: D = p === "always" } = e, { reverseButtonTitle: F = "toggle reverse geocoding" } = e, { searchValue: O = "" } = e, { showFullGeometry: M = !0 } = e, { showPlaceType: z = "ifNeeded" } = e, { showResultsWhileTyping: $ = !0 } = e, { selectFirst: oe = !0 } = e, { flyToSelected: ct = !1 } = e, { markerOnSelected: Xe = !0 } = e, { types: Ce = void 0 } = e, { exhaustiveReverseGeocoding: ft = !1 } = e, { excludeTypes: Ke = !1 } = e, { zoom: Te = l } = e, { maxZoom: Je = void 0 } = e, { apiUrl: dt = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: ht = {} } = e, { iconsBaseUrl: Ft = "https://cdn.maptiler.com/maptiler-geocoding-control/v1.4.2-dev.3/icons/" } = e, { adjustUrlQuery: gt = () => {
2118
2118
  } } = e;
2119
2119
  function zi() {
2120
2120
  ae.focus();
2121
2121
  }
2122
- function Gi() {
2122
+ function ji() {
2123
2123
  ae.blur();
2124
2124
  }
2125
- function zt(m, j = !0, H = !1) {
2126
- t(1, O = m), j ? (t(15, U = -1), jt()) : (pt(!H, H), setTimeout(() => {
2125
+ function zt(g, j = !0, H = !1) {
2126
+ t(1, O = g), j ? (t(15, U = -1), Zt()) : (vt(!H, H), setTimeout(() => {
2127
2127
  ae.focus(), ae.select();
2128
2128
  }));
2129
2129
  }
2130
- function ji() {
2131
- t(14, R = void 0), t(56, N = void 0), t(15, U = -1);
2132
- }
2133
2130
  function Zi() {
2134
- t(55, q = []), t(56, N = void 0);
2131
+ t(14, R = void 0), t(57, N = void 0), t(15, U = -1);
2132
+ }
2133
+ function qi() {
2134
+ t(56, q = []), t(57, N = void 0);
2135
2135
  }
2136
- let Te = !1, R, q, N, Gt = "", ae, U = -1, ce, $e = [], Ce, Re, et, mt;
2137
- const qi = /* @__PURE__ */ new Set(), pe = En();
2138
- _n(() => {
2136
+ let Re = !1, R, q, N, jt = "", ae, U = -1, ce, $e = [], ke, Ie, et, mt;
2137
+ const Qi = /* @__PURE__ */ new Set(), pe = Ln();
2138
+ En(() => {
2139
2139
  x && (x.setEventHandler(void 0), x.indicateReverse(!1), x.setSelectedMarker(-1), x.setMarkers(void 0, void 0));
2140
2140
  });
2141
- function jt(m) {
2142
- if (Re && (clearTimeout(Re), Re = void 0), U > -1 && R)
2143
- t(56, N = R[U]), t(1, O = N.place_type[0] === "reverse" ? N.place_name : N.place_name.replace(/,.*/, "")), t(18, ce = void 0), t(55, q = void 0), t(15, U = -1);
2141
+ function Zt(g) {
2142
+ if (Ie && (clearTimeout(Ie), Ie = void 0), U > -1 && R)
2143
+ t(57, N = R[U]), t(1, O = N.place_type[0] === "reverse" ? N.place_name : N.place_name.replace(/,.*/, "")), t(18, ce = void 0), t(56, q = void 0), t(15, U = -1);
2144
2144
  else if (O) {
2145
- const j = m || !gt(O);
2146
- yt(O, { exact: !0 }).then(() => {
2147
- t(55, q = R), t(56, N = void 0), j && Qi();
2145
+ const j = g || !yt(O);
2146
+ pt(O, { exact: !0 }).then(() => {
2147
+ t(56, q = R), t(57, N = void 0), j && Hi();
2148
2148
  }).catch((H) => t(18, ce = H));
2149
2149
  }
2150
2150
  }
2151
- function gt(m) {
2151
+ function yt(g) {
2152
2152
  try {
2153
- return fr(m, 6);
2153
+ return dr(g, 6);
2154
2154
  } catch {
2155
2155
  return !1;
2156
2156
  }
2157
2157
  }
2158
- async function yt(m, { byId: j = !1, exact: H = !1 } = {}) {
2159
- t(18, ce = void 0), Ce == null || Ce.abort();
2158
+ async function pt(g, { byId: j = !1, exact: H = !1 } = {}) {
2159
+ t(18, ce = void 0), ke == null || ke.abort();
2160
2160
  const ee = new AbortController();
2161
- t(19, Ce = ee);
2161
+ t(19, ke = ee);
2162
2162
  try {
2163
- const P = gt(m), Q = new URLSearchParams();
2164
- if (_ !== void 0 && Q.set("language", Array.isArray(_) ? _.join(",") : _ ?? ""), Xe && Q.set("types", Xe.join(",")), Ke && Q.set("excludeTypes", String(Ke)), u && Q.set("bbox", u.map((tt) => tt.toFixed(6)).join(",")), d && Q.set("country", Array.isArray(d) ? d.join(",") : d), !j && !P) {
2165
- const tt = await er(x, I, ee);
2163
+ const P = yt(g), Q = new URLSearchParams();
2164
+ if (_ !== void 0 && Q.set("language", Array.isArray(_) ? _.join(",") : _ ?? ""), Ce && Q.set("types", Ce.join(",")), Ke && Q.set("excludeTypes", String(Ke)), u && Q.set("bbox", u.map((tt) => tt.toFixed(6)).join(",")), d && Q.set("country", Array.isArray(d) ? d.join(",") : d), !j && !P) {
2165
+ const tt = await tr(x, I, ee);
2166
2166
  tt && Q.set("proximity", tt), (H || !$) && Q.set("autocomplete", "false"), Q.set("fuzzyMatch", String(E));
2167
2167
  }
2168
- C !== void 0 && Q.set("limit", String(C)), Q.set("key", c), ht(Q);
2169
- const fe = ft + "/" + encodeURIComponent(P ? P.decimalLongitude + "," + P.decimalLatitude : m) + ".json?" + Q.toString();
2170
- if (fe === Gt) {
2171
- j ? (t(14, R = void 0), t(56, N = $e[0])) : t(14, R = $e);
2168
+ C !== void 0 && (ft || !P || (Ce == null ? void 0 : Ce.length) === 1) && Q.set("limit", String(C)), Q.set("key", c), gt(Q);
2169
+ const fe = dt + "/" + encodeURIComponent(P ? P.decimalLongitude + "," + P.decimalLatitude : g) + ".json?" + Q.toString();
2170
+ if (fe === jt) {
2171
+ j ? (t(14, R = void 0), t(57, N = $e[0])) : t(14, R = $e);
2172
2172
  return;
2173
2173
  }
2174
- Gt = fe;
2175
- const bt = await fetch(fe, { signal: ee.signal, ...dt });
2176
- if (!bt.ok)
2177
- throw new Error(await bt.text());
2178
- const wt = await bt.json();
2179
- pe("response", { url: fe, featureCollection: wt }), j ? (t(14, R = void 0), t(56, N = wt.features[0]), $e = [N]) : (t(14, R = wt.features.filter(b)), P && R.unshift({
2174
+ jt = fe;
2175
+ const wt = await fetch(fe, { signal: ee.signal, ...ht });
2176
+ if (!wt.ok)
2177
+ throw new Error(await wt.text());
2178
+ const _t = await wt.json();
2179
+ pe("response", { url: fe, featureCollection: _t }), j ? (t(14, R = void 0), t(57, N = _t.features[0]), $e = [N]) : (t(14, R = _t.features.filter(b)), P && R.unshift({
2180
2180
  type: "Feature",
2181
2181
  properties: {},
2182
2182
  id: "reverse_" + P.decimalLongitude + "_" + P.decimalLatitude,
@@ -2200,133 +2200,133 @@ function pr(i, e, t) {
2200
2200
  return;
2201
2201
  throw P;
2202
2202
  } finally {
2203
- ee === Ce && t(19, Ce = void 0);
2203
+ ee === ke && t(19, ke = void 0);
2204
2204
  }
2205
2205
  }
2206
- function Qi() {
2206
+ function Hi() {
2207
2207
  var ee;
2208
2208
  if (!(q != null && q.length) || !S)
2209
2209
  return;
2210
- const m = [180, 90, -180, -90], j = !q.some((P) => !P.matching_text);
2210
+ const g = [180, 90, -180, -90], j = !q.some((P) => !P.matching_text);
2211
2211
  let H;
2212
2212
  for (const P of q) {
2213
- const Q = Be(P);
2213
+ const Q = De(P);
2214
2214
  if (H = Je ?? (H === void 0 ? Q : Q === void 0 ? H : Math.max(H, Q)), j || !P.matching_text)
2215
2215
  for (const fe of [0, 1, 2, 3])
2216
- m[fe] = Math[fe < 2 ? "min" : "max"](m[fe], ((ee = P.bbox) == null ? void 0 : ee[fe]) ?? P.center[fe % 2]);
2216
+ g[fe] = Math[fe < 2 ? "min" : "max"](g[fe], ((ee = P.bbox) == null ? void 0 : ee[fe]) ?? P.center[fe % 2]);
2217
2217
  }
2218
- x && q.length > 0 && (N && m[0] === m[2] && m[1] === m[3] ? x.flyTo(N.center, Be(N)) : x.fitBounds(Ze(m), 50, H));
2218
+ x && q.length > 0 && (N && g[0] === g[2] && g[1] === g[3] ? x.flyTo(N.center, De(N)) : x.fitBounds(qe(g), 50, H));
2219
2219
  }
2220
- function Be(m) {
2220
+ function De(g) {
2221
2221
  var H;
2222
- if (!m.bbox || m.bbox[0] !== m.bbox[2] && m.bbox[1] !== m.bbox[3])
2222
+ if (!g.bbox || g.bbox[0] !== g.bbox[2] && g.bbox[1] !== g.bbox[3])
2223
2223
  return;
2224
- if (typeof Pe == "number")
2225
- return m.id.startsWith("poi.") || m.id.startsWith("address.") ? Je : Pe;
2226
- const j = m.id.replace(/\..*/, "");
2227
- return (Array.isArray((H = m.properties) == null ? void 0 : H.categories) ? m.properties.categories.reduce(
2224
+ if (typeof Te == "number")
2225
+ return g.id.startsWith("poi.") || g.id.startsWith("address.") ? Je : Te;
2226
+ const j = g.id.replace(/\..*/, "");
2227
+ return (Array.isArray((H = g.properties) == null ? void 0 : H.categories) ? g.properties.categories.reduce(
2228
2228
  (ee, P) => {
2229
- const Q = Pe[j + "." + P];
2229
+ const Q = Te[j + "." + P];
2230
2230
  return ee === void 0 ? Q : Q === void 0 ? ee : Math.max(ee, Q);
2231
2231
  },
2232
2232
  void 0
2233
- ) : void 0) ?? Pe[j];
2233
+ ) : void 0) ?? Te[j];
2234
2234
  }
2235
- function Hi(m) {
2236
- t(0, D = p === "always"), t(14, R = void 0), t(56, N = void 0), t(15, U = -1), zt(m[1].toFixed(6) + ", " + $n(m[0], [-180, 180], !0).toFixed(6), !1, !0);
2235
+ function Vi(g) {
2236
+ t(0, D = p === "always"), t(14, R = void 0), t(57, N = void 0), t(15, U = -1), zt(g[1].toFixed(6) + ", " + er(g[0], [-180, 180], !0).toFixed(6), !1, !0);
2237
2237
  }
2238
- function Vi(m) {
2238
+ function Yi(g) {
2239
2239
  if (!R)
2240
2240
  return;
2241
- let j = m.key === "ArrowDown" ? 1 : m.key === "ArrowUp" ? -1 : 0;
2242
- j && (U === (oe ? 0 : -1) && j === -1 && t(15, U = R.length), t(15, U += j), U >= R.length && t(15, U = -1), U < 0 && oe && t(15, U = 0), m.preventDefault());
2241
+ let j = g.key === "ArrowDown" ? 1 : g.key === "ArrowUp" ? -1 : 0;
2242
+ j && (U === (oe ? 0 : -1) && j === -1 && t(15, U = R.length), t(15, U += j), U >= R.length && t(15, U = -1), U < 0 && oe && t(15, U = 0), g.preventDefault());
2243
2243
  }
2244
- function pt(m = !0, j = !1) {
2244
+ function vt(g = !0, j = !1) {
2245
2245
  if (t(18, ce = void 0), $ || j) {
2246
- if (Re && clearTimeout(Re), O.length < L)
2246
+ if (Ie && clearTimeout(Ie), O.length < L)
2247
2247
  return;
2248
2248
  const H = O;
2249
- Re = window.setTimeout(
2249
+ Ie = window.setTimeout(
2250
2250
  () => {
2251
- yt(H).catch((ee) => t(18, ce = ee));
2251
+ pt(H).catch((ee) => t(18, ce = ee));
2252
2252
  },
2253
- m ? g : 0
2253
+ g ? m : 0
2254
2254
  );
2255
2255
  } else
2256
2256
  t(14, R = void 0), t(18, ce = void 0);
2257
2257
  }
2258
- function vt(m) {
2259
- t(56, N = m), t(1, O = m.place_name), t(15, U = -1);
2258
+ function bt(g) {
2259
+ t(57, N = g), t(1, O = g.place_name), t(15, U = -1);
2260
2260
  }
2261
- const Yi = () => ae.focus();
2262
- function Xi(m) {
2263
- Mt[m ? "unshift" : "push"](() => {
2264
- ae = m, t(17, ae);
2261
+ const Xi = () => ae.focus();
2262
+ function Ki(g) {
2263
+ Ct[g ? "unshift" : "push"](() => {
2264
+ ae = g, t(17, ae);
2265
2265
  });
2266
2266
  }
2267
- function Ki() {
2268
- O = this.value, t(1, O), t(13, Te), t(28, a);
2267
+ function Ji() {
2268
+ O = this.value, t(1, O), t(13, Re), t(28, a);
2269
2269
  }
2270
- const Ji = () => t(13, Te = !0), $i = () => t(13, Te = !1), en = () => pt(), tn = () => {
2270
+ const $i = () => t(13, Re = !0), en = () => t(13, Re = !1), tn = () => vt(), nn = () => {
2271
2271
  t(1, O = ""), ae.focus();
2272
- }, nn = () => t(0, D = !D), rn = () => t(18, ce = void 0), on = (m) => t(15, U = m), sn = (m) => vt(m), ln = () => {
2272
+ }, rn = () => t(0, D = !D), on = () => t(18, ce = void 0), sn = (g) => t(15, U = g), ln = (g) => bt(g), un = () => {
2273
2273
  oe || t(15, U = -1);
2274
- }, un = () => {
2274
+ }, an = () => {
2275
2275
  };
2276
- return i.$$set = (m) => {
2277
- "class" in m && t(2, s = m.class), "apiKey" in m && t(26, c = m.apiKey), "bbox" in m && t(27, u = m.bbox), "clearButtonTitle" in m && t(3, h = m.clearButtonTitle), "clearOnBlur" in m && t(28, a = m.clearOnBlur), "collapsed" in m && t(4, f = m.collapsed), "country" in m && t(29, d = m.country), "debounceSearch" in m && t(30, g = m.debounceSearch), "enableReverse" in m && t(5, p = m.enableReverse), "errorMessage" in m && t(6, v = m.errorMessage), "filter" in m && t(31, b = m.filter), "flyTo" in m && t(32, S = m.flyTo), "fuzzyMatch" in m && t(33, E = m.fuzzyMatch), "language" in m && t(34, _ = m.language), "limit" in m && t(35, C = m.limit), "mapController" in m && t(36, x = m.mapController), "minLength" in m && t(37, L = m.minLength), "noResultsMessage" in m && t(7, w = m.noResultsMessage), "placeholder" in m && t(8, k = m.placeholder), "proximity" in m && t(38, I = m.proximity), "reverseActive" in m && t(0, D = m.reverseActive), "reverseButtonTitle" in m && t(9, z = m.reverseButtonTitle), "searchValue" in m && t(1, O = m.searchValue), "showFullGeometry" in m && t(39, M = m.showFullGeometry), "showPlaceType" in m && t(10, G = m.showPlaceType), "showResultsWhileTyping" in m && t(40, $ = m.showResultsWhileTyping), "selectFirst" in m && t(11, oe = m.selectFirst), "flyToSelected" in m && t(41, ct = m.flyToSelected), "markerOnSelected" in m && t(42, Ye = m.markerOnSelected), "types" in m && t(43, Xe = m.types), "excludeTypes" in m && t(44, Ke = m.excludeTypes), "zoom" in m && t(45, Pe = m.zoom), "maxZoom" in m && t(46, Je = m.maxZoom), "apiUrl" in m && t(47, ft = m.apiUrl), "fetchParameters" in m && t(48, dt = m.fetchParameters), "iconsBaseUrl" in m && t(12, Ft = m.iconsBaseUrl), "adjustUrlQuery" in m && t(49, ht = m.adjustUrlQuery), "$$scope" in m && t(59, o = m.$$scope);
2276
+ return i.$$set = (g) => {
2277
+ "class" in g && t(2, s = g.class), "apiKey" in g && t(26, c = g.apiKey), "bbox" in g && t(27, u = g.bbox), "clearButtonTitle" in g && t(3, h = g.clearButtonTitle), "clearOnBlur" in g && t(28, a = g.clearOnBlur), "collapsed" in g && t(4, f = g.collapsed), "country" in g && t(29, d = g.country), "debounceSearch" in g && t(30, m = g.debounceSearch), "enableReverse" in g && t(5, p = g.enableReverse), "errorMessage" in g && t(6, v = g.errorMessage), "filter" in g && t(31, b = g.filter), "flyTo" in g && t(32, S = g.flyTo), "fuzzyMatch" in g && t(33, E = g.fuzzyMatch), "language" in g && t(34, _ = g.language), "limit" in g && t(35, C = g.limit), "mapController" in g && t(36, x = g.mapController), "minLength" in g && t(37, L = g.minLength), "noResultsMessage" in g && t(7, w = g.noResultsMessage), "placeholder" in g && t(8, k = g.placeholder), "proximity" in g && t(38, I = g.proximity), "reverseActive" in g && t(0, D = g.reverseActive), "reverseButtonTitle" in g && t(9, F = g.reverseButtonTitle), "searchValue" in g && t(1, O = g.searchValue), "showFullGeometry" in g && t(39, M = g.showFullGeometry), "showPlaceType" in g && t(10, z = g.showPlaceType), "showResultsWhileTyping" in g && t(40, $ = g.showResultsWhileTyping), "selectFirst" in g && t(11, oe = g.selectFirst), "flyToSelected" in g && t(41, ct = g.flyToSelected), "markerOnSelected" in g && t(42, Xe = g.markerOnSelected), "types" in g && t(43, Ce = g.types), "exhaustiveReverseGeocoding" in g && t(44, ft = g.exhaustiveReverseGeocoding), "excludeTypes" in g && t(45, Ke = g.excludeTypes), "zoom" in g && t(46, Te = g.zoom), "maxZoom" in g && t(47, Je = g.maxZoom), "apiUrl" in g && t(48, dt = g.apiUrl), "fetchParameters" in g && t(49, ht = g.fetchParameters), "iconsBaseUrl" in g && t(12, Ft = g.iconsBaseUrl), "adjustUrlQuery" in g && t(50, gt = g.adjustUrlQuery), "$$scope" in g && t(60, o = g.$$scope);
2278
2278
  }, i.$$.update = () => {
2279
2279
  if (i.$$.dirty[0] & /*enableReverse*/
2280
2280
  32 && t(0, D = p === "always"), i.$$.dirty[0] & /*focused, clearOnBlur*/
2281
2281
  268443648 && setTimeout(() => {
2282
- t(16, et = Te), a && !Te && t(1, O = "");
2282
+ t(16, et = Re), a && !Re && t(1, O = "");
2283
2283
  }), i.$$.dirty[0] & /*searchValue, listFeatures*/
2284
2284
  16386 | i.$$.dirty[1] & /*minLength*/
2285
- 64 && O.length < L && (t(56, N = void 0), t(14, R = void 0), t(18, ce = void 0), t(55, q = R)), i.$$.dirty[1] & /*showFullGeometry, picked*/
2286
- 33554688 && M && N && !N.address && N.geometry.type === "Point" && N.place_type[0] !== "reverse" && yt(N.id, { byId: !0 }).catch((m) => t(18, ce = m)), i.$$.dirty[1] & /*mapController, picked, prevIdToFly, flyTo*/
2287
- 100663330 && (x && N && N.id !== mt && S && (!N.bbox || N.bbox[0] === N.bbox[2] && N.bbox[1] === N.bbox[3] ? x.flyTo(N.center, Be(N)) : x.fitBounds(Ze(N.bbox), 50, Be(N)), t(14, R = void 0), t(55, q = void 0), t(15, U = -1)), t(57, mt = N == null ? void 0 : N.id)), i.$$.dirty[0] & /*selectFirst, listFeatures*/
2285
+ 64 && O.length < L && (t(57, N = void 0), t(14, R = void 0), t(18, ce = void 0), t(56, q = R)), i.$$.dirty[1] & /*showFullGeometry, picked*/
2286
+ 67109120 && M && N && !N.address && N.geometry.type === "Point" && N.place_type[0] !== "reverse" && pt(N.id, { byId: !0 }).catch((g) => t(18, ce = g)), i.$$.dirty[1] & /*mapController, picked, prevIdToFly, flyTo*/
2287
+ 201326626 && (x && N && N.id !== mt && S && (!N.bbox || N.bbox[0] === N.bbox[2] && N.bbox[1] === N.bbox[3] ? x.flyTo(N.center, De(N)) : x.fitBounds(qe(N.bbox), 50, De(N)), t(14, R = void 0), t(56, q = void 0), t(15, U = -1)), t(58, mt = N == null ? void 0 : N.id)), i.$$.dirty[0] & /*selectFirst, listFeatures*/
2288
2288
  18432 && oe && R != null && R.length && t(15, U = 0), i.$$.dirty[0] & /*searchValue*/
2289
2289
  2 && t(15, U = -1), i.$$.dirty[0] & /*listFeatures*/
2290
2290
  16384 | i.$$.dirty[1] & /*markedFeatures*/
2291
- 16777216 && q !== R && t(55, q = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
2291
+ 33554432 && q !== R && t(56, q = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
2292
2292
  81921 | i.$$.dirty[1] & /*mapController, markedFeatures*/
2293
- 16777248 && x && x.setEventHandler((m) => {
2294
- switch (m.type) {
2293
+ 33554464 && x && x.setEventHandler((g) => {
2294
+ switch (g.type) {
2295
2295
  case "mapClick":
2296
- D && Hi(m.coordinates);
2296
+ D && Vi(g.coordinates);
2297
2297
  break;
2298
2298
  case "markerClick":
2299
2299
  {
2300
- const j = R == null ? void 0 : R.find((H) => H.id === m.id);
2301
- j && vt(j);
2300
+ const j = R == null ? void 0 : R.find((H) => H.id === g.id);
2301
+ j && bt(j);
2302
2302
  }
2303
2303
  break;
2304
2304
  case "markerMouseEnter":
2305
- q && t(15, U = et ? (R == null ? void 0 : R.findIndex((j) => j.id === m.id)) ?? -1 : -1);
2305
+ q && t(15, U = et ? (R == null ? void 0 : R.findIndex((j) => j.id === g.id)) ?? -1 : -1);
2306
2306
  break;
2307
2307
  case "markerMouseLeave":
2308
2308
  q && t(15, U = -1);
2309
2309
  break;
2310
2310
  }
2311
2311
  }), i.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
2312
- 49152 && t(58, n = R == null ? void 0 : R[U]), i.$$.dirty[1] & /*mapController, selected, flyTo, flyToSelected*/
2313
- 134218786 && x && n && S && ct && x.flyTo(n.center, Be(n)), i.$$.dirty[1] & /*markerOnSelected, mapController*/
2314
- 2080 && (Ye || x == null || x.setMarkers(void 0, void 0)), i.$$.dirty[1] & /*mapController, markerOnSelected, markedFeatures, selected*/
2315
- 150997024 && x && Ye && !q && (x.setMarkers(n ? [n] : void 0, void 0), x.setSelectedMarker(n ? 0 : -1)), i.$$.dirty[1] & /*mapController, markedFeatures, picked*/
2316
- 50331680 && x && x.setMarkers(q, N), i.$$.dirty[0] & /*selectedItemIndex*/
2312
+ 49152 && t(59, n = R == null ? void 0 : R[U]), i.$$.dirty[1] & /*mapController, selected, flyTo, flyToSelected*/
2313
+ 268436514 && x && n && S && ct && x.flyTo(n.center, De(n)), i.$$.dirty[1] & /*markerOnSelected, mapController*/
2314
+ 2080 && (Xe || x == null || x.setMarkers(void 0, void 0)), i.$$.dirty[1] & /*mapController, markerOnSelected, markedFeatures, selected*/
2315
+ 301991968 && x && Xe && !q && (x.setMarkers(n ? [n] : void 0, void 0), x.setSelectedMarker(n ? 0 : -1)), i.$$.dirty[1] & /*mapController, markedFeatures, picked*/
2316
+ 100663328 && x && x.setMarkers(q, N), i.$$.dirty[0] & /*selectedItemIndex*/
2317
2317
  32768 | i.$$.dirty[1] & /*markedFeatures, mapController*/
2318
- 16777248 && q && x && x.setSelectedMarker(U), i.$$.dirty[0] & /*searchValue*/
2318
+ 33554464 && q && x && x.setSelectedMarker(U), i.$$.dirty[0] & /*searchValue*/
2319
2319
  2 | i.$$.dirty[1] & /*mapController*/
2320
2320
  32 && x) {
2321
- const m = gt(O);
2322
- x.setReverseMarker(m ? [m.decimalLongitude, m.decimalLatitude] : void 0);
2321
+ const g = yt(O);
2322
+ x.setReverseMarker(g ? [g.decimalLongitude, g.decimalLatitude] : void 0);
2323
2323
  }
2324
2324
  i.$$.dirty[1] & /*selected*/
2325
- 134217728 && pe("select", n), i.$$.dirty[1] & /*picked*/
2326
- 33554432 && pe("pick", N), i.$$.dirty[0] & /*focusedDelayed, listFeatures*/
2325
+ 268435456 && pe("select", n), i.$$.dirty[1] & /*picked*/
2326
+ 67108864 && pe("pick", N), i.$$.dirty[0] & /*focusedDelayed, listFeatures*/
2327
2327
  81920 && pe("optionsVisibilityChange", et && !!R), i.$$.dirty[0] & /*listFeatures*/
2328
2328
  16384 && pe("featuresListed", R), i.$$.dirty[1] & /*markedFeatures*/
2329
- 16777216 && pe("featuresMarked", q), i.$$.dirty[0] & /*reverseActive*/
2329
+ 33554432 && pe("featuresMarked", q), i.$$.dirty[0] & /*reverseActive*/
2330
2330
  1 && pe("reverseToggle", D), i.$$.dirty[0] & /*searchValue*/
2331
2331
  2 && pe("queryChange", O), i.$$.dirty[0] & /*reverseActive*/
2332
2332
  1 | i.$$.dirty[1] & /*mapController*/
@@ -2341,28 +2341,28 @@ function pr(i, e, t) {
2341
2341
  v,
2342
2342
  w,
2343
2343
  k,
2344
+ F,
2344
2345
  z,
2345
- G,
2346
2346
  oe,
2347
2347
  Ft,
2348
- Te,
2348
+ Re,
2349
2349
  R,
2350
2350
  U,
2351
2351
  et,
2352
2352
  ae,
2353
2353
  ce,
2354
- Ce,
2355
- qi,
2356
- jt,
2357
- Vi,
2358
- pt,
2354
+ ke,
2355
+ Qi,
2356
+ Zt,
2357
+ Yi,
2359
2358
  vt,
2359
+ bt,
2360
2360
  l,
2361
2361
  c,
2362
2362
  u,
2363
2363
  a,
2364
2364
  d,
2365
- g,
2365
+ m,
2366
2366
  b,
2367
2367
  S,
2368
2368
  E,
@@ -2374,26 +2374,26 @@ function pr(i, e, t) {
2374
2374
  M,
2375
2375
  $,
2376
2376
  ct,
2377
- Ye,
2378
2377
  Xe,
2378
+ Ce,
2379
+ ft,
2379
2380
  Ke,
2380
- Pe,
2381
+ Te,
2381
2382
  Je,
2382
- ft,
2383
2383
  dt,
2384
2384
  ht,
2385
+ gt,
2385
2386
  zi,
2386
- Gi,
2387
- zt,
2388
2387
  ji,
2388
+ zt,
2389
2389
  Zi,
2390
+ qi,
2390
2391
  q,
2391
2392
  N,
2392
2393
  mt,
2393
2394
  n,
2394
2395
  o,
2395
2396
  r,
2396
- Yi,
2397
2397
  Xi,
2398
2398
  Ki,
2399
2399
  Ji,
@@ -2405,16 +2405,17 @@ function pr(i, e, t) {
2405
2405
  on,
2406
2406
  sn,
2407
2407
  ln,
2408
- un
2408
+ un,
2409
+ an
2409
2410
  ];
2410
2411
  }
2411
- let vr = class extends Me {
2412
+ let br = class extends Me {
2412
2413
  constructor(e) {
2413
2414
  super(), xe(
2414
2415
  this,
2415
2416
  e,
2417
+ vr,
2416
2418
  pr,
2417
- yr,
2418
2419
  Se,
2419
2420
  {
2420
2421
  ZOOM_DEFAULTS: 25,
@@ -2448,18 +2449,19 @@ let vr = class extends Me {
2448
2449
  flyToSelected: 41,
2449
2450
  markerOnSelected: 42,
2450
2451
  types: 43,
2451
- excludeTypes: 44,
2452
- zoom: 45,
2453
- maxZoom: 46,
2454
- apiUrl: 47,
2455
- fetchParameters: 48,
2452
+ exhaustiveReverseGeocoding: 44,
2453
+ excludeTypes: 45,
2454
+ zoom: 46,
2455
+ maxZoom: 47,
2456
+ apiUrl: 48,
2457
+ fetchParameters: 49,
2456
2458
  iconsBaseUrl: 12,
2457
- adjustUrlQuery: 49,
2458
- focus: 50,
2459
- blur: 51,
2460
- setQuery: 52,
2461
- clearList: 53,
2462
- clearMap: 54
2459
+ adjustUrlQuery: 50,
2460
+ focus: 51,
2461
+ blur: 52,
2462
+ setQuery: 53,
2463
+ clearList: 54,
2464
+ clearMap: 55
2463
2465
  },
2464
2466
  null,
2465
2467
  [-1, -1, -1]
@@ -2469,26 +2471,26 @@ let vr = class extends Me {
2469
2471
  return this.$$.ctx[25];
2470
2472
  }
2471
2473
  get focus() {
2472
- return this.$$.ctx[50];
2474
+ return this.$$.ctx[51];
2473
2475
  }
2474
2476
  get blur() {
2475
- return this.$$.ctx[51];
2477
+ return this.$$.ctx[52];
2476
2478
  }
2477
2479
  get setQuery() {
2478
- return this.$$.ctx[52];
2480
+ return this.$$.ctx[53];
2479
2481
  }
2480
2482
  get clearList() {
2481
- return this.$$.ctx[53];
2483
+ return this.$$.ctx[54];
2482
2484
  }
2483
2485
  get clearMap() {
2484
- return this.$$.ctx[54];
2486
+ return this.$$.ctx[55];
2485
2487
  }
2486
2488
  };
2487
- function qe(i, e, t = {}) {
2489
+ function Qe(i, e, t = {}) {
2488
2490
  const n = { type: "Feature" };
2489
2491
  return (t.id === 0 || t.id) && (n.id = t.id), t.bbox && (n.bbox = t.bbox), n.properties = e || {}, n.geometry = i, n;
2490
2492
  }
2491
- function At(i, e, t = {}) {
2493
+ function Bt(i, e, t = {}) {
2492
2494
  for (const r of i) {
2493
2495
  if (r.length < 4)
2494
2496
  throw new Error(
@@ -2500,25 +2502,25 @@ function At(i, e, t = {}) {
2500
2502
  if (r[r.length - 1][o] !== r[0][o])
2501
2503
  throw new Error("First and last Position are not equivalent.");
2502
2504
  }
2503
- return qe({
2505
+ return Qe({
2504
2506
  type: "Polygon",
2505
2507
  coordinates: i
2506
2508
  }, e, t);
2507
2509
  }
2508
- function Qe(i, e = {}) {
2510
+ function He(i, e = {}) {
2509
2511
  const t = { type: "FeatureCollection" };
2510
2512
  return e.id && (t.id = e.id), e.bbox && (t.bbox = e.bbox), t.features = i, t;
2511
2513
  }
2512
- function Ii(i, e, t = {}) {
2513
- return qe({
2514
+ function Oi(i, e, t = {}) {
2515
+ return Qe({
2514
2516
  type: "MultiPolygon",
2515
2517
  coordinates: i
2516
2518
  }, e, t);
2517
2519
  }
2518
- function Oi(i, e, t) {
2520
+ function Wi(i, e, t) {
2519
2521
  if (i !== null)
2520
- for (var n, r, o, l, s, c, u, h = 0, a = 0, f, d = i.type, g = d === "FeatureCollection", p = d === "Feature", v = g ? i.features.length : 1, b = 0; b < v; b++) {
2521
- u = g ? i.features[b].geometry : p ? i.geometry : i, f = u ? u.type === "GeometryCollection" : !1, s = f ? u.geometries.length : 1;
2522
+ for (var n, r, o, l, s, c, u, h = 0, a = 0, f, d = i.type, m = d === "FeatureCollection", p = d === "Feature", v = m ? i.features.length : 1, b = 0; b < v; b++) {
2523
+ u = m ? i.features[b].geometry : p ? i.geometry : i, f = u ? u.type === "GeometryCollection" : !1, s = f ? u.geometries.length : 1;
2522
2524
  for (var S = 0; S < s; S++) {
2523
2525
  var E = 0, _ = 0;
2524
2526
  if (l = f ? u.geometries[S] : u, l !== null) {
@@ -2592,7 +2594,7 @@ function Oi(i, e, t) {
2592
2594
  break;
2593
2595
  case "GeometryCollection":
2594
2596
  for (n = 0; n < l.geometries.length; n++)
2595
- if (Oi(l.geometries[n], e) === !1)
2597
+ if (Wi(l.geometries[n], e) === !1)
2596
2598
  return !1;
2597
2599
  break;
2598
2600
  default:
@@ -2602,10 +2604,10 @@ function Oi(i, e, t) {
2602
2604
  }
2603
2605
  }
2604
2606
  }
2605
- function Bt(i, e) {
2606
- var t, n, r, o, l, s, c, u, h, a, f = 0, d = i.type === "FeatureCollection", g = i.type === "Feature", p = d ? i.features.length : 1;
2607
+ function Dt(i, e) {
2608
+ var t, n, r, o, l, s, c, u, h, a, f = 0, d = i.type === "FeatureCollection", m = i.type === "Feature", p = d ? i.features.length : 1;
2607
2609
  for (t = 0; t < p; t++) {
2608
- 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++) {
2610
+ 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++) {
2609
2611
  if (o = c ? s.geometries[r] : s, o === null) {
2610
2612
  if (e(
2611
2613
  null,
@@ -2653,8 +2655,8 @@ function Bt(i, e) {
2653
2655
  f++;
2654
2656
  }
2655
2657
  }
2656
- function br(i, e) {
2657
- Bt(i, function(t, n, r, o, l) {
2658
+ function wr(i, e) {
2659
+ Dt(i, function(t, n, r, o, l) {
2658
2660
  var s = t === null ? null : t.type;
2659
2661
  switch (s) {
2660
2662
  case null:
@@ -2662,7 +2664,7 @@ function br(i, e) {
2662
2664
  case "LineString":
2663
2665
  case "Polygon":
2664
2666
  return e(
2665
- qe(t, r, { bbox: o, id: l }),
2667
+ Qe(t, r, { bbox: o, id: l }),
2666
2668
  n,
2667
2669
  0
2668
2670
  ) === !1 ? !1 : void 0;
@@ -2684,28 +2686,28 @@ function br(i, e) {
2684
2686
  type: c,
2685
2687
  coordinates: h
2686
2688
  };
2687
- if (e(qe(a, r), n, u) === !1)
2689
+ if (e(Qe(a, r), n, u) === !1)
2688
2690
  return !1;
2689
2691
  }
2690
2692
  });
2691
2693
  }
2692
- function wr(i, e = {}) {
2694
+ function _r(i, e = {}) {
2693
2695
  if (i.bbox != null && e.recompute !== !0)
2694
2696
  return i.bbox;
2695
2697
  const t = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
2696
- return Oi(i, (n) => {
2698
+ return Wi(i, (n) => {
2697
2699
  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]);
2698
2700
  }), t;
2699
2701
  }
2700
- var Nt = wr;
2701
- function _r(i) {
2702
+ var Pt = _r;
2703
+ function Er(i) {
2702
2704
  if (!i)
2703
2705
  throw new Error("geojson is required");
2704
2706
  switch (i.type) {
2705
2707
  case "Feature":
2706
- return Wi(i);
2708
+ return Ai(i);
2707
2709
  case "FeatureCollection":
2708
- return Er(i);
2710
+ return Lr(i);
2709
2711
  case "Point":
2710
2712
  case "LineString":
2711
2713
  case "Polygon":
@@ -2713,12 +2715,12 @@ function _r(i) {
2713
2715
  case "MultiLineString":
2714
2716
  case "MultiPolygon":
2715
2717
  case "GeometryCollection":
2716
- return Dt(i);
2718
+ return Ut(i);
2717
2719
  default:
2718
2720
  throw new Error("unknown GeoJSON type");
2719
2721
  }
2720
2722
  }
2721
- function Wi(i) {
2723
+ function Ai(i) {
2722
2724
  const e = { type: "Feature" };
2723
2725
  return Object.keys(i).forEach((t) => {
2724
2726
  switch (t) {
@@ -2729,16 +2731,16 @@ function Wi(i) {
2729
2731
  default:
2730
2732
  e[t] = i[t];
2731
2733
  }
2732
- }), e.properties = Ai(i.properties), i.geometry == null ? e.geometry = null : e.geometry = Dt(i.geometry), e;
2734
+ }), e.properties = Bi(i.properties), i.geometry == null ? e.geometry = null : e.geometry = Ut(i.geometry), e;
2733
2735
  }
2734
- function Ai(i) {
2736
+ function Bi(i) {
2735
2737
  const e = {};
2736
2738
  return i && Object.keys(i).forEach((t) => {
2737
2739
  const n = i[t];
2738
- typeof n == "object" ? n === null ? e[t] = null : Array.isArray(n) ? e[t] = n.map((r) => r) : e[t] = Ai(n) : e[t] = n;
2740
+ typeof n == "object" ? n === null ? e[t] = null : Array.isArray(n) ? e[t] = n.map((r) => r) : e[t] = Bi(n) : e[t] = n;
2739
2741
  }), e;
2740
2742
  }
2741
- function Er(i) {
2743
+ function Lr(i) {
2742
2744
  const e = { type: "FeatureCollection" };
2743
2745
  return Object.keys(i).forEach((t) => {
2744
2746
  switch (t) {
@@ -2748,17 +2750,17 @@ function Er(i) {
2748
2750
  default:
2749
2751
  e[t] = i[t];
2750
2752
  }
2751
- }), e.features = i.features.map((t) => Wi(t)), e;
2753
+ }), e.features = i.features.map((t) => Ai(t)), e;
2752
2754
  }
2753
- function Dt(i) {
2755
+ function Ut(i) {
2754
2756
  const e = { type: i.type };
2755
- return i.bbox && (e.bbox = i.bbox), i.type === "GeometryCollection" ? (e.geometries = i.geometries.map((t) => Dt(t)), e) : (e.coordinates = Bi(i.coordinates), e);
2757
+ return i.bbox && (e.bbox = i.bbox), i.type === "GeometryCollection" ? (e.geometries = i.geometries.map((t) => Ut(t)), e) : (e.coordinates = Di(i.coordinates), e);
2756
2758
  }
2757
- function Bi(i) {
2759
+ function Di(i) {
2758
2760
  const e = i;
2759
- return typeof e[0] != "object" ? e.slice() : e.map((t) => Bi(t));
2761
+ return typeof e[0] != "object" ? e.slice() : e.map((t) => Di(t));
2760
2762
  }
2761
- var Lr = _r;
2763
+ var Sr = Er;
2762
2764
  /**
2763
2765
  * splaytree v3.1.2
2764
2766
  * Fast Splay tree for Node and browser
@@ -2781,7 +2783,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
2781
2783
  See the Apache Version 2.0 License for specific language governing permissions
2782
2784
  and limitations under the License.
2783
2785
  ***************************************************************************** */
2784
- function Sr(i, e) {
2786
+ function xr(i, e) {
2785
2787
  var t = { label: 0, sent: function() {
2786
2788
  if (o[0] & 1) throw o[1];
2787
2789
  return o[1];
@@ -2850,7 +2852,7 @@ var Le = (
2850
2852
  return i;
2851
2853
  }()
2852
2854
  );
2853
- function xr(i, e) {
2855
+ function Mr(i, e) {
2854
2856
  return i > e ? 1 : i < e ? -1 : 0;
2855
2857
  }
2856
2858
  function ve(i, e, t) {
@@ -2879,7 +2881,7 @@ function ve(i, e, t) {
2879
2881
  }
2880
2882
  return r.right = e.left, o.left = e.right, e.left = n.right, e.right = n.left, e;
2881
2883
  }
2882
- function St(i, e, t, n) {
2884
+ function xt(i, e, t, n) {
2883
2885
  var r = new Le(i, e);
2884
2886
  if (t === null)
2885
2887
  return r.left = r.right = null, r;
@@ -2887,7 +2889,7 @@ function St(i, e, t, n) {
2887
2889
  var o = n(i, t.key);
2888
2890
  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;
2889
2891
  }
2890
- function ci(i, e, t) {
2892
+ function fi(i, e, t) {
2891
2893
  var n = null, r = null;
2892
2894
  if (e) {
2893
2895
  e = ve(i, e, t);
@@ -2896,25 +2898,25 @@ function ci(i, e, t) {
2896
2898
  }
2897
2899
  return { left: n, right: r };
2898
2900
  }
2899
- function Mr(i, e, t) {
2901
+ function Cr(i, e, t) {
2900
2902
  return e === null ? i : (i === null || (e = ve(i.key, e, t), e.left = i), e);
2901
2903
  }
2902
- function Pt(i, e, t, n, r) {
2904
+ function Tt(i, e, t, n, r) {
2903
2905
  if (i) {
2904
2906
  n("" + e + (t ? "└── " : "├── ") + r(i) + `
2905
2907
  `);
2906
2908
  var o = e + (t ? " " : "│ ");
2907
- i.left && Pt(i.left, o, !1, n, r), i.right && Pt(i.right, o, !0, n, r);
2909
+ i.left && Tt(i.left, o, !1, n, r), i.right && Tt(i.right, o, !0, n, r);
2908
2910
  }
2909
2911
  }
2910
- var Ut = (
2912
+ var Gt = (
2911
2913
  /** @class */
2912
2914
  function() {
2913
2915
  function i(e) {
2914
- e === void 0 && (e = xr), this._root = null, this._size = 0, this._comparator = e;
2916
+ e === void 0 && (e = Mr), this._root = null, this._size = 0, this._comparator = e;
2915
2917
  }
2916
2918
  return i.prototype.insert = function(e, t) {
2917
- return this._size++, this._root = St(e, t, this._root, this._comparator);
2919
+ return this._size++, this._root = xt(e, t, this._root, this._comparator);
2918
2920
  }, i.prototype.add = function(e, t) {
2919
2921
  var n = new Le(e, t);
2920
2922
  this._root === null && (n.left = n.right = null, this._size++, this._root = n);
@@ -3039,15 +3041,15 @@ var Ut = (
3039
3041
  }, i.prototype.clear = function() {
3040
3042
  return this._root = null, this._size = 0, this;
3041
3043
  }, i.prototype.toList = function() {
3042
- return kr(this._root);
3044
+ return Nr(this._root);
3043
3045
  }, i.prototype.load = function(e, t, n) {
3044
3046
  t === void 0 && (t = []), n === void 0 && (n = !1);
3045
3047
  var r = e.length, o = this._comparator;
3046
- if (n && It(e, t, 0, r - 1, o), this._root === null)
3047
- this._root = Tt(e, t, 0, r), this._size = r;
3048
+ if (n && Ot(e, t, 0, r - 1, o), this._root === null)
3049
+ this._root = Rt(e, t, 0, r), this._size = r;
3048
3050
  else {
3049
- var l = Nr(this.toList(), Cr(e, t), o);
3050
- r = this._size + r, this._root = Rt({ head: l }, 0, r);
3051
+ var l = Pr(this.toList(), kr(e, t), o);
3052
+ r = this._size + r, this._root = It({ head: l }, 0, r);
3051
3053
  }
3052
3054
  return this;
3053
3055
  }, i.prototype.isEmpty = function() {
@@ -3069,17 +3071,17 @@ var Ut = (
3069
3071
  return String(n.key);
3070
3072
  });
3071
3073
  var t = [];
3072
- return Pt(this._root, "", !0, function(n) {
3074
+ return Tt(this._root, "", !0, function(n) {
3073
3075
  return t.push(n);
3074
3076
  }, e), t.join("");
3075
3077
  }, i.prototype.update = function(e, t, n) {
3076
- var r = this._comparator, o = ci(e, this._root, r), l = o.left, s = o.right;
3077
- r(e, t) < 0 ? s = St(t, n, s, r) : l = St(t, n, l, r), this._root = Mr(l, s, r);
3078
+ var r = this._comparator, o = fi(e, this._root, r), l = o.left, s = o.right;
3079
+ r(e, t) < 0 ? s = xt(t, n, s, r) : l = xt(t, n, l, r), this._root = Cr(l, s, r);
3078
3080
  }, i.prototype.split = function(e) {
3079
- return ci(e, this._root, this._comparator);
3081
+ return fi(e, this._root, this._comparator);
3080
3082
  }, i.prototype[Symbol.iterator] = function() {
3081
3083
  var e, t, n;
3082
- return Sr(this, function(r) {
3084
+ return xr(this, function(r) {
3083
3085
  switch (r.label) {
3084
3086
  case 0:
3085
3087
  e = this._root, t = [], n = !1, r.label = 1;
@@ -3103,38 +3105,38 @@ var Ut = (
3103
3105
  }, i;
3104
3106
  }()
3105
3107
  );
3106
- function Tt(i, e, t, n) {
3108
+ function Rt(i, e, t, n) {
3107
3109
  var r = n - t;
3108
3110
  if (r > 0) {
3109
3111
  var o = t + Math.floor(r / 2), l = i[o], s = e[o], c = new Le(l, s);
3110
- return c.left = Tt(i, e, t, o), c.right = Tt(i, e, o + 1, n), c;
3112
+ return c.left = Rt(i, e, t, o), c.right = Rt(i, e, o + 1, n), c;
3111
3113
  }
3112
3114
  return null;
3113
3115
  }
3114
- function Cr(i, e) {
3116
+ function kr(i, e) {
3115
3117
  for (var t = new Le(null, null), n = t, r = 0; r < i.length; r++)
3116
3118
  n = n.next = new Le(i[r], e[r]);
3117
3119
  return n.next = null, t.next;
3118
3120
  }
3119
- function kr(i) {
3121
+ function Nr(i) {
3120
3122
  for (var e = i, t = [], n = !1, r = new Le(null, null), o = r; !n; )
3121
3123
  e ? (t.push(e), e = e.left) : t.length > 0 ? (e = o = o.next = t.pop(), e = e.right) : n = !0;
3122
3124
  return o.next = null, r.next;
3123
3125
  }
3124
- function Rt(i, e, t) {
3126
+ function It(i, e, t) {
3125
3127
  var n = t - e;
3126
3128
  if (n > 0) {
3127
- var r = e + Math.floor(n / 2), o = Rt(i, e, r), l = i.head;
3128
- return l.left = o, i.head = i.head.next, l.right = Rt(i, r + 1, t), l;
3129
+ var r = e + Math.floor(n / 2), o = It(i, e, r), l = i.head;
3130
+ return l.left = o, i.head = i.head.next, l.right = It(i, r + 1, t), l;
3129
3131
  }
3130
3132
  return null;
3131
3133
  }
3132
- function Nr(i, e, t) {
3134
+ function Pr(i, e, t) {
3133
3135
  for (var n = new Le(null, null), r = n, o = i, l = e; o !== null && l !== null; )
3134
3136
  t(o.key, l.key) < 0 ? (r.next = o, o = o.next) : (r.next = l, l = l.next), r = r.next;
3135
3137
  return o !== null ? r.next = o : l !== null && (r.next = l), n.next;
3136
3138
  }
3137
- function It(i, e, t, n, r) {
3139
+ function Ot(i, e, t, n, r) {
3138
3140
  if (!(t >= n)) {
3139
3141
  for (var o = i[t + n >> 1], l = t - 1, s = n + 1; ; ) {
3140
3142
  do
@@ -3148,11 +3150,11 @@ function It(i, e, t, n, r) {
3148
3150
  var c = i[l];
3149
3151
  i[l] = i[s], i[s] = c, c = e[l], e[l] = e[s], e[s] = c;
3150
3152
  }
3151
- It(i, e, t, s, r), It(i, e, s + 1, n, r);
3153
+ Ot(i, e, t, s, r), Ot(i, e, s + 1, n, r);
3152
3154
  }
3153
3155
  }
3154
- const he = 11102230246251565e-32, Y = 134217729, Pr = (3 + 8 * he) * he;
3155
- function xt(i, e, t, n, r) {
3156
+ const he = 11102230246251565e-32, Y = 134217729, Tr = (3 + 8 * he) * he;
3157
+ function Mt(i, e, t, n, r) {
3156
3158
  let o, l, s, c, u = e[0], h = n[0], a = 0, f = 0;
3157
3159
  h > u == h > -u ? (o = u, u = e[++a]) : (o = h, h = n[++f]);
3158
3160
  let d = 0;
@@ -3165,34 +3167,34 @@ function xt(i, e, t, n, r) {
3165
3167
  l = o + h, c = l - o, s = o - (l - c) + (h - c), h = n[++f], o = l, s !== 0 && (r[d++] = s);
3166
3168
  return (o !== 0 || d === 0) && (r[d++] = o), d;
3167
3169
  }
3168
- function Tr(i, e) {
3170
+ function Rr(i, e) {
3169
3171
  let t = e[0];
3170
3172
  for (let n = 1; n < i; n++) t += e[n];
3171
3173
  return t;
3172
3174
  }
3173
- function Ve(i) {
3175
+ function Ye(i) {
3174
3176
  return new Float64Array(i);
3175
3177
  }
3176
- const Rr = (3 + 16 * he) * he, Ir = (2 + 12 * he) * he, Or = (9 + 64 * he) * he * he, Oe = Ve(4), fi = Ve(8), di = Ve(12), hi = Ve(16), K = Ve(4);
3177
- function Wr(i, e, t, n, r, o, l) {
3178
- let s, c, u, h, a, f, d, g, p, v, b, S, E, _, C, x, L, w;
3179
- const k = i - r, I = t - r, D = e - o, z = n - o;
3180
- _ = k * z, f = Y * k, d = f - (f - k), g = k - d, f = Y * z, p = f - (f - z), v = z - p, C = g * v - (_ - d * p - g * p - d * v), x = D * I, f = Y * D, d = f - (f - D), g = D - d, f = Y * I, p = f - (f - I), v = I - p, L = g * v - (x - d * p - g * p - d * v), b = C - L, a = C - b, Oe[0] = C - (b + a) + (a - L), S = _ + b, a = S - _, E = _ - (S - a) + (b - a), b = E - x, a = E - b, Oe[1] = E - (b + a) + (a - x), w = S + b, a = w - S, Oe[2] = S - (w - a) + (b - a), Oe[3] = w;
3181
- let O = Tr(4, Oe), M = Ir * l;
3182
- if (O >= M || -O >= M || (a = i - k, s = i - (k + a) + (a - r), a = t - I, u = t - (I + a) + (a - r), a = e - D, c = e - (D + a) + (a - o), a = n - z, h = n - (z + a) + (a - o), s === 0 && c === 0 && u === 0 && h === 0) || (M = Or * l + Pr * Math.abs(O), O += k * h + z * s - (D * u + I * c), O >= M || -O >= M)) return O;
3183
- _ = s * z, f = Y * s, d = f - (f - s), g = s - d, f = Y * z, p = f - (f - z), v = z - p, C = g * v - (_ - d * p - g * p - d * v), x = c * I, f = Y * c, d = f - (f - c), g = c - d, f = Y * I, p = f - (f - I), v = I - p, L = g * v - (x - d * p - g * p - d * v), b = C - L, a = C - b, K[0] = C - (b + a) + (a - L), S = _ + b, a = S - _, E = _ - (S - a) + (b - a), b = E - x, a = E - b, K[1] = E - (b + a) + (a - x), w = S + b, a = w - S, K[2] = S - (w - a) + (b - a), K[3] = w;
3184
- const G = xt(4, Oe, 4, K, fi);
3185
- _ = k * h, f = Y * k, d = f - (f - k), g = k - d, f = Y * h, p = f - (f - h), v = h - p, C = g * v - (_ - d * p - g * p - d * v), x = D * u, f = Y * D, d = f - (f - D), g = D - d, f = Y * u, p = f - (f - u), v = u - p, L = g * v - (x - d * p - g * p - d * v), b = C - L, a = C - b, K[0] = C - (b + a) + (a - L), S = _ + b, a = S - _, E = _ - (S - a) + (b - a), b = E - x, a = E - b, K[1] = E - (b + a) + (a - x), w = S + b, a = w - S, K[2] = S - (w - a) + (b - a), K[3] = w;
3186
- const $ = xt(G, fi, 4, K, di);
3187
- _ = s * h, f = Y * s, d = f - (f - s), g = s - d, f = Y * h, p = f - (f - h), v = h - p, C = g * v - (_ - d * p - g * p - d * v), x = c * u, f = Y * c, d = f - (f - c), g = c - d, f = Y * u, p = f - (f - u), v = u - p, L = g * v - (x - d * p - g * p - d * v), b = C - L, a = C - b, K[0] = C - (b + a) + (a - L), S = _ + b, a = S - _, E = _ - (S - a) + (b - a), b = E - x, a = E - b, K[1] = E - (b + a) + (a - x), w = S + b, a = w - S, K[2] = S - (w - a) + (b - a), K[3] = w;
3188
- const oe = xt($, di, 4, K, hi);
3189
- return hi[oe - 1];
3190
- }
3191
- function Ar(i, e, t, n, r, o) {
3178
+ const Ir = (3 + 16 * he) * he, Or = (2 + 12 * he) * he, Wr = (9 + 64 * he) * he * he, We = Ye(4), di = Ye(8), hi = Ye(12), gi = Ye(16), K = Ye(4);
3179
+ function Ar(i, e, t, n, r, o, l) {
3180
+ let s, c, u, h, a, f, d, m, p, v, b, S, E, _, C, x, L, w;
3181
+ const k = i - r, I = t - r, D = e - o, F = n - o;
3182
+ _ = k * F, f = Y * k, d = f - (f - k), m = k - d, f = Y * F, p = f - (f - F), v = F - p, C = m * v - (_ - d * p - m * p - d * v), x = D * I, f = Y * D, d = f - (f - D), m = D - d, f = Y * I, p = f - (f - I), v = I - p, L = m * v - (x - d * p - m * p - d * v), b = C - L, a = C - b, We[0] = C - (b + a) + (a - L), S = _ + b, a = S - _, E = _ - (S - a) + (b - a), b = E - x, a = E - b, We[1] = E - (b + a) + (a - x), w = S + b, a = w - S, We[2] = S - (w - a) + (b - a), We[3] = w;
3183
+ let O = Rr(4, We), M = Or * l;
3184
+ if (O >= M || -O >= M || (a = i - k, s = i - (k + a) + (a - r), a = t - I, u = t - (I + a) + (a - r), a = e - D, c = e - (D + a) + (a - o), a = n - F, h = n - (F + a) + (a - o), s === 0 && c === 0 && u === 0 && h === 0) || (M = Wr * l + Tr * Math.abs(O), O += k * h + F * s - (D * u + I * c), O >= M || -O >= M)) return O;
3185
+ _ = s * F, f = Y * s, d = f - (f - s), m = s - d, f = Y * F, p = f - (f - F), v = F - p, C = m * v - (_ - d * p - m * p - d * v), x = c * I, f = Y * c, d = f - (f - c), m = c - d, f = Y * I, p = f - (f - I), v = I - p, L = m * v - (x - d * p - m * p - d * v), b = C - L, a = C - b, K[0] = C - (b + a) + (a - L), S = _ + b, a = S - _, E = _ - (S - a) + (b - a), b = E - x, a = E - b, K[1] = E - (b + a) + (a - x), w = S + b, a = w - S, K[2] = S - (w - a) + (b - a), K[3] = w;
3186
+ const z = Mt(4, We, 4, K, di);
3187
+ _ = k * h, f = Y * k, d = f - (f - k), m = k - d, f = Y * h, p = f - (f - h), v = h - p, C = m * v - (_ - d * p - m * p - d * v), x = D * u, f = Y * D, d = f - (f - D), m = D - d, f = Y * u, p = f - (f - u), v = u - p, L = m * v - (x - d * p - m * p - d * v), b = C - L, a = C - b, K[0] = C - (b + a) + (a - L), S = _ + b, a = S - _, E = _ - (S - a) + (b - a), b = E - x, a = E - b, K[1] = E - (b + a) + (a - x), w = S + b, a = w - S, K[2] = S - (w - a) + (b - a), K[3] = w;
3188
+ const $ = Mt(z, di, 4, K, hi);
3189
+ _ = s * h, f = Y * s, d = f - (f - s), m = s - d, f = Y * h, p = f - (f - h), v = h - p, C = m * v - (_ - d * p - m * p - d * v), x = c * u, f = Y * c, d = f - (f - c), m = c - d, f = Y * u, p = f - (f - u), v = u - p, L = m * v - (x - d * p - m * p - d * v), b = C - L, a = C - b, K[0] = C - (b + a) + (a - L), S = _ + b, a = S - _, E = _ - (S - a) + (b - a), b = E - x, a = E - b, K[1] = E - (b + a) + (a - x), w = S + b, a = w - S, K[2] = S - (w - a) + (b - a), K[3] = w;
3190
+ const oe = Mt($, hi, 4, K, gi);
3191
+ return gi[oe - 1];
3192
+ }
3193
+ function Br(i, e, t, n, r, o) {
3192
3194
  const l = (e - o) * (t - r), s = (i - r) * (n - o), c = l - s, u = Math.abs(l + s);
3193
- return Math.abs(c) >= Rr * u ? c : -Wr(i, e, t, n, r, o, u);
3195
+ return Math.abs(c) >= Ir * u ? c : -Ar(i, e, t, n, r, o, u);
3194
3196
  }
3195
- const Fe = (i, e) => i.ll.x <= e.x && e.x <= i.ur.x && i.ll.y <= e.y && e.y <= i.ur.y, Ot = (i, e) => {
3197
+ const Fe = (i, e) => i.ll.x <= e.x && e.x <= i.ur.x && i.ll.y <= e.y && e.y <= i.ur.y, Wt = (i, e) => {
3196
3198
  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;
3197
3199
  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;
3198
3200
  return {
@@ -3208,18 +3210,18 @@ const Fe = (i, e) => i.ll.x <= e.x && e.x <= i.ur.x && i.ll.y <= e.y && e.y <= i
3208
3210
  };
3209
3211
  let be = Number.EPSILON;
3210
3212
  be === void 0 && (be = Math.pow(2, -52));
3211
- const Br = be * be, mi = (i, e) => {
3213
+ const Dr = be * be, mi = (i, e) => {
3212
3214
  if (-be < i && i < be && -be < e && e < be)
3213
3215
  return 0;
3214
3216
  const t = i - e;
3215
- return t * t < Br * i * e ? 0 : i < e ? -1 : 1;
3217
+ return t * t < Dr * i * e ? 0 : i < e ? -1 : 1;
3216
3218
  };
3217
- class Dr {
3219
+ class Ur {
3218
3220
  constructor() {
3219
3221
  this.reset();
3220
3222
  }
3221
3223
  reset() {
3222
- this.xRounder = new gi(), this.yRounder = new gi();
3224
+ this.xRounder = new yi(), this.yRounder = new yi();
3223
3225
  }
3224
3226
  round(e, t) {
3225
3227
  return {
@@ -3228,9 +3230,9 @@ class Dr {
3228
3230
  };
3229
3231
  }
3230
3232
  }
3231
- class gi {
3233
+ class yi {
3232
3234
  constructor() {
3233
- this.tree = new Ut(), this.round(0);
3235
+ this.tree = new Gt(), this.round(0);
3234
3236
  }
3235
3237
  // Note: this can rounds input values backwards or forwards.
3236
3238
  // You might ask, why not restrict this to just rounding
@@ -3247,10 +3249,10 @@ class gi {
3247
3249
  return r !== null && mi(t.key, r.key) === 0 ? (this.tree.remove(e), r.key) : e;
3248
3250
  }
3249
3251
  }
3250
- const He = new Dr(), lt = (i, e) => i.x * e.y - i.y * e.x, Di = (i, e) => i.x * e.x + i.y * e.y, yi = (i, e, t) => {
3251
- const n = Ar(i.x, i.y, e.x, e.y, t.x, t.y);
3252
+ const Ve = new Ur(), lt = (i, e) => i.x * e.y - i.y * e.x, Ui = (i, e) => i.x * e.x + i.y * e.y, pi = (i, e, t) => {
3253
+ const n = Br(i.x, i.y, e.x, e.y, t.x, t.y);
3252
3254
  return n > 0 ? -1 : n < 0 ? 1 : 0;
3253
- }, ut = (i) => Math.sqrt(Di(i, i)), Ur = (i, e, t) => {
3255
+ }, ut = (i) => Math.sqrt(Ui(i, i)), Gr = (i, e, t) => {
3254
3256
  const n = {
3255
3257
  x: e.x - i.x,
3256
3258
  y: e.y - i.y
@@ -3267,18 +3269,18 @@ const He = new Dr(), lt = (i, e) => i.x * e.y - i.y * e.x, Di = (i, e) => i.x *
3267
3269
  x: t.x - i.x,
3268
3270
  y: t.y - i.y
3269
3271
  };
3270
- return Di(r, n) / ut(r) / ut(n);
3271
- }, pi = (i, e, t) => e.y === 0 ? null : {
3272
+ return Ui(r, n) / ut(r) / ut(n);
3273
+ }, vi = (i, e, t) => e.y === 0 ? null : {
3272
3274
  x: i.x + e.x / e.y * (t - i.y),
3273
3275
  y: t
3274
- }, vi = (i, e, t) => e.x === 0 ? null : {
3276
+ }, bi = (i, e, t) => e.x === 0 ? null : {
3275
3277
  x: t,
3276
3278
  y: i.y + e.y / e.x * (t - i.x)
3277
3279
  }, zr = (i, e, t, n) => {
3278
- if (e.x === 0) return vi(t, n, i.x);
3279
- if (n.x === 0) return vi(i, e, t.x);
3280
- if (e.y === 0) return pi(t, n, i.y);
3281
- if (n.y === 0) return pi(i, e, t.y);
3280
+ if (e.x === 0) return bi(t, n, i.x);
3281
+ if (n.x === 0) return bi(i, e, t.x);
3282
+ if (e.y === 0) return vi(t, n, i.y);
3283
+ if (n.y === 0) return vi(i, e, t.y);
3282
3284
  const r = lt(e, n);
3283
3285
  if (r == 0) return null;
3284
3286
  const o = {
@@ -3349,7 +3351,7 @@ class ne {
3349
3351
  const t = /* @__PURE__ */ new Map(), n = (r) => {
3350
3352
  const o = r.otherSE;
3351
3353
  t.set(r, {
3352
- sine: Ur(this.point, e.point, o.point),
3354
+ sine: Gr(this.point, e.point, o.point),
3353
3355
  cosine: Fr(this.point, e.point, o.point)
3354
3356
  });
3355
3357
  };
@@ -3366,7 +3368,7 @@ class ne {
3366
3368
  };
3367
3369
  }
3368
3370
  }
3369
- let Gr = 0;
3371
+ let jr = 0;
3370
3372
  class we {
3371
3373
  /* This compare() function is for ordering segments in the sweep
3372
3374
  * line tree, and does so according to the following criteria:
@@ -3415,16 +3417,16 @@ class we {
3415
3417
  if (a > 0) return -1;
3416
3418
  }
3417
3419
  if (o !== l) {
3418
- const a = u - s, f = o - n, d = h - c, g = l - r;
3419
- if (a > f && d < g) return 1;
3420
- if (a < f && d > g) return -1;
3420
+ const a = u - s, f = o - n, d = h - c, m = l - r;
3421
+ if (a > f && d < m) return 1;
3422
+ if (a < f && d > m) return -1;
3421
3423
  }
3422
3424
  return o > l ? 1 : o < l || u < h ? -1 : u > h ? 1 : e.id < t.id ? -1 : e.id > t.id ? 1 : 0;
3423
3425
  }
3424
3426
  /* Warning: a reference to ringWindings input will be stored,
3425
3427
  * and possibly will be later modified */
3426
3428
  constructor(e, t, n, r) {
3427
- this.id = ++Gr, this.leftSE = e, e.segment = this, e.otherSE = t, this.rightSE = t, t.segment = this, t.otherSE = e, this.rings = n, this.windings = r;
3429
+ this.id = ++jr, this.leftSE = e, e.segment = this, e.otherSE = t, this.rightSE = t, t.segment = this, t.otherSE = e, this.rings = n, this.windings = r;
3428
3430
  }
3429
3431
  static fromRing(e, t, n) {
3430
3432
  let r, o, l;
@@ -3503,7 +3505,7 @@ class we {
3503
3505
  * Else, return null.
3504
3506
  */
3505
3507
  getIntersection(e) {
3506
- const t = this.bbox(), n = e.bbox(), r = Ot(t, n);
3508
+ const t = this.bbox(), n = e.bbox(), r = Wt(t, n);
3507
3509
  if (r === null) return null;
3508
3510
  const o = this.leftSE.point, l = this.rightSE.point, s = e.leftSE.point, c = e.rightSE.point, u = Fe(t, s) && this.comparePoint(s) === 0, h = Fe(n, o) && e.comparePoint(o) === 0, a = Fe(t, c) && this.comparePoint(c) === 0, f = Fe(n, l) && e.comparePoint(l) === 0;
3509
3511
  if (h && u)
@@ -3516,7 +3518,7 @@ class we {
3516
3518
  if (f) return l;
3517
3519
  if (a) return c;
3518
3520
  const d = zr(o, this.vector(), s, e.vector());
3519
- return d === null || !Fe(r, d) ? null : He.round(d.x, d.y);
3521
+ return d === null || !Fe(r, d) ? null : Ve.round(d.x, d.y);
3520
3522
  }
3521
3523
  /**
3522
3524
  * Split the given segment into multiple segments on the given points.
@@ -3646,13 +3648,13 @@ class we {
3646
3648
  return this._isInResult;
3647
3649
  }
3648
3650
  }
3649
- class bi {
3651
+ class wi {
3650
3652
  constructor(e, t, n) {
3651
3653
  if (!Array.isArray(e) || e.length === 0)
3652
3654
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
3653
3655
  if (this.poly = t, this.isExterior = n, this.segments = [], typeof e[0][0] != "number" || typeof e[0][1] != "number")
3654
3656
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
3655
- const r = He.round(e[0][0], e[0][1]);
3657
+ const r = Ve.round(e[0][0], e[0][1]);
3656
3658
  this.bbox = {
3657
3659
  ll: {
3658
3660
  x: r.x,
@@ -3667,7 +3669,7 @@ class bi {
3667
3669
  for (let l = 1, s = e.length; l < s; l++) {
3668
3670
  if (typeof e[l][0] != "number" || typeof e[l][1] != "number")
3669
3671
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
3670
- let c = He.round(e[l][0], e[l][1]);
3672
+ let c = Ve.round(e[l][0], e[l][1]);
3671
3673
  c.x === o.x && c.y === o.y || (this.segments.push(we.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);
3672
3674
  }
3673
3675
  (r.x !== o.x || r.y !== o.y) && this.segments.push(we.fromRing(o, r, this));
@@ -3681,11 +3683,11 @@ class bi {
3681
3683
  return e;
3682
3684
  }
3683
3685
  }
3684
- class jr {
3686
+ class Zr {
3685
3687
  constructor(e, t) {
3686
3688
  if (!Array.isArray(e))
3687
3689
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
3688
- this.exteriorRing = new bi(e[0], this, !0), this.bbox = {
3690
+ this.exteriorRing = new wi(e[0], this, !0), this.bbox = {
3689
3691
  ll: {
3690
3692
  x: this.exteriorRing.bbox.ll.x,
3691
3693
  y: this.exteriorRing.bbox.ll.y
@@ -3696,7 +3698,7 @@ class jr {
3696
3698
  }
3697
3699
  }, this.interiorRings = [];
3698
3700
  for (let n = 1, r = e.length; n < r; n++) {
3699
- const o = new bi(e[n], this, !1);
3701
+ const o = new wi(e[n], this, !1);
3700
3702
  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);
3701
3703
  }
3702
3704
  this.multiPoly = t;
@@ -3711,7 +3713,7 @@ class jr {
3711
3713
  return e;
3712
3714
  }
3713
3715
  }
3714
- class wi {
3716
+ class _i {
3715
3717
  constructor(e, t) {
3716
3718
  if (!Array.isArray(e))
3717
3719
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
@@ -3730,7 +3732,7 @@ class wi {
3730
3732
  }
3731
3733
  };
3732
3734
  for (let n = 0, r = e.length; n < r; n++) {
3733
- const o = new jr(e[n], this);
3735
+ const o = new Zr(e[n], this);
3734
3736
  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);
3735
3737
  }
3736
3738
  this.isSubject = t;
@@ -3781,8 +3783,8 @@ class at {
3781
3783
  index: u.length,
3782
3784
  point: s.point
3783
3785
  });
3784
- const g = s.getLeftmostComparator(l);
3785
- c = f.sort(g)[0].otherSE;
3786
+ const m = s.getLeftmostComparator(l);
3787
+ c = f.sort(m)[0].otherSE;
3786
3788
  break;
3787
3789
  }
3788
3790
  t.push(new at(u));
@@ -3800,11 +3802,11 @@ class at {
3800
3802
  const t = [e];
3801
3803
  for (let u = 1, h = this.events.length - 1; u < h; u++) {
3802
3804
  const a = this.events[u].point, f = this.events[u + 1].point;
3803
- yi(a, e, f) !== 0 && (t.push(a), e = a);
3805
+ pi(a, e, f) !== 0 && (t.push(a), e = a);
3804
3806
  }
3805
3807
  if (t.length === 1) return null;
3806
3808
  const n = t[0], r = t[1];
3807
- yi(n, e, r) === 0 && t.shift(), t.push(t[0]);
3809
+ pi(n, e, r) === 0 && t.shift(), t.push(t[0]);
3808
3810
  const o = this.isExteriorRing() ? 1 : -1, l = this.isExteriorRing() ? 0 : t.length - 1, s = this.isExteriorRing() ? t.length : -1, c = [];
3809
3811
  for (let u = l; u != s; u += o) c.push([t[u].x, t[u].y]);
3810
3812
  return c;
@@ -3836,7 +3838,7 @@ class at {
3836
3838
  }
3837
3839
  }
3838
3840
  }
3839
- class _i {
3841
+ class Ei {
3840
3842
  constructor(e) {
3841
3843
  this.exteriorRing = e, e.poly = this, this.interiorRings = [];
3842
3844
  }
@@ -3853,7 +3855,7 @@ class _i {
3853
3855
  return e;
3854
3856
  }
3855
3857
  }
3856
- class Zr {
3858
+ class qr {
3857
3859
  constructor(e) {
3858
3860
  this.rings = e, this.polys = this._composePolys(e);
3859
3861
  }
@@ -3870,19 +3872,19 @@ class Zr {
3870
3872
  for (let n = 0, r = e.length; n < r; n++) {
3871
3873
  const o = e[n];
3872
3874
  if (!o.poly)
3873
- if (o.isExteriorRing()) t.push(new _i(o));
3875
+ if (o.isExteriorRing()) t.push(new Ei(o));
3874
3876
  else {
3875
3877
  const l = o.enclosingRing();
3876
- l.poly || t.push(new _i(l)), l.poly.addInterior(o);
3878
+ l.poly || t.push(new Ei(l)), l.poly.addInterior(o);
3877
3879
  }
3878
3880
  }
3879
3881
  return t;
3880
3882
  }
3881
3883
  }
3882
- class qr {
3884
+ class Qr {
3883
3885
  constructor(e) {
3884
3886
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : we.compare;
3885
- this.queue = e, this.tree = new Ut(t), this.segments = [];
3887
+ this.queue = e, this.tree = new Gt(t), this.segments = [];
3886
3888
  }
3887
3889
  process(e) {
3888
3890
  const t = e.segment, n = [];
@@ -3901,7 +3903,7 @@ class qr {
3901
3903
  const a = s.getIntersection(t);
3902
3904
  if (a !== null && (t.isAnEndpoint(a) || (u = a), !s.isAnEndpoint(a))) {
3903
3905
  const f = this._splitSafely(s, a);
3904
- for (let d = 0, g = f.length; d < g; d++)
3906
+ for (let d = 0, m = f.length; d < m; d++)
3905
3907
  n.push(f[d]);
3906
3908
  }
3907
3909
  }
@@ -3910,7 +3912,7 @@ class qr {
3910
3912
  const a = c.getIntersection(t);
3911
3913
  if (a !== null && (t.isAnEndpoint(a) || (h = a), !c.isAnEndpoint(a))) {
3912
3914
  const f = this._splitSafely(c, a);
3913
- for (let d = 0, g = f.length; d < g; d++)
3915
+ for (let d = 0, m = f.length; d < m; d++)
3914
3916
  n.push(f[d]);
3915
3917
  }
3916
3918
  }
@@ -3918,7 +3920,7 @@ class qr {
3918
3920
  let a = null;
3919
3921
  u === null ? a = h : h === null ? a = u : a = ne.comparePoints(u, h) <= 0 ? u : h, this.queue.remove(t.rightSE), n.push(t.rightSE);
3920
3922
  const f = t.split(a);
3921
- for (let d = 0, g = f.length; d < g; d++)
3923
+ for (let d = 0, m = f.length; d < m; d++)
3922
3924
  n.push(f[d]);
3923
3925
  }
3924
3926
  n.length > 0 ? (this.tree.remove(t), n.push(e)) : (this.segments.push(t), t.prev = s);
@@ -3952,33 +3954,33 @@ class qr {
3952
3954
  return r.push(n), e.consumedBy === void 0 && this.tree.add(e), r;
3953
3955
  }
3954
3956
  }
3955
- const Ei = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, Qr = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6;
3956
- class Hr {
3957
+ const Li = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, Hr = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6;
3958
+ class Vr {
3957
3959
  run(e, t, n) {
3958
- le.type = e, He.reset();
3959
- const r = [new wi(t, !0)];
3960
+ le.type = e, Ve.reset();
3961
+ const r = [new _i(t, !0)];
3960
3962
  for (let a = 0, f = n.length; a < f; a++)
3961
- r.push(new wi(n[a], !1));
3963
+ r.push(new _i(n[a], !1));
3962
3964
  if (le.numMultiPolys = r.length, le.type === "difference") {
3963
3965
  const a = r[0];
3964
3966
  let f = 1;
3965
3967
  for (; f < r.length; )
3966
- Ot(r[f].bbox, a.bbox) !== null ? f++ : r.splice(f, 1);
3968
+ Wt(r[f].bbox, a.bbox) !== null ? f++ : r.splice(f, 1);
3967
3969
  }
3968
3970
  if (le.type === "intersection")
3969
3971
  for (let a = 0, f = r.length; a < f; a++) {
3970
3972
  const d = r[a];
3971
- for (let g = a + 1, p = r.length; g < p; g++)
3972
- if (Ot(d.bbox, r[g].bbox) === null) return [];
3973
+ for (let m = a + 1, p = r.length; m < p; m++)
3974
+ if (Wt(d.bbox, r[m].bbox) === null) return [];
3973
3975
  }
3974
- const o = new Ut(ne.compare);
3976
+ const o = new Gt(ne.compare);
3975
3977
  for (let a = 0, f = r.length; a < f; a++) {
3976
3978
  const d = r[a].getSweepEvents();
3977
- for (let g = 0, p = d.length; g < p; g++)
3978
- if (o.insert(d[g]), o.size > Ei)
3979
+ for (let m = 0, p = d.length; m < p; m++)
3980
+ if (o.insert(d[m]), o.size > Li)
3979
3981
  throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big).");
3980
3982
  }
3981
- const l = new qr(o);
3983
+ const l = new Qr(o);
3982
3984
  let s = o.size, c = o.pop();
3983
3985
  for (; c; ) {
3984
3986
  const a = c.key;
@@ -3986,78 +3988,78 @@ class Hr {
3986
3988
  const d = a.segment;
3987
3989
  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.`);
3988
3990
  }
3989
- if (o.size > Ei)
3991
+ if (o.size > Li)
3990
3992
  throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big).");
3991
- if (l.segments.length > Qr)
3993
+ if (l.segments.length > Hr)
3992
3994
  throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments).");
3993
3995
  const f = l.process(a);
3994
- for (let d = 0, g = f.length; d < g; d++) {
3996
+ for (let d = 0, m = f.length; d < m; d++) {
3995
3997
  const p = f[d];
3996
3998
  p.consumedBy === void 0 && o.insert(p);
3997
3999
  }
3998
4000
  s = o.size, c = o.pop();
3999
4001
  }
4000
- He.reset();
4002
+ Ve.reset();
4001
4003
  const u = at.factory(l.segments);
4002
- return new Zr(u).getGeom();
4004
+ return new qr(u).getGeom();
4003
4005
  }
4004
4006
  }
4005
- const le = new Hr(), Vr = function(i) {
4007
+ const le = new Vr(), Yr = function(i) {
4006
4008
  for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
4007
4009
  t[n - 1] = arguments[n];
4008
4010
  return le.run("union", i, t);
4009
- }, Yr = function(i) {
4011
+ }, Xr = function(i) {
4010
4012
  for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
4011
4013
  t[n - 1] = arguments[n];
4012
4014
  return le.run("intersection", i, t);
4013
- }, Xr = function(i) {
4015
+ }, Kr = function(i) {
4014
4016
  for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
4015
4017
  t[n - 1] = arguments[n];
4016
4018
  return le.run("xor", i, t);
4017
- }, Kr = function(i) {
4019
+ }, Jr = function(i) {
4018
4020
  for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
4019
4021
  t[n - 1] = arguments[n];
4020
4022
  return le.run("difference", i, t);
4021
4023
  };
4022
- var Ui = {
4023
- union: Vr,
4024
- intersection: Yr,
4025
- xor: Xr,
4026
- difference: Kr
4024
+ var Gi = {
4025
+ union: Yr,
4026
+ intersection: Xr,
4027
+ xor: Kr,
4028
+ difference: Jr
4027
4029
  };
4028
- function Jr(i, e = {}) {
4030
+ function $r(i, e = {}) {
4029
4031
  const t = [];
4030
- if (Bt(i, (r) => {
4032
+ if (Dt(i, (r) => {
4031
4033
  t.push(r.coordinates);
4032
4034
  }), t.length < 2)
4033
4035
  throw new Error("Must have at least 2 geometries");
4034
- const n = Ui.union(t[0], ...t.slice(1));
4035
- return n.length === 0 ? null : n.length === 1 ? At(n[0], e.properties) : Ii(n, e.properties);
4036
+ const n = Gi.union(t[0], ...t.slice(1));
4037
+ return n.length === 0 ? null : n.length === 1 ? Bt(n[0], e.properties) : Oi(n, e.properties);
4036
4038
  }
4037
- var Fi = Jr;
4038
- function $r(i) {
4039
+ var Fi = $r;
4040
+ function eo(i) {
4039
4041
  const e = [];
4040
- if (Bt(i, (r) => {
4042
+ if (Dt(i, (r) => {
4041
4043
  e.push(r.coordinates);
4042
4044
  }), e.length < 2)
4043
4045
  throw new Error("Must have at least two features");
4044
- const t = i.features[0].properties || {}, n = Ui.difference(e[0], ...e.slice(1));
4045
- return n.length === 0 ? null : n.length === 1 ? At(n[0], t) : Ii(n, t);
4046
+ const t = i.features[0].properties || {}, n = Gi.difference(e[0], ...e.slice(1));
4047
+ return n.length === 0 ? null : n.length === 1 ? Bt(n[0], t) : Oi(n, t);
4046
4048
  }
4047
- var eo = $r;
4048
- function to(i) {
4049
+ var to = eo;
4050
+ function io(i) {
4049
4051
  if (!i)
4050
4052
  throw new Error("geojson is required");
4051
4053
  var e = [];
4052
- return br(i, function(t) {
4054
+ return wr(i, function(t) {
4053
4055
  e.push(t);
4054
- }), Qe(e);
4056
+ }), He(e);
4055
4057
  }
4056
- var io = to;
4057
- function Li(i, e) {
4058
- const t = eo(
4059
- Qe([
4060
- At([
4058
+ var no = io;
4059
+ function Si(i, e) {
4060
+ const t = to(
4061
+ He([
4062
+ Bt([
4061
4063
  [
4062
4064
  [180, 90],
4063
4065
  [-180, 90],
@@ -4072,10 +4074,10 @@ function Li(i, e) {
4072
4074
  if (!t)
4073
4075
  return;
4074
4076
  t.properties = { isMask: !0 };
4075
- const n = Ze(Nt(i)), r = (n[2] - n[0]) / 360 / 1e3, o = n[0] < -180, l = n[2] > 180, s = io(i);
4077
+ const n = qe(Pt(i)), r = (n[2] - n[0]) / 360 / 1e3, o = n[0] < -180, l = n[2] > 180, s = no(i);
4076
4078
  if (s.features.length > 1 && (o || l))
4077
4079
  for (const c of s.features) {
4078
- const u = Ze(Nt(c));
4080
+ const u = qe(Pt(c));
4079
4081
  if (l && u[0] < -180 + r)
4080
4082
  for (const h of c.geometry.coordinates)
4081
4083
  for (const a of h)
@@ -4086,13 +4088,13 @@ function Li(i, e) {
4086
4088
  a[0] -= 360 - r;
4087
4089
  }
4088
4090
  e(
4089
- Qe([
4091
+ He([
4090
4092
  s.features.length < 2 ? i : Fi(s) ?? i,
4091
4093
  t
4092
4094
  ])
4093
4095
  );
4094
4096
  }
4095
- function no(i, e = !0, t = !0, n = {}, r = {}, o = (l) => {
4097
+ function ro(i, e = !0, t = !0, n = {}, r = {}, o = (l) => {
4096
4098
  var u, h, a;
4097
4099
  const s = (u = l == null ? void 0 : l.geometry) == null ? void 0 : u.type, c = (h = l == null ? void 0 : l.properties) != null && h.isMask ? 0 : s === "LineString" || s === "MultiLineString" ? 3 : 2;
4098
4100
  return {
@@ -4116,10 +4118,10 @@ function no(i, e = !0, t = !0, n = {}, r = {}, o = (l) => {
4116
4118
  coordinates: [d.latlng.lng, d.latlng.lat]
4117
4119
  });
4118
4120
  };
4119
- function f(d, g = !1) {
4121
+ function f(d, m = !1) {
4120
4122
  const p = document.createElement("div");
4121
- return new Vn({ props: { displayIn: "leaflet" }, target: p }), new de.Marker(d, {
4122
- interactive: g,
4123
+ return new Yn({ props: { displayIn: "leaflet" }, target: p }), new de.Marker(d, {
4124
+ interactive: m,
4123
4125
  icon: new de.DivIcon({
4124
4126
  html: p,
4125
4127
  className: "",
@@ -4133,17 +4135,17 @@ function no(i, e = !0, t = !0, n = {}, r = {}, o = (l) => {
4133
4135
  setEventHandler(d) {
4134
4136
  d ? (l = d, i.on("click", a)) : (l = void 0, i.off("click", a));
4135
4137
  },
4136
- flyTo(d, g) {
4137
- i.flyTo([d[1], d[0]], g, { duration: 2, ...n });
4138
+ flyTo(d, m) {
4139
+ i.flyTo([d[1], d[0]], m, { duration: 2, ...n });
4138
4140
  },
4139
- fitBounds(d, g, p) {
4141
+ fitBounds(d, m, p) {
4140
4142
  i.flyToBounds(
4141
4143
  [
4142
4144
  [d[1], d[0]],
4143
4145
  [d[3], d[2]]
4144
4146
  ],
4145
4147
  {
4146
- padding: [g, g],
4148
+ padding: [m, m],
4147
4149
  duration: 2,
4148
4150
  ...p ? { maxZoom: p } : {},
4149
4151
  ...r
@@ -4157,10 +4159,10 @@ function no(i, e = !0, t = !0, n = {}, r = {}, o = (l) => {
4157
4159
  var p;
4158
4160
  if (!e)
4159
4161
  return;
4160
- const g = d && [d[1], d[0]];
4161
- u ? g ? u.setLatLng(g) : (u.remove(), u = void 0) : g && (u = (typeof e == "object" ? new de.Marker(g, e) : f(g)).addTo(i), (p = u.getElement()) == null || p.classList.add("marker-reverse"));
4162
+ const m = d && [d[1], d[0]];
4163
+ u ? m ? u.setLatLng(m) : (u.remove(), u = void 0) : m && (u = (typeof e == "object" ? new de.Marker(m, e) : f(m)).addTo(i), (p = u.getElement()) == null || p.classList.add("marker-reverse"));
4162
4164
  },
4163
- setMarkers(d, g) {
4165
+ setMarkers(d, m) {
4164
4166
  if (!e)
4165
4167
  return;
4166
4168
  function p(v) {
@@ -4168,56 +4170,56 @@ function no(i, e = !0, t = !0, n = {}, r = {}, o = (l) => {
4168
4170
  }
4169
4171
  for (const v of s)
4170
4172
  v.remove();
4171
- if (s.length = 0, p(), g) {
4173
+ if (s.length = 0, p(), m) {
4172
4174
  let v = !1;
4173
- if (g.geometry.type === "GeometryCollection") {
4174
- const S = g.geometry.geometries.filter(
4175
+ if (m.geometry.type === "GeometryCollection") {
4176
+ const S = m.geometry.geometries.filter(
4175
4177
  (E) => E.type === "Polygon" || E.type === "MultiPolygon"
4176
4178
  );
4177
4179
  e: if (S.length > 0) {
4178
4180
  const E = Fi(
4179
- Qe(S.map((_) => qe(_)))
4181
+ He(S.map((_) => Qe(_)))
4180
4182
  );
4181
4183
  if (!E)
4182
4184
  break e;
4183
- Li(
4185
+ Si(
4184
4186
  {
4185
- ...g,
4187
+ ...m,
4186
4188
  geometry: E.geometry
4187
4189
  },
4188
4190
  p
4189
4191
  ), v = !0;
4190
4192
  } else {
4191
- const E = g.geometry.geometries.filter(
4193
+ const E = m.geometry.geometries.filter(
4192
4194
  (_) => _.type === "LineString" || _.type === "MultiLineString"
4193
4195
  );
4194
4196
  E.length > 0 && (p({
4195
- ...g,
4197
+ ...m,
4196
4198
  geometry: { type: "GeometryCollection", geometries: E }
4197
4199
  }), v = !0);
4198
4200
  }
4199
4201
  }
4200
4202
  if (!v) {
4201
- if (g.geometry.type === "Polygon" || g.geometry.type === "MultiPolygon")
4202
- Li(g, (S) => {
4203
+ if (m.geometry.type === "Polygon" || m.geometry.type === "MultiPolygon")
4204
+ Si(m, (S) => {
4203
4205
  if (!S)
4204
4206
  return;
4205
- const E = [...S.features], _ = Ze(Nt(g)), C = _[2] - _[0];
4206
- _[0] - C / 4 < -180 && E.push(...Si(S, -360).features), _[2] + C / 4 > 180 && E.push(...Si(S, 360).features), p(Qe(E));
4207
+ const E = [...S.features], _ = qe(Pt(m)), C = _[2] - _[0];
4208
+ _[0] - C / 4 < -180 && E.push(...xi(S, -360).features), _[2] + C / 4 > 180 && E.push(...xi(S, 360).features), p(He(E));
4207
4209
  });
4208
- else if (g.geometry.type === "LineString" || g.geometry.type === "MultiLineString") {
4209
- p(g);
4210
+ else if (m.geometry.type === "LineString" || m.geometry.type === "MultiLineString") {
4211
+ p(m);
4210
4212
  return;
4211
4213
  }
4212
4214
  }
4213
- const b = [g.center[1], g.center[0]];
4215
+ const b = [m.center[1], m.center[0]];
4214
4216
  s.push(
4215
4217
  (typeof e == "object" ? new de.Marker(b, e) : f(b)).addTo(i)
4216
4218
  );
4217
4219
  }
4218
4220
  if (t)
4219
4221
  for (const v of d ?? []) {
4220
- if (v === g)
4222
+ if (v === m)
4221
4223
  continue;
4222
4224
  const b = [
4223
4225
  v.center[1],
@@ -4240,8 +4242,8 @@ function no(i, e = !0, t = !0, n = {}, r = {}, o = (l) => {
4240
4242
  }
4241
4243
  },
4242
4244
  setSelectedMarker(d) {
4243
- var g, p;
4244
- c && ((g = c.getElement()) == null || g.classList.toggle("marker-selected", !1)), c = d > -1 ? s[d] : void 0, (p = c == null ? void 0 : c.getElement()) == null || p.classList.toggle("marker-selected", !0);
4245
+ var m, p;
4246
+ c && ((m = c.getElement()) == null || m.classList.toggle("marker-selected", !1)), c = d > -1 ? s[d] : void 0, (p = c == null ? void 0 : c.getElement()) == null || p.classList.toggle("marker-selected", !0);
4245
4247
  },
4246
4248
  getCenterAndZoom() {
4247
4249
  const d = i.getCenter();
@@ -4249,28 +4251,28 @@ function no(i, e = !0, t = !0, n = {}, r = {}, o = (l) => {
4249
4251
  }
4250
4252
  };
4251
4253
  }
4252
- function Si(i, e) {
4253
- const t = Lr(i);
4254
+ function xi(i, e) {
4255
+ const t = Sr(i);
4254
4256
  for (const n of t.features)
4255
4257
  if (n.geometry.type == "MultiPolygon")
4256
4258
  for (const r of n.geometry.coordinates)
4257
- xi(r, e);
4259
+ Mi(r, e);
4258
4260
  else
4259
- xi(n.geometry.coordinates, e);
4261
+ Mi(n.geometry.coordinates, e);
4260
4262
  return t;
4261
4263
  }
4262
- function xi(i, e) {
4264
+ function Mi(i, e) {
4263
4265
  for (const t of i)
4264
4266
  for (const n of t)
4265
4267
  n[0] += e;
4266
4268
  }
4267
- var ie, Ne;
4268
- class ro extends de.Control {
4269
+ var ie, Pe;
4270
+ class oo extends de.Control {
4269
4271
  constructor(t) {
4270
4272
  super();
4271
- Et(this, ie);
4272
- Et(this, Ne);
4273
- it(this, Ne, t);
4273
+ Lt(this, ie);
4274
+ Lt(this, Pe);
4275
+ it(this, Pe, t);
4274
4276
  }
4275
4277
  onAdd(t) {
4276
4278
  const n = document.createElement("div");
@@ -4281,7 +4283,7 @@ class ro extends de.Control {
4281
4283
  flyTo: l,
4282
4284
  fullGeometryStyle: s,
4283
4285
  ...c
4284
- } = se(this, Ne), u = typeof l == "boolean" ? {} : l, h = no(
4286
+ } = se(this, Pe), u = typeof l == "boolean" ? {} : l, h = ro(
4285
4287
  t,
4286
4288
  r,
4287
4289
  o,
@@ -4289,7 +4291,7 @@ class ro extends de.Control {
4289
4291
  u,
4290
4292
  s
4291
4293
  );
4292
- it(this, ie, new vr({
4294
+ it(this, ie, new br({
4293
4295
  target: n,
4294
4296
  props: {
4295
4297
  mapController: h,
@@ -4315,14 +4317,14 @@ class ro extends de.Control {
4315
4317
  }
4316
4318
  setOptions(t) {
4317
4319
  var c;
4318
- it(this, Ne, t);
4320
+ it(this, Pe, t);
4319
4321
  const {
4320
4322
  marker: n,
4321
4323
  showResultMarkers: r,
4322
4324
  flyTo: o,
4323
4325
  fullGeometryStyle: l,
4324
4326
  ...s
4325
- } = se(this, Ne);
4327
+ } = se(this, Pe);
4326
4328
  (c = se(this, ie)) == null || c.$set(s);
4327
4329
  }
4328
4330
  setQuery(t, n = !0) {
@@ -4350,13 +4352,13 @@ class ro extends de.Control {
4350
4352
  (t = se(this, ie)) == null || t.$destroy();
4351
4353
  }
4352
4354
  }
4353
- ie = new WeakMap(), Ne = new WeakMap();
4354
- function oo(...i) {
4355
- return new ro(...i);
4355
+ ie = new WeakMap(), Pe = new WeakMap();
4356
+ function so(...i) {
4357
+ return new oo(...i);
4356
4358
  }
4357
- window.L && typeof window.L == "object" && typeof window.L.control == "function" && (window.L.control.maptilerGeocoding = oo);
4359
+ window.L && typeof window.L == "object" && typeof window.L.control == "function" && (window.L.control.maptilerGeocoding = so);
4358
4360
  export {
4359
- ro as GeocodingControl,
4360
- no as createLeafletMapController
4361
+ oo as GeocodingControl,
4362
+ ro as createLeafletMapController
4361
4363
  };
4362
4364
  //# sourceMappingURL=leaflet.js.map