@maptiler/geocoding-control 0.0.82 → 0.0.84

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
@@ -2,14 +2,16 @@ var Zs = (r, t, e) => {
2
2
  if (!t.has(r))
3
3
  throw TypeError("Cannot " + e);
4
4
  };
5
- var Bn = (r, t, e) => (Zs(r, t, "read from private field"), e ? e.call(r) : t.get(r)), ls = (r, t, e) => {
5
+ var _n = (r, t, e) => (Zs(r, t, "read from private field"), e ? e.call(r) : t.get(r)), ls = (r, t, e) => {
6
6
  if (t.has(r))
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 "@maptiler/sdk";
11
+ import * as sl from "maplibre-gl";
10
12
  function Zt() {
11
13
  }
12
- function ol(r, t) {
14
+ function al(r, t) {
13
15
  for (const e in t)
14
16
  r[e] = t[e];
15
17
  return r;
@@ -20,7 +22,7 @@ function Ha(r) {
20
22
  function $s() {
21
23
  return /* @__PURE__ */ Object.create(null);
22
24
  }
23
- function Dr(r) {
25
+ function Mr(r) {
24
26
  r.forEach(Ha);
25
27
  }
26
28
  function Wa(r) {
@@ -29,19 +31,19 @@ function Wa(r) {
29
31
  function Di(r, t) {
30
32
  return r != r ? t == t : r !== t || r && typeof r == "object" || typeof r == "function";
31
33
  }
32
- function sl(r) {
34
+ function ul(r) {
33
35
  return Object.keys(r).length === 0;
34
36
  }
35
- function al(r, t, e, n) {
37
+ function ll(r, t, e, n) {
36
38
  if (r) {
37
39
  const i = ja(r, t, e, n);
38
40
  return r[0](i);
39
41
  }
40
42
  }
41
43
  function ja(r, t, e, n) {
42
- return r[1] && n ? ol(e.ctx.slice(), r[1](n(t))) : e.ctx;
44
+ return r[1] && n ? al(e.ctx.slice(), r[1](n(t))) : e.ctx;
43
45
  }
44
- function ul(r, t, e, n) {
46
+ function cl(r, t, e, n) {
45
47
  if (r[2] && n) {
46
48
  const i = r[2](n(e));
47
49
  if (t.dirty === void 0)
@@ -56,13 +58,13 @@ function ul(r, t, e, n) {
56
58
  }
57
59
  return t.dirty;
58
60
  }
59
- function ll(r, t, e, n, i, o) {
61
+ function fl(r, t, e, n, i, o) {
60
62
  if (i) {
61
63
  const s = ja(t, e, n, o);
62
64
  r.p(s, i);
63
65
  }
64
66
  }
65
- function cl(r) {
67
+ function hl(r) {
66
68
  if (r.ctx.length > 32) {
67
69
  const t = [], e = r.ctx.length / 32;
68
70
  for (let n = 0; n < e; n++)
@@ -83,14 +85,14 @@ function We(r, t, e) {
83
85
  function Te(r) {
84
86
  r.parentNode && r.parentNode.removeChild(r);
85
87
  }
86
- function fl(r, t) {
88
+ function gl(r, t) {
87
89
  for (let e = 0; e < r.length; e += 1)
88
90
  r[e] && r[e].d(t);
89
91
  }
90
92
  function oe(r) {
91
93
  return document.createElement(r);
92
94
  }
93
- function Ir(r) {
95
+ function xr(r) {
94
96
  return document.createElementNS("http://www.w3.org/2000/svg", r);
95
97
  }
96
98
  function Vr(r) {
@@ -102,7 +104,7 @@ function tr() {
102
104
  function Be(r, t, e, n) {
103
105
  return r.addEventListener(t, e, n), () => r.removeEventListener(t, e, n);
104
106
  }
105
- function hl(r) {
107
+ function pl(r) {
106
108
  return function(t) {
107
109
  return t.preventDefault(), r.call(this, t);
108
110
  };
@@ -110,11 +112,11 @@ function hl(r) {
110
112
  function B(r, t, e) {
111
113
  e == null ? r.removeAttribute(t) : r.getAttribute(t) !== e && r.setAttribute(t, e);
112
114
  }
113
- function gl(r) {
115
+ function dl(r) {
114
116
  return Array.from(r.childNodes);
115
117
  }
116
118
  function Hi(r, t) {
117
- t = "" + t, r.wholeText !== t && (r.data = t);
119
+ t = "" + t, r.data !== t && (r.data = t);
118
120
  }
119
121
  function ea(r, t) {
120
122
  r.value = t ?? "";
@@ -122,7 +124,7 @@ function ea(r, t) {
122
124
  function en(r, t, e) {
123
125
  r.classList[e ? "add" : "remove"](t);
124
126
  }
125
- function pl(r, t, { bubbles: e = !1, cancelable: n = !1 } = {}) {
127
+ function vl(r, t, { bubbles: e = !1, cancelable: n = !1 } = {}) {
126
128
  const i = document.createEvent("CustomEvent");
127
129
  return i.initCustomEvent(r, e, n, t), i;
128
130
  }
@@ -135,15 +137,15 @@ function Ka() {
135
137
  throw new Error("Function called outside component initialization");
136
138
  return Wi;
137
139
  }
138
- function dl(r) {
140
+ function yl(r) {
139
141
  Ka().$$.on_destroy.push(r);
140
142
  }
141
- function vl() {
143
+ function ml() {
142
144
  const r = Ka();
143
145
  return (t, e, { cancelable: n = !1 } = {}) => {
144
146
  const i = r.$$.callbacks[t];
145
147
  if (i) {
146
- const o = pl(t, e, { cancelable: n });
148
+ const o = vl(t, e, { cancelable: n });
147
149
  return i.slice().forEach((s) => {
148
150
  s.call(r, o);
149
151
  }), !o.defaultPrevented;
@@ -153,10 +155,10 @@ function vl() {
153
155
  }
154
156
  const ai = [], ds = [];
155
157
  let li = [];
156
- const na = [], yl = /* @__PURE__ */ Promise.resolve();
158
+ const na = [], _l = /* @__PURE__ */ Promise.resolve();
157
159
  let vs = !1;
158
- function ml() {
159
- vs || (vs = !0, yl.then(Qa));
160
+ function El() {
161
+ vs || (vs = !0, _l.then(Qa));
160
162
  }
161
163
  function ys(r) {
162
164
  li.push(r);
@@ -171,7 +173,7 @@ function Qa() {
171
173
  try {
172
174
  for (; si < ai.length; ) {
173
175
  const t = ai[si];
174
- si++, Xi(t), _l(t.$$);
176
+ si++, Xi(t), Il(t.$$);
175
177
  }
176
178
  } catch (t) {
177
179
  throw ai.length = 0, si = 0, t;
@@ -188,29 +190,29 @@ function Qa() {
188
190
  na.pop()();
189
191
  vs = !1, cs.clear(), Xi(r);
190
192
  }
191
- function _l(r) {
193
+ function Il(r) {
192
194
  if (r.fragment !== null) {
193
- r.update(), Dr(r.before_update);
195
+ r.update(), Mr(r.before_update);
194
196
  const t = r.dirty;
195
197
  r.dirty = [-1], r.fragment && r.fragment.p(r.ctx, t), r.after_update.forEach(ys);
196
198
  }
197
199
  }
198
- function El(r) {
200
+ function Cl(r) {
199
201
  const t = [], e = [];
200
202
  li.forEach((n) => r.indexOf(n) === -1 ? t.push(n) : e.push(n)), e.forEach((n) => n()), li = t;
201
203
  }
202
204
  const bo = /* @__PURE__ */ new Set();
203
- let kr;
205
+ let zr;
204
206
  function ra() {
205
- kr = {
207
+ zr = {
206
208
  r: 0,
207
209
  c: [],
208
- p: kr
210
+ p: zr
209
211
  // parent group
210
212
  };
211
213
  }
212
214
  function ia() {
213
- kr.r || Dr(kr.c), kr = kr.p;
215
+ zr.r || Mr(zr.c), zr = zr.p;
214
216
  }
215
217
  function Je(r, t) {
216
218
  r && r.i && (bo.delete(r), r.i(t));
@@ -219,7 +221,7 @@ function $n(r, t, e, n) {
219
221
  if (r && r.o) {
220
222
  if (bo.has(r))
221
223
  return;
222
- bo.add(r), kr.c.push(() => {
224
+ bo.add(r), zr.c.push(() => {
223
225
  bo.delete(r), n && (e && r.d(1), n());
224
226
  }), r.o(t);
225
227
  } else
@@ -232,15 +234,15 @@ function ji(r, t, e, n) {
232
234
  const { fragment: i, after_update: o } = r.$$;
233
235
  i && i.m(t, e), n || ys(() => {
234
236
  const s = r.$$.on_mount.map(Ha).filter(Wa);
235
- r.$$.on_destroy ? r.$$.on_destroy.push(...s) : Dr(s), r.$$.on_mount = [];
237
+ r.$$.on_destroy ? r.$$.on_destroy.push(...s) : Mr(s), r.$$.on_mount = [];
236
238
  }), o.forEach(ys);
237
239
  }
238
240
  function Ki(r, t) {
239
241
  const e = r.$$;
240
- e.fragment !== null && (El(e.after_update), Dr(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 = []);
241
243
  }
242
- function Il(r, t) {
243
- r.$$.dirty[0] === -1 && (ai.push(r), ml(), r.$$.dirty.fill(0)), r.$$.dirty[t / 31 | 0] |= 1 << t % 31;
244
+ function xl(r, t) {
245
+ r.$$.dirty[0] === -1 && (ai.push(r), El(), r.$$.dirty.fill(0)), r.$$.dirty[t / 31 | 0] |= 1 << t % 31;
244
246
  }
245
247
  function Ti(r, t, e, n, i, o, s, a = [-1]) {
246
248
  const u = Wi;
@@ -270,10 +272,10 @@ function Ti(r, t, e, n, i, o, s, a = [-1]) {
270
272
  let c = !1;
271
273
  if (l.ctx = e ? e(r, t.props || {}, (f, h, ...g) => {
272
274
  const p = g.length ? g[0] : h;
273
- return l.ctx && i(l.ctx[f], l.ctx[f] = p) && (!l.skip_bound && l.bound[f] && l.bound[f](p), c && Il(r, f)), h;
274
- }) : [], l.update(), c = !0, Dr(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 && xl(r, f)), h;
276
+ }) : [], l.update(), c = !0, Mr(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
275
277
  if (t.hydrate) {
276
- const f = gl(t.target);
278
+ const f = dl(t.target);
277
279
  l.fragment && l.fragment.l(f), f.forEach(Te);
278
280
  } else
279
281
  l.fragment && l.fragment.c();
@@ -295,36 +297,14 @@ class Mi {
295
297
  };
296
298
  }
297
299
  $set(t) {
298
- this.$$set && !sl(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
299
- }
300
- }
301
- function Cl(r) {
302
- let t, e;
303
- return {
304
- c() {
305
- t = Ir("svg"), e = Ir("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");
306
- },
307
- m(n, i) {
308
- We(n, t, i), ct(t, e);
309
- },
310
- p: Zt,
311
- i: Zt,
312
- o: Zt,
313
- d(n) {
314
- n && Te(t);
315
- }
316
- };
317
- }
318
- class xl extends Mi {
319
- constructor(t) {
320
- super(), Ti(this, t, null, Cl, Di, {});
300
+ this.$$set && !ul(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
321
301
  }
322
302
  }
323
303
  function Nl(r) {
324
304
  let t, e;
325
305
  return {
326
306
  c() {
327
- t = Ir("svg"), e = Ir("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");
307
+ t = xr("svg"), e = xr("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");
328
308
  },
329
309
  m(n, i) {
330
310
  We(n, t, i), ct(t, e);
@@ -365,65 +345,32 @@ class Ll extends Mi {
365
345
  }
366
346
  }
367
347
  function bl(r) {
368
- let t, e, n;
348
+ let t, e;
369
349
  return {
370
350
  c() {
371
- t = Ir("svg"), e = Ir("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*/
372
- r[0] !== "list" ? void 0 : "20"), B(t, "viewBox", "0 0 70 85"), B(t, "fill", "none"), B(t, "class", "svelte-1k1cmht"), en(
373
- t,
374
- "in-map",
375
- /*displayIn*/
376
- r[0] !== "list"
377
- ), en(
378
- t,
379
- "list-icon",
380
- /*displayIn*/
381
- r[0] === "list"
382
- );
351
+ t = xr("svg"), e = xr("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");
383
352
  },
384
- m(i, o) {
385
- We(i, t, o), ct(t, e);
386
- },
387
- p(i, [o]) {
388
- o & /*displayIn*/
389
- 1 && n !== (n = /*displayIn*/
390
- i[0] !== "list" ? void 0 : "20") && B(t, "width", n), o & /*displayIn*/
391
- 1 && en(
392
- t,
393
- "in-map",
394
- /*displayIn*/
395
- i[0] !== "list"
396
- ), o & /*displayIn*/
397
- 1 && en(
398
- t,
399
- "list-icon",
400
- /*displayIn*/
401
- i[0] === "list"
402
- );
353
+ m(n, i) {
354
+ We(n, t, i), ct(t, e);
403
355
  },
356
+ p: Zt,
404
357
  i: Zt,
405
358
  o: Zt,
406
- d(i) {
407
- i && Te(t);
359
+ d(n) {
360
+ n && Te(t);
408
361
  }
409
362
  };
410
363
  }
411
- function Pl(r, t, e) {
412
- let { displayIn: n } = t;
413
- return r.$$set = (i) => {
414
- "displayIn" in i && e(0, n = i.displayIn);
415
- }, [n];
416
- }
417
- class Rl extends Mi {
364
+ class Pl extends Mi {
418
365
  constructor(t) {
419
- super(), Ti(this, t, Pl, bl, Di, { displayIn: 0 });
366
+ super(), Ti(this, t, null, bl, Di, {});
420
367
  }
421
368
  }
422
- function Ol(r) {
369
+ function Rl(r) {
423
370
  let t, e;
424
371
  return {
425
372
  c() {
426
- t = Ir("svg"), e = Ir("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 = xr("svg"), e = xr("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");
427
374
  },
428
375
  m(n, i) {
429
376
  We(n, t, i), ct(t, e);
@@ -436,9 +383,9 @@ function Ol(r) {
436
383
  }
437
384
  };
438
385
  }
439
- class Dl extends Mi {
386
+ class Ol extends Mi {
440
387
  constructor(t) {
441
- super(), Ti(this, t, null, Ol, Di, {});
388
+ super(), Ti(this, t, null, Rl, Di, {});
442
389
  }
443
390
  }
444
391
  function oa(r, t, e) {
@@ -467,14 +414,14 @@ function sa(r) {
467
414
  }
468
415
  function aa(r) {
469
416
  let t, e, n, i, o;
470
- return e = new xl({}), {
417
+ return e = new Pl({}), {
471
418
  c() {
472
419
  t = oe("button"), Oo(e.$$.fragment), B(t, "type", "button"), B(
473
420
  t,
474
421
  "title",
475
422
  /*reverseButtonTitle*/
476
423
  r[9]
477
- ), B(t, "class", "svelte-1xi1e9d"), en(
424
+ ), B(t, "class", "svelte-gpexd2"), en(
478
425
  t,
479
426
  "active",
480
427
  /*reverseActive*/
@@ -515,7 +462,7 @@ function aa(r) {
515
462
  }
516
463
  };
517
464
  }
518
- function Tl(r) {
465
+ function Dl(r) {
519
466
  let t, e, n, i = (
520
467
  /*listFeatures*/
521
468
  r[12]
@@ -527,7 +474,7 @@ function Tl(r) {
527
474
  t = oe("ul");
528
475
  for (let s = 0; s < o.length; s += 1)
529
476
  o[s].c();
530
- B(t, "class", "svelte-1xi1e9d");
477
+ B(t, "class", "svelte-gpexd2");
531
478
  },
532
479
  m(s, a) {
533
480
  We(s, t, a);
@@ -564,18 +511,18 @@ function Tl(r) {
564
511
  }
565
512
  },
566
513
  d(s) {
567
- s && Te(t), fl(o, s), e = !1, Dr(n);
514
+ s && Te(t), gl(o, s), e = !1, Mr(n);
568
515
  }
569
516
  };
570
517
  }
571
- function Ml(r) {
518
+ function Tl(r) {
572
519
  let t, e;
573
520
  return {
574
521
  c() {
575
522
  t = oe("div"), e = Vr(
576
523
  /*noResultsMessage*/
577
524
  r[7]
578
- ), B(t, "class", "no-results svelte-1xi1e9d");
525
+ ), B(t, "class", "no-results svelte-gpexd2");
579
526
  },
580
527
  m(n, i) {
581
528
  We(n, t, i), ct(t, e);
@@ -593,7 +540,7 @@ function Ml(r) {
593
540
  }
594
541
  };
595
542
  }
596
- function Al(r) {
543
+ function Ml(r) {
597
544
  let t = "", e;
598
545
  return {
599
546
  c() {
@@ -608,14 +555,14 @@ function Al(r) {
608
555
  }
609
556
  };
610
557
  }
611
- function Fl(r) {
558
+ function Al(r) {
612
559
  let t, e;
613
560
  return {
614
561
  c() {
615
562
  t = oe("div"), e = Vr(
616
563
  /*errorMessage*/
617
564
  r[6]
618
- ), B(t, "class", "error svelte-1xi1e9d");
565
+ ), B(t, "class", "error svelte-gpexd2");
619
566
  },
620
567
  m(n, i) {
621
568
  We(n, t, i), ct(t, e);
@@ -642,7 +589,7 @@ function ua(r) {
642
589
  ), n;
643
590
  return {
644
591
  c() {
645
- t = oe("span"), n = Vr(e), B(t, "class", "line2 svelte-1xi1e9d");
592
+ t = oe("span"), n = Vr(e), B(t, "class", "line2 svelte-gpexd2");
646
593
  },
647
594
  m(s, a) {
648
595
  We(s, t, a), ct(t, n);
@@ -690,9 +637,9 @@ function la(r) {
690
637
  }
691
638
  return {
692
639
  c() {
693
- 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-1xi1e9d"), B(u, "class", "secondary svelte-1xi1e9d"), B(n, "class", "line1 svelte-1xi1e9d"), B(e, "class", "texts svelte-1xi1e9d"), 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-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*/
694
641
  r[13] === /*i*/
695
- r[71]), B(t, "class", "svelte-1xi1e9d"), en(
642
+ r[71]), B(t, "class", "svelte-gpexd2"), en(
696
643
  t,
697
644
  "selected",
698
645
  /*selectedItemIndex*/
@@ -725,13 +672,13 @@ function la(r) {
725
672
  );
726
673
  },
727
674
  d(C) {
728
- C && Te(t), d && d.d(), p = !1, Dr(m);
675
+ C && Te(t), d && d.d(), p = !1, Mr(m);
729
676
  }
730
677
  };
731
678
  }
732
- function Bl(r) {
679
+ function Fl(r) {
733
680
  let t, e, n, i, o, s, a, u, l, c, f, h, g, p, m, d, _, I;
734
- i = new Dl({}), c = new Sl({});
681
+ i = new Ol({}), c = new Sl({});
735
682
  let C = (
736
683
  /*abortController*/
737
684
  r[17] && sa()
@@ -742,7 +689,7 @@ function Bl(r) {
742
689
  const S = (
743
690
  /*#slots*/
744
691
  r[48].default
745
- ), b = al(
692
+ ), b = ll(
746
693
  S,
747
694
  r,
748
695
  /*$$scope*/
@@ -755,26 +702,26 @@ function Bl(r) {
755
702
  /*error*/
756
703
  R[16]
757
704
  )
758
- return Fl;
705
+ return Al;
759
706
  if (!/*focusedDelayed*/
760
707
  R[14])
761
- return Al;
708
+ return Ml;
762
709
  if (
763
710
  /*listFeatures*/
764
711
  ((q = R[12]) == null ? void 0 : q.length) === 0
765
712
  )
766
- return Ml;
713
+ return Tl;
767
714
  if (
768
715
  /*focusedDelayed*/
769
716
  R[14] && /*listFeatures*/
770
717
  ((rt = R[12]) != null && rt.length)
771
718
  )
772
- return Tl;
719
+ return Dl;
773
720
  }
774
721
  let F = A(r), D = F && F(r);
775
722
  return {
776
723
  c() {
777
- 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-1xi1e9d"), 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(), x && x.c(), g = tr(), b && b.c(), p = tr(), D && D.c(), B(n, "type", "button"), B(n, "class", "svelte-gpexd2"), B(
778
725
  s,
779
726
  "placeholder",
780
727
  /*placeholder*/
@@ -784,20 +731,20 @@ function Bl(r) {
784
731
  "aria-label",
785
732
  /*placeholder*/
786
733
  r[8]
787
- ), B(s, "class", "svelte-1xi1e9d"), B(l, "type", "button"), B(
734
+ ), B(s, "class", "svelte-gpexd2"), B(l, "type", "button"), B(
788
735
  l,
789
736
  "title",
790
737
  /*clearButtonTitle*/
791
738
  r[3]
792
- ), B(l, "class", "svelte-1xi1e9d"), en(
739
+ ), B(l, "class", "svelte-gpexd2"), en(
793
740
  l,
794
741
  "displayable",
795
742
  /*searchValue*/
796
743
  r[1] !== ""
797
- ), B(u, "class", "clear-button-container svelte-1xi1e9d"), B(e, "class", "input-group svelte-1xi1e9d"), B(t, "tabindex", "0"), B(t, "class", m = ta(
744
+ ), B(u, "class", "clear-button-container svelte-gpexd2"), B(e, "class", "input-group svelte-gpexd2"), B(t, "tabindex", "0"), B(t, "class", m = ta(
798
745
  /*className*/
799
746
  r[2]
800
- ) + " svelte-1xi1e9d"), en(
747
+ ) + " svelte-gpexd2"), en(
801
748
  t,
802
749
  "can-collapse",
803
750
  /*collapsed*/
@@ -853,7 +800,7 @@ function Bl(r) {
853
800
  /*click_handler_1*/
854
801
  r[55]
855
802
  ),
856
- Be(t, "submit", hl(
803
+ Be(t, "submit", pl(
857
804
  /*handleOnSubmit*/
858
805
  r[18]
859
806
  ))
@@ -899,19 +846,19 @@ function Bl(r) {
899
846
  32 && Je(x, 1)) : (x = aa(R), x.c(), Je(x, 1), x.m(e, g)) : x && (ra(), $n(x, 1, 1, () => {
900
847
  x = null;
901
848
  }), ia()), b && b.p && (!d || z[1] & /*$$scope*/
902
- 65536) && ll(
849
+ 65536) && fl(
903
850
  b,
904
851
  S,
905
852
  R,
906
853
  /*$$scope*/
907
854
  R[47],
908
- d ? ul(
855
+ d ? cl(
909
856
  S,
910
857
  /*$$scope*/
911
858
  R[47],
912
859
  z,
913
860
  null
914
- ) : cl(
861
+ ) : hl(
915
862
  /*$$scope*/
916
863
  R[47]
917
864
  ),
@@ -920,7 +867,7 @@ function Bl(r) {
920
867
  4 && m !== (m = ta(
921
868
  /*className*/
922
869
  R[2]
923
- ) + " svelte-1xi1e9d")) && B(t, "class", m), (!d || z[0] & /*className, collapsed, searchValue*/
870
+ ) + " svelte-gpexd2")) && B(t, "class", m), (!d || z[0] & /*className, collapsed, searchValue*/
924
871
  22) && en(
925
872
  t,
926
873
  "can-collapse",
@@ -936,11 +883,11 @@ function Bl(r) {
936
883
  $n(i.$$.fragment, R), $n(c.$$.fragment, R), $n(C), $n(x), $n(b, R), d = !1;
937
884
  },
938
885
  d(R) {
939
- R && Te(t), Ki(i), r[50](null), Ki(c), C && C.d(), x && x.d(), b && b.d(R), D && D.d(), _ = !1, Dr(I);
886
+ R && Te(t), Ki(i), r[50](null), Ki(c), C && C.d(), x && x.d(), b && b.d(R), D && D.d(), _ = !1, Mr(I);
940
887
  }
941
888
  };
942
889
  }
943
- function Gl(r, t, e) {
890
+ function Bl(r, t, e) {
944
891
  const n = t[1], i = t[0], o = n - i;
945
892
  return r === n && e ? r : ((r - i) % o + o) % o + i;
946
893
  }
@@ -950,20 +897,20 @@ function ca(r) {
950
897
  }
951
898
  function kl(r, t, e) {
952
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: 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;
953
- function Ar() {
954
- An.focus();
900
+ function Br() {
901
+ Fn.focus();
955
902
  }
956
903
  function mn() {
957
- An.blur();
904
+ Fn.blur();
958
905
  }
959
- function Mn(N, At = !0) {
906
+ function An(N, At = !0) {
960
907
  e(1, q = N), At ? (e(13, Mt = -1), Qs()) : (os(), setTimeout(() => {
961
- An.focus(), An.select();
908
+ Fn.focus(), Fn.select();
962
909
  }));
963
910
  }
964
- let fe = !1, et, Rt, vt, Ks = "", An, Mt = -1, gr, Eo = [], Fr, oi, Io;
965
- const pr = vl();
966
- dl(() => {
911
+ let fe = !1, et, Rt, vt, Ks = "", Fn, Mt = -1, gr, Eo = [], kr, oi, Io;
912
+ const pr = ml();
913
+ yl(() => {
967
914
  S && (S.setEventHandler(void 0), S.indicateReverse(!1), S.setSelectedMarker(-1), S.setMarkers(void 0, void 0));
968
915
  });
969
916
  function Qs(N) {
@@ -973,50 +920,50 @@ function kl(r, t, e) {
973
920
  const At = N || !Js();
974
921
  is(q, { exact: !0 }).then(() => {
975
922
  e(44, Rt = et), e(45, vt = void 0), At && Xu();
976
- }).catch((Fn) => e(16, gr = Fn));
923
+ }).catch((Bn) => e(16, gr = Bn));
977
924
  }
978
925
  }
979
926
  function Js() {
980
927
  return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(q);
981
928
  }
982
- async function is(N, { byId: At = !1, exact: Fn = !1 } = {}) {
929
+ async function is(N, { byId: At = !1, exact: Bn = !1 } = {}) {
983
930
  e(16, gr = void 0);
984
- const ki = Js(), Fe = new URLSearchParams();
985
- C != null && Fe.set("language", Array.isArray(C) ? C.join(",") : C), Nt && Fe.set("types", Nt.join(",")), ki || (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(",")), (Fn || !Y) && Fe.set("autocomplete", "false"), Fe.set("fuzzyMatch", String(I))), x !== void 0 && Fe.set("limit", String(x)), Fe.set("key", a);
986
- const Br = "https://api.maptiler.com/geocoding/" + encodeURIComponent(N) + ".json?" + Fe.toString();
987
- if (Br === Ks) {
931
+ const Gi = Js(), Fe = new URLSearchParams();
932
+ C != null && Fe.set("language", Array.isArray(C) ? C.join(",") : C), Nt && Fe.set("types", Nt.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))), x !== void 0 && Fe.set("limit", String(x)), Fe.set("key", a);
933
+ const Gr = "https://api.maptiler.com/geocoding/" + encodeURIComponent(N) + ".json?" + Fe.toString();
934
+ if (Gr === Ks) {
988
935
  At ? (e(12, et = void 0), e(45, vt = Eo[0])) : e(12, et = Eo);
989
936
  return;
990
937
  }
991
- Ks = Br, Fr == null || Fr.abort();
938
+ Ks = Gr, kr == null || kr.abort();
992
939
  const ye = new AbortController();
993
- e(17, Fr = ye);
940
+ e(17, kr = ye);
994
941
  let as;
995
942
  try {
996
- as = await fetch(Br, { signal: ye.signal, ...ce }).finally(() => {
997
- ye === Fr && e(17, Fr = void 0);
943
+ as = await fetch(Gr, { signal: ye.signal, ...ce }).finally(() => {
944
+ ye === kr && e(17, kr = void 0);
998
945
  });
999
- } catch (Gr) {
1000
- if (Gr && typeof Gr == "object" && Gr.name === "AbortError")
946
+ } catch (dr) {
947
+ if (dr && typeof dr == "object" && "name" in dr && dr.name === "AbortError")
1001
948
  return;
1002
949
  throw new Error();
1003
950
  }
1004
951
  if (!as.ok)
1005
952
  throw new Error();
1006
953
  const us = await as.json();
1007
- pr("response", { url: Br, 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, ki && An.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());
1008
955
  }
1009
956
  function Xu() {
1010
- var Fn, ki, Fe, Br;
957
+ var Bn, Gi, Fe, Gr;
1011
958
  if (!(Rt != null && Rt.length) || !_)
1012
959
  return;
1013
960
  const N = [180, 90, -180, -90], At = !Rt.some((ye) => !ye.matching_text);
1014
961
  for (const ye of Rt)
1015
- (At || !ye.matching_text) && (N[0] = Math.min(N[0], ((Fn = ye.bbox) == null ? void 0 : Fn[0]) ?? ye.center[0]), N[1] = Math.min(N[1], ((ki = ye.bbox) == null ? void 0 : ki[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], ((Br = ye.bbox) == null ? void 0 : Br[3]) ?? ye.center[1]));
962
+ (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], ((Gr = ye.bbox) == null ? void 0 : Gr[3]) ?? ye.center[1]));
1016
963
  S && Rt.length > 0 && (vt && N[0] === N[2] && N[1] === N[3] ? S.flyTo(vt.center, qt) : S.fitBounds(ca(N), 50));
1017
964
  }
1018
965
  function Yu(N) {
1019
- e(0, R = p === "always"), Mn(Gl(N[0], [-180, 180], !0).toFixed(6) + "," + N[1].toFixed(6));
966
+ e(0, R = p === "always"), An(Bl(N[0], [-180, 180], !0).toFixed(6) + "," + N[1].toFixed(6));
1020
967
  }
1021
968
  function Hu(N) {
1022
969
  if (!et)
@@ -1030,7 +977,7 @@ function kl(r, t, e) {
1030
977
  const At = q;
1031
978
  oi = window.setTimeout(
1032
979
  () => {
1033
- is(At).catch((Fn) => e(16, gr = Fn));
980
+ is(At).catch((Bn) => e(16, gr = Bn));
1034
981
  },
1035
982
  N ? g : 0
1036
983
  );
@@ -1040,17 +987,17 @@ function kl(r, t, e) {
1040
987
  function ss(N) {
1041
988
  e(45, vt = N), e(1, q = N.place_name), e(13, Mt = -1);
1042
989
  }
1043
- const Wu = () => An.focus();
990
+ const Wu = () => Fn.focus();
1044
991
  function ju(N) {
1045
992
  ds[N ? "unshift" : "push"](() => {
1046
- An = N, e(15, An);
993
+ Fn = N, e(15, Fn);
1047
994
  });
1048
995
  }
1049
996
  function Ku() {
1050
997
  q = this.value, e(1, q), e(11, fe), e(25, c);
1051
998
  }
1052
999
  const Qu = () => e(11, fe = !0), Ju = () => e(11, fe = !1), Zu = () => os(), $u = () => {
1053
- e(1, q = ""), An.focus();
1000
+ e(1, q = ""), Fn.focus();
1054
1001
  }, tl = () => e(0, R = !R), el = (N) => e(13, Mt = N), nl = (N) => ss(N), rl = () => e(13, Mt = -1), il = () => {
1055
1002
  };
1056
1003
  return r.$$set = (N) => {
@@ -1080,7 +1027,7 @@ function kl(r, t, e) {
1080
1027
  break;
1081
1028
  case "markerClick":
1082
1029
  {
1083
- const At = et == null ? void 0 : et.find((Fn) => Fn.id === N.id);
1030
+ const At = et == null ? void 0 : et.find((Bn) => Bn.id === N.id);
1084
1031
  At && ss(At);
1085
1032
  }
1086
1033
  break;
@@ -1126,9 +1073,9 @@ function kl(r, t, e) {
1126
1073
  et,
1127
1074
  Mt,
1128
1075
  Io,
1129
- An,
1076
+ Fn,
1130
1077
  gr,
1131
- Fr,
1078
+ kr,
1132
1079
  Qs,
1133
1080
  Hu,
1134
1081
  os,
@@ -1152,9 +1099,9 @@ function kl(r, t, e) {
1152
1099
  Nt,
1153
1100
  qt,
1154
1101
  ce,
1155
- Ar,
1102
+ Br,
1156
1103
  mn,
1157
- Mn,
1104
+ An,
1158
1105
  Rt,
1159
1106
  vt,
1160
1107
  n,
@@ -1174,13 +1121,13 @@ function kl(r, t, e) {
1174
1121
  il
1175
1122
  ];
1176
1123
  }
1177
- let zl = class extends Mi {
1124
+ let Gl = class extends Mi {
1178
1125
  constructor(t) {
1179
1126
  super(), Ti(
1180
1127
  this,
1181
1128
  t,
1182
1129
  kl,
1183
- Bl,
1130
+ Fl,
1184
1131
  Di,
1185
1132
  {
1186
1133
  class: 2,
@@ -1253,7 +1200,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
1253
1200
  See the Apache Version 2.0 License for specific language governing permissions
1254
1201
  and limitations under the License.
1255
1202
  ***************************************************************************** */
1256
- function Vl(r, t) {
1203
+ function zl(r, t) {
1257
1204
  var e = { label: 0, sent: function() {
1258
1205
  if (o[0] & 1)
1259
1206
  throw o[1];
@@ -1318,7 +1265,7 @@ function Vl(r, t) {
1318
1265
  return { value: l[0] ? l[1] : void 0, done: !0 };
1319
1266
  }
1320
1267
  }
1321
- var Cr = (
1268
+ var Nr = (
1322
1269
  /** @class */
1323
1270
  function() {
1324
1271
  function r(t, e) {
@@ -1327,11 +1274,11 @@ var Cr = (
1327
1274
  return r;
1328
1275
  }()
1329
1276
  );
1330
- function Ul(r, t) {
1277
+ function Vl(r, t) {
1331
1278
  return r > t ? 1 : r < t ? -1 : 0;
1332
1279
  }
1333
- function yr(r, t, e) {
1334
- for (var n = new Cr(null, null), i = n, o = n; ; ) {
1280
+ function mr(r, t, e) {
1281
+ for (var n = new Nr(null, null), i = n, o = n; ; ) {
1335
1282
  var s = e(r, t.key);
1336
1283
  if (s < 0) {
1337
1284
  if (t.left === null)
@@ -1357,24 +1304,24 @@ function yr(r, t, e) {
1357
1304
  return i.right = t.left, o.left = t.right, t.left = n.right, t.right = n.left, t;
1358
1305
  }
1359
1306
  function fs(r, t, e, n) {
1360
- var i = new Cr(r, t);
1307
+ var i = new Nr(r, t);
1361
1308
  if (e === null)
1362
1309
  return i.left = i.right = null, i;
1363
- e = yr(r, e, n);
1310
+ e = mr(r, e, n);
1364
1311
  var o = n(r, e.key);
1365
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;
1366
1313
  }
1367
1314
  function fa(r, t, e) {
1368
1315
  var n = null, i = null;
1369
1316
  if (t) {
1370
- t = yr(r, t, e);
1317
+ t = mr(r, t, e);
1371
1318
  var o = e(t.key, r);
1372
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);
1373
1320
  }
1374
1321
  return { left: n, right: i };
1375
1322
  }
1376
- function ql(r, t, e) {
1377
- 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);
1378
1325
  }
1379
1326
  function ms(r, t, e, n, i) {
1380
1327
  if (r) {
@@ -1388,14 +1335,14 @@ var Ds = (
1388
1335
  /** @class */
1389
1336
  function() {
1390
1337
  function r(t) {
1391
- t === void 0 && (t = Ul), this._root = null, this._size = 0, this._comparator = t;
1338
+ t === void 0 && (t = Vl), this._root = null, this._size = 0, this._comparator = t;
1392
1339
  }
1393
1340
  return r.prototype.insert = function(t, e) {
1394
1341
  return this._size++, this._root = fs(t, e, this._root, this._comparator);
1395
1342
  }, r.prototype.add = function(t, e) {
1396
- var n = new Cr(t, e);
1343
+ var n = new Nr(t, e);
1397
1344
  this._root === null && (n.left = n.right = null, this._size++, this._root = n);
1398
- 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);
1399
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;
1400
1347
  }, r.prototype.remove = function(t) {
1401
1348
  this._root = this._remove(t, this._root, this._comparator);
@@ -1403,15 +1350,15 @@ var Ds = (
1403
1350
  var i;
1404
1351
  if (e === null)
1405
1352
  return null;
1406
- e = yr(t, e, n);
1353
+ e = mr(t, e, n);
1407
1354
  var o = n(t, e.key);
1408
- 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;
1409
1356
  }, r.prototype.pop = function() {
1410
1357
  var t = this._root;
1411
1358
  if (t) {
1412
1359
  for (; t.left; )
1413
1360
  t = t.left;
1414
- 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 };
1415
1362
  }
1416
1363
  return null;
1417
1364
  }, r.prototype.findStatic = function(t) {
@@ -1423,7 +1370,7 @@ var Ds = (
1423
1370
  }
1424
1371
  return null;
1425
1372
  }, r.prototype.find = function(t) {
1426
- 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;
1427
1374
  }, r.prototype.contains = function(t) {
1428
1375
  for (var e = this._root, n = this._comparator; e; ) {
1429
1376
  var i = n(t, e.key);
@@ -1516,14 +1463,14 @@ var Ds = (
1516
1463
  }, r.prototype.clear = function() {
1517
1464
  return this._root = null, this._size = 0, this;
1518
1465
  }, r.prototype.toList = function() {
1519
- return Yl(this._root);
1466
+ return Xl(this._root);
1520
1467
  }, r.prototype.load = function(t, e, n) {
1521
1468
  e === void 0 && (e = []), n === void 0 && (n = !1);
1522
1469
  var i = t.length, o = this._comparator;
1523
1470
  if (n && Is(t, e, 0, i - 1, o), this._root === null)
1524
1471
  this._root = _s(t, e, 0, i), this._size = i;
1525
1472
  else {
1526
- var s = Hl(this.toList(), Xl(t, e), o);
1473
+ var s = Yl(this.toList(), ql(t, e), o);
1527
1474
  i = this._size + i, this._root = Es({ head: s }, 0, i);
1528
1475
  }
1529
1476
  return this;
@@ -1551,12 +1498,12 @@ var Ds = (
1551
1498
  }, t), e.join("");
1552
1499
  }, r.prototype.update = function(t, e, n) {
1553
1500
  var i = this._comparator, o = fa(t, this._root, i), s = o.left, a = o.right;
1554
- i(t, e) < 0 ? a = fs(e, n, a, i) : s = fs(e, n, s, i), this._root = ql(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);
1555
1502
  }, r.prototype.split = function(t) {
1556
1503
  return fa(t, this._root, this._comparator);
1557
1504
  }, r.prototype[Symbol.iterator] = function() {
1558
1505
  var t;
1559
- return Vl(this, function(e) {
1506
+ return zl(this, function(e) {
1560
1507
  switch (e.label) {
1561
1508
  case 0:
1562
1509
  t = this.minNode(), e.label = 1;
@@ -1577,18 +1524,18 @@ var Ds = (
1577
1524
  function _s(r, t, e, n) {
1578
1525
  var i = n - e;
1579
1526
  if (i > 0) {
1580
- var o = e + Math.floor(i / 2), s = r[o], a = t[o], u = new Cr(s, a);
1527
+ var o = e + Math.floor(i / 2), s = r[o], a = t[o], u = new Nr(s, a);
1581
1528
  return u.left = _s(r, t, e, o), u.right = _s(r, t, o + 1, n), u;
1582
1529
  }
1583
1530
  return null;
1584
1531
  }
1585
- function Xl(r, t) {
1586
- for (var e = new Cr(null, null), n = e, i = 0; i < r.length; i++)
1587
- n = n.next = new Cr(r[i], t[i]);
1532
+ function ql(r, t) {
1533
+ for (var e = new Nr(null, null), n = e, i = 0; i < r.length; i++)
1534
+ n = n.next = new Nr(r[i], t[i]);
1588
1535
  return n.next = null, e.next;
1589
1536
  }
1590
- function Yl(r) {
1591
- for (var t = r, e = [], n = !1, i = new Cr(null, null), o = i; !n; )
1537
+ function Xl(r) {
1538
+ for (var t = r, e = [], n = !1, i = new Nr(null, null), o = i; !n; )
1592
1539
  t ? (e.push(t), t = t.left) : e.length > 0 ? (t = o = o.next = e.pop(), t = t.right) : n = !0;
1593
1540
  return o.next = null, i.next;
1594
1541
  }
@@ -1600,8 +1547,8 @@ function Es(r, t, e) {
1600
1547
  }
1601
1548
  return null;
1602
1549
  }
1603
- function Hl(r, t, e) {
1604
- for (var n = new Cr(null, null), i = n, o = r, s = t; o !== null && s !== null; )
1550
+ function Yl(r, t, e) {
1551
+ for (var n = new Nr(null, null), i = n, o = r, s = t; o !== null && s !== null; )
1605
1552
  e(o.key, s.key) < 0 ? (i.next = o, o = o.next) : (i.next = s, s = s.next), i = i.next;
1606
1553
  return o !== null ? i.next = o : s !== null && (i.next = s), n.next;
1607
1554
  }
@@ -1651,14 +1598,14 @@ var zi = function(t, e) {
1651
1598
  y: s
1652
1599
  }
1653
1600
  };
1654
- }, mr = Number.EPSILON;
1655
- mr === void 0 && (mr = Math.pow(2, -52));
1656
- var Wl = mr * mr, xs = function(t, e) {
1657
- if (-mr < t && t < mr && -mr < e && e < mr)
1601
+ }, Er = Number.EPSILON;
1602
+ Er === void 0 && (Er = Math.pow(2, -52));
1603
+ var Hl = Er * Er, xs = function(t, e) {
1604
+ if (-Er < t && t < Er && -Er < e && e < Er)
1658
1605
  return 0;
1659
1606
  var n = t - e;
1660
- return n * n < Wl * t * e ? 0 : t < e ? -1 : 1;
1661
- }, jl = /* @__PURE__ */ function() {
1607
+ return n * n < Hl * t * e ? 0 : t < e ? -1 : 1;
1608
+ }, Wl = /* @__PURE__ */ function() {
1662
1609
  function r() {
1663
1610
  dn(this, r), this.reset();
1664
1611
  }
@@ -1690,7 +1637,7 @@ var Wl = mr * mr, xs = function(t, e) {
1690
1637
  return o !== null && xs(n.key, o.key) === 0 ? (this.tree.remove(e), o.key) : e;
1691
1638
  }
1692
1639
  }]), r;
1693
- }(), Qi = new jl(), Yi = function(t, e) {
1640
+ }(), Qi = new Wl(), Yi = function(t, e) {
1694
1641
  return t.x * e.y - t.y * e.x;
1695
1642
  }, Ja = function(t, e) {
1696
1643
  return t.x * e.x + t.y * e.y;
@@ -1705,7 +1652,7 @@ var Wl = mr * mr, xs = function(t, e) {
1705
1652
  return xs(s, 0);
1706
1653
  }, Do = function(t) {
1707
1654
  return Math.sqrt(Ja(t, t));
1708
- }, Kl = function(t, e, n) {
1655
+ }, jl = function(t, e, n) {
1709
1656
  var i = {
1710
1657
  x: e.x - t.x,
1711
1658
  y: e.y - t.y
@@ -1714,7 +1661,7 @@ var Wl = mr * mr, xs = function(t, e) {
1714
1661
  y: n.y - t.y
1715
1662
  };
1716
1663
  return Yi(o, i) / Do(o) / Do(i);
1717
- }, Ql = function(t, e, n) {
1664
+ }, Kl = function(t, e, n) {
1718
1665
  var i = {
1719
1666
  x: e.x - t.x,
1720
1667
  y: e.y - t.y
@@ -1733,7 +1680,7 @@ var Wl = mr * mr, xs = function(t, e) {
1733
1680
  x: n,
1734
1681
  y: t.y + e.y / e.x * (n - t.x)
1735
1682
  };
1736
- }, Jl = function(t, e, n, i) {
1683
+ }, Ql = function(t, e, n, i) {
1737
1684
  if (e.x === 0)
1738
1685
  return va(n, i, t.x);
1739
1686
  if (i.x === 0)
@@ -1822,8 +1769,8 @@ var Wl = mr * mr, xs = function(t, e) {
1822
1769
  var n = this, i = /* @__PURE__ */ new Map(), o = function(a) {
1823
1770
  var u = a.otherSE;
1824
1771
  i.set(a, {
1825
- sine: Kl(n.point, e.point, u.point),
1826
- cosine: Ql(n.point, e.point, u.point)
1772
+ sine: jl(n.point, e.point, u.point),
1773
+ cosine: Kl(n.point, e.point, u.point)
1827
1774
  });
1828
1775
  };
1829
1776
  return function(s, a) {
@@ -1833,7 +1780,7 @@ var Wl = mr * mr, xs = function(t, e) {
1833
1780
  };
1834
1781
  }
1835
1782
  }]), r;
1836
- }(), Zl = 0, To = /* @__PURE__ */ function() {
1783
+ }(), Jl = 0, To = /* @__PURE__ */ function() {
1837
1784
  Ie(r, null, [{
1838
1785
  key: "compare",
1839
1786
  /* This compare() function is for ordering segments in the sweep
@@ -1909,7 +1856,7 @@ var Wl = mr * mr, xs = function(t, e) {
1909
1856
  * and possibly will be later modified */
1910
1857
  }]);
1911
1858
  function r(t, e, n, i) {
1912
- dn(this, r), this.id = ++Zl, 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;
1913
1860
  }
1914
1861
  return Ie(r, [{
1915
1862
  key: "replaceRightSE",
@@ -2007,7 +1954,7 @@ var Wl = mr * mr, xs = function(t, e) {
2007
1954
  return a;
2008
1955
  if (h)
2009
1956
  return l;
2010
- var p = Jl(s, this.vector(), u, e.vector());
1957
+ var p = Ql(s, this.vector(), u, e.vector());
2011
1958
  return p === null || !zi(o, p) ? null : Qi.round(p.x, p.y);
2012
1959
  }
2013
1960
  /**
@@ -2130,7 +2077,7 @@ var Wl = mr * mr, xs = function(t, e) {
2130
2077
  if (this._isInResult !== void 0)
2131
2078
  return this._isInResult;
2132
2079
  var e = this.beforeState().multiPolys, n = this.afterState().multiPolys;
2133
- switch (In.type) {
2080
+ switch (Cn.type) {
2134
2081
  case "union": {
2135
2082
  var i = e.length === 0, o = n.length === 0;
2136
2083
  this._isInResult = i !== o;
@@ -2138,7 +2085,7 @@ var Wl = mr * mr, xs = function(t, e) {
2138
2085
  }
2139
2086
  case "intersection": {
2140
2087
  var s, a;
2141
- e.length < n.length ? (s = e.length, a = n.length) : (s = n.length, a = e.length), this._isInResult = a === In.numMultiPolys && s < a;
2088
+ e.length < n.length ? (s = e.length, a = n.length) : (s = n.length, a = e.length), this._isInResult = a === Cn.numMultiPolys && s < a;
2142
2089
  break;
2143
2090
  }
2144
2091
  case "xor": {
@@ -2154,7 +2101,7 @@ var Wl = mr * mr, xs = function(t, e) {
2154
2101
  break;
2155
2102
  }
2156
2103
  default:
2157
- throw new Error("Unrecognized operation type found ".concat(In.type));
2104
+ throw new Error("Unrecognized operation type found ".concat(Cn.type));
2158
2105
  }
2159
2106
  return this._isInResult;
2160
2107
  }
@@ -2207,7 +2154,7 @@ var Wl = mr * mr, xs = function(t, e) {
2207
2154
  return e;
2208
2155
  }
2209
2156
  }]), r;
2210
- }(), $l = /* @__PURE__ */ function() {
2157
+ }(), Zl = /* @__PURE__ */ function() {
2211
2158
  function r(t, e) {
2212
2159
  if (dn(this, r), !Array.isArray(t))
2213
2160
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
@@ -2255,7 +2202,7 @@ var Wl = mr * mr, xs = function(t, e) {
2255
2202
  }
2256
2203
  };
2257
2204
  for (var n = 0, i = t.length; n < i; n++) {
2258
- var o = new $l(t[n], this);
2205
+ var o = new Zl(t[n], this);
2259
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);
2260
2207
  }
2261
2208
  this.isSubject = e;
@@ -2269,7 +2216,7 @@ var Wl = mr * mr, xs = function(t, e) {
2269
2216
  return e;
2270
2217
  }
2271
2218
  }]), r;
2272
- }(), tc = /* @__PURE__ */ function() {
2219
+ }(), $l = /* @__PURE__ */ function() {
2273
2220
  Ie(r, null, [{
2274
2221
  key: "factory",
2275
2222
  /* Given the segments from the sweep line pass, compute & return a series
@@ -2389,7 +2336,7 @@ var Wl = mr * mr, xs = function(t, e) {
2389
2336
  return e;
2390
2337
  }
2391
2338
  }]), r;
2392
- }(), ec = /* @__PURE__ */ function() {
2339
+ }(), tc = /* @__PURE__ */ function() {
2393
2340
  function r(t) {
2394
2341
  dn(this, r), this.rings = t, this.polys = this._composePolys(t);
2395
2342
  }
@@ -2418,7 +2365,7 @@ var Wl = mr * mr, xs = function(t, e) {
2418
2365
  return n;
2419
2366
  }
2420
2367
  }]), r;
2421
- }(), nc = /* @__PURE__ */ function() {
2368
+ }(), ec = /* @__PURE__ */ function() {
2422
2369
  function r(t) {
2423
2370
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : To.compare;
2424
2371
  dn(this, r), this.queue = t, this.tree = new Ds(e), this.segments = [];
@@ -2494,20 +2441,20 @@ var Wl = mr * mr, xs = function(t, e) {
2494
2441
  return o.push(i), e.consumedBy === void 0 && this.tree.insert(e), o;
2495
2442
  }
2496
2443
  }]), r;
2497
- }(), Ea = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, rc = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6, ic = /* @__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() {
2498
2445
  function r() {
2499
2446
  dn(this, r);
2500
2447
  }
2501
2448
  return Ie(r, [{
2502
2449
  key: "run",
2503
2450
  value: function(e, n, i) {
2504
- In.type = e, Qi.reset();
2451
+ Cn.type = e, Qi.reset();
2505
2452
  for (var o = [new ma(n, !0)], s = 0, a = i.length; s < a; s++)
2506
2453
  o.push(new ma(i[s], !1));
2507
- if (In.numMultiPolys = o.length, In.type === "difference")
2454
+ if (Cn.numMultiPolys = o.length, Cn.type === "difference")
2508
2455
  for (var u = o[0], l = 1; l < o.length; )
2509
2456
  Cs(o[l].bbox, u.bbox) !== null ? l++ : o.splice(l, 1);
2510
- if (In.type === "intersection") {
2457
+ if (Cn.type === "intersection") {
2511
2458
  for (var c = 0, f = o.length; c < f; c++)
2512
2459
  for (var h = o[c], g = c + 1, p = o.length; g < p; g++)
2513
2460
  if (Cs(h.bbox, o[g].bbox) === null)
@@ -2517,7 +2464,7 @@ var Wl = mr * mr, xs = function(t, e) {
2517
2464
  for (var I = o[d].getSweepEvents(), C = 0, x = I.length; C < x; C++)
2518
2465
  if (m.insert(I[C]), m.size > Ea)
2519
2466
  throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");
2520
- for (var S = new nc(m), b = m.size, A = m.pop(); A; ) {
2467
+ for (var S = new ec(m), b = m.size, A = m.pop(); A; ) {
2521
2468
  var F = A.key;
2522
2469
  if (m.size === b) {
2523
2470
  var D = F.segment;
@@ -2525,7 +2472,7 @@ var Wl = mr * mr, xs = function(t, e) {
2525
2472
  }
2526
2473
  if (m.size > Ea)
2527
2474
  throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");
2528
- if (S.segments.length > rc)
2475
+ if (S.segments.length > nc)
2529
2476
  throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");
2530
2477
  for (var R = S.process(F), z = 0, q = R.length; z < q; z++) {
2531
2478
  var rt = R[z];
@@ -2534,31 +2481,31 @@ var Wl = mr * mr, xs = function(t, e) {
2534
2481
  b = m.size, A = m.pop();
2535
2482
  }
2536
2483
  Qi.reset();
2537
- var O = tc.factory(S.segments), Y = new ec(O);
2484
+ var O = $l.factory(S.segments), Y = new tc(O);
2538
2485
  return Y.getGeom();
2539
2486
  }
2540
2487
  }]), r;
2541
- }(), In = new ic(), oc = function(t) {
2488
+ }(), Cn = new rc(), ic = function(t) {
2542
2489
  for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
2543
2490
  n[i - 1] = arguments[i];
2544
- return In.run("union", t, n);
2545
- }, sc = function(t) {
2491
+ return Cn.run("union", t, n);
2492
+ }, oc = function(t) {
2546
2493
  for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
2547
2494
  n[i - 1] = arguments[i];
2548
- return In.run("intersection", t, n);
2549
- }, ac = function(t) {
2495
+ return Cn.run("intersection", t, n);
2496
+ }, sc = function(t) {
2550
2497
  for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
2551
2498
  n[i - 1] = arguments[i];
2552
- return In.run("xor", t, n);
2553
- }, uc = function(t) {
2499
+ return Cn.run("xor", t, n);
2500
+ }, ac = function(t) {
2554
2501
  for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
2555
2502
  n[i - 1] = arguments[i];
2556
- return In.run("difference", t, n);
2503
+ return Cn.run("difference", t, n);
2557
2504
  }, Za = {
2558
- union: oc,
2559
- intersection: sc,
2560
- xor: ac,
2561
- difference: uc
2505
+ union: ic,
2506
+ intersection: oc,
2507
+ xor: sc,
2508
+ difference: ac
2562
2509
  }, me = 63710088e-1, $a = {
2563
2510
  centimeters: me * 100,
2564
2511
  centimetres: me * 100,
@@ -2581,7 +2528,7 @@ function Yo(r, t, e) {
2581
2528
  var n = { type: "Feature" };
2582
2529
  return (e.id === 0 || e.id) && (n.id = e.id), e.bbox && (n.bbox = e.bbox), n.properties = t || {}, n.geometry = r, n;
2583
2530
  }
2584
- function lc(r, t, e) {
2531
+ function uc(r, t, e) {
2585
2532
  if (e === void 0 && (e = {}), !r)
2586
2533
  throw new Error("coordinates is required");
2587
2534
  if (!Array.isArray(r))
@@ -2625,14 +2572,14 @@ function eu(r, t, e) {
2625
2572
  };
2626
2573
  return Yo(n, t, e);
2627
2574
  }
2628
- function cc(r, t) {
2575
+ function lc(r, t) {
2629
2576
  t === void 0 && (t = "kilometers");
2630
2577
  var e = $a[t];
2631
2578
  if (!e)
2632
2579
  throw new Error(t + " units is invalid");
2633
2580
  return r * e;
2634
2581
  }
2635
- function fc(r, t) {
2582
+ function cc(r, t) {
2636
2583
  t === void 0 && (t = "kilometers");
2637
2584
  var e = $a[t];
2638
2585
  if (!e)
@@ -2645,17 +2592,65 @@ function Ia(r) {
2645
2592
  function Mo(r) {
2646
2593
  return r.type === "Feature" ? r.geometry : r;
2647
2594
  }
2648
- function hc(r, t, e) {
2595
+ function fc(r, t, e) {
2649
2596
  e === void 0 && (e = {});
2650
2597
  var n = Mo(r), i = Mo(t), o = Za.union(n.coordinates, i.coordinates);
2651
2598
  return o.length === 0 ? null : o.length === 1 ? tu(o[0], e.properties) : eu(o, e.properties);
2652
2599
  }
2653
- function gc(r, t) {
2654
- var e = Mo(r), n = Mo(t), i = r.properties || {}, o = Za.difference(
2655
- e.coordinates,
2656
- n.coordinates
2657
- );
2658
- 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 = xr("svg"), e = xr("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
+ }
2659
2654
  }
2660
2655
  function nu(r, t, e) {
2661
2656
  if (r !== null)
@@ -2809,10 +2804,10 @@ function Ss(r) {
2809
2804
  }), t;
2810
2805
  }
2811
2806
  Ss.default = Ss;
2812
- function pc(r, t) {
2807
+ function dc(r, t) {
2813
2808
  t === void 0 && (t = {});
2814
2809
  var e = Ss(r), n = (e[0] + e[2]) / 2, i = (e[1] + e[3]) / 2;
2815
- return lc([n, i], t.properties, t);
2810
+ return uc([n, i], t.properties, t);
2816
2811
  }
2817
2812
  "fill" in Array.prototype || Object.defineProperty(Array.prototype, "fill", {
2818
2813
  configurable: !0,
@@ -3067,7 +3062,7 @@ fo.NONE.get = function() {
3067
3062
  return -1;
3068
3063
  };
3069
3064
  Object.defineProperties(y, fo);
3070
- var k = function(r, t) {
3065
+ var G = function(r, t) {
3071
3066
  return r.interfaces_ && r.interfaces_().indexOf(t) > -1;
3072
3067
  }, Ce = function() {
3073
3068
  }, ou = { LOG_10: { configurable: !0 } };
@@ -3662,19 +3657,19 @@ var au = function() {
3662
3657
  }, t.prototype.getClass = function() {
3663
3658
  return t;
3664
3659
  }, t;
3665
- }(au), kt = function() {
3660
+ }(au), Gt = function() {
3666
3661
  };
3667
- kt.arraycopy = function(t, e, n, i, o) {
3662
+ Gt.arraycopy = function(t, e, n, i, o) {
3668
3663
  for (var s = 0, a = e; a < e + o; a++)
3669
3664
  n[i + s] = t[a], s++;
3670
3665
  };
3671
- kt.getProperty = function(t) {
3666
+ Gt.getProperty = function(t) {
3672
3667
  return {
3673
3668
  "line.separator": `
3674
3669
  `
3675
3670
  }[t];
3676
3671
  };
3677
- var Ge = function r() {
3672
+ var ke = function r() {
3678
3673
  if (this.x = null, this.y = null, this.w = null, arguments.length === 0)
3679
3674
  this.x = 0, this.y = 0, this.w = 1;
3680
3675
  else if (arguments.length === 1) {
@@ -3699,29 +3694,29 @@ var Ge = function r() {
3699
3694
  this.x = d * x - C * _, this.y = I * _ - m * x, this.w = m * C - I * d;
3700
3695
  }
3701
3696
  };
3702
- Ge.prototype.getY = function() {
3697
+ ke.prototype.getY = function() {
3703
3698
  var t = this.y / this.w;
3704
3699
  if (V.isNaN(t) || V.isInfinite(t))
3705
3700
  throw new Ai();
3706
3701
  return t;
3707
3702
  };
3708
- Ge.prototype.getX = function() {
3703
+ ke.prototype.getX = function() {
3709
3704
  var t = this.x / this.w;
3710
3705
  if (V.isNaN(t) || V.isInfinite(t))
3711
3706
  throw new Ai();
3712
3707
  return t;
3713
3708
  };
3714
- Ge.prototype.getCoordinate = function() {
3709
+ ke.prototype.getCoordinate = function() {
3715
3710
  var t = new v();
3716
3711
  return t.x = this.getX(), t.y = this.getY(), t;
3717
3712
  };
3718
- Ge.prototype.interfaces_ = function() {
3713
+ ke.prototype.interfaces_ = function() {
3719
3714
  return [];
3720
3715
  };
3721
- Ge.prototype.getClass = function() {
3722
- return Ge;
3716
+ ke.prototype.getClass = function() {
3717
+ return ke;
3723
3718
  };
3724
- Ge.intersection = function(t, e, n, i) {
3719
+ ke.intersection = function(t, e, n, i) {
3725
3720
  var o = t.y - e.y, s = e.x - t.x, a = t.x * e.y - e.x * t.y, u = n.y - i.y, l = i.x - n.x, c = n.x * i.y - i.x * n.y, f = s * c - l * a, h = u * a - o * c, g = o * l - u * s, p = f / g, m = h / g;
3726
3721
  if (V.isNaN(p) || V.isInfinite(p) || V.isNaN(m) || V.isInfinite(m))
3727
3722
  throw new Ai();
@@ -3955,12 +3950,12 @@ Wo.prototype.write = function(t) {
3955
3950
  };
3956
3951
  Wo.prototype.extractGeometry = function(t) {
3957
3952
  var e = t.getGeometryType().toLowerCase();
3958
- if (!kn[e])
3953
+ if (!Gn[e])
3959
3954
  return null;
3960
3955
  var n = e.toUpperCase(), i;
3961
- return t.isEmpty() ? i = n + " EMPTY" : i = n + "(" + kn[e].apply(this, [t]) + ")", i;
3956
+ return t.isEmpty() ? i = n + " EMPTY" : i = n + "(" + Gn[e].apply(this, [t]) + ")", i;
3962
3957
  };
3963
- var kn = {
3958
+ var Gn = {
3964
3959
  coordinate: function(t) {
3965
3960
  return t.x + " " + t.y;
3966
3961
  },
@@ -3972,7 +3967,7 @@ var kn = {
3972
3967
  * @return {String} A string of coordinates representing the point.
3973
3968
  */
3974
3969
  point: function(t) {
3975
- return kn.coordinate.call(this, t._coordinates._coordinates[0]);
3970
+ return Gn.coordinate.call(this, t._coordinates._coordinates[0]);
3976
3971
  },
3977
3972
  /**
3978
3973
  * Return a comma delimited string of point coordinates from a multipoint.
@@ -3984,7 +3979,7 @@ var kn = {
3984
3979
  */
3985
3980
  multipoint: function(t) {
3986
3981
  for (var e = this, n = [], i = 0, o = t._geometries.length; i < o; ++i)
3987
- n.push("(" + kn.point.apply(e, [t._geometries[i]]) + ")");
3982
+ n.push("(" + Gn.point.apply(e, [t._geometries[i]]) + ")");
3988
3983
  return n.join(",");
3989
3984
  },
3990
3985
  /**
@@ -3995,12 +3990,12 @@ var kn = {
3995
3990
  */
3996
3991
  linestring: function(t) {
3997
3992
  for (var e = this, n = [], i = 0, o = t._points._coordinates.length; i < o; ++i)
3998
- n.push(kn.coordinate.apply(e, [t._points._coordinates[i]]));
3993
+ n.push(Gn.coordinate.apply(e, [t._points._coordinates[i]]));
3999
3994
  return n.join(",");
4000
3995
  },
4001
3996
  linearring: function(t) {
4002
3997
  for (var e = this, n = [], i = 0, o = t._points._coordinates.length; i < o; ++i)
4003
- n.push(kn.coordinate.apply(e, [t._points._coordinates[i]]));
3998
+ n.push(Gn.coordinate.apply(e, [t._points._coordinates[i]]));
4004
3999
  return n.join(",");
4005
4000
  },
4006
4001
  /**
@@ -4012,7 +4007,7 @@ var kn = {
4012
4007
  */
4013
4008
  multilinestring: function(t) {
4014
4009
  for (var e = this, n = [], i = 0, o = t._geometries.length; i < o; ++i)
4015
- n.push("(" + kn.linestring.apply(e, [t._geometries[i]]) + ")");
4010
+ n.push("(" + Gn.linestring.apply(e, [t._geometries[i]]) + ")");
4016
4011
  return n.join(",");
4017
4012
  },
4018
4013
  /**
@@ -4023,9 +4018,9 @@ var kn = {
4023
4018
  */
4024
4019
  polygon: function(t) {
4025
4020
  var e = this, n = [];
4026
- n.push("(" + kn.linestring.apply(this, [t._shell]) + ")");
4021
+ n.push("(" + Gn.linestring.apply(this, [t._shell]) + ")");
4027
4022
  for (var i = 0, o = t._holes.length; i < o; ++i)
4028
- n.push("(" + kn.linestring.apply(e, [t._holes[i]]) + ")");
4023
+ n.push("(" + Gn.linestring.apply(e, [t._holes[i]]) + ")");
4029
4024
  return n.join(",");
4030
4025
  },
4031
4026
  /**
@@ -4036,7 +4031,7 @@ var kn = {
4036
4031
  */
4037
4032
  multipolygon: function(t) {
4038
4033
  for (var e = this, n = [], i = 0, o = t._geometries.length; i < o; ++i)
4039
- n.push("(" + kn.polygon.apply(e, [t._geometries[i]]) + ")");
4034
+ n.push("(" + Gn.polygon.apply(e, [t._geometries[i]]) + ")");
4040
4035
  return n.join(",");
4041
4036
  },
4042
4037
  /**
@@ -4349,7 +4344,7 @@ ei.COLLINEAR_INTERSECTION.get = function() {
4349
4344
  return 2;
4350
4345
  };
4351
4346
  Object.defineProperties(ft, ei);
4352
- var Tr = function(r) {
4347
+ var Ar = function(r) {
4353
4348
  function t() {
4354
4349
  r.apply(this, arguments);
4355
4350
  }
@@ -4369,7 +4364,7 @@ var Tr = function(r) {
4369
4364
  }, t.prototype.safeHCoordinateIntersection = function(n, i, o, s) {
4370
4365
  var a = null;
4371
4366
  try {
4372
- a = Ge.intersection(n, i, o, s);
4367
+ a = ke.intersection(n, i, o, s);
4373
4368
  } catch (u) {
4374
4369
  if (u instanceof Ai)
4375
4370
  a = t.nearestEndpoint(n, i, o, s);
@@ -4386,7 +4381,7 @@ var Tr = function(r) {
4386
4381
  return Math.abs(i) < u && (a = i, u = Math.abs(i)), Math.abs(o) < u && (a = o, u = Math.abs(o)), Math.abs(s) < u && (a = s), a;
4387
4382
  }, t.prototype.checkDD = function(n, i, o, s, a) {
4388
4383
  var u = se.intersection(n, i, o, s), l = this.isInSegmentEnvelopes(u);
4389
- kt.out.println("DD in env = " + l + " --------------------- " + u), a.distance(u) > 1e-4 && kt.out.println("Distance = " + a.distance(u));
4384
+ Gt.out.println("DD in env = " + l + " --------------------- " + u), a.distance(u) > 1e-4 && Gt.out.println("Distance = " + a.distance(u));
4390
4385
  }, t.prototype.intersectionWithNormalization = function(n, i, o, s) {
4391
4386
  var a = new v(n), u = new v(i), l = new v(o), c = new v(s), f = new v();
4392
4387
  this.normalizeToEnvCentre(a, u, l, c, f);
@@ -4519,7 +4514,7 @@ nn.prototype.getClass = function() {
4519
4514
  return nn;
4520
4515
  };
4521
4516
  nn.locatePointInRing = function() {
4522
- if (arguments[0] instanceof v && k(arguments[1], K)) {
4517
+ if (arguments[0] instanceof v && G(arguments[1], K)) {
4523
4518
  for (var t = arguments[0], e = arguments[1], n = new nn(t), i = new v(), o = new v(), s = 1; s < e.size(); s++)
4524
4519
  if (e.getCoordinate(s, i), e.getCoordinate(s - 1, o), n.countSegment(i, o), n.isOnSegment())
4525
4520
  return n.getLocation();
@@ -4554,7 +4549,7 @@ P.signedArea = function() {
4554
4549
  e += o * (a - s);
4555
4550
  }
4556
4551
  return e / 2;
4557
- } else if (k(arguments[0], K)) {
4552
+ } else if (G(arguments[0], K)) {
4558
4553
  var u = arguments[0], l = u.size();
4559
4554
  if (l < 3)
4560
4555
  return 0;
@@ -4658,7 +4653,7 @@ P.distancePointLine = function() {
4658
4653
  }
4659
4654
  };
4660
4655
  P.isOnLine = function(t, e) {
4661
- for (var n = new Tr(), i = 1; i < e.length; i++) {
4656
+ for (var n = new Ar(), i = 1; i < e.length; i++) {
4662
4657
  var o = e[i - 1], s = e[i];
4663
4658
  if (n.computeIntersection(t, o, s), n.hasIntersection())
4664
4659
  return !0;
@@ -4694,56 +4689,56 @@ Hn.prototype.interfaces_ = function() {
4694
4689
  Hn.prototype.getClass = function() {
4695
4690
  return Hn;
4696
4691
  };
4697
- var G = function() {
4692
+ var k = function() {
4698
4693
  var t = arguments[0];
4699
4694
  this._envelope = null, this._factory = null, this._SRID = null, this._userData = null, this._factory = t, this._SRID = t.getSRID();
4700
- }, Tn = { serialVersionUID: { configurable: !0 }, SORTINDEX_POINT: { configurable: !0 }, SORTINDEX_MULTIPOINT: { configurable: !0 }, SORTINDEX_LINESTRING: { configurable: !0 }, SORTINDEX_LINEARRING: { configurable: !0 }, SORTINDEX_MULTILINESTRING: { configurable: !0 }, SORTINDEX_POLYGON: { configurable: !0 }, SORTINDEX_MULTIPOLYGON: { configurable: !0 }, SORTINDEX_GEOMETRYCOLLECTION: { configurable: !0 }, geometryChangedFilter: { configurable: !0 } };
4701
- G.prototype.isGeometryCollection = function() {
4702
- return this.getSortIndex() === G.SORTINDEX_GEOMETRYCOLLECTION;
4695
+ }, Mn = { serialVersionUID: { configurable: !0 }, SORTINDEX_POINT: { configurable: !0 }, SORTINDEX_MULTIPOINT: { configurable: !0 }, SORTINDEX_LINESTRING: { configurable: !0 }, SORTINDEX_LINEARRING: { configurable: !0 }, SORTINDEX_MULTILINESTRING: { configurable: !0 }, SORTINDEX_POLYGON: { configurable: !0 }, SORTINDEX_MULTIPOLYGON: { configurable: !0 }, SORTINDEX_GEOMETRYCOLLECTION: { configurable: !0 }, geometryChangedFilter: { configurable: !0 } };
4696
+ k.prototype.isGeometryCollection = function() {
4697
+ return this.getSortIndex() === k.SORTINDEX_GEOMETRYCOLLECTION;
4703
4698
  };
4704
- G.prototype.getFactory = function() {
4699
+ k.prototype.getFactory = function() {
4705
4700
  return this._factory;
4706
4701
  };
4707
- G.prototype.getGeometryN = function(t) {
4702
+ k.prototype.getGeometryN = function(t) {
4708
4703
  return this;
4709
4704
  };
4710
- G.prototype.getArea = function() {
4705
+ k.prototype.getArea = function() {
4711
4706
  return 0;
4712
4707
  };
4713
- G.prototype.isRectangle = function() {
4708
+ k.prototype.isRectangle = function() {
4714
4709
  return !1;
4715
4710
  };
4716
- G.prototype.equals = function() {
4717
- if (arguments[0] instanceof G) {
4711
+ k.prototype.equals = function() {
4712
+ if (arguments[0] instanceof k) {
4718
4713
  var t = arguments[0];
4719
4714
  return t === null ? !1 : this.equalsTopo(t);
4720
4715
  } else if (arguments[0] instanceof Object) {
4721
4716
  var e = arguments[0];
4722
- if (!(e instanceof G))
4717
+ if (!(e instanceof k))
4723
4718
  return !1;
4724
4719
  var n = e;
4725
4720
  return this.equalsExact(n);
4726
4721
  }
4727
4722
  };
4728
- G.prototype.equalsExact = function(t) {
4723
+ k.prototype.equalsExact = function(t) {
4729
4724
  return this === t || this.equalsExact(t, 0);
4730
4725
  };
4731
- G.prototype.geometryChanged = function() {
4732
- this.apply(G.geometryChangedFilter);
4726
+ k.prototype.geometryChanged = function() {
4727
+ this.apply(k.geometryChangedFilter);
4733
4728
  };
4734
- G.prototype.geometryChangedAction = function() {
4729
+ k.prototype.geometryChangedAction = function() {
4735
4730
  this._envelope = null;
4736
4731
  };
4737
- G.prototype.equalsNorm = function(t) {
4732
+ k.prototype.equalsNorm = function(t) {
4738
4733
  return t === null ? !1 : this.norm().equalsExact(t.norm());
4739
4734
  };
4740
- G.prototype.getLength = function() {
4735
+ k.prototype.getLength = function() {
4741
4736
  return 0;
4742
4737
  };
4743
- G.prototype.getNumGeometries = function() {
4738
+ k.prototype.getNumGeometries = function() {
4744
4739
  return 1;
4745
4740
  };
4746
- G.prototype.compareTo = function() {
4741
+ k.prototype.compareTo = function() {
4747
4742
  if (arguments.length === 1) {
4748
4743
  var t = arguments[0], e = t;
4749
4744
  return this.getSortIndex() !== e.getSortIndex() ? this.getSortIndex() - e.getSortIndex() : this.isEmpty() && e.isEmpty() ? 0 : this.isEmpty() ? -1 : e.isEmpty() ? 1 : this.compareToSameClass(t);
@@ -4752,39 +4747,39 @@ G.prototype.compareTo = function() {
4752
4747
  return this.getSortIndex() !== n.getSortIndex() ? this.getSortIndex() - n.getSortIndex() : this.isEmpty() && n.isEmpty() ? 0 : this.isEmpty() ? -1 : n.isEmpty() ? 1 : this.compareToSameClass(n, i);
4753
4748
  }
4754
4749
  };
4755
- G.prototype.getUserData = function() {
4750
+ k.prototype.getUserData = function() {
4756
4751
  return this._userData;
4757
4752
  };
4758
- G.prototype.getSRID = function() {
4753
+ k.prototype.getSRID = function() {
4759
4754
  return this._SRID;
4760
4755
  };
4761
- G.prototype.getEnvelope = function() {
4756
+ k.prototype.getEnvelope = function() {
4762
4757
  return this.getFactory().toGeometry(this.getEnvelopeInternal());
4763
4758
  };
4764
- G.prototype.checkNotGeometryCollection = function(t) {
4765
- if (t.getSortIndex() === G.SORTINDEX_GEOMETRYCOLLECTION)
4759
+ k.prototype.checkNotGeometryCollection = function(t) {
4760
+ if (t.getSortIndex() === k.SORTINDEX_GEOMETRYCOLLECTION)
4766
4761
  throw new lt("This method does not support GeometryCollection arguments");
4767
4762
  };
4768
- G.prototype.equal = function(t, e, n) {
4763
+ k.prototype.equal = function(t, e, n) {
4769
4764
  return n === 0 ? t.equals(e) : t.distance(e) <= n;
4770
4765
  };
4771
- G.prototype.norm = function() {
4766
+ k.prototype.norm = function() {
4772
4767
  var t = this.copy();
4773
4768
  return t.normalize(), t;
4774
4769
  };
4775
- G.prototype.getPrecisionModel = function() {
4770
+ k.prototype.getPrecisionModel = function() {
4776
4771
  return this._factory.getPrecisionModel();
4777
4772
  };
4778
- G.prototype.getEnvelopeInternal = function() {
4773
+ k.prototype.getEnvelopeInternal = function() {
4779
4774
  return this._envelope === null && (this._envelope = this.computeEnvelopeInternal()), new T(this._envelope);
4780
4775
  };
4781
- G.prototype.setSRID = function(t) {
4776
+ k.prototype.setSRID = function(t) {
4782
4777
  this._SRID = t;
4783
4778
  };
4784
- G.prototype.setUserData = function(t) {
4779
+ k.prototype.setUserData = function(t) {
4785
4780
  this._userData = t;
4786
4781
  };
4787
- G.prototype.compare = function(t, e) {
4782
+ k.prototype.compare = function(t, e) {
4788
4783
  for (var n = t.iterator(), i = e.iterator(); n.hasNext() && i.hasNext(); ) {
4789
4784
  var o = n.next(), s = i.next(), a = o.compareTo(s);
4790
4785
  if (a !== 0)
@@ -4792,61 +4787,61 @@ G.prototype.compare = function(t, e) {
4792
4787
  }
4793
4788
  return n.hasNext() ? 1 : i.hasNext() ? -1 : 0;
4794
4789
  };
4795
- G.prototype.hashCode = function() {
4790
+ k.prototype.hashCode = function() {
4796
4791
  return this.getEnvelopeInternal().hashCode();
4797
4792
  };
4798
- G.prototype.isGeometryCollectionOrDerived = function() {
4799
- return this.getSortIndex() === G.SORTINDEX_GEOMETRYCOLLECTION || this.getSortIndex() === G.SORTINDEX_MULTIPOINT || this.getSortIndex() === G.SORTINDEX_MULTILINESTRING || this.getSortIndex() === G.SORTINDEX_MULTIPOLYGON;
4793
+ k.prototype.isGeometryCollectionOrDerived = function() {
4794
+ return this.getSortIndex() === k.SORTINDEX_GEOMETRYCOLLECTION || this.getSortIndex() === k.SORTINDEX_MULTIPOINT || this.getSortIndex() === k.SORTINDEX_MULTILINESTRING || this.getSortIndex() === k.SORTINDEX_MULTIPOLYGON;
4800
4795
  };
4801
- G.prototype.interfaces_ = function() {
4796
+ k.prototype.interfaces_ = function() {
4802
4797
  return [Ho, Me, Ae];
4803
4798
  };
4804
- G.prototype.getClass = function() {
4805
- return G;
4799
+ k.prototype.getClass = function() {
4800
+ return k;
4806
4801
  };
4807
- G.hasNonEmptyElements = function(t) {
4802
+ k.hasNonEmptyElements = function(t) {
4808
4803
  for (var e = 0; e < t.length; e++)
4809
4804
  if (!t[e].isEmpty())
4810
4805
  return !0;
4811
4806
  return !1;
4812
4807
  };
4813
- G.hasNullElements = function(t) {
4808
+ k.hasNullElements = function(t) {
4814
4809
  for (var e = 0; e < t.length; e++)
4815
4810
  if (t[e] === null)
4816
4811
  return !0;
4817
4812
  return !1;
4818
4813
  };
4819
- Tn.serialVersionUID.get = function() {
4814
+ Mn.serialVersionUID.get = function() {
4820
4815
  return 8763622679187377e3;
4821
4816
  };
4822
- Tn.SORTINDEX_POINT.get = function() {
4817
+ Mn.SORTINDEX_POINT.get = function() {
4823
4818
  return 0;
4824
4819
  };
4825
- Tn.SORTINDEX_MULTIPOINT.get = function() {
4820
+ Mn.SORTINDEX_MULTIPOINT.get = function() {
4826
4821
  return 1;
4827
4822
  };
4828
- Tn.SORTINDEX_LINESTRING.get = function() {
4823
+ Mn.SORTINDEX_LINESTRING.get = function() {
4829
4824
  return 2;
4830
4825
  };
4831
- Tn.SORTINDEX_LINEARRING.get = function() {
4826
+ Mn.SORTINDEX_LINEARRING.get = function() {
4832
4827
  return 3;
4833
4828
  };
4834
- Tn.SORTINDEX_MULTILINESTRING.get = function() {
4829
+ Mn.SORTINDEX_MULTILINESTRING.get = function() {
4835
4830
  return 4;
4836
4831
  };
4837
- Tn.SORTINDEX_POLYGON.get = function() {
4832
+ Mn.SORTINDEX_POLYGON.get = function() {
4838
4833
  return 5;
4839
4834
  };
4840
- Tn.SORTINDEX_MULTIPOLYGON.get = function() {
4835
+ Mn.SORTINDEX_MULTIPOLYGON.get = function() {
4841
4836
  return 6;
4842
4837
  };
4843
- Tn.SORTINDEX_GEOMETRYCOLLECTION.get = function() {
4838
+ Mn.SORTINDEX_GEOMETRYCOLLECTION.get = function() {
4844
4839
  return 7;
4845
4840
  };
4846
- Tn.geometryChangedFilter.get = function() {
4841
+ Mn.geometryChangedFilter.get = function() {
4847
4842
  return Ts;
4848
4843
  };
4849
- Object.defineProperties(G, Tn);
4844
+ Object.defineProperties(k, Mn);
4850
4845
  var Ts = function() {
4851
4846
  };
4852
4847
  Ts.interfaces_ = function() {
@@ -4855,15 +4850,15 @@ Ts.interfaces_ = function() {
4855
4850
  Ts.filter = function(t) {
4856
4851
  t.geometryChangedAction();
4857
4852
  };
4858
- var Nn = function() {
4853
+ var Sn = function() {
4859
4854
  };
4860
- Nn.prototype.filter = function(t) {
4855
+ Sn.prototype.filter = function(t) {
4861
4856
  };
4862
- Nn.prototype.interfaces_ = function() {
4857
+ Sn.prototype.interfaces_ = function() {
4863
4858
  return [];
4864
4859
  };
4865
- Nn.prototype.getClass = function() {
4866
- return Nn;
4860
+ Sn.prototype.getClass = function() {
4861
+ return Sn;
4867
4862
  };
4868
4863
  var Re = function() {
4869
4864
  }, Jn = { Mod2BoundaryNodeRule: { configurable: !0 }, EndPointBoundaryNodeRule: { configurable: !0 }, MultiValentEndPointBoundaryNodeRule: { configurable: !0 }, MonoValentEndPointBoundaryNodeRule: { configurable: !0 }, MOD2_BOUNDARY_RULE: { configurable: !0 }, ENDPOINT_BOUNDARY_RULE: { configurable: !0 }, MULTIVALENT_ENDPOINT_BOUNDARY_RULE: { configurable: !0 }, MONOVALENT_ENDPOINT_BOUNDARY_RULE: { configurable: !0 }, OGC_SFS_BOUNDARY_RULE: { configurable: !0 } };
@@ -4976,7 +4971,7 @@ Fi.prototype.next = function() {
4976
4971
  };
4977
4972
  Fi.prototype.remove = function() {
4978
4973
  };
4979
- var ke = function(r) {
4974
+ var Ge = function(r) {
4980
4975
  function t() {
4981
4976
  r.apply(this, arguments);
4982
4977
  }
@@ -5009,7 +5004,7 @@ var L = function(r) {
5009
5004
  var o = this.array_[n];
5010
5005
  return this.array_[n] = i, o;
5011
5006
  }, t.prototype.iterator = function() {
5012
- return new dc(this);
5007
+ return new vc(this);
5013
5008
  }, t.prototype.get = function(n) {
5014
5009
  if (n < 0 || n >= this.size())
5015
5010
  throw new Ms();
@@ -5030,7 +5025,7 @@ var L = function(r) {
5030
5025
  }
5031
5026
  return o;
5032
5027
  }, t;
5033
- }(ke), dc = function(r) {
5028
+ }(Ge), vc = function(r) {
5034
5029
  function t(e) {
5035
5030
  r.call(this), this.arrayList_ = e, this.position_ = 0;
5036
5031
  }
@@ -5174,7 +5169,7 @@ W.scroll = function(t, e) {
5174
5169
  if (n < 0)
5175
5170
  return null;
5176
5171
  var i = new Array(t.length).fill(null);
5177
- kt.arraycopy(t, n, i, 0, t.length - n), kt.arraycopy(t, 0, i, t.length - n, n), kt.arraycopy(i, 0, t, 0, t.length);
5172
+ Gt.arraycopy(t, n, i, 0, t.length - n), Gt.arraycopy(t, 0, i, t.length - n, n), Gt.arraycopy(i, 0, t, 0, t.length);
5178
5173
  };
5179
5174
  W.equals = function() {
5180
5175
  if (arguments.length === 2) {
@@ -5359,7 +5354,7 @@ ri.prototype.values = function() {
5359
5354
  };
5360
5355
  ri.prototype.entrySet = function() {
5361
5356
  };
5362
- var vc = function(r) {
5357
+ var yc = function(r) {
5363
5358
  function t() {
5364
5359
  r.apply(this, arguments);
5365
5360
  }
@@ -5403,9 +5398,9 @@ var As = function(r) {
5403
5398
  i.push(n.array_[o]);
5404
5399
  return i;
5405
5400
  }, t.prototype.iterator = function() {
5406
- return new yc(this);
5401
+ return new mc(this);
5407
5402
  }, t;
5408
- }(Ko), yc = function(r) {
5403
+ }(Ko), mc = function(r) {
5409
5404
  function t(e) {
5410
5405
  r.call(this), this.hashSet_ = e, this.position_ = 0;
5411
5406
  }
@@ -5418,14 +5413,14 @@ var As = function(r) {
5418
5413
  }, t.prototype.remove = function() {
5419
5414
  throw new po();
5420
5415
  }, t;
5421
- }(Fi), Un = 0, dr = 1;
5416
+ }(Fi), Un = 0, vr = 1;
5422
5417
  function xa(r) {
5423
5418
  return r === null ? Un : r.color;
5424
5419
  }
5425
5420
  function ot(r) {
5426
5421
  return r === null ? null : r.parent;
5427
5422
  }
5428
- function Gn(r, t) {
5423
+ function kn(r, t) {
5429
5424
  r !== null && (r.color = t);
5430
5425
  }
5431
5426
  function hs(r) {
@@ -5437,7 +5432,7 @@ function Na(r) {
5437
5432
  function Yt() {
5438
5433
  this.root_ = null, this.size_ = 0;
5439
5434
  }
5440
- Yt.prototype = new vc();
5435
+ Yt.prototype = new yc();
5441
5436
  Yt.prototype.get = function(r) {
5442
5437
  for (var t = this.root_; t !== null; ) {
5443
5438
  var e = r.compareTo(t.key);
@@ -5495,13 +5490,13 @@ Yt.prototype.put = function(r, t) {
5495
5490
  };
5496
5491
  Yt.prototype.fixAfterInsertion = function(r) {
5497
5492
  var t = this;
5498
- 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; )
5499
5494
  if (ot(r) === hs(ot(ot(r)))) {
5500
5495
  var e = Na(ot(ot(r)));
5501
- xa(e) === dr ? (Gn(ot(r), Un), Gn(e, Un), Gn(ot(ot(r)), dr), r = ot(ot(r))) : (r === Na(ot(r)) && (r = ot(r), t.rotateLeft(r)), Gn(ot(r), Un), Gn(ot(ot(r)), dr), t.rotateRight(ot(ot(r))));
5496
+ xa(e) === vr ? (kn(ot(r), Un), kn(e, Un), kn(ot(ot(r)), vr), r = ot(ot(r))) : (r === Na(ot(r)) && (r = ot(r), t.rotateLeft(r)), kn(ot(r), Un), kn(ot(ot(r)), vr), t.rotateRight(ot(ot(r))));
5502
5497
  } else {
5503
5498
  var n = hs(ot(ot(r)));
5504
- xa(n) === dr ? (Gn(ot(r), Un), Gn(n, Un), Gn(ot(ot(r)), dr), r = ot(ot(r))) : (r === hs(ot(r)) && (r = ot(r), t.rotateRight(r)), Gn(ot(r), Un), Gn(ot(ot(r)), dr), t.rotateLeft(ot(ot(r))));
5499
+ xa(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))));
5505
5500
  }
5506
5501
  this.root_.color = Un;
5507
5502
  };
@@ -5624,9 +5619,9 @@ Qo.prototype.hasNext = function() {
5624
5619
  Qo.prototype.remove = function() {
5625
5620
  throw new po();
5626
5621
  };
5627
- var _r = function() {
5622
+ var Ir = function() {
5628
5623
  };
5629
- _r.sort = function() {
5624
+ Ir.sort = function() {
5630
5625
  var t = arguments[0], e, n, i, o;
5631
5626
  if (arguments.length === 1)
5632
5627
  o = function(a, u) {
@@ -5647,7 +5642,7 @@ _r.sort = function() {
5647
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++)
5648
5643
  t.push(s[e]);
5649
5644
  };
5650
- _r.asList = function(t) {
5645
+ Ir.asList = function(t) {
5651
5646
  for (var e = new L(), n = 0, i = t.length; n < i; n++)
5652
5647
  e.add(t[n]);
5653
5648
  return e;
@@ -5797,7 +5792,7 @@ var te = function(r) {
5797
5792
  }, t.prototype.normalize = function() {
5798
5793
  for (var i = this, o = 0; o < this._geometries.length; o++)
5799
5794
  i._geometries[o].normalize();
5800
- _r.sort(this._geometries);
5795
+ Ir.sort(this._geometries);
5801
5796
  }, t.prototype.getCoordinate = function() {
5802
5797
  return this.isEmpty() ? null : this._geometries[0].getCoordinate();
5803
5798
  }, t.prototype.getBoundaryDimension = function() {
@@ -5825,7 +5820,7 @@ var te = function(r) {
5825
5820
  }, t.prototype.compareToSameClass = function() {
5826
5821
  var i = this;
5827
5822
  if (arguments.length === 1) {
5828
- var o = arguments[0], s = new sn(_r.asList(this._geometries)), a = new sn(_r.asList(o._geometries));
5823
+ var o = arguments[0], s = new sn(Ir.asList(this._geometries)), a = new sn(Ir.asList(o._geometries));
5829
5824
  return this.compare(s, a);
5830
5825
  } else if (arguments.length === 2) {
5831
5826
  for (var u = arguments[0], l = arguments[1], c = u, f = this.getNumGeometries(), h = c.getNumGeometries(), g = 0; g < f && g < h; ) {
@@ -5838,22 +5833,22 @@ var te = function(r) {
5838
5833
  }
5839
5834
  }, t.prototype.apply = function() {
5840
5835
  var i = this;
5841
- if (k(arguments[0], Nn))
5836
+ if (G(arguments[0], Sn))
5842
5837
  for (var o = arguments[0], s = 0; s < this._geometries.length; s++)
5843
5838
  i._geometries[s].apply(o);
5844
- else if (k(arguments[0], Ve)) {
5839
+ else if (G(arguments[0], Ve)) {
5845
5840
  var a = arguments[0];
5846
5841
  if (this._geometries.length === 0)
5847
5842
  return null;
5848
5843
  for (var u = 0; u < this._geometries.length && (i._geometries[u].apply(a), !a.isDone()); u++)
5849
5844
  ;
5850
5845
  a.isGeometryChanged() && this.geometryChanged();
5851
- } else if (k(arguments[0], an)) {
5846
+ } else if (G(arguments[0], an)) {
5852
5847
  var l = arguments[0];
5853
5848
  l.filter(this);
5854
5849
  for (var c = 0; c < this._geometries.length; c++)
5855
5850
  i._geometries[c].apply(l);
5856
- } else if (k(arguments[0], Hn)) {
5851
+ } else if (G(arguments[0], Hn)) {
5857
5852
  var f = arguments[0];
5858
5853
  f.filter(this);
5859
5854
  for (var h = 0; h < this._geometries.length; h++)
@@ -5885,14 +5880,14 @@ var te = function(r) {
5885
5880
  }, e.serialVersionUID.get = function() {
5886
5881
  return -5694727726395021e3;
5887
5882
  }, Object.defineProperties(t, e), t;
5888
- }(G), xr = function(r) {
5883
+ }(k), Sr = function(r) {
5889
5884
  function t() {
5890
5885
  r.apply(this, arguments);
5891
5886
  }
5892
5887
  r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t;
5893
5888
  var e = { serialVersionUID: { configurable: !0 } };
5894
5889
  return t.prototype.getSortIndex = function() {
5895
- return G.SORTINDEX_MULTILINESTRING;
5890
+ return k.SORTINDEX_MULTILINESTRING;
5896
5891
  }, t.prototype.equalsExact = function() {
5897
5892
  if (arguments.length === 2) {
5898
5893
  var i = arguments[0], o = arguments[1];
@@ -5946,7 +5941,7 @@ Le.prototype.boundaryMultiLineString = function(t) {
5946
5941
  return e.length === 1 ? this._geomFact.createPoint(e[0]) : this._geomFact.createMultiPointFromCoords(e);
5947
5942
  };
5948
5943
  Le.prototype.getBoundary = function() {
5949
- return this._geom instanceof pt ? this.boundaryLineString(this._geom) : this._geom instanceof xr ? 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();
5950
5945
  };
5951
5946
  Le.prototype.boundaryLineString = function(t) {
5952
5947
  if (this._geom.isEmpty())
@@ -6001,18 +5996,18 @@ Fo.prototype.interfaces_ = function() {
6001
5996
  Fo.prototype.getClass = function() {
6002
5997
  return Fo;
6003
5998
  };
6004
- function mc() {
6005
- }
6006
5999
  function _c() {
6007
6000
  }
6008
- var Ec = function() {
6009
- };
6010
- function Ic() {
6001
+ function Ec() {
6011
6002
  }
6003
+ var Ic = function() {
6004
+ };
6012
6005
  function Cc() {
6013
6006
  }
6014
6007
  function xc() {
6015
6008
  }
6009
+ function Nc() {
6010
+ }
6016
6011
  var be = function() {
6017
6012
  }, Fs = { NEWLINE: { configurable: !0 }, SIMPLE_ORDINATE_FORMAT: { configurable: !0 } };
6018
6013
  be.prototype.interfaces_ = function() {
@@ -6028,16 +6023,16 @@ be.chars = function(t, e) {
6028
6023
  };
6029
6024
  be.getStackTrace = function() {
6030
6025
  if (arguments.length === 1) {
6031
- var t = arguments[0], e = new Ic(), n = new mc();
6026
+ var t = arguments[0], e = new Cc(), n = new _c();
6032
6027
  return t.printStackTrace(n), e.toString();
6033
6028
  } else if (arguments.length === 2) {
6034
6029
  var i = arguments[0], o = arguments[1], s = "";
6035
- new _c(be.getStackTrace(i));
6036
- for (var a = new xc(), u = 0; u < o; u++)
6030
+ new Ec(be.getStackTrace(i));
6031
+ for (var a = new Nc(), u = 0; u < o; u++)
6037
6032
  try {
6038
6033
  s += a.readLine() + be.NEWLINE;
6039
6034
  } catch (l) {
6040
- if (l instanceof Cc)
6035
+ if (l instanceof xc)
6041
6036
  X.shouldNeverReachHere();
6042
6037
  else
6043
6038
  throw l;
@@ -6066,10 +6061,10 @@ be.spaces = function(t) {
6066
6061
  return be.chars(" ", t);
6067
6062
  };
6068
6063
  Fs.NEWLINE.get = function() {
6069
- return kt.getProperty("line.separator");
6064
+ return Gt.getProperty("line.separator");
6070
6065
  };
6071
6066
  Fs.SIMPLE_ORDINATE_FORMAT.get = function() {
6072
- return new Ec();
6067
+ return new Ic();
6073
6068
  };
6074
6069
  Object.defineProperties(be, Fs);
6075
6070
  var _t = function() {
@@ -6224,20 +6219,20 @@ var pt = function(r) {
6224
6219
  }
6225
6220
  }, t.prototype.apply = function() {
6226
6221
  var i = this;
6227
- if (k(arguments[0], Nn))
6222
+ if (G(arguments[0], Sn))
6228
6223
  for (var o = arguments[0], s = 0; s < this._points.size(); s++)
6229
6224
  o.filter(i._points.getCoordinate(s));
6230
- else if (k(arguments[0], Ve)) {
6225
+ else if (G(arguments[0], Ve)) {
6231
6226
  var a = arguments[0];
6232
6227
  if (this._points.size() === 0)
6233
6228
  return null;
6234
6229
  for (var u = 0; u < this._points.size() && (a.filter(i._points, u), !a.isDone()); u++)
6235
6230
  ;
6236
6231
  a.isGeometryChanged() && this.geometryChanged();
6237
- } else if (k(arguments[0], an)) {
6232
+ } else if (G(arguments[0], an)) {
6238
6233
  var l = arguments[0];
6239
6234
  l.filter(this);
6240
- } else if (k(arguments[0], Hn)) {
6235
+ } else if (G(arguments[0], Hn)) {
6241
6236
  var c = arguments[0];
6242
6237
  c.filter(this);
6243
6238
  }
@@ -6278,7 +6273,7 @@ var pt = function(r) {
6278
6273
  }, e.serialVersionUID.get = function() {
6279
6274
  return 3110669828065365500;
6280
6275
  }, Object.defineProperties(t, e), t;
6281
- }(G), to = function() {
6276
+ }(k), to = function() {
6282
6277
  };
6283
6278
  to.prototype.interfaces_ = function() {
6284
6279
  return [];
@@ -6331,20 +6326,20 @@ var ge = function(r) {
6331
6326
  return a.compare(this._coordinates, u._coordinates);
6332
6327
  }
6333
6328
  }, t.prototype.apply = function() {
6334
- if (k(arguments[0], Nn)) {
6329
+ if (G(arguments[0], Sn)) {
6335
6330
  var i = arguments[0];
6336
6331
  if (this.isEmpty())
6337
6332
  return null;
6338
6333
  i.filter(this.getCoordinate());
6339
- } else if (k(arguments[0], Ve)) {
6334
+ } else if (G(arguments[0], Ve)) {
6340
6335
  var o = arguments[0];
6341
6336
  if (this.isEmpty())
6342
6337
  return null;
6343
6338
  o.filter(this._coordinates, 0), o.isGeometryChanged() && this.geometryChanged();
6344
- } else if (k(arguments[0], an)) {
6339
+ } else if (G(arguments[0], an)) {
6345
6340
  var s = arguments[0];
6346
6341
  s.filter(this);
6347
- } else if (k(arguments[0], Hn)) {
6342
+ } else if (G(arguments[0], Hn)) {
6348
6343
  var a = arguments[0];
6349
6344
  a.filter(this);
6350
6345
  }
@@ -6376,7 +6371,7 @@ var ge = function(r) {
6376
6371
  }, e.serialVersionUID.get = function() {
6377
6372
  return 4902022702746615e3;
6378
6373
  }, Object.defineProperties(t, e), t;
6379
- }(G), ir = function() {
6374
+ }(k), ir = function() {
6380
6375
  };
6381
6376
  ir.prototype.interfaces_ = function() {
6382
6377
  return [];
@@ -6453,15 +6448,15 @@ var Pt = function(r) {
6453
6448
  this.normalize(this._shell, !0);
6454
6449
  for (var o = 0; o < this._holes.length; o++)
6455
6450
  i.normalize(i._holes[o], !1);
6456
- _r.sort(this._holes);
6451
+ Ir.sort(this._holes);
6457
6452
  } else if (arguments.length === 2) {
6458
6453
  var s = arguments[0], a = arguments[1];
6459
6454
  if (s.isEmpty())
6460
6455
  return null;
6461
6456
  var u = new Array(s.getCoordinates().length - 1).fill(null);
6462
- kt.arraycopy(s.getCoordinates(), 0, u, 0, u.length);
6457
+ Gt.arraycopy(s.getCoordinates(), 0, u, 0, u.length);
6463
6458
  var l = W.minCoordinate(s.getCoordinates());
6464
- W.scroll(u, l), kt.arraycopy(u, 0, s.getCoordinates(), 0, u.length), s.getCoordinates()[u.length] = u[0], P.isCCW(s.getCoordinates()) === a && W.reverse(s.getCoordinates());
6459
+ W.scroll(u, l), Gt.arraycopy(u, 0, s.getCoordinates(), 0, u.length), s.getCoordinates()[u.length] = u[0], P.isCCW(s.getCoordinates()) === a && W.reverse(s.getCoordinates());
6465
6460
  }
6466
6461
  }, t.prototype.getCoordinate = function() {
6467
6462
  return this._shell.getCoordinate();
@@ -6508,18 +6503,18 @@ var Pt = function(r) {
6508
6503
  }
6509
6504
  }, t.prototype.apply = function(i) {
6510
6505
  var o = this;
6511
- if (k(i, Nn)) {
6506
+ if (G(i, Sn)) {
6512
6507
  this._shell.apply(i);
6513
6508
  for (var s = 0; s < this._holes.length; s++)
6514
6509
  o._holes[s].apply(i);
6515
- } else if (k(i, Ve)) {
6510
+ } else if (G(i, Ve)) {
6516
6511
  if (this._shell.apply(i), !i.isDone())
6517
6512
  for (var a = 0; a < this._holes.length && (o._holes[a].apply(i), !i.isDone()); a++)
6518
6513
  ;
6519
6514
  i.isGeometryChanged() && this.geometryChanged();
6520
- } else if (k(i, an))
6515
+ } else if (G(i, an))
6521
6516
  i.filter(this);
6522
- else if (k(i, Hn)) {
6517
+ else if (G(i, Hn)) {
6523
6518
  i.filter(this), this._shell.apply(i);
6524
6519
  for (var u = 0; u < this._holes.length; u++)
6525
6520
  o._holes[u].apply(i);
@@ -6558,14 +6553,14 @@ var Pt = function(r) {
6558
6553
  }, e.serialVersionUID.get = function() {
6559
6554
  return -3494792200821764600;
6560
6555
  }, Object.defineProperties(t, e), t;
6561
- }(G), yi = function(r) {
6556
+ }(k), yi = function(r) {
6562
6557
  function t() {
6563
6558
  r.apply(this, arguments);
6564
6559
  }
6565
6560
  r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t;
6566
6561
  var e = { serialVersionUID: { configurable: !0 } };
6567
6562
  return t.prototype.getSortIndex = function() {
6568
- return G.SORTINDEX_MULTIPOINT;
6563
+ return k.SORTINDEX_MULTIPOINT;
6569
6564
  }, t.prototype.isValid = function() {
6570
6565
  return !0;
6571
6566
  }, t.prototype.equalsExact = function() {
@@ -6599,14 +6594,14 @@ var Pt = function(r) {
6599
6594
  }, e.serialVersionUID.get = function() {
6600
6595
  return -8048474874175356e3;
6601
6596
  }, Object.defineProperties(t, e), t;
6602
- }(te), Sn = function(r) {
6597
+ }(te), wn = function(r) {
6603
6598
  function t(n, i) {
6604
6599
  n instanceof v && i instanceof H && (n = i.getCoordinateSequenceFactory().create(n)), r.call(this, n, i), this.validateConstruction();
6605
6600
  }
6606
6601
  r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t;
6607
6602
  var e = { MINIMUM_VALID_SIZE: { configurable: !0 }, serialVersionUID: { configurable: !0 } };
6608
6603
  return t.prototype.getSortIndex = function() {
6609
- return G.SORTINDEX_LINEARRING;
6604
+ return k.SORTINDEX_LINEARRING;
6610
6605
  }, t.prototype.getBoundaryDimension = function() {
6611
6606
  return Q.FALSE;
6612
6607
  }, t.prototype.isClosed = function() {
@@ -6634,14 +6629,14 @@ var Pt = function(r) {
6634
6629
  }, e.serialVersionUID.get = function() {
6635
6630
  return -4261142084085851600;
6636
6631
  }, Object.defineProperties(t, e), t;
6637
- }(pt), Cn = function(r) {
6632
+ }(pt), xn = function(r) {
6638
6633
  function t() {
6639
6634
  r.apply(this, arguments);
6640
6635
  }
6641
6636
  r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t;
6642
6637
  var e = { serialVersionUID: { configurable: !0 } };
6643
6638
  return t.prototype.getSortIndex = function() {
6644
- return G.SORTINDEX_MULTIPOLYGON;
6639
+ return k.SORTINDEX_MULTIPOLYGON;
6645
6640
  }, t.prototype.equalsExact = function() {
6646
6641
  if (arguments.length === 2) {
6647
6642
  var i = arguments[0], o = arguments[1];
@@ -6698,7 +6693,7 @@ Oe.prototype.editGeometryCollection = function(t, e) {
6698
6693
  var a = n.edit(i.getGeometryN(s), e);
6699
6694
  a === null || a.isEmpty() || o.add(a);
6700
6695
  }
6701
- return i.getClass() === yi ? this._factory.createMultiPoint(o.toArray([])) : i.getClass() === xr ? this._factory.createMultiLineString(o.toArray([])) : i.getClass() === Cn ? 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() === xn ? this._factory.createMultiPolygon(o.toArray([])) : this._factory.createGeometryCollection(o.toArray([]));
6702
6697
  };
6703
6698
  Oe.prototype.editPolygon = function(t, e) {
6704
6699
  var n = this, i = e.edit(t, this._factory);
@@ -6746,7 +6741,7 @@ var no = function() {
6746
6741
  };
6747
6742
  no.prototype.edit = function(t, e) {
6748
6743
  var n = this.editCoordinates(t.getCoordinates(), t);
6749
- return n === null ? t : t instanceof Sn ? e.createLinearRing(n) : t instanceof pt ? e.createLineString(n) : t instanceof ge ? n.length > 0 ? e.createPoint(n[0]) : e.createPoint() : t;
6744
+ return n === null ? t : t instanceof wn ? e.createLinearRing(n) : t instanceof pt ? e.createLineString(n) : t instanceof ge ? n.length > 0 ? e.createPoint(n[0]) : e.createPoint() : t;
6750
6745
  };
6751
6746
  no.prototype.interfaces_ = function() {
6752
6747
  return [Oe.GeometryEditorOperation];
@@ -6757,7 +6752,7 @@ no.prototype.getClass = function() {
6757
6752
  var ro = function() {
6758
6753
  };
6759
6754
  ro.prototype.edit = function(t, e) {
6760
- return t instanceof Sn ? e.createLinearRing(this.edit(t.getCoordinateSequence(), t)) : t instanceof pt ? e.createLineString(this.edit(t.getCoordinateSequence(), t)) : t instanceof ge ? e.createPoint(this.edit(t.getCoordinateSequence(), t)) : t;
6755
+ return t instanceof wn ? e.createLinearRing(this.edit(t.getCoordinateSequence(), t)) : t instanceof pt ? e.createLineString(this.edit(t.getCoordinateSequence(), t)) : t instanceof ge ? e.createPoint(this.edit(t.getCoordinateSequence(), t)) : t;
6761
6756
  };
6762
6757
  ro.prototype.interfaces_ = function() {
6763
6758
  return [Oe.GeometryEditorOperation];
@@ -6775,7 +6770,7 @@ var yt = function() {
6775
6770
  this._coordinates = new Array(e).fill(null);
6776
6771
  for (var n = 0; n < e; n++)
6777
6772
  t._coordinates[n] = new v();
6778
- } else if (k(arguments[0], K)) {
6773
+ } else if (G(arguments[0], K)) {
6779
6774
  var i = arguments[0];
6780
6775
  if (i === null)
6781
6776
  return this._coordinates = new Array(0).fill(null), null;
@@ -6884,17 +6879,17 @@ cu.serialVersionUID.get = function() {
6884
6879
  return -915438501601840600;
6885
6880
  };
6886
6881
  Object.defineProperties(yt, cu);
6887
- var wn = function() {
6882
+ var Ln = function() {
6888
6883
  }, Bs = { serialVersionUID: { configurable: !0 }, instanceObject: { configurable: !0 } };
6889
- wn.prototype.readResolve = function() {
6890
- return wn.instance();
6884
+ Ln.prototype.readResolve = function() {
6885
+ return Ln.instance();
6891
6886
  };
6892
- wn.prototype.create = function() {
6887
+ Ln.prototype.create = function() {
6893
6888
  if (arguments.length === 1) {
6894
6889
  if (arguments[0] instanceof Array) {
6895
6890
  var t = arguments[0];
6896
6891
  return new yt(t);
6897
- } else if (k(arguments[0], K)) {
6892
+ } else if (G(arguments[0], K)) {
6898
6893
  var e = arguments[0];
6899
6894
  return new yt(e);
6900
6895
  }
@@ -6903,22 +6898,22 @@ wn.prototype.create = function() {
6903
6898
  return i > 3 && (i = 3), i < 2 ? new yt(n) : new yt(n, i);
6904
6899
  }
6905
6900
  };
6906
- wn.prototype.interfaces_ = function() {
6901
+ Ln.prototype.interfaces_ = function() {
6907
6902
  return [fi, Ae];
6908
6903
  };
6909
- wn.prototype.getClass = function() {
6910
- return wn;
6904
+ Ln.prototype.getClass = function() {
6905
+ return Ln;
6911
6906
  };
6912
- wn.instance = function() {
6913
- return wn.instanceObject;
6907
+ Ln.instance = function() {
6908
+ return Ln.instanceObject;
6914
6909
  };
6915
6910
  Bs.serialVersionUID.get = function() {
6916
6911
  return -4099577099607551500;
6917
6912
  };
6918
6913
  Bs.instanceObject.get = function() {
6919
- return new wn();
6914
+ return new Ln();
6920
6915
  };
6921
- Object.defineProperties(wn, Bs);
6916
+ Object.defineProperties(Ln, Bs);
6922
6917
  var fu = function(r) {
6923
6918
  function t() {
6924
6919
  r.call(this), this.map_ = /* @__PURE__ */ new Map();
@@ -6954,7 +6949,7 @@ var fu = function(r) {
6954
6949
  this._modelType = n._modelType, this._scale = n._scale;
6955
6950
  }
6956
6951
  }
6957
- }, Gs = { serialVersionUID: { configurable: !0 }, maximumPreciseValue: { configurable: !0 } };
6952
+ }, ks = { serialVersionUID: { configurable: !0 }, maximumPreciseValue: { configurable: !0 } };
6958
6953
  Z.prototype.equals = function(t) {
6959
6954
  if (!(t instanceof Z))
6960
6955
  return !1;
@@ -7011,16 +7006,16 @@ Z.prototype.getClass = function() {
7011
7006
  Z.mostPrecise = function(t, e) {
7012
7007
  return t.compareTo(e) >= 0 ? t : e;
7013
7008
  };
7014
- Gs.serialVersionUID.get = function() {
7009
+ ks.serialVersionUID.get = function() {
7015
7010
  return 7777263578777804e3;
7016
7011
  };
7017
- Gs.maximumPreciseValue.get = function() {
7012
+ ks.maximumPreciseValue.get = function() {
7018
7013
  return 9007199254740992;
7019
7014
  };
7020
- Object.defineProperties(Z, Gs);
7015
+ Object.defineProperties(Z, ks);
7021
7016
  var un = function r(t) {
7022
7017
  this._name = t || null, r.nameToTypeMap.put(t, this);
7023
- }, ks = { serialVersionUID: { configurable: !0 }, nameToTypeMap: { configurable: !0 } };
7018
+ }, Gs = { serialVersionUID: { configurable: !0 }, nameToTypeMap: { configurable: !0 } };
7024
7019
  un.prototype.readResolve = function() {
7025
7020
  return un.nameToTypeMap.get(this._name);
7026
7021
  };
@@ -7033,19 +7028,19 @@ un.prototype.interfaces_ = function() {
7033
7028
  un.prototype.getClass = function() {
7034
7029
  return un;
7035
7030
  };
7036
- ks.serialVersionUID.get = function() {
7031
+ Gs.serialVersionUID.get = function() {
7037
7032
  return -552860263173159e4;
7038
7033
  };
7039
- ks.nameToTypeMap.get = function() {
7034
+ Gs.nameToTypeMap.get = function() {
7040
7035
  return new fu();
7041
7036
  };
7042
- Object.defineProperties(un, ks);
7037
+ Object.defineProperties(un, Gs);
7043
7038
  Z.Type = un;
7044
7039
  Z.FIXED = new un("FIXED");
7045
7040
  Z.FLOATING = new un("FLOATING");
7046
7041
  Z.FLOATING_SINGLE = new un("FLOATING SINGLE");
7047
7042
  var H = function r() {
7048
- this._precisionModel = new Z(), this._SRID = 0, this._coordinateSequenceFactory = r.getDefaultCoordinateSequenceFactory(), arguments.length === 0 || (arguments.length === 1 ? k(arguments[0], fi) ? this._coordinateSequenceFactory = arguments[0] : arguments[0] instanceof Z && (this._precisionModel = arguments[0]) : arguments.length === 2 ? (this._precisionModel = arguments[0], this._SRID = arguments[1]) : arguments.length === 3 && (this._precisionModel = arguments[0], this._SRID = arguments[1], this._coordinateSequenceFactory = arguments[2]));
7043
+ this._precisionModel = new Z(), this._SRID = 0, this._coordinateSequenceFactory = r.getDefaultCoordinateSequenceFactory(), arguments.length === 0 || (arguments.length === 1 ? G(arguments[0], fi) ? this._coordinateSequenceFactory = arguments[0] : arguments[0] instanceof Z && (this._precisionModel = arguments[0]) : arguments.length === 2 ? (this._precisionModel = arguments[0], this._SRID = arguments[1]) : arguments.length === 3 && (this._precisionModel = arguments[0], this._SRID = arguments[1], this._coordinateSequenceFactory = arguments[2]));
7049
7044
  }, hu = { serialVersionUID: { configurable: !0 } };
7050
7045
  H.prototype.toGeometry = function(t) {
7051
7046
  return t.isNull() ? this.createPoint(null) : t.getMinX() === t.getMaxX() && t.getMinY() === t.getMaxY() ? this.createPoint(new v(t.getMinX(), t.getMinY())) : t.getMinX() === t.getMaxX() || t.getMinY() === t.getMaxY() ? this.createLineString([new v(t.getMinX(), t.getMinY()), new v(t.getMaxX(), t.getMaxY())]) : this.createPolygon(this.createLinearRing([new v(t.getMinX(), t.getMinY()), new v(t.getMinX(), t.getMaxY()), new v(t.getMaxX(), t.getMaxY()), new v(t.getMaxX(), t.getMinY()), new v(t.getMinX(), t.getMinY())]), null);
@@ -7054,17 +7049,17 @@ H.prototype.createLineString = function(t) {
7054
7049
  if (t) {
7055
7050
  if (t instanceof Array)
7056
7051
  return new pt(this.getCoordinateSequenceFactory().create(t), this);
7057
- if (k(t, K))
7052
+ if (G(t, K))
7058
7053
  return new pt(t, this);
7059
7054
  } else
7060
7055
  return new pt(this.getCoordinateSequenceFactory().create([]), this);
7061
7056
  };
7062
7057
  H.prototype.createMultiLineString = function() {
7063
7058
  if (arguments.length === 0)
7064
- return new xr(null, this);
7059
+ return new Sr(null, this);
7065
7060
  if (arguments.length === 1) {
7066
7061
  var t = arguments[0];
7067
- return new xr(t, this);
7062
+ return new Sr(t, this);
7068
7063
  }
7069
7064
  };
7070
7065
  H.prototype.buildGeometry = function(t) {
@@ -7098,7 +7093,7 @@ H.prototype.createPoint = function() {
7098
7093
  if (arguments[0] instanceof v) {
7099
7094
  var t = arguments[0];
7100
7095
  return this.createPoint(t !== null ? this.getCoordinateSequenceFactory().create([t]) : null);
7101
- } else if (k(arguments[0], K)) {
7096
+ } else if (G(arguments[0], K)) {
7102
7097
  var e = arguments[0];
7103
7098
  return new ge(e, this);
7104
7099
  }
@@ -7111,13 +7106,13 @@ H.prototype.createPolygon = function() {
7111
7106
  if (arguments.length === 0)
7112
7107
  return new Pt(null, null, this);
7113
7108
  if (arguments.length === 1) {
7114
- if (k(arguments[0], K)) {
7109
+ if (G(arguments[0], K)) {
7115
7110
  var t = arguments[0];
7116
7111
  return this.createPolygon(this.createLinearRing(t));
7117
7112
  } else if (arguments[0] instanceof Array) {
7118
7113
  var e = arguments[0];
7119
7114
  return this.createPolygon(this.createLinearRing(e));
7120
- } else if (arguments[0] instanceof Sn) {
7115
+ } else if (arguments[0] instanceof wn) {
7121
7116
  var n = arguments[0];
7122
7117
  return this.createPolygon(n, null);
7123
7118
  }
@@ -7158,18 +7153,18 @@ H.prototype.createLinearRing = function() {
7158
7153
  if (arguments[0] instanceof Array) {
7159
7154
  var t = arguments[0];
7160
7155
  return this.createLinearRing(t !== null ? this.getCoordinateSequenceFactory().create(t) : null);
7161
- } else if (k(arguments[0], K)) {
7156
+ } else if (G(arguments[0], K)) {
7162
7157
  var e = arguments[0];
7163
- return new Sn(e, this);
7158
+ return new wn(e, this);
7164
7159
  }
7165
7160
  }
7166
7161
  };
7167
7162
  H.prototype.createMultiPolygon = function() {
7168
7163
  if (arguments.length === 0)
7169
- return new Cn(null, this);
7164
+ return new xn(null, this);
7170
7165
  if (arguments.length === 1) {
7171
7166
  var t = arguments[0];
7172
- return new Cn(t, this);
7167
+ return new xn(t, this);
7173
7168
  }
7174
7169
  };
7175
7170
  H.prototype.createMultiPoint = function() {
@@ -7183,7 +7178,7 @@ H.prototype.createMultiPoint = function() {
7183
7178
  } else if (arguments[0] instanceof Array) {
7184
7179
  var n = arguments[0];
7185
7180
  return this.createMultiPoint(n !== null ? this.getCoordinateSequenceFactory().create(n) : null);
7186
- } else if (k(arguments[0], K)) {
7181
+ } else if (G(arguments[0], K)) {
7187
7182
  var i = arguments[0];
7188
7183
  if (i === null)
7189
7184
  return this.createMultiPoint(new Array(0).fill(null));
@@ -7212,7 +7207,7 @@ H.toGeometryArray = function(t) {
7212
7207
  return t.toArray(e);
7213
7208
  };
7214
7209
  H.getDefaultCoordinateSequenceFactory = function() {
7215
- return wn.instance();
7210
+ return Ln.instance();
7216
7211
  };
7217
7212
  H.toMultiLineStringArray = function(t) {
7218
7213
  var e = new Array(t.size()).fill(null);
@@ -7245,7 +7240,7 @@ hu.serialVersionUID.get = function() {
7245
7240
  return -6820524753094096e3;
7246
7241
  };
7247
7242
  Object.defineProperties(H, hu);
7248
- var Nc = ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"], Zo = function(t) {
7243
+ var Sc = ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"], Zo = function(t) {
7249
7244
  this.geometryFactory = t || new H();
7250
7245
  };
7251
7246
  Zo.prototype.read = function(t) {
@@ -7254,7 +7249,7 @@ Zo.prototype.read = function(t) {
7254
7249
  var n = e.type;
7255
7250
  if (!$e[n])
7256
7251
  throw new Error("Unknown GeoJSON type: " + e.type);
7257
- return Nc.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]);
7258
7253
  };
7259
7254
  Zo.prototype.write = function(t) {
7260
7255
  var e = t.getGeometryType();
@@ -7617,7 +7612,7 @@ ts.prototype.name = "EmptyStackException";
7617
7612
  function yn() {
7618
7613
  this.array_ = [];
7619
7614
  }
7620
- yn.prototype = new ke();
7615
+ yn.prototype = new Ge();
7621
7616
  yn.prototype.add = function(r) {
7622
7617
  return this.array_.push(r), !0;
7623
7618
  };
@@ -8160,7 +8155,7 @@ xt.prototype.interfaces_ = function() {
8160
8155
  xt.prototype.getClass = function() {
8161
8156
  return xt;
8162
8157
  };
8163
- var Sc = function(r) {
8158
+ var wc = function(r) {
8164
8159
  function t() {
8165
8160
  var e = arguments[0], n = arguments[1];
8166
8161
  r.call(this, e, n);
@@ -8174,7 +8169,7 @@ var Sc = function(r) {
8174
8169
  }, t.prototype.getClass = function() {
8175
8170
  return t;
8176
8171
  }, t;
8177
- }(xt), wc = function(r) {
8172
+ }(xt), Lc = function(r) {
8178
8173
  function t() {
8179
8174
  var e = arguments[0], n = arguments[1];
8180
8175
  r.call(this, e, n);
@@ -8183,7 +8178,7 @@ var Sc = function(r) {
8183
8178
  var n = this, i = new L(), o = this._startDe;
8184
8179
  do {
8185
8180
  if (o.getMinEdgeRing() === null) {
8186
- var s = new Sc(o, n._geometryFactory);
8181
+ var s = new wc(o, n._geometryFactory);
8187
8182
  i.add(s);
8188
8183
  }
8189
8184
  o = o.getNext();
@@ -8615,7 +8610,7 @@ ht.prototype.linkResultDirectedEdges = function() {
8615
8610
  }
8616
8611
  };
8617
8612
  ht.prototype.debugPrintln = function(t) {
8618
- kt.out.println(t);
8613
+ Gt.out.println(t);
8619
8614
  };
8620
8615
  ht.prototype.isBoundaryNode = function(t, e) {
8621
8616
  var n = this._nodes.find(e);
@@ -8637,7 +8632,7 @@ ht.prototype.getEdgeEnds = function() {
8637
8632
  return this._edgeEndList;
8638
8633
  };
8639
8634
  ht.prototype.debugPrint = function(t) {
8640
- kt.out.print(t);
8635
+ Gt.out.print(t);
8641
8636
  };
8642
8637
  ht.prototype.getEdgeIterator = function() {
8643
8638
  return this._edges.iterator();
@@ -8748,7 +8743,7 @@ pe.prototype.buildMaximalEdgeRings = function(t) {
8748
8743
  for (var e = this, n = new L(), i = t.iterator(); i.hasNext(); ) {
8749
8744
  var o = i.next();
8750
8745
  if (o.isInResult() && o.getLabel().isArea() && o.getEdgeRing() === null) {
8751
- var s = new wc(o, e._geometryFactory);
8746
+ var s = new Lc(o, e._geometryFactory);
8752
8747
  n.add(s), s.setInResult();
8753
8748
  }
8754
8749
  }
@@ -8935,7 +8930,7 @@ qe.min = function(t) {
8935
8930
  };
8936
8931
  qe.sort = function(t, e) {
8937
8932
  var n = t.toArray();
8938
- e ? _r.sort(n, e) : _r.sort(n);
8933
+ e ? Ir.sort(n, e) : Ir.sort(n);
8939
8934
  for (var i = t.iterator(), o = 0, s = n.length; o < s; o++)
8940
8935
  i.next(), i.set(n[o]);
8941
8936
  };
@@ -9076,12 +9071,12 @@ Ot.prototype.query = function() {
9076
9071
  return null;
9077
9072
  this.getIntersectsOp().intersects(this._root.getBounds(), i) && this.query(i, this._root, o);
9078
9073
  } else if (arguments.length === 3) {
9079
- if (k(arguments[2], or) && arguments[0] instanceof Object && arguments[1] instanceof bt)
9074
+ if (G(arguments[2], or) && arguments[0] instanceof Object && arguments[1] instanceof bt)
9080
9075
  for (var s = arguments[0], a = arguments[1], u = arguments[2], l = a.getChildBoundables(), c = 0; c < l.size(); c++) {
9081
9076
  var f = l.get(c);
9082
9077
  t.getIntersectsOp().intersects(f.getBounds(), s) && (f instanceof bt ? t.query(s, f, u) : f instanceof Ue ? u.visitItem(f.getItem()) : X.shouldNeverReachHere());
9083
9078
  }
9084
- else if (k(arguments[2], ke) && arguments[0] instanceof Object && arguments[1] instanceof bt)
9079
+ else if (G(arguments[2], Ge) && arguments[0] instanceof Object && arguments[1] instanceof bt)
9085
9080
  for (var h = arguments[0], g = arguments[1], p = arguments[2], m = g.getChildBoundables(), d = 0; d < m.size(); d++) {
9086
9081
  var _ = m.get(d);
9087
9082
  t.getIntersectsOp().intersects(_.getBounds(), h) && (_ instanceof bt ? t.query(h, _, p) : _ instanceof Ue ? p.add(_.getItem()) : X.shouldNeverReachHere());
@@ -9161,7 +9156,7 @@ Ot.compareDoubles = function(t, e) {
9161
9156
  return t > e ? 1 : t < e ? -1 : 0;
9162
9157
  };
9163
9158
  rs.IntersectsOp.get = function() {
9164
- return Lc;
9159
+ return bc;
9165
9160
  };
9166
9161
  rs.serialVersionUID.get = function() {
9167
9162
  return -3886435814360241e3;
@@ -9170,7 +9165,7 @@ rs.DEFAULT_NODE_CAPACITY.get = function() {
9170
9165
  return 10;
9171
9166
  };
9172
9167
  Object.defineProperties(Ot, rs);
9173
- var Lc = function() {
9168
+ var bc = function() {
9174
9169
  }, Ei = function() {
9175
9170
  };
9176
9171
  Ei.prototype.distance = function(t, e) {
@@ -9224,10 +9219,10 @@ var du = function(r) {
9224
9219
  var o = arguments[0], s = arguments[1];
9225
9220
  r.prototype.query.call(this, o, s);
9226
9221
  } else if (arguments.length === 3) {
9227
- if (k(arguments[2], or) && arguments[0] instanceof Object && arguments[1] instanceof bt) {
9222
+ if (G(arguments[2], or) && arguments[0] instanceof Object && arguments[1] instanceof bt) {
9228
9223
  var a = arguments[0], u = arguments[1], l = arguments[2];
9229
9224
  r.prototype.query.call(this, a, u, l);
9230
- } else if (k(arguments[2], ke) && arguments[0] instanceof Object && arguments[1] instanceof bt) {
9225
+ } else if (G(arguments[2], Ge) && arguments[0] instanceof Object && arguments[1] instanceof bt) {
9231
9226
  var c = arguments[0], f = arguments[1], h = arguments[2];
9232
9227
  r.prototype.query.call(this, c, f, h);
9233
9228
  }
@@ -9252,7 +9247,7 @@ var du = function(r) {
9252
9247
  return this.createParentBoundablesFromVerticalSlices(u, o);
9253
9248
  }, t.prototype.nearestNeighbour = function() {
9254
9249
  if (arguments.length === 1) {
9255
- if (k(arguments[0], Ei)) {
9250
+ if (G(arguments[0], Ei)) {
9256
9251
  var i = arguments[0], o = new It(this.getRoot(), this.getRoot(), i);
9257
9252
  return this.nearestNeighbour(o);
9258
9253
  } else if (arguments[0] instanceof It) {
@@ -9260,7 +9255,7 @@ var du = function(r) {
9260
9255
  return this.nearestNeighbour(s, V.POSITIVE_INFINITY);
9261
9256
  }
9262
9257
  } else if (arguments.length === 2) {
9263
- if (arguments[0] instanceof t && k(arguments[1], Ei)) {
9258
+ if (arguments[0] instanceof t && G(arguments[1], Ei)) {
9264
9259
  var a = arguments[0], u = arguments[1], l = new It(this.getRoot(), a.getRoot(), u);
9265
9260
  return this.nearestNeighbour(l);
9266
9261
  } else if (arguments[0] instanceof It && typeof arguments[1] == "number") {
@@ -9523,32 +9518,32 @@ Yr.octant = function() {
9523
9518
  return Yr.octant(a, u);
9524
9519
  }
9525
9520
  };
9526
- var Ln = function() {
9521
+ var bn = function() {
9527
9522
  };
9528
- Ln.prototype.getCoordinates = function() {
9523
+ bn.prototype.getCoordinates = function() {
9529
9524
  };
9530
- Ln.prototype.size = function() {
9525
+ bn.prototype.size = function() {
9531
9526
  };
9532
- Ln.prototype.getCoordinate = function(t) {
9527
+ bn.prototype.getCoordinate = function(t) {
9533
9528
  };
9534
- Ln.prototype.isClosed = function() {
9529
+ bn.prototype.isClosed = function() {
9535
9530
  };
9536
- Ln.prototype.setData = function(t) {
9531
+ bn.prototype.setData = function(t) {
9537
9532
  };
9538
- Ln.prototype.getData = function() {
9533
+ bn.prototype.getData = function() {
9539
9534
  };
9540
- Ln.prototype.interfaces_ = function() {
9535
+ bn.prototype.interfaces_ = function() {
9541
9536
  return [];
9542
9537
  };
9543
- Ln.prototype.getClass = function() {
9544
- return Ln;
9538
+ bn.prototype.getClass = function() {
9539
+ return bn;
9545
9540
  };
9546
9541
  var io = function() {
9547
9542
  };
9548
9543
  io.prototype.addIntersection = function(t, e) {
9549
9544
  };
9550
9545
  io.prototype.interfaces_ = function() {
9551
- return [Ln];
9546
+ return [bn];
9552
9547
  };
9553
9548
  io.prototype.getClass = function() {
9554
9549
  return io;
@@ -9664,7 +9659,7 @@ M.prototype.equals = function(t) {
9664
9659
  return this.p0.equals(e.p0) && this.p1.equals(e.p1);
9665
9660
  };
9666
9661
  M.prototype.intersection = function(t) {
9667
- var e = new Tr();
9662
+ var e = new Ar();
9668
9663
  return e.computeIntersection(this.p0, this.p1, t.p0, t.p1), e.hasIntersection() ? e.getIntersection(0) : null;
9669
9664
  };
9670
9665
  M.prototype.project = function() {
@@ -9752,7 +9747,7 @@ M.prototype.equalsTopo = function(t) {
9752
9747
  };
9753
9748
  M.prototype.lineIntersection = function(t) {
9754
9749
  try {
9755
- var e = Ge.intersection(this.p0, this.p1, t.p0, t.p1);
9750
+ var e = ke.intersection(this.p0, this.p1, t.p0, t.p1);
9756
9751
  return e;
9757
9752
  } catch (n) {
9758
9753
  if (!(n instanceof Ai))
@@ -9959,17 +9954,17 @@ rn.toIntArray = function(t) {
9959
9954
  e[n] = t.get(n).intValue();
9960
9955
  return e;
9961
9956
  };
9962
- var Nr = function() {
9957
+ var wr = function() {
9963
9958
  };
9964
- Nr.prototype.computeNodes = function(t) {
9959
+ wr.prototype.computeNodes = function(t) {
9965
9960
  };
9966
- Nr.prototype.getNodedSubstrings = function() {
9961
+ wr.prototype.getNodedSubstrings = function() {
9967
9962
  };
9968
- Nr.prototype.interfaces_ = function() {
9963
+ wr.prototype.interfaces_ = function() {
9969
9964
  return [];
9970
9965
  };
9971
- Nr.prototype.getClass = function() {
9972
- return Nr;
9966
+ wr.prototype.getClass = function() {
9967
+ return wr;
9973
9968
  };
9974
9969
  var so = function() {
9975
9970
  if (this._segInt = null, arguments.length !== 0) {
@@ -9983,7 +9978,7 @@ so.prototype.setSegmentIntersector = function(t) {
9983
9978
  this._segInt = t;
9984
9979
  };
9985
9980
  so.prototype.interfaces_ = function() {
9986
- return [Nr];
9981
+ return [wr];
9987
9982
  };
9988
9983
  so.prototype.getClass = function() {
9989
9984
  return so;
@@ -10359,7 +10354,7 @@ Object.defineProperties(j, ii);
10359
10354
  var ut = function r() {
10360
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;
10361
10356
  var t = arguments[0], e = arguments[1], n = arguments[2];
10362
- this._precisionModel = t, this._bufParams = e, this._li = new Tr(), 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);
10363
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 } };
10364
10359
  ut.prototype.addNextSegment = function(t, e) {
10365
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))
@@ -10395,7 +10390,7 @@ ut.prototype.getCoordinates = function() {
10395
10390
  ut.prototype.addMitreJoin = function(t, e, n, i) {
10396
10391
  var o = !0, s = null;
10397
10392
  try {
10398
- s = Ge.intersection(e.p0, e.p1, n.p0, n.p1);
10393
+ s = ke.intersection(e.p0, e.p1, n.p0, n.p1);
10399
10394
  var a = i <= 0 ? 1 : s.distance(t) / Math.abs(i);
10400
10395
  a > this._bufParams.getMitreLimit() && (o = !1);
10401
10396
  } catch (u) {
@@ -10638,18 +10633,18 @@ Hr.prototype.findStabbedSegments = function() {
10638
10633
  }
10639
10634
  return n;
10640
10635
  } else if (arguments.length === 3) {
10641
- if (k(arguments[2], ke) && arguments[0] instanceof v && arguments[1] instanceof ws)
10636
+ if (G(arguments[2], Ge) && arguments[0] instanceof v && arguments[1] instanceof ws)
10642
10637
  for (var a = arguments[0], u = arguments[1], l = arguments[2], c = u.getEdge().getCoordinates(), f = 0; f < c.length - 1; f++) {
10643
10638
  t._seg.p0 = c[f], t._seg.p1 = c[f + 1], t._seg.p0.y > t._seg.p1.y && t._seg.reverse();
10644
10639
  var h = Math.max(t._seg.p0.x, t._seg.p1.x);
10645
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) {
10646
10641
  var g = u.getDepth(w.LEFT);
10647
10642
  t._seg.p0.equals(c[f]) || (g = u.getDepth(w.RIGHT));
10648
- var p = new Sr(t._seg, g);
10643
+ var p = new Lr(t._seg, g);
10649
10644
  l.add(p);
10650
10645
  }
10651
10646
  }
10652
- else if (k(arguments[2], ke) && arguments[0] instanceof v && k(arguments[1], ke))
10647
+ else if (G(arguments[2], Ge) && arguments[0] instanceof v && G(arguments[1], Ge))
10653
10648
  for (var m = arguments[0], d = arguments[1], _ = arguments[2], I = d.iterator(); I.hasNext(); ) {
10654
10649
  var C = I.next();
10655
10650
  C.isForward() && t.findStabbedSegments(m, C, _);
@@ -10670,15 +10665,15 @@ Hr.prototype.getClass = function() {
10670
10665
  return Hr;
10671
10666
  };
10672
10667
  mu.DepthSegment.get = function() {
10673
- return Sr;
10668
+ return Lr;
10674
10669
  };
10675
10670
  Object.defineProperties(Hr, mu);
10676
- var Sr = function() {
10671
+ var Lr = function() {
10677
10672
  this._upwardSeg = null, this._leftDepth = null;
10678
10673
  var t = arguments[0], e = arguments[1];
10679
10674
  this._upwardSeg = new M(t), this._leftDepth = e;
10680
10675
  };
10681
- Sr.prototype.compareTo = function(t) {
10676
+ Lr.prototype.compareTo = function(t) {
10682
10677
  var e = t;
10683
10678
  if (this._upwardSeg.minX() >= e._upwardSeg.maxX())
10684
10679
  return 1;
@@ -10687,18 +10682,18 @@ Sr.prototype.compareTo = function(t) {
10687
10682
  var n = this._upwardSeg.orientationIndex(e._upwardSeg);
10688
10683
  return n !== 0 || (n = -1 * e._upwardSeg.orientationIndex(this._upwardSeg), n !== 0) ? n : this._upwardSeg.compareTo(e._upwardSeg);
10689
10684
  };
10690
- Sr.prototype.compareX = function(t, e) {
10685
+ Lr.prototype.compareX = function(t, e) {
10691
10686
  var n = t.p0.compareTo(e.p0);
10692
10687
  return n !== 0 ? n : t.p1.compareTo(e.p1);
10693
10688
  };
10694
- Sr.prototype.toString = function() {
10689
+ Lr.prototype.toString = function() {
10695
10690
  return this._upwardSeg.toString();
10696
10691
  };
10697
- Sr.prototype.interfaces_ = function() {
10692
+ Lr.prototype.interfaces_ = function() {
10698
10693
  return [Me];
10699
10694
  };
10700
- Sr.prototype.getClass = function() {
10701
- return Sr;
10695
+ Lr.prototype.getClass = function() {
10696
+ return Lr;
10702
10697
  };
10703
10698
  var $ = function(t, e, n) {
10704
10699
  this.p0 = t || null, this.p1 = e || null, this.p2 = n || null;
@@ -10763,8 +10758,8 @@ $.circumcentre = function(t, e, n) {
10763
10758
  return new v(g, p);
10764
10759
  };
10765
10760
  $.perpendicularBisector = function(t, e) {
10766
- var n = e.x - t.x, i = e.y - t.y, o = new Ge(t.x + n / 2, t.y + i / 2, 1), s = new Ge(t.x - i + n / 2, t.y + n + i / 2, 1);
10767
- return new Ge(o, s);
10761
+ var n = e.x - t.x, i = e.y - t.y, o = new ke(t.x + n / 2, t.y + i / 2, 1), s = new ke(t.x - i + n / 2, t.y + n + i / 2, 1);
10762
+ return new ke(o, s);
10768
10763
  };
10769
10764
  $.angleBisector = function(t, e, n) {
10770
10765
  var i = e.distance(t), o = e.distance(n), s = i / (i + o), a = n.x - t.x, u = n.y - t.y, l = new v(t.x + s * a, t.y + s * u);
@@ -10825,17 +10820,17 @@ De.prototype.getCurves = function() {
10825
10820
  return this.add(this._inputGeom), this._curveList;
10826
10821
  };
10827
10822
  De.prototype.addPolygonRing = function(t, e, n, i, o) {
10828
- if (e === 0 && t.length < Sn.MINIMUM_VALID_SIZE)
10823
+ if (e === 0 && t.length < wn.MINIMUM_VALID_SIZE)
10829
10824
  return null;
10830
10825
  var s = i, a = o;
10831
- t.length >= Sn.MINIMUM_VALID_SIZE && P.isCCW(t) && (s = o, a = i, n = w.opposite(n));
10826
+ t.length >= wn.MINIMUM_VALID_SIZE && P.isCCW(t) && (s = o, a = i, n = w.opposite(n));
10832
10827
  var u = this._curveBuilder.getRingCurve(t, n, e);
10833
10828
  this.addCurve(u, s, a);
10834
10829
  };
10835
10830
  De.prototype.add = function(t) {
10836
10831
  if (t.isEmpty())
10837
10832
  return null;
10838
- 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 xr ? this.addCollection(t) : t instanceof Cn ? 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 xn ? this.addCollection(t) : t instanceof te && this.addCollection(t);
10839
10834
  };
10840
10835
  De.prototype.isErodedCompletely = function(t, e) {
10841
10836
  var n = t.getCoordinates();
@@ -10868,14 +10863,14 @@ Ii.prototype.interfaces_ = function() {
10868
10863
  Ii.prototype.getClass = function() {
10869
10864
  return Ii;
10870
10865
  };
10871
- var xn = function() {
10866
+ var Nn = function() {
10872
10867
  this._parent = null, this._atStart = null, this._max = null, this._index = null, this._subcollectionIterator = null;
10873
10868
  var t = arguments[0];
10874
10869
  this._parent = t, this._atStart = !0, this._index = 0, this._max = t.getNumGeometries();
10875
10870
  };
10876
- xn.prototype.next = function() {
10871
+ Nn.prototype.next = function() {
10877
10872
  if (this._atStart)
10878
- return this._atStart = !1, xn.isAtomic(this._parent) && this._index++, this._parent;
10873
+ return this._atStart = !1, Nn.isAtomic(this._parent) && this._index++, this._parent;
10879
10874
  if (this._subcollectionIterator !== null) {
10880
10875
  if (this._subcollectionIterator.hasNext())
10881
10876
  return this._subcollectionIterator.next();
@@ -10884,12 +10879,12 @@ xn.prototype.next = function() {
10884
10879
  if (this._index >= this._max)
10885
10880
  throw new Bi();
10886
10881
  var t = this._parent.getGeometryN(this._index++);
10887
- return t instanceof te ? (this._subcollectionIterator = new xn(t), this._subcollectionIterator.next()) : t;
10882
+ return t instanceof te ? (this._subcollectionIterator = new Nn(t), this._subcollectionIterator.next()) : t;
10888
10883
  };
10889
- xn.prototype.remove = function() {
10884
+ Nn.prototype.remove = function() {
10890
10885
  throw new Error(this.getClass().getName());
10891
10886
  };
10892
- xn.prototype.hasNext = function() {
10887
+ Nn.prototype.hasNext = function() {
10893
10888
  if (this._atStart)
10894
10889
  return !0;
10895
10890
  if (this._subcollectionIterator !== null) {
@@ -10899,13 +10894,13 @@ xn.prototype.hasNext = function() {
10899
10894
  }
10900
10895
  return !(this._index >= this._max);
10901
10896
  };
10902
- xn.prototype.interfaces_ = function() {
10897
+ Nn.prototype.interfaces_ = function() {
10903
10898
  return [Fi];
10904
10899
  };
10905
- xn.prototype.getClass = function() {
10906
- return xn;
10900
+ Nn.prototype.getClass = function() {
10901
+ return Nn;
10907
10902
  };
10908
- xn.isAtomic = function(t) {
10903
+ Nn.isAtomic = function(t) {
10909
10904
  return !(t instanceof te);
10910
10905
  };
10911
10906
  var Ee = function() {
@@ -10942,7 +10937,7 @@ Ee.containsPoint = function(t, e) {
10942
10937
  if (e instanceof Pt)
10943
10938
  return Ee.containsPointInPolygon(t, e);
10944
10939
  if (e instanceof te)
10945
- for (var n = new xn(e); n.hasNext(); ) {
10940
+ for (var n = new Nn(e); n.hasNext(); ) {
10946
10941
  var i = n.next();
10947
10942
  if (i !== e && Ee.containsPoint(t, i))
10948
10943
  return !0;
@@ -10988,7 +10983,7 @@ Wt.prototype.getCoordinate = function() {
10988
10983
  return e.getCoordinate();
10989
10984
  };
10990
10985
  Wt.prototype.print = function(t) {
10991
- kt.out.println("EdgeEndStar: " + this.getCoordinate());
10986
+ Gt.out.println("EdgeEndStar: " + this.getCoordinate());
10992
10987
  for (var e = this.iterator(); e.hasNext(); ) {
10993
10988
  var n = e.next();
10994
10989
  n.print(t);
@@ -11080,7 +11075,7 @@ Wt.prototype.interfaces_ = function() {
11080
11075
  Wt.prototype.getClass = function() {
11081
11076
  return Wt;
11082
11077
  };
11083
- var bc = function(r) {
11078
+ var Pc = function(r) {
11084
11079
  function t() {
11085
11080
  r.call(this), this._resultAreaEdgeList = null, this._label = null, this._SCANNING_FOR_INCOMING = 1, this._LINKING_TO_OUTGOING = 2;
11086
11081
  }
@@ -11121,7 +11116,7 @@ var bc = function(r) {
11121
11116
  var s = n.get(i - 1), a = o.getQuadrant(), u = s.getQuadrant();
11122
11117
  return nt.isNorthern(a) && nt.isNorthern(u) ? o : !nt.isNorthern(a) && !nt.isNorthern(u) ? s : o.getDy() !== 0 ? o : s.getDy() !== 0 ? s : (X.shouldNeverReachHere("found two horizontal edges incident on node"), null);
11123
11118
  }, t.prototype.print = function(n) {
11124
- kt.out.println("DirectedEdgeStar: " + this.getCoordinate());
11119
+ Gt.out.println("DirectedEdgeStar: " + this.getCoordinate());
11125
11120
  for (var i = this.iterator(); i.hasNext(); ) {
11126
11121
  var o = i.next();
11127
11122
  n.print("out "), o.print(n), n.println(), n.print("in "), o.getSym().print(n), n.println();
@@ -11238,7 +11233,7 @@ var bc = function(r) {
11238
11233
  r.apply(this, arguments);
11239
11234
  }
11240
11235
  return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t.prototype.createNode = function(n) {
11241
- return new ns(n, new bc());
11236
+ return new ns(n, new Pc());
11242
11237
  }, t.prototype.interfaces_ = function() {
11243
11238
  return [];
11244
11239
  }, t.prototype.getClass = function() {
@@ -11326,17 +11321,17 @@ Xe.prototype.interfaces_ = function() {
11326
11321
  Xe.prototype.getClass = function() {
11327
11322
  return Xe;
11328
11323
  };
11329
- var wr = function() {
11324
+ var br = function() {
11330
11325
  };
11331
- wr.prototype.processIntersections = function(t, e, n, i) {
11326
+ br.prototype.processIntersections = function(t, e, n, i) {
11332
11327
  };
11333
- wr.prototype.isDone = function() {
11328
+ br.prototype.isDone = function() {
11334
11329
  };
11335
- wr.prototype.interfaces_ = function() {
11330
+ br.prototype.interfaces_ = function() {
11336
11331
  return [];
11337
11332
  };
11338
- wr.prototype.getClass = function() {
11339
- return wr;
11333
+ br.prototype.getClass = function() {
11334
+ return br;
11340
11335
  };
11341
11336
  var Se = function() {
11342
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;
@@ -11384,7 +11379,7 @@ Se.prototype.hasInteriorIntersection = function() {
11384
11379
  return this._hasInterior;
11385
11380
  };
11386
11381
  Se.prototype.interfaces_ = function() {
11387
- return [wr];
11382
+ return [br];
11388
11383
  };
11389
11384
  Se.prototype.getClass = function() {
11390
11385
  return Se;
@@ -11428,22 +11423,22 @@ fn.prototype.interfaces_ = function() {
11428
11423
  fn.prototype.getClass = function() {
11429
11424
  return fn;
11430
11425
  };
11431
- var bn = function() {
11426
+ var Pn = function() {
11432
11427
  this._nodeMap = new Yt(), this.edge = null;
11433
11428
  var t = arguments[0];
11434
11429
  this.edge = t;
11435
11430
  };
11436
- bn.prototype.print = function(t) {
11431
+ Pn.prototype.print = function(t) {
11437
11432
  t.println("Intersections:");
11438
11433
  for (var e = this.iterator(); e.hasNext(); ) {
11439
11434
  var n = e.next();
11440
11435
  n.print(t);
11441
11436
  }
11442
11437
  };
11443
- bn.prototype.iterator = function() {
11438
+ Pn.prototype.iterator = function() {
11444
11439
  return this._nodeMap.values().iterator();
11445
11440
  };
11446
- bn.prototype.addSplitEdges = function(t) {
11441
+ Pn.prototype.addSplitEdges = function(t) {
11447
11442
  var e = this;
11448
11443
  this.addEndpoints();
11449
11444
  for (var n = this.iterator(), i = n.next(); n.hasNext(); ) {
@@ -11451,11 +11446,11 @@ bn.prototype.addSplitEdges = function(t) {
11451
11446
  t.add(s), i = o;
11452
11447
  }
11453
11448
  };
11454
- bn.prototype.addEndpoints = function() {
11449
+ Pn.prototype.addEndpoints = function() {
11455
11450
  var t = this.edge.pts.length - 1;
11456
11451
  this.add(this.edge.pts[0], 0, 0), this.add(this.edge.pts[t], t, 0);
11457
11452
  };
11458
- bn.prototype.createSplitEdge = function(t, e) {
11453
+ Pn.prototype.createSplitEdge = function(t, e) {
11459
11454
  var n = this, i = e.segmentIndex - t.segmentIndex + 2, o = this.edge.pts[e.segmentIndex], s = e.dist > 0 || !e.coord.equals2D(o);
11460
11455
  s || i--;
11461
11456
  var a = new Array(i).fill(null), u = 0;
@@ -11464,11 +11459,11 @@ bn.prototype.createSplitEdge = function(t, e) {
11464
11459
  a[u++] = n.edge.pts[l];
11465
11460
  return s && (a[u] = e.coord), new Bo(a, new tt(this.edge._label));
11466
11461
  };
11467
- bn.prototype.add = function(t, e, n) {
11462
+ Pn.prototype.add = function(t, e, n) {
11468
11463
  var i = new fn(t, e, n), o = this._nodeMap.get(i);
11469
11464
  return o !== null ? o : (this._nodeMap.put(i, i), i);
11470
11465
  };
11471
- bn.prototype.isIntersection = function(t) {
11466
+ Pn.prototype.isIntersection = function(t) {
11472
11467
  for (var e = this.iterator(); e.hasNext(); ) {
11473
11468
  var n = e.next();
11474
11469
  if (n.coord.equals(t))
@@ -11476,25 +11471,25 @@ bn.prototype.isIntersection = function(t) {
11476
11471
  }
11477
11472
  return !1;
11478
11473
  };
11479
- bn.prototype.interfaces_ = function() {
11474
+ Pn.prototype.interfaces_ = function() {
11480
11475
  return [];
11481
11476
  };
11482
- bn.prototype.getClass = function() {
11483
- return bn;
11477
+ Pn.prototype.getClass = function() {
11478
+ return Pn;
11484
11479
  };
11485
- var Lr = function() {
11480
+ var Pr = function() {
11486
11481
  };
11487
- Lr.prototype.getChainStartIndices = function(t) {
11482
+ Pr.prototype.getChainStartIndices = function(t) {
11488
11483
  var e = this, n = 0, i = new L();
11489
11484
  i.add(new on(n));
11490
11485
  do {
11491
11486
  var o = e.findChainEnd(t, n);
11492
11487
  i.add(new on(o)), n = o;
11493
11488
  } while (n < t.length - 1);
11494
- var s = Lr.toIntArray(i);
11489
+ var s = Pr.toIntArray(i);
11495
11490
  return s;
11496
11491
  };
11497
- Lr.prototype.findChainEnd = function(t, e) {
11492
+ Pr.prototype.findChainEnd = function(t, e) {
11498
11493
  for (var n = nt.quadrant(t[e], t[e + 1]), i = e + 1; i < t.length; ) {
11499
11494
  var o = nt.quadrant(t[i - 1], t[i]);
11500
11495
  if (o !== n)
@@ -11503,13 +11498,13 @@ Lr.prototype.findChainEnd = function(t, e) {
11503
11498
  }
11504
11499
  return i - 1;
11505
11500
  };
11506
- Lr.prototype.interfaces_ = function() {
11501
+ Pr.prototype.interfaces_ = function() {
11507
11502
  return [];
11508
11503
  };
11509
- Lr.prototype.getClass = function() {
11510
- return Lr;
11504
+ Pr.prototype.getClass = function() {
11505
+ return Pr;
11511
11506
  };
11512
- Lr.toIntArray = function(t) {
11507
+ Pr.toIntArray = function(t) {
11513
11508
  for (var e = new Array(t.size()).fill(null), n = 0; n < e.length; n++)
11514
11509
  e[n] = t.get(n).intValue();
11515
11510
  return e;
@@ -11518,7 +11513,7 @@ var Kn = function() {
11518
11513
  this.e = null, this.pts = null, this.startIndex = null, this.env1 = new T(), this.env2 = new T();
11519
11514
  var t = arguments[0];
11520
11515
  this.e = t, this.pts = t.getCoordinates();
11521
- var e = new Lr();
11516
+ var e = new Pr();
11522
11517
  this.startIndex = e.getChainStartIndices(this.pts);
11523
11518
  };
11524
11519
  Kn.prototype.getCoordinates = function() {
@@ -11560,7 +11555,7 @@ Kn.prototype.interfaces_ = function() {
11560
11555
  Kn.prototype.getClass = function() {
11561
11556
  return Kn;
11562
11557
  };
11563
- var Gt = function r() {
11558
+ var kt = function r() {
11564
11559
  var t = this;
11565
11560
  this._depth = Array(2).fill().map(function() {
11566
11561
  return Array(3);
@@ -11569,29 +11564,29 @@ var Gt = function r() {
11569
11564
  for (var n = 0; n < 3; n++)
11570
11565
  t._depth[e][n] = r.NULL_VALUE;
11571
11566
  }, Eu = { NULL_VALUE: { configurable: !0 } };
11572
- Gt.prototype.getDepth = function(t, e) {
11567
+ kt.prototype.getDepth = function(t, e) {
11573
11568
  return this._depth[t][e];
11574
11569
  };
11575
- Gt.prototype.setDepth = function(t, e, n) {
11570
+ kt.prototype.setDepth = function(t, e, n) {
11576
11571
  this._depth[t][e] = n;
11577
11572
  };
11578
- Gt.prototype.isNull = function() {
11573
+ kt.prototype.isNull = function() {
11579
11574
  var t = this;
11580
11575
  if (arguments.length === 0) {
11581
11576
  for (var e = 0; e < 2; e++)
11582
11577
  for (var n = 0; n < 3; n++)
11583
- if (t._depth[e][n] !== Gt.NULL_VALUE)
11578
+ if (t._depth[e][n] !== kt.NULL_VALUE)
11584
11579
  return !1;
11585
11580
  return !0;
11586
11581
  } else if (arguments.length === 1) {
11587
11582
  var i = arguments[0];
11588
- return this._depth[i][1] === Gt.NULL_VALUE;
11583
+ return this._depth[i][1] === kt.NULL_VALUE;
11589
11584
  } else if (arguments.length === 2) {
11590
11585
  var o = arguments[0], s = arguments[1];
11591
- return this._depth[o][s] === Gt.NULL_VALUE;
11586
+ return this._depth[o][s] === kt.NULL_VALUE;
11592
11587
  }
11593
11588
  };
11594
- Gt.prototype.normalize = function() {
11589
+ kt.prototype.normalize = function() {
11595
11590
  for (var t = this, e = 0; e < 2; e++)
11596
11591
  if (!t.isNull(e)) {
11597
11592
  var n = t._depth[e][1];
@@ -11602,44 +11597,44 @@ Gt.prototype.normalize = function() {
11602
11597
  }
11603
11598
  }
11604
11599
  };
11605
- Gt.prototype.getDelta = function(t) {
11600
+ kt.prototype.getDelta = function(t) {
11606
11601
  return this._depth[t][w.RIGHT] - this._depth[t][w.LEFT];
11607
11602
  };
11608
- Gt.prototype.getLocation = function(t, e) {
11603
+ kt.prototype.getLocation = function(t, e) {
11609
11604
  return this._depth[t][e] <= 0 ? y.EXTERIOR : y.INTERIOR;
11610
11605
  };
11611
- Gt.prototype.toString = function() {
11606
+ kt.prototype.toString = function() {
11612
11607
  return "A: " + this._depth[0][1] + "," + this._depth[0][2] + " B: " + this._depth[1][1] + "," + this._depth[1][2];
11613
11608
  };
11614
- Gt.prototype.add = function() {
11609
+ kt.prototype.add = function() {
11615
11610
  var t = this;
11616
11611
  if (arguments.length === 1)
11617
11612
  for (var e = arguments[0], n = 0; n < 2; n++)
11618
11613
  for (var i = 1; i < 3; i++) {
11619
11614
  var o = e.getLocation(n, i);
11620
- (o === y.EXTERIOR || o === y.INTERIOR) && (t.isNull(n, i) ? t._depth[n][i] = Gt.depthAtLocation(o) : t._depth[n][i] += Gt.depthAtLocation(o));
11615
+ (o === y.EXTERIOR || o === y.INTERIOR) && (t.isNull(n, i) ? t._depth[n][i] = kt.depthAtLocation(o) : t._depth[n][i] += kt.depthAtLocation(o));
11621
11616
  }
11622
11617
  else if (arguments.length === 3) {
11623
11618
  var s = arguments[0], a = arguments[1], u = arguments[2];
11624
11619
  u === y.INTERIOR && this._depth[s][a]++;
11625
11620
  }
11626
11621
  };
11627
- Gt.prototype.interfaces_ = function() {
11622
+ kt.prototype.interfaces_ = function() {
11628
11623
  return [];
11629
11624
  };
11630
- Gt.prototype.getClass = function() {
11631
- return Gt;
11625
+ kt.prototype.getClass = function() {
11626
+ return kt;
11632
11627
  };
11633
- Gt.depthAtLocation = function(t) {
11634
- return t === y.EXTERIOR ? 0 : t === y.INTERIOR ? 1 : Gt.NULL_VALUE;
11628
+ kt.depthAtLocation = function(t) {
11629
+ return t === y.EXTERIOR ? 0 : t === y.INTERIOR ? 1 : kt.NULL_VALUE;
11635
11630
  };
11636
11631
  Eu.NULL_VALUE.get = function() {
11637
11632
  return -1;
11638
11633
  };
11639
- Object.defineProperties(Gt, Eu);
11634
+ Object.defineProperties(kt, Eu);
11640
11635
  var Bo = function(r) {
11641
11636
  function t() {
11642
- if (r.call(this), this.pts = null, this._env = null, this.eiList = new bn(this), this._name = null, this._mce = null, this._isIsolated = !0, this._depth = new Gt(), this._depthDelta = 0, arguments.length === 1) {
11637
+ if (r.call(this), this.pts = null, this._env = null, this.eiList = new Pn(this), this._name = null, this._mce = null, this._isIsolated = !0, this._depth = new kt(), this._depthDelta = 0, arguments.length === 1) {
11643
11638
  var e = arguments[0];
11644
11639
  t.call(this, e, null);
11645
11640
  } else if (arguments.length === 2) {
@@ -11792,7 +11787,7 @@ $t.prototype.createEmptyResultGeometry = function() {
11792
11787
  $t.prototype.getNoder = function(t) {
11793
11788
  if (this._workingNoder !== null)
11794
11789
  return this._workingNoder;
11795
- var e = new Vs(), n = new Tr();
11790
+ var e = new Vs(), n = new Ar();
11796
11791
  return n.setPrecisionModel(t), e.setSegmentIntersector(new Se(n)), e;
11797
11792
  };
11798
11793
  $t.prototype.buffer = function(t, e) {
@@ -11852,7 +11847,7 @@ var ur = function() {
11852
11847
  };
11853
11848
  ur.prototype.rescale = function() {
11854
11849
  var t = this;
11855
- if (k(arguments[0], St))
11850
+ if (G(arguments[0], St))
11856
11851
  for (var e = arguments[0], n = e.iterator(); n.hasNext(); ) {
11857
11852
  var i = n.next();
11858
11853
  t.rescale(i.getCoordinates());
@@ -11860,12 +11855,12 @@ ur.prototype.rescale = function() {
11860
11855
  else if (arguments[0] instanceof Array) {
11861
11856
  for (var o = arguments[0], s = 0; s < o.length; s++)
11862
11857
  o[s].x = o[s].x / t._scaleFactor + t._offsetX, o[s].y = o[s].y / t._scaleFactor + t._offsetY;
11863
- o.length === 2 && o[0].equals2D(o[1]) && kt.out.println(o);
11858
+ o.length === 2 && o[0].equals2D(o[1]) && Gt.out.println(o);
11864
11859
  }
11865
11860
  };
11866
11861
  ur.prototype.scale = function() {
11867
11862
  var t = this;
11868
- if (k(arguments[0], St)) {
11863
+ if (G(arguments[0], St)) {
11869
11864
  for (var e = arguments[0], n = new L(), i = e.iterator(); i.hasNext(); ) {
11870
11865
  var o = i.next();
11871
11866
  n.add(new Et(t.scale(o.getCoordinates()), o.getData()));
@@ -11890,13 +11885,13 @@ ur.prototype.computeNodes = function(t) {
11890
11885
  this._isScaled && (e = this.scale(t)), this._noder.computeNodes(e);
11891
11886
  };
11892
11887
  ur.prototype.interfaces_ = function() {
11893
- return [Nr];
11888
+ return [wr];
11894
11889
  };
11895
11890
  ur.prototype.getClass = function() {
11896
11891
  return ur;
11897
11892
  };
11898
11893
  var hn = function() {
11899
- this._li = new Tr(), this._segStrings = null;
11894
+ this._li = new Ar(), this._segStrings = null;
11900
11895
  var t = arguments[0];
11901
11896
  this._segStrings = t;
11902
11897
  }, Iu = { fact: { configurable: !0 } };
@@ -12122,17 +12117,17 @@ Wr.prototype.getInteriorIntersections = function() {
12122
12117
  return this._interiorIntersections;
12123
12118
  };
12124
12119
  Wr.prototype.interfaces_ = function() {
12125
- return [wr];
12120
+ return [br];
12126
12121
  };
12127
12122
  Wr.prototype.getClass = function() {
12128
12123
  return Wr;
12129
12124
  };
12130
- var Pn = function() {
12125
+ var Rn = function() {
12131
12126
  this._pm = null, this._li = null, this._scaleFactor = null, this._noder = null, this._pointSnapper = null, this._nodedSegStrings = null;
12132
12127
  var t = arguments[0];
12133
- this._pm = t, this._li = new Tr(), this._li.setPrecisionModel(t), this._scaleFactor = t.getScale();
12128
+ this._pm = t, this._li = new Ar(), this._li.setPrecisionModel(t), this._scaleFactor = t.getScale();
12134
12129
  };
12135
- Pn.prototype.checkCorrectness = function(t) {
12130
+ Rn.prototype.checkCorrectness = function(t) {
12136
12131
  var e = Et.getNodedSubstrings(t), n = new hn(e);
12137
12132
  try {
12138
12133
  n.checkValid();
@@ -12144,20 +12139,20 @@ Pn.prototype.checkCorrectness = function(t) {
12144
12139
  } finally {
12145
12140
  }
12146
12141
  };
12147
- Pn.prototype.getNodedSubstrings = function() {
12142
+ Rn.prototype.getNodedSubstrings = function() {
12148
12143
  return Et.getNodedSubstrings(this._nodedSegStrings);
12149
12144
  };
12150
- Pn.prototype.snapRound = function(t, e) {
12145
+ Rn.prototype.snapRound = function(t, e) {
12151
12146
  var n = this.findInteriorIntersections(t, e);
12152
12147
  this.computeIntersectionSnaps(n), this.computeVertexSnaps(t);
12153
12148
  };
12154
- Pn.prototype.findInteriorIntersections = function(t, e) {
12149
+ Rn.prototype.findInteriorIntersections = function(t, e) {
12155
12150
  var n = new Wr(e);
12156
12151
  return this._noder.setSegmentIntersector(n), this._noder.computeNodes(t), n.getInteriorIntersections();
12157
12152
  };
12158
- Pn.prototype.computeVertexSnaps = function() {
12153
+ Rn.prototype.computeVertexSnaps = function() {
12159
12154
  var t = this;
12160
- if (k(arguments[0], St))
12155
+ if (G(arguments[0], St))
12161
12156
  for (var e = arguments[0], n = e.iterator(); n.hasNext(); ) {
12162
12157
  var i = n.next();
12163
12158
  t.computeVertexSnaps(i);
@@ -12168,20 +12163,20 @@ Pn.prototype.computeVertexSnaps = function() {
12168
12163
  l && o.addIntersection(s[a], a);
12169
12164
  }
12170
12165
  };
12171
- Pn.prototype.computeNodes = function(t) {
12166
+ Rn.prototype.computeNodes = function(t) {
12172
12167
  this._nodedSegStrings = t, this._noder = new Vs(), this._pointSnapper = new Ci(this._noder.getIndex()), this.snapRound(t, this._li);
12173
12168
  };
12174
- Pn.prototype.computeIntersectionSnaps = function(t) {
12169
+ Rn.prototype.computeIntersectionSnaps = function(t) {
12175
12170
  for (var e = this, n = t.iterator(); n.hasNext(); ) {
12176
12171
  var i = n.next(), o = new ue(i, e._scaleFactor, e._li);
12177
12172
  e._pointSnapper.snap(o);
12178
12173
  }
12179
12174
  };
12180
- Pn.prototype.interfaces_ = function() {
12181
- return [Nr];
12175
+ Rn.prototype.interfaces_ = function() {
12176
+ return [wr];
12182
12177
  };
12183
- Pn.prototype.getClass = function() {
12184
- return Pn;
12178
+ Rn.prototype.getClass = function() {
12179
+ return Rn;
12185
12180
  };
12186
12181
  var Bt = function() {
12187
12182
  if (this._argGeom = null, this._distance = null, this._bufParams = new J(), this._resultGeometry = null, this._saveException = null, arguments.length === 1) {
@@ -12191,9 +12186,9 @@ var Bt = function() {
12191
12186
  var e = arguments[0], n = arguments[1];
12192
12187
  this._argGeom = e, this._bufParams = n;
12193
12188
  }
12194
- }, Gi = { CAP_ROUND: { configurable: !0 }, CAP_BUTT: { configurable: !0 }, CAP_FLAT: { configurable: !0 }, CAP_SQUARE: { configurable: !0 }, MAX_PRECISION_DIGITS: { configurable: !0 } };
12189
+ }, ki = { CAP_ROUND: { configurable: !0 }, CAP_BUTT: { configurable: !0 }, CAP_FLAT: { configurable: !0 }, CAP_SQUARE: { configurable: !0 }, MAX_PRECISION_DIGITS: { configurable: !0 } };
12195
12190
  Bt.prototype.bufferFixedPrecision = function(t) {
12196
- var e = new ur(new Pn(new Z(1)), t.getScale()), n = new $t(this._bufParams);
12191
+ var e = new ur(new Rn(new Z(1)), t.getScale()), n = new $t(this._bufParams);
12197
12192
  n.setWorkingPrecisionModel(t), n.setNoder(e), this._resultGeometry = n.buffer(this._argGeom, this._distance);
12198
12193
  };
12199
12194
  Bt.prototype.bufferReducedPrecision = function() {
@@ -12256,12 +12251,12 @@ Bt.bufferOp = function() {
12256
12251
  var t = arguments[0], e = arguments[1], n = new Bt(t), i = n.getResultGeometry(e);
12257
12252
  return i;
12258
12253
  } else if (arguments.length === 3) {
12259
- if (Number.isInteger(arguments[2]) && arguments[0] instanceof G && typeof arguments[1] == "number") {
12254
+ if (Number.isInteger(arguments[2]) && arguments[0] instanceof k && typeof arguments[1] == "number") {
12260
12255
  var o = arguments[0], s = arguments[1], a = arguments[2], u = new Bt(o);
12261
12256
  u.setQuadrantSegments(a);
12262
12257
  var l = u.getResultGeometry(s);
12263
12258
  return l;
12264
- } else if (arguments[2] instanceof J && arguments[0] instanceof G && typeof arguments[1] == "number") {
12259
+ } else if (arguments[2] instanceof J && arguments[0] instanceof k && typeof arguments[1] == "number") {
12265
12260
  var c = arguments[0], f = arguments[1], h = arguments[2], g = new Bt(c, h), p = g.getResultGeometry(f);
12266
12261
  return p;
12267
12262
  }
@@ -12276,22 +12271,22 @@ Bt.precisionScaleFactor = function(t, e, n) {
12276
12271
  var i = t.getEnvelopeInternal(), o = Ce.max(Math.abs(i.getMaxX()), Math.abs(i.getMaxY()), Math.abs(i.getMinX()), Math.abs(i.getMinY())), s = e > 0 ? e : 0, a = o + 2 * s, u = Math.trunc(Math.log(a) / Math.log(10) + 1), l = n - u, c = Math.pow(10, l);
12277
12272
  return c;
12278
12273
  };
12279
- Gi.CAP_ROUND.get = function() {
12274
+ ki.CAP_ROUND.get = function() {
12280
12275
  return J.CAP_ROUND;
12281
12276
  };
12282
- Gi.CAP_BUTT.get = function() {
12277
+ ki.CAP_BUTT.get = function() {
12283
12278
  return J.CAP_FLAT;
12284
12279
  };
12285
- Gi.CAP_FLAT.get = function() {
12280
+ ki.CAP_FLAT.get = function() {
12286
12281
  return J.CAP_FLAT;
12287
12282
  };
12288
- Gi.CAP_SQUARE.get = function() {
12283
+ ki.CAP_SQUARE.get = function() {
12289
12284
  return J.CAP_SQUARE;
12290
12285
  };
12291
- Gi.MAX_PRECISION_DIGITS.get = function() {
12286
+ ki.MAX_PRECISION_DIGITS.get = function() {
12292
12287
  return 12;
12293
12288
  };
12294
- Object.defineProperties(Bt, Gi);
12289
+ Object.defineProperties(Bt, ki);
12295
12290
  var Kt = function() {
12296
12291
  this._pt = [new v(), new v()], this._distance = V.NaN, this._isNull = !0;
12297
12292
  };
@@ -12345,15 +12340,15 @@ Kt.prototype.interfaces_ = function() {
12345
12340
  Kt.prototype.getClass = function() {
12346
12341
  return Kt;
12347
12342
  };
12348
- var En = function() {
12343
+ var In = function() {
12349
12344
  };
12350
- En.prototype.interfaces_ = function() {
12345
+ In.prototype.interfaces_ = function() {
12351
12346
  return [];
12352
12347
  };
12353
- En.prototype.getClass = function() {
12354
- return En;
12348
+ In.prototype.getClass = function() {
12349
+ return In;
12355
12350
  };
12356
- En.computeDistance = function() {
12351
+ In.computeDistance = function() {
12357
12352
  if (arguments[2] instanceof Kt && arguments[0] instanceof pt && arguments[1] instanceof v)
12358
12353
  for (var t = arguments[0], e = arguments[1], n = arguments[2], i = t.getCoordinates(), o = new M(), s = 0; s < i.length - 1; s++) {
12359
12354
  o.setCoordinates(i[s], i[s + 1]);
@@ -12362,19 +12357,19 @@ En.computeDistance = function() {
12362
12357
  }
12363
12358
  else if (arguments[2] instanceof Kt && arguments[0] instanceof Pt && arguments[1] instanceof v) {
12364
12359
  var u = arguments[0], l = arguments[1], c = arguments[2];
12365
- En.computeDistance(u.getExteriorRing(), l, c);
12360
+ In.computeDistance(u.getExteriorRing(), l, c);
12366
12361
  for (var f = 0; f < u.getNumInteriorRing(); f++)
12367
- En.computeDistance(u.getInteriorRingN(f), l, c);
12368
- } else if (arguments[2] instanceof Kt && arguments[0] instanceof G && arguments[1] instanceof v) {
12362
+ In.computeDistance(u.getInteriorRingN(f), l, c);
12363
+ } else if (arguments[2] instanceof Kt && arguments[0] instanceof k && arguments[1] instanceof v) {
12369
12364
  var h = arguments[0], g = arguments[1], p = arguments[2];
12370
12365
  if (h instanceof pt)
12371
- En.computeDistance(h, g, p);
12366
+ In.computeDistance(h, g, p);
12372
12367
  else if (h instanceof Pt)
12373
- En.computeDistance(h, g, p);
12368
+ In.computeDistance(h, g, p);
12374
12369
  else if (h instanceof te)
12375
12370
  for (var m = h, d = 0; d < m.getNumGeometries(); d++) {
12376
12371
  var _ = m.getGeometryN(d);
12377
- En.computeDistance(_, g, p);
12372
+ In.computeDistance(_, g, p);
12378
12373
  }
12379
12374
  else
12380
12375
  p.setMinimum(h.getCoordinate(), g);
@@ -12383,28 +12378,28 @@ En.computeDistance = function() {
12383
12378
  x.setMinimum(S, C);
12384
12379
  }
12385
12380
  };
12386
- var br = function(t) {
12381
+ var Rr = function(t) {
12387
12382
  this._maxPtDist = new Kt(), this._inputGeom = t || null;
12388
12383
  }, Us = { MaxPointDistanceFilter: { configurable: !0 }, MaxMidpointDistanceFilter: { configurable: !0 } };
12389
- br.prototype.computeMaxMidpointDistance = function(t) {
12384
+ Rr.prototype.computeMaxMidpointDistance = function(t) {
12390
12385
  var e = new lr(this._inputGeom);
12391
12386
  t.apply(e), this._maxPtDist.setMaximum(e.getMaxPointDistance());
12392
12387
  };
12393
- br.prototype.computeMaxVertexDistance = function(t) {
12388
+ Rr.prototype.computeMaxVertexDistance = function(t) {
12394
12389
  var e = new jr(this._inputGeom);
12395
12390
  t.apply(e), this._maxPtDist.setMaximum(e.getMaxPointDistance());
12396
12391
  };
12397
- br.prototype.findDistance = function(t) {
12392
+ Rr.prototype.findDistance = function(t) {
12398
12393
  return this.computeMaxVertexDistance(t), this.computeMaxMidpointDistance(t), this._maxPtDist.getDistance();
12399
12394
  };
12400
- br.prototype.getDistancePoints = function() {
12395
+ Rr.prototype.getDistancePoints = function() {
12401
12396
  return this._maxPtDist;
12402
12397
  };
12403
- br.prototype.interfaces_ = function() {
12398
+ Rr.prototype.interfaces_ = function() {
12404
12399
  return [];
12405
12400
  };
12406
- br.prototype.getClass = function() {
12407
- return br;
12401
+ Rr.prototype.getClass = function() {
12402
+ return Rr;
12408
12403
  };
12409
12404
  Us.MaxPointDistanceFilter.get = function() {
12410
12405
  return jr;
@@ -12412,18 +12407,18 @@ Us.MaxPointDistanceFilter.get = function() {
12412
12407
  Us.MaxMidpointDistanceFilter.get = function() {
12413
12408
  return lr;
12414
12409
  };
12415
- Object.defineProperties(br, Us);
12410
+ Object.defineProperties(Rr, Us);
12416
12411
  var jr = function(t) {
12417
12412
  this._maxPtDist = new Kt(), this._minPtDist = new Kt(), this._geom = t || null;
12418
12413
  };
12419
12414
  jr.prototype.filter = function(t) {
12420
- this._minPtDist.initialize(), En.computeDistance(this._geom, t, this._minPtDist), this._maxPtDist.setMaximum(this._minPtDist);
12415
+ this._minPtDist.initialize(), In.computeDistance(this._geom, t, this._minPtDist), this._maxPtDist.setMaximum(this._minPtDist);
12421
12416
  };
12422
12417
  jr.prototype.getMaxPointDistance = function() {
12423
12418
  return this._maxPtDist;
12424
12419
  };
12425
12420
  jr.prototype.interfaces_ = function() {
12426
- return [Nn];
12421
+ return [Sn];
12427
12422
  };
12428
12423
  jr.prototype.getClass = function() {
12429
12424
  return jr;
@@ -12435,7 +12430,7 @@ lr.prototype.filter = function(t, e) {
12435
12430
  if (e === 0)
12436
12431
  return null;
12437
12432
  var n = t.getCoordinate(e - 1), i = t.getCoordinate(e), o = new v((n.x + i.x) / 2, (n.y + i.y) / 2);
12438
- this._minPtDist.initialize(), En.computeDistance(this._geom, o, this._minPtDist), this._maxPtDist.setMaximum(this._minPtDist);
12433
+ this._minPtDist.initialize(), In.computeDistance(this._geom, o, this._minPtDist), this._maxPtDist.setMaximum(this._minPtDist);
12439
12434
  };
12440
12435
  lr.prototype.isDone = function() {
12441
12436
  return !1;
@@ -12483,7 +12478,7 @@ var Ft = function() {
12483
12478
  }
12484
12479
  };
12485
12480
  Ft.prototype.filter = function(t) {
12486
- if (this._isForcedToLineString && t instanceof Sn) {
12481
+ if (this._isForcedToLineString && t instanceof wn) {
12487
12482
  var e = t.getFactory().createLineString(t.getCoordinateSequence());
12488
12483
  return this._lines.add(e), null;
12489
12484
  }
@@ -12512,27 +12507,27 @@ Ft.getLines = function() {
12512
12507
  var t = arguments[0];
12513
12508
  return Ft.getLines(t, !1);
12514
12509
  } else if (arguments.length === 2) {
12515
- if (k(arguments[0], St) && k(arguments[1], St)) {
12510
+ if (G(arguments[0], St) && G(arguments[1], St)) {
12516
12511
  for (var e = arguments[0], n = arguments[1], i = e.iterator(); i.hasNext(); ) {
12517
12512
  var o = i.next();
12518
12513
  Ft.getLines(o, n);
12519
12514
  }
12520
12515
  return n;
12521
- } else if (arguments[0] instanceof G && typeof arguments[1] == "boolean") {
12516
+ } else if (arguments[0] instanceof k && typeof arguments[1] == "boolean") {
12522
12517
  var s = arguments[0], a = arguments[1], u = new L();
12523
12518
  return s.apply(new Ft(u, a)), u;
12524
- } else if (arguments[0] instanceof G && k(arguments[1], St)) {
12519
+ } else if (arguments[0] instanceof k && G(arguments[1], St)) {
12525
12520
  var l = arguments[0], c = arguments[1];
12526
12521
  return l instanceof pt ? c.add(l) : l.apply(new Ft(c)), c;
12527
12522
  }
12528
12523
  } else if (arguments.length === 3) {
12529
- if (typeof arguments[2] == "boolean" && k(arguments[0], St) && k(arguments[1], St)) {
12524
+ if (typeof arguments[2] == "boolean" && G(arguments[0], St) && G(arguments[1], St)) {
12530
12525
  for (var f = arguments[0], h = arguments[1], g = arguments[2], p = f.iterator(); p.hasNext(); ) {
12531
12526
  var m = p.next();
12532
12527
  Ft.getLines(m, h, g);
12533
12528
  }
12534
12529
  return h;
12535
- } else if (typeof arguments[2] == "boolean" && arguments[0] instanceof G && k(arguments[1], St)) {
12530
+ } else if (typeof arguments[2] == "boolean" && arguments[0] instanceof k && G(arguments[1], St)) {
12536
12531
  var d = arguments[0], _ = arguments[1], I = arguments[2];
12537
12532
  return d.apply(new Ft(_, I)), _;
12538
12533
  }
@@ -12593,18 +12588,18 @@ Ye.prototype.computeLocation = function(t, e) {
12593
12588
  this.updateLocationInfo(this.locateInternal(t, e));
12594
12589
  else if (e instanceof Pt)
12595
12590
  this.updateLocationInfo(this.locateInternal(t, e));
12596
- else if (e instanceof xr)
12591
+ else if (e instanceof Sr)
12597
12592
  for (var i = e, o = 0; o < i.getNumGeometries(); o++) {
12598
12593
  var s = i.getGeometryN(o);
12599
12594
  n.updateLocationInfo(n.locateInternal(t, s));
12600
12595
  }
12601
- else if (e instanceof Cn)
12596
+ else if (e instanceof xn)
12602
12597
  for (var a = e, u = 0; u < a.getNumGeometries(); u++) {
12603
12598
  var l = a.getGeometryN(u);
12604
12599
  n.updateLocationInfo(n.locateInternal(t, l));
12605
12600
  }
12606
12601
  else if (e instanceof te)
12607
- for (var c = new xn(e); c.hasNext(); ) {
12602
+ for (var c = new Nn(e); c.hasNext(); ) {
12608
12603
  var f = c.next();
12609
12604
  f !== e && n.computeLocation(t, f);
12610
12605
  }
@@ -12712,7 +12707,7 @@ zt.prototype.computeContainmentDistance = function() {
12712
12707
  return this._minDistanceLocation[o] = i[0], this._minDistanceLocation[n] = i[1], null;
12713
12708
  }
12714
12709
  } else if (arguments.length === 3) {
12715
- if (arguments[2] instanceof Array && k(arguments[0], ke) && k(arguments[1], ke)) {
12710
+ if (arguments[2] instanceof Array && G(arguments[0], Ge) && G(arguments[1], Ge)) {
12716
12711
  for (var u = arguments[0], l = arguments[1], c = arguments[2], f = 0; f < u.size(); f++)
12717
12712
  for (var h = u.get(f), g = 0; g < l.size(); g++)
12718
12713
  if (t.computeContainmentDistance(h, l.get(g), c), t._minDistance <= t._terminateDistance)
@@ -12905,7 +12900,7 @@ tn.computeDistance = function() {
12905
12900
  tn.computeDistance(u.getExteriorRing(), l, c);
12906
12901
  for (var f = 0; f < u.getNumInteriorRing(); f++)
12907
12902
  tn.computeDistance(u.getInteriorRingN(f), l, c);
12908
- } else if (arguments[2] instanceof Xt && arguments[0] instanceof G && arguments[1] instanceof v) {
12903
+ } else if (arguments[2] instanceof Xt && arguments[0] instanceof k && arguments[1] instanceof v) {
12909
12904
  var h = arguments[0], g = arguments[1], p = arguments[2];
12910
12905
  if (h instanceof pt)
12911
12906
  tn.computeDistance(h, g, p);
@@ -12986,7 +12981,7 @@ Qr.prototype.getMaxPointDistance = function() {
12986
12981
  return this._maxPtDist;
12987
12982
  };
12988
12983
  Qr.prototype.interfaces_ = function() {
12989
- return [Nn];
12984
+ return [Sn];
12990
12985
  };
12991
12986
  Qr.prototype.getClass = function() {
12992
12987
  return Qr;
@@ -13033,10 +13028,10 @@ he.prototype.checkMaximumDistance = function(t, e, n) {
13033
13028
  };
13034
13029
  he.prototype.isValid = function() {
13035
13030
  var t = Math.abs(this._bufDistance), e = he.MAX_DISTANCE_DIFF_FRAC * t;
13036
- 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 && kt.out.println("Min Dist= " + this._minDistanceFound + " err= " + (1 - this._minDistanceFound / this._bufDistance) + " Max Dist= " + this._maxDistanceFound + " err= " + (this._maxDistanceFound / this._bufDistance - 1)), this._isValid);
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);
13037
13032
  };
13038
13033
  he.prototype.checkNegativeValid = function() {
13039
- if (!(this._input instanceof Pt || this._input instanceof Cn || this._input instanceof te))
13034
+ if (!(this._input instanceof Pt || this._input instanceof xn || this._input instanceof te))
13040
13035
  return null;
13041
13036
  var t = this.getPolygonLines(this._input);
13042
13037
  if (this.checkMinimumDistance(t, this._result, this._minValidDistance), !this._isValid)
@@ -13111,7 +13106,7 @@ Vt.prototype.checkArea = function() {
13111
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");
13112
13107
  };
13113
13108
  Vt.prototype.checkPolygonal = function() {
13114
- this._result instanceof Pt || this._result instanceof Cn || (this._isValid = !1), this._errorMsg = "Result is not polygonal", this._errorIndicator = this._result, this.report("Polygonal");
13109
+ this._result instanceof Pt || this._result instanceof xn || (this._isValid = !1), this._errorMsg = "Result is not polygonal", this._errorIndicator = this._result, this.report("Polygonal");
13115
13110
  };
13116
13111
  Vt.prototype.getErrorIndicator = function() {
13117
13112
  return this._errorIndicator;
@@ -13127,7 +13122,7 @@ Vt.prototype.checkExpectedEmpty = function() {
13127
13122
  Vt.prototype.report = function(t) {
13128
13123
  if (!Vt.VERBOSE)
13129
13124
  return null;
13130
- kt.out.println("Check " + t + ": " + (this._isValid ? "passed" : "FAILED"));
13125
+ Gt.out.println("Check " + t + ": " + (this._isValid ? "passed" : "FAILED"));
13131
13126
  };
13132
13127
  Vt.prototype.getErrorMessage = function() {
13133
13128
  return this._errorMsg;
@@ -13183,7 +13178,7 @@ gn.prototype.toString = function() {
13183
13178
  return ze.toLineString(new yt(this._pts));
13184
13179
  };
13185
13180
  gn.prototype.interfaces_ = function() {
13186
- return [Ln];
13181
+ return [bn];
13187
13182
  };
13188
13183
  gn.prototype.getClass = function() {
13189
13184
  return gn;
@@ -13235,7 +13230,7 @@ Dt.prototype.isDone = function() {
13235
13230
  return this._findAllIntersections ? !1 : this._interiorIntersection !== null;
13236
13231
  };
13237
13232
  Dt.prototype.interfaces_ = function() {
13238
- return [wr];
13233
+ return [br];
13239
13234
  };
13240
13235
  Dt.prototype.getClass = function() {
13241
13236
  return Dt;
@@ -13252,7 +13247,7 @@ Dt.createIntersectionCounter = function(t) {
13252
13247
  return e.setFindAllIntersections(!0), e.setKeepIntersections(!1), e;
13253
13248
  };
13254
13249
  var He = function() {
13255
- this._li = new Tr(), 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;
13256
13251
  var t = arguments[0];
13257
13252
  this._segStrings = t;
13258
13253
  };
@@ -13296,29 +13291,29 @@ He.computeIntersections = function(t) {
13296
13291
  var e = new He(t);
13297
13292
  return e.setFindAllIntersections(!0), e.isValid(), e.getIntersections();
13298
13293
  };
13299
- var Pr = function r() {
13294
+ var Or = function r() {
13300
13295
  this._nv = null;
13301
13296
  var t = arguments[0];
13302
13297
  this._nv = new He(r.toSegmentStrings(t));
13303
13298
  };
13304
- Pr.prototype.checkValid = function() {
13299
+ Or.prototype.checkValid = function() {
13305
13300
  this._nv.checkValid();
13306
13301
  };
13307
- Pr.prototype.interfaces_ = function() {
13302
+ Or.prototype.interfaces_ = function() {
13308
13303
  return [];
13309
13304
  };
13310
- Pr.prototype.getClass = function() {
13311
- return Pr;
13305
+ Or.prototype.getClass = function() {
13306
+ return Or;
13312
13307
  };
13313
- Pr.toSegmentStrings = function(t) {
13308
+ Or.toSegmentStrings = function(t) {
13314
13309
  for (var e = new L(), n = t.iterator(); n.hasNext(); ) {
13315
13310
  var i = n.next();
13316
13311
  e.add(new gn(i.getCoordinates(), i));
13317
13312
  }
13318
13313
  return e;
13319
13314
  };
13320
- Pr.checkValid = function(t) {
13321
- var e = new Pr(t);
13315
+ Or.checkValid = function(t) {
13316
+ var e = new Or(t);
13322
13317
  e.checkValid();
13323
13318
  };
13324
13319
  var Jr = function(t) {
@@ -13438,10 +13433,10 @@ le.prototype.transformPoint = function(t, e) {
13438
13433
  };
13439
13434
  le.prototype.transformPolygon = function(t, e) {
13440
13435
  var n = this, i = !0, o = this.transformLinearRing(t.getExteriorRing(), t);
13441
- (o === null || !(o instanceof Sn) || o.isEmpty()) && (i = !1);
13436
+ (o === null || !(o instanceof wn) || o.isEmpty()) && (i = !1);
13442
13437
  for (var s = new L(), a = 0; a < t.getNumInteriorRing(); a++) {
13443
13438
  var u = n.transformLinearRing(t.getInteriorRingN(a), t);
13444
- u === null || u.isEmpty() || (u instanceof Sn || (i = !1), s.add(u));
13439
+ u === null || u.isEmpty() || (u instanceof wn || (i = !1), s.add(u));
13445
13440
  }
13446
13441
  if (i)
13447
13442
  return this._factory.createPolygon(o, s.toArray([]));
@@ -13496,15 +13491,15 @@ le.prototype.transform = function(t) {
13496
13491
  return this.transformPoint(t, null);
13497
13492
  if (t instanceof yi)
13498
13493
  return this.transformMultiPoint(t, null);
13499
- if (t instanceof Sn)
13494
+ if (t instanceof wn)
13500
13495
  return this.transformLinearRing(t, null);
13501
13496
  if (t instanceof pt)
13502
13497
  return this.transformLineString(t, null);
13503
- if (t instanceof xr)
13498
+ if (t instanceof Sr)
13504
13499
  return this.transformMultiLineString(t, null);
13505
13500
  if (t instanceof Pt)
13506
13501
  return this.transformPolygon(t, null);
13507
- if (t instanceof Cn)
13502
+ if (t instanceof xn)
13508
13503
  return this.transformMultiPolygon(t, null);
13509
13504
  if (t instanceof te)
13510
13505
  return this.transformGeometryCollection(t, null);
@@ -13523,7 +13518,7 @@ le.prototype.interfaces_ = function() {
13523
13518
  le.prototype.getClass = function() {
13524
13519
  return le;
13525
13520
  };
13526
- var Rn = function r() {
13521
+ var On = function r() {
13527
13522
  if (this._snapTolerance = 0, this._srcPts = null, this._seg = new M(), this._allowSnappingToSourceVertices = !1, this._isClosed = !1, arguments[0] instanceof pt && typeof arguments[1] == "number") {
13528
13523
  var t = arguments[0], e = arguments[1];
13529
13524
  r.call(this, t.getCoordinates(), e);
@@ -13532,13 +13527,13 @@ var Rn = function r() {
13532
13527
  this._srcPts = n, this._isClosed = r.isClosed(n), this._snapTolerance = i;
13533
13528
  }
13534
13529
  };
13535
- Rn.prototype.snapVertices = function(t, e) {
13530
+ On.prototype.snapVertices = function(t, e) {
13536
13531
  for (var n = this, i = this._isClosed ? t.size() - 1 : t.size(), o = 0; o < i; o++) {
13537
13532
  var s = t.get(o), a = n.findSnapForVertex(s, e);
13538
13533
  a !== null && (t.set(o, new v(a)), o === 0 && n._isClosed && t.set(t.size() - 1, new v(a)));
13539
13534
  }
13540
13535
  };
13541
- Rn.prototype.findSnapForVertex = function(t, e) {
13536
+ On.prototype.findSnapForVertex = function(t, e) {
13542
13537
  for (var n = this, i = 0; i < e.length; i++) {
13543
13538
  if (t.equals2D(e[i]))
13544
13539
  return null;
@@ -13547,13 +13542,13 @@ Rn.prototype.findSnapForVertex = function(t, e) {
13547
13542
  }
13548
13543
  return null;
13549
13544
  };
13550
- Rn.prototype.snapTo = function(t) {
13545
+ On.prototype.snapTo = function(t) {
13551
13546
  var e = new go(this._srcPts);
13552
13547
  this.snapVertices(e, t), this.snapSegments(e, t);
13553
13548
  var n = e.toCoordinateArray();
13554
13549
  return n;
13555
13550
  };
13556
- Rn.prototype.snapSegments = function(t, e) {
13551
+ On.prototype.snapSegments = function(t, e) {
13557
13552
  var n = this;
13558
13553
  if (e.length === 0)
13559
13554
  return null;
@@ -13564,7 +13559,7 @@ Rn.prototype.snapSegments = function(t, e) {
13564
13559
  a >= 0 && t.add(a + 1, new v(s), !1);
13565
13560
  }
13566
13561
  };
13567
- Rn.prototype.findSegmentIndexToSnap = function(t, e) {
13562
+ On.prototype.findSegmentIndexToSnap = function(t, e) {
13568
13563
  for (var n = this, i = V.MAX_VALUE, o = -1, s = 0; s < e.size() - 1; s++) {
13569
13564
  if (n._seg.p0 = e.get(s), n._seg.p1 = e.get(s + 1), n._seg.p0.equals2D(t) || n._seg.p1.equals2D(t)) {
13570
13565
  if (n._allowSnappingToSourceVertices)
@@ -13576,16 +13571,16 @@ Rn.prototype.findSegmentIndexToSnap = function(t, e) {
13576
13571
  }
13577
13572
  return o;
13578
13573
  };
13579
- Rn.prototype.setAllowSnappingToSourceVertices = function(t) {
13574
+ On.prototype.setAllowSnappingToSourceVertices = function(t) {
13580
13575
  this._allowSnappingToSourceVertices = t;
13581
13576
  };
13582
- Rn.prototype.interfaces_ = function() {
13577
+ On.prototype.interfaces_ = function() {
13583
13578
  return [];
13584
13579
  };
13585
- Rn.prototype.getClass = function() {
13586
- return Rn;
13580
+ On.prototype.getClass = function() {
13581
+ return On;
13587
13582
  };
13588
- Rn.isClosed = function(t) {
13583
+ On.isClosed = function(t) {
13589
13584
  return t.length <= 1 ? !1 : t[0].equals2D(t[t.length - 1]);
13590
13585
  };
13591
13586
  var mt = function(t) {
@@ -13597,7 +13592,7 @@ mt.prototype.snapTo = function(t, e) {
13597
13592
  };
13598
13593
  mt.prototype.snapToSelf = function(t, e) {
13599
13594
  var n = this.extractTargetCoordinates(this._srcGeom), i = new Lu(t, n, !0), o = i.transform(this._srcGeom), s = o;
13600
- return e && k(s, ir) && (s = o.buffer(0)), s;
13595
+ return e && G(s, ir) && (s = o.buffer(0)), s;
13601
13596
  };
13602
13597
  mt.prototype.computeSnapTolerance = function(t) {
13603
13598
  var e = this.computeMinimumSegmentLength(t), n = e / 10;
@@ -13657,7 +13652,7 @@ var Lu = function(r) {
13657
13652
  r.call(this), this._snapTolerance = e || null, this._snapPts = n || null, this._isSelfSnap = i !== void 0 ? i : !1;
13658
13653
  }
13659
13654
  return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t.prototype.snapLine = function(n, i) {
13660
- var o = new Rn(n, this._snapTolerance);
13655
+ var o = new On(n, this._snapTolerance);
13661
13656
  return o.setAllowSnappingToSourceVertices(this._isSelfSnap), o.snapTo(i);
13662
13657
  }, t.prototype.transformCoordinates = function(n, i) {
13663
13658
  var o = n.toCoordinateArray(), s = this.snapLine(o, this._snapPts);
@@ -13757,7 +13752,7 @@ $r.prototype.getCommonCoordinate = function() {
13757
13752
  return new v(this._commonBitsX.getCommon(), this._commonBitsY.getCommon());
13758
13753
  };
13759
13754
  $r.prototype.interfaces_ = function() {
13760
- return [Nn];
13755
+ return [Sn];
13761
13756
  };
13762
13757
  $r.prototype.getClass = function() {
13763
13758
  return $r;
@@ -13803,7 +13798,7 @@ Tt.prototype.getResultGeometry = function(t) {
13803
13798
  return this.prepareResult(n);
13804
13799
  };
13805
13800
  Tt.prototype.checkValid = function(t) {
13806
- t.isValid() || kt.out.println("Snapped geometry is invalid");
13801
+ t.isValid() || Gt.out.println("Snapped geometry is invalid");
13807
13802
  };
13808
13803
  Tt.prototype.computeSnapTolerance = function() {
13809
13804
  this._snapTolerance = mt.computeOverlaySnapTolerance(this._geom[0], this._geom[1]);
@@ -13942,13 +13937,13 @@ Ws.DELETE.get = function() {
13942
13937
  return 2;
13943
13938
  };
13944
13939
  Object.defineProperties(ve, Ws);
13945
- var Go = function() {
13940
+ var ko = function() {
13946
13941
  };
13947
- Go.prototype.interfaces_ = function() {
13942
+ ko.prototype.interfaces_ = function() {
13948
13943
  return [];
13949
13944
  };
13950
- Go.prototype.getClass = function() {
13951
- return Go;
13945
+ ko.prototype.getClass = function() {
13946
+ return ko;
13952
13947
  };
13953
13948
  var Ut = function() {
13954
13949
  this._hasIntersection = !1, this._hasProper = !1, this._hasProperInterior = !1, this._properIntersectionPoint = null, this._li = null, this._includeProper = null, this._recordIsolated = null, this._isSelfIntersection = null, this._numIntersections = 0, this.numTests = 0, this._bdyNodes = null, this._isDone = !1, this._isDoneWhenProperInt = !1;
@@ -14015,7 +14010,7 @@ Ut.prototype.getClass = function() {
14015
14010
  Ut.isAdjacentSegments = function(t, e) {
14016
14011
  return Math.abs(t - e) === 1;
14017
14012
  };
14018
- var Pc = function(r) {
14013
+ var Rc = function(r) {
14019
14014
  function t() {
14020
14015
  r.call(this), this.events = new L(), this.nOverlaps = null;
14021
14016
  }
@@ -14037,10 +14032,10 @@ var Pc = function(r) {
14037
14032
  break;
14038
14033
  }
14039
14034
  } else if (arguments.length === 3) {
14040
- if (arguments[2] instanceof Ut && k(arguments[0], ke) && k(arguments[1], ke)) {
14035
+ if (arguments[2] instanceof Ut && G(arguments[0], Ge) && G(arguments[1], Ge)) {
14041
14036
  var a = arguments[0], u = arguments[1], l = arguments[2];
14042
14037
  this.addEdges(a, a), this.addEdges(u, u), this.computeIntersections(l);
14043
- } else if (typeof arguments[2] == "boolean" && k(arguments[0], ke) && arguments[1] instanceof Ut) {
14038
+ } else if (typeof arguments[2] == "boolean" && G(arguments[0], Ge) && arguments[1] instanceof Ut) {
14044
14039
  var c = arguments[0], f = arguments[1], h = arguments[2];
14045
14040
  h ? this.addEdges(c, null) : this.addEdges(c), this.computeIntersections(f);
14046
14041
  }
@@ -14075,31 +14070,31 @@ var Pc = function(r) {
14075
14070
  }, t.prototype.getClass = function() {
14076
14071
  return t;
14077
14072
  }, t;
14078
- }(Go), On = function() {
14073
+ }(ko), Dn = function() {
14079
14074
  this._min = V.POSITIVE_INFINITY, this._max = V.NEGATIVE_INFINITY;
14080
14075
  }, bu = { NodeComparator: { configurable: !0 } };
14081
- On.prototype.getMin = function() {
14076
+ Dn.prototype.getMin = function() {
14082
14077
  return this._min;
14083
14078
  };
14084
- On.prototype.intersects = function(t, e) {
14079
+ Dn.prototype.intersects = function(t, e) {
14085
14080
  return !(this._min > e || this._max < t);
14086
14081
  };
14087
- On.prototype.getMax = function() {
14082
+ Dn.prototype.getMax = function() {
14088
14083
  return this._max;
14089
14084
  };
14090
- On.prototype.toString = function() {
14085
+ Dn.prototype.toString = function() {
14091
14086
  return ze.toLineString(new v(this._min, 0), new v(this._max, 0));
14092
14087
  };
14093
- On.prototype.interfaces_ = function() {
14088
+ Dn.prototype.interfaces_ = function() {
14094
14089
  return [];
14095
14090
  };
14096
- On.prototype.getClass = function() {
14097
- return On;
14091
+ Dn.prototype.getClass = function() {
14092
+ return Dn;
14098
14093
  };
14099
14094
  bu.NodeComparator.get = function() {
14100
14095
  return lo;
14101
14096
  };
14102
- Object.defineProperties(On, bu);
14097
+ Object.defineProperties(Dn, bu);
14103
14098
  var lo = function() {
14104
14099
  };
14105
14100
  lo.prototype.compare = function(t, e) {
@@ -14112,7 +14107,7 @@ lo.prototype.interfaces_ = function() {
14112
14107
  lo.prototype.getClass = function() {
14113
14108
  return lo;
14114
14109
  };
14115
- var Rc = function(r) {
14110
+ var Oc = function(r) {
14116
14111
  function t() {
14117
14112
  r.call(this), this._item = null;
14118
14113
  var e = arguments[0], n = arguments[1], i = arguments[2];
@@ -14127,7 +14122,7 @@ var Rc = function(r) {
14127
14122
  }, t.prototype.getClass = function() {
14128
14123
  return t;
14129
14124
  }, t;
14130
- }(On), Oc = function(r) {
14125
+ }(Dn), Dc = function(r) {
14131
14126
  function t() {
14132
14127
  r.call(this), this._node1 = null, this._node2 = null;
14133
14128
  var e = arguments[0], n = arguments[1];
@@ -14144,56 +14139,56 @@ var Rc = function(r) {
14144
14139
  }, t.prototype.getClass = function() {
14145
14140
  return t;
14146
14141
  }, t;
14147
- }(On), Dn = function() {
14142
+ }(Dn), Tn = function() {
14148
14143
  this._leaves = new L(), this._root = null, this._level = 0;
14149
14144
  };
14150
- Dn.prototype.buildTree = function() {
14145
+ Tn.prototype.buildTree = function() {
14151
14146
  var t = this;
14152
- qe.sort(this._leaves, new On.NodeComparator());
14147
+ qe.sort(this._leaves, new Dn.NodeComparator());
14153
14148
  for (var e = this._leaves, n = null, i = new L(); ; ) {
14154
14149
  if (t.buildLevel(e, i), i.size() === 1)
14155
14150
  return i.get(0);
14156
14151
  n = e, e = i, i = n;
14157
14152
  }
14158
14153
  };
14159
- Dn.prototype.insert = function(t, e, n) {
14154
+ Tn.prototype.insert = function(t, e, n) {
14160
14155
  if (this._root !== null)
14161
14156
  throw new Error("Index cannot be added to once it has been queried");
14162
- this._leaves.add(new Rc(t, e, n));
14157
+ this._leaves.add(new Oc(t, e, n));
14163
14158
  };
14164
- Dn.prototype.query = function(t, e, n) {
14159
+ Tn.prototype.query = function(t, e, n) {
14165
14160
  this.init(), this._root.query(t, e, n);
14166
14161
  };
14167
- Dn.prototype.buildRoot = function() {
14162
+ Tn.prototype.buildRoot = function() {
14168
14163
  if (this._root !== null)
14169
14164
  return null;
14170
14165
  this._root = this.buildTree();
14171
14166
  };
14172
- Dn.prototype.printNode = function(t) {
14173
- kt.out.println(ze.toLineString(new v(t._min, this._level), new v(t._max, this._level)));
14167
+ Tn.prototype.printNode = function(t) {
14168
+ Gt.out.println(ze.toLineString(new v(t._min, this._level), new v(t._max, this._level)));
14174
14169
  };
14175
- Dn.prototype.init = function() {
14170
+ Tn.prototype.init = function() {
14176
14171
  if (this._root !== null)
14177
14172
  return null;
14178
14173
  this.buildRoot();
14179
14174
  };
14180
- Dn.prototype.buildLevel = function(t, e) {
14175
+ Tn.prototype.buildLevel = function(t, e) {
14181
14176
  this._level++, e.clear();
14182
14177
  for (var n = 0; n < t.size(); n += 2) {
14183
14178
  var i = t.get(n), o = n + 1 < t.size() ? t.get(n) : null;
14184
14179
  if (o === null)
14185
14180
  e.add(i);
14186
14181
  else {
14187
- var s = new Oc(t.get(n), t.get(n + 1));
14182
+ var s = new Dc(t.get(n), t.get(n + 1));
14188
14183
  e.add(s);
14189
14184
  }
14190
14185
  }
14191
14186
  };
14192
- Dn.prototype.interfaces_ = function() {
14187
+ Tn.prototype.interfaces_ = function() {
14193
14188
  return [];
14194
14189
  };
14195
- Dn.prototype.getClass = function() {
14196
- return Dn;
14190
+ Tn.prototype.getClass = function() {
14191
+ return Tn;
14197
14192
  };
14198
14193
  var xi = function() {
14199
14194
  this._items = new L();
@@ -14213,9 +14208,9 @@ xi.prototype.getClass = function() {
14213
14208
  var Ni = function() {
14214
14209
  this._index = null;
14215
14210
  var t = arguments[0];
14216
- if (!k(t, ir))
14211
+ if (!G(t, ir))
14217
14212
  throw new lt("Argument must be Polygonal");
14218
- this._index = new Rr(t);
14213
+ this._index = new Dr(t);
14219
14214
  }, js = { SegmentVisitor: { configurable: !0 }, IntervalIndexedGeometry: { configurable: !0 } };
14220
14215
  Ni.prototype.locate = function(t) {
14221
14216
  var e = new nn(t), n = new Si(e);
@@ -14231,7 +14226,7 @@ js.SegmentVisitor.get = function() {
14231
14226
  return Si;
14232
14227
  };
14233
14228
  js.IntervalIndexedGeometry.get = function() {
14234
- return Rr;
14229
+ return Dr;
14235
14230
  };
14236
14231
  Object.defineProperties(Ni, js);
14237
14232
  var Si = function() {
@@ -14249,24 +14244,24 @@ Si.prototype.interfaces_ = function() {
14249
14244
  Si.prototype.getClass = function() {
14250
14245
  return Si;
14251
14246
  };
14252
- var Rr = function() {
14253
- this._index = new Dn();
14247
+ var Dr = function() {
14248
+ this._index = new Tn();
14254
14249
  var t = arguments[0];
14255
14250
  this.init(t);
14256
14251
  };
14257
- Rr.prototype.init = function(t) {
14252
+ Dr.prototype.init = function(t) {
14258
14253
  for (var e = this, n = Ft.getLines(t), i = n.iterator(); i.hasNext(); ) {
14259
14254
  var o = i.next(), s = o.getCoordinates();
14260
14255
  e.addLine(s);
14261
14256
  }
14262
14257
  };
14263
- Rr.prototype.addLine = function(t) {
14258
+ Dr.prototype.addLine = function(t) {
14264
14259
  for (var e = this, n = 1; n < t.length; n++) {
14265
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);
14266
14261
  e._index.insert(o, s, i);
14267
14262
  }
14268
14263
  };
14269
- Rr.prototype.query = function() {
14264
+ Dr.prototype.query = function() {
14270
14265
  if (arguments.length === 2) {
14271
14266
  var t = arguments[0], e = arguments[1], n = new xi();
14272
14267
  return this._index.query(t, e, n), n.getItems();
@@ -14275,11 +14270,11 @@ Rr.prototype.query = function() {
14275
14270
  this._index.query(i, o, s);
14276
14271
  }
14277
14272
  };
14278
- Rr.prototype.interfaces_ = function() {
14273
+ Dr.prototype.interfaces_ = function() {
14279
14274
  return [];
14280
14275
  };
14281
- Rr.prototype.getClass = function() {
14282
- return Rr;
14276
+ Dr.prototype.getClass = function() {
14277
+ return Dr;
14283
14278
  };
14284
14279
  var Vi = function(r) {
14285
14280
  function t() {
@@ -14303,7 +14298,7 @@ var Vi = function(r) {
14303
14298
  } else if (arguments.length === 3) {
14304
14299
  var o = arguments[0], s = arguments[1], a = arguments[2], u = new Ut(o, !0, !1);
14305
14300
  u.setIsDoneIfProperInt(a);
14306
- var l = this.createEdgeSetIntersector(), c = this._parentGeom instanceof Sn || this._parentGeom instanceof Pt || this._parentGeom instanceof Cn, f = s || !c;
14301
+ var l = this.createEdgeSetIntersector(), c = this._parentGeom instanceof wn || this._parentGeom instanceof Pt || this._parentGeom instanceof xn, f = s || !c;
14307
14302
  return l.computeIntersections(this._edges, u, f), this.addSelfIntersectionNodes(this._argIndex), u;
14308
14303
  }
14309
14304
  }, t.prototype.computeSplitEdges = function(n) {
@@ -14375,7 +14370,7 @@ var Vi = function(r) {
14375
14370
  var s = this._nodes.addNode(i), a = s.getLabel();
14376
14371
  a === null ? s._label = new tt(n, o) : a.setLocation(n, o);
14377
14372
  }, t.prototype.createEdgeSetIntersector = function() {
14378
- return new Pc();
14373
+ return new Rc();
14379
14374
  }, t.prototype.addSelfIntersectionNodes = function(n) {
14380
14375
  for (var i = this, o = this._edges.iterator(); o.hasNext(); )
14381
14376
  for (var s = o.next(), a = s.getLabel().getLocation(n), u = s.eiList.iterator(); u.hasNext(); ) {
@@ -14387,7 +14382,7 @@ var Vi = function(r) {
14387
14382
  var n = arguments[0];
14388
14383
  if (n.isEmpty())
14389
14384
  return null;
14390
- if (n instanceof Cn && (this._useBoundaryDeterminationRule = !1), n instanceof Pt)
14385
+ if (n instanceof xn && (this._useBoundaryDeterminationRule = !1), n instanceof Pt)
14391
14386
  this.addPolygon(n);
14392
14387
  else if (n instanceof pt)
14393
14388
  this.addLineString(n);
@@ -14395,9 +14390,9 @@ var Vi = function(r) {
14395
14390
  this.addPoint(n);
14396
14391
  else if (n instanceof yi)
14397
14392
  this.addCollection(n);
14398
- else if (n instanceof xr)
14393
+ else if (n instanceof Sr)
14399
14394
  this.addCollection(n);
14400
- else if (n instanceof Cn)
14395
+ else if (n instanceof xn)
14401
14396
  this.addCollection(n);
14402
14397
  else if (n instanceof te)
14403
14398
  this.addCollection(n);
@@ -14411,7 +14406,7 @@ var Vi = function(r) {
14411
14406
  i.add(s);
14412
14407
  }
14413
14408
  }, t.prototype.locate = function(n) {
14414
- return k(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 Ni(this._parentGeom)), this._areaPtLocator.locate(n)) : this._ptLocator.locate(n, this._parentGeom);
14415
14410
  }, t.prototype.findEdge = function() {
14416
14411
  if (arguments.length === 1) {
14417
14412
  var n = arguments[0];
@@ -14426,7 +14421,7 @@ var Vi = function(r) {
14426
14421
  return n.isInBoundary(i) ? y.BOUNDARY : y.INTERIOR;
14427
14422
  }, t;
14428
14423
  }(ht), wi = function() {
14429
- if (this._li = new Tr(), this._resultPrecisionModel = null, this._arg = null, arguments.length === 1) {
14424
+ if (this._li = new Ar(), this._resultPrecisionModel = null, this._arg = null, arguments.length === 1) {
14430
14425
  var t = arguments[0];
14431
14426
  this.setComputationPrecision(t.getPrecisionModel()), this._arg = new Array(1).fill(null), this._arg[0] = new Vi(0, t);
14432
14427
  } else if (arguments.length === 2) {
@@ -14449,22 +14444,22 @@ wi.prototype.interfaces_ = function() {
14449
14444
  wi.prototype.getClass = function() {
14450
14445
  return wi;
14451
14446
  };
14452
- var Er = function() {
14447
+ var Cr = function() {
14453
14448
  };
14454
- Er.prototype.interfaces_ = function() {
14449
+ Cr.prototype.interfaces_ = function() {
14455
14450
  return [];
14456
14451
  };
14457
- Er.prototype.getClass = function() {
14458
- return Er;
14452
+ Cr.prototype.getClass = function() {
14453
+ return Cr;
14459
14454
  };
14460
- Er.map = function() {
14461
- if (arguments[0] instanceof G && k(arguments[1], Er.MapOp)) {
14455
+ Cr.map = function() {
14456
+ if (arguments[0] instanceof k && G(arguments[1], Cr.MapOp)) {
14462
14457
  for (var t = arguments[0], e = arguments[1], n = new L(), i = 0; i < t.getNumGeometries(); i++) {
14463
14458
  var o = e.map(t.getGeometryN(i));
14464
14459
  o !== null && n.add(o);
14465
14460
  }
14466
14461
  return t.getFactory().buildGeometry(n);
14467
- } else if (k(arguments[0], St) && k(arguments[1], Er.MapOp)) {
14462
+ } else if (G(arguments[0], St) && G(arguments[1], Cr.MapOp)) {
14468
14463
  for (var s = arguments[0], a = arguments[1], u = new L(), l = s.iterator(); l.hasNext(); ) {
14469
14464
  var c = l.next(), f = a.map(c);
14470
14465
  f !== null && u.add(f);
@@ -14472,7 +14467,7 @@ Er.map = function() {
14472
14467
  return u;
14473
14468
  }
14474
14469
  };
14475
- Er.MapOp = function() {
14470
+ Cr.MapOp = function() {
14476
14471
  };
14477
14472
  var U = function(r) {
14478
14473
  function t() {
@@ -14533,7 +14528,7 @@ var U = function(r) {
14533
14528
  }, t.prototype.computeOverlay = function(n) {
14534
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);
14535
14530
  var i = new L();
14536
- this._arg[0].computeSplitEdges(i), this._arg[1].computeSplitEdges(i), this.insertUniqueEdges(i), this.computeLabelsFromDepths(), this.replaceCollapsedEdges(), Pr.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();
14537
14532
  var o = new pe(this._geomFact);
14538
14533
  o.add(this._graph), this._resultPolyList = o.getPolygons();
14539
14534
  var s = new pn(this, this._geomFact, this._ptLocator);
@@ -14592,7 +14587,7 @@ U.intersection = function(r, t) {
14592
14587
  var e = t;
14593
14588
  return Jr.map(r, {
14594
14589
  interfaces_: function() {
14595
- return [Er.MapOp];
14590
+ return [Cr.MapOp];
14596
14591
  },
14597
14592
  map: function(n) {
14598
14593
  return n.intersection(e);
@@ -14725,26 +14720,26 @@ Li.prototype.interfaces_ = function() {
14725
14720
  Li.prototype.getClass = function() {
14726
14721
  return Li;
14727
14722
  };
14728
- var Or = function() {
14723
+ var Tr = function() {
14729
14724
  this._g = null, this._doLeft = !0, this._doRight = !0;
14730
14725
  var t = arguments[0];
14731
14726
  this._g = t;
14732
14727
  };
14733
- Or.prototype.extractPoints = function(t, e, n) {
14728
+ Tr.prototype.extractPoints = function(t, e, n) {
14734
14729
  for (var i = this, o = t.getCoordinates(), s = 0; s < o.length - 1; s++)
14735
14730
  i.computeOffsetPoints(o[s], o[s + 1], e, n);
14736
14731
  };
14737
- Or.prototype.setSidesToGenerate = function(t, e) {
14732
+ Tr.prototype.setSidesToGenerate = function(t, e) {
14738
14733
  this._doLeft = t, this._doRight = e;
14739
14734
  };
14740
- Or.prototype.getPoints = function(t) {
14735
+ Tr.prototype.getPoints = function(t) {
14741
14736
  for (var e = this, n = new L(), i = Ft.getLines(this._g), o = i.iterator(); o.hasNext(); ) {
14742
14737
  var s = o.next();
14743
14738
  e.extractPoints(s, t, n);
14744
14739
  }
14745
14740
  return n;
14746
14741
  };
14747
- Or.prototype.computeOffsetPoints = function(t, e, n, i) {
14742
+ Tr.prototype.computeOffsetPoints = function(t, e, n, i) {
14748
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;
14749
14744
  if (this._doLeft) {
14750
14745
  var h = new v(c - l, f + u);
@@ -14755,11 +14750,11 @@ Or.prototype.computeOffsetPoints = function(t, e, n, i) {
14755
14750
  i.add(g);
14756
14751
  }
14757
14752
  };
14758
- Or.prototype.interfaces_ = function() {
14753
+ Tr.prototype.interfaces_ = function() {
14759
14754
  return [];
14760
14755
  };
14761
- Or.prototype.getClass = function() {
14762
- return Or;
14756
+ Tr.prototype.getClass = function() {
14757
+ return Tr;
14763
14758
  };
14764
14759
  var we = function r() {
14765
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();
@@ -14767,7 +14762,7 @@ var we = function r() {
14767
14762
  this._boundaryDistanceTolerance = r.computeBoundaryDistanceTolerance(t, e), this._geom = [t, e, n], this._locFinder = [new rr(this._geom[0], this._boundaryDistanceTolerance), new rr(this._geom[1], this._boundaryDistanceTolerance), new rr(this._geom[2], this._boundaryDistanceTolerance)];
14768
14763
  }, Pu = { TOLERANCE: { configurable: !0 } };
14769
14764
  we.prototype.reportResult = function(t, e, n) {
14770
- kt.out.println("Overlay result invalid - A:" + y.toLocationSymbol(e[0]) + " B:" + y.toLocationSymbol(e[1]) + " expected:" + (n ? "i" : "e") + " actual:" + y.toLocationSymbol(e[2]));
14765
+ Gt.out.println("Overlay result invalid - A:" + y.toLocationSymbol(e[0]) + " B:" + y.toLocationSymbol(e[1]) + " expected:" + (n ? "i" : "e") + " actual:" + y.toLocationSymbol(e[2]));
14771
14766
  };
14772
14767
  we.prototype.isValid = function(t) {
14773
14768
  this.addTestPts(this._geom[0]), this.addTestPts(this._geom[1]);
@@ -14789,7 +14784,7 @@ we.prototype.checkValid = function() {
14789
14784
  }
14790
14785
  };
14791
14786
  we.prototype.addTestPts = function(t) {
14792
- var e = new Or(t);
14787
+ var e = new Tr(t);
14793
14788
  this._testCoords.addAll(e.getPoints(5 * this._boundaryDistanceTolerance));
14794
14789
  };
14795
14790
  we.prototype.isValidResult = function(t, e) {
@@ -14879,7 +14874,7 @@ var Ct = function() {
14879
14874
  Ct.prototype.reduceToGeometries = function(t) {
14880
14875
  for (var e = this, n = new L(), i = t.iterator(); i.hasNext(); ) {
14881
14876
  var o = i.next(), s = null;
14882
- k(o, ke) ? s = e.unionTree(o) : o instanceof G && (s = o), n.add(s);
14877
+ G(o, Ge) ? s = e.unionTree(o) : o instanceof k && (s = o), n.add(s);
14883
14878
  }
14884
14879
  return n;
14885
14880
  };
@@ -14971,7 +14966,7 @@ Ct.prototype.getClass = function() {
14971
14966
  return Ct;
14972
14967
  };
14973
14968
  Ct.restrictToPolygons = function(t) {
14974
- if (k(t, ir))
14969
+ if (G(t, ir))
14975
14970
  return t;
14976
14971
  var e = Xn.getPolygons(t);
14977
14972
  return e.size() === 1 ? e.get(0) : t.getFactory().createMultiPolygon(H.toPolygonArray(e));
@@ -14987,15 +14982,15 @@ Ru.STRTREE_NODE_CAPACITY.get = function() {
14987
14982
  return 4;
14988
14983
  };
14989
14984
  Object.defineProperties(Ct, Ru);
14990
- var ko = function() {
14985
+ var Go = function() {
14991
14986
  };
14992
- ko.prototype.interfaces_ = function() {
14987
+ Go.prototype.interfaces_ = function() {
14993
14988
  return [];
14994
14989
  };
14995
- ko.prototype.getClass = function() {
14996
- return ko;
14990
+ Go.prototype.getClass = function() {
14991
+ return Go;
14997
14992
  };
14998
- ko.union = function(t, e) {
14993
+ Go.union = function(t, e) {
14999
14994
  if (t.isEmpty() || e.isEmpty()) {
15000
14995
  if (t.isEmpty() && e.isEmpty())
15001
14996
  return U.createEmptyResult(U.UNION, t, e, t.getFactory());
@@ -15006,7 +15001,7 @@ ko.union = function(t, e) {
15006
15001
  }
15007
15002
  return t.checkNotGeometryCollection(t), t.checkNotGeometryCollection(e), re.overlayOp(t, e, U.UNION);
15008
15003
  };
15009
- function Mr() {
15004
+ function Fr() {
15010
15005
  return new zo();
15011
15006
  }
15012
15007
  function zo() {
@@ -15030,7 +15025,7 @@ function La(r, t, e) {
15030
15025
  var n = r.s = t + e, i = n - t, o = n - i;
15031
15026
  r.t = t - o + (e - i);
15032
15027
  }
15033
- 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, Dc = 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;
15034
15029
  function Ou(r) {
15035
15030
  return r > 1 ? 0 : r < -1 ? it : Math.acos(r);
15036
15031
  }
@@ -15092,11 +15087,11 @@ function Oa(r, t) {
15092
15087
  Ls(r[e], t, 1);
15093
15088
  t.polygonEnd();
15094
15089
  }
15095
- function Tc(r, t) {
15090
+ function Mc(r, t) {
15096
15091
  r && Pa.hasOwnProperty(r.type) ? Pa[r.type](r, t) : Vo(r, t);
15097
15092
  }
15098
- Mr();
15099
- Mr();
15093
+ Fr();
15094
+ Fr();
15100
15095
  function bs(r) {
15101
15096
  return [bi(r[1], r[0]), Pi(r[2])];
15102
15097
  }
@@ -15120,7 +15115,7 @@ function Ps(r) {
15120
15115
  var t = _o(r[0] * r[0] + r[1] * r[1] + r[2] * r[2]);
15121
15116
  r[0] /= t, r[1] /= t, r[2] /= t;
15122
15117
  }
15123
- Mr();
15118
+ Fr();
15124
15119
  function Du(r, t) {
15125
15120
  function e(n, i) {
15126
15121
  return n = r(n, i), t(n[0], n[1]);
@@ -15133,7 +15128,7 @@ function Rs(r, t) {
15133
15128
  return [r > it ? r - Qn : r < -it ? r + Qn : r, t];
15134
15129
  }
15135
15130
  Rs.invert = Rs;
15136
- function Mc(r, t, e) {
15131
+ function Ac(r, t, e) {
15137
15132
  return (r %= Qn) ? t || e ? Du(Ta(r), Ma(t, e)) : Ta(r) : t || e ? Ma(t, e) : Rs;
15138
15133
  }
15139
15134
  function Da(r) {
@@ -15162,7 +15157,7 @@ function Ma(r, t) {
15162
15157
  ];
15163
15158
  }, s;
15164
15159
  }
15165
- function Ac(r, t, e, n, i, o) {
15160
+ function Fc(r, t, e, n, i, o) {
15166
15161
  if (e) {
15167
15162
  var s = wt(t), a = Lt(t), u = n * e;
15168
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));
@@ -15194,7 +15189,7 @@ function Tu() {
15194
15189
  }
15195
15190
  };
15196
15191
  }
15197
- function Fc(r, t, e, n, i, o) {
15192
+ function Bc(r, t, e, n, i, o) {
15198
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;
15199
15194
  if (p = e - s, !(!h && p > 0)) {
15200
15195
  if (p /= h, h < 0) {
@@ -15301,7 +15296,7 @@ function Fa(r) {
15301
15296
  function Au(r, t) {
15302
15297
  return r < t ? -1 : r > t ? 1 : r >= t ? 0 : NaN;
15303
15298
  }
15304
- function Bc(r) {
15299
+ function kc(r) {
15305
15300
  return r.length === 1 && (r = Gc(r)), {
15306
15301
  left: function(t, e, n, i) {
15307
15302
  for (n == null && (n = 0), i == null && (i = t.length); n < i; ) {
@@ -15324,7 +15319,7 @@ function Gc(r) {
15324
15319
  return Au(r(t), e);
15325
15320
  };
15326
15321
  }
15327
- Bc(Au);
15322
+ kc(Au);
15328
15323
  function Fu(r) {
15329
15324
  for (var t = r.length, e, n = -1, i = 0, o, s; ++n < t; )
15330
15325
  i += r[n].length;
@@ -15334,7 +15329,7 @@ function Fu(r) {
15334
15329
  return o;
15335
15330
  }
15336
15331
  var qi = 1e9, Lo = -qi;
15337
- function kc(r, t, e, n) {
15332
+ function zc(r, t, e, n) {
15338
15333
  function i(l, c) {
15339
15334
  return r <= l && l <= e && t <= c && c <= n;
15340
15335
  }
@@ -15370,8 +15365,8 @@ function kc(r, t, e, n) {
15370
15365
  }
15371
15366
  function D() {
15372
15367
  for (var Y = 0, at = 0, Nt = g.length; at < Nt; ++at)
15373
- for (var qt = g[at], ce = 1, Ar = qt.length, mn = qt[0], Mn, fe, et = mn[0], Rt = mn[1]; ce < Ar; ++ce)
15374
- Mn = et, fe = Rt, mn = qt[ce], et = mn[0], Rt = mn[1], fe <= n ? Rt > n && (et - Mn) * (n - fe) > (Rt - fe) * (r - Mn) && ++Y : Rt <= n && (et - Mn) * (n - fe) < (Rt - fe) * (r - Mn) && --Y;
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)
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;
15375
15370
  return Y;
15376
15371
  }
15377
15372
  function R() {
@@ -15395,15 +15390,15 @@ function kc(r, t, e, n) {
15395
15390
  c.point(Y, at);
15396
15391
  else {
15397
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))];
15398
- Fc(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) ? (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);
15399
15394
  }
15400
15395
  I = Y, C = at, x = Nt;
15401
15396
  }
15402
15397
  return A;
15403
15398
  };
15404
15399
  }
15405
- var ps = Mr();
15406
- function zc(r, t) {
15400
+ var ps = Fr();
15401
+ function Vc(r, t) {
15407
15402
  var e = t[0], n = t[1], i = [Lt(e), -wt(e), 0], o = 0, s = 0;
15408
15403
  ps.reset();
15409
15404
  for (var a = 0, u = r.length; a < u; ++a)
@@ -15421,14 +15416,14 @@ function zc(r, t) {
15421
15416
  }
15422
15417
  return (o < -gt || o < gt && ps < -gt) ^ s & 1;
15423
15418
  }
15424
- Mr();
15419
+ Fr();
15425
15420
  function Ba(r) {
15426
15421
  return r;
15427
15422
  }
15428
- Mr();
15429
- Mr();
15430
- var Oi = 1 / 0, qo = Oi, co = -Oi, Xo = co, Ga = {
15431
- point: Vc,
15423
+ Fr();
15424
+ Fr();
15425
+ var Oi = 1 / 0, qo = Oi, co = -Oi, Xo = co, ka = {
15426
+ point: Uc,
15432
15427
  lineStart: Ui,
15433
15428
  lineEnd: Ui,
15434
15429
  polygonStart: Ui,
@@ -15438,10 +15433,10 @@ var Oi = 1 / 0, qo = Oi, co = -Oi, Xo = co, Ga = {
15438
15433
  return co = Xo = -(qo = Oi = 1 / 0), r;
15439
15434
  }
15440
15435
  };
15441
- function Vc(r, t) {
15436
+ function Uc(r, t) {
15442
15437
  r < Oi && (Oi = r), r > co && (co = r), t < qo && (qo = t), t > Xo && (Xo = t);
15443
15438
  }
15444
- Mr();
15439
+ Fr();
15445
15440
  function Bu(r, t, e, n) {
15446
15441
  return function(i, o) {
15447
15442
  var s = t(o), a = i.invert(n[0], n[1]), u = Tu(), l = t(u), c = !1, f, h, g, p = {
@@ -15453,8 +15448,8 @@ function Bu(r, t, e, n) {
15453
15448
  },
15454
15449
  polygonEnd: function() {
15455
15450
  p.point = m, p.lineStart = _, p.lineEnd = I, h = Fu(h);
15456
- var b = zc(f, a);
15457
- h.length ? (c || (o.polygonStart(), c = !0), Mu(h, qc, 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;
15458
15453
  },
15459
15454
  sphere: function() {
15460
15455
  o.polygonStart(), o.lineStart(), e(null, null, 1, o), o.lineEnd(), o.polygonEnd();
@@ -15494,27 +15489,27 @@ function Bu(r, t, e, n) {
15494
15489
  }
15495
15490
  return;
15496
15491
  }
15497
- D > 1 && b & 2 && A.push(A.pop().concat(A.shift())), h.push(A.filter(Uc));
15492
+ D > 1 && b & 2 && A.push(A.pop().concat(A.shift())), h.push(A.filter(qc));
15498
15493
  }
15499
15494
  }
15500
15495
  return p;
15501
15496
  };
15502
15497
  }
15503
- function Uc(r) {
15498
+ function qc(r) {
15504
15499
  return r.length > 1;
15505
15500
  }
15506
- function qc(r, t) {
15501
+ function Xc(r, t) {
15507
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]);
15508
15503
  }
15509
- const ka = Bu(
15504
+ const Ga = Bu(
15510
15505
  function() {
15511
15506
  return !0;
15512
15507
  },
15513
- Xc,
15514
- Hc,
15508
+ Yc,
15509
+ Wc,
15515
15510
  [-it, -qn]
15516
15511
  );
15517
- function Xc(r) {
15512
+ function Yc(r) {
15518
15513
  var t = NaN, e = NaN, n = NaN, i;
15519
15514
  return {
15520
15515
  lineStart: function() {
@@ -15522,7 +15517,7 @@ function Xc(r) {
15522
15517
  },
15523
15518
  point: function(o, s) {
15524
15519
  var a = o > 0 ? it : -it, u = Jt(o - t);
15525
- 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 = Yc(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;
15526
15521
  },
15527
15522
  lineEnd: function() {
15528
15523
  r.lineEnd(), t = e = NaN;
@@ -15532,11 +15527,11 @@ function Xc(r) {
15532
15527
  }
15533
15528
  };
15534
15529
  }
15535
- function Yc(r, t, e, n) {
15530
+ function Hc(r, t, e, n) {
15536
15531
  var i, o, s = Lt(r - e);
15537
- return Jt(s) > gt ? Dc((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;
15538
15533
  }
15539
- function Hc(r, t, e, n) {
15534
+ function Wc(r, t, e, n) {
15540
15535
  var i;
15541
15536
  if (r == null)
15542
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);
@@ -15546,10 +15541,10 @@ function Hc(r, t, e, n) {
15546
15541
  } else
15547
15542
  n.point(t[0], t[1]);
15548
15543
  }
15549
- function Wc(r, t) {
15544
+ function jc(r, t) {
15550
15545
  var e = wt(r), n = e > 0, i = Jt(e) > gt;
15551
15546
  function o(c, f, h, g) {
15552
- Ac(g, r, t, h, c, f);
15547
+ Fc(g, r, t, h, c, f);
15553
15548
  }
15554
15549
  function s(c, f) {
15555
15550
  return wt(c) * wt(f) > e;
@@ -15593,8 +15588,8 @@ function Wc(r, t) {
15593
15588
  return O;
15594
15589
  var Y = c[0], at = f[0], Nt = c[1], qt = f[1], ce;
15595
15590
  at < Y && (ce = Y, Y = at, at = ce);
15596
- var Ar = at - Y, mn = Jt(Ar - it) < gt, Mn = mn || Ar < gt;
15597
- if (!mn && qt < Nt && (ce = Nt, Nt = qt, qt = ce), Mn ? mn ? Nt + qt > 0 ^ O[1] < (Jt(O[0] - Y) < gt ? Nt : qt) : Nt <= O[1] && O[1] <= qt : Ar > 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 < 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 : Br > it ^ (Y <= O[0] && O[0] <= at)) {
15598
15593
  var fe = So(D, (-R + rt) / z);
15599
15594
  return gs(fe, A), [O, bs(fe)];
15600
15595
  }
@@ -15606,7 +15601,7 @@ function Wc(r, t) {
15606
15601
  }
15607
15602
  return Bu(s, a, o, n ? [0, -r] : [-it, r - it]);
15608
15603
  }
15609
- function Gu(r) {
15604
+ function ku(r) {
15610
15605
  return function(t) {
15611
15606
  var e = new Os();
15612
15607
  for (var n in r)
@@ -15637,32 +15632,32 @@ Os.prototype = {
15637
15632
  this.stream.polygonEnd();
15638
15633
  }
15639
15634
  };
15640
- function ku(r, t, e) {
15635
+ function Gu(r, t, e) {
15641
15636
  var n = t[1][0] - t[0][0], i = t[1][1] - t[0][1], o = r.clipExtent && r.clipExtent();
15642
- r.scale(150).translate([0, 0]), o != null && r.clipExtent(null), Tc(e, r.stream(Ga));
15643
- var s = Ga.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;
15637
+ r.scale(150).translate([0, 0]), o != null && r.clipExtent(null), Mc(e, r.stream(ka));
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;
15644
15639
  return o != null && r.clipExtent(o), r.scale(a * 150).translate([u, l]);
15645
15640
  }
15646
- function jc(r, t, e) {
15647
- return ku(r, [[0, 0], t], e);
15641
+ function Kc(r, t, e) {
15642
+ return Gu(r, [[0, 0], t], e);
15648
15643
  }
15649
- var za = 16, Kc = wt(30 * Ze);
15644
+ var za = 16, Qc = wt(30 * Ze);
15650
15645
  function Va(r, t) {
15651
- return +t ? Jc(r, t) : Qc(r);
15646
+ return +t ? Zc(r, t) : Jc(r);
15652
15647
  }
15653
- function Qc(r) {
15654
- return Gu({
15648
+ function Jc(r) {
15649
+ return ku({
15655
15650
  point: function(t, e) {
15656
15651
  t = r(t, e), this.stream.point(t[0], t[1]);
15657
15652
  }
15658
15653
  });
15659
15654
  }
15660
- function Jc(r, t) {
15655
+ function Zc(r, t) {
15661
15656
  function e(n, i, o, s, a, u, l, c, f, h, g, p, m, d) {
15662
15657
  var _ = l - n, I = c - i, C = _ * _ + I * I;
15663
15658
  if (C > 4 * t && m--) {
15664
15659
  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;
15665
- (Y * Y / C > t || Jt((_ * rt + I * O) / C - 0.5) > 0.3 || s * h + a * g + u * p < Kc) && (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));
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, 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));
15666
15661
  }
15667
15662
  }
15668
15663
  return function(n) {
@@ -15702,50 +15697,50 @@ function Jc(r, t) {
15702
15697
  return d;
15703
15698
  };
15704
15699
  }
15705
- var Zc = Gu({
15700
+ var $c = ku({
15706
15701
  point: function(r, t) {
15707
15702
  this.stream.point(r * Ze, t * Ze);
15708
15703
  }
15709
15704
  });
15710
- function $c(r) {
15711
- return tf(function() {
15705
+ function tf(r) {
15706
+ return ef(function() {
15712
15707
  return r;
15713
15708
  })();
15714
15709
  }
15715
- function tf(r) {
15716
- 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 = ka, 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, x = Ba, S = 0.5, b = Va(z, S), A, F;
15717
15712
  function D(O) {
15718
15713
  return O = g(O[0] * Ze, O[1] * Ze), [O[0] * e + o, s - O[1] * e];
15719
15714
  }
15720
15715
  function R(O) {
15721
- 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];
15722
15717
  }
15723
15718
  function z(O, Y) {
15724
15719
  return O = t(O, Y), [O[0] * e + o, s - O[1] * e];
15725
15720
  }
15726
15721
  D.stream = function(O) {
15727
- return A && F === O ? A : A = Zc(m(h, b(x(F = O))));
15722
+ return A && F === O ? A : A = $c(m(h, b(x(F = O))));
15728
15723
  }, D.clipAngle = function(O) {
15729
- return arguments.length ? (m = +O ? Wc(p = O * Ze, 6 * Ze) : (p = null, ka), rt()) : p * vr;
15724
+ return arguments.length ? (m = +O ? jc(p = O * Ze, 6 * Ze) : (p = null, Ga), rt()) : p * yr;
15730
15725
  }, D.clipExtent = function(O) {
15731
- return arguments.length ? (x = O == null ? (d = _ = I = C = null, Ba) : kc(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 ? (x = 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]];
15732
15727
  }, D.scale = function(O) {
15733
15728
  return arguments.length ? (e = +O, q()) : e;
15734
15729
  }, D.translate = function(O) {
15735
15730
  return arguments.length ? (n = +O[0], i = +O[1], q()) : [n, i];
15736
15731
  }, D.center = function(O) {
15737
- 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];
15738
15733
  }, D.rotate = function(O) {
15739
- 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];
15740
15735
  }, D.precision = function(O) {
15741
15736
  return arguments.length ? (b = Va(z, S = O * O), rt()) : _o(S);
15742
15737
  }, D.fitExtent = function(O, Y) {
15743
- return ku(D, O, Y);
15738
+ return Gu(D, O, Y);
15744
15739
  }, D.fitSize = function(O, Y) {
15745
- return jc(D, O, Y);
15740
+ return Kc(D, O, Y);
15746
15741
  };
15747
15742
  function q() {
15748
- g = Du(h = Mc(l, c, f), t);
15743
+ g = Du(h = Ac(l, c, f), t);
15749
15744
  var O = t(a, u);
15750
15745
  return o = n - O[0] * e, s = i + O[1] * e, rt();
15751
15746
  }
@@ -15756,7 +15751,7 @@ function tf(r) {
15756
15751
  return t = r.apply(this, arguments), D.invert = t.invert && R, q();
15757
15752
  };
15758
15753
  }
15759
- function ef(r) {
15754
+ function nf(r) {
15760
15755
  return function(t, e) {
15761
15756
  var n = wt(t), i = wt(e), o = r(n * i);
15762
15757
  return [
@@ -15765,7 +15760,7 @@ function ef(r) {
15765
15760
  ];
15766
15761
  };
15767
15762
  }
15768
- function nf(r) {
15763
+ function rf(r) {
15769
15764
  return function(t, e) {
15770
15765
  var n = _o(t * t + e * e), i = r(n), o = Lt(i), s = wt(i);
15771
15766
  return [
@@ -15774,20 +15769,20 @@ function nf(r) {
15774
15769
  ];
15775
15770
  };
15776
15771
  }
15777
- var zu = ef(function(r) {
15772
+ var zu = nf(function(r) {
15778
15773
  return (r = Ou(r)) && r / Lt(r);
15779
15774
  });
15780
- zu.invert = nf(function(r) {
15775
+ zu.invert = rf(function(r) {
15781
15776
  return r;
15782
15777
  });
15783
- function rf() {
15784
- return $c(zu).scale(79.4188).clipAngle(180 - 1e-3);
15778
+ function of() {
15779
+ return tf(zu).scale(79.4188).clipAngle(180 - 1e-3);
15785
15780
  }
15786
15781
  function Ua(r, t) {
15787
15782
  return [r, t];
15788
15783
  }
15789
15784
  Ua.invert = Ua;
15790
- function of(r, t, e) {
15785
+ function sf(r, t, e) {
15791
15786
  e = e || {};
15792
15787
  var n = e.units || "kilometers", i = e.steps || 8;
15793
15788
  if (!r)
@@ -15826,10 +15821,10 @@ function Ro(r, t, e, n) {
15826
15821
  d && s.push(d);
15827
15822
  }), Ns(s);
15828
15823
  }
15829
- var a = sf(o), u = {
15824
+ var a = af(o), u = {
15830
15825
  type: o.type,
15831
15826
  coordinates: Uu(o.coordinates, a)
15832
- }, l = new zs(), c = l.read(u), f = cc(fc(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();
15833
15828
  if (h = g.write(h), !Vu(h.coordinates)) {
15834
15829
  var p = {
15835
15830
  type: h.type,
@@ -15851,9 +15846,16 @@ function qu(r, t) {
15851
15846
  return qu(e, t);
15852
15847
  });
15853
15848
  }
15854
- function sf(r) {
15855
- var t = pc(r).geometry.coordinates, e = [-t[0], -t[1]];
15856
- return rf().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);
15857
15859
  }
15858
15860
  function qa(r) {
15859
15861
  let t;
@@ -15861,7 +15863,7 @@ function qa(r) {
15861
15863
  t && e[0] - t[0] >= 180 ? e[0] -= 360 : t && e[0] - t[0] < -180 && (e[0] += 360), t = e;
15862
15864
  }
15863
15865
  function Xa(r, t) {
15864
- const e = gc(
15866
+ const e = uf(
15865
15867
  {
15866
15868
  type: "Polygon",
15867
15869
  coordinates: [
@@ -15879,7 +15881,7 @@ function Xa(r, t) {
15879
15881
  if (!e)
15880
15882
  return;
15881
15883
  e.properties = { isMask: "y" };
15882
- const n = of(r, 0);
15884
+ const n = sf(r, 0);
15883
15885
  if (n.geometry.type === "Polygon")
15884
15886
  for (const i of n.geometry.coordinates)
15885
15887
  qa(i);
@@ -15896,7 +15898,7 @@ let Ya = {
15896
15898
  type: "FeatureCollection",
15897
15899
  features: []
15898
15900
  };
15899
- function af(r, t, e = !0, n = !0, i = {}, o = {}, s = {
15901
+ function lf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
15900
15902
  fill: {
15901
15903
  paint: {
15902
15904
  "fill-color": "#000",
@@ -15950,7 +15952,7 @@ function af(r, t, e = !0, n = !0, i = {}, o = {}, s = {
15950
15952
  if (!t)
15951
15953
  throw new Error();
15952
15954
  const I = document.createElement("div");
15953
- return _ && I.classList.add("marker-interactive"), new Rl({
15955
+ return _ && I.classList.add("marker-interactive"), new pc({
15954
15956
  props: { displayIn: "maplibre" },
15955
15957
  target: I
15956
15958
  }), new t.Marker({ element: I, offset: [1, -13] });
@@ -15996,7 +15998,7 @@ function af(r, t, e = !0, n = !0, i = {}, o = {}, s = {
15996
15998
  if (S.length > 0) {
15997
15999
  let b = S.pop();
15998
16000
  for (const A of S)
15999
- b = hc(b, A);
16001
+ b = fc(b, A);
16000
16002
  Xa({ ...I, geometry: b }, C), x = !0;
16001
16003
  } else {
16002
16004
  const b = I.geometry.geometries.filter(
@@ -16047,42 +16049,50 @@ function af(r, t, e = !0, n = !0, i = {}, o = {}, s = {
16047
16049
  }
16048
16050
  };
16049
16051
  }
16050
- var _n, zr;
16051
- class cf extends EventTarget {
16052
- constructor(e) {
16052
+ var En, _r;
16053
+ class hf extends EventTarget {
16054
+ constructor(e = {}) {
16053
16055
  super();
16054
- ls(this, _n, void 0);
16055
- ls(this, zr, void 0);
16056
- Co(this, zr, e);
16056
+ ls(this, En, void 0);
16057
+ ls(this, _r, void 0);
16058
+ Co(this, _r, e);
16057
16059
  }
16058
16060
  onAdd(e) {
16059
16061
  const n = document.createElement("div");
16060
16062
  n.className = "mapboxgl-ctrl-geocoder mapboxgl-ctrl maplibregl-ctrl-geocoder maplibregl-ctrl";
16061
16063
  const {
16062
- maplibregl: i,
16063
- marker: o,
16064
- showResultMarkers: s,
16065
- flyTo: a,
16066
- fullGeometryStyle: u,
16067
- ...l
16068
- } = Bn(this, zr), c = typeof a == "boolean" ? {} : a, f = af(
16069
- e,
16070
- i,
16071
- o,
16072
- s,
16073
- c,
16074
- c,
16075
- u
16076
- );
16077
- Co(this, _n, new zl({
16078
- target: n,
16079
- props: {
16080
- mapController: f,
16081
- flyTo: a === void 0 ? !0 : !!a,
16082
- ...l
16083
- }
16084
- }));
16085
- for (const h of [
16064
+ marker: i,
16065
+ showResultMarkers: o,
16066
+ flyTo: s,
16067
+ fullGeometryStyle: a,
16068
+ ...u
16069
+ } = _n(this, _r), l = typeof s == "boolean" ? {} : s, c = {};
16070
+ if ("getSdkConfig" in e && typeof e.getSdkConfig == "function") {
16071
+ const { primaryLanguage: g, apiKey: p } = e.getSdkConfig();
16072
+ c.apiKey = p;
16073
+ const m = /^([a-z]{2})($|_|-)/.exec(g);
16074
+ m && (c.language = m[1]);
16075
+ }
16076
+ const h = {
16077
+ mapController: lf(
16078
+ e,
16079
+ ol ?? sl ?? _n(this, _r).maplibregl,
16080
+ i,
16081
+ o,
16082
+ l,
16083
+ l,
16084
+ a
16085
+ ),
16086
+ flyTo: s === void 0 ? !0 : !!s,
16087
+ apiKey: "",
16088
+ // just to satisfy apiKey; TODO find a better solution
16089
+ ...c,
16090
+ ...u
16091
+ };
16092
+ if (!h.apiKey)
16093
+ throw new Error("no apiKey provided");
16094
+ Co(this, En, new Gl({ target: n, props: h }));
16095
+ for (const g of [
16086
16096
  "select",
16087
16097
  "pick",
16088
16098
  "featuresListed",
@@ -16092,12 +16102,12 @@ class cf extends EventTarget {
16092
16102
  "reverseToggle",
16093
16103
  "queryChange"
16094
16104
  ])
16095
- Bn(this, _n).$on(h, (g) => this.dispatchEvent(g));
16105
+ _n(this, En).$on(g, (p) => this.dispatchEvent(p));
16096
16106
  return n;
16097
16107
  }
16098
16108
  setOptions(e) {
16099
16109
  var l;
16100
- Co(this, zr, e);
16110
+ Co(this, _r, e);
16101
16111
  const {
16102
16112
  maplibregl: n,
16103
16113
  marker: i,
@@ -16105,33 +16115,33 @@ class cf extends EventTarget {
16105
16115
  flyTo: s,
16106
16116
  fullGeometryStyle: a,
16107
16117
  ...u
16108
- } = Bn(this, zr);
16109
- (l = Bn(this, _n)) == null || l.$set(u);
16118
+ } = _n(this, _r);
16119
+ (l = _n(this, En)) == null || l.$set(u);
16110
16120
  }
16111
16121
  setQuery(e, n = !0) {
16112
16122
  var i;
16113
- (i = Bn(this, _n)) == null || i.setQuery(e, n);
16123
+ (i = _n(this, En)) == null || i.setQuery(e, n);
16114
16124
  }
16115
16125
  setReverseMode(e) {
16116
16126
  var n;
16117
- (n = Bn(this, _n)) == null || n.$set({ reverseActive: e });
16127
+ (n = _n(this, En)) == null || n.$set({ reverseActive: e });
16118
16128
  }
16119
16129
  focus() {
16120
16130
  var e;
16121
- (e = Bn(this, _n)) == null || e.focus();
16131
+ (e = _n(this, En)) == null || e.focus();
16122
16132
  }
16123
16133
  blur() {
16124
16134
  var e;
16125
- (e = Bn(this, _n)) == null || e.blur();
16135
+ (e = _n(this, En)) == null || e.blur();
16126
16136
  }
16127
16137
  onRemove() {
16128
16138
  var e;
16129
- (e = Bn(this, _n)) == null || e.$destroy();
16139
+ (e = _n(this, En)) == null || e.$destroy();
16130
16140
  }
16131
16141
  }
16132
- _n = new WeakMap(), zr = new WeakMap();
16142
+ En = new WeakMap(), _r = new WeakMap();
16133
16143
  export {
16134
- cf as GeocodingControl,
16135
- af as createMaplibreglMapController
16144
+ hf as GeocodingControl,
16145
+ lf as createMaplibreglMapController
16136
16146
  };
16137
16147
  //# sourceMappingURL=maplibregl.js.map