@maptiler/geocoding-control 0.0.83 → 0.0.85

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/maplibregl.js CHANGED
@@ -7,8 +7,8 @@ var _n = (r, t, e) => (Zs(r, t, "read from private field"), e ? e.call(r) : t.ge
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  t instanceof WeakSet ? t.add(r) : t.set(r, e);
9
9
  }, Co = (r, t, e, n) => (Zs(r, t, "write to private field"), n ? n.call(r, e) : t.set(r, e), e);
10
- import * as ol from "maplibre-gl";
11
- import * as sl from "@maptiler/sdk";
10
+ import * as ol from "@maptiler/sdk";
11
+ import * as sl from "maplibre-gl";
12
12
  function Zt() {
13
13
  }
14
14
  function al(r, t) {
@@ -22,7 +22,7 @@ function Ha(r) {
22
22
  function $s() {
23
23
  return /* @__PURE__ */ Object.create(null);
24
24
  }
25
- function Tr(r) {
25
+ function Mr(r) {
26
26
  r.forEach(Ha);
27
27
  }
28
28
  function Wa(r) {
@@ -92,7 +92,7 @@ function gl(r, t) {
92
92
  function oe(r) {
93
93
  return document.createElement(r);
94
94
  }
95
- function Cr(r) {
95
+ function Nr(r) {
96
96
  return document.createElementNS("http://www.w3.org/2000/svg", r);
97
97
  }
98
98
  function Vr(r) {
@@ -116,7 +116,7 @@ function dl(r) {
116
116
  return Array.from(r.childNodes);
117
117
  }
118
118
  function Hi(r, t) {
119
- t = "" + t, r.wholeText !== t && (r.data = t);
119
+ t = "" + t, r.data !== t && (r.data = t);
120
120
  }
121
121
  function ea(r, t) {
122
122
  r.value = t ?? "";
@@ -192,7 +192,7 @@ function Qa() {
192
192
  }
193
193
  function Il(r) {
194
194
  if (r.fragment !== null) {
195
- r.update(), Tr(r.before_update);
195
+ r.update(), Mr(r.before_update);
196
196
  const t = r.dirty;
197
197
  r.dirty = [-1], r.fragment && r.fragment.p(r.ctx, t), r.after_update.forEach(ys);
198
198
  }
@@ -212,7 +212,7 @@ function ra() {
212
212
  };
213
213
  }
214
214
  function ia() {
215
- zr.r || Tr(zr.c), zr = zr.p;
215
+ zr.r || Mr(zr.c), zr = zr.p;
216
216
  }
217
217
  function Je(r, t) {
218
218
  r && r.i && (bo.delete(r), r.i(t));
@@ -234,14 +234,14 @@ function ji(r, t, e, n) {
234
234
  const { fragment: i, after_update: o } = r.$$;
235
235
  i && i.m(t, e), n || ys(() => {
236
236
  const s = r.$$.on_mount.map(Ha).filter(Wa);
237
- r.$$.on_destroy ? r.$$.on_destroy.push(...s) : Tr(s), r.$$.on_mount = [];
237
+ r.$$.on_destroy ? r.$$.on_destroy.push(...s) : Mr(s), r.$$.on_mount = [];
238
238
  }), o.forEach(ys);
239
239
  }
240
240
  function Ki(r, t) {
241
241
  const e = r.$$;
242
- e.fragment !== null && (Cl(e.after_update), Tr(e.on_destroy), e.fragment && e.fragment.d(t), e.on_destroy = e.fragment = null, e.ctx = []);
242
+ e.fragment !== null && (Cl(e.after_update), Mr(e.on_destroy), e.fragment && e.fragment.d(t), e.on_destroy = e.fragment = null, e.ctx = []);
243
243
  }
244
- function xl(r, t) {
244
+ function Nl(r, t) {
245
245
  r.$$.dirty[0] === -1 && (ai.push(r), El(), r.$$.dirty.fill(0)), r.$$.dirty[t / 31 | 0] |= 1 << t % 31;
246
246
  }
247
247
  function Ti(r, t, e, n, i, o, s, a = [-1]) {
@@ -272,8 +272,8 @@ function Ti(r, t, e, n, i, o, s, a = [-1]) {
272
272
  let c = !1;
273
273
  if (l.ctx = e ? e(r, t.props || {}, (f, h, ...g) => {
274
274
  const p = g.length ? g[0] : h;
275
- return l.ctx && i(l.ctx[f], l.ctx[f] = p) && (!l.skip_bound && l.bound[f] && l.bound[f](p), c && xl(r, f)), h;
276
- }) : [], l.update(), c = !0, Tr(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
275
+ return l.ctx && i(l.ctx[f], l.ctx[f] = p) && (!l.skip_bound && l.bound[f] && l.bound[f](p), c && Nl(r, f)), h;
276
+ }) : [], l.update(), c = !0, Mr(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
277
277
  if (t.hydrate) {
278
278
  const f = dl(t.target);
279
279
  l.fragment && l.fragment.l(f), f.forEach(Te);
@@ -300,11 +300,11 @@ class Mi {
300
300
  this.$$set && !ul(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
301
301
  }
302
302
  }
303
- function Nl(r) {
303
+ function xl(r) {
304
304
  let t, e;
305
305
  return {
306
306
  c() {
307
- t = Cr("svg"), e = Cr("path"), B(e, "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"), B(t, "viewBox", "0 0 60.006 21.412"), B(t, "width", "14"), B(t, "height", "20"), B(t, "class", "svelte-en2qvf");
307
+ t = Nr("svg"), e = Nr("path"), B(e, "d", "M3.8 2.5c-.6 0-1.3.7-1.3 1.3 0 .3.2.7.5.8L7.2 9 3 13.2c-.3.3-.5.7-.5 1 0 .6.7 1.3 1.3 1.3.3 0 .7-.2 1-.5L9 10.8l4.2 4.2c.2.3.7.3 1 .3.6 0 1.3-.7 1.3-1.3 0-.3-.2-.7-.3-1l-4.4-4L15 4.6c.3-.2.5-.5.5-.8 0-.7-.7-1.3-1.3-1.3-.3 0-.7.2-1 .3L9 7.1 4.8 2.8c-.3-.1-.7-.3-1-.3z"), B(t, "viewBox", "0 0 18 18"), B(t, "width", "16"), B(t, "height", "16"), B(t, "class", "svelte-en2qvf");
308
308
  },
309
309
  m(n, i) {
310
310
  We(n, t, i), ct(t, e);
@@ -319,23 +319,23 @@ function Nl(r) {
319
319
  }
320
320
  class Sl extends Mi {
321
321
  constructor(t) {
322
- super(), Ti(this, t, null, Nl, Di, {});
322
+ super(), Ti(this, t, null, xl, Di, {});
323
323
  }
324
324
  }
325
325
  function wl(r) {
326
- let t, e;
326
+ let t;
327
327
  return {
328
328
  c() {
329
- t = Cr("svg"), e = Cr("path"), B(e, "d", "M3.8 2.5c-.6 0-1.3.7-1.3 1.3 0 .3.2.7.5.8L7.2 9 3 13.2c-.3.3-.5.7-.5 1 0 .6.7 1.3 1.3 1.3.3 0 .7-.2 1-.5L9 10.8l4.2 4.2c.2.3.7.3 1 .3.6 0 1.3-.7 1.3-1.3 0-.3-.2-.7-.3-1l-4.4-4L15 4.6c.3-.2.5-.5.5-.8 0-.7-.7-1.3-1.3-1.3-.3 0-.7.2-1 .3L9 7.1 4.8 2.8c-.3-.1-.7-.3-1-.3z"), B(t, "viewBox", "0 0 18 18"), B(t, "width", "16"), B(t, "height", "16"), B(t, "class", "svelte-en2qvf");
329
+ t = oe("div"), t.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>', B(t, "class", "svelte-7cmwmc");
330
330
  },
331
- m(n, i) {
332
- We(n, t, i), ct(t, e);
331
+ m(e, n) {
332
+ We(e, t, n);
333
333
  },
334
334
  p: Zt,
335
335
  i: Zt,
336
336
  o: Zt,
337
- d(n) {
338
- n && Te(t);
337
+ d(e) {
338
+ e && Te(t);
339
339
  }
340
340
  };
341
341
  }
@@ -345,19 +345,19 @@ class Ll extends Mi {
345
345
  }
346
346
  }
347
347
  function bl(r) {
348
- let t;
348
+ let t, e;
349
349
  return {
350
350
  c() {
351
- t = oe("div"), t.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>', B(t, "class", "svelte-7cmwmc");
351
+ t = Nr("svg"), e = Nr("path"), B(e, "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"), B(t, "viewBox", "0 0 60.006 21.412"), B(t, "width", "14"), B(t, "height", "20"), B(t, "class", "svelte-en2qvf");
352
352
  },
353
- m(e, n) {
354
- We(e, t, n);
353
+ m(n, i) {
354
+ We(n, t, i), ct(t, e);
355
355
  },
356
356
  p: Zt,
357
357
  i: Zt,
358
358
  o: Zt,
359
- d(e) {
360
- e && Te(t);
359
+ d(n) {
360
+ n && Te(t);
361
361
  }
362
362
  };
363
363
  }
@@ -367,65 +367,10 @@ class Pl extends Mi {
367
367
  }
368
368
  }
369
369
  function Rl(r) {
370
- let t, e, n;
371
- return {
372
- c() {
373
- t = Cr("svg"), e = Cr("path"), B(e, "stroke-width", "4"), B(e, "fill-rule", "evenodd"), B(e, "clip-rule", "evenodd"), B(e, "d", "M 5,33.103579 C 5,17.607779 18.457,5 35,5 C 51.543,5 65,17.607779 65,33.103579 C 65,56.388679 40.4668,76.048179 36.6112,79.137779 C 36.3714,79.329879 36.2116,79.457979 36.1427,79.518879 C 35.8203,79.800879 35.4102,79.942779 35,79.942779 C 34.5899,79.942779 34.1797,79.800879 33.8575,79.518879 C 33.7886,79.457979 33.6289,79.330079 33.3893,79.138079 C 29.5346,76.049279 5,56.389379 5,33.103579 Z M 35.0001,49.386379 C 43.1917,49.386379 49.8323,42.646079 49.8323,34.331379 C 49.8323,26.016779 43.1917,19.276479 35.0001,19.276479 C 26.8085,19.276479 20.1679,26.016779 20.1679,34.331379 C 20.1679,42.646079 26.8085,49.386379 35.0001,49.386379 Z"), B(e, "class", "svelte-1k1cmht"), B(t, "width", n = /*displayIn*/
374
- r[0] !== "list" ? void 0 : "20"), B(t, "viewBox", "0 0 70 85"), B(t, "fill", "none"), B(t, "class", "svelte-1k1cmht"), en(
375
- t,
376
- "in-map",
377
- /*displayIn*/
378
- r[0] !== "list"
379
- ), en(
380
- t,
381
- "list-icon",
382
- /*displayIn*/
383
- r[0] === "list"
384
- );
385
- },
386
- m(i, o) {
387
- We(i, t, o), ct(t, e);
388
- },
389
- p(i, [o]) {
390
- o & /*displayIn*/
391
- 1 && n !== (n = /*displayIn*/
392
- i[0] !== "list" ? void 0 : "20") && B(t, "width", n), o & /*displayIn*/
393
- 1 && en(
394
- t,
395
- "in-map",
396
- /*displayIn*/
397
- i[0] !== "list"
398
- ), o & /*displayIn*/
399
- 1 && en(
400
- t,
401
- "list-icon",
402
- /*displayIn*/
403
- i[0] === "list"
404
- );
405
- },
406
- i: Zt,
407
- o: Zt,
408
- d(i) {
409
- i && Te(t);
410
- }
411
- };
412
- }
413
- function Ol(r, t, e) {
414
- let { displayIn: n } = t;
415
- return r.$$set = (i) => {
416
- "displayIn" in i && e(0, n = i.displayIn);
417
- }, [n];
418
- }
419
- class Dl extends Mi {
420
- constructor(t) {
421
- super(), Ti(this, t, Ol, Rl, Di, { displayIn: 0 });
422
- }
423
- }
424
- function Tl(r) {
425
370
  let t, e;
426
371
  return {
427
372
  c() {
428
- t = Cr("svg"), e = Cr("path"), B(e, "d", "M7.4 2.5c-2.7 0-4.9 2.2-4.9 4.9s2.2 4.9 4.9 4.9c1 0 1.8-.2 2.5-.8l3.7 3.7c.2.2.4.3.8.3.7 0 1.1-.4 1.1-1.1 0-.3-.1-.5-.3-.8L11.4 10c.4-.8.8-1.6.8-2.5.1-2.8-2.1-5-4.8-5zm0 1.6c1.8 0 3.2 1.4 3.2 3.2s-1.4 3.2-3.2 3.2-3.3-1.3-3.3-3.1 1.4-3.3 3.3-3.3z"), B(t, "viewBox", "0 0 18 18"), B(t, "xml:space", "preserve"), B(t, "width", "20"), B(t, "class", "svelte-en2qvf");
373
+ t = Nr("svg"), e = Nr("path"), B(e, "d", "M7.4 2.5c-2.7 0-4.9 2.2-4.9 4.9s2.2 4.9 4.9 4.9c1 0 1.8-.2 2.5-.8l3.7 3.7c.2.2.4.3.8.3.7 0 1.1-.4 1.1-1.1 0-.3-.1-.5-.3-.8L11.4 10c.4-.8.8-1.6.8-2.5.1-2.8-2.1-5-4.8-5zm0 1.6c1.8 0 3.2 1.4 3.2 3.2s-1.4 3.2-3.2 3.2-3.3-1.3-3.3-3.1 1.4-3.3 3.3-3.3z"), B(t, "viewBox", "0 0 18 18"), B(t, "xml:space", "preserve"), B(t, "width", "20"), B(t, "class", "svelte-en2qvf");
429
374
  },
430
375
  m(n, i) {
431
376
  We(n, t, i), ct(t, e);
@@ -438,9 +383,9 @@ function Tl(r) {
438
383
  }
439
384
  };
440
385
  }
441
- class Ml extends Mi {
386
+ class Ol extends Mi {
442
387
  constructor(t) {
443
- super(), Ti(this, t, null, Tl, Di, {});
388
+ super(), Ti(this, t, null, Rl, Di, {});
444
389
  }
445
390
  }
446
391
  function oa(r, t, e) {
@@ -449,7 +394,7 @@ function oa(r, t, e) {
449
394
  }
450
395
  function sa(r) {
451
396
  let t, e;
452
- return t = new Pl({}), {
397
+ return t = new Ll({}), {
453
398
  c() {
454
399
  Oo(t.$$.fragment);
455
400
  },
@@ -469,14 +414,14 @@ function sa(r) {
469
414
  }
470
415
  function aa(r) {
471
416
  let t, e, n, i, o;
472
- return e = new Sl({}), {
417
+ return e = new Pl({}), {
473
418
  c() {
474
419
  t = oe("button"), Oo(e.$$.fragment), B(t, "type", "button"), B(
475
420
  t,
476
421
  "title",
477
422
  /*reverseButtonTitle*/
478
423
  r[9]
479
- ), B(t, "class", "svelte-gpexd2"), en(
424
+ ), B(t, "class", "svelte-1qszo8o"), en(
480
425
  t,
481
426
  "active",
482
427
  /*reverseActive*/
@@ -517,7 +462,7 @@ function aa(r) {
517
462
  }
518
463
  };
519
464
  }
520
- function Al(r) {
465
+ function Dl(r) {
521
466
  let t, e, n, i = (
522
467
  /*listFeatures*/
523
468
  r[12]
@@ -529,7 +474,7 @@ function Al(r) {
529
474
  t = oe("ul");
530
475
  for (let s = 0; s < o.length; s += 1)
531
476
  o[s].c();
532
- B(t, "class", "svelte-gpexd2");
477
+ B(t, "class", "svelte-1qszo8o");
533
478
  },
534
479
  m(s, a) {
535
480
  We(s, t, a);
@@ -566,18 +511,18 @@ function Al(r) {
566
511
  }
567
512
  },
568
513
  d(s) {
569
- s && Te(t), gl(o, s), e = !1, Tr(n);
514
+ s && Te(t), gl(o, s), e = !1, Mr(n);
570
515
  }
571
516
  };
572
517
  }
573
- function Fl(r) {
518
+ function Tl(r) {
574
519
  let t, e;
575
520
  return {
576
521
  c() {
577
522
  t = oe("div"), e = Vr(
578
523
  /*noResultsMessage*/
579
524
  r[7]
580
- ), B(t, "class", "no-results svelte-gpexd2");
525
+ ), B(t, "class", "no-results svelte-1qszo8o");
581
526
  },
582
527
  m(n, i) {
583
528
  We(n, t, i), ct(t, e);
@@ -595,7 +540,7 @@ function Fl(r) {
595
540
  }
596
541
  };
597
542
  }
598
- function Bl(r) {
543
+ function Ml(r) {
599
544
  let t = "", e;
600
545
  return {
601
546
  c() {
@@ -610,14 +555,14 @@ function Bl(r) {
610
555
  }
611
556
  };
612
557
  }
613
- function kl(r) {
558
+ function Al(r) {
614
559
  let t, e;
615
560
  return {
616
561
  c() {
617
562
  t = oe("div"), e = Vr(
618
563
  /*errorMessage*/
619
564
  r[6]
620
- ), B(t, "class", "error svelte-gpexd2");
565
+ ), B(t, "class", "error svelte-1qszo8o");
621
566
  },
622
567
  m(n, i) {
623
568
  We(n, t, i), ct(t, e);
@@ -644,7 +589,7 @@ function ua(r) {
644
589
  ), n;
645
590
  return {
646
591
  c() {
647
- t = oe("span"), n = Vr(e), B(t, "class", "line2 svelte-gpexd2");
592
+ t = oe("span"), n = Vr(e), B(t, "class", "line2 svelte-1qszo8o");
648
593
  },
649
594
  m(s, a) {
650
595
  We(s, t, a), ct(t, n);
@@ -692,9 +637,9 @@ function la(r) {
692
637
  }
693
638
  return {
694
639
  c() {
695
- t = oe("li"), e = oe("span"), n = oe("span"), i = oe("span"), s = Vr(o), a = tr(), u = oe("span"), c = Vr(l), f = tr(), d && d.c(), h = tr(), B(i, "class", "primary svelte-gpexd2"), B(u, "class", "secondary svelte-gpexd2"), B(n, "class", "line1 svelte-gpexd2"), B(e, "class", "texts svelte-gpexd2"), B(t, "tabindex", "0"), B(t, "data-selected", g = /*selectedItemIndex*/
640
+ t = oe("li"), e = oe("span"), n = oe("span"), i = oe("span"), s = Vr(o), a = tr(), u = oe("span"), c = Vr(l), f = tr(), d && d.c(), h = tr(), B(i, "class", "primary svelte-1qszo8o"), B(u, "class", "secondary svelte-1qszo8o"), B(n, "class", "line1 svelte-1qszo8o"), B(e, "class", "texts svelte-1qszo8o"), B(t, "tabindex", "0"), B(t, "data-selected", g = /*selectedItemIndex*/
696
641
  r[13] === /*i*/
697
- r[71]), B(t, "class", "svelte-gpexd2"), en(
642
+ r[71]), B(t, "class", "svelte-1qszo8o"), en(
698
643
  t,
699
644
  "selected",
700
645
  /*selectedItemIndex*/
@@ -702,22 +647,22 @@ function la(r) {
702
647
  r[71]
703
648
  );
704
649
  },
705
- m(C, x) {
706
- We(C, t, x), ct(t, e), ct(e, n), ct(n, i), ct(i, s), ct(n, a), ct(n, u), ct(u, c), ct(e, f), d && d.m(e, null), ct(t, h), p || (m = [
650
+ m(C, N) {
651
+ We(C, t, N), ct(t, e), ct(e, n), ct(n, i), ct(i, s), ct(n, a), ct(n, u), ct(u, c), ct(e, f), d && d.m(e, null), ct(t, h), p || (m = [
707
652
  Be(t, "mouseenter", _),
708
653
  Be(t, "focus", I)
709
654
  ], p = !0);
710
655
  },
711
- p(C, x) {
712
- r = C, x[0] & /*listFeatures*/
656
+ p(C, N) {
657
+ r = C, N[0] & /*listFeatures*/
713
658
  4096 && o !== (o = /*feature*/
714
- r[69].place_name.replace(/,.*/, "") + "") && Hi(s, o), x[0] & /*listFeatures*/
659
+ r[69].place_name.replace(/,.*/, "") + "") && Hi(s, o), N[0] & /*listFeatures*/
715
660
  4096 && l !== (l = /*feature*/
716
661
  r[69].place_name.replace(/[^,]*,?\s*/, "") + "") && Hi(c, l), /*showPlaceType*/
717
- r[10] ? d ? d.p(r, x) : (d = ua(r), d.c(), d.m(e, null)) : d && (d.d(1), d = null), x[0] & /*selectedItemIndex*/
662
+ r[10] ? d ? d.p(r, N) : (d = ua(r), d.c(), d.m(e, null)) : d && (d.d(1), d = null), N[0] & /*selectedItemIndex*/
718
663
  8192 && g !== (g = /*selectedItemIndex*/
719
664
  r[13] === /*i*/
720
- r[71]) && B(t, "data-selected", g), x[0] & /*selectedItemIndex*/
665
+ r[71]) && B(t, "data-selected", g), N[0] & /*selectedItemIndex*/
721
666
  8192 && en(
722
667
  t,
723
668
  "selected",
@@ -727,17 +672,17 @@ function la(r) {
727
672
  );
728
673
  },
729
674
  d(C) {
730
- C && Te(t), d && d.d(), p = !1, Tr(m);
675
+ C && Te(t), d && d.d(), p = !1, Mr(m);
731
676
  }
732
677
  };
733
678
  }
734
- function Gl(r) {
679
+ function Fl(r) {
735
680
  let t, e, n, i, o, s, a, u, l, c, f, h, g, p, m, d, _, I;
736
- i = new Ml({}), c = new Ll({});
681
+ i = new Ol({}), c = new Sl({});
737
682
  let C = (
738
683
  /*abortController*/
739
684
  r[17] && sa()
740
- ), x = (
685
+ ), N = (
741
686
  /*enableReverse*/
742
687
  r[5] === !0 && aa(r)
743
688
  );
@@ -757,26 +702,26 @@ function Gl(r) {
757
702
  /*error*/
758
703
  R[16]
759
704
  )
760
- return kl;
705
+ return Al;
761
706
  if (!/*focusedDelayed*/
762
707
  R[14])
763
- return Bl;
708
+ return Ml;
764
709
  if (
765
710
  /*listFeatures*/
766
711
  ((q = R[12]) == null ? void 0 : q.length) === 0
767
712
  )
768
- return Fl;
713
+ return Tl;
769
714
  if (
770
715
  /*focusedDelayed*/
771
716
  R[14] && /*listFeatures*/
772
717
  ((rt = R[12]) != null && rt.length)
773
718
  )
774
- return Al;
719
+ return Dl;
775
720
  }
776
721
  let F = A(r), D = F && F(r);
777
722
  return {
778
723
  c() {
779
- t = oe("form"), e = oe("div"), n = oe("button"), Oo(i.$$.fragment), o = tr(), s = oe("input"), a = tr(), u = oe("div"), l = oe("button"), Oo(c.$$.fragment), f = tr(), C && C.c(), h = tr(), x && x.c(), g = tr(), b && b.c(), p = tr(), D && D.c(), B(n, "type", "button"), B(n, "class", "svelte-gpexd2"), B(
724
+ t = oe("form"), e = oe("div"), n = oe("button"), Oo(i.$$.fragment), o = tr(), s = oe("input"), a = tr(), u = oe("div"), l = oe("button"), Oo(c.$$.fragment), f = tr(), C && C.c(), h = tr(), N && N.c(), g = tr(), b && b.c(), p = tr(), D && D.c(), B(n, "type", "button"), B(n, "class", "svelte-1qszo8o"), B(
780
725
  s,
781
726
  "placeholder",
782
727
  /*placeholder*/
@@ -786,20 +731,20 @@ function Gl(r) {
786
731
  "aria-label",
787
732
  /*placeholder*/
788
733
  r[8]
789
- ), B(s, "class", "svelte-gpexd2"), B(l, "type", "button"), B(
734
+ ), B(s, "class", "svelte-1qszo8o"), B(l, "type", "button"), B(
790
735
  l,
791
736
  "title",
792
737
  /*clearButtonTitle*/
793
738
  r[3]
794
- ), B(l, "class", "svelte-gpexd2"), en(
795
- l,
739
+ ), B(l, "class", "svelte-1qszo8o"), B(u, "class", "clear-button-container svelte-1qszo8o"), en(
740
+ u,
796
741
  "displayable",
797
742
  /*searchValue*/
798
743
  r[1] !== ""
799
- ), B(u, "class", "clear-button-container svelte-gpexd2"), B(e, "class", "input-group svelte-gpexd2"), B(t, "tabindex", "0"), B(t, "class", m = ta(
744
+ ), B(e, "class", "input-group svelte-1qszo8o"), B(t, "tabindex", "0"), B(t, "class", m = ta(
800
745
  /*className*/
801
746
  r[2]
802
- ) + " svelte-gpexd2"), en(
747
+ ) + " svelte-1qszo8o"), en(
803
748
  t,
804
749
  "can-collapse",
805
750
  /*collapsed*/
@@ -812,7 +757,7 @@ function Gl(r) {
812
757
  s,
813
758
  /*searchValue*/
814
759
  r[1]
815
- ), ct(e, a), ct(e, u), ct(u, l), ji(c, l, null), ct(u, f), C && C.m(u, null), ct(e, h), x && x.m(e, null), ct(e, g), b && b.m(e, null), ct(t, p), D && D.m(t, null), d = !0, _ || (I = [
760
+ ), ct(e, a), ct(e, u), ct(u, l), ji(c, l, null), ct(u, f), C && C.m(u, null), ct(e, h), N && N.m(e, null), ct(e, g), b && b.m(e, null), ct(t, p), D && D.m(t, null), d = !0, _ || (I = [
816
761
  Be(
817
762
  n,
818
763
  "click",
@@ -886,20 +831,20 @@ function Gl(r) {
886
831
  "title",
887
832
  /*clearButtonTitle*/
888
833
  R[3]
889
- ), (!d || z[0] & /*searchValue*/
890
- 2) && en(
891
- l,
892
- "displayable",
893
- /*searchValue*/
894
- R[1] !== ""
895
834
  ), /*abortController*/
896
835
  R[17] ? C ? z[0] & /*abortController*/
897
836
  131072 && Je(C, 1) : (C = sa(), C.c(), Je(C, 1), C.m(u, null)) : C && (ra(), $n(C, 1, 1, () => {
898
837
  C = null;
899
- }), ia()), /*enableReverse*/
900
- R[5] === !0 ? x ? (x.p(R, z), z[0] & /*enableReverse*/
901
- 32 && Je(x, 1)) : (x = aa(R), x.c(), Je(x, 1), x.m(e, g)) : x && (ra(), $n(x, 1, 1, () => {
902
- x = null;
838
+ }), ia()), (!d || z[0] & /*searchValue*/
839
+ 2) && en(
840
+ u,
841
+ "displayable",
842
+ /*searchValue*/
843
+ R[1] !== ""
844
+ ), /*enableReverse*/
845
+ R[5] === !0 ? N ? (N.p(R, z), z[0] & /*enableReverse*/
846
+ 32 && Je(N, 1)) : (N = aa(R), N.c(), Je(N, 1), N.m(e, g)) : N && (ra(), $n(N, 1, 1, () => {
847
+ N = null;
903
848
  }), ia()), b && b.p && (!d || z[1] & /*$$scope*/
904
849
  65536) && fl(
905
850
  b,
@@ -922,7 +867,7 @@ function Gl(r) {
922
867
  4 && m !== (m = ta(
923
868
  /*className*/
924
869
  R[2]
925
- ) + " svelte-gpexd2")) && B(t, "class", m), (!d || z[0] & /*className, collapsed, searchValue*/
870
+ ) + " svelte-1qszo8o")) && B(t, "class", m), (!d || z[0] & /*className, collapsed, searchValue*/
926
871
  22) && en(
927
872
  t,
928
873
  "can-collapse",
@@ -932,17 +877,17 @@ function Gl(r) {
932
877
  );
933
878
  },
934
879
  i(R) {
935
- d || (Je(i.$$.fragment, R), Je(c.$$.fragment, R), Je(C), Je(x), Je(b, R), d = !0);
880
+ d || (Je(i.$$.fragment, R), Je(c.$$.fragment, R), Je(C), Je(N), Je(b, R), d = !0);
936
881
  },
937
882
  o(R) {
938
- $n(i.$$.fragment, R), $n(c.$$.fragment, R), $n(C), $n(x), $n(b, R), d = !1;
883
+ $n(i.$$.fragment, R), $n(c.$$.fragment, R), $n(C), $n(N), $n(b, R), d = !1;
939
884
  },
940
885
  d(R) {
941
- R && Te(t), Ki(i), r[50](null), Ki(c), C && C.d(), x && x.d(), b && b.d(R), D && D.d(), _ = !1, Tr(I);
886
+ R && Te(t), Ki(i), r[50](null), Ki(c), C && C.d(), N && N.d(), b && b.d(R), D && D.d(), _ = !1, Mr(I);
942
887
  }
943
888
  };
944
889
  }
945
- function zl(r, t, e) {
890
+ function Bl(r, t, e) {
946
891
  const n = t[1], i = t[0], o = n - i;
947
892
  return r === n && e ? r : ((r - i) % o + o) % o + i;
948
893
  }
@@ -950,29 +895,29 @@ function ca(r) {
950
895
  let t = [...r];
951
896
  return t[2] < t[0] && (t[2] += 360), t;
952
897
  }
953
- function Vl(r, t, e) {
954
- let n, { $$slots: i = {}, $$scope: o } = t, { class: s = void 0 } = t, { apiKey: a } = t, { bbox: u = void 0 } = t, { clearButtonTitle: l = "clear" } = t, { clearOnBlur: c = !1 } = t, { collapsed: f = !1 } = t, { country: h = void 0 } = t, { debounceSearch: g = 200 } = t, { enableReverse: p = !1 } = t, { errorMessage: m = "Searching failed" } = t, { filter: d = () => !0 } = t, { flyTo: _ = !0 } = t, { fuzzyMatch: I = !0 } = t, { language: C = void 0 } = t, { limit: x = void 0 } = t, { mapController: S = void 0 } = t, { minLength: b = 2 } = t, { noResultsMessage: A = "No results found" } = t, { placeholder: F = "Search" } = t, { proximity: D = void 0 } = t, { reverseActive: R = p === "always" } = t, { reverseButtonTitle: z = "toggle reverse geocoding" } = t, { searchValue: q = "" } = t, { showFullGeometry: rt = !0 } = t, { showPlaceType: O = !1 } = t, { showResultsWhileTyping: Y = !0 } = t, { trackProximity: at = !0 } = t, { types: Nt = void 0 } = t, { zoom: qt = 16 } = t, { fetchParameters: ce = {} } = t;
955
- function Fr() {
898
+ function kl(r, t, e) {
899
+ let n, { $$slots: i = {}, $$scope: o } = t, { class: s = void 0 } = t, { apiKey: a } = t, { bbox: u = void 0 } = t, { clearButtonTitle: l = "clear" } = t, { clearOnBlur: c = !1 } = t, { collapsed: f = !1 } = t, { country: h = void 0 } = t, { debounceSearch: g = 200 } = t, { enableReverse: p = !1 } = t, { errorMessage: m = "Searching failed" } = t, { filter: d = () => !0 } = t, { flyTo: _ = !0 } = t, { fuzzyMatch: I = !0 } = t, { language: C = void 0 } = t, { limit: N = void 0 } = t, { mapController: S = void 0 } = t, { minLength: b = 2 } = t, { noResultsMessage: A = "No results found" } = t, { placeholder: F = "Search" } = t, { proximity: D = void 0 } = t, { reverseActive: R = p === "always" } = t, { reverseButtonTitle: z = "toggle reverse geocoding" } = t, { searchValue: q = "" } = t, { showFullGeometry: rt = !0 } = t, { showPlaceType: O = !1 } = t, { showResultsWhileTyping: Y = !0 } = t, { trackProximity: at = !0 } = t, { types: xt = void 0 } = t, { zoom: qt = 16 } = t, { fetchParameters: ce = {} } = t;
900
+ function Br() {
956
901
  Fn.focus();
957
902
  }
958
903
  function mn() {
959
904
  Fn.blur();
960
905
  }
961
- function An(N, At = !0) {
962
- e(1, q = N), At ? (e(13, Mt = -1), Qs()) : (os(), setTimeout(() => {
906
+ function An(x, At = !0) {
907
+ e(1, q = x), At ? (e(13, Mt = -1), Qs()) : (os(), setTimeout(() => {
963
908
  Fn.focus(), Fn.select();
964
909
  }));
965
910
  }
966
- let fe = !1, et, Rt, vt, Ks = "", Fn, Mt = -1, gr, Eo = [], Br, oi, Io;
911
+ let fe = !1, et, Rt, vt, Ks = "", Fn, Mt = -1, gr, Eo = [], kr, oi, Io;
967
912
  const pr = ml();
968
913
  yl(() => {
969
914
  S && (S.setEventHandler(void 0), S.indicateReverse(!1), S.setSelectedMarker(-1), S.setMarkers(void 0, void 0));
970
915
  });
971
- function Qs(N) {
916
+ function Qs(x) {
972
917
  if (oi && (clearTimeout(oi), oi = void 0), Mt > -1 && et)
973
918
  e(45, vt = et[Mt]), e(1, q = vt.place_name.replace(/,.*/, "")), e(16, gr = void 0), e(44, Rt = void 0), e(13, Mt = -1);
974
919
  else if (q) {
975
- const At = N || !Js();
920
+ const At = x || !Js();
976
921
  is(q, { exact: !0 }).then(() => {
977
922
  e(44, Rt = et), e(45, vt = void 0), At && Xu();
978
923
  }).catch((Bn) => e(16, gr = Bn));
@@ -981,52 +926,52 @@ function Vl(r, t, e) {
981
926
  function Js() {
982
927
  return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(q);
983
928
  }
984
- async function is(N, { byId: At = !1, exact: Bn = !1 } = {}) {
929
+ async function is(x, { byId: At = !1, exact: Bn = !1 } = {}) {
985
930
  e(16, gr = void 0);
986
931
  const Gi = Js(), Fe = new URLSearchParams();
987
- C != null && Fe.set("language", Array.isArray(C) ? C.join(",") : C), Nt && Fe.set("types", Nt.join(",")), Gi || (u && Fe.set("bbox", u.map((Gr) => Gr.toFixed(6)).join(",")), h && Fe.set("country", Array.isArray(h) ? h.join(",") : h)), At || (D && Fe.set("proximity", D.map((Gr) => Gr.toFixed(6)).join(",")), (Bn || !Y) && Fe.set("autocomplete", "false"), Fe.set("fuzzyMatch", String(I))), x !== void 0 && Fe.set("limit", String(x)), Fe.set("key", a);
988
- const kr = "https://api.maptiler.com/geocoding/" + encodeURIComponent(N) + ".json?" + Fe.toString();
989
- if (kr === Ks) {
932
+ C != null && Fe.set("language", Array.isArray(C) ? C.join(",") : C), xt && Fe.set("types", xt.join(",")), Gi || (u && Fe.set("bbox", u.map((dr) => dr.toFixed(6)).join(",")), h && Fe.set("country", Array.isArray(h) ? h.join(",") : h)), At || (D && Fe.set("proximity", D.map((dr) => dr.toFixed(6)).join(",")), (Bn || !Y) && Fe.set("autocomplete", "false"), Fe.set("fuzzyMatch", String(I))), N !== void 0 && Fe.set("limit", String(N)), Fe.set("key", a);
933
+ const Gr = "https://api.maptiler.com/geocoding/" + encodeURIComponent(x) + ".json?" + Fe.toString();
934
+ if (Gr === Ks) {
990
935
  At ? (e(12, et = void 0), e(45, vt = Eo[0])) : e(12, et = Eo);
991
936
  return;
992
937
  }
993
- Ks = kr, Br == null || Br.abort();
938
+ Ks = Gr, kr == null || kr.abort();
994
939
  const ye = new AbortController();
995
- e(17, Br = ye);
940
+ e(17, kr = ye);
996
941
  let as;
997
942
  try {
998
- as = await fetch(kr, { signal: ye.signal, ...ce }).finally(() => {
999
- ye === Br && e(17, Br = void 0);
943
+ as = await fetch(Gr, { signal: ye.signal, ...ce }).finally(() => {
944
+ ye === kr && e(17, kr = void 0);
1000
945
  });
1001
- } catch (Gr) {
1002
- if (Gr && typeof Gr == "object" && Gr.name === "AbortError")
946
+ } catch (dr) {
947
+ if (dr && typeof dr == "object" && "name" in dr && dr.name === "AbortError")
1003
948
  return;
1004
949
  throw new Error();
1005
950
  }
1006
951
  if (!as.ok)
1007
952
  throw new Error();
1008
953
  const us = await as.json();
1009
- pr("response", { url: kr, featureCollection: us }), At ? (e(12, et = void 0), e(45, vt = us.features[0]), Eo = [vt]) : (e(12, et = us.features.filter(d)), Eo = et, Gi && Fn.focus());
954
+ pr("response", { url: Gr, featureCollection: us }), At ? (e(12, et = void 0), e(45, vt = us.features[0]), Eo = [vt]) : (e(12, et = us.features.filter(d)), Eo = et, Gi && Fn.focus());
1010
955
  }
1011
956
  function Xu() {
1012
- var Bn, Gi, Fe, kr;
957
+ var Bn, Gi, Fe, Gr;
1013
958
  if (!(Rt != null && Rt.length) || !_)
1014
959
  return;
1015
- const N = [180, 90, -180, -90], At = !Rt.some((ye) => !ye.matching_text);
960
+ const x = [180, 90, -180, -90], At = !Rt.some((ye) => !ye.matching_text);
1016
961
  for (const ye of Rt)
1017
- (At || !ye.matching_text) && (N[0] = Math.min(N[0], ((Bn = ye.bbox) == null ? void 0 : Bn[0]) ?? ye.center[0]), N[1] = Math.min(N[1], ((Gi = ye.bbox) == null ? void 0 : Gi[1]) ?? ye.center[1]), N[2] = Math.max(N[2], ((Fe = ye.bbox) == null ? void 0 : Fe[2]) ?? ye.center[0]), N[3] = Math.max(N[3], ((kr = ye.bbox) == null ? void 0 : kr[3]) ?? ye.center[1]));
1018
- S && Rt.length > 0 && (vt && N[0] === N[2] && N[1] === N[3] ? S.flyTo(vt.center, qt) : S.fitBounds(ca(N), 50));
962
+ (At || !ye.matching_text) && (x[0] = Math.min(x[0], ((Bn = ye.bbox) == null ? void 0 : Bn[0]) ?? ye.center[0]), x[1] = Math.min(x[1], ((Gi = ye.bbox) == null ? void 0 : Gi[1]) ?? ye.center[1]), x[2] = Math.max(x[2], ((Fe = ye.bbox) == null ? void 0 : Fe[2]) ?? ye.center[0]), x[3] = Math.max(x[3], ((Gr = ye.bbox) == null ? void 0 : Gr[3]) ?? ye.center[1]));
963
+ S && Rt.length > 0 && (vt && x[0] === x[2] && x[1] === x[3] ? S.flyTo(vt.center, qt) : S.fitBounds(ca(x), 50));
1019
964
  }
1020
- function Yu(N) {
1021
- e(0, R = p === "always"), An(zl(N[0], [-180, 180], !0).toFixed(6) + "," + N[1].toFixed(6));
965
+ function Yu(x) {
966
+ e(0, R = p === "always"), An(Bl(x[0], [-180, 180], !0).toFixed(6) + "," + x[1].toFixed(6));
1022
967
  }
1023
- function Hu(N) {
968
+ function Hu(x) {
1024
969
  if (!et)
1025
970
  return;
1026
- let At = N.key === "ArrowDown" ? 1 : N.key === "ArrowUp" ? -1 : 0;
1027
- At ? (Mt === -1 && At === -1 && e(13, Mt = et.length), e(13, Mt += At), Mt >= et.length && e(13, Mt = -1), N.preventDefault()) : ["ArrowLeft", "ArrowRight", "Home", "End"].includes(N.key) && e(13, Mt = -1);
971
+ let At = x.key === "ArrowDown" ? 1 : x.key === "ArrowUp" ? -1 : 0;
972
+ At ? (Mt === -1 && At === -1 && e(13, Mt = et.length), e(13, Mt += At), Mt >= et.length && e(13, Mt = -1), x.preventDefault()) : ["ArrowLeft", "ArrowRight", "Home", "End"].includes(x.key) && e(13, Mt = -1);
1028
973
  }
1029
- function os(N = !0) {
974
+ function os(x = !0) {
1030
975
  if (Y && q.length > b) {
1031
976
  oi && clearTimeout(oi);
1032
977
  const At = q;
@@ -1034,18 +979,18 @@ function Vl(r, t, e) {
1034
979
  () => {
1035
980
  is(At).catch((Bn) => e(16, gr = Bn));
1036
981
  },
1037
- N ? g : 0
982
+ x ? g : 0
1038
983
  );
1039
984
  } else
1040
985
  e(12, et = void 0), e(16, gr = void 0);
1041
986
  }
1042
- function ss(N) {
1043
- e(45, vt = N), e(1, q = N.place_name), e(13, Mt = -1);
987
+ function ss(x) {
988
+ e(45, vt = x), e(1, q = x.place_name), e(13, Mt = -1);
1044
989
  }
1045
990
  const Wu = () => Fn.focus();
1046
- function ju(N) {
1047
- ds[N ? "unshift" : "push"](() => {
1048
- Fn = N, e(15, Fn);
991
+ function ju(x) {
992
+ ds[x ? "unshift" : "push"](() => {
993
+ Fn = x, e(15, Fn);
1049
994
  });
1050
995
  }
1051
996
  function Ku() {
@@ -1053,10 +998,10 @@ function Vl(r, t, e) {
1053
998
  }
1054
999
  const Qu = () => e(11, fe = !0), Ju = () => e(11, fe = !1), Zu = () => os(), $u = () => {
1055
1000
  e(1, q = ""), Fn.focus();
1056
- }, tl = () => e(0, R = !R), el = (N) => e(13, Mt = N), nl = (N) => ss(N), rl = () => e(13, Mt = -1), il = () => {
1001
+ }, tl = () => e(0, R = !R), el = (x) => e(13, Mt = x), nl = (x) => ss(x), rl = () => e(13, Mt = -1), il = () => {
1057
1002
  };
1058
- return r.$$set = (N) => {
1059
- "class" in N && e(2, s = N.class), "apiKey" in N && e(23, a = N.apiKey), "bbox" in N && e(24, u = N.bbox), "clearButtonTitle" in N && e(3, l = N.clearButtonTitle), "clearOnBlur" in N && e(25, c = N.clearOnBlur), "collapsed" in N && e(4, f = N.collapsed), "country" in N && e(26, h = N.country), "debounceSearch" in N && e(27, g = N.debounceSearch), "enableReverse" in N && e(5, p = N.enableReverse), "errorMessage" in N && e(6, m = N.errorMessage), "filter" in N && e(28, d = N.filter), "flyTo" in N && e(29, _ = N.flyTo), "fuzzyMatch" in N && e(30, I = N.fuzzyMatch), "language" in N && e(31, C = N.language), "limit" in N && e(32, x = N.limit), "mapController" in N && e(33, S = N.mapController), "minLength" in N && e(34, b = N.minLength), "noResultsMessage" in N && e(7, A = N.noResultsMessage), "placeholder" in N && e(8, F = N.placeholder), "proximity" in N && e(22, D = N.proximity), "reverseActive" in N && e(0, R = N.reverseActive), "reverseButtonTitle" in N && e(9, z = N.reverseButtonTitle), "searchValue" in N && e(1, q = N.searchValue), "showFullGeometry" in N && e(35, rt = N.showFullGeometry), "showPlaceType" in N && e(10, O = N.showPlaceType), "showResultsWhileTyping" in N && e(36, Y = N.showResultsWhileTyping), "trackProximity" in N && e(37, at = N.trackProximity), "types" in N && e(38, Nt = N.types), "zoom" in N && e(39, qt = N.zoom), "fetchParameters" in N && e(40, ce = N.fetchParameters), "$$scope" in N && e(47, o = N.$$scope);
1003
+ return r.$$set = (x) => {
1004
+ "class" in x && e(2, s = x.class), "apiKey" in x && e(23, a = x.apiKey), "bbox" in x && e(24, u = x.bbox), "clearButtonTitle" in x && e(3, l = x.clearButtonTitle), "clearOnBlur" in x && e(25, c = x.clearOnBlur), "collapsed" in x && e(4, f = x.collapsed), "country" in x && e(26, h = x.country), "debounceSearch" in x && e(27, g = x.debounceSearch), "enableReverse" in x && e(5, p = x.enableReverse), "errorMessage" in x && e(6, m = x.errorMessage), "filter" in x && e(28, d = x.filter), "flyTo" in x && e(29, _ = x.flyTo), "fuzzyMatch" in x && e(30, I = x.fuzzyMatch), "language" in x && e(31, C = x.language), "limit" in x && e(32, N = x.limit), "mapController" in x && e(33, S = x.mapController), "minLength" in x && e(34, b = x.minLength), "noResultsMessage" in x && e(7, A = x.noResultsMessage), "placeholder" in x && e(8, F = x.placeholder), "proximity" in x && e(22, D = x.proximity), "reverseActive" in x && e(0, R = x.reverseActive), "reverseButtonTitle" in x && e(9, z = x.reverseButtonTitle), "searchValue" in x && e(1, q = x.searchValue), "showFullGeometry" in x && e(35, rt = x.showFullGeometry), "showPlaceType" in x && e(10, O = x.showPlaceType), "showResultsWhileTyping" in x && e(36, Y = x.showResultsWhileTyping), "trackProximity" in x && e(37, at = x.trackProximity), "types" in x && e(38, xt = x.types), "zoom" in x && e(39, qt = x.zoom), "fetchParameters" in x && e(40, ce = x.fetchParameters), "$$scope" in x && e(47, o = x.$$scope);
1060
1005
  }, r.$$.update = () => {
1061
1006
  if (r.$$.dirty[1] & /*trackProximity*/
1062
1007
  64 && (at || e(22, D = void 0)), r.$$.dirty[0] & /*focused, clearOnBlur*/
@@ -1064,7 +1009,7 @@ function Vl(r, t, e) {
1064
1009
  e(14, Io = fe), c && !fe && e(1, q = "");
1065
1010
  }), r.$$.dirty[0] & /*searchValue, listFeatures*/
1066
1011
  4098 && (q || (e(45, vt = void 0), e(12, et = void 0), e(16, gr = void 0), e(44, Rt = et))), r.$$.dirty[1] & /*showFullGeometry, picked*/
1067
- 16400 && rt && vt && !vt.address && vt.geometry.type === "Point" && is(vt.id, { byId: !0 }).catch((N) => e(16, gr = N)), r.$$.dirty[0] & /*flyTo*/
1012
+ 16400 && rt && vt && !vt.address && vt.geometry.type === "Point" && is(vt.id, { byId: !0 }).catch((x) => e(16, gr = x)), r.$$.dirty[0] & /*flyTo*/
1068
1013
  536870912 | r.$$.dirty[1] & /*mapController, picked, zoom*/
1069
1014
  16644 && S && vt && _ && (!vt.bbox || vt.bbox[0] === vt.bbox[2] && vt.bbox[1] === vt.bbox[3] ? S.flyTo(vt.center, qt) : S.fitBounds(ca(vt.bbox), 50), e(12, et = void 0), e(44, Rt = void 0), e(13, Mt = -1)), r.$$.dirty[0] & /*listFeatures*/
1070
1015
  4096 | r.$$.dirty[1] & /*markedFeatures*/
@@ -1072,22 +1017,22 @@ function Vl(r, t, e) {
1072
1017
  24580 && S && S.setMarkers(Rt, vt), r.$$.dirty[0] & /*searchValue*/
1073
1018
  2 && e(13, Mt = -1), r.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
1074
1019
  20481 | r.$$.dirty[1] & /*mapController, trackProximity*/
1075
- 68 && S && S.setEventHandler((N) => {
1076
- switch (N.type) {
1020
+ 68 && S && S.setEventHandler((x) => {
1021
+ switch (x.type) {
1077
1022
  case "mapClick":
1078
- R && Yu(N.coordinates);
1023
+ R && Yu(x.coordinates);
1079
1024
  break;
1080
1025
  case "proximityChange":
1081
- e(22, D = at ? N.proximity : void 0);
1026
+ e(22, D = at ? x.proximity : void 0);
1082
1027
  break;
1083
1028
  case "markerClick":
1084
1029
  {
1085
- const At = et == null ? void 0 : et.find((Bn) => Bn.id === N.id);
1030
+ const At = et == null ? void 0 : et.find((Bn) => Bn.id === x.id);
1086
1031
  At && ss(At);
1087
1032
  }
1088
1033
  break;
1089
1034
  case "markerMouseEnter":
1090
- e(13, Mt = Io ? (et == null ? void 0 : et.findIndex((At) => At.id === N.id)) ?? -1 : -1);
1035
+ e(13, Mt = Io ? (et == null ? void 0 : et.findIndex((At) => At.id === x.id)) ?? -1 : -1);
1091
1036
  break;
1092
1037
  case "markerMouseLeave":
1093
1038
  e(13, Mt = -1);
@@ -1099,8 +1044,8 @@ function Vl(r, t, e) {
1099
1044
  12288 && e(46, n = et == null ? void 0 : et[Mt]), r.$$.dirty[0] & /*searchValue*/
1100
1045
  2 | r.$$.dirty[1] & /*mapController*/
1101
1046
  4) {
1102
- const N = /^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(q);
1103
- S == null || S.setReverseMarker(N ? [Number(N[1]), Number(N[2])] : void 0);
1047
+ const x = /^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(q);
1048
+ S == null || S.setReverseMarker(x ? [Number(x[1]), Number(x[2])] : void 0);
1104
1049
  }
1105
1050
  r.$$.dirty[1] & /*selected*/
1106
1051
  32768 && pr("select", n), r.$$.dirty[1] & /*picked*/
@@ -1130,7 +1075,7 @@ function Vl(r, t, e) {
1130
1075
  Io,
1131
1076
  Fn,
1132
1077
  gr,
1133
- Br,
1078
+ kr,
1134
1079
  Qs,
1135
1080
  Hu,
1136
1081
  os,
@@ -1145,16 +1090,16 @@ function Vl(r, t, e) {
1145
1090
  _,
1146
1091
  I,
1147
1092
  C,
1148
- x,
1093
+ N,
1149
1094
  S,
1150
1095
  b,
1151
1096
  rt,
1152
1097
  Y,
1153
1098
  at,
1154
- Nt,
1099
+ xt,
1155
1100
  qt,
1156
1101
  ce,
1157
- Fr,
1102
+ Br,
1158
1103
  mn,
1159
1104
  An,
1160
1105
  Rt,
@@ -1176,13 +1121,13 @@ function Vl(r, t, e) {
1176
1121
  il
1177
1122
  ];
1178
1123
  }
1179
- let Ul = class extends Mi {
1124
+ let Gl = class extends Mi {
1180
1125
  constructor(t) {
1181
1126
  super(), Ti(
1182
1127
  this,
1183
1128
  t,
1184
- Vl,
1185
- Gl,
1129
+ kl,
1130
+ Fl,
1186
1131
  Di,
1187
1132
  {
1188
1133
  class: 2,
@@ -1255,7 +1200,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
1255
1200
  See the Apache Version 2.0 License for specific language governing permissions
1256
1201
  and limitations under the License.
1257
1202
  ***************************************************************************** */
1258
- function ql(r, t) {
1203
+ function zl(r, t) {
1259
1204
  var e = { label: 0, sent: function() {
1260
1205
  if (o[0] & 1)
1261
1206
  throw o[1];
@@ -1329,10 +1274,10 @@ var xr = (
1329
1274
  return r;
1330
1275
  }()
1331
1276
  );
1332
- function Xl(r, t) {
1277
+ function Vl(r, t) {
1333
1278
  return r > t ? 1 : r < t ? -1 : 0;
1334
1279
  }
1335
- function yr(r, t, e) {
1280
+ function mr(r, t, e) {
1336
1281
  for (var n = new xr(null, null), i = n, o = n; ; ) {
1337
1282
  var s = e(r, t.key);
1338
1283
  if (s < 0) {
@@ -1362,21 +1307,21 @@ function fs(r, t, e, n) {
1362
1307
  var i = new xr(r, t);
1363
1308
  if (e === null)
1364
1309
  return i.left = i.right = null, i;
1365
- e = yr(r, e, n);
1310
+ e = mr(r, e, n);
1366
1311
  var o = n(r, e.key);
1367
1312
  return o < 0 ? (i.left = e.left, i.right = e, e.left = null) : o >= 0 && (i.right = e.right, i.left = e, e.right = null), i;
1368
1313
  }
1369
1314
  function fa(r, t, e) {
1370
1315
  var n = null, i = null;
1371
1316
  if (t) {
1372
- t = yr(r, t, e);
1317
+ t = mr(r, t, e);
1373
1318
  var o = e(t.key, r);
1374
1319
  o === 0 ? (n = t.left, i = t.right) : o < 0 ? (i = t.right, t.right = null, n = t) : (n = t.left, t.left = null, i = t);
1375
1320
  }
1376
1321
  return { left: n, right: i };
1377
1322
  }
1378
- function Yl(r, t, e) {
1379
- return t === null ? r : (r === null || (t = yr(r.key, t, e), t.left = r), t);
1323
+ function Ul(r, t, e) {
1324
+ return t === null ? r : (r === null || (t = mr(r.key, t, e), t.left = r), t);
1380
1325
  }
1381
1326
  function ms(r, t, e, n, i) {
1382
1327
  if (r) {
@@ -1390,14 +1335,14 @@ var Ds = (
1390
1335
  /** @class */
1391
1336
  function() {
1392
1337
  function r(t) {
1393
- t === void 0 && (t = Xl), this._root = null, this._size = 0, this._comparator = t;
1338
+ t === void 0 && (t = Vl), this._root = null, this._size = 0, this._comparator = t;
1394
1339
  }
1395
1340
  return r.prototype.insert = function(t, e) {
1396
1341
  return this._size++, this._root = fs(t, e, this._root, this._comparator);
1397
1342
  }, r.prototype.add = function(t, e) {
1398
1343
  var n = new xr(t, e);
1399
1344
  this._root === null && (n.left = n.right = null, this._size++, this._root = n);
1400
- var i = this._comparator, o = yr(t, this._root, i), s = i(t, o.key);
1345
+ var i = this._comparator, o = mr(t, this._root, i), s = i(t, o.key);
1401
1346
  return s === 0 ? this._root = o : (s < 0 ? (n.left = o.left, n.right = o, o.left = null) : s > 0 && (n.right = o.right, n.left = o, o.right = null), this._size++, this._root = n), this._root;
1402
1347
  }, r.prototype.remove = function(t) {
1403
1348
  this._root = this._remove(t, this._root, this._comparator);
@@ -1405,15 +1350,15 @@ var Ds = (
1405
1350
  var i;
1406
1351
  if (e === null)
1407
1352
  return null;
1408
- e = yr(t, e, n);
1353
+ e = mr(t, e, n);
1409
1354
  var o = n(t, e.key);
1410
- return o === 0 ? (e.left === null ? i = e.right : (i = yr(t, e.left, n), i.right = e.right), this._size--, i) : e;
1355
+ return o === 0 ? (e.left === null ? i = e.right : (i = mr(t, e.left, n), i.right = e.right), this._size--, i) : e;
1411
1356
  }, r.prototype.pop = function() {
1412
1357
  var t = this._root;
1413
1358
  if (t) {
1414
1359
  for (; t.left; )
1415
1360
  t = t.left;
1416
- return this._root = yr(t.key, this._root, this._comparator), this._root = this._remove(t.key, this._root, this._comparator), { key: t.key, data: t.data };
1361
+ return this._root = mr(t.key, this._root, this._comparator), this._root = this._remove(t.key, this._root, this._comparator), { key: t.key, data: t.data };
1417
1362
  }
1418
1363
  return null;
1419
1364
  }, r.prototype.findStatic = function(t) {
@@ -1425,7 +1370,7 @@ var Ds = (
1425
1370
  }
1426
1371
  return null;
1427
1372
  }, r.prototype.find = function(t) {
1428
- return this._root && (this._root = yr(t, this._root, this._comparator), this._comparator(t, this._root.key) !== 0) ? null : this._root;
1373
+ return this._root && (this._root = mr(t, this._root, this._comparator), this._comparator(t, this._root.key) !== 0) ? null : this._root;
1429
1374
  }, r.prototype.contains = function(t) {
1430
1375
  for (var e = this._root, n = this._comparator; e; ) {
1431
1376
  var i = n(t, e.key);
@@ -1518,14 +1463,14 @@ var Ds = (
1518
1463
  }, r.prototype.clear = function() {
1519
1464
  return this._root = null, this._size = 0, this;
1520
1465
  }, r.prototype.toList = function() {
1521
- return Wl(this._root);
1466
+ return Xl(this._root);
1522
1467
  }, r.prototype.load = function(t, e, n) {
1523
1468
  e === void 0 && (e = []), n === void 0 && (n = !1);
1524
1469
  var i = t.length, o = this._comparator;
1525
1470
  if (n && Is(t, e, 0, i - 1, o), this._root === null)
1526
1471
  this._root = _s(t, e, 0, i), this._size = i;
1527
1472
  else {
1528
- var s = jl(this.toList(), Hl(t, e), o);
1473
+ var s = Yl(this.toList(), ql(t, e), o);
1529
1474
  i = this._size + i, this._root = Es({ head: s }, 0, i);
1530
1475
  }
1531
1476
  return this;
@@ -1553,12 +1498,12 @@ var Ds = (
1553
1498
  }, t), e.join("");
1554
1499
  }, r.prototype.update = function(t, e, n) {
1555
1500
  var i = this._comparator, o = fa(t, this._root, i), s = o.left, a = o.right;
1556
- i(t, e) < 0 ? a = fs(e, n, a, i) : s = fs(e, n, s, i), this._root = Yl(s, a, i);
1501
+ i(t, e) < 0 ? a = fs(e, n, a, i) : s = fs(e, n, s, i), this._root = Ul(s, a, i);
1557
1502
  }, r.prototype.split = function(t) {
1558
1503
  return fa(t, this._root, this._comparator);
1559
1504
  }, r.prototype[Symbol.iterator] = function() {
1560
1505
  var t;
1561
- return ql(this, function(e) {
1506
+ return zl(this, function(e) {
1562
1507
  switch (e.label) {
1563
1508
  case 0:
1564
1509
  t = this.minNode(), e.label = 1;
@@ -1584,12 +1529,12 @@ function _s(r, t, e, n) {
1584
1529
  }
1585
1530
  return null;
1586
1531
  }
1587
- function Hl(r, t) {
1532
+ function ql(r, t) {
1588
1533
  for (var e = new xr(null, null), n = e, i = 0; i < r.length; i++)
1589
1534
  n = n.next = new xr(r[i], t[i]);
1590
1535
  return n.next = null, e.next;
1591
1536
  }
1592
- function Wl(r) {
1537
+ function Xl(r) {
1593
1538
  for (var t = r, e = [], n = !1, i = new xr(null, null), o = i; !n; )
1594
1539
  t ? (e.push(t), t = t.left) : e.length > 0 ? (t = o = o.next = e.pop(), t = t.right) : n = !0;
1595
1540
  return o.next = null, i.next;
@@ -1602,7 +1547,7 @@ function Es(r, t, e) {
1602
1547
  }
1603
1548
  return null;
1604
1549
  }
1605
- function jl(r, t, e) {
1550
+ function Yl(r, t, e) {
1606
1551
  for (var n = new xr(null, null), i = n, o = r, s = t; o !== null && s !== null; )
1607
1552
  e(o.key, s.key) < 0 ? (i.next = o, o = o.next) : (i.next = s, s = s.next), i = i.next;
1608
1553
  return o !== null ? i.next = o : s !== null && (i.next = s), n.next;
@@ -1653,14 +1598,14 @@ var zi = function(t, e) {
1653
1598
  y: s
1654
1599
  }
1655
1600
  };
1656
- }, _r = Number.EPSILON;
1657
- _r === void 0 && (_r = Math.pow(2, -52));
1658
- var Kl = _r * _r, xs = function(t, e) {
1659
- if (-_r < t && t < _r && -_r < e && e < _r)
1601
+ }, Er = Number.EPSILON;
1602
+ Er === void 0 && (Er = Math.pow(2, -52));
1603
+ var Hl = Er * Er, Ns = function(t, e) {
1604
+ if (-Er < t && t < Er && -Er < e && e < Er)
1660
1605
  return 0;
1661
1606
  var n = t - e;
1662
- return n * n < Kl * t * e ? 0 : t < e ? -1 : 1;
1663
- }, Ql = /* @__PURE__ */ function() {
1607
+ return n * n < Hl * t * e ? 0 : t < e ? -1 : 1;
1608
+ }, Wl = /* @__PURE__ */ function() {
1664
1609
  function r() {
1665
1610
  dn(this, r), this.reset();
1666
1611
  }
@@ -1686,13 +1631,13 @@ var Kl = _r * _r, xs = function(t, e) {
1686
1631
  key: "round",
1687
1632
  value: function(e) {
1688
1633
  var n = this.tree.add(e), i = this.tree.prev(n);
1689
- if (i !== null && xs(n.key, i.key) === 0)
1634
+ if (i !== null && Ns(n.key, i.key) === 0)
1690
1635
  return this.tree.remove(e), i.key;
1691
1636
  var o = this.tree.next(n);
1692
- return o !== null && xs(n.key, o.key) === 0 ? (this.tree.remove(e), o.key) : e;
1637
+ return o !== null && Ns(n.key, o.key) === 0 ? (this.tree.remove(e), o.key) : e;
1693
1638
  }
1694
1639
  }]), r;
1695
- }(), Qi = new Ql(), Yi = function(t, e) {
1640
+ }(), Qi = new Wl(), Yi = function(t, e) {
1696
1641
  return t.x * e.y - t.y * e.x;
1697
1642
  }, Ja = function(t, e) {
1698
1643
  return t.x * e.x + t.y * e.y;
@@ -1704,10 +1649,10 @@ var Kl = _r * _r, xs = function(t, e) {
1704
1649
  x: n.x - t.x,
1705
1650
  y: n.y - t.y
1706
1651
  }, s = Yi(i, o);
1707
- return xs(s, 0);
1652
+ return Ns(s, 0);
1708
1653
  }, Do = function(t) {
1709
1654
  return Math.sqrt(Ja(t, t));
1710
- }, Jl = function(t, e, n) {
1655
+ }, jl = function(t, e, n) {
1711
1656
  var i = {
1712
1657
  x: e.x - t.x,
1713
1658
  y: e.y - t.y
@@ -1716,7 +1661,7 @@ var Kl = _r * _r, xs = function(t, e) {
1716
1661
  y: n.y - t.y
1717
1662
  };
1718
1663
  return Yi(o, i) / Do(o) / Do(i);
1719
- }, Zl = function(t, e, n) {
1664
+ }, Kl = function(t, e, n) {
1720
1665
  var i = {
1721
1666
  x: e.x - t.x,
1722
1667
  y: e.y - t.y
@@ -1735,7 +1680,7 @@ var Kl = _r * _r, xs = function(t, e) {
1735
1680
  x: n,
1736
1681
  y: t.y + e.y / e.x * (n - t.x)
1737
1682
  };
1738
- }, $l = function(t, e, n, i) {
1683
+ }, Ql = function(t, e, n, i) {
1739
1684
  if (e.x === 0)
1740
1685
  return va(n, i, t.x);
1741
1686
  if (i.x === 0)
@@ -1824,8 +1769,8 @@ var Kl = _r * _r, xs = function(t, e) {
1824
1769
  var n = this, i = /* @__PURE__ */ new Map(), o = function(a) {
1825
1770
  var u = a.otherSE;
1826
1771
  i.set(a, {
1827
- sine: Jl(n.point, e.point, u.point),
1828
- cosine: Zl(n.point, e.point, u.point)
1772
+ sine: jl(n.point, e.point, u.point),
1773
+ cosine: Kl(n.point, e.point, u.point)
1829
1774
  });
1830
1775
  };
1831
1776
  return function(s, a) {
@@ -1835,7 +1780,7 @@ var Kl = _r * _r, xs = function(t, e) {
1835
1780
  };
1836
1781
  }
1837
1782
  }]), r;
1838
- }(), tc = 0, To = /* @__PURE__ */ function() {
1783
+ }(), Jl = 0, To = /* @__PURE__ */ function() {
1839
1784
  Ie(r, null, [{
1840
1785
  key: "compare",
1841
1786
  /* This compare() function is for ordering segments in the sweep
@@ -1899,10 +1844,10 @@ var Kl = _r * _r, xs = function(t, e) {
1899
1844
  return -1;
1900
1845
  }
1901
1846
  if (s !== a) {
1902
- var I = c - u, C = s - i, x = f - l, S = a - o;
1903
- if (I > C && x < S)
1847
+ var I = c - u, C = s - i, N = f - l, S = a - o;
1848
+ if (I > C && N < S)
1904
1849
  return 1;
1905
- if (I < C && x > S)
1850
+ if (I < C && N > S)
1906
1851
  return -1;
1907
1852
  }
1908
1853
  return s > a ? 1 : s < a || c < f ? -1 : c > f ? 1 : e.id < n.id ? -1 : e.id > n.id ? 1 : 0;
@@ -1911,7 +1856,7 @@ var Kl = _r * _r, xs = function(t, e) {
1911
1856
  * and possibly will be later modified */
1912
1857
  }]);
1913
1858
  function r(t, e, n, i) {
1914
- dn(this, r), this.id = ++tc, this.leftSE = t, t.segment = this, t.otherSE = e, this.rightSE = e, e.segment = this, e.otherSE = t, this.rings = n, this.windings = i;
1859
+ dn(this, r), this.id = ++Jl, this.leftSE = t, t.segment = this, t.otherSE = e, this.rightSE = e, e.segment = this, e.otherSE = t, this.rings = n, this.windings = i;
1915
1860
  }
1916
1861
  return Ie(r, [{
1917
1862
  key: "replaceRightSE",
@@ -2009,7 +1954,7 @@ var Kl = _r * _r, xs = function(t, e) {
2009
1954
  return a;
2010
1955
  if (h)
2011
1956
  return l;
2012
- var p = $l(s, this.vector(), u, e.vector());
1957
+ var p = Ql(s, this.vector(), u, e.vector());
2013
1958
  return p === null || !zi(o, p) ? null : Qi.round(p.x, p.y);
2014
1959
  }
2015
1960
  /**
@@ -2118,8 +2063,8 @@ var Kl = _r * _r, xs = function(t, e) {
2118
2063
  }
2119
2064
  }
2120
2065
  for (var I = 0, C = f.length; I < C; I++) {
2121
- var x = f[I].multiPoly;
2122
- o.indexOf(x) === -1 && o.push(x);
2066
+ var N = f[I].multiPoly;
2067
+ o.indexOf(N) === -1 && o.push(N);
2123
2068
  }
2124
2069
  return this._afterState;
2125
2070
  }
@@ -2209,7 +2154,7 @@ var Kl = _r * _r, xs = function(t, e) {
2209
2154
  return e;
2210
2155
  }
2211
2156
  }]), r;
2212
- }(), ec = /* @__PURE__ */ function() {
2157
+ }(), Zl = /* @__PURE__ */ function() {
2213
2158
  function r(t, e) {
2214
2159
  if (dn(this, r), !Array.isArray(t))
2215
2160
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
@@ -2257,7 +2202,7 @@ var Kl = _r * _r, xs = function(t, e) {
2257
2202
  }
2258
2203
  };
2259
2204
  for (var n = 0, i = t.length; n < i; n++) {
2260
- var o = new ec(t[n], this);
2205
+ var o = new Zl(t[n], this);
2261
2206
  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);
2262
2207
  }
2263
2208
  this.isSubject = e;
@@ -2271,7 +2216,7 @@ var Kl = _r * _r, xs = function(t, e) {
2271
2216
  return e;
2272
2217
  }
2273
2218
  }]), r;
2274
- }(), nc = /* @__PURE__ */ function() {
2219
+ }(), $l = /* @__PURE__ */ function() {
2275
2220
  Ie(r, null, [{
2276
2221
  key: "factory",
2277
2222
  /* Given the segments from the sweep line pass, compute & return a series
@@ -2297,8 +2242,8 @@ var Kl = _r * _r, xs = function(t, e) {
2297
2242
  break;
2298
2243
  }
2299
2244
  if (d !== null) {
2300
- var C = h.splice(d)[0], x = c.splice(C.index);
2301
- x.unshift(x[0].otherSE), n.push(new r(x.reverse()));
2245
+ var C = h.splice(d)[0], N = c.splice(C.index);
2246
+ N.unshift(N[0].otherSE), n.push(new r(N.reverse()));
2302
2247
  continue;
2303
2248
  }
2304
2249
  h.push({
@@ -2391,7 +2336,7 @@ var Kl = _r * _r, xs = function(t, e) {
2391
2336
  return e;
2392
2337
  }
2393
2338
  }]), r;
2394
- }(), rc = /* @__PURE__ */ function() {
2339
+ }(), tc = /* @__PURE__ */ function() {
2395
2340
  function r(t) {
2396
2341
  dn(this, r), this.rings = t, this.polys = this._composePolys(t);
2397
2342
  }
@@ -2420,7 +2365,7 @@ var Kl = _r * _r, xs = function(t, e) {
2420
2365
  return n;
2421
2366
  }
2422
2367
  }]), r;
2423
- }(), ic = /* @__PURE__ */ function() {
2368
+ }(), ec = /* @__PURE__ */ function() {
2424
2369
  function r(t) {
2425
2370
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : To.compare;
2426
2371
  dn(this, r), this.queue = t, this.tree = new Ds(e), this.segments = [];
@@ -2454,17 +2399,17 @@ var Kl = _r * _r, xs = function(t, e) {
2454
2399
  i.push(_[I]);
2455
2400
  }
2456
2401
  if (c !== null || m !== null) {
2457
- var x = null;
2402
+ var N = null;
2458
2403
  if (c === null)
2459
- x = m;
2404
+ N = m;
2460
2405
  else if (m === null)
2461
- x = c;
2406
+ N = c;
2462
2407
  else {
2463
2408
  var S = Vn.comparePoints(c, m);
2464
- x = S <= 0 ? c : m;
2409
+ N = S <= 0 ? c : m;
2465
2410
  }
2466
2411
  this.queue.remove(n.rightSE), i.push(n.rightSE);
2467
- for (var b = n.split(x), A = 0, F = b.length; A < F; A++)
2412
+ for (var b = n.split(N), A = 0, F = b.length; A < F; A++)
2468
2413
  i.push(b[A]);
2469
2414
  }
2470
2415
  i.length > 0 ? (this.tree.remove(n), i.push(e)) : (this.segments.push(n), n.prev = u);
@@ -2496,7 +2441,7 @@ var Kl = _r * _r, xs = function(t, e) {
2496
2441
  return o.push(i), e.consumedBy === void 0 && this.tree.insert(e), o;
2497
2442
  }
2498
2443
  }]), r;
2499
- }(), Ea = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, oc = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6, sc = /* @__PURE__ */ function() {
2444
+ }(), Ea = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, nc = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6, rc = /* @__PURE__ */ function() {
2500
2445
  function r() {
2501
2446
  dn(this, r);
2502
2447
  }
@@ -2516,10 +2461,10 @@ var Kl = _r * _r, xs = function(t, e) {
2516
2461
  return [];
2517
2462
  }
2518
2463
  for (var m = new Ds(Vn.compare), d = 0, _ = o.length; d < _; d++)
2519
- for (var I = o[d].getSweepEvents(), C = 0, x = I.length; C < x; C++)
2464
+ for (var I = o[d].getSweepEvents(), C = 0, N = I.length; C < N; C++)
2520
2465
  if (m.insert(I[C]), m.size > Ea)
2521
2466
  throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");
2522
- for (var S = new ic(m), b = m.size, A = m.pop(); A; ) {
2467
+ for (var S = new ec(m), b = m.size, A = m.pop(); A; ) {
2523
2468
  var F = A.key;
2524
2469
  if (m.size === b) {
2525
2470
  var D = F.segment;
@@ -2527,7 +2472,7 @@ var Kl = _r * _r, xs = function(t, e) {
2527
2472
  }
2528
2473
  if (m.size > Ea)
2529
2474
  throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");
2530
- if (S.segments.length > oc)
2475
+ if (S.segments.length > nc)
2531
2476
  throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");
2532
2477
  for (var R = S.process(F), z = 0, q = R.length; z < q; z++) {
2533
2478
  var rt = R[z];
@@ -2536,31 +2481,31 @@ var Kl = _r * _r, xs = function(t, e) {
2536
2481
  b = m.size, A = m.pop();
2537
2482
  }
2538
2483
  Qi.reset();
2539
- var O = nc.factory(S.segments), Y = new rc(O);
2484
+ var O = $l.factory(S.segments), Y = new tc(O);
2540
2485
  return Y.getGeom();
2541
2486
  }
2542
2487
  }]), r;
2543
- }(), Cn = new sc(), ac = function(t) {
2488
+ }(), Cn = new rc(), ic = function(t) {
2544
2489
  for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
2545
2490
  n[i - 1] = arguments[i];
2546
2491
  return Cn.run("union", t, n);
2547
- }, uc = function(t) {
2492
+ }, oc = function(t) {
2548
2493
  for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
2549
2494
  n[i - 1] = arguments[i];
2550
2495
  return Cn.run("intersection", t, n);
2551
- }, lc = function(t) {
2496
+ }, sc = function(t) {
2552
2497
  for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
2553
2498
  n[i - 1] = arguments[i];
2554
2499
  return Cn.run("xor", t, n);
2555
- }, cc = function(t) {
2500
+ }, ac = function(t) {
2556
2501
  for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
2557
2502
  n[i - 1] = arguments[i];
2558
2503
  return Cn.run("difference", t, n);
2559
2504
  }, Za = {
2560
- union: ac,
2561
- intersection: uc,
2562
- xor: lc,
2563
- difference: cc
2505
+ union: ic,
2506
+ intersection: oc,
2507
+ xor: sc,
2508
+ difference: ac
2564
2509
  }, me = 63710088e-1, $a = {
2565
2510
  centimeters: me * 100,
2566
2511
  centimetres: me * 100,
@@ -2583,7 +2528,7 @@ function Yo(r, t, e) {
2583
2528
  var n = { type: "Feature" };
2584
2529
  return (e.id === 0 || e.id) && (n.id = e.id), e.bbox && (n.bbox = e.bbox), n.properties = t || {}, n.geometry = r, n;
2585
2530
  }
2586
- function fc(r, t, e) {
2531
+ function uc(r, t, e) {
2587
2532
  if (e === void 0 && (e = {}), !r)
2588
2533
  throw new Error("coordinates is required");
2589
2534
  if (!Array.isArray(r))
@@ -2614,7 +2559,7 @@ function tu(r, t, e) {
2614
2559
  };
2615
2560
  return Yo(a, t, e);
2616
2561
  }
2617
- function Ns(r, t) {
2562
+ function xs(r, t) {
2618
2563
  t === void 0 && (t = {});
2619
2564
  var e = { type: "FeatureCollection" };
2620
2565
  return t.id && (e.id = t.id), t.bbox && (e.bbox = t.bbox), e.features = r, e;
@@ -2627,14 +2572,14 @@ function eu(r, t, e) {
2627
2572
  };
2628
2573
  return Yo(n, t, e);
2629
2574
  }
2630
- function hc(r, t) {
2575
+ function lc(r, t) {
2631
2576
  t === void 0 && (t = "kilometers");
2632
2577
  var e = $a[t];
2633
2578
  if (!e)
2634
2579
  throw new Error(t + " units is invalid");
2635
2580
  return r * e;
2636
2581
  }
2637
- function gc(r, t) {
2582
+ function cc(r, t) {
2638
2583
  t === void 0 && (t = "kilometers");
2639
2584
  var e = $a[t];
2640
2585
  if (!e)
@@ -2647,24 +2592,72 @@ function Ia(r) {
2647
2592
  function Mo(r) {
2648
2593
  return r.type === "Feature" ? r.geometry : r;
2649
2594
  }
2650
- function pc(r, t, e) {
2595
+ function fc(r, t, e) {
2651
2596
  e === void 0 && (e = {});
2652
2597
  var n = Mo(r), i = Mo(t), o = Za.union(n.coordinates, i.coordinates);
2653
2598
  return o.length === 0 ? null : o.length === 1 ? tu(o[0], e.properties) : eu(o, e.properties);
2654
2599
  }
2655
- function dc(r, t) {
2656
- var e = Mo(r), n = Mo(t), i = r.properties || {}, o = Za.difference(
2657
- e.coordinates,
2658
- n.coordinates
2659
- );
2660
- return o.length === 0 ? null : o.length === 1 ? tu(o[0], i) : eu(o, i);
2600
+ function hc(r) {
2601
+ let t, e, n;
2602
+ return {
2603
+ c() {
2604
+ t = Nr("svg"), e = Nr("path"), B(e, "stroke-width", "4"), B(e, "fill-rule", "evenodd"), B(e, "clip-rule", "evenodd"), B(e, "d", "M 5,33.103579 C 5,17.607779 18.457,5 35,5 C 51.543,5 65,17.607779 65,33.103579 C 65,56.388679 40.4668,76.048179 36.6112,79.137779 C 36.3714,79.329879 36.2116,79.457979 36.1427,79.518879 C 35.8203,79.800879 35.4102,79.942779 35,79.942779 C 34.5899,79.942779 34.1797,79.800879 33.8575,79.518879 C 33.7886,79.457979 33.6289,79.330079 33.3893,79.138079 C 29.5346,76.049279 5,56.389379 5,33.103579 Z M 35.0001,49.386379 C 43.1917,49.386379 49.8323,42.646079 49.8323,34.331379 C 49.8323,26.016779 43.1917,19.276479 35.0001,19.276479 C 26.8085,19.276479 20.1679,26.016779 20.1679,34.331379 C 20.1679,42.646079 26.8085,49.386379 35.0001,49.386379 Z"), B(e, "class", "svelte-1k1cmht"), B(t, "width", n = /*displayIn*/
2605
+ r[0] !== "list" ? void 0 : "20"), B(t, "viewBox", "0 0 70 85"), B(t, "fill", "none"), B(t, "class", "svelte-1k1cmht"), en(
2606
+ t,
2607
+ "in-map",
2608
+ /*displayIn*/
2609
+ r[0] !== "list"
2610
+ ), en(
2611
+ t,
2612
+ "list-icon",
2613
+ /*displayIn*/
2614
+ r[0] === "list"
2615
+ );
2616
+ },
2617
+ m(i, o) {
2618
+ We(i, t, o), ct(t, e);
2619
+ },
2620
+ p(i, [o]) {
2621
+ o & /*displayIn*/
2622
+ 1 && n !== (n = /*displayIn*/
2623
+ i[0] !== "list" ? void 0 : "20") && B(t, "width", n), o & /*displayIn*/
2624
+ 1 && en(
2625
+ t,
2626
+ "in-map",
2627
+ /*displayIn*/
2628
+ i[0] !== "list"
2629
+ ), o & /*displayIn*/
2630
+ 1 && en(
2631
+ t,
2632
+ "list-icon",
2633
+ /*displayIn*/
2634
+ i[0] === "list"
2635
+ );
2636
+ },
2637
+ i: Zt,
2638
+ o: Zt,
2639
+ d(i) {
2640
+ i && Te(t);
2641
+ }
2642
+ };
2643
+ }
2644
+ function gc(r, t, e) {
2645
+ let { displayIn: n } = t;
2646
+ return r.$$set = (i) => {
2647
+ "displayIn" in i && e(0, n = i.displayIn);
2648
+ }, [n];
2649
+ }
2650
+ class pc extends Mi {
2651
+ constructor(t) {
2652
+ super(), Ti(this, t, gc, hc, Di, { displayIn: 0 });
2653
+ }
2661
2654
  }
2662
2655
  function nu(r, t, e) {
2663
2656
  if (r !== null)
2664
2657
  for (var n, i, o, s, a, u, l, c = 0, f = 0, h, g = r.type, p = g === "FeatureCollection", m = g === "Feature", d = p ? r.features.length : 1, _ = 0; _ < d; _++) {
2665
2658
  l = p ? r.features[_].geometry : m ? r.geometry : r, h = l ? l.type === "GeometryCollection" : !1, a = h ? l.geometries.length : 1;
2666
2659
  for (var I = 0; I < a; I++) {
2667
- var C = 0, x = 0;
2660
+ var C = 0, N = 0;
2668
2661
  if (s = h ? l.geometries[I] : l, s !== null) {
2669
2662
  u = s.coordinates;
2670
2663
  var S = s.type;
@@ -2677,7 +2670,7 @@ function nu(r, t, e) {
2677
2670
  f,
2678
2671
  _,
2679
2672
  C,
2680
- x
2673
+ N
2681
2674
  ) === !1)
2682
2675
  return !1;
2683
2676
  f++, C++;
@@ -2690,7 +2683,7 @@ function nu(r, t, e) {
2690
2683
  f,
2691
2684
  _,
2692
2685
  C,
2693
- x
2686
+ N
2694
2687
  ) === !1)
2695
2688
  return !1;
2696
2689
  f++, S === "MultiPoint" && C++;
@@ -2706,30 +2699,30 @@ function nu(r, t, e) {
2706
2699
  f,
2707
2700
  _,
2708
2701
  C,
2709
- x
2702
+ N
2710
2703
  ) === !1)
2711
2704
  return !1;
2712
2705
  f++;
2713
2706
  }
2714
- S === "MultiLineString" && C++, S === "Polygon" && x++;
2707
+ S === "MultiLineString" && C++, S === "Polygon" && N++;
2715
2708
  }
2716
2709
  S === "Polygon" && C++;
2717
2710
  break;
2718
2711
  case "MultiPolygon":
2719
2712
  for (n = 0; n < u.length; n++) {
2720
- for (x = 0, i = 0; i < u[n].length; i++) {
2713
+ for (N = 0, i = 0; i < u[n].length; i++) {
2721
2714
  for (o = 0; o < u[n][i].length - c; o++) {
2722
2715
  if (t(
2723
2716
  u[n][i][o],
2724
2717
  f,
2725
2718
  _,
2726
2719
  C,
2727
- x
2720
+ N
2728
2721
  ) === !1)
2729
2722
  return !1;
2730
2723
  f++;
2731
2724
  }
2732
- x++;
2725
+ N++;
2733
2726
  }
2734
2727
  C++;
2735
2728
  }
@@ -2811,10 +2804,10 @@ function Ss(r) {
2811
2804
  }), t;
2812
2805
  }
2813
2806
  Ss.default = Ss;
2814
- function vc(r, t) {
2807
+ function dc(r, t) {
2815
2808
  t === void 0 && (t = {});
2816
2809
  var e = Ss(r), n = (e[0] + e[2]) / 2, i = (e[1] + e[3]) / 2;
2817
- return fc([n, i], t.properties, t);
2810
+ return uc([n, i], t.properties, t);
2818
2811
  }
2819
2812
  "fill" in Array.prototype || Object.defineProperty(Array.prototype, "fill", {
2820
2813
  configurable: !0,
@@ -3314,8 +3307,8 @@ E.prototype.selfAdd = function() {
3314
3307
  } else if (arguments.length === 2) {
3315
3308
  var l = arguments[0], c = arguments[1], f = null, h = null, g = null, p = null, m = null, d = null, _ = null, I = null;
3316
3309
  m = this._hi + l, g = this._lo + c, _ = m - this._hi, I = g - this._lo, d = m - _, p = g - I, d = l - _ + (this._hi - d), p = c - I + (this._lo - p), _ = d + g, f = m + _, h = _ + (m - f), _ = p + h;
3317
- var C = f + _, x = _ + (f - C);
3318
- return this._hi = C, this._lo = x, this;
3310
+ var C = f + _, N = _ + (f - C);
3311
+ return this._hi = C, this._lo = N, this;
3319
3312
  }
3320
3313
  };
3321
3314
  E.prototype.selfMultiply = function() {
@@ -3697,8 +3690,8 @@ var ke = function r() {
3697
3690
  var u = arguments[0], l = arguments[1], c = arguments[2];
3698
3691
  this.x = u, this.y = l, this.w = c;
3699
3692
  } else if (arguments.length === 4) {
3700
- var f = arguments[0], h = arguments[1], g = arguments[2], p = arguments[3], m = f.y - h.y, d = h.x - f.x, _ = f.x * h.y - h.x * f.y, I = g.y - p.y, C = p.x - g.x, x = g.x * p.y - p.x * g.y;
3701
- this.x = d * x - C * _, this.y = I * _ - m * x, this.w = m * C - I * d;
3693
+ var f = arguments[0], h = arguments[1], g = arguments[2], p = arguments[3], m = f.y - h.y, d = h.x - f.x, _ = f.x * h.y - h.x * f.y, I = g.y - p.y, C = p.x - g.x, N = g.x * p.y - p.x * g.y;
3694
+ this.x = d * N - C * _, this.y = I * _ - m * N, this.w = m * C - I * d;
3702
3695
  }
3703
3696
  };
3704
3697
  ke.prototype.getY = function() {
@@ -4351,7 +4344,7 @@ ei.COLLINEAR_INTERSECTION.get = function() {
4351
4344
  return 2;
4352
4345
  };
4353
4346
  Object.defineProperties(ft, ei);
4354
- var Mr = function(r) {
4347
+ var Ar = function(r) {
4355
4348
  function t() {
4356
4349
  r.apply(this, arguments);
4357
4350
  }
@@ -4398,8 +4391,8 @@ var Mr = function(r) {
4398
4391
  var a = T.intersects(n, i, o), u = T.intersects(n, i, s), l = T.intersects(o, s, n), c = T.intersects(o, s, i);
4399
4392
  return a && u ? (this._intPt[0] = o, this._intPt[1] = s, r.COLLINEAR_INTERSECTION) : l && c ? (this._intPt[0] = n, this._intPt[1] = i, r.COLLINEAR_INTERSECTION) : a && l ? (this._intPt[0] = o, this._intPt[1] = n, o.equals(n) && !u && !c ? r.POINT_INTERSECTION : r.COLLINEAR_INTERSECTION) : a && c ? (this._intPt[0] = o, this._intPt[1] = i, o.equals(i) && !u && !l ? r.POINT_INTERSECTION : r.COLLINEAR_INTERSECTION) : u && l ? (this._intPt[0] = s, this._intPt[1] = n, s.equals(n) && !a && !c ? r.POINT_INTERSECTION : r.COLLINEAR_INTERSECTION) : u && c ? (this._intPt[0] = s, this._intPt[1] = i, s.equals(i) && !a && !l ? r.POINT_INTERSECTION : r.COLLINEAR_INTERSECTION) : r.NO_INTERSECTION;
4400
4393
  }, t.prototype.normalizeToEnvCentre = function(n, i, o, s, a) {
4401
- var u = n.x < i.x ? n.x : i.x, l = n.y < i.y ? n.y : i.y, c = n.x > i.x ? n.x : i.x, f = n.y > i.y ? n.y : i.y, h = o.x < s.x ? o.x : s.x, g = o.y < s.y ? o.y : s.y, p = o.x > s.x ? o.x : s.x, m = o.y > s.y ? o.y : s.y, d = u > h ? u : h, _ = c < p ? c : p, I = l > g ? l : g, C = f < m ? f : m, x = (d + _) / 2, S = (I + C) / 2;
4402
- a.x = x, a.y = S, n.x -= a.x, n.y -= a.y, i.x -= a.x, i.y -= a.y, o.x -= a.x, o.y -= a.y, s.x -= a.x, s.y -= a.y;
4394
+ var u = n.x < i.x ? n.x : i.x, l = n.y < i.y ? n.y : i.y, c = n.x > i.x ? n.x : i.x, f = n.y > i.y ? n.y : i.y, h = o.x < s.x ? o.x : s.x, g = o.y < s.y ? o.y : s.y, p = o.x > s.x ? o.x : s.x, m = o.y > s.y ? o.y : s.y, d = u > h ? u : h, _ = c < p ? c : p, I = l > g ? l : g, C = f < m ? f : m, N = (d + _) / 2, S = (I + C) / 2;
4395
+ a.x = N, a.y = S, n.x -= a.x, n.y -= a.y, i.x -= a.x, i.y -= a.y, o.x -= a.x, o.y -= a.y, s.x -= a.x, s.y -= a.y;
4403
4396
  }, t.prototype.computeIntersect = function(n, i, o, s) {
4404
4397
  if (this._isProper = !1, !T.intersects(n, i, o, s))
4405
4398
  return r.NO_INTERSECTION;
@@ -4660,7 +4653,7 @@ P.distancePointLine = function() {
4660
4653
  }
4661
4654
  };
4662
4655
  P.isOnLine = function(t, e) {
4663
- for (var n = new Mr(), i = 1; i < e.length; i++) {
4656
+ for (var n = new Ar(), i = 1; i < e.length; i++) {
4664
4657
  var o = e[i - 1], s = e[i];
4665
4658
  if (n.computeIntersection(t, o, s), n.hasIntersection())
4666
4659
  return !0;
@@ -5011,7 +5004,7 @@ var L = function(r) {
5011
5004
  var o = this.array_[n];
5012
5005
  return this.array_[n] = i, o;
5013
5006
  }, t.prototype.iterator = function() {
5014
- return new yc(this);
5007
+ return new vc(this);
5015
5008
  }, t.prototype.get = function(n) {
5016
5009
  if (n < 0 || n >= this.size())
5017
5010
  throw new Ms();
@@ -5032,7 +5025,7 @@ var L = function(r) {
5032
5025
  }
5033
5026
  return o;
5034
5027
  }, t;
5035
- }(Ge), yc = function(r) {
5028
+ }(Ge), vc = function(r) {
5036
5029
  function t(e) {
5037
5030
  r.call(this), this.arrayList_ = e, this.position_ = 0;
5038
5031
  }
@@ -5111,8 +5104,8 @@ var L = function(r) {
5111
5104
  i.add(g[_], p);
5112
5105
  return !0;
5113
5106
  } else if (typeof arguments[2] == "boolean" && Number.isInteger(arguments[0]) && arguments[1] instanceof v) {
5114
- var I = arguments[0], C = arguments[1], x = arguments[2];
5115
- if (!x) {
5107
+ var I = arguments[0], C = arguments[1], N = arguments[2];
5108
+ if (!N) {
5116
5109
  var S = this.size();
5117
5110
  if (S > 0) {
5118
5111
  if (I > 0) {
@@ -5361,7 +5354,7 @@ ri.prototype.values = function() {
5361
5354
  };
5362
5355
  ri.prototype.entrySet = function() {
5363
5356
  };
5364
- var mc = function(r) {
5357
+ var yc = function(r) {
5365
5358
  function t() {
5366
5359
  r.apply(this, arguments);
5367
5360
  }
@@ -5405,9 +5398,9 @@ var As = function(r) {
5405
5398
  i.push(n.array_[o]);
5406
5399
  return i;
5407
5400
  }, t.prototype.iterator = function() {
5408
- return new _c(this);
5401
+ return new mc(this);
5409
5402
  }, t;
5410
- }(Ko), _c = function(r) {
5403
+ }(Ko), mc = function(r) {
5411
5404
  function t(e) {
5412
5405
  r.call(this), this.hashSet_ = e, this.position_ = 0;
5413
5406
  }
@@ -5420,8 +5413,8 @@ var As = function(r) {
5420
5413
  }, t.prototype.remove = function() {
5421
5414
  throw new po();
5422
5415
  }, t;
5423
- }(Fi), Un = 0, dr = 1;
5424
- function xa(r) {
5416
+ }(Fi), Un = 0, vr = 1;
5417
+ function Na(r) {
5425
5418
  return r === null ? Un : r.color;
5426
5419
  }
5427
5420
  function ot(r) {
@@ -5433,13 +5426,13 @@ function kn(r, t) {
5433
5426
  function hs(r) {
5434
5427
  return r === null ? null : r.left;
5435
5428
  }
5436
- function Na(r) {
5429
+ function xa(r) {
5437
5430
  return r === null ? null : r.right;
5438
5431
  }
5439
5432
  function Yt() {
5440
5433
  this.root_ = null, this.size_ = 0;
5441
5434
  }
5442
- Yt.prototype = new mc();
5435
+ Yt.prototype = new yc();
5443
5436
  Yt.prototype.get = function(r) {
5444
5437
  for (var t = this.root_; t !== null; ) {
5445
5438
  var e = r.compareTo(t.key);
@@ -5497,13 +5490,13 @@ Yt.prototype.put = function(r, t) {
5497
5490
  };
5498
5491
  Yt.prototype.fixAfterInsertion = function(r) {
5499
5492
  var t = this;
5500
- for (r.color = dr; r != null && r !== this.root_ && r.parent.color === dr; )
5493
+ for (r.color = vr; r != null && r !== this.root_ && r.parent.color === vr; )
5501
5494
  if (ot(r) === hs(ot(ot(r)))) {
5502
- var e = Na(ot(ot(r)));
5503
- xa(e) === dr ? (kn(ot(r), Un), kn(e, Un), kn(ot(ot(r)), dr), r = ot(ot(r))) : (r === Na(ot(r)) && (r = ot(r), t.rotateLeft(r)), kn(ot(r), Un), kn(ot(ot(r)), dr), t.rotateRight(ot(ot(r))));
5495
+ var e = xa(ot(ot(r)));
5496
+ Na(e) === vr ? (kn(ot(r), Un), kn(e, Un), kn(ot(ot(r)), vr), r = ot(ot(r))) : (r === xa(ot(r)) && (r = ot(r), t.rotateLeft(r)), kn(ot(r), Un), kn(ot(ot(r)), vr), t.rotateRight(ot(ot(r))));
5504
5497
  } else {
5505
5498
  var n = hs(ot(ot(r)));
5506
- xa(n) === dr ? (kn(ot(r), Un), kn(n, Un), kn(ot(ot(r)), dr), r = ot(ot(r))) : (r === hs(ot(r)) && (r = ot(r), t.rotateRight(r)), kn(ot(r), Un), kn(ot(ot(r)), dr), t.rotateLeft(ot(ot(r))));
5499
+ Na(n) === vr ? (kn(ot(r), Un), kn(n, Un), kn(ot(ot(r)), vr), r = ot(ot(r))) : (r === hs(ot(r)) && (r = ot(r), t.rotateRight(r)), kn(ot(r), Un), kn(ot(ot(r)), vr), t.rotateLeft(ot(ot(r))));
5507
5500
  }
5508
5501
  this.root_.color = Un;
5509
5502
  };
@@ -5626,9 +5619,9 @@ Qo.prototype.hasNext = function() {
5626
5619
  Qo.prototype.remove = function() {
5627
5620
  throw new po();
5628
5621
  };
5629
- var Er = function() {
5622
+ var Ir = function() {
5630
5623
  };
5631
- Er.sort = function() {
5624
+ Ir.sort = function() {
5632
5625
  var t = arguments[0], e, n, i, o;
5633
5626
  if (arguments.length === 1)
5634
5627
  o = function(a, u) {
@@ -5649,7 +5642,7 @@ Er.sort = function() {
5649
5642
  }, n.sort(o), s = t.slice(0, arguments[1]).concat(n, t.slice(arguments[2], t.length)), t.splice(0, t.length), e = 0; e < s.length; e++)
5650
5643
  t.push(s[e]);
5651
5644
  };
5652
- Er.asList = function(t) {
5645
+ Ir.asList = function(t) {
5653
5646
  for (var e = new L(), n = 0, i = t.length; n < i; n++)
5654
5647
  e.add(t[n]);
5655
5648
  return e;
@@ -5799,7 +5792,7 @@ var te = function(r) {
5799
5792
  }, t.prototype.normalize = function() {
5800
5793
  for (var i = this, o = 0; o < this._geometries.length; o++)
5801
5794
  i._geometries[o].normalize();
5802
- Er.sort(this._geometries);
5795
+ Ir.sort(this._geometries);
5803
5796
  }, t.prototype.getCoordinate = function() {
5804
5797
  return this.isEmpty() ? null : this._geometries[0].getCoordinate();
5805
5798
  }, t.prototype.getBoundaryDimension = function() {
@@ -5827,7 +5820,7 @@ var te = function(r) {
5827
5820
  }, t.prototype.compareToSameClass = function() {
5828
5821
  var i = this;
5829
5822
  if (arguments.length === 1) {
5830
- var o = arguments[0], s = new sn(Er.asList(this._geometries)), a = new sn(Er.asList(o._geometries));
5823
+ var o = arguments[0], s = new sn(Ir.asList(this._geometries)), a = new sn(Ir.asList(o._geometries));
5831
5824
  return this.compare(s, a);
5832
5825
  } else if (arguments.length === 2) {
5833
5826
  for (var u = arguments[0], l = arguments[1], c = u, f = this.getNumGeometries(), h = c.getNumGeometries(), g = 0; g < f && g < h; ) {
@@ -5887,7 +5880,7 @@ var te = function(r) {
5887
5880
  }, e.serialVersionUID.get = function() {
5888
5881
  return -5694727726395021e3;
5889
5882
  }, Object.defineProperties(t, e), t;
5890
- }(k), Nr = function(r) {
5883
+ }(k), Sr = function(r) {
5891
5884
  function t() {
5892
5885
  r.apply(this, arguments);
5893
5886
  }
@@ -5948,7 +5941,7 @@ Le.prototype.boundaryMultiLineString = function(t) {
5948
5941
  return e.length === 1 ? this._geomFact.createPoint(e[0]) : this._geomFact.createMultiPointFromCoords(e);
5949
5942
  };
5950
5943
  Le.prototype.getBoundary = function() {
5951
- return this._geom instanceof pt ? this.boundaryLineString(this._geom) : this._geom instanceof Nr ? this.boundaryMultiLineString(this._geom) : this._geom.getBoundary();
5944
+ return this._geom instanceof pt ? this.boundaryLineString(this._geom) : this._geom instanceof Sr ? this.boundaryMultiLineString(this._geom) : this._geom.getBoundary();
5952
5945
  };
5953
5946
  Le.prototype.boundaryLineString = function(t) {
5954
5947
  if (this._geom.isEmpty())
@@ -6003,17 +5996,17 @@ Fo.prototype.interfaces_ = function() {
6003
5996
  Fo.prototype.getClass = function() {
6004
5997
  return Fo;
6005
5998
  };
6006
- function Ec() {
5999
+ function _c() {
6007
6000
  }
6008
- function Ic() {
6001
+ function Ec() {
6009
6002
  }
6010
- var Cc = function() {
6003
+ var Ic = function() {
6011
6004
  };
6012
- function xc() {
6005
+ function Cc() {
6013
6006
  }
6014
6007
  function Nc() {
6015
6008
  }
6016
- function Sc() {
6009
+ function xc() {
6017
6010
  }
6018
6011
  var be = function() {
6019
6012
  }, Fs = { NEWLINE: { configurable: !0 }, SIMPLE_ORDINATE_FORMAT: { configurable: !0 } };
@@ -6030,12 +6023,12 @@ be.chars = function(t, e) {
6030
6023
  };
6031
6024
  be.getStackTrace = function() {
6032
6025
  if (arguments.length === 1) {
6033
- var t = arguments[0], e = new xc(), n = new Ec();
6026
+ var t = arguments[0], e = new Cc(), n = new _c();
6034
6027
  return t.printStackTrace(n), e.toString();
6035
6028
  } else if (arguments.length === 2) {
6036
6029
  var i = arguments[0], o = arguments[1], s = "";
6037
- new Ic(be.getStackTrace(i));
6038
- for (var a = new Sc(), u = 0; u < o; u++)
6030
+ new Ec(be.getStackTrace(i));
6031
+ for (var a = new xc(), u = 0; u < o; u++)
6039
6032
  try {
6040
6033
  s += a.readLine() + be.NEWLINE;
6041
6034
  } catch (l) {
@@ -6071,7 +6064,7 @@ Fs.NEWLINE.get = function() {
6071
6064
  return Gt.getProperty("line.separator");
6072
6065
  };
6073
6066
  Fs.SIMPLE_ORDINATE_FORMAT.get = function() {
6074
- return new Cc();
6067
+ return new Ic();
6075
6068
  };
6076
6069
  Object.defineProperties(be, Fs);
6077
6070
  var _t = function() {
@@ -6455,7 +6448,7 @@ var Pt = function(r) {
6455
6448
  this.normalize(this._shell, !0);
6456
6449
  for (var o = 0; o < this._holes.length; o++)
6457
6450
  i.normalize(i._holes[o], !1);
6458
- Er.sort(this._holes);
6451
+ Ir.sort(this._holes);
6459
6452
  } else if (arguments.length === 2) {
6460
6453
  var s = arguments[0], a = arguments[1];
6461
6454
  if (s.isEmpty())
@@ -6636,7 +6629,7 @@ var Pt = function(r) {
6636
6629
  }, e.serialVersionUID.get = function() {
6637
6630
  return -4261142084085851600;
6638
6631
  }, Object.defineProperties(t, e), t;
6639
- }(pt), xn = function(r) {
6632
+ }(pt), Nn = function(r) {
6640
6633
  function t() {
6641
6634
  r.apply(this, arguments);
6642
6635
  }
@@ -6700,7 +6693,7 @@ Oe.prototype.editGeometryCollection = function(t, e) {
6700
6693
  var a = n.edit(i.getGeometryN(s), e);
6701
6694
  a === null || a.isEmpty() || o.add(a);
6702
6695
  }
6703
- return i.getClass() === yi ? this._factory.createMultiPoint(o.toArray([])) : i.getClass() === Nr ? this._factory.createMultiLineString(o.toArray([])) : i.getClass() === xn ? this._factory.createMultiPolygon(o.toArray([])) : this._factory.createGeometryCollection(o.toArray([]));
6696
+ return i.getClass() === yi ? this._factory.createMultiPoint(o.toArray([])) : i.getClass() === Sr ? this._factory.createMultiLineString(o.toArray([])) : i.getClass() === Nn ? this._factory.createMultiPolygon(o.toArray([])) : this._factory.createGeometryCollection(o.toArray([]));
6704
6697
  };
6705
6698
  Oe.prototype.editPolygon = function(t, e) {
6706
6699
  var n = this, i = e.edit(t, this._factory);
@@ -7063,10 +7056,10 @@ H.prototype.createLineString = function(t) {
7063
7056
  };
7064
7057
  H.prototype.createMultiLineString = function() {
7065
7058
  if (arguments.length === 0)
7066
- return new Nr(null, this);
7059
+ return new Sr(null, this);
7067
7060
  if (arguments.length === 1) {
7068
7061
  var t = arguments[0];
7069
- return new Nr(t, this);
7062
+ return new Sr(t, this);
7070
7063
  }
7071
7064
  };
7072
7065
  H.prototype.buildGeometry = function(t) {
@@ -7168,10 +7161,10 @@ H.prototype.createLinearRing = function() {
7168
7161
  };
7169
7162
  H.prototype.createMultiPolygon = function() {
7170
7163
  if (arguments.length === 0)
7171
- return new xn(null, this);
7164
+ return new Nn(null, this);
7172
7165
  if (arguments.length === 1) {
7173
7166
  var t = arguments[0];
7174
- return new xn(t, this);
7167
+ return new Nn(t, this);
7175
7168
  }
7176
7169
  };
7177
7170
  H.prototype.createMultiPoint = function() {
@@ -7247,7 +7240,7 @@ hu.serialVersionUID.get = function() {
7247
7240
  return -6820524753094096e3;
7248
7241
  };
7249
7242
  Object.defineProperties(H, hu);
7250
- var wc = ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"], Zo = function(t) {
7243
+ var Sc = ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"], Zo = function(t) {
7251
7244
  this.geometryFactory = t || new H();
7252
7245
  };
7253
7246
  Zo.prototype.read = function(t) {
@@ -7256,7 +7249,7 @@ Zo.prototype.read = function(t) {
7256
7249
  var n = e.type;
7257
7250
  if (!$e[n])
7258
7251
  throw new Error("Unknown GeoJSON type: " + e.type);
7259
- return wc.indexOf(n) !== -1 ? $e[n].apply(this, [e.coordinates]) : n === "GeometryCollection" ? $e[n].apply(this, [e.geometries]) : $e[n].apply(this, [e]);
7252
+ return Sc.indexOf(n) !== -1 ? $e[n].apply(this, [e.coordinates]) : n === "GeometryCollection" ? $e[n].apply(this, [e.geometries]) : $e[n].apply(this, [e]);
7260
7253
  };
7261
7254
  Zo.prototype.write = function(t) {
7262
7255
  var e = t.getGeometryType();
@@ -8037,12 +8030,12 @@ tt.toLineLabel = function(t) {
8037
8030
  e.setLocation(n, t.getLocation(n));
8038
8031
  return e;
8039
8032
  };
8040
- var xt = function() {
8033
+ var Nt = function() {
8041
8034
  this._startDe = null, this._maxNodeDegree = -1, this._edges = new L(), this._pts = new L(), this._label = new tt(y.NONE), this._ring = null, this._isHole = null, this._shell = null, this._holes = new L(), this._geometryFactory = null;
8042
8035
  var t = arguments[0], e = arguments[1];
8043
8036
  this._geometryFactory = e, this.computePoints(t), this.computeRing();
8044
8037
  };
8045
- xt.prototype.computeRing = function() {
8038
+ Nt.prototype.computeRing = function() {
8046
8039
  var t = this;
8047
8040
  if (this._ring !== null)
8048
8041
  return null;
@@ -8050,10 +8043,10 @@ xt.prototype.computeRing = function() {
8050
8043
  e[n] = t._pts.get(n);
8051
8044
  this._ring = this._geometryFactory.createLinearRing(e), this._isHole = P.isCCW(this._ring.getCoordinates());
8052
8045
  };
8053
- xt.prototype.isIsolated = function() {
8046
+ Nt.prototype.isIsolated = function() {
8054
8047
  return this._label.getGeometryCount() === 1;
8055
8048
  };
8056
- xt.prototype.computePoints = function(t) {
8049
+ Nt.prototype.computePoints = function(t) {
8057
8050
  var e = this;
8058
8051
  this._startDe = t;
8059
8052
  var n = t, i = !0;
@@ -8067,13 +8060,13 @@ xt.prototype.computePoints = function(t) {
8067
8060
  X.isTrue(o.isArea()), e.mergeLabel(o), e.addPoints(n.getEdge(), n.isForward(), i), i = !1, e.setEdgeRing(n, e), n = e.getNext(n);
8068
8061
  } while (n !== this._startDe);
8069
8062
  };
8070
- xt.prototype.getLinearRing = function() {
8063
+ Nt.prototype.getLinearRing = function() {
8071
8064
  return this._ring;
8072
8065
  };
8073
- xt.prototype.getCoordinate = function(t) {
8066
+ Nt.prototype.getCoordinate = function(t) {
8074
8067
  return this._pts.get(t);
8075
8068
  };
8076
- xt.prototype.computeMaxNodeDegree = function() {
8069
+ Nt.prototype.computeMaxNodeDegree = function() {
8077
8070
  var t = this;
8078
8071
  this._maxNodeDegree = 0;
8079
8072
  var e = this._startDe;
@@ -8083,7 +8076,7 @@ xt.prototype.computeMaxNodeDegree = function() {
8083
8076
  } while (e !== this._startDe);
8084
8077
  this._maxNodeDegree *= 2;
8085
8078
  };
8086
- xt.prototype.addPoints = function(t, e, n) {
8079
+ Nt.prototype.addPoints = function(t, e, n) {
8087
8080
  var i = this, o = t.getCoordinates();
8088
8081
  if (e) {
8089
8082
  var s = 1;
@@ -8097,16 +8090,16 @@ xt.prototype.addPoints = function(t, e, n) {
8097
8090
  i._pts.add(o[l]);
8098
8091
  }
8099
8092
  };
8100
- xt.prototype.isHole = function() {
8093
+ Nt.prototype.isHole = function() {
8101
8094
  return this._isHole;
8102
8095
  };
8103
- xt.prototype.setInResult = function() {
8096
+ Nt.prototype.setInResult = function() {
8104
8097
  var t = this._startDe;
8105
8098
  do
8106
8099
  t.getEdge().setInResult(!0), t = t.getNext();
8107
8100
  while (t !== this._startDe);
8108
8101
  };
8109
- xt.prototype.containsPoint = function(t) {
8102
+ Nt.prototype.containsPoint = function(t) {
8110
8103
  var e = this.getLinearRing(), n = e.getEnvelopeInternal();
8111
8104
  if (!n.contains(t) || !P.isPointInRing(t, e.getCoordinates()))
8112
8105
  return !1;
@@ -8117,25 +8110,25 @@ xt.prototype.containsPoint = function(t) {
8117
8110
  }
8118
8111
  return !0;
8119
8112
  };
8120
- xt.prototype.addHole = function(t) {
8113
+ Nt.prototype.addHole = function(t) {
8121
8114
  this._holes.add(t);
8122
8115
  };
8123
- xt.prototype.isShell = function() {
8116
+ Nt.prototype.isShell = function() {
8124
8117
  return this._shell === null;
8125
8118
  };
8126
- xt.prototype.getLabel = function() {
8119
+ Nt.prototype.getLabel = function() {
8127
8120
  return this._label;
8128
8121
  };
8129
- xt.prototype.getEdges = function() {
8122
+ Nt.prototype.getEdges = function() {
8130
8123
  return this._edges;
8131
8124
  };
8132
- xt.prototype.getMaxNodeDegree = function() {
8125
+ Nt.prototype.getMaxNodeDegree = function() {
8133
8126
  return this._maxNodeDegree < 0 && this.computeMaxNodeDegree(), this._maxNodeDegree;
8134
8127
  };
8135
- xt.prototype.getShell = function() {
8128
+ Nt.prototype.getShell = function() {
8136
8129
  return this._shell;
8137
8130
  };
8138
- xt.prototype.mergeLabel = function() {
8131
+ Nt.prototype.mergeLabel = function() {
8139
8132
  if (arguments.length === 1) {
8140
8133
  var t = arguments[0];
8141
8134
  this.mergeLabel(t, 0), this.mergeLabel(t, 1);
@@ -8147,22 +8140,22 @@ xt.prototype.mergeLabel = function() {
8147
8140
  return this._label.setLocation(n, i), null;
8148
8141
  }
8149
8142
  };
8150
- xt.prototype.setShell = function(t) {
8143
+ Nt.prototype.setShell = function(t) {
8151
8144
  this._shell = t, t !== null && t.addHole(this);
8152
8145
  };
8153
- xt.prototype.toPolygon = function(t) {
8146
+ Nt.prototype.toPolygon = function(t) {
8154
8147
  for (var e = this, n = new Array(this._holes.size()).fill(null), i = 0; i < this._holes.size(); i++)
8155
8148
  n[i] = e._holes.get(i).getLinearRing();
8156
8149
  var o = t.createPolygon(this.getLinearRing(), n);
8157
8150
  return o;
8158
8151
  };
8159
- xt.prototype.interfaces_ = function() {
8152
+ Nt.prototype.interfaces_ = function() {
8160
8153
  return [];
8161
8154
  };
8162
- xt.prototype.getClass = function() {
8163
- return xt;
8155
+ Nt.prototype.getClass = function() {
8156
+ return Nt;
8164
8157
  };
8165
- var Lc = function(r) {
8158
+ var wc = function(r) {
8166
8159
  function t() {
8167
8160
  var e = arguments[0], n = arguments[1];
8168
8161
  r.call(this, e, n);
@@ -8176,7 +8169,7 @@ var Lc = function(r) {
8176
8169
  }, t.prototype.getClass = function() {
8177
8170
  return t;
8178
8171
  }, t;
8179
- }(xt), bc = function(r) {
8172
+ }(Nt), Lc = function(r) {
8180
8173
  function t() {
8181
8174
  var e = arguments[0], n = arguments[1];
8182
8175
  r.call(this, e, n);
@@ -8185,7 +8178,7 @@ var Lc = function(r) {
8185
8178
  var n = this, i = new L(), o = this._startDe;
8186
8179
  do {
8187
8180
  if (o.getMinEdgeRing() === null) {
8188
- var s = new Lc(o, n._geometryFactory);
8181
+ var s = new wc(o, n._geometryFactory);
8189
8182
  i.add(s);
8190
8183
  }
8191
8184
  o = o.getNext();
@@ -8206,7 +8199,7 @@ var Lc = function(r) {
8206
8199
  }, t.prototype.getClass = function() {
8207
8200
  return t;
8208
8201
  }, t;
8209
- }(xt), xe = function() {
8202
+ }(Nt), Ne = function() {
8210
8203
  if (this._label = null, this._isInResult = !1, this._isCovered = !1, this._isCoveredSet = !1, this._isVisited = !1, arguments.length !== 0) {
8211
8204
  if (arguments.length === 1) {
8212
8205
  var t = arguments[0];
@@ -8214,41 +8207,41 @@ var Lc = function(r) {
8214
8207
  }
8215
8208
  }
8216
8209
  };
8217
- xe.prototype.setVisited = function(t) {
8210
+ Ne.prototype.setVisited = function(t) {
8218
8211
  this._isVisited = t;
8219
8212
  };
8220
- xe.prototype.setInResult = function(t) {
8213
+ Ne.prototype.setInResult = function(t) {
8221
8214
  this._isInResult = t;
8222
8215
  };
8223
- xe.prototype.isCovered = function() {
8216
+ Ne.prototype.isCovered = function() {
8224
8217
  return this._isCovered;
8225
8218
  };
8226
- xe.prototype.isCoveredSet = function() {
8219
+ Ne.prototype.isCoveredSet = function() {
8227
8220
  return this._isCoveredSet;
8228
8221
  };
8229
- xe.prototype.setLabel = function(t) {
8222
+ Ne.prototype.setLabel = function(t) {
8230
8223
  this._label = t;
8231
8224
  };
8232
- xe.prototype.getLabel = function() {
8225
+ Ne.prototype.getLabel = function() {
8233
8226
  return this._label;
8234
8227
  };
8235
- xe.prototype.setCovered = function(t) {
8228
+ Ne.prototype.setCovered = function(t) {
8236
8229
  this._isCovered = t, this._isCoveredSet = !0;
8237
8230
  };
8238
- xe.prototype.updateIM = function(t) {
8231
+ Ne.prototype.updateIM = function(t) {
8239
8232
  X.isTrue(this._label.getGeometryCount() >= 2, "found partial label"), this.computeIM(t);
8240
8233
  };
8241
- xe.prototype.isInResult = function() {
8234
+ Ne.prototype.isInResult = function() {
8242
8235
  return this._isInResult;
8243
8236
  };
8244
- xe.prototype.isVisited = function() {
8237
+ Ne.prototype.isVisited = function() {
8245
8238
  return this._isVisited;
8246
8239
  };
8247
- xe.prototype.interfaces_ = function() {
8240
+ Ne.prototype.interfaces_ = function() {
8248
8241
  return [];
8249
8242
  };
8250
- xe.prototype.getClass = function() {
8251
- return xe;
8243
+ Ne.prototype.getClass = function() {
8244
+ return Ne;
8252
8245
  };
8253
8246
  var ns = function(r) {
8254
8247
  function t() {
@@ -8320,7 +8313,7 @@ var ns = function(r) {
8320
8313
  }, t.prototype.getClass = function() {
8321
8314
  return t;
8322
8315
  }, t;
8323
- }(xe), cn = function() {
8316
+ }(Ne), cn = function() {
8324
8317
  this.nodeMap = new Yt(), this.nodeFact = null;
8325
8318
  var t = arguments[0];
8326
8319
  this.nodeFact = t;
@@ -8750,7 +8743,7 @@ pe.prototype.buildMaximalEdgeRings = function(t) {
8750
8743
  for (var e = this, n = new L(), i = t.iterator(); i.hasNext(); ) {
8751
8744
  var o = i.next();
8752
8745
  if (o.isInResult() && o.getLabel().isArea() && o.getEdgeRing() === null) {
8753
- var s = new bc(o, e._geometryFactory);
8746
+ var s = new Lc(o, e._geometryFactory);
8754
8747
  n.add(s), s.setInResult();
8755
8748
  }
8756
8749
  }
@@ -8937,7 +8930,7 @@ qe.min = function(t) {
8937
8930
  };
8938
8931
  qe.sort = function(t, e) {
8939
8932
  var n = t.toArray();
8940
- e ? Er.sort(n, e) : Er.sort(n);
8933
+ e ? Ir.sort(n, e) : Ir.sort(n);
8941
8934
  for (var i = t.iterator(), o = 0, s = n.length; o < s; o++)
8942
8935
  i.next(), i.set(n[o]);
8943
8936
  };
@@ -9163,7 +9156,7 @@ Ot.compareDoubles = function(t, e) {
9163
9156
  return t > e ? 1 : t < e ? -1 : 0;
9164
9157
  };
9165
9158
  rs.IntersectsOp.get = function() {
9166
- return Pc;
9159
+ return bc;
9167
9160
  };
9168
9161
  rs.serialVersionUID.get = function() {
9169
9162
  return -3886435814360241e3;
@@ -9172,7 +9165,7 @@ rs.DEFAULT_NODE_CAPACITY.get = function() {
9172
9165
  return 10;
9173
9166
  };
9174
9167
  Object.defineProperties(Ot, rs);
9175
- var Pc = function() {
9168
+ var bc = function() {
9176
9169
  }, Ei = function() {
9177
9170
  };
9178
9171
  Ei.prototype.distance = function(t, e) {
@@ -9276,7 +9269,7 @@ var du = function(r) {
9276
9269
  return [g.getBoundable(0).getItem(), g.getBoundable(1).getItem()];
9277
9270
  }
9278
9271
  } else if (arguments.length === 3) {
9279
- var _ = arguments[0], I = arguments[1], C = arguments[2], x = new Ue(_, I), S = new It(this.getRoot(), x, C);
9272
+ var _ = arguments[0], I = arguments[1], C = arguments[2], N = new Ue(_, I), S = new It(this.getRoot(), N, C);
9280
9273
  return this.nearestNeighbour(S)[0];
9281
9274
  }
9282
9275
  }, t.prototype.interfaces_ = function() {
@@ -9666,7 +9659,7 @@ M.prototype.equals = function(t) {
9666
9659
  return this.p0.equals(e.p0) && this.p1.equals(e.p1);
9667
9660
  };
9668
9661
  M.prototype.intersection = function(t) {
9669
- var e = new Mr();
9662
+ var e = new Ar();
9670
9663
  return e.computeIntersection(this.p0, this.p1, t.p0, t.p1), e.hasIntersection() ? e.getIntersection(0) : null;
9671
9664
  };
9672
9665
  M.prototype.project = function() {
@@ -9961,17 +9954,17 @@ rn.toIntArray = function(t) {
9961
9954
  e[n] = t.get(n).intValue();
9962
9955
  return e;
9963
9956
  };
9964
- var Sr = function() {
9957
+ var wr = function() {
9965
9958
  };
9966
- Sr.prototype.computeNodes = function(t) {
9959
+ wr.prototype.computeNodes = function(t) {
9967
9960
  };
9968
- Sr.prototype.getNodedSubstrings = function() {
9961
+ wr.prototype.getNodedSubstrings = function() {
9969
9962
  };
9970
- Sr.prototype.interfaces_ = function() {
9963
+ wr.prototype.interfaces_ = function() {
9971
9964
  return [];
9972
9965
  };
9973
- Sr.prototype.getClass = function() {
9974
- return Sr;
9966
+ wr.prototype.getClass = function() {
9967
+ return wr;
9975
9968
  };
9976
9969
  var so = function() {
9977
9970
  if (this._segInt = null, arguments.length !== 0) {
@@ -9985,7 +9978,7 @@ so.prototype.setSegmentIntersector = function(t) {
9985
9978
  this._segInt = t;
9986
9979
  };
9987
9980
  so.prototype.interfaces_ = function() {
9988
- return [Sr];
9981
+ return [wr];
9989
9982
  };
9990
9983
  so.prototype.getClass = function() {
9991
9984
  return so;
@@ -10211,25 +10204,25 @@ yo.NUM_PTS_TO_CHECK.get = function() {
10211
10204
  return 10;
10212
10205
  };
10213
10206
  Object.defineProperties(dt, yo);
10214
- var Ne = function() {
10207
+ var xe = function() {
10215
10208
  this._ptList = null, this._precisionModel = null, this._minimimVertexDistance = 0, this._ptList = new L();
10216
10209
  }, yu = { COORDINATE_ARRAY_TYPE: { configurable: !0 } };
10217
- Ne.prototype.getCoordinates = function() {
10218
- var t = this._ptList.toArray(Ne.COORDINATE_ARRAY_TYPE);
10210
+ xe.prototype.getCoordinates = function() {
10211
+ var t = this._ptList.toArray(xe.COORDINATE_ARRAY_TYPE);
10219
10212
  return t;
10220
10213
  };
10221
- Ne.prototype.setPrecisionModel = function(t) {
10214
+ xe.prototype.setPrecisionModel = function(t) {
10222
10215
  this._precisionModel = t;
10223
10216
  };
10224
- Ne.prototype.addPt = function(t) {
10217
+ xe.prototype.addPt = function(t) {
10225
10218
  var e = new v(t);
10226
10219
  if (this._precisionModel.makePrecise(e), this.isRedundant(e))
10227
10220
  return null;
10228
10221
  this._ptList.add(e);
10229
10222
  };
10230
- Ne.prototype.revere = function() {
10223
+ xe.prototype.revere = function() {
10231
10224
  };
10232
- Ne.prototype.addPts = function(t, e) {
10225
+ xe.prototype.addPts = function(t, e) {
10233
10226
  var n = this;
10234
10227
  if (e)
10235
10228
  for (var i = 0; i < t.length; i++)
@@ -10238,17 +10231,17 @@ Ne.prototype.addPts = function(t, e) {
10238
10231
  for (var o = t.length - 1; o >= 0; o--)
10239
10232
  n.addPt(t[o]);
10240
10233
  };
10241
- Ne.prototype.isRedundant = function(t) {
10234
+ xe.prototype.isRedundant = function(t) {
10242
10235
  if (this._ptList.size() < 1)
10243
10236
  return !1;
10244
10237
  var e = this._ptList.get(this._ptList.size() - 1), n = t.distance(e);
10245
10238
  return n < this._minimimVertexDistance;
10246
10239
  };
10247
- Ne.prototype.toString = function() {
10240
+ xe.prototype.toString = function() {
10248
10241
  var t = new H(), e = t.createLineString(this.getCoordinates());
10249
10242
  return e.toString();
10250
10243
  };
10251
- Ne.prototype.closeRing = function() {
10244
+ xe.prototype.closeRing = function() {
10252
10245
  if (this._ptList.size() < 1)
10253
10246
  return null;
10254
10247
  var t = new v(this._ptList.get(0)), e = this._ptList.get(this._ptList.size() - 1);
@@ -10256,19 +10249,19 @@ Ne.prototype.closeRing = function() {
10256
10249
  return null;
10257
10250
  this._ptList.add(t);
10258
10251
  };
10259
- Ne.prototype.setMinimumVertexDistance = function(t) {
10252
+ xe.prototype.setMinimumVertexDistance = function(t) {
10260
10253
  this._minimimVertexDistance = t;
10261
10254
  };
10262
- Ne.prototype.interfaces_ = function() {
10255
+ xe.prototype.interfaces_ = function() {
10263
10256
  return [];
10264
10257
  };
10265
- Ne.prototype.getClass = function() {
10266
- return Ne;
10258
+ xe.prototype.getClass = function() {
10259
+ return xe;
10267
10260
  };
10268
10261
  yu.COORDINATE_ARRAY_TYPE.get = function() {
10269
10262
  return new Array(0).fill(null);
10270
10263
  };
10271
- Object.defineProperties(Ne, yu);
10264
+ Object.defineProperties(xe, yu);
10272
10265
  var j = function() {
10273
10266
  }, ii = { PI_TIMES_2: { configurable: !0 }, PI_OVER_2: { configurable: !0 }, PI_OVER_4: { configurable: !0 }, COUNTERCLOCKWISE: { configurable: !0 }, CLOCKWISE: { configurable: !0 }, NONE: { configurable: !0 } };
10274
10267
  j.prototype.interfaces_ = function() {
@@ -10361,7 +10354,7 @@ Object.defineProperties(j, ii);
10361
10354
  var ut = function r() {
10362
10355
  this._maxCurveSegmentError = 0, this._filletAngleQuantum = null, this._closingSegLengthFactor = 1, this._segList = null, this._distance = 0, this._precisionModel = null, this._bufParams = null, this._li = null, this._s0 = null, this._s1 = null, this._s2 = null, this._seg0 = new M(), this._seg1 = new M(), this._offset0 = new M(), this._offset1 = new M(), this._side = 0, this._hasNarrowConcaveAngle = !1;
10363
10356
  var t = arguments[0], e = arguments[1], n = arguments[2];
10364
- this._precisionModel = t, this._bufParams = e, this._li = new Mr(), this._filletAngleQuantum = Math.PI / 2 / e.getQuadrantSegments(), e.getQuadrantSegments() >= 8 && e.getJoinStyle() === J.JOIN_ROUND && (this._closingSegLengthFactor = r.MAX_CLOSING_SEG_LEN_FACTOR), this.init(n);
10357
+ this._precisionModel = t, this._bufParams = e, this._li = new Ar(), this._filletAngleQuantum = Math.PI / 2 / e.getQuadrantSegments(), e.getQuadrantSegments() >= 8 && e.getJoinStyle() === J.JOIN_ROUND && (this._closingSegLengthFactor = r.MAX_CLOSING_SEG_LEN_FACTOR), this.init(n);
10365
10358
  }, mo = { OFFSET_SEGMENT_SEPARATION_FACTOR: { configurable: !0 }, INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR: { configurable: !0 }, CURVE_VERTEX_SNAP_DISTANCE_FACTOR: { configurable: !0 }, MAX_CLOSING_SEG_LEN_FACTOR: { configurable: !0 } };
10366
10359
  ut.prototype.addNextSegment = function(t, e) {
10367
10360
  if (this._s0 = this._s1, this._s1 = this._s2, this._s2 = t, this._seg0.setCoordinates(this._s0, this._s1), this.computeOffsetSegment(this._seg0, this._side, this._distance, this._offset0), this._seg1.setCoordinates(this._s1, this._s2), this.computeOffsetSegment(this._seg1, this._side, this._distance, this._offset1), this._s1.equals(this._s2))
@@ -10474,7 +10467,7 @@ ut.prototype.addBevelJoin = function(t, e) {
10474
10467
  this._segList.addPt(t.p1), this._segList.addPt(e.p0);
10475
10468
  };
10476
10469
  ut.prototype.init = function(t) {
10477
- this._distance = t, this._maxCurveSegmentError = t * (1 - Math.cos(this._filletAngleQuantum / 2)), this._segList = new Ne(), this._segList.setPrecisionModel(this._precisionModel), this._segList.setMinimumVertexDistance(t * ut.CURVE_VERTEX_SNAP_DISTANCE_FACTOR);
10470
+ this._distance = t, this._maxCurveSegmentError = t * (1 - Math.cos(this._filletAngleQuantum / 2)), this._segList = new xe(), this._segList.setPrecisionModel(this._precisionModel), this._segList.setMinimumVertexDistance(t * ut.CURVE_VERTEX_SNAP_DISTANCE_FACTOR);
10478
10471
  };
10479
10472
  ut.prototype.addCollinear = function(t) {
10480
10473
  this._li.computeIntersection(this._s0, this._s1, this._s1, this._s2);
@@ -10647,7 +10640,7 @@ Hr.prototype.findStabbedSegments = function() {
10647
10640
  if (!(h < a.x) && !t._seg.isHorizontal() && !(a.y < t._seg.p0.y || a.y > t._seg.p1.y) && P.computeOrientation(t._seg.p0, t._seg.p1, a) !== P.RIGHT) {
10648
10641
  var g = u.getDepth(w.LEFT);
10649
10642
  t._seg.p0.equals(c[f]) || (g = u.getDepth(w.RIGHT));
10650
- var p = new wr(t._seg, g);
10643
+ var p = new Lr(t._seg, g);
10651
10644
  l.add(p);
10652
10645
  }
10653
10646
  }
@@ -10672,15 +10665,15 @@ Hr.prototype.getClass = function() {
10672
10665
  return Hr;
10673
10666
  };
10674
10667
  mu.DepthSegment.get = function() {
10675
- return wr;
10668
+ return Lr;
10676
10669
  };
10677
10670
  Object.defineProperties(Hr, mu);
10678
- var wr = function() {
10671
+ var Lr = function() {
10679
10672
  this._upwardSeg = null, this._leftDepth = null;
10680
10673
  var t = arguments[0], e = arguments[1];
10681
10674
  this._upwardSeg = new M(t), this._leftDepth = e;
10682
10675
  };
10683
- wr.prototype.compareTo = function(t) {
10676
+ Lr.prototype.compareTo = function(t) {
10684
10677
  var e = t;
10685
10678
  if (this._upwardSeg.minX() >= e._upwardSeg.maxX())
10686
10679
  return 1;
@@ -10689,18 +10682,18 @@ wr.prototype.compareTo = function(t) {
10689
10682
  var n = this._upwardSeg.orientationIndex(e._upwardSeg);
10690
10683
  return n !== 0 || (n = -1 * e._upwardSeg.orientationIndex(this._upwardSeg), n !== 0) ? n : this._upwardSeg.compareTo(e._upwardSeg);
10691
10684
  };
10692
- wr.prototype.compareX = function(t, e) {
10685
+ Lr.prototype.compareX = function(t, e) {
10693
10686
  var n = t.p0.compareTo(e.p0);
10694
10687
  return n !== 0 ? n : t.p1.compareTo(e.p1);
10695
10688
  };
10696
- wr.prototype.toString = function() {
10689
+ Lr.prototype.toString = function() {
10697
10690
  return this._upwardSeg.toString();
10698
10691
  };
10699
- wr.prototype.interfaces_ = function() {
10692
+ Lr.prototype.interfaces_ = function() {
10700
10693
  return [Me];
10701
10694
  };
10702
- wr.prototype.getClass = function() {
10703
- return wr;
10695
+ Lr.prototype.getClass = function() {
10696
+ return Lr;
10704
10697
  };
10705
10698
  var $ = function(t, e, n) {
10706
10699
  this.p0 = t || null, this.p1 = e || null, this.p2 = n || null;
@@ -10837,7 +10830,7 @@ De.prototype.addPolygonRing = function(t, e, n, i, o) {
10837
10830
  De.prototype.add = function(t) {
10838
10831
  if (t.isEmpty())
10839
10832
  return null;
10840
- t instanceof Pt ? this.addPolygon(t) : t instanceof pt ? this.addLineString(t) : t instanceof ge ? this.addPoint(t) : t instanceof yi ? this.addCollection(t) : t instanceof Nr ? this.addCollection(t) : t instanceof xn ? this.addCollection(t) : t instanceof te && this.addCollection(t);
10833
+ t instanceof Pt ? this.addPolygon(t) : t instanceof pt ? this.addLineString(t) : t instanceof ge ? this.addPoint(t) : t instanceof yi ? this.addCollection(t) : t instanceof Sr ? this.addCollection(t) : t instanceof Nn ? this.addCollection(t) : t instanceof te && this.addCollection(t);
10841
10834
  };
10842
10835
  De.prototype.isErodedCompletely = function(t, e) {
10843
10836
  var n = t.getCoordinates();
@@ -10870,14 +10863,14 @@ Ii.prototype.interfaces_ = function() {
10870
10863
  Ii.prototype.getClass = function() {
10871
10864
  return Ii;
10872
10865
  };
10873
- var Nn = function() {
10866
+ var xn = function() {
10874
10867
  this._parent = null, this._atStart = null, this._max = null, this._index = null, this._subcollectionIterator = null;
10875
10868
  var t = arguments[0];
10876
10869
  this._parent = t, this._atStart = !0, this._index = 0, this._max = t.getNumGeometries();
10877
10870
  };
10878
- Nn.prototype.next = function() {
10871
+ xn.prototype.next = function() {
10879
10872
  if (this._atStart)
10880
- return this._atStart = !1, Nn.isAtomic(this._parent) && this._index++, this._parent;
10873
+ return this._atStart = !1, xn.isAtomic(this._parent) && this._index++, this._parent;
10881
10874
  if (this._subcollectionIterator !== null) {
10882
10875
  if (this._subcollectionIterator.hasNext())
10883
10876
  return this._subcollectionIterator.next();
@@ -10886,12 +10879,12 @@ Nn.prototype.next = function() {
10886
10879
  if (this._index >= this._max)
10887
10880
  throw new Bi();
10888
10881
  var t = this._parent.getGeometryN(this._index++);
10889
- return t instanceof te ? (this._subcollectionIterator = new Nn(t), this._subcollectionIterator.next()) : t;
10882
+ return t instanceof te ? (this._subcollectionIterator = new xn(t), this._subcollectionIterator.next()) : t;
10890
10883
  };
10891
- Nn.prototype.remove = function() {
10884
+ xn.prototype.remove = function() {
10892
10885
  throw new Error(this.getClass().getName());
10893
10886
  };
10894
- Nn.prototype.hasNext = function() {
10887
+ xn.prototype.hasNext = function() {
10895
10888
  if (this._atStart)
10896
10889
  return !0;
10897
10890
  if (this._subcollectionIterator !== null) {
@@ -10901,13 +10894,13 @@ Nn.prototype.hasNext = function() {
10901
10894
  }
10902
10895
  return !(this._index >= this._max);
10903
10896
  };
10904
- Nn.prototype.interfaces_ = function() {
10897
+ xn.prototype.interfaces_ = function() {
10905
10898
  return [Fi];
10906
10899
  };
10907
- Nn.prototype.getClass = function() {
10908
- return Nn;
10900
+ xn.prototype.getClass = function() {
10901
+ return xn;
10909
10902
  };
10910
- Nn.isAtomic = function(t) {
10903
+ xn.isAtomic = function(t) {
10911
10904
  return !(t instanceof te);
10912
10905
  };
10913
10906
  var Ee = function() {
@@ -10944,7 +10937,7 @@ Ee.containsPoint = function(t, e) {
10944
10937
  if (e instanceof Pt)
10945
10938
  return Ee.containsPointInPolygon(t, e);
10946
10939
  if (e instanceof te)
10947
- for (var n = new Nn(e); n.hasNext(); ) {
10940
+ for (var n = new xn(e); n.hasNext(); ) {
10948
10941
  var i = n.next();
10949
10942
  if (i !== e && Ee.containsPoint(t, i))
10950
10943
  return !0;
@@ -11082,7 +11075,7 @@ Wt.prototype.interfaces_ = function() {
11082
11075
  Wt.prototype.getClass = function() {
11083
11076
  return Wt;
11084
11077
  };
11085
- var Rc = function(r) {
11078
+ var Pc = function(r) {
11086
11079
  function t() {
11087
11080
  r.call(this), this._resultAreaEdgeList = null, this._label = null, this._SCANNING_FOR_INCOMING = 1, this._LINKING_TO_OUTGOING = 2;
11088
11081
  }
@@ -11240,7 +11233,7 @@ var Rc = function(r) {
11240
11233
  r.apply(this, arguments);
11241
11234
  }
11242
11235
  return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t.prototype.createNode = function(n) {
11243
- return new ns(n, new Rc());
11236
+ return new ns(n, new Pc());
11244
11237
  }, t.prototype.interfaces_ = function() {
11245
11238
  return [];
11246
11239
  }, t.prototype.getClass = function() {
@@ -11328,17 +11321,17 @@ Xe.prototype.interfaces_ = function() {
11328
11321
  Xe.prototype.getClass = function() {
11329
11322
  return Xe;
11330
11323
  };
11331
- var Lr = function() {
11324
+ var br = function() {
11332
11325
  };
11333
- Lr.prototype.processIntersections = function(t, e, n, i) {
11326
+ br.prototype.processIntersections = function(t, e, n, i) {
11334
11327
  };
11335
- Lr.prototype.isDone = function() {
11328
+ br.prototype.isDone = function() {
11336
11329
  };
11337
- Lr.prototype.interfaces_ = function() {
11330
+ br.prototype.interfaces_ = function() {
11338
11331
  return [];
11339
11332
  };
11340
- Lr.prototype.getClass = function() {
11341
- return Lr;
11333
+ br.prototype.getClass = function() {
11334
+ return br;
11342
11335
  };
11343
11336
  var Se = function() {
11344
11337
  this._hasIntersection = !1, this._hasProper = !1, this._hasProperInterior = !1, this._hasInterior = !1, this._properIntersectionPoint = null, this._li = null, this._isSelfIntersection = null, this.numIntersections = 0, this.numInteriorIntersections = 0, this.numProperIntersections = 0, this.numTests = 0;
@@ -11386,7 +11379,7 @@ Se.prototype.hasInteriorIntersection = function() {
11386
11379
  return this._hasInterior;
11387
11380
  };
11388
11381
  Se.prototype.interfaces_ = function() {
11389
- return [Lr];
11382
+ return [br];
11390
11383
  };
11391
11384
  Se.prototype.getClass = function() {
11392
11385
  return Se;
@@ -11484,19 +11477,19 @@ Pn.prototype.interfaces_ = function() {
11484
11477
  Pn.prototype.getClass = function() {
11485
11478
  return Pn;
11486
11479
  };
11487
- var br = function() {
11480
+ var Pr = function() {
11488
11481
  };
11489
- br.prototype.getChainStartIndices = function(t) {
11482
+ Pr.prototype.getChainStartIndices = function(t) {
11490
11483
  var e = this, n = 0, i = new L();
11491
11484
  i.add(new on(n));
11492
11485
  do {
11493
11486
  var o = e.findChainEnd(t, n);
11494
11487
  i.add(new on(o)), n = o;
11495
11488
  } while (n < t.length - 1);
11496
- var s = br.toIntArray(i);
11489
+ var s = Pr.toIntArray(i);
11497
11490
  return s;
11498
11491
  };
11499
- br.prototype.findChainEnd = function(t, e) {
11492
+ Pr.prototype.findChainEnd = function(t, e) {
11500
11493
  for (var n = nt.quadrant(t[e], t[e + 1]), i = e + 1; i < t.length; ) {
11501
11494
  var o = nt.quadrant(t[i - 1], t[i]);
11502
11495
  if (o !== n)
@@ -11505,13 +11498,13 @@ br.prototype.findChainEnd = function(t, e) {
11505
11498
  }
11506
11499
  return i - 1;
11507
11500
  };
11508
- br.prototype.interfaces_ = function() {
11501
+ Pr.prototype.interfaces_ = function() {
11509
11502
  return [];
11510
11503
  };
11511
- br.prototype.getClass = function() {
11512
- return br;
11504
+ Pr.prototype.getClass = function() {
11505
+ return Pr;
11513
11506
  };
11514
- br.toIntArray = function(t) {
11507
+ Pr.toIntArray = function(t) {
11515
11508
  for (var e = new Array(t.size()).fill(null), n = 0; n < e.length; n++)
11516
11509
  e[n] = t.get(n).intValue();
11517
11510
  return e;
@@ -11520,7 +11513,7 @@ var Kn = function() {
11520
11513
  this.e = null, this.pts = null, this.startIndex = null, this.env1 = new T(), this.env2 = new T();
11521
11514
  var t = arguments[0];
11522
11515
  this.e = t, this.pts = t.getCoordinates();
11523
- var e = new br();
11516
+ var e = new Pr();
11524
11517
  this.startIndex = e.getChainStartIndices(this.pts);
11525
11518
  };
11526
11519
  Kn.prototype.getCoordinates = function() {
@@ -11755,7 +11748,7 @@ var Bo = function(r) {
11755
11748
  } else
11756
11749
  return r.prototype.updateIM.apply(this, arguments);
11757
11750
  }, t;
11758
- }(xe), $t = function(t) {
11751
+ }(Ne), $t = function(t) {
11759
11752
  this._workingPrecisionModel = null, this._workingNoder = null, this._geomFact = null, this._graph = null, this._edgeList = new Xe(), this._bufParams = t || null;
11760
11753
  };
11761
11754
  $t.prototype.setWorkingPrecisionModel = function(t) {
@@ -11794,7 +11787,7 @@ $t.prototype.createEmptyResultGeometry = function() {
11794
11787
  $t.prototype.getNoder = function(t) {
11795
11788
  if (this._workingNoder !== null)
11796
11789
  return this._workingNoder;
11797
- var e = new Vs(), n = new Mr();
11790
+ var e = new Vs(), n = new Ar();
11798
11791
  return n.setPrecisionModel(t), e.setSegmentIntersector(new Se(n)), e;
11799
11792
  };
11800
11793
  $t.prototype.buffer = function(t, e) {
@@ -11892,13 +11885,13 @@ ur.prototype.computeNodes = function(t) {
11892
11885
  this._isScaled && (e = this.scale(t)), this._noder.computeNodes(e);
11893
11886
  };
11894
11887
  ur.prototype.interfaces_ = function() {
11895
- return [Sr];
11888
+ return [wr];
11896
11889
  };
11897
11890
  ur.prototype.getClass = function() {
11898
11891
  return ur;
11899
11892
  };
11900
11893
  var hn = function() {
11901
- this._li = new Mr(), this._segStrings = null;
11894
+ this._li = new Ar(), this._segStrings = null;
11902
11895
  var t = arguments[0];
11903
11896
  this._segStrings = t;
11904
11897
  }, Iu = { fact: { configurable: !0 } };
@@ -12052,13 +12045,13 @@ var Ci = function() {
12052
12045
  this._index = null;
12053
12046
  var t = arguments[0];
12054
12047
  this._index = t;
12055
- }, xu = { HotPixelSnapAction: { configurable: !0 } };
12048
+ }, Nu = { HotPixelSnapAction: { configurable: !0 } };
12056
12049
  Ci.prototype.snap = function() {
12057
12050
  if (arguments.length === 1) {
12058
12051
  var t = arguments[0];
12059
12052
  return this.snap(t, null, -1);
12060
12053
  } else if (arguments.length === 3) {
12061
- var e = arguments[0], n = arguments[1], i = arguments[2], o = e.getSafeEnvelope(), s = new Nu(e, n, i);
12054
+ var e = arguments[0], n = arguments[1], i = arguments[2], o = e.getSafeEnvelope(), s = new xu(e, n, i);
12062
12055
  return this._index.query(o, {
12063
12056
  interfaces_: function() {
12064
12057
  return [or];
@@ -12076,11 +12069,11 @@ Ci.prototype.interfaces_ = function() {
12076
12069
  Ci.prototype.getClass = function() {
12077
12070
  return Ci;
12078
12071
  };
12079
- xu.HotPixelSnapAction.get = function() {
12080
- return Nu;
12072
+ Nu.HotPixelSnapAction.get = function() {
12073
+ return xu;
12081
12074
  };
12082
- Object.defineProperties(Ci, xu);
12083
- var Nu = function(r) {
12075
+ Object.defineProperties(Ci, Nu);
12076
+ var xu = function(r) {
12084
12077
  function t() {
12085
12078
  r.call(this), this._hotPixel = null, this._parentEdge = null, this._hotPixelVertexIndex = null, this._isNodeAdded = !1;
12086
12079
  var e = arguments[0], n = arguments[1], i = arguments[2];
@@ -12124,7 +12117,7 @@ Wr.prototype.getInteriorIntersections = function() {
12124
12117
  return this._interiorIntersections;
12125
12118
  };
12126
12119
  Wr.prototype.interfaces_ = function() {
12127
- return [Lr];
12120
+ return [br];
12128
12121
  };
12129
12122
  Wr.prototype.getClass = function() {
12130
12123
  return Wr;
@@ -12132,7 +12125,7 @@ Wr.prototype.getClass = function() {
12132
12125
  var Rn = function() {
12133
12126
  this._pm = null, this._li = null, this._scaleFactor = null, this._noder = null, this._pointSnapper = null, this._nodedSegStrings = null;
12134
12127
  var t = arguments[0];
12135
- this._pm = t, this._li = new Mr(), this._li.setPrecisionModel(t), this._scaleFactor = t.getScale();
12128
+ this._pm = t, this._li = new Ar(), this._li.setPrecisionModel(t), this._scaleFactor = t.getScale();
12136
12129
  };
12137
12130
  Rn.prototype.checkCorrectness = function(t) {
12138
12131
  var e = Et.getNodedSubstrings(t), n = new hn(e);
@@ -12180,7 +12173,7 @@ Rn.prototype.computeIntersectionSnaps = function(t) {
12180
12173
  }
12181
12174
  };
12182
12175
  Rn.prototype.interfaces_ = function() {
12183
- return [Sr];
12176
+ return [wr];
12184
12177
  };
12185
12178
  Rn.prototype.getClass = function() {
12186
12179
  return Rn;
@@ -12270,8 +12263,8 @@ Bt.bufferOp = function() {
12270
12263
  } else if (arguments.length === 4) {
12271
12264
  var m = arguments[0], d = arguments[1], _ = arguments[2], I = arguments[3], C = new Bt(m);
12272
12265
  C.setQuadrantSegments(_), C.setEndCapStyle(I);
12273
- var x = C.getResultGeometry(d);
12274
- return x;
12266
+ var N = C.getResultGeometry(d);
12267
+ return N;
12275
12268
  }
12276
12269
  };
12277
12270
  Bt.precisionScaleFactor = function(t, e, n) {
@@ -12381,32 +12374,32 @@ In.computeDistance = function() {
12381
12374
  else
12382
12375
  p.setMinimum(h.getCoordinate(), g);
12383
12376
  } else if (arguments[2] instanceof Kt && arguments[0] instanceof M && arguments[1] instanceof v) {
12384
- var I = arguments[0], C = arguments[1], x = arguments[2], S = I.closestPoint(C);
12385
- x.setMinimum(S, C);
12377
+ var I = arguments[0], C = arguments[1], N = arguments[2], S = I.closestPoint(C);
12378
+ N.setMinimum(S, C);
12386
12379
  }
12387
12380
  };
12388
- var Pr = function(t) {
12381
+ var Rr = function(t) {
12389
12382
  this._maxPtDist = new Kt(), this._inputGeom = t || null;
12390
12383
  }, Us = { MaxPointDistanceFilter: { configurable: !0 }, MaxMidpointDistanceFilter: { configurable: !0 } };
12391
- Pr.prototype.computeMaxMidpointDistance = function(t) {
12384
+ Rr.prototype.computeMaxMidpointDistance = function(t) {
12392
12385
  var e = new lr(this._inputGeom);
12393
12386
  t.apply(e), this._maxPtDist.setMaximum(e.getMaxPointDistance());
12394
12387
  };
12395
- Pr.prototype.computeMaxVertexDistance = function(t) {
12388
+ Rr.prototype.computeMaxVertexDistance = function(t) {
12396
12389
  var e = new jr(this._inputGeom);
12397
12390
  t.apply(e), this._maxPtDist.setMaximum(e.getMaxPointDistance());
12398
12391
  };
12399
- Pr.prototype.findDistance = function(t) {
12392
+ Rr.prototype.findDistance = function(t) {
12400
12393
  return this.computeMaxVertexDistance(t), this.computeMaxMidpointDistance(t), this._maxPtDist.getDistance();
12401
12394
  };
12402
- Pr.prototype.getDistancePoints = function() {
12395
+ Rr.prototype.getDistancePoints = function() {
12403
12396
  return this._maxPtDist;
12404
12397
  };
12405
- Pr.prototype.interfaces_ = function() {
12398
+ Rr.prototype.interfaces_ = function() {
12406
12399
  return [];
12407
12400
  };
12408
- Pr.prototype.getClass = function() {
12409
- return Pr;
12401
+ Rr.prototype.getClass = function() {
12402
+ return Rr;
12410
12403
  };
12411
12404
  Us.MaxPointDistanceFilter.get = function() {
12412
12405
  return jr;
@@ -12414,7 +12407,7 @@ Us.MaxPointDistanceFilter.get = function() {
12414
12407
  Us.MaxMidpointDistanceFilter.get = function() {
12415
12408
  return lr;
12416
12409
  };
12417
- Object.defineProperties(Pr, Us);
12410
+ Object.defineProperties(Rr, Us);
12418
12411
  var jr = function(t) {
12419
12412
  this._maxPtDist = new Kt(), this._minPtDist = new Kt(), this._geom = t || null;
12420
12413
  };
@@ -12595,18 +12588,18 @@ Ye.prototype.computeLocation = function(t, e) {
12595
12588
  this.updateLocationInfo(this.locateInternal(t, e));
12596
12589
  else if (e instanceof Pt)
12597
12590
  this.updateLocationInfo(this.locateInternal(t, e));
12598
- else if (e instanceof Nr)
12591
+ else if (e instanceof Sr)
12599
12592
  for (var i = e, o = 0; o < i.getNumGeometries(); o++) {
12600
12593
  var s = i.getGeometryN(o);
12601
12594
  n.updateLocationInfo(n.locateInternal(t, s));
12602
12595
  }
12603
- else if (e instanceof xn)
12596
+ else if (e instanceof Nn)
12604
12597
  for (var a = e, u = 0; u < a.getNumGeometries(); u++) {
12605
12598
  var l = a.getGeometryN(u);
12606
12599
  n.updateLocationInfo(n.locateInternal(t, l));
12607
12600
  }
12608
12601
  else if (e instanceof te)
12609
- for (var c = new Nn(e); c.hasNext(); ) {
12602
+ for (var c = new xn(e); c.hasNext(); ) {
12610
12603
  var f = c.next();
12611
12604
  f !== e && n.computeLocation(t, f);
12612
12605
  }
@@ -12783,7 +12776,7 @@ zt.prototype.computeMinDistance = function() {
12783
12776
  var I = P.distanceLineLine(p[d], p[d + 1], m[_], m[_ + 1]);
12784
12777
  if (I < t._minDistance) {
12785
12778
  t._minDistance = I;
12786
- var C = new M(p[d], p[d + 1]), x = new M(m[_], m[_ + 1]), S = C.closestPoints(x);
12779
+ var C = new M(p[d], p[d + 1]), N = new M(m[_], m[_ + 1]), S = C.closestPoints(N);
12787
12780
  g[0] = new Qt(f, d, S[0]), g[1] = new Qt(h, _, S[1]);
12788
12781
  }
12789
12782
  if (t._minDistance <= t._terminateDistance)
@@ -12921,8 +12914,8 @@ tn.computeDistance = function() {
12921
12914
  else
12922
12915
  p.setMinimum(h.getCoordinate(), g);
12923
12916
  } else if (arguments[2] instanceof Xt && arguments[0] instanceof M && arguments[1] instanceof v) {
12924
- var I = arguments[0], C = arguments[1], x = arguments[2], S = I.closestPoint(C);
12925
- x.setMinimum(S, C);
12917
+ var I = arguments[0], C = arguments[1], N = arguments[2], S = I.closestPoint(C);
12918
+ N.setMinimum(S, C);
12926
12919
  }
12927
12920
  };
12928
12921
  var Pe = function() {
@@ -13038,7 +13031,7 @@ he.prototype.isValid = function() {
13038
13031
  return this._minValidDistance = t - e, this._maxValidDistance = t + e, this._input.isEmpty() || this._result.isEmpty() ? !0 : (this._bufDistance > 0 ? this.checkPositiveValid() : this.checkNegativeValid(), he.VERBOSE && Gt.out.println("Min Dist= " + this._minDistanceFound + " err= " + (1 - this._minDistanceFound / this._bufDistance) + " Max Dist= " + this._maxDistanceFound + " err= " + (this._maxDistanceFound / this._bufDistance - 1)), this._isValid);
13039
13032
  };
13040
13033
  he.prototype.checkNegativeValid = function() {
13041
- if (!(this._input instanceof Pt || this._input instanceof xn || this._input instanceof te))
13034
+ if (!(this._input instanceof Pt || this._input instanceof Nn || this._input instanceof te))
13042
13035
  return null;
13043
13036
  var t = this.getPolygonLines(this._input);
13044
13037
  if (this.checkMinimumDistance(t, this._result, this._minValidDistance), !this._isValid)
@@ -13113,7 +13106,7 @@ Vt.prototype.checkArea = function() {
13113
13106
  this._distance > 0 && t > e && (this._isValid = !1, this._errorMsg = "Area of positive buffer is smaller than input", this._errorIndicator = this._result), this._distance < 0 && t < e && (this._isValid = !1, this._errorMsg = "Area of negative buffer is larger than input", this._errorIndicator = this._result), this.report("Area");
13114
13107
  };
13115
13108
  Vt.prototype.checkPolygonal = function() {
13116
- this._result instanceof Pt || this._result instanceof xn || (this._isValid = !1), this._errorMsg = "Result is not polygonal", this._errorIndicator = this._result, this.report("Polygonal");
13109
+ this._result instanceof Pt || this._result instanceof Nn || (this._isValid = !1), this._errorMsg = "Result is not polygonal", this._errorIndicator = this._result, this.report("Polygonal");
13117
13110
  };
13118
13111
  Vt.prototype.getErrorIndicator = function() {
13119
13112
  return this._errorIndicator;
@@ -13237,7 +13230,7 @@ Dt.prototype.isDone = function() {
13237
13230
  return this._findAllIntersections ? !1 : this._interiorIntersection !== null;
13238
13231
  };
13239
13232
  Dt.prototype.interfaces_ = function() {
13240
- return [Lr];
13233
+ return [br];
13241
13234
  };
13242
13235
  Dt.prototype.getClass = function() {
13243
13236
  return Dt;
@@ -13254,7 +13247,7 @@ Dt.createIntersectionCounter = function(t) {
13254
13247
  return e.setFindAllIntersections(!0), e.setKeepIntersections(!1), e;
13255
13248
  };
13256
13249
  var He = function() {
13257
- this._li = new Mr(), this._segStrings = null, this._findAllIntersections = !1, this._segInt = null, this._isValid = !0;
13250
+ this._li = new Ar(), this._segStrings = null, this._findAllIntersections = !1, this._segInt = null, this._isValid = !0;
13258
13251
  var t = arguments[0];
13259
13252
  this._segStrings = t;
13260
13253
  };
@@ -13298,29 +13291,29 @@ He.computeIntersections = function(t) {
13298
13291
  var e = new He(t);
13299
13292
  return e.setFindAllIntersections(!0), e.isValid(), e.getIntersections();
13300
13293
  };
13301
- var Rr = function r() {
13294
+ var Or = function r() {
13302
13295
  this._nv = null;
13303
13296
  var t = arguments[0];
13304
13297
  this._nv = new He(r.toSegmentStrings(t));
13305
13298
  };
13306
- Rr.prototype.checkValid = function() {
13299
+ Or.prototype.checkValid = function() {
13307
13300
  this._nv.checkValid();
13308
13301
  };
13309
- Rr.prototype.interfaces_ = function() {
13302
+ Or.prototype.interfaces_ = function() {
13310
13303
  return [];
13311
13304
  };
13312
- Rr.prototype.getClass = function() {
13313
- return Rr;
13305
+ Or.prototype.getClass = function() {
13306
+ return Or;
13314
13307
  };
13315
- Rr.toSegmentStrings = function(t) {
13308
+ Or.toSegmentStrings = function(t) {
13316
13309
  for (var e = new L(), n = t.iterator(); n.hasNext(); ) {
13317
13310
  var i = n.next();
13318
13311
  e.add(new gn(i.getCoordinates(), i));
13319
13312
  }
13320
13313
  return e;
13321
13314
  };
13322
- Rr.checkValid = function(t) {
13323
- var e = new Rr(t);
13315
+ Or.checkValid = function(t) {
13316
+ var e = new Or(t);
13324
13317
  e.checkValid();
13325
13318
  };
13326
13319
  var Jr = function(t) {
@@ -13502,11 +13495,11 @@ le.prototype.transform = function(t) {
13502
13495
  return this.transformLinearRing(t, null);
13503
13496
  if (t instanceof pt)
13504
13497
  return this.transformLineString(t, null);
13505
- if (t instanceof Nr)
13498
+ if (t instanceof Sr)
13506
13499
  return this.transformMultiLineString(t, null);
13507
13500
  if (t instanceof Pt)
13508
13501
  return this.transformPolygon(t, null);
13509
- if (t instanceof xn)
13502
+ if (t instanceof Nn)
13510
13503
  return this.transformMultiPolygon(t, null);
13511
13504
  if (t instanceof te)
13512
13505
  return this.transformGeometryCollection(t, null);
@@ -14017,7 +14010,7 @@ Ut.prototype.getClass = function() {
14017
14010
  Ut.isAdjacentSegments = function(t, e) {
14018
14011
  return Math.abs(t - e) === 1;
14019
14012
  };
14020
- var Oc = function(r) {
14013
+ var Rc = function(r) {
14021
14014
  function t() {
14022
14015
  r.call(this), this.events = new L(), this.nOverlaps = null;
14023
14016
  }
@@ -14114,7 +14107,7 @@ lo.prototype.interfaces_ = function() {
14114
14107
  lo.prototype.getClass = function() {
14115
14108
  return lo;
14116
14109
  };
14117
- var Dc = function(r) {
14110
+ var Oc = function(r) {
14118
14111
  function t() {
14119
14112
  r.call(this), this._item = null;
14120
14113
  var e = arguments[0], n = arguments[1], i = arguments[2];
@@ -14129,7 +14122,7 @@ var Dc = function(r) {
14129
14122
  }, t.prototype.getClass = function() {
14130
14123
  return t;
14131
14124
  }, t;
14132
- }(Dn), Tc = function(r) {
14125
+ }(Dn), Dc = function(r) {
14133
14126
  function t() {
14134
14127
  r.call(this), this._node1 = null, this._node2 = null;
14135
14128
  var e = arguments[0], n = arguments[1];
@@ -14161,7 +14154,7 @@ Tn.prototype.buildTree = function() {
14161
14154
  Tn.prototype.insert = function(t, e, n) {
14162
14155
  if (this._root !== null)
14163
14156
  throw new Error("Index cannot be added to once it has been queried");
14164
- this._leaves.add(new Dc(t, e, n));
14157
+ this._leaves.add(new Oc(t, e, n));
14165
14158
  };
14166
14159
  Tn.prototype.query = function(t, e, n) {
14167
14160
  this.init(), this._root.query(t, e, n);
@@ -14186,7 +14179,7 @@ Tn.prototype.buildLevel = function(t, e) {
14186
14179
  if (o === null)
14187
14180
  e.add(i);
14188
14181
  else {
14189
- var s = new Tc(t.get(n), t.get(n + 1));
14182
+ var s = new Dc(t.get(n), t.get(n + 1));
14190
14183
  e.add(s);
14191
14184
  }
14192
14185
  }
@@ -14197,45 +14190,45 @@ Tn.prototype.interfaces_ = function() {
14197
14190
  Tn.prototype.getClass = function() {
14198
14191
  return Tn;
14199
14192
  };
14200
- var xi = function() {
14193
+ var Ni = function() {
14201
14194
  this._items = new L();
14202
14195
  };
14203
- xi.prototype.visitItem = function(t) {
14196
+ Ni.prototype.visitItem = function(t) {
14204
14197
  this._items.add(t);
14205
14198
  };
14206
- xi.prototype.getItems = function() {
14199
+ Ni.prototype.getItems = function() {
14207
14200
  return this._items;
14208
14201
  };
14209
- xi.prototype.interfaces_ = function() {
14202
+ Ni.prototype.interfaces_ = function() {
14210
14203
  return [or];
14211
14204
  };
14212
- xi.prototype.getClass = function() {
14213
- return xi;
14205
+ Ni.prototype.getClass = function() {
14206
+ return Ni;
14214
14207
  };
14215
- var Ni = function() {
14208
+ var xi = function() {
14216
14209
  this._index = null;
14217
14210
  var t = arguments[0];
14218
14211
  if (!G(t, ir))
14219
14212
  throw new lt("Argument must be Polygonal");
14220
- this._index = new Or(t);
14213
+ this._index = new Dr(t);
14221
14214
  }, js = { SegmentVisitor: { configurable: !0 }, IntervalIndexedGeometry: { configurable: !0 } };
14222
- Ni.prototype.locate = function(t) {
14215
+ xi.prototype.locate = function(t) {
14223
14216
  var e = new nn(t), n = new Si(e);
14224
14217
  return this._index.query(t.y, t.y, n), e.getLocation();
14225
14218
  };
14226
- Ni.prototype.interfaces_ = function() {
14219
+ xi.prototype.interfaces_ = function() {
14227
14220
  return [Ii];
14228
14221
  };
14229
- Ni.prototype.getClass = function() {
14230
- return Ni;
14222
+ xi.prototype.getClass = function() {
14223
+ return xi;
14231
14224
  };
14232
14225
  js.SegmentVisitor.get = function() {
14233
14226
  return Si;
14234
14227
  };
14235
14228
  js.IntervalIndexedGeometry.get = function() {
14236
- return Or;
14229
+ return Dr;
14237
14230
  };
14238
- Object.defineProperties(Ni, js);
14231
+ Object.defineProperties(xi, js);
14239
14232
  var Si = function() {
14240
14233
  this._counter = null;
14241
14234
  var t = arguments[0];
@@ -14251,37 +14244,37 @@ Si.prototype.interfaces_ = function() {
14251
14244
  Si.prototype.getClass = function() {
14252
14245
  return Si;
14253
14246
  };
14254
- var Or = function() {
14247
+ var Dr = function() {
14255
14248
  this._index = new Tn();
14256
14249
  var t = arguments[0];
14257
14250
  this.init(t);
14258
14251
  };
14259
- Or.prototype.init = function(t) {
14252
+ Dr.prototype.init = function(t) {
14260
14253
  for (var e = this, n = Ft.getLines(t), i = n.iterator(); i.hasNext(); ) {
14261
14254
  var o = i.next(), s = o.getCoordinates();
14262
14255
  e.addLine(s);
14263
14256
  }
14264
14257
  };
14265
- Or.prototype.addLine = function(t) {
14258
+ Dr.prototype.addLine = function(t) {
14266
14259
  for (var e = this, n = 1; n < t.length; n++) {
14267
14260
  var i = new M(t[n - 1], t[n]), o = Math.min(i.p0.y, i.p1.y), s = Math.max(i.p0.y, i.p1.y);
14268
14261
  e._index.insert(o, s, i);
14269
14262
  }
14270
14263
  };
14271
- Or.prototype.query = function() {
14264
+ Dr.prototype.query = function() {
14272
14265
  if (arguments.length === 2) {
14273
- var t = arguments[0], e = arguments[1], n = new xi();
14266
+ var t = arguments[0], e = arguments[1], n = new Ni();
14274
14267
  return this._index.query(t, e, n), n.getItems();
14275
14268
  } else if (arguments.length === 3) {
14276
14269
  var i = arguments[0], o = arguments[1], s = arguments[2];
14277
14270
  this._index.query(i, o, s);
14278
14271
  }
14279
14272
  };
14280
- Or.prototype.interfaces_ = function() {
14273
+ Dr.prototype.interfaces_ = function() {
14281
14274
  return [];
14282
14275
  };
14283
- Or.prototype.getClass = function() {
14284
- return Or;
14276
+ Dr.prototype.getClass = function() {
14277
+ return Dr;
14285
14278
  };
14286
14279
  var Vi = function(r) {
14287
14280
  function t() {
@@ -14305,7 +14298,7 @@ var Vi = function(r) {
14305
14298
  } else if (arguments.length === 3) {
14306
14299
  var o = arguments[0], s = arguments[1], a = arguments[2], u = new Ut(o, !0, !1);
14307
14300
  u.setIsDoneIfProperInt(a);
14308
- var l = this.createEdgeSetIntersector(), c = this._parentGeom instanceof wn || this._parentGeom instanceof Pt || this._parentGeom instanceof xn, f = s || !c;
14301
+ var l = this.createEdgeSetIntersector(), c = this._parentGeom instanceof wn || this._parentGeom instanceof Pt || this._parentGeom instanceof Nn, f = s || !c;
14309
14302
  return l.computeIntersections(this._edges, u, f), this.addSelfIntersectionNodes(this._argIndex), u;
14310
14303
  }
14311
14304
  }, t.prototype.computeSplitEdges = function(n) {
@@ -14377,7 +14370,7 @@ var Vi = function(r) {
14377
14370
  var s = this._nodes.addNode(i), a = s.getLabel();
14378
14371
  a === null ? s._label = new tt(n, o) : a.setLocation(n, o);
14379
14372
  }, t.prototype.createEdgeSetIntersector = function() {
14380
- return new Oc();
14373
+ return new Rc();
14381
14374
  }, t.prototype.addSelfIntersectionNodes = function(n) {
14382
14375
  for (var i = this, o = this._edges.iterator(); o.hasNext(); )
14383
14376
  for (var s = o.next(), a = s.getLabel().getLocation(n), u = s.eiList.iterator(); u.hasNext(); ) {
@@ -14389,7 +14382,7 @@ var Vi = function(r) {
14389
14382
  var n = arguments[0];
14390
14383
  if (n.isEmpty())
14391
14384
  return null;
14392
- if (n instanceof xn && (this._useBoundaryDeterminationRule = !1), n instanceof Pt)
14385
+ if (n instanceof Nn && (this._useBoundaryDeterminationRule = !1), n instanceof Pt)
14393
14386
  this.addPolygon(n);
14394
14387
  else if (n instanceof pt)
14395
14388
  this.addLineString(n);
@@ -14397,9 +14390,9 @@ var Vi = function(r) {
14397
14390
  this.addPoint(n);
14398
14391
  else if (n instanceof yi)
14399
14392
  this.addCollection(n);
14400
- else if (n instanceof Nr)
14393
+ else if (n instanceof Sr)
14401
14394
  this.addCollection(n);
14402
- else if (n instanceof xn)
14395
+ else if (n instanceof Nn)
14403
14396
  this.addCollection(n);
14404
14397
  else if (n instanceof te)
14405
14398
  this.addCollection(n);
@@ -14413,7 +14406,7 @@ var Vi = function(r) {
14413
14406
  i.add(s);
14414
14407
  }
14415
14408
  }, t.prototype.locate = function(n) {
14416
- return G(this._parentGeom, ir) && this._parentGeom.getNumGeometries() > 50 ? (this._areaPtLocator === null && (this._areaPtLocator = new Ni(this._parentGeom)), this._areaPtLocator.locate(n)) : this._ptLocator.locate(n, this._parentGeom);
14409
+ return G(this._parentGeom, ir) && this._parentGeom.getNumGeometries() > 50 ? (this._areaPtLocator === null && (this._areaPtLocator = new xi(this._parentGeom)), this._areaPtLocator.locate(n)) : this._ptLocator.locate(n, this._parentGeom);
14417
14410
  }, t.prototype.findEdge = function() {
14418
14411
  if (arguments.length === 1) {
14419
14412
  var n = arguments[0];
@@ -14428,7 +14421,7 @@ var Vi = function(r) {
14428
14421
  return n.isInBoundary(i) ? y.BOUNDARY : y.INTERIOR;
14429
14422
  }, t;
14430
14423
  }(ht), wi = function() {
14431
- if (this._li = new Mr(), this._resultPrecisionModel = null, this._arg = null, arguments.length === 1) {
14424
+ if (this._li = new Ar(), this._resultPrecisionModel = null, this._arg = null, arguments.length === 1) {
14432
14425
  var t = arguments[0];
14433
14426
  this.setComputationPrecision(t.getPrecisionModel()), this._arg = new Array(1).fill(null), this._arg[0] = new Vi(0, t);
14434
14427
  } else if (arguments.length === 2) {
@@ -14451,22 +14444,22 @@ wi.prototype.interfaces_ = function() {
14451
14444
  wi.prototype.getClass = function() {
14452
14445
  return wi;
14453
14446
  };
14454
- var Ir = function() {
14447
+ var Cr = function() {
14455
14448
  };
14456
- Ir.prototype.interfaces_ = function() {
14449
+ Cr.prototype.interfaces_ = function() {
14457
14450
  return [];
14458
14451
  };
14459
- Ir.prototype.getClass = function() {
14460
- return Ir;
14452
+ Cr.prototype.getClass = function() {
14453
+ return Cr;
14461
14454
  };
14462
- Ir.map = function() {
14463
- if (arguments[0] instanceof k && G(arguments[1], Ir.MapOp)) {
14455
+ Cr.map = function() {
14456
+ if (arguments[0] instanceof k && G(arguments[1], Cr.MapOp)) {
14464
14457
  for (var t = arguments[0], e = arguments[1], n = new L(), i = 0; i < t.getNumGeometries(); i++) {
14465
14458
  var o = e.map(t.getGeometryN(i));
14466
14459
  o !== null && n.add(o);
14467
14460
  }
14468
14461
  return t.getFactory().buildGeometry(n);
14469
- } else if (G(arguments[0], St) && G(arguments[1], Ir.MapOp)) {
14462
+ } else if (G(arguments[0], St) && G(arguments[1], Cr.MapOp)) {
14470
14463
  for (var s = arguments[0], a = arguments[1], u = new L(), l = s.iterator(); l.hasNext(); ) {
14471
14464
  var c = l.next(), f = a.map(c);
14472
14465
  f !== null && u.add(f);
@@ -14474,7 +14467,7 @@ Ir.map = function() {
14474
14467
  return u;
14475
14468
  }
14476
14469
  };
14477
- Ir.MapOp = function() {
14470
+ Cr.MapOp = function() {
14478
14471
  };
14479
14472
  var U = function(r) {
14480
14473
  function t() {
@@ -14535,7 +14528,7 @@ var U = function(r) {
14535
14528
  }, t.prototype.computeOverlay = function(n) {
14536
14529
  this.copyPoints(0), this.copyPoints(1), this._arg[0].computeSelfNodes(this._li, !1), this._arg[1].computeSelfNodes(this._li, !1), this._arg[0].computeEdgeIntersections(this._arg[1], this._li, !0);
14537
14530
  var i = new L();
14538
- this._arg[0].computeSplitEdges(i), this._arg[1].computeSplitEdges(i), this.insertUniqueEdges(i), this.computeLabelsFromDepths(), this.replaceCollapsedEdges(), Rr.checkValid(this._edgeList.getEdges()), this._graph.addEdges(this._edgeList.getEdges()), this.computeLabelling(), this.labelIncompleteNodes(), this.findResultAreaEdges(n), this.cancelDuplicateResultEdges();
14531
+ this._arg[0].computeSplitEdges(i), this._arg[1].computeSplitEdges(i), this.insertUniqueEdges(i), this.computeLabelsFromDepths(), this.replaceCollapsedEdges(), Or.checkValid(this._edgeList.getEdges()), this._graph.addEdges(this._edgeList.getEdges()), this.computeLabelling(), this.labelIncompleteNodes(), this.findResultAreaEdges(n), this.cancelDuplicateResultEdges();
14539
14532
  var o = new pe(this._geomFact);
14540
14533
  o.add(this._graph), this._resultPolyList = o.getPolygons();
14541
14534
  var s = new pn(this, this._geomFact, this._ptLocator);
@@ -14594,7 +14587,7 @@ U.intersection = function(r, t) {
14594
14587
  var e = t;
14595
14588
  return Jr.map(r, {
14596
14589
  interfaces_: function() {
14597
- return [Ir.MapOp];
14590
+ return [Cr.MapOp];
14598
14591
  },
14599
14592
  map: function(n) {
14600
14593
  return n.intersection(e);
@@ -14727,26 +14720,26 @@ Li.prototype.interfaces_ = function() {
14727
14720
  Li.prototype.getClass = function() {
14728
14721
  return Li;
14729
14722
  };
14730
- var Dr = function() {
14723
+ var Tr = function() {
14731
14724
  this._g = null, this._doLeft = !0, this._doRight = !0;
14732
14725
  var t = arguments[0];
14733
14726
  this._g = t;
14734
14727
  };
14735
- Dr.prototype.extractPoints = function(t, e, n) {
14728
+ Tr.prototype.extractPoints = function(t, e, n) {
14736
14729
  for (var i = this, o = t.getCoordinates(), s = 0; s < o.length - 1; s++)
14737
14730
  i.computeOffsetPoints(o[s], o[s + 1], e, n);
14738
14731
  };
14739
- Dr.prototype.setSidesToGenerate = function(t, e) {
14732
+ Tr.prototype.setSidesToGenerate = function(t, e) {
14740
14733
  this._doLeft = t, this._doRight = e;
14741
14734
  };
14742
- Dr.prototype.getPoints = function(t) {
14735
+ Tr.prototype.getPoints = function(t) {
14743
14736
  for (var e = this, n = new L(), i = Ft.getLines(this._g), o = i.iterator(); o.hasNext(); ) {
14744
14737
  var s = o.next();
14745
14738
  e.extractPoints(s, t, n);
14746
14739
  }
14747
14740
  return n;
14748
14741
  };
14749
- Dr.prototype.computeOffsetPoints = function(t, e, n, i) {
14742
+ Tr.prototype.computeOffsetPoints = function(t, e, n, i) {
14750
14743
  var o = e.x - t.x, s = e.y - t.y, a = Math.sqrt(o * o + s * s), u = n * o / a, l = n * s / a, c = (e.x + t.x) / 2, f = (e.y + t.y) / 2;
14751
14744
  if (this._doLeft) {
14752
14745
  var h = new v(c - l, f + u);
@@ -14757,11 +14750,11 @@ Dr.prototype.computeOffsetPoints = function(t, e, n, i) {
14757
14750
  i.add(g);
14758
14751
  }
14759
14752
  };
14760
- Dr.prototype.interfaces_ = function() {
14753
+ Tr.prototype.interfaces_ = function() {
14761
14754
  return [];
14762
14755
  };
14763
- Dr.prototype.getClass = function() {
14764
- return Dr;
14756
+ Tr.prototype.getClass = function() {
14757
+ return Tr;
14765
14758
  };
14766
14759
  var we = function r() {
14767
14760
  this._geom = null, this._locFinder = null, this._location = new Array(3).fill(null), this._invalidLocation = null, this._boundaryDistanceTolerance = r.TOLERANCE, this._testCoords = new L();
@@ -14791,7 +14784,7 @@ we.prototype.checkValid = function() {
14791
14784
  }
14792
14785
  };
14793
14786
  we.prototype.addTestPts = function(t) {
14794
- var e = new Dr(t);
14787
+ var e = new Tr(t);
14795
14788
  this._testCoords.addAll(e.getPoints(5 * this._boundaryDistanceTolerance));
14796
14789
  };
14797
14790
  we.prototype.isValidResult = function(t, e) {
@@ -15008,7 +15001,7 @@ Go.union = function(t, e) {
15008
15001
  }
15009
15002
  return t.checkNotGeometryCollection(t), t.checkNotGeometryCollection(e), re.overlayOp(t, e, U.UNION);
15010
15003
  };
15011
- function Ar() {
15004
+ function Fr() {
15012
15005
  return new zo();
15013
15006
  }
15014
15007
  function zo() {
@@ -15021,18 +15014,18 @@ zo.prototype = {
15021
15014
  this.t = 0;
15022
15015
  },
15023
15016
  add: function(r) {
15024
- La(xo, r, this.t), La(this, xo.s, this.s), this.s ? this.t += xo.t : this.s = xo.t;
15017
+ La(No, r, this.t), La(this, No.s, this.s), this.s ? this.t += No.t : this.s = No.t;
15025
15018
  },
15026
15019
  valueOf: function() {
15027
15020
  return this.s;
15028
15021
  }
15029
15022
  };
15030
- var xo = new zo();
15023
+ var No = new zo();
15031
15024
  function La(r, t, e) {
15032
15025
  var n = r.s = t + e, i = n - t, o = n - i;
15033
15026
  r.t = t - o + (e - i);
15034
15027
  }
15035
- var gt = 1e-6, it = Math.PI, qn = it / 2, ba = it / 4, Qn = it * 2, vr = 180 / it, Ze = it / 180, Jt = Math.abs, Mc = Math.atan, bi = Math.atan2, wt = Math.cos, Lt = Math.sin, _o = Math.sqrt;
15028
+ var gt = 1e-6, it = Math.PI, qn = it / 2, ba = it / 4, Qn = it * 2, yr = 180 / it, Ze = it / 180, Jt = Math.abs, Tc = Math.atan, bi = Math.atan2, wt = Math.cos, Lt = Math.sin, _o = Math.sqrt;
15036
15029
  function Ou(r) {
15037
15030
  return r > 1 ? 0 : r < -1 ? it : Math.acos(r);
15038
15031
  }
@@ -15094,11 +15087,11 @@ function Oa(r, t) {
15094
15087
  Ls(r[e], t, 1);
15095
15088
  t.polygonEnd();
15096
15089
  }
15097
- function Ac(r, t) {
15090
+ function Mc(r, t) {
15098
15091
  r && Pa.hasOwnProperty(r.type) ? Pa[r.type](r, t) : Vo(r, t);
15099
15092
  }
15100
- Ar();
15101
- Ar();
15093
+ Fr();
15094
+ Fr();
15102
15095
  function bs(r) {
15103
15096
  return [bi(r[1], r[0]), Pi(r[2])];
15104
15097
  }
@@ -15106,7 +15099,7 @@ function Ri(r) {
15106
15099
  var t = r[0], e = r[1], n = wt(e);
15107
15100
  return [n * wt(t), n * Lt(t), Lt(e)];
15108
15101
  }
15109
- function No(r, t) {
15102
+ function xo(r, t) {
15110
15103
  return r[0] * t[0] + r[1] * t[1] + r[2] * t[2];
15111
15104
  }
15112
15105
  function Uo(r, t) {
@@ -15122,7 +15115,7 @@ function Ps(r) {
15122
15115
  var t = _o(r[0] * r[0] + r[1] * r[1] + r[2] * r[2]);
15123
15116
  r[0] /= t, r[1] /= t, r[2] /= t;
15124
15117
  }
15125
- Ar();
15118
+ Fr();
15126
15119
  function Du(r, t) {
15127
15120
  function e(n, i) {
15128
15121
  return n = r(n, i), t(n[0], n[1]);
@@ -15135,7 +15128,7 @@ function Rs(r, t) {
15135
15128
  return [r > it ? r - Qn : r < -it ? r + Qn : r, t];
15136
15129
  }
15137
15130
  Rs.invert = Rs;
15138
- function Fc(r, t, e) {
15131
+ function Ac(r, t, e) {
15139
15132
  return (r %= Qn) ? t || e ? Du(Ta(r), Ma(t, e)) : Ta(r) : t || e ? Ma(t, e) : Rs;
15140
15133
  }
15141
15134
  function Da(r) {
@@ -15164,7 +15157,7 @@ function Ma(r, t) {
15164
15157
  ];
15165
15158
  }, s;
15166
15159
  }
15167
- function Bc(r, t, e, n, i, o) {
15160
+ function Fc(r, t, e, n, i, o) {
15168
15161
  if (e) {
15169
15162
  var s = wt(t), a = Lt(t), u = n * e;
15170
15163
  i == null ? (i = t + n * Qn, o = t - u / 2) : (i = Aa(s, i), o = Aa(s, o), (n > 0 ? i < o : i > o) && (i += n * Qn));
@@ -15196,7 +15189,7 @@ function Tu() {
15196
15189
  }
15197
15190
  };
15198
15191
  }
15199
- function kc(r, t, e, n, i, o) {
15192
+ function Bc(r, t, e, n, i, o) {
15200
15193
  var s = r[0], a = r[1], u = t[0], l = t[1], c = 0, f = 1, h = u - s, g = l - a, p;
15201
15194
  if (p = e - s, !(!h && p > 0)) {
15202
15195
  if (p /= h, h < 0) {
@@ -15303,8 +15296,8 @@ function Fa(r) {
15303
15296
  function Au(r, t) {
15304
15297
  return r < t ? -1 : r > t ? 1 : r >= t ? 0 : NaN;
15305
15298
  }
15306
- function Gc(r) {
15307
- return r.length === 1 && (r = zc(r)), {
15299
+ function kc(r) {
15300
+ return r.length === 1 && (r = Gc(r)), {
15308
15301
  left: function(t, e, n, i) {
15309
15302
  for (n == null && (n = 0), i == null && (i = t.length); n < i; ) {
15310
15303
  var o = n + i >>> 1;
@@ -15321,12 +15314,12 @@ function Gc(r) {
15321
15314
  }
15322
15315
  };
15323
15316
  }
15324
- function zc(r) {
15317
+ function Gc(r) {
15325
15318
  return function(t, e) {
15326
15319
  return Au(r(t), e);
15327
15320
  };
15328
15321
  }
15329
- Gc(Au);
15322
+ kc(Au);
15330
15323
  function Fu(r) {
15331
15324
  for (var t = r.length, e, n = -1, i = 0, o, s; ++n < t; )
15332
15325
  i += r[n].length;
@@ -15336,7 +15329,7 @@ function Fu(r) {
15336
15329
  return o;
15337
15330
  }
15338
15331
  var qi = 1e9, Lo = -qi;
15339
- function Vc(r, t, e, n) {
15332
+ function zc(r, t, e, n) {
15340
15333
  function i(l, c) {
15341
15334
  return r <= l && l <= e && t <= c && c <= n;
15342
15335
  }
@@ -15360,7 +15353,7 @@ function Vc(r, t, e, n) {
15360
15353
  return f !== h ? f - h : f === 0 ? c[1] - l[1] : f === 1 ? l[0] - c[0] : f === 2 ? l[1] - c[1] : c[0] - l[0];
15361
15354
  }
15362
15355
  return function(l) {
15363
- var c = l, f = Tu(), h, g, p, m, d, _, I, C, x, S, b, A = {
15356
+ var c = l, f = Tu(), h, g, p, m, d, _, I, C, N, S, b, A = {
15364
15357
  point: F,
15365
15358
  lineStart: q,
15366
15359
  lineEnd: rt,
@@ -15371,8 +15364,8 @@ function Vc(r, t, e, n) {
15371
15364
  i(Y, at) && c.point(Y, at);
15372
15365
  }
15373
15366
  function D() {
15374
- for (var Y = 0, at = 0, Nt = g.length; at < Nt; ++at)
15375
- for (var qt = g[at], ce = 1, Fr = qt.length, mn = qt[0], An, fe, et = mn[0], Rt = mn[1]; ce < Fr; ++ce)
15367
+ for (var Y = 0, at = 0, xt = g.length; at < xt; ++at)
15368
+ for (var qt = g[at], ce = 1, Br = qt.length, mn = qt[0], An, fe, et = mn[0], Rt = mn[1]; ce < Br; ++ce)
15376
15369
  An = et, fe = Rt, mn = qt[ce], et = mn[0], Rt = mn[1], fe <= n ? Rt > n && (et - An) * (n - fe) > (Rt - fe) * (r - An) && ++Y : Rt <= n && (et - An) * (n - fe) < (Rt - fe) * (r - An) && --Y;
15377
15370
  return Y;
15378
15371
  }
@@ -15380,38 +15373,38 @@ function Vc(r, t, e, n) {
15380
15373
  c = f, h = [], g = [], b = !0;
15381
15374
  }
15382
15375
  function z() {
15383
- var Y = D(), at = b && Y, Nt = (h = Fu(h)).length;
15384
- (at || Nt) && (l.polygonStart(), at && (l.lineStart(), o(null, null, 1, l), l.lineEnd()), Nt && Mu(h, a, Y, o, l), l.polygonEnd()), c = l, h = g = p = null;
15376
+ var Y = D(), at = b && Y, xt = (h = Fu(h)).length;
15377
+ (at || xt) && (l.polygonStart(), at && (l.lineStart(), o(null, null, 1, l), l.lineEnd()), xt && Mu(h, a, Y, o, l), l.polygonEnd()), c = l, h = g = p = null;
15385
15378
  }
15386
15379
  function q() {
15387
- A.point = O, g && g.push(p = []), S = !0, x = !1, I = C = NaN;
15380
+ A.point = O, g && g.push(p = []), S = !0, N = !1, I = C = NaN;
15388
15381
  }
15389
15382
  function rt() {
15390
- h && (O(m, d), _ && x && f.rejoin(), h.push(f.result())), A.point = F, x && c.lineEnd();
15383
+ h && (O(m, d), _ && N && f.rejoin(), h.push(f.result())), A.point = F, N && c.lineEnd();
15391
15384
  }
15392
15385
  function O(Y, at) {
15393
- var Nt = i(Y, at);
15386
+ var xt = i(Y, at);
15394
15387
  if (g && p.push([Y, at]), S)
15395
- m = Y, d = at, _ = Nt, S = !1, Nt && (c.lineStart(), c.point(Y, at));
15396
- else if (Nt && x)
15388
+ m = Y, d = at, _ = xt, S = !1, xt && (c.lineStart(), c.point(Y, at));
15389
+ else if (xt && N)
15397
15390
  c.point(Y, at);
15398
15391
  else {
15399
15392
  var qt = [I = Math.max(Lo, Math.min(qi, I)), C = Math.max(Lo, Math.min(qi, C))], ce = [Y = Math.max(Lo, Math.min(qi, Y)), at = Math.max(Lo, Math.min(qi, at))];
15400
- kc(qt, ce, r, t, e, n) ? (x || (c.lineStart(), c.point(qt[0], qt[1])), c.point(ce[0], ce[1]), Nt || c.lineEnd(), b = !1) : Nt && (c.lineStart(), c.point(Y, at), b = !1);
15393
+ Bc(qt, ce, r, t, e, n) ? (N || (c.lineStart(), c.point(qt[0], qt[1])), c.point(ce[0], ce[1]), xt || c.lineEnd(), b = !1) : xt && (c.lineStart(), c.point(Y, at), b = !1);
15401
15394
  }
15402
- I = Y, C = at, x = Nt;
15395
+ I = Y, C = at, N = xt;
15403
15396
  }
15404
15397
  return A;
15405
15398
  };
15406
15399
  }
15407
- var ps = Ar();
15408
- function Uc(r, t) {
15400
+ var ps = Fr();
15401
+ function Vc(r, t) {
15409
15402
  var e = t[0], n = t[1], i = [Lt(e), -wt(e), 0], o = 0, s = 0;
15410
15403
  ps.reset();
15411
15404
  for (var a = 0, u = r.length; a < u; ++a)
15412
15405
  if (c = (l = r[a]).length)
15413
- for (var l, c, f = l[c - 1], h = f[0], g = f[1] / 2 + ba, p = Lt(g), m = wt(g), d = 0; d < c; ++d, h = I, p = x, m = S, f = _) {
15414
- var _ = l[d], I = _[0], C = _[1] / 2 + ba, x = Lt(C), S = wt(C), b = I - h, A = b >= 0 ? 1 : -1, F = A * b, D = F > it, R = p * x;
15406
+ for (var l, c, f = l[c - 1], h = f[0], g = f[1] / 2 + ba, p = Lt(g), m = wt(g), d = 0; d < c; ++d, h = I, p = N, m = S, f = _) {
15407
+ var _ = l[d], I = _[0], C = _[1] / 2 + ba, N = Lt(C), S = wt(C), b = I - h, A = b >= 0 ? 1 : -1, F = A * b, D = F > it, R = p * N;
15415
15408
  if (ps.add(bi(R * A * Lt(F), m * S + R * wt(F))), o += D ? b + A * Qn : b, D ^ h >= e ^ I >= e) {
15416
15409
  var z = Uo(Ri(f), Ri(_));
15417
15410
  Ps(z);
@@ -15423,14 +15416,14 @@ function Uc(r, t) {
15423
15416
  }
15424
15417
  return (o < -gt || o < gt && ps < -gt) ^ s & 1;
15425
15418
  }
15426
- Ar();
15419
+ Fr();
15427
15420
  function Ba(r) {
15428
15421
  return r;
15429
15422
  }
15430
- Ar();
15431
- Ar();
15423
+ Fr();
15424
+ Fr();
15432
15425
  var Oi = 1 / 0, qo = Oi, co = -Oi, Xo = co, ka = {
15433
- point: qc,
15426
+ point: Uc,
15434
15427
  lineStart: Ui,
15435
15428
  lineEnd: Ui,
15436
15429
  polygonStart: Ui,
@@ -15440,10 +15433,10 @@ var Oi = 1 / 0, qo = Oi, co = -Oi, Xo = co, ka = {
15440
15433
  return co = Xo = -(qo = Oi = 1 / 0), r;
15441
15434
  }
15442
15435
  };
15443
- function qc(r, t) {
15436
+ function Uc(r, t) {
15444
15437
  r < Oi && (Oi = r), r > co && (co = r), t < qo && (qo = t), t > Xo && (Xo = t);
15445
15438
  }
15446
- Ar();
15439
+ Fr();
15447
15440
  function Bu(r, t, e, n) {
15448
15441
  return function(i, o) {
15449
15442
  var s = t(o), a = i.invert(n[0], n[1]), u = Tu(), l = t(u), c = !1, f, h, g, p = {
@@ -15451,12 +15444,12 @@ function Bu(r, t, e, n) {
15451
15444
  lineStart: _,
15452
15445
  lineEnd: I,
15453
15446
  polygonStart: function() {
15454
- p.point = C, p.lineStart = x, p.lineEnd = S, h = [], f = [];
15447
+ p.point = C, p.lineStart = N, p.lineEnd = S, h = [], f = [];
15455
15448
  },
15456
15449
  polygonEnd: function() {
15457
15450
  p.point = m, p.lineStart = _, p.lineEnd = I, h = Fu(h);
15458
- var b = Uc(f, a);
15459
- h.length ? (c || (o.polygonStart(), c = !0), Mu(h, Yc, b, e, o)) : b && (c || (o.polygonStart(), c = !0), o.lineStart(), e(null, null, 1, o), o.lineEnd()), c && (o.polygonEnd(), c = !1), h = f = null;
15451
+ var b = Vc(f, a);
15452
+ h.length ? (c || (o.polygonStart(), c = !0), Mu(h, Xc, b, e, o)) : b && (c || (o.polygonStart(), c = !0), o.lineStart(), e(null, null, 1, o), o.lineEnd()), c && (o.polygonEnd(), c = !1), h = f = null;
15460
15453
  },
15461
15454
  sphere: function() {
15462
15455
  o.polygonStart(), o.lineStart(), e(null, null, 1, o), o.lineEnd(), o.polygonEnd();
@@ -15481,7 +15474,7 @@ function Bu(r, t, e, n) {
15481
15474
  var F = i(b, A);
15482
15475
  l.point(F[0], F[1]);
15483
15476
  }
15484
- function x() {
15477
+ function N() {
15485
15478
  l.lineStart(), g = [];
15486
15479
  }
15487
15480
  function S() {
@@ -15496,27 +15489,27 @@ function Bu(r, t, e, n) {
15496
15489
  }
15497
15490
  return;
15498
15491
  }
15499
- D > 1 && b & 2 && A.push(A.pop().concat(A.shift())), h.push(A.filter(Xc));
15492
+ D > 1 && b & 2 && A.push(A.pop().concat(A.shift())), h.push(A.filter(qc));
15500
15493
  }
15501
15494
  }
15502
15495
  return p;
15503
15496
  };
15504
15497
  }
15505
- function Xc(r) {
15498
+ function qc(r) {
15506
15499
  return r.length > 1;
15507
15500
  }
15508
- function Yc(r, t) {
15501
+ function Xc(r, t) {
15509
15502
  return ((r = r.x)[0] < 0 ? r[1] - qn - gt : qn - r[1]) - ((t = t.x)[0] < 0 ? t[1] - qn - gt : qn - t[1]);
15510
15503
  }
15511
15504
  const Ga = Bu(
15512
15505
  function() {
15513
15506
  return !0;
15514
15507
  },
15515
- Hc,
15516
- jc,
15508
+ Yc,
15509
+ Wc,
15517
15510
  [-it, -qn]
15518
15511
  );
15519
- function Hc(r) {
15512
+ function Yc(r) {
15520
15513
  var t = NaN, e = NaN, n = NaN, i;
15521
15514
  return {
15522
15515
  lineStart: function() {
@@ -15524,7 +15517,7 @@ function Hc(r) {
15524
15517
  },
15525
15518
  point: function(o, s) {
15526
15519
  var a = o > 0 ? it : -it, u = Jt(o - t);
15527
- Jt(u - it) < gt ? (r.point(t, e = (e + s) / 2 > 0 ? qn : -qn), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), r.point(o, e), i = 0) : n !== a && u >= it && (Jt(t - n) < gt && (t -= n * gt), Jt(o - a) < gt && (o -= a * gt), e = Wc(t, e, o, s), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), i = 0), r.point(t = o, e = s), n = a;
15520
+ Jt(u - it) < gt ? (r.point(t, e = (e + s) / 2 > 0 ? qn : -qn), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), r.point(o, e), i = 0) : n !== a && u >= it && (Jt(t - n) < gt && (t -= n * gt), Jt(o - a) < gt && (o -= a * gt), e = Hc(t, e, o, s), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), i = 0), r.point(t = o, e = s), n = a;
15528
15521
  },
15529
15522
  lineEnd: function() {
15530
15523
  r.lineEnd(), t = e = NaN;
@@ -15534,11 +15527,11 @@ function Hc(r) {
15534
15527
  }
15535
15528
  };
15536
15529
  }
15537
- function Wc(r, t, e, n) {
15530
+ function Hc(r, t, e, n) {
15538
15531
  var i, o, s = Lt(r - e);
15539
- return Jt(s) > gt ? Mc((Lt(t) * (o = wt(n)) * Lt(e) - Lt(n) * (i = wt(t)) * Lt(r)) / (i * o * s)) : (t + n) / 2;
15532
+ return Jt(s) > gt ? Tc((Lt(t) * (o = wt(n)) * Lt(e) - Lt(n) * (i = wt(t)) * Lt(r)) / (i * o * s)) : (t + n) / 2;
15540
15533
  }
15541
- function jc(r, t, e, n) {
15534
+ function Wc(r, t, e, n) {
15542
15535
  var i;
15543
15536
  if (r == null)
15544
15537
  i = e * qn, n.point(-it, i), n.point(0, i), n.point(it, i), n.point(it, 0), n.point(it, -i), n.point(0, -i), n.point(-it, -i), n.point(-it, 0), n.point(-it, i);
@@ -15548,10 +15541,10 @@ function jc(r, t, e, n) {
15548
15541
  } else
15549
15542
  n.point(t[0], t[1]);
15550
15543
  }
15551
- function Kc(r, t) {
15544
+ function jc(r, t) {
15552
15545
  var e = wt(r), n = e > 0, i = Jt(e) > gt;
15553
15546
  function o(c, f, h, g) {
15554
- Bc(g, r, t, h, c, f);
15547
+ Fc(g, r, t, h, c, f);
15555
15548
  }
15556
15549
  function s(c, f) {
15557
15550
  return wt(c) * wt(f) > e;
@@ -15563,14 +15556,14 @@ function Kc(r, t) {
15563
15556
  p = g = !1, m = 1;
15564
15557
  },
15565
15558
  point: function(d, _) {
15566
- var I = [d, _], C, x = s(d, _), S = n ? x ? 0 : l(d, _) : x ? l(d + (d < 0 ? it : -it), _) : 0;
15567
- if (!f && (p = g = x) && c.lineStart(), x !== g && (C = u(f, I), (!C || Po(f, C) || Po(I, C)) && (I[0] += gt, I[1] += gt, x = s(I[0], I[1]))), x !== g)
15568
- m = 0, x ? (c.lineStart(), C = u(I, f), c.point(C[0], C[1])) : (C = u(f, I), c.point(C[0], C[1]), c.lineEnd()), f = C;
15569
- else if (i && f && n ^ x) {
15559
+ var I = [d, _], C, N = s(d, _), S = n ? N ? 0 : l(d, _) : N ? l(d + (d < 0 ? it : -it), _) : 0;
15560
+ if (!f && (p = g = N) && c.lineStart(), N !== g && (C = u(f, I), (!C || Po(f, C) || Po(I, C)) && (I[0] += gt, I[1] += gt, N = s(I[0], I[1]))), N !== g)
15561
+ m = 0, N ? (c.lineStart(), C = u(I, f), c.point(C[0], C[1])) : (C = u(f, I), c.point(C[0], C[1]), c.lineEnd()), f = C;
15562
+ else if (i && f && n ^ N) {
15570
15563
  var b;
15571
15564
  !(S & h) && (b = u(I, f, !0)) && (m = 0, n ? (c.lineStart(), c.point(b[0][0], b[0][1]), c.point(b[1][0], b[1][1]), c.lineEnd()) : (c.point(b[1][0], b[1][1]), c.lineEnd(), c.lineStart(), c.point(b[0][0], b[0][1])));
15572
15565
  }
15573
- x && (!f || !Po(f, I)) && c.point(I[0], I[1]), f = I, g = x, h = S;
15566
+ N && (!f || !Po(f, I)) && c.point(I[0], I[1]), f = I, g = N, h = S;
15574
15567
  },
15575
15568
  lineEnd: function() {
15576
15569
  g && c.lineEnd(), f = null;
@@ -15583,20 +15576,20 @@ function Kc(r, t) {
15583
15576
  };
15584
15577
  }
15585
15578
  function u(c, f, h) {
15586
- var g = Ri(c), p = Ri(f), m = [1, 0, 0], d = Uo(g, p), _ = No(d, d), I = d[0], C = _ - I * I;
15579
+ var g = Ri(c), p = Ri(f), m = [1, 0, 0], d = Uo(g, p), _ = xo(d, d), I = d[0], C = _ - I * I;
15587
15580
  if (!C)
15588
15581
  return !h && c;
15589
- var x = e * _ / C, S = -e * I / C, b = Uo(m, d), A = So(m, x), F = So(d, S);
15582
+ var N = e * _ / C, S = -e * I / C, b = Uo(m, d), A = So(m, N), F = So(d, S);
15590
15583
  gs(A, F);
15591
- var D = b, R = No(A, D), z = No(D, D), q = R * R - z * (No(A, A) - 1);
15584
+ var D = b, R = xo(A, D), z = xo(D, D), q = R * R - z * (xo(A, A) - 1);
15592
15585
  if (!(q < 0)) {
15593
15586
  var rt = _o(q), O = So(D, (-R - rt) / z);
15594
15587
  if (gs(O, A), O = bs(O), !h)
15595
15588
  return O;
15596
- var Y = c[0], at = f[0], Nt = c[1], qt = f[1], ce;
15589
+ var Y = c[0], at = f[0], xt = c[1], qt = f[1], ce;
15597
15590
  at < Y && (ce = Y, Y = at, at = ce);
15598
- var Fr = at - Y, mn = Jt(Fr - it) < gt, An = mn || Fr < gt;
15599
- if (!mn && qt < Nt && (ce = Nt, Nt = qt, qt = ce), An ? mn ? Nt + qt > 0 ^ O[1] < (Jt(O[0] - Y) < gt ? Nt : qt) : Nt <= O[1] && O[1] <= qt : Fr > it ^ (Y <= O[0] && O[0] <= at)) {
15591
+ var Br = at - Y, mn = Jt(Br - it) < gt, An = mn || Br < gt;
15592
+ if (!mn && qt < xt && (ce = xt, xt = qt, qt = ce), An ? mn ? xt + qt > 0 ^ O[1] < (Jt(O[0] - Y) < gt ? xt : qt) : xt <= O[1] && O[1] <= qt : Br > it ^ (Y <= O[0] && O[0] <= at)) {
15600
15593
  var fe = So(D, (-R + rt) / z);
15601
15594
  return gs(fe, A), [O, bs(fe)];
15602
15595
  }
@@ -15641,37 +15634,37 @@ Os.prototype = {
15641
15634
  };
15642
15635
  function Gu(r, t, e) {
15643
15636
  var n = t[1][0] - t[0][0], i = t[1][1] - t[0][1], o = r.clipExtent && r.clipExtent();
15644
- r.scale(150).translate([0, 0]), o != null && r.clipExtent(null), Ac(e, r.stream(ka));
15637
+ r.scale(150).translate([0, 0]), o != null && r.clipExtent(null), Mc(e, r.stream(ka));
15645
15638
  var s = ka.result(), a = Math.min(n / (s[1][0] - s[0][0]), i / (s[1][1] - s[0][1])), u = +t[0][0] + (n - a * (s[1][0] + s[0][0])) / 2, l = +t[0][1] + (i - a * (s[1][1] + s[0][1])) / 2;
15646
15639
  return o != null && r.clipExtent(o), r.scale(a * 150).translate([u, l]);
15647
15640
  }
15648
- function Qc(r, t, e) {
15641
+ function Kc(r, t, e) {
15649
15642
  return Gu(r, [[0, 0], t], e);
15650
15643
  }
15651
- var za = 16, Jc = wt(30 * Ze);
15644
+ var za = 16, Qc = wt(30 * Ze);
15652
15645
  function Va(r, t) {
15653
- return +t ? $c(r, t) : Zc(r);
15646
+ return +t ? Zc(r, t) : Jc(r);
15654
15647
  }
15655
- function Zc(r) {
15648
+ function Jc(r) {
15656
15649
  return ku({
15657
15650
  point: function(t, e) {
15658
15651
  t = r(t, e), this.stream.point(t[0], t[1]);
15659
15652
  }
15660
15653
  });
15661
15654
  }
15662
- function $c(r, t) {
15655
+ function Zc(r, t) {
15663
15656
  function e(n, i, o, s, a, u, l, c, f, h, g, p, m, d) {
15664
15657
  var _ = l - n, I = c - i, C = _ * _ + I * I;
15665
15658
  if (C > 4 * t && m--) {
15666
- var x = s + h, S = a + g, b = u + p, A = _o(x * x + S * S + b * b), F = Pi(b /= A), D = Jt(Jt(b) - 1) < gt || Jt(o - f) < gt ? (o + f) / 2 : bi(S, x), R = r(D, F), z = R[0], q = R[1], rt = z - n, O = q - i, Y = I * rt - _ * O;
15667
- (Y * Y / C > t || Jt((_ * rt + I * O) / C - 0.5) > 0.3 || s * h + a * g + u * p < Jc) && (e(n, i, o, s, a, u, z, q, D, x /= A, S /= A, b, m, d), d.point(z, q), e(z, q, D, x, S, b, l, c, f, h, g, p, m, d));
15659
+ var N = s + h, S = a + g, b = u + p, A = _o(N * N + S * S + b * b), F = Pi(b /= A), D = Jt(Jt(b) - 1) < gt || Jt(o - f) < gt ? (o + f) / 2 : bi(S, N), R = r(D, F), z = R[0], q = R[1], rt = z - n, O = q - i, Y = I * rt - _ * O;
15660
+ (Y * Y / C > t || Jt((_ * rt + I * O) / C - 0.5) > 0.3 || s * h + a * g + u * p < Qc) && (e(n, i, o, s, a, u, z, q, D, N /= A, S /= A, b, m, d), d.point(z, q), e(z, q, D, N, S, b, l, c, f, h, g, p, m, d));
15668
15661
  }
15669
15662
  }
15670
15663
  return function(n) {
15671
15664
  var i, o, s, a, u, l, c, f, h, g, p, m, d = {
15672
15665
  point: _,
15673
15666
  lineStart: I,
15674
- lineEnd: x,
15667
+ lineEnd: N,
15675
15668
  polygonStart: function() {
15676
15669
  n.polygonStart(), d.lineStart = S;
15677
15670
  },
@@ -15689,7 +15682,7 @@ function $c(r, t) {
15689
15682
  var R = Ri([F, D]), z = r(F, D);
15690
15683
  e(f, h, c, g, p, m, f = z[0], h = z[1], c = F, g = R[0], p = R[1], m = R[2], za, n), n.point(f, h);
15691
15684
  }
15692
- function x() {
15685
+ function N() {
15693
15686
  d.point = _, n.lineEnd();
15694
15687
  }
15695
15688
  function S() {
@@ -15699,55 +15692,55 @@ function $c(r, t) {
15699
15692
  C(i = F, D), o = f, s = h, a = g, u = p, l = m, d.point = C;
15700
15693
  }
15701
15694
  function A() {
15702
- e(f, h, c, g, p, m, o, s, i, a, u, l, za, n), d.lineEnd = x, x();
15695
+ e(f, h, c, g, p, m, o, s, i, a, u, l, za, n), d.lineEnd = N, N();
15703
15696
  }
15704
15697
  return d;
15705
15698
  };
15706
15699
  }
15707
- var tf = ku({
15700
+ var $c = ku({
15708
15701
  point: function(r, t) {
15709
15702
  this.stream.point(r * Ze, t * Ze);
15710
15703
  }
15711
15704
  });
15712
- function ef(r) {
15713
- return nf(function() {
15705
+ function tf(r) {
15706
+ return ef(function() {
15714
15707
  return r;
15715
15708
  })();
15716
15709
  }
15717
- function nf(r) {
15718
- var t, e = 150, n = 480, i = 250, o, s, a = 0, u = 0, l = 0, c = 0, f = 0, h, g, p = null, m = Ga, d = null, _, I, C, x = Ba, S = 0.5, b = Va(z, S), A, F;
15710
+ function ef(r) {
15711
+ var t, e = 150, n = 480, i = 250, o, s, a = 0, u = 0, l = 0, c = 0, f = 0, h, g, p = null, m = Ga, d = null, _, I, C, N = Ba, S = 0.5, b = Va(z, S), A, F;
15719
15712
  function D(O) {
15720
15713
  return O = g(O[0] * Ze, O[1] * Ze), [O[0] * e + o, s - O[1] * e];
15721
15714
  }
15722
15715
  function R(O) {
15723
- return O = g.invert((O[0] - o) / e, (s - O[1]) / e), O && [O[0] * vr, O[1] * vr];
15716
+ return O = g.invert((O[0] - o) / e, (s - O[1]) / e), O && [O[0] * yr, O[1] * yr];
15724
15717
  }
15725
15718
  function z(O, Y) {
15726
15719
  return O = t(O, Y), [O[0] * e + o, s - O[1] * e];
15727
15720
  }
15728
15721
  D.stream = function(O) {
15729
- return A && F === O ? A : A = tf(m(h, b(x(F = O))));
15722
+ return A && F === O ? A : A = $c(m(h, b(N(F = O))));
15730
15723
  }, D.clipAngle = function(O) {
15731
- return arguments.length ? (m = +O ? Kc(p = O * Ze, 6 * Ze) : (p = null, Ga), rt()) : p * vr;
15724
+ return arguments.length ? (m = +O ? jc(p = O * Ze, 6 * Ze) : (p = null, Ga), rt()) : p * yr;
15732
15725
  }, D.clipExtent = function(O) {
15733
- return arguments.length ? (x = O == null ? (d = _ = I = C = null, Ba) : Vc(d = +O[0][0], _ = +O[0][1], I = +O[1][0], C = +O[1][1]), rt()) : d == null ? null : [[d, _], [I, C]];
15726
+ return arguments.length ? (N = O == null ? (d = _ = I = C = null, Ba) : zc(d = +O[0][0], _ = +O[0][1], I = +O[1][0], C = +O[1][1]), rt()) : d == null ? null : [[d, _], [I, C]];
15734
15727
  }, D.scale = function(O) {
15735
15728
  return arguments.length ? (e = +O, q()) : e;
15736
15729
  }, D.translate = function(O) {
15737
15730
  return arguments.length ? (n = +O[0], i = +O[1], q()) : [n, i];
15738
15731
  }, D.center = function(O) {
15739
- return arguments.length ? (a = O[0] % 360 * Ze, u = O[1] % 360 * Ze, q()) : [a * vr, u * vr];
15732
+ return arguments.length ? (a = O[0] % 360 * Ze, u = O[1] % 360 * Ze, q()) : [a * yr, u * yr];
15740
15733
  }, D.rotate = function(O) {
15741
- return arguments.length ? (l = O[0] % 360 * Ze, c = O[1] % 360 * Ze, f = O.length > 2 ? O[2] % 360 * Ze : 0, q()) : [l * vr, c * vr, f * vr];
15734
+ return arguments.length ? (l = O[0] % 360 * Ze, c = O[1] % 360 * Ze, f = O.length > 2 ? O[2] % 360 * Ze : 0, q()) : [l * yr, c * yr, f * yr];
15742
15735
  }, D.precision = function(O) {
15743
15736
  return arguments.length ? (b = Va(z, S = O * O), rt()) : _o(S);
15744
15737
  }, D.fitExtent = function(O, Y) {
15745
15738
  return Gu(D, O, Y);
15746
15739
  }, D.fitSize = function(O, Y) {
15747
- return Qc(D, O, Y);
15740
+ return Kc(D, O, Y);
15748
15741
  };
15749
15742
  function q() {
15750
- g = Du(h = Fc(l, c, f), t);
15743
+ g = Du(h = Ac(l, c, f), t);
15751
15744
  var O = t(a, u);
15752
15745
  return o = n - O[0] * e, s = i + O[1] * e, rt();
15753
15746
  }
@@ -15758,7 +15751,7 @@ function nf(r) {
15758
15751
  return t = r.apply(this, arguments), D.invert = t.invert && R, q();
15759
15752
  };
15760
15753
  }
15761
- function rf(r) {
15754
+ function nf(r) {
15762
15755
  return function(t, e) {
15763
15756
  var n = wt(t), i = wt(e), o = r(n * i);
15764
15757
  return [
@@ -15767,7 +15760,7 @@ function rf(r) {
15767
15760
  ];
15768
15761
  };
15769
15762
  }
15770
- function of(r) {
15763
+ function rf(r) {
15771
15764
  return function(t, e) {
15772
15765
  var n = _o(t * t + e * e), i = r(n), o = Lt(i), s = wt(i);
15773
15766
  return [
@@ -15776,20 +15769,20 @@ function of(r) {
15776
15769
  ];
15777
15770
  };
15778
15771
  }
15779
- var zu = rf(function(r) {
15772
+ var zu = nf(function(r) {
15780
15773
  return (r = Ou(r)) && r / Lt(r);
15781
15774
  });
15782
- zu.invert = of(function(r) {
15775
+ zu.invert = rf(function(r) {
15783
15776
  return r;
15784
15777
  });
15785
- function sf() {
15786
- return ef(zu).scale(79.4188).clipAngle(180 - 1e-3);
15778
+ function of() {
15779
+ return tf(zu).scale(79.4188).clipAngle(180 - 1e-3);
15787
15780
  }
15788
15781
  function Ua(r, t) {
15789
15782
  return [r, t];
15790
15783
  }
15791
15784
  Ua.invert = Ua;
15792
- function af(r, t, e) {
15785
+ function sf(r, t, e) {
15793
15786
  e = e || {};
15794
15787
  var n = e.units || "kilometers", i = e.steps || 8;
15795
15788
  if (!r)
@@ -15808,14 +15801,14 @@ function af(r, t, e) {
15808
15801
  return ru(r, function(s) {
15809
15802
  var a = Ro(s, t, n, i);
15810
15803
  a && o.push(a);
15811
- }), Ns(o);
15804
+ }), xs(o);
15812
15805
  case "FeatureCollection":
15813
15806
  return Ca(r, function(s) {
15814
15807
  var a = Ro(s, t, n, i);
15815
15808
  a && Ca(a, function(u) {
15816
15809
  u && o.push(u);
15817
15810
  });
15818
- }), Ns(o);
15811
+ }), xs(o);
15819
15812
  }
15820
15813
  return Ro(r, t, n, i);
15821
15814
  }
@@ -15826,12 +15819,12 @@ function Ro(r, t, e, n) {
15826
15819
  return ru(r, function(m) {
15827
15820
  var d = Ro(m, t, e, n);
15828
15821
  d && s.push(d);
15829
- }), Ns(s);
15822
+ }), xs(s);
15830
15823
  }
15831
- var a = uf(o), u = {
15824
+ var a = af(o), u = {
15832
15825
  type: o.type,
15833
15826
  coordinates: Uu(o.coordinates, a)
15834
- }, l = new zs(), c = l.read(u), f = hc(gc(t, e), "meters"), h = Bt.bufferOp(c, f, n), g = new gu();
15827
+ }, l = new zs(), c = l.read(u), f = lc(cc(t, e), "meters"), h = Bt.bufferOp(c, f, n), g = new gu();
15835
15828
  if (h = g.write(h), !Vu(h.coordinates)) {
15836
15829
  var p = {
15837
15830
  type: h.type,
@@ -15853,9 +15846,16 @@ function qu(r, t) {
15853
15846
  return qu(e, t);
15854
15847
  });
15855
15848
  }
15856
- function uf(r) {
15857
- var t = vc(r).geometry.coordinates, e = [-t[0], -t[1]];
15858
- return sf().rotate(e).scale(me);
15849
+ function af(r) {
15850
+ var t = dc(r).geometry.coordinates, e = [-t[0], -t[1]];
15851
+ return of().rotate(e).scale(me);
15852
+ }
15853
+ function uf(r, t) {
15854
+ var e = Mo(r), n = Mo(t), i = r.properties || {}, o = Za.difference(
15855
+ e.coordinates,
15856
+ n.coordinates
15857
+ );
15858
+ return o.length === 0 ? null : o.length === 1 ? tu(o[0], i) : eu(o, i);
15859
15859
  }
15860
15860
  function qa(r) {
15861
15861
  let t;
@@ -15863,7 +15863,7 @@ function qa(r) {
15863
15863
  t && e[0] - t[0] >= 180 ? e[0] -= 360 : t && e[0] - t[0] < -180 && (e[0] += 360), t = e;
15864
15864
  }
15865
15865
  function Xa(r, t) {
15866
- const e = dc(
15866
+ const e = uf(
15867
15867
  {
15868
15868
  type: "Polygon",
15869
15869
  coordinates: [
@@ -15881,7 +15881,7 @@ function Xa(r, t) {
15881
15881
  if (!e)
15882
15882
  return;
15883
15883
  e.properties = { isMask: "y" };
15884
- const n = af(r, 0);
15884
+ const n = sf(r, 0);
15885
15885
  if (n.geometry.type === "Polygon")
15886
15886
  for (const i of n.geometry.coordinates)
15887
15887
  qa(i);
@@ -15952,7 +15952,7 @@ function lf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
15952
15952
  if (!t)
15953
15953
  throw new Error();
15954
15954
  const I = document.createElement("div");
15955
- return _ && I.classList.add("marker-interactive"), new Dl({
15955
+ return _ && I.classList.add("marker-interactive"), new pc({
15956
15956
  props: { displayIn: "maplibre" },
15957
15957
  target: I
15958
15958
  }), new t.Marker({ element: I, offset: [1, -13] });
@@ -15982,15 +15982,15 @@ function lf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
15982
15982
  setMarkers(_, I) {
15983
15983
  if (!e)
15984
15984
  return;
15985
- function C(x) {
15985
+ function C(N) {
15986
15986
  var S;
15987
- (S = r.getSource("full-geom")) == null || S.setData(x);
15987
+ (S = r.getSource("full-geom")) == null || S.setData(N);
15988
15988
  }
15989
- for (const x of l)
15990
- x.remove();
15989
+ for (const N of l)
15990
+ N.remove();
15991
15991
  if (l.length = 0, C(Ya), !!t) {
15992
15992
  if (I) {
15993
- let x = !1;
15993
+ let N = !1;
15994
15994
  if (I.geometry.type === "GeometryCollection") {
15995
15995
  const S = I.geometry.geometries.filter(
15996
15996
  (b) => b.type === "Polygon" || b.type === "MultiPolygon"
@@ -15998,8 +15998,8 @@ function lf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
15998
15998
  if (S.length > 0) {
15999
15999
  let b = S.pop();
16000
16000
  for (const A of S)
16001
- b = pc(b, A);
16002
- Xa({ ...I, geometry: b }, C), x = !0;
16001
+ b = fc(b, A);
16002
+ Xa({ ...I, geometry: b }, C), N = !0;
16003
16003
  } else {
16004
16004
  const b = I.geometry.geometries.filter(
16005
16005
  (A) => A.type === "LineString" || A.type === "MultiLineString"
@@ -16007,10 +16007,10 @@ function lf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
16007
16007
  b.length > 0 && (C({
16008
16008
  ...I,
16009
16009
  geometry: { type: "GeometryCollection", geometries: b }
16010
- }), x = !0);
16010
+ }), N = !0);
16011
16011
  }
16012
16012
  }
16013
- if (!x) {
16013
+ if (!N) {
16014
16014
  if (I.geometry.type === "Polygon" || I.geometry.type === "MultiPolygon")
16015
16015
  Xa(I, C);
16016
16016
  else if (I.geometry.type === "LineString" || I.geometry.type === "MultiLineString") {
@@ -16023,24 +16023,24 @@ function lf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
16023
16023
  );
16024
16024
  }
16025
16025
  if (n)
16026
- for (const x of _ ?? []) {
16027
- if (x === I)
16026
+ for (const N of _ ?? []) {
16027
+ if (N === I)
16028
16028
  continue;
16029
- const S = (typeof n == "object" ? new t.Marker(n) : m(!0)).setLngLat(x.center).setPopup(
16029
+ const S = (typeof n == "object" ? new t.Marker(n) : m(!0)).setLngLat(N.center).setPopup(
16030
16030
  new t.Popup({
16031
16031
  offset: [1, -27],
16032
16032
  closeButton: !1,
16033
16033
  closeOnMove: !0,
16034
16034
  className: "maptiler-gc-popup"
16035
- }).setText(x.place_name.replace(/,.*/, ""))
16035
+ }).setText(N.place_name.replace(/,.*/, ""))
16036
16036
  ).addTo(r), b = S.getElement();
16037
16037
  b.addEventListener("click", (A) => {
16038
- A.stopPropagation(), a == null || a({ type: "markerClick", id: x.id });
16038
+ A.stopPropagation(), a == null || a({ type: "markerClick", id: N.id });
16039
16039
  }), b.addEventListener("mouseenter", () => {
16040
- a == null || a({ type: "markerMouseEnter", id: x.id }), S.togglePopup();
16040
+ a == null || a({ type: "markerMouseEnter", id: N.id }), S.togglePopup();
16041
16041
  }), b.addEventListener("mouseleave", () => {
16042
- a == null || a({ type: "markerMouseLeave", id: x.id }), S.togglePopup();
16043
- }), b.classList.toggle("marker-fuzzy", !!x.matching_text), l.push(S);
16042
+ a == null || a({ type: "markerMouseLeave", id: N.id }), S.togglePopup();
16043
+ }), b.classList.toggle("marker-fuzzy", !!N.matching_text), l.push(S);
16044
16044
  }
16045
16045
  }
16046
16046
  },
@@ -16049,34 +16049,34 @@ function lf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
16049
16049
  }
16050
16050
  };
16051
16051
  }
16052
- var En, mr;
16052
+ var En, _r;
16053
16053
  class hf extends EventTarget {
16054
16054
  constructor(e = {}) {
16055
16055
  super();
16056
16056
  ls(this, En, void 0);
16057
- ls(this, mr, void 0);
16058
- Co(this, mr, e);
16057
+ ls(this, _r, void 0);
16058
+ Co(this, _r, e);
16059
16059
  }
16060
16060
  onAdd(e) {
16061
16061
  const n = document.createElement("div");
16062
- n.className = "mapboxgl-ctrl-geocoder mapboxgl-ctrl maplibregl-ctrl-geocoder maplibregl-ctrl";
16062
+ n.className = "mapboxgl-ctrl-geocoder mapboxgl-ctrl maplibregl-ctrl-geocoder maplibregl-ctrl mapboxgl-ctrl-group";
16063
16063
  const {
16064
16064
  marker: i,
16065
16065
  showResultMarkers: o,
16066
16066
  flyTo: s,
16067
16067
  fullGeometryStyle: a,
16068
16068
  ...u
16069
- } = _n(this, mr), l = typeof s == "boolean" ? {} : s, c = {};
16069
+ } = _n(this, _r), l = typeof s == "boolean" ? {} : s, c = {};
16070
16070
  if ("getSdkConfig" in e && typeof e.getSdkConfig == "function") {
16071
16071
  const { primaryLanguage: g, apiKey: p } = e.getSdkConfig();
16072
16072
  c.apiKey = p;
16073
16073
  const m = /^([a-z]{2})($|_|-)/.exec(g);
16074
- m && (c.language = m[1]);
16074
+ m && (c.language = m[1]), n.className += " maptiler-ctrl";
16075
16075
  }
16076
16076
  const h = {
16077
16077
  mapController: lf(
16078
16078
  e,
16079
- sl ?? ol ?? _n(this, mr).maplibregl,
16079
+ ol ?? sl ?? _n(this, _r).maplibregl,
16080
16080
  i,
16081
16081
  o,
16082
16082
  l,
@@ -16091,7 +16091,7 @@ class hf extends EventTarget {
16091
16091
  };
16092
16092
  if (!h.apiKey)
16093
16093
  throw new Error("no apiKey provided");
16094
- Co(this, En, new Ul({ target: n, props: h }));
16094
+ Co(this, En, new Gl({ target: n, props: h }));
16095
16095
  for (const g of [
16096
16096
  "select",
16097
16097
  "pick",
@@ -16107,7 +16107,7 @@ class hf extends EventTarget {
16107
16107
  }
16108
16108
  setOptions(e) {
16109
16109
  var l;
16110
- Co(this, mr, e);
16110
+ Co(this, _r, e);
16111
16111
  const {
16112
16112
  maplibregl: n,
16113
16113
  marker: i,
@@ -16115,7 +16115,7 @@ class hf extends EventTarget {
16115
16115
  flyTo: s,
16116
16116
  fullGeometryStyle: a,
16117
16117
  ...u
16118
- } = _n(this, mr);
16118
+ } = _n(this, _r);
16119
16119
  (l = _n(this, En)) == null || l.$set(u);
16120
16120
  }
16121
16121
  setQuery(e, n = !0) {
@@ -16139,7 +16139,7 @@ class hf extends EventTarget {
16139
16139
  (e = _n(this, En)) == null || e.$destroy();
16140
16140
  }
16141
16141
  }
16142
- En = new WeakMap(), mr = new WeakMap();
16142
+ En = new WeakMap(), _r = new WeakMap();
16143
16143
  export {
16144
16144
  hf as GeocodingControl,
16145
16145
  lf as createMaplibreglMapController