@maptiler/geocoding-control 0.0.91-git.896be4 → 0.0.91-git.9f388b
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/GeocodingControl.svelte +17 -13
- package/leaflet.js +828 -825
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +5 -5
- package/leaflet.umd.js.map +1 -1
- package/maplibregl.js +831 -828
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +5 -5
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.js +830 -827
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +5 -5
- package/maptilersdk.umd.js.map +1 -1
- package/package.json +1 -1
- package/react.js +344 -341
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
package/leaflet.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
var
|
|
1
|
+
var sa = (r, t, e) => {
|
|
2
2
|
if (!t.has(r))
|
|
3
3
|
throw TypeError("Cannot " + e);
|
|
4
4
|
};
|
|
5
|
-
var zn = (r, t, e) => (
|
|
5
|
+
var zn = (r, t, e) => (sa(r, t, "read from private field"), e ? e.call(r) : t.get(r)), ys = (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
|
-
}, Lo = (r, t, e, n) => (
|
|
9
|
+
}, Lo = (r, t, e, n) => (sa(r, t, "write to private field"), n ? n.call(r, e) : t.set(r, e), e);
|
|
10
10
|
import * as or from "leaflet";
|
|
11
11
|
function It() {
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function vl(r, t) {
|
|
14
14
|
for (const e in t)
|
|
15
15
|
r[e] = t[e];
|
|
16
16
|
return r;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Ja(r) {
|
|
19
19
|
return r();
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function aa() {
|
|
22
22
|
return /* @__PURE__ */ Object.create(null);
|
|
23
23
|
}
|
|
24
24
|
function Er(r) {
|
|
25
|
-
r.forEach(
|
|
25
|
+
r.forEach(Ja);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function $a(r) {
|
|
28
28
|
return typeof r == "function";
|
|
29
29
|
}
|
|
30
30
|
function Ur(r, t) {
|
|
@@ -34,19 +34,19 @@ let bo;
|
|
|
34
34
|
function Pr(r, t) {
|
|
35
35
|
return bo || (bo = document.createElement("a")), bo.href = t, r === bo.href;
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function yl(r) {
|
|
38
38
|
return Object.keys(r).length === 0;
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function ml(r, t, e, n) {
|
|
41
41
|
if (r) {
|
|
42
|
-
const i =
|
|
42
|
+
const i = tu(r, t, e, n);
|
|
43
43
|
return r[0](i);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
return r[1] && n ?
|
|
46
|
+
function tu(r, t, e, n) {
|
|
47
|
+
return r[1] && n ? vl(e.ctx.slice(), r[1](n(t))) : e.ctx;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function _l(r, t, e, n) {
|
|
50
50
|
if (r[2] && n) {
|
|
51
51
|
const i = r[2](n(e));
|
|
52
52
|
if (t.dirty === void 0)
|
|
@@ -61,13 +61,13 @@ function ml(r, t, e, n) {
|
|
|
61
61
|
}
|
|
62
62
|
return t.dirty;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function El(r, t, e, n, i, o) {
|
|
65
65
|
if (i) {
|
|
66
|
-
const s =
|
|
66
|
+
const s = tu(t, e, n, o);
|
|
67
67
|
r.p(s, i);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Il(r) {
|
|
71
71
|
if (r.ctx.length > 32) {
|
|
72
72
|
const t = [], e = r.ctx.length / 32;
|
|
73
73
|
for (let n = 0; n < e; n++)
|
|
@@ -76,7 +76,7 @@ function El(r) {
|
|
|
76
76
|
}
|
|
77
77
|
return -1;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function ua(r) {
|
|
80
80
|
return r ?? "";
|
|
81
81
|
}
|
|
82
82
|
function nt(r, t) {
|
|
@@ -100,13 +100,13 @@ function Rr(r) {
|
|
|
100
100
|
function nn() {
|
|
101
101
|
return Rr(" ");
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function Cl() {
|
|
104
104
|
return Rr("");
|
|
105
105
|
}
|
|
106
106
|
function Ce(r, t, e, n) {
|
|
107
107
|
return r.addEventListener(t, e, n), () => r.removeEventListener(t, e, n);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function Nl(r) {
|
|
110
110
|
return function(t) {
|
|
111
111
|
return t.preventDefault(), r.call(this, t);
|
|
112
112
|
};
|
|
@@ -114,19 +114,19 @@ function Cl(r) {
|
|
|
114
114
|
function P(r, t, e) {
|
|
115
115
|
e == null ? r.removeAttribute(t) : r.getAttribute(t) !== e && r.setAttribute(t, e);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Sl(r) {
|
|
118
118
|
return Array.from(r.childNodes);
|
|
119
119
|
}
|
|
120
120
|
function to(r, t) {
|
|
121
121
|
t = "" + t, r.data !== t && (r.data = t);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function la(r, t) {
|
|
124
124
|
r.value = t ?? "";
|
|
125
125
|
}
|
|
126
126
|
function on(r, t, e) {
|
|
127
127
|
r.classList[e ? "add" : "remove"](t);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function xl(r, t, { bubbles: e = !1, cancelable: n = !1 } = {}) {
|
|
130
130
|
const i = document.createEvent("CustomEvent");
|
|
131
131
|
return i.initCustomEvent(r, e, n, t), i;
|
|
132
132
|
}
|
|
@@ -134,20 +134,20 @@ let eo;
|
|
|
134
134
|
function Ji(r) {
|
|
135
135
|
eo = r;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function eu() {
|
|
138
138
|
if (!eo)
|
|
139
139
|
throw new Error("Function called outside component initialization");
|
|
140
140
|
return eo;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
143
|
-
|
|
142
|
+
function wl(r) {
|
|
143
|
+
eu().$$.on_destroy.push(r);
|
|
144
144
|
}
|
|
145
|
-
function
|
|
146
|
-
const r =
|
|
145
|
+
function Ll() {
|
|
146
|
+
const r = eu();
|
|
147
147
|
return (t, e, { cancelable: n = !1 } = {}) => {
|
|
148
148
|
const i = r.$$.callbacks[t];
|
|
149
149
|
if (i) {
|
|
150
|
-
const o =
|
|
150
|
+
const o = xl(t, e, { cancelable: n });
|
|
151
151
|
return i.slice().forEach((s) => {
|
|
152
152
|
s.call(r, o);
|
|
153
153
|
}), !o.defaultPrevented;
|
|
@@ -155,23 +155,23 @@ function wl() {
|
|
|
155
155
|
return !0;
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function ca(r, t) {
|
|
159
159
|
const e = r.$$.callbacks[t.type];
|
|
160
160
|
e && e.slice().forEach((n) => n.call(this, t));
|
|
161
161
|
}
|
|
162
|
-
const _i = [],
|
|
162
|
+
const _i = [], Ns = [];
|
|
163
163
|
let Ii = [];
|
|
164
|
-
const
|
|
165
|
-
let
|
|
166
|
-
function
|
|
167
|
-
|
|
164
|
+
const fa = [], bl = /* @__PURE__ */ Promise.resolve();
|
|
165
|
+
let Ss = !1;
|
|
166
|
+
function Pl() {
|
|
167
|
+
Ss || (Ss = !0, bl.then(nu));
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function xs(r) {
|
|
170
170
|
Ii.push(r);
|
|
171
171
|
}
|
|
172
|
-
const
|
|
172
|
+
const ms = /* @__PURE__ */ new Set();
|
|
173
173
|
let mi = 0;
|
|
174
|
-
function
|
|
174
|
+
function nu() {
|
|
175
175
|
if (mi !== 0)
|
|
176
176
|
return;
|
|
177
177
|
const r = eo;
|
|
@@ -179,31 +179,31 @@ function eu() {
|
|
|
179
179
|
try {
|
|
180
180
|
for (; mi < _i.length; ) {
|
|
181
181
|
const t = _i[mi];
|
|
182
|
-
mi++, Ji(t),
|
|
182
|
+
mi++, Ji(t), Rl(t.$$);
|
|
183
183
|
}
|
|
184
184
|
} catch (t) {
|
|
185
185
|
throw _i.length = 0, mi = 0, t;
|
|
186
186
|
}
|
|
187
|
-
for (Ji(null), _i.length = 0, mi = 0;
|
|
188
|
-
|
|
187
|
+
for (Ji(null), _i.length = 0, mi = 0; Ns.length; )
|
|
188
|
+
Ns.pop()();
|
|
189
189
|
for (let t = 0; t < Ii.length; t += 1) {
|
|
190
190
|
const e = Ii[t];
|
|
191
|
-
|
|
191
|
+
ms.has(e) || (ms.add(e), e());
|
|
192
192
|
}
|
|
193
193
|
Ii.length = 0;
|
|
194
194
|
} while (_i.length);
|
|
195
|
-
for (;
|
|
196
|
-
|
|
197
|
-
|
|
195
|
+
for (; fa.length; )
|
|
196
|
+
fa.pop()();
|
|
197
|
+
Ss = !1, ms.clear(), Ji(r);
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function Rl(r) {
|
|
200
200
|
if (r.fragment !== null) {
|
|
201
201
|
r.update(), Er(r.before_update);
|
|
202
202
|
const t = r.dirty;
|
|
203
|
-
r.dirty = [-1], r.fragment && r.fragment.p(r.ctx, t), r.after_update.forEach(
|
|
203
|
+
r.dirty = [-1], r.fragment && r.fragment.p(r.ctx, t), r.after_update.forEach(xs);
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function Ol(r) {
|
|
207
207
|
const t = [], e = [];
|
|
208
208
|
Ii.forEach((n) => r.indexOf(n) === -1 ? t.push(n) : e.push(n)), e.forEach((n) => n()), Ii = t;
|
|
209
209
|
}
|
|
@@ -233,12 +233,12 @@ function le(r, t, e, n) {
|
|
|
233
233
|
} else
|
|
234
234
|
n && n();
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function Dl(r, t) {
|
|
237
237
|
le(r, 1, 1, () => {
|
|
238
238
|
t.delete(r.key);
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function Tl(r, t, e, n, i, o, s, a, u, l, c, f) {
|
|
242
242
|
let h = r.length, g = o.length, p = h;
|
|
243
243
|
const y = {};
|
|
244
244
|
for (; p--; )
|
|
@@ -270,17 +270,17 @@ function Or(r) {
|
|
|
270
270
|
}
|
|
271
271
|
function lr(r, t, e, n) {
|
|
272
272
|
const { fragment: i, after_update: o } = r.$$;
|
|
273
|
-
i && i.m(t, e), n ||
|
|
274
|
-
const s = r.$$.on_mount.map(
|
|
273
|
+
i && i.m(t, e), n || xs(() => {
|
|
274
|
+
const s = r.$$.on_mount.map(Ja).filter($a);
|
|
275
275
|
r.$$.on_destroy ? r.$$.on_destroy.push(...s) : Er(s), r.$$.on_mount = [];
|
|
276
|
-
}), o.forEach(
|
|
276
|
+
}), o.forEach(xs);
|
|
277
277
|
}
|
|
278
278
|
function cr(r, t) {
|
|
279
279
|
const e = r.$$;
|
|
280
|
-
e.fragment !== null && (
|
|
280
|
+
e.fragment !== null && (Ol(e.after_update), Er(e.on_destroy), e.fragment && e.fragment.d(t), e.on_destroy = e.fragment = null, e.ctx = []);
|
|
281
281
|
}
|
|
282
|
-
function
|
|
283
|
-
r.$$.dirty[0] === -1 && (_i.push(r),
|
|
282
|
+
function Ml(r, t) {
|
|
283
|
+
r.$$.dirty[0] === -1 && (_i.push(r), Pl(), r.$$.dirty.fill(0)), r.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
284
284
|
}
|
|
285
285
|
function qr(r, t, e, n, i, o, s, a = [-1]) {
|
|
286
286
|
const u = eo;
|
|
@@ -292,7 +292,7 @@ function qr(r, t, e, n, i, o, s, a = [-1]) {
|
|
|
292
292
|
props: o,
|
|
293
293
|
update: It,
|
|
294
294
|
not_equal: i,
|
|
295
|
-
bound:
|
|
295
|
+
bound: aa(),
|
|
296
296
|
// lifecycle
|
|
297
297
|
on_mount: [],
|
|
298
298
|
on_destroy: [],
|
|
@@ -301,7 +301,7 @@ function qr(r, t, e, n, i, o, s, a = [-1]) {
|
|
|
301
301
|
after_update: [],
|
|
302
302
|
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
303
303
|
// everything else
|
|
304
|
-
callbacks:
|
|
304
|
+
callbacks: aa(),
|
|
305
305
|
dirty: a,
|
|
306
306
|
skip_bound: !1,
|
|
307
307
|
root: t.target || u.$$.root
|
|
@@ -310,14 +310,14 @@ function qr(r, t, e, n, i, o, s, a = [-1]) {
|
|
|
310
310
|
let c = !1;
|
|
311
311
|
if (l.ctx = e ? e(r, t.props || {}, (f, h, ...g) => {
|
|
312
312
|
const p = g.length ? g[0] : h;
|
|
313
|
-
return l.ctx && i(l.ctx[f], l.ctx[f] = p) && (!l.skip_bound && l.bound[f] && l.bound[f](p), c &&
|
|
313
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = p) && (!l.skip_bound && l.bound[f] && l.bound[f](p), c && Ml(r, f)), h;
|
|
314
314
|
}) : [], l.update(), c = !0, Er(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
315
315
|
if (t.hydrate) {
|
|
316
|
-
const f =
|
|
316
|
+
const f = Sl(t.target);
|
|
317
317
|
l.fragment && l.fragment.l(f), f.forEach(Dt);
|
|
318
318
|
} else
|
|
319
319
|
l.fragment && l.fragment.c();
|
|
320
|
-
t.intro && Gt(r.$$.fragment), lr(r, t.target, t.anchor, t.customElement),
|
|
320
|
+
t.intro && Gt(r.$$.fragment), lr(r, t.target, t.anchor, t.customElement), nu();
|
|
321
321
|
}
|
|
322
322
|
Ji(u);
|
|
323
323
|
}
|
|
@@ -326,7 +326,7 @@ class Xr {
|
|
|
326
326
|
cr(this, 1), this.$destroy = It;
|
|
327
327
|
}
|
|
328
328
|
$on(t, e) {
|
|
329
|
-
if (
|
|
329
|
+
if (!$a(e))
|
|
330
330
|
return It;
|
|
331
331
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
332
332
|
return n.push(e), () => {
|
|
@@ -335,10 +335,10 @@ class Xr {
|
|
|
335
335
|
};
|
|
336
336
|
}
|
|
337
337
|
$set(t) {
|
|
338
|
-
this.$$set && !
|
|
338
|
+
this.$$set && !yl(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function Al(r) {
|
|
342
342
|
let t, e;
|
|
343
343
|
return {
|
|
344
344
|
c() {
|
|
@@ -355,12 +355,12 @@ function Ml(r) {
|
|
|
355
355
|
}
|
|
356
356
|
};
|
|
357
357
|
}
|
|
358
|
-
class
|
|
358
|
+
class ru extends Xr {
|
|
359
359
|
constructor(t) {
|
|
360
|
-
super(), qr(this, t, null,
|
|
360
|
+
super(), qr(this, t, null, Al, Ur, {});
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function Fl(r) {
|
|
364
364
|
let t, e;
|
|
365
365
|
return {
|
|
366
366
|
c() {
|
|
@@ -377,12 +377,12 @@ function Al(r) {
|
|
|
377
377
|
}
|
|
378
378
|
};
|
|
379
379
|
}
|
|
380
|
-
class
|
|
380
|
+
class iu extends Xr {
|
|
381
381
|
constructor(t) {
|
|
382
|
-
super(), qr(this, t, null,
|
|
382
|
+
super(), qr(this, t, null, Fl, Ur, {});
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
|
-
function
|
|
385
|
+
function kl(r) {
|
|
386
386
|
let t, e;
|
|
387
387
|
return {
|
|
388
388
|
c() {
|
|
@@ -410,7 +410,7 @@ function Fl(r) {
|
|
|
410
410
|
}
|
|
411
411
|
};
|
|
412
412
|
}
|
|
413
|
-
function
|
|
413
|
+
function Bl(r) {
|
|
414
414
|
let t, e;
|
|
415
415
|
return {
|
|
416
416
|
c() {
|
|
@@ -438,7 +438,7 @@ function kl(r) {
|
|
|
438
438
|
}
|
|
439
439
|
};
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function Gl(r) {
|
|
442
442
|
let t, e;
|
|
443
443
|
return {
|
|
444
444
|
c() {
|
|
@@ -466,7 +466,7 @@ function Bl(r) {
|
|
|
466
466
|
}
|
|
467
467
|
};
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function zl(r) {
|
|
470
470
|
let t, e;
|
|
471
471
|
return {
|
|
472
472
|
c() {
|
|
@@ -494,7 +494,7 @@ function Gl(r) {
|
|
|
494
494
|
}
|
|
495
495
|
};
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function Vl(r) {
|
|
498
498
|
let t, e;
|
|
499
499
|
return {
|
|
500
500
|
c() {
|
|
@@ -522,7 +522,7 @@ function zl(r) {
|
|
|
522
522
|
}
|
|
523
523
|
};
|
|
524
524
|
}
|
|
525
|
-
function
|
|
525
|
+
function Ul(r) {
|
|
526
526
|
let t, e;
|
|
527
527
|
return {
|
|
528
528
|
c() {
|
|
@@ -550,7 +550,7 @@ function Vl(r) {
|
|
|
550
550
|
}
|
|
551
551
|
};
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function ql(r) {
|
|
554
554
|
let t, e, n, i;
|
|
555
555
|
return {
|
|
556
556
|
c() {
|
|
@@ -586,7 +586,7 @@ function Ul(r) {
|
|
|
586
586
|
}
|
|
587
587
|
};
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function ha(r) {
|
|
590
590
|
let t, e;
|
|
591
591
|
return {
|
|
592
592
|
c() {
|
|
@@ -611,7 +611,7 @@ function fa(r) {
|
|
|
611
611
|
}
|
|
612
612
|
};
|
|
613
613
|
}
|
|
614
|
-
function
|
|
614
|
+
function Xl(r) {
|
|
615
615
|
var D, A;
|
|
616
616
|
let t, e, n, i, o, s, a, u, l = (
|
|
617
617
|
/*feature*/
|
|
@@ -637,19 +637,19 @@ function ql(r) {
|
|
|
637
637
|
1 && (e = null), F & /*feature*/
|
|
638
638
|
1 && (n = null), F & /*feature*/
|
|
639
639
|
1 && (i = null), /*imageUrl*/
|
|
640
|
-
w[5] ?
|
|
640
|
+
w[5] ? ql : (
|
|
641
641
|
/*feature*/
|
|
642
|
-
w[0].address ?
|
|
642
|
+
w[0].address ? Ul : (
|
|
643
643
|
/*feature*/
|
|
644
644
|
((X = w[0].properties) == null ? void 0 : X.kind) === "road" || /*feature*/
|
|
645
|
-
((R = w[0].properties) == null ? void 0 : R.kind) === "road_relation" ?
|
|
646
|
-
w[0].id.startsWith("address.")), e ?
|
|
647
|
-
w[0].id.startsWith("postal_code.")), n ?
|
|
648
|
-
w[0].id.startsWith("poi.")), i ?
|
|
645
|
+
((R = w[0].properties) == null ? void 0 : R.kind) === "road_relation" ? Vl : (e == null && (e = !!/*feature*/
|
|
646
|
+
w[0].id.startsWith("address.")), e ? zl : (n == null && (n = !!/*feature*/
|
|
647
|
+
w[0].id.startsWith("postal_code.")), n ? Gl : (i == null && (i = !!/*feature*/
|
|
648
|
+
w[0].id.startsWith("poi.")), i ? Bl : kl)))
|
|
649
649
|
)
|
|
650
650
|
);
|
|
651
651
|
}
|
|
652
|
-
let L = C(r, -1), N = L(r), x = h &&
|
|
652
|
+
let L = C(r, -1), N = L(r), x = h && ha(r);
|
|
653
653
|
return {
|
|
654
654
|
c() {
|
|
655
655
|
t = ht("li"), N.c(), o = nn(), s = ht("span"), a = ht("span"), u = ht("span"), c = Rr(l), f = nn(), x && x.c(), g = nn(), p = ht("span"), d = Rr(y), P(u, "class", "primary svelte-ltkwvy"), P(a, "class", "svelte-ltkwvy"), P(p, "class", "line2 svelte-ltkwvy"), P(s, "class", "texts svelte-ltkwvy"), P(t, "tabindex", "0"), P(
|
|
@@ -694,7 +694,7 @@ function ql(r) {
|
|
|
694
694
|
w[0].id.startsWith("address.") && !/*feature*/
|
|
695
695
|
w[0].id.startsWith("postal_code.") && (!/*feature*/
|
|
696
696
|
w[0].id.startsWith("poi.") || !/*imageUrl*/
|
|
697
|
-
w[5])), h ? x ? x.p(w, F) : (x =
|
|
697
|
+
w[5])), h ? x ? x.p(w, F) : (x = ha(w), x.c(), x.m(a, null)) : x && (x.d(1), x = null), F & /*feature*/
|
|
698
698
|
1 && y !== (y = /*feature*/
|
|
699
699
|
w[0].place_name.replace(/[^,]*,?\s*/, "") + "") && to(d, y), F & /*selected*/
|
|
700
700
|
2 && P(
|
|
@@ -717,7 +717,7 @@ function ql(r) {
|
|
|
717
717
|
}
|
|
718
718
|
};
|
|
719
719
|
}
|
|
720
|
-
function
|
|
720
|
+
function Yl(r, t, e) {
|
|
721
721
|
var y;
|
|
722
722
|
let n, i, o, s, { feature: a } = t, { selected: u = !1 } = t, { showPlaceType: l } = t;
|
|
723
723
|
const c = (y = a.properties) == null ? void 0 : y.categories;
|
|
@@ -725,10 +725,10 @@ function Xl(r, t, e) {
|
|
|
725
725
|
n > -1 ? e(7, n--, n) : d.style.visibility = "hidden";
|
|
726
726
|
}
|
|
727
727
|
function h(d) {
|
|
728
|
-
|
|
728
|
+
ca.call(this, r, d);
|
|
729
729
|
}
|
|
730
730
|
function g(d) {
|
|
731
|
-
|
|
731
|
+
ca.call(this, r, d);
|
|
732
732
|
}
|
|
733
733
|
const p = (d) => f(d.currentTarget);
|
|
734
734
|
return r.$$set = (d) => {
|
|
@@ -753,16 +753,16 @@ function Xl(r, t, e) {
|
|
|
753
753
|
p
|
|
754
754
|
];
|
|
755
755
|
}
|
|
756
|
-
class
|
|
756
|
+
class Wl extends Xr {
|
|
757
757
|
constructor(t) {
|
|
758
|
-
super(), qr(this, t,
|
|
758
|
+
super(), qr(this, t, Yl, Xl, Ur, {
|
|
759
759
|
feature: 0,
|
|
760
760
|
selected: 1,
|
|
761
761
|
showPlaceType: 2
|
|
762
762
|
});
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
|
-
function
|
|
765
|
+
function Hl(r) {
|
|
766
766
|
let t;
|
|
767
767
|
return {
|
|
768
768
|
c() {
|
|
@@ -779,12 +779,12 @@ function Wl(r) {
|
|
|
779
779
|
}
|
|
780
780
|
};
|
|
781
781
|
}
|
|
782
|
-
class
|
|
782
|
+
class jl extends Xr {
|
|
783
783
|
constructor(t) {
|
|
784
|
-
super(), qr(this, t, null,
|
|
784
|
+
super(), qr(this, t, null, Hl, Ur, {});
|
|
785
785
|
}
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function Kl(r) {
|
|
788
788
|
let t, e;
|
|
789
789
|
return {
|
|
790
790
|
c() {
|
|
@@ -801,12 +801,12 @@ function jl(r) {
|
|
|
801
801
|
}
|
|
802
802
|
};
|
|
803
803
|
}
|
|
804
|
-
class
|
|
804
|
+
class Ql extends Xr {
|
|
805
805
|
constructor(t) {
|
|
806
|
-
super(), qr(this, t, null,
|
|
806
|
+
super(), qr(this, t, null, Kl, Ur, {});
|
|
807
807
|
}
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function Zl(r) {
|
|
810
810
|
let t, e;
|
|
811
811
|
return {
|
|
812
812
|
c() {
|
|
@@ -823,18 +823,18 @@ function Ql(r) {
|
|
|
823
823
|
}
|
|
824
824
|
};
|
|
825
825
|
}
|
|
826
|
-
class
|
|
826
|
+
class Jl extends Xr {
|
|
827
827
|
constructor(t) {
|
|
828
|
-
super(), qr(this, t, null,
|
|
828
|
+
super(), qr(this, t, null, Zl, Ur, {});
|
|
829
829
|
}
|
|
830
830
|
}
|
|
831
|
-
function
|
|
831
|
+
function ga(r, t, e) {
|
|
832
832
|
const n = r.slice();
|
|
833
|
-
return n[
|
|
833
|
+
return n[73] = t[e], n[75] = e, n;
|
|
834
834
|
}
|
|
835
|
-
function
|
|
835
|
+
function pa(r) {
|
|
836
836
|
let t, e;
|
|
837
|
-
return t = new
|
|
837
|
+
return t = new jl({}), {
|
|
838
838
|
c() {
|
|
839
839
|
Or(t.$$.fragment);
|
|
840
840
|
},
|
|
@@ -852,9 +852,9 @@ function ga(r) {
|
|
|
852
852
|
}
|
|
853
853
|
};
|
|
854
854
|
}
|
|
855
|
-
function
|
|
855
|
+
function da(r) {
|
|
856
856
|
let t, e, n, i, o;
|
|
857
|
-
return e = new
|
|
857
|
+
return e = new Ql({}), {
|
|
858
858
|
c() {
|
|
859
859
|
t = ht("button"), Or(e.$$.fragment), P(t, "type", "button"), P(
|
|
860
860
|
t,
|
|
@@ -873,7 +873,7 @@ function pa(r) {
|
|
|
873
873
|
t,
|
|
874
874
|
"click",
|
|
875
875
|
/*click_handler_2*/
|
|
876
|
-
r[
|
|
876
|
+
r[59]
|
|
877
877
|
), i = !0);
|
|
878
878
|
},
|
|
879
879
|
p(s, a) {
|
|
@@ -902,18 +902,20 @@ function pa(r) {
|
|
|
902
902
|
}
|
|
903
903
|
};
|
|
904
904
|
}
|
|
905
|
-
function
|
|
905
|
+
function $l(r) {
|
|
906
906
|
let t, e = [], n = /* @__PURE__ */ new Map(), i, o, s, a = (
|
|
907
907
|
/*listFeatures*/
|
|
908
908
|
r[12]
|
|
909
909
|
);
|
|
910
910
|
const u = (l) => (
|
|
911
911
|
/*feature*/
|
|
912
|
-
l[
|
|
912
|
+
l[73].id + /*feature*/
|
|
913
|
+
(l[73].address ? "," + /*feature*/
|
|
914
|
+
l[73].address : "")
|
|
913
915
|
);
|
|
914
916
|
for (let l = 0; l < a.length; l += 1) {
|
|
915
|
-
let c =
|
|
916
|
-
n.set(f, e[l] =
|
|
917
|
+
let c = ga(r, a, l), f = u(c);
|
|
918
|
+
n.set(f, e[l] = va(f, c));
|
|
917
919
|
}
|
|
918
920
|
return {
|
|
919
921
|
c() {
|
|
@@ -931,20 +933,20 @@ function Jl(r) {
|
|
|
931
933
|
t,
|
|
932
934
|
"mouseleave",
|
|
933
935
|
/*mouseleave_handler*/
|
|
934
|
-
r[
|
|
936
|
+
r[63]
|
|
935
937
|
),
|
|
936
938
|
Ce(
|
|
937
939
|
t,
|
|
938
940
|
"blur",
|
|
939
941
|
/*blur_handler_1*/
|
|
940
|
-
r[
|
|
942
|
+
r[64]
|
|
941
943
|
)
|
|
942
944
|
], o = !0);
|
|
943
945
|
},
|
|
944
946
|
p(l, c) {
|
|
945
947
|
c[0] & /*listFeatures, showPlaceType, selectedItemIndex, pick*/
|
|
946
948
|
2110464 && (a = /*listFeatures*/
|
|
947
|
-
l[12], Ao(), e =
|
|
949
|
+
l[12], Ao(), e = Tl(e, c, u, 1, l, a, n, t, Dl, va, null, ga), Fo());
|
|
948
950
|
},
|
|
949
951
|
i(l) {
|
|
950
952
|
if (!i) {
|
|
@@ -966,9 +968,9 @@ function Jl(r) {
|
|
|
966
968
|
}
|
|
967
969
|
};
|
|
968
970
|
}
|
|
969
|
-
function
|
|
971
|
+
function tc(r) {
|
|
970
972
|
let t, e, n, i, o, s;
|
|
971
|
-
return e = new
|
|
973
|
+
return e = new iu({}), {
|
|
972
974
|
c() {
|
|
973
975
|
t = ht("div"), Or(e.$$.fragment), n = nn(), i = ht("div"), o = Rr(
|
|
974
976
|
/*noResultsMessage*/
|
|
@@ -997,7 +999,7 @@ function $l(r) {
|
|
|
997
999
|
}
|
|
998
1000
|
};
|
|
999
1001
|
}
|
|
1000
|
-
function
|
|
1002
|
+
function ec(r) {
|
|
1001
1003
|
let t = "", e;
|
|
1002
1004
|
return {
|
|
1003
1005
|
c() {
|
|
@@ -1014,9 +1016,9 @@ function tc(r) {
|
|
|
1014
1016
|
}
|
|
1015
1017
|
};
|
|
1016
1018
|
}
|
|
1017
|
-
function
|
|
1019
|
+
function nc(r) {
|
|
1018
1020
|
let t, e, n, i, o, s, a, u, l, c, f;
|
|
1019
|
-
return e = new
|
|
1021
|
+
return e = new iu({}), u = new ru({}), {
|
|
1020
1022
|
c() {
|
|
1021
1023
|
t = ht("div"), Or(e.$$.fragment), n = nn(), i = ht("div"), o = Rr(
|
|
1022
1024
|
/*errorMessage*/
|
|
@@ -1028,7 +1030,7 @@ function ec(r) {
|
|
|
1028
1030
|
a,
|
|
1029
1031
|
"click",
|
|
1030
1032
|
/*click_handler_3*/
|
|
1031
|
-
r[
|
|
1033
|
+
r[60]
|
|
1032
1034
|
), c = !0);
|
|
1033
1035
|
},
|
|
1034
1036
|
p(h, g) {
|
|
@@ -1050,31 +1052,31 @@ function ec(r) {
|
|
|
1050
1052
|
}
|
|
1051
1053
|
};
|
|
1052
1054
|
}
|
|
1053
|
-
function
|
|
1055
|
+
function va(r, t) {
|
|
1054
1056
|
let e, n, i;
|
|
1055
1057
|
function o() {
|
|
1056
1058
|
return (
|
|
1057
1059
|
/*mouseenter_handler*/
|
|
1058
|
-
t[
|
|
1060
|
+
t[61](
|
|
1059
1061
|
/*i*/
|
|
1060
|
-
t[
|
|
1062
|
+
t[75]
|
|
1061
1063
|
)
|
|
1062
1064
|
);
|
|
1063
1065
|
}
|
|
1064
1066
|
function s() {
|
|
1065
1067
|
return (
|
|
1066
1068
|
/*focus_handler_1*/
|
|
1067
|
-
t[
|
|
1069
|
+
t[62](
|
|
1068
1070
|
/*feature*/
|
|
1069
|
-
t[
|
|
1071
|
+
t[73]
|
|
1070
1072
|
)
|
|
1071
1073
|
);
|
|
1072
1074
|
}
|
|
1073
|
-
return n = new
|
|
1075
|
+
return n = new Wl({
|
|
1074
1076
|
props: {
|
|
1075
1077
|
feature: (
|
|
1076
1078
|
/*feature*/
|
|
1077
|
-
t[
|
|
1079
|
+
t[73]
|
|
1078
1080
|
),
|
|
1079
1081
|
showPlaceType: (
|
|
1080
1082
|
/*showPlaceType*/
|
|
@@ -1083,14 +1085,14 @@ function da(r, t) {
|
|
|
1083
1085
|
selected: (
|
|
1084
1086
|
/*selectedItemIndex*/
|
|
1085
1087
|
t[13] === /*i*/
|
|
1086
|
-
t[
|
|
1088
|
+
t[75]
|
|
1087
1089
|
)
|
|
1088
1090
|
}
|
|
1089
1091
|
}), n.$on("mouseenter", o), n.$on("focus", s), {
|
|
1090
1092
|
key: r,
|
|
1091
1093
|
first: null,
|
|
1092
1094
|
c() {
|
|
1093
|
-
e =
|
|
1095
|
+
e = Cl(), Or(n.$$.fragment), this.first = e;
|
|
1094
1096
|
},
|
|
1095
1097
|
m(a, u) {
|
|
1096
1098
|
Tt(a, e, u), lr(n, a, u), i = !0;
|
|
@@ -1100,12 +1102,12 @@ function da(r, t) {
|
|
|
1100
1102
|
const l = {};
|
|
1101
1103
|
u[0] & /*listFeatures*/
|
|
1102
1104
|
4096 && (l.feature = /*feature*/
|
|
1103
|
-
t[
|
|
1105
|
+
t[73]), u[0] & /*showPlaceType*/
|
|
1104
1106
|
1024 && (l.showPlaceType = /*showPlaceType*/
|
|
1105
1107
|
t[10]), u[0] & /*selectedItemIndex, listFeatures*/
|
|
1106
1108
|
12288 && (l.selected = /*selectedItemIndex*/
|
|
1107
1109
|
t[13] === /*i*/
|
|
1108
|
-
t[
|
|
1110
|
+
t[75]), n.$set(l);
|
|
1109
1111
|
},
|
|
1110
1112
|
i(a) {
|
|
1111
1113
|
i || (Gt(n.$$.fragment, a), i = !0);
|
|
@@ -1118,26 +1120,26 @@ function da(r, t) {
|
|
|
1118
1120
|
}
|
|
1119
1121
|
};
|
|
1120
1122
|
}
|
|
1121
|
-
function
|
|
1123
|
+
function rc(r) {
|
|
1122
1124
|
let t, e, n, i, o, s, a, u, l, c, f, h, g, p, y, d, m, E, C, L;
|
|
1123
|
-
i = new
|
|
1125
|
+
i = new Jl({}), c = new ru({});
|
|
1124
1126
|
let N = (
|
|
1125
1127
|
/*abortController*/
|
|
1126
|
-
r[17] &&
|
|
1128
|
+
r[17] && pa()
|
|
1127
1129
|
), x = (
|
|
1128
1130
|
/*enableReverse*/
|
|
1129
|
-
r[5] === !0 &&
|
|
1131
|
+
r[5] === !0 && da(r)
|
|
1130
1132
|
);
|
|
1131
1133
|
const D = (
|
|
1132
1134
|
/*#slots*/
|
|
1133
|
-
r[
|
|
1134
|
-
), A =
|
|
1135
|
+
r[51].default
|
|
1136
|
+
), A = ml(
|
|
1135
1137
|
D,
|
|
1136
1138
|
r,
|
|
1137
1139
|
/*$$scope*/
|
|
1138
|
-
r[
|
|
1140
|
+
r[50],
|
|
1139
1141
|
null
|
|
1140
|
-
), w = [ec, tc, $l
|
|
1142
|
+
), w = [nc, ec, tc, $l], F = [];
|
|
1141
1143
|
function X(R, Y) {
|
|
1142
1144
|
var T, W;
|
|
1143
1145
|
return (
|
|
@@ -1177,7 +1179,7 @@ function nc(r) {
|
|
|
1177
1179
|
"displayable",
|
|
1178
1180
|
/*searchValue*/
|
|
1179
1181
|
r[1] !== ""
|
|
1180
|
-
), P(e, "class", "input-group svelte-1r7dvt7"), P(t, "tabindex", "0"), P(t, "class", m =
|
|
1182
|
+
), P(e, "class", "input-group svelte-1r7dvt7"), P(t, "tabindex", "0"), P(t, "class", m = ua(
|
|
1181
1183
|
/*className*/
|
|
1182
1184
|
r[2]
|
|
1183
1185
|
) + " svelte-1r7dvt7"), on(
|
|
@@ -1189,7 +1191,7 @@ function nc(r) {
|
|
|
1189
1191
|
);
|
|
1190
1192
|
},
|
|
1191
1193
|
m(R, Y) {
|
|
1192
|
-
Tt(R, t, Y), nt(t, e), nt(e, n), lr(i, n, null), nt(e, o), nt(e, s), r[
|
|
1194
|
+
Tt(R, t, Y), nt(t, e), nt(e, n), lr(i, n, null), nt(e, o), nt(e, s), r[53](s), la(
|
|
1193
1195
|
s,
|
|
1194
1196
|
/*searchValue*/
|
|
1195
1197
|
r[1]
|
|
@@ -1198,25 +1200,25 @@ function nc(r) {
|
|
|
1198
1200
|
n,
|
|
1199
1201
|
"click",
|
|
1200
1202
|
/*click_handler*/
|
|
1201
|
-
r[
|
|
1203
|
+
r[52]
|
|
1202
1204
|
),
|
|
1203
1205
|
Ce(
|
|
1204
1206
|
s,
|
|
1205
1207
|
"input",
|
|
1206
1208
|
/*input_1_input_handler*/
|
|
1207
|
-
r[
|
|
1209
|
+
r[54]
|
|
1208
1210
|
),
|
|
1209
1211
|
Ce(
|
|
1210
1212
|
s,
|
|
1211
1213
|
"focus",
|
|
1212
1214
|
/*focus_handler*/
|
|
1213
|
-
r[
|
|
1215
|
+
r[55]
|
|
1214
1216
|
),
|
|
1215
1217
|
Ce(
|
|
1216
1218
|
s,
|
|
1217
1219
|
"blur",
|
|
1218
1220
|
/*blur_handler*/
|
|
1219
|
-
r[
|
|
1221
|
+
r[56]
|
|
1220
1222
|
),
|
|
1221
1223
|
Ce(
|
|
1222
1224
|
s,
|
|
@@ -1228,15 +1230,15 @@ function nc(r) {
|
|
|
1228
1230
|
s,
|
|
1229
1231
|
"input",
|
|
1230
1232
|
/*input_handler*/
|
|
1231
|
-
r[
|
|
1233
|
+
r[57]
|
|
1232
1234
|
),
|
|
1233
1235
|
Ce(
|
|
1234
1236
|
l,
|
|
1235
1237
|
"click",
|
|
1236
1238
|
/*click_handler_1*/
|
|
1237
|
-
r[
|
|
1239
|
+
r[58]
|
|
1238
1240
|
),
|
|
1239
|
-
Ce(t, "submit",
|
|
1241
|
+
Ce(t, "submit", Nl(
|
|
1240
1242
|
/*handleOnSubmit*/
|
|
1241
1243
|
r[18]
|
|
1242
1244
|
))
|
|
@@ -1257,7 +1259,7 @@ function nc(r) {
|
|
|
1257
1259
|
R[8]
|
|
1258
1260
|
), Y[0] & /*searchValue*/
|
|
1259
1261
|
2 && s.value !== /*searchValue*/
|
|
1260
|
-
R[1] &&
|
|
1262
|
+
R[1] && la(
|
|
1261
1263
|
s,
|
|
1262
1264
|
/*searchValue*/
|
|
1263
1265
|
R[1]
|
|
@@ -1269,7 +1271,7 @@ function nc(r) {
|
|
|
1269
1271
|
R[3]
|
|
1270
1272
|
), /*abortController*/
|
|
1271
1273
|
R[17] ? N ? Y[0] & /*abortController*/
|
|
1272
|
-
131072 && Gt(N, 1) : (N =
|
|
1274
|
+
131072 && Gt(N, 1) : (N = pa(), N.c(), Gt(N, 1), N.m(u, null)) : N && (Ao(), le(N, 1, 1, () => {
|
|
1273
1275
|
N = null;
|
|
1274
1276
|
}), Fo()), (!E || Y[0] & /*searchValue*/
|
|
1275
1277
|
2) && on(
|
|
@@ -1279,24 +1281,24 @@ function nc(r) {
|
|
|
1279
1281
|
R[1] !== ""
|
|
1280
1282
|
), /*enableReverse*/
|
|
1281
1283
|
R[5] === !0 ? x ? (x.p(R, Y), Y[0] & /*enableReverse*/
|
|
1282
|
-
32 && Gt(x, 1)) : (x =
|
|
1284
|
+
32 && Gt(x, 1)) : (x = da(R), x.c(), Gt(x, 1), x.m(e, g)) : x && (Ao(), le(x, 1, 1, () => {
|
|
1283
1285
|
x = null;
|
|
1284
1286
|
}), Fo()), A && A.p && (!E || Y[1] & /*$$scope*/
|
|
1285
|
-
|
|
1287
|
+
524288) && El(
|
|
1286
1288
|
A,
|
|
1287
1289
|
D,
|
|
1288
1290
|
R,
|
|
1289
1291
|
/*$$scope*/
|
|
1290
|
-
R[
|
|
1291
|
-
E ?
|
|
1292
|
+
R[50],
|
|
1293
|
+
E ? _l(
|
|
1292
1294
|
D,
|
|
1293
1295
|
/*$$scope*/
|
|
1294
|
-
R[
|
|
1296
|
+
R[50],
|
|
1295
1297
|
Y,
|
|
1296
1298
|
null
|
|
1297
|
-
) :
|
|
1299
|
+
) : Il(
|
|
1298
1300
|
/*$$scope*/
|
|
1299
|
-
R[
|
|
1301
|
+
R[50]
|
|
1300
1302
|
),
|
|
1301
1303
|
null
|
|
1302
1304
|
);
|
|
@@ -1304,7 +1306,7 @@ function nc(r) {
|
|
|
1304
1306
|
y = X(R), y === T ? ~y && F[y].p(R, Y) : (d && (Ao(), le(F[T], 1, 1, () => {
|
|
1305
1307
|
F[T] = null;
|
|
1306
1308
|
}), Fo()), ~y ? (d = F[y], d ? d.p(R, Y) : (d = F[y] = w[y](R), d.c()), Gt(d, 1), d.m(t, null)) : d = null), (!E || Y[0] & /*className*/
|
|
1307
|
-
4 && m !== (m =
|
|
1309
|
+
4 && m !== (m = ua(
|
|
1308
1310
|
/*className*/
|
|
1309
1311
|
R[2]
|
|
1310
1312
|
) + " svelte-1r7dvt7")) && P(t, "class", m), (!E || Y[0] & /*className, collapsed, searchValue*/
|
|
@@ -1323,20 +1325,20 @@ function nc(r) {
|
|
|
1323
1325
|
le(i.$$.fragment, R), le(c.$$.fragment, R), le(N), le(x), le(A, R), le(d), E = !1;
|
|
1324
1326
|
},
|
|
1325
1327
|
d(R) {
|
|
1326
|
-
R && Dt(t), cr(i), r[
|
|
1328
|
+
R && Dt(t), cr(i), r[53](null), cr(c), N && N.d(), x && x.d(), A && A.d(R), ~y && F[y].d(), C = !1, Er(L);
|
|
1327
1329
|
}
|
|
1328
1330
|
};
|
|
1329
1331
|
}
|
|
1330
|
-
function
|
|
1332
|
+
function ic(r, t, e) {
|
|
1331
1333
|
const n = t[1], i = t[0], o = n - i;
|
|
1332
1334
|
return r === n && e ? r : ((r - i) % o + o) % o + i;
|
|
1333
1335
|
}
|
|
1334
|
-
function
|
|
1336
|
+
function ya(r) {
|
|
1335
1337
|
let t = [...r];
|
|
1336
1338
|
return t[2] < t[0] && (t[2] += 360), t;
|
|
1337
1339
|
}
|
|
1338
|
-
function
|
|
1339
|
-
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: y = "Something went wrong…" } = t, { filter: d = () => !0 } = t, { flyTo: m = !0 } = t, { fuzzyMatch: E = !0 } = t, { language: C = void 0 } = t, { limit: L = void 0 } = t, { mapController: N = void 0 } = t, { minLength: x = 2 } = t, { noResultsMessage: D = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = t, { placeholder: A = "Search" } = t, { proximity: w = void 0 } = t, { reverseActive: F = p === "always" } = t, { reverseButtonTitle: X = "toggle reverse geocoding" } = t, { searchValue: R = "" } = t, { showFullGeometry: Y = !0 } = t, { showPlaceType: T = "ifNeeded" } = t, { showResultsWhileTyping: W = !0 } = t, { trackProximity:
|
|
1340
|
+
function oc(r, t, e) {
|
|
1341
|
+
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: y = "Something went wrong…" } = t, { filter: d = () => !0 } = t, { flyTo: m = !0 } = t, { fuzzyMatch: E = !0 } = t, { language: C = void 0 } = t, { limit: L = void 0 } = t, { mapController: N = void 0 } = t, { minLength: x = 2 } = t, { noResultsMessage: D = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = t, { placeholder: A = "Search" } = t, { proximity: w = void 0 } = t, { reverseActive: F = p === "always" } = t, { reverseButtonTitle: X = "toggle reverse geocoding" } = t, { searchValue: R = "" } = t, { showFullGeometry: Y = !0 } = t, { showPlaceType: T = "ifNeeded" } = t, { showResultsWhileTyping: W = !0 } = t, { trackProximity: ut = !0 } = t, { types: dt = void 0 } = t, { zoom: Ht = 16 } = t, { maxZoom: Jt = 18 } = t, { apiUrl: rr = "https://api.maptiler.com/geocoding" } = t, { fetchParameters: Ge = {} } = t;
|
|
1340
1342
|
function ir() {
|
|
1341
1343
|
kn.focus();
|
|
1342
1344
|
}
|
|
@@ -1344,43 +1346,43 @@ function ic(r, t, e) {
|
|
|
1344
1346
|
kn.blur();
|
|
1345
1347
|
}
|
|
1346
1348
|
function Hr(S, Bt = !0) {
|
|
1347
|
-
e(1, R = S), Bt ? (e(13, kt = -1),
|
|
1349
|
+
e(1, R = S), Bt ? (e(13, kt = -1), ia()) : (gs(), setTimeout(() => {
|
|
1348
1350
|
kn.focus(), kn.select();
|
|
1349
1351
|
}));
|
|
1350
1352
|
}
|
|
1351
|
-
let ze = !1,
|
|
1352
|
-
const Ir =
|
|
1353
|
-
|
|
1353
|
+
let ze = !1, ct, _e, ot, ra = "", kn, kt = -1, Bn, xo = [], jr, vi, wo, fs;
|
|
1354
|
+
const Ir = Ll();
|
|
1355
|
+
wl(() => {
|
|
1354
1356
|
N && (N.setEventHandler(void 0), N.indicateReverse(!1), N.setSelectedMarker(-1), N.setMarkers(void 0, void 0));
|
|
1355
1357
|
});
|
|
1356
|
-
function
|
|
1357
|
-
if (vi && (clearTimeout(vi), vi = void 0), kt > -1 &&
|
|
1358
|
-
e(47,
|
|
1358
|
+
function ia(S) {
|
|
1359
|
+
if (vi && (clearTimeout(vi), vi = void 0), kt > -1 && ct)
|
|
1360
|
+
e(47, ot = ct[kt]), e(1, R = ot.place_name.replace(/,.*/, "")), e(16, Bn = void 0), e(46, _e = void 0), e(13, kt = -1);
|
|
1359
1361
|
else if (R) {
|
|
1360
|
-
const Bt = S || !
|
|
1361
|
-
|
|
1362
|
-
e(46, _e =
|
|
1362
|
+
const Bt = S || !oa();
|
|
1363
|
+
hs(R, { exact: !0 }).then(() => {
|
|
1364
|
+
e(46, _e = ct), e(47, ot = void 0), Bt && tl();
|
|
1363
1365
|
}).catch((Gn) => e(16, Bn = Gn));
|
|
1364
1366
|
}
|
|
1365
1367
|
}
|
|
1366
|
-
function
|
|
1368
|
+
function oa() {
|
|
1367
1369
|
return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(R);
|
|
1368
1370
|
}
|
|
1369
|
-
async function
|
|
1371
|
+
async function hs(S, { byId: Bt = !1, exact: Gn = !1 } = {}) {
|
|
1370
1372
|
e(16, Bn = void 0);
|
|
1371
|
-
const yi =
|
|
1373
|
+
const yi = oa(), Ve = new URLSearchParams();
|
|
1372
1374
|
C != null && Ve.set("language", Array.isArray(C) ? C.join(",") : C), dt && Ve.set("types", dt.join(",")), yi || (u && Ve.set("bbox", u.map((Cr) => Cr.toFixed(6)).join(",")), h && Ve.set("country", Array.isArray(h) ? h.join(",") : h)), Bt || (w && Ve.set("proximity", w.map((Cr) => Cr.toFixed(6)).join(",")), (Gn || !W) && Ve.set("autocomplete", "false"), Ve.set("fuzzyMatch", String(E))), L !== void 0 && (!yi || (dt == null ? void 0 : dt.length) === 1) && Ve.set("limit", String(L)), Ve.set("key", a);
|
|
1373
1375
|
const Kr = rr + "/" + encodeURIComponent(S) + ".json?" + Ve.toString();
|
|
1374
|
-
if (Kr ===
|
|
1375
|
-
Bt ? (e(12,
|
|
1376
|
+
if (Kr === ra) {
|
|
1377
|
+
Bt ? (e(12, ct = void 0), e(47, ot = xo[0])) : e(12, ct = xo);
|
|
1376
1378
|
return;
|
|
1377
1379
|
}
|
|
1378
|
-
|
|
1380
|
+
ra = Kr, jr == null || jr.abort();
|
|
1379
1381
|
const Ee = new AbortController();
|
|
1380
1382
|
e(17, jr = Ee);
|
|
1381
|
-
let
|
|
1383
|
+
let ds;
|
|
1382
1384
|
try {
|
|
1383
|
-
|
|
1385
|
+
ds = await fetch(Kr, { signal: Ee.signal, ...Ge }).finally(() => {
|
|
1384
1386
|
Ee === jr && e(17, jr = void 0);
|
|
1385
1387
|
});
|
|
1386
1388
|
} catch (Cr) {
|
|
@@ -1388,93 +1390,93 @@ function ic(r, t, e) {
|
|
|
1388
1390
|
return;
|
|
1389
1391
|
throw new Error();
|
|
1390
1392
|
}
|
|
1391
|
-
if (!
|
|
1393
|
+
if (!ds.ok)
|
|
1392
1394
|
throw new Error();
|
|
1393
|
-
const
|
|
1394
|
-
Ir("response", { url: Kr, featureCollection:
|
|
1395
|
+
const vs = await ds.json();
|
|
1396
|
+
Ir("response", { url: Kr, featureCollection: vs }), Bt ? (e(12, ct = void 0), e(47, ot = vs.features[0]), xo = [ot]) : (e(12, ct = vs.features.filter(d)), xo = ct, yi && kn.focus());
|
|
1395
1397
|
}
|
|
1396
|
-
function
|
|
1398
|
+
function tl() {
|
|
1397
1399
|
var Gn, yi, Ve, Kr;
|
|
1398
1400
|
if (!(_e != null && _e.length) || !m)
|
|
1399
1401
|
return;
|
|
1400
1402
|
const S = [180, 90, -180, -90], Bt = !_e.some((Ee) => !Ee.matching_text);
|
|
1401
1403
|
for (const Ee of _e)
|
|
1402
1404
|
(Bt || !Ee.matching_text) && (S[0] = Math.min(S[0], ((Gn = Ee.bbox) == null ? void 0 : Gn[0]) ?? Ee.center[0]), S[1] = Math.min(S[1], ((yi = Ee.bbox) == null ? void 0 : yi[1]) ?? Ee.center[1]), S[2] = Math.max(S[2], ((Ve = Ee.bbox) == null ? void 0 : Ve[2]) ?? Ee.center[0]), S[3] = Math.max(S[3], ((Kr = Ee.bbox) == null ? void 0 : Kr[3]) ?? Ee.center[1]));
|
|
1403
|
-
N && _e.length > 0 && (
|
|
1404
|
-
}
|
|
1405
|
-
function tl(S) {
|
|
1406
|
-
e(0, F = p === "always"), Hr(rc(S[0], [-180, 180], !0).toFixed(6) + "," + S[1].toFixed(6));
|
|
1405
|
+
N && _e.length > 0 && (ot && S[0] === S[2] && S[1] === S[3] ? N.flyTo(ot.center, Ht) : N.fitBounds(ya(S), 50, Jt));
|
|
1407
1406
|
}
|
|
1408
1407
|
function el(S) {
|
|
1409
|
-
|
|
1408
|
+
e(0, F = p === "always"), Hr(ic(S[0], [-180, 180], !0).toFixed(6) + "," + S[1].toFixed(6));
|
|
1409
|
+
}
|
|
1410
|
+
function nl(S) {
|
|
1411
|
+
if (!ct)
|
|
1410
1412
|
return;
|
|
1411
1413
|
let Bt = S.key === "ArrowDown" ? 1 : S.key === "ArrowUp" ? -1 : 0;
|
|
1412
|
-
Bt ? (kt === -1 && Bt === -1 && e(13, kt =
|
|
1414
|
+
Bt ? (kt === -1 && Bt === -1 && e(13, kt = ct.length), e(13, kt += Bt), kt >= ct.length && e(13, kt = -1), S.preventDefault()) : ["ArrowLeft", "ArrowRight", "Home", "End"].includes(S.key) && e(13, kt = -1);
|
|
1413
1415
|
}
|
|
1414
|
-
function
|
|
1416
|
+
function gs(S = !0) {
|
|
1415
1417
|
if (e(16, Bn = void 0), W) {
|
|
1416
1418
|
if (vi && clearTimeout(vi), R.length < x)
|
|
1417
1419
|
return;
|
|
1418
1420
|
const Bt = R;
|
|
1419
1421
|
vi = window.setTimeout(
|
|
1420
1422
|
() => {
|
|
1421
|
-
|
|
1423
|
+
hs(Bt).catch((Gn) => e(16, Bn = Gn));
|
|
1422
1424
|
},
|
|
1423
1425
|
S ? g : 0
|
|
1424
1426
|
);
|
|
1425
1427
|
} else
|
|
1426
|
-
e(12,
|
|
1428
|
+
e(12, ct = void 0), e(16, Bn = void 0);
|
|
1427
1429
|
}
|
|
1428
|
-
function
|
|
1429
|
-
e(47,
|
|
1430
|
+
function ps(S) {
|
|
1431
|
+
e(47, ot = S), e(1, R = S.place_name), e(13, kt = -1);
|
|
1430
1432
|
}
|
|
1431
|
-
const
|
|
1432
|
-
function
|
|
1433
|
-
|
|
1433
|
+
const rl = () => kn.focus();
|
|
1434
|
+
function il(S) {
|
|
1435
|
+
Ns[S ? "unshift" : "push"](() => {
|
|
1434
1436
|
kn = S, e(15, kn);
|
|
1435
1437
|
});
|
|
1436
1438
|
}
|
|
1437
|
-
function
|
|
1439
|
+
function ol() {
|
|
1438
1440
|
R = this.value, e(1, R), e(11, ze), e(25, c);
|
|
1439
1441
|
}
|
|
1440
|
-
const
|
|
1442
|
+
const sl = () => e(11, ze = !0), al = () => e(11, ze = !1), ul = () => gs(), ll = () => {
|
|
1441
1443
|
e(1, R = ""), kn.focus();
|
|
1442
|
-
},
|
|
1444
|
+
}, cl = () => e(0, F = !F), fl = () => e(16, Bn = void 0), hl = (S) => e(13, kt = S), gl = (S) => ps(S), pl = () => e(13, kt = -1), dl = () => {
|
|
1443
1445
|
};
|
|
1444
1446
|
return r.$$set = (S) => {
|
|
1445
|
-
"class" in S && e(2, s = S.class), "apiKey" in S && e(23, a = S.apiKey), "bbox" in S && e(24, u = S.bbox), "clearButtonTitle" in S && e(3, l = S.clearButtonTitle), "clearOnBlur" in S && e(25, c = S.clearOnBlur), "collapsed" in S && e(4, f = S.collapsed), "country" in S && e(26, h = S.country), "debounceSearch" in S && e(27, g = S.debounceSearch), "enableReverse" in S && e(5, p = S.enableReverse), "errorMessage" in S && e(6, y = S.errorMessage), "filter" in S && e(28, d = S.filter), "flyTo" in S && e(29, m = S.flyTo), "fuzzyMatch" in S && e(30, E = S.fuzzyMatch), "language" in S && e(31, C = S.language), "limit" in S && e(32, L = S.limit), "mapController" in S && e(33, N = S.mapController), "minLength" in S && e(34, x = S.minLength), "noResultsMessage" in S && e(7, D = S.noResultsMessage), "placeholder" in S && e(8, A = S.placeholder), "proximity" in S && e(22, w = S.proximity), "reverseActive" in S && e(0, F = S.reverseActive), "reverseButtonTitle" in S && e(9, X = S.reverseButtonTitle), "searchValue" in S && e(1, R = S.searchValue), "showFullGeometry" in S && e(35, Y = S.showFullGeometry), "showPlaceType" in S && e(10, T = S.showPlaceType), "showResultsWhileTyping" in S && e(36, W = S.showResultsWhileTyping), "trackProximity" in S && e(37,
|
|
1447
|
+
"class" in S && e(2, s = S.class), "apiKey" in S && e(23, a = S.apiKey), "bbox" in S && e(24, u = S.bbox), "clearButtonTitle" in S && e(3, l = S.clearButtonTitle), "clearOnBlur" in S && e(25, c = S.clearOnBlur), "collapsed" in S && e(4, f = S.collapsed), "country" in S && e(26, h = S.country), "debounceSearch" in S && e(27, g = S.debounceSearch), "enableReverse" in S && e(5, p = S.enableReverse), "errorMessage" in S && e(6, y = S.errorMessage), "filter" in S && e(28, d = S.filter), "flyTo" in S && e(29, m = S.flyTo), "fuzzyMatch" in S && e(30, E = S.fuzzyMatch), "language" in S && e(31, C = S.language), "limit" in S && e(32, L = S.limit), "mapController" in S && e(33, N = S.mapController), "minLength" in S && e(34, x = S.minLength), "noResultsMessage" in S && e(7, D = S.noResultsMessage), "placeholder" in S && e(8, A = S.placeholder), "proximity" in S && e(22, w = S.proximity), "reverseActive" in S && e(0, F = S.reverseActive), "reverseButtonTitle" in S && e(9, X = S.reverseButtonTitle), "searchValue" in S && e(1, R = S.searchValue), "showFullGeometry" in S && e(35, Y = S.showFullGeometry), "showPlaceType" in S && e(10, T = S.showPlaceType), "showResultsWhileTyping" in S && e(36, W = S.showResultsWhileTyping), "trackProximity" in S && e(37, ut = S.trackProximity), "types" in S && e(38, dt = S.types), "zoom" in S && e(39, Ht = S.zoom), "maxZoom" in S && e(40, Jt = S.maxZoom), "apiUrl" in S && e(41, rr = S.apiUrl), "fetchParameters" in S && e(42, Ge = S.fetchParameters), "$$scope" in S && e(50, o = S.$$scope);
|
|
1446
1448
|
}, r.$$.update = () => {
|
|
1447
1449
|
if (r.$$.dirty[1] & /*trackProximity*/
|
|
1448
|
-
64 && (
|
|
1450
|
+
64 && (ut || e(22, w = void 0)), r.$$.dirty[0] & /*focused, clearOnBlur*/
|
|
1449
1451
|
33556480 && setTimeout(() => {
|
|
1450
1452
|
e(14, wo = ze), c && !ze && e(1, R = "");
|
|
1451
1453
|
}), r.$$.dirty[0] & /*searchValue, listFeatures*/
|
|
1452
1454
|
4098 | r.$$.dirty[1] & /*minLength*/
|
|
1453
|
-
8 && R.length < x && (e(47,
|
|
1454
|
-
65552 && Y &&
|
|
1455
|
-
536870912 | r.$$.dirty[1] & /*mapController, picked, maxZoom, zoom*/
|
|
1456
|
-
|
|
1455
|
+
8 && R.length < x && (e(47, ot = void 0), e(12, ct = void 0), e(16, Bn = void 0), e(46, _e = ct)), r.$$.dirty[1] & /*showFullGeometry, picked*/
|
|
1456
|
+
65552 && Y && ot && !ot.address && ot.geometry.type === "Point" && hs(ot.id, { byId: !0 }).catch((S) => e(16, Bn = S)), r.$$.dirty[0] & /*flyTo*/
|
|
1457
|
+
536870912 | r.$$.dirty[1] & /*mapController, picked, prevIdToFly, maxZoom, zoom*/
|
|
1458
|
+
197380 && (N && ot && ot.id !== fs && m && (!ot.bbox || ot.bbox[0] === ot.bbox[2] && ot.bbox[1] === ot.bbox[3] ? N.flyTo(ot.center, ot.id.startsWith("poi.") || ot.id.startsWith("address.") ? Jt : Ht) : N.fitBounds(ya(ot.bbox), 50, Jt), e(12, ct = void 0), e(46, _e = void 0), e(13, kt = -1)), e(48, fs = ot == null ? void 0 : ot.id)), r.$$.dirty[0] & /*listFeatures*/
|
|
1457
1459
|
4096 | r.$$.dirty[1] & /*markedFeatures*/
|
|
1458
|
-
32768 && _e !==
|
|
1459
|
-
98308 && N && N.setMarkers(_e,
|
|
1460
|
+
32768 && _e !== ct && e(46, _e = void 0), r.$$.dirty[1] & /*mapController, markedFeatures, picked*/
|
|
1461
|
+
98308 && N && N.setMarkers(_e, ot), r.$$.dirty[0] & /*searchValue*/
|
|
1460
1462
|
2 && e(13, kt = -1), r.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
|
|
1461
1463
|
20481 | r.$$.dirty[1] & /*mapController, trackProximity*/
|
|
1462
1464
|
68 && N && N.setEventHandler((S) => {
|
|
1463
1465
|
switch (S.type) {
|
|
1464
1466
|
case "mapClick":
|
|
1465
|
-
F &&
|
|
1467
|
+
F && el(S.coordinates);
|
|
1466
1468
|
break;
|
|
1467
1469
|
case "proximityChange":
|
|
1468
|
-
e(22, w =
|
|
1470
|
+
e(22, w = ut ? S.proximity : void 0);
|
|
1469
1471
|
break;
|
|
1470
1472
|
case "markerClick":
|
|
1471
1473
|
{
|
|
1472
|
-
const Bt =
|
|
1473
|
-
Bt &&
|
|
1474
|
+
const Bt = ct == null ? void 0 : ct.find((Gn) => Gn.id === S.id);
|
|
1475
|
+
Bt && ps(Bt);
|
|
1474
1476
|
}
|
|
1475
1477
|
break;
|
|
1476
1478
|
case "markerMouseEnter":
|
|
1477
|
-
e(13, kt = wo ? (
|
|
1479
|
+
e(13, kt = wo ? (ct == null ? void 0 : ct.findIndex((Bt) => Bt.id === S.id)) ?? -1 : -1);
|
|
1478
1480
|
break;
|
|
1479
1481
|
case "markerMouseLeave":
|
|
1480
1482
|
e(13, kt = -1);
|
|
@@ -1483,17 +1485,17 @@ function ic(r, t, e) {
|
|
|
1483
1485
|
}), r.$$.dirty[0] & /*selectedItemIndex*/
|
|
1484
1486
|
8192 | r.$$.dirty[1] & /*mapController*/
|
|
1485
1487
|
4 && (N == null || N.setSelectedMarker(kt)), r.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
|
|
1486
|
-
12288 && e(
|
|
1488
|
+
12288 && e(49, n = ct == null ? void 0 : ct[kt]), r.$$.dirty[0] & /*searchValue*/
|
|
1487
1489
|
2 | r.$$.dirty[1] & /*mapController*/
|
|
1488
1490
|
4) {
|
|
1489
1491
|
const S = /^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(R);
|
|
1490
1492
|
N == null || N.setReverseMarker(S ? [Number(S[1]), Number(S[2])] : void 0);
|
|
1491
1493
|
}
|
|
1492
1494
|
r.$$.dirty[1] & /*selected*/
|
|
1493
|
-
|
|
1494
|
-
65536 && Ir("pick",
|
|
1495
|
-
20480 && Ir("optionsVisibilityChange", wo && !!
|
|
1496
|
-
4096 && Ir("featuresListed",
|
|
1495
|
+
262144 && Ir("select", n), r.$$.dirty[1] & /*picked*/
|
|
1496
|
+
65536 && Ir("pick", ot), r.$$.dirty[0] & /*focusedDelayed, listFeatures*/
|
|
1497
|
+
20480 && Ir("optionsVisibilityChange", wo && !!ct), r.$$.dirty[0] & /*listFeatures*/
|
|
1498
|
+
4096 && Ir("featuresListed", ct), r.$$.dirty[1] & /*markedFeatures*/
|
|
1497
1499
|
32768 && Ir("featuresMarked", _e), r.$$.dirty[0] & /*reverseActive*/
|
|
1498
1500
|
1 && Ir("reverseToggle", F), r.$$.dirty[0] & /*searchValue*/
|
|
1499
1501
|
2 && Ir("queryChange", R), r.$$.dirty[0] & /*reverseActive*/
|
|
@@ -1512,16 +1514,16 @@ function ic(r, t, e) {
|
|
|
1512
1514
|
X,
|
|
1513
1515
|
T,
|
|
1514
1516
|
ze,
|
|
1515
|
-
|
|
1517
|
+
ct,
|
|
1516
1518
|
kt,
|
|
1517
1519
|
wo,
|
|
1518
1520
|
kn,
|
|
1519
1521
|
Bn,
|
|
1520
1522
|
jr,
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
hs,
|
|
1523
|
+
ia,
|
|
1524
|
+
nl,
|
|
1524
1525
|
gs,
|
|
1526
|
+
ps,
|
|
1525
1527
|
w,
|
|
1526
1528
|
a,
|
|
1527
1529
|
u,
|
|
@@ -1537,7 +1539,7 @@ function ic(r, t, e) {
|
|
|
1537
1539
|
x,
|
|
1538
1540
|
Y,
|
|
1539
1541
|
W,
|
|
1540
|
-
|
|
1542
|
+
ut,
|
|
1541
1543
|
dt,
|
|
1542
1544
|
Ht,
|
|
1543
1545
|
Jt,
|
|
@@ -1547,11 +1549,11 @@ function ic(r, t, e) {
|
|
|
1547
1549
|
In,
|
|
1548
1550
|
Hr,
|
|
1549
1551
|
_e,
|
|
1550
|
-
|
|
1552
|
+
ot,
|
|
1553
|
+
fs,
|
|
1551
1554
|
n,
|
|
1552
1555
|
o,
|
|
1553
1556
|
i,
|
|
1554
|
-
nl,
|
|
1555
1557
|
rl,
|
|
1556
1558
|
il,
|
|
1557
1559
|
ol,
|
|
@@ -1563,16 +1565,17 @@ function ic(r, t, e) {
|
|
|
1563
1565
|
fl,
|
|
1564
1566
|
hl,
|
|
1565
1567
|
gl,
|
|
1566
|
-
pl
|
|
1568
|
+
pl,
|
|
1569
|
+
dl
|
|
1567
1570
|
];
|
|
1568
1571
|
}
|
|
1569
|
-
let
|
|
1572
|
+
let sc = class extends Xr {
|
|
1570
1573
|
constructor(t) {
|
|
1571
1574
|
super(), qr(
|
|
1572
1575
|
this,
|
|
1573
1576
|
t,
|
|
1574
|
-
|
|
1575
|
-
|
|
1577
|
+
oc,
|
|
1578
|
+
rc,
|
|
1576
1579
|
Ur,
|
|
1577
1580
|
{
|
|
1578
1581
|
class: 2,
|
|
@@ -1647,7 +1650,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
1647
1650
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
1648
1651
|
and limitations under the License.
|
|
1649
1652
|
***************************************************************************** */
|
|
1650
|
-
function
|
|
1653
|
+
function ac(r, t) {
|
|
1651
1654
|
var e = { label: 0, sent: function() {
|
|
1652
1655
|
if (o[0] & 1)
|
|
1653
1656
|
throw o[1];
|
|
@@ -1721,7 +1724,7 @@ var Dr = (
|
|
|
1721
1724
|
return r;
|
|
1722
1725
|
}()
|
|
1723
1726
|
);
|
|
1724
|
-
function
|
|
1727
|
+
function uc(r, t) {
|
|
1725
1728
|
return r > t ? 1 : r < t ? -1 : 0;
|
|
1726
1729
|
}
|
|
1727
1730
|
function xr(r, t, e) {
|
|
@@ -1750,7 +1753,7 @@ function xr(r, t, e) {
|
|
|
1750
1753
|
}
|
|
1751
1754
|
return i.right = t.left, o.left = t.right, t.left = n.right, t.right = n.left, t;
|
|
1752
1755
|
}
|
|
1753
|
-
function
|
|
1756
|
+
function _s(r, t, e, n) {
|
|
1754
1757
|
var i = new Dr(r, t);
|
|
1755
1758
|
if (e === null)
|
|
1756
1759
|
return i.left = i.right = null, i;
|
|
@@ -1758,7 +1761,7 @@ function ms(r, t, e, n) {
|
|
|
1758
1761
|
var o = n(r, e.key);
|
|
1759
1762
|
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;
|
|
1760
1763
|
}
|
|
1761
|
-
function
|
|
1764
|
+
function ma(r, t, e) {
|
|
1762
1765
|
var n = null, i = null;
|
|
1763
1766
|
if (t) {
|
|
1764
1767
|
t = xr(r, t, e);
|
|
@@ -1767,25 +1770,25 @@ function ya(r, t, e) {
|
|
|
1767
1770
|
}
|
|
1768
1771
|
return { left: n, right: i };
|
|
1769
1772
|
}
|
|
1770
|
-
function
|
|
1773
|
+
function lc(r, t, e) {
|
|
1771
1774
|
return t === null ? r : (r === null || (t = xr(r.key, t, e), t.left = r), t);
|
|
1772
1775
|
}
|
|
1773
|
-
function
|
|
1776
|
+
function ws(r, t, e, n, i) {
|
|
1774
1777
|
if (r) {
|
|
1775
1778
|
n("" + t + (e ? "└── " : "├── ") + i(r) + `
|
|
1776
1779
|
`);
|
|
1777
1780
|
var o = t + (e ? " " : "│ ");
|
|
1778
|
-
r.left &&
|
|
1781
|
+
r.left && ws(r.left, o, !1, n, i), r.right && ws(r.right, o, !0, n, i);
|
|
1779
1782
|
}
|
|
1780
1783
|
}
|
|
1781
|
-
var
|
|
1784
|
+
var zs = (
|
|
1782
1785
|
/** @class */
|
|
1783
1786
|
function() {
|
|
1784
1787
|
function r(t) {
|
|
1785
|
-
t === void 0 && (t =
|
|
1788
|
+
t === void 0 && (t = uc), this._root = null, this._size = 0, this._comparator = t;
|
|
1786
1789
|
}
|
|
1787
1790
|
return r.prototype.insert = function(t, e) {
|
|
1788
|
-
return this._size++, this._root =
|
|
1791
|
+
return this._size++, this._root = _s(t, e, this._root, this._comparator);
|
|
1789
1792
|
}, r.prototype.add = function(t, e) {
|
|
1790
1793
|
var n = new Dr(t, e);
|
|
1791
1794
|
this._root === null && (n.left = n.right = null, this._size++, this._root = n);
|
|
@@ -1910,15 +1913,15 @@ var Gs = (
|
|
|
1910
1913
|
}, r.prototype.clear = function() {
|
|
1911
1914
|
return this._root = null, this._size = 0, this;
|
|
1912
1915
|
}, r.prototype.toList = function() {
|
|
1913
|
-
return
|
|
1916
|
+
return fc(this._root);
|
|
1914
1917
|
}, r.prototype.load = function(t, e, n) {
|
|
1915
1918
|
e === void 0 && (e = []), n === void 0 && (n = !1);
|
|
1916
1919
|
var i = t.length, o = this._comparator;
|
|
1917
|
-
if (n &&
|
|
1918
|
-
this._root =
|
|
1920
|
+
if (n && Ps(t, e, 0, i - 1, o), this._root === null)
|
|
1921
|
+
this._root = Ls(t, e, 0, i), this._size = i;
|
|
1919
1922
|
else {
|
|
1920
|
-
var s =
|
|
1921
|
-
i = this._size + i, this._root =
|
|
1923
|
+
var s = hc(this.toList(), cc(t, e), o);
|
|
1924
|
+
i = this._size + i, this._root = bs({ head: s }, 0, i);
|
|
1922
1925
|
}
|
|
1923
1926
|
return this;
|
|
1924
1927
|
}, r.prototype.isEmpty = function() {
|
|
@@ -1940,17 +1943,17 @@ var Gs = (
|
|
|
1940
1943
|
return String(n.key);
|
|
1941
1944
|
});
|
|
1942
1945
|
var e = [];
|
|
1943
|
-
return
|
|
1946
|
+
return ws(this._root, "", !0, function(n) {
|
|
1944
1947
|
return e.push(n);
|
|
1945
1948
|
}, t), e.join("");
|
|
1946
1949
|
}, r.prototype.update = function(t, e, n) {
|
|
1947
|
-
var i = this._comparator, o =
|
|
1948
|
-
i(t, e) < 0 ? a =
|
|
1950
|
+
var i = this._comparator, o = ma(t, this._root, i), s = o.left, a = o.right;
|
|
1951
|
+
i(t, e) < 0 ? a = _s(e, n, a, i) : s = _s(e, n, s, i), this._root = lc(s, a, i);
|
|
1949
1952
|
}, r.prototype.split = function(t) {
|
|
1950
|
-
return
|
|
1953
|
+
return ma(t, this._root, this._comparator);
|
|
1951
1954
|
}, r.prototype[Symbol.iterator] = function() {
|
|
1952
1955
|
var t;
|
|
1953
|
-
return
|
|
1956
|
+
return ac(this, function(e) {
|
|
1954
1957
|
switch (e.label) {
|
|
1955
1958
|
case 0:
|
|
1956
1959
|
t = this.minNode(), e.label = 1;
|
|
@@ -1968,38 +1971,38 @@ var Gs = (
|
|
|
1968
1971
|
}, r;
|
|
1969
1972
|
}()
|
|
1970
1973
|
);
|
|
1971
|
-
function
|
|
1974
|
+
function Ls(r, t, e, n) {
|
|
1972
1975
|
var i = n - e;
|
|
1973
1976
|
if (i > 0) {
|
|
1974
1977
|
var o = e + Math.floor(i / 2), s = r[o], a = t[o], u = new Dr(s, a);
|
|
1975
|
-
return u.left =
|
|
1978
|
+
return u.left = Ls(r, t, e, o), u.right = Ls(r, t, o + 1, n), u;
|
|
1976
1979
|
}
|
|
1977
1980
|
return null;
|
|
1978
1981
|
}
|
|
1979
|
-
function
|
|
1982
|
+
function cc(r, t) {
|
|
1980
1983
|
for (var e = new Dr(null, null), n = e, i = 0; i < r.length; i++)
|
|
1981
1984
|
n = n.next = new Dr(r[i], t[i]);
|
|
1982
1985
|
return n.next = null, e.next;
|
|
1983
1986
|
}
|
|
1984
|
-
function
|
|
1987
|
+
function fc(r) {
|
|
1985
1988
|
for (var t = r, e = [], n = !1, i = new Dr(null, null), o = i; !n; )
|
|
1986
1989
|
t ? (e.push(t), t = t.left) : e.length > 0 ? (t = o = o.next = e.pop(), t = t.right) : n = !0;
|
|
1987
1990
|
return o.next = null, i.next;
|
|
1988
1991
|
}
|
|
1989
|
-
function
|
|
1992
|
+
function bs(r, t, e) {
|
|
1990
1993
|
var n = e - t;
|
|
1991
1994
|
if (n > 0) {
|
|
1992
|
-
var i = t + Math.floor(n / 2), o =
|
|
1993
|
-
return s.left = o, r.head = r.head.next, s.right =
|
|
1995
|
+
var i = t + Math.floor(n / 2), o = bs(r, t, i), s = r.head;
|
|
1996
|
+
return s.left = o, r.head = r.head.next, s.right = bs(r, i + 1, e), s;
|
|
1994
1997
|
}
|
|
1995
1998
|
return null;
|
|
1996
1999
|
}
|
|
1997
|
-
function
|
|
2000
|
+
function hc(r, t, e) {
|
|
1998
2001
|
for (var n = new Dr(null, null), i = n, o = r, s = t; o !== null && s !== null; )
|
|
1999
2002
|
e(o.key, s.key) < 0 ? (i.next = o, o = o.next) : (i.next = s, s = s.next), i = i.next;
|
|
2000
2003
|
return o !== null ? i.next = o : s !== null && (i.next = s), n.next;
|
|
2001
2004
|
}
|
|
2002
|
-
function
|
|
2005
|
+
function Ps(r, t, e, n, i) {
|
|
2003
2006
|
if (!(e >= n)) {
|
|
2004
2007
|
for (var o = r[e + n >> 1], s = e - 1, a = n + 1; ; ) {
|
|
2005
2008
|
do
|
|
@@ -2013,25 +2016,25 @@ function bs(r, t, e, n, i) {
|
|
|
2013
2016
|
var u = r[s];
|
|
2014
2017
|
r[s] = r[a], r[a] = u, u = t[s], t[s] = t[a], t[a] = u;
|
|
2015
2018
|
}
|
|
2016
|
-
|
|
2019
|
+
Ps(r, t, e, a, i), Ps(r, t, a + 1, n, i);
|
|
2017
2020
|
}
|
|
2018
2021
|
}
|
|
2019
2022
|
function mn(r, t) {
|
|
2020
2023
|
if (!(r instanceof t))
|
|
2021
2024
|
throw new TypeError("Cannot call a class as a function");
|
|
2022
2025
|
}
|
|
2023
|
-
function
|
|
2026
|
+
function _a(r, t) {
|
|
2024
2027
|
for (var e = 0; e < t.length; e++) {
|
|
2025
2028
|
var n = t[e];
|
|
2026
2029
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n);
|
|
2027
2030
|
}
|
|
2028
2031
|
}
|
|
2029
2032
|
function xe(r, t, e) {
|
|
2030
|
-
return t &&
|
|
2033
|
+
return t && _a(r.prototype, t), e && _a(r, e), r;
|
|
2031
2034
|
}
|
|
2032
2035
|
var ji = function(t, e) {
|
|
2033
2036
|
return t.ll.x <= e.x && e.x <= t.ur.x && t.ll.y <= e.y && e.y <= t.ur.y;
|
|
2034
|
-
},
|
|
2037
|
+
}, Rs = function(t, e) {
|
|
2035
2038
|
if (e.ur.x < t.ll.x || t.ur.x < e.ll.x || e.ur.y < t.ll.y || t.ur.y < e.ll.y)
|
|
2036
2039
|
return null;
|
|
2037
2040
|
var n = t.ll.x < e.ll.x ? e.ll.x : t.ll.x, i = t.ur.x < e.ur.x ? t.ur.x : e.ur.x, o = t.ll.y < e.ll.y ? e.ll.y : t.ll.y, s = t.ur.y < e.ur.y ? t.ur.y : e.ur.y;
|
|
@@ -2047,19 +2050,19 @@ var ji = function(t, e) {
|
|
|
2047
2050
|
};
|
|
2048
2051
|
}, wr = Number.EPSILON;
|
|
2049
2052
|
wr === void 0 && (wr = Math.pow(2, -52));
|
|
2050
|
-
var
|
|
2053
|
+
var gc = wr * wr, Os = function(t, e) {
|
|
2051
2054
|
if (-wr < t && t < wr && -wr < e && e < wr)
|
|
2052
2055
|
return 0;
|
|
2053
2056
|
var n = t - e;
|
|
2054
|
-
return n * n <
|
|
2055
|
-
},
|
|
2057
|
+
return n * n < gc * t * e ? 0 : t < e ? -1 : 1;
|
|
2058
|
+
}, pc = /* @__PURE__ */ function() {
|
|
2056
2059
|
function r() {
|
|
2057
2060
|
mn(this, r), this.reset();
|
|
2058
2061
|
}
|
|
2059
2062
|
return xe(r, [{
|
|
2060
2063
|
key: "reset",
|
|
2061
2064
|
value: function() {
|
|
2062
|
-
this.xRounder = new
|
|
2065
|
+
this.xRounder = new Ea(), this.yRounder = new Ea();
|
|
2063
2066
|
}
|
|
2064
2067
|
}, {
|
|
2065
2068
|
key: "round",
|
|
@@ -2070,25 +2073,25 @@ var hc = wr * wr, Rs = function(t, e) {
|
|
|
2070
2073
|
};
|
|
2071
2074
|
}
|
|
2072
2075
|
}]), r;
|
|
2073
|
-
}(),
|
|
2076
|
+
}(), Ea = /* @__PURE__ */ function() {
|
|
2074
2077
|
function r() {
|
|
2075
|
-
mn(this, r), this.tree = new
|
|
2078
|
+
mn(this, r), this.tree = new zs(), this.round(0);
|
|
2076
2079
|
}
|
|
2077
2080
|
return xe(r, [{
|
|
2078
2081
|
key: "round",
|
|
2079
2082
|
value: function(e) {
|
|
2080
2083
|
var n = this.tree.add(e), i = this.tree.prev(n);
|
|
2081
|
-
if (i !== null &&
|
|
2084
|
+
if (i !== null && Os(n.key, i.key) === 0)
|
|
2082
2085
|
return this.tree.remove(e), i.key;
|
|
2083
2086
|
var o = this.tree.next(n);
|
|
2084
|
-
return o !== null &&
|
|
2087
|
+
return o !== null && Os(n.key, o.key) === 0 ? (this.tree.remove(e), o.key) : e;
|
|
2085
2088
|
}
|
|
2086
2089
|
}]), r;
|
|
2087
|
-
}(), no = new
|
|
2090
|
+
}(), no = new pc(), $i = function(t, e) {
|
|
2088
2091
|
return t.x * e.y - t.y * e.x;
|
|
2089
|
-
},
|
|
2092
|
+
}, ou = function(t, e) {
|
|
2090
2093
|
return t.x * e.x + t.y * e.y;
|
|
2091
|
-
},
|
|
2094
|
+
}, Ia = function(t, e, n) {
|
|
2092
2095
|
var i = {
|
|
2093
2096
|
x: e.x - t.x,
|
|
2094
2097
|
y: e.y - t.y
|
|
@@ -2096,10 +2099,10 @@ var hc = wr * wr, Rs = function(t, e) {
|
|
|
2096
2099
|
x: n.x - t.x,
|
|
2097
2100
|
y: n.y - t.y
|
|
2098
2101
|
}, s = $i(i, o);
|
|
2099
|
-
return
|
|
2102
|
+
return Os(s, 0);
|
|
2100
2103
|
}, Go = function(t) {
|
|
2101
|
-
return Math.sqrt(
|
|
2102
|
-
},
|
|
2104
|
+
return Math.sqrt(ou(t, t));
|
|
2105
|
+
}, dc = function(t, e, n) {
|
|
2103
2106
|
var i = {
|
|
2104
2107
|
x: e.x - t.x,
|
|
2105
2108
|
y: e.y - t.y
|
|
@@ -2108,7 +2111,7 @@ var hc = wr * wr, Rs = function(t, e) {
|
|
|
2108
2111
|
y: n.y - t.y
|
|
2109
2112
|
};
|
|
2110
2113
|
return $i(o, i) / Go(o) / Go(i);
|
|
2111
|
-
},
|
|
2114
|
+
}, vc = function(t, e, n) {
|
|
2112
2115
|
var i = {
|
|
2113
2116
|
x: e.x - t.x,
|
|
2114
2117
|
y: e.y - t.y
|
|
@@ -2116,26 +2119,26 @@ var hc = wr * wr, Rs = function(t, e) {
|
|
|
2116
2119
|
x: n.x - t.x,
|
|
2117
2120
|
y: n.y - t.y
|
|
2118
2121
|
};
|
|
2119
|
-
return
|
|
2120
|
-
},
|
|
2122
|
+
return ou(o, i) / Go(o) / Go(i);
|
|
2123
|
+
}, Ca = function(t, e, n) {
|
|
2121
2124
|
return e.y === 0 ? null : {
|
|
2122
2125
|
x: t.x + e.x / e.y * (n - t.y),
|
|
2123
2126
|
y: n
|
|
2124
2127
|
};
|
|
2125
|
-
},
|
|
2128
|
+
}, Na = function(t, e, n) {
|
|
2126
2129
|
return e.x === 0 ? null : {
|
|
2127
2130
|
x: n,
|
|
2128
2131
|
y: t.y + e.y / e.x * (n - t.x)
|
|
2129
2132
|
};
|
|
2130
|
-
},
|
|
2133
|
+
}, yc = function(t, e, n, i) {
|
|
2131
2134
|
if (e.x === 0)
|
|
2132
|
-
return
|
|
2135
|
+
return Na(n, i, t.x);
|
|
2133
2136
|
if (i.x === 0)
|
|
2134
|
-
return
|
|
2137
|
+
return Na(t, e, n.x);
|
|
2135
2138
|
if (e.y === 0)
|
|
2136
|
-
return
|
|
2139
|
+
return Ca(n, i, t.y);
|
|
2137
2140
|
if (i.y === 0)
|
|
2138
|
-
return
|
|
2141
|
+
return Ca(t, e, n.y);
|
|
2139
2142
|
var o = $i(e, i);
|
|
2140
2143
|
if (o == 0)
|
|
2141
2144
|
return null;
|
|
@@ -2216,8 +2219,8 @@ var hc = wr * wr, Rs = function(t, e) {
|
|
|
2216
2219
|
var n = this, i = /* @__PURE__ */ new Map(), o = function(a) {
|
|
2217
2220
|
var u = a.otherSE;
|
|
2218
2221
|
i.set(a, {
|
|
2219
|
-
sine:
|
|
2220
|
-
cosine:
|
|
2222
|
+
sine: dc(n.point, e.point, u.point),
|
|
2223
|
+
cosine: vc(n.point, e.point, u.point)
|
|
2221
2224
|
});
|
|
2222
2225
|
};
|
|
2223
2226
|
return function(s, a) {
|
|
@@ -2227,7 +2230,7 @@ var hc = wr * wr, Rs = function(t, e) {
|
|
|
2227
2230
|
};
|
|
2228
2231
|
}
|
|
2229
2232
|
}]), r;
|
|
2230
|
-
}(),
|
|
2233
|
+
}(), mc = 0, zo = /* @__PURE__ */ function() {
|
|
2231
2234
|
xe(r, null, [{
|
|
2232
2235
|
key: "compare",
|
|
2233
2236
|
/* This compare() function is for ordering segments in the sweep
|
|
@@ -2303,7 +2306,7 @@ var hc = wr * wr, Rs = function(t, e) {
|
|
|
2303
2306
|
* and possibly will be later modified */
|
|
2304
2307
|
}]);
|
|
2305
2308
|
function r(t, e, n, i) {
|
|
2306
|
-
mn(this, r), this.id = ++
|
|
2309
|
+
mn(this, r), this.id = ++mc, this.leftSE = t, t.segment = this, t.otherSE = e, this.rightSE = e, e.segment = this, e.otherSE = t, this.rings = n, this.windings = i;
|
|
2307
2310
|
}
|
|
2308
2311
|
return xe(r, [{
|
|
2309
2312
|
key: "replaceRightSE",
|
|
@@ -2385,7 +2388,7 @@ var hc = wr * wr, Rs = function(t, e) {
|
|
|
2385
2388
|
}, {
|
|
2386
2389
|
key: "getIntersection",
|
|
2387
2390
|
value: function(e) {
|
|
2388
|
-
var n = this.bbox(), i = e.bbox(), o =
|
|
2391
|
+
var n = this.bbox(), i = e.bbox(), o = Rs(n, i);
|
|
2389
2392
|
if (o === null)
|
|
2390
2393
|
return null;
|
|
2391
2394
|
var s = this.leftSE.point, a = this.rightSE.point, u = e.leftSE.point, l = e.rightSE.point, c = ji(n, u) && this.comparePoint(u) === 0, f = ji(i, s) && e.comparePoint(s) === 0, h = ji(n, l) && this.comparePoint(l) === 0, g = ji(i, a) && e.comparePoint(a) === 0;
|
|
@@ -2401,7 +2404,7 @@ var hc = wr * wr, Rs = function(t, e) {
|
|
|
2401
2404
|
return a;
|
|
2402
2405
|
if (h)
|
|
2403
2406
|
return l;
|
|
2404
|
-
var p =
|
|
2407
|
+
var p = yc(s, this.vector(), u, e.vector());
|
|
2405
2408
|
return p === null || !ji(o, p) ? null : no.round(p.x, p.y);
|
|
2406
2409
|
}
|
|
2407
2410
|
/**
|
|
@@ -2566,7 +2569,7 @@ var hc = wr * wr, Rs = function(t, e) {
|
|
|
2566
2569
|
return new r(l, c, [i], [a]);
|
|
2567
2570
|
}
|
|
2568
2571
|
}]), r;
|
|
2569
|
-
}(),
|
|
2572
|
+
}(), Sa = /* @__PURE__ */ function() {
|
|
2570
2573
|
function r(t, e, n) {
|
|
2571
2574
|
if (mn(this, r), !Array.isArray(t) || t.length === 0)
|
|
2572
2575
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
@@ -2601,11 +2604,11 @@ var hc = wr * wr, Rs = function(t, e) {
|
|
|
2601
2604
|
return e;
|
|
2602
2605
|
}
|
|
2603
2606
|
}]), r;
|
|
2604
|
-
}(),
|
|
2607
|
+
}(), _c = /* @__PURE__ */ function() {
|
|
2605
2608
|
function r(t, e) {
|
|
2606
2609
|
if (mn(this, r), !Array.isArray(t))
|
|
2607
2610
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
2608
|
-
this.exteriorRing = new
|
|
2611
|
+
this.exteriorRing = new Sa(t[0], this, !0), this.bbox = {
|
|
2609
2612
|
ll: {
|
|
2610
2613
|
x: this.exteriorRing.bbox.ll.x,
|
|
2611
2614
|
y: this.exteriorRing.bbox.ll.y
|
|
@@ -2616,7 +2619,7 @@ var hc = wr * wr, Rs = function(t, e) {
|
|
|
2616
2619
|
}
|
|
2617
2620
|
}, this.interiorRings = [];
|
|
2618
2621
|
for (var n = 1, i = t.length; n < i; n++) {
|
|
2619
|
-
var o = new
|
|
2622
|
+
var o = new Sa(t[n], this, !1);
|
|
2620
2623
|
o.bbox.ll.x < this.bbox.ll.x && (this.bbox.ll.x = o.bbox.ll.x), o.bbox.ll.y < this.bbox.ll.y && (this.bbox.ll.y = o.bbox.ll.y), o.bbox.ur.x > this.bbox.ur.x && (this.bbox.ur.x = o.bbox.ur.x), o.bbox.ur.y > this.bbox.ur.y && (this.bbox.ur.y = o.bbox.ur.y), this.interiorRings.push(o);
|
|
2621
2624
|
}
|
|
2622
2625
|
this.multiPoly = e;
|
|
@@ -2630,7 +2633,7 @@ var hc = wr * wr, Rs = function(t, e) {
|
|
|
2630
2633
|
return e;
|
|
2631
2634
|
}
|
|
2632
2635
|
}]), r;
|
|
2633
|
-
}(),
|
|
2636
|
+
}(), xa = /* @__PURE__ */ function() {
|
|
2634
2637
|
function r(t, e) {
|
|
2635
2638
|
if (mn(this, r), !Array.isArray(t))
|
|
2636
2639
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
@@ -2649,7 +2652,7 @@ var hc = wr * wr, Rs = function(t, e) {
|
|
|
2649
2652
|
}
|
|
2650
2653
|
};
|
|
2651
2654
|
for (var n = 0, i = t.length; n < i; n++) {
|
|
2652
|
-
var o = new
|
|
2655
|
+
var o = new _c(t[n], this);
|
|
2653
2656
|
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);
|
|
2654
2657
|
}
|
|
2655
2658
|
this.isSubject = e;
|
|
@@ -2663,7 +2666,7 @@ var hc = wr * wr, Rs = function(t, e) {
|
|
|
2663
2666
|
return e;
|
|
2664
2667
|
}
|
|
2665
2668
|
}]), r;
|
|
2666
|
-
}(),
|
|
2669
|
+
}(), Ec = /* @__PURE__ */ function() {
|
|
2667
2670
|
xe(r, null, [{
|
|
2668
2671
|
key: "factory",
|
|
2669
2672
|
/* Given the segments from the sweep line pass, compute & return a series
|
|
@@ -2718,12 +2721,12 @@ var hc = wr * wr, Rs = function(t, e) {
|
|
|
2718
2721
|
value: function() {
|
|
2719
2722
|
for (var e = this.events[0].point, n = [e], i = 1, o = this.events.length - 1; i < o; i++) {
|
|
2720
2723
|
var s = this.events[i].point, a = this.events[i + 1].point;
|
|
2721
|
-
|
|
2724
|
+
Ia(s, e, a) !== 0 && (n.push(s), e = s);
|
|
2722
2725
|
}
|
|
2723
2726
|
if (n.length === 1)
|
|
2724
2727
|
return null;
|
|
2725
2728
|
var u = n[0], l = n[1];
|
|
2726
|
-
|
|
2729
|
+
Ia(u, e, l) === 0 && n.shift(), n.push(n[0]);
|
|
2727
2730
|
for (var c = this.isExteriorRing() ? 1 : -1, f = this.isExteriorRing() ? 0 : n.length - 1, h = this.isExteriorRing() ? n.length : -1, g = [], p = f; p != h; p += c)
|
|
2728
2731
|
g.push([n[p].x, n[p].y]);
|
|
2729
2732
|
return g;
|
|
@@ -2761,7 +2764,7 @@ var hc = wr * wr, Rs = function(t, e) {
|
|
|
2761
2764
|
}
|
|
2762
2765
|
}
|
|
2763
2766
|
}]), r;
|
|
2764
|
-
}(),
|
|
2767
|
+
}(), wa = /* @__PURE__ */ function() {
|
|
2765
2768
|
function r(t) {
|
|
2766
2769
|
mn(this, r), this.exteriorRing = t, t.poly = this, this.interiorRings = [];
|
|
2767
2770
|
}
|
|
@@ -2783,7 +2786,7 @@ var hc = wr * wr, Rs = function(t, e) {
|
|
|
2783
2786
|
return e;
|
|
2784
2787
|
}
|
|
2785
2788
|
}]), r;
|
|
2786
|
-
}(),
|
|
2789
|
+
}(), Ic = /* @__PURE__ */ function() {
|
|
2787
2790
|
function r(t) {
|
|
2788
2791
|
mn(this, r), this.rings = t, this.polys = this._composePolys(t);
|
|
2789
2792
|
}
|
|
@@ -2803,19 +2806,19 @@ var hc = wr * wr, Rs = function(t, e) {
|
|
|
2803
2806
|
var s = e[i];
|
|
2804
2807
|
if (!s.poly)
|
|
2805
2808
|
if (s.isExteriorRing())
|
|
2806
|
-
n.push(new
|
|
2809
|
+
n.push(new wa(s));
|
|
2807
2810
|
else {
|
|
2808
2811
|
var a = s.enclosingRing();
|
|
2809
|
-
a.poly || n.push(new
|
|
2812
|
+
a.poly || n.push(new wa(a)), a.poly.addInterior(s);
|
|
2810
2813
|
}
|
|
2811
2814
|
}
|
|
2812
2815
|
return n;
|
|
2813
2816
|
}
|
|
2814
2817
|
}]), r;
|
|
2815
|
-
}(),
|
|
2818
|
+
}(), Cc = /* @__PURE__ */ function() {
|
|
2816
2819
|
function r(t) {
|
|
2817
2820
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : zo.compare;
|
|
2818
|
-
mn(this, r), this.queue = t, this.tree = new
|
|
2821
|
+
mn(this, r), this.queue = t, this.tree = new zs(e), this.segments = [];
|
|
2819
2822
|
}
|
|
2820
2823
|
return xe(r, [{
|
|
2821
2824
|
key: "process",
|
|
@@ -2888,7 +2891,7 @@ var hc = wr * wr, Rs = function(t, e) {
|
|
|
2888
2891
|
return o.push(i), e.consumedBy === void 0 && this.tree.insert(e), o;
|
|
2889
2892
|
}
|
|
2890
2893
|
}]), r;
|
|
2891
|
-
}(),
|
|
2894
|
+
}(), La = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, Nc = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6, Sc = /* @__PURE__ */ function() {
|
|
2892
2895
|
function r() {
|
|
2893
2896
|
mn(this, r);
|
|
2894
2897
|
}
|
|
@@ -2896,30 +2899,30 @@ var hc = wr * wr, Rs = function(t, e) {
|
|
|
2896
2899
|
key: "run",
|
|
2897
2900
|
value: function(e, n, i) {
|
|
2898
2901
|
Sn.type = e, no.reset();
|
|
2899
|
-
for (var o = [new
|
|
2900
|
-
o.push(new
|
|
2902
|
+
for (var o = [new xa(n, !0)], s = 0, a = i.length; s < a; s++)
|
|
2903
|
+
o.push(new xa(i[s], !1));
|
|
2901
2904
|
if (Sn.numMultiPolys = o.length, Sn.type === "difference")
|
|
2902
2905
|
for (var u = o[0], l = 1; l < o.length; )
|
|
2903
|
-
|
|
2906
|
+
Rs(o[l].bbox, u.bbox) !== null ? l++ : o.splice(l, 1);
|
|
2904
2907
|
if (Sn.type === "intersection") {
|
|
2905
2908
|
for (var c = 0, f = o.length; c < f; c++)
|
|
2906
2909
|
for (var h = o[c], g = c + 1, p = o.length; g < p; g++)
|
|
2907
|
-
if (
|
|
2910
|
+
if (Rs(h.bbox, o[g].bbox) === null)
|
|
2908
2911
|
return [];
|
|
2909
2912
|
}
|
|
2910
|
-
for (var y = new
|
|
2913
|
+
for (var y = new zs(Xn.compare), d = 0, m = o.length; d < m; d++)
|
|
2911
2914
|
for (var E = o[d].getSweepEvents(), C = 0, L = E.length; C < L; C++)
|
|
2912
|
-
if (y.insert(E[C]), y.size >
|
|
2915
|
+
if (y.insert(E[C]), y.size > La)
|
|
2913
2916
|
throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");
|
|
2914
|
-
for (var N = new
|
|
2917
|
+
for (var N = new Cc(y), x = y.size, D = y.pop(); D; ) {
|
|
2915
2918
|
var A = D.key;
|
|
2916
2919
|
if (y.size === x) {
|
|
2917
2920
|
var w = A.segment;
|
|
2918
2921
|
throw new Error("Unable to pop() ".concat(A.isLeft ? "left" : "right", " SweepEvent ") + "[".concat(A.point.x, ", ").concat(A.point.y, "] from segment #").concat(w.id, " ") + "[".concat(w.leftSE.point.x, ", ").concat(w.leftSE.point.y, "] -> ") + "[".concat(w.rightSE.point.x, ", ").concat(w.rightSE.point.y, "] from queue. ") + "Please file a bug report.");
|
|
2919
2922
|
}
|
|
2920
|
-
if (y.size >
|
|
2923
|
+
if (y.size > La)
|
|
2921
2924
|
throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");
|
|
2922
|
-
if (N.segments.length >
|
|
2925
|
+
if (N.segments.length > Nc)
|
|
2923
2926
|
throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");
|
|
2924
2927
|
for (var F = N.process(A), X = 0, R = F.length; X < R; X++) {
|
|
2925
2928
|
var Y = F[X];
|
|
@@ -2928,32 +2931,32 @@ var hc = wr * wr, Rs = function(t, e) {
|
|
|
2928
2931
|
x = y.size, D = y.pop();
|
|
2929
2932
|
}
|
|
2930
2933
|
no.reset();
|
|
2931
|
-
var T =
|
|
2934
|
+
var T = Ec.factory(N.segments), W = new Ic(T);
|
|
2932
2935
|
return W.getGeom();
|
|
2933
2936
|
}
|
|
2934
2937
|
}]), r;
|
|
2935
|
-
}(), Sn = new
|
|
2938
|
+
}(), Sn = new Sc(), xc = function(t) {
|
|
2936
2939
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2937
2940
|
n[i - 1] = arguments[i];
|
|
2938
2941
|
return Sn.run("union", t, n);
|
|
2939
|
-
},
|
|
2942
|
+
}, wc = function(t) {
|
|
2940
2943
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2941
2944
|
n[i - 1] = arguments[i];
|
|
2942
2945
|
return Sn.run("intersection", t, n);
|
|
2943
|
-
},
|
|
2946
|
+
}, Lc = function(t) {
|
|
2944
2947
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2945
2948
|
n[i - 1] = arguments[i];
|
|
2946
2949
|
return Sn.run("xor", t, n);
|
|
2947
|
-
},
|
|
2950
|
+
}, bc = function(t) {
|
|
2948
2951
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2949
2952
|
n[i - 1] = arguments[i];
|
|
2950
2953
|
return Sn.run("difference", t, n);
|
|
2951
|
-
},
|
|
2952
|
-
union:
|
|
2953
|
-
intersection:
|
|
2954
|
-
xor:
|
|
2955
|
-
difference:
|
|
2956
|
-
}, Ie = 63710088e-1,
|
|
2954
|
+
}, su = {
|
|
2955
|
+
union: xc,
|
|
2956
|
+
intersection: wc,
|
|
2957
|
+
xor: Lc,
|
|
2958
|
+
difference: bc
|
|
2959
|
+
}, Ie = 63710088e-1, au = {
|
|
2957
2960
|
centimeters: Ie * 100,
|
|
2958
2961
|
centimetres: Ie * 100,
|
|
2959
2962
|
degrees: Ie / 111325,
|
|
@@ -2975,14 +2978,14 @@ function Jo(r, t, e) {
|
|
|
2975
2978
|
var n = { type: "Feature" };
|
|
2976
2979
|
return (e.id === 0 || e.id) && (n.id = e.id), e.bbox && (n.bbox = e.bbox), n.properties = t || {}, n.geometry = r, n;
|
|
2977
2980
|
}
|
|
2978
|
-
function
|
|
2981
|
+
function Pc(r, t, e) {
|
|
2979
2982
|
if (e === void 0 && (e = {}), !r)
|
|
2980
2983
|
throw new Error("coordinates is required");
|
|
2981
2984
|
if (!Array.isArray(r))
|
|
2982
2985
|
throw new Error("coordinates must be an Array");
|
|
2983
2986
|
if (r.length < 2)
|
|
2984
2987
|
throw new Error("coordinates must be at least 2 numbers long");
|
|
2985
|
-
if (!
|
|
2988
|
+
if (!ba(r[0]) || !ba(r[1]))
|
|
2986
2989
|
throw new Error("coordinates must contain numbers");
|
|
2987
2990
|
var n = {
|
|
2988
2991
|
type: "Point",
|
|
@@ -2990,7 +2993,7 @@ function bc(r, t, e) {
|
|
|
2990
2993
|
};
|
|
2991
2994
|
return Jo(n, t, e);
|
|
2992
2995
|
}
|
|
2993
|
-
function
|
|
2996
|
+
function uu(r, t, e) {
|
|
2994
2997
|
e === void 0 && (e = {});
|
|
2995
2998
|
for (var n = 0, i = r; n < i.length; n++) {
|
|
2996
2999
|
var o = i[n];
|
|
@@ -3006,12 +3009,12 @@ function au(r, t, e) {
|
|
|
3006
3009
|
};
|
|
3007
3010
|
return Jo(a, t, e);
|
|
3008
3011
|
}
|
|
3009
|
-
function
|
|
3012
|
+
function Ds(r, t) {
|
|
3010
3013
|
t === void 0 && (t = {});
|
|
3011
3014
|
var e = { type: "FeatureCollection" };
|
|
3012
3015
|
return t.id && (e.id = t.id), t.bbox && (e.bbox = t.bbox), e.features = r, e;
|
|
3013
3016
|
}
|
|
3014
|
-
function
|
|
3017
|
+
function lu(r, t, e) {
|
|
3015
3018
|
e === void 0 && (e = {});
|
|
3016
3019
|
var n = {
|
|
3017
3020
|
type: "MultiPolygon",
|
|
@@ -3019,32 +3022,32 @@ function uu(r, t, e) {
|
|
|
3019
3022
|
};
|
|
3020
3023
|
return Jo(n, t, e);
|
|
3021
3024
|
}
|
|
3022
|
-
function
|
|
3025
|
+
function Rc(r, t) {
|
|
3023
3026
|
t === void 0 && (t = "kilometers");
|
|
3024
|
-
var e =
|
|
3027
|
+
var e = au[t];
|
|
3025
3028
|
if (!e)
|
|
3026
3029
|
throw new Error(t + " units is invalid");
|
|
3027
3030
|
return r * e;
|
|
3028
3031
|
}
|
|
3029
|
-
function
|
|
3032
|
+
function Oc(r, t) {
|
|
3030
3033
|
t === void 0 && (t = "kilometers");
|
|
3031
|
-
var e =
|
|
3034
|
+
var e = au[t];
|
|
3032
3035
|
if (!e)
|
|
3033
3036
|
throw new Error(t + " units is invalid");
|
|
3034
3037
|
return r / e;
|
|
3035
3038
|
}
|
|
3036
|
-
function
|
|
3039
|
+
function ba(r) {
|
|
3037
3040
|
return !isNaN(r) && r !== null && !Array.isArray(r);
|
|
3038
3041
|
}
|
|
3039
3042
|
function Vo(r) {
|
|
3040
3043
|
return r.type === "Feature" ? r.geometry : r;
|
|
3041
3044
|
}
|
|
3042
|
-
function
|
|
3045
|
+
function Dc(r, t, e) {
|
|
3043
3046
|
e === void 0 && (e = {});
|
|
3044
|
-
var n = Vo(r), i = Vo(t), o =
|
|
3045
|
-
return o.length === 0 ? null : o.length === 1 ?
|
|
3047
|
+
var n = Vo(r), i = Vo(t), o = su.union(n.coordinates, i.coordinates);
|
|
3048
|
+
return o.length === 0 ? null : o.length === 1 ? uu(o[0], e.properties) : lu(o, e.properties);
|
|
3046
3049
|
}
|
|
3047
|
-
function
|
|
3050
|
+
function Tc(r) {
|
|
3048
3051
|
let t, e, n;
|
|
3049
3052
|
return {
|
|
3050
3053
|
c() {
|
|
@@ -3088,18 +3091,18 @@ function Dc(r) {
|
|
|
3088
3091
|
}
|
|
3089
3092
|
};
|
|
3090
3093
|
}
|
|
3091
|
-
function
|
|
3094
|
+
function Mc(r, t, e) {
|
|
3092
3095
|
let { displayIn: n } = t;
|
|
3093
3096
|
return r.$$set = (i) => {
|
|
3094
3097
|
"displayIn" in i && e(0, n = i.displayIn);
|
|
3095
3098
|
}, [n];
|
|
3096
3099
|
}
|
|
3097
|
-
class
|
|
3100
|
+
class Ac extends Xr {
|
|
3098
3101
|
constructor(t) {
|
|
3099
|
-
super(), qr(this, t,
|
|
3102
|
+
super(), qr(this, t, Mc, Tc, Ur, { displayIn: 0 });
|
|
3100
3103
|
}
|
|
3101
3104
|
}
|
|
3102
|
-
function
|
|
3105
|
+
function cu(r, t, e) {
|
|
3103
3106
|
if (r !== null)
|
|
3104
3107
|
for (var n, i, o, s, a, u, l, c = 0, f = 0, h, g = r.type, p = g === "FeatureCollection", y = g === "Feature", d = p ? r.features.length : 1, m = 0; m < d; m++) {
|
|
3105
3108
|
l = p ? r.features[m].geometry : y ? r.geometry : r, h = l ? l.type === "GeometryCollection" : !1, a = h ? l.geometries.length : 1;
|
|
@@ -3176,7 +3179,7 @@ function lu(r, t, e) {
|
|
|
3176
3179
|
break;
|
|
3177
3180
|
case "GeometryCollection":
|
|
3178
3181
|
for (n = 0; n < s.geometries.length; n++)
|
|
3179
|
-
if (
|
|
3182
|
+
if (cu(s.geometries[n], t, e) === !1)
|
|
3180
3183
|
return !1;
|
|
3181
3184
|
break;
|
|
3182
3185
|
default:
|
|
@@ -3186,14 +3189,14 @@ function lu(r, t, e) {
|
|
|
3186
3189
|
}
|
|
3187
3190
|
}
|
|
3188
3191
|
}
|
|
3189
|
-
function
|
|
3192
|
+
function Pa(r, t) {
|
|
3190
3193
|
if (r.type === "Feature")
|
|
3191
3194
|
t(r, 0);
|
|
3192
3195
|
else if (r.type === "FeatureCollection")
|
|
3193
3196
|
for (var e = 0; e < r.features.length && t(r.features[e], e) !== !1; e++)
|
|
3194
3197
|
;
|
|
3195
3198
|
}
|
|
3196
|
-
function
|
|
3199
|
+
function fu(r, t) {
|
|
3197
3200
|
var e, n, i, o, s, a, u, l, c, f, h = 0, g = r.type === "FeatureCollection", p = r.type === "Feature", y = g ? r.features.length : 1;
|
|
3198
3201
|
for (e = 0; e < y; e++) {
|
|
3199
3202
|
for (a = g ? r.features[e].geometry : p ? r.geometry : r, l = g ? r.features[e].properties : p ? r.properties : {}, c = g ? r.features[e].bbox : p ? r.bbox : void 0, f = g ? r.features[e].id : p ? r.id : void 0, u = a ? a.type === "GeometryCollection" : !1, s = u ? a.geometries.length : 1, i = 0; i < s; i++) {
|
|
@@ -3244,17 +3247,17 @@ function cu(r, t) {
|
|
|
3244
3247
|
h++;
|
|
3245
3248
|
}
|
|
3246
3249
|
}
|
|
3247
|
-
function
|
|
3250
|
+
function Ts(r) {
|
|
3248
3251
|
var t = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
3249
|
-
return
|
|
3252
|
+
return cu(r, function(e) {
|
|
3250
3253
|
t[0] > e[0] && (t[0] = e[0]), t[1] > e[1] && (t[1] = e[1]), t[2] < e[0] && (t[2] = e[0]), t[3] < e[1] && (t[3] = e[1]);
|
|
3251
3254
|
}), t;
|
|
3252
3255
|
}
|
|
3253
|
-
|
|
3254
|
-
function
|
|
3256
|
+
Ts.default = Ts;
|
|
3257
|
+
function Fc(r, t) {
|
|
3255
3258
|
t === void 0 && (t = {});
|
|
3256
|
-
var e =
|
|
3257
|
-
return
|
|
3259
|
+
var e = Ts(r), n = (e[0] + e[2]) / 2, i = (e[1] + e[3]) / 2;
|
|
3260
|
+
return Pc([n, i], t.properties, t);
|
|
3258
3261
|
}
|
|
3259
3262
|
"fill" in Array.prototype || Object.defineProperty(Array.prototype, "fill", {
|
|
3260
3263
|
configurable: !0,
|
|
@@ -3294,13 +3297,13 @@ Jr.prototype.getClass = function() {
|
|
|
3294
3297
|
Jr.prototype.equalsWithTolerance = function(t, e, n) {
|
|
3295
3298
|
return Math.abs(t - e) <= n;
|
|
3296
3299
|
};
|
|
3297
|
-
var
|
|
3300
|
+
var ft = function(r) {
|
|
3298
3301
|
function t(e) {
|
|
3299
3302
|
r.call(this, e), this.name = "IllegalArgumentException", this.message = e, this.stack = new r().stack;
|
|
3300
3303
|
}
|
|
3301
3304
|
return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t;
|
|
3302
3305
|
}(Error), V = function() {
|
|
3303
|
-
},
|
|
3306
|
+
}, hu = { MAX_VALUE: { configurable: !0 } };
|
|
3304
3307
|
V.isNaN = function(t) {
|
|
3305
3308
|
return Number.isNaN(t);
|
|
3306
3309
|
};
|
|
@@ -3313,10 +3316,10 @@ V.longBitsToDouble = function(t) {
|
|
|
3313
3316
|
V.isInfinite = function(t) {
|
|
3314
3317
|
return !Number.isFinite(t);
|
|
3315
3318
|
};
|
|
3316
|
-
|
|
3319
|
+
hu.MAX_VALUE.get = function() {
|
|
3317
3320
|
return Number.MAX_VALUE;
|
|
3318
3321
|
};
|
|
3319
|
-
Object.defineProperties(V,
|
|
3322
|
+
Object.defineProperties(V, hu);
|
|
3320
3323
|
var ke = function() {
|
|
3321
3324
|
}, $o = function() {
|
|
3322
3325
|
}, Ci = function() {
|
|
@@ -3344,7 +3347,7 @@ v.prototype.setOrdinate = function(t, e) {
|
|
|
3344
3347
|
this.z = e;
|
|
3345
3348
|
break;
|
|
3346
3349
|
default:
|
|
3347
|
-
throw new
|
|
3350
|
+
throw new ft("Invalid ordinate index: " + t);
|
|
3348
3351
|
}
|
|
3349
3352
|
};
|
|
3350
3353
|
v.prototype.equals2D = function() {
|
|
@@ -3365,7 +3368,7 @@ v.prototype.getOrdinate = function(t) {
|
|
|
3365
3368
|
case v.Z:
|
|
3366
3369
|
return this.z;
|
|
3367
3370
|
}
|
|
3368
|
-
throw new
|
|
3371
|
+
throw new ft("Invalid ordinate index: " + t);
|
|
3369
3372
|
};
|
|
3370
3373
|
v.prototype.equals3D = function(t) {
|
|
3371
3374
|
return this.x === t.x && this.y === t.y && (this.z === t.z || V.isNaN(this.z)) && V.isNaN(t.z);
|
|
@@ -3439,7 +3442,7 @@ var sr = function(t) {
|
|
|
3439
3442
|
if (arguments.length === 1) {
|
|
3440
3443
|
var e = arguments[0];
|
|
3441
3444
|
if (e !== 2 && e !== 3)
|
|
3442
|
-
throw new
|
|
3445
|
+
throw new ft("only 2 or 3 dimensions may be specified");
|
|
3443
3446
|
this._dimensionsToTest = e;
|
|
3444
3447
|
}
|
|
3445
3448
|
}
|
|
@@ -3494,7 +3497,7 @@ _.toLocationSymbol = function(t) {
|
|
|
3494
3497
|
case _.NONE:
|
|
3495
3498
|
return "-";
|
|
3496
3499
|
}
|
|
3497
|
-
throw new
|
|
3500
|
+
throw new ft("Unknown location value: " + t);
|
|
3498
3501
|
};
|
|
3499
3502
|
mo.INTERIOR.get = function() {
|
|
3500
3503
|
return 0;
|
|
@@ -3512,7 +3515,7 @@ Object.defineProperties(_, mo);
|
|
|
3512
3515
|
var z = function(r, t) {
|
|
3513
3516
|
return r.interfaces_ && r.interfaces_().indexOf(t) > -1;
|
|
3514
3517
|
}, we = function() {
|
|
3515
|
-
},
|
|
3518
|
+
}, gu = { LOG_10: { configurable: !0 } };
|
|
3516
3519
|
we.prototype.interfaces_ = function() {
|
|
3517
3520
|
return [];
|
|
3518
3521
|
};
|
|
@@ -3551,10 +3554,10 @@ we.max = function() {
|
|
|
3551
3554
|
we.average = function(t, e) {
|
|
3552
3555
|
return (t + e) / 2;
|
|
3553
3556
|
};
|
|
3554
|
-
|
|
3557
|
+
gu.LOG_10.get = function() {
|
|
3555
3558
|
return Math.log(10);
|
|
3556
3559
|
};
|
|
3557
|
-
Object.defineProperties(we,
|
|
3560
|
+
Object.defineProperties(we, gu);
|
|
3558
3561
|
var _n = function(t) {
|
|
3559
3562
|
this.str = t;
|
|
3560
3563
|
};
|
|
@@ -4005,7 +4008,7 @@ Ze.SCI_NOT_ZERO.get = function() {
|
|
|
4005
4008
|
};
|
|
4006
4009
|
Object.defineProperties(I, Ze);
|
|
4007
4010
|
var ce = function() {
|
|
4008
|
-
},
|
|
4011
|
+
}, pu = { DP_SAFE_EPSILON: { configurable: !0 } };
|
|
4009
4012
|
ce.prototype.interfaces_ = function() {
|
|
4010
4013
|
return [];
|
|
4011
4014
|
};
|
|
@@ -4045,10 +4048,10 @@ ce.orientationIndexFilter = function(t, e, n) {
|
|
|
4045
4048
|
ce.signum = function(t) {
|
|
4046
4049
|
return t > 0 ? 1 : t < 0 ? -1 : 0;
|
|
4047
4050
|
};
|
|
4048
|
-
|
|
4051
|
+
pu.DP_SAFE_EPSILON.get = function() {
|
|
4049
4052
|
return 1e-15;
|
|
4050
4053
|
};
|
|
4051
|
-
Object.defineProperties(ce,
|
|
4054
|
+
Object.defineProperties(ce, pu);
|
|
4052
4055
|
var Q = function() {
|
|
4053
4056
|
}, _o = { X: { configurable: !0 }, Y: { configurable: !0 }, Z: { configurable: !0 }, M: { configurable: !0 } };
|
|
4054
4057
|
_o.X.get = function() {
|
|
@@ -4094,7 +4097,7 @@ Q.prototype.getClass = function() {
|
|
|
4094
4097
|
return Q;
|
|
4095
4098
|
};
|
|
4096
4099
|
Object.defineProperties(Q, _o);
|
|
4097
|
-
var
|
|
4100
|
+
var du = function() {
|
|
4098
4101
|
}, qi = function(r) {
|
|
4099
4102
|
function t() {
|
|
4100
4103
|
r.call(this, "Projective point not representable on the Cartesian plane.");
|
|
@@ -4104,7 +4107,7 @@ var pu = function() {
|
|
|
4104
4107
|
}, t.prototype.getClass = function() {
|
|
4105
4108
|
return t;
|
|
4106
4109
|
}, t;
|
|
4107
|
-
}(
|
|
4110
|
+
}(du), qt = function() {
|
|
4108
4111
|
};
|
|
4109
4112
|
qt.arraycopy = function(t, e, n, i, o) {
|
|
4110
4113
|
for (var s = 0, a = e; a < e + o; a++)
|
|
@@ -4187,7 +4190,7 @@ var k = function r() {
|
|
|
4187
4190
|
var o = arguments[0], s = arguments[1], a = arguments[2], u = arguments[3];
|
|
4188
4191
|
this.init(o, s, a, u);
|
|
4189
4192
|
}
|
|
4190
|
-
},
|
|
4193
|
+
}, vu = { serialVersionUID: { configurable: !0 } };
|
|
4191
4194
|
k.prototype.getArea = function() {
|
|
4192
4195
|
return this.getWidth() * this.getHeight();
|
|
4193
4196
|
};
|
|
@@ -4369,10 +4372,10 @@ k.intersects = function() {
|
|
|
4369
4372
|
return !(c > l || f < u || (u = Math.min(s.y, a.y), l = Math.max(s.y, a.y), c = Math.min(i.y, o.y), f = Math.max(i.y, o.y), c > l) || f < u);
|
|
4370
4373
|
}
|
|
4371
4374
|
};
|
|
4372
|
-
|
|
4375
|
+
vu.serialVersionUID.get = function() {
|
|
4373
4376
|
return 5873921885273102e3;
|
|
4374
4377
|
};
|
|
4375
|
-
Object.defineProperties(k,
|
|
4378
|
+
Object.defineProperties(k, vu);
|
|
4376
4379
|
var $e = {
|
|
4377
4380
|
typeStr: /^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/,
|
|
4378
4381
|
emptyTypeStr: /^\s*(\w+)\s*EMPTY\s*$/,
|
|
@@ -5047,7 +5050,7 @@ M.computeLength = function(t) {
|
|
|
5047
5050
|
M.isCCW = function(t) {
|
|
5048
5051
|
var e = t.length - 1;
|
|
5049
5052
|
if (e < 3)
|
|
5050
|
-
throw new
|
|
5053
|
+
throw new ft("Ring has fewer than 4 points, so orientation cannot be determined");
|
|
5051
5054
|
for (var n = t[0], i = 0, o = 1; o <= e; o++) {
|
|
5052
5055
|
var s = t[o];
|
|
5053
5056
|
s.y > n.y && (n = s, i = o);
|
|
@@ -5080,7 +5083,7 @@ M.distancePointLine = function() {
|
|
|
5080
5083
|
if (arguments.length === 2) {
|
|
5081
5084
|
var t = arguments[0], e = arguments[1];
|
|
5082
5085
|
if (e.length === 0)
|
|
5083
|
-
throw new
|
|
5086
|
+
throw new ft("Line array must contain at least one vertex");
|
|
5084
5087
|
for (var n = t.distance(e[0]), i = 0; i < e.length - 1; i++) {
|
|
5085
5088
|
var o = M.distancePointLine(t, e[i], e[i + 1]);
|
|
5086
5089
|
o < n && (n = o);
|
|
@@ -5205,7 +5208,7 @@ G.prototype.getEnvelope = function() {
|
|
|
5205
5208
|
};
|
|
5206
5209
|
G.prototype.checkNotGeometryCollection = function(t) {
|
|
5207
5210
|
if (t.getSortIndex() === G.SORTINDEX_GEOMETRYCOLLECTION)
|
|
5208
|
-
throw new
|
|
5211
|
+
throw new ft("This method does not support GeometryCollection arguments");
|
|
5209
5212
|
};
|
|
5210
5213
|
G.prototype.equal = function(t, e, n) {
|
|
5211
5214
|
return n === 0 ? t.equals(e) : t.distance(e) <= n;
|
|
@@ -5286,15 +5289,15 @@ Fn.SORTINDEX_GEOMETRYCOLLECTION.get = function() {
|
|
|
5286
5289
|
return 7;
|
|
5287
5290
|
};
|
|
5288
5291
|
Fn.geometryChangedFilter.get = function() {
|
|
5289
|
-
return
|
|
5292
|
+
return Vs;
|
|
5290
5293
|
};
|
|
5291
5294
|
Object.defineProperties(G, Fn);
|
|
5292
|
-
var
|
|
5295
|
+
var Vs = function() {
|
|
5293
5296
|
};
|
|
5294
|
-
|
|
5297
|
+
Vs.interfaces_ = function() {
|
|
5295
5298
|
return [Qn];
|
|
5296
5299
|
};
|
|
5297
|
-
|
|
5300
|
+
Vs.filter = function(t) {
|
|
5298
5301
|
t.geometryChangedAction();
|
|
5299
5302
|
};
|
|
5300
5303
|
var Ln = function() {
|
|
@@ -5405,11 +5408,11 @@ Lt.prototype.toArray = function() {
|
|
|
5405
5408
|
};
|
|
5406
5409
|
Lt.prototype.remove = function() {
|
|
5407
5410
|
};
|
|
5408
|
-
function
|
|
5411
|
+
function Us(r) {
|
|
5409
5412
|
this.message = r || "";
|
|
5410
5413
|
}
|
|
5411
|
-
|
|
5412
|
-
|
|
5414
|
+
Us.prototype = new Error();
|
|
5415
|
+
Us.prototype.name = "IndexOutOfBoundsException";
|
|
5413
5416
|
var Xi = function() {
|
|
5414
5417
|
};
|
|
5415
5418
|
Xi.prototype.hasNext = function() {
|
|
@@ -5451,10 +5454,10 @@ var O = function(r) {
|
|
|
5451
5454
|
var o = this.array_[n];
|
|
5452
5455
|
return this.array_[n] = i, o;
|
|
5453
5456
|
}, t.prototype.iterator = function() {
|
|
5454
|
-
return new
|
|
5457
|
+
return new kc(this);
|
|
5455
5458
|
}, t.prototype.get = function(n) {
|
|
5456
5459
|
if (n < 0 || n >= this.size())
|
|
5457
|
-
throw new
|
|
5460
|
+
throw new Us();
|
|
5458
5461
|
return this.array_[n];
|
|
5459
5462
|
}, t.prototype.isEmpty = function() {
|
|
5460
5463
|
return this.array_.length === 0;
|
|
@@ -5472,7 +5475,7 @@ var O = function(r) {
|
|
|
5472
5475
|
}
|
|
5473
5476
|
return o;
|
|
5474
5477
|
}, t;
|
|
5475
|
-
}(qe),
|
|
5478
|
+
}(qe), kc = function(r) {
|
|
5476
5479
|
function t(e) {
|
|
5477
5480
|
r.call(this), this.arrayList_ = e, this.position_ = 0;
|
|
5478
5481
|
}
|
|
@@ -5801,7 +5804,7 @@ pi.prototype.values = function() {
|
|
|
5801
5804
|
};
|
|
5802
5805
|
pi.prototype.entrySet = function() {
|
|
5803
5806
|
};
|
|
5804
|
-
var
|
|
5807
|
+
var Bc = function(r) {
|
|
5805
5808
|
function t() {
|
|
5806
5809
|
r.apply(this, arguments);
|
|
5807
5810
|
}
|
|
@@ -5817,7 +5820,7 @@ function ns() {
|
|
|
5817
5820
|
ns.prototype = new Lt();
|
|
5818
5821
|
ns.prototype.contains = function() {
|
|
5819
5822
|
};
|
|
5820
|
-
var
|
|
5823
|
+
var qs = function(r) {
|
|
5821
5824
|
function t() {
|
|
5822
5825
|
r.call(this), this.array_ = [], arguments[0] instanceof Lt && this.addAll(arguments[0]);
|
|
5823
5826
|
}
|
|
@@ -5845,9 +5848,9 @@ var Us = function(r) {
|
|
|
5845
5848
|
i.push(n.array_[o]);
|
|
5846
5849
|
return i;
|
|
5847
5850
|
}, t.prototype.iterator = function() {
|
|
5848
|
-
return new
|
|
5851
|
+
return new Gc(this);
|
|
5849
5852
|
}, t;
|
|
5850
|
-
}(ns),
|
|
5853
|
+
}(ns), Gc = function(r) {
|
|
5851
5854
|
function t(e) {
|
|
5852
5855
|
r.call(this), this.hashSet_ = e, this.position_ = 0;
|
|
5853
5856
|
}
|
|
@@ -5861,25 +5864,25 @@ var Us = function(r) {
|
|
|
5861
5864
|
throw new Io();
|
|
5862
5865
|
}, t;
|
|
5863
5866
|
}(Xi), Yn = 0, Nr = 1;
|
|
5864
|
-
function
|
|
5867
|
+
function Ra(r) {
|
|
5865
5868
|
return r === null ? Yn : r.color;
|
|
5866
5869
|
}
|
|
5867
|
-
function
|
|
5870
|
+
function st(r) {
|
|
5868
5871
|
return r === null ? null : r.parent;
|
|
5869
5872
|
}
|
|
5870
5873
|
function Vn(r, t) {
|
|
5871
5874
|
r !== null && (r.color = t);
|
|
5872
5875
|
}
|
|
5873
|
-
function
|
|
5876
|
+
function Es(r) {
|
|
5874
5877
|
return r === null ? null : r.left;
|
|
5875
5878
|
}
|
|
5876
|
-
function
|
|
5879
|
+
function Oa(r) {
|
|
5877
5880
|
return r === null ? null : r.right;
|
|
5878
5881
|
}
|
|
5879
5882
|
function Kt() {
|
|
5880
5883
|
this.root_ = null, this.size_ = 0;
|
|
5881
5884
|
}
|
|
5882
|
-
Kt.prototype = new
|
|
5885
|
+
Kt.prototype = new Bc();
|
|
5883
5886
|
Kt.prototype.get = function(r) {
|
|
5884
5887
|
for (var t = this.root_; t !== null; ) {
|
|
5885
5888
|
var e = r.compareTo(t.key);
|
|
@@ -5938,12 +5941,12 @@ Kt.prototype.put = function(r, t) {
|
|
|
5938
5941
|
Kt.prototype.fixAfterInsertion = function(r) {
|
|
5939
5942
|
var t = this;
|
|
5940
5943
|
for (r.color = Nr; r != null && r !== this.root_ && r.parent.color === Nr; )
|
|
5941
|
-
if (
|
|
5942
|
-
var e =
|
|
5943
|
-
|
|
5944
|
+
if (st(r) === Es(st(st(r)))) {
|
|
5945
|
+
var e = Oa(st(st(r)));
|
|
5946
|
+
Ra(e) === Nr ? (Vn(st(r), Yn), Vn(e, Yn), Vn(st(st(r)), Nr), r = st(st(r))) : (r === Oa(st(r)) && (r = st(r), t.rotateLeft(r)), Vn(st(r), Yn), Vn(st(st(r)), Nr), t.rotateRight(st(st(r))));
|
|
5944
5947
|
} else {
|
|
5945
|
-
var n =
|
|
5946
|
-
|
|
5948
|
+
var n = Es(st(st(r)));
|
|
5949
|
+
Ra(n) === Nr ? (Vn(st(r), Yn), Vn(n, Yn), Vn(st(st(r)), Nr), r = st(st(r))) : (r === Es(st(r)) && (r = st(r), t.rotateRight(r)), Vn(st(r), Yn), Vn(st(st(r)), Nr), t.rotateLeft(st(st(r))));
|
|
5947
5950
|
}
|
|
5948
5951
|
this.root_.color = Yn;
|
|
5949
5952
|
};
|
|
@@ -5955,7 +5958,7 @@ Kt.prototype.values = function() {
|
|
|
5955
5958
|
return r;
|
|
5956
5959
|
};
|
|
5957
5960
|
Kt.prototype.entrySet = function() {
|
|
5958
|
-
var r = new
|
|
5961
|
+
var r = new qs(), t = this.getFirstEntry();
|
|
5959
5962
|
if (t !== null)
|
|
5960
5963
|
for (r.add(t); (t = Kt.successor(t)) !== null; )
|
|
5961
5964
|
r.add(t);
|
|
@@ -6004,13 +6007,13 @@ oo.prototype.interfaces_ = function() {
|
|
|
6004
6007
|
oo.prototype.getClass = function() {
|
|
6005
6008
|
return oo;
|
|
6006
6009
|
};
|
|
6007
|
-
function
|
|
6010
|
+
function yu() {
|
|
6008
6011
|
}
|
|
6009
|
-
|
|
6012
|
+
yu.prototype = new ns();
|
|
6010
6013
|
function ln() {
|
|
6011
6014
|
this.array_ = [], arguments[0] instanceof Lt && this.addAll(arguments[0]);
|
|
6012
6015
|
}
|
|
6013
|
-
ln.prototype = new
|
|
6016
|
+
ln.prototype = new yu();
|
|
6014
6017
|
ln.prototype.contains = function(r) {
|
|
6015
6018
|
for (var t = this, e = 0, n = this.array_.length; e < n; e++) {
|
|
6016
6019
|
var i = t.array_[e];
|
|
@@ -6153,7 +6156,7 @@ Z.toDimensionSymbol = function(t) {
|
|
|
6153
6156
|
case Z.A:
|
|
6154
6157
|
return Z.SYM_A;
|
|
6155
6158
|
}
|
|
6156
|
-
throw new
|
|
6159
|
+
throw new ft("Unknown dimension value: " + t);
|
|
6157
6160
|
};
|
|
6158
6161
|
Z.toDimensionValue = function(t) {
|
|
6159
6162
|
switch (ro.toUpperCase(t)) {
|
|
@@ -6170,7 +6173,7 @@ Z.toDimensionValue = function(t) {
|
|
|
6170
6173
|
case Z.SYM_A:
|
|
6171
6174
|
return Z.A;
|
|
6172
6175
|
}
|
|
6173
|
-
throw new
|
|
6176
|
+
throw new ft("Unknown dimension symbol: " + t);
|
|
6174
6177
|
};
|
|
6175
6178
|
Object.defineProperties(Z, Je);
|
|
6176
6179
|
var cn = function() {
|
|
@@ -6200,7 +6203,7 @@ Ye.prototype.getClass = function() {
|
|
|
6200
6203
|
var ie = function(r) {
|
|
6201
6204
|
function t(n, i) {
|
|
6202
6205
|
if (r.call(this, i), this._geometries = n || [], r.hasNullElements(this._geometries))
|
|
6203
|
-
throw new
|
|
6206
|
+
throw new ft("geometries must not contain null elements");
|
|
6204
6207
|
}
|
|
6205
6208
|
r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t;
|
|
6206
6209
|
var e = { serialVersionUID: { configurable: !0 } };
|
|
@@ -6443,20 +6446,20 @@ qo.prototype.interfaces_ = function() {
|
|
|
6443
6446
|
qo.prototype.getClass = function() {
|
|
6444
6447
|
return qo;
|
|
6445
6448
|
};
|
|
6446
|
-
function Gc() {
|
|
6447
|
-
}
|
|
6448
6449
|
function zc() {
|
|
6449
6450
|
}
|
|
6450
|
-
|
|
6451
|
-
};
|
|
6452
|
-
function Uc() {
|
|
6451
|
+
function Vc() {
|
|
6453
6452
|
}
|
|
6453
|
+
var Uc = function() {
|
|
6454
|
+
};
|
|
6454
6455
|
function qc() {
|
|
6455
6456
|
}
|
|
6456
6457
|
function Xc() {
|
|
6457
6458
|
}
|
|
6459
|
+
function Yc() {
|
|
6460
|
+
}
|
|
6458
6461
|
var De = function() {
|
|
6459
|
-
},
|
|
6462
|
+
}, Xs = { NEWLINE: { configurable: !0 }, SIMPLE_ORDINATE_FORMAT: { configurable: !0 } };
|
|
6460
6463
|
De.prototype.interfaces_ = function() {
|
|
6461
6464
|
return [];
|
|
6462
6465
|
};
|
|
@@ -6470,16 +6473,16 @@ De.chars = function(t, e) {
|
|
|
6470
6473
|
};
|
|
6471
6474
|
De.getStackTrace = function() {
|
|
6472
6475
|
if (arguments.length === 1) {
|
|
6473
|
-
var t = arguments[0], e = new
|
|
6476
|
+
var t = arguments[0], e = new qc(), n = new zc();
|
|
6474
6477
|
return t.printStackTrace(n), e.toString();
|
|
6475
6478
|
} else if (arguments.length === 2) {
|
|
6476
6479
|
var i = arguments[0], o = arguments[1], s = "";
|
|
6477
|
-
new
|
|
6478
|
-
for (var a = new
|
|
6480
|
+
new Vc(De.getStackTrace(i));
|
|
6481
|
+
for (var a = new Yc(), u = 0; u < o; u++)
|
|
6479
6482
|
try {
|
|
6480
6483
|
s += a.readLine() + De.NEWLINE;
|
|
6481
6484
|
} catch (l) {
|
|
6482
|
-
if (l instanceof
|
|
6485
|
+
if (l instanceof Xc)
|
|
6483
6486
|
q.shouldNeverReachHere();
|
|
6484
6487
|
else
|
|
6485
6488
|
throw l;
|
|
@@ -6507,13 +6510,13 @@ De.toString = function() {
|
|
|
6507
6510
|
De.spaces = function(t) {
|
|
6508
6511
|
return De.chars(" ", t);
|
|
6509
6512
|
};
|
|
6510
|
-
|
|
6513
|
+
Xs.NEWLINE.get = function() {
|
|
6511
6514
|
return qt.getProperty("line.separator");
|
|
6512
6515
|
};
|
|
6513
|
-
|
|
6514
|
-
return new
|
|
6516
|
+
Xs.SIMPLE_ORDINATE_FORMAT.get = function() {
|
|
6517
|
+
return new Uc();
|
|
6515
6518
|
};
|
|
6516
|
-
Object.defineProperties(De,
|
|
6519
|
+
Object.defineProperties(De, Xs);
|
|
6517
6520
|
var Ct = function() {
|
|
6518
6521
|
};
|
|
6519
6522
|
Ct.prototype.interfaces_ = function() {
|
|
@@ -6702,7 +6705,7 @@ var yt = function(r) {
|
|
|
6702
6705
|
return this._points.size() === 0;
|
|
6703
6706
|
}, t.prototype.init = function(i) {
|
|
6704
6707
|
if (i === null && (i = this.getFactory().getCoordinateSequenceFactory().create([])), i.size() === 1)
|
|
6705
|
-
throw new
|
|
6708
|
+
throw new ft("Invalid number of points in LineString (found " + i.size() + " - must be 0 or >= 2)");
|
|
6706
6709
|
this._points = i;
|
|
6707
6710
|
}, t.prototype.isCoordinate = function(i) {
|
|
6708
6711
|
for (var o = this, s = 0; s < this._points.size(); s++)
|
|
@@ -6829,9 +6832,9 @@ fr.prototype.getClass = function() {
|
|
|
6829
6832
|
var Ot = function(r) {
|
|
6830
6833
|
function t(n, i, o) {
|
|
6831
6834
|
if (r.call(this, o), this._shell = null, this._holes = null, n === null && (n = this.getFactory().createLinearRing()), i === null && (i = []), r.hasNullElements(i))
|
|
6832
|
-
throw new
|
|
6835
|
+
throw new ft("holes must not contain null elements");
|
|
6833
6836
|
if (n.isEmpty() && r.hasNonEmptyElements(i))
|
|
6834
|
-
throw new
|
|
6837
|
+
throw new ft("shell is empty but holes are not");
|
|
6835
6838
|
this._shell = n, this._holes = i;
|
|
6836
6839
|
}
|
|
6837
6840
|
r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t;
|
|
@@ -7060,9 +7063,9 @@ var Ot = function(r) {
|
|
|
7060
7063
|
return o;
|
|
7061
7064
|
}, t.prototype.validateConstruction = function() {
|
|
7062
7065
|
if (!this.isEmpty() && !r.prototype.isClosed.call(this))
|
|
7063
|
-
throw new
|
|
7066
|
+
throw new ft("Points of LinearRing do not form a closed linestring");
|
|
7064
7067
|
if (this.getCoordinateSequence().size() >= 1 && this.getCoordinateSequence().size() < t.MINIMUM_VALID_SIZE)
|
|
7065
|
-
throw new
|
|
7068
|
+
throw new ft("Invalid number of points in LinearRing (found " + this.getCoordinateSequence().size() + " - must be 0 or >= 4)");
|
|
7066
7069
|
}, t.prototype.getGeometryType = function() {
|
|
7067
7070
|
return "LinearRing";
|
|
7068
7071
|
}, t.prototype.copy = function() {
|
|
@@ -7236,7 +7239,7 @@ var _t = function() {
|
|
|
7236
7239
|
t._coordinates[c] = new v();
|
|
7237
7240
|
}
|
|
7238
7241
|
}
|
|
7239
|
-
},
|
|
7242
|
+
}, mu = { serialVersionUID: { configurable: !0 } };
|
|
7240
7243
|
_t.prototype.setOrdinate = function(t, e, n) {
|
|
7241
7244
|
switch (e) {
|
|
7242
7245
|
case Q.X:
|
|
@@ -7249,7 +7252,7 @@ _t.prototype.setOrdinate = function(t, e, n) {
|
|
|
7249
7252
|
this._coordinates[t].z = n;
|
|
7250
7253
|
break;
|
|
7251
7254
|
default:
|
|
7252
|
-
throw new
|
|
7255
|
+
throw new ft("invalid ordinateIndex");
|
|
7253
7256
|
}
|
|
7254
7257
|
};
|
|
7255
7258
|
_t.prototype.size = function() {
|
|
@@ -7322,12 +7325,12 @@ _t.prototype.interfaces_ = function() {
|
|
|
7322
7325
|
_t.prototype.getClass = function() {
|
|
7323
7326
|
return _t;
|
|
7324
7327
|
};
|
|
7325
|
-
|
|
7328
|
+
mu.serialVersionUID.get = function() {
|
|
7326
7329
|
return -915438501601840600;
|
|
7327
7330
|
};
|
|
7328
|
-
Object.defineProperties(_t,
|
|
7331
|
+
Object.defineProperties(_t, mu);
|
|
7329
7332
|
var Pn = function() {
|
|
7330
|
-
},
|
|
7333
|
+
}, Ys = { serialVersionUID: { configurable: !0 }, instanceObject: { configurable: !0 } };
|
|
7331
7334
|
Pn.prototype.readResolve = function() {
|
|
7332
7335
|
return Pn.instance();
|
|
7333
7336
|
};
|
|
@@ -7354,14 +7357,14 @@ Pn.prototype.getClass = function() {
|
|
|
7354
7357
|
Pn.instance = function() {
|
|
7355
7358
|
return Pn.instanceObject;
|
|
7356
7359
|
};
|
|
7357
|
-
|
|
7360
|
+
Ys.serialVersionUID.get = function() {
|
|
7358
7361
|
return -4099577099607551500;
|
|
7359
7362
|
};
|
|
7360
|
-
|
|
7363
|
+
Ys.instanceObject.get = function() {
|
|
7361
7364
|
return new Pn();
|
|
7362
7365
|
};
|
|
7363
|
-
Object.defineProperties(Pn,
|
|
7364
|
-
var
|
|
7366
|
+
Object.defineProperties(Pn, Ys);
|
|
7367
|
+
var _u = function(r) {
|
|
7365
7368
|
function t() {
|
|
7366
7369
|
r.call(this), this.map_ = /* @__PURE__ */ new Map();
|
|
7367
7370
|
}
|
|
@@ -7374,7 +7377,7 @@ var mu = function(r) {
|
|
|
7374
7377
|
n.add(o.value), o = i.next();
|
|
7375
7378
|
return n;
|
|
7376
7379
|
}, t.prototype.entrySet = function() {
|
|
7377
|
-
var n = new
|
|
7380
|
+
var n = new qs();
|
|
7378
7381
|
return this.map_.entries().forEach(function(i) {
|
|
7379
7382
|
return n.add(i);
|
|
7380
7383
|
}), n;
|
|
@@ -7396,7 +7399,7 @@ var mu = function(r) {
|
|
|
7396
7399
|
this._modelType = n._modelType, this._scale = n._scale;
|
|
7397
7400
|
}
|
|
7398
7401
|
}
|
|
7399
|
-
},
|
|
7402
|
+
}, Ws = { serialVersionUID: { configurable: !0 }, maximumPreciseValue: { configurable: !0 } };
|
|
7400
7403
|
$.prototype.equals = function(t) {
|
|
7401
7404
|
if (!(t instanceof $))
|
|
7402
7405
|
return !1;
|
|
@@ -7453,16 +7456,16 @@ $.prototype.getClass = function() {
|
|
|
7453
7456
|
$.mostPrecise = function(t, e) {
|
|
7454
7457
|
return t.compareTo(e) >= 0 ? t : e;
|
|
7455
7458
|
};
|
|
7456
|
-
|
|
7459
|
+
Ws.serialVersionUID.get = function() {
|
|
7457
7460
|
return 7777263578777804e3;
|
|
7458
7461
|
};
|
|
7459
|
-
|
|
7462
|
+
Ws.maximumPreciseValue.get = function() {
|
|
7460
7463
|
return 9007199254740992;
|
|
7461
7464
|
};
|
|
7462
|
-
Object.defineProperties($,
|
|
7465
|
+
Object.defineProperties($, Ws);
|
|
7463
7466
|
var fn = function r(t) {
|
|
7464
7467
|
this._name = t || null, r.nameToTypeMap.put(t, this);
|
|
7465
|
-
},
|
|
7468
|
+
}, Hs = { serialVersionUID: { configurable: !0 }, nameToTypeMap: { configurable: !0 } };
|
|
7466
7469
|
fn.prototype.readResolve = function() {
|
|
7467
7470
|
return fn.nameToTypeMap.get(this._name);
|
|
7468
7471
|
};
|
|
@@ -7475,20 +7478,20 @@ fn.prototype.interfaces_ = function() {
|
|
|
7475
7478
|
fn.prototype.getClass = function() {
|
|
7476
7479
|
return fn;
|
|
7477
7480
|
};
|
|
7478
|
-
|
|
7481
|
+
Hs.serialVersionUID.get = function() {
|
|
7479
7482
|
return -552860263173159e4;
|
|
7480
7483
|
};
|
|
7481
|
-
|
|
7482
|
-
return new
|
|
7484
|
+
Hs.nameToTypeMap.get = function() {
|
|
7485
|
+
return new _u();
|
|
7483
7486
|
};
|
|
7484
|
-
Object.defineProperties(fn,
|
|
7487
|
+
Object.defineProperties(fn, Hs);
|
|
7485
7488
|
$.Type = fn;
|
|
7486
7489
|
$.FIXED = new fn("FIXED");
|
|
7487
7490
|
$.FLOATING = new fn("FLOATING");
|
|
7488
7491
|
$.FLOATING_SINGLE = new fn("FLOATING SINGLE");
|
|
7489
7492
|
var H = function r() {
|
|
7490
7493
|
this._precisionModel = new $(), this._SRID = 0, this._coordinateSequenceFactory = r.getDefaultCoordinateSequenceFactory(), arguments.length === 0 || (arguments.length === 1 ? z(arguments[0], Ni) ? this._coordinateSequenceFactory = arguments[0] : arguments[0] instanceof $ && (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]));
|
|
7491
|
-
},
|
|
7494
|
+
}, Eu = { serialVersionUID: { configurable: !0 } };
|
|
7492
7495
|
H.prototype.toGeometry = function(t) {
|
|
7493
7496
|
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);
|
|
7494
7497
|
};
|
|
@@ -7683,11 +7686,11 @@ H.toPolygonArray = function(t) {
|
|
|
7683
7686
|
H.createPointFromInternalCoord = function(t, e) {
|
|
7684
7687
|
return e.getPrecisionModel().makePrecise(t), e.getFactory().createPoint(t);
|
|
7685
7688
|
};
|
|
7686
|
-
|
|
7689
|
+
Eu.serialVersionUID.get = function() {
|
|
7687
7690
|
return -6820524753094096e3;
|
|
7688
7691
|
};
|
|
7689
|
-
Object.defineProperties(H,
|
|
7690
|
-
var
|
|
7692
|
+
Object.defineProperties(H, Eu);
|
|
7693
|
+
var Wc = ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"], os = function(t) {
|
|
7691
7694
|
this.geometryFactory = t || new H();
|
|
7692
7695
|
};
|
|
7693
7696
|
os.prototype.read = function(t) {
|
|
@@ -7696,7 +7699,7 @@ os.prototype.read = function(t) {
|
|
|
7696
7699
|
var n = e.type;
|
|
7697
7700
|
if (!en[n])
|
|
7698
7701
|
throw new Error("Unknown GeoJSON type: " + e.type);
|
|
7699
|
-
return
|
|
7702
|
+
return Wc.indexOf(n) !== -1 ? en[n].apply(this, [e.coordinates]) : n === "GeometryCollection" ? en[n].apply(this, [e.geometries]) : en[n].apply(this, [e]);
|
|
7700
7703
|
};
|
|
7701
7704
|
os.prototype.write = function(t) {
|
|
7702
7705
|
var e = t.getGeometryType();
|
|
@@ -8006,14 +8009,14 @@ var en = {
|
|
|
8006
8009
|
geometries: e
|
|
8007
8010
|
};
|
|
8008
8011
|
}
|
|
8009
|
-
},
|
|
8012
|
+
}, js = function(t) {
|
|
8010
8013
|
this.geometryFactory = t || new H(), this.precisionModel = this.geometryFactory.getPrecisionModel(), this.parser = new os(this.geometryFactory);
|
|
8011
8014
|
};
|
|
8012
|
-
|
|
8015
|
+
js.prototype.read = function(t) {
|
|
8013
8016
|
var e = this.parser.read(t);
|
|
8014
8017
|
return this.precisionModel.getType() === $.FIXED && this.reducePrecision(e), e;
|
|
8015
8018
|
};
|
|
8016
|
-
|
|
8019
|
+
js.prototype.reducePrecision = function(t) {
|
|
8017
8020
|
var e = this, n, i;
|
|
8018
8021
|
if (t.coordinate)
|
|
8019
8022
|
this.precisionModel.makePrecise(t.coordinate);
|
|
@@ -8024,10 +8027,10 @@ Hs.prototype.reducePrecision = function(t) {
|
|
|
8024
8027
|
for (n = 0, i = t.geometries.length; n < i; n++)
|
|
8025
8028
|
e.reducePrecision(t.geometries[n]);
|
|
8026
8029
|
};
|
|
8027
|
-
var
|
|
8030
|
+
var Iu = function() {
|
|
8028
8031
|
this.parser = new os(this.geometryFactory);
|
|
8029
8032
|
};
|
|
8030
|
-
|
|
8033
|
+
Iu.prototype.write = function(t) {
|
|
8031
8034
|
return this.parser.write(t);
|
|
8032
8035
|
};
|
|
8033
8036
|
var b = function() {
|
|
@@ -8215,7 +8218,7 @@ oe.prototype.findResultEdges = function() {
|
|
|
8215
8218
|
}
|
|
8216
8219
|
};
|
|
8217
8220
|
oe.prototype.computeDepths = function(t) {
|
|
8218
|
-
var e = this, n = new
|
|
8221
|
+
var e = this, n = new qs(), i = new us(), o = t.getNode();
|
|
8219
8222
|
for (i.addLast(o), n.add(o), t.setVisited(!0); !i.isEmpty(); ) {
|
|
8220
8223
|
var s = i.removeFirst();
|
|
8221
8224
|
n.add(s), e.computeNodeDepth(s);
|
|
@@ -8274,7 +8277,7 @@ oe.prototype.interfaces_ = function() {
|
|
|
8274
8277
|
oe.prototype.getClass = function() {
|
|
8275
8278
|
return oe;
|
|
8276
8279
|
};
|
|
8277
|
-
var
|
|
8280
|
+
var at = function r() {
|
|
8278
8281
|
var t = this;
|
|
8279
8282
|
if (this.location = null, arguments.length === 1) {
|
|
8280
8283
|
if (arguments[0] instanceof Array) {
|
|
@@ -8294,24 +8297,24 @@ var st = function r() {
|
|
|
8294
8297
|
this.init(3), this.location[b.ON] = s, this.location[b.LEFT] = a, this.location[b.RIGHT] = u;
|
|
8295
8298
|
}
|
|
8296
8299
|
};
|
|
8297
|
-
|
|
8300
|
+
at.prototype.setAllLocations = function(t) {
|
|
8298
8301
|
for (var e = this, n = 0; n < this.location.length; n++)
|
|
8299
8302
|
e.location[n] = t;
|
|
8300
8303
|
};
|
|
8301
|
-
|
|
8304
|
+
at.prototype.isNull = function() {
|
|
8302
8305
|
for (var t = this, e = 0; e < this.location.length; e++)
|
|
8303
8306
|
if (t.location[e] !== _.NONE)
|
|
8304
8307
|
return !1;
|
|
8305
8308
|
return !0;
|
|
8306
8309
|
};
|
|
8307
|
-
|
|
8310
|
+
at.prototype.setAllLocationsIfNull = function(t) {
|
|
8308
8311
|
for (var e = this, n = 0; n < this.location.length; n++)
|
|
8309
8312
|
e.location[n] === _.NONE && (e.location[n] = t);
|
|
8310
8313
|
};
|
|
8311
|
-
|
|
8314
|
+
at.prototype.isLine = function() {
|
|
8312
8315
|
return this.location.length === 1;
|
|
8313
8316
|
};
|
|
8314
|
-
|
|
8317
|
+
at.prototype.merge = function(t) {
|
|
8315
8318
|
var e = this;
|
|
8316
8319
|
if (t.location.length > this.location.length) {
|
|
8317
8320
|
var n = new Array(3).fill(null);
|
|
@@ -8320,35 +8323,35 @@ st.prototype.merge = function(t) {
|
|
|
8320
8323
|
for (var i = 0; i < this.location.length; i++)
|
|
8321
8324
|
e.location[i] === _.NONE && i < t.location.length && (e.location[i] = t.location[i]);
|
|
8322
8325
|
};
|
|
8323
|
-
|
|
8326
|
+
at.prototype.getLocations = function() {
|
|
8324
8327
|
return this.location;
|
|
8325
8328
|
};
|
|
8326
|
-
|
|
8329
|
+
at.prototype.flip = function() {
|
|
8327
8330
|
if (this.location.length <= 1)
|
|
8328
8331
|
return null;
|
|
8329
8332
|
var t = this.location[b.LEFT];
|
|
8330
8333
|
this.location[b.LEFT] = this.location[b.RIGHT], this.location[b.RIGHT] = t;
|
|
8331
8334
|
};
|
|
8332
|
-
|
|
8335
|
+
at.prototype.toString = function() {
|
|
8333
8336
|
var t = new _n();
|
|
8334
8337
|
return this.location.length > 1 && t.append(_.toLocationSymbol(this.location[b.LEFT])), t.append(_.toLocationSymbol(this.location[b.ON])), this.location.length > 1 && t.append(_.toLocationSymbol(this.location[b.RIGHT])), t.toString();
|
|
8335
8338
|
};
|
|
8336
|
-
|
|
8339
|
+
at.prototype.setLocations = function(t, e, n) {
|
|
8337
8340
|
this.location[b.ON] = t, this.location[b.LEFT] = e, this.location[b.RIGHT] = n;
|
|
8338
8341
|
};
|
|
8339
|
-
|
|
8342
|
+
at.prototype.get = function(t) {
|
|
8340
8343
|
return t < this.location.length ? this.location[t] : _.NONE;
|
|
8341
8344
|
};
|
|
8342
|
-
|
|
8345
|
+
at.prototype.isArea = function() {
|
|
8343
8346
|
return this.location.length > 1;
|
|
8344
8347
|
};
|
|
8345
|
-
|
|
8348
|
+
at.prototype.isAnyNull = function() {
|
|
8346
8349
|
for (var t = this, e = 0; e < this.location.length; e++)
|
|
8347
8350
|
if (t.location[e] === _.NONE)
|
|
8348
8351
|
return !0;
|
|
8349
8352
|
return !1;
|
|
8350
8353
|
};
|
|
8351
|
-
|
|
8354
|
+
at.prototype.setLocation = function() {
|
|
8352
8355
|
if (arguments.length === 1) {
|
|
8353
8356
|
var t = arguments[0];
|
|
8354
8357
|
this.setLocation(b.ON, t);
|
|
@@ -8357,42 +8360,42 @@ st.prototype.setLocation = function() {
|
|
|
8357
8360
|
this.location[e] = n;
|
|
8358
8361
|
}
|
|
8359
8362
|
};
|
|
8360
|
-
|
|
8363
|
+
at.prototype.init = function(t) {
|
|
8361
8364
|
this.location = new Array(t).fill(null), this.setAllLocations(_.NONE);
|
|
8362
8365
|
};
|
|
8363
|
-
|
|
8366
|
+
at.prototype.isEqualOnSide = function(t, e) {
|
|
8364
8367
|
return this.location[e] === t.location[e];
|
|
8365
8368
|
};
|
|
8366
|
-
|
|
8369
|
+
at.prototype.allPositionsEqual = function(t) {
|
|
8367
8370
|
for (var e = this, n = 0; n < this.location.length; n++)
|
|
8368
8371
|
if (e.location[n] !== t)
|
|
8369
8372
|
return !1;
|
|
8370
8373
|
return !0;
|
|
8371
8374
|
};
|
|
8372
|
-
|
|
8375
|
+
at.prototype.interfaces_ = function() {
|
|
8373
8376
|
return [];
|
|
8374
8377
|
};
|
|
8375
|
-
|
|
8376
|
-
return
|
|
8378
|
+
at.prototype.getClass = function() {
|
|
8379
|
+
return at;
|
|
8377
8380
|
};
|
|
8378
8381
|
var et = function r() {
|
|
8379
8382
|
if (this.elt = new Array(2).fill(null), arguments.length === 1) {
|
|
8380
8383
|
if (Number.isInteger(arguments[0])) {
|
|
8381
8384
|
var t = arguments[0];
|
|
8382
|
-
this.elt[0] = new
|
|
8385
|
+
this.elt[0] = new at(t), this.elt[1] = new at(t);
|
|
8383
8386
|
} else if (arguments[0] instanceof r) {
|
|
8384
8387
|
var e = arguments[0];
|
|
8385
|
-
this.elt[0] = new
|
|
8388
|
+
this.elt[0] = new at(e.elt[0]), this.elt[1] = new at(e.elt[1]);
|
|
8386
8389
|
}
|
|
8387
8390
|
} else if (arguments.length === 2) {
|
|
8388
8391
|
var n = arguments[0], i = arguments[1];
|
|
8389
|
-
this.elt[0] = new
|
|
8392
|
+
this.elt[0] = new at(_.NONE), this.elt[1] = new at(_.NONE), this.elt[n].setLocation(i);
|
|
8390
8393
|
} else if (arguments.length === 3) {
|
|
8391
8394
|
var o = arguments[0], s = arguments[1], a = arguments[2];
|
|
8392
|
-
this.elt[0] = new
|
|
8395
|
+
this.elt[0] = new at(o, s, a), this.elt[1] = new at(o, s, a);
|
|
8393
8396
|
} else if (arguments.length === 4) {
|
|
8394
8397
|
var u = arguments[0], l = arguments[1], c = arguments[2], f = arguments[3];
|
|
8395
|
-
this.elt[0] = new
|
|
8398
|
+
this.elt[0] = new at(_.NONE, _.NONE, _.NONE), this.elt[1] = new at(_.NONE, _.NONE, _.NONE), this.elt[u].setLocations(l, c, f);
|
|
8396
8399
|
}
|
|
8397
8400
|
};
|
|
8398
8401
|
et.prototype.getGeometryCount = function() {
|
|
@@ -8419,7 +8422,7 @@ et.prototype.isLine = function(t) {
|
|
|
8419
8422
|
};
|
|
8420
8423
|
et.prototype.merge = function(t) {
|
|
8421
8424
|
for (var e = this, n = 0; n < 2; n++)
|
|
8422
|
-
e.elt[n] === null && t.elt[n] !== null ? e.elt[n] = new
|
|
8425
|
+
e.elt[n] === null && t.elt[n] !== null ? e.elt[n] = new at(t.elt[n]) : e.elt[n].merge(t.elt[n]);
|
|
8423
8426
|
};
|
|
8424
8427
|
et.prototype.flip = function() {
|
|
8425
8428
|
this.elt[0].flip(), this.elt[1].flip();
|
|
@@ -8464,7 +8467,7 @@ et.prototype.allPositionsEqual = function(t, e) {
|
|
|
8464
8467
|
return this.elt[t].allPositionsEqual(e);
|
|
8465
8468
|
};
|
|
8466
8469
|
et.prototype.toLine = function(t) {
|
|
8467
|
-
this.elt[t].isArea() && (this.elt[t] = new
|
|
8470
|
+
this.elt[t].isArea() && (this.elt[t] = new at(this.elt[t].location[0]));
|
|
8468
8471
|
};
|
|
8469
8472
|
et.prototype.interfaces_ = function() {
|
|
8470
8473
|
return [];
|
|
@@ -8602,7 +8605,7 @@ wt.prototype.interfaces_ = function() {
|
|
|
8602
8605
|
wt.prototype.getClass = function() {
|
|
8603
8606
|
return wt;
|
|
8604
8607
|
};
|
|
8605
|
-
var
|
|
8608
|
+
var Hc = function(r) {
|
|
8606
8609
|
function t() {
|
|
8607
8610
|
var e = arguments[0], n = arguments[1];
|
|
8608
8611
|
r.call(this, e, n);
|
|
@@ -8616,7 +8619,7 @@ var Wc = function(r) {
|
|
|
8616
8619
|
}, t.prototype.getClass = function() {
|
|
8617
8620
|
return t;
|
|
8618
8621
|
}, t;
|
|
8619
|
-
}(wt),
|
|
8622
|
+
}(wt), jc = function(r) {
|
|
8620
8623
|
function t() {
|
|
8621
8624
|
var e = arguments[0], n = arguments[1];
|
|
8622
8625
|
r.call(this, e, n);
|
|
@@ -8625,7 +8628,7 @@ var Wc = function(r) {
|
|
|
8625
8628
|
var n = this, i = new O(), o = this._startDe;
|
|
8626
8629
|
do {
|
|
8627
8630
|
if (o.getMinEdgeRing() === null) {
|
|
8628
|
-
var s = new
|
|
8631
|
+
var s = new Hc(o, n._geometryFactory);
|
|
8629
8632
|
i.add(s);
|
|
8630
8633
|
}
|
|
8631
8634
|
o = o.getNext();
|
|
@@ -8839,12 +8842,12 @@ rt.quadrant = function() {
|
|
|
8839
8842
|
if (typeof arguments[0] == "number" && typeof arguments[1] == "number") {
|
|
8840
8843
|
var t = arguments[0], e = arguments[1];
|
|
8841
8844
|
if (t === 0 && e === 0)
|
|
8842
|
-
throw new
|
|
8845
|
+
throw new ft("Cannot compute the quadrant for point ( " + t + ", " + e + " )");
|
|
8843
8846
|
return t >= 0 ? e >= 0 ? rt.NE : rt.SE : e >= 0 ? rt.NW : rt.SW;
|
|
8844
8847
|
} else if (arguments[0] instanceof v && arguments[1] instanceof v) {
|
|
8845
8848
|
var n = arguments[0], i = arguments[1];
|
|
8846
8849
|
if (i.x === n.x && i.y === n.y)
|
|
8847
|
-
throw new
|
|
8850
|
+
throw new ft("Cannot compute the quadrant for two identical points " + n);
|
|
8848
8851
|
return i.x >= n.x ? i.y >= n.y ? rt.NE : rt.SE : i.y >= n.y ? rt.NW : rt.SW;
|
|
8849
8852
|
}
|
|
8850
8853
|
};
|
|
@@ -8926,7 +8929,7 @@ Qt.prototype.interfaces_ = function() {
|
|
|
8926
8929
|
Qt.prototype.getClass = function() {
|
|
8927
8930
|
return Qt;
|
|
8928
8931
|
};
|
|
8929
|
-
var
|
|
8932
|
+
var Ms = function(r) {
|
|
8930
8933
|
function t() {
|
|
8931
8934
|
var e = arguments[0], n = arguments[1];
|
|
8932
8935
|
if (r.call(this, e), this._isForward = null, this._isInResult = !1, this._isVisited = !1, this._sym = null, this._next = null, this._nextMin = null, this._edgeRing = null, this._minEdgeRing = null, this._depth = [0, -999, -999], this._isForward = n, n)
|
|
@@ -9107,7 +9110,7 @@ pt.prototype.addEdges = function(t) {
|
|
|
9107
9110
|
for (var e = this, n = t.iterator(); n.hasNext(); ) {
|
|
9108
9111
|
var i = n.next();
|
|
9109
9112
|
e._edges.add(i);
|
|
9110
|
-
var o = new
|
|
9113
|
+
var o = new Ms(i, !0), s = new Ms(i, !1);
|
|
9111
9114
|
o.setSym(s), s.setSym(o), e.add(o), e.add(s);
|
|
9112
9115
|
}
|
|
9113
9116
|
};
|
|
@@ -9190,7 +9193,7 @@ ve.prototype.buildMaximalEdgeRings = function(t) {
|
|
|
9190
9193
|
for (var e = this, n = new O(), i = t.iterator(); i.hasNext(); ) {
|
|
9191
9194
|
var o = i.next();
|
|
9192
9195
|
if (o.isInResult() && o.getLabel().isArea() && o.getEdgeRing() === null) {
|
|
9193
|
-
var s = new
|
|
9196
|
+
var s = new jc(o, e._geometryFactory);
|
|
9194
9197
|
n.add(s), s.setInResult();
|
|
9195
9198
|
}
|
|
9196
9199
|
}
|
|
@@ -9334,7 +9337,7 @@ var Rt = function() {
|
|
|
9334
9337
|
this._level = t;
|
|
9335
9338
|
}
|
|
9336
9339
|
}
|
|
9337
|
-
},
|
|
9340
|
+
}, Cu = { serialVersionUID: { configurable: !0 } };
|
|
9338
9341
|
Rt.prototype.getLevel = function() {
|
|
9339
9342
|
return this._level;
|
|
9340
9343
|
};
|
|
@@ -9359,10 +9362,10 @@ Rt.prototype.interfaces_ = function() {
|
|
|
9359
9362
|
Rt.prototype.getClass = function() {
|
|
9360
9363
|
return Rt;
|
|
9361
9364
|
};
|
|
9362
|
-
|
|
9365
|
+
Cu.serialVersionUID.get = function() {
|
|
9363
9366
|
return 6493722185909574e3;
|
|
9364
9367
|
};
|
|
9365
|
-
Object.defineProperties(Rt,
|
|
9368
|
+
Object.defineProperties(Rt, Cu);
|
|
9366
9369
|
var He = function() {
|
|
9367
9370
|
};
|
|
9368
9371
|
He.reverseOrder = function() {
|
|
@@ -9398,7 +9401,7 @@ St.prototype.expandToQueue = function(t, e) {
|
|
|
9398
9401
|
return this.expand(this._boundable1, this._boundable2, t, e), null;
|
|
9399
9402
|
if (i)
|
|
9400
9403
|
return this.expand(this._boundable2, this._boundable1, t, e), null;
|
|
9401
|
-
throw new
|
|
9404
|
+
throw new ft("neither boundable is composite");
|
|
9402
9405
|
};
|
|
9403
9406
|
St.prototype.isLeaves = function() {
|
|
9404
9407
|
return !(St.isComposite(this._boundable1) || St.isComposite(this._boundable2));
|
|
@@ -9603,7 +9606,7 @@ Mt.compareDoubles = function(t, e) {
|
|
|
9603
9606
|
return t > e ? 1 : t < e ? -1 : 0;
|
|
9604
9607
|
};
|
|
9605
9608
|
cs.IntersectsOp.get = function() {
|
|
9606
|
-
return
|
|
9609
|
+
return Kc;
|
|
9607
9610
|
};
|
|
9608
9611
|
cs.serialVersionUID.get = function() {
|
|
9609
9612
|
return -3886435814360241e3;
|
|
@@ -9612,7 +9615,7 @@ cs.DEFAULT_NODE_CAPACITY.get = function() {
|
|
|
9612
9615
|
return 10;
|
|
9613
9616
|
};
|
|
9614
9617
|
Object.defineProperties(Mt, cs);
|
|
9615
|
-
var
|
|
9618
|
+
var Kc = function() {
|
|
9616
9619
|
}, Di = function() {
|
|
9617
9620
|
};
|
|
9618
9621
|
Di.prototype.distance = function(t, e) {
|
|
@@ -9623,7 +9626,7 @@ Di.prototype.interfaces_ = function() {
|
|
|
9623
9626
|
Di.prototype.getClass = function() {
|
|
9624
9627
|
return Di;
|
|
9625
9628
|
};
|
|
9626
|
-
var
|
|
9629
|
+
var Nu = function(r) {
|
|
9627
9630
|
function t(n) {
|
|
9628
9631
|
n = n || t.DEFAULT_NODE_CAPACITY, r.call(this, n);
|
|
9629
9632
|
}
|
|
@@ -9636,7 +9639,7 @@ var Cu = function(r) {
|
|
|
9636
9639
|
a.addAll(s.createParentBoundablesFromVerticalSlice(i[u], o));
|
|
9637
9640
|
return a;
|
|
9638
9641
|
}, t.prototype.createNode = function(i) {
|
|
9639
|
-
return new
|
|
9642
|
+
return new Da(i);
|
|
9640
9643
|
}, t.prototype.size = function() {
|
|
9641
9644
|
return arguments.length === 0 ? r.prototype.size.call(this) : r.prototype.size.apply(this, arguments);
|
|
9642
9645
|
}, t.prototype.insert = function() {
|
|
@@ -9730,7 +9733,7 @@ var Cu = function(r) {
|
|
|
9730
9733
|
}, t.centreY = function(i) {
|
|
9731
9734
|
return t.avg(i.getMinY(), i.getMaxY());
|
|
9732
9735
|
}, e.STRtreeNode.get = function() {
|
|
9733
|
-
return
|
|
9736
|
+
return Da;
|
|
9734
9737
|
}, e.serialVersionUID.get = function() {
|
|
9735
9738
|
return 259274702368956900;
|
|
9736
9739
|
}, e.xComparator.get = function() {
|
|
@@ -9763,7 +9766,7 @@ var Cu = function(r) {
|
|
|
9763
9766
|
}, e.DEFAULT_NODE_CAPACITY.get = function() {
|
|
9764
9767
|
return 10;
|
|
9765
9768
|
}, Object.defineProperties(t, e), t;
|
|
9766
|
-
}(Mt),
|
|
9769
|
+
}(Mt), Da = function(r) {
|
|
9767
9770
|
function t() {
|
|
9768
9771
|
var e = arguments[0];
|
|
9769
9772
|
r.call(this, e);
|
|
@@ -9955,13 +9958,13 @@ ei.octant = function() {
|
|
|
9955
9958
|
if (typeof arguments[0] == "number" && typeof arguments[1] == "number") {
|
|
9956
9959
|
var t = arguments[0], e = arguments[1];
|
|
9957
9960
|
if (t === 0 && e === 0)
|
|
9958
|
-
throw new
|
|
9961
|
+
throw new ft("Cannot compute the octant for point ( " + t + ", " + e + " )");
|
|
9959
9962
|
var n = Math.abs(t), i = Math.abs(e);
|
|
9960
9963
|
return t >= 0 ? e >= 0 ? n >= i ? 0 : 1 : n >= i ? 7 : 6 : e >= 0 ? n >= i ? 3 : 2 : n >= i ? 4 : 5;
|
|
9961
9964
|
} else if (arguments[0] instanceof v && arguments[1] instanceof v) {
|
|
9962
9965
|
var o = arguments[0], s = arguments[1], a = s.x - o.x, u = s.y - o.y;
|
|
9963
9966
|
if (a === 0 && u === 0)
|
|
9964
|
-
throw new
|
|
9967
|
+
throw new ft("Cannot compute the octant for two identical points " + o);
|
|
9965
9968
|
return ei.octant(a, u);
|
|
9966
9969
|
}
|
|
9967
9970
|
};
|
|
@@ -10080,7 +10083,7 @@ var B = function() {
|
|
|
10080
10083
|
var e = arguments[0], n = arguments[1], i = arguments[2], o = arguments[3];
|
|
10081
10084
|
this.p0 = new v(e, n), this.p1 = new v(i, o);
|
|
10082
10085
|
}
|
|
10083
|
-
},
|
|
10086
|
+
}, Su = { serialVersionUID: { configurable: !0 } };
|
|
10084
10087
|
B.prototype.minX = function() {
|
|
10085
10088
|
return Math.min(this.p0.x, this.p1.x);
|
|
10086
10089
|
};
|
|
@@ -10265,10 +10268,10 @@ B.prototype.getClass = function() {
|
|
|
10265
10268
|
B.midPoint = function(t, e) {
|
|
10266
10269
|
return new v((t.x + e.x) / 2, (t.y + e.y) / 2);
|
|
10267
10270
|
};
|
|
10268
|
-
|
|
10271
|
+
Su.serialVersionUID.get = function() {
|
|
10269
10272
|
return 3252005833466256400;
|
|
10270
10273
|
};
|
|
10271
|
-
Object.defineProperties(B,
|
|
10274
|
+
Object.defineProperties(B, Su);
|
|
10272
10275
|
var fo = function() {
|
|
10273
10276
|
this.tempEnv1 = new k(), this.tempEnv2 = new k(), this._overlapSeg1 = new B(), this._overlapSeg2 = new B();
|
|
10274
10277
|
};
|
|
@@ -10430,9 +10433,9 @@ ho.prototype.interfaces_ = function() {
|
|
|
10430
10433
|
ho.prototype.getClass = function() {
|
|
10431
10434
|
return ho;
|
|
10432
10435
|
};
|
|
10433
|
-
var
|
|
10436
|
+
var Ks = function(r) {
|
|
10434
10437
|
function t(n) {
|
|
10435
|
-
n ? r.call(this, n) : r.call(this), this._monoChains = new O(), this._index = new
|
|
10438
|
+
n ? r.call(this, n) : r.call(this), this._monoChains = new O(), this._index = new Nu(), this._idCounter = 0, this._nodedSegStrings = null, this._nOverlaps = 0;
|
|
10436
10439
|
}
|
|
10437
10440
|
r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t;
|
|
10438
10441
|
var e = { SegmentOverlapAction: { configurable: !0 } };
|
|
@@ -10454,7 +10457,7 @@ var js = function(r) {
|
|
|
10454
10457
|
o.add(s.next());
|
|
10455
10458
|
this.intersectChains();
|
|
10456
10459
|
}, t.prototype.intersectChains = function() {
|
|
10457
|
-
for (var i = this, o = new
|
|
10460
|
+
for (var i = this, o = new Ta(this._segInt), s = this._monoChains.iterator(); s.hasNext(); )
|
|
10458
10461
|
for (var a = s.next(), u = i._index.query(a.getEnvelope()), l = u.iterator(); l.hasNext(); ) {
|
|
10459
10462
|
var c = l.next();
|
|
10460
10463
|
if (c.getId() > a.getId() && (a.computeOverlaps(c, o), i._nOverlaps++), i._segInt.isDone())
|
|
@@ -10465,9 +10468,9 @@ var js = function(r) {
|
|
|
10465
10468
|
}, t.prototype.getClass = function() {
|
|
10466
10469
|
return t;
|
|
10467
10470
|
}, e.SegmentOverlapAction.get = function() {
|
|
10468
|
-
return
|
|
10471
|
+
return Ta;
|
|
10469
10472
|
}, Object.defineProperties(t, e), t;
|
|
10470
|
-
}(ho),
|
|
10473
|
+
}(ho), Ta = function(r) {
|
|
10471
10474
|
function t() {
|
|
10472
10475
|
r.call(this), this._si = null;
|
|
10473
10476
|
var e = arguments[0];
|
|
@@ -10653,7 +10656,7 @@ No.NUM_PTS_TO_CHECK.get = function() {
|
|
|
10653
10656
|
Object.defineProperties(mt, No);
|
|
10654
10657
|
var be = function() {
|
|
10655
10658
|
this._ptList = null, this._precisionModel = null, this._minimimVertexDistance = 0, this._ptList = new O();
|
|
10656
|
-
},
|
|
10659
|
+
}, xu = { COORDINATE_ARRAY_TYPE: { configurable: !0 } };
|
|
10657
10660
|
be.prototype.getCoordinates = function() {
|
|
10658
10661
|
var t = this._ptList.toArray(be.COORDINATE_ARRAY_TYPE);
|
|
10659
10662
|
return t;
|
|
@@ -10705,10 +10708,10 @@ be.prototype.interfaces_ = function() {
|
|
|
10705
10708
|
be.prototype.getClass = function() {
|
|
10706
10709
|
return be;
|
|
10707
10710
|
};
|
|
10708
|
-
|
|
10711
|
+
xu.COORDINATE_ARRAY_TYPE.get = function() {
|
|
10709
10712
|
return new Array(0).fill(null);
|
|
10710
10713
|
};
|
|
10711
|
-
Object.defineProperties(be,
|
|
10714
|
+
Object.defineProperties(be, xu);
|
|
10712
10715
|
var K = function() {
|
|
10713
10716
|
}, di = { PI_TIMES_2: { configurable: !0 }, PI_OVER_2: { configurable: !0 }, PI_OVER_4: { configurable: !0 }, COUNTERCLOCKWISE: { configurable: !0 }, CLOCKWISE: { configurable: !0 }, NONE: { configurable: !0 } };
|
|
10714
10717
|
K.prototype.interfaces_ = function() {
|
|
@@ -10798,18 +10801,18 @@ di.NONE.get = function() {
|
|
|
10798
10801
|
return M.COLLINEAR;
|
|
10799
10802
|
};
|
|
10800
10803
|
Object.defineProperties(K, di);
|
|
10801
|
-
var
|
|
10804
|
+
var lt = function r() {
|
|
10802
10805
|
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 B(), this._seg1 = new B(), this._offset0 = new B(), this._offset1 = new B(), this._side = 0, this._hasNarrowConcaveAngle = !1;
|
|
10803
10806
|
var t = arguments[0], e = arguments[1], n = arguments[2];
|
|
10804
10807
|
this._precisionModel = t, this._bufParams = e, this._li = new Yr(), 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);
|
|
10805
10808
|
}, So = { 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 } };
|
|
10806
|
-
|
|
10809
|
+
lt.prototype.addNextSegment = function(t, e) {
|
|
10807
10810
|
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))
|
|
10808
10811
|
return null;
|
|
10809
10812
|
var n = M.computeOrientation(this._s0, this._s1, this._s2), i = n === M.CLOCKWISE && this._side === b.LEFT || n === M.COUNTERCLOCKWISE && this._side === b.RIGHT;
|
|
10810
10813
|
n === 0 ? this.addCollinear(e) : i ? this.addOutsideTurn(n, e) : this.addInsideTurn(n, e);
|
|
10811
10814
|
};
|
|
10812
|
-
|
|
10815
|
+
lt.prototype.addLineEndCap = function(t, e) {
|
|
10813
10816
|
var n = new B(t, e), i = new B();
|
|
10814
10817
|
this.computeOffsetSegment(n, b.LEFT, this._distance, i);
|
|
10815
10818
|
var o = new B();
|
|
@@ -10830,11 +10833,11 @@ ut.prototype.addLineEndCap = function(t, e) {
|
|
|
10830
10833
|
break;
|
|
10831
10834
|
}
|
|
10832
10835
|
};
|
|
10833
|
-
|
|
10836
|
+
lt.prototype.getCoordinates = function() {
|
|
10834
10837
|
var t = this._segList.getCoordinates();
|
|
10835
10838
|
return t;
|
|
10836
10839
|
};
|
|
10837
|
-
|
|
10840
|
+
lt.prototype.addMitreJoin = function(t, e, n, i) {
|
|
10838
10841
|
var o = !0, s = null;
|
|
10839
10842
|
try {
|
|
10840
10843
|
s = Ue.intersection(e.p0, e.p1, n.p0, n.p1);
|
|
@@ -10849,39 +10852,39 @@ ut.prototype.addMitreJoin = function(t, e, n, i) {
|
|
|
10849
10852
|
}
|
|
10850
10853
|
o ? this._segList.addPt(s) : this.addLimitedMitreJoin(e, n, i, this._bufParams.getMitreLimit());
|
|
10851
10854
|
};
|
|
10852
|
-
|
|
10855
|
+
lt.prototype.addFilletCorner = function(t, e, n, i, o) {
|
|
10853
10856
|
var s = e.x - t.x, a = e.y - t.y, u = Math.atan2(a, s), l = n.x - t.x, c = n.y - t.y, f = Math.atan2(c, l);
|
|
10854
10857
|
i === M.CLOCKWISE ? u <= f && (u += 2 * Math.PI) : u >= f && (u -= 2 * Math.PI), this._segList.addPt(e), this.addFilletArc(t, u, f, i, o), this._segList.addPt(n);
|
|
10855
10858
|
};
|
|
10856
|
-
|
|
10857
|
-
if (this._offset0.p1.distance(this._offset1.p0) < this._distance *
|
|
10859
|
+
lt.prototype.addOutsideTurn = function(t, e) {
|
|
10860
|
+
if (this._offset0.p1.distance(this._offset1.p0) < this._distance * lt.OFFSET_SEGMENT_SEPARATION_FACTOR)
|
|
10858
10861
|
return this._segList.addPt(this._offset0.p1), null;
|
|
10859
10862
|
this._bufParams.getJoinStyle() === J.JOIN_MITRE ? this.addMitreJoin(this._s1, this._offset0, this._offset1, this._distance) : this._bufParams.getJoinStyle() === J.JOIN_BEVEL ? this.addBevelJoin(this._offset0, this._offset1) : (e && this._segList.addPt(this._offset0.p1), this.addFilletCorner(this._s1, this._offset0.p1, this._offset1.p0, t, this._distance), this._segList.addPt(this._offset1.p0));
|
|
10860
10863
|
};
|
|
10861
|
-
|
|
10864
|
+
lt.prototype.createSquare = function(t) {
|
|
10862
10865
|
this._segList.addPt(new v(t.x + this._distance, t.y + this._distance)), this._segList.addPt(new v(t.x + this._distance, t.y - this._distance)), this._segList.addPt(new v(t.x - this._distance, t.y - this._distance)), this._segList.addPt(new v(t.x - this._distance, t.y + this._distance)), this._segList.closeRing();
|
|
10863
10866
|
};
|
|
10864
|
-
|
|
10867
|
+
lt.prototype.addSegments = function(t, e) {
|
|
10865
10868
|
this._segList.addPts(t, e);
|
|
10866
10869
|
};
|
|
10867
|
-
|
|
10870
|
+
lt.prototype.addFirstSegment = function() {
|
|
10868
10871
|
this._segList.addPt(this._offset1.p0);
|
|
10869
10872
|
};
|
|
10870
|
-
|
|
10873
|
+
lt.prototype.addLastSegment = function() {
|
|
10871
10874
|
this._segList.addPt(this._offset1.p1);
|
|
10872
10875
|
};
|
|
10873
|
-
|
|
10876
|
+
lt.prototype.initSideSegments = function(t, e, n) {
|
|
10874
10877
|
this._s1 = t, this._s2 = e, this._side = n, this._seg1.setCoordinates(t, e), this.computeOffsetSegment(this._seg1, n, this._distance, this._offset1);
|
|
10875
10878
|
};
|
|
10876
|
-
|
|
10879
|
+
lt.prototype.addLimitedMitreJoin = function(t, e, n, i) {
|
|
10877
10880
|
var o = this._seg0.p1, s = K.angle(o, this._seg0.p0), a = K.angleBetweenOriented(this._seg0.p0, o, this._seg1.p1), u = a / 2, l = K.normalize(s + u), c = K.normalize(l + Math.PI), f = i * n, h = f * Math.abs(Math.sin(u)), g = n - h, p = o.x + f * Math.cos(c), y = o.y + f * Math.sin(c), d = new v(p, y), m = new B(o, d), E = m.pointAlongOffset(1, g), C = m.pointAlongOffset(1, -g);
|
|
10878
10881
|
this._side === b.LEFT ? (this._segList.addPt(E), this._segList.addPt(C)) : (this._segList.addPt(C), this._segList.addPt(E));
|
|
10879
10882
|
};
|
|
10880
|
-
|
|
10883
|
+
lt.prototype.computeOffsetSegment = function(t, e, n, i) {
|
|
10881
10884
|
var o = e === b.LEFT ? 1 : -1, s = t.p1.x - t.p0.x, a = t.p1.y - t.p0.y, u = Math.sqrt(s * s + a * a), l = o * n * s / u, c = o * n * a / u;
|
|
10882
10885
|
i.p0.x = t.p0.x - c, i.p0.y = t.p0.y + l, i.p1.x = t.p1.x - c, i.p1.y = t.p1.y + l;
|
|
10883
10886
|
};
|
|
10884
|
-
|
|
10887
|
+
lt.prototype.addFilletArc = function(t, e, n, i, o) {
|
|
10885
10888
|
var s = this, a = i === M.CLOCKWISE ? -1 : 1, u = Math.abs(e - n), l = Math.trunc(u / this._filletAngleQuantum + 0.5);
|
|
10886
10889
|
if (l < 1)
|
|
10887
10890
|
return null;
|
|
@@ -10890,10 +10893,10 @@ ut.prototype.addFilletArc = function(t, e, n, i, o) {
|
|
|
10890
10893
|
g.x = t.x + o * Math.cos(p), g.y = t.y + o * Math.sin(p), s._segList.addPt(g), h += f;
|
|
10891
10894
|
}
|
|
10892
10895
|
};
|
|
10893
|
-
|
|
10896
|
+
lt.prototype.addInsideTurn = function(t, e) {
|
|
10894
10897
|
if (this._li.computeIntersection(this._offset0.p0, this._offset0.p1, this._offset1.p0, this._offset1.p1), this._li.hasIntersection())
|
|
10895
10898
|
this._segList.addPt(this._li.getIntersection(0));
|
|
10896
|
-
else if (this._hasNarrowConcaveAngle = !0, this._offset0.p1.distance(this._offset1.p0) < this._distance *
|
|
10899
|
+
else if (this._hasNarrowConcaveAngle = !0, this._offset0.p1.distance(this._offset1.p0) < this._distance * lt.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR)
|
|
10897
10900
|
this._segList.addPt(this._offset0.p1);
|
|
10898
10901
|
else {
|
|
10899
10902
|
if (this._segList.addPt(this._offset0.p1), this._closingSegLengthFactor > 0) {
|
|
@@ -10906,32 +10909,32 @@ ut.prototype.addInsideTurn = function(t, e) {
|
|
|
10906
10909
|
this._segList.addPt(this._offset1.p0);
|
|
10907
10910
|
}
|
|
10908
10911
|
};
|
|
10909
|
-
|
|
10912
|
+
lt.prototype.createCircle = function(t) {
|
|
10910
10913
|
var e = new v(t.x + this._distance, t.y);
|
|
10911
10914
|
this._segList.addPt(e), this.addFilletArc(t, 0, 2 * Math.PI, -1, this._distance), this._segList.closeRing();
|
|
10912
10915
|
};
|
|
10913
|
-
|
|
10916
|
+
lt.prototype.addBevelJoin = function(t, e) {
|
|
10914
10917
|
this._segList.addPt(t.p1), this._segList.addPt(e.p0);
|
|
10915
10918
|
};
|
|
10916
|
-
|
|
10917
|
-
this._distance = t, this._maxCurveSegmentError = t * (1 - Math.cos(this._filletAngleQuantum / 2)), this._segList = new be(), this._segList.setPrecisionModel(this._precisionModel), this._segList.setMinimumVertexDistance(t *
|
|
10919
|
+
lt.prototype.init = function(t) {
|
|
10920
|
+
this._distance = t, this._maxCurveSegmentError = t * (1 - Math.cos(this._filletAngleQuantum / 2)), this._segList = new be(), this._segList.setPrecisionModel(this._precisionModel), this._segList.setMinimumVertexDistance(t * lt.CURVE_VERTEX_SNAP_DISTANCE_FACTOR);
|
|
10918
10921
|
};
|
|
10919
|
-
|
|
10922
|
+
lt.prototype.addCollinear = function(t) {
|
|
10920
10923
|
this._li.computeIntersection(this._s0, this._s1, this._s1, this._s2);
|
|
10921
10924
|
var e = this._li.getIntersectionNum();
|
|
10922
10925
|
e >= 2 && (this._bufParams.getJoinStyle() === J.JOIN_BEVEL || this._bufParams.getJoinStyle() === J.JOIN_MITRE ? (t && this._segList.addPt(this._offset0.p1), this._segList.addPt(this._offset1.p0)) : this.addFilletCorner(this._s1, this._offset0.p1, this._offset1.p0, M.CLOCKWISE, this._distance));
|
|
10923
10926
|
};
|
|
10924
|
-
|
|
10927
|
+
lt.prototype.closeRing = function() {
|
|
10925
10928
|
this._segList.closeRing();
|
|
10926
10929
|
};
|
|
10927
|
-
|
|
10930
|
+
lt.prototype.hasNarrowConcaveAngle = function() {
|
|
10928
10931
|
return this._hasNarrowConcaveAngle;
|
|
10929
10932
|
};
|
|
10930
|
-
|
|
10933
|
+
lt.prototype.interfaces_ = function() {
|
|
10931
10934
|
return [];
|
|
10932
10935
|
};
|
|
10933
|
-
|
|
10934
|
-
return
|
|
10936
|
+
lt.prototype.getClass = function() {
|
|
10937
|
+
return lt;
|
|
10935
10938
|
};
|
|
10936
10939
|
So.OFFSET_SEGMENT_SEPARATION_FACTOR.get = function() {
|
|
10937
10940
|
return 1e-3;
|
|
@@ -10945,7 +10948,7 @@ So.CURVE_VERTEX_SNAP_DISTANCE_FACTOR.get = function() {
|
|
|
10945
10948
|
So.MAX_CLOSING_SEG_LEN_FACTOR.get = function() {
|
|
10946
10949
|
return 80;
|
|
10947
10950
|
};
|
|
10948
|
-
Object.defineProperties(
|
|
10951
|
+
Object.defineProperties(lt, So);
|
|
10949
10952
|
var fe = function() {
|
|
10950
10953
|
this._distance = 0, this._precisionModel = null, this._bufParams = null;
|
|
10951
10954
|
var t = arguments[0], e = arguments[1];
|
|
@@ -11053,7 +11056,7 @@ fe.prototype.computeOffsetCurve = function(t, e, n) {
|
|
|
11053
11056
|
n.addLastSegment();
|
|
11054
11057
|
};
|
|
11055
11058
|
fe.prototype.getSegGen = function(t) {
|
|
11056
|
-
return new
|
|
11059
|
+
return new lt(this._precisionModel, this._bufParams, t);
|
|
11057
11060
|
};
|
|
11058
11061
|
fe.prototype.interfaces_ = function() {
|
|
11059
11062
|
return [];
|
|
@@ -11070,7 +11073,7 @@ var ni = function() {
|
|
|
11070
11073
|
this._subgraphs = null, this._seg = new B(), this._cga = new M();
|
|
11071
11074
|
var t = arguments[0];
|
|
11072
11075
|
this._subgraphs = t;
|
|
11073
|
-
},
|
|
11076
|
+
}, wu = { DepthSegment: { configurable: !0 } };
|
|
11074
11077
|
ni.prototype.findStabbedSegments = function() {
|
|
11075
11078
|
var t = this;
|
|
11076
11079
|
if (arguments.length === 1) {
|
|
@@ -11080,7 +11083,7 @@ ni.prototype.findStabbedSegments = function() {
|
|
|
11080
11083
|
}
|
|
11081
11084
|
return n;
|
|
11082
11085
|
} else if (arguments.length === 3) {
|
|
11083
|
-
if (z(arguments[2], qe) && arguments[0] instanceof v && arguments[1] instanceof
|
|
11086
|
+
if (z(arguments[2], qe) && arguments[0] instanceof v && arguments[1] instanceof Ms)
|
|
11084
11087
|
for (var a = arguments[0], u = arguments[1], l = arguments[2], c = u.getEdge().getCoordinates(), f = 0; f < c.length - 1; f++) {
|
|
11085
11088
|
t._seg.p0 = c[f], t._seg.p1 = c[f + 1], t._seg.p0.y > t._seg.p1.y && t._seg.reverse();
|
|
11086
11089
|
var h = Math.max(t._seg.p0.x, t._seg.p1.x);
|
|
@@ -11111,10 +11114,10 @@ ni.prototype.interfaces_ = function() {
|
|
|
11111
11114
|
ni.prototype.getClass = function() {
|
|
11112
11115
|
return ni;
|
|
11113
11116
|
};
|
|
11114
|
-
|
|
11117
|
+
wu.DepthSegment.get = function() {
|
|
11115
11118
|
return Ar;
|
|
11116
11119
|
};
|
|
11117
|
-
Object.defineProperties(ni,
|
|
11120
|
+
Object.defineProperties(ni, wu);
|
|
11118
11121
|
var Ar = function() {
|
|
11119
11122
|
this._upwardSeg = null, this._leftDepth = null;
|
|
11120
11123
|
var t = arguments[0], e = arguments[1];
|
|
@@ -11153,7 +11156,7 @@ tt.prototype.signedArea = function() {
|
|
|
11153
11156
|
};
|
|
11154
11157
|
tt.prototype.interpolateZ = function(t) {
|
|
11155
11158
|
if (t === null)
|
|
11156
|
-
throw new
|
|
11159
|
+
throw new ft("Supplied point is null.");
|
|
11157
11160
|
return tt.interpolateZ(t, this.p0, this.p1, this.p2);
|
|
11158
11161
|
};
|
|
11159
11162
|
tt.prototype.longestSideLength = function() {
|
|
@@ -11522,7 +11525,7 @@ Zt.prototype.interfaces_ = function() {
|
|
|
11522
11525
|
Zt.prototype.getClass = function() {
|
|
11523
11526
|
return Zt;
|
|
11524
11527
|
};
|
|
11525
|
-
var
|
|
11528
|
+
var Qc = function(r) {
|
|
11526
11529
|
function t() {
|
|
11527
11530
|
r.call(this), this._resultAreaEdgeList = null, this._label = null, this._SCANNING_FOR_INCOMING = 1, this._LINKING_TO_OUTGOING = 2;
|
|
11528
11531
|
}
|
|
@@ -11675,12 +11678,12 @@ var Kc = function(r) {
|
|
|
11675
11678
|
}, t.prototype.getClass = function() {
|
|
11676
11679
|
return t;
|
|
11677
11680
|
}, t;
|
|
11678
|
-
}(Zt),
|
|
11681
|
+
}(Zt), Lu = function(r) {
|
|
11679
11682
|
function t() {
|
|
11680
11683
|
r.apply(this, arguments);
|
|
11681
11684
|
}
|
|
11682
11685
|
return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t.prototype.createNode = function(n) {
|
|
11683
|
-
return new ls(n, new
|
|
11686
|
+
return new ls(n, new Qc());
|
|
11684
11687
|
}, t.prototype.interfaces_ = function() {
|
|
11685
11688
|
return [];
|
|
11686
11689
|
}, t.prototype.getClass = function() {
|
|
@@ -12010,7 +12013,7 @@ var Ut = function r() {
|
|
|
12010
12013
|
for (var e = 0; e < 2; e++)
|
|
12011
12014
|
for (var n = 0; n < 3; n++)
|
|
12012
12015
|
t._depth[e][n] = r.NULL_VALUE;
|
|
12013
|
-
},
|
|
12016
|
+
}, bu = { NULL_VALUE: { configurable: !0 } };
|
|
12014
12017
|
Ut.prototype.getDepth = function(t, e) {
|
|
12015
12018
|
return this._depth[t][e];
|
|
12016
12019
|
};
|
|
@@ -12075,10 +12078,10 @@ Ut.prototype.getClass = function() {
|
|
|
12075
12078
|
Ut.depthAtLocation = function(t) {
|
|
12076
12079
|
return t === _.EXTERIOR ? 0 : t === _.INTERIOR ? 1 : Ut.NULL_VALUE;
|
|
12077
12080
|
};
|
|
12078
|
-
|
|
12081
|
+
bu.NULL_VALUE.get = function() {
|
|
12079
12082
|
return -1;
|
|
12080
12083
|
};
|
|
12081
|
-
Object.defineProperties(Ut,
|
|
12084
|
+
Object.defineProperties(Ut, bu);
|
|
12082
12085
|
var Xo = function(r) {
|
|
12083
12086
|
function t() {
|
|
12084
12087
|
if (r.call(this), this.pts = null, this._env = null, this.eiList = new On(this), this._name = null, this._mce = null, this._isIsolated = !0, this._depth = new Ut(), this._depthDelta = 0, arguments.length === 1) {
|
|
@@ -12234,7 +12237,7 @@ re.prototype.createEmptyResultGeometry = function() {
|
|
|
12234
12237
|
re.prototype.getNoder = function(t) {
|
|
12235
12238
|
if (this._workingNoder !== null)
|
|
12236
12239
|
return this._workingNoder;
|
|
12237
|
-
var e = new
|
|
12240
|
+
var e = new Ks(), n = new Yr();
|
|
12238
12241
|
return n.setPrecisionModel(t), e.setSegmentIntersector(new Pe(n)), e;
|
|
12239
12242
|
};
|
|
12240
12243
|
re.prototype.buffer = function(t, e) {
|
|
@@ -12243,7 +12246,7 @@ re.prototype.buffer = function(t, e) {
|
|
|
12243
12246
|
var i = new fe(n, this._bufParams), o = new Fe(t, e, i), s = o.getCurves();
|
|
12244
12247
|
if (s.size() <= 0)
|
|
12245
12248
|
return this.createEmptyResultGeometry();
|
|
12246
|
-
this.computeNodedEdges(s, n), this._graph = new pt(new
|
|
12249
|
+
this.computeNodedEdges(s, n), this._graph = new pt(new Lu()), this._graph.addEdges(this._edgeList.getEdges());
|
|
12247
12250
|
var a = this.createSubgraphs(this._graph), u = new ve(this._geomFact);
|
|
12248
12251
|
this.buildSubgraphs(a, u);
|
|
12249
12252
|
var l = u.getPolygons();
|
|
@@ -12341,7 +12344,7 @@ var dn = function() {
|
|
|
12341
12344
|
this._li = new Yr(), this._segStrings = null;
|
|
12342
12345
|
var t = arguments[0];
|
|
12343
12346
|
this._segStrings = t;
|
|
12344
|
-
},
|
|
12347
|
+
}, Pu = { fact: { configurable: !0 } };
|
|
12345
12348
|
dn.prototype.checkEndPtVertexIntersections = function() {
|
|
12346
12349
|
var t = this;
|
|
12347
12350
|
if (arguments.length === 0)
|
|
@@ -12409,17 +12412,17 @@ dn.prototype.interfaces_ = function() {
|
|
|
12409
12412
|
dn.prototype.getClass = function() {
|
|
12410
12413
|
return dn;
|
|
12411
12414
|
};
|
|
12412
|
-
|
|
12415
|
+
Pu.fact.get = function() {
|
|
12413
12416
|
return new H();
|
|
12414
12417
|
};
|
|
12415
|
-
Object.defineProperties(dn,
|
|
12418
|
+
Object.defineProperties(dn, Pu);
|
|
12416
12419
|
var he = function() {
|
|
12417
12420
|
this._li = null, this._pt = null, this._originalPt = null, this._ptScaled = null, this._p0Scaled = null, this._p1Scaled = null, this._scaleFactor = null, this._minx = null, this._maxx = null, this._miny = null, this._maxy = null, this._corner = new Array(4).fill(null), this._safeEnv = null;
|
|
12418
12421
|
var t = arguments[0], e = arguments[1], n = arguments[2];
|
|
12419
12422
|
if (this._originalPt = t, this._pt = t, this._scaleFactor = e, this._li = n, e <= 0)
|
|
12420
|
-
throw new
|
|
12423
|
+
throw new ft("Scale factor must be non-zero");
|
|
12421
12424
|
e !== 1 && (this._pt = new v(this.scale(t.x), this.scale(t.y)), this._p0Scaled = new v(), this._p1Scaled = new v()), this.initCorners(this._pt);
|
|
12422
|
-
},
|
|
12425
|
+
}, Ru = { SAFE_ENV_EXPANSION_FACTOR: { configurable: !0 } };
|
|
12423
12426
|
he.prototype.intersectsScaled = function(t, e) {
|
|
12424
12427
|
var n = Math.min(t.x, e.x), i = Math.max(t.x, e.x), o = Math.min(t.y, e.y), s = Math.max(t.y, e.y), a = this._maxx < n || this._minx > i || this._maxy < o || this._miny > s;
|
|
12425
12428
|
if (a)
|
|
@@ -12467,10 +12470,10 @@ he.prototype.interfaces_ = function() {
|
|
|
12467
12470
|
he.prototype.getClass = function() {
|
|
12468
12471
|
return he;
|
|
12469
12472
|
};
|
|
12470
|
-
|
|
12473
|
+
Ru.SAFE_ENV_EXPANSION_FACTOR.get = function() {
|
|
12471
12474
|
return 0.75;
|
|
12472
12475
|
};
|
|
12473
|
-
Object.defineProperties(he,
|
|
12476
|
+
Object.defineProperties(he, Ru);
|
|
12474
12477
|
var go = function() {
|
|
12475
12478
|
this.tempEnv1 = new k(), this.selectedSegment = new B();
|
|
12476
12479
|
};
|
|
@@ -12492,13 +12495,13 @@ var Mi = function() {
|
|
|
12492
12495
|
this._index = null;
|
|
12493
12496
|
var t = arguments[0];
|
|
12494
12497
|
this._index = t;
|
|
12495
|
-
},
|
|
12498
|
+
}, Ou = { HotPixelSnapAction: { configurable: !0 } };
|
|
12496
12499
|
Mi.prototype.snap = function() {
|
|
12497
12500
|
if (arguments.length === 1) {
|
|
12498
12501
|
var t = arguments[0];
|
|
12499
12502
|
return this.snap(t, null, -1);
|
|
12500
12503
|
} else if (arguments.length === 3) {
|
|
12501
|
-
var e = arguments[0], n = arguments[1], i = arguments[2], o = e.getSafeEnvelope(), s = new
|
|
12504
|
+
var e = arguments[0], n = arguments[1], i = arguments[2], o = e.getSafeEnvelope(), s = new Du(e, n, i);
|
|
12502
12505
|
return this._index.query(o, {
|
|
12503
12506
|
interfaces_: function() {
|
|
12504
12507
|
return [hr];
|
|
@@ -12516,11 +12519,11 @@ Mi.prototype.interfaces_ = function() {
|
|
|
12516
12519
|
Mi.prototype.getClass = function() {
|
|
12517
12520
|
return Mi;
|
|
12518
12521
|
};
|
|
12519
|
-
|
|
12520
|
-
return
|
|
12522
|
+
Ou.HotPixelSnapAction.get = function() {
|
|
12523
|
+
return Du;
|
|
12521
12524
|
};
|
|
12522
|
-
Object.defineProperties(Mi,
|
|
12523
|
-
var
|
|
12525
|
+
Object.defineProperties(Mi, Ou);
|
|
12526
|
+
var Du = function(r) {
|
|
12524
12527
|
function t() {
|
|
12525
12528
|
r.call(this), this._hotPixel = null, this._parentEdge = null, this._hotPixelVertexIndex = null, this._isNodeAdded = !1;
|
|
12526
12529
|
var e = arguments[0], n = arguments[1], i = arguments[2];
|
|
@@ -12579,7 +12582,7 @@ Dn.prototype.checkCorrectness = function(t) {
|
|
|
12579
12582
|
try {
|
|
12580
12583
|
n.checkValid();
|
|
12581
12584
|
} catch (i) {
|
|
12582
|
-
if (i instanceof
|
|
12585
|
+
if (i instanceof du)
|
|
12583
12586
|
i.printStackTrace();
|
|
12584
12587
|
else
|
|
12585
12588
|
throw i;
|
|
@@ -12611,7 +12614,7 @@ Dn.prototype.computeVertexSnaps = function() {
|
|
|
12611
12614
|
}
|
|
12612
12615
|
};
|
|
12613
12616
|
Dn.prototype.computeNodes = function(t) {
|
|
12614
|
-
this._nodedSegStrings = t, this._noder = new
|
|
12617
|
+
this._nodedSegStrings = t, this._noder = new Ks(), this._pointSnapper = new Mi(this._noder.getIndex()), this.snapRound(t, this._li);
|
|
12615
12618
|
};
|
|
12616
12619
|
Dn.prototype.computeIntersectionSnaps = function(t) {
|
|
12617
12620
|
for (var e = this, n = t.iterator(); n.hasNext(); ) {
|
|
@@ -12827,7 +12830,7 @@ Nn.computeDistance = function() {
|
|
|
12827
12830
|
};
|
|
12828
12831
|
var Br = function(t) {
|
|
12829
12832
|
this._maxPtDist = new te(), this._inputGeom = t || null;
|
|
12830
|
-
},
|
|
12833
|
+
}, Qs = { MaxPointDistanceFilter: { configurable: !0 }, MaxMidpointDistanceFilter: { configurable: !0 } };
|
|
12831
12834
|
Br.prototype.computeMaxMidpointDistance = function(t) {
|
|
12832
12835
|
var e = new vr(this._inputGeom);
|
|
12833
12836
|
t.apply(e), this._maxPtDist.setMaximum(e.getMaxPointDistance());
|
|
@@ -12848,13 +12851,13 @@ Br.prototype.interfaces_ = function() {
|
|
|
12848
12851
|
Br.prototype.getClass = function() {
|
|
12849
12852
|
return Br;
|
|
12850
12853
|
};
|
|
12851
|
-
|
|
12854
|
+
Qs.MaxPointDistanceFilter.get = function() {
|
|
12852
12855
|
return ii;
|
|
12853
12856
|
};
|
|
12854
|
-
|
|
12857
|
+
Qs.MaxMidpointDistanceFilter.get = function() {
|
|
12855
12858
|
return vr;
|
|
12856
12859
|
};
|
|
12857
|
-
Object.defineProperties(Br,
|
|
12860
|
+
Object.defineProperties(Br, Qs);
|
|
12858
12861
|
var ii = function(t) {
|
|
12859
12862
|
this._maxPtDist = new te(), this._minPtDist = new te(), this._geom = t || null;
|
|
12860
12863
|
};
|
|
@@ -12985,7 +12988,7 @@ var Ke = function() {
|
|
|
12985
12988
|
if (arguments.length === 1) {
|
|
12986
12989
|
var t = arguments[0];
|
|
12987
12990
|
if (t === null)
|
|
12988
|
-
throw new
|
|
12991
|
+
throw new ft("Rule must be non-null");
|
|
12989
12992
|
this._boundaryRule = t;
|
|
12990
12993
|
}
|
|
12991
12994
|
}
|
|
@@ -13068,7 +13071,7 @@ var ee = function r() {
|
|
|
13068
13071
|
var n = arguments[0], i = arguments[1], o = arguments[2];
|
|
13069
13072
|
this._component = n, this._segIndex = i, this._pt = o;
|
|
13070
13073
|
}
|
|
13071
|
-
},
|
|
13074
|
+
}, Tu = { INSIDE_AREA: { configurable: !0 } };
|
|
13072
13075
|
ee.prototype.isInsideArea = function() {
|
|
13073
13076
|
return this._segIndex === ee.INSIDE_AREA;
|
|
13074
13077
|
};
|
|
@@ -13087,10 +13090,10 @@ ee.prototype.interfaces_ = function() {
|
|
|
13087
13090
|
ee.prototype.getClass = function() {
|
|
13088
13091
|
return ee;
|
|
13089
13092
|
};
|
|
13090
|
-
|
|
13093
|
+
Tu.INSIDE_AREA.get = function() {
|
|
13091
13094
|
return -1;
|
|
13092
13095
|
};
|
|
13093
|
-
Object.defineProperties(ee,
|
|
13096
|
+
Object.defineProperties(ee, Tu);
|
|
13094
13097
|
var ar = function(t) {
|
|
13095
13098
|
this._pts = t || null;
|
|
13096
13099
|
};
|
|
@@ -13242,7 +13245,7 @@ Xt.prototype.computeMinDistancePoints = function(t, e, n) {
|
|
|
13242
13245
|
};
|
|
13243
13246
|
Xt.prototype.distance = function() {
|
|
13244
13247
|
if (this._geom[0] === null || this._geom[1] === null)
|
|
13245
|
-
throw new
|
|
13248
|
+
throw new ft("null geometries are not supported");
|
|
13246
13249
|
return this._geom[0].isEmpty() || this._geom[1].isEmpty() ? 0 : (this.computeMinDistance(), this._minDistance);
|
|
13247
13250
|
};
|
|
13248
13251
|
Xt.prototype.computeMinDistanceLines = function(t, e, n) {
|
|
@@ -13369,13 +13372,13 @@ var Te = function() {
|
|
|
13369
13372
|
this._g0 = null, this._g1 = null, this._ptDist = new jt(), this._densifyFrac = 0;
|
|
13370
13373
|
var t = arguments[0], e = arguments[1];
|
|
13371
13374
|
this._g0 = t, this._g1 = e;
|
|
13372
|
-
},
|
|
13375
|
+
}, Zs = { MaxPointDistanceFilter: { configurable: !0 }, MaxDensifiedByFractionDistanceFilter: { configurable: !0 } };
|
|
13373
13376
|
Te.prototype.getCoordinates = function() {
|
|
13374
13377
|
return this._ptDist.getCoordinates();
|
|
13375
13378
|
};
|
|
13376
13379
|
Te.prototype.setDensifyFraction = function(t) {
|
|
13377
13380
|
if (t > 1 || t <= 0)
|
|
13378
|
-
throw new
|
|
13381
|
+
throw new ft("Fraction is not in range (0.0 - 1.0]");
|
|
13379
13382
|
this._densifyFrac = t;
|
|
13380
13383
|
};
|
|
13381
13384
|
Te.prototype.compute = function(t, e) {
|
|
@@ -13409,13 +13412,13 @@ Te.distance = function() {
|
|
|
13409
13412
|
return a.setDensifyFraction(s), a.distance();
|
|
13410
13413
|
}
|
|
13411
13414
|
};
|
|
13412
|
-
|
|
13415
|
+
Zs.MaxPointDistanceFilter.get = function() {
|
|
13413
13416
|
return si;
|
|
13414
13417
|
};
|
|
13415
|
-
|
|
13418
|
+
Zs.MaxDensifiedByFractionDistanceFilter.get = function() {
|
|
13416
13419
|
return yr;
|
|
13417
13420
|
};
|
|
13418
|
-
Object.defineProperties(Te,
|
|
13421
|
+
Object.defineProperties(Te, Zs);
|
|
13419
13422
|
var si = function() {
|
|
13420
13423
|
this._maxPtDist = new jt(), this._minPtDist = new jt(), this._euclideanDist = new rn(), this._geom = null;
|
|
13421
13424
|
var t = arguments[0];
|
|
@@ -13464,7 +13467,7 @@ yr.prototype.getClass = function() {
|
|
|
13464
13467
|
};
|
|
13465
13468
|
var pe = function(t, e, n) {
|
|
13466
13469
|
this._minValidDistance = null, this._maxValidDistance = null, this._minDistanceFound = null, this._maxDistanceFound = null, this._isValid = !0, this._errMsg = null, this._errorLocation = null, this._errorIndicator = null, this._input = t || null, this._bufDistance = e || null, this._result = n || null;
|
|
13467
|
-
},
|
|
13470
|
+
}, Js = { VERBOSE: { configurable: !0 }, MAX_DISTANCE_DIFF_FRAC: { configurable: !0 } };
|
|
13468
13471
|
pe.prototype.checkMaximumDistance = function(t, e, n) {
|
|
13469
13472
|
var i = new Te(e, t);
|
|
13470
13473
|
if (i.setDensifyFraction(0.25), this._maxDistanceFound = i.orientedDistance(), this._maxDistanceFound > n) {
|
|
@@ -13521,16 +13524,16 @@ pe.prototype.interfaces_ = function() {
|
|
|
13521
13524
|
pe.prototype.getClass = function() {
|
|
13522
13525
|
return pe;
|
|
13523
13526
|
};
|
|
13524
|
-
|
|
13527
|
+
Js.VERBOSE.get = function() {
|
|
13525
13528
|
return !1;
|
|
13526
13529
|
};
|
|
13527
|
-
|
|
13530
|
+
Js.MAX_DISTANCE_DIFF_FRAC.get = function() {
|
|
13528
13531
|
return 0.012;
|
|
13529
13532
|
};
|
|
13530
|
-
Object.defineProperties(pe,
|
|
13533
|
+
Object.defineProperties(pe, Js);
|
|
13531
13534
|
var Yt = function(t, e, n) {
|
|
13532
13535
|
this._isValid = !0, this._errorMsg = null, this._errorLocation = null, this._errorIndicator = null, this._input = t || null, this._distance = e || null, this._result = n || null;
|
|
13533
|
-
},
|
|
13536
|
+
}, $s = { VERBOSE: { configurable: !0 }, MAX_ENV_DIFF_FRAC: { configurable: !0 } };
|
|
13534
13537
|
Yt.prototype.isValid = function() {
|
|
13535
13538
|
return this.checkPolygonal(), this._isValid ? (this.checkExpectedEmpty(), this._isValid ? (this.checkEnvelope(), this._isValid ? (this.checkArea(), this._isValid ? (this.checkDistance(), this._isValid) : this._isValid) : this._isValid) : this._isValid) : this._isValid;
|
|
13536
13539
|
};
|
|
@@ -13588,13 +13591,13 @@ Yt.isValid = function(t, e, n) {
|
|
|
13588
13591
|
var i = new Yt(t, e, n);
|
|
13589
13592
|
return !!i.isValid();
|
|
13590
13593
|
};
|
|
13591
|
-
|
|
13594
|
+
$s.VERBOSE.get = function() {
|
|
13592
13595
|
return !1;
|
|
13593
13596
|
};
|
|
13594
|
-
|
|
13597
|
+
$s.MAX_ENV_DIFF_FRAC.get = function() {
|
|
13595
13598
|
return 0.012;
|
|
13596
13599
|
};
|
|
13597
|
-
Object.defineProperties(Yt,
|
|
13600
|
+
Object.defineProperties(Yt, $s);
|
|
13598
13601
|
var vn = function() {
|
|
13599
13602
|
this._pts = null, this._data = null;
|
|
13600
13603
|
var t = arguments[0], e = arguments[1];
|
|
@@ -13714,7 +13717,7 @@ Qe.prototype.setFindAllIntersections = function(t) {
|
|
|
13714
13717
|
};
|
|
13715
13718
|
Qe.prototype.checkInteriorIntersections = function() {
|
|
13716
13719
|
this._isValid = !0, this._segInt = new At(this._li), this._segInt.setFindAllIntersections(this._findAllIntersections);
|
|
13717
|
-
var t = new
|
|
13720
|
+
var t = new Ks();
|
|
13718
13721
|
if (t.setSegmentIntersector(this._segInt), t.computeNodes(this._segStrings), this._segInt.hasIntersection())
|
|
13719
13722
|
return this._isValid = !1, null;
|
|
13720
13723
|
};
|
|
@@ -13950,7 +13953,7 @@ ge.prototype.transform = function(t) {
|
|
|
13950
13953
|
return this.transformMultiPolygon(t, null);
|
|
13951
13954
|
if (t instanceof ie)
|
|
13952
13955
|
return this.transformGeometryCollection(t, null);
|
|
13953
|
-
throw new
|
|
13956
|
+
throw new ft("Unknown Geometry subtype: " + t.getClass().getName());
|
|
13954
13957
|
};
|
|
13955
13958
|
ge.prototype.transformLinearRing = function(t, e) {
|
|
13956
13959
|
var n = this.transformCoordinates(t.getCoordinateSequence(), t);
|
|
@@ -14032,13 +14035,13 @@ Tn.isClosed = function(t) {
|
|
|
14032
14035
|
};
|
|
14033
14036
|
var Et = function(t) {
|
|
14034
14037
|
this._srcGeom = t || null;
|
|
14035
|
-
},
|
|
14038
|
+
}, Mu = { SNAP_PRECISION_FACTOR: { configurable: !0 } };
|
|
14036
14039
|
Et.prototype.snapTo = function(t, e) {
|
|
14037
|
-
var n = this.extractTargetCoordinates(t), i = new
|
|
14040
|
+
var n = this.extractTargetCoordinates(t), i = new Au(e, n);
|
|
14038
14041
|
return i.transform(this._srcGeom);
|
|
14039
14042
|
};
|
|
14040
14043
|
Et.prototype.snapToSelf = function(t, e) {
|
|
14041
|
-
var n = this.extractTargetCoordinates(this._srcGeom), i = new
|
|
14044
|
+
var n = this.extractTargetCoordinates(this._srcGeom), i = new Au(t, n, !0), o = i.transform(this._srcGeom), s = o;
|
|
14042
14045
|
return e && z(s, fr) && (s = o.buffer(0)), s;
|
|
14043
14046
|
};
|
|
14044
14047
|
Et.prototype.computeSnapTolerance = function(t) {
|
|
@@ -14090,11 +14093,11 @@ Et.snapToSelf = function(t, e, n) {
|
|
|
14090
14093
|
var i = new Et(t);
|
|
14091
14094
|
return i.snapToSelf(e, n);
|
|
14092
14095
|
};
|
|
14093
|
-
|
|
14096
|
+
Mu.SNAP_PRECISION_FACTOR.get = function() {
|
|
14094
14097
|
return 1e-9;
|
|
14095
14098
|
};
|
|
14096
|
-
Object.defineProperties(Et,
|
|
14097
|
-
var
|
|
14099
|
+
Object.defineProperties(Et, Mu);
|
|
14100
|
+
var Au = function(r) {
|
|
14098
14101
|
function t(e, n, i) {
|
|
14099
14102
|
r.call(this), this._snapTolerance = e || null, this._snapPts = n || null, this._isSelfSnap = i !== void 0 ? i : !1;
|
|
14100
14103
|
}
|
|
@@ -14157,7 +14160,7 @@ $t.numCommonMostSigMantissaBits = function(t, e) {
|
|
|
14157
14160
|
};
|
|
14158
14161
|
var mr = function() {
|
|
14159
14162
|
this._commonCoord = null, this._ccFilter = new li();
|
|
14160
|
-
},
|
|
14163
|
+
}, ta = { CommonCoordinateFilter: { configurable: !0 }, Translater: { configurable: !0 } };
|
|
14161
14164
|
mr.prototype.addCommonBits = function(t) {
|
|
14162
14165
|
var e = new _r(this._commonCoord);
|
|
14163
14166
|
t.apply(e), t.geometryChanged();
|
|
@@ -14182,13 +14185,13 @@ mr.prototype.interfaces_ = function() {
|
|
|
14182
14185
|
mr.prototype.getClass = function() {
|
|
14183
14186
|
return mr;
|
|
14184
14187
|
};
|
|
14185
|
-
|
|
14188
|
+
ta.CommonCoordinateFilter.get = function() {
|
|
14186
14189
|
return li;
|
|
14187
14190
|
};
|
|
14188
|
-
|
|
14191
|
+
ta.Translater.get = function() {
|
|
14189
14192
|
return _r;
|
|
14190
14193
|
};
|
|
14191
|
-
Object.defineProperties(mr,
|
|
14194
|
+
Object.defineProperties(mr, ta);
|
|
14192
14195
|
var li = function() {
|
|
14193
14196
|
this._commonBitsX = new $t(), this._commonBitsY = new $t();
|
|
14194
14197
|
};
|
|
@@ -14345,7 +14348,7 @@ var me = function r() {
|
|
|
14345
14348
|
var n = arguments[0], i = arguments[1], o = arguments[2];
|
|
14346
14349
|
this._eventType = r.INSERT, this._label = n, this._xValue = i, this._obj = o;
|
|
14347
14350
|
}
|
|
14348
|
-
},
|
|
14351
|
+
}, ea = { INSERT: { configurable: !0 }, DELETE: { configurable: !0 } };
|
|
14349
14352
|
me.prototype.isDelete = function() {
|
|
14350
14353
|
return this._eventType === me.DELETE;
|
|
14351
14354
|
};
|
|
@@ -14377,13 +14380,13 @@ me.prototype.interfaces_ = function() {
|
|
|
14377
14380
|
me.prototype.getClass = function() {
|
|
14378
14381
|
return me;
|
|
14379
14382
|
};
|
|
14380
|
-
|
|
14383
|
+
ea.INSERT.get = function() {
|
|
14381
14384
|
return 1;
|
|
14382
14385
|
};
|
|
14383
|
-
|
|
14386
|
+
ea.DELETE.get = function() {
|
|
14384
14387
|
return 2;
|
|
14385
14388
|
};
|
|
14386
|
-
Object.defineProperties(me,
|
|
14389
|
+
Object.defineProperties(me, ea);
|
|
14387
14390
|
var Yo = function() {
|
|
14388
14391
|
};
|
|
14389
14392
|
Yo.prototype.interfaces_ = function() {
|
|
@@ -14457,7 +14460,7 @@ Wt.prototype.getClass = function() {
|
|
|
14457
14460
|
Wt.isAdjacentSegments = function(t, e) {
|
|
14458
14461
|
return Math.abs(t - e) === 1;
|
|
14459
14462
|
};
|
|
14460
|
-
var
|
|
14463
|
+
var Zc = function(r) {
|
|
14461
14464
|
function t() {
|
|
14462
14465
|
r.call(this), this.events = new O(), this.nOverlaps = null;
|
|
14463
14466
|
}
|
|
@@ -14519,7 +14522,7 @@ var Qc = function(r) {
|
|
|
14519
14522
|
}, t;
|
|
14520
14523
|
}(Yo), Mn = function() {
|
|
14521
14524
|
this._min = V.POSITIVE_INFINITY, this._max = V.NEGATIVE_INFINITY;
|
|
14522
|
-
},
|
|
14525
|
+
}, Fu = { NodeComparator: { configurable: !0 } };
|
|
14523
14526
|
Mn.prototype.getMin = function() {
|
|
14524
14527
|
return this._min;
|
|
14525
14528
|
};
|
|
@@ -14538,10 +14541,10 @@ Mn.prototype.interfaces_ = function() {
|
|
|
14538
14541
|
Mn.prototype.getClass = function() {
|
|
14539
14542
|
return Mn;
|
|
14540
14543
|
};
|
|
14541
|
-
|
|
14544
|
+
Fu.NodeComparator.get = function() {
|
|
14542
14545
|
return vo;
|
|
14543
14546
|
};
|
|
14544
|
-
Object.defineProperties(Mn,
|
|
14547
|
+
Object.defineProperties(Mn, Fu);
|
|
14545
14548
|
var vo = function() {
|
|
14546
14549
|
};
|
|
14547
14550
|
vo.prototype.compare = function(t, e) {
|
|
@@ -14554,7 +14557,7 @@ vo.prototype.interfaces_ = function() {
|
|
|
14554
14557
|
vo.prototype.getClass = function() {
|
|
14555
14558
|
return vo;
|
|
14556
14559
|
};
|
|
14557
|
-
var
|
|
14560
|
+
var Jc = function(r) {
|
|
14558
14561
|
function t() {
|
|
14559
14562
|
r.call(this), this._item = null;
|
|
14560
14563
|
var e = arguments[0], n = arguments[1], i = arguments[2];
|
|
@@ -14569,7 +14572,7 @@ var Zc = function(r) {
|
|
|
14569
14572
|
}, t.prototype.getClass = function() {
|
|
14570
14573
|
return t;
|
|
14571
14574
|
}, t;
|
|
14572
|
-
}(Mn),
|
|
14575
|
+
}(Mn), $c = function(r) {
|
|
14573
14576
|
function t() {
|
|
14574
14577
|
r.call(this), this._node1 = null, this._node2 = null;
|
|
14575
14578
|
var e = arguments[0], n = arguments[1];
|
|
@@ -14601,7 +14604,7 @@ An.prototype.buildTree = function() {
|
|
|
14601
14604
|
An.prototype.insert = function(t, e, n) {
|
|
14602
14605
|
if (this._root !== null)
|
|
14603
14606
|
throw new Error("Index cannot be added to once it has been queried");
|
|
14604
|
-
this._leaves.add(new
|
|
14607
|
+
this._leaves.add(new Jc(t, e, n));
|
|
14605
14608
|
};
|
|
14606
14609
|
An.prototype.query = function(t, e, n) {
|
|
14607
14610
|
this.init(), this._root.query(t, e, n);
|
|
@@ -14626,7 +14629,7 @@ An.prototype.buildLevel = function(t, e) {
|
|
|
14626
14629
|
if (o === null)
|
|
14627
14630
|
e.add(i);
|
|
14628
14631
|
else {
|
|
14629
|
-
var s = new
|
|
14632
|
+
var s = new $c(t.get(n), t.get(n + 1));
|
|
14630
14633
|
e.add(s);
|
|
14631
14634
|
}
|
|
14632
14635
|
}
|
|
@@ -14656,9 +14659,9 @@ var Fi = function() {
|
|
|
14656
14659
|
this._index = null;
|
|
14657
14660
|
var t = arguments[0];
|
|
14658
14661
|
if (!z(t, fr))
|
|
14659
|
-
throw new
|
|
14662
|
+
throw new ft("Argument must be Polygonal");
|
|
14660
14663
|
this._index = new zr(t);
|
|
14661
|
-
},
|
|
14664
|
+
}, na = { SegmentVisitor: { configurable: !0 }, IntervalIndexedGeometry: { configurable: !0 } };
|
|
14662
14665
|
Fi.prototype.locate = function(t) {
|
|
14663
14666
|
var e = new sn(t), n = new ki(e);
|
|
14664
14667
|
return this._index.query(t.y, t.y, n), e.getLocation();
|
|
@@ -14669,13 +14672,13 @@ Fi.prototype.interfaces_ = function() {
|
|
|
14669
14672
|
Fi.prototype.getClass = function() {
|
|
14670
14673
|
return Fi;
|
|
14671
14674
|
};
|
|
14672
|
-
|
|
14675
|
+
na.SegmentVisitor.get = function() {
|
|
14673
14676
|
return ki;
|
|
14674
14677
|
};
|
|
14675
|
-
|
|
14678
|
+
na.IntervalIndexedGeometry.get = function() {
|
|
14676
14679
|
return zr;
|
|
14677
14680
|
};
|
|
14678
|
-
Object.defineProperties(Fi,
|
|
14681
|
+
Object.defineProperties(Fi, na);
|
|
14679
14682
|
var ki = function() {
|
|
14680
14683
|
this._counter = null;
|
|
14681
14684
|
var t = arguments[0];
|
|
@@ -14725,7 +14728,7 @@ zr.prototype.getClass = function() {
|
|
|
14725
14728
|
};
|
|
14726
14729
|
var Ki = function(r) {
|
|
14727
14730
|
function t() {
|
|
14728
|
-
if (r.call(this), this._parentGeom = null, this._lineEdgeMap = new
|
|
14731
|
+
if (r.call(this), this._parentGeom = null, this._lineEdgeMap = new _u(), this._boundaryNodeRule = null, this._useBoundaryDeterminationRule = !0, this._argIndex = null, this._boundaryNodes = null, this._hasTooFewPoints = !1, this._invalidPoint = null, this._areaPtLocator = null, this._ptLocator = new Ke(), arguments.length === 2) {
|
|
14729
14732
|
var e = arguments[0], n = arguments[1], i = Me.OGC_SFS_BOUNDARY_RULE;
|
|
14730
14733
|
this._argIndex = e, this._parentGeom = n, this._boundaryNodeRule = i, n !== null && this.add(n);
|
|
14731
14734
|
} else if (arguments.length === 3) {
|
|
@@ -14817,7 +14820,7 @@ var Ki = function(r) {
|
|
|
14817
14820
|
var s = this._nodes.addNode(i), a = s.getLabel();
|
|
14818
14821
|
a === null ? s._label = new et(n, o) : a.setLocation(n, o);
|
|
14819
14822
|
}, t.prototype.createEdgeSetIntersector = function() {
|
|
14820
|
-
return new
|
|
14823
|
+
return new Zc();
|
|
14821
14824
|
}, t.prototype.addSelfIntersectionNodes = function(n) {
|
|
14822
14825
|
for (var i = this, o = this._edges.iterator(); o.hasNext(); )
|
|
14823
14826
|
for (var s = o.next(), a = s.getLabel().getLocation(n), u = s.eiList.iterator(); u.hasNext(); ) {
|
|
@@ -14919,7 +14922,7 @@ br.MapOp = function() {
|
|
|
14919
14922
|
var U = function(r) {
|
|
14920
14923
|
function t() {
|
|
14921
14924
|
var e = arguments[0], n = arguments[1];
|
|
14922
|
-
r.call(this, e, n), this._ptLocator = new Ke(), this._geomFact = null, this._resultGeom = null, this._graph = null, this._edgeList = new je(), this._resultPolyList = new O(), this._resultLineList = new O(), this._resultPointList = new O(), this._graph = new pt(new
|
|
14925
|
+
r.call(this, e, n), this._ptLocator = new Ke(), this._geomFact = null, this._resultGeom = null, this._graph = null, this._edgeList = new je(), this._resultPolyList = new O(), this._resultLineList = new O(), this._resultPointList = new O(), this._graph = new pt(new Lu()), this._geomFact = e.getFactory();
|
|
14923
14926
|
}
|
|
14924
14927
|
return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t.prototype.insertUniqueEdge = function(n) {
|
|
14925
14928
|
var i = this._edgeList.findEqualEdge(n);
|
|
@@ -15207,7 +15210,7 @@ var Re = function r() {
|
|
|
15207
15210
|
this._geom = null, this._locFinder = null, this._location = new Array(3).fill(null), this._invalidLocation = null, this._boundaryDistanceTolerance = r.TOLERANCE, this._testCoords = new O();
|
|
15208
15211
|
var t = arguments[0], e = arguments[1], n = arguments[2];
|
|
15209
15212
|
this._boundaryDistanceTolerance = r.computeBoundaryDistanceTolerance(t, e), this._geom = [t, e, n], this._locFinder = [new ur(this._geom[0], this._boundaryDistanceTolerance), new ur(this._geom[1], this._boundaryDistanceTolerance), new ur(this._geom[2], this._boundaryDistanceTolerance)];
|
|
15210
|
-
},
|
|
15213
|
+
}, ku = { TOLERANCE: { configurable: !0 } };
|
|
15211
15214
|
Re.prototype.reportResult = function(t, e, n) {
|
|
15212
15215
|
qt.out.println("Overlay result invalid - A:" + _.toLocationSymbol(e[0]) + " B:" + _.toLocationSymbol(e[1]) + " expected:" + (n ? "i" : "e") + " actual:" + _.toLocationSymbol(e[2]));
|
|
15213
15216
|
};
|
|
@@ -15260,10 +15263,10 @@ Re.isValid = function(t, e, n, i) {
|
|
|
15260
15263
|
var o = new Re(t, e, i);
|
|
15261
15264
|
return o.isValid(n);
|
|
15262
15265
|
};
|
|
15263
|
-
|
|
15266
|
+
ku.TOLERANCE.get = function() {
|
|
15264
15267
|
return 1e-6;
|
|
15265
15268
|
};
|
|
15266
|
-
Object.defineProperties(Re,
|
|
15269
|
+
Object.defineProperties(Re, ku);
|
|
15267
15270
|
var Ne = function r(t) {
|
|
15268
15271
|
this._geomFactory = null, this._skipEmpty = !1, this._inputGeoms = null, this._geomFactory = r.extractFactory(t), this._inputGeoms = t;
|
|
15269
15272
|
};
|
|
@@ -15317,7 +15320,7 @@ var xt = function() {
|
|
|
15317
15320
|
this._inputPolys = null, this._geomFactory = null;
|
|
15318
15321
|
var t = arguments[0];
|
|
15319
15322
|
this._inputPolys = t, this._inputPolys === null && (this._inputPolys = new O());
|
|
15320
|
-
},
|
|
15323
|
+
}, Bu = { STRTREE_NODE_CAPACITY: { configurable: !0 } };
|
|
15321
15324
|
xt.prototype.reduceToGeometries = function(t) {
|
|
15322
15325
|
for (var e = this, n = new O(), i = t.iterator(); i.hasNext(); ) {
|
|
15323
15326
|
var o = i.next(), s = null;
|
|
@@ -15349,7 +15352,7 @@ xt.prototype.union = function() {
|
|
|
15349
15352
|
if (this._inputPolys.isEmpty())
|
|
15350
15353
|
return null;
|
|
15351
15354
|
this._geomFactory = this._inputPolys.iterator().next().getFactory();
|
|
15352
|
-
for (var t = new
|
|
15355
|
+
for (var t = new Nu(xt.STRTREE_NODE_CAPACITY), e = this._inputPolys.iterator(); e.hasNext(); ) {
|
|
15353
15356
|
var n = e.next();
|
|
15354
15357
|
t.insert(n.getEnvelopeInternal(), n);
|
|
15355
15358
|
}
|
|
@@ -15425,10 +15428,10 @@ xt.union = function(t) {
|
|
|
15425
15428
|
var e = new xt(t);
|
|
15426
15429
|
return e.union();
|
|
15427
15430
|
};
|
|
15428
|
-
|
|
15431
|
+
Bu.STRTREE_NODE_CAPACITY.get = function() {
|
|
15429
15432
|
return 4;
|
|
15430
15433
|
};
|
|
15431
|
-
Object.defineProperties(xt,
|
|
15434
|
+
Object.defineProperties(xt, Bu);
|
|
15432
15435
|
var Wo = function() {
|
|
15433
15436
|
};
|
|
15434
15437
|
Wo.prototype.interfaces_ = function() {
|
|
@@ -15461,19 +15464,19 @@ Ho.prototype = {
|
|
|
15461
15464
|
this.t = 0;
|
|
15462
15465
|
},
|
|
15463
15466
|
add: function(r) {
|
|
15464
|
-
|
|
15467
|
+
Ma(Po, r, this.t), Ma(this, Po.s, this.s), this.s ? this.t += Po.t : this.s = Po.t;
|
|
15465
15468
|
},
|
|
15466
15469
|
valueOf: function() {
|
|
15467
15470
|
return this.s;
|
|
15468
15471
|
}
|
|
15469
15472
|
};
|
|
15470
15473
|
var Po = new Ho();
|
|
15471
|
-
function
|
|
15474
|
+
function Ma(r, t, e) {
|
|
15472
15475
|
var n = r.s = t + e, i = n - t, o = n - i;
|
|
15473
15476
|
r.t = t - o + (e - i);
|
|
15474
15477
|
}
|
|
15475
|
-
var vt = 1e-6, it = Math.PI, Wn = it / 2,
|
|
15476
|
-
function
|
|
15478
|
+
var vt = 1e-6, it = Math.PI, Wn = it / 2, Aa = it / 4, tr = it * 2, Sr = 180 / it, tn = it / 180, ne = Math.abs, tf = Math.atan, zi = Math.atan2, bt = Math.cos, Pt = Math.sin, Hi = Math.sqrt;
|
|
15479
|
+
function Gu(r) {
|
|
15477
15480
|
return r > 1 ? 0 : r < -1 ? it : Math.acos(r);
|
|
15478
15481
|
}
|
|
15479
15482
|
function ci(r) {
|
|
@@ -15482,9 +15485,9 @@ function ci(r) {
|
|
|
15482
15485
|
function Qi() {
|
|
15483
15486
|
}
|
|
15484
15487
|
function jo(r, t) {
|
|
15485
|
-
r &&
|
|
15488
|
+
r && ka.hasOwnProperty(r.type) && ka[r.type](r, t);
|
|
15486
15489
|
}
|
|
15487
|
-
var
|
|
15490
|
+
var Fa = {
|
|
15488
15491
|
Feature: function(r, t) {
|
|
15489
15492
|
jo(r.geometry, t);
|
|
15490
15493
|
},
|
|
@@ -15492,7 +15495,7 @@ var Aa = {
|
|
|
15492
15495
|
for (var e = r.features, n = -1, i = e.length; ++n < i; )
|
|
15493
15496
|
jo(e[n].geometry, t);
|
|
15494
15497
|
}
|
|
15495
|
-
},
|
|
15498
|
+
}, ka = {
|
|
15496
15499
|
Sphere: function(r, t) {
|
|
15497
15500
|
t.sphere();
|
|
15498
15501
|
},
|
|
@@ -15504,42 +15507,42 @@ var Aa = {
|
|
|
15504
15507
|
r = e[n], t.point(r[0], r[1], r[2]);
|
|
15505
15508
|
},
|
|
15506
15509
|
LineString: function(r, t) {
|
|
15507
|
-
|
|
15510
|
+
As(r.coordinates, t, 0);
|
|
15508
15511
|
},
|
|
15509
15512
|
MultiLineString: function(r, t) {
|
|
15510
15513
|
for (var e = r.coordinates, n = -1, i = e.length; ++n < i; )
|
|
15511
|
-
|
|
15514
|
+
As(e[n], t, 0);
|
|
15512
15515
|
},
|
|
15513
15516
|
Polygon: function(r, t) {
|
|
15514
|
-
|
|
15517
|
+
Ba(r.coordinates, t);
|
|
15515
15518
|
},
|
|
15516
15519
|
MultiPolygon: function(r, t) {
|
|
15517
15520
|
for (var e = r.coordinates, n = -1, i = e.length; ++n < i; )
|
|
15518
|
-
|
|
15521
|
+
Ba(e[n], t);
|
|
15519
15522
|
},
|
|
15520
15523
|
GeometryCollection: function(r, t) {
|
|
15521
15524
|
for (var e = r.geometries, n = -1, i = e.length; ++n < i; )
|
|
15522
15525
|
jo(e[n], t);
|
|
15523
15526
|
}
|
|
15524
15527
|
};
|
|
15525
|
-
function
|
|
15528
|
+
function As(r, t, e) {
|
|
15526
15529
|
var n = -1, i = r.length - e, o;
|
|
15527
15530
|
for (t.lineStart(); ++n < i; )
|
|
15528
15531
|
o = r[n], t.point(o[0], o[1], o[2]);
|
|
15529
15532
|
t.lineEnd();
|
|
15530
15533
|
}
|
|
15531
|
-
function
|
|
15534
|
+
function Ba(r, t) {
|
|
15532
15535
|
var e = -1, n = r.length;
|
|
15533
15536
|
for (t.polygonStart(); ++e < n; )
|
|
15534
|
-
|
|
15537
|
+
As(r[e], t, 1);
|
|
15535
15538
|
t.polygonEnd();
|
|
15536
15539
|
}
|
|
15537
|
-
function
|
|
15538
|
-
r &&
|
|
15540
|
+
function ef(r, t) {
|
|
15541
|
+
r && Fa.hasOwnProperty(r.type) ? Fa[r.type](r, t) : jo(r, t);
|
|
15539
15542
|
}
|
|
15540
15543
|
Wr();
|
|
15541
15544
|
Wr();
|
|
15542
|
-
function
|
|
15545
|
+
function Fs(r) {
|
|
15543
15546
|
return [zi(r[1], r[0]), ci(r[2])];
|
|
15544
15547
|
}
|
|
15545
15548
|
function Vi(r) {
|
|
@@ -15552,18 +15555,18 @@ function Ro(r, t) {
|
|
|
15552
15555
|
function Ko(r, t) {
|
|
15553
15556
|
return [r[1] * t[2] - r[2] * t[1], r[2] * t[0] - r[0] * t[2], r[0] * t[1] - r[1] * t[0]];
|
|
15554
15557
|
}
|
|
15555
|
-
function
|
|
15558
|
+
function Is(r, t) {
|
|
15556
15559
|
r[0] += t[0], r[1] += t[1], r[2] += t[2];
|
|
15557
15560
|
}
|
|
15558
15561
|
function Oo(r, t) {
|
|
15559
15562
|
return [r[0] * t, r[1] * t, r[2] * t];
|
|
15560
15563
|
}
|
|
15561
|
-
function
|
|
15564
|
+
function ks(r) {
|
|
15562
15565
|
var t = Hi(r[0] * r[0] + r[1] * r[1] + r[2] * r[2]);
|
|
15563
15566
|
r[0] /= t, r[1] /= t, r[2] /= t;
|
|
15564
15567
|
}
|
|
15565
15568
|
Wr();
|
|
15566
|
-
function
|
|
15569
|
+
function zu(r, t) {
|
|
15567
15570
|
function e(n, i) {
|
|
15568
15571
|
return n = r(n, i), t(n[0], n[1]);
|
|
15569
15572
|
}
|
|
@@ -15571,23 +15574,23 @@ function Gu(r, t) {
|
|
|
15571
15574
|
return n = t.invert(n, i), n && r.invert(n[0], n[1]);
|
|
15572
15575
|
}), e;
|
|
15573
15576
|
}
|
|
15574
|
-
function
|
|
15577
|
+
function Bs(r, t) {
|
|
15575
15578
|
return [r > it ? r - tr : r < -it ? r + tr : r, t];
|
|
15576
15579
|
}
|
|
15577
|
-
|
|
15578
|
-
function
|
|
15579
|
-
return (r %= tr) ? t || e ?
|
|
15580
|
+
Bs.invert = Bs;
|
|
15581
|
+
function nf(r, t, e) {
|
|
15582
|
+
return (r %= tr) ? t || e ? zu(za(r), Va(t, e)) : za(r) : t || e ? Va(t, e) : Bs;
|
|
15580
15583
|
}
|
|
15581
|
-
function
|
|
15584
|
+
function Ga(r) {
|
|
15582
15585
|
return function(t, e) {
|
|
15583
15586
|
return t += r, [t > it ? t - tr : t < -it ? t + tr : t, e];
|
|
15584
15587
|
};
|
|
15585
15588
|
}
|
|
15586
|
-
function
|
|
15587
|
-
var t =
|
|
15588
|
-
return t.invert =
|
|
15589
|
+
function za(r) {
|
|
15590
|
+
var t = Ga(r);
|
|
15591
|
+
return t.invert = Ga(-r), t;
|
|
15589
15592
|
}
|
|
15590
|
-
function
|
|
15593
|
+
function Va(r, t) {
|
|
15591
15594
|
var e = bt(r), n = Pt(r), i = bt(t), o = Pt(t);
|
|
15592
15595
|
function s(a, u) {
|
|
15593
15596
|
var l = bt(u), c = bt(a) * l, f = Pt(a) * l, h = Pt(u), g = h * e + c * n;
|
|
@@ -15604,20 +15607,20 @@ function za(r, t) {
|
|
|
15604
15607
|
];
|
|
15605
15608
|
}, s;
|
|
15606
15609
|
}
|
|
15607
|
-
function
|
|
15610
|
+
function rf(r, t, e, n, i, o) {
|
|
15608
15611
|
if (e) {
|
|
15609
15612
|
var s = bt(t), a = Pt(t), u = n * e;
|
|
15610
|
-
i == null ? (i = t + n * tr, o = t - u / 2) : (i =
|
|
15613
|
+
i == null ? (i = t + n * tr, o = t - u / 2) : (i = Ua(s, i), o = Ua(s, o), (n > 0 ? i < o : i > o) && (i += n * tr));
|
|
15611
15614
|
for (var l, c = i; n > 0 ? c > o : c < o; c -= u)
|
|
15612
|
-
l =
|
|
15615
|
+
l = Fs([s, -a * bt(c), -a * Pt(c)]), r.point(l[0], l[1]);
|
|
15613
15616
|
}
|
|
15614
15617
|
}
|
|
15615
|
-
function
|
|
15616
|
-
t = Vi(t), t[0] -= r,
|
|
15617
|
-
var e =
|
|
15618
|
+
function Ua(r, t) {
|
|
15619
|
+
t = Vi(t), t[0] -= r, ks(t);
|
|
15620
|
+
var e = Gu(-t[1]);
|
|
15618
15621
|
return ((-t[2] < 0 ? -e : e) + tr - vt) % tr;
|
|
15619
15622
|
}
|
|
15620
|
-
function
|
|
15623
|
+
function Vu() {
|
|
15621
15624
|
var r = [], t;
|
|
15622
15625
|
return {
|
|
15623
15626
|
point: function(e, n) {
|
|
@@ -15636,7 +15639,7 @@ function zu() {
|
|
|
15636
15639
|
}
|
|
15637
15640
|
};
|
|
15638
15641
|
}
|
|
15639
|
-
function
|
|
15642
|
+
function of(r, t, e, n, i, o) {
|
|
15640
15643
|
var s = r[0], a = r[1], u = t[0], l = t[1], c = 0, f = 1, h = u - s, g = l - a, p;
|
|
15641
15644
|
if (p = e - s, !(!h && p > 0)) {
|
|
15642
15645
|
if (p /= h, h < 0) {
|
|
@@ -15690,7 +15693,7 @@ function ko(r, t) {
|
|
|
15690
15693
|
function Do(r, t, e, n) {
|
|
15691
15694
|
this.x = r, this.z = t, this.o = e, this.e = n, this.v = !1, this.n = this.p = null;
|
|
15692
15695
|
}
|
|
15693
|
-
function
|
|
15696
|
+
function Uu(r, t, e, n, i) {
|
|
15694
15697
|
var o = [], s = [], a, u;
|
|
15695
15698
|
if (r.forEach(function(p) {
|
|
15696
15699
|
if (!((y = p.length - 1) <= 0)) {
|
|
@@ -15704,7 +15707,7 @@ function Vu(r, t, e, n, i) {
|
|
|
15704
15707
|
o.push(E = new Do(d, p, null, !0)), s.push(E.o = new Do(d, null, E, !1)), o.push(E = new Do(m, p, null, !1)), s.push(E.o = new Do(m, null, E, !0));
|
|
15705
15708
|
}
|
|
15706
15709
|
}), !!o.length) {
|
|
15707
|
-
for (s.sort(t),
|
|
15710
|
+
for (s.sort(t), qa(o), qa(s), a = 0, u = s.length; a < u; ++a)
|
|
15708
15711
|
s[a].e = e = !e;
|
|
15709
15712
|
for (var l = o[0], c, f; ; ) {
|
|
15710
15713
|
for (var h = l, g = !0; h.v; )
|
|
@@ -15733,18 +15736,18 @@ function Vu(r, t, e, n, i) {
|
|
|
15733
15736
|
}
|
|
15734
15737
|
}
|
|
15735
15738
|
}
|
|
15736
|
-
function
|
|
15739
|
+
function qa(r) {
|
|
15737
15740
|
if (t = r.length) {
|
|
15738
15741
|
for (var t, e = 0, n = r[0], i; ++e < t; )
|
|
15739
15742
|
n.n = i = r[e], i.p = n, n = i;
|
|
15740
15743
|
n.n = i = r[0], i.p = n;
|
|
15741
15744
|
}
|
|
15742
15745
|
}
|
|
15743
|
-
function
|
|
15746
|
+
function qu(r, t) {
|
|
15744
15747
|
return r < t ? -1 : r > t ? 1 : r >= t ? 0 : NaN;
|
|
15745
15748
|
}
|
|
15746
|
-
function
|
|
15747
|
-
return r.length === 1 && (r =
|
|
15749
|
+
function sf(r) {
|
|
15750
|
+
return r.length === 1 && (r = af(r)), {
|
|
15748
15751
|
left: function(t, e, n, i) {
|
|
15749
15752
|
for (n == null && (n = 0), i == null && (i = t.length); n < i; ) {
|
|
15750
15753
|
var o = n + i >>> 1;
|
|
@@ -15761,13 +15764,13 @@ function of(r) {
|
|
|
15761
15764
|
}
|
|
15762
15765
|
};
|
|
15763
15766
|
}
|
|
15764
|
-
function
|
|
15767
|
+
function af(r) {
|
|
15765
15768
|
return function(t, e) {
|
|
15766
|
-
return
|
|
15769
|
+
return qu(r(t), e);
|
|
15767
15770
|
};
|
|
15768
15771
|
}
|
|
15769
|
-
|
|
15770
|
-
function
|
|
15772
|
+
sf(qu);
|
|
15773
|
+
function Xu(r) {
|
|
15771
15774
|
for (var t = r.length, e, n = -1, i = 0, o, s; ++n < t; )
|
|
15772
15775
|
i += r[n].length;
|
|
15773
15776
|
for (o = new Array(i); --t >= 0; )
|
|
@@ -15776,7 +15779,7 @@ function qu(r) {
|
|
|
15776
15779
|
return o;
|
|
15777
15780
|
}
|
|
15778
15781
|
var Zi = 1e9, To = -Zi;
|
|
15779
|
-
function
|
|
15782
|
+
function uf(r, t, e, n) {
|
|
15780
15783
|
function i(l, c) {
|
|
15781
15784
|
return r <= l && l <= e && t <= c && c <= n;
|
|
15782
15785
|
}
|
|
@@ -15800,19 +15803,19 @@ function af(r, t, e, n) {
|
|
|
15800
15803
|
return f !== h ? f - h : f === 0 ? c[1] - l[1] : f === 1 ? l[0] - c[0] : f === 2 ? l[1] - c[1] : c[0] - l[0];
|
|
15801
15804
|
}
|
|
15802
15805
|
return function(l) {
|
|
15803
|
-
var c = l, f =
|
|
15806
|
+
var c = l, f = Vu(), h, g, p, y, d, m, E, C, L, N, x, D = {
|
|
15804
15807
|
point: A,
|
|
15805
15808
|
lineStart: R,
|
|
15806
15809
|
lineEnd: Y,
|
|
15807
15810
|
polygonStart: F,
|
|
15808
15811
|
polygonEnd: X
|
|
15809
15812
|
};
|
|
15810
|
-
function A(W,
|
|
15811
|
-
i(W,
|
|
15813
|
+
function A(W, ut) {
|
|
15814
|
+
i(W, ut) && c.point(W, ut);
|
|
15812
15815
|
}
|
|
15813
15816
|
function w() {
|
|
15814
|
-
for (var W = 0,
|
|
15815
|
-
for (var Ht = g[
|
|
15817
|
+
for (var W = 0, ut = 0, dt = g.length; ut < dt; ++ut)
|
|
15818
|
+
for (var Ht = g[ut], Jt = 1, rr = Ht.length, Ge = Ht[0], ir, In, Hr = Ge[0], ze = Ge[1]; Jt < rr; ++Jt)
|
|
15816
15819
|
ir = Hr, In = ze, Ge = Ht[Jt], Hr = Ge[0], ze = Ge[1], In <= n ? ze > n && (Hr - ir) * (n - In) > (ze - In) * (r - ir) && ++W : ze <= n && (Hr - ir) * (n - In) < (ze - In) * (r - ir) && --W;
|
|
15817
15820
|
return W;
|
|
15818
15821
|
}
|
|
@@ -15820,8 +15823,8 @@ function af(r, t, e, n) {
|
|
|
15820
15823
|
c = f, h = [], g = [], x = !0;
|
|
15821
15824
|
}
|
|
15822
15825
|
function X() {
|
|
15823
|
-
var W = w(),
|
|
15824
|
-
(
|
|
15826
|
+
var W = w(), ut = x && W, dt = (h = Xu(h)).length;
|
|
15827
|
+
(ut || dt) && (l.polygonStart(), ut && (l.lineStart(), o(null, null, 1, l), l.lineEnd()), dt && Uu(h, a, W, o, l), l.polygonEnd()), c = l, h = g = p = null;
|
|
15825
15828
|
}
|
|
15826
15829
|
function R() {
|
|
15827
15830
|
D.point = T, g && g.push(p = []), N = !0, L = !1, E = C = NaN;
|
|
@@ -15829,48 +15832,48 @@ function af(r, t, e, n) {
|
|
|
15829
15832
|
function Y() {
|
|
15830
15833
|
h && (T(y, d), m && L && f.rejoin(), h.push(f.result())), D.point = A, L && c.lineEnd();
|
|
15831
15834
|
}
|
|
15832
|
-
function T(W,
|
|
15833
|
-
var dt = i(W,
|
|
15834
|
-
if (g && p.push([W,
|
|
15835
|
-
y = W, d =
|
|
15835
|
+
function T(W, ut) {
|
|
15836
|
+
var dt = i(W, ut);
|
|
15837
|
+
if (g && p.push([W, ut]), N)
|
|
15838
|
+
y = W, d = ut, m = dt, N = !1, dt && (c.lineStart(), c.point(W, ut));
|
|
15836
15839
|
else if (dt && L)
|
|
15837
|
-
c.point(W,
|
|
15840
|
+
c.point(W, ut);
|
|
15838
15841
|
else {
|
|
15839
|
-
var Ht = [E = Math.max(To, Math.min(Zi, E)), C = Math.max(To, Math.min(Zi, C))], Jt = [W = Math.max(To, Math.min(Zi, W)),
|
|
15840
|
-
|
|
15842
|
+
var Ht = [E = Math.max(To, Math.min(Zi, E)), C = Math.max(To, Math.min(Zi, C))], Jt = [W = Math.max(To, Math.min(Zi, W)), ut = Math.max(To, Math.min(Zi, ut))];
|
|
15843
|
+
of(Ht, Jt, r, t, e, n) ? (L || (c.lineStart(), c.point(Ht[0], Ht[1])), c.point(Jt[0], Jt[1]), dt || c.lineEnd(), x = !1) : dt && (c.lineStart(), c.point(W, ut), x = !1);
|
|
15841
15844
|
}
|
|
15842
|
-
E = W, C =
|
|
15845
|
+
E = W, C = ut, L = dt;
|
|
15843
15846
|
}
|
|
15844
15847
|
return D;
|
|
15845
15848
|
};
|
|
15846
15849
|
}
|
|
15847
|
-
var
|
|
15848
|
-
function
|
|
15850
|
+
var Cs = Wr();
|
|
15851
|
+
function lf(r, t) {
|
|
15849
15852
|
var e = t[0], n = t[1], i = [Pt(e), -bt(e), 0], o = 0, s = 0;
|
|
15850
|
-
|
|
15853
|
+
Cs.reset();
|
|
15851
15854
|
for (var a = 0, u = r.length; a < u; ++a)
|
|
15852
15855
|
if (c = (l = r[a]).length)
|
|
15853
|
-
for (var l, c, f = l[c - 1], h = f[0], g = f[1] / 2 +
|
|
15854
|
-
var m = l[d], E = m[0], C = m[1] / 2 +
|
|
15855
|
-
if (
|
|
15856
|
+
for (var l, c, f = l[c - 1], h = f[0], g = f[1] / 2 + Aa, p = Pt(g), y = bt(g), d = 0; d < c; ++d, h = E, p = L, y = N, f = m) {
|
|
15857
|
+
var m = l[d], E = m[0], C = m[1] / 2 + Aa, L = Pt(C), N = bt(C), x = E - h, D = x >= 0 ? 1 : -1, A = D * x, w = A > it, F = p * L;
|
|
15858
|
+
if (Cs.add(zi(F * D * Pt(A), y * N + F * bt(A))), o += w ? x + D * tr : x, w ^ h >= e ^ E >= e) {
|
|
15856
15859
|
var X = Ko(Vi(f), Vi(m));
|
|
15857
|
-
|
|
15860
|
+
ks(X);
|
|
15858
15861
|
var R = Ko(i, X);
|
|
15859
|
-
|
|
15862
|
+
ks(R);
|
|
15860
15863
|
var Y = (w ^ x >= 0 ? -1 : 1) * ci(R[2]);
|
|
15861
15864
|
(n > Y || n === Y && (X[0] || X[1])) && (s += w ^ x >= 0 ? 1 : -1);
|
|
15862
15865
|
}
|
|
15863
15866
|
}
|
|
15864
|
-
return (o < -vt || o < vt &&
|
|
15867
|
+
return (o < -vt || o < vt && Cs < -vt) ^ s & 1;
|
|
15865
15868
|
}
|
|
15866
15869
|
Wr();
|
|
15867
|
-
function
|
|
15870
|
+
function Xa(r) {
|
|
15868
15871
|
return r;
|
|
15869
15872
|
}
|
|
15870
15873
|
Wr();
|
|
15871
15874
|
Wr();
|
|
15872
|
-
var Ui = 1 / 0, Qo = Ui, yo = -Ui, Zo = yo,
|
|
15873
|
-
point:
|
|
15875
|
+
var Ui = 1 / 0, Qo = Ui, yo = -Ui, Zo = yo, Ya = {
|
|
15876
|
+
point: cf,
|
|
15874
15877
|
lineStart: Qi,
|
|
15875
15878
|
lineEnd: Qi,
|
|
15876
15879
|
polygonStart: Qi,
|
|
@@ -15880,13 +15883,13 @@ var Ui = 1 / 0, Qo = Ui, yo = -Ui, Zo = yo, Xa = {
|
|
|
15880
15883
|
return yo = Zo = -(Qo = Ui = 1 / 0), r;
|
|
15881
15884
|
}
|
|
15882
15885
|
};
|
|
15883
|
-
function
|
|
15886
|
+
function cf(r, t) {
|
|
15884
15887
|
r < Ui && (Ui = r), r > yo && (yo = r), t < Qo && (Qo = t), t > Zo && (Zo = t);
|
|
15885
15888
|
}
|
|
15886
15889
|
Wr();
|
|
15887
|
-
function
|
|
15890
|
+
function Yu(r, t, e, n) {
|
|
15888
15891
|
return function(i, o) {
|
|
15889
|
-
var s = t(o), a = i.invert(n[0], n[1]), u =
|
|
15892
|
+
var s = t(o), a = i.invert(n[0], n[1]), u = Vu(), l = t(u), c = !1, f, h, g, p = {
|
|
15890
15893
|
point: y,
|
|
15891
15894
|
lineStart: m,
|
|
15892
15895
|
lineEnd: E,
|
|
@@ -15894,9 +15897,9 @@ function Xu(r, t, e, n) {
|
|
|
15894
15897
|
p.point = C, p.lineStart = L, p.lineEnd = N, h = [], f = [];
|
|
15895
15898
|
},
|
|
15896
15899
|
polygonEnd: function() {
|
|
15897
|
-
p.point = y, p.lineStart = m, p.lineEnd = E, h =
|
|
15898
|
-
var x =
|
|
15899
|
-
h.length ? (c || (o.polygonStart(), c = !0),
|
|
15900
|
+
p.point = y, p.lineStart = m, p.lineEnd = E, h = Xu(h);
|
|
15901
|
+
var x = lf(f, a);
|
|
15902
|
+
h.length ? (c || (o.polygonStart(), c = !0), Uu(h, hf, x, e, o)) : x && (c || (o.polygonStart(), c = !0), o.lineStart(), e(null, null, 1, o), o.lineEnd()), c && (o.polygonEnd(), c = !1), h = f = null;
|
|
15900
15903
|
},
|
|
15901
15904
|
sphere: function() {
|
|
15902
15905
|
o.polygonStart(), o.lineStart(), e(null, null, 1, o), o.lineEnd(), o.polygonEnd();
|
|
@@ -15936,27 +15939,27 @@ function Xu(r, t, e, n) {
|
|
|
15936
15939
|
}
|
|
15937
15940
|
return;
|
|
15938
15941
|
}
|
|
15939
|
-
w > 1 && x & 2 && D.push(D.pop().concat(D.shift())), h.push(D.filter(
|
|
15942
|
+
w > 1 && x & 2 && D.push(D.pop().concat(D.shift())), h.push(D.filter(ff));
|
|
15940
15943
|
}
|
|
15941
15944
|
}
|
|
15942
15945
|
return p;
|
|
15943
15946
|
};
|
|
15944
15947
|
}
|
|
15945
|
-
function
|
|
15948
|
+
function ff(r) {
|
|
15946
15949
|
return r.length > 1;
|
|
15947
15950
|
}
|
|
15948
|
-
function
|
|
15951
|
+
function hf(r, t) {
|
|
15949
15952
|
return ((r = r.x)[0] < 0 ? r[1] - Wn - vt : Wn - r[1]) - ((t = t.x)[0] < 0 ? t[1] - Wn - vt : Wn - t[1]);
|
|
15950
15953
|
}
|
|
15951
|
-
const
|
|
15954
|
+
const Wa = Yu(
|
|
15952
15955
|
function() {
|
|
15953
15956
|
return !0;
|
|
15954
15957
|
},
|
|
15955
|
-
|
|
15956
|
-
|
|
15958
|
+
gf,
|
|
15959
|
+
df,
|
|
15957
15960
|
[-it, -Wn]
|
|
15958
15961
|
);
|
|
15959
|
-
function
|
|
15962
|
+
function gf(r) {
|
|
15960
15963
|
var t = NaN, e = NaN, n = NaN, i;
|
|
15961
15964
|
return {
|
|
15962
15965
|
lineStart: function() {
|
|
@@ -15964,7 +15967,7 @@ function hf(r) {
|
|
|
15964
15967
|
},
|
|
15965
15968
|
point: function(o, s) {
|
|
15966
15969
|
var a = o > 0 ? it : -it, u = ne(o - t);
|
|
15967
|
-
ne(u - it) < vt ? (r.point(t, e = (e + s) / 2 > 0 ? Wn : -Wn), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), r.point(o, e), i = 0) : n !== a && u >= it && (ne(t - n) < vt && (t -= n * vt), ne(o - a) < vt && (o -= a * vt), e =
|
|
15970
|
+
ne(u - it) < vt ? (r.point(t, e = (e + s) / 2 > 0 ? Wn : -Wn), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), r.point(o, e), i = 0) : n !== a && u >= it && (ne(t - n) < vt && (t -= n * vt), ne(o - a) < vt && (o -= a * vt), e = pf(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;
|
|
15968
15971
|
},
|
|
15969
15972
|
lineEnd: function() {
|
|
15970
15973
|
r.lineEnd(), t = e = NaN;
|
|
@@ -15974,11 +15977,11 @@ function hf(r) {
|
|
|
15974
15977
|
}
|
|
15975
15978
|
};
|
|
15976
15979
|
}
|
|
15977
|
-
function
|
|
15980
|
+
function pf(r, t, e, n) {
|
|
15978
15981
|
var i, o, s = Pt(r - e);
|
|
15979
|
-
return ne(s) > vt ?
|
|
15982
|
+
return ne(s) > vt ? tf((Pt(t) * (o = bt(n)) * Pt(e) - Pt(n) * (i = bt(t)) * Pt(r)) / (i * o * s)) : (t + n) / 2;
|
|
15980
15983
|
}
|
|
15981
|
-
function
|
|
15984
|
+
function df(r, t, e, n) {
|
|
15982
15985
|
var i;
|
|
15983
15986
|
if (r == null)
|
|
15984
15987
|
i = e * Wn, 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);
|
|
@@ -15988,10 +15991,10 @@ function pf(r, t, e, n) {
|
|
|
15988
15991
|
} else
|
|
15989
15992
|
n.point(t[0], t[1]);
|
|
15990
15993
|
}
|
|
15991
|
-
function
|
|
15994
|
+
function vf(r, t) {
|
|
15992
15995
|
var e = bt(r), n = e > 0, i = ne(e) > vt;
|
|
15993
15996
|
function o(c, f, h, g) {
|
|
15994
|
-
|
|
15997
|
+
rf(g, r, t, h, c, f);
|
|
15995
15998
|
}
|
|
15996
15999
|
function s(c, f) {
|
|
15997
16000
|
return bt(c) * bt(f) > e;
|
|
@@ -16027,18 +16030,18 @@ function df(r, t) {
|
|
|
16027
16030
|
if (!C)
|
|
16028
16031
|
return !h && c;
|
|
16029
16032
|
var L = e * m / C, N = -e * E / C, x = Ko(y, d), D = Oo(y, L), A = Oo(d, N);
|
|
16030
|
-
|
|
16033
|
+
Is(D, A);
|
|
16031
16034
|
var w = x, F = Ro(D, w), X = Ro(w, w), R = F * F - X * (Ro(D, D) - 1);
|
|
16032
16035
|
if (!(R < 0)) {
|
|
16033
16036
|
var Y = Hi(R), T = Oo(w, (-F - Y) / X);
|
|
16034
|
-
if (
|
|
16037
|
+
if (Is(T, D), T = Fs(T), !h)
|
|
16035
16038
|
return T;
|
|
16036
|
-
var W = c[0],
|
|
16037
|
-
|
|
16038
|
-
var rr =
|
|
16039
|
-
if (!Ge && Ht < dt && (Jt = dt, dt = Ht, Ht = Jt), ir ? Ge ? dt + Ht > 0 ^ T[1] < (ne(T[0] - W) < vt ? dt : Ht) : dt <= T[1] && T[1] <= Ht : rr > it ^ (W <= T[0] && T[0] <=
|
|
16039
|
+
var W = c[0], ut = f[0], dt = c[1], Ht = f[1], Jt;
|
|
16040
|
+
ut < W && (Jt = W, W = ut, ut = Jt);
|
|
16041
|
+
var rr = ut - W, Ge = ne(rr - it) < vt, ir = Ge || rr < vt;
|
|
16042
|
+
if (!Ge && Ht < dt && (Jt = dt, dt = Ht, Ht = Jt), ir ? Ge ? dt + Ht > 0 ^ T[1] < (ne(T[0] - W) < vt ? dt : Ht) : dt <= T[1] && T[1] <= Ht : rr > it ^ (W <= T[0] && T[0] <= ut)) {
|
|
16040
16043
|
var In = Oo(w, (-F + Y) / X);
|
|
16041
|
-
return
|
|
16044
|
+
return Is(In, D), [T, Fs(In)];
|
|
16042
16045
|
}
|
|
16043
16046
|
}
|
|
16044
16047
|
}
|
|
@@ -16046,20 +16049,20 @@ function df(r, t) {
|
|
|
16046
16049
|
var h = n ? r : it - r, g = 0;
|
|
16047
16050
|
return c < -h ? g |= 1 : c > h && (g |= 2), f < -h ? g |= 4 : f > h && (g |= 8), g;
|
|
16048
16051
|
}
|
|
16049
|
-
return
|
|
16052
|
+
return Yu(s, a, o, n ? [0, -r] : [-it, r - it]);
|
|
16050
16053
|
}
|
|
16051
|
-
function
|
|
16054
|
+
function Wu(r) {
|
|
16052
16055
|
return function(t) {
|
|
16053
|
-
var e = new
|
|
16056
|
+
var e = new Gs();
|
|
16054
16057
|
for (var n in r)
|
|
16055
16058
|
e[n] = r[n];
|
|
16056
16059
|
return e.stream = t, e;
|
|
16057
16060
|
};
|
|
16058
16061
|
}
|
|
16059
|
-
function
|
|
16062
|
+
function Gs() {
|
|
16060
16063
|
}
|
|
16061
|
-
|
|
16062
|
-
constructor:
|
|
16064
|
+
Gs.prototype = {
|
|
16065
|
+
constructor: Gs,
|
|
16063
16066
|
point: function(r, t) {
|
|
16064
16067
|
this.stream.point(r, t);
|
|
16065
16068
|
},
|
|
@@ -16079,32 +16082,32 @@ Bs.prototype = {
|
|
|
16079
16082
|
this.stream.polygonEnd();
|
|
16080
16083
|
}
|
|
16081
16084
|
};
|
|
16082
|
-
function
|
|
16085
|
+
function Hu(r, t, e) {
|
|
16083
16086
|
var n = t[1][0] - t[0][0], i = t[1][1] - t[0][1], o = r.clipExtent && r.clipExtent();
|
|
16084
|
-
r.scale(150).translate([0, 0]), o != null && r.clipExtent(null),
|
|
16085
|
-
var s =
|
|
16087
|
+
r.scale(150).translate([0, 0]), o != null && r.clipExtent(null), ef(e, r.stream(Ya));
|
|
16088
|
+
var s = Ya.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;
|
|
16086
16089
|
return o != null && r.clipExtent(o), r.scale(a * 150).translate([u, l]);
|
|
16087
16090
|
}
|
|
16088
|
-
function
|
|
16089
|
-
return
|
|
16091
|
+
function yf(r, t, e) {
|
|
16092
|
+
return Hu(r, [[0, 0], t], e);
|
|
16090
16093
|
}
|
|
16091
|
-
var
|
|
16092
|
-
function
|
|
16093
|
-
return +t ?
|
|
16094
|
+
var Ha = 16, mf = bt(30 * tn);
|
|
16095
|
+
function ja(r, t) {
|
|
16096
|
+
return +t ? Ef(r, t) : _f(r);
|
|
16094
16097
|
}
|
|
16095
|
-
function
|
|
16096
|
-
return
|
|
16098
|
+
function _f(r) {
|
|
16099
|
+
return Wu({
|
|
16097
16100
|
point: function(t, e) {
|
|
16098
16101
|
t = r(t, e), this.stream.point(t[0], t[1]);
|
|
16099
16102
|
}
|
|
16100
16103
|
});
|
|
16101
16104
|
}
|
|
16102
|
-
function
|
|
16105
|
+
function Ef(r, t) {
|
|
16103
16106
|
function e(n, i, o, s, a, u, l, c, f, h, g, p, y, d) {
|
|
16104
16107
|
var m = l - n, E = c - i, C = m * m + E * E;
|
|
16105
16108
|
if (C > 4 * t && y--) {
|
|
16106
16109
|
var L = s + h, N = a + g, x = u + p, D = Hi(L * L + N * N + x * x), A = ci(x /= D), w = ne(ne(x) - 1) < vt || ne(o - f) < vt ? (o + f) / 2 : zi(N, L), F = r(w, A), X = F[0], R = F[1], Y = X - n, T = R - i, W = E * Y - m * T;
|
|
16107
|
-
(W * W / C > t || ne((m * Y + E * T) / C - 0.5) > 0.3 || s * h + a * g + u * p <
|
|
16110
|
+
(W * W / C > t || ne((m * Y + E * T) / C - 0.5) > 0.3 || s * h + a * g + u * p < mf) && (e(n, i, o, s, a, u, X, R, w, L /= D, N /= D, x, y, d), d.point(X, R), e(X, R, w, L, N, x, l, c, f, h, g, p, y, d));
|
|
16108
16111
|
}
|
|
16109
16112
|
}
|
|
16110
16113
|
return function(n) {
|
|
@@ -16127,7 +16130,7 @@ function _f(r, t) {
|
|
|
16127
16130
|
}
|
|
16128
16131
|
function C(A, w) {
|
|
16129
16132
|
var F = Vi([A, w]), X = r(A, w);
|
|
16130
|
-
e(f, h, c, g, p, y, f = X[0], h = X[1], c = A, g = F[0], p = F[1], y = F[2],
|
|
16133
|
+
e(f, h, c, g, p, y, f = X[0], h = X[1], c = A, g = F[0], p = F[1], y = F[2], Ha, n), n.point(f, h);
|
|
16131
16134
|
}
|
|
16132
16135
|
function L() {
|
|
16133
16136
|
d.point = m, n.lineEnd();
|
|
@@ -16139,23 +16142,23 @@ function _f(r, t) {
|
|
|
16139
16142
|
C(i = A, w), o = f, s = h, a = g, u = p, l = y, d.point = C;
|
|
16140
16143
|
}
|
|
16141
16144
|
function D() {
|
|
16142
|
-
e(f, h, c, g, p, y, o, s, i, a, u, l,
|
|
16145
|
+
e(f, h, c, g, p, y, o, s, i, a, u, l, Ha, n), d.lineEnd = L, L();
|
|
16143
16146
|
}
|
|
16144
16147
|
return d;
|
|
16145
16148
|
};
|
|
16146
16149
|
}
|
|
16147
|
-
var
|
|
16150
|
+
var If = Wu({
|
|
16148
16151
|
point: function(r, t) {
|
|
16149
16152
|
this.stream.point(r * tn, t * tn);
|
|
16150
16153
|
}
|
|
16151
16154
|
});
|
|
16152
|
-
function
|
|
16153
|
-
return
|
|
16155
|
+
function Cf(r) {
|
|
16156
|
+
return Nf(function() {
|
|
16154
16157
|
return r;
|
|
16155
16158
|
})();
|
|
16156
16159
|
}
|
|
16157
|
-
function
|
|
16158
|
-
var t, e = 150, n = 480, i = 250, o, s, a = 0, u = 0, l = 0, c = 0, f = 0, h, g, p = null, y =
|
|
16160
|
+
function Nf(r) {
|
|
16161
|
+
var t, e = 150, n = 480, i = 250, o, s, a = 0, u = 0, l = 0, c = 0, f = 0, h, g, p = null, y = Wa, d = null, m, E, C, L = Xa, N = 0.5, x = ja(X, N), D, A;
|
|
16159
16162
|
function w(T) {
|
|
16160
16163
|
return T = g(T[0] * tn, T[1] * tn), [T[0] * e + o, s - T[1] * e];
|
|
16161
16164
|
}
|
|
@@ -16166,11 +16169,11 @@ function Cf(r) {
|
|
|
16166
16169
|
return T = t(T, W), [T[0] * e + o, s - T[1] * e];
|
|
16167
16170
|
}
|
|
16168
16171
|
w.stream = function(T) {
|
|
16169
|
-
return D && A === T ? D : D =
|
|
16172
|
+
return D && A === T ? D : D = If(y(h, x(L(A = T))));
|
|
16170
16173
|
}, w.clipAngle = function(T) {
|
|
16171
|
-
return arguments.length ? (y = +T ?
|
|
16174
|
+
return arguments.length ? (y = +T ? vf(p = T * tn, 6 * tn) : (p = null, Wa), Y()) : p * Sr;
|
|
16172
16175
|
}, w.clipExtent = function(T) {
|
|
16173
|
-
return arguments.length ? (L = T == null ? (d = m = E = C = null,
|
|
16176
|
+
return arguments.length ? (L = T == null ? (d = m = E = C = null, Xa) : uf(d = +T[0][0], m = +T[0][1], E = +T[1][0], C = +T[1][1]), Y()) : d == null ? null : [[d, m], [E, C]];
|
|
16174
16177
|
}, w.scale = function(T) {
|
|
16175
16178
|
return arguments.length ? (e = +T, R()) : e;
|
|
16176
16179
|
}, w.translate = function(T) {
|
|
@@ -16180,14 +16183,14 @@ function Cf(r) {
|
|
|
16180
16183
|
}, w.rotate = function(T) {
|
|
16181
16184
|
return arguments.length ? (l = T[0] % 360 * tn, c = T[1] % 360 * tn, f = T.length > 2 ? T[2] % 360 * tn : 0, R()) : [l * Sr, c * Sr, f * Sr];
|
|
16182
16185
|
}, w.precision = function(T) {
|
|
16183
|
-
return arguments.length ? (x =
|
|
16186
|
+
return arguments.length ? (x = ja(X, N = T * T), Y()) : Hi(N);
|
|
16184
16187
|
}, w.fitExtent = function(T, W) {
|
|
16185
|
-
return
|
|
16188
|
+
return Hu(w, T, W);
|
|
16186
16189
|
}, w.fitSize = function(T, W) {
|
|
16187
|
-
return
|
|
16190
|
+
return yf(w, T, W);
|
|
16188
16191
|
};
|
|
16189
16192
|
function R() {
|
|
16190
|
-
g =
|
|
16193
|
+
g = zu(h = nf(l, c, f), t);
|
|
16191
16194
|
var T = t(a, u);
|
|
16192
16195
|
return o = n - T[0] * e, s = i + T[1] * e, Y();
|
|
16193
16196
|
}
|
|
@@ -16198,7 +16201,7 @@ function Cf(r) {
|
|
|
16198
16201
|
return t = r.apply(this, arguments), w.invert = t.invert && F, R();
|
|
16199
16202
|
};
|
|
16200
16203
|
}
|
|
16201
|
-
function
|
|
16204
|
+
function ju(r) {
|
|
16202
16205
|
return function(t, e) {
|
|
16203
16206
|
var n = bt(t), i = bt(e), o = r(n * i);
|
|
16204
16207
|
return [
|
|
@@ -16207,7 +16210,7 @@ function Hu(r) {
|
|
|
16207
16210
|
];
|
|
16208
16211
|
};
|
|
16209
16212
|
}
|
|
16210
|
-
function
|
|
16213
|
+
function Ku(r) {
|
|
16211
16214
|
return function(t, e) {
|
|
16212
16215
|
var n = Hi(t * t + e * e), i = r(n), o = Pt(i), s = bt(i);
|
|
16213
16216
|
return [
|
|
@@ -16216,26 +16219,26 @@ function ju(r) {
|
|
|
16216
16219
|
];
|
|
16217
16220
|
};
|
|
16218
16221
|
}
|
|
16219
|
-
var
|
|
16222
|
+
var Sf = ju(function(r) {
|
|
16220
16223
|
return Hi(2 / (1 + r));
|
|
16221
16224
|
});
|
|
16222
|
-
|
|
16225
|
+
Sf.invert = Ku(function(r) {
|
|
16223
16226
|
return 2 * ci(r / 2);
|
|
16224
16227
|
});
|
|
16225
|
-
var
|
|
16226
|
-
return (r =
|
|
16228
|
+
var Qu = ju(function(r) {
|
|
16229
|
+
return (r = Gu(r)) && r / Pt(r);
|
|
16227
16230
|
});
|
|
16228
|
-
|
|
16231
|
+
Qu.invert = Ku(function(r) {
|
|
16229
16232
|
return r;
|
|
16230
16233
|
});
|
|
16231
|
-
function
|
|
16232
|
-
return
|
|
16234
|
+
function xf() {
|
|
16235
|
+
return Cf(Qu).scale(79.4188).clipAngle(180 - 1e-3);
|
|
16233
16236
|
}
|
|
16234
|
-
function
|
|
16237
|
+
function Ka(r, t) {
|
|
16235
16238
|
return [r, t];
|
|
16236
16239
|
}
|
|
16237
|
-
|
|
16238
|
-
function
|
|
16240
|
+
Ka.invert = Ka;
|
|
16241
|
+
function wf(r, t, e) {
|
|
16239
16242
|
e = e || {};
|
|
16240
16243
|
var n = e.units || "kilometers", i = e.steps || 8;
|
|
16241
16244
|
if (!r)
|
|
@@ -16251,17 +16254,17 @@ function xf(r, t, e) {
|
|
|
16251
16254
|
var o = [];
|
|
16252
16255
|
switch (r.type) {
|
|
16253
16256
|
case "GeometryCollection":
|
|
16254
|
-
return
|
|
16257
|
+
return fu(r, function(s) {
|
|
16255
16258
|
var a = Bo(s, t, n, i);
|
|
16256
16259
|
a && o.push(a);
|
|
16257
|
-
}),
|
|
16260
|
+
}), Ds(o);
|
|
16258
16261
|
case "FeatureCollection":
|
|
16259
|
-
return
|
|
16262
|
+
return Pa(r, function(s) {
|
|
16260
16263
|
var a = Bo(s, t, n, i);
|
|
16261
|
-
a &&
|
|
16264
|
+
a && Pa(a, function(u) {
|
|
16262
16265
|
u && o.push(u);
|
|
16263
16266
|
});
|
|
16264
|
-
}),
|
|
16267
|
+
}), Ds(o);
|
|
16265
16268
|
}
|
|
16266
16269
|
return Bo(r, t, n, i);
|
|
16267
16270
|
}
|
|
@@ -16269,54 +16272,54 @@ function Bo(r, t, e, n) {
|
|
|
16269
16272
|
var i = r.properties || {}, o = r.type === "Feature" ? r.geometry : r;
|
|
16270
16273
|
if (o.type === "GeometryCollection") {
|
|
16271
16274
|
var s = [];
|
|
16272
|
-
return
|
|
16275
|
+
return fu(r, function(y) {
|
|
16273
16276
|
var d = Bo(y, t, e, n);
|
|
16274
16277
|
d && s.push(d);
|
|
16275
|
-
}),
|
|
16278
|
+
}), Ds(s);
|
|
16276
16279
|
}
|
|
16277
|
-
var a =
|
|
16280
|
+
var a = Lf(o), u = {
|
|
16278
16281
|
type: o.type,
|
|
16279
|
-
coordinates:
|
|
16280
|
-
}, l = new
|
|
16281
|
-
if (h = g.write(h), !
|
|
16282
|
+
coordinates: Ju(o.coordinates, a)
|
|
16283
|
+
}, l = new js(), c = l.read(u), f = Rc(Oc(t, e), "meters"), h = Vt.bufferOp(c, f, n), g = new Iu();
|
|
16284
|
+
if (h = g.write(h), !Zu(h.coordinates)) {
|
|
16282
16285
|
var p = {
|
|
16283
16286
|
type: h.type,
|
|
16284
|
-
coordinates:
|
|
16287
|
+
coordinates: $u(h.coordinates, a)
|
|
16285
16288
|
};
|
|
16286
16289
|
return Jo(p, i);
|
|
16287
16290
|
}
|
|
16288
16291
|
}
|
|
16289
|
-
function
|
|
16290
|
-
return Array.isArray(r[0]) ?
|
|
16292
|
+
function Zu(r) {
|
|
16293
|
+
return Array.isArray(r[0]) ? Zu(r[0]) : isNaN(r[0]);
|
|
16291
16294
|
}
|
|
16292
|
-
function
|
|
16295
|
+
function Ju(r, t) {
|
|
16293
16296
|
return typeof r[0] != "object" ? t(r) : r.map(function(e) {
|
|
16294
|
-
return
|
|
16297
|
+
return Ju(e, t);
|
|
16295
16298
|
});
|
|
16296
16299
|
}
|
|
16297
|
-
function
|
|
16300
|
+
function $u(r, t) {
|
|
16298
16301
|
return typeof r[0] != "object" ? t.invert(r) : r.map(function(e) {
|
|
16299
|
-
return
|
|
16302
|
+
return $u(e, t);
|
|
16300
16303
|
});
|
|
16301
16304
|
}
|
|
16302
|
-
function
|
|
16303
|
-
var t =
|
|
16304
|
-
return
|
|
16305
|
+
function Lf(r) {
|
|
16306
|
+
var t = Fc(r).geometry.coordinates, e = [-t[0], -t[1]];
|
|
16307
|
+
return xf().rotate(e).scale(Ie);
|
|
16305
16308
|
}
|
|
16306
|
-
function
|
|
16307
|
-
var e = Vo(r), n = Vo(t), i = r.properties || {}, o =
|
|
16309
|
+
function bf(r, t) {
|
|
16310
|
+
var e = Vo(r), n = Vo(t), i = r.properties || {}, o = su.difference(
|
|
16308
16311
|
e.coordinates,
|
|
16309
16312
|
n.coordinates
|
|
16310
16313
|
);
|
|
16311
|
-
return o.length === 0 ? null : o.length === 1 ?
|
|
16314
|
+
return o.length === 0 ? null : o.length === 1 ? uu(o[0], i) : lu(o, i);
|
|
16312
16315
|
}
|
|
16313
|
-
function
|
|
16316
|
+
function Qa(r) {
|
|
16314
16317
|
let t;
|
|
16315
16318
|
for (const e of r)
|
|
16316
16319
|
t && e[0] - t[0] >= 180 ? e[0] -= 360 : t && e[0] - t[0] < -180 && (e[0] += 360), t = e;
|
|
16317
16320
|
}
|
|
16318
|
-
function
|
|
16319
|
-
const e =
|
|
16321
|
+
function Za(r, t) {
|
|
16322
|
+
const e = bf(
|
|
16320
16323
|
{
|
|
16321
16324
|
type: "Polygon",
|
|
16322
16325
|
coordinates: [
|
|
@@ -16334,20 +16337,20 @@ function Qa(r, t) {
|
|
|
16334
16337
|
if (!e)
|
|
16335
16338
|
return;
|
|
16336
16339
|
e.properties = { isMask: "y" };
|
|
16337
|
-
const n =
|
|
16340
|
+
const n = wf(r, 0);
|
|
16338
16341
|
if (n.geometry.type === "Polygon")
|
|
16339
16342
|
for (const i of n.geometry.coordinates)
|
|
16340
|
-
|
|
16343
|
+
Qa(i);
|
|
16341
16344
|
else
|
|
16342
16345
|
for (const i of n.geometry.coordinates)
|
|
16343
16346
|
for (const o of i)
|
|
16344
|
-
|
|
16347
|
+
Qa(o);
|
|
16345
16348
|
t({
|
|
16346
16349
|
type: "FeatureCollection",
|
|
16347
16350
|
features: [n, e]
|
|
16348
16351
|
});
|
|
16349
16352
|
}
|
|
16350
|
-
function
|
|
16353
|
+
function Pf(r, t = !0, e = !0, n = {}, i = {}, o = (s) => {
|
|
16351
16354
|
var l, c, f;
|
|
16352
16355
|
const a = (l = s == null ? void 0 : s.geometry) == null ? void 0 : l.type, u = (c = s == null ? void 0 : s.properties) != null && c.isMask ? 0 : a === "LineString" || a === "MultiLineString" ? 3 : 2;
|
|
16353
16356
|
return {
|
|
@@ -16375,7 +16378,7 @@ function bf(r, t = !0, e = !0, n = {}, i = {}, o = (s) => {
|
|
|
16375
16378
|
};
|
|
16376
16379
|
function p(d, m = !1) {
|
|
16377
16380
|
const E = document.createElement("div");
|
|
16378
|
-
return new
|
|
16381
|
+
return new Ac({ props: { displayIn: "leaflet" }, target: E }), new or.Marker(d, {
|
|
16379
16382
|
interactive: m,
|
|
16380
16383
|
icon: new or.DivIcon({
|
|
16381
16384
|
html: E,
|
|
@@ -16429,8 +16432,8 @@ function bf(r, t = !0, e = !0, n = {}, i = {}, o = (s) => {
|
|
|
16429
16432
|
if (N.length > 0) {
|
|
16430
16433
|
let x = N.pop();
|
|
16431
16434
|
for (const D of N)
|
|
16432
|
-
x =
|
|
16433
|
-
|
|
16435
|
+
x = Dc(x, D);
|
|
16436
|
+
Za({ ...m, geometry: x }, E), C = !0;
|
|
16434
16437
|
} else {
|
|
16435
16438
|
const x = m.geometry.geometries.filter(
|
|
16436
16439
|
(D) => D.type === "LineString" || D.type === "MultiLineString"
|
|
@@ -16443,7 +16446,7 @@ function bf(r, t = !0, e = !0, n = {}, i = {}, o = (s) => {
|
|
|
16443
16446
|
}
|
|
16444
16447
|
if (!C) {
|
|
16445
16448
|
if (m.geometry.type === "Polygon" || m.geometry.type === "MultiPolygon")
|
|
16446
|
-
|
|
16449
|
+
Za(m, E);
|
|
16447
16450
|
else if (m.geometry.type === "LineString" || m.geometry.type === "MultiLineString") {
|
|
16448
16451
|
E(m);
|
|
16449
16452
|
return;
|
|
@@ -16482,11 +16485,11 @@ function bf(r, t = !0, e = !0, n = {}, i = {}, o = (s) => {
|
|
|
16482
16485
|
};
|
|
16483
16486
|
}
|
|
16484
16487
|
var Cn, Zr;
|
|
16485
|
-
class
|
|
16488
|
+
class Rf extends or.Control {
|
|
16486
16489
|
constructor(e) {
|
|
16487
16490
|
super();
|
|
16488
|
-
|
|
16489
|
-
|
|
16491
|
+
ys(this, Cn, void 0);
|
|
16492
|
+
ys(this, Zr, void 0);
|
|
16490
16493
|
Lo(this, Zr, e);
|
|
16491
16494
|
}
|
|
16492
16495
|
onAdd(e) {
|
|
@@ -16498,7 +16501,7 @@ class Pf extends or.Control {
|
|
|
16498
16501
|
flyTo: s,
|
|
16499
16502
|
fullGeometryStyle: a,
|
|
16500
16503
|
...u
|
|
16501
|
-
} = zn(this, Zr), l = typeof s == "boolean" ? {} : s, c =
|
|
16504
|
+
} = zn(this, Zr), l = typeof s == "boolean" ? {} : s, c = Pf(
|
|
16502
16505
|
e,
|
|
16503
16506
|
i,
|
|
16504
16507
|
o,
|
|
@@ -16506,7 +16509,7 @@ class Pf extends or.Control {
|
|
|
16506
16509
|
l,
|
|
16507
16510
|
a
|
|
16508
16511
|
);
|
|
16509
|
-
Lo(this, Cn, new
|
|
16512
|
+
Lo(this, Cn, new sc({
|
|
16510
16513
|
target: n,
|
|
16511
16514
|
props: {
|
|
16512
16515
|
mapController: c,
|
|
@@ -16564,12 +16567,12 @@ class Pf extends or.Control {
|
|
|
16564
16567
|
}
|
|
16565
16568
|
}
|
|
16566
16569
|
Cn = new WeakMap(), Zr = new WeakMap();
|
|
16567
|
-
function
|
|
16568
|
-
return new
|
|
16570
|
+
function Of(...r) {
|
|
16571
|
+
return new Rf(...r);
|
|
16569
16572
|
}
|
|
16570
|
-
window.L && typeof window.L == "object" && typeof window.L.control == "function" && (window.L.control.maptilerGeocoding =
|
|
16573
|
+
window.L && typeof window.L == "object" && typeof window.L.control == "function" && (window.L.control.maptilerGeocoding = Of);
|
|
16571
16574
|
export {
|
|
16572
|
-
|
|
16573
|
-
|
|
16575
|
+
Rf as GeocodingControl,
|
|
16576
|
+
Pf as createLeafletMapController
|
|
16574
16577
|
};
|
|
16575
16578
|
//# sourceMappingURL=leaflet.js.map
|